linkedunion-design-kit 1.4.6 → 1.4.8

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.
Files changed (193) hide show
  1. package/README.md +20 -8
  2. package/dist/app/layout.d.ts +2 -2
  3. package/dist/app/layout.js +5 -5
  4. package/dist/app/page.js +2 -2
  5. package/dist/app/scripts.js +1 -1
  6. package/dist/components/Avatar/Avatar.d.ts +1 -1
  7. package/dist/components/Avatar/Avatar.js +2 -5
  8. package/dist/components/Avatar/Avatar.stories.js +15 -6
  9. package/dist/components/Border/BorderRadius/BorderRadius.stories.js +8 -2
  10. package/dist/components/Border/BorderRadius/BorderRadiusTable.js +1 -1
  11. package/dist/components/Border/BorderRadius/BorderRadiusView.js +1 -1
  12. package/dist/components/Border/BorderWidth/BorderWidth.stories.js +8 -2
  13. package/dist/components/Border/BorderWidth/BorderWidthTable.js +1 -1
  14. package/dist/components/Border/BorderWidth/ViewBorderWidth.js +1 -1
  15. package/dist/components/Button/Button.d.ts +1 -1
  16. package/dist/components/Button/Button.js +8 -2
  17. package/dist/components/Button/Button.stories.js +56 -22
  18. package/dist/components/Color/BackgroundColor/Color.js +1 -1
  19. package/dist/components/Color/BackgroundColor/Color.stories.js +25 -13
  20. package/dist/components/Color/BackgroundColor/index.d.ts +7 -0
  21. package/dist/components/Color/BackgroundColor/index.js +15 -0
  22. package/dist/components/Color/TextColor.d.ts +1 -1
  23. package/dist/components/Color/TextColor.js +2 -2
  24. package/dist/components/Color/TextColor.stories.js +4 -1
  25. package/dist/components/Icons/IconView.stories.js +1 -1
  26. package/dist/components/Icons/LUIcon.js +1 -1
  27. package/dist/components/Icons/LUIcon.stories.js +16 -7
  28. package/dist/components/Images/LuImage.d.ts +1 -1
  29. package/dist/components/Images/LuImage.js +2 -2
  30. package/dist/components/Images/LuImage.stories.js +7 -9
  31. package/dist/components/MediaCard/Card.d.ts +1 -1
  32. package/dist/components/MediaCard/Card.js +30 -17
  33. package/dist/components/MediaCard/Card.stories.js +21 -9
  34. package/dist/components/MediaCard/ContactProfile/ContactProfile.js +23 -0
  35. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.d.ts +2 -0
  36. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.js +9 -0
  37. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.d.ts +2 -0
  38. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.js +9 -0
  39. package/dist/components/MediaCard/PostByCategory/PostByCategory.js +23 -0
  40. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.d.ts +2 -0
  41. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +9 -0
  42. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.d.ts +2 -0
  43. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +9 -0
  44. package/dist/components/MediaCard/card.module.css +52 -0
  45. package/dist/components/Size/MinWidthHeight.d.ts +1 -1
  46. package/dist/components/Size/MinWidthHeight.stories.js +11 -5
  47. package/dist/components/Size/Size.js +1 -1
  48. package/dist/components/Size/Size.stories.js +6 -8
  49. package/dist/components/Size/WidthHeight.stories.js +10 -4
  50. package/dist/components/Spacing/Margin/Margin.js +1 -1
  51. package/dist/components/Spacing/Margin/MarginBottom.js +1 -1
  52. package/dist/components/Spacing/Margin/MarginLeft.js +1 -1
  53. package/dist/components/Spacing/Margin/MarginRight.js +1 -1
  54. package/dist/components/Spacing/Margin/MarginToken.js +3 -1
  55. package/dist/components/Spacing/Margin/MarginTop.js +1 -1
  56. package/dist/components/Spacing/Margin/MarginX.d.ts +1 -0
  57. package/dist/components/Spacing/Margin/MarginX.js +5 -0
  58. package/dist/components/Spacing/Margin/MarginY.d.ts +1 -0
  59. package/dist/components/Spacing/Margin/MarginY.js +5 -0
  60. package/dist/components/Spacing/Padding/Padding.js +1 -1
  61. package/dist/components/Spacing/Padding/PaddingBottom.js +1 -1
  62. package/dist/components/Spacing/Padding/PaddingLeft.js +1 -1
  63. package/dist/components/Spacing/Padding/PaddingRight.js +1 -1
  64. package/dist/components/Spacing/Padding/PaddingToken.js +3 -1
  65. package/dist/components/Spacing/Padding/PaddingTop.js +1 -1
  66. package/dist/components/Spacing/Padding/PaddingX.d.ts +1 -0
  67. package/dist/components/Spacing/Padding/PaddingX.js +5 -0
  68. package/dist/components/Spacing/Padding/PaddingY.d.ts +1 -0
  69. package/dist/components/Spacing/Padding/PaddingY.js +5 -0
  70. package/dist/components/Title/Title.d.ts +6 -0
  71. package/dist/components/Title/Title.js +7 -0
  72. package/dist/components/Title/Title.module.css +56 -0
  73. package/dist/components/Title/Title.stories.d.ts +5 -0
  74. package/dist/components/Title/Title.stories.js +49 -0
  75. package/dist/components/Title/Title.test.d.ts +1 -0
  76. package/dist/components/Title/Title.test.js +24 -0
  77. package/dist/components/Typography/Body/Body.d.ts +2 -0
  78. package/dist/components/{MediaCard/Card.jsx → Typography/Body/Body.js} +6 -10
  79. package/dist/components/Typography/Body/Body.stories.d.ts +6 -0
  80. package/dist/components/Typography/Body/Body.stories.js +68 -0
  81. package/dist/components/Typography/Body/body.test.d.ts +1 -0
  82. package/dist/components/Typography/Body/body.test.js +44 -0
  83. package/dist/components/Typography/Body/index.d.ts +14 -0
  84. package/dist/components/Typography/Body/index.js +50 -0
  85. package/dist/components/Typography/Body/type.d.ts +7 -0
  86. package/dist/components/Typography/Body/type.js +1 -0
  87. package/dist/components/Typography/Display/Display.d.ts +2 -0
  88. package/dist/components/Typography/Display/Display.js +29 -0
  89. package/dist/components/Typography/Display/Display.stories.d.ts +6 -0
  90. package/dist/components/Typography/Display/Display.stories.js +72 -0
  91. package/dist/components/Typography/Display/Display.test.d.ts +1 -0
  92. package/dist/components/Typography/Display/Display.test.js +44 -0
  93. package/dist/components/Typography/Display/index.d.ts +38 -0
  94. package/dist/components/Typography/Display/index.js +61 -0
  95. package/dist/components/Typography/Display/type.d.ts +8 -0
  96. package/dist/components/Typography/Display/type.js +1 -0
  97. package/dist/components/Typography/Headings/Heading.test.d.ts +1 -0
  98. package/dist/components/Typography/Headings/Heading.test.js +44 -0
  99. package/dist/components/Typography/Headings/Headings.d.ts +2 -2
  100. package/dist/components/Typography/Headings/Headings.js +27 -3
  101. package/dist/components/Typography/Headings/Headings.stories.d.ts +4 -2
  102. package/dist/components/Typography/Headings/Headings.stories.js +39 -8
  103. package/dist/components/Typography/Headings/index.d.ts +21 -0
  104. package/dist/components/Typography/Headings/index.js +68 -0
  105. package/dist/components/Typography/Headings/type.d.ts +6 -0
  106. package/dist/components/Typography/Headings/type.js +1 -0
  107. package/dist/components/Typography/Typography.css +3002 -0
  108. package/dist/components/Typography/Typography.d.ts +1 -1
  109. package/dist/components/Typography/Typography.js +1 -1
  110. package/dist/components/Typography/Typography.stories.js +36 -15
  111. package/dist/global/components/Table/Table.d.ts +14 -0
  112. package/dist/global/components/Table/Table.js +12 -0
  113. package/dist/index.d.ts +13 -10
  114. package/dist/index.js +13 -10
  115. package/dist/styles/global.css +1151 -8030
  116. package/dist/tailwind.config.d.ts +1 -1
  117. package/dist/tailwind.config.js +85 -46
  118. package/dist/utils/colors.d.ts +7 -0
  119. package/dist/utils/colors.js +7 -0
  120. package/dist/utils/constants.d.ts +2 -0
  121. package/dist/utils/constants.js +2 -0
  122. package/dist/utils/enum.js +14 -14
  123. package/dist/utils/enums.d.ts +51 -0
  124. package/dist/utils/enums.js +56 -0
  125. package/dist/utils/iconList.js +479 -479
  126. package/dist/utils/index.d.ts +379 -472
  127. package/dist/utils/index.js +1383 -1527
  128. package/package.json +5 -2
  129. package/dist/app/layout.jsx +0 -13
  130. package/dist/app/page.jsx +0 -71
  131. package/dist/components/Avatar/Avatar.jsx +0 -15
  132. package/dist/components/Avatar/Avatar.stories.jsx +0 -25
  133. package/dist/components/Border/BorderRadius/BorderRadius.jsx +0 -12
  134. package/dist/components/Border/BorderRadius/BorderRadius.stories.jsx +0 -17
  135. package/dist/components/Border/BorderRadius/BorderRadiusTable.jsx +0 -61
  136. package/dist/components/Border/BorderRadius/BorderRadiusView.jsx +0 -8
  137. package/dist/components/Border/BorderWidth/BorderWidth.jsx +0 -12
  138. package/dist/components/Border/BorderWidth/BorderWidth.stories.jsx +0 -17
  139. package/dist/components/Border/BorderWidth/BorderWidthTable.jsx +0 -36
  140. package/dist/components/Border/BorderWidth/ViewBorderWidth.jsx +0 -8
  141. package/dist/components/Button/Button.jsx +0 -16
  142. package/dist/components/Button/Button.stories.jsx +0 -110
  143. package/dist/components/Color/BackgroundColor/Color.jsx +0 -16
  144. package/dist/components/Color/BackgroundColor/Color.stories.jsx +0 -76
  145. package/dist/components/Color/Color.d.ts +0 -2
  146. package/dist/components/Color/Color.js +0 -5
  147. package/dist/components/Color/Color.stories.d.ts +0 -10
  148. package/dist/components/Color/Color.stories.js +0 -88
  149. package/dist/components/Color/TextColor.jsx +0 -6
  150. package/dist/components/Color/TextColor.stories.jsx +0 -17
  151. package/dist/components/Icons/IconView.jsx +0 -23
  152. package/dist/components/Icons/IconView.stories.jsx +0 -8
  153. package/dist/components/Icons/LUIcon.jsx +0 -20
  154. package/dist/components/Icons/LUIcon.stories.jsx +0 -29
  155. package/dist/components/Images/LuImage.jsx +0 -7
  156. package/dist/components/Images/LuImage.stories.jsx +0 -39
  157. package/dist/components/MediaCard/Card.stories.jsx +0 -35
  158. package/dist/components/MediaCard/ContactProfile.js +0 -10
  159. package/dist/components/MediaCard/ContactProfile.jsx +0 -39
  160. package/dist/components/MediaCard/PostByCategory.js +0 -11
  161. package/dist/components/MediaCard/PostByCategory.jsx +0 -46
  162. package/dist/components/Navigation/TopNavigation/TopNavigation.d.ts +0 -2
  163. package/dist/components/Navigation/TopNavigation/TopNavigation.js +0 -8
  164. package/dist/components/Navigation/TopNavigation/TopNavigation.jsx +0 -45
  165. package/dist/components/Navigation/TopNavigation/TopNavigation.stories.d.ts +0 -4
  166. package/dist/components/Navigation/TopNavigation/TopNavigation.stories.js +0 -52
  167. package/dist/components/Navigation/TopNavigation/TopNavigation.stories.jsx +0 -40
  168. package/dist/components/Size/MinWidthHeight.jsx +0 -8
  169. package/dist/components/Size/MinWidthHeight.stories.jsx +0 -22
  170. package/dist/components/Size/Size.jsx +0 -6
  171. package/dist/components/Size/Size.stories.jsx +0 -22
  172. package/dist/components/Size/WidthHeight.jsx +0 -8
  173. package/dist/components/Size/WidthHeight.stories.jsx +0 -22
  174. package/dist/components/Spacing/Margin/Margin.jsx +0 -86
  175. package/dist/components/Spacing/Margin/MarginBottom.jsx +0 -86
  176. package/dist/components/Spacing/Margin/MarginLeft.jsx +0 -86
  177. package/dist/components/Spacing/Margin/MarginRight.jsx +0 -86
  178. package/dist/components/Spacing/Margin/MarginToken.jsx +0 -27
  179. package/dist/components/Spacing/Margin/MarginToken.stories.jsx +0 -7
  180. package/dist/components/Spacing/Margin/MarginTop.jsx +0 -87
  181. package/dist/components/Spacing/Padding/Padding.jsx +0 -87
  182. package/dist/components/Spacing/Padding/PaddingBottom.jsx +0 -86
  183. package/dist/components/Spacing/Padding/PaddingLeft.jsx +0 -86
  184. package/dist/components/Spacing/Padding/PaddingRight.jsx +0 -87
  185. package/dist/components/Spacing/Padding/PaddingToken.jsx +0 -27
  186. package/dist/components/Spacing/Padding/PaddingToken.stories.jsx +0 -7
  187. package/dist/components/Spacing/Padding/PaddingTop.jsx +0 -87
  188. package/dist/components/Typography/Headings/Headings.jsx +0 -6
  189. package/dist/components/Typography/Headings/Headings.stories.jsx +0 -19
  190. package/dist/components/Typography/Typography.jsx +0 -8
  191. package/dist/components/Typography/Typography.stories.jsx +0 -51
  192. /package/dist/components/MediaCard/{ContactProfile.d.ts → ContactProfile/ContactProfile.d.ts} +0 -0
  193. /package/dist/components/MediaCard/{PostByCategory.d.ts → PostByCategory/PostByCategory.d.ts} +0 -0
@@ -1,88 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { Color } from "../../components/Color/Color";
14
- import { colorGroups } from "../../utils";
15
- export default {
16
- title: "Components/Color",
17
- component: Color,
18
- argTypes: {
19
- label: { control: "text" },
20
- },
21
- };
22
- var Template = function (args) { return _jsx(Color, __assign({}, args)); };
23
- export var Primary = Template.bind({});
24
- Primary.args = {
25
- label: "Primary",
26
- color: "bg-primary-500", // Default color
27
- };
28
- Primary.argTypes = {
29
- color: {
30
- control: { type: "select" },
31
- options: colorGroups.primary,
32
- },
33
- };
34
- export var Gray = Template.bind({});
35
- Gray.argTypes = {
36
- color: {
37
- control: { type: "select" },
38
- options: colorGroups.gray,
39
- },
40
- };
41
- Gray.args = {
42
- label: "Gray",
43
- color: "bg-gray-500",
44
- };
45
- export var Success = Template.bind({});
46
- Success.argTypes = {
47
- color: {
48
- control: { type: "select" },
49
- options: colorGroups.success,
50
- },
51
- };
52
- Success.args = {
53
- label: "Success",
54
- color: "bg-success-500",
55
- };
56
- export var Warning = Template.bind({});
57
- Warning.argTypes = {
58
- color: {
59
- control: { type: "select" },
60
- options: colorGroups.warning,
61
- },
62
- };
63
- Warning.args = {
64
- label: "Warning",
65
- color: "bg-warning-500",
66
- };
67
- export var Danger = Template.bind({});
68
- Danger.argTypes = {
69
- color: {
70
- control: { type: "select" },
71
- options: colorGroups.danger,
72
- },
73
- };
74
- Danger.args = {
75
- label: "Danger",
76
- color: "bg-danger-500",
77
- };
78
- export var Info = Template.bind({});
79
- Info.argTypes = {
80
- color: {
81
- control: { type: "select" },
82
- options: colorGroups.info,
83
- },
84
- };
85
- Info.args = {
86
- label: "Info",
87
- color: "bg-info-500",
88
- };
@@ -1,6 +0,0 @@
1
- export var TextColor = function (_a) {
2
- var _b = _a.color, color = _b === void 0 ? 'lu-text-default' : _b;
3
- return (<div className={"".concat(color)}>
4
- .{color}
5
- </div>);
6
- };
@@ -1,17 +0,0 @@
1
- import { TextColor } from "./TextColor";
2
- import { textColorList } from "../../utils";
3
- export default {
4
- title: "Components/Color",
5
- component: TextColor,
6
- };
7
- var Template = function (args) { return <TextColor {...args}/>; };
8
- export var textColor = Template.bind({});
9
- textColor.args = {
10
- color: "lu-text-default", // Default color
11
- };
12
- textColor.argTypes = {
13
- color: {
14
- control: { type: "select", labels: Object.fromEntries(textColorList.map(function (color) { return [color.key, color.label]; })) },
15
- options: textColorList.map(function (color) { return color.key; }),
16
- },
17
- };
@@ -1,23 +0,0 @@
1
- import { iconList } from "../../utils/iconList";
2
- export var IconView = function () {
3
- return (<>
4
- <div className="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-6 gap-6" data-testid="icons-list">
5
- {iconList.map(function (icon, index) {
6
- return (<div key={index} className="flex flex-col items-center justify-center bg-gray-100 lu-border-rounded-lg lu-pd-200 shadow-md hover:bg-gray-200" data-testid="single-icon">
7
- <svg width="25" height="25" viewBox="0 0 32 32" fill="none" className="mb-2" role="img">
8
- <g clipPath="url(#clip0_9168_14965)">
9
- <path d={icon === null || icon === void 0 ? void 0 : icon.path} fill="#070808"/>
10
- </g>
11
- <defs>
12
- <clipPath id="clip0_9168_14965">
13
- <rect width="32" height="32" fill="black"/>
14
- </clipPath>
15
- </defs>
16
- </svg>
17
- <p className="lu-font-size-x-small lu-font-weight-regular lu-text-gray text-center">{icon === null || icon === void 0 ? void 0 : icon.label}</p>
18
- </div>);
19
- })}
20
- </div>
21
-
22
- </>);
23
- };
@@ -1,8 +0,0 @@
1
- import { IconView } from "./IconView";
2
- export default {
3
- title: "Components/Icon",
4
- component: IconView,
5
- tags: ['!autodocs'],
6
- };
7
- var Template = function (args) { return <IconView {...args}/>; };
8
- export var iconView = Template.bind({});
@@ -1,20 +0,0 @@
1
- import { iconList } from "../../utils/iconList";
2
- export var LUIcon = function (_a) {
3
- var _b;
4
- var size = _a.size, fill = _a.fill, icon = _a.icon, className = _a.className;
5
- var selectedIcon = iconList.find(function (item) { return item.key === icon; });
6
- return (<>
7
- {/* <div data-testid="single-icon"> */}
8
- <svg className={"".concat(size, " ").concat(className)} viewBox="0 0 32 32" fill="none">
9
- <g clip-path="url(#clip0_9168_14965)">
10
- <path d={(_b = selectedIcon === null || selectedIcon === void 0 ? void 0 : selectedIcon.path) !== null && _b !== void 0 ? _b : ''} className={"".concat(fill, " icon")}/>
11
- </g>
12
- <defs>
13
- <clipPath id="clip0_9168_14965">
14
- <rect width="32" height="32" fill="black"/>
15
- </clipPath>
16
- </defs>
17
- </svg>
18
- {/* </div> */}
19
- </>);
20
- };
@@ -1,29 +0,0 @@
1
- import { LUIcon } from "./LUIcon";
2
- import { iconColorList, iconSizeList } from "../../utils";
3
- import { iconList } from "../../utils/iconList";
4
- export default {
5
- title: "Components/Icon",
6
- component: LUIcon,
7
- tags: ['autodocs'],
8
- };
9
- var Template = function (args) { return <LUIcon {...args}/>; };
10
- export var icon = Template.bind({});
11
- icon.args = {
12
- size: 'lu-icon-x-small',
13
- fill: 'lu-primary-icon-default',
14
- icon: iconList[0].key,
15
- };
16
- icon.argTypes = {
17
- size: {
18
- control: { type: "select", labels: Object.fromEntries(iconSizeList.map(function (size) { return [size.key, size.label]; })) },
19
- options: iconSizeList.map(function (size) { return size.key; }),
20
- },
21
- fill: {
22
- control: { type: "select", labels: Object.fromEntries(iconColorList.map(function (color) { return [color.key, color.label]; })) },
23
- options: iconColorList.map(function (color) { return color.key; }),
24
- },
25
- icon: {
26
- control: { type: "select", labels: Object.fromEntries(iconList.map(function (icon) { return [icon.key, icon.label]; })) },
27
- options: iconList.map(function (icon) { return icon.key; }),
28
- }
29
- };
@@ -1,7 +0,0 @@
1
- import Image from "next/image";
2
- export var LuImage = function (_a) {
3
- var image = _a.image, aspectRatio = _a.aspectRatio, _b = _a.width, width = _b === void 0 ? 240 : _b, _c = _a.height, height = _c === void 0 ? 240 : _c, className = _a.className;
4
- return (<Image src={image || ''} alt="Image" width={width} height={height} // Specify the height to maintain aspect ratio
5
- className={"".concat(aspectRatio, " ").concat(className)} // Apply aspect ratio and additional classes
6
- />);
7
- };
@@ -1,39 +0,0 @@
1
- import { LuImage } from "./LuImage";
2
- import { landscapeaspectRatioList, portraitaspectRatioList } from "../../utils";
3
- import { orientationEnum } from "../../utils/enum";
4
- export default {
5
- title: "Components/Image",
6
- component: LuImage,
7
- };
8
- var Template = function (args, _a) {
9
- var argTypes = _a.argTypes;
10
- //Show aspectRatio options based on orientation(landscape)
11
- var isLandscape = args.orientation === orientationEnum.landscape;
12
- argTypes.aspectRatio.options = isLandscape ? landscapeaspectRatioList.map(function (ratio) { return ratio.key; }) : portraitaspectRatioList.map(function (ratio) { return ratio.key; });
13
- argTypes.aspectRatio.control.labels = Object.fromEntries((isLandscape ? landscapeaspectRatioList : portraitaspectRatioList).map(function (ratio) { return [
14
- ratio.key,
15
- ratio.label,
16
- ]; }));
17
- return <LuImage {...args}/>;
18
- };
19
- export var image = Template.bind({});
20
- image.args = {
21
- image: '/images/demo-image.jpg',
22
- orientation: orientationEnum.portrait,
23
- aspectRatio: portraitaspectRatioList[0].key,
24
- width: 240,
25
- height: 240,
26
- className: ''
27
- };
28
- image.argTypes = {
29
- orientation: {
30
- control: { type: "select" },
31
- options: [orientationEnum.portrait, orientationEnum.landscape],
32
- },
33
- //Show Default aspectRatio options for portrait orientation
34
- aspectRatio: {
35
- control: { type: "select" },
36
- options: portraitaspectRatioList.map(function (ratio) { return ratio.key; }),
37
- labels: Object.fromEntries(portraitaspectRatioList.map(function (ratio) { return [ratio.key, ratio.label]; })),
38
- },
39
- };
@@ -1,35 +0,0 @@
1
- import { Card } from "./Card";
2
- import { cardLayoutEnum, orientationEnum, sectionType } from "../../utils/enum";
3
- import { sectionTypeList } from "../../utils";
4
- export default {
5
- title: "Components/Card",
6
- component: Card,
7
- };
8
- var Template = function (args) { return <Card {...args}/>; };
9
- export var card = Template.bind({});
10
- card.args = {
11
- type: sectionType.postByCategoriesTheme,
12
- image: '/images/demo-image.jpg',
13
- heading: 'Heading Text',
14
- body: 'The quick brown fox jumps over the lazy dog.',
15
- mediaPosition: orientationEnum.landscape,
16
- layout: cardLayoutEnum.horizontal,
17
- btnLabel: 'View More',
18
- href: 'https://www.google.com/',
19
- card_title_color: 'lu-text-default',
20
- id: 1
21
- };
22
- card.argTypes = {
23
- mediaPosition: {
24
- control: { type: "select" },
25
- options: [orientationEnum.portrait, orientationEnum.landscape],
26
- },
27
- layout: {
28
- control: { type: "select" },
29
- options: [cardLayoutEnum.horizontal, cardLayoutEnum.vertical],
30
- },
31
- type: {
32
- control: { type: "select", labels: Object.fromEntries(sectionTypeList.map(function (type) { return [type.key, type.label]; })) },
33
- options: sectionTypeList.map(function (type) { return type.key; }),
34
- }
35
- };
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { cardLayoutEnum, contentTypeEnum } from "../../utils/enum";
3
- import { LuImage } from "../Images/LuImage";
4
- import { Button } from "../Button/Button";
5
- import Link from "next/link";
6
- export var ContactProfile = function (props) {
7
- return (_jsx(_Fragment, { children: props.layout === cardLayoutEnum.horizontal ?
8
- _jsxs("div", { className: "lu-pd-250 bg-white lu-border-rounded-xl ${props.className} lu-shadow-md", children: [_jsxs("div", { className: "flex gap-x-5", children: [_jsx("div", { className: "max-w-[240px] overflow-hidden lu-aspect-square horizontal_card_image", children: _jsx(LuImage, { image: props.image, aspectRatio: "", width: 160, height: 160, className: "lu-border-rounded-full lu-height-100 object-cover", orientation: props.mediaPosition }) }), _jsx("div", { className: "flex flex-1 flex-col", children: _jsxs("div", { className: "flex flex-col justify-center flex-1 h-full", children: [_jsx("div", { className: "lu-text-default lu-font-size-2x-large lu-font-weight-semibold horizontal_card_heading", children: props.heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light lu-text-caption horizontal_body_text", children: props.body })] }) })] }), _jsx(Link, { href: props.href || '', className: "lu-width-100", children: _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: props.btnLabel, variant: 'lu-btn-gray', iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 lu-mt-200 card_button" }) })] })
9
- : (_jsx(_Fragment, { children: _jsxs("div", { className: "lu-pd-400 bg-white lu-border-rounded-xl ".concat(props.className, " lu-shadow-md flex flex-col items-center"), children: [_jsx("div", { className: "max-w-[160px] overflow-hidden lu-aspect-square", children: _jsx(LuImage, { image: props.image, width: 160, height: 160, className: "lu-height-100 object-cover lu-border-rounded-full", orientation: props.mediaPosition }) }), _jsxs("div", { className: "flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]", children: [_jsx("div", { className: "lu-text-default lu-font-size-2x-large lu-font-weight-semibold vertical_card_heading", children: props.heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light lu-text-caption vertical_body_text", children: props.body })] }), _jsx(Link, { href: props.href || '', className: "lu-width-100", children: _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: props.btnLabel, variant: 'lu-btn-gray', iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100" }) })] }) })) }));
10
- };
@@ -1,39 +0,0 @@
1
- import { cardLayoutEnum, contentTypeEnum } from "../../utils/enum";
2
- import { LuImage } from "../Images/LuImage";
3
- import { Button } from "../Button/Button";
4
- import Link from "next/link";
5
- export var ContactProfile = function (props) {
6
- return (<>
7
- {props.layout === cardLayoutEnum.horizontal ?
8
- <div className="lu-pd-250 bg-white lu-border-rounded-xl ${props.className} lu-shadow-md">
9
- <div className={"flex gap-x-5"}>
10
- <div className="max-w-[240px] overflow-hidden lu-aspect-square horizontal_card_image">
11
- <LuImage image={props.image} aspectRatio="" width={160} height={160} className="lu-border-rounded-full lu-height-100 object-cover" orientation={props.mediaPosition}/>
12
- </div>
13
- <div className="flex flex-1 flex-col">
14
- <div className={"flex flex-col justify-center flex-1 h-full"}>
15
- <div className={"lu-text-default lu-font-size-2x-large lu-font-weight-semibold horizontal_card_heading"}>{props.heading}</div>
16
- <p className={"lu-base-font-size lu-font-weight-extra-light lu-text-caption horizontal_body_text"}>{props.body}</p>
17
- </div>
18
- </div>
19
- </div>
20
- <Link href={props.href || ''} className="lu-width-100">
21
- <Button contentType={contentTypeEnum.text_with_icon} label={props.btnLabel} variant='lu-btn-gray' iconRight="angle-right" rightIconSize="lu-icon-small" size="lu-btn-lg" className="lu-border-rounded-sm justify-between lu-width-100 lu-mt-200 card_button"/>
22
- </Link>
23
- </div>
24
- : (<>
25
- <div className={"lu-pd-400 bg-white lu-border-rounded-xl ".concat(props.className, " lu-shadow-md flex flex-col items-center")}>
26
- <div className="max-w-[160px] overflow-hidden lu-aspect-square">
27
- <LuImage image={props.image} width={160} height={160} className="lu-height-100 object-cover lu-border-rounded-full" orientation={props.mediaPosition}/>
28
- </div>
29
- <div className={"flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]"}>
30
- <div className={"lu-text-default lu-font-size-2x-large lu-font-weight-semibold vertical_card_heading"}>{props.heading}</div>
31
- <p className="lu-base-font-size lu-font-weight-extra-light lu-text-caption vertical_body_text">{props.body}</p>
32
- </div>
33
- <Link href={props.href || ''} className="lu-width-100">
34
- <Button contentType={contentTypeEnum.text_with_icon} label={props.btnLabel} variant='lu-btn-gray' iconRight="angle-right" rightIconSize="lu-icon-small" size="lu-btn-lg" className="lu-border-rounded-sm justify-between lu-width-100"/>
35
- </Link>
36
- </div>
37
- </>)}
38
- </>);
39
- };
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { cardLayoutEnum, contentTypeEnum } from "../../utils/enum";
3
- import { LuImage } from "../Images/LuImage";
4
- import { Button } from "../Button/Button";
5
- import Link from "next/link";
6
- import { colors } from "../../utils";
7
- export var PostByCategory = function (props) {
8
- return (_jsxs(_Fragment, { children: [(props === null || props === void 0 ? void 0 : props.layout) === cardLayoutEnum.horizontal ?
9
- _jsxs("div", { className: "lu-pd-250 bg-white lu-border-rounded-xl ".concat(props === null || props === void 0 ? void 0 : props.className, " lu-shadow-md flex gap-x-[20px] lu-width-100"), children: [_jsx("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square horizontal_card_image", children: _jsx(LuImage, { image: props === null || props === void 0 ? void 0 : props.image, aspectRatio: "", width: 240, height: 240, className: "lu-border-rounded-lg lu-width-100 lu-height-100 object-cover", orientation: props === null || props === void 0 ? void 0 : props.mediaPosition }) }), _jsxs("div", { className: "flex flex-1 flex-col", children: [_jsxs("div", { className: "flex flex-col justify-center flex-1 h-full", children: [_jsx("div", { className: "card_PostByCategory_theme1 lu-font-size-2x-large lu-font-weight-semibold horizontal_card_heading", children: props === null || props === void 0 ? void 0 : props.heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light horizontal_body_text lu-text-caption", children: props === null || props === void 0 ? void 0 : props.body })] }), _jsx(Link, { href: props.href || '', className: "lu-width-100", children: _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: props.btnLabel, variant: 'lu-btn-gray', iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 card_button" }) })] })] })
10
- : (_jsx(_Fragment, { children: _jsxs("div", { className: "lu-pd-400 bg-white lu-border-rounded-xl ".concat(props.className, " lu-shadow-md flex flex-col items-center lu-width-100"), children: [_jsx("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square", children: _jsx(LuImage, { image: props.image, width: 240, height: 240, className: "lu-width-100 lu-height-100 object-cover", orientation: props.mediaPosition }) }), _jsxs("div", { className: "flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]", children: [_jsx("div", { className: "lu-text-default lu-font-size-2x-large lu-font-weight-semibold vertical_card_heading", children: props.heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light lu-text-caption vertical_body_text", children: props.body })] }), _jsx(Link, { href: props.href || '', className: "lu-width-100", children: _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: props.btnLabel, variant: 'lu-btn-gray', iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100" }) })] }) })), _jsx("style", { jsx: true, global: true, children: "\n .card_PostByCategory_theme1{\n color: ".concat((props === null || props === void 0 ? void 0 : props.card_title_color) ? props.card_title_color : colors.default, ";\n }\n ") })] }));
11
- };
@@ -1,46 +0,0 @@
1
- import { cardLayoutEnum, contentTypeEnum } from "../../utils/enum";
2
- import { LuImage } from "../Images/LuImage";
3
- import { Button } from "../Button/Button";
4
- import Link from "next/link";
5
- export var PostByCategory = function (props) {
6
- return (<>
7
- {(props === null || props === void 0 ? void 0 : props.layout) === cardLayoutEnum.horizontal ?
8
- <div className={"lu-pd-250 bg-white lu-border-rounded-xl ".concat(props === null || props === void 0 ? void 0 : props.className, " lu-shadow-md flex gap-x-[20px] lu-width-100")}>
9
- <div className="lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square horizontal_card_image">
10
- <LuImage image={props === null || props === void 0 ? void 0 : props.image} aspectRatio="" width={240} height={240} className="lu-border-rounded-lg lu-width-100 lu-height-100 object-cover" orientation={props === null || props === void 0 ? void 0 : props.mediaPosition}/>
11
- </div>
12
- <div className="flex flex-1 flex-col">
13
- <div className={"flex flex-col justify-center flex-1 h-full"}>
14
- <div className={"lu-text-primary lu-font-size-2x-large lu-font-weight-semibold horizontal_card_heading"}>{props === null || props === void 0 ? void 0 : props.heading}</div>
15
- <p className={"lu-base-font-size lu-font-weight-extra-light horizontal_body_text"}>{props === null || props === void 0 ? void 0 : props.body}</p>
16
- </div>
17
- <Link href={props.href || ''} className="lu-width-100">
18
- <Button contentType={contentTypeEnum.text_with_icon} label={props.btnLabel} variant='lu-btn-gray' iconRight="angle-right" rightIconSize="lu-icon-small" size="lu-btn-lg" className="lu-border-rounded-sm justify-between lu-width-100 card_button"/>
19
- </Link>
20
- </div>
21
- </div>
22
- : (<>
23
- <div className={"lu-pd-400 bg-white lu-border-rounded-xl ".concat(props.className, " lu-shadow-md flex flex-col items-center lu-width-100")}>
24
- <div className="lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square">
25
- <LuImage image={props.image} width={240} height={240} className="lu-width-100 lu-height-100 object-cover" orientation={props.mediaPosition}/>
26
- </div>
27
- <div className={"flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]"}>
28
- <div className={"lu-text-danger lu-font-size-2x-large lu-font-weight-semibold vertical_card_heading"}>{props.heading}</div>
29
- <p className="lu-base-font-size lu-font-weight-extra-light vertical_body_text">{props.body}</p>
30
- </div>
31
- <Link href={props.href || ''} className="lu-width-100">
32
- <Button contentType={contentTypeEnum.text_with_icon} label={props.btnLabel} variant='lu-btn-gray' iconRight="angle-right" rightIconSize="lu-icon-small" size="lu-btn-lg" className="lu-border-rounded-sm justify-between lu-width-100"/>
33
- </Link>
34
- </div>
35
- </>)}
36
- {/* <style jsx global>
37
- {`
38
- .card-postByCategory-heading-theme1 {
39
- color: blue
40
- }
41
- .abc_uyt{
42
- background-color: red}
43
- `}
44
- </style> */}
45
- </>);
46
- };
@@ -1,2 +0,0 @@
1
- import { TopNavigationProps } from "@/types/interface";
2
- export declare const TopNavigation: ({ phoneNumber, phoneNumber2, bannerText, facebookUrl, linkedinUrl, twitterUrl, instagramUrl, onClickPhoneNumber }: TopNavigationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { LUIcon } from "../../../components/Icons/LUIcon";
3
- import Link from "next/link";
4
- export var TopNavigation = function (_a) {
5
- var phoneNumber = _a.phoneNumber, phoneNumber2 = _a.phoneNumber2, bannerText = _a.bannerText, facebookUrl = _a.facebookUrl, linkedinUrl = _a.linkedinUrl, twitterUrl = _a.twitterUrl, instagramUrl = _a.instagramUrl, onClickPhoneNumber = _a.onClickPhoneNumber;
6
- return (_jsx(_Fragment, { children: (phoneNumber || phoneNumber2 || bannerText || facebookUrl || linkedinUrl || twitterUrl || instagramUrl) &&
7
- _jsx("div", { className: "lu-pr-050 lu-pl-050 bg-primary-600 lu-text-base", children: _jsxs("div", { className: "flex justify-between items-center", children: [_jsxs("div", { className: "flex lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 gap-3", children: [phoneNumber && _jsxs("div", { className: "flex items-center gap-2 cursor-pointer", onClick: onClickPhoneNumber, children: [_jsx(LUIcon, { fill: "lu-neutral-icon-light", icon: "phone", size: "lu-icon-medium" }), _jsx("div", { className: "lu-font-size-small", children: phoneNumber })] }), phoneNumber && phoneNumber2 && _jsx("div", { className: "lu-border-width-0125 contact-border" }), phoneNumber2 && _jsxs("div", { className: "flex items-center gap-2 main-navbar-contact cursor-pointer", onClick: onClickPhoneNumber, children: [_jsx(LUIcon, { fill: "lu-neutral-icon-light", icon: "phone", size: "lu-icon-medium" }), _jsx("div", { className: "lu-font-size-small", children: phoneNumber2 })] })] }), bannerText && _jsx("div", { className: "lu-text-center lu-text-decoration-underline lu-font-weight-semibold lu-font-size-small promotional-banner-text", children: bannerText }), _jsxs("div", { className: "flex gap-2", children: [facebookUrl && _jsx(Link, { href: facebookUrl, target: "_blank", "aria-label": "Facebook", children: _jsx(LUIcon, { fill: "lu-info-icon-light", icon: 'facebook-f', size: "lu-icon-x-small", className: "cursor-pointer" }) }), twitterUrl && _jsx(Link, { href: twitterUrl, target: "_blank", "aria-label": "Twitter", children: _jsx(LUIcon, { fill: "lu-info-icon-light", icon: 'x-twitter', size: "lu-icon-x-small", className: "cursor-pointer" }) }), instagramUrl && _jsx(Link, { href: instagramUrl, target: "_blank", "aria-label": "Instagram", children: _jsx(LUIcon, { fill: "lu-info-icon-light", icon: 'instagram', size: "lu-icon-x-small", className: "cursor-pointer" }) }), linkedinUrl && _jsx(Link, { href: linkedinUrl, target: "_blank", "aria-label": "Linkedin", children: _jsx(LUIcon, { fill: "lu-info-icon-light", icon: 'linkedin-in', size: "lu-icon-x-small", className: "cursor-pointer" }) })] })] }) }) }));
8
- };
@@ -1,45 +0,0 @@
1
- import { LUIcon } from "../../../components/Icons/LUIcon";
2
- import Link from "next/link";
3
- export var TopNavigation = function (_a) {
4
- var phoneNumber = _a.phoneNumber, phoneNumber2 = _a.phoneNumber2, bannerText = _a.bannerText, facebookUrl = _a.facebookUrl, linkedinUrl = _a.linkedinUrl, twitterUrl = _a.twitterUrl, instagramUrl = _a.instagramUrl, onClickPhoneNumber = _a.onClickPhoneNumber;
5
- return (<>
6
- {(phoneNumber || phoneNumber2 || bannerText || facebookUrl || linkedinUrl || twitterUrl || instagramUrl) &&
7
- <div className="lu-pr-050 lu-pl-050 bg-primary-600 lu-text-base">
8
- {/* Contact number1 */}
9
- <div className="flex justify-between items-center">
10
- <div className="flex lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 gap-3">
11
- {phoneNumber && <div className="flex items-center gap-2 cursor-pointer" onClick={onClickPhoneNumber}>
12
- <LUIcon fill="lu-neutral-icon-light" icon="phone" size="lu-icon-medium"/>
13
- <div className="lu-font-size-small">{phoneNumber}</div>
14
- </div>}
15
- {phoneNumber && phoneNumber2 && <div className={"lu-border-width-0125 contact-border"}></div>}
16
-
17
- {/* Contact number2 */}
18
- {phoneNumber2 && <div className="flex items-center gap-2 main-navbar-contact cursor-pointer" onClick={onClickPhoneNumber}>
19
- <LUIcon fill="lu-neutral-icon-light" icon="phone" size="lu-icon-medium"/>
20
- <div className="lu-font-size-small">{phoneNumber2}</div>
21
- </div>}
22
- </div>
23
-
24
- {/* banner text */}
25
- {bannerText && <div className="lu-text-center lu-text-decoration-underline lu-font-weight-semibold lu-font-size-small promotional-banner-text">{bannerText}</div>}
26
-
27
- {/* Social media links */}
28
- <div className="flex gap-2">
29
- {facebookUrl && <Link href={facebookUrl} target="_blank" aria-label="Facebook">
30
- <LUIcon fill="lu-info-icon-light" icon={'facebook-f'} size="lu-icon-x-small" className="cursor-pointer"/>
31
- </Link>}
32
- {twitterUrl && <Link href={twitterUrl} target="_blank" aria-label="Twitter">
33
- <LUIcon fill="lu-info-icon-light" icon={'x-twitter'} size="lu-icon-x-small" className="cursor-pointer"/>
34
- </Link>}
35
- {instagramUrl && <Link href={instagramUrl} target="_blank" aria-label="Instagram">
36
- <LUIcon fill="lu-info-icon-light" icon={'instagram'} size="lu-icon-x-small" className="cursor-pointer"/>
37
- </Link>}
38
- {linkedinUrl && <Link href={linkedinUrl} target="_blank" aria-label="Linkedin">
39
- <LUIcon fill="lu-info-icon-light" icon={'linkedin-in'} size="lu-icon-x-small" className="cursor-pointer"/>
40
- </Link>}
41
- </div>
42
- </div>
43
- </div>}
44
- </>);
45
- };
@@ -1,4 +0,0 @@
1
- import { Meta } from "@storybook/react";
2
- declare const _default: Meta;
3
- export default _default;
4
- export declare const topNavigation: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/csf").Args>;
@@ -1,52 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { TopNavigation } from "./TopNavigation";
14
- export default {
15
- title: "Components/Navigation/TopNavigation",
16
- component: TopNavigation,
17
- };
18
- var Template = function (args) { return _jsx(TopNavigation, __assign({}, args)); };
19
- export var topNavigation = Template.bind({});
20
- topNavigation.args = {
21
- phoneNumber: '+1 (XXX) XXX-XXXX',
22
- phoneNumber2: '+1 (XXX) XXX-XXXXX',
23
- bannerText: 'Creative ideas often lead to innovative solutions in daily challenges.',
24
- facebookUrl: 'https://www.facebook.com',
25
- linkedinUrl: 'https://www.linkedin.com',
26
- twitterUrl: 'https://www.twitter.com',
27
- instagramUrl: 'https://www.instagram.com',
28
- onClickPhoneNumber: function () { alert('clicked'); }
29
- };
30
- topNavigation.argTypes = {
31
- phoneNumber: {
32
- description: "Phone number 1",
33
- },
34
- phoneNumber2: {
35
- description: "Phone number 2",
36
- },
37
- bannerText: {
38
- description: "Promotional banner text",
39
- },
40
- facebookUrl: {
41
- description: "Facebook URL",
42
- },
43
- linkedinUrl: {
44
- description: "Instagram URL",
45
- },
46
- twitterUrl: {
47
- description: "Twitter URL",
48
- },
49
- instagramUrl: {
50
- description: "Instagram URL",
51
- },
52
- };
@@ -1,40 +0,0 @@
1
- import { TopNavigation } from "./TopNavigation";
2
- export default {
3
- title: "Components/Navigation/TopNavigation",
4
- component: TopNavigation,
5
- };
6
- var Template = function (args) { return <TopNavigation {...args}/>; };
7
- export var topNavigation = Template.bind({});
8
- topNavigation.args = {
9
- phoneNumber: '+1 (XXX) XXX-XXXX',
10
- phoneNumber2: '+1 (XXX) XXX-XXXXX',
11
- bannerText: 'Creative ideas often lead to innovative solutions in daily challenges.',
12
- facebookUrl: 'https://www.facebook.com',
13
- linkedinUrl: 'https://www.linkedin.com',
14
- twitterUrl: 'https://www.twitter.com',
15
- instagramUrl: 'https://www.instagram.com',
16
- onClickPhoneNumber: function () { alert('clicked'); }
17
- };
18
- topNavigation.argTypes = {
19
- phoneNumber: {
20
- description: "Phone number 1",
21
- },
22
- phoneNumber2: {
23
- description: "Phone number 2",
24
- },
25
- bannerText: {
26
- description: "Promotional banner text",
27
- },
28
- facebookUrl: {
29
- description: "Facebook URL",
30
- },
31
- linkedinUrl: {
32
- description: "Instagram URL",
33
- },
34
- twitterUrl: {
35
- description: "Twitter URL",
36
- },
37
- instagramUrl: {
38
- description: "Instagram URL",
39
- },
40
- };
@@ -1,8 +0,0 @@
1
- export var MinWidthHeight = function (_a) {
2
- var minWidth = _a.minWidth, minHeight = _a.minHeight;
3
- return (<>
4
- <div className="w-fit">
5
- <div className={"bg-blue-500 ".concat(minWidth, " ").concat(minHeight, " rounded")} data-testid="minWidthHeight-box"></div>
6
- </div>
7
- </>);
8
- };
@@ -1,22 +0,0 @@
1
- import { MinWidthHeight } from "../../components/Size/MinWidthHeight";
2
- import { minHeights, minWidths } from "../../utils";
3
- export default {
4
- title: "Components/Size",
5
- component: MinWidthHeight,
6
- };
7
- var Template = function (args) { return <MinWidthHeight {...args}/>; };
8
- export var minWidthAndHeight = Template.bind({});
9
- minWidthAndHeight.args = {
10
- minWidth: 'lu-min-width-100',
11
- minHeight: 'lu-min-height-100',
12
- };
13
- minWidthAndHeight.argTypes = {
14
- minWidth: {
15
- control: { type: "select", labels: Object.fromEntries(minWidths.map(function (size) { return [size.key, size.label]; })) },
16
- options: minWidths.map(function (size) { return size.key; }),
17
- },
18
- minHeight: {
19
- control: { type: "select", labels: Object.fromEntries(minHeights.map(function (size) { return [size.key, size.label]; })) },
20
- options: minHeights.map(function (size) { return size.key; }),
21
- },
22
- };
@@ -1,6 +0,0 @@
1
- export var Size = function (_a) {
2
- var size = _a.size, color = _a.color;
3
- return (<>
4
- <div className={"".concat(size, " rounded ").concat(color)} data-testid="size-box"/>
5
- </>);
6
- };
@@ -1,22 +0,0 @@
1
- import { Size } from "../../components/Size/Size";
2
- import { colorGroups, sizes } from "../../utils";
3
- export default {
4
- title: "Components/Size",
5
- component: Size,
6
- };
7
- var Template = function (args) { return <Size {...args}/>; };
8
- export var SizeStory = Template.bind({});
9
- SizeStory.args = {
10
- size: 'lu-size-400',
11
- color: 'bg-primary-500',
12
- };
13
- SizeStory.argTypes = {
14
- size: {
15
- control: { type: "select", labels: Object.fromEntries(sizes.map(function (size) { return [size.key, size.label]; })) },
16
- options: sizes.map(function (size) { return size.key; }),
17
- },
18
- color: {
19
- control: { type: "select" },
20
- options: colorGroups.primary,
21
- },
22
- };