@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.
Files changed (90) hide show
  1. package/README.md +3 -3
  2. package/dist/components/composite/ai-action.d.ts +107 -0
  3. package/dist/components/composite/ai-action.js +222 -0
  4. package/dist/components/composite/ai-action.js.map +1 -0
  5. package/dist/components/composite/anchored-popover.d.ts +38 -0
  6. package/dist/components/composite/anchored-popover.js +47 -0
  7. package/dist/components/composite/anchored-popover.js.map +1 -0
  8. package/dist/components/composite/combobox.js +13 -10
  9. package/dist/components/composite/combobox.js.map +1 -1
  10. package/dist/components/composite/command-palette.d.ts +28 -1
  11. package/dist/components/composite/command-palette.js +53 -7
  12. package/dist/components/composite/command-palette.js.map +1 -1
  13. package/dist/components/composite/detail-panel.d.ts +120 -0
  14. package/dist/components/composite/detail-panel.js +252 -0
  15. package/dist/components/composite/detail-panel.js.map +1 -0
  16. package/dist/components/composite/icon-button.js +27 -41
  17. package/dist/components/composite/icon-button.js.map +1 -1
  18. package/dist/components/composite/list-row.d.ts +98 -0
  19. package/dist/components/composite/list-row.js +158 -0
  20. package/dist/components/composite/list-row.js.map +1 -0
  21. package/dist/components/composite/property-button.d.ts +51 -0
  22. package/dist/components/composite/property-button.js +111 -0
  23. package/dist/components/composite/property-button.js.map +1 -0
  24. package/dist/components/composite/property-picker.d.ts +121 -0
  25. package/dist/components/composite/property-picker.js +191 -0
  26. package/dist/components/composite/property-picker.js.map +1 -0
  27. package/dist/components/composite/settings-new-tab-hint.d.ts +10 -0
  28. package/dist/components/composite/settings-new-tab-hint.js +14 -0
  29. package/dist/components/composite/settings-new-tab-hint.js.map +1 -0
  30. package/dist/components/composite/settings-page.d.ts +106 -0
  31. package/dist/components/composite/settings-page.js +123 -0
  32. package/dist/components/composite/settings-page.js.map +1 -0
  33. package/dist/components/composite/settings-scope-select.d.ts +23 -0
  34. package/dist/components/composite/settings-scope-select.js +20 -0
  35. package/dist/components/composite/settings-scope-select.js.map +1 -0
  36. package/dist/components/composite/text.d.ts +1 -1
  37. package/dist/components/ui/button.d.ts +1 -1
  38. package/dist/components/ui/card.d.ts +2 -2
  39. package/dist/components/ui/command.d.ts +8 -2
  40. package/dist/components/ui/command.js +8 -1
  41. package/dist/components/ui/command.js.map +1 -1
  42. package/dist/components/ui/input-group.d.ts +1 -1
  43. package/dist/components/ui/phone-input.js +1 -1
  44. package/dist/components/ui/phone-input.js.map +1 -1
  45. package/dist/data-grid/data-grid-cell-variants.js +59 -53
  46. package/dist/data-grid/data-grid-cell-variants.js.map +1 -1
  47. package/dist/data-grid/data-grid-filter-menu.js +6 -6
  48. package/dist/data-grid/data-grid-filter-menu.js.map +1 -1
  49. package/dist/data-grid/data-grid-sort-menu.js +2 -2
  50. package/dist/data-grid/data-grid-sort-menu.js.map +1 -1
  51. package/dist/data-grid/data-grid-view-menu.js +2 -2
  52. package/dist/data-grid/data-grid-view-menu.js.map +1 -1
  53. package/dist/data-grid/use-data-grid.d.ts +9 -0
  54. package/dist/data-grid/use-data-grid.js +3 -0
  55. package/dist/data-grid/use-data-grid.js.map +1 -1
  56. package/dist/i18n/locale-provider.d.ts +4 -0
  57. package/dist/i18n/messages.d.ts +8 -0
  58. package/dist/i18n/messages.js +12 -0
  59. package/dist/i18n/messages.js.map +1 -1
  60. package/dist/i18n/namespaces/ai-action.d.ts +23 -0
  61. package/dist/i18n/namespaces/ai-action.js +25 -0
  62. package/dist/i18n/namespaces/ai-action.js.map +1 -0
  63. package/dist/i18n/namespaces/detail-panel.d.ts +11 -0
  64. package/dist/i18n/namespaces/detail-panel.js +13 -0
  65. package/dist/i18n/namespaces/detail-panel.js.map +1 -0
  66. package/dist/i18n/namespaces/property-picker.d.ts +20 -0
  67. package/dist/i18n/namespaces/property-picker.js +19 -0
  68. package/dist/i18n/namespaces/property-picker.js.map +1 -0
  69. package/dist/i18n/namespaces/settings-page.d.ts +9 -0
  70. package/dist/i18n/namespaces/settings-page.js +11 -0
  71. package/dist/i18n/namespaces/settings-page.js.map +1 -0
  72. package/dist/index.d.ts +12 -0
  73. package/dist/index.js +8 -0
  74. package/dist/index.js.map +1 -1
  75. package/dist/lib/use-tooltip-intent.d.ts +18 -0
  76. package/dist/lib/use-tooltip-intent.js +24 -0
  77. package/dist/lib/use-tooltip-intent.js.map +1 -0
  78. package/dist/shell/module-rail.js +7 -2
  79. package/dist/shell/module-rail.js.map +1 -1
  80. package/dist/shell/nav-scope.d.ts +1 -1
  81. package/dist/shell/nav-scope.js +1 -1
  82. package/dist/shell/nav-scope.js.map +1 -1
  83. package/dist/shell/sidebar-menu-item.js +16 -1
  84. package/dist/shell/sidebar-menu-item.js.map +1 -1
  85. package/dist/shell/types.d.ts +14 -0
  86. package/dist/shell/types.js.map +1 -1
  87. package/dist/shell/utils.d.ts +1 -1
  88. package/dist/shell/utils.js +2 -1
  89. package/dist/shell/utils.js.map +1 -1
  90. 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(Command, { 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", children: [
1034
- /* @__PURE__ */ jsxs("div", { className: "flex min-h-9 flex-wrap items-center gap-1 border-b px-3 py-1.5", children: [
1035
- selectedValues.map((value) => {
1036
- const label = optionByValue.get(value)?.label ?? value;
1037
- return /* @__PURE__ */ jsxs(Badge, { variant: "secondary", className: "gap-1 px-1.5 py-px", children: [
1038
- label,
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
- "button",
1060
+ CommandInput,
1041
1061
  {
1042
- type: "button",
1043
- "aria-label": `${msg.cell.clearAll}: ${label}`,
1044
- onClick: (event) => removeValue(value, event),
1045
- onPointerDown: (event) => {
1046
- event.preventDefault();
1047
- event.stopPropagation();
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
- ] }, value);
1053
- }),
1054
- /* @__PURE__ */ jsx(
1055
- CommandInput,
1056
- {
1057
- ref: inputRef,
1058
- value: searchValue,
1059
- onValueChange: setSearchValue,
1060
- onKeyDown: onInputKeyDown,
1061
- placeholder: msg.cell.optionSearchPlaceholder,
1062
- "aria-label": msg.cell.optionSearchPlaceholder,
1063
- className: "h-auto flex-1 p-0 leading-5"
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
- children: /* @__PURE__ */ jsx(Check, { className: "size-3" })
1080
- }
1081
- ),
1082
- /* @__PURE__ */ jsx("span", { children: option.label })
1083
- ] }, option.value);
1084
- }) }),
1085
- selectedValues.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
1086
- /* @__PURE__ */ jsx(CommandSeparator, {}),
1087
- /* @__PURE__ */ jsx(CommandGroup, { children: /* @__PURE__ */ jsx(CommandItem, { onSelect: clearAll, className: "justify-center text-muted-foreground", children: msg.cell.clearAll }) })
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,