@keeper-security/keeper-js-ui 0.21.0 → 0.22.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/CHANGELOG.md +15 -0
- package/dist/index.cjs +12 -12
- package/dist/index.js +3140 -3036
- package/dist/style.css +1 -1
- package/dist/types/components/ui/badge.d.ts +10 -0
- package/dist/types/components/ui/badge.d.ts.map +1 -0
- package/dist/types/components/ui/button.d.ts +2 -2
- package/dist/types/components/ui/button.d.ts.map +1 -1
- package/dist/types/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/types/components/ui/icon-button.d.ts.map +1 -1
- package/dist/types/components/ui/switch.d.ts +2 -5
- package/dist/types/components/ui/switch.d.ts.map +1 -1
- package/dist/types/icons/bullhorn.d.ts +3 -0
- package/dist/types/icons/bullhorn.d.ts.map +1 -0
- package/dist/types/icons/cloud-key-outline.d.ts.map +1 -1
- package/dist/types/icons/index.d.ts +1 -1
- package/dist/types/icons/index.d.ts.map +1 -1
- package/dist/types/icons/megaphone.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/tokens/color.d.ts +87 -3
- package/dist/types/tokens/color.d.ts.map +1 -1
- package/dist/types/tokens/size.d.ts +21 -0
- package/dist/types/tokens/size.d.ts.map +1 -0
- package/package.json +9 -10
- package/dist/types/icons/megaphone-2.d.ts +0 -3
- package/dist/types/icons/megaphone-2.d.ts.map +0 -1
|
@@ -1,3 +1,87 @@
|
|
|
1
|
+
export declare const colorInputToken: {
|
|
2
|
+
/**
|
|
3
|
+
* light: #D8D8D8, dark: #565656
|
|
4
|
+
*/
|
|
5
|
+
readonly border: "border";
|
|
6
|
+
/**
|
|
7
|
+
* light: #D8D8D8, dark: #565656
|
|
8
|
+
*/
|
|
9
|
+
readonly input: "input";
|
|
10
|
+
/**
|
|
11
|
+
* light: #565656, dark: #B3B3B3
|
|
12
|
+
*/
|
|
13
|
+
readonly label: "label";
|
|
14
|
+
/**
|
|
15
|
+
* light: #565656, dark: #B3B3B3
|
|
16
|
+
*/
|
|
17
|
+
readonly placeholder: "placeholder";
|
|
18
|
+
/**
|
|
19
|
+
* light: #054B91, dark: #48B6FF
|
|
20
|
+
*/
|
|
21
|
+
readonly ring: "ring";
|
|
22
|
+
/**
|
|
23
|
+
* light: [rgba(0, 0, 0, 0.5), #808080],
|
|
24
|
+
* dark: [rgba(255, 255, 255, 0.5), #808080]
|
|
25
|
+
*/
|
|
26
|
+
readonly scrollbar: "scrollbar";
|
|
27
|
+
/**
|
|
28
|
+
* light: #FFFFFF, dark: #FFFFFF
|
|
29
|
+
*/
|
|
30
|
+
readonly thumb: "thumb";
|
|
31
|
+
};
|
|
32
|
+
export declare const colorInputTokenFixture: {
|
|
33
|
+
/**
|
|
34
|
+
* light: #D8D8D8, dark: #565656
|
|
35
|
+
*/
|
|
36
|
+
readonly border: {
|
|
37
|
+
readonly light: "#D8D8D8";
|
|
38
|
+
readonly dark: "#565656";
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* light: #D8D8D8, dark: #565656
|
|
42
|
+
*/
|
|
43
|
+
readonly input: {
|
|
44
|
+
readonly light: "#D8D8D8";
|
|
45
|
+
readonly dark: "#565656";
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* light: #565656, dark: #B3B3B3
|
|
49
|
+
*/
|
|
50
|
+
readonly label: {
|
|
51
|
+
readonly light: "#565656";
|
|
52
|
+
readonly dark: "#B3B3B3";
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* light: #565656, dark: #B3B3B3
|
|
56
|
+
*/
|
|
57
|
+
readonly placeholder: {
|
|
58
|
+
readonly light: "#565656";
|
|
59
|
+
readonly dark: "#B3B3B3";
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* light: #054B91, dark: #48B6FF
|
|
63
|
+
*/
|
|
64
|
+
readonly ring: {
|
|
65
|
+
readonly light: "#054B91";
|
|
66
|
+
readonly dark: "#48B6FF";
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* light: [rgba(0, 0, 0, 0.5), #808080],
|
|
70
|
+
* dark: [rgba(255, 255, 255, 0.5), #808080]
|
|
71
|
+
*/
|
|
72
|
+
readonly scrollbar: {
|
|
73
|
+
readonly light: "rgba(0, 0, 0, 0.5)";
|
|
74
|
+
readonly dark: "rgba(255, 255, 255, 0.5)";
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* light: #FFFFFF, dark: #FFFFFF
|
|
78
|
+
*/
|
|
79
|
+
readonly thumb: {
|
|
80
|
+
readonly light: "#FFFFFF";
|
|
81
|
+
readonly dark: "#FFFFFF";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export type ColorInputToken = keyof typeof colorInputToken;
|
|
1
85
|
export declare const colorSurfaceToken: {
|
|
2
86
|
/**
|
|
3
87
|
* light: #F0F0F0, dark: #404040
|
|
@@ -72,15 +156,15 @@ export declare const colorTextToken: {
|
|
|
72
156
|
*/
|
|
73
157
|
readonly 'foreground-inverse': "ksjsui:text-background";
|
|
74
158
|
/**
|
|
75
|
-
* light: #
|
|
159
|
+
* light: #808080, dark: #808080
|
|
76
160
|
*
|
|
77
|
-
* Currently does not pass contrast ratio of `4.5:1`
|
|
161
|
+
* Currently does not pass contrast ratio of `4.5:1` against white #FFFFFF.
|
|
78
162
|
*/
|
|
79
163
|
readonly neutral: "neutral";
|
|
80
164
|
/**
|
|
81
165
|
* light: #FFC700, dark: #FFC700
|
|
82
166
|
*
|
|
83
|
-
* Currently does not pass contrast ratio of `4.5:1`
|
|
167
|
+
* Currently does not pass contrast ratio of `4.5:1` against white #FFFFFF.
|
|
84
168
|
*/
|
|
85
169
|
readonly primary: "primary";
|
|
86
170
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/tokens/color.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iB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A;AAEjE,eAAO,MAAM,cAAc;IACzB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,cAAc,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const buttonSizeToken: {
|
|
2
|
+
/** height: 24px, min-width: 24px */
|
|
3
|
+
readonly '2xs': "2xs";
|
|
4
|
+
/** height: 28px, min-width: 28px */
|
|
5
|
+
readonly xs: "xs";
|
|
6
|
+
/** height: 32px, min-width: 32px */
|
|
7
|
+
readonly sm: "sm";
|
|
8
|
+
/** height: 36px, min-width: 36px */
|
|
9
|
+
readonly md: "md";
|
|
10
|
+
/** height: 40px, min-width: 40px */
|
|
11
|
+
readonly lg: "lg";
|
|
12
|
+
};
|
|
13
|
+
export declare const buttonSizeTokenFixture: {
|
|
14
|
+
readonly '2xs': "24px";
|
|
15
|
+
readonly xs: "28px";
|
|
16
|
+
readonly sm: "32px";
|
|
17
|
+
readonly md: "36px";
|
|
18
|
+
readonly lg: "40px";
|
|
19
|
+
};
|
|
20
|
+
export type ButtonSizeTokenKey = keyof typeof buttonSizeToken;
|
|
21
|
+
//# sourceMappingURL=size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../src/tokens/size.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;IAC1B,oCAAoC;;IAEpC,oCAAoC;;IAEpC,oCAAoC;;IAEpC,oCAAoC;;IAEpC,oCAAoC;;CAE5B,CAAA;AAEV,eAAO,MAAM,sBAAsB;;;;;;CAMzB,CAAA;AAEV,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keeper-security/keeper-js-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React components built for accessibility, consistency, and speed.",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -59,16 +59,15 @@
|
|
|
59
59
|
"tailwind-merge": "^3.4.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@chromatic-com/storybook": "^5.
|
|
62
|
+
"@chromatic-com/storybook": "^5.1.2",
|
|
63
63
|
"@commitlint/cli": "^20.4.2",
|
|
64
64
|
"@commitlint/config-conventional": "^20.4.2",
|
|
65
65
|
"@eslint/js": "^9.39.3",
|
|
66
|
-
"@storybook/addon-a11y": "10.
|
|
67
|
-
"@storybook/addon-docs": "10.
|
|
68
|
-
"@storybook/addon-
|
|
69
|
-
"@storybook/addon-
|
|
70
|
-
"@storybook/
|
|
71
|
-
"@storybook/react-vite": "10.2.11",
|
|
66
|
+
"@storybook/addon-a11y": "10.3.5",
|
|
67
|
+
"@storybook/addon-docs": "10.3.5",
|
|
68
|
+
"@storybook/addon-themes": "10.3.5",
|
|
69
|
+
"@storybook/addon-vitest": "10.3.5",
|
|
70
|
+
"@storybook/react-vite": "10.3.5",
|
|
72
71
|
"@tailwindcss/vite": "^4.1.18",
|
|
73
72
|
"@types/node": "^22.7.6",
|
|
74
73
|
"@types/react": "^18.3.17",
|
|
@@ -81,7 +80,7 @@
|
|
|
81
80
|
"czg": "^1.12.0",
|
|
82
81
|
"eslint": "^10.0.1",
|
|
83
82
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
84
|
-
"eslint-plugin-storybook": "10.
|
|
83
|
+
"eslint-plugin-storybook": "10.3.5",
|
|
85
84
|
"globals": "^16.5.0",
|
|
86
85
|
"husky": "^9.1.7",
|
|
87
86
|
"lint-staged": "^16.2.7",
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
"prettier": "^3.7.4",
|
|
90
89
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
91
90
|
"remark-gfm": "^4.0.1",
|
|
92
|
-
"storybook": "10.
|
|
91
|
+
"storybook": "10.3.5",
|
|
93
92
|
"storybook-addon-rtl": "^3.0.1",
|
|
94
93
|
"tailwindcss": "^4.1.18",
|
|
95
94
|
"tsc-alias": "^1.8.16",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"megaphone-2.d.ts","sourceRoot":"","sources":["../../src/icons/megaphone-2.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,qIAAyC,CAAA;AACpE,eAAO,MAAM,OAAO,UAAsC,CAAA"}
|