@agent-native/design-system 0.229.0 → 0.237.1
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 +45 -16
- package/css/components/announcement.css +6 -0
- package/css/components/autocomplete.css +4 -0
- package/css/components/button.css +2 -0
- package/css/components/combobox.css +3 -0
- package/css/components/design-file-panel.css +5 -0
- package/css/components/dialog.css +2 -0
- package/css/components/dock-workspace.css +5 -0
- package/css/components/font-picker.css +7 -0
- package/css/components/icon-button.css +2 -0
- package/css/components/image-card.css +4 -0
- package/css/components/layer-tree.css +4 -0
- package/css/components/meter.css +1 -0
- package/css/components/progress.css +2 -0
- package/css/components/property-token.css +3 -0
- package/css/components/tabs.css +3 -0
- package/css/components/toast.css +2 -0
- package/css/direction.css +24 -0
- package/css/main.css +3 -2
- package/css/parts/accordion.css +4 -3
- package/css/parts/alert-dialog.css +19 -51
- package/css/parts/alignment-picker.css +363 -0
- package/css/parts/autocomplete.css +47 -117
- package/css/parts/avatar.css +3 -30
- package/css/parts/badge.css +11 -25
- package/css/parts/blockquote.css +1 -1
- package/css/parts/button.css +75 -61
- package/css/parts/callout.css +4 -24
- package/css/parts/card.css +31 -39
- package/css/parts/checkbox-cards.css +10 -11
- package/css/parts/checkbox-group.css +1 -1
- package/css/parts/checkbox.css +35 -18
- package/css/parts/code.css +4 -64
- package/css/parts/color-swatch.css +36 -0
- package/css/parts/combobox.css +24 -10
- package/css/parts/constraint-controls.css +140 -0
- package/css/parts/context-menu.css +1 -1
- package/css/parts/data-list.css +9 -22
- package/css/parts/design-file-panel.css +189 -0
- package/css/parts/design-property-inspector.css +200 -0
- package/css/parts/dialog.css +87 -91
- package/css/parts/dock-workspace.css +123 -0
- package/css/parts/drawer.css +14 -54
- package/css/parts/field.css +2 -2
- package/css/parts/fieldset.css +1 -1
- package/css/parts/font-picker.css +205 -0
- package/css/parts/grid-size-picker.css +220 -0
- package/css/parts/heading.css +1 -1
- package/css/parts/icon-button.css +2 -12
- package/css/parts/image-card.css +126 -0
- package/css/parts/input.css +37 -31
- package/css/parts/inset.css +1 -0
- package/css/parts/inspector.css +67 -0
- package/css/parts/item.css +5 -8
- package/css/parts/kbd.css +10 -49
- package/css/parts/layer-tree.css +174 -0
- package/css/parts/layout.css +18 -0
- package/css/parts/link.css +1 -1
- package/css/parts/menu.css +48 -47
- package/css/parts/menubar.css +3 -3
- package/css/parts/meter.css +28 -14
- package/css/parts/navigation-menu.css +6 -6
- package/css/parts/number-field.css +18 -12
- package/css/parts/otp-field.css +12 -26
- package/css/parts/page-header.css +1 -1
- package/css/parts/paint-editor.css +70 -0
- package/css/parts/popover.css +33 -36
- package/css/parts/preview-card.css +19 -21
- package/css/parts/progress.css +32 -18
- package/css/parts/property-list.css +34 -0
- package/css/parts/property-token.css +104 -0
- package/css/parts/radio-cards.css +28 -20
- package/css/parts/radio-group.css +28 -15
- package/css/parts/scroll-area.css +10 -17
- package/css/parts/segmented-control.css +66 -45
- package/css/parts/select.css +56 -53
- package/css/parts/separator.css +7 -19
- package/css/parts/sidebar.css +6 -9
- package/css/parts/skeleton.css +14 -1
- package/css/parts/slider.css +33 -24
- package/css/parts/spinner.css +5 -14
- package/css/parts/split-pane.css +117 -0
- package/css/parts/switch.css +73 -36
- package/css/parts/tab-nav.css +1 -1
- package/css/parts/table.css +23 -38
- package/css/parts/tabs.css +151 -30
- package/css/parts/text-area.css +11 -20
- package/css/parts/text.css +21 -58
- package/css/parts/toast.css +28 -19
- package/css/parts/toggle-group.css +1 -1
- package/css/parts/toggle.css +34 -21
- package/css/parts/toolbar.css +40 -37
- package/css/parts/tooltip.css +2 -2
- package/css/styles.css +18 -3
- package/css/text-style-utilities.css +113 -0
- package/css/text-styles.css +115 -0
- package/css/themes/agent-native.css +51 -44
- package/css/themes/analytics.css +40 -30
- package/css/themes/assets.css +40 -30
- package/css/themes/baseline.css +93 -28
- package/css/themes/brain.css +40 -30
- package/css/themes/calendar.css +40 -30
- package/css/themes/chat.css +40 -30
- package/css/themes/clips.css +40 -30
- package/css/themes/content.css +40 -30
- package/css/themes/crm.css +40 -30
- package/css/themes/design.css +40 -30
- package/css/themes/desktop.css +40 -30
- package/css/themes/dispatch.css +40 -30
- package/css/themes/docs.css +40 -30
- package/css/themes/factory.css +40 -30
- package/css/themes/forms.css +40 -30
- package/css/themes/mail.css +40 -30
- package/css/themes/plan.css +40 -30
- package/css/themes/slides.css +40 -30
- package/css/themes/tasks.css +40 -30
- package/css/tokens.css +93 -72
- package/dist/catalog/components/alert-dialog.d.ts +2 -0
- package/dist/catalog/components/alert-dialog.d.ts.map +1 -0
- package/dist/catalog/components/alert-dialog.js +2 -0
- package/dist/catalog/components/alert-dialog.js.map +1 -0
- package/dist/catalog/components/alignment-picker.d.ts +11 -0
- package/dist/catalog/components/alignment-picker.d.ts.map +1 -0
- package/dist/catalog/components/alignment-picker.js +12 -0
- package/dist/catalog/components/alignment-picker.js.map +1 -0
- package/dist/catalog/components/aspect-ratio.d.ts +7 -0
- package/dist/catalog/components/aspect-ratio.d.ts.map +1 -0
- package/dist/catalog/components/aspect-ratio.js +7 -0
- package/dist/catalog/components/aspect-ratio.js.map +1 -0
- package/dist/catalog/components/autocomplete.d.ts +13 -0
- package/dist/catalog/components/autocomplete.d.ts.map +1 -0
- package/dist/catalog/components/autocomplete.js +14 -0
- package/dist/catalog/components/autocomplete.js.map +1 -0
- package/dist/catalog/components/avatar.d.ts +7 -0
- package/dist/catalog/components/avatar.d.ts.map +1 -0
- package/dist/catalog/components/avatar.js +8 -0
- package/dist/catalog/components/avatar.js.map +1 -0
- package/dist/catalog/components/badge.d.ts +8 -0
- package/dist/catalog/components/badge.d.ts.map +1 -0
- package/dist/catalog/components/badge.js +9 -0
- package/dist/catalog/components/badge.js.map +1 -0
- package/dist/catalog/components/blockquote.d.ts +8 -0
- package/dist/catalog/components/blockquote.d.ts.map +1 -0
- package/dist/catalog/components/blockquote.js +9 -0
- package/dist/catalog/components/blockquote.js.map +1 -0
- package/dist/catalog/components/button.d.ts +29 -0
- package/dist/catalog/components/button.d.ts.map +1 -0
- package/dist/catalog/components/button.js +23 -0
- package/dist/catalog/components/button.js.map +1 -0
- package/dist/catalog/components/callout.d.ts +6 -0
- package/dist/catalog/components/callout.d.ts.map +1 -0
- package/dist/catalog/components/callout.js +7 -0
- package/dist/catalog/components/callout.js.map +1 -0
- package/dist/catalog/components/card.d.ts +4 -0
- package/dist/catalog/components/card.d.ts.map +1 -0
- package/dist/catalog/components/card.js +5 -0
- package/dist/catalog/components/card.js.map +1 -0
- package/dist/catalog/components/checkbox-cards.d.ts +7 -0
- package/dist/catalog/components/checkbox-cards.d.ts.map +1 -0
- package/dist/catalog/components/checkbox-cards.js +8 -0
- package/dist/catalog/components/checkbox-cards.js.map +1 -0
- package/dist/catalog/components/checkbox-group.d.ts +6 -0
- package/dist/catalog/components/checkbox-group.d.ts.map +1 -0
- package/dist/catalog/components/checkbox-group.js +7 -0
- package/dist/catalog/components/checkbox-group.js.map +1 -0
- package/dist/catalog/components/checkbox.d.ts +6 -0
- package/dist/catalog/components/checkbox.d.ts.map +1 -0
- package/dist/catalog/components/checkbox.js +7 -0
- package/dist/catalog/components/checkbox.js.map +1 -0
- package/dist/catalog/components/code.d.ts +9 -0
- package/dist/catalog/components/code.d.ts.map +1 -0
- package/dist/catalog/components/code.js +10 -0
- package/dist/catalog/components/code.js.map +1 -0
- package/dist/catalog/components/color-swatch.d.ts +5 -0
- package/dist/catalog/components/color-swatch.d.ts.map +1 -0
- package/dist/catalog/components/color-swatch.js +6 -0
- package/dist/catalog/components/color-swatch.js.map +1 -0
- package/dist/catalog/components/combobox.d.ts +13 -0
- package/dist/catalog/components/combobox.d.ts.map +1 -0
- package/dist/catalog/components/combobox.js +14 -0
- package/dist/catalog/components/combobox.js.map +1 -0
- package/dist/catalog/components/context-menu.d.ts +11 -0
- package/dist/catalog/components/context-menu.d.ts.map +1 -0
- package/dist/catalog/components/context-menu.js +12 -0
- package/dist/catalog/components/context-menu.js.map +1 -0
- package/dist/catalog/components/data-list.d.ts +5 -0
- package/dist/catalog/components/data-list.d.ts.map +1 -0
- package/dist/catalog/components/data-list.js +6 -0
- package/dist/catalog/components/data-list.js.map +1 -0
- package/dist/catalog/components/dialog.d.ts +2 -0
- package/dist/catalog/components/dialog.d.ts.map +1 -0
- package/dist/catalog/components/dialog.js +2 -0
- package/dist/catalog/components/dialog.js.map +1 -0
- package/dist/catalog/components/drawer.d.ts +4 -0
- package/dist/catalog/components/drawer.d.ts.map +1 -0
- package/dist/catalog/components/drawer.js +5 -0
- package/dist/catalog/components/drawer.js.map +1 -0
- package/dist/catalog/components/font-picker.d.ts +10 -0
- package/dist/catalog/components/font-picker.d.ts.map +1 -0
- package/dist/catalog/components/font-picker.js +11 -0
- package/dist/catalog/components/font-picker.js.map +1 -0
- package/dist/catalog/components/grid-size-picker.d.ts +11 -0
- package/dist/catalog/components/grid-size-picker.d.ts.map +1 -0
- package/dist/catalog/components/grid-size-picker.js +12 -0
- package/dist/catalog/components/grid-size-picker.js.map +1 -0
- package/dist/catalog/components/heading.d.ts +13 -0
- package/dist/catalog/components/heading.d.ts.map +1 -0
- package/dist/catalog/components/heading.js +9 -0
- package/dist/catalog/components/heading.js.map +1 -0
- package/dist/catalog/components/index.d.ts +56 -0
- package/dist/catalog/components/index.d.ts.map +1 -0
- package/dist/catalog/components/index.js +56 -0
- package/dist/catalog/components/index.js.map +1 -0
- package/dist/catalog/components/input.d.ts +11 -0
- package/dist/catalog/components/input.d.ts.map +1 -0
- package/dist/catalog/components/input.js +12 -0
- package/dist/catalog/components/input.js.map +1 -0
- package/dist/catalog/components/inset.d.ts +6 -0
- package/dist/catalog/components/inset.d.ts.map +1 -0
- package/dist/catalog/components/inset.js +7 -0
- package/dist/catalog/components/inset.js.map +1 -0
- package/dist/catalog/components/item.d.ts +11 -0
- package/dist/catalog/components/item.d.ts.map +1 -0
- package/dist/catalog/components/item.js +12 -0
- package/dist/catalog/components/item.js.map +1 -0
- package/dist/catalog/components/kbd.d.ts +4 -0
- package/dist/catalog/components/kbd.d.ts.map +1 -0
- package/dist/catalog/components/kbd.js +5 -0
- package/dist/catalog/components/kbd.js.map +1 -0
- package/dist/catalog/components/link.d.ts +10 -0
- package/dist/catalog/components/link.d.ts.map +1 -0
- package/dist/catalog/components/link.js +11 -0
- package/dist/catalog/components/link.js.map +1 -0
- package/dist/catalog/components/menu.d.ts +11 -0
- package/dist/catalog/components/menu.d.ts.map +1 -0
- package/dist/catalog/components/menu.js +12 -0
- package/dist/catalog/components/menu.js.map +1 -0
- package/dist/catalog/components/menubar.d.ts +11 -0
- package/dist/catalog/components/menubar.d.ts.map +1 -0
- package/dist/catalog/components/menubar.js +12 -0
- package/dist/catalog/components/menubar.js.map +1 -0
- package/dist/catalog/components/meter.d.ts +7 -0
- package/dist/catalog/components/meter.d.ts.map +1 -0
- package/dist/catalog/components/meter.js +8 -0
- package/dist/catalog/components/meter.js.map +1 -0
- package/dist/catalog/components/number-field.d.ts +8 -0
- package/dist/catalog/components/number-field.d.ts.map +1 -0
- package/dist/catalog/components/number-field.js +9 -0
- package/dist/catalog/components/number-field.js.map +1 -0
- package/dist/catalog/components/otp-field.d.ts +6 -0
- package/dist/catalog/components/otp-field.d.ts.map +1 -0
- package/dist/catalog/components/otp-field.js +7 -0
- package/dist/catalog/components/otp-field.js.map +1 -0
- package/dist/catalog/components/popover.d.ts +2 -0
- package/dist/catalog/components/popover.d.ts.map +1 -0
- package/dist/catalog/components/popover.js +2 -0
- package/dist/catalog/components/popover.js.map +1 -0
- package/dist/catalog/components/preview-card.d.ts +2 -0
- package/dist/catalog/components/preview-card.d.ts.map +1 -0
- package/dist/catalog/components/preview-card.js +2 -0
- package/dist/catalog/components/preview-card.js.map +1 -0
- package/dist/catalog/components/progress.d.ts +11 -0
- package/dist/catalog/components/progress.d.ts.map +1 -0
- package/dist/catalog/components/progress.js +12 -0
- package/dist/catalog/components/progress.js.map +1 -0
- package/dist/catalog/components/radio-cards.d.ts +7 -0
- package/dist/catalog/components/radio-cards.d.ts.map +1 -0
- package/dist/catalog/components/radio-cards.js +8 -0
- package/dist/catalog/components/radio-cards.js.map +1 -0
- package/dist/catalog/components/radio-group.d.ts +6 -0
- package/dist/catalog/components/radio-group.d.ts.map +1 -0
- package/dist/catalog/components/radio-group.js +7 -0
- package/dist/catalog/components/radio-group.js.map +1 -0
- package/dist/catalog/components/scroll-area.d.ts +5 -0
- package/dist/catalog/components/scroll-area.d.ts.map +1 -0
- package/dist/catalog/components/scroll-area.js +6 -0
- package/dist/catalog/components/scroll-area.js.map +1 -0
- package/dist/catalog/components/segmented-control.d.ts +7 -0
- package/dist/catalog/components/segmented-control.d.ts.map +1 -0
- package/dist/catalog/components/segmented-control.js +8 -0
- package/dist/catalog/components/segmented-control.js.map +1 -0
- package/dist/catalog/components/select.d.ts +15 -0
- package/dist/catalog/components/select.d.ts.map +1 -0
- package/dist/catalog/components/select.js +16 -0
- package/dist/catalog/components/select.js.map +1 -0
- package/dist/catalog/components/separator.d.ts +4 -0
- package/dist/catalog/components/separator.d.ts.map +1 -0
- package/dist/catalog/components/separator.js +5 -0
- package/dist/catalog/components/separator.js.map +1 -0
- package/dist/catalog/components/skeleton.d.ts +8 -0
- package/dist/catalog/components/skeleton.d.ts.map +1 -0
- package/dist/catalog/components/skeleton.js +8 -0
- package/dist/catalog/components/skeleton.js.map +1 -0
- package/dist/catalog/components/slider.d.ts +7 -0
- package/dist/catalog/components/slider.d.ts.map +1 -0
- package/dist/catalog/components/slider.js +8 -0
- package/dist/catalog/components/slider.js.map +1 -0
- package/dist/catalog/components/spinner.d.ts +8 -0
- package/dist/catalog/components/spinner.d.ts.map +1 -0
- package/dist/catalog/components/spinner.js +8 -0
- package/dist/catalog/components/spinner.js.map +1 -0
- package/dist/catalog/components/switch.d.ts +7 -0
- package/dist/catalog/components/switch.d.ts.map +1 -0
- package/dist/catalog/components/switch.js +8 -0
- package/dist/catalog/components/switch.js.map +1 -0
- package/dist/catalog/components/tab-nav.d.ts +8 -0
- package/dist/catalog/components/tab-nav.d.ts.map +1 -0
- package/dist/catalog/components/tab-nav.js +9 -0
- package/dist/catalog/components/tab-nav.js.map +1 -0
- package/dist/catalog/components/table.d.ts +23 -0
- package/dist/catalog/components/table.d.ts.map +1 -0
- package/dist/catalog/components/table.js +15 -0
- package/dist/catalog/components/table.js.map +1 -0
- package/dist/catalog/components/tabs.d.ts +8 -0
- package/dist/catalog/components/tabs.d.ts.map +1 -0
- package/dist/catalog/components/tabs.js +9 -0
- package/dist/catalog/components/tabs.js.map +1 -0
- package/dist/catalog/components/text-area.d.ts +8 -0
- package/dist/catalog/components/text-area.d.ts.map +1 -0
- package/dist/catalog/components/text-area.js +9 -0
- package/dist/catalog/components/text-area.js.map +1 -0
- package/dist/catalog/components/text.d.ts +13 -0
- package/dist/catalog/components/text.d.ts.map +1 -0
- package/dist/catalog/components/text.js +9 -0
- package/dist/catalog/components/text.js.map +1 -0
- package/dist/catalog/components/toast.d.ts +7 -0
- package/dist/catalog/components/toast.d.ts.map +1 -0
- package/dist/catalog/components/toast.js +8 -0
- package/dist/catalog/components/toast.js.map +1 -0
- package/dist/catalog/components/toggle-group.d.ts +9 -0
- package/dist/catalog/components/toggle-group.d.ts.map +1 -0
- package/dist/catalog/components/toggle-group.js +10 -0
- package/dist/catalog/components/toggle-group.js.map +1 -0
- package/dist/catalog/components/toggle.d.ts +9 -0
- package/dist/catalog/components/toggle.d.ts.map +1 -0
- package/dist/catalog/components/toggle.js +10 -0
- package/dist/catalog/components/toggle.js.map +1 -0
- package/dist/catalog/components/toolbar.d.ts +5 -0
- package/dist/catalog/components/toolbar.d.ts.map +1 -0
- package/dist/catalog/components/toolbar.js +6 -0
- package/dist/catalog/components/toolbar.js.map +1 -0
- package/dist/catalog/css-inputs.d.ts +258 -0
- package/dist/catalog/css-inputs.d.ts.map +1 -0
- package/dist/catalog/css-inputs.js +232 -0
- package/dist/catalog/css-inputs.js.map +1 -0
- package/dist/catalog/index.d.ts +6 -0
- package/dist/catalog/index.d.ts.map +1 -0
- package/dist/catalog/index.js +4 -0
- package/dist/catalog/index.js.map +1 -0
- package/dist/catalog/parts.d.ts +40 -0
- package/dist/catalog/parts.d.ts.map +1 -0
- package/dist/catalog/parts.js +971 -0
- package/dist/catalog/parts.js.map +1 -0
- package/dist/catalog/prop-types-source.d.ts +11 -0
- package/dist/catalog/prop-types-source.d.ts.map +1 -0
- package/dist/catalog/prop-types-source.js +75 -0
- package/dist/catalog/prop-types-source.js.map +1 -0
- package/dist/catalog/prop-types.generated.d.ts +1155 -0
- package/dist/catalog/prop-types.generated.d.ts.map +1 -0
- package/dist/catalog/prop-types.generated.js +3 -0
- package/dist/catalog/prop-types.generated.js.map +1 -0
- package/dist/catalog/props.d.ts +87 -0
- package/dist/catalog/props.d.ts.map +1 -0
- package/dist/catalog/props.js +142 -0
- package/dist/catalog/props.js.map +1 -0
- package/dist/css.d.ts +38 -0
- package/dist/css.d.ts.map +1 -0
- package/dist/css.js +257 -0
- package/dist/css.js.map +1 -0
- package/dist/generated-css.d.ts +6 -0
- package/dist/generated-css.d.ts.map +1 -0
- package/dist/generated-css.js +19 -0
- package/dist/generated-css.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/model/compare.d.ts +40 -0
- package/dist/model/compare.d.ts.map +1 -0
- package/dist/model/compare.js +83 -0
- package/dist/model/compare.js.map +1 -0
- package/dist/model/dom.d.ts +60 -0
- package/dist/model/dom.d.ts.map +1 -0
- package/dist/model/dom.js +192 -0
- package/dist/model/dom.js.map +1 -0
- package/dist/model/ids.d.ts +8 -0
- package/dist/model/ids.d.ts.map +1 -0
- package/dist/model/ids.js +25 -0
- package/dist/model/ids.js.map +1 -0
- package/dist/model/index.d.ts +8 -0
- package/dist/model/index.d.ts.map +1 -0
- package/dist/model/index.js +8 -0
- package/dist/model/index.js.map +1 -0
- package/dist/model/parts.d.ts +18 -0
- package/dist/model/parts.d.ts.map +1 -0
- package/dist/model/parts.js +91 -0
- package/dist/model/parts.js.map +1 -0
- package/dist/model/styles.d.ts +59 -0
- package/dist/model/styles.d.ts.map +1 -0
- package/dist/model/styles.js +191 -0
- package/dist/model/styles.js.map +1 -0
- package/dist/model/types.d.ts +96 -0
- package/dist/model/types.d.ts.map +1 -0
- package/dist/model/types.js +2 -0
- package/dist/model/types.js.map +1 -0
- package/dist/model/validate.d.ts +54 -0
- package/dist/model/validate.d.ts.map +1 -0
- package/dist/model/validate.js +92 -0
- package/dist/model/validate.js.map +1 -0
- package/dist/themes/appearances.d.ts +98 -0
- package/dist/themes/appearances.d.ts.map +1 -0
- package/dist/themes/appearances.js +98 -0
- package/dist/themes/appearances.js.map +1 -0
- package/dist/themes/baseline.d.ts +9 -0
- package/dist/themes/baseline.d.ts.map +1 -0
- package/dist/themes/baseline.js +21 -0
- package/dist/themes/baseline.js.map +1 -0
- package/dist/themes/index.d.ts +15 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.js +68 -0
- package/dist/themes/index.js.map +1 -0
- package/dist/themes/reference.d.ts +7 -0
- package/dist/themes/reference.d.ts.map +1 -0
- package/dist/themes/reference.js +9 -0
- package/dist/themes/reference.js.map +1 -0
- package/dist/themes/shadcn.d.ts +21 -0
- package/dist/themes/shadcn.d.ts.map +1 -0
- package/dist/themes/shadcn.js +189 -0
- package/dist/themes/shadcn.js.map +1 -0
- package/dist/themes/types.d.ts +58 -0
- package/dist/themes/types.d.ts.map +1 -0
- package/dist/themes/types.js +2 -0
- package/dist/themes/types.js.map +1 -0
- package/dist/tokens/at.d.ts +6 -0
- package/dist/tokens/at.d.ts.map +1 -0
- package/dist/tokens/at.js +12 -0
- package/dist/tokens/at.js.map +1 -0
- package/dist/tokens/base.d.ts +21 -0
- package/dist/tokens/base.d.ts.map +1 -0
- package/dist/tokens/base.js +43 -0
- package/dist/tokens/base.js.map +1 -0
- package/dist/tokens/color/bezier.d.ts +2 -0
- package/dist/tokens/color/bezier.d.ts.map +1 -0
- package/dist/tokens/color/bezier.js +79 -0
- package/dist/tokens/color/bezier.js.map +1 -0
- package/dist/tokens/color/index.d.ts +3 -0
- package/dist/tokens/color/index.d.ts.map +1 -0
- package/dist/tokens/color/index.js +3 -0
- package/dist/tokens/color/index.js.map +1 -0
- package/dist/tokens/color/radix-generator.d.ts +31 -0
- package/dist/tokens/color/radix-generator.d.ts.map +1 -0
- package/dist/tokens/color/radix-generator.js +311 -0
- package/dist/tokens/color/radix-generator.js.map +1 -0
- package/dist/tokens/component-inputs.d.ts +15 -0
- package/dist/tokens/component-inputs.d.ts.map +1 -0
- package/dist/tokens/component-inputs.js +119 -0
- package/dist/tokens/component-inputs.js.map +1 -0
- package/dist/tokens/dtcg.d.ts +59 -0
- package/dist/tokens/dtcg.d.ts.map +1 -0
- package/dist/tokens/dtcg.js +214 -0
- package/dist/tokens/dtcg.js.map +1 -0
- package/dist/tokens/files/components.tokens.json +184 -0
- package/dist/tokens/files/foundations.tokens.json +322 -0
- package/dist/tokens/files/palette.tokens.json +58 -0
- package/dist/tokens/files/text-styles.tokens.json +158 -0
- package/dist/tokens/files/themes/agent-native.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/agent-native.light.tokens.json +391 -0
- package/dist/tokens/files/themes/analytics.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/analytics.light.tokens.json +391 -0
- package/dist/tokens/files/themes/assets.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/assets.light.tokens.json +391 -0
- package/dist/tokens/files/themes/brain.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/brain.light.tokens.json +391 -0
- package/dist/tokens/files/themes/calendar.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/calendar.light.tokens.json +391 -0
- package/dist/tokens/files/themes/chat.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/chat.light.tokens.json +391 -0
- package/dist/tokens/files/themes/clips.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/clips.light.tokens.json +391 -0
- package/dist/tokens/files/themes/content.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/content.light.tokens.json +391 -0
- package/dist/tokens/files/themes/crm.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/crm.light.tokens.json +391 -0
- package/dist/tokens/files/themes/design.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/design.light.tokens.json +391 -0
- package/dist/tokens/files/themes/desktop.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/desktop.light.tokens.json +391 -0
- package/dist/tokens/files/themes/dispatch.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/dispatch.light.tokens.json +391 -0
- package/dist/tokens/files/themes/docs.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/docs.light.tokens.json +391 -0
- package/dist/tokens/files/themes/factory.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/factory.light.tokens.json +391 -0
- package/dist/tokens/files/themes/forms.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/forms.light.tokens.json +391 -0
- package/dist/tokens/files/themes/mail.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/mail.light.tokens.json +391 -0
- package/dist/tokens/files/themes/plan.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/plan.light.tokens.json +391 -0
- package/dist/tokens/files/themes/slides.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/slides.light.tokens.json +391 -0
- package/dist/tokens/files/themes/tasks.dark.tokens.json +391 -0
- package/dist/tokens/files/themes/tasks.light.tokens.json +391 -0
- package/dist/tokens/palette.d.ts +46 -0
- package/dist/tokens/palette.d.ts.map +1 -0
- package/dist/tokens/palette.js +223 -0
- package/dist/tokens/palette.js.map +1 -0
- package/dist/tokens/primitives.d.ts +52 -0
- package/dist/tokens/primitives.d.ts.map +1 -0
- package/dist/tokens/primitives.js +80 -0
- package/dist/tokens/primitives.js.map +1 -0
- package/dist/tokens/roles.d.ts +37 -0
- package/dist/tokens/roles.d.ts.map +1 -0
- package/dist/tokens/roles.js +208 -0
- package/dist/tokens/roles.js.map +1 -0
- package/dist/tokens/round-trip.d.ts +50 -0
- package/dist/tokens/round-trip.d.ts.map +1 -0
- package/dist/tokens/round-trip.js +226 -0
- package/dist/tokens/round-trip.js.map +1 -0
- package/dist/tokens/source.d.ts +111 -0
- package/dist/tokens/source.d.ts.map +1 -0
- package/dist/tokens/source.js +311 -0
- package/dist/tokens/source.js.map +1 -0
- package/package.json +21 -15
- package/src/catalog/components/alert-dialog.ts +1 -9
- package/src/catalog/components/alignment-picker.ts +16 -0
- package/src/catalog/components/autocomplete.ts +2 -2
- package/src/catalog/components/avatar.ts +0 -3
- package/src/catalog/components/badge.ts +0 -2
- package/src/catalog/components/blockquote.ts +1 -2
- package/src/catalog/components/button.ts +14 -2
- package/src/catalog/components/callout.ts +1 -11
- package/src/catalog/components/card.ts +1 -6
- package/src/catalog/components/checkbox-cards.ts +1 -7
- package/src/catalog/components/checkbox-group.ts +1 -7
- package/src/catalog/components/checkbox.ts +1 -7
- package/src/catalog/components/code.ts +0 -5
- package/src/catalog/components/color-swatch.ts +6 -0
- package/src/catalog/components/combobox.ts +2 -2
- package/src/catalog/components/context-menu.ts +1 -3
- package/src/catalog/components/data-list.ts +0 -1
- package/src/catalog/components/dialog.ts +1 -9
- package/src/catalog/components/font-picker.ts +11 -0
- package/src/catalog/components/grid-size-picker.ts +12 -0
- package/src/catalog/components/heading.ts +10 -1
- package/src/catalog/components/index.ts +4 -3
- package/src/catalog/components/input.ts +2 -2
- package/src/catalog/components/item.ts +1 -6
- package/src/catalog/components/kbd.ts +1 -5
- package/src/catalog/components/link.ts +1 -5
- package/src/catalog/components/menu.ts +1 -3
- package/src/catalog/components/menubar.ts +1 -3
- package/src/catalog/components/meter.ts +0 -6
- package/src/catalog/components/number-field.ts +8 -3
- package/src/catalog/components/otp-field.ts +1 -3
- package/src/catalog/components/popover.ts +1 -9
- package/src/catalog/components/preview-card.ts +1 -9
- package/src/catalog/components/progress.ts +0 -6
- package/src/catalog/components/radio-cards.ts +1 -7
- package/src/catalog/components/radio-group.ts +1 -7
- package/src/catalog/components/scroll-area.ts +0 -5
- package/src/catalog/components/segmented-control.ts +2 -2
- package/src/catalog/components/select.ts +3 -3
- package/src/catalog/components/separator.ts +0 -5
- package/src/catalog/components/slider.ts +0 -6
- package/src/catalog/components/spinner.ts +0 -7
- package/src/catalog/components/switch.ts +0 -6
- package/src/catalog/components/tab-nav.ts +0 -1
- package/src/catalog/components/table.ts +0 -5
- package/src/catalog/components/tabs.ts +0 -1
- package/src/catalog/components/text-area.ts +2 -2
- package/src/catalog/components/text.ts +5 -0
- package/src/catalog/components/toggle-group.ts +3 -3
- package/src/catalog/components/toggle.ts +2 -2
- package/src/catalog/components/toolbar.ts +2 -2
- package/src/catalog/css-inputs.ts +261 -0
- package/src/catalog/index.ts +1 -0
- package/src/catalog/parts.ts +292 -49
- package/src/catalog/prop-types-source.ts +1 -1
- package/src/catalog/prop-types.generated.ts +179 -277
- package/src/catalog/props.ts +29 -11
- package/src/css.ts +115 -31
- package/src/generated-css.ts +12 -8
- package/src/model/compare.ts +11 -11
- package/src/model/dom.ts +30 -30
- package/src/model/index.ts +1 -0
- package/src/model/parts.ts +114 -0
- package/src/model/styles.ts +28 -28
- package/src/model/types.ts +2 -2
- package/src/model/validate.ts +4 -13
- package/src/themes/index.ts +13 -9
- package/src/themes/shadcn.ts +1 -1
- package/src/tokens/component-inputs.ts +165 -0
- package/src/tokens/files/components.tokens.json +184 -0
- package/src/tokens/files/foundations.tokens.json +5 -1
- package/src/tokens/files/text-styles.tokens.json +158 -0
- package/src/tokens/files/themes/agent-native.dark.tokens.json +0 -14
- package/src/tokens/files/themes/agent-native.light.tokens.json +0 -14
- package/src/tokens/primitives.ts +28 -3
- package/src/tokens/roles.ts +6 -6
- package/src/tokens/round-trip.ts +46 -1
- package/src/tokens/source.ts +114 -2
- package/css/parts/em.css +0 -16
- package/css/parts/quote.css +0 -18
- package/css/parts/strong.css +0 -15
- package/src/catalog/components/em.ts +0 -7
- package/src/catalog/components/quote.ts +0 -7
- package/src/catalog/components/strong.ts +0 -7
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/* Generated by packages/design-system/scripts/build-prop-types.ts from src/catalog/components. Do not edit. */
|
|
2
2
|
|
|
3
3
|
import type {
|
|
4
|
-
|
|
4
|
+
alertDialogPopupProps,
|
|
5
|
+
alignmentPickerProps,
|
|
5
6
|
aspectRatioProps,
|
|
6
7
|
autocompletePopupProps,
|
|
7
8
|
autocompleteProps,
|
|
8
9
|
avatarProps,
|
|
9
10
|
badgeProps,
|
|
10
11
|
blockquoteProps,
|
|
12
|
+
buttonLinkProps,
|
|
11
13
|
buttonProps,
|
|
12
14
|
calloutProps,
|
|
13
15
|
cardProps,
|
|
@@ -15,14 +17,16 @@ import type {
|
|
|
15
17
|
checkboxGroupProps,
|
|
16
18
|
checkboxProps,
|
|
17
19
|
codeProps,
|
|
20
|
+
colorSwatchProps,
|
|
18
21
|
comboboxPopupProps,
|
|
19
22
|
comboboxProps,
|
|
20
|
-
contextMenuContentProps,
|
|
21
23
|
contextMenuItemProps,
|
|
24
|
+
contextMenuPopupProps,
|
|
22
25
|
dataListProps,
|
|
23
|
-
|
|
26
|
+
dialogPopupProps,
|
|
24
27
|
drawerProps,
|
|
25
|
-
|
|
28
|
+
fontPickerProps,
|
|
29
|
+
gridSizePickerProps,
|
|
26
30
|
headingProps,
|
|
27
31
|
iconButtonProps,
|
|
28
32
|
inputProps,
|
|
@@ -33,29 +37,27 @@ import type {
|
|
|
33
37
|
itemProps,
|
|
34
38
|
kbdProps,
|
|
35
39
|
linkProps,
|
|
36
|
-
menubarContentProps,
|
|
37
40
|
menubarItemProps,
|
|
38
|
-
|
|
41
|
+
menubarPopupProps,
|
|
39
42
|
menuItemProps,
|
|
43
|
+
menuPopupProps,
|
|
40
44
|
meterProps,
|
|
41
45
|
numberFieldProps,
|
|
42
46
|
otpFieldProps,
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
popoverPopupProps,
|
|
48
|
+
previewCardPopupProps,
|
|
45
49
|
progressProps,
|
|
46
|
-
quoteProps,
|
|
47
50
|
radioCardsProps,
|
|
48
51
|
radioGroupProps,
|
|
49
52
|
scrollAreaProps,
|
|
50
53
|
segmentedControlProps,
|
|
51
|
-
|
|
54
|
+
selectPopupProps,
|
|
52
55
|
selectRootProps,
|
|
53
56
|
selectTriggerProps,
|
|
54
57
|
separatorProps,
|
|
55
58
|
skeletonProps,
|
|
56
59
|
sliderProps,
|
|
57
60
|
spinnerProps,
|
|
58
|
-
strongProps,
|
|
59
61
|
switchProps,
|
|
60
62
|
tableCellProps,
|
|
61
63
|
tableProps,
|
|
@@ -71,12 +73,27 @@ import type {
|
|
|
71
73
|
} from "./components/index.js";
|
|
72
74
|
import type { PropsOf } from "./props.js";
|
|
73
75
|
|
|
74
|
-
export interface
|
|
76
|
+
export interface AlertDialogPopupOwnProps {}
|
|
77
|
+
|
|
78
|
+
export interface AlignmentPickerOwnProps {
|
|
75
79
|
/**
|
|
76
|
-
*
|
|
77
|
-
* @default "
|
|
80
|
+
* How the component applies its color.
|
|
81
|
+
* @default "surface"
|
|
82
|
+
*/
|
|
83
|
+
variant?: "surface" | "soft";
|
|
84
|
+
/**
|
|
85
|
+
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
78
86
|
*/
|
|
79
|
-
|
|
87
|
+
color?: "accent" | "gray" | "danger" | "warning" | "success" | "info";
|
|
88
|
+
/**
|
|
89
|
+
* Overrides the theme's corner radius for this component.
|
|
90
|
+
*/
|
|
91
|
+
radius?: "none" | "small" | "medium" | "large" | "full";
|
|
92
|
+
/**
|
|
93
|
+
* The layout's main axis. It orients the glyphs only: a row draws vertical bars, a column horizontal ones.
|
|
94
|
+
* @default "row"
|
|
95
|
+
*/
|
|
96
|
+
direction?: "row" | "column";
|
|
80
97
|
}
|
|
81
98
|
|
|
82
99
|
export interface AspectRatioOwnProps {}
|
|
@@ -101,10 +118,10 @@ export interface AutocompletePopupOwnProps {
|
|
|
101
118
|
|
|
102
119
|
export interface AutocompleteOwnProps {
|
|
103
120
|
/**
|
|
104
|
-
* Control height:
|
|
105
|
-
* @default "
|
|
121
|
+
* Control height: sm is 20px, md is 24px.
|
|
122
|
+
* @default "md"
|
|
106
123
|
*/
|
|
107
|
-
size?: "
|
|
124
|
+
size?: "sm" | "md";
|
|
108
125
|
/**
|
|
109
126
|
* How the component applies its color.
|
|
110
127
|
* @default "surface"
|
|
@@ -121,11 +138,6 @@ export interface AutocompleteOwnProps {
|
|
|
121
138
|
}
|
|
122
139
|
|
|
123
140
|
export interface AvatarOwnProps {
|
|
124
|
-
/**
|
|
125
|
-
* Diameter: 1 is 16px, 2 is 20px, 3 is 24px, 4 is 32px.
|
|
126
|
-
* @default "3"
|
|
127
|
-
*/
|
|
128
|
-
size?: "1" | "2" | "3" | "4";
|
|
129
141
|
/**
|
|
130
142
|
* How the component applies its color.
|
|
131
143
|
* @default "soft"
|
|
@@ -147,11 +159,6 @@ export interface AvatarOwnProps {
|
|
|
147
159
|
}
|
|
148
160
|
|
|
149
161
|
export interface BadgeOwnProps {
|
|
150
|
-
/**
|
|
151
|
-
* Control height: 1 is 16px, 2 is 20px, 3 is 24px.
|
|
152
|
-
* @default "2"
|
|
153
|
-
*/
|
|
154
|
-
size?: "1" | "2" | "3";
|
|
155
162
|
/**
|
|
156
163
|
* How the component applies its color.
|
|
157
164
|
* @default "soft"
|
|
@@ -178,14 +185,10 @@ export interface BadgeOwnProps {
|
|
|
178
185
|
}
|
|
179
186
|
|
|
180
187
|
export interface BlockquoteOwnProps {
|
|
181
|
-
/**
|
|
182
|
-
* A step of the type scale; unset, it inherits.
|
|
183
|
-
*/
|
|
184
|
-
size?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
185
188
|
/**
|
|
186
189
|
* Font weight, one of the weight tokens.
|
|
187
190
|
*/
|
|
188
|
-
weight?: "light" | "regular" | "medium" | "semibold" | "bold";
|
|
191
|
+
weight?: "light" | "regular" | "medium" | "strong" | "semibold" | "bold";
|
|
189
192
|
/**
|
|
190
193
|
* Truncates to one line with an ellipsis.
|
|
191
194
|
* @default false
|
|
@@ -206,12 +209,38 @@ export interface BlockquoteOwnProps {
|
|
|
206
209
|
highContrast?: boolean;
|
|
207
210
|
}
|
|
208
211
|
|
|
212
|
+
export interface ButtonLinkOwnProps {
|
|
213
|
+
/**
|
|
214
|
+
* Control height: sm is 20px, md is 24px.
|
|
215
|
+
* @default "md"
|
|
216
|
+
*/
|
|
217
|
+
size?: "sm" | "md";
|
|
218
|
+
/**
|
|
219
|
+
* How the component applies its color.
|
|
220
|
+
* @default "solid"
|
|
221
|
+
*/
|
|
222
|
+
variant?: "solid" | "soft" | "surface" | "outline" | "ghost";
|
|
223
|
+
/**
|
|
224
|
+
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
225
|
+
*/
|
|
226
|
+
color?: "accent" | "gray" | "danger" | "warning" | "success" | "info";
|
|
227
|
+
/**
|
|
228
|
+
* Uses the scale's darkest steps, for text and fills that need more contrast.
|
|
229
|
+
* @default false
|
|
230
|
+
*/
|
|
231
|
+
highContrast?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Overrides the theme's corner radius for this component.
|
|
234
|
+
*/
|
|
235
|
+
radius?: "none" | "small" | "medium" | "large" | "full";
|
|
236
|
+
}
|
|
237
|
+
|
|
209
238
|
export interface ButtonOwnProps {
|
|
210
239
|
/**
|
|
211
|
-
* Control height:
|
|
212
|
-
* @default "
|
|
240
|
+
* Control height: sm is 20px, md is 24px.
|
|
241
|
+
* @default "md"
|
|
213
242
|
*/
|
|
214
|
-
size?: "
|
|
243
|
+
size?: "sm" | "md";
|
|
215
244
|
/**
|
|
216
245
|
* How the component applies its color.
|
|
217
246
|
* @default "solid"
|
|
@@ -238,11 +267,6 @@ export interface ButtonOwnProps {
|
|
|
238
267
|
}
|
|
239
268
|
|
|
240
269
|
export interface CalloutOwnProps {
|
|
241
|
-
/**
|
|
242
|
-
* Padding, gap and type step of the callout: compact, standard, roomy.
|
|
243
|
-
* @default "2"
|
|
244
|
-
*/
|
|
245
|
-
size?: "1" | "2" | "3";
|
|
246
270
|
/**
|
|
247
271
|
* How the component applies its color.
|
|
248
272
|
* @default "soft"
|
|
@@ -260,11 +284,6 @@ export interface CalloutOwnProps {
|
|
|
260
284
|
}
|
|
261
285
|
|
|
262
286
|
export interface CardOwnProps {
|
|
263
|
-
/**
|
|
264
|
-
* Padding: 1 is 8px, 2 12px, 3 16px, 4 24px, 5 32px.
|
|
265
|
-
* @default "2"
|
|
266
|
-
*/
|
|
267
|
-
size?: "1" | "2" | "3" | "4" | "5";
|
|
268
287
|
/**
|
|
269
288
|
* How the component applies its color.
|
|
270
289
|
* @default "surface"
|
|
@@ -273,11 +292,6 @@ export interface CardOwnProps {
|
|
|
273
292
|
}
|
|
274
293
|
|
|
275
294
|
export interface CheckboxCardsOwnProps {
|
|
276
|
-
/**
|
|
277
|
-
* Padding and type step of each card.
|
|
278
|
-
* @default "2"
|
|
279
|
-
*/
|
|
280
|
-
size?: "1" | "2" | "3";
|
|
281
295
|
/**
|
|
282
296
|
* How the component applies its color.
|
|
283
297
|
* @default "surface"
|
|
@@ -295,11 +309,6 @@ export interface CheckboxCardsOwnProps {
|
|
|
295
309
|
}
|
|
296
310
|
|
|
297
311
|
export interface CheckboxGroupOwnProps {
|
|
298
|
-
/**
|
|
299
|
-
* Box: 1 is 12px, 2 is 16px, 3 is 20px.
|
|
300
|
-
* @default "2"
|
|
301
|
-
*/
|
|
302
|
-
size?: "1" | "2" | "3";
|
|
303
312
|
/**
|
|
304
313
|
* How the component applies its color.
|
|
305
314
|
* @default "surface"
|
|
@@ -317,11 +326,6 @@ export interface CheckboxGroupOwnProps {
|
|
|
317
326
|
}
|
|
318
327
|
|
|
319
328
|
export interface CheckboxOwnProps {
|
|
320
|
-
/**
|
|
321
|
-
* Box: 1 is 12px, 2 is 16px, 3 is 20px.
|
|
322
|
-
* @default "2"
|
|
323
|
-
*/
|
|
324
|
-
size?: "1" | "2" | "3";
|
|
325
329
|
/**
|
|
326
330
|
* How the component applies its color.
|
|
327
331
|
* @default "surface"
|
|
@@ -339,10 +343,6 @@ export interface CheckboxOwnProps {
|
|
|
339
343
|
}
|
|
340
344
|
|
|
341
345
|
export interface CodeOwnProps {
|
|
342
|
-
/**
|
|
343
|
-
* A step of the type scale; unset, it follows the surrounding text.
|
|
344
|
-
*/
|
|
345
|
-
size?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
346
346
|
/**
|
|
347
347
|
* How the component applies its color.
|
|
348
348
|
* @default "soft"
|
|
@@ -351,7 +351,7 @@ export interface CodeOwnProps {
|
|
|
351
351
|
/**
|
|
352
352
|
* Font weight, one of the weight tokens.
|
|
353
353
|
*/
|
|
354
|
-
weight?: "light" | "regular" | "medium" | "semibold" | "bold";
|
|
354
|
+
weight?: "light" | "regular" | "medium" | "strong" | "semibold" | "bold";
|
|
355
355
|
/**
|
|
356
356
|
* Truncates to one line with an ellipsis.
|
|
357
357
|
* @default false
|
|
@@ -372,6 +372,18 @@ export interface CodeOwnProps {
|
|
|
372
372
|
highContrast?: boolean;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
+
export interface ColorSwatchOwnProps {
|
|
376
|
+
/**
|
|
377
|
+
* Control height: sm is 20px, md is 24px.
|
|
378
|
+
* @default "md"
|
|
379
|
+
*/
|
|
380
|
+
size?: "sm" | "md";
|
|
381
|
+
/**
|
|
382
|
+
* Overrides the theme's corner radius for this component.
|
|
383
|
+
*/
|
|
384
|
+
radius?: "none" | "small" | "medium" | "large" | "full";
|
|
385
|
+
}
|
|
386
|
+
|
|
375
387
|
export interface ComboboxPopupOwnProps {
|
|
376
388
|
/**
|
|
377
389
|
* How the component applies its color.
|
|
@@ -392,10 +404,10 @@ export interface ComboboxPopupOwnProps {
|
|
|
392
404
|
|
|
393
405
|
export interface ComboboxOwnProps {
|
|
394
406
|
/**
|
|
395
|
-
* Control height:
|
|
396
|
-
* @default "
|
|
407
|
+
* Control height: sm is 20px, md is 24px.
|
|
408
|
+
* @default "md"
|
|
397
409
|
*/
|
|
398
|
-
size?: "
|
|
410
|
+
size?: "sm" | "md";
|
|
399
411
|
/**
|
|
400
412
|
* How the component applies its color.
|
|
401
413
|
* @default "surface"
|
|
@@ -411,12 +423,14 @@ export interface ComboboxOwnProps {
|
|
|
411
423
|
radius?: "none" | "small" | "medium" | "large" | "full";
|
|
412
424
|
}
|
|
413
425
|
|
|
414
|
-
export interface
|
|
426
|
+
export interface ContextMenuItemOwnProps {
|
|
415
427
|
/**
|
|
416
|
-
*
|
|
417
|
-
* @default "3"
|
|
428
|
+
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
418
429
|
*/
|
|
419
|
-
|
|
430
|
+
color?: "accent" | "gray" | "danger" | "warning" | "success" | "info";
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export interface ContextMenuPopupOwnProps {
|
|
420
434
|
/**
|
|
421
435
|
* How the component applies its color.
|
|
422
436
|
* @default "soft"
|
|
@@ -434,37 +448,19 @@ export interface ContextMenuContentOwnProps {
|
|
|
434
448
|
highContrast?: boolean;
|
|
435
449
|
}
|
|
436
450
|
|
|
437
|
-
export interface ContextMenuItemOwnProps {
|
|
438
|
-
/**
|
|
439
|
-
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
440
|
-
*/
|
|
441
|
-
color?: "accent" | "gray" | "danger" | "warning" | "success" | "info";
|
|
442
|
-
}
|
|
443
|
-
|
|
444
451
|
export interface DataListOwnProps {
|
|
445
452
|
/**
|
|
446
453
|
* Labels beside their values, or above them.
|
|
447
454
|
* @default "horizontal"
|
|
448
455
|
*/
|
|
449
456
|
orientation?: "horizontal" | "vertical";
|
|
450
|
-
/**
|
|
451
|
-
* Type step and spacing of the rows.
|
|
452
|
-
* @default "2"
|
|
453
|
-
*/
|
|
454
|
-
size?: "1" | "2" | "3";
|
|
455
457
|
/**
|
|
456
458
|
* Trims the leading of the first and last rows.
|
|
457
459
|
*/
|
|
458
460
|
trim?: "normal" | "start" | "end" | "both";
|
|
459
461
|
}
|
|
460
462
|
|
|
461
|
-
export interface
|
|
462
|
-
/**
|
|
463
|
-
* Padding and type step of the popup, as in Radix Themes.
|
|
464
|
-
* @default "3"
|
|
465
|
-
*/
|
|
466
|
-
size?: "1" | "2" | "3" | "4";
|
|
467
|
-
}
|
|
463
|
+
export interface DialogPopupOwnProps {}
|
|
468
464
|
|
|
469
465
|
export interface DrawerOwnProps {
|
|
470
466
|
/**
|
|
@@ -474,16 +470,36 @@ export interface DrawerOwnProps {
|
|
|
474
470
|
side?: "top" | "right" | "bottom" | "left";
|
|
475
471
|
}
|
|
476
472
|
|
|
477
|
-
export interface
|
|
473
|
+
export interface FontPickerOwnProps {
|
|
478
474
|
/**
|
|
479
|
-
*
|
|
480
|
-
* @default
|
|
475
|
+
* How the component applies its color.
|
|
476
|
+
* @default "surface"
|
|
481
477
|
*/
|
|
482
|
-
|
|
478
|
+
variant?: "surface" | "soft";
|
|
483
479
|
/**
|
|
484
|
-
*
|
|
480
|
+
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
485
481
|
*/
|
|
486
|
-
|
|
482
|
+
color?: "accent" | "gray" | "danger" | "warning" | "success" | "info";
|
|
483
|
+
/**
|
|
484
|
+
* Overrides the theme's corner radius for this component.
|
|
485
|
+
*/
|
|
486
|
+
radius?: "none" | "small" | "medium" | "large" | "full";
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export interface GridSizePickerOwnProps {
|
|
490
|
+
/**
|
|
491
|
+
* How the component applies its color.
|
|
492
|
+
* @default "surface"
|
|
493
|
+
*/
|
|
494
|
+
variant?: "surface" | "soft";
|
|
495
|
+
/**
|
|
496
|
+
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
497
|
+
*/
|
|
498
|
+
color?: "accent" | "gray" | "danger" | "warning" | "success" | "info";
|
|
499
|
+
/**
|
|
500
|
+
* Overrides the theme's corner radius for this component.
|
|
501
|
+
*/
|
|
502
|
+
radius?: "none" | "small" | "medium" | "large" | "full";
|
|
487
503
|
}
|
|
488
504
|
|
|
489
505
|
export interface HeadingOwnProps {
|
|
@@ -493,14 +509,18 @@ export interface HeadingOwnProps {
|
|
|
493
509
|
*/
|
|
494
510
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
495
511
|
/**
|
|
496
|
-
* A
|
|
497
|
-
* @default "
|
|
512
|
+
* A named text style: its size, line height, letter spacing, weight and family. `size` and `weight` override it.
|
|
513
|
+
* @default "title-large"
|
|
514
|
+
*/
|
|
515
|
+
textStyle?: "display" | "headline" | "title-large" | "title" | "title-small" | "body-large" | "body" | "body-small" | "label-large" | "label" | "label-strong" | "label-small" | "caption" | "code";
|
|
516
|
+
/**
|
|
517
|
+
* A step of the type scale, overriding the text style's.
|
|
498
518
|
*/
|
|
499
519
|
size?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
500
520
|
/**
|
|
501
521
|
* Font weight, one of the weight tokens.
|
|
502
522
|
*/
|
|
503
|
-
weight?: "light" | "regular" | "medium" | "semibold" | "bold";
|
|
523
|
+
weight?: "light" | "regular" | "medium" | "strong" | "semibold" | "bold";
|
|
504
524
|
/**
|
|
505
525
|
* Text alignment.
|
|
506
526
|
*/
|
|
@@ -531,10 +551,10 @@ export interface HeadingOwnProps {
|
|
|
531
551
|
|
|
532
552
|
export interface IconButtonOwnProps {
|
|
533
553
|
/**
|
|
534
|
-
* Control height:
|
|
535
|
-
* @default "
|
|
554
|
+
* Control height: sm is 20px, md is 24px.
|
|
555
|
+
* @default "md"
|
|
536
556
|
*/
|
|
537
|
-
size?: "
|
|
557
|
+
size?: "sm" | "md";
|
|
538
558
|
/**
|
|
539
559
|
* How the component applies its color.
|
|
540
560
|
* @default "solid"
|
|
@@ -562,10 +582,10 @@ export interface IconButtonOwnProps {
|
|
|
562
582
|
|
|
563
583
|
export interface InputOwnProps {
|
|
564
584
|
/**
|
|
565
|
-
* Control height:
|
|
566
|
-
* @default "
|
|
585
|
+
* Control height: sm is 20px, md is 24px.
|
|
586
|
+
* @default "md"
|
|
567
587
|
*/
|
|
568
|
-
size?: "
|
|
588
|
+
size?: "sm" | "md";
|
|
569
589
|
/**
|
|
570
590
|
* How the component applies its color.
|
|
571
591
|
* @default "surface"
|
|
@@ -618,11 +638,6 @@ export interface ItemMediaOwnProps {
|
|
|
618
638
|
}
|
|
619
639
|
|
|
620
640
|
export interface ItemOwnProps {
|
|
621
|
-
/**
|
|
622
|
-
* Padding: 1 is the compact row, 2 the standard one.
|
|
623
|
-
* @default "2"
|
|
624
|
-
*/
|
|
625
|
-
size?: "1" | "2";
|
|
626
641
|
/**
|
|
627
642
|
* How the component applies its color.
|
|
628
643
|
* @default "ghost"
|
|
@@ -631,10 +646,6 @@ export interface ItemOwnProps {
|
|
|
631
646
|
}
|
|
632
647
|
|
|
633
648
|
export interface KbdOwnProps {
|
|
634
|
-
/**
|
|
635
|
-
* A step of the type scale; unset, it follows the surrounding text.
|
|
636
|
-
*/
|
|
637
|
-
size?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
638
649
|
/**
|
|
639
650
|
* How the component applies its color.
|
|
640
651
|
* @default "surface"
|
|
@@ -643,10 +654,6 @@ export interface KbdOwnProps {
|
|
|
643
654
|
}
|
|
644
655
|
|
|
645
656
|
export interface LinkOwnProps {
|
|
646
|
-
/**
|
|
647
|
-
* A step of the type scale; unset, it follows the surrounding text.
|
|
648
|
-
*/
|
|
649
|
-
size?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
650
657
|
/**
|
|
651
658
|
* When the underline shows; `auto` shows it on hover, and always in high contrast.
|
|
652
659
|
* @default "auto"
|
|
@@ -655,7 +662,7 @@ export interface LinkOwnProps {
|
|
|
655
662
|
/**
|
|
656
663
|
* Font weight, one of the weight tokens.
|
|
657
664
|
*/
|
|
658
|
-
weight?: "light" | "regular" | "medium" | "semibold" | "bold";
|
|
665
|
+
weight?: "light" | "regular" | "medium" | "strong" | "semibold" | "bold";
|
|
659
666
|
/**
|
|
660
667
|
* Trims the leading above the first line, below the last, or both, so text sits flush with its box.
|
|
661
668
|
*/
|
|
@@ -680,12 +687,14 @@ export interface LinkOwnProps {
|
|
|
680
687
|
highContrast?: boolean;
|
|
681
688
|
}
|
|
682
689
|
|
|
683
|
-
export interface
|
|
690
|
+
export interface MenubarItemOwnProps {
|
|
684
691
|
/**
|
|
685
|
-
*
|
|
686
|
-
* @default "3"
|
|
692
|
+
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
687
693
|
*/
|
|
688
|
-
|
|
694
|
+
color?: "accent" | "gray" | "danger" | "warning" | "success" | "info";
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export interface MenubarPopupOwnProps {
|
|
689
698
|
/**
|
|
690
699
|
* How the component applies its color.
|
|
691
700
|
* @default "soft"
|
|
@@ -703,19 +712,14 @@ export interface MenubarContentOwnProps {
|
|
|
703
712
|
highContrast?: boolean;
|
|
704
713
|
}
|
|
705
714
|
|
|
706
|
-
export interface
|
|
715
|
+
export interface MenuItemOwnProps {
|
|
707
716
|
/**
|
|
708
717
|
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
709
718
|
*/
|
|
710
719
|
color?: "accent" | "gray" | "danger" | "warning" | "success" | "info";
|
|
711
720
|
}
|
|
712
721
|
|
|
713
|
-
export interface
|
|
714
|
-
/**
|
|
715
|
-
* Row height: 2 is 20px, 3 is 24px.
|
|
716
|
-
* @default "3"
|
|
717
|
-
*/
|
|
718
|
-
size?: "2" | "3";
|
|
722
|
+
export interface MenuPopupOwnProps {
|
|
719
723
|
/**
|
|
720
724
|
* How the component applies its color.
|
|
721
725
|
* @default "soft"
|
|
@@ -733,19 +737,7 @@ export interface MenuContentOwnProps {
|
|
|
733
737
|
highContrast?: boolean;
|
|
734
738
|
}
|
|
735
739
|
|
|
736
|
-
export interface MenuItemOwnProps {
|
|
737
|
-
/**
|
|
738
|
-
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
739
|
-
*/
|
|
740
|
-
color?: "accent" | "gray" | "danger" | "warning" | "success" | "info";
|
|
741
|
-
}
|
|
742
|
-
|
|
743
740
|
export interface MeterOwnProps {
|
|
744
|
-
/**
|
|
745
|
-
* Track thickness: 1 is 4px, 2 is 6px, 3 is 8px.
|
|
746
|
-
* @default "2"
|
|
747
|
-
*/
|
|
748
|
-
size?: "1" | "2" | "3";
|
|
749
741
|
/**
|
|
750
742
|
* How the component applies its color.
|
|
751
743
|
* @default "surface"
|
|
@@ -768,10 +760,10 @@ export interface MeterOwnProps {
|
|
|
768
760
|
|
|
769
761
|
export interface NumberFieldOwnProps {
|
|
770
762
|
/**
|
|
771
|
-
* Control height:
|
|
772
|
-
* @default "
|
|
763
|
+
* Control height: sm is 20px, md is 24px.
|
|
764
|
+
* @default "md"
|
|
773
765
|
*/
|
|
774
|
-
size?: "
|
|
766
|
+
size?: "sm" | "md";
|
|
775
767
|
/**
|
|
776
768
|
* How the component applies its color.
|
|
777
769
|
* @default "surface"
|
|
@@ -788,11 +780,6 @@ export interface NumberFieldOwnProps {
|
|
|
788
780
|
}
|
|
789
781
|
|
|
790
782
|
export interface OtpFieldOwnProps {
|
|
791
|
-
/**
|
|
792
|
-
* Control height: 1 is 16px, 2 is 20px, 3 is 24px, 4 is 32px.
|
|
793
|
-
* @default "4"
|
|
794
|
-
*/
|
|
795
|
-
size?: "1" | "2" | "3" | "4";
|
|
796
783
|
/**
|
|
797
784
|
* How the component applies its color.
|
|
798
785
|
* @default "surface"
|
|
@@ -808,28 +795,11 @@ export interface OtpFieldOwnProps {
|
|
|
808
795
|
radius?: "none" | "small" | "medium" | "large" | "full";
|
|
809
796
|
}
|
|
810
797
|
|
|
811
|
-
export interface
|
|
812
|
-
/**
|
|
813
|
-
* Padding and type step of the popup, as in Radix Themes.
|
|
814
|
-
* @default "2"
|
|
815
|
-
*/
|
|
816
|
-
size?: "1" | "2" | "3" | "4";
|
|
817
|
-
}
|
|
798
|
+
export interface PopoverPopupOwnProps {}
|
|
818
799
|
|
|
819
|
-
export interface
|
|
820
|
-
/**
|
|
821
|
-
* Padding and type step of the popup, as in Radix Themes.
|
|
822
|
-
* @default "2"
|
|
823
|
-
*/
|
|
824
|
-
size?: "1" | "2" | "3";
|
|
825
|
-
}
|
|
800
|
+
export interface PreviewCardPopupOwnProps {}
|
|
826
801
|
|
|
827
802
|
export interface ProgressOwnProps {
|
|
828
|
-
/**
|
|
829
|
-
* Track thickness: 1 is 4px, 2 is 6px, 3 is 8px.
|
|
830
|
-
* @default "2"
|
|
831
|
-
*/
|
|
832
|
-
size?: "1" | "2" | "3";
|
|
833
803
|
/**
|
|
834
804
|
* How the component applies its color.
|
|
835
805
|
* @default "surface"
|
|
@@ -850,24 +820,7 @@ export interface ProgressOwnProps {
|
|
|
850
820
|
radius?: "none" | "small" | "medium" | "large" | "full";
|
|
851
821
|
}
|
|
852
822
|
|
|
853
|
-
export interface QuoteOwnProps {
|
|
854
|
-
/**
|
|
855
|
-
* Truncates to one line with an ellipsis.
|
|
856
|
-
* @default false
|
|
857
|
-
*/
|
|
858
|
-
truncate?: boolean;
|
|
859
|
-
/**
|
|
860
|
-
* How lines break: `pretty` avoids orphans, `balance` evens line lengths.
|
|
861
|
-
*/
|
|
862
|
-
wrap?: "wrap" | "nowrap" | "pretty" | "balance";
|
|
863
|
-
}
|
|
864
|
-
|
|
865
823
|
export interface RadioCardsOwnProps {
|
|
866
|
-
/**
|
|
867
|
-
* Padding and type step of each card.
|
|
868
|
-
* @default "2"
|
|
869
|
-
*/
|
|
870
|
-
size?: "1" | "2" | "3";
|
|
871
824
|
/**
|
|
872
825
|
* How the component applies its color.
|
|
873
826
|
* @default "surface"
|
|
@@ -885,11 +838,6 @@ export interface RadioCardsOwnProps {
|
|
|
885
838
|
}
|
|
886
839
|
|
|
887
840
|
export interface RadioGroupOwnProps {
|
|
888
|
-
/**
|
|
889
|
-
* Box: 1 is 12px, 2 is 16px, 3 is 20px.
|
|
890
|
-
* @default "2"
|
|
891
|
-
*/
|
|
892
|
-
size?: "1" | "2" | "3";
|
|
893
841
|
/**
|
|
894
842
|
* How the component applies its color.
|
|
895
843
|
* @default "surface"
|
|
@@ -907,11 +855,6 @@ export interface RadioGroupOwnProps {
|
|
|
907
855
|
}
|
|
908
856
|
|
|
909
857
|
export interface ScrollAreaOwnProps {
|
|
910
|
-
/**
|
|
911
|
-
* Scrollbar thickness: 1 is 4px, 2 is 8px, 3 is 12px.
|
|
912
|
-
* @default "1"
|
|
913
|
-
*/
|
|
914
|
-
size?: "1" | "2" | "3";
|
|
915
858
|
/**
|
|
916
859
|
* Overrides the theme's corner radius for this component.
|
|
917
860
|
*/
|
|
@@ -925,10 +868,10 @@ export interface ScrollAreaOwnProps {
|
|
|
925
868
|
|
|
926
869
|
export interface SegmentedControlOwnProps {
|
|
927
870
|
/**
|
|
928
|
-
* Control height:
|
|
929
|
-
* @default "
|
|
871
|
+
* Control height: sm is 20px, md is 24px.
|
|
872
|
+
* @default "md"
|
|
930
873
|
*/
|
|
931
|
-
size?: "
|
|
874
|
+
size?: "sm" | "md";
|
|
932
875
|
/**
|
|
933
876
|
* How the component applies its color.
|
|
934
877
|
* @default "surface"
|
|
@@ -940,7 +883,7 @@ export interface SegmentedControlOwnProps {
|
|
|
940
883
|
radius?: "none" | "small" | "medium" | "large" | "full";
|
|
941
884
|
}
|
|
942
885
|
|
|
943
|
-
export interface
|
|
886
|
+
export interface SelectPopupOwnProps {
|
|
944
887
|
/**
|
|
945
888
|
* How the component applies its color.
|
|
946
889
|
* @default "soft"
|
|
@@ -960,10 +903,10 @@ export interface SelectContentOwnProps {
|
|
|
960
903
|
|
|
961
904
|
export interface SelectRootOwnProps {
|
|
962
905
|
/**
|
|
963
|
-
* Control height:
|
|
964
|
-
* @default "
|
|
906
|
+
* Control height: sm is 20px, md is 24px.
|
|
907
|
+
* @default "md"
|
|
965
908
|
*/
|
|
966
|
-
size?: "
|
|
909
|
+
size?: "sm" | "md";
|
|
967
910
|
}
|
|
968
911
|
|
|
969
912
|
export interface SelectTriggerOwnProps {
|
|
@@ -983,11 +926,6 @@ export interface SelectTriggerOwnProps {
|
|
|
983
926
|
}
|
|
984
927
|
|
|
985
928
|
export interface SeparatorOwnProps {
|
|
986
|
-
/**
|
|
987
|
-
* Length: 1 is 16px, 2 is 32px, 3 is 64px, 4 is the full length.
|
|
988
|
-
* @default "4"
|
|
989
|
-
*/
|
|
990
|
-
size?: "1" | "2" | "3" | "4";
|
|
991
929
|
/**
|
|
992
930
|
* The scale the line draws from; gray unless set.
|
|
993
931
|
* @default "gray"
|
|
@@ -1004,11 +942,6 @@ export interface SkeletonOwnProps {
|
|
|
1004
942
|
}
|
|
1005
943
|
|
|
1006
944
|
export interface SliderOwnProps {
|
|
1007
|
-
/**
|
|
1008
|
-
* Track thickness: 1 is 4px, 2 is 6px, 3 is 8px.
|
|
1009
|
-
* @default "2"
|
|
1010
|
-
*/
|
|
1011
|
-
size?: "1" | "2" | "3";
|
|
1012
945
|
/**
|
|
1013
946
|
* How the component applies its color.
|
|
1014
947
|
* @default "surface"
|
|
@@ -1030,11 +963,6 @@ export interface SliderOwnProps {
|
|
|
1030
963
|
}
|
|
1031
964
|
|
|
1032
965
|
export interface SpinnerOwnProps {
|
|
1033
|
-
/**
|
|
1034
|
-
* Diameter: 1 is 12px, 2 is 16px, 3 is 20px.
|
|
1035
|
-
* @default "2"
|
|
1036
|
-
*/
|
|
1037
|
-
size?: "1" | "2" | "3";
|
|
1038
966
|
/**
|
|
1039
967
|
* While false, renders its children in place of the spinner, as Radix Themes does.
|
|
1040
968
|
* @default true
|
|
@@ -1042,24 +970,7 @@ export interface SpinnerOwnProps {
|
|
|
1042
970
|
loading?: boolean;
|
|
1043
971
|
}
|
|
1044
972
|
|
|
1045
|
-
export interface StrongOwnProps {
|
|
1046
|
-
/**
|
|
1047
|
-
* Truncates to one line with an ellipsis.
|
|
1048
|
-
* @default false
|
|
1049
|
-
*/
|
|
1050
|
-
truncate?: boolean;
|
|
1051
|
-
/**
|
|
1052
|
-
* How lines break: `pretty` avoids orphans, `balance` evens line lengths.
|
|
1053
|
-
*/
|
|
1054
|
-
wrap?: "wrap" | "nowrap" | "pretty" | "balance";
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
973
|
export interface SwitchOwnProps {
|
|
1058
|
-
/**
|
|
1059
|
-
* Track height: 1 is 12px, 2 is 16px, 3 is 20px.
|
|
1060
|
-
* @default "2"
|
|
1061
|
-
*/
|
|
1062
|
-
size?: "1" | "2" | "3";
|
|
1063
974
|
/**
|
|
1064
975
|
* How the component applies its color.
|
|
1065
976
|
* @default "surface"
|
|
@@ -1089,11 +1000,6 @@ export interface TableCellOwnProps {
|
|
|
1089
1000
|
}
|
|
1090
1001
|
|
|
1091
1002
|
export interface TableOwnProps {
|
|
1092
|
-
/**
|
|
1093
|
-
* Cell padding: compact, standard, roomy.
|
|
1094
|
-
* @default "2"
|
|
1095
|
-
*/
|
|
1096
|
-
size?: "1" | "2" | "3";
|
|
1097
1003
|
/**
|
|
1098
1004
|
* How the component applies its color.
|
|
1099
1005
|
* @default "ghost"
|
|
@@ -1115,11 +1021,6 @@ export interface TableRowOwnProps {
|
|
|
1115
1021
|
}
|
|
1116
1022
|
|
|
1117
1023
|
export interface TabNavOwnProps {
|
|
1118
|
-
/**
|
|
1119
|
-
* Link height: 1 is 24px, 2 is 32px.
|
|
1120
|
-
* @default "2"
|
|
1121
|
-
*/
|
|
1122
|
-
size?: "1" | "2";
|
|
1123
1024
|
/**
|
|
1124
1025
|
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
1125
1026
|
*/
|
|
@@ -1142,11 +1043,6 @@ export interface TabNavOwnProps {
|
|
|
1142
1043
|
}
|
|
1143
1044
|
|
|
1144
1045
|
export interface TabsListOwnProps {
|
|
1145
|
-
/**
|
|
1146
|
-
* Trigger height: 1 is 24px, 2 is 32px.
|
|
1147
|
-
* @default "2"
|
|
1148
|
-
*/
|
|
1149
|
-
size?: "1" | "2";
|
|
1150
1046
|
/**
|
|
1151
1047
|
* The scale the component draws from. Unset, it inherits the nearest color, and the theme's accent at the root.
|
|
1152
1048
|
*/
|
|
@@ -1170,10 +1066,10 @@ export interface TabsListOwnProps {
|
|
|
1170
1066
|
|
|
1171
1067
|
export interface TextAreaOwnProps {
|
|
1172
1068
|
/**
|
|
1173
|
-
* The height of the Input it matches, which sets its padding and type:
|
|
1174
|
-
* @default "
|
|
1069
|
+
* The height of the Input it matches, which sets its padding and type: sm is 20px, md is 24px.
|
|
1070
|
+
* @default "md"
|
|
1175
1071
|
*/
|
|
1176
|
-
size?: "
|
|
1072
|
+
size?: "sm" | "md";
|
|
1177
1073
|
/**
|
|
1178
1074
|
* How the component applies its color.
|
|
1179
1075
|
* @default "surface"
|
|
@@ -1200,6 +1096,10 @@ export interface TextComponentOwnProps {
|
|
|
1200
1096
|
* @default "span"
|
|
1201
1097
|
*/
|
|
1202
1098
|
as?: "span" | "div" | "label" | "p";
|
|
1099
|
+
/**
|
|
1100
|
+
* A named text style: its size, line height, letter spacing, weight and family. `size` and `weight` override it; unset, it inherits.
|
|
1101
|
+
*/
|
|
1102
|
+
textStyle?: "display" | "headline" | "title-large" | "title" | "title-small" | "body-large" | "body" | "body-small" | "label-large" | "label" | "label-strong" | "label-small" | "caption" | "code";
|
|
1203
1103
|
/**
|
|
1204
1104
|
* A step of the type scale; unset, it inherits.
|
|
1205
1105
|
*/
|
|
@@ -1207,7 +1107,7 @@ export interface TextComponentOwnProps {
|
|
|
1207
1107
|
/**
|
|
1208
1108
|
* Font weight, one of the weight tokens.
|
|
1209
1109
|
*/
|
|
1210
|
-
weight?: "light" | "regular" | "medium" | "semibold" | "bold";
|
|
1110
|
+
weight?: "light" | "regular" | "medium" | "strong" | "semibold" | "bold";
|
|
1211
1111
|
/**
|
|
1212
1112
|
* Text alignment.
|
|
1213
1113
|
*/
|
|
@@ -1256,10 +1156,10 @@ export interface ToastOwnProps {
|
|
|
1256
1156
|
|
|
1257
1157
|
export interface ToggleGroupOwnProps {
|
|
1258
1158
|
/**
|
|
1259
|
-
* Control height:
|
|
1260
|
-
* @default "
|
|
1159
|
+
* Control height: sm is 20px, md is 24px.
|
|
1160
|
+
* @default "md"
|
|
1261
1161
|
*/
|
|
1262
|
-
size?: "
|
|
1162
|
+
size?: "sm" | "md";
|
|
1263
1163
|
/**
|
|
1264
1164
|
* How the component applies its color.
|
|
1265
1165
|
* @default "ghost"
|
|
@@ -1282,10 +1182,10 @@ export interface ToggleGroupOwnProps {
|
|
|
1282
1182
|
|
|
1283
1183
|
export interface ToggleOwnProps {
|
|
1284
1184
|
/**
|
|
1285
|
-
* Control height:
|
|
1286
|
-
* @default "
|
|
1185
|
+
* Control height: sm is 20px, md is 24px.
|
|
1186
|
+
* @default "md"
|
|
1287
1187
|
*/
|
|
1288
|
-
size?: "
|
|
1188
|
+
size?: "sm" | "md";
|
|
1289
1189
|
/**
|
|
1290
1190
|
* How the component applies its color.
|
|
1291
1191
|
* @default "ghost"
|
|
@@ -1308,10 +1208,10 @@ export interface ToggleOwnProps {
|
|
|
1308
1208
|
|
|
1309
1209
|
export interface ToolbarOwnProps {
|
|
1310
1210
|
/**
|
|
1311
|
-
* Control height:
|
|
1312
|
-
* @default "
|
|
1211
|
+
* Control height: sm is 20px, md is 24px.
|
|
1212
|
+
* @default "md"
|
|
1313
1213
|
*/
|
|
1314
|
-
size?: "
|
|
1214
|
+
size?: "sm" | "md";
|
|
1315
1215
|
}
|
|
1316
1216
|
|
|
1317
1217
|
type Equal<A, B> =
|
|
@@ -1323,8 +1223,9 @@ type Expect<T extends true> = T;
|
|
|
1323
1223
|
/** Fails to compile when a declaration above disagrees with its definitions. */
|
|
1324
1224
|
export type PropTypesMatchDefinitions = [
|
|
1325
1225
|
Expect<
|
|
1326
|
-
Equal<
|
|
1226
|
+
Equal<AlertDialogPopupOwnProps, PropsOf<typeof alertDialogPopupProps>>
|
|
1327
1227
|
>,
|
|
1228
|
+
Expect<Equal<AlignmentPickerOwnProps, PropsOf<typeof alignmentPickerProps>>>,
|
|
1328
1229
|
Expect<Equal<AspectRatioOwnProps, PropsOf<typeof aspectRatioProps>>>,
|
|
1329
1230
|
Expect<
|
|
1330
1231
|
Equal<AutocompletePopupOwnProps, PropsOf<typeof autocompletePopupProps>>
|
|
@@ -1333,6 +1234,7 @@ export type PropTypesMatchDefinitions = [
|
|
|
1333
1234
|
Expect<Equal<AvatarOwnProps, PropsOf<typeof avatarProps>>>,
|
|
1334
1235
|
Expect<Equal<BadgeOwnProps, PropsOf<typeof badgeProps>>>,
|
|
1335
1236
|
Expect<Equal<BlockquoteOwnProps, PropsOf<typeof blockquoteProps>>>,
|
|
1237
|
+
Expect<Equal<ButtonLinkOwnProps, PropsOf<typeof buttonLinkProps>>>,
|
|
1336
1238
|
Expect<Equal<ButtonOwnProps, PropsOf<typeof buttonProps>>>,
|
|
1337
1239
|
Expect<Equal<CalloutOwnProps, PropsOf<typeof calloutProps>>>,
|
|
1338
1240
|
Expect<Equal<CardOwnProps, PropsOf<typeof cardProps>>>,
|
|
@@ -1340,16 +1242,18 @@ export type PropTypesMatchDefinitions = [
|
|
|
1340
1242
|
Expect<Equal<CheckboxGroupOwnProps, PropsOf<typeof checkboxGroupProps>>>,
|
|
1341
1243
|
Expect<Equal<CheckboxOwnProps, PropsOf<typeof checkboxProps>>>,
|
|
1342
1244
|
Expect<Equal<CodeOwnProps, PropsOf<typeof codeProps>>>,
|
|
1245
|
+
Expect<Equal<ColorSwatchOwnProps, PropsOf<typeof colorSwatchProps>>>,
|
|
1343
1246
|
Expect<Equal<ComboboxPopupOwnProps, PropsOf<typeof comboboxPopupProps>>>,
|
|
1344
1247
|
Expect<Equal<ComboboxOwnProps, PropsOf<typeof comboboxProps>>>,
|
|
1248
|
+
Expect<Equal<ContextMenuItemOwnProps, PropsOf<typeof contextMenuItemProps>>>,
|
|
1345
1249
|
Expect<
|
|
1346
|
-
Equal<
|
|
1250
|
+
Equal<ContextMenuPopupOwnProps, PropsOf<typeof contextMenuPopupProps>>
|
|
1347
1251
|
>,
|
|
1348
|
-
Expect<Equal<ContextMenuItemOwnProps, PropsOf<typeof contextMenuItemProps>>>,
|
|
1349
1252
|
Expect<Equal<DataListOwnProps, PropsOf<typeof dataListProps>>>,
|
|
1350
|
-
Expect<Equal<
|
|
1253
|
+
Expect<Equal<DialogPopupOwnProps, PropsOf<typeof dialogPopupProps>>>,
|
|
1351
1254
|
Expect<Equal<DrawerOwnProps, PropsOf<typeof drawerProps>>>,
|
|
1352
|
-
Expect<Equal<
|
|
1255
|
+
Expect<Equal<FontPickerOwnProps, PropsOf<typeof fontPickerProps>>>,
|
|
1256
|
+
Expect<Equal<GridSizePickerOwnProps, PropsOf<typeof gridSizePickerProps>>>,
|
|
1353
1257
|
Expect<Equal<HeadingOwnProps, PropsOf<typeof headingProps>>>,
|
|
1354
1258
|
Expect<Equal<IconButtonOwnProps, PropsOf<typeof iconButtonProps>>>,
|
|
1355
1259
|
Expect<Equal<InputOwnProps, PropsOf<typeof inputProps>>>,
|
|
@@ -1360,33 +1264,31 @@ export type PropTypesMatchDefinitions = [
|
|
|
1360
1264
|
Expect<Equal<ItemOwnProps, PropsOf<typeof itemProps>>>,
|
|
1361
1265
|
Expect<Equal<KbdOwnProps, PropsOf<typeof kbdProps>>>,
|
|
1362
1266
|
Expect<Equal<LinkOwnProps, PropsOf<typeof linkProps>>>,
|
|
1363
|
-
Expect<Equal<MenubarContentOwnProps, PropsOf<typeof menubarContentProps>>>,
|
|
1364
1267
|
Expect<Equal<MenubarItemOwnProps, PropsOf<typeof menubarItemProps>>>,
|
|
1365
|
-
Expect<Equal<
|
|
1268
|
+
Expect<Equal<MenubarPopupOwnProps, PropsOf<typeof menubarPopupProps>>>,
|
|
1366
1269
|
Expect<Equal<MenuItemOwnProps, PropsOf<typeof menuItemProps>>>,
|
|
1270
|
+
Expect<Equal<MenuPopupOwnProps, PropsOf<typeof menuPopupProps>>>,
|
|
1367
1271
|
Expect<Equal<MeterOwnProps, PropsOf<typeof meterProps>>>,
|
|
1368
1272
|
Expect<Equal<NumberFieldOwnProps, PropsOf<typeof numberFieldProps>>>,
|
|
1369
1273
|
Expect<Equal<OtpFieldOwnProps, PropsOf<typeof otpFieldProps>>>,
|
|
1370
|
-
Expect<Equal<
|
|
1274
|
+
Expect<Equal<PopoverPopupOwnProps, PropsOf<typeof popoverPopupProps>>>,
|
|
1371
1275
|
Expect<
|
|
1372
|
-
Equal<
|
|
1276
|
+
Equal<PreviewCardPopupOwnProps, PropsOf<typeof previewCardPopupProps>>
|
|
1373
1277
|
>,
|
|
1374
1278
|
Expect<Equal<ProgressOwnProps, PropsOf<typeof progressProps>>>,
|
|
1375
|
-
Expect<Equal<QuoteOwnProps, PropsOf<typeof quoteProps>>>,
|
|
1376
1279
|
Expect<Equal<RadioCardsOwnProps, PropsOf<typeof radioCardsProps>>>,
|
|
1377
1280
|
Expect<Equal<RadioGroupOwnProps, PropsOf<typeof radioGroupProps>>>,
|
|
1378
1281
|
Expect<Equal<ScrollAreaOwnProps, PropsOf<typeof scrollAreaProps>>>,
|
|
1379
1282
|
Expect<
|
|
1380
1283
|
Equal<SegmentedControlOwnProps, PropsOf<typeof segmentedControlProps>>
|
|
1381
1284
|
>,
|
|
1382
|
-
Expect<Equal<
|
|
1285
|
+
Expect<Equal<SelectPopupOwnProps, PropsOf<typeof selectPopupProps>>>,
|
|
1383
1286
|
Expect<Equal<SelectRootOwnProps, PropsOf<typeof selectRootProps>>>,
|
|
1384
1287
|
Expect<Equal<SelectTriggerOwnProps, PropsOf<typeof selectTriggerProps>>>,
|
|
1385
1288
|
Expect<Equal<SeparatorOwnProps, PropsOf<typeof separatorProps>>>,
|
|
1386
1289
|
Expect<Equal<SkeletonOwnProps, PropsOf<typeof skeletonProps>>>,
|
|
1387
1290
|
Expect<Equal<SliderOwnProps, PropsOf<typeof sliderProps>>>,
|
|
1388
1291
|
Expect<Equal<SpinnerOwnProps, PropsOf<typeof spinnerProps>>>,
|
|
1389
|
-
Expect<Equal<StrongOwnProps, PropsOf<typeof strongProps>>>,
|
|
1390
1292
|
Expect<Equal<SwitchOwnProps, PropsOf<typeof switchProps>>>,
|
|
1391
1293
|
Expect<Equal<TableCellOwnProps, PropsOf<typeof tableCellProps>>>,
|
|
1392
1294
|
Expect<Equal<TableOwnProps, PropsOf<typeof tableProps>>>,
|