Skip to content

Commit

Permalink
Merge pull request #2463 from coingaming/develop
Browse files Browse the repository at this point in the history
Deploy 10.10.3
  • Loading branch information
dkireev authored Nov 1, 2023
2 parents ed1b10b + 553b624 commit 167d60b
Show file tree
Hide file tree
Showing 81 changed files with 69,651 additions and 42,128 deletions.
11 changes: 11 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# docs

## 10.10.3

### Patch Changes

- Deploy 10.10.3
- Updated dependencies
- @heathmont/moon-base-tw@10.10.3
- @heathmont/moon-core-tw@10.10.3
- @heathmont/moon-cmdk-tw@10.10.3
- @heathmont/moon-themes-tw@10.10.3

## 10.10.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion docs/app/components/server/accordion/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import QuickNav from '@/app/components/shared/QuickNav';
import { getExamples } from '@/app/utils/getExamples';
import { MDX } from '@/components/MDX';

export default async function Home() {
export default async function Accordion() {
const { server } = await getExamples();
const examplesList = Object.keys(server.accordion.examples);
return (
Expand Down
2 changes: 1 addition & 1 deletion docs/app/components/server/button/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import QuickNav from '@/app/components/shared/QuickNav';
import { getExamples } from '@/app/utils/getExamples';
import { MDX } from '@/components/MDX';

export default async function Home() {
export default async function Button() {
const { server } = await getExamples();
const examplesList = Object.keys(server.button.examples);
return (
Expand Down
2 changes: 0 additions & 2 deletions docs/app/components/server/checkbox/examples/Default.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Checkbox from '@heathmont/moon-base-tw/lib/checkbox/Checkbox';

export const Default = () => <Checkbox />;

export default Default;
2 changes: 1 addition & 1 deletion docs/app/components/server/checkbox/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import QuickNav from '@/app/components/shared/QuickNav';
import { getExamples } from '@/app/utils/getExamples';
import { MDX } from '@/components/MDX';

export default async function Home() {
export default async function Checkbox() {
const { server } = await getExamples();
const examplesList = Object.keys(server.checkbox.examples);
return (
Expand Down
1 change: 1 addition & 0 deletions docs/app/components/server/chip/description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Chips help filter content, or trigger actions.
3 changes: 3 additions & 0 deletions docs/app/components/server/chip/examples/Default.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Chip from '@heathmont/moon-base-tw/lib/chip/Chip';

export const Default = () => <Chip>Default</Chip>;
22 changes: 22 additions & 0 deletions docs/app/components/server/chip/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Default } from '@/app/components/server/chip/examples/Default';
import ExampleSection from '@/app/components/shared/ExampleSection';
import QuickNav from '@/app/components/shared/QuickNav';
import { getExamples } from '@/app/utils/getExamples';
import { MDX } from '@/components/MDX';

export default async function Chip() {
const { server } = await getExamples();
const examplesList = Object.keys(server.chip.examples);
return (
<div className="w-full max-w-7xl flex flex-col gap-4 text-moon-14">
<h1 className="font-medium text-moon-32">Chip</h1>
<MDX markdown={server.chip.description} />
<QuickNav items={examplesList} />
<ExampleSection
title="Default"
component={<Default />}
code={server.chip.examples.Default}
/>
</div>
);
}
3 changes: 3 additions & 0 deletions docs/app/components/server/input/description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Text input fields allow users to enter text and can be used to collect user feedback or enter information in data entry forms.

These types of input fields are used on their own, or in combination with other inputs such as number entry, date picker, etc.
3 changes: 3 additions & 0 deletions docs/app/components/server/input/examples/Default.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Input from '@heathmont/moon-base-tw/lib/input/Input';

export const Default = () => <Input aria-label="default" />;
22 changes: 22 additions & 0 deletions docs/app/components/server/input/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Default } from '@/app/components/server/input/examples/Default';
import ExampleSection from '@/app/components/shared/ExampleSection';
import QuickNav from '@/app/components/shared/QuickNav';
import { getExamples } from '@/app/utils/getExamples';
import { MDX } from '@/components/MDX';

export default async function Input() {
const { server } = await getExamples();
const examplesList = Object.keys(server.input.examples);
return (
<div className="w-full max-w-7xl flex flex-col gap-4 text-moon-14">
<h1 className="font-medium text-moon-32">Input</h1>
<MDX markdown={server.input.description} />
<QuickNav items={examplesList} />
<ExampleSection
title="Default"
component={<Default />}
code={server.input.examples.Default}
/>
</div>
);
}
1 change: 1 addition & 0 deletions docs/app/components/server/loader/description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Loaders provide a visual cue that an action is processing awaiting a course of change or a result.
3 changes: 3 additions & 0 deletions docs/app/components/server/loader/examples/Default.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Loader from '@heathmont/moon-base-tw/lib/loader/Loader';

export const Default = () => <Loader />;
22 changes: 22 additions & 0 deletions docs/app/components/server/loader/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Default } from '@/app/components/server/loader/examples/Default';
import ExampleSection from '@/app/components/shared/ExampleSection';
import QuickNav from '@/app/components/shared/QuickNav';
import { getExamples } from '@/app/utils/getExamples';
import { MDX } from '@/components/MDX';

export default async function Loader() {
const { server } = await getExamples();
const examplesList = Object.keys(server.loader.examples);
return (
<div className="w-full max-w-7xl flex flex-col gap-4 text-moon-14">
<h1 className="font-medium text-moon-32">Loader</h1>
<MDX markdown={server.loader.description} />
<QuickNav items={examplesList} />
<ExampleSection
title="Default"
component={<Default />}
code={server.loader.examples.Default}
/>
</div>
);
}
3 changes: 3 additions & 0 deletions docs/app/components/server/nativeSelect/description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
A form input used for selecting a value: when collapsed it shows the currently selected option and when expanded, it shows a scrollable list of predefined options for the user to choose from.

When collapsed it shows the currently selected option and when expanded, it shows a scrollable list of predefined options for the user to choose from. Moon.io supports two types of selects, one whichs opens browser's native styling option list and Dropdown.
10 changes: 10 additions & 0 deletions docs/app/components/server/nativeSelect/examples/Default.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import NativeSelect from '@heathmont/moon-base-tw/lib/nativeSelect/NativeSelect';

export const Default = () => (
<NativeSelect>
<option value="Italy">Italy</option>
<option value="Spain">Spain</option>
<option value="China">China</option>
<option value="Germany">Germany</option>
</NativeSelect>
);
22 changes: 22 additions & 0 deletions docs/app/components/server/nativeSelect/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Default } from '@/app/components/server/nativeSelect/examples/Default';
import ExampleSection from '@/app/components/shared/ExampleSection';
import QuickNav from '@/app/components/shared/QuickNav';
import { getExamples } from '@/app/utils/getExamples';
import { MDX } from '@/components/MDX';

export default async function NativeSelect() {
const { server } = await getExamples();
const examplesList = Object.keys(server.nativeSelect.examples);
return (
<div className="w-full max-w-7xl flex flex-col gap-4 text-moon-14">
<h1 className="font-medium text-moon-32">NativeSelect</h1>
<MDX markdown={server.nativeSelect.description} />
<QuickNav items={examplesList} />
<ExampleSection
title="Default"
component={<Default />}
code={server.nativeSelect.examples.Default}
/>
</div>
);
}
3 changes: 3 additions & 0 deletions docs/app/components/server/pagination/description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Pagination is the process of splitting information over multiple pages instead of showing it all on a single page.

Also the name for the interface component used for navigating between these pages.
9 changes: 9 additions & 0 deletions docs/app/components/server/pagination/examples/Default.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Pagination from '@heathmont/moon-base-tw/lib/pagination/Pagination';

export const Default = () => (
<Pagination>
<Pagination.PrevButton>Previous</Pagination.PrevButton>
<Pagination.Pages currentPage={5} totalPages={11} />
<Pagination.NextButton>Next</Pagination.NextButton>
</Pagination>
);
22 changes: 22 additions & 0 deletions docs/app/components/server/pagination/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Default } from '@/app/components/server/pagination/examples/Default';
import ExampleSection from '@/app/components/shared/ExampleSection';
import QuickNav from '@/app/components/shared/QuickNav';
import { getExamples } from '@/app/utils/getExamples';
import { MDX } from '@/components/MDX';

export default async function Pagination() {
const { server } = await getExamples();
const examplesList = Object.keys(server.pagination.examples);
return (
<div className="w-full max-w-7xl flex flex-col gap-4 text-moon-14">
<h1 className="font-medium text-moon-32">Pagination</h1>
<MDX markdown={server.pagination.description} />
<QuickNav items={examplesList} />
<ExampleSection
title="Default"
component={<Default />}
code={server.pagination.examples.Default}
/>
</div>
);
}
1 change: 1 addition & 0 deletions docs/app/components/server/table/description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A component for displaying large amounts of data in rows and columns.
25 changes: 25 additions & 0 deletions docs/app/components/server/table/examples/Default.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import Table from '@heathmont/moon-base-tw/lib/table/Table';

export const Default = () => (
<Table>
<Table.Head>
<Table.Row>
<Table.Header>Header 1</Table.Header>
<Table.Header>Header 2</Table.Header>
<Table.Header>Header 3</Table.Header>
</Table.Row>
</Table.Head>
<Table.Body>
<Table.Row>
<Table.Cell>Cell 1</Table.Cell>
<Table.Cell>Cell 2</Table.Cell>
<Table.Cell>Cell 3</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Cell 1</Table.Cell>
<Table.Cell>Cell 2</Table.Cell>
<Table.Cell>Cell 3</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
);
22 changes: 22 additions & 0 deletions docs/app/components/server/table/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Default } from '@/app/components/server/table/examples/Default';
import ExampleSection from '@/app/components/shared/ExampleSection';
import QuickNav from '@/app/components/shared/QuickNav';
import { getExamples } from '@/app/utils/getExamples';
import { MDX } from '@/components/MDX';

export default async function Table() {
const { server } = await getExamples();
const examplesList = Object.keys(server.table.examples);
return (
<div className="w-full max-w-7xl flex flex-col gap-4 text-moon-14">
<h1 className="font-medium text-moon-32">Table</h1>
<MDX markdown={server.table.description} />
<QuickNav items={examplesList} />
<ExampleSection
title="Default"
component={<Default />}
code={server.table.examples.Default}
/>
</div>
);
}
2 changes: 1 addition & 1 deletion docs/app/components/shared/CodePreview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const CodePreview = ({ code }: { code: string }) => (
<pre className="theme-moon-dark bg-gohan text-bulma rounded-moon-s-sm p-4">
<pre className="theme-moon-dark overflow-x-auto bg-gohan text-bulma rounded-moon-s-sm p-4">
{code}
</pre>
);
Expand Down
36 changes: 36 additions & 0 deletions docs/app/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,42 @@ export interface Examples {
Default: 'string';
};
};
chip: {
description: 'string';
examples: {
Default: 'string';
};
};
input: {
description: 'string';
examples: {
Default: 'string';
};
};
loader: {
description: 'string';
examples: {
Default: 'string';
};
};
nativeSelect: {
description: 'string';
examples: {
Default: 'string';
};
};
pagination: {
description: 'string';
examples: {
Default: 'string';
};
};
table: {
description: 'string';
examples: {
Default: 'string';
};
};
tag: {
description: 'string';
examples: {
Expand Down
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "10.10.2",
"version": "10.10.3",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -11,11 +11,11 @@
"lint": "next lint"
},
"dependencies": {
"@heathmont/moon-base-tw": "workspace:^10.10.2",
"@heathmont/moon-cmdk-tw": "workspace:^10.10.2",
"@heathmont/moon-core-tw": "workspace:^10.10.2",
"@heathmont/moon-base-tw": "workspace:^10.10.3",
"@heathmont/moon-cmdk-tw": "workspace:^10.10.3",
"@heathmont/moon-core-tw": "workspace:^10.10.3",
"@heathmont/moon-icons-tw": "9.28.6",
"@heathmont/moon-themes-tw": "workspace:^10.10.2",
"@heathmont/moon-themes-tw": "workspace:^10.10.3",
"@types/node": "20.4.9",
"@types/react": "18.2.19",
"@types/react-dom": "18.2.7",
Expand Down
11 changes: 11 additions & 0 deletions next-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## 10.10.3

### Patch Changes

- Deploy 10.10.3
- Updated dependencies
- @heathmont/moon-table-tw@10.10.3
- @heathmont/moon-core-tw@10.10.3
- @heathmont/moon-cmdk-tw@10.10.3
- @heathmont/moon-themes-tw@10.10.3

## 10.10.2

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions next-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-docs",
"version": "10.10.2",
"version": "10.10.3",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -19,9 +19,9 @@
"@heathmont/moon-assets": "workspace:^10.7.1",
"@heathmont/moon-charts": "workspace:^10.7.1",
"@heathmont/moon-components": "workspace:^10.7.1",
"@heathmont/moon-cmdk-tw": "workspace:^10.10.2",
"@heathmont/moon-cmdk-tw": "workspace:^10.10.3",
"@heathmont/moon-core": "workspace:^10.7.1",
"@heathmont/moon-core-tw": "workspace:^10.10.2",
"@heathmont/moon-core-tw": "workspace:^10.10.3",
"@heathmont/moon-datepicker": "workspace:^10.7.1",
"@heathmont/moon-draggabletable": "workspace:^10.7.1",
"@heathmont/moon-icons": "workspace:^10.7.1",
Expand All @@ -30,9 +30,9 @@
"@heathmont/moon-select": "workspace:^10.7.1",
"@heathmont/moon-sidebar": "workspace:^10.7.1",
"@heathmont/moon-table": "workspace:^10.7.1",
"@heathmont/moon-table-tw": "workspace:^10.10.2",
"@heathmont/moon-table-tw": "workspace:^10.10.3",
"@heathmont/moon-themes": "workspace:^10.7.1",
"@heathmont/moon-themes-tw": "workspace:^10.10.2",
"@heathmont/moon-themes-tw": "workspace:^10.10.3",
"@heathmont/moon-utils": "workspace:^10.7.1",
"@heathmont/moon-icons-tw": "9.28.6",
"@hookform/resolvers": "3.2.0",
Expand Down
Loading

0 comments on commit 167d60b

Please sign in to comment.