linkedunion-design-kit 1.5.2 → 1.5.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/dist/app/layout.d.ts +1 -1
- package/dist/app/layout.js +7 -11
- package/dist/app/page.js +4 -10
- package/dist/index.d.ts +15 -12
- package/dist/index.js +15 -30
- package/dist/jest.config.js +15 -21
- package/dist/jest.setup.d.ts +0 -1
- package/dist/jest.setup.js +3 -12
- package/dist/{components/Color/TextColor/TextColor.stories.d.ts → src/components/Accordion/Accordion.stories.d.ts} +2 -2
- package/dist/src/components/Accordion/Accordion.stories.js +32 -0
- package/dist/{components → src/components}/Avatar/Avatar.d.ts +1 -1
- package/dist/src/components/Avatar/Avatar.js +12 -0
- package/dist/src/components/Avatar/Avatar.stories.js +43 -0
- package/dist/src/components/Avatar/Avatar.test.js +50 -0
- package/dist/src/components/Avatar/index.d.ts +32 -0
- package/dist/src/components/Avatar/index.js +32 -0
- package/dist/src/components/Avatar/type.d.ts +11 -0
- package/dist/src/components/Button/Button.d.ts +3 -0
- package/dist/src/components/Button/Button.js +7 -0
- package/dist/{components → src/components}/Button/Button.stories.d.ts +2 -1
- package/dist/src/components/Button/Button.stories.js +56 -0
- package/dist/src/components/Button/Button.test.js +62 -0
- package/dist/src/components/Button/IconButton.d.ts +3 -0
- package/dist/src/components/Button/IconButton.js +30 -0
- package/dist/src/components/Button/IconButton.stories.d.ts +4 -0
- package/dist/src/components/Button/IconButton.stories.js +53 -0
- package/dist/src/components/Button/IconButton.test.js +30 -0
- package/dist/src/components/Button/index.d.ts +39 -0
- package/dist/src/components/Button/index.js +39 -0
- package/dist/src/components/Button/type.d.ts +23 -0
- package/dist/src/components/ColorPicker/ColorPicker.d.ts +3 -0
- package/dist/src/components/ColorPicker/ColorPicker.js +27 -0
- package/dist/src/components/ColorPicker/ColorPicker.stories.d.ts +5 -0
- package/dist/src/components/ColorPicker/ColorPicker.stories.js +24 -0
- package/dist/src/components/ColorPicker/type.d.ts +4 -0
- package/dist/src/components/Colors/color.d.ts +4 -0
- package/dist/src/components/Colors/color.js +6 -0
- package/dist/src/components/Colors/color.stories.d.ts +7 -0
- package/dist/src/components/Colors/color.stories.js +32 -0
- package/dist/src/components/Colors/color.test.js +24 -0
- package/dist/src/components/EditorTooltip/EditorTooltip.d.ts +5 -0
- package/dist/src/components/EditorTooltip/EditorTooltip.js +9 -0
- package/dist/src/components/EditorTooltip/EditorTooltip.stories.d.ts +6 -0
- package/dist/src/components/EditorTooltip/EditorTooltip.stories.js +24 -0
- package/dist/{components → src/components}/Icons/IconList.test.js +18 -20
- package/dist/src/components/Icons/IconView.js +8 -0
- package/dist/{components → src/components}/Icons/IconView.stories.js +6 -9
- package/dist/src/components/Icons/LUIcon.d.ts +3 -0
- package/dist/src/components/Icons/LUIcon.js +32 -0
- package/dist/src/components/Icons/LUIcon.stories.js +44 -0
- package/dist/src/components/Icons/SingleIcon.test.js +67 -0
- package/dist/src/components/Icons/index.d.ts +16 -0
- package/dist/src/components/Icons/index.js +16 -0
- package/dist/src/components/Icons/type.d.ts +8 -0
- package/dist/src/components/ImageUploader/ImageUploader.stories.d.ts +6 -0
- package/dist/src/components/ImageUploader/ImageUploader.stories.js +18 -0
- package/dist/src/components/ImageUploader/type.d.ts +8 -0
- package/dist/src/components/Images/LuImage.d.ts +3 -0
- package/dist/{components/Typography/Body/Body.js → src/components/Images/LuImage.js} +8 -9
- package/dist/src/components/Images/LuImage.stories.d.ts +6 -0
- package/dist/src/components/Images/LuImage.stories.js +166 -0
- package/dist/src/components/Images/LuImage.test.d.ts +1 -0
- package/dist/src/components/Images/LuImage.test.js +56 -0
- package/dist/src/components/Images/index.d.ts +19 -0
- package/dist/src/components/Images/index.js +19 -0
- package/dist/src/components/Images/type.d.ts +7 -0
- package/dist/src/components/Images/type.js +1 -0
- package/dist/src/components/Input/Input.d.ts +3 -0
- package/dist/{components/Typography/Headings/Headings.js → src/components/Input/Input.js} +6 -9
- package/dist/src/components/Input/Input.stories.d.ts +5 -0
- package/dist/src/components/Input/Input.stories.js +46 -0
- package/dist/src/components/Input/index.d.ts +10 -0
- package/dist/src/components/Input/index.js +10 -0
- package/dist/src/components/Input/type.d.ts +8 -0
- package/dist/src/components/Input/type.js +1 -0
- package/dist/src/components/Label/Label.d.ts +3 -0
- package/dist/{components/Typography/Display/Display.js → src/components/Label/Label.js} +6 -9
- package/dist/src/components/Label/Label.stories.d.ts +5 -0
- package/dist/src/components/Label/Label.stories.js +36 -0
- package/dist/src/components/Label/type.d.ts +9 -0
- package/dist/src/components/Label/type.js +1 -0
- package/dist/src/components/MediaCard/Card.d.ts +3 -0
- package/dist/src/components/MediaCard/Card.js +45 -0
- package/dist/src/components/MediaCard/Card.stories.js +57 -0
- package/dist/src/components/MediaCard/Card.test.js +28 -0
- package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfile.d.ts +1 -1
- package/dist/src/components/MediaCard/ContactProfile/ContactProfile.js +27 -0
- package/dist/src/components/MediaCard/ContactProfile/ContactProfile.test.d.ts +1 -0
- package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfile.test.js +17 -13
- package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme1.d.ts +1 -1
- package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.js +8 -0
- package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme1.test.js +15 -38
- package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme2.d.ts +1 -1
- package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.js +8 -0
- package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme2.test.js +15 -38
- package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategory.d.ts +1 -1
- package/dist/src/components/MediaCard/PostByCategory/PostByCategory.js +31 -0
- package/dist/src/components/MediaCard/PostByCategory/PostByCategory.test.d.ts +1 -0
- package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategory.test.js +18 -13
- package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme1.d.ts +1 -1
- package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +8 -0
- package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme1.test.js +15 -38
- package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.d.ts +1 -1
- package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +8 -0
- package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.test.js +16 -39
- package/dist/{components → src/components}/MediaCard/index.js +2 -5
- package/dist/src/components/MediaCard/type.d.ts +26 -0
- package/dist/src/components/MediaCard/type.js +1 -0
- package/dist/src/components/Switch/Switch.d.ts +3 -0
- package/dist/src/components/Switch/Switch.js +7 -0
- package/dist/{components/Spacing/Padding/PaddingToken.stories.d.ts → src/components/Switch/Switch.stories.d.ts} +1 -1
- package/dist/src/components/Switch/Switch.stories.js +78 -0
- package/dist/src/components/Switch/type.d.ts +5 -0
- package/dist/src/components/Switch/type.js +1 -0
- package/dist/src/components/Title/Title.js +8 -0
- package/dist/src/components/Title/Title.module.css +43 -0
- package/dist/{components → src/components}/Title/Title.stories.js +9 -15
- package/dist/src/components/Title/Title.test.d.ts +1 -0
- package/dist/src/components/Title/Title.test.js +25 -0
- package/dist/src/components/Typography/Typography.d.ts +3 -0
- package/dist/src/components/Typography/Typography.js +29 -0
- package/dist/src/components/Typography/Typography.stories.d.ts +5 -0
- package/dist/src/components/Typography/Typography.stories.js +37 -0
- package/dist/src/components/Typography/type.d.ts +7 -0
- package/dist/src/components/Typography/type.js +1 -0
- package/dist/src/components/ui/accordion.d.ts +7 -0
- package/dist/src/components/ui/accordion.js +43 -0
- package/dist/src/components/ui/button.d.ts +10 -0
- package/dist/src/components/ui/button.js +54 -0
- package/dist/src/components/ui/imageUploader.d.ts +3 -0
- package/dist/src/components/ui/imageUploader.js +68 -0
- package/dist/src/components/ui/input.d.ts +3 -0
- package/dist/src/components/ui/input.js +29 -0
- package/dist/src/components/ui/label.d.ts +12 -0
- package/dist/src/components/ui/label.js +41 -0
- package/dist/src/components/ui/switch.d.ts +22 -0
- package/dist/src/components/ui/switch.js +70 -0
- package/dist/src/components/ui/tooltip.d.ts +7 -0
- package/dist/src/components/ui/tooltip.js +42 -0
- package/dist/src/components/ui/typography.d.ts +26 -0
- package/dist/src/components/ui/typography.js +65 -0
- package/dist/src/lib/utils.d.ts +2 -0
- package/dist/src/lib/utils.js +9 -0
- package/dist/src/utils/colors.d.ts +70 -0
- package/dist/src/utils/colors.js +70 -0
- package/dist/{utils → src/utils}/constants.d.ts +2 -0
- package/dist/src/utils/constants.js +4 -0
- package/dist/src/utils/enums.d.ts +9 -0
- package/dist/src/utils/enums.js +11 -0
- package/dist/{utils → src/utils}/iconList.js +6 -4
- package/dist/src/utils/index.d.ts +18 -0
- package/dist/src/utils/index.js +20 -0
- package/dist/styles/global.css +2739 -4141
- package/dist/tailwind.config.js +10 -178
- package/package.json +19 -7
- package/dist/.next/types/app/page.d.ts +0 -8
- package/dist/.next/types/app/page.js +0 -57
- package/dist/app/scripts.d.ts +0 -2
- package/dist/app/scripts.js +0 -16
- package/dist/components/Avatar/Avatar.js +0 -15
- package/dist/components/Avatar/Avatar.stories.js +0 -52
- package/dist/components/Avatar/Avatar.test.js +0 -54
- package/dist/components/Border/BorderRadius/BorderRadius.d.ts +0 -2
- package/dist/components/Border/BorderRadius/BorderRadius.js +0 -11
- package/dist/components/Border/BorderRadius/BorderRadius.stories.d.ts +0 -4
- package/dist/components/Border/BorderRadius/BorderRadius.stories.js +0 -38
- package/dist/components/Border/BorderRadius/BorderRadius.test.js +0 -25
- package/dist/components/Border/BorderRadius/BorderRadiusTable.d.ts +0 -1
- package/dist/components/Border/BorderRadius/BorderRadiusTable.js +0 -9
- package/dist/components/Border/BorderRadius/BorderRadiusView.d.ts +0 -2
- package/dist/components/Border/BorderRadius/BorderRadiusView.js +0 -9
- package/dist/components/Border/BorderWidth/BorderWidth.d.ts +0 -2
- package/dist/components/Border/BorderWidth/BorderWidth.js +0 -11
- package/dist/components/Border/BorderWidth/BorderWidth.stories.d.ts +0 -4
- package/dist/components/Border/BorderWidth/BorderWidth.stories.js +0 -38
- package/dist/components/Border/BorderWidth/BorderWidth.test.js +0 -25
- package/dist/components/Border/BorderWidth/BorderWidthTable.d.ts +0 -1
- package/dist/components/Border/BorderWidth/BorderWidthTable.js +0 -9
- package/dist/components/Border/BorderWidth/ViewBorderWidth.d.ts +0 -2
- package/dist/components/Border/BorderWidth/ViewBorderWidth.js +0 -9
- package/dist/components/Button/Button.d.ts +0 -3
- package/dist/components/Button/Button.js +0 -22
- package/dist/components/Button/Button.stories.js +0 -160
- package/dist/components/Button/Button.test.d.ts +0 -1
- package/dist/components/Button/Button.test.js +0 -54
- package/dist/components/Button/index.d.ts +0 -4
- package/dist/components/Button/index.js +0 -8
- package/dist/components/Color/BackgroundColor/BackgroundColor.d.ts +0 -2
- package/dist/components/Color/BackgroundColor/BackgroundColor.js +0 -9
- package/dist/components/Color/BackgroundColor/BackgroundColor.stories.d.ts +0 -10
- package/dist/components/Color/BackgroundColor/BackgroundColor.stories.js +0 -103
- package/dist/components/Color/BackgroundColor/BackgroundColor.test.js +0 -17
- package/dist/components/Color/BackgroundColor/index.d.ts +0 -7
- package/dist/components/Color/BackgroundColor/index.js +0 -18
- package/dist/components/Color/Color.test.d.ts +0 -1
- package/dist/components/Color/Color.test.js +0 -38
- package/dist/components/Color/TextColor/TextColor.d.ts +0 -3
- package/dist/components/Color/TextColor/TextColor.js +0 -9
- package/dist/components/Color/TextColor/TextColor.stories.js +0 -35
- package/dist/components/Color/TextColor/TextColor.test.d.ts +0 -1
- package/dist/components/Color/TextColor/TextColor.test.js +0 -43
- package/dist/components/Icons/IconView.js +0 -11
- package/dist/components/Icons/LUIcon.d.ts +0 -3
- package/dist/components/Icons/LUIcon.js +0 -11
- package/dist/components/Icons/LUIcon.stories.js +0 -56
- package/dist/components/Icons/SingleIcon.test.js +0 -53
- package/dist/components/Images/LuImage.d.ts +0 -3
- package/dist/components/Images/LuImage.js +0 -14
- package/dist/components/Images/LuImage.stories.d.ts +0 -4
- package/dist/components/Images/LuImage.stories.js +0 -53
- package/dist/components/Images/LuImage.test.d.ts +0 -1
- package/dist/components/Images/LuImage.test.js +0 -68
- package/dist/components/MediaCard/Card.d.ts +0 -3
- package/dist/components/MediaCard/Card.js +0 -48
- package/dist/components/MediaCard/Card.stories.js +0 -61
- package/dist/components/MediaCard/Card.test.js +0 -33
- package/dist/components/MediaCard/ContactProfile/ContactProfile.js +0 -27
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.js +0 -16
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.js +0 -16
- package/dist/components/MediaCard/PostByCategory/PostByCategory.js +0 -27
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +0 -16
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +0 -16
- package/dist/components/MediaCard/card.module.css +0 -52
- package/dist/components/Size/MinWidthHeight.d.ts +0 -3
- package/dist/components/Size/MinWidthHeight.js +0 -8
- package/dist/components/Size/MinWidthHeight.stories.d.ts +0 -5
- package/dist/components/Size/MinWidthHeight.stories.js +0 -46
- package/dist/components/Size/MinWidthHeight.test.d.ts +0 -1
- package/dist/components/Size/MinWidthHeight.test.js +0 -34
- package/dist/components/Size/Size.d.ts +0 -4
- package/dist/components/Size/Size.js +0 -10
- package/dist/components/Size/Size.stories.d.ts +0 -6
- package/dist/components/Size/Size.stories.js +0 -35
- package/dist/components/Size/Size.test.d.ts +0 -1
- package/dist/components/Size/Size.test.js +0 -73
- package/dist/components/Size/WidthAndHeight.test.d.ts +0 -1
- package/dist/components/Size/WidthAndHeight.test.js +0 -34
- package/dist/components/Size/WidthHeight.d.ts +0 -3
- package/dist/components/Size/WidthHeight.js +0 -8
- package/dist/components/Size/WidthHeight.stories.d.ts +0 -5
- package/dist/components/Size/WidthHeight.stories.js +0 -46
- package/dist/components/Spacing/Margin/Margin.d.ts +0 -1
- package/dist/components/Spacing/Margin/Margin.js +0 -9
- package/dist/components/Spacing/Margin/MarginBottom.d.ts +0 -1
- package/dist/components/Spacing/Margin/MarginBottom.js +0 -9
- package/dist/components/Spacing/Margin/MarginLeft.d.ts +0 -1
- package/dist/components/Spacing/Margin/MarginLeft.js +0 -9
- package/dist/components/Spacing/Margin/MarginRight.d.ts +0 -1
- package/dist/components/Spacing/Margin/MarginRight.js +0 -9
- package/dist/components/Spacing/Margin/MarginToken.d.ts +0 -1
- package/dist/components/Spacing/Margin/MarginToken.js +0 -16
- package/dist/components/Spacing/Margin/MarginToken.stories.d.ts +0 -4
- package/dist/components/Spacing/Margin/MarginToken.stories.js +0 -22
- package/dist/components/Spacing/Margin/MarginToken.test.js +0 -22
- package/dist/components/Spacing/Margin/MarginTop.d.ts +0 -1
- package/dist/components/Spacing/Margin/MarginTop.js +0 -9
- package/dist/components/Spacing/Margin/MarginX.d.ts +0 -1
- package/dist/components/Spacing/Margin/MarginX.js +0 -9
- package/dist/components/Spacing/Margin/MarginY.d.ts +0 -1
- package/dist/components/Spacing/Margin/MarginY.js +0 -9
- package/dist/components/Spacing/Padding/Padding.d.ts +0 -1
- package/dist/components/Spacing/Padding/Padding.js +0 -9
- package/dist/components/Spacing/Padding/PaddingBottom.d.ts +0 -1
- package/dist/components/Spacing/Padding/PaddingBottom.js +0 -9
- package/dist/components/Spacing/Padding/PaddingLeft.d.ts +0 -1
- package/dist/components/Spacing/Padding/PaddingLeft.js +0 -9
- package/dist/components/Spacing/Padding/PaddingRight.d.ts +0 -1
- package/dist/components/Spacing/Padding/PaddingRight.js +0 -9
- package/dist/components/Spacing/Padding/PaddingToken.d.ts +0 -1
- package/dist/components/Spacing/Padding/PaddingToken.js +0 -16
- package/dist/components/Spacing/Padding/PaddingToken.stories.js +0 -22
- package/dist/components/Spacing/Padding/PaddingToken.test.js +0 -22
- package/dist/components/Spacing/Padding/PaddingTop.d.ts +0 -1
- package/dist/components/Spacing/Padding/PaddingTop.js +0 -9
- package/dist/components/Spacing/Padding/PaddingX.d.ts +0 -1
- package/dist/components/Spacing/Padding/PaddingX.js +0 -9
- package/dist/components/Spacing/Padding/PaddingY.d.ts +0 -1
- package/dist/components/Spacing/Padding/PaddingY.js +0 -9
- package/dist/components/Title/Title.js +0 -13
- package/dist/components/Title/Title.module.css +0 -56
- package/dist/components/Title/Title.test.js +0 -30
- package/dist/components/Typography/Body/Body.d.ts +0 -3
- package/dist/components/Typography/Body/Body.stories.d.ts +0 -6
- package/dist/components/Typography/Body/Body.stories.js +0 -75
- package/dist/components/Typography/Body/body.test.d.ts +0 -1
- package/dist/components/Typography/Body/body.test.js +0 -49
- package/dist/components/Typography/Body/index.d.ts +0 -14
- package/dist/components/Typography/Body/index.js +0 -53
- package/dist/components/Typography/Body/type.d.ts +0 -7
- package/dist/components/Typography/Body/type.js +0 -2
- package/dist/components/Typography/Display/Display.d.ts +0 -3
- package/dist/components/Typography/Display/Display.stories.d.ts +0 -6
- package/dist/components/Typography/Display/Display.stories.js +0 -79
- package/dist/components/Typography/Display/Display.test.d.ts +0 -1
- package/dist/components/Typography/Display/Display.test.js +0 -49
- package/dist/components/Typography/Display/index.d.ts +0 -38
- package/dist/components/Typography/Display/index.js +0 -64
- package/dist/components/Typography/Display/type.d.ts +0 -8
- package/dist/components/Typography/Display/type.js +0 -2
- package/dist/components/Typography/Headings/Heading.test.d.ts +0 -1
- package/dist/components/Typography/Headings/Heading.test.js +0 -49
- package/dist/components/Typography/Headings/Headings.d.ts +0 -3
- package/dist/components/Typography/Headings/Headings.stories.d.ts +0 -6
- package/dist/components/Typography/Headings/Headings.stories.js +0 -69
- package/dist/components/Typography/Headings/index.d.ts +0 -21
- package/dist/components/Typography/Headings/index.js +0 -71
- package/dist/components/Typography/Headings/type.d.ts +0 -6
- package/dist/components/Typography/Headings/type.js +0 -2
- package/dist/components/Typography/Typography.css +0 -3016
- package/dist/components/Typography/Typography.d.ts +0 -2
- package/dist/components/Typography/Typography.js +0 -9
- package/dist/components/Typography/Typography.stories.d.ts +0 -5
- package/dist/components/Typography/Typography.stories.js +0 -87
- package/dist/components/Typography/Typography.test.d.ts +0 -1
- package/dist/components/Typography/Typography.test.js +0 -42
- package/dist/global/components/Table/Table.d.ts +0 -14
- package/dist/global/components/Table/Table.js +0 -14
- package/dist/utils/colors.d.ts +0 -7
- package/dist/utils/colors.js +0 -10
- package/dist/utils/constants.js +0 -5
- package/dist/utils/enums.d.ts +0 -60
- package/dist/utils/enums.js +0 -69
- package/dist/utils/index.d.ts +0 -1448
- package/dist/utils/index.js +0 -1597
- /package/dist/{components → src/components}/Avatar/Avatar.stories.d.ts +0 -0
- /package/dist/{components → src/components}/Avatar/Avatar.test.d.ts +0 -0
- /package/dist/{components/Border/BorderRadius/BorderRadius.test.d.ts → src/components/Avatar/type.js} +0 -0
- /package/dist/{components/Border/BorderWidth/BorderWidth.test.d.ts → src/components/Button/Button.test.d.ts} +0 -0
- /package/dist/{components/Color/BackgroundColor/BackgroundColor.test.d.ts → src/components/Button/IconButton.test.d.ts} +0 -0
- /package/dist/{components/Icons/IconList.test.d.ts → src/components/Button/type.js} +0 -0
- /package/dist/{components/Icons/SingleIcon.test.d.ts → src/components/ColorPicker/type.js} +0 -0
- /package/dist/{components/MediaCard/ContactProfile/ContactProfile.test.d.ts → src/components/Colors/color.test.d.ts} +0 -0
- /package/dist/{components/MediaCard/PostByCategory/PostByCategory.test.d.ts → src/components/Icons/IconList.test.d.ts} +0 -0
- /package/dist/{components → src/components}/Icons/IconView.d.ts +0 -0
- /package/dist/{components → src/components}/Icons/IconView.stories.d.ts +0 -0
- /package/dist/{components → src/components}/Icons/LUIcon.stories.d.ts +0 -0
- /package/dist/{components/Spacing/Margin/MarginToken.test.d.ts → src/components/Icons/SingleIcon.test.d.ts} +0 -0
- /package/dist/{components/Spacing/Padding/PaddingToken.test.d.ts → src/components/Icons/type.js} +0 -0
- /package/dist/{components/Title/Title.test.d.ts → src/components/ImageUploader/type.js} +0 -0
- /package/dist/{components → src/components}/MediaCard/Card.stories.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/Card.test.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme1.test.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme2.test.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme1.test.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.test.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/index.d.ts +0 -0
- /package/dist/{components → src/components}/Title/Title.d.ts +0 -0
- /package/dist/{components → src/components}/Title/Title.stories.d.ts +0 -0
- /package/dist/{utils → src/utils}/iconList.d.ts +0 -0
package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme1.d.ts
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CardProps } from "
|
|
1
|
+
import { CardProps } from "../type";
|
|
2
2
|
export declare const PostByCategoryTheme1: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import LuImage from "../../../components/Images/LuImage";
|
|
4
|
+
import Button from "../../../components/Button/Button";
|
|
5
|
+
import LUIcon from "../../../components/Icons/LUIcon";
|
|
6
|
+
export var PostByCategoryTheme1 = function (props) {
|
|
7
|
+
return (_jsxs("div", { "data-testid": "postByCategory-theme1", className: "p-5 card_bg_PostByCategory_".concat(props.id, " rounded-xl ").concat(props.className, " card_shadow_PostByCategory_").concat(props.id, " flex gap-x-[20px] w-full"), children: [_jsx("div", { className: "max-w-[240px] overflow-hidden aspect-square max-xs:hidden", children: _jsx(LuImage, { src: props.image, width: 240, height: 240, className: "rounded-lg w-full h-full object-cover", alt: "Post By Category" }) }), _jsxs("div", { className: "flex flex-1 flex-col", children: [_jsxs("div", { className: "flex flex-col justify-center flex-1 h-full", children: [_jsx("div", { className: "card_PostByCategory_title_color_".concat(props.id, " text-2xl font-semibold capitalize line-clamp-1"), children: props.heading }), _jsx("p", { className: "card_PostByCategory_description_color_".concat(props.id, " text-base font-extralight line-clamp-2 max-xs:line-clamp-1 max-xs:mt-[7px]"), children: props.body })] }), _jsx(Link, { href: props.href, passHref: true, className: "w-full no-underline", children: _jsx(Button, { endIcon: _jsx(LUIcon, { icon: "angle-right", size: "sm" }), size: "lg", className: "rounded justify-between w-full max-xs:mt-2.5 card_PostByCategory_btn_".concat(props.id), children: props.btnLabel }) })] })] }));
|
|
8
|
+
};
|
package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme1.test.js
RENAMED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __assign = (this && this.__assign) || function () {
|
|
3
2
|
__assign = Object.assign || function(t) {
|
|
4
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -46,15 +45,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
46
|
}
|
|
48
47
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var react_1 = require("@testing-library/react");
|
|
55
|
-
require("@testing-library/jest-dom");
|
|
56
|
-
var PostByCategoryTheme1_1 = require("./PostByCategoryTheme1");
|
|
57
|
-
var user_event_1 = __importDefault(require("@testing-library/user-event"));
|
|
48
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
49
|
+
import { render, screen } from "@testing-library/react";
|
|
50
|
+
import "@testing-library/jest-dom";
|
|
51
|
+
import { PostByCategoryTheme1 } from "./PostByCategoryTheme1";
|
|
52
|
+
import userEvent from "@testing-library/user-event";
|
|
58
53
|
describe("PostByCategoryTheme1 Component", function () {
|
|
59
54
|
var mockProps = {
|
|
60
55
|
id: 1,
|
|
@@ -65,37 +60,24 @@ describe("PostByCategoryTheme1 Component", function () {
|
|
|
65
60
|
href: "/profile",
|
|
66
61
|
className: "custom-class",
|
|
67
62
|
};
|
|
68
|
-
jest.mock("next/image", function () { return ({
|
|
69
|
-
__esModule: true,
|
|
70
|
-
default: function (props) {
|
|
71
|
-
var _a;
|
|
72
|
-
return ((0, jsx_runtime_1.jsx)("img", __assign({}, props, { id: (_a = props.id) === null || _a === void 0 ? void 0 : _a.toString(), alt: props.btnLabel || "" })));
|
|
73
|
-
}, // Renders a normal <img> tag
|
|
74
|
-
}); });
|
|
75
63
|
it("Render the post by category theme1 with correct body and heading text", function () {
|
|
76
|
-
|
|
77
|
-
var headingElement =
|
|
78
|
-
var bodyElement =
|
|
64
|
+
render(_jsx(PostByCategoryTheme1, __assign({}, mockProps)));
|
|
65
|
+
var headingElement = screen.getByText(mockProps.heading);
|
|
66
|
+
var bodyElement = screen.getByText(mockProps.body);
|
|
79
67
|
expect(headingElement).toBeInTheDocument();
|
|
80
68
|
expect(bodyElement).toBeInTheDocument();
|
|
81
69
|
});
|
|
82
|
-
it("renders the profile image", function () {
|
|
83
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(PostByCategoryTheme1_1.PostByCategoryTheme1, __assign({}, mockProps)));
|
|
84
|
-
var profileImage = react_1.screen.getByAltText("Image");
|
|
85
|
-
expect(profileImage).toBeInTheDocument();
|
|
86
|
-
expect(profileImage).toHaveAttribute("alt", "Image"); // Matches the default alt in LuImage
|
|
87
|
-
});
|
|
88
70
|
it("renders the button with correct label and icon", function () {
|
|
89
|
-
|
|
90
|
-
var buttonElement =
|
|
71
|
+
render(_jsx(PostByCategoryTheme1, __assign({}, mockProps)));
|
|
72
|
+
var buttonElement = screen.getByRole("button", {
|
|
91
73
|
name: mockProps.btnLabel,
|
|
92
74
|
});
|
|
93
75
|
expect(buttonElement).toBeInTheDocument();
|
|
94
76
|
expect(buttonElement).toHaveTextContent(mockProps.btnLabel);
|
|
95
77
|
});
|
|
96
78
|
it("renders the link with the correct href", function () {
|
|
97
|
-
|
|
98
|
-
var linkElement =
|
|
79
|
+
render(_jsx(PostByCategoryTheme1, __assign({}, mockProps)));
|
|
80
|
+
var linkElement = screen.getByRole("link");
|
|
99
81
|
expect(linkElement).toHaveAttribute("href", mockProps.href);
|
|
100
82
|
});
|
|
101
83
|
it("triggers navigation when the button is clicked", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -103,9 +85,9 @@ describe("PostByCategoryTheme1 Component", function () {
|
|
|
103
85
|
return __generator(this, function (_a) {
|
|
104
86
|
switch (_a.label) {
|
|
105
87
|
case 0:
|
|
106
|
-
|
|
107
|
-
user =
|
|
108
|
-
linkElement =
|
|
88
|
+
render(_jsx(PostByCategoryTheme1, __assign({}, mockProps)));
|
|
89
|
+
user = userEvent.setup();
|
|
90
|
+
linkElement = screen.getByRole("link");
|
|
109
91
|
return [4 /*yield*/, user.click(linkElement)];
|
|
110
92
|
case 1:
|
|
111
93
|
_a.sent();
|
|
@@ -114,9 +96,4 @@ describe("PostByCategoryTheme1 Component", function () {
|
|
|
114
96
|
}
|
|
115
97
|
});
|
|
116
98
|
}); });
|
|
117
|
-
it("renders without crashing when href is undefined", function () {
|
|
118
|
-
var propsWithoutHref = __assign(__assign({}, mockProps), { href: undefined });
|
|
119
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(PostByCategoryTheme1_1.PostByCategoryTheme1, __assign({}, propsWithoutHref)));
|
|
120
|
-
expect(react_1.screen.getByRole("button")).toBeInTheDocument();
|
|
121
|
-
});
|
|
122
99
|
});
|
package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.d.ts
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CardProps } from "
|
|
1
|
+
import { CardProps } from "../type";
|
|
2
2
|
export declare const PostByCategoryTheme2: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import LuImage from "../../../components/Images/LuImage";
|
|
4
|
+
import Button from "../../../components/Button/Button";
|
|
5
|
+
import LUIcon from "../../../components/Icons/LUIcon";
|
|
6
|
+
export var PostByCategoryTheme2 = function (props) {
|
|
7
|
+
return (_jsxs("div", { "data-testid": "postByCategory-theme2", className: "p-8 card_bg_PostByCategory_".concat(props.id, " rounded-xl ").concat(props.className, " card_shadow_PostByCategory_").concat(props.id, " flex flex-col items-center w-full"), children: [_jsx("div", { className: "w-full max-w-[240px] overflow-hidden aspect-square", children: _jsx(LuImage, { src: props.image, width: 240, height: 240, className: "w-full h-full object-cover card_PostByCategory_theme2_image_".concat(props === null || props === void 0 ? void 0 : props.id), alt: "Post By Category" }) }), _jsxs("div", { className: "flex flex-col items-center flex-grow m-5 text-center h-[100px]", children: [_jsx("div", { className: "text-default card_PostByCategory_title_color_".concat(props.id, " text-2xl font-semibold capitalize line-clamp-1"), children: props.heading }), _jsx("p", { className: "card_PostByCategory_description_color_".concat(props.id, " text-base font-extralight line-clamp-2 max-xs:line-clamp-1 max-sm:mt-[7px]"), children: props.body })] }), _jsx(Link, { href: props.href, passHref: true, className: "w-full no-underline", children: _jsx(Button, { endIcon: _jsx(LUIcon, { icon: "angle-right", size: "sm" }), size: "lg", className: "rounded justify-between w-full card_PostByCategory_btn_".concat(props.id), children: props.btnLabel }) })] }));
|
|
8
|
+
};
|
package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.test.js
RENAMED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __assign = (this && this.__assign) || function () {
|
|
3
2
|
__assign = Object.assign || function(t) {
|
|
4
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -46,16 +45,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
46
|
}
|
|
48
47
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
require("@testing-library/jest-dom");
|
|
56
|
-
var PostByCategoryTheme2_1 = require("./PostByCategoryTheme2");
|
|
57
|
-
var user_event_1 = __importDefault(require("@testing-library/user-event"));
|
|
58
|
-
describe("ContactProfileTheme1 Component", function () {
|
|
48
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
49
|
+
import { render, screen } from "@testing-library/react";
|
|
50
|
+
import "@testing-library/jest-dom";
|
|
51
|
+
import { PostByCategoryTheme2 } from "./PostByCategoryTheme2";
|
|
52
|
+
import userEvent from "@testing-library/user-event";
|
|
53
|
+
describe("PostByCategoryTheme2 Component", function () {
|
|
59
54
|
var mockProps = {
|
|
60
55
|
id: 1,
|
|
61
56
|
heading: "John Doe",
|
|
@@ -65,37 +60,24 @@ describe("ContactProfileTheme1 Component", function () {
|
|
|
65
60
|
href: "/profile",
|
|
66
61
|
className: "custom-class",
|
|
67
62
|
};
|
|
68
|
-
jest.mock("next/image", function () { return ({
|
|
69
|
-
__esModule: true,
|
|
70
|
-
default: function (props) {
|
|
71
|
-
var _a;
|
|
72
|
-
return ((0, jsx_runtime_1.jsx)("img", __assign({}, props, { id: (_a = props.id) === null || _a === void 0 ? void 0 : _a.toString(), alt: props.btnLabel || "" })));
|
|
73
|
-
}, // Renders a normal <img> tag
|
|
74
|
-
}); });
|
|
75
63
|
it("Render the post by category theme2 with correct body and heading text", function () {
|
|
76
|
-
|
|
77
|
-
var headingElement =
|
|
78
|
-
var bodyElement =
|
|
64
|
+
render(_jsx(PostByCategoryTheme2, __assign({}, mockProps)));
|
|
65
|
+
var headingElement = screen.getByText(mockProps.heading);
|
|
66
|
+
var bodyElement = screen.getByText(mockProps.body);
|
|
79
67
|
expect(headingElement).toBeInTheDocument();
|
|
80
68
|
expect(bodyElement).toBeInTheDocument();
|
|
81
69
|
});
|
|
82
|
-
it("renders the profile image", function () {
|
|
83
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(PostByCategoryTheme2_1.PostByCategoryTheme2, __assign({}, mockProps)));
|
|
84
|
-
var profileImage = react_1.screen.getByAltText("Image");
|
|
85
|
-
expect(profileImage).toBeInTheDocument();
|
|
86
|
-
expect(profileImage).toHaveAttribute("alt", "Image"); // Matches the default alt in LuImage
|
|
87
|
-
});
|
|
88
70
|
it("renders the button with correct label and icon", function () {
|
|
89
|
-
|
|
90
|
-
var buttonElement =
|
|
71
|
+
render(_jsx(PostByCategoryTheme2, __assign({}, mockProps)));
|
|
72
|
+
var buttonElement = screen.getByRole("button", {
|
|
91
73
|
name: mockProps.btnLabel,
|
|
92
74
|
});
|
|
93
75
|
expect(buttonElement).toBeInTheDocument();
|
|
94
76
|
expect(buttonElement).toHaveTextContent(mockProps.btnLabel);
|
|
95
77
|
});
|
|
96
78
|
it("renders the link with the correct href", function () {
|
|
97
|
-
|
|
98
|
-
var linkElement =
|
|
79
|
+
render(_jsx(PostByCategoryTheme2, __assign({}, mockProps)));
|
|
80
|
+
var linkElement = screen.getByRole("link");
|
|
99
81
|
expect(linkElement).toHaveAttribute("href", mockProps.href);
|
|
100
82
|
});
|
|
101
83
|
it("triggers navigation when the button is clicked", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -103,9 +85,9 @@ describe("ContactProfileTheme1 Component", function () {
|
|
|
103
85
|
return __generator(this, function (_a) {
|
|
104
86
|
switch (_a.label) {
|
|
105
87
|
case 0:
|
|
106
|
-
|
|
107
|
-
user =
|
|
108
|
-
linkElement =
|
|
88
|
+
render(_jsx(PostByCategoryTheme2, __assign({}, mockProps)));
|
|
89
|
+
user = userEvent.setup();
|
|
90
|
+
linkElement = screen.getByRole("link");
|
|
109
91
|
return [4 /*yield*/, user.click(linkElement)];
|
|
110
92
|
case 1:
|
|
111
93
|
_a.sent();
|
|
@@ -114,9 +96,4 @@ describe("ContactProfileTheme1 Component", function () {
|
|
|
114
96
|
}
|
|
115
97
|
});
|
|
116
98
|
}); });
|
|
117
|
-
it("renders without crashing when href is undefined", function () {
|
|
118
|
-
var propsWithoutHref = __assign(__assign({}, mockProps), { href: undefined });
|
|
119
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(PostByCategoryTheme2_1.PostByCategoryTheme2, __assign({}, propsWithoutHref)));
|
|
120
|
-
expect(react_1.screen.getByRole("button")).toBeInTheDocument();
|
|
121
|
-
});
|
|
122
99
|
});
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SectionTypeEnum = void 0;
|
|
4
|
-
var SectionTypeEnum;
|
|
1
|
+
export var SectionTypeEnum;
|
|
5
2
|
(function (SectionTypeEnum) {
|
|
6
3
|
SectionTypeEnum["multiplePostsTheme"] = "multiple posts";
|
|
7
4
|
SectionTypeEnum["singlePostTheme"] = "single post";
|
|
@@ -9,4 +6,4 @@ var SectionTypeEnum;
|
|
|
9
6
|
SectionTypeEnum["contactsProfileTheme"] = "contacts profile";
|
|
10
7
|
SectionTypeEnum["galleryTheme"] = "gallery";
|
|
11
8
|
SectionTypeEnum["albumTheme"] = "album";
|
|
12
|
-
})(SectionTypeEnum || (
|
|
9
|
+
})(SectionTypeEnum || (SectionTypeEnum = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OrientationEnum } from "../../utils/enums";
|
|
2
|
+
type layout = keyof typeof OrientationEnum;
|
|
3
|
+
export interface CardProps {
|
|
4
|
+
image: string;
|
|
5
|
+
layout?: layout;
|
|
6
|
+
heading?: string;
|
|
7
|
+
body?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
btnLabel?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
href: string;
|
|
12
|
+
cardStyle?: {
|
|
13
|
+
card_title_color?: string;
|
|
14
|
+
card_description_color?: string;
|
|
15
|
+
card_shadow_toggle?: number;
|
|
16
|
+
card_shadow_color?: string;
|
|
17
|
+
card_background_color?: string;
|
|
18
|
+
card_button_background_color?: string;
|
|
19
|
+
card_button_text_color?: string;
|
|
20
|
+
card_image_border_color?: string;
|
|
21
|
+
card_image_border_radius?: string;
|
|
22
|
+
card_image_border?: string;
|
|
23
|
+
};
|
|
24
|
+
id?: number;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Switch as ShadSwitch } from "../ui/switch";
|
|
3
|
+
var Switch = function (_a) {
|
|
4
|
+
var size = _a.size, variant = _a.variant;
|
|
5
|
+
return _jsx(ShadSwitch, { size: size, variant: variant });
|
|
6
|
+
};
|
|
7
|
+
export default Switch;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Meta } from "@storybook/react";
|
|
2
2
|
declare const _default: Meta;
|
|
3
3
|
export default _default;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const _Switch: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/react").Args>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { size, Switch, variant } from "../ui/switch";
|
|
14
|
+
export default {
|
|
15
|
+
title: "Components/Switch",
|
|
16
|
+
component: Switch,
|
|
17
|
+
tags: ["autodocs"],
|
|
18
|
+
};
|
|
19
|
+
var Template = function (args) { return _jsx(Switch, __assign({}, args)); };
|
|
20
|
+
export var _Switch = Template.bind({});
|
|
21
|
+
_Switch.args = {
|
|
22
|
+
size: "md",
|
|
23
|
+
variant: "default",
|
|
24
|
+
defaultChecked: false,
|
|
25
|
+
onCheckedChange: function (checked) {
|
|
26
|
+
return console.log("Switch is ".concat(checked ? "on" : "off"));
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
_Switch.argTypes = {
|
|
30
|
+
variant: {
|
|
31
|
+
control: { type: "select" },
|
|
32
|
+
options: Object.keys(variant),
|
|
33
|
+
description: "Switch variant",
|
|
34
|
+
table: {
|
|
35
|
+
defaultValue: { summary: "default" },
|
|
36
|
+
type: { summary: "string" },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
size: {
|
|
40
|
+
control: { type: "select" },
|
|
41
|
+
options: Object.keys(size),
|
|
42
|
+
description: "Switch size",
|
|
43
|
+
table: {
|
|
44
|
+
defaultValue: { summary: "md" },
|
|
45
|
+
type: { summary: "string" },
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
defaultChecked: {
|
|
49
|
+
control: { type: "boolean" },
|
|
50
|
+
description: "Initial checked state for uncontrolled switch",
|
|
51
|
+
table: {
|
|
52
|
+
defaultValue: { summary: "false" },
|
|
53
|
+
type: { summary: "boolean" },
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
checked: {
|
|
57
|
+
control: { type: "boolean" },
|
|
58
|
+
description: "Controlled checked state (e.g., checked={field.value} for form libraries)",
|
|
59
|
+
table: {
|
|
60
|
+
type: { summary: "boolean" },
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
onCheckedChange: {
|
|
64
|
+
action: "checked changed",
|
|
65
|
+
description: "Callback function when switch state changes",
|
|
66
|
+
table: {
|
|
67
|
+
type: { summary: "(checked: boolean) => void" },
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
disabled: {
|
|
71
|
+
control: { type: "boolean" },
|
|
72
|
+
description: "Disables the switch",
|
|
73
|
+
table: {
|
|
74
|
+
defaultValue: { summary: "false" },
|
|
75
|
+
type: { summary: "boolean" },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Dummy_Title } from "../../utils/constants";
|
|
3
|
+
import TitleStyles from "./Title.module.css";
|
|
4
|
+
var Title = function (_a) {
|
|
5
|
+
var _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.children, children = _c === void 0 ? Dummy_Title : _c;
|
|
6
|
+
return (_jsx("h2", { className: "".concat(TitleStyles["main-title"], " ").concat(className), children: children }));
|
|
7
|
+
};
|
|
8
|
+
export default Title;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.main-title {
|
|
3
|
+
position: relative;
|
|
4
|
+
z-index: 10;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-align: center;
|
|
7
|
+
font-size: var(--text-3xl, 1.875rem);
|
|
8
|
+
line-height: var(--tw-leading, var(--text-3xl--line-height, calc(2.25 / 1.875)));
|
|
9
|
+
--tw-font-weight: var(--font-weight-bold, 700);
|
|
10
|
+
font-weight: var(--font-weight-bold, 700);
|
|
11
|
+
color: var(--color-black, #000);
|
|
12
|
+
text-transform: capitalize;
|
|
13
|
+
@media (width >= 40rem) {
|
|
14
|
+
font-size: var(--text-4xl, 2.25rem);
|
|
15
|
+
line-height: var(--tw-leading, var(--text-4xl--line-height, calc(2.5 / 2.25)));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.main-title::before,
|
|
19
|
+
.main-title::after {
|
|
20
|
+
content: "";
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: calc(1/2 * 100%);
|
|
23
|
+
display: none;
|
|
24
|
+
height: 1px;
|
|
25
|
+
width: calc(1/2 * 100%);
|
|
26
|
+
background-color: var(--color-black, #000);
|
|
27
|
+
@media (width >= 64rem) {
|
|
28
|
+
display: block;
|
|
29
|
+
}
|
|
30
|
+
transform: translateY(-50%);
|
|
31
|
+
}
|
|
32
|
+
.main-title::before {
|
|
33
|
+
left: calc(var(--spacing, 0.25rem) * 0);
|
|
34
|
+
margin-left: -15%;
|
|
35
|
+
}
|
|
36
|
+
.main-title::after {
|
|
37
|
+
right: calc(var(--spacing, 0.25rem) * 0);
|
|
38
|
+
margin-right: -15%;
|
|
39
|
+
}
|
|
40
|
+
@property --tw-font-weight {
|
|
41
|
+
syntax: "*";
|
|
42
|
+
inherits: false;
|
|
43
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __assign = (this && this.__assign) || function () {
|
|
3
2
|
__assign = Object.assign || function(t) {
|
|
4
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -10,17 +9,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
9
|
};
|
|
11
10
|
return __assign.apply(this, arguments);
|
|
12
11
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports._Title = void 0;
|
|
18
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var constants_1 = require("../../utils/constants");
|
|
20
|
-
var Title_1 = __importDefault(require("./Title"));
|
|
21
|
-
exports.default = {
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { Dummy_Title } from "../../utils/constants";
|
|
14
|
+
import Title from "./Title";
|
|
15
|
+
export default {
|
|
22
16
|
title: "Components/Title",
|
|
23
|
-
component:
|
|
17
|
+
component: Title,
|
|
24
18
|
parameters: {
|
|
25
19
|
docs: {
|
|
26
20
|
description: {
|
|
@@ -47,9 +41,9 @@ exports.default = {
|
|
|
47
41
|
},
|
|
48
42
|
},
|
|
49
43
|
};
|
|
50
|
-
var Template = function (args) { return (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
children:
|
|
44
|
+
var Template = function (args) { return _jsx(Title, __assign({}, args)); };
|
|
45
|
+
export var _Title = Template.bind({});
|
|
46
|
+
_Title.args = {
|
|
47
|
+
children: Dummy_Title,
|
|
54
48
|
className: "",
|
|
55
49
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render, screen } from "@testing-library/react";
|
|
3
|
+
import { Dummy_Title } from "../../utils/constants";
|
|
4
|
+
import Title from "./Title";
|
|
5
|
+
describe("Title Component", function () {
|
|
6
|
+
it("renders with default props", function () {
|
|
7
|
+
render(_jsx(Title, {}));
|
|
8
|
+
expect(screen.getByText(Dummy_Title)).toBeInTheDocument();
|
|
9
|
+
});
|
|
10
|
+
it("renders with custom children", function () {
|
|
11
|
+
var customText = "Custom Title";
|
|
12
|
+
render(_jsx(Title, { children: customText }));
|
|
13
|
+
expect(screen.getByText(customText)).toBeInTheDocument();
|
|
14
|
+
});
|
|
15
|
+
it("applies custom className", function () {
|
|
16
|
+
var customClass = "custom-class";
|
|
17
|
+
render(_jsx(Title, { className: customClass }));
|
|
18
|
+
var titleElement = screen.getByText(Dummy_Title);
|
|
19
|
+
expect(titleElement).toHaveClass("main-title custom-class");
|
|
20
|
+
});
|
|
21
|
+
it("renders without crashing", function () {
|
|
22
|
+
var container = render(_jsx(Title, {})).container;
|
|
23
|
+
expect(container).toBeDefined();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { Typography as ShadTypography } from "../ui/typography";
|
|
25
|
+
var Typography = function (_a) {
|
|
26
|
+
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
27
|
+
return (_jsx(ShadTypography, __assign({ className: className }, props, { children: children })));
|
|
28
|
+
};
|
|
29
|
+
export default Typography;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { TypographyInterface } from "./type";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const _Typography: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, TypographyInterface>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import Typography from "./Typography";
|
|
14
|
+
import { variant } from "../ui/typography";
|
|
15
|
+
import { Dummy_Para } from "../../utils/constants";
|
|
16
|
+
export default {
|
|
17
|
+
title: "Components/Typography",
|
|
18
|
+
component: Typography,
|
|
19
|
+
tags: ["autodocs"],
|
|
20
|
+
};
|
|
21
|
+
var Template = function (args) { return (_jsx(Typography, __assign({}, args))); };
|
|
22
|
+
export var _Typography = Template.bind({});
|
|
23
|
+
_Typography.args = {
|
|
24
|
+
children: Dummy_Para,
|
|
25
|
+
variant: "b4",
|
|
26
|
+
};
|
|
27
|
+
_Typography.argTypes = {
|
|
28
|
+
variant: {
|
|
29
|
+
control: { type: "select" },
|
|
30
|
+
options: Object.keys(variant),
|
|
31
|
+
description: "Typography Variant",
|
|
32
|
+
table: {
|
|
33
|
+
defaultValue: { summary: "b4" },
|
|
34
|
+
type: { summary: "string" },
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { typographyVariants } from "../ui/typography";
|
|
3
|
+
export interface TypographyInterface {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
variant?: Exclude<VariantProps<typeof typographyVariants>["variant"], null>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
+
declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|