@sustaina/shared-ui 1.42.0 → 1.44.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/index.d.mts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +365 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +361 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1203,6 +1203,96 @@ var HandymanIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */ js
|
|
|
1203
1203
|
]
|
|
1204
1204
|
}
|
|
1205
1205
|
);
|
|
1206
|
+
var HomeIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
1207
|
+
"svg",
|
|
1208
|
+
{
|
|
1209
|
+
viewBox: "0 0 24 24",
|
|
1210
|
+
fill: "none",
|
|
1211
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1212
|
+
width: size,
|
|
1213
|
+
height: size,
|
|
1214
|
+
className,
|
|
1215
|
+
"aria-hidden": true,
|
|
1216
|
+
...props,
|
|
1217
|
+
children: [
|
|
1218
|
+
/* @__PURE__ */ jsx(
|
|
1219
|
+
"path",
|
|
1220
|
+
{
|
|
1221
|
+
d: "M15 21V13C15 12.7348 14.8946 12.4804 14.7071 12.2929C14.5196 12.1054 14.2652 12 14 12H10C9.73478 12 9.48043 12.1054 9.29289 12.2929C9.10536 12.4804 9 12.7348 9 13V21",
|
|
1222
|
+
stroke: "currentColor",
|
|
1223
|
+
strokeWidth: "1.5",
|
|
1224
|
+
strokeLinecap: "round",
|
|
1225
|
+
strokeLinejoin: "round"
|
|
1226
|
+
}
|
|
1227
|
+
),
|
|
1228
|
+
/* @__PURE__ */ jsx(
|
|
1229
|
+
"path",
|
|
1230
|
+
{
|
|
1231
|
+
d: "M3 9.99948C2.99993 9.70855 3.06333 9.4211 3.18579 9.1572C3.30824 8.89329 3.4868 8.65928 3.709 8.47148L10.709 2.47248C11.07 2.16739 11.5274 2 12 2C12.4726 2 12.93 2.16739 13.291 2.47248L20.291 8.47148C20.5132 8.65928 20.6918 8.89329 20.8142 9.1572C20.9367 9.4211 21.0001 9.70855 21 9.99948V18.9995C21 19.5299 20.7893 20.0386 20.4142 20.4137C20.0391 20.7888 19.5304 20.9995 19 20.9995H5C4.46957 20.9995 3.96086 20.7888 3.58579 20.4137C3.21071 20.0386 3 19.5299 3 18.9995V9.99948Z",
|
|
1232
|
+
stroke: "currentColor",
|
|
1233
|
+
strokeWidth: "1.5",
|
|
1234
|
+
strokeLinecap: "round",
|
|
1235
|
+
strokeLinejoin: "round"
|
|
1236
|
+
}
|
|
1237
|
+
)
|
|
1238
|
+
]
|
|
1239
|
+
}
|
|
1240
|
+
);
|
|
1241
|
+
var HomePlusIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
1242
|
+
"svg",
|
|
1243
|
+
{
|
|
1244
|
+
viewBox: "0 0 24 24",
|
|
1245
|
+
fill: "none",
|
|
1246
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1247
|
+
width: size,
|
|
1248
|
+
height: size,
|
|
1249
|
+
className,
|
|
1250
|
+
"aria-hidden": true,
|
|
1251
|
+
...props,
|
|
1252
|
+
children: [
|
|
1253
|
+
/* @__PURE__ */ jsx(
|
|
1254
|
+
"path",
|
|
1255
|
+
{
|
|
1256
|
+
d: "M13.22 2.41533C12.8579 2.13654 12.4113 1.99014 11.9544 2.00052C11.4976 2.01089 11.0581 2.1774 10.709 2.47233L3.709 8.47133C3.4868 8.65913 3.30824 8.89314 3.18579 9.15705C3.06333 9.42096 2.99993 9.7084 3 9.99933V18.9993C3 19.5298 3.21071 20.0385 3.58579 20.4135C3.96086 20.7886 4.46957 20.9993 5 20.9993H19C19.5304 20.9993 20.0391 20.7886 20.4142 20.4135C20.7893 20.0385 21 19.5298 21 18.9993V11.6453",
|
|
1257
|
+
stroke: "currentColor",
|
|
1258
|
+
strokeWidth: "1.5",
|
|
1259
|
+
strokeLinecap: "round",
|
|
1260
|
+
strokeLinejoin: "round"
|
|
1261
|
+
}
|
|
1262
|
+
),
|
|
1263
|
+
/* @__PURE__ */ jsx(
|
|
1264
|
+
"path",
|
|
1265
|
+
{
|
|
1266
|
+
d: "M15 21V13C15 12.7348 14.8946 12.4804 14.7071 12.2929C14.5196 12.1054 14.2652 12 14 12H10C9.73478 12 9.48043 12.1054 9.29289 12.2929C9.10536 12.4804 9 12.7348 9 13V21",
|
|
1267
|
+
stroke: "currentColor",
|
|
1268
|
+
strokeWidth: "1.5",
|
|
1269
|
+
strokeLinecap: "round",
|
|
1270
|
+
strokeLinejoin: "round"
|
|
1271
|
+
}
|
|
1272
|
+
),
|
|
1273
|
+
/* @__PURE__ */ jsx(
|
|
1274
|
+
"path",
|
|
1275
|
+
{
|
|
1276
|
+
d: "M15 6H21",
|
|
1277
|
+
stroke: "currentColor",
|
|
1278
|
+
strokeWidth: "1.5",
|
|
1279
|
+
strokeLinecap: "round",
|
|
1280
|
+
strokeLinejoin: "round"
|
|
1281
|
+
}
|
|
1282
|
+
),
|
|
1283
|
+
/* @__PURE__ */ jsx(
|
|
1284
|
+
"path",
|
|
1285
|
+
{
|
|
1286
|
+
d: "M18 3V9",
|
|
1287
|
+
stroke: "currentColor",
|
|
1288
|
+
strokeWidth: "1.5",
|
|
1289
|
+
strokeLinecap: "round",
|
|
1290
|
+
strokeLinejoin: "round"
|
|
1291
|
+
}
|
|
1292
|
+
)
|
|
1293
|
+
]
|
|
1294
|
+
}
|
|
1295
|
+
);
|
|
1206
1296
|
var InformationIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
1207
1297
|
"svg",
|
|
1208
1298
|
{
|
|
@@ -1367,6 +1457,41 @@ var MenuIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
|
1367
1457
|
]
|
|
1368
1458
|
}
|
|
1369
1459
|
);
|
|
1460
|
+
var MessageIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
1461
|
+
"svg",
|
|
1462
|
+
{
|
|
1463
|
+
viewBox: "0 0 24 24",
|
|
1464
|
+
fill: "none",
|
|
1465
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1466
|
+
width: size,
|
|
1467
|
+
height: size,
|
|
1468
|
+
className,
|
|
1469
|
+
"aria-hidden": true,
|
|
1470
|
+
...props,
|
|
1471
|
+
children: [
|
|
1472
|
+
/* @__PURE__ */ jsx(
|
|
1473
|
+
"path",
|
|
1474
|
+
{
|
|
1475
|
+
d: "M14 9C14 9.53043 13.7893 10.0391 13.4142 10.4142C13.0391 10.7893 12.5304 11 12 11H6L2 15V4C2 3.46957 2.21071 2.96086 2.58579 2.58579C2.96086 2.21071 3.46957 2 4 2H12C12.5304 2 13.0391 2.21071 13.4142 2.58579C13.7893 2.96086 14 3.46957 14 4V9Z",
|
|
1476
|
+
stroke: "currentColor",
|
|
1477
|
+
strokeWidth: "1.5",
|
|
1478
|
+
strokeLinecap: "round",
|
|
1479
|
+
strokeLinejoin: "round"
|
|
1480
|
+
}
|
|
1481
|
+
),
|
|
1482
|
+
/* @__PURE__ */ jsx(
|
|
1483
|
+
"path",
|
|
1484
|
+
{
|
|
1485
|
+
d: "M18 9H20C20.5304 9 21.0391 9.21071 21.4142 9.58579C21.7893 9.96086 22 10.4696 22 11V22L18 18H12C11.4696 18 10.9609 17.7893 10.5858 17.4142C10.2107 17.0391 10 16.5304 10 16V15",
|
|
1486
|
+
stroke: "currentColor",
|
|
1487
|
+
strokeWidth: "1.5",
|
|
1488
|
+
strokeLinecap: "round",
|
|
1489
|
+
strokeLinejoin: "round"
|
|
1490
|
+
}
|
|
1491
|
+
)
|
|
1492
|
+
]
|
|
1493
|
+
}
|
|
1494
|
+
);
|
|
1370
1495
|
var NotFoundIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
1371
1496
|
"svg",
|
|
1372
1497
|
{
|
|
@@ -1947,6 +2072,113 @@ var UserFriendIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */
|
|
|
1947
2072
|
}
|
|
1948
2073
|
);
|
|
1949
2074
|
var user_friend_default = UserFriendIcon;
|
|
2075
|
+
var UserGroupIcon = ({
|
|
2076
|
+
size = "1em",
|
|
2077
|
+
stroke = "currentColor",
|
|
2078
|
+
className,
|
|
2079
|
+
...props
|
|
2080
|
+
}) => /* @__PURE__ */ jsxs(
|
|
2081
|
+
"svg",
|
|
2082
|
+
{
|
|
2083
|
+
viewBox: "0 0 18 18",
|
|
2084
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2085
|
+
fill: "none",
|
|
2086
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
2087
|
+
width: size,
|
|
2088
|
+
height: size,
|
|
2089
|
+
className,
|
|
2090
|
+
"aria-hidden": true,
|
|
2091
|
+
...props,
|
|
2092
|
+
children: [
|
|
2093
|
+
/* @__PURE__ */ jsx(
|
|
2094
|
+
"path",
|
|
2095
|
+
{
|
|
2096
|
+
d: "M12 15.75V14.25C12 13.4544 11.6839 12.6913 11.1213 12.1287C10.5587 11.5661 9.79565 11.25 9 11.25H4.5C3.70435 11.25 2.94129 11.5661 2.37868 12.1287C1.81607 12.6913 1.5 13.4544 1.5 14.25V15.75",
|
|
2097
|
+
stroke,
|
|
2098
|
+
strokeWidth: "1.5",
|
|
2099
|
+
strokeLinecap: "round",
|
|
2100
|
+
strokeLinejoin: "round"
|
|
2101
|
+
}
|
|
2102
|
+
),
|
|
2103
|
+
/* @__PURE__ */ jsx(
|
|
2104
|
+
"path",
|
|
2105
|
+
{
|
|
2106
|
+
d: "M12 2.34595C12.6433 2.51272 13.213 2.8884 13.6198 3.41399C14.0265 3.93959 14.2471 4.58536 14.2471 5.24995C14.2471 5.91453 14.0265 6.5603 13.6198 7.0859C13.213 7.6115 12.6433 7.98717 12 8.15395",
|
|
2107
|
+
stroke,
|
|
2108
|
+
strokeWidth: "1.5",
|
|
2109
|
+
strokeLinecap: "round",
|
|
2110
|
+
strokeLinejoin: "round"
|
|
2111
|
+
}
|
|
2112
|
+
),
|
|
2113
|
+
/* @__PURE__ */ jsx(
|
|
2114
|
+
"path",
|
|
2115
|
+
{
|
|
2116
|
+
d: "M16.5 15.7499V14.2499C16.4995 13.5852 16.2783 12.9395 15.871 12.4141C15.4638 11.8888 14.8936 11.5136 14.25 11.3474",
|
|
2117
|
+
stroke,
|
|
2118
|
+
strokeWidth: "1.5",
|
|
2119
|
+
strokeLinecap: "round",
|
|
2120
|
+
strokeLinejoin: "round"
|
|
2121
|
+
}
|
|
2122
|
+
),
|
|
2123
|
+
/* @__PURE__ */ jsx(
|
|
2124
|
+
"path",
|
|
2125
|
+
{
|
|
2126
|
+
d: "M6.75 8.25C8.40685 8.25 9.75 6.90685 9.75 5.25C9.75 3.59315 8.40685 2.25 6.75 2.25C5.09315 2.25 3.75 3.59315 3.75 5.25C3.75 6.90685 5.09315 8.25 6.75 8.25Z",
|
|
2127
|
+
stroke,
|
|
2128
|
+
strokeWidth: "1.5",
|
|
2129
|
+
strokeLinecap: "round",
|
|
2130
|
+
strokeLinejoin: "round"
|
|
2131
|
+
}
|
|
2132
|
+
)
|
|
2133
|
+
]
|
|
2134
|
+
}
|
|
2135
|
+
);
|
|
2136
|
+
var user_group_default = UserGroupIcon;
|
|
2137
|
+
var UserProtectIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
2138
|
+
"svg",
|
|
2139
|
+
{
|
|
2140
|
+
viewBox: "0 0 24 24",
|
|
2141
|
+
fill: "none",
|
|
2142
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2143
|
+
width: size,
|
|
2144
|
+
height: size,
|
|
2145
|
+
className,
|
|
2146
|
+
"aria-hidden": true,
|
|
2147
|
+
...props,
|
|
2148
|
+
children: [
|
|
2149
|
+
/* @__PURE__ */ jsx(
|
|
2150
|
+
"path",
|
|
2151
|
+
{
|
|
2152
|
+
d: "M20 13.0004C20 18.0004 16.5 20.5005 12.34 21.9505C12.1222 22.0243 11.8855 22.0207 11.67 21.9405C7.5 20.5005 4 18.0004 4 13.0004V6.00045C4 5.73523 4.10536 5.48088 4.29289 5.29334C4.48043 5.10581 4.73478 5.00045 5 5.00045C7 5.00045 9.5 3.80045 11.24 2.28045C11.4519 2.09945 11.7214 2 12 2C12.2786 2 12.5481 2.09945 12.76 2.28045C14.51 3.81045 17 5.00045 19 5.00045C19.2652 5.00045 19.5196 5.10581 19.7071 5.29334C19.8946 5.48088 20 5.73523 20 6.00045V13.0004Z",
|
|
2153
|
+
stroke: "currentColor",
|
|
2154
|
+
strokeWidth: "1.5",
|
|
2155
|
+
strokeLinecap: "round",
|
|
2156
|
+
strokeLinejoin: "round"
|
|
2157
|
+
}
|
|
2158
|
+
),
|
|
2159
|
+
/* @__PURE__ */ jsx(
|
|
2160
|
+
"path",
|
|
2161
|
+
{
|
|
2162
|
+
d: "M6.37598 18.9092C6.80269 17.7614 7.5704 16.7717 8.576 16.0729C9.5816 15.374 10.777 14.9997 12.0015 15C13.2261 15.0003 14.4212 15.3753 15.4265 16.0747C16.4317 16.774 17.1989 17.7642 17.625 18.9122",
|
|
2163
|
+
stroke: "currentColor",
|
|
2164
|
+
strokeWidth: "1.5",
|
|
2165
|
+
strokeLinecap: "round",
|
|
2166
|
+
strokeLinejoin: "round"
|
|
2167
|
+
}
|
|
2168
|
+
),
|
|
2169
|
+
/* @__PURE__ */ jsx(
|
|
2170
|
+
"path",
|
|
2171
|
+
{
|
|
2172
|
+
d: "M12 15C14.2091 15 16 13.2091 16 11C16 8.79086 14.2091 7 12 7C9.79086 7 8 8.79086 8 11C8 13.2091 9.79086 15 12 15Z",
|
|
2173
|
+
stroke: "currentColor",
|
|
2174
|
+
strokeWidth: "1.5",
|
|
2175
|
+
strokeLinecap: "round",
|
|
2176
|
+
strokeLinejoin: "round"
|
|
2177
|
+
}
|
|
2178
|
+
)
|
|
2179
|
+
]
|
|
2180
|
+
}
|
|
2181
|
+
);
|
|
1950
2182
|
var UserIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
1951
2183
|
"svg",
|
|
1952
2184
|
{
|
|
@@ -11462,13 +11694,13 @@ var DefaultHeader = ({
|
|
|
11462
11694
|
children: title
|
|
11463
11695
|
}
|
|
11464
11696
|
) : null;
|
|
11465
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("flex items-start justify-between gap-
|
|
11466
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-
|
|
11697
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex items-start justify-between gap-1", classNames?.header), children: [
|
|
11698
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 min-w-0", children: [
|
|
11467
11699
|
icon ? /* @__PURE__ */ jsx(
|
|
11468
11700
|
"div",
|
|
11469
11701
|
{
|
|
11470
11702
|
className: cn(
|
|
11471
|
-
"w-10 h-10 rounded-full bg-sus-green-50 flex items-
|
|
11703
|
+
"w-10 h-10 rounded-full bg-sus-green-50 flex items-start justify-center",
|
|
11472
11704
|
classNames?.iconWrapper
|
|
11473
11705
|
),
|
|
11474
11706
|
children: icon
|
|
@@ -12270,8 +12502,131 @@ var Input2 = React27.forwardRef(
|
|
|
12270
12502
|
}
|
|
12271
12503
|
);
|
|
12272
12504
|
Input2.displayName = "Input";
|
|
12273
|
-
var
|
|
12274
|
-
|
|
12505
|
+
var createSourceInfo = () => ({
|
|
12506
|
+
source: "prop"
|
|
12507
|
+
});
|
|
12508
|
+
var parseToNumber = (val) => {
|
|
12509
|
+
if (typeof val === "number") return val;
|
|
12510
|
+
if (typeof val === "string" && val !== "") {
|
|
12511
|
+
const parsed = parseFloat(val);
|
|
12512
|
+
if (!isNaN(parsed)) return parsed;
|
|
12513
|
+
}
|
|
12514
|
+
return void 0;
|
|
12515
|
+
};
|
|
12516
|
+
var InputNumber = ({
|
|
12517
|
+
customInputProps,
|
|
12518
|
+
showStepper = false,
|
|
12519
|
+
step = 1,
|
|
12520
|
+
min,
|
|
12521
|
+
max,
|
|
12522
|
+
onStepChange,
|
|
12523
|
+
onValueChange,
|
|
12524
|
+
value,
|
|
12525
|
+
defaultValue,
|
|
12526
|
+
disabled,
|
|
12527
|
+
onBlur,
|
|
12528
|
+
...props
|
|
12529
|
+
}) => {
|
|
12530
|
+
const [internalValue, setInternalValue] = React27.useState(
|
|
12531
|
+
() => parseToNumber(value) ?? parseToNumber(defaultValue)
|
|
12532
|
+
);
|
|
12533
|
+
const [stepperChanged, setStepperChanged] = React27.useState(false);
|
|
12534
|
+
React27.useEffect(() => {
|
|
12535
|
+
const parsed = parseToNumber(value);
|
|
12536
|
+
if (parsed !== void 0) setInternalValue(parsed);
|
|
12537
|
+
}, [value]);
|
|
12538
|
+
const notifyChange = (newValue) => {
|
|
12539
|
+
onStepChange?.(newValue);
|
|
12540
|
+
onValueChange?.(
|
|
12541
|
+
{
|
|
12542
|
+
floatValue: newValue,
|
|
12543
|
+
formattedValue: String(newValue),
|
|
12544
|
+
value: String(newValue)
|
|
12545
|
+
},
|
|
12546
|
+
createSourceInfo()
|
|
12547
|
+
);
|
|
12548
|
+
};
|
|
12549
|
+
const handleValueChange = (values, sourceInfo) => {
|
|
12550
|
+
setInternalValue(values.floatValue);
|
|
12551
|
+
onValueChange?.(values, sourceInfo);
|
|
12552
|
+
if (values.floatValue !== void 0) {
|
|
12553
|
+
onStepChange?.(values.floatValue);
|
|
12554
|
+
}
|
|
12555
|
+
};
|
|
12556
|
+
const handleBlur = (event) => {
|
|
12557
|
+
onBlur?.(event);
|
|
12558
|
+
if (internalValue === void 0) return;
|
|
12559
|
+
const clamped = max !== void 0 && internalValue > max ? max : min !== void 0 && internalValue < min ? min : internalValue;
|
|
12560
|
+
if (clamped !== internalValue) {
|
|
12561
|
+
setInternalValue(clamped);
|
|
12562
|
+
notifyChange(clamped);
|
|
12563
|
+
}
|
|
12564
|
+
};
|
|
12565
|
+
const isAllowed = (values) => {
|
|
12566
|
+
const { floatValue } = values;
|
|
12567
|
+
if (floatValue !== void 0 && max !== void 0 && floatValue > max) return false;
|
|
12568
|
+
if (props.isAllowed && !props.isAllowed(values)) return false;
|
|
12569
|
+
return true;
|
|
12570
|
+
};
|
|
12571
|
+
const changeValue = (delta) => {
|
|
12572
|
+
const current = internalValue ?? 0;
|
|
12573
|
+
const clamped = delta > 0 && max !== void 0 ? Math.min(current + delta, max) : delta < 0 && min !== void 0 ? Math.max(current + delta, min) : current + delta;
|
|
12574
|
+
setInternalValue(clamped);
|
|
12575
|
+
setStepperChanged(true);
|
|
12576
|
+
notifyChange(clamped);
|
|
12577
|
+
};
|
|
12578
|
+
const isIncrementDisabled = disabled || max !== void 0 && (internalValue ?? 0) >= max;
|
|
12579
|
+
const isDecrementDisabled = disabled || min !== void 0 && (internalValue ?? 0) <= min;
|
|
12580
|
+
const buttonClass = cn(
|
|
12581
|
+
"flex items-center justify-center h-3 w-5 transition-colors outline-none",
|
|
12582
|
+
"text-neutral-400 hover:text-neutral-600 active:text-neutral-900",
|
|
12583
|
+
disabled && "opacity-50 cursor-not-allowed"
|
|
12584
|
+
);
|
|
12585
|
+
return /* @__PURE__ */ jsx(
|
|
12586
|
+
NumericFormat,
|
|
12587
|
+
{
|
|
12588
|
+
customInput: Input2,
|
|
12589
|
+
value: stepperChanged ? internalValue : value,
|
|
12590
|
+
defaultValue,
|
|
12591
|
+
onValueChange: handleValueChange,
|
|
12592
|
+
onBlur: handleBlur,
|
|
12593
|
+
isAllowed,
|
|
12594
|
+
...props,
|
|
12595
|
+
disabled,
|
|
12596
|
+
...customInputProps,
|
|
12597
|
+
addonSuffix: showStepper ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col -space-y-px", children: [
|
|
12598
|
+
/* @__PURE__ */ jsx(
|
|
12599
|
+
"button",
|
|
12600
|
+
{
|
|
12601
|
+
type: "button",
|
|
12602
|
+
onClick: () => changeValue(step),
|
|
12603
|
+
disabled: isIncrementDisabled,
|
|
12604
|
+
className: buttonClass,
|
|
12605
|
+
tabIndex: -1,
|
|
12606
|
+
"aria-label": "Increment",
|
|
12607
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4", strokeWidth: 2 })
|
|
12608
|
+
}
|
|
12609
|
+
),
|
|
12610
|
+
/* @__PURE__ */ jsx(
|
|
12611
|
+
"button",
|
|
12612
|
+
{
|
|
12613
|
+
type: "button",
|
|
12614
|
+
onClick: () => changeValue(-step),
|
|
12615
|
+
disabled: isDecrementDisabled,
|
|
12616
|
+
className: buttonClass,
|
|
12617
|
+
tabIndex: -1,
|
|
12618
|
+
"aria-label": "Decrement",
|
|
12619
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4", strokeWidth: 2 })
|
|
12620
|
+
}
|
|
12621
|
+
)
|
|
12622
|
+
] }) : customInputProps?.addonSuffix,
|
|
12623
|
+
suffixInteractive: showStepper || customInputProps?.suffixInteractive,
|
|
12624
|
+
className: cn(
|
|
12625
|
+
showStepper && "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",
|
|
12626
|
+
props.className
|
|
12627
|
+
)
|
|
12628
|
+
}
|
|
12629
|
+
);
|
|
12275
12630
|
};
|
|
12276
12631
|
var InputNumber_default = InputNumber;
|
|
12277
12632
|
var ActionButton = ({ label, onPress, disabled, className }) => {
|
|
@@ -13069,6 +13424,6 @@ var TabSelect = ({
|
|
|
13069
13424
|
);
|
|
13070
13425
|
};
|
|
13071
13426
|
|
|
13072
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionMenu, AdministrationIcon, AdvanceSearch_default as AdvanceSearch, AnalyticsIcon, application_log_default as ApplicationLogIcon, arrow_default as ArrowIcon, AuditFooter, Button, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Combobox_default as Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CropperModal, CropperModalError, custom_action_status_default as CustomActionStatusIcon, custom_field_default as CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable_default as DataTable, DatePicker2 as DatePicker, decrease_default as DecreaseIcon, Dialog, DialogAlert, DialogAlertProvider, DialogContent, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, filters_default as FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, GridSettingsModal_default as GridSettingsModal, HamburgerMenuIcon, HandymanIcon, HeaderCell_default as HeaderCell, Image2 as Image, information_default as InformationIcon, Input, InputNumber_default as InputNumber, Label2 as Label, LookupSelect, MailIcon, MainListContainer_default as MainListContainer, ManIcon, ManagementIcon, MenuIcon, MonthPicker2 as MonthPicker, navbar_default as Navbar, not_found_default as NotFoundIcon, plus_default as PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, PreventPageLeave_default as PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, RichText, RightPanelContainer_default as RightPanelContainer, role_default as RoleIcon, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, calendar_default as SuiCalendarIcon, calendar2_default as SuiCalendarIcon2, check_default as SuiCheckIcon, dots_vertical_default as SuiDotsVerticalIcon, empty_data_default as SuiEmptyDataIcon, expand_default as SuiExpandIcon, filter_default as SuiFilterIcon, setting_default as SuiSettingIcon, triangle_down_default as SuiTriangleDownIcon, warning_default as SuiWarningIcon, Switch, TabSelect, Textarea, ToolBoxIcon, Tooltip2 as Tooltip, TooltipArrow, TooltipContent2 as TooltipContent, TooltipProvider2 as TooltipProvider, TooltipTrigger2 as TooltipTrigger, trash_default as TrashIcon, truncated_default as Truncated, truncatedMouseEnterDiv_default as TruncatedMouseEnterDiv, ui_exports as UI, user_alone_default as UserAloneIcon, user_friend_default as UserFriendIcon, user_default as UserIcon, VirtualizedCommand_default as VirtualizedCommand, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef_default as useBindRef, useControllableState_default as useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore_default as useGridSettingsStore, useHover_default as useHover, useIntersectionObserver_default as useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery_default as useMediaQuery, usePreventPageLeave_default as usePreventPageLeave, usePreventPageLeaveStore_default as usePreventPageLeaveStore, useSafeBlocker, useScreenSize_default as useScreenSize, useSidebar, useTruncated_default as useTruncated, validateTokenPrefixes };
|
|
13427
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionMenu, AdministrationIcon, AdvanceSearch_default as AdvanceSearch, AnalyticsIcon, application_log_default as ApplicationLogIcon, arrow_default as ArrowIcon, AuditFooter, Button, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Combobox_default as Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CropperModal, CropperModalError, custom_action_status_default as CustomActionStatusIcon, custom_field_default as CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable_default as DataTable, DatePicker2 as DatePicker, decrease_default as DecreaseIcon, Dialog, DialogAlert, DialogAlertProvider, DialogContent, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, filters_default as FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, GridSettingsModal_default as GridSettingsModal, HamburgerMenuIcon, HandymanIcon, HeaderCell_default as HeaderCell, HomeIcon, HomePlusIcon, Image2 as Image, information_default as InformationIcon, Input, InputNumber_default as InputNumber, Label2 as Label, LookupSelect, MailIcon, MainListContainer_default as MainListContainer, ManIcon, ManagementIcon, MenuIcon, MessageIcon, MonthPicker2 as MonthPicker, navbar_default as Navbar, not_found_default as NotFoundIcon, plus_default as PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, PreventPageLeave_default as PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, RichText, RightPanelContainer_default as RightPanelContainer, role_default as RoleIcon, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, calendar_default as SuiCalendarIcon, calendar2_default as SuiCalendarIcon2, check_default as SuiCheckIcon, dots_vertical_default as SuiDotsVerticalIcon, empty_data_default as SuiEmptyDataIcon, expand_default as SuiExpandIcon, filter_default as SuiFilterIcon, setting_default as SuiSettingIcon, triangle_down_default as SuiTriangleDownIcon, warning_default as SuiWarningIcon, Switch, TabSelect, Textarea, ToolBoxIcon, Tooltip2 as Tooltip, TooltipArrow, TooltipContent2 as TooltipContent, TooltipProvider2 as TooltipProvider, TooltipTrigger2 as TooltipTrigger, trash_default as TrashIcon, truncated_default as Truncated, truncatedMouseEnterDiv_default as TruncatedMouseEnterDiv, ui_exports as UI, user_alone_default as UserAloneIcon, user_friend_default as UserFriendIcon, user_group_default as UserGroupIcon, user_default as UserIcon, UserProtectIcon, VirtualizedCommand_default as VirtualizedCommand, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef_default as useBindRef, useControllableState_default as useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore_default as useGridSettingsStore, useHover_default as useHover, useIntersectionObserver_default as useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery_default as useMediaQuery, usePreventPageLeave_default as usePreventPageLeave, usePreventPageLeaveStore_default as usePreventPageLeaveStore, useSafeBlocker, useScreenSize_default as useScreenSize, useSidebar, useTruncated_default as useTruncated, validateTokenPrefixes };
|
|
13073
13428
|
//# sourceMappingURL=index.mjs.map
|
|
13074
13429
|
//# sourceMappingURL=index.mjs.map
|