@godxjp/ui 6.11.0 → 7.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.
- package/README.md +5 -0
- package/dist/aspect-ratio-DGoYrOry.d.ts +6 -0
- package/dist/avatar-D9MdXzfF.d.ts +8 -0
- package/dist/{checkbox-9w-eF8sM.d.ts → checkbox-CK2mYEpD.d.ts} +1 -1
- package/dist/chunk-7AMHT5Z5.js +61 -0
- package/dist/chunk-B3WX53JQ.js +40 -0
- package/dist/{chunk-X3OSXYAB.js → chunk-EQRQM6RF.js} +126 -181
- package/dist/chunk-FRU44GA2.js +18 -0
- package/dist/chunk-FYM3MJSK.js +59 -0
- package/dist/{chunk-M64MVRLS.js → chunk-HKQITNB3.js} +12 -48
- package/dist/{chunk-GXHZAJUA.js → chunk-O2OUNXV4.js} +10 -10
- package/dist/{chunk-BM5LIDCS.js → chunk-OGFWIXRO.js} +7 -16
- package/dist/chunk-R2W2FX5Q.js +48 -0
- package/dist/chunk-SEG2YBXF.js +29 -0
- package/dist/{chunk-XG7XDYIM.js → chunk-V3N266PT.js} +48 -2
- package/dist/{chunk-OI7TDPEJ.js → chunk-VXXKR5U4.js} +5 -46
- package/dist/components/admin/index.d.ts +12 -10
- package/dist/components/admin/index.js +18 -17
- package/dist/components/data-display/badge.d.ts +12 -4
- package/dist/components/data-display/badge.js +3 -1
- package/dist/components/data-display/card.d.ts +5 -5
- package/dist/components/data-display/card.js +1 -1
- package/dist/components/data-display/index.d.ts +10 -22
- package/dist/components/data-display/index.js +23 -32
- package/dist/components/data-entry/autocomplete.d.ts +1 -1
- package/dist/components/data-entry/calendar.d.ts +1 -1
- package/dist/components/data-entry/cascader.d.ts +1 -1
- package/dist/components/data-entry/cascader.js +2 -2
- package/dist/components/data-entry/checkbox.d.ts +2 -2
- package/dist/components/data-entry/color-picker.d.ts +1 -1
- package/dist/components/data-entry/command.d.ts +5 -5
- package/dist/components/data-entry/date-picker.d.ts +1 -1
- package/dist/components/data-entry/date-range-picker.d.ts +1 -1
- package/dist/components/data-entry/index.d.ts +18 -14
- package/dist/components/data-entry/index.js +12 -72
- package/dist/components/data-entry/radio.d.ts +1 -1
- package/dist/components/data-entry/select.d.ts +1 -1
- package/dist/components/data-entry/slider.d.ts +1 -1
- package/dist/components/data-entry/switch.d.ts +1 -1
- package/dist/components/data-entry/switch.js +1 -1
- package/dist/components/data-entry/time-picker.d.ts +1 -1
- package/dist/components/data-entry/transfer.d.ts +2 -2
- package/dist/components/data-entry/tree-select.d.ts +1 -1
- package/dist/components/data-entry/tree-select.js +2 -2
- package/dist/components/data-entry/upload.d.ts +2 -2
- package/dist/components/feedback/index.d.ts +2 -1
- package/dist/components/feedback/index.js +3 -2
- package/dist/components/layout/index.d.ts +11 -38
- package/dist/components/layout/index.js +2 -3
- package/dist/components/navigation/index.d.ts +2 -3
- package/dist/components/navigation/index.js +3 -4
- package/dist/components/navigation/pagination.d.ts +1 -1
- package/dist/components/navigation/steps.d.ts +2 -2
- package/dist/components/navigation/tabs.d.ts +14 -2
- package/dist/components/navigation/tabs.js +1 -1
- package/dist/components/ui/index.d.ts +14 -7
- package/dist/components/ui/index.js +14 -11
- package/dist/{data-display.prop-i0iaSwMV.d.ts → data-display.prop-CXP9Jfdn.d.ts} +14 -14
- package/dist/{data-entry.prop-Cjidhei7.d.ts → data-entry.prop-CpSx5dX6.d.ts} +1 -17
- package/dist/{data-table-Bg7fPpXy.d.ts → data-table-C5lcmAwE.d.ts} +7 -30
- package/dist/{filter-bar-BpUvE_yO.d.ts → filter-bar-zSKz7YCR.d.ts} +1 -1
- package/dist/index.d.ts +12 -10
- package/dist/index.js +18 -17
- package/dist/{navigation.prop-Ck5_gSfs.d.ts → navigation.prop-DAH4ysXj.d.ts} +6 -7
- package/dist/props/components/index.d.ts +3 -3
- package/dist/props/index.d.ts +3 -3
- package/dist/props/index.js +1 -1
- package/dist/props/registry.d.ts +7 -12
- package/dist/props/registry.js +1 -1
- package/dist/{search-input-mAZy3Den.d.ts → search-input-rR2XDrjv.d.ts} +1 -1
- package/dist/skeleton-CqFO4dRc.d.ts +20 -0
- package/dist/styles/badge-layout.css +2 -2
- package/dist/styles/card-layout.css +19 -19
- package/dist/styles/control.css +68 -0
- package/dist/styles/data-display-layout.css +23 -81
- package/dist/styles/layout.css +19 -71
- package/dist/toggle-group-BulJgKh3.d.ts +26 -0
- package/dist/tokens/primitives/card.css +9 -9
- package/dist/use-toast-Dsw3yE2S.d.ts +19 -0
- package/package.json +11 -7
- package/scripts/ui-audit.mjs +38 -1
- package/dist/chunk-BPSKQUL2.js +0 -68
- package/dist/chunk-PIIRNAXA.js +0 -26
- package/dist/chunk-WXW43RK5.js +0 -24
- package/dist/components/navigation/tabs-items.d.ts +0 -12
- package/dist/components/navigation/tabs-items.js +0 -3
- package/dist/use-toast-Dol5bdY3.d.ts +0 -34
- package/dist/{chunk-PFOBVLF3.js → chunk-6TSU4IHV.js} +0 -0
- package/dist/{chunk-V7RC4PBY.js → chunk-JJCGMCTL.js} +1 -1
- package/dist/{chunk-VRSHUKDF.js → chunk-RVY4F7LK.js} +1 -1
package/dist/chunk-WXW43RK5.js
DELETED
|
@@ -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,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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { normalizeTreeOptions, collectAllExpandableKeys, filterVisibleTree, flattenVisibleTree, findNodeByValue, reactNodeText, getDescendantValues } from './chunk-SMLKNECP.js';
|
|
2
|
-
import { Command, CommandInput } from './chunk-V6UWJKZF.js';
|
|
3
2
|
import { Checkbox } from './chunk-E76QIYSY.js';
|
|
3
|
+
import { Command, CommandInput } from './chunk-V6UWJKZF.js';
|
|
4
4
|
import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
|
|
5
5
|
import { ScrollArea } from './chunk-3KPEZ5CF.js';
|
|
6
6
|
import { Button } from './chunk-HJEBRCXL.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { normalizeTreeOptions, formatPathLabels, getNodeByPath, filterTreeOptions, pathsEqual, pathKey } from './chunk-SMLKNECP.js';
|
|
2
|
-
import { Command, CommandInput } from './chunk-V6UWJKZF.js';
|
|
3
2
|
import { Checkbox } from './chunk-E76QIYSY.js';
|
|
3
|
+
import { Command, CommandInput } from './chunk-V6UWJKZF.js';
|
|
4
4
|
import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
|
|
5
5
|
import { ScrollArea, ScrollBar } from './chunk-3KPEZ5CF.js';
|
|
6
6
|
import { Button } from './chunk-HJEBRCXL.js';
|