@viasat/beam-react 2.42.0 → 2.43.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/assets/FloatingUI.css +1 -1
- package/assets/panel.css +1 -1
- package/chunks/FloatingUI.arrow.DDrTOpE-.js +1 -0
- package/chunks/{FloatingUI.arrow.90ecVA1X.js → FloatingUI.arrow.DGlk005P.js} +8 -7
- package/chunks/panel.module.BzLGa7GY.js +1 -0
- package/chunks/{panel.module.CnHWv4EZ.js → panel.module.CgFBtvbR.js} +6 -6
- package/lib/Autocomplete/AutocompleteDropdown.cjs.js +1 -1
- package/lib/Autocomplete/AutocompleteDropdown.es.js +1 -1
- package/lib/FloatingUI/FloatingUI.arrow.cjs.js +1 -1
- package/lib/FloatingUI/FloatingUI.arrow.es.js +1 -1
- package/lib/FloatingUI/FloatingUI.content.cjs.js +1 -1
- package/lib/FloatingUI/FloatingUI.content.es.js +1 -1
- package/lib/Search/SearchDropdown.cjs.js +1 -1
- package/lib/Search/SearchDropdown.es.js +1 -1
- package/lib/Select/SelectDropdown.cjs.js +1 -1
- package/lib/Select/SelectDropdown.es.js +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.Actions.cjs.js +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.Actions.d.ts +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.Actions.es.js +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.cjs.js +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.d.ts +1 -1
- package/lib/wip/Panel/Footer/Panel.Footer.es.js +21 -20
- package/lib/wip/Panel/Header/Panel.Header.ContentAfter.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.ContentAfter.d.ts +1 -1
- package/lib/wip/Panel/Header/Panel.Header.ContentAfter.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.ContentBefore.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.ContentBefore.d.ts +1 -1
- package/lib/wip/Panel/Header/Panel.Header.ContentBefore.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Description.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Description.d.ts +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Description.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Heading.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Heading.d.ts +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Heading.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Row.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Row.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Subheader.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.Subheader.es.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.cjs.js +1 -1
- package/lib/wip/Panel/Header/Panel.Header.d.ts +1 -1
- package/lib/wip/Panel/Header/Panel.Header.es.js +35 -34
- package/lib/wip/Panel/Panel.Body.cjs.js +1 -1
- package/lib/wip/Panel/Panel.Body.d.ts +1 -1
- package/lib/wip/Panel/Panel.Body.es.js +16 -14
- package/lib/wip/Panel/Panel.Inline.cjs.js +1 -1
- package/lib/wip/Panel/Panel.Inline.d.ts +3 -3
- package/lib/wip/Panel/Panel.Inline.es.js +4 -4
- package/lib/wip/Panel/Panel.Overlay.cjs.js +1 -1
- package/lib/wip/Panel/Panel.Overlay.d.ts +3 -3
- package/lib/wip/Panel/Panel.Overlay.es.js +83 -80
- package/lib/wip/Panel/Panel.ResizeHandle.cjs.js +1 -1
- package/lib/wip/Panel/Panel.ResizeHandle.es.js +1 -1
- package/lib/wip/Panel/Panel.cjs.js +1 -1
- package/lib/wip/Panel/Panel.context.d.ts +12 -1
- package/lib/wip/Panel/Panel.d.ts +2 -2
- package/lib/wip/Panel/Panel.es.js +135 -120
- package/lib/wip/Panel/Panel.helpers.cjs.js +1 -1
- package/lib/wip/Panel/Panel.helpers.d.ts +3 -3
- package/lib/wip/Panel/Panel.helpers.es.js +19 -19
- package/lib/wip/Panel/Panel.types.d.ts +94 -92
- package/lib/wip/Panel/index.d.ts +1 -1
- package/package.json +6 -6
- package/chunks/FloatingUI.arrow.DR8hzVDP.js +0 -1
- package/chunks/panel.module.BVmRxZHo.js +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, RefObject } from 'react';
|
|
2
|
+
import { BoxBackgroundColor } from '@viasat/beam-shared/components/box';
|
|
2
3
|
import { PanelDividerColor, PanelDividerColors } from '@viasat/beam-shared/components/panel';
|
|
3
|
-
export type { PanelDividerColor };
|
|
4
|
+
export type { BoxBackgroundColor, PanelDividerColor };
|
|
4
5
|
export { PanelDividerColors };
|
|
5
6
|
export type PanelKind = 'inline' | 'overlay';
|
|
6
7
|
export type ResolvedPanelOffset = {
|
|
@@ -9,7 +10,8 @@ export type ResolvedPanelOffset = {
|
|
|
9
10
|
};
|
|
10
11
|
export type PanelPosition = 'start' | 'end' | 'bottom';
|
|
11
12
|
export type PanelModalType = 'nonModal' | 'isModal' | 'alert';
|
|
12
|
-
export type
|
|
13
|
+
export type PanelWidth = 'sm' | 'md' | 'lg' | (string & {});
|
|
14
|
+
export type PanelHeight = string;
|
|
13
15
|
export type PanelPadding = 'sm' | 'md';
|
|
14
16
|
/**
|
|
15
17
|
* Configuration for resizable panels.
|
|
@@ -36,12 +38,12 @@ interface BasePanelProps extends ComponentPropsWithoutRef<'aside'> {
|
|
|
36
38
|
/**
|
|
37
39
|
* Specify the content of the Panel
|
|
38
40
|
*/
|
|
39
|
-
children: React.ReactNode;
|
|
41
|
+
'children': React.ReactNode;
|
|
40
42
|
/**
|
|
41
|
-
* Accessible name for the panel dialog when `Panel.Header.Heading` is not rendered.
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
43
|
+
* Accessible name for the panel dialog, required when `Panel.Header.Heading` is not rendered.
|
|
44
|
+
*
|
|
45
|
+
* With a heading present, `aria-labelledby` points to it automatically; without one, a
|
|
46
|
+
* `role="dialog"` needs this so screen readers can announce the Panel.
|
|
45
47
|
*
|
|
46
48
|
* @example
|
|
47
49
|
* ```tsx
|
|
@@ -53,94 +55,101 @@ interface BasePanelProps extends ComponentPropsWithoutRef<'aside'> {
|
|
|
53
55
|
* Controls the Panel's visibility. For inline panels, omitting this prop
|
|
54
56
|
* renders the panel as always-visible (uncontrolled).
|
|
55
57
|
*/
|
|
56
|
-
open?: boolean;
|
|
58
|
+
'open'?: boolean;
|
|
57
59
|
/**
|
|
58
60
|
* Callback when Panel open state changes
|
|
59
61
|
*/
|
|
60
|
-
onOpenChange?: (open: boolean) => void;
|
|
62
|
+
'onOpenChange'?: (open: boolean) => void;
|
|
61
63
|
/**
|
|
62
|
-
*
|
|
64
|
+
* Width of a side Panel.
|
|
65
|
+
*
|
|
66
|
+
* Applies only when `position` is `"start"` or `"end"`. Has no effect on
|
|
67
|
+
* `position="bottom"` panels; use `height` for bottom panels instead.
|
|
63
68
|
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
69
|
+
* Use a named preset (`"sm"`, `"md"`, `"lg"`) or any valid CSS width value
|
|
70
|
+
* such as `"480px"` or `"30vw"`.
|
|
66
71
|
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
72
|
+
* When omitted, the Panel uses the `"md"` width preset.
|
|
73
|
+
* @default 'md'
|
|
74
|
+
*/
|
|
75
|
+
'width'?: PanelWidth;
|
|
76
|
+
/**
|
|
77
|
+
* Height of a bottom Panel.
|
|
69
78
|
*
|
|
70
|
-
*
|
|
71
|
-
* (
|
|
79
|
+
* Applies only when `position="bottom"`. Has no effect on side panels
|
|
80
|
+
* (`position="start"` or `position="end"`); use `width` for those instead.
|
|
72
81
|
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* `"auto"` sets `max-height: auto`, removing the `90dvh` viewport cap.
|
|
82
|
+
* Use any valid CSS height value, such as `"50dvh"` or `"480px"`.
|
|
83
|
+
* When omitted, the Panel sizes to its content and is capped at `90dvh`.
|
|
84
|
+
* Avoid `height="auto"` because it removes the `90dvh` viewport cap.
|
|
77
85
|
*/
|
|
78
|
-
|
|
86
|
+
'height'?: PanelHeight;
|
|
79
87
|
/**
|
|
80
88
|
* Specify the horizontal padding
|
|
81
89
|
* sm=1rem, md=1.5rem
|
|
82
90
|
* @default 'md'
|
|
83
91
|
*/
|
|
84
|
-
padding?: PanelPadding;
|
|
92
|
+
'padding'?: PanelPadding;
|
|
85
93
|
/**
|
|
86
|
-
*
|
|
94
|
+
* Specify whether to show the header close button
|
|
87
95
|
* @default true
|
|
88
96
|
*/
|
|
89
|
-
dismissible?: boolean;
|
|
97
|
+
'dismissible'?: boolean;
|
|
90
98
|
/**
|
|
91
|
-
* Label for the close button. Used as both the button's `aria-label`
|
|
99
|
+
* Label for the close button. Used as both the button's `aria-label`
|
|
92
100
|
* and the visible tooltip text. Provide a value that works in both contexts.
|
|
93
101
|
* @default 'Close panel'
|
|
94
102
|
*/
|
|
95
|
-
closeButtonAriaLabel?: string;
|
|
103
|
+
'closeButtonAriaLabel'?: string;
|
|
96
104
|
/**
|
|
97
|
-
*
|
|
98
|
-
* When `false`, floating-ui's transition timing collapses to zero, which clips
|
|
99
|
-
* the close animation. CSS `transition-duration` values in the stylesheet are
|
|
100
|
-
* unaffected — use `prefers-reduced-motion` in SCSS for motion-sensitive contexts.
|
|
105
|
+
* Specify whether to animate the Panel as it opens and closes
|
|
101
106
|
* @default true
|
|
102
107
|
*/
|
|
103
|
-
isAnimated?: boolean;
|
|
108
|
+
'isAnimated'?: boolean;
|
|
104
109
|
/**
|
|
105
|
-
*
|
|
110
|
+
* Specify whether to show an external divider between panel and page content
|
|
106
111
|
* @default true
|
|
107
112
|
*/
|
|
108
|
-
divider?: boolean;
|
|
113
|
+
'divider'?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Specify the background color for all panel surfaces (Header, Body, Footer).
|
|
116
|
+
* A `backgroundColor` set on a section takes priority.
|
|
117
|
+
*/
|
|
118
|
+
'backgroundColor'?: BoxBackgroundColor;
|
|
109
119
|
/**
|
|
110
|
-
* Specify the border color of the external divider between panel and page content
|
|
120
|
+
* Specify the border color of the external divider between the panel and page content. Also sets
|
|
121
|
+
* the default divider color for the Header and Footer; a `dividerColor` set on a
|
|
122
|
+
* section takes priority.
|
|
111
123
|
* @default '01'
|
|
112
124
|
*/
|
|
113
|
-
dividerColor?: PanelDividerColor;
|
|
125
|
+
'dividerColor'?: PanelDividerColor;
|
|
114
126
|
/**
|
|
115
|
-
* Specify the
|
|
116
|
-
*
|
|
117
|
-
* @default 'end'
|
|
127
|
+
* Specify where the Panel is anchored within its container
|
|
128
|
+
* @default 'start'
|
|
118
129
|
*/
|
|
119
|
-
position?: PanelPosition;
|
|
130
|
+
'position'?: PanelPosition;
|
|
120
131
|
/**
|
|
121
132
|
* Enables user-resizing via a drag handle at the panel edge.
|
|
122
133
|
* Pass `true` to use default min/max constraints, or an object to set custom
|
|
123
134
|
* values in pixels.
|
|
135
|
+
*
|
|
124
136
|
* Provide a `storageKey` in the config object to persist the panel's last-used size across sessions.
|
|
125
137
|
* @default false
|
|
126
138
|
*/
|
|
127
|
-
resizable?: PanelResizable;
|
|
139
|
+
'resizable'?: PanelResizable;
|
|
128
140
|
/**
|
|
129
|
-
*
|
|
130
|
-
* `Promise<false>`) to
|
|
131
|
-
* a form with unsaved changes.
|
|
141
|
+
* Runs before a user-initiated close and acts as a gate: return `false` (or
|
|
142
|
+
* `Promise<false>`) to keep the Panel open, for example when a form has unsaved changes.
|
|
132
143
|
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* When `modalType="alert"`, `'escapeKey'` and `'outsidePress'` reasons are
|
|
138
|
-
* suppressed entirely — this callback will not be invoked for those reasons.
|
|
144
|
+
* It only fires for UI-triggered closes (close button, Escape, or outside press), never
|
|
145
|
+
* when the parent changes the `open` prop programmatically. Under `modalType="alert"`,
|
|
146
|
+
* the `'escapeKey'` and `'outsidePress'` reasons are suppressed, so it won't fire for
|
|
147
|
+
* those either.
|
|
139
148
|
*
|
|
140
149
|
* @example
|
|
141
150
|
* ```tsx
|
|
142
|
-
* //
|
|
143
|
-
* // See the
|
|
151
|
+
* // Drive a confirmation dialog from state; avoid window.confirm (blocking, breaks iframes).
|
|
152
|
+
* // See the "Preserving and Guarding State" story for a full reference implementation.
|
|
144
153
|
* <Panel
|
|
145
154
|
* onBeforeClose={(reason) => {
|
|
146
155
|
* if (!isDirty) return true;
|
|
@@ -152,28 +161,30 @@ interface BasePanelProps extends ComponentPropsWithoutRef<'aside'> {
|
|
|
152
161
|
* />
|
|
153
162
|
* ```
|
|
154
163
|
*/
|
|
155
|
-
onBeforeClose?: (reason: PanelCloseReason) => boolean | Promise<boolean>;
|
|
164
|
+
'onBeforeClose'?: (reason: PanelCloseReason) => boolean | Promise<boolean>;
|
|
156
165
|
}
|
|
157
166
|
export interface InlinePanelProps extends BasePanelProps {
|
|
158
167
|
/**
|
|
159
|
-
*
|
|
168
|
+
* Render the Panel inline: it sits in document flow and pushes adjacent content aside
|
|
169
|
+
* when open. Required to opt into the inline kind; the Panel defaults to `'overlay'`.
|
|
160
170
|
*/
|
|
161
|
-
kind
|
|
171
|
+
kind: 'inline';
|
|
162
172
|
modalType?: never;
|
|
163
173
|
offset?: never;
|
|
164
174
|
}
|
|
165
175
|
export interface OverlayPanelProps extends BasePanelProps {
|
|
166
176
|
/**
|
|
167
|
-
*
|
|
177
|
+
* Render the Panel as an overlay: portalled and floating above the page.
|
|
178
|
+
* @default 'overlay'
|
|
168
179
|
*/
|
|
169
|
-
kind
|
|
180
|
+
kind?: 'overlay';
|
|
170
181
|
/**
|
|
171
|
-
*
|
|
182
|
+
* Modal behavior (overlay panels only).
|
|
172
183
|
*
|
|
173
|
-
* - `'nonModal'` (default) — page stays interactive;
|
|
174
|
-
*
|
|
175
|
-
* - `'isModal'` — backdrop overlay
|
|
176
|
-
* - `'alert'` — close button hidden
|
|
184
|
+
* - `'nonModal'` (default) — page stays interactive; Escape closes the panel; outside
|
|
185
|
+
* clicks close it unless `closeOnOutsidePress={false}`.
|
|
186
|
+
* - `'isModal'` — backdrop overlay with focus trapped; Escape and a backdrop click close it.
|
|
187
|
+
* - `'alert'` — close button hidden; Escape and outside clicks are suppressed.
|
|
177
188
|
*
|
|
178
189
|
* @default 'nonModal'
|
|
179
190
|
*/
|
|
@@ -181,19 +192,16 @@ export interface OverlayPanelProps extends BasePanelProps {
|
|
|
181
192
|
/**
|
|
182
193
|
* When `modalType="nonModal"`, allows the panel to close when the user
|
|
183
194
|
* clicks outside it. Has no effect for `'isModal'` or `'alert'` panels.
|
|
184
|
-
* @default
|
|
195
|
+
* @default true
|
|
185
196
|
*/
|
|
186
197
|
closeOnOutsidePress?: boolean;
|
|
187
198
|
/**
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
* Pass `true`
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* independent horizontal and vertical offsets.
|
|
195
|
-
* Setting this prop automatically suppresses the outer divider regardless
|
|
196
|
-
* of the `divider` prop value.
|
|
199
|
+
* Insets an overlay Panel from the viewport edge, giving it rounded corners and
|
|
200
|
+
* removing the outer divider (regardless of the `divider` prop).
|
|
201
|
+
*
|
|
202
|
+
* Pass `true` for the default `1rem`, a CSS length like `"2rem"` for a uniform offset,
|
|
203
|
+
* or a `{ x, y }` object like `{ x: "2rem", y: "0.5rem" }` to offset the axes
|
|
204
|
+
* independently.
|
|
197
205
|
* @default false
|
|
198
206
|
*/
|
|
199
207
|
offset?: boolean | string | {
|
|
@@ -201,18 +209,19 @@ export interface OverlayPanelProps extends BasePanelProps {
|
|
|
201
209
|
y: string;
|
|
202
210
|
};
|
|
203
211
|
/**
|
|
204
|
-
* Portal target for the overlay. When set, the
|
|
205
|
-
*
|
|
206
|
-
* container must:
|
|
212
|
+
* Portal target for the overlay. When set, the Panel renders inside this element with
|
|
213
|
+
* `position: absolute` instead of `position: fixed`. The container needs to:
|
|
207
214
|
* - establish a containing block (e.g. `position: relative`)
|
|
208
|
-
* -
|
|
209
|
-
* - use `overflow: hidden` (or `clip`) so the
|
|
210
|
-
*
|
|
215
|
+
* - set an appropriate `z-index`
|
|
216
|
+
* - use `overflow: hidden` (or `clip`), so the slide-in/out transform doesn't flash a
|
|
217
|
+
* transient scrollbar
|
|
211
218
|
*
|
|
212
|
-
* Pass the resolved element
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
219
|
+
* Pass the resolved element, or `null` until it exists — resolution is left to the implementer. Use state
|
|
220
|
+
* or a callback ref so the value is reactive: when it flips from `null` to the element,
|
|
221
|
+
* the Panel re-renders into the container. A plain `useRef` whose `.current` is mutated
|
|
222
|
+
* won't trigger that.
|
|
223
|
+
*
|
|
224
|
+
* Has no effect on `kind="inline"`.
|
|
216
225
|
*
|
|
217
226
|
* @example
|
|
218
227
|
* ```tsx
|
|
@@ -223,21 +232,14 @@ export interface OverlayPanelProps extends BasePanelProps {
|
|
|
223
232
|
* </div>
|
|
224
233
|
* );
|
|
225
234
|
* ```
|
|
226
|
-
*
|
|
227
|
-
* Has no effect on `kind="inline"`.
|
|
228
235
|
*/
|
|
229
236
|
container?: HTMLElement | null;
|
|
230
237
|
/**
|
|
231
|
-
* The element that opens the
|
|
232
|
-
* dismissal so it can toggle the
|
|
233
|
-
*
|
|
234
|
-
* No effect on `kind="inline"`.
|
|
238
|
+
* The element that opens the Panel. Clicks on it are excluded from outside-press
|
|
239
|
+
* dismissal, so it can toggle the Panel without the close immediately re-firing, and
|
|
240
|
+
* focus returns to it when the Panel closes. No effect on `kind="inline"`.
|
|
235
241
|
*
|
|
236
|
-
*
|
|
237
|
-
* a FloatingUI reference registration. This avoids `autoUpdate` re-renders that
|
|
238
|
-
* interfere with the slide-in CSS transition, but means FloatingUI's nested-floating
|
|
239
|
-
* tree-scoping (`__outsidePressBubbles`) is bypassed for this panel. Avoid using
|
|
240
|
-
* `triggerRef` when the panel is nested inside another FloatingUI floating element.
|
|
242
|
+
* Avoid `triggerRef` when the Panel is nested inside another FloatingUI floating element.
|
|
241
243
|
*/
|
|
242
244
|
triggerRef?: RefObject<HTMLElement | null>;
|
|
243
245
|
}
|
package/lib/wip/Panel/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Panel } from './Panel';
|
|
2
|
-
export type { PanelProps, InlinePanelProps, OverlayPanelProps, PanelKind, PanelPosition, PanelModalType,
|
|
2
|
+
export type { PanelProps, InlinePanelProps, OverlayPanelProps, PanelKind, PanelPosition, PanelModalType, PanelWidth, PanelHeight, PanelPadding, PanelCloseReason, } from './Panel.types';
|
|
3
3
|
export type { PanelHeaderProps } from './Header/Panel.Header';
|
|
4
4
|
export type { PanelHeaderRowProps } from './Header/Panel.Header.Row';
|
|
5
5
|
export type { PanelHeaderContentBeforeProps } from './Header/Panel.Header.ContentBefore';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viasat/beam-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.43.0",
|
|
4
4
|
"description": "React component library for the Beam design system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Viasat",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@viasat/beam-fonts": "2.
|
|
63
|
-
"@viasat/beam-shared": "2.
|
|
64
|
-
"@viasat/beam-styles": "2.
|
|
65
|
-
"@viasat/beam-tokens": "2.
|
|
66
|
-
"@viasat/beam-icons": "2.
|
|
62
|
+
"@viasat/beam-fonts": "2.43.0",
|
|
63
|
+
"@viasat/beam-shared": "2.43.0",
|
|
64
|
+
"@viasat/beam-styles": "2.43.0",
|
|
65
|
+
"@viasat/beam-tokens": "2.43.0",
|
|
66
|
+
"@viasat/beam-icons": "2.43.0",
|
|
67
67
|
"clsx": "^1.2.1",
|
|
68
68
|
"@floating-ui/react": "^0.26.18",
|
|
69
69
|
"@stepperize/react": "^5.1.5",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _=require("../assets/FloatingUI.css");const m=require("react/jsx-runtime"),f=require("./classNames.DC8Ra4sw.js");require("./constants.CgMu0_1M.js");const g=require("clsx"),a=require("react"),e={"bm-floatingui":"bm-floatingui","bm-floatingui__arrow":"bm-floatingui__arrow","bm-floatingui__overlay":"bm-floatingui__overlay","bm-floatingui__overlay--transparent":"bm-floatingui__overlay--transparent","bm-dialog":"bm-dialog","bm-panel--contained":"bm-panel--contained"},b=a.forwardRef(({options:r,middleware:t},n)=>{const{subElementClassPrefix:o}=f.getBEMClassNames("floatingui"),{className:i,hide:s}=r,l=g(e[`${o}arrow`],i),u=a.useRef(null),c=n||u;return s?null:m.jsx("span",{ref:c,style:t.arrowStyles,className:l})});exports.Arrow=b;exports.floatinguiStyles=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=require("../assets/panel.css");const e={"bm-light":"bm-light","bm-dark":"bm-dark","bm-inverse":"bm-inverse","bm-enterprise":"bm-enterprise","bm-consumer":"bm-consumer","bm-panel":"bm-panel","bm-panel--inline":"bm-panel--inline","bm-panel--overlay":"bm-panel--overlay","bm-panel--position-start":"bm-panel--position-start","bm-panel--position-end":"bm-panel--position-end","bm-panel--position-bottom":"bm-panel--position-bottom","bm-panel--contained":"bm-panel--contained","bm-panel--floating":"bm-panel--floating","bm-panel--size-sm":"bm-panel--size-sm","bm-panel--size-md":"bm-panel--size-md","bm-panel--size-lg":"bm-panel--size-lg","bm-panel__body":"bm-panel__body","bm-panel--padding-sm":"bm-panel--padding-sm","bm-panel__header":"bm-panel__header","bm-panel__footer":"bm-panel__footer","bm-panel--padding-md":"bm-panel--padding-md","bm-panel__header__row":"bm-panel__header__row","bm-panel__header__content-before":"bm-panel__header__content-before","bm-panel__header__content-after":"bm-panel__header__content-after","bm-panel__header__heading":"bm-panel__header__heading","bm-panel__header__description":"bm-panel__header__description","bm-panel__header__close-button":"bm-panel__header__close-button","bm-panel__footer__actions":"bm-panel__footer__actions","bm-panel__footer__actions--start":"bm-panel__footer__actions--start","bm-panel__footer__actions--end":"bm-panel__footer__actions--end","bm-panel__footer__actions--spaceBetween":"bm-panel__footer__actions--spaceBetween","bm-panel__footer__actions--stacked":"bm-panel__footer__actions--stacked","bm-panel__overlay-divider":"bm-panel__overlay-divider","bm-panel__overlay-divider--start":"bm-panel__overlay-divider--start","bm-panel__overlay-divider--end":"bm-panel__overlay-divider--end","bm-panel__overlay-divider--bottom":"bm-panel__overlay-divider--bottom","bm-panel__resize-handle":"bm-panel__resize-handle","bm-panel--resizable":"bm-panel--resizable","bm-panel__inline-wrapper":"bm-panel__inline-wrapper","bm-panel__inline-wrapper--size-sm":"bm-panel__inline-wrapper--size-sm","bm-panel__inline-wrapper--size-md":"bm-panel__inline-wrapper--size-md","bm-panel__inline-wrapper--size-lg":"bm-panel__inline-wrapper--size-lg","bm-panel__inline-wrapper-content":"bm-panel__inline-wrapper-content"};exports.styles=e;
|