@tempoxyz/ds 0.2.6 → 0.3.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/README.md +2 -0
- package/dist/fonts/JetBrainsMono-Bold-latin.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-Bold-other.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-Bold.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-Medium-latin.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-Medium-other.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-Medium.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-Regular-latin.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-Regular-other.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-Regular.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-SemiBold-latin.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-SemiBold-other.woff2 +0 -0
- package/dist/fonts/JetBrainsMono-SemiBold.woff2 +0 -0
- package/dist/fonts/Pilat-Black-latin.woff2 +0 -0
- package/dist/fonts/Pilat-Black-other.woff2 +0 -0
- package/dist/fonts/Pilat-Black.woff2 +0 -0
- package/dist/fonts/Pilat-Bold-latin.woff2 +0 -0
- package/dist/fonts/Pilat-Bold-other.woff2 +0 -0
- package/dist/fonts/Pilat-Bold.woff2 +0 -0
- package/dist/fonts/Pilat-Book-latin.woff2 +0 -0
- package/dist/fonts/Pilat-Book-other.woff2 +0 -0
- package/dist/fonts/Pilat-Book.woff2 +0 -0
- package/dist/fonts/Pilat-Demi-latin.woff2 +0 -0
- package/dist/fonts/Pilat-Demi-other.woff2 +0 -0
- package/dist/fonts/Pilat-Demi.woff2 +0 -0
- package/dist/fonts/Pilat-Heavy-latin.woff2 +0 -0
- package/dist/fonts/Pilat-Heavy-other.woff2 +0 -0
- package/dist/fonts/Pilat-Heavy.woff2 +0 -0
- package/dist/fonts/Pilat-Light-latin.woff2 +0 -0
- package/dist/fonts/Pilat-Light-other.woff2 +0 -0
- package/dist/fonts/Pilat-Light.woff2 +0 -0
- package/dist/fonts/Pilat-Regular-latin.woff2 +0 -0
- package/dist/fonts/Pilat-Regular-other.woff2 +0 -0
- package/dist/fonts/Pilat-Regular.woff2 +0 -0
- package/dist/fonts/Pilat-Thin-latin.woff2 +0 -0
- package/dist/fonts/Pilat-Thin-other.woff2 +0 -0
- package/dist/fonts/Pilat-Thin.woff2 +0 -0
- package/dist/oxlint/rules/PreferComponent.js +6 -6
- package/dist/oxlint/rules/PreferComponent.js.map +1 -1
- package/dist/web/components/Accordion.css +1 -1
- package/dist/web/components/Accordion.d.ts +7 -7
- package/dist/web/components/Accordion.js.map +1 -1
- package/dist/web/components/Accordion.js.zyzz.json +1 -1
- package/dist/web/components/AgentLogo.css +1 -0
- package/dist/web/components/AgentLogo.d.ts +206 -0
- package/dist/web/components/AgentLogo.d.ts.map +1 -0
- package/dist/web/components/AgentLogo.js +86 -0
- package/dist/web/components/AgentLogo.js.map +1 -0
- package/dist/web/components/AgentLogo.js.zyzz.json +1 -0
- package/dist/web/components/Alert.css +1 -0
- package/dist/web/components/Alert.d.ts +156 -0
- package/dist/web/components/Alert.d.ts.map +1 -0
- package/dist/web/components/Alert.js +92 -0
- package/dist/web/components/Alert.js.map +1 -0
- package/dist/web/components/Alert.js.zyzz.json +1 -0
- package/dist/web/components/AlertDialog.d.ts +40 -28
- package/dist/web/components/AlertDialog.d.ts.map +1 -1
- package/dist/web/components/AlertDialog.js +31 -36
- package/dist/web/components/AlertDialog.js.map +1 -1
- package/dist/web/components/AlertDialog.js.zyzz.json +1 -1
- package/dist/web/components/Amount.css +1 -1
- package/dist/web/components/Amount.d.ts +5 -5
- package/dist/web/components/Amount.d.ts.map +1 -1
- package/dist/web/components/Amount.js.map +1 -1
- package/dist/web/components/Amount.js.zyzz.json +1 -1
- package/dist/web/components/AmountInput.css +1 -1
- package/dist/web/components/AmountInput.d.ts +20 -39
- package/dist/web/components/AmountInput.d.ts.map +1 -1
- package/dist/web/components/AmountInput.js +31 -37
- package/dist/web/components/AmountInput.js.map +1 -1
- package/dist/web/components/AmountInput.js.zyzz.json +1 -1
- package/dist/web/components/AppShell.css +1 -1
- package/dist/web/components/AppShell.d.ts +65 -29
- package/dist/web/components/AppShell.d.ts.map +1 -1
- package/dist/web/components/AppShell.js +31 -19
- package/dist/web/components/AppShell.js.map +1 -1
- package/dist/web/components/AppShell.js.zyzz.json +1 -1
- package/dist/web/components/AssetChip.css +1 -0
- package/dist/web/components/AssetChip.d.ts +38 -0
- package/dist/web/components/AssetChip.d.ts.map +1 -0
- package/dist/web/components/AssetChip.js +47 -0
- package/dist/web/components/AssetChip.js.map +1 -0
- package/dist/web/components/AssetChip.js.zyzz.json +1 -0
- package/dist/web/components/Autocomplete.d.ts +2 -2
- package/dist/web/components/Autocomplete.js +4 -4
- package/dist/web/components/Autocomplete.js.map +1 -1
- package/dist/web/components/Autocomplete.js.zyzz.json +1 -1
- package/dist/web/components/Avatar.css +1 -1
- package/dist/web/components/Avatar.d.ts +40 -115
- package/dist/web/components/Avatar.d.ts.map +1 -1
- package/dist/web/components/Avatar.js +19 -32
- package/dist/web/components/Avatar.js.map +1 -1
- package/dist/web/components/Avatar.js.zyzz.json +1 -1
- package/dist/web/components/Badge.css +1 -0
- package/dist/web/components/Badge.d.ts +134 -0
- package/dist/web/components/Badge.d.ts.map +1 -0
- package/dist/web/components/Badge.js +38 -0
- package/dist/web/components/Badge.js.map +1 -0
- package/dist/web/components/Badge.js.zyzz.json +1 -0
- package/dist/web/components/Banner.css +1 -1
- package/dist/web/components/Banner.d.ts +12 -12
- package/dist/web/components/Banner.d.ts.map +1 -1
- package/dist/web/components/Banner.js +5 -5
- package/dist/web/components/Banner.js.map +1 -1
- package/dist/web/components/Banner.js.zyzz.json +1 -1
- package/dist/web/components/BarChart.css +1 -0
- package/dist/web/components/BarChart.d.ts +155 -0
- package/dist/web/components/BarChart.d.ts.map +1 -0
- package/dist/web/components/BarChart.js +119 -0
- package/dist/web/components/BarChart.js.map +1 -0
- package/dist/web/components/BarChart.js.zyzz.json +1 -0
- package/dist/web/components/Breadcrumbs.css +1 -1
- package/dist/web/components/Breadcrumbs.d.ts +6 -6
- package/dist/web/components/Breadcrumbs.js.map +1 -1
- package/dist/web/components/Breadcrumbs.js.zyzz.json +1 -1
- package/dist/web/components/Button.css +1 -1
- package/dist/web/components/Button.d.ts +166 -35
- package/dist/web/components/Button.d.ts.map +1 -1
- package/dist/web/components/Button.js +13 -9
- package/dist/web/components/Button.js.map +1 -1
- package/dist/web/components/Button.js.zyzz.json +1 -1
- package/dist/web/components/ButtonGroup.css +1 -0
- package/dist/web/components/ButtonGroup.d.ts +56 -0
- package/dist/web/components/ButtonGroup.d.ts.map +1 -0
- package/dist/web/components/ButtonGroup.js +33 -0
- package/dist/web/components/ButtonGroup.js.map +1 -0
- package/dist/web/components/ButtonGroup.js.zyzz.json +1 -0
- package/dist/web/components/Calendar.css +1 -1
- package/dist/web/components/Calendar.d.ts.map +1 -1
- package/dist/web/components/Calendar.js +7 -7
- package/dist/web/components/Calendar.js.map +1 -1
- package/dist/web/components/Calendar.js.zyzz.json +1 -1
- package/dist/web/components/Checkbox.css +1 -1
- package/dist/web/components/Checkbox.d.ts +11 -11
- package/dist/web/components/Checkbox.d.ts.map +1 -1
- package/dist/web/components/Checkbox.js +4 -1
- package/dist/web/components/Checkbox.js.map +1 -1
- package/dist/web/components/Checkbox.js.zyzz.json +1 -1
- package/dist/web/components/CheckboxGroup.js.zyzz.json +1 -1
- package/dist/web/components/ChoiceGroup.css +1 -1
- package/dist/web/components/ChoiceGroup.d.ts +44 -16
- package/dist/web/components/ChoiceGroup.d.ts.map +1 -1
- package/dist/web/components/ChoiceGroup.js +32 -8
- package/dist/web/components/ChoiceGroup.js.map +1 -1
- package/dist/web/components/ChoiceGroup.js.zyzz.json +1 -1
- package/dist/web/components/Choicebox.css +1 -1
- package/dist/web/components/Choicebox.d.ts +9 -9
- package/dist/web/components/Choicebox.d.ts.map +1 -1
- package/dist/web/components/Choicebox.js +6 -6
- package/dist/web/components/Choicebox.js.map +1 -1
- package/dist/web/components/Choicebox.js.zyzz.json +1 -1
- package/dist/web/components/Combobox.css +1 -1
- package/dist/web/components/Combobox.d.ts +2 -2
- package/dist/web/components/Combobox.d.ts.map +1 -1
- package/dist/web/components/Combobox.js +8 -8
- package/dist/web/components/Combobox.js.map +1 -1
- package/dist/web/components/Combobox.js.zyzz.json +1 -1
- package/dist/web/components/Container.js.zyzz.json +1 -1
- package/dist/web/components/CopyButton.js +1 -1
- package/dist/web/components/CopyButton.js.map +1 -1
- package/dist/web/components/CopyButton.js.zyzz.json +1 -1
- package/dist/web/components/DatePicker.css +1 -1
- package/dist/web/components/DatePicker.d.ts +37 -56
- package/dist/web/components/DatePicker.d.ts.map +1 -1
- package/dist/web/components/DatePicker.js +7 -7
- package/dist/web/components/DatePicker.js.map +1 -1
- package/dist/web/components/DatePicker.js.zyzz.json +1 -1
- package/dist/web/components/Dialog.css +1 -1
- package/dist/web/components/Dialog.d.ts +189 -20
- package/dist/web/components/Dialog.d.ts.map +1 -1
- package/dist/web/components/Dialog.js +93 -26
- package/dist/web/components/Dialog.js.map +1 -1
- package/dist/web/components/Dialog.js.zyzz.json +1 -1
- package/dist/web/components/Drawer.css +1 -1
- package/dist/web/components/Drawer.d.ts +7 -2
- package/dist/web/components/Drawer.d.ts.map +1 -1
- package/dist/web/components/Drawer.js +12 -6
- package/dist/web/components/Drawer.js.map +1 -1
- package/dist/web/components/Drawer.js.zyzz.json +1 -1
- package/dist/web/components/Empty.css +1 -1
- package/dist/web/components/Empty.d.ts +2 -0
- package/dist/web/components/Empty.d.ts.map +1 -1
- package/dist/web/components/Empty.js +5 -3
- package/dist/web/components/Empty.js.map +1 -1
- package/dist/web/components/Empty.js.zyzz.json +1 -1
- package/dist/web/components/Field.css +1 -1
- package/dist/web/components/Field.d.ts +16 -21
- package/dist/web/components/Field.d.ts.map +1 -1
- package/dist/web/components/Field.js +38 -36
- package/dist/web/components/Field.js.map +1 -1
- package/dist/web/components/Field.js.zyzz.json +1 -1
- package/dist/web/components/Fieldset.css +1 -1
- package/dist/web/components/Fieldset.d.ts +9 -18
- package/dist/web/components/Fieldset.d.ts.map +1 -1
- package/dist/web/components/Fieldset.js +11 -14
- package/dist/web/components/Fieldset.js.map +1 -1
- package/dist/web/components/Fieldset.js.zyzz.json +1 -1
- package/dist/web/components/Frame.css +1 -1
- package/dist/web/components/Frame.d.ts +13 -19
- package/dist/web/components/Frame.d.ts.map +1 -1
- package/dist/web/components/Frame.js +8 -8
- package/dist/web/components/Frame.js.map +1 -1
- package/dist/web/components/Frame.js.zyzz.json +1 -1
- package/dist/web/components/Gauge.css +1 -1
- package/dist/web/components/Gauge.d.ts +2 -2
- package/dist/web/components/Gauge.d.ts.map +1 -1
- package/dist/web/components/Gauge.js.map +1 -1
- package/dist/web/components/Gauge.js.zyzz.json +1 -1
- package/dist/web/components/Grid.js.zyzz.json +1 -1
- package/dist/web/components/Hex.css +1 -1
- package/dist/web/components/Hex.d.ts +11 -53
- package/dist/web/components/Hex.d.ts.map +1 -1
- package/dist/web/components/Hex.js +5 -7
- package/dist/web/components/Hex.js.map +1 -1
- package/dist/web/components/Hex.js.zyzz.json +1 -1
- package/dist/web/components/IconTile.css +1 -0
- package/dist/web/components/IconTile.d.ts +62 -0
- package/dist/web/components/IconTile.d.ts.map +1 -0
- package/dist/web/components/IconTile.js +28 -0
- package/dist/web/components/IconTile.js.map +1 -0
- package/dist/web/components/IconTile.js.zyzz.json +1 -0
- package/dist/web/components/Identicon.css +1 -1
- package/dist/web/components/Identicon.d.ts +1 -8
- package/dist/web/components/Identicon.d.ts.map +1 -1
- package/dist/web/components/Identicon.js +1 -4
- package/dist/web/components/Identicon.js.map +1 -1
- package/dist/web/components/Identicon.js.zyzz.json +1 -1
- package/dist/web/components/Inline.js.zyzz.json +1 -1
- package/dist/web/components/Inset.js.zyzz.json +1 -1
- package/dist/web/components/Kbd.css +1 -1
- package/dist/web/components/Kbd.d.ts +7 -7
- package/dist/web/components/Kbd.js.map +1 -1
- package/dist/web/components/Kbd.js.zyzz.json +1 -1
- package/dist/web/components/ListGroup.css +1 -0
- package/dist/web/components/ListGroup.d.ts +483 -0
- package/dist/web/components/ListGroup.d.ts.map +1 -0
- package/dist/web/components/ListGroup.js +266 -0
- package/dist/web/components/ListGroup.js.map +1 -0
- package/dist/web/components/ListGroup.js.zyzz.json +1 -0
- package/dist/web/components/LoadingDots.css +1 -1
- package/dist/web/components/LoadingDots.d.ts.map +1 -1
- package/dist/web/components/LoadingDots.js +2 -2
- package/dist/web/components/LoadingDots.js.map +1 -1
- package/dist/web/components/LoadingDots.js.zyzz.json +1 -1
- package/dist/web/components/Menu.css +1 -1
- package/dist/web/components/Menu.d.ts +39 -20
- package/dist/web/components/Menu.d.ts.map +1 -1
- package/dist/web/components/Menu.js +12 -7
- package/dist/web/components/Menu.js.map +1 -1
- package/dist/web/components/Menu.js.zyzz.json +1 -1
- package/dist/web/components/NetworkLogo.css +1 -0
- package/dist/web/components/NetworkLogo.d.ts +58 -0
- package/dist/web/components/NetworkLogo.d.ts.map +1 -0
- package/dist/web/components/NetworkLogo.js +40 -0
- package/dist/web/components/NetworkLogo.js.map +1 -0
- package/dist/web/components/NetworkLogo.js.zyzz.json +1 -0
- package/dist/web/components/NumberField.css +1 -1
- package/dist/web/components/NumberField.d.ts +3 -3
- package/dist/web/components/NumberField.d.ts.map +1 -1
- package/dist/web/components/NumberField.js +5 -5
- package/dist/web/components/NumberField.js.map +1 -1
- package/dist/web/components/NumberField.js.zyzz.json +1 -1
- package/dist/web/components/OtpField.css +1 -1
- package/dist/web/components/OtpField.d.ts +8 -68
- package/dist/web/components/OtpField.d.ts.map +1 -1
- package/dist/web/components/OtpField.js +12 -9
- package/dist/web/components/OtpField.js.map +1 -1
- package/dist/web/components/OtpField.js.zyzz.json +1 -1
- package/dist/web/components/Pagination.css +1 -1
- package/dist/web/components/Pagination.d.ts +16 -14
- package/dist/web/components/Pagination.d.ts.map +1 -1
- package/dist/web/components/Pagination.js +3 -3
- package/dist/web/components/Pagination.js.map +1 -1
- package/dist/web/components/Pagination.js.zyzz.json +1 -1
- package/dist/web/components/Popover.css +1 -1
- package/dist/web/components/Popover.js.map +1 -1
- package/dist/web/components/Popover.js.zyzz.json +1 -1
- package/dist/web/components/Progress.css +1 -1
- package/dist/web/components/Progress.d.ts +2 -2
- package/dist/web/components/Progress.d.ts.map +1 -1
- package/dist/web/components/Progress.js +5 -5
- package/dist/web/components/Progress.js.map +1 -1
- package/dist/web/components/Progress.js.zyzz.json +1 -1
- package/dist/web/components/Qr.css +1 -1
- package/dist/web/components/Qr.d.ts +1 -1
- package/dist/web/components/Qr.js.map +1 -1
- package/dist/web/components/Qr.js.zyzz.json +1 -1
- package/dist/web/components/RadioGroup.css +1 -1
- package/dist/web/components/RadioGroup.d.ts.map +1 -1
- package/dist/web/components/RadioGroup.js +2 -2
- package/dist/web/components/RadioGroup.js.map +1 -1
- package/dist/web/components/RadioGroup.js.zyzz.json +1 -1
- package/dist/web/components/SecretValue.css +1 -1
- package/dist/web/components/SecretValue.d.ts +7 -7
- package/dist/web/components/SecretValue.js +1 -1
- package/dist/web/components/SecretValue.js.map +1 -1
- package/dist/web/components/SecretValue.js.zyzz.json +1 -1
- package/dist/web/components/Select.css +1 -1
- package/dist/web/components/Select.d.ts +64 -2
- package/dist/web/components/Select.d.ts.map +1 -1
- package/dist/web/components/Select.js +24 -7
- package/dist/web/components/Select.js.map +1 -1
- package/dist/web/components/Select.js.zyzz.json +1 -1
- package/dist/web/components/Separator.css +1 -1
- package/dist/web/components/Separator.d.ts +17 -3
- package/dist/web/components/Separator.d.ts.map +1 -1
- package/dist/web/components/Separator.js +40 -5
- package/dist/web/components/Separator.js.map +1 -1
- package/dist/web/components/Separator.js.zyzz.json +1 -1
- package/dist/web/components/SidebarMenu.css +1 -1
- package/dist/web/components/SidebarMenu.d.ts +186 -39
- package/dist/web/components/SidebarMenu.d.ts.map +1 -1
- package/dist/web/components/SidebarMenu.js +90 -18
- package/dist/web/components/SidebarMenu.js.map +1 -1
- package/dist/web/components/SidebarMenu.js.zyzz.json +1 -1
- package/dist/web/components/Skeleton.css +1 -1
- package/dist/web/components/Skeleton.d.ts +5 -3
- package/dist/web/components/Skeleton.d.ts.map +1 -1
- package/dist/web/components/Skeleton.js +1 -1
- package/dist/web/components/Skeleton.js.map +1 -1
- package/dist/web/components/Skeleton.js.zyzz.json +1 -1
- package/dist/web/components/Slider.css +1 -1
- package/dist/web/components/Slider.d.ts.map +1 -1
- package/dist/web/components/Slider.js +5 -5
- package/dist/web/components/Slider.js.map +1 -1
- package/dist/web/components/Slider.js.zyzz.json +1 -1
- package/dist/web/components/Snippet.css +1 -1
- package/dist/web/components/Snippet.d.ts +27 -65
- package/dist/web/components/Snippet.d.ts.map +1 -1
- package/dist/web/components/Snippet.js +47 -10
- package/dist/web/components/Snippet.js.map +1 -1
- package/dist/web/components/Snippet.js.zyzz.json +1 -1
- package/dist/web/components/Spinner.css +1 -1
- package/dist/web/components/Spinner.d.ts +25 -16
- package/dist/web/components/Spinner.d.ts.map +1 -1
- package/dist/web/components/Spinner.js +11 -6
- package/dist/web/components/Spinner.js.map +1 -1
- package/dist/web/components/Spinner.js.zyzz.json +1 -1
- package/dist/web/components/SplitBar.css +1 -0
- package/dist/web/components/SplitBar.d.ts +99 -0
- package/dist/web/components/SplitBar.d.ts.map +1 -0
- package/dist/web/components/SplitBar.js +49 -0
- package/dist/web/components/SplitBar.js.map +1 -0
- package/dist/web/components/SplitBar.js.zyzz.json +1 -0
- package/dist/web/components/SplitButton.css +1 -1
- package/dist/web/components/SplitButton.d.ts +4 -1
- package/dist/web/components/SplitButton.d.ts.map +1 -1
- package/dist/web/components/SplitButton.js +2 -2
- package/dist/web/components/SplitButton.js.map +1 -1
- package/dist/web/components/SplitButton.js.zyzz.json +1 -1
- package/dist/web/components/Stack.js.zyzz.json +1 -1
- package/dist/web/components/StatusChip.css +1 -0
- package/dist/web/components/StatusChip.d.ts +162 -0
- package/dist/web/components/StatusChip.d.ts.map +1 -0
- package/dist/web/components/StatusChip.js +37 -0
- package/dist/web/components/StatusChip.js.map +1 -0
- package/dist/web/components/StatusChip.js.zyzz.json +1 -0
- package/dist/web/components/StatusRow.css +1 -0
- package/dist/web/components/StatusRow.d.ts +121 -0
- package/dist/web/components/StatusRow.d.ts.map +1 -0
- package/dist/web/components/StatusRow.js +75 -0
- package/dist/web/components/StatusRow.js.map +1 -0
- package/dist/web/components/StatusRow.js.zyzz.json +1 -0
- package/dist/web/components/Stepper.css +1 -1
- package/dist/web/components/Stepper.d.ts +10 -7
- package/dist/web/components/Stepper.d.ts.map +1 -1
- package/dist/web/components/Stepper.js +5 -4
- package/dist/web/components/Stepper.js.map +1 -1
- package/dist/web/components/Stepper.js.zyzz.json +1 -1
- package/dist/web/components/Surface.css +1 -1
- package/dist/web/components/Surface.d.ts +56 -119
- package/dist/web/components/Surface.d.ts.map +1 -1
- package/dist/web/components/Surface.js +16 -9
- package/dist/web/components/Surface.js.map +1 -1
- package/dist/web/components/Surface.js.zyzz.json +1 -1
- package/dist/web/components/Switch.css +1 -1
- package/dist/web/components/Switch.d.ts +14 -18
- package/dist/web/components/Switch.d.ts.map +1 -1
- package/dist/web/components/Switch.js +13 -15
- package/dist/web/components/Switch.js.map +1 -1
- package/dist/web/components/Switch.js.zyzz.json +1 -1
- package/dist/web/components/Table.css +1 -1
- package/dist/web/components/Table.d.ts +152 -67
- package/dist/web/components/Table.d.ts.map +1 -1
- package/dist/web/components/Table.js +92 -24
- package/dist/web/components/Table.js.map +1 -1
- package/dist/web/components/Table.js.zyzz.json +1 -1
- package/dist/web/components/Tabs.css +1 -1
- package/dist/web/components/Tabs.d.ts +49 -42
- package/dist/web/components/Tabs.d.ts.map +1 -1
- package/dist/web/components/Tabs.js +45 -14
- package/dist/web/components/Tabs.js.map +1 -1
- package/dist/web/components/Tabs.js.zyzz.json +1 -1
- package/dist/web/components/TempoLogo.css +1 -0
- package/dist/web/components/TempoLogo.d.ts +47 -0
- package/dist/web/components/TempoLogo.d.ts.map +1 -0
- package/dist/web/components/TempoLogo.js +48 -0
- package/dist/web/components/TempoLogo.js.map +1 -0
- package/dist/web/components/TempoLogo.js.zyzz.json +1 -0
- package/dist/web/components/TextInput.css +1 -0
- package/dist/web/components/{Input.d.ts → TextInput.d.ts} +27 -18
- package/dist/web/components/TextInput.d.ts.map +1 -0
- package/dist/web/components/TextInput.js +138 -0
- package/dist/web/components/TextInput.js.map +1 -0
- package/dist/web/components/TextInput.js.zyzz.json +1 -0
- package/dist/web/components/Textarea.css +1 -1
- package/dist/web/components/Textarea.d.ts +29 -74
- package/dist/web/components/Textarea.d.ts.map +1 -1
- package/dist/web/components/Textarea.js +5 -12
- package/dist/web/components/Textarea.js.map +1 -1
- package/dist/web/components/Textarea.js.zyzz.json +1 -1
- package/dist/web/components/Toast.css +1 -1
- package/dist/web/components/Toast.d.ts +4 -4
- package/dist/web/components/Toast.d.ts.map +1 -1
- package/dist/web/components/Toast.js +9 -9
- package/dist/web/components/Toast.js.map +1 -1
- package/dist/web/components/Toast.js.zyzz.json +1 -1
- package/dist/web/components/Token.css +1 -1
- package/dist/web/components/Token.d.ts +32 -90
- package/dist/web/components/Token.d.ts.map +1 -1
- package/dist/web/components/Token.js +27 -89
- package/dist/web/components/Token.js.map +1 -1
- package/dist/web/components/Token.js.zyzz.json +1 -1
- package/dist/web/components/TokenLogo.css +1 -0
- package/dist/web/components/TokenLogo.d.ts +117 -0
- package/dist/web/components/TokenLogo.d.ts.map +1 -0
- package/dist/web/components/TokenLogo.js +112 -0
- package/dist/web/components/TokenLogo.js.map +1 -0
- package/dist/web/components/TokenLogo.js.zyzz.json +1 -0
- package/dist/web/components/Tooltip.css +1 -1
- package/dist/web/components/Tooltip.js.map +1 -1
- package/dist/web/components/Tooltip.js.zyzz.json +1 -1
- package/dist/web/components/VerificationCode.css +1 -0
- package/dist/web/components/VerificationCode.d.ts +47 -0
- package/dist/web/components/VerificationCode.d.ts.map +1 -0
- package/dist/web/components/VerificationCode.js +55 -0
- package/dist/web/components/VerificationCode.js.map +1 -0
- package/dist/web/components/VerificationCode.js.zyzz.json +1 -0
- package/dist/web/components/Visual.css +1 -0
- package/dist/web/components/Visual.d.ts +65 -0
- package/dist/web/components/Visual.d.ts.map +1 -0
- package/dist/web/components/Visual.js +51 -0
- package/dist/web/components/Visual.js.map +1 -0
- package/dist/web/components/Visual.js.zyzz.json +1 -0
- package/dist/web/components/internal/Field.css +1 -1
- package/dist/web/components/internal/Field.d.ts +41 -87
- package/dist/web/components/internal/Field.d.ts.map +1 -1
- package/dist/web/components/internal/Field.js +8 -7
- package/dist/web/components/internal/Field.js.map +1 -1
- package/dist/web/components/internal/Field.js.zyzz.json +1 -1
- package/dist/web/components/internal/InputGroup.css +1 -1
- package/dist/web/components/internal/InputGroup.d.ts +38 -99
- package/dist/web/components/internal/InputGroup.d.ts.map +1 -1
- package/dist/web/components/internal/InputGroup.js +6 -6
- package/dist/web/components/internal/InputGroup.js.map +1 -1
- package/dist/web/components/internal/InputGroup.js.zyzz.json +1 -1
- package/dist/web/components/internal/Listbox.css +1 -1
- package/dist/web/components/internal/Listbox.d.ts +8 -8
- package/dist/web/components/internal/Listbox.js.map +1 -1
- package/dist/web/components/internal/Listbox.js.zyzz.json +1 -1
- package/dist/web/components/internal/RowDisabled.d.ts +3 -0
- package/dist/web/components/internal/RowDisabled.d.ts.map +1 -0
- package/dist/web/components/internal/RowDisabled.js +9 -0
- package/dist/web/components/internal/RowDisabled.js.map +1 -0
- package/dist/web/components/internal/RowsSize.d.ts +2 -3
- package/dist/web/components/internal/RowsSize.d.ts.map +1 -1
- package/dist/web/components/internal/RowsSize.js +3 -3
- package/dist/web/components/internal/RowsSize.js.map +1 -1
- package/dist/web/index.d.ts +18 -6
- package/dist/web/index.d.ts.map +1 -1
- package/dist/web/index.js +18 -6
- package/dist/web/index.js.map +1 -1
- package/dist/web/index.js.zyzz.json +1 -1
- package/dist/web/vars.d.ts +591 -706
- package/dist/web/vars.d.ts.map +1 -1
- package/dist/web/vars.js +7 -6
- package/dist/web/vars.js.map +1 -1
- package/dist/web/vars.js.zyzz.json +1 -1
- package/dist/web/zyzz.config.d.ts +2933 -3513
- package/dist/web/zyzz.config.d.ts.map +1 -1
- package/dist/web/zyzz.config.js +29 -3
- package/dist/web/zyzz.config.js.map +1 -1
- package/dist/web/zyzz.config.js.zyzz.json +1 -1
- package/package.json +149 -5
- package/src/fonts/JetBrainsMono-Bold-latin.woff2 +0 -0
- package/src/fonts/JetBrainsMono-Bold-other.woff2 +0 -0
- package/src/fonts/JetBrainsMono-Bold.woff2 +0 -0
- package/src/fonts/JetBrainsMono-Medium-latin.woff2 +0 -0
- package/src/fonts/JetBrainsMono-Medium-other.woff2 +0 -0
- package/src/fonts/JetBrainsMono-Medium.woff2 +0 -0
- package/src/fonts/{Geist-OFL.txt → JetBrainsMono-OFL.txt} +4 -3
- package/src/fonts/JetBrainsMono-Regular-latin.woff2 +0 -0
- package/src/fonts/JetBrainsMono-Regular-other.woff2 +0 -0
- package/src/fonts/JetBrainsMono-Regular.woff2 +0 -0
- package/src/fonts/JetBrainsMono-SemiBold-latin.woff2 +0 -0
- package/src/fonts/JetBrainsMono-SemiBold-other.woff2 +0 -0
- package/src/fonts/JetBrainsMono-SemiBold.woff2 +0 -0
- package/src/fonts/Pilat-Black-latin.woff2 +0 -0
- package/src/fonts/Pilat-Black-other.woff2 +0 -0
- package/src/fonts/Pilat-Black.woff2 +0 -0
- package/src/fonts/Pilat-Bold-latin.woff2 +0 -0
- package/src/fonts/Pilat-Bold-other.woff2 +0 -0
- package/src/fonts/Pilat-Bold.woff2 +0 -0
- package/src/fonts/Pilat-Book-latin.woff2 +0 -0
- package/src/fonts/Pilat-Book-other.woff2 +0 -0
- package/src/fonts/Pilat-Book.woff2 +0 -0
- package/src/fonts/Pilat-Demi-latin.woff2 +0 -0
- package/src/fonts/Pilat-Demi-other.woff2 +0 -0
- package/src/fonts/Pilat-Demi.woff2 +0 -0
- package/src/fonts/Pilat-Heavy-latin.woff2 +0 -0
- package/src/fonts/Pilat-Heavy-other.woff2 +0 -0
- package/src/fonts/Pilat-Heavy.woff2 +0 -0
- package/src/fonts/Pilat-Light-latin.woff2 +0 -0
- package/src/fonts/Pilat-Light-other.woff2 +0 -0
- package/src/fonts/Pilat-Light.woff2 +0 -0
- package/src/fonts/Pilat-Regular-latin.woff2 +0 -0
- package/src/fonts/Pilat-Regular-other.woff2 +0 -0
- package/src/fonts/Pilat-Regular.woff2 +0 -0
- package/src/fonts/Pilat-Thin-latin.woff2 +0 -0
- package/src/fonts/Pilat-Thin-other.woff2 +0 -0
- package/src/fonts/Pilat-Thin.woff2 +0 -0
- package/src/fonts/README.md +15 -2
- package/src/oxlint/rules/PreferComponent.ts +6 -6
- package/src/web/README.md +7 -7
- package/src/web/components/Accordion.tsx +8 -8
- package/src/web/components/AgentLogo.tsx +330 -0
- package/src/web/components/Alert.tsx +301 -0
- package/src/web/components/AlertDialog.tsx +47 -111
- package/src/web/components/Amount.tsx +6 -6
- package/src/web/components/AmountInput.tsx +59 -134
- package/src/web/components/AppShell.tsx +95 -36
- package/src/web/components/AssetChip.tsx +110 -0
- package/src/web/components/Autocomplete.tsx +4 -4
- package/src/web/components/Avatar.tsx +42 -119
- package/src/web/components/Badge.tsx +120 -0
- package/src/web/components/Banner.tsx +13 -11
- package/src/web/components/BarChart.tsx +427 -0
- package/src/web/components/Breadcrumbs.tsx +7 -7
- package/src/web/components/Button.tsx +156 -42
- package/src/web/components/ButtonGroup.tsx +59 -0
- package/src/web/components/Calendar.tsx +15 -13
- package/src/web/components/Checkbox.tsx +14 -11
- package/src/web/components/ChoiceGroup.tsx +107 -26
- package/src/web/components/Choicebox.tsx +30 -28
- package/src/web/components/Combobox.tsx +10 -8
- package/src/web/components/CopyButton.tsx +1 -1
- package/src/web/components/DatePicker.tsx +42 -61
- package/src/web/components/Dialog.tsx +267 -71
- package/src/web/components/Drawer.tsx +45 -18
- package/src/web/components/Empty.tsx +13 -8
- package/src/web/components/Field.tsx +78 -132
- package/src/web/components/Fieldset.tsx +16 -37
- package/src/web/components/Frame.tsx +13 -20
- package/src/web/components/Gauge.tsx +4 -4
- package/src/web/components/Hex.tsx +13 -56
- package/src/web/components/IconTile.tsx +57 -0
- package/src/web/components/Identicon.tsx +1 -10
- package/src/web/components/Kbd.tsx +8 -8
- package/src/web/components/ListGroup.tsx +776 -0
- package/src/web/components/LoadingDots.tsx +1 -0
- package/src/web/components/Menu.tsx +50 -35
- package/src/web/components/NetworkLogo.tsx +208 -0
- package/src/web/components/NumberField.tsx +18 -33
- package/src/web/components/OtpField.tsx +51 -102
- package/src/web/components/Pagination.tsx +16 -14
- package/src/web/components/Popover.tsx +8 -8
- package/src/web/components/Progress.tsx +7 -5
- package/src/web/components/Qr.tsx +1 -1
- package/src/web/components/RadioGroup.tsx +9 -7
- package/src/web/components/SecretValue.tsx +11 -11
- package/src/web/components/Select.tsx +87 -26
- package/src/web/components/Separator.tsx +95 -7
- package/src/web/components/SidebarMenu.tsx +294 -51
- package/src/web/components/Skeleton.tsx +5 -5
- package/src/web/components/Slider.tsx +12 -6
- package/src/web/components/Snippet.tsx +134 -75
- package/src/web/components/Spinner.tsx +38 -12
- package/src/web/components/SplitBar.tsx +158 -0
- package/src/web/components/SplitButton.tsx +26 -17
- package/src/web/components/StatusChip.tsx +138 -0
- package/src/web/components/StatusRow.tsx +162 -0
- package/src/web/components/Stepper.tsx +11 -8
- package/src/web/components/Surface.tsx +70 -95
- package/src/web/components/Switch.tsx +25 -29
- package/src/web/components/Table.tsx +281 -70
- package/src/web/components/Tabs.tsx +93 -50
- package/src/web/components/TempoLogo.tsx +89 -0
- package/src/web/components/{Input.tsx → TextInput.tsx} +87 -118
- package/src/web/components/Textarea.tsx +33 -78
- package/src/web/components/Toast.tsx +24 -22
- package/src/web/components/Token.tsx +106 -172
- package/src/web/components/TokenLogo.tsx +217 -0
- package/src/web/components/Tooltip.tsx +3 -3
- package/src/web/components/VerificationCode.tsx +97 -0
- package/src/web/components/Visual.tsx +166 -0
- package/src/web/components/internal/Field.ts +63 -72
- package/src/web/components/internal/InputGroup.ts +44 -101
- package/src/web/components/internal/Listbox.ts +20 -20
- package/src/web/components/internal/RowDisabled.ts +9 -0
- package/src/web/components/internal/RowsSize.ts +3 -5
- package/src/web/components/visuals/Passkey.svg +21 -0
- package/src/web/index.ts +18 -6
- package/src/web/logos/Base.svg +10 -0
- package/src/web/logos/Ethereum.svg +16 -0
- package/src/web/logos/HyperEVM.svg +27 -0
- package/src/web/logos/Polygon.svg +15 -0
- package/src/web/logos/README.md +14 -0
- package/src/web/logos/Solana.svg +11 -0
- package/src/web/logos/Tempo.svg +11 -0
- package/src/web/vars.ts +480 -534
- package/src/web/zyzz.config.ts +255 -12
- package/dist/fonts/GeistMono-Variable.woff2 +0 -0
- package/dist/web/components/AlertDialog.css +0 -1
- package/dist/web/components/Callout.css +0 -1
- package/dist/web/components/Callout.d.ts +0 -161
- package/dist/web/components/Callout.d.ts.map +0 -1
- package/dist/web/components/Callout.js +0 -83
- package/dist/web/components/Callout.js.map +0 -1
- package/dist/web/components/Callout.js.zyzz.json +0 -1
- package/dist/web/components/IconChip.css +0 -1
- package/dist/web/components/IconChip.d.ts +0 -53
- package/dist/web/components/IconChip.d.ts.map +0 -1
- package/dist/web/components/IconChip.js +0 -27
- package/dist/web/components/IconChip.js.map +0 -1
- package/dist/web/components/IconChip.js.zyzz.json +0 -1
- package/dist/web/components/Input.css +0 -1
- package/dist/web/components/Input.d.ts.map +0 -1
- package/dist/web/components/Input.js +0 -118
- package/dist/web/components/Input.js.map +0 -1
- package/dist/web/components/Input.js.zyzz.json +0 -1
- package/dist/web/components/Rows.css +0 -1
- package/dist/web/components/Rows.d.ts +0 -484
- package/dist/web/components/Rows.d.ts.map +0 -1
- package/dist/web/components/Rows.js +0 -171
- package/dist/web/components/Rows.js.map +0 -1
- package/dist/web/components/Rows.js.zyzz.json +0 -1
- package/dist/web/components/Tag.css +0 -1
- package/dist/web/components/Tag.d.ts +0 -171
- package/dist/web/components/Tag.d.ts.map +0 -1
- package/dist/web/components/Tag.js +0 -52
- package/dist/web/components/Tag.js.map +0 -1
- package/dist/web/components/Tag.js.zyzz.json +0 -1
- package/dist/web/components/internal/FieldVariant.d.ts +0 -4
- package/dist/web/components/internal/FieldVariant.d.ts.map +0 -1
- package/dist/web/components/internal/FieldVariant.js +0 -4
- package/dist/web/components/internal/FieldVariant.js.map +0 -1
- package/src/fonts/GeistMono-Variable.woff2 +0 -0
- package/src/web/components/Callout.tsx +0 -241
- package/src/web/components/IconChip.tsx +0 -54
- package/src/web/components/Rows.tsx +0 -588
- package/src/web/components/Tag.tsx +0 -149
- package/src/web/components/internal/FieldVariant.ts +0 -6
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react'
|
|
2
|
+
import type * as zyzz from 'zyzz'
|
|
3
|
+
import { variants } from '../zyzz.config.js'
|
|
4
|
+
import { Spinner } from './Spinner.js'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A pill that names the status of a payment, an authorization, or a network, rendered as a
|
|
8
|
+
* `span`. A dot in the color of its `intent` leads the label, and `loading` replaces the dot with
|
|
9
|
+
* a spinner. It sets no live region, so a status that changes in place needs one around it.
|
|
10
|
+
*
|
|
11
|
+
* - Keep the label to one or two words that name the status, such as Pending or Needs approval.
|
|
12
|
+
* - Pick the `intent` from the outcome: `positive` for done or live, `warning` for waiting on
|
|
13
|
+
* someone, `negative` for failed, and `neutral` for ended without an outcome.
|
|
14
|
+
* - Set `network` for the chip that names a network, such as Mainnet or Testnet. It keeps an 80px
|
|
15
|
+
* minimum width, with 4px between the dot and the label.
|
|
16
|
+
* - Use `Badge` for a category or an attribute that is not a status.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <StatusChip intent="warning">Pending</StatusChip>
|
|
20
|
+
* <StatusChip loading size="small">Processing</StatusChip>
|
|
21
|
+
* <StatusChip intent="positive" network>Mainnet</StatusChip>
|
|
22
|
+
*
|
|
23
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/span | MDN span element}
|
|
24
|
+
* @see {@link https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html | WCAG 2.2 Use of Color}
|
|
25
|
+
* @see {@link https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html | WCAG 2.2 Status Messages}
|
|
26
|
+
*/
|
|
27
|
+
export function StatusChip(props: StatusChip.Props) {
|
|
28
|
+
const { children, className, intent, loading = false, network, size, vars, ...attributes } = props
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<span
|
|
32
|
+
{...attributes}
|
|
33
|
+
data-intent={intent ?? 'neutral'}
|
|
34
|
+
{...styles.chip({ className, intent, network, size, style: props.style, vars })}
|
|
35
|
+
>
|
|
36
|
+
{/* The label names the status, so the mark is decorative. */}
|
|
37
|
+
{loading ? (
|
|
38
|
+
<span aria-hidden="true" {...styles.spinner({ size })}>
|
|
39
|
+
<Spinner />
|
|
40
|
+
</span>
|
|
41
|
+
) : (
|
|
42
|
+
<span aria-hidden="true" {...styles.dot({ intent, size })} />
|
|
43
|
+
)}
|
|
44
|
+
{children}
|
|
45
|
+
</span>
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace StatusChip {
|
|
50
|
+
export type Props = ComponentPropsWithRef<'span'> &
|
|
51
|
+
zyzz.Props.Variants<typeof styles.chip> & {
|
|
52
|
+
/**
|
|
53
|
+
* Replaces the dot with a spinner, for a status that is in progress, such as Processing.
|
|
54
|
+
*
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
loading?: boolean | undefined
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
namespace styles {
|
|
62
|
+
export const chip = variants(
|
|
63
|
+
{
|
|
64
|
+
base: {
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
borderRadius: 'full',
|
|
67
|
+
boxSizing: 'border-box',
|
|
68
|
+
color: 'content.secondary',
|
|
69
|
+
cornerShape: 'round',
|
|
70
|
+
display: 'inline-flex',
|
|
71
|
+
flexShrink: '0 !custom',
|
|
72
|
+
paddingInline: '8',
|
|
73
|
+
typography: 'body.b3Strong',
|
|
74
|
+
verticalAlign: 'middle',
|
|
75
|
+
whiteSpace: 'nowrap',
|
|
76
|
+
},
|
|
77
|
+
// A network chip sets the dot 4px from its label at every size, so it outranks the size gap.
|
|
78
|
+
compoundVariants: [{ when: { network: true }, style: { columnGap: '4' } }],
|
|
79
|
+
defaultVariants: { intent: 'neutral', network: false, size: 'medium' },
|
|
80
|
+
variants: {
|
|
81
|
+
intent: {
|
|
82
|
+
negative: { backgroundColor: 'container.negative' },
|
|
83
|
+
neutral: { backgroundColor: 'container.regular' },
|
|
84
|
+
positive: { backgroundColor: 'container.positive' },
|
|
85
|
+
warning: { backgroundColor: 'container.warning' },
|
|
86
|
+
},
|
|
87
|
+
// A network chip keeps its label at the start of an 80px minimum width.
|
|
88
|
+
network: { false: {}, true: { minWidth: '80' } },
|
|
89
|
+
size: {
|
|
90
|
+
medium: { columnGap: '6', height: '28' },
|
|
91
|
+
small: { columnGap: '4', height: '24' },
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{ id: 'tds/web/status-chip' },
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
export const dot = variants(
|
|
99
|
+
{
|
|
100
|
+
base: { borderRadius: 'full', cornerShape: 'round', flexShrink: '0 !custom' },
|
|
101
|
+
defaultVariants: { intent: 'neutral', size: 'medium' },
|
|
102
|
+
variants: {
|
|
103
|
+
intent: {
|
|
104
|
+
negative: { backgroundColor: 'content.negative' },
|
|
105
|
+
neutral: { backgroundColor: 'content.subtle' },
|
|
106
|
+
positive: { backgroundColor: 'content.positive' },
|
|
107
|
+
warning: { backgroundColor: 'content.warning' },
|
|
108
|
+
},
|
|
109
|
+
size: {
|
|
110
|
+
medium: { height: '8', width: '8' },
|
|
111
|
+
small: { height: '6', width: '6' },
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{ id: 'tds/web/status-chip/dot' },
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
// The spinner shrinks to the 12 or 10px mark, which the attribute selector holds over its own size.
|
|
119
|
+
export const spinner = variants(
|
|
120
|
+
{
|
|
121
|
+
base: {
|
|
122
|
+
display: 'inline-flex',
|
|
123
|
+
flexShrink: '0 !custom',
|
|
124
|
+
selectors: {
|
|
125
|
+
'& > [role="progressbar"]': { height: '100% !custom', width: '100% !custom' },
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
defaultVariants: { size: 'medium' },
|
|
129
|
+
variants: {
|
|
130
|
+
size: {
|
|
131
|
+
medium: { height: '12', width: '12' },
|
|
132
|
+
small: { height: '10', width: '10' },
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
{ id: 'tds/web/status-chip/spinner' },
|
|
137
|
+
)
|
|
138
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react'
|
|
2
|
+
import type * as zyzz from 'zyzz'
|
|
3
|
+
import { style, variants } from '../zyzz.config.js'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A row that follows the status of one payment or task, such as a deposit on its way. It renders
|
|
7
|
+
* a `div` with `role="status"`, so screen readers announce a change of its text politely. Compose
|
|
8
|
+
* a leading `StatusRow.Icon`, a `StatusRow.Content` with a title and a description, and an
|
|
9
|
+
* optional trailing `StatusChip`.
|
|
10
|
+
*
|
|
11
|
+
* - Lead with a `Spinner` while the task runs, and with a check once `intent` is `positive`.
|
|
12
|
+
* - State the amount or the task in the title, and the expected wait in the description.
|
|
13
|
+
* - Keep one status row per task. Use `ListGroup` for a list of finished payments.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <StatusRow>
|
|
17
|
+
* <StatusRow.Icon>
|
|
18
|
+
* <Spinner />
|
|
19
|
+
* </StatusRow.Icon>
|
|
20
|
+
* <StatusRow.Content>
|
|
21
|
+
* <StatusRow.Title>Waiting for $10.00</StatusRow.Title>
|
|
22
|
+
* <StatusRow.Description>Usually under a minute on Tempo.</StatusRow.Description>
|
|
23
|
+
* </StatusRow.Content>
|
|
24
|
+
* <StatusChip intent="warning" size="small">
|
|
25
|
+
* Pending
|
|
26
|
+
* </StatusChip>
|
|
27
|
+
* </StatusRow>
|
|
28
|
+
*
|
|
29
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/status_role | MDN status role}
|
|
30
|
+
* @see {@link https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html | WCAG 2.2 Status Messages}
|
|
31
|
+
*/
|
|
32
|
+
export function StatusRow(props: StatusRow.Props) {
|
|
33
|
+
const { className, intent, vars, ...attributes } = props
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div
|
|
37
|
+
role="status"
|
|
38
|
+
{...attributes}
|
|
39
|
+
{...styles.row({ className, intent, style: props.style, vars })}
|
|
40
|
+
/>
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export namespace StatusRow {
|
|
45
|
+
/** Stacks a `StatusRow.Title` above a `StatusRow.Description`, and takes the free width. */
|
|
46
|
+
export function Content(props: Content.Props) {
|
|
47
|
+
const { className, vars, ...attributes } = props
|
|
48
|
+
|
|
49
|
+
return <div {...attributes} {...styles.content({ className, style: props.style, vars })} />
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export namespace Content {
|
|
53
|
+
export type Props = ComponentPropsWithRef<'div'> & zyzz.Props.Variants<typeof styles.content>
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** Secondary text under the title, such as the expected wait. It wraps onto more lines. */
|
|
57
|
+
export function Description(props: Description.Props) {
|
|
58
|
+
const { className, vars, ...attributes } = props
|
|
59
|
+
|
|
60
|
+
return <span {...attributes} {...styles.description({ className, style: props.style, vars })} />
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export namespace Description {
|
|
64
|
+
export type Props = ComponentPropsWithRef<'span'> &
|
|
65
|
+
zyzz.Props.Variants<typeof styles.description>
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The leading mark, hidden from assistive technology. An icon renders at 24px in the color of
|
|
70
|
+
* the row's `intent`, and a `Spinner` keeps its 16px.
|
|
71
|
+
*/
|
|
72
|
+
export function Icon(props: Icon.Props) {
|
|
73
|
+
const { className, vars, ...attributes } = props
|
|
74
|
+
|
|
75
|
+
return (
|
|
76
|
+
<span
|
|
77
|
+
aria-hidden="true"
|
|
78
|
+
{...attributes}
|
|
79
|
+
data-status-row-icon=""
|
|
80
|
+
{...styles.icon({ className, style: props.style, vars })}
|
|
81
|
+
/>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export namespace Icon {
|
|
86
|
+
export type Props = ComponentPropsWithRef<'span'> & zyzz.Props.Variants<typeof styles.icon>
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type Props = ComponentPropsWithRef<'div'> & zyzz.Props.Variants<typeof styles.row>
|
|
90
|
+
|
|
91
|
+
/** The task, such as the amount that the row waits for. */
|
|
92
|
+
export function Title(props: Title.Props) {
|
|
93
|
+
const { className, vars, ...attributes } = props
|
|
94
|
+
|
|
95
|
+
return <span {...attributes} {...styles.title({ className, style: props.style, vars })} />
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export namespace Title {
|
|
99
|
+
export type Props = ComponentPropsWithRef<'span'> & zyzz.Props.Variants<typeof styles.title>
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
namespace styles {
|
|
104
|
+
export const content = variants(
|
|
105
|
+
{
|
|
106
|
+
base: { display: 'flex', flexDirection: 'column', flexGrow: '1 !custom', minWidth: '0' },
|
|
107
|
+
},
|
|
108
|
+
{ id: 'tds/web/status-row/content' },
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
export const description = variants(
|
|
112
|
+
{ base: { color: 'content.secondary', typography: 'body.b3' } },
|
|
113
|
+
{ id: 'tds/web/status-row/description' },
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
export const icon = variants(
|
|
117
|
+
{
|
|
118
|
+
base: {
|
|
119
|
+
alignItems: 'center',
|
|
120
|
+
display: 'inline-flex',
|
|
121
|
+
flexShrink: '0 !custom',
|
|
122
|
+
selectors: { '& > svg': { height: '24', width: '24' } },
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
{ id: 'tds/web/status-row/icon' },
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
// Fields and alerts pad a 12px corner by 16px, and the row keeps 12px above and below its text.
|
|
129
|
+
export const row = variants(
|
|
130
|
+
{
|
|
131
|
+
base: {
|
|
132
|
+
alignItems: 'center',
|
|
133
|
+
borderRadius: 'xs',
|
|
134
|
+
boxSizing: 'border-box',
|
|
135
|
+
color: 'content.primary',
|
|
136
|
+
columnGap: '12',
|
|
137
|
+
display: 'flex',
|
|
138
|
+
paddingBlock: '12',
|
|
139
|
+
paddingInline: '16',
|
|
140
|
+
transitionDuration: '200',
|
|
141
|
+
transitionProperty: 'background-color',
|
|
142
|
+
transitionTimingFunction: 'snappy',
|
|
143
|
+
},
|
|
144
|
+
defaultVariants: { intent: 'neutral' },
|
|
145
|
+
variants: {
|
|
146
|
+
intent: {
|
|
147
|
+
neutral: { backgroundColor: 'container.subtle' },
|
|
148
|
+
positive: {
|
|
149
|
+
backgroundColor: 'container.positive',
|
|
150
|
+
selectors: { '& > [data-status-row-icon]': { color: 'content.positive' } },
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
{ id: 'tds/web/status-row' },
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
export const title = style(
|
|
159
|
+
{ color: 'content.primary', typography: 'body.b2Strong' },
|
|
160
|
+
{ id: 'tds/web/status-row/title' },
|
|
161
|
+
)
|
|
162
|
+
}
|
|
@@ -3,12 +3,13 @@ import type * as zyzz from 'zyzz'
|
|
|
3
3
|
import { style, variants } from '../zyzz.config.js'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Shows progress through a fixed sequence of steps as a row of
|
|
7
|
-
* `role="progressbar"`, the name `Progress`, and the value text
|
|
6
|
+
* Shows progress through a fixed sequence of steps as a row of 24px by 4px segments, 4px apart.
|
|
7
|
+
* Renders a `div` with `role="progressbar"`, the name `Progress`, and the value text
|
|
8
|
+
* `Step <value> of <count>`. The row is as wide as its segments.
|
|
8
9
|
*
|
|
9
10
|
* - Pass `aria-label` to name the flow, such as `Account setup`.
|
|
11
|
+
* - Center it in the header of a dialog, beside the Back button.
|
|
10
12
|
* - Label each step in visible text near the stepper, since the segments carry no text.
|
|
11
|
-
* - Pair the filled segments with that text, so completion does not rely on color alone.
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
15
|
* <Stepper.Root aria-label="Account setup" count={4} value={2} />
|
|
@@ -61,7 +62,7 @@ export namespace Stepper {
|
|
|
61
62
|
|
|
62
63
|
namespace styles {
|
|
63
64
|
export const root = style(
|
|
64
|
-
{ columnGap: '
|
|
65
|
+
{ columnGap: '4', display: 'flex', width: 'fit-content !custom' },
|
|
65
66
|
{ id: 'tds/web/stepper' },
|
|
66
67
|
)
|
|
67
68
|
|
|
@@ -69,17 +70,19 @@ namespace styles {
|
|
|
69
70
|
{
|
|
70
71
|
base: {
|
|
71
72
|
borderRadius: 'full',
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
cornerShape: 'round',
|
|
74
|
+
flexShrink: '0 !custom',
|
|
75
|
+
height: '4',
|
|
74
76
|
transitionDuration: '240',
|
|
75
77
|
transitionProperty: 'background-color',
|
|
76
78
|
transitionTimingFunction: 'snappy',
|
|
79
|
+
width: '24',
|
|
77
80
|
},
|
|
78
81
|
defaultVariants: { state: 'pending' },
|
|
79
82
|
variants: {
|
|
80
83
|
state: {
|
|
81
|
-
complete: { backgroundColor: '
|
|
82
|
-
pending: { backgroundColor: '
|
|
84
|
+
complete: { backgroundColor: 'content.primary' },
|
|
85
|
+
pending: { backgroundColor: 'container.strong' },
|
|
83
86
|
},
|
|
84
87
|
},
|
|
85
88
|
},
|
|
@@ -4,14 +4,15 @@ import type * as zyzz from 'zyzz'
|
|
|
4
4
|
import { variants, vars } from '../zyzz.config.js'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* A card container that renders a `div`
|
|
8
|
-
* `section`, `button` or link. A `button`, `a[href]` or
|
|
9
|
-
* and focus-visible styles and spans the full width.
|
|
7
|
+
* A card container that renders a `div` with a 1px border inside its edge by default. Pass
|
|
8
|
+
* `render` to swap the element, such as a `section`, `button` or link. A `button`, `a[href]` or
|
|
9
|
+
* `role="button"` surface gains hover, press and focus-visible styles and spans the full width.
|
|
10
10
|
*
|
|
11
|
-
* - `size` sets the corner radius and padding together.
|
|
11
|
+
* - `size` sets the corner radius and padding together, at the same value.
|
|
12
12
|
* - Name the card with `Surface.Title`, which renders an `h2`, so headings keep the card navigable.
|
|
13
13
|
* - A pressable surface should hold no other interactive controls, since nested targets conflict.
|
|
14
|
-
* - A direct child `table`
|
|
14
|
+
* - A direct child `table` bleeds 12px into the padding at the sides and the bottom, as rows pad
|
|
15
|
+
* their cells, so its text stays on the content edge. The surface draws no border around it.
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
17
18
|
* <Surface>
|
|
@@ -54,7 +55,10 @@ export namespace Surface {
|
|
|
54
55
|
export type Props = ComponentPropsWithRef<'p'> & zyzz.Props.Variants<typeof styles.description>
|
|
55
56
|
}
|
|
56
57
|
|
|
57
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* A row above the content holding a `Surface.Title` and, at the end, any actions, with 20px of
|
|
60
|
+
* space below it.
|
|
61
|
+
*/
|
|
58
62
|
export function Header(props: Header.Props) {
|
|
59
63
|
const { className, vars, ...attributes } = props
|
|
60
64
|
|
|
@@ -85,7 +89,10 @@ export namespace Surface {
|
|
|
85
89
|
disabled?: boolean | undefined
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* The card heading, rendered as an `h2`. A leading `svg` icon renders at 24px. In a surface that
|
|
94
|
+
* holds a direct child `table`, the title renders at the size of a section heading.
|
|
95
|
+
*/
|
|
89
96
|
export function Title(props: Title.Props) {
|
|
90
97
|
const { className, vars, ...attributes } = props
|
|
91
98
|
|
|
@@ -101,10 +108,10 @@ namespace styles {
|
|
|
101
108
|
export const description = variants(
|
|
102
109
|
{
|
|
103
110
|
base: {
|
|
104
|
-
color: '
|
|
111
|
+
color: 'content.secondary',
|
|
105
112
|
margin: '0',
|
|
106
113
|
selectors: { '& + *': { marginBlockStart: '24' } },
|
|
107
|
-
typography: '
|
|
114
|
+
typography: 'body.b1',
|
|
108
115
|
},
|
|
109
116
|
},
|
|
110
117
|
{ id: 'tds/web/surface/description' },
|
|
@@ -117,23 +124,23 @@ namespace styles {
|
|
|
117
124
|
columnGap: '16',
|
|
118
125
|
display: 'flex',
|
|
119
126
|
justifyContent: 'space-between',
|
|
120
|
-
marginBlockEnd: '
|
|
127
|
+
marginBlockEnd: '20',
|
|
121
128
|
minWidth: '0',
|
|
122
129
|
selectors: {
|
|
123
|
-
// A trailing
|
|
124
|
-
// edge, but never past the surface padding.
|
|
125
|
-
'& > [data-variant="
|
|
126
|
-
marginInlineEnd: '-
|
|
130
|
+
// A trailing tertiary button bleeds by its inline padding, so its label aligns with the
|
|
131
|
+
// content edge, but never past the surface padding.
|
|
132
|
+
'& > [data-variant="tertiary"]:not([data-shape="icon"]):last-child': {
|
|
133
|
+
marginInlineEnd: '-24',
|
|
127
134
|
},
|
|
128
|
-
'& > [data-variant="
|
|
129
|
-
marginInlineEnd: '-
|
|
135
|
+
'& > [data-variant="tertiary"][data-size="small"]:not([data-shape="icon"]):last-child': {
|
|
136
|
+
marginInlineEnd: '-16',
|
|
130
137
|
},
|
|
131
|
-
'& > [data-variant="
|
|
132
|
-
marginInlineEnd: '-
|
|
138
|
+
'& > [data-variant="tertiary"][data-size="xsmall"]:not([data-shape="icon"]):last-child': {
|
|
139
|
+
marginInlineEnd: '-12',
|
|
133
140
|
},
|
|
134
|
-
'[data-surface-size="medium"] > & > [data-variant="
|
|
141
|
+
'[data-surface-size="medium"] > & > [data-variant="tertiary"]:is([data-size="medium"], [data-size="large"]):not([data-shape="icon"]):last-child':
|
|
135
142
|
{ marginInlineEnd: '-16' },
|
|
136
|
-
'[data-surface-size="small"] > & > [data-variant="
|
|
143
|
+
'[data-surface-size="small"] > & > [data-variant="tertiary"]:is([data-size="small"], [data-size="medium"], [data-size="large"]):not([data-shape="icon"]):last-child':
|
|
137
144
|
{ marginInlineEnd: '-12' },
|
|
138
145
|
},
|
|
139
146
|
},
|
|
@@ -153,8 +160,8 @@ namespace styles {
|
|
|
153
160
|
appearance: 'none !custom',
|
|
154
161
|
backgroundColor: 'transparent !custom',
|
|
155
162
|
border: 'none !custom',
|
|
156
|
-
borderRadius: '
|
|
157
|
-
color: '
|
|
163
|
+
borderRadius: '3xs',
|
|
164
|
+
color: 'content.primary',
|
|
158
165
|
cursor: 'pointer',
|
|
159
166
|
font: 'inherit !custom',
|
|
160
167
|
outlineColor: 'transparent !custom',
|
|
@@ -171,9 +178,9 @@ namespace styles {
|
|
|
171
178
|
transitionTimingFunction: 'snappy',
|
|
172
179
|
},
|
|
173
180
|
'& > :is(a, button):hover': { textDecorationColor: 'currentColor !custom' },
|
|
174
|
-
'& > :is(a, button):focus-visible': { outlineColor: '
|
|
181
|
+
'& > :is(a, button):focus-visible': { outlineColor: 'border.focus' },
|
|
175
182
|
},
|
|
176
|
-
typography: '
|
|
183
|
+
typography: 'body.b1Strong',
|
|
177
184
|
},
|
|
178
185
|
},
|
|
179
186
|
{ id: 'tds/web/surface/links' },
|
|
@@ -182,9 +189,12 @@ namespace styles {
|
|
|
182
189
|
export const surface = variants(
|
|
183
190
|
{
|
|
184
191
|
base: {
|
|
185
|
-
backgroundColor: 'background.
|
|
192
|
+
backgroundColor: 'background.elevated',
|
|
193
|
+
borderColor: 'line.secondary',
|
|
194
|
+
borderStyle: 'solid',
|
|
195
|
+
borderWidth: 'regular',
|
|
186
196
|
boxSizing: 'border-box',
|
|
187
|
-
color: '
|
|
197
|
+
color: 'content.primary',
|
|
188
198
|
display: 'block',
|
|
189
199
|
outlineColor: 'transparent !custom',
|
|
190
200
|
outlineOffset: '0',
|
|
@@ -194,40 +204,47 @@ namespace styles {
|
|
|
194
204
|
transitionDuration: '160',
|
|
195
205
|
transitionProperty: 'background-color, opacity, outline-color, outline-offset, scale',
|
|
196
206
|
transitionTimingFunction: 'snappy',
|
|
197
|
-
typography: '
|
|
207
|
+
typography: 'body.b2',
|
|
198
208
|
selectors: {
|
|
199
209
|
'&:is(button, a[href], [role="button"])': {
|
|
200
|
-
border: 'none !custom',
|
|
201
210
|
cursor: 'pointer',
|
|
202
211
|
textDecoration: 'none !custom',
|
|
203
212
|
width: '100% !custom',
|
|
204
213
|
},
|
|
205
214
|
'&:is(button, a[href], [role="button"]):hover:not(:disabled, [aria-disabled="true"])': {
|
|
206
|
-
backgroundColor: '
|
|
215
|
+
backgroundColor: 'container.regular',
|
|
207
216
|
},
|
|
208
217
|
'&:is(button, a[href], [role="button"]):active:not(:disabled, [aria-disabled="true"])': {
|
|
209
|
-
backgroundColor: '
|
|
218
|
+
backgroundColor: 'container.strong',
|
|
210
219
|
scale: 'press',
|
|
211
220
|
},
|
|
212
221
|
'&:is(button, a[href], [role="button"]):focus-visible': {
|
|
213
|
-
outlineColor: '
|
|
222
|
+
outlineColor: 'border.focus',
|
|
214
223
|
outlineOffset: '2',
|
|
215
224
|
},
|
|
216
|
-
//
|
|
217
|
-
// than hides its overflow, so a sticky header still sticks to the
|
|
218
|
-
|
|
219
|
-
'&:has(> table)': { overflow: 'clip !custom' },
|
|
225
|
+
// Row fills reach the edges of a small surface and would otherwise cross its corners. A
|
|
226
|
+
// table clips rather than hides its overflow, so a sticky header still sticks to the
|
|
227
|
+
// scrolling ancestor. The surface draws no border around the rows.
|
|
228
|
+
'&:has(> table)': { borderStyle: 'none', overflow: 'clip !custom' },
|
|
229
|
+
// A table bleeds by the 12px that its rows pad their edge cells, so the rows sit 12px
|
|
230
|
+
// inside the padding and their text on the content edge.
|
|
231
|
+
'& > table': {
|
|
232
|
+
marginInline: '-12',
|
|
233
|
+
width: `calc(100% + ${vars.spacing['24']}) !custom`,
|
|
234
|
+
},
|
|
220
235
|
// A table at the top or bottom edge insets its text by the padding alone, as at the sides.
|
|
221
236
|
// The header row bleeds to the top edge, so a sticky header keeps the padding above its
|
|
222
|
-
// text. The caption drops its outer padding. Without a caption, the last row bleeds
|
|
223
|
-
// bottom
|
|
224
|
-
// 20px type.
|
|
237
|
+
// text. The caption drops its outer padding. Without a caption, the last row bleeds 12px
|
|
238
|
+
// into the bottom padding and keeps the half gap above its text from its 32, 40 or 56px
|
|
239
|
+
// height with 20px type.
|
|
225
240
|
'& > table:last-child > caption': { paddingBlockEnd: '0px !custom' },
|
|
241
|
+
'& > table:last-child:not(:has(> caption))': { marginBlockEnd: '-12' },
|
|
226
242
|
'& > table:last-child:not(:has(> caption)) > tbody > tr:last-child > td': {
|
|
227
243
|
height: 'auto !custom',
|
|
244
|
+
paddingBlockEnd: '12',
|
|
228
245
|
},
|
|
229
246
|
'& > table[data-size="large"]:last-child:not(:has(> caption)) > tbody > tr:last-child > td':
|
|
230
|
-
{ paddingBlockStart: '
|
|
247
|
+
{ paddingBlockStart: '20' },
|
|
231
248
|
'& > table[data-size="medium"]:last-child:not(:has(> caption)) > tbody > tr:last-child > td':
|
|
232
249
|
{ paddingBlockStart: '10' },
|
|
233
250
|
'& > table[data-size="small"]:last-child:not(:has(> caption)) > tbody > tr:last-child > td':
|
|
@@ -248,85 +265,37 @@ namespace styles {
|
|
|
248
265
|
},
|
|
249
266
|
defaultVariants: { size: 'large' },
|
|
250
267
|
variants: {
|
|
251
|
-
//
|
|
252
|
-
//
|
|
253
|
-
// edges take back exactly the padding, so their text aligns with the content edge, while rows
|
|
254
|
-
// keep their own side padding. Rows at the top or bottom edge take the full block padding,
|
|
255
|
-
// since each row brings its own, and take half beside other content.
|
|
268
|
+
// Each size pads by its own radius, and they scale together. A direct child table with a
|
|
269
|
+
// header bleeds into the top padding, and its header cells take back exactly the padding.
|
|
256
270
|
size: {
|
|
257
271
|
large: {
|
|
258
|
-
borderRadius: '
|
|
272
|
+
borderRadius: 'md',
|
|
259
273
|
padding: '24',
|
|
260
274
|
selectors: {
|
|
261
|
-
'& > table, & > [data-rows]': { marginInline: '-24' },
|
|
262
|
-
'& > [data-rows]': { marginBlock: '-12' },
|
|
263
|
-
'& > [data-rows]:first-child': { marginBlockStart: '-24' },
|
|
264
|
-
'& > [data-rows]:last-child': { marginBlockEnd: '-24' },
|
|
265
|
-
'& > table': { width: `calc(100% + ${vars.spacing['48']}) !custom` },
|
|
266
|
-
'& > table > caption, & > table tr > :first-child': {
|
|
267
|
-
paddingInlineStart: '24',
|
|
268
|
-
},
|
|
269
|
-
'& > table tr > :last-child': { paddingInlineEnd: '24' },
|
|
270
275
|
'& > table:first-child:has(> thead)': { marginBlockStart: '-24' },
|
|
271
276
|
'& > table:first-child > thead > tr:first-child > th': {
|
|
272
277
|
paddingBlockStart: '24',
|
|
273
278
|
},
|
|
274
|
-
'& > table:last-child:not(:has(> caption))': {
|
|
275
|
-
marginBlockEnd: '-24',
|
|
276
|
-
},
|
|
277
|
-
'& > table:last-child:not(:has(> caption)) > tbody > tr:last-child > td': {
|
|
278
|
-
paddingBlockEnd: '24',
|
|
279
|
-
},
|
|
280
279
|
},
|
|
281
280
|
},
|
|
282
281
|
medium: {
|
|
283
|
-
borderRadius: '
|
|
282
|
+
borderRadius: 'sm',
|
|
284
283
|
padding: '16',
|
|
285
284
|
selectors: {
|
|
286
|
-
'& > table, & > [data-rows]': { marginInline: '-16' },
|
|
287
|
-
'& > [data-rows]': { marginBlock: '-8' },
|
|
288
|
-
'& > [data-rows]:first-child': { marginBlockStart: '-16' },
|
|
289
|
-
'& > [data-rows]:last-child': { marginBlockEnd: '-16' },
|
|
290
|
-
'& > table': { width: `calc(100% + ${vars.spacing['32']}) !custom` },
|
|
291
|
-
'& > table > caption, & > table tr > :first-child': {
|
|
292
|
-
paddingInlineStart: '16',
|
|
293
|
-
},
|
|
294
|
-
'& > table tr > :last-child': { paddingInlineEnd: '16' },
|
|
295
285
|
'& > table:first-child:has(> thead)': { marginBlockStart: '-16' },
|
|
296
286
|
'& > table:first-child > thead > tr:first-child > th': {
|
|
297
287
|
paddingBlockStart: '16',
|
|
298
288
|
},
|
|
299
|
-
'& > table:last-child:not(:has(> caption))': {
|
|
300
|
-
marginBlockEnd: '-16',
|
|
301
|
-
},
|
|
302
|
-
'& > table:last-child:not(:has(> caption)) > tbody > tr:last-child > td': {
|
|
303
|
-
paddingBlockEnd: '16',
|
|
304
|
-
},
|
|
305
289
|
},
|
|
306
290
|
},
|
|
307
291
|
small: {
|
|
308
|
-
borderRadius: '
|
|
292
|
+
borderRadius: 'xs',
|
|
309
293
|
padding: '12',
|
|
310
294
|
selectors: {
|
|
311
|
-
'& > table, & > [data-rows]': { marginInline: '-12' },
|
|
312
|
-
'& > [data-rows]': { marginBlock: '-6' },
|
|
313
|
-
'& > [data-rows]:first-child': { marginBlockStart: '-12' },
|
|
314
|
-
'& > [data-rows]:last-child': { marginBlockEnd: '-12' },
|
|
315
|
-
'& > table': { width: `calc(100% + ${vars.spacing['24']}) !custom` },
|
|
316
|
-
'& > table > caption, & > table tr > :first-child': {
|
|
317
|
-
paddingInlineStart: '12',
|
|
318
|
-
},
|
|
319
|
-
'& > table tr > :last-child': { paddingInlineEnd: '12' },
|
|
320
295
|
'& > table:first-child:has(> thead)': { marginBlockStart: '-12' },
|
|
321
296
|
'& > table:first-child > thead > tr:first-child > th': {
|
|
322
297
|
paddingBlockStart: '12',
|
|
323
298
|
},
|
|
324
|
-
'& > table:last-child:not(:has(> caption))': {
|
|
325
|
-
marginBlockEnd: '-12',
|
|
326
|
-
},
|
|
327
|
-
'& > table:last-child:not(:has(> caption)) > tbody > tr:last-child > td': {
|
|
328
|
-
paddingBlockEnd: '12',
|
|
329
|
-
},
|
|
330
299
|
},
|
|
331
300
|
},
|
|
332
301
|
},
|
|
@@ -339,13 +308,19 @@ namespace styles {
|
|
|
339
308
|
{
|
|
340
309
|
base: {
|
|
341
310
|
alignItems: 'center',
|
|
342
|
-
color: '
|
|
311
|
+
color: 'content.primary',
|
|
343
312
|
columnGap: '12',
|
|
344
313
|
display: 'flex',
|
|
345
314
|
margin: '0',
|
|
346
315
|
minWidth: '0',
|
|
347
|
-
selectors: {
|
|
348
|
-
|
|
316
|
+
selectors: {
|
|
317
|
+
'& > svg': { flexShrink: '0 !custom', fontSize: '24' },
|
|
318
|
+
// A card that holds a table titles it as a section of the page.
|
|
319
|
+
'[data-surface-size]:has(> table) > &, [data-surface-size]:has(> table) > * > &': {
|
|
320
|
+
typography: 'heading.h3',
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
typography: 'body.b2Strong',
|
|
349
324
|
},
|
|
350
325
|
},
|
|
351
326
|
{ id: 'tds/web/surface/title' },
|