linkedunion-design-kit 1.4.8 → 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 (115) 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.d.ts +2 -1
  6. package/dist/components/Avatar/Avatar.js +13 -7
  7. package/dist/components/Avatar/Avatar.stories.js +19 -13
  8. package/dist/components/Border/BorderRadius/BorderRadius.js +9 -5
  9. package/dist/components/Border/BorderRadius/BorderRadius.stories.js +14 -11
  10. package/dist/components/Border/BorderRadius/BorderRadiusTable.js +8 -4
  11. package/dist/components/Border/BorderRadius/BorderRadiusView.js +7 -3
  12. package/dist/components/Border/BorderWidth/BorderWidth.js +9 -5
  13. package/dist/components/Border/BorderWidth/BorderWidth.stories.js +14 -11
  14. package/dist/components/Border/BorderWidth/BorderWidthTable.js +8 -4
  15. package/dist/components/Border/BorderWidth/ViewBorderWidth.js +7 -3
  16. package/dist/components/Button/Button.d.ts +1 -0
  17. package/dist/components/Button/Button.js +17 -8
  18. package/dist/components/Button/Button.stories.js +50 -46
  19. package/dist/components/Button/index.d.ts +4 -0
  20. package/dist/components/Button/index.js +9 -0
  21. package/dist/components/Color/BackgroundColor/BackgroundColor.d.ts +2 -0
  22. package/dist/components/Color/BackgroundColor/BackgroundColor.js +5 -0
  23. package/dist/components/Color/BackgroundColor/BackgroundColor.stories.d.ts +10 -0
  24. package/dist/components/Color/BackgroundColor/BackgroundColor.stories.js +100 -0
  25. package/dist/components/Color/BackgroundColor/Color.js +7 -3
  26. package/dist/components/Color/BackgroundColor/Color.stories.js +33 -30
  27. package/dist/components/Color/BackgroundColor/index.js +7 -4
  28. package/dist/components/Color/TextColor/TextColor.d.ts +3 -0
  29. package/dist/components/Color/TextColor/TextColor.js +5 -0
  30. package/dist/components/Color/TextColor/TextColor.stories.d.ts +6 -0
  31. package/dist/components/Color/TextColor/TextColor.stories.js +32 -0
  32. package/dist/components/Color/TextColor.js +7 -3
  33. package/dist/components/Color/TextColor.stories.js +14 -11
  34. package/dist/components/Icons/IconView.js +9 -5
  35. package/dist/components/Icons/IconView.stories.js +9 -6
  36. package/dist/components/Icons/LUIcon.d.ts +2 -1
  37. package/dist/components/Icons/LUIcon.js +8 -5
  38. package/dist/components/Icons/LUIcon.stories.js +23 -17
  39. package/dist/components/Images/LuImage.d.ts +1 -0
  40. package/dist/components/Images/LuImage.js +13 -5
  41. package/dist/components/Images/LuImage.stories.js +21 -18
  42. package/dist/components/Images/index.d.ts +4 -0
  43. package/dist/components/Images/index.js +6 -0
  44. package/dist/components/MediaCard/Card.d.ts +2 -1
  45. package/dist/components/MediaCard/Card.js +19 -15
  46. package/dist/components/MediaCard/Card.stories.js +28 -26
  47. package/dist/components/MediaCard/ContactProfile/ContactProfile.js +14 -10
  48. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.js +15 -8
  49. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.js +15 -8
  50. package/dist/components/MediaCard/PostByCategory/PostByCategory.js +14 -10
  51. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +15 -8
  52. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +15 -8
  53. package/dist/components/MediaCard/index.d.ts +8 -0
  54. package/dist/components/MediaCard/index.js +13 -0
  55. package/dist/components/Size/MinWidthHeight.d.ts +2 -1
  56. package/dist/components/Size/MinWidthHeight.js +6 -3
  57. package/dist/components/Size/MinWidthHeight.stories.js +19 -13
  58. package/dist/components/Size/Size.d.ts +2 -1
  59. package/dist/components/Size/Size.js +6 -3
  60. package/dist/components/Size/Size.stories.js +17 -11
  61. package/dist/components/Size/WidthHeight.d.ts +2 -1
  62. package/dist/components/Size/WidthHeight.js +6 -3
  63. package/dist/components/Size/WidthHeight.stories.js +19 -13
  64. package/dist/components/Spacing/Margin/Margin.js +8 -4
  65. package/dist/components/Spacing/Margin/MarginBottom.js +8 -4
  66. package/dist/components/Spacing/Margin/MarginLeft.js +8 -4
  67. package/dist/components/Spacing/Margin/MarginRight.js +8 -4
  68. package/dist/components/Spacing/Margin/MarginToken.js +15 -11
  69. package/dist/components/Spacing/Margin/MarginToken.stories.js +9 -6
  70. package/dist/components/Spacing/Margin/MarginTop.js +8 -4
  71. package/dist/components/Spacing/Margin/MarginX.js +8 -4
  72. package/dist/components/Spacing/Margin/MarginY.js +8 -4
  73. package/dist/components/Spacing/Padding/Padding.js +8 -4
  74. package/dist/components/Spacing/Padding/PaddingBottom.js +8 -4
  75. package/dist/components/Spacing/Padding/PaddingLeft.js +8 -4
  76. package/dist/components/Spacing/Padding/PaddingRight.js +8 -4
  77. package/dist/components/Spacing/Padding/PaddingToken.js +15 -11
  78. package/dist/components/Spacing/Padding/PaddingToken.stories.js +9 -6
  79. package/dist/components/Spacing/Padding/PaddingTop.js +8 -4
  80. package/dist/components/Spacing/Padding/PaddingX.js +8 -4
  81. package/dist/components/Spacing/Padding/PaddingY.js +8 -4
  82. package/dist/components/Title/Title.d.ts +2 -1
  83. package/dist/components/Title/Title.js +12 -6
  84. package/dist/components/Title/Title.stories.js +15 -9
  85. package/dist/components/Title/Title.test.js +14 -9
  86. package/dist/components/Typography/Body/Body.d.ts +2 -1
  87. package/dist/components/Typography/Body/Body.js +9 -6
  88. package/dist/components/Typography/Body/Body.stories.js +25 -18
  89. package/dist/components/Typography/Body/index.js +27 -24
  90. package/dist/components/Typography/Body/type.js +2 -1
  91. package/dist/components/Typography/Display/Display.d.ts +2 -1
  92. package/dist/components/Typography/Display/Display.js +9 -6
  93. package/dist/components/Typography/Display/Display.stories.js +25 -18
  94. package/dist/components/Typography/Display/index.js +24 -21
  95. package/dist/components/Typography/Display/type.js +2 -1
  96. package/dist/components/Typography/Headings/Heading.test.js +24 -19
  97. package/dist/components/Typography/Headings/Headings.d.ts +2 -1
  98. package/dist/components/Typography/Headings/Headings.js +9 -6
  99. package/dist/components/Typography/Headings/Headings.stories.js +27 -20
  100. package/dist/components/Typography/Headings/index.js +38 -35
  101. package/dist/components/Typography/Headings/type.js +2 -1
  102. package/dist/components/Typography/Typography.js +7 -3
  103. package/dist/components/Typography/Typography.stories.js +27 -24
  104. package/dist/global/components/Table/Table.js +7 -5
  105. package/dist/index.d.ts +12 -12
  106. package/dist/index.js +31 -13
  107. package/dist/tailwind.config.js +72 -67
  108. package/dist/utils/colors.js +4 -1
  109. package/dist/utils/constants.js +5 -2
  110. package/dist/utils/enums.d.ts +9 -0
  111. package/dist/utils/enums.js +23 -10
  112. package/dist/utils/iconList.js +4 -1
  113. package/dist/utils/index.d.ts +4 -4
  114. package/dist/utils/index.js +78 -85
  115. package/package.json +2 -1
@@ -1,11 +1,16 @@
1
- import { cardLayoutEnum, orientationEnum, sectionType } from "./enum";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customAspectRatio = exports.customBorderRadius = exports.customBorderWidth = exports.customOpacity = exports.customButtonIconSize = exports.customIconSize = exports.customLogoSize = exports.customMinHeight = exports.customMinWidth = exports.customHeight = exports.customWidth = exports.customSize = exports.customTextWrap = exports.customTextDecoration = exports.customTextTransform = exports.customTextAlignment = exports.customLineHeight = exports.customFontWeight = exports.customFontSize = exports.sectionTypeList = exports.avtarBackgroundSize = exports.headingsList = exports.avatarShapeList = exports.textColorList = exports.avatarSizesList = exports.landscapeaspectRatioList = exports.portraitaspectRatioList = exports.buttonWithIconList = exports.butttonSizeList = exports.buttonColorsList = exports.iconColorList = exports.buttonIconSizeList = exports.iconSizeList = exports.borderWidthList = exports.borderRadiusList = exports.spacings = exports.minHeights = exports.minWidths = exports.heights = exports.widths = exports.sizes = exports.textWraps = exports.textDecorations = exports.textTransform = exports.textAlignment = exports.lineHeights = exports.fontWeights = exports.fontSizes = exports.defaultCardProps = exports.text = void 0;
4
+ exports.table_row_className = exports.table_sub_heading_className = exports.table_header_className = exports.table_data_className = exports.customHeadings = exports.customizeTextColors = exports.customizeAvtarShape = exports.customAvatarSize = exports.customIconButtonSize = exports.customButtonSize = exports.customButtonOutlineColors = exports.customButtonColors = exports.customIconColors = exports.customBoxShadow = void 0;
5
+ exports.default = generateUtilities;
6
+ var index_1 = require("../components/MediaCard/index");
7
+ var enums_1 = require("./enums");
2
8
  //************Used for typography and color utilities Storybook************
3
- export var text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.";
4
- export var defaultCardProps = {
5
- type: sectionType.postByCategoriesTheme,
9
+ exports.text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.";
10
+ exports.defaultCardProps = {
11
+ type: index_1.SectionTypeEnum.postByCategoriesTheme,
6
12
  image: "/images/demo-image.jpg",
7
- layout: cardLayoutEnum.horizontal,
8
- mediaPosition: orientationEnum.landscape,
13
+ layout: enums_1.OrientationEnum.horizontal,
9
14
  heading: "Heading Text",
10
15
  body: "The quick brown fox jumps over the lazy dog.",
11
16
  className: "",
@@ -14,7 +19,7 @@ export var defaultCardProps = {
14
19
  card_title_color: "lu-text-default",
15
20
  id: 1,
16
21
  };
17
- export var fontSizes = [
22
+ exports.fontSizes = [
18
23
  { key: "lu-base-font-size", label: "lu-base-font-size: 16px" },
19
24
  { key: "lu-font-size-x-small", label: "lu-font-size-x-small: 12px" },
20
25
  { key: "lu-font-size-small", label: "lu-font-size-small: 14px" },
@@ -29,7 +34,7 @@ export var fontSizes = [
29
34
  { key: "lu-font-size-7x-large", label: "lu-font-size-7x-large: 48px" },
30
35
  { key: "lu-font-size-huge", label: "lu-font-size-huge: 64px" },
31
36
  ];
32
- export var fontWeights = [
37
+ exports.fontWeights = [
33
38
  { key: "lu-font-weight-thin", label: "lu-font-weight-thin: 100" },
34
39
  {
35
40
  key: "lu-font-weight-extra-light",
@@ -43,13 +48,13 @@ export var fontWeights = [
43
48
  { key: "lu-font-weight-extra-bold", label: "lu-font-weight-extra-bold: 800" },
44
49
  { key: "lu-font-weight-black", label: "lu-font-weight-black: 900" },
45
50
  ];
46
- export var lineHeights = [
51
+ exports.lineHeights = [
47
52
  { key: "lu-line-height-xs", label: "lu-line-height-xs: 1" },
48
53
  { key: "lu-line-height-sm", label: "lu-line-height-sm: 1.25" },
49
54
  { key: "lu-line-height-base", label: "lu-line-height-base: 1.5" },
50
55
  { key: "lu-line-height-lg", label: "lu-line-height-lg: 2" },
51
56
  ];
52
- export var textAlignment = [
57
+ exports.textAlignment = [
53
58
  { key: "lu-text-left", label: "lu-text-left: left" },
54
59
  { key: "lu-text-center", label: "lu-text-center: center" },
55
60
  { key: "lu-text-right", label: "lu-text-right: right" },
@@ -59,12 +64,12 @@ export var textAlignment = [
59
64
  label: "lu-text-space-between: space-between",
60
65
  },
61
66
  ];
62
- export var textTransform = [
67
+ exports.textTransform = [
63
68
  { key: "lu-text-lowercase", label: "lu-text-lowercase: lowercase" },
64
69
  { key: "lu-text-uppercase", label: "lu-text-uppercase: uppercase" },
65
70
  { key: "lu-text-capitalize", label: "lu-text-capitalize: capitalize" },
66
71
  ];
67
- export var textDecorations = [
72
+ exports.textDecorations = [
68
73
  { key: "lu-text-decoration-none", label: "lu-text-decoration-none: none" },
69
74
  {
70
75
  key: "lu-text-decoration-underline",
@@ -75,11 +80,11 @@ export var textDecorations = [
75
80
  label: "lu-text-decoration-linethrough: linethrough",
76
81
  },
77
82
  ];
78
- export var textWraps = [
83
+ exports.textWraps = [
79
84
  { key: "lu-text-wrap", label: "lu-text-wrap: normal" },
80
85
  { key: "lu-text-nowrap", label: "lu-text-nowrap: nowrap" },
81
86
  ];
82
- export var sizes = [
87
+ exports.sizes = [
83
88
  { key: "lu-size-050", label: "lu-size-050: 4px" },
84
89
  { key: "lu-size-100", label: "lu-size-100: 8px" },
85
90
  { key: "lu-size-200", label: "lu-size-200: 16px" },
@@ -93,7 +98,7 @@ export var sizes = [
93
98
  { key: "lu-size-2000", label: "lu-size-2000: 160px" },
94
99
  { key: "lu-size-2500", label: "lu-size-2500: 200px" },
95
100
  ];
96
- export var widths = [
101
+ exports.widths = [
97
102
  { key: "lu-width-5", label: "lu-width-5: 5%" },
98
103
  { key: "lu-width-10", label: "lu-width-10: 10%" },
99
104
  { key: "lu-width-25", label: "lu-width-25: 25%" },
@@ -101,7 +106,7 @@ export var widths = [
101
106
  { key: "lu-width-75", label: "lu-width-75: 75%" },
102
107
  { key: "lu-width-100", label: "lu-width-100: 100%" },
103
108
  ];
104
- export var heights = [
109
+ exports.heights = [
105
110
  { key: "lu-height-5", label: "lu-height-5: 5%" },
106
111
  { key: "lu-height-10", label: "lu-height-10: 10%" },
107
112
  { key: "lu-height-25", label: "lu-height-25: 25%" },
@@ -109,7 +114,7 @@ export var heights = [
109
114
  { key: "lu-height-75", label: "lu-height-75: 75%" },
110
115
  { key: "lu-height-100", label: "lu-height-100: 100%" },
111
116
  ];
112
- export var minWidths = [
117
+ exports.minWidths = [
113
118
  { key: "lu-min-width-100", label: "lu-min-width-100: 8px" },
114
119
  { key: "lu-min-width-200", label: "lu-min-width-200: 16px" },
115
120
  { key: "lu-min-width-300", label: "lu-min-width-300: 24px" },
@@ -123,7 +128,7 @@ export var minWidths = [
123
128
  { key: "lu-min-width-2500", label: "lu-min-width-2500: 200px" },
124
129
  { key: "lu-min-width-3000", label: "lu-min-width-3000: 240px" },
125
130
  ];
126
- export var minHeights = [
131
+ exports.minHeights = [
127
132
  { key: "lu-min-height-100", label: "lu-min-height-100: 8px" },
128
133
  { key: "lu-min-height-200", label: "lu-min-height-200: 16px" },
129
134
  { key: "lu-min-height-300", label: "lu-min-height-300: 24px" },
@@ -137,7 +142,7 @@ export var minHeights = [
137
142
  { key: "lu-min-height-2500", label: "lu-min-height-2500: 200px" },
138
143
  { key: "lu-min-height-3000", label: "lu-min-height-3000: 240px" },
139
144
  ];
140
- export var spacings = [
145
+ exports.spacings = [
141
146
  { key: "lu-space-0", label: "lu-space-0: 0px" },
142
147
  { key: "lu-space-050", label: "lu-space-050: 4px" },
143
148
  { key: "lu-space-100", label: "lu-space-100: 8px" },
@@ -155,7 +160,7 @@ export var spacings = [
155
160
  { key: "lu-space-2500", label: "lu-space-2500: 200px" },
156
161
  { key: "lu-space-3000", label: "lu-space-3000: 240px" },
157
162
  ];
158
- export var borderRadiusList = [
163
+ exports.borderRadiusList = [
159
164
  { key: "lu-border-rounded-none", label: "lu-border-rounded-none: 0px" },
160
165
  { key: "lu-border-rounded-xs", label: "lu-border-rounded-xs: 2px" },
161
166
  { key: "lu-border-rounded-sm", label: "lu-border-rounded-sm: 4px" },
@@ -166,13 +171,13 @@ export var borderRadiusList = [
166
171
  { key: "lu-border-rounded-3xl", label: "lu-border-rounded-3xl: 24px" },
167
172
  { key: "lu-border-rounded-full", label: "lu-border-rounded-full: 9999px" },
168
173
  ];
169
- export var borderWidthList = [
174
+ exports.borderWidthList = [
170
175
  { key: "lu-border-width-125", label: "lu-border-width-125: 1px" },
171
176
  { key: "lu-border-width-025", label: "lu-border-width-025: 2px" },
172
177
  { key: "lu-border-width-050", label: "lu-border-width-050: 4px" },
173
178
  { key: "lu-border-width-100", label: "lu-border-width-100: 8px" },
174
179
  ];
175
- export var iconSizeList = [
180
+ exports.iconSizeList = [
176
181
  { key: "lu-icon-xx-small", label: "lu-icon-xx-small: 8px" },
177
182
  { key: "lu-icon-x-small", label: "lu-icon-x-small: 12px" },
178
183
  { key: "lu-icon-small", label: "lu-icon-small: 14px" },
@@ -188,7 +193,7 @@ export var iconSizeList = [
188
193
  { key: "lu-icon-huge", label: "lu-icon-huge: 64px" },
189
194
  { key: "lu-icon-massive", label: "lu-icon-massive: 80px" },
190
195
  ];
191
- export var buttonIconSizeList = [
196
+ exports.buttonIconSizeList = [
192
197
  { key: "lu-icon-xx-small", label: "lu-icon-xx-small: 8px" },
193
198
  { key: "lu-icon-x-small", label: "lu-icon-x-small: 12px" },
194
199
  { key: "lu-icon-small", label: "lu-icon-small: 14px" },
@@ -196,7 +201,7 @@ export var buttonIconSizeList = [
196
201
  { key: "lu-icon-large", label: "lu-icon-large: 18px" },
197
202
  { key: "lu-icon-x-large", label: "lu-icon-x-large: 20px" },
198
203
  ];
199
- export var iconColorList = [
204
+ exports.iconColorList = [
200
205
  { key: "lu-disabled-icon-light", label: "lu-disabled-icon-light: #D2D3D5" },
201
206
  { key: "lu-disabled-icon-dark", label: "lu-disabled-icon-dark: #9DA1A5" },
202
207
  { key: "lu-primary-icon-default", label: "lu-primary-icon-default: #276AB3" },
@@ -217,7 +222,7 @@ export var iconColorList = [
217
222
  { key: "lu-neutral-icon-light", label: "lu-neutral-icon-light: #FAFAFA" },
218
223
  { key: "lu-neutral-icon-dark", label: "lu-neutral-icon-dark: #070808" },
219
224
  ];
220
- export var buttonColorsList = [
225
+ exports.buttonColorsList = [
221
226
  { key: "lu-btn-primary", label: "lu-btn-primary" },
222
227
  { key: "lu-btn-primary-light", label: "lu-btn-primary-light" },
223
228
  { key: "lu-btn-success", label: "lu-btn-success" },
@@ -232,19 +237,19 @@ export var buttonColorsList = [
232
237
  { key: "lu-btn-gray-light", label: "lu-btn-gray-light" },
233
238
  { key: "lu-btn-disabled", label: "lu-btn-disabled" },
234
239
  ];
235
- export var butttonSizeList = [
240
+ exports.butttonSizeList = [
236
241
  { key: "lu-btn-sm", label: "lu-btn-sm" },
237
242
  { key: "lu-btn-md", label: "lu-btn-md" },
238
243
  { key: "lu-btn-lg", label: "lu-btn-lg" },
239
244
  { key: "lu-btn-xl", label: "lu-btn-xl" },
240
245
  ];
241
- export var buttonWithIconList = [
246
+ exports.buttonWithIconList = [
242
247
  { key: "lu-btn-sm", label: "lu-btn-sm" },
243
248
  { key: "lu-btn-md", label: "lu-btn-md" },
244
249
  { key: "lu-btn-lg", label: "lu-btn-lg" },
245
250
  { key: "lu-btn-xl", label: "lu-btn-xl" },
246
251
  ];
247
- export var portraitaspectRatioList = [
252
+ exports.portraitaspectRatioList = [
248
253
  { key: "lu-aspect-square", label: "lu-aspect-square: 1/1" },
249
254
  { key: "lu-aspect-1-2-por", label: "lu-aspect-1-2-por: 1/2" },
250
255
  { key: "lu-aspect-2-3-por", label: "lu-aspect-2-3-por: 2/3" },
@@ -254,7 +259,7 @@ export var portraitaspectRatioList = [
254
259
  { key: "lu-aspect-9-16-por", label: "lu-aspect-9-16-por: 9/16" },
255
260
  { key: "lu-aspect-9-21-por", label: "lu-aspect-9-21-por: 9/21" },
256
261
  ];
257
- export var landscapeaspectRatioList = [
262
+ exports.landscapeaspectRatioList = [
258
263
  { key: "lu-aspect-square", label: "lu-aspect-square: 1/1" },
259
264
  { key: "lu-aspect-2-1-landsc", label: "lu-aspect-2-1-landsc: 2/1" },
260
265
  { key: "lu-aspect-3-2-landsc", label: "lu-aspect-3-2-landsc: 3/2" },
@@ -264,7 +269,7 @@ export var landscapeaspectRatioList = [
264
269
  { key: "lu-aspect-16-9-landsc", label: "lu-aspect-16-9-landsc: 16/9" },
265
270
  { key: "lu-aspect-21-9-landscape", label: "lu-aspect-21-9-landscape: 21/9" },
266
271
  ];
267
- export var avatarSizesList = [
272
+ exports.avatarSizesList = [
268
273
  { key: "lu-avatar-massive", label: "lu-avatar-massive" },
269
274
  { key: "lu-avatar-huge", label: "lu-avatar-huge" },
270
275
  { key: "lu-avatar-7x-large", label: "lu-avatar-7x-large" },
@@ -278,7 +283,7 @@ export var avatarSizesList = [
278
283
  { key: "lu-avatar-medium", label: "lu-avatar-medium" },
279
284
  { key: "lu-avatar-small", label: "lu-avatar-small" },
280
285
  ];
281
- export var textColorList = [
286
+ exports.textColorList = [
282
287
  { key: "lu-text-base", label: "lu-text-base" },
283
288
  { key: "lu-text-default", label: "lu-text-default" },
284
289
  { key: "lu-text-secondary", label: "lu-text-secondary" },
@@ -294,11 +299,11 @@ export var textColorList = [
294
299
  { key: "lu-text-link-default", label: "lu-text-link-default" },
295
300
  { key: "lu-text-link-pressed", label: "lu-text-link-pressed" },
296
301
  ];
297
- export var avatarShapeList = [
302
+ exports.avatarShapeList = [
298
303
  { key: "square", label: "square" },
299
304
  { key: "circle", label: "circle" },
300
305
  ];
301
- export var headingsList = [
306
+ exports.headingsList = [
302
307
  { key: "lu-heading-h1", label: "lu-heading-h1" },
303
308
  { key: "lu-heading-h2", label: "lu-heading-h2" },
304
309
  { key: "lu-heading-h3", label: "lu-heading-h3" },
@@ -306,7 +311,7 @@ export var headingsList = [
306
311
  { key: "lu-heading-h5", label: "lu-heading-h5" },
307
312
  { key: "lu-heading-h6", label: "lu-heading-h6" },
308
313
  ];
309
- export var avtarBackgroundSize = function (size) {
314
+ var avtarBackgroundSize = function (size) {
310
315
  if (size === "lu-avatar-massive") {
311
316
  return {
312
317
  width: "200px",
@@ -386,25 +391,13 @@ export var avtarBackgroundSize = function (size) {
386
391
  };
387
392
  }
388
393
  };
389
- export var sectionTypeList = [
390
- {
391
- key: sectionType.multiplePostsTheme,
392
- label: sectionType.multiplePostsTheme,
393
- },
394
- { key: sectionType.albumTheme, label: sectionType.albumTheme },
395
- {
396
- key: sectionType.contactsProfileTheme,
397
- label: sectionType.contactsProfileTheme,
398
- },
399
- { key: sectionType.singlePostTheme, label: sectionType.singlePostTheme },
400
- {
401
- key: sectionType.postByCategoriesTheme,
402
- label: sectionType.postByCategoriesTheme,
403
- },
404
- { key: sectionType.galleryTheme, label: sectionType.galleryTheme },
405
- ];
394
+ exports.avtarBackgroundSize = avtarBackgroundSize;
395
+ exports.sectionTypeList = Object.values(index_1.SectionTypeEnum).map(function (type) { return ({
396
+ key: type,
397
+ label: type,
398
+ }); });
406
399
  //Plugin for generating utilities (Used in tailwind.config.js)
407
- export default function generateUtilities(property, theme) {
400
+ function generateUtilities(property, theme) {
408
401
  var utilities = theme(property);
409
402
  var newUtilities = Object.keys(utilities).reduce(function (acc, key) {
410
403
  var _a;
@@ -414,7 +407,7 @@ export default function generateUtilities(property, theme) {
414
407
  return newUtilities;
415
408
  }
416
409
  //************Used for tailwind configuration************
417
- export var customFontSize = {
410
+ exports.customFontSize = {
418
411
  "lu-base-font-size": "var(--core-200)",
419
412
  "lu-font-size-x-small": "var(--core-150)",
420
413
  "lu-font-size-small": "var(--core-175)",
@@ -429,7 +422,7 @@ export var customFontSize = {
429
422
  "lu-font-size-7x-large": "var(--core-600)",
430
423
  "lu-font-size-huge": "var(--core-800)",
431
424
  };
432
- export var customFontWeight = {
425
+ exports.customFontWeight = {
433
426
  "lu-font-weight-thin": "100",
434
427
  "lu-font-weight-extra-light": "200",
435
428
  "lu-font-weight-light": "300",
@@ -440,34 +433,34 @@ export var customFontWeight = {
440
433
  "lu-font-weight-extra-bold": "800",
441
434
  "lu-font-weight-black": "900",
442
435
  };
443
- export var customLineHeight = {
436
+ exports.customLineHeight = {
444
437
  "lu-line-height-xs": "1",
445
438
  "lu-line-height-sm": "1.25",
446
439
  "lu-line-height-base": "1.5",
447
440
  "lu-line-height-lg": "2",
448
441
  };
449
- export var customTextAlignment = {
442
+ exports.customTextAlignment = {
450
443
  "lu-text-left": "left",
451
444
  "lu-text-center": "center",
452
445
  "lu-text-right": "right",
453
446
  "lu-text-justify": "justify",
454
447
  "lu-text-space-between": "space-between",
455
448
  };
456
- export var customTextTransform = {
449
+ exports.customTextTransform = {
457
450
  "lu-text-lowercase": "lowercase",
458
451
  "lu-text-uppercase": "uppercase",
459
452
  "lu-text-capitalize": "capitalize",
460
453
  };
461
- export var customTextDecoration = {
454
+ exports.customTextDecoration = {
462
455
  "lu-text-decoration-none": "none",
463
456
  "lu-text-decoration-underline": "underline",
464
457
  "lu-text-decoration-linethrough": "line-through",
465
458
  };
466
- export var customTextWrap = {
459
+ exports.customTextWrap = {
467
460
  "lu-text-wrap": "normal",
468
461
  "lu-text-nowrap": "nowrap",
469
462
  };
470
- export var customSize = {
463
+ exports.customSize = {
471
464
  "lu-size-050": "var(--core-050)",
472
465
  "lu-size-100": "var(--core-100)",
473
466
  "lu-size-200": "var(--core-200)",
@@ -481,7 +474,7 @@ export var customSize = {
481
474
  "lu-size-2000": "var(--core-2000)",
482
475
  "lu-size-2500": "var(--core-2500)",
483
476
  };
484
- export var customWidth = {
477
+ exports.customWidth = {
485
478
  "lu-width-5": "5%",
486
479
  "lu-width-10": "10%",
487
480
  "lu-width-25": "25%",
@@ -489,7 +482,7 @@ export var customWidth = {
489
482
  "lu-width-75": "75%",
490
483
  "lu-width-100": "100%",
491
484
  };
492
- export var customHeight = {
485
+ exports.customHeight = {
493
486
  "lu-height-5": "5%",
494
487
  "lu-height-10": "10%",
495
488
  "lu-height-25": "25%",
@@ -497,7 +490,7 @@ export var customHeight = {
497
490
  "lu-height-75": "75%",
498
491
  "lu-height-100": "100%",
499
492
  };
500
- export var customMinWidth = {
493
+ exports.customMinWidth = {
501
494
  "lu-min-width-100": "var(--core-100)",
502
495
  "lu-min-width-200": "var(--core-200)",
503
496
  "lu-min-width-300": "var(--core-300)",
@@ -511,7 +504,7 @@ export var customMinWidth = {
511
504
  "lu-min-width-2500": "var(--core-2500)",
512
505
  "lu-min-width-3000": "var(--core-3000)",
513
506
  };
514
- export var customMinHeight = {
507
+ exports.customMinHeight = {
515
508
  "lu-min-height-100": "var(--core-100)",
516
509
  "lu-min-height-200": "var(--core-200)",
517
510
  "lu-min-height-300": "var(--core-300)",
@@ -525,12 +518,12 @@ export var customMinHeight = {
525
518
  "lu-min-height-2500": "var(--core-2500)",
526
519
  "lu-min-height-3000": "var(--core-3000)",
527
520
  };
528
- export var customLogoSize = {
521
+ exports.customLogoSize = {
529
522
  "lu-primary-logo": "75px",
530
523
  "lu-secondary-logo": "var(--core-400)",
531
524
  "lu-favicon-logo": "var(--core-400)",
532
525
  };
533
- export var customIconSize = {
526
+ exports.customIconSize = {
534
527
  ".lu-icon-xx-small": {
535
528
  width: "var(--core-100)",
536
529
  height: "var(--core-100)",
@@ -588,7 +581,7 @@ export var customIconSize = {
588
581
  height: "var(--core-1000)",
589
582
  },
590
583
  };
591
- export var customButtonIconSize = {
584
+ exports.customButtonIconSize = {
592
585
  ".lu-icon-xx-small": {
593
586
  width: "var(--core-100)",
594
587
  height: "var(--core-100)",
@@ -614,7 +607,7 @@ export var customButtonIconSize = {
614
607
  height: "var(--core-250)",
615
608
  },
616
609
  };
617
- export var customOpacity = {
610
+ exports.customOpacity = {
618
611
  "lu-opacity-0": "0.0",
619
612
  "lu-opacity-5": "0.05",
620
613
  "lu-opacity-10": "0.1",
@@ -632,14 +625,14 @@ export var customOpacity = {
632
625
  "lu-opacity-95": "0.95",
633
626
  "lu-opacity-100": "1",
634
627
  };
635
- export var customBorderWidth = {
628
+ exports.customBorderWidth = {
636
629
  ".lu-border-width-0125": { borderWidth: "var(--core-0125)" },
637
630
  ".lu-border-width-025": { borderWidth: "var(--core-025)" },
638
631
  ".lu-border-width-050": { borderWidth: "var(--core-050)" },
639
632
  ".lu-border-width-100": { borderWidth: "var(--core-100)" },
640
633
  ".lu-border-width-125": { borderWidth: "var(--core-125)" },
641
634
  };
642
- export var customBorderRadius = {
635
+ exports.customBorderRadius = {
643
636
  ".lu-border-rounded-none": { borderRadius: "var(--core-0)" },
644
637
  ".lu-border-rounded-xs": { borderRadius: "var(--core-025)" },
645
638
  ".lu-border-rounded-sm": { borderRadius: "var(--core-050)" },
@@ -650,7 +643,7 @@ export var customBorderRadius = {
650
643
  ".lu-border-rounded-3xl": { borderRadius: "var(--core-300)" },
651
644
  ".lu-border-rounded-full": { borderRadius: "9999px" },
652
645
  };
653
- export var customAspectRatio = {
646
+ exports.customAspectRatio = {
654
647
  ".lu-aspect-square": { aspectRatio: "1 / 1" },
655
648
  ".lu-aspect-2-1-landsc": { aspectRatio: "2 / 1" },
656
649
  ".lu-aspect-1-2-por": { aspectRatio: "1 / 2" },
@@ -667,14 +660,14 @@ export var customAspectRatio = {
667
660
  ".lu-aspect-21-9-landscape": { aspectRatio: "21 / 9" },
668
661
  ".lu-aspect-9-21-por": { aspectRatio: "9 / 21" },
669
662
  };
670
- export var customBoxShadow = {
663
+ exports.customBoxShadow = {
671
664
  "lu-shadow-xs": "0px 4px 4px 0 rgba(52, 52, 52, 0.05)",
672
665
  "lu-shadow-sm": "0px 4px 8px 0 rgba(52, 52, 52, 0.1)",
673
666
  "lu-shadow-md": "0px 4px 12px 0 rgba(52, 52, 52, 0.15)",
674
667
  "lu-shadow-lg": "0px 4px 18px 0 rgba(52, 52, 52, 0.15)",
675
668
  "lu-shadow-xl": "0px 8px 24px 0 rgba(52, 52, 52, 0.15)",
676
669
  };
677
- export var customIconColors = {
670
+ exports.customIconColors = {
678
671
  ".lu-disabled-icon-light": { fill: "#D2D3D5" },
679
672
  ".lu-disabled-icon-dark": { fill: "var(--neutral-400)" },
680
673
  ".lu-primary-icon-default": { fill: "var( --primary-600)" },
@@ -695,7 +688,7 @@ export var customIconColors = {
695
688
  ".lu-neutral-icon-light": { fill: "var(--neutral-0)" },
696
689
  ".lu-neutral-icon-dark": { fill: "var(--neutral-1000)" },
697
690
  };
698
- export var customButtonColors = {
691
+ exports.customButtonColors = {
699
692
  ".lu-btn-primary": {
700
693
  color: "var(--primary-0)",
701
694
  backgroundColor: "var(--primary-600)",
@@ -1038,7 +1031,7 @@ export var customButtonColors = {
1038
1031
  fill: "#9DA1A5",
1039
1032
  },
1040
1033
  };
1041
- export var customButtonOutlineColors = {
1034
+ exports.customButtonOutlineColors = {
1042
1035
  ".outline-button.lu-btn-primary-light": {
1043
1036
  color: "var(--primary-600)",
1044
1037
  borderColor: "var(--primary-100) !important",
@@ -1455,7 +1448,7 @@ export var customButtonOutlineColors = {
1455
1448
  border: "2px solid",
1456
1449
  },
1457
1450
  };
1458
- export var customButtonSize = {
1451
+ exports.customButtonSize = {
1459
1452
  ".lu-btn-xl": {
1460
1453
  //padding: top right bottom left
1461
1454
  padding: "var(--core-200) var(--core-300)",
@@ -1478,7 +1471,7 @@ export var customButtonSize = {
1478
1471
  fontWeight: "400",
1479
1472
  },
1480
1473
  };
1481
- export var customIconButtonSize = {
1474
+ exports.customIconButtonSize = {
1482
1475
  ".icon-only.lu-btn-xl": {
1483
1476
  //padding: top right bottom left
1484
1477
  padding: "var(--core-200)",
@@ -1493,7 +1486,7 @@ export var customIconButtonSize = {
1493
1486
  padding: "var(--core-100)",
1494
1487
  },
1495
1488
  };
1496
- export var customAvatarSize = {
1489
+ exports.customAvatarSize = {
1497
1490
  ".lu-avatar-massive": {
1498
1491
  width: "var(--core-1500)",
1499
1492
  height: "var(--core-1500)",
@@ -1543,11 +1536,11 @@ export var customAvatarSize = {
1543
1536
  height: "var(--core-175)",
1544
1537
  },
1545
1538
  };
1546
- export var customizeAvtarShape = {
1539
+ exports.customizeAvtarShape = {
1547
1540
  ".square": { borderRadius: "0px" },
1548
1541
  ".circle": { borderRadius: "9999px" },
1549
1542
  };
1550
- export var customizeTextColors = {
1543
+ exports.customizeTextColors = {
1551
1544
  ".lu-text-base": { color: "var(--neutral-0)" },
1552
1545
  ".lu-text-default": { color: "var(--black)" },
1553
1546
  ".lu-text-secondary": { color: "var(--neutral-800)" },
@@ -1563,7 +1556,7 @@ export var customizeTextColors = {
1563
1556
  ".lu-text-link-default": { color: "var(--primary-400)" },
1564
1557
  ".lu-text-link-pressed": { color: "var(--primary-600)" },
1565
1558
  };
1566
- export var customHeadings = {
1559
+ exports.customHeadings = {
1567
1560
  ".lu-heading-h1": {
1568
1561
  fontSize: "var(--core-600)",
1569
1562
  fontWeight: "bold",
@@ -1602,7 +1595,7 @@ export var customHeadings = {
1602
1595
  },
1603
1596
  };
1604
1597
  // Components CSS Classes
1605
- export var table_data_className = "bg-gray-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded gap-2.5";
1606
- export var table_header_className = "lu-pd-200";
1607
- export var table_sub_heading_className = "lu-text-center lu-text-uppercase lu-font-weight-semibold lu-font-size-large lu-pd-200";
1608
- export var table_row_className = "lu-pd-200";
1598
+ exports.table_data_className = "bg-gray-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded gap-2.5";
1599
+ exports.table_header_className = "lu-pd-200";
1600
+ exports.table_sub_heading_className = "lu-text-center lu-text-uppercase lu-font-weight-semibold lu-font-size-large lu-pd-200";
1601
+ exports.table_row_className = "lu-pd-200";
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "linkedunion-design-kit",
3
- "version": "1.4.8",
3
+ "version": "1.5.0",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
7
7
  "styles/global.css"
8
8
  ],
9
9
  "main": "dist/index.js",
10
+ "module": "dist/index.esm.js",
10
11
  "types": "dist/index.d.ts",
11
12
  "style": "dist/styles/global.css",
12
13
  "scripts": {