@jobber/components 9.16.2 → 9.16.4

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 (227) hide show
  1. package/dist/ActivityIndicator-cjs.js +1 -1
  2. package/dist/ActivityIndicator-es.js +1 -1
  3. package/dist/AtlantisPortalContent-es.js +1 -1
  4. package/dist/AtlantisThemeContext/index.mjs +1 -1
  5. package/dist/AtlantisThemeContext-cjs.js +1 -1
  6. package/dist/AtlantisThemeContext-es.js +10 -10
  7. package/dist/Autocomplete-cjs.js +2 -2
  8. package/dist/Autocomplete-es.js +5 -5
  9. package/dist/Body-cjs.js +1 -1
  10. package/dist/Body-es.js +2 -2
  11. package/dist/BottomSheet-cjs.js +1 -1
  12. package/dist/BottomSheet-es.js +3 -3
  13. package/dist/Box-cjs.js +2 -2
  14. package/dist/Box-es.js +2 -2
  15. package/dist/Button/index.mjs +1 -1
  16. package/dist/Button-es.js +1 -1
  17. package/dist/Card-cjs.js +1 -1
  18. package/dist/Card-es.js +1 -1
  19. package/dist/Checkbox-cjs.js +1 -1
  20. package/dist/Checkbox-es.js +1 -1
  21. package/dist/Chip/index.mjs +1 -1
  22. package/dist/Chip-cjs.js +2 -2
  23. package/dist/Chip-es.js +2 -2
  24. package/dist/ChipDismissible-es.js +1 -1
  25. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +1 -1
  26. package/dist/Combobox-cjs.js +3 -3
  27. package/dist/Combobox-es.js +6 -6
  28. package/dist/ComboboxPrimitive-cjs.js +1 -1
  29. package/dist/ComboboxPrimitive-es.js +3 -3
  30. package/dist/ComboboxSeparator-es.js +4 -4
  31. package/dist/Container-cjs.js +1 -1
  32. package/dist/Container-es.js +1 -1
  33. package/dist/Content-cjs.js +1 -1
  34. package/dist/Content-es.js +1 -1
  35. package/dist/ContentBlock-cjs.js +1 -1
  36. package/dist/ContentBlock-es.js +1 -1
  37. package/dist/Cover-cjs.js +1 -1
  38. package/dist/Cover-es.js +1 -1
  39. package/dist/DataList-es.js +3 -3
  40. package/dist/DataList.const-cjs.js +0 -1
  41. package/dist/DataList.const-es.js +1 -2
  42. package/dist/DataList.module-cjs.js +1 -1
  43. package/dist/DataList.module-es.js +1 -1
  44. package/dist/DataList.utils-es.js +6 -6
  45. package/dist/DataListAction-cjs.js +1 -1
  46. package/dist/DataListAction-es.js +1 -1
  47. package/dist/DataListActionsMenu-cjs.js +1 -1
  48. package/dist/DataListActionsMenu-es.js +2 -2
  49. package/dist/DataListBulkActions-cjs.js +1 -1
  50. package/dist/DataListBulkActions-es.js +1 -1
  51. package/dist/DataListEmptyState-cjs.js +1 -1
  52. package/dist/DataListEmptyState-es.js +1 -1
  53. package/dist/DataListHeaderTile-cjs.js +2 -2
  54. package/dist/DataListHeaderTile-es.js +2 -2
  55. package/dist/DataListItemActions-cjs.js +1 -1
  56. package/dist/DataListItemActions-es.js +2 -2
  57. package/dist/DataListLayoutActions-cjs.js +1 -1
  58. package/dist/DataListLayoutActions-es.js +2 -2
  59. package/dist/DataListLoadMore-cjs.js +1 -1
  60. package/dist/DataListLoadMore-es.js +1 -1
  61. package/dist/DataListLoadingState-cjs.js +1 -1
  62. package/dist/DataListLoadingState-es.js +2 -2
  63. package/dist/DataListOverflowFade-cjs.js +1 -1
  64. package/dist/DataListOverflowFade-es.js +1 -1
  65. package/dist/DataListSearch-cjs.js +1 -1
  66. package/dist/DataListSearch-es.js +1 -1
  67. package/dist/DataListSortingOptions-cjs.js +1 -1
  68. package/dist/DataListSortingOptions-es.js +1 -1
  69. package/dist/DataListStickyHeader-cjs.js +1 -1
  70. package/dist/DataListStickyHeader-es.js +1 -1
  71. package/dist/DataListTags-cjs.js +1 -1
  72. package/dist/DataListTags-es.js +1 -1
  73. package/dist/DataListTotalCount-cjs.js +1 -1
  74. package/dist/DataListTotalCount-es.js +2 -2
  75. package/dist/DataTable/index.mjs +1 -1
  76. package/dist/DataTable-cjs.js +3 -3
  77. package/dist/DataTable-es.js +5 -5
  78. package/dist/DataTableTable-cjs.js +2 -2
  79. package/dist/DataTableTable-es.js +3 -3
  80. package/dist/DatePicker-cjs.js +47 -20
  81. package/dist/DatePicker-es.js +58 -31
  82. package/dist/Disclosure-cjs.js +1 -1
  83. package/dist/Disclosure-es.js +1 -1
  84. package/dist/Divider-cjs.js +1 -1
  85. package/dist/Divider-es.js +1 -1
  86. package/dist/DrawerGrid-cjs.js +2 -2
  87. package/dist/DrawerGrid-es.js +2 -2
  88. package/dist/FeatureSwitch-cjs.js +1 -1
  89. package/dist/FeatureSwitch-es.js +1 -1
  90. package/dist/FieldDescription-es.js +2 -2
  91. package/dist/FilterPicker-cjs.js +1 -1
  92. package/dist/FilterPicker-es.js +1 -1
  93. package/dist/FilterPickerAction-cjs.js +1 -1
  94. package/dist/FilterPickerAction-es.js +1 -1
  95. package/dist/FilterPickerContent-cjs.js +1 -1
  96. package/dist/FilterPickerContent-es.js +2 -2
  97. package/dist/FilterPickerContentHeader-cjs.js +1 -1
  98. package/dist/FilterPickerContentHeader-es.js +1 -1
  99. package/dist/FilterPickerContentList-es.js +2 -2
  100. package/dist/FilterPickerContentSearch-cjs.js +1 -1
  101. package/dist/FilterPickerContentSearch-es.js +1 -1
  102. package/dist/FilterPickerLoadMore-cjs.js +1 -1
  103. package/dist/FilterPickerLoadMore-es.js +1 -1
  104. package/dist/FilterPickerOption-cjs.js +1 -1
  105. package/dist/FilterPickerOption-es.js +1 -1
  106. package/dist/FormField/index.mjs +1 -1
  107. package/dist/FormFieldWrapper-cjs.js +1 -1
  108. package/dist/FormFieldWrapper-es.js +2 -2
  109. package/dist/FormatFile-cjs.js +1 -6
  110. package/dist/FormatFile-es.js +1 -6
  111. package/dist/Frame-cjs.js +1 -1
  112. package/dist/Frame-es.js +1 -1
  113. package/dist/Glimmer/index.mjs +1 -1
  114. package/dist/Glimmer-cjs.js +1 -1
  115. package/dist/Glimmer-es.js +2 -2
  116. package/dist/Grid-cjs.js +1 -1
  117. package/dist/Grid-es.js +1 -1
  118. package/dist/GridCell-cjs.js +1 -1
  119. package/dist/GridCell-es.js +1 -1
  120. package/dist/HelperText-cjs.js +1 -1
  121. package/dist/HelperText-es.js +1 -1
  122. package/dist/InputAvatar-cjs.js +1 -1
  123. package/dist/InputAvatar-es.js +1 -1
  124. package/dist/InputEmail-es.js +1 -1
  125. package/dist/InputFile-cjs.js +3 -3
  126. package/dist/InputFile-es.js +3 -3
  127. package/dist/InputPhoneNumber-cjs.js +1 -1
  128. package/dist/InputPhoneNumber-es.js +2 -2
  129. package/dist/InputText-es.js +1 -1
  130. package/dist/InputTime-cjs.js +0 -1
  131. package/dist/InputTime-es.js +1 -2
  132. package/dist/InputValidation-cjs.js +1 -1
  133. package/dist/InputValidation-es.js +1 -1
  134. package/dist/InternalChipDismissible-cjs.js +1 -1
  135. package/dist/InternalChipDismissible-es.js +2 -2
  136. package/dist/LegacySelect-cjs.js +1 -1
  137. package/dist/LegacySelect-es.js +2 -2
  138. package/dist/LightBox-cjs.js +1 -1
  139. package/dist/LightBox-es.js +1 -1
  140. package/dist/Link-cjs.js +1 -1
  141. package/dist/Link-es.js +1 -1
  142. package/dist/List-cjs.js +3 -3
  143. package/dist/List-es.js +7 -7
  144. package/dist/Markdown-cjs.js +142 -142
  145. package/dist/Markdown-es.js +148 -148
  146. package/dist/Menu-cjs.js +3 -3
  147. package/dist/Menu-es.js +7 -7
  148. package/dist/MenuSubmenuTrigger-cjs.js +2 -5
  149. package/dist/MenuSubmenuTrigger-es.js +6 -9
  150. package/dist/Modal/index.cjs +2 -2
  151. package/dist/Modal/index.mjs +2 -2
  152. package/dist/MultiSelect-cjs.js +2 -2
  153. package/dist/MultiSelect-es.js +2 -2
  154. package/dist/NumberFieldInput-es.js +1 -1
  155. package/dist/OverlaySeparator-cjs.js +1 -1
  156. package/dist/OverlaySeparator-es.js +1 -1
  157. package/dist/Popover-cjs.js +1 -1
  158. package/dist/Popover-es.js +2 -2
  159. package/dist/ProgressBar-cjs.js +1 -1
  160. package/dist/ProgressBar-es.js +1 -1
  161. package/dist/RadioGroup-cjs.js +1 -1
  162. package/dist/RadioGroup-es.js +1 -1
  163. package/dist/ScrollAreaViewport-es.js +3 -3
  164. package/dist/SegmentedControl-cjs.js +1 -1
  165. package/dist/SegmentedControl-es.js +2 -2
  166. package/dist/Select-es.js +2 -2
  167. package/dist/SelectGroupLabel-cjs.js +1 -4
  168. package/dist/SelectGroupLabel-es.js +6 -9
  169. package/dist/SelectPrimitive-cjs.js +1 -1
  170. package/dist/SelectPrimitive-es.js +2 -2
  171. package/dist/SideDrawer-cjs.js +1 -1
  172. package/dist/SideDrawer-es.js +1 -1
  173. package/dist/Spinner-cjs.js +1 -1
  174. package/dist/Spinner-es.js +1 -1
  175. package/dist/StatusIndicator-cjs.js +1 -1
  176. package/dist/StatusIndicator-es.js +1 -1
  177. package/dist/Switch-cjs.js +1 -1
  178. package/dist/Switch-es.js +1 -1
  179. package/dist/Table/index.mjs +1 -1
  180. package/dist/Tabs/index.mjs +1 -1
  181. package/dist/Tabs-cjs.js +1 -1
  182. package/dist/Tabs-es.js +6 -6
  183. package/dist/Thumbnail-cjs.js +1 -1
  184. package/dist/Thumbnail-es.js +2 -2
  185. package/dist/Tiles-cjs.js +1 -1
  186. package/dist/Tiles-es.js +1 -1
  187. package/dist/Tooltip-cjs.js +1 -1
  188. package/dist/Tooltip-es.js +2 -2
  189. package/dist/Typography-cjs.js +3 -3
  190. package/dist/Typography-es.js +3 -3
  191. package/dist/_baseEach-cjs.js +1 -1
  192. package/dist/_baseEach-es.js +7 -7
  193. package/dist/_baseFlatten-es.js +1 -1
  194. package/dist/_getAllKeys-cjs.js +2 -8
  195. package/dist/_getAllKeys-es.js +4 -10
  196. package/dist/_getTag-es.js +1 -1
  197. package/dist/_isIterateeCall-es.js +3 -3
  198. package/dist/_setToString-es.js +2 -2
  199. package/dist/buttonRenderAdapter-cjs.js +2 -2
  200. package/dist/buttonRenderAdapter-es.js +2 -2
  201. package/dist/debounce-es.js +4 -4
  202. package/dist/dialogReturnFocus-es.js +2 -2
  203. package/dist/docs/Banner/Banner.md +7 -0
  204. package/dist/docs/ProgressIndicator/ProgressIndicator.md +3 -6
  205. package/dist/floating-ui.react-es.js +2 -2
  206. package/dist/identity-es.js +5 -5
  207. package/dist/index.mjs +7 -7
  208. package/dist/isSymbol-es.js +1 -1
  209. package/dist/isTypedArray-cjs.js +4 -4
  210. package/dist/isTypedArray-es.js +6 -6
  211. package/dist/keysIn-cjs.js +2 -2
  212. package/dist/keysIn-es.js +5 -5
  213. package/dist/noop-es.js +4 -4
  214. package/dist/primitives/BottomSheet/index.mjs +1 -1
  215. package/dist/primitives/index.mjs +1 -1
  216. package/dist/scrollable-es.js +1 -1
  217. package/dist/showToast-cjs.js +1 -1
  218. package/dist/showToast-es.js +1 -1
  219. package/dist/styles.css +8 -5
  220. package/dist/unstyledPrimitives/index.cjs +3 -3
  221. package/dist/unstyledPrimitives/index.mjs +9 -9
  222. package/dist/useCompositeListItem-es.js +3 -3
  223. package/dist/useScrollLock-cjs.js +14 -14
  224. package/dist/useScrollLock-es.js +15 -15
  225. package/dist/useScrollToActive-cjs.js +1 -1
  226. package/dist/useScrollToActive-es.js +8 -8
  227. package/package.json +11 -6
@@ -3,7 +3,7 @@ import { T as Text } from './Text-es.js';
3
3
  import { E as Emphasis } from './Emphasis-es.js';
4
4
  import { H as Heading } from './Heading-es.js';
5
5
  import { C as Content } from './Content-es.js';
6
- import { Fragment, jsx, jsxs } from 'react/jsx-runtime';
6
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
7
7
  import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
8
8
 
9
9
  function ok$1() {}
@@ -15110,12 +15110,11 @@ function remarkParse(options) {
15110
15110
  }
15111
15111
 
15112
15112
  /**
15113
- * @typedef {import('hast').Element} Element
15114
- * @typedef {import('mdast').Blockquote} Blockquote
15115
- * @typedef {import('../state.js').State} State
15113
+ * @import {Element} from 'hast'
15114
+ * @import {Blockquote} from 'mdast'
15115
+ * @import {State} from '../state.js'
15116
15116
  */
15117
15117
 
15118
-
15119
15118
  /**
15120
15119
  * Turn an mdast `blockquote` node into hast.
15121
15120
  *
@@ -15139,13 +15138,11 @@ function blockquote(state, node) {
15139
15138
  }
15140
15139
 
15141
15140
  /**
15142
- * @typedef {import('hast').Element} Element
15143
- * @typedef {import('hast').Text} Text
15144
- * @typedef {import('mdast').Break} Break
15145
- * @typedef {import('../state.js').State} State
15141
+ * @import {Element, Text} from 'hast'
15142
+ * @import {Break} from 'mdast'
15143
+ * @import {State} from '../state.js'
15146
15144
  */
15147
15145
 
15148
-
15149
15146
  /**
15150
15147
  * Turn an mdast `break` node into hast.
15151
15148
  *
@@ -15164,13 +15161,11 @@ function hardBreak(state, node) {
15164
15161
  }
15165
15162
 
15166
15163
  /**
15167
- * @typedef {import('hast').Element} Element
15168
- * @typedef {import('hast').Properties} Properties
15169
- * @typedef {import('mdast').Code} Code
15170
- * @typedef {import('../state.js').State} State
15164
+ * @import {Element, Properties} from 'hast'
15165
+ * @import {Code} from 'mdast'
15166
+ * @import {State} from '../state.js'
15171
15167
  */
15172
15168
 
15173
-
15174
15169
  /**
15175
15170
  * Turn an mdast `code` node into hast.
15176
15171
  *
@@ -15185,9 +15180,12 @@ function code(state, node) {
15185
15180
  const value = node.value ? node.value + '\n' : '';
15186
15181
  /** @type {Properties} */
15187
15182
  const properties = {};
15183
+ // Someone can write `js python	ruby`.
15184
+ const language = node.lang ? node.lang.split(/\s+/) : [];
15188
15185
 
15189
- if (node.lang) {
15190
- properties.className = ['language-' + node.lang];
15186
+ // GH/CM still drop the non-first languages.
15187
+ if (language.length > 0) {
15188
+ properties.className = ['language-' + language[0]];
15191
15189
  }
15192
15190
 
15193
15191
  // Create `<code>`.
@@ -15213,12 +15211,11 @@ function code(state, node) {
15213
15211
  }
15214
15212
 
15215
15213
  /**
15216
- * @typedef {import('hast').Element} Element
15217
- * @typedef {import('mdast').Delete} Delete
15218
- * @typedef {import('../state.js').State} State
15214
+ * @import {Element} from 'hast'
15215
+ * @import {Delete} from 'mdast'
15216
+ * @import {State} from '../state.js'
15219
15217
  */
15220
15218
 
15221
-
15222
15219
  /**
15223
15220
  * Turn an mdast `delete` node into hast.
15224
15221
  *
@@ -15242,12 +15239,11 @@ function strikethrough(state, node) {
15242
15239
  }
15243
15240
 
15244
15241
  /**
15245
- * @typedef {import('hast').Element} Element
15246
- * @typedef {import('mdast').Emphasis} Emphasis
15247
- * @typedef {import('../state.js').State} State
15242
+ * @import {Element} from 'hast'
15243
+ * @import {Emphasis} from 'mdast'
15244
+ * @import {State} from '../state.js'
15248
15245
  */
15249
15246
 
15250
-
15251
15247
  /**
15252
15248
  * Turn an mdast `emphasis` node into hast.
15253
15249
  *
@@ -15271,9 +15267,9 @@ function emphasis(state, node) {
15271
15267
  }
15272
15268
 
15273
15269
  /**
15274
- * @typedef {import('hast').Element} Element
15275
- * @typedef {import('mdast').FootnoteReference} FootnoteReference
15276
- * @typedef {import('../state.js').State} State
15270
+ * @import {Element} from 'hast'
15271
+ * @import {FootnoteReference} from 'mdast'
15272
+ * @import {State} from '../state.js'
15277
15273
  */
15278
15274
 
15279
15275
 
@@ -15341,12 +15337,11 @@ function footnoteReference(state, node) {
15341
15337
  }
15342
15338
 
15343
15339
  /**
15344
- * @typedef {import('hast').Element} Element
15345
- * @typedef {import('mdast').Heading} Heading
15346
- * @typedef {import('../state.js').State} State
15340
+ * @import {Element} from 'hast'
15341
+ * @import {Heading} from 'mdast'
15342
+ * @import {State} from '../state.js'
15347
15343
  */
15348
15344
 
15349
-
15350
15345
  /**
15351
15346
  * Turn an mdast `heading` node into hast.
15352
15347
  *
@@ -15370,13 +15365,12 @@ function heading(state, node) {
15370
15365
  }
15371
15366
 
15372
15367
  /**
15373
- * @typedef {import('hast').Element} Element
15374
- * @typedef {import('mdast').Html} Html
15375
- * @typedef {import('../state.js').State} State
15376
- * @typedef {import('../../index.js').Raw} Raw
15368
+ * @import {Element} from 'hast'
15369
+ * @import {Html} from 'mdast'
15370
+ * @import {State} from '../state.js'
15371
+ * @import {Raw} from '../../index.js'
15377
15372
  */
15378
15373
 
15379
-
15380
15374
  /**
15381
15375
  * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
15382
15376
  * nothing).
@@ -15400,15 +15394,11 @@ function html(state, node) {
15400
15394
  }
15401
15395
 
15402
15396
  /**
15403
- * @typedef {import('hast').ElementContent} ElementContent
15404
- *
15405
- * @typedef {import('mdast').Nodes} Nodes
15406
- * @typedef {import('mdast').Reference} Reference
15407
- *
15408
- * @typedef {import('./state.js').State} State
15397
+ * @import {ElementContent} from 'hast'
15398
+ * @import {Reference, Nodes} from 'mdast'
15399
+ * @import {State} from './state.js'
15409
15400
  */
15410
15401
 
15411
-
15412
15402
  /**
15413
15403
  * Return the content of a reference without definition as plain text.
15414
15404
  *
@@ -15454,11 +15444,9 @@ function revert(state, node) {
15454
15444
  }
15455
15445
 
15456
15446
  /**
15457
- * @typedef {import('hast').Element} Element
15458
- * @typedef {import('hast').ElementContent} ElementContent
15459
- * @typedef {import('hast').Properties} Properties
15460
- * @typedef {import('mdast').ImageReference} ImageReference
15461
- * @typedef {import('../state.js').State} State
15447
+ * @import {ElementContent, Element, Properties} from 'hast'
15448
+ * @import {ImageReference} from 'mdast'
15449
+ * @import {State} from '../state.js'
15462
15450
  */
15463
15451
 
15464
15452
 
@@ -15494,10 +15482,9 @@ function imageReference(state, node) {
15494
15482
  }
15495
15483
 
15496
15484
  /**
15497
- * @typedef {import('hast').Element} Element
15498
- * @typedef {import('hast').Properties} Properties
15499
- * @typedef {import('mdast').Image} Image
15500
- * @typedef {import('../state.js').State} State
15485
+ * @import {Element, Properties} from 'hast'
15486
+ * @import {Image} from 'mdast'
15487
+ * @import {State} from '../state.js'
15501
15488
  */
15502
15489
 
15503
15490
 
@@ -15530,13 +15517,11 @@ function image(state, node) {
15530
15517
  }
15531
15518
 
15532
15519
  /**
15533
- * @typedef {import('hast').Element} Element
15534
- * @typedef {import('hast').Text} Text
15535
- * @typedef {import('mdast').InlineCode} InlineCode
15536
- * @typedef {import('../state.js').State} State
15520
+ * @import {Element, Text} from 'hast'
15521
+ * @import {InlineCode} from 'mdast'
15522
+ * @import {State} from '../state.js'
15537
15523
  */
15538
15524
 
15539
-
15540
15525
  /**
15541
15526
  * Turn an mdast `inlineCode` node into hast.
15542
15527
  *
@@ -15564,11 +15549,9 @@ function inlineCode(state, node) {
15564
15549
  }
15565
15550
 
15566
15551
  /**
15567
- * @typedef {import('hast').Element} Element
15568
- * @typedef {import('hast').ElementContent} ElementContent
15569
- * @typedef {import('hast').Properties} Properties
15570
- * @typedef {import('mdast').LinkReference} LinkReference
15571
- * @typedef {import('../state.js').State} State
15552
+ * @import {ElementContent, Element, Properties} from 'hast'
15553
+ * @import {LinkReference} from 'mdast'
15554
+ * @import {State} from '../state.js'
15572
15555
  */
15573
15556
 
15574
15557
 
@@ -15609,10 +15592,9 @@ function linkReference(state, node) {
15609
15592
  }
15610
15593
 
15611
15594
  /**
15612
- * @typedef {import('hast').Element} Element
15613
- * @typedef {import('hast').Properties} Properties
15614
- * @typedef {import('mdast').Link} Link
15615
- * @typedef {import('../state.js').State} State
15595
+ * @import {Element, Properties} from 'hast'
15596
+ * @import {Link} from 'mdast'
15597
+ * @import {State} from '../state.js'
15616
15598
  */
15617
15599
 
15618
15600
 
@@ -15646,15 +15628,11 @@ function link(state, node) {
15646
15628
  }
15647
15629
 
15648
15630
  /**
15649
- * @typedef {import('hast').Element} Element
15650
- * @typedef {import('hast').ElementContent} ElementContent
15651
- * @typedef {import('hast').Properties} Properties
15652
- * @typedef {import('mdast').ListItem} ListItem
15653
- * @typedef {import('mdast').Parents} Parents
15654
- * @typedef {import('../state.js').State} State
15631
+ * @import {ElementContent, Element, Properties} from 'hast'
15632
+ * @import {ListItem, Parents} from 'mdast'
15633
+ * @import {State} from '../state.js'
15655
15634
  */
15656
15635
 
15657
-
15658
15636
  /**
15659
15637
  * Turn an mdast `listItem` node into hast.
15660
15638
  *
@@ -15770,13 +15748,11 @@ function listItemLoose(node) {
15770
15748
  }
15771
15749
 
15772
15750
  /**
15773
- * @typedef {import('hast').Element} Element
15774
- * @typedef {import('hast').Properties} Properties
15775
- * @typedef {import('mdast').List} List
15776
- * @typedef {import('../state.js').State} State
15751
+ * @import {Element, Properties} from 'hast'
15752
+ * @import {List} from 'mdast'
15753
+ * @import {State} from '../state.js'
15777
15754
  */
15778
15755
 
15779
-
15780
15756
  /**
15781
15757
  * Turn an mdast `list` node into hast.
15782
15758
  *
@@ -15825,12 +15801,11 @@ function list(state, node) {
15825
15801
  }
15826
15802
 
15827
15803
  /**
15828
- * @typedef {import('hast').Element} Element
15829
- * @typedef {import('mdast').Paragraph} Paragraph
15830
- * @typedef {import('../state.js').State} State
15804
+ * @import {Element} from 'hast'
15805
+ * @import {Paragraph} from 'mdast'
15806
+ * @import {State} from '../state.js'
15831
15807
  */
15832
15808
 
15833
-
15834
15809
  /**
15835
15810
  * Turn an mdast `paragraph` node into hast.
15836
15811
  *
@@ -15854,13 +15829,11 @@ function paragraph(state, node) {
15854
15829
  }
15855
15830
 
15856
15831
  /**
15857
- * @typedef {import('hast').Parents} HastParents
15858
- * @typedef {import('hast').Root} HastRoot
15859
- * @typedef {import('mdast').Root} MdastRoot
15860
- * @typedef {import('../state.js').State} State
15832
+ * @import {Parents as HastParents, Root as HastRoot} from 'hast'
15833
+ * @import {Root as MdastRoot} from 'mdast'
15834
+ * @import {State} from '../state.js'
15861
15835
  */
15862
15836
 
15863
-
15864
15837
  /**
15865
15838
  * Turn an mdast `root` node into hast.
15866
15839
  *
@@ -15879,12 +15852,11 @@ function root(state, node) {
15879
15852
  }
15880
15853
 
15881
15854
  /**
15882
- * @typedef {import('hast').Element} Element
15883
- * @typedef {import('mdast').Strong} Strong
15884
- * @typedef {import('../state.js').State} State
15855
+ * @import {Element} from 'hast'
15856
+ * @import {Strong} from 'mdast'
15857
+ * @import {State} from '../state.js'
15885
15858
  */
15886
15859
 
15887
-
15888
15860
  /**
15889
15861
  * Turn an mdast `strong` node into hast.
15890
15862
  *
@@ -15908,9 +15880,9 @@ function strong(state, node) {
15908
15880
  }
15909
15881
 
15910
15882
  /**
15911
- * @typedef {import('hast').Element} Element
15912
- * @typedef {import('mdast').Table} Table
15913
- * @typedef {import('../state.js').State} State
15883
+ * @import {Table} from 'mdast'
15884
+ * @import {Element} from 'hast'
15885
+ * @import {State} from '../state.js'
15914
15886
  */
15915
15887
 
15916
15888
 
@@ -15969,15 +15941,11 @@ function table(state, node) {
15969
15941
  }
15970
15942
 
15971
15943
  /**
15972
- * @typedef {import('hast').Element} Element
15973
- * @typedef {import('hast').ElementContent} ElementContent
15974
- * @typedef {import('hast').Properties} Properties
15975
- * @typedef {import('mdast').Parents} Parents
15976
- * @typedef {import('mdast').TableRow} TableRow
15977
- * @typedef {import('../state.js').State} State
15944
+ * @import {Element, ElementContent, Properties} from 'hast'
15945
+ * @import {Parents, TableRow} from 'mdast'
15946
+ * @import {State} from '../state.js'
15978
15947
  */
15979
15948
 
15980
-
15981
15949
  /**
15982
15950
  * Turn an mdast `tableRow` node into hast.
15983
15951
  *
@@ -16037,12 +16005,11 @@ function tableRow(state, node, parent) {
16037
16005
  }
16038
16006
 
16039
16007
  /**
16040
- * @typedef {import('hast').Element} Element
16041
- * @typedef {import('mdast').TableCell} TableCell
16042
- * @typedef {import('../state.js').State} State
16008
+ * @import {Element} from 'hast'
16009
+ * @import {TableCell} from 'mdast'
16010
+ * @import {State} from '../state.js'
16043
16011
  */
16044
16012
 
16045
-
16046
16013
  /**
16047
16014
  * Turn an mdast `tableCell` node into hast.
16048
16015
  *
@@ -16138,10 +16105,9 @@ function trimLine(value, start, end) {
16138
16105
  }
16139
16106
 
16140
16107
  /**
16141
- * @typedef {import('hast').Element} HastElement
16142
- * @typedef {import('hast').Text} HastText
16143
- * @typedef {import('mdast').Text} MdastText
16144
- * @typedef {import('../state.js').State} State
16108
+ * @import {Element as HastElement, Text as HastText} from 'hast'
16109
+ * @import {Text as MdastText} from 'mdast'
16110
+ * @import {State} from '../state.js'
16145
16111
  */
16146
16112
 
16147
16113
 
@@ -16163,12 +16129,11 @@ function text(state, node) {
16163
16129
  }
16164
16130
 
16165
16131
  /**
16166
- * @typedef {import('hast').Element} Element
16167
- * @typedef {import('mdast').ThematicBreak} ThematicBreak
16168
- * @typedef {import('../state.js').State} State
16132
+ * @import {Element} from 'hast'
16133
+ * @import {ThematicBreak} from 'mdast'
16134
+ * @import {State} from '../state.js'
16169
16135
  */
16170
16136
 
16171
-
16172
16137
  /**
16173
16138
  * Turn an mdast `thematicBreak` node into hast.
16174
16139
  *
@@ -16191,10 +16156,15 @@ function thematicBreak(state, node) {
16191
16156
  return state.applyData(node, result)
16192
16157
  }
16193
16158
 
16159
+ /**
16160
+ * @import {Handlers} from '../state.js'
16161
+ */
16162
+
16163
+
16194
16164
  /**
16195
16165
  * Default handlers for nodes.
16196
16166
  *
16197
- * @satisfies {import('../state.js').Handlers}
16167
+ * @satisfies {Handlers}
16198
16168
  */
16199
16169
  const handlers = {
16200
16170
  blockquote,
@@ -16246,6 +16216,19 @@ const BIGINT = 8;
16246
16216
 
16247
16217
  const env = typeof self === 'object' ? self : globalThis;
16248
16218
 
16219
+ const guard = (name, init) => {
16220
+ switch (name) {
16221
+ case 'Function':
16222
+ case 'SharedWorker':
16223
+ case 'Worker':
16224
+ case 'eval':
16225
+ case 'setInterval':
16226
+ case 'setTimeout':
16227
+ throw new TypeError('unable to deserialize ' + name);
16228
+ }
16229
+ return new env[name](init);
16230
+ };
16231
+
16249
16232
  const deserializer = ($, _) => {
16250
16233
  const as = (out, index) => {
16251
16234
  $.set(index, out);
@@ -16293,14 +16276,20 @@ const deserializer = ($, _) => {
16293
16276
  }
16294
16277
  case ERROR: {
16295
16278
  const {name, message} = value;
16296
- return as(new env[name](message), index);
16279
+ return as(guard(name, message), index);
16297
16280
  }
16298
16281
  case BIGINT:
16299
16282
  return as(BigInt(value), index);
16300
16283
  case 'BigInt':
16301
16284
  return as(Object(BigInt(value)), index);
16285
+ case 'ArrayBuffer':
16286
+ return as(new Uint8Array(value).buffer, value);
16287
+ case 'DataView': {
16288
+ const { buffer } = new Uint8Array(value);
16289
+ return as(new DataView(buffer), value);
16290
+ }
16302
16291
  }
16303
- return as(new env[type](value), index);
16292
+ return as(guard(type, value), index);
16304
16293
  };
16305
16294
 
16306
16295
  return unpair;
@@ -16341,6 +16330,8 @@ const typeOf = value => {
16341
16330
  return [MAP, EMPTY];
16342
16331
  case 'Set':
16343
16332
  return [SET, EMPTY];
16333
+ case 'DataView':
16334
+ return [ARRAY, asString];
16344
16335
  }
16345
16336
 
16346
16337
  if (asString.includes('Array'))
@@ -16390,9 +16381,17 @@ const serializer = (strict, json, $, _) => {
16390
16381
  return as([TYPE, entry], value);
16391
16382
  }
16392
16383
  case ARRAY: {
16393
- if (type)
16394
- return as([type, [...value]], value);
16395
-
16384
+ if (type) {
16385
+ let spread = value;
16386
+ if (type === 'DataView') {
16387
+ spread = new Uint8Array(value.buffer);
16388
+ }
16389
+ else if (type === 'ArrayBuffer') {
16390
+ spread = new Uint8Array(value);
16391
+ }
16392
+ return as([type, [...spread]], value);
16393
+ }
16394
+
16396
16395
  const arr = [];
16397
16396
  const index = as([TYPE, arr], value);
16398
16397
  for (const entry of value)
@@ -16493,10 +16492,8 @@ var structuredClone$1 = typeof structuredClone === "function" ?
16493
16492
  (any, options) => deserialize(serialize(any, options));
16494
16493
 
16495
16494
  /**
16496
- * @typedef {import('hast').Element} Element
16497
- * @typedef {import('hast').ElementContent} ElementContent
16498
- *
16499
- * @typedef {import('./state.js').State} State
16495
+ * @import {ElementContent, Element} from 'hast'
16496
+ * @import {State} from './state.js'
16500
16497
  */
16501
16498
 
16502
16499
 
@@ -17144,22 +17141,25 @@ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
17144
17141
  }
17145
17142
 
17146
17143
  /**
17147
- * @typedef {import('hast').Element} HastElement
17148
- * @typedef {import('hast').ElementContent} HastElementContent
17149
- * @typedef {import('hast').Nodes} HastNodes
17150
- * @typedef {import('hast').Properties} HastProperties
17151
- * @typedef {import('hast').RootContent} HastRootContent
17152
- * @typedef {import('hast').Text} HastText
17153
- *
17154
- * @typedef {import('mdast').Definition} MdastDefinition
17155
- * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition
17156
- * @typedef {import('mdast').Nodes} MdastNodes
17157
- * @typedef {import('mdast').Parents} MdastParents
17158
- *
17159
- * @typedef {import('vfile').VFile} VFile
17160
- *
17161
- * @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate
17162
- * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate
17144
+ * @import {
17145
+ * ElementContent as HastElementContent,
17146
+ * Element as HastElement,
17147
+ * Nodes as HastNodes,
17148
+ * Properties as HastProperties,
17149
+ * RootContent as HastRootContent,
17150
+ * Text as HastText
17151
+ * } from 'hast'
17152
+ * @import {
17153
+ * Definition as MdastDefinition,
17154
+ * FootnoteDefinition as MdastFootnoteDefinition,
17155
+ * Nodes as MdastNodes,
17156
+ * Parents as MdastParents
17157
+ * } from 'mdast'
17158
+ * @import {VFile} from 'vfile'
17159
+ * @import {
17160
+ * FootnoteBackContentTemplate,
17161
+ * FootnoteBackLabelTemplate
17162
+ * } from './footer.js'
17163
17163
  */
17164
17164
 
17165
17165
 
@@ -17459,9 +17459,9 @@ function trimMarkdownSpaceStart(value) {
17459
17459
  }
17460
17460
 
17461
17461
  /**
17462
- * @typedef {import('hast').Nodes} HastNodes
17463
- * @typedef {import('mdast').Nodes} MdastNodes
17464
- * @typedef {import('./state.js').Options} Options
17462
+ * @import {Nodes as HastNodes} from 'hast'
17463
+ * @import {Nodes as MdastNodes} from 'mdast'
17464
+ * @import {Options} from './state.js'
17465
17465
  */
17466
17466
 
17467
17467
 
@@ -17781,7 +17781,7 @@ var getProperty = function getProperty(obj, name) {
17781
17781
  return obj[name];
17782
17782
  };
17783
17783
 
17784
- var extend = function extend() {
17784
+ var extend$1 = function extend() {
17785
17785
  var options, name, src, copy, copyIsArray, clone;
17786
17786
  var target = arguments[0];
17787
17787
  var i = 1;
@@ -17835,7 +17835,7 @@ var extend = function extend() {
17835
17835
  return target;
17836
17836
  };
17837
17837
 
17838
- var extend$1 = /*@__PURE__*/getDefaultExportFromCjs(extend);
17838
+ var extend = /*@__PURE__*/getDefaultExportFromCjs(extend$1);
17839
17839
 
17840
17840
  function isPlainObject(value) {
17841
17841
  if (typeof value !== 'object' || value === null) {
@@ -19440,7 +19440,7 @@ class Processor extends CallableInstance {
19440
19440
  destination.use(...attacher);
19441
19441
  }
19442
19442
 
19443
- destination.data(extend$1(true, {}, this.namespace));
19443
+ destination.data(extend(true, {}, this.namespace));
19444
19444
 
19445
19445
  return destination
19446
19446
  }
@@ -20038,7 +20038,7 @@ class Processor extends CallableInstance {
20038
20038
  addList(result.plugins);
20039
20039
 
20040
20040
  if (result.settings) {
20041
- namespace.settings = extend$1(true, namespace.settings, result.settings);
20041
+ namespace.settings = extend(true, namespace.settings, result.settings);
20042
20042
  }
20043
20043
  }
20044
20044
 
@@ -20084,7 +20084,7 @@ class Processor extends CallableInstance {
20084
20084
  let [primary, ...rest] = parameters;
20085
20085
  const currentPrimary = attachers[entryIndex][1];
20086
20086
  if (isPlainObject(currentPrimary) && isPlainObject(primary)) {
20087
- primary = extend$1(true, currentPrimary, primary);
20087
+ primary = extend(true, currentPrimary, primary);
20088
20088
  }
20089
20089
 
20090
20090
  attachers[entryIndex] = [plugin, primary, ...rest];
package/dist/Menu-cjs.js CHANGED
@@ -23,7 +23,7 @@ var ScrollAreaViewport = require('./ScrollAreaViewport-cjs.js');
23
23
  var DrawerTitle = require('./DrawerTitle-cjs.js');
24
24
  var MenuSubmenuTrigger$1 = require('./MenuSubmenuTrigger-cjs.js');
25
25
 
26
- var styles$2 = {"wrapper":"h-nk89U2n6Q-","floatingContainer":"krpkWzoaVcc-","menu":"_7sU7mp1w0jM-","legacySection":"_4x-vvEmn4gM-","separator":"i0QNcs4S-wk-","triggerWrapper":"_7CsejipGrzM-","ariaMenu":"bO7lGVQC42c-","ariaItem":"u6fDgbWmPck-","ariaSection":"-TSNrZBKZJI-","ariaSectionHeader":"zs7dS2pKjEw-","sectionHeader":"MZJgunQcmdQ-","legacyAction":"_-1GOlrzd098-","action":"NYXV5w4pd0c-","destructive":"baYK2zQ6-GA-","overlay":"A7T14ALVEKg-","fullWidth":"Lgbn9IRPI5Y-","screenReaderOnly":"o-ps580KdWI-","spinning":"f1oTdSTeUOM-"};
26
+ var styles$2 = {"wrapper":"h-nk89U2n6Q-","floatingContainer":"krpkWzoaVcc-","menu":"_7sU7mp1w0jM-","legacySection":"_4x-vvEmn4gM-","sectionHeader":"MZJgunQcmdQ-","legacyAction":"_-1GOlrzd098-","action":"NYXV5w4pd0c-","destructive":"baYK2zQ6-GA-","overlay":"A7T14ALVEKg-","fullWidth":"Lgbn9IRPI5Y-","screenReaderOnly":"o-ps580KdWI-"};
27
27
 
28
28
  const SMALL_SCREEN_BREAKPOINT = 490;
29
29
  const MENU_OFFSET = 6;
@@ -220,9 +220,9 @@ function MenuPortal({ children }) {
220
220
  return React.createElement(floatingUi_react.FloatingPortal, null, children);
221
221
  }
222
222
 
223
- var styles$1 = {"submenuHeader":"Vw9MFreevMU-","submenuTitle":"wpNMcBuNwwY-","spinning":"nOEBQCC4Cos-"};
223
+ var styles$1 = {"submenuHeader":"Vw9MFreevMU-","submenuTitle":"wpNMcBuNwwY-"};
224
224
 
225
- var styles = {"wrapper":"fpi0W91w2ag-","floatingContainer":"ba-Kj6mvQUw-","composableBackdrop":"wqvf3hcDMM0-","menu":"-DayvgvIcVo-","legacySection":"VsRRunpS6Yo-","separator":"jnggqK3YTIU-","triggerWrapper":"oRQQVVq-yxA-","composableMenu":"atokGnmWVls-","composableDropdownPopup":"Uk14qmg-Fqc-","composableDropdownScroller":"CJKnGqldjF0-","bottomSheetMenuContent":"J3CW8IU48RM-","composableItem":"zSMkwrZodBk-","composableItemNoLeadingSlot":"qbDWOwkPouM-","composableSection":"_353OIWGazfE-","composableGroup":"Q0ssxff-Qo4-","composableRadioGroup":"_2VyPM45lQBE-","composableSectionHeader":"efA-ozx9w0w-","composableGroupHeader":"BklkzNPbJ5Q-","composableGroupLabel":"_5-p9DbyRav4-","sectionHeader":"Bq7pLWj3jm4-","legacyAction":"P4Sdaq0-lZs-","action":"M1BgN-oCmKw-","destructive":"U9ihZZavz9w-","overlay":"_7we5hh6kYs8-","bottomSheetSubmenuPopup":"nf47GCAYI-c-","menuHidden":"cuw8ct7rX6s-","bottomSheetSubmenuBody":"a6uZEXgX8sg-","fullWidth":"_5OJ7B6mFcwk-","screenReaderOnly":"Bzvkz60bwWE-","spinning":"_0-VzuzHdi8o-"};
225
+ var styles = {"floatingContainer":"ba-Kj6mvQUw-","composableBackdrop":"wqvf3hcDMM0-","menu":"-DayvgvIcVo-","separator":"jnggqK3YTIU-","triggerWrapper":"oRQQVVq-yxA-","composableMenu":"atokGnmWVls-","composableDropdownPopup":"Uk14qmg-Fqc-","composableDropdownScroller":"CJKnGqldjF0-","bottomSheetMenuContent":"J3CW8IU48RM-","composableItem":"zSMkwrZodBk-","composableItemNoLeadingSlot":"qbDWOwkPouM-","composableSection":"_353OIWGazfE-","composableGroup":"Q0ssxff-Qo4-","composableRadioGroup":"_2VyPM45lQBE-","composableGroupHeader":"BklkzNPbJ5Q-","composableGroupLabel":"_5-p9DbyRav4-","action":"M1BgN-oCmKw-","destructive":"U9ihZZavz9w-","bottomSheetSubmenuPopup":"nf47GCAYI-c-","menuHidden":"cuw8ct7rX6s-","bottomSheetSubmenuBody":"a6uZEXgX8sg-","screenReaderOnly":"Bzvkz60bwWE-"};
226
226
 
227
227
  function mergeUnsafeProps(props) {
228
228
  return useRenderElement.mergeProps({