@temp-spotwork/ui 1.7.6 → 1.7.7
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/components/atoms/badge/badge.d.ts +2 -0
- package/dist/components/atoms/badge/badge.js +11 -9
- package/dist/components/atoms/badge/badge.stories.d.ts +1 -0
- package/dist/components/atoms/badge/badge.stories.js +10 -4
- package/dist/components/atoms/form/chips/chips.stories.d.ts +2 -0
- package/dist/components/atoms/form/chips/chips.stories.js +26 -8
- package/dist/components/atoms/form/chips/styles.d.ts +1 -0
- package/dist/components/atoms/form/chips/styles.js +2 -0
- package/dist/components/styles/colors/colormap.d.ts +4 -0
- package/dist/components/styles/colors/colormap.js +17 -13
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { Typography as
|
|
3
|
-
const
|
|
2
|
+
import { Typography as d } from "../../styles/typography/typography.js";
|
|
3
|
+
const a = {
|
|
4
4
|
active: "active",
|
|
5
5
|
affirmative: "active",
|
|
6
6
|
affirmativeInverted: "activeInverted",
|
|
@@ -10,20 +10,22 @@ const t = {
|
|
|
10
10
|
warningInverted: "warningInverted",
|
|
11
11
|
alert: "alert",
|
|
12
12
|
alertInverted: "alertInverted",
|
|
13
|
+
paidBackup: "paidBackup",
|
|
14
|
+
paidBackupInverted: "paidBackupInverted",
|
|
13
15
|
disabled: "disabled",
|
|
14
16
|
disabledInverted: "disabledInverted"
|
|
15
17
|
};
|
|
16
|
-
function
|
|
17
|
-
const n =
|
|
18
|
+
function s({ text: t, color: r }) {
|
|
19
|
+
const n = a[r];
|
|
18
20
|
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
19
21
|
"div",
|
|
20
22
|
{
|
|
21
23
|
"data-testid": "Badge-container",
|
|
22
|
-
className: `px-[0.5rem] py-[0.2rem] bg-surface-${
|
|
24
|
+
className: `px-[0.5rem] py-[0.2rem] bg-surface-${a[r]} rounded-[0.9rem] min-w-[1.8rem] max-w-max h-[1.8rem] flex items-center place-content-around m-[0.1rem]`,
|
|
23
25
|
children: /* @__PURE__ */ e(
|
|
24
|
-
|
|
26
|
+
d,
|
|
25
27
|
{
|
|
26
|
-
children: `${
|
|
28
|
+
children: `${t}`.trim().toUpperCase(),
|
|
27
29
|
color: n,
|
|
28
30
|
swStyle: 6,
|
|
29
31
|
lineHeight: 1.4
|
|
@@ -33,6 +35,6 @@ function c({ text: a, color: r }) {
|
|
|
33
35
|
) });
|
|
34
36
|
}
|
|
35
37
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
s as Badge,
|
|
39
|
+
a as badgeColorVariants
|
|
38
40
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { f as o } from "../../../index-Dpx0xQmQ.js";
|
|
2
|
-
import { Badge as
|
|
2
|
+
import { Badge as a } from "./badge.js";
|
|
3
3
|
const e = {
|
|
4
4
|
title: "@spotwork-ui/badge",
|
|
5
|
-
component:
|
|
5
|
+
component: a,
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: "centered"
|
|
8
8
|
},
|
|
@@ -11,13 +11,19 @@ const e = {
|
|
|
11
11
|
backgroundColor: { control: "color" }
|
|
12
12
|
},
|
|
13
13
|
args: { onClick: o() }
|
|
14
|
-
},
|
|
14
|
+
}, c = {
|
|
15
15
|
args: {
|
|
16
16
|
text: "badge item",
|
|
17
17
|
color: "affirmative"
|
|
18
18
|
}
|
|
19
|
+
}, s = {
|
|
20
|
+
args: {
|
|
21
|
+
text: "Paid Backup",
|
|
22
|
+
color: "paidBackup"
|
|
23
|
+
}
|
|
19
24
|
};
|
|
20
25
|
export {
|
|
21
|
-
s as
|
|
26
|
+
s as PaidBackup,
|
|
27
|
+
c as Primary,
|
|
22
28
|
e as default
|
|
23
29
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { Chips as
|
|
3
|
-
const
|
|
1
|
+
import { f as a } from "../../../../index-Dpx0xQmQ.js";
|
|
2
|
+
import { Chips as o } from "./chips.js";
|
|
3
|
+
const t = {
|
|
4
4
|
title: "@spotwork-ui/chips",
|
|
5
|
-
component:
|
|
5
|
+
component: o,
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: "centered"
|
|
8
8
|
},
|
|
@@ -10,15 +10,33 @@ const a = {
|
|
|
10
10
|
argTypes: {
|
|
11
11
|
backgroundColor: { control: "color" }
|
|
12
12
|
},
|
|
13
|
-
args: { onClick:
|
|
14
|
-
},
|
|
13
|
+
args: { onClick: a() }
|
|
14
|
+
}, c = {
|
|
15
15
|
args: {
|
|
16
|
+
id: "primary",
|
|
16
17
|
chipText: "some chips",
|
|
17
18
|
color: "affirmative",
|
|
18
19
|
chipSelected: !1
|
|
19
20
|
}
|
|
21
|
+
}, e = {
|
|
22
|
+
args: {
|
|
23
|
+
id: "paid-backup-readonly",
|
|
24
|
+
chipText: "Ready to Work",
|
|
25
|
+
color: "paidBackup",
|
|
26
|
+
variant: "largeReadOnly",
|
|
27
|
+
infoBubbleContent: "icons:WaitingSmall"
|
|
28
|
+
}
|
|
29
|
+
}, p = {
|
|
30
|
+
args: {
|
|
31
|
+
id: "paid-backup-pill",
|
|
32
|
+
chipText: "Paid Backup",
|
|
33
|
+
color: "paidBackup",
|
|
34
|
+
variant: "pill"
|
|
35
|
+
}
|
|
20
36
|
};
|
|
21
37
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
38
|
+
e as PaidBackupLargeReadOnly,
|
|
39
|
+
p as PaidBackupPill,
|
|
40
|
+
c as Primary,
|
|
41
|
+
t as default
|
|
24
42
|
};
|
|
@@ -34,12 +34,14 @@ const n = (e) => ({
|
|
|
34
34
|
success: "success",
|
|
35
35
|
warning: "warning",
|
|
36
36
|
alert: "alert",
|
|
37
|
+
paidBackup: "paidBackup",
|
|
37
38
|
disabled: "disabled"
|
|
38
39
|
}, i = {
|
|
39
40
|
affirmative: "affirmativeInverted",
|
|
40
41
|
success: "successInverted",
|
|
41
42
|
warning: "warningInverted",
|
|
42
43
|
alert: "alertInverted",
|
|
44
|
+
paidBackup: "paidBackupInverted",
|
|
43
45
|
disabled: "disabledInverted"
|
|
44
46
|
};
|
|
45
47
|
export {
|
|
@@ -93,6 +93,8 @@ export declare const glyph: {
|
|
|
93
93
|
warningInverted: string;
|
|
94
94
|
alert: string;
|
|
95
95
|
alertInverted: string;
|
|
96
|
+
paidBackup: string;
|
|
97
|
+
paidBackupInverted: string;
|
|
96
98
|
disabled: string;
|
|
97
99
|
disabledInverted: string;
|
|
98
100
|
firstPartyMessage: string;
|
|
@@ -123,6 +125,8 @@ export declare const surface: {
|
|
|
123
125
|
warningInverted: string;
|
|
124
126
|
alert: string;
|
|
125
127
|
alertInverted: string;
|
|
128
|
+
paidBackup: string;
|
|
129
|
+
paidBackupInverted: string;
|
|
126
130
|
badge: string;
|
|
127
131
|
disabled: string;
|
|
128
132
|
disabledInverted: string;
|
|
@@ -87,12 +87,14 @@ const f = {
|
|
|
87
87
|
warningInverted: d[100],
|
|
88
88
|
alert: t[700],
|
|
89
89
|
alertInverted: t[200],
|
|
90
|
+
paidBackup: "#8314DB",
|
|
91
|
+
paidBackupInverted: "#F3E6FF",
|
|
90
92
|
disabled: e[500],
|
|
91
93
|
disabledInverted: e[100],
|
|
92
94
|
firstPartyMessage: e[0],
|
|
93
95
|
secondPartyMessage: a[700],
|
|
94
96
|
visualPlaceholderDefault: f[700]
|
|
95
|
-
},
|
|
97
|
+
}, u = Object.keys(n), o = Object.entries(n).reduce((r, [s]) => (r[s] = `text-glyph-${s}`, r), {}), i = {
|
|
96
98
|
default: a[600],
|
|
97
99
|
hover: a[700],
|
|
98
100
|
active: a[800],
|
|
@@ -113,6 +115,8 @@ const f = {
|
|
|
113
115
|
warningInverted: d[800],
|
|
114
116
|
alert: t[200],
|
|
115
117
|
alertInverted: t[700],
|
|
118
|
+
paidBackup: "#F3E6FF",
|
|
119
|
+
paidBackupInverted: "#8314DB",
|
|
116
120
|
badge: t[500],
|
|
117
121
|
disabled: e[100],
|
|
118
122
|
disabledInverted: e[600],
|
|
@@ -120,7 +124,7 @@ const f = {
|
|
|
120
124
|
visualPlaceholderDefault: f[100],
|
|
121
125
|
firstPartyMessage: a[700],
|
|
122
126
|
secondPartyMessage: a[200]
|
|
123
|
-
}, b = Object.keys(n), h = Object.entries(n).reduce((r, [s]) => (r[s] = `bg-surface-${s}`, r), {}),
|
|
127
|
+
}, b = Object.keys(n), h = Object.entries(n).reduce((r, [s]) => (r[s] = `bg-surface-${s}`, r), {}), p = {
|
|
124
128
|
none: "transparent",
|
|
125
129
|
default: e[300],
|
|
126
130
|
active: a[700],
|
|
@@ -133,12 +137,12 @@ const f = {
|
|
|
133
137
|
disabled: e[200],
|
|
134
138
|
outline: e[100],
|
|
135
139
|
success: c[800]
|
|
136
|
-
},
|
|
140
|
+
}, g = {
|
|
137
141
|
active: a[200],
|
|
138
142
|
warning: d[100],
|
|
139
143
|
destructive: t[100],
|
|
140
144
|
alert: t[200]
|
|
141
|
-
},
|
|
145
|
+
}, y = {
|
|
142
146
|
success: c[600],
|
|
143
147
|
warning: d[400],
|
|
144
148
|
caution: f[400],
|
|
@@ -197,7 +201,7 @@ const f = {
|
|
|
197
201
|
default: d[800]
|
|
198
202
|
}
|
|
199
203
|
}
|
|
200
|
-
},
|
|
204
|
+
}, F = {
|
|
201
205
|
primary: {
|
|
202
206
|
disabled: e[100],
|
|
203
207
|
affirmative: {
|
|
@@ -243,7 +247,7 @@ const f = {
|
|
|
243
247
|
active: e[800]
|
|
244
248
|
}
|
|
245
249
|
}
|
|
246
|
-
},
|
|
250
|
+
}, w = {
|
|
247
251
|
hue1: "#00BD3F",
|
|
248
252
|
hue2: "#FFCE1B",
|
|
249
253
|
hue3: "#FF7E33",
|
|
@@ -257,20 +261,20 @@ const f = {
|
|
|
257
261
|
export {
|
|
258
262
|
c as apple,
|
|
259
263
|
a as blueRibbon,
|
|
260
|
-
|
|
264
|
+
p as borderColor,
|
|
261
265
|
C as buttonBorder,
|
|
262
266
|
I as buttonGlyph,
|
|
263
|
-
|
|
267
|
+
F as buttonSurface,
|
|
264
268
|
t as cinnabar,
|
|
265
269
|
f as crusta,
|
|
266
|
-
|
|
270
|
+
w as dataVizColors,
|
|
267
271
|
n as glyph,
|
|
268
|
-
|
|
269
|
-
|
|
272
|
+
o as glyphClassesMap,
|
|
273
|
+
u as glyphColorsKeys,
|
|
270
274
|
v as linkColorClassesMap,
|
|
271
275
|
i as linkColors,
|
|
272
|
-
|
|
273
|
-
|
|
276
|
+
y as progressBar,
|
|
277
|
+
g as shadow,
|
|
274
278
|
d as sun,
|
|
275
279
|
l as surface,
|
|
276
280
|
h as surfaceClassesMap,
|