@sirlund/mindset-ui 0.1.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.
- package/README.md +307 -0
- package/dist/components/Button/Button.d.ts +56 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +43 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +14 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/IconSimple.d.ts +13 -0
- package/dist/components/Icon/IconSimple.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/index.cjs +521 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +936 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +488 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +1194 -0
- package/dist/tokens/index.d.ts +19 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/tokens.d.ts +194 -0
- package/dist/tokens/tokens.d.ts.map +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MindSet Design System - Design Tokens
|
|
3
|
+
*
|
|
4
|
+
* This module exports all design tokens for the MindSet Design System.
|
|
5
|
+
* Import the CSS file to make the CSS variables available in your application.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* // Import CSS tokens
|
|
10
|
+
* import '@/tokens';
|
|
11
|
+
*
|
|
12
|
+
* // Or use TypeScript tokens
|
|
13
|
+
* import { tokens, colors, spacing } from '@/tokens';
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import './tokens.css';
|
|
17
|
+
export { default as tokens, colors, spacing, getCSSVar } from './tokens';
|
|
18
|
+
export type { Scale, FontFamily, FontSize, Gap, Radius, Stroke, MaxWidth } from './tokens';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,cAAc,CAAC;AAGtB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACzE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MindSet Design System - Design Tokens (TypeScript)
|
|
3
|
+
* Type-safe access to design tokens
|
|
4
|
+
*/
|
|
5
|
+
export declare const tokens: {
|
|
6
|
+
readonly scale: {
|
|
7
|
+
readonly 0: "0px";
|
|
8
|
+
readonly 12.5: "1px";
|
|
9
|
+
readonly 25: "2px";
|
|
10
|
+
readonly 50: "4px";
|
|
11
|
+
readonly 75: "6px";
|
|
12
|
+
readonly 100: "8px";
|
|
13
|
+
readonly 150: "12px";
|
|
14
|
+
readonly 175: "14px";
|
|
15
|
+
readonly 200: "16px";
|
|
16
|
+
readonly 250: "20px";
|
|
17
|
+
readonly 300: "24px";
|
|
18
|
+
readonly 400: "32px";
|
|
19
|
+
readonly 500: "40px";
|
|
20
|
+
readonly 600: "48px";
|
|
21
|
+
readonly 700: "56px";
|
|
22
|
+
readonly 800: "64px";
|
|
23
|
+
readonly 900: "72px";
|
|
24
|
+
readonly 1000: "80px";
|
|
25
|
+
readonly 2000: "160px";
|
|
26
|
+
readonly 2500: "200px";
|
|
27
|
+
};
|
|
28
|
+
readonly typography: {
|
|
29
|
+
readonly fontFamily: {
|
|
30
|
+
readonly default: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif";
|
|
31
|
+
readonly mono: "'Fira Code', 'Monaco', 'Courier New', monospace";
|
|
32
|
+
};
|
|
33
|
+
readonly fontSize: {
|
|
34
|
+
readonly xs: "12px";
|
|
35
|
+
readonly s: "14px";
|
|
36
|
+
readonly m: "16px";
|
|
37
|
+
readonly l: "20px";
|
|
38
|
+
readonly xl: "24px";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly gap: {
|
|
42
|
+
readonly none: "0px";
|
|
43
|
+
readonly '3xs': "2px";
|
|
44
|
+
readonly '2xs': "4px";
|
|
45
|
+
readonly xs: "8px";
|
|
46
|
+
readonly s: "12px";
|
|
47
|
+
readonly m: "16px";
|
|
48
|
+
readonly l: "20px";
|
|
49
|
+
readonly xl: "24px";
|
|
50
|
+
readonly '2xl': "32px";
|
|
51
|
+
readonly '3xl': "40px";
|
|
52
|
+
readonly '4xl': "48px";
|
|
53
|
+
readonly '5xl': "56px";
|
|
54
|
+
readonly '6xl': "64px";
|
|
55
|
+
readonly '7xl': "80px";
|
|
56
|
+
};
|
|
57
|
+
readonly radius: {
|
|
58
|
+
readonly none: "0px";
|
|
59
|
+
readonly xs: "4px";
|
|
60
|
+
readonly s: "6px";
|
|
61
|
+
readonly m: "8px";
|
|
62
|
+
readonly l: "12px";
|
|
63
|
+
readonly xl: "16px";
|
|
64
|
+
readonly rounded: "9999px";
|
|
65
|
+
};
|
|
66
|
+
readonly stroke: {
|
|
67
|
+
readonly none: "0px";
|
|
68
|
+
readonly thin: "1px";
|
|
69
|
+
readonly light: "1.25px";
|
|
70
|
+
readonly medium: "1.5px";
|
|
71
|
+
readonly large: "2px";
|
|
72
|
+
};
|
|
73
|
+
readonly maxWidth: {
|
|
74
|
+
readonly mobile: "480px";
|
|
75
|
+
readonly tabletPortrait: "768px";
|
|
76
|
+
readonly tabletLandscape: "1024px";
|
|
77
|
+
readonly desktop: "1440px";
|
|
78
|
+
readonly desktopLg: "1600px";
|
|
79
|
+
readonly desktopXl: "1980px";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export type Scale = keyof typeof tokens.scale;
|
|
83
|
+
export type FontFamily = keyof typeof tokens.typography.fontFamily;
|
|
84
|
+
export type FontSize = keyof typeof tokens.typography.fontSize;
|
|
85
|
+
export type Gap = keyof typeof tokens.gap;
|
|
86
|
+
export type Radius = keyof typeof tokens.radius;
|
|
87
|
+
export type Stroke = keyof typeof tokens.stroke;
|
|
88
|
+
export type MaxWidth = keyof typeof tokens.maxWidth;
|
|
89
|
+
export declare const getCSSVar: (name: string) => string;
|
|
90
|
+
export declare const spacing: {
|
|
91
|
+
readonly none: string;
|
|
92
|
+
readonly '3xs': string;
|
|
93
|
+
readonly '2xs': string;
|
|
94
|
+
readonly xs: string;
|
|
95
|
+
readonly s: string;
|
|
96
|
+
readonly m: string;
|
|
97
|
+
readonly l: string;
|
|
98
|
+
readonly xl: string;
|
|
99
|
+
readonly '2xl': string;
|
|
100
|
+
readonly '3xl': string;
|
|
101
|
+
readonly '4xl': string;
|
|
102
|
+
readonly '5xl': string;
|
|
103
|
+
readonly '6xl': string;
|
|
104
|
+
readonly '7xl': string;
|
|
105
|
+
};
|
|
106
|
+
export declare const colors: {
|
|
107
|
+
readonly accent: {
|
|
108
|
+
readonly default: string;
|
|
109
|
+
readonly subtle: string;
|
|
110
|
+
readonly strong: string;
|
|
111
|
+
readonly lighter: string;
|
|
112
|
+
readonly light: string;
|
|
113
|
+
};
|
|
114
|
+
readonly primary: {
|
|
115
|
+
readonly default: string;
|
|
116
|
+
readonly inverted: string;
|
|
117
|
+
readonly subtle: string;
|
|
118
|
+
readonly light: string;
|
|
119
|
+
};
|
|
120
|
+
readonly surface: {
|
|
121
|
+
readonly background: string;
|
|
122
|
+
readonly backgroundInverted: string;
|
|
123
|
+
readonly layer: string;
|
|
124
|
+
readonly layerStrong: string;
|
|
125
|
+
readonly layerStronger: string;
|
|
126
|
+
readonly elevated: string;
|
|
127
|
+
readonly accent: string;
|
|
128
|
+
readonly input: string;
|
|
129
|
+
};
|
|
130
|
+
readonly content: {
|
|
131
|
+
readonly heading: string;
|
|
132
|
+
readonly primary: string;
|
|
133
|
+
readonly secondary: string;
|
|
134
|
+
readonly disabled: string;
|
|
135
|
+
readonly inverted: string;
|
|
136
|
+
readonly accent: string;
|
|
137
|
+
readonly error: string;
|
|
138
|
+
readonly success: string;
|
|
139
|
+
readonly warning: string;
|
|
140
|
+
};
|
|
141
|
+
readonly contentOnInverted: {
|
|
142
|
+
readonly heading: string;
|
|
143
|
+
readonly primary: string;
|
|
144
|
+
readonly secondary: string;
|
|
145
|
+
readonly disabled: string;
|
|
146
|
+
readonly accent: string;
|
|
147
|
+
};
|
|
148
|
+
readonly icon: {
|
|
149
|
+
readonly primary: string;
|
|
150
|
+
readonly secondary: string;
|
|
151
|
+
readonly disabled: string;
|
|
152
|
+
readonly inverted: string;
|
|
153
|
+
readonly accent: string;
|
|
154
|
+
readonly accentSubtle: string;
|
|
155
|
+
readonly accentStrong: string;
|
|
156
|
+
readonly error: string;
|
|
157
|
+
readonly success: string;
|
|
158
|
+
readonly warning: string;
|
|
159
|
+
};
|
|
160
|
+
readonly stroke: {
|
|
161
|
+
readonly subtle: string;
|
|
162
|
+
readonly medium: string;
|
|
163
|
+
readonly strong: string;
|
|
164
|
+
readonly alphaSubtle: string;
|
|
165
|
+
readonly alphaMedium: string;
|
|
166
|
+
readonly alphaStrong: string;
|
|
167
|
+
};
|
|
168
|
+
readonly feedback: {
|
|
169
|
+
readonly negative: {
|
|
170
|
+
readonly light: string;
|
|
171
|
+
readonly default: string;
|
|
172
|
+
readonly strong: string;
|
|
173
|
+
};
|
|
174
|
+
readonly positive: {
|
|
175
|
+
readonly light: string;
|
|
176
|
+
readonly default: string;
|
|
177
|
+
readonly strong: string;
|
|
178
|
+
};
|
|
179
|
+
readonly warning: {
|
|
180
|
+
readonly light: string;
|
|
181
|
+
readonly default: string;
|
|
182
|
+
readonly strong: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
readonly build: {
|
|
186
|
+
readonly action: string;
|
|
187
|
+
readonly data: string;
|
|
188
|
+
readonly function: string;
|
|
189
|
+
readonly input: string;
|
|
190
|
+
readonly workflow: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export default tokens;
|
|
194
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/tokens/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFT,CAAC;AAGX,MAAM,MAAM,KAAK,GAAG,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC;AAC/D,MAAM,MAAM,GAAG,GAAG,MAAM,OAAO,MAAM,CAAC,GAAG,CAAC;AAC1C,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC;AAChD,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC;AAChD,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,MAAM,CAAC,QAAQ,CAAC;AAGpD,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,MAA0B,CAAC;AAGpE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CAeV,CAAC;AAGX,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuGT,CAAC;AAEX,eAAe,MAAM,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sirlund/mindset-ui",
|
|
3
|
+
"description": "MindSet Design System - Storybook documentation and component library extracted from Figma",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"author": "MindSet Team",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.cjs"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"./styles.css": "./dist/styles.css"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"README.md"
|
|
26
|
+
],
|
|
27
|
+
"sideEffects": [
|
|
28
|
+
"**/*.css"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"storybook": "storybook dev -p 6006",
|
|
32
|
+
"build-storybook": "storybook build",
|
|
33
|
+
"deploy-storybook": "storybook build && gh-pages -d storybook-static",
|
|
34
|
+
"lint": "eslint .",
|
|
35
|
+
"dev": "storybook dev -p 6006",
|
|
36
|
+
"build": "storybook build",
|
|
37
|
+
"build:lib": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly && node scripts/build-css.mjs"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
41
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@chromatic-com/storybook": "^5.0.0",
|
|
45
|
+
"@eslint/js": "^9.33.0",
|
|
46
|
+
"@storybook/addon-a11y": "^10.1.11",
|
|
47
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
48
|
+
"@storybook/addon-mcp": "^0.2.0",
|
|
49
|
+
"@storybook/addon-onboarding": "^10.1.11",
|
|
50
|
+
"@storybook/addon-vitest": "^10.1.11",
|
|
51
|
+
"@storybook/cli": "^10.1.11",
|
|
52
|
+
"@storybook/react-vite": "^10.1.11",
|
|
53
|
+
"@types/react": "^19.1.10",
|
|
54
|
+
"@types/react-dom": "^19.1.7",
|
|
55
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
56
|
+
"@vitest/browser": "^3.2.4",
|
|
57
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
58
|
+
"eslint": "^9.33.0",
|
|
59
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
60
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
61
|
+
"eslint-plugin-storybook": "^10.1.11",
|
|
62
|
+
"gh-pages": "^6.3.0",
|
|
63
|
+
"globals": "^16.3.0",
|
|
64
|
+
"playwright": "^1.55.0",
|
|
65
|
+
"react": "^19.1.1",
|
|
66
|
+
"react-dom": "^19.1.1",
|
|
67
|
+
"storybook": "^10.1.11",
|
|
68
|
+
"tsup": "^8.0.0",
|
|
69
|
+
"typescript": "~5.8.3",
|
|
70
|
+
"typescript-eslint": "^8.39.1",
|
|
71
|
+
"vite": "^7.1.2",
|
|
72
|
+
"vitest": "^3.2.4"
|
|
73
|
+
}
|
|
74
|
+
}
|