@taiv/ui 1.15.0 → 2.0.0
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/dist/assets/assets.d.ts +12 -1
- package/dist/assets/assets.d.ts.map +1 -1
- package/dist/assets/assets.js +22 -16
- package/dist/assets/brand/taiv-favicon-dark.png +0 -0
- package/dist/assets/brand/taiv-favicon-light.png +0 -0
- package/dist/assets/brand/taiv-icon-black.svg +10 -0
- package/dist/assets/brand/taiv-icon-dark.svg +17 -0
- package/dist/assets/brand/taiv-icon-white.svg +17 -0
- package/dist/assets/brand/taiv-logo-black.svg +16 -0
- package/dist/assets/brand/taiv-logo-dark.svg +23 -0
- package/dist/assets/brand/taiv-logo-old.svg +1 -0
- package/dist/assets/brand/taiv-logo-purple.svg +16 -0
- package/dist/assets/brand/taiv-logo-white.svg +23 -0
- package/dist/assets/icons.d.ts +1 -1
- package/dist/assets/icons.d.ts.map +1 -1
- package/dist/assets/icons.js +57 -53
- package/dist/assets/index.d.ts +3 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/assets/index.js +2 -0
- package/dist/components/Data/BigCalendar/BigCalendar.d.ts +26 -0
- package/dist/components/Data/BigCalendar/BigCalendar.d.ts.map +1 -0
- package/dist/components/Data/BigCalendar/BigCalendar.js +54 -0
- package/dist/components/Data/BigCalendar/BigCalendar.stories.d.ts +8 -0
- package/dist/components/Data/BigCalendar/BigCalendar.stories.d.ts.map +1 -0
- package/dist/components/Data/BigCalendar/BigCalendar.stories.js +77 -0
- package/dist/components/Data/Calendar/Calendar.d.ts +102 -0
- package/dist/components/Data/Calendar/Calendar.d.ts.map +1 -0
- package/dist/components/Data/Calendar/Calendar.js +671 -0
- package/dist/components/Data/Calendar/Calendar.stories.d.ts +10 -0
- package/dist/components/Data/Calendar/Calendar.stories.d.ts.map +1 -0
- package/dist/components/Data/Calendar/Calendar.stories.js +87 -0
- package/dist/components/Data/MediaPill/MediaPill.d.ts +27 -0
- package/dist/components/Data/MediaPill/MediaPill.d.ts.map +1 -0
- package/dist/components/Data/MediaPill/MediaPill.js +53 -0
- package/dist/components/Data/MediaPill/MediaPill.stories.d.ts +10 -0
- package/dist/components/Data/MediaPill/MediaPill.stories.d.ts.map +1 -0
- package/dist/components/Data/MediaPill/MediaPill.stories.js +51 -0
- package/dist/components/Info/Avatar/Avatar.d.ts +9 -0
- package/dist/components/Info/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Info/Avatar/Avatar.js +36 -0
- package/dist/components/Info/Avatar/Avatar.stories.d.ts +9 -0
- package/dist/components/Info/Avatar/Avatar.stories.d.ts.map +1 -0
- package/dist/components/Info/Avatar/Avatar.stories.js +78 -0
- package/dist/components/Info/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/components/Info/Badge/Badge.stories.js +21 -6
- package/dist/components/Info/Badge/sizes.d.ts +10 -10
- package/dist/components/Info/Badge/sizes.js +16 -16
- package/dist/components/Info/Badge/variants.d.ts +4 -4
- package/dist/components/Info/Badge/variants.d.ts.map +1 -1
- package/dist/components/Info/Badge/variants.js +26 -13
- package/dist/components/Info/Drawer/Drawer.d.ts +24 -0
- package/dist/components/Info/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/Info/Drawer/Drawer.js +44 -0
- package/dist/components/Info/Drawer/Drawer.stories.d.ts +10 -0
- package/dist/components/Info/Drawer/Drawer.stories.d.ts.map +1 -0
- package/dist/components/Info/Drawer/Drawer.stories.js +47 -0
- package/dist/components/Info/HoverCard/HoverCard.d.ts +16 -0
- package/dist/components/Info/HoverCard/HoverCard.d.ts.map +1 -0
- package/dist/components/Info/HoverCard/HoverCard.js +26 -0
- package/dist/components/Info/HoverCard/HoverCard.stories.d.ts +11 -0
- package/dist/components/Info/HoverCard/HoverCard.stories.d.ts.map +1 -0
- package/dist/components/Info/HoverCard/HoverCard.stories.js +86 -0
- package/dist/components/Info/HoverCard/HoverCardMenuItem.d.ts +12 -0
- package/dist/components/Info/HoverCard/HoverCardMenuItem.d.ts.map +1 -0
- package/dist/components/Info/HoverCard/HoverCardMenuItem.js +22 -0
- package/dist/components/Info/Indicator/Indicator.d.ts +3 -0
- package/dist/components/Info/Indicator/Indicator.d.ts.map +1 -0
- package/dist/components/Info/Indicator/Indicator.js +1 -0
- package/dist/components/Info/Indicator/Indicator.stories.d.ts +11 -0
- package/dist/components/Info/Indicator/Indicator.stories.d.ts.map +1 -0
- package/dist/components/Info/Indicator/Indicator.stories.js +123 -0
- package/dist/components/Info/InfoCard/InfoCard.d.ts +2 -2
- package/dist/components/Info/InfoCard/InfoCard.d.ts.map +1 -1
- package/dist/components/Info/InfoCard/InfoCard.js +5 -5
- package/dist/components/Info/MobileDrawer/MobileDrawer.d.ts +30 -0
- package/dist/components/Info/MobileDrawer/MobileDrawer.d.ts.map +1 -0
- package/dist/components/Info/MobileDrawer/MobileDrawer.js +52 -0
- package/dist/components/Info/MobileDrawer/MobileDrawer.stories.d.ts +9 -0
- package/dist/components/Info/MobileDrawer/MobileDrawer.stories.d.ts.map +1 -0
- package/dist/components/Info/MobileDrawer/MobileDrawer.stories.js +38 -0
- package/dist/components/Info/Modals/FormModal/FormModal.d.ts +17 -1
- package/dist/components/Info/Modals/FormModal/FormModal.d.ts.map +1 -1
- package/dist/components/Info/Modals/FormModal/FormModal.js +30 -12
- package/dist/components/Info/Modals/FormModalV2/FormModalV2.d.ts +60 -0
- package/dist/components/Info/Modals/FormModalV2/FormModalV2.d.ts.map +1 -0
- package/dist/components/Info/Modals/FormModalV2/FormModalV2.js +96 -0
- package/dist/components/Info/Modals/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Info/Modals/Modal/Modal.js +9 -1
- package/dist/components/Info/Modals/variants.d.ts +61 -41
- package/dist/components/Info/Modals/variants.d.ts.map +1 -1
- package/dist/components/Info/Modals/variants.js +58 -38
- package/dist/components/Info/Notifications/Notifications.stories.d.ts +1 -0
- package/dist/components/Info/Notifications/Notifications.stories.d.ts.map +1 -1
- package/dist/components/Info/Notifications/Notifications.stories.js +31 -0
- package/dist/components/Info/Notifications/variants.d.ts +25 -19
- package/dist/components/Info/Notifications/variants.d.ts.map +1 -1
- package/dist/components/Info/Notifications/variants.js +30 -24
- package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.d.ts +37 -0
- package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.d.ts.map +1 -0
- package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.js +17 -0
- package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.stories.d.ts +7 -0
- package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.stories.d.ts.map +1 -0
- package/dist/components/Info/ResponsiveDrawer/ResponsiveDrawer.stories.js +26 -0
- package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.d.ts +1 -1
- package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.d.ts.map +1 -1
- package/dist/components/Info/Tooltips/InfoTooltip/InfoTooltip.js +9 -3
- package/dist/components/Info/Tooltips/Popover/Popover.d.ts +16 -0
- package/dist/components/Info/Tooltips/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Info/Tooltips/Popover/Popover.js +32 -0
- package/dist/components/Info/Tooltips/Tooltip/Tooltip.d.ts +5 -1
- package/dist/components/Info/Tooltips/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Info/Tooltips/Tooltip/Tooltip.js +10 -8
- package/dist/components/Inputs/Buttons/Button/Button.d.ts +3 -1
- package/dist/components/Inputs/Buttons/Button/Button.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/Button/Button.js +38 -5
- package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts +1 -0
- package/dist/components/Inputs/Buttons/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/Button/Button.stories.js +105 -79
- package/dist/components/Inputs/Buttons/IconButton/IconButton.d.ts +7 -2
- package/dist/components/Inputs/Buttons/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/IconButton/IconButton.js +35 -11
- package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.d.ts +1 -0
- package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/IconButton/IconButton.stories.js +100 -74
- package/dist/components/Inputs/Buttons/IconButton/sizes.d.ts +15 -0
- package/dist/components/Inputs/Buttons/IconButton/sizes.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/IconButton/sizes.js +3 -0
- package/dist/components/Inputs/Buttons/shared/variants.d.ts +399 -164
- package/dist/components/Inputs/Buttons/shared/variants.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/shared/variants.js +353 -143
- package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.d.ts +40 -0
- package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.d.ts.map +1 -0
- package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.js +139 -0
- package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.stories.d.ts +13 -0
- package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.stories.d.ts.map +1 -0
- package/dist/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.stories.js +75 -0
- package/dist/components/Inputs/ColorSwatch/ColorSwatch.d.ts +27 -0
- package/dist/components/Inputs/ColorSwatch/ColorSwatch.d.ts.map +1 -0
- package/dist/components/Inputs/ColorSwatch/ColorSwatch.js +46 -0
- package/dist/components/Inputs/Controls/DaysOfWeek/DaysOfWeek.d.ts +32 -0
- package/dist/components/Inputs/Controls/DaysOfWeek/DaysOfWeek.d.ts.map +1 -0
- package/dist/components/Inputs/Controls/DaysOfWeek/DaysOfWeek.js +92 -0
- package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.d.ts +11 -8
- package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/Inputs/Controls/SegmentedControl/SegmentedControl.js +20 -12
- package/dist/components/Inputs/Controls/Toggle/Toggle.d.ts +25 -11
- package/dist/components/Inputs/Controls/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/Inputs/Controls/Toggle/Toggle.js +67 -20
- package/dist/components/Inputs/Controls/Toggle/Toggle.stories.d.ts +1 -0
- package/dist/components/Inputs/Controls/Toggle/Toggle.stories.d.ts.map +1 -1
- package/dist/components/Inputs/Controls/Toggle/Toggle.stories.js +86 -69
- package/dist/components/Inputs/Dates/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/Inputs/Dates/DatePicker/DatePicker.js +23 -7
- package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.d.ts +12 -0
- package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.d.ts.map +1 -0
- package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.js +87 -0
- package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.stories.d.ts +13 -0
- package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -0
- package/dist/components/Inputs/Dates/DateTimePicker/DateTimePicker.stories.js +239 -0
- package/dist/components/Inputs/Dates/TimeInput/TimeInput.d.ts +19 -0
- package/dist/components/Inputs/Dates/TimeInput/TimeInput.d.ts.map +1 -0
- package/dist/components/Inputs/Dates/TimeInput/TimeInput.js +51 -0
- package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.d.ts.map +1 -1
- package/dist/components/Inputs/Dropdowns/FontSelect/FontSelect.js +8 -1
- package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.d.ts +2 -2
- package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/Inputs/Dropdowns/MultiSelect/MultiSelect.js +76 -57
- package/dist/components/Inputs/Dropdowns/Select/Select.d.ts.map +1 -1
- package/dist/components/Inputs/Dropdowns/Select/Select.js +5 -3
- package/dist/components/Inputs/Dropzone/Dropzone.d.ts +23 -0
- package/dist/components/Inputs/Dropzone/Dropzone.d.ts.map +1 -0
- package/dist/components/Inputs/Dropzone/Dropzone.js +44 -0
- package/dist/components/Inputs/Dropzone/Dropzone.stories.d.ts +12 -0
- package/dist/components/Inputs/Dropzone/Dropzone.stories.d.ts.map +1 -0
- package/dist/components/Inputs/Dropzone/Dropzone.stories.js +114 -0
- package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.js +4 -1
- package/dist/components/Inputs/TextInputs/NumberInput/ResponsiveNumberInput.d.ts +46 -0
- package/dist/components/Inputs/TextInputs/NumberInput/ResponsiveNumberInput.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/NumberInput/ResponsiveNumberInput.js +60 -0
- package/dist/components/Layout/Accordion/Accordion.d.ts +16 -0
- package/dist/components/Layout/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Layout/Accordion/Accordion.js +63 -0
- package/dist/components/Layout/Accordion/Accordion.stories.d.ts +11 -0
- package/dist/components/Layout/Accordion/Accordion.stories.d.ts.map +1 -0
- package/dist/components/Layout/Accordion/Accordion.stories.js +148 -0
- package/dist/components/Layout/AutoGrid/AutoGrid.d.ts +20 -5
- package/dist/components/Layout/AutoGrid/AutoGrid.d.ts.map +1 -1
- package/dist/components/Layout/AutoGrid/AutoGrid.js +51 -3
- package/dist/components/Layout/AutoGrid/AutoGrid.stories.d.ts +1 -0
- package/dist/components/Layout/AutoGrid/AutoGrid.stories.d.ts.map +1 -1
- package/dist/components/Layout/AutoGrid/AutoGrid.stories.js +39 -29
- package/dist/components/Layout/BottomActionBar/BottomActionBar.d.ts +40 -0
- package/dist/components/Layout/BottomActionBar/BottomActionBar.d.ts.map +1 -0
- package/dist/components/Layout/BottomActionBar/BottomActionBar.js +79 -0
- package/dist/components/Layout/BottomActionBar/BottomActionBar.stories.d.ts +10 -0
- package/dist/components/Layout/BottomActionBar/BottomActionBar.stories.d.ts.map +1 -0
- package/dist/components/Layout/BottomActionBar/BottomActionBar.stories.js +102 -0
- package/dist/components/Layout/Card/Card.d.ts +1 -1
- package/dist/components/Layout/Card/Card.d.ts.map +1 -1
- package/dist/components/Layout/Container/Container.d.ts +3 -0
- package/dist/components/Layout/Container/Container.d.ts.map +1 -0
- package/dist/components/Layout/Container/Container.js +1 -0
- package/dist/components/Layout/Container/Container.stories.d.ts +8 -0
- package/dist/components/Layout/Container/Container.stories.d.ts.map +1 -0
- package/dist/components/Layout/Container/Container.stories.js +52 -0
- package/dist/components/Layout/DataState/DataState.d.ts +34 -0
- package/dist/components/Layout/DataState/DataState.d.ts.map +1 -0
- package/dist/components/Layout/DataState/DataState.js +22 -0
- package/dist/components/Layout/DataState/DataState.stories.d.ts +11 -0
- package/dist/components/Layout/DataState/DataState.stories.d.ts.map +1 -0
- package/dist/components/Layout/DataState/DataState.stories.js +38 -0
- package/dist/components/Layout/Divider/Divider.d.ts.map +1 -1
- package/dist/components/Layout/Divider/Divider.js +4 -2
- package/dist/components/Layout/Group/Group.d.ts +1 -1
- package/dist/components/Layout/Group/Group.d.ts.map +1 -1
- package/dist/components/Layout/Loader/Loader.d.ts +1 -1
- package/dist/components/Layout/Loader/Loader.d.ts.map +1 -1
- package/dist/components/Layout/Loader/Loader.js +3 -2
- package/dist/components/Layout/Navbar/Navbar.d.ts +15 -0
- package/dist/components/Layout/Navbar/Navbar.d.ts.map +1 -0
- package/dist/components/Layout/Navbar/Navbar.js +20 -0
- package/dist/components/Layout/Navbar/Navbar.stories.d.ts +9 -0
- package/dist/components/Layout/Navbar/Navbar.stories.d.ts.map +1 -0
- package/dist/components/Layout/Navbar/Navbar.stories.js +98 -0
- package/dist/components/Layout/Page/Page.d.ts +13 -0
- package/dist/components/Layout/Page/Page.d.ts.map +1 -0
- package/dist/components/Layout/Page/Page.js +13 -0
- package/dist/components/Layout/Pagination/Pagination.d.ts +23 -0
- package/dist/components/Layout/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Layout/Pagination/Pagination.js +53 -0
- package/dist/components/Layout/Pagination/Pagination.stories.d.ts +10 -0
- package/dist/components/Layout/Pagination/Pagination.stories.d.ts.map +1 -0
- package/dist/components/Layout/Pagination/Pagination.stories.js +76 -0
- package/dist/components/Layout/ScrollArea/ScrollArea.d.ts +3 -0
- package/dist/components/Layout/ScrollArea/ScrollArea.d.ts.map +1 -0
- package/dist/components/Layout/ScrollArea/ScrollArea.js +1 -0
- package/dist/components/Layout/ScrollArea/ScrollArea.stories.d.ts +8 -0
- package/dist/components/Layout/ScrollArea/ScrollArea.stories.d.ts.map +1 -0
- package/dist/components/Layout/ScrollArea/ScrollArea.stories.js +62 -0
- package/dist/components/Layout/Tabs/Tabs.d.ts +16 -5
- package/dist/components/Layout/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Layout/Tabs/Tabs.js +53 -18
- package/dist/components/Layout/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/components/Layout/Tabs/Tabs.stories.js +39 -39
- package/dist/components/Layout/VirtualGrid/VirtualGrid.d.ts +63 -0
- package/dist/components/Layout/VirtualGrid/VirtualGrid.d.ts.map +1 -0
- package/dist/components/Layout/VirtualGrid/VirtualGrid.js +159 -0
- package/dist/components/Misc/Burger/Burger.d.ts +6 -0
- package/dist/components/Misc/Burger/Burger.d.ts.map +1 -0
- package/dist/components/Misc/Burger/Burger.js +7 -0
- package/dist/components/Misc/Burger/Burger.stories.d.ts +10 -0
- package/dist/components/Misc/Burger/Burger.stories.d.ts.map +1 -0
- package/dist/components/Misc/Burger/Burger.stories.js +86 -0
- package/dist/components/Misc/Carousel/Carousel.d.ts +32 -0
- package/dist/components/Misc/Carousel/Carousel.d.ts.map +1 -0
- package/dist/components/Misc/Carousel/Carousel.js +16 -0
- package/dist/components/Misc/DragHandle/DragHandle.d.ts +19 -0
- package/dist/components/Misc/DragHandle/DragHandle.d.ts.map +1 -0
- package/dist/components/Misc/DragHandle/DragHandle.js +39 -0
- package/dist/components/Misc/DragHandle/DragHandle.stories.d.ts +9 -0
- package/dist/components/Misc/DragHandle/DragHandle.stories.d.ts.map +1 -0
- package/dist/components/Misc/DragHandle/DragHandle.stories.js +54 -0
- package/dist/components/Misc/FAB/FAB.d.ts +54 -0
- package/dist/components/Misc/FAB/FAB.d.ts.map +1 -0
- package/dist/components/Misc/FAB/FAB.js +53 -0
- package/dist/components/Misc/FAB/FAB.stories.d.ts +10 -0
- package/dist/components/Misc/FAB/FAB.stories.d.ts.map +1 -0
- package/dist/components/Misc/FAB/FAB.stories.js +100 -0
- package/dist/components/Misc/FloatingToolbar/FloatingToolbar.d.ts +50 -0
- package/dist/components/Misc/FloatingToolbar/FloatingToolbar.d.ts.map +1 -0
- package/dist/components/Misc/FloatingToolbar/FloatingToolbar.js +40 -0
- package/dist/components/Misc/FloatingToolbar/FloatingToolbar.stories.d.ts +9 -0
- package/dist/components/Misc/FloatingToolbar/FloatingToolbar.stories.d.ts.map +1 -0
- package/dist/components/Misc/FloatingToolbar/FloatingToolbar.stories.js +53 -0
- package/dist/components/Misc/HoverAction/HoverAction.d.ts +50 -0
- package/dist/components/Misc/HoverAction/HoverAction.d.ts.map +1 -0
- package/dist/components/Misc/HoverAction/HoverAction.js +61 -0
- package/dist/components/Misc/HoverAction/HoverAction.stories.d.ts +12 -0
- package/dist/components/Misc/HoverAction/HoverAction.stories.d.ts.map +1 -0
- package/dist/components/Misc/HoverAction/HoverAction.stories.js +96 -0
- package/dist/components/Misc/IconBadge/IconBadge.d.ts.map +1 -1
- package/dist/components/Misc/IconBadge/IconBadge.js +8 -6
- package/dist/components/Misc/Image/Image.d.ts +3 -0
- package/dist/components/Misc/Image/Image.d.ts.map +1 -0
- package/dist/components/Misc/Image/Image.js +1 -0
- package/dist/components/Misc/Image/Image.stories.d.ts +11 -0
- package/dist/components/Misc/Image/Image.stories.d.ts.map +1 -0
- package/dist/components/Misc/Image/Image.stories.js +63 -0
- package/dist/components/Misc/Kbd/Kbd.d.ts +6 -0
- package/dist/components/Misc/Kbd/Kbd.d.ts.map +1 -0
- package/dist/components/Misc/Kbd/Kbd.js +16 -0
- package/dist/components/Misc/Kbd/Kbd.stories.d.ts +9 -0
- package/dist/components/Misc/Kbd/Kbd.stories.d.ts.map +1 -0
- package/dist/components/Misc/Kbd/Kbd.stories.js +52 -0
- package/dist/components/Misc/Menu/Menu.d.ts +17 -0
- package/dist/components/Misc/Menu/Menu.d.ts.map +1 -0
- package/dist/components/Misc/Menu/Menu.js +52 -0
- package/dist/components/Misc/OverflowFade/OverflowFade.d.ts +42 -0
- package/dist/components/Misc/OverflowFade/OverflowFade.d.ts.map +1 -0
- package/dist/components/Misc/OverflowFade/OverflowFade.js +110 -0
- package/dist/components/Misc/OverflowFade/OverflowFade.stories.d.ts +11 -0
- package/dist/components/Misc/OverflowFade/OverflowFade.stories.d.ts.map +1 -0
- package/dist/components/Misc/OverflowFade/OverflowFade.stories.js +112 -0
- package/dist/components/Misc/Picker/Picker.d.ts +62 -0
- package/dist/components/Misc/Picker/Picker.d.ts.map +1 -0
- package/dist/components/Misc/Picker/Picker.js +111 -0
- package/dist/components/Misc/Picker/Picker.stories.d.ts +14 -0
- package/dist/components/Misc/Picker/Picker.stories.d.ts.map +1 -0
- package/dist/components/Misc/Picker/Picker.stories.js +154 -0
- package/dist/components/Misc/SelectableObject/SelectableObject.d.ts +38 -0
- package/dist/components/Misc/SelectableObject/SelectableObject.d.ts.map +1 -0
- package/dist/components/Misc/SelectableObject/SelectableObject.js +70 -0
- package/dist/components/Misc/SelectableObject/SelectableObject.stories.d.ts +11 -0
- package/dist/components/Misc/SelectableObject/SelectableObject.stories.d.ts.map +1 -0
- package/dist/components/Misc/SelectableObject/SelectableObject.stories.js +84 -0
- package/dist/components/Misc/SelectionToolbar/SelectionToolbar.d.ts +26 -0
- package/dist/components/Misc/SelectionToolbar/SelectionToolbar.d.ts.map +1 -0
- package/dist/components/Misc/SelectionToolbar/SelectionToolbar.js +41 -0
- package/dist/components/Misc/SelectionToolbar/SelectionToolbar.stories.d.ts +10 -0
- package/dist/components/Misc/SelectionToolbar/SelectionToolbar.stories.d.ts.map +1 -0
- package/dist/components/Misc/SelectionToolbar/SelectionToolbar.stories.js +48 -0
- package/dist/components/Misc/Stepper/Step.stories.d.ts +118 -118
- package/dist/components/Misc/Stepper/variants.d.ts +1 -1
- package/dist/components/Misc/Timeline/Timeline.d.ts +18 -0
- package/dist/components/Misc/Timeline/Timeline.d.ts.map +1 -0
- package/dist/components/Misc/Timeline/Timeline.js +38 -0
- package/dist/components/Misc/Timeline/Timeline.stories.d.ts +8 -0
- package/dist/components/Misc/Timeline/Timeline.stories.d.ts.map +1 -0
- package/dist/components/Misc/Timeline/Timeline.stories.js +54 -0
- package/dist/components/Typography/InlineEditableText/InlineEditableText.d.ts +35 -0
- package/dist/components/Typography/InlineEditableText/InlineEditableText.d.ts.map +1 -0
- package/dist/components/Typography/InlineEditableText/InlineEditableText.js +112 -0
- package/dist/components/Typography/InlineEditableText/InlineEditableText.stories.d.ts +11 -0
- package/dist/components/Typography/InlineEditableText/InlineEditableText.stories.d.ts.map +1 -0
- package/dist/components/Typography/InlineEditableText/InlineEditableText.stories.js +48 -0
- package/dist/components/index.d.ts +148 -66
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +110 -68
- package/dist/constants/colors.d.ts +117 -91
- package/dist/constants/colors.d.ts.map +1 -1
- package/dist/constants/colors.js +56 -43
- package/dist/constants/font.d.ts +4 -4
- package/dist/constants/font.js +2 -2
- package/dist/hooks/index.d.ts +9 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +7 -1
- package/dist/hooks/useConfirmationModal.d.ts.map +1 -1
- package/dist/hooks/useConfirmationModal.js +20 -1
- package/dist/hooks/useDisclosure.d.ts +11 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.js +10 -0
- package/dist/hooks/useHeadroom.d.ts +18 -0
- package/dist/hooks/useHeadroom.d.ts.map +1 -0
- package/dist/hooks/useHeadroom.js +17 -0
- package/dist/hooks/useInfoModal.d.ts.map +1 -1
- package/dist/hooks/useInfoModal.js +13 -1
- package/dist/hooks/useMediaQuery.d.ts +1 -0
- package/dist/hooks/useMediaQuery.d.ts.map +1 -1
- package/dist/hooks/useMediaQuery.js +1 -0
- package/dist/hooks/useNotifications.d.ts +39 -7
- package/dist/hooks/useNotifications.d.ts.map +1 -1
- package/dist/hooks/useNotifications.js +108 -5
- package/dist/hooks/usePagination.d.ts +11 -0
- package/dist/hooks/usePagination.d.ts.map +1 -0
- package/dist/hooks/usePagination.js +2 -0
- package/dist/hooks/useScrollLock.d.ts +21 -0
- package/dist/hooks/useScrollLock.d.ts.map +1 -0
- package/dist/hooks/useScrollLock.js +20 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/styles/iosInputZoomFix.d.ts +31 -0
- package/dist/styles/iosInputZoomFix.d.ts.map +1 -0
- package/dist/styles/iosInputZoomFix.js +135 -0
- package/dist/utils/bytes.d.ts +10 -0
- package/dist/utils/bytes.d.ts.map +1 -0
- package/dist/utils/bytes.js +17 -0
- package/dist/utils/datetime.d.ts +18 -0
- package/dist/utils/datetime.d.ts.map +1 -0
- package/dist/utils/datetime.js +42 -0
- package/dist/utils/duration.d.ts +17 -0
- package/dist/utils/duration.d.ts.map +1 -0
- package/dist/utils/duration.js +30 -0
- package/dist/utils/index.d.ts +8 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +7 -2
- package/dist/utils/sort.d.ts +44 -0
- package/dist/utils/sort.d.ts.map +1 -0
- package/dist/utils/sort.js +53 -0
- package/dist/utils/string.d.ts +22 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/string.js +25 -0
- package/package.json +26 -2
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { AutoGrid } from './AutoGrid';
|
|
3
|
-
import { Card } from '../Card/Card';
|
|
4
2
|
import { Title } from '../../Typography/Title/Title';
|
|
3
|
+
import { Card } from '../Card/Card';
|
|
4
|
+
import { AutoGrid } from './AutoGrid';
|
|
5
5
|
const meta = {
|
|
6
|
-
title: 'Components/Layout/AutoGrid',
|
|
7
|
-
component: AutoGrid,
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: 'centered',
|
|
10
|
-
docs: {
|
|
11
|
-
description: {
|
|
12
|
-
component: "[View Mantine Docs](https://v6.mantine.dev/core/simple-grid/)\n\nThe AutoGrid component is a responsive grid where each item takes an equal amount of space. It extends Mantine v6's SimpleGrid component and provides automatic column distribution with customizable spacing.",
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
6
|
argTypes: {
|
|
17
7
|
children: {
|
|
18
8
|
control: false,
|
|
@@ -25,45 +15,55 @@ const meta = {
|
|
|
25
15
|
control: { type: 'number' },
|
|
26
16
|
description: 'Number of columns in each row',
|
|
27
17
|
table: {
|
|
28
|
-
type: { summary: 'number | ResponsiveObject' },
|
|
29
18
|
defaultValue: { summary: '1' },
|
|
19
|
+
type: { summary: 'number | ResponsiveObject' },
|
|
30
20
|
},
|
|
31
21
|
},
|
|
32
22
|
spacing: {
|
|
33
23
|
control: { type: 'select' },
|
|
34
|
-
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
35
24
|
description: 'Horizontal spacing between items',
|
|
25
|
+
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
36
26
|
table: {
|
|
37
|
-
type: { summary: "'xs' | 'sm' | 'md' | 'lg' | 'xl' | number" },
|
|
38
27
|
defaultValue: { summary: "'md'" },
|
|
28
|
+
type: { summary: "'xs' | 'sm' | 'md' | 'lg' | 'xl' | number" },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
styles: {
|
|
32
|
+
control: { type: 'object' },
|
|
33
|
+
description: 'Custom styles to override with if necessary',
|
|
34
|
+
table: {
|
|
35
|
+
type: { summary: 'Record<string, CSSObject>' },
|
|
39
36
|
},
|
|
40
37
|
},
|
|
41
38
|
verticalSpacing: {
|
|
42
39
|
control: { type: 'select' },
|
|
43
|
-
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
44
40
|
description: 'Vertical spacing between items',
|
|
41
|
+
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
45
42
|
table: {
|
|
46
43
|
type: { summary: "'xs' | 'sm' | 'md' | 'lg' | 'xl' | number" },
|
|
47
44
|
},
|
|
48
45
|
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
},
|
|
47
|
+
component: AutoGrid,
|
|
48
|
+
parameters: {
|
|
49
|
+
docs: {
|
|
50
|
+
description: {
|
|
51
|
+
component: "[View Mantine Docs](https://v6.mantine.dev/core/simple-grid/)\n\nThe AutoGrid component is a responsive grid where each item takes an equal amount of space. It extends Mantine v6's SimpleGrid component and provides automatic column distribution with customizable spacing.",
|
|
54
52
|
},
|
|
55
53
|
},
|
|
54
|
+
layout: 'centered',
|
|
56
55
|
},
|
|
56
|
+
title: 'Components/Layout/AutoGrid',
|
|
57
57
|
};
|
|
58
58
|
export default meta;
|
|
59
|
-
const SampleCard = ({ title, description }) => (_jsxs(Card, { animate: true, padding:
|
|
59
|
+
const SampleCard = ({ title, description, }) => (_jsxs(Card, { animate: true, padding: 'lg', children: [_jsx(Title, { variant: 'cardHeader', children: title }), _jsx(Title, { variant: 'cardSubheader', children: description })] }));
|
|
60
60
|
const items = [
|
|
61
|
-
{ id: 1, title: 'Item 1'
|
|
62
|
-
{ id: 2, title: 'Item 2'
|
|
63
|
-
{ id: 3, title: 'Item 3'
|
|
64
|
-
{ id: 4, title: 'Item 4'
|
|
65
|
-
{ id: 5, title: 'Item 5'
|
|
66
|
-
{ id: 6, title: 'Item 6'
|
|
61
|
+
{ description: 'Grid item content', id: 1, title: 'Item 1' },
|
|
62
|
+
{ description: 'Grid item content', id: 2, title: 'Item 2' },
|
|
63
|
+
{ description: 'Grid item content', id: 3, title: 'Item 3' },
|
|
64
|
+
{ description: 'Grid item content', id: 4, title: 'Item 4' },
|
|
65
|
+
{ description: 'Grid item content', id: 5, title: 'Item 5' },
|
|
66
|
+
{ description: 'Grid item content', id: 6, title: 'Item 6' },
|
|
67
67
|
];
|
|
68
68
|
export const Default = {
|
|
69
69
|
args: {
|
|
@@ -74,5 +74,15 @@ export const Default = {
|
|
|
74
74
|
decorators: [
|
|
75
75
|
(Story) => (_jsx("div", { style: { width: '700px' }, children: _jsx(Story, {}) })),
|
|
76
76
|
],
|
|
77
|
-
render: (args) => (_jsx(AutoGrid, { ...args, children: items.map((item) => (_jsx(SampleCard, {
|
|
77
|
+
render: (args) => (_jsx(AutoGrid, { ...args, children: items.map((item) => (_jsx(SampleCard, { description: item.description, title: item.title }, item.id))) })),
|
|
78
|
+
};
|
|
79
|
+
export const ResponsiveCols = {
|
|
80
|
+
parameters: {
|
|
81
|
+
docs: {
|
|
82
|
+
description: {
|
|
83
|
+
story: 'Pass a responsive map to `cols` — Tailwind-style `base`/`sm`/`md`/`lg`/`xl`. Missing stops inherit from the next-smaller entry. Resize the viewport to see the grid reflow.',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
render: () => (_jsx(AutoGrid, { cols: { base: 1, lg: 3, sm: 2 }, spacing: 'md', children: items.map((item) => (_jsx(SampleCard, { description: item.description, title: item.title }, item.id))) })),
|
|
78
88
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BottomActionBarItem {
|
|
3
|
+
/** Stable identifier for React key + accessibility. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Icon element (e.g. `<IconLayout />`). Rendered above the label. */
|
|
6
|
+
icon: React.ReactNode;
|
|
7
|
+
/** Short label rendered below the icon. */
|
|
8
|
+
label: React.ReactNode;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Mark the item as active / pressed. */
|
|
12
|
+
active?: boolean;
|
|
13
|
+
/** Accessibility label. Defaults to `label` when it's a string. */
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface BottomActionBarProps {
|
|
17
|
+
items: BottomActionBarItem[];
|
|
18
|
+
/** Pin to the viewport bottom. Default `true`. */
|
|
19
|
+
fixed?: boolean;
|
|
20
|
+
/** z-index when `fixed`. Default `20` (below `SelectionToolbar` at 30). */
|
|
21
|
+
zIndex?: number;
|
|
22
|
+
/** Backdrop blur intensity in px. Default `8`. 0 disables the blur. */
|
|
23
|
+
blur?: number;
|
|
24
|
+
/** Override the container height (px). Default `64`. */
|
|
25
|
+
height?: number;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Launcher row of icon+label cells, typically used to switch between tools
|
|
32
|
+
* (layout / text / media / animate…) at the bottom of a canvas-like editor.
|
|
33
|
+
* Columns auto-distribute evenly via `grid-template-columns: repeat(N, 1fr)`.
|
|
34
|
+
*
|
|
35
|
+
* `SelectionToolbar` and modals should sit above this bar — keep their
|
|
36
|
+
* `z-index` above the default `20`. `MobileDrawer` should receive
|
|
37
|
+
* `bottomOffset={height}` so sheets stack on top rather than overlap.
|
|
38
|
+
*/
|
|
39
|
+
export declare const BottomActionBar: ({ items, fixed, zIndex, blur, height, ariaLabel, className, style, }: BottomActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
//# sourceMappingURL=BottomActionBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomActionBar.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/BottomActionBar/BottomActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,2CAA2C;IAC3C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B,kDAAkD;IAClD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAAI,sEAS7B,oBAAoB,4CA8BtB,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { neutral, primary, white } from '../../../constants/colors';
|
|
4
|
+
import { spacing } from '../../../constants/spacing';
|
|
5
|
+
import { Text } from '../../Typography/Text/Text';
|
|
6
|
+
/**
|
|
7
|
+
* Launcher row of icon+label cells, typically used to switch between tools
|
|
8
|
+
* (layout / text / media / animate…) at the bottom of a canvas-like editor.
|
|
9
|
+
* Columns auto-distribute evenly via `grid-template-columns: repeat(N, 1fr)`.
|
|
10
|
+
*
|
|
11
|
+
* `SelectionToolbar` and modals should sit above this bar — keep their
|
|
12
|
+
* `z-index` above the default `20`. `MobileDrawer` should receive
|
|
13
|
+
* `bottomOffset={height}` so sheets stack on top rather than overlap.
|
|
14
|
+
*/
|
|
15
|
+
export const BottomActionBar = ({ items, fixed = true, zIndex = 20, blur = 8, height = 64, ariaLabel = 'Editor tools', className, style, }) => {
|
|
16
|
+
return (_jsx("nav", { "aria-label": ariaLabel, className: className, style: {
|
|
17
|
+
backdropFilter: blur ? `blur(${blur}px)` : undefined,
|
|
18
|
+
backgroundColor: blur ? 'rgba(255, 255, 255, 0.85)' : white,
|
|
19
|
+
borderTop: `1px solid ${neutral[50]}`,
|
|
20
|
+
bottom: fixed ? 0 : undefined,
|
|
21
|
+
display: 'grid',
|
|
22
|
+
gridTemplateColumns: `repeat(${items.length}, minmax(0, 1fr))`,
|
|
23
|
+
height,
|
|
24
|
+
left: fixed ? 0 : undefined,
|
|
25
|
+
position: fixed ? 'fixed' : 'relative',
|
|
26
|
+
right: fixed ? 0 : undefined,
|
|
27
|
+
width: fixed ? '100%' : undefined,
|
|
28
|
+
zIndex: fixed ? zIndex : undefined,
|
|
29
|
+
...style,
|
|
30
|
+
}, children: items.map((item, i) => (_jsx(BottomActionBarButton, { item: item, showDivider: i < items.length - 1 }, item.id))) }));
|
|
31
|
+
};
|
|
32
|
+
const BottomActionBarButton = ({ item, showDivider, }) => {
|
|
33
|
+
var _a;
|
|
34
|
+
const [hover, setHover] = useState(false);
|
|
35
|
+
const [focus, setFocus] = useState(false);
|
|
36
|
+
const labelText = (_a = item.ariaLabel) !== null && _a !== void 0 ? _a : (typeof item.label === 'string' ? item.label : undefined);
|
|
37
|
+
const showPrimary = !item.disabled && (item.active || hover || focus);
|
|
38
|
+
const color = showPrimary ? primary[200] : neutral[200];
|
|
39
|
+
return (_jsxs("div", { style: { position: 'relative', height: '100%' }, children: [_jsxs("button", { "aria-label": labelText, "aria-pressed": item.active ? true : undefined, disabled: item.disabled, onClick: item.onClick, onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), onFocus: () => setFocus(true), onBlur: () => {
|
|
40
|
+
setFocus(false);
|
|
41
|
+
setHover(false);
|
|
42
|
+
}, style: {
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
background: 'transparent',
|
|
45
|
+
border: 'none',
|
|
46
|
+
color,
|
|
47
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
48
|
+
display: 'flex',
|
|
49
|
+
flexDirection: 'column',
|
|
50
|
+
gap: spacing.xs,
|
|
51
|
+
height: '100%',
|
|
52
|
+
justifyContent: 'center',
|
|
53
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
54
|
+
// Browser default focus outline reads as a yellow/orange box on
|
|
55
|
+
// some platforms. Suppress it — the primary-color text + icon
|
|
56
|
+
// treatment driven by `focus` state is the keyboard-visible cue.
|
|
57
|
+
outline: 'none',
|
|
58
|
+
padding: spacing.xs,
|
|
59
|
+
transition: 'color 150ms ease',
|
|
60
|
+
WebkitTapHighlightColor: 'transparent',
|
|
61
|
+
width: '100%',
|
|
62
|
+
}, type: 'button', children: [_jsx("span", { style: {
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
color: 'inherit',
|
|
65
|
+
display: 'inline-flex',
|
|
66
|
+
height: 24,
|
|
67
|
+
justifyContent: 'center',
|
|
68
|
+
width: 24,
|
|
69
|
+
}, children: item.icon }), _jsx(Text, { variant: 'label', weight: item.active ? 'semibold' : 'medium', color: 'inherit', styles: { lineHeight: 1 }, children: item.label })] }), showDivider ? (_jsx("span", { "aria-hidden": 'true', style: {
|
|
70
|
+
position: 'absolute',
|
|
71
|
+
right: 0,
|
|
72
|
+
top: '50%',
|
|
73
|
+
transform: 'translateY(-50%)',
|
|
74
|
+
width: 1,
|
|
75
|
+
height: 24,
|
|
76
|
+
backgroundColor: neutral[50],
|
|
77
|
+
pointerEvents: 'none',
|
|
78
|
+
} })) : null] }));
|
|
79
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { BottomActionBar } from './BottomActionBar';
|
|
3
|
+
declare const meta: Meta<typeof BottomActionBar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const ThreeUp: Story;
|
|
7
|
+
export declare const FourUp: Story;
|
|
8
|
+
export declare const WithContentAbove: Story;
|
|
9
|
+
export declare const DisabledItem: Story;
|
|
10
|
+
//# sourceMappingURL=BottomActionBar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomActionBar.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/BottomActionBar/BottomActionBar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAY5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CAYtC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KA+BrB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAsCpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KA2B9B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAe1B,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconLayoutGrid, IconMovie, IconPhoto, IconSparkles, IconTypography, } from '@tabler/icons-react';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { neutral } from '../../../constants/colors';
|
|
5
|
+
import { spacing } from '../../../constants/spacing';
|
|
6
|
+
import { Text } from '../../Typography/Text/Text';
|
|
7
|
+
import { BottomActionBar } from './BottomActionBar';
|
|
8
|
+
const meta = {
|
|
9
|
+
component: BottomActionBar,
|
|
10
|
+
parameters: {
|
|
11
|
+
docs: {
|
|
12
|
+
description: {
|
|
13
|
+
component: 'Bottom-pinned launcher of icon+label cells. Columns are evenly distributed (`1fr` per item). Acts as the shell for slide-editor tool sheets; pair with `MobileDrawer` + `bottomOffset={height}` so sheets stack on top rather than overlap.',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
layout: 'fullscreen',
|
|
17
|
+
},
|
|
18
|
+
title: 'Components/Layout/BottomActionBar',
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
export const ThreeUp = {
|
|
22
|
+
render: () => {
|
|
23
|
+
const [active, setActive] = useState('layout');
|
|
24
|
+
return (_jsx(BottomActionBar, { items: [
|
|
25
|
+
{
|
|
26
|
+
active: active === 'layout',
|
|
27
|
+
icon: _jsx(IconLayoutGrid, { size: 20 }),
|
|
28
|
+
id: 'layout',
|
|
29
|
+
label: 'Layout',
|
|
30
|
+
onClick: () => setActive('layout'),
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
active: active === 'text',
|
|
34
|
+
icon: _jsx(IconTypography, { size: 20 }),
|
|
35
|
+
id: 'text',
|
|
36
|
+
label: 'Text',
|
|
37
|
+
onClick: () => setActive('text'),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
active: active === 'media',
|
|
41
|
+
icon: _jsx(IconPhoto, { size: 20 }),
|
|
42
|
+
id: 'media',
|
|
43
|
+
label: 'Media',
|
|
44
|
+
onClick: () => setActive('media'),
|
|
45
|
+
},
|
|
46
|
+
] }));
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
export const FourUp = {
|
|
50
|
+
render: () => {
|
|
51
|
+
const [active, setActive] = useState('text');
|
|
52
|
+
return (_jsx(BottomActionBar, { items: [
|
|
53
|
+
{
|
|
54
|
+
active: active === 'layout',
|
|
55
|
+
icon: _jsx(IconLayoutGrid, { size: 20 }),
|
|
56
|
+
id: 'layout',
|
|
57
|
+
label: 'Layout',
|
|
58
|
+
onClick: () => setActive('layout'),
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
active: active === 'text',
|
|
62
|
+
icon: _jsx(IconTypography, { size: 20 }),
|
|
63
|
+
id: 'text',
|
|
64
|
+
label: 'Text',
|
|
65
|
+
onClick: () => setActive('text'),
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
active: active === 'media',
|
|
69
|
+
icon: _jsx(IconMovie, { size: 20 }),
|
|
70
|
+
id: 'media',
|
|
71
|
+
label: 'Media',
|
|
72
|
+
onClick: () => setActive('media'),
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
active: active === 'animate',
|
|
76
|
+
icon: _jsx(IconSparkles, { size: 20 }),
|
|
77
|
+
id: 'animate',
|
|
78
|
+
label: 'Animate',
|
|
79
|
+
onClick: () => setActive('animate'),
|
|
80
|
+
},
|
|
81
|
+
] }));
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
export const WithContentAbove = {
|
|
85
|
+
render: () => (_jsxs("div", { style: { minHeight: '100vh', paddingBottom: 80 }, children: [_jsxs("div", { style: { padding: spacing.lg }, children: [_jsx(Text, { children: "Scroll content sits above the bar. Use `paddingBottom` on the page wrapper so nothing is occluded by the fixed bar." }), Array.from({ length: 30 }, (_, i) => `row-${i + 1}`).map((key, i) => (_jsxs(Text, { style: { color: neutral[200], padding: `${spacing.xs} 0` }, variant: 'subtle', children: ["Row ", i + 1] }, key)))] }), _jsx(BottomActionBar, { items: [
|
|
86
|
+
{ icon: _jsx(IconLayoutGrid, { size: 20 }), id: 'layout', label: 'Layout' },
|
|
87
|
+
{ icon: _jsx(IconTypography, { size: 20 }), id: 'text', label: 'Text' },
|
|
88
|
+
{ icon: _jsx(IconPhoto, { size: 20 }), id: 'media', label: 'Media' },
|
|
89
|
+
] })] })),
|
|
90
|
+
};
|
|
91
|
+
export const DisabledItem = {
|
|
92
|
+
render: () => (_jsx(BottomActionBar, { items: [
|
|
93
|
+
{ icon: _jsx(IconLayoutGrid, { size: 20 }), id: 'layout', label: 'Layout' },
|
|
94
|
+
{ icon: _jsx(IconTypography, { size: 20 }), id: 'text', label: 'Text' },
|
|
95
|
+
{
|
|
96
|
+
disabled: true,
|
|
97
|
+
icon: _jsx(IconSparkles, { size: 20 }),
|
|
98
|
+
id: 'animate',
|
|
99
|
+
label: 'Animate',
|
|
100
|
+
},
|
|
101
|
+
] })),
|
|
102
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CardProps as MantineCardProps } from '@mantine/core';
|
|
3
|
-
export interface CardProps extends MantineCardProps {
|
|
3
|
+
export interface CardProps extends MantineCardProps, Omit<React.ComponentPropsWithoutRef<'div'>, keyof MantineCardProps> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
animate?: boolean;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAuB,SAAS,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAuB,SAAS,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAOnF,MAAM,WAAW,SACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,gBAAgB,CAAC;IACrE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,GAAI,4CAAkE,SAAS,4CAiB/F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Container/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Container } from '@mantine/core';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Container } from './Container';
|
|
3
|
+
declare const meta: Meta<typeof Container>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Fluid: Story;
|
|
8
|
+
//# sourceMappingURL=Container.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Container/Container.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAwBhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAenB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Container } from './Container';
|
|
3
|
+
import { Text } from '../../Typography/Text/Text';
|
|
4
|
+
import { Stack } from '../Stack/Stack';
|
|
5
|
+
import { neutral } from '../../../constants/colors';
|
|
6
|
+
import { spacing } from '../../../constants/spacing';
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Components/Layout/Container',
|
|
9
|
+
component: Container,
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: 'fullscreen',
|
|
12
|
+
},
|
|
13
|
+
argTypes: {
|
|
14
|
+
children: {
|
|
15
|
+
control: false,
|
|
16
|
+
description: 'Page or section content constrained to the container max-width',
|
|
17
|
+
table: { type: { summary: 'ReactNode' } },
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
control: { type: 'select' },
|
|
21
|
+
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
22
|
+
description: 'Max-width preset from the theme',
|
|
23
|
+
table: { type: { summary: 'MantineNumberSize' } },
|
|
24
|
+
},
|
|
25
|
+
fluid: {
|
|
26
|
+
control: { type: 'boolean' },
|
|
27
|
+
description: 'When true, the container grows to full width',
|
|
28
|
+
table: { type: { summary: 'boolean' }, defaultValue: { summary: 'false' } },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
export default meta;
|
|
33
|
+
export const Default = {
|
|
34
|
+
args: {
|
|
35
|
+
size: 'md',
|
|
36
|
+
fluid: false,
|
|
37
|
+
children: (_jsxs(Stack, { spacing: spacing.md, py: spacing.xl, children: [_jsx(Text, { weight: "semibold", children: "Centered content with a max width" }), _jsx(Text, { size: "sm", color: neutral[200], children: "Resize the preview to see horizontal padding and the container cap. Use the size control to change the breakpoint preset." })] })),
|
|
38
|
+
sx: {
|
|
39
|
+
borderLeft: `1px dashed ${neutral[100]}`,
|
|
40
|
+
borderRight: `1px dashed ${neutral[100]}`,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
export const Fluid = {
|
|
45
|
+
args: {
|
|
46
|
+
fluid: true,
|
|
47
|
+
children: (_jsxs(Stack, { spacing: spacing.sm, py: spacing.lg, children: [_jsx(Text, { weight: "semibold", children: "Fluid container" }), _jsx(Text, { size: "sm", color: neutral[200], children: "With fluid set, content can use the full width of the viewport (aside from default horizontal padding)." })] })),
|
|
48
|
+
sx: {
|
|
49
|
+
backgroundColor: neutral[25],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type DataStateVariant = 'loading' | 'empty';
|
|
3
|
+
export interface DataStateProps {
|
|
4
|
+
variant: DataStateVariant;
|
|
5
|
+
/** Primary message. Defaults to `'Loading...'` / `'No results'`. */
|
|
6
|
+
message?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Optional action (e.g. a "Add item" button) rendered below the message
|
|
9
|
+
* for the `empty` variant. Ignored for `loading`.
|
|
10
|
+
*/
|
|
11
|
+
action?: React.ReactNode;
|
|
12
|
+
/** Loader size when `variant='loading'`. Default `'xl'`. */
|
|
13
|
+
loaderSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
14
|
+
/** Vertical padding applied to the outer `Center`. Default `spacing.xxl`. */
|
|
15
|
+
py?: string | number;
|
|
16
|
+
/** Horizontal padding applied to the outer `Center`. */
|
|
17
|
+
px?: string | number;
|
|
18
|
+
/** Minimum height of the outer `Center`. Useful inside table placeholders. */
|
|
19
|
+
minHeight?: string | number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Canonical placeholder used in the slot where data *would* render. Pattern:
|
|
23
|
+
*
|
|
24
|
+
* ```tsx
|
|
25
|
+
* if (isLoading) return <DataState variant='loading' />;
|
|
26
|
+
* if (items.length === 0) return <DataState variant='empty' />;
|
|
27
|
+
* return <ActualContent />;
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Wraps the existing `Center` + `Stack` + `Loader` + `Text` composition used
|
|
31
|
+
* across Taiv screens so feature code doesn't have to re-assemble it.
|
|
32
|
+
*/
|
|
33
|
+
export declare const DataState: ({ variant, message, action, loaderSize, py, px, minHeight, }: DataStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=DataState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataState.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/DataState/DataState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,oEAAoE;IACpE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC9C,6EAA6E;IAC7E,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,wDAAwD;IACxD,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,GAAI,8DAQvB,cAAc,4CAahB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { spacing } from '../../../constants/spacing';
|
|
3
|
+
import { Text } from '../../Typography/Text/Text';
|
|
4
|
+
import { Center } from '../Center/Center';
|
|
5
|
+
import { Loader } from '../Loader/Loader';
|
|
6
|
+
import { Stack } from '../Stack/Stack';
|
|
7
|
+
/**
|
|
8
|
+
* Canonical placeholder used in the slot where data *would* render. Pattern:
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* if (isLoading) return <DataState variant='loading' />;
|
|
12
|
+
* if (items.length === 0) return <DataState variant='empty' />;
|
|
13
|
+
* return <ActualContent />;
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Wraps the existing `Center` + `Stack` + `Loader` + `Text` composition used
|
|
17
|
+
* across Taiv screens so feature code doesn't have to re-assemble it.
|
|
18
|
+
*/
|
|
19
|
+
export const DataState = ({ variant, message, action, loaderSize = 'xl', py = spacing.xxl, px, minHeight, }) => {
|
|
20
|
+
const resolvedMessage = message !== null && message !== void 0 ? message : (variant === 'loading' ? 'Loading...' : 'No results');
|
|
21
|
+
return (_jsx(Center, { mih: minHeight, px: px, py: py, children: _jsxs(Stack, { align: 'center', gap: spacing.sm, children: [variant === 'loading' ? _jsx(Loader, { size: loaderSize }) : null, _jsx(Text, { variant: 'subtle', children: resolvedMessage }), variant === 'empty' && action ? _jsx(Center, { children: action }) : null] }) }));
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { DataState } from './DataState';
|
|
3
|
+
declare const meta: Meta<typeof DataState>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Loading: Story;
|
|
7
|
+
export declare const LoadingWithMessage: Story;
|
|
8
|
+
export declare const Empty: Story;
|
|
9
|
+
export declare const EmptyWithAction: Story;
|
|
10
|
+
export declare const InTablePlaceholder: Story;
|
|
11
|
+
//# sourceMappingURL=DataState.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataState.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/DataState/DataState.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAYhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAQnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAMhC,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAc7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAMhC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { IconPlus } from '@tabler/icons-react';
|
|
3
|
+
import { neutral } from '../../../constants/colors';
|
|
4
|
+
import { Button } from '../../Inputs/Buttons/Button/Button';
|
|
5
|
+
import { DataState } from './DataState';
|
|
6
|
+
const meta = {
|
|
7
|
+
component: DataState,
|
|
8
|
+
parameters: {
|
|
9
|
+
docs: {
|
|
10
|
+
description: {
|
|
11
|
+
component: "Placeholder for the slot where data would render. Use as an early return:\n\n```tsx\nif (isLoading) return <DataState variant='loading' />;\nif (items.length === 0) return <DataState variant='empty' />;\nreturn <ActualContent />;\n```",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
layout: 'centered',
|
|
15
|
+
},
|
|
16
|
+
title: 'Components/Layout/DataState',
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
const FRAME = {
|
|
20
|
+
border: `1px solid ${neutral[50]}`,
|
|
21
|
+
borderRadius: 8,
|
|
22
|
+
width: 480,
|
|
23
|
+
};
|
|
24
|
+
export const Loading = {
|
|
25
|
+
render: () => (_jsx("div", { style: FRAME, children: _jsx(DataState, { variant: 'loading' }) })),
|
|
26
|
+
};
|
|
27
|
+
export const LoadingWithMessage = {
|
|
28
|
+
render: () => (_jsx("div", { style: FRAME, children: _jsx(DataState, { message: 'Loading devices...', variant: 'loading' }) })),
|
|
29
|
+
};
|
|
30
|
+
export const Empty = {
|
|
31
|
+
render: () => (_jsx("div", { style: FRAME, children: _jsx(DataState, { variant: 'empty' }) })),
|
|
32
|
+
};
|
|
33
|
+
export const EmptyWithAction = {
|
|
34
|
+
render: () => (_jsx("div", { style: FRAME, children: _jsx(DataState, { action: _jsx(Button, { leftIcon: _jsx(IconPlus, { size: 16 }), size: 'sm', children: "Add device" }), message: 'No devices found. Register a new device.', variant: 'empty' }) })),
|
|
35
|
+
};
|
|
36
|
+
export const InTablePlaceholder = {
|
|
37
|
+
render: () => (_jsx("div", { style: { ...FRAME, width: 640 }, children: _jsx(DataState, { minHeight: 320, variant: 'loading' }) })),
|
|
38
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Divider/Divider.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,YAAY,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,UAAU,YAAa,SAAQ,mBAAmB;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,OAAO,GAAI,
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Divider/Divider.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,YAAY,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,UAAU,YAAa,SAAQ,mBAAmB;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,OAAO,GAAI,oCAAkD,YAAY,4CAI9E,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Divider as MantineDivider } from '@mantine/core';
|
|
3
3
|
import { neutral } from '../../../constants/colors';
|
|
4
|
-
const Divider = ({ width
|
|
5
|
-
|
|
4
|
+
const Divider = ({ width, styles, color = neutral[50], ...props }) => {
|
|
5
|
+
const isVertical = props.orientation === 'vertical';
|
|
6
|
+
const resolvedWidth = width !== null && width !== void 0 ? width : (isVertical ? undefined : '100%');
|
|
7
|
+
return _jsx(MantineDivider, { color: color, w: resolvedWidth, styles: styles, ...props });
|
|
6
8
|
};
|
|
7
9
|
export { Divider };
|
|
@@ -3,7 +3,7 @@ import { CSSObject } from '@mantine/styles';
|
|
|
3
3
|
interface GroupProps extends MantineGroupProps {
|
|
4
4
|
width?: string | number;
|
|
5
5
|
styles?: Record<string, CSSObject>;
|
|
6
|
-
gap?: string;
|
|
6
|
+
gap?: string | number;
|
|
7
7
|
}
|
|
8
8
|
declare const Group: ({ width, gap, styles, ...props }: GroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export { Group };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Group/Group.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,UAAU,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,UAAU,UAAW,SAAQ,iBAAiB;IAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Group/Group.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,UAAU,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,UAAU,UAAW,SAAQ,iBAAiB;IAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAGnC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,KAAK,GAAI,kCAAkC,UAAU,4CAE1D,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -3,6 +3,6 @@ import { CSSObject } from '@mantine/styles';
|
|
|
3
3
|
interface LoaderProps extends MantineLoaderProps {
|
|
4
4
|
styles?: Record<string, CSSObject>;
|
|
5
5
|
}
|
|
6
|
-
declare const Loader: ({ styles, ...props }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const Loader: ({ styles, color, ...props }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { Loader };
|
|
8
8
|
//# sourceMappingURL=Loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Loader/Loader.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Loader/Loader.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,UAAU,WAAY,SAAQ,kBAAkB;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,MAAM,GAAI,6BAAiD,WAAW,4CAE3E,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Loader as MantineLoader } from '@mantine/core';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { primary } from '../../../constants';
|
|
4
|
+
const Loader = ({ styles, color = `${primary[200]}`, ...props }) => {
|
|
5
|
+
return _jsx(MantineLoader, { color: color, styles: styles, ...props });
|
|
5
6
|
};
|
|
6
7
|
export { Loader };
|