@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,77 @@
|
|
|
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
|
+
k1xSpc: "x78zum5",
|
|
8
|
+
kXwgrk: "xdt5ytf",
|
|
9
|
+
$$css: true
|
|
10
|
+
},
|
|
11
|
+
gapXs: {
|
|
12
|
+
kOIVth: "x1iwn5ga",
|
|
13
|
+
$$css: true
|
|
14
|
+
},
|
|
15
|
+
gapSm: {
|
|
16
|
+
kOIVth: "x1ap6kct",
|
|
17
|
+
$$css: true
|
|
18
|
+
},
|
|
19
|
+
gapMd: {
|
|
20
|
+
kOIVth: "xtl099x",
|
|
21
|
+
$$css: true
|
|
22
|
+
},
|
|
23
|
+
gapLg: {
|
|
24
|
+
kOIVth: "x4nws80",
|
|
25
|
+
$$css: true
|
|
26
|
+
},
|
|
27
|
+
gapXl: {
|
|
28
|
+
kOIVth: "x1ws3dqe",
|
|
29
|
+
$$css: true
|
|
30
|
+
},
|
|
31
|
+
gap2xl: {
|
|
32
|
+
kOIVth: "xl3vxp",
|
|
33
|
+
$$css: true
|
|
34
|
+
},
|
|
35
|
+
alignStretch: {
|
|
36
|
+
kGNEyG: "x1qjc9v5",
|
|
37
|
+
$$css: true
|
|
38
|
+
},
|
|
39
|
+
alignStart: {
|
|
40
|
+
kGNEyG: "x1cy8zhl",
|
|
41
|
+
$$css: true
|
|
42
|
+
},
|
|
43
|
+
alignCenter: {
|
|
44
|
+
kGNEyG: "x6s0dn4",
|
|
45
|
+
$$css: true
|
|
46
|
+
},
|
|
47
|
+
alignEnd: {
|
|
48
|
+
kGNEyG: "xuk3077",
|
|
49
|
+
$$css: true
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const gaps = {
|
|
53
|
+
xs: styles.gapXs,
|
|
54
|
+
sm: styles.gapSm,
|
|
55
|
+
md: styles.gapMd,
|
|
56
|
+
lg: styles.gapLg,
|
|
57
|
+
xl: styles.gapXl,
|
|
58
|
+
'2xl': styles.gap2xl
|
|
59
|
+
};
|
|
60
|
+
const aligns = {
|
|
61
|
+
stretch: styles.alignStretch,
|
|
62
|
+
start: styles.alignStart,
|
|
63
|
+
center: styles.alignCenter,
|
|
64
|
+
end: styles.alignEnd
|
|
65
|
+
};
|
|
66
|
+
export function Stack({
|
|
67
|
+
gap = 'md',
|
|
68
|
+
align = 'stretch',
|
|
69
|
+
children,
|
|
70
|
+
...props
|
|
71
|
+
}) {
|
|
72
|
+
return /*#__PURE__*/_jsx("div", {
|
|
73
|
+
...props,
|
|
74
|
+
...stylex.props(styles.base, gaps[gap], aligns[align]),
|
|
75
|
+
children: children
|
|
76
|
+
});
|
|
77
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import type { StatusTone } from './Badge.js';
|
|
3
|
+
/** Props for a labelled live-status indicator using semantic status tones. */
|
|
4
|
+
export interface StatusDotProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'aria-label' | 'children' | 'className' | 'role'> {
|
|
5
|
+
readonly 'aria-label': string;
|
|
6
|
+
readonly tone?: StatusTone;
|
|
7
|
+
}
|
|
8
|
+
export declare function StatusDot({ tone, ...props }: StatusDotProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const statusDotDoc: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
props: ({
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
required: true;
|
|
8
|
+
} | {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
required?: undefined;
|
|
12
|
+
})[];
|
|
13
|
+
inheritedProps: string[];
|
|
14
|
+
example: string;
|
|
15
|
+
storyId: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const statusDotDoc = {
|
|
3
|
+
name: 'StatusDot',
|
|
4
|
+
description: 'Announces a compact live status indicator by its supplied label.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'aria-label',
|
|
7
|
+
description: 'Names the represented status.',
|
|
8
|
+
required: true
|
|
9
|
+
}, {
|
|
10
|
+
name: 'tone',
|
|
11
|
+
description: 'Selects one of the four semantic status tones.'
|
|
12
|
+
}],
|
|
13
|
+
inheritedProps: ['HTMLAttributes<HTMLSpanElement> except aria-label, children, className, and role'],
|
|
14
|
+
example: '<StatusDot aria-label="Service available" tone="success" />',
|
|
15
|
+
storyId: 'core-status-dot--default'
|
|
16
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
kaIpWk: "xnpwncj",
|
|
8
|
+
k1xSpc: "x1rg5ohu",
|
|
9
|
+
kZKoxP: "x1ieyhmn",
|
|
10
|
+
kzqmXN: "x1rcf1qu",
|
|
11
|
+
$$css: true
|
|
12
|
+
},
|
|
13
|
+
info: {
|
|
14
|
+
kWkggS: "x18i8t7",
|
|
15
|
+
$$css: true
|
|
16
|
+
},
|
|
17
|
+
success: {
|
|
18
|
+
kWkggS: "x1sm82us",
|
|
19
|
+
$$css: true
|
|
20
|
+
},
|
|
21
|
+
warning: {
|
|
22
|
+
kWkggS: "xe2mao8",
|
|
23
|
+
$$css: true
|
|
24
|
+
},
|
|
25
|
+
danger: {
|
|
26
|
+
kWkggS: "xpqgouk",
|
|
27
|
+
$$css: true
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** Props for a labelled live-status indicator using semantic status tones. */
|
|
32
|
+
|
|
33
|
+
export function StatusDot({
|
|
34
|
+
tone = 'info',
|
|
35
|
+
...props
|
|
36
|
+
}) {
|
|
37
|
+
return /*#__PURE__*/_jsx("span", {
|
|
38
|
+
...props,
|
|
39
|
+
"aria-live": "polite",
|
|
40
|
+
role: "status",
|
|
41
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
...stylex.props(styles.base, styles[tone])
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
2
|
+
export type TableDensity = 'compact' | 'default' | 'spacious';
|
|
3
|
+
export type TableDividers = 'rows' | 'columns' | 'grid' | 'none';
|
|
4
|
+
export interface TableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'className'> {
|
|
5
|
+
readonly density?: TableDensity;
|
|
6
|
+
readonly dividers?: TableDividers;
|
|
7
|
+
}
|
|
8
|
+
export type TableCaptionProps = Omit<HTMLAttributes<HTMLTableCaptionElement>, 'className'>;
|
|
9
|
+
export type TableHeadProps = Omit<HTMLAttributes<HTMLTableSectionElement>, 'className'>;
|
|
10
|
+
export type TableBodyProps = TableHeadProps;
|
|
11
|
+
export type TableRowProps = Omit<HTMLAttributes<HTMLTableRowElement>, 'className'>;
|
|
12
|
+
export type TableHeaderCellProps = Omit<ThHTMLAttributes<HTMLTableCellElement>, 'className'>;
|
|
13
|
+
export type TableCellProps = Omit<TdHTMLAttributes<HTMLTableCellElement>, 'className'>;
|
|
14
|
+
export declare function Table({ children, density, dividers, ...props }: TableProps): import("react").JSX.Element;
|
|
15
|
+
export declare function TableCaption({ children, ...props }: TableCaptionProps): import("react").JSX.Element;
|
|
16
|
+
export declare function TableHead({ children, ...props }: TableHeadProps): import("react").JSX.Element;
|
|
17
|
+
export declare function TableBody({ children, ...props }: TableBodyProps): import("react").JSX.Element;
|
|
18
|
+
export declare function TableRow({ children, ...props }: TableRowProps): import("react").JSX.Element;
|
|
19
|
+
export declare function TableHeaderCell({ children, scope, ...props }: TableHeaderCellProps): import("react").JSX.Element;
|
|
20
|
+
export declare function TableCell({ children, ...props }: TableCellProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const tableDoc: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
props: ({
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
required: true;
|
|
8
|
+
} | {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
required?: undefined;
|
|
12
|
+
})[];
|
|
13
|
+
inheritedProps: string[];
|
|
14
|
+
example: string;
|
|
15
|
+
storyId: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const tableCaptionDoc: {
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
props: {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
required: true;
|
|
24
|
+
}[];
|
|
25
|
+
inheritedProps: string[];
|
|
26
|
+
example: string;
|
|
27
|
+
storyId: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const tableHeadDoc: {
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
props: {
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
required: true;
|
|
36
|
+
}[];
|
|
37
|
+
inheritedProps: string[];
|
|
38
|
+
example: string;
|
|
39
|
+
storyId: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const tableBodyDoc: {
|
|
42
|
+
name: string;
|
|
43
|
+
description: string;
|
|
44
|
+
props: {
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
47
|
+
required: true;
|
|
48
|
+
}[];
|
|
49
|
+
inheritedProps: string[];
|
|
50
|
+
example: string;
|
|
51
|
+
storyId: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const tableRowDoc: {
|
|
54
|
+
name: string;
|
|
55
|
+
description: string;
|
|
56
|
+
props: {
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
required: true;
|
|
60
|
+
}[];
|
|
61
|
+
inheritedProps: string[];
|
|
62
|
+
example: string;
|
|
63
|
+
storyId: string;
|
|
64
|
+
};
|
|
65
|
+
export declare const tableHeaderCellDoc: {
|
|
66
|
+
name: string;
|
|
67
|
+
description: string;
|
|
68
|
+
props: ({
|
|
69
|
+
name: string;
|
|
70
|
+
description: string;
|
|
71
|
+
required: true;
|
|
72
|
+
} | {
|
|
73
|
+
name: string;
|
|
74
|
+
description: string;
|
|
75
|
+
required?: undefined;
|
|
76
|
+
})[];
|
|
77
|
+
inheritedProps: string[];
|
|
78
|
+
example: string;
|
|
79
|
+
storyId: string;
|
|
80
|
+
};
|
|
81
|
+
export declare const tableCellDoc: {
|
|
82
|
+
name: string;
|
|
83
|
+
description: string;
|
|
84
|
+
props: {
|
|
85
|
+
name: string;
|
|
86
|
+
description: string;
|
|
87
|
+
required: true;
|
|
88
|
+
}[];
|
|
89
|
+
inheritedProps: string[];
|
|
90
|
+
example: string;
|
|
91
|
+
storyId: string;
|
|
92
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const tableDoc = {
|
|
3
|
+
name: 'Table',
|
|
4
|
+
description: 'Composes native table, caption, section, row, header, and cell primitives.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'children',
|
|
7
|
+
description: 'Supplies semantic table primitives.',
|
|
8
|
+
required: true
|
|
9
|
+
}, {
|
|
10
|
+
name: 'density',
|
|
11
|
+
description: 'Selects compact, default, or spacious cell rhythm.'
|
|
12
|
+
}, {
|
|
13
|
+
name: 'dividers',
|
|
14
|
+
description: 'Selects internal row, column, grid, or borderless dividers without adding an outer boundary.'
|
|
15
|
+
}],
|
|
16
|
+
inheritedProps: ['TableHTMLAttributes<HTMLTableElement> except className'],
|
|
17
|
+
example: '<Table density="compact" dividers="grid"><TableCaption>Values</TableCaption><TableBody /></Table>',
|
|
18
|
+
storyId: 'core-table--default'
|
|
19
|
+
};
|
|
20
|
+
export const tableCaptionDoc = {
|
|
21
|
+
name: 'TableCaption',
|
|
22
|
+
description: 'Provides the native accessible name and context for a table.',
|
|
23
|
+
props: [{
|
|
24
|
+
name: 'children',
|
|
25
|
+
description: 'Describes the table contents.',
|
|
26
|
+
required: true
|
|
27
|
+
}],
|
|
28
|
+
inheritedProps: ['HTMLAttributes<HTMLTableCaptionElement> except className'],
|
|
29
|
+
example: '<TableCaption>Quarterly values</TableCaption>',
|
|
30
|
+
storyId: 'core-table--table-caption'
|
|
31
|
+
};
|
|
32
|
+
export const tableHeadDoc = {
|
|
33
|
+
name: 'TableHead',
|
|
34
|
+
description: 'Groups a table’s column header rows with native semantics.',
|
|
35
|
+
props: [{
|
|
36
|
+
name: 'children',
|
|
37
|
+
description: 'Supplies header rows.',
|
|
38
|
+
required: true
|
|
39
|
+
}],
|
|
40
|
+
inheritedProps: ['HTMLAttributes<HTMLTableSectionElement> except className'],
|
|
41
|
+
example: '<TableHead><TableRow /></TableHead>',
|
|
42
|
+
storyId: 'core-table--table-head'
|
|
43
|
+
};
|
|
44
|
+
export const tableBodyDoc = {
|
|
45
|
+
name: 'TableBody',
|
|
46
|
+
description: 'Groups a table’s data rows with native semantics.',
|
|
47
|
+
props: [{
|
|
48
|
+
name: 'children',
|
|
49
|
+
description: 'Supplies data rows.',
|
|
50
|
+
required: true
|
|
51
|
+
}],
|
|
52
|
+
inheritedProps: ['HTMLAttributes<HTMLTableSectionElement> except className'],
|
|
53
|
+
example: '<TableBody><TableRow /></TableBody>',
|
|
54
|
+
storyId: 'core-table--table-body'
|
|
55
|
+
};
|
|
56
|
+
export const tableRowDoc = {
|
|
57
|
+
name: 'TableRow',
|
|
58
|
+
description: 'Groups related header or data cells in a native table row.',
|
|
59
|
+
props: [{
|
|
60
|
+
name: 'children',
|
|
61
|
+
description: 'Supplies cells.',
|
|
62
|
+
required: true
|
|
63
|
+
}],
|
|
64
|
+
inheritedProps: ['HTMLAttributes<HTMLTableRowElement> except className'],
|
|
65
|
+
example: '<TableRow><TableCell>Value</TableCell></TableRow>',
|
|
66
|
+
storyId: 'core-table--table-row'
|
|
67
|
+
};
|
|
68
|
+
export const tableHeaderCellDoc = {
|
|
69
|
+
name: 'TableHeaderCell',
|
|
70
|
+
description: 'Labels a row or column through native table-header semantics.',
|
|
71
|
+
props: [{
|
|
72
|
+
name: 'children',
|
|
73
|
+
description: 'Supplies the header label.',
|
|
74
|
+
required: true
|
|
75
|
+
}, {
|
|
76
|
+
name: 'scope',
|
|
77
|
+
description: 'Associates the header with a row or column.'
|
|
78
|
+
}],
|
|
79
|
+
inheritedProps: ['ThHTMLAttributes<HTMLTableCellElement> except className'],
|
|
80
|
+
example: '<TableHeaderCell scope="col">Name</TableHeaderCell>',
|
|
81
|
+
storyId: 'core-table--table-header-cell'
|
|
82
|
+
};
|
|
83
|
+
export const tableCellDoc = {
|
|
84
|
+
name: 'TableCell',
|
|
85
|
+
description: 'Renders one native data cell in a table row.',
|
|
86
|
+
props: [{
|
|
87
|
+
name: 'children',
|
|
88
|
+
description: 'Supplies the cell value.',
|
|
89
|
+
required: true
|
|
90
|
+
}],
|
|
91
|
+
inheritedProps: ['TdHTMLAttributes<HTMLTableCellElement> except className'],
|
|
92
|
+
example: '<TableCell>24</TableCell>',
|
|
93
|
+
storyId: 'core-table--table-cell'
|
|
94
|
+
};
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
import { semanticTokens } from '../authoring.stylex.js';
|
|
4
|
+
import "../styles/stylex.css";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const defaultTableStyle = {
|
|
7
|
+
density: 'default',
|
|
8
|
+
dividers: 'rows',
|
|
9
|
+
section: undefined
|
|
10
|
+
};
|
|
11
|
+
const TableStyleContext = createContext(defaultTableStyle);
|
|
12
|
+
const styles = {
|
|
13
|
+
table: {
|
|
14
|
+
kLvRdT: "x1mwwwfo",
|
|
15
|
+
kMwMTN: "x1y4yzzg",
|
|
16
|
+
kMv6JI: "xj0sio9",
|
|
17
|
+
kGuDYH: "x1ti3rys",
|
|
18
|
+
kzqmXN: "xh8yej3",
|
|
19
|
+
$$css: true
|
|
20
|
+
},
|
|
21
|
+
caption: {
|
|
22
|
+
kMv6JI: "x69it5h",
|
|
23
|
+
k63SB2: "x1sa4947",
|
|
24
|
+
k8WAf4: "xoeao9w",
|
|
25
|
+
k9WMMc: "x1yc453h",
|
|
26
|
+
$$css: true
|
|
27
|
+
},
|
|
28
|
+
bodyRow: {
|
|
29
|
+
kIyJzY: "x1elc2ff",
|
|
30
|
+
k1ekBW: "x15406qy",
|
|
31
|
+
kAMwcw: "xxjumz",
|
|
32
|
+
ko0ZBZ: "xx3trin",
|
|
33
|
+
kOmc5w: "x12y31ib",
|
|
34
|
+
kSReZ0: "x15nsxps",
|
|
35
|
+
$$css: true
|
|
36
|
+
},
|
|
37
|
+
headerCell: {
|
|
38
|
+
kWkggS: "xavu78a",
|
|
39
|
+
kMwMTN: "x17y7oyd",
|
|
40
|
+
k63SB2: "x1sa4947",
|
|
41
|
+
kg3NbH: "x1wkw8jr",
|
|
42
|
+
k9WMMc: "x1yc453h",
|
|
43
|
+
$$css: true
|
|
44
|
+
},
|
|
45
|
+
cell: {
|
|
46
|
+
kg3NbH: "x1wkw8jr",
|
|
47
|
+
$$css: true
|
|
48
|
+
},
|
|
49
|
+
compact: {
|
|
50
|
+
k8WAf4: "xoeao9w",
|
|
51
|
+
$$css: true
|
|
52
|
+
},
|
|
53
|
+
default: {
|
|
54
|
+
k8WAf4: "x1lr58ck",
|
|
55
|
+
$$css: true
|
|
56
|
+
},
|
|
57
|
+
spacious: {
|
|
58
|
+
k8WAf4: "x17uk85o",
|
|
59
|
+
$$css: true
|
|
60
|
+
},
|
|
61
|
+
rowDivider: {
|
|
62
|
+
kV9P4g: "xrrqrn",
|
|
63
|
+
kYdPot: "xub24xa",
|
|
64
|
+
kuUVJo: "xbg14n3",
|
|
65
|
+
$$css: true
|
|
66
|
+
},
|
|
67
|
+
headerRowDivider: {
|
|
68
|
+
kL6WhQ: "x1k3hjl9",
|
|
69
|
+
kfdmCh: "x1w5tod1",
|
|
70
|
+
kt9PQ7: "xeq6m5c",
|
|
71
|
+
$$css: true
|
|
72
|
+
},
|
|
73
|
+
columnDivider: {
|
|
74
|
+
kQszG1: "x17bc2d0",
|
|
75
|
+
klVOZA: "x1f0nvx8",
|
|
76
|
+
klFkld: "x86nh4x",
|
|
77
|
+
$$css: true
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
function usesRowDividers(dividers) {
|
|
81
|
+
return dividers === 'rows' || dividers === 'grid';
|
|
82
|
+
}
|
|
83
|
+
function usesColumnDividers(dividers) {
|
|
84
|
+
return dividers === 'columns' || dividers === 'grid';
|
|
85
|
+
}
|
|
86
|
+
export function Table({
|
|
87
|
+
children,
|
|
88
|
+
density = 'default',
|
|
89
|
+
dividers = 'rows',
|
|
90
|
+
...props
|
|
91
|
+
}) {
|
|
92
|
+
return /*#__PURE__*/_jsx(TableStyleContext.Provider, {
|
|
93
|
+
value: {
|
|
94
|
+
density,
|
|
95
|
+
dividers,
|
|
96
|
+
section: undefined
|
|
97
|
+
},
|
|
98
|
+
children: /*#__PURE__*/_jsx("table", {
|
|
99
|
+
...props,
|
|
100
|
+
...{
|
|
101
|
+
className: "x1mwwwfo x1y4yzzg xj0sio9 x1ti3rys xh8yej3"
|
|
102
|
+
},
|
|
103
|
+
children: children
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
export function TableCaption({
|
|
108
|
+
children,
|
|
109
|
+
...props
|
|
110
|
+
}) {
|
|
111
|
+
return /*#__PURE__*/_jsx("caption", {
|
|
112
|
+
...props,
|
|
113
|
+
...{
|
|
114
|
+
className: "x69it5h x1sa4947 xoeao9w x1yc453h"
|
|
115
|
+
},
|
|
116
|
+
children: children
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
export function TableHead({
|
|
120
|
+
children,
|
|
121
|
+
...props
|
|
122
|
+
}) {
|
|
123
|
+
const tableStyle = useContext(TableStyleContext);
|
|
124
|
+
return /*#__PURE__*/_jsx(TableStyleContext.Provider, {
|
|
125
|
+
value: {
|
|
126
|
+
...tableStyle,
|
|
127
|
+
section: 'head'
|
|
128
|
+
},
|
|
129
|
+
children: /*#__PURE__*/_jsx("thead", {
|
|
130
|
+
...props,
|
|
131
|
+
children: children
|
|
132
|
+
})
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
export function TableBody({
|
|
136
|
+
children,
|
|
137
|
+
...props
|
|
138
|
+
}) {
|
|
139
|
+
const tableStyle = useContext(TableStyleContext);
|
|
140
|
+
return /*#__PURE__*/_jsx(TableStyleContext.Provider, {
|
|
141
|
+
value: {
|
|
142
|
+
...tableStyle,
|
|
143
|
+
section: 'body'
|
|
144
|
+
},
|
|
145
|
+
children: /*#__PURE__*/_jsx("tbody", {
|
|
146
|
+
...props,
|
|
147
|
+
children: children
|
|
148
|
+
})
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
export function TableRow({
|
|
152
|
+
children,
|
|
153
|
+
...props
|
|
154
|
+
}) {
|
|
155
|
+
const {
|
|
156
|
+
dividers,
|
|
157
|
+
section
|
|
158
|
+
} = useContext(TableStyleContext);
|
|
159
|
+
return /*#__PURE__*/_jsx("tr", {
|
|
160
|
+
...props,
|
|
161
|
+
...{
|
|
162
|
+
0: {},
|
|
163
|
+
2: {
|
|
164
|
+
className: "x1elc2ff x15406qy xxjumz xx3trin x12y31ib x15nsxps"
|
|
165
|
+
},
|
|
166
|
+
1: {
|
|
167
|
+
className: "xrrqrn xub24xa xbg14n3"
|
|
168
|
+
},
|
|
169
|
+
3: {
|
|
170
|
+
className: "x1elc2ff x15406qy xxjumz xx3trin x12y31ib x15nsxps xrrqrn xub24xa xbg14n3"
|
|
171
|
+
}
|
|
172
|
+
}[!!(section === 'body') << 1 | !!(section === 'body' && usesRowDividers(dividers)) << 0],
|
|
173
|
+
children: children
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
export function TableHeaderCell({
|
|
177
|
+
children,
|
|
178
|
+
scope = 'col',
|
|
179
|
+
...props
|
|
180
|
+
}) {
|
|
181
|
+
const {
|
|
182
|
+
density,
|
|
183
|
+
dividers
|
|
184
|
+
} = useContext(TableStyleContext);
|
|
185
|
+
return /*#__PURE__*/_jsx("th", {
|
|
186
|
+
...props,
|
|
187
|
+
scope: scope,
|
|
188
|
+
...stylex.props(styles.headerCell, styles[density], usesRowDividers(dividers) && styles.headerRowDivider, usesColumnDividers(dividers) && styles.columnDivider),
|
|
189
|
+
children: children
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
export function TableCell({
|
|
193
|
+
children,
|
|
194
|
+
...props
|
|
195
|
+
}) {
|
|
196
|
+
const {
|
|
197
|
+
density,
|
|
198
|
+
dividers
|
|
199
|
+
} = useContext(TableStyleContext);
|
|
200
|
+
return /*#__PURE__*/_jsx("td", {
|
|
201
|
+
...props,
|
|
202
|
+
...stylex.props(styles.cell, styles[density], usesColumnDividers(dividers) && styles.columnDivider),
|
|
203
|
+
children: children
|
|
204
|
+
});
|
|
205
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type TextTone = 'primary' | 'secondary' | 'muted';
|
|
3
|
+
export interface TextProps extends Omit<HTMLAttributes<HTMLParagraphElement>, 'className'> {
|
|
4
|
+
readonly size?: 'sm' | 'md' | 'lg';
|
|
5
|
+
readonly tone?: TextTone;
|
|
6
|
+
}
|
|
7
|
+
export declare function Text({ children, size, tone, ...props }: TextProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const textDoc = {
|
|
3
|
+
name: 'Text',
|
|
4
|
+
description: 'Renders body copy with semantic typography tokens.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'size',
|
|
7
|
+
description: 'Optional semantic size: "sm", "md", or "lg".'
|
|
8
|
+
}, {
|
|
9
|
+
name: 'tone',
|
|
10
|
+
description: 'Optional hierarchy tone: "primary", "secondary", or "muted".'
|
|
11
|
+
}],
|
|
12
|
+
inheritedProps: ['HTMLAttributes<HTMLParagraphElement> except className'],
|
|
13
|
+
example: '<Text size="md" tone="secondary">Supporting copy.</Text>',
|
|
14
|
+
storyId: 'core-text--default'
|
|
15
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
kMwMTN: "x1y4yzzg",
|
|
8
|
+
kMv6JI: "xj0sio9",
|
|
9
|
+
k63SB2: "x1jcbhmk",
|
|
10
|
+
kLWn49: "x1ezks3f",
|
|
11
|
+
kogj98: "x1ghz6dp",
|
|
12
|
+
$$css: true
|
|
13
|
+
},
|
|
14
|
+
sm: {
|
|
15
|
+
kGuDYH: "xltg2ad",
|
|
16
|
+
$$css: true
|
|
17
|
+
},
|
|
18
|
+
md: {
|
|
19
|
+
kGuDYH: "x1ti3rys",
|
|
20
|
+
$$css: true
|
|
21
|
+
},
|
|
22
|
+
lg: {
|
|
23
|
+
kGuDYH: "x1fkw5ar",
|
|
24
|
+
$$css: true
|
|
25
|
+
},
|
|
26
|
+
primary: {
|
|
27
|
+
kMwMTN: "x1y4yzzg",
|
|
28
|
+
$$css: true
|
|
29
|
+
},
|
|
30
|
+
secondary: {
|
|
31
|
+
kMwMTN: "x17y7oyd",
|
|
32
|
+
$$css: true
|
|
33
|
+
},
|
|
34
|
+
muted: {
|
|
35
|
+
kMwMTN: "x1mgtvnk",
|
|
36
|
+
$$css: true
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export function Text({
|
|
40
|
+
children,
|
|
41
|
+
size = 'md',
|
|
42
|
+
tone = 'primary',
|
|
43
|
+
...props
|
|
44
|
+
}) {
|
|
45
|
+
return /*#__PURE__*/_jsx("p", {
|
|
46
|
+
...props,
|
|
47
|
+
...stylex.props(styles.base, styles[size], styles[tone]),
|
|
48
|
+
children: children
|
|
49
|
+
});
|
|
50
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
type SharedTextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'className' | 'defaultValue' | 'onChange' | 'value'> & {
|
|
3
|
+
readonly onValueChange?: (value: string) => void;
|
|
4
|
+
};
|
|
5
|
+
type ControlledTextAreaProps = SharedTextAreaProps & {
|
|
6
|
+
readonly defaultValue?: never;
|
|
7
|
+
readonly onValueChange: (value: string) => void;
|
|
8
|
+
readonly value: string;
|
|
9
|
+
};
|
|
10
|
+
type UncontrolledTextAreaProps = SharedTextAreaProps & {
|
|
11
|
+
readonly defaultValue?: string;
|
|
12
|
+
readonly value?: never;
|
|
13
|
+
};
|
|
14
|
+
export type TextAreaProps = ControlledTextAreaProps | UncontrolledTextAreaProps;
|
|
15
|
+
export declare function TextArea({ 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, disabled, id, onValueChange, readOnly, required, ...props }: TextAreaProps): import("react").JSX.Element;
|
|
16
|
+
export {};
|