@panneau/ui 5.0.0-alpha.1 → 5.0.0-alpha.11
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 +370 -14
- package/bin/check-theme.js +5 -0
- package/dist/alert/Alert.css +28 -42
- package/dist/alert/Alert.d.ts +19 -5
- package/dist/alert/Alert.d.ts.map +1 -1
- package/dist/alert/Alert.js +110 -41
- package/dist/alert/Alert.js.map +1 -1
- package/dist/alert/Alert.module.js +14 -16
- package/dist/alert/Alert.module.js.map +1 -1
- package/dist/alert/tokens.d.ts +3 -0
- package/dist/alert/tokens.d.ts.map +1 -0
- package/dist/alert/tokens.js +21 -0
- package/dist/alert/tokens.js.map +1 -0
- package/dist/badge/Badge.css +24 -36
- package/dist/badge/Badge.d.ts +18 -3
- package/dist/badge/Badge.d.ts.map +1 -1
- package/dist/badge/Badge.js +35 -6
- package/dist/badge/Badge.js.map +1 -1
- package/dist/badge/Badge.module.js +9 -13
- package/dist/badge/Badge.module.js.map +1 -1
- package/dist/badge/tokens.d.ts +3 -0
- package/dist/badge/tokens.d.ts.map +1 -0
- package/dist/badge/tokens.js +23 -0
- package/dist/badge/tokens.js.map +1 -0
- package/dist/button/Button.css +58 -42
- package/dist/button/Button.d.ts +44 -6
- package/dist/button/Button.d.ts.map +1 -1
- package/dist/button/Button.js +172 -22
- package/dist/button/Button.js.map +1 -1
- package/dist/button/Button.module.js +14 -14
- package/dist/button/Button.module.js.map +1 -1
- package/dist/button/LinkButton.d.ts +22 -0
- package/dist/button/LinkButton.d.ts.map +1 -0
- package/dist/button/LinkButton.js +113 -0
- package/dist/button/LinkButton.js.map +1 -0
- package/dist/button/tokens.d.ts +3 -0
- package/dist/button/tokens.d.ts.map +1 -0
- package/dist/button/tokens.js +25 -0
- package/dist/button/tokens.js.map +1 -0
- package/dist/card/Card.css +27 -20
- package/dist/card/Card.js +76 -23
- package/dist/card/Card.js.map +1 -1
- package/dist/card/Card.module.js +5 -5
- package/dist/card/Card.module.js.map +1 -1
- package/dist/card/tokens.d.ts +3 -0
- package/dist/card/tokens.d.ts.map +1 -0
- package/dist/card/tokens.js +31 -0
- package/dist/card/tokens.js.map +1 -0
- package/dist/checkbox/Checkbox.css +22 -21
- package/dist/checkbox/Checkbox.d.ts +1 -1
- package/dist/checkbox/Checkbox.d.ts.map +1 -1
- package/dist/checkbox/Checkbox.js +87 -25
- package/dist/checkbox/Checkbox.js.map +1 -1
- package/dist/checkbox/Checkbox.module.js +6 -6
- package/dist/checkbox/Checkbox.module.js.map +1 -1
- package/dist/checkbox/ChoiceChrome.d.ts +3 -1
- package/dist/checkbox/ChoiceChrome.d.ts.map +1 -1
- package/dist/checkbox/ChoiceChrome.js +82 -21
- package/dist/checkbox/ChoiceChrome.js.map +1 -1
- package/dist/checkbox/tokens.d.ts +3 -0
- package/dist/checkbox/tokens.d.ts.map +1 -0
- package/dist/checkbox/tokens.js +21 -0
- package/dist/checkbox/tokens.js.map +1 -0
- package/dist/combo-box/ComboBox.css +4 -4
- package/dist/combo-box/ComboBox.d.ts +1 -1
- package/dist/combo-box/ComboBox.js +291 -79
- package/dist/combo-box/ComboBox.js.map +1 -1
- package/dist/combo-box/ComboBox.module.js +3 -3
- package/dist/command-palette/CommandPalette.css +299 -0
- package/dist/command-palette/CommandPalette.d.ts +37 -0
- package/dist/command-palette/CommandPalette.d.ts.map +1 -0
- package/dist/command-palette/CommandPalette.js +497 -0
- package/dist/command-palette/CommandPalette.js.map +1 -0
- package/dist/command-palette/CommandPalette.module.js +62 -0
- package/dist/command-palette/CommandPalette.module.js.map +1 -0
- package/dist/command-palette/match.d.ts +39 -0
- package/dist/command-palette/match.d.ts.map +1 -0
- package/dist/command-palette/match.js +44 -0
- package/dist/command-palette/match.js.map +1 -0
- package/dist/command-palette/tokens.d.ts +3 -0
- package/dist/command-palette/tokens.d.ts.map +1 -0
- package/dist/command-palette/tokens.js +23 -0
- package/dist/command-palette/tokens.js.map +1 -0
- package/dist/command-palette/useCommandShortcut.d.ts +12 -0
- package/dist/command-palette/useCommandShortcut.d.ts.map +1 -0
- package/dist/command-palette/useCommandShortcut.js +48 -0
- package/dist/command-palette/useCommandShortcut.js.map +1 -0
- package/dist/container/Container.css +32 -0
- package/dist/container/Container.d.ts +15 -0
- package/dist/container/Container.d.ts.map +1 -0
- package/dist/container/Container.js +61 -0
- package/dist/container/Container.js.map +1 -0
- package/dist/container/Container.module.js +20 -0
- package/dist/container/Container.module.js.map +1 -0
- package/dist/container/tokens.d.ts +3 -0
- package/dist/container/tokens.d.ts.map +1 -0
- package/dist/container/tokens.js +19 -0
- package/dist/container/tokens.js.map +1 -0
- package/dist/date-picker/DatePicker.css +70 -30
- package/dist/date-picker/DatePicker.d.ts +3 -2
- package/dist/date-picker/DatePicker.d.ts.map +1 -1
- package/dist/date-picker/DatePicker.js +279 -72
- package/dist/date-picker/DatePicker.js.map +1 -1
- package/dist/date-picker/DatePicker.module.js +16 -12
- package/dist/date-picker/DatePicker.module.js.map +1 -1
- package/dist/date-picker/calendarTokens.d.ts +3 -0
- package/dist/date-picker/calendarTokens.d.ts.map +1 -0
- package/dist/date-picker/calendarTokens.js +17 -0
- package/dist/date-picker/calendarTokens.js.map +1 -0
- package/dist/dialog/Dialog.css +80 -37
- package/dist/dialog/Dialog.d.ts +15 -3
- package/dist/dialog/Dialog.d.ts.map +1 -1
- package/dist/dialog/Dialog.js +159 -30
- package/dist/dialog/Dialog.js.map +1 -1
- package/dist/dialog/Dialog.module.js +21 -13
- package/dist/dialog/Dialog.module.js.map +1 -1
- package/dist/dialog/tokens.d.ts +3 -0
- package/dist/dialog/tokens.d.ts.map +1 -0
- package/dist/dialog/tokens.js +31 -0
- package/dist/dialog/tokens.js.map +1 -0
- package/dist/disclosure/Disclosure.css +12 -12
- package/dist/disclosure/Disclosure.d.ts.map +1 -1
- package/dist/disclosure/Disclosure.js +132 -28
- package/dist/disclosure/Disclosure.js.map +1 -1
- package/dist/disclosure/Disclosure.module.js +7 -7
- package/dist/disclosure/Disclosure.module.js.map +1 -1
- package/dist/disclosure/tokens.d.ts +3 -0
- package/dist/disclosure/tokens.d.ts.map +1 -0
- package/dist/disclosure/tokens.js +15 -0
- package/dist/disclosure/tokens.js.map +1 -0
- package/dist/divider/Divider.css +17 -0
- package/dist/divider/Divider.d.ts +8 -0
- package/dist/divider/Divider.d.ts.map +1 -0
- package/dist/divider/Divider.js +65 -0
- package/dist/divider/Divider.js.map +1 -0
- package/dist/divider/Divider.module.js +12 -0
- package/dist/divider/Divider.module.js.map +1 -0
- package/dist/divider/tokens.d.ts +3 -0
- package/dist/divider/tokens.d.ts.map +1 -0
- package/dist/divider/tokens.js +13 -0
- package/dist/divider/tokens.js.map +1 -0
- package/dist/field/Field.css +49 -37
- package/dist/field/Field.module.js +11 -11
- package/dist/field/Field.module.js.map +1 -1
- package/dist/field/FieldParts.d.ts +1 -1
- package/dist/field/FieldParts.js +69 -15
- package/dist/field/FieldParts.js.map +1 -1
- package/dist/field/Fieldset.js +99 -32
- package/dist/field/Fieldset.js.map +1 -1
- package/dist/field/inputTokens.d.ts +3 -0
- package/dist/field/inputTokens.d.ts.map +1 -0
- package/dist/field/inputTokens.js +21 -0
- package/dist/field/inputTokens.js.map +1 -0
- package/dist/field/tokens.d.ts +3 -0
- package/dist/field/tokens.d.ts.map +1 -0
- package/dist/field/tokens.js +15 -0
- package/dist/field/tokens.js.map +1 -0
- package/dist/grid/Grid.css +174 -0
- package/dist/grid/Grid.d.ts +28 -0
- package/dist/grid/Grid.d.ts.map +1 -0
- package/dist/grid/Grid.js +140 -0
- package/dist/grid/Grid.js.map +1 -0
- package/dist/grid/Grid.module.js +12 -0
- package/dist/grid/Grid.module.js.map +1 -0
- package/dist/grid/GridItem.css +59 -0
- package/dist/grid/GridItem.module.js +7 -0
- package/dist/grid/GridItem.module.js.map +1 -0
- package/dist/grid/tokens.d.ts +3 -0
- package/dist/grid/tokens.d.ts.map +1 -0
- package/dist/grid/tokens.js +10 -0
- package/dist/grid/tokens.js.map +1 -0
- package/dist/heading/Heading.css +52 -0
- package/dist/heading/Heading.d.ts +17 -0
- package/dist/heading/Heading.d.ts.map +1 -0
- package/dist/heading/Heading.js +52 -0
- package/dist/heading/Heading.js.map +1 -0
- package/dist/heading/Heading.module.js +16 -0
- package/dist/heading/Heading.module.js.map +1 -0
- package/dist/heading/tokens.d.ts +6 -0
- package/dist/heading/tokens.d.ts.map +1 -0
- package/dist/heading/tokens.js +66 -0
- package/dist/heading/tokens.js.map +1 -0
- package/dist/icon/Icon.css +1 -1
- package/dist/icon/Icon.js +36 -11
- package/dist/icon/Icon.js.map +1 -1
- package/dist/icon/Icon.module.js +1 -1
- package/dist/icon/lucideIconLoader.d.ts +9 -0
- package/dist/icon/lucideIconLoader.d.ts.map +1 -0
- package/dist/icon/lucideIconLoader.js +22 -0
- package/dist/icon/lucideIconLoader.js.map +1 -0
- package/dist/icon/namedIcons.d.ts +16 -9
- package/dist/icon/namedIcons.d.ts.map +1 -1
- package/dist/icon/namedIcons.js +121 -46
- package/dist/icon/namedIcons.js.map +1 -1
- package/dist/icon-button/IconButton.css +2 -2
- package/dist/icon-button/IconButton.d.ts +3 -3
- package/dist/icon-button/IconButton.d.ts.map +1 -1
- package/dist/icon-button/IconButton.js +70 -13
- package/dist/icon-button/IconButton.js.map +1 -1
- package/dist/icon-button/IconButton.module.js +2 -2
- package/dist/index.d.ts +62 -32
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -5
- package/dist/inline/Inline.css +142 -0
- package/dist/inline/Inline.d.ts +17 -0
- package/dist/inline/Inline.d.ts.map +1 -0
- package/dist/inline/Inline.js +79 -0
- package/dist/inline/Inline.js.map +1 -0
- package/dist/inline/Inline.module.js +12 -0
- package/dist/inline/Inline.module.js.map +1 -0
- package/dist/inline/tokens.d.ts +3 -0
- package/dist/inline/tokens.d.ts.map +1 -0
- package/dist/inline/tokens.js +10 -0
- package/dist/inline/tokens.js.map +1 -0
- package/dist/intl/usePanneauIntl.js.map +1 -1
- package/dist/layout/responsive.d.ts +38 -0
- package/dist/layout/responsive.d.ts.map +1 -0
- package/dist/layout/responsive.js +49 -0
- package/dist/layout/responsive.js.map +1 -0
- package/dist/locales/index.js.map +1 -1
- package/dist/menu/Menu.css +84 -0
- package/dist/menu/Menu.d.ts +34 -7
- package/dist/menu/Menu.d.ts.map +1 -1
- package/dist/menu/Menu.js +243 -32
- package/dist/menu/Menu.js.map +1 -1
- package/dist/menu/Menu.module.js +22 -0
- package/dist/menu/Menu.module.js.map +1 -0
- package/dist/menu/tokens.d.ts +3 -0
- package/dist/menu/tokens.d.ts.map +1 -0
- package/dist/menu/tokens.js +31 -0
- package/dist/menu/tokens.js.map +1 -0
- package/dist/named-icons/index.d.ts +2 -0
- package/dist/named-icons/index.d.ts.map +1 -0
- package/dist/named-icons/index.js +1 -0
- package/dist/number-input/NumberInput.css +30 -12
- package/dist/number-input/NumberInput.d.ts +1 -1
- package/dist/number-input/NumberInput.js +232 -60
- package/dist/number-input/NumberInput.js.map +1 -1
- package/dist/number-input/NumberInput.module.js +7 -5
- package/dist/number-input/NumberInput.module.js.map +1 -1
- package/dist/number-input/tokens.d.ts +3 -0
- package/dist/number-input/tokens.d.ts.map +1 -0
- package/dist/number-input/tokens.js +10 -0
- package/dist/number-input/tokens.js.map +1 -0
- package/dist/pill-trigger/PillTrigger.css +104 -0
- package/dist/pill-trigger/PillTrigger.d.ts +20 -0
- package/dist/pill-trigger/PillTrigger.d.ts.map +1 -0
- package/dist/pill-trigger/PillTrigger.js +94 -0
- package/dist/pill-trigger/PillTrigger.js.map +1 -0
- package/dist/pill-trigger/PillTrigger.module.js +18 -0
- package/dist/pill-trigger/PillTrigger.module.js.map +1 -0
- package/dist/pill-trigger/tokens.d.ts +3 -0
- package/dist/pill-trigger/tokens.d.ts.map +1 -0
- package/dist/pill-trigger/tokens.js +37 -0
- package/dist/pill-trigger/tokens.js.map +1 -0
- package/dist/popover/Popover.css +18 -12
- package/dist/popover/Popover.d.ts.map +1 -1
- package/dist/popover/Popover.js +116 -20
- package/dist/popover/Popover.js.map +1 -1
- package/dist/popover/Popover.module.js +7 -5
- package/dist/popover/Popover.module.js.map +1 -1
- package/dist/popover/tokens.d.ts +3 -0
- package/dist/popover/tokens.d.ts.map +1 -0
- package/dist/popover/tokens.js +19 -0
- package/dist/popover/tokens.js.map +1 -0
- package/dist/prose/Prose.css +141 -0
- package/dist/prose/Prose.d.ts +11 -0
- package/dist/prose/Prose.d.ts.map +1 -0
- package/dist/prose/Prose.js +49 -0
- package/dist/prose/Prose.js.map +1 -0
- package/dist/prose/Prose.module.js +8 -0
- package/dist/prose/Prose.module.js.map +1 -0
- package/dist/prose/tokens.d.ts +3 -0
- package/dist/prose/tokens.d.ts.map +1 -0
- package/dist/prose/tokens.js +33 -0
- package/dist/prose/tokens.js.map +1 -0
- package/dist/radio-group/RadioGroup.css +111 -20
- package/dist/radio-group/RadioGroup.d.ts +24 -5
- package/dist/radio-group/RadioGroup.d.ts.map +1 -1
- package/dist/radio-group/RadioGroup.js +214 -43
- package/dist/radio-group/RadioGroup.js.map +1 -1
- package/dist/radio-group/RadioGroup.module.js +18 -8
- package/dist/radio-group/RadioGroup.module.js.map +1 -1
- package/dist/radio-group/tokens.d.ts +3 -0
- package/dist/radio-group/tokens.d.ts.map +1 -0
- package/dist/radio-group/tokens.js +39 -0
- package/dist/radio-group/tokens.js.map +1 -0
- package/dist/root/PanneauRoot.css +243 -20
- package/dist/root/PanneauRoot.d.ts +57 -4
- package/dist/root/PanneauRoot.d.ts.map +1 -1
- package/dist/root/PanneauRoot.js +325 -46
- package/dist/root/PanneauRoot.js.map +1 -1
- package/dist/root/PanneauRoot.module.js +11 -3
- package/dist/root/PanneauRoot.module.js.map +1 -1
- package/dist/root/ThemeScope.d.ts +24 -0
- package/dist/root/ThemeScope.d.ts.map +1 -0
- package/dist/root/ThemeScope.js +132 -0
- package/dist/root/ThemeScope.js.map +1 -0
- package/dist/segmented-control/SegmentedControl.css +83 -0
- package/dist/segmented-control/SegmentedControl.d.ts +35 -0
- package/dist/segmented-control/SegmentedControl.d.ts.map +1 -0
- package/dist/segmented-control/SegmentedControl.js +142 -0
- package/dist/segmented-control/SegmentedControl.js.map +1 -0
- package/dist/segmented-control/SegmentedControl.module.js +16 -0
- package/dist/segmented-control/SegmentedControl.module.js.map +1 -0
- package/dist/segmented-control/tokens.d.ts +3 -0
- package/dist/segmented-control/tokens.d.ts.map +1 -0
- package/dist/segmented-control/tokens.js +29 -0
- package/dist/segmented-control/tokens.js.map +1 -0
- package/dist/select/ListBox.css +46 -23
- package/dist/select/ListBox.module.js +13 -13
- package/dist/select/ListBox.module.js.map +1 -1
- package/dist/select/Select.d.ts +1 -1
- package/dist/select/Select.js +298 -92
- package/dist/select/Select.js.map +1 -1
- package/dist/select/listBoxTokens.d.ts +3 -0
- package/dist/select/listBoxTokens.d.ts.map +1 -0
- package/dist/select/listBoxTokens.js +21 -0
- package/dist/select/listBoxTokens.js.map +1 -0
- package/dist/skeleton/LoadingRegion.d.ts +16 -0
- package/dist/skeleton/LoadingRegion.d.ts.map +1 -0
- package/dist/skeleton/LoadingRegion.js +65 -0
- package/dist/skeleton/LoadingRegion.js.map +1 -0
- package/dist/skeleton/Skeleton.css +62 -0
- package/dist/skeleton/Skeleton.d.ts +25 -0
- package/dist/skeleton/Skeleton.d.ts.map +1 -0
- package/dist/skeleton/Skeleton.js +106 -0
- package/dist/skeleton/Skeleton.js.map +1 -0
- package/dist/skeleton/Skeleton.module.js +22 -0
- package/dist/skeleton/Skeleton.module.js.map +1 -0
- package/dist/skeleton/tokens.d.ts +3 -0
- package/dist/skeleton/tokens.d.ts.map +1 -0
- package/dist/skeleton/tokens.js +15 -0
- package/dist/skeleton/tokens.js.map +1 -0
- package/dist/slider/Slider.css +84 -0
- package/dist/slider/Slider.d.ts +20 -0
- package/dist/slider/Slider.d.ts.map +1 -0
- package/dist/slider/Slider.js +248 -0
- package/dist/slider/Slider.js.map +1 -0
- package/dist/slider/Slider.module.js +20 -0
- package/dist/slider/Slider.module.js.map +1 -0
- package/dist/spinner/Spinner.css +8 -8
- package/dist/spinner/Spinner.js +49 -9
- package/dist/spinner/Spinner.js.map +1 -1
- package/dist/spinner/Spinner.module.js +5 -5
- package/dist/spinner/Spinner.module.js.map +1 -1
- package/dist/spinner/tokens.d.ts +3 -0
- package/dist/spinner/tokens.d.ts.map +1 -0
- package/dist/spinner/tokens.js +10 -0
- package/dist/spinner/tokens.js.map +1 -0
- package/dist/stack/Stack.css +135 -0
- package/dist/stack/Stack.d.ts +15 -0
- package/dist/stack/Stack.d.ts.map +1 -0
- package/dist/stack/Stack.js +74 -0
- package/dist/stack/Stack.js.map +1 -0
- package/dist/stack/Stack.module.js +8 -0
- package/dist/stack/Stack.module.js.map +1 -0
- package/dist/stack/tokens.d.ts +3 -0
- package/dist/stack/tokens.d.ts.map +1 -0
- package/dist/stack/tokens.js +10 -0
- package/dist/stack/tokens.js.map +1 -0
- package/dist/switch/Switch.css +34 -25
- package/dist/switch/Switch.d.ts +1 -1
- package/dist/switch/Switch.d.ts.map +1 -1
- package/dist/switch/Switch.js +69 -11
- package/dist/switch/Switch.js.map +1 -1
- package/dist/switch/Switch.module.js +6 -5
- package/dist/switch/Switch.module.js.map +1 -1
- package/dist/switch/tokens.d.ts +3 -0
- package/dist/switch/tokens.d.ts.map +1 -0
- package/dist/switch/tokens.js +25 -0
- package/dist/switch/tokens.js.map +1 -0
- package/dist/tabs/Tabs.css +24 -23
- package/dist/tabs/Tabs.js +5 -5
- package/dist/tabs/Tabs.js.map +1 -1
- package/dist/tabs/Tabs.module.js +4 -4
- package/dist/tabs/Tabs.module.js.map +1 -1
- package/dist/tabs/tokens.d.ts +3 -0
- package/dist/tabs/tokens.d.ts.map +1 -0
- package/dist/tabs/tokens.js +25 -0
- package/dist/tabs/tokens.js.map +1 -0
- package/dist/tags-input/TagsInput.css +60 -0
- package/dist/tags-input/TagsInput.d.ts +32 -0
- package/dist/tags-input/TagsInput.d.ts.map +1 -0
- package/dist/tags-input/TagsInput.js +316 -0
- package/dist/tags-input/TagsInput.js.map +1 -0
- package/dist/tags-input/TagsInput.module.js +20 -0
- package/dist/tags-input/TagsInput.module.js.map +1 -0
- package/dist/text/Text.css +74 -0
- package/dist/text/Text.d.ts +27 -0
- package/dist/text/Text.d.ts.map +1 -0
- package/dist/text/Text.js +81 -0
- package/dist/text/Text.js.map +1 -0
- package/dist/text/Text.module.js +30 -0
- package/dist/text/Text.module.js.map +1 -0
- package/dist/text/tokens.d.ts +3 -0
- package/dist/text/tokens.d.ts.map +1 -0
- package/dist/text/tokens.js +10 -0
- package/dist/text/tokens.js.map +1 -0
- package/dist/text-area/TextArea.css +1 -1
- package/dist/text-area/TextArea.d.ts +1 -1
- package/dist/text-area/TextArea.js +135 -28
- package/dist/text-area/TextArea.js.map +1 -1
- package/dist/text-area/TextArea.module.js +3 -3
- package/dist/text-area/TextArea.module.js.map +1 -1
- package/dist/text-input/TextInput.d.ts +1 -1
- package/dist/text-input/TextInput.d.ts.map +1 -1
- package/dist/text-input/TextInput.js +164 -47
- package/dist/text-input/TextInput.js.map +1 -1
- package/dist/theme/Tone.css +70 -0
- package/dist/theme/Tone.module.js +20 -0
- package/dist/theme/Tone.module.js.map +1 -0
- package/dist/theme/bootstrap.d.ts +11 -1
- package/dist/theme/bootstrap.d.ts.map +1 -1
- package/dist/theme/bootstrap.js +48 -5
- package/dist/theme/bootstrap.js.map +1 -1
- package/dist/theme/chartColors.d.ts +23 -0
- package/dist/theme/chartColors.d.ts.map +1 -0
- package/dist/theme/chartColors.js +27 -0
- package/dist/theme/chartColors.js.map +1 -0
- package/dist/theme/checkTheme.d.ts +39 -0
- package/dist/theme/checkTheme.d.ts.map +1 -0
- package/dist/theme/checkTheme.js +132 -0
- package/dist/theme/checkTheme.js.map +1 -0
- package/dist/theme/cli.d.ts +14 -0
- package/dist/theme/cli.d.ts.map +1 -0
- package/dist/theme/cli.js +61 -0
- package/dist/theme/cli.js.map +1 -0
- package/dist/theme/color.d.ts +30 -0
- package/dist/theme/color.d.ts.map +1 -0
- package/dist/theme/color.js +94 -0
- package/dist/theme/color.js.map +1 -0
- package/dist/theme/colorVision.d.ts +23 -0
- package/dist/theme/colorVision.d.ts.map +1 -0
- package/dist/theme/colorVision.js +140 -0
- package/dist/theme/colorVision.js.map +1 -0
- package/dist/theme/componentTokens.d.ts +24 -0
- package/dist/theme/componentTokens.d.ts.map +1 -0
- package/dist/theme/componentTokens.js +20 -0
- package/dist/theme/componentTokens.js.map +1 -0
- package/dist/theme/components.d.ts +43 -0
- package/dist/theme/components.d.ts.map +1 -0
- package/dist/theme/components.js +75 -0
- package/dist/theme/components.js.map +1 -0
- package/dist/theme/defineTheme.d.ts +85 -0
- package/dist/theme/defineTheme.d.ts.map +1 -0
- package/dist/theme/defineTheme.js +130 -0
- package/dist/theme/defineTheme.js.map +1 -0
- package/dist/theme/fonts.d.ts +32 -0
- package/dist/theme/fonts.d.ts.map +1 -0
- package/dist/theme/fonts.js +36 -0
- package/dist/theme/fonts.js.map +1 -0
- package/dist/theme/index.d.ts +13 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +10 -0
- package/dist/theme/semanticTokens.d.ts +9 -0
- package/dist/theme/semanticTokens.d.ts.map +1 -0
- package/dist/theme/semanticTokens.js +110 -0
- package/dist/theme/semanticTokens.js.map +1 -0
- package/dist/theme/theme.d.ts +61 -7
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +100 -10
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/toneClass.d.ts +8 -0
- package/dist/theme/toneClass.d.ts.map +1 -0
- package/dist/theme/toneClass.js +15 -0
- package/dist/theme/toneClass.js.map +1 -0
- package/dist/theme/tones.d.ts +89 -0
- package/dist/theme/tones.d.ts.map +1 -0
- package/dist/theme/tones.js +127 -0
- package/dist/theme/tones.js.map +1 -0
- package/dist/time-input/TimeInput.d.ts +1 -1
- package/dist/time-input/TimeInput.js +138 -31
- package/dist/time-input/TimeInput.js.map +1 -1
- package/dist/toast/Toast.css +22 -44
- package/dist/toast/Toast.d.ts +5 -3
- package/dist/toast/Toast.d.ts.map +1 -1
- package/dist/toast/Toast.js +5 -4
- package/dist/toast/Toast.js.map +1 -1
- package/dist/toast/Toast.module.js +10 -16
- package/dist/toast/Toast.module.js.map +1 -1
- package/dist/toast/tokens.d.ts +3 -0
- package/dist/toast/tokens.d.ts.map +1 -0
- package/dist/toast/tokens.js +21 -0
- package/dist/toast/tokens.js.map +1 -0
- package/dist/tooltip/Tooltip.css +12 -11
- package/dist/tooltip/Tooltip.js +38 -8
- package/dist/tooltip/Tooltip.js.map +1 -1
- package/dist/tooltip/Tooltip.module.js +2 -2
- package/dist/tooltip/Tooltip.module.js.map +1 -1
- package/dist/tooltip/tokens.d.ts +3 -0
- package/dist/tooltip/tokens.d.ts.map +1 -0
- package/dist/tooltip/tokens.js +21 -0
- package/dist/tooltip/tokens.js.map +1 -0
- package/dist/utils/cx.d.ts +1 -1
- package/dist/utils/cx.d.ts.map +1 -1
- package/dist/utils/cx.js +2 -2
- package/dist/utils/cx.js.map +1 -1
- package/dist/utils/events.d.ts +4 -0
- package/dist/utils/events.d.ts.map +1 -0
- package/dist/utils/events.js +9 -0
- package/dist/utils/events.js.map +1 -0
- package/package.json +22 -5
|
@@ -2,23 +2,80 @@ import { cx } from "../utils/cx.js";
|
|
|
2
2
|
import { Button } from "../button/Button.js";
|
|
3
3
|
import { Tooltip } from "../tooltip/Tooltip.js";
|
|
4
4
|
import IconButton_module_default from "./IconButton.module.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
//#region src/icon-button/IconButton.tsx
|
|
7
8
|
/** A square button with only an icon. Its label is announced and shown as a tooltip. */
|
|
8
|
-
function IconButton(
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
function IconButton(t0) {
|
|
10
|
+
const $ = c(21);
|
|
11
|
+
let className;
|
|
12
|
+
let icon;
|
|
13
|
+
let label;
|
|
14
|
+
let props;
|
|
15
|
+
let t1;
|
|
16
|
+
let t2;
|
|
17
|
+
let t3;
|
|
18
|
+
if ($[0] !== t0) {
|
|
19
|
+
({icon, label, appearance: t1, size: t2, showTooltip: t3, className, ...props} = t0);
|
|
20
|
+
$[0] = t0;
|
|
21
|
+
$[1] = className;
|
|
22
|
+
$[2] = icon;
|
|
23
|
+
$[3] = label;
|
|
24
|
+
$[4] = props;
|
|
25
|
+
$[5] = t1;
|
|
26
|
+
$[6] = t2;
|
|
27
|
+
$[7] = t3;
|
|
28
|
+
} else {
|
|
29
|
+
className = $[1];
|
|
30
|
+
icon = $[2];
|
|
31
|
+
label = $[3];
|
|
32
|
+
props = $[4];
|
|
33
|
+
t1 = $[5];
|
|
34
|
+
t2 = $[6];
|
|
35
|
+
t3 = $[7];
|
|
36
|
+
}
|
|
37
|
+
const appearance = t1 === void 0 ? "ghost" : t1;
|
|
38
|
+
const size = t2 === void 0 ? "md" : t2;
|
|
39
|
+
const showTooltip = t3 === void 0 ? true : t3;
|
|
40
|
+
const t4 = size === "sm" && IconButton_module_default.sm;
|
|
41
|
+
let t5;
|
|
42
|
+
if ($[8] !== className || $[9] !== t4) {
|
|
43
|
+
t5 = cx("panneau-icon-button", IconButton_module_default.iconButton, t4, className);
|
|
44
|
+
$[8] = className;
|
|
45
|
+
$[9] = t4;
|
|
46
|
+
$[10] = t5;
|
|
47
|
+
} else t5 = $[10];
|
|
48
|
+
let t6;
|
|
49
|
+
if ($[11] !== appearance || $[12] !== icon || $[13] !== label || $[14] !== props || $[15] !== size || $[16] !== t5) {
|
|
50
|
+
t6 = /* @__PURE__ */ jsx(Button, {
|
|
51
|
+
...props,
|
|
52
|
+
appearance,
|
|
53
|
+
size,
|
|
54
|
+
icon,
|
|
55
|
+
"aria-label": label,
|
|
56
|
+
className: t5
|
|
57
|
+
});
|
|
58
|
+
$[11] = appearance;
|
|
59
|
+
$[12] = icon;
|
|
60
|
+
$[13] = label;
|
|
61
|
+
$[14] = props;
|
|
62
|
+
$[15] = size;
|
|
63
|
+
$[16] = t5;
|
|
64
|
+
$[17] = t6;
|
|
65
|
+
} else t6 = $[17];
|
|
66
|
+
const button = t6;
|
|
17
67
|
if (!showTooltip) return button;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
68
|
+
let t7;
|
|
69
|
+
if ($[18] !== button || $[19] !== label) {
|
|
70
|
+
t7 = /* @__PURE__ */ jsx(Tooltip, {
|
|
71
|
+
content: label,
|
|
72
|
+
children: button
|
|
73
|
+
});
|
|
74
|
+
$[18] = button;
|
|
75
|
+
$[19] = label;
|
|
76
|
+
$[20] = t7;
|
|
77
|
+
} else t7 = $[20];
|
|
78
|
+
return t7;
|
|
22
79
|
}
|
|
23
80
|
//#endregion
|
|
24
81
|
export { IconButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","names":["styles"],"sources":["../../src/icon-button/IconButton.tsx"],"sourcesContent":["import type { CSSProperties } from 'react';\n\nimport { Button, type ButtonProps } from '../button/Button';\nimport type { IconComponent } from '../icon/Icon';\nimport { Tooltip } from '../tooltip/Tooltip';\nimport { cx } from '../utils/cx';\nimport styles from './IconButton.module.css';\n\nexport interface IconButtonProps extends Omit<\n ButtonProps,\n 'icon' | 'iconEnd' | 'children' | 'fullWidth' | 'aria-label'\n> {\n icon: IconComponent;\n /** Accessible label, also shown as a tooltip. */\n label: string;\n /** Shows the label in a tooltip on hover and focus. Defaults to true. */\n showTooltip?: boolean;\n className?: string;\n style?: CSSProperties;\n}\n\n/** A square button with only an icon. Its label is announced and shown as a tooltip. */\nexport function IconButton({\n icon,\n label,\n
|
|
1
|
+
{"version":3,"file":"IconButton.js","names":["CSSProperties","Button","ButtonProps","IconComponent","Tooltip","cx","styles","IconButtonProps","Omit","icon","label","showTooltip","className","style","IconButton","t0","$","_c","props","t1","t2","t3","appearance","size","undefined","t4","sm","t5","iconButton","t6","button","t7","_c","styles"],"sources":["../../src/icon-button/IconButton.tsx"],"sourcesContent":["import type { CSSProperties } from 'react';\n\nimport { Button, type ButtonProps } from '../button/Button';\nimport type { IconComponent } from '../icon/Icon';\nimport { Tooltip } from '../tooltip/Tooltip';\nimport { cx } from '../utils/cx';\nimport styles from './IconButton.module.css';\n\nexport interface IconButtonProps extends Omit<\n ButtonProps,\n 'icon' | 'iconEnd' | 'children' | 'fullWidth' | 'aria-label'\n> {\n icon: IconComponent;\n /** Accessible label, also shown as a tooltip. */\n label: string;\n /** Shows the label in a tooltip on hover and focus. Defaults to true. */\n showTooltip?: boolean;\n className?: string;\n style?: CSSProperties;\n}\n\n/** A square button with only an icon. Its label is announced and shown as a tooltip. */\nexport function IconButton({\n icon,\n label,\n appearance = 'ghost',\n size = 'md',\n showTooltip = true,\n className,\n ...props\n}: IconButtonProps) {\n const button = (\n <Button\n {...props}\n appearance={appearance}\n size={size}\n icon={icon}\n aria-label={label}\n className={cx(\n 'panneau-icon-button',\n styles.iconButton,\n size === 'sm' && styles.sm,\n className,\n )}\n />\n );\n if (!showTooltip) {\n return button;\n }\n return <Tooltip content={label}>{button}</Tooltip>;\n}\n"],"mappings":";;;;;;;;AAsBA,SAAOc,WAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAL;CAAA,IAAAH;CAAA,IAAAC;CAAA,IAAAQ;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAL,EAAA,OAAAD,IAAA;EAAoB,CAAA,CAAAN,MAAAC,OAAAY,YAAAH,IAAAI,MAAAH,IAAAT,aAAAU,IAAAT,WAAA,GAAAM,SAAAH;EAQTC,EAAA,KAAAD;EAAAC,EAAA,KAAAJ;EAAAI,EAAA,KAAAP;EAAAO,EAAA,KAAAN;EAAAM,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,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EAAAM,EAAA,MAAAe;CAAA,OAAAA,KAAAf,EAAA;CAAA,OAA3Ce;AAA2C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./IconButton.css";
|
|
2
2
|
//#region src/icon-button/IconButton.module.css
|
|
3
|
-
var iconButton = "panneau-
|
|
4
|
-
var sm = "panneau-
|
|
3
|
+
var iconButton = "panneau-icon-button";
|
|
4
|
+
var sm = "panneau-icon-button-sm";
|
|
5
5
|
var IconButton_module_default = {
|
|
6
6
|
iconButton,
|
|
7
7
|
sm
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,63 @@
|
|
|
1
|
-
export { Alert, type AlertProps, type AlertTone } from './alert/Alert';
|
|
2
|
-
export { Badge, type BadgeProps, type BadgeTone } from './badge/Badge';
|
|
3
|
-
export { Button, type ButtonProps, type ButtonVariant } from './button/Button';
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export { type
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export { type
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export { type
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
1
|
+
export { Alert, type AlertAppearance, type AlertProps, type AlertTone, type AlertVariants, } from './alert/Alert.js';
|
|
2
|
+
export { Badge, type BadgeAppearance, type BadgeProps, type BadgeTone, type BadgeVariants, } from './badge/Badge.js';
|
|
3
|
+
export { Button, type ButtonAppearance, type ButtonProps, type ButtonStyleProps, type ButtonVariant, type ButtonVariants, } from './button/Button.js';
|
|
4
|
+
export { LinkButton, type LinkButtonProps } from './button/LinkButton.js';
|
|
5
|
+
export { Card, type CardProps } from './card/Card.js';
|
|
6
|
+
export { CommandPalette, type CommandPaletteProps } from './command-palette/CommandPalette.js';
|
|
7
|
+
export { type CommandPaletteGroup, type CommandPaletteItem, matchCommands, normalizeSearch, } from './command-palette/match.js';
|
|
8
|
+
export { isApplePlatform, useCommandShortcut } from './command-palette/useCommandShortcut.js';
|
|
9
|
+
export { Container, type ContainerProps } from './container/Container.js';
|
|
10
|
+
export { Divider, type DividerProps } from './divider/Divider.js';
|
|
11
|
+
export { Grid, GridItem, type GridItemProps, type GridProps } from './grid/Grid.js';
|
|
12
|
+
export { Heading, type HeadingLevel, type HeadingProps, type HeadingSize } from './heading/Heading.js';
|
|
13
|
+
export { Checkbox, type CheckboxProps } from './checkbox/Checkbox.js';
|
|
14
|
+
export { type ChoiceChromeProps } from './checkbox/ChoiceChrome.js';
|
|
15
|
+
export { ComboBox, type ComboBoxItem, type ComboBoxProps } from './combo-box/ComboBox.js';
|
|
16
|
+
export { DatePicker, type DatePickerProps } from './date-picker/DatePicker.js';
|
|
17
|
+
export { Dialog, type DialogProps, DialogTrigger } from './dialog/Dialog.js';
|
|
18
|
+
export { Disclosure, type DisclosureProps } from './disclosure/Disclosure.js';
|
|
19
|
+
export { type FieldChromeProps } from './field/FieldParts.js';
|
|
20
|
+
export { Fieldset, type FieldsetProps } from './field/Fieldset.js';
|
|
21
|
+
export { Icon, type IconComponent, type IconProps, type IconSize } from './icon/Icon.js';
|
|
22
|
+
export { type NamedIconLoader, getNamedIcon, loadNamedIcon } from './icon/namedIcons.js';
|
|
23
|
+
export { IconButton, type IconButtonProps } from './icon-button/IconButton.js';
|
|
24
|
+
export { usePanneauIntl } from './intl/usePanneauIntl.js';
|
|
25
|
+
export { Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, MenuTrigger, } from './menu/Menu.js';
|
|
26
|
+
export { NumberInput, type NumberInputProps } from './number-input/NumberInput.js';
|
|
27
|
+
export { Slider, type SliderProps } from './slider/Slider.js';
|
|
28
|
+
export { type TagSuggestion, TagsInput, type TagsInputProps } from './tags-input/TagsInput.js';
|
|
29
|
+
export { PillTrigger, type PillTriggerProps } from './pill-trigger/PillTrigger.js';
|
|
30
|
+
export { Popover, type PopoverProps, PopoverTrigger } from './popover/Popover.js';
|
|
31
|
+
export { RadioGroup, type RadioGroupAppearance, type RadioGroupOption, type RadioGroupProps, } from './radio-group/RadioGroup.js';
|
|
32
|
+
export { PanneauRoot, type PanneauRootProps, usePortalContainer } from './root/PanneauRoot.js';
|
|
33
|
+
export { ThemeScope, type ThemeScopeProps } from './root/ThemeScope.js';
|
|
34
|
+
export { SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, } from './segmented-control/SegmentedControl.js';
|
|
35
|
+
export { type MultipleSelectProps, type OptionValue, Select, type SelectBaseProps, type SelectOption, type SelectProps, type SingleSelectProps, } from './select/Select.js';
|
|
36
|
+
export { Inline, type InlineProps } from './inline/Inline.js';
|
|
37
|
+
export { BREAKPOINTS, type Breakpoint, type Justification, type Responsive, type Space, } from './layout/responsive.js';
|
|
38
|
+
export { Prose, type ProseProps } from './prose/Prose.js';
|
|
39
|
+
export { LoadingRegion, type LoadingRegionProps } from './skeleton/LoadingRegion.js';
|
|
40
|
+
export { Skeleton, type SkeletonProps } from './skeleton/Skeleton.js';
|
|
41
|
+
export { Spinner, type SpinnerProps } from './spinner/Spinner.js';
|
|
42
|
+
export { Stack, type StackProps } from './stack/Stack.js';
|
|
43
|
+
export { Switch, type SwitchProps } from './switch/Switch.js';
|
|
44
|
+
export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, } from './tabs/Tabs.js';
|
|
45
|
+
export { Text, type TextFamily, type TextProps, type TextSize } from './text/Text.js';
|
|
46
|
+
export { TextArea, type TextAreaProps } from './text-area/TextArea.js';
|
|
47
|
+
export { TextInput, type TextInputProps } from './text-input/TextInput.js';
|
|
48
|
+
export { bootstrapTheme, bootstrapTone } from './theme/bootstrap.js';
|
|
49
|
+
export { CHART_CATEGORICAL_COUNT, CHART_SEQUENTIAL_COUNT, chartColors } from './theme/chartColors.js';
|
|
50
|
+
export { type ThemeContrastCheck, type ThemeReport, checkTheme } from './theme/checkTheme.js';
|
|
51
|
+
export { type ColorDifferenceCheck, type ColorVisionDeficiency, checkColorDifferences, } from './theme/colorVision.js';
|
|
52
|
+
export { type Rgb } from './theme/color.js';
|
|
53
|
+
export { type ComponentTokens, defineComponentTokens } from './theme/componentTokens.js';
|
|
54
|
+
export { type ComponentTokenName, componentTokens } from './theme/components.js';
|
|
55
|
+
export { type PaletteTokenName, type PanneauTokens, type ThemeDefinition, type ThemeTokens, type TokenName, defineTheme, findUnknownTokens, mergeThemes, } from './theme/defineTheme.js';
|
|
56
|
+
export { SEMANTIC_TOKENS, type SemanticTokenName } from './theme/semanticTokens.js';
|
|
57
|
+
export { type ThemeFont, type ThemeFontFace, type ThemeFontStylesheet } from './theme/fonts.js';
|
|
58
|
+
export { type ColorScheme, type Density, type Theme } from './theme/theme.js';
|
|
59
|
+
export { BUILT_IN_TONES, type PanneauTones, type Tone, type ToneInput, type ToneSurfaces, type ToneValues, deriveTone, toneClassName, } from './theme/tones.js';
|
|
60
|
+
export { TimeInput, type TimeInputProps } from './time-input/TimeInput.js';
|
|
61
|
+
export { type ToastContent, type ToastOptions, type ToastTone, type Toasts, useToast, } from './toast/Toast.js';
|
|
62
|
+
export { Tooltip, type TooltipProps } from './tooltip/Tooltip.js';
|
|
33
63
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK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AAC3E,OAAO,EACH,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,UAAU,EACV,aAAa,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EACH,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,MAAM,EACX,QAAQ,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,30 +1,58 @@
|
|
|
1
1
|
import { Icon } from "./icon/Icon.js";
|
|
2
2
|
import { usePanneauIntl } from "./intl/usePanneauIntl.js";
|
|
3
3
|
import { Spinner } from "./spinner/Spinner.js";
|
|
4
|
+
import { BUILT_IN_TONES, deriveTone, toneClassName } from "./theme/tones.js";
|
|
4
5
|
import { Button } from "./button/Button.js";
|
|
6
|
+
import { getNamedIcon, loadNamedIcon } from "./icon/namedIcons.js";
|
|
5
7
|
import { useToast } from "./toast/Toast.js";
|
|
6
8
|
import { PanneauRoot, usePortalContainer } from "./root/PanneauRoot.js";
|
|
7
9
|
import { Tooltip } from "./tooltip/Tooltip.js";
|
|
8
10
|
import { IconButton } from "./icon-button/IconButton.js";
|
|
9
11
|
import { Alert } from "./alert/Alert.js";
|
|
10
12
|
import { Badge } from "./badge/Badge.js";
|
|
13
|
+
import { LinkButton } from "./button/LinkButton.js";
|
|
11
14
|
import { Card } from "./card/Card.js";
|
|
15
|
+
import { matchCommands, normalizeSearch } from "./command-palette/match.js";
|
|
16
|
+
import { CommandPalette } from "./command-palette/CommandPalette.js";
|
|
17
|
+
import { isApplePlatform, useCommandShortcut } from "./command-palette/useCommandShortcut.js";
|
|
18
|
+
import { Container } from "./container/Container.js";
|
|
19
|
+
import { Divider } from "./divider/Divider.js";
|
|
20
|
+
import { BREAKPOINTS } from "./layout/responsive.js";
|
|
21
|
+
import { Grid, GridItem } from "./grid/Grid.js";
|
|
22
|
+
import { Heading } from "./heading/Heading.js";
|
|
12
23
|
import { Checkbox } from "./checkbox/Checkbox.js";
|
|
13
24
|
import { Popover, PopoverTrigger } from "./popover/Popover.js";
|
|
14
25
|
import { ComboBox } from "./combo-box/ComboBox.js";
|
|
26
|
+
import { TimeInput } from "./time-input/TimeInput.js";
|
|
15
27
|
import { DatePicker } from "./date-picker/DatePicker.js";
|
|
16
28
|
import { Dialog, DialogTrigger } from "./dialog/Dialog.js";
|
|
17
29
|
import { Disclosure } from "./disclosure/Disclosure.js";
|
|
18
30
|
import { Fieldset } from "./field/Fieldset.js";
|
|
19
|
-
import {
|
|
20
|
-
import { Menu, MenuItem, MenuSeparator, MenuTrigger } from "./menu/Menu.js";
|
|
31
|
+
import { Menu, MenuItem, MenuSection, MenuSeparator, MenuTrigger } from "./menu/Menu.js";
|
|
21
32
|
import { NumberInput } from "./number-input/NumberInput.js";
|
|
33
|
+
import { Slider } from "./slider/Slider.js";
|
|
34
|
+
import { TagsInput } from "./tags-input/TagsInput.js";
|
|
35
|
+
import { PillTrigger } from "./pill-trigger/PillTrigger.js";
|
|
22
36
|
import { RadioGroup } from "./radio-group/RadioGroup.js";
|
|
37
|
+
import { ThemeScope } from "./root/ThemeScope.js";
|
|
38
|
+
import { SegmentedControl } from "./segmented-control/SegmentedControl.js";
|
|
23
39
|
import { Select } from "./select/Select.js";
|
|
40
|
+
import { Inline } from "./inline/Inline.js";
|
|
41
|
+
import { Prose } from "./prose/Prose.js";
|
|
42
|
+
import { LoadingRegion } from "./skeleton/LoadingRegion.js";
|
|
43
|
+
import { Skeleton } from "./skeleton/Skeleton.js";
|
|
44
|
+
import { Stack } from "./stack/Stack.js";
|
|
24
45
|
import { Switch } from "./switch/Switch.js";
|
|
25
46
|
import { Tab, TabList, TabPanel, Tabs } from "./tabs/Tabs.js";
|
|
47
|
+
import { Text } from "./text/Text.js";
|
|
26
48
|
import { TextArea } from "./text-area/TextArea.js";
|
|
27
49
|
import { TextInput } from "./text-input/TextInput.js";
|
|
28
|
-
import { bootstrapTheme } from "./theme/bootstrap.js";
|
|
29
|
-
import {
|
|
30
|
-
|
|
50
|
+
import { bootstrapTheme, bootstrapTone } from "./theme/bootstrap.js";
|
|
51
|
+
import { CHART_CATEGORICAL_COUNT, CHART_SEQUENTIAL_COUNT, chartColors } from "./theme/chartColors.js";
|
|
52
|
+
import { checkColorDifferences } from "./theme/colorVision.js";
|
|
53
|
+
import { checkTheme } from "./theme/checkTheme.js";
|
|
54
|
+
import { defineComponentTokens } from "./theme/componentTokens.js";
|
|
55
|
+
import { componentTokens } from "./theme/components.js";
|
|
56
|
+
import { SEMANTIC_TOKENS } from "./theme/semanticTokens.js";
|
|
57
|
+
import { defineTheme, findUnknownTokens, mergeThemes } from "./theme/defineTheme.js";
|
|
58
|
+
export { Alert, BREAKPOINTS, BUILT_IN_TONES, Badge, Button, CHART_CATEGORICAL_COUNT, CHART_SEQUENTIAL_COUNT, Card, Checkbox, ComboBox, CommandPalette, Container, DatePicker, Dialog, DialogTrigger, Disclosure, Divider, Fieldset, Grid, GridItem, Heading, Icon, IconButton, Inline, LinkButton, LoadingRegion, Menu, MenuItem, MenuSection, MenuSeparator, MenuTrigger, NumberInput, PanneauRoot, PillTrigger, Popover, PopoverTrigger, Prose, RadioGroup, SEMANTIC_TOKENS, SegmentedControl, Select, Skeleton, Slider, Spinner, Stack, Switch, Tab, TabList, TabPanel, Tabs, TagsInput, Text, TextArea, TextInput, ThemeScope, TimeInput, Tooltip, bootstrapTheme, bootstrapTone, chartColors, checkColorDifferences, checkTheme, componentTokens, defineComponentTokens, defineTheme, deriveTone, findUnknownTokens, getNamedIcon, isApplePlatform, loadNamedIcon, matchCommands, mergeThemes, normalizeSearch, toneClassName, useCommandShortcut, usePanneauIntl, usePortalContainer, useToast };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* A horizontal row that wraps: each prop can change at the breakpoints of the nearest container. */
|
|
2
|
+
|
|
3
|
+
.panneau-inline {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-wrap: wrap;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.panneau-inline-nowrap {
|
|
10
|
+
flex-wrap: nowrap;
|
|
11
|
+
}
|
|
12
|
+
/* Responsive values are set inline; children reset them so that they aren't inherited. */
|
|
13
|
+
.panneau-inline > * {
|
|
14
|
+
--_panneau-inline-gap-base: initial;
|
|
15
|
+
--_panneau-inline-gap-sm: initial;
|
|
16
|
+
--_panneau-inline-gap-md: initial;
|
|
17
|
+
--_panneau-inline-gap-lg: initial;
|
|
18
|
+
--_panneau-inline-gap-xl: initial;
|
|
19
|
+
--_panneau-inline-align-base: initial;
|
|
20
|
+
--_panneau-inline-align-sm: initial;
|
|
21
|
+
--_panneau-inline-align-md: initial;
|
|
22
|
+
--_panneau-inline-align-lg: initial;
|
|
23
|
+
--_panneau-inline-align-xl: initial;
|
|
24
|
+
--_panneau-inline-justify-base: initial;
|
|
25
|
+
--_panneau-inline-justify-sm: initial;
|
|
26
|
+
--_panneau-inline-justify-md: initial;
|
|
27
|
+
--_panneau-inline-justify-lg: initial;
|
|
28
|
+
--_panneau-inline-justify-xl: initial;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.panneau-inline {
|
|
32
|
+
gap: var(--_panneau-inline-gap-base, var(--panneau-inline-gap, var(--panneau-space-2)));
|
|
33
|
+
align-items: var(--_panneau-inline-align-base, center);
|
|
34
|
+
justify-content: var(--_panneau-inline-justify-base, start);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@container (min-width: 40rem) {
|
|
38
|
+
.panneau-inline {
|
|
39
|
+
gap: var(
|
|
40
|
+
--_panneau-inline-gap-sm,
|
|
41
|
+
var(--_panneau-inline-gap-base, var(--panneau-inline-gap, var(--panneau-space-2)))
|
|
42
|
+
);
|
|
43
|
+
align-items: var(--_panneau-inline-align-sm, var(--_panneau-inline-align-base, center));
|
|
44
|
+
justify-content: var(
|
|
45
|
+
--_panneau-inline-justify-sm,
|
|
46
|
+
var(--_panneau-inline-justify-base, start)
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@container (min-width: 48rem) {
|
|
52
|
+
.panneau-inline {
|
|
53
|
+
gap: var(
|
|
54
|
+
--_panneau-inline-gap-md,
|
|
55
|
+
var(
|
|
56
|
+
--_panneau-inline-gap-sm,
|
|
57
|
+
var(--_panneau-inline-gap-base, var(--panneau-inline-gap, var(--panneau-space-2)))
|
|
58
|
+
)
|
|
59
|
+
);
|
|
60
|
+
align-items: var(
|
|
61
|
+
--_panneau-inline-align-md,
|
|
62
|
+
var(--_panneau-inline-align-sm, var(--_panneau-inline-align-base, center))
|
|
63
|
+
);
|
|
64
|
+
justify-content: var(
|
|
65
|
+
--_panneau-inline-justify-md,
|
|
66
|
+
var(--_panneau-inline-justify-sm, var(--_panneau-inline-justify-base, start))
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@container (min-width: 64rem) {
|
|
72
|
+
.panneau-inline {
|
|
73
|
+
gap: var(
|
|
74
|
+
--_panneau-inline-gap-lg,
|
|
75
|
+
var(
|
|
76
|
+
--_panneau-inline-gap-md,
|
|
77
|
+
var(
|
|
78
|
+
--_panneau-inline-gap-sm,
|
|
79
|
+
var(
|
|
80
|
+
--_panneau-inline-gap-base,
|
|
81
|
+
var(--panneau-inline-gap, var(--panneau-space-2))
|
|
82
|
+
)
|
|
83
|
+
)
|
|
84
|
+
)
|
|
85
|
+
);
|
|
86
|
+
align-items: var(
|
|
87
|
+
--_panneau-inline-align-lg,
|
|
88
|
+
var(
|
|
89
|
+
--_panneau-inline-align-md,
|
|
90
|
+
var(--_panneau-inline-align-sm, var(--_panneau-inline-align-base, center))
|
|
91
|
+
)
|
|
92
|
+
);
|
|
93
|
+
justify-content: var(
|
|
94
|
+
--_panneau-inline-justify-lg,
|
|
95
|
+
var(
|
|
96
|
+
--_panneau-inline-justify-md,
|
|
97
|
+
var(--_panneau-inline-justify-sm, var(--_panneau-inline-justify-base, start))
|
|
98
|
+
)
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@container (min-width: 80rem) {
|
|
104
|
+
.panneau-inline {
|
|
105
|
+
gap: var(
|
|
106
|
+
--_panneau-inline-gap-xl,
|
|
107
|
+
var(
|
|
108
|
+
--_panneau-inline-gap-lg,
|
|
109
|
+
var(
|
|
110
|
+
--_panneau-inline-gap-md,
|
|
111
|
+
var(
|
|
112
|
+
--_panneau-inline-gap-sm,
|
|
113
|
+
var(
|
|
114
|
+
--_panneau-inline-gap-base,
|
|
115
|
+
var(--panneau-inline-gap, var(--panneau-space-2))
|
|
116
|
+
)
|
|
117
|
+
)
|
|
118
|
+
)
|
|
119
|
+
)
|
|
120
|
+
);
|
|
121
|
+
align-items: var(
|
|
122
|
+
--_panneau-inline-align-xl,
|
|
123
|
+
var(
|
|
124
|
+
--_panneau-inline-align-lg,
|
|
125
|
+
var(
|
|
126
|
+
--_panneau-inline-align-md,
|
|
127
|
+
var(--_panneau-inline-align-sm, var(--_panneau-inline-align-base, center))
|
|
128
|
+
)
|
|
129
|
+
)
|
|
130
|
+
);
|
|
131
|
+
justify-content: var(
|
|
132
|
+
--_panneau-inline-justify-xl,
|
|
133
|
+
var(
|
|
134
|
+
--_panneau-inline-justify-lg,
|
|
135
|
+
var(
|
|
136
|
+
--_panneau-inline-justify-md,
|
|
137
|
+
var(--_panneau-inline-justify-sm, var(--_panneau-inline-justify-base, start))
|
|
138
|
+
)
|
|
139
|
+
)
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import { type Justification, type Responsive, type Space } from '../layout/responsive.js';
|
|
3
|
+
export interface InlineProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
+
/** Element to render. Defaults to `div`. */
|
|
5
|
+
as?: 'div' | 'section' | 'header' | 'footer' | 'nav' | 'ul' | 'ol' | 'span';
|
|
6
|
+
/** Space between items, from the space scale. Defaults to the `--panneau-inline-gap` token. */
|
|
7
|
+
gap?: Responsive<Space>;
|
|
8
|
+
/** Vertical alignment of the items. Defaults to `center`. */
|
|
9
|
+
align?: Responsive<'start' | 'center' | 'end' | 'stretch' | 'baseline'>;
|
|
10
|
+
/** Horizontal distribution of the items. Defaults to `start`. */
|
|
11
|
+
justify?: Responsive<Justification>;
|
|
12
|
+
/** Items wrap to the next line when they don't fit. Defaults to `true`. */
|
|
13
|
+
wrap?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** Items side by side, wrapping when they don't fit, like Bootstrap's `.hstack`. */
|
|
16
|
+
export declare function Inline({ as: Element, gap, align, justify, wrap, className, style, ...props }: InlineProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=Inline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../src/inline/Inline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,KAAK,EAKb,MAAM,sBAAsB,CAAC;AAI9B,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC5D,4CAA4C;IAC5C,EAAE,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC5E,+FAA+F;IAC/F,GAAG,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IACxB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;IACxE,iEAAiE;IACjE,OAAO,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;IACpC,2EAA2E;IAC3E,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,oFAAoF;AACpF,wBAAgB,MAAM,CAAC,EACnB,EAAE,EAAE,OAAe,EACnB,GAAG,EACH,KAAK,EACL,OAAO,EACP,IAAW,EACX,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACX,EAAE,WAAW,+BAeb"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { cx } from "../utils/cx.js";
|
|
2
|
+
import { justification, responsiveVariables, space, withVariables } from "../layout/responsive.js";
|
|
3
|
+
import Inline_module_default from "./Inline.module.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/inline/Inline.tsx
|
|
7
|
+
/** Items side by side, wrapping when they don't fit, like Bootstrap's `.hstack`. */
|
|
8
|
+
function Inline(t0) {
|
|
9
|
+
const $ = c(22);
|
|
10
|
+
let align;
|
|
11
|
+
let className;
|
|
12
|
+
let gap;
|
|
13
|
+
let justify;
|
|
14
|
+
let props;
|
|
15
|
+
let style;
|
|
16
|
+
let t1;
|
|
17
|
+
let t2;
|
|
18
|
+
if ($[0] !== t0) {
|
|
19
|
+
({as: t1, gap, align, justify, wrap: t2, className, style, ...props} = t0);
|
|
20
|
+
$[0] = t0;
|
|
21
|
+
$[1] = align;
|
|
22
|
+
$[2] = className;
|
|
23
|
+
$[3] = gap;
|
|
24
|
+
$[4] = justify;
|
|
25
|
+
$[5] = props;
|
|
26
|
+
$[6] = style;
|
|
27
|
+
$[7] = t1;
|
|
28
|
+
$[8] = t2;
|
|
29
|
+
} else {
|
|
30
|
+
align = $[1];
|
|
31
|
+
className = $[2];
|
|
32
|
+
gap = $[3];
|
|
33
|
+
justify = $[4];
|
|
34
|
+
props = $[5];
|
|
35
|
+
style = $[6];
|
|
36
|
+
t1 = $[7];
|
|
37
|
+
t2 = $[8];
|
|
38
|
+
}
|
|
39
|
+
const Element = t1 === void 0 ? "div" : t1;
|
|
40
|
+
const t3 = !(t2 === void 0 ? true : t2) && Inline_module_default.nowrap;
|
|
41
|
+
let t4;
|
|
42
|
+
if ($[9] !== className || $[10] !== t3) {
|
|
43
|
+
t4 = cx("panneau-inline", Inline_module_default.inline, t3, className);
|
|
44
|
+
$[9] = className;
|
|
45
|
+
$[10] = t3;
|
|
46
|
+
$[11] = t4;
|
|
47
|
+
} else t4 = $[11];
|
|
48
|
+
let t5;
|
|
49
|
+
if ($[12] !== align || $[13] !== gap || $[14] !== justify || $[15] !== style) {
|
|
50
|
+
t5 = withVariables([
|
|
51
|
+
responsiveVariables("inline", "gap", gap, space),
|
|
52
|
+
responsiveVariables("inline", "align", align, String),
|
|
53
|
+
responsiveVariables("inline", "justify", justify, justification)
|
|
54
|
+
], style);
|
|
55
|
+
$[12] = align;
|
|
56
|
+
$[13] = gap;
|
|
57
|
+
$[14] = justify;
|
|
58
|
+
$[15] = style;
|
|
59
|
+
$[16] = t5;
|
|
60
|
+
} else t5 = $[16];
|
|
61
|
+
let t6;
|
|
62
|
+
if ($[17] !== Element || $[18] !== props || $[19] !== t4 || $[20] !== t5) {
|
|
63
|
+
t6 = /* @__PURE__ */ jsx(Element, {
|
|
64
|
+
...props,
|
|
65
|
+
className: t4,
|
|
66
|
+
style: t5
|
|
67
|
+
});
|
|
68
|
+
$[17] = Element;
|
|
69
|
+
$[18] = props;
|
|
70
|
+
$[19] = t4;
|
|
71
|
+
$[20] = t5;
|
|
72
|
+
$[21] = t6;
|
|
73
|
+
} else t6 = $[21];
|
|
74
|
+
return t6;
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { Inline };
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=Inline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.js","names":["HTMLAttributes","Justification","Responsive","Space","justification","responsiveVariables","space","withVariables","cx","styles","InlineProps","HTMLElement","as","gap","align","justify","wrap","Inline","t0","$","_c","className","props","style","t1","t2","Element","undefined","t3","nowrap","t4","inline","t5","String","t6","_c","styles"],"sources":["../../src/inline/Inline.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\n\nimport {\n type Justification,\n type Responsive,\n type Space,\n justification,\n responsiveVariables,\n space,\n withVariables,\n} from '../layout/responsive';\nimport { cx } from '../utils/cx';\nimport styles from './Inline.module.css';\n\nexport interface InlineProps extends HTMLAttributes<HTMLElement> {\n /** Element to render. Defaults to `div`. */\n as?: 'div' | 'section' | 'header' | 'footer' | 'nav' | 'ul' | 'ol' | 'span';\n /** Space between items, from the space scale. Defaults to the `--panneau-inline-gap` token. */\n gap?: Responsive<Space>;\n /** Vertical alignment of the items. Defaults to `center`. */\n align?: Responsive<'start' | 'center' | 'end' | 'stretch' | 'baseline'>;\n /** Horizontal distribution of the items. Defaults to `start`. */\n justify?: Responsive<Justification>;\n /** Items wrap to the next line when they don't fit. Defaults to `true`. */\n wrap?: boolean;\n}\n\n/** Items side by side, wrapping when they don't fit, like Bootstrap's `.hstack`. */\nexport function Inline({\n as: Element = 'div',\n gap,\n align,\n justify,\n wrap = true,\n className,\n style,\n ...props\n}: InlineProps) {\n return (\n <Element\n {...props}\n className={cx('panneau-inline', styles.inline, !wrap && styles.nowrap, className)}\n style={withVariables(\n [\n responsiveVariables('inline', 'gap', gap, space),\n responsiveVariables('inline', 'align', align, String),\n responsiveVariables('inline', 'justify', justify, justification),\n ],\n style,\n )}\n />\n );\n}\n"],"mappings":";;;;;;;AA4BA,SAAOiB,OAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAN;CAAA,IAAAO;CAAA,IAAAR;CAAA,IAAAE;CAAA,IAAAO;CAAA,IAAAC;CAAA,IAAAC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AAAa;CAAA,OAAAA,KAAAb,EAAA;CAAA,IAAAe;CAAA,IAAAf,EAAA,QAAAO,WAAAP,EAAA,QAAAG,SAAAH,EAAA,QAAAW,MAAAX,EAAA,QAAAa,IAAA;EAVLE,KAAA,oBAAC,SAAD;GAAQ,GACAZ;GACO,WAAAQ;GACJ,OAAAE;EAON,CAAA;EACHb,EAAA,MAAAO;EAAAP,EAAA,MAAAG;EAAAH,EAAA,MAAAW;EAAAX,EAAA,MAAAa;EAAAb,EAAA,MAAAe;CAAA,OAAAA,KAAAf,EAAA;CAAA,OAXFe;AAWE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./Inline.css";
|
|
2
|
+
//#region src/inline/Inline.module.css
|
|
3
|
+
var inline = "panneau-inline";
|
|
4
|
+
var nowrap = "panneau-inline-nowrap";
|
|
5
|
+
var Inline_module_default = {
|
|
6
|
+
inline,
|
|
7
|
+
nowrap
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Inline_module_default as default, inline, nowrap };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=Inline.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.module.js","names":[],"sources":["../../src/inline/Inline.module.css"],"sourcesContent":["/* A horizontal row that wraps: each prop can change at the breakpoints of the nearest container. */\n\n.inline {\n display: flex;\n flex-wrap: wrap;\n min-width: 0;\n}\n\n.nowrap {\n flex-wrap: nowrap;\n}\n/* Responsive values are set inline; children reset them so that they aren't inherited. */\n.inline > * {\n --_panneau-inline-gap-base: initial;\n --_panneau-inline-gap-sm: initial;\n --_panneau-inline-gap-md: initial;\n --_panneau-inline-gap-lg: initial;\n --_panneau-inline-gap-xl: initial;\n --_panneau-inline-align-base: initial;\n --_panneau-inline-align-sm: initial;\n --_panneau-inline-align-md: initial;\n --_panneau-inline-align-lg: initial;\n --_panneau-inline-align-xl: initial;\n --_panneau-inline-justify-base: initial;\n --_panneau-inline-justify-sm: initial;\n --_panneau-inline-justify-md: initial;\n --_panneau-inline-justify-lg: initial;\n --_panneau-inline-justify-xl: initial;\n}\n\n.inline {\n gap: var(--_panneau-inline-gap-base, var(--panneau-inline-gap, var(--panneau-space-2)));\n align-items: var(--_panneau-inline-align-base, center);\n justify-content: var(--_panneau-inline-justify-base, start);\n}\n\n@container (min-width: 40rem) {\n .inline {\n gap: var(\n --_panneau-inline-gap-sm,\n var(--_panneau-inline-gap-base, var(--panneau-inline-gap, var(--panneau-space-2)))\n );\n align-items: var(--_panneau-inline-align-sm, var(--_panneau-inline-align-base, center));\n justify-content: var(\n --_panneau-inline-justify-sm,\n var(--_panneau-inline-justify-base, start)\n );\n }\n}\n\n@container (min-width: 48rem) {\n .inline {\n gap: var(\n --_panneau-inline-gap-md,\n var(\n --_panneau-inline-gap-sm,\n var(--_panneau-inline-gap-base, var(--panneau-inline-gap, var(--panneau-space-2)))\n )\n );\n align-items: var(\n --_panneau-inline-align-md,\n var(--_panneau-inline-align-sm, var(--_panneau-inline-align-base, center))\n );\n justify-content: var(\n --_panneau-inline-justify-md,\n var(--_panneau-inline-justify-sm, var(--_panneau-inline-justify-base, start))\n );\n }\n}\n\n@container (min-width: 64rem) {\n .inline {\n gap: var(\n --_panneau-inline-gap-lg,\n var(\n --_panneau-inline-gap-md,\n var(\n --_panneau-inline-gap-sm,\n var(\n --_panneau-inline-gap-base,\n var(--panneau-inline-gap, var(--panneau-space-2))\n )\n )\n )\n );\n align-items: var(\n --_panneau-inline-align-lg,\n var(\n --_panneau-inline-align-md,\n var(--_panneau-inline-align-sm, var(--_panneau-inline-align-base, center))\n )\n );\n justify-content: var(\n --_panneau-inline-justify-lg,\n var(\n --_panneau-inline-justify-md,\n var(--_panneau-inline-justify-sm, var(--_panneau-inline-justify-base, start))\n )\n );\n }\n}\n\n@container (min-width: 80rem) {\n .inline {\n gap: var(\n --_panneau-inline-gap-xl,\n var(\n --_panneau-inline-gap-lg,\n var(\n --_panneau-inline-gap-md,\n var(\n --_panneau-inline-gap-sm,\n var(\n --_panneau-inline-gap-base,\n var(--panneau-inline-gap, var(--panneau-space-2))\n )\n )\n )\n )\n );\n align-items: var(\n --_panneau-inline-align-xl,\n var(\n --_panneau-inline-align-lg,\n var(\n --_panneau-inline-align-md,\n var(--_panneau-inline-align-sm, var(--_panneau-inline-align-base, center))\n )\n )\n );\n justify-content: var(\n --_panneau-inline-justify-xl,\n var(\n --_panneau-inline-justify-lg,\n var(\n --_panneau-inline-justify-md,\n var(--_panneau-inline-justify-sm, var(--_panneau-inline-justify-base, start))\n )\n )\n );\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/inline/tokens.ts"],"names":[],"mappings":"AAEA,wBAAwB;AACxB,eAAO,MAAM,YAAY,8DAGvB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineComponentTokens } from "../theme/componentTokens.js";
|
|
2
|
+
//#region src/inline/tokens.ts
|
|
3
|
+
/** Tokens of Inline. */
|
|
4
|
+
var inlineTokens = defineComponentTokens("inline", {
|
|
5
|
+
/** Space between items, in both directions, when the `gap` prop is not set. */
|
|
6
|
+
gap: "var(--panneau-space-2)" });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { inlineTokens };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","names":["defineComponentTokens","inlineTokens","gap"],"sources":["../../src/inline/tokens.ts"],"sourcesContent":["import { defineComponentTokens } from '../theme/componentTokens';\n\n/** Tokens of Inline. */\nexport const inlineTokens = defineComponentTokens('inline', {\n /** Space between items, in both directions, when the `gap` prop is not set. */\n gap: 'var(--panneau-space-2)',\n});\n"],"mappings":";;;AAGA,IAAaC,eAAeD,sBAAsB,UAAU;;AAExDE,KAAK,yBACT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePanneauIntl.js","names":[],"sources":["../../src/intl/usePanneauIntl.ts"],"sourcesContent":["import { use } from 'react';\nimport { IntlContext, type IntlShape, createIntl, createIntlCache } from 'react-intl';\n\nlet fallback: IntlShape | null = null;\n\n/**\n * The react-intl object of the closest `IntlProvider`. Without a provider, an English one with the\n * default messages, so that Panneau components also render outside of an internationalized app.\n */\nexport function usePanneauIntl(): IntlShape {\n const intl = use(IntlContext) as IntlShape | null | undefined;\n if (intl !== null && intl !== undefined) {\n return intl;\n }\n fallback ??= createIntl({ locale: 'en', defaultLocale: 'en', messages: {} }, createIntlCache());\n return fallback;\n}\n"],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"usePanneauIntl.js","names":["use","IntlContext","IntlShape","createIntl","createIntlCache","fallback","usePanneauIntl","intl","undefined","locale","defaultLocale","messages"],"sources":["../../src/intl/usePanneauIntl.ts"],"sourcesContent":["import { use } from 'react';\nimport { IntlContext, type IntlShape, createIntl, createIntlCache } from 'react-intl';\n\nlet fallback: IntlShape | null = null;\n\n/**\n * The react-intl object of the closest `IntlProvider`. Without a provider, an English one with the\n * default messages, so that Panneau components also render outside of an internationalized app.\n */\nexport function usePanneauIntl(): IntlShape {\n const intl = use(IntlContext) as IntlShape | null | undefined;\n if (intl !== null && intl !== undefined) {\n return intl;\n }\n fallback ??= createIntl({ locale: 'en', defaultLocale: 'en', messages: {} }, createIntlCache());\n return fallback;\n}\n"],"mappings":";;;AAGA,IAAIK,WAA6B;;;;;AAMjC,SAAgBC,iBAA4B;CACxC,MAAMC,OAAOP,IAAIC,WAAW;CAC5B,IAAIM,SAAS,QAAQA,SAASC,KAAAA,GAC1B,OAAOD;CAEXF,aAAaF,WAAW;EAAEM,QAAQ;EAAMC,eAAe;EAAMC,UAAU,CAAC;CAAE,GAAGP,gBAAgB,CAAC;CAC9F,OAAOC;AACX"}
|