@okam/stack-ui 1.25.3 → 1.25.4
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/components/Accordion/components/AccordionItem.d.ts +3 -0
- package/components/Accordion/components/AriaAccordionItem.d.ts +3 -0
- package/components/Accordion/hooks/useAccordionState.d.ts +10 -0
- package/components/Accordion/index.d.ts +3 -0
- package/{src/components/Accordion/interface.ts → components/Accordion/interface.d.ts} +17 -23
- package/components/Alerts/components/AlertsCloseButton.d.ts +4 -0
- package/components/Alerts/components/AlertsItem.d.ts +3 -0
- package/components/Alerts/components/AlertsNavigationButton.d.ts +8 -0
- package/components/Alerts/components/AlertsSwiper.d.ts +3 -0
- package/components/Alerts/components/pagination/AlertsPagination.d.ts +3 -0
- package/components/Alerts/components/pagination/AlertsPaginationBullet.d.ts +3 -0
- package/components/Alerts/index.d.ts +3 -0
- package/components/Alerts/interface.d.ts +41 -0
- package/components/Box/index.d.ts +5 -0
- package/components/Box/interface.d.ts +11 -0
- package/components/Button/index.d.ts +6 -0
- package/components/Button/interface.d.ts +20 -0
- package/components/Calendar/RangeCalendar.d.ts +3 -0
- package/components/Calendar/components/CalendarCell.d.ts +3 -0
- package/components/Calendar/components/CalendarGrid.d.ts +3 -0
- package/components/Calendar/index.d.ts +3 -0
- package/components/Calendar/interface.d.ts +32 -0
- package/components/Carousel/index.d.ts +3 -0
- package/components/Carousel/interface.d.ts +24 -0
- package/components/Date/index.d.ts +3 -0
- package/components/Date/interface.d.ts +6 -0
- package/components/Dialog/index.d.ts +2 -0
- package/components/Dialog/interface.d.ts +6 -0
- package/components/DirectusImg/index.d.ts +3 -0
- package/components/DirectusImg/interface.d.ts +17 -0
- package/components/Icon/index.d.ts +3 -0
- package/components/Icon/interface.d.ts +7 -0
- package/components/Img/index.d.ts +3 -0
- package/components/Img/interface.d.ts +6 -0
- package/components/Lightbox/index.d.ts +3 -0
- package/components/Lightbox/interface.d.ts +25 -0
- package/components/Menu/Menu.d.ts +3 -0
- package/components/Menu/MenuSidePanel.d.ts +3 -0
- package/components/Menu/components/InnerContent.d.ts +3 -0
- package/components/Menu/components/MenuItems.d.ts +3 -0
- package/components/Menu/components/TabContainer.d.ts +3 -0
- package/components/Menu/interface.d.ts +31 -0
- package/components/Modal/components/ModalDialog.d.ts +3 -0
- package/components/Modal/components/ModalOverlay.d.ts +3 -0
- package/components/Modal/index.d.ts +3 -0
- package/{src/components/Modal/interface.ts → components/Modal/interface.d.ts} +11 -14
- package/components/Popover/index.d.ts +3 -0
- package/components/Popover/interface.d.ts +21 -0
- package/components/ShareButton/index.d.ts +4 -0
- package/components/ShareButton/interface.d.ts +26 -0
- package/components/ShareButton/utils/generateUtmTags.d.ts +2 -0
- package/components/ShareButton/utils/useFacebookShareUrl.d.ts +2 -0
- package/components/ShareButton/utils/useMailToShareUrl.d.ts +2 -0
- package/components/ShareButton/utils/useTwitterShareUrl.d.ts +2 -0
- package/components/ShareButton/utils/useWindow.d.ts +5 -0
- package/components/SidePanel/index.d.ts +4 -0
- package/components/SidePanel/interface.d.ts +12 -0
- package/components/TabList/components/TabPanel/TabPanel.d.ts +4 -0
- package/components/TabList/interface.d.ts +18 -0
- package/components/Typography/index.d.ts +5 -0
- package/components/Typography/interface.d.ts +10 -0
- package/components/WysiwygBlock/index.d.ts +3 -0
- package/components/WysiwygBlock/interface.d.ts +5 -0
- package/components/fields/Checkbox/Checkbox.interface.d.ts +18 -0
- package/components/fields/Checkbox/index.d.ts +3 -0
- package/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.d.ts +3 -0
- package/components/fields/CheckboxGroup/index.d.ts +3 -0
- package/components/fields/CheckboxGroup/interface.d.ts +13 -0
- package/components/fields/DatePicker/DateRangePicker.d.ts +3 -0
- package/components/fields/DatePicker/components/CalendarPopover.d.ts +2 -0
- package/components/fields/DatePicker/components/DateField.d.ts +4 -0
- package/components/fields/DatePicker/index.d.ts +3 -0
- package/components/fields/DatePicker/interface.d.ts +37 -0
- package/components/fields/Radio/Radio.interface.d.ts +26 -0
- package/components/fields/Radio/index.d.ts +4 -0
- package/components/fields/RadioGroup/index.d.ts +3 -0
- package/components/fields/RadioGroup/interface.d.ts +9 -0
- package/components/fields/SearchField/index.d.ts +3 -0
- package/components/fields/SearchField/interface.d.ts +9 -0
- package/components/fields/Select/Select.d.ts +4 -0
- package/components/fields/Select/Select.interface.d.ts +26 -0
- package/components/fields/Select/components/Listbox.d.ts +4 -0
- package/{src/components/fields/Select/components/Listbox.interface.ts → components/fields/Select/components/Listbox.interface.d.ts} +8 -11
- package/components/fields/Select/components/Popover.d.ts +3 -0
- package/components/fields/Select/components/Popover.interface.d.ts +13 -0
- package/components/fields/SelectItem/SelectItem.d.ts +3 -0
- package/{src/components/fields/SelectItem/SelectItem.interface.ts → components/fields/SelectItem/SelectItem.interface.d.ts} +3 -4
- package/components/fields/TextArea/index.d.ts +4 -0
- package/components/fields/TextInputField/index.d.ts +4 -0
- package/components/fields/TextInputField/interface.d.ts +24 -0
- package/components/icons/ArrowDown.d.ts +3 -0
- package/components/icons/ArrowLeft.d.ts +3 -0
- package/components/icons/ArrowRight.d.ts +3 -0
- package/components/icons/Check.d.ts +3 -0
- package/components/icons/ChevronLeft.d.ts +3 -0
- package/components/icons/ChevronRight.d.ts +3 -0
- package/components/icons/CloseBtn.d.ts +3 -0
- package/components/icons/Facebook.d.ts +3 -0
- package/components/icons/FacebookColored.d.ts +3 -0
- package/components/icons/FacebookRounded.d.ts +3 -0
- package/components/icons/Globe.d.ts +3 -0
- package/components/icons/IconFallback.d.ts +3 -0
- package/components/icons/Instagram.d.ts +3 -0
- package/components/icons/InstagramColored.d.ts +3 -0
- package/components/icons/Link.d.ts +3 -0
- package/components/icons/LinkedIn.d.ts +3 -0
- package/components/icons/Mail.d.ts +3 -0
- package/components/icons/Plus.d.ts +3 -0
- package/components/icons/Search.d.ts +3 -0
- package/components/icons/Share.d.ts +3 -0
- package/components/icons/Twitter.d.ts +3 -0
- package/components/icons/TwitterColored.d.ts +3 -0
- package/components/icons/Upload.d.ts +3 -0
- package/components/icons/X.d.ts +3 -0
- package/components/icons/YouTube.d.ts +3 -0
- package/components/icons/YouTubeColored.d.ts +3 -0
- package/components/icons/index.d.ts +24 -0
- package/{src/index.ts → index.d.ts} +57 -72
- package/index.js +110 -0
- package/index.mjs +12755 -0
- package/package.json +1 -1
- package/providers/Accordion/index.d.ts +4 -0
- package/providers/Accordion/interface.d.ts +12 -0
- package/providers/Alerts/index.d.ts +4 -0
- package/providers/Alerts/interface.d.ts +9 -0
- package/providers/CheckboxGroup/index.d.ts +5 -0
- package/{src/providers/CheckboxGroup/interface.ts → providers/CheckboxGroup/interface.d.ts} +4 -5
- package/providers/Client/index.d.ts +4 -0
- package/providers/Client/interface.d.ts +10 -0
- package/providers/Menu/index.d.ts +4 -0
- package/providers/Menu/interface.d.ts +28 -0
- package/providers/RadioGroup/RadioGroup.d.ts +5 -0
- package/providers/RadioGroup/RadioGroup.interface.d.ts +7 -0
- package/providers/SidePanel/index.d.ts +4 -0
- package/providers/SidePanel/interface.d.ts +23 -0
- package/providers/Theme/hooks.d.ts +3 -0
- package/providers/Theme/index.d.ts +10 -0
- package/providers/Theme/interface.d.ts +24 -0
- package/providers/Theme/utils.d.ts +2 -0
- package/providers/UserSearchQuery/index.d.ts +4 -0
- package/providers/UserSearchQuery/interface.d.ts +10 -0
- package/style.css +1 -0
- package/theme/Accordion/index.d.ts +274 -0
- package/theme/Alerts/index.d.ts +1167 -0
- package/theme/Box/index.d.ts +214 -0
- package/theme/Button/index.d.ts +121 -0
- package/theme/Calendar/index.d.ts +366 -0
- package/theme/Carousel/index.d.ts +9 -0
- package/theme/Checkbox/index.d.ts +159 -0
- package/theme/CheckboxGroup/index.d.ts +30 -0
- package/theme/DatePicker/index.d.ts +43 -0
- package/theme/Image/index.d.ts +3 -0
- package/theme/LightBox/index.d.ts +455 -0
- package/theme/Radio/index.d.ts +108 -0
- package/theme/RadioGroup/index.d.ts +30 -0
- package/theme/Search/index.d.ts +30 -0
- package/theme/ShareButton/index.d.ts +174 -0
- package/theme/SidePanel/index.d.ts +3 -0
- package/theme/TextArea/index.d.ts +29 -0
- package/theme/Typography/index.d.ts +233 -0
- package/theme/index.d.ts +5 -0
- package/transitions/AccordionTransition.d.ts +4 -0
- package/transitions/ModalTransition.d.ts +7 -0
- package/transitions/RenderWithOpacity.d.ts +4 -0
- package/transitions/RenderWithSlide.d.ts +7 -0
- package/transitions/SidePanelTransition.d.ts +7 -0
- package/types/components.d.ts +28 -0
- package/.eslintrc.js +0 -32
- package/.storybook/.eslintrc.js +0 -29
- package/.storybook/main.ts +0 -33
- package/.storybook/preview.js +0 -56
- package/.storybook/tsconfig.json +0 -17
- package/CHANGELOG.md +0 -574
- package/README.md +0 -8
- package/postcss.config.js +0 -15
- package/project.json +0 -77
- package/src/_stories/icons/code-brackets.svg +0 -1
- package/src/_stories/icons/colors.svg +0 -1
- package/src/_stories/icons/comments.svg +0 -1
- package/src/_stories/icons/direction.svg +0 -1
- package/src/_stories/icons/flow.svg +0 -1
- package/src/_stories/icons/plugin.svg +0 -1
- package/src/_stories/icons/repo.svg +0 -1
- package/src/_stories/icons/stackalt.svg +0 -1
- package/src/components/Accordion/accordion.stories.mdx +0 -240
- package/src/components/Accordion/components/AccordionItem.tsx +0 -53
- package/src/components/Accordion/components/AriaAccordionItem.tsx +0 -76
- package/src/components/Accordion/hooks/useAccordionState.ts +0 -46
- package/src/components/Accordion/index.tsx +0 -38
- package/src/components/Alerts/alerts.stories.mdx +0 -282
- package/src/components/Alerts/components/AlertsCloseButton.tsx +0 -20
- package/src/components/Alerts/components/AlertsItem.tsx +0 -39
- package/src/components/Alerts/components/AlertsNavigationButton.tsx +0 -71
- package/src/components/Alerts/components/AlertsSwiper.tsx +0 -125
- package/src/components/Alerts/components/pagination/AlertsPagination.tsx +0 -32
- package/src/components/Alerts/components/pagination/AlertsPaginationBullet.tsx +0 -61
- package/src/components/Alerts/index.tsx +0 -54
- package/src/components/Alerts/interface.ts +0 -51
- package/src/components/Box/box.stories.mdx +0 -27
- package/src/components/Box/index.tsx +0 -36
- package/src/components/Box/interface.ts +0 -10
- package/src/components/Button/button.stories.mdx +0 -99
- package/src/components/Button/index.tsx +0 -92
- package/src/components/Button/interface.ts +0 -22
- package/src/components/Calendar/RangeCalendar.tsx +0 -61
- package/src/components/Calendar/calendar.stories.mdx +0 -28
- package/src/components/Calendar/components/CalendarCell.tsx +0 -60
- package/src/components/Calendar/components/CalendarGrid.tsx +0 -44
- package/src/components/Calendar/index.tsx +0 -63
- package/src/components/Calendar/interface.ts +0 -37
- package/src/components/Carousel/carousel.stories.mdx +0 -182
- package/src/components/Carousel/index.tsx +0 -99
- package/src/components/Carousel/interface.ts +0 -26
- package/src/components/Date/date.stories.mdx +0 -122
- package/src/components/Date/index.tsx +0 -35
- package/src/components/Date/interface.ts +0 -7
- package/src/components/Dialog/index.tsx +0 -14
- package/src/components/Dialog/interface.ts +0 -6
- package/src/components/DirectusImg/index.tsx +0 -59
- package/src/components/DirectusImg/interface.ts +0 -19
- package/src/components/Icon/index.tsx +0 -40
- package/src/components/Icon/interface.ts +0 -8
- package/src/components/Img/img.stories.mdx +0 -28
- package/src/components/Img/index.tsx +0 -30
- package/src/components/Img/interface.ts +0 -9
- package/src/components/Lightbox/hooks/overlay/index.tsx +0 -36
- package/src/components/Lightbox/index.tsx +0 -82
- package/src/components/Lightbox/interface.ts +0 -28
- package/src/components/Lightbox/lightbox.stories.mdx +0 -79
- package/src/components/Menu/Menu.tsx +0 -43
- package/src/components/Menu/MenuSidePanel.tsx +0 -41
- package/src/components/Menu/components/InnerContent.tsx +0 -26
- package/src/components/Menu/components/MenuItems.tsx +0 -133
- package/src/components/Menu/components/TabContainer.tsx +0 -13
- package/src/components/Menu/interface.ts +0 -41
- package/src/components/Menu/menu.stories.mdx +0 -23
- package/src/components/Modal/components/ModalDialog.tsx +0 -31
- package/src/components/Modal/components/ModalOverlay.tsx +0 -21
- package/src/components/Modal/index.tsx +0 -32
- package/src/components/Popover/index.tsx +0 -138
- package/src/components/Popover/interface.ts +0 -25
- package/src/components/Popover/popover.stories.mdx +0 -66
- package/src/components/ShareButton/index.tsx +0 -172
- package/src/components/ShareButton/interface.ts +0 -29
- package/src/components/ShareButton/share-button.stories.mdx +0 -48
- package/src/components/ShareButton/utils/generateUtmTags.ts +0 -4
- package/src/components/ShareButton/utils/useFacebookShareUrl.ts +0 -15
- package/src/components/ShareButton/utils/useMailToShareUrl.ts +0 -15
- package/src/components/ShareButton/utils/useTwitterShareUrl.ts +0 -15
- package/src/components/ShareButton/utils/useWindow.ts +0 -17
- package/src/components/SidePanel/index.tsx +0 -43
- package/src/components/SidePanel/interface.ts +0 -16
- package/src/components/SidePanel/side-panel.stories.mdx +0 -44
- package/src/components/TabList/components/Tab/Tab.tsx +0 -19
- package/src/components/TabList/components/TabPanel/TabPanel.tsx +0 -27
- package/src/components/TabList/index.tsx +0 -44
- package/src/components/TabList/interface.ts +0 -23
- package/src/components/Typography/index.tsx +0 -35
- package/src/components/Typography/interface.ts +0 -9
- package/src/components/Typography/typo.stories.mdx +0 -157
- package/src/components/WysiwygBlock/index.tsx +0 -20
- package/src/components/WysiwygBlock/interface.ts +0 -7
- package/src/components/WysiwygBlock/wysiwyg.stories.mdx +0 -53
- package/src/components/fields/Checkbox/Checkbox.interface.ts +0 -21
- package/src/components/fields/Checkbox/Checkbox.stories.mdx +0 -127
- package/src/components/fields/Checkbox/index.tsx +0 -62
- package/src/components/fields/CheckboxGroup/checkbox-group.stories.mdx +0 -59
- package/src/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.tsx +0 -66
- package/src/components/fields/CheckboxGroup/index.tsx +0 -49
- package/src/components/fields/CheckboxGroup/interface.ts +0 -17
- package/src/components/fields/DatePicker/DateRangePicker.tsx +0 -73
- package/src/components/fields/DatePicker/components/CalendarPopover.tsx +0 -31
- package/src/components/fields/DatePicker/components/DateField.tsx +0 -61
- package/src/components/fields/DatePicker/date-picker.stories.mdx +0 -55
- package/src/components/fields/DatePicker/index.tsx +0 -71
- package/src/components/fields/DatePicker/interface.ts +0 -69
- package/src/components/fields/Radio/Radio.interface.ts +0 -30
- package/src/components/fields/Radio/index.tsx +0 -63
- package/src/components/fields/RadioGroup/index.tsx +0 -33
- package/src/components/fields/RadioGroup/interface.ts +0 -10
- package/src/components/fields/RadioGroup/radio-group.stories.mdx +0 -56
- package/src/components/fields/SearchField/index.tsx +0 -59
- package/src/components/fields/SearchField/interface.ts +0 -10
- package/src/components/fields/SearchField/search.stories.mdx +0 -91
- package/src/components/fields/Select/Select.interface.ts +0 -24
- package/src/components/fields/Select/Select.stories.mdx +0 -53
- package/src/components/fields/Select/Select.tsx +0 -108
- package/src/components/fields/Select/components/Listbox.tsx +0 -40
- package/src/components/fields/Select/components/Popover.interface.ts +0 -14
- package/src/components/fields/Select/components/Popover.tsx +0 -32
- package/src/components/fields/SelectItem/SelectItem.tsx +0 -10
- package/src/components/fields/TextArea/index.tsx +0 -105
- package/src/components/fields/TextArea/textArea.stories.mdx +0 -60
- package/src/components/fields/TextInputField/index.tsx +0 -107
- package/src/components/fields/TextInputField/interface.ts +0 -30
- package/src/components/fields/TextInputField/text-input-field.stories.mdx +0 -64
- package/src/components/icons/ArrowDown.tsx +0 -11
- package/src/components/icons/ArrowLeft.tsx +0 -18
- package/src/components/icons/ArrowRight.tsx +0 -18
- package/src/components/icons/Check.tsx +0 -11
- package/src/components/icons/ChevronLeft.tsx +0 -11
- package/src/components/icons/ChevronRight.tsx +0 -11
- package/src/components/icons/CloseBtn.tsx +0 -11
- package/src/components/icons/Facebook.tsx +0 -14
- package/src/components/icons/FacebookColored.tsx +0 -16
- package/src/components/icons/FacebookRounded.tsx +0 -16
- package/src/components/icons/Globe.tsx +0 -38
- package/src/components/icons/IconFallback.tsx +0 -8
- package/src/components/icons/Instagram.tsx +0 -14
- package/src/components/icons/InstagramColored.tsx +0 -59
- package/src/components/icons/Link.tsx +0 -14
- package/src/components/icons/LinkedIn.tsx +0 -16
- package/src/components/icons/Mail.tsx +0 -16
- package/src/components/icons/Plus.tsx +0 -18
- package/src/components/icons/Search.tsx +0 -19
- package/src/components/icons/Share.tsx +0 -16
- package/src/components/icons/Twitter.tsx +0 -16
- package/src/components/icons/TwitterColored.tsx +0 -16
- package/src/components/icons/Upload.tsx +0 -14
- package/src/components/icons/X.tsx +0 -14
- package/src/components/icons/YouTube.tsx +0 -16
- package/src/components/icons/YouTubeColored.tsx +0 -17
- package/src/components/icons/index.ts +0 -24
- package/src/examples/PageLayout/index.tsx +0 -61
- package/src/examples/PageLayout/layout.stories.mdx +0 -35
- package/src/message.tsx +0 -8
- package/src/providers/Accordion/index.tsx +0 -15
- package/src/providers/Accordion/interface.ts +0 -14
- package/src/providers/Alerts/index.tsx +0 -15
- package/src/providers/Alerts/interface.ts +0 -11
- package/src/providers/CheckboxGroup/index.tsx +0 -22
- package/src/providers/Client/index.tsx +0 -21
- package/src/providers/Client/interface.ts +0 -13
- package/src/providers/Menu/index.tsx +0 -43
- package/src/providers/Menu/interface.ts +0 -32
- package/src/providers/RadioGroup/RadioGroup.interface.ts +0 -8
- package/src/providers/RadioGroup/RadioGroup.tsx +0 -25
- package/src/providers/SidePanel/index.tsx +0 -55
- package/src/providers/SidePanel/interface.ts +0 -26
- package/src/providers/Theme/hooks.ts +0 -25
- package/src/providers/Theme/index.tsx +0 -40
- package/src/providers/Theme/interface.ts +0 -28
- package/src/providers/Theme/utils.ts +0 -3
- package/src/providers/UserSearchQuery/index.tsx +0 -20
- package/src/providers/UserSearchQuery/interface.ts +0 -12
- package/src/storybook/Lightbox/LightboxControlledState.tsx +0 -28
- package/src/storybook/Menu/Menu.tsx +0 -177
- package/src/storybook/Menu/NestedMenu.tsx +0 -24
- package/src/storybook/Menu/mock.tsx +0 -84
- package/src/storybook/SelectField/index.tsx +0 -57
- package/src/storybook/ShareButtonExample/index.tsx +0 -66
- package/src/tailwind.css +0 -3
- package/src/theme/Accordion/index.tsx +0 -101
- package/src/theme/Alerts/index.ts +0 -97
- package/src/theme/Box/index.ts +0 -45
- package/src/theme/Button/index.tsx +0 -72
- package/src/theme/Calendar/index.tsx +0 -167
- package/src/theme/Carousel/index.ts +0 -36
- package/src/theme/Checkbox/index.ts +0 -49
- package/src/theme/CheckboxGroup/index.ts +0 -14
- package/src/theme/DatePicker/index.tsx +0 -42
- package/src/theme/Image/index.ts +0 -8
- package/src/theme/LightBox/index.ts +0 -56
- package/src/theme/Radio/index.ts +0 -31
- package/src/theme/RadioGroup/index.ts +0 -14
- package/src/theme/Search/index.ts +0 -20
- package/src/theme/ShareButton/index.tsx +0 -76
- package/src/theme/SidePanel/index.ts +0 -9
- package/src/theme/TextArea/index.ts +0 -25
- package/src/theme/Typography/index.tsx +0 -44
- package/src/theme/index.tsx +0 -178
- package/src/transitions/AccordionTransition.tsx +0 -26
- package/src/transitions/ModalTransition.tsx +0 -38
- package/src/transitions/RenderWithOpacity.tsx +0 -25
- package/src/transitions/RenderWithSlide.tsx +0 -21
- package/src/transitions/SidePanelTransition.tsx +0 -30
- package/src/types/components.ts +0 -34
- package/static/images/image.png +0 -0
- package/tailwind.config.js +0 -14
- package/tsconfig.json +0 -20
- package/tsconfig.lib.json +0 -25
- package/vite.config.ts +0 -58
package/package.json
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TAccordionContext, TAccordionProviderProps } from './interface';
|
|
3
|
+
export declare const useAccordionCtx: () => TAccordionContext, AccordionProvider: import("react").Provider<TAccordionContext | undefined>;
|
|
4
|
+
export declare function AccordionContextProvider(props: TAccordionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { TreeState } from 'react-stately';
|
|
3
|
+
import type { TAccordionItemProps, TAccordionProps } from '../../components/Accordion/interface';
|
|
4
|
+
type TAccordion = NonNullable<Pick<TAccordionProps, 'TransitionAnimation'>>;
|
|
5
|
+
export interface TAccordionProviderProps extends TAccordion {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
state: TreeState<TAccordionItemProps>;
|
|
8
|
+
}
|
|
9
|
+
export type TAccordionContext = TAccordion & {
|
|
10
|
+
state: TreeState<TAccordionItemProps>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TAlertsControllerContext, TAlertsControllerProviderProps } from './interface';
|
|
3
|
+
export declare const useAlertsController: () => TAlertsControllerContext, AlertsControllerProvider: import("react").Provider<TAlertsControllerContext | undefined>;
|
|
4
|
+
export declare function AlertsControllerContextProvider(props: TAlertsControllerProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { SwiperClass } from 'swiper/react';
|
|
3
|
+
export interface TAlertsControllerProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
controller: SwiperClass | undefined;
|
|
6
|
+
}
|
|
7
|
+
export type TAlertsControllerContext = {
|
|
8
|
+
controller: SwiperClass | undefined;
|
|
9
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CheckboxGroupState } from '@react-stately/checkbox';
|
|
2
|
+
import type { TCheckboxGroupContext } from './interface';
|
|
3
|
+
declare const CheckboxGroupProvider: (props: TCheckboxGroupContext) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function useCheckboxGroupCtx(): CheckboxGroupState | null;
|
|
5
|
+
export { CheckboxGroupProvider, useCheckboxGroupCtx };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type React from 'react'
|
|
2
|
-
import type { CheckboxGroupProps, CheckboxGroupState } from 'react-stately'
|
|
3
|
-
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { CheckboxGroupProps, CheckboxGroupState } from 'react-stately';
|
|
4
3
|
export interface TCheckboxGroupContext extends CheckboxGroupProps {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
state: CheckboxGroupState;
|
|
7
6
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IMenuProviderProps, TMenuContext } from './interface';
|
|
3
|
+
export declare const useMenu: () => TMenuContext, MenuProvider: import("react").Provider<TMenuContext | undefined>;
|
|
4
|
+
export declare function MenuContextProvider({ children, defaultSelectedKey, defaultIsOpen, onCloseCallback, onOpenCallback, tabs, openBtn, closeBtn, ...rest }: IMenuProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { CollectionChildren } from '@react-types/shared';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { AriaTabListProps } from 'react-aria';
|
|
4
|
+
import type { TabListState } from 'react-stately';
|
|
5
|
+
export type TMenuProviderProps = {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
tabs?: CollectionChildren<object>;
|
|
8
|
+
defaultSelectedKey: string;
|
|
9
|
+
defaultIsOpen?: boolean;
|
|
10
|
+
onCloseCallback?: () => void;
|
|
11
|
+
onOpenCallback?: () => void;
|
|
12
|
+
openBtn?: () => JSX.Element;
|
|
13
|
+
closeBtn?: () => JSX.Element;
|
|
14
|
+
secondaryOpenBtn?: () => JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
export type IMenuProviderProps = AriaTabListProps<TMenuProviderProps> & TMenuProviderProps;
|
|
17
|
+
export type TMenuContext = {
|
|
18
|
+
openBtn?: () => JSX.Element;
|
|
19
|
+
closeBtn?: () => JSX.Element;
|
|
20
|
+
secondaryOpenBtn?: () => JSX.Element;
|
|
21
|
+
tabState: TabListState<object>;
|
|
22
|
+
defaultSelectedKey: string;
|
|
23
|
+
};
|
|
24
|
+
export type TMenuProps = {
|
|
25
|
+
openBtn?: () => JSX.Element;
|
|
26
|
+
closeBtn?: () => JSX.Element;
|
|
27
|
+
secondaryOpenBtn?: () => JSX.Element;
|
|
28
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RadioGroupState } from '@react-stately/radio';
|
|
2
|
+
import type { TRadioGroupContext } from './RadioGroup.interface';
|
|
3
|
+
declare const RadioGroupProvider: (props: TRadioGroupContext) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function useRadioGroupCtx(): RadioGroupState | null;
|
|
5
|
+
export { RadioGroupProvider, useRadioGroupCtx };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RadioGroupProps } from '@react-types/radio';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { RadioGroupState } from 'react-stately';
|
|
4
|
+
export interface TRadioGroupContext extends RadioGroupProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
state: RadioGroupState;
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TSidePanelContext, TSidePanelProviderProps } from './interface';
|
|
2
|
+
declare const useSidePanel: () => TSidePanelContext;
|
|
3
|
+
export { useSidePanel };
|
|
4
|
+
export declare function SidePanelContextProvider(props: TSidePanelProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { OverlayTriggerState } from '@react-stately/overlays';
|
|
2
|
+
import type { DOMProps } from '@react-types/shared';
|
|
3
|
+
import type React from 'react';
|
|
4
|
+
import type { OverlayTriggerProps } from 'react-aria';
|
|
5
|
+
export type TSidePanelProviderProps = Partial<OverlayTriggerProps> & {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
defaultSelectedKey: string;
|
|
8
|
+
defaultIsOpen?: boolean;
|
|
9
|
+
onOpenCallback?: () => void;
|
|
10
|
+
onCloseCallback?: () => void;
|
|
11
|
+
};
|
|
12
|
+
export type TButtonProps = {
|
|
13
|
+
closeButtonProps: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
14
|
+
closeButtonRef: React.MutableRefObject<null>;
|
|
15
|
+
openButtonProps: React.HTMLAttributes<HTMLDivElement>;
|
|
16
|
+
openButtonRef: React.MutableRefObject<null>;
|
|
17
|
+
};
|
|
18
|
+
export type TSidePanelContext = {
|
|
19
|
+
defaultSelectedKey: string;
|
|
20
|
+
overlayState: OverlayTriggerState;
|
|
21
|
+
buttonProps: TButtonProps;
|
|
22
|
+
overlayProps: DOMProps;
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TThemeProviderProps, TThemePanelContext, TTheme } from './interface';
|
|
3
|
+
export declare function createCtxNullable<A extends Record<string, unknown> | null>(): readonly [() => A | null, React.Provider<A | undefined>];
|
|
4
|
+
declare const useTheme: () => TThemePanelContext<TTheme> | null;
|
|
5
|
+
export declare function ThemeContextProvider({ children, brandTheme }: TThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const createThemeProvider: (brandTheme: TTheme) => ({ children }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { useTheme };
|
|
10
|
+
export { makeTheme } from './utils';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type TStyleValue = false | string;
|
|
3
|
+
export type TToken = Record<string, string | boolean>;
|
|
4
|
+
export type TFunc = (props: TToken) => TStyleValue[] | string;
|
|
5
|
+
export type TTheme = {
|
|
6
|
+
[key: string]: TFunc | TTheme;
|
|
7
|
+
};
|
|
8
|
+
export type TStyle = Record<string, TStyleValue>;
|
|
9
|
+
export type TCustomTheme = TStyleValue | null | undefined;
|
|
10
|
+
export type TStyleCollection = Record<string, TStyle>;
|
|
11
|
+
export type TDefaultTheme = {
|
|
12
|
+
typography: (props: TToken) => TStyleValue[] | string;
|
|
13
|
+
};
|
|
14
|
+
export type TThemeProviderProps<T = TTheme> = {
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
brandTheme?: T;
|
|
17
|
+
};
|
|
18
|
+
export type TThemePanelContext<T = TTheme> = {
|
|
19
|
+
brandTheme: T;
|
|
20
|
+
};
|
|
21
|
+
export interface ITheme {
|
|
22
|
+
defaultTokens: TToken;
|
|
23
|
+
styles: TStyleCollection;
|
|
24
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TSearchListingContext, TSearchProviderProps } from './interface';
|
|
3
|
+
export declare const useUserQueryValHook: () => TSearchListingContext, SearchProvider: import("react").Provider<TSearchListingContext | undefined>;
|
|
4
|
+
export declare function SearchBarProvider(props: TSearchProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
export type TSearchListingContext = {
|
|
4
|
+
userSearchQuery: string;
|
|
5
|
+
setUserSearchQuery: Dispatch<SetStateAction<string>>;
|
|
6
|
+
};
|
|
7
|
+
export interface TSearchProviderProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
userQuery: string;
|
|
10
|
+
}
|
package/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ 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);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import type { TToken } from '../../providers/Theme/interface';
|
|
2
|
+
export declare const accordionContainer: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
textAlign: {
|
|
4
|
+
center: "text-center";
|
|
5
|
+
left: "text-left";
|
|
6
|
+
};
|
|
7
|
+
}, undefined, "[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500", import("tailwind-variants/dist/config").TVConfig<{
|
|
8
|
+
textAlign: {
|
|
9
|
+
center: "text-center";
|
|
10
|
+
left: "text-left";
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
textAlign: {
|
|
14
|
+
center: "text-center";
|
|
15
|
+
left: "text-left";
|
|
16
|
+
};
|
|
17
|
+
}>, {
|
|
18
|
+
textAlign: {
|
|
19
|
+
center: "text-center";
|
|
20
|
+
left: "text-left";
|
|
21
|
+
};
|
|
22
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
23
|
+
textAlign: {
|
|
24
|
+
center: "text-center";
|
|
25
|
+
left: "text-left";
|
|
26
|
+
};
|
|
27
|
+
}, undefined, "[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500", import("tailwind-variants/dist/config").TVConfig<{
|
|
28
|
+
textAlign: {
|
|
29
|
+
center: "text-center";
|
|
30
|
+
left: "text-left";
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
textAlign: {
|
|
34
|
+
center: "text-center";
|
|
35
|
+
left: "text-left";
|
|
36
|
+
};
|
|
37
|
+
}>, unknown, unknown, undefined>>;
|
|
38
|
+
export declare const accordionButton: import("tailwind-variants").TVReturnType<{
|
|
39
|
+
titleBold: {
|
|
40
|
+
true: "font-bold";
|
|
41
|
+
};
|
|
42
|
+
textAlign: {
|
|
43
|
+
center: "grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0";
|
|
44
|
+
left: "grid-cols-[1fr_3rem]";
|
|
45
|
+
};
|
|
46
|
+
bgColor: {
|
|
47
|
+
gray: "bg-gray-300";
|
|
48
|
+
white: "bg-white";
|
|
49
|
+
};
|
|
50
|
+
}, undefined, "grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black", import("tailwind-variants/dist/config").TVConfig<{
|
|
51
|
+
titleBold: {
|
|
52
|
+
true: "font-bold";
|
|
53
|
+
};
|
|
54
|
+
textAlign: {
|
|
55
|
+
center: "grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0";
|
|
56
|
+
left: "grid-cols-[1fr_3rem]";
|
|
57
|
+
};
|
|
58
|
+
bgColor: {
|
|
59
|
+
gray: "bg-gray-300";
|
|
60
|
+
white: "bg-white";
|
|
61
|
+
};
|
|
62
|
+
}, {
|
|
63
|
+
titleBold: {
|
|
64
|
+
true: "font-bold";
|
|
65
|
+
};
|
|
66
|
+
textAlign: {
|
|
67
|
+
center: "grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0";
|
|
68
|
+
left: "grid-cols-[1fr_3rem]";
|
|
69
|
+
};
|
|
70
|
+
bgColor: {
|
|
71
|
+
gray: "bg-gray-300";
|
|
72
|
+
white: "bg-white";
|
|
73
|
+
};
|
|
74
|
+
}>, {
|
|
75
|
+
titleBold: {
|
|
76
|
+
true: "font-bold";
|
|
77
|
+
};
|
|
78
|
+
textAlign: {
|
|
79
|
+
center: "grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0";
|
|
80
|
+
left: "grid-cols-[1fr_3rem]";
|
|
81
|
+
};
|
|
82
|
+
bgColor: {
|
|
83
|
+
gray: "bg-gray-300";
|
|
84
|
+
white: "bg-white";
|
|
85
|
+
};
|
|
86
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
87
|
+
titleBold: {
|
|
88
|
+
true: "font-bold";
|
|
89
|
+
};
|
|
90
|
+
textAlign: {
|
|
91
|
+
center: "grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0";
|
|
92
|
+
left: "grid-cols-[1fr_3rem]";
|
|
93
|
+
};
|
|
94
|
+
bgColor: {
|
|
95
|
+
gray: "bg-gray-300";
|
|
96
|
+
white: "bg-white";
|
|
97
|
+
};
|
|
98
|
+
}, undefined, "grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black", import("tailwind-variants/dist/config").TVConfig<{
|
|
99
|
+
titleBold: {
|
|
100
|
+
true: "font-bold";
|
|
101
|
+
};
|
|
102
|
+
textAlign: {
|
|
103
|
+
center: "grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0";
|
|
104
|
+
left: "grid-cols-[1fr_3rem]";
|
|
105
|
+
};
|
|
106
|
+
bgColor: {
|
|
107
|
+
gray: "bg-gray-300";
|
|
108
|
+
white: "bg-white";
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
titleBold: {
|
|
112
|
+
true: "font-bold";
|
|
113
|
+
};
|
|
114
|
+
textAlign: {
|
|
115
|
+
center: "grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0";
|
|
116
|
+
left: "grid-cols-[1fr_3rem]";
|
|
117
|
+
};
|
|
118
|
+
bgColor: {
|
|
119
|
+
gray: "bg-gray-300";
|
|
120
|
+
white: "bg-white";
|
|
121
|
+
};
|
|
122
|
+
}>, unknown, unknown, undefined>>;
|
|
123
|
+
export declare const accordionTitle: import("tailwind-variants").TVReturnType<{
|
|
124
|
+
textAlign: {
|
|
125
|
+
center: "justify-self-center col-start-2";
|
|
126
|
+
left: "justify-self-start";
|
|
127
|
+
};
|
|
128
|
+
}, undefined, "", import("tailwind-variants/dist/config").TVConfig<{
|
|
129
|
+
textAlign: {
|
|
130
|
+
center: "justify-self-center col-start-2";
|
|
131
|
+
left: "justify-self-start";
|
|
132
|
+
};
|
|
133
|
+
}, {
|
|
134
|
+
textAlign: {
|
|
135
|
+
center: "justify-self-center col-start-2";
|
|
136
|
+
left: "justify-self-start";
|
|
137
|
+
};
|
|
138
|
+
}>, {
|
|
139
|
+
textAlign: {
|
|
140
|
+
center: "justify-self-center col-start-2";
|
|
141
|
+
left: "justify-self-start";
|
|
142
|
+
};
|
|
143
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
144
|
+
textAlign: {
|
|
145
|
+
center: "justify-self-center col-start-2";
|
|
146
|
+
left: "justify-self-start";
|
|
147
|
+
};
|
|
148
|
+
}, undefined, "", import("tailwind-variants/dist/config").TVConfig<{
|
|
149
|
+
textAlign: {
|
|
150
|
+
center: "justify-self-center col-start-2";
|
|
151
|
+
left: "justify-self-start";
|
|
152
|
+
};
|
|
153
|
+
}, {
|
|
154
|
+
textAlign: {
|
|
155
|
+
center: "justify-self-center col-start-2";
|
|
156
|
+
left: "justify-self-start";
|
|
157
|
+
};
|
|
158
|
+
}>, unknown, unknown, undefined>>;
|
|
159
|
+
export declare const accordionIcon: import("tailwind-variants").TVReturnType<{
|
|
160
|
+
isOpen: {
|
|
161
|
+
true: "-rotate-90";
|
|
162
|
+
false: "";
|
|
163
|
+
};
|
|
164
|
+
}, undefined, "text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square", import("tailwind-variants/dist/config").TVConfig<{
|
|
165
|
+
isOpen: {
|
|
166
|
+
true: "-rotate-90";
|
|
167
|
+
false: "";
|
|
168
|
+
};
|
|
169
|
+
}, {
|
|
170
|
+
isOpen: {
|
|
171
|
+
true: "-rotate-90";
|
|
172
|
+
false: "";
|
|
173
|
+
};
|
|
174
|
+
}>, {
|
|
175
|
+
isOpen: {
|
|
176
|
+
true: "-rotate-90";
|
|
177
|
+
false: "";
|
|
178
|
+
};
|
|
179
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
180
|
+
isOpen: {
|
|
181
|
+
true: "-rotate-90";
|
|
182
|
+
false: "";
|
|
183
|
+
};
|
|
184
|
+
}, undefined, "text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square", import("tailwind-variants/dist/config").TVConfig<{
|
|
185
|
+
isOpen: {
|
|
186
|
+
true: "-rotate-90";
|
|
187
|
+
false: "";
|
|
188
|
+
};
|
|
189
|
+
}, {
|
|
190
|
+
isOpen: {
|
|
191
|
+
true: "-rotate-90";
|
|
192
|
+
false: "";
|
|
193
|
+
};
|
|
194
|
+
}>, unknown, unknown, undefined>>;
|
|
195
|
+
export declare const accordionRegion: import("tailwind-variants").TVReturnType<{
|
|
196
|
+
textAlign: {
|
|
197
|
+
center: "grid-cols-[3rem_1fr_3rem] px-6 text-center";
|
|
198
|
+
left: "grid-cols-[1fr_3rem] text-left";
|
|
199
|
+
};
|
|
200
|
+
}, undefined, "\n font-body \n text-inherit\n h-auto\n grid\n ", import("tailwind-variants/dist/config").TVConfig<{
|
|
201
|
+
textAlign: {
|
|
202
|
+
center: "grid-cols-[3rem_1fr_3rem] px-6 text-center";
|
|
203
|
+
left: "grid-cols-[1fr_3rem] text-left";
|
|
204
|
+
};
|
|
205
|
+
}, {
|
|
206
|
+
textAlign: {
|
|
207
|
+
center: "grid-cols-[3rem_1fr_3rem] px-6 text-center";
|
|
208
|
+
left: "grid-cols-[1fr_3rem] text-left";
|
|
209
|
+
};
|
|
210
|
+
}>, {
|
|
211
|
+
textAlign: {
|
|
212
|
+
center: "grid-cols-[3rem_1fr_3rem] px-6 text-center";
|
|
213
|
+
left: "grid-cols-[1fr_3rem] text-left";
|
|
214
|
+
};
|
|
215
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
216
|
+
textAlign: {
|
|
217
|
+
center: "grid-cols-[3rem_1fr_3rem] px-6 text-center";
|
|
218
|
+
left: "grid-cols-[1fr_3rem] text-left";
|
|
219
|
+
};
|
|
220
|
+
}, undefined, "\n font-body \n text-inherit\n h-auto\n grid\n ", import("tailwind-variants/dist/config").TVConfig<{
|
|
221
|
+
textAlign: {
|
|
222
|
+
center: "grid-cols-[3rem_1fr_3rem] px-6 text-center";
|
|
223
|
+
left: "grid-cols-[1fr_3rem] text-left";
|
|
224
|
+
};
|
|
225
|
+
}, {
|
|
226
|
+
textAlign: {
|
|
227
|
+
center: "grid-cols-[3rem_1fr_3rem] px-6 text-center";
|
|
228
|
+
left: "grid-cols-[1fr_3rem] text-left";
|
|
229
|
+
};
|
|
230
|
+
}>, unknown, unknown, undefined>>;
|
|
231
|
+
export declare const accordionContent: import("tailwind-variants").TVReturnType<{
|
|
232
|
+
textAlign: {
|
|
233
|
+
center: "col-start-2";
|
|
234
|
+
left: "";
|
|
235
|
+
};
|
|
236
|
+
}, undefined, "overflow-hidden flex flex-col gap-2 items-start", import("tailwind-variants/dist/config").TVConfig<{
|
|
237
|
+
textAlign: {
|
|
238
|
+
center: "col-start-2";
|
|
239
|
+
left: "";
|
|
240
|
+
};
|
|
241
|
+
}, {
|
|
242
|
+
textAlign: {
|
|
243
|
+
center: "col-start-2";
|
|
244
|
+
left: "";
|
|
245
|
+
};
|
|
246
|
+
}>, {
|
|
247
|
+
textAlign: {
|
|
248
|
+
center: "col-start-2";
|
|
249
|
+
left: "";
|
|
250
|
+
};
|
|
251
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
252
|
+
textAlign: {
|
|
253
|
+
center: "col-start-2";
|
|
254
|
+
left: "";
|
|
255
|
+
};
|
|
256
|
+
}, undefined, "overflow-hidden flex flex-col gap-2 items-start", import("tailwind-variants/dist/config").TVConfig<{
|
|
257
|
+
textAlign: {
|
|
258
|
+
center: "col-start-2";
|
|
259
|
+
left: "";
|
|
260
|
+
};
|
|
261
|
+
}, {
|
|
262
|
+
textAlign: {
|
|
263
|
+
center: "col-start-2";
|
|
264
|
+
left: "";
|
|
265
|
+
};
|
|
266
|
+
}>, unknown, unknown, undefined>>;
|
|
267
|
+
export declare const accordionTheme: {
|
|
268
|
+
container: (props: TToken) => string;
|
|
269
|
+
button: (props: TToken) => string;
|
|
270
|
+
title: (props: TToken) => string;
|
|
271
|
+
icon: (props: TToken) => string;
|
|
272
|
+
region: (props: TToken) => string;
|
|
273
|
+
content: (props: TToken) => string;
|
|
274
|
+
};
|