@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
|
@@ -2,14 +2,14 @@ import * as BaseUi from '@base-ui/react/input'
|
|
|
2
2
|
import { type ComponentPropsWithRef, useContext, useMemo, useRef } from 'react'
|
|
3
3
|
import type * as zyzz from 'zyzz'
|
|
4
4
|
import { style } from '../zyzz.config.js'
|
|
5
|
-
import { Close } from '../icons/Close.js'
|
|
6
5
|
import * as InputGroup from './internal/InputGroup.js'
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* `invalid`
|
|
12
|
-
* `Field.Root`. Entering either state after mount plays a one-shot nudge or pop.
|
|
8
|
+
* A 48px text field. Compose `Group` with optional `Prefix`, `Control`, `Suffix` and `Clear`, and
|
|
9
|
+
* place it inside `Field.Root` to get a label, description and error. Focus turns the field
|
|
10
|
+
* elevated with a 1px border. `invalid` fills it red and `success` ends it with a check, each also
|
|
11
|
+
* inherited from `Field.Root`. Entering either state after mount plays a one-shot nudge or pop.
|
|
12
|
+
* For search, put a `Search` icon in `Prefix` and add `Clear`.
|
|
13
13
|
*
|
|
14
14
|
* - Give every control a visible `Field.Label`. A placeholder is not a label.
|
|
15
15
|
* - Set `autoComplete`, `inputMode` and `type` so browsers and keyboards can help fill the field.
|
|
@@ -18,11 +18,11 @@ import * as InputGroup from './internal/InputGroup.js'
|
|
|
18
18
|
* @example
|
|
19
19
|
* <Field.Root>
|
|
20
20
|
* <Field.Label>Amount</Field.Label>
|
|
21
|
-
* <
|
|
22
|
-
* <
|
|
23
|
-
* <
|
|
24
|
-
* <
|
|
25
|
-
* </
|
|
21
|
+
* <TextInput.Group>
|
|
22
|
+
* <TextInput.Prefix>$</TextInput.Prefix>
|
|
23
|
+
* <TextInput.Control inputMode="decimal" />
|
|
24
|
+
* <TextInput.Suffix>USDC</TextInput.Suffix>
|
|
25
|
+
* </TextInput.Group>
|
|
26
26
|
* </Field.Root>
|
|
27
27
|
*
|
|
28
28
|
* @see {@link https://base-ui.com/react/components/input | Base UI Input}
|
|
@@ -31,19 +31,10 @@ import * as InputGroup from './internal/InputGroup.js'
|
|
|
31
31
|
* @see {@link https://www.w3.org/WAI/WCAG22/Understanding/identify-input-purpose.html | WCAG 2.2 Identify Input Purpose}
|
|
32
32
|
* @see {@link https://www.w3.org/WAI/WCAG22/Understanding/error-identification.html | WCAG 2.2 Error Identification}
|
|
33
33
|
*/
|
|
34
|
-
export namespace
|
|
34
|
+
export namespace TextInput {
|
|
35
35
|
/** The field surface, rendered as a `div` that holds the other parts. */
|
|
36
36
|
export function Group(props: Group.Props) {
|
|
37
|
-
const {
|
|
38
|
-
className,
|
|
39
|
-
invalid = false,
|
|
40
|
-
ref,
|
|
41
|
-
size,
|
|
42
|
-
success = false,
|
|
43
|
-
variant,
|
|
44
|
-
vars,
|
|
45
|
-
...attributes
|
|
46
|
-
} = props
|
|
37
|
+
const { className, invalid = false, ref, success = false, variant, vars, ...attributes } = props
|
|
47
38
|
const control = useRef<HTMLInputElement | null>(null)
|
|
48
39
|
const element = useRef<HTMLDivElement | null>(null)
|
|
49
40
|
const context = useMemo(() => ({ control, invalid }), [invalid])
|
|
@@ -54,13 +45,7 @@ export namespace Input {
|
|
|
54
45
|
<InputGroup.Context.Provider value={context}>
|
|
55
46
|
<div
|
|
56
47
|
{...attributes}
|
|
57
|
-
{...InputGroup.styles.group({
|
|
58
|
-
className,
|
|
59
|
-
size,
|
|
60
|
-
style: props.style,
|
|
61
|
-
variant,
|
|
62
|
-
vars,
|
|
63
|
-
})}
|
|
48
|
+
{...InputGroup.styles.group({ className, style: props.style, variant, vars })}
|
|
64
49
|
data-invalid={invalid || undefined}
|
|
65
50
|
data-success={success || undefined}
|
|
66
51
|
ref={(node) => {
|
|
@@ -77,13 +62,13 @@ export namespace Input {
|
|
|
77
62
|
export type Props = ComponentPropsWithRef<'div'> &
|
|
78
63
|
zyzz.Props.Variants<typeof InputGroup.styles.group> & {
|
|
79
64
|
/**
|
|
80
|
-
*
|
|
65
|
+
* Fills the field red and sets `aria-invalid` on `TextInput.Control`.
|
|
81
66
|
*
|
|
82
67
|
* @default false
|
|
83
68
|
*/
|
|
84
69
|
invalid?: boolean | undefined
|
|
85
70
|
/**
|
|
86
|
-
*
|
|
71
|
+
* Ends the field with a check. It sets no ARIA state.
|
|
87
72
|
*
|
|
88
73
|
* @default false
|
|
89
74
|
*/
|
|
@@ -93,10 +78,12 @@ export namespace Input {
|
|
|
93
78
|
|
|
94
79
|
/**
|
|
95
80
|
* The native `input`. Inside `Field.Root`, Base UI links it to the label, description and error.
|
|
96
|
-
* `onValueChange` receives the new string value.
|
|
81
|
+
* `onValueChange` receives the new string value. In a group with an enabled `TextInput.Clear`,
|
|
82
|
+
* Escape empties a filled, editable control and stops there, so an enclosing dialog closes only on
|
|
83
|
+
* the next Escape.
|
|
97
84
|
*/
|
|
98
85
|
export function Control(props: Control.Props) {
|
|
99
|
-
const { className, ref, vars, ...attributes } = props
|
|
86
|
+
const { className, onKeyDown, ref, vars, ...attributes } = props
|
|
100
87
|
const group = useContext(InputGroup.Context)
|
|
101
88
|
|
|
102
89
|
return (
|
|
@@ -104,6 +91,17 @@ export namespace Input {
|
|
|
104
91
|
aria-invalid={group?.invalid || undefined}
|
|
105
92
|
{...attributes}
|
|
106
93
|
{...styles.control({ className, style: props.style, vars })}
|
|
94
|
+
onKeyDown={(event) => {
|
|
95
|
+
onKeyDown?.(event)
|
|
96
|
+
const input = event.currentTarget
|
|
97
|
+
if (event.defaultPrevented || event.key !== 'Escape' || !input.value) return
|
|
98
|
+
if (input.readOnly) return
|
|
99
|
+
if (!input.parentElement?.querySelector(':scope > [data-input-clear]:enabled')) return
|
|
100
|
+
|
|
101
|
+
clear(input)
|
|
102
|
+
event.preventDefault()
|
|
103
|
+
event.stopPropagation()
|
|
104
|
+
}}
|
|
107
105
|
ref={(node) => {
|
|
108
106
|
if (group) group.control.current = node as HTMLInputElement | null
|
|
109
107
|
if (typeof ref === 'function') ref(node as HTMLInputElement | null)
|
|
@@ -119,7 +117,10 @@ export namespace Input {
|
|
|
119
117
|
Pick<BaseUi.Input.Props, 'onValueChange' | 'render'>
|
|
120
118
|
}
|
|
121
119
|
|
|
122
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* Leading content before the control, such as a currency symbol or an icon that gives the field
|
|
122
|
+
* its meaning, like `Search`. Icons render at 16px.
|
|
123
|
+
*/
|
|
123
124
|
export function Prefix(props: Prefix.Props) {
|
|
124
125
|
const { className, vars, ...attributes } = props
|
|
125
126
|
|
|
@@ -130,7 +131,7 @@ export namespace Input {
|
|
|
130
131
|
export type Props = ComponentPropsWithRef<'span'> & zyzz.Props.Variants<typeof styles.prefix>
|
|
131
132
|
}
|
|
132
133
|
|
|
133
|
-
/** Trailing content after the control, such as a unit. */
|
|
134
|
+
/** Trailing content after the control, such as a unit or an icon. Icons size as in `Prefix`. */
|
|
134
135
|
export function Suffix(props: Suffix.Props) {
|
|
135
136
|
const { className, vars, ...attributes } = props
|
|
136
137
|
|
|
@@ -142,7 +143,7 @@ export namespace Input {
|
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
/**
|
|
145
|
-
* Empties the control and returns focus to it. It renders a
|
|
146
|
+
* Empties the control and returns focus to it. It renders a circled X with
|
|
146
147
|
* `aria-label="Clear"` by default. It is visible only inside a `Field.Root` whose control has a
|
|
147
148
|
* value, and calling `preventDefault` in `onClick` skips the clear.
|
|
148
149
|
*/
|
|
@@ -156,18 +157,28 @@ export namespace Input {
|
|
|
156
157
|
type="button"
|
|
157
158
|
{...attributes}
|
|
158
159
|
{...styles.clear({ className, style: props.style, vars })}
|
|
160
|
+
data-input-clear=""
|
|
159
161
|
onClick={(event) => {
|
|
160
162
|
onClick?.(event)
|
|
161
163
|
const input = group?.control.current
|
|
162
164
|
if (event.defaultPrevented || !input) return
|
|
163
165
|
|
|
164
|
-
|
|
165
|
-
Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set?.call(input, '')
|
|
166
|
-
input.dispatchEvent(new Event('input', { bubbles: true }))
|
|
166
|
+
clear(input)
|
|
167
167
|
input.focus()
|
|
168
168
|
}}
|
|
169
169
|
>
|
|
170
|
-
{children ??
|
|
170
|
+
{children ?? (
|
|
171
|
+
// The icon set has no X Circle yet, so this draws its ring and cross at 1px.
|
|
172
|
+
<svg aria-hidden fill="none" height="1em" viewBox="0 0 16 16" width="1em">
|
|
173
|
+
<path
|
|
174
|
+
clipRule="evenodd"
|
|
175
|
+
d="M8 1.33301C11.6817 1.33318 14.666 4.31919 14.666 8.00098C14.6656 11.6824 11.6815 14.6668 8 14.667C4.31837 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.3181 1.33301 8 1.33301ZM8 2.33398C4.87039 2.33398 2.33301 4.87137 2.33301 8.00098C2.33345 11.1302 4.87066 13.667 8 13.667C11.1292 13.6668 13.6656 11.1301 13.666 8.00098C13.666 4.87147 11.1294 2.33416 8 2.33398Z"
|
|
176
|
+
fill="currentColor"
|
|
177
|
+
fillRule="evenodd"
|
|
178
|
+
/>
|
|
179
|
+
<path d="M10 6 6 10M6 6l4 4" stroke="currentColor" strokeLinecap="round" />
|
|
180
|
+
</svg>
|
|
181
|
+
)}
|
|
171
182
|
</button>
|
|
172
183
|
)
|
|
173
184
|
}
|
|
@@ -177,20 +188,30 @@ export namespace Input {
|
|
|
177
188
|
}
|
|
178
189
|
}
|
|
179
190
|
|
|
191
|
+
/** Empties the input through the native setter and a bubbling event, which reach React for controlled and uncontrolled fields. */
|
|
192
|
+
function clear(input: HTMLInputElement) {
|
|
193
|
+
Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set?.call(input, '')
|
|
194
|
+
input.dispatchEvent(new Event('input', { bubbles: true }))
|
|
195
|
+
}
|
|
196
|
+
|
|
180
197
|
namespace styles {
|
|
181
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* A circled X drawn in tertiary content. It sits 16px from the end edge and the top, and its hit
|
|
200
|
+
* area extends past its circle.
|
|
201
|
+
*/
|
|
182
202
|
export const clear = style(
|
|
183
203
|
{
|
|
184
204
|
alignItems: 'center',
|
|
185
|
-
backgroundColor: '
|
|
205
|
+
backgroundColor: 'transparent !custom',
|
|
186
206
|
border: 'none !custom',
|
|
187
207
|
borderRadius: 'full',
|
|
188
|
-
color: '
|
|
208
|
+
color: 'content.tertiary',
|
|
209
|
+
cornerShape: 'round',
|
|
189
210
|
cursor: 'pointer',
|
|
190
211
|
display: 'inline-flex',
|
|
191
212
|
flexShrink: '0 !custom',
|
|
192
|
-
fontSize: '
|
|
193
|
-
height: '
|
|
213
|
+
fontSize: '16',
|
|
214
|
+
height: '16',
|
|
194
215
|
justifyContent: 'center',
|
|
195
216
|
opacity: '0 !custom',
|
|
196
217
|
outlineColor: 'transparent !custom',
|
|
@@ -202,15 +223,15 @@ namespace styles {
|
|
|
202
223
|
position: 'relative',
|
|
203
224
|
transform: 'scale(0.6) !custom',
|
|
204
225
|
transitionDuration: '160',
|
|
205
|
-
transitionProperty: '
|
|
226
|
+
transitionProperty: 'color, opacity, outline-color, transform, visibility !custom',
|
|
206
227
|
transitionTimingFunction: 'snappy',
|
|
207
228
|
visibility: 'hidden',
|
|
208
|
-
width: '
|
|
229
|
+
width: '16',
|
|
209
230
|
selectors: {
|
|
210
231
|
'&::after': { content: '"" !custom', inset: '-8', position: 'absolute' },
|
|
211
232
|
'&:active': { transform: 'scale(0.9) !custom', transitionDuration: '100' },
|
|
212
|
-
'&:focus-visible': { outlineColor: '
|
|
213
|
-
'&:hover': {
|
|
233
|
+
'&:focus-visible': { outlineColor: 'border.focus' },
|
|
234
|
+
'&:hover': { color: 'content.secondary' },
|
|
214
235
|
'[data-filled] &': {
|
|
215
236
|
opacity: '1 !custom',
|
|
216
237
|
pointerEvents: 'auto',
|
|
@@ -218,123 +239,71 @@ namespace styles {
|
|
|
218
239
|
visibility: 'visible',
|
|
219
240
|
},
|
|
220
241
|
'[data-filled] &:active': { transform: 'scale(0.9) !custom' },
|
|
221
|
-
'[data-size="large"] > &:last-child': { marginInlineEnd: '-4' },
|
|
222
|
-
'[data-size="medium"] > &': { fontSize: '12', height: '20', width: '20' },
|
|
223
|
-
'[data-size="medium"] > &:last-child': { marginInlineEnd: '-6' },
|
|
224
|
-
'[data-size="small"] > &': { fontSize: '12', height: '16', width: '16' },
|
|
225
|
-
'[data-size="small"] > &:last-child': { marginInlineEnd: '-4' },
|
|
226
|
-
// A small stacked field takes the medium size, so Clear takes the medium size too.
|
|
227
|
-
'[data-variant="stacked"] > [data-size="small"] > &': {
|
|
228
|
-
fontSize: '12',
|
|
229
|
-
height: '20',
|
|
230
|
-
width: '20',
|
|
231
|
-
},
|
|
232
|
-
'[data-variant="stacked"] > [data-size="small"] > &:last-child': {
|
|
233
|
-
marginInlineEnd: '-6',
|
|
234
|
-
},
|
|
235
242
|
},
|
|
236
243
|
'@media (forced-colors: active)': {
|
|
237
244
|
outlineStyle: 'none !custom',
|
|
238
245
|
selectors: { '&:focus-visible': { outlineStyle: 'solid !custom' } },
|
|
239
246
|
},
|
|
240
247
|
'@media (prefers-reduced-motion: reduce)': {
|
|
241
|
-
transitionProperty: '
|
|
248
|
+
transitionProperty: 'color, opacity, outline-color, visibility !custom',
|
|
242
249
|
selectors: {
|
|
243
250
|
'&, &:active, [data-filled] &:active': { transform: 'none !custom' },
|
|
244
251
|
},
|
|
245
252
|
},
|
|
246
253
|
},
|
|
247
|
-
{ id: 'tds/web/input/clear' },
|
|
254
|
+
{ id: 'tds/web/text-input/clear' },
|
|
248
255
|
)
|
|
249
256
|
|
|
257
|
+
// The group carries the type, so the control inherits it. Browsers reset the tracking of a form
|
|
258
|
+
// control, so it inherits that too.
|
|
250
259
|
export const control = style(
|
|
251
260
|
{
|
|
252
261
|
appearance: 'none !custom',
|
|
253
262
|
backgroundColor: 'transparent !custom',
|
|
254
263
|
border: 'none !custom',
|
|
255
264
|
boxSizing: 'border-box',
|
|
256
|
-
color: '
|
|
265
|
+
color: 'content.primary',
|
|
257
266
|
flex: '1 !custom',
|
|
258
267
|
font: 'inherit !custom',
|
|
268
|
+
letterSpacing: 'inherit !custom',
|
|
259
269
|
minWidth: '0',
|
|
260
270
|
outline: 'none !custom',
|
|
261
271
|
padding: '0',
|
|
262
272
|
selectors: {
|
|
263
273
|
'&::-webkit-search-cancel-button': { appearance: 'none !custom', display: 'none' },
|
|
264
|
-
'&::placeholder': {
|
|
265
|
-
|
|
266
|
-
transitionDuration: '160',
|
|
267
|
-
transitionProperty: 'opacity !custom',
|
|
268
|
-
transitionTimingFunction: 'snappy',
|
|
269
|
-
},
|
|
270
|
-
'[data-variant="card"] > &': {
|
|
271
|
-
typography: 'heading.24',
|
|
272
|
-
},
|
|
273
|
-
// The group carries the size, so card text scales with it.
|
|
274
|
-
'[data-variant="card"][data-size="small"] &': {
|
|
275
|
-
typography: 'heading.20',
|
|
276
|
-
},
|
|
277
|
-
'[data-variant="card"][data-size="large"] &': {
|
|
278
|
-
typography: 'heading.32',
|
|
279
|
-
},
|
|
280
|
-
// The value sits below the floating label, which needs more room in a large field.
|
|
281
|
-
'[data-variant="stacked"] &': { paddingTop: '12' },
|
|
282
|
-
'[data-variant="stacked"] [data-size="large"] &': { paddingTop: '16' },
|
|
283
|
-
'[data-variant="stacked"]:not([data-focused]) &::placeholder': { opacity: '0 !custom' },
|
|
274
|
+
'&::placeholder': { color: 'content.tertiary' },
|
|
275
|
+
'&:disabled, &:disabled::placeholder': { color: 'content.subtle' },
|
|
284
276
|
},
|
|
285
277
|
},
|
|
286
|
-
{ id: 'tds/web/input/control' },
|
|
278
|
+
{ id: 'tds/web/text-input/control' },
|
|
287
279
|
)
|
|
288
280
|
|
|
281
|
+
// Text adornments keep 4.5:1 contrast, while icons take the tertiary color.
|
|
289
282
|
export const prefix = style(
|
|
290
283
|
{
|
|
291
284
|
alignItems: 'center',
|
|
292
|
-
color: '
|
|
285
|
+
color: 'content.secondary',
|
|
293
286
|
display: 'inline-flex',
|
|
294
287
|
flexShrink: '0 !custom',
|
|
295
288
|
selectors: {
|
|
296
|
-
'
|
|
297
|
-
|
|
298
|
-
},
|
|
299
|
-
'[data-variant="card"][data-size="small"] &': {
|
|
300
|
-
typography: 'heading.20',
|
|
301
|
-
},
|
|
302
|
-
'[data-variant="card"][data-size="large"] &': {
|
|
303
|
-
typography: 'heading.32',
|
|
304
|
-
},
|
|
305
|
-
// The value sits below the floating label, which needs more room in a large field.
|
|
306
|
-
'[data-variant="stacked"] &': { paddingTop: '12' },
|
|
307
|
-
'[data-variant="stacked"] [data-size="large"] &': { paddingTop: '16' },
|
|
308
|
-
'[data-variant="stacked"]:not([data-filled]):not([data-focused]) &': {
|
|
309
|
-
opacity: '0 !custom',
|
|
310
|
-
},
|
|
289
|
+
'& > svg': { color: 'content.tertiary', flexShrink: '0 !custom', fontSize: '16' },
|
|
290
|
+
':has(input:disabled) > &, :has(input:disabled) > & > svg': { color: 'content.subtle' },
|
|
311
291
|
},
|
|
312
292
|
},
|
|
313
|
-
{ id: 'tds/web/input/prefix' },
|
|
293
|
+
{ id: 'tds/web/text-input/prefix' },
|
|
314
294
|
)
|
|
315
295
|
|
|
316
296
|
export const suffix = style(
|
|
317
297
|
{
|
|
318
298
|
alignItems: 'center',
|
|
319
|
-
color: '
|
|
299
|
+
color: 'content.secondary',
|
|
320
300
|
display: 'inline-flex',
|
|
321
301
|
flexShrink: '0 !custom',
|
|
322
302
|
selectors: {
|
|
323
|
-
'
|
|
324
|
-
|
|
325
|
-
typography: 'heading.24',
|
|
326
|
-
},
|
|
327
|
-
'[data-variant="card"][data-size="small"] &': {
|
|
328
|
-
typography: 'heading.20',
|
|
329
|
-
},
|
|
330
|
-
'[data-variant="card"][data-size="large"] &': {
|
|
331
|
-
typography: 'heading.32',
|
|
332
|
-
},
|
|
333
|
-
// The value sits below the floating label, which needs more room in a large field.
|
|
334
|
-
'[data-variant="stacked"] &': { paddingTop: '12' },
|
|
335
|
-
'[data-variant="stacked"] [data-size="large"] &': { paddingTop: '16' },
|
|
303
|
+
'& > svg': { color: 'content.tertiary', flexShrink: '0 !custom', fontSize: '16' },
|
|
304
|
+
':has(input:disabled) > &, :has(input:disabled) > & > svg': { color: 'content.subtle' },
|
|
336
305
|
},
|
|
337
306
|
},
|
|
338
|
-
{ id: 'tds/web/input/suffix' },
|
|
307
|
+
{ id: 'tds/web/text-input/suffix' },
|
|
339
308
|
)
|
|
340
309
|
}
|
|
@@ -5,8 +5,8 @@ import { variants } from '../zyzz.config.js'
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A native `textarea` registered as the control of the enclosing `Field.Root`, which supplies its
|
|
8
|
-
* label, description, error and disabled state. It
|
|
9
|
-
* and
|
|
8
|
+
* label, description, error and disabled state. It defaults to three rows with vertical resizing,
|
|
9
|
+
* and `variant="outlined"` draws a 1px line instead of the fill.
|
|
10
10
|
*
|
|
11
11
|
* - Use it for multi-line answers. Set `rows` to the expected length of the answer.
|
|
12
12
|
* - `resize="auto"` grows the box with its content through `field-sizing`. Browsers without that
|
|
@@ -25,21 +25,14 @@ import { variants } from '../zyzz.config.js'
|
|
|
25
25
|
* @see {@link https://www.w3.org/WAI/WCAG22/Understanding/error-identification.html | WCAG 2.2 Error Identification}
|
|
26
26
|
*/
|
|
27
27
|
export function Textarea(props: Textarea.Props) {
|
|
28
|
-
const { className, resize, rows = 3,
|
|
28
|
+
const { className, resize, rows = 3, variant, vars, ...attributes } = props
|
|
29
29
|
|
|
30
30
|
return (
|
|
31
31
|
<BaseUi.Field.Control
|
|
32
32
|
render={
|
|
33
33
|
<textarea
|
|
34
34
|
{...attributes}
|
|
35
|
-
{...styles.textarea({
|
|
36
|
-
className,
|
|
37
|
-
resize,
|
|
38
|
-
size,
|
|
39
|
-
style: props.style,
|
|
40
|
-
variant,
|
|
41
|
-
vars,
|
|
42
|
-
})}
|
|
35
|
+
{...styles.textarea({ className, resize, style: props.style, variant, vars })}
|
|
43
36
|
rows={rows}
|
|
44
37
|
/>
|
|
45
38
|
}
|
|
@@ -57,53 +50,41 @@ namespace styles {
|
|
|
57
50
|
{
|
|
58
51
|
base: {
|
|
59
52
|
appearance: 'none !custom',
|
|
60
|
-
backgroundColor: '
|
|
53
|
+
backgroundColor: 'container.regular',
|
|
54
|
+
// A transparent 1px border carries the focus border, as the inset border of `TextInput.Group` does.
|
|
61
55
|
borderColor: 'transparent !custom',
|
|
56
|
+
borderRadius: 'xs',
|
|
62
57
|
borderStyle: 'solid',
|
|
63
|
-
borderWidth: '
|
|
58
|
+
borderWidth: 'regular',
|
|
64
59
|
boxSizing: 'border-box',
|
|
65
|
-
color: '
|
|
60
|
+
color: 'content.primary',
|
|
66
61
|
display: 'block',
|
|
62
|
+
// Forced colors paint transparent outlines, so this outline is the focus ring only there.
|
|
67
63
|
outlineColor: 'transparent !custom',
|
|
68
64
|
outlineOffset: '2',
|
|
69
65
|
outlineStyle: 'solid !custom',
|
|
70
66
|
outlineWidth: '2',
|
|
67
|
+
// One row is as tall as a `TextInput.Group`: 48px, with the 1px border inside it.
|
|
68
|
+
paddingBlock: '13px !custom',
|
|
69
|
+
paddingInline: '16',
|
|
71
70
|
transitionDuration: '160',
|
|
72
71
|
transitionProperty: 'background-color, border-color, opacity, outline-color !custom',
|
|
73
72
|
transitionTimingFunction: 'snappy',
|
|
73
|
+
typography: 'body.b2',
|
|
74
74
|
width: '100% !custom',
|
|
75
75
|
selectors: {
|
|
76
|
-
|
|
77
|
-
'&:
|
|
78
|
-
'&:
|
|
79
|
-
'
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
// `:where` keeps the hover and focus fills below the invalid and disabled fills.
|
|
77
|
+
'&:where(:hover:not(:disabled))': { backgroundColor: 'container.strong' },
|
|
78
|
+
'&:where(:focus-visible)': { backgroundColor: 'background.elevated' },
|
|
79
|
+
'&:focus-visible': { borderColor: 'border.focus' },
|
|
80
|
+
'&::placeholder': { color: 'content.tertiary' },
|
|
81
|
+
'&[aria-invalid="true"], [data-invalid] &': { backgroundColor: 'container.negative' },
|
|
82
|
+
'&:disabled': {
|
|
83
|
+
backgroundColor: 'container.subtle',
|
|
84
|
+
color: 'content.subtle',
|
|
85
|
+
cursor: 'default',
|
|
84
86
|
},
|
|
85
|
-
'
|
|
86
|
-
'&[aria-invalid="true"]:focus-visible, [data-invalid] &:focus-visible': {
|
|
87
|
-
borderColor: 'transparent !custom',
|
|
88
|
-
outlineColor: 'red.800',
|
|
89
|
-
},
|
|
90
|
-
// Card sizes match Input: medium is the default card.
|
|
91
|
-
'&[data-variant="card"][data-size="small"]': {
|
|
92
|
-
borderRadius: '8',
|
|
93
|
-
padding: '12',
|
|
94
|
-
},
|
|
95
|
-
'&[data-variant="card"][data-size="large"]': { borderRadius: '16', padding: '24' },
|
|
96
|
-
// The first line sits below the floating label, as in a stacked Input of the same size.
|
|
97
|
-
'[data-variant="stacked"] > &': { gridArea: '1 / 1', paddingTop: '14' },
|
|
98
|
-
'[data-variant="stacked"] > &[data-size="large"]': { paddingTop: '22' },
|
|
99
|
-
// A small stacked field takes the medium size, as Input does.
|
|
100
|
-
'[data-variant="stacked"] > &[data-size="small"]': {
|
|
101
|
-
borderRadius: '12',
|
|
102
|
-
paddingBottom: '8',
|
|
103
|
-
paddingInline: '14',
|
|
104
|
-
typography: 'copy.14',
|
|
105
|
-
},
|
|
106
|
-
'[data-variant="stacked"]:not([data-focused]) &::placeholder': { opacity: '0 !custom' },
|
|
87
|
+
'&:disabled::placeholder': { color: 'content.subtle' },
|
|
107
88
|
},
|
|
108
89
|
'@media (forced-colors: active)': {
|
|
109
90
|
outlineStyle: 'none !custom',
|
|
@@ -113,51 +94,25 @@ namespace styles {
|
|
|
113
94
|
transitionProperty: 'background-color, border-color, opacity, outline-color !custom',
|
|
114
95
|
},
|
|
115
96
|
},
|
|
116
|
-
defaultVariants: { resize: 'vertical',
|
|
97
|
+
defaultVariants: { resize: 'vertical', variant: 'default' },
|
|
117
98
|
variants: {
|
|
118
99
|
resize: {
|
|
119
100
|
auto: { fieldSizing: 'content !custom', resize: 'none !custom' },
|
|
120
101
|
none: { resize: 'none !custom' },
|
|
121
102
|
vertical: { resize: 'vertical !custom' },
|
|
122
103
|
},
|
|
123
|
-
// One row is as tall as an `Input.Group` of the same size: 32, 40 or 56px. Paddings leave
|
|
124
|
-
// room for the 2px border that carries the invalid ring.
|
|
125
|
-
size: {
|
|
126
|
-
large: {
|
|
127
|
-
borderRadius: '16',
|
|
128
|
-
paddingBlock: '14',
|
|
129
|
-
paddingInline: '18',
|
|
130
|
-
typography: 'copy.16',
|
|
131
|
-
},
|
|
132
|
-
medium: {
|
|
133
|
-
borderRadius: '12',
|
|
134
|
-
paddingBlock: '8',
|
|
135
|
-
paddingInline: '14',
|
|
136
|
-
typography: 'copy.14',
|
|
137
|
-
},
|
|
138
|
-
small: {
|
|
139
|
-
borderRadius: '8',
|
|
140
|
-
paddingBlock: '5px !custom',
|
|
141
|
-
paddingInline: '10',
|
|
142
|
-
typography: 'copy.13',
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
104
|
variant: {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
borderWidth: '1',
|
|
152
|
-
padding: '16',
|
|
105
|
+
default: {},
|
|
106
|
+
// A 1px line and no fill. Focus darkens the line, and an invalid value fills it red.
|
|
107
|
+
outlined: {
|
|
108
|
+
backgroundColor: 'transparent !custom',
|
|
109
|
+
borderColor: 'line.primary',
|
|
153
110
|
selectors: {
|
|
154
|
-
'&:
|
|
155
|
-
|
|
156
|
-
borderColor: 'grayAlpha.400',
|
|
111
|
+
'&:where([aria-invalid="true"], [data-invalid] *)': {
|
|
112
|
+
borderColor: 'border.negative',
|
|
157
113
|
},
|
|
158
114
|
},
|
|
159
115
|
},
|
|
160
|
-
default: {},
|
|
161
116
|
},
|
|
162
117
|
},
|
|
163
118
|
},
|