@x-plat/design-system 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2EGVOUGV.cjs +93 -0
- package/dist/chunk-2T3BVV7R.js +0 -0
- package/dist/chunk-3FYYFDKQ.js +159 -0
- package/dist/chunk-3M3GFSHJ.js +67 -0
- package/dist/chunk-3WBHUFOA.cjs +48 -0
- package/dist/chunk-3XYYZQR5.cjs +22 -0
- package/dist/chunk-4EF7NVAL.js +67 -0
- package/dist/chunk-4ISERXK2.cjs +1 -0
- package/dist/chunk-4KYHHJ6Z.cjs +250 -0
- package/dist/chunk-4NSRDRXC.cjs +70 -0
- package/dist/chunk-4OXMRSVE.cjs +99 -0
- package/dist/chunk-55EPYLXN.js +30 -0
- package/dist/chunk-5CE3ADO5.js +254 -0
- package/dist/chunk-5F6Y2JD6.cjs +1 -0
- package/dist/chunk-5FMTMXSP.cjs +127 -0
- package/dist/chunk-5POCKDDY.js +36 -0
- package/dist/chunk-5VDI56BV.js +33 -0
- package/dist/chunk-5WLBUPSK.js +77 -0
- package/dist/chunk-5WNNWQHD.cjs +272 -0
- package/dist/chunk-66STZB6I.cjs +404 -0
- package/dist/chunk-6AIKCZN7.js +1455 -0
- package/dist/chunk-6IUJJUVP.js +18 -0
- package/dist/chunk-6P2B3ZGP.js +79 -0
- package/dist/chunk-764ILIDG.cjs +22 -0
- package/dist/chunk-7B44DWC4.js +0 -0
- package/dist/chunk-7BE6ETFY.js +18 -0
- package/dist/chunk-7BSUS5A4.js +97 -0
- package/dist/chunk-7RPWCDEW.cjs +20 -0
- package/dist/chunk-7ULXHGLO.cjs +77 -0
- package/dist/chunk-7YOI5XOW.js +55 -0
- package/dist/chunk-AFVTM5CP.js +0 -0
- package/dist/chunk-AN2WSL3B.cjs +1 -0
- package/dist/chunk-AT5Y5GLS.cjs +118 -0
- package/dist/chunk-AWPO2FI7.js +404 -0
- package/dist/chunk-BGXHIDUR.js +103 -0
- package/dist/chunk-BPZXL5TP.js +99 -0
- package/dist/chunk-BRTS5GWV.js +275 -0
- package/dist/chunk-BS3MLZCK.cjs +97 -0
- package/dist/chunk-BSPYYE2U.js +36 -0
- package/dist/chunk-BWJAEB42.js +48 -0
- package/dist/chunk-C4RMTISI.cjs +18 -0
- package/dist/chunk-C6M4XVR7.cjs +36 -0
- package/dist/chunk-CGC4D5MP.cjs +89 -0
- package/dist/chunk-CIRQYSQW.js +70 -0
- package/dist/chunk-CLOTWJNP.cjs +310 -0
- package/dist/chunk-CS7ZY35M.cjs +49 -0
- package/dist/chunk-CUV4RLDE.js +89 -0
- package/dist/chunk-CZAMLFSE.cjs +275 -0
- package/dist/chunk-D7QZLJ3Z.cjs +18 -0
- package/dist/chunk-DMSAAZ3M.cjs +92 -0
- package/dist/chunk-DUIZC7VJ.cjs +36 -0
- package/dist/chunk-DVBF4BDH.js +43 -0
- package/dist/chunk-EETYMP6K.cjs +584 -0
- package/dist/chunk-EFQL7JPX.js +0 -0
- package/dist/chunk-EFU7IAF5.cjs +12 -0
- package/dist/chunk-F3M2H5EX.cjs +79 -0
- package/dist/chunk-F436V2SX.cjs +254 -0
- package/dist/chunk-F664X2OY.js +250 -0
- package/dist/chunk-FF7ELUQW.cjs +1 -0
- package/dist/chunk-G3HE4S3Q.cjs +296 -0
- package/dist/chunk-GOPD5KUK.js +23 -0
- package/dist/chunk-GYTB24V6.cjs +107 -0
- package/dist/chunk-GZ657SGO.js +310 -0
- package/dist/chunk-H2QN65L6.cjs +1 -0
- package/dist/chunk-H6WUT7CK.js +22 -0
- package/dist/chunk-H76OQ75T.js +49 -0
- package/dist/chunk-HA3XONYI.js +18 -0
- package/dist/chunk-HF3UFXEU.js +296 -0
- package/dist/chunk-HGA47QVV.cjs +55 -0
- package/dist/chunk-HHPPAMXF.cjs +674 -0
- package/dist/chunk-HLV2XIE2.cjs +385 -0
- package/dist/chunk-HNQGIL45.cjs +96 -0
- package/dist/chunk-HQ37R7T3.js +53 -0
- package/dist/chunk-HXUGW4RR.js +187 -0
- package/dist/chunk-HYPRLWD3.js +272 -0
- package/dist/chunk-I7TLJUTP.cjs +6 -0
- package/dist/chunk-ICTWDTKC.cjs +1 -0
- package/dist/chunk-IPYKHDP4.cjs +187 -0
- package/dist/chunk-IRKREQ2X.cjs +18 -0
- package/dist/chunk-IVJJBMRY.js +92 -0
- package/dist/chunk-JPVIVOFG.js +26 -0
- package/dist/chunk-JYNBNSNF.js +151 -0
- package/dist/chunk-JZC3BXAC.js +93 -0
- package/dist/chunk-K5XPQWXN.cjs +92 -0
- package/dist/chunk-KQ3GOMHL.js +31 -0
- package/dist/chunk-KUJH72U6.cjs +159 -0
- package/dist/chunk-KVUXLC6M.cjs +479 -0
- package/dist/chunk-KZOJN57Q.js +19 -0
- package/dist/chunk-L3XPL4NP.cjs +53 -0
- package/dist/chunk-LOEMSXYB.js +0 -0
- package/dist/chunk-LU4KBPNG.cjs +23 -0
- package/dist/chunk-MWWWPQDB.js +26 -0
- package/dist/chunk-NCBB3WUJ.js +562 -0
- package/dist/chunk-NGCZTZST.cjs +562 -0
- package/dist/chunk-NSDKALIS.cjs +67 -0
- package/dist/chunk-NZHCRLNB.cjs +26 -0
- package/dist/chunk-OL4NANHB.js +0 -0
- package/dist/chunk-OTJRNKLR.js +96 -0
- package/dist/chunk-OWWFKTSK.js +0 -0
- package/dist/chunk-P2E3PB62.cjs +99 -0
- package/dist/chunk-P2QVFR7S.js +20 -0
- package/dist/chunk-P6ZGIYY7.cjs +18 -0
- package/dist/chunk-PFGSJJRY.cjs +19 -0
- package/dist/chunk-PNIUW7AJ.cjs +32 -0
- package/dist/chunk-Q2M2ONGO.js +70 -0
- package/dist/chunk-Q4PGP5KE.cjs +562 -0
- package/dist/chunk-QAI2YQPY.cjs +51 -0
- package/dist/chunk-QCD7UEZ3.cjs +59 -0
- package/dist/chunk-QEZ4R3SK.js +6 -0
- package/dist/chunk-QKDCPM2D.cjs +23 -0
- package/dist/chunk-QRGG3V7W.cjs +59 -0
- package/dist/chunk-QURIHUEC.js +107 -0
- package/dist/chunk-QY742LWN.js +30 -0
- package/dist/chunk-QYMRGYTN.js +127 -0
- package/dist/chunk-RLKJ2RZG.js +23 -0
- package/dist/chunk-RRR5BUOM.cjs +30 -0
- package/dist/chunk-RU3FCVXM.cjs +1 -0
- package/dist/chunk-RYTDVTV2.js +32 -0
- package/dist/chunk-RYYGUYDE.js +92 -0
- package/dist/chunk-SGLP4U3Y.cjs +67 -0
- package/dist/chunk-SJC543ZK.js +71 -0
- package/dist/chunk-SLYQK4SC.js +20 -0
- package/dist/chunk-SMLCOMLS.js +2888 -0
- package/dist/chunk-SNMOPLMH.cjs +372 -0
- package/dist/chunk-TRJUJYW7.cjs +151 -0
- package/dist/chunk-TTY5PE3P.js +30 -0
- package/dist/chunk-TXARYG3J.js +22 -0
- package/dist/chunk-TYXJU4EF.js +18 -0
- package/dist/chunk-U3PC7FYZ.cjs +26 -0
- package/dist/chunk-U67JM2WL.cjs +34 -0
- package/dist/chunk-UARGO5UG.js +59 -0
- package/dist/chunk-UCYE3H3F.cjs +43 -0
- package/dist/chunk-UGEGN35F.js +118 -0
- package/dist/chunk-UHUA3GQC.cjs +30 -0
- package/dist/chunk-UJQN477L.js +59 -0
- package/dist/chunk-UMX7DTFZ.cjs +70 -0
- package/dist/chunk-UT42P54P.js +372 -0
- package/dist/chunk-V76ZRGHQ.cjs +1 -0
- package/dist/chunk-VCIK366Y.cjs +1455 -0
- package/dist/chunk-VMA74ABT.cjs +137 -0
- package/dist/chunk-VSA62N2O.js +12 -0
- package/dist/chunk-WDAFLVQK.js +479 -0
- package/dist/chunk-WHMLMAMO.js +674 -0
- package/dist/chunk-WNBLKKLM.js +0 -0
- package/dist/chunk-WQ2GY7F3.js +46 -0
- package/dist/chunk-WRLCCK3M.cjs +30 -0
- package/dist/chunk-WVCZIOLY.js +562 -0
- package/dist/chunk-WZLGJQLW.js +385 -0
- package/dist/chunk-XB6FEBK6.js +34 -0
- package/dist/chunk-XMERDSRE.js +75 -0
- package/dist/chunk-XMLFKZYY.js +137 -0
- package/dist/chunk-XMM52J3T.js +584 -0
- package/dist/chunk-XZ7C5CGB.cjs +103 -0
- package/dist/chunk-YGFBAOKX.js +51 -0
- package/dist/chunk-YIN552MF.cjs +20 -0
- package/dist/chunk-YLC42E65.cjs +31 -0
- package/dist/chunk-YOTXRYJL.cjs +46 -0
- package/dist/chunk-ZAUGJZK7.js +99 -0
- package/dist/chunk-ZIZOQTDG.cjs +75 -0
- package/dist/chunk-ZMSV5VZI.cjs +2888 -0
- package/dist/chunk-ZN6MLZAE.cjs +71 -0
- package/dist/chunk-ZNCT6HXA.cjs +33 -0
- package/dist/components/Accordion/index.cjs +5 -1036
- package/dist/components/Accordion/index.js +5 -999
- package/dist/components/Alert/index.cjs +4 -69
- package/dist/components/Alert/index.js +4 -42
- package/dist/components/AutoResizeTextArea/index.cjs +6 -260
- package/dist/components/AutoResizeTextArea/index.js +6 -223
- package/dist/components/Avatar/index.cjs +4 -65
- package/dist/components/Avatar/index.js +4 -38
- package/dist/components/Badge/index.cjs +6 -69
- package/dist/components/Badge/index.js +5 -40
- package/dist/components/Box/index.cjs +4 -58
- package/dist/components/Box/index.js +4 -31
- package/dist/components/Breadcrumb/index.cjs +4 -42
- package/dist/components/Breadcrumb/index.js +3 -14
- package/dist/components/Button/index.cjs +5 -65
- package/dist/components/Button/index.js +5 -38
- package/dist/components/Calendar/index.cjs +6 -1317
- package/dist/components/Calendar/index.js +10 -1281
- package/dist/components/CardTab/index.cjs +4 -120
- package/dist/components/CardTab/index.js +4 -83
- package/dist/components/Chart/index.cjs +5 -708
- package/dist/components/Chart/index.js +4 -670
- package/dist/components/ChatInput/index.cjs +9 -390
- package/dist/components/ChatInput/index.js +9 -353
- package/dist/components/CheckBox/index.cjs +20 -1125
- package/dist/components/CheckBox/index.js +17 -1095
- package/dist/components/Chip/index.cjs +5 -55
- package/dist/components/Chip/index.js +5 -28
- package/dist/components/DatePicker/index.cjs +16 -2136
- package/dist/components/DatePicker/index.js +19 -2099
- package/dist/components/Divider/index.cjs +4 -58
- package/dist/components/Divider/index.js +4 -31
- package/dist/components/Drawer/index.cjs +5 -190
- package/dist/components/Drawer/index.js +5 -153
- package/dist/components/Dropdown/index.cjs +7 -375
- package/dist/components/Dropdown/index.js +7 -338
- package/dist/components/Editor/index.cjs +6 -1486
- package/dist/components/Editor/index.css +53 -0
- package/dist/components/Editor/index.d.cts +13 -0
- package/dist/components/Editor/index.d.ts +13 -0
- package/dist/components/Editor/index.js +6 -1453
- package/dist/components/EmptyState/index.cjs +4 -42
- package/dist/components/EmptyState/index.js +3 -14
- package/dist/components/FieldMessage/index.cjs +7 -182
- package/dist/components/FieldMessage/index.js +8 -154
- package/dist/components/FileUpload/index.cjs +7 -1171
- package/dist/components/FileUpload/index.js +7 -1134
- package/dist/components/HtmlTypeWriter/index.cjs +3 -171
- package/dist/components/HtmlTypeWriter/index.js +3 -133
- package/dist/components/IconButton/index.cjs +4 -65
- package/dist/components/IconButton/index.js +4 -38
- package/dist/components/ImageSelector/index.cjs +8 -1214
- package/dist/components/ImageSelector/index.js +8 -1177
- package/dist/components/Input/index.cjs +7 -429
- package/dist/components/Input/index.js +8 -392
- package/dist/components/Link/index.cjs +4 -61
- package/dist/components/Link/index.js +4 -34
- package/dist/components/LinkButton/index.cjs +5 -61
- package/dist/components/LinkButton/index.js +5 -34
- package/dist/components/Modal/index.cjs +5 -190
- package/dist/components/Modal/index.js +5 -153
- package/dist/components/NotificationBadge/index.cjs +5 -68
- package/dist/components/NotificationBadge/index.js +5 -40
- package/dist/components/Pagination/index.cjs +6 -1034
- package/dist/components/Pagination/index.js +6 -1007
- package/dist/components/PopOver/index.cjs +7 -363
- package/dist/components/PopOver/index.js +7 -326
- package/dist/components/Progress/index.cjs +5 -84
- package/dist/components/Progress/index.js +5 -57
- package/dist/components/Radio/index.cjs +7 -274
- package/dist/components/Radio/index.js +8 -237
- package/dist/components/Select/index.cjs +10 -1577
- package/dist/components/Select/index.js +11 -1540
- package/dist/components/Skeleton/index.cjs +4 -71
- package/dist/components/Skeleton/index.js +4 -44
- package/dist/components/Spinner/index.cjs +5 -88
- package/dist/components/Spinner/index.js +5 -61
- package/dist/components/Stat/index.cjs +5 -81
- package/dist/components/Stat/index.js +5 -54
- package/dist/components/Steps/index.cjs +7 -968
- package/dist/components/Steps/index.js +7 -941
- package/dist/components/Swiper/index.cjs +4 -357
- package/dist/components/Swiper/index.js +4 -320
- package/dist/components/Switch/index.cjs +7 -252
- package/dist/components/Switch/index.js +7 -215
- package/dist/components/Tab/index.cjs +4 -144
- package/dist/components/Tab/index.js +4 -107
- package/dist/components/Table/index.cjs +4 -310
- package/dist/components/Table/index.css +31 -5
- package/dist/components/Table/index.js +8 -273
- package/dist/components/Tag/index.cjs +6 -969
- package/dist/components/Tag/index.js +6 -942
- package/dist/components/TextArea/index.cjs +6 -229
- package/dist/components/TextArea/index.js +6 -192
- package/dist/components/TimePicker/index.cjs +9 -579
- package/dist/components/TimePicker/index.js +9 -542
- package/dist/components/Toast/index.cjs +5 -146
- package/dist/components/Toast/index.js +5 -108
- package/dist/components/ToggleChip/index.cjs +5 -66
- package/dist/components/ToggleChip/index.js +5 -39
- package/dist/components/Tooltip/index.cjs +6 -204
- package/dist/components/Tooltip/index.js +6 -167
- package/dist/components/Tour/index.cjs +6 -414
- package/dist/components/Tour/index.js +6 -377
- package/dist/components/Video/index.cjs +7 -796
- package/dist/components/Video/index.js +7 -759
- package/dist/components/index.cjs +140 -8315
- package/dist/components/index.css +31 -5
- package/dist/components/index.js +190 -8261
- package/dist/index.cjs +903 -13291
- package/dist/index.css +31 -5
- package/dist/index.js +524 -12499
- package/dist/layout/Grid/FullGrid/index.cjs +4 -46
- package/dist/layout/Grid/FullGrid/index.js +3 -18
- package/dist/layout/Grid/FullScreen/index.cjs +4 -46
- package/dist/layout/Grid/FullScreen/index.js +3 -18
- package/dist/layout/Grid/Item/index.cjs +5 -68
- package/dist/layout/Grid/Item/index.js +5 -41
- package/dist/layout/Grid/index.cjs +14 -109
- package/dist/layout/Grid/index.js +14 -79
- package/dist/layout/Header/index.cjs +4 -44
- package/dist/layout/Header/index.js +3 -16
- package/dist/layout/Layout/index.cjs +4 -42
- package/dist/layout/Layout/index.js +3 -14
- package/dist/layout/SideBar/index.cjs +6 -96
- package/dist/layout/SideBar/index.js +6 -57
- package/dist/layout/index.cjs +38 -209
- package/dist/layout/index.js +27 -153
- package/dist/tokens/index.cjs +627 -6119
- package/dist/tokens/index.js +324 -5489
- package/guidelines/components/editor.md +3 -0
- package/guidelines/components/table.md +23 -0
- package/guidelines/setup.md +7 -0
- package/package.json +6 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/tokens/breakpoints.ts
|
|
2
|
+
var BREAKPOINT_KEYS_ORDERED = ["laptop", "tablet", "mobile"];
|
|
3
|
+
var breakpoints = {
|
|
4
|
+
laptop: 1024,
|
|
5
|
+
tablet: 768,
|
|
6
|
+
mobile: 0
|
|
7
|
+
};
|
|
8
|
+
var gridColumns = {
|
|
9
|
+
laptop: 12,
|
|
10
|
+
tablet: 8,
|
|
11
|
+
mobile: 4
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
BREAKPOINT_KEYS_ORDERED,
|
|
16
|
+
breakpoints,
|
|
17
|
+
gridColumns
|
|
18
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Field,
|
|
3
|
+
hasError
|
|
4
|
+
} from "./chunk-7YOI5XOW.js";
|
|
5
|
+
import {
|
|
6
|
+
clsx_default
|
|
7
|
+
} from "./chunk-KZOJN57Q.js";
|
|
8
|
+
|
|
9
|
+
// src/components/AutoResizeTextArea/AutoResizeTextArea.tsx
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
var MAX_HEIGHT = 400;
|
|
13
|
+
var AutoResizeTextArea = React.forwardRef(
|
|
14
|
+
(props, ref) => {
|
|
15
|
+
const { value, className, onChange, disabled, bare = false, validations, label, required, ...textareaProps } = props;
|
|
16
|
+
const autoId = React.useId();
|
|
17
|
+
const fieldId = props.id ?? autoId;
|
|
18
|
+
const localRef = React.useRef(null);
|
|
19
|
+
const setRefs = (el) => {
|
|
20
|
+
localRef.current = el;
|
|
21
|
+
if (!ref) return;
|
|
22
|
+
if (typeof ref === "function") ref(el);
|
|
23
|
+
else if (ref && "current" in ref)
|
|
24
|
+
ref.current = el;
|
|
25
|
+
};
|
|
26
|
+
const updateHeight = () => {
|
|
27
|
+
const el = localRef.current;
|
|
28
|
+
if (!el) return;
|
|
29
|
+
el.style.height = "0px";
|
|
30
|
+
el.style.height = `${Math.min(el.scrollHeight, MAX_HEIGHT)}px`;
|
|
31
|
+
};
|
|
32
|
+
const handleChange = (e) => {
|
|
33
|
+
if (onChange) {
|
|
34
|
+
const event = {
|
|
35
|
+
...e,
|
|
36
|
+
target: { value: e.target.value }
|
|
37
|
+
};
|
|
38
|
+
onChange(event);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
React.useEffect(() => {
|
|
42
|
+
updateHeight();
|
|
43
|
+
}, [value]);
|
|
44
|
+
if (bare) {
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
46
|
+
"textarea",
|
|
47
|
+
{
|
|
48
|
+
"aria-invalid": hasError(validations) || void 0,
|
|
49
|
+
...textareaProps,
|
|
50
|
+
ref: setRefs,
|
|
51
|
+
id: fieldId,
|
|
52
|
+
className,
|
|
53
|
+
disabled,
|
|
54
|
+
value,
|
|
55
|
+
onChange: handleChange
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
const control = /* @__PURE__ */ jsx("div", { className: clsx_default("lib-xplat-auto-resize-textarea-wrapper", className), children: /* @__PURE__ */ jsx("div", { className: clsx_default("lib-xplat-auto-resize-textarea", disabled && "disabled"), children: /* @__PURE__ */ jsx(
|
|
60
|
+
"textarea",
|
|
61
|
+
{
|
|
62
|
+
"aria-invalid": hasError(validations) || void 0,
|
|
63
|
+
...textareaProps,
|
|
64
|
+
ref: setRefs,
|
|
65
|
+
id: fieldId,
|
|
66
|
+
disabled,
|
|
67
|
+
value,
|
|
68
|
+
onChange: handleChange
|
|
69
|
+
}
|
|
70
|
+
) }) });
|
|
71
|
+
return /* @__PURE__ */ jsx(Field, { validations, label, required, htmlFor: fieldId, children: control });
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
AutoResizeTextArea.displayName = "AutoResizeTextArea";
|
|
75
|
+
var AutoResizeTextArea_default = AutoResizeTextArea;
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
AutoResizeTextArea_default
|
|
79
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/layout/Grid/FullGrid/FullGrid.tsx
|
|
2
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
3
|
+
var GAP_MAP = {
|
|
4
|
+
none: "var(--spacing-space-none)",
|
|
5
|
+
xs: "var(--spacing-space-1)",
|
|
6
|
+
sm: "var(--spacing-space-2)",
|
|
7
|
+
md: "var(--spacing-space-4)",
|
|
8
|
+
lg: "var(--spacing-space-6)",
|
|
9
|
+
xl: "var(--spacing-space-8)",
|
|
10
|
+
"2xl": "var(--spacing-space-12)"
|
|
11
|
+
};
|
|
12
|
+
var FullGrid = (props) => {
|
|
13
|
+
const { children, gap } = props;
|
|
14
|
+
const style = gap != null ? { gap: GAP_MAP[gap] } : void 0;
|
|
15
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "lib-xplat-full-grid", style, children });
|
|
16
|
+
};
|
|
17
|
+
FullGrid.displayName = "FullGrid";
|
|
18
|
+
var FullGrid_default = FullGrid;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.FullGrid_default = FullGrid_default;
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
var Breadcrumb = (props) => {
|
|
4
|
+
const { items, separator = "/" } = props;
|
|
5
|
+
return /* @__PURE__ */ jsx("nav", { className: "lib-xplat-breadcrumb", "aria-label": "\uACBD\uB85C", children: /* @__PURE__ */ jsx("ol", { children: items.map((item, index) => {
|
|
6
|
+
const isLast = index === items.length - 1;
|
|
7
|
+
return /* @__PURE__ */ jsxs("li", { children: [
|
|
8
|
+
isLast ? /* @__PURE__ */ jsx("span", { className: "current", "aria-current": "page", children: item.label }) : item.href ? /* @__PURE__ */ jsx("a", { href: item.href, className: "link", children: item.label }) : /* @__PURE__ */ jsx("button", { className: "link", onClick: item.onClick, children: item.label }),
|
|
9
|
+
!isLast && /* @__PURE__ */ jsx("span", { className: "separator", children: separator })
|
|
10
|
+
] }, index);
|
|
11
|
+
}) }) });
|
|
12
|
+
};
|
|
13
|
+
Breadcrumb.displayName = "Breadcrumb";
|
|
14
|
+
var Breadcrumb_default = Breadcrumb;
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
Breadcrumb_default
|
|
18
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChevronLeftIcon_default,
|
|
3
|
+
ChevronRightIcon_default
|
|
4
|
+
} from "./chunk-XMM52J3T.js";
|
|
5
|
+
import {
|
|
6
|
+
normalizeStatus
|
|
7
|
+
} from "./chunk-QEZ4R3SK.js";
|
|
8
|
+
import {
|
|
9
|
+
clsx_default
|
|
10
|
+
} from "./chunk-KZOJN57Q.js";
|
|
11
|
+
|
|
12
|
+
// src/components/Pagination/Pagination.tsx
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
var getPageRange = (current, totalPages, siblingCount) => {
|
|
15
|
+
const totalNumbers = siblingCount * 2 + 5;
|
|
16
|
+
if (totalPages <= totalNumbers) {
|
|
17
|
+
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
18
|
+
}
|
|
19
|
+
const leftSibling = Math.max(current - siblingCount, 1);
|
|
20
|
+
const rightSibling = Math.min(current + siblingCount, totalPages);
|
|
21
|
+
const showLeftDots = leftSibling > 3;
|
|
22
|
+
const showRightDots = rightSibling < totalPages - 2;
|
|
23
|
+
if (!showLeftDots && showRightDots) {
|
|
24
|
+
const leftCount = siblingCount * 2 + 3;
|
|
25
|
+
const leftRange = Array.from({ length: leftCount }, (_, i) => i + 1);
|
|
26
|
+
return [...leftRange, "...", totalPages];
|
|
27
|
+
}
|
|
28
|
+
if (showLeftDots && !showRightDots) {
|
|
29
|
+
const rightCount = siblingCount * 2 + 3;
|
|
30
|
+
const rightRange = Array.from({ length: rightCount }, (_, i) => totalPages - rightCount + i + 1);
|
|
31
|
+
return [1, "...", ...rightRange];
|
|
32
|
+
}
|
|
33
|
+
const middleRange = Array.from(
|
|
34
|
+
{ length: rightSibling - leftSibling + 1 },
|
|
35
|
+
(_, i) => leftSibling + i
|
|
36
|
+
);
|
|
37
|
+
return [1, "...", ...middleRange, "...", totalPages];
|
|
38
|
+
};
|
|
39
|
+
var Pagination = (props) => {
|
|
40
|
+
const {
|
|
41
|
+
current,
|
|
42
|
+
total,
|
|
43
|
+
pageSize = 10,
|
|
44
|
+
siblingCount = 1,
|
|
45
|
+
onChange,
|
|
46
|
+
size = "md",
|
|
47
|
+
type = "primary"
|
|
48
|
+
} = props;
|
|
49
|
+
const statusType = normalizeStatus(type);
|
|
50
|
+
const totalPages = Math.max(1, Math.ceil(total / pageSize));
|
|
51
|
+
const pages = getPageRange(current, totalPages, siblingCount);
|
|
52
|
+
const handleClick = (page) => {
|
|
53
|
+
if (page !== current && page >= 1 && page <= totalPages) {
|
|
54
|
+
onChange?.(page);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return /* @__PURE__ */ jsxs("nav", { className: clsx_default("lib-xplat-pagination", size, statusType), "aria-label": "\uD398\uC774\uC9C0 \uB124\uBE44\uAC8C\uC774\uC158", children: [
|
|
58
|
+
/* @__PURE__ */ jsx(
|
|
59
|
+
"button",
|
|
60
|
+
{
|
|
61
|
+
className: "page-btn prev",
|
|
62
|
+
disabled: current <= 1,
|
|
63
|
+
onClick: () => handleClick(current - 1),
|
|
64
|
+
"aria-label": "\uC774\uC804 \uD398\uC774\uC9C0",
|
|
65
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon_default, {})
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
pages.map(
|
|
69
|
+
(page, i) => page === "..." ? /* @__PURE__ */ jsx("span", { className: "dots", children: "..." }, `dots-${i}`) : /* @__PURE__ */ jsx(
|
|
70
|
+
"button",
|
|
71
|
+
{
|
|
72
|
+
className: clsx_default("page-btn", { active: page === current }),
|
|
73
|
+
onClick: () => handleClick(page),
|
|
74
|
+
"aria-current": page === current ? "page" : void 0,
|
|
75
|
+
children: page
|
|
76
|
+
},
|
|
77
|
+
page
|
|
78
|
+
)
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
"button",
|
|
82
|
+
{
|
|
83
|
+
className: "page-btn next",
|
|
84
|
+
disabled: current >= totalPages,
|
|
85
|
+
onClick: () => handleClick(current + 1),
|
|
86
|
+
"aria-label": "\uB2E4\uC74C \uD398\uC774\uC9C0",
|
|
87
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon_default, {})
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] });
|
|
91
|
+
};
|
|
92
|
+
Pagination.displayName = "Pagination";
|
|
93
|
+
var Pagination_default = Pagination;
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
Pagination_default
|
|
97
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkPFGSJJRYcjs = require('./chunk-PFGSJJRY.cjs');
|
|
4
|
+
|
|
5
|
+
// src/components/Chip/Chip.tsx
|
|
6
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
7
|
+
var Chip = (props) => {
|
|
8
|
+
const {
|
|
9
|
+
children,
|
|
10
|
+
type = "primary",
|
|
11
|
+
size = "md"
|
|
12
|
+
} = props;
|
|
13
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "lib-xplat-chip", type, size), children });
|
|
14
|
+
};
|
|
15
|
+
Chip.displayName = "Chip";
|
|
16
|
+
var Chip_default = Chip;
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.Chip_default = Chip_default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkQCD7UEZ3cjs = require('./chunk-QCD7UEZ3.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkEFU7IAF5cjs = require('./chunk-EFU7IAF5.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunk4KYHHJ6Zcjs = require('./chunk-4KYHHJ6Z.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var _chunkPFGSJJRYcjs = require('./chunk-PFGSJJRY.cjs');
|
|
16
|
+
|
|
17
|
+
// src/components/PopOver/PopOver.tsx
|
|
18
|
+
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
19
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
20
|
+
var PopOver = (props) => {
|
|
21
|
+
const { children, isOpen, onClose, PopOverEl } = props;
|
|
22
|
+
const popRef = _react2.default.useRef(null);
|
|
23
|
+
const triggerRef = _react2.default.useRef(null);
|
|
24
|
+
const [localOpen, setLocalOpen] = _react2.default.useState(false);
|
|
25
|
+
const [eventTrigger, setEventTrigger] = _react2.default.useState(false);
|
|
26
|
+
_chunkQCD7UEZ3cjs.useClickOutside_default.call(void 0, [popRef, triggerRef], onClose, isOpen);
|
|
27
|
+
_chunk4KYHHJ6Zcjs.useCloseWhenFocusHidden.call(void 0, isOpen, triggerRef, popRef, onClose);
|
|
28
|
+
_chunk4KYHHJ6Zcjs.useEscapeKey.call(void 0, isOpen, () => {
|
|
29
|
+
onClose();
|
|
30
|
+
_optionalChain([triggerRef, 'access', _ => _.current, 'optionalAccess', _2 => _2.focus, 'call', _3 => _3({ preventScroll: true })]);
|
|
31
|
+
});
|
|
32
|
+
const host = _chunkQCD7UEZ3cjs.useOverlayHost_default.call(void 0, triggerRef, localOpen);
|
|
33
|
+
_chunk4KYHHJ6Zcjs.useAutoPosition_default.call(void 0, triggerRef, popRef, localOpen);
|
|
34
|
+
_react2.default.useEffect(() => {
|
|
35
|
+
if (isOpen) {
|
|
36
|
+
setLocalOpen(isOpen);
|
|
37
|
+
setTimeout(() => {
|
|
38
|
+
setEventTrigger(true);
|
|
39
|
+
}, 1);
|
|
40
|
+
} else {
|
|
41
|
+
setEventTrigger(false);
|
|
42
|
+
setTimeout(() => {
|
|
43
|
+
setLocalOpen(isOpen);
|
|
44
|
+
}, 200);
|
|
45
|
+
}
|
|
46
|
+
}, [isOpen]);
|
|
47
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
className: "lib-xplat-pop-over",
|
|
51
|
+
ref: triggerRef,
|
|
52
|
+
onClick: () => {
|
|
53
|
+
if (isOpen) onClose();
|
|
54
|
+
},
|
|
55
|
+
children: [
|
|
56
|
+
children,
|
|
57
|
+
localOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFU7IAF5cjs.Portal_default, { container: host, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
className: _chunkPFGSJJRYcjs.clsx_default.call(void 0,
|
|
61
|
+
"lib-xplat-pop-over-content",
|
|
62
|
+
eventTrigger && "visible"
|
|
63
|
+
),
|
|
64
|
+
ref: popRef,
|
|
65
|
+
children: PopOverEl
|
|
66
|
+
}
|
|
67
|
+
) })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
PopOver.displayName = "PopOver";
|
|
73
|
+
var PopOver_default = PopOver;
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
exports.PopOver_default = PopOver_default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ErrorIcon_default,
|
|
3
|
+
InfoIcon_default,
|
|
4
|
+
SuccessIcon_default
|
|
5
|
+
} from "./chunk-BGXHIDUR.js";
|
|
6
|
+
import {
|
|
7
|
+
clsx_default
|
|
8
|
+
} from "./chunk-KZOJN57Q.js";
|
|
9
|
+
|
|
10
|
+
// src/components/FieldMessage/FieldMessage.tsx
|
|
11
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
var ICON = {
|
|
13
|
+
default: /* @__PURE__ */ jsx(InfoIcon_default, {}),
|
|
14
|
+
success: /* @__PURE__ */ jsx(SuccessIcon_default, {}),
|
|
15
|
+
warning: /* @__PURE__ */ jsx(InfoIcon_default, {}),
|
|
16
|
+
error: /* @__PURE__ */ jsx(ErrorIcon_default, {})
|
|
17
|
+
};
|
|
18
|
+
var FieldMessage = (props) => {
|
|
19
|
+
const { validations } = props;
|
|
20
|
+
if (!validations || validations.length === 0) return null;
|
|
21
|
+
return /* @__PURE__ */ jsx("div", { className: "lib-xplat-field-message-wrap", children: validations.map((v, idx) => /* @__PURE__ */ jsxs(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className: clsx_default("lib-xplat-field-message", v.status),
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "icon", children: ICON[v.status] }),
|
|
27
|
+
/* @__PURE__ */ jsx("span", { children: v.message })
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
`${v.message}_${idx}`
|
|
31
|
+
)) });
|
|
32
|
+
};
|
|
33
|
+
FieldMessage.displayName = "FieldMessage";
|
|
34
|
+
var FieldMessage_default = FieldMessage;
|
|
35
|
+
var Field = (props) => {
|
|
36
|
+
const { label, required = false, htmlFor, labelId, validations, children } = props;
|
|
37
|
+
const hasMessages = !!validations && validations.length > 0;
|
|
38
|
+
if (!label && !hasMessages) return /* @__PURE__ */ jsx(Fragment, { children });
|
|
39
|
+
return /* @__PURE__ */ jsxs("div", { className: "lib-xplat-field", children: [
|
|
40
|
+
label && /* @__PURE__ */ jsxs("label", { className: "lib-xplat-field-label", id: labelId, htmlFor, children: [
|
|
41
|
+
label,
|
|
42
|
+
required && /* @__PURE__ */ jsx("span", { className: "required", "aria-hidden": "true", children: "*" })
|
|
43
|
+
] }),
|
|
44
|
+
children,
|
|
45
|
+
hasMessages && /* @__PURE__ */ jsx(FieldMessage, { validations })
|
|
46
|
+
] });
|
|
47
|
+
};
|
|
48
|
+
Field.displayName = "Field";
|
|
49
|
+
var hasError = (validations) => !!validations?.some((v) => v.status === "error");
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
FieldMessage_default,
|
|
53
|
+
Field,
|
|
54
|
+
hasError
|
|
55
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/tokens/svg/date/CalendarIcon.tsx
|
|
2
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
3
|
+
var CalendarIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 20 20",
|
|
10
|
+
fill: "none",
|
|
11
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.334 0.916992C13.748 0.917256 14.084 1.25294 14.084 1.66699V2.58301H15.833C17.1676 2.58301 18.2499 3.66542 18.25 5V16.666C18.25 18.0007 17.1677 19.083 15.833 19.083H4.16699C2.8323 19.083 1.75 18.0007 1.75 16.666V5C1.75013 3.66542 2.83239 2.58301 4.16699 2.58301H5.91699V1.66699C5.91699 1.25278 6.25278 0.916992 6.66699 0.916992C7.08098 0.917256 7.41699 1.25294 7.41699 1.66699V2.58301H12.584V1.66699C12.584 1.25278 12.9198 0.916992 13.334 0.916992ZM3.25 9.08301V16.666C3.25 17.1723 3.66073 17.583 4.16699 17.583H15.833C16.3393 17.583 16.75 17.1723 16.75 16.666V9.08301H3.25ZM4.16699 4.08301C3.66081 4.08301 3.25013 4.49385 3.25 5V7.58301H16.75V5C16.7499 4.49385 16.3392 4.08301 15.833 4.08301H14.084V5C14.0839 5.41394 13.7479 5.74974 13.334 5.75C12.9199 5.75 12.5841 5.4141 12.584 5V4.08301H7.41699V5C7.41686 5.41394 7.0809 5.74974 6.66699 5.75C6.25286 5.75 5.91712 5.4141 5.91699 5V4.08301H4.16699Z", fill: "currentColor" })
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
var CalendarIcon_default = CalendarIcon;
|
|
15
|
+
|
|
16
|
+
// src/tokens/svg/date/CalenderIcon.tsx
|
|
17
|
+
|
|
18
|
+
var CalenderIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19
|
+
"svg",
|
|
20
|
+
{
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
width: "1em",
|
|
23
|
+
height: "1em",
|
|
24
|
+
viewBox: "0 0 16 16",
|
|
25
|
+
fill: "none",
|
|
26
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27
|
+
"path",
|
|
28
|
+
{
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
clipRule: "evenodd",
|
|
31
|
+
d: "M10.6671 0.733398C10.9983 0.73361 11.2671 1.00216 11.2671 1.3334V2.06621H12.6663C13.734 2.06621 14.5998 2.93214 14.5999 3.9998V13.3326C14.5999 14.4004 13.7341 15.2662 12.6663 15.2662H3.3335C2.26575 15.2662 1.3999 14.4004 1.3999 13.3326V3.9998C1.40001 2.93214 2.26581 2.06621 3.3335 2.06621H4.7335V1.3334C4.7335 1.00203 5.00213 0.733398 5.3335 0.733398C5.66469 0.73361 5.9335 1.00216 5.9335 1.3334V2.06621H10.0671V1.3334C10.0671 1.00203 10.3357 0.733398 10.6671 0.733398ZM2.5999 7.26621V13.3326C2.5999 13.7376 2.92849 14.0662 3.3335 14.0662H12.6663C13.0713 14.0662 13.3999 13.7376 13.3999 13.3326V7.26621H2.5999ZM3.3335 3.26621C2.92855 3.26621 2.60001 3.59489 2.5999 3.9998V6.06621H13.3999V3.9998C13.3998 3.59489 13.0713 3.26621 12.6663 3.26621H11.2671V3.9998C11.267 4.33096 10.9982 4.59959 10.6671 4.5998C10.3358 4.5998 10.0672 4.33109 10.0671 3.9998V3.26621H5.9335V3.9998C5.93339 4.33096 5.66462 4.59959 5.3335 4.5998C5.00219 4.5998 4.7336 4.33109 4.7335 3.9998V3.26621H3.3335Z",
|
|
32
|
+
fill: "currentColor"
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
var CalenderIcon_default = CalenderIcon;
|
|
38
|
+
|
|
39
|
+
// src/tokens/svg/date/ClockIcon.tsx
|
|
40
|
+
|
|
41
|
+
var ClockIcon = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
42
|
+
"svg",
|
|
43
|
+
{
|
|
44
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
+
width: "1em",
|
|
46
|
+
height: "1em",
|
|
47
|
+
viewBox: "0 0 20 20",
|
|
48
|
+
fill: "none",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "g", { clipPath: "url(#clock-clip)", children: [
|
|
51
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M10 4.25C10.4142 4.25 10.75 4.58579 10.75 5V9.53613L13.6689 10.9961C14.0392 11.1814 14.1891 11.6316 14.0039 12.002C13.8187 12.3723 13.3685 12.5229 12.998 12.3379L9.66504 10.6709C9.41095 10.5439 9.25 10.2841 9.25 10V5C9.25 4.58579 9.58579 4.25 10 4.25Z", fill: "currentColor" }),
|
|
52
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 0.916992C15.0163 0.917256 19.0838 4.98373 19.084 10C19.0839 15.0163 15.0163 19.0837 10 19.084C4.98364 19.0838 0.916148 15.0164 0.916016 10C0.916191 4.98367 4.98367 0.917168 10 0.916992ZM10 2.41699C5.8121 2.41717 2.41717 5.8121 2.41699 10C2.41712 14.1879 5.81207 17.5838 10 17.584C14.1879 17.5837 17.5839 14.1879 17.584 10C17.5838 5.81215 14.1878 2.41726 10 2.41699Z", fill: "currentColor" })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "defs", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "clipPath", { id: "clock-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "rect", { width: "20", height: "20", fill: "currentColor" }) }) })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
var ClockIcon_default = ClockIcon;
|
|
59
|
+
|
|
60
|
+
// src/tokens/svg/date/SunriseIcon.tsx
|
|
61
|
+
|
|
62
|
+
var SunriseIcon = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
63
|
+
"svg",
|
|
64
|
+
{
|
|
65
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
66
|
+
width: "1em",
|
|
67
|
+
height: "1em",
|
|
68
|
+
viewBox: "0 0 20 20",
|
|
69
|
+
fill: "none",
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "g", { clipPath: "url(#sunrise-clip)", children: [
|
|
72
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M19.167 17.583C19.5809 17.5833 19.9169 17.9191 19.917 18.333C19.917 18.7471 19.581 19.0827 19.167 19.083H0.833984C0.419771 19.083 0.0830078 18.7472 0.0830078 18.333C0.0831396 17.9189 0.419852 17.583 0.833984 17.583H19.167Z", fill: "currentColor" }),
|
|
73
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M2.50098 14.25C2.91482 14.2504 3.25098 14.5861 3.25098 15C3.25098 15.4139 2.91482 15.7496 2.50098 15.75H0.833984C0.419771 15.75 0.0830078 15.4142 0.0830078 15C0.0830078 14.5858 0.419771 14.25 0.833984 14.25H2.50098Z", fill: "currentColor" }),
|
|
74
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M10.001 10.083C11.3047 10.0832 12.5557 10.6016 13.4775 11.5234C14.3993 12.4454 14.9169 13.6963 14.917 15C14.9168 15.4139 14.5809 15.7497 14.167 15.75C13.753 15.7498 13.4172 15.414 13.417 15C13.4169 14.0941 13.0574 13.2246 12.417 12.584C11.7764 11.9434 10.9068 11.5832 10.001 11.583C9.09499 11.583 8.22568 11.9435 7.58496 12.584C6.94427 13.2247 6.58405 14.0939 6.58398 15C6.58381 15.4139 6.24786 15.7497 5.83398 15.75C5.41988 15.75 5.08416 15.4141 5.08398 15C5.08405 13.6961 5.60242 12.4454 6.52441 11.5234C7.44643 10.6016 8.69717 10.083 10.001 10.083Z", fill: "currentColor" }),
|
|
75
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M19.167 14.25C19.5811 14.2502 19.917 14.5859 19.917 15C19.917 15.4141 19.5811 15.7498 19.167 15.75H17.5C17.0858 15.75 16.75 15.4142 16.75 15C16.75 14.5858 17.0858 14.25 17.5 14.25H19.167Z", fill: "currentColor" }),
|
|
76
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M2.98633 7.98633C3.27922 7.69343 3.75398 7.69343 4.04688 7.98633L5.23047 9.16992C5.5231 9.46284 5.52328 9.93766 5.23047 10.2305C4.93766 10.5233 4.46284 10.5231 4.16992 10.2305L2.98633 9.04688C2.69343 8.75398 2.69343 8.27922 2.98633 7.98633Z", fill: "currentColor" }),
|
|
77
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M15.9531 7.98633C16.246 7.69357 16.7208 7.69348 17.0137 7.98633C17.3064 8.27919 17.3064 8.75401 17.0137 9.04688L15.8301 10.2305C15.5372 10.5232 15.0624 10.5232 14.7695 10.2305C14.4767 9.93762 14.4768 9.46283 14.7695 9.16992L15.9531 7.98633Z", fill: "currentColor" }),
|
|
78
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M10 0.916992C10.0873 0.916992 10.1701 0.934492 10.248 0.961914C10.2596 0.965972 10.2718 0.968018 10.2832 0.972656C10.3113 0.984139 10.337 0.999973 10.3633 1.01465C10.4224 1.04763 10.4801 1.08653 10.5303 1.13672L13.8643 4.46973C14.1566 4.7625 14.1566 5.23747 13.8643 5.53027C13.5715 5.82304 13.0966 5.8228 12.8037 5.53027L10.75 3.47656V7.5C10.7499 7.9141 10.4141 8.25 10 8.25C9.58587 8.25 9.25013 7.9141 9.25 7.5V3.47656L7.19727 5.53027C6.90449 5.82304 6.42964 5.8228 6.13672 5.53027C5.84399 5.23737 5.84388 4.76257 6.13672 4.46973L9.46973 1.13672C9.526 1.08047 9.59011 1.03755 9.65723 1.00293C9.67427 0.994113 9.69024 0.983103 9.70801 0.975586L9.71777 0.97168C9.73425 0.965012 9.75173 0.961503 9.76855 0.956055C9.8417 0.932251 9.91892 0.916992 10 0.916992Z", fill: "currentColor" })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "defs", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "clipPath", { id: "sunrise-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "rect", { width: "20", height: "20", fill: "currentColor" }) }) })
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
var SunriseIcon_default = SunriseIcon;
|
|
85
|
+
|
|
86
|
+
// src/tokens/svg/date/SunsetIcon.tsx
|
|
87
|
+
|
|
88
|
+
var SunsetIcon = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
89
|
+
"svg",
|
|
90
|
+
{
|
|
91
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
+
width: "1em",
|
|
93
|
+
height: "1em",
|
|
94
|
+
viewBox: "0 0 20 20",
|
|
95
|
+
fill: "none",
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "g", { clipPath: "url(#sunset-clip)", children: [
|
|
98
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M19.167 17.583C19.5809 17.5833 19.9169 17.9191 19.917 18.333C19.917 18.7471 19.581 19.0827 19.167 19.083H0.833984C0.419771 19.083 0.0830078 18.7472 0.0830078 18.333C0.0831396 17.9189 0.419852 17.583 0.833984 17.583H19.167Z", fill: "currentColor" }),
|
|
99
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M2.50098 14.25C2.91482 14.2504 3.25098 14.5861 3.25098 15C3.25098 15.4139 2.91482 15.7496 2.50098 15.75H0.833984C0.419771 15.75 0.0830078 15.4142 0.0830078 15C0.0830078 14.5858 0.419771 14.25 0.833984 14.25H2.50098Z", fill: "currentColor" }),
|
|
100
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M10.001 10.083C11.3047 10.0832 12.5557 10.6016 13.4775 11.5234C14.3993 12.4454 14.9169 13.6963 14.917 15C14.9168 15.4139 14.5809 15.7497 14.167 15.75C13.753 15.7498 13.4172 15.414 13.417 15C13.4169 14.0941 13.0574 13.2246 12.417 12.584C11.7764 11.9434 10.9068 11.5832 10.001 11.583C9.09499 11.583 8.22568 11.9435 7.58496 12.584C6.94427 13.2247 6.58405 14.0939 6.58398 15C6.58381 15.4139 6.24786 15.7497 5.83398 15.75C5.41988 15.75 5.08416 15.4141 5.08398 15C5.08405 13.6961 5.60242 12.4454 6.52441 11.5234C7.44643 10.6016 8.69717 10.083 10.001 10.083Z", fill: "currentColor" }),
|
|
101
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M19.167 14.25C19.5811 14.2502 19.917 14.5859 19.917 15C19.917 15.4141 19.5811 15.7498 19.167 15.75H17.5C17.0858 15.75 16.75 15.4142 16.75 15C16.75 14.5858 17.0858 14.25 17.5 14.25H19.167Z", fill: "currentColor" }),
|
|
102
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M2.98633 7.98633C3.27922 7.69343 3.75398 7.69343 4.04688 7.98633L5.23047 9.16992C5.5231 9.46284 5.52328 9.93766 5.23047 10.2305C4.93766 10.5233 4.46284 10.5231 4.16992 10.2305L2.98633 9.04688C2.69343 8.75398 2.69343 8.27922 2.98633 7.98633Z", fill: "currentColor" }),
|
|
103
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M15.9531 7.98633C16.246 7.69357 16.7208 7.69348 17.0137 7.98633C17.3064 8.27919 17.3064 8.75401 17.0137 9.04688L15.8301 10.2305C15.5372 10.5232 15.0624 10.5232 14.7695 10.2305C14.4767 9.93762 14.4768 9.46283 14.7695 9.16992L15.9531 7.98633Z", fill: "currentColor" }),
|
|
104
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M10 0.916992C10.4142 0.916992 10.75 1.25278 10.75 1.66699V5.68945L12.8037 3.63672C13.0966 3.34411 13.5715 3.34392 13.8643 3.63672C14.1565 3.92956 14.1567 4.40453 13.8643 4.69727L10.5303 8.03027C10.5 8.06057 10.4664 8.08632 10.4326 8.11035C10.3863 8.14321 10.3364 8.17059 10.2832 8.19238C10.2638 8.20031 10.2435 8.2047 10.2236 8.21094C10.1978 8.21906 10.1725 8.22906 10.1455 8.23438C10.1413 8.23521 10.137 8.23557 10.1328 8.23633C10.0896 8.24407 10.0454 8.25 10 8.25C9.95463 8.25 9.91033 8.24502 9.86719 8.2373C9.86165 8.23632 9.8561 8.23549 9.85059 8.23438C9.83516 8.23126 9.82073 8.22475 9.80566 8.2207C9.77435 8.21231 9.74312 8.20392 9.71289 8.19141C9.68498 8.17981 9.6589 8.16515 9.63281 8.15039C9.61638 8.14112 9.59885 8.13366 9.58301 8.12305C9.58031 8.12123 9.57787 8.11903 9.5752 8.11719C9.53822 8.09171 9.50264 8.06314 9.46973 8.03027L6.13672 4.69727C5.84383 4.40437 5.84383 3.92961 6.13672 3.63672C6.42962 3.34395 6.90441 3.34387 7.19727 3.63672L9.25 5.68945V1.66699C9.25 1.25278 9.58579 0.916992 10 0.916992Z", fill: "currentColor" })
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "defs", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "clipPath", { id: "sunset-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "rect", { width: "20", height: "20", fill: "currentColor" }) }) })
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
var SunsetIcon_default = SunsetIcon;
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
exports.CalendarIcon_default = CalendarIcon_default; exports.CalenderIcon_default = CalenderIcon_default; exports.ClockIcon_default = ClockIcon_default; exports.SunriseIcon_default = SunriseIcon_default; exports.SunsetIcon_default = SunsetIcon_default;
|