@wix/site-ui 1.346.0 → 1.348.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{6706.js → 1093.js} +3 -3
- package/dist/{8724.js → 1219.js} +2 -2
- package/dist/{7373.js → 1288.js} +8 -2
- package/dist/{5299.js → 1381.js} +98 -127
- package/dist/{3056.js → 1607.js} +32 -34
- package/dist/1629.js +2 -0
- package/dist/1669.js +75 -0
- package/dist/1718.js +26 -0
- package/dist/{1477.js → 201.js} +17 -26
- package/dist/2221.js +9 -0
- package/dist/{2445.js → 226.js} +12 -48
- package/dist/2387.js +7 -0
- package/dist/2580.js +6 -0
- package/dist/{1500.js → 2859.js} +10 -34
- package/dist/3014.js +178 -0
- package/dist/{6247.js → 3054.js} +3 -3
- package/dist/{7642.js → 3093.js} +1 -1
- package/dist/3189.js +5 -0
- package/dist/{7564.js → 331.js} +2 -2
- package/dist/3357.js +7 -0
- package/dist/{487.js → 3398.js} +38 -39
- package/dist/3502.js +224 -0
- package/dist/3695.js +50 -0
- package/dist/3829.js +1 -1
- package/dist/{6588.js → 3859.js} +115 -92
- package/dist/{3670.js → 3910.js} +28 -21
- package/dist/392.js +7 -0
- package/dist/{4549.js → 4155.js} +11 -3
- package/dist/4226.js +7 -0
- package/dist/{6329.js → 4229.js} +1 -1
- package/dist/4293.js +3 -0
- package/dist/4346.js +853 -2
- package/dist/{285.js → 4472.js} +3 -3
- package/dist/4605.js +207 -0
- package/dist/{7366.js → 488.js} +60 -7
- package/dist/{8750.js → 497.js} +190 -375
- package/dist/4989.js +35 -0
- package/dist/{6270.js → 510.js} +157 -196
- package/dist/5258.js +26 -0
- package/dist/{5036.js → 5275.js} +0 -3
- package/dist/{8171.js → 5298.js} +90 -102
- package/dist/5473.js +11 -0
- package/dist/{4745.js → 5490.js} +3 -1
- package/dist/{6089.js → 5561.js} +869 -786
- package/dist/{8996.js → 5595.js} +4 -3
- package/dist/5890.js +25 -0
- package/dist/{6046.js → 5969.js} +1 -1
- package/dist/5984.js +38 -0
- package/dist/{8527.js → 6006.js} +3 -3
- package/dist/6040.js +97 -0
- package/dist/{8758.js → 6137.js} +10 -8
- package/dist/{4281.js → 6140.js} +18 -10
- package/dist/{8960.js → 6191.js} +2 -2
- package/dist/6240.js +121 -0
- package/dist/{4490.js → 6373.js} +7 -5
- package/dist/{904.js → 6487.js} +19 -17
- package/dist/{9635.js → 6498.js} +1 -1
- package/dist/6499.js +4 -7
- package/dist/6508.js +7 -0
- package/dist/{8225.js → 6540.js} +1 -0
- package/dist/6551.js +46 -0
- package/dist/{9369.js → 6620.js} +35 -34
- package/dist/{4143.js → 6838.js} +19 -10
- package/dist/6902.js +48 -0
- package/dist/6904.js +51 -0
- package/dist/70.js +24 -0
- package/dist/7024.js +39 -0
- package/dist/{6882.js → 721.js} +737 -362
- package/dist/{951.js → 7270.js} +4 -4
- package/dist/{3485.js → 7323.js} +143 -111
- package/dist/{7541.js → 7488.js} +2 -2
- package/dist/{4863.js → 7542.js} +7 -6
- package/dist/7551.js +28 -0
- package/dist/{7021.js → 7640.js} +1 -1
- package/dist/{353.js → 7692.js} +3 -7
- package/dist/{4707.js → 7930.js} +2 -2
- package/dist/{8052.js → 8.js} +80 -64
- package/dist/{6914.js → 8129.js} +3 -15
- package/dist/{3319.js → 8358.js} +62 -63
- package/dist/{5864.js → 8407.js} +13 -13
- package/dist/8488.js +15 -0
- package/dist/{4768.js → 8495.js} +1 -1
- package/dist/8734.js +171 -0
- package/dist/{1763.js → 9018.js} +205 -331
- package/dist/9053.js +29 -0
- package/dist/9067.js +41 -0
- package/dist/{2861.js → 9120.js} +2 -2
- package/dist/{42.js → 9197.js} +2 -2
- package/dist/{9189.js → 9248.js} +36 -17
- package/dist/{2801.js → 9252.js} +4 -9
- package/dist/9295.js +7 -0
- package/dist/9303.js +8 -0
- package/dist/{167.js → 9374.js} +1 -1
- package/dist/{9352.js → 9540.js} +17 -47
- package/dist/9576.js +51 -0
- package/dist/{8272.js → 9591.js} +36 -46
- package/dist/{6107.js → 9770.js} +2 -2
- package/dist/{5085.js → 9880.js} +6 -3
- package/dist/Accordion/index.d.ts +207 -41
- package/dist/Accordion/index.js +75 -177
- package/dist/AlertDialog/index.d.ts +440 -140
- package/dist/AlertDialog/index.js +3 -13
- package/dist/Autocomplete/index.d.ts +722 -150
- package/dist/Autocomplete/index.js +16 -29
- package/dist/Avatar/index.d.ts +38 -3
- package/dist/Avatar/index.js +82 -28
- package/dist/Breadcrumbs/index.d.ts +63 -91
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/Button/index.d.ts +11 -0
- package/dist/Button/index.js +2 -2
- package/dist/Checkbox/index.d.ts +206 -36
- package/dist/Checkbox/index.js +293 -8
- package/dist/CheckboxField/index.css +1 -1
- package/dist/CheckboxField/index.d.ts +40 -36
- package/dist/CheckboxGroup/index.d.ts +50 -36
- package/dist/CheckboxGroup/index.js +87 -58
- package/dist/CheckboxGroupField/index.css +1 -1
- package/dist/Collapsible/index.d.ts +128 -36
- package/dist/Collapsible/index.js +21 -25
- package/dist/Combobox/index.d.ts +801 -158
- package/dist/Combobox/index.js +70 -114
- package/dist/ContextMenu/index.d.ts +1162 -195
- package/dist/ContextMenu/index.js +46 -36
- package/dist/Dialog/index.d.ts +425 -133
- package/dist/Dialog/index.js +8 -4
- package/dist/Drawer/index.d.ts +589 -144
- package/dist/Drawer/index.js +482 -562
- package/dist/Field/index.css +1 -1
- package/dist/Field/index.d.ts +341 -42
- package/dist/Field/index.js +123 -273
- package/dist/Fieldset/index.d.ts +11 -0
- package/dist/Fieldset/index.js +10 -17
- package/dist/Form/index.d.ts +43 -39
- package/dist/Form/index.js +58 -50
- package/dist/Input/index.css +1 -1
- package/dist/Input/index.d.ts +94 -42
- package/dist/Input/index.js +1 -1
- package/dist/Menu/index.d.ts +1140 -175
- package/dist/Menu/index.js +51 -67
- package/dist/Menubar/index.d.ts +651 -173
- package/dist/Menubar/index.js +12 -16
- package/dist/Meter/index.js +21 -18
- package/dist/NavigationMenu/index.d.ts +370 -86
- package/dist/NavigationMenu/index.js +144 -178
- package/dist/NumberField/index.css +1 -1
- package/dist/NumberField/index.d.ts +507 -47
- package/dist/NumberField/index.js +434 -718
- package/dist/Popover/index.d.ts +561 -142
- package/dist/Popover/index.js +181 -252
- package/dist/PreviewCard/index.d.ts +507 -143
- package/dist/PreviewCard/index.js +97 -151
- package/dist/Progress/index.d.ts +117 -3
- package/dist/Progress/index.js +37 -36
- package/dist/Radio/index.d.ts +177 -7
- package/dist/Radio/index.js +54 -70
- package/dist/RadioField/index.css +1 -1
- package/dist/RadioField/index.d.ts +23 -7
- package/dist/RadioGroup/index.d.ts +51 -37
- package/dist/RadioGroup/index.js +60 -51
- package/dist/RadioGroupField/index.css +1 -1
- package/dist/RadioGroupField/index.d.ts +40 -37
- package/dist/ScrollArea/index.d.ts +295 -1
- package/dist/ScrollArea/index.js +256 -324
- package/dist/Select/index.d.ts +516 -123
- package/dist/Select/index.js +513 -635
- package/dist/SelectField/index.css +1 -1
- package/dist/SelectField/index.d.ts +109 -134
- package/dist/SelectField/index.js +5 -1
- package/dist/Separator/index.d.ts +12 -0
- package/dist/Separator/index.js +1 -1
- package/dist/Slider/index.d.ts +383 -64
- package/dist/Slider/index.js +298 -374
- package/dist/Switch/index.d.ts +184 -37
- package/dist/Switch/index.js +44 -58
- package/dist/Tabs/index.d.ts +220 -35
- package/dist/Tabs/index.js +199 -193
- package/dist/Toast/index.d.ts +280 -64
- package/dist/Toast/index.js +299 -374
- package/dist/Toggle/index.d.ts +55 -35
- package/dist/Toggle/index.js +19 -13
- package/dist/ToggleGroup/index.d.ts +62 -35
- package/dist/ToggleGroup/index.js +13 -31
- package/dist/Toolbar/index.d.ts +117 -2
- package/dist/Toolbar/index.js +31 -43
- package/dist/Tooltip/index.d.ts +507 -150
- package/dist/Tooltip/index.js +163 -213
- package/dist/index.d.ts +12912 -5382
- package/package.json +3 -3
- package/dist/2205.js +0 -26
- package/dist/2274.js +0 -34
- package/dist/2287.js +0 -17
- package/dist/3020.js +0 -7
- package/dist/3021.js +0 -72
- package/dist/3140.js +0 -4
- package/dist/3248.js +0 -307
- package/dist/4026.js +0 -12
- package/dist/4922.js +0 -15
- package/dist/5659.js +0 -4
- package/dist/5992.js +0 -447
- package/dist/6330.js +0 -30
- package/dist/6535.js +0 -72
- package/dist/6917.js +0 -55
- package/dist/7725.js +0 -10
- package/dist/7871.js +0 -38
- package/dist/8106.js +0 -239
- package/dist/8685.js +0 -102
- package/dist/8935.js +0 -8
- package/dist/8971.js +0 -40
- package/dist/8979.js +0 -10
- package/dist/9048.js +0 -52
- package/dist/9087.js +0 -256
- package/dist/9255.js +0 -136
- /package/dist/{1457.js → 1068.js} +0 -0
- /package/dist/{6003.js → 1234.js} +0 -0
- /package/dist/{4723.js → 1282.js} +0 -0
- /package/dist/{6825.js → 1876.js} +0 -0
- /package/dist/{5778.js → 1885.js} +0 -0
- /package/dist/{2445.js.LICENSE.txt → 226.js.LICENSE.txt} +0 -0
- /package/dist/{1279.js → 3278.js} +0 -0
- /package/dist/{3296.js → 5568.js} +0 -0
- /package/dist/{8685.css → 6240.css} +0 -0
- /package/dist/{9829.js → 6488.js} +0 -0
- /package/dist/{9863.js → 6534.js} +0 -0
- /package/dist/{4495.js → 7718.js} +0 -0
- /package/dist/{3395.js → 8866.js} +0 -0
- /package/dist/{2418.js → 9837.js} +0 -0
package/dist/Toast/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
2
1
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
2
|
import { Padding } from '@floating-ui/react-dom';
|
|
4
3
|
import * as React_2 from 'react';
|
|
5
|
-
import { Rect } from '@floating-ui/utils';
|
|
6
|
-
import { RefAttributes } from 'react';
|
|
4
|
+
import type { Rect } from '@floating-ui/utils';
|
|
7
5
|
import { ToastRootProps as ToastRootProps_2 } from '@base-ui/react';
|
|
8
6
|
import { ToastTitleProps as ToastTitleProps_2 } from '@base-ui/react';
|
|
9
7
|
import { ToastViewportProps as ToastViewportProps_2 } from '@base-ui/react';
|
|
@@ -11,6 +9,47 @@ import { VirtualElement } from '@floating-ui/react-dom';
|
|
|
11
9
|
|
|
12
10
|
declare type Align = 'start' | 'center' | 'end';
|
|
13
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Indicates how the toast is aligned relative to specified side.
|
|
14
|
+
* @type {'start' | 'center' | 'end'}
|
|
15
|
+
*/
|
|
16
|
+
declare const align = "data-align";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Indicates how the toast is aligned relative to specified side.
|
|
20
|
+
* @type {'start' | 'center' | 'end'}
|
|
21
|
+
*/
|
|
22
|
+
declare const align_2 = "data-align";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The anchor's height.
|
|
26
|
+
* @type {number}
|
|
27
|
+
*/
|
|
28
|
+
declare const anchorHeight = "--anchor-height";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Present when the anchor is hidden.
|
|
32
|
+
*/
|
|
33
|
+
declare const anchorHidden = "data-anchor-hidden";
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The anchor's width.
|
|
37
|
+
* @type {number}
|
|
38
|
+
*/
|
|
39
|
+
declare const anchorWidth = "--anchor-width";
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The available height between the anchor and the edge of the viewport.
|
|
43
|
+
* @type {number}
|
|
44
|
+
*/
|
|
45
|
+
declare const availableHeight = "--available-height";
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The available width between the anchor and the edge of the viewport.
|
|
49
|
+
* @type {number}
|
|
50
|
+
*/
|
|
51
|
+
declare const availableWidth = "--available-width";
|
|
52
|
+
|
|
14
53
|
/**
|
|
15
54
|
* Props shared by all Base UI components.
|
|
16
55
|
* Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
|
|
@@ -40,6 +79,12 @@ declare type BaseUIEvent<E extends React_2.SyntheticEvent<Element, Event>> = E &
|
|
|
40
79
|
readonly baseUIHandlerPrevented?: boolean | undefined;
|
|
41
80
|
};
|
|
42
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Present when the toast is behind the frontmost toast in the stack.
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
*/
|
|
86
|
+
declare const behind = "data-behind";
|
|
87
|
+
|
|
43
88
|
declare type Boundary = 'clipping-ancestors' | Element | Element[] | Rect;
|
|
44
89
|
|
|
45
90
|
declare const CloseButton: React_2.ForwardRefExoticComponent<CloseProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -62,50 +107,56 @@ declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => R
|
|
|
62
107
|
export declare function createToastManager<Data extends object = any>(): ToastManager<Data>;
|
|
63
108
|
|
|
64
109
|
/**
|
|
65
|
-
*
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
* potential parent containers that cause clipping (such as `overflow: hidden`),
|
|
69
|
-
* while retaining its location in the React tree.
|
|
70
|
-
* @see https://floating-ui.com/docs/FloatingPortal
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
declare const FloatingPortal: React_2.ForwardRefExoticComponent<Omit<FloatingPortal.Props<any> & {
|
|
74
|
-
renderGuards?: boolean | undefined;
|
|
75
|
-
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
76
|
-
|
|
77
|
-
declare namespace FloatingPortal {
|
|
78
|
-
type State = FloatingPortalState;
|
|
79
|
-
interface Props<TState> extends BaseUIComponentProps<'div', TState> {
|
|
80
|
-
/**
|
|
81
|
-
* A parent element to render the portal element into.
|
|
82
|
-
*/
|
|
83
|
-
container?: UseFloatingPortalNodeProps['container'] | undefined;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
110
|
+
* Present when the toast is animating out.
|
|
111
|
+
*/
|
|
112
|
+
declare const endingStyle = "data-ending-style";
|
|
86
113
|
|
|
87
114
|
/**
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* @internal
|
|
115
|
+
* Indicates toasts are expanded in the viewport.
|
|
116
|
+
* @type {boolean}
|
|
91
117
|
*/
|
|
92
|
-
declare const
|
|
118
|
+
declare const expanded = "data-expanded";
|
|
93
119
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
120
|
+
/**
|
|
121
|
+
* Present when the toast is expanded in the viewport.
|
|
122
|
+
* @type {boolean}
|
|
123
|
+
*/
|
|
124
|
+
declare const expanded_2 = "data-expanded";
|
|
98
125
|
|
|
99
|
-
|
|
126
|
+
/**
|
|
127
|
+
* Present when the toast viewport is expanded.
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
*/
|
|
130
|
+
declare const expanded_3 = "data-expanded";
|
|
100
131
|
|
|
101
|
-
|
|
132
|
+
/**
|
|
133
|
+
* Indicates the height of the frontmost toast.
|
|
134
|
+
* @type {number}
|
|
135
|
+
*/
|
|
136
|
+
declare const frontmostHeight = "--toast-frontmost-height";
|
|
102
137
|
|
|
103
|
-
|
|
138
|
+
/**
|
|
139
|
+
* Indicates the measured natural height of the toast in pixels.
|
|
140
|
+
* @type {number}
|
|
141
|
+
*/
|
|
142
|
+
declare const height = "--toast-height";
|
|
104
143
|
|
|
105
144
|
declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
|
|
106
145
|
ref?: React_2.Ref<T> | undefined;
|
|
107
146
|
};
|
|
108
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Indicates the index of the toast in the list.
|
|
150
|
+
* @type {number}
|
|
151
|
+
*/
|
|
152
|
+
declare const index = "--toast-index";
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Present when the toast was limited because the toast limit was exceeded.
|
|
156
|
+
* @type {boolean}
|
|
157
|
+
*/
|
|
158
|
+
declare const limited = "data-limited";
|
|
159
|
+
|
|
109
160
|
declare interface NativeButtonProps {
|
|
110
161
|
/**
|
|
111
162
|
* Whether the component renders a native `<button>` element when replacing it
|
|
@@ -129,6 +180,12 @@ declare type OffsetFunction = (data: {
|
|
|
129
180
|
};
|
|
130
181
|
}) => number;
|
|
131
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Indicates the vertical pixels offset of the toast in the list when expanded.
|
|
185
|
+
* @type {number}
|
|
186
|
+
*/
|
|
187
|
+
declare const offsetY = "--toast-offset-y";
|
|
188
|
+
|
|
132
189
|
declare const Portal: ({ container, ...props }: PortalProps) => JSX_2.Element;
|
|
133
190
|
|
|
134
191
|
declare type PortalProps = React_2.ComponentPropsWithoutRef<typeof Toast_2.Portal>;
|
|
@@ -141,6 +198,18 @@ declare const Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<ToastRootPr
|
|
|
141
198
|
|
|
142
199
|
declare type Side = 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start';
|
|
143
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Indicates which side the toast is positioned relative to the trigger.
|
|
203
|
+
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
|
|
204
|
+
*/
|
|
205
|
+
declare const side = "data-side";
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Indicates which side the toast is positioned relative to the anchor.
|
|
209
|
+
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
|
|
210
|
+
*/
|
|
211
|
+
declare const side_2 = "data-side";
|
|
212
|
+
|
|
144
213
|
declare interface SideFlipMode {
|
|
145
214
|
/**
|
|
146
215
|
* How to avoid collisions on the side axis.
|
|
@@ -188,6 +257,37 @@ declare interface SideShiftMode {
|
|
|
188
257
|
fallbackAxisSide?: 'start' | 'end' | 'none' | undefined;
|
|
189
258
|
}
|
|
190
259
|
|
|
260
|
+
/**
|
|
261
|
+
* Present when the toast begins animating in.
|
|
262
|
+
*/
|
|
263
|
+
declare const startingStyle = "data-starting-style";
|
|
264
|
+
|
|
265
|
+
declare type StateAttributesMapping<State> = { [Property in keyof State]?: (state: State[Property]) => Record<string, string> | null };
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The direction the toast was swiped.
|
|
269
|
+
* @type {'up' | 'down' | 'left' | 'right'}
|
|
270
|
+
*/
|
|
271
|
+
declare const swipeDirection = "data-swipe-direction";
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Indicates the horizontal swipe movement of the toast.
|
|
275
|
+
* @type {number}
|
|
276
|
+
*/
|
|
277
|
+
declare const swipeMovementX = "--toast-swipe-movement-x";
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Indicates the vertical swipe movement of the toast.
|
|
281
|
+
* @type {number}
|
|
282
|
+
*/
|
|
283
|
+
declare const swipeMovementY = "--toast-swipe-movement-y";
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Present when the toast is being swiped.
|
|
287
|
+
* @type {boolean}
|
|
288
|
+
*/
|
|
289
|
+
declare const swiping = "data-swiping";
|
|
290
|
+
|
|
191
291
|
declare const Title: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<ToastTitleProps_2, "ref"> & React_2.RefAttributes<HTMLHeadingElement>, "ref">, "className"> & {
|
|
192
292
|
className?: string;
|
|
193
293
|
} & React_2.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -225,6 +325,12 @@ export declare namespace ToastAction {
|
|
|
225
325
|
export type Props = ToastActionProps;
|
|
226
326
|
}
|
|
227
327
|
|
|
328
|
+
export declare namespace ToastActionDataAttributes {
|
|
329
|
+
export {
|
|
330
|
+
type_5 as type
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
228
334
|
export declare interface ToastActionProps extends NativeButtonProps, BaseUIComponentProps<'button', ToastActionState> {}
|
|
229
335
|
|
|
230
336
|
export declare interface ToastActionState {
|
|
@@ -247,6 +353,14 @@ export declare namespace ToastArrow {
|
|
|
247
353
|
export type Props = ToastArrowProps;
|
|
248
354
|
}
|
|
249
355
|
|
|
356
|
+
export declare namespace ToastArrowDataAttributes {
|
|
357
|
+
export {
|
|
358
|
+
side_2 as side,
|
|
359
|
+
align_2 as align,
|
|
360
|
+
uncentered
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
250
364
|
export declare interface ToastArrowProps extends BaseUIComponentProps<'div', ToastArrowState> {}
|
|
251
365
|
|
|
252
366
|
export declare interface ToastArrowState {
|
|
@@ -277,6 +391,12 @@ export declare namespace ToastClose {
|
|
|
277
391
|
export type Props = ToastCloseProps;
|
|
278
392
|
}
|
|
279
393
|
|
|
394
|
+
export declare namespace ToastCloseDataAttributes {
|
|
395
|
+
export {
|
|
396
|
+
type_4 as type
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
280
400
|
export declare interface ToastCloseProps extends NativeButtonProps, BaseUIComponentProps<'button', ToastCloseState> {}
|
|
281
401
|
|
|
282
402
|
export declare interface ToastCloseState {
|
|
@@ -299,6 +419,13 @@ export declare namespace ToastContent {
|
|
|
299
419
|
export type Props = ToastContentProps;
|
|
300
420
|
}
|
|
301
421
|
|
|
422
|
+
export declare namespace ToastContentDataAttributes {
|
|
423
|
+
export {
|
|
424
|
+
expanded_3 as expanded,
|
|
425
|
+
behind
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
302
429
|
export declare interface ToastContentProps extends BaseUIComponentProps<'div', ToastContentState> {}
|
|
303
430
|
|
|
304
431
|
export declare interface ToastContentState {
|
|
@@ -326,6 +453,12 @@ export declare namespace ToastDescription {
|
|
|
326
453
|
export type Props = ToastDescriptionProps;
|
|
327
454
|
}
|
|
328
455
|
|
|
456
|
+
export declare namespace ToastDescriptionDataAttributes {
|
|
457
|
+
export {
|
|
458
|
+
type_2 as type
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
329
462
|
export declare interface ToastDescriptionProps extends BaseUIComponentProps<'p', ToastDescriptionState> {}
|
|
330
463
|
|
|
331
464
|
export declare interface ToastDescriptionState {
|
|
@@ -339,7 +472,7 @@ export declare interface ToastManager<Data extends object = any> {
|
|
|
339
472
|
' subscribe': (listener: (data: ToastManagerEvent) => void) => () => void;
|
|
340
473
|
add: <T extends Data = Data>(options: ToastManagerAddOptions<T>) => string;
|
|
341
474
|
close: (id?: string) => void;
|
|
342
|
-
update: <T extends Data = Data>(id: string, updates: ToastManagerUpdateOptions<T>) => void;
|
|
475
|
+
update: <T extends Data = Data>(id: string, updates: ToastManagerUpdateOptions<T> | ((prevToast: ToastObject<T>) => ToastManagerUpdateOptions<T>)) => void;
|
|
343
476
|
promise: <Value, T extends Data = Data>(promiseValue: Promise<Value>, options: ToastManagerPromiseOptions<Value, T>) => Promise<Value>;
|
|
344
477
|
}
|
|
345
478
|
|
|
@@ -461,14 +594,19 @@ export declare interface ToastObject<Data extends object> {
|
|
|
461
594
|
*
|
|
462
595
|
* Documentation: [Base UI Toast](https://base-ui.com/react/components/toast)
|
|
463
596
|
*/
|
|
464
|
-
export declare const ToastPortal: ForwardRefExoticComponent<Omit<
|
|
597
|
+
export declare const ToastPortal: React_2.ForwardRefExoticComponent<Omit<ToastPortalProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
465
598
|
|
|
466
599
|
export declare namespace ToastPortal {
|
|
467
600
|
export type State = ToastPortalState;
|
|
468
601
|
export type Props = ToastPortalProps;
|
|
469
602
|
}
|
|
470
603
|
|
|
471
|
-
export declare interface ToastPortalProps extends
|
|
604
|
+
export declare interface ToastPortalProps extends BaseUIComponentProps<'div', ToastPortalState> {
|
|
605
|
+
/**
|
|
606
|
+
* A parent element to render the portal element into.
|
|
607
|
+
*/
|
|
608
|
+
container?: HTMLElement | ShadowRoot | React_2.RefObject<HTMLElement | ShadowRoot | null> | null | undefined;
|
|
609
|
+
}
|
|
472
610
|
|
|
473
611
|
export declare interface ToastPortalState {}
|
|
474
612
|
|
|
@@ -485,6 +623,24 @@ export declare namespace ToastPositioner {
|
|
|
485
623
|
export type Props = ToastPositionerProps;
|
|
486
624
|
}
|
|
487
625
|
|
|
626
|
+
export declare namespace ToastPositionerCssVariables {
|
|
627
|
+
export {
|
|
628
|
+
availableWidth,
|
|
629
|
+
availableHeight,
|
|
630
|
+
anchorWidth,
|
|
631
|
+
anchorHeight,
|
|
632
|
+
transformOrigin
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
export declare namespace ToastPositionerDataAttributes {
|
|
637
|
+
export {
|
|
638
|
+
anchorHidden,
|
|
639
|
+
side,
|
|
640
|
+
align
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
488
644
|
export declare interface ToastPositionerProps extends BaseUIComponentProps<'div', ToastPositionerState>, Omit<UseAnchorPositioningSharedParameters, 'side' | 'anchor'> {
|
|
489
645
|
/**
|
|
490
646
|
* An element to position the toast against.
|
|
@@ -539,7 +695,8 @@ export declare interface ToastProviderProps {
|
|
|
539
695
|
timeout?: number | undefined;
|
|
540
696
|
/**
|
|
541
697
|
* The maximum number of toasts that can be displayed at once.
|
|
542
|
-
* When the limit is
|
|
698
|
+
* When the limit is exceeded, the oldest toasts are marked as `limited` (via the `data-limited`
|
|
699
|
+
* attribute) rather than removed, so they can be hidden or animated out.
|
|
543
700
|
* @default 3
|
|
544
701
|
*/
|
|
545
702
|
limit?: number | undefined;
|
|
@@ -565,6 +722,28 @@ export declare namespace ToastRoot {
|
|
|
565
722
|
export type Props = ToastRootProps;
|
|
566
723
|
}
|
|
567
724
|
|
|
725
|
+
export declare namespace ToastRootCssVariables {
|
|
726
|
+
export {
|
|
727
|
+
index,
|
|
728
|
+
offsetY,
|
|
729
|
+
height,
|
|
730
|
+
swipeMovementX,
|
|
731
|
+
swipeMovementY
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
export declare namespace ToastRootDataAttributes {
|
|
736
|
+
export {
|
|
737
|
+
expanded_2 as expanded,
|
|
738
|
+
limited,
|
|
739
|
+
type,
|
|
740
|
+
swiping,
|
|
741
|
+
swipeDirection,
|
|
742
|
+
startingStyle,
|
|
743
|
+
endingStyle
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
|
|
568
747
|
export declare interface ToastRootProps extends BaseUIComponentProps<'div', ToastRootState> {
|
|
569
748
|
/**
|
|
570
749
|
* The toast to render.
|
|
@@ -604,6 +783,8 @@ export declare interface ToastRootState {
|
|
|
604
783
|
swipeDirection: 'up' | 'down' | 'left' | 'right' | undefined;
|
|
605
784
|
}
|
|
606
785
|
|
|
786
|
+
export declare const toastRootStateAttributesMapping: StateAttributesMapping<ToastRootState>;
|
|
787
|
+
|
|
607
788
|
export declare type ToastRootToastObject<Data extends object = any> = ToastObject<Data>;
|
|
608
789
|
|
|
609
790
|
/**
|
|
@@ -619,6 +800,12 @@ export declare namespace ToastTitle {
|
|
|
619
800
|
export type Props = ToastTitleProps;
|
|
620
801
|
}
|
|
621
802
|
|
|
803
|
+
export declare namespace ToastTitleDataAttributes {
|
|
804
|
+
export {
|
|
805
|
+
type_3 as type
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
|
|
622
809
|
export declare interface ToastTitleProps extends BaseUIComponentProps<'h2', ToastTitleState> {}
|
|
623
810
|
|
|
624
811
|
export declare interface ToastTitleState {
|
|
@@ -643,6 +830,18 @@ export declare namespace ToastViewport {
|
|
|
643
830
|
export type Props = ToastViewportProps;
|
|
644
831
|
}
|
|
645
832
|
|
|
833
|
+
export declare namespace ToastViewportCssVariables {
|
|
834
|
+
export {
|
|
835
|
+
frontmostHeight
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
export declare namespace ToastViewportDataAttributes {
|
|
840
|
+
export {
|
|
841
|
+
expanded
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
646
845
|
export declare interface ToastViewportProps extends BaseUIComponentProps<'div', ToastViewportState> {}
|
|
647
846
|
|
|
648
847
|
export declare interface ToastViewportState {
|
|
@@ -652,8 +851,49 @@ export declare interface ToastViewportState {
|
|
|
652
851
|
expanded: boolean;
|
|
653
852
|
}
|
|
654
853
|
|
|
854
|
+
/**
|
|
855
|
+
* The coordinates that this element is anchored to. Used for animations and transitions.
|
|
856
|
+
* @type {string}
|
|
857
|
+
*/
|
|
858
|
+
declare const transformOrigin = "--transform-origin";
|
|
859
|
+
|
|
655
860
|
declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
|
|
656
861
|
|
|
862
|
+
/**
|
|
863
|
+
* The type of the toast.
|
|
864
|
+
* @type {string}
|
|
865
|
+
*/
|
|
866
|
+
declare const type = "data-type";
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* The type of the toast.
|
|
870
|
+
* @type {string}
|
|
871
|
+
*/
|
|
872
|
+
declare const type_2 = "data-type";
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* The type of the toast.
|
|
876
|
+
* @type {string}
|
|
877
|
+
*/
|
|
878
|
+
declare const type_3 = "data-type";
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* The type of the toast.
|
|
882
|
+
* @type {string}
|
|
883
|
+
*/
|
|
884
|
+
declare const type_4 = "data-type";
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* The type of the toast.
|
|
888
|
+
* @type {string}
|
|
889
|
+
*/
|
|
890
|
+
declare const type_5 = "data-type";
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Present when the toast arrow is uncentered.
|
|
894
|
+
*/
|
|
895
|
+
declare const uncentered = "data-uncentered";
|
|
896
|
+
|
|
657
897
|
declare interface UseAnchorPositioningSharedParameters {
|
|
658
898
|
/**
|
|
659
899
|
* An element to position the popup against.
|
|
@@ -796,30 +1036,6 @@ declare interface UseAnchorPositioningSharedParameters {
|
|
|
796
1036
|
collisionAvoidance?: CollisionAvoidance | undefined;
|
|
797
1037
|
}
|
|
798
1038
|
|
|
799
|
-
declare interface UseFloatingPortalNodeProps {
|
|
800
|
-
ref?: React_2.Ref<HTMLDivElement> | undefined;
|
|
801
|
-
container?: HTMLElement | ShadowRoot | null | React_2.RefObject<HTMLElement | ShadowRoot | null> | undefined;
|
|
802
|
-
componentProps?: UseRenderElementComponentProps<any> | undefined;
|
|
803
|
-
elementProps?: React_2.HTMLAttributes<HTMLDivElement> | undefined;
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
declare interface UseRenderElementComponentProps<State> {
|
|
807
|
-
/**
|
|
808
|
-
* The class name to apply to the rendered element.
|
|
809
|
-
* Can be a string or a function that accepts the state and returns a string.
|
|
810
|
-
*/
|
|
811
|
-
className?: string | ((state: State) => string | undefined) | undefined;
|
|
812
|
-
/**
|
|
813
|
-
* The render prop or React element to override the default element.
|
|
814
|
-
*/
|
|
815
|
-
render?: undefined | React_2.ReactElement | ComponentRenderFn<React_2.HTMLAttributes<any>, State>;
|
|
816
|
-
/**
|
|
817
|
-
* The style to apply to the rendered element.
|
|
818
|
-
* Can be a style object or a function that accepts the state and returns a style object.
|
|
819
|
-
*/
|
|
820
|
-
style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
1039
|
/**
|
|
824
1040
|
* Returns the array of toasts and methods to manage them.
|
|
825
1041
|
*/
|
|
@@ -829,7 +1045,7 @@ export declare interface UseToastManagerReturnValue<Data extends object = any> {
|
|
|
829
1045
|
toasts: ToastObject<Data>[];
|
|
830
1046
|
add: <T extends Data = Data>(options: ToastManagerAddOptions<T>) => string;
|
|
831
1047
|
close: (toastId?: string) => void;
|
|
832
|
-
update: <T extends Data = Data>(toastId: string, options: ToastManagerUpdateOptions<T>) => void;
|
|
1048
|
+
update: <T extends Data = Data>(toastId: string, options: ToastManagerUpdateOptions<T> | ((prevToast: ToastObject<T>) => ToastManagerUpdateOptions<T>)) => void;
|
|
833
1049
|
promise: <Value, T extends Data = Data>(promise: Promise<Value>, options: ToastManagerPromiseOptions<Value, T>) => Promise<Value>;
|
|
834
1050
|
}
|
|
835
1051
|
|