@temp-spotwork/ui 1.7.6 → 1.7.8

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.
Files changed (25) hide show
  1. package/dist/components/atoms/badge/badge.d.ts +2 -0
  2. package/dist/components/atoms/badge/badge.js +11 -9
  3. package/dist/components/atoms/badge/badge.stories.d.ts +1 -0
  4. package/dist/components/atoms/badge/badge.stories.js +10 -4
  5. package/dist/components/atoms/form/chips/chips.stories.d.ts +2 -0
  6. package/dist/components/atoms/form/chips/chips.stories.js +26 -8
  7. package/dist/components/atoms/form/chips/styles.d.ts +1 -0
  8. package/dist/components/atoms/form/chips/styles.js +2 -0
  9. package/dist/components/atoms/form/dropdown-item/dropdown-item.d.ts +40 -0
  10. package/dist/components/atoms/form/dropdown-item/dropdown-item.js +49 -0
  11. package/dist/components/atoms/form/dropdown-item/dropdown-item.stories.d.ts +11 -0
  12. package/dist/components/atoms/form/dropdown-item/dropdown-item.stories.js +109 -0
  13. package/dist/components/atoms/form/dropdown-item/index.d.ts +2 -0
  14. package/dist/components/atoms/form/dropdown-item/index.js +5 -0
  15. package/dist/components/atoms/form/dropdown-item/styles.d.ts +6 -0
  16. package/dist/components/atoms/form/dropdown-item/styles.js +9 -0
  17. package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.d.ts +1 -0
  18. package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.js +80 -53
  19. package/dist/components/atoms/form/typeahead/typeahead.d.ts +5 -1
  20. package/dist/components/atoms/form/typeahead/typeahead.js +60 -59
  21. package/dist/components/styles/colors/colormap.d.ts +4 -0
  22. package/dist/components/styles/colors/colormap.js +17 -13
  23. package/dist/main.d.ts +2 -0
  24. package/dist/main.js +144 -141
  25. package/package.json +1 -1
@@ -6,6 +6,7 @@ import { Typography as p } from "../../../styles/typography/typography.js";
6
6
  import { Icons as h } from "../../icons/icons.js";
7
7
  import "../../icons/iconsSVGs/Large/Profile.js";
8
8
  import "../../icons/iconsSVGs/Small/Profile.js";
9
+ import { renderSpotterDropdownOption as g } from "../dropdown-item/dropdown-item.js";
9
10
  const t = [
10
11
  { label: "Apple", value: "apple" },
11
12
  { label: "Banana", value: "banana" },
@@ -15,7 +16,7 @@ const t = [
15
16
  { label: "Fig", value: "fig" },
16
17
  { label: "Grape", value: "grape" },
17
18
  { label: "Honeydew", value: "honeydew" }
18
- ], g = [
19
+ ], m = [
19
20
  { label: "Canada", value: "CA" },
20
21
  { label: "United States", value: "US" },
21
22
  { label: "United Kingdom", value: "UK" },
@@ -26,7 +27,25 @@ const t = [
26
27
  { label: "Japan", value: "JP" },
27
28
  { label: "Australia", value: "AU" },
28
29
  { label: "Brazil", value: "BR" }
29
- ], m = (e) => /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
30
+ ], v = [
31
+ {
32
+ label: "Sarah Johnson",
33
+ value: "spotter-1",
34
+ image: "https://i.pravatar.cc/150?u=spotter-1",
35
+ subtitle: "Toronto, ON"
36
+ },
37
+ {
38
+ label: "Michael Chen",
39
+ value: "spotter-2",
40
+ image: "https://i.pravatar.cc/150?u=spotter-2",
41
+ subtitle: "Vancouver, BC"
42
+ },
43
+ {
44
+ label: "Emily Rodriguez",
45
+ value: "spotter-3",
46
+ subtitle: "Calgary, AB"
47
+ }
48
+ ], y = (e) => /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
30
49
  /* @__PURE__ */ o(h, { icon: "Building" }),
31
50
  /* @__PURE__ */ l("div", { className: "flex flex-col", children: [
32
51
  /* @__PURE__ */ o(p, { swStyle: 5, color: "default", children: e.label }),
@@ -36,8 +55,8 @@ const t = [
36
55
  ] })
37
56
  ] })
38
57
  ] }), d = (e) => {
39
- var r, s;
40
- const [a, n] = u(e.value || "");
58
+ var n, s;
59
+ const [a, r] = u(e.value || "");
41
60
  return /* @__PURE__ */ l("div", { className: "space-y-4", children: [
42
61
  /* @__PURE__ */ o(
43
62
  c,
@@ -45,7 +64,7 @@ const t = [
45
64
  ...e,
46
65
  value: a,
47
66
  onChange: e.onChange,
48
- selectValue: n
67
+ selectValue: r
49
68
  }
50
69
  ),
51
70
  /* @__PURE__ */ l("div", { className: "text-sm text-gray-600", children: [
@@ -55,11 +74,11 @@ const t = [
55
74
  ] }),
56
75
  /* @__PURE__ */ l("p", { children: [
57
76
  "Selected option: ",
58
- /* @__PURE__ */ o("strong", { children: a ? ((s = (r = e.options) == null ? void 0 : r.find((i) => i.value === a)) == null ? void 0 : s.label) || "not found" : "none" })
77
+ /* @__PURE__ */ o("strong", { children: a ? ((s = (n = e.options) == null ? void 0 : n.find((i) => i.value === a)) == null ? void 0 : s.label) || "not found" : "none" })
59
78
  ] })
60
79
  ] })
61
80
  ] });
62
- }, A = {
81
+ }, E = {
63
82
  title: "@spotwork-ui/atoms/form/DropdownSearch",
64
83
  component: c,
65
84
  parameters: {
@@ -137,25 +156,25 @@ const t = [
137
156
  placeholder: "Search options...",
138
157
  notFoundText: "No results found"
139
158
  }
140
- }, F = {
159
+ }, D = {
141
160
  args: {
142
161
  options: t,
143
162
  label: "Select a fruit"
144
163
  }
145
- }, N = {
164
+ }, k = {
146
165
  args: {
147
166
  options: t,
148
167
  label: "Choose your favorite fruit",
149
168
  placeholder: "Type to search fruits..."
150
169
  }
151
- }, E = {
170
+ }, V = {
152
171
  args: {
153
172
  options: t,
154
173
  label: "Fruit Selection",
155
174
  helperText: "Select a fruit from the dropdown or search for one",
156
175
  placeholder: "Search fruits..."
157
176
  }
158
- }, k = {
177
+ }, O = {
159
178
  args: {
160
179
  options: t,
161
180
  label: "Fruit Selection",
@@ -163,7 +182,7 @@ const t = [
163
182
  helperText: "Please select a valid fruit",
164
183
  placeholder: "Search fruits..."
165
184
  }
166
- }, D = {
185
+ }, U = {
167
186
  args: {
168
187
  options: t,
169
188
  label: "Fruit Selection",
@@ -171,7 +190,7 @@ const t = [
171
190
  helperText: "Consider selecting a seasonal fruit",
172
191
  placeholder: "Search fruits..."
173
192
  }
174
- }, V = {
193
+ }, L = {
175
194
  args: {
176
195
  options: t,
177
196
  label: "Fruit Selection",
@@ -179,7 +198,7 @@ const t = [
179
198
  value: "apple",
180
199
  placeholder: "Search fruits..."
181
200
  }
182
- }, U = {
201
+ }, B = {
183
202
  args: {
184
203
  options: t,
185
204
  label: "Loading Options",
@@ -187,30 +206,30 @@ const t = [
187
206
  loadingIcon: /* @__PURE__ */ o(h, { icon: "Clock" }),
188
207
  placeholder: "Loading..."
189
208
  }
190
- }, L = {
209
+ }, R = {
191
210
  args: {
192
211
  options: [],
193
212
  label: "No Options",
194
213
  placeholder: "No options available",
195
214
  notFoundText: "No options match your search"
196
215
  }
197
- }, O = {
216
+ }, I = {
198
217
  render: (e) => /* @__PURE__ */ o(d, { ...e }),
199
218
  args: {
200
219
  options: t,
201
220
  label: "Controlled Dropdown",
202
221
  placeholder: "Type to search..."
203
222
  }
204
- }, I = {
223
+ }, W = {
205
224
  render: (e) => {
206
- var r, s;
207
- const [a, n] = u("banana");
225
+ var n, s;
226
+ const [a, r] = u("banana");
208
227
  return /* @__PURE__ */ l("div", { className: "space-y-4", children: [
209
228
  /* @__PURE__ */ l("div", { className: "flex gap-2", children: [
210
229
  /* @__PURE__ */ o(
211
230
  "button",
212
231
  {
213
- onClick: () => n("apple"),
232
+ onClick: () => r("apple"),
214
233
  className: "px-3 py-1 bg-blue-500 text-white rounded text-sm",
215
234
  children: "Set to Apple"
216
235
  }
@@ -218,7 +237,7 @@ const t = [
218
237
  /* @__PURE__ */ o(
219
238
  "button",
220
239
  {
221
- onClick: () => n("cherry"),
240
+ onClick: () => r("cherry"),
222
241
  className: "px-3 py-1 bg-blue-500 text-white rounded text-sm",
223
242
  children: "Set to Cherry"
224
243
  }
@@ -226,7 +245,7 @@ const t = [
226
245
  /* @__PURE__ */ o(
227
246
  "button",
228
247
  {
229
- onClick: () => n(""),
248
+ onClick: () => r(""),
230
249
  className: "px-3 py-1 bg-red-500 text-white rounded text-sm",
231
250
  children: "Clear"
232
251
  }
@@ -237,7 +256,7 @@ const t = [
237
256
  {
238
257
  ...e,
239
258
  value: a,
240
- selectValue: n
259
+ selectValue: r
241
260
  }
242
261
  ),
243
262
  /* @__PURE__ */ l("div", { className: "text-sm text-gray-600", children: [
@@ -247,7 +266,7 @@ const t = [
247
266
  ] }),
248
267
  /* @__PURE__ */ l("p", { children: [
249
268
  "Selected option: ",
250
- /* @__PURE__ */ o("strong", { children: a ? ((s = (r = e.options) == null ? void 0 : r.find((i) => i.value === a)) == null ? void 0 : s.label) || "not found" : "none" })
269
+ /* @__PURE__ */ o("strong", { children: a ? ((s = (n = e.options) == null ? void 0 : n.find((i) => i.value === a)) == null ? void 0 : s.label) || "not found" : "none" })
251
270
  ] })
252
271
  ] })
253
272
  ] });
@@ -264,7 +283,7 @@ const t = [
264
283
  }
265
284
  }
266
285
  }
267
- }, R = {
286
+ }, K = {
268
287
  render: (e) => /* @__PURE__ */ o(d, { ...e }),
269
288
  args: {
270
289
  options: t,
@@ -272,14 +291,21 @@ const t = [
272
291
  placeholder: "Search or add new value...",
273
292
  addValue: b()
274
293
  }
275
- }, W = {
294
+ }, P = {
276
295
  args: {
277
- options: g,
296
+ options: m,
278
297
  label: "Select Country",
279
298
  placeholder: "Search countries...",
280
- renderOption: m
299
+ renderOption: y
281
300
  }
282
- }, B = {
301
+ }, j = {
302
+ args: {
303
+ options: v,
304
+ label: "Search spotters",
305
+ placeholder: "Search by name...",
306
+ renderOption: g
307
+ }
308
+ }, z = {
283
309
  args: {
284
310
  options: Array.from({ length: 100 }, (e, a) => ({
285
311
  label: `Option ${a + 1}`,
@@ -288,28 +314,28 @@ const t = [
288
314
  label: "Large Dataset",
289
315
  placeholder: "Search through 100 options..."
290
316
  }
291
- }, K = {
317
+ }, J = {
292
318
  args: {
293
319
  options: t,
294
320
  label: "Auto Focus",
295
321
  autoFocus: !0,
296
322
  placeholder: "This field is auto-focused"
297
323
  }
298
- }, P = {
324
+ }, G = {
299
325
  args: {
300
326
  options: [],
301
327
  label: "Custom Not Found",
302
328
  placeholder: "Search for something...",
303
329
  notFoundText: "Sorry, we couldn't find what you're looking for. Try a different search term."
304
330
  }
305
- }, j = {
331
+ }, H = {
306
332
  args: {
307
333
  options: t,
308
334
  label: "Preselected Value",
309
335
  value: "banana",
310
336
  placeholder: "Search fruits..."
311
337
  }
312
- }, z = {
338
+ }, $ = {
313
339
  render: (e) => /* @__PURE__ */ o(d, { ...e }),
314
340
  args: {
315
341
  options: t,
@@ -324,7 +350,7 @@ const t = [
324
350
  }
325
351
  }
326
352
  }
327
- }, G = {
353
+ }, M = {
328
354
  args: {
329
355
  options: t,
330
356
  label: "Accessible Dropdown",
@@ -340,23 +366,24 @@ const t = [
340
366
  }
341
367
  };
342
368
  export {
343
- G as Accessibility,
344
- K as AutoFocus,
345
- O as Controlled,
346
- I as ControlledWithExternalState,
347
- P as CustomNotFoundText,
348
- W as CustomRenderOption,
349
- F as Default,
350
- V as Disabled,
351
- L as EmptyState,
352
- k as ErrorState,
353
- z as KeyboardNavigation,
354
- B as LargeDataset,
355
- U as Loading,
356
- D as WarningState,
357
- R as WithAddValue,
358
- E as WithHelperText,
359
- N as WithLabel,
360
- j as WithPreselectedValue,
361
- A as default
369
+ M as Accessibility,
370
+ J as AutoFocus,
371
+ I as Controlled,
372
+ W as ControlledWithExternalState,
373
+ G as CustomNotFoundText,
374
+ P as CustomRenderOption,
375
+ D as Default,
376
+ L as Disabled,
377
+ R as EmptyState,
378
+ O as ErrorState,
379
+ $ as KeyboardNavigation,
380
+ z as LargeDataset,
381
+ B as Loading,
382
+ j as SpotterSearch,
383
+ U as WarningState,
384
+ K as WithAddValue,
385
+ V as WithHelperText,
386
+ k as WithLabel,
387
+ H as WithPreselectedValue,
388
+ E as default
362
389
  };
@@ -79,5 +79,9 @@ export type TypeaheadProps = {
79
79
  * This prop added specially for Address Form Component when we render addresses from google API and don't need to filter them.
80
80
  */
81
81
  disableOptionsFiltering?: boolean;
82
+ /**
83
+ * Custom renderer for dropdown options.
84
+ */
85
+ renderOption?: (option: string | LabelValuePair) => React.ReactNode;
82
86
  };
83
- export declare function Typeahead({ error, warning, helperText, label, placeholder, disabled, options, value, selectValue, onChange, endIconClick, addValue, inputRef, onBlur, loadingIcon, autoFocus, expandOnFocus, notFoundText, disableOptionsFiltering, }: TypeaheadProps): import("react/jsx-runtime").JSX.Element;
87
+ export declare function Typeahead({ error, warning, helperText, label, placeholder, disabled, options, value, selectValue, onChange, endIconClick, addValue, inputRef, onBlur, loadingIcon, autoFocus, expandOnFocus, notFoundText, disableOptionsFiltering, renderOption, }: TypeaheadProps): import("react/jsx-runtime").JSX.Element;
@@ -1,69 +1,70 @@
1
1
  import { jsxs as b, jsx as a } from "react/jsx-runtime";
2
- import A, { useState as L, useEffect as R } from "react";
3
- import { t as D } from "../../../../bundle-mjs-BjFsLjkg.js";
4
- import { Textfield as C } from "../textfield/textfield.js";
5
- import { Icons as k } from "../../icons/icons.js";
2
+ import A, { useState as L, useEffect as C } from "react";
3
+ import { t as F } from "../../../../bundle-mjs-BjFsLjkg.js";
4
+ import { Textfield as k } from "../textfield/textfield.js";
5
+ import { Icons as I } from "../../icons/icons.js";
6
6
  import "../../icons/iconsSVGs/Large/Profile.js";
7
7
  import "../../icons/iconsSVGs/Small/Profile.js";
8
8
  import { Typography as N } from "../../../styles/typography/typography.js";
9
- import { getStyles as I } from "./styles.js";
10
- function le({
11
- error: F = !1,
12
- warning: M = !1,
13
- helperText: _,
9
+ import { getStyles as V } from "./styles.js";
10
+ function fe({
11
+ error: M = !1,
12
+ warning: _ = !1,
13
+ helperText: G,
14
14
  label: O,
15
- placeholder: G = "",
16
- disabled: $ = !1,
15
+ placeholder: $ = "",
16
+ disabled: q = !1,
17
17
  options: r,
18
18
  value: s,
19
19
  selectValue: m,
20
- onChange: d,
21
- endIconClick: c,
22
- addValue: p,
20
+ onChange: c,
21
+ endIconClick: d,
22
+ addValue: E,
23
23
  inputRef: n,
24
24
  onBlur: l,
25
- loadingIcon: q,
26
- autoFocus: z,
27
- expandOnFocus: E,
28
- notFoundText: H = "No results found",
29
- disableOptionsFiltering: J = !1
25
+ loadingIcon: z,
26
+ autoFocus: H,
27
+ expandOnFocus: j,
28
+ notFoundText: J = "No results found",
29
+ disableOptionsFiltering: K = !1,
30
+ renderOption: T
30
31
  }) {
31
- const j = A.useRef(null), y = A.useRef(null), [g, h] = L(!1), [K, w] = L(!1), [T, u] = L(""), i = Array.isArray(r) && typeof r[0] == "object" && r[0] !== null && "label" in r[0] && "value" in r[0];
32
+ const p = A.useRef(null), y = A.useRef(null), [g, h] = L(!1), [P, w] = L(!1), [D, u] = L(""), f = Array.isArray(r) && typeof r[0] == "object" && r[0] !== null && "label" in r[0] && "value" in r[0];
32
33
  A.useEffect(() => {
33
34
  const e = (t) => {
34
- const f = j.current;
35
- f && t.target !== f && !f.contains(t.target) && g && (h(!1), w(!1), l == null || l());
35
+ const i = p.current;
36
+ i && t.target !== i && !i.contains(t.target) && g && (h(!1), w(!1), l == null || l());
36
37
  };
37
38
  return document.addEventListener("mousedown", e), () => {
38
39
  document.removeEventListener("mousedown", e);
39
40
  };
40
- }, [g]), R(() => {
41
- if (i && r && s) {
41
+ }, [g]), C(() => {
42
+ if (f && r && s) {
42
43
  const e = r.find(
43
44
  (t) => t.value === s
44
45
  );
45
46
  u(e.label);
46
47
  }
47
48
  }, [r]);
48
- const x = (e) => typeof e == "string" ? e : e.value, v = (e) => typeof e == "string" ? e : e.label, P = (e) => x(e) === s, o = I(), Q = s !== "" && s !== void 0 ? "Cross" : "MagnifyingGlass", U = (e) => {
49
- const t = (i ? T : s) ?? "";
49
+ const x = (e) => typeof e == "string" ? e : e.value, v = (e) => typeof e == "string" ? e : e.label, Q = (e) => x(e) === s, o = V(), U = s !== "" && s !== void 0 ? "Cross" : "MagnifyingGlass", W = (e) => {
50
+ const t = (f ? D : s) ?? "";
50
51
  return e.toLowerCase().includes(t.toLowerCase());
51
- }, W = () => {
52
+ }, X = () => {
52
53
  var e, t;
53
- i && u(""), c == null || c(), h(!0), (e = n == null ? void 0 : n.current) == null || e.focus(), (t = y == null ? void 0 : y.current) == null || t.focus();
54
- }, X = (e) => {
55
- if (m == null || m(e), i) {
54
+ f && u(""), d == null || d(), h(!0), (e = n == null ? void 0 : n.current) == null || e.focus(), (t = y == null ? void 0 : y.current) == null || t.focus();
55
+ }, Y = (e) => {
56
+ if (m == null || m(e), f) {
56
57
  const t = r.find(
57
- (f) => typeof f != "string" && f.value === e
58
+ (i) => typeof i != "string" && i.value === e
58
59
  );
59
60
  t && u(t.label);
60
61
  }
61
62
  h(!1), w(!1), l == null || l();
62
- }, Y = (e) => {
63
- d == null || d(e), w(!!e);
64
63
  }, Z = (e) => {
65
- u(e), d == null || d(e);
66
- }, S = r == null ? void 0 : r.filter((e) => J ? !0 : U(v(e))).sort(
64
+ c == null || c(e), w(!!e);
65
+ }, R = (e) => {
66
+ u(e), c == null || c(e);
67
+ }, S = r == null ? void 0 : r.filter((e) => K ? !0 : W(v(e))).sort(
67
68
  (e, t) => v(e).toLowerCase().localeCompare(v(t).toLowerCase())
68
69
  );
69
70
  return /* @__PURE__ */ b(
@@ -71,37 +72,37 @@ function le({
71
72
  {
72
73
  className: "flex flex-col w-full relative",
73
74
  onFocus: () => {
74
- E && w(!0), h(!0);
75
+ j && w(!0), h(!0);
75
76
  },
76
- ref: j,
77
+ ref: p,
77
78
  children: [
78
79
  /* @__PURE__ */ a("div", { className: o.outDiv, children: /* @__PURE__ */ a(
79
- C,
80
+ k,
80
81
  {
81
82
  ref: n ?? y,
82
- autoFocus: z,
83
+ autoFocus: H,
83
84
  fieldType: "text",
84
- placeholder: G,
85
- value: i ? T : s,
85
+ placeholder: $,
86
+ value: f ? D : s,
86
87
  endIcon: {
87
- icon: Q,
88
- handleClick: W
88
+ icon: U,
89
+ handleClick: X
89
90
  },
90
- onChange: (e) => i ? Z(e) : Y(e),
91
+ onChange: (e) => f ? R(e) : Z(e),
91
92
  label: O,
92
- helperText: _,
93
- error: F,
94
- warning: M,
95
- disabled: $,
93
+ helperText: G,
94
+ error: M,
95
+ warning: _,
96
+ disabled: q,
96
97
  externalActive: g,
97
- loadingIcon: q
98
+ loadingIcon: z
98
99
  }
99
100
  ) }),
100
- K && (s || E) && m && /* @__PURE__ */ b(
101
+ P && (s || j) && m && /* @__PURE__ */ b(
101
102
  "div",
102
103
  {
103
104
  "data-testid": "typeahead-dropdown",
104
- className: D(
105
+ className: F(
105
106
  o.dropdown,
106
107
  O ? "top-[6.8rem]" : "top-[4.5rem]"
107
108
  // if label doesn't define the height of textfield is different
@@ -111,12 +112,12 @@ function le({
111
112
  "div",
112
113
  {
113
114
  "data-testid": `typeahead-${e}`,
114
- onClick: () => X(x(e)),
115
- className: D(
115
+ onClick: () => Y(x(e)),
116
+ className: F(
116
117
  o.itemContainer,
117
- P(e) ? "bg-surface-active" : "bg-white"
118
+ Q(e) ? "bg-surface-active" : "bg-white"
118
119
  ),
119
- children: /* @__PURE__ */ a(
120
+ children: T ? T(e) : /* @__PURE__ */ a(
120
121
  N,
121
122
  {
122
123
  swStyle: 5,
@@ -127,11 +128,11 @@ function le({
127
128
  },
128
129
  x(e)
129
130
  )) : /* @__PURE__ */ b("div", { className: o.itemContainer, children: [
130
- /* @__PURE__ */ a(N, { swStyle: 5, color: "default", children: H }),
131
+ /* @__PURE__ */ a(N, { swStyle: 5, color: "default", children: J }),
131
132
  " "
132
133
  ] }),
133
- p && s && /* @__PURE__ */ b("div", { className: o.addValue, onClick: () => p(s), children: [
134
- /* @__PURE__ */ a(k, { disabled: !0, id: "addvalue", color: "active", icon: "Add" }),
134
+ E && s && /* @__PURE__ */ b("div", { className: o.addValue, onClick: () => E(s), children: [
135
+ /* @__PURE__ */ a(I, { disabled: !0, id: "addvalue", color: "active", icon: "Add" }),
135
136
  /* @__PURE__ */ a(N, { children: "Add value", swStyle: 5, color: "active" })
136
137
  ] })
137
138
  ]
@@ -142,5 +143,5 @@ function le({
142
143
  );
143
144
  }
144
145
  export {
145
- le as Typeahead
146
+ fe as Typeahead
146
147
  };
@@ -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/dist/main.d.ts CHANGED
@@ -23,6 +23,8 @@ export type { DropdownProps } from './components/atoms/form/dropdown';
23
23
  export { DropdownFilter } from './components/molecules/filter/dropdown-selector';
24
24
  export { DropdownSearch } from './components/atoms/form/dropdown-search';
25
25
  export type { DropdownSearchProps, ExtendedDropdownSearchOption, BaseDropdownSearchOption, } from './components/atoms/form/dropdown-search';
26
+ export { DropdownItem, renderSpotterDropdownOption } from './components/atoms/form/dropdown-item';
27
+ export type { DropdownItemProps, SpotterDropdownOption } from './components/atoms/form/dropdown-item';
26
28
  export { Calendar } from './components/atoms/form/calendar';
27
29
  export type { CalendarProps, CalendarDate } from './components/atoms/form/calendar';
28
30
  export type { DropdownFilterProps, DropdownFilterOption } from './components/molecules/filter/dropdown-selector';