Skip to content

Commit

Permalink
fix: merge develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dkireev committed Oct 31, 2023
2 parents 4b6f431 + fbefb96 commit 60aea27
Show file tree
Hide file tree
Showing 21 changed files with 399 additions and 300 deletions.
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>
);
}
2 changes: 0 additions & 2 deletions docs/app/components/server/input/examples/Default.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Input from '@heathmont/moon-base-tw/lib/input/Input';

export const Default = () => <Input aria-label="default" />;

export default Default;
2 changes: 1 addition & 1 deletion docs/app/components/server/input/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 Input() {
const { server } = await getExamples();
const examplesList = Object.keys(server.input.examples);
return (
Expand Down
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>
);
}
12 changes: 12 additions & 0 deletions docs/app/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,24 @@ export interface Examples {
Default: 'string';
};
};
chip: {
description: 'string';
examples: {
Default: 'string';
};
};
input: {
description: 'string';
examples: {
Default: 'string';
};
};
loader: {
description: 'string';
examples: {
Default: 'string';
};
};
tag: {
description: 'string';
examples: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Select label
</label>
Expand Down Expand Up @@ -387,7 +387,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Select label
</label>
Expand Down Expand Up @@ -515,7 +515,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Label
</label>
Expand Down Expand Up @@ -586,7 +586,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Label
</label>
Expand Down Expand Up @@ -714,7 +714,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Error
</label>
Expand Down Expand Up @@ -775,7 +775,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Disabled
</label>
Expand Down Expand Up @@ -837,7 +837,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Without placeholder (nullable)
</label>
Expand Down Expand Up @@ -897,7 +897,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
List options width
</label>
Expand Down Expand Up @@ -968,7 +968,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Error
</label>
Expand Down Expand Up @@ -1029,7 +1029,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Disabled
</label>
Expand Down Expand Up @@ -1091,7 +1091,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Without placeholder (nullable)
</label>
Expand Down Expand Up @@ -1151,7 +1151,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
List options width
</label>
Expand Down Expand Up @@ -3607,7 +3607,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Select label
</label>
Expand Down Expand Up @@ -3674,7 +3674,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Select label
</label>
Expand Down Expand Up @@ -3798,7 +3798,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Label
</label>
Expand Down Expand Up @@ -3865,7 +3865,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Label
</label>
Expand Down Expand Up @@ -3989,7 +3989,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Error
</label>
Expand Down Expand Up @@ -4050,7 +4050,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Disabled
</label>
Expand Down Expand Up @@ -4112,7 +4112,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Without placeholder (nullable)
</label>
Expand Down Expand Up @@ -4172,7 +4172,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
List options width
</label>
Expand Down Expand Up @@ -4239,7 +4239,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Error
</label>
Expand Down Expand Up @@ -4300,7 +4300,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Disabled
</label>
Expand Down Expand Up @@ -4362,7 +4362,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
Without placeholder (nullable)
</label>
Expand Down Expand Up @@ -4422,7 +4422,7 @@ Object {
value=""
/>
<label
class="absolute text-moon-12 text-trunks z-[2] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
class="absolute text-moon-12 text-trunks z-[1] transition-all ease-in-out duration-200 start-4 w-auto -top-0.5 !inset-x-0 whitespace-nowrap overflow-x-hidden"
>
List options width
</label>
Expand Down
Loading

0 comments on commit 60aea27

Please sign in to comment.