@jobber/components 9.5.3 → 9.6.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.
Files changed (178) hide show
  1. package/Combobox.d.ts +1 -0
  2. package/Combobox.js +17 -0
  3. package/dist/Autocomplete/index.cjs +0 -2
  4. package/dist/Autocomplete/index.mjs +0 -2
  5. package/dist/Autocomplete-cjs.js +4 -5
  6. package/dist/Autocomplete-es.js +1 -2
  7. package/dist/Card/index.cjs +2 -2
  8. package/dist/Card/index.mjs +2 -2
  9. package/dist/Chip/index.cjs +0 -2
  10. package/dist/Chip/index.mjs +0 -2
  11. package/dist/Chips/InternalChipDismissible/hooks/index.cjs +0 -2
  12. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +0 -2
  13. package/dist/Chips/InternalChipDismissible/index.cjs +0 -2
  14. package/dist/Chips/InternalChipDismissible/index.mjs +0 -2
  15. package/dist/Chips/index.cjs +0 -2
  16. package/dist/Chips/index.mjs +0 -2
  17. package/dist/Combobox/Combobox.contentSlots.d.ts +5 -0
  18. package/dist/Combobox/Combobox.context.d.ts +34 -0
  19. package/dist/Combobox/Combobox.d.ts +69 -0
  20. package/dist/Combobox/Combobox.footer.d.ts +7 -0
  21. package/dist/Combobox/Combobox.items.d.ts +25 -0
  22. package/dist/Combobox/Combobox.responsive.d.ts +54 -0
  23. package/dist/Combobox/Combobox.selectAll.d.ts +4 -0
  24. package/dist/Combobox/Combobox.slotFactory.d.ts +7 -0
  25. package/dist/Combobox/Combobox.testUtils.d.ts +12 -0
  26. package/dist/Combobox/Combobox.types.d.ts +166 -0
  27. package/dist/Combobox/index.cjs +35 -0
  28. package/dist/Combobox/index.d.ts +2 -0
  29. package/dist/Combobox/index.mjs +29 -0
  30. package/dist/Combobox-cjs.js +675 -0
  31. package/dist/Combobox-es.js +673 -0
  32. package/dist/ComboboxPrimitive-cjs.js +88 -47
  33. package/dist/ComboboxPrimitive-es.js +39 -23
  34. package/dist/{ComboboxChipRemove-cjs.js → ComboboxSeparator-cjs.js} +501 -455
  35. package/dist/{ComboboxChipRemove-es.js → ComboboxSeparator-es.js} +500 -456
  36. package/dist/ConfirmationModal/index.cjs +0 -2
  37. package/dist/ConfirmationModal/index.mjs +0 -2
  38. package/dist/ContentBlock/index.cjs +1 -0
  39. package/dist/ContentBlock/index.mjs +1 -0
  40. package/dist/ContentBlock-cjs.js +2 -18
  41. package/dist/ContentBlock-es.js +1 -17
  42. package/dist/DataDump/index.cjs +2 -2
  43. package/dist/DataDump/index.mjs +2 -2
  44. package/dist/DataList/components/DataListActions/index.cjs +0 -2
  45. package/dist/DataList/components/DataListActions/index.mjs +0 -2
  46. package/dist/DataList/components/DataListBulkActions/index.cjs +0 -2
  47. package/dist/DataList/components/DataListBulkActions/index.mjs +0 -2
  48. package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +0 -2
  49. package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +0 -2
  50. package/dist/DataList/components/DataListFilters/index.cjs +0 -2
  51. package/dist/DataList/components/DataListFilters/index.mjs +0 -2
  52. package/dist/DataList/components/DataListHeader/index.cjs +0 -2
  53. package/dist/DataList/components/DataListHeader/index.mjs +0 -2
  54. package/dist/DataList/components/DataListItem/index.cjs +0 -2
  55. package/dist/DataList/components/DataListItem/index.mjs +0 -2
  56. package/dist/DataList/components/DataListItemActions/index.cjs +0 -2
  57. package/dist/DataList/components/DataListItemActions/index.mjs +0 -2
  58. package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +0 -2
  59. package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +0 -2
  60. package/dist/DataList/components/DataListItems/index.cjs +0 -2
  61. package/dist/DataList/components/DataListItems/index.mjs +0 -2
  62. package/dist/DataList/components/DataListLayout/index.cjs +0 -2
  63. package/dist/DataList/components/DataListLayout/index.mjs +0 -2
  64. package/dist/DataList/components/DataListLayoutActions/index.cjs +0 -2
  65. package/dist/DataList/components/DataListLayoutActions/index.mjs +0 -2
  66. package/dist/DataList/index.cjs +0 -2
  67. package/dist/DataList/index.mjs +0 -2
  68. package/dist/DatePicker/index.cjs +0 -2
  69. package/dist/DatePicker/index.mjs +0 -2
  70. package/dist/DatePicker-cjs.js +4 -5
  71. package/dist/DatePicker-es.js +1 -2
  72. package/dist/Dialog/index.cjs +2 -2
  73. package/dist/Dialog/index.mjs +2 -2
  74. package/dist/DrawerDescription-cjs.js +268 -99
  75. package/dist/DrawerDescription-es.js +270 -103
  76. package/dist/DrawerTitle-cjs.js +2 -6
  77. package/dist/DrawerTitle-es.js +3 -7
  78. package/dist/FieldDescription-cjs.js +184 -181
  79. package/dist/FieldDescription-es.js +187 -184
  80. package/dist/FilterPicker/components/FilterPickerActivator/index.cjs +0 -2
  81. package/dist/FilterPicker/components/FilterPickerActivator/index.mjs +0 -2
  82. package/dist/FilterPicker/components/FilterPickerContent/index.cjs +0 -2
  83. package/dist/FilterPicker/components/FilterPickerContent/index.mjs +0 -2
  84. package/dist/FilterPicker/components/FilterPickerTrigger/index.cjs +0 -2
  85. package/dist/FilterPicker/components/FilterPickerTrigger/index.mjs +0 -2
  86. package/dist/FilterPicker/index.cjs +0 -2
  87. package/dist/FilterPicker/index.mjs +0 -2
  88. package/dist/FilterPickerContent-cjs.js +4 -5
  89. package/dist/FilterPickerContent-es.js +1 -2
  90. package/dist/FormatFile/index.cjs +0 -2
  91. package/dist/FormatFile/index.mjs +0 -2
  92. package/dist/Gallery/index.cjs +0 -2
  93. package/dist/Gallery/index.mjs +0 -2
  94. package/dist/InputDate/index.cjs +0 -2
  95. package/dist/InputDate/index.mjs +0 -2
  96. package/dist/InputNumber/index.cjs +2 -2
  97. package/dist/InputNumber/index.mjs +2 -2
  98. package/dist/InputNumber/types.d.ts +5 -0
  99. package/dist/InputNumber-cjs.js +2 -2
  100. package/dist/InputNumber-es.js +2 -2
  101. package/dist/LightBox/index.cjs +0 -2
  102. package/dist/LightBox/index.mjs +0 -2
  103. package/dist/Menu/index.cjs +2 -2
  104. package/dist/Menu/index.mjs +2 -2
  105. package/dist/Menu-cjs.js +4 -5
  106. package/dist/Menu-es.js +1 -2
  107. package/dist/MenuSubmenuTrigger-cjs.js +206 -164
  108. package/dist/MenuSubmenuTrigger-es.js +194 -152
  109. package/dist/Modal/index.cjs +0 -2
  110. package/dist/Modal/index.mjs +1 -3
  111. package/dist/NumberFieldInput-cjs.js +187 -308
  112. package/dist/NumberFieldInput-es.js +187 -308
  113. package/dist/Page/index.cjs +2 -2
  114. package/dist/Page/index.mjs +2 -2
  115. package/dist/Popover/index.cjs +0 -2
  116. package/dist/Popover/index.mjs +0 -2
  117. package/dist/Popover-cjs.js +7 -8
  118. package/dist/Popover-es.js +1 -2
  119. package/dist/ScrollAreaViewport-cjs.js +747 -1093
  120. package/dist/ScrollAreaViewport-es.js +734 -1081
  121. package/dist/Select/index.cjs +2 -2
  122. package/dist/Select/index.mjs +2 -2
  123. package/dist/SelectGroupLabel-cjs.js +207 -306
  124. package/dist/SelectGroupLabel-es.js +203 -302
  125. package/dist/SelectPrimitive-cjs.js +11 -17
  126. package/dist/SelectPrimitive-es.js +1 -7
  127. package/dist/Tooltip/index.cjs +0 -2
  128. package/dist/Tooltip/index.mjs +0 -2
  129. package/dist/Tooltip-cjs.js +6 -7
  130. package/dist/Tooltip-es.js +1 -2
  131. package/dist/buttonRenderAdapter-cjs.js +2 -1
  132. package/dist/buttonRenderAdapter-es.js +2 -1
  133. package/dist/dialogReturnFocus-cjs.js +1 -1
  134. package/dist/dialogReturnFocus-es.js +2 -2
  135. package/dist/docs/InputNumber/InputNumber.md +2 -2
  136. package/dist/docs/SelectPrimitive/SelectPrimitive.md +1 -1
  137. package/dist/floating-ui.react-cjs.js +2557 -185
  138. package/dist/floating-ui.react-es.js +2512 -149
  139. package/dist/getMappedBreakpointWidth-cjs.js +21 -0
  140. package/dist/getMappedBreakpointWidth-es.js +18 -0
  141. package/dist/index.cjs +15 -10
  142. package/dist/index.d.mts +1 -0
  143. package/dist/index.d.ts +1 -0
  144. package/dist/index.mjs +14 -10
  145. package/dist/mergeClassName-cjs.js +12 -0
  146. package/dist/mergeClassName-es.js +10 -0
  147. package/dist/primitives/BottomSheet/index.cjs +1 -1
  148. package/dist/primitives/BottomSheet/index.mjs +1 -1
  149. package/dist/primitives/ComboboxPrimitive/ComboboxPrimitive.d.ts +2 -2
  150. package/dist/primitives/ComboboxPrimitive/index.cjs +4 -5
  151. package/dist/primitives/ComboboxPrimitive/index.mjs +4 -5
  152. package/dist/primitives/SelectPrimitive/index.cjs +1 -2
  153. package/dist/primitives/SelectPrimitive/index.mjs +1 -2
  154. package/dist/primitives/index.cjs +3 -3
  155. package/dist/primitives/index.mjs +3 -3
  156. package/dist/scrollEdges-cjs.js +1 -11
  157. package/dist/scrollEdges-es.js +1 -11
  158. package/dist/scrollable-cjs.js +58 -0
  159. package/dist/scrollable-es.js +54 -0
  160. package/dist/styles.css +759 -42
  161. package/dist/unstyledPrimitives/index.cjs +720 -478
  162. package/dist/unstyledPrimitives/index.mjs +663 -421
  163. package/dist/useCompositeListItem-cjs.js +2108 -361
  164. package/dist/useCompositeListItem-es.js +2076 -331
  165. package/dist/useLabel-cjs.js +2 -3
  166. package/dist/useLabel-es.js +2 -3
  167. package/dist/useRenderElement-cjs.js +9 -7
  168. package/dist/useRenderElement-es.js +9 -7
  169. package/dist/useScrollLock-cjs.js +819 -344
  170. package/dist/useScrollLock-es.js +732 -296
  171. package/dist/useScrollToActive-cjs.js +4 -5
  172. package/dist/useScrollToActive-es.js +1 -2
  173. package/dist/utils/meta/meta.json +43 -1
  174. package/package.json +8 -3
  175. package/dist/floating-ui.react-dom-cjs.js +0 -2103
  176. package/dist/floating-ui.react-dom-es.js +0 -2072
  177. package/dist/floating-ui.utils-cjs.js +0 -342
  178. package/dist/floating-ui.utils-es.js +0 -300
@@ -3,19 +3,13 @@
3
3
  var tslib_es6 = require('./tslib.es6-cjs.js');
4
4
  var React = require('react');
5
5
  var classnames = require('classnames');
6
+ var mergeClassName = require('./mergeClassName-cjs.js');
6
7
  var Icon = require('./Icon-cjs.js');
7
8
  var OverlaySeparator = require('./OverlaySeparator-cjs.js');
8
9
  var SelectGroupLabel = require('./SelectGroupLabel-cjs.js');
9
10
 
10
11
  var styles = {"trigger":"WQiJQH4jadQ-","value":"P2HhjOjxY34-","iconWrapper":"cxgFUCKcXcw-","iconRotate":"_3BEK4Z1gGis-","positioner":"g221yZJtRrU-","popup":"vifRnCQ18ss-","list":"WsOmdkQ0SWU-","item":"wQ2wXu1YH-k-","itemText":"_--Vi-17OUiU-","itemIndicator":"CfjooR3I8Jc-","separator":"lI5-MyBERFY-","group":"_21z9KBWR06w-","groupLabel":"ZhtKkgZiSQI-","spinning":"sIXiKKpdSj8-"};
11
12
 
12
- function mergeClassName(baseClassName, className) {
13
- if (typeof className === "function") {
14
- return (state) => classnames(baseClassName, className(state));
15
- }
16
- return classnames(baseClassName, className);
17
- }
18
-
19
13
  /**
20
14
  * The offset (px) between the trigger bottom edge and the popup top edge,
21
15
  * matching the Menu dropdown spacing.
@@ -35,14 +29,14 @@ function SelectPrimitiveFieldTrigger(_a) {
35
29
  }
36
30
  function SelectPrimitiveTrigger(_a) {
37
31
  var { className, children } = _a, props = tslib_es6.__rest(_a, ["className", "children"]);
38
- return (React.createElement(SelectGroupLabel.SelectTrigger, Object.assign({ className: mergeClassName(styles.trigger, className) }, props),
32
+ return (React.createElement(SelectGroupLabel.SelectTrigger, Object.assign({ className: mergeClassName.mergeClassName(styles.trigger, className) }, props),
39
33
  children,
40
34
  React.createElement(TriggerChevron, null)));
41
35
  }
42
36
  // ─── Value ───────────────────────────────────────────────────────────────────
43
37
  function SelectPrimitiveValue(_a) {
44
38
  var { className } = _a, props = tslib_es6.__rest(_a, ["className"]);
45
- return (React.createElement(SelectGroupLabel.SelectValue, Object.assign({ className: mergeClassName(styles.value, className) }, props)));
39
+ return (React.createElement(SelectGroupLabel.SelectValue, Object.assign({ className: mergeClassName.mergeClassName(styles.value, className) }, props)));
46
40
  }
47
41
  function SelectPrimitiveValueText(_a) {
48
42
  var { className } = _a, props = tslib_es6.__rest(_a, ["className"]);
@@ -51,42 +45,42 @@ function SelectPrimitiveValueText(_a) {
51
45
  // ─── Positioner ───────────────────────────────────────────────────────────────
52
46
  function SelectPrimitivePositioner(_a) {
53
47
  var { className, sideOffset = SELECT_OFFSET, alignItemWithTrigger = false } = _a, props = tslib_es6.__rest(_a, ["className", "sideOffset", "alignItemWithTrigger"]);
54
- return (React.createElement(SelectGroupLabel.SelectPositioner, Object.assign({ className: mergeClassName(styles.positioner, className), sideOffset: sideOffset, alignItemWithTrigger: alignItemWithTrigger }, props)));
48
+ return (React.createElement(SelectGroupLabel.SelectPositioner, Object.assign({ className: mergeClassName.mergeClassName(styles.positioner, className), sideOffset: sideOffset, alignItemWithTrigger: alignItemWithTrigger }, props)));
55
49
  }
56
50
  // ─── Popup ────────────────────────────────────────────────────────────────────
57
51
  function SelectPrimitivePopup(_a) {
58
52
  var { className } = _a, props = tslib_es6.__rest(_a, ["className"]);
59
- return (React.createElement(SelectGroupLabel.SelectPopup, Object.assign({ className: mergeClassName(styles.popup, className), "data-elevation": "elevated" }, props)));
53
+ return (React.createElement(SelectGroupLabel.SelectPopup, Object.assign({ className: mergeClassName.mergeClassName(styles.popup, className), "data-elevation": "elevated" }, props)));
60
54
  }
61
55
  // ─── List ─────────────────────────────────────────────────────────────────────
62
56
  function SelectPrimitiveList(_a) {
63
57
  var { className } = _a, props = tslib_es6.__rest(_a, ["className"]);
64
- return (React.createElement(SelectGroupLabel.SelectList, Object.assign({ className: mergeClassName(styles.list, className) }, props)));
58
+ return (React.createElement(SelectGroupLabel.SelectList, Object.assign({ className: mergeClassName.mergeClassName(styles.list, className) }, props)));
65
59
  }
66
60
  // ─── Item ─────────────────────────────────────────────────────────────────────
67
61
  function SelectPrimitiveItem(_a) {
68
62
  var { className } = _a, props = tslib_es6.__rest(_a, ["className"]);
69
- return (React.createElement(SelectGroupLabel.SelectItem, Object.assign({ className: mergeClassName(styles.item, className) }, props)));
63
+ return (React.createElement(SelectGroupLabel.SelectItem, Object.assign({ className: mergeClassName.mergeClassName(styles.item, className) }, props)));
70
64
  }
71
65
  // ─── ItemText ─────────────────────────────────────────────────────────────────
72
66
  function SelectPrimitiveItemText(_a) {
73
67
  var { className } = _a, props = tslib_es6.__rest(_a, ["className"]);
74
- return (React.createElement(SelectGroupLabel.SelectItemText, Object.assign({ className: mergeClassName(styles.itemText, className) }, props)));
68
+ return (React.createElement(SelectGroupLabel.SelectItemText, Object.assign({ className: mergeClassName.mergeClassName(styles.itemText, className) }, props)));
75
69
  }
76
70
  // ─── ItemIndicator ────────────────────────────────────────────────────────────
77
71
  function SelectPrimitiveItemIndicator(_a) {
78
72
  var { className, children } = _a, props = tslib_es6.__rest(_a, ["className", "children"]);
79
- return (React.createElement(SelectGroupLabel.SelectItemIndicator, Object.assign({ keepMounted: true, className: mergeClassName(styles.itemIndicator, className) }, props), children !== null && children !== void 0 ? children : React.createElement(Icon.Icon, { color: "icon", name: "checkmark" })));
73
+ return (React.createElement(SelectGroupLabel.SelectItemIndicator, Object.assign({ keepMounted: true, className: mergeClassName.mergeClassName(styles.itemIndicator, className) }, props), children !== null && children !== void 0 ? children : React.createElement(Icon.Icon, { color: "icon", name: "checkmark" })));
80
74
  }
81
75
  // ─── Group ────────────────────────────────────────────────────────────────────
82
76
  function SelectPrimitiveGroup(_a) {
83
77
  var { className } = _a, props = tslib_es6.__rest(_a, ["className"]);
84
- return (React.createElement(SelectGroupLabel.SelectGroup, Object.assign({ className: mergeClassName(styles.group, className) }, props)));
78
+ return (React.createElement(SelectGroupLabel.SelectGroup, Object.assign({ className: mergeClassName.mergeClassName(styles.group, className) }, props)));
85
79
  }
86
80
  // ─── GroupLabel ───────────────────────────────────────────────────────────────
87
81
  function SelectPrimitiveGroupLabel(_a) {
88
82
  var { className } = _a, props = tslib_es6.__rest(_a, ["className"]);
89
- return (React.createElement(SelectGroupLabel.SelectGroupLabel, Object.assign({ className: mergeClassName(styles.groupLabel, className) }, props)));
83
+ return (React.createElement(SelectGroupLabel.SelectGroupLabel, Object.assign({ className: mergeClassName.mergeClassName(styles.groupLabel, className) }, props)));
90
84
  }
91
85
  // ─── Separator ────────────────────────────────────────────────────────────────
92
86
  function SelectPrimitiveSeparator(_a) {
@@ -1,19 +1,13 @@
1
1
  import { _ as __rest } from './tslib.es6-es.js';
2
2
  import React__default from 'react';
3
3
  import classnames from 'classnames';
4
+ import { m as mergeClassName } from './mergeClassName-es.js';
4
5
  import { I as Icon } from './Icon-es.js';
5
6
  import { O as OverlaySeparator } from './OverlaySeparator-es.js';
6
7
  import { S as SelectRoot, a as SelectPortal, b as SelectTrigger, c as SelectValue, d as SelectPositioner, e as SelectPopup, f as SelectList, g as SelectItem, h as SelectItemText, i as SelectItemIndicator, j as SelectGroup, k as SelectGroupLabel } from './SelectGroupLabel-es.js';
7
8
 
8
9
  var styles = {"trigger":"WQiJQH4jadQ-","value":"P2HhjOjxY34-","iconWrapper":"cxgFUCKcXcw-","iconRotate":"_3BEK4Z1gGis-","positioner":"g221yZJtRrU-","popup":"vifRnCQ18ss-","list":"WsOmdkQ0SWU-","item":"wQ2wXu1YH-k-","itemText":"_--Vi-17OUiU-","itemIndicator":"CfjooR3I8Jc-","separator":"lI5-MyBERFY-","group":"_21z9KBWR06w-","groupLabel":"ZhtKkgZiSQI-","spinning":"sIXiKKpdSj8-"};
9
10
 
10
- function mergeClassName(baseClassName, className) {
11
- if (typeof className === "function") {
12
- return (state) => classnames(baseClassName, className(state));
13
- }
14
- return classnames(baseClassName, className);
15
- }
16
-
17
11
  /**
18
12
  * The offset (px) between the trigger bottom edge and the popup top edge,
19
13
  * matching the Menu dropdown spacing.
@@ -4,10 +4,8 @@ var Tooltip = require('../Tooltip-cjs.js');
4
4
  require('react');
5
5
  require('classnames');
6
6
  require('../floating-ui.react-cjs.js');
7
- require('../floating-ui.utils-cjs.js');
8
7
  require('react/jsx-runtime');
9
8
  require('react-dom');
10
- require('../floating-ui.react-dom-cjs.js');
11
9
  require('framer-motion');
12
10
  require('@jobber/hooks');
13
11
 
@@ -2,9 +2,7 @@ export { T as Tooltip } from '../Tooltip-es.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '../floating-ui.react-es.js';
5
- import '../floating-ui.utils-es.js';
6
5
  import 'react/jsx-runtime';
7
6
  import 'react-dom';
8
- import '../floating-ui.react-dom-es.js';
9
7
  import 'framer-motion';
10
8
  import '@jobber/hooks';
@@ -5,7 +5,6 @@ var classnames = require('classnames');
5
5
  var floatingUi_react = require('./floating-ui.react-cjs.js');
6
6
  var framerMotion = require('framer-motion');
7
7
  var jobberHooks = require('@jobber/hooks');
8
- var floatingUi_reactDom = require('./floating-ui.react-dom-cjs.js');
9
8
 
10
9
  var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-","spinning":"bobYmlUMnuY-"};
11
10
 
@@ -20,23 +19,23 @@ function useTooltipPositioning({ preferredPlacement, }) {
20
19
  placement: preferredPlacement,
21
20
  strategy: "absolute",
22
21
  middleware: [
23
- floatingUi_reactDom.shift({
22
+ floatingUi_react.shift({
24
23
  mainAxis: true,
25
24
  crossAxis: false,
26
25
  padding: TOOLTIP_SHIFT_PADDING,
27
- limiter: floatingUi_reactDom.limitShift(),
26
+ limiter: floatingUi_react.limitShift(),
28
27
  }),
29
- floatingUi_reactDom.flip({ fallbackPlacements: ["top", "bottom", "left", "right"] }),
30
- floatingUi_reactDom.arrow({
28
+ floatingUi_react.flip({ fallbackPlacements: ["top", "bottom", "left", "right"] }),
29
+ floatingUi_react.arrow({
31
30
  element: arrowElement || null,
32
31
  padding: TOOLTIP_ARROW_PADDING,
33
32
  }),
34
- floatingUi_reactDom.hide(),
33
+ floatingUi_react.hide(),
35
34
  ],
36
35
  elements: {
37
36
  reference: referenceElement || null,
38
37
  },
39
- whileElementsMounted: floatingUi_reactDom.autoUpdate,
38
+ whileElementsMounted: floatingUi_react.autoUpdate,
40
39
  });
41
40
  const isHidden = (_c = (_b = middlewareData.hide) === null || _b === void 0 ? void 0 : _b.referenceHidden) !== null && _c !== void 0 ? _c : false;
42
41
  return {
@@ -1,9 +1,8 @@
1
1
  import React__default, { useRef, useState } from 'react';
2
2
  import classnames from 'classnames';
3
- import { u as useFloating, F as FloatingPortal } from './floating-ui.react-es.js';
3
+ import { u as useFloating, s as shift, f as flip, a as arrow, h as hide, b as autoUpdate, l as limitShift, F as FloatingPortal } from './floating-ui.react-es.js';
4
4
  import { motion } from 'framer-motion';
5
5
  import { useSafeLayoutEffect, useIsMounted } from '@jobber/hooks';
6
- import { s as shift, f as flip, a as arrow, h as hide, b as autoUpdate, l as limitShift } from './floating-ui.react-dom-es.js';
7
6
 
8
7
  var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-","spinning":"bobYmlUMnuY-"};
9
8
 
@@ -34,7 +34,8 @@ function isAtlantisButtonRenderTarget(element) {
34
34
  }
35
35
  function renderAtlantisButtonTarget(element) {
36
36
  return function renderButtonTarget(props) {
37
- const mergedProps = useRenderElement.mergeProps(normalizeBaseUiButtonProps(props), element.props);
37
+ const _a = normalizeBaseUiButtonProps(props), buttonProps = tslib_es6.__rest(_a, ["children"]);
38
+ const mergedProps = useRenderElement.mergeProps(buttonProps, element.props);
38
39
  return (React.createElement(Button.Button, Object.assign({}, mergedProps, { ref: mergeRefs(props.ref, getElementRef(element)), key: element.key })));
39
40
  };
40
41
  }
@@ -32,7 +32,8 @@ function isAtlantisButtonRenderTarget(element) {
32
32
  }
33
33
  function renderAtlantisButtonTarget(element) {
34
34
  return function renderButtonTarget(props) {
35
- const mergedProps = mergeProps(normalizeBaseUiButtonProps(props), element.props);
35
+ const _a = normalizeBaseUiButtonProps(props), buttonProps = __rest(_a, ["children"]);
36
+ const mergedProps = mergeProps(buttonProps, element.props);
36
37
  return (React__default.createElement(Button, Object.assign({}, mergedProps, { ref: mergeRefs(props.ref, getElementRef(element)), key: element.key })));
37
38
  };
38
39
  }
@@ -237,7 +237,7 @@ DialogBottomSheet.Footer = SharedDialogFooter;
237
237
  DialogBottomSheet.ScrollArea = DialogBottomSheetScrollArea;
238
238
 
239
239
  function DialogModal(props) {
240
- return React.createElement(ScrollAreaViewport.DialogRoot, Object.assign({}, props));
240
+ return React.createElement(DrawerDescription.DialogRoot, Object.assign({}, props));
241
241
  }
242
242
  function DialogModalTrigger(_a) {
243
243
  var { children, render, handle, payload, className, style } = _a, rest = tslib_es6.__rest(_a, ["children", "render", "handle", "payload", "className", "style"]);
@@ -4,7 +4,7 @@ import { useIsSmallScreen } from '@jobber/hooks';
4
4
  import classnames from 'classnames';
5
5
  import { n as normalizeBaseUiButtonProps, i as isAtlantisButtonRenderTarget, s as stripNativeTypeFromButtonRenderTarget, r as renderAtlantisButtonTarget } from './buttonRenderAdapter-es.js';
6
6
  import { B as Button } from './Button-es.js';
7
- import { S as ScrollAreaRoot, f as ScrollAreaViewport, g as DrawerContent, h as DialogRoot, i as DialogTrigger$1, j as DialogPortal, k as DialogViewport } from './ScrollAreaViewport-es.js';
7
+ import { S as ScrollAreaRoot, f as ScrollAreaViewport, g as DrawerContent, h as DialogTrigger$1, i as DialogPortal, j as DialogViewport } from './ScrollAreaViewport-es.js';
8
8
  import { m as mergeProps } from './useRenderElement-es.js';
9
9
  import './OverlaySeparator-es.js';
10
10
  import { a as BottomSheet, B as BottomSheetScrollAreaContext } from './BottomSheet-es.js';
@@ -12,7 +12,7 @@ import './HelperText-es.js';
12
12
  import './SelectPrimitive-es.js';
13
13
  import { H as Heading } from './Heading-es.js';
14
14
  import { D as DrawerTitle, a as DrawerClose, b as DialogTitle$1, c as DialogClose$1 } from './DrawerTitle-es.js';
15
- import { D as DrawerDescription, a as DialogBackdrop, b as DialogPopup, c as DialogDescription, d as createDialogHandle } from './DrawerDescription-es.js';
15
+ import { D as DrawerDescription, a as DialogRoot, b as DialogBackdrop, c as DialogPopup, d as DialogDescription, e as createDialogHandle } from './DrawerDescription-es.js';
16
16
  import { i as isEscapeHandledByModal } from './nestedEscape-es.js';
17
17
 
18
18
  var styles = {"small":"uYYyCR3l6E8-","base":"X1jGz-sLWf4-","large":"_4zFf2PkFhaA-","fullScreen":"nJoCr8oWJ7w-","header":"XFKiCQ8QbQU-","close":"FDOhnO0TT08-","scrollRegion":"_8DjYA23vHXA-","scrollViewport":"Bwr9IUYpLfM-","body":"zp9kx9uue2I-","fullBleed":"EhtwBTy1ai4-","footer":"DRIJhI1knKw-","sheetSurface":"vmcZRwOcNMo-","popup":"mFX7qDCd17I-","backdrop":"NE-BIsVE-hE-","viewport":"hp70o-3Cf-w-","spinning":"Zf-Z8DJcC-Y-"};
@@ -426,7 +426,7 @@ always a plain number. Two things to know:
426
426
  | `format` | `NumberFormatOptions` | No | — | Number formatting for the displayed value, forwarded to Base UI `NumberField`'s native `format`. When omitted, typed ... |
427
427
  | `id` | `string` | No | — | |
428
428
  | `inline` | `boolean` | No | — | Shrink-wrap the field to its content (auto width). |
429
- | `inputMode` | `"decimal" | "numeric"` | No | — | |
429
+ | `inputMode` | `"decimal" | "numeric"` | No | — | Virtual keyboard hint for mobile. When omitted, Base UI picks the keyboard: `"numeric"` on most platforms, `"decimal"... |
430
430
  | `invalid` | `boolean` | No | — | Style the error border without showing an error message. |
431
431
  | `label` | `string` | No | — | Floating field label. |
432
432
  | `loading` | `boolean` | No | — | Shows a non-blocking loading indicator in the stepper's slot. The field stays editable (use `readOnly`/`disabled` to ... |
@@ -557,7 +557,7 @@ always a plain number. Two things to know:
557
557
  | `format` | `NumberFormatOptions` | No | — | Number formatting for the displayed value, forwarded to Base UI `NumberField`'s native `format`. When omitted, typed ... |
558
558
  | `id` | `string` | No | — | |
559
559
  | `inline` | `boolean` | No | — | Shrink-wrap the field to its content (auto width). |
560
- | `inputMode` | `"decimal" | "numeric"` | No | — | |
560
+ | `inputMode` | `"decimal" | "numeric"` | No | — | Virtual keyboard hint for mobile. When omitted, Base UI picks the keyboard: `"numeric"` on most platforms, `"decimal"... |
561
561
  | `invalid` | `boolean` | No | — | Style the error border without showing an error message. |
562
562
  | `loading` | `boolean` | No | — | Shows a non-blocking loading indicator in the stepper's slot. The field stays editable (use `readOnly`/`disabled` to ... |
563
563
  | `max` | `number` | No | — | |
@@ -212,7 +212,7 @@ Base UI.
212
212
  | `id` | `string` | No | — | The id of the Select. |
213
213
  | `inputRef` | `Ref<HTMLInputElement>` | No | — | A ref to access the hidden input element. |
214
214
  | `isItemEqualToValue` | `(itemValue: Value, value: Value) => boolean` | No | — | Custom comparison logic used to determine if a select item value matches the current selected value. Useful when item... |
215
- | `items` | `Record<string, ReactNode> | readonly { label: ReactNode; value: any; }[] | readonly Group<any>[]` | No | — | Data structure of the items rendered in the select popup. When specified, `<Select.Value>` renders the label of the s... |
215
+ | `items` | `readonly Group<any>[] | Record<string, ReactNode> | readonly { label: ReactNode; value: any; }[]` | No | — | Data structure of the items rendered in the select popup. When specified, `<Select.Value>` renders the label of the s... |
216
216
  | `itemToStringLabel` | `(itemValue: Value) => string` | No | — | When the item values are objects (`<Select.Item value={object}>`), this function converts the object value to a strin... |
217
217
  | `itemToStringValue` | `(itemValue: Value) => string` | No | — | When the item values are objects (`<Select.Item value={object}>`), this function converts the object value to a strin... |
218
218
  | `modal` | `boolean` | No | `true` | Determines if the select enters a modal state when open. - `true`: user interaction is limited to the select: documen... |