@panneau/ui 5.0.0-alpha.0 → 5.0.0-alpha.10
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 +380 -7
- 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 +32 -5
- package/dist/button/Button.d.ts.map +1 -1
- package/dist/button/Button.js +136 -17
- 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/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 +23 -0
- package/dist/icon/namedIcons.d.ts.map +1 -0
- package/dist/icon/namedIcons.js +165 -0
- package/dist/icon/namedIcons.js.map +1 -0
- 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 +61 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -4
- 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
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,62 @@
|
|
|
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 { Card, type CardProps } from './card/Card';
|
|
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 { type
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
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 ButtonVariant, type ButtonVariants, } from './button/Button.js';
|
|
4
|
+
export { Card, type CardProps } from './card/Card.js';
|
|
5
|
+
export { CommandPalette, type CommandPaletteProps } from './command-palette/CommandPalette.js';
|
|
6
|
+
export { type CommandPaletteGroup, type CommandPaletteItem, matchCommands, normalizeSearch, } from './command-palette/match.js';
|
|
7
|
+
export { isApplePlatform, useCommandShortcut } from './command-palette/useCommandShortcut.js';
|
|
8
|
+
export { Container, type ContainerProps } from './container/Container.js';
|
|
9
|
+
export { Divider, type DividerProps } from './divider/Divider.js';
|
|
10
|
+
export { Grid, GridItem, type GridItemProps, type GridProps } from './grid/Grid.js';
|
|
11
|
+
export { Heading, type HeadingLevel, type HeadingProps, type HeadingSize } from './heading/Heading.js';
|
|
12
|
+
export { Checkbox, type CheckboxProps } from './checkbox/Checkbox.js';
|
|
13
|
+
export { type ChoiceChromeProps } from './checkbox/ChoiceChrome.js';
|
|
14
|
+
export { ComboBox, type ComboBoxItem, type ComboBoxProps } from './combo-box/ComboBox.js';
|
|
15
|
+
export { DatePicker, type DatePickerProps } from './date-picker/DatePicker.js';
|
|
16
|
+
export { Dialog, type DialogProps, DialogTrigger } from './dialog/Dialog.js';
|
|
17
|
+
export { Disclosure, type DisclosureProps } from './disclosure/Disclosure.js';
|
|
18
|
+
export { type FieldChromeProps } from './field/FieldParts.js';
|
|
19
|
+
export { Fieldset, type FieldsetProps } from './field/Fieldset.js';
|
|
20
|
+
export { Icon, type IconComponent, type IconProps, type IconSize } from './icon/Icon.js';
|
|
21
|
+
export { type NamedIconLoader, getNamedIcon, loadNamedIcon } from './icon/namedIcons.js';
|
|
22
|
+
export { IconButton, type IconButtonProps } from './icon-button/IconButton.js';
|
|
23
|
+
export { usePanneauIntl } from './intl/usePanneauIntl.js';
|
|
24
|
+
export { Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, MenuTrigger, } from './menu/Menu.js';
|
|
25
|
+
export { NumberInput, type NumberInputProps } from './number-input/NumberInput.js';
|
|
26
|
+
export { Slider, type SliderProps } from './slider/Slider.js';
|
|
27
|
+
export { type TagSuggestion, TagsInput, type TagsInputProps } from './tags-input/TagsInput.js';
|
|
28
|
+
export { PillTrigger, type PillTriggerProps } from './pill-trigger/PillTrigger.js';
|
|
29
|
+
export { Popover, type PopoverProps, PopoverTrigger } from './popover/Popover.js';
|
|
30
|
+
export { RadioGroup, type RadioGroupAppearance, type RadioGroupOption, type RadioGroupProps, } from './radio-group/RadioGroup.js';
|
|
31
|
+
export { PanneauRoot, type PanneauRootProps, usePortalContainer } from './root/PanneauRoot.js';
|
|
32
|
+
export { ThemeScope, type ThemeScopeProps } from './root/ThemeScope.js';
|
|
33
|
+
export { SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, } from './segmented-control/SegmentedControl.js';
|
|
34
|
+
export { type MultipleSelectProps, type OptionValue, Select, type SelectBaseProps, type SelectOption, type SelectProps, type SingleSelectProps, } from './select/Select.js';
|
|
35
|
+
export { Inline, type InlineProps } from './inline/Inline.js';
|
|
36
|
+
export { BREAKPOINTS, type Breakpoint, type Justification, type Responsive, type Space, } from './layout/responsive.js';
|
|
37
|
+
export { Prose, type ProseProps } from './prose/Prose.js';
|
|
38
|
+
export { LoadingRegion, type LoadingRegionProps } from './skeleton/LoadingRegion.js';
|
|
39
|
+
export { Skeleton, type SkeletonProps } from './skeleton/Skeleton.js';
|
|
40
|
+
export { Spinner, type SpinnerProps } from './spinner/Spinner.js';
|
|
41
|
+
export { Stack, type StackProps } from './stack/Stack.js';
|
|
42
|
+
export { Switch, type SwitchProps } from './switch/Switch.js';
|
|
43
|
+
export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, } from './tabs/Tabs.js';
|
|
44
|
+
export { Text, type TextFamily, type TextProps, type TextSize } from './text/Text.js';
|
|
45
|
+
export { TextArea, type TextAreaProps } from './text-area/TextArea.js';
|
|
46
|
+
export { TextInput, type TextInputProps } from './text-input/TextInput.js';
|
|
47
|
+
export { bootstrapTheme, bootstrapTone } from './theme/bootstrap.js';
|
|
48
|
+
export { CHART_CATEGORICAL_COUNT, CHART_SEQUENTIAL_COUNT, chartColors } from './theme/chartColors.js';
|
|
49
|
+
export { type ThemeContrastCheck, type ThemeReport, checkTheme } from './theme/checkTheme.js';
|
|
50
|
+
export { type ColorDifferenceCheck, type ColorVisionDeficiency, checkColorDifferences, } from './theme/colorVision.js';
|
|
51
|
+
export { type Rgb } from './theme/color.js';
|
|
52
|
+
export { type ComponentTokens, defineComponentTokens } from './theme/componentTokens.js';
|
|
53
|
+
export { type ComponentTokenName, componentTokens } from './theme/components.js';
|
|
54
|
+
export { type PaletteTokenName, type PanneauTokens, type ThemeDefinition, type ThemeTokens, type TokenName, defineTheme, findUnknownTokens, mergeThemes, } from './theme/defineTheme.js';
|
|
55
|
+
export { SEMANTIC_TOKENS, type SemanticTokenName } from './theme/semanticTokens.js';
|
|
56
|
+
export { type ThemeFont, type ThemeFontFace, type ThemeFontStylesheet } from './theme/fonts.js';
|
|
57
|
+
export { type ColorScheme, type Density, type Theme } from './theme/theme.js';
|
|
58
|
+
export { BUILT_IN_TONES, type PanneauTones, type Tone, type ToneInput, type ToneSurfaces, type ToneValues, deriveTone, toneClassName, } from './theme/tones.js';
|
|
59
|
+
export { TimeInput, type TimeInputProps } from './time-input/TimeInput.js';
|
|
60
|
+
export { type ToastContent, type ToastOptions, type ToastTone, type Toasts, useToast, } from './toast/Toast.js';
|
|
61
|
+
export { Tooltip, type TooltipProps } from './tooltip/Tooltip.js';
|
|
32
62
|
//# 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":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
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";
|
|
@@ -9,21 +11,47 @@ import { IconButton } from "./icon-button/IconButton.js";
|
|
|
9
11
|
import { Alert } from "./alert/Alert.js";
|
|
10
12
|
import { Badge } from "./badge/Badge.js";
|
|
11
13
|
import { Card } from "./card/Card.js";
|
|
14
|
+
import { matchCommands, normalizeSearch } from "./command-palette/match.js";
|
|
15
|
+
import { CommandPalette } from "./command-palette/CommandPalette.js";
|
|
16
|
+
import { isApplePlatform, useCommandShortcut } from "./command-palette/useCommandShortcut.js";
|
|
17
|
+
import { Container } from "./container/Container.js";
|
|
18
|
+
import { Divider } from "./divider/Divider.js";
|
|
19
|
+
import { BREAKPOINTS } from "./layout/responsive.js";
|
|
20
|
+
import { Grid, GridItem } from "./grid/Grid.js";
|
|
21
|
+
import { Heading } from "./heading/Heading.js";
|
|
12
22
|
import { Checkbox } from "./checkbox/Checkbox.js";
|
|
13
23
|
import { Popover, PopoverTrigger } from "./popover/Popover.js";
|
|
14
24
|
import { ComboBox } from "./combo-box/ComboBox.js";
|
|
25
|
+
import { TimeInput } from "./time-input/TimeInput.js";
|
|
15
26
|
import { DatePicker } from "./date-picker/DatePicker.js";
|
|
16
27
|
import { Dialog, DialogTrigger } from "./dialog/Dialog.js";
|
|
17
28
|
import { Disclosure } from "./disclosure/Disclosure.js";
|
|
18
29
|
import { Fieldset } from "./field/Fieldset.js";
|
|
19
|
-
import { Menu, MenuItem, MenuSeparator, MenuTrigger } from "./menu/Menu.js";
|
|
30
|
+
import { Menu, MenuItem, MenuSection, MenuSeparator, MenuTrigger } from "./menu/Menu.js";
|
|
20
31
|
import { NumberInput } from "./number-input/NumberInput.js";
|
|
32
|
+
import { Slider } from "./slider/Slider.js";
|
|
33
|
+
import { TagsInput } from "./tags-input/TagsInput.js";
|
|
34
|
+
import { PillTrigger } from "./pill-trigger/PillTrigger.js";
|
|
21
35
|
import { RadioGroup } from "./radio-group/RadioGroup.js";
|
|
36
|
+
import { ThemeScope } from "./root/ThemeScope.js";
|
|
37
|
+
import { SegmentedControl } from "./segmented-control/SegmentedControl.js";
|
|
22
38
|
import { Select } from "./select/Select.js";
|
|
39
|
+
import { Inline } from "./inline/Inline.js";
|
|
40
|
+
import { Prose } from "./prose/Prose.js";
|
|
41
|
+
import { LoadingRegion } from "./skeleton/LoadingRegion.js";
|
|
42
|
+
import { Skeleton } from "./skeleton/Skeleton.js";
|
|
43
|
+
import { Stack } from "./stack/Stack.js";
|
|
23
44
|
import { Switch } from "./switch/Switch.js";
|
|
24
45
|
import { Tab, TabList, TabPanel, Tabs } from "./tabs/Tabs.js";
|
|
46
|
+
import { Text } from "./text/Text.js";
|
|
25
47
|
import { TextArea } from "./text-area/TextArea.js";
|
|
26
48
|
import { TextInput } from "./text-input/TextInput.js";
|
|
27
|
-
import { bootstrapTheme } from "./theme/bootstrap.js";
|
|
28
|
-
import {
|
|
29
|
-
|
|
49
|
+
import { bootstrapTheme, bootstrapTone } from "./theme/bootstrap.js";
|
|
50
|
+
import { CHART_CATEGORICAL_COUNT, CHART_SEQUENTIAL_COUNT, chartColors } from "./theme/chartColors.js";
|
|
51
|
+
import { checkColorDifferences } from "./theme/colorVision.js";
|
|
52
|
+
import { checkTheme } from "./theme/checkTheme.js";
|
|
53
|
+
import { defineComponentTokens } from "./theme/componentTokens.js";
|
|
54
|
+
import { componentTokens } from "./theme/components.js";
|
|
55
|
+
import { SEMANTIC_TOKENS } from "./theme/semanticTokens.js";
|
|
56
|
+
import { defineTheme, findUnknownTokens, mergeThemes } from "./theme/defineTheme.js";
|
|
57
|
+
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, 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;CAAA,IAAAC;CAAA,IAAAN,EAAA,OAAAD,IAAA;EAAgB,CAAA,CAAAN,IAAAY,IAAAX,KAAAC,OAAAC,SAAAC,MAAAS,IAAAJ,WAAAE,OAAA,GAAAD,SAAAJ;EASTC,EAAA,KAAAD;EAAAC,EAAA,KAAAL;EAAAK,EAAA,KAAAE;EAAAF,EAAA,KAAAN;EAAAM,EAAA,KAAAJ;EAAAI,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAA;EAAAX,QAAAK,EAAA;EAAAE,YAAAF,EAAA;EAAAN,MAAAM,EAAA;EAAAJ,UAAAI,EAAA;EAAAG,QAAAH,EAAA;EAAAI,QAAAJ,EAAA;EAAAK,KAAAL,EAAA;EAAAM,KAAAN,EAAA;CAAA;CARN,MAAAO,UAAAF,OAAAG,KAAAA,IAAA,QAAAH;CAYmD,MAAAI,KAAA,EARvDH,OAAAE,KAAAA,IAAA,OAAAF,OAQgEhB,sBAAMoB;CAAO,IAAAC;CAAA,IAAAX,EAAA,OAAAE,aAAAF,EAAA,QAAAS,IAAA;EAA1DE,KAAAtB,GAAG,kBAAkBC,sBAAMsB,QAASH,IAAwBP,SAAS;EAACF,EAAA,KAAAE;EAAAF,EAAA,MAAAS;EAAAT,EAAA,MAAAW;CAAA,OAAAA,KAAAX,EAAA;CAAA,IAAAa;CAAA,IAAAb,EAAA,QAAAL,SAAAK,EAAA,QAAAN,OAAAM,EAAA,QAAAJ,WAAAI,EAAA,QAAAI,OAAA;EAC1ES,KAAAzB,cACH;GACIF,oBAAoB,UAAU,OAAOQ,KAAKP,KAAK;GAC/CD,oBAAoB,UAAU,SAASS,OAAOmB,MAAM;GACpD5B,oBAAoB,UAAU,WAAWU,SAASX,aAAa;EAAC,GAEpEmB,KACJ;EAACJ,EAAA,MAAAL;EAAAK,EAAA,MAAAN;EAAAM,EAAA,MAAAJ;EAAAI,EAAA,MAAAI;EAAAJ,EAAA,MAAAa;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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Breakpoints of the layout primitives, like Bootstrap's `$grid-breakpoints`: the minimum width of
|
|
4
|
+
* the nearest container at which a responsive value applies. They are constants, since CSS
|
|
5
|
+
* variables can't be used in queries; the stylesheets of the primitives use the same values.
|
|
6
|
+
*/
|
|
7
|
+
export declare const BREAKPOINTS: Readonly<{
|
|
8
|
+
sm: "40rem";
|
|
9
|
+
md: "48rem";
|
|
10
|
+
lg: "64rem";
|
|
11
|
+
xl: "80rem";
|
|
12
|
+
}>;
|
|
13
|
+
/** A breakpoint: `sm`, `md`, `lg` or `xl`. */
|
|
14
|
+
export type Breakpoint = keyof typeof BREAKPOINTS;
|
|
15
|
+
/**
|
|
16
|
+
* A value, or values by breakpoint: `{ base: 1, md: 2, lg: 3 }`. Each value applies from its
|
|
17
|
+
* breakpoint up, until a larger one sets another. Breakpoints are widths of the nearest container
|
|
18
|
+
* (`PanneauRoot`, `Container`, a form, a list), not of the viewport, so that a grid in a narrow
|
|
19
|
+
* sidebar behaves as on a phone.
|
|
20
|
+
*/
|
|
21
|
+
export type Responsive<T> = T | Partial<Record<'base' | Breakpoint, T>>;
|
|
22
|
+
/** A step of the space scale of the theme (`--panneau-space-<step>`), or 0. */
|
|
23
|
+
export type Space = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10;
|
|
24
|
+
/** The CSS value of a step of the space scale. */
|
|
25
|
+
export declare function space(step: Space): string;
|
|
26
|
+
/**
|
|
27
|
+
* The inline variables of a responsive prop, `--_panneau-<component>-<prop>-<breakpoint>`, which
|
|
28
|
+
* the static rules of the component read in each container query. Unset breakpoints fall back to
|
|
29
|
+
* smaller ones in CSS.
|
|
30
|
+
*/
|
|
31
|
+
export declare function responsiveVariables<T>(component: string, prop: string, value: Responsive<T> | undefined, toCss: (value: T) => string): Record<string, string>;
|
|
32
|
+
/** Merges inline variables with the `style` prop, which wins. */
|
|
33
|
+
export declare function withVariables(variables: Record<string, string>[], style: CSSProperties | undefined): CSSProperties | undefined;
|
|
34
|
+
/** How the primitives distribute items along their axis: `between` is `space-between`. */
|
|
35
|
+
export type Justification = 'start' | 'center' | 'end' | 'between';
|
|
36
|
+
/** The CSS value of a justification. */
|
|
37
|
+
export declare function justification(value: Justification): string;
|
|
38
|
+
//# sourceMappingURL=responsive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../src/layout/responsive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;EAKtB,CAAC;AAEH,8CAA8C;AAC9C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAElD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;AAExE,+EAA+E;AAC/E,MAAM,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;AAEvD,kDAAkD;AAClD,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,CAEzC;AAQD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACjC,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,EAChC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GAC5B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAexB;AAED,iEAAiE;AACjE,wBAAgB,aAAa,CACzB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EACnC,KAAK,EAAE,aAAa,GAAG,SAAS,GACjC,aAAa,GAAG,SAAS,CAG3B;AAED,0FAA0F;AAC1F,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AAEnE,wCAAwC;AACxC,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAE1D"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region src/layout/responsive.ts
|
|
2
|
+
/**
|
|
3
|
+
* Breakpoints of the layout primitives, like Bootstrap's `$grid-breakpoints`: the minimum width of
|
|
4
|
+
* the nearest container at which a responsive value applies. They are constants, since CSS
|
|
5
|
+
* variables can't be used in queries; the stylesheets of the primitives use the same values.
|
|
6
|
+
*/
|
|
7
|
+
var BREAKPOINTS = Object.freeze({
|
|
8
|
+
sm: "40rem",
|
|
9
|
+
md: "48rem",
|
|
10
|
+
lg: "64rem",
|
|
11
|
+
xl: "80rem"
|
|
12
|
+
});
|
|
13
|
+
/** The CSS value of a step of the space scale. */
|
|
14
|
+
function space(step) {
|
|
15
|
+
return step === 0 ? "0" : `var(--panneau-space-${step})`;
|
|
16
|
+
}
|
|
17
|
+
var KEYS = ["base", ...Object.keys(BREAKPOINTS)];
|
|
18
|
+
function isByBreakpoint(value) {
|
|
19
|
+
return typeof value === "object" && value !== null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The inline variables of a responsive prop, `--_panneau-<component>-<prop>-<breakpoint>`, which
|
|
23
|
+
* the static rules of the component read in each container query. Unset breakpoints fall back to
|
|
24
|
+
* smaller ones in CSS.
|
|
25
|
+
*/
|
|
26
|
+
function responsiveVariables(component, prop, value, toCss) {
|
|
27
|
+
if (value === void 0) return {};
|
|
28
|
+
const values = isByBreakpoint(value) ? value : { base: value };
|
|
29
|
+
return Object.fromEntries(KEYS.flatMap((key) => {
|
|
30
|
+
const item = values[key];
|
|
31
|
+
return item !== void 0 ? [[`--_panneau-${component}-${prop}-${key}`, toCss(item)]] : [];
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
/** Merges inline variables with the `style` prop, which wins. */
|
|
35
|
+
function withVariables(variables, style) {
|
|
36
|
+
const merged = Object.assign({}, ...variables);
|
|
37
|
+
return Object.keys(merged).length > 0 ? {
|
|
38
|
+
...merged,
|
|
39
|
+
...style
|
|
40
|
+
} : style;
|
|
41
|
+
}
|
|
42
|
+
/** The CSS value of a justification. */
|
|
43
|
+
function justification(value) {
|
|
44
|
+
return value === "between" ? "space-between" : value;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { BREAKPOINTS, justification, responsiveVariables, space, withVariables };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=responsive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive.js","names":["CSSProperties","BREAKPOINTS","Object","freeze","sm","md","lg","xl","Breakpoint","Responsive","T","Partial","Record","Space","space","step","KEYS","keys","const","isByBreakpoint","value","responsiveVariables","component","prop","toCss","undefined","values","base","fromEntries","flatMap","key","item","withVariables","variables","style","merged","assign","length","Justification","justification"],"sources":["../../src/layout/responsive.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\n\n/**\n * Breakpoints of the layout primitives, like Bootstrap's `$grid-breakpoints`: the minimum width of\n * the nearest container at which a responsive value applies. They are constants, since CSS\n * variables can't be used in queries; the stylesheets of the primitives use the same values.\n */\nexport const BREAKPOINTS = Object.freeze({\n sm: '40rem',\n md: '48rem',\n lg: '64rem',\n xl: '80rem',\n});\n\n/** A breakpoint: `sm`, `md`, `lg` or `xl`. */\nexport type Breakpoint = keyof typeof BREAKPOINTS;\n\n/**\n * A value, or values by breakpoint: `{ base: 1, md: 2, lg: 3 }`. Each value applies from its\n * breakpoint up, until a larger one sets another. Breakpoints are widths of the nearest container\n * (`PanneauRoot`, `Container`, a form, a list), not of the viewport, so that a grid in a narrow\n * sidebar behaves as on a phone.\n */\nexport type Responsive<T> = T | Partial<Record<'base' | Breakpoint, T>>;\n\n/** A step of the space scale of the theme (`--panneau-space-<step>`), or 0. */\nexport type Space = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10;\n\n/** The CSS value of a step of the space scale. */\nexport function space(step: Space): string {\n return step === 0 ? '0' : `var(--panneau-space-${step})`;\n}\n\nconst KEYS = ['base', ...(Object.keys(BREAKPOINTS) as Breakpoint[])] as const;\n\nfunction isByBreakpoint<T>(value: Responsive<T>): value is Partial<Record<'base' | Breakpoint, T>> {\n return typeof value === 'object' && value !== null;\n}\n\n/**\n * The inline variables of a responsive prop, `--_panneau-<component>-<prop>-<breakpoint>`, which\n * the static rules of the component read in each container query. Unset breakpoints fall back to\n * smaller ones in CSS.\n */\nexport function responsiveVariables<T>(\n component: string,\n prop: string,\n value: Responsive<T> | undefined,\n toCss: (value: T) => string,\n): Record<string, string> {\n if (value === undefined) {\n return {};\n }\n const values: Partial<Record<'base' | Breakpoint, T>> = isByBreakpoint(value)\n ? value\n : { base: value };\n return Object.fromEntries(\n KEYS.flatMap((key) => {\n const item = values[key];\n return item !== undefined\n ? [[`--_panneau-${component}-${prop}-${key}`, toCss(item)]]\n : [];\n }),\n );\n}\n\n/** Merges inline variables with the `style` prop, which wins. */\nexport function withVariables(\n variables: Record<string, string>[],\n style: CSSProperties | undefined,\n): CSSProperties | undefined {\n const merged = Object.assign({}, ...variables) as Record<string, string>;\n return Object.keys(merged).length > 0 ? { ...merged, ...style } : style;\n}\n\n/** How the primitives distribute items along their axis: `between` is `space-between`. */\nexport type Justification = 'start' | 'center' | 'end' | 'between';\n\n/** The CSS value of a justification. */\nexport function justification(value: Justification): string {\n return value === 'between' ? 'space-between' : value;\n}\n"],"mappings":";;;;;;AAOA,IAAaC,cAAcC,OAAOC,OAAO;CACrCC,IAAI;CACJC,IAAI;CACJC,IAAI;CACJC,IAAI;AACR,CAAC;;AAiBD,SAAgBO,MAAMC,MAAqB;CACvC,OAAOA,SAAS,IAAI,MAAM,uBAAuBA,KAAI;AACzD;AAEA,IAAMC,OAAO,CAAC,QAAQ,GAAId,OAAOe,KAAKhB,WAAW,CAAkB;AAEnE,SAASkB,eAAkBC,OAAwE;CAC/F,OAAO,OAAOA,UAAU,YAAYA,UAAU;AAClD;;;;;;AAOA,SAAgBC,oBACZC,WACAC,MACAH,OACAI,OACsB;CACtB,IAAIJ,UAAUK,KAAAA,GACV,OAAO,CAAC;CAEZ,MAAMC,SAAkDP,eAAeC,KAAK,IACtEA,QACA,EAAEO,MAAMP,MAAM;CACpB,OAAOlB,OAAO0B,YACVZ,KAAKa,SAASC,QAAQ;EAClB,MAAMC,OAAOL,OAAOI;EACpB,OAAOC,SAASN,KAAAA,IACV,CAAC,CAAC,cAAcH,UAAS,GAAIC,KAAI,GAAIO,OAAON,MAAMO,IAAI,CAAC,CAAC,IACxD,CAAA;CACV,CAAC,CACL;AACJ;;AAGA,SAAgBC,cACZC,WACAC,OACyB;CACzB,MAAMC,SAASjC,OAAOkC,OAAO,CAAC,GAAG,GAAGH,SAAS;CAC7C,OAAO/B,OAAOe,KAAKkB,MAAM,CAAC,CAACE,SAAS,IAAI;EAAE,GAAGF;EAAQ,GAAGD;CAAM,IAAIA;AACtE;;AAMA,SAAgBK,cAAcnB,OAA8B;CACxD,OAAOA,UAAU,YAAY,kBAAkBA;AACnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["allFr"],"sources":["../../src/locales/index.ts"],"sourcesContent":["import { fr as allFr, getDefaultMessages } from '@panneau/intl';\n\nimport { messages } from '../intl/messages';\n\n/**\n * The English messages of `@panneau/ui`, by id. They are also the default messages.\n *\n * @deprecated Use `en`, or `withPanneauMessages()`, from `@panneau/intl`: they have the messages\n * of every package.\n */\nexport const en: Record<string, string> = getDefaultMessages(messages);\n\n/**\n * The French messages of `@panneau/ui`, by id.\n *\n * @deprecated Use `fr`, or `withPanneauMessages()`, from `@panneau/intl`: they have the messages\n * of every package.\n */\nexport const fr: Record<string, string> = Object.fromEntries(\n Object.entries(allFr).filter(([id]) => id in en),\n);\n"],"mappings":";;;;;;;;;AAUA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["fr","allFr","getDefaultMessages","messages","en","Record","Object","fromEntries","entries","filter","id","allFr"],"sources":["../../src/locales/index.ts"],"sourcesContent":["import { fr as allFr, getDefaultMessages } from '@panneau/intl';\n\nimport { messages } from '../intl/messages';\n\n/**\n * The English messages of `@panneau/ui`, by id. They are also the default messages.\n *\n * @deprecated Use `en`, or `withPanneauMessages()`, from `@panneau/intl`: they have the messages\n * of every package.\n */\nexport const en: Record<string, string> = getDefaultMessages(messages);\n\n/**\n * The French messages of `@panneau/ui`, by id.\n *\n * @deprecated Use `fr`, or `withPanneauMessages()`, from `@panneau/intl`: they have the messages\n * of every package.\n */\nexport const fr: Record<string, string> = Object.fromEntries(\n Object.entries(allFr).filter(([id]) => id in en),\n);\n"],"mappings":";;;;;;;;;AAUA,IAAaI,KAA6BF,mBAAmBC,QAAQ;;;;;;;AAQrE,IAAaH,KAA6BM,OAAOC,YAC7CD,OAAOE,QAAQP,IAAK,CAAC,CAACQ,QAAQ,CAACC,QAAQA,MAAMN,EAAE,CACnD"}
|