welcome-ui 1.0.0-beta.9 → 7.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AXB53BZF-DCqNWRx3.mjs → AXB53BZF-CGoc4K3d.mjs} +3 -3
- package/dist/{AXB53BZF-CAQ85RSy.js → AXB53BZF-KWM2jKTz.js} +1 -1
- package/dist/Accordion.js +3 -3
- package/dist/Accordion.mjs +11 -11
- package/dist/Alert.js +4 -4
- package/dist/Alert.mjs +29 -29
- package/dist/AspectRatio.js +1 -1
- package/dist/AspectRatio.mjs +5 -5
- package/dist/Avatar.js +3 -3
- package/dist/Avatar.mjs +8 -8
- package/dist/{BYC7LY2E-BE1a2svb.js → BYC7LY2E-BkAEL2VD.js} +1 -1
- package/dist/{BYC7LY2E-BNqcw1O8.mjs → BYC7LY2E-CVjUW1dr.mjs} +4 -4
- package/dist/Badge.js +1 -1
- package/dist/Badge.mjs +5 -5
- package/dist/Breadcrumb.js +54 -1
- package/dist/Breadcrumb.mjs +438 -8
- package/dist/Button.js +4 -4
- package/dist/Button.mjs +10 -10
- package/dist/ButtonGroup.js +1 -1
- package/dist/ButtonGroup.mjs +5 -5
- package/dist/Card.js +2 -2
- package/dist/Card.mjs +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/ClearButton.js +3 -3
- package/dist/ClearButton.mjs +10 -10
- package/dist/CloseButton.js +2 -2
- package/dist/CloseButton.mjs +6 -6
- package/dist/CustomInput-BCCxIle7.mjs +7826 -0
- package/dist/CustomInput-CDNZy-pz.js +1070 -0
- package/dist/DatePicker.js +1 -1
- package/dist/DatePicker.mjs +1 -1
- package/dist/DateTimePicker.js +1 -1
- package/dist/DateTimePicker.mjs +15 -15
- package/dist/DateTimePickerCommon.js +1 -1
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.js +64 -1
- package/dist/Drawer.mjs +266 -10
- package/dist/DropdownMenu.js +1 -1
- package/dist/DropdownMenu.mjs +9 -9
- package/dist/Field.js +2 -2
- package/dist/Field.mjs +10 -10
- package/dist/FieldGroup.js +1 -1
- package/dist/FieldGroup.mjs +8 -8
- package/dist/FileDrop.js +46 -1
- package/dist/FileDrop.mjs +2324 -8
- package/dist/FileUpload.js +2 -2
- package/dist/FileUpload.mjs +10 -10
- package/dist/Hint.js +1 -1
- package/dist/Hint.mjs +6 -6
- package/dist/{ITI7HKP4-Couz1Z73.mjs → ITI7HKP4-BONrZ9Pq.mjs} +3 -3
- package/dist/Icon.js +1 -1
- package/dist/Icon.mjs +5 -5
- package/dist/{index.js → Icons.js} +6 -23
- package/dist/{index.mjs → Icons.mjs} +1348 -3484
- package/dist/{IconFont.js → IconsFont.js} +1 -1
- package/dist/{IconFont.mjs → IconsFont.mjs} +2 -2
- package/dist/InputText.js +3 -3
- package/dist/InputText.mjs +14 -14
- package/dist/{JC64G2H7-HxATiU-t.mjs → JC64G2H7-Dey-8h60.mjs} +4 -4
- package/dist/{JC64G2H7-VmOGyhc1.js → JC64G2H7-YkBMNrtl.js} +1 -1
- package/dist/{KUU7WJ55-bC4FU_j7.mjs → KUU7WJ55-3sP-w1F1.mjs} +13 -13
- package/dist/{LVA2YJMS-Dm5ieEMw.mjs → LVA2YJMS-qFC9J-lt.mjs} +18 -18
- package/dist/Label.js +35 -1
- package/dist/Label.mjs +76 -7
- package/dist/Link.js +2 -2
- package/dist/Link.mjs +9 -9
- package/dist/Loader.js +3 -3
- package/dist/Loader.mjs +9 -9
- package/dist/Logo.js +3 -1
- package/dist/Logo.mjs +45 -5
- package/dist/{MTZPJQMC-D0pYOjc_.js → MTZPJQMC-5Xg78Uyy.js} +1 -1
- package/dist/MTZPJQMC-C0Xe_WK4.mjs +13 -0
- package/dist/Modal.js +5 -5
- package/dist/Modal.mjs +14 -14
- package/dist/{NLEBE274-FThuwZH_.mjs → NLEBE274-C94QU78N.mjs} +19 -19
- package/dist/{P2CTZE2T-5jxBu6ix.mjs → P2CTZE2T-YPes1GXe.mjs} +28 -28
- package/dist/{P4IRICAX-C0oIr4wI.mjs → P4IRICAX-DzXqUYe-.mjs} +10 -10
- package/dist/{P4IRICAX-t3xfwWga.js → P4IRICAX-nhgZ26A1.js} +1 -1
- package/dist/Pagination.js +3 -3
- package/dist/Pagination.mjs +10 -10
- package/dist/PasswordInput.js +1 -1
- package/dist/PasswordInput.mjs +53 -5
- package/dist/Picker.js +2 -2
- package/dist/Picker.mjs +13 -13
- package/dist/Popover.js +31 -1
- package/dist/Popover.mjs +141 -5
- package/dist/{QYJ6MIDR-YegHsExc.mjs → QYJ6MIDR-BLLqyXdd.mjs} +12 -12
- package/dist/{QYJ6MIDR-T-fJ_t8N.js → QYJ6MIDR-CRK3satR.js} +1 -1
- package/dist/Radio.js +3 -3
- package/dist/Radio.mjs +16 -16
- package/dist/RadioGroup.js +1 -1
- package/dist/RadioGroup.mjs +11 -11
- package/dist/RadioTab.js +4 -4
- package/dist/RadioTab.mjs +12 -12
- package/dist/{SYRFVSLH-Babm193P.js → SYRFVSLH-BpAfr7UE.js} +1 -1
- package/dist/{SYRFVSLH-DXZgEwus.mjs → SYRFVSLH-cVmYtx36.mjs} +6 -6
- package/dist/Search.js +8 -8
- package/dist/Search.mjs +46 -46
- package/dist/Select.js +122 -1
- package/dist/Select.mjs +1070 -11
- package/dist/Shape.js +3 -3
- package/dist/Shape.mjs +5 -5
- package/dist/Slider.js +1 -1
- package/dist/Slider.mjs +3 -3
- package/dist/Swiper.js +2 -2
- package/dist/Swiper.mjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/Table.mjs +1 -1
- package/dist/Tabs.js +8 -8
- package/dist/Tabs.mjs +178 -173
- package/dist/Tag.js +3 -3
- package/dist/Tag.mjs +10 -10
- package/dist/Text.js +1 -1
- package/dist/Text.mjs +4 -4
- package/dist/Textarea.js +1 -1
- package/dist/Textarea.mjs +9 -9
- package/dist/TimePicker.js +2 -2
- package/dist/TimePicker.mjs +11 -11
- package/dist/Toast.js +1 -1
- package/dist/Toast.mjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/Toggle.mjs +7 -7
- package/dist/Tooltip.js +1 -1
- package/dist/Tooltip.mjs +10 -10
- package/dist/UniversalLink.js +1 -1
- package/dist/UniversalLink.mjs +4 -4
- package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +20 -0
- package/dist/{VEVQD5MH-Cal9SWXl.js → VEVQD5MH-mN1wMozH.js} +1 -1
- package/dist/{VGCJ63VH-BqPfqkK_.mjs → VGCJ63VH-B39w1tBw.mjs} +19 -19
- package/dist/{VGCJ63VH-Cuf7P3qW.js → VGCJ63VH-BNLwLOaC.js} +1 -1
- package/dist/VariantIcon.js +8 -1
- package/dist/VariantIcon.mjs +30 -4
- package/dist/WelcomeLoader.js +11 -1
- package/dist/WelcomeLoader.mjs +5086 -25
- package/dist/X5NMLKT6-uFSu0Lii.mjs +25 -0
- package/dist/{YV4JVR4I-1ezWeCCz.mjs → YV4JVR4I-BGfUf3Nu.mjs} +1 -1
- package/dist/downshift.esm-BOfUfcgd.mjs +1085 -0
- package/dist/downshift.esm-dvOEflhK.js +1 -0
- package/dist/hex-to-rgba-BIDK-3ab.mjs +11 -0
- package/dist/hex-to-rgba-cCYXRc5D.js +1 -0
- package/dist/index-23RJrN0D.js +1 -0
- package/dist/{index-CQyLvMJP.js → index-BHi0wohR.js} +23 -23
- package/dist/index-BJAZgeHL.mjs +11 -0
- package/dist/index-BJzGkA7x.js +1 -0
- package/dist/index-BLom3M2B.js +2 -0
- package/dist/index-BNGGwOCo.mjs +11 -0
- package/dist/index-BQtDgQBH.mjs +11 -0
- package/dist/{index-BZmKn5VO.mjs → index-BYdkhqH4.mjs} +14 -11
- package/dist/{index-DCOLdphy.mjs → index-CDjY0N2Z.mjs} +11 -11
- package/dist/index-CExLVjET.mjs +26 -0
- package/dist/{index-C_r0bVmL.js → index-CUtaVckz.js} +1 -1
- package/dist/{index-BxWjuyQw.js → index-CxDKPhvU.js} +1 -1
- package/dist/index-D4H6DSEx.mjs +133 -0
- package/dist/index-D6MJAN7T.js +1 -0
- package/dist/index-DEJJvyGk.mjs +66 -0
- package/dist/index-DTx8atxB.js +1 -0
- package/dist/index-Db47iJVz.js +1 -0
- package/dist/{index-DRa_xux4.mjs → index-RUkz9Z2V.mjs} +27 -53
- package/dist/index-SbQUT2mU.mjs +639 -0
- package/dist/index-_wqLxu7x.js +1 -0
- package/dist/index-gts_19_n.js +1 -0
- package/dist/{index-CQ1IPLlk.mjs → index-u1oHKa7X.mjs} +13 -61
- package/dist/{radio-group-29lMl-2M.mjs → radio-group-CGC6DTFJ.mjs} +14 -14
- package/dist/theme.js +18 -0
- package/dist/theme.mjs +1649 -0
- package/dist/types/components/Alert/styles.d.ts +2 -2
- package/dist/types/components/Avatar/styles.d.ts +2 -2
- package/dist/types/components/Badge/styles.d.ts +1 -1
- package/dist/types/components/Button/theme.d.ts +1 -1
- package/dist/types/components/Card/Cover.styles.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/ClearButton/styles.d.ts +1 -1
- package/dist/types/components/CloseButton/styles.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +1 -1
- package/dist/types/components/Drawer/index.d.ts +2 -2
- package/dist/types/components/Drawer/styles.d.ts +1 -1
- package/dist/types/components/DropdownMenu/index.d.ts +1 -1
- package/dist/types/components/DropdownMenu/styles.d.ts +1 -1
- package/dist/types/components/Field/index.d.ts +1 -1
- package/dist/types/components/Field/styles.d.ts +1 -1
- package/dist/types/components/FileDrop/FilePreview.d.ts +1 -1
- package/dist/types/components/FileDrop/index.d.ts +1 -1
- package/dist/types/components/FileUpload/index.d.ts +1 -1
- package/dist/types/components/Icon/styles.d.ts +1 -1
- package/dist/types/components/IconsFont/_hash.d.ts +1 -0
- package/dist/types/components/{IconFont → IconsFont}/index.d.ts +4 -4
- package/dist/types/components/InputText/index.d.ts +1 -1
- package/dist/types/components/Logo/index.d.ts +1 -1
- package/dist/types/components/Modal/Assets/index.d.ts +4 -4
- package/dist/types/components/Modal/Assets/styles.d.ts +2 -2
- package/dist/types/components/Modal/index.d.ts +4 -4
- package/dist/types/components/Modal/styles.d.ts +2 -2
- package/dist/types/components/Popover/Popover.d.ts +1 -1
- package/dist/types/components/Popover/PopoverHover.d.ts +1 -1
- package/dist/types/components/Popover/Trigger.d.ts +1 -1
- package/dist/types/components/Radio/index.d.ts +1 -1
- package/dist/types/components/RadioTab/index.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +1 -1
- package/dist/types/components/Select/index.d.ts +2 -2
- package/dist/types/components/Shape/styles.d.ts +1 -1
- package/dist/types/components/Slider/Range.d.ts +1 -1
- package/dist/types/components/Slider/index.d.ts +1 -1
- package/dist/types/components/Slider/styles.d.ts +5 -5
- package/dist/types/components/Tabs/TabList.d.ts +1 -1
- package/dist/types/components/Tabs/TabPanel.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +1 -1
- package/dist/types/components/Tag/styles.d.ts +1 -1
- package/dist/types/components/Tag/theme.d.ts +1 -1
- package/dist/types/components/Textarea/index.d.ts +1 -1
- package/dist/types/components/Toast/index.d.ts +3 -3
- package/dist/types/components/Toast/styles.d.ts +8 -8
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/utils.js +1 -0
- package/dist/utils.mjs +81 -0
- package/package.json +52 -67
- package/dist/CustomInput-CHhz-wtr.js +0 -1064
- package/dist/CustomInput-DsJYqH0X.mjs +0 -1272
- package/dist/MTZPJQMC-C9lHSyrL.mjs +0 -13
- package/dist/VEVQD5MH-DOp_qaPw.mjs +0 -20
- package/dist/Welcome-BNr4uu5n.mjs +0 -48
- package/dist/Welcome-Dw9OaREs.js +0 -3
- package/dist/X5NMLKT6-DGZEtYXj.mjs +0 -25
- package/dist/index-B8roHPE-.js +0 -64
- package/dist/index-BFQbRuqA.mjs +0 -165
- package/dist/index-BjGfAqCk.mjs +0 -209
- package/dist/index-Bn9aiaUQ.mjs +0 -193
- package/dist/index-CiYwvMF0.js +0 -8
- package/dist/index-Cjf3wLkx.mjs +0 -272
- package/dist/index-CmBs24Im.mjs +0 -413
- package/dist/index-D3Tnfi3U.mjs +0 -83
- package/dist/index-DG7ovxHW.js +0 -117
- package/dist/index-DHCyCfRv.js +0 -35
- package/dist/index-DSZG0Sqy.js +0 -54
- package/dist/index-DhF591OM.js +0 -42
- package/dist/index-gPtu0TOV.js +0 -1
- package/dist/types/components/index.d.ts +0 -61
- package/dist/types/index.d.ts +0 -3
- package/dist/usePopover-AbS2gpZq.mjs +0 -144
- package/dist/usePopover-CzPtX0h_.js +0 -31
- package/dist/types/components/{IconFont → IconsFont}/styles.d.ts +1 -1
package/dist/Tag.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import d from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { forwardRef as S } from "./System.mjs";
|
|
6
|
-
import { w as b } from "./wrap-children-aq69jtFP.mjs";
|
|
7
|
-
import m, { css as n, th as i, system as A } from "@xstyled/styled-components";
|
|
3
|
+
import { w as C } from "./wrap-children-aq69jtFP.mjs";
|
|
4
|
+
import m, { css as n, th as i, system as w } from "@xstyled/styled-components";
|
|
8
5
|
import { o as p } from "./overflow-ellipsis-DGV5Kgt-.mjs";
|
|
9
6
|
import { g } from "./get-max-width-height-DoUro2T7.mjs";
|
|
7
|
+
import { StyledIcon as S } from "./Icon.mjs";
|
|
8
|
+
import { forwardRef as b } from "./System.mjs";
|
|
9
|
+
import { C as A } from "./index-C7zM96J_.mjs";
|
|
10
10
|
const E = (e, t, s) => n`
|
|
11
11
|
${i(`tags.shape.${e}`)}
|
|
12
12
|
padding: 0;
|
|
@@ -29,7 +29,7 @@ const E = (e, t, s) => n`
|
|
|
29
29
|
transition: medium;
|
|
30
30
|
max-width: 100%;
|
|
31
31
|
${p}
|
|
32
|
-
${
|
|
32
|
+
${w}
|
|
33
33
|
${a !== 1 && n`
|
|
34
34
|
span,
|
|
35
35
|
p {
|
|
@@ -66,7 +66,7 @@ const E = (e, t, s) => n`
|
|
|
66
66
|
|
|
67
67
|
> *:not(:only-child) {
|
|
68
68
|
${/* sc-selector */
|
|
69
|
-
|
|
69
|
+
S}:last-child {
|
|
70
70
|
opacity: 1;
|
|
71
71
|
transition: opacity ${i.transition("medium")};
|
|
72
72
|
cursor: pointer;
|
|
@@ -91,7 +91,7 @@ const E = (e, t, s) => n`
|
|
|
91
91
|
), k = m.buttonBox`
|
|
92
92
|
all: unset;
|
|
93
93
|
display: flex;
|
|
94
|
-
`, R =
|
|
94
|
+
`, R = b(
|
|
95
95
|
({
|
|
96
96
|
as: e,
|
|
97
97
|
children: t,
|
|
@@ -104,7 +104,7 @@ const E = (e, t, s) => n`
|
|
|
104
104
|
variant: $ = "default",
|
|
105
105
|
...f
|
|
106
106
|
}, u) => {
|
|
107
|
-
const y =
|
|
107
|
+
const y = C(t), x = !!(t || t === 0) && ["number", "string"].includes(typeof t) ? t.toString().length : void 0, v = !!c || !!l;
|
|
108
108
|
return /* @__PURE__ */ d.createElement(
|
|
109
109
|
h,
|
|
110
110
|
{
|
|
@@ -123,7 +123,7 @@ const E = (e, t, s) => n`
|
|
|
123
123
|
...f
|
|
124
124
|
},
|
|
125
125
|
y,
|
|
126
|
-
!!o && /* @__PURE__ */ d.createElement(I, { size: r }, /* @__PURE__ */ d.createElement(k, { onClick: o, title: "Remove", type: "button" }, /* @__PURE__ */ d.createElement(
|
|
126
|
+
!!o && /* @__PURE__ */ d.createElement(I, { size: r }, /* @__PURE__ */ d.createElement(k, { onClick: o, title: "Remove", type: "button" }, /* @__PURE__ */ d.createElement(A, { size: "xs", title: "Remove" })))
|
|
127
127
|
);
|
|
128
128
|
}
|
|
129
129
|
);
|
package/dist/Text.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),s=require("@xstyled/styled-components"),b=require("./System.js"),p={h0:"h1",h1:"h2",h2:"h3",h3:"h4",h4:"h5",h5:"h6",h6:"h6"},f=e=>s.css`
|
|
2
2
|
/* stylelint-disable-next-line value-no-vendor-prefix */
|
|
3
3
|
display: -webkit-box;
|
|
4
4
|
/* stylelint-disable-next-line property-no-vendor-prefix */
|
package/dist/Text.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import p from "react";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import f, { css as n, th as r, system as d } from "@xstyled/styled-components";
|
|
4
|
+
import { forwardRef as b } from "./System.mjs";
|
|
5
5
|
const x = {
|
|
6
6
|
h0: "h1",
|
|
7
7
|
h1: "h2",
|
|
@@ -20,7 +20,7 @@ const x = {
|
|
|
20
20
|
line-height: normal;
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
word-break: ${e === 1 ? "break-all" : null};
|
|
23
|
-
`, y =
|
|
23
|
+
`, y = f.p(({ lines: e, theme: o, variant: t, withDash: s }) => {
|
|
24
24
|
const l = x[t], h = t == null ? void 0 : t.startsWith("h"), i = e && e !== 1 / 0 && t.startsWith("h") && o.fonts.headings.includes("welcome-font");
|
|
25
25
|
return n`
|
|
26
26
|
${r(`texts.${l || t}`)};
|
|
@@ -72,7 +72,7 @@ const x = {
|
|
|
72
72
|
xs: "p",
|
|
73
73
|
"subtitle-md": "span",
|
|
74
74
|
"subtitle-sm": "span"
|
|
75
|
-
}, u =
|
|
75
|
+
}, u = b(
|
|
76
76
|
({ as: e, children: o, dataTestId: t, lines: s, variant: l = "md", withDash: h, ...i }, a) => {
|
|
77
77
|
const c = e || k[l], m = i.className || "";
|
|
78
78
|
return /* @__PURE__ */ p.createElement(
|
package/dist/Textarea.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),e=require("@xstyled/styled-components"),T=require("./field-styles-D_gf6ypV.js"),a=require("./System.js"),p=e("textarea").withConfig({shouldForwardProp:a.shouldForwardProp})(({size:t,variant:r})=>e.css`
|
|
2
2
|
${T.defaultFieldStyles({size:t,variant:r})};
|
|
3
3
|
${e.th("textareas")};
|
|
4
4
|
line-height: lg;
|
package/dist/Textarea.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import u from "react";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
const R =
|
|
7
|
-
({ size: e, variant: t }) =>
|
|
8
|
-
${
|
|
9
|
-
${
|
|
3
|
+
import w, { css as y, th as _, system as $ } from "@xstyled/styled-components";
|
|
4
|
+
import { d as g } from "./field-styles-CeV7pnOp.mjs";
|
|
5
|
+
import { shouldForwardProp as T, forwardRef as F } from "./System.mjs";
|
|
6
|
+
const R = w("textarea").withConfig({ shouldForwardProp: T })(
|
|
7
|
+
({ size: e, variant: t }) => y`
|
|
8
|
+
${g({ size: e, variant: t })};
|
|
9
|
+
${_("textareas")};
|
|
10
10
|
line-height: lg;
|
|
11
|
-
${
|
|
11
|
+
${$};
|
|
12
12
|
`
|
|
13
|
-
), C =
|
|
13
|
+
), C = F(
|
|
14
14
|
({
|
|
15
15
|
autoFocus: e,
|
|
16
16
|
dataTestId: t,
|
package/dist/TimePicker.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),H=require("@xstyled/styled-components"),c=require("./CustomInput-CDNZy-pz.js"),I=require("./System.js"),O=H.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
${c.fixAriaMessageStyle}
|
|
4
|
-
`,S=
|
|
4
|
+
`,S=I.forwardRef(({autoFocus:y,dataTestId:E,dateFormat:k="HH:mm",disabled:P,icon:a,iconPlacement:u="left",onBlur:m,onChange:t,onFocus:n,placeholder:g,popperProps:h,size:d="md",timeIntervals:p=15,transparent:q,value:l=c.DEFAULT_DATE,...f},D)=>{const i=e=>c.getDate(e,p),F=g||f.placeholderText,[R,T]=s.useState(y&&"time"||null),[b,o]=s.useState(i(l));s.useEffect(()=>{t&&t(i(l))},[]),s.useEffect(()=>{var r;const e=i(l);((r=new Date(l))==null?void 0:r.getTime())-(e==null?void 0:e.getTime())!==0&&t&&t(e),o(e)},[l]);const x=e=>{T("time"),n&&n(e)},A=e=>{T(null),m&&m(e)},M=e=>{e.preventDefault(),o(null),t&&t()},N=e=>{if(!e)return;const r=i(e);e.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),o(e),t&&t(new Date(e))};return s.createElement(O,null,s.createElement(c.StyledTimePicker,{calendarClassName:"time-picker-popper",customInput:s.createElement(c.CustomInput,{className:"time-picker","data-testid":E,focused:R,handleBlur:A,handleFocus:x,icon:a,iconPlacement:u,onReset:M,ref:D,size:d}),dateFormat:k,disabled:P,iconPlacement:!!a&&u,onChange:N,placeholderText:F,popperContainer:c.CustomPopper,popperProps:h,selected:b,showTimeSelect:!0,showTimeSelectOnly:!0,size:d,timeIntervals:p,transparent:q,...f,isClearable:!1}))});S.displayName="TimePicker";exports.TimePicker=S;
|
package/dist/TimePicker.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import c, { useState as T, useEffect as E } from "react";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import W from "
|
|
6
|
-
const $ =
|
|
3
|
+
import M from "@xstyled/styled-components";
|
|
4
|
+
import { f as Y, a as w, c as I, b as L, D as O, g as U } from "./CustomInput-BCCxIle7.mjs";
|
|
5
|
+
import { forwardRef as W } from "./System.mjs";
|
|
6
|
+
const $ = M.div`
|
|
7
7
|
position: relative;
|
|
8
|
-
${
|
|
9
|
-
`, j =
|
|
8
|
+
${Y}
|
|
9
|
+
`, j = W(
|
|
10
10
|
({
|
|
11
11
|
autoFocus: k,
|
|
12
12
|
dataTestId: y,
|
|
@@ -22,10 +22,10 @@ const $ = W.div`
|
|
|
22
22
|
size: d = "md",
|
|
23
23
|
timeIntervals: n = 15,
|
|
24
24
|
transparent: x,
|
|
25
|
-
value: l =
|
|
25
|
+
value: l = O,
|
|
26
26
|
...u
|
|
27
27
|
}, F) => {
|
|
28
|
-
const r = (e) =>
|
|
28
|
+
const r = (e) => U(e, n), P = _ || u.placeholderText, [R, f] = T(k && "time" || null), [g, a] = T(r(l));
|
|
29
29
|
E(() => {
|
|
30
30
|
t && t(r(l));
|
|
31
31
|
}, []), E(() => {
|
|
@@ -45,11 +45,11 @@ const $ = W.div`
|
|
|
45
45
|
e.setFullYear(s.getFullYear(), s.getMonth(), s.getDate()), a(e), t && t(new Date(e));
|
|
46
46
|
};
|
|
47
47
|
return /* @__PURE__ */ c.createElement($, null, /* @__PURE__ */ c.createElement(
|
|
48
|
-
|
|
48
|
+
w,
|
|
49
49
|
{
|
|
50
50
|
calendarClassName: "time-picker-popper",
|
|
51
51
|
customInput: /* @__PURE__ */ c.createElement(
|
|
52
|
-
|
|
52
|
+
I,
|
|
53
53
|
{
|
|
54
54
|
className: "time-picker",
|
|
55
55
|
"data-testid": y,
|
|
@@ -68,7 +68,7 @@ const $ = W.div`
|
|
|
68
68
|
iconPlacement: !!i && m,
|
|
69
69
|
onChange: H,
|
|
70
70
|
placeholderText: P,
|
|
71
|
-
popperContainer:
|
|
71
|
+
popperContainer: L,
|
|
72
72
|
popperProps: h,
|
|
73
73
|
selected: g,
|
|
74
74
|
showTimeSelect: !0,
|
package/dist/Toast.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=require("@xstyled/styled-components"),q=require("./index-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=require("@xstyled/styled-components"),q=require("./index-BHi0wohR.js"),T=require("./Box.js"),A=require("./Alert.js"),B=require("./CloseButton.js"),C=require("./System.js"),M=require("./Button.js");var N=t=>typeof t=="function",$=(t,e)=>N(t)?t(e):t,R=(()=>{let t=0;return()=>(++t).toString()})(),G=20,x=new Map,z=1e3,P=t=>{if(x.has(t))return;let e=setTimeout(()=>{x.delete(t),h({type:4,toastId:t})},z);x.set(t,e)},H=t=>{let e=x.get(t);e&&clearTimeout(e)},S=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,G)};case 1:return e.toast.id&&H(e.toast.id),{...t,toasts:t.toasts.map(o=>o.id===e.toast.id?{...o,...e.toast}:o)};case 2:let{toast:s}=e;return t.toasts.find(o=>o.id===s.id)?S(t,{type:1,toast:s}):S(t,{type:0,toast:s});case 3:let{toastId:n}=e;return n?P(n):t.toasts.forEach(o=>{P(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===n||n===void 0?{...o,visible:!1}:o)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(o=>o.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let r=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+r}))}}},E=[],k={toasts:[],pausedAt:void 0},h=t=>{k=S(k,t),E.forEach(e=>{e(k)})},L={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},W=(t={})=>{let[e,s]=a.useState(k);a.useEffect(()=>(E.push(s),()=>{let r=E.indexOf(s);r>-1&&E.splice(r,1)}),[e]);let n=e.toasts.map(r=>{var o,u;return{...t,...t[r.type],...r,duration:r.duration||((o=t[r.type])==null?void 0:o.duration)||(t==null?void 0:t.duration)||L[r.type],style:{...t.style,...(u=t[r.type])==null?void 0:u.style,...r.style}}});return{...e,toasts:n}},Y=(t,e="blank",s)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...s,id:(s==null?void 0:s.id)||R()}),v=t=>(e,s)=>{let n=Y(e,t,s);return h({type:2,toast:n}),n.id},c=(t,e)=>v("blank")(t,e);c.error=v("error");c.success=v("success");c.loading=v("loading");c.custom=v("custom");c.dismiss=t=>{h({type:3,toastId:t})};c.remove=t=>h({type:4,toastId:t});c.promise=(t,e,s)=>{let n=c.loading(e.loading,{...s,...s==null?void 0:s.loading});return t.then(r=>(c.success($(e.success,r),{id:n,...s,...s==null?void 0:s.success}),r)).catch(r=>{c.error($(e.error,r),{id:n,...s,...s==null?void 0:s.error})}),t};var _=(t,e)=>{h({type:1,toast:{id:t,height:e}})},j=()=>{h({type:5,time:Date.now()})},U=t=>{let{toasts:e,pausedAt:s}=W(t);a.useEffect(()=>{if(s)return;let o=Date.now(),u=e.map(i=>{if(i.duration===1/0)return;let f=(i.duration||0)+i.pauseDuration-(o-i.createdAt);if(f<0){i.visible&&c.dismiss(i.id);return}return setTimeout(()=>c.dismiss(i.id),f)});return()=>{u.forEach(i=>i&&clearTimeout(i))}},[e,s]);let n=a.useCallback(()=>{s&&h({type:6,time:Date.now()})},[s]),r=a.useCallback((o,u)=>{let{reverseOrder:i=!1,gutter:f=8,defaultPosition:p}=u||{},m=e.filter(d=>(d.position||p)===(o.position||p)&&d.height),g=m.findIndex(d=>d.id===o.id),y=m.filter((d,b)=>b<g&&d.visible).length;return m.filter(d=>d.visible).slice(...i?[y+1]:[0,y]).reduce((d,b)=>d+(b.height||0)+f,0)},[e]);return{toasts:e,handlers:{updateHeight:_,startPause:j,endPause:n,calculateOffset:r}}},w=c;function F(t=!1){const[e,s]=a.useState(!1);return a.useEffect(()=>{s(!0)},[]),a.useMemo(()=>t?n=>n:e?(n,r,o)=>q.reactDomExports.createPortal(n,r||document.body,o):()=>null,[t,e])}const J=l(T.Box)(({isBottom:t})=>l.css`
|
|
2
2
|
${l.th("toasts.default")}
|
|
3
3
|
${t?l.th("toasts.bottom"):l.th("toasts.top")}
|
|
4
4
|
|
package/dist/Toast.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import d, { useEffect as C, useCallback as I, useState as M, useMemo as R, cloneElement as z, useContext as H } from "react";
|
|
3
3
|
import v, { css as w, th as m, ThemeContext as L, ThemeProvider as W } from "@xstyled/styled-components";
|
|
4
|
-
import { r as Y } from "./index-
|
|
4
|
+
import { r as Y } from "./index-BYdkhqH4.mjs";
|
|
5
5
|
import { Box as $ } from "./Box.mjs";
|
|
6
6
|
import { Alert as _ } from "./Alert.mjs";
|
|
7
7
|
import { CloseButton as B } from "./CloseButton.mjs";
|
package/dist/Toggle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),t=require("@xstyled/styled-components"),s=require("./System.js"),a=require("./index-CUtaVckz.js"),p=t(a.Checkbox).withConfig({shouldForwardProp:s.shouldForwardProp})(({order:o="-1",size:e})=>t.css`
|
|
2
2
|
${t.th("toggles.item.default")};
|
|
3
3
|
${t.th(`toggles.item.sizes.${e}`)};
|
|
4
4
|
position: relative;
|
package/dist/Toggle.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { shouldForwardProp as g, forwardRef as
|
|
5
|
-
import
|
|
6
|
-
const b = s(
|
|
3
|
+
import s, { css as i, th as t, system as f } from "@xstyled/styled-components";
|
|
4
|
+
import { shouldForwardProp as g, forwardRef as $ } from "./System.mjs";
|
|
5
|
+
import { C as c, a as u } from "./index-CDjY0N2Z.mjs";
|
|
6
|
+
const b = s(c).withConfig({ shouldForwardProp: g })(
|
|
7
7
|
({ order: o = "-1", size: e }) => i`
|
|
8
8
|
${t("toggles.item.default")};
|
|
9
9
|
${t(`toggles.item.sizes.${e}`)};
|
|
@@ -52,7 +52,7 @@ const b = s(f).withConfig({ shouldForwardProp: g })(
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
${
|
|
55
|
+
${f};
|
|
56
56
|
`
|
|
57
57
|
), h = s.box`
|
|
58
58
|
position: relative;
|
|
@@ -81,10 +81,10 @@ const b = s(f).withConfig({ shouldForwardProp: g })(
|
|
|
81
81
|
right: ${t(`toggles.icon.position.${e}.right`)};
|
|
82
82
|
`}
|
|
83
83
|
`
|
|
84
|
-
), w =
|
|
84
|
+
), w = $(
|
|
85
85
|
({ checked: o, checkedIcon: e, onClick: a, size: l = "xs", uncheckedIcon: n, ...m }, d) => {
|
|
86
86
|
const p = e && n;
|
|
87
|
-
return /* @__PURE__ */ r.createElement(h, { onClick: a }, p && /* @__PURE__ */ r.createElement(x, { checked: o, onClick: a, size: l }, o ? e : n), /* @__PURE__ */ r.createElement(
|
|
87
|
+
return /* @__PURE__ */ r.createElement(h, { onClick: a }, p && /* @__PURE__ */ r.createElement(x, { checked: o, onClick: a, size: l }, o ? e : n), /* @__PURE__ */ r.createElement(u, { ...m, Component: b, checked: o, ref: d, size: l }));
|
|
88
88
|
}
|
|
89
89
|
);
|
|
90
90
|
w.displayName = "Toggle";
|
package/dist/Tooltip.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),F=require("./Box.js"),I=require("./System.js"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),i=require("@xstyled/styled-components"),F=require("./Box.js"),I=require("./System.js"),T=require("./BYC7LY2E-BkAEL2VD.js"),S=require("./YV4JVR4I-DIthYWMj.js"),r=require("./LVA2YJMS-B2HZjIhJ.js"),q=require("./JC64G2H7-YkBMNrtl.js");function N(e={}){var n;process.env.NODE_ENV!=="production"&&e.type==="label"&&console.warn("The `type` option on the tooltip store is deprecated.","Render a visually hidden label or use the `aria-label` or `aria-labelledby` attributes on the anchor element instead.","See https://ariakit.org/components/tooltip#tooltip-anchors-must-have-accessible-names");const o=(n=e.store)==null?void 0:n.getState(),t=T.createHovercardStore(r.__spreadProps$1(r.__spreadValues$1({},e),{placement:r.defaultValue(e.placement,o==null?void 0:o.placement,"top"),hideTimeout:r.defaultValue(e.hideTimeout,o==null?void 0:o.hideTimeout,0)})),m=r.__spreadProps$1(r.__spreadValues$1({},t.getState()),{type:r.defaultValue(e.type,o==null?void 0:o.type,"description"),skipTimeout:r.defaultValue(e.skipTimeout,o==null?void 0:o.skipTimeout,300)}),a=S.createStore(m,t,e.store);return r.__spreadValues$1(r.__spreadValues$1({},t),a)}function M(e,n,o){return S.useStoreProps(e,o,"type"),S.useStoreProps(e,o,"skipTimeout"),T.useHovercardStoreProps(e,n,o)}function j(e={}){const[n,o]=S.useStore(N,e);return M(n,o,e)}var R=r.createStoreContext([T.HovercardContextProvider],[T.HovercardScopedContextProvider]),O=R.useProviderContext,D=R.ScopedContextProvider,Y="div",L=r.createHook(function(n){var o=n,{store:t,portal:m=!0,gutter:a=8,preserveTabOrder:x=!1,hideOnHoverOutside:v=!0,hideOnInteractOutside:f=!0}=o,c=r.__objRest(o,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const b=O();t=t||b,r.invariant(t,process.env.NODE_ENV!=="production"&&"Tooltip must receive a `store` prop or be wrapped in a TooltipProvider component."),c=r.useWrapElement(c,u=>r.jsxRuntimeExports.jsx(D,{value:t,children:u}),[t]);const g=t.useState(u=>u.type==="description"?"tooltip":"none");return c=r.__spreadValues({role:g},c),c=T.useHovercard(r.__spreadProps(r.__spreadValues({},c),{store:t,portal:m,gutter:a,preserveTabOrder:x,hideOnHoverOutside(u){if(r.isFalsyBooleanCallback(v,u))return!1;const d=t==null?void 0:t.getState().anchorElement;return d?!("focusVisible"in d.dataset):!0},hideOnInteractOutside:u=>{if(r.isFalsyBooleanCallback(f,u))return!1;const d=t==null?void 0:t.getState().anchorElement;return d?!r.contains(d,u.target):!0}})),c}),z=q.createDialogComponent(r.forwardRef2(function(n){const o=L(n);return r.createElement(Y,o)}),O),J="div",h=S.createStore({activeStore:null});function C(e){return()=>{const{activeStore:n}=h.getState();n===e&&h.setState("activeStore",null)}}var G=r.createHook(function(n){var o=n,{store:t,showOnHover:m=!0}=o,a=r.__objRest(o,["store","showOnHover"]);const x=O();t=t||x,r.invariant(t,process.env.NODE_ENV!=="production"&&"TooltipAnchor must receive a `store` prop or be wrapped in a TooltipProvider component.");const v=l.useRef(!1);l.useEffect(()=>S.sync(t,["mounted"],s=>{s.mounted||(v.current=!1)}),[t]),l.useEffect(()=>{if(t)return r.chain(C(t),S.sync(t,["mounted","skipTimeout"],s=>{if(!t)return;if(s.mounted){const{activeStore:E}=h.getState();return E!==t&&(E==null||E.hide()),h.setState("activeStore",t)}const p=setTimeout(C(t),s.skipTimeout);return()=>clearTimeout(p)}))},[t]);const f=a.onMouseEnter,c=r.useEvent(s=>{f==null||f(s),v.current=!0}),b=a.onFocusVisible,g=r.useEvent(s=>{b==null||b(s),!s.defaultPrevented&&(t==null||t.setAnchorElement(s.currentTarget),t==null||t.show())}),u=a.onBlur,d=r.useEvent(s=>{if(u==null||u(s),s.defaultPrevented)return;const{activeStore:p}=h.getState();v.current=!1,p===t&&h.setState("activeStore",null)}),$=t.useState("type"),P=t.useState(s=>{var p;return(p=s.contentElement)==null?void 0:p.id});return a=r.__spreadProps(r.__spreadValues({"aria-labelledby":$==="label"?P:void 0},a),{onMouseEnter:c,onFocusVisible:g,onBlur:d}),a=T.useHovercardAnchor(r.__spreadValues({store:t,showOnHover(s){if(!v.current||r.isFalsyBooleanCallback(m,s))return!1;const{activeStore:p}=h.getState();return p?(t==null||t.show(),!1):!0}},a)),a}),K=r.forwardRef2(function(n){const o=G(n);return r.createElement(J,o)});const W={top:"translate3d(0, -4px, 0)",right:"translate3d(4px, 0, 0)",bottom:"translate3d(0, 4px, 0)",left:"translate3d(-4px, 0, 0)",auto:"translate3d(0, 0, 0)"},X=e=>{const n=e==null?void 0:e.split("-"),o=n[0];if(n.length<2)return W[o];{let t="0, 0";return(e=="right-end"||e=="bottom-end")&&(t="4px, 4px"),(e=="right-start"||e=="top-end")&&(t="4px, -4px"),(e=="left-end"||e=="bottom-start")&&(t="-4px, 4px"),(e=="left-start"||e=="top-start")&&(t="-4px, -4px"),`translate3d(${t}, 0)`}},Q=i.css`
|
|
2
2
|
visibility: visible;
|
|
3
3
|
opacity: 1;
|
|
4
4
|
transform: translate3d(0, 0, 0);
|
package/dist/Tooltip.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import p, { useRef as G, useEffect as C, useState as J } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { c as ot, d as rt, e as nt, f as it, g as st, h as at } from "./BYC7LY2E-
|
|
7
|
-
import { c as j, a as ut, b as A, d as B } from "./YV4JVR4I-
|
|
8
|
-
import { B as I, C as $, D as E,
|
|
9
|
-
import { c as mt } from "./JC64G2H7-
|
|
3
|
+
import M, { css as f, th as y, system as U } from "@xstyled/styled-components";
|
|
4
|
+
import { Box as tt } from "./Box.mjs";
|
|
5
|
+
import { forwardRef as et } from "./System.mjs";
|
|
6
|
+
import { c as ot, d as rt, e as nt, f as it, g as st, h as at } from "./BYC7LY2E-CVjUW1dr.mjs";
|
|
7
|
+
import { c as j, a as ut, b as A, d as B } from "./YV4JVR4I-BGfUf3Nu.mjs";
|
|
8
|
+
import { B as I, C as $, D as E, v as lt, c as z, _ as Y, i as L, E as dt, g as P, d as K, f as Q, h as W, t as ct, Y as H, Z as pt, Q as ft, b as w } from "./LVA2YJMS-qFC9J-lt.mjs";
|
|
9
|
+
import { c as mt } from "./JC64G2H7-Dey-8h60.mjs";
|
|
10
10
|
function vt(t = {}) {
|
|
11
11
|
var r;
|
|
12
12
|
process.env.NODE_ENV !== "production" && t.type === "label" && console.warn(
|
|
@@ -185,7 +185,7 @@ const Pt = {
|
|
|
185
185
|
}, wt = M.divBox(
|
|
186
186
|
({ fixed: t, placement: r, popoverHeight: o, withArrow: e }) => f`
|
|
187
187
|
${y("tooltips")};
|
|
188
|
-
${
|
|
188
|
+
${U};
|
|
189
189
|
transition:
|
|
190
190
|
opacity ${y.transition("medium")},
|
|
191
191
|
transform ${y.transition("medium")},
|
|
@@ -247,7 +247,7 @@ const Pt = {
|
|
|
247
247
|
`
|
|
248
248
|
), Ct = M.div`
|
|
249
249
|
display: inline-block;
|
|
250
|
-
`, Dt =
|
|
250
|
+
`, Dt = et(
|
|
251
251
|
({
|
|
252
252
|
children: t,
|
|
253
253
|
content: r,
|
|
@@ -280,7 +280,7 @@ const Pt = {
|
|
|
280
280
|
fixed: o,
|
|
281
281
|
gutter: m,
|
|
282
282
|
ref: c,
|
|
283
|
-
render: /* @__PURE__ */ p.createElement(
|
|
283
|
+
render: /* @__PURE__ */ p.createElement(tt, { ...g }),
|
|
284
284
|
store: d,
|
|
285
285
|
updatePosition: o ? void 0 : l
|
|
286
286
|
},
|
package/dist/UniversalLink.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=require("@xstyled/styled-components"),r=require("./System.js"),d=l.aBox.withConfig({shouldForwardProp:r.shouldForwardProp})`
|
|
2
2
|
color: inherit;
|
|
3
3
|
text-decoration: none;
|
|
4
4
|
`,n=r.forwardRef(({children:o,dataTestId:i,target:e,...t},s)=>a.createElement(d,{color:"inherit","data-testid":i,ref:s,rel:e==="_blank"?"noopener noreferrer":void 0,target:e,...t},o));n.displayName="UniversalLink";exports.UniversalLink=n;
|
package/dist/UniversalLink.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import t from "react";
|
|
3
|
-
import
|
|
4
|
-
import d from "
|
|
5
|
-
const f =
|
|
3
|
+
import a from "@xstyled/styled-components";
|
|
4
|
+
import { shouldForwardProp as l, forwardRef as d } from "./System.mjs";
|
|
5
|
+
const f = a.aBox.withConfig({ shouldForwardProp: l })`
|
|
6
6
|
color: inherit;
|
|
7
7
|
text-decoration: none;
|
|
8
|
-
`, s =
|
|
8
|
+
`, s = d(
|
|
9
9
|
({ children: r, dataTestId: o, target: e, ...n }, i) => /* @__PURE__ */ t.createElement(
|
|
10
10
|
f,
|
|
11
11
|
{
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { C as t, a as r } from "./P2CTZE2T-YPes1GXe.mjs";
|
|
3
|
+
import { P as a, a as i } from "./MTZPJQMC-C0Xe_WK4.mjs";
|
|
4
|
+
import { v as n } from "./LVA2YJMS-qFC9J-lt.mjs";
|
|
5
|
+
import { createContext as o } from "react";
|
|
6
|
+
o(
|
|
7
|
+
void 0
|
|
8
|
+
);
|
|
9
|
+
var e = n(
|
|
10
|
+
[i, r],
|
|
11
|
+
[a, t]
|
|
12
|
+
), m = e.useContext, v = e.useProviderContext;
|
|
13
|
+
o(
|
|
14
|
+
void 0
|
|
15
|
+
);
|
|
16
|
+
o(!1);
|
|
17
|
+
export {
|
|
18
|
+
v as a,
|
|
19
|
+
m as u
|
|
20
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const o=require("./P2CTZE2T-q8vyaGc0.js"),t=require("./MTZPJQMC-
|
|
1
|
+
"use client";"use strict";const o=require("./P2CTZE2T-q8vyaGc0.js"),t=require("./MTZPJQMC-5Xg78Uyy.js"),n=require("./LVA2YJMS-B2HZjIhJ.js"),e=require("react");e.createContext(void 0);var r=n.createStoreContext([t.PopoverContextProvider,o.CompositeContextProvider],[t.PopoverScopedContextProvider,o.CompositeScopedContextProvider]),C=r.useContext,x=r.useProviderContext;e.createContext(void 0);e.createContext(!1);exports.useComboboxContext=C;exports.useComboboxProviderContext=x;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { m as Y, o as Z, t as ee, s as y, c as te, d as
|
|
3
|
-
import { C as v, B as se, D as ae, H as re,
|
|
2
|
+
import { m as Y, o as Z, t as ee, s as y, c as te, d as j, e as ne, a as oe, b as P, u as H } from "./YV4JVR4I-BGfUf3Nu.mjs";
|
|
3
|
+
import { C as v, B as se, D as ae, H as re, v as R, c as ie, f as T, _ as F, i as ue, x as le, F as D, E as de, d as A, g as _, e as ce, z as me, h as fe, t as I } from "./LVA2YJMS-qFC9J-lt.mjs";
|
|
4
4
|
import { createContext as M, useRef as pe, useState as Se, useMemo as ve } from "react";
|
|
5
|
-
import { r as De } from "./index-
|
|
5
|
+
import { r as De } from "./index-BYdkhqH4.mjs";
|
|
6
6
|
function Ce(n = {}) {
|
|
7
7
|
const o = Y(
|
|
8
8
|
n.store,
|
|
@@ -24,7 +24,7 @@ function Ce(n = {}) {
|
|
|
24
24
|
}, s = te(r, o);
|
|
25
25
|
return y(
|
|
26
26
|
s,
|
|
27
|
-
() =>
|
|
27
|
+
() => j(s, ["animated", "animating"], (a) => {
|
|
28
28
|
a.animated || s.setState("animating", !1);
|
|
29
29
|
})
|
|
30
30
|
), y(
|
|
@@ -34,7 +34,7 @@ function Ce(n = {}) {
|
|
|
34
34
|
})
|
|
35
35
|
), y(
|
|
36
36
|
s,
|
|
37
|
-
() =>
|
|
37
|
+
() => j(s, ["open", "animating"], (a) => {
|
|
38
38
|
s.setState("mounted", a.open || a.animating);
|
|
39
39
|
})
|
|
40
40
|
), se(ae({}, s), {
|
|
@@ -55,7 +55,7 @@ function Re(n = {}) {
|
|
|
55
55
|
const [o, e] = oe(Ce, n);
|
|
56
56
|
return xe(o, e, n);
|
|
57
57
|
}
|
|
58
|
-
var
|
|
58
|
+
var b = R(), N = b.useProviderContext, ge = b.ContextProvider, Ee = b.ScopedContextProvider, p = R(
|
|
59
59
|
[ge],
|
|
60
60
|
[Ee]
|
|
61
61
|
);
|
|
@@ -65,7 +65,7 @@ function V(n, o) {
|
|
|
65
65
|
const e = setTimeout(o, n);
|
|
66
66
|
return () => clearTimeout(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function _e(n) {
|
|
69
69
|
let o = requestAnimationFrame(() => {
|
|
70
70
|
o = requestAnimationFrame(n);
|
|
71
71
|
});
|
|
@@ -77,7 +77,7 @@ function w(...n) {
|
|
|
77
77
|
return i > o ? i : o;
|
|
78
78
|
}, 0);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function be(n, o, e) {
|
|
81
81
|
return !e && o !== !1 && (!n || !!o);
|
|
82
82
|
}
|
|
83
83
|
var he = ie(function(o) {
|
|
@@ -101,7 +101,7 @@ var he = ie(function(o) {
|
|
|
101
101
|
h(null);
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
|
-
return
|
|
104
|
+
return _e(() => {
|
|
105
105
|
h(d ? "enter" : C ? "leave" : null);
|
|
106
106
|
});
|
|
107
107
|
}
|
|
@@ -131,20 +131,20 @@ var he = ie(function(o) {
|
|
|
131
131
|
q,
|
|
132
132
|
z,
|
|
133
133
|
B
|
|
134
|
-
),
|
|
135
|
-
if (!
|
|
134
|
+
), O = J + K;
|
|
135
|
+
if (!O) {
|
|
136
136
|
l === "enter" && t.setState("animated", !1), u();
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
|
-
const Q = 1e3 / 60, X = Math.max(
|
|
139
|
+
const Q = 1e3 / 60, X = Math.max(O - Q, 0);
|
|
140
140
|
return V(X, S);
|
|
141
141
|
}, [t, c, m, x, d, l]), r = de(
|
|
142
142
|
r,
|
|
143
143
|
(u) => /* @__PURE__ */ I.jsx(ye, { value: t, children: u }),
|
|
144
144
|
[t]
|
|
145
145
|
);
|
|
146
|
-
const g =
|
|
147
|
-
return r = A(
|
|
146
|
+
const g = be(C, r.hidden, i), E = r.style, $ = ve(() => g ? A(_({}, E), { display: "none" }) : E, [g, E]);
|
|
147
|
+
return r = A(_({
|
|
148
148
|
id: f,
|
|
149
149
|
"data-open": d || void 0,
|
|
150
150
|
"data-enter": l === "enter" || void 0,
|
|
@@ -154,7 +154,7 @@ var he = ie(function(o) {
|
|
|
154
154
|
ref: ce(f ? t.setContentElement : null, a, r.ref),
|
|
155
155
|
style: $
|
|
156
156
|
}), me(r);
|
|
157
|
-
}),
|
|
157
|
+
}), Oe = T(function(o) {
|
|
158
158
|
const e = he(o);
|
|
159
159
|
return fe(Pe, e);
|
|
160
160
|
}), $e = T(function(o) {
|
|
@@ -167,11 +167,11 @@ var he = ie(function(o) {
|
|
|
167
167
|
return H(
|
|
168
168
|
s,
|
|
169
169
|
(f) => !t || (f == null ? void 0 : f.mounted)
|
|
170
|
-
) === !1 ? null : /* @__PURE__ */ I.jsx(
|
|
170
|
+
) === !1 ? null : /* @__PURE__ */ I.jsx(Oe, _({}, i));
|
|
171
171
|
});
|
|
172
172
|
export {
|
|
173
173
|
ye as D,
|
|
174
|
-
|
|
174
|
+
Fe as a,
|
|
175
175
|
Te as b,
|
|
176
176
|
Ie as c,
|
|
177
177
|
$e as d,
|
|
@@ -179,8 +179,8 @@ export {
|
|
|
179
179
|
he as f,
|
|
180
180
|
Ce as g,
|
|
181
181
|
xe as h,
|
|
182
|
-
|
|
182
|
+
be as i,
|
|
183
183
|
Me as j,
|
|
184
184
|
Ne as k,
|
|
185
|
-
|
|
185
|
+
N as u
|
|
186
186
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const a=require("./YV4JVR4I-DIthYWMj.js"),n=require("./LVA2YJMS-B2HZjIhJ.js"),D=require("react"),z=require("./index-
|
|
1
|
+
"use client";"use strict";const a=require("./YV4JVR4I-DIthYWMj.js"),n=require("./LVA2YJMS-B2HZjIhJ.js"),D=require("react"),z=require("./index-BHi0wohR.js");function j(o={}){const r=a.mergeStore(o.store,a.omit2(o.disclosure,["contentElement","disclosureElement"]));a.throwOnConflictingProps(o,r);const e=r==null?void 0:r.getState(),t=n.defaultValue(o.open,e==null?void 0:e.open,o.defaultOpen,!1),l=n.defaultValue(o.animated,e==null?void 0:e.animated,!1),u={open:t,animated:l,animating:!!l&&t,mounted:t,contentElement:n.defaultValue(e==null?void 0:e.contentElement,null),disclosureElement:n.defaultValue(e==null?void 0:e.disclosureElement,null)},s=a.createStore(u,r);return a.setup(s,()=>a.sync(s,["animated","animating"],i=>{i.animated||s.setState("animating",!1)})),a.setup(s,()=>a.subscribe(s,["open"],()=>{s.getState().animated&&s.setState("animating",!0)})),a.setup(s,()=>a.sync(s,["open","animating"],i=>{s.setState("mounted",i.open||i.animating)})),n.__spreadProps$1(n.__spreadValues$1({},s),{disclosure:o.disclosure,setOpen:i=>s.setState("open",i),show:()=>s.setState("open",!0),hide:()=>s.setState("open",!1),toggle:()=>s.setState("open",i=>!i),stopAnimation:()=>s.setState("animating",!1),setContentElement:i=>s.setState("contentElement",i),setDisclosureElement:i=>s.setState("disclosureElement",i)})}function A(o,r,e){return n.useUpdateEffect(r,[e.store,e.disclosure]),a.useStoreProps(o,e,"open","setOpen"),a.useStoreProps(o,e,"mounted","setMounted"),a.useStoreProps(o,e,"animated"),Object.assign(o,{disclosure:e.disclosure})}function B(o={}){const[r,e]=a.useStore(j,o);return A(r,e,o)}var y=n.createStoreContext(),_=y.useProviderContext,G=y.ContextProvider,K=y.ScopedContextProvider,v=n.createStoreContext([G],[K]);v.useContext;var Q=v.useScopedContext,X=v.useProviderContext,Z=v.ContextProvider,O=v.ScopedContextProvider,ee=D.createContext(void 0),te=D.createContext(void 0),ne="div";function R(o,r){const e=setTimeout(r,o);return()=>clearTimeout(e)}function oe(o){let r=requestAnimationFrame(()=>{r=requestAnimationFrame(o)});return()=>cancelAnimationFrame(r)}function h(...o){return o.join(", ").split(", ").reduce((r,e)=>{const t=e.endsWith("ms")?1:1e3,l=Number.parseFloat(e||"0s")*t;return l>r?l:r},0)}function w(o,r,e){return!e&&r!==!1&&(!o||!!r)}var H=n.createHook(function(r){var e=r,{store:t,alwaysVisible:l}=e,u=n.__objRest(e,["store","alwaysVisible"]);const s=_();t=t||s,n.invariant(t,process.env.NODE_ENV!=="production"&&"DisclosureContent must receive a `store` prop or be wrapped in a DisclosureProvider component.");const i=D.useRef(null),p=n.useId(u.id),[d,V]=D.useState(null),m=t.useState("open"),x=t.useState("mounted"),f=t.useState("animated"),S=t.useState("contentElement"),g=a.useStoreState(t.disclosure,"contentElement");n.useSafeLayoutEffect(()=>{i.current&&(t==null||t.setContentElement(i.current))},[t]),n.useSafeLayoutEffect(()=>{let c;return t==null||t.setState("animated",C=>(c=C,!0)),()=>{c!==void 0&&(t==null||t.setState("animated",c))}},[t]),n.useSafeLayoutEffect(()=>{if(f){if(!(S!=null&&S.isConnected)){V(null);return}return oe(()=>{V(m?"enter":x?"leave":null)})}},[f,S,m,x]),n.useSafeLayoutEffect(()=>{if(!t||!f||!d||!S)return;const c=()=>t==null?void 0:t.setState("animating",!1),C=()=>z.reactDomExports.flushSync(c);if(d==="leave"&&m||d==="enter"&&!m)return;if(typeof f=="number")return R(f,C);const{transitionDuration:T,animationDuration:I,transitionDelay:L,animationDelay:M}=getComputedStyle(S),{transitionDuration:F="0",animationDuration:N="0",transitionDelay:$="0",animationDelay:J="0"}=g?getComputedStyle(g):{},U=h(L,M,$,J),W=h(T,I,F,N),b=U+W;if(!b){d==="enter"&&t.setState("animated",!1),c();return}const Y=1e3/60,k=Math.max(b-Y,0);return R(k,C)},[t,f,S,g,m,d]),u=n.useWrapElement(u,c=>n.jsxRuntimeExports.jsx(O,{value:t,children:c}),[t]);const P=w(x,u.hidden,l),E=u.style,q=D.useMemo(()=>P?n.__spreadProps(n.__spreadValues({},E),{display:"none"}):E,[P,E]);return u=n.__spreadProps(n.__spreadValues({id:p,"data-open":m||void 0,"data-enter":d==="enter"||void 0,"data-leave":d==="leave"||void 0,hidden:P},u),{ref:n.useMergeRefs(p?t.setContentElement:null,i,u.ref),style:q}),n.removeUndefinedValues(u)}),re=n.forwardRef2(function(r){const e=H(r);return n.createElement(ne,e)}),se=n.forwardRef2(function(r){var e=r,{unmountOnHide:t}=e,l=n.__objRest(e,["unmountOnHide"]);const u=_(),s=l.store||u;return a.useStoreState(s,p=>!t||(p==null?void 0:p.mounted))===!1?null:n.jsxRuntimeExports.jsx(re,n.__spreadValues({},l))});exports.DialogContextProvider=Z;exports.DialogDescriptionContext=te;exports.DialogHeadingContext=ee;exports.DialogScopedContextProvider=O;exports.DisclosureContent=se;exports.createDisclosureStore=j;exports.isHidden=w;exports.useDialogProviderContext=X;exports.useDialogScopedContext=Q;exports.useDisclosureContent=H;exports.useDisclosureProviderContext=_;exports.useDisclosureStore=B;exports.useDisclosureStoreProps=A;
|
package/dist/VariantIcon.js
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");require("./Icon.js");const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),l=require("@xstyled/styled-components");require("./Icon.js");const c=require("./index-23RJrN0D.js"),a=require("./System.js"),f=l.divBox(({variant:r})=>l.css`
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
${l.th(`variantIcon.${r}`)}
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
align-self: center;
|
|
6
|
+
|
|
7
|
+
${l.system};
|
|
8
|
+
`),u=a.forwardRef(({icon:r,size:t="md",variant:e,...s},i)=>{const o=n.useMemo(()=>{if(r===null)return null;if(r)return r;if(e==="default")return n.createElement(c.PromoteIcon,{size:t});if(e==="success")return n.createElement(c.CheckIcon,{size:t});if(e==="info")return n.createElement(c.InformationIcon,{size:t});if(e==="warning")return n.createElement(c.AlertIcon,{size:t});if(e==="danger")return n.createElement(c.SquareAlertIcon,{size:t})},[t,r,e]);return o?n.createElement(f,{ref:i,variant:e,...s},o):null});u.displayName="VariantIcon";exports.VariantIcon=u;
|
package/dist/VariantIcon.mjs
CHANGED
|
@@ -1,7 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import n, { useMemo as f } from "react";
|
|
3
|
+
import m, { css as a, th as u, system as s } from "@xstyled/styled-components";
|
|
2
4
|
import "./Icon.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import "./System.mjs";
|
|
5
|
+
import { P as i, C as I, I as d, A as p, S as E } from "./index-RUkz9Z2V.mjs";
|
|
6
|
+
import { forwardRef as x } from "./System.mjs";
|
|
7
|
+
const y = m.divBox(
|
|
8
|
+
({ variant: r }) => a`
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
${u(`variantIcon.${r}`)}
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
align-self: center;
|
|
13
|
+
|
|
14
|
+
${s};
|
|
15
|
+
`
|
|
16
|
+
), _ = x(
|
|
17
|
+
({ icon: r, size: t = "md", variant: e, ...l }, c) => {
|
|
18
|
+
const o = f(() => {
|
|
19
|
+
if (r === null) return null;
|
|
20
|
+
if (r) return r;
|
|
21
|
+
if (e === "default") return /* @__PURE__ */ n.createElement(i, { size: t });
|
|
22
|
+
if (e === "success") return /* @__PURE__ */ n.createElement(I, { size: t });
|
|
23
|
+
if (e === "info") return /* @__PURE__ */ n.createElement(d, { size: t });
|
|
24
|
+
if (e === "warning") return /* @__PURE__ */ n.createElement(p, { size: t });
|
|
25
|
+
if (e === "danger") return /* @__PURE__ */ n.createElement(E, { size: t });
|
|
26
|
+
}, [t, r, e]);
|
|
27
|
+
return o ? /* @__PURE__ */ n.createElement(y, { ref: c, variant: e, ...l }, o) : null;
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
_.displayName = "VariantIcon";
|
|
5
31
|
export {
|
|
6
|
-
|
|
32
|
+
_ as VariantIcon
|
|
7
33
|
};
|