@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
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
const button = tv({
|
|
4
|
-
base: `
|
|
5
|
-
flex
|
|
6
|
-
items-center
|
|
7
|
-
justify-center
|
|
8
|
-
gap-4
|
|
9
|
-
transition
|
|
10
|
-
duration-300
|
|
11
|
-
ease-in-out
|
|
12
|
-
disabled:pointer-events-none
|
|
13
|
-
disabled:opacity-30
|
|
14
|
-
focus-ring-black
|
|
15
|
-
`,
|
|
16
|
-
defaultVariants: {
|
|
17
|
-
buttonStyle: 'default',
|
|
18
|
-
type: 'button',
|
|
19
|
-
size: 'default',
|
|
20
|
-
shape: 'rounded',
|
|
21
|
-
},
|
|
22
|
-
variants: {
|
|
23
|
-
buttonStyle: {
|
|
24
|
-
default: `
|
|
25
|
-
px-4
|
|
26
|
-
py-2
|
|
27
|
-
text-white
|
|
28
|
-
!bg-color-1-500
|
|
29
|
-
hover:!bg-color-1-400
|
|
30
|
-
active:!bg-color-1-400
|
|
31
|
-
`,
|
|
32
|
-
outline: `
|
|
33
|
-
px-4
|
|
34
|
-
py-2
|
|
35
|
-
bg-transparent
|
|
36
|
-
!border-color-1-500
|
|
37
|
-
text-color-1-500
|
|
38
|
-
hover:bg-color-1-500
|
|
39
|
-
hover:text-white
|
|
40
|
-
active:bg-color-1-500
|
|
41
|
-
active:text-white
|
|
42
|
-
`,
|
|
43
|
-
hollow: `
|
|
44
|
-
px-2
|
|
45
|
-
bg-transparent
|
|
46
|
-
text-color-1-500
|
|
47
|
-
hover:border-b-color-1-500
|
|
48
|
-
active:border-b-color-1-500
|
|
49
|
-
focus:border-b-color-1-500
|
|
50
|
-
|
|
51
|
-
`,
|
|
52
|
-
},
|
|
53
|
-
intent: {
|
|
54
|
-
error: `
|
|
55
|
-
!bg-error
|
|
56
|
-
text-white
|
|
57
|
-
pointer-events-none
|
|
58
|
-
!border-error
|
|
59
|
-
`,
|
|
60
|
-
},
|
|
61
|
-
size: {
|
|
62
|
-
default: `min-w-12 min-h-6`,
|
|
63
|
-
large: `min-w-36 min-h-18`,
|
|
64
|
-
},
|
|
65
|
-
shape: {
|
|
66
|
-
rounded: `rounded-md`,
|
|
67
|
-
circular: `rounded-full`,
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
export default button
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
export const calendarContainer = tv({
|
|
4
|
-
base: 'inline-block text-gray-800',
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
export const calendarHeaderContainer = tv({
|
|
8
|
-
base: 'flex items-center justify-between pb-4',
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
export const calendarNavigationButtonsContainer = tv({
|
|
12
|
-
base: 'flex items-center gap-1',
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
export const calendarNavigationButtons = tv({
|
|
16
|
-
base: 'active:bg-color-1-500 p-2 rounded-full active:text-color-1-100 hover:bg-color-1-200 focus-ring-black',
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
export const calendarTable = tv({
|
|
20
|
-
base: 'flex-1',
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
export const calendarDayLabel = tv({
|
|
24
|
-
base: 'text-center',
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
export const calendarCellContainer = tv({
|
|
28
|
-
base: 'py-0.5 relative',
|
|
29
|
-
variants: {
|
|
30
|
-
isFocusVisible: {
|
|
31
|
-
true: 'z-10',
|
|
32
|
-
false: '',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
export const calendarCell = tv({
|
|
38
|
-
base: 'w-10 h-10 outline-none group',
|
|
39
|
-
variants: {
|
|
40
|
-
isSelected: {
|
|
41
|
-
true: '',
|
|
42
|
-
false: '',
|
|
43
|
-
},
|
|
44
|
-
isInvalid: {
|
|
45
|
-
true: '',
|
|
46
|
-
fasle: '',
|
|
47
|
-
},
|
|
48
|
-
isDisabled: {
|
|
49
|
-
true: 'disabled',
|
|
50
|
-
false: '',
|
|
51
|
-
},
|
|
52
|
-
isRoundedLeft: {
|
|
53
|
-
true: 'rounded-l-full',
|
|
54
|
-
false: '',
|
|
55
|
-
},
|
|
56
|
-
isRoundedRight: {
|
|
57
|
-
true: 'rounded-r-full',
|
|
58
|
-
false: '',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
compoundVariants: [
|
|
62
|
-
{
|
|
63
|
-
isSelected: true,
|
|
64
|
-
isInvalid: true,
|
|
65
|
-
class: 'bg-red-300',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
isSelected: true,
|
|
69
|
-
isInvalid: false,
|
|
70
|
-
class: 'bg-color-1-300',
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
export const calendarCellFormattedDate = tv({
|
|
76
|
-
base: 'w-full h-full rounded-full flex items-center justify-center cursor-pointer',
|
|
77
|
-
variants: {
|
|
78
|
-
isSelected: {
|
|
79
|
-
true: '',
|
|
80
|
-
false: '',
|
|
81
|
-
},
|
|
82
|
-
isInvalid: {
|
|
83
|
-
true: '',
|
|
84
|
-
fasle: '',
|
|
85
|
-
},
|
|
86
|
-
isDisabled: {
|
|
87
|
-
true: '',
|
|
88
|
-
false: '',
|
|
89
|
-
},
|
|
90
|
-
isFocusVisible: {
|
|
91
|
-
true: 'ring-2 group-focus:z-2 ring-violet-600 ring-offset-2',
|
|
92
|
-
false: '',
|
|
93
|
-
},
|
|
94
|
-
isSelectionStart: {
|
|
95
|
-
true: '',
|
|
96
|
-
false: '',
|
|
97
|
-
},
|
|
98
|
-
isSelectionEnd: {
|
|
99
|
-
true: '',
|
|
100
|
-
false: '',
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
compoundVariants: [
|
|
104
|
-
{
|
|
105
|
-
isDisabled: true,
|
|
106
|
-
isInvalid: false,
|
|
107
|
-
class: 'text-gray-400',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
isSelectionStart: true,
|
|
111
|
-
isSelectionEnd: false,
|
|
112
|
-
isInvalid: true,
|
|
113
|
-
class: 'bg-red-600 text-white hover:bg-red-700',
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
isSelectionStart: true,
|
|
117
|
-
isSelectionEnd: true,
|
|
118
|
-
isInvalid: true,
|
|
119
|
-
class: 'bg-red-600 text-white hover:bg-red-700',
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
isSelectionStart: true,
|
|
123
|
-
isSelectionEnd: false,
|
|
124
|
-
isInvalid: false,
|
|
125
|
-
class: 'bg-color-1-400 text-white hover:bg-color-1-500',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
isSelectionStart: true,
|
|
129
|
-
isSelectionEnd: true,
|
|
130
|
-
isInvalid: false,
|
|
131
|
-
class: 'bg-color-1-400 rounded-full text-white hover:bg-color-1-500',
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
isSelectionStart: false,
|
|
135
|
-
isSelectionEnd: true,
|
|
136
|
-
isInvalid: true,
|
|
137
|
-
class: 'bg-red-600 text-white hover:bg-red-700',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
isSelectionStart: false,
|
|
141
|
-
isSelectionEnd: true,
|
|
142
|
-
isInvalid: false,
|
|
143
|
-
class: 'bg-color-1-400 text-white hover:bg-color-1-500',
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
isSelected: false,
|
|
147
|
-
isDisabled: false,
|
|
148
|
-
class: 'hover:bg-color-1-100',
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
isSelected: true,
|
|
152
|
-
isDisabled: false,
|
|
153
|
-
isInvalid: false,
|
|
154
|
-
isSelectionStart: false,
|
|
155
|
-
isSelectionEnd: false,
|
|
156
|
-
class: 'hover:bg-color-1-300',
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
isSelected: true,
|
|
160
|
-
isDisabled: false,
|
|
161
|
-
isInvalid: true,
|
|
162
|
-
isSelectionStart: false,
|
|
163
|
-
isSelectionEnd: false,
|
|
164
|
-
class: 'hover:bg-red-400',
|
|
165
|
-
},
|
|
166
|
-
],
|
|
167
|
-
})
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
const carouselContainer = tv({
|
|
4
|
-
base: 'flex justify-between items-center relative h-[475px] mb-18 lg:h-[650px]',
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
const carouselSwiper = tv({
|
|
8
|
-
base: 'bg-color-1-400 !py-4',
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
const carouselSwiperWrapper = tv({
|
|
12
|
-
base: 'bg-color-1-100 py-4',
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
const carouselSlideContainer = tv({
|
|
16
|
-
base: 'flex justify-center m-auto px-8 w-full h-full',
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
const carouselSlideWrapper = tv({
|
|
20
|
-
base: 'bg-color-1-200 p-2',
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
const carouselNavigationButtons = tv({
|
|
24
|
-
base: 'bg-color-1-500 rounded-full p-4 text-white',
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
const carousel = {
|
|
28
|
-
container: carouselContainer,
|
|
29
|
-
slideContainer: carouselSlideContainer,
|
|
30
|
-
slideWrapper: carouselSlideWrapper,
|
|
31
|
-
navigationButtons: carouselNavigationButtons,
|
|
32
|
-
swiper: carouselSwiper,
|
|
33
|
-
swiperWrapper: carouselSwiperWrapper,
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default carousel
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
export const checkboxContainer = tv({
|
|
4
|
-
base: 'flex focus-ring-black',
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
export const checkboxLabel = tv({
|
|
8
|
-
base: `hover:cursor-pointer`,
|
|
9
|
-
variants: {
|
|
10
|
-
color: {
|
|
11
|
-
gray: 'text-gray-300',
|
|
12
|
-
black: 'text-black',
|
|
13
|
-
},
|
|
14
|
-
isDisabled: {
|
|
15
|
-
true: 'text-gray-6',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
defaultVariants: {
|
|
19
|
-
color: 'black',
|
|
20
|
-
},
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
export const checkBox = tv({
|
|
24
|
-
base: `w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center`,
|
|
25
|
-
variants: {
|
|
26
|
-
isDisabled: {
|
|
27
|
-
true: 'border-gray-6',
|
|
28
|
-
},
|
|
29
|
-
isFocused: {
|
|
30
|
-
true: `outline-black [outline-offset: 2px]`,
|
|
31
|
-
},
|
|
32
|
-
isError: {
|
|
33
|
-
true: 'border-red-500',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
export const checkMark = tv({
|
|
39
|
-
base: `hidden w-4 h-4 bg-gray-300 rounded-full`,
|
|
40
|
-
variants: {
|
|
41
|
-
selected: {
|
|
42
|
-
true: 'block text-white',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
export const checkMarkIcon = tv({
|
|
48
|
-
base: 'text-white w-4 h-4 [&_svg]:w-4 [&_svg]:h-4',
|
|
49
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
export const checkboxGroup = tv({
|
|
4
|
-
base: `block`,
|
|
5
|
-
variants: {
|
|
6
|
-
isDisabled: {
|
|
7
|
-
true: 'opacity-60 pointer-events-none',
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
export const checkboxGroupItemsGroup = tv({
|
|
13
|
-
base: `flex flex-col gap-4 py-8`,
|
|
14
|
-
})
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
export const datePickerContainer = tv({
|
|
4
|
-
base: 'relative inline-flex flex-col text-left',
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
export const datePickerButton = tv({
|
|
8
|
-
base: 'flex items-center border-2 border-color-1-500 rounded focus-ring-black',
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
export const datePickerCalendarPopoverUnderlay = tv({
|
|
12
|
-
base: 'fixed inset-0',
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
export const datePickerCalendarPopoverContainer = tv({
|
|
16
|
-
base: 'absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10',
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
export const datePickerDateField = tv({
|
|
20
|
-
base: 'pr-1 flex gap-2',
|
|
21
|
-
defaultVariants: {
|
|
22
|
-
dateFieldShown: true,
|
|
23
|
-
},
|
|
24
|
-
variants: {
|
|
25
|
-
dateFieldShown: {
|
|
26
|
-
true: '',
|
|
27
|
-
false: 'hidden',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
export const datePickerDateSegment = tv({
|
|
33
|
-
base: 'focus-ring-black',
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
export const datePickerIcon = tv({
|
|
37
|
-
base: 'text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2',
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
export const datePickerLabel = tv({
|
|
41
|
-
base: 'text-color-1-500 font-bold px-2',
|
|
42
|
-
})
|
package/src/theme/Image/index.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
import typography from '../Typography'
|
|
3
|
-
|
|
4
|
-
const lightBoxWrapper = tv({
|
|
5
|
-
base: 'focus-ring-black',
|
|
6
|
-
})
|
|
7
|
-
|
|
8
|
-
const lightBoxContainer = tv({
|
|
9
|
-
base: `rounded-3xl overflow-hidden`,
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
const lightBoxCloseBtn = tv({
|
|
13
|
-
base: `
|
|
14
|
-
absolute
|
|
15
|
-
xl:top-10
|
|
16
|
-
xl:right-20
|
|
17
|
-
lg:top-8
|
|
18
|
-
lg:right-8
|
|
19
|
-
z-[10000]
|
|
20
|
-
top-4
|
|
21
|
-
right-4
|
|
22
|
-
size-10
|
|
23
|
-
focus-ring-black
|
|
24
|
-
`,
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
const lightBoxLabel = tv({
|
|
28
|
-
extend: typography,
|
|
29
|
-
base: 'sr-only',
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
const lightBoxModalUnderlay = tv({
|
|
33
|
-
base: 'w-screen h-screen bg-black/50 absolute top-0 left-0 flex justify-center items-center',
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
const lightBoxModalOverlay = tv({
|
|
37
|
-
base: '',
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
const lightBoxModalDialog = tv({
|
|
41
|
-
base: 'flex flex-col gap-4 items-center',
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
const lightboxTheme = {
|
|
45
|
-
wrapper: lightBoxWrapper,
|
|
46
|
-
container: lightBoxContainer,
|
|
47
|
-
label: lightBoxLabel,
|
|
48
|
-
closeBtn: lightBoxCloseBtn,
|
|
49
|
-
modal: {
|
|
50
|
-
underlay: lightBoxModalUnderlay,
|
|
51
|
-
overlay: lightBoxModalOverlay,
|
|
52
|
-
dialog: lightBoxModalDialog,
|
|
53
|
-
},
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export default lightboxTheme
|
package/src/theme/Radio/index.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
export const radioLabel = tv({
|
|
4
|
-
base: `text-black flex flex-row items-center hover:cursor-pointer focus-ring-black`,
|
|
5
|
-
variants: {
|
|
6
|
-
isDisabled: {
|
|
7
|
-
true: 'text-gray-6',
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
export const radio = tv({
|
|
13
|
-
base: `w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center`,
|
|
14
|
-
variants: {
|
|
15
|
-
isDisabled: {
|
|
16
|
-
true: 'border-gray-6',
|
|
17
|
-
},
|
|
18
|
-
isFocused: {
|
|
19
|
-
true: `outline-black [outline-offset: 2px]`,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
export const selectedMark = tv({
|
|
25
|
-
base: `hidden w-4 h-4 bg-gray-300 rounded-full`,
|
|
26
|
-
variants: {
|
|
27
|
-
selected: {
|
|
28
|
-
true: 'block text-white',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
export const radioGroup = tv({
|
|
4
|
-
base: `block`,
|
|
5
|
-
variants: {
|
|
6
|
-
isDisabled: {
|
|
7
|
-
true: 'opacity-60 pointer-events-none',
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
export const radioGroupItemsGroup = tv({
|
|
13
|
-
base: `flex flex-col gap-4 py-8`,
|
|
14
|
-
})
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
export const searchInput = tv({
|
|
4
|
-
base: 'p-4 w-full outline-0 search-cancel:appearance-none',
|
|
5
|
-
variants: {
|
|
6
|
-
isDisabled: {
|
|
7
|
-
true: 'opacity-60 pointer-events-none',
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
export const searchIcon = tv({
|
|
13
|
-
base: `
|
|
14
|
-
box-border
|
|
15
|
-
absolute
|
|
16
|
-
right-4
|
|
17
|
-
focus-ring-black
|
|
18
|
-
outline-0
|
|
19
|
-
`,
|
|
20
|
-
})
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
export const shareButtonContainer = tv({
|
|
4
|
-
base: 'flex print:hidden relative',
|
|
5
|
-
defaultVariants: {
|
|
6
|
-
listDirection: 'row',
|
|
7
|
-
},
|
|
8
|
-
variants: {
|
|
9
|
-
listDirection: {
|
|
10
|
-
row: 'flex-row',
|
|
11
|
-
column: 'flex-col',
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
export const shareButton = tv({
|
|
17
|
-
base: 'relative z-20 !bg-color-1-500 hover:!bg-color-1-400 w-16 h-16 flex justify-center items-center active:!bg-color-1-400 rounded-full text-white focus-ring-black',
|
|
18
|
-
variants: {
|
|
19
|
-
isOpen: {
|
|
20
|
-
true: '',
|
|
21
|
-
false: '',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
export const shareButtonLinksList = tv({
|
|
27
|
-
base: '!bg-color-1-200 absolute opacity-0 invisible flex transition duration-300 items-center p-0 bg-primary-1 z-0 rounded-b-full rounded-t-full',
|
|
28
|
-
defaultVariants: {
|
|
29
|
-
listDirection: 'row',
|
|
30
|
-
},
|
|
31
|
-
variants: {
|
|
32
|
-
listDirection: {
|
|
33
|
-
row: 'flex-row pl-14 h-16 left-0',
|
|
34
|
-
column: 'flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0',
|
|
35
|
-
},
|
|
36
|
-
isOpen: {
|
|
37
|
-
true: 'opacity-100 visible',
|
|
38
|
-
false: '',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
export const shareButtonLink = tv({
|
|
44
|
-
base: `
|
|
45
|
-
flex
|
|
46
|
-
items-center
|
|
47
|
-
justify-center
|
|
48
|
-
cursor-pointer
|
|
49
|
-
bg-color-1-200
|
|
50
|
-
hover:bg-color-1-300
|
|
51
|
-
w-full
|
|
52
|
-
text-color-1-500
|
|
53
|
-
rounded-none
|
|
54
|
-
p-2
|
|
55
|
-
focus-ring-black
|
|
56
|
-
z-10
|
|
57
|
-
has-focus-ring:z-20
|
|
58
|
-
`,
|
|
59
|
-
defaultVariants: {
|
|
60
|
-
listDirection: 'row',
|
|
61
|
-
},
|
|
62
|
-
variants: {
|
|
63
|
-
listDirection: {
|
|
64
|
-
row: 'last:rounded-r-full h-full',
|
|
65
|
-
column: 'last:rounded-b-full',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
export const shareButtonIcon = tv({
|
|
71
|
-
base: 'text-white',
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
export const shareButtonLinkIcons = tv({
|
|
75
|
-
base: '',
|
|
76
|
-
})
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
export const sidePanelWrapper = tv({
|
|
4
|
-
base: 'm-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full',
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
export const sidePanelContainer = tv({ base: 'h-full w-full flex justify-end' })
|
|
8
|
-
|
|
9
|
-
export const sidePanelInnerContainer = tv({ base: 'bg-black h-full w-full overflow-y-auto' })
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
export const textArea = tv({
|
|
4
|
-
base: `
|
|
5
|
-
w-full
|
|
6
|
-
min-h-32
|
|
7
|
-
rounded-2xl
|
|
8
|
-
px-6
|
|
9
|
-
h-12
|
|
10
|
-
border-2
|
|
11
|
-
border-solid
|
|
12
|
-
transition
|
|
13
|
-
duration-300
|
|
14
|
-
ease-in-out
|
|
15
|
-
text-gray-2
|
|
16
|
-
placeholder:text-gray-2
|
|
17
|
-
focus-ring-black
|
|
18
|
-
|
|
19
|
-
`,
|
|
20
|
-
variants: {
|
|
21
|
-
isError: {
|
|
22
|
-
true: 'border-red-500',
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
})
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { tv } from 'tailwind-variants'
|
|
2
|
-
|
|
3
|
-
const typography = tv({
|
|
4
|
-
variants: {
|
|
5
|
-
size: {
|
|
6
|
-
h1: `text-5xl`,
|
|
7
|
-
h2: `text-4xl`,
|
|
8
|
-
h3: `text-3xl`,
|
|
9
|
-
h4: `text-2xl`,
|
|
10
|
-
h5: `text-xl`,
|
|
11
|
-
h6: `text-lg`,
|
|
12
|
-
leading: `text-md font-bold leading-normal`,
|
|
13
|
-
paragraph: `text-md inline`,
|
|
14
|
-
footnotes: `text-sm`,
|
|
15
|
-
xs: `text-xs`,
|
|
16
|
-
},
|
|
17
|
-
font: {
|
|
18
|
-
body: `font-body`,
|
|
19
|
-
},
|
|
20
|
-
weight: {
|
|
21
|
-
normal: `font-normal`,
|
|
22
|
-
light: `font-light`,
|
|
23
|
-
bold: 'font-bold',
|
|
24
|
-
},
|
|
25
|
-
color: {
|
|
26
|
-
gray: `text-gray-500`,
|
|
27
|
-
white: `text-white`,
|
|
28
|
-
},
|
|
29
|
-
isError: {
|
|
30
|
-
true: 'text-sm text-error py-3',
|
|
31
|
-
},
|
|
32
|
-
align: {
|
|
33
|
-
center: 'text-center',
|
|
34
|
-
left: 'text-left',
|
|
35
|
-
right: 'text-right',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
defaultVariants: {
|
|
39
|
-
size: 'paragraph',
|
|
40
|
-
font: 'body',
|
|
41
|
-
},
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
export default typography
|