trepur_components 2.3.8 → 2.3.10
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/lib/components/Accordion/Accordion.stories.d.ts +3 -51
- package/lib/components/Accordion/const.d.ts +31 -0
- package/lib/components/Accordion/index.d.ts +3 -4
- package/lib/components/Accordion/index.js +7 -4
- package/lib/components/AlertBar/AlertBar.stories.d.ts +13 -152
- package/lib/components/AlertBar/index.d.ts +12 -8
- package/lib/components/AlertBar/index.js +33 -46
- package/lib/components/Avatar/Avatar.stories.d.ts +0 -34
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +6 -50
- package/lib/components/Breadcrumbs/index.d.ts +10 -2
- package/lib/components/Breadcrumbs/index.js +14 -10
- package/lib/components/Button/Button.stories.d.ts +7 -179
- package/lib/components/Button/index.d.ts +10 -16
- package/lib/components/Button/index.js +28 -64
- package/lib/components/Calendar/Calendar.stories.d.ts +3 -128
- package/lib/components/Calendar/index.d.ts +3 -4
- package/lib/components/Calendar/index.js +46 -43
- package/lib/components/Card/Card.stories.d.ts +2 -99
- package/lib/components/Card/index.d.ts +2 -17
- package/lib/components/Card/index.js +20 -46
- package/lib/components/Carousel/Carousel.stories.d.ts +10 -549
- package/lib/components/Carousel/index.d.ts +17 -24
- package/lib/components/Carousel/index.js +148 -237
- package/lib/components/Carousel/utils.d.ts +1 -0
- package/lib/components/Carousel/utils.js +38 -0
- package/lib/components/CarouselThumbnail/CarouselThumbnail.stories.d.ts +10 -534
- package/lib/components/CarouselThumbnail/const.d.ts +1 -0
- package/lib/components/CarouselThumbnail/const.js +20 -0
- package/lib/components/CarouselThumbnail/index.d.ts +10 -9
- package/lib/components/CarouselThumbnail/index.js +59 -190
- package/lib/components/CarouselThumbnail/utils.d.ts +2 -0
- package/lib/components/CarouselThumbnail/utils.js +65 -0
- package/lib/components/Checkbox/Checkbox.stories.d.ts +5 -40
- package/lib/components/Checkbox/index.d.ts +9 -5
- package/lib/components/Checkbox/index.js +19 -22
- package/lib/components/Collapsible/Collapsible.stories.d.ts +11 -36
- package/lib/components/Collapsible/index.d.ts +17 -10
- package/lib/components/Collapsible/index.js +83 -84
- package/lib/components/Counter/Counter.stories.d.ts +8 -36
- package/lib/components/Counter/index.d.ts +11 -3
- package/lib/components/Counter/index.js +47 -29
- package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +2 -86
- package/lib/components/DetailUpdater/index.js +31 -31
- package/lib/components/Dialog/Dialog.stories.d.ts +0 -130
- package/lib/components/Dialog/index.d.ts +1 -1
- package/lib/components/Dialog/index.js +14 -76
- package/lib/components/Dropdown/Dropdown.stories.d.ts +17 -0
- package/lib/components/Dropdown/index.d.ts +13 -0
- package/lib/components/Dropdown/index.js +66 -0
- package/lib/components/Dropdown/utils.d.ts +1 -0
- package/lib/components/Dropdown/utils.js +14 -0
- package/lib/components/FileUploader/FileUploader.stories.d.ts +6 -4
- package/lib/components/FileUploader/index.d.ts +14 -8
- package/lib/components/Footer/Footer.stories.d.ts +8 -94
- package/lib/components/Footer/index.d.ts +9 -3
- package/lib/components/Footer/index.js +34 -34
- package/lib/components/FooterNav/FooterNav.stories.d.ts +11 -124
- package/lib/components/FooterNav/index.d.ts +14 -12
- package/lib/components/FooterNav/index.js +36 -26
- package/lib/components/Form/index.d.ts +3 -3
- package/lib/components/Form/index.js +6 -17
- package/lib/components/Gallery/Gallery.stories.d.ts +16 -0
- package/lib/components/Gallery/index.d.ts +7 -0
- package/lib/components/Greeting/Greeting.stories.d.ts +2 -72
- package/lib/components/Greeting/index.d.ts +3 -4
- package/lib/components/Greeting/index.js +18 -11
- package/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +1 -55
- package/lib/components/HamburgerIcon/index.d.ts +2 -7
- package/lib/components/HamburgerIcon/index.js +38 -53
- package/lib/components/Icon/Icon.stories.d.ts +5 -36
- package/lib/components/Icon/index.d.ts +6 -6
- package/lib/components/Icon/index.js +19 -11
- package/lib/components/Image/Image.stories.d.ts +1 -146
- package/lib/components/Image/index.d.ts +3 -13
- package/lib/components/Image/index.js +15 -97
- package/lib/components/ImageCard/ImageCard.stories.d.ts +19 -0
- package/lib/components/ImageCard/index.d.ts +11 -0
- package/lib/components/ImageCard/index.js +32 -0
- package/lib/components/Input/Input.stories.d.ts +9 -101
- package/lib/components/Input/index.d.ts +11 -7
- package/lib/components/Input/index.js +80 -86
- package/lib/components/MenuButton/index.js +16 -16
- package/lib/components/Nav/Nav.stories.d.ts +32 -0
- package/lib/components/Nav/index.d.ts +21 -0
- package/lib/components/Nav/index.js +82 -0
- package/lib/components/NavItem/NavItem.stories.d.ts +7 -143
- package/lib/components/NavItem/index.d.ts +7 -15
- package/lib/components/NavItem/index.js +22 -23
- package/lib/components/Pill/Pill.stories.d.ts +11 -73
- package/lib/components/Pill/index.d.ts +16 -7
- package/lib/components/Pill/index.js +29 -29
- package/lib/components/Select/index.js +1 -1
- package/lib/components/SplitCard/SplitCard.stories.d.ts +21 -0
- package/lib/components/SplitCard/index.d.ts +14 -0
- package/lib/components/Stars/Star.stories.d.ts +14 -0
- package/lib/components/Stars/index.d.ts +8 -0
- package/lib/components/Stars/index.js +22 -0
- package/lib/components/Testimonial/Testimonial.stories.d.ts +9 -160
- package/lib/components/Testimonial/index.d.ts +12 -15
- package/lib/components/Testimonial/index.js +40 -40
- package/lib/components/TextArea/TextArea.stories.d.ts +8 -72
- package/lib/components/TextArea/index.d.ts +14 -7
- package/lib/components/TextArea/index.js +73 -83
- package/lib/components/Timeline/Timeline.stories.d.ts +9 -69
- package/lib/components/Timeline/index.d.ts +10 -16
- package/lib/components/Timeline/index.js +26 -167
- package/lib/components/Tubestops/Tubestops.stories.d.ts +6 -41
- package/lib/components/Tubestops/index.d.ts +12 -5
- package/lib/components/Tubestops/index.js +69 -36
- package/lib/components/Video/Video.stories.d.ts +12 -38
- package/lib/components/Video/index.d.ts +10 -7
- package/lib/components/Video/index.js +30 -32
- package/lib/components/index.d.ts +5 -28
- package/lib/documentation/assets/index.d.ts +3 -0
- package/lib/index.js +64 -110
- package/lib/styles/global.css +1 -1
- package/lib/styles/themes/local.css +61 -9
- package/lib/styles/themes/test.css +28 -0
- package/lib/tailwind/colors.ts +53 -385
- package/lib/tailwind/preset.ts +4 -0
- package/package.json +6 -2
- package/.eslintrc.cjs +0 -72
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -10
- package/.prettierrc.json +0 -22
- package/archive/theme.ts +0 -39
- package/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.d.ts +0 -67
- package/lib/components/BreadcrumbsBordered/index.d.ts +0 -6
- package/lib/components/BreadcrumbsBordered/index.js +0 -28
- package/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.d.ts +0 -74
- package/lib/components/BreadcrumbsItem/index.d.ts +0 -10
- package/lib/components/BreadcrumbsItem/index.js +0 -117
- package/lib/components/CardWithTopImage/CardWithTopImage.stories.d.ts +0 -83
- package/lib/components/CardWithTopImage/index.d.ts +0 -9
- package/lib/components/CardWithTopImage/index.js +0 -28
- package/lib/components/Column/Column.stories.d.ts +0 -116
- package/lib/components/Column/index.d.ts +0 -10
- package/lib/components/Column/index.js +0 -8
- package/lib/components/ComponentWrapper/ComponentWrapper.stories.d.ts +0 -77
- package/lib/components/ComponentWrapper/index.d.ts +0 -14
- package/lib/components/ComponentWrapper/index.js +0 -27
- package/lib/components/Container/Container.stories.d.ts +0 -75
- package/lib/components/Container/index.d.ts +0 -7
- package/lib/components/Container/index.js +0 -12
- package/lib/components/DropdownMenu/DropdownMenu.stories.d.ts +0 -76
- package/lib/components/DropdownMenu/index.d.ts +0 -14
- package/lib/components/DropdownMenu/index.js +0 -27
- package/lib/components/DynamicTextSection/DynamicTextSection.stories.d.ts +0 -100
- package/lib/components/DynamicTextSection/index.d.ts +0 -11
- package/lib/components/DynamicTextSection/index.js +0 -18
- package/lib/components/FilterItem/FilterItem.stories.d.ts +0 -57
- package/lib/components/FilterItem/index.d.ts +0 -8
- package/lib/components/FilterItem/index.js +0 -60
- package/lib/components/FooterNavItem/FooterNavItem.stories.d.ts +0 -93
- package/lib/components/FooterNavItem/index.d.ts +0 -16
- package/lib/components/FooterNavItem/index.js +0 -27
- package/lib/components/FyreCard/FyreCard.stories.d.ts +0 -58
- package/lib/components/FyreCard/index.d.ts +0 -12
- package/lib/components/FyreCard/index.js +0 -27
- package/lib/components/HorizontalLine/HorizontalLine.stories.d.ts +0 -96
- package/lib/components/HorizontalLine/index.d.ts +0 -11
- package/lib/components/HorizontalLine/index.js +0 -24
- package/lib/components/IconCard/IconCard.stories.d.ts +0 -51
- package/lib/components/IconCard/index.d.ts +0 -13
- package/lib/components/IconCard/index.js +0 -27
- package/lib/components/ImageInfo/ImageInfo.stories.d.ts +0 -69
- package/lib/components/ImageInfo/index.d.ts +0 -14
- package/lib/components/ImageLink/ImageLink.stories.d.ts +0 -63
- package/lib/components/ImageLink/index.d.ts +0 -14
- package/lib/components/ImageLink/index.js +0 -39
- package/lib/components/ImageLinkList/ImageLinkList.stories.d.ts +0 -48
- package/lib/components/ImageLinkList/index.d.ts +0 -8
- package/lib/components/ImageLinkList/index.js +0 -18
- package/lib/components/InformationIcon/InformationIcon.stories.d.ts +0 -54
- package/lib/components/InformationIcon/index.d.ts +0 -12
- package/lib/components/InformationIcon/index.js +0 -65
- package/lib/components/InformationIconBlock/InformationIconBlock.stories.d.ts +0 -55
- package/lib/components/InformationIconBlock/index.d.ts +0 -12
- package/lib/components/Jumbotron/Jumbotron.stories.d.ts +0 -48
- package/lib/components/Jumbotron/index.d.ts +0 -8
- package/lib/components/Jumbotron/index.js +0 -9
- package/lib/components/NavOld/NavOld.stories.d.ts +0 -290
- package/lib/components/NavOld/StickyNav.d.ts +0 -22
- package/lib/components/NavOld/StickyNav.js +0 -135
- package/lib/components/NavOld/index.d.ts +0 -26
- package/lib/components/NavOld/index.js +0 -187
- package/lib/components/NavTwo/Dropdown.d.ts +0 -7
- package/lib/components/NavTwo/Dropdown.js +0 -21
- package/lib/components/NavTwo/Nav.stories.d.ts +0 -62
- package/lib/components/NavTwo/Sidebar.d.ts +0 -7
- package/lib/components/NavTwo/Sidebar.js +0 -21
- package/lib/components/NavTwo/StickyNav.d.ts +0 -7
- package/lib/components/NavTwo/StickyNav.js +0 -20
- package/lib/components/NavTwo/index.d.ts +0 -13
- package/lib/components/NavTwo/index.js +0 -28
- package/lib/components/NewsCard/NewsCard.stories.d.ts +0 -102
- package/lib/components/NewsCard/index.d.ts +0 -13
- package/lib/components/NewsCard/index.js +0 -26
- package/lib/components/ProductCard/ProductCard.stories.d.ts +0 -86
- package/lib/components/ProductCard/index.d.ts +0 -18
- package/lib/components/ProductCard/index.js +0 -69
- package/lib/components/ProductCardV2/ProductCardV2.stories.d.ts +0 -75
- package/lib/components/ProductCardV2/index.d.ts +0 -21
- package/lib/components/ProductCardV2/index.js +0 -67
- package/lib/components/Proficiencies/Proficiencies.stories.d.ts +0 -51
- package/lib/components/Proficiencies/index.d.ts +0 -12
- package/lib/components/Profile/Profile.stories.d.ts +0 -80
- package/lib/components/Profile/index.d.ts +0 -17
- package/lib/components/Profile/index.js +0 -78
- package/lib/components/Row/Row.stories.d.ts +0 -62
- package/lib/components/Row/index.d.ts +0 -6
- package/lib/components/Row/index.js +0 -9
- package/lib/components/SocialBlock/SocialBlock.stories.d.ts +0 -101
- package/lib/components/SocialBlock/index.d.ts +0 -14
- package/lib/components/SocialBlock/index.js +0 -37
- package/lib/components/SocialButton/index.js +0 -37
- package/lib/components/StarRating/StarRating.stories.d.ts +0 -49
- package/lib/components/StarRating/index.d.ts +0 -9
- package/lib/components/StarRating/index.js +0 -47
- package/lib/components/TextAndTitle/TextAndTitle.stories.d.ts +0 -97
- package/lib/components/TextAndTitle/index.d.ts +0 -25
- package/lib/components/TextAndTitle/index.js +0 -70
- package/lib/components/TimelineV2/TimelineV2.stories.d.ts +0 -87
- package/lib/components/TimelineV2/index.d.ts +0 -20
- package/lib/components/UserIcon/UserIcon.stories.d.ts +0 -81
- package/lib/components/UserIcon/index.d.ts +0 -10
- package/lib/components/UserIcon/index.js +0 -34
- package/lib/styles/themes/palette.css +0 -131
- package/lib/utils/matchMedia.js +0 -9
- package/postcss.config.js +0 -8
- package/src/components/Accordion/Accordion.stories.tsx +0 -116
- package/src/components/Accordion/index.tsx +0 -21
- package/src/components/AlertBar/AlertBar.stories.tsx +0 -95
- package/src/components/AlertBar/index.tsx +0 -113
- package/src/components/Avatar/Avatar.stories.tsx +0 -19
- package/src/components/Avatar/index.tsx +0 -492
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -46
- package/src/components/Breadcrumbs/index.tsx +0 -40
- package/src/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.tsx +0 -52
- package/src/components/BreadcrumbsBordered/index.tsx +0 -41
- package/src/components/BreadcrumbsItem/BreadcrumbsItem.stories.tsx +0 -40
- package/src/components/BreadcrumbsItem/index.tsx +0 -147
- package/src/components/Button/Button.stories.tsx +0 -150
- package/src/components/Button/index.tsx +0 -104
- package/src/components/Calendar/Calendar.stories.tsx +0 -82
- package/src/components/Calendar/index.tsx +0 -72
- package/src/components/Calendar/style.css +0 -233
- package/src/components/Card/Card.stories.tsx +0 -75
- package/src/components/Card/index.tsx +0 -96
- package/src/components/CardWithTopImage/CardWithTopImage.stories.tsx +0 -50
- package/src/components/CardWithTopImage/index.tsx +0 -35
- package/src/components/Carousel/Carousel.stories.tsx +0 -451
- package/src/components/Carousel/index.tsx +0 -382
- package/src/components/CarouselThumbnail/CarouselThumbnail.stories.tsx +0 -350
- package/src/components/CarouselThumbnail/index.tsx +0 -293
- package/src/components/Checkbox/Checkbox.mdx +0 -33
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -34
- package/src/components/Checkbox/index.tsx +0 -41
- package/src/components/Collapsible/Collapsible.stories.tsx +0 -67
- package/src/components/Collapsible/index.tsx +0 -128
- package/src/components/Column/Column.stories.tsx +0 -89
- package/src/components/Column/index.tsx +0 -18
- package/src/components/ComponentWrapper/ComponentWrapper.stories.tsx +0 -40
- package/src/components/ComponentWrapper/index.tsx +0 -48
- package/src/components/Container/Container.stories.tsx +0 -40
- package/src/components/Container/index.tsx +0 -21
- package/src/components/Counter/Counter.stories.tsx +0 -19
- package/src/components/Counter/index.tsx +0 -42
- package/src/components/DetailUpdater/DetailUpdater.stories.tsx +0 -95
- package/src/components/DetailUpdater/index.tsx +0 -108
- package/src/components/Dialog/Dialog.stories.tsx +0 -130
- package/src/components/Dialog/index.tsx +0 -93
- package/src/components/DropdownMenu/DropdownMenu.stories.tsx +0 -59
- package/src/components/DropdownMenu/index.tsx +0 -45
- package/src/components/DynamicTextSection/DynamicTextSection.stories.tsx +0 -76
- package/src/components/DynamicTextSection/index.tsx +0 -32
- package/src/components/FileUploader/FilePreview.tsx +0 -45
- package/src/components/FileUploader/FileUploader.stories.tsx +0 -26
- package/src/components/FileUploader/index.tsx +0 -132
- package/src/components/FilterItem/FilterItem.stories.tsx +0 -33
- package/src/components/FilterItem/index.tsx +0 -97
- package/src/components/Footer/Footer.stories.tsx +0 -59
- package/src/components/Footer/index.tsx +0 -48
- package/src/components/FooterNav/FooterNav.stories.tsx +0 -122
- package/src/components/FooterNav/index.tsx +0 -49
- package/src/components/FooterNavItem/FooterNavItem.stories.tsx +0 -53
- package/src/components/FooterNavItem/index.tsx +0 -58
- package/src/components/Form/Form.stories.tsx +0 -86
- package/src/components/Form/index.tsx +0 -46
- package/src/components/Form/style.module.css +0 -0
- package/src/components/FyreCard/FyreCard.stories.tsx +0 -31
- package/src/components/FyreCard/index.tsx +0 -44
- package/src/components/Greeting/Greeting.stories.tsx +0 -41
- package/src/components/Greeting/index.tsx +0 -30
- package/src/components/HamburgerIcon/HamburgerIcon.stories.tsx +0 -32
- package/src/components/HamburgerIcon/index.tsx +0 -97
- package/src/components/HorizontalLine/HorizontalLine.stories.tsx +0 -54
- package/src/components/HorizontalLine/index.tsx +0 -32
- package/src/components/Icon/Icon.stories.tsx +0 -22
- package/src/components/Icon/index.tsx +0 -25
- package/src/components/IconCard/IconCard.stories.tsx +0 -26
- package/src/components/IconCard/index.tsx +0 -54
- package/src/components/Image/Image.stories.tsx +0 -87
- package/src/components/Image/index.tsx +0 -127
- package/src/components/ImageInfo/ImageInfo.stories.tsx +0 -38
- package/src/components/ImageInfo/index.tsx +0 -84
- package/src/components/ImageLink/ImageLink.stories.tsx +0 -36
- package/src/components/ImageLink/index.tsx +0 -58
- package/src/components/ImageLinkList/ImageLinkList.stories.tsx +0 -34
- package/src/components/ImageLinkList/index.tsx +0 -28
- package/src/components/InformationIcon/InformationIcon.stories.tsx +0 -29
- package/src/components/InformationIcon/index.tsx +0 -105
- package/src/components/InformationIconBlock/InformationIconBlock.stories.tsx +0 -38
- package/src/components/InformationIconBlock/index.tsx +0 -56
- package/src/components/Input/Input.stories.tsx +0 -84
- package/src/components/Input/index.tsx +0 -130
- package/src/components/Jumbotron/Jumbotron.stories.tsx +0 -21
- package/src/components/Jumbotron/index.tsx +0 -19
- package/src/components/MenuButton/MenuButton.stories.tsx +0 -46
- package/src/components/MenuButton/index.tsx +0 -66
- package/src/components/Modal/Modal.stories.tsx +0 -82
- package/src/components/Modal/index.tsx +0 -71
- package/src/components/NavItem/NavItem.stories.tsx +0 -90
- package/src/components/NavItem/index.tsx +0 -43
- package/src/components/NavOld/NavOld.stories.tsx +0 -193
- package/src/components/NavOld/StickyNav.tsx +0 -187
- package/src/components/NavOld/index.tsx +0 -265
- package/src/components/NavTwo/Dropdown.tsx +0 -30
- package/src/components/NavTwo/Nav.stories.tsx +0 -32
- package/src/components/NavTwo/Sidebar.tsx +0 -30
- package/src/components/NavTwo/StickyNav.tsx +0 -29
- package/src/components/NavTwo/index.tsx +0 -37
- package/src/components/NewsCard/NewsCard.stories.tsx +0 -72
- package/src/components/NewsCard/index.tsx +0 -44
- package/src/components/Pill/Pill.stories.tsx +0 -44
- package/src/components/Pill/index.tsx +0 -54
- package/src/components/ProductCard/ProductCard.stories.tsx +0 -61
- package/src/components/ProductCard/index.tsx +0 -110
- package/src/components/ProductCardV2/ProductCardV2.stories.tsx +0 -50
- package/src/components/ProductCardV2/index.tsx +0 -98
- package/src/components/Proficiencies/Proficiencies.stories.tsx +0 -50
- package/src/components/Proficiencies/index.tsx +0 -51
- package/src/components/Profile/Profile.stories.tsx +0 -49
- package/src/components/Profile/index.tsx +0 -103
- package/src/components/Row/Row.stories.tsx +0 -53
- package/src/components/Row/index.tsx +0 -17
- package/src/components/Search/Search.stories.tsx +0 -63
- package/src/components/Search/index.tsx +0 -64
- package/src/components/Select/Select.stories.tsx +0 -55
- package/src/components/Select/index.tsx +0 -98
- package/src/components/Showcase/Showcase.stories.tsx +0 -31
- package/src/components/Showcase/index.tsx +0 -69
- package/src/components/SideNav/SideNav.stories.tsx +0 -50
- package/src/components/SideNav/index.tsx +0 -39
- package/src/components/SocialBlock/SocialBlock.stories.tsx +0 -58
- package/src/components/SocialBlock/index.tsx +0 -59
- package/src/components/SocialButton/SocialButton.stories.tsx +0 -88
- package/src/components/SocialButton/index.tsx +0 -64
- package/src/components/StarRating/StarRating.stories.tsx +0 -23
- package/src/components/StarRating/index.tsx +0 -65
- package/src/components/Testimonial/Testimonial.stories.tsx +0 -109
- package/src/components/Testimonial/index.tsx +0 -55
- package/src/components/TextAndTitle/TextAndTitle.stories.tsx +0 -71
- package/src/components/TextAndTitle/index.tsx +0 -119
- package/src/components/TextArea/TextArea.stories.tsx +0 -55
- package/src/components/TextArea/index.tsx +0 -124
- package/src/components/Timeline/Timeline.stories.tsx +0 -92
- package/src/components/Timeline/index.tsx +0 -256
- package/src/components/TimelineV2/TimelineV2.stories.tsx +0 -95
- package/src/components/TimelineV2/index.tsx +0 -70
- package/src/components/Tubestops/Tubestops.stories.tsx +0 -42
- package/src/components/Tubestops/index.tsx +0 -54
- package/src/components/UserIcon/UserIcon.stories.tsx +0 -52
- package/src/components/UserIcon/index.tsx +0 -43
- package/src/components/Video/Video.stories.tsx +0 -23
- package/src/components/Video/index.tsx +0 -45
- package/src/components/fonts/Sora/OFL.txt +0 -93
- package/src/components/fonts/Sora/README.txt +0 -70
- package/src/components/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
- package/src/components/fonts/Sora/static/Sora-Bold.ttf +0 -0
- package/src/components/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
- package/src/components/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
- package/src/components/fonts/Sora/static/Sora-Light.ttf +0 -0
- package/src/components/fonts/Sora/static/Sora-Medium.ttf +0 -0
- package/src/components/fonts/Sora/static/Sora-Regular.ttf +0 -0
- package/src/components/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
- package/src/components/fonts/Sora/static/Sora-Thin.ttf +0 -0
- package/src/components/index.ts +0 -119
- package/src/components/typography/Fonts/Fonts.stories.tsx +0 -14
- package/src/components/typography/Fonts/Fonts.tsx +0 -74
- package/src/documentation/Colours.mdx +0 -192
- package/src/documentation/Introduction.mdx +0 -9
- package/src/index.ts +0 -1
- package/src/styles/global.css +0 -75
- package/src/styles/themes/local.css +0 -40
- package/src/styles/themes/palette.css +0 -131
- package/src/utils/controls.ts +0 -44
- package/src/utils/matchMedia.ts +0 -9
- package/src/utils/screens.ts +0 -7
- package/svg.d.ts +0 -4
- package/tailwind/boxShadow.ts +0 -9
- package/tailwind/colors.ts +0 -410
- package/tailwind/container.ts +0 -11
- package/tailwind/preset.ts +0 -88
- package/tailwind/spacing.ts +0 -14
- package/tailwind.config.ts +0 -81
- package/tsconfig.json +0 -49
- package/tsconfig.node.json +0 -12
- package/vite.config.mjs +0 -64
- /package/lib/{components → documentation}/typography/Fonts/Fonts.d.ts +0 -0
- /package/lib/{components → documentation}/typography/Fonts/Fonts.stories.d.ts +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
1
|
+
import { jsx as t, Fragment as h, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Dropdown as l } from "../Dropdown/index.js";
|
|
4
4
|
import { Image as c } from "../Image/index.js";
|
|
5
5
|
import p from "classnames";
|
|
6
|
-
const
|
|
7
|
-
id:
|
|
8
|
-
className:
|
|
6
|
+
const H = ({
|
|
7
|
+
id: s,
|
|
8
|
+
className: d,
|
|
9
9
|
backgroundColour: w = "white",
|
|
10
|
-
menuItems:
|
|
10
|
+
menuItems: a,
|
|
11
11
|
onClick: e
|
|
12
12
|
}) => {
|
|
13
|
-
const [
|
|
14
|
-
|
|
13
|
+
const [r, i] = u(!1), m = p(
|
|
14
|
+
d,
|
|
15
15
|
"h-[45px] w-[80px] overflow-hidden rounded-full border-2 border-lightest-grey my-auto flex cursor-pointer justify-between pl-2 text-center hover:shadow-md"
|
|
16
16
|
);
|
|
17
|
-
return
|
|
17
|
+
return a ? /* @__PURE__ */ o("div", { children: [
|
|
18
18
|
/* @__PURE__ */ o(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
21
|
-
id:
|
|
22
|
-
className:
|
|
21
|
+
id: s,
|
|
22
|
+
className: m,
|
|
23
23
|
onClick: () => {
|
|
24
|
-
i(!
|
|
24
|
+
i(!r);
|
|
25
25
|
},
|
|
26
26
|
children: [
|
|
27
|
-
/* @__PURE__ */ t("div", { className: "mx-auto my-auto", onClick: (
|
|
27
|
+
/* @__PURE__ */ t("div", { className: "mx-auto my-auto", onClick: (n) => e == null ? void 0 : e(n), children: /* @__PURE__ */ o(
|
|
28
28
|
"svg",
|
|
29
29
|
{
|
|
30
30
|
width: "18",
|
|
@@ -48,9 +48,9 @@ const M = ({
|
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
|
|
52
|
-
] }) : /* @__PURE__ */ t(
|
|
51
|
+
r && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(l, {}) })
|
|
52
|
+
] }) : /* @__PURE__ */ t(h, {});
|
|
53
53
|
};
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
H as MenuButton
|
|
56
56
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Nav } from '..';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').NavContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
8
|
+
logo: string;
|
|
9
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
DesktopHeader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
LeftSection: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
RightSection: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Logo: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLImageElement> & import('../Image').ImageProps & import('react').RefAttributes<HTMLImageElement>>;
|
|
14
|
+
Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Folder: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
16
|
+
label: string;
|
|
17
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
+
};
|
|
19
|
+
parameters: {
|
|
20
|
+
docs: {
|
|
21
|
+
story: {
|
|
22
|
+
iframe: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
args: {
|
|
27
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default meta;
|
|
31
|
+
type Story = StoryObj<typeof Nav>;
|
|
32
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ImageProps } from '../Image';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface NavContextProps {
|
|
5
|
+
expanded?: boolean;
|
|
6
|
+
setExpanded?: (val: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const Nav: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & NavContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
9
|
+
Header: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
10
|
+
logo: string;
|
|
11
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
DesktopHeader: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
+
LeftSection: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
|
+
RightSection: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Logo: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLImageElement> & ImageProps & import('react').RefAttributes<HTMLImageElement>>;
|
|
16
|
+
Body: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Folder: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
18
|
+
label: string;
|
|
19
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
|
+
};
|
|
21
|
+
export { Nav };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d, Fragment as y } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as b, forwardRef as n, useState as c, useMemo as w, useContext as m, useRef as C } from "react";
|
|
3
|
+
import { HamburgerIcon as H } from "../HamburgerIcon/index.js";
|
|
4
|
+
import { faChevronDown as L } from "@fortawesome/fontawesome-free-solid";
|
|
5
|
+
import p from "clsx";
|
|
6
|
+
import { Icon as S } from "../Icon/index.js";
|
|
7
|
+
const i = b(null), v = n(({ children: a }, s) => {
|
|
8
|
+
const [r, t] = c(!1), o = w(
|
|
9
|
+
() => ({
|
|
10
|
+
expanded: r,
|
|
11
|
+
setExpanded: t
|
|
12
|
+
}),
|
|
13
|
+
[r, t]
|
|
14
|
+
);
|
|
15
|
+
return /* @__PURE__ */ e(i.Provider, { value: o, children: /* @__PURE__ */ e("div", { children: a }) });
|
|
16
|
+
}), N = n(({ children: a, logo: s }, r) => {
|
|
17
|
+
const { setExpanded: t, expanded: o } = m(i) || {};
|
|
18
|
+
return /* @__PURE__ */ d("div", { ref: r, className: p("relative h-20 w-full bg-nav px-2 py-2"), children: [
|
|
19
|
+
/* @__PURE__ */ d("div", { className: "flex h-full md:hidden", children: [
|
|
20
|
+
/* @__PURE__ */ e("div", { className: "my-auto", children: /* @__PURE__ */ e(
|
|
21
|
+
H,
|
|
22
|
+
{
|
|
23
|
+
onClick: () => t == null ? void 0 : t(!o),
|
|
24
|
+
className: "aspect-square"
|
|
25
|
+
}
|
|
26
|
+
) }),
|
|
27
|
+
/* @__PURE__ */ e("div", { className: "absolute left-1/2 top-full w-28 -translate-x-1/2 -translate-y-1/2 transform", children: /* @__PURE__ */ e(l, { src: s }) })
|
|
28
|
+
] }),
|
|
29
|
+
a
|
|
30
|
+
] });
|
|
31
|
+
}), f = n(
|
|
32
|
+
({ children: a }, s) => {
|
|
33
|
+
const { expanded: r } = m(i) || {};
|
|
34
|
+
return r ? /* @__PURE__ */ e("div", { className: "h-screen bg-nav px-8 pb-12 pt-20 md:hidden", children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 md:hidden", children: a }) }) : /* @__PURE__ */ e(y, {});
|
|
35
|
+
}
|
|
36
|
+
), u = n(({ children: a }, s) => /* @__PURE__ */ e("div", { className: "hidden grid-cols-7 gap-8 md:grid", children: a })), x = n(({ children: a }, s) => /* @__PURE__ */ e("div", { className: "col-span-3 my-4 justify-between text-center md:flex", children: a })), g = n(({ label: a, children: s }) => {
|
|
37
|
+
const [r, t] = c(!1), o = C(null);
|
|
38
|
+
return /* @__PURE__ */ d(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
ref: o,
|
|
42
|
+
onClick: () => t(!0),
|
|
43
|
+
onMouseLeave: () => t(!1),
|
|
44
|
+
className: "mx-auto text-xl font-normal tracking-wider text-white hover:cursor-pointer",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
47
|
+
/* @__PURE__ */ e("p", { children: a }),
|
|
48
|
+
/* @__PURE__ */ e(S, { icon: L })
|
|
49
|
+
] }),
|
|
50
|
+
r && /* @__PURE__ */ e("div", { className: "mb:pb-2 grid grid-cols-1 bg-nav md:gap-5 md:pt-8", children: s })
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}), l = n(({ className: a, src: s, ...r }, t) => /* @__PURE__ */ e("div", { className: "flex-none", children: /* @__PURE__ */ e(
|
|
55
|
+
"img",
|
|
56
|
+
{
|
|
57
|
+
className: p("rounded-full", a),
|
|
58
|
+
ref: t,
|
|
59
|
+
src: s,
|
|
60
|
+
...r
|
|
61
|
+
}
|
|
62
|
+
) })), h = n(({ children: a }, s) => /* @__PURE__ */ e("div", { className: "col-span-3 my-4 justify-between text-center md:flex", children: a }));
|
|
63
|
+
v.displayName = "Nav";
|
|
64
|
+
N.displayName = "Nav.Header";
|
|
65
|
+
u.displayName = "Nav.DesktopHeader";
|
|
66
|
+
l.displayName = "Nav.Logo";
|
|
67
|
+
x.displayName = "Nav.LeftSection";
|
|
68
|
+
h.displayName = "Nav.RightSection";
|
|
69
|
+
f.displayName = "Nav.Body";
|
|
70
|
+
g.displayName = "Nav.Folder";
|
|
71
|
+
const I = Object.assign(v, {
|
|
72
|
+
Header: N,
|
|
73
|
+
DesktopHeader: u,
|
|
74
|
+
LeftSection: x,
|
|
75
|
+
RightSection: h,
|
|
76
|
+
Logo: l,
|
|
77
|
+
Body: f,
|
|
78
|
+
Folder: g
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
I as Nav
|
|
82
|
+
};
|
|
@@ -1,152 +1,16 @@
|
|
|
1
|
-
import { NavItem } from '.';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { NavItem } from './';
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: {
|
|
11
|
-
name: string;
|
|
12
|
-
required: boolean;
|
|
13
|
-
};
|
|
14
|
-
description: string;
|
|
15
|
-
table: {
|
|
16
|
-
type: {
|
|
17
|
-
summary: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
href: {
|
|
22
|
-
type: {
|
|
23
|
-
name: string;
|
|
24
|
-
required: boolean;
|
|
25
|
-
};
|
|
26
|
-
description: string;
|
|
27
|
-
table: {
|
|
28
|
-
type: {
|
|
29
|
-
summary: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
onClick: {
|
|
34
|
-
type: {
|
|
35
|
-
name: string;
|
|
36
|
-
required: boolean;
|
|
37
|
-
};
|
|
38
|
-
description: string;
|
|
39
|
-
table: {
|
|
40
|
-
type: {
|
|
41
|
-
summary: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
bordered: {
|
|
46
|
-
type: {
|
|
47
|
-
name: string;
|
|
48
|
-
required: boolean;
|
|
49
|
-
};
|
|
50
|
-
description: string;
|
|
51
|
-
table: {
|
|
52
|
-
type: {
|
|
53
|
-
summary: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
defaultValue: boolean;
|
|
57
|
-
};
|
|
58
|
-
rounded: {
|
|
59
|
-
type: {
|
|
60
|
-
name: string;
|
|
61
|
-
required: boolean;
|
|
62
|
-
};
|
|
63
|
-
description: string;
|
|
64
|
-
table: {
|
|
65
|
-
type: {
|
|
66
|
-
summary: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
defaultValue: boolean;
|
|
70
|
-
};
|
|
71
|
-
underlineOnHover: {
|
|
72
|
-
type: {
|
|
73
|
-
name: string;
|
|
74
|
-
required: boolean;
|
|
75
|
-
};
|
|
76
|
-
description: string;
|
|
77
|
-
table: {
|
|
78
|
-
type: {
|
|
79
|
-
summary: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
defaultValue: boolean;
|
|
83
|
-
};
|
|
84
|
-
isActive: {
|
|
85
|
-
type: {
|
|
86
|
-
name: string;
|
|
87
|
-
required: boolean;
|
|
88
|
-
};
|
|
89
|
-
description: string;
|
|
90
|
-
table: {
|
|
91
|
-
type: {
|
|
92
|
-
summary: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
defaultValue: boolean;
|
|
96
|
-
};
|
|
97
|
-
variant: {
|
|
98
|
-
type: {
|
|
99
|
-
name: string;
|
|
100
|
-
required: boolean;
|
|
101
|
-
};
|
|
102
|
-
options: string[];
|
|
103
|
-
description: string;
|
|
104
|
-
table: {
|
|
105
|
-
type: {
|
|
106
|
-
summary: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
defaultValue: string;
|
|
110
|
-
control: string;
|
|
111
|
-
};
|
|
112
|
-
id: {
|
|
113
|
-
description: string;
|
|
114
|
-
control: {
|
|
115
|
-
type: string;
|
|
116
|
-
default: boolean;
|
|
117
|
-
};
|
|
118
|
-
table: {
|
|
119
|
-
category: string;
|
|
120
|
-
type: {
|
|
121
|
-
summary: string;
|
|
122
|
-
};
|
|
123
|
-
defaultValue: {
|
|
124
|
-
summary: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
className: {
|
|
129
|
-
description: string;
|
|
130
|
-
control: {
|
|
131
|
-
type: string;
|
|
132
|
-
default: boolean;
|
|
133
|
-
};
|
|
134
|
-
table: {
|
|
135
|
-
category: string;
|
|
136
|
-
type: {
|
|
137
|
-
summary: string;
|
|
138
|
-
};
|
|
139
|
-
defaultValue: {
|
|
140
|
-
summary: string;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
};
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLAnchorElement> & {
|
|
7
|
+
href: string;
|
|
8
|
+
} & import('react').RefAttributes<HTMLAnchorElement>> & {
|
|
9
|
+
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
144
10
|
};
|
|
145
11
|
args: {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
underlineOnHover: boolean;
|
|
149
|
-
onClick: import('@storybook/addon-actions').HandlerFunction;
|
|
12
|
+
className: string;
|
|
13
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
150
14
|
};
|
|
151
15
|
};
|
|
152
16
|
export default meta;
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
bordered?: boolean;
|
|
10
|
-
rounded?: boolean;
|
|
11
|
-
underlineOnHover?: boolean;
|
|
12
|
-
isActive?: boolean;
|
|
13
|
-
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
14
|
-
tabindex?: number;
|
|
15
|
-
}
|
|
16
|
-
export declare const NavItem: ({ id, className, title, href, onClick, tabindex, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const NavItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLAnchorElement> & {
|
|
4
|
+
href: string;
|
|
5
|
+
} & import('react').RefAttributes<HTMLAnchorElement>> & {
|
|
6
|
+
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
};
|
|
8
|
+
export { NavItem };
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as o } from "react";
|
|
3
|
+
import i from "clsx";
|
|
4
|
+
const s = o(({ children: t, className: a, href: e, ...l }, n) => /* @__PURE__ */ r(
|
|
5
|
+
"a",
|
|
6
|
+
{
|
|
7
|
+
href: e,
|
|
8
|
+
ref: n,
|
|
9
|
+
className: i(
|
|
10
|
+
"mx-auto h-8 py-0 text-white after:block after:scale-x-0 after:border-b-4 after:transition-all after:duration-300 after:ease-in-out hover:cursor-pointer hover:after:scale-x-100",
|
|
11
|
+
a
|
|
12
|
+
),
|
|
13
|
+
...l,
|
|
14
|
+
children: t
|
|
15
|
+
}
|
|
16
|
+
)), m = o(({ className: t, ...a }, e) => /* @__PURE__ */ r("p", { className: "text-xl font-normal tracking-wider", ref: e, ...a }));
|
|
17
|
+
s.displayName = "NavItem";
|
|
18
|
+
m.displayName = "NavItem.Label";
|
|
19
|
+
const N = Object.assign(s, {
|
|
20
|
+
Label: m
|
|
21
|
+
});
|
|
23
22
|
export {
|
|
24
|
-
|
|
23
|
+
N as NavItem
|
|
25
24
|
};
|
|
@@ -1,84 +1,22 @@
|
|
|
1
|
-
import { Pill } from '.';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Pill } from './';
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
required: boolean;
|
|
12
|
-
};
|
|
13
|
-
description: string;
|
|
14
|
-
table: {
|
|
15
|
-
type: {
|
|
16
|
-
summary: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
onClick: {
|
|
21
|
-
type: {
|
|
22
|
-
name: string;
|
|
23
|
-
required: boolean;
|
|
24
|
-
};
|
|
25
|
-
description: string;
|
|
26
|
-
table: {
|
|
27
|
-
type: {
|
|
28
|
-
summary: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
dismissOnClick: {
|
|
33
|
-
type: {
|
|
34
|
-
name: string;
|
|
35
|
-
required: boolean;
|
|
36
|
-
};
|
|
37
|
-
description: string;
|
|
38
|
-
table: {
|
|
39
|
-
type: {
|
|
40
|
-
summary: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
id: {
|
|
45
|
-
description: string;
|
|
46
|
-
control: {
|
|
47
|
-
type: string;
|
|
48
|
-
default: boolean;
|
|
49
|
-
};
|
|
50
|
-
table: {
|
|
51
|
-
category: string;
|
|
52
|
-
type: {
|
|
53
|
-
summary: string;
|
|
54
|
-
};
|
|
55
|
-
defaultValue: {
|
|
56
|
-
summary: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
className: {
|
|
61
|
-
description: string;
|
|
62
|
-
control: {
|
|
63
|
-
type: string;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
table: {
|
|
67
|
-
category: string;
|
|
68
|
-
type: {
|
|
69
|
-
summary: string;
|
|
70
|
-
};
|
|
71
|
-
defaultValue: {
|
|
72
|
-
summary: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
};
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('./').PillProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
Icon: import('react').ForwardRefExoticComponent<{
|
|
8
|
+
icon: any;
|
|
9
|
+
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
10
|
+
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
76
11
|
};
|
|
77
12
|
args: {
|
|
78
|
-
|
|
79
|
-
onClick: import('@storybook/addon-actions').HandlerFunction;
|
|
13
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
80
14
|
};
|
|
81
15
|
};
|
|
82
16
|
export default meta;
|
|
83
17
|
type Story = StoryObj<typeof Pill>;
|
|
84
18
|
export declare const Default: Story;
|
|
19
|
+
export declare const Error: Story;
|
|
20
|
+
export declare const Warning: Story;
|
|
21
|
+
export declare const Success: Story;
|
|
22
|
+
export declare const Info: Story;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export type PickU<T, K extends keyof T> = T extends any ? {
|
|
4
|
+
[P in K]: T[P];
|
|
5
|
+
} : never;
|
|
6
|
+
export type PillVariant = 'default' | 'warning' | 'error' | 'info' | 'success';
|
|
7
|
+
export interface PillProps {
|
|
8
|
+
variant?: PillVariant;
|
|
9
|
+
loading?: boolean;
|
|
7
10
|
}
|
|
8
|
-
|
|
11
|
+
declare const Pill: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & PillProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
12
|
+
Icon: import('react').ForwardRefExoticComponent<{
|
|
13
|
+
icon: any;
|
|
14
|
+
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
15
|
+
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
16
|
+
};
|
|
17
|
+
export { Pill };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import s from "clsx";
|
|
4
|
+
import { Icon as a } from "../Icon/index.js";
|
|
5
|
+
const i = t(({ children: l, variant: e = "default" }, r) => /* @__PURE__ */ o(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
ref: r,
|
|
9
|
+
className: s(
|
|
10
|
+
"inline-grid grid-flow-col items-center gap-1 rounded-full border px-2 py-0.5",
|
|
11
|
+
{
|
|
12
|
+
"": e === "default",
|
|
13
|
+
"border-error-default bg-error-light text-error-default": e === "error",
|
|
14
|
+
"border-info-default bg-info-light text-info-default": e === "info",
|
|
15
|
+
"border-success-default bg-success-light text-success-default": e === "success",
|
|
16
|
+
"border-warning-default bg-warning-light text-warning-default": e === "warning"
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
children: l
|
|
20
|
+
}
|
|
21
|
+
)), d = t(({ className: l, ...e }, r) => /* @__PURE__ */ o("p", { className: s("text-xs", l), ref: r, ...e })), n = t(({ icon: l }, e) => /* @__PURE__ */ o(a, { size: "xs", ref: e, icon: l }));
|
|
22
|
+
i.displayName = "Pill";
|
|
23
|
+
n.displayName = "Pill.Icon";
|
|
24
|
+
d.displayName = "Chip.Label";
|
|
25
|
+
const m = Object.assign(i, {
|
|
26
|
+
Icon: n,
|
|
27
|
+
Label: d
|
|
28
|
+
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
m as Pill
|
|
31
31
|
};
|
|
@@ -43,7 +43,7 @@ const A = ({
|
|
|
43
43
|
/* @__PURE__ */ e("p", { children: f }),
|
|
44
44
|
x && /* @__PURE__ */ e("p", { className: "font-semiBold text-error", children: " *" })
|
|
45
45
|
] }),
|
|
46
|
-
/* @__PURE__ */ e("p", { className: "flex justify-between rounded-xl
|
|
46
|
+
/* @__PURE__ */ e("p", { className: "border-ink text-ink flex justify-between rounded-xl bg-white pb-1 pt-6", children: u })
|
|
47
47
|
] }),
|
|
48
48
|
/* @__PURE__ */ e(D, { colour: "ink", icon: j })
|
|
49
49
|
]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SplitCard } from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').SplitCardContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
LeftContent: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
|
+
RightContent: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Title: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
10
|
+
Text: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
11
|
+
};
|
|
12
|
+
args: {
|
|
13
|
+
className: string;
|
|
14
|
+
swapDesktop: true;
|
|
15
|
+
swapMobile: true;
|
|
16
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof SplitCard>;
|
|
21
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SplitCardContextProps {
|
|
4
|
+
swapDesktop?: boolean;
|
|
5
|
+
swapMobile?: boolean;
|
|
6
|
+
isMd?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const SplitCard: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & SplitCardContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
9
|
+
LeftContent: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
RightContent: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Title: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
12
|
+
Text: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
13
|
+
};
|
|
14
|
+
export { SplitCard };
|