@povio/ui 5.0.0-rc.3 → 5.0.0-rc.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/README.md +6 -2
- package/dist/{Breadcrumbs-CbKzAq1v.js → Breadcrumbs-FF8hMfXd.js} +1 -1
- package/dist/{Calendar-CVSQH-rC.js → Calendar-BTjajO6i.js} +6 -136
- package/dist/{Checkbox-BU0d702K.js → Checkbox-CV1ILXXO.js} +1 -1
- package/dist/{CheckboxCheckmark-usHsolNj.js → CheckboxCheckmark-CpC3wlMs.js} +1 -1
- package/dist/{ComponentGallery-DIFeJqGx.js → ComponentGallery-BWiPGUL8.js} +1343 -206
- package/dist/{DatePicker-D95gDPhg.js → DatePicker-DOLL7mkc.js} +12 -12
- package/dist/{DatePickerInput-CX6NYim4.js → DatePickerInput-BLBcySA2.js} +8 -7
- package/dist/{DateRangePicker-_uTQk_ae.js → DateRangePicker-BF-1CztH.js} +13 -185
- package/dist/{DateTimePicker-BB058Z34.js → DateTimePicker-Cj0qvJUz.js} +12 -12
- package/dist/{FileInput-C0-6bw4w.js → FileInput-Br5DQaGQ.js} +3 -2
- package/dist/{FileTrigger-CDXcQthK.js → FileTrigger-Cthk5_Wp.js} +1 -30
- package/dist/{FileUpload-DDpYMn8f.js → FileUpload--7ub3EZO.js} +3 -2
- package/dist/{FormField-U_-d4V_g.js → FormField-B99dLt8o.js} +1 -1
- package/dist/{FormFieldHeaderTooltip-DXbuu88v.js → FormFieldHeaderTooltip-BV2Ju4oB.js} +1 -1
- package/dist/{InlineTooltipWrapper-Bpmd--e7.js → InlineTooltipWrapper-BpApaGXV.js} +1 -1
- package/dist/{InputItem-D-KuiNSc.js → InputItem-CIxbTxZu.js} +10 -10
- package/dist/{Inputs-j3JmcLWR.js → Inputs-DJSKiaWY.js} +1 -1
- package/dist/NumberFormatter-CLDS_LRZ.js +265 -0
- package/dist/{NumberRangeInput-C-8U05wF.js → NumberRangeInput-B8-LHfg3.js} +6 -5
- package/dist/{RadioGroup-B7_pNwn9.js → RadioGroup-DOw3PRoX.js} +1 -1
- package/dist/{RichTextEditor-D9-B1Cze.js → RichTextEditor-D4yN7Wj7.js} +2 -2
- package/dist/{Select-CkujlTjm.js → Select-UR0ec2Ux.js} +2 -2
- package/dist/{Slider-BHPl0OPy.js → Slider-CzEmKYBF.js} +1 -1
- package/dist/{Table-BDNSuEWc.js → Table-piX1SWvN.js} +1 -1
- package/dist/{TextArea-DqHDiRGJ.js → TextArea-D8WkKsGn.js} +3 -3
- package/dist/{TimePicker-DQ6JCkGB.js → TimePicker-C4taAOFQ.js} +10 -9
- package/dist/{ToggleGroup-DX0VYXwP.js → ToggleGroup-DOk27fgI.js} +5 -66
- package/dist/{Tooltip-B9DKcYvr.js → Tooltip-CpG1nz7Y.js} +2 -2
- package/dist/{TooltipWrapper-DznDgVJB.js → TooltipWrapper-3jyN0Wss.js} +1 -1
- package/dist/components/autocomplete.js +2 -2
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/input.js +4 -4
- package/dist/components/number-field.js +7 -6
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination.js +32 -28
- package/dist/components/query-autocomplete.js +1 -1
- package/dist/components/query-select.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/config/ui-configurator-theme.js +1 -1
- package/dist/config/ui-configurator.js +1081 -257
- package/dist/config/ui-router.js +1 -1
- package/dist/{datePickerValue.utils-CUzkWie8.js → datePickerValue.utils-DCgoSrP3.js} +5 -5
- package/dist/hooks/use-filters.js +1 -1
- package/dist/index.js +15 -15
- package/dist/numberStatic.utils-BX50PSee.js +421 -0
- package/dist/rhf/checkbox.js +1 -1
- package/dist/rhf/date-picker.js +1 -1
- package/dist/rhf/date-range-picker.js +1 -1
- package/dist/rhf/date-time-picker.js +1 -1
- package/dist/rhf/file-input.js +1 -1
- package/dist/rhf/file-upload.js +1 -1
- package/dist/rhf/number-range-input.js +1 -1
- package/dist/rhf/radio-group.js +1 -1
- package/dist/rhf/rich-text-editor.js +1 -1
- package/dist/rhf/select.js +1 -1
- package/dist/rhf/slider.js +1 -1
- package/dist/rhf/text-area.js +1 -1
- package/dist/rhf/time-picker.js +1 -1
- package/dist/rhf/toggle-group.js +1 -1
- package/dist/rhf.js +15 -15
- package/dist/rich-text-editor.js +1 -1
- package/dist/{router.context-B0jTMtE0.js → router.context-B4FvsTim.js} +2 -2
- package/dist/staticDateTimeSegments-DtU63_dw.js +1764 -0
- package/dist/{staticSelect.utils-BemUyaaA.js → staticSelect.utils-uHa8f_c6.js} +5 -144
- package/dist/styles/configurator.css +731 -218
- package/dist/{table.cva-BikE8qJH.js → table.cva-DlMT-zLD.js} +2 -3
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/table.js +2 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/tanstack.js +27 -27
- package/dist/theme-model-DtYPxNvH.js +406 -0
- package/dist/upload-CXU83BJ4.js +30 -0
- package/dist/useControlledState-CzXkZCX8.js +30 -0
- package/dist/{useFieldAccessibility-B4MVL6fz.js → useFieldAccessibility-ScC6Mtd5.js} +2 -2
- package/dist/{useFilters-kkEUFKmQ.js → useFilters-XNH27Md2.js} +1 -1
- package/dist/{useFormAutosave-Mg-tdwMh.js → useFormAutosave-DfuP7drj.js} +1 -1
- package/dist/{useStaticInputHandoff-CvSBPUB3.js → useStaticInputHandoff-NeZVnci-.js} +3 -3
- package/dist/{useTableColumnConfig-gfVame8v.js → useTableColumnConfig-BTGZiluz.js} +3 -3
- package/package.json +1 -1
- package/src/configurator/README.md +3 -3
- package/dist/FocusScope-CO9oJ1sc.js +0 -343
- package/dist/chain-DIXr2VAT.js +0 -10
- package/dist/focusSafely-DCGrr2bb.js +0 -447
- package/dist/getScrollParent-kSR7EtoT.js +0 -47
- package/dist/numberStatic.utils-BMgRzyd3.js +0 -902
- package/dist/openLink-CQhMhfzO.js +0 -121
- package/dist/platform-BXNIIAfU.js +0 -42
- package/dist/staticDateTimeSegments-CsCE9Buo.js +0 -3604
- package/dist/theme-model-C-QMCksE.js +0 -136
- package/dist/useControlledState-DQxX6LMN.js +0 -189
- package/dist/useFocusable-Bd0UsrQ7.js +0 -63
- package/dist/useFormValidationState-D3z-gafz.js +0 -1341
- package/dist/useLayoutEffect-B2-1tbPJ.js +0 -83
- package/dist/useSyncRef-RGMv0rXK.js +0 -338
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ The broad `@povio/ui`, `@povio/ui/rhf`, and `@povio/ui/tanstack` entries remain
|
|
|
26
26
|
|
|
27
27
|
Feature dependencies are optional peers. Install the matching packages when using date/calendar entries, `@povio/ui/tanstack/table`, RHF/TanStack Form inputs, or the rich text editor. Basic components such as Button, Typography, and Dialog do not require table, drag-and-drop, calendar, or TipTap packages.
|
|
28
28
|
|
|
29
|
-
React Aria is an internal `@povio/ui` dependency and does not need to be installed separately.
|
|
29
|
+
React Aria is an internal `@povio/ui` dependency and does not need to be installed separately. The build keeps `react-aria` and all its subpaths external so providers and Povio components share the installed module contexts. Component-scoped escape-hatch entries expose only the corresponding React Aria primitive and its types for custom implementations:
|
|
30
30
|
|
|
31
31
|
```tsx
|
|
32
32
|
import { Link, type LinkProps } from "@povio/ui/link/react-aria";
|
|
@@ -56,7 +56,7 @@ import { uiConfigurator } from "@povio/ui/ui-configurator/vite";
|
|
|
56
56
|
uiConfigurator({ themeFile: "src/styles/theme.css" });
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
The path defaults to `src/styles/theme.css` relative to this app's Vite root. **Export → Tailwind CSS → Save theme** updates that file's token declarations and lets Vite reload the CSS. Each app writes only its own configured theme. Apply remains session-only; Cancel does not undo a file save. The plugin and save action are absent from builds and preview servers. See [the configurator guide](./src/configurator/README.md) for provider setup, preview behavior, and supported theme blocks.
|
|
59
|
+
The path defaults to `src/styles/theme.css` relative to this app's Vite root. **Advanced → Export → Tailwind CSS → Save theme** updates that file's token declarations and lets Vite reload the CSS. Each app writes only its own configured theme. Apply remains session-only; Cancel does not undo a file save. The plugin and save action are absent from builds and preview servers. See [the configurator guide](./src/configurator/README.md) for provider setup, preview behavior, and supported theme blocks.
|
|
60
60
|
|
|
61
61
|
## Button sizes
|
|
62
62
|
|
|
@@ -72,6 +72,10 @@ Inputs support `size="small"` and `default`. Omit `size` for the default. This a
|
|
|
72
72
|
|
|
73
73
|
Replace `size="extra-small"` with `size="small"`, and remove `size="large"` or `size="default"` to use the default. Small and default retain their existing spacing.
|
|
74
74
|
|
|
75
|
+
## Built-package tests
|
|
76
|
+
|
|
77
|
+
From `packages/ui`, run `bun run test:package` to build the publishable package and run its Chromium regressions. The tests resolve public imports through `dist/package.json`, covering both date pickers with empty and populated values in static and editable modes, including locale switches without remounting.
|
|
78
|
+
|
|
75
79
|
## Versioning
|
|
76
80
|
|
|
77
81
|
`^2.1` still corresponds to Atlas 2.1. All versions after that currently target Atlas 2.2 and follow semantic versioning — breaking changes bump the major version.
|
|
@@ -7,7 +7,7 @@ import { l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$
|
|
|
7
7
|
import { m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 } from "./Dialog-CKLkS00H.js";
|
|
8
8
|
import { n as $984a1fc08f87e4f3$export$e2509388b49734e7, t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-FupWOW1f.js";
|
|
9
9
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
10
|
-
import { t as Tooltip } from "./Tooltip-
|
|
10
|
+
import { t as Tooltip } from "./Tooltip-CpG1nz7Y.js";
|
|
11
11
|
import { a as breadcrumbsDefinition, i as breadcrumbSegmentDefinition, n as breadcrumbIconDefinition, r as breadcrumbItemDefinition, t as breadcrumbChevronDefinition } from "./breadcrumbs.cva-7zzdDhVR.js";
|
|
12
12
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
13
13
|
import { t as LinkContext } from "./link.context-J7aQtMOr.js";
|
|
@@ -2,154 +2,24 @@ import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
|
2
2
|
import { t as ChevronLeft } from "./chevron-left-Dgo_b9wJ.js";
|
|
3
3
|
import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
|
|
4
4
|
import { t as ChevronUp } from "./chevron-up-D_Gqpb5M.js";
|
|
5
|
-
import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, i as CalendarGrid, r as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./DatePickerInput-
|
|
5
|
+
import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, i as CalendarGrid, r as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./DatePickerInput-BLBcySA2.js";
|
|
6
6
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
7
7
|
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
8
8
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
9
9
|
import { i as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-CL8Ar4Q_.js";
|
|
10
10
|
import { n as $bc25b811ec97a172$export$40258cc1d95ff477 } from "./ToggleButton-BW1ensey.js";
|
|
11
|
-
import { n as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useLayoutEffect-B2-1tbPJ.js";
|
|
12
|
-
import { a as $390e54f620492c70$export$f680877a34711e37, r as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./useSyncRef-RGMv0rXK.js";
|
|
13
|
-
import { c as $191c9b6d48a0a4e2$export$294aa081a6c6f55d, m as $cf2482eff2eeeec2$export$f12b703ca79dfbb1, r as $fd2148440a13ec26$export$fc1a364ae1f3ff10, s as $2c9edc598a03d523$export$420e68273165f4ec } from "./useFormValidationState-D3z-gafz.js";
|
|
14
|
-
import { n as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f, r as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7, t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-DQxX6LMN.js";
|
|
15
|
-
import { C as $0014db39426443c5$exports, S as $6a440d0e2d99dd46$export$4a931266a3838b86, f as $8b141f2f71e88f85$export$2440da353cedad43, g as $8b141f2f71e88f85$export$f18627323ab57ac0, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, p as $8b141f2f71e88f85$export$7e319ea407e63bc0, v as $7541913c0284d84b$export$300019f83c56d282, w as $121970af65029459$export$f8aeda7b10753fa1 } from "./staticDateTimeSegments-CsCE9Buo.js";
|
|
16
|
-
import { n as $535772f9d2c1f38d$export$c5251b9e124bf29 } from "./FocusScope-CO9oJ1sc.js";
|
|
17
11
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
18
12
|
import { BadgeButton } from "./components/badge-button.js";
|
|
19
13
|
import { t as useBreakpoint } from "./useBreakpoint-DQoMN-BG.js";
|
|
20
|
-
import {
|
|
14
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
15
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-CLDS_LRZ.js";
|
|
16
|
+
import { f as $8b141f2f71e88f85$export$2440da353cedad43, g as $8b141f2f71e88f85$export$f18627323ab57ac0, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, p as $8b141f2f71e88f85$export$7e319ea407e63bc0 } from "./staticDateTimeSegments-DtU63_dw.js";
|
|
17
|
+
import { n as TimePickerForm } from "./datePickerValue.utils-DCgoSrP3.js";
|
|
21
18
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
22
19
|
import { c } from "react/compiler-runtime";
|
|
23
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
24
21
|
import { CalendarDateTime, DateFormatter, Time, toCalendarDate, toCalendarDateTime, today } from "@internationalized/date";
|
|
25
|
-
import { privateValidationStateProp } from "react-stately/private/form/useFormValidationState";
|
|
26
22
|
import { useCalendar } from "@react-aria/calendar";
|
|
27
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/datepicker/useDatePicker.mjs
|
|
28
|
-
function $parcel$interopDefault(a) {
|
|
29
|
-
return a && a.__esModule ? a.default : a;
|
|
30
|
-
}
|
|
31
|
-
function $6902a2bb26917a07$export$42df105a73306d51(props, state, ref) {
|
|
32
|
-
let buttonId = $390e54f620492c70$export$f680877a34711e37();
|
|
33
|
-
let dialogId = $390e54f620492c70$export$f680877a34711e37();
|
|
34
|
-
let fieldId = $390e54f620492c70$export$f680877a34711e37();
|
|
35
|
-
let stringFormatter = $cf2482eff2eeeec2$export$f12b703ca79dfbb1($parcel$interopDefault($0014db39426443c5$exports), "@react-aria/datepicker");
|
|
36
|
-
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
37
|
-
let { labelProps, fieldProps, descriptionProps, errorMessageProps } = $191c9b6d48a0a4e2$export$294aa081a6c6f55d({
|
|
38
|
-
...props,
|
|
39
|
-
labelElementType: "span",
|
|
40
|
-
isInvalid,
|
|
41
|
-
errorMessage: props.errorMessage || validationErrors
|
|
42
|
-
});
|
|
43
|
-
let groupProps = $6a440d0e2d99dd46$export$4a931266a3838b86(state, ref);
|
|
44
|
-
let labelledBy = fieldProps["aria-labelledby"] || fieldProps.id;
|
|
45
|
-
let { locale } = $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7();
|
|
46
|
-
let date = state.formatValue(locale, { month: "long" });
|
|
47
|
-
let description = date ? stringFormatter.format("selectedDateDescription", { date }) : "";
|
|
48
|
-
let descProps = $121970af65029459$export$f8aeda7b10753fa1(description);
|
|
49
|
-
let ariaDescribedBy = [descProps["aria-describedby"], fieldProps["aria-describedby"]].filter(Boolean).join(" ") || void 0;
|
|
50
|
-
let domProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props);
|
|
51
|
-
let focusManager = useMemo(() => $535772f9d2c1f38d$export$c5251b9e124bf29(ref), [ref]);
|
|
52
|
-
let isFocused = useRef(false);
|
|
53
|
-
let { focusWithinProps } = $2c9edc598a03d523$export$420e68273165f4ec({
|
|
54
|
-
...props,
|
|
55
|
-
isDisabled: state.isOpen,
|
|
56
|
-
onBlurWithin: (e) => {
|
|
57
|
-
let dialog = document.getElementById(dialogId);
|
|
58
|
-
if (!$23f2114a1b82827e$export$4282f70798064fe0(dialog, e.relatedTarget)) {
|
|
59
|
-
isFocused.current = false;
|
|
60
|
-
props.onBlur?.(e);
|
|
61
|
-
props.onFocusChange?.(false);
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
onFocusWithin: (e) => {
|
|
65
|
-
if (!isFocused.current) {
|
|
66
|
-
isFocused.current = true;
|
|
67
|
-
props.onFocus?.(e);
|
|
68
|
-
props.onFocusChange?.(true);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
return {
|
|
73
|
-
groupProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(domProps, groupProps, fieldProps, descProps, focusWithinProps, {
|
|
74
|
-
role: "group",
|
|
75
|
-
"aria-disabled": props.isDisabled || null,
|
|
76
|
-
"aria-labelledby": labelledBy,
|
|
77
|
-
"aria-describedby": ariaDescribedBy,
|
|
78
|
-
onKeyDown(e) {
|
|
79
|
-
if (state.isOpen) return;
|
|
80
|
-
if (props.onKeyDown) props.onKeyDown(e);
|
|
81
|
-
},
|
|
82
|
-
onKeyUp(e) {
|
|
83
|
-
if (state.isOpen) return;
|
|
84
|
-
if (props.onKeyUp) props.onKeyUp(e);
|
|
85
|
-
}
|
|
86
|
-
}),
|
|
87
|
-
labelProps: {
|
|
88
|
-
...labelProps,
|
|
89
|
-
onClick: () => {
|
|
90
|
-
focusManager.focusFirst();
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
fieldProps: {
|
|
94
|
-
...fieldProps,
|
|
95
|
-
id: fieldId,
|
|
96
|
-
[$7541913c0284d84b$export$300019f83c56d282]: "presentation",
|
|
97
|
-
"aria-describedby": ariaDescribedBy,
|
|
98
|
-
value: state.value,
|
|
99
|
-
defaultValue: state.defaultValue,
|
|
100
|
-
onChange: state.setValue,
|
|
101
|
-
placeholderValue: props.placeholderValue,
|
|
102
|
-
hideTimeZone: props.hideTimeZone,
|
|
103
|
-
hourCycle: props.hourCycle,
|
|
104
|
-
shouldForceLeadingZeros: props.shouldForceLeadingZeros,
|
|
105
|
-
granularity: props.granularity,
|
|
106
|
-
isDisabled: props.isDisabled,
|
|
107
|
-
isReadOnly: props.isReadOnly,
|
|
108
|
-
isRequired: props.isRequired,
|
|
109
|
-
validationBehavior: props.validationBehavior,
|
|
110
|
-
[privateValidationStateProp]: state,
|
|
111
|
-
autoFocus: props.autoFocus,
|
|
112
|
-
name: props.name,
|
|
113
|
-
form: props.form
|
|
114
|
-
},
|
|
115
|
-
descriptionProps,
|
|
116
|
-
errorMessageProps,
|
|
117
|
-
buttonProps: {
|
|
118
|
-
...descProps,
|
|
119
|
-
id: buttonId,
|
|
120
|
-
"aria-haspopup": "dialog",
|
|
121
|
-
"aria-label": stringFormatter.format("calendar"),
|
|
122
|
-
"aria-labelledby": `${buttonId} ${labelledBy}`,
|
|
123
|
-
"aria-describedby": ariaDescribedBy,
|
|
124
|
-
"aria-expanded": state.isOpen,
|
|
125
|
-
isDisabled: props.isDisabled || props.isReadOnly,
|
|
126
|
-
onPress: () => state.setOpen(true)
|
|
127
|
-
},
|
|
128
|
-
dialogProps: {
|
|
129
|
-
id: dialogId,
|
|
130
|
-
"aria-labelledby": `${buttonId} ${labelledBy}`
|
|
131
|
-
},
|
|
132
|
-
calendarProps: {
|
|
133
|
-
autoFocus: true,
|
|
134
|
-
value: state.dateValue,
|
|
135
|
-
onChange: state.setDateValue,
|
|
136
|
-
minValue: props.minValue,
|
|
137
|
-
maxValue: props.maxValue,
|
|
138
|
-
isDisabled: props.isDisabled,
|
|
139
|
-
isReadOnly: props.isReadOnly,
|
|
140
|
-
isDateUnavailable: props.isDateUnavailable,
|
|
141
|
-
defaultFocusedValue: state.dateValue ? void 0 : props.placeholderValue,
|
|
142
|
-
isInvalid: state.isInvalid,
|
|
143
|
-
errorMessage: typeof props.errorMessage === "function" ? props.errorMessage(state.displayValidation) : props.errorMessage || state.displayValidation.validationErrors.join(" "),
|
|
144
|
-
firstDayOfWeek: props.firstDayOfWeek,
|
|
145
|
-
pageBehavior: props.pageBehavior
|
|
146
|
-
},
|
|
147
|
-
isInvalid,
|
|
148
|
-
validationErrors,
|
|
149
|
-
validationDetails
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
//#endregion
|
|
153
23
|
//#region ../../node_modules/.bun/react-stately@3.50.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/datepicker/useDatePickerState.mjs
|
|
154
24
|
function $28aae683a942e141$export$87194bb378cc3ac2(props) {
|
|
155
25
|
let overlayState = $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props);
|
|
@@ -758,4 +628,4 @@ const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, h
|
|
|
758
628
|
});
|
|
759
629
|
};
|
|
760
630
|
//#endregion
|
|
761
|
-
export {
|
|
631
|
+
export { useScrollableListBox as n, $28aae683a942e141$export$87194bb378cc3ac2 as r, Calendar as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
-
import { c as checkboxIndicatorClass, l as checkboxTypography, n as checkboxContentClassName, t as CheckboxCheckmark } from "./CheckboxCheckmark-
|
|
2
|
+
import { c as checkboxIndicatorClass, l as checkboxTypography, n as checkboxContentClassName, t as CheckboxCheckmark } from "./CheckboxCheckmark-CpC3wlMs.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
5
|
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Czcqspm7.js";
|
|
@@ -175,4 +175,4 @@ const CheckboxCheckmark = ({ variant, className, selectedIcon: SelectedIcon = Ch
|
|
|
175
175
|
});
|
|
176
176
|
};
|
|
177
177
|
//#endregion
|
|
178
|
-
export { checkboxDefinition as a, checkboxIndicatorClass as c, checkboxContentWrapperDefinition as i, checkboxTypography as l, checkboxContentClassName as n, checkboxGroupLabelDefinition as o, checkboxContentRowDefinition as r, checkboxIconDefinition as s, CheckboxCheckmark as t };
|
|
178
|
+
export { checkboxDefinition as a, checkboxIndicatorClass as c, checkboxContentWrapperDefinition as i, checkboxTypography as l, checkboxContentClassName as n, checkboxGroupLabelDefinition as o, checkboxContentRowDefinition as r, checkboxIconDefinition as s, CheckboxCheckmark as t, Minus as u };
|