@okam/stack-ui 1.43.0 → 1.44.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/CHANGELOG.md +45 -0
- package/components/Popover/interface.d.ts +3 -3
- package/components/TagGroup/interface.d.ts +2 -2
- package/index.d.ts +2 -0
- package/index145.js +1 -1
- package/index145.mjs +1 -1
- package/index149.mjs +1 -1
- package/index155.js +1 -1
- package/index155.mjs +4 -4
- package/index157.js +1 -1
- package/index157.mjs +4 -4
- package/index158.js +1 -1
- package/index158.mjs +2 -2
- package/index159.js +1 -1
- package/index159.mjs +1 -1
- package/index160.js +1 -1
- package/index160.mjs +1 -1
- package/index161.js +1 -2
- package/index161.mjs +39 -12
- package/index162.js +1 -1
- package/index162.mjs +12 -38
- package/index163.js +2 -1
- package/index163.mjs +26 -11
- package/index164.js +2 -1
- package/index164.mjs +38 -13
- package/index165.js +1 -1
- package/index165.mjs +21 -38
- package/index166.js +1 -2
- package/index166.mjs +44 -24
- package/index167.js +1 -1
- package/index167.mjs +25 -22
- package/index168.js +1 -1
- package/index168.mjs +40 -45
- package/index169.js +2 -1
- package/index169.mjs +57 -25
- package/index170.js +1 -1
- package/index170.mjs +39 -41
- package/index171.js +1 -2
- package/index171.mjs +30 -57
- package/index172.js +2 -1
- package/index172.mjs +8 -38
- package/index173.js +2 -1
- package/index173.mjs +9 -30
- package/index174.js +1 -2
- package/index174.mjs +32 -9
- package/index175.js +1 -2
- package/index175.mjs +14 -9
- package/index176.js +1 -1
- package/index176.mjs +16 -31
- package/index177.js +1 -1
- package/index177.mjs +11 -15
- package/index178.js +2 -1
- package/index178.mjs +47 -16
- package/index179.js +1 -2
- package/index179.mjs +36 -46
- package/index180.js +1 -1
- package/index180.mjs +31 -36
- package/index181.js +1 -1
- package/index181.mjs +20 -31
- package/index182.js +1 -1
- package/index182.mjs +32 -18
- package/index183.js +1 -1
- package/index183.mjs +14 -36
- package/index185.js +1 -1
- package/index185.mjs +3 -3
- package/index186.js +1 -1
- package/index186.mjs +23 -23
- package/index187.js +1 -1
- package/index187.mjs +12 -12
- package/index188.js +1 -1
- package/index188.mjs +104 -105
- package/index191.js +1 -1
- package/index191.mjs +203 -5
- package/index192.js +1 -2
- package/index192.mjs +62 -47
- package/index193.js +1 -1
- package/index193.mjs +141 -9
- package/index194.js +1 -1
- package/index194.mjs +110 -189
- package/index195.js +1 -1
- package/index195.mjs +213 -53
- package/index196.js +1 -1
- package/index196.mjs +176 -129
- package/index197.js +1 -1
- package/index197.mjs +61 -116
- package/index198.js +1 -1
- package/index198.mjs +265 -210
- package/index199.js +1 -1
- package/index199.mjs +88 -180
- package/index2.mjs +35 -35
- package/index200.js +1 -1
- package/index200.mjs +179 -60
- package/index201.js +1 -1
- package/index201.mjs +71 -266
- package/index202.js +1 -1
- package/index202.mjs +52 -92
- package/index203.js +1 -1
- package/index203.mjs +120 -182
- package/index204.js +1 -1
- package/index204.mjs +108 -76
- package/index205.js +1 -1
- package/index205.mjs +114 -50
- package/index206.js +1 -1
- package/index206.mjs +64 -118
- package/index207.js +1 -1
- package/index207.mjs +105 -111
- package/index208.js +1 -1
- package/index208.mjs +47 -117
- package/index209.js +1 -1
- package/index209.mjs +88 -67
- package/index210.js +1 -1
- package/index210.mjs +68 -108
- package/index211.js +1 -1
- package/index211.mjs +45 -41
- package/index212.js +1 -1
- package/index212.mjs +83 -77
- package/index213.js +5 -1
- package/index213.mjs +59 -49
- package/index214.js +1 -1
- package/index214.mjs +12 -57
- package/index215.js +1 -1
- package/index215.mjs +5 -99
- package/index216.js +2 -5
- package/index216.mjs +48 -79
- package/index217.js +1 -1
- package/index217.mjs +9 -130
- package/index218.js +1 -1
- package/index218.mjs +52 -184
- package/index219.js +1 -1
- package/index219.mjs +130 -121
- package/index220.js +1 -1
- package/index220.mjs +14 -134
- package/index221.js +1 -1
- package/index221.mjs +41 -73
- package/index222.js +1 -1
- package/index222.mjs +231 -14
- package/index223.js +1 -1
- package/index223.mjs +120 -90
- package/index224.js +1 -1
- package/index224.mjs +66 -100
- package/index225.js +7 -1
- package/index225.mjs +439 -4
- package/index226.js +1 -1
- package/index226.mjs +58 -3
- package/index227.js +1 -1
- package/index227.mjs +52 -123
- package/index228.js +1 -1
- package/index228.mjs +4 -30
- package/index229.js +1 -1
- package/index229.mjs +24 -50
- package/index230.js +1 -1
- package/index230.mjs +46 -43
- package/index231.js +1 -1
- package/index231.mjs +5 -37
- package/index232.js +1 -1
- package/index232.mjs +24 -113
- package/index233.js +1 -1
- package/index233.mjs +11 -76
- package/index234.js +1 -1
- package/index234.mjs +4 -101
- package/index235.js +1 -1
- package/index235.mjs +15 -98
- package/index236.js +1 -1
- package/index236.mjs +36 -119
- package/index237.js +1 -1
- package/index237.mjs +41 -70
- package/index238.js +1 -7
- package/index238.mjs +27 -434
- package/index239.js +1 -1
- package/index239.mjs +30 -57
- package/index240.js +1 -1
- package/index240.mjs +11 -4
- package/index241.js +1 -1
- package/index241.mjs +27 -23
- package/index242.js +1 -1
- package/index242.mjs +15 -47
- package/index243.js +1 -1
- package/index243.mjs +9 -5
- package/index244.js +1 -1
- package/index244.mjs +6 -24
- package/index245.js +1 -1
- package/index245.mjs +5 -12
- package/index246.js +1 -1
- package/index246.mjs +7 -4
- package/index247.js +1 -1
- package/index247.mjs +29 -14
- package/index248.js +1 -1
- package/index248.mjs +17 -42
- package/index249.js +1 -1
- package/index249.mjs +41 -55
- package/index250.js +1 -1
- package/index250.mjs +7 -42
- package/index251.js +1 -1
- package/index251.mjs +15 -31
- package/index252.js +1 -1
- package/index252.mjs +3 -32
- package/index253.js +1 -1
- package/index253.mjs +19 -14
- package/index254.js +1 -1
- package/index254.mjs +34 -10
- package/index255.js +1 -1
- package/index255.mjs +21 -28
- package/index256.js +1 -1
- package/index256.mjs +26 -14
- package/index257.js +1 -1
- package/index257.mjs +129 -8
- package/index258.js +1 -1
- package/index258.mjs +190 -6
- package/index259.js +1 -1
- package/index259.mjs +9 -5
- package/index260.js +1 -1
- package/index260.mjs +3 -7
- package/index261.js +1 -1
- package/index261.mjs +35 -28
- package/index262.js +1 -1
- package/index262.mjs +5 -17
- package/index263.js +1 -1
- package/index263.mjs +27 -42
- package/index264.js +1 -1
- package/index264.mjs +6 -8
- package/index265.js +1 -1
- package/index265.mjs +124 -16
- package/index266.js +1 -1
- package/index266.mjs +135 -3
- package/index267.js +1 -1
- package/index267.mjs +75 -19
- package/index268.js +1 -1
- package/index268.mjs +12 -32
- package/index269.js +1 -1
- package/index269.mjs +93 -20
- package/index270.js +1 -1
- package/index270.mjs +105 -53
- package/index271.js +1 -1
- package/index271.mjs +4 -27
- package/index272.js +1 -1
- package/index272.mjs +3 -144
- package/index273.js +1 -1
- package/index273.mjs +119 -207
- package/index274.js +1 -1
- package/index274.mjs +29 -22
- package/index275.js +1 -1
- package/index275.mjs +51 -49
- package/index276.js +1 -1
- package/index276.mjs +43 -45
- package/index277.js +1 -6
- package/index277.mjs +35 -111
- package/index278.js +1 -1
- package/index278.mjs +114 -72
- package/index279.js +1 -1
- package/index279.mjs +76 -73
- package/index28.js +1 -1
- package/index28.mjs +38 -94
- package/index280.js +1 -1
- package/index280.mjs +101 -7
- package/index281.js +1 -1
- package/index281.mjs +98 -12
- package/index282.js +1 -1
- package/index282.mjs +141 -28
- package/index283.js +1 -1
- package/index283.mjs +213 -9
- package/index284.js +1 -1
- package/index284.mjs +20 -131
- package/index285.js +1 -1
- package/index285.mjs +49 -43
- package/index286.js +1 -1
- package/index286.mjs +43 -228
- package/index287.js +6 -1
- package/index287.mjs +112 -8
- package/index288.js +1 -1
- package/index288.mjs +72 -4
- package/index289.js +1 -1
- package/index289.mjs +71 -33
- package/index29.js +1 -1
- package/index29.mjs +2 -2
- package/index290.js +1 -1
- package/index290.mjs +7 -5
- package/index291.js +1 -1
- package/index291.mjs +11 -29
- package/index292.js +1 -1
- package/index292.mjs +31 -6
- package/index293.js +1 -1
- package/index293.mjs +3 -4
- package/index294.js +1 -1
- package/index294.mjs +4 -3
- package/index30.js +1 -1
- package/index30.mjs +1 -1
- package/index329.js +1 -1
- package/index329.mjs +17 -59
- package/index33.js +1 -1
- package/index33.mjs +2 -2
- package/index330.js +1 -1
- package/index330.mjs +30 -7
- package/index331.js +1 -1
- package/index331.mjs +63 -27
- package/index332.js +1 -1
- package/index332.mjs +15 -87
- package/index333.js +1 -1
- package/index333.mjs +48 -7
- package/index334.js +1 -1
- package/index334.mjs +7 -26
- package/index335.js +1 -1
- package/index335.mjs +26 -32
- package/index336.js +1 -1
- package/index336.mjs +87 -6
- package/index337.js +1 -1
- package/index337.mjs +9 -6
- package/index338.js +1 -1
- package/index338.mjs +23 -48
- package/index339.js +1 -1
- package/index339.mjs +32 -28
- package/index34.js +1 -1
- package/index34.mjs +3 -3
- package/index340.js +1 -1
- package/index340.mjs +6 -15
- package/index341.js +1 -1
- package/index341.mjs +6 -66
- package/index342.js +1 -1
- package/index342.mjs +29 -54
- package/index343.js +1 -1
- package/index343.mjs +63 -51
- package/index344.js +1 -1
- package/index344.mjs +44 -271
- package/index345.js +1 -1
- package/index345.mjs +52 -18
- package/index346.js +1 -1
- package/index346.mjs +281 -21
- package/index347.js +1 -1
- package/index347.mjs +20 -29
- package/index35.js +1 -1
- package/index35.mjs +1 -1
- package/index36.js +1 -1
- package/index36.mjs +2 -2
- package/index38.js +1 -1
- package/index38.mjs +3 -3
- package/index39.js +1 -1
- package/index39.mjs +3 -3
- package/index40.js +1 -1
- package/index40.mjs +3 -3
- package/index42.js +1 -1
- package/index42.mjs +1 -1
- package/index44.js +1 -1
- package/index44.mjs +2 -2
- package/index45.js +1 -1
- package/index45.mjs +1 -1
- package/index48.js +1 -1
- package/index48.mjs +2 -2
- package/index52.js +1 -1
- package/index52.mjs +1 -1
- package/index54.js +1 -1
- package/index54.mjs +3 -3
- package/index56.js +1 -1
- package/index56.mjs +2 -2
- package/index57.js +1 -1
- package/index57.mjs +1 -1
- package/index59.js +1 -1
- package/index59.mjs +2 -2
- package/index8.js +1 -1
- package/index8.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
+
## 1.44.1 (2026-01-16)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **admin-bar:** add AdminBar with draft mode support ([289427e](https://github.com/OKAMca/stack/commit/289427e))
|
|
6
|
+
- **next-component:** nuqs wrapper for react-aria ([d63f2f7](https://github.com/OKAMca/stack/commit/d63f2f7))
|
|
7
|
+
- **stack-ui:** listbox react hook form integration ([f79cffc](https://github.com/OKAMca/stack/commit/f79cffc))
|
|
8
|
+
|
|
9
|
+
### 🩹 Fixes
|
|
10
|
+
|
|
11
|
+
- replace safe import to avoid weird externalization issues ([2c1bf26](https://github.com/OKAMca/stack/commit/2c1bf26))
|
|
12
|
+
- **stack-ui:** remove breaking changes tag ([02ef258](https://github.com/OKAMca/stack/commit/02ef258))
|
|
13
|
+
- **stack-ui:** stop bundling okam libs ([57c2f4f](https://github.com/OKAMca/stack/commit/57c2f4f))
|
|
14
|
+
- adminbar safe draft mode handling ([#385](https://github.com/OKAMca/stack/pull/385))
|
|
15
|
+
- **directus-next:** draft route handler uses zod, returns draft isEnabled whenever possible ([#376](https://github.com/OKAMca/stack/pull/376))
|
|
16
|
+
- **stack-ui:** props order fix ([b129ebe](https://github.com/OKAMca/stack/commit/b129ebe))
|
|
17
|
+
- **stack-ui:** add icon + error icon to text input ([485cd9e](https://github.com/OKAMca/stack/commit/485cd9e))
|
|
18
|
+
|
|
19
|
+
### ❤️ Thank You
|
|
20
|
+
|
|
21
|
+
- Marie-Maxime Tanguay @marie-maxime
|
|
22
|
+
- Max Hilland
|
|
23
|
+
- Pierre-Olivier Clerson @poclerson
|
|
24
|
+
- poclerson
|
|
25
|
+
|
|
26
|
+
## 1.44.0 (2026-01-14)
|
|
27
|
+
|
|
28
|
+
### 🚀 Features
|
|
29
|
+
|
|
30
|
+
- **stack-ui:** listbox react hook form integration ([f79cffc](https://github.com/OKAMca/stack/commit/f79cffc))
|
|
31
|
+
- ⚠️ React 19 + Next.js 15 upgrade for all @okam/* packages ([#369](https://github.com/OKAMca/stack/pull/369))
|
|
32
|
+
- Consumers must now have react and react-dom in their own
|
|
33
|
+
|
|
34
|
+
### 🩹 Fixes
|
|
35
|
+
|
|
36
|
+
- **stack-ui:** props order fix ([b129ebe](https://github.com/OKAMca/stack/commit/b129ebe))
|
|
37
|
+
- **stack-ui:** add icon + error icon to text input ([485cd9e](https://github.com/OKAMca/stack/commit/485cd9e))
|
|
38
|
+
- **stack-ui:** typing fixes ([dc7b453](https://github.com/OKAMca/stack/commit/dc7b453))
|
|
39
|
+
|
|
40
|
+
### ❤️ Thank You
|
|
41
|
+
|
|
42
|
+
- Marie-Maxime Tanguay @marie-maxime
|
|
43
|
+
- Max Hilland
|
|
44
|
+
- Pierre-Olivier Clerson @poclerson
|
|
45
|
+
|
|
1
46
|
# 1.43.0 (2026-01-13)
|
|
2
47
|
|
|
3
48
|
### 🚀 Features
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ReactElement, RefObject, SVGProps } from 'react';
|
|
1
|
+
import { ReactElement, ReactNode, RefObject, SVGProps } from 'react';
|
|
2
2
|
import { AriaPopoverProps, AriaPositionProps, FocusScopeProps, OverlayTriggerProps } from 'react-aria';
|
|
3
3
|
import { OverlayTriggerProps as AriaOverlayTriggerProps, OverlayTriggerState } from 'react-stately';
|
|
4
4
|
import { TToken } from '../../providers/Theme/interface';
|
|
5
5
|
import { TDefaultComponent } from '../../types/components';
|
|
6
6
|
import { TButtonProps } from '../Button/interface';
|
|
7
7
|
|
|
8
|
-
export interface TPopoverButtonProps<T = TToken> extends TDefaultComponent<T>, TButtonProps<T>, AriaOverlayTriggerProps, AriaPositionProps, OverlayTriggerProps, Pick<AriaPopoverProps, 'shouldCloseOnInteractOutside' | 'isKeyboardDismissDisabled'> {
|
|
8
|
+
export interface TPopoverButtonProps<T = TToken> extends TDefaultComponent<T>, TButtonProps<T>, AriaOverlayTriggerProps, Omit<AriaPositionProps, 'targetRef' | 'overlayRef'>, OverlayTriggerProps, Pick<AriaPopoverProps, 'shouldCloseOnInteractOutside' | 'isKeyboardDismissDisabled'> {
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated Pass button props directly to the component. `buttonProps.children` can now be passed as `label` prop.
|
|
11
11
|
*/
|
|
12
12
|
buttonProps?: TButtonProps;
|
|
13
|
-
label:
|
|
13
|
+
label: ReactNode;
|
|
14
14
|
children: ReactElement;
|
|
15
15
|
}
|
|
16
16
|
export interface TPopoverProps<T = TToken> extends TDefaultComponent<T>, Omit<AriaPopoverProps, 'popoverRef' | 'triggerRef'>, FocusScopeProps {
|
|
@@ -6,9 +6,9 @@ import { TToken } from '../../providers/Theme/interface';
|
|
|
6
6
|
import { TDefaultComponent } from '../../types/components';
|
|
7
7
|
import { TButtonProps } from '../Button/interface';
|
|
8
8
|
|
|
9
|
-
type TTagCollectionElement<I extends object> = CollectionElement<I> & {
|
|
9
|
+
type TTagCollectionElement<I extends object> = (CollectionElement<I> & {
|
|
10
10
|
removeButtonProps?: TButtonProps;
|
|
11
|
-
};
|
|
11
|
+
}) | null;
|
|
12
12
|
export type TTagItem<I extends object> = I & {
|
|
13
13
|
removeButtonProps?: TButtonProps;
|
|
14
14
|
href?: string;
|
package/index.d.ts
CHANGED
|
@@ -91,6 +91,8 @@ export type { TTabListProps, TTabProps, TTabPanelProps } from './components/TabL
|
|
|
91
91
|
export type { TDefaultNode, TDefaultItemComponent, TDefaultNodeComponent, TDefaultSectionComponent, } from './types/react-stately';
|
|
92
92
|
export type { TListBoxProps, TListBoxSectionProps } from './components/fields/ListBox/interface';
|
|
93
93
|
export type { TOptionProps } from './components/fields/Option/interface';
|
|
94
|
+
export type { TPopoverButtonProps } from './components/Popover/interface';
|
|
95
|
+
export type { TPopoverProps } from './components/Popover/interface';
|
|
94
96
|
export type { TIconProps } from './components/Icon/interface';
|
|
95
97
|
export type { TShareButtonProps } from './components/ShareButton/interface';
|
|
96
98
|
export { default as generateUtmTags } from './components/ShareButton/utils/generateUtmTags';
|
package/index145.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),y=require("@react-aria/accordion"),R=require("react"),m=require("react-aria"),T=require("react-use"),b=require("./index94.js"),F=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),y=require("@react-aria/accordion"),R=require("react"),m=require("react-aria"),T=require("react-use"),b=require("./index94.js"),F=require("./index214.js"),i=require("./index37.js"),w=require("./index6.js"),C=require("./index24.js"),I=c=>{const{item:r,tokens:l,customTheme:h}=c,{props:x,rendered:k,key:f}=r,{icon:u,title:j,onOpenChange:a,tokens:q,themeName:g}=x??{},{themeName:t=g}=c,d=R.useRef(null),{state:s,TransitionAnimation:N=F}=b.useAccordionCtx(),{buttonProps:{onClick:K,onKeyDown:B,onPointerDown:D,...$},regionProps:p}=y.useAccordionItem(c,s,d),o=s.selectionManager.selectedKeys.has(f),n={...l,isOpen:o,...q},A=P=>{P.continuePropagation(),s.selectionManager.select(r.key),s.toggleKey(r.key)};return T.useUpdateEffect(()=>{a==null||a(o)},[o]),e.jsxs(i.default,{themeName:`${t}.container`,tokens:n,customTheme:h,children:[e.jsx(m.FocusRing,{focusRingClass:"has-focus-ring",children:e.jsxs(w.ButtonWithForwardRef,{...$,"aria-expanded":o,handlePress:A,ref:d,themeName:`${t}.button`,tokens:n,children:[e.jsx(i.default,{themeName:`${t}.title`,tokens:n,children:j}),u&&e.jsx(i.default,{themeName:`${t}.icon`,tokens:n,children:e.jsx(C,{icon:u})})]})}),e.jsx(N,{isVisible:o,themeName:`${t}.region`,...p,tokens:n,children:e.jsx(i.default,{themeName:`${t}.content`,tokens:n,children:e.jsx(m.FocusScope,{autoFocus:!0,children:k})})})]})};module.exports=I;
|
package/index145.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useRef as F } from "react";
|
|
|
5
5
|
import { FocusRing as I, FocusScope as R } from "react-aria";
|
|
6
6
|
import { useUpdateEffect as w } from "react-use";
|
|
7
7
|
import { useAccordionCtx as B } from "./index94.mjs";
|
|
8
|
-
import C from "./
|
|
8
|
+
import C from "./index214.mjs";
|
|
9
9
|
import i from "./index37.mjs";
|
|
10
10
|
import { ButtonWithForwardRef as D } from "./index6.mjs";
|
|
11
11
|
import K from "./index24.mjs";
|
package/index149.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import a, { forwardRef as W, useState as P, useRef as u, useEffect as _,
|
|
1
|
+
import a, { forwardRef as W, useState as P, useRef as u, useEffect as _, createContext as q, useLayoutEffect as Q } from "react";
|
|
2
2
|
import { S as X } from "./index188.mjs";
|
|
3
3
|
import { g as Y, m as Z, a as ee, u as re } from "./index189.mjs";
|
|
4
4
|
import { d as D, w as te, n as ne, b as se, a as ae, e as V, u as ie } from "./index190.mjs";
|
package/index155.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),h=require("react-aria"),k=require("./index89.js"),l=require("./index37.js"),j=require("./index3.js"),N=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),h=require("react-aria"),k=require("./index89.js"),l=require("./index37.js"),j=require("./index3.js"),N=require("./index187.js"),d=({item:o,state:a,themeName:n="li"})=>{const r=p.useRef(null),{optionProps:e,isFocusVisible:i}=h.useOption({key:o.key},a,r),c=k(n);return t.jsx(j.TypographyWithForwardRef,{as:"li",...e,tokens:{className:`${c} ${i?"has-focus-ring":""}`},ref:r,children:o.rendered})},y=o=>{const{children:a,listBoxRef:n,themeName:r,...e}=o;return t.jsx(h.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:t.jsx(l.BoxWithForwardRef,{...e,ref:n,as:"ul",themeName:`${r}.ul`,children:a})})},B=o=>{const a=p.useRef(null),{listBoxRef:n=a,state:r,themeName:e="option",optionsWithHeaders:i}=o,{listBoxProps:c}=h.useListBox(o,r,n),m=Array.from(r.collection),$=N.useListboxSections(m,i||[]);return(i==null?void 0:i.some(s=>{var u;return(u=s.key)==null?void 0:u.includes("header-")}))?t.jsx(y,{...c,listBoxRef:n,themeName:e,children:$.map(s=>{var x;const u=s.header?`section-${s.header.key}`:`section-${((x=s.items[0])==null?void 0:x.key)||"empty"}`;return t.jsx(l.default,{as:"li",themeName:`${e}.group`,children:t.jsxs(l.default,{as:"section",themeName:`${e}.section`,children:[s.header&&t.jsx(j.default,{as:"header",themeName:`${e}.headerText`,children:s.header.rendered},s.header.key),t.jsx(l.default,{as:"ul",themeName:`${e}.list`,children:s.items.map(f=>t.jsx(d,{themeName:`${e}.li`,item:f,state:r},String(f.key)))})]})},u)})}):t.jsx(y,{...c,listBoxRef:n,themeName:e,children:m.map(s=>t.jsx(d,{themeName:`${e}.li`,item:s,state:r},s.key))})};exports.ListBox=B;exports.Option=d;
|
package/index155.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as $ } from "react/jsx-runtime";
|
|
3
3
|
import y from "react";
|
|
4
|
-
import { useListBox as N,
|
|
4
|
+
import { useListBox as N, FocusScope as k, useOption as B } from "react-aria";
|
|
5
5
|
import R from "./index89.mjs";
|
|
6
6
|
import h, { BoxWithForwardRef as F } from "./index37.mjs";
|
|
7
7
|
import g, { TypographyWithForwardRef as L } from "./index3.mjs";
|
|
8
|
-
import { useListboxSections as S } from "./
|
|
8
|
+
import { useListboxSections as S } from "./index187.mjs";
|
|
9
9
|
const p = ({ item: s, state: i, themeName: n = "li" }) => {
|
|
10
|
-
const t = y.useRef(null), { optionProps: e, isFocusVisible: a } =
|
|
10
|
+
const t = y.useRef(null), { optionProps: e, isFocusVisible: a } = B({ key: s.key }, i, t), m = R(n);
|
|
11
11
|
return /* @__PURE__ */ o(
|
|
12
12
|
L,
|
|
13
13
|
{
|
|
@@ -20,7 +20,7 @@ const p = ({ item: s, state: i, themeName: n = "li" }) => {
|
|
|
20
20
|
);
|
|
21
21
|
}, f = (s) => {
|
|
22
22
|
const { children: i, listBoxRef: n, themeName: t, ...e } = s;
|
|
23
|
-
return /* @__PURE__ */ o(
|
|
23
|
+
return /* @__PURE__ */ o(k, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ o(F, { ...e, ref: n, as: "ul", themeName: `${t}.ul`, children: i }) });
|
|
24
24
|
}, C = (s) => {
|
|
25
25
|
const i = y.useRef(null), { listBoxRef: n = i, state: t, themeName: e = "option", optionsWithHeaders: a } = s, { listBoxProps: m } = N(s, t, n), l = Array.from(t.collection), x = S(l, a || []);
|
|
26
26
|
return (a == null ? void 0 : a.some((r) => {
|
package/index157.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),V=require("./index158.js"),v=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),V=require("./index158.js"),v=require("./index223.js"),f=require("./index224.js"),y=require("./index225.js"),I=require("./index226.js");function h(e,t,i){let s=v.useFormValidationState({...e,value:t.isSelected}),{isInvalid:r,validationErrors:P,validationDetails:m}=s.displayValidation,{labelProps:b,inputProps:p,isSelected:l,isPressed:S,isDisabled:o,isReadOnly:n}=I.useToggle({...e,isInvalid:r},t,i);f.useFormValidation(e,s,i);let{isIndeterminate:q,isRequired:d,validationBehavior:u="aria"}=e;c.useEffect(()=>{i.current&&(i.current.indeterminate=!!q)});let{pressProps:g}=y.usePress({isDisabled:o||n,onPress(){let{[v.privateValidationStateProp]:a}=e,{commitValidation:D}=a||s;D()}});return{labelProps:V.mergeProps(b,g,c.useMemo(()=>({onMouseDown:a=>a.preventDefault()}),[])),inputProps:{...p,checked:l,"aria-required":d&&u==="aria"||void 0,required:d&&u==="native"},isSelected:l,isPressed:S,isDisabled:o,isReadOnly:n,isInvalid:r,validationErrors:P,validationDetails:m}}exports.useCheckbox=h;
|
package/index157.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEffect as x, useMemo as D } from "react";
|
|
2
2
|
import { mergeProps as S } from "./index158.mjs";
|
|
3
|
-
import { useFormValidationState as V, privateValidationStateProp as I } from "./
|
|
4
|
-
import { useFormValidation as g } from "./
|
|
5
|
-
import { usePress as h } from "./
|
|
6
|
-
import { useToggle as q } from "./
|
|
3
|
+
import { useFormValidationState as V, privateValidationStateProp as I } from "./index223.mjs";
|
|
4
|
+
import { useFormValidation as g } from "./index224.mjs";
|
|
5
|
+
import { usePress as h } from "./index225.mjs";
|
|
6
|
+
import { useToggle as q } from "./index226.mjs";
|
|
7
7
|
function M(e, t, i) {
|
|
8
8
|
let r = V({
|
|
9
9
|
...e,
|
package/index158.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index231.js"),l=require("./index185.js"),f=require("./index235.js");function u(...i){let r={...i[0]};for(let n=1;n<i.length;n++){let s=i[n];for(let e in s){let o=r[e],t=s[e];typeof o=="function"&&typeof t=="function"&&e[0]==="o"&&e[1]==="n"&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?r[e]=c.chain(o,t):(e==="className"||e==="UNSAFE_className")&&typeof o=="string"&&typeof t=="string"?r[e]=f.clsx(o,t):e==="id"&&o&&t?r.id=l.mergeIds(o,t):r[e]=t!==void 0?t:o}}return r}exports.mergeProps=u;
|
package/index158.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { chain as n } from "./
|
|
1
|
+
import { chain as n } from "./index231.mjs";
|
|
2
2
|
import { mergeIds as s } from "./index185.mjs";
|
|
3
|
-
import { clsx as l } from "./
|
|
3
|
+
import { clsx as l } from "./index235.mjs";
|
|
4
4
|
function a(...r) {
|
|
5
5
|
let o = {
|
|
6
6
|
...r[0]
|
package/index159.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index158.js"),o=require("react"),p=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index158.js"),o=require("react"),p=require("./index227.js"),c={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function u(s={}){let{style:e,isFocusable:t}=s,[i,n]=o.useState(!1),{focusWithinProps:l}=p.useFocusWithin({isDisabled:!t,onFocusWithinChange:a=>n(a)}),r=o.useMemo(()=>i?e:e?{...c,...e}:c,[i]);return{visuallyHiddenProps:{...l,style:r}}}function h(s){let{children:e,elementType:t="div",isFocusable:i,style:n,...l}=s,{visuallyHiddenProps:r}=u(s);return o.createElement(t,d.mergeProps(l,r),e)}exports.VisuallyHidden=h;exports.useVisuallyHidden=u;
|
package/index159.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mergeProps as n } from "./index158.mjs";
|
|
2
2
|
import d, { useState as u, useMemo as p } from "react";
|
|
3
|
-
import { useFocusWithin as f } from "./
|
|
3
|
+
import { useFocusWithin as f } from "./index227.mjs";
|
|
4
4
|
const a = {
|
|
5
5
|
border: 0,
|
|
6
6
|
clip: "rect(0 0 0 0)",
|
package/index160.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index256.js"),o=require("react");function f(e={}){let{isReadOnly:d}=e,[t,a]=S.useControlledState(e.isSelected,e.defaultSelected||!1,e.onChange),[c]=o.useState(t);function u(n){d||a(n)}function i(){d||a(!t)}var l;return{isSelected:t,defaultSelected:(l=e.defaultSelected)!==null&&l!==void 0?l:c,setSelected:u,toggle:i}}exports.useToggleState=f;
|
package/index160.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useControlledState as o } from "./
|
|
1
|
+
import { useControlledState as o } from "./index256.mjs";
|
|
2
2
|
import { useState as u } from "react";
|
|
3
3
|
function r(e = {}) {
|
|
4
4
|
let { isReadOnly: d } = e, [t, a] = o(e.isSelected, e.defaultSelected || !1, e.onChange), [c] = u(t);
|
package/index161.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),o=t.createContext(null),c=e=>{const{children:r,state:n}=e;return u.jsx(o.Provider,{value:n,children:r})};function s(){const e=t.useContext(o);return e||null}exports.CheckboxGroupProvider=c;exports.useCheckboxGroupCtx=s;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index223.js"),S=require("./index256.js"),c=require("react");function R(e={}){let[a,l]=S.useControlledState(e.value,e.defaultValue||[],e.onChange),[V]=c.useState(a),v=!!e.isRequired&&a.length===0,r=c.useRef(new Map),d=o.useFormValidationState({...e,value:a}),f=d.displayValidation.isInvalid;var u,s;return{...d,value:a,defaultValue:(u=e.defaultValue)!==null&&u!==void 0?u:V,setValue(i){e.isReadOnly||e.isDisabled||l(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return a.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||l(t=>t.includes(i)?t:t.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||a.includes(i)&&l(a.filter(t=>t!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(a.includes(i)?l(a.filter(t=>t!==i)):l(a.concat(i)))},setInvalid(i,t){let n=new Map(r.current);t.isInvalid?n.set(i,t):n.delete(i),r.current=n,d.updateValidation(o.mergeValidation(...n.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:f?"invalid":null,isInvalid:f,isRequired:v}}exports.useCheckboxGroupState=R;
|
package/index161.mjs
CHANGED
|
@@ -1,15 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
import { useFormValidationState as b, mergeValidation as V } from "./index223.mjs";
|
|
2
|
+
import { useControlledState as v } from "./index256.mjs";
|
|
3
|
+
import { useState as $, useRef as R } from "react";
|
|
4
|
+
function D(e = {}) {
|
|
5
|
+
let [i, l] = v(e.value, e.defaultValue || [], e.onChange), [c] = $(i), o = !!e.isRequired && i.length === 0, f = R(/* @__PURE__ */ new Map()), n = b({
|
|
6
|
+
...e,
|
|
7
|
+
value: i
|
|
8
|
+
}), r = n.displayValidation.isInvalid;
|
|
9
|
+
var u, s;
|
|
10
|
+
return {
|
|
11
|
+
...n,
|
|
12
|
+
value: i,
|
|
13
|
+
defaultValue: (u = e.defaultValue) !== null && u !== void 0 ? u : c,
|
|
14
|
+
setValue(a) {
|
|
15
|
+
e.isReadOnly || e.isDisabled || l(a);
|
|
16
|
+
},
|
|
17
|
+
isDisabled: e.isDisabled || !1,
|
|
18
|
+
isReadOnly: e.isReadOnly || !1,
|
|
19
|
+
isSelected(a) {
|
|
20
|
+
return i.includes(a);
|
|
21
|
+
},
|
|
22
|
+
addValue(a) {
|
|
23
|
+
e.isReadOnly || e.isDisabled || l((t) => t.includes(a) ? t : t.concat(a));
|
|
24
|
+
},
|
|
25
|
+
removeValue(a) {
|
|
26
|
+
e.isReadOnly || e.isDisabled || i.includes(a) && l(i.filter((t) => t !== a));
|
|
27
|
+
},
|
|
28
|
+
toggleValue(a) {
|
|
29
|
+
e.isReadOnly || e.isDisabled || (i.includes(a) ? l(i.filter((t) => t !== a)) : l(i.concat(a)));
|
|
30
|
+
},
|
|
31
|
+
setInvalid(a, t) {
|
|
32
|
+
let d = new Map(f.current);
|
|
33
|
+
t.isInvalid ? d.set(a, t) : d.delete(a), f.current = d, n.updateValidation(V(...d.values()));
|
|
34
|
+
},
|
|
35
|
+
validationState: (s = e.validationState) !== null && s !== void 0 ? s : r ? "invalid" : null,
|
|
36
|
+
isInvalid: r,
|
|
37
|
+
isRequired: o
|
|
38
|
+
};
|
|
11
39
|
}
|
|
12
40
|
export {
|
|
13
|
-
|
|
14
|
-
C as useCheckboxGroupCtx
|
|
41
|
+
D as useCheckboxGroupState
|
|
15
42
|
};
|
package/index162.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),o=t.createContext(null),c=e=>{const{children:r,state:n}=e;return u.jsx(o.Provider,{value:n,children:r})};function s(){const e=t.useContext(o);return e||null}exports.CheckboxGroupProvider=c;exports.useCheckboxGroupCtx=s;
|
package/index162.mjs
CHANGED
|
@@ -1,41 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
groupProps: s,
|
|
13
|
-
buttonProps: r,
|
|
14
|
-
buttonLabel: n,
|
|
15
|
-
buttonContent: m,
|
|
16
|
-
icon: c,
|
|
17
|
-
children: d
|
|
18
|
-
} = i;
|
|
19
|
-
return /* @__PURE__ */ a(f, { themeName: `${e}.wrapper`, tokens: t, ...s, ref: h, children: [
|
|
20
|
-
n && /* @__PURE__ */ o(p, { themeName: `${e}.buttonLabel`, tokens: t, children: n }),
|
|
21
|
-
/* @__PURE__ */ o(u, { themeName: `${e}.dateFieldContainer`, tokens: t, children: d }),
|
|
22
|
-
/* @__PURE__ */ a(
|
|
23
|
-
b,
|
|
24
|
-
{
|
|
25
|
-
themeName: `${e}.button`,
|
|
26
|
-
tokens: t,
|
|
27
|
-
type: "button",
|
|
28
|
-
...r,
|
|
29
|
-
handlePress: r.onPress,
|
|
30
|
-
children: [
|
|
31
|
-
m && /* @__PURE__ */ o(p, { themeName: `${e}.buttonContent`, tokens: t, children: m }),
|
|
32
|
-
/* @__PURE__ */ o(N, { themeName: `${e}.icon`, tokens: t, icon: c ?? "ArrowDown" })
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
] });
|
|
37
|
-
});
|
|
38
|
-
$.displayName = "Wrapper";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as u, useContext as c } from "react";
|
|
4
|
+
const o = u(null), i = (t) => {
|
|
5
|
+
const { children: e, state: r } = t;
|
|
6
|
+
return /* @__PURE__ */ n(o.Provider, { value: r, children: e });
|
|
7
|
+
};
|
|
8
|
+
function C() {
|
|
9
|
+
const t = c(o);
|
|
10
|
+
return t || null;
|
|
11
|
+
}
|
|
39
12
|
export {
|
|
40
|
-
|
|
13
|
+
i as CheckboxGroupProvider,
|
|
14
|
+
C as useCheckboxGroupCtx
|
|
41
15
|
};
|
package/index163.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),d=require("./index184.js"),m=require("react"),f=require("react-aria"),h=require("./index37.js"),g=require("./index3.js");function q(e){const{themeName:t="dialog",tokens:r,title:i,customTheme:n,children:l,...c}=e,o=m.useRef(null),{dialogProps:u,titleProps:a}=f.useDialog(e,o);return s.jsxs(h.BoxWithForwardRef,{...d.filterDOMProps(c),themeName:`${t}.wrapper`,tokens:r,customTheme:n,...u,ref:o,children:[i&&s.jsx(g.default,{themeName:`${t}.title`,tokens:r,...a,children:i}),l]})}exports.Dialog=q;
|
package/index163.mjs
CHANGED
|
@@ -1,13 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
});
|
|
10
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as a, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { filterDOMProps as d } from "./index184.mjs";
|
|
4
|
+
import { useRef as n } from "react";
|
|
5
|
+
import { useDialog as h } from "react-aria";
|
|
6
|
+
import { BoxWithForwardRef as u } from "./index37.mjs";
|
|
7
|
+
import g from "./index3.mjs";
|
|
8
|
+
function j(e) {
|
|
9
|
+
const { themeName: o = "dialog", tokens: r, title: t, customTheme: i, children: s, ...l } = e, m = n(null), { dialogProps: p, titleProps: f } = h(e, m);
|
|
10
|
+
return /* @__PURE__ */ a(
|
|
11
|
+
u,
|
|
12
|
+
{
|
|
13
|
+
...d(l),
|
|
14
|
+
themeName: `${o}.wrapper`,
|
|
15
|
+
tokens: r,
|
|
16
|
+
customTheme: i,
|
|
17
|
+
...p,
|
|
18
|
+
ref: m,
|
|
19
|
+
children: [
|
|
20
|
+
t && /* @__PURE__ */ c(g, { themeName: `${o}.title`, tokens: r, ...f, children: t }),
|
|
21
|
+
s
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
11
26
|
export {
|
|
12
|
-
|
|
27
|
+
j as Dialog
|
|
13
28
|
};
|
package/index164.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),x=require("react"),a=require("./index37.js"),p=require("./index6.js"),b=require("./index24.js"),i=require("./index3.js"),u=x.forwardRef((d,c)=>{const{themeName:e="datePicker",tokens:t,groupProps:m,buttonProps:n,buttonLabel:o,buttonContent:s,icon:h,children:l}=d;return r.jsxs(a.BoxWithForwardRef,{themeName:`${e}.wrapper`,tokens:t,...m,ref:c,children:[o&&r.jsx(i.default,{themeName:`${e}.buttonLabel`,tokens:t,children:o}),r.jsx(a.default,{themeName:`${e}.dateFieldContainer`,tokens:t,children:l}),r.jsxs(p.default,{themeName:`${e}.button`,tokens:t,type:"button",...n,handlePress:n.onPress,children:[s&&r.jsx(i.default,{themeName:`${e}.buttonContent`,tokens:t,children:s}),r.jsx(b,{themeName:`${e}.icon`,tokens:t,icon:h??"ArrowDown"})]})]})});u.displayName="Wrapper";module.exports=u;
|
package/index164.mjs
CHANGED
|
@@ -1,16 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as l } from "react";
|
|
4
|
+
import u, { BoxWithForwardRef as f } from "./index37.mjs";
|
|
5
|
+
import b from "./index6.mjs";
|
|
6
|
+
import N from "./index24.mjs";
|
|
7
|
+
import p from "./index3.mjs";
|
|
8
|
+
const $ = l((i, h) => {
|
|
9
|
+
const {
|
|
10
|
+
themeName: e = "datePicker",
|
|
11
|
+
tokens: t,
|
|
12
|
+
groupProps: s,
|
|
13
|
+
buttonProps: r,
|
|
14
|
+
buttonLabel: n,
|
|
15
|
+
buttonContent: m,
|
|
16
|
+
icon: c,
|
|
17
|
+
children: d
|
|
18
|
+
} = i;
|
|
19
|
+
return /* @__PURE__ */ a(f, { themeName: `${e}.wrapper`, tokens: t, ...s, ref: h, children: [
|
|
20
|
+
n && /* @__PURE__ */ o(p, { themeName: `${e}.buttonLabel`, tokens: t, children: n }),
|
|
21
|
+
/* @__PURE__ */ o(u, { themeName: `${e}.dateFieldContainer`, tokens: t, children: d }),
|
|
22
|
+
/* @__PURE__ */ a(
|
|
23
|
+
b,
|
|
24
|
+
{
|
|
25
|
+
themeName: `${e}.button`,
|
|
26
|
+
tokens: t,
|
|
27
|
+
type: "button",
|
|
28
|
+
...r,
|
|
29
|
+
handlePress: r.onPress,
|
|
30
|
+
children: [
|
|
31
|
+
m && /* @__PURE__ */ o(p, { themeName: `${e}.buttonContent`, tokens: t, children: m }),
|
|
32
|
+
/* @__PURE__ */ o(N, { themeName: `${e}.icon`, tokens: t, icon: c ?? "ArrowDown" })
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
] });
|
|
12
37
|
});
|
|
13
|
-
|
|
38
|
+
$.displayName = "Wrapper";
|
|
14
39
|
export {
|
|
15
|
-
|
|
40
|
+
$ as default
|
|
16
41
|
};
|
package/index165.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index288.js"),r=require("react"),u=require("./index220.js"),a=require("@react-aria/i18n"),c=require("./index159.js");function d(e){return e&&e.__esModule?e.default:e}function m(e){let{onDismiss:t,...i}=e,s=a.useLocalizedStringFormatter(d(o),"@react-aria/overlays"),n=u.useLabels(i,s.format("dismiss")),l=()=>{t&&t()};return r.createElement(c.VisuallyHidden,null,r.createElement("button",{...n,tabIndex:-1,onClick:l,style:{width:1,height:1}}))}exports.DismissButton=m;
|
package/index165.mjs
CHANGED
|
@@ -1,42 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
value: i,
|
|
13
|
-
defaultValue: (u = e.defaultValue) !== null && u !== void 0 ? u : c,
|
|
14
|
-
setValue(a) {
|
|
15
|
-
e.isReadOnly || e.isDisabled || l(a);
|
|
16
|
-
},
|
|
17
|
-
isDisabled: e.isDisabled || !1,
|
|
18
|
-
isReadOnly: e.isReadOnly || !1,
|
|
19
|
-
isSelected(a) {
|
|
20
|
-
return i.includes(a);
|
|
21
|
-
},
|
|
22
|
-
addValue(a) {
|
|
23
|
-
e.isReadOnly || e.isDisabled || l((t) => t.includes(a) ? t : t.concat(a));
|
|
24
|
-
},
|
|
25
|
-
removeValue(a) {
|
|
26
|
-
e.isReadOnly || e.isDisabled || i.includes(a) && l(i.filter((t) => t !== a));
|
|
27
|
-
},
|
|
28
|
-
toggleValue(a) {
|
|
29
|
-
e.isReadOnly || e.isDisabled || (i.includes(a) ? l(i.filter((t) => t !== a)) : l(i.concat(a)));
|
|
30
|
-
},
|
|
31
|
-
setInvalid(a, t) {
|
|
32
|
-
let d = new Map(f.current);
|
|
33
|
-
t.isInvalid ? d.set(a, t) : d.delete(a), f.current = d, n.updateValidation(V(...d.values()));
|
|
34
|
-
},
|
|
35
|
-
validationState: (s = e.validationState) !== null && s !== void 0 ? s : r ? "invalid" : null,
|
|
36
|
-
isInvalid: r,
|
|
37
|
-
isRequired: o
|
|
1
|
+
import l from "./index288.mjs";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { useLabels as n } from "./index220.mjs";
|
|
4
|
+
import { useLocalizedStringFormatter as m } from "@react-aria/i18n";
|
|
5
|
+
import { VisuallyHidden as f } from "./index159.mjs";
|
|
6
|
+
function c(e) {
|
|
7
|
+
return e && e.__esModule ? e.default : e;
|
|
8
|
+
}
|
|
9
|
+
function x(e) {
|
|
10
|
+
let { onDismiss: t, ...o } = e, i = m(c(l), "@react-aria/overlays"), s = n(o, i.format("dismiss")), a = () => {
|
|
11
|
+
t && t();
|
|
38
12
|
};
|
|
13
|
+
return /* @__PURE__ */ r.createElement(f, null, /* @__PURE__ */ r.createElement("button", {
|
|
14
|
+
...s,
|
|
15
|
+
tabIndex: -1,
|
|
16
|
+
onClick: a,
|
|
17
|
+
style: {
|
|
18
|
+
width: 1,
|
|
19
|
+
height: 1
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
39
22
|
}
|
|
40
23
|
export {
|
|
41
|
-
|
|
24
|
+
x as DismissButton
|
|
42
25
|
};
|
package/index166.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),d=require("./index184.js"),m=require("react"),f=require("react-aria"),h=require("./index37.js"),g=require("./index3.js");function q(e){const{themeName:t="dialog",tokens:r,title:i,customTheme:n,children:l,...c}=e,o=m.useRef(null),{dialogProps:u,titleProps:a}=f.useDialog(e,o);return s.jsxs(h.BoxWithForwardRef,{...d.filterDOMProps(c),themeName:`${t}.wrapper`,tokens:r,customTheme:n,...u,ref:o,children:[i&&s.jsx(g.default,{themeName:`${t}.title`,tokens:r,...a,children:i}),l]})}exports.Dialog=q;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index289.js"),f=require("./index282.js"),m=require("./index285.js"),h=require("./index287.js"),D=require("./index158.js"),q=require("react");function C(a,r){let{triggerRef:d,popoverRef:o,groupRef:e,isNonModal:s,isKeyboardDismissDisabled:p,shouldCloseOnInteractOutside:c,...n}=a,u=n.trigger==="SubmenuTrigger",{overlayProps:v,underlayProps:P}=m.useOverlay({isOpen:r.isOpen,onClose:r.close,shouldCloseOnBlur:!0,isDismissable:!s||u,isKeyboardDismissDisabled:p,shouldCloseOnInteractOutside:c},e??o),{overlayProps:O,arrowProps:g,placement:y,triggerAnchorPoint:b}=f.useOverlayPosition({...n,targetRef:d,overlayRef:o,isOpen:r.isOpen,onClose:s&&!u?r.close:null});return h.usePreventScroll({isDisabled:s||!r.isOpen}),q.useEffect(()=>{if(r.isOpen&&o.current){var i,l;return s?t.keepVisible((i=e==null?void 0:e.current)!==null&&i!==void 0?i:o.current):t.ariaHideOutside([(l=e==null?void 0:e.current)!==null&&l!==void 0?l:o.current],{shouldUseInert:!0})}},[s,r.isOpen,o,e]),{popoverProps:D.mergeProps(v,O),arrowProps:g,underlayProps:P,placement:y,triggerAnchorPoint:b}}exports.usePopover=C;
|