linkedunion-design-kit 1.4.9 → 1.5.0

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 (96) hide show
  1. package/dist/.next/types/app/page.js +26 -1
  2. package/dist/app/layout.js +11 -7
  3. package/dist/app/page.js +10 -4
  4. package/dist/app/scripts.js +8 -3
  5. package/dist/components/Avatar/Avatar.js +12 -7
  6. package/dist/components/Avatar/Avatar.stories.js +19 -13
  7. package/dist/components/Border/BorderRadius/BorderRadius.js +9 -5
  8. package/dist/components/Border/BorderRadius/BorderRadius.stories.js +14 -11
  9. package/dist/components/Border/BorderRadius/BorderRadiusTable.js +8 -4
  10. package/dist/components/Border/BorderRadius/BorderRadiusView.js +7 -3
  11. package/dist/components/Border/BorderWidth/BorderWidth.js +9 -5
  12. package/dist/components/Border/BorderWidth/BorderWidth.stories.js +14 -11
  13. package/dist/components/Border/BorderWidth/BorderWidthTable.js +8 -4
  14. package/dist/components/Border/BorderWidth/ViewBorderWidth.js +7 -3
  15. package/dist/components/Button/Button.js +17 -9
  16. package/dist/components/Button/Button.stories.js +50 -46
  17. package/dist/components/Button/index.d.ts +2 -2
  18. package/dist/components/Button/index.js +7 -4
  19. package/dist/components/Color/BackgroundColor/Color.js +7 -3
  20. package/dist/components/Color/BackgroundColor/Color.stories.js +33 -30
  21. package/dist/components/Color/BackgroundColor/index.js +7 -4
  22. package/dist/components/Color/TextColor/TextColor.d.ts +3 -0
  23. package/dist/components/Color/TextColor/TextColor.js +5 -0
  24. package/dist/components/Color/TextColor/TextColor.stories.d.ts +6 -0
  25. package/dist/components/Color/TextColor/TextColor.stories.js +32 -0
  26. package/dist/components/Color/TextColor.js +7 -3
  27. package/dist/components/Color/TextColor.stories.js +14 -11
  28. package/dist/components/Icons/IconView.js +9 -5
  29. package/dist/components/Icons/IconView.stories.js +9 -6
  30. package/dist/components/Icons/LUIcon.js +7 -5
  31. package/dist/components/Icons/LUIcon.stories.js +23 -17
  32. package/dist/components/Images/LuImage.js +12 -5
  33. package/dist/components/Images/LuImage.stories.js +21 -18
  34. package/dist/components/MediaCard/Card.js +18 -15
  35. package/dist/components/MediaCard/Card.stories.js +28 -26
  36. package/dist/components/MediaCard/ContactProfile/ContactProfile.js +14 -10
  37. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.js +15 -8
  38. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.js +15 -8
  39. package/dist/components/MediaCard/PostByCategory/PostByCategory.js +14 -10
  40. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +15 -8
  41. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +15 -8
  42. package/dist/components/MediaCard/index.d.ts +6 -10
  43. package/dist/components/MediaCard/index.js +11 -14
  44. package/dist/components/Size/MinWidthHeight.js +5 -3
  45. package/dist/components/Size/MinWidthHeight.stories.js +19 -13
  46. package/dist/components/Size/Size.js +5 -3
  47. package/dist/components/Size/Size.stories.js +17 -11
  48. package/dist/components/Size/WidthHeight.js +5 -3
  49. package/dist/components/Size/WidthHeight.stories.js +19 -13
  50. package/dist/components/Spacing/Margin/Margin.js +8 -4
  51. package/dist/components/Spacing/Margin/MarginBottom.js +8 -4
  52. package/dist/components/Spacing/Margin/MarginLeft.js +8 -4
  53. package/dist/components/Spacing/Margin/MarginRight.js +8 -4
  54. package/dist/components/Spacing/Margin/MarginToken.js +15 -11
  55. package/dist/components/Spacing/Margin/MarginToken.stories.js +9 -6
  56. package/dist/components/Spacing/Margin/MarginTop.js +8 -4
  57. package/dist/components/Spacing/Margin/MarginX.js +8 -4
  58. package/dist/components/Spacing/Margin/MarginY.js +8 -4
  59. package/dist/components/Spacing/Padding/Padding.js +8 -4
  60. package/dist/components/Spacing/Padding/PaddingBottom.js +8 -4
  61. package/dist/components/Spacing/Padding/PaddingLeft.js +8 -4
  62. package/dist/components/Spacing/Padding/PaddingRight.js +8 -4
  63. package/dist/components/Spacing/Padding/PaddingToken.js +15 -11
  64. package/dist/components/Spacing/Padding/PaddingToken.stories.js +9 -6
  65. package/dist/components/Spacing/Padding/PaddingTop.js +8 -4
  66. package/dist/components/Spacing/Padding/PaddingX.js +8 -4
  67. package/dist/components/Spacing/Padding/PaddingY.js +8 -4
  68. package/dist/components/Title/Title.js +11 -6
  69. package/dist/components/Title/Title.stories.js +15 -9
  70. package/dist/components/Title/Title.test.js +14 -9
  71. package/dist/components/Typography/Body/Body.js +8 -6
  72. package/dist/components/Typography/Body/Body.stories.js +25 -18
  73. package/dist/components/Typography/Body/index.js +27 -24
  74. package/dist/components/Typography/Body/type.js +2 -1
  75. package/dist/components/Typography/Display/Display.js +8 -6
  76. package/dist/components/Typography/Display/Display.stories.js +25 -18
  77. package/dist/components/Typography/Display/index.js +24 -21
  78. package/dist/components/Typography/Display/type.js +2 -1
  79. package/dist/components/Typography/Headings/Heading.test.js +24 -19
  80. package/dist/components/Typography/Headings/Headings.js +8 -6
  81. package/dist/components/Typography/Headings/Headings.stories.js +27 -20
  82. package/dist/components/Typography/Headings/index.js +38 -35
  83. package/dist/components/Typography/Headings/type.js +2 -1
  84. package/dist/components/Typography/Typography.js +7 -3
  85. package/dist/components/Typography/Typography.stories.js +27 -24
  86. package/dist/global/components/Table/Table.js +7 -5
  87. package/dist/index.js +31 -13
  88. package/dist/tailwind.config.js +72 -67
  89. package/dist/utils/colors.js +4 -1
  90. package/dist/utils/constants.js +5 -2
  91. package/dist/utils/enums.d.ts +6 -22
  92. package/dist/utils/enums.js +22 -34
  93. package/dist/utils/iconList.js +4 -1
  94. package/dist/utils/index.d.ts +4 -4
  95. package/dist/utils/index.js +78 -85
  96. package/package.json +2 -1
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -18,20 +19,23 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
19
  }
19
20
  return to.concat(ar || Array.prototype.slice.call(from));
20
21
  };
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- import { Button } from "./Button";
23
- import { borderRadiusList, buttonColorsList, buttonIconSizeList, buttonWithIconList, butttonSizeList, } from "../../utils";
24
- import { iconList } from "../../utils/iconList";
25
- import { buttonTypeEnum, contentTypeEnum } from "../../utils/enums";
26
- export default {
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.button = void 0;
24
+ var jsx_runtime_1 = require("react/jsx-runtime");
25
+ var Button_1 = require("./Button");
26
+ var utils_1 = require("../../utils");
27
+ var iconList_1 = require("../../utils/iconList");
28
+ var enums_1 = require("../../utils/enums");
29
+ var _1 = require(".");
30
+ exports.default = {
27
31
  title: "Components/Button",
28
- component: Button,
32
+ component: Button_1.Button,
29
33
  tags: ["autodocs"],
30
34
  };
31
- var Template = function (args) { return _jsx(Button, __assign({}, args)); };
32
- export var button = Template.bind({});
33
- button.args = {
34
- contentType: contentTypeEnum.none,
35
+ var Template = function (args) { return (0, jsx_runtime_1.jsx)(Button_1.Button, __assign({}, args)); };
36
+ exports.button = Template.bind({});
37
+ exports.button.args = {
38
+ contentType: enums_1.ContentType.none,
35
39
  variant: "lu-btn-primary",
36
40
  label: "Button Text",
37
41
  onClick: function () { return alert("Button Clicked"); },
@@ -41,74 +45,74 @@ button.args = {
41
45
  leftIconSize: "lu-icon-small",
42
46
  icon: "chart-simple",
43
47
  iconSize: "lu-icon-small",
44
- type: buttonTypeEnum.fill,
48
+ type: _1.ButtonType.fill,
45
49
  className: "",
46
50
  };
47
- button.argTypes = {
51
+ exports.button.argTypes = {
48
52
  contentType: {
49
53
  control: { type: "select" },
50
54
  options: [
51
- contentTypeEnum.none,
52
- contentTypeEnum.text_with_icon,
53
- contentTypeEnum.icon_only,
55
+ enums_1.ContentType.none,
56
+ enums_1.ContentType.text_with_icon,
57
+ enums_1.ContentType.icon_only,
54
58
  ],
55
59
  description: "Determines the content of the button",
56
60
  },
57
61
  label: {
58
62
  control: { type: "text" },
59
63
  description: "Button label text",
60
- if: { arg: "contentType", neq: contentTypeEnum.icon_only },
64
+ if: { arg: "contentType", neq: enums_1.ContentType.icon_only },
61
65
  },
62
66
  variant: {
63
67
  control: {
64
68
  type: "select",
65
- labels: Object.fromEntries(buttonColorsList.map(function (btnColor) { return [btnColor.key, btnColor.label]; })),
69
+ labels: Object.fromEntries(utils_1.buttonColorsList.map(function (btnColor) { return [btnColor.key, btnColor.label]; })),
66
70
  },
67
- options: buttonColorsList.map(function (btnColor) { return btnColor.key; }),
71
+ options: utils_1.buttonColorsList.map(function (btnColor) { return btnColor.key; }),
68
72
  },
69
73
  iconLeft: {
70
74
  control: {
71
75
  type: "select",
72
- labels: Object.fromEntries(iconList.map(function (icon) { return [icon.key, icon.label]; })),
76
+ labels: Object.fromEntries(iconList_1.iconList.map(function (icon) { return [icon.key, icon.label]; })),
73
77
  },
74
- options: __spreadArray(["none"], iconList.map(function (icon) { return icon.key; }), true),
75
- if: { arg: "contentType", eq: contentTypeEnum.text_with_icon },
78
+ options: __spreadArray(["none"], iconList_1.iconList.map(function (icon) { return icon.key; }), true),
79
+ if: { arg: "contentType", eq: enums_1.ContentType.text_with_icon },
76
80
  },
77
81
  iconRight: {
78
82
  control: {
79
83
  type: "select",
80
- labels: Object.fromEntries(iconList.map(function (icon) { return [icon.key, icon.label]; })),
84
+ labels: Object.fromEntries(iconList_1.iconList.map(function (icon) { return [icon.key, icon.label]; })),
81
85
  },
82
- options: __spreadArray(["none"], iconList.map(function (icon) { return icon.key; }), true),
83
- if: { arg: "contentType", eq: contentTypeEnum.text_with_icon },
86
+ options: __spreadArray(["none"], iconList_1.iconList.map(function (icon) { return icon.key; }), true),
87
+ if: { arg: "contentType", eq: enums_1.ContentType.text_with_icon },
84
88
  },
85
89
  shape: {
86
90
  control: {
87
91
  type: "select",
88
- labels: Object.fromEntries(borderRadiusList.map(function (borderRadius) { return [
92
+ labels: Object.fromEntries(utils_1.borderRadiusList.map(function (borderRadius) { return [
89
93
  borderRadius.key,
90
94
  borderRadius.label,
91
95
  ]; })),
92
96
  },
93
- options: borderRadiusList.map(function (borderRadius) { return borderRadius.key; }),
97
+ options: utils_1.borderRadiusList.map(function (borderRadius) { return borderRadius.key; }),
94
98
  },
95
99
  size: {
96
100
  control: {
97
101
  type: "select",
98
- labels: Object.fromEntries(butttonSizeList.map(function (size) { return [size.key, size.label]; })),
102
+ labels: Object.fromEntries(utils_1.butttonSizeList.map(function (size) { return [size.key, size.label]; })),
99
103
  },
100
- options: butttonSizeList.map(function (size) { return size.key; }),
104
+ options: utils_1.butttonSizeList.map(function (size) { return size.key; }),
101
105
  description: "Select the size of the button",
102
106
  update: function (args) {
103
- var isIconOnly = args.contentType === contentTypeEnum.icon_only;
107
+ var isIconOnly = args.contentType === enums_1.ContentType.icon_only;
104
108
  // Dynamically update options and labels based on contentType
105
109
  return {
106
110
  options: isIconOnly
107
- ? buttonWithIconList.map(function (size) { return size.key; })
108
- : butttonSizeList.map(function (size) { return size.key; }),
111
+ ? utils_1.buttonWithIconList.map(function (size) { return size.key; })
112
+ : utils_1.butttonSizeList.map(function (size) { return size.key; }),
109
113
  control: {
110
114
  type: "select",
111
- labels: Object.fromEntries((isIconOnly ? buttonWithIconList : butttonSizeList).map(function (size) { return [
115
+ labels: Object.fromEntries((isIconOnly ? utils_1.buttonWithIconList : utils_1.butttonSizeList).map(function (size) { return [
112
116
  size.key,
113
117
  size.label,
114
118
  ]; })),
@@ -119,38 +123,38 @@ button.argTypes = {
119
123
  leftIconSize: {
120
124
  control: {
121
125
  type: "select",
122
- labels: Object.fromEntries(buttonIconSizeList.map(function (size) { return [size.key, size.label]; })),
126
+ labels: Object.fromEntries(utils_1.buttonIconSizeList.map(function (size) { return [size.key, size.label]; })),
123
127
  },
124
- options: buttonIconSizeList.map(function (size) { return size.key; }),
125
- if: { arg: "contentType", eq: contentTypeEnum.text_with_icon },
128
+ options: utils_1.buttonIconSizeList.map(function (size) { return size.key; }),
129
+ if: { arg: "contentType", eq: enums_1.ContentType.text_with_icon },
126
130
  },
127
131
  rightIconSize: {
128
132
  control: {
129
133
  type: "select",
130
- labels: Object.fromEntries(buttonIconSizeList.map(function (size) { return [size.key, size.label]; })),
134
+ labels: Object.fromEntries(utils_1.buttonIconSizeList.map(function (size) { return [size.key, size.label]; })),
131
135
  },
132
- options: buttonIconSizeList.map(function (size) { return size.key; }),
133
- if: { arg: "contentType", eq: contentTypeEnum.text_with_icon },
136
+ options: utils_1.buttonIconSizeList.map(function (size) { return size.key; }),
137
+ if: { arg: "contentType", eq: enums_1.ContentType.text_with_icon },
134
138
  },
135
139
  icon: {
136
140
  control: {
137
141
  type: "select",
138
- labels: Object.fromEntries(iconList.map(function (icon) { return [icon.key, icon.label]; })),
142
+ labels: Object.fromEntries(iconList_1.iconList.map(function (icon) { return [icon.key, icon.label]; })),
139
143
  },
140
- options: iconList.map(function (icon) { return icon.key; }),
141
- if: { arg: "contentType", eq: contentTypeEnum.icon_only },
144
+ options: iconList_1.iconList.map(function (icon) { return icon.key; }),
145
+ if: { arg: "contentType", eq: enums_1.ContentType.icon_only },
142
146
  },
143
147
  iconSize: {
144
148
  control: {
145
149
  type: "select",
146
- labels: Object.fromEntries(buttonIconSizeList.map(function (size) { return [size.key, size.label]; })),
150
+ labels: Object.fromEntries(utils_1.buttonIconSizeList.map(function (size) { return [size.key, size.label]; })),
147
151
  },
148
- options: buttonIconSizeList.map(function (size) { return size.key; }),
149
- if: { arg: "contentType", eq: contentTypeEnum.icon_only },
152
+ options: utils_1.buttonIconSizeList.map(function (size) { return size.key; }),
153
+ if: { arg: "contentType", eq: enums_1.ContentType.icon_only },
150
154
  },
151
155
  type: {
152
156
  control: { type: "select" },
153
- options: [buttonTypeEnum.fill, buttonTypeEnum.outline],
157
+ options: [_1.ButtonType.fill, _1.ButtonType.outline],
154
158
  description: "Determines the type of the button",
155
159
  },
156
160
  };
@@ -1,4 +1,4 @@
1
1
  export declare enum ButtonType {
2
- fill = "Fill",
3
- outline = "Outline"
2
+ fill = "fill",
3
+ outline = "outline"
4
4
  }
@@ -1,6 +1,9 @@
1
- export var ButtonType;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ButtonType = void 0;
4
+ var ButtonType;
2
5
  (function (ButtonType) {
3
- ButtonType["fill"] = "Fill";
4
- ButtonType["outline"] = "Outline";
5
- })(ButtonType || (ButtonType = {}));
6
+ ButtonType["fill"] = "fill";
7
+ ButtonType["outline"] = "outline";
8
+ })(ButtonType || (exports.ButtonType = ButtonType = {}));
6
9
  ;
@@ -1,5 +1,9 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export var Color = function (_a) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Color = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var Color = function (_a) {
3
6
  var label = _a.label, color = _a.color;
4
- return (_jsxs("div", { children: [_jsx("h2", { className: "lu-font-size-large lu-font-weight-bold lu-mb-200", children: label }), _jsxs("div", { className: "flex items-center gap-4", children: [_jsx("div", { className: "w-10 h-10 rounded ".concat(color), "data-testid": "color-box" }), _jsxs("div", { children: [_jsx("p", { className: "lu-font-weight-semibold", children: color === null || color === void 0 ? void 0 : color.replace("bg-", "") }), _jsx("code", { className: "lu-font-size-small", children: color })] })] })] }));
7
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h2", { className: "lu-font-size-large lu-font-weight-bold lu-mb-200", children: label }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "w-10 h-10 rounded ".concat(color), "data-testid": "color-box" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("p", { className: "lu-font-weight-semibold", children: color === null || color === void 0 ? void 0 : color.replace("bg-", "") }), (0, jsx_runtime_1.jsx)("code", { className: "lu-font-size-small", children: color })] })] })] }));
5
8
  };
9
+ exports.Color = Color;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -9,92 +10,94 @@ var __assign = (this && this.__assign) || function () {
9
10
  };
10
11
  return __assign.apply(this, arguments);
11
12
  };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { Color } from "../../../components/Color/BackgroundColor/Color";
14
- import { customBackgroundColor } from ".";
15
- export default {
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Info = exports.Danger = exports.Warning = exports.Success = exports.Gray = exports.Primary = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var Color_1 = require("../../../components/Color/BackgroundColor/Color");
17
+ var _1 = require(".");
18
+ exports.default = {
16
19
  title: "Components/Color/BackgroundColor",
17
- component: Color,
20
+ component: Color_1.Color,
18
21
  argTypes: {
19
22
  label: { control: "text" },
20
23
  },
21
24
  };
22
- var Template = function (args) { return _jsx(Color, __assign({}, args)); };
23
- export var Primary = Template.bind({});
24
- Primary.args = {
25
+ var Template = function (args) { return (0, jsx_runtime_1.jsx)(Color_1.Color, __assign({}, args)); };
26
+ exports.Primary = Template.bind({});
27
+ exports.Primary.args = {
25
28
  label: "Primary",
26
29
  color: "lu-bg-primary-500", // Default color
27
30
  };
28
- Primary.argTypes = {
31
+ exports.Primary.argTypes = {
29
32
  color: {
30
33
  control: { type: "select" },
31
- options: Object.keys(customBackgroundColor)
34
+ options: Object.keys(_1.customBackgroundColor)
32
35
  .filter(function (key) { return key.startsWith(".lu-bg-primary-"); })
33
36
  .map(function (key) { return key.slice(1); }),
34
37
  },
35
38
  };
36
- export var Gray = Template.bind({});
37
- Gray.argTypes = {
39
+ exports.Gray = Template.bind({});
40
+ exports.Gray.argTypes = {
38
41
  color: {
39
42
  control: { type: "select" },
40
- options: Object.keys(customBackgroundColor)
43
+ options: Object.keys(_1.customBackgroundColor)
41
44
  .filter(function (key) { return key.startsWith(".lu-bg-neutral-"); })
42
45
  .map(function (key) { return key.slice(1); }),
43
46
  },
44
47
  };
45
- Gray.args = {
48
+ exports.Gray.args = {
46
49
  label: "Gray",
47
50
  color: "lu-bg-neutral-500",
48
51
  };
49
- export var Success = Template.bind({});
50
- Success.argTypes = {
52
+ exports.Success = Template.bind({});
53
+ exports.Success.argTypes = {
51
54
  color: {
52
55
  control: { type: "select" },
53
- options: Object.keys(customBackgroundColor)
56
+ options: Object.keys(_1.customBackgroundColor)
54
57
  .filter(function (key) { return key.startsWith(".lu-bg-success-"); })
55
58
  .map(function (key) { return key.slice(1); }),
56
59
  },
57
60
  };
58
- Success.args = {
61
+ exports.Success.args = {
59
62
  label: "Success",
60
63
  color: "lu-bg-success-500",
61
64
  };
62
- export var Warning = Template.bind({});
63
- Warning.argTypes = {
65
+ exports.Warning = Template.bind({});
66
+ exports.Warning.argTypes = {
64
67
  color: {
65
68
  control: { type: "select" },
66
- options: Object.keys(customBackgroundColor)
69
+ options: Object.keys(_1.customBackgroundColor)
67
70
  .filter(function (key) { return key.startsWith(".lu-bg-warning-"); })
68
71
  .map(function (key) { return key.slice(1); }),
69
72
  },
70
73
  };
71
- Warning.args = {
74
+ exports.Warning.args = {
72
75
  label: "Warning",
73
76
  color: "lu-bg-warning-500",
74
77
  };
75
- export var Danger = Template.bind({});
76
- Danger.argTypes = {
78
+ exports.Danger = Template.bind({});
79
+ exports.Danger.argTypes = {
77
80
  color: {
78
81
  control: { type: "select" },
79
- options: Object.keys(customBackgroundColor)
82
+ options: Object.keys(_1.customBackgroundColor)
80
83
  .filter(function (key) { return key.startsWith(".lu-bg-danger-"); })
81
84
  .map(function (key) { return key.slice(1); }),
82
85
  },
83
86
  };
84
- Danger.args = {
87
+ exports.Danger.args = {
85
88
  label: "Danger",
86
89
  color: "lu-bg-danger-500",
87
90
  };
88
- export var Info = Template.bind({});
89
- Info.argTypes = {
91
+ exports.Info = Template.bind({});
92
+ exports.Info.argTypes = {
90
93
  color: {
91
94
  control: { type: "select" },
92
- options: Object.keys(customBackgroundColor)
95
+ options: Object.keys(_1.customBackgroundColor)
93
96
  .filter(function (key) { return key.startsWith(".lu-bg-info-"); })
94
97
  .map(function (key) { return key.slice(1); }),
95
98
  },
96
99
  };
97
- Info.args = {
100
+ exports.Info.args = {
98
101
  label: "Info",
99
102
  color: "lu-bg-info-500",
100
103
  };
@@ -1,4 +1,7 @@
1
- export var colorNames = [
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customBackgroundColor = exports.shades = exports.colorNames = void 0;
4
+ exports.colorNames = [
2
5
  "primary",
3
6
  "neutral",
4
7
  "success",
@@ -6,9 +9,9 @@ export var colorNames = [
6
9
  "danger",
7
10
  "info",
8
11
  ];
9
- export var shades = Array.from({ length: 11 }, function (_, i) { return i * 100; }); // Generates [0, 100, 200, ..., 1000]
10
- export var customBackgroundColor = Object.fromEntries(colorNames.flatMap(function (color) {
11
- return shades.map(function (shade) { return [
12
+ exports.shades = Array.from({ length: 11 }, function (_, i) { return i * 100; }); // Generates [0, 100, 200, ..., 1000]
13
+ exports.customBackgroundColor = Object.fromEntries(exports.colorNames.flatMap(function (color) {
14
+ return exports.shades.map(function (shade) { return [
12
15
  ".lu-bg-".concat(color, "-").concat(shade),
13
16
  { backgroundColor: "var(--".concat(color, "-").concat(shade, ")") }, // Generates { ".lu-bg-primary-100": { backgroundColor: "var(--primary-100)" }, ... }
14
17
  ]; });
@@ -0,0 +1,3 @@
1
+ export declare const TextColor: ({ color, }: {
2
+ color?: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsxs as _jsxs } from "react/jsx-runtime";
2
+ export var TextColor = function (_a) {
3
+ var _b = _a.color, color = _b === void 0 ? "lu-text-default" : _b;
4
+ return _jsxs("div", { className: "".concat(color), children: [".", color] });
5
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta } from "@storybook/react";
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const textColor: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
5
+ color: string;
6
+ }>;
@@ -0,0 +1,32 @@
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 { textColorList } from "../../../utils";
14
+ import { TextColor } from "./TextColor";
15
+ export default {
16
+ title: "Components/Color",
17
+ component: TextColor,
18
+ };
19
+ var Template = function (args) { return _jsx(TextColor, __assign({}, args)); };
20
+ export var textColor = Template.bind({});
21
+ textColor.args = {
22
+ color: "lu-text-default", // Default color
23
+ };
24
+ textColor.argTypes = {
25
+ color: {
26
+ control: {
27
+ type: "select",
28
+ labels: Object.fromEntries(textColorList.map(function (color) { return [color.key, color.label]; })),
29
+ },
30
+ options: textColorList.map(function (color) { return color.key; }),
31
+ },
32
+ };
@@ -1,5 +1,9 @@
1
- import { jsxs as _jsxs } from "react/jsx-runtime";
2
- export var TextColor = function (_a) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextColor = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var TextColor = function (_a) {
3
6
  var _b = _a.color, color = _b === void 0 ? "lu-text-default" : _b;
4
- return _jsxs("div", { className: "".concat(color), children: [".", color] });
7
+ return (0, jsx_runtime_1.jsxs)("div", { className: "".concat(color), children: [".", color] });
5
8
  };
9
+ exports.TextColor = TextColor;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -9,24 +10,26 @@ var __assign = (this && this.__assign) || function () {
9
10
  };
10
11
  return __assign.apply(this, arguments);
11
12
  };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { TextColor } from "./TextColor";
14
- import { textColorList } from "../../utils";
15
- export default {
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.textColor = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var TextColor_1 = require("./TextColor");
17
+ var utils_1 = require("../../utils");
18
+ exports.default = {
16
19
  title: "Components/Color",
17
- component: TextColor,
20
+ component: TextColor_1.TextColor,
18
21
  };
19
- var Template = function (args) { return _jsx(TextColor, __assign({}, args)); };
20
- export var textColor = Template.bind({});
21
- textColor.args = {
22
+ var Template = function (args) { return (0, jsx_runtime_1.jsx)(TextColor_1.TextColor, __assign({}, args)); };
23
+ exports.textColor = Template.bind({});
24
+ exports.textColor.args = {
22
25
  color: "lu-text-default", // Default color
23
26
  };
24
- textColor.argTypes = {
27
+ exports.textColor.argTypes = {
25
28
  color: {
26
29
  control: {
27
30
  type: "select",
28
- labels: Object.fromEntries(textColorList.map(function (color) { return [color.key, color.label]; })),
31
+ labels: Object.fromEntries(utils_1.textColorList.map(function (color) { return [color.key, color.label]; })),
29
32
  },
30
- options: textColorList.map(function (color) { return color.key; }),
33
+ options: utils_1.textColorList.map(function (color) { return color.key; }),
31
34
  },
32
35
  };
@@ -1,7 +1,11 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { iconList } from "../../utils/iconList";
3
- export var IconView = function () {
4
- return (_jsx(_Fragment, { children: _jsx("div", { className: "grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-6 gap-6", "data-testid": "icons-list", children: iconList.map(function (icon, index) {
5
- return (_jsxs("div", { className: "flex flex-col items-center justify-center bg-gray-100 lu-border-rounded-lg lu-pd-200 shadow-md hover:bg-gray-200", "data-testid": "single-icon", children: [_jsxs("svg", { width: "25", height: "25", viewBox: "0 0 32 32", fill: "none", className: "mb-2", role: "img", children: [_jsx("g", { clipPath: "url(#clip0_9168_14965)", children: _jsx("path", { d: icon === null || icon === void 0 ? void 0 : icon.path, fill: "#070808" }) }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_9168_14965", children: _jsx("rect", { width: "32", height: "32", fill: "black" }) }) })] }), _jsx("p", { className: "lu-font-size-x-small lu-font-weight-regular lu-text-gray text-center", children: icon === null || icon === void 0 ? void 0 : icon.label })] }, index));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IconView = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var iconList_1 = require("../../utils/iconList");
6
+ var IconView = function () {
7
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-6 gap-6", "data-testid": "icons-list", children: iconList_1.iconList.map(function (icon, index) {
8
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center justify-center bg-gray-100 lu-border-rounded-lg lu-pd-200 shadow-md hover:bg-gray-200", "data-testid": "single-icon", children: [(0, jsx_runtime_1.jsxs)("svg", { width: "25", height: "25", viewBox: "0 0 32 32", fill: "none", className: "mb-2", role: "img", children: [(0, jsx_runtime_1.jsx)("g", { clipPath: "url(#clip0_9168_14965)", children: (0, jsx_runtime_1.jsx)("path", { d: icon === null || icon === void 0 ? void 0 : icon.path, fill: "#070808" }) }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: "clip0_9168_14965", children: (0, jsx_runtime_1.jsx)("rect", { width: "32", height: "32", fill: "black" }) }) })] }), (0, jsx_runtime_1.jsx)("p", { className: "lu-font-size-x-small lu-font-weight-regular lu-text-gray text-center", children: icon === null || icon === void 0 ? void 0 : icon.label })] }, index));
6
9
  }) }) }));
7
10
  };
11
+ exports.IconView = IconView;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -9,12 +10,14 @@ var __assign = (this && this.__assign) || function () {
9
10
  };
10
11
  return __assign.apply(this, arguments);
11
12
  };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { IconView } from "./IconView";
14
- export default {
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.iconView = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var IconView_1 = require("./IconView");
17
+ exports.default = {
15
18
  title: "Components/Icon",
16
- component: IconView,
19
+ component: IconView_1.IconView,
17
20
  tags: ["!autodocs"],
18
21
  };
19
- var Template = function (args) { return _jsx(IconView, __assign({}, args)); };
20
- export var iconView = Template.bind({});
22
+ var Template = function (args) { return (0, jsx_runtime_1.jsx)(IconView_1.IconView, __assign({}, args)); };
23
+ exports.iconView = Template.bind({});
@@ -1,9 +1,11 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { iconList } from "../../utils/iconList";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var jsx_runtime_1 = require("react/jsx-runtime");
4
+ var iconList_1 = require("../../utils/iconList");
3
5
  var LUIcon = function (_a) {
4
6
  var _b;
5
7
  var size = _a.size, fill = _a.fill, icon = _a.icon, className = _a.className;
6
- var selectedIcon = iconList.find(function (item) { return item.key === icon; });
7
- return (_jsx(_Fragment, { children: _jsxs("svg", { className: "".concat(size, " ").concat(className), viewBox: "0 0 32 32", fill: "none", children: [_jsx("g", { "clip-path": "url(#clip0_9168_14965)", children: _jsx("path", { d: (_b = selectedIcon === null || selectedIcon === void 0 ? void 0 : selectedIcon.path) !== null && _b !== void 0 ? _b : "", className: "".concat(fill, " icon") }) }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_9168_14965", children: _jsx("rect", { width: "32", height: "32", fill: "black" }) }) })] }) }));
8
+ var selectedIcon = iconList_1.iconList.find(function (item) { return item.key === icon; });
9
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("svg", { className: "".concat(size, " ").concat(className), viewBox: "0 0 32 32", fill: "none", children: [(0, jsx_runtime_1.jsx)("g", { "clip-path": "url(#clip0_9168_14965)", children: (0, jsx_runtime_1.jsx)("path", { d: (_b = selectedIcon === null || selectedIcon === void 0 ? void 0 : selectedIcon.path) !== null && _b !== void 0 ? _b : "", className: "".concat(fill, " icon") }) }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: "clip0_9168_14965", children: (0, jsx_runtime_1.jsx)("rect", { width: "32", height: "32", fill: "black" }) }) })] }) }));
8
10
  };
9
- export default LUIcon;
11
+ exports.default = LUIcon;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -9,42 +10,47 @@ var __assign = (this && this.__assign) || function () {
9
10
  };
10
11
  return __assign.apply(this, arguments);
11
12
  };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { iconColorList, iconSizeList } from "../../utils";
14
- import { iconList } from "../../utils/iconList";
15
- import LUIcon from "./LUIcon";
16
- export default {
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.icon = void 0;
18
+ var jsx_runtime_1 = require("react/jsx-runtime");
19
+ var utils_1 = require("../../utils");
20
+ var iconList_1 = require("../../utils/iconList");
21
+ var LUIcon_1 = __importDefault(require("./LUIcon"));
22
+ exports.default = {
17
23
  title: "Components/Icon",
18
- component: LUIcon,
24
+ component: LUIcon_1.default,
19
25
  tags: ["autodocs"],
20
26
  };
21
- var Template = function (args) { return _jsx(LUIcon, __assign({}, args)); };
22
- export var icon = Template.bind({});
23
- icon.args = {
27
+ var Template = function (args) { return (0, jsx_runtime_1.jsx)(LUIcon_1.default, __assign({}, args)); };
28
+ exports.icon = Template.bind({});
29
+ exports.icon.args = {
24
30
  size: "lu-icon-x-small",
25
31
  fill: "lu-primary-icon-default",
26
- icon: iconList[0].key,
32
+ icon: iconList_1.iconList[0].key,
27
33
  };
28
- icon.argTypes = {
34
+ exports.icon.argTypes = {
29
35
  size: {
30
36
  control: {
31
37
  type: "select",
32
- labels: Object.fromEntries(iconSizeList.map(function (size) { return [size.key, size.label]; })),
38
+ labels: Object.fromEntries(utils_1.iconSizeList.map(function (size) { return [size.key, size.label]; })),
33
39
  },
34
- options: iconSizeList.map(function (size) { return size.key; }),
40
+ options: utils_1.iconSizeList.map(function (size) { return size.key; }),
35
41
  },
36
42
  fill: {
37
43
  control: {
38
44
  type: "select",
39
- labels: Object.fromEntries(iconColorList.map(function (color) { return [color.key, color.label]; })),
45
+ labels: Object.fromEntries(utils_1.iconColorList.map(function (color) { return [color.key, color.label]; })),
40
46
  },
41
- options: iconColorList.map(function (color) { return color.key; }),
47
+ options: utils_1.iconColorList.map(function (color) { return color.key; }),
42
48
  },
43
49
  icon: {
44
50
  control: {
45
51
  type: "select",
46
- labels: Object.fromEntries(iconList.map(function (icon) { return [icon.key, icon.label]; })),
52
+ labels: Object.fromEntries(iconList_1.iconList.map(function (icon) { return [icon.key, icon.label]; })),
47
53
  },
48
- options: iconList.map(function (icon) { return icon.key; }),
54
+ options: iconList_1.iconList.map(function (icon) { return icon.key; }),
49
55
  },
50
56
  };