@digitalpromise/design 4.8.2 → 4.9.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/dist/index.js CHANGED
@@ -1,187 +1,340 @@
1
- import { I as w } from "./icon-Ce5_UC8P.js";
2
- import { B as T, a as U } from "./icon-Ce5_UC8P.js";
3
- import { jsx as e, jsxs as S } from "react/jsx-runtime";
4
- import { useSearchParams as C, usePathname as k, useRouter as L } from "next/navigation";
5
- import { useRef as j, useState as R, useEffect as I } from "react";
6
- const M = /* @__PURE__ */ new Map([
1
+ "use client";
2
+ import { I as N } from "./icon-B0jP5FtS.js";
3
+ import { B as le } from "./icon-B0jP5FtS.js";
4
+ import { jsx as n, jsxs as h, Fragment as k } from "react/jsx-runtime";
5
+ import { useSearchParams as I, usePathname as z, useRouter as L } from "next/navigation";
6
+ import { useRef as R, useState as F, useEffect as M, useId as O } from "react";
7
+ const Y = [
8
+ "default",
9
+ "danger",
10
+ "inverse",
11
+ "emphasize",
12
+ "decolor"
13
+ ], Z = ["md", "sm", "xs"], K = [
14
+ "ghost",
15
+ "outline",
16
+ "secondary",
17
+ "tertiary"
18
+ ], V = "inline-flex items-center justify-center rounded-lg cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-4 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", A = {
19
+ md: "h-12 w-12 p-3",
20
+ sm: "h-8 w-8 p-2",
21
+ xs: "h-6 w-6 p-0"
22
+ }, E = {
23
+ default: "text-gray-5 hover:text-neutral-5 transition-colors",
24
+ danger: "text-red-4 hover:text-red-5",
25
+ inverse: "text-white hover:text-gray-1",
26
+ emphasize: "bg-white text-gray-5 hover:bg-gray-1 hover:text-neutral-5 focus-visible:bg-blue-1 focus-visible:text-blue-4 focus-visible:hover:bg-blue-2 focus-visible:hover:text-blue-5",
27
+ decolor: "text-gray-5 hover:text-neutral-5 transition-colors"
28
+ }, G = {
29
+ ghost: "",
30
+ outline: "border-2 border-gray-5"
31
+ }, q = {
32
+ default: "btn btn-primary",
33
+ danger: "btn btn-primary btn-danger",
34
+ inverse: "btn btn-primary btn-inverse",
35
+ emphasize: "btn btn-primary",
36
+ decolor: "btn btn-primary btn-decolor"
37
+ }, D = {
38
+ default: "flex items-center gap-2 py-3 text-gray-5",
39
+ danger: "flex items-center gap-2 py-3 text-red-4 hover:text-red-5",
40
+ inverse: "flex items-center gap-2 py-3 text-white hover:text-gray-1",
41
+ emphasize: "flex items-center gap-2 py-3 text-gray-5",
42
+ decolor: "flex items-center gap-2 py-3 text-gray-5 hover:text-neutral-5"
43
+ };
44
+ function j(e, o) {
45
+ return `${e === "xs" ? "block h-5 w-5 shrink-0 leading-none" : e === "sm" ? "block h-4 w-4 shrink-0 text-base leading-none" : "block h-6 w-6 shrink-0 text-2xl leading-none"} ${o ?? ""}`.trim();
46
+ }
47
+ function Q({
48
+ className: e,
49
+ size: o = "md",
50
+ state: t = "default",
51
+ variant: s = "ghost"
52
+ }) {
53
+ return s === "secondary" ? `${q[t]} ${e ?? ""}`.trim() : s === "tertiary" ? `${D[t]} ${e ?? ""}`.trim() : `${V} ${A[o]} ${E[t]} ${G[s]} ${e ?? ""}`.trim();
54
+ }
55
+ function T({
56
+ children: e,
57
+ icon: o,
58
+ iconClassName: t,
59
+ iconPosition: s = "start",
60
+ size: l = "md",
61
+ textClassName: u,
62
+ variant: i = "ghost"
63
+ }) {
64
+ const a = o ? /* @__PURE__ */ n(
65
+ N,
66
+ {
67
+ name: o,
68
+ className: i === "ghost" || i === "outline" ? j(l, t) : i === "tertiary" ? `h-5 w-5 shrink-0 ${t ?? ""}`.trim() : t
69
+ }
70
+ ) : null;
71
+ if (i === "tertiary") {
72
+ const r = e ? /* @__PURE__ */ n("span", { className: `font-semibold underline ${u ?? ""}`.trim(), children: e }) : null;
73
+ return s === "end" ? /* @__PURE__ */ h(k, { children: [
74
+ r,
75
+ a
76
+ ] }) : /* @__PURE__ */ h(k, { children: [
77
+ a,
78
+ r
79
+ ] });
80
+ }
81
+ if (i === "secondary") {
82
+ const r = u ? /* @__PURE__ */ n("span", { className: u, children: e }) : e;
83
+ return a ? r ? s === "end" ? /* @__PURE__ */ h(k, { children: [
84
+ r,
85
+ " ",
86
+ a
87
+ ] }) : /* @__PURE__ */ h(k, { children: [
88
+ a,
89
+ " ",
90
+ r
91
+ ] }) : a : r;
92
+ }
93
+ return /* @__PURE__ */ h(k, { children: [
94
+ a,
95
+ e
96
+ ] });
97
+ }
98
+ function ee({
99
+ children: e,
100
+ icon: o,
101
+ iconClassName: t,
102
+ iconPosition: s = "start",
103
+ label: l,
104
+ className: u,
105
+ size: i = "md",
106
+ state: a = "default",
107
+ textClassName: r,
108
+ type: c = "button",
109
+ variant: m = "ghost",
110
+ ...y
111
+ }) {
112
+ return /* @__PURE__ */ n(
113
+ "button",
114
+ {
115
+ type: c,
116
+ className: Q({ className: u, size: i, state: a, variant: m }),
117
+ ...y,
118
+ "aria-label": l,
119
+ children: T({
120
+ children: e,
121
+ icon: o,
122
+ iconClassName: t,
123
+ iconPosition: s,
124
+ size: i,
125
+ textClassName: r,
126
+ variant: m
127
+ })
128
+ }
129
+ );
130
+ }
131
+ function te({
132
+ name: e,
133
+ size: o = "md",
134
+ className: t
135
+ }) {
136
+ return /* @__PURE__ */ n(
137
+ N,
138
+ {
139
+ name: e,
140
+ className: j(o, t)
141
+ }
142
+ );
143
+ }
144
+ const U = /* @__PURE__ */ new Map([
7
145
  ["black", "/primary-badge-engine-logo-black.svg"],
8
146
  ["white", "/primary-badge-engine-logo-white.svg"],
9
147
  ["color", "/primary-badge-engine-logo-color.svg"]
10
148
  ]);
11
- function E({
12
- variant: c = "color",
13
- className: b
149
+ function ne({
150
+ variant: e = "color",
151
+ className: o
14
152
  }) {
15
- const s = M.get(c);
16
- return s === void 0 ? null : /* @__PURE__ */ e(
153
+ const t = U.get(e);
154
+ return t === void 0 ? null : /* @__PURE__ */ n(
17
155
  "img",
18
156
  {
19
- src: s,
157
+ src: t,
20
158
  width: 186,
21
159
  height: 36,
22
160
  alt: "Badge Engine",
23
- className: b
161
+ className: o
24
162
  }
25
163
  );
26
164
  }
27
- function V({
28
- count: c,
29
- limit: b,
30
- pageParamKey: s = "page"
165
+ function re({
166
+ count: e,
167
+ limit: o,
168
+ pageParamKey: t = "page"
31
169
  }) {
32
- const r = C(), f = k(), o = L(), x = r.get(s), d = x ? Number.parseInt(x, 10) : Number.NaN, t = Number.isFinite(d) ? d : 1, n = Math.max(1, Math.ceil(c / b)), P = n <= 7 ? Array.from({ length: n }, (a, i) => i + 1) : t <= 4 ? [1, 2, 3, 4, 5, "ellipsis", n] : t >= n - 3 ? [1, "ellipsis", n - 4, n - 3, n - 2, n - 1, n] : [
170
+ const s = I(), l = z(), u = L(), i = s.get(t), a = i ? Number.parseInt(i, 10) : Number.NaN, r = Number.isFinite(a) ? a : 1, c = Math.max(1, Math.ceil(e / o)), m = c <= 7 ? Array.from({ length: c }, (d, g) => g + 1) : r <= 4 ? [1, 2, 3, 4, 5, "ellipsis", c] : r >= c - 3 ? [1, "ellipsis", c - 4, c - 3, c - 2, c - 1, c] : [
33
171
  1,
34
172
  "ellipsis",
35
- t - 1,
36
- t,
37
- t + 1,
173
+ r - 1,
174
+ r,
175
+ r + 1,
38
176
  "ellipsis",
39
- n
40
- ], v = t === 1, u = t === n, N = (a) => {
41
- if (v && a === "prev" || u && a === "next")
177
+ c
178
+ ], y = r === 1, C = r === c, $ = (d) => {
179
+ if (y && d === "prev" || C && d === "next")
42
180
  return;
43
- const i = a === "prev" ? t - 1 : t + 1, g = new URLSearchParams(r.toString());
44
- g.set(s, String(i)), o.push(`${f}?${g.toString()}`, { scroll: !1 });
45
- }, y = (a) => {
46
- const i = new URLSearchParams(r.toString());
47
- i.set(s, String(a)), o.push(`${f}?${i.toString()}`, { scroll: !1 });
181
+ const g = d === "prev" ? r - 1 : r + 1, b = new URLSearchParams(s.toString());
182
+ b.set(t, String(g)), u.push(`${l}?${b.toString()}`, { scroll: !1 });
183
+ }, f = (d) => {
184
+ const g = new URLSearchParams(s.toString());
185
+ g.set(t, String(d)), u.push(`${l}?${g.toString()}`, { scroll: !1 });
48
186
  };
49
- return /* @__PURE__ */ S("ul", { className: "flex items-center justify-center gap-4 font-medium", children: [
50
- /* @__PURE__ */ e("li", { className: "mr-2", children: /* @__PURE__ */ e(
187
+ return /* @__PURE__ */ h("ul", { className: "flex items-center justify-center gap-4 font-medium", children: [
188
+ /* @__PURE__ */ n("li", { className: "mr-2", children: /* @__PURE__ */ n(
51
189
  "button",
52
190
  {
53
191
  type: "button",
54
192
  "aria-label": "Previous page",
55
- disabled: v,
193
+ disabled: y,
56
194
  className: "inline-flex h-[42px] w-[42px] items-center justify-center rounded-[4px] bg-transparent p-[9px] text-gray-5 transition hover:bg-transparent hover:text-neutral-5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-4 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
57
- onClick: () => N("prev"),
58
- children: /* @__PURE__ */ e(w, { name: "ArrowLineLeft" })
195
+ onClick: () => $("prev"),
196
+ children: /* @__PURE__ */ n(N, { name: "ArrowLineLeft" })
59
197
  }
60
198
  ) }),
61
- P.map((a, i) => {
62
- const g = a === "ellipsis", h = g ? void 0 : a, m = h === t, p = g || m, l = g ? "Pagination ellipsis" : `Go to page ${h}`;
63
- return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
199
+ m.map((d, g) => {
200
+ const b = d === "ellipsis", x = b ? void 0 : d, w = x === r, S = b || w, P = b ? "Pagination ellipsis" : `Go to page ${x}`;
201
+ return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
64
202
  "button",
65
203
  {
66
204
  type: "button",
67
- "aria-label": l,
68
- "aria-current": m ? "page" : void 0,
69
- disabled: p,
70
- className: `flex h-[36px] w-[36px] items-center justify-center rounded-[4px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-4 ${m ? "bg-blue-1 text-blue-4" : ""} ${p ? "cursor-default" : "cursor-pointer hover:bg-gray-1"}`.trim(),
71
- onClick: !p && h ? () => y(h) : void 0,
72
- children: g ? "..." : h
205
+ "aria-label": P,
206
+ "aria-current": w ? "page" : void 0,
207
+ disabled: S,
208
+ className: `flex h-[36px] w-[36px] items-center justify-center rounded-[4px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-4 ${w ? "bg-blue-1 text-blue-4" : ""} ${S ? "cursor-default" : "cursor-pointer hover:bg-gray-1"}`.trim(),
209
+ onClick: !S && x ? () => f(x) : void 0,
210
+ children: b ? "..." : x
73
211
  }
74
- ) }, `${a}-${i}`);
212
+ ) }, `${d}-${g}`);
75
213
  }),
76
- /* @__PURE__ */ e("li", { className: "ml-2", children: /* @__PURE__ */ e(
214
+ /* @__PURE__ */ n("li", { className: "ml-2", children: /* @__PURE__ */ n(
77
215
  "button",
78
216
  {
79
217
  type: "button",
80
218
  "aria-label": "Next page",
81
- disabled: u,
219
+ disabled: C,
82
220
  className: "inline-flex h-[42px] w-[42px] items-center justify-center rounded-[4px] bg-transparent p-[9px] text-gray-5 transition hover:bg-transparent hover:text-neutral-5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-4 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
83
- onClick: () => N("next"),
84
- children: /* @__PURE__ */ e(w, { name: "ArrowLineRight" })
221
+ onClick: () => $("next"),
222
+ children: /* @__PURE__ */ n(N, { name: "ArrowLineRight" })
85
223
  }
86
224
  ) })
87
225
  ] });
88
226
  }
89
- function q({
90
- placeholder: c,
91
- className: b,
92
- inputWidth: s,
93
- value: r,
94
- onChange: f,
95
- syncToUrl: o = !0,
96
- id: x = "search",
97
- paramKey: d = "s"
227
+ function se({
228
+ placeholder: e,
229
+ className: o,
230
+ inputWidth: t,
231
+ value: s,
232
+ onChange: l,
233
+ syncToUrl: u = !0,
234
+ id: i = "search",
235
+ paramKey: a = "s",
236
+ firstResultSelector: r,
237
+ onEnter: c
98
238
  }) {
99
- const t = C(), n = k(), P = L(), v = j(null), u = r !== void 0, [N, y] = R(
100
- u ? r : t.get(d)?.toString() ?? ""
101
- ), a = u ? r : N, i = Math.max(c.length, 1), g = `calc(${i}ch + 60px)`, h = s === void 0 ? g : typeof s == "number" ? `${s}px` : s;
102
- I(() => {
103
- !o || u || y(t.get(d)?.toString() ?? "");
104
- }, [u, d, t, o]);
105
- const m = (p) => {
106
- if (!o) return;
107
- const l = new URLSearchParams(t.toString());
108
- p ? (l.set(d, p), l.delete("page")) : (l.delete(d), l.delete("page"));
109
- const $ = l.toString();
110
- P.replace($ ? `${n}?${$}` : n);
239
+ const m = I(), y = z(), C = L(), $ = R(null), f = s !== void 0, [d, g] = F(
240
+ f ? s : m.get(a)?.toString() ?? ""
241
+ ), b = f ? s : d, x = Math.max(e.length, 1), w = `calc(${x}ch + 60px)`, S = t === void 0 ? w : typeof t == "number" ? `${t}px` : t;
242
+ M(() => {
243
+ !u || f || g(m.get(a)?.toString() ?? "");
244
+ }, [f, a, m, u]);
245
+ const P = (v) => {
246
+ if (!u) return;
247
+ const p = new URLSearchParams(m.toString());
248
+ v ? (p.set(a, v), p.delete("page")) : (p.delete(a), p.delete("page"));
249
+ const B = p.toString();
250
+ C.replace(B ? `${y}?${B}` : y);
111
251
  };
112
- return /* @__PURE__ */ S("form", { className: b ?? "", noValidate: !0, children: [
113
- /* @__PURE__ */ e("label", { className: "sr-only", htmlFor: x, children: "Search" }),
114
- /* @__PURE__ */ S("div", { className: "relative max-w-full", style: { width: h }, children: [
115
- /* @__PURE__ */ e(
116
- w,
252
+ return /* @__PURE__ */ h("form", { className: o ?? "", noValidate: !0, onSubmit: (v) => {
253
+ if (v.preventDefault(), c?.(b), r && b.trim()) {
254
+ const p = document.querySelector(r);
255
+ p && p.focus();
256
+ }
257
+ }, children: [
258
+ /* @__PURE__ */ n("label", { className: "sr-only", htmlFor: i, children: "Search" }),
259
+ /* @__PURE__ */ h("div", { className: "relative max-w-full", style: { width: S }, children: [
260
+ /* @__PURE__ */ n(
261
+ N,
117
262
  {
118
263
  name: "Magnifier",
119
264
  "aria-hidden": !0,
120
265
  className: "absolute left-[15px] top-1/2 z-10 -translate-y-1/2 text-large leading-5 text-gray-5"
121
266
  }
122
267
  ),
123
- /* @__PURE__ */ e(
268
+ /* @__PURE__ */ n(
124
269
  "input",
125
270
  {
126
- ref: v,
271
+ ref: $,
127
272
  className: "hide-search-clear block w-full max-w-full rounded-sm bg-white py-[11px] pl-[15px] pr-[40px] text-base leading-5 indent-[30px] outline-1 outline-gray-5 transition focus:outline-2 focus:outline-blue-4",
128
273
  style: {
129
274
  color: "#000000",
130
275
  WebkitTextFillColor: "#000000"
131
276
  },
132
- size: i,
133
- id: x,
277
+ size: x,
278
+ id: i,
134
279
  type: "search",
135
280
  autoComplete: "off",
136
- value: a,
137
- placeholder: c,
138
- onChange: (p) => {
139
- const l = p.target.value;
140
- u || y(l), f?.(l), m(l);
281
+ value: b,
282
+ placeholder: e,
283
+ onChange: (v) => {
284
+ const p = v.target.value;
285
+ f || g(p), l?.(p), P(p);
141
286
  }
142
287
  }
143
288
  ),
144
- a.length > 0 && /* @__PURE__ */ e(
289
+ b.length > 0 && /* @__PURE__ */ n(
145
290
  "button",
146
291
  {
147
292
  type: "button",
148
293
  "aria-label": "Clear search",
149
294
  className: "absolute right-1 top-1/2 z-10 inline-flex h-8 w-8 -translate-y-1/2 items-center justify-center rounded-lg p-2 text-gray-5 hover:text-neutral-5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-4",
150
295
  onClick: () => {
151
- u || y(""), f?.(""), m(""), v.current?.focus();
296
+ f || g(""), l?.(""), P(""), $.current?.focus();
152
297
  },
153
- children: /* @__PURE__ */ e(w, { name: "Close" })
298
+ children: /* @__PURE__ */ n(N, { name: "Close" })
154
299
  }
155
300
  )
156
301
  ] })
157
302
  ] });
158
303
  }
159
- function D({ columns: c, rows: b, rowKey: s }) {
160
- return /* @__PURE__ */ S("table", { className: "w-full table-auto border-y border-gray-2 text-gray-5", children: [
161
- /* @__PURE__ */ e("thead", { className: "font-bold", children: /* @__PURE__ */ e("tr", { children: c.map((r) => /* @__PURE__ */ e(
162
- "td",
304
+ function ie({ columns: e, rows: o, rowKey: t }) {
305
+ const s = O();
306
+ return /* @__PURE__ */ h("table", { className: "w-full table-auto border-y border-gray-2 text-gray-5", children: [
307
+ /* @__PURE__ */ n("thead", { className: "font-bold", children: /* @__PURE__ */ n("tr", { children: e.map((l) => /* @__PURE__ */ n(
308
+ "th",
163
309
  {
164
- className: `px-3 py-4 ${r.headerClassName ?? ""}`.trim(),
165
- children: r.header
310
+ id: `${s}-col-${l.key}`,
311
+ scope: "col",
312
+ className: `px-3 py-4 text-left ${l.headerClassName ?? ""}`.trim(),
313
+ children: l.header
166
314
  },
167
- r.key
315
+ l.key
168
316
  )) }) }),
169
- /* @__PURE__ */ e("tbody", { children: b.map((r, f) => /* @__PURE__ */ e("tr", { className: "border-t border-gray-2", children: c.map((o) => /* @__PURE__ */ e(
317
+ /* @__PURE__ */ n("tbody", { children: o.map((l, u) => /* @__PURE__ */ n("tr", { className: "border-t border-gray-2", children: e.map((i) => /* @__PURE__ */ n(
170
318
  "td",
171
319
  {
172
- className: `${o.cellClassName ?? "px-3 py-4"}`.trim(),
173
- children: o.render(r)
320
+ headers: `${s}-col-${i.key}`,
321
+ className: `${i.cellClassName ?? "px-3 py-4"}`.trim(),
322
+ children: i.render(l)
174
323
  },
175
- o.key
176
- )) }, s(r, f))) })
324
+ i.key
325
+ )) }, t(l, u))) })
177
326
  ] });
178
327
  }
179
328
  export {
180
- T as Button,
181
- w as Icon,
182
- U as IconButton,
183
- E as Logo,
184
- V as Pagination,
185
- q as Search,
186
- D as Table
329
+ le as Button,
330
+ N as Icon,
331
+ ee as IconButton,
332
+ te as IconButtonGlyph,
333
+ ne as Logo,
334
+ re as Pagination,
335
+ se as Search,
336
+ ie as Table,
337
+ Z as iconButtonSizes,
338
+ Y as iconButtonStates,
339
+ K as iconButtonVariants
187
340
  };
package/dist/theme.css CHANGED
@@ -1 +1 @@
1
- @theme{--color-*: initial; --text-*: initial; --spacing-*: initial;}@theme{ --color-gray-1: #f4f4f4; --color-gray-2: #e6e6e6; --color-gray-3: #a3a3a3; --color-gray-4: #767676; --color-gray-5: #454545; --color-blue-1: #eaf4fb; --color-blue-2: #d5e8f5; --color-blue-3: #2077be; --color-blue-4: #1166aa; --color-blue-5: #075593; --color-indigo-1: #eef2f9; --color-indigo-2: #d9dff3; --color-indigo-3: #5770be; --color-indigo-4: #465faa; --color-indigo-5: #3a4f92; --color-purple-1: #f1eef6; --color-purple-2: #e4dcf0; --color-purple-3: #8164af; --color-purple-4: #72559f; --color-purple-5: #5e4586; --color-violet-1: #f5eef6; --color-violet-2: #ecddef; --color-violet-3: #9f57af; --color-violet-4: #8a4799; --color-violet-5: #713c7c; --color-magenta-1: #f6eef4; --color-magenta-2: #f0dce9; --color-magenta-3: #aa558e; --color-magenta-4: #8f4777; --color-magenta-5: #7d3c68; --color-red-1: #ffefea; --color-red-2: #fee0d7; --color-red-3: #cc4a22; --color-red-4: #bc3a11; --color-red-5: #a22a06; --color-orange-1: #fcf2e8; --color-orange-2: #fae3cb; --color-orange-3: #d46b00; --color-orange-4: #b55b00; --color-orange-5: #8c4500; --color-green-1: #f5f9eb; --color-green-2: #e6f1cd; --color-green-3: #69930d; --color-green-4: #577d04; --color-green-5: #426001; --color-jade-1: #eef7f1; --color-jade-2: #d4eadd; --color-jade-3: #299a55; --color-jade-4: #14833f; --color-jade-5: #07652c; --color-teal-1: #eaf8fb; --color-teal-2: #caeef4; --color-teal-3: #1692a9; --color-teal-4: #1a7b8d; --color-teal-5: #11606e; --color-neutral-1: #ffffff; --color-neutral-2: rgba(0, 0, 0, .08); --color-neutral-3: rgba(0, 0, 0, .15); --color-neutral-4: rgba(0, 0, 0, .45); --color-neutral-5: #000000; --color-primary: #1166aa; --color-primary-hover: #eaf4fb; --color-danger: #bc3a11; --color-danger-hover: #a22a06; --color-disabled: #a3a3a3; --text-small: .875rem; --text-medium: 1rem; --text-medium-large: 1.25rem; --text-large: 1.5rem; --text-x-large: 2rem; --text-xx-large: 3rem; --text-xxx-large: 4rem; --text-base: 1rem; --spacing-0: 0; --spacing-1: .25rem; --spacing-2: .5rem; --spacing-3: .75rem; --spacing-4: 1rem; --spacing-5: 1.5rem; --spacing-6: 2rem; --spacing-7: 3rem; --spacing-8: 4rem; --spacing-9: 5rem; --spacing-10: 6rem; --spacing-11: 15rem; --spacing-12: 22.5rem; }@source "./components";@layer components{.btn{@apply transition cursor-pointer font-semibold px-[1.375rem] py-[.625rem] rounded-3xl disabled:opacity-50;}.btn-primary{@apply bg-blue-3 border-2 border-blue-3 leading-5 text-neutral-1 hover:border-blue-4 hover:bg-blue-4 disabled:border-blue-3 disabled:bg-blue-3;}.btn-primary.btn-danger{@apply border-red-3 bg-red-3 text-neutral-1 hover:border-red-4 hover:bg-red-4;}.btn-primary.btn-inverse{@apply bg-neutral-1 text-blue-4 hover:bg-blue-1 hover:border-blue-5 hover:text-blue-5;}.btn-primary.btn-decolor{@apply border-gray-5 bg-gray-5 text-neutral-1 hover:border-neutral-5 hover:bg-neutral-5;}.btn-secondary{@apply bg-neutral-1 border-2 border-blue-3 text-blue-4 hover:border-blue-4 hover:bg-blue-1 hover:text-blue-5;}.btn-secondary.btn-danger{@apply border-red-3 text-red-3 hover:border-red-4 hover:text-red-4 hover:bg-red-1;}.btn-secondary.btn-inverse{@apply border-neutral-1 text-neutral-1 bg-indigo-3 hover:bg-indigo-4;}.btn-secondary.btn-decolor{@apply text-gray-5 border-gray-5 hover:text-neutral-5 hover:border-neutral-5 hover:bg-gray-1;}.btn-tertiary{@apply px-0 py-3 text-blue-4 underline hover:text-blue-5;}.btn-tertiary.btn-danger{@apply text-red-4 hover:text-red-5;}.btn-tertiary.btn-inverse{@apply text-neutral-1 hover:text-gray-1;}.btn-tertiary.btn-decolor{@apply text-gray-5 hover:text-neutral-5;}}@utility hide-search-clear{&::-webkit-search-cancel-button,&::-webkit-search-decoration {-webkit-appearance: none; appearance: none;} &::-ms-clear {display: none;}}
1
+ @theme{--color-*: initial; --text-*: initial; --spacing-*: initial;}@theme{ --color-gray-1: #f4f4f4; --color-gray-2: #e6e6e6; --color-gray-3: #a3a3a3; --color-gray-4: #767676; --color-gray-5: #454545; --color-blue-1: #eaf4fb; --color-blue-2: #d5e8f5; --color-blue-3: #2077be; --color-blue-4: #1166aa; --color-blue-5: #075593; --color-indigo-1: #eef2f9; --color-indigo-2: #d9dff3; --color-indigo-3: #5770be; --color-indigo-4: #465faa; --color-indigo-5: #3a4f92; --color-purple-1: #f1eef6; --color-purple-2: #e4dcf0; --color-purple-3: #8164af; --color-purple-4: #72559f; --color-purple-5: #5e4586; --color-violet-1: #f5eef6; --color-violet-2: #ecddef; --color-violet-3: #9f57af; --color-violet-4: #8a4799; --color-violet-5: #713c7c; --color-magenta-1: #f6eef4; --color-magenta-2: #f0dce9; --color-magenta-3: #aa558e; --color-magenta-4: #8f4777; --color-magenta-5: #7d3c68; --color-red-1: #ffefea; --color-red-2: #fee0d7; --color-red-3: #cc4a22; --color-red-4: #bc3a11; --color-red-5: #a22a06; --color-orange-1: #fcf2e8; --color-orange-2: #fae3cb; --color-orange-3: #d46b00; --color-orange-4: #b55b00; --color-orange-5: #8c4500; --color-green-1: #f5f9eb; --color-green-2: #e6f1cd; --color-green-3: #69930d; --color-green-4: #577d04; --color-green-5: #426001; --color-jade-1: #eef7f1; --color-jade-2: #d4eadd; --color-jade-3: #299a55; --color-jade-4: #14833f; --color-jade-5: #07652c; --color-teal-1: #eaf8fb; --color-teal-2: #caeef4; --color-teal-3: #1692a9; --color-teal-4: #1a7b8d; --color-teal-5: #11606e; --color-neutral-1: #ffffff; --color-neutral-2: rgba(0, 0, 0, .08); --color-neutral-3: rgba(0, 0, 0, .15); --color-neutral-4: rgba(0, 0, 0, .45); --color-neutral-5: #000000; --color-primary: #1166aa; --color-primary-hover: #eaf4fb; --color-danger: #bc3a11; --color-danger-hover: #a22a06; --color-disabled: #a3a3a3; --color-focus: #14833f; --color-focus-outer: #ffffff; --text-small: .875rem; --text-medium: 1rem; --text-medium-large: 1.25rem; --text-large: 1.5rem; --text-x-large: 2rem; --text-xx-large: 3rem; --text-xxx-large: 4rem; --text-base: 1rem; --spacing-0: 0; --spacing-1: .25rem; --spacing-2: .5rem; --spacing-3: .75rem; --spacing-4: 1rem; --spacing-5: 1.5rem; --spacing-6: 2rem; --spacing-7: 3rem; --spacing-8: 4rem; --spacing-9: 5rem; --spacing-10: 6rem; --spacing-11: 15rem; --spacing-12: 22.5rem; }@source "./components";:root{--focus-ring-color: #14833F;--focus-ring-outer-color: #FFFFFF;--focus-ring-width: 4px;--focus-ring-outer-width: 2px;--focus-ring-offset: 2px}.focus-ring:focus-visible,*:focus-visible{outline:none;box-shadow:0 0 0 var(--focus-ring-offset) var(--focus-ring-outer-color),0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color),0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width) + var(--focus-ring-outer-width)) var(--focus-ring-outer-color)}.focus-ring-inside:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--focus-ring-outer-width) var(--focus-ring-outer-color),inset 0 0 0 calc(var(--focus-ring-outer-width) + var(--focus-ring-width)) var(--focus-ring-color)}.focus-ring-none:focus-visible{outline:none;box-shadow:none}@layer components{.btn{@apply transition cursor-pointer font-semibold px-[1.375rem] py-[.625rem] rounded-3xl disabled:opacity-50;}.btn-primary{@apply bg-blue-3 border-2 border-blue-3 leading-5 text-neutral-1 hover:border-blue-4 hover:bg-blue-4 disabled:border-blue-3 disabled:bg-blue-3;}.btn-primary.btn-danger{@apply border-red-3 bg-red-3 text-neutral-1 hover:border-red-4 hover:bg-red-4;}.btn-primary.btn-inverse{@apply bg-neutral-1 text-blue-4 hover:bg-blue-1 hover:border-blue-5 hover:text-blue-5;}.btn-primary.btn-decolor{@apply border-gray-5 bg-gray-5 text-neutral-1 hover:border-neutral-5 hover:bg-neutral-5;}.btn-secondary{@apply bg-neutral-1 border-2 border-blue-3 text-blue-4 hover:border-blue-4 hover:bg-blue-1 hover:text-blue-5;}.btn-secondary.btn-danger{@apply border-red-3 text-red-3 hover:border-red-4 hover:text-red-4 hover:bg-red-1;}.btn-secondary.btn-inverse{@apply border-neutral-1 text-neutral-1 bg-indigo-3 hover:bg-indigo-4;}.btn-secondary.btn-decolor{@apply text-gray-5 border-gray-5 hover:text-neutral-5 hover:border-neutral-5 hover:bg-gray-1;}.btn-tertiary{@apply px-0 py-3 text-blue-4 underline hover:text-blue-5;}.btn-tertiary.btn-danger{@apply text-red-4 hover:text-red-5;}.btn-tertiary.btn-inverse{@apply text-neutral-1 hover:text-gray-1;}.btn-tertiary.btn-decolor{@apply text-gray-5 hover:text-neutral-5;}}@utility hide-search-clear{&::-webkit-search-cancel-button,&::-webkit-search-decoration {-webkit-appearance: none; appearance: none;} &::-ms-clear {display: none;}}@utility focus-ring{&:focus-visible {outline: none; box-shadow: 0 0 0 var(--focus-ring-offset) var(--focus-ring-outer-color),0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color),0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width) + var(--focus-ring-outer-width)) var(--focus-ring-outer-color);}}@utility focus-ring-inside{&:focus-visible {outline: none; box-shadow: inset 0 0 0 var(--focus-ring-outer-width) var(--focus-ring-outer-color),inset 0 0 0 calc(var(--focus-ring-outer-width) + var(--focus-ring-width)) var(--focus-ring-color);}}@utility focus-ring-none{&:focus-visible {outline: none; box-shadow: none;}}
@@ -0,0 +1,136 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export default tokens;
6
+
7
+ declare interface DesignToken {
8
+ $value?: any;
9
+ $type?: string;
10
+ $description?: string;
11
+ name?: string;
12
+ themeable?: boolean;
13
+ attributes?: Record<string, unknown>;
14
+ [key: string]: any;
15
+ }
16
+
17
+ declare const tokens: {
18
+ color: {
19
+ gray: {
20
+ "1": DesignToken;
21
+ "2": DesignToken;
22
+ "3": DesignToken;
23
+ "4": DesignToken;
24
+ "5": DesignToken;
25
+ };
26
+ blue: {
27
+ "1": DesignToken;
28
+ "2": DesignToken;
29
+ "3": DesignToken;
30
+ "4": DesignToken;
31
+ "5": DesignToken;
32
+ };
33
+ indigo: {
34
+ "1": DesignToken;
35
+ "2": DesignToken;
36
+ "3": DesignToken;
37
+ "4": DesignToken;
38
+ "5": DesignToken;
39
+ };
40
+ purple: {
41
+ "1": DesignToken;
42
+ "2": DesignToken;
43
+ "3": DesignToken;
44
+ "4": DesignToken;
45
+ "5": DesignToken;
46
+ };
47
+ violet: {
48
+ "1": DesignToken;
49
+ "2": DesignToken;
50
+ "3": DesignToken;
51
+ "4": DesignToken;
52
+ "5": DesignToken;
53
+ };
54
+ magenta: {
55
+ "1": DesignToken;
56
+ "2": DesignToken;
57
+ "3": DesignToken;
58
+ "4": DesignToken;
59
+ "5": DesignToken;
60
+ };
61
+ red: {
62
+ "1": DesignToken;
63
+ "2": DesignToken;
64
+ "3": DesignToken;
65
+ "4": DesignToken;
66
+ "5": DesignToken;
67
+ };
68
+ orange: {
69
+ "1": DesignToken;
70
+ "2": DesignToken;
71
+ "3": DesignToken;
72
+ "4": DesignToken;
73
+ "5": DesignToken;
74
+ };
75
+ green: {
76
+ "1": DesignToken;
77
+ "2": DesignToken;
78
+ "3": DesignToken;
79
+ "4": DesignToken;
80
+ "5": DesignToken;
81
+ };
82
+ jade: {
83
+ "1": DesignToken;
84
+ "2": DesignToken;
85
+ "3": DesignToken;
86
+ "4": DesignToken;
87
+ "5": DesignToken;
88
+ };
89
+ teal: {
90
+ "1": DesignToken;
91
+ "2": DesignToken;
92
+ "3": DesignToken;
93
+ "4": DesignToken;
94
+ "5": DesignToken;
95
+ };
96
+ neutral: {
97
+ "1": DesignToken;
98
+ "2": DesignToken;
99
+ "3": DesignToken;
100
+ "4": DesignToken;
101
+ "5": DesignToken;
102
+ };
103
+ primary: DesignToken;
104
+ "primary-hover": DesignToken;
105
+ danger: DesignToken;
106
+ "danger-hover": DesignToken;
107
+ disabled: DesignToken;
108
+ focus: DesignToken;
109
+ "focus-outer": DesignToken;
110
+ };
111
+ text: {
112
+ small: DesignToken;
113
+ medium: DesignToken;
114
+ "medium-large": DesignToken;
115
+ large: DesignToken;
116
+ "x-large": DesignToken;
117
+ "xx-large": DesignToken;
118
+ "xxx-large": DesignToken;
119
+ base: DesignToken;
120
+ };
121
+ spacing: {
122
+ "0": DesignToken;
123
+ "1": DesignToken;
124
+ "2": DesignToken;
125
+ "3": DesignToken;
126
+ "4": DesignToken;
127
+ "5": DesignToken;
128
+ "6": DesignToken;
129
+ "7": DesignToken;
130
+ "8": DesignToken;
131
+ "9": DesignToken;
132
+ "10": DesignToken;
133
+ "11": DesignToken;
134
+ "12": DesignToken;
135
+ };
136
+ };