@misoto22/kioku-ui 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/Alert/Alert.d.ts +7 -0
- package/dist/Alert/Alert.doc.d.ts +11 -0
- package/dist/Alert/Alert.doc.js +15 -0
- package/dist/Alert/Alert.js +149 -0
- package/dist/Alert/index.d.ts +1 -0
- package/dist/Alert/index.js +2 -0
- package/dist/AsyncState/AsyncState.d.ts +30 -0
- package/dist/AsyncState/AsyncState.doc.d.ts +16 -0
- package/dist/AsyncState/AsyncState.doc.js +16 -0
- package/dist/AsyncState/AsyncState.js +36 -0
- package/dist/AsyncState/index.d.ts +1 -0
- package/dist/AsyncState/index.js +2 -0
- package/dist/Badge/Badge.d.ts +10 -0
- package/dist/Badge/Badge.doc.d.ts +11 -0
- package/dist/Badge/Badge.doc.js +12 -0
- package/dist/Badge/Badge.js +58 -0
- package/dist/Badge/index.d.ts +1 -0
- package/dist/Badge/index.js +2 -0
- package/dist/Button/Button.d.ts +18 -0
- package/dist/Button/Button.doc.d.ts +11 -0
- package/dist/Button/Button.doc.js +18 -0
- package/dist/Button/Button.js +151 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/Button/index.js +2 -0
- package/dist/Card/Card.d.ts +6 -0
- package/dist/Card/Card.doc.d.ts +11 -0
- package/dist/Card/Card.doc.js +15 -0
- package/dist/Card/Card.js +41 -0
- package/dist/Card/index.d.ts +1 -0
- package/dist/Card/index.js +2 -0
- package/dist/CardFooter/CardFooter.d.ts +3 -0
- package/dist/CardFooter/CardFooter.doc.d.ts +11 -0
- package/dist/CardFooter/CardFooter.doc.js +12 -0
- package/dist/CardFooter/CardFooter.js +16 -0
- package/dist/CardFooter/index.d.ts +1 -0
- package/dist/CardFooter/index.js +2 -0
- package/dist/CardHeader/CardHeader.d.ts +3 -0
- package/dist/CardHeader/CardHeader.doc.d.ts +11 -0
- package/dist/CardHeader/CardHeader.doc.js +12 -0
- package/dist/CardHeader/CardHeader.js +16 -0
- package/dist/CardHeader/index.d.ts +1 -0
- package/dist/CardHeader/index.js +2 -0
- package/dist/Center/Center.d.ts +3 -0
- package/dist/Center/Center.doc.d.ts +11 -0
- package/dist/Center/Center.doc.js +12 -0
- package/dist/Center/Center.js +15 -0
- package/dist/Center/index.d.ts +1 -0
- package/dist/Center/index.js +2 -0
- package/dist/Divider/Divider.d.ts +3 -0
- package/dist/Divider/Divider.doc.d.ts +11 -0
- package/dist/Divider/Divider.doc.js +12 -0
- package/dist/Divider/Divider.js +12 -0
- package/dist/Divider/index.d.ts +1 -0
- package/dist/Divider/index.js +2 -0
- package/dist/EmptyState/EmptyState.d.ts +11 -0
- package/dist/EmptyState/EmptyState.doc.d.ts +16 -0
- package/dist/EmptyState/EmptyState.doc.js +25 -0
- package/dist/EmptyState/EmptyState.js +55 -0
- package/dist/EmptyState/index.d.ts +1 -0
- package/dist/EmptyState/index.js +2 -0
- package/dist/Field/Field.d.ts +21 -0
- package/dist/Field/Field.doc.d.ts +16 -0
- package/dist/Field/Field.doc.js +28 -0
- package/dist/Field/Field.js +117 -0
- package/dist/Field/index.d.ts +1 -0
- package/dist/Field/index.js +2 -0
- package/dist/Grid/Grid.d.ts +7 -0
- package/dist/Grid/Grid.doc.d.ts +11 -0
- package/dist/Grid/Grid.doc.js +15 -0
- package/dist/Grid/Grid.js +76 -0
- package/dist/Grid/index.d.ts +1 -0
- package/dist/Grid/index.js +2 -0
- package/dist/Heading/Heading.d.ts +293 -0
- package/dist/Heading/Heading.doc.d.ts +16 -0
- package/dist/Heading/Heading.doc.js +19 -0
- package/dist/Heading/Heading.js +47 -0
- package/dist/Heading/index.d.ts +1 -0
- package/dist/Heading/index.js +2 -0
- package/dist/IconButton/IconButton.d.ts +9 -0
- package/dist/IconButton/IconButton.doc.d.ts +16 -0
- package/dist/IconButton/IconButton.doc.js +22 -0
- package/dist/IconButton/IconButton.js +11 -0
- package/dist/IconButton/index.d.ts +1 -0
- package/dist/IconButton/index.js +2 -0
- package/dist/MetricGrid/MetricGrid.d.ts +10 -0
- package/dist/MetricGrid/MetricGrid.doc.d.ts +12 -0
- package/dist/MetricGrid/MetricGrid.doc.js +13 -0
- package/dist/MetricGrid/MetricGrid.js +37 -0
- package/dist/MetricGrid/index.d.ts +1 -0
- package/dist/MetricGrid/index.js +2 -0
- package/dist/Section/Section.d.ts +6 -0
- package/dist/Section/Section.doc.d.ts +11 -0
- package/dist/Section/Section.doc.js +12 -0
- package/dist/Section/Section.js +49 -0
- package/dist/Section/index.d.ts +1 -0
- package/dist/Section/index.js +2 -0
- package/dist/SegmentedControl/SegmentedControl.d.ts +31 -0
- package/dist/SegmentedControl/SegmentedControl.doc.d.ts +16 -0
- package/dist/SegmentedControl/SegmentedControl.doc.js +34 -0
- package/dist/SegmentedControl/SegmentedControl.js +108 -0
- package/dist/SegmentedControl/index.d.ts +1 -0
- package/dist/SegmentedControl/index.js +2 -0
- package/dist/Skeleton/Skeleton.d.ts +5 -0
- package/dist/Skeleton/Skeleton.doc.d.ts +11 -0
- package/dist/Skeleton/Skeleton.doc.js +12 -0
- package/dist/Skeleton/Skeleton.js +20 -0
- package/dist/Skeleton/index.d.ts +1 -0
- package/dist/Skeleton/index.js +2 -0
- package/dist/Spinner/Spinner.d.ts +6 -0
- package/dist/Spinner/Spinner.doc.d.ts +12 -0
- package/dist/Spinner/Spinner.doc.js +13 -0
- package/dist/Spinner/Spinner.js +25 -0
- package/dist/Spinner/index.d.ts +1 -0
- package/dist/Spinner/index.js +2 -0
- package/dist/Stack/Stack.d.ts +7 -0
- package/dist/Stack/Stack.doc.d.ts +11 -0
- package/dist/Stack/Stack.doc.js +15 -0
- package/dist/Stack/Stack.js +77 -0
- package/dist/Stack/index.d.ts +1 -0
- package/dist/Stack/index.js +2 -0
- package/dist/StatusDot/StatusDot.d.ts +8 -0
- package/dist/StatusDot/StatusDot.doc.d.ts +16 -0
- package/dist/StatusDot/StatusDot.doc.js +16 -0
- package/dist/StatusDot/StatusDot.js +46 -0
- package/dist/StatusDot/index.d.ts +1 -0
- package/dist/StatusDot/index.js +2 -0
- package/dist/Table/Table.d.ts +20 -0
- package/dist/Table/Table.doc.d.ts +92 -0
- package/dist/Table/Table.doc.js +94 -0
- package/dist/Table/Table.js +205 -0
- package/dist/Table/index.d.ts +1 -0
- package/dist/Table/index.js +2 -0
- package/dist/Text/Text.d.ts +7 -0
- package/dist/Text/Text.doc.d.ts +11 -0
- package/dist/Text/Text.doc.js +15 -0
- package/dist/Text/Text.js +50 -0
- package/dist/Text/index.d.ts +1 -0
- package/dist/Text/index.js +2 -0
- package/dist/TextArea/TextArea.d.ts +16 -0
- package/dist/TextArea/TextArea.doc.d.ts +11 -0
- package/dist/TextArea/TextArea.doc.js +30 -0
- package/dist/TextArea/TextArea.js +47 -0
- package/dist/TextArea/index.d.ts +1 -0
- package/dist/TextArea/index.js +2 -0
- package/dist/TextInput/TextInput.d.ts +16 -0
- package/dist/TextInput/TextInput.doc.d.ts +11 -0
- package/dist/TextInput/TextInput.doc.js +30 -0
- package/dist/TextInput/TextInput.js +49 -0
- package/dist/TextInput/index.d.ts +1 -0
- package/dist/TextInput/index.js +2 -0
- package/dist/Toggle/Toggle.d.ts +16 -0
- package/dist/Toggle/Toggle.doc.d.ts +11 -0
- package/dist/Toggle/Toggle.doc.js +21 -0
- package/dist/Toggle/Toggle.js +64 -0
- package/dist/Toggle/index.d.ts +1 -0
- package/dist/Toggle/index.js +2 -0
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +3 -0
- package/dist/VisuallyHidden/VisuallyHidden.doc.d.ts +11 -0
- package/dist/VisuallyHidden/VisuallyHidden.doc.js +12 -0
- package/dist/VisuallyHidden/VisuallyHidden.js +15 -0
- package/dist/VisuallyHidden/index.d.ts +1 -0
- package/dist/VisuallyHidden/index.js +2 -0
- package/dist/authoring.stylex.d.ts +75 -0
- package/dist/authoring.stylex.js +77 -0
- package/dist/components/Alert.d.ts +7 -0
- package/dist/components/Alert.doc.d.ts +11 -0
- package/dist/components/Alert.doc.js +15 -0
- package/dist/components/Alert.js +149 -0
- package/dist/components/AsyncState.d.ts +30 -0
- package/dist/components/AsyncState.doc.d.ts +16 -0
- package/dist/components/AsyncState.doc.js +16 -0
- package/dist/components/AsyncState.js +36 -0
- package/dist/components/Badge.d.ts +10 -0
- package/dist/components/Badge.doc.d.ts +11 -0
- package/dist/components/Badge.doc.js +12 -0
- package/dist/components/Badge.js +58 -0
- package/dist/components/Button.d.ts +18 -0
- package/dist/components/Button.doc.d.ts +11 -0
- package/dist/components/Button.doc.js +18 -0
- package/dist/components/Button.js +151 -0
- package/dist/components/Card.d.ts +6 -0
- package/dist/components/Card.doc.d.ts +11 -0
- package/dist/components/Card.doc.js +15 -0
- package/dist/components/Card.js +41 -0
- package/dist/components/CardFooter.d.ts +3 -0
- package/dist/components/CardFooter.doc.d.ts +11 -0
- package/dist/components/CardFooter.doc.js +12 -0
- package/dist/components/CardFooter.js +16 -0
- package/dist/components/CardHeader.d.ts +3 -0
- package/dist/components/CardHeader.doc.d.ts +11 -0
- package/dist/components/CardHeader.doc.js +12 -0
- package/dist/components/CardHeader.js +16 -0
- package/dist/components/Center.d.ts +3 -0
- package/dist/components/Center.doc.d.ts +11 -0
- package/dist/components/Center.doc.js +12 -0
- package/dist/components/Center.js +15 -0
- package/dist/components/Divider.d.ts +3 -0
- package/dist/components/Divider.doc.d.ts +11 -0
- package/dist/components/Divider.doc.js +12 -0
- package/dist/components/Divider.js +12 -0
- package/dist/components/EmptyState.d.ts +11 -0
- package/dist/components/EmptyState.doc.d.ts +16 -0
- package/dist/components/EmptyState.doc.js +25 -0
- package/dist/components/EmptyState.js +55 -0
- package/dist/components/Field.d.ts +21 -0
- package/dist/components/Field.doc.d.ts +16 -0
- package/dist/components/Field.doc.js +28 -0
- package/dist/components/Field.js +117 -0
- package/dist/components/Grid.d.ts +7 -0
- package/dist/components/Grid.doc.d.ts +11 -0
- package/dist/components/Grid.doc.js +15 -0
- package/dist/components/Grid.js +76 -0
- package/dist/components/Heading.d.ts +293 -0
- package/dist/components/Heading.doc.d.ts +16 -0
- package/dist/components/Heading.doc.js +19 -0
- package/dist/components/Heading.js +46 -0
- package/dist/components/IconButton.d.ts +9 -0
- package/dist/components/IconButton.doc.d.ts +16 -0
- package/dist/components/IconButton.doc.js +22 -0
- package/dist/components/IconButton.js +11 -0
- package/dist/components/MetricGrid.d.ts +10 -0
- package/dist/components/MetricGrid.doc.d.ts +12 -0
- package/dist/components/MetricGrid.doc.js +13 -0
- package/dist/components/MetricGrid.js +37 -0
- package/dist/components/Section.d.ts +6 -0
- package/dist/components/Section.doc.d.ts +11 -0
- package/dist/components/Section.doc.js +12 -0
- package/dist/components/Section.js +49 -0
- package/dist/components/SegmentedControl.d.ts +31 -0
- package/dist/components/SegmentedControl.doc.d.ts +16 -0
- package/dist/components/SegmentedControl.doc.js +34 -0
- package/dist/components/SegmentedControl.js +108 -0
- package/dist/components/Skeleton.d.ts +5 -0
- package/dist/components/Skeleton.doc.d.ts +11 -0
- package/dist/components/Skeleton.doc.js +12 -0
- package/dist/components/Skeleton.js +20 -0
- package/dist/components/Spinner.d.ts +6 -0
- package/dist/components/Spinner.doc.d.ts +12 -0
- package/dist/components/Spinner.doc.js +13 -0
- package/dist/components/Spinner.js +25 -0
- package/dist/components/Stack.d.ts +7 -0
- package/dist/components/Stack.doc.d.ts +11 -0
- package/dist/components/Stack.doc.js +15 -0
- package/dist/components/Stack.js +77 -0
- package/dist/components/StatusDot.d.ts +8 -0
- package/dist/components/StatusDot.doc.d.ts +16 -0
- package/dist/components/StatusDot.doc.js +16 -0
- package/dist/components/StatusDot.js +46 -0
- package/dist/components/Table.d.ts +20 -0
- package/dist/components/Table.doc.d.ts +92 -0
- package/dist/components/Table.doc.js +94 -0
- package/dist/components/Table.js +205 -0
- package/dist/components/Text.d.ts +7 -0
- package/dist/components/Text.doc.d.ts +11 -0
- package/dist/components/Text.doc.js +15 -0
- package/dist/components/Text.js +50 -0
- package/dist/components/TextArea.d.ts +16 -0
- package/dist/components/TextArea.doc.d.ts +11 -0
- package/dist/components/TextArea.doc.js +30 -0
- package/dist/components/TextArea.js +47 -0
- package/dist/components/TextInput.d.ts +16 -0
- package/dist/components/TextInput.doc.d.ts +11 -0
- package/dist/components/TextInput.doc.js +30 -0
- package/dist/components/TextInput.js +49 -0
- package/dist/components/Toggle.d.ts +16 -0
- package/dist/components/Toggle.doc.d.ts +11 -0
- package/dist/components/Toggle.doc.js +21 -0
- package/dist/components/Toggle.js +64 -0
- package/dist/components/VisuallyHidden.d.ts +3 -0
- package/dist/components/VisuallyHidden.doc.d.ts +11 -0
- package/dist/components/VisuallyHidden.doc.js +12 -0
- package/dist/components/VisuallyHidden.js +15 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/index.js +28 -0
- package/dist/docs/index.d.ts +33 -0
- package/dist/docs/index.js +33 -0
- package/dist/docs/types.d.ts +15 -0
- package/dist/docs/types.js +25 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +32 -0
- package/dist/navigation/LinkProvider.d.ts +9 -0
- package/dist/navigation/LinkProvider.doc.d.ts +27 -0
- package/dist/navigation/LinkProvider.doc.js +27 -0
- package/dist/navigation/LinkProvider.js +22 -0
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.js +2 -0
- package/dist/styles/global.stylex.d.ts +20 -0
- package/dist/styles/global.stylex.js +22 -0
- package/dist/styles/index.css +14 -0
- package/dist/styles/reset.css +35 -0
- package/dist/styles/stylex.css +212 -0
- package/dist/theme/Theme.d.ts +24 -0
- package/dist/theme/Theme.doc.d.ts +16 -0
- package/dist/theme/Theme.doc.js +27 -0
- package/dist/theme/Theme.js +110 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.js +2 -0
- package/dist/tokens/contracts.d.ts +140 -0
- package/dist/tokens/contracts.js +102 -0
- package/package.json +93 -0
- package/src/Alert/Alert.doc.ts +21 -0
- package/src/Alert/Alert.tsx +129 -0
- package/src/Alert/index.ts +1 -0
- package/src/AsyncState/AsyncState.doc.ts +21 -0
- package/src/AsyncState/AsyncState.tsx +75 -0
- package/src/AsyncState/index.ts +5 -0
- package/src/Badge/Badge.doc.ts +15 -0
- package/src/Badge/Badge.tsx +58 -0
- package/src/Badge/index.ts +6 -0
- package/src/Button/Button.doc.ts +17 -0
- package/src/Button/Button.tsx +176 -0
- package/src/Button/index.ts +7 -0
- package/src/Card/Card.doc.ts +22 -0
- package/src/Card/Card.tsx +44 -0
- package/src/Card/index.ts +1 -0
- package/src/CardFooter/CardFooter.doc.ts +12 -0
- package/src/CardFooter/CardFooter.tsx +27 -0
- package/src/CardFooter/index.ts +1 -0
- package/src/CardHeader/CardHeader.doc.ts +12 -0
- package/src/CardHeader/CardHeader.tsx +27 -0
- package/src/CardHeader/index.ts +1 -0
- package/src/Center/Center.doc.ts +12 -0
- package/src/Center/Center.tsx +20 -0
- package/src/Center/index.ts +1 -0
- package/src/Divider/Divider.doc.ts +12 -0
- package/src/Divider/Divider.tsx +20 -0
- package/src/Divider/index.ts +1 -0
- package/src/EmptyState/EmptyState.doc.ts +31 -0
- package/src/EmptyState/EmptyState.tsx +87 -0
- package/src/EmptyState/index.ts +6 -0
- package/src/Field/Field.doc.ts +34 -0
- package/src/Field/Field.tsx +126 -0
- package/src/Field/index.ts +6 -0
- package/src/Grid/Grid.doc.ts +16 -0
- package/src/Grid/Grid.tsx +54 -0
- package/src/Grid/index.ts +1 -0
- package/src/Heading/Heading.doc.ts +26 -0
- package/src/Heading/Heading.tsx +48 -0
- package/src/Heading/index.ts +1 -0
- package/src/IconButton/IconButton.doc.ts +24 -0
- package/src/IconButton/IconButton.tsx +18 -0
- package/src/IconButton/index.ts +1 -0
- package/src/MetricGrid/MetricGrid.doc.ts +19 -0
- package/src/MetricGrid/MetricGrid.tsx +72 -0
- package/src/MetricGrid/index.ts +5 -0
- package/src/Section/Section.doc.ts +12 -0
- package/src/Section/Section.tsx +38 -0
- package/src/Section/index.ts +1 -0
- package/src/SegmentedControl/SegmentedControl.doc.ts +51 -0
- package/src/SegmentedControl/SegmentedControl.tsx +238 -0
- package/src/SegmentedControl/index.ts +5 -0
- package/src/Skeleton/Skeleton.doc.ts +15 -0
- package/src/Skeleton/Skeleton.tsx +45 -0
- package/src/Skeleton/index.ts +1 -0
- package/src/Spinner/Spinner.doc.ts +19 -0
- package/src/Spinner/Spinner.tsx +47 -0
- package/src/Spinner/index.ts +1 -0
- package/src/Stack/Stack.doc.ts +13 -0
- package/src/Stack/Stack.tsx +57 -0
- package/src/Stack/index.ts +1 -0
- package/src/StatusDot/StatusDot.doc.ts +23 -0
- package/src/StatusDot/StatusDot.tsx +35 -0
- package/src/StatusDot/index.ts +1 -0
- package/src/Table/Table.doc.ts +104 -0
- package/src/Table/Table.tsx +222 -0
- package/src/Table/index.ts +18 -0
- package/src/Text/Text.doc.ts +17 -0
- package/src/Text/Text.tsx +43 -0
- package/src/Text/index.ts +1 -0
- package/src/TextArea/TextArea.doc.ts +43 -0
- package/src/TextArea/TextArea.tsx +119 -0
- package/src/TextArea/index.ts +1 -0
- package/src/TextInput/TextInput.doc.ts +43 -0
- package/src/TextInput/TextInput.tsx +122 -0
- package/src/TextInput/index.ts +1 -0
- package/src/Toggle/Toggle.doc.ts +30 -0
- package/src/Toggle/Toggle.tsx +139 -0
- package/src/Toggle/index.ts +1 -0
- package/src/VisuallyHidden/VisuallyHidden.doc.ts +18 -0
- package/src/VisuallyHidden/VisuallyHidden.tsx +28 -0
- package/src/VisuallyHidden/index.ts +1 -0
- package/src/authoring.stylex.ts +76 -0
- package/src/docs/index.ts +122 -0
- package/src/docs/types.ts +51 -0
- package/src/index.ts +102 -0
- package/src/navigation/LinkProvider.doc.ts +32 -0
- package/src/navigation/LinkProvider.tsx +32 -0
- package/src/navigation/index.ts +7 -0
- package/src/styles/global.stylex.ts +23 -0
- package/src/styles/index.css +14 -0
- package/src/styles/reset.css +35 -0
- package/src/theme/Theme.doc.ts +38 -0
- package/src/theme/Theme.tsx +195 -0
- package/src/theme/index.ts +9 -0
- package/src/tokens/contracts.ts +210 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const cardDoc = {
|
|
3
|
+
name: 'Card',
|
|
4
|
+
description: 'Groups self-contained content in a token-backed article surface.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'children',
|
|
7
|
+
description: 'The self-contained article content.'
|
|
8
|
+
}, {
|
|
9
|
+
name: 'elevation',
|
|
10
|
+
description: 'Optional boundary treatment: "none" uses a border; "low" and "medium" use only the matching elevation.'
|
|
11
|
+
}],
|
|
12
|
+
inheritedProps: ['HTMLAttributes<HTMLElement> except className and children'],
|
|
13
|
+
example: '<Card aria-label="Summary" elevation="none"><Text>Content</Text></Card>',
|
|
14
|
+
storyId: 'core-card--default'
|
|
15
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
import { semanticTokens } from '../authoring.stylex.js';
|
|
3
|
+
import "../styles/stylex.css";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
const styles = {
|
|
6
|
+
base: {
|
|
7
|
+
kWkggS: "x1ixvsy6",
|
|
8
|
+
kaIpWk: "x7xrhi9",
|
|
9
|
+
kMwMTN: "x1y4yzzg",
|
|
10
|
+
kmVPX3: "x167l562",
|
|
11
|
+
$$css: true
|
|
12
|
+
},
|
|
13
|
+
none: {
|
|
14
|
+
kVAM5u: "xilcjya",
|
|
15
|
+
ksu8eU: "x1jnjmdy",
|
|
16
|
+
kMzoRj: "xpxnlqs",
|
|
17
|
+
kGVxlE: "x1gnnqk1",
|
|
18
|
+
$$css: true
|
|
19
|
+
},
|
|
20
|
+
low: {
|
|
21
|
+
ksu8eU: "xng3xce",
|
|
22
|
+
kGVxlE: "x1elh21b",
|
|
23
|
+
$$css: true
|
|
24
|
+
},
|
|
25
|
+
medium: {
|
|
26
|
+
ksu8eU: "xng3xce",
|
|
27
|
+
kGVxlE: "x165nt33",
|
|
28
|
+
$$css: true
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export function Card({
|
|
32
|
+
children,
|
|
33
|
+
elevation = 'none',
|
|
34
|
+
...props
|
|
35
|
+
}) {
|
|
36
|
+
return /*#__PURE__*/_jsx("article", {
|
|
37
|
+
...props,
|
|
38
|
+
...stylex.props(styles.base, styles[elevation]),
|
|
39
|
+
children: children
|
|
40
|
+
});
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Card, type CardElevation, type CardProps } from './Card.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const cardFooterDoc = {
|
|
3
|
+
name: 'CardFooter',
|
|
4
|
+
description: 'Provides a padded native footer with an inward divider when composed directly inside a Card.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'children',
|
|
7
|
+
description: 'The footer content.'
|
|
8
|
+
}],
|
|
9
|
+
inheritedProps: ['HTMLAttributes<HTMLElement> except className and children'],
|
|
10
|
+
example: '<Card><Text>Content</Text><CardFooter><Text>Updated now</Text></CardFooter></Card>',
|
|
11
|
+
storyId: 'core-card--card-footer'
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
import { semanticTokens } from '../authoring.stylex.js';
|
|
3
|
+
import "../styles/stylex.css";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export function CardFooter({
|
|
6
|
+
children,
|
|
7
|
+
...props
|
|
8
|
+
}) {
|
|
9
|
+
return /*#__PURE__*/_jsx("footer", {
|
|
10
|
+
...props,
|
|
11
|
+
...{
|
|
12
|
+
className: "x1pe616k x4tqos1 xlyo07a x1yc2x4e x19a07bp x1suer1w x17uk85o x92ksv2"
|
|
13
|
+
},
|
|
14
|
+
children: children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CardFooter, type CardFooterProps } from './CardFooter.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const cardHeaderDoc = {
|
|
3
|
+
name: 'CardHeader',
|
|
4
|
+
description: 'Provides a padded native header with an inward divider when composed directly inside a Card.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'children',
|
|
7
|
+
description: 'The header content.'
|
|
8
|
+
}],
|
|
9
|
+
inheritedProps: ['HTMLAttributes<HTMLElement> except className and children'],
|
|
10
|
+
example: '<Card><CardHeader><Heading level={2}>Card title</Heading></CardHeader><Text>Content</Text></Card>',
|
|
11
|
+
storyId: 'core-card--card-header'
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
import { semanticTokens } from '../authoring.stylex.js';
|
|
3
|
+
import "../styles/stylex.css";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export function CardHeader({
|
|
6
|
+
children,
|
|
7
|
+
...props
|
|
8
|
+
}) {
|
|
9
|
+
return /*#__PURE__*/_jsx("header", {
|
|
10
|
+
...props,
|
|
11
|
+
...{
|
|
12
|
+
className: "x1k3hjl9 x1w5tod1 xeq6m5c x5845i8 x1sx9ztw x1suer1w x17uk85o x92ksv2"
|
|
13
|
+
},
|
|
14
|
+
children: children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CardHeader, type CardHeaderProps } from './CardHeader.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const centerDoc = {
|
|
3
|
+
name: 'Center',
|
|
4
|
+
description: 'Centers child content on both layout axes.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'children',
|
|
7
|
+
description: 'The content to center.'
|
|
8
|
+
}],
|
|
9
|
+
inheritedProps: ['HTMLAttributes<HTMLDivElement> except className and children'],
|
|
10
|
+
example: '<Center><Text>Centered content</Text></Center>',
|
|
11
|
+
storyId: 'core-center--default'
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
import "../styles/stylex.css";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
export function Center({
|
|
5
|
+
children,
|
|
6
|
+
...props
|
|
7
|
+
}) {
|
|
8
|
+
return /*#__PURE__*/_jsx("div", {
|
|
9
|
+
...props,
|
|
10
|
+
...{
|
|
11
|
+
className: "x6s0dn4 x78zum5 xl56j7k"
|
|
12
|
+
},
|
|
13
|
+
children: children
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Center, type CenterProps } from './Center.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const dividerDoc = {
|
|
3
|
+
name: 'Divider',
|
|
4
|
+
description: 'Renders a token-backed native horizontal separator.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'aria-label',
|
|
7
|
+
description: 'Optional accessible separator label.'
|
|
8
|
+
}],
|
|
9
|
+
inheritedProps: ['HTMLAttributes<HTMLHRElement> except className'],
|
|
10
|
+
example: '<Divider aria-label="Separates summary from details" />',
|
|
11
|
+
storyId: 'core-divider--default'
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
import { semanticTokens } from '../authoring.stylex.js';
|
|
3
|
+
import "../styles/stylex.css";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export function Divider(props) {
|
|
6
|
+
return /*#__PURE__*/_jsx("hr", {
|
|
7
|
+
...props,
|
|
8
|
+
...{
|
|
9
|
+
className: "x1pe616k x4tqos1 xlyo07a x1ghz6dp"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Divider, type DividerProps } from './Divider.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type EmptyStateSize = 'compact' | 'default';
|
|
3
|
+
export interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'title'> {
|
|
4
|
+
readonly action?: ReactNode;
|
|
5
|
+
readonly detail?: ReactNode;
|
|
6
|
+
readonly size?: EmptyStateSize;
|
|
7
|
+
readonly title: ReactNode;
|
|
8
|
+
readonly visual?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function EmptyState({ action, detail, size, title, visual, ...props }: EmptyStateProps): import("react").JSX.Element;
|
|
11
|
+
export declare function EmptyStateContent({ action, detail, size, title, visual, }: EmptyStateProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const emptyStateDoc: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
props: ({
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
required?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
required: true;
|
|
12
|
+
})[];
|
|
13
|
+
inheritedProps: string[];
|
|
14
|
+
example: string;
|
|
15
|
+
storyId: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const emptyStateDoc = {
|
|
3
|
+
name: 'EmptyState',
|
|
4
|
+
description: 'Presents an announced empty result with optional detail and action.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'action',
|
|
7
|
+
description: 'Provides an optional consumer-owned recovery action.'
|
|
8
|
+
}, {
|
|
9
|
+
name: 'detail',
|
|
10
|
+
description: 'Provides optional supporting empty-state content.'
|
|
11
|
+
}, {
|
|
12
|
+
name: 'size',
|
|
13
|
+
description: 'Adjusts container padding and grouping rhythm.'
|
|
14
|
+
}, {
|
|
15
|
+
name: 'title',
|
|
16
|
+
description: 'Names the empty state.',
|
|
17
|
+
required: true
|
|
18
|
+
}, {
|
|
19
|
+
name: 'visual',
|
|
20
|
+
description: 'Provides optional consumer-owned visual content before the copy; consumers own its accessible semantics.'
|
|
21
|
+
}],
|
|
22
|
+
inheritedProps: ['HTMLAttributes<HTMLDivElement> except className and title'],
|
|
23
|
+
example: '<EmptyState title="No results" detail="Try another query." size="compact" />',
|
|
24
|
+
storyId: 'core-empty-state--default'
|
|
25
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
import { semanticTokens } from '../authoring.stylex.js';
|
|
3
|
+
import "../styles/stylex.css";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
const copyWidth = `calc(${semanticTokens.spacing2xl} + ${semanticTokens.spacing2xl} + ${semanticTokens.spacing2xl} + ${semanticTokens.spacing2xl} + ${semanticTokens.spacing2xl} + ${semanticTokens.spacing2xl} + ${semanticTokens.spacing2xl} + ${semanticTokens.spacing2xl} + ${semanticTokens.spacing2xl} + ${semanticTokens.spacing2xl})`;
|
|
6
|
+
export function EmptyState({
|
|
7
|
+
action,
|
|
8
|
+
detail,
|
|
9
|
+
size = 'default',
|
|
10
|
+
title,
|
|
11
|
+
visual,
|
|
12
|
+
...props
|
|
13
|
+
}) {
|
|
14
|
+
return /*#__PURE__*/_jsx("div", {
|
|
15
|
+
...props,
|
|
16
|
+
"aria-live": "polite",
|
|
17
|
+
role: "status",
|
|
18
|
+
children: /*#__PURE__*/_jsx(EmptyStateContent, {
|
|
19
|
+
action: action,
|
|
20
|
+
detail: detail,
|
|
21
|
+
size: size,
|
|
22
|
+
title: title,
|
|
23
|
+
visual: visual
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export function EmptyStateContent({
|
|
28
|
+
action,
|
|
29
|
+
detail,
|
|
30
|
+
size = 'default',
|
|
31
|
+
title,
|
|
32
|
+
visual
|
|
33
|
+
}) {
|
|
34
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
35
|
+
...{
|
|
36
|
+
0: {
|
|
37
|
+
className: "x6s0dn4 x1y4yzzg x78zum5 xdt5ytf xj0sio9 xtl099x x1wib74s x2b8uid"
|
|
38
|
+
},
|
|
39
|
+
1: {
|
|
40
|
+
className: "x6s0dn4 x1y4yzzg x78zum5 xdt5ytf xj0sio9 x2b8uid x1ap6kct x1cfciu7"
|
|
41
|
+
}
|
|
42
|
+
}[!!(size === 'compact') << 0],
|
|
43
|
+
children: [visual, /*#__PURE__*/_jsx("p", {
|
|
44
|
+
...{
|
|
45
|
+
className: "x69it5h x1fkw5ar x1sa4947 x1ghz6dp x6wfg6j"
|
|
46
|
+
},
|
|
47
|
+
children: title
|
|
48
|
+
}), detail ? /*#__PURE__*/_jsx("p", {
|
|
49
|
+
...{
|
|
50
|
+
className: "x1ti3rys x1ezks3f x1ghz6dp x6wfg6j"
|
|
51
|
+
},
|
|
52
|
+
children: detail
|
|
53
|
+
}) : null, action]
|
|
54
|
+
});
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmptyState, EmptyStateContent, type EmptyStateProps, type EmptyStateSize, } from './EmptyState.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import type { StatusTone } from '../Badge/index.js';
|
|
3
|
+
interface FieldContextValue {
|
|
4
|
+
readonly controlId: string;
|
|
5
|
+
readonly describedBy: string | undefined;
|
|
6
|
+
readonly invalid: boolean;
|
|
7
|
+
readonly required: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** Native requirement metadata displayed alongside the field label. */
|
|
10
|
+
export type FieldNecessity = 'required' | 'optional';
|
|
11
|
+
export interface FieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
12
|
+
readonly controlId?: string;
|
|
13
|
+
readonly description?: ReactNode;
|
|
14
|
+
readonly label: ReactNode;
|
|
15
|
+
readonly necessity?: FieldNecessity;
|
|
16
|
+
readonly status?: ReactNode;
|
|
17
|
+
readonly statusTone?: StatusTone;
|
|
18
|
+
}
|
|
19
|
+
export declare function Field({ children, controlId, description, label, necessity, status, statusTone, ...props }: FieldProps): import("react").JSX.Element;
|
|
20
|
+
export declare function useFieldControl(): FieldContextValue | null;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const fieldDoc: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
props: ({
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
required?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
required: true;
|
|
12
|
+
})[];
|
|
13
|
+
inheritedProps: string[];
|
|
14
|
+
example: string;
|
|
15
|
+
storyId: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const fieldDoc = {
|
|
3
|
+
name: 'Field',
|
|
4
|
+
description: 'Connects a form control to its label, description, and validation status.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'controlId',
|
|
7
|
+
description: 'Overrides the generated form-control identifier.'
|
|
8
|
+
}, {
|
|
9
|
+
name: 'description',
|
|
10
|
+
description: 'Adds supporting text to the control description.'
|
|
11
|
+
}, {
|
|
12
|
+
name: 'label',
|
|
13
|
+
description: 'Provides the control label.',
|
|
14
|
+
required: true
|
|
15
|
+
}, {
|
|
16
|
+
name: 'necessity',
|
|
17
|
+
description: 'Displays required or optional metadata and supplies the native required default to supported text controls.'
|
|
18
|
+
}, {
|
|
19
|
+
name: 'status',
|
|
20
|
+
description: 'Adds validation or status text to the control description.'
|
|
21
|
+
}, {
|
|
22
|
+
name: 'statusTone',
|
|
23
|
+
description: 'Selects status color, announcement, and invalid semantics.'
|
|
24
|
+
}],
|
|
25
|
+
inheritedProps: ['HTMLAttributes<HTMLDivElement> except className'],
|
|
26
|
+
example: '<Field label="Email" necessity="required"><TextInput /></Field>',
|
|
27
|
+
storyId: 'core-field--default'
|
|
28
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
import { createContext, useContext, useId } from 'react';
|
|
3
|
+
import { semanticTokens } from '../authoring.stylex.js';
|
|
4
|
+
import "../styles/stylex.css";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const FieldContext = createContext(null);
|
|
7
|
+
const styles = {
|
|
8
|
+
root: {
|
|
9
|
+
k1xSpc: "xrvj5dj",
|
|
10
|
+
kOIVth: "x1iwn5ga",
|
|
11
|
+
$$css: true
|
|
12
|
+
},
|
|
13
|
+
label: {
|
|
14
|
+
kGNEyG: "x1pha0wt",
|
|
15
|
+
kMwMTN: "x1y4yzzg",
|
|
16
|
+
k1xSpc: "x78zum5",
|
|
17
|
+
kMv6JI: "xj0sio9",
|
|
18
|
+
kGuDYH: "xltg2ad",
|
|
19
|
+
k63SB2: "x1m30uz7",
|
|
20
|
+
kOIVth: "x1ap6kct",
|
|
21
|
+
kjj79g: "x1qughib",
|
|
22
|
+
$$css: true
|
|
23
|
+
},
|
|
24
|
+
annotation: {
|
|
25
|
+
kMwMTN: "x1mgtvnk",
|
|
26
|
+
k63SB2: "x1jcbhmk",
|
|
27
|
+
$$css: true
|
|
28
|
+
},
|
|
29
|
+
message: {
|
|
30
|
+
kMv6JI: "xj0sio9",
|
|
31
|
+
kGuDYH: "xltg2ad",
|
|
32
|
+
kogj98: "x1ghz6dp",
|
|
33
|
+
$$css: true
|
|
34
|
+
},
|
|
35
|
+
description: {
|
|
36
|
+
kMwMTN: "x17y7oyd",
|
|
37
|
+
$$css: true
|
|
38
|
+
},
|
|
39
|
+
info: {
|
|
40
|
+
kMwMTN: "x1ursi0k",
|
|
41
|
+
$$css: true
|
|
42
|
+
},
|
|
43
|
+
success: {
|
|
44
|
+
kMwMTN: "xw2tli",
|
|
45
|
+
$$css: true
|
|
46
|
+
},
|
|
47
|
+
warning: {
|
|
48
|
+
kMwMTN: "x6rqny5",
|
|
49
|
+
$$css: true
|
|
50
|
+
},
|
|
51
|
+
danger: {
|
|
52
|
+
kMwMTN: "x8bm3zx",
|
|
53
|
+
$$css: true
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** Native requirement metadata displayed alongside the field label. */
|
|
58
|
+
|
|
59
|
+
export function Field({
|
|
60
|
+
children,
|
|
61
|
+
controlId,
|
|
62
|
+
description,
|
|
63
|
+
label,
|
|
64
|
+
necessity,
|
|
65
|
+
status,
|
|
66
|
+
statusTone = 'danger',
|
|
67
|
+
...props
|
|
68
|
+
}) {
|
|
69
|
+
const generatedId = useId();
|
|
70
|
+
const resolvedControlId = controlId ?? `${generatedId}-control`;
|
|
71
|
+
const descriptionId = description ? `${generatedId}-description` : undefined;
|
|
72
|
+
const statusId = status ? `${generatedId}-status` : undefined;
|
|
73
|
+
const describedBy = [descriptionId, statusId].filter(Boolean).join(' ') || undefined;
|
|
74
|
+
return /*#__PURE__*/_jsx(FieldContext.Provider, {
|
|
75
|
+
value: {
|
|
76
|
+
controlId: resolvedControlId,
|
|
77
|
+
describedBy,
|
|
78
|
+
invalid: Boolean(status && statusTone === 'danger'),
|
|
79
|
+
required: necessity === 'required'
|
|
80
|
+
},
|
|
81
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
82
|
+
...props,
|
|
83
|
+
...{
|
|
84
|
+
className: "xrvj5dj x1iwn5ga"
|
|
85
|
+
},
|
|
86
|
+
children: [/*#__PURE__*/_jsxs("label", {
|
|
87
|
+
htmlFor: resolvedControlId,
|
|
88
|
+
...{
|
|
89
|
+
className: "x1pha0wt x1y4yzzg x78zum5 xj0sio9 xltg2ad x1m30uz7 x1ap6kct x1qughib"
|
|
90
|
+
},
|
|
91
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
92
|
+
children: label
|
|
93
|
+
}), necessity ? /*#__PURE__*/_jsx("span", {
|
|
94
|
+
...{
|
|
95
|
+
className: "x1mgtvnk x1jcbhmk"
|
|
96
|
+
},
|
|
97
|
+
children: ` (${necessity})`
|
|
98
|
+
}) : null]
|
|
99
|
+
}), children, description ? /*#__PURE__*/_jsx("p", {
|
|
100
|
+
id: descriptionId,
|
|
101
|
+
...{
|
|
102
|
+
className: "xj0sio9 xltg2ad x1ghz6dp x17y7oyd"
|
|
103
|
+
},
|
|
104
|
+
children: description
|
|
105
|
+
}) : null, status ? /*#__PURE__*/_jsx("p", {
|
|
106
|
+
"aria-live": statusTone === 'danger' ? 'assertive' : 'polite',
|
|
107
|
+
id: statusId,
|
|
108
|
+
role: statusTone === 'danger' ? 'alert' : 'status',
|
|
109
|
+
...stylex.props(styles.message, styles[statusTone]),
|
|
110
|
+
children: status
|
|
111
|
+
}) : null]
|
|
112
|
+
})
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
export function useFieldControl() {
|
|
116
|
+
return useContext(FieldContext);
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Field, useFieldControl, type FieldNecessity, type FieldProps, } from './Field.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import type { Space } from '../Stack/index.js';
|
|
3
|
+
export interface GridProps extends Omit<HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
4
|
+
readonly columns?: 1 | 2 | 3 | 4;
|
|
5
|
+
readonly gap?: Space;
|
|
6
|
+
}
|
|
7
|
+
export declare function Grid({ columns, gap, children, ...props }: GridProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const gridDoc = {
|
|
3
|
+
name: 'Grid',
|
|
4
|
+
description: 'Arranges content in a fixed, semantic-token-spaced grid.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'columns',
|
|
7
|
+
description: 'Optional number of columns from 1 through 4.'
|
|
8
|
+
}, {
|
|
9
|
+
name: 'gap',
|
|
10
|
+
description: 'Optional semantic gap token.'
|
|
11
|
+
}],
|
|
12
|
+
inheritedProps: ['HTMLAttributes<HTMLDivElement> except className'],
|
|
13
|
+
example: '<Grid columns={2}><Text>First</Text><Text>Second</Text></Grid>',
|
|
14
|
+
storyId: 'core-grid--default'
|
|
15
|
+
};
|