@godxjp/ui 8.0.0 → 8.2.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 (44) hide show
  1. package/dist/{chunk-G2WYOCDL.js → chunk-3EMDVI7X.js} +1 -1
  2. package/dist/{chunk-RGIYKJPW.js → chunk-67HEX3OS.js} +1 -1
  3. package/dist/{chunk-WN52SCGE.js → chunk-IAKROVSG.js} +1 -1
  4. package/dist/{chunk-XDUZ7JJL.js → chunk-MISVV4IT.js} +1 -1
  5. package/dist/{chunk-4R7RQDXI.js → chunk-PZ4LO723.js} +1 -1
  6. package/dist/chunk-Q7AU6WDX.js +261 -0
  7. package/dist/{chunk-SKIRU7GC.js → chunk-V45EK6S7.js} +1 -1
  8. package/dist/chunk-WFUIE252.js +61 -0
  9. package/dist/components/admin/index.js +21 -21
  10. package/dist/components/data-display/index.d.ts +12 -1
  11. package/dist/components/data-display/index.js +60 -7
  12. package/dist/components/data-entry/autocomplete.js +4 -4
  13. package/dist/components/data-entry/calendar.js +2 -2
  14. package/dist/components/data-entry/cascader.js +3 -3
  15. package/dist/components/data-entry/date-picker.js +3 -3
  16. package/dist/components/data-entry/date-range-picker.js +3 -3
  17. package/dist/components/data-entry/index.d.ts +65 -3
  18. package/dist/components/data-entry/index.js +16 -16
  19. package/dist/components/data-entry/select.js +4 -4
  20. package/dist/components/data-entry/transfer.js +2 -2
  21. package/dist/components/data-entry/tree-select.js +3 -3
  22. package/dist/components/data-entry/upload.js +3 -3
  23. package/dist/components/feedback/index.d.ts +18 -2
  24. package/dist/components/feedback/index.js +5 -5
  25. package/dist/components/layout/index.js +2 -2
  26. package/dist/components/navigation/index.js +6 -6
  27. package/dist/components/navigation/pagination.js +5 -5
  28. package/dist/components/ui/index.js +17 -17
  29. package/dist/index.js +28 -28
  30. package/dist/props/index.js +1 -1
  31. package/dist/styles/control.css +58 -0
  32. package/dist/styles/data-display-layout.css +25 -0
  33. package/dist/styles/feedback-layout.css +17 -0
  34. package/package.json +6 -2
  35. package/dist/chunk-2H65B4JA.js +0 -1
  36. package/dist/chunk-XMBCNMJI.js +0 -61
  37. package/dist/{chunk-NG23LVTM.js → chunk-3FUXNL5A.js} +1 -1
  38. package/dist/{chunk-IOGU3ZWF.js → chunk-7577VIAC.js} +1 -1
  39. package/dist/{chunk-A7PKMT7Y.js → chunk-N5SDFNSJ.js} +1 -1
  40. package/dist/{chunk-Z6HNY2PL.js → chunk-NGT3I6OG.js} +2 -2
  41. package/dist/{chunk-XZM2GNAY.js → chunk-PKGPNZA4.js} +1 -1
  42. package/dist/{chunk-A22MCA3X.js → chunk-TV7WEENM.js} +1 -1
  43. package/dist/{chunk-6QXQQAOQ.js → chunk-WY4RSEYC.js} +1 -1
  44. package/dist/{chunk-WTVLZVBA.js → chunk-YXJ3FS6O.js} +1 -1
@@ -1,61 +0,0 @@
1
- import { Select, SelectTrigger, SelectValue, SelectContent, SelectGroup, SelectItem } from './chunk-G2WYOCDL.js';
2
- import { Inline } from './chunk-TILFZBTE.js';
3
- import { cn } from './chunk-U7N2A7A3.js';
4
- import { jsxs, jsx } from 'react/jsx-runtime';
5
-
6
- function CountryOptionLabel({
7
- country,
8
- showCode = false,
9
- className
10
- }) {
11
- const code = country.value ?? country.code ?? "";
12
- const text = country.nativeName != null && country.nativeName !== "" ? `${country.name} (${country.nativeName})` : country.name;
13
- return /* @__PURE__ */ jsxs(Inline, { gap: "xs", className: cn("items-center", className), children: [
14
- country.flagSvgPath != null && country.flagSvgPath !== "" && /* @__PURE__ */ jsx(
15
- "img",
16
- {
17
- src: country.flagSvgPath,
18
- alt: "",
19
- className: "h-3 w-5 shrink-0 rounded-sm object-cover",
20
- "aria-hidden": "true"
21
- }
22
- ),
23
- /* @__PURE__ */ jsxs("span", { className: "truncate", children: [
24
- text,
25
- showCode && code !== "" && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
26
- " \xB7 ",
27
- code
28
- ] })
29
- ] })
30
- ] });
31
- }
32
- function CountrySelect({
33
- id,
34
- name,
35
- options,
36
- defaultValue,
37
- required = false,
38
- allowEmpty = false,
39
- emptyLabel = "\u2014",
40
- placeholder,
41
- invalid = false
42
- }) {
43
- const emptyValue = "0";
44
- const resolvedDefault = defaultValue && defaultValue !== "" ? defaultValue : emptyValue;
45
- return /* @__PURE__ */ jsxs(
46
- Select,
47
- {
48
- name,
49
- defaultValue: allowEmpty ? resolvedDefault : defaultValue ?? options[0]?.value,
50
- children: [
51
- /* @__PURE__ */ jsx(SelectTrigger, { id, className: "w-full", "aria-invalid": invalid, "aria-required": required, children: /* @__PURE__ */ jsx(SelectValue, { placeholder }) }),
52
- /* @__PURE__ */ jsx(SelectContent, { children: /* @__PURE__ */ jsxs(SelectGroup, { children: [
53
- allowEmpty && /* @__PURE__ */ jsx(SelectItem, { value: emptyValue, children: emptyLabel }),
54
- options.map((option) => /* @__PURE__ */ jsx(SelectItem, { value: option.value ?? "", children: /* @__PURE__ */ jsx(CountryOptionLabel, { country: option }) }, option.value))
55
- ] }) })
56
- ]
57
- }
58
- );
59
- }
60
-
61
- export { CountryOptionLabel, CountrySelect };
@@ -1,7 +1,7 @@
1
+ import { Input } from './chunk-VOHTRR5X.js';
1
2
  import { reactNodeText } from './chunk-SMLKNECP.js';
2
3
  import { Checkbox } from './chunk-O24Z3ULJ.js';
3
4
  import { ScrollArea } from './chunk-3KPEZ5CF.js';
4
- import { Input } from './chunk-VOHTRR5X.js';
5
5
  import { Button } from './chunk-M4PZNAMV.js';
6
6
  import { Label } from './chunk-7PWBC4BY.js';
7
7
  import { useTranslation } from './chunk-RLGHEV4A.js';
@@ -1,5 +1,5 @@
1
- import { buttonVariants } from './chunk-M4PZNAMV.js';
2
1
  import { controlIconSmClass } from './chunk-IBK5D2Q6.js';
2
+ import { buttonVariants } from './chunk-M4PZNAMV.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,7 +1,7 @@
1
1
  import { Inline, densityClass } from './chunk-TILFZBTE.js';
2
2
  import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-4MMIMZMK.js';
3
- import { Button } from './chunk-M4PZNAMV.js';
4
3
  import { tableCellPaddingClass, tableRowHeightClass, controlIconSmClass } from './chunk-IBK5D2Q6.js';
4
+ import { Button } from './chunk-M4PZNAMV.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,8 +1,8 @@
1
+ import { Slider } from './chunk-CRERCLIZ.js';
1
2
  import { formatBytes } from './chunk-4R7QL3MW.js';
2
3
  import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-P4HFJQID.js';
3
- import { Slider } from './chunk-CRERCLIZ.js';
4
- import { Button } from './chunk-M4PZNAMV.js';
5
4
  import { controlIconClass } from './chunk-IBK5D2Q6.js';
5
+ import { Button } from './chunk-M4PZNAMV.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,8 +1,8 @@
1
1
  import { normalizeTreeOptions, formatPathLabels, getNodeByPath, filterTreeOptions, pathsEqual, pathKey } from './chunk-SMLKNECP.js';
2
2
  import { Checkbox } from './chunk-O24Z3ULJ.js';
3
- import { ScrollArea, ScrollBar } from './chunk-3KPEZ5CF.js';
4
3
  import { Command, CommandInput } from './chunk-HTEL5DQI.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-M4PZNAMV.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, collectAllExpandableKeys, filterVisibleTree, flattenVisibleTree, findNodeByValue, reactNodeText, getDescendantValues } from './chunk-SMLKNECP.js';
2
2
  import { Checkbox } from './chunk-O24Z3ULJ.js';
3
- import { ScrollArea } from './chunk-3KPEZ5CF.js';
4
3
  import { Command, CommandInput } from './chunk-HTEL5DQI.js';
5
4
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
5
+ import { ScrollArea } from './chunk-3KPEZ5CF.js';
6
6
  import { Button } from './chunk-M4PZNAMV.js';
7
7
  import { useTranslation } from './chunk-RLGHEV4A.js';
8
8
  import { cn } from './chunk-U7N2A7A3.js';
@@ -1,5 +1,5 @@
1
- import { Command, CommandList, CommandItem, CommandGroup } from './chunk-HTEL5DQI.js';
2
1
  import { Input } from './chunk-VOHTRR5X.js';
2
+ import { Command, CommandList, CommandItem, CommandGroup } from './chunk-HTEL5DQI.js';
3
3
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
4
4
  import { Button } from './chunk-M4PZNAMV.js';
5
5
  import { useTranslation } from './chunk-RLGHEV4A.js';
@@ -1,5 +1,5 @@
1
- import { Tooltip, TooltipTrigger, TooltipContent } from './chunk-32WO3YLB.js';
2
1
  import { DropdownMenu, DropdownMenuTrigger } from './chunk-TO33OY4L.js';
2
+ import { Tooltip, TooltipTrigger, TooltipContent } from './chunk-32WO3YLB.js';
3
3
  import { Collapsible, CollapsibleTrigger, CollapsibleContent } from './chunk-DV52WNXO.js';
4
4
  import { densityClass, pageContainerVariantClass, Flex } from './chunk-TILFZBTE.js';
5
5
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';