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
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
var react_1 = require("@testing-library/react");
|
|
5
|
-
require("@testing-library/jest-dom");
|
|
6
|
-
var TextColor_1 = require("./TextColor");
|
|
7
|
-
describe("TextColor Component", function () {
|
|
8
|
-
it("renders with the default color when no color prop is passed", function () {
|
|
9
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(TextColor_1.TextColor, {}));
|
|
10
|
-
// Select the element
|
|
11
|
-
var textColorElement = react_1.screen.getByText(".lu-text-default");
|
|
12
|
-
// Check if the element has the default color class
|
|
13
|
-
expect(textColorElement).toHaveClass("lu-text-default");
|
|
14
|
-
});
|
|
15
|
-
it("renders with the correct custom color class when color prop is passed", function () {
|
|
16
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(TextColor_1.TextColor, { color: "lu-text-primary" }));
|
|
17
|
-
// Select the element
|
|
18
|
-
var textColorElement = react_1.screen.getByText(".lu-text-primary");
|
|
19
|
-
// Check if the element has the correct color class
|
|
20
|
-
expect(textColorElement).toHaveClass("lu-text-primary");
|
|
21
|
-
});
|
|
22
|
-
it("renders with an empty string for color class when empty string is passed", function () {
|
|
23
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(TextColor_1.TextColor, { color: "" }));
|
|
24
|
-
// Select the element
|
|
25
|
-
var textColorElement = react_1.screen.getByText(".");
|
|
26
|
-
// Check if the element has no additional class (empty string)
|
|
27
|
-
expect(textColorElement).not.toHaveClass();
|
|
28
|
-
});
|
|
29
|
-
it("renders with a non-existent or invalid class when an invalid class is passed", function () {
|
|
30
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(TextColor_1.TextColor, { color: "invalid-color-class" }));
|
|
31
|
-
// Select the element
|
|
32
|
-
var textColorElement = react_1.screen.getByText(".invalid-color-class");
|
|
33
|
-
// Check if the element has the incorrect color class
|
|
34
|
-
expect(textColorElement).toHaveClass("invalid-color-class");
|
|
35
|
-
});
|
|
36
|
-
it("renders the correct text content based on the color prop", function () {
|
|
37
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(TextColor_1.TextColor, { color: "lu-text-success" }));
|
|
38
|
-
// Select the element
|
|
39
|
-
var textColorElement = react_1.screen.getByText(".lu-text-success");
|
|
40
|
-
// Check if the element displays the correct text content
|
|
41
|
-
expect(textColorElement).toHaveTextContent(".lu-text-success");
|
|
42
|
-
});
|
|
43
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IconView = void 0;
|
|
4
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var iconList_1 = require("../../utils/iconList");
|
|
6
|
-
var IconView = function () {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-6 gap-6", "data-testid": "icons-list", children: iconList_1.iconList.map(function (icon, index) {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center justify-center bg-gray-100 lu-border-rounded-lg lu-pd-200 shadow-md hover:bg-gray-200", "data-testid": "single-icon", children: [(0, jsx_runtime_1.jsxs)("svg", { width: "25", height: "25", viewBox: "0 0 32 32", fill: "none", className: "mb-2", role: "img", children: [(0, jsx_runtime_1.jsx)("g", { clipPath: "url(#clip0_9168_14965)", children: (0, jsx_runtime_1.jsx)("path", { "data-testid": "icon-path-".concat(index), d: icon === null || icon === void 0 ? void 0 : icon.path, fill: "#070808" }) }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: "clip0_9168_14965", children: (0, jsx_runtime_1.jsx)("rect", { width: "32", height: "32", fill: "black" }) }) })] }), (0, jsx_runtime_1.jsx)("p", { "data-testid": "icon-label-".concat(index), className: "lu-font-size-x-small lu-font-weight-regular lu-text-gray text-center", children: icon === null || icon === void 0 ? void 0 : icon.label })] }, index));
|
|
9
|
-
}) }) }));
|
|
10
|
-
};
|
|
11
|
-
exports.IconView = IconView;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
var iconList_1 = require("../../utils/iconList");
|
|
5
|
-
var LUIcon = function (_a) {
|
|
6
|
-
var _b;
|
|
7
|
-
var size = _a.size, fill = _a.fill, icon = _a.icon, className = _a.className;
|
|
8
|
-
var selectedIcon = iconList_1.iconList.find(function (item) { return item.key === icon; });
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("svg", { role: "img", "data-testid": "lu-icon", className: "".concat(size, " ").concat(className), viewBox: "0 0 32 32", fill: "none", children: [(0, jsx_runtime_1.jsx)("g", { clipPath: "url(#clip0_9168_14965)", children: (0, jsx_runtime_1.jsx)("path", { "data-testid": "lu-path", d: (_b = selectedIcon === null || selectedIcon === void 0 ? void 0 : selectedIcon.path) !== null && _b !== void 0 ? _b : "", className: "".concat(fill, " icon") }) }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: "clip0_9168_14965", children: (0, jsx_runtime_1.jsx)("rect", { width: "32", height: "32", fill: "black" }) }) })] }) }));
|
|
10
|
-
};
|
|
11
|
-
exports.default = LUIcon;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Icon = void 0;
|
|
18
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var utils_1 = require("../../utils");
|
|
20
|
-
var iconList_1 = require("../../utils/iconList");
|
|
21
|
-
var LUIcon_1 = __importDefault(require("./LUIcon"));
|
|
22
|
-
exports.default = {
|
|
23
|
-
title: "Components/Icon",
|
|
24
|
-
component: LUIcon_1.default,
|
|
25
|
-
tags: ["autodocs"],
|
|
26
|
-
};
|
|
27
|
-
var Template = function (args) { return (0, jsx_runtime_1.jsx)(LUIcon_1.default, __assign({}, args)); };
|
|
28
|
-
exports.Icon = Template.bind({});
|
|
29
|
-
exports.Icon.args = {
|
|
30
|
-
size: "lu-icon-x-small",
|
|
31
|
-
fill: "lu-primary-icon-default",
|
|
32
|
-
icon: iconList_1.iconList[0].key,
|
|
33
|
-
};
|
|
34
|
-
exports.Icon.argTypes = {
|
|
35
|
-
size: {
|
|
36
|
-
control: {
|
|
37
|
-
type: "select",
|
|
38
|
-
labels: Object.fromEntries(utils_1.iconSizeList.map(function (size) { return [size.key, size.label]; })),
|
|
39
|
-
},
|
|
40
|
-
options: utils_1.iconSizeList.map(function (size) { return size.key; }),
|
|
41
|
-
},
|
|
42
|
-
fill: {
|
|
43
|
-
control: {
|
|
44
|
-
type: "select",
|
|
45
|
-
labels: Object.fromEntries(utils_1.iconColorList.map(function (color) { return [color.key, color.label]; })),
|
|
46
|
-
},
|
|
47
|
-
options: utils_1.iconColorList.map(function (color) { return color.key; }),
|
|
48
|
-
},
|
|
49
|
-
icon: {
|
|
50
|
-
control: {
|
|
51
|
-
type: "select",
|
|
52
|
-
labels: Object.fromEntries(iconList_1.iconList.map(function (icon) { return [icon.key, icon.label]; })),
|
|
53
|
-
},
|
|
54
|
-
options: iconList_1.iconList.map(function (icon) { return icon.key; }),
|
|
55
|
-
},
|
|
56
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var react_1 = require("@testing-library/react");
|
|
19
|
-
var LUIcon_1 = __importDefault(require("./LUIcon"));
|
|
20
|
-
var iconList_1 = require("../../utils/iconList");
|
|
21
|
-
describe("LUIcon Component", function () {
|
|
22
|
-
it("renders correctly when a valid icon is provided", function () {
|
|
23
|
-
var props = {
|
|
24
|
-
size: "lu-icon-x-small",
|
|
25
|
-
fill: "lu-primary-icon-default",
|
|
26
|
-
icon: iconList_1.iconList[0].key, // Valid icon
|
|
27
|
-
};
|
|
28
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(LUIcon_1.default, __assign({}, props)));
|
|
29
|
-
// Select the element
|
|
30
|
-
var singleIconElement = react_1.screen.getByTestId("lu-icon");
|
|
31
|
-
expect(singleIconElement).toHaveClass(props.size);
|
|
32
|
-
// Assert that the fill class is applied correctly on the <path>
|
|
33
|
-
var pathElement = react_1.screen.getByTestId("lu-path");
|
|
34
|
-
expect(pathElement).toHaveClass(props.fill);
|
|
35
|
-
var selectedIcon = iconList_1.iconList.find(function (icon) { return icon.key === props.icon; });
|
|
36
|
-
expect(pathElement).toHaveAttribute("d", (selectedIcon === null || selectedIcon === void 0 ? void 0 : selectedIcon.path) || "");
|
|
37
|
-
});
|
|
38
|
-
it("renders correctly when an invalid icon is provided", function () {
|
|
39
|
-
var props = {
|
|
40
|
-
size: "lu-icon-x-small",
|
|
41
|
-
fill: "lu-primary-icon-default",
|
|
42
|
-
icon: "non-existent-icon", // Invalid icon
|
|
43
|
-
};
|
|
44
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(LUIcon_1.default, __assign({}, props)));
|
|
45
|
-
var svgElement = react_1.screen.getByTestId("lu-icon");
|
|
46
|
-
expect(svgElement).toBeInTheDocument();
|
|
47
|
-
var pathElement = react_1.screen.getByTestId("lu-path");
|
|
48
|
-
expect(pathElement).toBeInTheDocument();
|
|
49
|
-
expect(pathElement).toHaveClass(props.fill);
|
|
50
|
-
// Since the icon does not exist, path should be an empty string
|
|
51
|
-
expect(pathElement).toHaveAttribute("d", "");
|
|
52
|
-
});
|
|
53
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LuImage = void 0;
|
|
7
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
var image_1 = __importDefault(require("next/image"));
|
|
9
|
-
var LuImage = function (_a) {
|
|
10
|
-
var image = _a.image, _b = _a.aspectRatio, aspectRatio = _b === void 0 ? "" : _b, _c = _a.width, width = _c === void 0 ? 240 : _c, _d = _a.height, height = _d === void 0 ? 240 : _d, _e = _a.className, className = _e === void 0 ? "" : _e;
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)(image_1.default, { src: image ? image : "", alt: "Image", width: width, height: height, className: "".concat(aspectRatio, " ").concat(className) }));
|
|
12
|
-
};
|
|
13
|
-
exports.LuImage = LuImage;
|
|
14
|
-
exports.default = exports.LuImage;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports._Image = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var LuImage_1 = require("./LuImage");
|
|
17
|
-
var utils_1 = require("../../utils");
|
|
18
|
-
var enums_1 = require("../../utils/enums");
|
|
19
|
-
exports.default = {
|
|
20
|
-
title: "Components/Image",
|
|
21
|
-
component: LuImage_1.LuImage,
|
|
22
|
-
};
|
|
23
|
-
var Template = function (args, _a) {
|
|
24
|
-
var argTypes = _a.argTypes;
|
|
25
|
-
//Show aspectRatio options based on orientation(landscape)
|
|
26
|
-
var isLandscape = args.orientation === enums_1.OrientationEnum.horizontal;
|
|
27
|
-
argTypes.aspectRatio.options = isLandscape
|
|
28
|
-
? utils_1.landscapeAspectRatioList.map(function (ratio) { return ratio.key; })
|
|
29
|
-
: utils_1.portraitAspectRatioList.map(function (ratio) { return ratio.key; });
|
|
30
|
-
argTypes.aspectRatio.control.labels =
|
|
31
|
-
Object.fromEntries((isLandscape ? utils_1.landscapeAspectRatioList : utils_1.portraitAspectRatioList).map(function (ratio) { return [ratio.key, ratio.label]; }));
|
|
32
|
-
return (0, jsx_runtime_1.jsx)(LuImage_1.LuImage, __assign({}, args));
|
|
33
|
-
};
|
|
34
|
-
exports._Image = Template.bind({});
|
|
35
|
-
exports._Image.args = {
|
|
36
|
-
image: "/images/demo-image.jpg",
|
|
37
|
-
aspectRatio: utils_1.portraitAspectRatioList[0].key,
|
|
38
|
-
width: 240,
|
|
39
|
-
height: 240,
|
|
40
|
-
className: "",
|
|
41
|
-
};
|
|
42
|
-
exports._Image.argTypes = {
|
|
43
|
-
orientation: {
|
|
44
|
-
control: { type: "select" },
|
|
45
|
-
options: [enums_1.OrientationEnum.vertical, enums_1.OrientationEnum.horizontal],
|
|
46
|
-
},
|
|
47
|
-
//Show Default aspectRatio options for portrait orientation
|
|
48
|
-
aspectRatio: {
|
|
49
|
-
control: { type: "select" },
|
|
50
|
-
options: utils_1.portraitAspectRatioList.map(function (ratio) { return ratio.key; }),
|
|
51
|
-
labels: Object.fromEntries(utils_1.portraitAspectRatioList.map(function (ratio) { return [ratio.key, ratio.label]; })),
|
|
52
|
-
},
|
|
53
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom";
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
-
var react_1 = require("@testing-library/react");
|
|
16
|
-
require("@testing-library/jest-dom");
|
|
17
|
-
var LuImage_1 = require("./LuImage");
|
|
18
|
-
describe("Image Component", function () {
|
|
19
|
-
it("renders the Image component with the provided image src", function () {
|
|
20
|
-
var props = {
|
|
21
|
-
image: "/images/demo-image.jpg",
|
|
22
|
-
aspectRatio: "aspect-ratio-16-9",
|
|
23
|
-
className: "custom-class",
|
|
24
|
-
};
|
|
25
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(LuImage_1.LuImage, __assign({}, props)));
|
|
26
|
-
var imgElement = react_1.screen.getByRole("img");
|
|
27
|
-
expect(imgElement).toBeInTheDocument();
|
|
28
|
-
expect(imgElement).toHaveAttribute("src", expect.stringContaining("")); // Empty src fallback
|
|
29
|
-
expect(imgElement).toHaveAttribute("alt", "Image");
|
|
30
|
-
expect(imgElement).toHaveClass(props.aspectRatio);
|
|
31
|
-
expect(imgElement).toHaveClass(props.className);
|
|
32
|
-
});
|
|
33
|
-
it("renders an empty src when no image is provided", function () {
|
|
34
|
-
var props = {
|
|
35
|
-
image: "",
|
|
36
|
-
aspectRatio: "aspect-ratio-16-9",
|
|
37
|
-
className: "",
|
|
38
|
-
};
|
|
39
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(LuImage_1.LuImage, __assign({}, props)));
|
|
40
|
-
var imgElement = react_1.screen.getByRole("img");
|
|
41
|
-
expect(imgElement).toBeInTheDocument();
|
|
42
|
-
expect(imgElement).not.toHaveAttribute("src");
|
|
43
|
-
expect(imgElement).toHaveAttribute("alt", "Image");
|
|
44
|
-
expect(imgElement).toHaveClass(props.aspectRatio);
|
|
45
|
-
});
|
|
46
|
-
it("applies default aspect ratio and className when provided", function () {
|
|
47
|
-
var props = {
|
|
48
|
-
image: "/images/demo-image.jpg",
|
|
49
|
-
aspectRatio: "aspect-ratio-4-3",
|
|
50
|
-
className: "custom-class",
|
|
51
|
-
};
|
|
52
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(LuImage_1.LuImage, __assign({}, props)));
|
|
53
|
-
var imgElement = react_1.screen.getByRole("img");
|
|
54
|
-
expect(imgElement).toHaveClass(props.aspectRatio);
|
|
55
|
-
expect(imgElement).toHaveClass(props.className);
|
|
56
|
-
});
|
|
57
|
-
it("does not apply additional classes if className is not provided", function () {
|
|
58
|
-
var props = {
|
|
59
|
-
image: "/images/demo-image.jpg",
|
|
60
|
-
aspectRatio: "aspect-ratio-16-9",
|
|
61
|
-
className: "",
|
|
62
|
-
};
|
|
63
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(LuImage_1.LuImage, __assign({}, props)));
|
|
64
|
-
var imgElement = react_1.screen.getByRole("img");
|
|
65
|
-
expect(imgElement).toHaveClass(props.aspectRatio);
|
|
66
|
-
expect(imgElement).not.toHaveClass("custom-class");
|
|
67
|
-
});
|
|
68
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
-
var PostByCategory_1 = require("./PostByCategory/PostByCategory");
|
|
16
|
-
var colors_1 = require("../../utils/colors");
|
|
17
|
-
var utils_1 = require("../../utils");
|
|
18
|
-
var ContactProfile_1 = require("./ContactProfile/ContactProfile");
|
|
19
|
-
var index_1 = require("./index");
|
|
20
|
-
var enums_1 = require("../../utils/enums");
|
|
21
|
-
var Card = function (_a) {
|
|
22
|
-
var _b = _a.type, type = _b === void 0 ? index_1.SectionTypeEnum.postByCategoriesTheme : _b, _c = _a.layout, layout = _c === void 0 ? enums_1.OrientationEnum.horizontal : _c, _d = _a.id, id = _d === void 0 ? 1 : _d, _e = _a.className, className = _e === void 0 ? "" : _e, _f = _a.image, image = _f === void 0 ? utils_1.defaultCardProps.image : _f, _g = _a.mediaPosition, mediaPosition = _g === void 0 ? "" : _g, _h = _a.heading, heading = _h === void 0 ? utils_1.defaultCardProps.heading : _h, _j = _a.body, body = _j === void 0 ? utils_1.defaultCardProps.body : _j, _k = _a.href, href = _k === void 0 ? utils_1.defaultCardProps.href : _k, _l = _a.btnLabel, btnLabel = _l === void 0 ? utils_1.defaultCardProps.btnLabel : _l, _m = _a.cardStyle, cardStyle = _m === void 0 ? {
|
|
23
|
-
card_title_color: colors_1.colors.default,
|
|
24
|
-
card_description_color: colors_1.colors.caption_color,
|
|
25
|
-
card_shadow_toggle: 1,
|
|
26
|
-
card_shadow_color: "rgba(52, 52, 52, 0.15)",
|
|
27
|
-
card_background_color: colors_1.colors.white,
|
|
28
|
-
card_button_background_color: colors_1.colors.gray,
|
|
29
|
-
card_button_text_color: colors_1.colors.default,
|
|
30
|
-
card_image_border_color: colors_1.colors === null || colors_1.colors === void 0 ? void 0 : colors_1.colors.default,
|
|
31
|
-
card_image_border_radius: "0",
|
|
32
|
-
card_image_border: "0",
|
|
33
|
-
} : _m;
|
|
34
|
-
var data = {
|
|
35
|
-
id: id,
|
|
36
|
-
image: image,
|
|
37
|
-
layout: layout,
|
|
38
|
-
mediaPosition: mediaPosition,
|
|
39
|
-
heading: heading,
|
|
40
|
-
body: body,
|
|
41
|
-
className: className,
|
|
42
|
-
btnLabel: btnLabel,
|
|
43
|
-
href: href,
|
|
44
|
-
cardStyle: cardStyle,
|
|
45
|
-
};
|
|
46
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [type === index_1.SectionTypeEnum.postByCategoriesTheme && ((0, jsx_runtime_1.jsx)(PostByCategory_1.PostByCategory, __assign({}, data))), type === index_1.SectionTypeEnum.contactsProfileTheme && ((0, jsx_runtime_1.jsx)(ContactProfile_1.ContactProfile, __assign({}, data)))] }));
|
|
47
|
-
};
|
|
48
|
-
exports.default = Card;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports._Card = void 0;
|
|
18
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var Card_1 = __importDefault(require("./Card"));
|
|
20
|
-
var utils_1 = require("../../utils");
|
|
21
|
-
var colors_1 = require("../../utils/colors");
|
|
22
|
-
var _1 = require(".");
|
|
23
|
-
var enums_1 = require("../../utils/enums");
|
|
24
|
-
exports.default = {
|
|
25
|
-
title: "Components/Card",
|
|
26
|
-
component: Card_1.default,
|
|
27
|
-
};
|
|
28
|
-
var Template = function (args) { return (0, jsx_runtime_1.jsx)(Card_1.default, __assign({}, args)); };
|
|
29
|
-
exports._Card = Template.bind({});
|
|
30
|
-
exports._Card.args = {
|
|
31
|
-
type: _1.SectionTypeEnum.postByCategoriesTheme,
|
|
32
|
-
image: "/images/demo-image.jpg",
|
|
33
|
-
heading: "Heading Text",
|
|
34
|
-
body: "The quick brown fox jumps over the lazy dog.",
|
|
35
|
-
layout: enums_1.OrientationEnum.horizontal,
|
|
36
|
-
btnLabel: "View More",
|
|
37
|
-
href: "https://www.google.com/",
|
|
38
|
-
cardStyle: {
|
|
39
|
-
card_title_color: colors_1.colors.default,
|
|
40
|
-
card_description_color: colors_1.colors.caption_color,
|
|
41
|
-
card_shadow_toggle: 1,
|
|
42
|
-
card_shadow_color: "rgba(52, 52, 52, 0.15)",
|
|
43
|
-
card_background_color: colors_1.colors.white,
|
|
44
|
-
card_button_background_color: colors_1.colors.gray,
|
|
45
|
-
card_button_text_color: colors_1.colors.default,
|
|
46
|
-
},
|
|
47
|
-
id: 1,
|
|
48
|
-
};
|
|
49
|
-
exports._Card.argTypes = {
|
|
50
|
-
layout: {
|
|
51
|
-
control: { type: "select" },
|
|
52
|
-
options: [enums_1.OrientationEnum.horizontal, enums_1.OrientationEnum.vertical],
|
|
53
|
-
},
|
|
54
|
-
type: {
|
|
55
|
-
control: {
|
|
56
|
-
type: "select",
|
|
57
|
-
labels: Object.fromEntries(utils_1.sectionTypeList.map(function (type) { return [type.key, type.label]; })),
|
|
58
|
-
},
|
|
59
|
-
options: utils_1.sectionTypeList.map(function (type) { return type.key; }),
|
|
60
|
-
},
|
|
61
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
var react_1 = require("@testing-library/react");
|
|
8
|
-
require("@testing-library/jest-dom");
|
|
9
|
-
var Card_1 = __importDefault(require("./Card"));
|
|
10
|
-
var index_1 = require("./index");
|
|
11
|
-
jest.mock("./PostByCategory/PostByCategory", function () { return ({
|
|
12
|
-
PostByCategory: jest.fn(function () { return (0, jsx_runtime_1.jsx)("div", { children: "PostByCategory Component" }); }),
|
|
13
|
-
}); });
|
|
14
|
-
jest.mock("./ContactProfile/ContactProfile", function () { return ({
|
|
15
|
-
ContactProfile: jest.fn(function () { return (0, jsx_runtime_1.jsx)("div", { children: "ContactProfile Component" }); }),
|
|
16
|
-
}); });
|
|
17
|
-
describe("Card Component", function () {
|
|
18
|
-
it("renders ContactProfile when no prop pass", function () {
|
|
19
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Card_1.default, {}));
|
|
20
|
-
// Check that the PostByCategory component is rendered
|
|
21
|
-
expect(react_1.screen.getByText("PostByCategory Component")).toBeInTheDocument();
|
|
22
|
-
});
|
|
23
|
-
it("renders PostByCategory when type is postByCategoriesTheme", function () {
|
|
24
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Card_1.default, { type: index_1.SectionTypeEnum.postByCategoriesTheme }));
|
|
25
|
-
// Check that the PostByCategory component is rendered
|
|
26
|
-
expect(react_1.screen.getByText("PostByCategory Component")).toBeInTheDocument();
|
|
27
|
-
});
|
|
28
|
-
it("renders ContactProfile when type is contactsProfileTheme", function () {
|
|
29
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Card_1.default, { type: index_1.SectionTypeEnum.contactsProfileTheme }));
|
|
30
|
-
// Check that the ContactProfile component is rendered
|
|
31
|
-
expect(react_1.screen.getByText("ContactProfile Component")).toBeInTheDocument();
|
|
32
|
-
});
|
|
33
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ContactProfile = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var ContactProfileTheme1_1 = require("./ContactProfileTheme1");
|
|
17
|
-
var ContactProfileTheme2_1 = require("./ContactProfileTheme2");
|
|
18
|
-
var scripts_1 = require("../../../app/scripts");
|
|
19
|
-
var colors_1 = require("../../../utils/colors");
|
|
20
|
-
var enums_1 = require("../../../utils/enums");
|
|
21
|
-
var ContactProfile = function (props) {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [props.layout === enums_1.OrientationEnum.horizontal ? ((0, jsx_runtime_1.jsx)(ContactProfileTheme1_1.ContactProfileTheme1, __assign({}, props))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(ContactProfileTheme2_1.ContactProfileTheme2, __assign({}, props)) })), (0, jsx_runtime_1.jsx)("style", { jsx: true, global: true, children: "\n .card_ContactProfile_title_color_".concat(props.id, " {\n color: ").concat((0, scripts_1.getColor)((_a = props.cardStyle) === null || _a === void 0 ? void 0 : _a.card_title_color, colors_1.colors === null || colors_1.colors === void 0 ? void 0 : colors_1.colors.default), ";\n }\n .card_ContactProfile_designation_color_").concat(props.id, " {\n color: ").concat((0, scripts_1.getColor)((_b = props.cardStyle) === null || _b === void 0 ? void 0 : _b.card_description_color, colors_1.colors.caption_color), ";\n }\n .card_shadow_ContactProfile_").concat(props.id, " {\n box-shadow: ").concat(((_c = props.cardStyle) === null || _c === void 0 ? void 0 : _c.card_shadow_toggle) === 1
|
|
24
|
-
? "0px 4px 12px 0px ".concat((0, scripts_1.getColor)((_d = props.cardStyle) === null || _d === void 0 ? void 0 : _d.card_shadow_color, "rgba(52, 52, 52, 0.15)"))
|
|
25
|
-
: "0px 4px 12px 0px rgba(52, 52, 52, 0.15)", ";\n }\n .card_bg_ContactProfile_").concat(props.id, " {\n background-color: ").concat((0, scripts_1.getColor)((_e = props.cardStyle) === null || _e === void 0 ? void 0 : _e.card_background_color, colors_1.colors.white), " !important;\n }\n .card_ContactProfile_btn_").concat(props.id, " {\n background-color: ").concat((0, scripts_1.getColor)((_f = props.cardStyle) === null || _f === void 0 ? void 0 : _f.card_button_background_color, colors_1.colors.gray), " !important;\n color: ").concat((0, scripts_1.getColor)((_g = props.cardStyle) === null || _g === void 0 ? void 0 : _g.card_button_text_color, colors_1.colors.neutral), " !important;\n fill: ").concat((0, scripts_1.getColor)((_h = props.cardStyle) === null || _h === void 0 ? void 0 : _h.card_button_text_color, colors_1.colors.neutral), " !important;\n }\n .card_ContactProfile_btn_").concat(props.id, ":hover {\n background-color: ").concat((0, scripts_1.getColor)((_j = props.cardStyle) === null || _j === void 0 ? void 0 : _j.card_button_background_color, colors_1.colors.gray), " !important;\n color: ").concat((0, scripts_1.getColor)((_k = props.cardStyle) === null || _k === void 0 ? void 0 : _k.card_button_text_color, colors_1.colors.neutral), " !important;\n fill: ").concat((0, scripts_1.getColor)((_l = props.cardStyle) === null || _l === void 0 ? void 0 : _l.card_button_text_color, colors_1.colors.neutral), " !important;\n }\n ") })] }));
|
|
26
|
-
};
|
|
27
|
-
exports.ContactProfile = ContactProfile;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ContactProfileTheme1 = void 0;
|
|
7
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
var Button_1 = require("../../../components/Button/Button");
|
|
9
|
-
var LuImage_1 = require("../../../components/Images/LuImage");
|
|
10
|
-
var link_1 = __importDefault(require("next/link"));
|
|
11
|
-
var card_module_css_1 = __importDefault(require("../card.module.css"));
|
|
12
|
-
var enums_1 = require("../../../utils/enums");
|
|
13
|
-
var ContactProfileTheme1 = function (props) {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", { "data-testid": "contact-profile-theme1", className: "lu-pd-250 card_bg_ContactProfile_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_ContactProfile_").concat(props.id), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-x-5", children: [(0, jsx_runtime_1.jsx)("div", { className: "max-w-[240px] overflow-hidden lu-aspect-square ".concat(card_module_css_1.default.horizontal_card_image), children: (0, jsx_runtime_1.jsx)(LuImage_1.LuImage, { image: props.image, aspectRatio: "", width: 160, height: 160, className: "lu-border-rounded-full lu-height-100 object-cover" }) }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-1 flex-col", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-center flex-1 lu-height-100", children: [(0, jsx_runtime_1.jsx)("div", { className: "card_ContactProfile_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(card_module_css_1.default.horizontal_card_heading), children: props.heading }), (0, jsx_runtime_1.jsx)("p", { className: "lu-base-font-size lu-font-weight-extra-light card_ContactProfile_designation_color_".concat(props.id, " ").concat(card_module_css_1.default.horizontal_body_text), children: props.body })] }) })] }), (0, jsx_runtime_1.jsx)(link_1.default, { href: props.href || "", passHref: true, className: "lu-width-100 lu-text-decoration-none", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { contentType: enums_1.ContentType.text_with_icon, label: props.btnLabel, variant: "card_ContactProfile_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 lu-mt-200 ".concat(card_module_css_1.default.card_button, " card_ContactProfile_btn_").concat(props.id) }) })] }));
|
|
15
|
-
};
|
|
16
|
-
exports.ContactProfileTheme1 = ContactProfileTheme1;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ContactProfileTheme2 = void 0;
|
|
7
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
var Button_1 = require("../../../components/Button/Button");
|
|
9
|
-
var LuImage_1 = require("../../../components/Images/LuImage");
|
|
10
|
-
var link_1 = __importDefault(require("next/link"));
|
|
11
|
-
var card_module_css_1 = __importDefault(require("../card.module.css"));
|
|
12
|
-
var enums_1 = require("../../../utils/enums");
|
|
13
|
-
var ContactProfileTheme2 = function (props) {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", { "data-testid": "contact-profile-theme2", className: "lu-pd-400 card_bg_ContactProfile_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_ContactProfile_").concat(props.id, " flex flex-col items-center"), children: [(0, jsx_runtime_1.jsx)("div", { className: "max-w-[160px] overflow-hidden lu-aspect-square", children: (0, jsx_runtime_1.jsx)(LuImage_1.LuImage, { image: props.image, width: 160, height: 160, className: "lu-height-100 object-cover lu-border-rounded-full", orientation: props.mediaPosition }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]", children: [(0, jsx_runtime_1.jsx)("div", { className: "card_ContactProfile_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(card_module_css_1.default.vertical_card_heading), children: props.heading }), (0, jsx_runtime_1.jsx)("p", { className: "lu-base-font-size lu-font-weight-extra-light card_ContactProfile_designation_color_".concat(props.id, " ").concat(card_module_css_1.default.vertical_body_text), children: props.body })] }), (0, jsx_runtime_1.jsx)(link_1.default, { href: props.href || "", passHref: true, className: "lu-width-100 lu-text-decoration-none", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { contentType: enums_1.ContentType.text_with_icon, label: props.btnLabel, variant: "card_ContactProfile_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 card_ContactProfile_btn_".concat(props.id) }) })] }));
|
|
15
|
-
};
|
|
16
|
-
exports.ContactProfileTheme2 = ContactProfileTheme2;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PostByCategory = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var colors_1 = require("../../../utils/colors");
|
|
17
|
-
var scripts_1 = require("../../../app/scripts");
|
|
18
|
-
var PostByCategoryTheme1_1 = require("./PostByCategoryTheme1");
|
|
19
|
-
var PostByCategoryTheme2_1 = require("./PostByCategoryTheme2");
|
|
20
|
-
var enums_1 = require("../../../utils/enums");
|
|
21
|
-
var PostByCategory = function (props) {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [props.layout === enums_1.OrientationEnum.horizontal ? ((0, jsx_runtime_1.jsx)(PostByCategoryTheme1_1.PostByCategoryTheme1, __assign({}, props))) : ((0, jsx_runtime_1.jsx)(PostByCategoryTheme2_1.PostByCategoryTheme2, __assign({}, props))), (0, jsx_runtime_1.jsx)("style", { jsx: true, global: true, children: "\n .card_PostByCategory_title_color_".concat(props.id, " {\n color: ").concat((0, scripts_1.getColor)((_a = props.cardStyle) === null || _a === void 0 ? void 0 : _a.card_title_color, colors_1.colors === null || colors_1.colors === void 0 ? void 0 : colors_1.colors.default), ";\n }\n .card_PostByCategory_description_color_").concat(props.id, " {\n color: ").concat((0, scripts_1.getColor)((_b = props.cardStyle) === null || _b === void 0 ? void 0 : _b.card_description_color, colors_1.colors.caption_color), ";\n }\n .card_shadow_PostByCategory_").concat(props.id, " {\n box-shadow: ").concat(((_c = props.cardStyle) === null || _c === void 0 ? void 0 : _c.card_shadow_toggle) === 1
|
|
24
|
-
? "0px 4px 12px 0px ".concat((0, scripts_1.getColor)((_d = props.cardStyle) === null || _d === void 0 ? void 0 : _d.card_shadow_color, "rgba(52, 52, 52, 0.15)"))
|
|
25
|
-
: "0px 4px 12px 0px rgba(52, 52, 52, 0.15)", ";\n }\n .card_bg_PostByCategory_").concat(props.id, " {\n background-color: ").concat((0, scripts_1.getColor)((_e = props.cardStyle) === null || _e === void 0 ? void 0 : _e.card_background_color, colors_1.colors.white), " !important;\n }\n .card_PostByCategory_btn_").concat(props.id, " {\n background-color: ").concat((0, scripts_1.getColor)((_f = props.cardStyle) === null || _f === void 0 ? void 0 : _f.card_button_background_color, colors_1.colors.gray), " !important;\n color: ").concat((0, scripts_1.getColor)((_g = props.cardStyle) === null || _g === void 0 ? void 0 : _g.card_button_text_color, colors_1.colors.neutral), " !important;\n fill: ").concat((0, scripts_1.getColor)((_h = props.cardStyle) === null || _h === void 0 ? void 0 : _h.card_button_text_color, colors_1.colors.neutral), " !important;\n }\n .card_PostByCategory_btn_").concat(props.id, ":hover {\n background-color: ").concat((0, scripts_1.getColor)((_j = props.cardStyle) === null || _j === void 0 ? void 0 : _j.card_button_background_color, colors_1.colors.gray), " !important;\n color: ").concat((0, scripts_1.getColor)((_k = props.cardStyle) === null || _k === void 0 ? void 0 : _k.card_button_text_color, colors_1.colors.neutral), " !important;\n fill: ").concat((0, scripts_1.getColor)((_l = props.cardStyle) === null || _l === void 0 ? void 0 : _l.card_button_text_color, colors_1.colors.neutral), " !important;\n }\n .card_PostByCategory_theme2_image_").concat(props === null || props === void 0 ? void 0 : props.id, " {\n border-color: ").concat((0, scripts_1.getColor)((_m = props.cardStyle) === null || _m === void 0 ? void 0 : _m.card_image_border_color, colors_1.colors === null || colors_1.colors === void 0 ? void 0 : colors_1.colors.default), " !important;\n border-radius: ").concat((0, scripts_1.ensureValue)((_o = props.cardStyle) === null || _o === void 0 ? void 0 : _o.card_image_border_radius, "0"), "%;\n border: ").concat((0, scripts_1.ensureValue)((_p = props.cardStyle) === null || _p === void 0 ? void 0 : _p.card_image_border, "0"), "px\n solid;\n }\n ") })] }));
|
|
26
|
-
};
|
|
27
|
-
exports.PostByCategory = PostByCategory;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PostByCategoryTheme1 = void 0;
|
|
7
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
var LuImage_1 = require("../../../components/Images/LuImage");
|
|
9
|
-
var link_1 = __importDefault(require("next/link"));
|
|
10
|
-
var Button_1 = require("../../../components/Button/Button");
|
|
11
|
-
var card_module_css_1 = __importDefault(require("../card.module.css"));
|
|
12
|
-
var enums_1 = require("../../../utils/enums");
|
|
13
|
-
var PostByCategoryTheme1 = function (props) {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", { "data-testid": "postByCategory-theme1", className: "lu-pd-250 card_bg_PostByCategory_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_PostByCategory_").concat(props.id, " flex gap-x-[20px] lu-width-100"), children: [(0, jsx_runtime_1.jsx)("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square horizontal_card_image", children: (0, jsx_runtime_1.jsx)(LuImage_1.LuImage, { image: props.image, width: 240, height: 240, className: "lu-border-rounded-lg lu-width-100 lu-height-100 object-cover", orientation: props.mediaPosition }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-1 flex-col", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-center flex-1 h-full", children: [(0, jsx_runtime_1.jsx)("div", { className: "card_PostByCategory_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(card_module_css_1.default.horizontal_card_heading), children: props.heading }), (0, jsx_runtime_1.jsx)("p", { className: "card_PostByCategory_description_color_".concat(props.id, " lu-base-font-size lu-font-weight-extra-light ").concat(card_module_css_1.default.horizontal_body_text), children: props.body })] }), (0, jsx_runtime_1.jsx)(link_1.default, { href: props.href || "", passHref: true, className: "lu-width-100 lu-text-decoration-none", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { contentType: enums_1.ContentType.text_with_icon, label: props.btnLabel, variant: "card_PostByCategory_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 ".concat(card_module_css_1.default.card_button, " card_PostByCategory_btn_").concat(props.id) }) })] })] }));
|
|
15
|
-
};
|
|
16
|
-
exports.PostByCategoryTheme1 = PostByCategoryTheme1;
|