linkedunion-design-kit 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/app/layout.d.ts +6 -0
  2. package/dist/app/layout.jsx +13 -0
  3. package/dist/app/page.d.ts +1 -0
  4. package/dist/app/page.jsx +71 -0
  5. package/dist/components/Color/Color.d.ts +3 -0
  6. package/dist/components/Color/Color.jsx +16 -0
  7. package/dist/components/Color/Color.stories.d.ts +10 -0
  8. package/dist/components/Color/Color.stories.jsx +76 -0
  9. package/dist/components/Size/Resizable.d.ts +2 -0
  10. package/dist/components/Size/Resizable.jsx +8 -0
  11. package/dist/components/Size/Resizable.stories.d.ts +5 -0
  12. package/dist/components/Size/Resizable.stories.jsx +22 -0
  13. package/dist/components/Size/Size.d.ts +2 -0
  14. package/dist/components/Size/Size.jsx +6 -0
  15. package/dist/components/Size/Size.stories.d.ts +5 -0
  16. package/dist/components/Size/Size.stories.jsx +22 -0
  17. package/dist/components/Typography/Typography.d.ts +2 -0
  18. package/dist/components/Typography/Typography.jsx +8 -0
  19. package/dist/components/Typography/Typography.stories.d.ts +5 -0
  20. package/dist/components/Typography/Typography.stories.jsx +51 -0
  21. package/dist/global.css +14212 -0
  22. package/dist/index.d.ts +5 -0
  23. package/dist/tailwind.config.d.ts +3 -0
  24. package/dist/tailwind.config.js +106 -0
  25. package/dist/utils/index.d.ts +321 -0
  26. package/dist/utils/index.js +459 -0
  27. package/package.json +5 -2
  28. package/.eslintrc.json +0 -6
  29. package/.storybook/main.ts +0 -20
  30. package/.storybook/preview.ts +0 -15
  31. package/_test_/Color.test.js +0 -42
  32. package/_test_/Size.test.js +0 -21
  33. package/_test_/Typography.test.js +0 -32
  34. package/app/favicon.ico +0 -0
  35. package/app/globals.css +0 -58
  36. package/app/layout.tsx +0 -22
  37. package/app/page.tsx +0 -113
  38. package/components/Color/Color.stories.tsx +0 -87
  39. package/components/Color/Color.tsx +0 -19
  40. package/components/Size/Resizable.stories.tsx +0 -30
  41. package/components/Size/Resizable.tsx +0 -10
  42. package/components/Size/Size.stories.tsx +0 -30
  43. package/components/Size/Size.tsx +0 -8
  44. package/components/Typography/Typography.stories.tsx +0 -59
  45. package/components/Typography/Typography.tsx +0 -10
  46. package/index.ts +0 -5
  47. package/jest.config.js +0 -23
  48. package/jest.setup.js +0 -25
  49. package/next.config.js +0 -4
  50. package/package-lock.json +0 -12682
  51. package/postcss.config.js +0 -6
  52. package/public/next.svg +0 -1
  53. package/public/vercel.svg +0 -1
  54. package/tailwind.config.ts +0 -127
  55. package/tsconfig.json +0 -50
  56. package/types/interface.d.ts +0 -27
  57. package/utils/index.ts +0 -488
@@ -0,0 +1,459 @@
1
+ //************Used for typography and color utilities Storybook************
2
+ 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.";
3
+ export var colorGroups = {
4
+ primary: [
5
+ "bg-primary-0",
6
+ "bg-primary-100",
7
+ "bg-primary-200",
8
+ "bg-primary-300",
9
+ "bg-primary-400",
10
+ "bg-primary-500",
11
+ "bg-primary-600",
12
+ "bg-primary-700",
13
+ "bg-primary-800",
14
+ "bg-primary-900",
15
+ "bg-primary-1000",
16
+ ],
17
+ gray: [
18
+ "bg-gray-0",
19
+ "bg-gray-100",
20
+ "bg-gray-200",
21
+ "bg-gray-300",
22
+ "bg-gray-400",
23
+ "bg-gray-500",
24
+ "bg-gray-600",
25
+ "bg-gray-700",
26
+ "bg-gray-800",
27
+ "bg-gray-900",
28
+ "bg-gray-1000",
29
+ ],
30
+ success: [
31
+ "bg-success-0",
32
+ "bg-success-100",
33
+ "bg-success-200",
34
+ "bg-success-300",
35
+ "bg-success-400",
36
+ "bg-success-500",
37
+ "bg-success-600",
38
+ "bg-success-700",
39
+ "bg-success-800",
40
+ "bg-success-900",
41
+ "bg-success-1000",
42
+ ],
43
+ warning: [
44
+ "bg-warning-0",
45
+ "bg-warning-100",
46
+ "bg-warning-200",
47
+ "bg-warning-300",
48
+ "bg-warning-400",
49
+ "bg-warning-500",
50
+ "bg-warning-600",
51
+ "bg-warning-700",
52
+ "bg-warning-800",
53
+ "bg-warning-900",
54
+ "bg-warning-1000",
55
+ ],
56
+ danger: [
57
+ "bg-danger-0",
58
+ "bg-danger-100",
59
+ "bg-danger-200",
60
+ "bg-danger-300",
61
+ "bg-danger-400",
62
+ "bg-danger-500",
63
+ "bg-danger-600",
64
+ "bg-danger-700",
65
+ "bg-danger-800",
66
+ "bg-danger-900",
67
+ "bg-danger-1000",
68
+ ],
69
+ info: [
70
+ "bg-info-0",
71
+ "bg-info-100",
72
+ "bg-info-200",
73
+ "bg-info-300",
74
+ "bg-info-400",
75
+ "bg-info-500",
76
+ "bg-info-600",
77
+ "bg-info-700",
78
+ "bg-info-800",
79
+ "bg-info-900",
80
+ "bg-info-1000",
81
+ ]
82
+ };
83
+ export var fontSizes = [
84
+ { key: 'lu-base-font-size', label: 'lu-base-font-size: 16px' },
85
+ { key: 'lu-font-size-x-small', label: 'lu-font-size-x-small: 12px' },
86
+ { key: 'lu-font-size-small', label: 'lu-font-size-small: 14px' },
87
+ { key: 'lu-font-size-medium', label: 'lu-font-size-medium: 16px' },
88
+ { key: 'lu-font-size-large', label: 'lu-font-size-large: 18px' },
89
+ { key: 'lu-font-size-x-large', label: 'lu-font-size-x-large: 20px' },
90
+ { key: 'lu-font-size-2x-large', label: 'lu-font-size-2x-large: 24px' },
91
+ { key: 'lu-font-size-3x-large', label: 'lu-font-size-3x-large: 28px' },
92
+ { key: 'lu-font-size-4x-large', label: 'lu-font-size-4x-large: 32px' },
93
+ { key: 'lu-font-size-5x-large', label: 'lu-font-size-5x-large: 36px' },
94
+ { key: 'lu-font-size-6x-large', label: 'lu-font-size-6x-large: 40px' },
95
+ { key: 'lu-font-size-7x-large', label: 'lu-font-size-7x-large: 48px' },
96
+ { key: 'lu-font-size-huge', label: 'lu-font-size-huge: 64px' },
97
+ ];
98
+ export var fontWeights = [
99
+ { key: 'lu-font-weight-thin', label: 'lu-font-weight-thin: 100' },
100
+ { key: 'lu-font-weight-extra-light', label: 'lu-font-weight-extra-light: 200' },
101
+ { key: 'lu-font-weight-light', label: 'lu-font-weight-light: 300' },
102
+ { key: 'lu-font-weight-regular', label: 'lu-font-weight-regular: 400' },
103
+ { key: 'lu-font-weight-medium', label: 'lu-font-weight-medium: 500' },
104
+ { key: 'lu-font-weight-semibold', label: 'lu-font-weight-semibold: 600' },
105
+ { key: 'lu-font-weight-bold', label: 'lu-font-weight-bold: 700' },
106
+ { key: 'lu-font-weight-extra-bold', label: 'lu-font-weight-extra-bold: 800' },
107
+ { key: 'lu-font-weight-black', label: 'lu-font-weight-black: 900' },
108
+ ];
109
+ export var lineHeights = [
110
+ { key: 'lu-line-height-xs', label: 'lu-line-height-xs: 1' },
111
+ { key: 'lu-line-height-sm', label: 'lu-line-height-sm: 1.25' },
112
+ { key: 'lu-line-height-base', label: 'lu-line-height-base: 1.5' },
113
+ { key: 'lu-line-height-lg', label: 'lu-line-height-lg: 2' }
114
+ ];
115
+ export var textAlignment = [
116
+ { key: 'lu-text-left', label: 'lu-text-left: left' },
117
+ { key: 'lu-text-center', label: 'lu-text-center: center' },
118
+ { key: 'lu-text-right', label: 'lu-text-right: right' },
119
+ { key: 'lu-text-justify', label: 'lu-text-justify: justify' },
120
+ { key: 'lu-text-space-between', label: 'lu-text-space-between: space-between' },
121
+ ];
122
+ export var textTransform = [
123
+ { key: 'lu-text-lowercase', label: 'lu-text-lowercase: lowercase' },
124
+ { key: 'lu-text-uppercase', label: 'lu-text-uppercase: uppercase' },
125
+ { key: 'lu-text-capitalize', label: 'lu-text-capitalize: capitalize' },
126
+ ];
127
+ export var textDecorations = [
128
+ { key: 'lu-text-decoration-none', label: 'lu-text-decoration-none: none' },
129
+ { key: 'lu-text-decoration-underline', label: 'lu-text-decoration-underline: underline' },
130
+ { key: 'lu-text-decoration-linethrough', label: 'lu-text-decoration-linethrough: linethrough' },
131
+ ];
132
+ export var textWraps = [
133
+ { key: 'lu-text-wrap', label: 'lu-text-wrap: normal' },
134
+ { key: 'lu-text-nowrap', label: 'lu-text-nowrap: nowrap' },
135
+ ];
136
+ export var sizes = [
137
+ { key: 'lu-size-050', label: 'lu-size-050: 4px' },
138
+ { key: 'lu-size-100', label: 'lu-size-100: 8px' },
139
+ { key: 'lu-size-200', label: 'lu-size-200: 16px' },
140
+ { key: 'lu-size-300', label: 'lu-size-300: 24px' },
141
+ { key: 'lu-size-400', label: 'lu-size-400: 32px' },
142
+ { key: 'lu-size-500', label: 'lu-size-500: 40px' },
143
+ { key: 'lu-size-600', label: 'lu-size-600: 48px' },
144
+ { key: 'lu-size-800', label: 'lu-size-800: 64px' },
145
+ { key: 'lu-size-1000', label: 'lu-size-1000: 80px' },
146
+ { key: 'lu-size-1500', label: 'lu-size-1500: 120px' },
147
+ { key: 'lu-size-2000', label: 'lu-size-2000: 160px' },
148
+ { key: 'lu-size-2500', label: 'lu-size-2500: 200px' }
149
+ ];
150
+ export var widths = [
151
+ { key: 'lu-width-10', label: 'lu-width-10: 10%' },
152
+ { key: 'lu-width-25', label: 'lu-width-25: 25%' },
153
+ { key: 'lu-width-50', label: 'lu-width-50: 50%' },
154
+ { key: 'lu-width-75', label: 'lu-width-75: 75%' },
155
+ { key: 'lu-width-100', label: 'lu-width-100: 100%' }
156
+ ];
157
+ export var heights = [
158
+ { key: 'lu-height-10', label: 'lu-height-10: 10%' },
159
+ { key: 'lu-height-25', label: 'lu-height-25: 25%' },
160
+ { key: 'lu-height-50', label: 'lu-height-50: 50%' },
161
+ { key: 'lu-height-75', label: 'lu-height-75: 75%' },
162
+ { key: 'lu-height-100', label: 'lu-height-100: 100%' }
163
+ ];
164
+ export var spacings = [
165
+ { key: 'lu-space-0', label: 'lu-space-0: 0px' },
166
+ { key: 'lu-space-050', label: 'lu-space-050: 4px' },
167
+ { key: 'lu-space-100', label: 'lu-space-100: 8px' },
168
+ { key: 'lu-space-150', label: 'lu-space-150: 12px' },
169
+ { key: 'lu-space-200', label: 'lu-space-200: 16px' },
170
+ { key: 'lu-space-250', label: 'lu-space-250: 20px' },
171
+ { key: 'lu-space-300', label: 'lu-space-300: 24px' },
172
+ { key: 'lu-space-400', label: 'lu-space-400: 32px' },
173
+ { key: 'lu-space-500', label: 'lu-space-500: 40px' },
174
+ { key: 'lu-space-600', label: 'lu-space-600: 48px' },
175
+ { key: 'lu-space-800', label: 'lu-space-800: 64px' },
176
+ { key: 'lu-space-1000', label: 'lu-space-1000: 80px' },
177
+ { key: 'lu-space-1500', label: 'lu-space-1500: 120px' },
178
+ { key: 'lu-space-2000', label: 'lu-space-2000: 160px' },
179
+ { key: 'lu-space-2500', label: 'lu-space-2500: 200px' },
180
+ { key: 'lu-space-3000', label: 'lu-space-3000: 240px' }
181
+ ];
182
+ //Plugin for generating utilities (Used in tailwind.config.js)
183
+ export default function generateUtilities(property, theme) {
184
+ var utilities = theme(property);
185
+ var newUtilities = Object.keys(utilities).reduce(function (acc, key) {
186
+ var _a;
187
+ acc[".".concat(key)] = (_a = {}, _a[property] = utilities[key], _a);
188
+ return acc;
189
+ }, {});
190
+ return newUtilities;
191
+ }
192
+ //************Used for tailwind configuration************
193
+ export var customColors = {
194
+ white: '#FEFEFE',
195
+ black: '#0F0F0F',
196
+ primary: {
197
+ 0: '#FBFCFE',
198
+ 100: '#E2EDF9',
199
+ 200: '#B8D3EF',
200
+ 300: '#8EB9E6',
201
+ 400: '#649EDD',
202
+ 500: '#3A84D4',
203
+ 600: '#276AB3',
204
+ 700: '#1E528A',
205
+ 800: '#153960',
206
+ 900: '#0C2036',
207
+ 1000: '#03080D'
208
+ },
209
+ gray: {
210
+ 0: '#FCFCFD',
211
+ 100: '#ECEDEE',
212
+ 200: '#D2D4D5',
213
+ 300: '#B7BABD',
214
+ 400: '#9DA1A5',
215
+ 500: '#82878C',
216
+ 600: '#696E72',
217
+ 700: '#515458',
218
+ 800: '#383B3D',
219
+ 900: '#202122',
220
+ 1000: '#070808'
221
+ },
222
+ success: {
223
+ 0: '#FCFDFC',
224
+ 100: '#EBF5F0',
225
+ 200: '#D1E7DD',
226
+ 300: '#A3CFBB',
227
+ 400: '#75B798',
228
+ 500: '#479F76',
229
+ 600: '#198653',
230
+ 700: '#146C43',
231
+ 800: '#0F5132',
232
+ 900: '#0A3622',
233
+ 1000: '#051B11'
234
+ },
235
+ warning: {
236
+ 0: '#FFFDF5',
237
+ 100: '#FFF9E5',
238
+ 200: '#FFF4CC',
239
+ 300: '#FFE999',
240
+ 400: '#FFDE66',
241
+ 500: '#FFD333',
242
+ 600: '#FFC700',
243
+ 700: '#DBAC00',
244
+ 800: '#8A6C00',
245
+ 900: '#665000',
246
+ 1000: '#473800'
247
+ },
248
+ danger: {
249
+ 0: '#FFFAFA',
250
+ 100: '#FFE0E4',
251
+ 200: '#FEC6CB',
252
+ 300: '#FD9EA7',
253
+ 400: '#FC7784',
254
+ 500: '#FA4F5F',
255
+ 600: '#E0061B',
256
+ 700: '#B30515',
257
+ 800: '#73030E',
258
+ 900: '#460208',
259
+ 1000: '#230104'
260
+ },
261
+ info: {
262
+ 0: '#FBFBFE',
263
+ 100: '#ECE9FB',
264
+ 200: '#D5CFF6',
265
+ 300: '#C3BAF2',
266
+ 400: '#ADA0EE',
267
+ 500: '#8976E6',
268
+ 600: '#6249DE',
269
+ 700: '#4226CF',
270
+ 800: '#341EA4',
271
+ 900: '#261679',
272
+ 1000: '#190E4E'
273
+ },
274
+ };
275
+ export var customFontSize = {
276
+ 'lu-base-font-size': '16px',
277
+ 'lu-font-size-x-small': '12px',
278
+ 'lu-font-size-small': '14px',
279
+ 'lu-font-size-medium': '16px',
280
+ 'lu-font-size-large': '18px',
281
+ 'lu-font-size-x-large': '20px',
282
+ 'lu-font-size-2x-large': '24px',
283
+ 'lu-font-size-3x-large': '28px',
284
+ 'lu-font-size-4x-large': '32px',
285
+ 'lu-font-size-5x-large': '36px',
286
+ 'lu-font-size-6x-large': '40px',
287
+ 'lu-font-size-7x-large': '48px',
288
+ 'lu-font-size-huge': '64px',
289
+ };
290
+ export var customFontWeight = {
291
+ 'lu-font-weight-thin': '100',
292
+ 'lu-font-weight-extra-light': '200',
293
+ 'lu-font-weight-light': '300',
294
+ 'lu-font-weight-regular': '400',
295
+ 'lu-font-weight-medium': '500',
296
+ 'lu-font-weight-semibold': '600',
297
+ 'lu-font-weight-bold': '700',
298
+ 'lu-font-weight-extra-bold': '800',
299
+ 'lu-font-weight-black': '900',
300
+ };
301
+ export var customLineHeight = {
302
+ 'lu-line-height-xs': '1',
303
+ 'lu-line-height-sm': '1.25',
304
+ 'lu-line-height-base': '1.5',
305
+ 'lu-line-height-lg': '2',
306
+ };
307
+ export var customTextAlignment = {
308
+ 'lu-text-left': 'left',
309
+ 'lu-text-center': 'center',
310
+ 'lu-text-right': 'right',
311
+ 'lu-text-justify': 'justify',
312
+ 'lu-text-space-between': 'space-between',
313
+ };
314
+ export var customTextTransform = {
315
+ 'lu-text-lowercase': 'lowercase',
316
+ 'lu-text-uppercase': 'uppercase',
317
+ 'lu-text-capitalize': 'capitalize',
318
+ };
319
+ export var customTextDecoration = {
320
+ 'lu-text-decoration-none': 'none',
321
+ 'lu-text-decoration-underline': 'underline',
322
+ 'lu-text-decoration-linethrough': 'line-through',
323
+ };
324
+ export var customTextWrap = {
325
+ 'lu-text-wrap': 'normal',
326
+ 'lu-text-nowrap': 'nowrap',
327
+ };
328
+ export var customSize = {
329
+ 'lu-size-050': '4px',
330
+ 'lu-size-100': '8px',
331
+ 'lu-size-200': '16px',
332
+ 'lu-size-300': '24px',
333
+ 'lu-size-400': '32px',
334
+ 'lu-size-500': '40px',
335
+ 'lu-size-600': '48px',
336
+ 'lu-size-800': '64px',
337
+ 'lu-size-1000': '80px',
338
+ 'lu-size-1500': '120px',
339
+ 'lu-size-2000': '160px',
340
+ 'lu-size-2500': '200px',
341
+ };
342
+ export var customWidth = {
343
+ 'lu-width-10': '10%',
344
+ 'lu-width-25': '25%',
345
+ 'lu-width-50': '50%',
346
+ 'lu-width-75': '75%',
347
+ 'lu-width-100': '100%'
348
+ };
349
+ export var customHeight = {
350
+ 'lu-height-10': '10%',
351
+ 'lu-height-25': '25%',
352
+ 'lu-height-50': '50%',
353
+ 'lu-height-75': '75%',
354
+ 'lu-height-100': '100%'
355
+ };
356
+ export var customMinWidth = {
357
+ 'lu-min-width-400': '32px',
358
+ 'lu-min-width-500': '40px',
359
+ 'lu-min-width-600': '48px',
360
+ 'lu-min-width-800': '64px',
361
+ 'lu-min-width-1000': '80px',
362
+ 'lu-min-width-1500': '120px',
363
+ 'lu-min-width-2000': '160px',
364
+ 'lu-min-width-2500': '200px',
365
+ 'lu-min-width-3000': '240px',
366
+ };
367
+ export var customMinHeight = {
368
+ 'lu-min-height-400': '32px',
369
+ 'lu-min-height-500': '40px',
370
+ 'lu-min-height-600': '48px',
371
+ 'lu-min-height-800': '64px',
372
+ 'lu-min-height-1000': '80px',
373
+ 'lu-min-height-1500': '120px',
374
+ 'lu-min-height-2000': '160px',
375
+ 'lu-min-height-2500': '200px',
376
+ 'lu-min-height-3000': '240px',
377
+ };
378
+ export var customLogoSize = {
379
+ 'lu-primary-logo': '75px',
380
+ 'lu-secondary-logo': '32px',
381
+ 'lu-favicon-logo': '32px'
382
+ };
383
+ export var customSpacing = {
384
+ 'lu-space-0': '0px',
385
+ 'lu-space-050': '4px',
386
+ 'lu-space-100': '8px',
387
+ 'lu-space-150': '12px',
388
+ 'lu-space-200': '16px',
389
+ 'lu-space-250': '20px',
390
+ 'lu-space-300': '24px',
391
+ 'lu-space-400': '32px',
392
+ 'lu-space-500': '40px',
393
+ 'lu-space-600': '48px',
394
+ 'lu-space-800': '64px',
395
+ 'lu-space-1000': '80px',
396
+ 'lu-space-1500': '120px',
397
+ 'lu-space-2000': '160px',
398
+ 'lu-space-2500': '200px',
399
+ 'lu-space-3000': '240px'
400
+ };
401
+ export var customOpacity = {
402
+ 'lu-opacity-0': '0.0',
403
+ 'lu-opacity-5': '0.05',
404
+ 'lu-opacity-10': '0.1',
405
+ 'lu-opacity-15': '0.15',
406
+ 'lu-opacity-20': '0.2',
407
+ 'lu-opacity-25': '0.25',
408
+ 'lu-opacity-30': '0.3',
409
+ 'lu-opacity-40': '0.4',
410
+ 'lu-opacity-50': '0.5',
411
+ 'lu-opacity-60': '0.6',
412
+ 'lu-opacity-70': '0.7',
413
+ 'lu-opacity-75': '0.75',
414
+ 'lu-opacity-80': '0.8',
415
+ 'lu-opacity-90': '0.9',
416
+ 'lu-opacity-95': '0.95',
417
+ 'lu-opacity-100': '1',
418
+ };
419
+ export var customBorderWidth = {
420
+ 'lu-border-width-0125': '1px',
421
+ 'lu-border-width-025': '2px',
422
+ 'lu-border-width-050': '4px',
423
+ 'lu-border-width-100': '8px',
424
+ };
425
+ export var customBorderRadius = {
426
+ 'lu-border-rounded-none': '0px',
427
+ 'lu-border-rounded-xs': '2px',
428
+ 'lu-border-rounded-sm': '4px',
429
+ 'lu-border-rounded-md': '6px',
430
+ 'lu-border-rounded-lg': '8px',
431
+ 'lu-border-rounded-xl': '12px',
432
+ 'lu-border-rounded-2xl': '16px',
433
+ 'lu-border-rounded-3xl': '24px',
434
+ 'lu-border-rounded-full': '9999px',
435
+ };
436
+ export var customAspectRatio = {
437
+ 'lu-aspect-square': '1 / 1',
438
+ 'lu-aspect-2/1-landsc': '2 / 1',
439
+ 'lu-aspect-1/2-por': '1 / 2',
440
+ 'lu-aspect-3/2-landsc': '3 / 2',
441
+ 'lu-aspect-2/3-por': '2 / 3',
442
+ 'lu-aspect-4/3-landsc': '4/3',
443
+ 'lu-aspect-3/4-por': '3 / 4',
444
+ 'lu-aspect-5/4-landsc': '5 / 4',
445
+ 'lu-aspect-4/5-por': '4 / 5',
446
+ 'lu-aspect-7/5-landsc': '7 / 5',
447
+ 'lu-aspect-5/7-por': '5 / 7',
448
+ 'lu-aspect-16/9-landsc': '16 / 9',
449
+ 'lu-aspect-9/16-por': '9 / 16',
450
+ 'lu-aspect-21/9-landscape': '21 / 9',
451
+ 'lu-aspect-9/21-por': '9 / 21',
452
+ };
453
+ export var customBoxShadow = {
454
+ 'lu-shadow-xs': '0px 4px 4px 0 rgba(52, 52, 52, 0.05)',
455
+ 'lu-shadow-sm': '0px 4px 8px 0 rgba(52, 52, 52, 0.1)',
456
+ 'lu-shadow-md': '0px 4px 12px 0 rgba(52, 52, 52, 0.15)',
457
+ 'lu-shadow-lg': '0px 4px 18px 0 rgba(52, 52, 52, 0.15)',
458
+ 'lu-shadow-xl': '0px 8px 24px 0 rgba(52, 52, 52, 0.15)',
459
+ };
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "linkedunion-design-kit",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
- "main": "dist/index.js",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "main": "dist/global.css",
6
9
  "types": "dist/index.d.ts",
7
10
  "scripts": {
8
11
  "dev": "next dev",
package/.eslintrc.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "extends": [
3
- "next/core-web-vitals",
4
- "plugin:storybook/recommended"
5
- ]
6
- }
@@ -1,20 +0,0 @@
1
- import type { StorybookConfig } from "@storybook/nextjs";
2
-
3
- const config: StorybookConfig = {
4
- stories: [
5
- "../components/**/*.mdx",
6
- "../components/**/*.stories.@(js|jsx|mjs|ts|tsx)",
7
- ],
8
- addons: [
9
- "@storybook/addon-onboarding",
10
- "@storybook/addon-essentials",
11
- "@chromatic-com/storybook",
12
- "@storybook/addon-interactions",
13
- ],
14
- framework: {
15
- name: "@storybook/nextjs",
16
- options: {},
17
- },
18
- staticDirs: ["../public"],
19
- };
20
- export default config;
@@ -1,15 +0,0 @@
1
- import type { Preview } from "@storybook/react";
2
- import "../app/globals.css";
3
-
4
- const preview: Preview = {
5
- parameters: {
6
- controls: {
7
- matchers: {
8
- color: /(background|color)$/i,
9
- date: /Date$/i,
10
- },
11
- },
12
- },
13
- };
14
-
15
- export default preview;
@@ -1,42 +0,0 @@
1
- import { render, screen } from "@testing-library/react";
2
- import "@testing-library/jest-dom";
3
- import { Primary, Gray, Success, Warning, Danger, Info } from "../components/Color/Color.stories";
4
-
5
-
6
- describe("Color Component Stories", () => {
7
- it("renders the Primary color story correctly", () => {
8
- render(<Primary {...Primary.args} />);
9
- const colorBox = screen.getByTestId("color-box");
10
- expect(colorBox).toHaveClass('bg-primary-500');
11
- });
12
-
13
- it("renders the Gray color story correctly", () => {
14
- render(<Gray {...Gray.args}/>);
15
- const colorBox = screen.getByTestId("color-box");
16
- expect(colorBox).toHaveClass('bg-gray-500');
17
- });
18
-
19
- it("renders the Success color story correctly", () => {
20
- render(<Success {...Success.args} />);
21
- const colorBox = screen.getByTestId("color-box");
22
- expect(colorBox).toHaveClass('bg-success-500');
23
- });
24
-
25
- it("renders the Warning color story correctly", () => {
26
- render(<Warning {...Warning.args}/>);
27
- const colorBox = screen.getByTestId("color-box");
28
- expect(colorBox).toHaveClass("bg-warning-500");
29
- });
30
-
31
- it("renders the Danger color story correctly", () => {
32
- render(<Danger {...Danger.args}/>);
33
- const colorBox = screen.getByTestId("color-box");
34
- expect(colorBox).toHaveClass('bg-danger-500');
35
- });
36
-
37
- it("renders the Info color story correctly", () => {
38
- render(<Info {...Info.args}/>);
39
- const colorBox = screen.getByTestId("color-box");
40
- expect(colorBox).toHaveClass('bg-info-500');
41
- });
42
- });
@@ -1,21 +0,0 @@
1
- import { render, screen } from "@testing-library/react";
2
- import "@testing-library/jest-dom";
3
- import { Size } from "../components/Size/Size";
4
-
5
- describe("Size Component", () => {
6
- it("renders the Size component with the correct classes for all props", () => {
7
- const props = {
8
- size: 'lu-size-100',
9
- color: 'bg-primary-500',
10
- };
11
-
12
- render(<Size {...props} />);
13
-
14
- // Select the element
15
- const sizeElement = screen.getByTestId("size-box");
16
-
17
- // Assert all classes
18
- expect(sizeElement).toHaveClass(props.size);
19
- expect(sizeElement).toHaveClass(props.color);
20
- });
21
- });
@@ -1,32 +0,0 @@
1
- import { render, screen } from "@testing-library/react";
2
- import "@testing-library/jest-dom";
3
- import { Typography } from "../components/Typography/Typography";
4
-
5
- describe("Typography Component", () => {
6
- it("renders the Typography component with the correct classes for all props", () => {
7
- const props = {
8
- label: "Sample Text",
9
- fontSize: "lu-base-font-size",
10
- fontWeight: "lu-font-weight-thin",
11
- lineHeight: "lu-line-height-sm",
12
- textAlign: "lu-text-justify",
13
- textTransform: "lu-text-lowercase",
14
- textDecoration: "lu-text-decoration-none",
15
- textWrap: "lu-text-wrap",
16
- };
17
-
18
- render(<Typography {...props} />);
19
-
20
- // Select the element
21
- const typographyElement = screen.getByTestId("basic-typography").firstChild;
22
-
23
- // Assert all classes
24
- expect(typographyElement).toHaveClass(props.fontSize);
25
- expect(typographyElement).toHaveClass(props.fontWeight);
26
- expect(typographyElement).toHaveClass(props.lineHeight);
27
- expect(typographyElement).toHaveClass(props.textAlign);
28
- expect(typographyElement).toHaveClass(props.textTransform);
29
- expect(typographyElement).toHaveClass(props.textDecoration);
30
- expect(typographyElement).toHaveClass(props.textWrap);
31
- });
32
- });
package/app/favicon.ico DELETED
Binary file
package/app/globals.css DELETED
@@ -1,58 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- :root {
6
- /* --foreground-rgb: 0, 0, 0; */
7
- --background-start-rgb: 214, 219, 220;
8
- /* --background-end-rgb: 255, 255, 255; */
9
- }
10
-
11
- @media (prefers-color-scheme: dark) {
12
- :root {
13
- --foreground-rgb: 255, 255, 255;
14
- --background-start-rgb: 0, 0, 0;
15
- --background-end-rgb: 0, 0, 0;
16
- --lu-spacing-0: 0px;
17
- --lu-spacing-050: 4px;
18
- --lu-spacing-100: 8px;
19
- --lu-spacing-150: 12px;
20
- --lu-spacing-200: 16px;
21
- --lu-spacing-250: 20px;
22
- --lu-spacing-300: 24px;
23
- --lu-spacing-400: 32px;
24
- --lu-spacing-500: 40px;
25
- --lu-spacing-600: 48px;
26
- --lu-spacing-800: 64px;
27
- --lu-spacing-1000: 80px;
28
- --lu-spacing-1500: 120px;
29
- --lu-spacing-2000: 160px;
30
- --lu-spacing-2500: 200px;
31
- --lu-spacing-3000: 240px;
32
- }
33
- }
34
-
35
- body {
36
- color: rgb(var(--foreground-rgb));
37
- background: linear-gradient(
38
- to bottom,
39
- transparent,
40
- rgb(var(--background-end-rgb))
41
- )
42
- rgb(var(--background-start-rgb));
43
- }
44
- .pl-1x {
45
- padding-left: var(--lu-spacing-100);
46
- }
47
-
48
- .pr-1x {
49
- padding-right: var(--lu-spacing-100);
50
- }
51
-
52
- .mt-1x {
53
- margin-top: var(--lu-spacing-100);
54
- }
55
-
56
- .mb-1x {
57
- margin-bottom: var(--lu-spacing-100);
58
- }