linkedunion-design-kit 1.5.2 → 1.5.3
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/layout.jsx +13 -0
- package/dist/app/page.js +4 -10
- package/dist/app/page.jsx +71 -0
- package/dist/build/types/app/layout.d.ts +12 -0
- package/dist/build/types/app/layout.js +22 -0
- package/dist/build/types/app/page.d.ts +12 -0
- package/dist/build/types/app/page.js +22 -0
- package/dist/index.d.ts +13 -12
- package/dist/index.js +13 -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/src/components/Accordion/Accordion.d.ts +5 -0
- package/dist/src/components/Accordion/Accordion.js +7 -0
- 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/src/components/Accordion/EditorAccordion.d.ts +5 -0
- package/dist/src/components/Accordion/EditorAccordion.js +7 -0
- package/dist/src/components/Accordion/EditorAccordion.stories.d.ts +6 -0
- package/dist/src/components/Accordion/EditorAccordion.stories.js +33 -0
- package/dist/src/components/Accordion/type.d.ts +5 -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.jsx +17 -0
- package/dist/src/components/Avatar/Avatar.stories.js +43 -0
- package/dist/src/components/Avatar/Avatar.stories.jsx +31 -0
- package/dist/src/components/Avatar/Avatar.test.js +50 -0
- package/dist/src/components/Avatar/Avatar.test.jsx +51 -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/src/components/Button/Button.jsx +10 -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.stories.jsx +44 -0
- package/dist/src/components/Button/Button.test.js +62 -0
- package/dist/src/components/Button/Button.test.jsx +65 -0
- package/dist/src/components/Button/IconButton.d.ts +3 -0
- package/dist/src/components/Button/IconButton.js +8 -0
- package/dist/src/components/Button/IconButton.jsx +9 -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.stories.jsx +41 -0
- package/dist/src/components/Button/IconButton.test.js +30 -0
- package/dist/src/components/Button/IconButton.test.jsx +29 -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 +25 -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.jsx +34 -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/ColorPicker.stories.jsx +12 -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.jsx +5 -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.stories.jsx +20 -0
- package/dist/src/components/Colors/color.test.js +24 -0
- package/dist/src/components/Colors/color.test.jsx +23 -0
- package/dist/src/components/EditorTooltip/EditorTooltip.d.ts +4 -0
- package/dist/src/components/EditorTooltip/EditorTooltip.js +9 -0
- package/dist/src/components/EditorTooltip/EditorTooltip.jsx +18 -0
- package/dist/src/components/EditorTooltip/EditorTooltip.stories.d.ts +6 -0
- package/dist/src/components/EditorTooltip/EditorTooltip.stories.js +24 -0
- package/dist/src/components/EditorTooltip/EditorTooltip.stories.jsx +12 -0
- package/dist/src/components/EditorTooltip/type.d.ts +3 -0
- package/dist/{components → src/components}/Icons/IconList.test.js +18 -20
- package/dist/src/components/Icons/IconList.test.jsx +57 -0
- package/dist/src/components/Icons/IconView.js +8 -0
- package/dist/src/components/Icons/IconView.jsx +25 -0
- package/dist/{components → src/components}/Icons/IconView.stories.js +6 -9
- package/dist/src/components/Icons/IconView.stories.jsx +8 -0
- 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.jsx +31 -0
- package/dist/src/components/Icons/LUIcon.stories.js +44 -0
- package/dist/src/components/Icons/LUIcon.stories.jsx +32 -0
- package/dist/src/components/Icons/SingleIcon.test.js +67 -0
- package/dist/src/components/Icons/SingleIcon.test.jsx +55 -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/Icons/type.js +1 -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/ImageUploader/type.js +1 -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.jsx +19 -0
- 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.stories.jsx +154 -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/LuImage.test.jsx +44 -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.jsx +19 -0
- package/dist/src/components/Input/Input.stories.d.ts +5 -0
- package/dist/src/components/Input/Input.stories.js +30 -0
- package/dist/src/components/Input/Input.stories.jsx +18 -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.jsx +19 -0
- 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/Label.stories.jsx +24 -0
- package/dist/src/components/Label/index.d.ts +4 -0
- package/dist/src/components/Label/index.js +5 -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.jsx +36 -0
- package/dist/src/components/MediaCard/Card.stories.js +57 -0
- package/dist/src/components/MediaCard/Card.stories.jsx +56 -0
- package/dist/src/components/MediaCard/Card.test.js +28 -0
- package/dist/src/components/MediaCard/Card.test.jsx +27 -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.jsx +22 -0
- package/dist/src/components/MediaCard/ContactProfile/ContactProfile.test.d.ts +1 -0
- package/dist/src/components/MediaCard/ContactProfile/ContactProfile.test.js +61 -0
- package/dist/{components/MediaCard/ContactProfile/ContactProfile.test.js → src/components/MediaCard/ContactProfile/ContactProfile.test.jsx} +16 -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/src/components/MediaCard/ContactProfile/ContactProfileTheme1.jsx +28 -0
- package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme1.test.js +15 -38
- package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.test.jsx +87 -0
- package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme2.d.ts +1 -1
- package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.js +8 -0
- package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.jsx +24 -0
- package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme2.test.js +15 -38
- package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.test.jsx +87 -0
- 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.jsx +24 -0
- package/dist/src/components/MediaCard/PostByCategory/PostByCategory.test.d.ts +1 -0
- package/dist/src/components/MediaCard/PostByCategory/PostByCategory.test.js +62 -0
- package/dist/{components/MediaCard/PostByCategory/PostByCategory.test.js → src/components/MediaCard/PostByCategory/PostByCategory.test.jsx} +17 -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/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.jsx +26 -0
- package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme1.test.js +15 -38
- package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.test.jsx +87 -0
- package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.d.ts +1 -1
- package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +8 -0
- package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.jsx +24 -0
- package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.test.js +16 -39
- package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.test.jsx +87 -0
- 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/src/components/Switch/Switch.jsx +6 -0
- package/dist/src/components/Switch/Switch.stories.d.ts +5 -0
- package/dist/src/components/Switch/Switch.stories.js +44 -0
- package/dist/src/components/Switch/Switch.stories.jsx +32 -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.jsx +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.stories.jsx +37 -0
- 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/Title/Title.test.jsx +24 -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.jsx +19 -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/Typography.stories.jsx +25 -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/button.jsx +43 -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/input.jsx +18 -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/label.jsx +30 -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/switch.jsx +61 -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/tooltip.jsx +38 -0
- package/dist/src/components/ui/typography.d.ts +26 -0
- package/dist/src/components/ui/typography.js +65 -0
- package/dist/src/components/ui/typography.jsx +56 -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 +1 -4
- package/dist/src/utils/index.d.ts +18 -0
- package/dist/src/utils/index.js +20 -0
- package/dist/styles/global.css +2719 -4132
- 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.d.ts +0 -4
- 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/Avatar/Avatar.test.d.ts → src/components/Accordion/type.js} +0 -0
- /package/dist/{components → src/components}/Avatar/Avatar.stories.d.ts +0 -0
- /package/dist/{components/Border/BorderRadius/BorderRadius.test.d.ts → src/components/Avatar/Avatar.test.d.ts} +0 -0
- /package/dist/{components/Border/BorderWidth/BorderWidth.test.d.ts → src/components/Avatar/type.js} +0 -0
- /package/dist/{components/Color/BackgroundColor/BackgroundColor.test.d.ts → src/components/Button/Button.test.d.ts} +0 -0
- /package/dist/{components/Icons/IconList.test.d.ts → src/components/Button/IconButton.test.d.ts} +0 -0
- /package/dist/{components/Icons/SingleIcon.test.d.ts → src/components/Button/type.js} +0 -0
- /package/dist/{components/MediaCard/ContactProfile/ContactProfile.test.d.ts → src/components/ColorPicker/type.js} +0 -0
- /package/dist/{components/MediaCard/PostByCategory/PostByCategory.test.d.ts → src/components/Colors/color.test.d.ts} +0 -0
- /package/dist/{components/Spacing/Margin/MarginToken.test.d.ts → src/components/EditorTooltip/type.js} +0 -0
- /package/dist/{components/Spacing/Padding/PaddingToken.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/Title/Title.test.d.ts → src/components/Icons/SingleIcon.test.d.ts} +0 -0
- /package/dist/{components → src/components}/MediaCard/Card.stories.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/Card.test.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme1.test.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme2.test.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme1.test.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.test.d.ts +0 -0
- /package/dist/{components → src/components}/MediaCard/index.d.ts +0 -0
- /package/dist/{components → src/components}/Title/Title.d.ts +0 -0
- /package/dist/{components → src/components}/Title/Title.stories.d.ts +0 -0
- /package/dist/{utils → src/utils}/iconList.d.ts +0 -0
package/dist/tailwind.config.js
CHANGED
|
@@ -1,192 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
var utils_1 = require("./utils");
|
|
16
|
-
var Display_1 = require("./components/Typography/Display");
|
|
17
|
-
var BackgroundColor_1 = require("./components/Color/BackgroundColor");
|
|
18
|
-
var plugin_1 = __importDefault(require("tailwindcss/plugin"));
|
|
1
|
+
import { colors } from "./src/utils/colors";
|
|
19
2
|
var config = {
|
|
20
|
-
mode: "jit",
|
|
21
3
|
content: [
|
|
22
4
|
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
|
23
|
-
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
5
|
+
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
24
6
|
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
25
7
|
],
|
|
26
|
-
safelist: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], BackgroundColor_1.colorNames.flatMap(function (color) {
|
|
27
|
-
return BackgroundColor_1.shades.map(function (shade) { return "lu-bg-".concat(color, "-").concat(shade); });
|
|
28
|
-
}), true), utils_1.fontSizes.map(function (fontSize) { return ({ pattern: new RegExp(fontSize.key) }); }), true), utils_1.fontWeights.map(function (fontWeight) { return ({
|
|
29
|
-
pattern: new RegExp(fontWeight.key),
|
|
30
|
-
}); }), true), utils_1.lineHeights.map(function (lineHeight) { return ({
|
|
31
|
-
pattern: new RegExp(lineHeight.key),
|
|
32
|
-
}); }), true), utils_1.textAlignment.map(function (textAlign) { return ({
|
|
33
|
-
pattern: new RegExp(textAlign.key),
|
|
34
|
-
}); }), true), utils_1.textTransform.map(function (textTrans) { return ({
|
|
35
|
-
pattern: new RegExp(textTrans.key),
|
|
36
|
-
}); }), true), utils_1.textDecorations.map(function (textDec) { return ({ pattern: new RegExp(textDec.key) }); }), true), utils_1.textWraps.map(function (textWrap) { return ({ pattern: new RegExp(textWrap.key) }); }), true), utils_1.sizes.map(function (size) { return ({ pattern: new RegExp(size.key) }); }), true), utils_1.widths.map(function (width) { return ({ pattern: new RegExp(width.key) }); }), true), utils_1.heights.map(function (height) { return ({ pattern: new RegExp(height.key) }); }), true), utils_1.minWidths.map(function (minWidth) { return ({ pattern: new RegExp(minWidth.key) }); }), true), utils_1.minHeights.map(function (minHeight) { return ({ pattern: new RegExp(minHeight.key) }); }), true), utils_1.borderRadiusList.map(function (borderRadius) { return ({
|
|
37
|
-
pattern: new RegExp(borderRadius.key),
|
|
38
|
-
}); }), true), utils_1.borderWidthList.map(function (borderWidth) { return ({
|
|
39
|
-
pattern: new RegExp(borderWidth.key),
|
|
40
|
-
}); }), true), utils_1.iconSizeList.map(function (iconSize) { return ({ pattern: new RegExp(iconSize.key) }); }), true), utils_1.iconColorList.map(function (iconColor) { return ({
|
|
41
|
-
pattern: new RegExp(iconColor.key),
|
|
42
|
-
}); }), true), utils_1.buttonColorsList.map(function (btnColor) { return ({
|
|
43
|
-
pattern: new RegExp(btnColor.key),
|
|
44
|
-
}); }), true), utils_1.buttonSizeList.map(function (btnSize) { return ({ pattern: new RegExp(btnSize.key) }); }), true), utils_1.buttonIconSizeList.map(function (btnIconSize) { return ({
|
|
45
|
-
pattern: new RegExp(btnIconSize.key),
|
|
46
|
-
}); }), true), utils_1.buttonWithIconList.map(function (iconButton) { return ({
|
|
47
|
-
pattern: new RegExp(iconButton.key),
|
|
48
|
-
}); }), true), utils_1.portraitAspectRatioList.map(function (aspectRatio) { return ({
|
|
49
|
-
pattern: new RegExp(aspectRatio.key),
|
|
50
|
-
}); }), true), utils_1.landscapeAspectRatioList.map(function (aspectRatio) { return ({
|
|
51
|
-
pattern: new RegExp(aspectRatio.key),
|
|
52
|
-
}); }), true), utils_1.avatarSizesList.map(function (avatarSize) { return ({
|
|
53
|
-
pattern: new RegExp(avatarSize.key),
|
|
54
|
-
}); }), true), utils_1.avatarShapeList.map(function (avatarShape) { return ({
|
|
55
|
-
pattern: new RegExp(avatarShape.key),
|
|
56
|
-
}); }), true), utils_1.textColorList.map(function (textColor) { return ({
|
|
57
|
-
pattern: new RegExp(textColor.key),
|
|
58
|
-
}); }), true), utils_1.headingsList.map(function (heading) { return ({ pattern: new RegExp(heading.key) }); }), true), Object.keys(Display_1.Display_Classes).map(function (display) { return ({
|
|
59
|
-
pattern: new RegExp(display),
|
|
60
|
-
}); }), true),
|
|
61
8
|
theme: {
|
|
9
|
+
colors: colors,
|
|
62
10
|
extend: {
|
|
63
11
|
backgroundImage: {
|
|
64
12
|
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
|
|
65
13
|
"gradient-conic": "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
|
|
66
14
|
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
textWrap: utils_1.customTextWrap,
|
|
74
|
-
size: utils_1.customSize,
|
|
75
|
-
width: utils_1.customWidth,
|
|
76
|
-
height: utils_1.customHeight,
|
|
77
|
-
minWidth: utils_1.customMinWidth,
|
|
78
|
-
minHeight: utils_1.customMinHeight,
|
|
79
|
-
logoSize: utils_1.customLogoSize,
|
|
80
|
-
opacity: utils_1.customOpacity,
|
|
81
|
-
boxShadow: utils_1.customBoxShadow,
|
|
15
|
+
screens: {
|
|
16
|
+
xs: "480px",
|
|
17
|
+
},
|
|
18
|
+
boxShadow: {
|
|
19
|
+
"outline-primary": "0 0 0 0.25rem rgba(147, 197, 253, 0.5)",
|
|
20
|
+
},
|
|
82
21
|
},
|
|
83
22
|
},
|
|
84
|
-
plugins: [
|
|
85
|
-
(0, plugin_1.default)(function (_a) {
|
|
86
|
-
var addUtilities = _a.addUtilities, theme = _a.theme;
|
|
87
|
-
//Font Size plugin
|
|
88
|
-
var fontSizeUtilities = (0, utils_1.generateUtilities)("fontSize", theme);
|
|
89
|
-
addUtilities(fontSizeUtilities, ["responsive"]);
|
|
90
|
-
//Font Weight plugin
|
|
91
|
-
var fontWeightUtilities = (0, utils_1.generateUtilities)("fontWeight", theme);
|
|
92
|
-
addUtilities(fontWeightUtilities, ["responsive"]);
|
|
93
|
-
//Line Height plugin
|
|
94
|
-
var lineHeightUtilities = (0, utils_1.generateUtilities)("lineHeight", theme);
|
|
95
|
-
addUtilities(lineHeightUtilities, ["responsive"]);
|
|
96
|
-
//Text Alignment plugin
|
|
97
|
-
var textAlignmentUtilities = (0, utils_1.generateUtilities)("textAlign", theme);
|
|
98
|
-
addUtilities(textAlignmentUtilities, ["responsive"]);
|
|
99
|
-
//Text Transform plugin
|
|
100
|
-
var textTransformUtilities = (0, utils_1.generateUtilities)("textTransform", theme);
|
|
101
|
-
addUtilities(textTransformUtilities, ["responsive"]);
|
|
102
|
-
//Text Decoration plugin
|
|
103
|
-
var textDecorationUtilities = (0, utils_1.generateUtilities)("textDecoration", theme);
|
|
104
|
-
addUtilities(textDecorationUtilities, ["responsive"]);
|
|
105
|
-
//Text Wrap plugin
|
|
106
|
-
var textWrapUtilities = (0, utils_1.generateUtilities)("textWrap", theme);
|
|
107
|
-
addUtilities(textWrapUtilities, ["responsive"]);
|
|
108
|
-
//Size plugin
|
|
109
|
-
var sizeUtilities = Object.entries(utils_1.customSize).reduce(function (acc, _a) {
|
|
110
|
-
var key = _a[0], value = _a[1];
|
|
111
|
-
acc[".".concat(key)] = {
|
|
112
|
-
width: value,
|
|
113
|
-
height: value,
|
|
114
|
-
};
|
|
115
|
-
return acc;
|
|
116
|
-
}, {});
|
|
117
|
-
addUtilities(sizeUtilities, ["responsive"]);
|
|
118
|
-
//width plugin
|
|
119
|
-
var widthUtilities = Object.entries(utils_1.customWidth).reduce(function (acc, _a) {
|
|
120
|
-
var key = _a[0], value = _a[1];
|
|
121
|
-
acc[".".concat(key)] = {
|
|
122
|
-
width: value,
|
|
123
|
-
};
|
|
124
|
-
return acc;
|
|
125
|
-
}, {});
|
|
126
|
-
addUtilities(widthUtilities, ["responsive"]);
|
|
127
|
-
//height plugin
|
|
128
|
-
var heightUtilities = Object.entries(utils_1.customHeight).reduce(function (acc, _a) {
|
|
129
|
-
var key = _a[0], value = _a[1];
|
|
130
|
-
acc[".".concat(key)] = {
|
|
131
|
-
height: value,
|
|
132
|
-
};
|
|
133
|
-
return acc;
|
|
134
|
-
}, {});
|
|
135
|
-
addUtilities(heightUtilities, ["responsive"]);
|
|
136
|
-
//Min width Plugin
|
|
137
|
-
var minWidthUtilities = Object.entries(utils_1.customMinWidth).reduce(function (acc, _a) {
|
|
138
|
-
var key = _a[0], value = _a[1];
|
|
139
|
-
acc[".".concat(key)] = {
|
|
140
|
-
minWidth: value,
|
|
141
|
-
};
|
|
142
|
-
return acc;
|
|
143
|
-
}, {});
|
|
144
|
-
addUtilities(minWidthUtilities, ["responsive"]);
|
|
145
|
-
//Min height Plugin
|
|
146
|
-
var minHeightUtilities = Object.entries(utils_1.customMinHeight).reduce(function (acc, _a) {
|
|
147
|
-
var key = _a[0], value = _a[1];
|
|
148
|
-
acc[".".concat(key)] = {
|
|
149
|
-
minHeight: value,
|
|
150
|
-
};
|
|
151
|
-
return acc;
|
|
152
|
-
}, {});
|
|
153
|
-
addUtilities(minHeightUtilities, ["responsive"]);
|
|
154
|
-
// Add plugin border radius
|
|
155
|
-
addUtilities(utils_1.customBorderRadius, ["responsive"]);
|
|
156
|
-
// Add plugin border width
|
|
157
|
-
addUtilities(utils_1.customBorderWidth, ["responsive"]);
|
|
158
|
-
//plugin for icon size
|
|
159
|
-
addUtilities(utils_1.customIconSize, ["responsive", "hover"]);
|
|
160
|
-
//plugin for icon colors
|
|
161
|
-
addUtilities(utils_1.customIconColors, ["responsive"]);
|
|
162
|
-
//plugin for custom button colors
|
|
163
|
-
addUtilities(utils_1.customButtonColors, ["responsive"]);
|
|
164
|
-
//plugin for custom button size
|
|
165
|
-
addUtilities(utils_1.customButtonSize, ["responsive"]);
|
|
166
|
-
//plugin for custom button icon size
|
|
167
|
-
addUtilities(utils_1.customButtonIconSize, ["responsive"]);
|
|
168
|
-
//plugin for custom button with icon
|
|
169
|
-
addUtilities(utils_1.customIconButtonSize, ["responsive"]);
|
|
170
|
-
//plugin for outline button color
|
|
171
|
-
addUtilities(utils_1.customButtonOutlineColors, ["responsive"]);
|
|
172
|
-
//plugin for aspect ratio
|
|
173
|
-
addUtilities(utils_1.customAspectRatio, ["responsive"]);
|
|
174
|
-
//Plugin for avatar size
|
|
175
|
-
addUtilities(utils_1.customAvatarSize, ["responsive"]);
|
|
176
|
-
//plugin for avatar shape
|
|
177
|
-
addUtilities(utils_1.customizeAvatarShape, ["responsive"]);
|
|
178
|
-
//plugin for box shadow
|
|
179
|
-
var boxShadowUtilities = (0, utils_1.generateUtilities)("boxShadow", theme);
|
|
180
|
-
addUtilities(boxShadowUtilities, ["responsive"]);
|
|
181
|
-
//plugin for custom text colors
|
|
182
|
-
addUtilities(utils_1.customizeTextColors, ["responsive"]);
|
|
183
|
-
//plugin for custom headings
|
|
184
|
-
addUtilities(utils_1.customHeadings, ["responsive"]);
|
|
185
|
-
//plugin for custom Display
|
|
186
|
-
addUtilities(Display_1.customDisplay, ["responsive"]);
|
|
187
|
-
//plugin for custom background colors
|
|
188
|
-
addUtilities(BackgroundColor_1.customBackgroundColor, ["responsive"]);
|
|
189
|
-
}),
|
|
190
|
-
],
|
|
191
23
|
};
|
|
192
|
-
|
|
24
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linkedunion-design-kit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
|
-
"styles/global.css"
|
|
7
|
+
"src/styles/global.css"
|
|
8
8
|
],
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"module": "dist/index.esm.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"dev": "next dev",
|
|
15
15
|
"format": "prettier --write .",
|
|
16
|
-
"build": "postcss styles/globals.css -o dist/styles/global.css && tsc && tsc-alias && postcss \"components/**/*.css\"
|
|
16
|
+
"build": "postcss src/styles/globals.css -o dist/styles/global.css && tsc && tsc-alias && postcss \"src/components/**/*.css\" --base src --dir dist/src",
|
|
17
17
|
"start": "next start",
|
|
18
18
|
"lint": "next lint",
|
|
19
19
|
"storybook": "storybook dev -p 6006",
|
|
@@ -41,14 +41,28 @@
|
|
|
41
41
|
"*.css"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
+
"@radix-ui/react-accordion": "^1.2.8",
|
|
45
|
+
"@radix-ui/react-label": "^2.1.3",
|
|
46
|
+
"@radix-ui/react-switch": "^1.1.4",
|
|
47
|
+
"@radix-ui/react-tooltip": "^1.2.3",
|
|
44
48
|
"@storybook/testing-library": "^0.2.2",
|
|
49
|
+
"@tailwindcss/cli": "^4.1.3",
|
|
50
|
+
"@tailwindcss/postcss": "^4.1.3",
|
|
45
51
|
"@testing-library/jest-dom": "^6.6.3",
|
|
46
52
|
"@testing-library/react": "^16.2.0",
|
|
53
|
+
"class-variance-authority": "^0.7.1",
|
|
54
|
+
"clsx": "^2.1.1",
|
|
47
55
|
"eslint-plugin-testing-library": "^7.1.1",
|
|
56
|
+
"init": "^0.1.2",
|
|
57
|
+
"lucide-react": "^0.488.0",
|
|
48
58
|
"next": "^15.2.0",
|
|
49
59
|
"react": "^19.0.0",
|
|
50
60
|
"react-dom": "^19.0.0",
|
|
51
|
-
"
|
|
61
|
+
"react-dropzone": "^14.3.8",
|
|
62
|
+
"shadcn": "^2.4.0",
|
|
63
|
+
"tailwind-merge": "^3.2.0",
|
|
64
|
+
"tsc-alias": "^1.8.10",
|
|
65
|
+
"tw-animate-css": "^1.2.5"
|
|
52
66
|
},
|
|
53
67
|
"devDependencies": {
|
|
54
68
|
"@chromatic-com/storybook": "^3.2.2",
|
|
@@ -82,16 +96,14 @@
|
|
|
82
96
|
"eslint-plugin-storybook": "^0.11.3",
|
|
83
97
|
"husky": "^9.1.7",
|
|
84
98
|
"jest": "^29.7.0",
|
|
85
|
-
"jest-canvas-mock": "^2.5.2",
|
|
86
99
|
"jest-environment-jsdom": "^29.7.0",
|
|
87
|
-
"jest-fetch-mock": "^3.0.3",
|
|
88
100
|
"lint-staged": "^15.4.3",
|
|
89
101
|
"matchmedia-polyfill": "^0.3.2",
|
|
90
102
|
"postcss": "^8.4.49",
|
|
91
103
|
"postcss-cli": "^11.0.0",
|
|
92
104
|
"prettier": "^3.5.2",
|
|
93
105
|
"storybook": "^8.4.3",
|
|
94
|
-
"tailwindcss": "^3",
|
|
106
|
+
"tailwindcss": "^4.1.3",
|
|
95
107
|
"ts-node": "^10.9.2",
|
|
96
108
|
"typescript": "^5"
|
|
97
109
|
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
// File: /Users/avialdosolutions/linkedunion-design-kit/linkedunion-design-kit/app/page.tsx
|
|
37
|
-
var entry = __importStar(require("../../../app/page.js"));
|
|
38
|
-
// Check that the entry is a valid entry
|
|
39
|
-
checkFields();
|
|
40
|
-
// Check the prop type of the entry function
|
|
41
|
-
checkFields();
|
|
42
|
-
// Check the arguments and return type of the generateMetadata function
|
|
43
|
-
if ('generateMetadata' in entry) {
|
|
44
|
-
checkFields();
|
|
45
|
-
checkFields();
|
|
46
|
-
}
|
|
47
|
-
// Check the arguments and return type of the generateViewport function
|
|
48
|
-
if ('generateViewport' in entry) {
|
|
49
|
-
checkFields();
|
|
50
|
-
checkFields();
|
|
51
|
-
}
|
|
52
|
-
// Check the arguments and return type of the generateStaticParams function
|
|
53
|
-
if ('generateStaticParams' in entry) {
|
|
54
|
-
checkFields();
|
|
55
|
-
checkFields();
|
|
56
|
-
}
|
|
57
|
-
function checkFields() { }
|
package/dist/app/scripts.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const ensureValue: (value: string | undefined, fallbackValue: (() => void | string) | string) => string | (() => void | string);
|
|
2
|
-
export declare const getColor: (color: string | undefined, fallbackColor: (() => void | string) | string) => string | (() => void | string);
|
package/dist/app/scripts.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getColor = exports.ensureValue = void 0;
|
|
4
|
-
var ensureValue = function (value, fallbackValue) {
|
|
5
|
-
if (!value) {
|
|
6
|
-
return fallbackValue;
|
|
7
|
-
}
|
|
8
|
-
else {
|
|
9
|
-
return value;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
exports.ensureValue = ensureValue;
|
|
13
|
-
var getColor = function (color, fallbackColor) {
|
|
14
|
-
return (0, exports.ensureValue)(color, fallbackColor);
|
|
15
|
-
};
|
|
16
|
-
exports.getColor = getColor;
|
|
@@ -1,15 +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 LUIcon_1 = __importDefault(require("../Icons/LUIcon"));
|
|
8
|
-
var iconList_1 = require("../../utils/iconList");
|
|
9
|
-
var utils_1 = require("../../utils");
|
|
10
|
-
var Avatar = function (_a) {
|
|
11
|
-
var image = _a.image, _b = _a.icon, icon = _b === void 0 ? "user" : _b, shape = _a.shape, size = _a.size, className = _a.className;
|
|
12
|
-
var defaultIcon = iconList_1.iconList.find(function (item) { return item.key === (icon || "user"); });
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "".concat(image ? "lu-bg-primary-200" : "lu-bg-gray-100", " flex items-center justify-center ").concat(shape, " overflow-hidden ").concat(className), style: (0, utils_1.avatarBackgroundSize)(size), "data-testid": "lu-avatar", children: image ? ((0, jsx_runtime_1.jsx)("img", { src: image, alt: "image", className: "w-full h-full object-cover" })) : ((0, jsx_runtime_1.jsx)(LUIcon_1.default, { size: size, icon: defaultIcon === null || defaultIcon === void 0 ? void 0 : defaultIcon.key, fill: "lu-neutral-icon-dark", className: "" })) }) }));
|
|
14
|
-
};
|
|
15
|
-
exports.default = Avatar;
|
|
@@ -1,52 +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._Avatar = void 0;
|
|
18
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var utils_1 = require("../../utils");
|
|
20
|
-
var Avatar_1 = __importDefault(require("./Avatar"));
|
|
21
|
-
exports.default = {
|
|
22
|
-
title: "Components/Avatar",
|
|
23
|
-
component: Avatar_1.default,
|
|
24
|
-
};
|
|
25
|
-
var Template = function (args) { return (0, jsx_runtime_1.jsx)(Avatar_1.default, __assign({}, args)); };
|
|
26
|
-
exports._Avatar = Template.bind({});
|
|
27
|
-
exports._Avatar.args = {
|
|
28
|
-
image: "/images/avatar.png",
|
|
29
|
-
shape: "square",
|
|
30
|
-
size: "lu-avatar-massive",
|
|
31
|
-
className: "",
|
|
32
|
-
icon: "user",
|
|
33
|
-
};
|
|
34
|
-
exports._Avatar.argTypes = {
|
|
35
|
-
shape: {
|
|
36
|
-
control: {
|
|
37
|
-
type: "select",
|
|
38
|
-
labels: Object.fromEntries(utils_1.avatarShapeList.map(function (borderRadius) { return [
|
|
39
|
-
borderRadius.key,
|
|
40
|
-
borderRadius.label,
|
|
41
|
-
]; })),
|
|
42
|
-
},
|
|
43
|
-
options: utils_1.avatarShapeList.map(function (borderRadius) { return borderRadius.key; }),
|
|
44
|
-
},
|
|
45
|
-
size: {
|
|
46
|
-
control: {
|
|
47
|
-
type: "select",
|
|
48
|
-
labels: Object.fromEntries(utils_1.avatarSizesList.map(function (size) { return [size.key, size.label]; })),
|
|
49
|
-
},
|
|
50
|
-
options: utils_1.avatarSizesList.map(function (size) { return size.key; }),
|
|
51
|
-
},
|
|
52
|
-
};
|
|
@@ -1,54 +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 Avatar_1 = __importDefault(require("./Avatar"));
|
|
9
|
-
jest.mock("../Icons/LUIcon", function () { return ({
|
|
10
|
-
__esModule: true,
|
|
11
|
-
default: jest.fn(function () { return (0, jsx_runtime_1.jsx)("div", { "data-testid": "mock-luIcon", children: "user" }); }),
|
|
12
|
-
}); });
|
|
13
|
-
describe("Avatar Component", function () {
|
|
14
|
-
it("renders an image when image prop is provided", function () {
|
|
15
|
-
var testImage = "/images/avatar.png";
|
|
16
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Avatar_1.default, { image: testImage }));
|
|
17
|
-
var img = react_1.screen.getByRole("img");
|
|
18
|
-
expect(img).toHaveAttribute("src", testImage);
|
|
19
|
-
expect(img).toHaveAttribute("alt", "image");
|
|
20
|
-
});
|
|
21
|
-
it("renders default icon when no image is provided", function () {
|
|
22
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Avatar_1.default, {}));
|
|
23
|
-
var iconDiv = react_1.screen.getByTestId("mock-luIcon");
|
|
24
|
-
expect(iconDiv.textContent).toBe("user");
|
|
25
|
-
});
|
|
26
|
-
it("renders with default icon when no icon prop is provided and no image is present", function () {
|
|
27
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Avatar_1.default, {}));
|
|
28
|
-
var icon = react_1.screen.getByTestId("mock-luIcon");
|
|
29
|
-
expect(icon.textContent).toBe("user");
|
|
30
|
-
});
|
|
31
|
-
it("renders default icon when provided icon does not exist in the list", function () {
|
|
32
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Avatar_1.default, { icon: "" }));
|
|
33
|
-
var icon = react_1.screen.getByTestId("mock-luIcon");
|
|
34
|
-
expect(icon.textContent).toBe("user"); // Assuming 'user' is the fallback when the icon is not found
|
|
35
|
-
});
|
|
36
|
-
it("renders default icon when no icon and no image are provided", function () {
|
|
37
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Avatar_1.default, {}));
|
|
38
|
-
var icon = react_1.screen.getByTestId("mock-luIcon");
|
|
39
|
-
expect(icon).toBeInTheDocument(); // Ensure the icon is in the document
|
|
40
|
-
expect(icon.textContent).toBe("user"); // Check that the default icon is 'user'
|
|
41
|
-
});
|
|
42
|
-
it("applies both shape and size props to class when provided", function () {
|
|
43
|
-
var shape = "square";
|
|
44
|
-
var size = "lu-avatar-massive";
|
|
45
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(Avatar_1.default, { shape: shape, size: size }));
|
|
46
|
-
var avatarDiv = react_1.screen.getByTestId("lu-avatar");
|
|
47
|
-
// Check if the shape is part of the class
|
|
48
|
-
expect(avatarDiv.className).toContain(shape);
|
|
49
|
-
// Check for the correct style application
|
|
50
|
-
var styles = window.getComputedStyle(avatarDiv);
|
|
51
|
-
expect(styles.width).toBe("200px");
|
|
52
|
-
expect(styles.height).toBe("200px");
|
|
53
|
-
});
|
|
54
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BorderRadius = void 0;
|
|
4
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var BorderRadiusTable_1 = require("./BorderRadiusTable");
|
|
6
|
-
var BorderRadiusView_1 = require("./BorderRadiusView");
|
|
7
|
-
var BorderRadius = function (_a) {
|
|
8
|
-
var borderRadius = _a.borderRadius;
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100", children: "Border Radius" }), (0, jsx_runtime_1.jsx)(BorderRadiusTable_1.BorderRadiusTable, {}), (0, jsx_runtime_1.jsx)("div", { className: "lu-mt-150", children: (0, jsx_runtime_1.jsx)(BorderRadiusView_1.BorderRadiusView, { borderRadius: borderRadius }) })] }));
|
|
10
|
-
};
|
|
11
|
-
exports.BorderRadius = BorderRadius;
|
|
@@ -1,38 +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._BorderRadius = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var BorderRadius_1 = require("./BorderRadius");
|
|
17
|
-
var utils_1 = require("../../../utils");
|
|
18
|
-
exports.default = {
|
|
19
|
-
title: "Components/Border",
|
|
20
|
-
component: BorderRadius_1.BorderRadius,
|
|
21
|
-
};
|
|
22
|
-
var Template = function (args) { return (0, jsx_runtime_1.jsx)(BorderRadius_1.BorderRadius, __assign({}, args)); };
|
|
23
|
-
exports._BorderRadius = Template.bind({});
|
|
24
|
-
exports._BorderRadius.args = {
|
|
25
|
-
borderRadius: "lu-border-rounded-xs",
|
|
26
|
-
};
|
|
27
|
-
exports._BorderRadius.argTypes = {
|
|
28
|
-
borderRadius: {
|
|
29
|
-
control: {
|
|
30
|
-
type: "select",
|
|
31
|
-
labels: Object.fromEntries(utils_1.borderRadiusList.map(function (borderRadius) { return [
|
|
32
|
-
borderRadius.key,
|
|
33
|
-
borderRadius.label,
|
|
34
|
-
]; })),
|
|
35
|
-
},
|
|
36
|
-
options: utils_1.borderRadiusList.map(function (borderRadius) { return borderRadius.key; }),
|
|
37
|
-
},
|
|
38
|
-
};
|
|
@@ -1,25 +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
|
-
var BorderRadius_1 = require("./BorderRadius");
|
|
6
|
-
describe("BorderRadius Component", function () {
|
|
7
|
-
it("renders BorderRadius component with table and border radius view", function () {
|
|
8
|
-
var borderRadius = "lu-border-rounded-xs"; // Example border radius token
|
|
9
|
-
(0, react_1.render)((0, jsx_runtime_1.jsx)(BorderRadius_1.BorderRadius, { borderRadius: borderRadius }));
|
|
10
|
-
// Check if the main title 'Border Radius' is displayed
|
|
11
|
-
expect(react_1.screen.getByText("Border Radius")).toBeInTheDocument();
|
|
12
|
-
// Verify the BorderRadiusTable renders correctly
|
|
13
|
-
expect(react_1.screen.getByText("Alias Token Name")).toBeInTheDocument();
|
|
14
|
-
expect(react_1.screen.getByText("Base unit Multiplier of 8")).toBeInTheDocument();
|
|
15
|
-
expect(react_1.screen.getByText("Value(PX)(REM)")).toBeInTheDocument();
|
|
16
|
-
// Verify the 'lu-border-rounded-md' row data is in the table
|
|
17
|
-
expect(react_1.screen.getByText("lu-border-rounded-md")).toBeInTheDocument();
|
|
18
|
-
expect(react_1.screen.getByText("0.75x")).toBeInTheDocument();
|
|
19
|
-
expect(react_1.screen.getByText("6px = 0.375rem")).toBeInTheDocument();
|
|
20
|
-
// Check if BorderRadiusView is rendered with the correct border radius class
|
|
21
|
-
var borderRadiusElement = react_1.screen.getByTestId("border-radius");
|
|
22
|
-
expect(borderRadiusElement).toHaveClass("lu-border-rounded-xs");
|
|
23
|
-
expect(borderRadiusElement).toHaveClass("border-primary-600");
|
|
24
|
-
});
|
|
25
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const BorderRadiusTable: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BorderRadiusTable = void 0;
|
|
4
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var utils_1 = require("../../../utils");
|
|
6
|
-
var BorderRadiusTable = function () {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("table", { className: "lu-width-100 lu-font-size-x-small lu-font-weight-medium", children: [(0, jsx_runtime_1.jsx)("thead", { className: "bg-primary-100", children: (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { className: "".concat(utils_1.table_header_className), children: "Alias Token Name" }), (0, jsx_runtime_1.jsx)("th", { className: "".concat(utils_1.table_header_className), children: "Base unit Multiplier of 8" }), (0, jsx_runtime_1.jsx)("th", { className: "".concat(utils_1.table_header_className), children: "Value(PX)(REM)" })] }) }), (0, jsx_runtime_1.jsxs)("tbody", { children: [(0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-none" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0px = 0rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-xs" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0.25x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "2px = 0.125rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-sm" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0.5x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "4px = 0.25rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-md" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0.75x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "6px = 0.375rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-lg" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "1x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "8px = 0.5rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-xl" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "1.5x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "12px = 0.75rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-2xl" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "2x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "16px = 1rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-3xl" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "3x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "24px = 1.5rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-full" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "100x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "9999px" }) })] })] })] }) }));
|
|
8
|
-
};
|
|
9
|
-
exports.BorderRadiusTable = BorderRadiusTable;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BorderRadiusView = void 0;
|
|
4
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var BorderRadiusView = function (_a) {
|
|
6
|
-
var borderRadius = _a.borderRadius;
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "border-primary-600 lu-pd-200 lu-size-2500 lu-border-width-125 ".concat(borderRadius), "data-testid": "border-radius", children: (0, jsx_runtime_1.jsx)("p", { className: "lu-bg-neutral-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded lu-font-size-x-small", children: borderRadius }) }) }));
|
|
8
|
-
};
|
|
9
|
-
exports.BorderRadiusView = BorderRadiusView;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BorderWidth = void 0;
|
|
4
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var BorderWidthTable_1 = require("./BorderWidthTable");
|
|
6
|
-
var ViewBorderWidth_1 = require("./ViewBorderWidth");
|
|
7
|
-
var BorderWidth = function (_a) {
|
|
8
|
-
var border = _a.border;
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100", children: "Border Width" }), (0, jsx_runtime_1.jsx)(BorderWidthTable_1.BorderWidthTable, {}), (0, jsx_runtime_1.jsx)("div", { className: "lu-mt-150", children: (0, jsx_runtime_1.jsx)(ViewBorderWidth_1.ViewBorderWidth, { border: border }) })] }));
|
|
10
|
-
};
|
|
11
|
-
exports.BorderWidth = BorderWidth;
|