@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.
@@ -18,6 +18,8 @@ export declare const badgeColorVariants: {
18
18
  warningInverted: string;
19
19
  alert: string;
20
20
  alertInverted: string;
21
+ paidBackup: string;
22
+ paidBackupInverted: string;
21
23
  disabled: string;
22
24
  disabledInverted: string;
23
25
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { Typography as i } from "../../styles/typography/typography.js";
3
- const t = {
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 c({ text: a, color: r }) {
17
- const n = t[r];
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-${t[r]} rounded-[0.9rem] min-w-[1.8rem] max-w-max h-[1.8rem] flex items-center place-content-around m-[0.1rem]`,
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
- i,
26
+ d,
25
27
  {
26
- children: `${a}`.trim().toUpperCase(),
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
- c as Badge,
37
- t as badgeColorVariants
38
+ s as Badge,
39
+ a as badgeColorVariants
38
40
  };
@@ -5,3 +5,4 @@ declare const meta: Meta<typeof Badge>;
5
5
  export default meta;
6
6
  type Story = StoryObj<typeof meta>;
7
7
  export declare const Primary: Story;
8
+ export declare const PaidBackup: Story;
@@ -1,8 +1,8 @@
1
1
  import { f as o } from "../../../index-Dpx0xQmQ.js";
2
- import { Badge as t } from "./badge.js";
2
+ import { Badge as a } from "./badge.js";
3
3
  const e = {
4
4
  title: "@spotwork-ui/badge",
5
- component: t,
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
- }, s = {
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 Primary,
26
+ s as PaidBackup,
27
+ c as Primary,
22
28
  e as default
23
29
  };
@@ -5,3 +5,5 @@ declare const meta: Meta<typeof Chips>;
5
5
  export default meta;
6
6
  type Story = StoryObj<typeof meta>;
7
7
  export declare const Primary: Story;
8
+ export declare const PaidBackupLargeReadOnly: Story;
9
+ export declare const PaidBackupPill: Story;
@@ -1,8 +1,8 @@
1
- import { f as o } from "../../../../index-Dpx0xQmQ.js";
2
- import { Chips as r } from "./chips.js";
3
- const a = {
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: r,
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: o() }
14
- }, s = {
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
- s as Primary,
23
- a as default
38
+ e as PaidBackupLargeReadOnly,
39
+ p as PaidBackupPill,
40
+ c as Primary,
41
+ t as default
24
42
  };
@@ -67,6 +67,7 @@ export declare const colorVariants: {
67
67
  success: string;
68
68
  warning: string;
69
69
  alert: string;
70
+ paidBackup: string;
70
71
  disabled: string;
71
72
  };
72
73
  export type ColorVariants = keyof typeof colorVariants;
@@ -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
- }, o = Object.keys(n), u = Object.entries(n).reduce((r, [s]) => (r[s] = `text-glyph-${s}`, r), {}), i = {
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), {}), g = {
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
- }, y = {
140
+ }, g = {
137
141
  active: a[200],
138
142
  warning: d[100],
139
143
  destructive: t[100],
140
144
  alert: t[200]
141
- }, p = {
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
- }, w = {
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
- }, m = {
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
- g as borderColor,
264
+ p as borderColor,
261
265
  C as buttonBorder,
262
266
  I as buttonGlyph,
263
- w as buttonSurface,
267
+ F as buttonSurface,
264
268
  t as cinnabar,
265
269
  f as crusta,
266
- m as dataVizColors,
270
+ w as dataVizColors,
267
271
  n as glyph,
268
- u as glyphClassesMap,
269
- o as glyphColorsKeys,
272
+ o as glyphClassesMap,
273
+ u as glyphColorsKeys,
270
274
  v as linkColorClassesMap,
271
275
  i as linkColors,
272
- p as progressBar,
273
- y as shadow,
276
+ y as progressBar,
277
+ g as shadow,
274
278
  d as sun,
275
279
  l as surface,
276
280
  h as surfaceClassesMap,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@temp-spotwork/ui",
3
3
  "private": false,
4
- "version": "1.7.6",
4
+ "version": "1.7.7",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",