@godxjp/ui 6.9.0 → 6.10.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.
Files changed (76) hide show
  1. package/dist/{checkbox-BKIGsv3G.d.ts → checkbox-Vtb93W2X.d.ts} +1 -1
  2. package/dist/{chunk-PE2QZHY2.js → chunk-25ZZ2W3M.js} +2 -2
  3. package/dist/{chunk-6RA3KSVK.js → chunk-DTJKTRJS.js} +43 -1
  4. package/dist/{chunk-Z5D4E73N.js → chunk-EXBWDW5E.js} +2 -2
  5. package/dist/chunk-Y6JLEGVK.js +247 -0
  6. package/dist/components/admin/index.d.ts +10 -10
  7. package/dist/components/admin/index.js +17 -17
  8. package/dist/components/data-display/index.d.ts +3 -3
  9. package/dist/components/data-display/index.js +6 -6
  10. package/dist/components/data-entry/autocomplete.d.ts +10 -2
  11. package/dist/components/data-entry/autocomplete.js +3 -2
  12. package/dist/components/data-entry/calendar.d.ts +2 -1
  13. package/dist/components/data-entry/calendar.js +2 -2
  14. package/dist/components/data-entry/cascader.d.ts +2 -1
  15. package/dist/components/data-entry/cascader.js +3 -3
  16. package/dist/components/data-entry/checkbox.d.ts +3 -2
  17. package/dist/components/data-entry/color-picker.d.ts +2 -1
  18. package/dist/components/data-entry/color-picker.js +2 -2
  19. package/dist/components/data-entry/date-picker.d.ts +2 -1
  20. package/dist/components/data-entry/date-picker.js +4 -4
  21. package/dist/components/data-entry/date-range-picker.d.ts +2 -1
  22. package/dist/components/data-entry/date-range-picker.js +4 -4
  23. package/dist/components/data-entry/index.d.ts +12 -10
  24. package/dist/components/data-entry/index.js +17 -214
  25. package/dist/components/data-entry/radio.d.ts +2 -1
  26. package/dist/components/data-entry/slider.d.ts +2 -1
  27. package/dist/components/data-entry/switch.d.ts +2 -1
  28. package/dist/components/data-entry/time-picker.d.ts +2 -1
  29. package/dist/components/data-entry/time-picker.js +2 -2
  30. package/dist/components/data-entry/transfer.d.ts +3 -2
  31. package/dist/components/data-entry/transfer.js +2 -2
  32. package/dist/components/data-entry/tree-select.d.ts +2 -1
  33. package/dist/components/data-entry/tree-select.js +3 -3
  34. package/dist/components/data-entry/upload.d.ts +3 -2
  35. package/dist/components/data-entry/upload.js +2 -2
  36. package/dist/components/feedback/alert.d.ts +3 -3
  37. package/dist/components/feedback/dialog.d.ts +2 -2
  38. package/dist/components/feedback/index.d.ts +2 -2
  39. package/dist/components/feedback/index.js +3 -3
  40. package/dist/components/feedback/sheet.d.ts +1 -1
  41. package/dist/components/layout/index.d.ts +6 -6
  42. package/dist/components/layout/index.js +3 -3
  43. package/dist/components/navigation/index.d.ts +4 -4
  44. package/dist/components/navigation/index.js +2 -2
  45. package/dist/components/navigation/pagination.js +1 -1
  46. package/dist/components/ui/index.d.ts +4 -4
  47. package/dist/components/ui/index.js +15 -15
  48. package/dist/{content.prop-D1Dd3TAc.d.ts → content.prop-DrV_zDy-.d.ts} +3 -1
  49. package/dist/{data-display.prop-Cvi2Mrfw.d.ts → data-display.prop-i0iaSwMV.d.ts} +1 -1
  50. package/dist/{data-entry.prop-CzBVxZ2F.d.ts → data-entry.prop-DGzBAJpn.d.ts} +25 -15
  51. package/dist/{data-table-CnRksymA.d.ts → data-table-Bg7fPpXy.d.ts} +1 -1
  52. package/dist/{feedback.prop-BmxUlpAW.d.ts → feedback.prop-BnBpUzNK.d.ts} +1 -1
  53. package/dist/{filter-bar-DNDVhpCE.d.ts → filter-bar-BpUvE_yO.d.ts} +1 -1
  54. package/dist/index.d.ts +10 -10
  55. package/dist/index.js +17 -17
  56. package/dist/{inline-Bu_syXvi.d.ts → inline-CV3A46np.d.ts} +1 -1
  57. package/dist/{layout.prop-D3rD3uZq.d.ts → layout.prop-MwHm4-Zl.d.ts} +2 -2
  58. package/dist/{navigation.prop-DxBiClEH.d.ts → navigation.prop-Hu7s7MJa.d.ts} +1 -1
  59. package/dist/props/components/index.d.ts +6 -6
  60. package/dist/props/index.d.ts +6 -6
  61. package/dist/props/index.js +1 -1
  62. package/dist/props/registry.d.ts +28 -1
  63. package/dist/props/registry.js +1 -1
  64. package/dist/props/vocabulary/index.d.ts +2 -2
  65. package/dist/{search-input-Br_LCi4p.d.ts → search-input-CkFBczDV.d.ts} +1 -1
  66. package/package.json +1 -1
  67. package/dist/chunk-BEQDDDT7.js +0 -81
  68. package/dist/{chunk-I2V4Y2VF.js → chunk-IK7I3ABN.js} +1 -1
  69. package/dist/{chunk-PWFFEMYI.js → chunk-NTUHJ37K.js} +1 -1
  70. package/dist/{chunk-DOVA5SWV.js → chunk-OI7TDPEJ.js} +1 -1
  71. package/dist/{chunk-ZTYEH3UW.js → chunk-TT2L7JM6.js} +1 -1
  72. package/dist/{chunk-BBXDT2P2.js → chunk-V7RC4PBY.js} +1 -1
  73. package/dist/{chunk-ICQGSUTC.js → chunk-VRSHUKDF.js} +1 -1
  74. package/dist/{chunk-VV3M6PXD.js → chunk-X3OSXYAB.js} +1 -1
  75. package/dist/{chunk-GH7E5N6F.js → chunk-ZKIAZDVU.js} +1 -1
  76. package/dist/{chunk-YVBZ37ZE.js → chunk-ZR2TIBPG.js} +1 -1
@@ -1,81 +0,0 @@
1
- import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from './chunk-V6UWJKZF.js';
2
- import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
3
- import { Button } from './chunk-HJEBRCXL.js';
4
- import { useTranslation } from './chunk-RLGHEV4A.js';
5
- import { cn } from './chunk-U7N2A7A3.js';
6
- import * as React from 'react';
7
- import { ChevronsUpDown, Check } from 'lucide-react';
8
- import { jsxs, jsx } from 'react/jsx-runtime';
9
-
10
- function Autocomplete({
11
- options,
12
- value,
13
- onValueChange,
14
- placeholder,
15
- emptyMessage,
16
- disabled,
17
- className,
18
- id,
19
- searchPlaceholder
20
- }) {
21
- const { t } = useTranslation();
22
- const [open, setOpen] = React.useState(false);
23
- const selected = options.find((option) => option.value === value);
24
- const resolvedPlaceholder = placeholder ?? t("dataEntry.autocomplete.placeholder");
25
- const resolvedEmpty = emptyMessage ?? t("dataEntry.autocomplete.empty");
26
- return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
27
- /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
28
- Button,
29
- {
30
- id,
31
- type: "button",
32
- variant: "outline",
33
- role: "combobox",
34
- "aria-expanded": open,
35
- disabled,
36
- className: cn(
37
- "w-full justify-between font-normal",
38
- !selected && "text-muted-foreground",
39
- className
40
- ),
41
- children: [
42
- /* @__PURE__ */ jsx("span", { className: "truncate", children: selected?.label ?? resolvedPlaceholder }),
43
- /* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-2 size-4 shrink-0 opacity-50", "aria-hidden": "true" })
44
- ]
45
- }
46
- ) }),
47
- /* @__PURE__ */ jsx(PopoverContent, { className: "w-[var(--radix-popover-trigger-width)] p-0", align: "start", children: /* @__PURE__ */ jsxs(Command, { children: [
48
- /* @__PURE__ */ jsx(CommandInput, { placeholder: searchPlaceholder ?? resolvedPlaceholder }),
49
- /* @__PURE__ */ jsxs(CommandList, { children: [
50
- /* @__PURE__ */ jsx(CommandEmpty, { children: resolvedEmpty }),
51
- /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxs(
52
- CommandItem,
53
- {
54
- value: option.label,
55
- keywords: [option.value, option.label],
56
- onSelect: () => {
57
- onValueChange?.(option.value);
58
- setOpen(false);
59
- },
60
- children: [
61
- /* @__PURE__ */ jsx(
62
- Check,
63
- {
64
- className: cn(
65
- "mr-2 size-4",
66
- value === option.value ? "opacity-100" : "opacity-0"
67
- ),
68
- "aria-hidden": "true"
69
- }
70
- ),
71
- option.label
72
- ]
73
- },
74
- option.value
75
- )) })
76
- ] })
77
- ] }) })
78
- ] });
79
- }
80
-
81
- export { Autocomplete };
@@ -1,5 +1,5 @@
1
- import { buttonVariants } from './chunk-HJEBRCXL.js';
2
1
  import { controlIconSmClass } from './chunk-ICM6XBST.js';
2
+ import { buttonVariants } from './chunk-HJEBRCXL.js';
3
3
  import { cn } from './chunk-U7N2A7A3.js';
4
4
  import { ChevronLeft, ChevronRight } from 'lucide-react';
5
5
  import { DayPicker } from 'react-day-picker';
@@ -1,8 +1,8 @@
1
1
  import { Slider } from './chunk-CRERCLIZ.js';
2
+ import { controlIconClass } from './chunk-ICM6XBST.js';
2
3
  import { formatBytes } from './chunk-4R7QL3MW.js';
3
4
  import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-2HLWHQJA.js';
4
5
  import { Button } from './chunk-HJEBRCXL.js';
5
- import { controlIconClass } from './chunk-ICM6XBST.js';
6
6
  import { useTranslation } from './chunk-RLGHEV4A.js';
7
7
  import { cn } from './chunk-U7N2A7A3.js';
8
8
  import * as React2 from 'react';
@@ -1,7 +1,7 @@
1
1
  import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-ZS6DTAM2.js';
2
+ import { tableCellPaddingClass, tableRowHeightClass, controlIconSmClass, toneNeutralClass, toneInfoClass, toneDestructiveClass, toneWarningClass, toneSuccessClass } from './chunk-ICM6XBST.js';
2
3
  import { Inline, densityClass } from './chunk-S66TJXJU.js';
3
4
  import { Button } from './chunk-HJEBRCXL.js';
4
- import { tableCellPaddingClass, tableRowHeightClass, controlIconSmClass, toneNeutralClass, toneInfoClass, toneDestructiveClass, toneWarningClass, toneSuccessClass } from './chunk-ICM6XBST.js';
5
5
  import { useTranslation } from './chunk-RLGHEV4A.js';
6
6
  import { cn } from './chunk-U7N2A7A3.js';
7
7
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
- import { Input } from './chunk-VOHTRR5X.js';
2
1
  import { controlIconClass } from './chunk-ICM6XBST.js';
2
+ import { Input } from './chunk-VOHTRR5X.js';
3
3
  import { useTranslation } from './chunk-RLGHEV4A.js';
4
4
  import { cn } from './chunk-U7N2A7A3.js';
5
5
  import * as React from 'react';
@@ -1,8 +1,8 @@
1
1
  import { normalizeTreeOptions, collectAllExpandableKeys, filterVisibleTree, flattenVisibleTree, findNodeByValue, reactNodeText, getDescendantValues } from './chunk-SMLKNECP.js';
2
2
  import { Command, CommandInput } from './chunk-V6UWJKZF.js';
3
3
  import { Checkbox } from './chunk-E76QIYSY.js';
4
- import { ScrollArea } from './chunk-3KPEZ5CF.js';
5
4
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
5
+ import { ScrollArea } from './chunk-3KPEZ5CF.js';
6
6
  import { Button } from './chunk-HJEBRCXL.js';
7
7
  import { useTranslation } from './chunk-RLGHEV4A.js';
8
8
  import { cn } from './chunk-U7N2A7A3.js';
@@ -1,8 +1,8 @@
1
1
  import { normalizeTreeOptions, formatPathLabels, getNodeByPath, filterTreeOptions, pathsEqual, pathKey } from './chunk-SMLKNECP.js';
2
2
  import { Command, CommandInput } from './chunk-V6UWJKZF.js';
3
3
  import { Checkbox } from './chunk-E76QIYSY.js';
4
- import { ScrollArea, ScrollBar } from './chunk-3KPEZ5CF.js';
5
4
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
5
+ import { ScrollArea, ScrollBar } from './chunk-3KPEZ5CF.js';
6
6
  import { Button } from './chunk-HJEBRCXL.js';
7
7
  import { useTranslation } from './chunk-RLGHEV4A.js';
8
8
  import { cn } from './chunk-U7N2A7A3.js';
@@ -1,9 +1,9 @@
1
1
  import { DropdownMenu, DropdownMenuTrigger } from './chunk-TO33OY4L.js';
2
2
  import { Tooltip, TooltipTrigger, TooltipContent } from './chunk-32WO3YLB.js';
3
3
  import { Collapsible, CollapsibleTrigger, CollapsibleContent } from './chunk-DV52WNXO.js';
4
+ import { Badge } from './chunk-PIIRNAXA.js';
4
5
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
5
6
  import { densityClass, pageContainerVariantClass, stackGapClass } from './chunk-S66TJXJU.js';
6
- import { Badge } from './chunk-PIIRNAXA.js';
7
7
  import { cn } from './chunk-U7N2A7A3.js';
8
8
  import { Link } from 'react-router-dom';
9
9
  import { ChevronRight, ChevronDown, PanelLeftOpen, PanelLeftClose, Search, Bell, SlidersHorizontal } from 'lucide-react';
@@ -1,5 +1,5 @@
1
- import { Input } from './chunk-VOHTRR5X.js';
2
1
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
2
+ import { Input } from './chunk-VOHTRR5X.js';
3
3
  import { Button } from './chunk-HJEBRCXL.js';
4
4
  import { useTranslation } from './chunk-RLGHEV4A.js';
5
5
  import { normalizeHhmm, isValidHhmm } from './chunk-FXFJF4YA.js';
@@ -1,7 +1,7 @@
1
1
  import { reactNodeText } from './chunk-SMLKNECP.js';
2
2
  import { Checkbox } from './chunk-E76QIYSY.js';
3
- import { Input } from './chunk-VOHTRR5X.js';
4
3
  import { ScrollArea } from './chunk-3KPEZ5CF.js';
4
+ import { Input } from './chunk-VOHTRR5X.js';
5
5
  import { Button } from './chunk-HJEBRCXL.js';
6
6
  import { Label } from './chunk-7PWBC4BY.js';
7
7
  import { useTranslation } from './chunk-RLGHEV4A.js';