@wello-dev/core 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +709 -425
- package/dist/{chunk-NGXT7GNE.js → chunk-3WEM43GB.js} +3 -3
- package/dist/{chunk-7EINGVGG.js → chunk-55HC4KD7.js} +2 -2
- package/dist/{chunk-LGL6XP6C.js → chunk-5DBGHVG2.js} +3 -3
- package/dist/{chunk-WVYAE5MT.js → chunk-5NRRPIJU.js} +2 -2
- package/dist/{chunk-3IKAVFR3.js → chunk-7ERRBV4L.js} +3 -3
- package/dist/{chunk-7S7RIVCI.js → chunk-A6YBE2SX.js} +3 -3
- package/dist/{chunk-7S7RIVCI.js.map → chunk-A6YBE2SX.js.map} +1 -1
- package/dist/{chunk-UYKK6PVB.js → chunk-ATEUNLBO.js} +2 -2
- package/dist/{chunk-O6A7IBIW.js → chunk-BESKNEWG.js} +2 -2
- package/dist/{chunk-2MVQG2PQ.js → chunk-C3KE4QQD.js} +7 -3
- package/dist/chunk-C3KE4QQD.js.map +1 -0
- package/dist/{chunk-ECFQDEFL.js → chunk-CJBB6IC3.js} +2 -2
- package/dist/chunk-CJBB6IC3.js.map +1 -0
- package/dist/{chunk-7KIXQ2XG.js → chunk-E2ETAAGS.js} +1 -1
- package/dist/chunk-E2ETAAGS.js.map +1 -0
- package/dist/{chunk-JXRN4MGT.js → chunk-ET7LVQGA.js} +6 -6
- package/dist/chunk-ET7LVQGA.js.map +1 -0
- package/dist/{chunk-NOYSHU5U.js → chunk-H5UAFA55.js} +1 -1
- package/dist/chunk-H5UAFA55.js.map +1 -0
- package/dist/{chunk-MO6GW5AX.js → chunk-HD2SIRFG.js} +3 -3
- package/dist/chunk-HD2SIRFG.js.map +1 -0
- package/dist/{chunk-2TFJ4SMR.js → chunk-I2WCQBUT.js} +1 -1
- package/dist/chunk-I2WCQBUT.js.map +1 -0
- package/dist/{chunk-EJ7ZXISQ.js → chunk-JMVSECPD.js} +4 -4
- package/dist/{chunk-EME4ROPE.js → chunk-LDWBA55Q.js} +8 -8
- package/dist/chunk-LDWBA55Q.js.map +1 -0
- package/dist/{chunk-JJXJXOZ7.js → chunk-LMLSYKLQ.js} +1 -1
- package/dist/chunk-LMLSYKLQ.js.map +1 -0
- package/dist/{chunk-4E45SQMX.js → chunk-M4WVOCOX.js} +3 -3
- package/dist/chunk-M4WVOCOX.js.map +1 -0
- package/dist/{chunk-XG7ZGCBW.js → chunk-NEJBDVBN.js} +3 -3
- package/dist/chunk-NEJBDVBN.js.map +1 -0
- package/dist/{chunk-E2765LHX.js → chunk-ODF3HUKP.js} +1 -1
- package/dist/chunk-ODF3HUKP.js.map +1 -0
- package/dist/{chunk-OYUQO4ZT.js → chunk-Q3DHR5EU.js} +2 -2
- package/dist/{chunk-N76DWAX4.js → chunk-QBWFQBVX.js} +4 -4
- package/dist/{chunk-BMKZFNPD.js → chunk-R4M6UTX2.js} +2 -2
- package/dist/chunk-R4M6UTX2.js.map +1 -0
- package/dist/{chunk-CGR72YL6.js → chunk-S43JDQR4.js} +2 -2
- package/dist/chunk-S43JDQR4.js.map +1 -0
- package/dist/{chunk-K3B2RENY.js → chunk-SHOHRD77.js} +2 -2
- package/dist/{chunk-TIVOXLDX.js → chunk-UYDFCGB5.js} +1 -1
- package/dist/chunk-UYDFCGB5.js.map +1 -0
- package/dist/{chunk-HBBXBVK6.js → chunk-WXMOPGIU.js} +3 -3
- package/dist/chunk-WXMOPGIU.js.map +1 -0
- package/dist/{chunk-GSLJSEUI.js → chunk-YJDMT4LX.js} +1 -1
- package/dist/chunk-YJDMT4LX.js.map +1 -0
- package/dist/{chunk-652ZEQV7.js → chunk-Z4QS4UEM.js} +7 -7
- package/dist/chunk-Z4QS4UEM.js.map +1 -0
- package/dist/{chunk-ESMDK5GY.js → chunk-ZGXRYG45.js} +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +2 -2
- package/dist/components/ColorPicker/ColorInput.js +5 -5
- package/dist/components/Combobox/Combobox.js +4 -4
- package/dist/components/Combobox/Pill.js +2 -2
- package/dist/components/Combobox/Select.js +7 -7
- package/dist/components/Combobox/TagsInput.js +8 -8
- package/dist/components/Dialog/Dialog.js +2 -2
- package/dist/components/Dropzone/Dropzone.js +5 -5
- package/dist/components/Field/Field.js +2 -2
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Menu/Menu.js +4 -4
- package/dist/components/Modal/Drawer.js +3 -3
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/Modal/ModalBase.js +2 -2
- package/dist/components/NumberFormatter/NumberFormatter.js +1 -1
- package/dist/components/PhoneInput/PhoneInput.js +8 -8
- package/dist/components/PinInput/PinInput.js +1 -1
- package/dist/components/Popover/Popover.js +3 -3
- package/dist/components/Portal/Portal.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/TextInput/TextInput.js +3 -3
- package/dist/components/ThemeToggle/ThemeToggle.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/{shadcn → compound}/Command.js +8 -8
- package/dist/{shadcn → compound}/Dialog.js +7 -7
- package/dist/{shadcn → compound}/Floating.js +7 -7
- package/dist/{shadcn → compound}/Parts.js +2 -2
- package/dist/{shadcn → compound}/shared.js +1 -1
- package/dist/index.cjs +14 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -19
- package/dist/index.d.ts +19 -19
- package/dist/index.js +51 -51
- package/dist/styles.css +3748 -3738
- package/package.json +78 -78
- package/dist/chunk-2MVQG2PQ.js.map +0 -1
- package/dist/chunk-2TFJ4SMR.js.map +0 -1
- package/dist/chunk-4E45SQMX.js.map +0 -1
- package/dist/chunk-652ZEQV7.js.map +0 -1
- package/dist/chunk-7KIXQ2XG.js.map +0 -1
- package/dist/chunk-BMKZFNPD.js.map +0 -1
- package/dist/chunk-CGR72YL6.js.map +0 -1
- package/dist/chunk-E2765LHX.js.map +0 -1
- package/dist/chunk-ECFQDEFL.js.map +0 -1
- package/dist/chunk-EME4ROPE.js.map +0 -1
- package/dist/chunk-GSLJSEUI.js.map +0 -1
- package/dist/chunk-HBBXBVK6.js.map +0 -1
- package/dist/chunk-JJXJXOZ7.js.map +0 -1
- package/dist/chunk-JXRN4MGT.js.map +0 -1
- package/dist/chunk-MO6GW5AX.js.map +0 -1
- package/dist/chunk-NOYSHU5U.js.map +0 -1
- package/dist/chunk-TIVOXLDX.js.map +0 -1
- package/dist/chunk-XG7ZGCBW.js.map +0 -1
- /package/dist/{chunk-NGXT7GNE.js.map → chunk-3WEM43GB.js.map} +0 -0
- /package/dist/{chunk-7EINGVGG.js.map → chunk-55HC4KD7.js.map} +0 -0
- /package/dist/{chunk-LGL6XP6C.js.map → chunk-5DBGHVG2.js.map} +0 -0
- /package/dist/{chunk-WVYAE5MT.js.map → chunk-5NRRPIJU.js.map} +0 -0
- /package/dist/{chunk-3IKAVFR3.js.map → chunk-7ERRBV4L.js.map} +0 -0
- /package/dist/{chunk-UYKK6PVB.js.map → chunk-ATEUNLBO.js.map} +0 -0
- /package/dist/{chunk-O6A7IBIW.js.map → chunk-BESKNEWG.js.map} +0 -0
- /package/dist/{chunk-EJ7ZXISQ.js.map → chunk-JMVSECPD.js.map} +0 -0
- /package/dist/{chunk-OYUQO4ZT.js.map → chunk-Q3DHR5EU.js.map} +0 -0
- /package/dist/{chunk-N76DWAX4.js.map → chunk-QBWFQBVX.js.map} +0 -0
- /package/dist/{chunk-K3B2RENY.js.map → chunk-SHOHRD77.js.map} +0 -0
- /package/dist/{chunk-ESMDK5GY.js.map → chunk-ZGXRYG45.js.map} +0 -0
- /package/dist/{shadcn → compound}/Command.js.map +0 -0
- /package/dist/{shadcn → compound}/Dialog.js.map +0 -0
- /package/dist/{shadcn → compound}/Floating.js.map +0 -0
- /package/dist/{shadcn → compound}/Parts.js.map +0 -0
- /package/dist/{shadcn → compound}/shared.js.map +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -898,7 +898,7 @@ type LoaderFactory = {
|
|
|
898
898
|
*/
|
|
899
899
|
declare const Loader: PolymorphicComponent<LoaderFactory>;
|
|
900
900
|
|
|
901
|
-
/**
|
|
901
|
+
/** Common variant names and the extended names; every one honours `color`. */
|
|
902
902
|
type ButtonVariant = "default" | "outline" | "secondary" | "ghost" | "destructive" | "success" | "warning" | "info" | "link" | "filled" | "light" | "subtle" | "transparent" | "white" | "gradient";
|
|
903
903
|
type ButtonSize = "default" | WelloSize | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | `compact-${WelloSize}`;
|
|
904
904
|
type ButtonStylesNames = "root" | "inner" | "loader" | "section" | "label";
|
|
@@ -948,7 +948,7 @@ type ButtonFactory = {
|
|
|
948
948
|
};
|
|
949
949
|
};
|
|
950
950
|
/**
|
|
951
|
-
* Button: the
|
|
951
|
+
* Button: the common API (`variant`, `size`, `asChild`) and the extended one (`color`,
|
|
952
952
|
* `leftSection`, `loading`, `component`, Styles API). `color` works with every variant.
|
|
953
953
|
*
|
|
954
954
|
* @example
|
|
@@ -3687,7 +3687,7 @@ interface InputProps extends BoxProps, StylesApiProps<InputStylesNames, InputPro
|
|
|
3687
3687
|
required?: boolean;
|
|
3688
3688
|
/** Set aria-invalid / aria-describedby. Default: true */
|
|
3689
3689
|
withAria?: boolean;
|
|
3690
|
-
/** Merged into the input (
|
|
3690
|
+
/** Merged into the input (classes go on the field itself) */
|
|
3691
3691
|
className?: string;
|
|
3692
3692
|
/** Keeps the red border off while `error` still shows. Default: true */
|
|
3693
3693
|
withErrorStyles?: boolean;
|
|
@@ -3715,7 +3715,7 @@ declare const inputVarsResolver: (props: {
|
|
|
3715
3715
|
"--input-right-section-width": string | undefined;
|
|
3716
3716
|
};
|
|
3717
3717
|
/**
|
|
3718
|
-
* Styled field: works as a plain `<input>`
|
|
3718
|
+
* Styled field: works as a plain `<input>` and as the base of every
|
|
3719
3719
|
* input component (sections, sizes, variants, error state).
|
|
3720
3720
|
*
|
|
3721
3721
|
* @example
|
|
@@ -3960,7 +3960,7 @@ declare const NumberInput: WelloComponent<{
|
|
|
3960
3960
|
ref: HTMLInputElement;
|
|
3961
3961
|
stylesNames: string;
|
|
3962
3962
|
}>;
|
|
3963
|
-
/** Same as NumberInput (
|
|
3963
|
+
/** Same as NumberInput (alternative name). */
|
|
3964
3964
|
declare const InputNumber: WelloComponent<{
|
|
3965
3965
|
props: NumberInputProps;
|
|
3966
3966
|
ref: HTMLInputElement;
|
|
@@ -4111,7 +4111,7 @@ interface CheckboxProps extends BoxProps, StylesApiProps<CheckboxStylesNames, Ch
|
|
|
4111
4111
|
defaultChecked?: boolean;
|
|
4112
4112
|
/** The input change event */
|
|
4113
4113
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
4114
|
-
/**
|
|
4114
|
+
/** Called with the new state */
|
|
4115
4115
|
onCheckedChange?: (checked: boolean) => void;
|
|
4116
4116
|
/** Dash instead of the check */
|
|
4117
4117
|
indeterminate?: boolean;
|
|
@@ -4166,7 +4166,7 @@ interface CheckboxGroupProps extends Omit<InputWrapperProps, "onChange"> {
|
|
|
4166
4166
|
value?: string[];
|
|
4167
4167
|
defaultValue?: string[];
|
|
4168
4168
|
onChange?: (value: string[]) => void;
|
|
4169
|
-
/**
|
|
4169
|
+
/** Alias of onChange */
|
|
4170
4170
|
onValueChange?: (value: string[]) => void;
|
|
4171
4171
|
disabled?: boolean;
|
|
4172
4172
|
children?: ReactNode;
|
|
@@ -4179,7 +4179,7 @@ declare const CheckboxGroup: WelloComponent<{
|
|
|
4179
4179
|
interface RadioProps extends Omit<CheckboxProps, "indeterminate" | "icon" | "onCheckedChange" | "variant" | "iconColor" | "classNames" | "styles" | "vars" | "attributes">, StylesApiProps<CheckboxStylesNames, RadioProps> {
|
|
4180
4180
|
/** Default: 'filled' */
|
|
4181
4181
|
variant?: "filled" | "outline";
|
|
4182
|
-
/** Label as children (
|
|
4182
|
+
/** Label as children (RadioGroupItem) */
|
|
4183
4183
|
children?: ReactNode;
|
|
4184
4184
|
}
|
|
4185
4185
|
/**
|
|
@@ -4204,7 +4204,7 @@ interface RadioGroupProps extends Omit<InputWrapperProps, "onChange"> {
|
|
|
4204
4204
|
defaultValue?: string | null;
|
|
4205
4205
|
/** Gets the new value */
|
|
4206
4206
|
onChange?: (value: string) => void;
|
|
4207
|
-
/**
|
|
4207
|
+
/** Alias of onChange, called with the new value */
|
|
4208
4208
|
onValueChange?: (value: string) => void;
|
|
4209
4209
|
/** Shared name of the inputs. Default: generated */
|
|
4210
4210
|
name?: string;
|
|
@@ -4218,7 +4218,7 @@ declare const RadioGroup: WelloComponent<{
|
|
|
4218
4218
|
ref: HTMLDivElement;
|
|
4219
4219
|
stylesNames: string;
|
|
4220
4220
|
}>;
|
|
4221
|
-
/**
|
|
4221
|
+
/** A Radio whose children are the label. */
|
|
4222
4222
|
declare const RadioGroupItem: WelloComponent<{
|
|
4223
4223
|
props: RadioProps;
|
|
4224
4224
|
ref: HTMLInputElement;
|
|
@@ -4513,7 +4513,7 @@ declare const REGEXP_ONLY_DIGITS = "^\\d+$";
|
|
|
4513
4513
|
declare const REGEXP_ONLY_CHARS = "^[a-zA-Z]+$";
|
|
4514
4514
|
declare const REGEXP_ONLY_DIGITS_AND_CHARS = "^[a-zA-Z0-9]+$";
|
|
4515
4515
|
/**
|
|
4516
|
-
*
|
|
4516
|
+
* OTP input built from parts: lay out the cells with groups and separators.
|
|
4517
4517
|
*
|
|
4518
4518
|
* @example
|
|
4519
4519
|
* <InputOTP maxLength={6} pattern={REGEXP_ONLY_DIGITS} value={code} onChange={setCode}>
|
|
@@ -4940,7 +4940,7 @@ interface SingleSelectProps<T = any> extends SelectBaseProps<T> {
|
|
|
4940
4940
|
defaultValue?: string | number | null;
|
|
4941
4941
|
/** Value and its option */
|
|
4942
4942
|
onChange?: (value: any, option: string | number | T | null) => void;
|
|
4943
|
-
/**
|
|
4943
|
+
/** Only when there is a value */
|
|
4944
4944
|
onValueChange?: (value: string) => void;
|
|
4945
4945
|
/** Clicking the chosen option again clears it. Default: true */
|
|
4946
4946
|
allowDeselect?: boolean;
|
|
@@ -5449,7 +5449,7 @@ declare const Carousel: WelloComponent<{
|
|
|
5449
5449
|
}>;
|
|
5450
5450
|
|
|
5451
5451
|
type TabsStylesNames = "root" | "list" | "tab" | "tabLabel" | "tabSection" | "panel" | "indicator";
|
|
5452
|
-
/** `default` (pill with sliding indicator
|
|
5452
|
+
/** `default` (pill with sliding indicator), `line` (underline), `outline` and `pills` */
|
|
5453
5453
|
type TabsVariant = "default" | "line" | "outline" | "pills";
|
|
5454
5454
|
interface TabsContextValue {
|
|
5455
5455
|
value: string | null;
|
|
@@ -5472,7 +5472,7 @@ interface TabsProps extends BoxProps, StylesApiProps<TabsStylesNames, TabsProps>
|
|
|
5472
5472
|
defaultValue?: string | null;
|
|
5473
5473
|
/** Gets the new value */
|
|
5474
5474
|
onChange?: (value: string | null) => void;
|
|
5475
|
-
/**
|
|
5475
|
+
/** Called with the new value */
|
|
5476
5476
|
onValueChange?: (value: string) => void;
|
|
5477
5477
|
/** Default: 'horizontal' */
|
|
5478
5478
|
orientation?: "horizontal" | "vertical";
|
|
@@ -5497,7 +5497,7 @@ interface TabsProps extends BoxProps, StylesApiProps<TabsStylesNames, TabsProps>
|
|
|
5497
5497
|
children?: ReactNode;
|
|
5498
5498
|
}
|
|
5499
5499
|
/**
|
|
5500
|
-
* Tabs.
|
|
5500
|
+
* Tabs. Composable parts (TabsList / TabsTrigger / TabsContent with `onValueChange`) or the
|
|
5501
5501
|
* compound parts (Tabs.List / Tabs.Tab / Tabs.Panel with `onChange`).
|
|
5502
5502
|
*
|
|
5503
5503
|
* @example
|
|
@@ -5524,7 +5524,7 @@ interface TabsListProps extends BoxProps {
|
|
|
5524
5524
|
grow?: boolean;
|
|
5525
5525
|
/** `justify-content` of the tabs */
|
|
5526
5526
|
justify?: React.CSSProperties["justifyContent"];
|
|
5527
|
-
/**
|
|
5527
|
+
/** List look (`default` pill or `line`) */
|
|
5528
5528
|
variant?: TabsVariant;
|
|
5529
5529
|
children?: ReactNode;
|
|
5530
5530
|
className?: string;
|
|
@@ -5562,7 +5562,7 @@ declare const TabsPanel: WelloComponent<{
|
|
|
5562
5562
|
ref: HTMLDivElement;
|
|
5563
5563
|
stylesNames: "panel";
|
|
5564
5564
|
}>;
|
|
5565
|
-
/**
|
|
5565
|
+
/** Part names */
|
|
5566
5566
|
declare const TabsTrigger: WelloComponent<{
|
|
5567
5567
|
props: TabsTabProps;
|
|
5568
5568
|
ref: HTMLButtonElement;
|
|
@@ -6111,7 +6111,7 @@ interface PopoverProps extends PopoverProps$1 {
|
|
|
6111
6111
|
modal?: boolean;
|
|
6112
6112
|
}
|
|
6113
6113
|
/**
|
|
6114
|
-
* Popover,
|
|
6114
|
+
* Popover, with composable parts (`PopoverTrigger` / `PopoverContent` with side + align) or with
|
|
6115
6115
|
* `Popover.Target` / `Popover.Dropdown` and `position`.
|
|
6116
6116
|
*
|
|
6117
6117
|
* @example
|
|
@@ -6193,7 +6193,7 @@ declare namespace TooltipContent {
|
|
|
6193
6193
|
var displayName: string;
|
|
6194
6194
|
}
|
|
6195
6195
|
/**
|
|
6196
|
-
* Tooltip,
|
|
6196
|
+
* Tooltip, with composable parts (TooltipTrigger + TooltipContent) or with a `label` prop.
|
|
6197
6197
|
*
|
|
6198
6198
|
* @example
|
|
6199
6199
|
* <Tooltip>
|
package/dist/index.d.ts
CHANGED
|
@@ -898,7 +898,7 @@ type LoaderFactory = {
|
|
|
898
898
|
*/
|
|
899
899
|
declare const Loader: PolymorphicComponent<LoaderFactory>;
|
|
900
900
|
|
|
901
|
-
/**
|
|
901
|
+
/** Common variant names and the extended names; every one honours `color`. */
|
|
902
902
|
type ButtonVariant = "default" | "outline" | "secondary" | "ghost" | "destructive" | "success" | "warning" | "info" | "link" | "filled" | "light" | "subtle" | "transparent" | "white" | "gradient";
|
|
903
903
|
type ButtonSize = "default" | WelloSize | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | `compact-${WelloSize}`;
|
|
904
904
|
type ButtonStylesNames = "root" | "inner" | "loader" | "section" | "label";
|
|
@@ -948,7 +948,7 @@ type ButtonFactory = {
|
|
|
948
948
|
};
|
|
949
949
|
};
|
|
950
950
|
/**
|
|
951
|
-
* Button: the
|
|
951
|
+
* Button: the common API (`variant`, `size`, `asChild`) and the extended one (`color`,
|
|
952
952
|
* `leftSection`, `loading`, `component`, Styles API). `color` works with every variant.
|
|
953
953
|
*
|
|
954
954
|
* @example
|
|
@@ -3687,7 +3687,7 @@ interface InputProps extends BoxProps, StylesApiProps<InputStylesNames, InputPro
|
|
|
3687
3687
|
required?: boolean;
|
|
3688
3688
|
/** Set aria-invalid / aria-describedby. Default: true */
|
|
3689
3689
|
withAria?: boolean;
|
|
3690
|
-
/** Merged into the input (
|
|
3690
|
+
/** Merged into the input (classes go on the field itself) */
|
|
3691
3691
|
className?: string;
|
|
3692
3692
|
/** Keeps the red border off while `error` still shows. Default: true */
|
|
3693
3693
|
withErrorStyles?: boolean;
|
|
@@ -3715,7 +3715,7 @@ declare const inputVarsResolver: (props: {
|
|
|
3715
3715
|
"--input-right-section-width": string | undefined;
|
|
3716
3716
|
};
|
|
3717
3717
|
/**
|
|
3718
|
-
* Styled field: works as a plain `<input>`
|
|
3718
|
+
* Styled field: works as a plain `<input>` and as the base of every
|
|
3719
3719
|
* input component (sections, sizes, variants, error state).
|
|
3720
3720
|
*
|
|
3721
3721
|
* @example
|
|
@@ -3960,7 +3960,7 @@ declare const NumberInput: WelloComponent<{
|
|
|
3960
3960
|
ref: HTMLInputElement;
|
|
3961
3961
|
stylesNames: string;
|
|
3962
3962
|
}>;
|
|
3963
|
-
/** Same as NumberInput (
|
|
3963
|
+
/** Same as NumberInput (alternative name). */
|
|
3964
3964
|
declare const InputNumber: WelloComponent<{
|
|
3965
3965
|
props: NumberInputProps;
|
|
3966
3966
|
ref: HTMLInputElement;
|
|
@@ -4111,7 +4111,7 @@ interface CheckboxProps extends BoxProps, StylesApiProps<CheckboxStylesNames, Ch
|
|
|
4111
4111
|
defaultChecked?: boolean;
|
|
4112
4112
|
/** The input change event */
|
|
4113
4113
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
4114
|
-
/**
|
|
4114
|
+
/** Called with the new state */
|
|
4115
4115
|
onCheckedChange?: (checked: boolean) => void;
|
|
4116
4116
|
/** Dash instead of the check */
|
|
4117
4117
|
indeterminate?: boolean;
|
|
@@ -4166,7 +4166,7 @@ interface CheckboxGroupProps extends Omit<InputWrapperProps, "onChange"> {
|
|
|
4166
4166
|
value?: string[];
|
|
4167
4167
|
defaultValue?: string[];
|
|
4168
4168
|
onChange?: (value: string[]) => void;
|
|
4169
|
-
/**
|
|
4169
|
+
/** Alias of onChange */
|
|
4170
4170
|
onValueChange?: (value: string[]) => void;
|
|
4171
4171
|
disabled?: boolean;
|
|
4172
4172
|
children?: ReactNode;
|
|
@@ -4179,7 +4179,7 @@ declare const CheckboxGroup: WelloComponent<{
|
|
|
4179
4179
|
interface RadioProps extends Omit<CheckboxProps, "indeterminate" | "icon" | "onCheckedChange" | "variant" | "iconColor" | "classNames" | "styles" | "vars" | "attributes">, StylesApiProps<CheckboxStylesNames, RadioProps> {
|
|
4180
4180
|
/** Default: 'filled' */
|
|
4181
4181
|
variant?: "filled" | "outline";
|
|
4182
|
-
/** Label as children (
|
|
4182
|
+
/** Label as children (RadioGroupItem) */
|
|
4183
4183
|
children?: ReactNode;
|
|
4184
4184
|
}
|
|
4185
4185
|
/**
|
|
@@ -4204,7 +4204,7 @@ interface RadioGroupProps extends Omit<InputWrapperProps, "onChange"> {
|
|
|
4204
4204
|
defaultValue?: string | null;
|
|
4205
4205
|
/** Gets the new value */
|
|
4206
4206
|
onChange?: (value: string) => void;
|
|
4207
|
-
/**
|
|
4207
|
+
/** Alias of onChange, called with the new value */
|
|
4208
4208
|
onValueChange?: (value: string) => void;
|
|
4209
4209
|
/** Shared name of the inputs. Default: generated */
|
|
4210
4210
|
name?: string;
|
|
@@ -4218,7 +4218,7 @@ declare const RadioGroup: WelloComponent<{
|
|
|
4218
4218
|
ref: HTMLDivElement;
|
|
4219
4219
|
stylesNames: string;
|
|
4220
4220
|
}>;
|
|
4221
|
-
/**
|
|
4221
|
+
/** A Radio whose children are the label. */
|
|
4222
4222
|
declare const RadioGroupItem: WelloComponent<{
|
|
4223
4223
|
props: RadioProps;
|
|
4224
4224
|
ref: HTMLInputElement;
|
|
@@ -4513,7 +4513,7 @@ declare const REGEXP_ONLY_DIGITS = "^\\d+$";
|
|
|
4513
4513
|
declare const REGEXP_ONLY_CHARS = "^[a-zA-Z]+$";
|
|
4514
4514
|
declare const REGEXP_ONLY_DIGITS_AND_CHARS = "^[a-zA-Z0-9]+$";
|
|
4515
4515
|
/**
|
|
4516
|
-
*
|
|
4516
|
+
* OTP input built from parts: lay out the cells with groups and separators.
|
|
4517
4517
|
*
|
|
4518
4518
|
* @example
|
|
4519
4519
|
* <InputOTP maxLength={6} pattern={REGEXP_ONLY_DIGITS} value={code} onChange={setCode}>
|
|
@@ -4940,7 +4940,7 @@ interface SingleSelectProps<T = any> extends SelectBaseProps<T> {
|
|
|
4940
4940
|
defaultValue?: string | number | null;
|
|
4941
4941
|
/** Value and its option */
|
|
4942
4942
|
onChange?: (value: any, option: string | number | T | null) => void;
|
|
4943
|
-
/**
|
|
4943
|
+
/** Only when there is a value */
|
|
4944
4944
|
onValueChange?: (value: string) => void;
|
|
4945
4945
|
/** Clicking the chosen option again clears it. Default: true */
|
|
4946
4946
|
allowDeselect?: boolean;
|
|
@@ -5449,7 +5449,7 @@ declare const Carousel: WelloComponent<{
|
|
|
5449
5449
|
}>;
|
|
5450
5450
|
|
|
5451
5451
|
type TabsStylesNames = "root" | "list" | "tab" | "tabLabel" | "tabSection" | "panel" | "indicator";
|
|
5452
|
-
/** `default` (pill with sliding indicator
|
|
5452
|
+
/** `default` (pill with sliding indicator), `line` (underline), `outline` and `pills` */
|
|
5453
5453
|
type TabsVariant = "default" | "line" | "outline" | "pills";
|
|
5454
5454
|
interface TabsContextValue {
|
|
5455
5455
|
value: string | null;
|
|
@@ -5472,7 +5472,7 @@ interface TabsProps extends BoxProps, StylesApiProps<TabsStylesNames, TabsProps>
|
|
|
5472
5472
|
defaultValue?: string | null;
|
|
5473
5473
|
/** Gets the new value */
|
|
5474
5474
|
onChange?: (value: string | null) => void;
|
|
5475
|
-
/**
|
|
5475
|
+
/** Called with the new value */
|
|
5476
5476
|
onValueChange?: (value: string) => void;
|
|
5477
5477
|
/** Default: 'horizontal' */
|
|
5478
5478
|
orientation?: "horizontal" | "vertical";
|
|
@@ -5497,7 +5497,7 @@ interface TabsProps extends BoxProps, StylesApiProps<TabsStylesNames, TabsProps>
|
|
|
5497
5497
|
children?: ReactNode;
|
|
5498
5498
|
}
|
|
5499
5499
|
/**
|
|
5500
|
-
* Tabs.
|
|
5500
|
+
* Tabs. Composable parts (TabsList / TabsTrigger / TabsContent with `onValueChange`) or the
|
|
5501
5501
|
* compound parts (Tabs.List / Tabs.Tab / Tabs.Panel with `onChange`).
|
|
5502
5502
|
*
|
|
5503
5503
|
* @example
|
|
@@ -5524,7 +5524,7 @@ interface TabsListProps extends BoxProps {
|
|
|
5524
5524
|
grow?: boolean;
|
|
5525
5525
|
/** `justify-content` of the tabs */
|
|
5526
5526
|
justify?: React.CSSProperties["justifyContent"];
|
|
5527
|
-
/**
|
|
5527
|
+
/** List look (`default` pill or `line`) */
|
|
5528
5528
|
variant?: TabsVariant;
|
|
5529
5529
|
children?: ReactNode;
|
|
5530
5530
|
className?: string;
|
|
@@ -5562,7 +5562,7 @@ declare const TabsPanel: WelloComponent<{
|
|
|
5562
5562
|
ref: HTMLDivElement;
|
|
5563
5563
|
stylesNames: "panel";
|
|
5564
5564
|
}>;
|
|
5565
|
-
/**
|
|
5565
|
+
/** Part names */
|
|
5566
5566
|
declare const TabsTrigger: WelloComponent<{
|
|
5567
5567
|
props: TabsTabProps;
|
|
5568
5568
|
ref: HTMLButtonElement;
|
|
@@ -6111,7 +6111,7 @@ interface PopoverProps extends PopoverProps$1 {
|
|
|
6111
6111
|
modal?: boolean;
|
|
6112
6112
|
}
|
|
6113
6113
|
/**
|
|
6114
|
-
* Popover,
|
|
6114
|
+
* Popover, with composable parts (`PopoverTrigger` / `PopoverContent` with side + align) or with
|
|
6115
6115
|
* `Popover.Target` / `Popover.Dropdown` and `position`.
|
|
6116
6116
|
*
|
|
6117
6117
|
* @example
|
|
@@ -6193,7 +6193,7 @@ declare namespace TooltipContent {
|
|
|
6193
6193
|
var displayName: string;
|
|
6194
6194
|
}
|
|
6195
6195
|
/**
|
|
6196
|
-
* Tooltip,
|
|
6196
|
+
* Tooltip, with composable parts (TooltipTrigger + TooltipContent) or with a `label` prop.
|
|
6197
6197
|
*
|
|
6198
6198
|
* @example
|
|
6199
6199
|
* <Tooltip>
|
package/dist/index.js
CHANGED
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
PasswordInput,
|
|
12
12
|
TextInput,
|
|
13
13
|
Textarea
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A6YBE2SX.js";
|
|
15
15
|
import {
|
|
16
16
|
ThemeToggle,
|
|
17
17
|
ThemeToggleButton
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JMVSECPD.js";
|
|
19
19
|
import {
|
|
20
20
|
Timeline,
|
|
21
21
|
TimelineItem
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
TabsTrigger,
|
|
55
55
|
tabsListVariants,
|
|
56
56
|
useTabsContext
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-YJDMT4LX.js";
|
|
58
58
|
import {
|
|
59
59
|
Paper
|
|
60
60
|
} from "./chunk-B3LVDQJU.js";
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
matchesPhoneStartingNumber,
|
|
66
66
|
normalizeStartingNumber,
|
|
67
67
|
resolvePhoneCountry
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-5DBGHVG2.js";
|
|
69
69
|
import {
|
|
70
70
|
Skeleton
|
|
71
71
|
} from "./chunk-TVOR2RGE.js";
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
REGEXP_ONLY_CHARS,
|
|
79
79
|
REGEXP_ONLY_DIGITS,
|
|
80
80
|
REGEXP_ONLY_DIGITS_AND_CHARS
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-ODF3HUKP.js";
|
|
82
82
|
import {
|
|
83
83
|
Progress
|
|
84
84
|
} from "./chunk-HESG7OWV.js";
|
|
@@ -93,13 +93,13 @@ import {
|
|
|
93
93
|
import {
|
|
94
94
|
NavLink
|
|
95
95
|
} from "./chunk-KPWAEDRU.js";
|
|
96
|
-
import {
|
|
97
|
-
NumberFormatter,
|
|
98
|
-
formatNumber
|
|
99
|
-
} from "./chunk-TIVOXLDX.js";
|
|
100
96
|
import {
|
|
101
97
|
Notification
|
|
102
98
|
} from "./chunk-3Z5OAUG3.js";
|
|
99
|
+
import {
|
|
100
|
+
NumberFormatter,
|
|
101
|
+
formatNumber
|
|
102
|
+
} from "./chunk-UYDFCGB5.js";
|
|
103
103
|
import {
|
|
104
104
|
DOTS,
|
|
105
105
|
Pagination,
|
|
@@ -129,11 +129,11 @@ import {
|
|
|
129
129
|
} from "./chunk-FR7TZXY3.js";
|
|
130
130
|
import {
|
|
131
131
|
Dialog
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-SHOHRD77.js";
|
|
133
133
|
import {
|
|
134
134
|
Dropzone,
|
|
135
135
|
formatFileSize
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-3WEM43GB.js";
|
|
137
137
|
import {
|
|
138
138
|
FileButton
|
|
139
139
|
} from "./chunk-ZVXCVBC4.js";
|
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
} from "./chunk-BZ222ZYD.js";
|
|
143
143
|
import {
|
|
144
144
|
ColorInput
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-M4WVOCOX.js";
|
|
146
146
|
import {
|
|
147
147
|
AlphaSlider,
|
|
148
148
|
ColorPicker,
|
|
@@ -159,13 +159,13 @@ import {
|
|
|
159
159
|
} from "./chunk-MWYGXAJQ.js";
|
|
160
160
|
import {
|
|
161
161
|
Select
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-ET7LVQGA.js";
|
|
163
163
|
import {
|
|
164
164
|
EmptyState
|
|
165
165
|
} from "./chunk-DHAMBKCR.js";
|
|
166
166
|
import {
|
|
167
167
|
TagsInput
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-QBWFQBVX.js";
|
|
169
169
|
import {
|
|
170
170
|
Field,
|
|
171
171
|
FieldContent,
|
|
@@ -188,13 +188,13 @@ import {
|
|
|
188
188
|
Label,
|
|
189
189
|
labelVariants,
|
|
190
190
|
toItem
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-S43JDQR4.js";
|
|
192
192
|
import {
|
|
193
193
|
Pill,
|
|
194
194
|
PillGroup,
|
|
195
195
|
PillsInput,
|
|
196
196
|
PillsInputField
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-ATEUNLBO.js";
|
|
198
198
|
import {
|
|
199
199
|
CheckIcon,
|
|
200
200
|
Combobox,
|
|
@@ -211,7 +211,7 @@ import {
|
|
|
211
211
|
ComboboxTarget,
|
|
212
212
|
useCombobox,
|
|
213
213
|
useComboboxContext
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-5NRRPIJU.js";
|
|
215
215
|
import {
|
|
216
216
|
Container
|
|
217
217
|
} from "./chunk-RJK6AQEW.js";
|
|
@@ -236,7 +236,7 @@ import {
|
|
|
236
236
|
Switch,
|
|
237
237
|
SwitchGroup,
|
|
238
238
|
ToggleLabel
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-CJBB6IC3.js";
|
|
240
240
|
import {
|
|
241
241
|
Input,
|
|
242
242
|
InputBase,
|
|
@@ -249,7 +249,7 @@ import {
|
|
|
249
249
|
inputVarsResolver,
|
|
250
250
|
splitInputProps,
|
|
251
251
|
useInputWrapperContext
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-LMLSYKLQ.js";
|
|
253
253
|
import {
|
|
254
254
|
Chip,
|
|
255
255
|
ChipGroup,
|
|
@@ -263,15 +263,15 @@ import {
|
|
|
263
263
|
Mark,
|
|
264
264
|
highlighter
|
|
265
265
|
} from "./chunk-ZMR3K4MX.js";
|
|
266
|
-
import {
|
|
267
|
-
Alert
|
|
268
|
-
} from "./chunk-4L4RMGVI.js";
|
|
269
266
|
import {
|
|
270
267
|
Anchor
|
|
271
268
|
} from "./chunk-DJR6BSCZ.js";
|
|
272
269
|
import {
|
|
273
270
|
Text
|
|
274
271
|
} from "./chunk-3E3X5RLN.js";
|
|
272
|
+
import {
|
|
273
|
+
Alert
|
|
274
|
+
} from "./chunk-4L4RMGVI.js";
|
|
275
275
|
import {
|
|
276
276
|
Avatar,
|
|
277
277
|
AvatarGroup,
|
|
@@ -292,24 +292,10 @@ import {
|
|
|
292
292
|
BreadcrumbPage,
|
|
293
293
|
BreadcrumbSeparator,
|
|
294
294
|
Breadcrumbs
|
|
295
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-H5UAFA55.js";
|
|
296
296
|
import {
|
|
297
297
|
Burger
|
|
298
298
|
} from "./chunk-GGRLDV5L.js";
|
|
299
|
-
import "./chunk-G7EIISMY.js";
|
|
300
|
-
import {
|
|
301
|
-
buildViewTransitionCss,
|
|
302
|
-
runViewTransition,
|
|
303
|
-
useViewTransition
|
|
304
|
-
} from "./chunk-B3KTN3DO.js";
|
|
305
|
-
import {
|
|
306
|
-
clearFetchCache,
|
|
307
|
-
createApiClient,
|
|
308
|
-
readListResponse,
|
|
309
|
-
useApi,
|
|
310
|
-
useEndpointLoaders,
|
|
311
|
-
useFetch
|
|
312
|
-
} from "./chunk-DCC7EE67.js";
|
|
313
299
|
import {
|
|
314
300
|
Command,
|
|
315
301
|
CommandDialog,
|
|
@@ -320,7 +306,7 @@ import {
|
|
|
320
306
|
CommandList,
|
|
321
307
|
CommandSeparator,
|
|
322
308
|
CommandShortcut
|
|
323
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-WXMOPGIU.js";
|
|
324
310
|
import {
|
|
325
311
|
AlertDialog,
|
|
326
312
|
AlertDialogAction,
|
|
@@ -349,15 +335,15 @@ import {
|
|
|
349
335
|
SheetHeader,
|
|
350
336
|
SheetTitle,
|
|
351
337
|
SheetTrigger
|
|
352
|
-
} from "./chunk-
|
|
338
|
+
} from "./chunk-Z4QS4UEM.js";
|
|
353
339
|
import {
|
|
354
340
|
Drawer,
|
|
355
341
|
DrawerRoot
|
|
356
|
-
} from "./chunk-
|
|
342
|
+
} from "./chunk-BESKNEWG.js";
|
|
357
343
|
import {
|
|
358
344
|
Modal,
|
|
359
345
|
ModalRoot
|
|
360
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-55HC4KD7.js";
|
|
361
347
|
import {
|
|
362
348
|
ModalBaseBody,
|
|
363
349
|
ModalBaseCloseButton,
|
|
@@ -368,7 +354,7 @@ import {
|
|
|
368
354
|
ModalBaseTitle,
|
|
369
355
|
sizeValue,
|
|
370
356
|
useModalContext
|
|
371
|
-
} from "./chunk-
|
|
357
|
+
} from "./chunk-ZGXRYG45.js";
|
|
372
358
|
import {
|
|
373
359
|
LoadingOverlay,
|
|
374
360
|
Overlay
|
|
@@ -378,7 +364,7 @@ import {
|
|
|
378
364
|
ButtonGroup,
|
|
379
365
|
ButtonGroupSection,
|
|
380
366
|
buttonVariants
|
|
381
|
-
} from "./chunk-
|
|
367
|
+
} from "./chunk-E2ETAAGS.js";
|
|
382
368
|
import {
|
|
383
369
|
CloseButton,
|
|
384
370
|
CloseIcon
|
|
@@ -418,10 +404,10 @@ import {
|
|
|
418
404
|
TooltipContent,
|
|
419
405
|
TooltipProvider,
|
|
420
406
|
TooltipTrigger
|
|
421
|
-
} from "./chunk-
|
|
407
|
+
} from "./chunk-LDWBA55Q.js";
|
|
422
408
|
import {
|
|
423
409
|
TooltipFloating
|
|
424
|
-
} from "./chunk-
|
|
410
|
+
} from "./chunk-7ERRBV4L.js";
|
|
425
411
|
import {
|
|
426
412
|
Menu,
|
|
427
413
|
MenuDivider,
|
|
@@ -429,18 +415,18 @@ import {
|
|
|
429
415
|
MenuItem,
|
|
430
416
|
MenuLabel,
|
|
431
417
|
MenuTarget
|
|
432
|
-
} from "./chunk-
|
|
418
|
+
} from "./chunk-Q3DHR5EU.js";
|
|
433
419
|
import {
|
|
434
420
|
PopoverDropdown,
|
|
435
421
|
PopoverTarget,
|
|
436
422
|
usePopoverContext
|
|
437
|
-
} from "./chunk-
|
|
438
|
-
import "./chunk-
|
|
423
|
+
} from "./chunk-NEJBDVBN.js";
|
|
424
|
+
import "./chunk-C3KE4QQD.js";
|
|
439
425
|
import "./chunk-AZ4WBNXD.js";
|
|
440
426
|
import {
|
|
441
427
|
OptionalPortal,
|
|
442
428
|
Portal
|
|
443
|
-
} from "./chunk-
|
|
429
|
+
} from "./chunk-I2WCQBUT.js";
|
|
444
430
|
import {
|
|
445
431
|
Transition,
|
|
446
432
|
transitionStyles,
|
|
@@ -466,7 +452,7 @@ import {
|
|
|
466
452
|
TableHead,
|
|
467
453
|
TableHeader,
|
|
468
454
|
TableRow
|
|
469
|
-
} from "./chunk-
|
|
455
|
+
} from "./chunk-HD2SIRFG.js";
|
|
470
456
|
import {
|
|
471
457
|
Table,
|
|
472
458
|
TableCaption,
|
|
@@ -481,7 +467,21 @@ import {
|
|
|
481
467
|
import {
|
|
482
468
|
Divider
|
|
483
469
|
} from "./chunk-TIZEUZHC.js";
|
|
484
|
-
import "./chunk-
|
|
470
|
+
import "./chunk-R4M6UTX2.js";
|
|
471
|
+
import "./chunk-G7EIISMY.js";
|
|
472
|
+
import {
|
|
473
|
+
buildViewTransitionCss,
|
|
474
|
+
runViewTransition,
|
|
475
|
+
useViewTransition
|
|
476
|
+
} from "./chunk-B3KTN3DO.js";
|
|
477
|
+
import {
|
|
478
|
+
clearFetchCache,
|
|
479
|
+
createApiClient,
|
|
480
|
+
readListResponse,
|
|
481
|
+
useApi,
|
|
482
|
+
useEndpointLoaders,
|
|
483
|
+
useFetch
|
|
484
|
+
} from "./chunk-DCC7EE67.js";
|
|
485
485
|
import {
|
|
486
486
|
Slot
|
|
487
487
|
} from "./chunk-MYHAWRIV.js";
|