@comitor/ui 4.2.0 → 4.3.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/README.md +3 -3
- package/dist/components/composite/ai-action.d.ts +107 -0
- package/dist/components/composite/ai-action.js +222 -0
- package/dist/components/composite/ai-action.js.map +1 -0
- package/dist/components/composite/anchored-popover.d.ts +38 -0
- package/dist/components/composite/anchored-popover.js +47 -0
- package/dist/components/composite/anchored-popover.js.map +1 -0
- package/dist/components/composite/combobox.js +13 -10
- package/dist/components/composite/combobox.js.map +1 -1
- package/dist/components/composite/command-palette.d.ts +28 -1
- package/dist/components/composite/command-palette.js +53 -7
- package/dist/components/composite/command-palette.js.map +1 -1
- package/dist/components/composite/detail-panel.d.ts +120 -0
- package/dist/components/composite/detail-panel.js +252 -0
- package/dist/components/composite/detail-panel.js.map +1 -0
- package/dist/components/composite/icon-button.js +27 -41
- package/dist/components/composite/icon-button.js.map +1 -1
- package/dist/components/composite/list-row.d.ts +98 -0
- package/dist/components/composite/list-row.js +158 -0
- package/dist/components/composite/list-row.js.map +1 -0
- package/dist/components/composite/property-button.d.ts +51 -0
- package/dist/components/composite/property-button.js +111 -0
- package/dist/components/composite/property-button.js.map +1 -0
- package/dist/components/composite/property-picker.d.ts +121 -0
- package/dist/components/composite/property-picker.js +191 -0
- package/dist/components/composite/property-picker.js.map +1 -0
- package/dist/components/composite/settings-new-tab-hint.d.ts +10 -0
- package/dist/components/composite/settings-new-tab-hint.js +14 -0
- package/dist/components/composite/settings-new-tab-hint.js.map +1 -0
- package/dist/components/composite/settings-page.d.ts +106 -0
- package/dist/components/composite/settings-page.js +123 -0
- package/dist/components/composite/settings-page.js.map +1 -0
- package/dist/components/composite/settings-scope-select.d.ts +23 -0
- package/dist/components/composite/settings-scope-select.js +20 -0
- package/dist/components/composite/settings-scope-select.js.map +1 -0
- package/dist/components/composite/text.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/card.d.ts +2 -2
- package/dist/components/ui/command.d.ts +8 -2
- package/dist/components/ui/command.js +8 -1
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/input-group.d.ts +1 -1
- package/dist/components/ui/phone-input.js +1 -1
- package/dist/components/ui/phone-input.js.map +1 -1
- package/dist/data-grid/data-grid-cell-variants.js +59 -53
- package/dist/data-grid/data-grid-cell-variants.js.map +1 -1
- package/dist/data-grid/data-grid-filter-menu.js +6 -6
- package/dist/data-grid/data-grid-filter-menu.js.map +1 -1
- package/dist/data-grid/data-grid-sort-menu.js +2 -2
- package/dist/data-grid/data-grid-sort-menu.js.map +1 -1
- package/dist/data-grid/data-grid-view-menu.js +2 -2
- package/dist/data-grid/data-grid-view-menu.js.map +1 -1
- package/dist/data-grid/use-data-grid.d.ts +9 -0
- package/dist/data-grid/use-data-grid.js +3 -0
- package/dist/data-grid/use-data-grid.js.map +1 -1
- package/dist/i18n/locale-provider.d.ts +4 -0
- package/dist/i18n/messages.d.ts +8 -0
- package/dist/i18n/messages.js +12 -0
- package/dist/i18n/messages.js.map +1 -1
- package/dist/i18n/namespaces/ai-action.d.ts +23 -0
- package/dist/i18n/namespaces/ai-action.js +25 -0
- package/dist/i18n/namespaces/ai-action.js.map +1 -0
- package/dist/i18n/namespaces/detail-panel.d.ts +11 -0
- package/dist/i18n/namespaces/detail-panel.js +13 -0
- package/dist/i18n/namespaces/detail-panel.js.map +1 -0
- package/dist/i18n/namespaces/property-picker.d.ts +20 -0
- package/dist/i18n/namespaces/property-picker.js +19 -0
- package/dist/i18n/namespaces/property-picker.js.map +1 -0
- package/dist/i18n/namespaces/settings-page.d.ts +9 -0
- package/dist/i18n/namespaces/settings-page.js +11 -0
- package/dist/i18n/namespaces/settings-page.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/use-tooltip-intent.d.ts +18 -0
- package/dist/lib/use-tooltip-intent.js +24 -0
- package/dist/lib/use-tooltip-intent.js.map +1 -0
- package/dist/shell/module-rail.js +7 -2
- package/dist/shell/module-rail.js.map +1 -1
- package/dist/shell/nav-scope.d.ts +1 -1
- package/dist/shell/nav-scope.js +1 -1
- package/dist/shell/nav-scope.js.map +1 -1
- package/dist/shell/sidebar-menu-item.js +16 -1
- package/dist/shell/sidebar-menu-item.js.map +1 -1
- package/dist/shell/types.d.ts +14 -0
- package/dist/shell/types.js.map +1 -1
- package/dist/shell/utils.d.ts +1 -1
- package/dist/shell/utils.js +2 -1
- package/dist/shell/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -1030,64 +1030,70 @@ function MultiSelectCell({
|
|
|
1030
1030
|
sideOffset,
|
|
1031
1031
|
className: "w-[300px] rounded-none p-0",
|
|
1032
1032
|
onOpenAutoFocus,
|
|
1033
|
-
children: /* @__PURE__ */ jsxs(
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1033
|
+
children: /* @__PURE__ */ jsxs(
|
|
1034
|
+
Command,
|
|
1035
|
+
{
|
|
1036
|
+
label: msg.cell.optionSearchPlaceholder,
|
|
1037
|
+
className: "[&_[data-slot=command-input-wrapper]]:h-auto [&_[data-slot=command-input-wrapper]]:gap-0 [&_[data-slot=command-input-wrapper]]:border-none [&_[data-slot=command-input-wrapper]]:p-0 [&_[data-slot=command-input-wrapper]_svg]:hidden",
|
|
1038
|
+
children: [
|
|
1039
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-h-9 flex-wrap items-center gap-1 border-b px-3 py-1.5", children: [
|
|
1040
|
+
selectedValues.map((value) => {
|
|
1041
|
+
const label = optionByValue.get(value)?.label ?? value;
|
|
1042
|
+
return /* @__PURE__ */ jsxs(Badge, { variant: "secondary", className: "gap-1 px-1.5 py-px", children: [
|
|
1043
|
+
label,
|
|
1044
|
+
/* @__PURE__ */ jsx(
|
|
1045
|
+
"button",
|
|
1046
|
+
{
|
|
1047
|
+
type: "button",
|
|
1048
|
+
"aria-label": `${msg.cell.clearAll}: ${label}`,
|
|
1049
|
+
onClick: (event) => removeValue(value, event),
|
|
1050
|
+
onPointerDown: (event) => {
|
|
1051
|
+
event.preventDefault();
|
|
1052
|
+
event.stopPropagation();
|
|
1053
|
+
},
|
|
1054
|
+
children: /* @__PURE__ */ jsx(X, { "aria-hidden": "true", className: "size-3" })
|
|
1055
|
+
}
|
|
1056
|
+
)
|
|
1057
|
+
] }, value);
|
|
1058
|
+
}),
|
|
1039
1059
|
/* @__PURE__ */ jsx(
|
|
1040
|
-
|
|
1060
|
+
CommandInput,
|
|
1041
1061
|
{
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
},
|
|
1049
|
-
children: /* @__PURE__ */ jsx(X, { "aria-hidden": "true", className: "size-3" })
|
|
1062
|
+
ref: inputRef,
|
|
1063
|
+
value: searchValue,
|
|
1064
|
+
onValueChange: setSearchValue,
|
|
1065
|
+
onKeyDown: onInputKeyDown,
|
|
1066
|
+
placeholder: msg.cell.optionSearchPlaceholder,
|
|
1067
|
+
className: "h-auto flex-1 p-0 leading-5"
|
|
1050
1068
|
}
|
|
1051
1069
|
)
|
|
1052
|
-
] },
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
/* @__PURE__ */ jsxs(CommandList, { className: "max-h-full", children: [
|
|
1068
|
-
/* @__PURE__ */ jsx(CommandEmpty, { children: msg.cell.optionEmpty }),
|
|
1069
|
-
/* @__PURE__ */ jsx(CommandGroup, { className: "max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden", children: options.map((option) => {
|
|
1070
|
-
const isSelected2 = selectedValuesSet.has(option.value);
|
|
1071
|
-
return /* @__PURE__ */ jsxs(CommandItem, { value: option.label, onSelect: () => onValueChange(option.value), children: [
|
|
1072
|
-
/* @__PURE__ */ jsx(
|
|
1073
|
-
"div",
|
|
1074
|
-
{
|
|
1075
|
-
className: cn(
|
|
1076
|
-
"flex size-4 items-center justify-center rounded-sm border border-choice-edge",
|
|
1077
|
-
isSelected2 ? "border-control-on bg-control-on text-control-check" : "[&_svg]:invisible"
|
|
1070
|
+
] }),
|
|
1071
|
+
/* @__PURE__ */ jsxs(CommandList, { className: "max-h-full", children: [
|
|
1072
|
+
/* @__PURE__ */ jsx(CommandEmpty, { children: msg.cell.optionEmpty }),
|
|
1073
|
+
/* @__PURE__ */ jsx(CommandGroup, { className: "max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden", children: options.map((option) => {
|
|
1074
|
+
const isSelected2 = selectedValuesSet.has(option.value);
|
|
1075
|
+
return /* @__PURE__ */ jsxs(CommandItem, { value: option.label, onSelect: () => onValueChange(option.value), children: [
|
|
1076
|
+
/* @__PURE__ */ jsx(
|
|
1077
|
+
"div",
|
|
1078
|
+
{
|
|
1079
|
+
className: cn(
|
|
1080
|
+
"flex size-4 items-center justify-center rounded-sm border border-choice-edge",
|
|
1081
|
+
isSelected2 ? "border-control-on bg-control-on text-control-check" : "[&_svg]:invisible"
|
|
1082
|
+
),
|
|
1083
|
+
children: /* @__PURE__ */ jsx(Check, { className: "size-3" })
|
|
1084
|
+
}
|
|
1078
1085
|
),
|
|
1079
|
-
|
|
1080
|
-
}
|
|
1081
|
-
),
|
|
1082
|
-
/* @__PURE__ */
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
] })
|
|
1086
|
+
/* @__PURE__ */ jsx("span", { children: option.label })
|
|
1087
|
+
] }, option.value);
|
|
1088
|
+
}) }),
|
|
1089
|
+
selectedValues.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1090
|
+
/* @__PURE__ */ jsx(CommandSeparator, {}),
|
|
1091
|
+
/* @__PURE__ */ jsx(CommandGroup, { children: /* @__PURE__ */ jsx(CommandItem, { onSelect: clearAll, className: "justify-center text-muted-foreground", children: msg.cell.clearAll }) })
|
|
1092
|
+
] })
|
|
1093
|
+
] })
|
|
1094
|
+
]
|
|
1095
|
+
}
|
|
1096
|
+
)
|
|
1091
1097
|
}
|
|
1092
1098
|
)
|
|
1093
1099
|
] }) : null,
|