@jobber/components 7.8.0 → 7.9.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/Autocomplete/index.mjs +1 -1
- package/dist/Button/buttonRenderAdapter.d.ts +304 -0
- package/dist/Card/index.cjs +7 -4
- package/dist/Card/index.mjs +7 -4
- package/dist/Countdown/index.cjs +1 -1
- package/dist/Countdown/index.mjs +1 -1
- package/dist/Countdown-cjs.js +1 -1
- package/dist/Countdown-es.js +1 -1
- package/dist/DataDump/index.cjs +7 -4
- package/dist/DataDump/index.mjs +7 -4
- package/dist/DrawerRoot-cjs.js +2634 -2142
- package/dist/DrawerRoot-es.js +2523 -2065
- package/dist/InputAvatar/index.cjs +1 -1
- package/dist/InputAvatar/index.mjs +1 -1
- package/dist/InputFile/index.cjs +1 -1
- package/dist/InputFile/index.mjs +1 -1
- package/dist/InputFile-cjs.js +1 -1
- package/dist/InputFile-es.js +1 -1
- package/dist/InputNumber/index.cjs +2441 -186
- package/dist/InputNumber/index.mjs +2361 -106
- package/dist/Menu/Menu.Legacy.d.ts +3 -0
- package/dist/Menu/Menu.d.ts +66 -24
- package/dist/Menu/Menu.types.d.ts +8 -108
- package/dist/Menu/MenuBottomSheet.d.ts +29 -0
- package/dist/Menu/MenuDropdown.d.ts +29 -0
- package/dist/Menu/index.cjs +7 -4
- package/dist/Menu/index.mjs +7 -4
- package/dist/Menu/menuComposableShared.d.ts +27 -0
- package/dist/Menu/menuComposableTypes.d.ts +99 -0
- package/dist/Menu-cjs.js +828 -8419
- package/dist/Menu-es.js +823 -8414
- package/dist/MenuSubmenuTrigger-cjs.js +5283 -0
- package/dist/MenuSubmenuTrigger-es.js +5224 -0
- package/dist/Modal/index.mjs +1 -1
- package/dist/Page/index.cjs +6 -3
- package/dist/Page/index.mjs +6 -3
- package/dist/Page-cjs.js +1 -1
- package/dist/Page-es.js +1 -1
- package/dist/RecurringSelect/index.cjs +0 -1
- package/dist/RecurringSelect/index.mjs +0 -1
- package/dist/docs/Menu/Menu.md +7 -62
- package/dist/floating-ui.react-dom-es.js +1 -1
- package/dist/floating-ui.react-es.js +2 -2
- package/dist/index-cjs.js +1161 -166
- package/dist/index-es.js +1160 -166
- package/dist/index.cjs +7 -3
- package/dist/index.esm-es.js +1 -1
- package/dist/index.mjs +7 -3
- package/dist/primitives/BottomSheet/index.cjs +0 -1
- package/dist/primitives/BottomSheet/index.mjs +0 -1
- package/dist/primitives/index.cjs +0 -1
- package/dist/primitives/index.mjs +0 -1
- package/dist/styles.css +540 -31
- package/dist/unstyledPrimitives/index.cjs +6662 -8039
- package/dist/unstyledPrimitives/index.d.ts +2 -1
- package/dist/unstyledPrimitives/index.mjs +6733 -8111
- package/dist/useRenderElement-cjs.js +212 -212
- package/dist/useRenderElement-es.js +213 -213
- package/dist/utils/meta/meta.json +9 -0
- package/package.json +2 -2
- package/dist/Text-cjs2.js +0 -2484
- package/dist/Text-es2.js +0 -2417
- package/dist/index-cjs2.js +0 -1189
- package/dist/index-es2.js +0 -1186
package/dist/Modal/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { H as Heading } from '../Heading-es.js';
|
|
|
7
7
|
import { B as Button } from '../Button-es.js';
|
|
8
8
|
import { B as ButtonDismiss } from '../ButtonDismiss-es.js';
|
|
9
9
|
import { n as noop } from '../noop-es.js';
|
|
10
|
-
import { b as useFloatingNodeId, u as useFloating, c as useDismiss,
|
|
10
|
+
import { b as useFloatingNodeId, u as useFloating, c as useDismiss, h as useRole, d as useInteractions, a as useFloatingParentNodeId, e as FloatingTree, f as FloatingNode, F as FloatingPortal, i as FloatingFocusManager, j as FloatingOverlay } from '../floating-ui.react-es.js';
|
|
11
11
|
import { b as identity } from '../identity-es.js';
|
|
12
12
|
import { A as AtlantisPortalContent } from '../AtlantisPortalContent-es.js';
|
|
13
13
|
import '../Typography-es.js';
|
package/dist/Page/index.cjs
CHANGED
|
@@ -23,11 +23,14 @@ require('../floating-ui.react-cjs.js');
|
|
|
23
23
|
require('../index.esm-cjs.js');
|
|
24
24
|
require('react-dom');
|
|
25
25
|
require('../floating-ui.react-dom-cjs.js');
|
|
26
|
-
require('../Text-cjs2.js');
|
|
27
|
-
require('../clsx-cjs.js');
|
|
28
|
-
require('../index-cjs.js');
|
|
29
26
|
require('../useFormFieldFocus-cjs.js');
|
|
30
27
|
require('../maxHeight-cjs.js');
|
|
28
|
+
require('../useRenderElement-cjs.js');
|
|
29
|
+
require('../BottomSheet-cjs.js');
|
|
30
|
+
require('../DrawerRoot-cjs.js');
|
|
31
|
+
require('../OverlaySeparator-cjs.js');
|
|
32
|
+
require('../Separator-cjs.js');
|
|
33
|
+
require('../MenuSubmenuTrigger-cjs.js');
|
|
31
34
|
require('../filterDataAttributes-cjs.js');
|
|
32
35
|
|
|
33
36
|
|
package/dist/Page/index.mjs
CHANGED
|
@@ -21,9 +21,12 @@ import '../floating-ui.react-es.js';
|
|
|
21
21
|
import '../index.esm-es.js';
|
|
22
22
|
import 'react-dom';
|
|
23
23
|
import '../floating-ui.react-dom-es.js';
|
|
24
|
-
import '../Text-es2.js';
|
|
25
|
-
import '../clsx-es.js';
|
|
26
|
-
import '../index-es.js';
|
|
27
24
|
import '../useFormFieldFocus-es.js';
|
|
28
25
|
import '../maxHeight-es.js';
|
|
26
|
+
import '../useRenderElement-es.js';
|
|
27
|
+
import '../BottomSheet-es.js';
|
|
28
|
+
import '../DrawerRoot-es.js';
|
|
29
|
+
import '../OverlaySeparator-es.js';
|
|
30
|
+
import '../Separator-es.js';
|
|
31
|
+
import '../MenuSubmenuTrigger-es.js';
|
|
29
32
|
import '../filterDataAttributes-es.js';
|
package/dist/Page-cjs.js
CHANGED
|
@@ -173,7 +173,7 @@ function PageMenu(_a) {
|
|
|
173
173
|
const preferredPlacement = width === "fill" ? "bottom end" : undefined;
|
|
174
174
|
return (React.createElement("div", Object.assign({}, dataAttrs),
|
|
175
175
|
React.createElement(Menu.Menu, null,
|
|
176
|
-
React.createElement(Menu.Menu.Trigger,
|
|
176
|
+
React.createElement(Menu.Menu.Trigger, null,
|
|
177
177
|
React.createElement(Button.Button, { icon: "more", label: triggerLabel, type: "secondary", fullWidth: true })),
|
|
178
178
|
React.createElement(Menu.Menu.Content, { preferredPlacement: preferredPlacement }, children))));
|
|
179
179
|
}
|
package/dist/Page-es.js
CHANGED
|
@@ -171,7 +171,7 @@ function PageMenu(_a) {
|
|
|
171
171
|
const preferredPlacement = width === "fill" ? "bottom end" : undefined;
|
|
172
172
|
return (React__default.createElement("div", Object.assign({}, dataAttrs),
|
|
173
173
|
React__default.createElement(Menu, null,
|
|
174
|
-
React__default.createElement(Menu.Trigger,
|
|
174
|
+
React__default.createElement(Menu.Trigger, null,
|
|
175
175
|
React__default.createElement(Button, { icon: "more", label: triggerLabel, type: "secondary", fullWidth: true })),
|
|
176
176
|
React__default.createElement(Menu.Content, { preferredPlacement: preferredPlacement }, children))));
|
|
177
177
|
}
|
|
@@ -21,7 +21,6 @@ require('../Spinner-cjs.js');
|
|
|
21
21
|
require('react-hook-form');
|
|
22
22
|
require('../filterDataAttributes-cjs.js');
|
|
23
23
|
require('../InputNumber/index.cjs');
|
|
24
|
-
require('../Text-cjs2.js');
|
|
25
24
|
require('../clsx-cjs.js');
|
|
26
25
|
require('../FormField-cjs.js');
|
|
27
26
|
require('../InputGroup-cjs.js');
|
package/dist/docs/Menu/Menu.md
CHANGED
|
@@ -298,69 +298,14 @@ through inline styles.
|
|
|
298
298
|
|
|
299
299
|
### Web
|
|
300
300
|
|
|
301
|
-
#### Menu
|
|
302
|
-
|
|
303
|
-
| Prop | Type | Required | Default | Description |
|
|
304
|
-
|------|------|----------|---------|-------------|
|
|
305
|
-
| `items` | `SectionProps[]` | Yes | — | Collection of action items. |
|
|
306
|
-
| `activator` | `ReactElement<{ [key: string]: unknown; fullWidth?: boolean; onClick?: (event?: MouseEvent<Element, MouseEvent>) => void; }, string | JSXElementConstructor<any>>` | No | — | Custom menu activator. If this is not provided a default [… More] will be used. |
|
|
307
|
-
| `UNSAFE_className` | `{ menu?: string; header?: string; action?: string; }` | No | — | **Use at your own risk:** Custom class names for specific elements. This should only be used as a **last resort**. Us... |
|
|
308
|
-
| `UNSAFE_style` | `{ menu?: CSSProperties; header?: CSSProperties; action?: CSSProperties; }` | No | — | **Use at your own risk:** Custom style for specific elements. This should only be used as a **last resort**. Using th... |
|
|
309
|
-
|
|
310
|
-
#### Menu.Section
|
|
311
|
-
|
|
312
|
-
| Prop | Type | Required | Default | Description |
|
|
313
|
-
|------|------|----------|---------|-------------|
|
|
314
|
-
| `children` | `ReactNode` | Yes | — | Section content If no Menu.Header is provided, ariaLabel must be provided to identify the section to assistive techno... |
|
|
315
|
-
| `ariaLabel` | `string` | No | — | Accessible label for the section |
|
|
316
|
-
| `UNSAFE_className` | `string` | No | — | |
|
|
317
|
-
| `UNSAFE_style` | `CSSProperties` | No | — | |
|
|
318
|
-
|
|
319
|
-
#### Menu.Header
|
|
320
|
-
|
|
321
|
-
| Prop | Type | Required | Default | Description |
|
|
322
|
-
|------|------|----------|---------|-------------|
|
|
323
|
-
| `UNSAFE_className` | `string` | No | — | |
|
|
324
|
-
| `UNSAFE_style` | `CSSProperties` | No | — | |
|
|
325
|
-
|
|
326
|
-
#### Menu.Content
|
|
327
|
-
|
|
328
|
-
| Prop | Type | Required | Default | Description |
|
|
329
|
-
|------|------|----------|---------|-------------|
|
|
330
|
-
| `preferredPlacement` | `Placement` | No | `'bottom start'` | Describes the preferred placement of the Menu. |
|
|
331
|
-
| `UNSAFE_className` | `string` | No | — | |
|
|
332
|
-
| `UNSAFE_style` | `CSSProperties` | No | — | |
|
|
333
|
-
|
|
334
|
-
#### Menu.Separator
|
|
335
|
-
|
|
336
|
-
| Prop | Type | Required | Default | Description |
|
|
337
|
-
|------|------|----------|---------|-------------|
|
|
338
|
-
| `UNSAFE_className` | `string` | No | — | |
|
|
339
|
-
| `UNSAFE_style` | `CSSProperties` | No | — | |
|
|
340
|
-
|
|
341
|
-
#### Menu.ItemIcon
|
|
342
|
-
|
|
343
|
-
| Prop | Type | Required | Default | Description |
|
|
344
|
-
|------|------|----------|---------|-------------|
|
|
345
|
-
| `name` | `IconNames` | Yes | — | The icon to show. |
|
|
346
|
-
| `color` | `"text" | "task" | "warning" | "icon" | "white" | "grey" | "greyBlue" | "greyBlueDark" | "greyBlueLighter" | "blue" | "lightBlue" | "green" | "yellow" | "red" | "navy" | "orange" | ... 33 more ... | "brandHighlight"` | No | — | Determines the color of the icon. Some icons have a default system colour like quotes, jobs, and invoices. Others tha... |
|
|
347
|
-
| `customColor` | `string` | No | — | Sets a custom color for the icon. Can be a rgb() or hex value. |
|
|
348
|
-
| `size` | `"base" | "small" | "large"` | No | `base` | Changes the size to small or large. |
|
|
349
|
-
| `testID` | `string` | No | — | Used to locate this view in end-to-end tests |
|
|
350
|
-
| `UNSAFE_className` | `{ svg?: string; path?: string; }` | No | — | **Use at your own risk:** Custom classnames for specific elements. This should only be used as a **last resort**. Usi... |
|
|
351
|
-
| `UNSAFE_style` | `{ svg?: CSSProperties; path?: CSSProperties; }` | No | — | **Use at your own risk:** Custom style for specific elements. This should only be used as a **last resort**. Using th... |
|
|
352
|
-
|
|
353
|
-
#### Menu.ItemLabel
|
|
354
|
-
|
|
355
|
-
| Prop | Type | Required | Default | Description |
|
|
356
|
-
|------|------|----------|---------|-------------|
|
|
357
|
-
| `children` | `ReactNode` | Yes | — | Item label content. This is rendered inside a Typography (span) component, so you MUST supply either a string or a fr... |
|
|
358
|
-
|
|
359
|
-
#### MenuLegacy
|
|
360
|
-
|
|
361
301
|
| Prop | Type | Required | Default | Description |
|
|
362
302
|
|------|------|----------|---------|-------------|
|
|
363
303
|
| `items` | `SectionProps[]` | Yes | — | Collection of action items. |
|
|
364
304
|
| `activator` | `ReactElement<{ [key: string]: unknown; fullWidth?: boolean; onClick?: (event?: MouseEvent<Element, MouseEvent>) => void; }, string | JSXElementConstructor<any>>` | No | — | Custom menu activator. If this is not provided a default [… More] will be used. |
|
|
365
|
-
| `
|
|
366
|
-
| `
|
|
305
|
+
| `className` | `string` | No | — | |
|
|
306
|
+
| `defaultOpen` | `boolean` | No | — | |
|
|
307
|
+
| `onOpenChange` | `(isOpen: boolean) => void` | No | — | |
|
|
308
|
+
| `open` | `boolean` | No | — | |
|
|
309
|
+
| `style` | `CSSProperties` | No | — | |
|
|
310
|
+
| `UNSAFE_className` | `string | { menu?: string; header?: string; action?: string; }` | No | — | **Use at your own risk:** Custom class names for specific elements. This should only be used as a **last resort**. Us... |
|
|
311
|
+
| `UNSAFE_style` | `{ menu?: CSSProperties; header?: CSSProperties; action?: CSSProperties; } | CSSProperties` | No | — | **Use at your own risk:** Custom style for specific elements. This should only be used as a **last resort**. Using th... |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as evaluate, o as getSide, p as getSideAxis, q as getOppositePlacement, r as getExpandedPlacements, s as getOppositeAxisPlacements, u as getAlignmentSides, v as getAlignment, w as min, x as max, y as getAlignmentAxis, z as getPaddingObject, A as rectToClientRect, B as clamp, C as getAxisLength, D as sides, E as getOppositeAxis, F as placements, G as getOppositeAlignmentPlacement,
|
|
1
|
+
import { n as evaluate, o as getSide, p as getSideAxis, q as getOppositePlacement, r as getExpandedPlacements, s as getOppositeAxisPlacements, u as getAlignmentSides, v as getAlignment, w as min, x as max, y as getAlignmentAxis, z as getPaddingObject, A as rectToClientRect, B as clamp, C as getAxisLength, D as sides, E as getOppositeAxis, F as placements, G as getOppositeAlignmentPlacement, l as getOverflowAncestors, b as isElement, H as createCoords, I as getWindow, J as getFrameElement, k as getComputedStyle$1, K as getDocumentElement, a as isHTMLElement, L as round, m as isWebKit, f as floor, M as isTopLayer, g as getNodeName, N as isOverflowElement, O as getNodeScroll, j as getParentNode, h as isLastTraversableNode, P as isTableElement, Q as isContainingBlock, R as getContainingBlock } from './index.esm-es.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useLayoutEffect } from 'react';
|
|
4
4
|
import * as ReactDOM from 'react-dom';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useLayoutEffect } from 'react';
|
|
3
|
-
import { i as isShadowRoot, a as isHTMLElement, t as tabbable, f as floor, b as isElement,
|
|
3
|
+
import { i as isShadowRoot, a as isHTMLElement, t as tabbable, f as floor, b as isElement, c as isNode, g as getNodeName, d as isTabbable, e as focusable, h as isLastTraversableNode, j as getParentNode, k as getComputedStyle, l as getOverflowAncestors, m as isWebKit } from './index.esm-es.js';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import * as ReactDOM from 'react-dom';
|
|
6
6
|
import { u as useFloating$1 } from './floating-ui.react-dom-es.js';
|
|
@@ -3232,4 +3232,4 @@ function useTransitionStyles(context, props) {
|
|
|
3232
3232
|
};
|
|
3233
3233
|
}
|
|
3234
3234
|
|
|
3235
|
-
export { FloatingPortal as F, useFloatingParentNodeId as a, useFloatingNodeId as b, useDismiss as c, useInteractions as d, FloatingTree as e, FloatingNode as f,
|
|
3235
|
+
export { FloatingPortal as F, useFloatingParentNodeId as a, useFloatingNodeId as b, useDismiss as c, useInteractions as d, FloatingTree as e, FloatingNode as f, useListNavigation as g, useRole as h, FloatingFocusManager as i, FloatingOverlay as j, useClick as k, useTransitionStyles as l, FloatingArrow as m, useFloating as u };
|