@kroo-web/design-system 1.0.13 → 1.0.15
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/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/styles/global.css +20 -0
- package/dist/styles/tokens/global.css +7 -0
- package/dist/styles/tokens/index.css +10 -0
- package/dist/styles/tokens/marketing.css +0 -0
- package/dist/styles/tokens/product.css +36 -0
- package/package.json +8 -7
- package/src/styles/global.css +20 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
/* Import all tokens from each section of Design System */
|
|
3
|
+
@import "./tokens/index.css";
|
|
4
|
+
|
|
5
|
+
* {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
padding: 0;
|
|
8
|
+
margin: 0;
|
|
9
|
+
font-family: var(--font-primary);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sr-only:not(:focus):not(:active) {
|
|
13
|
+
clip: rect(0 0 0 0);
|
|
14
|
+
clip-path: inset(50%);
|
|
15
|
+
height: 1px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
position: absolute;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
width: 1px;
|
|
20
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
/* Product Variables */
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
/* Colors */
|
|
7
|
+
--product-error: rgba(var(--system-red-rgb));
|
|
8
|
+
|
|
9
|
+
/* Spacing */
|
|
10
|
+
--product-spacing-1: 0.25rem;
|
|
11
|
+
--product-spacing-2: 0.50rem;
|
|
12
|
+
--product-spacing-3: 0.75rem;
|
|
13
|
+
--product-spacing-4: 1rem;
|
|
14
|
+
--product-spacing-5: 1.25rem;
|
|
15
|
+
--product-spacing-6: 1.50rem;
|
|
16
|
+
--product-spacing-7: 2rem;
|
|
17
|
+
--product-spacing-8: 2.50rem;
|
|
18
|
+
--product-spacing-9: 3rem;
|
|
19
|
+
--product-spacing-10: 3.50rem;
|
|
20
|
+
--product-spacing-11: 4rem;
|
|
21
|
+
|
|
22
|
+
/* Border Radius */
|
|
23
|
+
--product-radius-1: 0.25rem;
|
|
24
|
+
--product-radius-2: 0.50rem;
|
|
25
|
+
--product-radius-3: 0.75rem;
|
|
26
|
+
--product-radius-4: 1rem;
|
|
27
|
+
|
|
28
|
+
/* Border Width */
|
|
29
|
+
--product-border-width-1: 2px;
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
/* Component Specific Variables */
|
|
33
|
+
|
|
34
|
+
--product-text-field-spacing: 0.625rem;
|
|
35
|
+
--product-radio-select-spacing: 1.25rem;
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kroo-web/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Web design system for Kroo including the components for the marketing site and the product side.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
|
-
"types": "dist/types.d.ts",
|
|
7
|
+
"types": "dist/types.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist"
|
|
9
|
+
"dist",
|
|
10
|
+
"src/styles/global.css"
|
|
10
11
|
],
|
|
11
12
|
"scripts": {
|
|
12
|
-
"dev": "storybook",
|
|
13
|
+
"dev": "storybook dev -p 6006",
|
|
14
|
+
"dev:build": "storybook build",
|
|
13
15
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"storybook": "storybook dev -p 6006",
|
|
15
|
-
"build-storybook": "storybook build",
|
|
16
|
-
"copy-files": "copyfiles -u 1 \"src/**/*.css\" \"src/**/*.svg\" \"src/**/*.json\" dist/",
|
|
17
16
|
"build": "rimraf dist && rollup -c --bundleConfigAsCjs",
|
|
18
17
|
"deploy": "npm run build && npm publish --access public",
|
|
19
18
|
"prebuild": "rimraf ./dist"
|
|
@@ -52,6 +51,8 @@
|
|
|
52
51
|
"react-hook-form": "^7.51.0",
|
|
53
52
|
"rimraf": "^5.0.5",
|
|
54
53
|
"rollup": "^4.12.1",
|
|
54
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
55
|
+
"rollup-plugin-import-css": "^3.5.0",
|
|
55
56
|
"rollup-plugin-postcss": "^4.0.2",
|
|
56
57
|
"typescript": "^5.4.2",
|
|
57
58
|
"vitest": "^1.3.1"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
/* Import all tokens from each section of Design System */
|
|
3
|
+
@import "./tokens/index.css";
|
|
4
|
+
|
|
5
|
+
* {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
padding: 0;
|
|
8
|
+
margin: 0;
|
|
9
|
+
font-family: var(--font-primary);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sr-only:not(:focus):not(:active) {
|
|
13
|
+
clip: rect(0 0 0 0);
|
|
14
|
+
clip-path: inset(50%);
|
|
15
|
+
height: 1px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
position: absolute;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
width: 1px;
|
|
20
|
+
}
|