welcome-ui 10.0.0-alpha.15 → 10.0.0-alpha.17

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/Modal.css CHANGED
@@ -1 +1 @@
1
- @layer components{._root_1ruus_3{--contentWidthMobile: calc(100vw - 2rem) ;--contentHeight: calc(100vh - 10rem) ;--contentWidthDesktop: calc(100vw - 4rem) }._asset-backdrop_1ruus_8{background-color:color-mix(in oklab,var(--color-background-neutral-primary-fixed) 90%,transparent);z-index:999;position:fixed;top:0;right:0;left:0;bottom:0;opacity:0;transition:opacity .15s ease-in-out}._asset-backdrop_1ruus_8._hideOnInteractOutside_1ruus_19{cursor:pointer}._asset-backdrop_1ruus_8[data-enter]{opacity:1}._iframe-wrapper_1ruus_25{height:100%;margin:auto 0;flex:1;aspect-ratio:16/9;width:var(--contentWidthMobile);max-height:var(--contentHeight)}._iframe-wrapper_1ruus_25 iframe{width:100%;height:100%}@media (min-width: 736px){._iframe-wrapper_1ruus_25{width:var(--contentWidthDesktop)}}@media (min-width: 1620px){._iframe-wrapper_1ruus_25{max-width:1600px}}._asset-wrapper_1ruus_48{--titleBlockMobile: 4rem;--titleBlockDesktop: 6rem;display:flex;flex-direction:column;border-radius:var(--size-icon-xl);overflow:hidden}._asset-wrapper_1ruus_48 ._asset-title-wrapper_1ruus_56{background-color:var(--color-background-neutral-inverse-fixed);display:flex;flex-direction:column;justify-content:center;flex-shrink:0;gap:var(--border-radius-xs);width:100%;height:var(--titleBlockMobile);padding-inline:var(--border-radius-lg)}@media (min-width: 736px){._asset-wrapper_1ruus_48 ._asset-title-wrapper_1ruus_56{height:var(--titleBlockDesktop);padding-inline:var(--border-radius-2xl)}}._asset-wrapper_1ruus_48>img{width:auto;max-width:fit-content;max-height:calc(100vh - 10rem - var(--titleBlockMobile));flex-shrink:0}@media (min-width: 736px){._asset-wrapper_1ruus_48>img{max-height:calc(100vh - 10rem - var(--titleBlockDesktop))}}._asset-wrapper_1ruus_48 ._iframe-wrapper_1ruus_25{background-color:var(--color-background-neutral-primary-fixed);max-height:calc(100vh - 10rem - var(--titleBlockMobile))}@media (min-width: 736px){._asset-wrapper_1ruus_48 ._iframe-wrapper_1ruus_25{max-height:calc(100vh - 10rem - var(--titleBlockDesktop))}}._asset-title_1ruus_56{margin:var(--font-letter-spacing-none)}._asset-content_1ruus_96{transition:margin-top .25s ease-in-out}._asset-content_1ruus_96>img,._asset-content_1ruus_96>div{max-width:var(--contentWidthMobile);max-height:var(--contentHeight)}@media (min-width: 736px){._asset-content_1ruus_96>img,._asset-content_1ruus_96>div{max-width:var(--contentWidthDesktop)}}@media (min-width: 1620px){._asset-content_1ruus_96>img,._asset-content_1ruus_96>div{max-width:1600px}}._dialog_1ruus_117{position:fixed;z-index:999;top:0;right:0;bottom:0;left:0;margin:auto;display:flex;height:fit-content;width:fit-content;flex-direction:column;border-radius:var(--border-radius-sm);opacity:0;transition:opacity .25s ease-in-out}._dialog_1ruus_117 ul:has(>[id*=swiper]){width:var(--contentWidthMobile);max-height:var(--contentHeight)}@media (min-width: 736px){._dialog_1ruus_117 ul:has(>[id*=swiper]){width:var(--contentWidthDesktop)}}@media (min-width: 1620px){._dialog_1ruus_117 ul:has(>[id*=swiper]){max-width:1600px}}._dialog_1ruus_117 ._asset-content_1ruus_96{margin-top:var(--border-radius-2xl)}._dialog_1ruus_117[data-enter]{opacity:1}._dialog_1ruus_117[data-enter] ._asset-content_1ruus_96{margin-top:0}._close-button_1ruus_159{position:absolute;right:var(--border-radius-2xl);top:var(--border-radius-2xl);color:var(--color-background-neutral-primary-fixed);border-color:var(--color-background-neutral-inverse-fixed);background-color:var(--color-background-neutral-inverse-fixed)}._close-button_1ruus_159:hover{background-color:var(--color-background-neutral-subtle)}}@layer components{._root_a4zjh_4{background-color:var(--color-background-neutral-inverse-fixed);border-color:var(--color-background-neutral-subtlest);border-style:solid;border-width:var(--border-width-xs);z-index:999;border-radius:var(--border-radius-sm);position:fixed;right:0;bottom:0;left:0;margin:auto;margin-top:var(--border-radius-2xl);top:50%;transform:translate3d(0,-50%,0);display:flex;flex-direction:column;align-self:center;height:100%;max-height:100%;max-width:100%;overflow:auto;opacity:0;transition:opacity .25s ease-in-out,margin-top .25s ease-in-out;--dialogWidth: 100%}._root_a4zjh_4[data-enter]{opacity:1;margin-top:0}@media (min-width: 736px){._root_a4zjh_4{height:fit-content;max-height:calc(2 * var(--border-radius-2xl) + 100vh);width:var(--dialogWidth)}}._root_a4zjh_4:has(._body_a4zjh_48):not(:has(._footer_a4zjh_48)) ._header_a4zjh_48,._root_a4zjh_4:has(._footer_a4zjh_48):not(:has(._body_a4zjh_48)) ._header_a4zjh_48{padding-bottom:var(--border-radius-xl)}._root_a4zjh_4:has(._footer_a4zjh_48) ._body_a4zjh_48{padding-bottom:var(--border-radius-xl)}._root_a4zjh_4:has(._footer_a4zjh_48):has(._header_a4zjh_48) ._body_a4zjh_48{padding-right:var(--size-icon-xl)}._root_a4zjh_4._scrollable_a4zjh_60 ._footer_a4zjh_48{border-top-width:var(--border-width-xs)}._root_a4zjh_4:not(:has(._header_a4zjh_48)):not(:has(._body_a4zjh_48)) ._footer_a4zjh_48{padding-top:var(--border-radius-xl)}._root_a4zjh_4:has(._header_a4zjh_48) ._content_a4zjh_66._with-close-button_a4zjh_66>._close_a4zjh_66{display:none}._size-lg_a4zjh_69{--dialogWidth: 45rem}._size-md_a4zjh_73{--dialogWidth: 37.5rem}._size-sm_a4zjh_77{--dialogWidth: 28.125rem}._size-xs_a4zjh_81{--dialogWidth: 20rem}._backdrop_a4zjh_85{background-color:var(--color-overlay-strong);z-index:999;position:fixed;top:0;right:0;left:0;bottom:0;opacity:0;transition:opacity .15s ease-in-out}._backdrop_a4zjh_85._hideOnInteractOutside_a4zjh_96{cursor:pointer}._backdrop_a4zjh_85[data-enter]{opacity:1}._close_a4zjh_66{position:sticky;top:var(--border-radius-xl);left:calc(100% - var(--border-radius-xl) - var(--size-icon-xl));z-index:1}._header_a4zjh_48{position:sticky;top:0;z-index:1;width:100%;display:flex;flex-direction:column;align-items:flex-start;background-color:var(--color-background-neutral-inverse-fixed);border-top-left-radius:var(--border-radius-sm);border-top-right-radius:var(--border-radius-sm);padding-bottom:var(--size-icon-xl);padding-left:var(--size-icon-xl);padding-right:var(--size-icon-2xl);padding-top:var(--size-icon-xl)}._header_a4zjh_48:has(>._header-subtitle_a4zjh_124) ._header-title_a4zjh_124{margin-bottom:var(--border-radius-xl)}._header_a4zjh_48._icon_a4zjh_127{align-items:center}._header_a4zjh_48._icon_a4zjh_127 ._header-title_a4zjh_124{margin-top:var(--border-radius-2xl)}._header_a4zjh_48 ._close_a4zjh_66{position:absolute;right:var(--border-radius-xl)}._header-subtitle_a4zjh_124{color:var(--color-background-neutral-tertiary);margin:0}._body_a4zjh_48{color:var(--color-background-neutral-primary-fixed);padding-left:var(--size-icon-xl);padding-right:var(--size-icon-2xl);padding-bottom:var(--size-icon-xl)}._footer_a4zjh_48{position:sticky;bottom:0;width:100%;flex-shrink:0;z-index:1;background-color:var(--color-background-neutral-inverse-fixed);border-bottom-left-radius:var(--border-radius-sm);border-bottom-right-radius:var(--border-radius-sm);border-top:0 solid var(--color-background-neutral-subtlest)}._footer-children-wrapper_a4zjh_158{padding-bottom:var(--border-radius-2xl);padding-top:var(--border-radius-xl);padding-inline:var(--size-icon-xl)}._footer-information_a4zjh_163{background-color:var(--color-background-warm-primary);padding-bottom:var(--size-icon-xl);padding-left:var(--size-icon-xl);padding-right:var(--size-icon-xl);padding-top:var(--border-radius-2xl)}._footer-information-title_a4zjh_170{color:var(--color-background-neutral-primary-fixed);font-weight:var(--font-weight-semi-bold)}._footer-information-subtitle_a4zjh_174{color:var(--color-background-neutral-primary-fixed);margin-bottom:var(--font-letter-spacing-none);margin-top:var(--border-radius-lg)}}
1
+ @layer components{._root_1ruus_3{--contentWidthMobile: calc(100vw - 2rem) ;--contentHeight: calc(100vh - 10rem) ;--contentWidthDesktop: calc(100vw - 4rem) }._asset-backdrop_1ruus_8{background-color:color-mix(in oklab,var(--color-background-neutral-primary-fixed) 90%,transparent);z-index:999;position:fixed;top:0;right:0;left:0;bottom:0;opacity:0;transition:opacity .15s ease-in-out}._asset-backdrop_1ruus_8._hideOnInteractOutside_1ruus_19{cursor:pointer}._asset-backdrop_1ruus_8[data-enter]{opacity:1}._iframe-wrapper_1ruus_25{height:100%;margin:auto 0;flex:1;aspect-ratio:16/9;width:var(--contentWidthMobile);max-height:var(--contentHeight)}._iframe-wrapper_1ruus_25 iframe{width:100%;height:100%}@media (min-width: 736px){._iframe-wrapper_1ruus_25{width:var(--contentWidthDesktop)}}@media (min-width: 1620px){._iframe-wrapper_1ruus_25{max-width:1600px}}._asset-wrapper_1ruus_48{--titleBlockMobile: 4rem;--titleBlockDesktop: 6rem;display:flex;flex-direction:column;border-radius:var(--size-icon-xl);overflow:hidden}._asset-wrapper_1ruus_48 ._asset-title-wrapper_1ruus_56{background-color:var(--color-background-neutral-inverse-fixed);display:flex;flex-direction:column;justify-content:center;flex-shrink:0;gap:var(--border-radius-xs);width:100%;height:var(--titleBlockMobile);padding-inline:var(--border-radius-lg)}@media (min-width: 736px){._asset-wrapper_1ruus_48 ._asset-title-wrapper_1ruus_56{height:var(--titleBlockDesktop);padding-inline:var(--border-radius-2xl)}}._asset-wrapper_1ruus_48>img{width:auto;max-width:fit-content;max-height:calc(100vh - 10rem - var(--titleBlockMobile));flex-shrink:0}@media (min-width: 736px){._asset-wrapper_1ruus_48>img{max-height:calc(100vh - 10rem - var(--titleBlockDesktop))}}._asset-wrapper_1ruus_48 ._iframe-wrapper_1ruus_25{background-color:var(--color-background-neutral-primary-fixed);max-height:calc(100vh - 10rem - var(--titleBlockMobile))}@media (min-width: 736px){._asset-wrapper_1ruus_48 ._iframe-wrapper_1ruus_25{max-height:calc(100vh - 10rem - var(--titleBlockDesktop))}}._asset-title_1ruus_56{margin:var(--font-letter-spacing-none)}._asset-content_1ruus_96{transition:margin-top .25s ease-in-out}._asset-content_1ruus_96>img,._asset-content_1ruus_96>div{max-width:var(--contentWidthMobile);max-height:var(--contentHeight)}@media (min-width: 736px){._asset-content_1ruus_96>img,._asset-content_1ruus_96>div{max-width:var(--contentWidthDesktop)}}@media (min-width: 1620px){._asset-content_1ruus_96>img,._asset-content_1ruus_96>div{max-width:1600px}}._dialog_1ruus_117{position:fixed;z-index:999;top:0;right:0;bottom:0;left:0;margin:auto;display:flex;height:fit-content;width:fit-content;flex-direction:column;border-radius:var(--border-radius-sm);opacity:0;transition:opacity .25s ease-in-out}._dialog_1ruus_117 ul:has(>[id*=swiper]){width:var(--contentWidthMobile);max-height:var(--contentHeight)}@media (min-width: 736px){._dialog_1ruus_117 ul:has(>[id*=swiper]){width:var(--contentWidthDesktop)}}@media (min-width: 1620px){._dialog_1ruus_117 ul:has(>[id*=swiper]){max-width:1600px}}._dialog_1ruus_117 ._asset-content_1ruus_96{margin-top:var(--border-radius-2xl)}._dialog_1ruus_117[data-enter]{opacity:1}._dialog_1ruus_117[data-enter] ._asset-content_1ruus_96{margin-top:0}._close-button_1ruus_159{position:absolute;right:var(--border-radius-2xl);top:var(--border-radius-2xl);color:var(--color-background-neutral-primary-fixed);border-color:var(--color-background-neutral-inverse-fixed);background-color:var(--color-background-neutral-inverse-fixed)}._close-button_1ruus_159:hover{background-color:var(--color-background-neutral-subtle)}}@layer components{._root_1hv3y_4{background-color:var(--color-background-neutral-inverse-fixed);border-color:var(--color-background-neutral-subtlest);border-style:solid;border-width:var(--border-width-xs);z-index:999;border-radius:var(--border-radius-sm);position:fixed;right:0;bottom:0;left:0;margin:auto;margin-top:var(--border-radius-2xl);top:50%;transform:translate3d(0,-50%,0);display:flex;flex-direction:column;align-self:center;height:100%;max-height:100%;max-width:100%;overflow:auto;opacity:0;transition:opacity .25s ease-in-out,margin-top .25s ease-in-out;--dialogWidth: 100%}._root_1hv3y_4[data-enter]{opacity:1;margin-top:0}@media (min-width: 736px){._root_1hv3y_4{height:fit-content;max-height:calc(2 * var(--border-radius-2xl) + 100vh);width:var(--dialogWidth)}}._root_1hv3y_4:has(._body_1hv3y_48):not(:has(._footer_1hv3y_48)) ._header_1hv3y_48,._root_1hv3y_4:has(._footer_1hv3y_48):not(:has(._body_1hv3y_48)) ._header_1hv3y_48{padding-bottom:var(--border-radius-xl)}._root_1hv3y_4:has(._footer_1hv3y_48) ._body_1hv3y_48{padding-bottom:var(--border-radius-xl)}._root_1hv3y_4:has(._footer_1hv3y_48):has(._header_1hv3y_48) ._body_1hv3y_48{padding-right:var(--size-icon-xl)}._root_1hv3y_4._scrollable_1hv3y_60 ._footer_1hv3y_48{border-top-width:var(--border-width-xs)}._root_1hv3y_4:not(:has(._header_1hv3y_48)):not(:has(._body_1hv3y_48)) ._footer_1hv3y_48{padding-top:var(--border-radius-xl)}._root_1hv3y_4:has(._header_1hv3y_48) ._content_1hv3y_66._with-close-button_1hv3y_66>._close_1hv3y_66{display:none}._size-lg_1hv3y_69{--dialogWidth: 45rem}._size-md_1hv3y_73{--dialogWidth: 37.5rem}._size-sm_1hv3y_77{--dialogWidth: 28.125rem}._size-xs_1hv3y_81{--dialogWidth: 20rem}._backdrop_1hv3y_85{background-color:var(--color-overlay-strong);z-index:999;position:fixed;top:0;right:0;left:0;bottom:0;opacity:0;transition:opacity .15s ease-in-out}._backdrop_1hv3y_85._hideOnInteractOutside_1hv3y_96{cursor:pointer}._backdrop_1hv3y_85[data-enter]{opacity:1}._close_1hv3y_66{position:sticky;top:var(--border-radius-xl);left:calc(100% - var(--border-radius-xl) - var(--size-icon-xl));z-index:1}._header_1hv3y_48{position:sticky;top:0;z-index:1;width:100%;display:flex;flex-direction:column;align-items:flex-start;background-color:var(--color-background-neutral-inverse-fixed);border-top-left-radius:var(--border-radius-sm);border-top-right-radius:var(--border-radius-sm);padding-bottom:var(--size-icon-xl);padding-left:var(--size-icon-xl);padding-right:var(--size-icon-2xl);padding-top:var(--size-icon-xl)}._header_1hv3y_48:has(>._header-subtitle_1hv3y_124) ._header-title_1hv3y_124{margin-bottom:var(--border-radius-xl)}._header_1hv3y_48._icon_1hv3y_127{align-items:center}._header_1hv3y_48._icon_1hv3y_127 ._header-title_1hv3y_124{margin-top:var(--border-radius-2xl)}._header_1hv3y_48 ._header-title_1hv3y_124{text-align:center}._header_1hv3y_48 ._close_1hv3y_66{position:absolute;right:var(--border-radius-xl)}._header-subtitle_1hv3y_124{color:var(--color-background-neutral-tertiary);margin:0}._body_1hv3y_48{color:var(--color-background-neutral-primary-fixed);padding-left:var(--size-icon-xl);padding-right:var(--size-icon-2xl);padding-bottom:var(--size-icon-xl)}._footer_1hv3y_48{position:sticky;bottom:0;width:100%;flex-shrink:0;z-index:1;background-color:var(--color-background-neutral-inverse-fixed);border-bottom-left-radius:var(--border-radius-sm);border-bottom-right-radius:var(--border-radius-sm);border-top:0 solid var(--color-background-neutral-subtlest)}._footer-children-wrapper_1hv3y_161{padding-bottom:var(--border-radius-2xl);padding-top:var(--border-radius-xl);padding-inline:var(--size-icon-xl)}._footer-information_1hv3y_166{background-color:var(--color-background-warm-primary);padding-bottom:var(--size-icon-xl);padding-left:var(--size-icon-xl);padding-right:var(--size-icon-xl);padding-top:var(--border-radius-2xl)}._footer-information-title_1hv3y_173{color:var(--color-background-neutral-primary-fixed);font-weight:var(--font-weight-semi-bold)}._footer-information-subtitle_1hv3y_177{color:var(--color-background-neutral-primary-fixed);margin-bottom:var(--font-letter-spacing-none);margin-top:var(--border-radius-lg)}}
package/dist/Modal.js CHANGED
@@ -5,8 +5,8 @@ import { b as R } from "./RTNCFSKZ-BywELldk.js";
5
5
  import { D as V, u as q } from "./NI3IVY7K-Dy240mkD.js";
6
6
  import { forwardRef as i, isValidElement as G, cloneElement as J, useState as K, useEffect as L } from "react";
7
7
  import { c as r } from "./index-PAaZGbyz.js";
8
- import { f as j } from "./forwardRefWithAs-8eP3ZN15.js";
9
- import { D as y } from "./DSAASPLT-Fx1kuAsk.js";
8
+ import { f as g } from "./forwardRefWithAs-8eP3ZN15.js";
9
+ import { D as x } from "./DSAASPLT-Fx1kuAsk.js";
10
10
  import { Icon as P } from "./Icon.js";
11
11
  import { Button as Q } from "./Button.js";
12
12
  import { Text as m } from "./Text.js";
@@ -23,9 +23,9 @@ const Y = "_root_1ruus_3", Z = "_hideOnInteractOutside_1ruus_19", ee = "_dialog_
23
23
  "asset-content": "_asset-content_1ruus_96",
24
24
  dialog: ee,
25
25
  "close-button": "_close-button_1ruus_159"
26
- }, te = r(c), x = ({ children: e, ...t }) => /* @__PURE__ */ o(Q, { className: te("close-button"), variant: "primary-neutral", ...t, children: e });
27
- x.displayName = "AssetModal.Close";
28
- const se = r(c), M = i(
26
+ }, te = r(c), M = ({ children: e, ...t }) => /* @__PURE__ */ o(Q, { className: te("close-button"), variant: "primary-neutral", ...t, children: e });
27
+ M.displayName = "AssetModal.Close";
28
+ const se = r(c), $ = i(
29
29
  ({ hideOnInteractOutside: e, ...t }, s) => /* @__PURE__ */ o(
30
30
  "div",
31
31
  {
@@ -33,100 +33,100 @@ const se = r(c), M = i(
33
33
  ...t,
34
34
  ref: s,
35
35
  children: /* @__PURE__ */ o(
36
- y,
36
+ x,
37
37
  {
38
- render: /* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(P, { name: "times" }) })
38
+ render: /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(P, { name: "times" }) })
39
39
  }
40
40
  )
41
41
  }
42
42
  )
43
43
  );
44
- M.displayName = "AssetModal.Backdrop";
45
- const oe = r(c), $ = ({
44
+ $.displayName = "AssetModal.Backdrop";
45
+ const oe = r(c), w = ({
46
46
  children: e,
47
47
  className: t,
48
48
  ...s
49
49
  }) => /* @__PURE__ */ o("div", { className: oe("root", "asset-content", t), ...s, children: e });
50
- $.displayName = "AssetModal.Content";
50
+ w.displayName = "AssetModal.Content";
51
51
  const ae = r(c), f = ({ children: e, ...t }) => /* @__PURE__ */ o(m, { as: "p", className: ae("asset-title"), lines: 2, variant: "heading-md-strong", ...t, children: e });
52
52
  f.displayName = "AssetModal.Title";
53
- const g = r(c), v = i(
54
- ({ children: e, customContent: t, subtitle: s, title: a, ...n }, l) => /* @__PURE__ */ _("div", { className: g("root", "asset-wrapper"), ref: l, ...n, children: [
53
+ const b = r(c), O = i(
54
+ ({ children: e, customContent: t, subtitle: s, title: a, ...n }, l) => /* @__PURE__ */ _("div", { className: b("root", "asset-wrapper"), ref: l, ...n, children: [
55
55
  e,
56
- /* @__PURE__ */ _("div", { className: g("root", "asset-title-wrapper"), children: [
56
+ /* @__PURE__ */ _("div", { className: b("root", "asset-title-wrapper"), children: [
57
57
  t,
58
58
  !t && s ? /* @__PURE__ */ o(m, { variant: "label-md", children: s }) : null,
59
59
  !t && a ? /* @__PURE__ */ o(f, { children: a }) : null
60
60
  ] })
61
61
  ] })
62
62
  );
63
- v.displayName = "AssetModal.AssetWithTitle";
64
- const re = r(c), w = ({
63
+ O.displayName = "AssetModal.AssetWithTitle";
64
+ const re = r(c), A = ({
65
65
  children: e,
66
66
  ...t
67
67
  }) => /* @__PURE__ */ o("div", { className: re("root", "dialog"), ...t, children: e });
68
- w.displayName = "AssetModal";
69
- const ne = r(c), O = ({ children: e }) => /* @__PURE__ */ o("div", { className: ne("root", "iframe-wrapper"), children: e });
70
- O.displayName = "AssetModal.Iframe";
71
- const le = Object.assign(w, {
72
- AssetWithTitle: v,
73
- Backdrop: M,
74
- Content: $,
75
- Iframe: O,
68
+ A.displayName = "AssetModal";
69
+ const ne = r(c), k = ({ children: e }) => /* @__PURE__ */ o("div", { className: ne("root", "iframe-wrapper"), children: e });
70
+ k.displayName = "AssetModal.Iframe";
71
+ const le = Object.assign(A, {
72
+ AssetWithTitle: O,
73
+ Backdrop: $,
74
+ Content: w,
75
+ Iframe: k,
76
76
  Title: f
77
- }), ie = "_root_a4zjh_4", ce = "_body_a4zjh_48", de = "_footer_a4zjh_48", _e = "_header_a4zjh_48", me = "_scrollable_a4zjh_60", ue = "_content_a4zjh_66", pe = "_close_a4zjh_66", he = "_backdrop_a4zjh_85", fe = "_hideOnInteractOutside_a4zjh_96", Ne = "_icon_a4zjh_127", d = {
77
+ }), ie = "_root_1hv3y_4", ce = "_body_1hv3y_48", de = "_footer_1hv3y_48", _e = "_header_1hv3y_48", me = "_scrollable_1hv3y_60", ue = "_content_1hv3y_66", pe = "_close_1hv3y_66", he = "_backdrop_1hv3y_85", fe = "_hideOnInteractOutside_1hv3y_96", ye = "_icon_1hv3y_127", d = {
78
78
  root: ie,
79
79
  body: ce,
80
80
  footer: de,
81
81
  header: _e,
82
82
  scrollable: me,
83
83
  content: ue,
84
- "with-close-button": "_with-close-button_a4zjh_66",
84
+ "with-close-button": "_with-close-button_1hv3y_66",
85
85
  close: pe,
86
- "size-lg": "_size-lg_a4zjh_69",
87
- "size-md": "_size-md_a4zjh_73",
88
- "size-sm": "_size-sm_a4zjh_77",
89
- "size-xs": "_size-xs_a4zjh_81",
86
+ "size-lg": "_size-lg_1hv3y_69",
87
+ "size-md": "_size-md_1hv3y_73",
88
+ "size-sm": "_size-sm_1hv3y_77",
89
+ "size-xs": "_size-xs_1hv3y_81",
90
90
  backdrop: he,
91
91
  hideOnInteractOutside: fe,
92
- "header-subtitle": "_header-subtitle_a4zjh_124",
93
- "header-title": "_header-title_a4zjh_124",
94
- icon: Ne,
95
- "footer-children-wrapper": "_footer-children-wrapper_a4zjh_158",
96
- "footer-information": "_footer-information_a4zjh_163",
97
- "footer-information-title": "_footer-information-title_a4zjh_170",
98
- "footer-information-subtitle": "_footer-information-subtitle_a4zjh_174"
99
- }, be = r(d), A = i(
92
+ "header-subtitle": "_header-subtitle_1hv3y_124",
93
+ "header-title": "_header-title_1hv3y_124",
94
+ icon: ye,
95
+ "footer-children-wrapper": "_footer-children-wrapper_1hv3y_161",
96
+ "footer-information": "_footer-information_1hv3y_166",
97
+ "footer-information-title": "_footer-information-title_1hv3y_173",
98
+ "footer-information-subtitle": "_footer-information-subtitle_1hv3y_177"
99
+ }, ve = r(d), B = i(
100
100
  ({ backdrop: e, hideOnInteractOutside: t, ...s }, a) => e === !0 ? /* @__PURE__ */ o(
101
101
  "div",
102
102
  {
103
- className: be("backdrop", t && "hideOnInteractOutside"),
103
+ className: ve("backdrop", t && "hideOnInteractOutside"),
104
104
  ref: a,
105
105
  ...s
106
106
  }
107
107
  ) : G(e) ? J(e, { ref: a, ...s }) : null
108
108
  );
109
- A.displayName = "Modal.Backdrop";
110
- const ze = r(d), k = i(({ className: e, ...t }, s) => /* @__PURE__ */ o("section", { className: ze("body", e), ref: s, ...t }));
111
- k.displayName = "Modal.Body";
112
- const ge = r(d), N = (e) => /* @__PURE__ */ o(y, { render: /* @__PURE__ */ o(U, { className: ge("close"), ...e }) });
113
- N.displayName = "Modal.Close";
114
- const je = r(d), B = i(
109
+ B.displayName = "Modal.Backdrop";
110
+ const Ne = r(d), C = i(({ className: e, ...t }, s) => /* @__PURE__ */ o("section", { className: Ne("body", e), ref: s, ...t }));
111
+ C.displayName = "Modal.Body";
112
+ const be = r(d), y = (e) => /* @__PURE__ */ o(x, { render: /* @__PURE__ */ o(U, { className: be("close"), ...e }) });
113
+ y.displayName = "Modal.Close";
114
+ const ge = r(d), D = i(
115
115
  ({ children: e, className: t, withClosingButton: s = !0, ...a }, n) => /* @__PURE__ */ _(
116
116
  "div",
117
117
  {
118
- className: je("content", s && "with-close-button", t),
118
+ className: ge("content", s && "with-close-button", t),
119
119
  ref: n,
120
120
  ...a,
121
121
  children: [
122
- /* @__PURE__ */ o(N, {}),
122
+ /* @__PURE__ */ o(y, {}),
123
123
  e
124
124
  ]
125
125
  }
126
126
  )
127
127
  );
128
- B.displayName = "Modal.Content";
129
- const u = r(d), C = i(
128
+ D.displayName = "Modal.Content";
129
+ const u = r(d), I = i(
130
130
  ({ children: e, className: t, information: s, ...a }, n) => /* @__PURE__ */ _("footer", { className: u("footer", t), ref: n, ...a, children: [
131
131
  e ? /* @__PURE__ */ o("div", { className: u("footer-children-wrapper"), children: e }) : null,
132
132
  s ? /* @__PURE__ */ _("div", { className: u("footer-information"), children: [
@@ -135,22 +135,22 @@ const u = r(d), C = i(
135
135
  ] }) : null
136
136
  ] })
137
137
  );
138
- C.displayName = "Modal.Footer";
139
- const h = r(d), D = i(
138
+ I.displayName = "Modal.Footer";
139
+ const h = r(d), z = i(
140
140
  ({ className: e, icon: t, subtitle: s, title: a, ...n }, l) => /* @__PURE__ */ _("header", { className: h("header", t && "icon", e), ref: l, ...n, children: [
141
- /* @__PURE__ */ o(N, {}),
141
+ /* @__PURE__ */ o(y, {}),
142
142
  t,
143
143
  /* @__PURE__ */ o(m, { as: "h4", className: h("header-title"), variant: "heading-md-strong", children: a }),
144
144
  s ? /* @__PURE__ */ o(m, { className: h("header-subtitle"), children: s }) : null
145
145
  ] })
146
146
  );
147
- D.displayName = "Modal.Header";
148
- const I = j(
147
+ z.displayName = "Modal.Header";
148
+ const T = g(
149
149
  ({ as: e, store: t, ...s }, a) => /* @__PURE__ */ o(X, { ref: a, render: e ? /* @__PURE__ */ o(e, {}) : void 0, store: t, ...s })
150
150
  );
151
- I.displayName = "Modal.Trigger";
152
- const ye = r(d);
153
- function Te(e) {
151
+ T.displayName = "Modal.Trigger";
152
+ const xe = r(d);
153
+ function Se(e) {
154
154
  const { onClose: t, setOpen: s, ...a } = e || {};
155
155
  return q({
156
156
  setOpen: (l) => {
@@ -159,7 +159,7 @@ function Te(e) {
159
159
  ...a
160
160
  });
161
161
  }
162
- const T = j(
162
+ const S = g(
163
163
  ({
164
164
  ariaLabel: e,
165
165
  /** for render property */
@@ -168,21 +168,21 @@ const T = j(
168
168
  children: a,
169
169
  className: n,
170
170
  hideOnInteractOutside: l = !0,
171
- size: S = "lg",
172
- store: b,
171
+ size: j = "lg",
172
+ store: v,
173
173
  ...E
174
174
  }, H) => {
175
- const [W, F] = K(!1), { contentElement: p, open: z } = R(b);
175
+ const [W, F] = K(!1), { contentElement: p, open: N } = R(v);
176
176
  return L(() => {
177
- z && p && F(p.scrollHeight > p.offsetHeight);
178
- }, [p, z]), /* @__PURE__ */ o(
177
+ N && p && F(p.scrollHeight > p.offsetHeight);
178
+ }, [p, N]), /* @__PURE__ */ o(
179
179
  V,
180
180
  {
181
- backdrop: /* @__PURE__ */ o(A, { backdrop: s, hideOnInteractOutside: l }),
181
+ backdrop: /* @__PURE__ */ o(B, { backdrop: s, hideOnInteractOutside: l }),
182
182
  hideOnInteractOutside: l,
183
183
  ref: H,
184
- render: t ? /* @__PURE__ */ o(t, {}) : /* @__PURE__ */ o("div", { className: ye("root", `size-${S}`, W && "scrollable", n) }),
185
- store: b,
184
+ render: t ? /* @__PURE__ */ o(t, {}) : /* @__PURE__ */ o("div", { className: xe("root", `size-${j}`, W && "scrollable", n) }),
185
+ store: v,
186
186
  ...E,
187
187
  "aria-label": e,
188
188
  children: a
@@ -190,16 +190,16 @@ const T = j(
190
190
  );
191
191
  }
192
192
  );
193
- T.displayName = "Modal";
194
- const Se = Object.assign(T, {
195
- Body: k,
196
- Content: B,
197
- Footer: C,
198
- Header: D,
199
- Trigger: I
193
+ S.displayName = "Modal";
194
+ const je = Object.assign(S, {
195
+ Body: C,
196
+ Content: D,
197
+ Footer: I,
198
+ Header: z,
199
+ Trigger: T
200
200
  }), Ee = le;
201
201
  export {
202
202
  Ee as AssetModal,
203
- Se as Modal,
204
- Te as useModal
203
+ je as Modal,
204
+ Se as useModal
205
205
  };
package/dist/Stepper.css CHANGED
@@ -1 +1 @@
1
- @layer components{._root_1wnun_2{display:flex;align-items:center;overflow-x:auto;border-style:solid;transition-property:border-color,box-shadow;transition-timing-function:ease-in-out;gap:var(--components-dimensions-stepper-gap-content);padding-block:var(--components-dimensions-stepper-padding-block);padding-inline:var(--components-dimensions-stepper-padding-inline);border-width:var(--components-dimensions-stepper-border-width-default);border-radius:var(--components-dimensions-stepper-border-radius);border-color:var(--stepperBorderColor, var(--components-colors-stepper-color-border-default));background-color:var(--components-colors-stepper-color-background);transition-duration:var(--duration-fast);box-shadow:var(--stepperBoxShadow, var(--elevation-10))}._root_1wnun_2 svg{width:var(--components-dimensions-stepper-size-icon);height:var(--components-dimensions-stepper-size-icon)}._root_1wnun_2:hover{--stepperBorderColor: var(--components-colors-stepper-color-border-hover);--stepperBoxShadow: var(--elevation-20)}._separator_1wnun_28{color:var(--components-colors-stepper-color-icon-default)}._item_1wnun_31{display:flex;align-items:center;transition-property:background-color,border-color,color;transition-timing-function:ease-in-out;gap:var(--components-dimensions-stepper-step-gap-content);padding-block:var(--components-dimensions-stepper-step-padding-block);padding-inline:var(--components-dimensions-stepper-step-padding-inline);border-width:var(--components-dimensions-stepper-step-border-width-active);border-radius:var(--components-dimensions-stepper-step-border-radius);transition-duration:var(--duration-medium);background-color:var(--stepperItemBackgroundColor, var(--components-colors-stepper-step-color-background-unchecked-default));border-color:var(--stepperItemBorderColor, transparent);color:var(--stepperItemColor, var(--components-colors-stepper-step-color-text-unchecked-default))}._item_1wnun_31 svg{width:var(--components-dimensions-stepper-step-size-icon);height:var(--components-dimensions-stepper-step-size-icon);color:var(--stepperItemIconColor, var(--components-colors-stepper-step-color-icon-unchecked-default))}._item_1wnun_31[aria-current=true]{--stepperItemColor: var(--components-colors-stepper-step-color-text-checked-default);--stepperItemBorderColor: var(--components-colors-stepper-step-color-border-checked-default);--stepperItemBackgroundColor: var( --components-colors-stepper-step-color-background-checked-default )}._item_1wnun_31[aria-current=true] svg{--stepperItemIconColor: var(--components-colors-stepper-step-color-icon-checked-default)}._item_1wnun_31._clickable_1wnun_64{cursor:pointer}._item_1wnun_31._clickable_1wnun_64:hover{--stepperItemColor: var(--components-colors-stepper-step-color-text-unchecked-hover);--stepperItemBackgroundColor: var( --components-colors-stepper-step-color-background-checked-hover )}._item_1wnun_31._clickable_1wnun_64:hover:not(._completed_1wnun_73) svg{--stepperItemIconColor: var( --components-colors-stepper-step-color-icon-unchecked-hover )}._item_1wnun_31._clickable_1wnun_64[aria-current=true]{--stepperItemColor: var(--components-colors-stepper-step-color-text-checked-default);--stepperItemBackgroundColor: var( --components-colors-stepper-step-color-background-checked-default );--stepperItemBorderColor: var( --components-colors-stepper-step-color-border-checked-default )}._item_1wnun_31._clickable_1wnun_64[aria-current=true]:hover{--stepperItemBackgroundColor: var( --components-colors-stepper-step-color-background-checked-hover );--stepperItemBorderColor: var( --components-colors-stepper-step-color-border-checked-hover )}._item_1wnun_31._clickable_1wnun_64[aria-current=true]:not(._completed_1wnun_73) svg{--stepperItemIconColor: var(--components-colors-stepper-step-color-icon-checked-hover)}._item_1wnun_31._completed_1wnun_73 svg{--stepperItemIconColor: var(--components-colors-stepper-step-color-icon-success)}}
1
+ @layer components{._root_whyv1_2{position:relative;gap:var(--components-dimensions-stepper-gap-content);padding-block:var(--components-dimensions-stepper-padding-block);padding-inline:var(--components-dimensions-stepper-padding-inline);border-width:var(--components-dimensions-stepper-border-width-default);border-radius:var(--components-dimensions-stepper-border-radius);border-color:var(--stepperBorderColor, var(--components-colors-stepper-color-border-default));background-color:var(--components-colors-stepper-color-background);transition-duration:var(--duration-fast);box-shadow:var(--stepperBoxShadow, var(--elevation-10));overflow:hidden}._wrapper_whyv1_16{display:flex;align-items:center;overflow-x:auto;border-style:solid;transition-property:border-color,box-shadow;transition-timing-function:ease-in-out}._wrapper_whyv1_16 svg{width:var(--components-dimensions-stepper-size-icon);height:var(--components-dimensions-stepper-size-icon)}._wrapper_whyv1_16._fade-left_whyv1_28:before,._wrapper_whyv1_16._fade-right_whyv1_28:after{content:"";position:absolute;top:0;bottom:0;width:70px;pointer-events:none;z-index:1}._wrapper_whyv1_16._fade-left_whyv1_28:before{left:0;background:linear-gradient(to right,var(--components-colors-stepper-color-background),transparent)}._wrapper_whyv1_16._fade-right_whyv1_28:after{right:0;background:linear-gradient(to left,var(--components-colors-stepper-color-background),transparent)}._wrapper_whyv1_16:hover{--stepperBorderColor: var(--components-colors-stepper-color-border-hover);--stepperBoxShadow: var(--elevation-20)}._separator_whyv1_49{flex-shrink:0;color:var(--components-colors-stepper-color-icon-default)}._item_whyv1_53{display:flex;align-items:center;flex-shrink:0;transition-property:background-color,border-color,color;transition-timing-function:ease-in-out;gap:var(--components-dimensions-stepper-step-gap-content);padding-block:var(--components-dimensions-stepper-step-padding-block);padding-inline:var(--components-dimensions-stepper-step-padding-inline);border-width:var(--components-dimensions-stepper-step-border-width-active);border-radius:var(--components-dimensions-stepper-step-border-radius);transition-duration:var(--duration-medium);background-color:var(--stepperItemBackgroundColor, var(--components-colors-stepper-step-color-background-unchecked-default));border-color:var(--stepperItemBorderColor, transparent);color:var(--stepperItemColor, var(--components-colors-stepper-step-color-text-unchecked-default))}._item_whyv1_53 svg{width:var(--components-dimensions-stepper-step-size-icon);height:var(--components-dimensions-stepper-step-size-icon);color:var(--stepperItemIconColor, var(--components-colors-stepper-step-color-icon-unchecked-default))}._item_whyv1_53[aria-current=true]{--stepperItemColor: var(--components-colors-stepper-step-color-text-checked-default);--stepperItemBorderColor: var(--components-colors-stepper-step-color-border-checked-default);--stepperItemBackgroundColor: var( --components-colors-stepper-step-color-background-checked-default )}._item_whyv1_53[aria-current=true] svg{--stepperItemIconColor: var(--components-colors-stepper-step-color-icon-checked-default)}._item_whyv1_53._clickable_whyv1_87{cursor:pointer}._item_whyv1_53._clickable_whyv1_87:hover{--stepperItemColor: var(--components-colors-stepper-step-color-text-unchecked-hover);--stepperItemBackgroundColor: var( --components-colors-stepper-step-color-background-checked-hover )}._item_whyv1_53._clickable_whyv1_87:hover:not(._completed_whyv1_96) svg{--stepperItemIconColor: var( --components-colors-stepper-step-color-icon-unchecked-hover )}._item_whyv1_53._clickable_whyv1_87[aria-current=true]{--stepperItemColor: var(--components-colors-stepper-step-color-text-checked-default);--stepperItemBackgroundColor: var( --components-colors-stepper-step-color-background-checked-default );--stepperItemBorderColor: var( --components-colors-stepper-step-color-border-checked-default )}._item_whyv1_53._clickable_whyv1_87[aria-current=true]:hover{--stepperItemBackgroundColor: var( --components-colors-stepper-step-color-background-checked-hover );--stepperItemBorderColor: var( --components-colors-stepper-step-color-border-checked-hover )}._item_whyv1_53._clickable_whyv1_87[aria-current=true]:not(._completed_whyv1_96) svg{--stepperItemIconColor: var(--components-colors-stepper-step-color-icon-checked-hover)}._item_whyv1_53._completed_whyv1_96 svg{--stepperItemIconColor: var(--components-colors-stepper-step-color-icon-success)}}
package/dist/Stepper.js CHANGED
@@ -1,50 +1,85 @@
1
1
  "use client";
2
2
  import './Stepper.css';
3
- import { jsx as e, jsxs as _ } from "react/jsx-runtime";
4
- import { forwardRef as d } from "react";
5
- import { Icon as a } from "./Icon.js";
6
- import { c as u } from "./index-PAaZGbyz.js";
7
- import { Text as f } from "./Text.js";
8
- const b = "_root_1wnun_2", N = "_separator_1wnun_28", S = "_item_1wnun_31", k = "_clickable_1wnun_64", w = "_completed_1wnun_73", g = {
9
- root: b,
10
- separator: N,
11
- item: S,
12
- clickable: k,
13
- completed: w
3
+ import { jsx as t, jsxs as N } from "react/jsx-runtime";
4
+ import { forwardRef as k, useState as _, useRef as R, useEffect as u } from "react";
5
+ import { Icon as i } from "./Icon.js";
6
+ import { c as I } from "./index-PAaZGbyz.js";
7
+ import { Text as x } from "./Text.js";
8
+ const L = "_root_whyv1_2", F = "_wrapper_whyv1_16", j = "_separator_whyv1_49", z = "_item_whyv1_53", E = "_clickable_whyv1_87", O = "_completed_whyv1_96", W = {
9
+ root: L,
10
+ wrapper: F,
11
+ "fade-left": "_fade-left_whyv1_28",
12
+ "fade-right": "_fade-right_whyv1_28",
13
+ separator: j,
14
+ item: z,
15
+ clickable: E,
16
+ completed: O
14
17
  };
15
- function x({
16
- icon: t,
17
- isCompleted: o,
18
- isOpen: r
18
+ function q({
19
+ icon: r,
20
+ isCompleted: c,
21
+ isOpen: s
19
22
  }) {
20
- return t || (o ? /* @__PURE__ */ e(a, { name: "check-circle" }) : r ? /* @__PURE__ */ e(a, { name: "folder-open" }) : /* @__PURE__ */ e(a, { name: "folder" }));
23
+ return r || (c ? /* @__PURE__ */ t(i, { name: "check-circle" }) : s ? /* @__PURE__ */ t(i, { name: "folder-open" }) : /* @__PURE__ */ t(i, { name: "folder" }));
21
24
  }
22
- const n = u(g), l = d(
23
- ({ children: t, className: o }, r) => /* @__PURE__ */ e("ol", { className: n("root", o), ref: r, children: t })
25
+ const p = I(W), w = k(
26
+ ({ children: r, className: c }, s) => {
27
+ const [a, l] = _(!1), [m, f] = _(!1), y = R(null), n = s || y;
28
+ return u(() => {
29
+ const e = n.current;
30
+ if (!e) return;
31
+ const o = () => {
32
+ const { clientWidth: S, scrollLeft: h, scrollWidth: g } = e;
33
+ l(h > 0), f(h < g - S - 1);
34
+ };
35
+ o(), e.addEventListener("scroll", o);
36
+ const d = new ResizeObserver(o);
37
+ return d.observe(e), () => {
38
+ e.removeEventListener("scroll", o), d.disconnect();
39
+ };
40
+ }, [n]), u(() => {
41
+ const e = n.current;
42
+ if (!e) return;
43
+ const o = e.querySelector('[aria-current="true"]');
44
+ o && o.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
45
+ }, [r, n]), /* @__PURE__ */ t("div", { className: p("root"), children: /* @__PURE__ */ t(
46
+ "ol",
47
+ {
48
+ className: p(
49
+ "wrapper",
50
+ c,
51
+ a && "fade-left",
52
+ m && "fade-right"
53
+ ),
54
+ ref: n,
55
+ children: r
56
+ }
57
+ ) });
58
+ }
24
59
  );
25
- l.displayName = "Stepper";
26
- const m = () => /* @__PURE__ */ e("div", { className: n("separator"), children: /* @__PURE__ */ e(a, { name: "angle-right-b", size: "lg" }) });
27
- m.displayName = "Stepper.Separator";
28
- const i = ({ children: t, icon: o, isCompleted: r, isOpen: c, onClick: s }) => {
29
- const p = x({ icon: o, isCompleted: r, isOpen: c });
30
- return /* @__PURE__ */ _(
60
+ w.displayName = "Stepper";
61
+ const v = () => /* @__PURE__ */ t("div", { className: p("separator"), children: /* @__PURE__ */ t(i, { name: "angle-right-b", size: "lg" }) });
62
+ v.displayName = "Stepper.Separator";
63
+ const b = ({ children: r, icon: c, isCompleted: s, isOpen: a, onClick: l }) => {
64
+ const m = q({ icon: c, isCompleted: s, isOpen: a });
65
+ return /* @__PURE__ */ N(
31
66
  "li",
32
67
  {
33
- "aria-current": c,
34
- className: n("item", !!s && "clickable", r && "completed"),
35
- onClick: s,
68
+ "aria-current": a,
69
+ className: p("item", !!l && "clickable", s && "completed"),
70
+ onClick: l,
36
71
  children: [
37
- p,
38
- /* @__PURE__ */ e(f, { variant: "label-md", children: t })
72
+ m,
73
+ /* @__PURE__ */ t(x, { variant: "label-md", children: r })
39
74
  ]
40
75
  }
41
76
  );
42
77
  };
43
- i.displayName = "Stepper.Item";
44
- const B = Object.assign(l, {
45
- Item: i,
46
- Separator: m
78
+ b.displayName = "Stepper.Item";
79
+ const D = Object.assign(w, {
80
+ Item: b,
81
+ Separator: v
47
82
  });
48
83
  export {
49
- B as Stepper
84
+ D as Stepper
50
85
  };
package/dist/Tabs.js CHANGED
@@ -1,33 +1,33 @@
1
1
  "use client";
2
2
  import './Tabs.css';
3
- import { jsx as _, jsxs as K } from "react/jsx-runtime";
4
- import { T as U, a as q, b as D } from "./tab-panel-B8NigruF.js";
5
- import G, { createContext as V, useMemo as H, forwardRef as M, cloneElement as J, isValidElement as Q } from "react";
6
- import { c as $ } from "./index-PAaZGbyz.js";
7
- import { m as X, o as y, c as Y, s as x, d as m, f as Z, u as w, a as E, b as A } from "./RTNCFSKZ-BywELldk.js";
3
+ import { jsx as I, jsxs as W } from "react/jsx-runtime";
4
+ import { T as K, a as U, b as D } from "./tab-panel-B8NigruF.js";
5
+ import G, { createContext as N, useMemo as H, forwardRef as O, cloneElement as J, isValidElement as Q } from "react";
6
+ import { c as V } from "./index-PAaZGbyz.js";
7
+ import { m as X, o as P, c as Y, s as k, d as m, f as Z, u as M, a as T, b as A } from "./RTNCFSKZ-BywELldk.js";
8
8
  import { Badge as ee } from "./Badge.js";
9
9
  import { f as te } from "./forwardRefWithAs-8eP3ZN15.js";
10
- import { Icon as oe } from "./Icon.js";
11
- import { P as se, b as ae } from "./Y67KZUMI-BwLWwpNF.js";
12
- import { C as ne, a as re } from "./SBSPVDDI-CmtnvvUX.js";
13
- import { e as ce, M as de, A as P, z as S, B as v, V as O, d as z, a as B, C as N } from "./OE2EFRVA-Dg1R6gaC.js";
14
- import { c as le, a as ie, u as ue } from "./B7UTNDHN-DDN2hpM5.js";
10
+ import { Icon as ae } from "./Icon.js";
11
+ import { P as oe, b as se } from "./Y67KZUMI-BwLWwpNF.js";
12
+ import { C as re, a as ne } from "./SBSPVDDI-CmtnvvUX.js";
13
+ import { e as le, M as ce, A as w, z as v, B as x, V as z, d as $, a as j, C as E } from "./OE2EFRVA-Dg1R6gaC.js";
14
+ import { c as ie, a as de, u as ue } from "./B7UTNDHN-DDN2hpM5.js";
15
15
  import { a as me } from "./OLVWQA7U-UYYsJnlv.js";
16
- var be = ce(
17
- [ae, re],
18
- [se, ne]
19
- ), fe = be.useContext;
20
- V(!1);
21
- V(null);
22
- function pe(e = {}) {
23
- var r = e, {
16
+ var be = le(
17
+ [se, ne],
18
+ [oe, re]
19
+ ), pe = be.useContext;
20
+ N(!1);
21
+ N(null);
22
+ function ge(e = {}) {
23
+ var n = e, {
24
24
  composite: t,
25
- combobox: c
26
- } = r, s = de(r, [
25
+ combobox: l
26
+ } = n, o = ce(n, [
27
27
  "composite",
28
28
  "combobox"
29
29
  ]);
30
- const p = [
30
+ const g = [
31
31
  "items",
32
32
  "renderedItems",
33
33
  "moves",
@@ -38,145 +38,465 @@ function pe(e = {}) {
38
38
  "focusLoop",
39
39
  "focusShift",
40
40
  "focusWrap"
41
- ], l = X(
42
- s.store,
43
- y(t, p),
44
- y(c, p)
45
- ), n = l == null ? void 0 : l.getState(), i = le(P(v({}, s), {
46
- store: l,
41
+ ], i = X(
42
+ o.store,
43
+ P(t, g),
44
+ P(l, g)
45
+ ), r = i == null ? void 0 : i.getState(), d = ie(w(x({}, o), {
46
+ store: i,
47
47
  // We need to explicitly set the default value of `includesBaseElement` to
48
48
  // `false` since we don't want the composite store to default it to `true`
49
49
  // when the activeId state is null, which could be the case when rendering
50
50
  // combobox with tab.
51
- includesBaseElement: S(
52
- s.includesBaseElement,
53
- n == null ? void 0 : n.includesBaseElement,
51
+ includesBaseElement: v(
52
+ o.includesBaseElement,
53
+ r == null ? void 0 : r.includesBaseElement,
54
54
  !1
55
55
  ),
56
- orientation: S(
57
- s.orientation,
58
- n == null ? void 0 : n.orientation,
56
+ orientation: v(
57
+ o.orientation,
58
+ r == null ? void 0 : r.orientation,
59
59
  "horizontal"
60
60
  ),
61
- focusLoop: S(s.focusLoop, n == null ? void 0 : n.focusLoop, !0)
62
- })), g = ie(), k = P(v({}, i.getState()), {
63
- selectedId: S(
64
- s.selectedId,
65
- n == null ? void 0 : n.selectedId,
66
- s.defaultSelectedId
61
+ focusLoop: v(o.focusLoop, r == null ? void 0 : r.focusLoop, !0)
62
+ })), h = de(), y = w(x({}, d.getState()), {
63
+ selectedId: v(
64
+ o.selectedId,
65
+ r == null ? void 0 : r.selectedId,
66
+ o.defaultSelectedId
67
67
  ),
68
- selectOnMove: S(
69
- s.selectOnMove,
70
- n == null ? void 0 : n.selectOnMove,
68
+ selectOnMove: v(
69
+ o.selectOnMove,
70
+ r == null ? void 0 : r.selectOnMove,
71
71
  !0
72
72
  )
73
- }), o = Y(k, i, l);
74
- x(
75
- o,
76
- () => m(o, ["moves"], () => {
77
- const { activeId: a, selectOnMove: d } = o.getState();
78
- if (!d || !a) return;
79
- const u = i.item(a);
80
- u && (u.dimmed || u.disabled || o.setState("selectedId", u.id));
73
+ }), a = Y(y, d, i);
74
+ k(
75
+ a,
76
+ () => m(a, ["moves"], () => {
77
+ const { activeId: s, selectOnMove: c } = a.getState();
78
+ if (!c || !s) return;
79
+ const u = d.item(s);
80
+ u && (u.dimmed || u.disabled || a.setState("selectedId", u.id));
81
81
  })
82
82
  );
83
- let I = !0;
84
- x(
85
- o,
86
- () => Z(o, ["selectedId"], (a, d) => {
87
- if (!I) {
88
- I = !0;
83
+ let f = !0;
84
+ k(
85
+ a,
86
+ () => Z(a, ["selectedId"], (s, c) => {
87
+ if (!f) {
88
+ f = !0;
89
89
  return;
90
90
  }
91
- t && a.selectedId === d.selectedId || o.setState("activeId", a.selectedId);
91
+ t && s.selectedId === c.selectedId || a.setState("activeId", s.selectedId);
92
92
  })
93
- ), x(
94
- o,
95
- () => m(o, ["selectedId", "renderedItems"], (a) => {
96
- if (a.selectedId !== void 0) return;
97
- const { activeId: d, renderedItems: u } = o.getState(), b = i.item(d);
93
+ ), k(
94
+ a,
95
+ () => m(a, ["selectedId", "renderedItems"], (s) => {
96
+ if (s.selectedId !== void 0) return;
97
+ const { activeId: c, renderedItems: u } = a.getState(), b = d.item(c);
98
98
  if (b && !b.disabled && !b.dimmed)
99
- o.setState("selectedId", b.id);
99
+ a.setState("selectedId", b.id);
100
100
  else {
101
- const h = u.find(
102
- (f) => !f.disabled && !f.dimmed
101
+ const _ = u.find(
102
+ (p) => !p.disabled && !p.dimmed
103
103
  );
104
- o.setState("selectedId", h == null ? void 0 : h.id);
104
+ a.setState("selectedId", _ == null ? void 0 : _.id);
105
105
  }
106
106
  })
107
- ), x(
108
- o,
109
- () => m(o, ["renderedItems"], (a) => {
110
- const d = a.renderedItems;
111
- if (d.length)
112
- return m(g, ["renderedItems"], (u) => {
107
+ ), k(
108
+ a,
109
+ () => m(a, ["renderedItems"], (s) => {
110
+ const c = s.renderedItems;
111
+ if (c.length)
112
+ return m(h, ["renderedItems"], (u) => {
113
113
  const b = u.renderedItems;
114
- b.some((f) => !f.tabId) && b.forEach((f, F) => {
115
- if (f.tabId) return;
116
- const T = d[F];
117
- T && g.renderItem(P(v({}, f), { tabId: T.id }));
114
+ b.some((p) => !p.tabId) && b.forEach((p, F) => {
115
+ if (p.tabId) return;
116
+ const C = c[F];
117
+ C && h.renderItem(w(x({}, p), { tabId: C.id }));
118
118
  });
119
119
  });
120
120
  })
121
121
  );
122
- let C = null;
123
- return x(o, () => {
124
- const a = () => {
125
- C = o.getState().selectedId;
126
- }, d = () => {
127
- I = !1, o.setState("selectedId", C);
122
+ let S = null;
123
+ return k(a, () => {
124
+ const s = () => {
125
+ S = a.getState().selectedId;
126
+ }, c = () => {
127
+ f = !1, a.setState("selectedId", S);
128
128
  };
129
129
  if (t && "setSelectElement" in t)
130
- return O(
131
- m(t, ["value"], a),
132
- m(t, ["mounted"], d)
130
+ return z(
131
+ m(t, ["value"], s),
132
+ m(t, ["mounted"], c)
133
133
  );
134
- if (c)
135
- return O(
136
- m(c, ["selectedValue"], a),
137
- m(c, ["mounted"], d)
134
+ if (l)
135
+ return z(
136
+ m(l, ["selectedValue"], s),
137
+ m(l, ["mounted"], c)
138
138
  );
139
- }), P(v(v({}, i), o), {
140
- panels: g,
141
- setSelectedId: (a) => o.setState("selectedId", a),
142
- select: (a) => {
143
- o.setState("selectedId", a), i.move(a);
139
+ }), w(x(x({}, d), a), {
140
+ panels: h,
141
+ setSelectedId: (s) => a.setState("selectedId", s),
142
+ select: (s) => {
143
+ a.setState("selectedId", s), d.move(s);
144
144
  }
145
145
  });
146
146
  }
147
- function Ie(e, r, t) {
148
- N(r, [t.composite, t.combobox]), e = ue(e, r, t), E(e, t, "selectedId", "setSelectedId"), E(e, t, "selectOnMove");
149
- const [c, s] = w(() => e.panels, {});
150
- return N(s, [e, s]), Object.assign(
151
- H(() => z(B({}, e), { panels: c }), [e, c]),
147
+ function fe(e, n, t) {
148
+ E(n, [t.composite, t.combobox]), e = ue(e, n, t), T(e, t, "selectedId", "setSelectedId"), T(e, t, "selectOnMove");
149
+ const [l, o] = M(() => e.panels, {});
150
+ return E(o, [e, o]), Object.assign(
151
+ H(() => $(j({}, e), { panels: l }), [e, l]),
152
152
  { composite: t.composite, combobox: t.combobox }
153
153
  );
154
154
  }
155
- function we(e = {}) {
156
- const r = me(), t = fe() || r;
157
- e = z(B({}, e), {
155
+ function He(e = {}) {
156
+ const n = me(), t = pe() || n;
157
+ e = $(j({}, e), {
158
158
  composite: e.composite !== void 0 ? e.composite : t,
159
- combobox: e.combobox !== void 0 ? e.combobox : r
159
+ combobox: e.combobox !== void 0 ? e.combobox : n
160
160
  });
161
- const [c, s] = w(pe, e);
162
- return Ie(c, s, e);
161
+ const [l, o] = M(ge, e);
162
+ return fe(l, o, e);
163
163
  }
164
- const ge = "_root_peui8_2", j = {
165
- root: ge,
164
+ const he = "_root_peui8_2", B = {
165
+ root: he,
166
166
  "size-lg": "_size-lg_peui8_56",
167
167
  "size-md": "_size-md_peui8_63",
168
168
  "tab-list": "_tab-list_peui8_73"
169
- };
170
- function xe({
169
+ }, ke = [
170
+ "angle-left-b",
171
+ "angle-right-b",
172
+ "angle-up",
173
+ "angle-down",
174
+ "arrow-left",
175
+ "arrow-right",
176
+ "arrow-up",
177
+ "arrow-down",
178
+ "left-arrow-to-left",
179
+ "arrow-to-right",
180
+ "top-arrow-to-top",
181
+ "arrow-to-bottom",
182
+ "angle-double-left",
183
+ "angle-double-right",
184
+ "angle-left",
185
+ "angle-right"
186
+ ], ve = [
187
+ "asterisk",
188
+ "info-circle",
189
+ "chart-line",
190
+ "plus",
191
+ "chart-line",
192
+ "archive-alt",
193
+ "arrows-merge-v",
194
+ // (not unicons, personal mashup)
195
+ "arrows-shrink-v",
196
+ "apps",
197
+ "edit",
198
+ "user-check",
199
+ "user-plus",
200
+ "user-times",
201
+ "check",
202
+ "times",
203
+ "trash",
204
+ "import",
205
+ "upload",
206
+ "draggable-dots",
207
+ "copy",
208
+ "pen",
209
+ "left-arrow-from-left",
210
+ "arrow-from-right",
211
+ "resize-handle",
212
+ // (not unicons)
213
+ "arrow-resize-diagonal",
214
+ "draggabledots",
215
+ "compress-alt",
216
+ "external-link-alt",
217
+ "heart-solid",
218
+ "heart",
219
+ "filter",
220
+ "eye",
221
+ "eye-slash",
222
+ "link",
223
+ "sign-out-alt",
224
+ "bars",
225
+ "ellipsis-v",
226
+ "ellipsis-h",
227
+ "move-arrow",
228
+ // (not unicons)
229
+ "bell",
230
+ "print",
231
+ "bolt-alt",
232
+ "redo",
233
+ "save",
234
+ "search",
235
+ "setting",
236
+ "share-alt",
237
+ "share"
238
+ ], xe = ["chat", "chat-bubble-user", "comment", "comment-alt-lines"], Ie = [
239
+ "music",
240
+ "rocket",
241
+ "file-alt",
242
+ "user-square",
243
+ "book-reader",
244
+ "file-question-alt",
245
+ "sad-solid",
246
+ "smile-beam-solid",
247
+ "sad",
248
+ "smile-beam",
249
+ "sign-right",
250
+ "exclamation-triangle",
251
+ "exclamation-circle",
252
+ "exclamation-octagon",
253
+ "chart-pie",
254
+ "paperclip",
255
+ "chart-bar",
256
+ "fire",
257
+ "user-check",
258
+ "apps",
259
+ "trophy",
260
+ "bookmark-solid",
261
+ "bookmark",
262
+ "clock",
263
+ "comment-alt-lines",
264
+ "file-edit-alt",
265
+ "illustration",
266
+ "calendar",
267
+ "users-alt",
268
+ "globe",
269
+ "graduation-cap",
270
+ "envelope",
271
+ "equal-circle",
272
+ "minus",
273
+ "venus",
274
+ "mars",
275
+ "estate",
276
+ "info-circle",
277
+ "columns",
278
+ "english-to-chinese",
279
+ "bag-alt",
280
+ "chart-line",
281
+ "map-marker-alt",
282
+ "lock-alt",
283
+ "flag",
284
+ // (not unicons)
285
+ "at",
286
+ "user",
287
+ "user-circle",
288
+ "clipboard-check",
289
+ // (not unicons, personal mashup)
290
+ "building",
291
+ "compass",
292
+ "phone",
293
+ "pin",
294
+ // (not unicons)
295
+ "microphone",
296
+ "user-search",
297
+ // (not unicons, personal mashup)
298
+ "house-user",
299
+ "star-solid",
300
+ "star",
301
+ "coins",
302
+ "euro-circle",
303
+ "file-search-alt",
304
+ "question-circle",
305
+ "gift",
306
+ "birthday-cake",
307
+ // (not unicons)
308
+ "bunting-flags",
309
+ // (not unicons)
310
+ "tag-alt",
311
+ "tablet",
312
+ "mobile",
313
+ "video",
314
+ "plus-circle",
315
+ "pen",
316
+ "check-circle",
317
+ "certified",
318
+ // (not unicons, personal mashup)
319
+ "plug"
320
+ ], Se = [
321
+ "play",
322
+ "stop-circle-solid",
323
+ "pause-circle-solid",
324
+ "previous",
325
+ "step-forward",
326
+ "expand-arrows-alt",
327
+ "compress-arrows",
328
+ "screen-share",
329
+ // (not unicons)
330
+ "stop-screen-share",
331
+ // (not unicons)
332
+ "microphone",
333
+ "microphone-slash",
334
+ "cast",
335
+ // (not unicons)
336
+ "cast-connected",
337
+ // (not unicons, personal mashup)
338
+ "cast-unavailable",
339
+ // (not unicons, personal mashup)
340
+ "video",
341
+ "video-slash",
342
+ "airplay",
343
+ "history",
344
+ "playlist",
345
+ // (not unicons)
346
+ "volume-up",
347
+ "volume-mute",
348
+ "closed-captioning"
349
+ ], we = [
350
+ "icons",
351
+ "package",
352
+ "basketball",
353
+ "bill",
354
+ "book-alt",
355
+ "lightbulb-alt",
356
+ "life-ring",
357
+ "calculator-alt",
358
+ "camera",
359
+ "shopping-cart",
360
+ "clipboard-notes",
361
+ "coffee",
362
+ "ruler",
363
+ "desktop",
364
+ "hard-hat",
365
+ "credit-card",
366
+ "moon-solid",
367
+ "moon",
368
+ "crosshair",
369
+ "crown",
370
+ // (not unicons)
371
+ "restaurant",
372
+ "diamond",
373
+ "industry",
374
+ // (not unicons)
375
+ "fingerprint",
376
+ // (not unicons)
377
+ "flag",
378
+ "flag-solid",
379
+ // (not unicons, personal mashup)
380
+ "setting",
381
+ "handshake",
382
+ "hashtag",
383
+ // (not unicons)
384
+ "headphones",
385
+ "heart",
386
+ "estate",
387
+ "balance-scale",
388
+ "key-skeleton",
389
+ "leaf",
390
+ // (not unicons)
391
+ "map",
392
+ "masonry",
393
+ // (not unicons, personal mashup)
394
+ "masonry-plus",
395
+ // (not unicons, personal mashup)
396
+ "megaphone",
397
+ "microphone",
398
+ "processor",
399
+ "euro-circle",
400
+ "mountains",
401
+ "pen",
402
+ "images",
403
+ "chart-pie-alt",
404
+ "pizza-slice",
405
+ "puzzle-piece-solid",
406
+ "puzzle-piece",
407
+ "shield",
408
+ "wrench",
409
+ "sparkles",
410
+ // (not unicons)
411
+ "server",
412
+ "sun",
413
+ "hunting",
414
+ "thumbs-up",
415
+ "thumbs-down",
416
+ "trees",
417
+ "sofa",
418
+ // (not unicons)
419
+ "exit",
420
+ // (not unicons, personal mashup)
421
+ "redo",
422
+ "play",
423
+ "ban"
424
+ ], ye = ["folder", "folder-open", "folder-full", "file", "image"], _e = [
425
+ "bold",
426
+ "arrow",
427
+ "brackets-curly",
428
+ "italic",
429
+ "list-ol-alt",
430
+ "list-ul",
431
+ "quote",
432
+ // (not unicons)
433
+ "text-strike-through",
434
+ "heading",
435
+ // (not unicons, original creation)
436
+ "heading-1",
437
+ // (not unicons, original creation)
438
+ "heading-2",
439
+ // (not unicons, original creation)
440
+ "heading-3",
441
+ // (not unicons, original creation)
442
+ "heading-4",
443
+ // (not unicons, original creation)
444
+ "heading-5",
445
+ // (not unicons, original creation)
446
+ "heading-6",
447
+ // (not unicons, original creation)
448
+ "font",
449
+ "underline"
450
+ ], Ce = [
451
+ "behance",
452
+ "dribbble",
453
+ "facebook",
454
+ "github",
455
+ "google",
456
+ "instagram",
457
+ "linkedin",
458
+ "npm",
459
+ // (not unicons)
460
+ "pinterest",
461
+ // (not unicons)
462
+ "slack",
463
+ "stackoverflow",
464
+ // (not unicons)
465
+ "tiktok",
466
+ "twitch",
467
+ // (not unicons)
468
+ "x",
469
+ // (not unicons)
470
+ "xing",
471
+ // (not unicons)
472
+ "youtube",
473
+ "zapier",
474
+ // (not unicons)
475
+ "medium"
476
+ // (not unicons)
477
+ ], Pe = ["symbol", "wttj"], Te = ["flag-fr", "flag-en", "flag-us"], ze = [
478
+ ...ve,
479
+ ...ke,
480
+ ...Ce,
481
+ ...xe,
482
+ ...ye,
483
+ ...Te,
484
+ ..._e,
485
+ ...Ie,
486
+ ...Se,
487
+ ...Pe,
488
+ ...we
489
+ ], Ee = (e) => ze.includes(e);
490
+ function Ne({
171
491
  icon: e,
172
- iconColor: r,
492
+ iconColor: n,
173
493
  isActive: t,
174
- size: c
494
+ size: l
175
495
  }) {
176
496
  if (!e) return null;
177
- if (typeof e != "string") return e;
178
- const s = (() => {
179
- switch (r) {
497
+ if (typeof e != "string" || !Ee(e)) return e;
498
+ const o = (() => {
499
+ switch (n) {
180
500
  case "blue":
181
501
  return t ? "text-background-accent-blue-strong" : "text-background-accent-blue-primary";
182
502
  case "green":
@@ -195,70 +515,70 @@ function xe({
195
515
  return "";
196
516
  }
197
517
  })();
198
- return /* @__PURE__ */ _(oe, { className: s, name: e, size: c });
518
+ return /* @__PURE__ */ I(ae, { className: o, name: e, size: l });
199
519
  }
200
- const Se = $(j), L = te(
520
+ const Oe = V(B), q = te(
201
521
  ({
202
522
  as: e,
203
- badge: r,
523
+ badge: n,
204
524
  children: t,
205
- className: c,
206
- icon: s,
207
- iconColor: p = "violet",
208
- id: l,
209
- size: n = "lg",
210
- store: i,
211
- ...g
212
- }, k) => {
213
- const { selectedId: o } = A(i), I = o === l, C = xe({
214
- icon: s,
215
- iconColor: p,
216
- isActive: I,
217
- size: n
218
- }), a = I ? "neutral" : "warm";
219
- return /* @__PURE__ */ K(
220
- U,
525
+ className: l,
526
+ icon: o,
527
+ iconColor: g = "violet",
528
+ id: i,
529
+ size: r = "lg",
530
+ store: d,
531
+ ...h
532
+ }, y) => {
533
+ const { selectedId: a } = A(d), f = a === i, S = Ne({
534
+ icon: o,
535
+ iconColor: g,
536
+ isActive: f,
537
+ size: r
538
+ }), s = f ? "neutral" : "warm";
539
+ return /* @__PURE__ */ W(
540
+ K,
221
541
  {
222
- className: Se("root", `size-${n}`, c),
223
- id: l,
224
- ref: k,
225
- render: e ? /* @__PURE__ */ _(e, {}) : void 0,
226
- store: i,
227
- ...g,
542
+ className: Oe("root", `size-${r}`, l),
543
+ id: i,
544
+ ref: y,
545
+ render: e ? /* @__PURE__ */ I(e, {}) : void 0,
546
+ store: d,
547
+ ...h,
228
548
  children: [
229
- C,
549
+ S,
230
550
  t,
231
- r ? /* @__PURE__ */ _(ee, { size: n, variant: a, children: r }) : null
551
+ n ? /* @__PURE__ */ I(ee, { size: r, variant: s, children: n }) : null
232
552
  ]
233
553
  }
234
554
  );
235
555
  }
236
556
  );
237
- L.displayName = "Tabs.Tab";
238
- const R = M(({ children: e, ...r }, t) => /* @__PURE__ */ _(q, { ref: t, ...r, children: e }));
239
- R.displayName = "Tabs.Panel";
240
- const ve = $(j), W = M(
241
- ({ children: e, className: r, size: t = "lg", store: c, ...s }, p) => {
242
- const l = G.Children.map(
557
+ q.displayName = "Tabs.Tab";
558
+ const L = O(({ children: e, ...n }, t) => /* @__PURE__ */ I(U, { ref: t, ...n, children: e }));
559
+ L.displayName = "Tabs.Panel";
560
+ const Ve = V(B), R = O(
561
+ ({ children: e, className: n, size: t = "lg", store: l, ...o }, g) => {
562
+ const i = G.Children.map(
243
563
  e,
244
- (n) => Q(n) ? J(n, { size: t }) : n
564
+ (r) => Q(r) ? J(r, { size: t }) : r
245
565
  );
246
- return /* @__PURE__ */ _(
566
+ return /* @__PURE__ */ I(
247
567
  D,
248
568
  {
249
- className: ve("tab-list", `size-${t}`, r),
250
- ref: p,
251
- store: c,
252
- ...s,
253
- children: l
569
+ className: Ve("tab-list", `size-${t}`, n),
570
+ ref: g,
571
+ store: l,
572
+ ...o,
573
+ children: i
254
574
  }
255
575
  );
256
576
  }
257
577
  );
258
- W.displayName = "Tabs";
259
- const ze = Object.assign(W, { Panel: R, Tab: L });
578
+ R.displayName = "Tabs";
579
+ const Je = Object.assign(R, { Panel: L, Tab: q });
260
580
  export {
261
- ze as Tabs,
262
- W as TabsComponent,
263
- we as useTab
581
+ Je as Tabs,
582
+ R as TabsComponent,
583
+ He as useTab
264
584
  };
@@ -1,12 +1,13 @@
1
1
  export declare const arrows: readonly ["angle-left-b", "angle-right-b", "angle-up", "angle-down", "arrow-left", "arrow-right", "arrow-up", "arrow-down", "left-arrow-to-left", "arrow-to-right", "top-arrow-to-top", "arrow-to-bottom", "angle-double-left", "angle-double-right", "angle-left", "angle-right"];
2
2
  export declare const actions: readonly ["asterisk", "info-circle", "chart-line", "plus", "chart-line", "archive-alt", "arrows-merge-v", "arrows-shrink-v", "apps", "edit", "user-check", "user-plus", "user-times", "check", "times", "trash", "import", "upload", "draggable-dots", "copy", "pen", "left-arrow-from-left", "arrow-from-right", "resize-handle", "arrow-resize-diagonal", "draggabledots", "compress-alt", "external-link-alt", "heart-solid", "heart", "filter", "eye", "eye-slash", "link", "sign-out-alt", "bars", "ellipsis-v", "ellipsis-h", "move-arrow", "bell", "print", "bolt-alt", "redo", "save", "search", "setting", "share-alt", "share"];
3
- export declare const chat: string[];
3
+ export declare const chat: readonly ["chat", "chat-bubble-user", "comment", "comment-alt-lines"];
4
4
  export declare const miscellaneous: readonly ["music", "rocket", "file-alt", "user-square", "book-reader", "file-question-alt", "sad-solid", "smile-beam-solid", "sad", "smile-beam", "sign-right", "exclamation-triangle", "exclamation-circle", "exclamation-octagon", "chart-pie", "paperclip", "chart-bar", "fire", "user-check", "apps", "trophy", "bookmark-solid", "bookmark", "clock", "comment-alt-lines", "file-edit-alt", "illustration", "calendar", "users-alt", "globe", "graduation-cap", "envelope", "equal-circle", "minus", "venus", "mars", "estate", "info-circle", "columns", "english-to-chinese", "bag-alt", "chart-line", "map-marker-alt", "lock-alt", "flag", "at", "user", "user-circle", "clipboard-check", "building", "compass", "phone", "pin", "microphone", "user-search", "house-user", "star-solid", "star", "coins", "euro-circle", "file-search-alt", "question-circle", "gift", "birthday-cake", "bunting-flags", "tag-alt", "tablet", "mobile", "video", "plus-circle", "pen", "check-circle", "certified", "plug"];
5
5
  export declare const player: readonly ["play", "stop-circle-solid", "pause-circle-solid", "previous", "step-forward", "expand-arrows-alt", "compress-arrows", "screen-share", "stop-screen-share", "microphone", "microphone-slash", "cast", "cast-connected", "cast-unavailable", "video", "video-slash", "airplay", "history", "playlist", "volume-up", "volume-mute", "closed-captioning"];
6
- export declare const wtf: readonly ["icons", "package", "basketball", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
6
+ export declare const wtf: readonly ["icons", "package", "basketball", "bill", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
7
7
  export declare const foldersAndFiles: readonly ["folder", "folder-open", "folder-full", "file", "image"];
8
8
  export declare const markdown: readonly ["bold", "arrow", "brackets-curly", "italic", "list-ol-alt", "list-ul", "quote", "text-strike-through", "heading", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6", "font", "underline"];
9
- export declare const brands: readonly ["behance", "dribbble", "facebook", "github", "google", "instagram", "linkedin", "npm", "pinterest", "slack", "stackoverflow", "tiktok", "twitch", "x", "xing", "youtube", "zapier"];
9
+ export declare const brands: readonly ["behance", "dribbble", "facebook", "github", "google", "instagram", "linkedin", "npm", "pinterest", "slack", "stackoverflow", "tiktok", "twitch", "x", "xing", "youtube", "zapier", "medium"];
10
10
  export declare const welcome: readonly ["symbol", "wttj"];
11
11
  export declare const flags: readonly ["flag-fr", "flag-en", "flag-us"];
12
- export declare const icons: readonly ["asterisk", "info-circle", "chart-line", "plus", "chart-line", "archive-alt", "arrows-merge-v", "arrows-shrink-v", "apps", "edit", "user-check", "user-plus", "user-times", "check", "times", "trash", "import", "upload", "draggable-dots", "copy", "pen", "left-arrow-from-left", "arrow-from-right", "resize-handle", "arrow-resize-diagonal", "draggabledots", "compress-alt", "external-link-alt", "heart-solid", "heart", "filter", "eye", "eye-slash", "link", "sign-out-alt", "bars", "ellipsis-v", "ellipsis-h", "move-arrow", "bell", "print", "bolt-alt", "redo", "save", "search", "setting", "share-alt", "share", "angle-left-b", "angle-right-b", "angle-up", "angle-down", "arrow-left", "arrow-right", "arrow-up", "arrow-down", "left-arrow-to-left", "arrow-to-right", "top-arrow-to-top", "arrow-to-bottom", "angle-double-left", "angle-double-right", "angle-left", "angle-right", "behance", "dribbble", "facebook", "github", "google", "instagram", "linkedin", "npm", "pinterest", "slack", "stackoverflow", "tiktok", "twitch", "x", "xing", "youtube", "zapier", ...string[], "folder", "folder-open", "folder-full", "file", "image", "flag-fr", "flag-en", "flag-us", "bold", "arrow", "brackets-curly", "italic", "list-ol-alt", "list-ul", "quote", "text-strike-through", "heading", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6", "font", "underline", "music", "rocket", "file-alt", "user-square", "book-reader", "file-question-alt", "sad-solid", "smile-beam-solid", "sad", "smile-beam", "sign-right", "exclamation-triangle", "exclamation-circle", "exclamation-octagon", "chart-pie", "paperclip", "chart-bar", "fire", "user-check", "apps", "trophy", "bookmark-solid", "bookmark", "clock", "comment-alt-lines", "file-edit-alt", "illustration", "calendar", "users-alt", "globe", "graduation-cap", "envelope", "equal-circle", "minus", "venus", "mars", "estate", "info-circle", "columns", "english-to-chinese", "bag-alt", "chart-line", "map-marker-alt", "lock-alt", "flag", "at", "user", "user-circle", "clipboard-check", "building", "compass", "phone", "pin", "microphone", "user-search", "house-user", "star-solid", "star", "coins", "euro-circle", "file-search-alt", "question-circle", "gift", "birthday-cake", "bunting-flags", "tag-alt", "tablet", "mobile", "video", "plus-circle", "pen", "check-circle", "certified", "plug", "play", "stop-circle-solid", "pause-circle-solid", "previous", "step-forward", "expand-arrows-alt", "compress-arrows", "screen-share", "stop-screen-share", "microphone", "microphone-slash", "cast", "cast-connected", "cast-unavailable", "video", "video-slash", "airplay", "history", "playlist", "volume-up", "volume-mute", "closed-captioning", "symbol", "wttj", "icons", "package", "basketball", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
12
+ export declare const icons: readonly ["asterisk", "info-circle", "chart-line", "plus", "chart-line", "archive-alt", "arrows-merge-v", "arrows-shrink-v", "apps", "edit", "user-check", "user-plus", "user-times", "check", "times", "trash", "import", "upload", "draggable-dots", "copy", "pen", "left-arrow-from-left", "arrow-from-right", "resize-handle", "arrow-resize-diagonal", "draggabledots", "compress-alt", "external-link-alt", "heart-solid", "heart", "filter", "eye", "eye-slash", "link", "sign-out-alt", "bars", "ellipsis-v", "ellipsis-h", "move-arrow", "bell", "print", "bolt-alt", "redo", "save", "search", "setting", "share-alt", "share", "angle-left-b", "angle-right-b", "angle-up", "angle-down", "arrow-left", "arrow-right", "arrow-up", "arrow-down", "left-arrow-to-left", "arrow-to-right", "top-arrow-to-top", "arrow-to-bottom", "angle-double-left", "angle-double-right", "angle-left", "angle-right", "behance", "dribbble", "facebook", "github", "google", "instagram", "linkedin", "npm", "pinterest", "slack", "stackoverflow", "tiktok", "twitch", "x", "xing", "youtube", "zapier", "medium", "chat", "chat-bubble-user", "comment", "comment-alt-lines", "folder", "folder-open", "folder-full", "file", "image", "flag-fr", "flag-en", "flag-us", "bold", "arrow", "brackets-curly", "italic", "list-ol-alt", "list-ul", "quote", "text-strike-through", "heading", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6", "font", "underline", "music", "rocket", "file-alt", "user-square", "book-reader", "file-question-alt", "sad-solid", "smile-beam-solid", "sad", "smile-beam", "sign-right", "exclamation-triangle", "exclamation-circle", "exclamation-octagon", "chart-pie", "paperclip", "chart-bar", "fire", "user-check", "apps", "trophy", "bookmark-solid", "bookmark", "clock", "comment-alt-lines", "file-edit-alt", "illustration", "calendar", "users-alt", "globe", "graduation-cap", "envelope", "equal-circle", "minus", "venus", "mars", "estate", "info-circle", "columns", "english-to-chinese", "bag-alt", "chart-line", "map-marker-alt", "lock-alt", "flag", "at", "user", "user-circle", "clipboard-check", "building", "compass", "phone", "pin", "microphone", "user-search", "house-user", "star-solid", "star", "coins", "euro-circle", "file-search-alt", "question-circle", "gift", "birthday-cake", "bunting-flags", "tag-alt", "tablet", "mobile", "video", "plus-circle", "pen", "check-circle", "certified", "plug", "play", "stop-circle-solid", "pause-circle-solid", "previous", "step-forward", "expand-arrows-alt", "compress-arrows", "screen-share", "stop-screen-share", "microphone", "microphone-slash", "cast", "cast-connected", "cast-unavailable", "video", "video-slash", "airplay", "history", "playlist", "volume-up", "volume-mute", "closed-captioning", "symbol", "wttj", "icons", "package", "basketball", "bill", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
13
+ export declare const isValidIconName: (iconName: string) => iconName is (typeof icons)[number];
@@ -1,4 +1,4 @@
1
1
  import { TabProps } from './types';
2
2
  export declare function getIcon({ icon, iconColor, isActive, size, }: Pick<TabProps, 'icon' | 'iconColor' | 'size'> & {
3
3
  isActive: boolean;
4
- }): number | true | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element;
4
+ }): string | number | true | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "10.0.0-alpha.15",
3
+ "version": "10.0.0-alpha.17",
4
4
  "description": "Customizable design system with react, typescript, tailwindcss and ariakit.",
5
5
  "files": [
6
6
  "dist"