@reopt-ai/opt-ui 1.12.1 → 1.12.3
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/COMPONENT_CATALOG.md +32 -30
- package/README.md +6 -1
- package/dist/core/index.cjs +2 -2
- package/dist/core/index.js +2 -2
- package/dist/docs/02-components/01-core.md +7 -7
- package/dist/docs/02-components/02-visuals.md +1 -1
- package/dist/docs/02-components/03-shells.md +26 -24
- package/dist/docs/02-components/04-surfaces.md +1 -1
- package/dist/docs/02-components/index.md +1 -1
- package/dist/{field-sidebar-uXmoyvd7.d.cts → field-sidebar-BdP0-TMs.d.cts} +26 -1
- package/dist/{field-sidebar-CrYlRZew.d.ts → field-sidebar-CHs8eEzs.d.ts} +26 -1
- package/dist/{field-sidebar-oa6zOmcd.cjs → field-sidebar-CQSlweP0.cjs} +42 -31
- package/dist/{field-sidebar-zkkqC7__.js → field-sidebar-DJKWQQeu.js} +42 -31
- package/dist/index.cjs +47 -18
- package/dist/index.d.cts +21 -6
- package/dist/index.d.ts +21 -6
- package/dist/index.js +47 -18
- package/dist/{key-pad-menu-SItoHPLu.cjs → key-pad-menu-1YN221Oi.cjs} +1 -1
- package/dist/{key-pad-menu-Di2aRGbM.js → key-pad-menu-CUiQ-vKw.js} +1 -1
- package/dist/meta.cjs +28 -14
- package/dist/meta.js +28 -14
- package/dist/query.cjs +19 -6
- package/dist/query.js +19 -6
- package/dist/shells/index.cjs +1 -1
- package/dist/shells/index.d.cts +1 -1
- package/dist/shells/index.d.ts +1 -1
- package/dist/shells/index.js +1 -1
- package/dist/{text-truncate-DSuZECy0.js → text-truncate-BFWd2cE_.js} +116 -116
- package/dist/{text-truncate-I1XLWmRa.cjs → text-truncate-DsG5UAOY.cjs} +115 -115
- package/package.json +1 -1
|
@@ -864,6 +864,71 @@ function Alert(_ref) {
|
|
|
864
864
|
}));
|
|
865
865
|
}
|
|
866
866
|
//#endregion
|
|
867
|
+
//#region src/core/toolbar.tsx
|
|
868
|
+
const _excluded$12 = ["className"];
|
|
869
|
+
const _excluded2$8 = ["className"];
|
|
870
|
+
const _excluded3$7 = ["className"];
|
|
871
|
+
const _excluded4$5 = ["className"];
|
|
872
|
+
const _excluded5$3 = ["className"];
|
|
873
|
+
const toolbarClass = `${OPT_SURFACE} ${OPT_BORDER} inline-flex w-fit items-center gap-0.5 px-1.5 py-1`;
|
|
874
|
+
const buttonClass = `cursor-pointer rounded-md px-2.5 py-1.5 text-text-primary transition-colors data-[disabled]:cursor-not-allowed ${OPT_ACTIVE_ITEM} ${OPT_FOCUS}`;
|
|
875
|
+
const separatorClass = "mx-1 h-6 w-px bg-border-subtle";
|
|
876
|
+
const tooltipClass = "z-50 rounded-md bg-foreground px-2 py-1 text-xs text-background shadow-lg";
|
|
877
|
+
/** Renders the toolbar root component. */
|
|
878
|
+
function ToolbarRoot$1(props) {
|
|
879
|
+
return /* @__PURE__ */ jsx(ToolbarRoot, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
880
|
+
"data-opt-id": "V33Y0",
|
|
881
|
+
"data-opt-slug": "toolbar.ToolbarRoot"
|
|
882
|
+
}));
|
|
883
|
+
}
|
|
884
|
+
/** Renders the toolbar container component. */
|
|
885
|
+
function ToolbarContainer$1(_ref) {
|
|
886
|
+
let { className } = _ref, props = _objectWithoutProperties(_ref, _excluded$12);
|
|
887
|
+
return /* @__PURE__ */ jsx(ToolbarContainer, _objectSpread2(_objectSpread2({ className: cn(toolbarClass, className) }, props), {}, {
|
|
888
|
+
"data-opt-id": "2AVXB",
|
|
889
|
+
"data-opt-slug": "toolbar.ToolbarContainer"
|
|
890
|
+
}));
|
|
891
|
+
}
|
|
892
|
+
/** Renders the toolbar button component. */
|
|
893
|
+
function ToolbarButton$1(_ref2) {
|
|
894
|
+
let { className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$8);
|
|
895
|
+
return /* @__PURE__ */ jsx(ToolbarButton, _objectSpread2(_objectSpread2({ className: cn(buttonClass, className) }, props), {}, {
|
|
896
|
+
"data-opt-id": "C212C",
|
|
897
|
+
"data-opt-slug": "toolbar.ToolbarButton"
|
|
898
|
+
}));
|
|
899
|
+
}
|
|
900
|
+
/** Renders the toolbar separator component. */
|
|
901
|
+
function ToolbarSeparator$1(_ref3) {
|
|
902
|
+
let { className } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$7);
|
|
903
|
+
return /* @__PURE__ */ jsx(ToolbarSeparator, _objectSpread2(_objectSpread2({ className: cn(separatorClass, className) }, props), {}, {
|
|
904
|
+
"data-opt-id": "9J72S",
|
|
905
|
+
"data-opt-slug": "toolbar.ToolbarSeparator"
|
|
906
|
+
}));
|
|
907
|
+
}
|
|
908
|
+
/** Renders the tooltip provider component. */
|
|
909
|
+
function TooltipProvider$1(props) {
|
|
910
|
+
return /* @__PURE__ */ jsx(TooltipProvider, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
911
|
+
"data-opt-id": "6NKHT",
|
|
912
|
+
"data-opt-slug": "toolbar.TooltipProvider"
|
|
913
|
+
}));
|
|
914
|
+
}
|
|
915
|
+
/** Renders the tooltip anchor component. */
|
|
916
|
+
function TooltipAnchor$1(_ref4) {
|
|
917
|
+
let { className } = _ref4, props = _objectWithoutProperties(_ref4, _excluded4$5);
|
|
918
|
+
return /* @__PURE__ */ jsx(TooltipAnchor, _objectSpread2(_objectSpread2({ className }, props), {}, {
|
|
919
|
+
"data-opt-id": "SAW1B",
|
|
920
|
+
"data-opt-slug": "toolbar.TooltipAnchor"
|
|
921
|
+
}));
|
|
922
|
+
}
|
|
923
|
+
/** Renders the tooltip component. */
|
|
924
|
+
function Tooltip$1(_ref5) {
|
|
925
|
+
let { className } = _ref5, props = _objectWithoutProperties(_ref5, _excluded5$3);
|
|
926
|
+
return /* @__PURE__ */ jsx(Tooltip, _objectSpread2(_objectSpread2({ className: cn(tooltipClass, className) }, props), {}, {
|
|
927
|
+
"data-opt-id": "XSAT4",
|
|
928
|
+
"data-opt-slug": "toolbar.Tooltip"
|
|
929
|
+
}));
|
|
930
|
+
}
|
|
931
|
+
//#endregion
|
|
867
932
|
//#region src/lib/use-input-id.ts
|
|
868
933
|
/**
|
|
869
934
|
* Generates a stable component ID from label text.
|
|
@@ -874,7 +939,7 @@ function useInputId(id, label, prefix) {
|
|
|
874
939
|
}
|
|
875
940
|
//#endregion
|
|
876
941
|
//#region src/core/input.tsx
|
|
877
|
-
const _excluded$
|
|
942
|
+
const _excluded$11 = [
|
|
878
943
|
"label",
|
|
879
944
|
"error",
|
|
880
945
|
"hint",
|
|
@@ -889,7 +954,7 @@ const _excluded$12 = [
|
|
|
889
954
|
const inputSizeStyles = OPT_INPUT_SIZE;
|
|
890
955
|
const Input = forwardRef((_ref, ref) => {
|
|
891
956
|
var _useInputId;
|
|
892
|
-
let { label, error, hint, leftIcon, rightIcon, fullWidth = false, size = "md", required, className, id } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
957
|
+
let { label, error, hint, leftIcon, rightIcon, fullWidth = false, size = "md", required, className, id } = _ref, props = _objectWithoutProperties(_ref, _excluded$11);
|
|
893
958
|
const fallbackId = useId().replace(/:/g, "");
|
|
894
959
|
const inputId = (_useInputId = useInputId(id, label, "input")) !== null && _useInputId !== void 0 ? _useInputId : `input-${fallbackId}`;
|
|
895
960
|
const hasError = Boolean(error);
|
|
@@ -1040,7 +1105,7 @@ function StarRating({ value = 0, onChange, max = 5, readOnly = false, size = "md
|
|
|
1040
1105
|
}
|
|
1041
1106
|
//#endregion
|
|
1042
1107
|
//#region src/core/meter.tsx
|
|
1043
|
-
const _excluded$
|
|
1108
|
+
const _excluded$10 = [
|
|
1044
1109
|
"value",
|
|
1045
1110
|
"min",
|
|
1046
1111
|
"max",
|
|
@@ -1068,7 +1133,7 @@ const variantStyles = {
|
|
|
1068
1133
|
* opt-ui-primitives Meter primitive, which owns the role/aria/valuetext.
|
|
1069
1134
|
*/
|
|
1070
1135
|
function Meter$1(_ref) {
|
|
1071
|
-
let { value, min = 0, max = 100, size = "md", variant = "default", showValue = false, label, getValueLabel, className } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1136
|
+
let { value, min = 0, max = 100, size = "md", variant = "default", showValue = false, label, getValueLabel, className } = _ref, props = _objectWithoutProperties(_ref, _excluded$10);
|
|
1072
1137
|
const clamped = Math.min(Math.max(value, min), max);
|
|
1073
1138
|
const percentage = max === min ? 0 : (clamped - min) / (max - min) * 100;
|
|
1074
1139
|
return /* @__PURE__ */ jsxs("div", _objectSpread2(_objectSpread2({ className: cn("w-full", className) }, props), {}, {
|
|
@@ -1116,8 +1181,8 @@ function CompositeZone({ children, label, focusLoop = true, focusWrap = true, cl
|
|
|
1116
1181
|
}
|
|
1117
1182
|
//#endregion
|
|
1118
1183
|
//#region src/core/disclosure.tsx
|
|
1119
|
-
const _excluded$
|
|
1120
|
-
const _excluded2$
|
|
1184
|
+
const _excluded$9 = ["className"];
|
|
1185
|
+
const _excluded2$7 = ["className"];
|
|
1121
1186
|
const triggerClass$1 = `flex w-full cursor-pointer items-center justify-between px-4 py-4 text-left text-sm font-medium text-text-primary transition-colors hover:bg-bg-subtle ${OPT_FOCUS} data-[active-item]:bg-bg-subtle data-[disabled]:cursor-not-allowed`;
|
|
1122
1187
|
const contentClass = `overflow-hidden ${OPT_ANIMATE_ENTER_EXIT}`;
|
|
1123
1188
|
/** Renders the disclosure root component. */
|
|
@@ -1129,7 +1194,7 @@ function DisclosureRoot$1(props) {
|
|
|
1129
1194
|
}
|
|
1130
1195
|
/** Renders the disclosure trigger component. */
|
|
1131
1196
|
function DisclosureTrigger$1(_ref) {
|
|
1132
|
-
let { className } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1197
|
+
let { className } = _ref, props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1133
1198
|
return /* @__PURE__ */ jsx(DisclosureTrigger, _objectSpread2(_objectSpread2({ className: cn(triggerClass$1, className) }, props), {}, {
|
|
1134
1199
|
"data-opt-id": "14EZW",
|
|
1135
1200
|
"data-opt-slug": "disclosure.DisclosureTrigger"
|
|
@@ -1137,7 +1202,7 @@ function DisclosureTrigger$1(_ref) {
|
|
|
1137
1202
|
}
|
|
1138
1203
|
/** Renders the disclosure content component. */
|
|
1139
1204
|
function DisclosureContent$1(_ref2) {
|
|
1140
|
-
let { className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
1205
|
+
let { className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$7);
|
|
1141
1206
|
return /* @__PURE__ */ jsx(DisclosureContent, _objectSpread2(_objectSpread2({ className: cn(contentClass, className) }, props), {}, {
|
|
1142
1207
|
"data-opt-id": "78HYF",
|
|
1143
1208
|
"data-opt-slug": "disclosure.DisclosureContent"
|
|
@@ -1145,16 +1210,16 @@ function DisclosureContent$1(_ref2) {
|
|
|
1145
1210
|
}
|
|
1146
1211
|
//#endregion
|
|
1147
1212
|
//#region src/core/tabs.tsx
|
|
1148
|
-
const _excluded$
|
|
1149
|
-
const _excluded2$
|
|
1150
|
-
const _excluded3$
|
|
1213
|
+
const _excluded$8 = ["variant"];
|
|
1214
|
+
const _excluded2$6 = ["className", "actions"];
|
|
1215
|
+
const _excluded3$6 = [
|
|
1151
1216
|
"className",
|
|
1152
1217
|
"icon",
|
|
1153
1218
|
"status",
|
|
1154
1219
|
"statusLabel",
|
|
1155
1220
|
"children"
|
|
1156
1221
|
];
|
|
1157
|
-
const _excluded4$
|
|
1222
|
+
const _excluded4$4 = ["className"];
|
|
1158
1223
|
const TabsVariantContext = React.createContext("underline");
|
|
1159
1224
|
const tabClass = `cursor-pointer border-b-2 border-transparent px-4 py-2.5 text-sm text-text-tertiary transition-colors hover:text-text-primary data-[active-item]:text-text-primary data-[active-item]:border-text-primary data-[disabled]:cursor-not-allowed ${OPT_FOCUS}`;
|
|
1160
1225
|
const tabListClass = "flex border-b border-border-subtle";
|
|
@@ -1167,7 +1232,7 @@ const actionsClass = "flex flex-none items-center gap-element";
|
|
|
1167
1232
|
const tabPanelClass = `pt-4 ${OPT_FOCUS} data-[focus-visible]:rounded-lg`;
|
|
1168
1233
|
/** Renders the tabs root component. */
|
|
1169
1234
|
function TabsRoot$1(_ref) {
|
|
1170
|
-
let { variant = "underline" } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1235
|
+
let { variant = "underline" } = _ref, props = _objectWithoutProperties(_ref, _excluded$8);
|
|
1171
1236
|
return /* @__PURE__ */ jsx(TabsVariantContext.Provider, {
|
|
1172
1237
|
value: variant,
|
|
1173
1238
|
children: /* @__PURE__ */ jsx(TabsRoot, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -1178,7 +1243,7 @@ function TabsRoot$1(_ref) {
|
|
|
1178
1243
|
}
|
|
1179
1244
|
/** Renders the tab list component. */
|
|
1180
1245
|
function TabList$1(_ref2) {
|
|
1181
|
-
let { className, actions } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
1246
|
+
let { className, actions } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$6);
|
|
1182
1247
|
const variant = React.useContext(TabsVariantContext);
|
|
1183
1248
|
const list = /* @__PURE__ */ jsx(TabList, _objectSpread2(_objectSpread2({ className: cn(variant === "workspace" ? workspaceTabListClass : tabListClass, className) }, props), {}, {
|
|
1184
1249
|
"data-opt-id": "68K7E",
|
|
@@ -1195,7 +1260,7 @@ function TabList$1(_ref2) {
|
|
|
1195
1260
|
}
|
|
1196
1261
|
/** Renders the tab component. */
|
|
1197
1262
|
function Tab$1(_ref3) {
|
|
1198
|
-
let { className, icon, status, statusLabel, children } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$
|
|
1263
|
+
let { className, icon, status, statusLabel, children } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$6);
|
|
1199
1264
|
const variant = React.useContext(TabsVariantContext);
|
|
1200
1265
|
const decorated = icon != null || status != null;
|
|
1201
1266
|
return /* @__PURE__ */ jsx(Tab, _objectSpread2(_objectSpread2({ className: cn(variant === "workspace" ? workspaceTabClass : tabClass, className) }, props), {}, {
|
|
@@ -1221,7 +1286,7 @@ function Tab$1(_ref3) {
|
|
|
1221
1286
|
}
|
|
1222
1287
|
/** Renders the tab panel component. */
|
|
1223
1288
|
function TabPanel$1(_ref4) {
|
|
1224
|
-
let { className } = _ref4, props = _objectWithoutProperties(_ref4, _excluded4$
|
|
1289
|
+
let { className } = _ref4, props = _objectWithoutProperties(_ref4, _excluded4$4);
|
|
1225
1290
|
return /* @__PURE__ */ jsx(TabPanel, _objectSpread2(_objectSpread2({ className: cn(tabPanelClass, className) }, props), {}, {
|
|
1226
1291
|
"data-opt-id": "C0MBP",
|
|
1227
1292
|
"data-opt-slug": "tabs.TabPanel"
|
|
@@ -1229,13 +1294,13 @@ function TabPanel$1(_ref4) {
|
|
|
1229
1294
|
}
|
|
1230
1295
|
//#endregion
|
|
1231
1296
|
//#region src/core/select.tsx
|
|
1232
|
-
const _excluded$
|
|
1297
|
+
const _excluded$7 = [
|
|
1233
1298
|
"className",
|
|
1234
1299
|
"minWidth",
|
|
1235
1300
|
"style"
|
|
1236
1301
|
];
|
|
1237
|
-
const _excluded2$
|
|
1238
|
-
const _excluded3$
|
|
1302
|
+
const _excluded2$5 = ["className"];
|
|
1303
|
+
const _excluded3$5 = ["className"];
|
|
1239
1304
|
const triggerClass = `${OPT_INPUT} cursor-pointer items-center justify-between data-[disabled]:cursor-not-allowed ${OPT_FOCUS}`;
|
|
1240
1305
|
const popoverClass$1 = `${OPT_SURFACE_POPOVER} ${OPT_ANIMATE_ENTER_EXIT} z-[120]`;
|
|
1241
1306
|
const itemClass$1 = `flex cursor-pointer items-center gap-2 data-[disabled]:cursor-not-allowed ${OPT_ITEM_BASE} ${OPT_ACTIVE_ITEM}`;
|
|
@@ -1255,7 +1320,7 @@ function SelectLabel$1(props) {
|
|
|
1255
1320
|
}
|
|
1256
1321
|
/** Renders the select trigger component. */
|
|
1257
1322
|
function SelectTrigger$1(_ref) {
|
|
1258
|
-
let { className, minWidth = 140, style } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1323
|
+
let { className, minWidth = 140, style } = _ref, props = _objectWithoutProperties(_ref, _excluded$7);
|
|
1259
1324
|
return /* @__PURE__ */ jsx(SelectTrigger, _objectSpread2(_objectSpread2({
|
|
1260
1325
|
className: cn(triggerClass, className),
|
|
1261
1326
|
style: _objectSpread2({ minWidth: typeof minWidth === "number" ? `${minWidth}px` : minWidth }, style)
|
|
@@ -1266,7 +1331,7 @@ function SelectTrigger$1(_ref) {
|
|
|
1266
1331
|
}
|
|
1267
1332
|
/** Renders the select popover component. */
|
|
1268
1333
|
function SelectPopover$1(_ref2) {
|
|
1269
|
-
let { className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
1334
|
+
let { className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$5);
|
|
1270
1335
|
return /* @__PURE__ */ jsx(SelectPopover, _objectSpread2(_objectSpread2({ className: cn(popoverClass$1, className) }, props), {}, {
|
|
1271
1336
|
"data-opt-id": "P152F",
|
|
1272
1337
|
"data-opt-slug": "select.SelectPopover"
|
|
@@ -1274,7 +1339,7 @@ function SelectPopover$1(_ref2) {
|
|
|
1274
1339
|
}
|
|
1275
1340
|
/** Renders the select item component. */
|
|
1276
1341
|
function SelectItem$1(_ref3) {
|
|
1277
|
-
let { className } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$
|
|
1342
|
+
let { className } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$5);
|
|
1278
1343
|
return /* @__PURE__ */ jsx(SelectItem, _objectSpread2(_objectSpread2({ className: cn(itemClass$1, className) }, props), {}, {
|
|
1279
1344
|
"data-opt-id": "KKBAF",
|
|
1280
1345
|
"data-opt-slug": "select.SelectItem"
|
|
@@ -1282,11 +1347,11 @@ function SelectItem$1(_ref3) {
|
|
|
1282
1347
|
}
|
|
1283
1348
|
//#endregion
|
|
1284
1349
|
//#region src/core/dialog.tsx
|
|
1285
|
-
const _excluded$
|
|
1286
|
-
const _excluded2$
|
|
1287
|
-
const _excluded3$
|
|
1288
|
-
const _excluded4$
|
|
1289
|
-
const _excluded5$
|
|
1350
|
+
const _excluded$6 = ["className"];
|
|
1351
|
+
const _excluded2$4 = ["className", "size"];
|
|
1352
|
+
const _excluded3$4 = ["className", "size"];
|
|
1353
|
+
const _excluded4$3 = ["className"];
|
|
1354
|
+
const _excluded5$2 = ["className"];
|
|
1290
1355
|
const _excluded6$2 = ["className"];
|
|
1291
1356
|
const sizeClasses = {
|
|
1292
1357
|
xs: "max-w-xs",
|
|
@@ -1306,7 +1371,7 @@ function DialogRoot$1(props) {
|
|
|
1306
1371
|
}
|
|
1307
1372
|
/** Renders the dialog disclosure component. */
|
|
1308
1373
|
function DialogDisclosure$1(_ref) {
|
|
1309
|
-
let { className } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1374
|
+
let { className } = _ref, props = _objectWithoutProperties(_ref, _excluded$6);
|
|
1310
1375
|
return /* @__PURE__ */ jsx(DialogDisclosure, _objectSpread2(_objectSpread2({ className: cn("inline-flex cursor-pointer items-center justify-center rounded-lg font-medium transition-colors", OPT_BUTTON_PRIMARY, OPT_FOCUS_VISIBLE, className) }, props), {}, {
|
|
1311
1376
|
"data-opt-id": "32QJK",
|
|
1312
1377
|
"data-opt-slug": "dialog.DialogDisclosure"
|
|
@@ -1314,7 +1379,7 @@ function DialogDisclosure$1(_ref) {
|
|
|
1314
1379
|
}
|
|
1315
1380
|
/** Renders the dialog panel component. */
|
|
1316
1381
|
function DialogPanel$1(_ref2) {
|
|
1317
|
-
let { className, size = "md" } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
1382
|
+
let { className, size = "md" } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$4);
|
|
1318
1383
|
return /* @__PURE__ */ jsx(DialogPanel, _objectSpread2(_objectSpread2({ className: cn(panelBase, sizeClasses[size], className) }, props), {}, {
|
|
1319
1384
|
"data-opt-id": "BTMTG",
|
|
1320
1385
|
"data-opt-slug": "dialog.DialogPanel"
|
|
@@ -1326,7 +1391,7 @@ function DialogPanel$1(_ref2) {
|
|
|
1326
1391
|
* the other Dialog parts (DialogRoot/Heading/Description/Dismiss/…).
|
|
1327
1392
|
*/
|
|
1328
1393
|
function AlertDialogPanel$1(_ref3) {
|
|
1329
|
-
let { className, size = "sm" } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$
|
|
1394
|
+
let { className, size = "sm" } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$4);
|
|
1330
1395
|
return /* @__PURE__ */ jsx(AlertDialogPanel, _objectSpread2(_objectSpread2({ className: cn(panelBase, sizeClasses[size], className) }, props), {}, {
|
|
1331
1396
|
"data-opt-id": "80HGS",
|
|
1332
1397
|
"data-opt-slug": "dialog.AlertDialogPanel"
|
|
@@ -1334,7 +1399,7 @@ function AlertDialogPanel$1(_ref3) {
|
|
|
1334
1399
|
}
|
|
1335
1400
|
/** Renders the dialog heading component. */
|
|
1336
1401
|
function DialogHeading$1(_ref4) {
|
|
1337
|
-
let { className } = _ref4, props = _objectWithoutProperties(_ref4, _excluded4$
|
|
1402
|
+
let { className } = _ref4, props = _objectWithoutProperties(_ref4, _excluded4$3);
|
|
1338
1403
|
return /* @__PURE__ */ jsx(DialogHeading, _objectSpread2(_objectSpread2({ className: cn(`text-lg font-semibold ${OPT_TEXT_PRIMARY}`, className) }, props), {}, {
|
|
1339
1404
|
"data-opt-id": "4NW4H",
|
|
1340
1405
|
"data-opt-slug": "dialog.DialogHeading"
|
|
@@ -1342,7 +1407,7 @@ function DialogHeading$1(_ref4) {
|
|
|
1342
1407
|
}
|
|
1343
1408
|
/** Renders the dialog description component. */
|
|
1344
1409
|
function DialogDescription$1(_ref5) {
|
|
1345
|
-
let { className } = _ref5, props = _objectWithoutProperties(_ref5, _excluded5$
|
|
1410
|
+
let { className } = _ref5, props = _objectWithoutProperties(_ref5, _excluded5$2);
|
|
1346
1411
|
return /* @__PURE__ */ jsx(DialogDescription, _objectSpread2(_objectSpread2({ className: cn(`text-sm ${OPT_TEXT_SECONDARY}`, className) }, props), {}, {
|
|
1347
1412
|
"data-opt-id": "2BN3X",
|
|
1348
1413
|
"data-opt-slug": "dialog.DialogDescription"
|
|
@@ -1388,10 +1453,10 @@ function DialogFooter({ children, className }) {
|
|
|
1388
1453
|
}
|
|
1389
1454
|
//#endregion
|
|
1390
1455
|
//#region src/core/combobox.tsx
|
|
1391
|
-
const _excluded$
|
|
1392
|
-
const _excluded2$
|
|
1393
|
-
const _excluded3$
|
|
1394
|
-
const _excluded4$
|
|
1456
|
+
const _excluded$5 = ["className"];
|
|
1457
|
+
const _excluded2$3 = ["className"];
|
|
1458
|
+
const _excluded3$3 = ["className"];
|
|
1459
|
+
const _excluded4$2 = ["className"];
|
|
1395
1460
|
const inputClass$1 = `${OPT_INPUT} ${OPT_FOCUS}`;
|
|
1396
1461
|
const popoverClass = `${OPT_SURFACE_POPOVER} max-h-60 overflow-y-auto ${OPT_ANIMATE_ENTER_EXIT}`;
|
|
1397
1462
|
const itemClass = `${OPT_ITEM_BASE} ${OPT_ACTIVE_ITEM}`;
|
|
@@ -1406,7 +1471,7 @@ function ComboboxRoot$1(props) {
|
|
|
1406
1471
|
}
|
|
1407
1472
|
/** Renders the combobox input component. */
|
|
1408
1473
|
function ComboboxInput$1(_ref) {
|
|
1409
|
-
let { className } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1474
|
+
let { className } = _ref, props = _objectWithoutProperties(_ref, _excluded$5);
|
|
1410
1475
|
return /* @__PURE__ */ jsx(ComboboxInput, _objectSpread2(_objectSpread2({ className: cn(inputClass$1, className) }, props), {}, {
|
|
1411
1476
|
"data-opt-id": "92FZS",
|
|
1412
1477
|
"data-opt-slug": "combobox.ComboboxInput"
|
|
@@ -1414,7 +1479,7 @@ function ComboboxInput$1(_ref) {
|
|
|
1414
1479
|
}
|
|
1415
1480
|
/** Renders the combobox popover component. */
|
|
1416
1481
|
function ComboboxPopover$1(_ref2) {
|
|
1417
|
-
let { className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
1482
|
+
let { className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
1418
1483
|
return /* @__PURE__ */ jsx(ComboboxPopover, _objectSpread2(_objectSpread2({ className: cn(popoverClass, className) }, props), {}, {
|
|
1419
1484
|
"data-opt-id": "WS4PD",
|
|
1420
1485
|
"data-opt-slug": "combobox.ComboboxPopover"
|
|
@@ -1422,7 +1487,7 @@ function ComboboxPopover$1(_ref2) {
|
|
|
1422
1487
|
}
|
|
1423
1488
|
/** Renders the combobox item component. */
|
|
1424
1489
|
function ComboboxItem$1(_ref3) {
|
|
1425
|
-
let { className } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$
|
|
1490
|
+
let { className } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$3);
|
|
1426
1491
|
return /* @__PURE__ */ jsx(ComboboxItem, _objectSpread2(_objectSpread2({ className: cn(itemClass, className) }, props), {}, {
|
|
1427
1492
|
"data-opt-id": "MAZJN",
|
|
1428
1493
|
"data-opt-slug": "combobox.ComboboxItem"
|
|
@@ -1437,7 +1502,7 @@ function ComboboxGroup$1(props) {
|
|
|
1437
1502
|
}
|
|
1438
1503
|
/** Renders the combobox group label component. */
|
|
1439
1504
|
function ComboboxGroupLabel$1(_ref4) {
|
|
1440
|
-
let { className } = _ref4, props = _objectWithoutProperties(_ref4, _excluded4$
|
|
1505
|
+
let { className } = _ref4, props = _objectWithoutProperties(_ref4, _excluded4$2);
|
|
1441
1506
|
return /* @__PURE__ */ jsx(ComboboxGroupLabel, _objectSpread2(_objectSpread2({ className: cn(groupLabelClass, className) }, props), {}, {
|
|
1442
1507
|
"data-opt-id": "512YF",
|
|
1443
1508
|
"data-opt-slug": "combobox.ComboboxGroupLabel"
|
|
@@ -1454,11 +1519,11 @@ function ComboboxEmpty({ className, children = koComboboxLabels.empty }) {
|
|
|
1454
1519
|
}
|
|
1455
1520
|
//#endregion
|
|
1456
1521
|
//#region src/core/menu.tsx
|
|
1457
|
-
const _excluded$
|
|
1458
|
-
const _excluded2$
|
|
1459
|
-
const _excluded3$
|
|
1460
|
-
const _excluded4$
|
|
1461
|
-
const _excluded5$
|
|
1522
|
+
const _excluded$4 = ["className"];
|
|
1523
|
+
const _excluded2$2 = ["className"];
|
|
1524
|
+
const _excluded3$2 = ["className"];
|
|
1525
|
+
const _excluded4$1 = ["className"];
|
|
1526
|
+
const _excluded5$1 = ["className"];
|
|
1462
1527
|
const _excluded6$1 = ["className"];
|
|
1463
1528
|
const _excluded7$1 = ["className"];
|
|
1464
1529
|
const menuButtonClass = `inline-flex cursor-pointer items-center gap-1 rounded px-3 py-1.5 text-sm text-text-primary hover:bg-bg-subtle data-[active]:bg-bg-subtle data-[disabled]:cursor-not-allowed ${OPT_FOCUS}`;
|
|
@@ -1475,7 +1540,7 @@ function MenubarRoot$1(props) {
|
|
|
1475
1540
|
}
|
|
1476
1541
|
/** Renders the menubar container component. */
|
|
1477
1542
|
function MenubarContainer$1(_ref) {
|
|
1478
|
-
let { className } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
1543
|
+
let { className } = _ref, props = _objectWithoutProperties(_ref, _excluded$4);
|
|
1479
1544
|
return /* @__PURE__ */ jsx(MenubarContainer, _objectSpread2(_objectSpread2({ className: cn(menubarClass, className) }, props), {}, {
|
|
1480
1545
|
"data-opt-id": "4MVQT",
|
|
1481
1546
|
"data-opt-slug": "menu.MenubarContainer"
|
|
@@ -1490,7 +1555,7 @@ function MenuRoot$1(props) {
|
|
|
1490
1555
|
}
|
|
1491
1556
|
/** Renders the menu trigger component. */
|
|
1492
1557
|
function MenuTrigger$1(_ref2) {
|
|
1493
|
-
let { className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
1558
|
+
let { className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
1494
1559
|
return /* @__PURE__ */ jsx(MenuTrigger, _objectSpread2(_objectSpread2({ className: cn(menuButtonClass, className) }, props), {}, {
|
|
1495
1560
|
"data-opt-id": "46BJG",
|
|
1496
1561
|
"data-opt-slug": "menu.MenuTrigger"
|
|
@@ -1505,7 +1570,7 @@ function MenuButtonArrow$1(props) {
|
|
|
1505
1570
|
}
|
|
1506
1571
|
/** Renders the menu popover component. */
|
|
1507
1572
|
function MenuPopover$1(_ref3) {
|
|
1508
|
-
let { className } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$
|
|
1573
|
+
let { className } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$2);
|
|
1509
1574
|
return /* @__PURE__ */ jsx(MenuPopover, _objectSpread2(_objectSpread2({ className: cn(menuPopoverClass, className) }, props), {}, {
|
|
1510
1575
|
"data-opt-id": "Q1MFY",
|
|
1511
1576
|
"data-opt-slug": "menu.MenuPopover"
|
|
@@ -1513,7 +1578,7 @@ function MenuPopover$1(_ref3) {
|
|
|
1513
1578
|
}
|
|
1514
1579
|
/** Renders the menu item component. */
|
|
1515
1580
|
function MenuItem$1(_ref4) {
|
|
1516
|
-
let { className } = _ref4, props = _objectWithoutProperties(_ref4, _excluded4$
|
|
1581
|
+
let { className } = _ref4, props = _objectWithoutProperties(_ref4, _excluded4$1);
|
|
1517
1582
|
return /* @__PURE__ */ jsx(MenuItem, _objectSpread2(_objectSpread2({ className: cn(menuItemClass, className) }, props), {}, {
|
|
1518
1583
|
"data-opt-id": "71JVB",
|
|
1519
1584
|
"data-opt-slug": "menu.MenuItem"
|
|
@@ -1521,7 +1586,7 @@ function MenuItem$1(_ref4) {
|
|
|
1521
1586
|
}
|
|
1522
1587
|
/** Renders the menu item checkbox component. */
|
|
1523
1588
|
function MenuItemCheckbox$1(_ref5) {
|
|
1524
|
-
let { className } = _ref5, props = _objectWithoutProperties(_ref5, _excluded5$
|
|
1589
|
+
let { className } = _ref5, props = _objectWithoutProperties(_ref5, _excluded5$1);
|
|
1525
1590
|
return /* @__PURE__ */ jsx(MenuItemCheckbox, _objectSpread2(_objectSpread2({ className: cn(menuItemClass, className) }, props), {}, {
|
|
1526
1591
|
"data-opt-id": "DG8B3",
|
|
1527
1592
|
"data-opt-slug": "menu.MenuItemCheckbox"
|
|
@@ -1544,71 +1609,6 @@ function MenuSeparator$1(_ref7) {
|
|
|
1544
1609
|
}));
|
|
1545
1610
|
}
|
|
1546
1611
|
//#endregion
|
|
1547
|
-
//#region src/core/toolbar.tsx
|
|
1548
|
-
const _excluded$4 = ["className"];
|
|
1549
|
-
const _excluded2$2 = ["className"];
|
|
1550
|
-
const _excluded3$2 = ["className"];
|
|
1551
|
-
const _excluded4$1 = ["className"];
|
|
1552
|
-
const _excluded5$1 = ["className"];
|
|
1553
|
-
const toolbarClass = `${OPT_SURFACE} ${OPT_BORDER} inline-flex w-fit items-center gap-0.5 px-1.5 py-1`;
|
|
1554
|
-
const buttonClass = `cursor-pointer rounded-md px-2.5 py-1.5 text-text-primary transition-colors data-[disabled]:cursor-not-allowed ${OPT_ACTIVE_ITEM} ${OPT_FOCUS}`;
|
|
1555
|
-
const separatorClass = "mx-1 h-6 w-px bg-border-subtle";
|
|
1556
|
-
const tooltipClass = "z-50 rounded-md bg-foreground px-2 py-1 text-xs text-background shadow-lg";
|
|
1557
|
-
/** Renders the toolbar root component. */
|
|
1558
|
-
function ToolbarRoot$1(props) {
|
|
1559
|
-
return /* @__PURE__ */ jsx(ToolbarRoot, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1560
|
-
"data-opt-id": "V33Y0",
|
|
1561
|
-
"data-opt-slug": "toolbar.ToolbarRoot"
|
|
1562
|
-
}));
|
|
1563
|
-
}
|
|
1564
|
-
/** Renders the toolbar container component. */
|
|
1565
|
-
function ToolbarContainer$1(_ref) {
|
|
1566
|
-
let { className } = _ref, props = _objectWithoutProperties(_ref, _excluded$4);
|
|
1567
|
-
return /* @__PURE__ */ jsx(ToolbarContainer, _objectSpread2(_objectSpread2({ className: cn(toolbarClass, className) }, props), {}, {
|
|
1568
|
-
"data-opt-id": "2AVXB",
|
|
1569
|
-
"data-opt-slug": "toolbar.ToolbarContainer"
|
|
1570
|
-
}));
|
|
1571
|
-
}
|
|
1572
|
-
/** Renders the toolbar button component. */
|
|
1573
|
-
function ToolbarButton$1(_ref2) {
|
|
1574
|
-
let { className } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
1575
|
-
return /* @__PURE__ */ jsx(ToolbarButton, _objectSpread2(_objectSpread2({ className: cn(buttonClass, className) }, props), {}, {
|
|
1576
|
-
"data-opt-id": "C212C",
|
|
1577
|
-
"data-opt-slug": "toolbar.ToolbarButton"
|
|
1578
|
-
}));
|
|
1579
|
-
}
|
|
1580
|
-
/** Renders the toolbar separator component. */
|
|
1581
|
-
function ToolbarSeparator$1(_ref3) {
|
|
1582
|
-
let { className } = _ref3, props = _objectWithoutProperties(_ref3, _excluded3$2);
|
|
1583
|
-
return /* @__PURE__ */ jsx(ToolbarSeparator, _objectSpread2(_objectSpread2({ className: cn(separatorClass, className) }, props), {}, {
|
|
1584
|
-
"data-opt-id": "9J72S",
|
|
1585
|
-
"data-opt-slug": "toolbar.ToolbarSeparator"
|
|
1586
|
-
}));
|
|
1587
|
-
}
|
|
1588
|
-
/** Renders the tooltip provider component. */
|
|
1589
|
-
function TooltipProvider$1(props) {
|
|
1590
|
-
return /* @__PURE__ */ jsx(TooltipProvider, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1591
|
-
"data-opt-id": "6NKHT",
|
|
1592
|
-
"data-opt-slug": "toolbar.TooltipProvider"
|
|
1593
|
-
}));
|
|
1594
|
-
}
|
|
1595
|
-
/** Renders the tooltip anchor component. */
|
|
1596
|
-
function TooltipAnchor$1(_ref4) {
|
|
1597
|
-
let { className } = _ref4, props = _objectWithoutProperties(_ref4, _excluded4$1);
|
|
1598
|
-
return /* @__PURE__ */ jsx(TooltipAnchor, _objectSpread2(_objectSpread2({ className }, props), {}, {
|
|
1599
|
-
"data-opt-id": "SAW1B",
|
|
1600
|
-
"data-opt-slug": "toolbar.TooltipAnchor"
|
|
1601
|
-
}));
|
|
1602
|
-
}
|
|
1603
|
-
/** Renders the tooltip component. */
|
|
1604
|
-
function Tooltip$1(_ref5) {
|
|
1605
|
-
let { className } = _ref5, props = _objectWithoutProperties(_ref5, _excluded5$1);
|
|
1606
|
-
return /* @__PURE__ */ jsx(Tooltip, _objectSpread2(_objectSpread2({ className: cn(tooltipClass, className) }, props), {}, {
|
|
1607
|
-
"data-opt-id": "XSAT4",
|
|
1608
|
-
"data-opt-slug": "toolbar.Tooltip"
|
|
1609
|
-
}));
|
|
1610
|
-
}
|
|
1611
|
-
//#endregion
|
|
1612
1612
|
//#region src/core/number-input.tsx
|
|
1613
1613
|
/** Number of decimal places a finite number is written with (handles exponents). */
|
|
1614
1614
|
function decimalPlaces(n) {
|
|
@@ -4579,4 +4579,4 @@ function TextTruncate({ text, truncation = "startEnd", ellipsis = "…", width,
|
|
|
4579
4579
|
});
|
|
4580
4580
|
}
|
|
4581
4581
|
//#endregion
|
|
4582
|
-
export { PopoverClose$1 as $, OPT_TEXT_LABEL as $n,
|
|
4582
|
+
export { PopoverClose$1 as $, OPT_TEXT_LABEL as $n, ToolbarButton$1 as $t, FormRadio$1 as A, OPT_BADGE_RED as An, DialogPanel$1 as At, FormSubmit$1 as B, OPT_FOCUS as Bn, TabsRoot$1 as Bt, FormGroupLabel$1 as C, getDescribedBy as Cn, DialogBody as Ct, FormNumberInput as D, OPT_BADGE_BLUE as Dn, DialogFooter as Dt, FormLabel$1 as E, OPT_ANIMATE_ENTER_EXIT as En, DialogDismiss$1 as Et, FormSelect as F, OPT_DIVIDER as Fn, SelectRoot$1 as Ft, useFormContext as G, OPT_ITEM_BASE as Gn, CompositeItem as Gt, FormTagInput as H, OPT_HOVER_ITEM as Hn, DisclosureRoot$1 as Ht, FormSelectItem as I, OPT_DOT_GRAY as In, SelectTrigger$1 as It, DateRangePicker as J, OPT_SURFACE_RAISED as Jn, CompositeZone as Jt, useFormStore as K, OPT_SURFACE as Kn, CompositeProvider as Kt, FormSelectPopover as L, OPT_DOT_GREEN as Ln, Tab$1 as Lt, FormRemove$1 as M, OPT_BORDER as Mn, SelectItem$1 as Mt, FormReset$1 as N, OPT_DISCLOSURE_CONTENT as Nn, SelectLabel$1 as Nt, FormProvider$1 as O, OPT_BADGE_GREEN as On, DialogHeader as Ot, FormRoot$1 as P, OPT_DISCLOSURE_TRIGGER as Pn, SelectPopover$1 as Pt, ColorPicker as Q, OPT_TEXTAREA_SIZE as Qn, useInputId as Qt, FormSlider as R, OPT_DOT_RED as Rn, TabList$1 as Rt, FormGroup$1 as S, RequiredMark as Sn, AlertDialogPanel$1 as St, FormInput$1 as T, OPT_ANIMATE_DRAWER as Tn, DialogDisclosure$1 as Tt, FormTextarea as U, OPT_INPUT as Un, DisclosureTrigger$1 as Ut, FormSwitch$1 as V, OPT_FOCUS_VISIBLE as Vn, DisclosureContent$1 as Vt, useFieldValue as W, OPT_INPUT_ERROR as Wn, Composite as Wt, IconPicker as X, OPT_TD as Xn, StarRating as Xt, TagInput as Y, OPT_TABLE_ROW_ACTIVE as Yn, Meter$1 as Yt, getIconRegistryEntry as Z, OPT_TD_MUTED as Zn, Input as Zt, FormControl$1 as _, SkeletonCard as _n, ComboboxGroupLabel$1 as _t, FieldTokenLegend as a, TooltipProvider$1 as an, _objectWithoutProperties as ar, MenuButtonArrow$1 as at, FormError$1 as b, useControlledState as bn, ComboboxPopover$1 as bt, Checkbox as c, Badge as cn, MenuItemRadio$1 as ct, formatOptDateTime as d, koBreadcrumbLabels as dn, MenuSeparator$1 as dt, ToolbarContainer$1 as en, OPT_TEXT_PRIMARY as er, PopoverContent$1 as et, formatOptNumber as f, koComboboxLabels as fn, MenuTrigger$1 as ft, FormColorPicker as g, SkeletonAvatar as gn, ComboboxGroup$1 as gt, FormCheckbox$1 as h, Skeleton as hn, ComboboxEmpty as ht, FieldToken as i, TooltipAnchor$1 as in, _objectSpread2 as ir, NumberInput as it, FormRadioGroup$1 as j, OPT_BADGE_YELLOW as jn, DialogRoot$1 as jt, FormPush$1 as k, OPT_BADGE_NEUTRAL as kn, DialogHeading$1 as kt, CheckboxGroup as l, EmptyState as ln, MenuPopover$1 as lt, formatOptTime as m, StatCard as mn, MenubarRoot$1 as mt, Highlight as n, ToolbarSeparator$1 as nn, OPT_TEXT_TERTIARY as nr, PopoverTrigger$1 as nt, resolveFieldType as o, Alert as on, Kbd as or, MenuItem$1 as ot, formatOptShortDate as p, koStarRatingLabels as pn, MenubarContainer$1 as pt, DEFAULT_PRESETS as q, OPT_SURFACE_POPOVER as qn, CompositeRow as qt, FIELD_TYPE_TOKENS as r, Tooltip$1 as rn, OPT_TH as rr, Slider as rt, Pagination as s, Spinner as sn, cn as sr, MenuItemCheckbox$1 as st, TextTruncate as t, ToolbarRoot$1 as tn, OPT_TEXT_SECONDARY as tr, PopoverRoot$1 as tt, OPT_UI_DEFAULT_LOCALE as u, Button as un, MenuRoot$1 as ut, FormDateRangePicker as v, SkeletonTable as vn, ComboboxInput$1 as vt, FormIconPicker as w, OPT_ACTIVE_ITEM as wn, DialogDescription$1 as wt, FormField$1 as x, FieldMessages as xn, ComboboxRoot$1 as xt, FormDescription$1 as y, SkeletonText as yn, ComboboxItem$1 as yt, FormStarRating as z, OPT_DOT_YELLOW as zn, TabPanel$1 as zt };
|