@godxjp/ui 6.12.0 → 8.0.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 (179) hide show
  1. package/README.md +5 -0
  2. package/dist/app/index.d.ts +2 -2
  3. package/dist/{app.prop-IobwLwaM.d.ts → app.prop-DnIXFzLi.d.ts} +9 -9
  4. package/dist/aspect-ratio-DGoYrOry.d.ts +6 -0
  5. package/dist/avatar-D9MdXzfF.d.ts +8 -0
  6. package/dist/{checkbox-9w-eF8sM.d.ts → checkbox-ChRsR7Nk.d.ts} +2 -2
  7. package/dist/{chunk-3UGU5TYP.js → chunk-25RYBC5T.js} +2 -2
  8. package/dist/{chunk-CQBADMFG.js → chunk-26CPAKUP.js} +3 -2
  9. package/dist/{chunk-ZTYEH3UW.js → chunk-3TS3G4U3.js} +3 -3
  10. package/dist/{chunk-ZS6DTAM2.js → chunk-4MMIMZMK.js} +1 -1
  11. package/dist/{chunk-T2S3IGZG.js → chunk-4R7RQDXI.js} +23 -21
  12. package/dist/{chunk-Y7AV7QJO.js → chunk-6QXQQAOQ.js} +5 -5
  13. package/dist/{chunk-JJCGMCTL.js → chunk-A22MCA3X.js} +6 -6
  14. package/dist/{chunk-TW4IRRAX.js → chunk-A7PKMT7Y.js} +8 -49
  15. package/dist/chunk-AINW5WYN.js +57 -0
  16. package/dist/chunk-B3WX53JQ.js +40 -0
  17. package/dist/{chunk-BM5LIDCS.js → chunk-C5H655GK.js} +223 -67
  18. package/dist/{chunk-ZLK5SPT6.js → chunk-EOTOCNT7.js} +1 -1
  19. package/dist/chunk-FRU44GA2.js +18 -0
  20. package/dist/chunk-FYM3MJSK.js +59 -0
  21. package/dist/{chunk-EE3B3TEQ.js → chunk-G2WYOCDL.js} +5 -5
  22. package/dist/chunk-HKD6ERY7.js +1 -0
  23. package/dist/{chunk-V6UWJKZF.js → chunk-HTEL5DQI.js} +1 -1
  24. package/dist/{chunk-ICM6XBST.js → chunk-IBK5D2Q6.js} +2 -1
  25. package/dist/{chunk-IK7I3ABN.js → chunk-IOGU3ZWF.js} +2 -2
  26. package/dist/{chunk-HJEBRCXL.js → chunk-M4PZNAMV.js} +1 -0
  27. package/dist/{chunk-2QG3OVAD.js → chunk-N43OKOFT.js} +7 -5
  28. package/dist/{chunk-YVBZ37ZE.js → chunk-NG23LVTM.js} +5 -5
  29. package/dist/{chunk-E76QIYSY.js → chunk-O24Z3ULJ.js} +4 -4
  30. package/dist/{chunk-GXHZAJUA.js → chunk-O2OUNXV4.js} +10 -10
  31. package/dist/{chunk-L6J44O74.js → chunk-OJZ6C2HM.js} +2 -2
  32. package/dist/{chunk-2HLWHQJA.js → chunk-P4HFJQID.js} +5 -4
  33. package/dist/chunk-R2W2FX5Q.js +48 -0
  34. package/dist/{chunk-AZS7553U.js → chunk-RGIYKJPW.js} +6 -6
  35. package/dist/{chunk-GH7E5N6F.js → chunk-RGPF3HU6.js} +3 -3
  36. package/dist/chunk-SEG2YBXF.js +29 -0
  37. package/dist/{chunk-JBEIL3VD.js → chunk-SKIRU7GC.js} +2 -2
  38. package/dist/chunk-TILFZBTE.js +50 -0
  39. package/dist/{chunk-6UFKWOEW.js → chunk-TMDGV4CN.js} +15 -11
  40. package/dist/chunk-UIYEAUWA.js +78 -0
  41. package/dist/{chunk-XG7XDYIM.js → chunk-V3N266PT.js} +48 -2
  42. package/dist/{chunk-I3272Y2C.js → chunk-WN52SCGE.js} +4 -4
  43. package/dist/{chunk-T4UT3B3K.js → chunk-WTVLZVBA.js} +153 -188
  44. package/dist/{chunk-SWGQX3AP.js → chunk-XDUZ7JJL.js} +2 -2
  45. package/dist/chunk-XMBCNMJI.js +61 -0
  46. package/dist/{chunk-RVY4F7LK.js → chunk-XZM2GNAY.js} +7 -7
  47. package/dist/{chunk-K27I23OA.js → chunk-Z6HNY2PL.js} +9 -9
  48. package/dist/components/admin/index.d.ts +24 -22
  49. package/dist/components/admin/index.js +33 -32
  50. package/dist/components/data-display/badge.d.ts +15 -4
  51. package/dist/components/data-display/badge.js +4 -2
  52. package/dist/components/data-display/card.d.ts +3 -3
  53. package/dist/components/data-display/card.js +1 -1
  54. package/dist/components/data-display/index.d.ts +14 -26
  55. package/dist/components/data-display/index.js +28 -37
  56. package/dist/components/data-display/table.js +2 -2
  57. package/dist/components/data-entry/autocomplete.d.ts +5 -5
  58. package/dist/components/data-entry/autocomplete.js +5 -5
  59. package/dist/components/data-entry/calendar.d.ts +5 -5
  60. package/dist/components/data-entry/calendar.js +3 -3
  61. package/dist/components/data-entry/cascader.d.ts +6 -6
  62. package/dist/components/data-entry/cascader.js +7 -7
  63. package/dist/components/data-entry/checkbox.d.ts +6 -6
  64. package/dist/components/data-entry/checkbox.js +2 -2
  65. package/dist/components/data-entry/color-picker.d.ts +6 -6
  66. package/dist/components/data-entry/color-picker.js +2 -2
  67. package/dist/components/data-entry/command.d.ts +11 -11
  68. package/dist/components/data-entry/command.js +2 -2
  69. package/dist/components/data-entry/date-picker.d.ts +6 -6
  70. package/dist/components/data-entry/date-picker.js +4 -4
  71. package/dist/components/data-entry/date-range-picker.d.ts +6 -6
  72. package/dist/components/data-entry/date-range-picker.js +4 -4
  73. package/dist/components/data-entry/index.d.ts +13 -19
  74. package/dist/components/data-entry/index.js +27 -145
  75. package/dist/components/data-entry/radio.d.ts +5 -5
  76. package/dist/components/data-entry/radio.js +2 -2
  77. package/dist/components/data-entry/select.d.ts +5 -5
  78. package/dist/components/data-entry/select.js +5 -5
  79. package/dist/components/data-entry/slider.d.ts +5 -5
  80. package/dist/components/data-entry/switch.d.ts +5 -5
  81. package/dist/components/data-entry/switch.js +1 -1
  82. package/dist/components/data-entry/textarea.js +2 -2
  83. package/dist/components/data-entry/time-picker.d.ts +6 -6
  84. package/dist/components/data-entry/time-picker.js +2 -2
  85. package/dist/components/data-entry/transfer.d.ts +7 -7
  86. package/dist/components/data-entry/transfer.js +5 -5
  87. package/dist/components/data-entry/tree-select.d.ts +6 -6
  88. package/dist/components/data-entry/tree-select.js +7 -7
  89. package/dist/components/data-entry/upload.d.ts +7 -7
  90. package/dist/components/data-entry/upload.js +5 -5
  91. package/dist/components/feedback/alert.d.ts +7 -5
  92. package/dist/components/feedback/alert.js +3 -3
  93. package/dist/components/feedback/dialog.d.ts +9 -6
  94. package/dist/components/feedback/dialog.js +2 -2
  95. package/dist/components/feedback/index.d.ts +7 -6
  96. package/dist/components/feedback/index.js +9 -7
  97. package/dist/components/general/button.d.ts +4 -4
  98. package/dist/components/general/button.js +1 -1
  99. package/dist/components/general/index.d.ts +3 -3
  100. package/dist/components/general/index.js +1 -1
  101. package/dist/components/layout/index.d.ts +19 -45
  102. package/dist/components/layout/index.js +4 -5
  103. package/dist/components/navigation/index.d.ts +13 -14
  104. package/dist/components/navigation/index.js +9 -10
  105. package/dist/components/navigation/pagination.d.ts +5 -5
  106. package/dist/components/navigation/pagination.js +6 -6
  107. package/dist/components/navigation/steps.d.ts +6 -6
  108. package/dist/components/navigation/steps.js +2 -2
  109. package/dist/components/navigation/tabs.d.ts +14 -2
  110. package/dist/components/navigation/tabs.js +1 -1
  111. package/dist/components/query/index.d.ts +12 -7
  112. package/dist/components/query/index.js +4 -4
  113. package/dist/components/ui/index.d.ts +21 -14
  114. package/dist/components/ui/index.js +32 -29
  115. package/dist/{data-display.prop-i0iaSwMV.d.ts → data-display.prop-Cf2p9QC4.d.ts} +18 -17
  116. package/dist/{data-entry.prop-Cjidhei7.d.ts → data-entry.prop-CDkOajPj.d.ts} +34 -40
  117. package/dist/{data-table-Bg7fPpXy.d.ts → data-table-B_q7j992.d.ts} +10 -33
  118. package/dist/{data.prop-BmLaGLb7.d.ts → data.prop-DMYMNl6L.d.ts} +2 -2
  119. package/dist/{feedback.prop-BnBpUzNK.d.ts → feedback.prop-BR5JOpPl.d.ts} +8 -5
  120. package/dist/filter-bar-DvVXm_d1.d.ts +14 -0
  121. package/dist/form/index.d.ts +3 -3
  122. package/dist/{form.prop-BHgpuFFm.d.ts → form.prop-Bc6r6JJW.d.ts} +1 -1
  123. package/dist/{general.prop-D7brMPNL.d.ts → general.prop-DoHDCRmL.d.ts} +2 -2
  124. package/dist/index.d.ts +27 -25
  125. package/dist/index.js +46 -32
  126. package/dist/inline-DqfYlGKj.d.ts +18 -0
  127. package/dist/{interaction.prop-Cdn7wOtq.d.ts → interaction.prop-DSFizzP6.d.ts} +8 -6
  128. package/dist/{layout.prop-MwHm4-Zl.d.ts → layout.prop-Baq9muDN.d.ts} +27 -13
  129. package/dist/layout.prop-CXvl2rVR.d.ts +16 -0
  130. package/dist/{navigation.prop-Ck5_gSfs.d.ts → navigation.prop-8DgElO0c.d.ts} +17 -14
  131. package/dist/{navigation.prop-Hu7s7MJa.d.ts → navigation.prop-BKlxd-j7.d.ts} +2 -5
  132. package/dist/props/components/index.d.ts +14 -14
  133. package/dist/props/index.d.ts +14 -14
  134. package/dist/props/index.js +2 -2
  135. package/dist/props/registry.d.ts +254 -64
  136. package/dist/props/registry.js +1 -1
  137. package/dist/props/vocabulary/index.d.ts +5 -5
  138. package/dist/{query.prop-hIPrk2zI.d.ts → query.prop-DuODxsiU.d.ts} +12 -8
  139. package/dist/{search-input-mAZy3Den.d.ts → search-input-cezAxpgb.d.ts} +7 -2
  140. package/dist/{shared.prop-BNRJc9K0.d.ts → shared.prop-BsNSXeqD.d.ts} +9 -3
  141. package/dist/skeleton-uWAjSacg.d.ts +22 -0
  142. package/dist/styles/alert-layout.css +38 -18
  143. package/dist/styles/badge-layout.css +4 -4
  144. package/dist/styles/card-layout.css +24 -24
  145. package/dist/styles/control.css +68 -0
  146. package/dist/styles/data-display-layout.css +23 -81
  147. package/dist/styles/density.css +10 -10
  148. package/dist/styles/dialog-layout.css +4 -4
  149. package/dist/styles/index.css +6 -9
  150. package/dist/styles/layout.css +114 -85
  151. package/dist/styles/table-layout.css +3 -3
  152. package/dist/theme/example.service.css +0 -5
  153. package/dist/toggle-group-BulJgKh3.d.ts +26 -0
  154. package/dist/tokens/base.css +7 -7
  155. package/dist/tokens/components/badge.css +7 -0
  156. package/dist/tokens/{primitives → components}/card.css +11 -12
  157. package/dist/tokens/{primitives → components}/control.css +10 -0
  158. package/dist/tokens/components/feedback.css +17 -0
  159. package/dist/tokens/{primitives → components}/table.css +2 -2
  160. package/dist/tokens/foundation.css +7 -22
  161. package/dist/use-toast-Dsw3yE2S.d.ts +19 -0
  162. package/package.json +13 -7
  163. package/scripts/ui-audit.mjs +22 -0
  164. package/dist/chunk-BPSKQUL2.js +0 -68
  165. package/dist/chunk-M64MVRLS.js +0 -92
  166. package/dist/chunk-PIIRNAXA.js +0 -26
  167. package/dist/chunk-S66TJXJU.js +0 -33
  168. package/dist/chunk-WXW43RK5.js +0 -24
  169. package/dist/components/navigation/tabs-items.d.ts +0 -12
  170. package/dist/components/navigation/tabs-items.js +0 -3
  171. package/dist/filter-bar-BpUvE_yO.d.ts +0 -10
  172. package/dist/inline-CV3A46np.d.ts +0 -10
  173. package/dist/layout.prop-4TCNvyQZ.d.ts +0 -20
  174. package/dist/tokens/primitives/badge.css +0 -13
  175. package/dist/tokens/primitives/feedback.css +0 -17
  176. package/dist/use-toast-Dol5bdY3.d.ts +0 -34
  177. /package/dist/{chunk-LDSLS6HE.js → chunk-2H65B4JA.js} +0 -0
  178. /package/dist/tokens/{primitives → components}/navigation.css +0 -0
  179. /package/dist/tokens/{primitives → semantic}/layout.css +0 -0
@@ -48,6 +48,28 @@ const RULES = [
48
48
  message:
49
49
  "Use semantic tokens (bg-primary, text-muted-foreground…), not raw palette colors (rules §4).",
50
50
  },
51
+ {
52
+ id: "status-tone-not-variant",
53
+ severity: "error",
54
+ test: /\bvariant=["'](?:success|warning|destructive|info|neutral)["']/,
55
+ message:
56
+ "Status/color intent uses tone, not variant. Use tone='success|warning|destructive|info|neutral'.",
57
+ },
58
+ {
59
+ id: "no-domain-tracking-token",
60
+ severity: "error",
61
+ test: /--(?:color-)?tracking-|--(?:tracking|color-tracking)-(?:internal|seller|yamato)/,
62
+ message:
63
+ "Package tracking/domain tokens are forbidden. Use semantic tokens or app-local theme overrides.",
64
+ },
65
+ {
66
+ id: "value-callback-on-value-change",
67
+ severity: "error",
68
+ test:
69
+ /<(?:Checkbox\.Group|Upload|Cascader|TreeSelect|Transfer|SearchSelect|DatePicker|DateRangePicker|TimePicker|ColorPicker|LocalePicker|TimezonePicker|DateFormatPicker|TimeFormatPicker)\b[^>]*\bonChange=/,
70
+ message:
71
+ "Abstract value components use onValueChange, not onChange. Reserve onChange for DOM events.",
72
+ },
51
73
  {
52
74
  id: "no-arbitrary-hex",
53
75
  severity: "error",
@@ -1,68 +0,0 @@
1
- import { Tabs, TabsList, TabsTrigger, TabsContent } from './chunk-XG7XDYIM.js';
2
- import { cn } from './chunk-U7N2A7A3.js';
3
- import { jsxs, jsx } from 'react/jsx-runtime';
4
-
5
- function TabsItems({
6
- items,
7
- value,
8
- defaultValue,
9
- onValueChange,
10
- variant = "default",
11
- className,
12
- listClassName,
13
- contentClassName
14
- }) {
15
- const firstKey = items[0]?.key;
16
- const resolvedDefault = defaultValue ?? firstKey;
17
- return /* @__PURE__ */ jsxs(
18
- Tabs,
19
- {
20
- value,
21
- defaultValue: value === void 0 ? resolvedDefault : void 0,
22
- onValueChange,
23
- className,
24
- "data-slot": "tabs",
25
- children: [
26
- /* @__PURE__ */ jsx(
27
- TabsList,
28
- {
29
- "data-slot": "tabs-list",
30
- className: cn(
31
- variant === "line" && "h-auto w-full justify-start rounded-none border-b bg-transparent p-0",
32
- variant === "card" && "w-full justify-start",
33
- listClassName
34
- ),
35
- children: items.map((item) => /* @__PURE__ */ jsxs(
36
- TabsTrigger,
37
- {
38
- value: item.key,
39
- disabled: item.disabled,
40
- className: cn(
41
- variant === "line" && "data-[state=active]:border-primary rounded-none border-b-2 border-transparent bg-transparent px-4 py-2 shadow-none data-[state=active]:bg-transparent data-[state=active]:shadow-none",
42
- variant === "card" && "data-[state=active]:shadow-sm"
43
- ),
44
- children: [
45
- item.icon && /* @__PURE__ */ jsx("span", { className: "mr-1.5 inline-flex", children: item.icon }),
46
- item.label
47
- ]
48
- },
49
- item.key
50
- ))
51
- }
52
- ),
53
- items.map((item) => /* @__PURE__ */ jsx(
54
- TabsContent,
55
- {
56
- value: item.key,
57
- "data-slot": "tabs-panel",
58
- className: cn(variant === "line" && "mt-0", contentClassName),
59
- children: item.children
60
- },
61
- item.key
62
- ))
63
- ]
64
- }
65
- );
66
- }
67
-
68
- export { TabsItems };
@@ -1,92 +0,0 @@
1
- import { tableCellPaddingClass, tableRowHeightClass } from './chunk-ICM6XBST.js';
2
- import { cn } from './chunk-U7N2A7A3.js';
3
- import { jsx, jsxs } from 'react/jsx-runtime';
4
- import { toast as toast$1 } from 'sonner';
5
-
6
- function SkeletonBlock({ className, ...props }) {
7
- return /* @__PURE__ */ jsx(
8
- "div",
9
- {
10
- "aria-busy": "true",
11
- "aria-live": "polite",
12
- className: cn("ui-skeleton-block", className),
13
- ...props
14
- }
15
- );
16
- }
17
- function SkeletonRows({ rows = 6, columns = 4, className }) {
18
- return /* @__PURE__ */ jsx("div", { className: cn("ui-skeleton-rows", className), "aria-busy": "true", children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsx("div", { className: "ui-skeleton-row", children: Array.from({ length: columns }).map((_2, j) => /* @__PURE__ */ jsx(
19
- SkeletonBlock,
20
- {
21
- className: cn("h-4", j === 0 ? "w-1/4" : j === columns - 1 ? "w-1/6" : "flex-1")
22
- },
23
- j
24
- )) }, i)) });
25
- }
26
- function SkeletonTable({ rows = 8, columns = 5 }) {
27
- return /* @__PURE__ */ jsxs("div", { className: "ui-skeleton-table", "aria-busy": "true", children: [
28
- /* @__PURE__ */ jsx("div", { className: cn("ui-skeleton-table-head", tableCellPaddingClass, tableRowHeightClass), children: Array.from({ length: columns }).map((_, j) => /* @__PURE__ */ jsx(SkeletonBlock, { className: cn("h-3", j === 0 ? "w-1/5" : "flex-1") }, j)) }),
29
- /* @__PURE__ */ jsx("div", { className: "ui-skeleton-table-body", children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsx(
30
- "div",
31
- {
32
- className: cn("ui-skeleton-table-row", tableCellPaddingClass, tableRowHeightClass),
33
- children: Array.from({ length: columns }).map((_2, j) => /* @__PURE__ */ jsx(SkeletonBlock, { className: cn("h-4", j === 0 ? "w-1/5" : "flex-1") }, j))
34
- },
35
- i
36
- )) })
37
- ] });
38
- }
39
- function SkeletonDetail() {
40
- return /* @__PURE__ */ jsxs("div", { className: "ui-skeleton-detail ui-skeleton-detail-stack", "aria-busy": "true", children: [
41
- /* @__PURE__ */ jsx(SkeletonBlock, { className: "h-7 w-1/3" }),
42
- /* @__PURE__ */ jsx(SkeletonBlock, { className: "h-4 w-1/2" }),
43
- /* @__PURE__ */ jsx("div", { className: "ui-skeleton-detail-box ui-skeleton-detail-stack", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "ui-skeleton-detail-stack", children: [
44
- /* @__PURE__ */ jsx(SkeletonBlock, { className: "h-3 w-24" }),
45
- /* @__PURE__ */ jsx(SkeletonBlock, { className: "h-4 w-full max-w-md" })
46
- ] }, i)) })
47
- ] });
48
- }
49
- function SkeletonCard() {
50
- return /* @__PURE__ */ jsxs("div", { className: "ui-skeleton-card", "aria-busy": "true", children: [
51
- /* @__PURE__ */ jsx(SkeletonBlock, { className: "h-3 w-24" }),
52
- /* @__PURE__ */ jsx(SkeletonBlock, { className: "h-[length:var(--control-height)] w-32" }),
53
- /* @__PURE__ */ jsx(SkeletonBlock, { className: "h-3 w-20" })
54
- ] });
55
- }
56
- function nodeText(value) {
57
- if (value == null) return "";
58
- if (typeof value === "string") return value;
59
- if (typeof value === "number" || typeof value === "boolean") return String(value);
60
- return "";
61
- }
62
- function legacyToast(options) {
63
- const { title, description, variant, ...rest } = options;
64
- const titleText = nodeText(title);
65
- const descText = nodeText(description);
66
- const message = titleText || descText;
67
- const desc = titleText && descText ? descText : void 0;
68
- const sonnerOptions = { ...rest, description: desc };
69
- switch (variant) {
70
- case "destructive":
71
- return toast$1.error(message, sonnerOptions);
72
- case "success":
73
- return toast$1.success(message, sonnerOptions);
74
- default:
75
- return toast$1(message, sonnerOptions);
76
- }
77
- }
78
- var toast = Object.assign((messageOrOptions) => {
79
- if (typeof messageOrOptions === "string") {
80
- return toast$1(messageOrOptions);
81
- }
82
- return legacyToast(messageOrOptions);
83
- }, toast$1);
84
- function useToast() {
85
- return {
86
- toast: (options) => legacyToast(options),
87
- dismiss: toast$1.dismiss,
88
- toasts: []
89
- };
90
- }
91
-
92
- export { SkeletonCard, SkeletonDetail, SkeletonRows, SkeletonTable, toast, useToast };
@@ -1,26 +0,0 @@
1
- import { toneWarningClass, toneSuccessClass } from './chunk-ICM6XBST.js';
2
- import { cn } from './chunk-U7N2A7A3.js';
3
- import { cva } from 'class-variance-authority';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- var badgeVariants = cva(
7
- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring",
8
- {
9
- variants: {
10
- variant: {
11
- default: "border-transparent bg-primary text-primary-foreground",
12
- secondary: "border-transparent bg-secondary text-secondary-foreground",
13
- destructive: "border-transparent bg-destructive text-destructive-foreground",
14
- outline: "text-foreground",
15
- success: cn("border-transparent", toneSuccessClass),
16
- warning: cn("border-transparent", toneWarningClass)
17
- }
18
- },
19
- defaultVariants: { variant: "default" }
20
- }
21
- );
22
- function Badge({ className, variant, ...props }) {
23
- return /* @__PURE__ */ jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
24
- }
25
-
26
- export { Badge };
@@ -1,33 +0,0 @@
1
- import { cn } from './chunk-U7N2A7A3.js';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- // src/lib/variants.ts
5
- var densityClass = {
6
- compact: "ui-density-compact",
7
- default: "ui-density-default",
8
- comfortable: "ui-density-comfortable"
9
- };
10
- var pageContainerVariantClass = {
11
- default: void 0,
12
- narrow: "ui-page-container--narrow",
13
- flush: "ui-page-container--flush",
14
- ghost: "ui-page-container--ghost"
15
- };
16
- var stackGapClass = {
17
- xs: "ui-stack-xs",
18
- sm: "ui-stack-sm",
19
- md: "ui-stack-md",
20
- lg: "ui-stack-lg",
21
- xl: "ui-stack-xl"
22
- };
23
- var inlineGapClass = {
24
- xs: "ui-inline-xs",
25
- sm: "ui-inline-sm",
26
- md: "ui-inline-md",
27
- lg: "ui-inline-lg"
28
- };
29
- function Inline({ gap = "sm", className, children, ...props }) {
30
- return /* @__PURE__ */ jsx("div", { className: cn(inlineGapClass[gap], className), ...props, children });
31
- }
32
-
33
- export { Inline, densityClass, pageContainerVariantClass, stackGapClass };
@@ -1,24 +0,0 @@
1
- import { cn } from './chunk-U7N2A7A3.js';
2
- import * as React from 'react';
3
- import * as SwitchPrimitive from '@radix-ui/react-switch';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- var Switch = React.forwardRef(
7
- ({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsx(
8
- SwitchPrimitive.Root,
9
- {
10
- ref,
11
- "data-slot": "switch",
12
- "data-size": size,
13
- className: cn(
14
- "peer ui-switch focus-visible:border-ring focus-visible:ring-ring/50 shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
15
- className
16
- ),
17
- ...props,
18
- children: /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: "ui-switch-thumb" })
19
- }
20
- )
21
- );
22
- Switch.displayName = SwitchPrimitive.Root.displayName;
23
-
24
- export { Switch };
@@ -1,12 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { d as TabsItemsProp } from '../../navigation.prop-Ck5_gSfs.js';
3
- import 'react';
4
- import '../../shared.prop-BNRJc9K0.js';
5
- import '../../data.prop-BmLaGLb7.js';
6
- import '../../interaction.prop-Cdn7wOtq.js';
7
- import '../../layout.prop-4TCNvyQZ.js';
8
-
9
- /** Ant Design `items` API — wraps Radix Tabs primitives. */
10
- declare function TabsItems({ items, value, defaultValue, onValueChange, variant, className, listClassName, contentClassName, }: TabsItemsProp): react_jsx_runtime.JSX.Element;
11
-
12
- export { TabsItems, TabsItemsProp, TabsItemsProp as TabsItemsProps };
@@ -1,3 +0,0 @@
1
- export { TabsItems } from '../../chunk-BPSKQUL2.js';
2
- import '../../chunk-XG7XDYIM.js';
3
- import '../../chunk-U7N2A7A3.js';
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as PageHeaderProp } from './layout.prop-MwHm4-Zl.js';
3
- import { F as FilterBarProp, a as FilterGroupProp } from './navigation.prop-Ck5_gSfs.js';
4
-
5
- declare function PageHeader({ title, description, breadcrumb, actions, className }: PageHeaderProp): react_jsx_runtime.JSX.Element;
6
-
7
- declare function FilterBar({ onClear, hasActiveFilters, className, children, }: FilterBarProp): react_jsx_runtime.JSX.Element;
8
- declare function FilterGroup({ label, className, children }: FilterGroupProp): react_jsx_runtime.JSX.Element;
9
-
10
- export { FilterBar as F, PageHeader as P, FilterGroup as a };
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { P as PageContainerProp, f as StackProp, I as InlineProp } from './layout.prop-MwHm4-Zl.js';
3
-
4
- declare function PageContainer({ title, subtitle, extra, footer, breadcrumb, density, variant, stickyFooter, children, className, }: PageContainerProp): react_jsx_runtime.JSX.Element;
5
-
6
- declare function Stack({ gap, className, children, ...props }: StackProp): react_jsx_runtime.JSX.Element;
7
-
8
- declare function Inline({ gap, className, children, ...props }: InlineProp): react_jsx_runtime.JSX.Element;
9
-
10
- export { Inline as I, PageContainer as P, Stack as S };
@@ -1,20 +0,0 @@
1
- /**
2
- * Layout & spacing prop types.
3
- * @see docs/PROPS-VOCABULARY.md#layout--density
4
- */
5
- /** Page-level density — affects padding, control heights across PageContainer subtree. */
6
- type PageDensityProp = "compact" | "default" | "comfortable";
7
- /** Page shell layout — orthogonal to PageDensityProp. */
8
- type PageContainerVariantProp = "default" | "narrow" | "flush" | "ghost";
9
- /** Vertical stack gap between block-level children. */
10
- type StackGapProp = "xs" | "sm" | "md" | "lg" | "xl";
11
- /** Horizontal inline gap between row items. */
12
- type InlineGapProp = "xs" | "sm" | "md" | "lg";
13
- /** DataTable row density — NOT the same as PageDensityProp. */
14
- type TableDensityProp = "compact" | "comfortable";
15
- /** @deprecated Alias — use PageDensityProp. Kept for lib/variants compat. */
16
- type DensityProp = PageDensityProp;
17
- /** @deprecated Alias — use StackGapProp. */
18
- type GapProp = StackGapProp;
19
-
20
- export type { DensityProp as D, GapProp as G, InlineGapProp as I, PageContainerVariantProp as P, StackGapProp as S, TableDensityProp as T, PageDensityProp as a };
@@ -1,13 +0,0 @@
1
- /* Badge primitive tokens. */
2
-
3
- :root {
4
- --space-badge-gap: var(--space-inline-xs);
5
- --space-badge-x: var(--space-2);
6
- --space-badge-y: var(--space-1);
7
- --code-badge-height: 1.75rem;
8
- --code-badge-gap: var(--space-inline-sm);
9
- --code-badge-padding-x: var(--space-2);
10
- --code-badge-bg-alpha: 0.055;
11
- --code-badge-border-alpha: 0.28;
12
- --code-badge-separator-alpha: 0.22;
13
- }
@@ -1,17 +0,0 @@
1
- /* Feedback primitive tokens: dialog, alert, empty state. */
2
-
3
- :root {
4
- --space-dialog-inset: var(--space-5);
5
- --space-dialog-gap: var(--space-stack-md);
6
- --space-dialog-close-offset: var(--space-4);
7
- --space-alert-inset: var(--space-section-active);
8
- --space-alert-gap: var(--space-inline-md);
9
- --space-alert-inner-gap: var(--space-stack-sm);
10
- --space-alert-dismiss-offset: var(--space-3);
11
- --space-empty-state-y: var(--space-10);
12
- --space-empty-state-x: var(--space-6);
13
- --skeleton-row-gap: var(--space-stack-sm);
14
- --skeleton-cell-gap: var(--space-inline-lg);
15
- --skeleton-card-inset: var(--space-section-active);
16
- --skeleton-radius: var(--radius);
17
- }
@@ -1,34 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { ExternalToast, toast as toast$1 } from 'sonner';
4
-
5
- interface SkeletonRowsProps {
6
- rows?: number;
7
- columns?: number;
8
- className?: string;
9
- }
10
- /** Skeleton for a flat list of rows (use inside a Card or section). */
11
- declare function SkeletonRows({ rows, columns, className }: SkeletonRowsProps): react_jsx_runtime.JSX.Element;
12
- /** Skeleton matching the DataTable layout — header row + N body rows. */
13
- declare function SkeletonTable({ rows, columns }: SkeletonRowsProps): react_jsx_runtime.JSX.Element;
14
- /** Skeleton matching a Card detail layout — title + 6 metadata rows. */
15
- declare function SkeletonDetail(): react_jsx_runtime.JSX.Element;
16
- /** Skeleton matching a stat card / dashboard tile. */
17
- declare function SkeletonCard(): react_jsx_runtime.JSX.Element;
18
-
19
- type LegacyToastOptions = ExternalToast & {
20
- title?: React.ReactNode;
21
- description?: React.ReactNode;
22
- variant?: "default" | "destructive" | "success";
23
- };
24
- type ToastFn = typeof toast$1 & ((options: LegacyToastOptions) => ReturnType<typeof toast$1>);
25
- /** Sonner toast + legacy `{ title, variant }` object form. */
26
- declare const toast: ToastFn;
27
- /** Legacy hook — prefer `toast` import directly; kept for existing admin pages. */
28
- declare function useToast(): {
29
- toast: (options: LegacyToastOptions) => string | number;
30
- dismiss: (id?: number | string) => string | number;
31
- toasts: readonly [];
32
- };
33
-
34
- export { type LegacyToastOptions as L, SkeletonCard as S, SkeletonDetail as a, SkeletonRows as b, SkeletonTable as c, toast as t, useToast as u };
File without changes
File without changes