@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
|
@@ -1,49 +1,20 @@
|
|
|
1
|
+
export function useCard(): {
|
|
2
|
+
nested: boolean;
|
|
3
|
+
};
|
|
1
4
|
export default Card;
|
|
2
|
-
|
|
3
|
-
* Card component for creating styled containers with optional headers, actions, and children.
|
|
4
|
-
*
|
|
5
|
-
* @component
|
|
6
|
-
* @param {Object} props - Props for the Card component.
|
|
7
|
-
* @param {boolean} [props.allowOverflow=false] - Allows content to overflow the Card boundaries.
|
|
8
|
-
* @param {React.ReactNode} [props.children] - Child elements to render inside the Card.
|
|
9
|
-
* @param {boolean} [props.hideOnPrint] - Hides the Card when printing.
|
|
10
|
-
* @param {string|React.ReactNode} [props.title] - Title of the Card.
|
|
11
|
-
* @param {string} [props.titleVariant='headingMd'] - Typography variant for the Card title.
|
|
12
|
-
* @param {string} [props.description] - Description of the Card.
|
|
13
|
-
* @param {React.ElementType|Object} [props.icon] - Icon to render alongside the title.
|
|
14
|
-
* @param {React.ReactNode|import("./Tooltip").TooltipContentObject} [props.tooltip] - Tooltip content for the title.
|
|
15
|
-
* @param {string} [props.tooltipPreferredPosition='above'] - Preferred position for the tooltip.
|
|
16
|
-
* @param {boolean} [props.outlined=false] - Applies outlined styling to the Card.
|
|
17
|
-
* @param {string} [props.shadow='default'] - Applies a shadow to the Card. Can be 'default', or 'none'.
|
|
18
|
-
* @param {boolean} [props.highlighted=false] - Applies highlighted styling to the Card.
|
|
19
|
-
* @param {boolean} [props.subdued=false] - Applies subdued styling to the Card.
|
|
20
|
-
* @param {boolean} [props.alternate=false] - Applies alternate styling to the Card.
|
|
21
|
-
* @param {boolean} [props.padded=false] - Adds padding to the Card body.
|
|
22
|
-
* @param {boolean} [props.loading=false] - Shows a loading spinner in place of the title.
|
|
23
|
-
* @param {boolean} [props.paddedHalf=false] - Adds half padding to the Card body.
|
|
24
|
-
* @param {boolean} [props.removeHeaderBottomPadding=false] - Removes bottom padding from the header.
|
|
25
|
-
* @param {Function} [props.onClick] - Click handler for the Card, making it clickable.
|
|
26
|
-
* @param {Object} [props.emptyState={}] - Configures the empty state of the Card.
|
|
27
|
-
* @param {Object} [props.action] - Action button or configuration to render in the Card header.
|
|
28
|
-
* @param {string} [props.className] - Additional classes to apply to the Card.
|
|
29
|
-
* @param {string} [props.headerClassName] - Additional classes to apply to the Card header.
|
|
30
|
-
* @param {React.ReactNode} [props.accessory] - Accessory element to render in the header.
|
|
31
|
-
* @param {boolean} [props.fullWidthOnMobile=true] - Makes the Card full width on mobile.
|
|
32
|
-
* @param {boolean} [props.roundedOnMobile=false] - Makes the Card rounded on mobile.
|
|
33
|
-
* @returns {React.ReactElement} The rendered Card component.
|
|
34
|
-
*/
|
|
35
|
-
declare function Card({ allowOverflow, roundedOnMobile, children, hideOnPrint, title, titleVariant, description, icon, tooltip, tooltipPreferredPosition, outlined, highlighted, subdued, alternate, padded, loading, paddedHalf, removeHeaderBottomPadding, onClick, emptyState, action, className, headerClassName, accessory, fullHeightBody, fullWidthOnMobile, shadow, }: {
|
|
5
|
+
declare function Card({ allowOverflow, roundedOnMobile, children, hideOnPrint, title, titleVariant, description, descriptionVariant, icon, tooltip, tooltipPreferredPosition, outlined, highlighted, subdued, alternate, padded, loading, paddedHalf, removeHeaderBottomPadding, onClick, emptyState, action, className, headerClassName, accessory, fullHeightBody, fullWidthOnMobile, shadow, nested: nestedProp, }: {
|
|
36
6
|
allowOverflow?: boolean;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
7
|
+
roundedOnMobile: any;
|
|
8
|
+
children: any;
|
|
9
|
+
hideOnPrint: any;
|
|
10
|
+
title: any;
|
|
40
11
|
titleVariant?: string;
|
|
41
|
-
description
|
|
42
|
-
|
|
43
|
-
|
|
12
|
+
description: any;
|
|
13
|
+
descriptionVariant?: string;
|
|
14
|
+
icon: any;
|
|
15
|
+
tooltip: any;
|
|
44
16
|
tooltipPreferredPosition?: string;
|
|
45
17
|
outlined?: boolean;
|
|
46
|
-
shadow?: string;
|
|
47
18
|
highlighted?: boolean;
|
|
48
19
|
subdued?: boolean;
|
|
49
20
|
alternate?: boolean;
|
|
@@ -51,20 +22,25 @@ declare function Card({ allowOverflow, roundedOnMobile, children, hideOnPrint, t
|
|
|
51
22
|
loading?: boolean;
|
|
52
23
|
paddedHalf?: boolean;
|
|
53
24
|
removeHeaderBottomPadding?: boolean;
|
|
54
|
-
onClick
|
|
55
|
-
emptyState?:
|
|
56
|
-
action
|
|
57
|
-
className
|
|
58
|
-
headerClassName
|
|
59
|
-
accessory
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
25
|
+
onClick: any;
|
|
26
|
+
emptyState?: {};
|
|
27
|
+
action: any;
|
|
28
|
+
className: any;
|
|
29
|
+
headerClassName: any;
|
|
30
|
+
accessory: any;
|
|
31
|
+
fullHeightBody?: boolean;
|
|
32
|
+
fullWidthOnMobile: any;
|
|
33
|
+
shadow?: string;
|
|
34
|
+
nested: any;
|
|
35
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
63
36
|
declare namespace Card {
|
|
64
37
|
/**
|
|
65
|
-
*
|
|
38
|
+
* @component Card.Section
|
|
39
|
+
*
|
|
40
|
+
* @usage
|
|
41
|
+
* - DO: Divide a Card into logical content segments.
|
|
42
|
+
* - DON'T: Nest sections within sections.
|
|
66
43
|
*
|
|
67
|
-
* @component
|
|
68
44
|
* @param {Object} props - Props for the Section component.
|
|
69
45
|
* @param {string|React.ReactNode} [props.title] - Title of the Section.
|
|
70
46
|
* @param {string} [props.titleVariant='headingSm'] - Typography variant for the Section title.
|
|
@@ -82,12 +58,13 @@ declare namespace Card {
|
|
|
82
58
|
* @param {React.ElementType|Object} [props.icon] - Icon to render alongside the title.
|
|
83
59
|
* @param {string} [props.tooltip] - Tooltip content for the title.
|
|
84
60
|
* @param {string} [props.description] - Description text for the Section.
|
|
61
|
+
* @param {string} [props.descriptionVariant='bodyMd'] - Typography variant for the Section description.
|
|
85
62
|
* @param {React.ReactNode} [props.accessory] - Accessory element to render in the Section header.
|
|
86
63
|
* @param {Object} [props.emptyState={}] - Configures the empty state of the Section.
|
|
87
64
|
*
|
|
88
65
|
* @returns {React.ReactElement} The rendered Section component.
|
|
89
66
|
*/
|
|
90
|
-
function Section({ title, titleVariant, action, children, padded, paddedHalf, isFirst, cardHasHeader, borderBottom, borderTop, subdued, headerGap, gap, icon, tooltip, description, accessory, emptyState, className, sectionBodyClassName, }: {
|
|
67
|
+
function Section({ title, titleVariant, action, children, padded, paddedHalf, isFirst, cardHasHeader, borderBottom, borderTop, subdued, headerGap, gap, icon, tooltip, description, descriptionVariant, accessory, emptyState, className, sectionBodyClassName, }: {
|
|
91
68
|
title?: string | React.ReactNode;
|
|
92
69
|
titleVariant?: string;
|
|
93
70
|
action?: any;
|
|
@@ -104,6 +81,7 @@ declare namespace Card {
|
|
|
104
81
|
icon?: React.ElementType | any;
|
|
105
82
|
tooltip?: string;
|
|
106
83
|
description?: string;
|
|
84
|
+
descriptionVariant?: string;
|
|
107
85
|
accessory?: React.ReactNode;
|
|
108
86
|
emptyState?: any;
|
|
109
87
|
}): React.ReactElement;
|
|
@@ -111,9 +89,14 @@ declare namespace Card {
|
|
|
111
89
|
let displayName: string;
|
|
112
90
|
}
|
|
113
91
|
/**
|
|
114
|
-
*
|
|
92
|
+
* @component Card.ClickableRow
|
|
93
|
+
*
|
|
94
|
+
* @usage
|
|
95
|
+
* - DO: Use for rows that navigate or trigger actions.
|
|
96
|
+
*
|
|
97
|
+
* @accessibility
|
|
98
|
+
* - Renders as a clickable element; ensure it is keyboard accessible and has a clear action label.
|
|
115
99
|
*
|
|
116
|
-
* @component
|
|
117
100
|
* @param {Object} props - Props for the ClickableRow component.
|
|
118
101
|
* @param {React.ReactNode} [props.children] - Child elements to render inside the row.
|
|
119
102
|
* @param {Function} [props.onClick] - Click handler for the row.
|
|
@@ -121,21 +104,29 @@ declare namespace Card {
|
|
|
121
104
|
* @param {string} [props.url] - URL to open when the row is clicked.
|
|
122
105
|
* @param {string} [props.className] - Additional classes to apply to the row.
|
|
123
106
|
* @param {boolean} [props.disabled=false] - Disables interaction with the row.
|
|
107
|
+
* @param {string} [props.accessibilityLabel] - Accessible label for the row (aria-label).
|
|
124
108
|
*
|
|
125
109
|
* @returns {React.ReactElement} The rendered ClickableRow component.
|
|
126
110
|
*/
|
|
127
|
-
function ClickableRow({ children, onClick, id, url, disabled, className }: {
|
|
111
|
+
function ClickableRow({ children, onClick, id, url, disabled, className, accessibilityLabel }: {
|
|
128
112
|
children?: React.ReactNode;
|
|
129
113
|
onClick?: Function;
|
|
130
114
|
id?: string;
|
|
131
115
|
url?: string;
|
|
132
116
|
className?: string;
|
|
133
117
|
disabled?: boolean;
|
|
118
|
+
accessibilityLabel?: string;
|
|
134
119
|
}): React.ReactElement;
|
|
135
120
|
namespace ClickableRow {
|
|
136
121
|
let displayName_1: string;
|
|
137
122
|
export { displayName_1 as displayName };
|
|
138
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Rows container component for grouping multiple Card.Row elements.
|
|
126
|
+
*
|
|
127
|
+
* @usage
|
|
128
|
+
* - DO: Use to group multiple `Card.Row` elements with consistent spacing.
|
|
129
|
+
*/
|
|
139
130
|
function Rows({ children }: {
|
|
140
131
|
children: any;
|
|
141
132
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -144,9 +135,11 @@ declare namespace Card {
|
|
|
144
135
|
export { displayName_2 as displayName };
|
|
145
136
|
}
|
|
146
137
|
/**
|
|
147
|
-
*
|
|
138
|
+
* @component Card.Row
|
|
139
|
+
*
|
|
140
|
+
* @usage
|
|
141
|
+
* - DO: Use for individual data rows within `Card.Rows`.
|
|
148
142
|
*
|
|
149
|
-
* @component
|
|
150
143
|
* @param {Object} props - Props for the Row component.
|
|
151
144
|
* @param {React.ReactNode} [props.children] - Child elements to render inside the row.
|
|
152
145
|
* @param {Function} [props.onClick] - Click handler for the row.
|
|
@@ -154,16 +147,18 @@ declare namespace Card {
|
|
|
154
147
|
* @param {string} [props.url] - URL to open when the row is clicked.
|
|
155
148
|
* @param {string} [props.className] - Additional classes to apply to the row.
|
|
156
149
|
* @param {boolean} [props.disabled=false] - Disables interaction with the row.
|
|
150
|
+
* @param {string} [props.accessibilityLabel] - Accessible label for the row (aria-label).
|
|
157
151
|
*
|
|
158
152
|
* @returns {React.ReactElement} The rendered Row component.
|
|
159
153
|
*/
|
|
160
|
-
function Row({ children, onClick, id, url, disabled, className }: {
|
|
154
|
+
function Row({ children, onClick, id, url, disabled, className, accessibilityLabel }: {
|
|
161
155
|
children?: React.ReactNode;
|
|
162
156
|
onClick?: Function;
|
|
163
157
|
id?: string;
|
|
164
158
|
url?: string;
|
|
165
159
|
className?: string;
|
|
166
160
|
disabled?: boolean;
|
|
161
|
+
accessibilityLabel?: string;
|
|
167
162
|
}): React.ReactElement;
|
|
168
163
|
namespace Row {
|
|
169
164
|
let displayName_3: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../components/Card.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../components/Card.js"],"names":[],"mappings":"AA6sBO;;EAAmD;;AAhgB1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAwKC;;IA2FD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IAEH,mQAvBG;QAAuC,KAAK,GAApC,MAAM,GAAC,KAAK,CAAC,SAAS;QACP,YAAY,GAA3B,MAAM;QACS,MAAM;QACG,QAAQ,GAAhC,KAAK,CAAC,SAAS;QACC,MAAM,GAAtB,OAAO;QACS,UAAU,GAA1B,OAAO;QACS,OAAO,GAAvB,OAAO;QACS,aAAa,GAA7B,OAAO;QACS,YAAY,GAA5B,OAAO;QACS,SAAS,GAAzB,OAAO;QACS,OAAO,GAAvB,OAAO;QACQ,SAAS,GAAxB,MAAM;QACS,GAAG,GAAlB,MAAM;QAC2B,IAAI,GAArC,KAAK,CAAC,WAAW,MAAO;QACT,OAAO,GAAtB,MAAM;QACS,WAAW,GAA1B,MAAM;QACS,kBAAkB,GAAjC,MAAM;QACkB,SAAS,GAAjC,KAAK,CAAC,SAAS;QACA,UAAU;KAEjC,GAAU,KAAK,CAAC,YAAY,CA2F9B;;;;IAkBD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,+FAVG;QAAgC,QAAQ,GAAhC,KAAK,CAAC,SAAS;QACE,OAAO;QACT,EAAE,GAAjB,MAAM;QACS,GAAG,GAAlB,MAAM;QACS,SAAS,GAAxB,MAAM;QACU,QAAQ,GAAxB,OAAO;QACQ,kBAAkB,GAAjC,MAAM;KAEd,GAAU,KAAK,CAAC,YAAY,CA8B9B;;;;;IAGD;;;;;OAKG;IACH;;gDAMC;;;;;IAGD;;;;;;;;;;;;;;;;OAgBG;IACH,sFAVG;QAAgC,QAAQ,GAAhC,KAAK,CAAC,SAAS;QACE,OAAO;QACT,EAAE,GAAjB,MAAM;QACS,GAAG,GAAlB,MAAM;QACS,SAAS,GAAxB,MAAM;QACU,QAAQ,GAAxB,OAAO;QACQ,kBAAkB,GAAjC,MAAM;KAEd,GAAU,KAAK,CAAC,YAAY,CAgC9B;;;;;;kBAxsBiB,OAAO"}
|
|
@@ -1,65 +1,3 @@
|
|
|
1
1
|
export default Checkbox;
|
|
2
|
-
|
|
3
|
-
* Checkbox Component
|
|
4
|
-
*
|
|
5
|
-
* A custom checkbox component with support for labels, help text, and extensive styling using Tailwind Variants (tv).
|
|
6
|
-
*
|
|
7
|
-
* @component
|
|
8
|
-
*
|
|
9
|
-
* @param {Object} props - Props for the Checkbox component.
|
|
10
|
-
* @param {string|React.ReactNode} [props.label] - The label for the checkbox. Can be a string or a React element (e.g., text with a badge).
|
|
11
|
-
* @param {boolean} [props.labelHidden=false] - If true, hides the label visually but keeps it available for screen readers.
|
|
12
|
-
* @param {string} [props.id] - The unique identifier for the checkbox input.
|
|
13
|
-
* @param {string} [props.name] - The name attribute for the checkbox input.
|
|
14
|
-
* @param {string} [props.value] - The value attribute for the checkbox input.
|
|
15
|
-
* @param {string} [props.error] - An error message associated with the checkbox, if any.
|
|
16
|
-
* @param {boolean} [props.checked=false] - Indicates whether the checkbox is checked.
|
|
17
|
-
* @param {boolean} [props.disabled=false] - Indicates whether the checkbox is disabled.
|
|
18
|
-
* @param {string} [props.helpText] - Additional descriptive text for the checkbox.
|
|
19
|
-
* @param {React.ReactNode|import("./Tooltip").TooltipContentObject} [props.tooltip] - Tooltip content for the checkbox label.
|
|
20
|
-
* @param {boolean} [props.indeterminate=false] - Indicates whether the checkbox is in an indeterminate state (mixed/partial selection).
|
|
21
|
-
* @param {string} [props.className] - Additional CSS classes to apply to the checkbox container.
|
|
22
|
-
* @param {function} [props.onChange] - Callback function called when the checkbox state changes.
|
|
23
|
-
* @param {function} [props.onFocus] - Callback function called when the checkbox gains focus.
|
|
24
|
-
* @param {function} [props.onBlur] - Callback function called when the checkbox loses focus.
|
|
25
|
-
*
|
|
26
|
-
* @returns {JSX.Element} The rendered Checkbox component.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* // Basic usage with string label
|
|
30
|
-
* <Checkbox
|
|
31
|
-
* label="Accept Terms"
|
|
32
|
-
* id="accept-terms"
|
|
33
|
-
* name="terms"
|
|
34
|
-
* checked={true}
|
|
35
|
-
* disabled={false}
|
|
36
|
-
* helpText="You must accept the terms to proceed."
|
|
37
|
-
* onChange={(e) => console.log('Checkbox changed:', e.target.checked)}
|
|
38
|
-
* />
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* // With React element label (e.g., text with badge)
|
|
42
|
-
* <Checkbox
|
|
43
|
-
* label={<Stack horizontal gap="xs" blockAlign="center"><span>Premium Feature</span><Badge>Pro</Badge></Stack>}
|
|
44
|
-
* checked={false}
|
|
45
|
-
* onChange={(checked) => console.log('Checkbox changed:', checked)}
|
|
46
|
-
* />
|
|
47
|
-
*/
|
|
48
|
-
declare function Checkbox(props?: {
|
|
49
|
-
label?: string | React.ReactNode;
|
|
50
|
-
labelHidden?: boolean;
|
|
51
|
-
id?: string;
|
|
52
|
-
name?: string;
|
|
53
|
-
value?: string;
|
|
54
|
-
error?: string;
|
|
55
|
-
checked?: boolean;
|
|
56
|
-
disabled?: boolean;
|
|
57
|
-
helpText?: string;
|
|
58
|
-
tooltip?: React.ReactNode | import("./Tooltip").TooltipContentObject;
|
|
59
|
-
indeterminate?: boolean;
|
|
60
|
-
className?: string;
|
|
61
|
-
onChange?: Function;
|
|
62
|
-
onFocus?: Function;
|
|
63
|
-
onBlur?: Function;
|
|
64
|
-
}): JSX.Element;
|
|
2
|
+
declare function Checkbox(props?: {}): import("react/jsx-runtime").JSX.Element;
|
|
65
3
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../components/Checkbox.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../components/Checkbox.js"],"names":[],"mappings":";AA8GA,+EA0GC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxCard.d.ts","sourceRoot":"","sources":["../../../components/CheckboxCard.js"],"names":[],"mappings":";AA8FA,mFA4HC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxCardGroup.d.ts","sourceRoot":"","sources":["../../../components/CheckboxCardGroup.js"],"names":[],"mappings":";AAiIA,wFAiIC"}
|
|
@@ -24,46 +24,5 @@ export type ChoiceListItem = {
|
|
|
24
24
|
* @property {boolean} [disabled=false] - Whether the choice is disabled.
|
|
25
25
|
* @property {React.ReactNode} [renderChildren] - A function that returns a React node to render as children of the choice.
|
|
26
26
|
*/
|
|
27
|
-
|
|
28
|
-
* A ChoiceList component for rendering a list of selectable options.
|
|
29
|
-
*
|
|
30
|
-
* @component
|
|
31
|
-
*
|
|
32
|
-
* @param {Object} props - The properties object.
|
|
33
|
-
* @param {string} [props.title] - The title of the choice list.
|
|
34
|
-
* @param {boolean} [props.titleHidden=false] - Whether to hide the title visually.
|
|
35
|
-
* @param {boolean} [props.allowMultiple=false] - Whether multiple selections are allowed.
|
|
36
|
-
* @param {Array<ChoiceListItem>} props.choices - The available choices for selection.
|
|
37
|
-
* @param {Array} props.selected - The currently selected values.
|
|
38
|
-
* @param {Function} props.onChange - Callback when the selection changes. Receives the updated array of selected values.
|
|
39
|
-
* @param {string} [props.error] - Error message to display, if any.
|
|
40
|
-
* @param {boolean} [props.disabled=false] - Whether the entire choice list is disabled.
|
|
41
|
-
* @param {string} [props.name] - The name attribute for the choice inputs (used for grouping radio buttons).
|
|
42
|
-
*
|
|
43
|
-
* @returns {JSX.Element} A rendered choice list component.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* <ChoiceList
|
|
47
|
-
* title="Select your options"
|
|
48
|
-
* allowMultiple={true}
|
|
49
|
-
* choices={[
|
|
50
|
-
* { value: "option1", label: "Option 1" },
|
|
51
|
-
* { value: "option2", label: "Option 2" },
|
|
52
|
-
* ]}
|
|
53
|
-
* selected={["option1"]}
|
|
54
|
-
* onChange={(selected) => console.log(selected)}
|
|
55
|
-
* error="Please select at least one option."
|
|
56
|
-
* />
|
|
57
|
-
*/
|
|
58
|
-
declare function ChoiceList(props?: {
|
|
59
|
-
title?: string;
|
|
60
|
-
titleHidden?: boolean;
|
|
61
|
-
allowMultiple?: boolean;
|
|
62
|
-
choices: Array<ChoiceListItem>;
|
|
63
|
-
selected: any[];
|
|
64
|
-
onChange: Function;
|
|
65
|
-
error?: string;
|
|
66
|
-
disabled?: boolean;
|
|
67
|
-
name?: string;
|
|
68
|
-
}): JSX.Element;
|
|
27
|
+
declare function ChoiceList(props?: {}): import("react/jsx-runtime").JSX.Element;
|
|
69
28
|
//# sourceMappingURL=ChoiceList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChoiceList.d.ts","sourceRoot":"","sources":["../../../components/ChoiceList.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"ChoiceList.d.ts","sourceRoot":"","sources":["../../../components/ChoiceList.js"],"names":[],"mappings":";;;;;WA0Dc,MAAM;;;;WACN,MAAM;;;;eACN,OAAO;;;;qBACP,KAAK,CAAC,SAAS;;AAL7B;;;;;;GAMG;AAEH,iFAoEC"}
|
|
@@ -1,28 +1,3 @@
|
|
|
1
1
|
export default Code;
|
|
2
|
-
|
|
3
|
-
* A code component that renders code blocks with consistent styling.
|
|
4
|
-
*
|
|
5
|
-
* @param {Object} props - Properties to customize the code component.
|
|
6
|
-
* @param {string} [props.className] - Additional CSS class names.
|
|
7
|
-
* @param {Function} [props.onCopy] - Function to handle copy action.
|
|
8
|
-
* @param {React.ReactNode} props.children - The code content to be displayed.
|
|
9
|
-
* @returns {JSX.Element} Rendered code block with applied styles.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* <Code>
|
|
13
|
-
* {`const example = "code";`}
|
|
14
|
-
* </Code>
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* <Code onCopy={() => {
|
|
18
|
-
* navigator.clipboard.writeText(children);
|
|
19
|
-
* }}>
|
|
20
|
-
* {`const example = "code";`}
|
|
21
|
-
* </Code>
|
|
22
|
-
*/
|
|
23
|
-
declare function Code(props?: {
|
|
24
|
-
className?: string;
|
|
25
|
-
onCopy?: Function;
|
|
26
|
-
children: React.ReactNode;
|
|
27
|
-
}): JSX.Element;
|
|
2
|
+
declare function Code(props?: {}): import("react/jsx-runtime").JSX.Element;
|
|
28
3
|
//# sourceMappingURL=Code.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../components/Code.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../components/Code.js"],"names":[],"mappings":";AAmDA,2EAqDC"}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
1
|
export default Collapsible;
|
|
2
|
-
|
|
3
|
-
* Collapsible Component
|
|
4
|
-
*
|
|
5
|
-
* @component
|
|
6
|
-
* @param {Object} props - Properties passed to component.
|
|
7
|
-
* @param {boolean} props.open - If true, the collapsible is open (expanded); otherwise, it's closed (collapsed).
|
|
8
|
-
* @param {React.ReactNode} props.children - Content displayed inside the collapsible component.
|
|
9
|
-
* @param {string} [props.className] - Additional CSS classes to append to the generated styles.
|
|
10
|
-
* @returns {JSX.Element} A collapsible container that shows or hides its children based on the `open` state.
|
|
11
|
-
*/
|
|
12
|
-
declare function Collapsible(props?: {
|
|
13
|
-
open: boolean;
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
className?: string;
|
|
16
|
-
}): JSX.Element;
|
|
2
|
+
declare function Collapsible(props?: {}): import("react/jsx-runtime").JSX.Element;
|
|
17
3
|
//# sourceMappingURL=Collapsible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../components/Collapsible.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../components/Collapsible.js"],"names":[],"mappings":";AAoCA,kFAQC"}
|
|
@@ -1,36 +1,15 @@
|
|
|
1
1
|
export default ColorField;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* presetColors={['#ff0000', '#00ff00', '#0000ff']}
|
|
16
|
-
* />
|
|
17
|
-
*
|
|
18
|
-
* @param {Object} props - Component props
|
|
19
|
-
* @param {string} props.label - The label displayed above the color value
|
|
20
|
-
* @param {string} props.name - The name associated with the color field, used as a key
|
|
21
|
-
* @param {string} props.value - The currently selected color value; can be a hex string or CSS variable
|
|
22
|
-
* @param {function} props.onChange - Callback function that receives the new color value when changed
|
|
23
|
-
* @param {number} [props.zIndexOverride] - Optional z-index value to override the default popover z-index
|
|
24
|
-
* @param {string[]} [props.presetColors=[]] - Optional array of preset colors shown in the picker
|
|
25
|
-
*
|
|
26
|
-
* @returns {JSX.Element} A color picker field with label and current value preview
|
|
27
|
-
*/
|
|
28
|
-
declare function ColorField({ label, name, value: _value, onChange, zIndexOverride, presetColors, }: {
|
|
29
|
-
label: string;
|
|
30
|
-
name: string;
|
|
31
|
-
value: string;
|
|
32
|
-
onChange: Function;
|
|
33
|
-
zIndexOverride?: number;
|
|
34
|
-
presetColors?: string[];
|
|
35
|
-
}): JSX.Element;
|
|
2
|
+
declare function ColorField({ label, name, value: _value, onChange, zIndexOverride, presetColors, variant, placeholder, helpText, error, disabled, }: {
|
|
3
|
+
label: any;
|
|
4
|
+
name: any;
|
|
5
|
+
value: any;
|
|
6
|
+
onChange: any;
|
|
7
|
+
zIndexOverride: any;
|
|
8
|
+
presetColors?: any[];
|
|
9
|
+
variant?: string;
|
|
10
|
+
placeholder: any;
|
|
11
|
+
helpText: any;
|
|
12
|
+
error: any;
|
|
13
|
+
disabled: any;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
36
15
|
//# sourceMappingURL=ColorField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorField.d.ts","sourceRoot":"","sources":["../../../components/ColorField.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ColorField.d.ts","sourceRoot":"","sources":["../../../components/ColorField.js"],"names":[],"mappings":";AAyEA;;;;;;;;;;;;4CAiIC"}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
export default ContextualSaveBar;
|
|
2
2
|
/**
|
|
3
|
-
* ContextualSaveBar
|
|
3
|
+
* @component ContextualSaveBar
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* @description A floating save bar that appears when a form has unsaved changes, providing save and discard actions.
|
|
6
|
+
*
|
|
7
|
+
* @usage
|
|
8
|
+
* - DO: Display at the top of a page when a form has unsaved changes with save/discard actions.
|
|
9
|
+
* - DON'T: Use inside a modal (use modal's own actions).
|
|
10
|
+
*
|
|
11
|
+
* @accessibility
|
|
12
|
+
* - Save bar should be keyboard accessible; ensure save and discard buttons have clear labels.
|
|
13
|
+
*
|
|
14
|
+
* @alternative
|
|
15
|
+
* - If you need a save bar integrated with the Frame layout, use `FrameSaveBar`.
|
|
16
|
+
* - If you need form-level submit, use `Form`.
|
|
9
17
|
*
|
|
10
|
-
* @component
|
|
11
18
|
* @param {Object} props - Component properties.
|
|
12
19
|
* @param {Object} [props.saveAction] - The action for the "Save" button. Contains `onAction`, `loading`, `accessibilityLabel`, and `disabled`.
|
|
13
20
|
* @param {Object} [props.discardAction] - The action for the "Discard" button. Contains `onAction`, `loading`, `accessibilityLabel`, and `disabled`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextualSaveBar.d.ts","sourceRoot":"","sources":["../../../components/ContextualSaveBar.js"],"names":[],"mappings":";AAKA
|
|
1
|
+
{"version":3,"file":"ContextualSaveBar.d.ts","sourceRoot":"","sources":["../../../components/ContextualSaveBar.js"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,4EALG;IAAuB,UAAU;IACV,aAAa;IACb,OAAO,GAAtB,MAAM;CACd,GAAU,IAAI,CAqChB"}
|
|
@@ -1,66 +1,3 @@
|
|
|
1
1
|
export default DatePicker;
|
|
2
|
-
|
|
3
|
-
* DatePicker component for selecting dates and date ranges.
|
|
4
|
-
*
|
|
5
|
-
* @param {Object} props - Component properties.
|
|
6
|
-
* @param {string} [props.label] - Label for the DatePicker.
|
|
7
|
-
* @param {Object|null} [props.labelAction] - Action button for the label.
|
|
8
|
-
* @param {function} [props.onBlur] - Callback function for when the field loses focus.
|
|
9
|
-
* @param {string} [props.placeholder="Select date..."] - Placeholder text.
|
|
10
|
-
* @param {string} [props.displayFormat] - Date format for displaying the value.
|
|
11
|
-
* @param {string} [props.helpText] - Help text displayed under the field.
|
|
12
|
-
* @param {JSX.Element|null} [props.suffix=null] - Icon or text displayed at the end of the input.
|
|
13
|
-
* @param {boolean} [props.isClearable=false] - Whether the input can be cleared.
|
|
14
|
-
* @param {string|null} [props.tooltip] - Tooltip text for the field.
|
|
15
|
-
* @param {string} [props.locale="en-US"] - Locale used for formatting.
|
|
16
|
-
* @param {Object|string|Date|null} [props.value] - Current value of the DatePicker.
|
|
17
|
-
* @param {boolean} [props.allowRange=false] - Whether date range selection is enabled.
|
|
18
|
-
* @param {JSX.Element|null} [props.activator] - Custom activator for the popover.
|
|
19
|
-
* @param {Date|string|null} [props.disableDatesAfter] - Dates after this value are disabled.
|
|
20
|
-
* @param {Date|string|null} [props.disableDatesBefore] - Dates before this value are disabled.
|
|
21
|
-
* @param {function} [props.onChange] - Callback function called when the date changes.
|
|
22
|
-
* @param {boolean} [props.multiMonth=false] - Whether multiple months are shown.
|
|
23
|
-
* @param {boolean} [props.disabled=false] - Whether the DatePicker is disabled.
|
|
24
|
-
* @param {boolean} [props.showTimePicker=false] - Whether a time picker is displayed.
|
|
25
|
-
* @param {boolean} [props.autoFocus=false] - Whether the input is focused automatically.
|
|
26
|
-
* @param {Date|null} [props.maxDate] - Maximum selectable date.
|
|
27
|
-
* @param {Date|null} [props.minDate] - Minimum selectable date.
|
|
28
|
-
* @param {boolean} [props.inline=false] - Whether the calendar is displayed inline.
|
|
29
|
-
* @param {string} [props.preferredAlignment="left"] - Alignment of the popover.
|
|
30
|
-
* @param {string} [props.preferredPosition="below"] - Position of the popover.
|
|
31
|
-
* @param {boolean} [props.includeHourlyPresets=false] - Whether hourly (last 30 minutes, last hour) presets are included.
|
|
32
|
-
* @param {Array} [props.customPresets=[]] - Custom presets to include.
|
|
33
|
-
* @param {JSX.Element|null} [props.footer] - An optional footer component to display at the bottom of the DatePicker.
|
|
34
|
-
* @returns {JSX.Element} The rendered DatePicker component.
|
|
35
|
-
*/
|
|
36
|
-
declare function DatePicker(props?: {
|
|
37
|
-
label?: string;
|
|
38
|
-
labelAction?: any | null;
|
|
39
|
-
onBlur?: Function;
|
|
40
|
-
placeholder?: string;
|
|
41
|
-
displayFormat?: string;
|
|
42
|
-
helpText?: string;
|
|
43
|
-
suffix?: JSX.Element | null;
|
|
44
|
-
isClearable?: boolean;
|
|
45
|
-
tooltip?: string | null;
|
|
46
|
-
locale?: string;
|
|
47
|
-
value?: any | string | Date | null;
|
|
48
|
-
allowRange?: boolean;
|
|
49
|
-
activator?: JSX.Element | null;
|
|
50
|
-
disableDatesAfter?: Date | string | null;
|
|
51
|
-
disableDatesBefore?: Date | string | null;
|
|
52
|
-
onChange?: Function;
|
|
53
|
-
multiMonth?: boolean;
|
|
54
|
-
disabled?: boolean;
|
|
55
|
-
showTimePicker?: boolean;
|
|
56
|
-
autoFocus?: boolean;
|
|
57
|
-
maxDate?: Date | null;
|
|
58
|
-
minDate?: Date | null;
|
|
59
|
-
inline?: boolean;
|
|
60
|
-
preferredAlignment?: string;
|
|
61
|
-
preferredPosition?: string;
|
|
62
|
-
includeHourlyPresets?: boolean;
|
|
63
|
-
customPresets?: any[];
|
|
64
|
-
footer?: JSX.Element | null;
|
|
65
|
-
}): JSX.Element;
|
|
2
|
+
declare function DatePicker(props?: {}): import("react/jsx-runtime").JSX.Element;
|
|
66
3
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../components/DatePicker.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../components/DatePicker.js"],"names":[],"mappings":";AA+LA,iFA6UC"}
|
|
@@ -1,27 +1,3 @@
|
|
|
1
1
|
export default Disclosure;
|
|
2
|
-
|
|
3
|
-
* Renders a Disclosure component that displays content with disclosure styling.
|
|
4
|
-
*
|
|
5
|
-
* @component
|
|
6
|
-
* @param {Object} props - Component properties.
|
|
7
|
-
* @param {React.ReactNode} props.children - The content to display within the disclosure.
|
|
8
|
-
* @param {string} [props.className] - Additional CSS classes to apply to the disclosure.
|
|
9
|
-
* @returns {JSX.Element} A styled `<div>` element serving as a disclosure container.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* // Renders disclosure content
|
|
13
|
-
* <Disclosure>
|
|
14
|
-
* <Text>This is disclosure content</Text>
|
|
15
|
-
* </Disclosure>
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* // Renders disclosure content with additional classes
|
|
19
|
-
* <Disclosure className="mt-4">
|
|
20
|
-
* <Text>This is disclosure content with margin</Text>
|
|
21
|
-
* </Disclosure>
|
|
22
|
-
*/
|
|
23
|
-
declare function Disclosure(props?: {
|
|
24
|
-
children: React.ReactNode;
|
|
25
|
-
className?: string;
|
|
26
|
-
}): JSX.Element;
|
|
2
|
+
declare function Disclosure(props?: {}): import("react/jsx-runtime").JSX.Element;
|
|
27
3
|
//# sourceMappingURL=Disclosure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Disclosure.d.ts","sourceRoot":"","sources":["../../../components/Disclosure.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Disclosure.d.ts","sourceRoot":"","sources":["../../../components/Disclosure.js"],"names":[],"mappings":";AA+DA,iFAmBC"}
|
|
@@ -1,21 +1,3 @@
|
|
|
1
1
|
export default Divider;
|
|
2
|
-
|
|
3
|
-
* Renders a divider element with customizable color variants.
|
|
4
|
-
*
|
|
5
|
-
* @component
|
|
6
|
-
* @param {Object} props - Component properties.
|
|
7
|
-
* @param {'default' | 'subdued'} [props.color='default'] - The color variant to apply to the divider.
|
|
8
|
-
* @returns {JSX.Element} A styled `<div>` element serving as a divider.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* // Renders a default color divider
|
|
12
|
-
* <Divider />
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* // Renders a subdued color divider
|
|
16
|
-
* <Divider color="subdued" />
|
|
17
|
-
*/
|
|
18
|
-
declare function Divider(props?: {
|
|
19
|
-
color?: "default" | "subdued";
|
|
20
|
-
}): JSX.Element;
|
|
2
|
+
declare function Divider(props?: {}): import("react/jsx-runtime").JSX.Element;
|
|
21
3
|
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../components/Divider.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../components/Divider.js"],"names":[],"mappings":";AAwDA,8EAkCC"}
|