@godxjp/ui 16.9.2 → 16.9.3
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 +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../lib/utils";
|
|
3
|
-
import { flexGapClass } from "../../lib/variants";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { flexGapClass } from "../../lib/variants.js";
|
|
4
4
|
function Flex({
|
|
5
5
|
direction = "col",
|
|
6
6
|
gap = "md",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { PageContainer } from "./page-container";
|
|
2
|
-
export type { PageContainerProp, PageContainerProps, BreadcrumbItem, BreadcrumbItemProp, } from "./page-container";
|
|
3
|
-
export { Flex } from "./flex";
|
|
4
|
-
export type { FlexAlignProp, FlexDirectionProp, FlexJustifyProp, FlexProp, FlexProps, } from "./flex";
|
|
5
|
-
export { ResizablePanel, ResizablePanelGroup, ResizableHandle } from "./resizable";
|
|
6
|
-
export { AppShell } from "./app-shell";
|
|
7
|
-
export type { AppShellProps } from "./app-shell";
|
|
8
|
-
export { Breadcrumb } from "./breadcrumb";
|
|
9
|
-
export type { BreadcrumbProps } from "./breadcrumb";
|
|
10
|
-
export { Sidebar, SidebarHeader, SidebarItem, SidebarSection } from "./sidebar";
|
|
11
|
-
export type { SidebarItemData, SidebarProductProp as SidebarProduct, SidebarProp, SidebarProp as SidebarProps, SidebarSectionProp, } from "../../props/components/layout.prop";
|
|
12
|
-
export { Topbar } from "./topbar";
|
|
13
|
-
export type { TopbarProp, TopbarProps } from "./topbar";
|
|
14
|
-
export { ResponsiveGrid } from "./responsive-grid";
|
|
15
|
-
export type { ResponsiveGridProps } from "./responsive-grid";
|
|
16
|
-
export { SplitPane } from "./split-pane";
|
|
17
|
-
export type { SplitPaneProps } from "./split-pane";
|
|
18
|
-
export { Separator } from "./separator";
|
|
19
|
-
export { AspectRatio } from "./aspect-ratio";
|
|
1
|
+
export { PageContainer } from "./page-container.js";
|
|
2
|
+
export type { PageContainerProp, PageContainerProps, BreadcrumbItem, BreadcrumbItemProp, } from "./page-container.js";
|
|
3
|
+
export { Flex } from "./flex.js";
|
|
4
|
+
export type { FlexAlignProp, FlexDirectionProp, FlexJustifyProp, FlexProp, FlexProps, } from "./flex.js";
|
|
5
|
+
export { ResizablePanel, ResizablePanelGroup, ResizableHandle } from "./resizable.js";
|
|
6
|
+
export { AppShell } from "./app-shell.js";
|
|
7
|
+
export type { AppShellProps } from "./app-shell.js";
|
|
8
|
+
export { Breadcrumb } from "./breadcrumb.js";
|
|
9
|
+
export type { BreadcrumbProps } from "./breadcrumb.js";
|
|
10
|
+
export { Sidebar, SidebarHeader, SidebarItem, SidebarSection } from "./sidebar.js";
|
|
11
|
+
export type { SidebarItemData, SidebarProductProp as SidebarProduct, SidebarProp, SidebarProp as SidebarProps, SidebarSectionProp, } from "../../props/components/layout.prop.js";
|
|
12
|
+
export { Topbar } from "./topbar.js";
|
|
13
|
+
export type { TopbarProp, TopbarProps } from "./topbar.js";
|
|
14
|
+
export { ResponsiveGrid } from "./responsive-grid.js";
|
|
15
|
+
export type { ResponsiveGridProps } from "./responsive-grid.js";
|
|
16
|
+
export { SplitPane } from "./split-pane.js";
|
|
17
|
+
export type { SplitPaneProps } from "./split-pane.js";
|
|
18
|
+
export { Separator } from "./separator.js";
|
|
19
|
+
export { AspectRatio } from "./aspect-ratio.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { PageContainer } from "./page-container";
|
|
2
|
-
import { Flex } from "./flex";
|
|
3
|
-
import { ResizablePanel, ResizablePanelGroup, ResizableHandle } from "./resizable";
|
|
4
|
-
import { AppShell } from "./app-shell";
|
|
5
|
-
import { Breadcrumb } from "./breadcrumb";
|
|
6
|
-
import { Sidebar, SidebarHeader, SidebarItem, SidebarSection } from "./sidebar";
|
|
7
|
-
import { Topbar } from "./topbar";
|
|
8
|
-
import { ResponsiveGrid } from "./responsive-grid";
|
|
9
|
-
import { SplitPane } from "./split-pane";
|
|
10
|
-
import { Separator } from "./separator";
|
|
11
|
-
import { AspectRatio } from "./aspect-ratio";
|
|
1
|
+
import { PageContainer } from "./page-container.js";
|
|
2
|
+
import { Flex } from "./flex.js";
|
|
3
|
+
import { ResizablePanel, ResizablePanelGroup, ResizableHandle } from "./resizable.js";
|
|
4
|
+
import { AppShell } from "./app-shell.js";
|
|
5
|
+
import { Breadcrumb } from "./breadcrumb.js";
|
|
6
|
+
import { Sidebar, SidebarHeader, SidebarItem, SidebarSection } from "./sidebar.js";
|
|
7
|
+
import { Topbar } from "./topbar.js";
|
|
8
|
+
import { ResponsiveGrid } from "./responsive-grid.js";
|
|
9
|
+
import { SplitPane } from "./split-pane.js";
|
|
10
|
+
import { Separator } from "./separator.js";
|
|
11
|
+
import { AspectRatio } from "./aspect-ratio.js";
|
|
12
12
|
export {
|
|
13
13
|
AppShell,
|
|
14
14
|
AspectRatio,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PageContainerProp, PageInsetProp } from "../../props/components/layout.prop";
|
|
2
|
-
export type { PageContainerProp, PageContainerProp as PageContainerProps, } from "../../props/components/layout.prop";
|
|
3
|
-
export type { BreadcrumbItemProp, BreadcrumbItemProp as BreadcrumbItem, } from "../../props/vocabulary/navigation.prop";
|
|
1
|
+
import type { PageContainerProp, PageInsetProp } from "../../props/components/layout.prop.js";
|
|
2
|
+
export type { PageContainerProp, PageContainerProp as PageContainerProps, } from "../../props/components/layout.prop.js";
|
|
3
|
+
export type { BreadcrumbItemProp, BreadcrumbItemProp as BreadcrumbItem, } from "../../props/vocabulary/navigation.prop.js";
|
|
4
4
|
export declare function PageContainerInset({ className, children, ...props }: PageInsetProp): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function PageContainerRoot({ title, subtitle, extra, footer, breadcrumb, linkComponent: LinkComponent, density, variant, stickyFooter, footerReveal, fill, children, className, }: PageContainerProp): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const PageContainer: typeof PageContainerRoot & {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { ChevronRight } from "lucide-react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { densityClass, pageContainerVariantClass } from "../../lib/variants";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { densityClass, pageContainerVariantClass } from "../../lib/variants.js";
|
|
7
7
|
function scrollParent(el) {
|
|
8
8
|
let node = el?.parentElement ?? null;
|
|
9
9
|
while (node) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import type { ResponsiveGridColumnsProp } from "../../props/components/layout.prop";
|
|
2
|
+
import type { ResponsiveGridColumnsProp } from "../../props/components/layout.prop.js";
|
|
3
3
|
export type ResponsiveGridProps = {
|
|
4
4
|
columns?: ResponsiveGridColumnsProp;
|
|
5
5
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Separator } from "../ui/separator";
|
|
1
|
+
export { Separator } from "../ui/separator.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { SidebarItemData, SidebarProp } from "../../props/components/layout.prop";
|
|
3
|
-
export type { SidebarItemData, SidebarProductProp as SidebarProduct, SidebarProp, SidebarProp as SidebarProps, } from "../../props/components/layout.prop";
|
|
2
|
+
import type { SidebarItemData, SidebarProp } from "../../props/components/layout.prop.js";
|
|
3
|
+
export type { SidebarItemData, SidebarProductProp as SidebarProduct, SidebarProp, SidebarProp as SidebarProps, } from "../../props/components/layout.prop.js";
|
|
4
4
|
type RenderItem = (item: SidebarItemData) => React.ReactNode;
|
|
5
5
|
type SidebarHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
6
6
|
type SidebarSectionProps = {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ChevronDown } from "lucide-react";
|
|
5
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../data-display/collapsible";
|
|
6
|
-
import { Popover, PopoverContent, PopoverTrigger } from "../data-display/popover";
|
|
7
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "../feedback/tooltip";
|
|
8
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
9
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../data-display/collapsible.js";
|
|
6
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../data-display/popover.js";
|
|
7
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../feedback/tooltip.js";
|
|
8
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
9
|
+
import { cn } from "../../lib/utils.js";
|
|
10
10
|
function SidebarHeader({ children, className, ...props }) {
|
|
11
11
|
return /* @__PURE__ */ jsx("div", { className: cn("sb-brand", className), ...props, children });
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TopbarProp } from "../../props/components/layout.prop";
|
|
2
|
-
export type { TopbarProp, TopbarProp as TopbarProps } from "../../props/components/layout.prop";
|
|
1
|
+
import type { TopbarProp } from "../../props/components/layout.prop.js";
|
|
2
|
+
export type { TopbarProp, TopbarProp as TopbarProps } from "../../props/components/layout.prop.js";
|
|
3
3
|
/**
|
|
4
4
|
* Topbar — a PURE SLOT bar. It positions three clusters (`start` / `center` / `end`) and owns the
|
|
5
5
|
* bar's flex layout; it does NOT bake any chrome. There is no built-in product switcher, search
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../lib/utils";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
3
|
function Topbar({ start, center, end, className, children, ...props }) {
|
|
4
4
|
return /* @__PURE__ */ jsx("div", { "data-slot": "topbar", className: cn("ui-topbar", className), ...props, children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5
5
|
start != null ? /* @__PURE__ */ jsx("div", { "data-slot": "topbar-start", className: "ui-topbar-start", children: start }) : null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { AppSettingPickerProp } from "../../props/components/app.prop";
|
|
3
|
-
export type { AppSettingKind, AppSettingPickerProp, AppSettingPickerProp as AppSettingPickerProps, } from "../../props/components/app.prop";
|
|
2
|
+
import type { AppSettingPickerProp } from "../../props/components/app.prop.js";
|
|
3
|
+
export type { AppSettingKind, AppSettingPickerProp, AppSettingPickerProp as AppSettingPickerProps, } from "../../props/components/app.prop.js";
|
|
4
4
|
/**
|
|
5
5
|
* One provider-bound Select for any single AppProvider setting — locale / timezone /
|
|
6
6
|
* date-format / time-format and the four theme axes (theme / brand / density / fontSize).
|
|
@@ -11,26 +11,26 @@ import {
|
|
|
11
11
|
SunMoon,
|
|
12
12
|
Type
|
|
13
13
|
} from "lucide-react";
|
|
14
|
-
import { APP_DATE_FORMAT_OPTIONS, getDateFormatLabel } from "../../app/date-format-labels";
|
|
15
|
-
import { APP_TIME_FORMAT_OPTIONS, getTimeFormatLabel } from "../../app/time-format-labels";
|
|
16
|
-
import { getTimezoneLabel, resolveTimezonePickerOptions } from "../../app/timezones";
|
|
17
|
-
import { APP_LOCALES } from "../../app/types";
|
|
14
|
+
import { APP_DATE_FORMAT_OPTIONS, getDateFormatLabel } from "../../app/date-format-labels.js";
|
|
15
|
+
import { APP_TIME_FORMAT_OPTIONS, getTimeFormatLabel } from "../../app/time-format-labels.js";
|
|
16
|
+
import { getTimezoneLabel, resolveTimezonePickerOptions } from "../../app/timezones.js";
|
|
17
|
+
import { APP_LOCALES } from "../../app/types.js";
|
|
18
18
|
import {
|
|
19
19
|
APP_BRANDS,
|
|
20
20
|
APP_DENSITIES,
|
|
21
21
|
APP_FONT_SIZES,
|
|
22
22
|
APP_THEMES
|
|
23
|
-
} from "../../app/theme-axes";
|
|
24
|
-
import { useOptionalAppContext } from "../../app/app-provider";
|
|
25
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
26
|
-
import { cn } from "../../lib/utils";
|
|
23
|
+
} from "../../app/theme-axes.js";
|
|
24
|
+
import { useOptionalAppContext } from "../../app/app-provider.js";
|
|
25
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
26
|
+
import { cn } from "../../lib/utils.js";
|
|
27
27
|
import {
|
|
28
28
|
Select,
|
|
29
29
|
SelectContent,
|
|
30
30
|
SelectItem,
|
|
31
31
|
SelectTrigger,
|
|
32
32
|
SelectValue
|
|
33
|
-
} from "../data-entry/select";
|
|
33
|
+
} from "../data-entry/select.js";
|
|
34
34
|
const ICON = {
|
|
35
35
|
locale: Languages,
|
|
36
36
|
timezone: Globe,
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
5
5
|
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
const ContextMenu = ContextMenuPrimitive.Root;
|
|
8
8
|
function ContextMenuTrigger(props) {
|
|
9
9
|
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
5
5
|
import { Check, ChevronRight } from "lucide-react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function DropdownMenu(props) {
|
|
8
8
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ToolbarGroupProp, ToolbarProp } from "../../props/components/navigation.prop";
|
|
2
|
-
export type { ToolbarGroupProp, ToolbarGroupProp as ToolbarGroupProps, ToolbarProp, ToolbarProp as ToolbarProps, } from "../../props/components/navigation.prop";
|
|
1
|
+
import type { ToolbarGroupProp, ToolbarProp } from "../../props/components/navigation.prop.js";
|
|
2
|
+
export type { ToolbarGroupProp, ToolbarGroupProp as ToolbarGroupProps, ToolbarProp, ToolbarProp as ToolbarProps, } from "../../props/components/navigation.prop.js";
|
|
3
3
|
export declare function Toolbar({ onClear, hasActiveFilters, className, children }: ToolbarProp): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function ToolbarGroup({ label, className, children }: ToolbarGroupProp): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useId } from "react";
|
|
4
4
|
import { X } from "lucide-react";
|
|
5
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
6
|
-
import { Button } from "../general/button";
|
|
7
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
6
|
+
import { Button } from "../general/button.js";
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
8
|
function Toolbar({ onClear, hasActiveFilters = true, className, children }) {
|
|
9
9
|
const { t } = useTranslation();
|
|
10
10
|
return /* @__PURE__ */ jsxs(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs";
|
|
2
|
-
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "./context-menu";
|
|
3
|
-
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationEllipsis, PaginationPrevious, PaginationNext, } from "./pagination";
|
|
4
|
-
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "./menubar";
|
|
5
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, } from "./navigation-menu";
|
|
6
|
-
export { Steps } from "./steps";
|
|
7
|
-
export { Toolbar, ToolbarGroup } from "./filter-bar";
|
|
8
|
-
export type { ToolbarGroupProps, ToolbarProps } from "./filter-bar";
|
|
9
|
-
export { AppSettingPicker } from "./app-setting-picker";
|
|
10
|
-
export type { AppSettingPickerProp, AppSettingPickerProps, AppSettingKind, } from "./app-setting-picker";
|
|
11
|
-
export type { BreadcrumbItemProp as BreadcrumbItem } from "../../props/vocabulary/navigation.prop";
|
|
12
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "./dropdown-menu";
|
|
1
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs.js";
|
|
2
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "./context-menu.js";
|
|
3
|
+
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationEllipsis, PaginationPrevious, PaginationNext, } from "./pagination.js";
|
|
4
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "./menubar.js";
|
|
5
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, } from "./navigation-menu.js";
|
|
6
|
+
export { Steps } from "./steps.js";
|
|
7
|
+
export { Toolbar, ToolbarGroup } from "./filter-bar.js";
|
|
8
|
+
export type { ToolbarGroupProps, ToolbarProps } from "./filter-bar.js";
|
|
9
|
+
export { AppSettingPicker } from "./app-setting-picker.js";
|
|
10
|
+
export type { AppSettingPickerProp, AppSettingPickerProps, AppSettingKind, } from "./app-setting-picker.js";
|
|
11
|
+
export type { BreadcrumbItemProp as BreadcrumbItem } from "../../props/vocabulary/navigation.prop.js";
|
|
12
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "./dropdown-menu.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs";
|
|
1
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs.js";
|
|
2
2
|
import {
|
|
3
3
|
ContextMenu,
|
|
4
4
|
ContextMenuCheckboxItem,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
ContextMenuSubContent,
|
|
15
15
|
ContextMenuSubTrigger,
|
|
16
16
|
ContextMenuTrigger
|
|
17
|
-
} from "./context-menu";
|
|
17
|
+
} from "./context-menu.js";
|
|
18
18
|
import {
|
|
19
19
|
Pagination,
|
|
20
20
|
PaginationContent,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
PaginationEllipsis,
|
|
24
24
|
PaginationPrevious,
|
|
25
25
|
PaginationNext
|
|
26
|
-
} from "./pagination";
|
|
26
|
+
} from "./pagination.js";
|
|
27
27
|
import {
|
|
28
28
|
Menubar,
|
|
29
29
|
MenubarCheckboxItem,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
MenubarSubContent,
|
|
40
40
|
MenubarSubTrigger,
|
|
41
41
|
MenubarTrigger
|
|
42
|
-
} from "./menubar";
|
|
42
|
+
} from "./menubar.js";
|
|
43
43
|
import {
|
|
44
44
|
NavigationMenu,
|
|
45
45
|
NavigationMenuContent,
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
NavigationMenuList,
|
|
50
50
|
NavigationMenuTrigger,
|
|
51
51
|
NavigationMenuViewport
|
|
52
|
-
} from "./navigation-menu";
|
|
53
|
-
import { Steps } from "./steps";
|
|
54
|
-
import { Toolbar, ToolbarGroup } from "./filter-bar";
|
|
55
|
-
import { AppSettingPicker } from "./app-setting-picker";
|
|
52
|
+
} from "./navigation-menu.js";
|
|
53
|
+
import { Steps } from "./steps.js";
|
|
54
|
+
import { Toolbar, ToolbarGroup } from "./filter-bar.js";
|
|
55
|
+
import { AppSettingPicker } from "./app-setting-picker.js";
|
|
56
56
|
import {
|
|
57
57
|
DropdownMenu,
|
|
58
58
|
DropdownMenuCheckboxItem,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
DropdownMenuSubContent,
|
|
70
70
|
DropdownMenuSubTrigger,
|
|
71
71
|
DropdownMenuTrigger
|
|
72
|
-
} from "./dropdown-menu";
|
|
72
|
+
} from "./dropdown-menu.js";
|
|
73
73
|
export {
|
|
74
74
|
AppSettingPicker,
|
|
75
75
|
ContextMenu,
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
5
5
|
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
const Menubar = MenubarPrimitive.Root;
|
|
8
8
|
const MenubarMenu = MenubarPrimitive.Menu;
|
|
9
9
|
function MenubarTrigger(props) {
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
5
5
|
import { ChevronDown } from "lucide-react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
const NavigationMenu = NavigationMenuPrimitive.Root;
|
|
8
8
|
const NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9
9
|
NavigationMenuPrimitive.List,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { PaginationProp } from "../../props/components/navigation.prop";
|
|
3
|
-
export type { PaginationProp, PaginationProp as PaginationProps, } from "../../props/components/navigation.prop";
|
|
2
|
+
import type { PaginationProp } from "../../props/components/navigation.prop.js";
|
|
3
|
+
export type { PaginationProp, PaginationProp as PaginationProps, } from "../../props/components/navigation.prop.js";
|
|
4
4
|
declare const PaginationContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
|
|
5
5
|
declare const PaginationItem: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
6
6
|
declare const PaginationLink: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "type"> & {
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
5
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
7
|
-
import { Button } from "../general/button";
|
|
5
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
|
+
import { Button } from "../general/button.js";
|
|
8
8
|
import {
|
|
9
9
|
Select,
|
|
10
10
|
SelectContent,
|
|
11
11
|
SelectItem,
|
|
12
12
|
SelectTrigger,
|
|
13
13
|
SelectValue
|
|
14
|
-
} from "../data-entry/select";
|
|
15
|
-
import { buildPageRange } from "./pagination-utils";
|
|
14
|
+
} from "../data-entry/select.js";
|
|
15
|
+
import { buildPageRange } from "./pagination-utils.js";
|
|
16
16
|
const PaginationContent = React.forwardRef(({ className, ...props }, ref) => {
|
|
17
17
|
return /* @__PURE__ */ jsx("ul", { ref, className: cn("ui-pagination-list", className), role: "list", ...props });
|
|
18
18
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { StepsProp } from "../../props/components/navigation.prop";
|
|
2
|
-
export type { StepsProp, StepsProp as StepsProps, StepItemProp, StepStatusProp, } from "../../props/components/navigation.prop";
|
|
1
|
+
import type { StepsProp } from "../../props/components/navigation.prop.js";
|
|
2
|
+
export type { StepsProp, StepsProp as StepsProps, StepItemProp, StepStatusProp, } from "../../props/components/navigation.prop.js";
|
|
3
3
|
export declare function Steps({ items, value: current, defaultValue, status: currentStatus, orientation, type, size, titlePlacement, onValueChange, className, }: StepsProp): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Check, Circle, Loader2, X } from "lucide-react";
|
|
4
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { controlIconClass } from "../../lib/control-styles";
|
|
4
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { controlIconClass } from "../../lib/control-styles.js";
|
|
7
7
|
function resolveStepStatus(index, current, itemStatus, currentStatus) {
|
|
8
8
|
if (itemStatus) return itemStatus;
|
|
9
9
|
if (index < current) return "finish";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function Tabs({
|
|
7
7
|
className,
|
|
8
8
|
orientation = "horizontal",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DataStateProp } from "../../props/components/query.prop";
|
|
2
|
-
export type { DataStateProp, DataStateProp as DataStateProps, } from "../../props/components/query.prop";
|
|
1
|
+
import type { DataStateProp } from "../../props/components/query.prop.js";
|
|
2
|
+
export type { DataStateProp, DataStateProp as DataStateProps, } from "../../props/components/query.prop.js";
|
|
3
3
|
/**
|
|
4
4
|
* Query lifecycle widget — orchestrates skeleton / error / empty / success for one `useQuery` block.
|
|
5
5
|
* Not a visual component; prefer `@godxjp/ui/query`. Apps may also import via `@godxjp/ui/admin`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { AlertQueryError } from "../feedback/alert";
|
|
4
|
+
import { AlertQueryError } from "../feedback/alert.js";
|
|
5
5
|
function defaultIsEmpty(data) {
|
|
6
6
|
if (!data) return true;
|
|
7
7
|
if (Array.isArray(data)) return data.length === 0;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { DataState } from "./data-state";
|
|
2
|
-
export type { DataStateProp, DataStateProps } from "./data-state";
|
|
3
|
-
export { AlertMutationFeedback } from "./mutation-feedback";
|
|
4
|
-
export type { AlertMutationFeedbackProp, AlertMutationFeedbackProps } from "./mutation-feedback";
|
|
5
|
-
export { ButtonRefetch } from "./query-refetch-button";
|
|
6
|
-
export type { ButtonRefetchProp, ButtonRefetchProps } from "./query-refetch-button";
|
|
7
|
-
export { InfiniteQueryState, flattenItemPages } from "./infinite-query-state";
|
|
8
|
-
export type { InfiniteQueryStateProp, InfiniteQueryStateProps } from "./infinite-query-state";
|
|
9
|
-
export { PrefetchLink } from "./prefetch-link";
|
|
10
|
-
export type { PrefetchLinkProp, PrefetchLinkProps } from "./prefetch-link";
|
|
1
|
+
export { DataState } from "./data-state.js";
|
|
2
|
+
export type { DataStateProp, DataStateProps } from "./data-state.js";
|
|
3
|
+
export { AlertMutationFeedback } from "./mutation-feedback.js";
|
|
4
|
+
export type { AlertMutationFeedbackProp, AlertMutationFeedbackProps } from "./mutation-feedback.js";
|
|
5
|
+
export { ButtonRefetch } from "./query-refetch-button.js";
|
|
6
|
+
export type { ButtonRefetchProp, ButtonRefetchProps } from "./query-refetch-button.js";
|
|
7
|
+
export { InfiniteQueryState, flattenItemPages } from "./infinite-query-state.js";
|
|
8
|
+
export type { InfiniteQueryStateProp, InfiniteQueryStateProps } from "./infinite-query-state.js";
|
|
9
|
+
export { PrefetchLink } from "./prefetch-link.js";
|
|
10
|
+
export type { PrefetchLinkProp, PrefetchLinkProps } from "./prefetch-link.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DataState } from "./data-state";
|
|
2
|
-
import { AlertMutationFeedback } from "./mutation-feedback";
|
|
3
|
-
import { ButtonRefetch } from "./query-refetch-button";
|
|
4
|
-
import { InfiniteQueryState, flattenItemPages } from "./infinite-query-state";
|
|
5
|
-
import { PrefetchLink } from "./prefetch-link";
|
|
1
|
+
import { DataState } from "./data-state.js";
|
|
2
|
+
import { AlertMutationFeedback } from "./mutation-feedback.js";
|
|
3
|
+
import { ButtonRefetch } from "./query-refetch-button.js";
|
|
4
|
+
import { InfiniteQueryState, flattenItemPages } from "./infinite-query-state.js";
|
|
5
|
+
import { PrefetchLink } from "./prefetch-link.js";
|
|
6
6
|
export {
|
|
7
7
|
AlertMutationFeedback,
|
|
8
8
|
ButtonRefetch,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InfiniteQueryStateProp } from "../../props/components/query.prop";
|
|
2
|
-
export type { InfiniteQueryStateProp, InfiniteQueryStateProp as InfiniteQueryStateProps, } from "../../props/components/query.prop";
|
|
1
|
+
import type { InfiniteQueryStateProp } from "../../props/components/query.prop.js";
|
|
2
|
+
export type { InfiniteQueryStateProp, InfiniteQueryStateProp as InfiniteQueryStateProps, } from "../../props/components/query.prop.js";
|
|
3
3
|
/** Flatten `{ pages: [{ items }] }` — default GODX paginated API shape. */
|
|
4
4
|
export declare function flattenItemPages<TItem, TPage extends {
|
|
5
5
|
items: TItem[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { AlertQueryError } from "../feedback/alert";
|
|
5
|
-
import { Button } from "../general/button";
|
|
6
|
-
import { useTranslation } from "../../i18n/use-translation";
|
|
4
|
+
import { AlertQueryError } from "../feedback/alert.js";
|
|
5
|
+
import { Button } from "../general/button.js";
|
|
6
|
+
import { useTranslation } from "../../i18n/use-translation.js";
|
|
7
7
|
function flattenItemPages(data) {
|
|
8
8
|
if (!data) return [];
|
|
9
9
|
return data.pages.flatMap((page) => page.items);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AlertMutationFeedbackProp } from "../../props/components/query.prop";
|
|
2
|
-
export type { AlertMutationFeedbackProp, AlertMutationFeedbackProp as AlertMutationFeedbackProps, } from "../../props/components/query.prop";
|
|
1
|
+
import type { AlertMutationFeedbackProp } from "../../props/components/query.prop.js";
|
|
2
|
+
export type { AlertMutationFeedbackProp, AlertMutationFeedbackProp as AlertMutationFeedbackProps, } from "../../props/components/query.prop.js";
|
|
3
3
|
/**
|
|
4
4
|
* Inline mutation error — renders nothing when idle/success.
|
|
5
5
|
* Prefer toast for transient saves; use this for blocking form sections (SimulatorPage).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PrefetchLinkProp } from "../../props/components/query.prop";
|
|
2
|
-
export type { PrefetchLinkProp, PrefetchLinkProp as PrefetchLinkProps, } from "../../props/components/query.prop";
|
|
1
|
+
import type { PrefetchLinkProp } from "../../props/components/query.prop.js";
|
|
2
|
+
export type { PrefetchLinkProp, PrefetchLinkProp as PrefetchLinkProps, } from "../../props/components/query.prop.js";
|
|
3
3
|
/**
|
|
4
4
|
* React Router `Link` + `queryClient.prefetchQuery` on hover/focus.
|
|
5
5
|
* Detail routes feel instant when list rows are hovered.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ButtonRefetchProp } from "../../props/components/query.prop";
|
|
2
|
-
export type { ButtonRefetchProp, ButtonRefetchProp as ButtonRefetchProps, } from "../../props/components/query.prop";
|
|
1
|
+
import type { ButtonRefetchProp } from "../../props/components/query.prop.js";
|
|
2
|
+
export type { ButtonRefetchProp, ButtonRefetchProp as ButtonRefetchProps, } from "../../props/components/query.prop.js";
|
|
3
3
|
/** Page-header Refresh — spins while `query.isFetching`, calls `query.refetch()`. */
|
|
4
4
|
export declare function ButtonRefetch({ query, label, children, variant, size, className, ...props }: ButtonRefetchProp): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
5
5
|
import { ChevronDown } from "lucide-react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
const Accordion = AccordionPrimitive.Root;
|
|
8
8
|
const AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9
9
|
AccordionPrimitive.Item,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../feedback/dialog";
|
|
1
|
+
export * from "../feedback/dialog.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export * from "../feedback/dialog";
|
|
2
|
+
export * from "../feedback/dialog.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../feedback/alert";
|
|
1
|
+
export * from "../feedback/alert.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export * from "../feedback/alert";
|
|
2
|
+
export * from "../feedback/alert.js";
|