@heymantle/litho 0.0.14 → 0.0.16
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/AI_COMPONENTS_GUIDE.md +28 -15
- package/AI_INTEGRATION_GUIDE.md +3 -3
- package/AI_PATTERNS_GUIDE.md +59 -25
- package/COMPONENT_QUICK_REFERENCE.md +3 -3
- package/README.md +52 -0
- package/dist/cjs/components/ActionList.js +33 -25
- package/dist/cjs/components/AnnouncementBar.js +115 -18
- package/dist/cjs/components/AnnouncementCard.js +269 -0
- package/dist/cjs/components/AppProvider.js +15 -2
- package/dist/cjs/components/Autocomplete.js +58 -36
- package/dist/cjs/components/Badge.js +28 -14
- package/dist/cjs/components/Banner.js +37 -27
- package/dist/cjs/components/Box.js +50 -38
- package/dist/cjs/components/Button.js +338 -109
- package/dist/cjs/components/ButtonGroup.js +27 -14
- package/dist/cjs/components/Card.js +311 -143
- package/dist/cjs/components/Checkbox.js +55 -47
- package/dist/cjs/components/CheckboxCard.js +222 -0
- package/dist/cjs/components/CheckboxCardGroup.js +384 -0
- package/dist/cjs/components/ChoiceList.js +21 -11
- package/dist/cjs/components/Code.js +22 -8
- package/dist/cjs/components/Collapsible.js +24 -11
- package/dist/cjs/components/ColorField.js +163 -38
- package/dist/cjs/components/ContextualSaveBar.js +13 -6
- package/dist/cjs/components/DatePicker.js +48 -37
- package/dist/cjs/components/Disclosure.js +57 -13
- package/dist/cjs/components/Divider.js +82 -18
- package/dist/cjs/components/DropZone.js +194 -68
- package/dist/cjs/components/EmptyState.js +18 -6
- package/dist/cjs/components/Filters.js +84 -36
- package/dist/cjs/components/FooterHelp.js +14 -4
- package/dist/cjs/components/Form.js +13 -2
- package/dist/cjs/components/Frame.js +57 -22
- package/dist/cjs/components/FrameSaveBar.js +37 -6
- package/dist/cjs/components/Grid.js +31 -15
- package/dist/cjs/components/HorizontalStack.js +38 -25
- package/dist/cjs/components/Icon.js +683 -61
- package/dist/cjs/components/Image.js +35 -22
- package/dist/cjs/components/InlineError.js +19 -10
- package/dist/cjs/components/Label.js +21 -12
- package/dist/cjs/components/Layout.js +37 -26
- package/dist/cjs/components/LayoutSection.js +84 -22
- package/dist/cjs/components/Link.js +35 -22
- package/dist/cjs/components/List.js +28 -12
- package/dist/cjs/components/Listbox.js +53 -31
- package/dist/cjs/components/Loading.js +14 -2
- package/dist/cjs/components/Modal.js +32 -39
- package/dist/cjs/components/Navigation.js +107 -36
- package/dist/cjs/components/Page.js +44 -31
- package/dist/cjs/components/Pagination.js +20 -5
- package/dist/cjs/components/Pane.js +67 -4
- package/dist/cjs/components/Popover.js +63 -30
- package/dist/cjs/components/PopoverManager.js +14 -1
- package/dist/cjs/components/ProgressBar.js +28 -15
- package/dist/cjs/components/RadioButton.js +32 -24
- package/dist/cjs/components/RadioButtonCard.js +92 -67
- package/dist/cjs/components/RadioButtonCardGroup.js +379 -0
- package/dist/cjs/components/RangeSlider.js +34 -26
- package/dist/cjs/components/ResourceList.js +28 -14
- package/dist/cjs/components/Select.js +38 -26
- package/dist/cjs/components/SkeletonText.js +33 -18
- package/dist/cjs/components/Spinner.js +24 -12
- package/dist/cjs/components/Stack.js +131 -71
- package/dist/cjs/components/TabNavigation.js +27 -1
- package/dist/cjs/components/Table.js +85 -29
- package/dist/cjs/components/Tabs.js +84 -24
- package/dist/cjs/components/Tag.js +37 -16
- package/dist/cjs/components/Text.js +32 -18
- package/dist/cjs/components/TextField.js +119 -69
- package/dist/cjs/components/Thumbnail.js +25 -11
- package/dist/cjs/components/TimePicker.js +22 -1
- package/dist/cjs/components/Tip.js +140 -25
- package/dist/cjs/components/ToastNotification.js +107 -34
- package/dist/cjs/components/ToastProvider.js +13 -3
- package/dist/cjs/components/Tooltip.js +50 -41
- package/dist/cjs/components/TopBar.js +83 -9
- package/dist/cjs/components/VerticalStack.js +31 -16
- package/dist/cjs/index.js +24 -0
- package/dist/cjs/playwright.config.js +114 -0
- package/dist/cjs/stories/Autocomplete.stories.js +10 -10
- package/dist/cjs/stories/Checkbox.stories.js +6 -8
- package/dist/cjs/stories/CheckboxCardGroup.stories.js +459 -0
- package/dist/cjs/stories/Collapsible.stories.js +11 -11
- package/dist/cjs/stories/ColorField.stories.js +2 -3
- package/dist/cjs/stories/ComplexExamples.stories.js +48 -77
- package/dist/cjs/stories/ContextualSaveBar.stories.js +1 -1
- package/dist/cjs/stories/Divider.stories.js +15 -16
- package/dist/cjs/stories/DropZone.stories.js +3 -3
- package/dist/cjs/stories/FooterHelp.stories.js +3 -4
- package/dist/cjs/stories/Form.stories.js +2 -4
- package/dist/cjs/stories/Grid.stories.js +24 -33
- package/dist/cjs/stories/Icon.stories.js +22 -23
- package/dist/cjs/stories/Image.stories.js +12 -15
- package/dist/cjs/stories/InlineError.stories.js +0 -1
- package/dist/cjs/stories/Layout.stories.js +96 -2
- package/dist/cjs/stories/LayoutSection.stories.js +13 -18
- package/dist/cjs/stories/List.stories.js +24 -28
- package/dist/cjs/stories/Listbox.stories.js +2 -2
- package/dist/cjs/stories/Loading.stories.js +21 -25
- package/dist/cjs/stories/Modal.stories.js +0 -1
- package/dist/cjs/stories/Pagination.stories.js +4 -4
- package/dist/cjs/stories/Pane.stories.js +10 -18
- package/dist/cjs/stories/Popover.stories.js +7 -7
- package/dist/cjs/stories/PopoverManager.stories.js +9 -9
- package/dist/cjs/stories/ProgressBar.stories.js +8 -8
- package/dist/cjs/stories/RadioButton.stories.js +2 -2
- package/dist/cjs/stories/RadioButtonCard.stories.js +2 -2
- package/dist/cjs/stories/RadioButtonCardGroup.stories.js +502 -0
- package/dist/cjs/stories/RangeSlider.stories.js +1 -3
- package/dist/cjs/stories/ResourceList.stories.js +13 -13
- package/dist/cjs/stories/Spinner.stories.js +9 -9
- package/dist/cjs/stories/Stack.stories.js +233 -51
- package/dist/cjs/stories/Tabs.stories.js +2 -2
- package/dist/cjs/stories/Tag.stories.js +1 -1
- package/dist/cjs/stories/Thumbnail.stories.js +17 -18
- package/dist/cjs/stories/TimePicker.stories.js +0 -5
- package/dist/cjs/stories/Tip.stories.js +1 -1
- package/dist/cjs/styles/Table.js +2 -7
- package/dist/cjs/tests/visual/stories.spec.js +637 -0
- package/dist/cjs/utilities/dates.js +7 -7
- package/dist/esm/components/ActionList.js +33 -25
- package/dist/esm/components/AnnouncementBar.js +115 -18
- package/dist/esm/components/AnnouncementCard.js +254 -0
- package/dist/esm/components/AppProvider.js +15 -2
- package/dist/esm/components/Autocomplete.js +58 -36
- package/dist/esm/components/Badge.js +28 -14
- package/dist/esm/components/Banner.js +37 -27
- package/dist/esm/components/Box.js +50 -38
- package/dist/esm/components/Button.js +338 -109
- package/dist/esm/components/ButtonGroup.js +27 -14
- package/dist/esm/components/Card.js +300 -140
- package/dist/esm/components/Checkbox.js +55 -47
- package/dist/esm/components/CheckboxCard.js +207 -0
- package/dist/esm/components/CheckboxCardGroup.js +370 -0
- package/dist/esm/components/ChoiceList.js +21 -11
- package/dist/esm/components/Code.js +22 -8
- package/dist/esm/components/Collapsible.js +24 -11
- package/dist/esm/components/ColorField.js +165 -40
- package/dist/esm/components/ContextualSaveBar.js +13 -6
- package/dist/esm/components/DatePicker.js +48 -37
- package/dist/esm/components/Disclosure.js +50 -6
- package/dist/esm/components/Divider.js +78 -20
- package/dist/esm/components/DropZone.js +194 -68
- package/dist/esm/components/EmptyState.js +18 -6
- package/dist/esm/components/Filters.js +84 -36
- package/dist/esm/components/FooterHelp.js +14 -4
- package/dist/esm/components/Form.js +13 -2
- package/dist/esm/components/Frame.js +57 -22
- package/dist/esm/components/FrameSaveBar.js +37 -6
- package/dist/esm/components/Grid.js +31 -15
- package/dist/esm/components/HorizontalStack.js +38 -25
- package/dist/esm/components/Icon.js +681 -62
- package/dist/esm/components/Image.js +35 -22
- package/dist/esm/components/InlineError.js +19 -10
- package/dist/esm/components/Label.js +21 -12
- package/dist/esm/components/Layout.js +62 -27
- package/dist/esm/components/LayoutSection.js +84 -22
- package/dist/esm/components/Link.js +35 -22
- package/dist/esm/components/List.js +28 -12
- package/dist/esm/components/Listbox.js +53 -31
- package/dist/esm/components/Loading.js +14 -2
- package/dist/esm/components/Modal.js +79 -40
- package/dist/esm/components/Navigation.js +107 -36
- package/dist/esm/components/Page.js +44 -31
- package/dist/esm/components/Pagination.js +20 -5
- package/dist/esm/components/Pane.js +67 -4
- package/dist/esm/components/Popover.js +63 -30
- package/dist/esm/components/PopoverManager.js +14 -1
- package/dist/esm/components/ProgressBar.js +28 -15
- package/dist/esm/components/RadioButton.js +32 -24
- package/dist/esm/components/RadioButtonCard.js +92 -67
- package/dist/esm/components/RadioButtonCardGroup.js +364 -0
- package/dist/esm/components/RangeSlider.js +34 -26
- package/dist/esm/components/ResourceList.js +28 -14
- package/dist/esm/components/Select.js +38 -26
- package/dist/esm/components/SkeletonText.js +33 -18
- package/dist/esm/components/Spinner.js +24 -12
- package/dist/esm/components/Stack.js +131 -71
- package/dist/esm/components/TabNavigation.js +27 -1
- package/dist/esm/components/Table.js +85 -29
- package/dist/esm/components/Tabs.js +84 -24
- package/dist/esm/components/Tag.js +37 -16
- package/dist/esm/components/Text.js +32 -18
- package/dist/esm/components/TextField.js +119 -69
- package/dist/esm/components/Thumbnail.js +25 -11
- package/dist/esm/components/TimePicker.js +22 -1
- package/dist/esm/components/Tip.js +140 -25
- package/dist/esm/components/ToastNotification.js +107 -34
- package/dist/esm/components/ToastProvider.js +13 -3
- package/dist/esm/components/Tooltip.js +50 -41
- package/dist/esm/components/TopBar.js +83 -9
- package/dist/esm/components/VerticalStack.js +31 -16
- package/dist/esm/index.js +6 -0
- package/dist/esm/playwright.config.js +104 -0
- package/dist/esm/stories/Autocomplete.stories.js +10 -10
- package/dist/esm/stories/Checkbox.stories.js +6 -8
- package/dist/esm/stories/CheckboxCardGroup.stories.js +421 -0
- package/dist/esm/stories/Collapsible.stories.js +11 -11
- package/dist/esm/stories/ColorField.stories.js +2 -3
- package/dist/esm/stories/ComplexExamples.stories.js +48 -77
- package/dist/esm/stories/ContextualSaveBar.stories.js +1 -1
- package/dist/esm/stories/Divider.stories.js +15 -16
- package/dist/esm/stories/DropZone.stories.js +3 -3
- package/dist/esm/stories/FooterHelp.stories.js +3 -4
- package/dist/esm/stories/Form.stories.js +2 -4
- package/dist/esm/stories/Grid.stories.js +24 -33
- package/dist/esm/stories/Icon.stories.js +22 -23
- package/dist/esm/stories/Image.stories.js +12 -15
- package/dist/esm/stories/InlineError.stories.js +0 -1
- package/dist/esm/stories/Layout.stories.js +93 -2
- package/dist/esm/stories/LayoutSection.stories.js +13 -18
- package/dist/esm/stories/List.stories.js +24 -28
- package/dist/esm/stories/Listbox.stories.js +2 -2
- package/dist/esm/stories/Loading.stories.js +21 -25
- package/dist/esm/stories/Modal.stories.js +0 -1
- package/dist/esm/stories/Pagination.stories.js +4 -4
- package/dist/esm/stories/Pane.stories.js +10 -18
- package/dist/esm/stories/Popover.stories.js +7 -7
- package/dist/esm/stories/PopoverManager.stories.js +9 -9
- package/dist/esm/stories/ProgressBar.stories.js +8 -8
- package/dist/esm/stories/RadioButton.stories.js +2 -2
- package/dist/esm/stories/RadioButtonCard.stories.js +2 -2
- package/dist/esm/stories/RadioButtonCardGroup.stories.js +461 -0
- package/dist/esm/stories/RangeSlider.stories.js +1 -3
- package/dist/esm/stories/ResourceList.stories.js +13 -13
- package/dist/esm/stories/Spinner.stories.js +9 -9
- package/dist/esm/stories/Stack.stories.js +224 -51
- package/dist/esm/stories/Tabs.stories.js +2 -2
- package/dist/esm/stories/Tag.stories.js +1 -1
- package/dist/esm/stories/Thumbnail.stories.js +17 -18
- package/dist/esm/stories/TimePicker.stories.js +0 -5
- package/dist/esm/stories/Tip.stories.js +1 -1
- package/dist/esm/styles/Table.js +2 -7
- package/dist/esm/tests/visual/stories.spec.js +633 -0
- package/dist/esm/utilities/dates.js +7 -7
- package/dist/types/components/ActionList.d.ts +1 -31
- package/dist/types/components/ActionList.d.ts.map +1 -1
- package/dist/types/components/AnnouncementBar.d.ts +1 -19
- package/dist/types/components/AnnouncementBar.d.ts.map +1 -1
- package/dist/types/components/AnnouncementCard.d.ts +3 -0
- package/dist/types/components/AnnouncementCard.d.ts.map +1 -0
- package/dist/types/components/AppProvider.d.ts +14 -1
- package/dist/types/components/AppProvider.d.ts.map +1 -1
- package/dist/types/components/Autocomplete.d.ts +1 -71
- package/dist/types/components/Autocomplete.d.ts.map +1 -1
- package/dist/types/components/Badge.d.ts +1 -19
- package/dist/types/components/Badge.d.ts.map +1 -1
- package/dist/types/components/Banner.d.ts +1 -37
- package/dist/types/components/Banner.d.ts.map +1 -1
- package/dist/types/components/Box.d.ts +1 -68
- package/dist/types/components/Box.d.ts.map +1 -1
- package/dist/types/components/Button.d.ts +1 -131
- package/dist/types/components/Button.d.ts.map +1 -1
- package/dist/types/components/ButtonGroup.d.ts +1 -22
- package/dist/types/components/ButtonGroup.d.ts.map +1 -1
- package/dist/types/components/Card.d.ts +54 -59
- package/dist/types/components/Card.d.ts.map +1 -1
- package/dist/types/components/Checkbox.d.ts +1 -63
- package/dist/types/components/Checkbox.d.ts.map +1 -1
- package/dist/types/components/CheckboxCard.d.ts +3 -0
- package/dist/types/components/CheckboxCard.d.ts.map +1 -0
- package/dist/types/components/CheckboxCardGroup.d.ts +3 -0
- package/dist/types/components/CheckboxCardGroup.d.ts.map +1 -0
- package/dist/types/components/ChoiceList.d.ts +1 -42
- package/dist/types/components/ChoiceList.d.ts.map +1 -1
- package/dist/types/components/Code.d.ts +1 -26
- package/dist/types/components/Code.d.ts.map +1 -1
- package/dist/types/components/Collapsible.d.ts +1 -15
- package/dist/types/components/Collapsible.d.ts.map +1 -1
- package/dist/types/components/ColorField.d.ts +13 -34
- package/dist/types/components/ColorField.d.ts.map +1 -1
- package/dist/types/components/ContextualSaveBar.d.ts +13 -6
- package/dist/types/components/ContextualSaveBar.d.ts.map +1 -1
- package/dist/types/components/DatePicker.d.ts +1 -64
- package/dist/types/components/DatePicker.d.ts.map +1 -1
- package/dist/types/components/Disclosure.d.ts +1 -25
- package/dist/types/components/Disclosure.d.ts.map +1 -1
- package/dist/types/components/Divider.d.ts +1 -19
- package/dist/types/components/Divider.d.ts.map +1 -1
- package/dist/types/components/DropZone.d.ts +3 -62
- package/dist/types/components/DropZone.d.ts.map +1 -1
- package/dist/types/components/EmptyState.d.ts +1 -50
- package/dist/types/components/EmptyState.d.ts.map +1 -1
- package/dist/types/components/Filters.d.ts +13 -68
- package/dist/types/components/Filters.d.ts.map +1 -1
- package/dist/types/components/FooterHelp.d.ts +14 -4
- package/dist/types/components/FooterHelp.d.ts.map +1 -1
- package/dist/types/components/Form.d.ts +13 -2
- package/dist/types/components/Form.d.ts.map +1 -1
- package/dist/types/components/Frame.d.ts +15 -36
- package/dist/types/components/Frame.d.ts.map +1 -1
- package/dist/types/components/FrameSaveBar.d.ts +3 -6
- package/dist/types/components/FrameSaveBar.d.ts.map +1 -1
- package/dist/types/components/Grid.d.ts +5 -21
- package/dist/types/components/Grid.d.ts.map +1 -1
- package/dist/types/components/HorizontalStack.d.ts +1 -34
- package/dist/types/components/HorizontalStack.d.ts.map +1 -1
- package/dist/types/components/Icon.d.ts +1 -41
- package/dist/types/components/Icon.d.ts.map +1 -1
- package/dist/types/components/Image.d.ts +1 -43
- package/dist/types/components/Image.d.ts.map +1 -1
- package/dist/types/components/InlineError.d.ts +1 -20
- package/dist/types/components/InlineError.d.ts.map +1 -1
- package/dist/types/components/Label.d.ts +1 -26
- package/dist/types/components/Label.d.ts.map +1 -1
- package/dist/types/components/Layout.d.ts +24 -15
- package/dist/types/components/Layout.d.ts.map +1 -1
- package/dist/types/components/LayoutSection.d.ts +1 -19
- package/dist/types/components/LayoutSection.d.ts.map +1 -1
- package/dist/types/components/Link.d.ts +1 -37
- package/dist/types/components/Link.d.ts.map +1 -1
- package/dist/types/components/List.d.ts +5 -17
- package/dist/types/components/List.d.ts.map +1 -1
- package/dist/types/components/Listbox.d.ts +1 -32
- package/dist/types/components/Listbox.d.ts.map +1 -1
- package/dist/types/components/Loading.d.ts +14 -2
- package/dist/types/components/Loading.d.ts.map +1 -1
- package/dist/types/components/Modal.d.ts +26 -35
- package/dist/types/components/Modal.d.ts.map +1 -1
- package/dist/types/components/Navigation.d.ts +1 -25
- package/dist/types/components/Navigation.d.ts.map +1 -1
- package/dist/types/components/Page.d.ts +1 -57
- package/dist/types/components/Page.d.ts.map +1 -1
- package/dist/types/components/Pagination.d.ts +13 -3
- package/dist/types/components/Pagination.d.ts.map +1 -1
- package/dist/types/components/Pane.d.ts +55 -3
- package/dist/types/components/Pane.d.ts.map +1 -1
- package/dist/types/components/Popover.d.ts +5 -35
- package/dist/types/components/Popover.d.ts.map +1 -1
- package/dist/types/components/PopoverManager.d.ts.map +1 -1
- package/dist/types/components/ProgressBar.d.ts +1 -22
- package/dist/types/components/ProgressBar.d.ts.map +1 -1
- package/dist/types/components/RadioButton.d.ts +1 -37
- package/dist/types/components/RadioButton.d.ts.map +1 -1
- package/dist/types/components/RadioButtonCard.d.ts +1 -39
- package/dist/types/components/RadioButtonCard.d.ts.map +1 -1
- package/dist/types/components/RadioButtonCardGroup.d.ts +3 -0
- package/dist/types/components/RadioButtonCardGroup.d.ts.map +1 -0
- package/dist/types/components/RangeSlider.d.ts +1 -42
- package/dist/types/components/RangeSlider.d.ts.map +1 -1
- package/dist/types/components/ResourceList.d.ts +5 -30
- package/dist/types/components/ResourceList.d.ts.map +1 -1
- package/dist/types/components/Select.d.ts +1 -46
- package/dist/types/components/Select.d.ts.map +1 -1
- package/dist/types/components/SkeletonText.d.ts +1 -26
- package/dist/types/components/SkeletonText.d.ts.map +1 -1
- package/dist/types/components/Spinner.d.ts +1 -16
- package/dist/types/components/Spinner.d.ts.map +1 -1
- package/dist/types/components/Stack.d.ts +1 -47
- package/dist/types/components/Stack.d.ts.map +1 -1
- package/dist/types/components/TabNavigation.d.ts.map +1 -1
- package/dist/types/components/Table.d.ts +13 -58
- package/dist/types/components/Table.d.ts.map +1 -1
- package/dist/types/components/Tabs.d.ts +40 -34
- package/dist/types/components/Tabs.d.ts.map +1 -1
- package/dist/types/components/Tag.d.ts +1 -24
- package/dist/types/components/Tag.d.ts.map +1 -1
- package/dist/types/components/Text.d.ts +1 -30
- package/dist/types/components/Text.d.ts.map +1 -1
- package/dist/types/components/TextField.d.ts +1 -109
- package/dist/types/components/TextField.d.ts.map +1 -1
- package/dist/types/components/Thumbnail.d.ts +1 -16
- package/dist/types/components/Thumbnail.d.ts.map +1 -1
- package/dist/types/components/TimePicker.d.ts +28 -1
- package/dist/types/components/TimePicker.d.ts.map +1 -1
- package/dist/types/components/Tip.d.ts +1 -21
- package/dist/types/components/Tip.d.ts.map +1 -1
- package/dist/types/components/ToastNotification.d.ts +1 -34
- package/dist/types/components/ToastNotification.d.ts.map +1 -1
- package/dist/types/components/ToastProvider.d.ts +13 -3
- package/dist/types/components/ToastProvider.d.ts.map +1 -1
- package/dist/types/components/Tooltip.d.ts +1 -54
- package/dist/types/components/Tooltip.d.ts.map +1 -1
- package/dist/types/components/TopBar.d.ts +1 -19
- package/dist/types/components/TopBar.d.ts.map +1 -1
- package/dist/types/components/VerticalStack.d.ts +1 -25
- package/dist/types/components/VerticalStack.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -0
- package/dist/types/styles/Table.d.ts.map +1 -1
- package/index.css +76 -14
- package/package.json +15 -5
|
@@ -56,7 +56,39 @@ import FrameSaveBar from "./FrameSaveBar.js";
|
|
|
56
56
|
import TopBar from "./TopBar.js";
|
|
57
57
|
import Popover from "./Popover.js";
|
|
58
58
|
import ActionList from "./ActionList.js";
|
|
59
|
-
|
|
59
|
+
/**
|
|
60
|
+
* @component Frame
|
|
61
|
+
*
|
|
62
|
+
* @description The root application layout shell that provides navigation sidebar, top bar, mobile nav, and contextual save bar slots.
|
|
63
|
+
*
|
|
64
|
+
* @usage
|
|
65
|
+
* - DO: Use as the root layout wrapper providing navigation sidebar, top bar, and main content area.
|
|
66
|
+
* - DON'T: Nest Frame inside another Frame.
|
|
67
|
+
*
|
|
68
|
+
* @accessibility
|
|
69
|
+
* - Frame establishes landmark regions (nav, main, header) for screen reader navigation.
|
|
70
|
+
*
|
|
71
|
+
* @alternative
|
|
72
|
+
* - If you need a simple page container without app shell chrome, use `Page` or `Layout`.
|
|
73
|
+
*
|
|
74
|
+
* @param {Object} props - Props for the Frame component.
|
|
75
|
+
* @param {React.ReactNode} props.navigation - Component to render as the navigation menu.
|
|
76
|
+
* @param {React.ReactNode} props.announcement - Component to render an announcement bar.
|
|
77
|
+
* @param {Object} props.logo - Logo configuration.
|
|
78
|
+
* @param {string} props.logo.url - URL for the logo link.
|
|
79
|
+
* @param {string} props.logo.source - Source for the logo image.
|
|
80
|
+
* @param {string} props.logo.accessibilityLabel - Accessibility label for the logo image.
|
|
81
|
+
* @param {number} props.logo.width - Width of the logo image.
|
|
82
|
+
* @param {boolean} props.showSearchTrigger - Whether to show the search trigger.
|
|
83
|
+
* @param {React.ReactNode} props.searchModal - Modal to render as the search modal.
|
|
84
|
+
* @param {function} props.onToggleSearch - Function to toggle the search modal.
|
|
85
|
+
* @param {boolean} [props.enableSearchShortcut=true] - Whether to register the Cmd+K keyboard shortcut for search.
|
|
86
|
+
* @param {string} [props.className] - Additional CSS classes for the Frame.
|
|
87
|
+
* @param {React.ReactNode} props.children - Content to render within the Frame.
|
|
88
|
+
* @param {boolean} [props.alwaysShowUserMenuInTopBar] - Whether to always show the user menu in the top bar.
|
|
89
|
+
* @param {React.ReactNode} [props.headerAccessory] - Accessory to render in the header.
|
|
90
|
+
* @returns {React.ReactElement} The rendered Frame component.
|
|
91
|
+
*/ var frameStyles = tv({
|
|
60
92
|
base: "Litho-Frame bg-surface-normal",
|
|
61
93
|
variants: {
|
|
62
94
|
paneIsOpen: {
|
|
@@ -147,26 +179,7 @@ var logoStyles = tv({
|
|
|
147
179
|
alwaysShowLogo: false
|
|
148
180
|
}
|
|
149
181
|
});
|
|
150
|
-
|
|
151
|
-
* Frame component that provides a layout structure with top bar, navigation, logo, and content.
|
|
152
|
-
* @param {Object} props - Props for the Frame component.
|
|
153
|
-
* @param {React.ReactNode} props.navigation - Component to render as the navigation menu.
|
|
154
|
-
* @param {React.ReactNode} props.announcement - Component to render an announcement bar.
|
|
155
|
-
* @param {Object} props.logo - Logo configuration.
|
|
156
|
-
* @param {string} props.logo.url - URL for the logo link.
|
|
157
|
-
* @param {string} props.logo.source - Source for the logo image.
|
|
158
|
-
* @param {string} props.logo.accessibilityLabel - Accessibility label for the logo image.
|
|
159
|
-
* @param {number} props.logo.width - Width of the logo image.
|
|
160
|
-
* @param {boolean} props.showSearchTrigger - Whether to show the search trigger.
|
|
161
|
-
* @param {React.ReactNode} props.searchModal - Modal to render as the search modal.
|
|
162
|
-
* @param {function} props.onToggleSearch - Function to toggle the search modal.
|
|
163
|
-
* @param {boolean} [props.enableSearchShortcut=true] - Whether to register the Cmd+K keyboard shortcut for search.
|
|
164
|
-
* @param {string} [props.className] - Additional CSS classes for the Frame.
|
|
165
|
-
* @param {React.ReactNode} props.children - Content to render within the Frame.
|
|
166
|
-
* @param {boolean} [props.alwaysShowUserMenuInTopBar] - Whether to always show the user menu in the top bar.
|
|
167
|
-
* @param {React.ReactNode} [props.headerAccessory] - Accessory to render in the header.
|
|
168
|
-
* @returns {React.ReactElement} The rendered Frame component.
|
|
169
|
-
*/ var Frame = function(param) {
|
|
182
|
+
var Frame = function(param) {
|
|
170
183
|
var navigation = param.navigation, announcement = param.announcement, logo = param.logo, children = param.children, className = param.className, userMenu = param.userMenu, moreActions = param.moreActions, _param_showSearchTrigger = param.showSearchTrigger, showSearchTrigger = _param_showSearchTrigger === void 0 ? true : _param_showSearchTrigger, _param_alwaysShowUserMenuInTopBar = param.alwaysShowUserMenuInTopBar, alwaysShowUserMenuInTopBar = _param_alwaysShowUserMenuInTopBar === void 0 ? false : _param_alwaysShowUserMenuInTopBar, _param_searchLabel = param.searchLabel, searchLabel = _param_searchLabel === void 0 ? "Search" : _param_searchLabel, _param_searchIcon = param.searchIcon, searchIcon = _param_searchIcon === void 0 ? /*#__PURE__*/ _jsx(Icon, {
|
|
171
184
|
source: SearchMajor,
|
|
172
185
|
color: "subdued"
|
|
@@ -200,6 +213,10 @@ var logoStyles = tv({
|
|
|
200
213
|
document.documentElement.style.setProperty("--litho-top-bar-height", "56px");
|
|
201
214
|
document.documentElement.style.setProperty("--litho-table-header-sticky-at", "56px");
|
|
202
215
|
}
|
|
216
|
+
} else {
|
|
217
|
+
document.documentElement.style.setProperty("--litho-header-offset", "0px");
|
|
218
|
+
document.documentElement.style.setProperty("--litho-top-bar-height", "56px");
|
|
219
|
+
document.documentElement.style.setProperty("--litho-table-header-sticky-at", "56px");
|
|
203
220
|
}
|
|
204
221
|
}, [
|
|
205
222
|
announcement
|
|
@@ -237,6 +254,15 @@ var logoStyles = tv({
|
|
|
237
254
|
onClick: function() {
|
|
238
255
|
return onToggleSearch();
|
|
239
256
|
},
|
|
257
|
+
role: "button",
|
|
258
|
+
tabIndex: 0,
|
|
259
|
+
"aria-label": searchLabel,
|
|
260
|
+
onKeyDown: function(e) {
|
|
261
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
262
|
+
e.preventDefault();
|
|
263
|
+
onToggleSearch();
|
|
264
|
+
}
|
|
265
|
+
},
|
|
240
266
|
children: [
|
|
241
267
|
searchIcon,
|
|
242
268
|
/*#__PURE__*/ _jsxs("div", {
|
|
@@ -259,7 +285,7 @@ var logoStyles = tv({
|
|
|
259
285
|
paneIsOpen: paneIsOpen
|
|
260
286
|
}), " ").concat(className),
|
|
261
287
|
children: /*#__PURE__*/ _jsxs("div", {
|
|
262
|
-
className: embedded ? "" : "@container",
|
|
288
|
+
className: embedded ? "" : "@container/main",
|
|
263
289
|
children: [
|
|
264
290
|
!contentIsFullPage && /*#__PURE__*/ _jsx("div", {
|
|
265
291
|
className: logoStyles({
|
|
@@ -370,6 +396,15 @@ var logoStyles = tv({
|
|
|
370
396
|
},
|
|
371
397
|
children: /*#__PURE__*/ _jsx("div", {
|
|
372
398
|
className: "fixed cursor-pointer top-2.5 @md:hidden p-2 rounded-full bg-tint-10 hover:bg-tint-12 dark:bg-tint-alt-10 dark:hover:bg-tint-alt-12 left-56.5",
|
|
399
|
+
role: "button",
|
|
400
|
+
tabIndex: 0,
|
|
401
|
+
"aria-label": "Close navigation",
|
|
402
|
+
onKeyDown: function(e) {
|
|
403
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
404
|
+
e.preventDefault();
|
|
405
|
+
setShowMobileNavigation(false);
|
|
406
|
+
}
|
|
407
|
+
},
|
|
373
408
|
children: /*#__PURE__*/ _jsx(Icon, {
|
|
374
409
|
source: CancelMajor,
|
|
375
410
|
color: "alternate"
|
|
@@ -55,7 +55,24 @@ import Icon from "./Icon.js";
|
|
|
55
55
|
import Tooltip from "./Tooltip.js";
|
|
56
56
|
import { ChevronUpMinor, ChevronDownMinor } from "@shopify/polaris-icons";
|
|
57
57
|
import { useFrame } from "./Frame.js";
|
|
58
|
-
|
|
58
|
+
/**
|
|
59
|
+
* @component FrameSaveBar
|
|
60
|
+
*
|
|
61
|
+
* @description A save bar component embedded within the Frame layout that displays save and discard actions for unsaved form changes.
|
|
62
|
+
*
|
|
63
|
+
* @usage
|
|
64
|
+
* - DO: Use within a Frame layout to show a contextual save bar that integrates with the app shell.
|
|
65
|
+
* - DON'T: Use without a Frame parent.
|
|
66
|
+
*
|
|
67
|
+
* @accessibility
|
|
68
|
+
* - Keyboard accessible save and discard actions; message text describes the unsaved context.
|
|
69
|
+
*
|
|
70
|
+
* @alternative
|
|
71
|
+
* - If you need a standalone save bar outside Frame, use `ContextualSaveBar`.
|
|
72
|
+
*
|
|
73
|
+
* @param {Object} props.logo - Logo configuration.
|
|
74
|
+
* @returns {JSX.Element} The rendered FrameSaveBar component
|
|
75
|
+
*/ var styles = tv({
|
|
59
76
|
base: "Litho-FrameSaveBar fixed top-[var(--litho-header-offset)] right-0 left-0 h-[var(--litho-header-height)] px-4 @md:px-5 flex items-center gap-2 bg-surface-alternate dark:bg-brand transition-opacity transition-transform duration-300 transform",
|
|
60
77
|
variants: {
|
|
61
78
|
visible: {
|
|
@@ -94,11 +111,7 @@ var toggleStyles = tv({
|
|
|
94
111
|
paneIsOpen: false
|
|
95
112
|
}
|
|
96
113
|
});
|
|
97
|
-
|
|
98
|
-
* FrameSaveBar component sisplays a save bar at the top of the screen with contextual save and discard actions.
|
|
99
|
-
* @param {Object} props.logo - Logo configuration.
|
|
100
|
-
* @returns {JSX.Element} The rendered FrameSaveBar component
|
|
101
|
-
*/ function FrameSaveBar(param) {
|
|
114
|
+
function FrameSaveBar(param) {
|
|
102
115
|
var logo = param.logo;
|
|
103
116
|
var darkMode = useDarkMode().darkMode;
|
|
104
117
|
var paneIsOpen = useFrame().paneIsOpen;
|
|
@@ -145,6 +158,15 @@ var toggleStyles = tv({
|
|
|
145
158
|
onClick: function() {
|
|
146
159
|
return setTucked(false);
|
|
147
160
|
},
|
|
161
|
+
role: "button",
|
|
162
|
+
tabIndex: 0,
|
|
163
|
+
"aria-label": "Show save bar",
|
|
164
|
+
onKeyDown: function(e) {
|
|
165
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
166
|
+
e.preventDefault();
|
|
167
|
+
setTucked(false);
|
|
168
|
+
}
|
|
169
|
+
},
|
|
148
170
|
children: /*#__PURE__*/ _jsx(Icon, {
|
|
149
171
|
source: ChevronDownMinor,
|
|
150
172
|
color: "FrameSaveBar"
|
|
@@ -192,6 +214,15 @@ var toggleStyles = tv({
|
|
|
192
214
|
onClick: function() {
|
|
193
215
|
return setTucked(true);
|
|
194
216
|
},
|
|
217
|
+
role: "button",
|
|
218
|
+
tabIndex: 0,
|
|
219
|
+
"aria-label": "Hide save bar",
|
|
220
|
+
onKeyDown: function(e) {
|
|
221
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
222
|
+
e.preventDefault();
|
|
223
|
+
setTucked(true);
|
|
224
|
+
}
|
|
225
|
+
},
|
|
195
226
|
children: /*#__PURE__*/ _jsx(Icon, {
|
|
196
227
|
source: ChevronUpMinor,
|
|
197
228
|
color: "FrameSaveBar"
|
|
@@ -50,7 +50,31 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
50
50
|
}
|
|
51
51
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
52
52
|
import { tv } from "tailwind-variants";
|
|
53
|
-
|
|
53
|
+
/**
|
|
54
|
+
* @component Grid
|
|
55
|
+
*
|
|
56
|
+
* @description A CSS grid layout component for arranging children in a two-dimensional grid with configurable columns and gap.
|
|
57
|
+
*
|
|
58
|
+
* @usage
|
|
59
|
+
* - DO: Use for two-dimensional layouts with rows and columns.
|
|
60
|
+
* - DON'T: Use for simple linear stacking (use `Stack` instead).
|
|
61
|
+
*
|
|
62
|
+
* @accessibility
|
|
63
|
+
* - Grid is a layout utility; ensure grid items maintain a logical tab and reading order.
|
|
64
|
+
*
|
|
65
|
+
* @alternative
|
|
66
|
+
* - If you need one-dimensional flex layout, use `Stack` instead.
|
|
67
|
+
* - If you need a simple two-column layout, use `Layout`.
|
|
68
|
+
*
|
|
69
|
+
* @param {object} [props={}] - Props for the Grid component.
|
|
70
|
+
* @param {React.ReactNode} [props.children] - Content to render inside the Grid.
|
|
71
|
+
* @param {number|object} [props.columns] - Defines the number of columns in the grid. Can be a single number or an object with breakpoints as keys.
|
|
72
|
+
* @param {(number|'none'|'xs'|'sm'|'md'|'lg'|object)} [props.gap] - Defines the gap between grid items. Can be a number, semantic value ('none', 'xs', 'sm', 'md', 'lg'), or an object with breakpoints as keys. Semantic values: 'none' (0), 'xs' (1), 'sm' (2), 'md' (4), 'lg' (8).
|
|
73
|
+
* @param {"stretch"|"start"|"end"|"center"} [props.justify="stretch"] - Horizontal alignment of the grid items.
|
|
74
|
+
* @param {"stretch"|"start"|"end"|"center"} [props.align="stretch"] - Vertical alignment of the grid items.
|
|
75
|
+
* @param {string} [props.className] - Additional class names to apply to the grid.
|
|
76
|
+
* @returns {JSX.Element} A div element representing the grid container.
|
|
77
|
+
*/ // Map semantic gap values to numeric Tailwind values
|
|
54
78
|
var gapMap = {
|
|
55
79
|
none: "0",
|
|
56
80
|
xs: "1",
|
|
@@ -79,18 +103,7 @@ var styles = tv({
|
|
|
79
103
|
align: "stretch"
|
|
80
104
|
}
|
|
81
105
|
});
|
|
82
|
-
|
|
83
|
-
* Tailwind-based Grid component with customizable columns, gaps, alignment, and justification.
|
|
84
|
-
*
|
|
85
|
-
* @param {object} [props={}] - Props for the Grid component.
|
|
86
|
-
* @param {React.ReactNode} [props.children] - Content to render inside the Grid.
|
|
87
|
-
* @param {number|object} [props.columns] - Defines the number of columns in the grid. Can be a single number or an object with breakpoints as keys.
|
|
88
|
-
* @param {(number|'none'|'xs'|'sm'|'md'|'lg'|object)} [props.gap] - Defines the gap between grid items. Can be a number, semantic value ('none', 'xs', 'sm', 'md', 'lg'), or an object with breakpoints as keys. Semantic values: 'none' (0), 'xs' (1), 'sm' (2), 'md' (4), 'lg' (8).
|
|
89
|
-
* @param {"stretch"|"start"|"end"|"center"} [props.justify="stretch"] - Horizontal alignment of the grid items.
|
|
90
|
-
* @param {"stretch"|"start"|"end"|"center"} [props.align="stretch"] - Vertical alignment of the grid items.
|
|
91
|
-
* @param {string} [props.className] - Additional class names to apply to the grid.
|
|
92
|
-
* @returns {JSX.Element} A div element representing the grid container.
|
|
93
|
-
*/ function Grid() {
|
|
106
|
+
function Grid() {
|
|
94
107
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
95
108
|
var children = props.children, columns = props.columns, _props_gap = props.gap, gap = _props_gap === void 0 ? "md" : _props_gap, _props_justify = props.justify, justify = _props_justify === void 0 ? "stretch" : _props_justify, _props_align = props.align, align = _props_align === void 0 ? "stretch" : _props_align, className = props.className;
|
|
96
109
|
var columnClasses;
|
|
@@ -128,8 +141,11 @@ var styles = tv({
|
|
|
128
141
|
}
|
|
129
142
|
;
|
|
130
143
|
/**
|
|
131
|
-
*
|
|
132
|
-
*
|
|
144
|
+
* @component Grid.Cell
|
|
145
|
+
*
|
|
146
|
+
* @usage
|
|
147
|
+
* - DO: Wrap grid children to control column/row span.
|
|
148
|
+
*
|
|
133
149
|
* @param {object} [props={}] - Props for the Cell component.
|
|
134
150
|
* @param {number|object} [props.columnSpan] - Defines the column span for the cell. Can be a single number or an object with breakpoints as keys.
|
|
135
151
|
* @param {React.ReactNode} [props.children] - Content to render inside the cell.
|
|
@@ -79,7 +79,43 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
79
79
|
}
|
|
80
80
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
81
81
|
import { tv } from "tailwind-variants";
|
|
82
|
-
|
|
82
|
+
/**
|
|
83
|
+
* @component HorizontalStack
|
|
84
|
+
*
|
|
85
|
+
* @description A horizontal flex layout component for arranging children in a row with consistent spacing and alignment.
|
|
86
|
+
*
|
|
87
|
+
* @deprecated Use `Stack` with `horizontal` boolean prop set to true instead. This component will be removed in a future release.
|
|
88
|
+
*
|
|
89
|
+
* @usage
|
|
90
|
+
* - DO: Arrange elements horizontally with consistent spacing.
|
|
91
|
+
* - DON'T: Use for vertical stacking (use `VerticalStack` or `Stack` instead).
|
|
92
|
+
*
|
|
93
|
+
* @accessibility
|
|
94
|
+
* - Ensure content order in the DOM matches the visual horizontal order for screen readers.
|
|
95
|
+
*
|
|
96
|
+
* @alternative
|
|
97
|
+
* - If you need vertical stacking, use `VerticalStack`.
|
|
98
|
+
* - If you need flexible direction, use `Stack`.
|
|
99
|
+
*
|
|
100
|
+
* @param {Object} [props={}] - Component props.
|
|
101
|
+
* @param {string} [props.as='div'] - The HTML element to render. Defaults to `div`.
|
|
102
|
+
* @param {React.ReactNode} [props.children] - Child elements to render inside the stack.
|
|
103
|
+
* @param {('none'|'xs'|'sm'|'md'|'lg'|'0'|'px'|'0.5'|'1'|'2'|'3'|'4'|'5'|'6'|'8'|'10')} [props.gap] - Spacing between children. Semantic options: 'none', 'xs' (1), 'sm' (2), 'md' (4), 'lg' (8). Numeric options: '0', 'px', '0.5', '1', '2', '3', '4', '5', '6', '8', '10'.
|
|
104
|
+
* @param {string} [props.id] - Optional ID for the component.
|
|
105
|
+
* @param {string} [props.className] - Additional custom class names to apply to the component.
|
|
106
|
+
* @param {string} [props.align='start'] - Horizontal alignment of children. Options: 'start', 'center', 'end'.
|
|
107
|
+
* @param {string} [props.blockAlign='start'] - Vertical alignment of children. Options: 'start', 'center', 'end'.
|
|
108
|
+
* @param {boolean} [props.wrap=true] - Whether children should wrap to the next line if necessary. Defaults to `true`.
|
|
109
|
+
* @param {Object} [restProps] - Additional props passed to the root element.
|
|
110
|
+
*
|
|
111
|
+
* @returns {JSX.Element} The rendered HorizontalStack component.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* <HorizontalStack gap="2" align="center" blockAlign="start">
|
|
115
|
+
* <div>Item 1</div>
|
|
116
|
+
* <div>Item 2</div>
|
|
117
|
+
* </HorizontalStack>
|
|
118
|
+
*/ var styles = tv({
|
|
83
119
|
base: "Litho-HorizontalStack flex flex-row",
|
|
84
120
|
variants: {
|
|
85
121
|
gap: {
|
|
@@ -125,30 +161,7 @@ var styles = tv({
|
|
|
125
161
|
blockAlign: "start"
|
|
126
162
|
}
|
|
127
163
|
});
|
|
128
|
-
|
|
129
|
-
* HorizontalStack Component
|
|
130
|
-
*
|
|
131
|
-
* A flexible horizontal stack component with customizable spacing, alignment, and wrapping.
|
|
132
|
-
*
|
|
133
|
-
* @param {Object} [props={}] - Component props.
|
|
134
|
-
* @param {string} [props.as='div'] - The HTML element to render. Defaults to `div`.
|
|
135
|
-
* @param {React.ReactNode} [props.children] - Child elements to render inside the stack.
|
|
136
|
-
* @param {('none'|'xs'|'sm'|'md'|'lg'|'0'|'px'|'0.5'|'1'|'2'|'3'|'4'|'5'|'6'|'8'|'10')} [props.gap] - Spacing between children. Semantic options: 'none', 'xs' (1), 'sm' (2), 'md' (4), 'lg' (8). Numeric options: '0', 'px', '0.5', '1', '2', '3', '4', '5', '6', '8', '10'.
|
|
137
|
-
* @param {string} [props.id] - Optional ID for the component.
|
|
138
|
-
* @param {string} [props.className] - Additional custom class names to apply to the component.
|
|
139
|
-
* @param {string} [props.align='start'] - Horizontal alignment of children. Options: 'start', 'center', 'end'.
|
|
140
|
-
* @param {string} [props.blockAlign='start'] - Vertical alignment of children. Options: 'start', 'center', 'end'.
|
|
141
|
-
* @param {boolean} [props.wrap=true] - Whether children should wrap to the next line if necessary. Defaults to `true`.
|
|
142
|
-
* @param {Object} [restProps] - Additional props passed to the root element.
|
|
143
|
-
*
|
|
144
|
-
* @returns {JSX.Element} The rendered HorizontalStack component.
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* <HorizontalStack gap="2" align="center" blockAlign="start" wrap={false}>
|
|
148
|
-
* <div>Item 1</div>
|
|
149
|
-
* <div>Item 2</div>
|
|
150
|
-
* </HorizontalStack>
|
|
151
|
-
*/ function HorizontalStack() {
|
|
164
|
+
function HorizontalStack() {
|
|
152
165
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
153
166
|
var _props_as = props.as, as = _props_as === void 0 ? 'div' : _props_as, children = props.children, gap = props.gap, id = props.id, className = props.className, align = props.align, blockAlign = props.blockAlign, _props_wrap = props.wrap, wrap = _props_wrap === void 0 ? true : _props_wrap, restProps = _object_without_properties(props, [
|
|
154
167
|
"as",
|