@okam/stack-ui 1.32.4 → 1.32.5
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/components/fields/Checkbox/index.d.ts +6 -0
- package/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.d.ts +6 -0
- package/components/fields/Select/Select.d.ts +4 -1
- package/components/fields/Select/Select.interface.d.ts +1 -0
- package/components/fields/TextArea/index.d.ts +4 -1
- package/index.d.ts +4 -2
- package/index.js +1 -1
- package/index.mjs +153 -151
- package/index110.js +1 -1
- package/index110.mjs +5 -5
- package/index111.js +1 -1
- package/index111.mjs +2 -2
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +4 -4
- package/index116.js +1 -1
- package/index116.mjs +2 -2
- package/index118.js +1 -1
- package/index118.mjs +3 -3
- package/index119.js +1 -1
- package/index119.mjs +3 -3
- package/index120.js +1 -1
- package/index120.mjs +4 -4
- package/index121.js +1 -1
- package/index121.mjs +2 -2
- package/index122.js +1 -1
- package/index122.mjs +2 -2
- package/index123.js +1 -1
- package/index123.mjs +8 -8
- package/index125.js +1 -1
- package/index125.mjs +2 -2
- package/index126.js +1 -1
- package/index126.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +2 -2
- package/index133.js +1 -1
- package/index133.mjs +1 -1
- package/index139.js +1 -1
- package/index139.mjs +2 -2
- package/index140.js +1 -1
- package/index140.mjs +23 -23
- package/index141.js +1 -1
- package/index141.mjs +3 -3
- package/index144.js +1 -1
- package/index144.mjs +21 -23
- package/index145.js +1 -1
- package/index145.mjs +38 -113
- package/index146.js +1 -1
- package/index146.mjs +25 -22
- package/index147.js +1 -1
- package/index147.mjs +251 -35
- package/index148.js +1 -1
- package/index148.mjs +106 -25
- package/index149.js +1 -1
- package/index149.mjs +320 -242
- package/index150.js +1 -1
- package/index150.mjs +23 -105
- package/index151.js +1 -1
- package/index151.mjs +104 -323
- package/index152.js +1 -1
- package/index152.mjs +106 -20
- package/index153.js +1 -1
- package/index153.mjs +83 -107
- package/index154.js +1 -1
- package/index154.mjs +26 -83
- package/index155.js +1 -1
- package/index155.mjs +20 -25
- package/index156.js +1 -1
- package/index156.mjs +17 -123
- package/index157.js +1 -1
- package/index157.mjs +122 -24
- package/index158.js +1 -1
- package/index158.mjs +71 -17
- package/index159.js +1 -1
- package/index159.mjs +338 -62
- package/index16.js +1 -1
- package/index16.mjs +144 -67
- package/index160.js +1 -1
- package/index160.mjs +42 -346
- package/index161.js +1 -1
- package/index161.mjs +29 -43
- package/index162.js +1 -1
- package/index162.mjs +24 -28
- package/index164.js +1 -1
- package/index164.mjs +2 -2
- package/index167.js +1 -1
- package/index167.mjs +2 -2
- package/index169.js +1 -1
- package/index169.mjs +4 -4
- package/index17.js +1 -1
- package/index17.mjs +95 -26
- package/index170.js +1 -1
- package/index170.mjs +2 -2
- package/index173.js +1 -1
- package/index173.mjs +1 -1
- package/index175.js +1 -1
- package/index175.mjs +1 -1
- package/index176.js +1 -1
- package/index176.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +4 -4
- package/index179.js +1 -1
- package/index179.mjs +1 -1
- package/index180.js +1 -1
- package/index180.mjs +2 -2
- package/index182.js +1 -1
- package/index182.mjs +1 -1
- package/index184.js +1 -1
- package/index184.mjs +1 -1
- package/index185.js +1 -1
- package/index185.mjs +205 -197
- package/index186.js +1 -1
- package/index186.mjs +24 -64
- package/index187.js +1 -1
- package/index187.mjs +4 -143
- package/index188.js +1 -1
- package/index188.mjs +3 -124
- package/index189.js +1 -1
- package/index189.mjs +116 -215
- package/index190.js +1 -1
- package/index190.mjs +23 -184
- package/index191.js +1 -1
- package/index191.mjs +51 -69
- package/index192.js +1 -1
- package/index192.mjs +43 -278
- package/index193.js +1 -1
- package/index193.mjs +31 -92
- package/index194.js +1 -1
- package/index194.mjs +109 -184
- package/index195.js +1 -1
- package/index195.mjs +77 -84
- package/index196.js +1 -1
- package/index196.mjs +101 -58
- package/index197.js +1 -1
- package/index197.mjs +98 -127
- package/index198.js +1 -1
- package/index198.mjs +188 -101
- package/index199.js +1 -1
- package/index199.mjs +52 -110
- package/index20.js +1 -1
- package/index20.mjs +105 -31
- package/index200.js +1 -1
- package/index200.mjs +138 -67
- package/index201.js +1 -1
- package/index201.mjs +119 -105
- package/index202.js +1 -1
- package/index202.mjs +219 -47
- package/index203.js +1 -1
- package/index203.mjs +185 -88
- package/index204.js +1 -1
- package/index204.mjs +62 -63
- package/index205.js +1 -1
- package/index205.mjs +275 -52
- package/index206.js +1 -1
- package/index206.mjs +93 -94
- package/index207.js +1 -5
- package/index207.mjs +183 -75
- package/index208.js +1 -1
- package/index208.mjs +73 -2014
- package/index209.js +1 -1
- package/index209.mjs +56 -57
- package/index21.js +1 -1
- package/index21.mjs +132 -59
- package/index210.js +1 -1
- package/index210.mjs +123 -185
- package/index211.js +1 -1
- package/index211.mjs +110 -205
- package/index212.js +1 -1
- package/index212.mjs +122 -24
- package/index213.js +1 -1
- package/index213.mjs +72 -4
- package/index214.js +1 -1
- package/index214.mjs +110 -3
- package/index215.js +1 -1
- package/index215.mjs +51 -124
- package/index216.js +1 -1
- package/index216.mjs +93 -29
- package/index217.js +1 -1
- package/index217.mjs +70 -51
- package/index218.js +1 -1
- package/index218.mjs +56 -44
- package/index219.js +1 -1
- package/index219.mjs +98 -36
- package/index220.js +5 -1
- package/index220.mjs +78 -111
- package/index221.js +1 -1
- package/index221.mjs +2021 -73
- package/index222.js +1 -1
- package/index222.mjs +57 -99
- package/index223.js +1 -1
- package/index223.mjs +189 -98
- package/index224.js +1 -1
- package/index224.mjs +3 -3
- package/index225.js +1 -1
- package/index225.mjs +1 -1
- package/index226.js +1 -1
- package/index226.mjs +3 -3
- package/index227.js +1 -1
- package/index227.mjs +34 -34
- package/index230.js +1 -1
- package/index230.mjs +2 -2
- package/index231.js +1 -1
- package/index231.mjs +1 -1
- package/index266.js +1 -1
- package/index266.mjs +34 -34
- package/index269.js +1 -1
- package/index269.mjs +4 -130
- package/index270.js +1 -1
- package/index270.mjs +22 -188
- package/index271.js +1 -1
- package/index271.mjs +46 -8
- package/index272.js +1 -1
- package/index272.mjs +5 -3
- package/index273.js +1 -1
- package/index273.mjs +6 -37
- package/index274.js +1 -1
- package/index274.mjs +14 -5
- package/index275.js +1 -1
- package/index275.mjs +24 -29
- package/index276.js +1 -1
- package/index276.mjs +28 -6
- package/index277.js +1 -1
- package/index277.mjs +26 -135
- package/index278.js +1 -1
- package/index278.mjs +9 -197
- package/index279.js +1 -1
- package/index279.mjs +25 -19
- package/index280.js +1 -1
- package/index280.mjs +9 -28
- package/index281.js +1 -1
- package/index281.mjs +5 -46
- package/index282.js +1 -1
- package/index282.mjs +7 -48
- package/index283.js +1 -1
- package/index283.mjs +12 -99
- package/index284.js +1 -1
- package/index284.mjs +8 -5
- package/index285.js +1 -1
- package/index285.mjs +130 -71
- package/index286.js +1 -1
- package/index286.mjs +185 -53
- package/index287.js +1 -1
- package/index287.mjs +9 -7
- package/index288.js +1 -1
- package/index288.mjs +3 -11
- package/index289.js +1 -1
- package/index289.mjs +35 -46
- package/index290.js +1 -1
- package/index290.mjs +5 -24
- package/index291.js +1 -1
- package/index291.mjs +30 -6
- package/index292.js +1 -1
- package/index292.mjs +6 -14
- package/index293.js +1 -1
- package/index293.mjs +48 -24
- package/index294.js +1 -1
- package/index294.mjs +16 -29
- package/index295.js +1 -1
- package/index295.mjs +16 -32
- package/index296.js +1 -1
- package/index296.mjs +16 -10
- package/index297.js +1 -1
- package/index297.mjs +16 -10
- package/index298.js +1 -1
- package/index298.mjs +16 -6
- package/index299.js +1 -1
- package/index299.mjs +16 -8
- package/index300.js +1 -1
- package/index300.mjs +16 -14
- package/index301.js +1 -1
- package/index301.mjs +16 -9
- package/index302.js +1 -1
- package/index302.mjs +16 -5
- package/index303.js +1 -1
- package/index303.mjs +16 -49
- package/index304.js +1 -1
- package/index304.mjs +15 -15
- package/index305.js +1 -1
- package/index305.mjs +15 -15
- package/index306.js +1 -1
- package/index306.mjs +15 -15
- package/index307.js +1 -1
- package/index307.mjs +12 -12
- package/index308.js +1 -1
- package/index308.mjs +15 -15
- package/index309.js +1 -1
- package/index309.mjs +15 -15
- package/index310.js +1 -1
- package/index310.mjs +15 -15
- package/index311.js +1 -1
- package/index311.mjs +15 -15
- package/index312.js +1 -1
- package/index312.mjs +15 -15
- package/index313.js +1 -1
- package/index313.mjs +15 -15
- package/index314.js +1 -1
- package/index314.mjs +12 -12
- package/index315.js +1 -1
- package/index315.mjs +15 -15
- package/index316.js +1 -1
- package/index316.mjs +15 -15
- package/index317.js +1 -1
- package/index317.mjs +15 -15
- package/index318.js +1 -1
- package/index318.mjs +15 -15
- package/index319.js +1 -1
- package/index319.mjs +12 -12
- package/index320.js +1 -1
- package/index320.mjs +15 -15
- package/index321.js +1 -1
- package/index321.mjs +15 -15
- package/index322.js +1 -1
- package/index322.mjs +15 -15
- package/index323.js +1 -1
- package/index323.mjs +15 -15
- package/index324.js +1 -1
- package/index324.mjs +15 -15
- package/index325.js +1 -1
- package/index325.mjs +12 -12
- package/index326.js +1 -1
- package/index326.mjs +15 -15
- package/index327.js +1 -1
- package/index327.mjs +15 -15
- package/index328.js +1 -1
- package/index328.mjs +141 -16
- package/index329.js +1 -1
- package/index329.mjs +198 -16
- package/index330.js +1 -1
- package/index330.mjs +23 -16
- package/index331.js +1 -1
- package/index331.mjs +47 -16
- package/index332.js +1 -1
- package/index332.mjs +49 -16
- package/index333.js +1 -1
- package/index333.mjs +101 -16
- package/index334.js +1 -1
- package/index334.mjs +71 -15
- package/index335.js +1 -1
- package/index335.mjs +59 -16
- package/index336.js +1 -1
- package/index336.mjs +8 -16
- package/index337.js +1 -1
- package/index337.mjs +12 -16
- package/index338.js +1 -1
- package/index338.mjs +7 -4
- package/index339.js +1 -1
- package/index339.mjs +68 -6
- package/index340.js +1 -1
- package/index340.mjs +27 -65
- package/index341.js +1 -1
- package/index341.mjs +6 -30
- package/index342.js +1 -1
- package/index342.mjs +6 -6
- package/index343.js +1 -1
- package/index343.mjs +20 -6
- package/index344.js +1 -1
- package/index344.mjs +3 -20
- package/index345.js +1 -1
- package/index345.mjs +6 -72
- package/index347.js +1 -1
- package/index347.mjs +71 -7
- package/index348.js +1 -1
- package/index348.mjs +7 -7
- package/index349.js +1 -1
- package/index349.mjs +7 -7
- package/index350.js +1 -1
- package/index350.mjs +7 -7
- package/index351.js +1 -1
- package/index351.mjs +4 -4
- package/index352.js +1 -1
- package/index352.mjs +7 -7
- package/index353.js +1 -1
- package/index353.mjs +7 -7
- package/index354.js +1 -1
- package/index354.mjs +4 -4
- package/index355.js +1 -1
- package/index355.mjs +4 -4
- package/index356.js +1 -1
- package/index356.mjs +4 -4
- package/index357.js +1 -1
- package/index357.mjs +4 -4
- package/index358.js +1 -1
- package/index358.mjs +7 -7
- package/index359.js +1 -1
- package/index359.mjs +7 -7
- package/index360.js +1 -1
- package/index360.mjs +7 -7
- package/index361.js +1 -1
- package/index361.mjs +4 -4
- package/index362.js +1 -1
- package/index362.mjs +7 -7
- package/index363.js +1 -1
- package/index363.mjs +7 -7
- package/index364.js +1 -1
- package/index364.mjs +7 -7
- package/index365.js +1 -1
- package/index365.mjs +7 -7
- package/index366.js +1 -1
- package/index366.mjs +7 -7
- package/index367.js +1 -1
- package/index367.mjs +4 -4
- package/index368.js +1 -1
- package/index368.mjs +7 -7
- package/index369.js +1 -1
- package/index369.mjs +7 -7
- package/index370.js +1 -1
- package/index370.mjs +3 -3
- package/index371.js +1 -1
- package/index371.mjs +4 -4
- package/index372.js +1 -1
- package/index372.mjs +7 -7
- package/index373.js +1 -1
- package/index373.mjs +7 -7
- package/index374.js +1 -1
- package/index374.mjs +7 -7
- package/index375.js +1 -1
- package/index375.mjs +4 -4
- package/index376.js +1 -1
- package/index376.mjs +7 -7
- package/index377.js +1 -1
- package/index377.mjs +4 -4
- package/index378.js +1 -1
- package/index378.mjs +4 -4
- package/index379.js +1 -1
- package/index379.mjs +7 -7
- package/index380.js +1 -1
- package/index380.mjs +4 -4
- package/index381.js +1 -1
- package/index381.mjs +8 -6
- package/package.json +1 -1
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import type { RegisterOptions } from 'react-hook-form';
|
|
1
2
|
import type { TToken } from '../../../providers/Theme/interface';
|
|
2
3
|
import type { TCheckboxProps } from './Checkbox.interface';
|
|
3
4
|
declare const Checkbox: <T extends TToken>(props: TCheckboxProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export default Checkbox;
|
|
6
|
+
export declare const ReactHookFormCheckBox: ({ name, label, rules, tokens, ariaLabel, defaultValue, themeName, isDisabled, icon, onChange, onBlur, ...rest }: TCheckboxProps<TToken> & {
|
|
7
|
+
rules: RegisterOptions;
|
|
8
|
+
name: string;
|
|
9
|
+
defaultValue: boolean;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import type { RegisterOptions } from 'react-hook-form';
|
|
1
2
|
import type { TCheckboxGroupItemProps } from '../../interface';
|
|
2
3
|
declare const CheckboxGroupItem: (props: TCheckboxGroupItemProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
export declare const ReactHookFormCheckboxItem: ({ name, label, rules, tokens, ariaLabel, defaultValue, themeName, isReadOnly, isRequired, onChange, onBlur, value, icon, ...rest }: import("../../../../..").TDefaultComponent<import("../../../../..").TToken> & Omit<import("react-aria").AriaCheckboxGroupItemProps, "children"> & Omit<import("../../../Checkbox/Checkbox.interface").TCheckboxProps<import("../../../../..").TToken>, "children"> & {
|
|
5
|
+
rules?: RegisterOptions | undefined;
|
|
6
|
+
name: string;
|
|
7
|
+
defaultValue?: boolean | undefined;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
3
9
|
export default CheckboxGroupItem;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import type { RegisterOptions } from 'react-hook-form';
|
|
1
2
|
import type { TToken } from '../../../providers/Theme/interface';
|
|
2
3
|
import type { TSelectProps } from './Select.interface';
|
|
3
4
|
declare const Select: <T extends TToken>(props: TSelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const ReactHookFormSelect: (
|
|
5
|
+
export declare const ReactHookFormSelect: ({ id, name, label, rules, tokens, defaultValue, value, themeName, required, onChange, options, placeholderLabel, icon, popoverMatchesWidth, ...rest }: TSelectProps<TToken> & {
|
|
6
|
+
rules?: RegisterOptions | undefined;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
8
|
export default Select;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import type { RegisterOptions } from 'react-hook-form';
|
|
1
2
|
import type { TToken } from '../../../providers/Theme/interface';
|
|
2
3
|
import type { TTextInputProps } from '../TextInputField/interface';
|
|
3
4
|
declare const TextArea: <T extends TToken>(props: TTextInputProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const ReactHookFormTextArea: (
|
|
5
|
+
export declare const ReactHookFormTextArea: ({ name, label, rules, tokens, ariaLabel, defaultValue, placeholder, themeName, isReadOnly, minLength, maxLength, required, isRequired, onChange, onBlur, children, ...rest }: TTextInputProps<TToken> & {
|
|
6
|
+
rules: RegisterOptions;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
8
|
export default TextArea;
|
package/index.d.ts
CHANGED
|
@@ -13,10 +13,10 @@ export { default as WysiwygBlock } from './components/WysiwygBlock';
|
|
|
13
13
|
export { default as Icon } from './components/Icon';
|
|
14
14
|
export { default as Date } from './components/Date';
|
|
15
15
|
export { default as Select, ReactHookFormSelect } from './components/fields/Select/Select';
|
|
16
|
-
export { default as Checkbox } from './components/fields/Checkbox';
|
|
16
|
+
export { default as Checkbox, ReactHookFormCheckBox } from './components/fields/Checkbox';
|
|
17
17
|
export { default as SearchField } from './components/fields/SearchField';
|
|
18
18
|
export { default as CheckboxGroup } from './components/fields/CheckboxGroup';
|
|
19
|
-
export { default as CheckboxGroupItem } from './components/fields/CheckboxGroup/components/CheckboxGroupItem';
|
|
19
|
+
export { default as CheckboxGroupItem, ReactHookFormCheckboxItem, } from './components/fields/CheckboxGroup/components/CheckboxGroupItem';
|
|
20
20
|
export { default as TextArea, ReactHookFormTextArea } from './components/fields/TextArea';
|
|
21
21
|
export { default as TextInputField, ReactHookFormInput } from './components/fields/TextInputField';
|
|
22
22
|
export { default as DatePicker } from './components/fields/DatePicker';
|
|
@@ -53,6 +53,8 @@ export type { TTheme, TToken, TCustomTheme, TStyle, TDefaultTheme, TStyleCollect
|
|
|
53
53
|
export type { TMenuProps, TMenuItemProps } from './components/Menu/interface';
|
|
54
54
|
export type { TDefaultComponent, Nullable } from './types/components';
|
|
55
55
|
export type { TTextInputProps } from './components/fields/TextInputField/interface';
|
|
56
|
+
export type { TCheckboxProps } from './components/fields/Checkbox/Checkbox.interface';
|
|
57
|
+
export type { TSelectProps } from './components/fields/Select/Select.interface';
|
|
56
58
|
export type { TBoxProps } from './components/Box/interface';
|
|
57
59
|
export type { TDatePickerProps } from './components/fields/DatePicker/interface';
|
|
58
60
|
export type { TDateProps } from './components/Date/interface';
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index2.js"),T=require("./index3.js"),R=require("./index4.js"),$=require("./index5.js"),t=require("./index6.js"),b=require("./index7.js"),f=require("./index8.js"),F=require("./index9.js"),p=require("./index10.js"),w=require("./index11.js"),n=require("./index12.js"),I=require("./index13.js"),A=require("./index14.js"),B=require("./index15.js"),c=require("./index16.js"),a=require("./index17.js"),M=require("./index18.js"),H=require("./index19.js"),s=require("./index20.js"),d=require("./index21.js"),l=require("./index22.js"),U=require("./index23.js"),G=require("./index24.js"),q=require("./index25.js"),L=require("./index26.js"),N=require("./index27.js"),x=require("./index28.js"),y=require("./index29.js"),W=require("./index30.js"),D=require("./index31.js"),j=require("./index32.js"),O=require("./index33.js"),Y=require("./index34.js"),_=require("./index35.js"),X=require("./index36.js"),z=require("./index37.js"),V=require("./index38.js"),E=require("./index39.js"),J=require("./index40.js"),K=require("./index41.js"),Q=require("./index42.js"),Z=require("./index43.js"),ee=require("./index44.js"),re=require("./index45.js"),oe=require("./index46.js"),te=require("./index47.js"),ne=require("./index48.js"),ie=require("./index49.js"),ue=require("./index50.js"),ce=require("./index51.js"),ae=require("./index52.js"),se=require("./index53.js"),de=require("./index54.js"),le=require("./index55.js"),qe=require("./index56.js"),xe=require("./index57.js"),Ce=require("./index58.js"),he=require("./index59.js"),me=require("./index60.js"),ke=require("./index61.js"),Pe=require("./index62.js"),i=require("./index63.js"),ge=require("./index64.js"),C=require("./index65.js"),h=require("./index66.js"),m=require("./index67.js"),k=require("./index68.js"),P=require("./index69.js"),ve=require("./index70.js"),g=require("./index71.js"),v=require("./index72.js"),Se=require("react-hook-form"),Te=require("./index73.js"),Re=require("./index74.js"),$e=require("./index75.js"),be=require("./index76.js"),fe=require("./index77.js"),Fe=require("./index78.js"),pe=require("./index79.js"),we=require("./index80.js");function Ie(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,u.get?u:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const Ae=Ie(Se);exports.ThemeProvider=S;exports.Typography=T.default;exports.Accordion=R;exports.AccordionItem=$;exports.Anchor=t.Anchor;exports.Button=t.default;exports.ButtonWithForwardRef=t.ButtonWithForwardRef;exports.ShareButton=b.default;exports.SidePanel=f;exports.Lightbox=F;exports.Popover=p.default;exports.Carousel=w;exports.CarouselNavigationButton=n.CarouselNavigationButton;exports.CarouselNextNavigationButton=n.CarouselNextNavigationButton;exports.CarouselPrevNavigationButton=n.CarouselPrevNavigationButton;exports.WysiwygBlock=I;exports.Icon=A;exports.Date=B;exports.ReactHookFormSelect=c.ReactHookFormSelect;exports.Select=c.default;exports.Checkbox=a.default;exports.ReactHookFormCheckBox=a.ReactHookFormCheckBox;exports.SearchField=M;exports.CheckboxGroup=H;exports.CheckboxGroupItem=s.default;exports.ReactHookFormCheckboxItem=s.ReactHookFormCheckboxItem;exports.ReactHookFormTextArea=d.ReactHookFormTextArea;exports.TextArea=d.default;exports.ReactHookFormInput=l.ReactHookFormInput;exports.TextInputField=l.default;exports.DatePicker=U;exports.DateRangePicker=G;exports.Box=q.default;exports.BoxWithForwardRef=q.BoxWithForwardRef;exports.Calendar=L;exports.Modal=N;exports.Radio=x.default;exports.ReactHookFormRadio=x.ReactHookFormRadio;exports.RadioGroup=y;exports.RenderWithSlide=W;exports.Menu=D;exports.MenuSidePanel=j;exports.MenuItems=O;exports.TabContainer=Y;exports.Alerts=_;exports.AlertsItem=X;exports.SelectItem=z;exports.Video=V;exports.ArrowDown=E;exports.ArrowLeft=J;exports.ArrowRight=K;exports.Check=Q;exports.ChevronLeft=Z;exports.ChevronRight=ee;exports.CloseBtn=re;exports.Facebook=oe;exports.FacebookColored=te;exports.FacebookRounded=ne;exports.Globe=ie;exports.Instagram=ue;exports.InstagramColored=ce;exports.Link=ae;exports.LinkedIn=se;exports.Mail=de;exports.Plus=le;exports.Share=qe;exports.Twitter=xe;exports.TwitterColored=Ce;exports.Upload=he;exports.X=me;exports.YouTube=ke;exports.YouTubeColored=Pe;exports.ThemeContextProvider=i.ThemeContextProvider;exports.createThemeProvider=i.createThemeProvider;exports.useTheme=i.useTheme;exports.useThemeContext=ge;exports.IsClientContextProvider=C.IsClientContextProvider;exports.useIsClient=C.useIsClient;exports.SidePanelContextProvider=h.SidePanelContextProvider;exports.useSidePanel=h.useSidePanel;exports.MenuContextProvider=m.MenuContextProvider;exports.useMenu=m.useMenu;exports.RadioGroupProvider=k.RadioGroupProvider;exports.useRadioGroupCtx=k.useRadioGroupCtx;exports.AccordionContextProvider=P.AccordionContextProvider;exports.useAccordionCtx=P.useAccordionCtx;exports.SearchBarProvider=ve.SearchBarProvider;exports.SwiperControllerContextProvider=g.SwiperControllerContextProvider;exports.useSwiperController=g.useSwiperController;exports.TranslationContextProvider=v.TranslationContextProvider;exports.useTranslation=v.useTranslation;exports.reactHookForm=Ae;exports.generateUtmTags=Te;exports.useWindow=Re;exports.useFacebookShareUrl=$e;exports.useMailToShareUrl=be;exports.useTwitterShareUrl=fe;exports.useAccordionState=Fe;exports.StackUILogger=pe.logger;exports.makeTheme=we.makeTheme;
|
package/index.mjs
CHANGED
|
@@ -2,179 +2,181 @@ import { default as t } from "./index2.mjs";
|
|
|
2
2
|
import { default as f } from "./index3.mjs";
|
|
3
3
|
import { default as u } from "./index4.mjs";
|
|
4
4
|
import { default as m } from "./index5.mjs";
|
|
5
|
-
import { Anchor as
|
|
5
|
+
import { Anchor as s, default as p, ButtonWithForwardRef as i } from "./index6.mjs";
|
|
6
6
|
import { default as c } from "./index7.mjs";
|
|
7
7
|
import { default as h } from "./index8.mjs";
|
|
8
8
|
import { default as P } from "./index9.mjs";
|
|
9
9
|
import { default as S } from "./index10.mjs";
|
|
10
|
-
import { default as
|
|
11
|
-
import { CarouselNavigationButton as
|
|
12
|
-
import { default as
|
|
10
|
+
import { default as R } from "./index11.mjs";
|
|
11
|
+
import { CarouselNavigationButton as F, CarouselNextNavigationButton as I, CarouselPrevNavigationButton as b } from "./index12.mjs";
|
|
12
|
+
import { default as A } from "./index13.mjs";
|
|
13
13
|
import { default as M } from "./index14.mjs";
|
|
14
|
-
import { default as
|
|
15
|
-
import { ReactHookFormSelect as
|
|
16
|
-
import { default as D } from "./index17.mjs";
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { ReactHookFormTextArea as
|
|
21
|
-
import { ReactHookFormInput as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
14
|
+
import { default as G } from "./index15.mjs";
|
|
15
|
+
import { ReactHookFormSelect as U, default as W } from "./index16.mjs";
|
|
16
|
+
import { default as D, ReactHookFormCheckBox as N } from "./index17.mjs";
|
|
17
|
+
import { default as V } from "./index18.mjs";
|
|
18
|
+
import { default as j } from "./index19.mjs";
|
|
19
|
+
import { default as z, ReactHookFormCheckboxItem as E } from "./index20.mjs";
|
|
20
|
+
import { ReactHookFormTextArea as K, default as O } from "./index21.mjs";
|
|
21
|
+
import { ReactHookFormInput as Z, default as _ } from "./index22.mjs";
|
|
22
|
+
import { default as ee } from "./index23.mjs";
|
|
23
|
+
import { default as re } from "./index24.mjs";
|
|
24
|
+
import { default as ae, BoxWithForwardRef as fe } from "./index25.mjs";
|
|
25
|
+
import { default as ue } from "./index26.mjs";
|
|
26
|
+
import { default as me } from "./index27.mjs";
|
|
27
|
+
import { default as se, ReactHookFormRadio as pe } from "./index28.mjs";
|
|
28
|
+
import { default as ne } from "./index29.mjs";
|
|
29
|
+
import { default as Ce } from "./index30.mjs";
|
|
30
|
+
import { default as ke } from "./index31.mjs";
|
|
31
|
+
import { default as Te } from "./index32.mjs";
|
|
32
|
+
import { default as ve } from "./index33.mjs";
|
|
33
|
+
import { default as ge } from "./index34.mjs";
|
|
34
|
+
import { default as Ie } from "./index35.mjs";
|
|
35
35
|
import { default as we } from "./index36.mjs";
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { ThemeContextProvider as Ao, createThemeProvider as
|
|
63
|
-
import { default as
|
|
64
|
-
import { IsClientContextProvider as
|
|
65
|
-
import { SidePanelContextProvider as
|
|
66
|
-
import { MenuContextProvider as
|
|
67
|
-
import { RadioGroupProvider as
|
|
68
|
-
import { AccordionContextProvider as
|
|
69
|
-
import { SearchBarProvider as
|
|
70
|
-
import { SwiperControllerContextProvider as
|
|
71
|
-
import { TranslationContextProvider as
|
|
36
|
+
import { default as Be } from "./index37.mjs";
|
|
37
|
+
import { default as He } from "./index38.mjs";
|
|
38
|
+
import { default as Le } from "./index39.mjs";
|
|
39
|
+
import { default as We } from "./index40.mjs";
|
|
40
|
+
import { default as De } from "./index41.mjs";
|
|
41
|
+
import { default as Ye } from "./index42.mjs";
|
|
42
|
+
import { default as Xe } from "./index43.mjs";
|
|
43
|
+
import { default as qe } from "./index44.mjs";
|
|
44
|
+
import { default as Ee } from "./index45.mjs";
|
|
45
|
+
import { default as Ke } from "./index46.mjs";
|
|
46
|
+
import { default as Qe } from "./index47.mjs";
|
|
47
|
+
import { default as _e } from "./index48.mjs";
|
|
48
|
+
import { default as eo } from "./index49.mjs";
|
|
49
|
+
import { default as ro } from "./index50.mjs";
|
|
50
|
+
import { default as ao } from "./index51.mjs";
|
|
51
|
+
import { default as uo } from "./index52.mjs";
|
|
52
|
+
import { default as mo } from "./index53.mjs";
|
|
53
|
+
import { default as so } from "./index54.mjs";
|
|
54
|
+
import { default as io } from "./index55.mjs";
|
|
55
|
+
import { default as co } from "./index56.mjs";
|
|
56
|
+
import { default as ho } from "./index57.mjs";
|
|
57
|
+
import { default as Po } from "./index58.mjs";
|
|
58
|
+
import { default as So } from "./index59.mjs";
|
|
59
|
+
import { default as Ro } from "./index60.mjs";
|
|
60
|
+
import { default as Fo } from "./index61.mjs";
|
|
61
|
+
import { default as bo } from "./index62.mjs";
|
|
62
|
+
import { ThemeContextProvider as Ao, createThemeProvider as Bo, useTheme as Mo } from "./index63.mjs";
|
|
63
|
+
import { default as Go } from "./index64.mjs";
|
|
64
|
+
import { IsClientContextProvider as Uo, useIsClient as Wo } from "./index65.mjs";
|
|
65
|
+
import { SidePanelContextProvider as Do, useSidePanel as No } from "./index66.mjs";
|
|
66
|
+
import { MenuContextProvider as Vo, useMenu as Xo } from "./index67.mjs";
|
|
67
|
+
import { RadioGroupProvider as qo, useRadioGroupCtx as zo } from "./index68.mjs";
|
|
68
|
+
import { AccordionContextProvider as Jo, useAccordionCtx as Ko } from "./index69.mjs";
|
|
69
|
+
import { SearchBarProvider as Qo } from "./index70.mjs";
|
|
70
|
+
import { SwiperControllerContextProvider as _o, useSwiperController as $o } from "./index71.mjs";
|
|
71
|
+
import { TranslationContextProvider as or, useTranslation as rr } from "./index72.mjs";
|
|
72
72
|
import * as e from "react-hook-form";
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { logger as
|
|
80
|
-
import { makeTheme as
|
|
73
|
+
import { default as ar } from "./index73.mjs";
|
|
74
|
+
import { default as dr } from "./index74.mjs";
|
|
75
|
+
import { default as lr } from "./index75.mjs";
|
|
76
|
+
import { default as xr } from "./index76.mjs";
|
|
77
|
+
import { default as pr } from "./index77.mjs";
|
|
78
|
+
import { default as nr } from "./index78.mjs";
|
|
79
|
+
import { logger as Cr } from "./index79.mjs";
|
|
80
|
+
import { makeTheme as kr } from "./index80.mjs";
|
|
81
81
|
export {
|
|
82
82
|
u as Accordion,
|
|
83
|
-
|
|
83
|
+
Jo as AccordionContextProvider,
|
|
84
84
|
m as AccordionItem,
|
|
85
|
-
|
|
85
|
+
Ie as Alerts,
|
|
86
86
|
we as AlertsItem,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
s as Anchor,
|
|
88
|
+
Le as ArrowDown,
|
|
89
|
+
We as ArrowLeft,
|
|
90
|
+
De as ArrowRight,
|
|
91
|
+
ae as Box,
|
|
92
|
+
fe as BoxWithForwardRef,
|
|
93
93
|
p as Button,
|
|
94
94
|
i as ButtonWithForwardRef,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
ue as Calendar,
|
|
96
|
+
R as Carousel,
|
|
97
|
+
F as CarouselNavigationButton,
|
|
98
|
+
I as CarouselNextNavigationButton,
|
|
99
|
+
b as CarouselPrevNavigationButton,
|
|
100
|
+
Ye as Check,
|
|
101
101
|
D as Checkbox,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
102
|
+
j as CheckboxGroup,
|
|
103
|
+
z as CheckboxGroupItem,
|
|
104
|
+
Xe as ChevronLeft,
|
|
105
|
+
qe as ChevronRight,
|
|
106
|
+
Ee as CloseBtn,
|
|
107
|
+
G as Date,
|
|
108
|
+
ee as DatePicker,
|
|
109
|
+
re as DateRangePicker,
|
|
110
|
+
Ke as Facebook,
|
|
111
|
+
Qe as FacebookColored,
|
|
112
|
+
_e as FacebookRounded,
|
|
113
|
+
eo as Globe,
|
|
114
114
|
M as Icon,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
ro as Instagram,
|
|
116
|
+
ao as InstagramColored,
|
|
117
|
+
Uo as IsClientContextProvider,
|
|
118
118
|
P as Lightbox,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
uo as Link,
|
|
120
|
+
mo as LinkedIn,
|
|
121
|
+
so as Mail,
|
|
122
|
+
ke as Menu,
|
|
123
|
+
Vo as MenuContextProvider,
|
|
124
|
+
ve as MenuItems,
|
|
125
|
+
Te as MenuSidePanel,
|
|
126
|
+
me as Modal,
|
|
127
|
+
io as Plus,
|
|
128
128
|
S as Popover,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
129
|
+
se as Radio,
|
|
130
|
+
ne as RadioGroup,
|
|
131
|
+
qo as RadioGroupProvider,
|
|
132
|
+
N as ReactHookFormCheckBox,
|
|
133
|
+
E as ReactHookFormCheckboxItem,
|
|
134
|
+
Z as ReactHookFormInput,
|
|
135
|
+
pe as ReactHookFormRadio,
|
|
136
|
+
U as ReactHookFormSelect,
|
|
137
|
+
K as ReactHookFormTextArea,
|
|
138
|
+
Ce as RenderWithSlide,
|
|
139
|
+
Qo as SearchBarProvider,
|
|
140
|
+
V as SearchField,
|
|
139
141
|
W as Select,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
Be as SelectItem,
|
|
143
|
+
co as Share,
|
|
142
144
|
c as ShareButton,
|
|
143
145
|
h as SidePanel,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
Do as SidePanelContextProvider,
|
|
147
|
+
Cr as StackUILogger,
|
|
148
|
+
_o as SwiperControllerContextProvider,
|
|
149
|
+
ge as TabContainer,
|
|
150
|
+
O as TextArea,
|
|
151
|
+
_ as TextInputField,
|
|
150
152
|
Ao as ThemeContextProvider,
|
|
151
153
|
t as ThemeProvider,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
or as TranslationContextProvider,
|
|
155
|
+
ho as Twitter,
|
|
156
|
+
Po as TwitterColored,
|
|
155
157
|
f as Typography,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
158
|
+
So as Upload,
|
|
159
|
+
He as Video,
|
|
160
|
+
A as WysiwygBlock,
|
|
161
|
+
Ro as X,
|
|
162
|
+
Fo as YouTube,
|
|
163
|
+
bo as YouTubeColored,
|
|
164
|
+
Bo as createThemeProvider,
|
|
165
|
+
ar as generateUtmTags,
|
|
166
|
+
kr as makeTheme,
|
|
165
167
|
e as reactHookForm,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
168
|
+
Ko as useAccordionCtx,
|
|
169
|
+
nr as useAccordionState,
|
|
170
|
+
lr as useFacebookShareUrl,
|
|
171
|
+
Wo as useIsClient,
|
|
172
|
+
xr as useMailToShareUrl,
|
|
173
|
+
Xo as useMenu,
|
|
174
|
+
zo as useRadioGroupCtx,
|
|
175
|
+
No as useSidePanel,
|
|
176
|
+
$o as useSwiperController,
|
|
177
|
+
Mo as useTheme,
|
|
178
|
+
Go as useThemeContext,
|
|
179
|
+
rr as useTranslation,
|
|
180
|
+
pr as useTwitterShareUrl,
|
|
181
|
+
dr as useWindow
|
|
180
182
|
};
|
package/index110.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("react"),f=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("react"),f=require("./index156.js"),c=require("./index157.js"),D=require("./index158.js"),y=require("./index159.js"),I=require("./index160.js");function h(e,s,i){let a=c.useFormValidationState({...e,value:s.isSelected}),{isInvalid:r,validationErrors:v,validationDetails:P}=a.displayValidation,{labelProps:m,inputProps:b,isSelected:t,isPressed:S,isDisabled:l,isReadOnly:o}=I.useToggle({...e,isInvalid:r},s,i);D.useFormValidation(e,a,i);let{isIndeterminate:p,isRequired:d,validationBehavior:n="aria"}=e;V.useEffect(()=>{i.current&&(i.current.indeterminate=!!p)});let{pressProps:q}=y.usePress({isDisabled:l||o,onPress(){let{[c.privateValidationStateProp]:u}=e,{commitValidation:g}=u||a;g()}});return{labelProps:f.mergeProps(m,q),inputProps:{...b,checked:t,"aria-required":d&&n==="aria"||void 0,required:d&&n==="native"},isSelected:t,isPressed:S,isDisabled:l,isReadOnly:o,isInvalid:r,validationErrors:v,validationDetails:P}}exports.useCheckbox=h;
|
package/index110.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEffect as x } from "react";
|
|
2
|
-
import { mergeProps as S } from "./
|
|
3
|
-
import { useFormValidationState as D, privateValidationStateProp as V } from "./
|
|
4
|
-
import { useFormValidation as I } from "./
|
|
5
|
-
import { usePress as g } from "./
|
|
6
|
-
import { useToggle as h } from "./
|
|
2
|
+
import { mergeProps as S } from "./index156.mjs";
|
|
3
|
+
import { useFormValidationState as D, privateValidationStateProp as V } from "./index157.mjs";
|
|
4
|
+
import { useFormValidation as I } from "./index158.mjs";
|
|
5
|
+
import { usePress as g } from "./index159.mjs";
|
|
6
|
+
import { useToggle as h } from "./index160.mjs";
|
|
7
7
|
function F(e, r, i) {
|
|
8
8
|
let a = D({
|
|
9
9
|
...e,
|
package/index111.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index156.js"),o=require("react"),p=require("./index161.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/index111.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { mergeProps as n } from "./
|
|
1
|
+
import { mergeProps as n } from "./index156.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 "./index161.mjs";
|
|
4
4
|
const a = {
|
|
5
5
|
border: 0,
|
|
6
6
|
clip: "rect(0 0 0 0)",
|
package/index112.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("./index162.js");function a(e={}){let{isReadOnly:t}=e,[l,d]=o.useControlledState(e.isSelected,e.defaultSelected||!1,e.onChange);function c(i){t||d(i)}function n(){t||d(!l)}return{isSelected:l,setSelected:c,toggle:n}}exports.useToggleState=a;
|
package/index112.mjs
CHANGED
package/index113.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("./index157.js"),o=require("./index162.js"),v=require("react");function V(e={}){let[a,l]=o.useControlledState(e.value,e.defaultValue||[],e.onChange),f=!!e.isRequired&&a.length===0,u=v.useRef(new Map),n=c.useFormValidationState({...e,value:a}),r=n.displayValidation.isInvalid;var s;return{...n,value:a,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||a.includes(i)||l(a.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 d=new Map(u.current);t.isInvalid?d.set(i,t):d.delete(i),u.current=d,n.updateValidation(c.mergeValidation(...d.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:r?"invalid":null,isInvalid:r,isRequired:f}}exports.useCheckboxGroupState=V;
|
package/index113.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFormValidationState as r, mergeValidation as o } from "./
|
|
2
|
-
import { useControlledState as b } from "./
|
|
1
|
+
import { useFormValidationState as r, mergeValidation as o } from "./index157.mjs";
|
|
2
|
+
import { useControlledState as b } from "./index162.mjs";
|
|
3
3
|
import { useRef as v } from "react";
|
|
4
4
|
function y(e = {}) {
|
|
5
5
|
let [i, l] = b(e.value, e.defaultValue || [], e.onChange), c = !!e.isRequired && i.length === 0, u = v(/* @__PURE__ */ new Map()), n = r({
|
package/index115.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("./index163.js"),R=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("./index163.js"),R=require("./index148.js"),B=require("./index164.js"),C=require("@react-aria/focus"),u=require("./index139.js"),S=require("./index156.js"),W=require("./index165.js"),K=require("./index166.js"),k=require("./index157.js"),E=require("./index167.js"),U=require("./index161.js"),g=require("@react-aria/i18n"),x=require("react");function L(e){return e&&e.__esModule?e.default:e}function T(e,i,r){let l=u.useId(),P=u.useId(),f=u.useId(),t=g.useLocalizedStringFormatter(L($),"@react-aria/datepicker"),{isInvalid:c,validationErrors:b,validationDetails:D}=i.displayValidation,{labelProps:h,fieldProps:a,descriptionProps:v,errorMessageProps:m}=E.useField({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||b}),F=B.useDatePickerGroup(i,r),o=a["aria-labelledby"]||a.id,{locale:V}=g.useLocale(),y=i.formatValue(V,{month:"long"}),M=y?t.format("selectedDateDescription",{date:y}):"",n=K.useDescription(M),s=[n["aria-describedby"],a["aria-describedby"]].filter(Boolean).join(" ")||void 0,q=W.filterDOMProps(e),I=x.useMemo(()=>C.createFocusManager(r),[r]),{focusWithinProps:O}=U.useFocusWithin({...e,isDisabled:i.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:S.mergeProps(q,F,a,n,O,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":o,"aria-describedby":s,onKeyDown(d){i.isOpen||e.onKeyDown&&e.onKeyDown(d)},onKeyUp(d){i.isOpen||e.onKeyUp&&e.onKeyUp(d)}}),labelProps:{...h,onClick:()=>{I.focusFirst()}},fieldProps:{...a,id:f,[R.roleSymbol]:"presentation","aria-describedby":s,value:i.value,onChange:i.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[k.privateValidationStateProp]:i,autoFocus:e.autoFocus,name:e.name},descriptionProps:v,errorMessageProps:m,buttonProps:{...n,id:l,"aria-haspopup":"dialog","aria-label":t.format("calendar"),"aria-labelledby":`${l} ${o}`,"aria-describedby":s,"aria-expanded":i.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>i.setOpen(!0)},dialogProps:{id:P,"aria-labelledby":`${l} ${o}`},calendarProps:{autoFocus:!0,value:i.dateValue,onChange:i.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:i.dateValue?void 0:e.placeholderValue,isInvalid:i.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(i.displayValidation):e.errorMessage||i.displayValidation.validationErrors.join(" ")},isInvalid:c,validationErrors:b,validationDetails:D}}exports.useDatePicker=T;
|
package/index115.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import M from "./index163.mjs";
|
|
2
|
-
import { roleSymbol as O } from "./
|
|
2
|
+
import { roleSymbol as O } from "./index148.mjs";
|
|
3
3
|
import { useDatePickerGroup as I } from "./index164.mjs";
|
|
4
4
|
import { createFocusManager as B } from "@react-aria/focus";
|
|
5
5
|
import { useId as t } from "./index139.mjs";
|
|
6
|
-
import { mergeProps as C } from "./
|
|
6
|
+
import { mergeProps as C } from "./index156.mjs";
|
|
7
7
|
import { filterDOMProps as R } from "./index165.mjs";
|
|
8
8
|
import { useDescription as K } from "./index166.mjs";
|
|
9
|
-
import { privateValidationStateProp as W } from "./
|
|
9
|
+
import { privateValidationStateProp as W } from "./index157.mjs";
|
|
10
10
|
import { useField as E } from "./index167.mjs";
|
|
11
|
-
import { useFocusWithin as U } from "./
|
|
11
|
+
import { useFocusWithin as U } from "./index161.mjs";
|
|
12
12
|
import { useLocalizedStringFormatter as k, useLocale as L } from "@react-aria/i18n";
|
|
13
13
|
import { useMemo as Z } from "react";
|
|
14
14
|
function w(e) {
|
package/index116.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index180.js"),w=require("./index170.js"),I=require("./index181.js"),L=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index180.js"),w=require("./index170.js"),I=require("./index181.js"),L=require("./index157.js"),M=require("./index182.js"),U=require("./index162.js"),m=require("react");function $(e){let f=M.useOverlayTriggerState(e),[l,v]=U.useControlledState(e.value,e.defaultValue||null,e.onChange),d=l||e.placeholderValue||null,[i,u]=o.useDefaultProps(d,e.granularity),y=l!=null?l.toDate(u??"UTC"):null,h=i==="hour"||i==="minute"||i==="second";var g;let V=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[n,D]=m.useState(null),[r,C]=m.useState(null);if(l&&(n=l,"hour"in l&&(r=l)),d&&!(i in d))throw new Error("Invalid granularity "+i+" for value "+d.toString());let O=(l==null?void 0:l.calendar.identifier)==="gregory"&&l.era==="BC",s=m.useMemo(()=>({granularity:i,timeZone:u,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:O}),[i,e.hourCycle,e.shouldForceLeadingZeros,u,e.hideTimeZone,O]),{minValue:F,maxValue:b,isDateUnavailable:Z}=e,x=m.useMemo(()=>o.getValidationResult(l,F,b,Z,s),[l,F,b,Z,s]),c=L.useFormValidationState({...e,value:l,builtinValidation:x}),q=c.displayValidation.isInvalid,E=e.validationState||(q?"invalid":null),S=(t,a)=>{v("timeZone"in a?a.set(w.toCalendarDate(t)):w.toCalendarDateTime(t,a)),D(null),C(null),c.commitValidation()};return{...c,value:l,setValue:v,dateValue:n,timeValue:r,setDateValue:t=>{let a=typeof V=="function"?V():V;h?r||a?S(t,r||o.getPlaceholderTime(e.defaultValue||e.placeholderValue)):D(t):(v(t),c.commitValidation()),a&&f.setOpen(!1)},setTimeValue:t=>{n&&t?S(n,t):C(t)},granularity:i,hasTime:h,...f,setOpen(t){!t&&!l&&n&&h&&S(n,r||o.getPlaceholderTime(e.defaultValue||e.placeholderValue)),f.setOpen(t)},validationState:E,isInvalid:q,formatValue(t,a){if(!y)return"";let T=o.getFormatOptions(a,s);return new I.DateFormatter(t,T).format(y)},getDateFormatter(t,a){let T={...s,...a},P=o.getFormatOptions({},T);return new I.DateFormatter(t,P)}}}exports.useDatePickerState=$;
|
package/index116.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useDefaultProps as U, getValidationResult as _, getPlaceholderTime as Z, getFormatOptions as F } from "./index180.mjs";
|
|
2
2
|
import { toCalendarDate as k, toCalendarDateTime as B } from "./index170.mjs";
|
|
3
3
|
import { DateFormatter as w } from "./index181.mjs";
|
|
4
|
-
import { useFormValidationState as M } from "./
|
|
4
|
+
import { useFormValidationState as M } from "./index157.mjs";
|
|
5
5
|
import { useOverlayTriggerState as R } from "./index182.mjs";
|
|
6
|
-
import { useControlledState as j } from "./
|
|
6
|
+
import { useControlledState as j } from "./index162.mjs";
|
|
7
7
|
import { useState as I, useMemo as E } from "react";
|
|
8
8
|
function W(e) {
|
|
9
9
|
let m = R(e), [t, s] = j(e.value, e.defaultValue || null, e.onChange), u = t || e.placeholderValue || null, [i, r] = U(u, e.granularity), V = t != null ? t.toDate(r ?? "UTC") : null, c = i === "hour" || i === "minute" || i === "second";
|
package/index118.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("./index144.js"),f=require("./index145.js"),v=require("./index146.js"),m=require("react"),i=require("./index64.js");function j(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=j(m);function y({themeName:e="datePicker",tokens:o,...r}){const s=P.useRef(null),{state:n,children:a}={...r},{popoverProps:u,underlayProps:l}=f.usePopover({...r,popoverRef:s},n),d=i(`${e}.calendarUnderlay`,o),p=i(`${e}.calendarPopover`,o);return t.jsxs(v.Overlay,{children:[t.jsx("div",{...l,className:d}),t.jsxs("div",{...u,ref:s,className:p,children:[t.jsx(c.DismissButton,{onDismiss:n.close}),a,t.jsx(c.DismissButton,{onDismiss:n.close})]})]})}exports.CalendarPopover=y;
|
package/index118.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { DismissButton as n } from "./
|
|
3
|
-
import { usePopover as $ } from "./
|
|
4
|
-
import { Overlay as u } from "./
|
|
2
|
+
import { DismissButton as n } from "./index144.mjs";
|
|
3
|
+
import { usePopover as $ } from "./index145.mjs";
|
|
4
|
+
import { Overlay as u } from "./index146.mjs";
|
|
5
5
|
import * as v from "react";
|
|
6
6
|
import p from "./index64.mjs";
|
|
7
7
|
function D({ themeName: r = "datePicker", tokens: s, ...a }) {
|