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,56 +0,0 @@
|
|
|
1
|
-
.main-title {
|
|
2
|
-
position: relative;
|
|
3
|
-
z-index: 10;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
text-align: center;
|
|
6
|
-
text-transform: capitalize;
|
|
7
|
-
font-size: var(--core-400);
|
|
8
|
-
font-weight: bold;
|
|
9
|
-
line-height: 1;
|
|
10
|
-
color: var(--black);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@media (min-width: 640px) {
|
|
14
|
-
|
|
15
|
-
.main-title {
|
|
16
|
-
font-size: var(--core-450);
|
|
17
|
-
font-weight: bold;
|
|
18
|
-
line-height: 1;
|
|
19
|
-
color: var(--black);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.main-title::before,
|
|
24
|
-
.main-title::after {
|
|
25
|
-
content: "";
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: 50%;
|
|
28
|
-
display: none;
|
|
29
|
-
height: 1px;
|
|
30
|
-
width: 50%;
|
|
31
|
-
--tw-bg-opacity: 1;
|
|
32
|
-
background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@media (min-width: 1024px) {
|
|
36
|
-
|
|
37
|
-
.main-title::before,
|
|
38
|
-
.main-title::after {
|
|
39
|
-
display: block;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.main-title::before,
|
|
44
|
-
.main-title::after {
|
|
45
|
-
transform: translateY(-50%);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.main-title::before {
|
|
49
|
-
left: 0px;
|
|
50
|
-
margin-left: -15%;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.main-title::after {
|
|
54
|
-
right: 0px;
|
|
55
|
-
margin-right: -15%;
|
|
56
|
-
}
|
|
@@ -1,30 +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
|
-
var constants_1 = require("../../utils/constants");
|
|
9
|
-
var Title_1 = __importDefault(require("./Title"));
|
|
10
|
-
describe("Title Component", function () {
|
|
11
|
-
it("renders with default props", function () {
|
|
12
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Title_1.default, {}));
|
|
13
|
-
expect(react_1.screen.getByText(constants_1.Dummy_Title)).toBeInTheDocument();
|
|
14
|
-
});
|
|
15
|
-
it("renders with custom children", function () {
|
|
16
|
-
var customText = "Custom Title";
|
|
17
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Title_1.default, { children: customText }));
|
|
18
|
-
expect(react_1.screen.getByText(customText)).toBeInTheDocument();
|
|
19
|
-
});
|
|
20
|
-
it("applies custom className", function () {
|
|
21
|
-
var customClass = "custom-class";
|
|
22
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Title_1.default, { className: customClass }));
|
|
23
|
-
var titleElement = react_1.screen.getByText(constants_1.Dummy_Title);
|
|
24
|
-
expect(titleElement).toHaveClass("main-title custom-class");
|
|
25
|
-
});
|
|
26
|
-
it("renders without crashing", function () {
|
|
27
|
-
var container = (0, react_1.render)((0, jsx_runtime_1.jsx)(Title_1.default, {})).container;
|
|
28
|
-
expect(container).toBeDefined();
|
|
29
|
-
});
|
|
30
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from "@storybook/react";
|
|
2
|
-
import { BodyProps } from "./type";
|
|
3
|
-
declare const _default: Meta<BodyProps>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const _Body: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, BodyProps>;
|
|
6
|
-
export declare const BodyTokens: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,75 +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.BodyTokens = exports._Body = void 0;
|
|
18
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var Table_1 = __importDefault(require("../../../global/components/Table/Table"));
|
|
20
|
-
var _1 = require(".");
|
|
21
|
-
var constants_1 = require("../../../utils/constants");
|
|
22
|
-
var Body_1 = __importDefault(require("./Body"));
|
|
23
|
-
exports.default = {
|
|
24
|
-
title: "Components/Typography/Body",
|
|
25
|
-
component: Body_1.default,
|
|
26
|
-
parameters: {
|
|
27
|
-
docs: {
|
|
28
|
-
description: {
|
|
29
|
-
component: "A configurable body text component with design system-approved styling variants",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
argTypes: {
|
|
34
|
-
body: {
|
|
35
|
-
description: "Typography variant class",
|
|
36
|
-
control: {
|
|
37
|
-
type: "select",
|
|
38
|
-
labels: _1.BODY_CLASSES.reduce(function (acc, curr) {
|
|
39
|
-
var _a;
|
|
40
|
-
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = curr, _a)));
|
|
41
|
-
}, {}),
|
|
42
|
-
},
|
|
43
|
-
options: _1.BODY_CLASSES,
|
|
44
|
-
table: {
|
|
45
|
-
type: { summary: _1.BODY_CLASSES.map(function (item) { return item; }).join(" | ") },
|
|
46
|
-
defaultValue: { summary: _1.BODY_CLASSES[0] },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
label: {
|
|
50
|
-
description: "Text content",
|
|
51
|
-
control: "text",
|
|
52
|
-
table: {
|
|
53
|
-
type: { summary: "string" },
|
|
54
|
-
defaultValue: { summary: constants_1.Dummy_Para },
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
className: {
|
|
58
|
-
description: "Additional CSS classes",
|
|
59
|
-
control: "text",
|
|
60
|
-
table: {
|
|
61
|
-
type: { summary: "string" },
|
|
62
|
-
defaultValue: { summary: "" },
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
var Template = function (args) { return (0, jsx_runtime_1.jsx)(Body_1.default, __assign({}, args)); };
|
|
68
|
-
exports._Body = Template.bind({});
|
|
69
|
-
exports._Body.args = {
|
|
70
|
-
label: constants_1.Dummy_Para,
|
|
71
|
-
body: _1.BODY_CLASSES[0],
|
|
72
|
-
className: "",
|
|
73
|
-
};
|
|
74
|
-
var BodyTokens = function () { return ((0, jsx_runtime_1.jsx)(Table_1.default, { headers: _1.bodyTableHeaders, rows: _1.bodyTableRows, "aria-label": "Body text variants comparison" })); };
|
|
75
|
-
exports.BodyTokens = BodyTokens;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom";
|
|
@@ -1,49 +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 Body_1 = __importDefault(require("./Body"));
|
|
10
|
-
var index_1 = require("./index");
|
|
11
|
-
var constants_1 = require("../../../utils/constants");
|
|
12
|
-
describe("Body Component", function () {
|
|
13
|
-
it("renders with default props", function () {
|
|
14
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Body_1.default, {}));
|
|
15
|
-
var divElement = react_1.screen.getByText(constants_1.Dummy_Para);
|
|
16
|
-
expect(divElement).toBeInTheDocument();
|
|
17
|
-
expect(divElement).toHaveClass(index_1.BODY_CLASSES[0]);
|
|
18
|
-
});
|
|
19
|
-
describe("Body Component with different body classes", function () {
|
|
20
|
-
index_1.BODY_CLASSES.forEach(function (bodyClass) {
|
|
21
|
-
it("applies the correct class \"".concat(bodyClass, "\""), function () {
|
|
22
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Body_1.default, { body: bodyClass }));
|
|
23
|
-
var divElement = react_1.screen.getByText(constants_1.Dummy_Para);
|
|
24
|
-
expect(divElement).toHaveClass(bodyClass);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
it("applies additional class names from className prop", function () {
|
|
29
|
-
var customClass = "custom-class another-class";
|
|
30
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Body_1.default, { className: customClass }));
|
|
31
|
-
var divElement = react_1.screen.getByText(constants_1.Dummy_Para);
|
|
32
|
-
expect(divElement).toHaveClass(index_1.BODY_CLASSES[0]);
|
|
33
|
-
expect(divElement).toHaveClass("custom-class");
|
|
34
|
-
expect(divElement).toHaveClass("another-class");
|
|
35
|
-
});
|
|
36
|
-
it("renders custom label when provided", function () {
|
|
37
|
-
var customLabel = "Custom Label Text";
|
|
38
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Body_1.default, { label: customLabel }));
|
|
39
|
-
var divElement = react_1.screen.getByText(customLabel);
|
|
40
|
-
expect(divElement).toBeInTheDocument();
|
|
41
|
-
});
|
|
42
|
-
it("passes additional props to the root div", function () {
|
|
43
|
-
var testId = "body-component";
|
|
44
|
-
var ariaLabel = "Body Component";
|
|
45
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Body_1.default, { "data-testid": testId, "aria-label": ariaLabel }));
|
|
46
|
-
var divElement = react_1.screen.getByTestId(testId);
|
|
47
|
-
expect(divElement).toHaveAttribute("aria-label", ariaLabel);
|
|
48
|
-
});
|
|
49
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FontFamily, FontSize, FontWeight, LineHeights, TextColor } from "../../../utils/enums";
|
|
2
|
-
export declare const BODY_CLASSES: readonly ["lu-body-1", "lu-body-2", "lu-body-3", "lu-body-4"];
|
|
3
|
-
export declare const bodyTableHeaders: {
|
|
4
|
-
title: string;
|
|
5
|
-
key: string;
|
|
6
|
-
}[];
|
|
7
|
-
export declare const bodyTableRows: {
|
|
8
|
-
alias: string;
|
|
9
|
-
fontFamily: FontFamily;
|
|
10
|
-
fontSize: FontSize;
|
|
11
|
-
fontWeight: FontWeight;
|
|
12
|
-
lineHeight: LineHeights;
|
|
13
|
-
color: TextColor;
|
|
14
|
-
}[];
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bodyTableRows = exports.bodyTableHeaders = exports.BODY_CLASSES = void 0;
|
|
4
|
-
var enums_1 = require("../../../utils/enums");
|
|
5
|
-
exports.BODY_CLASSES = [
|
|
6
|
-
"lu-body-1",
|
|
7
|
-
"lu-body-2",
|
|
8
|
-
"lu-body-3",
|
|
9
|
-
"lu-body-4",
|
|
10
|
-
];
|
|
11
|
-
exports.bodyTableHeaders = [
|
|
12
|
-
{ title: "Alias Token Name", key: "alias" },
|
|
13
|
-
{ title: "Font Family", key: "fontFamily" },
|
|
14
|
-
{ title: "Font Size", key: "fontSize" },
|
|
15
|
-
{ title: "Font Weight", key: "fontWeight" },
|
|
16
|
-
{ title: "Line Height", key: "lineHeight" },
|
|
17
|
-
{ title: "Color", key: "color" },
|
|
18
|
-
];
|
|
19
|
-
// Define rows
|
|
20
|
-
exports.bodyTableRows = [
|
|
21
|
-
{
|
|
22
|
-
alias: "lu-body-1",
|
|
23
|
-
fontFamily: enums_1.FontFamily.Base,
|
|
24
|
-
fontSize: enums_1.FontSize.XLarge,
|
|
25
|
-
fontWeight: enums_1.FontWeight.Regular,
|
|
26
|
-
lineHeight: enums_1.LineHeights.XS,
|
|
27
|
-
color: enums_1.TextColor.Secondary,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
alias: "lu-body-2",
|
|
31
|
-
fontFamily: enums_1.FontFamily.Base,
|
|
32
|
-
fontSize: enums_1.FontSize.Large,
|
|
33
|
-
fontWeight: enums_1.FontWeight.Regular,
|
|
34
|
-
lineHeight: enums_1.LineHeights.XS,
|
|
35
|
-
color: enums_1.TextColor.Secondary,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
alias: "lu-body-3",
|
|
39
|
-
fontFamily: enums_1.FontFamily.Base,
|
|
40
|
-
fontSize: enums_1.FontSize.Medium,
|
|
41
|
-
fontWeight: enums_1.FontWeight.Regular,
|
|
42
|
-
lineHeight: enums_1.LineHeights.XS,
|
|
43
|
-
color: enums_1.TextColor.Secondary,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
alias: "lu-body-4 ",
|
|
47
|
-
fontFamily: enums_1.FontFamily.Base,
|
|
48
|
-
fontSize: enums_1.FontSize.Small,
|
|
49
|
-
fontWeight: enums_1.FontWeight.Regular,
|
|
50
|
-
lineHeight: enums_1.LineHeights.XS,
|
|
51
|
-
color: enums_1.TextColor.Secondary,
|
|
52
|
-
},
|
|
53
|
-
];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from "@storybook/react";
|
|
2
|
-
import { DisplayProps } from "./type";
|
|
3
|
-
declare const _default: Meta<DisplayProps>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const _Display: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, DisplayProps>;
|
|
6
|
-
export declare const DisplayTokens: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,79 +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.DisplayTokens = exports._Display = void 0;
|
|
18
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var Display_1 = __importDefault(require("./Display"));
|
|
20
|
-
var _1 = require(".");
|
|
21
|
-
var Table_1 = __importDefault(require("../../../global/components/Table/Table"));
|
|
22
|
-
var constants_1 = require("../../../utils/constants");
|
|
23
|
-
exports.default = {
|
|
24
|
-
title: "Components/Typography/Display",
|
|
25
|
-
component: Display_1.default,
|
|
26
|
-
parameters: {
|
|
27
|
-
docs: {
|
|
28
|
-
description: {
|
|
29
|
-
component: "A configurable Display text component with design system-approved styling variants",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
argTypes: {
|
|
34
|
-
display: {
|
|
35
|
-
description: "Typography variant class",
|
|
36
|
-
control: {
|
|
37
|
-
type: "select",
|
|
38
|
-
labels: Object.values(_1.Display_Classes).reduce(function (acc, curr) {
|
|
39
|
-
var _a;
|
|
40
|
-
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = curr, _a)));
|
|
41
|
-
}, {}),
|
|
42
|
-
},
|
|
43
|
-
options: Object.values(_1.Display_Classes),
|
|
44
|
-
table: {
|
|
45
|
-
type: {
|
|
46
|
-
summary: Object.values(_1.Display_Classes)
|
|
47
|
-
.map(function (item) { return item; })
|
|
48
|
-
.join(" | "),
|
|
49
|
-
},
|
|
50
|
-
defaultValue: { summary: _1.Display_Classes["lu-display-1"] },
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
label: {
|
|
54
|
-
description: "Text content",
|
|
55
|
-
control: "text",
|
|
56
|
-
table: {
|
|
57
|
-
type: { summary: "string" },
|
|
58
|
-
defaultValue: { summary: constants_1.Dummy_Para },
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
className: {
|
|
62
|
-
description: "Additional CSS classes",
|
|
63
|
-
control: "text",
|
|
64
|
-
table: {
|
|
65
|
-
type: { summary: "string" },
|
|
66
|
-
defaultValue: { summary: "" },
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
var Template = function (args) { return (0, jsx_runtime_1.jsx)(Display_1.default, __assign({}, args)); };
|
|
72
|
-
exports._Display = Template.bind({});
|
|
73
|
-
exports._Display.args = {
|
|
74
|
-
label: constants_1.Dummy_Para,
|
|
75
|
-
display: _1.Display_Classes["lu-display-1"],
|
|
76
|
-
className: "",
|
|
77
|
-
};
|
|
78
|
-
var DisplayTokens = function () { return ((0, jsx_runtime_1.jsx)(Table_1.default, { headers: _1.displayTableHeaders, rows: _1.displayTableRows, "aria-label": "Display text variants comparison" })); };
|
|
79
|
-
exports.DisplayTokens = DisplayTokens;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom";
|
|
@@ -1,49 +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 constants_1 = require("../../../utils/constants");
|
|
10
|
-
var Display_1 = __importDefault(require("./Display"));
|
|
11
|
-
var index_1 = require("./index");
|
|
12
|
-
describe("Body Component", function () {
|
|
13
|
-
it("renders with default props", function () {
|
|
14
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Display_1.default, {}));
|
|
15
|
-
var divElement = react_1.screen.getByText(constants_1.Dummy_Para);
|
|
16
|
-
expect(divElement).toBeInTheDocument();
|
|
17
|
-
expect(divElement).toHaveClass(index_1.Display_Classes["lu-display-1"]);
|
|
18
|
-
});
|
|
19
|
-
describe("Body Component with different body classes", function () {
|
|
20
|
-
Object.values(index_1.Display_Classes).forEach(function (displayClass) {
|
|
21
|
-
it("applies the correct class \"".concat(displayClass, "\""), function () {
|
|
22
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Display_1.default, { display: displayClass }));
|
|
23
|
-
var divElement = react_1.screen.getByText(constants_1.Dummy_Para);
|
|
24
|
-
expect(divElement).toHaveClass(displayClass);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
it("applies additional class names from className prop", function () {
|
|
29
|
-
var customClass = "custom-class another-class";
|
|
30
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Display_1.default, { className: customClass }));
|
|
31
|
-
var divElement = react_1.screen.getByText(constants_1.Dummy_Para);
|
|
32
|
-
expect(divElement).toHaveClass(index_1.Display_Classes["lu-display-1"]);
|
|
33
|
-
expect(divElement).toHaveClass("custom-class");
|
|
34
|
-
expect(divElement).toHaveClass("another-class");
|
|
35
|
-
});
|
|
36
|
-
it("renders custom label when provided", function () {
|
|
37
|
-
var customLabel = "Custom Label Text";
|
|
38
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Display_1.default, { label: customLabel }));
|
|
39
|
-
var divElement = react_1.screen.getByText(customLabel);
|
|
40
|
-
expect(divElement).toBeInTheDocument();
|
|
41
|
-
});
|
|
42
|
-
it("passes additional props to the root div", function () {
|
|
43
|
-
var testId = "body-component";
|
|
44
|
-
var ariaLabel = "Body Component";
|
|
45
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Display_1.default, { "data-testid": testId, "aria-label": ariaLabel }));
|
|
46
|
-
var divElement = react_1.screen.getByTestId(testId);
|
|
47
|
-
expect(divElement).toHaveAttribute("aria-label", ariaLabel);
|
|
48
|
-
});
|
|
49
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { FontFamily, FontSize, FontWeight, LineHeights, TextColor } from ".././../../utils/enums";
|
|
2
|
-
export declare enum Display_Classes {
|
|
3
|
-
"lu-display-1" = "lu-display-1",
|
|
4
|
-
"lu-display-2" = "lu-display-2",
|
|
5
|
-
"lu-display-3" = "lu-display-3"
|
|
6
|
-
}
|
|
7
|
-
export declare const customDisplay: {
|
|
8
|
-
".lu-display-1": {
|
|
9
|
-
fontSize: string;
|
|
10
|
-
fontWeight: string;
|
|
11
|
-
lineHeight: string;
|
|
12
|
-
color: string;
|
|
13
|
-
};
|
|
14
|
-
".lu-display-2": {
|
|
15
|
-
fontSize: string;
|
|
16
|
-
fontWeight: string;
|
|
17
|
-
lineHeight: string;
|
|
18
|
-
color: string;
|
|
19
|
-
};
|
|
20
|
-
".lu-display-3": {
|
|
21
|
-
fontSize: string;
|
|
22
|
-
fontWeight: string;
|
|
23
|
-
lineHeight: string;
|
|
24
|
-
color: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export declare const displayTableHeaders: {
|
|
28
|
-
title: string;
|
|
29
|
-
key: string;
|
|
30
|
-
}[];
|
|
31
|
-
export declare const displayTableRows: {
|
|
32
|
-
alias: string;
|
|
33
|
-
fontFamily: FontFamily;
|
|
34
|
-
fontSize: FontSize;
|
|
35
|
-
fontWeight: FontWeight;
|
|
36
|
-
lineHeight: LineHeights;
|
|
37
|
-
color: TextColor;
|
|
38
|
-
}[];
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.displayTableRows = exports.displayTableHeaders = exports.customDisplay = exports.Display_Classes = void 0;
|
|
4
|
-
var enums_1 = require(".././../../utils/enums");
|
|
5
|
-
var Display_Classes;
|
|
6
|
-
(function (Display_Classes) {
|
|
7
|
-
Display_Classes["lu-display-1"] = "lu-display-1";
|
|
8
|
-
Display_Classes["lu-display-2"] = "lu-display-2";
|
|
9
|
-
Display_Classes["lu-display-3"] = "lu-display-3";
|
|
10
|
-
})(Display_Classes || (exports.Display_Classes = Display_Classes = {}));
|
|
11
|
-
exports.customDisplay = {
|
|
12
|
-
".lu-display-1": {
|
|
13
|
-
fontSize: "var(--core-800)",
|
|
14
|
-
fontWeight: "700",
|
|
15
|
-
lineHeight: "1.5",
|
|
16
|
-
color: "var(--black)",
|
|
17
|
-
},
|
|
18
|
-
".lu-display-2": {
|
|
19
|
-
fontSize: "var(--core-600)",
|
|
20
|
-
fontWeight: "600",
|
|
21
|
-
lineHeight: "1.5",
|
|
22
|
-
color: "var(--black)",
|
|
23
|
-
},
|
|
24
|
-
".lu-display-3": {
|
|
25
|
-
fontSize: "var(--core-400)",
|
|
26
|
-
fontWeight: "500",
|
|
27
|
-
lineHeight: "1.5",
|
|
28
|
-
color: "var(--black)",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
exports.displayTableHeaders = [
|
|
32
|
-
{ title: "Alias Token Name", key: "alias" },
|
|
33
|
-
{ title: "Font Family", key: "fontFamily" },
|
|
34
|
-
{ title: "Font Size", key: "fontSize" },
|
|
35
|
-
{ title: "Font Weight", key: "fontWeight" },
|
|
36
|
-
{ title: "Line Height", key: "lineHeight" },
|
|
37
|
-
{ title: "Color", key: "color" },
|
|
38
|
-
];
|
|
39
|
-
exports.displayTableRows = [
|
|
40
|
-
{
|
|
41
|
-
alias: "lu-display-1",
|
|
42
|
-
fontFamily: enums_1.FontFamily.Base,
|
|
43
|
-
fontSize: enums_1.FontSize.Huge,
|
|
44
|
-
fontWeight: enums_1.FontWeight.Regular,
|
|
45
|
-
lineHeight: enums_1.LineHeights.BASE,
|
|
46
|
-
color: enums_1.TextColor.Default,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
alias: "lu-display-2 ",
|
|
50
|
-
fontFamily: enums_1.FontFamily.Base,
|
|
51
|
-
fontSize: enums_1.FontSize.SevenXLarge,
|
|
52
|
-
fontWeight: enums_1.FontWeight.SemiBold,
|
|
53
|
-
lineHeight: enums_1.LineHeights.BASE,
|
|
54
|
-
color: enums_1.TextColor.Default,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
alias: "lu-display-3",
|
|
58
|
-
fontFamily: enums_1.FontFamily.Base,
|
|
59
|
-
fontSize: enums_1.FontSize.FourXLarge,
|
|
60
|
-
fontWeight: enums_1.FontWeight.Medium,
|
|
61
|
-
lineHeight: enums_1.LineHeights.BASE,
|
|
62
|
-
color: enums_1.TextColor.Default,
|
|
63
|
-
},
|
|
64
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom";
|
|
@@ -1,49 +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 constants_1 = require("../../../utils/constants");
|
|
10
|
-
var Headings_1 = __importDefault(require("./Headings"));
|
|
11
|
-
var _1 = require("./");
|
|
12
|
-
describe("Heading Component", function () {
|
|
13
|
-
it("renders with default props", function () {
|
|
14
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Headings_1.default, {}));
|
|
15
|
-
var divElement = react_1.screen.getByText(constants_1.Dummy_Para);
|
|
16
|
-
expect(divElement).toBeInTheDocument();
|
|
17
|
-
expect(divElement).toHaveClass(_1.Heading_Classes["lu-heading-h1"]);
|
|
18
|
-
});
|
|
19
|
-
describe("Heading Component with different body classes", function () {
|
|
20
|
-
Object.values(_1.Heading_Classes).forEach(function (headingClass) {
|
|
21
|
-
it("applies the correct class \"".concat(headingClass, "\""), function () {
|
|
22
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Headings_1.default, { heading: headingClass }));
|
|
23
|
-
var divElement = react_1.screen.getByText(constants_1.Dummy_Para);
|
|
24
|
-
expect(divElement).toHaveClass(headingClass);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
it("applies additional class names from className prop", function () {
|
|
29
|
-
var customClass = "custom-class another-class";
|
|
30
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Headings_1.default, { className: customClass }));
|
|
31
|
-
var divElement = react_1.screen.getByText(constants_1.Dummy_Para);
|
|
32
|
-
expect(divElement).toHaveClass(_1.Heading_Classes["lu-heading-h1"]);
|
|
33
|
-
expect(divElement).toHaveClass("custom-class");
|
|
34
|
-
expect(divElement).toHaveClass("another-class");
|
|
35
|
-
});
|
|
36
|
-
it("renders custom label when provided", function () {
|
|
37
|
-
var customLabel = "Custom Label Text";
|
|
38
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Headings_1.default, { label: customLabel }));
|
|
39
|
-
var divElement = react_1.screen.getByText(customLabel);
|
|
40
|
-
expect(divElement).toBeInTheDocument();
|
|
41
|
-
});
|
|
42
|
-
it("passes additional props to the root div", function () {
|
|
43
|
-
var testId = "body-component";
|
|
44
|
-
var ariaLabel = "Body Component";
|
|
45
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Headings_1.default, { "data-testid": testId, "aria-label": ariaLabel }));
|
|
46
|
-
var divElement = react_1.screen.getByTestId(testId);
|
|
47
|
-
expect(divElement).toHaveAttribute("aria-label", ariaLabel);
|
|
48
|
-
});
|
|
49
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from "@storybook/react";
|
|
2
|
-
import { HeadingProps } from "./type";
|
|
3
|
-
declare const _default: Meta<HeadingProps>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const _Heading: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, HeadingProps>;
|
|
6
|
-
export declare const HeadingTokens: () => import("react/jsx-runtime").JSX.Element;
|