@taiv/ui 1.14.1 → 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/StepperModal/StepperModal.d.ts +21 -0
- package/dist/components/Info/Modals/StepperModal/StepperModal.d.ts.map +1 -0
- package/dist/components/Info/Modals/StepperModal/StepperModal.js +50 -0
- package/dist/components/Info/Modals/StepperModal/StepperModal.stories.d.ts +10 -0
- package/dist/components/Info/Modals/StepperModal/StepperModal.stories.d.ts.map +1 -0
- package/dist/components/Info/Modals/StepperModal/StepperModal.stories.js +169 -0
- 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 +149 -66
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +110 -67
- 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
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ColorPicker, Popover } from '@mantine/core';
|
|
3
|
+
import { useDisclosure } from '@mantine/hooks';
|
|
4
|
+
import { neutral, white } from '../../../constants/colors';
|
|
5
|
+
import { fontBase, fontSize } from '../../../constants/font';
|
|
6
|
+
import { spacing } from '../../../constants/spacing';
|
|
7
|
+
const CHECKER_BG = `
|
|
8
|
+
linear-gradient(45deg, ${neutral[100]} 25%, transparent 25%),
|
|
9
|
+
linear-gradient(-45deg, ${neutral[100]} 25%, transparent 25%),
|
|
10
|
+
linear-gradient(45deg, transparent 75%, ${neutral[100]} 75%),
|
|
11
|
+
linear-gradient(-45deg, transparent 75%, ${neutral[100]} 75%)
|
|
12
|
+
`;
|
|
13
|
+
const isTransparent = (v) => {
|
|
14
|
+
if (v == null || v === 'transparent')
|
|
15
|
+
return true;
|
|
16
|
+
const match = v.match(/^#([0-9a-f]{8}|[0-9a-f]{4})$/i);
|
|
17
|
+
if (!match)
|
|
18
|
+
return false;
|
|
19
|
+
const alpha = match[1].length === 8 ? match[1].slice(6) : match[1].slice(3).repeat(2);
|
|
20
|
+
return alpha.toLowerCase() === '00';
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Trigger + popover pair that opens a Mantine `ColorPicker`. Four visual
|
|
24
|
+
* variants:
|
|
25
|
+
* - `fontColor`: stacked "A" with a colored underline bar (the bar reflects
|
|
26
|
+
* the current text color).
|
|
27
|
+
* - `borderColor`: hollow "A" whose stroke reflects the current text-border
|
|
28
|
+
* color, paired with a colored underline bar.
|
|
29
|
+
* - `shadowColor`: solid "A" with a soft drop shadow tinted by the current
|
|
30
|
+
* shadow color, paired with a colored underline bar.
|
|
31
|
+
* - `fillColor`: 16×16 swatch, with a checkerboard pattern when the fill is
|
|
32
|
+
* transparent / null.
|
|
33
|
+
*
|
|
34
|
+
* All variants drive the same popover — used in the slide-editor text
|
|
35
|
+
* toolbar and reusable anywhere a color needs to be picked inline.
|
|
36
|
+
*/
|
|
37
|
+
export const ColorPickerTrigger = ({ variant, value, onChange, swatches, format = 'hex', ariaLabel, dark = false, disabled = false, opened: openedProp, onOpenChange, swatchSize = 16, }) => {
|
|
38
|
+
const [internalOpened, { toggle: toggleInternal, close: closeInternal }] = useDisclosure(false);
|
|
39
|
+
const isControlled = openedProp !== undefined;
|
|
40
|
+
const opened = isControlled ? openedProp : internalOpened;
|
|
41
|
+
const toggle = () => {
|
|
42
|
+
if (isControlled)
|
|
43
|
+
onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(!opened);
|
|
44
|
+
else
|
|
45
|
+
toggleInternal();
|
|
46
|
+
};
|
|
47
|
+
const close = () => {
|
|
48
|
+
if (isControlled)
|
|
49
|
+
onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(false);
|
|
50
|
+
else
|
|
51
|
+
closeInternal();
|
|
52
|
+
};
|
|
53
|
+
const label = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : (variant === 'fontColor'
|
|
54
|
+
? 'Text color'
|
|
55
|
+
: variant === 'borderColor'
|
|
56
|
+
? 'Text border color'
|
|
57
|
+
: variant === 'shadowColor'
|
|
58
|
+
? 'Text shadow color'
|
|
59
|
+
: 'Fill color');
|
|
60
|
+
const transparent = isTransparent(value);
|
|
61
|
+
const baseButton = {
|
|
62
|
+
alignItems: 'center',
|
|
63
|
+
background: 'transparent',
|
|
64
|
+
border: 'none',
|
|
65
|
+
borderRadius: 6,
|
|
66
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
67
|
+
display: 'inline-flex',
|
|
68
|
+
height: 28,
|
|
69
|
+
justifyContent: 'center',
|
|
70
|
+
opacity: disabled ? 0.5 : 1,
|
|
71
|
+
padding: `0 ${spacing.xs}`,
|
|
72
|
+
};
|
|
73
|
+
const trigger = variant === 'fontColor' ? (_jsx("button", { "aria-label": label, disabled: disabled, onClick: toggle, style: baseButton, type: 'button', children: _jsxs("span", { style: {
|
|
74
|
+
alignItems: 'center',
|
|
75
|
+
display: 'inline-flex',
|
|
76
|
+
flexDirection: 'column',
|
|
77
|
+
gap: 2,
|
|
78
|
+
}, children: [_jsx("span", { style: {
|
|
79
|
+
...fontBase,
|
|
80
|
+
...fontSize.md,
|
|
81
|
+
color: dark ? white : neutral[300],
|
|
82
|
+
fontWeight: 600,
|
|
83
|
+
lineHeight: 1,
|
|
84
|
+
}, children: "A" }), _jsx("span", { style: {
|
|
85
|
+
backgroundColor: value !== null && value !== void 0 ? value : neutral[300],
|
|
86
|
+
borderRadius: 1,
|
|
87
|
+
height: 3,
|
|
88
|
+
width: 14,
|
|
89
|
+
} })] }) })) : variant === 'shadowColor' ? (_jsx("button", { "aria-label": label, disabled: disabled, onClick: toggle, style: baseButton, type: 'button', children: _jsxs("span", { style: {
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
display: 'inline-flex',
|
|
92
|
+
flexDirection: 'column',
|
|
93
|
+
gap: 2,
|
|
94
|
+
}, children: [_jsx("span", { style: {
|
|
95
|
+
...fontBase,
|
|
96
|
+
...fontSize.md,
|
|
97
|
+
color: dark ? white : neutral[300],
|
|
98
|
+
fontWeight: 600,
|
|
99
|
+
lineHeight: 1,
|
|
100
|
+
// Soft drop shadow on the glyph telegraphs "shadow color".
|
|
101
|
+
textShadow: `1px 1px 1px ${value !== null && value !== void 0 ? value : neutral[200]}`,
|
|
102
|
+
}, children: "A" }), _jsx("span", { style: {
|
|
103
|
+
backgroundColor: value !== null && value !== void 0 ? value : neutral[300],
|
|
104
|
+
borderRadius: 1,
|
|
105
|
+
height: 3,
|
|
106
|
+
width: 14,
|
|
107
|
+
} })] }) })) : variant === 'borderColor' ? (_jsx("button", { "aria-label": label, disabled: disabled, onClick: toggle, style: baseButton, type: 'button', children: _jsxs("span", { style: {
|
|
108
|
+
alignItems: 'center',
|
|
109
|
+
display: 'inline-flex',
|
|
110
|
+
flexDirection: 'column',
|
|
111
|
+
gap: 2,
|
|
112
|
+
}, children: [_jsx("span", { style: {
|
|
113
|
+
...fontBase,
|
|
114
|
+
...fontSize.md,
|
|
115
|
+
// Hollow letter — fill is the surface color so only the
|
|
116
|
+
// stroke is visible, mirroring the chosen border color.
|
|
117
|
+
color: dark ? 'transparent' : white,
|
|
118
|
+
fontWeight: 700,
|
|
119
|
+
lineHeight: 1,
|
|
120
|
+
WebkitTextStroke: `1px ${value !== null && value !== void 0 ? value : (dark ? white : neutral[300])}`,
|
|
121
|
+
}, children: "A" }), _jsx("span", { style: {
|
|
122
|
+
backgroundColor: value !== null && value !== void 0 ? value : neutral[300],
|
|
123
|
+
borderRadius: 1,
|
|
124
|
+
height: 3,
|
|
125
|
+
width: 14,
|
|
126
|
+
} })] }) })) : (_jsx("button", { "aria-label": label, disabled: disabled, onClick: toggle, style: { ...baseButton, padding: `0 ${spacing.xxs}` }, type: 'button', children: _jsx("span", { style: {
|
|
127
|
+
background: transparent ? CHECKER_BG : (value !== null && value !== void 0 ? value : white),
|
|
128
|
+
backgroundPosition: transparent
|
|
129
|
+
? '0 0, 0 4px, 4px -4px, -4px 0'
|
|
130
|
+
: undefined,
|
|
131
|
+
backgroundSize: transparent ? '8px 8px' : undefined,
|
|
132
|
+
border: `1px solid ${dark ? 'rgba(255,255,255,0.2)' : neutral[100]}`,
|
|
133
|
+
borderRadius: 4,
|
|
134
|
+
display: 'inline-block',
|
|
135
|
+
height: swatchSize,
|
|
136
|
+
width: swatchSize,
|
|
137
|
+
} }) }));
|
|
138
|
+
return (_jsxs(Popover, { onClose: close, opened: opened, position: 'bottom', shadow: 'md', withinPortal: true, children: [_jsx(Popover.Target, { children: trigger }), _jsx(Popover.Dropdown, { p: spacing.sm, children: _jsx(ColorPicker, { format: format, onChange: onChange, swatches: swatches, value: value !== null && value !== void 0 ? value : '#000000' }) })] }));
|
|
139
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ColorPickerTrigger } from './ColorPickerTrigger';
|
|
3
|
+
declare const meta: Meta<typeof ColorPickerTrigger>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const FontColor: Story;
|
|
7
|
+
export declare const BorderColor: Story;
|
|
8
|
+
export declare const ShadowColor: Story;
|
|
9
|
+
export declare const FillColor: Story;
|
|
10
|
+
export declare const TransparentFill: Story;
|
|
11
|
+
export declare const DarkSurface: Story;
|
|
12
|
+
export declare const Disabled: Story;
|
|
13
|
+
//# sourceMappingURL=ColorPickerTrigger.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPickerTrigger.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Inputs/ColorPickerTrigger/ColorPickerTrigger.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAa1D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAYzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,SAAS,EAAE,KAevB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAezB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAezB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAgBvB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAiB7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAkCzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { neutral } from '../../../constants/colors';
|
|
4
|
+
import { spacing } from '../../../constants/spacing';
|
|
5
|
+
import { Group } from '../../Layout/Group/Group';
|
|
6
|
+
import { Stack } from '../../Layout/Stack/Stack';
|
|
7
|
+
import { Text } from '../../Typography/Text/Text';
|
|
8
|
+
import { ColorPickerTrigger } from './ColorPickerTrigger';
|
|
9
|
+
const SWATCHES = [
|
|
10
|
+
'#0F172A',
|
|
11
|
+
'#1E293B',
|
|
12
|
+
'#334155',
|
|
13
|
+
'#64748B',
|
|
14
|
+
'#0081CE',
|
|
15
|
+
'#22C55E',
|
|
16
|
+
'#F59E0B',
|
|
17
|
+
'#EF4444',
|
|
18
|
+
];
|
|
19
|
+
const meta = {
|
|
20
|
+
component: ColorPickerTrigger,
|
|
21
|
+
parameters: {
|
|
22
|
+
docs: {
|
|
23
|
+
description: {
|
|
24
|
+
component: 'Compact trigger that opens a Mantine `ColorPicker` in a popover. Four visual variants — `fontColor` (stacked "A" over a colored bar), `borderColor` (hollow "A" whose stroke reflects the chosen color), `shadowColor` (solid "A" with a soft drop shadow), and `fillColor` (16×16 swatch with a checkerboard when transparent).',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
layout: 'centered',
|
|
28
|
+
},
|
|
29
|
+
title: 'Components/Inputs/ColorPickerTrigger',
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
export const FontColor = {
|
|
33
|
+
render: () => {
|
|
34
|
+
const [color, setColor] = useState('#0F172A');
|
|
35
|
+
return (_jsxs(Group, { spacing: spacing.md, children: [_jsx(ColorPickerTrigger, { onChange: setColor, swatches: SWATCHES, value: color, variant: 'fontColor' }), _jsxs(Text, { variant: 'subtle', children: ["Current: ", color] })] }));
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
export const BorderColor = {
|
|
39
|
+
render: () => {
|
|
40
|
+
const [color, setColor] = useState('#EF4444');
|
|
41
|
+
return (_jsxs(Group, { spacing: spacing.md, children: [_jsx(ColorPickerTrigger, { onChange: setColor, swatches: SWATCHES, value: color, variant: 'borderColor' }), _jsxs(Text, { variant: 'subtle', children: ["Current: ", color] })] }));
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
export const ShadowColor = {
|
|
45
|
+
render: () => {
|
|
46
|
+
const [color, setColor] = useState('#64748B');
|
|
47
|
+
return (_jsxs(Group, { spacing: spacing.md, children: [_jsx(ColorPickerTrigger, { onChange: setColor, swatches: SWATCHES, value: color, variant: 'shadowColor' }), _jsxs(Text, { variant: 'subtle', children: ["Current: ", color] })] }));
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
export const FillColor = {
|
|
51
|
+
render: () => {
|
|
52
|
+
const [color, setColor] = useState('#0081CE');
|
|
53
|
+
return (_jsxs(Group, { spacing: spacing.md, children: [_jsx(ColorPickerTrigger, { format: 'hexa', onChange: setColor, swatches: SWATCHES, value: color, variant: 'fillColor' }), _jsxs(Text, { variant: 'subtle', children: ["Current: ", color !== null && color !== void 0 ? color : 'transparent'] })] }));
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
export const TransparentFill = {
|
|
57
|
+
render: () => {
|
|
58
|
+
const [color, setColor] = useState('transparent');
|
|
59
|
+
return (_jsxs(Group, { spacing: spacing.md, children: [_jsx(ColorPickerTrigger, { format: 'hexa', onChange: setColor, value: color, variant: 'fillColor' }), _jsx(Text, { variant: 'subtle', children: "Renders a checkerboard when `null` or `'transparent'`." })] }));
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
export const DarkSurface = {
|
|
63
|
+
render: () => {
|
|
64
|
+
const [fontColor, setFontColor] = useState('#FFFFFF');
|
|
65
|
+
const [fillColor, setFillColor] = useState('#0081CE');
|
|
66
|
+
return (_jsxs(Stack, { spacing: spacing.sm, style: {
|
|
67
|
+
background: neutral[300],
|
|
68
|
+
borderRadius: 12,
|
|
69
|
+
padding: spacing.lg,
|
|
70
|
+
}, children: [_jsx(Text, { style: { color: 'white' }, variant: 'label', children: "Dark chrome variant" }), _jsxs(Group, { spacing: spacing.sm, children: [_jsx(ColorPickerTrigger, { dark: true, onChange: setFontColor, value: fontColor, variant: 'fontColor' }), _jsx(ColorPickerTrigger, { dark: true, format: 'hexa', onChange: setFillColor, value: fillColor, variant: 'fillColor' })] })] }));
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
export const Disabled = {
|
|
74
|
+
render: () => (_jsxs(Group, { spacing: spacing.sm, children: [_jsx(ColorPickerTrigger, { disabled: true, onChange: () => { }, value: '#0F172A', variant: 'fontColor' }), _jsx(ColorPickerTrigger, { disabled: true, onChange: () => { }, value: '#0081CE', variant: 'fillColor' })] })),
|
|
75
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export interface ColorSwatchProps {
|
|
3
|
+
/** CSS color string — hex, rgb(a), or `linear-gradient(...)` / `radial-gradient(...)`. */
|
|
4
|
+
color: string;
|
|
5
|
+
/** Width and height in px (square). Default `32`. */
|
|
6
|
+
size?: number;
|
|
7
|
+
/** Highlights the swatch with a primary-colored ring. */
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
/** Click handler. */
|
|
10
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
/** Accessibility label — required when no children. */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
/** Disable the swatch. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Inner shadow on the swatch (Mantine prop). */
|
|
16
|
+
withShadow?: boolean;
|
|
17
|
+
/** Border radius. Default `'xl'` (circular). */
|
|
18
|
+
radius?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Clickable color swatch — a Mantine `ColorSwatch` rendered as a `<button>`
|
|
22
|
+
* with a focus ring and an optional `selected` highlight. Use for quick-pick
|
|
23
|
+
* palettes, gradient stop selection, or anywhere the user is choosing among a
|
|
24
|
+
* fixed set of colors.
|
|
25
|
+
*/
|
|
26
|
+
export declare const ColorSwatch: ({ ariaLabel, color, disabled, onClick, radius, selected, size, withShadow, }: ColorSwatchProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=ColorSwatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorSwatch.d.ts","sourceRoot":"","sources":["../../../../src/components/Inputs/ColorSwatch/ColorSwatch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,gBAAgB;IAC/B,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gDAAgD;IAChD,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;CACpD;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,8EASzB,gBAAgB,4CAiDlB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ColorSwatch as MantineColorSwatch } from '@mantine/core';
|
|
3
|
+
import { neutral, primary } from '../../../constants/colors';
|
|
4
|
+
/**
|
|
5
|
+
* Clickable color swatch — a Mantine `ColorSwatch` rendered as a `<button>`
|
|
6
|
+
* with a focus ring and an optional `selected` highlight. Use for quick-pick
|
|
7
|
+
* palettes, gradient stop selection, or anywhere the user is choosing among a
|
|
8
|
+
* fixed set of colors.
|
|
9
|
+
*/
|
|
10
|
+
export const ColorSwatch = ({ ariaLabel, color, disabled = false, onClick, radius = 'xl', selected = false, size = 32, withShadow = true, }) => {
|
|
11
|
+
return (_jsx(MantineColorSwatch, { "aria-label": ariaLabel, "aria-pressed": selected, color: color, component: 'button', disabled: disabled, onClick: onClick, radius: radius, size: size, styles: {
|
|
12
|
+
// Mantine paints the color via an inner overlay using inline
|
|
13
|
+
// `style={{ backgroundColor: color }}`. That's invalid CSS for gradient
|
|
14
|
+
// strings, so the transparency-checker overlay underneath shows through
|
|
15
|
+
// and the swatch looks gray. Hide the checker — the root's
|
|
16
|
+
// `background: color` shorthand below paints both solids and gradients
|
|
17
|
+
// correctly.
|
|
18
|
+
alphaOverlay: {
|
|
19
|
+
display: 'none',
|
|
20
|
+
},
|
|
21
|
+
root: {
|
|
22
|
+
background: color,
|
|
23
|
+
border: `1px solid ${neutral[100]}`,
|
|
24
|
+
boxShadow: selected
|
|
25
|
+
? `0 0 0 2px ${primary[200]}`
|
|
26
|
+
: undefined,
|
|
27
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
28
|
+
// Mantine's `size` prop runs through `rem()`, which is rescaled in
|
|
29
|
+
// host apps that use `html { font-size: 62.5% }`. Pin width/height
|
|
30
|
+
// here so the swatch always paints at the px size we asked for.
|
|
31
|
+
height: size,
|
|
32
|
+
minWidth: size,
|
|
33
|
+
opacity: disabled ? 0.5 : 1,
|
|
34
|
+
padding: 0,
|
|
35
|
+
transition: 'box-shadow 0.15s, transform 0.15s',
|
|
36
|
+
width: size,
|
|
37
|
+
'&:focus-visible': {
|
|
38
|
+
boxShadow: `0 0 0 2px ${primary[200]}`,
|
|
39
|
+
outline: 'none',
|
|
40
|
+
},
|
|
41
|
+
'&:hover:not(:disabled)': {
|
|
42
|
+
transform: 'scale(1.08)',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
}, withShadow: withShadow }));
|
|
46
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type DayKey = 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun';
|
|
2
|
+
declare const sizes: {
|
|
3
|
+
readonly md: {
|
|
4
|
+
readonly dim: 36;
|
|
5
|
+
readonly fontSize: 14;
|
|
6
|
+
readonly gap: 6;
|
|
7
|
+
};
|
|
8
|
+
readonly sm: {
|
|
9
|
+
readonly dim: 24;
|
|
10
|
+
readonly fontSize: 11;
|
|
11
|
+
readonly gap: 4;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export interface DaysOfWeekProps {
|
|
15
|
+
/** Days currently active. Order in this array doesn't matter — the component renders week order. */
|
|
16
|
+
value: DayKey[];
|
|
17
|
+
/** Omit to render as read-only display chips (used in EventCard meta). */
|
|
18
|
+
onChange?: (next: DayKey[]) => void;
|
|
19
|
+
/**
|
|
20
|
+
* When true, the strip is non-interactive and styled as disabled (dimmed, no hover).
|
|
21
|
+
* `onChange` is ignored — callers do not need to unset it.
|
|
22
|
+
* Per-day {@link disabledDays} styling still applies.
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
size?: keyof typeof sizes;
|
|
26
|
+
/** Days that cannot be toggled — rendered grayed out with not-allowed cursor. */
|
|
27
|
+
disabledDays?: DayKey[];
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
declare const DaysOfWeek: ({ value, onChange, disabled: stripDisabled, size, disabledDays, className, }: DaysOfWeekProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export { DaysOfWeek };
|
|
32
|
+
//# sourceMappingURL=DaysOfWeek.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DaysOfWeek.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Controls/DaysOfWeek/DaysOfWeek.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAsB3E,QAAA,MAAM,KAAK;;;;;;;;;;;CAGD,CAAC;AAEX,MAAM,WAAW,eAAe;IAC9B,oGAAoG;IACpG,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,OAAO,KAAK,CAAC;IAC1B,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,GAAI,8EAOjB,eAAe,4CAqFjB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { UnstyledButton } from '@mantine/core';
|
|
3
|
+
import { neutral, primary, white } from '../../../../constants/colors';
|
|
4
|
+
import { fontBase, fontWeight } from '../../../../constants/font';
|
|
5
|
+
import { spacing } from '../../../../constants/spacing';
|
|
6
|
+
const ALL_DAYS = [
|
|
7
|
+
'sun',
|
|
8
|
+
'mon',
|
|
9
|
+
'tue',
|
|
10
|
+
'wed',
|
|
11
|
+
'thu',
|
|
12
|
+
'fri',
|
|
13
|
+
'sat',
|
|
14
|
+
];
|
|
15
|
+
const SHORT_LABELS = {
|
|
16
|
+
fri: 'F',
|
|
17
|
+
mon: 'M',
|
|
18
|
+
sat: 'S',
|
|
19
|
+
sun: 'S',
|
|
20
|
+
thu: 'T',
|
|
21
|
+
tue: 'T',
|
|
22
|
+
wed: 'W',
|
|
23
|
+
};
|
|
24
|
+
const sizes = {
|
|
25
|
+
md: { dim: 36, fontSize: 14, gap: 6 },
|
|
26
|
+
sm: { dim: 24, fontSize: 11, gap: 4 },
|
|
27
|
+
};
|
|
28
|
+
const DaysOfWeek = ({ value, onChange, disabled: stripDisabled = false, size = 'md', disabledDays, className, }) => {
|
|
29
|
+
const order = ALL_DAYS;
|
|
30
|
+
const selected = new Set(value);
|
|
31
|
+
const disabledDaySet = new Set(disabledDays !== null && disabledDays !== void 0 ? disabledDays : []);
|
|
32
|
+
const { dim, fontSize, gap } = sizes[size];
|
|
33
|
+
const allowChange = Boolean(onChange) && !stripDisabled;
|
|
34
|
+
const toggle = (day) => {
|
|
35
|
+
if (!onChange || stripDisabled || disabledDaySet.has(day))
|
|
36
|
+
return;
|
|
37
|
+
if (selected.has(day)) {
|
|
38
|
+
onChange(value.filter((d) => d !== day));
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
onChange([...value, day]);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return (_jsx("fieldset", { className: className, disabled: stripDisabled, style: {
|
|
45
|
+
alignItems: 'center',
|
|
46
|
+
border: 'none',
|
|
47
|
+
display: 'inline-flex',
|
|
48
|
+
gap: `${gap}px`,
|
|
49
|
+
margin: 0,
|
|
50
|
+
minWidth: 0,
|
|
51
|
+
padding: 0,
|
|
52
|
+
...(stripDisabled ? { opacity: 0.5 } : {}),
|
|
53
|
+
}, children: order.map((day) => {
|
|
54
|
+
const isActive = selected.has(day);
|
|
55
|
+
const isDayDisabled = disabledDaySet.has(day);
|
|
56
|
+
// Hover / click only when the strip allows changes and this day isn't disabled.
|
|
57
|
+
const interactive = allowChange && !isDayDisabled;
|
|
58
|
+
const nonInteractive = !interactive;
|
|
59
|
+
return (_jsx(UnstyledButton, { "aria-label": day, "aria-pressed": isActive, component: interactive ? 'button' : 'span', "data-active": isActive || undefined, "data-disabled": isDayDisabled || undefined, disabled: nonInteractive, onClick: interactive ? () => toggle(day) : undefined, sx: {
|
|
60
|
+
...fontBase,
|
|
61
|
+
alignItems: 'center',
|
|
62
|
+
backgroundColor: isActive ? primary[200] : neutral[25],
|
|
63
|
+
borderRadius: `${spacing.xs}`,
|
|
64
|
+
color: isActive
|
|
65
|
+
? white
|
|
66
|
+
: isDayDisabled
|
|
67
|
+
? neutral[100]
|
|
68
|
+
: neutral[300],
|
|
69
|
+
cursor: interactive
|
|
70
|
+
? 'pointer'
|
|
71
|
+
: isDayDisabled
|
|
72
|
+
? 'not-allowed'
|
|
73
|
+
: 'default',
|
|
74
|
+
display: 'inline-flex',
|
|
75
|
+
flexShrink: 0,
|
|
76
|
+
fontSize: `${fontSize}px`,
|
|
77
|
+
fontWeight: fontWeight.semibold,
|
|
78
|
+
height: `${dim}px`,
|
|
79
|
+
justifyContent: 'center',
|
|
80
|
+
lineHeight: 1,
|
|
81
|
+
transition: 'background-color 120ms ease, color 120ms ease',
|
|
82
|
+
userSelect: 'none',
|
|
83
|
+
width: `${dim}px`,
|
|
84
|
+
...(interactive && {
|
|
85
|
+
'&:hover': {
|
|
86
|
+
backgroundColor: isActive ? primary[200] : neutral[50],
|
|
87
|
+
},
|
|
88
|
+
}),
|
|
89
|
+
}, children: SHORT_LABELS[day] }, day));
|
|
90
|
+
}) }));
|
|
91
|
+
};
|
|
92
|
+
export { DaysOfWeek };
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { SegmentedControlProps as MantineSegmentedControlProps } from '@mantine/core';
|
|
2
|
-
import { CSSObject } from '@mantine/styles';
|
|
1
|
+
import { type SegmentedControlProps as MantineSegmentedControlProps } from '@mantine/core';
|
|
2
|
+
import type { CSSObject } from '@mantine/styles';
|
|
3
3
|
declare const componentSizes: {
|
|
4
4
|
readonly sm: {
|
|
5
|
-
readonly fontSize: string;
|
|
6
|
-
readonly lineHeight: string;
|
|
7
5
|
readonly mantineSize: "md";
|
|
6
|
+
readonly height: 28;
|
|
7
|
+
readonly paddingX: 12;
|
|
8
|
+
readonly fontSize: 12;
|
|
8
9
|
};
|
|
9
10
|
readonly md: {
|
|
10
|
-
readonly fontSize: string;
|
|
11
|
-
readonly lineHeight: string;
|
|
12
11
|
readonly mantineSize: "lg";
|
|
12
|
+
readonly height: 36;
|
|
13
|
+
readonly paddingX: 16;
|
|
14
|
+
readonly fontSize: 14;
|
|
13
15
|
};
|
|
14
16
|
readonly lg: {
|
|
15
|
-
readonly fontSize: string;
|
|
16
|
-
readonly lineHeight: string;
|
|
17
17
|
readonly mantineSize: "xl";
|
|
18
|
+
readonly height: 44;
|
|
19
|
+
readonly paddingX: 20;
|
|
20
|
+
readonly fontSize: 16;
|
|
18
21
|
};
|
|
19
22
|
};
|
|
20
23
|
interface SegmentedControlProps extends Omit<MantineSegmentedControlProps, 'size'> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Controls/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Controls/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,IAAI,4BAA4B,EAC3D,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAKjD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;CAIV,CAAC;AAEX,UAAU,qBACR,SAAQ,IAAI,CAAC,4BAA4B,EAAE,MAAM,CAAC;IAClD,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,gBAAgB,GAAI,mCAKvB,qBAAqB,4CAiDvB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,24 +1,37 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { SegmentedControl as MantineSegmentedControl, } from '@mantine/core';
|
|
3
|
-
import {
|
|
4
|
-
import { fontBase,
|
|
3
|
+
import { neutral, primary, white } from '../../../../constants/colors';
|
|
4
|
+
import { fontBase, fontWeight } from '../../../../constants/font';
|
|
5
5
|
const componentSizes = {
|
|
6
|
-
sm: { mantineSize: 'md',
|
|
7
|
-
md: { mantineSize: 'lg',
|
|
8
|
-
lg: { mantineSize: 'xl',
|
|
6
|
+
sm: { mantineSize: 'md', height: 28, paddingX: 12, fontSize: 12 },
|
|
7
|
+
md: { mantineSize: 'lg', height: 36, paddingX: 16, fontSize: 14 },
|
|
8
|
+
lg: { mantineSize: 'xl', height: 44, paddingX: 20, fontSize: 16 },
|
|
9
9
|
};
|
|
10
10
|
const SegmentedControl = ({ styles, size = 'md', color, ...props }) => {
|
|
11
11
|
const selectedSize = componentSizes[size];
|
|
12
12
|
const style = {
|
|
13
13
|
root: {
|
|
14
14
|
backgroundColor: neutral[50],
|
|
15
|
+
minHeight: `${selectedSize.height}px`,
|
|
16
|
+
},
|
|
17
|
+
control: {
|
|
18
|
+
height: `${selectedSize.height}px`,
|
|
19
|
+
'&:not(:first-of-type)': {
|
|
20
|
+
borderColor: neutral[100],
|
|
21
|
+
},
|
|
15
22
|
},
|
|
16
23
|
controlActive: {
|
|
17
24
|
backgroundColor: white,
|
|
18
25
|
},
|
|
19
26
|
label: {
|
|
20
27
|
...fontBase,
|
|
21
|
-
|
|
28
|
+
height: `${selectedSize.height}px`,
|
|
29
|
+
padding: `0 ${selectedSize.paddingX}px`,
|
|
30
|
+
fontSize: `${selectedSize.fontSize}px`,
|
|
31
|
+
lineHeight: 1,
|
|
32
|
+
display: 'flex',
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
justifyContent: 'center',
|
|
22
35
|
'&:not([data-active])': {
|
|
23
36
|
color: neutral[200],
|
|
24
37
|
},
|
|
@@ -29,13 +42,8 @@ const SegmentedControl = ({ styles, size = 'md', color, ...props }) => {
|
|
|
29
42
|
},
|
|
30
43
|
},
|
|
31
44
|
},
|
|
32
|
-
control: {
|
|
33
|
-
'&:not(:first-of-type)': {
|
|
34
|
-
borderColor: neutral[100],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
45
|
...styles,
|
|
38
46
|
};
|
|
39
|
-
return _jsx(MantineSegmentedControl, { radius: 'md',
|
|
47
|
+
return (_jsx(MantineSegmentedControl, { color: color, radius: 'md', size: selectedSize.mantineSize, styles: style, transitionDuration: 300, transitionTimingFunction: 'linear', ...props }));
|
|
40
48
|
};
|
|
41
49
|
export { SegmentedControl };
|
|
@@ -1,29 +1,43 @@
|
|
|
1
|
-
import { CSSObject, SwitchProps as MantineToggleProps } from '@mantine/core';
|
|
1
|
+
import { type CSSObject, type SwitchProps as MantineToggleProps } from '@mantine/core';
|
|
2
|
+
import type React from 'react';
|
|
2
3
|
declare const componentSizes: {
|
|
4
|
+
readonly md: {
|
|
5
|
+
readonly fontSize: string;
|
|
6
|
+
readonly lineHeight: string;
|
|
7
|
+
readonly height: 28;
|
|
8
|
+
readonly iconSize: 12;
|
|
9
|
+
readonly mantineSize: "xl";
|
|
10
|
+
readonly thumbScale: 1.3;
|
|
11
|
+
readonly thumbTranslate: 10;
|
|
12
|
+
readonly width: 48;
|
|
13
|
+
};
|
|
3
14
|
readonly sm: {
|
|
4
15
|
readonly fontSize: string;
|
|
5
16
|
readonly lineHeight: string;
|
|
6
|
-
readonly width: 24;
|
|
7
17
|
readonly height: 18;
|
|
18
|
+
readonly iconSize: 8;
|
|
8
19
|
readonly mantineSize: "md";
|
|
9
20
|
readonly thumbScale: 1.3;
|
|
10
21
|
readonly thumbTranslate: 2;
|
|
22
|
+
readonly width: 24;
|
|
11
23
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
readonly
|
|
24
|
+
};
|
|
25
|
+
declare const componentVariants: {
|
|
26
|
+
readonly error: {
|
|
27
|
+
readonly activeColor: "#FF3B30";
|
|
28
|
+
readonly getThumbIcon: (_iconSize: number) => React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
readonly primary: {
|
|
31
|
+
readonly activeColor: "#6F3FEE";
|
|
32
|
+
readonly getThumbIcon: (_iconSize: number) => React.ReactNode;
|
|
20
33
|
};
|
|
21
34
|
};
|
|
22
35
|
interface ToggleProps extends MantineToggleProps {
|
|
23
36
|
size?: keyof typeof componentSizes;
|
|
24
37
|
label?: string;
|
|
38
|
+
variant?: keyof typeof componentVariants;
|
|
25
39
|
styles?: Record<string, CSSObject>;
|
|
26
40
|
}
|
|
27
|
-
declare const Toggle: ({ checked, onChange, styles, size, label, ...props }: ToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
declare const Toggle: ({ checked, onChange, styles, size, variant, label, ...props }: ToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
42
|
export { Toggle };
|
|
29
43
|
//# sourceMappingURL=Toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Controls/Toggle/Toggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Controls/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,WAAW,IAAI,kBAAkB,EACvC,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;CAmBV,CAAC;AAIX,QAAA,MAAM,iBAAiB;;;2CAGO,MAAM,KAAa,KAAK,CAAC,SAAS;;;;2CAIlC,MAAM,KAAa,KAAK,CAAC,SAAS;;CAEtD,CAAC;AAEX,UAAU,WAAY,SAAQ,kBAAkB;IAC9C,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,MAAM,GAAI,+DAQb,WAAW,4CA+Db,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|