@zentrades-ui/components 0.2.0 → 0.2.2
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/CHANGELOG.md +65 -0
- package/README.md +38 -2
- package/dist/components.d.ts +2 -44
- package/dist/components.js +225 -604
- package/dist/components.js.map +1 -1
- package/dist/icons.d.ts +1 -47
- package/dist/icons.js +2 -441
- package/dist/icons.js.map +1 -1
- package/dist/index.d.ts +2 -44
- package/dist/index.js +225 -604
- package/dist/index.js.map +1 -1
- package/dist/theme.d.ts +1 -0
- package/package.json +8 -5
package/dist/components.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import './components.css';
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
2
15
|
|
|
3
16
|
// src/atoms/Box.tsx
|
|
4
17
|
import { forwardRef } from "react";
|
|
@@ -1113,6 +1126,7 @@ var checkboxIndicator = "checkbox_checkboxIndicator__1dtlqzp1";
|
|
|
1113
1126
|
var checkboxRoot = "checkbox_checkboxRoot__1dtlqzp0";
|
|
1114
1127
|
|
|
1115
1128
|
// src/components/Checkbox/Checkbox.tsx
|
|
1129
|
+
import { CheckIcon, MinusIcon } from "@zentrades-ui/icons";
|
|
1116
1130
|
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1117
1131
|
var sizePxMap = {
|
|
1118
1132
|
xs: 12,
|
|
@@ -1120,34 +1134,12 @@ var sizePxMap = {
|
|
|
1120
1134
|
md: 20,
|
|
1121
1135
|
lg: 24
|
|
1122
1136
|
};
|
|
1123
|
-
var
|
|
1124
|
-
"
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
fill: "none",
|
|
1130
|
-
stroke: "currentColor",
|
|
1131
|
-
strokeWidth: "3",
|
|
1132
|
-
strokeLinecap: "round",
|
|
1133
|
-
strokeLinejoin: "round",
|
|
1134
|
-
children: /* @__PURE__ */ jsx9("polyline", { points: "20 6 9 17 4 12" })
|
|
1135
|
-
}
|
|
1136
|
-
);
|
|
1137
|
-
var MinusIcon = ({ size }) => /* @__PURE__ */ jsx9(
|
|
1138
|
-
"svg",
|
|
1139
|
-
{
|
|
1140
|
-
width: size,
|
|
1141
|
-
height: size,
|
|
1142
|
-
viewBox: "0 0 24 24",
|
|
1143
|
-
fill: "none",
|
|
1144
|
-
stroke: "currentColor",
|
|
1145
|
-
strokeWidth: "3",
|
|
1146
|
-
strokeLinecap: "round",
|
|
1147
|
-
strokeLinejoin: "round",
|
|
1148
|
-
children: /* @__PURE__ */ jsx9("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
|
|
1149
|
-
}
|
|
1150
|
-
);
|
|
1137
|
+
var iconSizeMap2 = {
|
|
1138
|
+
xs: "12",
|
|
1139
|
+
sm: "16",
|
|
1140
|
+
md: "20",
|
|
1141
|
+
lg: "24"
|
|
1142
|
+
};
|
|
1151
1143
|
var Checkbox = React4.forwardRef(
|
|
1152
1144
|
({
|
|
1153
1145
|
className,
|
|
@@ -1198,52 +1190,52 @@ var Checkbox = React4.forwardRef(
|
|
|
1198
1190
|
{
|
|
1199
1191
|
className: checkboxIndicator,
|
|
1200
1192
|
style: { maxHeight: boxSize },
|
|
1201
|
-
children: partialChecked ? /* @__PURE__ */ jsx9(MinusIcon, { size:
|
|
1193
|
+
children: partialChecked ? /* @__PURE__ */ jsx9(MinusIcon, { size: iconSizeMap2[size], strokeWidth: 2.5 }) : /* @__PURE__ */ jsx9(CheckIcon, { size: iconSizeMap2[size], strokeWidth: 2.5 })
|
|
1202
1194
|
}
|
|
1203
1195
|
)
|
|
1204
1196
|
}
|
|
1205
1197
|
);
|
|
1206
1198
|
if (label || displayHelperText) {
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1199
|
+
const hasHelperText = Boolean(displayHelperText);
|
|
1200
|
+
return /* @__PURE__ */ jsx9(Stack2, { gap: "2xs", children: /* @__PURE__ */ jsxs4(
|
|
1201
|
+
Inline2,
|
|
1202
|
+
{
|
|
1203
|
+
gap: "sm",
|
|
1204
|
+
alignItems: hasHelperText ? "flex-start" : "center",
|
|
1205
|
+
opacity: disabled ? "50" : "100",
|
|
1206
|
+
cursor: disabled ? "not-allowed" : "pointer",
|
|
1207
|
+
children: [
|
|
1208
|
+
checkbox,
|
|
1209
|
+
/* @__PURE__ */ jsxs4(
|
|
1210
|
+
Stack2,
|
|
1211
|
+
{
|
|
1212
|
+
gap: "none",
|
|
1213
|
+
onClick: (e) => {
|
|
1214
|
+
if (!disabled) {
|
|
1215
|
+
const button = e.currentTarget.parentElement?.querySelector("button");
|
|
1216
|
+
button?.click();
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
children: [
|
|
1220
|
+
label && /* @__PURE__ */ jsxs4(Inline2, { gap: "2xs", alignItems: "center", children: [
|
|
1228
1221
|
/* @__PURE__ */ jsx9(Text2, { as: "label", fontVariant: "text-s-medium", htmlFor: checkboxId, children: label }),
|
|
1229
1222
|
required && /* @__PURE__ */ jsx9(Text2, { as: "span", color: "contentTertiary", fontVariant: "text-s-medium", children: "*" })
|
|
1230
|
-
] })
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
] });
|
|
1223
|
+
] }),
|
|
1224
|
+
displayHelperText && /* @__PURE__ */ jsx9(
|
|
1225
|
+
Text2,
|
|
1226
|
+
{
|
|
1227
|
+
fontVariant: "text-s-regular",
|
|
1228
|
+
color: error ? "contentNegative" : "contentTertiary",
|
|
1229
|
+
role: error ? "alert" : void 0,
|
|
1230
|
+
children: displayHelperText
|
|
1231
|
+
}
|
|
1232
|
+
)
|
|
1233
|
+
]
|
|
1234
|
+
}
|
|
1235
|
+
)
|
|
1236
|
+
]
|
|
1237
|
+
}
|
|
1238
|
+
) });
|
|
1247
1239
|
}
|
|
1248
1240
|
return checkbox;
|
|
1249
1241
|
}
|
|
@@ -3994,408 +3986,9 @@ function FileUpload({
|
|
|
3994
3986
|
}
|
|
3995
3987
|
|
|
3996
3988
|
// src/components/Icon/Icon.tsx
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
title,
|
|
4001
|
-
viewBox = "0 0 24 24",
|
|
4002
|
-
children,
|
|
4003
|
-
size = "24",
|
|
4004
|
-
className,
|
|
4005
|
-
...restProps
|
|
4006
|
-
}, ref) {
|
|
4007
|
-
return /* @__PURE__ */ jsxs21(
|
|
4008
|
-
"svg",
|
|
4009
|
-
{
|
|
4010
|
-
ref,
|
|
4011
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4012
|
-
width: size,
|
|
4013
|
-
height: size,
|
|
4014
|
-
viewBox,
|
|
4015
|
-
fill: "none",
|
|
4016
|
-
className: cn(className),
|
|
4017
|
-
style: {
|
|
4018
|
-
display: "inline-block",
|
|
4019
|
-
flexShrink: 0
|
|
4020
|
-
},
|
|
4021
|
-
...restProps,
|
|
4022
|
-
children: [
|
|
4023
|
-
title ? /* @__PURE__ */ jsx31("title", { children: title }) : null,
|
|
4024
|
-
children
|
|
4025
|
-
]
|
|
4026
|
-
}
|
|
4027
|
-
);
|
|
4028
|
-
});
|
|
4029
|
-
Icon2.displayName = "Icon";
|
|
4030
|
-
function ChevronLeftIcon2(props) {
|
|
4031
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4032
|
-
"path",
|
|
4033
|
-
{
|
|
4034
|
-
d: "M7.17915 2.625L4.47915 5.325C4.10636 5.69779 4.10636 6.30221 4.47915 6.675L7.17915 9.375",
|
|
4035
|
-
stroke: "currentColor",
|
|
4036
|
-
strokeLinecap: "round"
|
|
4037
|
-
}
|
|
4038
|
-
) });
|
|
4039
|
-
}
|
|
4040
|
-
function ChevronRightIcon4(props) {
|
|
4041
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4042
|
-
"path",
|
|
4043
|
-
{
|
|
4044
|
-
d: "M4.82085 2.625L7.52085 5.325C7.89364 5.69779 7.89364 6.30221 7.52085 6.675L4.82085 9.375",
|
|
4045
|
-
stroke: "currentColor",
|
|
4046
|
-
strokeLinecap: "round"
|
|
4047
|
-
}
|
|
4048
|
-
) });
|
|
4049
|
-
}
|
|
4050
|
-
function ChevronDownIcon4(props) {
|
|
4051
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4052
|
-
"path",
|
|
4053
|
-
{
|
|
4054
|
-
d: "M2.625 4.82085L5.325 7.52085C5.69779 7.89364 6.30221 7.89364 6.675 7.52085L9.375 4.82085",
|
|
4055
|
-
stroke: "currentColor",
|
|
4056
|
-
strokeLinecap: "round"
|
|
4057
|
-
}
|
|
4058
|
-
) });
|
|
4059
|
-
}
|
|
4060
|
-
function ChevronUpIcon(props) {
|
|
4061
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4062
|
-
"path",
|
|
4063
|
-
{
|
|
4064
|
-
d: "M2.625 7.17915L5.325 4.47915C5.69779 4.10636 6.30221 4.10636 6.675 4.47915L9.375 7.17915",
|
|
4065
|
-
stroke: "currentColor",
|
|
4066
|
-
strokeLinecap: "round"
|
|
4067
|
-
}
|
|
4068
|
-
) });
|
|
4069
|
-
}
|
|
4070
|
-
function CloseIcon6(props) {
|
|
4071
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4072
|
-
"path",
|
|
4073
|
-
{
|
|
4074
|
-
d: "M9.74993 2.25L5.99996 5.99998M5.99996 5.99998L2.24998 9.74995M5.99996 5.99998L2.24998 2.25001M5.99996 5.99998L9.75003 9.75",
|
|
4075
|
-
stroke: "currentColor",
|
|
4076
|
-
strokeLinecap: "round"
|
|
4077
|
-
}
|
|
4078
|
-
) });
|
|
4079
|
-
}
|
|
4080
|
-
function CheckIcon2(props) {
|
|
4081
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4082
|
-
"path",
|
|
4083
|
-
{
|
|
4084
|
-
d: "M2.5 6.5L4.5 8.5L9.5 3.5",
|
|
4085
|
-
stroke: "currentColor",
|
|
4086
|
-
strokeLinecap: "round",
|
|
4087
|
-
strokeLinejoin: "round"
|
|
4088
|
-
}
|
|
4089
|
-
) });
|
|
4090
|
-
}
|
|
4091
|
-
function PlusIcon(props) {
|
|
4092
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4093
|
-
"path",
|
|
4094
|
-
{
|
|
4095
|
-
d: "M6 2.5V9.5M2.5 6H9.5",
|
|
4096
|
-
stroke: "currentColor",
|
|
4097
|
-
strokeLinecap: "round"
|
|
4098
|
-
}
|
|
4099
|
-
) });
|
|
4100
|
-
}
|
|
4101
|
-
function MinusIcon2(props) {
|
|
4102
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31("path", { d: "M2.5 6H9.5", stroke: "currentColor", strokeLinecap: "round" }) });
|
|
4103
|
-
}
|
|
4104
|
-
function SearchIcon(props) {
|
|
4105
|
-
return /* @__PURE__ */ jsxs21(Icon2, { viewBox: "0 0 12 12", ...props, children: [
|
|
4106
|
-
/* @__PURE__ */ jsx31(
|
|
4107
|
-
"path",
|
|
4108
|
-
{
|
|
4109
|
-
d: "M5.25 9C7.32107 9 9 7.32107 9 5.25C9 3.17893 7.32107 1.5 5.25 1.5C3.17893 1.5 1.5 3.17893 1.5 5.25C1.5 7.32107 3.17893 9 5.25 9Z",
|
|
4110
|
-
stroke: "currentColor"
|
|
4111
|
-
}
|
|
4112
|
-
),
|
|
4113
|
-
/* @__PURE__ */ jsx31(
|
|
4114
|
-
"path",
|
|
4115
|
-
{
|
|
4116
|
-
d: "M7.875 7.875L10.5 10.5",
|
|
4117
|
-
stroke: "currentColor",
|
|
4118
|
-
strokeLinecap: "round"
|
|
4119
|
-
}
|
|
4120
|
-
)
|
|
4121
|
-
] });
|
|
4122
|
-
}
|
|
4123
|
-
function CalendarIcon(props) {
|
|
4124
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4125
|
-
"path",
|
|
4126
|
-
{
|
|
4127
|
-
d: "M4 2H3.25C2.42157 2 1.75 2.67157 1.75 3.5L1.75 4.5M4 2H8.75C9.57843 2 10.25 2.67157 10.25 3.5V4.5M4 2V1.25M4 2V2.75M8 1.25V2.75M1.75 4.5V9C1.75 9.82843 2.42157 10.5 3.25 10.5H8.75C9.57843 10.5 10.25 9.82843 10.25 9V4.5M1.75 4.5H10.25M3.74501 6.5H3.75001M5.995 6.5H6M8.245 6.5H8.25M3.74501 8.5H3.75001M5.995 8.5H6M8.245 8.5H8.25",
|
|
4128
|
-
stroke: "currentColor",
|
|
4129
|
-
strokeLinecap: "round"
|
|
4130
|
-
}
|
|
4131
|
-
) });
|
|
4132
|
-
}
|
|
4133
|
-
function ClockIcon(props) {
|
|
4134
|
-
return /* @__PURE__ */ jsxs21(Icon2, { viewBox: "0 0 20 20", ...props, children: [
|
|
4135
|
-
/* @__PURE__ */ jsx31(
|
|
4136
|
-
"path",
|
|
4137
|
-
{
|
|
4138
|
-
d: "M10 3.33331C6.3181 3.33331 3.33331 6.3181 3.33331 9.99998C3.33331 13.6819 6.3181 16.6666 10 16.6666C13.6819 16.6666 16.6666 13.6819 16.6666 9.99998C16.6666 6.3181 13.6819 3.33331 10 3.33331Z",
|
|
4139
|
-
stroke: "currentColor",
|
|
4140
|
-
strokeWidth: "1.5"
|
|
4141
|
-
}
|
|
4142
|
-
),
|
|
4143
|
-
/* @__PURE__ */ jsx31(
|
|
4144
|
-
"path",
|
|
4145
|
-
{
|
|
4146
|
-
d: "M10 6.66669V10L12.2917 11.4584",
|
|
4147
|
-
stroke: "currentColor",
|
|
4148
|
-
strokeWidth: "1.5",
|
|
4149
|
-
strokeLinecap: "round",
|
|
4150
|
-
strokeLinejoin: "round"
|
|
4151
|
-
}
|
|
4152
|
-
)
|
|
4153
|
-
] });
|
|
4154
|
-
}
|
|
4155
|
-
function UploadCloudIcon2(props) {
|
|
4156
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx31(
|
|
4157
|
-
"path",
|
|
4158
|
-
{
|
|
4159
|
-
d: "M15.5433 8.1019L14.7069 8.43411C14.8693 8.84309 15.3037 9.07464 15.7338 8.98153L15.5433 8.1019ZM4.57793 16.0258C4.94899 16.3565 5.5179 16.3238 5.84863 15.9527C6.17935 15.5817 6.14666 15.0128 5.7756 14.6821L5.17676 15.3539L4.57793 16.0258ZM19.6105 15.7519L18.9883 15.1016L18.9883 15.1016L19.6105 15.7519ZM18.686 15.3606C18.2913 15.6628 18.2163 16.2277 18.5185 16.6223C18.8206 17.017 19.3855 17.092 19.7802 16.7899L19.2331 16.0752L18.686 15.3606ZM11.1 21C11.1 21.4971 11.5029 21.9 12 21.9C12.4971 21.9 12.9 21.4971 12.9 21H12H11.1ZM12 12L12.6364 11.3636C12.2849 11.0121 11.7151 11.0121 11.3636 11.3636L12 12ZM7.86361 14.8636C7.51214 15.2151 7.51214 15.7849 7.86361 16.1364C8.21508 16.4879 8.78493 16.4879 9.1364 16.1364L8.5 15.5L7.86361 14.8636ZM14.8636 16.1364C15.2151 16.4879 15.7849 16.4879 16.1364 16.1364C16.4879 15.7849 16.4879 15.2151 16.1364 14.8636L15.5 15.5L14.8636 16.1364ZM3 10.5H3.9C3.9 7.40721 6.40721 4.9 9.5 4.9V4V3.1C5.41309 3.1 2.1 6.41309 2.1 10.5H3ZM16.5 8V8.9C18.4882 8.9 20.1 10.5118 20.1 12.5H21H21.9C21.9 9.51766 19.4823 7.1 16.5 7.1V8ZM15.5433 8.1019L15.7338 8.98153C15.9799 8.92824 16.2361 8.9 16.5 8.9V8V7.1C16.1073 7.1 15.7234 7.14207 15.3529 7.22228L15.5433 8.1019ZM9.5 4V4.9C11.8617 4.9 13.884 6.36226 14.7069 8.43411L15.5433 8.1019L16.3798 7.7697C15.2939 5.03562 12.6241 3.1 9.5 3.1V4ZM5.17676 15.3539L5.7756 14.6821C4.62343 13.6551 3.9 12.1626 3.9 10.5H3H2.1C2.1 12.6973 3.0588 14.6718 4.57793 16.0258L5.17676 15.3539ZM21 12.5H20.1C20.1 13.523 19.6745 14.4451 18.9883 15.1016L19.6105 15.7519L20.2327 16.4021C21.259 15.4202 21.9 14.0342 21.9 12.5H21ZM19.6105 15.7519L18.9883 15.1016C18.8924 15.1933 18.7915 15.2799 18.686 15.3606L19.2331 16.0752L19.7802 16.7899C19.9382 16.6689 20.0893 16.5394 20.2327 16.4021L19.6105 15.7519ZM12 21H12.9V12H12H11.1V21H12ZM12 12L11.3636 11.3636L7.86361 14.8636L8.5 15.5L9.1364 16.1364L12.6364 12.6364L12 12ZM12 12L11.3636 12.6364L14.8636 16.1364L15.5 15.5L16.1364 14.8636L12.6364 11.3636L12 12Z",
|
|
4160
|
-
fill: "currentColor"
|
|
4161
|
-
}
|
|
4162
|
-
) });
|
|
4163
|
-
}
|
|
4164
|
-
function MoreVerticalIcon(props) {
|
|
4165
|
-
return /* @__PURE__ */ jsxs21(Icon2, { viewBox: "0 0 12 12", ...props, children: [
|
|
4166
|
-
/* @__PURE__ */ jsx31(
|
|
4167
|
-
"path",
|
|
4168
|
-
{
|
|
4169
|
-
d: "M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",
|
|
4170
|
-
stroke: "currentColor",
|
|
4171
|
-
strokeLinecap: "round",
|
|
4172
|
-
strokeLinejoin: "round"
|
|
4173
|
-
}
|
|
4174
|
-
),
|
|
4175
|
-
/* @__PURE__ */ jsx31(
|
|
4176
|
-
"path",
|
|
4177
|
-
{
|
|
4178
|
-
d: "M6 3C6.27614 3 6.5 2.77614 6.5 2.5C6.5 2.22386 6.27614 2 6 2C5.72386 2 5.5 2.22386 5.5 2.5C5.5 2.77614 5.72386 3 6 3Z",
|
|
4179
|
-
stroke: "currentColor",
|
|
4180
|
-
strokeLinecap: "round",
|
|
4181
|
-
strokeLinejoin: "round"
|
|
4182
|
-
}
|
|
4183
|
-
),
|
|
4184
|
-
/* @__PURE__ */ jsx31(
|
|
4185
|
-
"path",
|
|
4186
|
-
{
|
|
4187
|
-
d: "M6 10C6.27614 10 6.5 9.77614 6.5 9.5C6.5 9.22386 6.27614 9 6 9C5.72386 9 5.5 9.22386 5.5 9.5C5.5 9.77614 5.72386 10 6 10Z",
|
|
4188
|
-
stroke: "currentColor",
|
|
4189
|
-
strokeLinecap: "round",
|
|
4190
|
-
strokeLinejoin: "round"
|
|
4191
|
-
}
|
|
4192
|
-
)
|
|
4193
|
-
] });
|
|
4194
|
-
}
|
|
4195
|
-
function MoreHorizontalIcon(props) {
|
|
4196
|
-
return /* @__PURE__ */ jsxs21(Icon2, { viewBox: "0 0 12 12", ...props, children: [
|
|
4197
|
-
/* @__PURE__ */ jsx31(
|
|
4198
|
-
"path",
|
|
4199
|
-
{
|
|
4200
|
-
d: "M5.5 6C5.5 6.27614 5.72386 6.5 6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6Z",
|
|
4201
|
-
stroke: "currentColor",
|
|
4202
|
-
strokeLinecap: "round",
|
|
4203
|
-
strokeLinejoin: "round"
|
|
4204
|
-
}
|
|
4205
|
-
),
|
|
4206
|
-
/* @__PURE__ */ jsx31(
|
|
4207
|
-
"path",
|
|
4208
|
-
{
|
|
4209
|
-
d: "M9 6C9 6.27614 9.22386 6.5 9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6Z",
|
|
4210
|
-
stroke: "currentColor",
|
|
4211
|
-
strokeLinecap: "round",
|
|
4212
|
-
strokeLinejoin: "round"
|
|
4213
|
-
}
|
|
4214
|
-
),
|
|
4215
|
-
/* @__PURE__ */ jsx31(
|
|
4216
|
-
"path",
|
|
4217
|
-
{
|
|
4218
|
-
d: "M2 6C2 6.27614 2.22386 6.5 2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6Z",
|
|
4219
|
-
stroke: "currentColor",
|
|
4220
|
-
strokeLinecap: "round",
|
|
4221
|
-
strokeLinejoin: "round"
|
|
4222
|
-
}
|
|
4223
|
-
)
|
|
4224
|
-
] });
|
|
4225
|
-
}
|
|
4226
|
-
function ArrowLeftIcon(props) {
|
|
4227
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4228
|
-
"path",
|
|
4229
|
-
{
|
|
4230
|
-
d: "M10.25 6H1.75M1.75 6L4.25 3.5M1.75 6L4.25 8.5",
|
|
4231
|
-
stroke: "currentColor",
|
|
4232
|
-
strokeLinecap: "round",
|
|
4233
|
-
strokeLinejoin: "round"
|
|
4234
|
-
}
|
|
4235
|
-
) });
|
|
4236
|
-
}
|
|
4237
|
-
function ArrowRightIcon(props) {
|
|
4238
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4239
|
-
"path",
|
|
4240
|
-
{
|
|
4241
|
-
d: "M1.75 6H10.25M10.25 6L7.75 3.5M10.25 6L7.75 8.5",
|
|
4242
|
-
stroke: "currentColor",
|
|
4243
|
-
strokeLinecap: "round",
|
|
4244
|
-
strokeLinejoin: "round"
|
|
4245
|
-
}
|
|
4246
|
-
) });
|
|
4247
|
-
}
|
|
4248
|
-
function InfoIcon2(props) {
|
|
4249
|
-
return /* @__PURE__ */ jsxs21(Icon2, { viewBox: "0 0 20 20", ...props, children: [
|
|
4250
|
-
/* @__PURE__ */ jsx31(
|
|
4251
|
-
"path",
|
|
4252
|
-
{
|
|
4253
|
-
d: "M10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z",
|
|
4254
|
-
stroke: "currentColor",
|
|
4255
|
-
strokeWidth: "1.5"
|
|
4256
|
-
}
|
|
4257
|
-
),
|
|
4258
|
-
/* @__PURE__ */ jsx31(
|
|
4259
|
-
"path",
|
|
4260
|
-
{
|
|
4261
|
-
d: "M10 13.3333V10M10 6.66667H10.0083",
|
|
4262
|
-
stroke: "currentColor",
|
|
4263
|
-
strokeWidth: "1.5",
|
|
4264
|
-
strokeLinecap: "round"
|
|
4265
|
-
}
|
|
4266
|
-
)
|
|
4267
|
-
] });
|
|
4268
|
-
}
|
|
4269
|
-
function AlertCircleIcon(props) {
|
|
4270
|
-
return /* @__PURE__ */ jsxs21(Icon2, { viewBox: "0 0 20 20", ...props, children: [
|
|
4271
|
-
/* @__PURE__ */ jsx31(
|
|
4272
|
-
"path",
|
|
4273
|
-
{
|
|
4274
|
-
d: "M10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z",
|
|
4275
|
-
stroke: "currentColor",
|
|
4276
|
-
strokeWidth: "1.5"
|
|
4277
|
-
}
|
|
4278
|
-
),
|
|
4279
|
-
/* @__PURE__ */ jsx31(
|
|
4280
|
-
"path",
|
|
4281
|
-
{
|
|
4282
|
-
d: "M10 6.66667V10M10 13.3333H10.0083",
|
|
4283
|
-
stroke: "currentColor",
|
|
4284
|
-
strokeWidth: "1.5",
|
|
4285
|
-
strokeLinecap: "round"
|
|
4286
|
-
}
|
|
4287
|
-
)
|
|
4288
|
-
] });
|
|
4289
|
-
}
|
|
4290
|
-
function CheckCircleIcon(props) {
|
|
4291
|
-
return /* @__PURE__ */ jsxs21(Icon2, { viewBox: "0 0 20 20", ...props, children: [
|
|
4292
|
-
/* @__PURE__ */ jsx31(
|
|
4293
|
-
"path",
|
|
4294
|
-
{
|
|
4295
|
-
d: "M10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z",
|
|
4296
|
-
stroke: "currentColor",
|
|
4297
|
-
strokeWidth: "1.5"
|
|
4298
|
-
}
|
|
4299
|
-
),
|
|
4300
|
-
/* @__PURE__ */ jsx31(
|
|
4301
|
-
"path",
|
|
4302
|
-
{
|
|
4303
|
-
d: "M7.5 10L9.16667 11.6667L12.5 8.33333",
|
|
4304
|
-
stroke: "currentColor",
|
|
4305
|
-
strokeWidth: "1.5",
|
|
4306
|
-
strokeLinecap: "round",
|
|
4307
|
-
strokeLinejoin: "round"
|
|
4308
|
-
}
|
|
4309
|
-
)
|
|
4310
|
-
] });
|
|
4311
|
-
}
|
|
4312
|
-
function TrashIcon(props) {
|
|
4313
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4314
|
-
"path",
|
|
4315
|
-
{
|
|
4316
|
-
d: "M2 3H10M8.5 3V9.5C8.5 10.0523 8.05228 10.5 7.5 10.5H4.5C3.94772 10.5 3.5 10.0523 3.5 9.5V3M4.5 3V2.5C4.5 1.94772 4.94772 1.5 5.5 1.5H6.5C7.05228 1.5 7.5 1.94772 7.5 2.5V3",
|
|
4317
|
-
stroke: "currentColor",
|
|
4318
|
-
strokeLinecap: "round",
|
|
4319
|
-
strokeLinejoin: "round"
|
|
4320
|
-
}
|
|
4321
|
-
) });
|
|
4322
|
-
}
|
|
4323
|
-
function EditIcon(props) {
|
|
4324
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4325
|
-
"path",
|
|
4326
|
-
{
|
|
4327
|
-
d: "M8.5 1.5L10.5 3.5M1.5 10.5L2.16667 8.16667L8.5 1.83333C8.77614 1.55719 9.22386 1.55719 9.5 1.83333L10.1667 2.5C10.4428 2.77614 10.4428 3.22386 10.1667 3.5L3.83333 9.83333L1.5 10.5Z",
|
|
4328
|
-
stroke: "currentColor",
|
|
4329
|
-
strokeLinecap: "round",
|
|
4330
|
-
strokeLinejoin: "round"
|
|
4331
|
-
}
|
|
4332
|
-
) });
|
|
4333
|
-
}
|
|
4334
|
-
function CopyIcon(props) {
|
|
4335
|
-
return /* @__PURE__ */ jsxs21(Icon2, { viewBox: "0 0 12 12", ...props, children: [
|
|
4336
|
-
/* @__PURE__ */ jsx31(
|
|
4337
|
-
"path",
|
|
4338
|
-
{
|
|
4339
|
-
d: "M4 3.5V2.5C4 1.94772 4.44772 1.5 5 1.5H9C9.55228 1.5 10 1.94772 10 2.5V6.5C10 7.05228 9.55228 7.5 9 7.5H8",
|
|
4340
|
-
stroke: "currentColor",
|
|
4341
|
-
strokeLinecap: "round",
|
|
4342
|
-
strokeLinejoin: "round"
|
|
4343
|
-
}
|
|
4344
|
-
),
|
|
4345
|
-
/* @__PURE__ */ jsx31("rect", { x: "2", y: "3.5", width: "5", height: "6.5", rx: "0.75", stroke: "currentColor" })
|
|
4346
|
-
] });
|
|
4347
|
-
}
|
|
4348
|
-
function ExternalLinkIcon(props) {
|
|
4349
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4350
|
-
"path",
|
|
4351
|
-
{
|
|
4352
|
-
d: "M1.74999 10.25L10.25 1.75M10.25 1.75H7.00001M10.25 1.75V5",
|
|
4353
|
-
stroke: "currentColor",
|
|
4354
|
-
strokeLinecap: "round",
|
|
4355
|
-
strokeLinejoin: "round"
|
|
4356
|
-
}
|
|
4357
|
-
) });
|
|
4358
|
-
}
|
|
4359
|
-
function FilterIcon(props) {
|
|
4360
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4361
|
-
"path",
|
|
4362
|
-
{
|
|
4363
|
-
d: "M1.5 2.5H10.5M3 5.5H9M4.5 8.5H7.5",
|
|
4364
|
-
stroke: "currentColor",
|
|
4365
|
-
strokeLinecap: "round"
|
|
4366
|
-
}
|
|
4367
|
-
) });
|
|
4368
|
-
}
|
|
4369
|
-
function SortIcon(props) {
|
|
4370
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4371
|
-
"path",
|
|
4372
|
-
{
|
|
4373
|
-
d: "M3 4L6 1L9 4M3 8L6 11L9 8",
|
|
4374
|
-
stroke: "currentColor",
|
|
4375
|
-
strokeLinecap: "round",
|
|
4376
|
-
strokeLinejoin: "round"
|
|
4377
|
-
}
|
|
4378
|
-
) });
|
|
4379
|
-
}
|
|
4380
|
-
function SettingsIcon(props) {
|
|
4381
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4382
|
-
"path",
|
|
4383
|
-
{
|
|
4384
|
-
d: "M8 3H10M8 3V2M8 3V4M2 3H6M7 9H10M7 9V8M7 9V10M2 9H5M4 6H2M4 6V5M4 6V7M10 6H6",
|
|
4385
|
-
stroke: "currentColor",
|
|
4386
|
-
strokeLinecap: "round"
|
|
4387
|
-
}
|
|
4388
|
-
) });
|
|
4389
|
-
}
|
|
4390
|
-
function UserIcon(props) {
|
|
4391
|
-
return /* @__PURE__ */ jsx31(Icon2, { viewBox: "0 0 12 12", ...props, children: /* @__PURE__ */ jsx31(
|
|
4392
|
-
"path",
|
|
4393
|
-
{
|
|
4394
|
-
d: "M6 5.35261C5.55083 5.35261 5.16634 5.18849 4.84652 4.86025C4.52662 4.53194 4.36667 4.13729 4.36667 3.6763C4.36667 3.21532 4.52662 2.82071 4.84652 2.49247C5.16634 2.16416 5.55083 2 6 2C6.44917 2 6.83366 2.16416 7.15348 2.49247C7.47338 2.82071 7.63333 3.21532 7.63333 3.6763C7.63333 4.13729 7.47338 4.53194 7.15348 4.86025C6.83366 5.18849 6.44917 5.35261 6 5.35261ZM2.5 9.27236V8.93519C2.5 8.70067 2.56207 8.48346 2.6862 8.28359C2.81033 8.08371 2.97623 7.93005 3.1839 7.8226C3.64512 7.59055 4.11043 7.4165 4.57982 7.30043C5.04921 7.18437 5.5226 7.12634 6 7.12634C6.4774 7.12634 6.95079 7.18437 7.42018 7.30043C7.88957 7.4165 8.35488 7.59055 8.8161 7.8226C9.02377 7.93005 9.18967 8.08371 9.3138 8.28359C9.43793 8.48346 9.5 8.70067 9.5 8.93519V9.27236C9.5 9.47432 9.43105 9.6461 9.29315 9.78771C9.15525 9.92924 8.98787 10 8.79102 10H3.20898C3.01213 10 2.84475 9.92924 2.70685 9.78771C2.56895 9.6461 2.5 9.47432 2.5 9.27236Z",
|
|
4395
|
-
stroke: "currentColor"
|
|
4396
|
-
}
|
|
4397
|
-
) });
|
|
4398
|
-
}
|
|
3989
|
+
var Icon_exports = {};
|
|
3990
|
+
__reExport(Icon_exports, icons_star);
|
|
3991
|
+
import * as icons_star from "@zentrades-ui/icons";
|
|
4399
3992
|
|
|
4400
3993
|
// src/components/DatePicker/datePicker.css.ts
|
|
4401
3994
|
var baseArrowButton = "datePicker_baseArrowButton__1cnp4rtm";
|
|
@@ -4415,16 +4008,16 @@ var toneStyles = { "default": "datePicker_toneStyles_default__1cnp4rt1", outside
|
|
|
4415
4008
|
var unavailableMark = "datePicker_unavailableMark__1cnp4rth";
|
|
4416
4009
|
|
|
4417
4010
|
// src/components/DatePicker/CalendarArrowButton.tsx
|
|
4418
|
-
import { jsx as
|
|
4011
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
4419
4012
|
var CalendarArrowButton = ({
|
|
4420
4013
|
direction,
|
|
4421
4014
|
disabled = false,
|
|
4422
4015
|
className,
|
|
4423
4016
|
onClick
|
|
4424
4017
|
}) => {
|
|
4425
|
-
const
|
|
4018
|
+
const Icon3 = direction === "previous" ? Icon_exports.ChevronLeftIcon : Icon_exports.ChevronRightIcon;
|
|
4426
4019
|
const label = direction === "previous" ? "Previous" : "Next";
|
|
4427
|
-
return /* @__PURE__ */
|
|
4020
|
+
return /* @__PURE__ */ jsx31(
|
|
4428
4021
|
"button",
|
|
4429
4022
|
{
|
|
4430
4023
|
type: "button",
|
|
@@ -4434,7 +4027,7 @@ var CalendarArrowButton = ({
|
|
|
4434
4027
|
"data-disabled": disabled || void 0,
|
|
4435
4028
|
className: cn(baseArrowButton, className),
|
|
4436
4029
|
onClick,
|
|
4437
|
-
children: /* @__PURE__ */
|
|
4030
|
+
children: /* @__PURE__ */ jsx31(Icon3, { size: "16" })
|
|
4438
4031
|
}
|
|
4439
4032
|
);
|
|
4440
4033
|
};
|
|
@@ -4444,7 +4037,7 @@ CalendarArrowButton.displayName = "CalendarArrowButton";
|
|
|
4444
4037
|
import { useMemo as useMemo4 } from "react";
|
|
4445
4038
|
|
|
4446
4039
|
// src/components/DatePicker/CalendarDateButton.tsx
|
|
4447
|
-
import { jsx as
|
|
4040
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
4448
4041
|
var CalendarDateButton = ({
|
|
4449
4042
|
label,
|
|
4450
4043
|
selection = "none",
|
|
@@ -4461,7 +4054,7 @@ var CalendarDateButton = ({
|
|
|
4461
4054
|
const isPressed = selection !== "none";
|
|
4462
4055
|
const isRangeEndpoint = selection === "selected" || selection === "start" || selection === "end";
|
|
4463
4056
|
const hasEdgeRadius = isRangeEndpoint || selection === "inRange";
|
|
4464
|
-
return /* @__PURE__ */
|
|
4057
|
+
return /* @__PURE__ */ jsx32(
|
|
4465
4058
|
"button",
|
|
4466
4059
|
{
|
|
4467
4060
|
type: "button",
|
|
@@ -4481,7 +4074,7 @@ var CalendarDateButton = ({
|
|
|
4481
4074
|
hasEdgeRadius && edgeRadiusStyles[edgeRadius],
|
|
4482
4075
|
className
|
|
4483
4076
|
),
|
|
4484
|
-
children: /* @__PURE__ */
|
|
4077
|
+
children: /* @__PURE__ */ jsx32("span", { className: cn(dateButtonContent, isUnavailable && unavailableMark), children: label })
|
|
4485
4078
|
}
|
|
4486
4079
|
);
|
|
4487
4080
|
};
|
|
@@ -4567,7 +4160,7 @@ var parseInputDate = (value) => {
|
|
|
4567
4160
|
};
|
|
4568
4161
|
|
|
4569
4162
|
// src/components/DatePicker/CalendarGrid.tsx
|
|
4570
|
-
import { Fragment, jsx as
|
|
4163
|
+
import { Fragment, jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4571
4164
|
var CALENDAR_ROWS = 5;
|
|
4572
4165
|
var CALENDAR_CELLS = CALENDAR_ROWS * 7;
|
|
4573
4166
|
var useCalendarDays = ({
|
|
@@ -4678,8 +4271,8 @@ var CalendarGrid = ({
|
|
|
4678
4271
|
if (day.isDisabled || day.isUnavailable) return;
|
|
4679
4272
|
onDateSelect?.(day.date);
|
|
4680
4273
|
};
|
|
4681
|
-
return /* @__PURE__ */
|
|
4682
|
-
/* @__PURE__ */
|
|
4274
|
+
return /* @__PURE__ */ jsxs21(Fragment, { children: [
|
|
4275
|
+
/* @__PURE__ */ jsx33(Box2, { className: calendarWeekdaysRow, children: WEEKDAYS.map((day) => /* @__PURE__ */ jsx33(
|
|
4683
4276
|
Text2,
|
|
4684
4277
|
{
|
|
4685
4278
|
as: "span",
|
|
@@ -4690,9 +4283,9 @@ var CalendarGrid = ({
|
|
|
4690
4283
|
},
|
|
4691
4284
|
day
|
|
4692
4285
|
)) }),
|
|
4693
|
-
/* @__PURE__ */
|
|
4286
|
+
/* @__PURE__ */ jsx33(Box2, { className: calendarDaysGrid, children: calendarDays.map((day, index) => {
|
|
4694
4287
|
if (day.isOutsideMonth && !showOutsideDays) {
|
|
4695
|
-
return /* @__PURE__ */
|
|
4288
|
+
return /* @__PURE__ */ jsx33(
|
|
4696
4289
|
CalendarDateButton,
|
|
4697
4290
|
{
|
|
4698
4291
|
label: "",
|
|
@@ -4729,7 +4322,7 @@ var CalendarGrid = ({
|
|
|
4729
4322
|
if (selection === "end" && prevInRange && columnIndex > 0) {
|
|
4730
4323
|
rangeExtends = "left";
|
|
4731
4324
|
}
|
|
4732
|
-
return /* @__PURE__ */
|
|
4325
|
+
return /* @__PURE__ */ jsx33(
|
|
4733
4326
|
CalendarDateButton,
|
|
4734
4327
|
{
|
|
4735
4328
|
label: day.day,
|
|
@@ -4749,7 +4342,7 @@ var CalendarGrid = ({
|
|
|
4749
4342
|
CalendarGrid.displayName = "CalendarGrid";
|
|
4750
4343
|
|
|
4751
4344
|
// src/components/DatePicker/Calendar.tsx
|
|
4752
|
-
import { jsx as
|
|
4345
|
+
import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4753
4346
|
var Calendar = ({
|
|
4754
4347
|
month,
|
|
4755
4348
|
year,
|
|
@@ -4768,9 +4361,9 @@ var Calendar = ({
|
|
|
4768
4361
|
showOutsideDays = true,
|
|
4769
4362
|
className
|
|
4770
4363
|
}) => {
|
|
4771
|
-
return /* @__PURE__ */
|
|
4772
|
-
/* @__PURE__ */
|
|
4773
|
-
/* @__PURE__ */
|
|
4364
|
+
return /* @__PURE__ */ jsxs22(Box2, { className: cn(calendarContainer, className), children: [
|
|
4365
|
+
/* @__PURE__ */ jsxs22(Box2, { className: calendarHeader, children: [
|
|
4366
|
+
/* @__PURE__ */ jsx34(
|
|
4774
4367
|
CalendarArrowButton,
|
|
4775
4368
|
{
|
|
4776
4369
|
direction: "previous",
|
|
@@ -4778,7 +4371,7 @@ var Calendar = ({
|
|
|
4778
4371
|
disabled: previousMonthDisabled
|
|
4779
4372
|
}
|
|
4780
4373
|
),
|
|
4781
|
-
/* @__PURE__ */
|
|
4374
|
+
/* @__PURE__ */ jsxs22(
|
|
4782
4375
|
Text2,
|
|
4783
4376
|
{
|
|
4784
4377
|
as: "span",
|
|
@@ -4791,7 +4384,7 @@ var Calendar = ({
|
|
|
4791
4384
|
]
|
|
4792
4385
|
}
|
|
4793
4386
|
),
|
|
4794
|
-
/* @__PURE__ */
|
|
4387
|
+
/* @__PURE__ */ jsx34(
|
|
4795
4388
|
CalendarArrowButton,
|
|
4796
4389
|
{
|
|
4797
4390
|
direction: "next",
|
|
@@ -4800,7 +4393,7 @@ var Calendar = ({
|
|
|
4800
4393
|
}
|
|
4801
4394
|
)
|
|
4802
4395
|
] }),
|
|
4803
|
-
/* @__PURE__ */
|
|
4396
|
+
/* @__PURE__ */ jsx34(
|
|
4804
4397
|
CalendarGrid,
|
|
4805
4398
|
{
|
|
4806
4399
|
month,
|
|
@@ -4822,7 +4415,7 @@ Calendar.displayName = "Calendar";
|
|
|
4822
4415
|
|
|
4823
4416
|
// src/components/TimePicker/TimePicker.tsx
|
|
4824
4417
|
import {
|
|
4825
|
-
forwardRef as
|
|
4418
|
+
forwardRef as forwardRef25,
|
|
4826
4419
|
useCallback as useCallback5,
|
|
4827
4420
|
useEffect as useEffect3,
|
|
4828
4421
|
useMemo as useMemo5,
|
|
@@ -4851,7 +4444,7 @@ var timePickerHeader = "timePicker_timePickerHeader__1trbi7d1";
|
|
|
4851
4444
|
var timeScrollContainer = "timePicker_timeScrollContainer__1trbi7d5";
|
|
4852
4445
|
|
|
4853
4446
|
// src/components/TimePicker/TimePicker.tsx
|
|
4854
|
-
import { Fragment as Fragment2, jsx as
|
|
4447
|
+
import { Fragment as Fragment2, jsx as jsx35, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4855
4448
|
var DEFAULT_PRESETS = [
|
|
4856
4449
|
{ label: "Now", time: { hours: -1, minutes: -1 } },
|
|
4857
4450
|
// Special marker for "now"
|
|
@@ -4897,7 +4490,7 @@ var isTimeDisabled = (time, minTime, maxTime) => {
|
|
|
4897
4490
|
}
|
|
4898
4491
|
return false;
|
|
4899
4492
|
};
|
|
4900
|
-
var TimePicker =
|
|
4493
|
+
var TimePicker = forwardRef25(
|
|
4901
4494
|
function TimePicker2(props, ref) {
|
|
4902
4495
|
const {
|
|
4903
4496
|
value,
|
|
@@ -5079,7 +4672,7 @@ var TimePicker = forwardRef26(
|
|
|
5079
4672
|
const renderTriggerElement = () => {
|
|
5080
4673
|
if (renderTrigger) return renderTrigger(displayValue || placeholder);
|
|
5081
4674
|
if (trigger) return trigger;
|
|
5082
|
-
return /* @__PURE__ */
|
|
4675
|
+
return /* @__PURE__ */ jsxs23(
|
|
5083
4676
|
Box2,
|
|
5084
4677
|
{
|
|
5085
4678
|
ref,
|
|
@@ -5092,24 +4685,24 @@ var TimePicker = forwardRef26(
|
|
|
5092
4685
|
"aria-expanded": open,
|
|
5093
4686
|
"aria-disabled": disabled,
|
|
5094
4687
|
children: [
|
|
5095
|
-
displayValue ? /* @__PURE__ */
|
|
5096
|
-
/* @__PURE__ */
|
|
4688
|
+
displayValue ? /* @__PURE__ */ jsx35("span", { className: timeDisplayText, children: displayValue }) : /* @__PURE__ */ jsx35("span", { className: timeDisplayPlaceholder, children: placeholder }),
|
|
4689
|
+
/* @__PURE__ */ jsx35("span", { className: timeIconContainer, children: /* @__PURE__ */ jsx35(Icon_exports.ClockIcon, { size: "20" }) })
|
|
5097
4690
|
]
|
|
5098
4691
|
}
|
|
5099
4692
|
);
|
|
5100
4693
|
};
|
|
5101
4694
|
const selectedDisplayHours = selectedTime ? getDisplayHours(selectedTime.hours) : null;
|
|
5102
|
-
return /* @__PURE__ */
|
|
5103
|
-
/* @__PURE__ */
|
|
5104
|
-
/* @__PURE__ */
|
|
5105
|
-
/* @__PURE__ */
|
|
5106
|
-
/* @__PURE__ */
|
|
5107
|
-
selectedTime && /* @__PURE__ */
|
|
4695
|
+
return /* @__PURE__ */ jsxs23(MenuRoot, { open, onOpenChange: setOpen, children: [
|
|
4696
|
+
/* @__PURE__ */ jsx35(MenuTrigger, { disabled, children: renderTriggerElement() }),
|
|
4697
|
+
/* @__PURE__ */ jsx35(MenuContent, { padding: "none", sideOffset: 8, align: "start", children: /* @__PURE__ */ jsxs23(Box2, { className: timePickerContainer, children: [
|
|
4698
|
+
/* @__PURE__ */ jsxs23(Box2, { className: timePickerHeader, children: [
|
|
4699
|
+
/* @__PURE__ */ jsx35(Text2, { fontVariant: "text-m-medium", color: "contentPrimary", children: "Select Time" }),
|
|
4700
|
+
selectedTime && /* @__PURE__ */ jsx35(Text2, { fontVariant: "text-s-regular", color: "contentBrand", children: displayValue })
|
|
5108
4701
|
] }),
|
|
5109
|
-
/* @__PURE__ */
|
|
5110
|
-
/* @__PURE__ */
|
|
5111
|
-
/* @__PURE__ */
|
|
5112
|
-
/* @__PURE__ */
|
|
4702
|
+
/* @__PURE__ */ jsxs23(Inline2, { gap: "xs", alignItems: "center", children: [
|
|
4703
|
+
/* @__PURE__ */ jsxs23(Box2, { className: timeColumn, children: [
|
|
4704
|
+
/* @__PURE__ */ jsx35("span", { className: columnLabel, children: "Hour" }),
|
|
4705
|
+
/* @__PURE__ */ jsx35(Box2, { ref: hoursRef, className: timeScrollContainer, children: hoursArray.map((hour) => {
|
|
5113
4706
|
const isSelected = selectedDisplayHours === hour;
|
|
5114
4707
|
const hours24 = format === "12h" ? convertTo24Hour(hour, period) : hour;
|
|
5115
4708
|
const isDisabled = isTimeDisabled(
|
|
@@ -5117,7 +4710,7 @@ var TimePicker = forwardRef26(
|
|
|
5117
4710
|
minTime,
|
|
5118
4711
|
maxTime
|
|
5119
4712
|
);
|
|
5120
|
-
return /* @__PURE__ */
|
|
4713
|
+
return /* @__PURE__ */ jsx35(
|
|
5121
4714
|
"button",
|
|
5122
4715
|
{
|
|
5123
4716
|
type: "button",
|
|
@@ -5135,10 +4728,10 @@ var TimePicker = forwardRef26(
|
|
|
5135
4728
|
);
|
|
5136
4729
|
}) })
|
|
5137
4730
|
] }),
|
|
5138
|
-
/* @__PURE__ */
|
|
5139
|
-
/* @__PURE__ */
|
|
5140
|
-
/* @__PURE__ */
|
|
5141
|
-
/* @__PURE__ */
|
|
4731
|
+
/* @__PURE__ */ jsx35("span", { className: columnSeparator, children: ":" }),
|
|
4732
|
+
/* @__PURE__ */ jsxs23(Box2, { className: timeColumn, children: [
|
|
4733
|
+
/* @__PURE__ */ jsx35("span", { className: columnLabel, children: "Min" }),
|
|
4734
|
+
/* @__PURE__ */ jsx35(Box2, { ref: minutesRef, className: timeScrollContainer, children: minutesArray.map((minute) => {
|
|
5142
4735
|
const isSelected = selectedTime?.minutes === minute;
|
|
5143
4736
|
const isDisabled = isTimeDisabled(
|
|
5144
4737
|
{
|
|
@@ -5148,7 +4741,7 @@ var TimePicker = forwardRef26(
|
|
|
5148
4741
|
minTime,
|
|
5149
4742
|
maxTime
|
|
5150
4743
|
);
|
|
5151
|
-
return /* @__PURE__ */
|
|
4744
|
+
return /* @__PURE__ */ jsx35(
|
|
5152
4745
|
"button",
|
|
5153
4746
|
{
|
|
5154
4747
|
type: "button",
|
|
@@ -5166,18 +4759,18 @@ var TimePicker = forwardRef26(
|
|
|
5166
4759
|
);
|
|
5167
4760
|
}) })
|
|
5168
4761
|
] }),
|
|
5169
|
-
showSeconds && /* @__PURE__ */
|
|
5170
|
-
/* @__PURE__ */
|
|
5171
|
-
/* @__PURE__ */
|
|
5172
|
-
/* @__PURE__ */
|
|
5173
|
-
/* @__PURE__ */
|
|
4762
|
+
showSeconds && /* @__PURE__ */ jsxs23(Fragment2, { children: [
|
|
4763
|
+
/* @__PURE__ */ jsx35("span", { className: columnSeparator, children: ":" }),
|
|
4764
|
+
/* @__PURE__ */ jsxs23(Box2, { className: timeColumn, children: [
|
|
4765
|
+
/* @__PURE__ */ jsx35("span", { className: columnLabel, children: "Sec" }),
|
|
4766
|
+
/* @__PURE__ */ jsx35(
|
|
5174
4767
|
Box2,
|
|
5175
4768
|
{
|
|
5176
4769
|
ref: secondsRef,
|
|
5177
4770
|
className: timeScrollContainer,
|
|
5178
4771
|
children: secondsArray.map((second) => {
|
|
5179
4772
|
const isSelected = selectedTime?.seconds === second;
|
|
5180
|
-
return /* @__PURE__ */
|
|
4773
|
+
return /* @__PURE__ */ jsx35(
|
|
5181
4774
|
"button",
|
|
5182
4775
|
{
|
|
5183
4776
|
type: "button",
|
|
@@ -5196,10 +4789,10 @@ var TimePicker = forwardRef26(
|
|
|
5196
4789
|
)
|
|
5197
4790
|
] })
|
|
5198
4791
|
] }),
|
|
5199
|
-
format === "12h" && /* @__PURE__ */
|
|
5200
|
-
/* @__PURE__ */
|
|
5201
|
-
/* @__PURE__ */
|
|
5202
|
-
/* @__PURE__ */
|
|
4792
|
+
format === "12h" && /* @__PURE__ */ jsxs23(Box2, { className: periodColumn, children: [
|
|
4793
|
+
/* @__PURE__ */ jsx35("span", { className: periodLabel, children: "Period" }),
|
|
4794
|
+
/* @__PURE__ */ jsxs23(Stack2, { gap: "xs", children: [
|
|
4795
|
+
/* @__PURE__ */ jsx35(
|
|
5203
4796
|
"button",
|
|
5204
4797
|
{
|
|
5205
4798
|
type: "button",
|
|
@@ -5211,7 +4804,7 @@ var TimePicker = forwardRef26(
|
|
|
5211
4804
|
children: "AM"
|
|
5212
4805
|
}
|
|
5213
4806
|
),
|
|
5214
|
-
/* @__PURE__ */
|
|
4807
|
+
/* @__PURE__ */ jsx35(
|
|
5215
4808
|
"button",
|
|
5216
4809
|
{
|
|
5217
4810
|
type: "button",
|
|
@@ -5226,7 +4819,7 @@ var TimePicker = forwardRef26(
|
|
|
5226
4819
|
] })
|
|
5227
4820
|
] })
|
|
5228
4821
|
] }),
|
|
5229
|
-
showPresets && presets.length > 0 && /* @__PURE__ */
|
|
4822
|
+
showPresets && presets.length > 0 && /* @__PURE__ */ jsx35(Box2, { className: presetsContainer, children: presets.map((preset, index) => /* @__PURE__ */ jsx35(
|
|
5230
4823
|
"button",
|
|
5231
4824
|
{
|
|
5232
4825
|
type: "button",
|
|
@@ -5236,8 +4829,8 @@ var TimePicker = forwardRef26(
|
|
|
5236
4829
|
},
|
|
5237
4830
|
index
|
|
5238
4831
|
)) }),
|
|
5239
|
-
/* @__PURE__ */
|
|
5240
|
-
/* @__PURE__ */
|
|
4832
|
+
/* @__PURE__ */ jsxs23(Box2, { className: timePickerFooter, children: [
|
|
4833
|
+
/* @__PURE__ */ jsx35(
|
|
5241
4834
|
Button,
|
|
5242
4835
|
{
|
|
5243
4836
|
variant: "ghost",
|
|
@@ -5247,7 +4840,7 @@ var TimePicker = forwardRef26(
|
|
|
5247
4840
|
children: "Cancel"
|
|
5248
4841
|
}
|
|
5249
4842
|
),
|
|
5250
|
-
/* @__PURE__ */
|
|
4843
|
+
/* @__PURE__ */ jsx35(Button, { size: "md", onClick: handleApply, disabled: !selectedTime, children: "Apply" })
|
|
5251
4844
|
] })
|
|
5252
4845
|
] }) })
|
|
5253
4846
|
] });
|
|
@@ -5256,7 +4849,7 @@ var TimePicker = forwardRef26(
|
|
|
5256
4849
|
TimePicker.displayName = "TimePicker";
|
|
5257
4850
|
|
|
5258
4851
|
// src/components/DateTimeInput/DateTimeInput.tsx
|
|
5259
|
-
import
|
|
4852
|
+
import React23, { forwardRef as forwardRef26, useCallback as useCallback6, useMemo as useMemo6, useState as useState6 } from "react";
|
|
5260
4853
|
|
|
5261
4854
|
// src/components/DateTimeInput/dateTimeInput.css.ts
|
|
5262
4855
|
import { createRuntimeFn as _7a46822 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
@@ -5271,7 +4864,7 @@ var segmentText = "dateTimeInput_segmentText__183d6eha";
|
|
|
5271
4864
|
var singleInputSegment = "dateTimeInput_singleInputSegment__183d6ehe";
|
|
5272
4865
|
|
|
5273
4866
|
// src/components/DateTimeInput/DateTimeInput.tsx
|
|
5274
|
-
import { Fragment as Fragment3, jsx as
|
|
4867
|
+
import { Fragment as Fragment3, jsx as jsx36, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5275
4868
|
var padZero2 = (num) => num.toString().padStart(2, "0");
|
|
5276
4869
|
var formatTimeDisplay = (time, format, showSeconds) => {
|
|
5277
4870
|
if (!time) return "";
|
|
@@ -5287,7 +4880,7 @@ var formatTimeDisplay = (time, format, showSeconds) => {
|
|
|
5287
4880
|
}
|
|
5288
4881
|
return parts.join(":") + period;
|
|
5289
4882
|
};
|
|
5290
|
-
var DateTimeInput =
|
|
4883
|
+
var DateTimeInput = forwardRef26(
|
|
5291
4884
|
function DateTimeInput2(props, ref) {
|
|
5292
4885
|
const {
|
|
5293
4886
|
mode = "datetime",
|
|
@@ -5333,7 +4926,7 @@ var DateTimeInput = forwardRef27(
|
|
|
5333
4926
|
const [year, setYear] = useState6(
|
|
5334
4927
|
(value?.date ?? defaultValue?.date ?? today).getFullYear()
|
|
5335
4928
|
);
|
|
5336
|
-
|
|
4929
|
+
React23.useEffect(() => {
|
|
5337
4930
|
if (value !== void 0) {
|
|
5338
4931
|
setSelectedDate(value?.date ?? null);
|
|
5339
4932
|
setSelectedTime(value?.time ?? null);
|
|
@@ -5343,7 +4936,7 @@ var DateTimeInput = forwardRef27(
|
|
|
5343
4936
|
}
|
|
5344
4937
|
}
|
|
5345
4938
|
}, [value]);
|
|
5346
|
-
const inputId = `datetime-input-${
|
|
4939
|
+
const inputId = `datetime-input-${React23.useId()}`;
|
|
5347
4940
|
const helperTextId = `${inputId}-helper`;
|
|
5348
4941
|
const displayHelperText = error && errorMessage ? errorMessage : helperText;
|
|
5349
4942
|
const handleDateSelect = useCallback6(
|
|
@@ -5401,8 +4994,8 @@ var DateTimeInput = forwardRef27(
|
|
|
5401
4994
|
return formatTimeDisplay(selectedTime, timeFormat, showSeconds);
|
|
5402
4995
|
}, [selectedTime, timeFormat, showSeconds]);
|
|
5403
4996
|
const hasValue = mode === "date" && selectedDate || mode === "time" && selectedTime || mode === "datetime" && (selectedDate || selectedTime);
|
|
5404
|
-
const labelElement = label && /* @__PURE__ */
|
|
5405
|
-
/* @__PURE__ */
|
|
4997
|
+
const labelElement = label && /* @__PURE__ */ jsxs24(Inline2, { gap: "2xs", style: horizontal ? { padding: "9px 0px" } : void 0, children: [
|
|
4998
|
+
/* @__PURE__ */ jsx36(
|
|
5406
4999
|
Text2,
|
|
5407
5000
|
{
|
|
5408
5001
|
as: "label",
|
|
@@ -5412,10 +5005,10 @@ var DateTimeInput = forwardRef27(
|
|
|
5412
5005
|
children: label
|
|
5413
5006
|
}
|
|
5414
5007
|
),
|
|
5415
|
-
mandatory && /* @__PURE__ */
|
|
5008
|
+
mandatory && /* @__PURE__ */ jsx36(Text2, { fontVariant: "text-m-regular", color: "contentTertiary", as: "span", children: "*" })
|
|
5416
5009
|
] });
|
|
5417
|
-
const renderDateSegment = (withSeparator = false) => /* @__PURE__ */
|
|
5418
|
-
/* @__PURE__ */
|
|
5010
|
+
const renderDateSegment = (withSeparator = false) => /* @__PURE__ */ jsxs24(MenuRoot, { open: dateOpen, onOpenChange: setDateOpen, children: [
|
|
5011
|
+
/* @__PURE__ */ jsx36(MenuTrigger, { disabled, children: /* @__PURE__ */ jsxs24(
|
|
5419
5012
|
Box2,
|
|
5420
5013
|
{
|
|
5421
5014
|
className: withSeparator ? dateTimeSegmentWithSeparator : singleInputSegment,
|
|
@@ -5424,14 +5017,14 @@ var DateTimeInput = forwardRef27(
|
|
|
5424
5017
|
"aria-haspopup": "dialog",
|
|
5425
5018
|
"aria-expanded": dateOpen,
|
|
5426
5019
|
children: [
|
|
5427
|
-
/* @__PURE__ */
|
|
5428
|
-
dateDisplayValue ? /* @__PURE__ */
|
|
5020
|
+
/* @__PURE__ */ jsx36("span", { className: segmentIcon, children: /* @__PURE__ */ jsx36(Icon_exports.CalendarIcon, { size: "20" }) }),
|
|
5021
|
+
dateDisplayValue ? /* @__PURE__ */ jsx36("span", { className: segmentText, children: dateDisplayValue }) : /* @__PURE__ */ jsx36("span", { className: segmentPlaceholder, children: datePlaceholder })
|
|
5429
5022
|
]
|
|
5430
5023
|
}
|
|
5431
5024
|
) }),
|
|
5432
|
-
/* @__PURE__ */
|
|
5433
|
-
/* @__PURE__ */
|
|
5434
|
-
/* @__PURE__ */
|
|
5025
|
+
/* @__PURE__ */ jsx36(MenuContent, { padding: "none", sideOffset: 8, align: "start", children: /* @__PURE__ */ jsxs24(Stack2, { padding: "md", gap: "md", children: [
|
|
5026
|
+
/* @__PURE__ */ jsx36(Text2, { fontVariant: "text-m-medium", color: "contentPrimary", children: "Select Date" }),
|
|
5027
|
+
/* @__PURE__ */ jsx36(
|
|
5435
5028
|
Calendar,
|
|
5436
5029
|
{
|
|
5437
5030
|
month,
|
|
@@ -5447,8 +5040,8 @@ var DateTimeInput = forwardRef27(
|
|
|
5447
5040
|
)
|
|
5448
5041
|
] }) })
|
|
5449
5042
|
] });
|
|
5450
|
-
const renderTimeSegment = () => /* @__PURE__ */
|
|
5451
|
-
/* @__PURE__ */
|
|
5043
|
+
const renderTimeSegment = () => /* @__PURE__ */ jsxs24(MenuRoot, { open: timeOpen, onOpenChange: setTimeOpen, children: [
|
|
5044
|
+
/* @__PURE__ */ jsx36(MenuTrigger, { disabled, children: /* @__PURE__ */ jsxs24(
|
|
5452
5045
|
Box2,
|
|
5453
5046
|
{
|
|
5454
5047
|
className: singleInputSegment,
|
|
@@ -5457,12 +5050,12 @@ var DateTimeInput = forwardRef27(
|
|
|
5457
5050
|
"aria-haspopup": "dialog",
|
|
5458
5051
|
"aria-expanded": timeOpen,
|
|
5459
5052
|
children: [
|
|
5460
|
-
/* @__PURE__ */
|
|
5461
|
-
timeDisplayValue ? /* @__PURE__ */
|
|
5053
|
+
/* @__PURE__ */ jsx36("span", { className: segmentIcon, children: /* @__PURE__ */ jsx36(Icon_exports.ClockIcon, { size: "20" }) }),
|
|
5054
|
+
timeDisplayValue ? /* @__PURE__ */ jsx36("span", { className: segmentText, children: timeDisplayValue }) : /* @__PURE__ */ jsx36("span", { className: segmentPlaceholder, children: timePlaceholder })
|
|
5462
5055
|
]
|
|
5463
5056
|
}
|
|
5464
5057
|
) }),
|
|
5465
|
-
/* @__PURE__ */
|
|
5058
|
+
/* @__PURE__ */ jsx36(MenuContent, { padding: "none", sideOffset: 8, align: "start", children: /* @__PURE__ */ jsx36(
|
|
5466
5059
|
TimePickerContent,
|
|
5467
5060
|
{
|
|
5468
5061
|
value: selectedTime,
|
|
@@ -5476,8 +5069,8 @@ var DateTimeInput = forwardRef27(
|
|
|
5476
5069
|
}
|
|
5477
5070
|
) })
|
|
5478
5071
|
] });
|
|
5479
|
-
const inputElement2 = /* @__PURE__ */
|
|
5480
|
-
/* @__PURE__ */
|
|
5072
|
+
const inputElement2 = /* @__PURE__ */ jsxs24(Box2, { className: inputWrapper2, children: [
|
|
5073
|
+
/* @__PURE__ */ jsxs24(
|
|
5481
5074
|
Box2,
|
|
5482
5075
|
{
|
|
5483
5076
|
ref,
|
|
@@ -5488,24 +5081,24 @@ var DateTimeInput = forwardRef27(
|
|
|
5488
5081
|
children: [
|
|
5489
5082
|
mode === "date" && renderDateSegment(false),
|
|
5490
5083
|
mode === "time" && renderTimeSegment(),
|
|
5491
|
-
mode === "datetime" && /* @__PURE__ */
|
|
5084
|
+
mode === "datetime" && /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
5492
5085
|
renderDateSegment(true),
|
|
5493
5086
|
renderTimeSegment()
|
|
5494
5087
|
] }),
|
|
5495
|
-
showClear && hasValue && !disabled && /* @__PURE__ */
|
|
5088
|
+
showClear && hasValue && !disabled && /* @__PURE__ */ jsx36(
|
|
5496
5089
|
"button",
|
|
5497
5090
|
{
|
|
5498
5091
|
type: "button",
|
|
5499
5092
|
className: clearButton,
|
|
5500
5093
|
onClick: handleClear,
|
|
5501
5094
|
"aria-label": "Clear",
|
|
5502
|
-
children: /* @__PURE__ */
|
|
5095
|
+
children: /* @__PURE__ */ jsx36(Icon_exports.CloseIcon, { size: "16" })
|
|
5503
5096
|
}
|
|
5504
5097
|
)
|
|
5505
5098
|
]
|
|
5506
5099
|
}
|
|
5507
5100
|
),
|
|
5508
|
-
displayHelperText && /* @__PURE__ */
|
|
5101
|
+
displayHelperText && /* @__PURE__ */ jsx36(
|
|
5509
5102
|
Text2,
|
|
5510
5103
|
{
|
|
5511
5104
|
id: helperTextId,
|
|
@@ -5516,7 +5109,7 @@ var DateTimeInput = forwardRef27(
|
|
|
5516
5109
|
}
|
|
5517
5110
|
)
|
|
5518
5111
|
] });
|
|
5519
|
-
return /* @__PURE__ */
|
|
5112
|
+
return /* @__PURE__ */ jsxs24(
|
|
5520
5113
|
Box2,
|
|
5521
5114
|
{
|
|
5522
5115
|
className: dateTimeInputContainer({
|
|
@@ -5599,12 +5192,12 @@ var TimePickerContent = ({
|
|
|
5599
5192
|
}
|
|
5600
5193
|
};
|
|
5601
5194
|
const selectedDisplayHours = selectedTime ? getDisplayHours(selectedTime.hours) : null;
|
|
5602
|
-
return /* @__PURE__ */
|
|
5603
|
-
/* @__PURE__ */
|
|
5604
|
-
/* @__PURE__ */
|
|
5605
|
-
/* @__PURE__ */
|
|
5606
|
-
/* @__PURE__ */
|
|
5607
|
-
/* @__PURE__ */
|
|
5195
|
+
return /* @__PURE__ */ jsxs24(Box2, { className: timePickerContainer, children: [
|
|
5196
|
+
/* @__PURE__ */ jsx36(Box2, { className: timePickerHeader, children: /* @__PURE__ */ jsx36(Text2, { fontVariant: "text-m-medium", color: "contentPrimary", children: "Select Time" }) }),
|
|
5197
|
+
/* @__PURE__ */ jsxs24(Inline2, { gap: "xs", alignItems: "start", children: [
|
|
5198
|
+
/* @__PURE__ */ jsxs24(Box2, { className: timeColumn, children: [
|
|
5199
|
+
/* @__PURE__ */ jsx36("span", { className: columnLabel, children: "Hour" }),
|
|
5200
|
+
/* @__PURE__ */ jsx36(Box2, { className: timeScrollContainer, children: hoursArray.map((hour) => /* @__PURE__ */ jsx36(
|
|
5608
5201
|
"button",
|
|
5609
5202
|
{
|
|
5610
5203
|
type: "button",
|
|
@@ -5618,10 +5211,10 @@ var TimePickerContent = ({
|
|
|
5618
5211
|
hour
|
|
5619
5212
|
)) })
|
|
5620
5213
|
] }),
|
|
5621
|
-
/* @__PURE__ */
|
|
5622
|
-
/* @__PURE__ */
|
|
5623
|
-
/* @__PURE__ */
|
|
5624
|
-
/* @__PURE__ */
|
|
5214
|
+
/* @__PURE__ */ jsx36("span", { className: columnSeparator, children: ":" }),
|
|
5215
|
+
/* @__PURE__ */ jsxs24(Box2, { className: timeColumn, children: [
|
|
5216
|
+
/* @__PURE__ */ jsx36("span", { className: columnLabel, children: "Min" }),
|
|
5217
|
+
/* @__PURE__ */ jsx36(Box2, { className: timeScrollContainer, children: minutesArray.map((minute) => /* @__PURE__ */ jsx36(
|
|
5625
5218
|
"button",
|
|
5626
5219
|
{
|
|
5627
5220
|
type: "button",
|
|
@@ -5635,11 +5228,11 @@ var TimePickerContent = ({
|
|
|
5635
5228
|
minute
|
|
5636
5229
|
)) })
|
|
5637
5230
|
] }),
|
|
5638
|
-
showSeconds && /* @__PURE__ */
|
|
5639
|
-
/* @__PURE__ */
|
|
5640
|
-
/* @__PURE__ */
|
|
5641
|
-
/* @__PURE__ */
|
|
5642
|
-
/* @__PURE__ */
|
|
5231
|
+
showSeconds && /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
5232
|
+
/* @__PURE__ */ jsx36("span", { className: columnSeparator, children: ":" }),
|
|
5233
|
+
/* @__PURE__ */ jsxs24(Box2, { className: timeColumn, children: [
|
|
5234
|
+
/* @__PURE__ */ jsx36("span", { className: columnLabel, children: "Sec" }),
|
|
5235
|
+
/* @__PURE__ */ jsx36(Box2, { className: timeScrollContainer, children: secondsArray.map((second) => /* @__PURE__ */ jsx36(
|
|
5643
5236
|
"button",
|
|
5644
5237
|
{
|
|
5645
5238
|
type: "button",
|
|
@@ -5654,10 +5247,10 @@ var TimePickerContent = ({
|
|
|
5654
5247
|
)) })
|
|
5655
5248
|
] })
|
|
5656
5249
|
] }),
|
|
5657
|
-
format === "12h" && /* @__PURE__ */
|
|
5658
|
-
/* @__PURE__ */
|
|
5659
|
-
/* @__PURE__ */
|
|
5660
|
-
/* @__PURE__ */
|
|
5250
|
+
format === "12h" && /* @__PURE__ */ jsxs24(Box2, { className: periodColumn, children: [
|
|
5251
|
+
/* @__PURE__ */ jsx36("span", { className: periodLabel, children: "Period" }),
|
|
5252
|
+
/* @__PURE__ */ jsxs24(Stack2, { gap: "xs", children: [
|
|
5253
|
+
/* @__PURE__ */ jsx36(
|
|
5661
5254
|
"button",
|
|
5662
5255
|
{
|
|
5663
5256
|
type: "button",
|
|
@@ -5666,7 +5259,7 @@ var TimePickerContent = ({
|
|
|
5666
5259
|
children: "AM"
|
|
5667
5260
|
}
|
|
5668
5261
|
),
|
|
5669
|
-
/* @__PURE__ */
|
|
5262
|
+
/* @__PURE__ */ jsx36(
|
|
5670
5263
|
"button",
|
|
5671
5264
|
{
|
|
5672
5265
|
type: "button",
|
|
@@ -5678,12 +5271,40 @@ var TimePickerContent = ({
|
|
|
5678
5271
|
] })
|
|
5679
5272
|
] })
|
|
5680
5273
|
] }),
|
|
5681
|
-
/* @__PURE__ */
|
|
5682
|
-
/* @__PURE__ */
|
|
5683
|
-
/* @__PURE__ */
|
|
5274
|
+
/* @__PURE__ */ jsxs24(Box2, { className: timePickerFooter, children: [
|
|
5275
|
+
/* @__PURE__ */ jsx36(Button, { variant: "ghost", destructive: true, size: "md", onClick: onClear, children: "Cancel" }),
|
|
5276
|
+
/* @__PURE__ */ jsx36(Button, { size: "md", onClick: () => onApply(selectedTime), disabled: !selectedTime, children: "Apply" })
|
|
5684
5277
|
] })
|
|
5685
5278
|
] });
|
|
5686
5279
|
};
|
|
5280
|
+
var export_AlertCircleIcon = Icon_exports.AlertCircleIcon;
|
|
5281
|
+
var export_ArrowLeftIcon = Icon_exports.ArrowLeftIcon;
|
|
5282
|
+
var export_ArrowRightIcon = Icon_exports.ArrowRightIcon;
|
|
5283
|
+
var export_CalendarIcon = Icon_exports.CalendarIcon;
|
|
5284
|
+
var export_CheckCircleIcon = Icon_exports.CheckCircleIcon;
|
|
5285
|
+
var export_CheckIcon = Icon_exports.CheckIcon;
|
|
5286
|
+
var export_ChevronDownIcon = Icon_exports.ChevronDownIcon;
|
|
5287
|
+
var export_ChevronLeftIcon = Icon_exports.ChevronLeftIcon;
|
|
5288
|
+
var export_ChevronRightIcon = Icon_exports.ChevronRightIcon;
|
|
5289
|
+
var export_ChevronUpIcon = Icon_exports.ChevronUpIcon;
|
|
5290
|
+
var export_ClockIcon = Icon_exports.ClockIcon;
|
|
5291
|
+
var export_CloseIcon = Icon_exports.CloseIcon;
|
|
5292
|
+
var export_CopyIcon = Icon_exports.CopyIcon;
|
|
5293
|
+
var export_EditIcon = Icon_exports.EditIcon;
|
|
5294
|
+
var export_ExternalLinkIcon = Icon_exports.ExternalLinkIcon;
|
|
5295
|
+
var export_FilterIcon = Icon_exports.FilterIcon;
|
|
5296
|
+
var export_Icon = Icon_exports.Icon;
|
|
5297
|
+
var export_InfoIcon = Icon_exports.InfoIcon;
|
|
5298
|
+
var export_MinusIcon = Icon_exports.MinusIcon;
|
|
5299
|
+
var export_MoreHorizontalIcon = Icon_exports.MoreHorizontalIcon;
|
|
5300
|
+
var export_MoreVerticalIcon = Icon_exports.MoreVerticalIcon;
|
|
5301
|
+
var export_PlusIcon = Icon_exports.PlusIcon;
|
|
5302
|
+
var export_SearchIcon = Icon_exports.SearchIcon;
|
|
5303
|
+
var export_SettingsIcon = Icon_exports.SettingsIcon;
|
|
5304
|
+
var export_SortIcon = Icon_exports.SortIcon;
|
|
5305
|
+
var export_TrashIcon = Icon_exports.TrashIcon;
|
|
5306
|
+
var export_UploadCloudIcon = Icon_exports.UploadCloudIcon;
|
|
5307
|
+
var export_UserIcon = Icon_exports.UserIcon;
|
|
5687
5308
|
export {
|
|
5688
5309
|
AVATAR_COLORS,
|
|
5689
5310
|
Accordion,
|
|
@@ -5691,10 +5312,10 @@ export {
|
|
|
5691
5312
|
AccordionItem,
|
|
5692
5313
|
AccordionRoot,
|
|
5693
5314
|
AccordionTrigger,
|
|
5694
|
-
AlertCircleIcon,
|
|
5315
|
+
export_AlertCircleIcon as AlertCircleIcon,
|
|
5695
5316
|
AlertDialog,
|
|
5696
|
-
ArrowLeftIcon,
|
|
5697
|
-
ArrowRightIcon,
|
|
5317
|
+
export_ArrowLeftIcon as ArrowLeftIcon,
|
|
5318
|
+
export_ArrowRightIcon as ArrowRightIcon,
|
|
5698
5319
|
Avatar,
|
|
5699
5320
|
Badge,
|
|
5700
5321
|
Body,
|
|
@@ -5712,21 +5333,21 @@ export {
|
|
|
5712
5333
|
CalendarArrowButton,
|
|
5713
5334
|
CalendarDateButton,
|
|
5714
5335
|
CalendarGrid,
|
|
5715
|
-
CalendarIcon,
|
|
5336
|
+
export_CalendarIcon as CalendarIcon,
|
|
5716
5337
|
Caption,
|
|
5717
|
-
CheckCircleIcon,
|
|
5718
|
-
|
|
5338
|
+
export_CheckCircleIcon as CheckCircleIcon,
|
|
5339
|
+
export_CheckIcon as CheckIcon,
|
|
5719
5340
|
Checkbox,
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
ChevronUpIcon,
|
|
5341
|
+
export_ChevronDownIcon as ChevronDownIcon,
|
|
5342
|
+
export_ChevronLeftIcon as ChevronLeftIcon,
|
|
5343
|
+
export_ChevronRightIcon as ChevronRightIcon,
|
|
5344
|
+
export_ChevronUpIcon as ChevronUpIcon,
|
|
5724
5345
|
Chip2 as Chip,
|
|
5725
|
-
ClockIcon,
|
|
5726
|
-
|
|
5346
|
+
export_ClockIcon as ClockIcon,
|
|
5347
|
+
export_CloseIcon as CloseIcon,
|
|
5727
5348
|
Code,
|
|
5728
5349
|
ContentSplitter,
|
|
5729
|
-
CopyIcon,
|
|
5350
|
+
export_CopyIcon as CopyIcon,
|
|
5730
5351
|
DateTimeInput,
|
|
5731
5352
|
Dialog,
|
|
5732
5353
|
DialogBody,
|
|
@@ -5752,17 +5373,17 @@ export {
|
|
|
5752
5373
|
DrawerSection,
|
|
5753
5374
|
DrawerTitle,
|
|
5754
5375
|
DrawerTrigger,
|
|
5755
|
-
EditIcon,
|
|
5756
|
-
ExternalLinkIcon,
|
|
5376
|
+
export_EditIcon as EditIcon,
|
|
5377
|
+
export_ExternalLinkIcon as ExternalLinkIcon,
|
|
5757
5378
|
FileUpload,
|
|
5758
|
-
FilterIcon,
|
|
5379
|
+
export_FilterIcon as FilterIcon,
|
|
5759
5380
|
Grid2 as Grid,
|
|
5760
5381
|
GridItem2 as GridItem,
|
|
5761
5382
|
Heading2 as Heading,
|
|
5762
|
-
|
|
5383
|
+
export_Icon as Icon,
|
|
5763
5384
|
IconButton,
|
|
5764
5385
|
Image3 as Image,
|
|
5765
|
-
|
|
5386
|
+
export_InfoIcon as InfoIcon,
|
|
5766
5387
|
Inline2 as Inline,
|
|
5767
5388
|
Input,
|
|
5768
5389
|
Label,
|
|
@@ -5776,9 +5397,9 @@ export {
|
|
|
5776
5397
|
MenuSeparator,
|
|
5777
5398
|
MenuSub,
|
|
5778
5399
|
MenuTrigger,
|
|
5779
|
-
|
|
5780
|
-
MoreHorizontalIcon,
|
|
5781
|
-
MoreVerticalIcon,
|
|
5400
|
+
export_MinusIcon as MinusIcon,
|
|
5401
|
+
export_MoreHorizontalIcon as MoreHorizontalIcon,
|
|
5402
|
+
export_MoreVerticalIcon as MoreVerticalIcon,
|
|
5782
5403
|
Pagination,
|
|
5783
5404
|
PaginationEllipsis,
|
|
5784
5405
|
PaginationInfo,
|
|
@@ -5790,7 +5411,7 @@ export {
|
|
|
5790
5411
|
PaginationPage,
|
|
5791
5412
|
PaginationPrevious,
|
|
5792
5413
|
PaginationRoot,
|
|
5793
|
-
PlusIcon,
|
|
5414
|
+
export_PlusIcon as PlusIcon,
|
|
5794
5415
|
Popover,
|
|
5795
5416
|
PopoverAnchor,
|
|
5796
5417
|
PopoverClose,
|
|
@@ -5798,7 +5419,7 @@ export {
|
|
|
5798
5419
|
PopoverContent,
|
|
5799
5420
|
PopoverRoot,
|
|
5800
5421
|
PopoverTrigger,
|
|
5801
|
-
SearchIcon,
|
|
5422
|
+
export_SearchIcon as SearchIcon,
|
|
5802
5423
|
Select,
|
|
5803
5424
|
SelectContent,
|
|
5804
5425
|
SelectItem,
|
|
@@ -5806,9 +5427,9 @@ export {
|
|
|
5806
5427
|
SelectSeparator,
|
|
5807
5428
|
SelectTrigger,
|
|
5808
5429
|
SelectValue,
|
|
5809
|
-
SettingsIcon,
|
|
5430
|
+
export_SettingsIcon as SettingsIcon,
|
|
5810
5431
|
Skeleton,
|
|
5811
|
-
SortIcon,
|
|
5432
|
+
export_SortIcon as SortIcon,
|
|
5812
5433
|
Spinner,
|
|
5813
5434
|
Stack2 as Stack,
|
|
5814
5435
|
Switch,
|
|
@@ -5825,9 +5446,9 @@ export {
|
|
|
5825
5446
|
ToastViewport,
|
|
5826
5447
|
Tooltip,
|
|
5827
5448
|
TooltipProvider,
|
|
5828
|
-
TrashIcon,
|
|
5829
|
-
|
|
5830
|
-
UserIcon,
|
|
5449
|
+
export_TrashIcon as TrashIcon,
|
|
5450
|
+
export_UploadCloudIcon as UploadCloudIcon,
|
|
5451
|
+
export_UserIcon as UserIcon,
|
|
5831
5452
|
WEEKDAYS,
|
|
5832
5453
|
applyHeadingVariantStyles,
|
|
5833
5454
|
applyTextVariantStyles,
|