@godxjp/ui 16.9.2 → 16.9.4
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/dist/app/app-provider.d.ts +3 -3
- package/dist/app/app-provider.js +10 -10
- package/dist/app/date-format-labels.d.ts +2 -2
- package/dist/app/date-format-labels.js +2 -2
- package/dist/app/date-formats.d.ts +1 -1
- package/dist/app/date-formats.js +1 -1
- package/dist/app/index.d.ts +14 -14
- package/dist/app/index.js +14 -14
- package/dist/app/locales.d.ts +1 -1
- package/dist/app/request-headers.d.ts +1 -1
- package/dist/app/request-headers.js +1 -1
- package/dist/app/storage.d.ts +2 -2
- package/dist/app/storage.js +4 -4
- package/dist/app/theme-axes.d.ts +1 -1
- package/dist/app/time-format-labels.d.ts +2 -2
- package/dist/app/time-format-labels.js +2 -2
- package/dist/app/timezones.d.ts +1 -1
- package/dist/app/timezones.js +1 -1
- package/dist/app/types.d.ts +6 -6
- package/dist/app/types.js +2 -2
- package/dist/app/use-formatting.d.ts +4 -4
- package/dist/app/use-formatting.js +2 -2
- package/dist/components/admin/index.d.ts +24 -24
- package/dist/components/admin/index.js +21 -21
- package/dist/components/charts/area-chart.d.ts +2 -2
- package/dist/components/charts/area-chart.js +1 -1
- package/dist/components/charts/bar-chart.d.ts +2 -2
- package/dist/components/charts/bar-chart.js +1 -1
- package/dist/components/charts/chart-cartesian.d.ts +1 -1
- package/dist/components/charts/chart-cartesian.js +4 -4
- package/dist/components/charts/chart-frame.js +2 -2
- package/dist/components/charts/chart-summary.d.ts +1 -1
- package/dist/components/charts/index.d.ts +10 -10
- package/dist/components/charts/index.js +5 -5
- package/dist/components/charts/line-chart.d.ts +2 -2
- package/dist/components/charts/line-chart.js +1 -1
- package/dist/components/charts/pie-chart.d.ts +2 -2
- package/dist/components/charts/pie-chart.js +4 -4
- package/dist/components/data-display/accordion.d.ts +1 -1
- package/dist/components/data-display/accordion.js +1 -1
- package/dist/components/data-display/avatar.d.ts +1 -1
- package/dist/components/data-display/avatar.js +1 -1
- package/dist/components/data-display/badge.d.ts +1 -1
- package/dist/components/data-display/badge.js +3 -3
- package/dist/components/data-display/card.js +1 -1
- package/dist/components/data-display/carousel.js +2 -2
- package/dist/components/data-display/data-table.d.ts +1 -1
- package/dist/components/data-display/data-table.js +12 -12
- package/dist/components/data-display/descriptions.d.ts +1 -1
- package/dist/components/data-display/descriptions.js +1 -1
- package/dist/components/data-display/empty-state.d.ts +2 -2
- package/dist/components/data-display/empty-state.js +1 -1
- package/dist/components/data-display/hover-card.d.ts +1 -1
- package/dist/components/data-display/hover-card.js +1 -1
- package/dist/components/data-display/index.d.ts +26 -26
- package/dist/components/data-display/index.js +17 -17
- package/dist/components/data-display/list-row.js +2 -2
- package/dist/components/data-display/popover.js +1 -1
- package/dist/components/data-display/scroll-area.js +1 -1
- package/dist/components/data-display/table.js +2 -2
- package/dist/components/data-display/tree-list.js +1 -1
- package/dist/components/data-entry/calendar.d.ts +2 -2
- package/dist/components/data-entry/calendar.js +3 -3
- package/dist/components/data-entry/cascader.d.ts +3 -3
- package/dist/components/data-entry/cascader.js +8 -8
- package/dist/components/data-entry/checkbox-group.d.ts +2 -2
- package/dist/components/data-entry/checkbox-group.js +4 -4
- package/dist/components/data-entry/checkbox.d.ts +1 -1
- package/dist/components/data-entry/checkbox.js +2 -2
- package/dist/components/data-entry/choice-option.js +1 -1
- package/dist/components/data-entry/color-picker.d.ts +2 -2
- package/dist/components/data-entry/color-picker.js +4 -4
- package/dist/components/data-entry/command.js +2 -2
- package/dist/components/data-entry/date-picker.d.ts +2 -2
- package/dist/components/data-entry/date-picker.js +7 -7
- package/dist/components/data-entry/date-range-picker.d.ts +2 -2
- package/dist/components/data-entry/date-range-picker.js +6 -6
- package/dist/components/data-entry/field.d.ts +2 -2
- package/dist/components/data-entry/field.js +2 -2
- package/dist/components/data-entry/form-field.d.ts +2 -2
- package/dist/components/data-entry/form-field.js +3 -3
- package/dist/components/data-entry/form.d.ts +5 -5
- package/dist/components/data-entry/form.js +2 -2
- package/dist/components/data-entry/index.d.ts +59 -59
- package/dist/components/data-entry/index.js +33 -33
- package/dist/components/data-entry/input-otp.d.ts +1 -1
- package/dist/components/data-entry/input-otp.js +1 -1
- package/dist/components/data-entry/input.js +2 -2
- package/dist/components/data-entry/label.js +1 -1
- package/dist/components/data-entry/month-picker.d.ts +2 -2
- package/dist/components/data-entry/month-picker.js +5 -5
- package/dist/components/data-entry/month-range-picker.d.ts +2 -2
- package/dist/components/data-entry/month-range-picker.js +5 -5
- package/dist/components/data-entry/number-input.d.ts +2 -2
- package/dist/components/data-entry/number-input.js +4 -4
- package/dist/components/data-entry/password-input.d.ts +2 -2
- package/dist/components/data-entry/password-input.js +1 -1
- package/dist/components/data-entry/radio.d.ts +2 -2
- package/dist/components/data-entry/radio.js +3 -3
- package/dist/components/data-entry/rating.d.ts +2 -2
- package/dist/components/data-entry/rating.js +1 -1
- package/dist/components/data-entry/search-input.js +5 -5
- package/dist/components/data-entry/search-select.d.ts +2 -2
- package/dist/components/data-entry/search-select.js +7 -7
- package/dist/components/data-entry/select.d.ts +1 -1
- package/dist/components/data-entry/select.js +3 -3
- package/dist/components/data-entry/slider.d.ts +1 -1
- package/dist/components/data-entry/slider.js +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/tag-input.d.ts +2 -2
- package/dist/components/data-entry/tag-input.js +1 -1
- package/dist/components/data-entry/textarea.js +3 -3
- package/dist/components/data-entry/time-picker.d.ts +2 -2
- package/dist/components/data-entry/time-picker.js +5 -5
- package/dist/components/data-entry/toggle-group.d.ts +1 -1
- package/dist/components/data-entry/toggle-group.js +1 -1
- package/dist/components/data-entry/toggle.d.ts +2 -2
- package/dist/components/data-entry/toggle.js +1 -1
- package/dist/components/data-entry/transfer.d.ts +2 -2
- package/dist/components/data-entry/transfer.js +7 -7
- package/dist/components/data-entry/tree-select.d.ts +3 -3
- package/dist/components/data-entry/tree-select.js +11 -11
- package/dist/components/data-entry/upload-crop-dialog.js +5 -5
- package/dist/components/data-entry/upload.d.ts +5 -5
- package/dist/components/data-entry/upload.js +10 -10
- package/dist/components/data-entry/use-upload-draft.d.ts +1 -1
- package/dist/components/data-entry/use-upload-draft.js +1 -1
- package/dist/components/feedback/alert.d.ts +29 -29
- package/dist/components/feedback/alert.js +5 -5
- package/dist/components/feedback/dialog.d.ts +3 -3
- package/dist/components/feedback/dialog.js +7 -7
- package/dist/components/feedback/index.d.ts +10 -10
- package/dist/components/feedback/index.js +7 -7
- package/dist/components/feedback/overlay-header-tone.d.ts +1 -1
- package/dist/components/feedback/sheet.d.ts +1 -1
- package/dist/components/feedback/sheet.js +2 -2
- package/dist/components/feedback/skeleton.js +2 -2
- package/dist/components/feedback/tooltip.js +1 -1
- package/dist/components/general/button.d.ts +8 -8
- package/dist/components/general/button.js +4 -4
- package/dist/components/general/index.d.ts +4 -4
- package/dist/components/general/index.js +2 -2
- package/dist/components/general/typography.d.ts +9 -9
- package/dist/components/general/typography.js +1 -1
- package/dist/components/layout/app-shell.d.ts +2 -2
- package/dist/components/layout/app-shell.js +1 -1
- package/dist/components/layout/aspect-ratio.d.ts +1 -1
- package/dist/components/layout/aspect-ratio.js +1 -1
- package/dist/components/layout/breadcrumb.d.ts +1 -1
- package/dist/components/layout/breadcrumb.js +1 -1
- package/dist/components/layout/flex.d.ts +2 -2
- package/dist/components/layout/flex.js +2 -2
- package/dist/components/layout/index.d.ts +19 -19
- package/dist/components/layout/index.js +11 -11
- package/dist/components/layout/page-container.d.ts +3 -3
- package/dist/components/layout/page-container.js +2 -2
- package/dist/components/layout/resizable.js +1 -1
- package/dist/components/layout/responsive-grid.d.ts +1 -1
- package/dist/components/layout/separator.d.ts +1 -1
- package/dist/components/layout/separator.js +1 -1
- package/dist/components/layout/sidebar.d.ts +2 -2
- package/dist/components/layout/sidebar.js +5 -5
- package/dist/components/layout/topbar.d.ts +2 -2
- package/dist/components/layout/topbar.js +1 -1
- package/dist/components/navigation/app-setting-picker.d.ts +2 -2
- package/dist/components/navigation/app-setting-picker.js +9 -9
- package/dist/components/navigation/context-menu.js +1 -1
- package/dist/components/navigation/dropdown-menu.js +1 -1
- package/dist/components/navigation/filter-bar.d.ts +2 -2
- package/dist/components/navigation/filter-bar.js +3 -3
- package/dist/components/navigation/index.d.ts +12 -12
- package/dist/components/navigation/index.js +9 -9
- package/dist/components/navigation/menubar.js +1 -1
- package/dist/components/navigation/navigation-menu.js +1 -1
- package/dist/components/navigation/pagination.d.ts +2 -2
- package/dist/components/navigation/pagination.js +5 -5
- package/dist/components/navigation/steps.d.ts +2 -2
- package/dist/components/navigation/steps.js +3 -3
- package/dist/components/navigation/tabs.js +1 -1
- package/dist/components/query/data-state.d.ts +2 -2
- package/dist/components/query/data-state.js +1 -1
- package/dist/components/query/index.d.ts +10 -10
- package/dist/components/query/index.js +5 -5
- package/dist/components/query/infinite-query-state.d.ts +2 -2
- package/dist/components/query/infinite-query-state.js +3 -3
- package/dist/components/query/mutation-feedback.d.ts +2 -2
- package/dist/components/query/mutation-feedback.js +1 -1
- package/dist/components/query/prefetch-link.d.ts +2 -2
- package/dist/components/query/query-refetch-button.d.ts +2 -2
- package/dist/components/query/query-refetch-button.js +1 -1
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.js +1 -1
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/aspect-ratio.js +1 -1
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/calendar.d.ts +1 -1
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/card.d.ts +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/carousel.d.ts +1 -1
- package/dist/components/ui/carousel.js +1 -1
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/color-picker.d.ts +1 -1
- package/dist/components/ui/color-picker.js +1 -1
- package/dist/components/ui/command.d.ts +1 -1
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/date-picker.d.ts +1 -1
- package/dist/components/ui/date-picker.js +1 -1
- package/dist/components/ui/date-range-picker.d.ts +1 -1
- package/dist/components/ui/date-range-picker.js +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/index.d.ts +42 -42
- package/dist/components/ui/index.js +42 -42
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/menubar.d.ts +1 -1
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/navigation-menu.d.ts +1 -1
- package/dist/components/ui/navigation-menu.js +1 -1
- package/dist/components/ui/pagination.d.ts +1 -1
- package/dist/components/ui/pagination.js +1 -1
- package/dist/components/ui/password-input.d.ts +1 -1
- package/dist/components/ui/password-input.js +3 -3
- package/dist/components/ui/password-strength.d.ts +1 -1
- package/dist/components/ui/password-strength.js +1 -1
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/radio.d.ts +1 -1
- package/dist/components/ui/radio.js +1 -1
- package/dist/components/ui/rating.js +2 -2
- package/dist/components/ui/resizable.d.ts +1 -1
- package/dist/components/ui/resizable.js +1 -1
- package/dist/components/ui/scroll-area.d.ts +1 -1
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/slider.d.ts +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/sonner.d.ts +1 -1
- package/dist/components/ui/sonner.js +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table.d.ts +1 -1
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tag-input.js +2 -2
- package/dist/components/ui/textarea.d.ts +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/time-picker.d.ts +1 -1
- package/dist/components/ui/time-picker.js +1 -1
- package/dist/components/ui/toggle-group.d.ts +1 -1
- package/dist/components/ui/toggle-group.js +2 -2
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/upload.d.ts +1 -1
- package/dist/components/ui/upload.js +1 -1
- package/dist/form/form-field-control.d.ts +2 -2
- package/dist/form/form-field-control.js +1 -1
- package/dist/form/form-root.d.ts +2 -2
- package/dist/form/form-root.js +1 -1
- package/dist/form/index.d.ts +7 -7
- package/dist/form/index.js +3 -3
- package/dist/form/use-zod-form.d.ts +2 -2
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/translate.d.ts +2 -2
- package/dist/i18n/translate.js +3 -3
- package/dist/i18n/use-translation.d.ts +4 -4
- package/dist/i18n/use-translation.js +3 -3
- package/dist/index.d.ts +11 -11
- package/dist/index.js +7 -7
- package/dist/lib/datetime/detect.js +1 -1
- package/dist/lib/datetime/format-date.d.ts +2 -2
- package/dist/lib/datetime/format-date.js +4 -4
- package/dist/lib/datetime/format.d.ts +2 -2
- package/dist/lib/datetime/format.js +6 -6
- package/dist/lib/datetime/index.d.ts +5 -5
- package/dist/lib/datetime/index.js +5 -5
- package/dist/lib/datetime/parse.js +1 -1
- package/dist/lib/datetime/sync.d.ts +1 -1
- package/dist/lib/datetime/sync.js +2 -2
- package/dist/lib/format.d.ts +2 -2
- package/dist/lib/format.js +2 -2
- package/dist/lib/variants.d.ts +1 -1
- package/dist/props/components/app.prop.d.ts +3 -3
- package/dist/props/components/charts.prop.d.ts +1 -1
- package/dist/props/components/data-display.prop.d.ts +1 -1
- package/dist/props/components/data-entry.prop.d.ts +3 -3
- package/dist/props/components/feedback.prop.d.ts +1 -1
- package/dist/props/components/form.prop.d.ts +1 -1
- package/dist/props/components/general.prop.d.ts +1 -1
- package/dist/props/components/index.d.ts +10 -10
- package/dist/props/components/layout.prop.d.ts +1 -1
- package/dist/props/components/navigation.prop.d.ts +1 -1
- package/dist/props/components/query.prop.d.ts +2 -2
- package/dist/props/index.d.ts +7 -7
- package/dist/props/index.js +3 -3
- package/dist/props/vocabulary/data.prop.d.ts +2 -2
- package/dist/props/vocabulary/index.d.ts +6 -6
- package/dist/props/vocabulary/navigation.prop.d.ts +1 -1
- package/dist/styles/control.css +16 -0
- package/package.json +2 -2
- package/scripts/ui-audit.mjs +7 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Toggle } from "../ui/toggle";
|
|
2
|
-
export type { ToggleProps } from "../ui/toggle";
|
|
1
|
+
export { Toggle } from "../ui/toggle.js";
|
|
2
|
+
export type { ToggleProps } from "../ui/toggle.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { TransferProp } from "../../props/components/data-entry.prop";
|
|
2
|
-
export type { TransferProp, TransferProp as TransferProps, TransferItemProp, } from "../../props/components/data-entry.prop";
|
|
1
|
+
import type { TransferProp } from "../../props/components/data-entry.prop.js";
|
|
2
|
+
export type { TransferProp, TransferProp as TransferProps, TransferItemProp, } from "../../props/components/data-entry.prop.js";
|
|
3
3
|
export declare function Transfer({ dataSource, targetKeys, onValueChange, titles, showSearch, oneWay, disabled, className, selectedKeys: selectedKeysProp, onSelectChange, }: TransferProp): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
5
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
7
|
-
import { Button } from "../general/button";
|
|
8
|
-
import { ScrollArea } from "../data-display/scroll-area";
|
|
9
|
-
import { Checkbox } from "./checkbox";
|
|
10
|
-
import { SearchInput } from "./search-input";
|
|
11
|
-
import { reactNodeText } from "./tree-utils";
|
|
5
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
|
+
import { Button } from "../general/button.js";
|
|
8
|
+
import { ScrollArea } from "../data-display/scroll-area.js";
|
|
9
|
+
import { Checkbox } from "./checkbox.js";
|
|
10
|
+
import { SearchInput } from "./search-input.js";
|
|
11
|
+
import { reactNodeText } from "./tree-utils.js";
|
|
12
12
|
function TransferPanel({
|
|
13
13
|
title,
|
|
14
14
|
items,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TreeSelectProp } from "../../props/components/data-entry.prop";
|
|
2
|
-
export type { TreeSelectProp, TreeSelectProp as TreeSelectProps, } from "../../props/components/data-entry.prop";
|
|
3
|
-
export { SHOW_CHILD, SHOW_PARENT, SHOW_ALL } from "./tree-select-strategy";
|
|
1
|
+
import type { TreeSelectProp } from "../../props/components/data-entry.prop.js";
|
|
2
|
+
export type { TreeSelectProp, TreeSelectProp as TreeSelectProps, } from "../../props/components/data-entry.prop.js";
|
|
3
|
+
export { SHOW_CHILD, SHOW_PARENT, SHOW_ALL } from "./tree-select-strategy.js";
|
|
4
4
|
declare function TreeSelectRoot({ treeData: treeDataProp, value, defaultValue, onValueChange, multiple, treeCheckable, treeCheckStrictly, showSearch, showCheckedStrategy, treeDefaultExpandAll, placeholder, disabled, allowClear, className, id, fieldNames, }: TreeSelectProp): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const TreeSelect: typeof TreeSelectRoot & {
|
|
6
6
|
SHOW_CHILD: "SHOW_CHILD";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ChevronDown, ChevronRight, ChevronsUpDown, X } from "lucide-react";
|
|
5
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
7
|
-
import { controlOpenRingClass } from "../../lib/control-styles";
|
|
8
|
-
import { Button } from "../general/button";
|
|
9
|
-
import { Popover, PopoverContent, PopoverTrigger } from "../data-display/popover";
|
|
10
|
-
import { ScrollArea } from "../data-display/scroll-area";
|
|
11
|
-
import { Checkbox } from "./checkbox";
|
|
12
|
-
import { Command, CommandInput } from "./command";
|
|
5
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
|
+
import { controlOpenRingClass } from "../../lib/control-styles.js";
|
|
8
|
+
import { Button } from "../general/button.js";
|
|
9
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../data-display/popover.js";
|
|
10
|
+
import { ScrollArea } from "../data-display/scroll-area.js";
|
|
11
|
+
import { Checkbox } from "./checkbox.js";
|
|
12
|
+
import { Command, CommandInput } from "./command.js";
|
|
13
13
|
import {
|
|
14
14
|
collectAllExpandableKeys,
|
|
15
15
|
filterVisibleTree,
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
getDescendantValues,
|
|
19
19
|
normalizeTreeOptions,
|
|
20
20
|
reactNodeText
|
|
21
|
-
} from "./tree-utils";
|
|
22
|
-
import { SHOW_CHILD, SHOW_PARENT, SHOW_ALL } from "./tree-select-strategy";
|
|
23
|
-
import { SHOW_CHILD as SHOW_CHILD2, SHOW_PARENT as SHOW_PARENT2, SHOW_ALL as SHOW_ALL2 } from "./tree-select-strategy";
|
|
21
|
+
} from "./tree-utils.js";
|
|
22
|
+
import { SHOW_CHILD, SHOW_PARENT, SHOW_ALL } from "./tree-select-strategy.js";
|
|
23
|
+
import { SHOW_CHILD as SHOW_CHILD2, SHOW_PARENT as SHOW_PARENT2, SHOW_ALL as SHOW_ALL2 } from "./tree-select-strategy.js";
|
|
24
24
|
function toArray(value) {
|
|
25
25
|
if (value == null) return [];
|
|
26
26
|
return Array.isArray(value) ? value : [value];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { Button } from "../general/button";
|
|
4
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { Button } from "../general/button.js";
|
|
7
7
|
import {
|
|
8
8
|
Dialog,
|
|
9
9
|
DialogContent,
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
DialogFooter,
|
|
12
12
|
DialogHeader,
|
|
13
13
|
DialogTitle
|
|
14
|
-
} from "../feedback/dialog";
|
|
15
|
-
import { Slider } from "./slider";
|
|
14
|
+
} from "../feedback/dialog.js";
|
|
15
|
+
import { Slider } from "./slider.js";
|
|
16
16
|
function UploadCropDialog({ open, onOpenChange, file, onConfirm }) {
|
|
17
17
|
const { t } = useTranslation();
|
|
18
18
|
const [scale, setScale] = React.useState(1.2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { UploadProp } from "../../props/components/data-entry.prop";
|
|
2
|
-
export type { UploadProp, UploadProp as UploadProps, UploadFileItemProp, UploadVariantProp, } from "../../props/components/data-entry.prop";
|
|
3
|
-
export type { UploadFileItem, UploadVariant, UploadCommitAction } from "./upload-types";
|
|
4
|
-
export { collectUploadCommitActions, createUploadItem } from "./upload-types";
|
|
5
|
-
export { useUploadDraft } from "./use-upload-draft";
|
|
1
|
+
import type { UploadProp } from "../../props/components/data-entry.prop.js";
|
|
2
|
+
export type { UploadProp, UploadProp as UploadProps, UploadFileItemProp, UploadVariantProp, } from "../../props/components/data-entry.prop.js";
|
|
3
|
+
export type { UploadFileItem, UploadVariant, UploadCommitAction } from "./upload-types.js";
|
|
4
|
+
export { collectUploadCommitActions, createUploadItem } from "./upload-types.js";
|
|
5
|
+
export { useUploadDraft } from "./use-upload-draft.js";
|
|
6
6
|
export declare function Upload({ variant, value, defaultValue, onValueChange, accept: acceptProp, multiple: multipleProp, maxCount: maxCountProp, maxSizeBytes, disabled, removable, onUpload, className, children, }: UploadProp): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Camera, ImagePlus, RotateCcw, Trash2, Upload as UploadIcon, X } from "lucide-react";
|
|
5
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
6
|
-
import { formatBytes } from "../../lib/format";
|
|
7
|
-
import { cn } from "../../lib/utils";
|
|
8
|
-
import { controlIconClass } from "../../lib/control-styles";
|
|
9
|
-
import { Button } from "../general/button";
|
|
10
|
-
import { UploadCropDialog } from "./upload-crop-dialog";
|
|
5
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
6
|
+
import { formatBytes } from "../../lib/format.js";
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
|
+
import { controlIconClass } from "../../lib/control-styles.js";
|
|
9
|
+
import { Button } from "../general/button.js";
|
|
10
|
+
import { UploadCropDialog } from "./upload-crop-dialog.js";
|
|
11
11
|
import {
|
|
12
12
|
createUploadItem,
|
|
13
13
|
revokePreviewUrl
|
|
14
|
-
} from "./upload-types";
|
|
15
|
-
import { useUploadDraft } from "./use-upload-draft";
|
|
16
|
-
import { collectUploadCommitActions, createUploadItem as createUploadItem2 } from "./upload-types";
|
|
17
|
-
import { useUploadDraft as useUploadDraft2 } from "./use-upload-draft";
|
|
14
|
+
} from "./upload-types.js";
|
|
15
|
+
import { useUploadDraft } from "./use-upload-draft.js";
|
|
16
|
+
import { collectUploadCommitActions, createUploadItem as createUploadItem2 } from "./upload-types.js";
|
|
17
|
+
import { useUploadDraft as useUploadDraft2 } from "./use-upload-draft.js";
|
|
18
18
|
function defaultAcceptForVariant(variant) {
|
|
19
19
|
if (variant === "avatar" || variant === "avatar-crop" || variant === "picture" || variant === "picture-card") {
|
|
20
20
|
return "image/*";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type UploadCommitAction, type UploadFileItem } from "./upload-types";
|
|
1
|
+
import { type UploadCommitAction, type UploadFileItem } from "./upload-types.js";
|
|
2
2
|
export type UploadDraftState = {
|
|
3
3
|
/** Item rendered in UI (may reflect pending delete/replace). */
|
|
4
4
|
display: UploadFileItem | null;
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import {
|
|
4
4
|
createUploadItem,
|
|
5
5
|
revokePreviewUrl
|
|
6
|
-
} from "./upload-types";
|
|
6
|
+
} from "./upload-types.js";
|
|
7
7
|
function useUploadDraft({ value, onChange }) {
|
|
8
8
|
const [baseline, setBaseline] = React.useState(value ?? null);
|
|
9
9
|
React.useEffect(() => {
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { ToneProp } from "../../props/vocabulary";
|
|
3
|
-
import type { AlertQueryErrorProp } from "../../props/components/feedback.prop";
|
|
4
|
-
export type { AlertProp, AlertProp as AlertProps, AlertTitleProp, AlertTitleProp as AlertTitleProps, AlertContentProp, AlertContentProp as AlertContentProps, AlertDescriptionProp, AlertDescriptionProp as AlertDescriptionProps, AlertActionsProp, AlertActionsProp as AlertActionsProps, AlertQueryErrorProp, AlertQueryErrorProp as AlertQueryErrorProps, } from "../../props/components/feedback.prop";
|
|
2
|
+
import type { ToneProp } from "../../props/vocabulary/index.js";
|
|
3
|
+
import type { AlertQueryErrorProp } from "../../props/components/feedback.prop.js";
|
|
4
|
+
export type { AlertProp, AlertProp as AlertProps, AlertTitleProp, AlertTitleProp as AlertTitleProps, AlertContentProp, AlertContentProp as AlertContentProps, AlertDescriptionProp, AlertDescriptionProp as AlertDescriptionProps, AlertActionsProp, AlertActionsProp as AlertActionsProps, AlertQueryErrorProp, AlertQueryErrorProp as AlertQueryErrorProps, } from "../../props/components/feedback.prop.js";
|
|
5
5
|
declare const AlertBase: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
-
variant?: import("../../props").AlertVariantProp;
|
|
6
|
+
variant?: import("../../props/index.js").AlertVariantProp;
|
|
7
7
|
tone?: ToneProp;
|
|
8
|
-
icon?: import("../../props").IconProp | false;
|
|
9
|
-
onDismiss?: import("../../props").HandlerProp;
|
|
10
|
-
className?: import("../../props").ClassNameProp;
|
|
11
|
-
children?: import("../../props").ChildrenProp;
|
|
8
|
+
icon?: import("../../props/index.js").IconProp | false;
|
|
9
|
+
onDismiss?: import("../../props/index.js").HandlerProp;
|
|
10
|
+
className?: import("../../props/index.js").ClassNameProp;
|
|
11
|
+
children?: import("../../props/index.js").ChildrenProp;
|
|
12
12
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & {
|
|
14
|
-
className?: import("../../props").ClassNameProp;
|
|
15
|
-
children?: import("../../props").ChildrenProp;
|
|
14
|
+
className?: import("../../props/index.js").ClassNameProp;
|
|
15
|
+
children?: import("../../props/index.js").ChildrenProp;
|
|
16
16
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
17
17
|
export declare const AlertContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
18
|
-
className?: import("../../props").ClassNameProp;
|
|
19
|
-
children?: import("../../props").ChildrenProp;
|
|
18
|
+
className?: import("../../props/index.js").ClassNameProp;
|
|
19
|
+
children?: import("../../props/index.js").ChildrenProp;
|
|
20
20
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
21
21
|
export declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & {
|
|
22
|
-
className?: import("../../props").ClassNameProp;
|
|
23
|
-
children?: import("../../props").ChildrenProp;
|
|
22
|
+
className?: import("../../props/index.js").ClassNameProp;
|
|
23
|
+
children?: import("../../props/index.js").ChildrenProp;
|
|
24
24
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
25
|
export declare const AlertActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
26
|
-
className?: import("../../props").ClassNameProp;
|
|
27
|
-
children?: import("../../props").ChildrenProp;
|
|
26
|
+
className?: import("../../props/index.js").ClassNameProp;
|
|
27
|
+
children?: import("../../props/index.js").ChildrenProp;
|
|
28
28
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
29
29
|
/** TanStack Query / API failure preset — same visual as `Alert tone="destructive"`. Used by `DataState` (@godxjp/ui/query). */
|
|
30
30
|
export declare function AlertQueryError({ error, onRetry, className }: AlertQueryErrorProp): import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
export declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
32
|
-
variant?: import("../../props").AlertVariantProp;
|
|
32
|
+
variant?: import("../../props/index.js").AlertVariantProp;
|
|
33
33
|
tone?: ToneProp;
|
|
34
|
-
icon?: import("../../props").IconProp | false;
|
|
35
|
-
onDismiss?: import("../../props").HandlerProp;
|
|
36
|
-
className?: import("../../props").ClassNameProp;
|
|
37
|
-
children?: import("../../props").ChildrenProp;
|
|
34
|
+
icon?: import("../../props/index.js").IconProp | false;
|
|
35
|
+
onDismiss?: import("../../props/index.js").HandlerProp;
|
|
36
|
+
className?: import("../../props/index.js").ClassNameProp;
|
|
37
|
+
children?: import("../../props/index.js").ChildrenProp;
|
|
38
38
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
39
39
|
Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & {
|
|
40
|
-
className?: import("../../props").ClassNameProp;
|
|
41
|
-
children?: import("../../props").ChildrenProp;
|
|
40
|
+
className?: import("../../props/index.js").ClassNameProp;
|
|
41
|
+
children?: import("../../props/index.js").ChildrenProp;
|
|
42
42
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
43
43
|
Content: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
44
|
-
className?: import("../../props").ClassNameProp;
|
|
45
|
-
children?: import("../../props").ChildrenProp;
|
|
44
|
+
className?: import("../../props/index.js").ClassNameProp;
|
|
45
|
+
children?: import("../../props/index.js").ChildrenProp;
|
|
46
46
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
47
47
|
Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & {
|
|
48
|
-
className?: import("../../props").ClassNameProp;
|
|
49
|
-
children?: import("../../props").ChildrenProp;
|
|
48
|
+
className?: import("../../props/index.js").ClassNameProp;
|
|
49
|
+
children?: import("../../props/index.js").ChildrenProp;
|
|
50
50
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
51
51
|
Actions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
52
|
-
className?: import("../../props").ClassNameProp;
|
|
53
|
-
children?: import("../../props").ChildrenProp;
|
|
52
|
+
className?: import("../../props/index.js").ClassNameProp;
|
|
53
|
+
children?: import("../../props/index.js").ChildrenProp;
|
|
54
54
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
55
55
|
QueryError: typeof AlertQueryError;
|
|
56
56
|
};
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
TriangleAlert,
|
|
10
10
|
X
|
|
11
11
|
} from "lucide-react";
|
|
12
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
13
|
-
import { humanError } from "../../lib/format";
|
|
14
|
-
import { cn } from "../../lib/utils";
|
|
15
|
-
import { Flex } from "../layout/flex";
|
|
16
|
-
import { Button } from "../general/button";
|
|
12
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
13
|
+
import { humanError } from "../../lib/format.js";
|
|
14
|
+
import { cn } from "../../lib/utils.js";
|
|
15
|
+
import { Flex } from "../layout/flex.js";
|
|
16
|
+
import { Button } from "../general/button.js";
|
|
17
17
|
const AlertContext = React.createContext("default");
|
|
18
18
|
const ASSERTIVE_TONES = /* @__PURE__ */ new Set(["destructive", "warning"]);
|
|
19
19
|
const DEFAULT_ICONS = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
3
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
4
|
-
import type { ToneProp } from "../../props/vocabulary";
|
|
5
|
-
import type { AlertDialogProp } from "../../props/components/feedback.prop";
|
|
6
|
-
export type { AlertDialogProp, AlertDialogProp as AlertDialogProps, } from "../../props/components/feedback.prop";
|
|
4
|
+
import type { ToneProp } from "../../props/vocabulary/index.js";
|
|
5
|
+
import type { AlertDialogProp } from "../../props/components/feedback.prop.js";
|
|
6
|
+
export type { AlertDialogProp, AlertDialogProp as AlertDialogProps, } from "../../props/components/feedback.prop.js";
|
|
7
7
|
type DialogRootProps = React.ComponentProps<typeof DialogPrimitive.Root> & {};
|
|
8
8
|
declare function DialogRoot(props: DialogRootProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare function DialogTrigger(props: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,13 +4,13 @@ import * as React from "react";
|
|
|
4
4
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
5
5
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
6
6
|
import { X } from "lucide-react";
|
|
7
|
-
import { cn } from "../../lib/utils";
|
|
8
|
-
import { overlayHeaderToneClass } from "./overlay-header-tone";
|
|
9
|
-
import { buttonVariants } from "../general/button";
|
|
10
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
11
|
-
import { Button } from "../general/button";
|
|
12
|
-
import { Input } from "../data-entry/input";
|
|
13
|
-
import { Label } from "../data-entry/label";
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
|
+
import { overlayHeaderToneClass } from "./overlay-header-tone.js";
|
|
9
|
+
import { buttonVariants } from "../general/button.js";
|
|
10
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
11
|
+
import { Button } from "../general/button.js";
|
|
12
|
+
import { Input } from "../data-entry/input.js";
|
|
13
|
+
import { Label } from "../data-entry/label.js";
|
|
14
14
|
function DialogRoot(props) {
|
|
15
15
|
return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
16
16
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogBody, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogAction, DialogCancel, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, AlertDialog, } from "./dialog";
|
|
2
|
-
export type { AlertDialogProp, AlertDialogProps } from "./dialog";
|
|
3
|
-
export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, } from "./sheet";
|
|
4
|
-
export { Toaster } from "./sonner";
|
|
5
|
-
export { toast } from "./use-toast";
|
|
6
|
-
export { Skeleton, SkeletonRows, SkeletonTable, SkeletonDetail, SkeletonStat } from "./skeleton";
|
|
7
|
-
export type { SkeletonProps } from "./skeleton";
|
|
8
|
-
export { Alert, AlertTitle, AlertContent, AlertDescription, AlertActions, AlertQueryError, } from "./alert";
|
|
9
|
-
export type { AlertProp, AlertProps, AlertTitleProp, AlertTitleProps, AlertContentProp, AlertContentProps, AlertDescriptionProp, AlertDescriptionProps, AlertActionsProp, AlertActionsProps, AlertQueryErrorProp, AlertQueryErrorProps, } from "./alert";
|
|
10
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "./tooltip";
|
|
1
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogBody, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogAction, DialogCancel, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, AlertDialog, } from "./dialog.js";
|
|
2
|
+
export type { AlertDialogProp, AlertDialogProps } from "./dialog.js";
|
|
3
|
+
export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, } from "./sheet.js";
|
|
4
|
+
export { Toaster } from "./sonner.js";
|
|
5
|
+
export { toast } from "./use-toast.js";
|
|
6
|
+
export { Skeleton, SkeletonRows, SkeletonTable, SkeletonDetail, SkeletonStat } from "./skeleton.js";
|
|
7
|
+
export type { SkeletonProps } from "./skeleton.js";
|
|
8
|
+
export { Alert, AlertTitle, AlertContent, AlertDescription, AlertActions, AlertQueryError, } from "./alert.js";
|
|
9
|
+
export type { AlertProp, AlertProps, AlertTitleProp, AlertTitleProps, AlertContentProp, AlertContentProps, AlertDescriptionProp, AlertDescriptionProps, AlertActionsProp, AlertActionsProps, AlertQueryErrorProp, AlertQueryErrorProps, } from "./alert.js";
|
|
10
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "./tooltip.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
AlertDialogAction,
|
|
24
24
|
AlertDialogCancel,
|
|
25
25
|
AlertDialog
|
|
26
|
-
} from "./dialog";
|
|
26
|
+
} from "./dialog.js";
|
|
27
27
|
import {
|
|
28
28
|
Sheet,
|
|
29
29
|
SheetBody,
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
SheetPortal,
|
|
37
37
|
SheetTitle,
|
|
38
38
|
SheetTrigger
|
|
39
|
-
} from "./sheet";
|
|
40
|
-
import { Toaster } from "./sonner";
|
|
41
|
-
import { toast } from "./use-toast";
|
|
42
|
-
import { Skeleton, SkeletonRows, SkeletonTable, SkeletonDetail, SkeletonStat } from "./skeleton";
|
|
39
|
+
} from "./sheet.js";
|
|
40
|
+
import { Toaster } from "./sonner.js";
|
|
41
|
+
import { toast } from "./use-toast.js";
|
|
42
|
+
import { Skeleton, SkeletonRows, SkeletonTable, SkeletonDetail, SkeletonStat } from "./skeleton.js";
|
|
43
43
|
import {
|
|
44
44
|
Alert,
|
|
45
45
|
AlertTitle,
|
|
@@ -47,8 +47,8 @@ import {
|
|
|
47
47
|
AlertDescription,
|
|
48
48
|
AlertActions,
|
|
49
49
|
AlertQueryError
|
|
50
|
-
} from "./alert";
|
|
51
|
-
import { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "./tooltip";
|
|
50
|
+
} from "./alert.js";
|
|
51
|
+
import { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "./tooltip.js";
|
|
52
52
|
export {
|
|
53
53
|
Alert,
|
|
54
54
|
AlertActions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ToneProp } from "../../props/vocabulary";
|
|
1
|
+
import type { ToneProp } from "../../props/vocabulary/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* Soft semantic background band for an overlay header (Sheet / Dialog / Drawer), Ant-Design style.
|
|
4
4
|
* Tints ONLY the background — text stays `--foreground` (渋み: never invert the band into a loud
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
3
|
import { type VariantProps } from "class-variance-authority";
|
|
4
|
-
import type { ToneProp, WidthProp } from "../../props/vocabulary";
|
|
4
|
+
import type { ToneProp, WidthProp } from "../../props/vocabulary/index.js";
|
|
5
5
|
export declare function Sheet(props: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare function SheetTrigger(props: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare function SheetClose(props: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,8 +4,8 @@ import * as React from "react";
|
|
|
4
4
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
import { X } from "lucide-react";
|
|
7
|
-
import { cn } from "../../lib/utils";
|
|
8
|
-
import { overlayHeaderToneClass } from "./overlay-header-tone";
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
|
+
import { overlayHeaderToneClass } from "./overlay-header-tone.js";
|
|
9
9
|
const toCssLength = (v) => typeof v === "number" ? `${v}px` : v;
|
|
10
10
|
function Sheet(props) {
|
|
11
11
|
return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../lib/utils";
|
|
3
|
-
import { tableCellPaddingClass, tableRowHeightClass } from "../../lib/control-styles";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { tableCellPaddingClass, tableRowHeightClass } from "../../lib/control-styles.js";
|
|
4
4
|
function Skeleton({ className, ...props }) {
|
|
5
5
|
return /* @__PURE__ */ jsx(
|
|
6
6
|
"div",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function TooltipProvider({
|
|
7
7
|
delayDuration = 200,
|
|
8
8
|
...props
|
|
@@ -4,16 +4,16 @@ declare const buttonVariants: (props?: ({
|
|
|
4
4
|
size?: "default" | "xs" | "sm" | "md" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
5
5
|
shape?: "default" | "pill" | "sharp" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
export type { ButtonProp, ButtonProp as ButtonProps } from "../../props/components/general.prop";
|
|
7
|
+
export type { ButtonProp, ButtonProp as ButtonProps } from "../../props/components/general.prop.js";
|
|
8
8
|
export declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
|
-
variant?: import("../../props").ButtonVariantProp;
|
|
10
|
-
size?: import("../../props").ButtonSizeProp;
|
|
11
|
-
shape?: import("../../props").ShapeProp;
|
|
9
|
+
variant?: import("../../props/index.js").ButtonVariantProp;
|
|
10
|
+
size?: import("../../props/index.js").ButtonSizeProp;
|
|
11
|
+
shape?: import("../../props/index.js").ShapeProp;
|
|
12
12
|
fullWidth?: boolean;
|
|
13
|
-
asChild?: import("../../props").AsChildProp;
|
|
14
|
-
onClick?: import("../../props").OnClickProp;
|
|
15
|
-
disabled?: import("../../props").DisabledProp;
|
|
16
|
-
loading?: import("../../props").PendingProp;
|
|
13
|
+
asChild?: import("../../props/index.js").AsChildProp;
|
|
14
|
+
onClick?: import("../../props/index.js").OnClickProp;
|
|
15
|
+
disabled?: import("../../props/index.js").DisabledProp;
|
|
16
|
+
loading?: import("../../props/index.js").PendingProp;
|
|
17
17
|
loadingText?: string;
|
|
18
18
|
count?: number;
|
|
19
19
|
overflowCount?: number;
|
|
@@ -4,8 +4,8 @@ import * as React from "react";
|
|
|
4
4
|
import { Slot } from "@radix-ui/react-slot";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
import { Loader2 } from "lucide-react";
|
|
7
|
-
import { cn } from "../../lib/utils";
|
|
8
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
9
9
|
const buttonCountClass = {
|
|
10
10
|
default: "bg-primary-foreground/15",
|
|
11
11
|
destructive: "bg-destructive-foreground/15",
|
|
@@ -34,8 +34,8 @@ const buttonVariants = cva("ui-button", {
|
|
|
34
34
|
lg: "ui-button--lg has-[>svg]:px-4",
|
|
35
35
|
icon: "ui-button--icon",
|
|
36
36
|
"icon-xs": "size-[calc(var(--control-height)-0.75rem)] [&_svg:not([class*='size-'])]:size-3",
|
|
37
|
-
"icon-sm": "
|
|
38
|
-
"icon-lg": "
|
|
37
|
+
"icon-sm": "ui-button--icon-sm",
|
|
38
|
+
"icon-lg": "ui-button--icon-lg"
|
|
39
39
|
},
|
|
40
40
|
// Single source of corner radius (deterministic — no competing rounded-* utility): default uses
|
|
41
41
|
// the dedicated --button-radius token (themeable independently of --control-radius, issue #124),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Button, buttonVariants } from "./button";
|
|
2
|
-
export type { ButtonProps } from "./button";
|
|
3
|
-
export { Text, Heading } from "./typography";
|
|
4
|
-
export type { TextProps, HeadingProps, TextProp, HeadingProp } from "./typography";
|
|
1
|
+
export { Button, buttonVariants } from "./button.js";
|
|
2
|
+
export type { ButtonProps } from "./button.js";
|
|
3
|
+
export { Text, Heading } from "./typography.js";
|
|
4
|
+
export type { TextProps, HeadingProps, TextProp, HeadingProp } from "./typography.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export type { TextProp, TextProp as TextProps, HeadingProp, HeadingProp as HeadingProps, } from "../../props/components/general.prop";
|
|
2
|
+
export type { TextProp, TextProp as TextProps, HeadingProp, HeadingProp as HeadingProps, } from "../../props/components/general.prop.js";
|
|
3
3
|
/**
|
|
4
4
|
* Text — the typographic primitive. Use it INSTEAD of a hand-rolled `<span className="text-[13px]
|
|
5
5
|
* font-medium text-muted-foreground">`. `size` only accepts steps of the golden-ratio type scale
|
|
@@ -8,10 +8,10 @@ export type { TextProp, TextProp as TextProps, HeadingProp, HeadingProp as Headi
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const Text: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "color"> & {
|
|
10
10
|
as?: "span" | "p" | "div" | "label" | "strong" | "em" | "small" | "code" | "kbd" | "dt" | "dd" | "caption" | "abbr";
|
|
11
|
-
size?: import("../../props").TextSizeProp;
|
|
12
|
-
tone?: import("../../props").TextToneProp;
|
|
13
|
-
weight?: import("../../props").FontWeightProp;
|
|
14
|
-
align?: import("../../props").TextAlignProp;
|
|
11
|
+
size?: import("../../props/index.js").TextSizeProp;
|
|
12
|
+
tone?: import("../../props/index.js").TextToneProp;
|
|
13
|
+
weight?: import("../../props/index.js").FontWeightProp;
|
|
14
|
+
align?: import("../../props/index.js").TextAlignProp;
|
|
15
15
|
truncate?: boolean;
|
|
16
16
|
tabular?: boolean;
|
|
17
17
|
mono?: boolean;
|
|
@@ -22,10 +22,10 @@ export declare const Text: React.ForwardRefExoticComponent<Omit<React.HTMLAttrib
|
|
|
22
22
|
* semantic element; override the rendered element with `as` (e.g. a visual h2 that is a real <h1>).
|
|
23
23
|
*/
|
|
24
24
|
export declare const Heading: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
25
|
-
level?: import("../../props").HeadingLevelProp;
|
|
25
|
+
level?: import("../../props/index.js").HeadingLevelProp;
|
|
26
26
|
as?: "h1" | "h2" | "h3" | "h4" | "div";
|
|
27
|
-
tone?: import("../../props").TextToneProp;
|
|
28
|
-
align?: import("../../props").TextAlignProp;
|
|
27
|
+
tone?: import("../../props/index.js").TextToneProp;
|
|
28
|
+
align?: import("../../props/index.js").TextAlignProp;
|
|
29
29
|
truncate?: boolean;
|
|
30
|
-
weight?: import("../../props").FontWeightProp;
|
|
30
|
+
weight?: import("../../props/index.js").FontWeightProp;
|
|
31
31
|
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AppShellProp } from "../../props/components/layout.prop";
|
|
2
|
-
export type { AppShellProp, AppShellProp as AppShellProps, } from "../../props/components/layout.prop";
|
|
1
|
+
import type { AppShellProp } from "../../props/components/layout.prop.js";
|
|
2
|
+
export type { AppShellProp, AppShellProp as AppShellProps, } from "../../props/components/layout.prop.js";
|
|
3
3
|
export declare function AppShell({ sidebar, topbar, topbarLeft, topbarRight, logo, breadcrumb, footer, children, sidebarCollapsed, }: AppShellProp): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AspectRatio } from "../ui/aspect-ratio";
|
|
1
|
+
export { AspectRatio } from "../ui/aspect-ratio.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ElementType } from "react";
|
|
2
|
-
import type { BreadcrumbProp } from "../../props/vocabulary/navigation.prop";
|
|
2
|
+
import type { BreadcrumbProp } from "../../props/vocabulary/navigation.prop.js";
|
|
3
3
|
export type BreadcrumbProps = {
|
|
4
4
|
items: BreadcrumbProp;
|
|
5
5
|
linkComponent?: ElementType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ChevronRight } from "lucide-react";
|
|
4
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
4
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
5
5
|
function Breadcrumb({ items, linkComponent: LinkComponent = "a" }) {
|
|
6
6
|
const { t } = useTranslation();
|
|
7
7
|
return /* @__PURE__ */ jsx("nav", { "aria-label": t("navigation.breadcrumb.ariaLabel"), className: "ui-breadcrumb", children: /* @__PURE__ */ jsx("ol", { className: "ui-breadcrumb-list", children: items.map((item, index) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FlexProp } from "../../props/components/layout.prop";
|
|
2
|
-
export type { FlexAlignProp, FlexDirectionProp, FlexJustifyProp, FlexProp, FlexProp as FlexProps, } from "../../props/components/layout.prop";
|
|
1
|
+
import type { FlexProp } from "../../props/components/layout.prop.js";
|
|
2
|
+
export type { FlexAlignProp, FlexDirectionProp, FlexJustifyProp, FlexProp, FlexProp as FlexProps, } from "../../props/components/layout.prop.js";
|
|
3
3
|
export declare function Flex({ direction, gap, align, justify, wrap, className, children, ...props }: FlexProp): import("react/jsx-runtime").JSX.Element;
|