@ostack.tech/ui 1.3.0-beta.0 → 1.3.0-beta.1
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/chunks/{en-DGLb7rrz.js → en-W4OWqPrv.js} +3 -4
- package/dist/chunks/en-W4OWqPrv.js.map +1 -0
- package/dist/chunks/{platformUtils-dLFQaWJG.js → platformUtils-Dm2Fkhni.js} +2 -3
- package/dist/chunks/{platformUtils-dLFQaWJG.js.map → platformUtils-Dm2Fkhni.js.map} +1 -1
- package/dist/locales/en-GB.js +2 -3
- package/dist/locales/en-GB.js.map +1 -1
- package/dist/locales/en-US.js +2 -3
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/fr-FR.js +2 -3
- package/dist/locales/fr-FR.js.map +1 -1
- package/dist/locales/pt-PT.js +2 -3
- package/dist/locales/pt-PT.js.map +1 -1
- package/dist/ostack-ui.css +84 -24
- package/dist/ostack-ui.js +2020 -2290
- package/dist/ostack-ui.js.map +1 -1
- package/package.json +6 -6
- package/scss/components/DropdownMenu/_DropdownMenu.scss +8 -2
- package/scss/components/Grid/_Grid.scss +6 -0
- package/scss/components/Stack/_Stack.scss +2 -2
- package/scss/scss/placeholders/popover/_popover.scss +2 -2
- package/types/components/Calendar/Calendar.d.ts +1 -1
- package/types/components/Calendar/CalendarContext.d.ts +1 -0
- package/types/components/DataTable/DataTableBody.d.ts +2 -3
- package/types/components/DataTable/ScrolledDataTableRows.d.ts +2 -2
- package/types/components/DataTable/useVirtualizerSnapshot.d.ts +13 -0
- package/types/components/DropdownMenu/DropdownMenuContent.d.ts +3 -2
- package/types/components/Grid/Grid.d.ts +8 -1
- package/types/components/Slot/Slot.d.ts +1 -1
- package/types/components/Stack/Stack.d.ts +6 -2
- package/types/index.d.ts +8 -7
- package/types/utils/localeUtils.d.ts +8 -0
- package/dist/chunks/en-DGLb7rrz.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ostack.tech/ui",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.1",
|
|
4
4
|
"description": "ostack/UI component library.",
|
|
5
5
|
"homepage": "https://ui.ostack.tech/",
|
|
6
6
|
"author": {
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"test": "vitest --run"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@daypicker/react": "^10.0.
|
|
51
|
+
"@daypicker/react": "^10.0.2",
|
|
52
52
|
"@fortawesome/react-fontawesome": "^3.5.0",
|
|
53
|
-
"@tanstack/react-virtual": "^3.14.
|
|
53
|
+
"@tanstack/react-virtual": "^3.14.26",
|
|
54
54
|
"esm-env": "^1.2.2",
|
|
55
55
|
"from-exponential": "^1.1.1",
|
|
56
|
-
"radix-ui": "^1.
|
|
57
|
-
"react-error-boundary": "^6.1.
|
|
56
|
+
"radix-ui": "^1.8.1",
|
|
57
|
+
"react-error-boundary": "^6.1.6",
|
|
58
58
|
"react-number-format": "^5.4.5",
|
|
59
59
|
"react-to-print": "^3.3.0",
|
|
60
|
-
"tinykeys": "^4.0.
|
|
60
|
+
"tinykeys": "^4.0.1"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@fortawesome/fontawesome-svg-core": "^6.2.0 || ^7.0.0",
|
|
@@ -10,8 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
@extend %#{$prefix}popover;
|
|
12
12
|
|
|
13
|
-
max-width:
|
|
14
|
-
|
|
13
|
+
max-width: min(
|
|
14
|
+
var(--#{$prefix}max-w, 100dvw),
|
|
15
|
+
var(--radix-dropdown-menu-content-available-width)
|
|
16
|
+
);
|
|
17
|
+
max-height: min(
|
|
18
|
+
var(--#{$prefix}max-h, 100dvh),
|
|
19
|
+
var(--radix-dropdown-menu-content-available-height)
|
|
20
|
+
);
|
|
15
21
|
|
|
16
22
|
&__arrow {
|
|
17
23
|
@extend %#{$prefix}popover__arrow;
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
// Grid container
|
|
17
17
|
&__container {
|
|
18
18
|
display: flex;
|
|
19
|
+
align-items: var(--#{$prefix}grid-align-items);
|
|
20
|
+
justify-content: var(--#{$prefix}grid-justify-content);
|
|
21
|
+
align-content: var(--#{$prefix}grid-align-content);
|
|
19
22
|
flex-wrap: wrap;
|
|
20
23
|
margin-top: calc(var(--#{$prefix}mt, 0px) + var(--#{$prefix}grid-row-gap) * -1);
|
|
21
24
|
margin-left: calc(var(--#{$prefix}ml, 0px) + var(--#{$prefix}grid-column-gap) / -2);
|
|
@@ -26,6 +29,9 @@
|
|
|
26
29
|
(
|
|
27
30
|
row-gap: $default-row-gap,
|
|
28
31
|
column-gap: $default-column-gap,
|
|
32
|
+
align-items: null,
|
|
33
|
+
justify-content: null,
|
|
34
|
+
align-content: null,
|
|
29
35
|
)
|
|
30
36
|
);
|
|
31
37
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
.#{$prefix}stack {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: var(--#{$prefix}stack-direction);
|
|
9
|
-
justify-content: var(--#{$prefix}stack-justify-content);
|
|
10
9
|
align-items: var(--#{$prefix}stack-align-items);
|
|
10
|
+
justify-content: var(--#{$prefix}stack-justify-content);
|
|
11
11
|
align-content: var(--#{$prefix}stack-align-content);
|
|
12
12
|
flex-wrap: var(--#{$prefix}stack-wrap);
|
|
13
13
|
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
child-mr: 0px,
|
|
22
22
|
child-mb: 0px,
|
|
23
23
|
child-ml: 0px,
|
|
24
|
-
justify-content: null,
|
|
25
24
|
align-items: null,
|
|
25
|
+
justify-content: null,
|
|
26
26
|
align-content: null,
|
|
27
27
|
wrap: null,
|
|
28
28
|
)
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
%#{$prefix}popover {
|
|
8
8
|
$popover: &;
|
|
9
9
|
|
|
10
|
-
max-width: var(--#{$prefix}max-w, var(--radix-popover-content-available-width));
|
|
11
|
-
max-height: var(--#{$prefix}max-h, var(--radix-popover-content-available-height));
|
|
10
|
+
max-width: min(var(--#{$prefix}max-w, 100dvw), var(--radix-popover-content-available-width));
|
|
11
|
+
max-height: min(var(--#{$prefix}max-h, 100dvh), var(--radix-popover-content-available-height));
|
|
12
12
|
|
|
13
13
|
border: $popover-border-width solid $popover-border-color;
|
|
14
14
|
border-radius: $popover-border-radius;
|
|
@@ -115,4 +115,4 @@ export interface CalendarRangeSelectionProps extends CalendarPropsBase<DateRange
|
|
|
115
115
|
* }
|
|
116
116
|
* ```
|
|
117
117
|
*/
|
|
118
|
-
export declare function Calendar({ selectionMode, defaultValue, value: controlledValue, onValueChange, required, minDate, maxDate, minMonth, maxMonth, minYear, maxYear, monthSelectLabel: monthSelectLabelProp, yearSelectLabel: yearSelectLabelProp, previousMonthLabel: previousMonthLabelProp, nextMonthLabel: nextMonthLabelProp, defaultMonth, month: controlledMonth, onMonthChange, onDayClick, onDayFocus, onDayMouseEnter, numberOfMonths, fixedWeeks, showOutsideDays, disableNavigation, disabled, modifiers, apiRef, headerProps, headerLabelProps, previousButtonProps, nextButtonProps, monthSelectProps, yearSelectProps, pagedNavigation, style, ...otherProps }: CalendarProps): import("react").JSX.Element;
|
|
118
|
+
export declare function Calendar({ selectionMode, defaultValue, value: controlledValue, onValueChange, required, minDate, maxDate, minMonth, maxMonth, minYear, maxYear, monthSelectLabel: monthSelectLabelProp, yearSelectLabel: yearSelectLabelProp, previousMonthLabel: previousMonthLabelProp, nextMonthLabel: nextMonthLabelProp, defaultMonth, month: controlledMonth, onMonthChange, onDayClick, onDayFocus, onDayMouseEnter, numberOfMonths, fixedWeeks, showOutsideDays, disableNavigation, disabled, modifiers, today, apiRef, headerProps, headerLabelProps, previousButtonProps, nextButtonProps, monthSelectProps, yearSelectProps, pagedNavigation, style, ...otherProps }: CalendarProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CalendarProps } from "./Calendar.tsx";
|
|
2
2
|
/** Value of the calendar context. */
|
|
3
3
|
export interface CalendarContextValue {
|
|
4
|
+
curDate: Date;
|
|
4
5
|
minAllowedDate: Date | undefined;
|
|
5
6
|
maxAllowedDate: Date | undefined;
|
|
6
7
|
monthSelectLabel: CalendarProps["monthSelectLabel"];
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { RefObject } from "react";
|
|
2
1
|
import { type TableBodyProps } from "../Table";
|
|
3
2
|
import type { DataTableContentProps } from "./DataTableContent.tsx";
|
|
4
3
|
/** Properties of the data table foot component. */
|
|
5
4
|
export interface DataTableBodyProps extends TableBodyProps, Pick<DataTableContentProps, "emptyMessage" | "emptyMessageProps"> {
|
|
6
|
-
|
|
5
|
+
scrollableEl: HTMLDivElement | null;
|
|
7
6
|
}
|
|
8
7
|
/** Body of the data table. */
|
|
9
|
-
export declare function DataTableBody({ emptyMessage, emptyMessageProps,
|
|
8
|
+
export declare function DataTableBody({ emptyMessage, emptyMessageProps, scrollableEl, ...otherProps }: DataTableBodyProps): import("react").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DataTableBodyProps } from "./DataTableBody.tsx";
|
|
2
2
|
/** Properties of the scrolled data table body component. */
|
|
3
|
-
interface ScrolledDataTableRowsProps extends Pick<DataTableBodyProps, "
|
|
3
|
+
interface ScrolledDataTableRowsProps extends Pick<DataTableBodyProps, "scrollableEl"> {
|
|
4
4
|
}
|
|
5
5
|
/** Body of the data table in "scrolled" display mode. */
|
|
6
|
-
export declare function ScrolledDataTableRows({
|
|
6
|
+
export declare function ScrolledDataTableRows({ scrollableEl }: ScrolledDataTableRowsProps): import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
2
|
+
/**
|
|
3
|
+
* Wraps `useVirtualizer`, exposing render-relevant state as immutable values so that consumers can
|
|
4
|
+
* be safely optimized by React Compiler. The `virtualizer` instance itself must only be used
|
|
5
|
+
* imperatively (effects, callbacks, refs).
|
|
6
|
+
*/
|
|
7
|
+
export declare function useVirtualizerSnapshot<TScroll extends Element, TItem extends Element>(options: Parameters<typeof useVirtualizer<TScroll, TItem>>[0]): {
|
|
8
|
+
virtualizer: import("@tanstack/react-virtual").ReactVirtualizer<TScroll, TItem>;
|
|
9
|
+
virtualItems: import("@tanstack/virtual-core").VirtualItem[];
|
|
10
|
+
totalSize: number;
|
|
11
|
+
startIndex: number;
|
|
12
|
+
endIndex: number;
|
|
13
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
2
|
import type { ComponentProps } from "react";
|
|
3
|
+
import { type UseSizingPropsOptions } from "../../utils/useSizingProps.ts";
|
|
3
4
|
import { type MenuListProps } from "../MenuList";
|
|
4
5
|
/** Properties of the dropdown menu content component. */
|
|
5
|
-
export interface DropdownMenuContentProps extends Omit<ComponentProps<typeof DropdownMenuPrimitive.Content>, "asChild">, Pick<MenuListProps, "variant" | "iconPlacement"> {
|
|
6
|
+
export interface DropdownMenuContentProps extends UseSizingPropsOptions, Omit<ComponentProps<typeof DropdownMenuPrimitive.Content>, "asChild">, Pick<MenuListProps, "variant" | "iconPlacement"> {
|
|
6
7
|
/**
|
|
7
8
|
* Whether to show an arrow pointing to the anchor.
|
|
8
9
|
*
|
|
@@ -17,4 +18,4 @@ export interface DropdownMenuContentProps extends Omit<ComponentProps<typeof Dro
|
|
|
17
18
|
menuListProps?: Omit<MenuListProps, "variant" | "iconPlacement" | "asChild">;
|
|
18
19
|
}
|
|
19
20
|
/** The component that pops out when the dropdown menu is open. */
|
|
20
|
-
export declare function DropdownMenuContent({ variant, iconPlacement, showArrow, sideOffset, collisionPadding, forceMount, className, portalProps, arrowProps, menuListProps, children, ...otherProps }: DropdownMenuContentProps): import("react").JSX.Element;
|
|
21
|
+
export declare function DropdownMenuContent({ variant, iconPlacement, showArrow, sideOffset, collisionPadding, forceMount, className, style, portalProps, arrowProps, menuListProps, children, ...otherProps }: DropdownMenuContentProps): import("react").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
1
2
|
import { type Responsive } from "../../utils/responsiveValues.ts";
|
|
2
3
|
import { type BoxProps } from "../Box";
|
|
3
4
|
/** Size of a column. */
|
|
@@ -53,6 +54,12 @@ export interface GridPropsBase extends BoxProps {
|
|
|
53
54
|
* @default gap
|
|
54
55
|
*/
|
|
55
56
|
columnGap?: Responsive<number | string>;
|
|
57
|
+
/** Sets the `align-items` CSS property. */
|
|
58
|
+
alignItems?: Responsive<CSSProperties["alignItems"]>;
|
|
59
|
+
/** Sets the `justify-content` CSS property. */
|
|
60
|
+
justifyContent?: Responsive<CSSProperties["justifyContent"]>;
|
|
61
|
+
/** Sets the `align-content` CSS property. */
|
|
62
|
+
alignContent?: Responsive<CSSProperties["alignContent"]>;
|
|
56
63
|
/** Column size (number of columns) at the `xs` breakpoint. */
|
|
57
64
|
xs?: GridColumnSize;
|
|
58
65
|
/** Offset size (number of columns) at the `xs` breakpoint. */
|
|
@@ -135,4 +142,4 @@ export interface GridItemProps extends GridPropsBase {
|
|
|
135
142
|
* }
|
|
136
143
|
* ```
|
|
137
144
|
*/
|
|
138
|
-
export declare function Grid({ container, columns, gap, rowGap, columnGap, xs, sm, md, lg, xl, xxl, xsOffset, smOffset, mdOffset, lgOffset, xlOffset, xxlOffset, className, style, ...otherProps }: GridProps): import("react").JSX.Element;
|
|
145
|
+
export declare function Grid({ container, columns, gap, rowGap, columnGap, xs, sm, md, lg, xl, xxl, xsOffset, smOffset, mdOffset, lgOffset, xlOffset, xxlOffset, alignItems, justifyContent, alignContent, className, style, ...otherProps }: GridProps): import("react").JSX.Element;
|
|
@@ -9,5 +9,5 @@ export interface SlotProps extends ComponentProps<typeof SlotPrimitive.Root> {
|
|
|
9
9
|
* Used to support components with an `asChild` property.
|
|
10
10
|
*/
|
|
11
11
|
export declare const Slot: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLElement> & {
|
|
12
|
-
children?: React.ReactNode;
|
|
12
|
+
children?: React.ReactNode | undefined;
|
|
13
13
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -21,9 +21,13 @@ export interface StackProps extends BoxProps {
|
|
|
21
21
|
gap?: Responsive<number | string>;
|
|
22
22
|
/** Adds a divider between elements. */
|
|
23
23
|
divider?: ReactElement;
|
|
24
|
-
|
|
24
|
+
/** Sets the `align-items` CSS property. */
|
|
25
25
|
alignItems?: Responsive<CSSProperties["alignItems"]>;
|
|
26
|
+
/** Sets the `justify-content` CSS property. */
|
|
27
|
+
justifyContent?: Responsive<CSSProperties["justifyContent"]>;
|
|
28
|
+
/** Sets the `align-content` CSS property. */
|
|
26
29
|
alignContent?: Responsive<CSSProperties["alignContent"]>;
|
|
30
|
+
/** Sets the `flex-wrap` property. A boolean value sets `"wrap"`/`"nowrap"` respectively. */
|
|
27
31
|
wrap?: Responsive<StackWrap>;
|
|
28
32
|
}
|
|
29
33
|
/**
|
|
@@ -52,4 +56,4 @@ export interface StackProps extends BoxProps {
|
|
|
52
56
|
* }
|
|
53
57
|
* ```
|
|
54
58
|
*/
|
|
55
|
-
export declare function Stack({ direction, gap, divider,
|
|
59
|
+
export declare function Stack({ direction, gap, divider, alignItems, justifyContent, alignContent, wrap, className, style, children, ...otherProps }: StackProps): import("react").JSX.Element;
|
package/types/index.d.ts
CHANGED
|
@@ -71,24 +71,22 @@ export * from "./providers/ToastManagerProvider";
|
|
|
71
71
|
export * from "./utils/boolDataAttr.ts";
|
|
72
72
|
export * from "./utils/breakpoints.ts";
|
|
73
73
|
export * from "./utils/combineAriaIds.ts";
|
|
74
|
-
export * from "./utils/useCombinedEventHandler.ts";
|
|
75
74
|
export * from "./utils/cx.ts";
|
|
76
75
|
export * from "./utils/filtering.ts";
|
|
77
76
|
export * from "./utils/keyboardShortcut.ts";
|
|
78
|
-
export * from "./utils/
|
|
77
|
+
export * from "./utils/localeUtils.ts";
|
|
79
78
|
export * from "./utils/nativeControls.ts";
|
|
80
79
|
export * from "./utils/navigate.ts";
|
|
81
80
|
export * from "./utils/numericStringUtils.ts";
|
|
82
|
-
export * from "./utils/usePaddingProps.ts";
|
|
83
81
|
export * from "./utils/parseChildren.ts";
|
|
84
82
|
export * from "./utils/parseDateStrict.ts";
|
|
85
83
|
export * from "./utils/polymorphicTypes.ts";
|
|
86
84
|
export * from "./utils/reactCompilerUtils.ts";
|
|
85
|
+
export * from "./utils/responsiveValues.ts";
|
|
87
86
|
export * from "./utils/setNativeProperty.ts";
|
|
88
|
-
export * from "./utils/useSizingProps.ts";
|
|
89
87
|
export * from "./utils/sorting.ts";
|
|
90
88
|
export * from "./utils/stringHash.ts";
|
|
91
|
-
export * from "./utils/
|
|
89
|
+
export * from "./utils/useCombinedEventHandler.ts";
|
|
92
90
|
export * from "./utils/useCombinedRef.ts";
|
|
93
91
|
export * from "./utils/useConstant.ts";
|
|
94
92
|
export * from "./utils/useControllableState.ts";
|
|
@@ -97,16 +95,19 @@ export * from "./utils/useDateTransformer.tsx";
|
|
|
97
95
|
export * from "./utils/useIntersectionObserver.ts";
|
|
98
96
|
export * from "./utils/useLatestRef.ts";
|
|
99
97
|
export * from "./utils/useLocation.ts";
|
|
98
|
+
export * from "./utils/useMarginProps.ts";
|
|
100
99
|
export * from "./utils/useMeasure.ts";
|
|
101
100
|
export * from "./utils/useMediaQuery.ts";
|
|
102
101
|
export * from "./utils/useNumericTransformer.tsx";
|
|
102
|
+
export * from "./utils/usePaddingProps.ts";
|
|
103
103
|
export * from "./utils/usePrevious.ts";
|
|
104
|
-
export * from "./utils/responsiveValues.ts";
|
|
105
104
|
export * from "./utils/useSafeLayoutEffect.ts";
|
|
106
|
-
export * from "./utils/useScrollbarSize.ts";
|
|
107
105
|
export * from "./utils/useScrollPosition.ts";
|
|
106
|
+
export * from "./utils/useScrollbarSize.ts";
|
|
108
107
|
export * from "./utils/useSearchParam.ts";
|
|
109
108
|
export * from "./utils/useSearchParams.ts";
|
|
109
|
+
export * from "./utils/useSizingProps.ts";
|
|
110
110
|
export * from "./utils/useSpacing.ts";
|
|
111
|
+
export * from "./utils/useTextProps.ts";
|
|
111
112
|
export * from "./utils/warnOnce.ts";
|
|
112
113
|
export * from "./utils/zustandUtils.ts";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the label for a given locale.
|
|
3
|
+
*
|
|
4
|
+
* If the list of available locales is provided as the second argument and there are multiple
|
|
5
|
+
* available locales sharing the provided locale's language, then the label will contain the
|
|
6
|
+
* provided locale's region for disambiguation.
|
|
7
|
+
*/
|
|
8
|
+
export declare function localeLabel<T extends string = string>(locale: T, availableLocales?: readonly T[]): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-DGLb7rrz.js","names":[],"sources":["../../src/locales/en.tsx"],"sourcesContent":["import type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { IS_APPLE } from \"../utils/platformUtils.ts\";\n\n/** `en` locale (partial). */\nexport const en: Omit<LocalizationObject, \"languageTag\" | \"dayPickerLocale\"> = {\n ActionSplit: {\n splitLabel: \"More options\",\n },\n ActionsSecondary: {\n label: \"More actions\",\n },\n AlertDialog: {\n okText: \"OK\",\n },\n Calendar: {\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n previousMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n },\n CloseButton: {\n label: \"Close\",\n },\n CollapsibleTrigger: {\n expandLabel: \"Show\",\n collapseLabel: \"Hide\",\n },\n CommandMenu: {\n searchPlaceholder: \"Search…\",\n listLabel: \"Suggestions\",\n loadingLabel: \"Loading…\",\n emptyMessage: \"No results found.\",\n },\n CommandMenuDialog: {\n title: \"Command palette\",\n description: \"Search for a command…\",\n },\n ConfirmDialog: {\n cancelText: \"Cancel\",\n },\n ControlCode: {\n visuallyHiddenPrefix: \"Field\",\n },\n DataTable: {\n selectAllRowsLabel: \"Select all\",\n selectRowLabel: \"Select\",\n },\n DataTableContent: {\n emptyMessage: \"Nothing to show.\",\n },\n DataTableFilter: {\n \"aria-label\": \"Search table\",\n placeholder: \"Search…\",\n },\n DataTablePagination: {\n \"aria-label\": \"Table pagination\",\n rowsRangeSelectLabel: (total) => `Visible rows out of ${total}`,\n rowsRange: (range, total) => (\n <>\n Rows {range} of {total}\n </>\n ),\n previousPageButtonLabel: \"Previous page\",\n nextPageButtonLabel: \"Next page\",\n },\n DataTableRowsPerPage: {\n label: \"Rows per page:\",\n },\n DateInput: {\n selectedDateDescription: (date) => `Selected date, ${date}`,\n calendarButtonLabel: \"Open calendar\",\n },\n DateRangeInput: {\n startInputLabel: \"Start date\",\n endInputLabel: \"End date\",\n selectedDateRangeDescription: ({ start, end }) =>\n `Selected date range, ${start || \"missing start date\"} to ${end || \"missing end date\"}`,\n },\n ErrorBoundary: {\n fallbackMessage: (\n <>\n Something went wrong.\n <br />\n Press the button on the right to try again. If the problem persists, please try again later.\n </>\n ),\n resetButtonLabel: \"Retry\",\n },\n Feedback: {\n visuallyHiddenPrefix: (type) =>\n type === \"error\" ? \"Error,\" : type === \"warning\" ? \"Warning,\" : null,\n },\n FeedbackPopover: {\n label: \"Show feedback\",\n },\n FieldGroupHeader: {\n visuallyHiddenCodePrefix: \"Section\",\n },\n Form: {\n submitErrorMessage: \"An error occurred during submission. Please try again later.\",\n nativeErrorMessages: {\n valueMissing: \"Required.\",\n badInput: \"Unrecognized format.\",\n typeMismatch: (el) => {\n const type = (el as HTMLInputElement).type;\n return type === \"email\" ? \"Invalid email.\" : \"Invalid URL.\";\n },\n patternMismatch: \"Invalid format.\",\n tooShort: (el) => {\n const minLength = (el as HTMLInputElement).minLength;\n return `Requires at least ${minLength} ${minLength === 1 ? \"character\" : \"characters\"}.`;\n },\n tooLong: (el) => {\n const maxLength = (el as HTMLInputElement).maxLength;\n return `Limited to at most ${maxLength} ${maxLength === 1 ? \"character\" : \"characters\"}.`;\n },\n rangeUnderflow: (el) => {\n const min = (el as HTMLInputElement).min;\n return `Below minimum of ${min}.`;\n },\n rangeOverflow: (el) => {\n const max = (el as HTMLInputElement).max;\n return `Above maximum of ${max}.`;\n },\n stepMismatch: \"Invalid value increment.\",\n },\n },\n Input: {\n loadingDescription: \"Loading…\",\n clearButtonLabel: \"Clear\",\n },\n Keybinds: {\n keybindsSeparatorLabel: \"or\",\n keyPressesSeparatorLabel: \"then\",\n keyLabels: {\n Meta: IS_APPLE ? undefined : \"Windows Key\",\n },\n },\n Label: {\n helperButtonLabel: \"Show help\",\n },\n NumericInput: {\n decimalSeparator: \".\",\n groupingStyle: \"thousand\",\n groupSeparator: \",\",\n },\n RadioGroup: {\n clearDescription: \"Press Backspace or Delete to clear.\",\n },\n Select: {\n placeholder: \"Select…\",\n clearDescription: \"Press Backspace or Delete to clear.\",\n searchLabel: \"Search options\",\n optionsLabel: \"Options\",\n valueTagCloseButtonLabel: \"Remove\",\n },\n Step: {\n stepNumberLabel: (number) => `Step ${number}`,\n completedLabel: \"Completed\",\n },\n StepperFinishTrigger: {\n label: \"Finish\",\n },\n StepperNextTrigger: {\n label: \"Next\",\n },\n StepperPreviousTrigger: {\n label: \"Back\",\n },\n TableColumn: {\n helperButtonLabel: \"Show help\",\n },\n TableHead: {\n sortByColumnDescription: (sortDirection) =>\n sortDirection === null\n ? \"Clear sort\"\n : `Sort ${sortDirection === \"asc\" ? \"ascending\" : \"descending\"}`,\n },\n TabList: {\n scrollLeftButtonLabel: \"Scroll left\",\n scrollRightButtonLabel: \"Scroll right\",\n },\n ToastProvider: {\n label: \"Notification\",\n },\n ToastViewport: {\n label: \"Notifications ({hotkey})\",\n },\n};\n"],"mappings":";;;;AAIA,IAAa,KAAkE;CAC7E,aAAa,EACX,YAAY,eACd;CACA,kBAAkB,EAChB,OAAO,eACT;CACA,aAAa,EACX,QAAQ,KACV;CACA,UAAU;EACR,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