welcome-ui 0.0.0-dev.1762114810912 → 0.0.0-dev.1763386521897

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/Alert.css CHANGED
@@ -1 +1 @@
1
- @layer components{._root_1kb4k_2{position:relative;display:flex;align-items:flex-start;width:100%;border-radius:var(--border-radius-md);border:var(--border-width-xs) solid;padding:var(--padding);max-width:var(--maxWidth, max-content);background-color:var(--backgroundColor, var(--color-background-neutral-inverse-fixed));border-color:var(--borderColor, var(--color-background-neutral-subtlest));color:var(--color, var(--color-background-neutral-secondary))}._size-sm_1kb4k_16{--padding: var(--border-radius-xl)}._size-md_1kb4k_19{--padding: var(--border-radius-2xl)}._variant-ai_1kb4k_22{--backgroundColor: var(--color-violet-10);--borderColor: var(--color-violet-10);--color: var(--color-violet-90)}._variant-beige_1kb4k_27{--backgroundColor: var(--color-background-warm-primary);--borderColor: var(--color-background-warm-primary);--color: var(--color-border-warm-stronger)}._variant-danger_1kb4k_32{--backgroundColor: var(--color-background-danger-minimal);--borderColor: var(--color-background-danger-minimal);--color: var(--color-icon-danger-primary)}._variant-info_1kb4k_37{--backgroundColor: var(--color-background-accent-blue-minimal);--borderColor: var(--color-background-accent-blue-minimal);--color: var(--color-icon-accent-blue-primary)}._variant-success_1kb4k_42{--backgroundColor: var(--color-green-10);--borderColor: var(--color-green-10);--color: var(--color-icon-accent-green-primary)}._variant-warning_1kb4k_47{--backgroundColor: var(--color-background-warning-minimal);--borderColor: var(--color-background-warning-minimal);--color: var(--color-icon-warning-primary)}._full-width_1kb4k_52{--maxWidth: 100%}._icon_1kb4k_55._size-sm_1kb4k_16 svg{margin-top:1px}._icon_1kb4k_55._size-sm_1kb4k_16 ._content_1kb4k_58{margin-left:var(--border-radius-lg)}._icon_1kb4k_55._size-md_1kb4k_19 svg{margin-top:-3px}._icon_1kb4k_55._size-md_1kb4k_19 ._content_1kb4k_58{margin-left:var(--border-radius-xl)}._content_1kb4k_58{display:flex;gap:var(--border-radius-lg);flex-direction:column;justify-content:space-between;align-items:flex-start;flex:1}._content-text_1kb4k_76{flex:1}._content-actions_1kb4k_79{display:flex;align-items:center;gap:var(--border-radius-md)}._variant-icon_1kb4k_84{align-self:start}._title_1kb4k_88{font-weight:var(--font-weight-medium);margin-bottom:var(--titleMarginBottom)}._title-size-sm_1kb4k_93{--titleMarginBottom: var(--border-radius-sm)}._title-size-md_1kb4k_96{--titleMarginBottom: var(--border-radius-md)}._title-close-button_1kb4k_99{margin-right:var(--border-radius-2xl)}._close-button_1kb4k_103{position:absolute;right:var(--border-radius-md);top:var(--border-radius-md)}}
1
+ @layer components{._root_hm7mj_2{position:relative;display:flex;align-items:flex-start;width:100%;gap:var(--gap, var(--components-dimensions-alert-gap-content-md));border-radius:var(--components-dimensions-alert-border-radius);border-width:var(--border-width-sm);border-style:solid;padding:var(--padding);max-width:var(--maxWidth, max-content);background-color:var(--backgroundColor, var(--components-colors-alert-color-background-brand));border-color:var(--borderColor, var(--components-colors-alert-color-background-brand));color:var(--color, var(--components-colors-alert-color-text-brand-body))}._size-md_hm7mj_18{--padding: var(--components-dimensions-alert-padding-inline-md)}._size-md_hm7mj_18 ._content-actions_hm7mj_21{--gap: var(--components-dimensions-alert-gap-actions-md)}._size-md_hm7mj_18 ._without-title_hm7mj_24 ._icon-wrapper_hm7mj_24{margin-top:-2px}._size-lg_hm7mj_27{--padding: var(--components-dimensions-alert-padding-inline-lg);--gap: var(--components-dimensions-alert-gap-content-lg)}._size-lg_hm7mj_27 ._content-actions_hm7mj_21{--gap: var(--components-dimensions-alert-gap-actions-lg)}._variant-ai_hm7mj_34{--backgroundColor: var(--components-colors-alert-color-background-ai);--borderColor: transparent;background:linear-gradient(var(--components-colors-alert-color-background-ai) 0 0) padding-box,linear-gradient(90deg,var(--color-green-30) 0%,var(--color-teal-40) 20%,var(--color-blue-40) 40%,var(--color-violet-40) 60%,var(--color-pink-40) 80%,var(--color-red-orange-40) 100%) border-box}._variant-danger_hm7mj_39{--backgroundColor: var(--components-colors-alert-color-background-danger);--borderColor: var(--components-colors-alert-color-background-danger);--color: var(--color-icon-danger-primary)}._variant-info_hm7mj_44{--backgroundColor: var(--components-colors-alert-color-background-information);--borderColor: var(--components-colors-alert-color-background-information);--color: var(--color-icon-accent-blue-primary)}._variant-success_hm7mj_49{--backgroundColor: var(--components-colors-alert-color-background-success);--borderColor: var(--components-colors-alert-color-background-success);--color: var(--color-icon-accent-green-primary)}._variant-warning_hm7mj_54{--backgroundColor: var(--components-colors-alert-color-background-warning);--borderColor: var(--components-colors-alert-color-background-warning);--color: var(--color-icon-warning-primary)}._full-width_hm7mj_59{--maxWidth: 100%}._content_hm7mj_21{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:var(--gap, var(--components-dimensions-alert-gap-content-md))}._content-text_hm7mj_70{display:flex;flex-direction:column;gap:var(--gap, var(--components-dimensions-alert-gap-content-md))}._content-text_hm7mj_70._without-title_hm7mj_24{flex-direction:row}._content-text_hm7mj_70._without-title_hm7mj_24 ._icon-wrapper_hm7mj_24{align-self:flex-start}._content-actions_hm7mj_21{display:flex;align-items:center;gap:var(--gap)}._title-close-button_hm7mj_87{margin-right:var(--spacing-xl)}._title-with-icon_hm7mj_90{display:flex;align-items:center;gap:var(--spacing-sm)}._close-button_hm7mj_96{position:absolute;right:var(--spacing-sm);top:var(--spacing-sm)}._icon-wrapper_hm7mj_24{flex-shrink:0;padding:var(--components-dimensions-alert-icon-padding-block);border-radius:var(--components-dimensions-alert-icon-border-radius);background-color:var(--iconWrapperBackgroundColor, var(--components-colors-alert-icon-color-background-brand));color:var(--iconWrapperColor, var(--components-colors-alert-icon-color-icon-brand))}._icon-wrapper-success_hm7mj_109{--iconWrapperBackgroundColor: var(--components-colors-alert-icon-color-background-success);--iconWrapperColor: var(--components-colors-alert-icon-color-icon-success)}._icon-wrapper-danger_hm7mj_113{--iconWrapperBackgroundColor: var(--components-colors-alert-icon-color-background-danger);--iconWrapperColor: var(--components-colors-alert-icon-color-icon-danger)}._icon-wrapper-info_hm7mj_117{--iconWrapperBackgroundColor: var( --components-colors-alert-icon-color-background-information );--iconWrapperColor: var(--components-colors-alert-icon-color-icon-information)}._icon-wrapper-warning_hm7mj_123{--iconWrapperBackgroundColor: var(--components-colors-alert-icon-color-background-warning);--iconWrapperColor: var(--components-colors-alert-icon-color-icon-warning)}._icon-wrapper-ai_hm7mj_127{background:conic-gradient(from 30deg at 50% 50%,var(--color-green-30) 0deg,var(--color-blue-40) 25.96deg,var(--color-violet-40) 51.92deg,var(--color-pink-40) 76.15deg,var(--color-red-orange-40) 110.77deg,var(--color-pink-40) 162.69deg,var(--color-violet-40) 209.42deg,var(--color-blue-40) 254.42deg,var(--color-teal-40) 306.35deg,var(--color-green-30) 360deg);--iconWrapperColor: var(--components-colors-alert-icon-color-icon-ai)}}
package/dist/Alert.js CHANGED
@@ -1,101 +1,98 @@
1
1
  "use client";
2
- import { jsxs as p, jsx as i } from "react/jsx-runtime";
3
- import I, { forwardRef as l, Children as v, cloneElement as _ } from "react";
4
- import { Button as d } from "./Button.js";
5
- import { CloseButton as S } from "./CloseButton.js";
6
- import { Text as y } from "./Text.js";
7
- import { VariantIcon as T } from "./VariantIcon.js";
8
- import { c as V } from "./index-PAaZGbyz.js";
9
- const $ = "_root_1kb4k_2", E = "_icon_1kb4k_55", R = "_content_1kb4k_58", O = "_title_1kb4k_88", q = {
10
- root: $,
11
- "size-sm": "_size-sm_1kb4k_16",
12
- "size-md": "_size-md_1kb4k_19",
13
- "variant-ai": "_variant-ai_1kb4k_22",
14
- "variant-beige": "_variant-beige_1kb4k_27",
15
- "variant-danger": "_variant-danger_1kb4k_32",
16
- "variant-info": "_variant-info_1kb4k_37",
17
- "variant-success": "_variant-success_1kb4k_42",
18
- "variant-warning": "_variant-warning_1kb4k_47",
19
- "full-width": "_full-width_1kb4k_52",
20
- icon: E,
21
- content: R,
22
- "content-text": "_content-text_1kb4k_76",
23
- "content-actions": "_content-actions_1kb4k_79",
24
- "variant-icon": "_variant-icon_1kb4k_84",
25
- title: O,
26
- "title-size-sm": "_title-size-sm_1kb4k_93",
27
- "title-size-md": "_title-size-md_1kb4k_96",
28
- "title-close-button": "_title-close-button_1kb4k_99",
29
- "close-button": "_close-button_1kb4k_103"
30
- }, s = V(q), D = l(
31
- ({ children: o, className: e, cta: n, handleClose: a, hideIcon: x, isFullWidth: A, size: r = "sm", variant: c, ...B }, z) => {
32
- const h = c === "beige" ? void 0 : c, k = c === "ai", m = !x, j = v.toArray(o).map((t) => t.type === g ? _(t, { hasCloseButton: !!a, variant: r }) : t), u = (t) => {
33
- var f;
34
- if (t) {
35
- if (t.type === w)
36
- return _(t, {
37
- size: r,
38
- variant: k ? "primary-ai" : void 0
39
- });
40
- if (t.type === N)
41
- return _(t, {
42
- size: r,
43
- variant: k ? "primary-ai" : void 0
44
- });
45
- if ((f = t.props) != null && f.children)
46
- return _(t, {
47
- ...t.props,
48
- children: v.map(
49
- t.props.children,
50
- (C) => u(C)
51
- )
52
- });
53
- }
54
- return t;
55
- }, b = I.isValidElement(n) ? u(n) : n;
56
- return /* @__PURE__ */ p(
2
+ import { jsx as i, jsxs as m } from "react/jsx-runtime";
3
+ import l, { forwardRef as w, Children as p, cloneElement as u } from "react";
4
+ import { CloseButton as E } from "./CloseButton.js";
5
+ import { Icon as S } from "./Icon.js";
6
+ import { Text as v } from "./Text.js";
7
+ import { c as y } from "./index-PAaZGbyz.js";
8
+ import { Button as b } from "./Button.js";
9
+ const V = "_root_hm7mj_2", I = "_content_hm7mj_21", N = {
10
+ root: V,
11
+ "size-md": "_size-md_hm7mj_18",
12
+ "content-actions": "_content-actions_hm7mj_21",
13
+ "without-title": "_without-title_hm7mj_24",
14
+ "icon-wrapper": "_icon-wrapper_hm7mj_24",
15
+ "size-lg": "_size-lg_hm7mj_27",
16
+ "variant-ai": "_variant-ai_hm7mj_34",
17
+ "variant-danger": "_variant-danger_hm7mj_39",
18
+ "variant-info": "_variant-info_hm7mj_44",
19
+ "variant-success": "_variant-success_hm7mj_49",
20
+ "variant-warning": "_variant-warning_hm7mj_54",
21
+ "full-width": "_full-width_hm7mj_59",
22
+ content: I,
23
+ "content-text": "_content-text_hm7mj_70",
24
+ "title-close-button": "_title-close-button_hm7mj_87",
25
+ "title-with-icon": "_title-with-icon_hm7mj_90",
26
+ "close-button": "_close-button_hm7mj_96",
27
+ "icon-wrapper-success": "_icon-wrapper-success_hm7mj_109",
28
+ "icon-wrapper-danger": "_icon-wrapper-danger_hm7mj_113",
29
+ "icon-wrapper-info": "_icon-wrapper-info_hm7mj_117",
30
+ "icon-wrapper-warning": "_icon-wrapper-warning_hm7mj_123",
31
+ "icon-wrapper-ai": "_icon-wrapper-ai_hm7mj_127"
32
+ }, x = w(
33
+ ({ variant: t = "primary", ...o }, n) => /* @__PURE__ */ i(b, { className: "shrink-0 w-fit", ref: n, variant: t, ...o })
34
+ ), A = w(
35
+ ({ variant: t = "secondary", ...o }, n) => /* @__PURE__ */ i(b, { className: "shrink-0 w-fit", ref: n, variant: t, ...o })
36
+ ), O = y(N), h = ({ children: t, hasCloseButton: o, ...n }) => /* @__PURE__ */ i(v, { as: "span", className: O(o && "title-close-button"), ...n, children: t }), a = y(N), R = {
37
+ ai: "sparkles",
38
+ brand: "lightbulb-alt",
39
+ danger: "exclamation-octagon",
40
+ info: "info-circle",
41
+ success: "check-circle",
42
+ warning: "exclamation-triangle"
43
+ }, z = w(
44
+ ({ children: t, className: o, cta: n, handleClose: _, isFullWidth: B, size: c = "md", variant: s = "brand", ...$ }, k) => {
45
+ const C = s === "ai", f = p.toArray(t).some((r) => l.isValidElement(r) ? r.type === h : !1), j = /* @__PURE__ */ i("div", { className: a("icon-wrapper", `icon-wrapper-${s}`), children: /* @__PURE__ */ i(S, { name: R[s] }) }), T = p.toArray(t).map((r) => r.type === h ? /* @__PURE__ */ m("div", { className: a("title-with-icon"), children: [
46
+ j,
47
+ u(r, {
48
+ hasCloseButton: !!_,
49
+ variant: `body-${c}-strong`
50
+ })
51
+ ] }) : r), d = (r) => p.toArray(r).flatMap((e) => l.isValidElement(e) && e.type === l.Fragment ? d(e.props.children) : e.type === x ? u(e, {
52
+ size: c,
53
+ variant: C ? "primary-ai" : void 0
54
+ }) : e.type === A ? u(e, {
55
+ size: c
56
+ }) : e), g = !!n && d(n);
57
+ return /* @__PURE__ */ m(
57
58
  "div",
58
59
  {
59
- className: s(
60
+ className: a(
60
61
  "root",
61
- A && "full-width",
62
- r && `size-${r}`,
63
- c && `variant-${c}`,
64
- m && "icon",
65
- e
62
+ B && "full-width",
63
+ `size-${c}`,
64
+ s && `variant-${s}`,
65
+ o
66
66
  ),
67
- ref: z,
68
- ...B,
67
+ ref: k,
68
+ ...$,
69
69
  children: [
70
- !!a && /* @__PURE__ */ i(S, { className: "close-button", onClick: a, size: "sm" }),
71
- m ? /* @__PURE__ */ i(T, { className: s("variant-icon"), size: r, variant: h }) : null,
72
- /* @__PURE__ */ p("div", { className: s("content"), children: [
73
- /* @__PURE__ */ i(y, { as: "div", className: s("content-text"), children: j }),
74
- !!b && /* @__PURE__ */ i("div", { className: s("content-actions"), children: b })
70
+ !!_ && /* @__PURE__ */ i(E, { className: a("close-button"), onClick: _ }),
71
+ /* @__PURE__ */ m("div", { className: a("content"), children: [
72
+ /* @__PURE__ */ m(
73
+ v,
74
+ {
75
+ as: "div",
76
+ className: a("content-text", !f && "without-title"),
77
+ variant: `body-${c}`,
78
+ children: [
79
+ !f && j,
80
+ T
81
+ ]
82
+ }
83
+ ),
84
+ !!g && /* @__PURE__ */ i("div", { className: a("content-actions"), children: g })
75
85
  ] })
76
86
  ]
77
87
  }
78
88
  );
79
89
  }
80
- ), w = l(
81
- ({ variant: o = "secondary", ...e }, n) => /* @__PURE__ */ i(d, { className: "shrink-0 w-fit", ref: n, ...e, variant: o })
82
- ), N = l(
83
- ({ variant: o = "tertiary", ...e }, n) => /* @__PURE__ */ i(d, { className: "shrink-0 w-fit", ref: n, ...e, variant: o })
84
- ), g = ({ children: o, hasCloseButton: e, variant: n, ...a }) => /* @__PURE__ */ i(
85
- y,
86
- {
87
- as: "span",
88
- className: s("title", `title-size-${n}`, e && "title-close-button"),
89
- variant: n,
90
- ...a,
91
- children: o
92
- }
93
- ), P = Object.assign(D, {
94
- Button: w,
95
- SecondaryButton: N,
96
- Title: g
90
+ ), K = Object.assign(z, {
91
+ Button: x,
92
+ SecondaryButton: A,
93
+ Title: h
97
94
  });
98
95
  export {
99
- P as Alert,
100
- g as AlertTitle
96
+ K as Alert,
97
+ R as ICON
101
98
  };
@@ -1 +1 @@
1
- @layer components{._root_atiow_2>svg:only-child{width:var(--components-dimensions-button-padding-inline-md);height:var(--components-dimensions-button-padding-inline-md)}._animate-presence_atiow_6{animation-duration:var(--duration-medium);animation-timing-function:var(--timing-primary);animation-name:_fade_atiow_1}@keyframes _fade_atiow_1{0%{opacity:0}to{opacity:1}}}
1
+ @layer components{._root_1r27z_2>svg:only-child{width:var(--components-dimensions-button-size-icon-sm);height:var(--components-dimensions-button-size-icon-sm)}._animate-presence_1r27z_6{animation-duration:var(--duration-medium);animation-timing-function:var(--timing-primary);animation-name:_fade_1r27z_1}@keyframes _fade_1r27z_1{0%{opacity:0}to{opacity:1}}}
@@ -1,24 +1,24 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import { forwardRef as s } from "react";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { forwardRef as a } from "react";
4
4
  import { Button as n } from "./Button.js";
5
- import { Icon as i } from "./Icon.js";
6
- import { c as m } from "./index-PAaZGbyz.js";
7
- const c = "_root_atiow_2", l = "_fade_atiow_1", f = {
8
- root: c,
9
- "animate-presence": "_animate-presence_atiow_6",
5
+ import { Icon as m } from "./Icon.js";
6
+ import { c } from "./index-PAaZGbyz.js";
7
+ const i = "_root_1r27z_2", l = "_fade_1r27z_1", f = {
8
+ root: i,
9
+ "animate-presence": "_animate-presence_1r27z_6",
10
10
  fade: l
11
- }, p = m(f), B = s(
12
- ({ animatePresence: e = !1, className: t, ...r }, a) => /* @__PURE__ */ o(
11
+ }, p = c(f), B = a(
12
+ ({ animatePresence: o = !1, className: t, ...r }, s) => /* @__PURE__ */ e(
13
13
  n,
14
14
  {
15
15
  "aria-label": "Close",
16
- className: p("root", e && "animate-presence", t),
17
- ref: a,
16
+ className: p("root", o && "animate-presence", t),
17
+ ref: s,
18
18
  size: "md",
19
19
  variant: "tertiary",
20
20
  ...r,
21
- children: /* @__PURE__ */ o(i, { name: "times", size: "lg" })
21
+ children: /* @__PURE__ */ e(m, { name: "times", size: "lg" })
22
22
  }
23
23
  )
24
24
  );
package/dist/Icon.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { jsxs as o, jsx as a } from "react/jsx-runtime";
3
3
  import { forwardRef as C } from "react";
4
4
  import { c as e } from "./index-PAaZGbyz.js";
5
- const s = "_root_576cf_2", A = {
5
+ const s = "_root_576cf_2", n = {
6
6
  root: s,
7
7
  "size-xs": "_size-xs_576cf_7",
8
8
  "size-sm": "_size-sm_576cf_10",
@@ -212,14 +212,18 @@ const s = "_root_576cf_2", A = {
212
212
  /* @__PURE__ */ a("symbol", { id: "thumbs-down", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M19,2H6.27A3,3,0,0,0,3.32,4.46l-1.27,7A3,3,0,0,0,5,15H9.56L9,16.43A4.13,4.13,0,0,0,12.89,22a1,1,0,0,0,.91-.59L16.65,15H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM15,13.79l-2.72,6.12a2.13,2.13,0,0,1-1.38-2.78l.53-1.43A2,2,0,0,0,9.56,13H5a1,1,0,0,1-.77-.36A1,1,0,0,1,4,11.82l1.27-7a1,1,0,0,1,1-.82H15ZM20,12a1,1,0,0,1-1,1H17V4h2a1,1,0,0,1,1,1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
213
213
  /* @__PURE__ */ a("symbol", { id: "trees", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M16.5,5A4.86,4.86,0,0,0,14,5.69,6,6,0,0,0,2.5,8v4a6,6,0,0,0,5,5.91V21a1,1,0,0,0,2,0V17.91a6.08,6.08,0,0,0,2.78-1.26A5,5,0,0,0,15.5,18.9V21a1,1,0,0,0,2,0V18.9a5,5,0,0,0,4-4.9V10A5,5,0,0,0,16.5,5Zm-5,5v4a5.23,5.23,0,0,0,.06.57,4,4,0,0,1-2.06,1.3V13a1,1,0,0,0-2,0v2.86A4,4,0,0,1,4.5,12V8a4,4,0,0,1,6.83-2.84,3.94,3.94,0,0,1,1.06,2A5,5,0,0,0,11.5,10Zm8,4a3,3,0,0,1-2,2.82V13a1,1,0,0,0-2,0v3.82a3,3,0,0,1-2-2.82V10a3,3,0,0,1,6,0Z", xmlns: "http://www.w3.org/2000/svg" }) }),
214
214
  /* @__PURE__ */ a("symbol", { id: "exit", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M4,12a1,1,0,0,0,1,1h7.59l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l4-4a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76,1,1,0,0,0-.21-.33l-4-4a1,1,0,1,0-1.42,1.42L12.59,11H5A1,1,0,0,0,4,12ZM17,2H7A3,3,0,0,0,4,5V8A1,1,0,0,0,6,8V5A1,1,0,0,1,7,4H17a1,1,0,0,1,1,1V19a1,1,0,0,1-1,1H7a1,1,0,0,1-1-1V16a1,1,0,0,0-2,0v3a3,3,0,0,0,3,3H17a3,3,0,0,0,3-3V5A3,3,0,0,0,17,2Z", xmlns: "http://www.w3.org/2000/svg" }) }),
215
- /* @__PURE__ */ a("symbol", { id: "ban", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,0,1-8-8A7.92,7.92,0,0,1,5.69,7.1L16.9,18.31A7.92,7.92,0,0,1,12,20Zm6.31-3.1L7.1,5.69A7.92,7.92,0,0,1,12,4a8,8,0,0,1,8,8A7.92,7.92,0,0,1,18.31,16.9Z", xmlns: "http://www.w3.org/2000/svg" }) })
216
- ] }), m = e(A), v = C(
215
+ /* @__PURE__ */ a("symbol", { id: "ban", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,0,1-8-8A7.92,7.92,0,0,1,5.69,7.1L16.9,18.31A7.92,7.92,0,0,1,12,20Zm6.31-3.1L7.1,5.69A7.92,7.92,0,0,1,12,4a8,8,0,0,1,8,8A7.92,7.92,0,0,1,18.31,16.9Z", xmlns: "http://www.w3.org/2000/svg" }) }),
216
+ /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", id: "angle-double-left", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M11.46,8.29a1,1,0,0,0-1.42,0l-3,3a1,1,0,0,0,0,1.42l3,3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.16,12l2.3-2.29A1,1,0,0,0,11.46,8.29ZM14.66,12,17,9.71a1,1,0,0,0-1.42-1.42l-3,3a1,1,0,0,0,0,1.42l3,3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z" }) }),
217
+ /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", id: "angle-double-right", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M8.46,8.29A1,1,0,1,0,7,9.71L9.34,12,7,14.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l3-3a1,1,0,0,0,0-1.42Zm8.5,3-3-3a1,1,0,0,0-1.42,1.42L14.84,12l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l3-3A1,1,0,0,0,17,11.29Z" }) }),
218
+ /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", id: "angle-right", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M14.83,11.29,10.59,7.05a1,1,0,0,0-1.42,0,1,1,0,0,0,0,1.41L12.71,12,9.17,15.54a1,1,0,0,0,0,1.41,1,1,0,0,0,.71.29,1,1,0,0,0,.71-.29l4.24-4.24A1,1,0,0,0,14.83,11.29Z" }) }),
219
+ /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", id: "angle-left", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M11.29,12l3.54-3.54a1,1,0,0,0,0-1.41,1,1,0,0,0-1.42,0L9.17,11.29a1,1,0,0,0,0,1.42L13.41,17a1,1,0,0,0,.71.29,1,1,0,0,0,.71-.29,1,1,0,0,0,0-1.41Z" }) })
220
+ ] }), A = e(n), v = C(
217
221
  ({ "aria-label": l, className: w, name: r, size: h = "md", ...i }, t) => /* @__PURE__ */ a(
218
222
  "svg",
219
223
  {
220
224
  "aria-hidden": l ? "false" : "true",
221
225
  "aria-label": l,
222
- className: m("root", `size-${h}`, `name-${r}`, w),
226
+ className: A("root", `size-${h}`, `name-${r}`, w),
223
227
  ref: t,
224
228
  role: l ? "img" : void 0,
225
229
  ...i,
package/dist/Link.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
+ import { jsxs as p, jsx as i } from "react/jsx-runtime";
3
3
  import o from "react";
4
- import { Icon as p } from "./Icon.js";
4
+ import { Icon as u } from "./Icon.js";
5
5
  import { c as N } from "./index-PAaZGbyz.js";
6
6
  import { f as w } from "./forwardRefWithAs-8eP3ZN15.js";
7
7
  const E = "_root_gizuv_2", k = "_isExternal_gizuv_14", M = "_isMultiline_gizuv_131", W = {
@@ -16,46 +16,47 @@ const E = "_root_gizuv_2", k = "_isExternal_gizuv_14", M = "_isMultiline_gizuv_1
16
16
  "size-lg": "_size-lg_gizuv_115",
17
17
  isMultiline: M,
18
18
  "icon-disabled": "_icon-disabled_gizuv_134"
19
- }, r = N(W), l = ({ children: e, isExternal: s }) => /* @__PURE__ */ m("span", { className: r("wui-text"), children: [
19
+ }, r = N(W), _ = ({ children: e, isExternal: s }) => /* @__PURE__ */ p("span", { className: r("wui-text"), children: [
20
20
  e,
21
- s ? /* @__PURE__ */ i(p, { name: "external-link-alt", size: "sm" }) : null
22
- ] }), _ = (e, s) => typeof e == "string" ? /* @__PURE__ */ i(l, { isExternal: s, children: e }) : o.isValidElement(e) && (e.type === "span" || e.props.as === "span" || // FormattedMessage from react-intl has a span tag by default
23
- e.props.tagName === "span" || e.props["data-wui-link"] === !0 || typeof e.props.children == "string") ? s ? /* @__PURE__ */ i(l, { isExternal: s, children: e }) : (
21
+ s ? /* @__PURE__ */ i(u, { name: "external-link-alt", size: "sm" }) : null
22
+ ] }), m = (e, s) => typeof e == "string" ? /* @__PURE__ */ i(_, { isExternal: s, children: e }) : o.isValidElement(e) && (e.type === "span" || e.props.as === "span" || // FormattedMessage from react-intl has a span tag by default
23
+ e.props.tagName === "span" || e.props["data-wui-link"] === !0 || typeof e.props.children == "string") ? s ? /* @__PURE__ */ i(_, { isExternal: s, children: e }) : (
24
24
  // If it is not external, we just need to add wui-text className to the child as we don't need to wrap it to display the icon
25
25
  o.cloneElement(e, {
26
26
  className: r("wui-text", e.props.className)
27
27
  })
28
28
  ) : e, C = w((e, s) => {
29
29
  const {
30
- as: u,
30
+ as: c,
31
31
  children: t,
32
- className: c,
32
+ className: z,
33
33
  disabled: n,
34
34
  isExternal: a,
35
- multiline: z,
36
- size: d = "md",
37
- target: g,
35
+ multiline: d,
36
+ size: g = "md",
37
+ target: l,
38
38
  variant: v = "primary",
39
39
  ...f
40
- } = e, x = u || "a", y = typeof t == "string" ? _(t, a) : o.Children.map(t, (b) => _(b, a));
41
- return /* @__PURE__ */ m(
40
+ } = e, x = c || "a", y = typeof t == "string" ? m(t, a) : o.Children.map(t, (b) => m(b, a));
41
+ return /* @__PURE__ */ p(
42
42
  x,
43
43
  {
44
44
  "aria-disabled": n,
45
45
  className: r(
46
46
  "root",
47
47
  `variant-${v}`,
48
- `size-${d}`,
48
+ `size-${g}`,
49
49
  a && "isExternal",
50
- z && "isMultiline",
51
- c
50
+ d && "isMultiline",
51
+ z
52
52
  ),
53
53
  ref: s,
54
- rel: g === "_blank" ? "noopener noreferrer" : void 0,
54
+ rel: l === "_blank" ? "noopener noreferrer" : void 0,
55
55
  tabIndex: n ? -1 : 0,
56
+ target: l,
56
57
  ...f,
57
58
  children: [
58
- n ? /* @__PURE__ */ i(p, { className: r("icon-disabled"), name: "ban", size: "md" }) : null,
59
+ n ? /* @__PURE__ */ i(u, { className: r("icon-disabled"), name: "ban", size: "md" }) : null,
59
60
  y
60
61
  ]
61
62
  }
@@ -1 +1 @@
1
- @layer components{._list_1sith_2{list-style-type:none;padding:0;margin:0;display:flex;gap:var(--components-dimensions-pagination-start-padding-inline-leading-lg);align-items:center;flex-wrap:wrap}._item_1sith_11{color:var(--color, var(--components-colors-pagination-color-icon-unchecked-pressed));background-color:var(--backgroundColor, var(--components-colors-pagination-color-background-unchecked-default));font-size:var(--components-dimensions-pagination-start-padding-inline-trailing-md);font-weight:var(--font-weight-semi-bold);height:var(--components-dimensions-pagination-size-max-height-md);width:var(--components-dimensions-pagination-size-max-height-md);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none}._item_1sith_11:not([disabled]):hover,._item_1sith_11:focus-visible{--backgroundColor: var(--color-background-neutral-subtlest)}._item_1sith_11:focus-visible{--color: var(--components-colors-pagination-color-icon-unchecked-pressed);outline:none!important}._disabled-arrow_1sith_32{cursor:not-allowed;--color: var(--color-icon-warm-tertiary);--backgroundColor: var(--color-background-warm-stronger)}._page_1sith_37[aria-current=true]{--backgroundColor: var(--components-colors-pagination-color-icon-unchecked-pressed);--color: var(--components-colors-pagination-color-background-unchecked-default)}._page_1sith_37[aria-current=true]:hover,._page_1sith_37[aria-current=true]:focus-visible{--backgroundColor: var(--components-colors-pagination-color-icon-unchecked-pressed)}._dots_1sith_44{display:flex;justify-content:center;align-items:center}}
1
+ @layer components{._list_uyk8e_3{list-style-type:none;padding:0;margin:0;display:flex;gap:var(--components-dimensions-pagination-gap-pages);align-items:center;flex-wrap:wrap}._item_uyk8e_13{color:var(--color, var(--components-colors-pagination-color-icon-unchecked-pressed));background-color:var(--backgroundColor, var(--components-colors-pagination-color-background-unchecked-default));font-size:var(--components-dimensions-pagination-start-padding-inline-trailing-md);font-weight:var(--font-weight-semi-bold);border-radius:var(--components-dimensions-pagination-border-radius);display:flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none;border-color:var(--borderColor, var(--components-colors-pagination-color-border-unchecked-default));border-width:var(--borderWidth, var(--components-dimensions-pagination-border-width-unchecked));border-style:solid;box-shadow:var(--elevation-10)}._item_uyk8e_13:not([disabled]):not([aria-current=true]):hover,._item_uyk8e_13:not([disabled]):not([aria-current=true]):focus-visible{background-color:var(--components-colors-pagination-color-background-unchecked-hover);border-color:var(--components-colors-pagination-color-border-unchecked-hover);box-shadow:var(--elevation-20);outline:none!important}._item_uyk8e_13:not([disabled]):not([aria-current=true]):active{background-color:var(--components-colors-pagination-color-background-unchecked-pressed);border-color:var(--components-colors-pagination-color-border-unchecked-pressed)}._item_uyk8e_13._disabled-arrow_uyk8e_43,._item_uyk8e_13[disabled]{cursor:not-allowed;color:var(--components-colors-pagination-color-text-unchecked-disabled);background:repeating-linear-gradient(-45deg,var(--color-neutral-30),var(--color-neutral-30) 1.75px,var(--color-background-warm-stronger) 3.75px,var(--color-background-warm-stronger) 3.25px) padding-box;box-shadow:none;border:0}._page_uyk8e_52[aria-current=true]{background-color:var(--components-colors-pagination-color-background-checked-default);border-color:var(--components-colors-pagination-color-border-checked-default);border-width:var(--components-dimensions-pagination-border-width-checked);color:var(--components-colors-pagination-color-text-checked-default)}._page_uyk8e_52[aria-current=true]:hover,._page_uyk8e_52[aria-current=true]:focus-visible{background-color:var(--components-colors-pagination-color-background-checked-hover);border-color:var(--components-colors-pagination-color-border-checked-hover);color:var(--components-colors-pagination-color-text-checked-hover);outline:none!important}._page_uyk8e_52[aria-current=true]:active{background-color:var(--components-colors-pagination-color-background-checked-pressed);border-color:var(--components-colors-pagination-color-border-checked-pressed);color:var(--components-colors-pagination-color-text-checked-pressed)}._with-text-left_uyk8e_72,._with-text-right_uyk8e_72{gap:var(--components-dimensions-pagination-gap-content)}._size-lg_uyk8e_75{font-size:var(--font-size-md);height:var(--components-dimensions-pagination-size-max-height-lg);width:var(--components-dimensions-pagination-size-min-height-lg)}._size-lg_uyk8e_75._with-text-right_uyk8e_72{padding-left:var(--components-dimensions-pagination-start-padding-inline-leading-lg);padding-right:var(--components-dimensions-pagination-end-padding-inline-leading-lg);width:auto}._size-lg_uyk8e_75._with-text-left_uyk8e_72{padding-left:var(--components-dimensions-pagination-start-padding-inline-trailing-lg);padding-right:var(--components-dimensions-pagination-end-padding-inline-trailing-lg);width:auto}._size-md_uyk8e_90{font-size:var(--font-size-sm);height:var(--components-dimensions-pagination-size-max-height-md);width:var(--components-dimensions-pagination-size-min-height-md)}._size-md_uyk8e_90._with-text-right_uyk8e_72{padding-left:var(--components-dimensions-pagination-start-padding-inline-leading-md);padding-right:var(--components-dimensions-pagination-end-padding-inline-leading-md);width:auto}._size-md_uyk8e_90._with-text-left_uyk8e_72{padding-left:var(--components-dimensions-pagination-start-padding-inline-trailing-md);padding-right:var(--components-dimensions-pagination-end-padding-inline-trailing-md);width:auto}}