linkedunion-design-kit 0.1.2 → 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
package/postcss.config.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- }
package/public/next.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
package/public/vercel.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 283 64"><path fill="black" d="M141 16c-11 0-19 7-19 18s9 18 20 18c7 0 13-3 16-7l-7-5c-2 3-6 4-9 4-5 0-9-3-10-7h28v-3c0-11-8-18-19-18zm-9 15c1-4 4-7 9-7s8 3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-11-8-18-19-18zm-10 15c2-4 5-7 10-7s8 3 9 7h-19zm-39 3c0 6 4 10 10 10 4 0 7-2 9-5l8 5c-3 5-9 8-17 8-11 0-19-7-19-18s8-18 19-18c8 0 14 3 17 8l-8 5c-2-3-5-5-9-5-6 0-10 4-10 10zm83-29v46h-9V5h9zM37 0l37 64H0L37 0zm92 5-27 48L74 5h10l18 30 17-30h10zm59 12v10l-3-1c-6 0-10 4-10 10v15h-9V17h9v9c0-5 6-9 13-9z"/></svg>
@@ -1,127 +0,0 @@
1
- import type { Config } from 'tailwindcss'
2
- import { colorGroups, customAspectRatio, customBorderRadius, customBorderWidth, customBoxShadow, customColors, customFontSize, customFontWeight, customHeight, customLineHeight, customLogoSize, customMinHeight, customMinWidth, customOpacity, customSize, customSpacing, customTextAlignment, customTextDecoration, customTextTransform, customTextWrap, customWidth, fontSizes, fontWeights, heights, lineHeights, sizes, spacings, textAlignment, textDecorations, textTransform, textWraps, widths } from './utils'
3
- import generateUtilities from './utils';
4
-
5
-
6
-
7
- const plugin = require('tailwindcss/plugin');
8
-
9
- const config: Config = {
10
- content: [
11
- './pages/**/*.{js,ts,jsx,tsx,mdx}',
12
- './components/**/*.{js,ts,jsx,tsx,mdx}',
13
- './app/**/*.{js,ts,jsx,tsx,mdx}',
14
- ],
15
- safelist: [
16
- ...colorGroups.primary.map(color => ({ pattern: new RegExp(color) })),
17
- ...colorGroups.gray.map(color => ({ pattern: new RegExp(color) })),
18
- ...colorGroups.success.map(color => ({ pattern: new RegExp(color) })),
19
- ...colorGroups.warning.map(color => ({ pattern: new RegExp(color) })),
20
- ...colorGroups.danger.map(color => ({ pattern: new RegExp(color) })),
21
- ...colorGroups.info.map(color => ({ pattern: new RegExp(color) })),
22
- ...fontSizes.map(fontSize => ({ pattern: new RegExp(fontSize.key) })),
23
- ...fontWeights.map(fontWeight => ({ pattern: new RegExp(fontWeight.key) })),
24
- ...lineHeights.map(lineHeight => ({ pattern: new RegExp(lineHeight.key) })),
25
- ...textAlignment.map(textAlign => ({ pattern: new RegExp(textAlign.key) })),
26
- ...textTransform.map(textTrans => ({ pattern: new RegExp(textTrans.key) })),
27
- ...textDecorations.map(textDec => ({ pattern: new RegExp(textDec.key) })),
28
- ...textWraps.map(textWrap => ({ pattern: new RegExp(textWrap.key) })),
29
- ...sizes.map(size => ({ pattern: new RegExp(size.key) })),
30
- ...widths.map(width => ({ pattern: new RegExp(width.key) })),
31
- ...heights.map(height => ({ pattern: new RegExp(height.key) })),
32
- ...spacings.map(spacing => ({ pattern: new RegExp(spacing.key) })),
33
- ],
34
- theme: {
35
- extend: {
36
- backgroundImage: {
37
- 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
38
- 'gradient-conic':
39
- 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
40
- },
41
- colors: customColors,
42
- fontSize: customFontSize,
43
- fontWeight: customFontWeight,
44
- lineHeight: customLineHeight,
45
- textAlign: customTextAlignment,
46
- textTransform: customTextTransform,
47
- textDecoration: customTextDecoration,
48
- textWrap: customTextWrap,
49
- size: customSize,
50
- width: customWidth,
51
- height: customHeight,
52
- minWidth: customMinWidth,
53
- minHeight: customMinHeight,
54
- logoSize: customLogoSize,
55
- spacing: customSpacing,
56
- opacity: customOpacity,
57
- borderWidth: customBorderWidth,
58
- borderRadius: customBorderRadius,
59
- aspectRatio: customAspectRatio,
60
- boxShadow: customBoxShadow
61
- },
62
- },
63
- plugins: [
64
- plugin(function ({ addUtilities, theme }: { addUtilities: (utilities: any, options?: any) => void, theme: (path: string) => any }) {
65
- //Font Size plugin
66
- const fontSizeUtilities = generateUtilities('fontSize', theme);
67
- addUtilities(fontSizeUtilities, ['responsive'])
68
-
69
- //Font Weight plugin
70
- const fontWeightUtilities = generateUtilities('fontWeight', theme);
71
- addUtilities(fontWeightUtilities, ['responsive'])
72
-
73
- //Line Height plugin
74
- const lineHeightUtilities = generateUtilities('lineHeight', theme);
75
- addUtilities(lineHeightUtilities, ['responsive'])
76
-
77
- //Text Alignment plugin
78
- const textAlignmentUtilities = generateUtilities('textAlign', theme);
79
- addUtilities(textAlignmentUtilities, ['responsive'])
80
-
81
- //Text Transform plugin
82
- const textTransformUtilities = generateUtilities('textTransform', theme);
83
- addUtilities(textTransformUtilities, ['responsive'])
84
-
85
- //Text Decoration plugin
86
- const textDecorationUtilities = generateUtilities('textDecoration', theme);
87
- addUtilities(textDecorationUtilities, ['responsive'])
88
-
89
- //Text Wrap plugin
90
- const textWrapUtilities = generateUtilities('textWrap', theme);
91
- addUtilities(textWrapUtilities, ['responsive'])
92
-
93
- //Size plugin
94
- const sizeUtilities = Object.entries(customSize).reduce((acc: Record<string, { width: string, height: string }>, [key, value]) => {
95
- acc[`.${key}`] = {
96
- width: value,
97
- height: value,
98
- };
99
- return acc;
100
- }, {});
101
- addUtilities(sizeUtilities, ['responsive']);
102
-
103
- //width plugin
104
- const widthUtilities = Object.entries(customWidth).reduce((acc: Record<string, { width: string }>, [key, value]) => {
105
- acc[`.${key}`] = {
106
- width: value,
107
- };
108
- return acc;
109
- }, {});
110
- addUtilities(widthUtilities, ['responsive'])
111
-
112
- //height plugin
113
- const heightUtilities = Object.entries(customHeight).reduce((acc: Record<string, { height: string }>, [key, value]) => {
114
- acc[`.${key}`] = {
115
- height: value,
116
- };
117
- return acc;
118
- }, {});
119
- addUtilities(heightUtilities, ['responsive'])
120
-
121
- //Spacing Plugin
122
- const spacingUtilities = generateUtilities('spacing', theme);
123
- addUtilities(spacingUtilities, ['responsive'])
124
- }),
125
- ],
126
- }
127
- export default config
package/tsconfig.json DELETED
@@ -1,50 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": [
5
- "dom",
6
- "dom.iterable",
7
- "esnext"
8
- ],
9
- "allowJs": false,
10
- "skipLibCheck": true,
11
- "strict": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "noEmit": false,
14
- "esModuleInterop": true,
15
- "module": "esnext",
16
- "moduleResolution": "bundler",
17
- "resolveJsonModule": true,
18
- "isolatedModules": true,
19
- "jsx": "preserve",
20
- "incremental": false,
21
- "outDir": "./dist",
22
- "declaration": true,
23
- "plugins": [
24
- {
25
- "name": "next"
26
- }
27
- ],
28
- "paths": {
29
- "@/*": [
30
- "./*"
31
- ]
32
- },
33
- "typeRoots": [
34
- "node_modules/@types"
35
- ]
36
- },
37
- "include": [
38
- "next-env.d.ts",
39
- "**/*.ts",
40
- "**/*.tsx",
41
- ".next/types/**/*.ts",
42
- "index.ts",
43
- "jest.setup.js",
44
- "jest.config.js"
45
- , "_test_/Typography.test.js" ],
46
- "exclude": [
47
- "node_modules",
48
- "./dist"
49
- ]
50
- }
@@ -1,27 +0,0 @@
1
- export interface ColorProps {
2
- label?: string;
3
- color?: string;
4
- className?: string;
5
- }
6
-
7
- interface TypographyProps {
8
- label?: string
9
- fontSize?: string
10
- fontWeight?: string
11
- lineHeight?: string
12
- textAlign?: string
13
- textTransform?: string
14
- textDecoration?: string
15
- textWrap?: string
16
- className?: string
17
- }
18
-
19
- interface SizeProps {
20
- size?: string
21
- color?: string
22
- }
23
-
24
- interface ResizableBarProps {
25
- width?: string
26
- height?: string
27
- }