@ox0/ui 3.10.1 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chevron.d.ts +3 -1
- package/dist/components/chevron.d.ts.map +1 -1
- package/dist/components/confirm-dialog.d.ts.map +1 -1
- package/dist/components/date-field.d.ts +2 -1
- package/dist/components/date-field.d.ts.map +1 -1
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/drawer.d.ts.map +1 -1
- package/dist/components/layer-stack.d.ts +3 -0
- package/dist/components/layer-stack.d.ts.map +1 -0
- package/dist/components/toast.d.ts +5 -0
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/index.js +466 -31
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface ChevronProps {
|
|
2
|
-
readonly direction?: "down" | "up";
|
|
2
|
+
readonly direction?: "down" | "up" | "left" | "right";
|
|
3
3
|
/** Rendered size in px. @default 16 */
|
|
4
4
|
readonly size?: number;
|
|
5
5
|
}
|
|
@@ -10,5 +10,7 @@ export declare function Checkmark({ size }: Pick<ChevronProps, "size">): import(
|
|
|
10
10
|
export declare function MenuGlyph({ size }: {
|
|
11
11
|
readonly size?: number | string;
|
|
12
12
|
}): import("react").JSX.Element;
|
|
13
|
+
/** Internal — a calendar (Lucide `calendar` geometry), for date fields. */
|
|
14
|
+
export declare function CalendarGlyph({ size }: Pick<ChevronProps, "size">): import("react").JSX.Element;
|
|
13
15
|
export {};
|
|
14
16
|
//# sourceMappingURL=chevron.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chevron.d.ts","sourceRoot":"","sources":["../../src/components/chevron.tsx"],"names":[],"mappings":"AAGA,UAAU,YAAY;IACpB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"chevron.d.ts","sourceRoot":"","sources":["../../src/components/chevron.tsx"],"names":[],"mappings":"AAGA,UAAU,YAAY;IACpB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CAAA;IACrD,uCAAuC;IACvC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB;AASD,wBAAgB,OAAO,CAAC,EAAE,SAAkB,EAAE,IAAS,EAAE,EAAE,YAAY,+BAgBtE;AAED,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,+BAgBlE;AAED,sEAAsE;AACtE,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,+BAgB3E;AAED,2EAA2E;AAC3E,wBAAgB,aAAa,CAAC,EAAE,IAAS,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,+BAkBtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-dialog.d.ts","sourceRoot":"","sources":["../../src/components/confirm-dialog.tsx"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"confirm-dialog.d.ts","sourceRoot":"","sources":["../../src/components/confirm-dialog.tsx"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAQjD,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE9C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,yDAAyD;IACzD,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS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CAAC,EAAE,WAAW,CAAA;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;CACjC;AAED,wEAAwE;AACxE,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;AAInE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAIpC;AAOD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,8EAA8E;AAC9E,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,oBAAoB,GAAG,SAAS,CAsD7E"}
|
|
@@ -31,7 +31,8 @@ export interface DateFieldProps extends LayoutItemProps {
|
|
|
31
31
|
readonly isRequired?: boolean;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* A date entered as month, day and year segments in the user's locale order
|
|
34
|
+
* A date entered as month, day and year segments in the user's locale order,
|
|
35
|
+
* or picked from a calendar (the button at the end, or Alt+↓ from a segment).
|
|
35
36
|
* It draws its own placeholders ("mm/dd/yyyy"), so an empty field looks empty
|
|
36
37
|
* in every browser, unlike `<input type="date">`.
|
|
37
38
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-field.d.ts","sourceRoot":"","sources":["../../src/components/date-field.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-field.d.ts","sourceRoot":"","sources":["../../src/components/date-field.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AA0BpF,OAAO,EAAE,KAAK,eAAe,EAAiB,MAAM,uBAAuB,CAAA;AAoB3E,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,qFAAqF;IACrF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,QAA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ACT,UAAU,EACV,UAAU,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,OAAO,EACP,KAAK,EACL,GAAG,SAAS,EACb,EAAE,cAAc,GAAG,SAAS,CAkK5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;AAiCd,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AACnD,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,uEAAuE;IACvE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IACpC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,CAAC,EAAE,eAAe,GAAG,SAAS,CAAA;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAA;IAC5B,oEAAoE;IACpE,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;CACzC;AAED,iBAAS,UAAU,CAAC,EAClB,QAAQ,EACR,iBAAiB,EACjB,WAAW,EACX,MAAM,EACN,SAAS,EACT,OAAO,EACP,KAAK,GACN,EAAE,WAAW,GAAG,SAAS,CAoGzB;AAID,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,GAAG,SAAS,CAEhE;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,iBAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,SAAS,CAO9D;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,eAAe,GAAG,SAAS,CAE5D;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,GAAG,SAAS,CAEhE;AAID,eAAO,MAAM,MAAM;;;;;;CAMjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.tsx"],"names":[],"mappings":"AACA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.tsx"],"names":[],"mappings":"AACA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AA+Bd,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,CAAA;AAC9C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,CAAA;AAE9C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,M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AAQ,EAAE,EAAE,eAAe,GAAG,SAAS,CAE5D;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,GAAG,SAAS,CAEhE;AAID,eAAO,MAAM,MAAM;;;;;;CAMjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layer-stack.d.ts","sourceRoot":"","sources":["../../src/components/layer-stack.ts"],"names":[],"mappings":"AASA,4FAA4F;AAC5F,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,OAAO,CAYvD"}
|
|
@@ -20,6 +20,11 @@ interface ToastContextValue {
|
|
|
20
20
|
}
|
|
21
21
|
/** Call from anywhere inside ToastProvider to show a toast. */
|
|
22
22
|
export declare function useToast(): ToastContextValue;
|
|
23
|
+
/**
|
|
24
|
+
* Like `useToast`, but null outside a ToastProvider — for components that offer a toast (an Undo)
|
|
25
|
+
* when the app has one and work without it.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useOptionalToast(): ToastContextValue | null;
|
|
23
28
|
interface ToastProviderProps {
|
|
24
29
|
readonly children: ReactNode;
|
|
25
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/components/toast.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;AAOd,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE7E,MAAM,WAAW,YAAY;IAC3B,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,yDAAyD;IACzD,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAA;IAChC,wCAAwC;IACxC,QAAQ,CAAC,IAAI,CA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BAAiB;IACzB,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAA;CAC5C;AAMD,+DAA+D;AAC/D,wBAAgB,QAAQ,IAAI,iBAAiB,CAI5C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,iBAAiB,GAAG,IAAI,CAE3D;AAID,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,GAAG,SAAS,CA4BzE"}
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import { isFocusVisible as hooks_isFocusVisible, useControllableState, useMediaQ
|
|
|
4
4
|
import { Ox0I18nProvider, toDateTimeAttribute, useDateFormat, useMessage } from "@ox0/i18n";
|
|
5
5
|
import { createPortal } from "react-dom";
|
|
6
6
|
import { FloatingFocusManager, FloatingPortal, autoUpdate, flip, offset as react_offset, shift, size as react_size, useClick, useDismiss, useFloating, useInteractions, useListNavigation, useMergeRefs, useRole } from "@floating-ui/react";
|
|
7
|
-
import { DismissButton, HiddenSelect, Overlay, mergeProps, useButton, useDateField, useDateSegment, useFocusRing, useListBox, useListBoxSection, useObjectRef, useOption, usePopover, useSelect } from "react-aria";
|
|
8
|
-
import { Item, Section, useDateFieldState, useListState, useSelectState } from "react-stately";
|
|
9
|
-
import { createCalendar, parseDate } from "@internationalized/date";
|
|
7
|
+
import { DismissButton, HiddenSelect, Overlay, mergeProps, useButton, useCalendar, useCalendarCell, useCalendarGrid, useDateField, useDatePicker, useDateSegment, useDialog, useFocusRing, useListBox, useListBoxSection, useObjectRef, useOption, usePopover, useSelect } from "react-aria";
|
|
8
|
+
import { Item, Section, useCalendarState, useDateFieldState, useDatePickerState, useListState, useSelectState } from "react-stately";
|
|
9
|
+
import { GregorianCalendar, createCalendar, getLocalTimeZone, getWeeksInMonth, isToday, parseDate, toCalendar, toCalendarDate } from "@internationalized/date";
|
|
10
10
|
import { IntlContext } from "react-intl";
|
|
11
11
|
import { breakpoints, createTheme, readThemePreference, writeThemePreference } from "@ox0/tokens";
|
|
12
12
|
import "@ox0/tokens/styles.css";
|
|
@@ -1771,7 +1771,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1771
1771
|
font-variant-numeric: tabular-nums;
|
|
1772
1772
|
height: var(--ox0-control-height-md);
|
|
1773
1773
|
min-inline-size: 0;
|
|
1774
|
-
padding-inline: calc(var(--ox0-space-md) - 2px);
|
|
1774
|
+
padding-inline: calc(var(--ox0-space-md) - 2px) var(--ox0-space-2xs);
|
|
1775
1775
|
transition: border-color var(--ox0-duration-fast) var(--ox0-ease-crisp),
|
|
1776
1776
|
box-shadow var(--ox0-duration-fast) var(--ox0-ease-crisp);
|
|
1777
1777
|
white-space: nowrap;
|
|
@@ -1803,6 +1803,48 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1803
1803
|
cursor: not-allowed;
|
|
1804
1804
|
}
|
|
1805
1805
|
|
|
1806
|
+
.segments-p4Fzoj {
|
|
1807
|
+
flex: auto;
|
|
1808
|
+
align-items: center;
|
|
1809
|
+
min-inline-size: 0;
|
|
1810
|
+
display: flex;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.calendarButton-dSeheH {
|
|
1814
|
+
block-size: calc(var(--ox0-control-height-md) - 8px);
|
|
1815
|
+
border-radius: var(--ox0-radius-xs);
|
|
1816
|
+
color: var(--ox0-color-muted);
|
|
1817
|
+
cursor: pointer;
|
|
1818
|
+
inline-size: calc(var(--ox0-control-height-md) - 8px);
|
|
1819
|
+
background: none;
|
|
1820
|
+
border: none;
|
|
1821
|
+
outline: none;
|
|
1822
|
+
flex: none;
|
|
1823
|
+
justify-content: center;
|
|
1824
|
+
align-items: center;
|
|
1825
|
+
margin-inline-start: var(--ox0-space-xs);
|
|
1826
|
+
padding: 0;
|
|
1827
|
+
display: inline-flex;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
.calendarButton-dSeheH:hover {
|
|
1831
|
+
background: var(--ox0-color-surface-sunken);
|
|
1832
|
+
color: var(--ox0-color-foreground);
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
.calendarButton-dSeheH:focus-visible {
|
|
1836
|
+
box-shadow: 0 0 0 2px var(--ox0-color-accent);
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
.calendarButton-dSeheH:disabled {
|
|
1840
|
+
color: var(--ox0-color-disabled);
|
|
1841
|
+
cursor: not-allowed;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.calendarButton-dSeheH:disabled:hover {
|
|
1845
|
+
background: none;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1806
1848
|
.segment-qBeSFi {
|
|
1807
1849
|
border-radius: var(--ox0-radius-xs);
|
|
1808
1850
|
box-sizing: content-box;
|
|
@@ -1834,6 +1876,122 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1834
1876
|
color: var(--ox0-color-danger-text);
|
|
1835
1877
|
font-size: var(--ox0-font-size-sm);
|
|
1836
1878
|
}
|
|
1879
|
+
|
|
1880
|
+
.popover-nvxR3G {
|
|
1881
|
+
background: var(--ox0-color-surface-raised);
|
|
1882
|
+
border: 1px solid var(--ox0-color-border);
|
|
1883
|
+
border-radius: var(--ox0-radius-md);
|
|
1884
|
+
box-shadow: var(--ox0-shadow-popover);
|
|
1885
|
+
color: var(--ox0-color-foreground);
|
|
1886
|
+
font-family: var(--ox0-font-sans);
|
|
1887
|
+
font-size: var(--ox0-font-size-sm);
|
|
1888
|
+
padding: var(--ox0-space-sm);
|
|
1889
|
+
z-index: var(--ox0-z-popover);
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
.dialog-MW5_dI {
|
|
1893
|
+
outline: none;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
.calendarHeader-Rrza1b {
|
|
1897
|
+
align-items: center;
|
|
1898
|
+
gap: var(--ox0-space-xs);
|
|
1899
|
+
justify-content: space-between;
|
|
1900
|
+
margin-block-end: var(--ox0-space-xs);
|
|
1901
|
+
display: flex;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
.calendarTitle-8q_D1C {
|
|
1905
|
+
font-size: var(--ox0-font-size-md);
|
|
1906
|
+
font-weight: var(--ox0-font-weight-medium);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
.calendarNav-FPYc8j {
|
|
1910
|
+
border-radius: var(--ox0-radius-sm);
|
|
1911
|
+
block-size: 2rem;
|
|
1912
|
+
color: var(--ox0-color-muted);
|
|
1913
|
+
cursor: pointer;
|
|
1914
|
+
background: none;
|
|
1915
|
+
border: none;
|
|
1916
|
+
outline: none;
|
|
1917
|
+
justify-content: center;
|
|
1918
|
+
align-items: center;
|
|
1919
|
+
inline-size: 2rem;
|
|
1920
|
+
padding: 0;
|
|
1921
|
+
display: inline-flex;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
.calendarNav-FPYc8j:hover {
|
|
1925
|
+
background: var(--ox0-color-surface-sunken);
|
|
1926
|
+
color: var(--ox0-color-foreground);
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
.calendarNav-FPYc8j:focus-visible {
|
|
1930
|
+
box-shadow: 0 0 0 2px var(--ox0-color-accent);
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
.calendarNav-FPYc8j:disabled {
|
|
1934
|
+
color: var(--ox0-color-disabled);
|
|
1935
|
+
cursor: not-allowed;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
.calendarGrid-SU1p6b {
|
|
1939
|
+
border-collapse: collapse;
|
|
1940
|
+
font-variant-numeric: tabular-nums;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
.weekday-GJhqXA {
|
|
1944
|
+
block-size: 2rem;
|
|
1945
|
+
color: var(--ox0-color-muted);
|
|
1946
|
+
font-size: var(--ox0-font-size-xs);
|
|
1947
|
+
font-weight: var(--ox0-font-weight-medium);
|
|
1948
|
+
text-align: center;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
.calendarCellSlot-fhQnSm {
|
|
1952
|
+
padding: 1px;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
.calendarCell-mNQcbP {
|
|
1956
|
+
border-radius: var(--ox0-radius-sm);
|
|
1957
|
+
cursor: pointer;
|
|
1958
|
+
outline: none;
|
|
1959
|
+
justify-content: center;
|
|
1960
|
+
align-items: center;
|
|
1961
|
+
block-size: 2.25rem;
|
|
1962
|
+
inline-size: 2.25rem;
|
|
1963
|
+
display: flex;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
.calendarCell-mNQcbP[hidden] {
|
|
1967
|
+
display: none;
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
.calendarCell-mNQcbP:hover {
|
|
1971
|
+
background: var(--ox0-color-surface-sunken);
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
.calendarCell-mNQcbP[data-today] {
|
|
1975
|
+
box-shadow: inset 0 0 0 1px var(--ox0-color-border-strong);
|
|
1976
|
+
font-weight: var(--ox0-font-weight-medium);
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
.calendarCell-mNQcbP[data-selected] {
|
|
1980
|
+
background: var(--ox0-color-accent);
|
|
1981
|
+
color: var(--ox0-color-on-accent);
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
.calendarCell-mNQcbP:focus-visible {
|
|
1985
|
+
box-shadow: 0 0 0 2px var(--ox0-color-focus-ring),
|
|
1986
|
+
inset 0 0 0 1px var(--ox0-color-accent);
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
.calendarCell-mNQcbP[data-disabled] {
|
|
1990
|
+
color: var(--ox0-color-disabled);
|
|
1991
|
+
cursor: not-allowed;
|
|
1992
|
+
background: none;
|
|
1993
|
+
text-decoration: line-through;
|
|
1994
|
+
}
|
|
1837
1995
|
`,
|
|
1838
1996
|
""
|
|
1839
1997
|
]);
|
|
@@ -1843,11 +2001,22 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
|
|
|
1843
2001
|
focusVisible: "focusVisible-O_oNxe",
|
|
1844
2002
|
invalid: "invalid-G42Ug_",
|
|
1845
2003
|
disabled: "disabled-eefMMd",
|
|
2004
|
+
segments: "segments-p4Fzoj",
|
|
2005
|
+
calendarButton: "calendarButton-dSeheH",
|
|
1846
2006
|
segment: "segment-qBeSFi",
|
|
1847
2007
|
placeholder: "placeholder-n53Bc3",
|
|
1848
2008
|
literal: "literal-L0lCHh",
|
|
1849
2009
|
description: "description-iyjYjF",
|
|
1850
|
-
error: "error-fBRnM3"
|
|
2010
|
+
error: "error-fBRnM3",
|
|
2011
|
+
popover: "popover-nvxR3G",
|
|
2012
|
+
dialog: "dialog-MW5_dI",
|
|
2013
|
+
calendarHeader: "calendarHeader-Rrza1b",
|
|
2014
|
+
calendarTitle: "calendarTitle-8q_D1C",
|
|
2015
|
+
calendarNav: "calendarNav-FPYc8j",
|
|
2016
|
+
calendarGrid: "calendarGrid-SU1p6b",
|
|
2017
|
+
weekday: "weekday-GJhqXA",
|
|
2018
|
+
calendarCellSlot: "calendarCellSlot-fhQnSm",
|
|
2019
|
+
calendarCell: "calendarCell-mNQcbP"
|
|
1851
2020
|
};
|
|
1852
2021
|
const __rspack_default_export = ___CSS_LOADER_EXPORT___;
|
|
1853
2022
|
__webpack_require__.d(__webpack_exports__, {}, {
|
|
@@ -6366,6 +6535,12 @@ const RouterContext = createContext(null);
|
|
|
6366
6535
|
function useRouter() {
|
|
6367
6536
|
return useContext(RouterContext);
|
|
6368
6537
|
}
|
|
6538
|
+
const CHEVRON_PATHS = {
|
|
6539
|
+
down: "m6 9 6 6 6-6",
|
|
6540
|
+
up: "m18 15-6-6-6 6",
|
|
6541
|
+
left: "m15 18-6-6 6-6",
|
|
6542
|
+
right: "m9 18 6-6-6-6"
|
|
6543
|
+
};
|
|
6369
6544
|
function Chevron({ direction = "down", size = 16 }) {
|
|
6370
6545
|
return /*#__PURE__*/ jsx("svg", {
|
|
6371
6546
|
"aria-hidden": "true",
|
|
@@ -6378,7 +6553,7 @@ function Chevron({ direction = "down", size = 16 }) {
|
|
|
6378
6553
|
viewBox: "0 0 24 24",
|
|
6379
6554
|
width: size,
|
|
6380
6555
|
children: /*#__PURE__*/ jsx("path", {
|
|
6381
|
-
d:
|
|
6556
|
+
d: CHEVRON_PATHS[direction]
|
|
6382
6557
|
})
|
|
6383
6558
|
});
|
|
6384
6559
|
}
|
|
@@ -6414,6 +6589,50 @@ function MenuGlyph({ size = 16 }) {
|
|
|
6414
6589
|
})
|
|
6415
6590
|
});
|
|
6416
6591
|
}
|
|
6592
|
+
function CalendarGlyph({ size = 16 }) {
|
|
6593
|
+
return /*#__PURE__*/ jsxs("svg", {
|
|
6594
|
+
"aria-hidden": "true",
|
|
6595
|
+
fill: "none",
|
|
6596
|
+
height: size,
|
|
6597
|
+
stroke: "currentColor",
|
|
6598
|
+
strokeLinecap: "round",
|
|
6599
|
+
strokeLinejoin: "round",
|
|
6600
|
+
strokeWidth: 2,
|
|
6601
|
+
viewBox: "0 0 24 24",
|
|
6602
|
+
width: size,
|
|
6603
|
+
children: [
|
|
6604
|
+
/*#__PURE__*/ jsx("path", {
|
|
6605
|
+
d: "M8 2v4M16 2v4"
|
|
6606
|
+
}),
|
|
6607
|
+
/*#__PURE__*/ jsx("rect", {
|
|
6608
|
+
height: "18",
|
|
6609
|
+
rx: "2",
|
|
6610
|
+
width: "18",
|
|
6611
|
+
x: "3",
|
|
6612
|
+
y: "4"
|
|
6613
|
+
}),
|
|
6614
|
+
/*#__PURE__*/ jsx("path", {
|
|
6615
|
+
d: "M3 10h18"
|
|
6616
|
+
})
|
|
6617
|
+
]
|
|
6618
|
+
});
|
|
6619
|
+
}
|
|
6620
|
+
const stack = [];
|
|
6621
|
+
function useLayer(isOpen) {
|
|
6622
|
+
const layerRef = useRef({});
|
|
6623
|
+
useEffect(()=>{
|
|
6624
|
+
if (!isOpen) return;
|
|
6625
|
+
const layer = layerRef.current;
|
|
6626
|
+
stack.push(layer);
|
|
6627
|
+
return ()=>{
|
|
6628
|
+
const index = stack.indexOf(layer);
|
|
6629
|
+
if (-1 !== index) stack.splice(index, 1);
|
|
6630
|
+
};
|
|
6631
|
+
}, [
|
|
6632
|
+
isOpen
|
|
6633
|
+
]);
|
|
6634
|
+
return useCallback(()=>stack.at(-1) === layerRef.current, []);
|
|
6635
|
+
}
|
|
6417
6636
|
const drawer_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.1.13_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/drawer.module.css");
|
|
6418
6637
|
var drawer_module_options = {};
|
|
6419
6638
|
drawer_module_options.styleTagTransform = styleTagTransform_default();
|
|
@@ -6458,10 +6677,11 @@ function DrawerRoot({ children, isOpen, onClose, placement = "right", variant =
|
|
|
6458
6677
|
onClose,
|
|
6459
6678
|
titleId
|
|
6460
6679
|
]);
|
|
6680
|
+
const isTopLayer = useLayer(isOpen);
|
|
6461
6681
|
useEffect(()=>{
|
|
6462
6682
|
if (!isOpen) return;
|
|
6463
6683
|
const handler = (e)=>{
|
|
6464
|
-
if ("Escape" === e.key) {
|
|
6684
|
+
if ("Escape" === e.key && isTopLayer()) {
|
|
6465
6685
|
e.preventDefault();
|
|
6466
6686
|
if (!isDismissDisabled) onClose();
|
|
6467
6687
|
}
|
|
@@ -6471,21 +6691,33 @@ function DrawerRoot({ children, isOpen, onClose, placement = "right", variant =
|
|
|
6471
6691
|
}, [
|
|
6472
6692
|
isDismissDisabled,
|
|
6473
6693
|
isOpen,
|
|
6694
|
+
isTopLayer,
|
|
6474
6695
|
onClose
|
|
6475
6696
|
]);
|
|
6697
|
+
const pressedInsideRef = useRef(false);
|
|
6476
6698
|
useEffect(()=>{
|
|
6477
6699
|
if (!isOpen || "overlay" !== variant) return;
|
|
6700
|
+
const reset = ()=>{
|
|
6701
|
+
pressedInsideRef.current = false;
|
|
6702
|
+
};
|
|
6478
6703
|
const handler = (e)=>{
|
|
6479
|
-
|
|
6704
|
+
const pressedInside = pressedInsideRef.current;
|
|
6705
|
+
pressedInsideRef.current = false;
|
|
6706
|
+
if (isDismissDisabled || pressedInside || !isTopLayer()) return;
|
|
6480
6707
|
if (!(e.target instanceof Node)) return;
|
|
6481
6708
|
if (panelRef.current?.contains(e.target)) return;
|
|
6482
6709
|
onClose();
|
|
6483
6710
|
};
|
|
6711
|
+
document.addEventListener("pointerdown", reset, true);
|
|
6484
6712
|
document.addEventListener("pointerdown", handler);
|
|
6485
|
-
return ()=>
|
|
6713
|
+
return ()=>{
|
|
6714
|
+
document.removeEventListener("pointerdown", reset, true);
|
|
6715
|
+
document.removeEventListener("pointerdown", handler);
|
|
6716
|
+
};
|
|
6486
6717
|
}, [
|
|
6487
6718
|
isDismissDisabled,
|
|
6488
6719
|
isOpen,
|
|
6720
|
+
isTopLayer,
|
|
6489
6721
|
onClose,
|
|
6490
6722
|
variant
|
|
6491
6723
|
]);
|
|
@@ -6535,6 +6767,9 @@ function DrawerRoot({ children, isOpen, onClose, placement = "right", variant =
|
|
|
6535
6767
|
"data-variant": variant,
|
|
6536
6768
|
ref: panelRef,
|
|
6537
6769
|
style: panelStyle,
|
|
6770
|
+
onPointerDownCapture: ()=>{
|
|
6771
|
+
pressedInsideRef.current = true;
|
|
6772
|
+
},
|
|
6538
6773
|
onAnimationEnd: (e)=>{
|
|
6539
6774
|
if (e.target !== e.currentTarget) return;
|
|
6540
6775
|
if ("entering" === phase) setPhase("open");
|
|
@@ -8604,6 +8839,7 @@ function DialogRoot({ children, isDismissDisabled, isEphemeral, isOpen, maxHeigh
|
|
|
8604
8839
|
onClose,
|
|
8605
8840
|
titleId
|
|
8606
8841
|
]);
|
|
8842
|
+
const isTopLayer = useLayer(isOpen);
|
|
8607
8843
|
useEffect(()=>{
|
|
8608
8844
|
if (!isOpen) return;
|
|
8609
8845
|
const previouslyFocused = document.activeElement;
|
|
@@ -8621,7 +8857,7 @@ function DialogRoot({ children, isDismissDisabled, isEphemeral, isOpen, maxHeigh
|
|
|
8621
8857
|
useEffect(()=>{
|
|
8622
8858
|
if (!isOpen) return;
|
|
8623
8859
|
const handler = (e)=>{
|
|
8624
|
-
if ("Escape" === e.key) {
|
|
8860
|
+
if ("Escape" === e.key && isTopLayer()) {
|
|
8625
8861
|
e.preventDefault();
|
|
8626
8862
|
if (!isDismissDisabled) onClose();
|
|
8627
8863
|
}
|
|
@@ -8631,6 +8867,7 @@ function DialogRoot({ children, isDismissDisabled, isEphemeral, isOpen, maxHeigh
|
|
|
8631
8867
|
}, [
|
|
8632
8868
|
isDismissDisabled,
|
|
8633
8869
|
isOpen,
|
|
8870
|
+
isTopLayer,
|
|
8634
8871
|
onClose
|
|
8635
8872
|
]);
|
|
8636
8873
|
if (!isVisible) return null;
|
|
@@ -8777,6 +9014,7 @@ function ConfirmPopover({ anchor, cancelLabel, children, confirmLabel, isOpen, o
|
|
|
8777
9014
|
const defaultConfirm = useMessage("ox0.confirm.confirm", "Confirm");
|
|
8778
9015
|
const defaultCancel = useMessage("ox0.confirm.cancel", "Cancel");
|
|
8779
9016
|
const cancelRef = useRef(null);
|
|
9017
|
+
useLayer(isOpen);
|
|
8780
9018
|
const { refs: { setFloating }, floatingStyles, context } = useFloating({
|
|
8781
9019
|
elements: {
|
|
8782
9020
|
reference: anchor
|
|
@@ -10971,6 +11209,9 @@ function useToast() {
|
|
|
10971
11209
|
if (!ctx) throw new Error("useToast must be used inside ToastProvider");
|
|
10972
11210
|
return ctx;
|
|
10973
11211
|
}
|
|
11212
|
+
function useOptionalToast() {
|
|
11213
|
+
return useContext(ToastContext);
|
|
11214
|
+
}
|
|
10974
11215
|
function ToastProvider({ children }) {
|
|
10975
11216
|
const [toasts, dispatch] = useReducer(reducer, []);
|
|
10976
11217
|
const addToast = useCallback((options)=>{
|
|
@@ -13334,7 +13575,7 @@ date_field_module_options.insertStyleElement = insertStyleElement_default();
|
|
|
13334
13575
|
injectStylesIntoStyleTag_default()(date_field_module_0.A, date_field_module_options);
|
|
13335
13576
|
const date_field_module = date_field_module_0.A && date_field_module_0.A.locals ? date_field_module_0.A.locals : void 0;
|
|
13336
13577
|
const ISO_DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
13337
|
-
function
|
|
13578
|
+
function date_field_toCalendarDate(value) {
|
|
13338
13579
|
if (void 0 === value) return;
|
|
13339
13580
|
if (null === value || !ISO_DATE.test(value)) return null;
|
|
13340
13581
|
try {
|
|
@@ -13345,17 +13586,19 @@ function toCalendarDate(value) {
|
|
|
13345
13586
|
}
|
|
13346
13587
|
function DateField({ ariaLabel, autoFocus, defaultValue, description, errorMessage, id, isDisabled, isInvalid, isReadOnly, isRequired, label, maxValue, minValue, name, onBlur, onChange, onFocus, value, ...restProps }) {
|
|
13347
13588
|
const { style: layoutStyle } = useLayoutItem(restProps);
|
|
13348
|
-
const
|
|
13349
|
-
const
|
|
13589
|
+
const intl = useContext(IntlContext);
|
|
13590
|
+
const locale = intl?.locale ?? "en-US";
|
|
13591
|
+
const timeZone = intl?.timeZone ?? getLocalTimeZone();
|
|
13592
|
+
const calendarValue = useMemo(()=>date_field_toCalendarDate(value), [
|
|
13350
13593
|
value
|
|
13351
13594
|
]);
|
|
13352
|
-
const calendarDefault = useMemo(()=>
|
|
13595
|
+
const calendarDefault = useMemo(()=>date_field_toCalendarDate(defaultValue), [
|
|
13353
13596
|
defaultValue
|
|
13354
13597
|
]);
|
|
13355
|
-
const calendarMin = useMemo(()=>
|
|
13598
|
+
const calendarMin = useMemo(()=>date_field_toCalendarDate(minValue) ?? void 0, [
|
|
13356
13599
|
minValue
|
|
13357
13600
|
]);
|
|
13358
|
-
const calendarMax = useMemo(()=>
|
|
13601
|
+
const calendarMax = useMemo(()=>date_field_toCalendarDate(maxValue) ?? void 0, [
|
|
13359
13602
|
maxValue
|
|
13360
13603
|
]);
|
|
13361
13604
|
const dateProps = {
|
|
@@ -13364,6 +13607,7 @@ function DateField({ ariaLabel, autoFocus, defaultValue, description, errorMessa
|
|
|
13364
13607
|
defaultValue: calendarDefault,
|
|
13365
13608
|
description,
|
|
13366
13609
|
errorMessage,
|
|
13610
|
+
granularity: "day",
|
|
13367
13611
|
id,
|
|
13368
13612
|
isDisabled,
|
|
13369
13613
|
isInvalid: isInvalid || null != errorMessage ? true : void 0,
|
|
@@ -13375,25 +13619,56 @@ function DateField({ ariaLabel, autoFocus, defaultValue, description, errorMessa
|
|
|
13375
13619
|
name,
|
|
13376
13620
|
onBlur,
|
|
13377
13621
|
onFocus,
|
|
13378
|
-
onChange: onChange ? (date)=>onChange(date ? date
|
|
13622
|
+
onChange: onChange ? (date)=>onChange(date ? toIsoDate(date) : null) : void 0,
|
|
13379
13623
|
validationBehavior: "aria",
|
|
13380
13624
|
value: calendarValue
|
|
13381
13625
|
};
|
|
13382
|
-
const
|
|
13626
|
+
const pickerState = useDatePickerState({
|
|
13383
13627
|
...dateProps,
|
|
13628
|
+
shouldCloseOnSelect: true
|
|
13629
|
+
});
|
|
13630
|
+
const groupRef = useRef(null);
|
|
13631
|
+
const { buttonProps: calendarButtonAria, calendarProps, descriptionProps, dialogProps, errorMessageProps, fieldProps: pickerFieldProps, groupProps, labelProps } = useDatePicker(dateProps, pickerState, groupRef);
|
|
13632
|
+
const fieldState = useDateFieldState({
|
|
13633
|
+
...pickerFieldProps,
|
|
13384
13634
|
createCalendar: createCalendar,
|
|
13385
13635
|
locale
|
|
13386
13636
|
});
|
|
13387
|
-
const
|
|
13637
|
+
const fieldRef = useRef(null);
|
|
13388
13638
|
const inputRef = useRef(null);
|
|
13389
|
-
const {
|
|
13390
|
-
...
|
|
13391
|
-
inputRef
|
|
13392
|
-
|
|
13639
|
+
const { fieldProps, inputProps } = useDateField({
|
|
13640
|
+
...pickerFieldProps,
|
|
13641
|
+
inputRef,
|
|
13642
|
+
name
|
|
13643
|
+
}, fieldState, fieldRef);
|
|
13644
|
+
const buttonRef = useRef(null);
|
|
13645
|
+
const { buttonProps: calendarButtonProps } = useButton({
|
|
13646
|
+
...calendarButtonAria,
|
|
13647
|
+
isDisabled: isDisabled || isReadOnly
|
|
13648
|
+
}, buttonRef);
|
|
13393
13649
|
const { focusProps, isFocusVisible } = useFocusRing({
|
|
13394
13650
|
within: true
|
|
13395
13651
|
});
|
|
13396
|
-
const
|
|
13652
|
+
const returnFocusRef = useRef(null);
|
|
13653
|
+
const invalid = pickerState.isInvalid;
|
|
13654
|
+
const { floatingStyles, context, refs: { setFloating, setReference } } = useFloating({
|
|
13655
|
+
open: pickerState.isOpen,
|
|
13656
|
+
onOpenChange: pickerState.setOpen,
|
|
13657
|
+
placement: "bottom-start",
|
|
13658
|
+
middleware: [
|
|
13659
|
+
react_offset(4),
|
|
13660
|
+
flip({
|
|
13661
|
+
padding: 8
|
|
13662
|
+
}),
|
|
13663
|
+
shift({
|
|
13664
|
+
padding: 8
|
|
13665
|
+
})
|
|
13666
|
+
],
|
|
13667
|
+
whileElementsMounted: autoUpdate
|
|
13668
|
+
});
|
|
13669
|
+
const { getFloatingProps } = useInteractions([
|
|
13670
|
+
useDismiss(context)
|
|
13671
|
+
]);
|
|
13397
13672
|
return /*#__PURE__*/ jsxs("div", {
|
|
13398
13673
|
className: date_field_module.root,
|
|
13399
13674
|
style: layoutStyle,
|
|
@@ -13404,8 +13679,14 @@ function DateField({ ariaLabel, autoFocus, defaultValue, description, errorMessa
|
|
|
13404
13679
|
children: label
|
|
13405
13680
|
}) : null,
|
|
13406
13681
|
/*#__PURE__*/ jsxs("div", {
|
|
13407
|
-
...mergeProps(
|
|
13408
|
-
|
|
13682
|
+
...mergeProps(groupProps, focusProps),
|
|
13683
|
+
onFocusCapture: (event)=>{
|
|
13684
|
+
if (event.target instanceof HTMLElement) returnFocusRef.current = event.target;
|
|
13685
|
+
},
|
|
13686
|
+
ref: (node)=>{
|
|
13687
|
+
groupRef.current = node;
|
|
13688
|
+
setReference(node);
|
|
13689
|
+
},
|
|
13409
13690
|
className: [
|
|
13410
13691
|
date_field_module.control,
|
|
13411
13692
|
invalid ? date_field_module.invalid : null,
|
|
@@ -13413,14 +13694,28 @@ function DateField({ ariaLabel, autoFocus, defaultValue, description, errorMessa
|
|
|
13413
13694
|
isDisabled ? date_field_module.disabled : null
|
|
13414
13695
|
].filter(Boolean).join(" "),
|
|
13415
13696
|
children: [
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13697
|
+
/*#__PURE__*/ jsx("div", {
|
|
13698
|
+
...fieldProps,
|
|
13699
|
+
ref: fieldRef,
|
|
13700
|
+
className: date_field_module.segments,
|
|
13701
|
+
children: fieldState.segments.map((segment, i)=>/*#__PURE__*/ jsx(Segment, {
|
|
13702
|
+
segment: segment,
|
|
13703
|
+
state: fieldState
|
|
13704
|
+
}, i))
|
|
13705
|
+
}),
|
|
13420
13706
|
/*#__PURE__*/ jsx("input", {
|
|
13421
13707
|
...inputProps,
|
|
13422
13708
|
ref: inputRef,
|
|
13423
13709
|
type: "hidden"
|
|
13710
|
+
}),
|
|
13711
|
+
/*#__PURE__*/ jsx("button", {
|
|
13712
|
+
...calendarButtonProps,
|
|
13713
|
+
ref: buttonRef,
|
|
13714
|
+
className: date_field_module.calendarButton,
|
|
13715
|
+
type: "button",
|
|
13716
|
+
children: /*#__PURE__*/ jsx(CalendarGlyph, {
|
|
13717
|
+
size: 16
|
|
13718
|
+
})
|
|
13424
13719
|
})
|
|
13425
13720
|
]
|
|
13426
13721
|
}),
|
|
@@ -13433,10 +13728,150 @@ function DateField({ ariaLabel, autoFocus, defaultValue, description, errorMessa
|
|
|
13433
13728
|
...errorMessageProps,
|
|
13434
13729
|
className: date_field_module.error,
|
|
13435
13730
|
children: errorMessage
|
|
13731
|
+
}) : null,
|
|
13732
|
+
pickerState.isOpen ? /*#__PURE__*/ jsx(FloatingPortal, {
|
|
13733
|
+
root: themeRoot(context.elements.domReference),
|
|
13734
|
+
children: /*#__PURE__*/ jsx(FloatingFocusManager, {
|
|
13735
|
+
context: context,
|
|
13736
|
+
initialFocus: -1,
|
|
13737
|
+
modal: false,
|
|
13738
|
+
returnFocus: returnFocusRef,
|
|
13739
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
13740
|
+
ref: setFloating,
|
|
13741
|
+
className: date_field_module.popover,
|
|
13742
|
+
style: floatingStyles,
|
|
13743
|
+
...getFloatingProps(),
|
|
13744
|
+
children: /*#__PURE__*/ jsx(CalendarDialog, {
|
|
13745
|
+
calendarProps: calendarProps,
|
|
13746
|
+
dialogProps: dialogProps,
|
|
13747
|
+
locale: locale,
|
|
13748
|
+
timeZone: timeZone
|
|
13749
|
+
})
|
|
13750
|
+
})
|
|
13751
|
+
})
|
|
13436
13752
|
}) : null
|
|
13437
13753
|
]
|
|
13438
13754
|
});
|
|
13439
13755
|
}
|
|
13756
|
+
function toIsoDate(date) {
|
|
13757
|
+
return toCalendar(toCalendarDate(date), new GregorianCalendar()).toString();
|
|
13758
|
+
}
|
|
13759
|
+
function CalendarDialog({ calendarProps, dialogProps, locale, timeZone }) {
|
|
13760
|
+
const ref = useRef(null);
|
|
13761
|
+
const { dialogProps: domDialogProps } = useDialog(dialogProps, ref);
|
|
13762
|
+
return /*#__PURE__*/ jsx("div", {
|
|
13763
|
+
...domDialogProps,
|
|
13764
|
+
ref: ref,
|
|
13765
|
+
className: date_field_module.dialog,
|
|
13766
|
+
children: /*#__PURE__*/ jsx(Calendar, {
|
|
13767
|
+
...calendarProps,
|
|
13768
|
+
locale: locale,
|
|
13769
|
+
timeZone: timeZone
|
|
13770
|
+
})
|
|
13771
|
+
});
|
|
13772
|
+
}
|
|
13773
|
+
function Calendar({ locale, timeZone, ...props }) {
|
|
13774
|
+
const state = useCalendarState({
|
|
13775
|
+
...props,
|
|
13776
|
+
createCalendar: createCalendar,
|
|
13777
|
+
locale
|
|
13778
|
+
});
|
|
13779
|
+
const { calendarProps, nextButtonProps, prevButtonProps, title } = useCalendar(props, state);
|
|
13780
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
13781
|
+
...calendarProps,
|
|
13782
|
+
className: date_field_module.calendar,
|
|
13783
|
+
children: [
|
|
13784
|
+
/*#__PURE__*/ jsxs("div", {
|
|
13785
|
+
className: date_field_module.calendarHeader,
|
|
13786
|
+
children: [
|
|
13787
|
+
/*#__PURE__*/ jsx(CalendarNavButton, {
|
|
13788
|
+
...prevButtonProps,
|
|
13789
|
+
direction: "left"
|
|
13790
|
+
}),
|
|
13791
|
+
/*#__PURE__*/ jsx("span", {
|
|
13792
|
+
"aria-hidden": "true",
|
|
13793
|
+
className: date_field_module.calendarTitle,
|
|
13794
|
+
children: title
|
|
13795
|
+
}),
|
|
13796
|
+
/*#__PURE__*/ jsx(CalendarNavButton, {
|
|
13797
|
+
...nextButtonProps,
|
|
13798
|
+
direction: "right"
|
|
13799
|
+
})
|
|
13800
|
+
]
|
|
13801
|
+
}),
|
|
13802
|
+
/*#__PURE__*/ jsx(CalendarGrid, {
|
|
13803
|
+
locale: locale,
|
|
13804
|
+
state: state,
|
|
13805
|
+
timeZone: timeZone
|
|
13806
|
+
})
|
|
13807
|
+
]
|
|
13808
|
+
});
|
|
13809
|
+
}
|
|
13810
|
+
function CalendarNavButton({ direction, ...props }) {
|
|
13811
|
+
const ref = useRef(null);
|
|
13812
|
+
const { buttonProps } = useButton(props, ref);
|
|
13813
|
+
return /*#__PURE__*/ jsx("button", {
|
|
13814
|
+
...buttonProps,
|
|
13815
|
+
ref: ref,
|
|
13816
|
+
className: date_field_module.calendarNav,
|
|
13817
|
+
type: "button",
|
|
13818
|
+
children: /*#__PURE__*/ jsx(Chevron, {
|
|
13819
|
+
direction: direction,
|
|
13820
|
+
size: 16
|
|
13821
|
+
})
|
|
13822
|
+
});
|
|
13823
|
+
}
|
|
13824
|
+
function CalendarGrid({ locale, state, timeZone }) {
|
|
13825
|
+
const { gridProps, headerProps, weekDays } = useCalendarGrid({}, state);
|
|
13826
|
+
const weeks = getWeeksInMonth(state.visibleRange.start, locale);
|
|
13827
|
+
return /*#__PURE__*/ jsxs("table", {
|
|
13828
|
+
...gridProps,
|
|
13829
|
+
className: date_field_module.calendarGrid,
|
|
13830
|
+
children: [
|
|
13831
|
+
/*#__PURE__*/ jsx("thead", {
|
|
13832
|
+
...headerProps,
|
|
13833
|
+
children: /*#__PURE__*/ jsx("tr", {
|
|
13834
|
+
children: weekDays.map((day, i)=>/*#__PURE__*/ jsx("th", {
|
|
13835
|
+
className: date_field_module.weekday,
|
|
13836
|
+
children: day
|
|
13837
|
+
}, i))
|
|
13838
|
+
})
|
|
13839
|
+
}),
|
|
13840
|
+
/*#__PURE__*/ jsx("tbody", {
|
|
13841
|
+
children: Array.from({
|
|
13842
|
+
length: weeks
|
|
13843
|
+
}, (_, week)=>/*#__PURE__*/ jsx("tr", {
|
|
13844
|
+
children: state.getDatesInWeek(week).map((date, i)=>date ? /*#__PURE__*/ jsx(CalendarCell, {
|
|
13845
|
+
date: date,
|
|
13846
|
+
state: state,
|
|
13847
|
+
timeZone: timeZone
|
|
13848
|
+
}, date.toString()) : /*#__PURE__*/ jsx("td", {}, i))
|
|
13849
|
+
}, week))
|
|
13850
|
+
})
|
|
13851
|
+
]
|
|
13852
|
+
});
|
|
13853
|
+
}
|
|
13854
|
+
function CalendarCell({ date, state, timeZone }) {
|
|
13855
|
+
const ref = useRef(null);
|
|
13856
|
+
const { buttonProps, cellProps, formattedDate, isDisabled, isOutsideVisibleRange, isSelected, isUnavailable } = useCalendarCell({
|
|
13857
|
+
date
|
|
13858
|
+
}, state, ref);
|
|
13859
|
+
return /*#__PURE__*/ jsx("td", {
|
|
13860
|
+
...cellProps,
|
|
13861
|
+
className: date_field_module.calendarCellSlot,
|
|
13862
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
13863
|
+
...buttonProps,
|
|
13864
|
+
ref: ref,
|
|
13865
|
+
className: date_field_module.calendarCell,
|
|
13866
|
+
"data-disabled": isDisabled || isUnavailable || void 0,
|
|
13867
|
+
"data-outside": isOutsideVisibleRange || void 0,
|
|
13868
|
+
"data-selected": isSelected || void 0,
|
|
13869
|
+
"data-today": isToday(date, timeZone) || void 0,
|
|
13870
|
+
hidden: isOutsideVisibleRange,
|
|
13871
|
+
children: formattedDate
|
|
13872
|
+
})
|
|
13873
|
+
});
|
|
13874
|
+
}
|
|
13440
13875
|
function Segment({ segment, state }) {
|
|
13441
13876
|
const ref = useRef(null);
|
|
13442
13877
|
const { segmentProps } = useDateSegment(segment, state, ref);
|
|
@@ -13709,4 +14144,4 @@ function useDensity(options) {
|
|
|
13709
14144
|
function useFontScale(options) {
|
|
13710
14145
|
return useThemePreference("fontScale", options);
|
|
13711
14146
|
}
|
|
13712
|
-
export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AppShell, BreadcrumbItem, Breadcrumbs, ConfirmDialog, ConfirmPopover, ConfirmProvider, DateField, Dialog, Drawer, GlobalSearch, ListBox, ListBoxFilter, ListItem, ListItemDivider, ListItemGroup, ListItemStatic, MarkProvider, Markable, Menu, MenuItem, MenuSection, MenuSeparator, MenuSubTrigger, Nav, NavItem, Ox0Provider, Popover, PopoverContent, PopoverTrigger, SearchResult, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, TagGroup, ToastProvider, Tooltip, TooltipContent, TooltipTrigger, badge_Badge as Badge, banner_Banner as Banner, box_Box as Box, button_Button as Button, button_group_ButtonGroup as ButtonGroup, caption_Caption as Caption, card_Card as Card, checkbox_Checkbox as Checkbox, checkbox_group_CheckboxGroup as CheckboxGroup, checkbox_group_GroupCheckbox as GroupCheckbox, code_Code as Code, code_block_CodeBlock as CodeBlock, combobox_Combobox as Combobox, createTextStyles, date_time_DateRange as DateRange, date_time_DateTime as DateTime, defaultUiMessages, defineSearchSource, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, drop_zone_DropZone as DropZone, field_group_FieldGroup as FieldGroup, file_trigger_FileTrigger as FileTrigger, grid_Grid as Grid, heading_Heading as Heading, icon_button_IconButton as IconButton, icon_label_IconLabel as IconLabel, icon_toggle_IconToggle as IconToggle, inline_Inline as Inline, keyboard_Keyboard as Keyboard, label_Label as Label, link_Link as Link, matchSearchItems, matchesAccept, number_field_NumberField as NumberField, numeric_Numeric as Numeric, page_Page as Page, page_PageHeader as PageHeader, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, search_field_SearchField as SearchField, select_Select as Select, skeleton_Skeleton as Skeleton, slider_Slider as Slider, spinner_Spinner as Spinner, splitLayoutItemProps, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, tag_group_Tag as Tag, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, useBorders, useBreakpointUp, useColorScheme, useConfirm, useDateFormat, useDensity, useFlexItem, useFontScale, useGlobalSearch, useGridItem, useLayoutItem, useListItemState, useMark, useNeutralTheme, usePlacement, useResponsiveValue, useSizing, useSpacing, useSurface, useToast };
|
|
14147
|
+
export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AppShell, BreadcrumbItem, Breadcrumbs, ConfirmDialog, ConfirmPopover, ConfirmProvider, DateField, Dialog, Drawer, GlobalSearch, ListBox, ListBoxFilter, ListItem, ListItemDivider, ListItemGroup, ListItemStatic, MarkProvider, Markable, Menu, MenuItem, MenuSection, MenuSeparator, MenuSubTrigger, Nav, NavItem, Ox0Provider, Popover, PopoverContent, PopoverTrigger, SearchResult, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, TagGroup, ToastProvider, Tooltip, TooltipContent, TooltipTrigger, badge_Badge as Badge, banner_Banner as Banner, box_Box as Box, button_Button as Button, button_group_ButtonGroup as ButtonGroup, caption_Caption as Caption, card_Card as Card, checkbox_Checkbox as Checkbox, checkbox_group_CheckboxGroup as CheckboxGroup, checkbox_group_GroupCheckbox as GroupCheckbox, code_Code as Code, code_block_CodeBlock as CodeBlock, combobox_Combobox as Combobox, createTextStyles, date_time_DateRange as DateRange, date_time_DateTime as DateTime, defaultUiMessages, defineSearchSource, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, drop_zone_DropZone as DropZone, field_group_FieldGroup as FieldGroup, file_trigger_FileTrigger as FileTrigger, grid_Grid as Grid, heading_Heading as Heading, icon_button_IconButton as IconButton, icon_label_IconLabel as IconLabel, icon_toggle_IconToggle as IconToggle, inline_Inline as Inline, keyboard_Keyboard as Keyboard, label_Label as Label, link_Link as Link, matchSearchItems, matchesAccept, number_field_NumberField as NumberField, numeric_Numeric as Numeric, page_Page as Page, page_PageHeader as PageHeader, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, search_field_SearchField as SearchField, select_Select as Select, skeleton_Skeleton as Skeleton, slider_Slider as Slider, spinner_Spinner as Spinner, splitLayoutItemProps, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, tag_group_Tag as Tag, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, useBorders, useBreakpointUp, useColorScheme, useConfirm, useDateFormat, useDensity, useFlexItem, useFontScale, useGlobalSearch, useGridItem, useLayoutItem, useListItemState, useMark, useNeutralTheme, useOptionalToast, usePlacement, useResponsiveValue, useSizing, useSpacing, useSurface, useToast };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ox0/ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/esturcke/ox0-platform.git",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@internationalized/date": "^3.12.4",
|
|
26
26
|
"react-aria": "^3.52.1",
|
|
27
27
|
"react-stately": "^3.50.0",
|
|
28
|
+
"@ox0/hooks": "0.4.0",
|
|
28
29
|
"@ox0/i18n": "0.4.0",
|
|
29
|
-
"@ox0/tokens": "0.7.0"
|
|
30
|
-
"@ox0/hooks": "0.3.0"
|
|
30
|
+
"@ox0/tokens": "0.7.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": "^19.0.0",
|