@bynder/compact-view 5.2.1 → 5.2.2

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 (555) hide show
  1. package/AccessToken.js +5 -0
  2. package/AccessToken2.js +176 -0
  3. package/AccessToken3.js +4 -0
  4. package/ActiveFilter.js +6 -5
  5. package/ActiveFilters.js +24 -24
  6. package/AddMedia.js +1 -1
  7. package/AdditionalInfo.js +18 -0
  8. package/Advanced.js +3 -3
  9. package/App.js +46 -43
  10. package/Arrow.js +14 -0
  11. package/AssetCard.js +32 -29
  12. package/AssetCardMetaproperties.js +14 -13
  13. package/AssetFilter.js +36 -35
  14. package/AssetFilterContext.js +3 -3
  15. package/AssetItem.js +14 -13
  16. package/AssetList.js +7 -7
  17. package/AssetTypeItem.js +13 -12
  18. package/Autocomplete_new.js +41 -37
  19. package/Axios2.js +136 -0
  20. package/AxiosError.js +54 -0
  21. package/AxiosHeaders.js +181 -0
  22. package/AxiosURLSearchParams.js +33 -0
  23. package/Badge.js +44 -0
  24. package/Baloon.js +42 -0
  25. package/BaseStyles.js +10 -0
  26. package/Blob.js +4 -0
  27. package/Box.js +22 -0
  28. package/Button.js +39 -0
  29. package/Button.styles.js +40 -0
  30. package/ButtonAction.js +3 -3
  31. package/ButtonLegacy.js +48 -0
  32. package/ButtonLegacy.styles.js +28 -0
  33. package/CancelToken.js +77 -0
  34. package/CanceledError.js +11 -0
  35. package/Card.js +84 -0
  36. package/CardSkeleton.js +15 -14
  37. package/Checkbox.js +85 -0
  38. package/Checkbox.styles.js +2 -2
  39. package/Checkmark.js +7 -0
  40. package/Chip.js +70 -40
  41. package/Chip2.js +42 -0
  42. package/CollectionCard.js +9 -8
  43. package/CollectionItem.js +15 -14
  44. package/CollectionList.js +2 -2
  45. package/CollectionView.js +2 -2
  46. package/CollectionsView.js +6 -6
  47. package/ColorHexInput.js +31 -0
  48. package/ColorPicker.js +66 -0
  49. package/ColorPickerSolid.js +20 -0
  50. package/ColorPickerWithOpacity.js +37 -0
  51. package/Combobox.js +61 -0
  52. package/ConcealedAction.js +16 -0
  53. package/ConnectButton.js +1 -1
  54. package/Container.js +14 -13
  55. package/Container2.js +31 -0
  56. package/Content.js +16 -0
  57. package/ContextAction.js +18 -17
  58. package/ContextActionButton.js +29 -0
  59. package/ControlGroup.js +32 -0
  60. package/DOMFunctions.js +27 -0
  61. package/Dat.js +62 -50
  62. package/DatDropdownItem.js +20 -19
  63. package/DesignSystemContext.js +4 -4
  64. package/DesignSystemProvider.js +29 -0
  65. package/DirectionSelect.js +16 -15
  66. package/Divider.js +21 -0
  67. package/DomainInput.js +15 -14
  68. package/DragRange.js +25 -0
  69. package/DragSelect.js +11 -11
  70. package/Dropdown.js +12 -11
  71. package/Dropdown2.js +169 -0
  72. package/DropdownContent.js +2 -2
  73. package/DropdownListItem.js +3 -3
  74. package/Enum.js +12 -0
  75. package/ErrorMessage.js +20 -19
  76. package/FieldSelect.js +4 -4
  77. package/FilePlaceholder.js +19 -0
  78. package/FileSelector.js +11 -10
  79. package/Flex.js +21 -0
  80. package/FontPicker.js +104 -0
  81. package/Footer.js +16 -0
  82. package/Form.js +23 -0
  83. package/FormData.js +4 -0
  84. package/Frame.js +64 -0
  85. package/Group.js +17 -0
  86. package/Group2.js +26 -0
  87. package/Header2.js +43 -0
  88. package/Header22.js +15 -0
  89. package/HelperText.js +26 -0
  90. package/HorizontalScroll.js +4 -4
  91. package/HttpHandler.js +74 -0
  92. package/HttpResponse.js +85 -0
  93. package/HttpStatusCode.js +71 -0
  94. package/IconPlaceholder.js +18 -0
  95. package/Image.js +19 -0
  96. package/Images.js +30 -0
  97. package/Indicator.js +74 -0
  98. package/InfiniteScroll.js +8 -8
  99. package/InlineBanner.js +51 -0
  100. package/Input.js +109 -0
  101. package/Input.styles.js +71 -0
  102. package/InputContainer.js +9 -0
  103. package/InputField.js +74 -0
  104. package/InputRow.js +18 -0
  105. package/Inspector.js +34 -0
  106. package/InteractiveIcon.js +28 -0
  107. package/InterceptorManager.js +58 -0
  108. package/Item.js +107 -0
  109. package/Item2.js +14 -0
  110. package/Item4.js +190 -0
  111. package/Label.js +33 -0
  112. package/LeftArrow.js +3 -3
  113. package/List.js +25 -0
  114. package/ListItem.js +11 -0
  115. package/ListItem2.js +58 -0
  116. package/ListItem4.js +37 -0
  117. package/MetapropertyFilterContent.js +2 -2
  118. package/MetapropertyOption.js +2 -3
  119. package/Middleware.js +49 -0
  120. package/Middleware2.js +49 -0
  121. package/Modal.js +2 -2
  122. package/Modal2.js +31 -0
  123. package/ModalBase.js +117 -0
  124. package/ModalBase.styles.js +75 -0
  125. package/ModalConfirmation.js +8 -0
  126. package/NoResults.js +16 -15
  127. package/OffsetContext.js +9 -0
  128. package/Oops.js +1 -1
  129. package/OpacityInput.js +17 -0
  130. package/Option_new.js +19 -18
  131. package/Overlay.js +35 -0
  132. package/Parser.js +131 -0
  133. package/Prefixer.js +187 -0
  134. package/Radio.js +78 -0
  135. package/RadioGroup.js +25 -0
  136. package/RangeInput.js +41 -0
  137. package/RefreshingSpinner.js +3 -3
  138. package/ReportModal.js +16 -14
  139. package/RequestHandler.js +119 -0
  140. package/RightArrow.js +4 -4
  141. package/Row.js +16 -0
  142. package/SearchInput.js +15 -15
  143. package/SearchInput2.js +46 -0
  144. package/SectionTitle.js +17 -0
  145. package/Select.js +49 -0
  146. package/SelectButtonText.js +16 -0
  147. package/SelectedItemContainer.js +11 -10
  148. package/SelectedItems.js +2 -2
  149. package/SelectionFooter.js +8 -7
  150. package/Serializer.js +27 -0
  151. package/ShadowRootInternal.js +17 -17
  152. package/Sidebar.js +17 -0
  153. package/Skeleton.js +6 -6
  154. package/Slider.constants.js +6 -0
  155. package/Slider.js +128 -0
  156. package/SmartFilterContent.js +2 -2
  157. package/SmartFilterSelect_new.js +2 -2
  158. package/Smartfilters_new.js +53 -50
  159. package/Spinner.js +2 -2
  160. package/Spinner2.js +15 -0
  161. package/StatefulAssetList.js +15 -15
  162. package/Stats.js +16 -0
  163. package/StatsItem.js +23 -0
  164. package/Status.js +32 -0
  165. package/Switch.js +82 -0
  166. package/SwitchNLS.js +26 -23
  167. package/Tabs2.js +10 -0
  168. package/TagItem.js +8 -8
  169. package/Tags.js +9 -9
  170. package/Text2.js +11 -0
  171. package/Text22.js +18 -0
  172. package/Text4.js +18 -0
  173. package/Textarea.js +92 -0
  174. package/Theming.js +4 -4
  175. package/Thumb.js +28 -0
  176. package/Thumbnail.js +91 -0
  177. package/Tokenizer.js +147 -0
  178. package/Toolbar.js +13 -12
  179. package/Tooltip.js +2 -2
  180. package/Tooltip2.js +111 -0
  181. package/TruncatedText.js +34 -0
  182. package/URLSearchParams.js +5 -0
  183. package/Utility.js +56 -0
  184. package/ViewSwitch.js +8 -7
  185. package/_check_private_redeclaration.js +7 -0
  186. package/_class_apply_descriptor_get.js +6 -0
  187. package/_class_apply_descriptor_set.js +11 -0
  188. package/_class_extract_field_descriptor.js +7 -0
  189. package/_class_private_field_get.js +9 -0
  190. package/_class_private_field_init.js +7 -0
  191. package/_class_private_field_set.js +9 -0
  192. package/_commonjsHelpers.js +6 -0
  193. package/adapters.js +53 -0
  194. package/api.js +25 -0
  195. package/api2.js +40 -0
  196. package/api3.js +406 -0
  197. package/applyScopeDataToEvent.js +83 -0
  198. package/applyScopeDataToEvent2.js +55 -0
  199. package/asset.type.js +9 -9
  200. package/autocomplete.js +2 -2
  201. package/axios.js +46 -0
  202. package/base.js +57 -0
  203. package/baseclient.js +498 -0
  204. package/bind.js +8 -0
  205. package/browser.js +44 -0
  206. package/buildFullPath.js +9 -0
  207. package/buildURL.js +23 -0
  208. package/bundle.esm.js +81 -0
  209. package/calculateContainerMaxHeight.js +12 -0
  210. package/calculateNodeHeight.js +35 -0
  211. package/carrier.js +13 -0
  212. package/chain.js +8 -0
  213. package/checkGlobals.js +13 -0
  214. package/checks.js +178 -0
  215. package/chunk-6HYIRFX2.js +1 -0
  216. package/cleanUrl.js +11 -0
  217. package/client.js +76 -0
  218. package/clientreport.js +15 -0
  219. package/clsx.js +17 -0
  220. package/colorTransforms.js +12 -0
  221. package/combineMetaproperties.js +1 -1
  222. package/combineURLs.js +6 -0
  223. package/composeSignals.js +30 -0
  224. package/constants.js +2 -12
  225. package/constants2.js +82 -0
  226. package/constants3.js +14 -0
  227. package/constants4.js +8 -0
  228. package/constants5.js +4 -0
  229. package/constants6.js +4 -0
  230. package/context.js +12 -0
  231. package/context10.js +12 -0
  232. package/context2.js +9 -0
  233. package/context3.js +12 -0
  234. package/context6.js +5 -0
  235. package/cookieStore.js +116 -0
  236. package/cookies.js +32 -0
  237. package/core.js +42 -0
  238. package/currentScopes.js +9 -0
  239. package/data.js +4 -0
  240. package/de_DE.json.js +18 -0
  241. package/debug-build.js +4 -0
  242. package/debug-build2.js +4 -0
  243. package/debug-build3.js +4 -0
  244. package/debug-build4.js +4 -0
  245. package/debug-build5.js +4 -0
  246. package/debug-build6.js +4 -0
  247. package/decorators.js +37 -0
  248. package/defaultScopes.js +12 -0
  249. package/devUtils.js +20 -0
  250. package/dispatchRequest.js +31 -0
  251. package/doc.js +26 -0
  252. package/domHelpers.js +15 -0
  253. package/dsn.js +54 -0
  254. package/dynamicSamplingContext.js +34 -0
  255. package/dynamicSamplingContext2.js +34 -0
  256. package/emotion-unitless.esm.js +52 -0
  257. package/en_US.json.js +23 -0
  258. package/englishText-12403056.js +6 -0
  259. package/env.js +6 -0
  260. package/envelope.js +113 -0
  261. package/envelope2.js +23 -0
  262. package/envelope3.js +24 -0
  263. package/error.js +9 -0
  264. package/errors.js +33 -0
  265. package/errors2.js +55 -0
  266. package/es_ES.json.js +18 -0
  267. package/es_MX.json.js +18 -0
  268. package/eventProcessors.js +27 -0
  269. package/eventProcessors2.js +23 -0
  270. package/eventbuilder.js +128 -0
  271. package/exports.js +11 -0
  272. package/exports2.js +16 -0
  273. package/exports3.js +8 -0
  274. package/fetch.js +44 -0
  275. package/fetch2.js +141 -0
  276. package/filterAssets.js +1 -1
  277. package/fixFontSpaceInUrl.js +8 -0
  278. package/focusWithoutScrolling.js +45 -0
  279. package/forceHiddenStyles.js +19 -0
  280. package/formDataToJSON.js +31 -0
  281. package/fr_FR.json.js +18 -0
  282. package/getAbsoluteUrl.js +13 -0
  283. package/getAsset.js +1 -1
  284. package/getAssetCounts.js +1 -1
  285. package/getAssets.js +2 -2
  286. package/getCallFrame.js +12 -0
  287. package/getCollections.js +1 -1
  288. package/getFilterOptions.js +1 -1
  289. package/getFilters.js +1 -1
  290. package/getFilters_new.js +1 -1
  291. package/getRequestCookies.js +40 -0
  292. package/getRootSpan.js +6 -0
  293. package/getRootSpan2.js +6 -0
  294. package/getSimilarityAssets.js +1 -1
  295. package/getSizingData.js +45 -0
  296. package/getStatusCodeColor.js +6 -0
  297. package/getThumbPosition.js +6 -0
  298. package/getTimestamp.js +7 -0
  299. package/getUseLayerOptions.js +49 -0
  300. package/handlers.js +92 -6
  301. package/handlers2.js +6 -0
  302. package/helpers.js +3 -4
  303. package/helpers2.js +6 -0
  304. package/hexFromPercentage.js +7 -0
  305. package/http.js +17 -0
  306. package/hub.js +446 -0
  307. package/hub2.js +442 -0
  308. package/immer.js +472 -0
  309. package/import.js +7 -0
  310. package/index-esm.js +10781 -0
  311. package/index-esm2.js +138 -0
  312. package/index-esm3.js +131 -0
  313. package/index.browser.js +11 -0
  314. package/index.module.js +57 -0
  315. package/index.module2.js +72 -0
  316. package/index.module3.js +57 -0
  317. package/index10.js +20 -0
  318. package/index102.js +273 -0
  319. package/index11.js +18 -0
  320. package/index112.js +29 -0
  321. package/index12.js +38 -0
  322. package/index13.js +2432 -0
  323. package/index14.js +558 -0
  324. package/index15.js +58 -0
  325. package/index16.js +4 -0
  326. package/index17.js +89 -0
  327. package/index18.js +9 -0
  328. package/index19.js +62 -0
  329. package/index20.js +15 -0
  330. package/index21.js +11 -0
  331. package/index22.js +42 -0
  332. package/index23.js +9 -0
  333. package/index24.js +10 -0
  334. package/index25.js +7 -0
  335. package/index26.js +12 -0
  336. package/index27.js +11 -0
  337. package/index28.js +639 -0
  338. package/index29.js +76 -0
  339. package/index3.js +5 -53
  340. package/index30.js +7 -0
  341. package/index31.js +22 -0
  342. package/index32.js +2 -0
  343. package/index33.js +7 -0
  344. package/index34.js +20 -0
  345. package/index35.js +8 -0
  346. package/index36.js +4 -0
  347. package/index37.js +13 -0
  348. package/index38.js +13 -0
  349. package/index39.js +15 -0
  350. package/index4.js +1684 -17
  351. package/index40.js +13 -0
  352. package/index41.js +21 -0
  353. package/index42.js +66 -0
  354. package/index43.js +8 -0
  355. package/index44.js +57 -0
  356. package/index45.js +69 -0
  357. package/index46.js +33 -0
  358. package/index47.js +13 -0
  359. package/index48.js +123 -0
  360. package/index49.js +88 -0
  361. package/index5.js +27 -0
  362. package/index50.js +10 -0
  363. package/index51.js +13 -0
  364. package/index52.js +16 -0
  365. package/index53.js +16 -0
  366. package/index54.js +9 -0
  367. package/index55.js +9 -0
  368. package/index56.js +17 -0
  369. package/index57.js +31 -0
  370. package/index58.js +18 -0
  371. package/index6.js +315 -0
  372. package/index7.js +4 -0
  373. package/index72.js +228 -0
  374. package/index8.js +5051 -0
  375. package/index82.js +8 -0
  376. package/index9.js +55 -0
  377. package/index92.js +12 -0
  378. package/integration.js +38 -0
  379. package/is.js +77 -0
  380. package/is2.js +14 -0
  381. package/is3.js +14 -0
  382. package/isAbsoluteURL.js +6 -0
  383. package/isAbsoluteUrl2.js +6 -0
  384. package/isAxiosError.js +7 -0
  385. package/isCancel.js +6 -0
  386. package/isIterable.js +6 -0
  387. package/isStringEqual.js +6 -0
  388. package/isURLSameOrigin.js +8 -0
  389. package/isValidHexValue.js +6 -0
  390. package/isVirtualEvent.js +11 -0
  391. package/iso.js +38 -0
  392. package/it_IT.json.js +18 -0
  393. package/itemContext.js +5 -0
  394. package/ja_JP.json.js +18 -0
  395. package/ko_KR.json.js +18 -0
  396. package/localStorageHelper.js +32 -0
  397. package/localStorageHelper2.js +4 -0
  398. package/localization.js +46 -0
  399. package/logger2.js +56 -0
  400. package/logger3.js +56 -0
  401. package/logger4.js +56 -0
  402. package/makeHexWithOpacity.js +12 -0
  403. package/makeInternalTokens.js +22 -0
  404. package/matchRequestUrl.js +23 -0
  405. package/memo.js +25 -0
  406. package/merge.js +13 -0
  407. package/mergeConfig.js +70 -0
  408. package/mergeProps.js +22 -0
  409. package/mergeRefs.js +9 -0
  410. package/middleware.js +177 -0
  411. package/middleware2.js +177 -0
  412. package/misc.js +58 -0
  413. package/misc2.js +28 -0
  414. package/misc3.js +24 -0
  415. package/nl_NL.json.js +18 -0
  416. package/normalize.js +97 -0
  417. package/normalizePath.js +11 -0
  418. package/normalizeResponse.js +1 -1
  419. package/normalizeRows.js +10 -0
  420. package/notify.js +52 -0
  421. package/null.js +4 -0
  422. package/object.js +110 -0
  423. package/object2.js +39 -0
  424. package/object3.js +17 -0
  425. package/opacityPercentageFromHex.js +9 -0
  426. package/openLink.js +27 -0
  427. package/package.json +1 -1
  428. package/packageVersion.js +4 -0
  429. package/parse.js +9 -0
  430. package/parse2.js +44 -0
  431. package/parseHeaders.js +30 -0
  432. package/parseProtocol.js +7 -0
  433. package/pl_PL.json.js +18 -0
  434. package/platform.js +42 -0
  435. package/prepareEvent.js +141 -0
  436. package/prepareEvent2.js +5 -0
  437. package/prepareEvent3.js +5 -0
  438. package/progressEventReducer.js +35 -0
  439. package/promisebuffer.js +44 -0
  440. package/propagationContext.js +11 -0
  441. package/pt_BR.json.js +18 -0
  442. package/ratelimit.js +37 -0
  443. package/react.js +19 -0
  444. package/react2.js +19 -0
  445. package/regexes.js +51 -0
  446. package/registries.js +41 -0
  447. package/resolveConfig.js +33 -0
  448. package/ru_RU.json.js +18 -0
  449. package/runAfterTransition.js +35 -0
  450. package/schemas.js +368 -0
  451. package/schemas2.js +691 -0
  452. package/scope.js +412 -0
  453. package/scope2.js +407 -0
  454. package/scope3.js +348 -0
  455. package/sdk-DhxX43BH.js +4813 -0
  456. package/sdkMetadata.js +15 -0
  457. package/serializeRequest.js +12 -0
  458. package/serializeResponse.js +14 -0
  459. package/session.js +57 -0
  460. package/session2.js +57 -0
  461. package/session3.js +16 -0
  462. package/settle.js +14 -0
  463. package/shadowdom.js +13 -0
  464. package/shadowdom2.js +13 -0
  465. package/spanOnScope.js +12 -0
  466. package/spanUtils.js +31 -0
  467. package/spanUtils2.js +31 -0
  468. package/speedometer.js +19 -0
  469. package/spread.js +8 -0
  470. package/stack-parsers.js +48 -0
  471. package/stackStrategy.js +98 -0
  472. package/stacktrace.js +49 -0
  473. package/state.js +106 -0
  474. package/store/useDatStore.d.ts +11 -8
  475. package/string.js +6 -0
  476. package/styled-components.browser.esm.js +530 -0
  477. package/styles.js +55 -0
  478. package/styles2.js +17 -0
  479. package/supports.js +6 -0
  480. package/syncpromise.js +121 -0
  481. package/syncpromise2.js +109 -0
  482. package/textSelection.js +33 -0
  483. package/textStyles.js +20 -0
  484. package/theme.js +238 -0
  485. package/themeContainers.js +20 -0
  486. package/themes3.js +26 -0
  487. package/throttle.js +15 -0
  488. package/time.js +24 -0
  489. package/time2.js +24 -0
  490. package/time3.js +24 -0
  491. package/toFormData.js +85 -0
  492. package/toPublicUrl.js +9 -0
  493. package/toURLEncodedForm.js +13 -0
  494. package/token.js +236 -0
  495. package/tokenExpirationHelper.js +48 -0
  496. package/tokenExpirationHelper2.js +4 -0
  497. package/tokensAndThemes.js +92 -0
  498. package/tr_TR.json.js +18 -0
  499. package/trackStream.js +63 -0
  500. package/transformData.js +13 -0
  501. package/transitional.js +8 -0
  502. package/trimMetapropertyValue.js +1 -1
  503. package/tslib.es6.js +18 -0
  504. package/typeof.js +11 -0
  505. package/urlHelper.js +15 -0
  506. package/urlHelper2.js +4 -0
  507. package/useAutoHeight.js +25 -0
  508. package/useDatStore.js +31 -27
  509. package/useEffectEvent.js +18 -0
  510. package/useFocus.js +30 -0
  511. package/useFocusRing.js +34 -0
  512. package/useFocusVisible.js +92 -0
  513. package/useFocusWithin.js +57 -0
  514. package/useFonts.js +118 -0
  515. package/useGlobalListeners.js +34 -0
  516. package/useGroupContext.js +10 -0
  517. package/useHover.js +79 -0
  518. package/useId.js +8 -0
  519. package/useId2.js +17 -0
  520. package/useKeyDown.js +14 -0
  521. package/useLayoutEffect.js +6 -0
  522. package/useOrderingStore.js +6 -6
  523. package/usePress.js +359 -0
  524. package/useRouterStore.js +6 -6
  525. package/useScrollHighlightedIntoView.js +24 -0
  526. package/useSearchStore.js +5 -5
  527. package/useSimilaritySearchStore.js +6 -6
  528. package/useSyncRef.js +12 -0
  529. package/useTranslate.js +13 -0
  530. package/useZIndex.js +9 -0
  531. package/userfeedback.js +28 -0
  532. package/util.js +265 -0
  533. package/utils/fixFontSpaceInUrl.d.ts +1 -0
  534. package/utils.js +26 -44
  535. package/utils2.js +43 -45
  536. package/utils3.js +50 -0
  537. package/utils4.js +12 -0
  538. package/utils5.js +71 -0
  539. package/utils6.js +222 -0
  540. package/utils7.js +9 -0
  541. package/utils8.js +70 -0
  542. package/validator.js +54 -0
  543. package/vanilla.js +14 -0
  544. package/vanilla2.js +14 -0
  545. package/version.js +4 -0
  546. package/version2.js +4 -0
  547. package/version3.js +4 -0
  548. package/versionContext.js +9 -0
  549. package/versions.js +8 -0
  550. package/worldwide.js +19 -0
  551. package/worldwide2.js +15 -0
  552. package/worldwide3.js +10 -0
  553. package/xhr.js +71 -0
  554. package/zh_CN.json.js +18 -0
  555. package/zh_TW.json.js +18 -0
package/FieldSelect.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import t from "styled-components";
3
- import { token as l } from "@bynder/design-system";
2
+ import t from "./styled-components.browser.esm.js";
3
+ import { token as l } from "./token.js";
4
4
  import { Dropdown as f } from "./Dropdown.js";
5
5
  import { __ as i } from "./index2.js";
6
6
  import { useOrderingByPage as p } from "./useOrderingStore.js";
7
7
  import { useRouterSelectors as g } from "./useRouterStore.js";
8
8
  import { DropdownListItem as u } from "./DropdownListItem.js";
9
- function R({ options: e }) {
9
+ function $({ options: e }) {
10
10
  const d = g.use.page(), [o, a] = p(d.page), s = {
11
11
  CREATED_AT: i("Date added"),
12
12
  NAME: i("Name"),
@@ -69,5 +69,5 @@ const S = t.ul`
69
69
  color: ${(e) => e.$isDisabled ? "rgba(0, 34, 51, 0.5)" : "#212c40"};
70
70
  `;
71
71
  export {
72
- R as FieldSelect
72
+ $ as FieldSelect
73
73
  };
@@ -0,0 +1,19 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import i from "./styled-components.browser.esm.js";
3
+ import { token as e } from "./token.js";
4
+ function p({
5
+ children: o,
6
+ ...n
7
+ }) {
8
+ return /* @__PURE__ */ r(t, { ...n, children: /* @__PURE__ */ r(d, { children: o }) });
9
+ }
10
+ const t = i.div.withConfig({
11
+ displayName: "Placeholder",
12
+ componentId: "sc-1xjrejg-0"
13
+ })(["display:grid;place-items:center;min-height:100px;"]), d = i.div.withConfig({
14
+ displayName: "IconContainer",
15
+ componentId: "sc-1xjrejg-1"
16
+ })(["display:grid;place-items:center;width:60px;height:70px;border-radius:", ";background:", ";color:", ";"], e.brandRadiusBase, e.gray10, e.gray600);
17
+ export {
18
+ p as FilePlaceholder
19
+ };
package/FileSelector.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { jsxs as p, jsx as n, Fragment as B } from "react/jsx-runtime";
2
2
  import { useState as k, useRef as U, useEffect as I } from "react";
3
- import a from "styled-components";
4
- import { IconAspectRatioOutline as E, IconImage as R, IconCrop as j } from "@bynder/icons";
5
- import { token as o, Badge as N } from "@bynder/design-system";
3
+ import a from "./styled-components.browser.esm.js";
4
+ import { IconCrop as E, IconAspectRatioOutline as R, IconImage as j } from "./index4.js";
5
+ import { Badge as N } from "./Badge.js";
6
+ import { token as o } from "./token.js";
6
7
  import "./AssetCard.js";
7
8
  import "./AssetList.js";
8
- import "./Chip.js";
9
+ import "./Chip2.js";
9
10
  import { Dropdown as V } from "./Dropdown.js";
10
11
  import { DropdownListItem as $ } from "./DropdownListItem.js";
11
12
  import "./MetapropertyFilterContent.js";
@@ -25,7 +26,7 @@ import { logger as M } from "./logger.js";
25
26
  import { useAuth as q } from "./LoginContext.js";
26
27
  import { isErr as G, isOk as J, ok as Q, err as W } from "./result.type.js";
27
28
  import { getAsset as X } from "./getAsset.js";
28
- import { getDefaultKey as Z, getUrlExtension as ee, splitByCamelCase as T, getHumanReadableFileSize as te } from "./utils2.js";
29
+ import { getDefaultKey as Z, getUrlExtension as ee, splitByCamelCase as T, getHumanReadableFileSize as te } from "./utils3.js";
29
30
  import { normalizeFilesResponse as ie } from "./normalizeResponse.js";
30
31
  import "./Dat.js";
31
32
  import { DatDropdownItem as re } from "./DatDropdownItem.js";
@@ -46,7 +47,7 @@ async function ae(s) {
46
47
  return W("Error retrieving asset files");
47
48
  }
48
49
  const A = "Custom transformation", c = "adaptiveVideo";
49
- function Ze({ asset: s, onChange: m }) {
50
+ function et({ asset: s, onChange: m }) {
50
51
  const [i, f] = k({ status: "Loading" }), [v, u] = k(!1), d = U(null), w = q(), { isSelected: S, NLSSearchText: O, isNLSSelected: z } = se(), {
51
52
  assetFieldSelection: b,
52
53
  noCache: F,
@@ -181,7 +182,7 @@ function Ze({ asset: s, onChange: m }) {
181
182
  }
182
183
  function le({ state: s }) {
183
184
  return s.status === "Loading" ? /* @__PURE__ */ n(P, { width: 50 }) : s.status === "Data" ? /* @__PURE__ */ p(ce, { children: [
184
- s.key === A && /* @__PURE__ */ n(j, {}),
185
+ s.key === A && /* @__PURE__ */ n(E, {}),
185
186
  T(s.key)
186
187
  ] }) : /* @__PURE__ */ n(B, { children: "Error" });
187
188
  }
@@ -214,10 +215,10 @@ const de = a.div`
214
215
  border-radius: 5px;
215
216
  background-color: rgba(0, 34, 51, 0.05);
216
217
  margin-right: ${o.spacing4};
217
- `, pe = a(E)`
218
+ `, pe = a(R)`
218
219
  height: ${o.spacing6};
219
220
  width: ${o.spacing6};
220
- `, fe = a(R)`
221
+ `, fe = a(j)`
221
222
  height: ${o.spacing6};
222
223
  width: ${o.spacing6};
223
224
  `, ue = a.div`
@@ -246,5 +247,5 @@ const de = a.div`
246
247
  z-index: 1000;
247
248
  `;
248
249
  export {
249
- Ze as FileSelector
250
+ et as FileSelector
250
251
  };
package/Flex.js ADDED
@@ -0,0 +1,21 @@
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import l from "./styled-components.browser.esm.js";
3
+ import { token as p } from "./token.js";
4
+ function m({
5
+ children: t,
6
+ direction: i = "row",
7
+ wrap: e = "nowrap",
8
+ justifyContent: o = "flex-start",
9
+ alignItems: n = "stretch",
10
+ gap: r,
11
+ ...a
12
+ }) {
13
+ return /* @__PURE__ */ d(s, { $direction: i, $wrap: e, $justifyContent: o, $alignItems: n, $gap: r, ...a, children: t });
14
+ }
15
+ const s = l.div.withConfig({
16
+ displayName: "FlexStyled",
17
+ componentId: "sc-1qk7dea-0"
18
+ })(["display:flex;flex-direction:", ";flex-wrap:", ";gap:", ";justify-content:", ";align-items:", ";box-sizing:border-box;width:100%;height:100%;"], (t) => t.$direction, (t) => t.$wrap, (t) => t.$gap ? p[`spacing${t.$gap}`] : void 0, (t) => t.$justifyContent, (t) => t.$alignItems);
19
+ export {
20
+ m as Flex
21
+ };
package/FontPicker.js ADDED
@@ -0,0 +1,104 @@
1
+ import { jsxs as d, Fragment as z, jsx as l } from "react/jsx-runtime";
2
+ import { useId as L, useState as A, useMemo as H, useEffect as v, useCallback as x } from "react";
3
+ import { produce as J } from "./immer.js";
4
+ import { useTranslate as K, Translate as u } from "./index6.js";
5
+ import { Form as b } from "./Form.js";
6
+ import { Select as i } from "./Select.js";
7
+ import { useFonts as O } from "./useFonts.js";
8
+ function Z({
9
+ familyLabel: C,
10
+ subfamilyLabel: w,
11
+ initialFamilyId: M,
12
+ initialSubfamilyId: j,
13
+ hideSubfamily: D = !1,
14
+ onSelectFamily: h,
15
+ onSelectSubfamily: p,
16
+ filterOutItalics: G = !1
17
+ }) {
18
+ const { translate: o } = K(), y = L(), k = L(), N = o("fontmanager.picker.default-family-label"), _ = o("fontmanager.picker.default-subfamily-label"), [g, S] = A(""), {
19
+ portal: s,
20
+ global: c,
21
+ selectedFamily: a,
22
+ selectedSubfamily: r,
23
+ setSelectedFamily: T,
24
+ setSelectedSubfamily: f,
25
+ searchFonts: F
26
+ } = O({ initialFamilyId: M, initialSubfamilyId: j, filterOutItalics: G }), I = H(() => new Map(s.concat(c).map((e) => [e.id, e])), [s, c]);
27
+ v(() => {
28
+ F(g);
29
+ }, [g, F]), v(() => {
30
+ h && a && h(a);
31
+ }, [a, h]), v(() => {
32
+ p && r && p(r);
33
+ }, [r, p]);
34
+ const B = x(
35
+ (e) => {
36
+ var n, t;
37
+ const m = I.get(e);
38
+ m && (T(m), (n = m.subfamilies) != null && n[0] && f((t = m.subfamilies) == null ? void 0 : t[0]));
39
+ },
40
+ [I, T, f]
41
+ ), E = x(
42
+ (e) => {
43
+ const n = a?.subfamilies.find((t) => t.id === e);
44
+ n && f(n);
45
+ },
46
+ [a, f]
47
+ );
48
+ function P() {
49
+ S("");
50
+ }
51
+ const q = J(a?.subfamilies || [], (e) => {
52
+ e.sort((n, t) => Number(n.weight) - Number(t.weight));
53
+ });
54
+ return /* @__PURE__ */ d(z, { children: [
55
+ /* @__PURE__ */ d(b.Group, { children: [
56
+ /* @__PURE__ */ l(b.Label, { id: y, children: C ?? N }),
57
+ /* @__PURE__ */ d(
58
+ i,
59
+ {
60
+ "aria-labelledby": y,
61
+ label: a?.name,
62
+ onChange: B,
63
+ value: a?.id || "",
64
+ children: [
65
+ /* @__PURE__ */ l(
66
+ i.SearchInput,
67
+ {
68
+ value: g,
69
+ onChange: S,
70
+ onBlur: P,
71
+ placeholder: o("fontmanager.picker.fonts.placeholder-search"),
72
+ "aria-label": o("fontmanager.picker.fonts.aria-label-search")
73
+ }
74
+ ),
75
+ /* @__PURE__ */ l(i.SectionTitle, { children: /* @__PURE__ */ l(u, { id: "fontmanager.picker.fonts.uploaded-fonts" }) }),
76
+ s.map(({ id: e, name: n }) => /* @__PURE__ */ l(i.Item, { value: e, children: n }, e)),
77
+ s.length === 0 && /* @__PURE__ */ l(i.Text, { children: /* @__PURE__ */ l(u, { id: "fontmanager.picker.fonts.no-fonts" }) }),
78
+ /* @__PURE__ */ l(i.Divider, {}),
79
+ /* @__PURE__ */ l(i.SectionTitle, { children: /* @__PURE__ */ l(u, { id: "fontmanager.picker.fonts.available-fonts" }) }),
80
+ c.map(({ id: e, name: n }) => /* @__PURE__ */ l(i.Item, { value: e, children: n }, e)),
81
+ c.length === 0 && /* @__PURE__ */ l(i.Text, { children: /* @__PURE__ */ l(u, { id: "fontmanager.picker.fonts.no-fonts" }) })
82
+ ]
83
+ }
84
+ )
85
+ ] }),
86
+ !D && /* @__PURE__ */ d(b.Group, { children: [
87
+ /* @__PURE__ */ l(b.Label, { id: k, children: w ?? _ }),
88
+ /* @__PURE__ */ l(
89
+ i,
90
+ {
91
+ "aria-labelledby": k,
92
+ label: r?.name,
93
+ onChange: E,
94
+ value: r?.id || "",
95
+ isDisabled: a?.subfamilies.length === 0,
96
+ children: q.map(({ id: e, name: n }) => /* @__PURE__ */ l(i.Item, { value: e, children: n }, e))
97
+ }
98
+ )
99
+ ] })
100
+ ] });
101
+ }
102
+ export {
103
+ Z as FontPicker
104
+ };
package/Footer.js ADDED
@@ -0,0 +1,16 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import n from "./styled-components.browser.esm.js";
3
+ import { token as o } from "./token.js";
4
+ function m({
5
+ children: r,
6
+ ...i
7
+ }) {
8
+ return /* @__PURE__ */ t(a, { ...i, children: r });
9
+ }
10
+ const a = n.div.withConfig({
11
+ displayName: "FooterContainer",
12
+ componentId: "sc-109ca6m-0"
13
+ })(["display:grid;grid-template-columns:repeat(auto-fit,minmax(40%,1fr));gap:", ";box-sizing:border-box;padding:", " ", ";border-top:1px solid ", ";background-color:", ";"], o.spacing4, o.spacing5, o.spacing6, o.gray100a, o.white);
14
+ export {
15
+ m as Footer
16
+ };
package/Form.js ADDED
@@ -0,0 +1,23 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { IconError as e } from "./index4.js";
3
+ import { Group as f } from "./Group.js";
4
+ import { HelperText as i } from "./HelperText.js";
5
+ import { Label as n } from "./Label.js";
6
+ import { Row as u } from "./Row.js";
7
+ import { InputRow as l } from "./InputRow.js";
8
+ function r({
9
+ children: o,
10
+ onSubmit: m,
11
+ ...p
12
+ }) {
13
+ return /* @__PURE__ */ t("form", { onSubmit: m, ...p, children: o });
14
+ }
15
+ r.Group = f;
16
+ r.HelperText = i;
17
+ r.Label = n;
18
+ r.Row = u;
19
+ r.InputRow = l;
20
+ r.IconError = e;
21
+ export {
22
+ r as Form
23
+ };
package/FormData.js ADDED
@@ -0,0 +1,4 @@
1
+ const a = typeof FormData < "u" ? FormData : null;
2
+ export {
3
+ a as default
4
+ };
package/Frame.js ADDED
@@ -0,0 +1,64 @@
1
+ import { jsxs as a, jsx as i } from "react/jsx-runtime";
2
+ import o, { css as d } from "./styled-components.browser.esm.js";
3
+ import { Badge as m } from "./Badge.js";
4
+ import { token as r } from "./token.js";
5
+ import { useCardContext as g } from "./context.js";
6
+ function S({
7
+ children: e,
8
+ progressBar: n,
9
+ badge: t,
10
+ icon: c,
11
+ isCheckeredBackground: p = !1,
12
+ height: s = "fixed",
13
+ ...h
14
+ }) {
15
+ const {
16
+ variant: l,
17
+ isSelected: f
18
+ } = g();
19
+ return /* @__PURE__ */ a(v, { $isCheckeredBackground: p, $height: s, ...h, children: [
20
+ l === "clean" && f && /* @__PURE__ */ i(b, {}),
21
+ /* @__PURE__ */ i(u, { $height: s, children: e }),
22
+ /* @__PURE__ */ i(C, {}),
23
+ /* @__PURE__ */ a(w, { children: [
24
+ /* @__PURE__ */ a(x, { children: [
25
+ c ? /* @__PURE__ */ i(k, { children: c }) : null,
26
+ t ? /* @__PURE__ */ i(y, { children: typeof t == "string" ? /* @__PURE__ */ i(m, { color: "black-alpha", children: t }) : t }) : null
27
+ ] }),
28
+ n ? /* @__PURE__ */ i(F, { $variant: l, children: n }) : null
29
+ ] })
30
+ ] });
31
+ }
32
+ const v = o.div.withConfig({
33
+ displayName: "FrameStyled",
34
+ componentId: "sc-13dpc3f-0"
35
+ })(["position:relative;min-height:92px;border-radius:var(--card-frame-border-radius);background:", ";", ""], (e) => e.$isCheckeredBackground ? `url("data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='12' width='12' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='6' width='6' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='6' width='6' y='6' x='6' fill='%23e9ecee'/%3E%3C/svg%3E%0A") ` : r.gray25, (e) => e.$height === "fixed" && d(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"])), b = o.div.withConfig({
36
+ displayName: "FocusRing",
37
+ componentId: "sc-13dpc3f-1"
38
+ })(["position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:var(--card-selected-border-width) solid var(--card-selected-border-color);border-radius:calc(var(--card-border-radius) + 4px);"]), u = o.div.withConfig({
39
+ displayName: "Children",
40
+ componentId: "sc-13dpc3f-2"
41
+ })(["", " display:grid;overflow:hidden;border-radius:var(--card-frame-border-radius);"], (e) => e.$height === "fixed" && d(["position:absolute;inset:0;"])), C = o.div.withConfig({
42
+ displayName: "Overlay",
43
+ componentId: "sc-13dpc3f-3"
44
+ })(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:var(--card-inner-border-width) solid var(--card-inner-border-color);border-bottom-width:var(--card-frame-border-bottom-width);border-radius:var(--card-frame-border-radius);background:var(--card-frame-overlay-color);"]), w = o.div.withConfig({
45
+ displayName: "FrameFooter",
46
+ componentId: "sc-13dpc3f-4"
47
+ })(["position:absolute;right:0;bottom:", ";left:0;display:flex;flex-direction:column;gap:", ";"], r.spacing4, r.spacing3), x = o.div.withConfig({
48
+ displayName: "FrameFooterContent",
49
+ componentId: "sc-13dpc3f-5"
50
+ })(["display:flex;padding:0 ", ";"], r.spacing4), y = o.div.withConfig({
51
+ displayName: "BadgeContainer",
52
+ componentId: "sc-13dpc3f-6"
53
+ })(["margin-left:auto;"]), k = o.div.withConfig({
54
+ displayName: "IconContainer",
55
+ componentId: "sc-13dpc3f-7"
56
+ })(["color:", ";path{stroke:", ";stroke-width:2px;paint-order:stroke;&[d='M0 0h24v24H0z']{stroke:none;}}"], r.white, r.gray100a), F = o.div.withConfig({
57
+ displayName: "ProgressContainer",
58
+ componentId: "sc-13dpc3f-8"
59
+ })(["", ""], ({
60
+ $variant: e
61
+ }) => e === "clean" ? d(["position:relative;padding:0 ", ";"], r.spacing4) : d(["position:absolute;right:0;bottom:calc(", " * -1);left:0;"], r.spacing4));
62
+ export {
63
+ S as Frame
64
+ };
package/Group.js ADDED
@@ -0,0 +1,17 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import p from "./styled-components.browser.esm.js";
3
+ import { token as i } from "./token.js";
4
+ import { GroupContext as n } from "./useGroupContext.js";
5
+ function a({
6
+ children: r,
7
+ ...t
8
+ }) {
9
+ return /* @__PURE__ */ o(n.Provider, { value: "group", children: /* @__PURE__ */ o(e, { ...t, children: r }) });
10
+ }
11
+ const e = p.div.withConfig({
12
+ displayName: "GroupStyled",
13
+ componentId: "sc-1gmxpcl-0"
14
+ })(["margin:0;padding:", " 0;border:0;"], i.spacing3);
15
+ export {
16
+ a as Group
17
+ };
package/Group2.js ADDED
@@ -0,0 +1,26 @@
1
+ import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
+ import c from "./styled-components.browser.esm.js";
3
+ import { token as e } from "./token.js";
4
+ import { useId as a } from "./useId.js";
5
+ function u({
6
+ title: n,
7
+ action: t,
8
+ children: d,
9
+ ...s
10
+ }) {
11
+ const i = a("list-group-header");
12
+ return /* @__PURE__ */ r("div", { ...s, children: [
13
+ /* @__PURE__ */ r(p, { children: [
14
+ /* @__PURE__ */ o("span", { id: i, children: n }),
15
+ t
16
+ ] }),
17
+ /* @__PURE__ */ o("div", { "aria-describedby": i, children: d })
18
+ ] });
19
+ }
20
+ const p = c.div.withConfig({
21
+ displayName: "Header",
22
+ componentId: "sc-g7ra3w-0"
23
+ })(["display:flex;justify-content:space-between;align-items:center;padding:", " 0 ", ";color:", ";"], e.spacing3, e.spacing2, e.colorText);
24
+ export {
25
+ u as Group
26
+ };
package/Header2.js ADDED
@@ -0,0 +1,43 @@
1
+ import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
+ import r from "./styled-components.browser.esm.js";
3
+ import { TruncatedText as l } from "./TruncatedText.js";
4
+ import { textStyles as c } from "./textStyles.js";
5
+ import { token as t } from "./token.js";
6
+ import { useCardContext as g } from "./context.js";
7
+ function N({
8
+ thumbnail: n,
9
+ title: e,
10
+ detail: o,
11
+ icon: a,
12
+ isNotTruncated: d = !1,
13
+ ...m
14
+ }) {
15
+ const {
16
+ cardTitleId: s
17
+ } = g();
18
+ return /* @__PURE__ */ p(h, { ...m, children: [
19
+ n ? /* @__PURE__ */ i(f, { children: n }) : null,
20
+ /* @__PURE__ */ i(u, { id: s, children: d ? e : /* @__PURE__ */ i(l, { children: e }) }),
21
+ o ? /* @__PURE__ */ i(w, { children: d ? o : /* @__PURE__ */ i(l, { children: o }) }) : null,
22
+ a ? /* @__PURE__ */ i(x, { children: a }) : null
23
+ ] });
24
+ }
25
+ const h = r.div.withConfig({
26
+ displayName: "HeaderStyled",
27
+ componentId: "sc-1o0trsi-0"
28
+ })(["display:grid;grid-template-areas:'thumbnail title icon' 'thumbnail detail icon';grid-template-columns:auto 1fr auto;padding:var(--card-content-padding);"]), f = r.div.withConfig({
29
+ displayName: "ThumbnailContainer",
30
+ componentId: "sc-1o0trsi-1"
31
+ })(["grid-area:thumbnail;margin-top:2px;margin-right:", ";"], t.spacing4), u = r.div.withConfig({
32
+ displayName: "Title",
33
+ componentId: "sc-1o0trsi-2"
34
+ })(["", " grid-area:title;min-width:0;color:", ";overflow-wrap:break-word;"], c.uiTextM, t.colorText), w = r.div.withConfig({
35
+ displayName: "Detail",
36
+ componentId: "sc-1o0trsi-3"
37
+ })(["", " grid-area:detail;min-width:0;margin-top:", ";color:", ";overflow-wrap:break-word;"], c.uiTextS, t.spacing2, t.colorTextMuted), x = r.div.withConfig({
38
+ displayName: "IconContainer",
39
+ componentId: "sc-1o0trsi-4"
40
+ })(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:", ";color:", ";"], t.spacing2, t.gray600);
41
+ export {
42
+ N as Header
43
+ };
package/Header22.js ADDED
@@ -0,0 +1,15 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { Box as m } from "./Box.js";
3
+ import { Item as c } from "./Item.js";
4
+ function x({
5
+ rightElements: r,
6
+ subtext: o,
7
+ thumbnail: d,
8
+ title: n,
9
+ ...p
10
+ }) {
11
+ return /* @__PURE__ */ i(m, { paddingBlock: "3", paddingInline: "6", ...p, children: (r || o || d || n) && /* @__PURE__ */ i(c, { thumbnail: d, rightElements: r, subtext: o, children: n }) });
12
+ }
13
+ export {
14
+ x as Header
15
+ };
package/HelperText.js ADDED
@@ -0,0 +1,26 @@
1
+ import { jsxs as p, jsx as l } from "react/jsx-runtime";
2
+ import o from "./styled-components.browser.esm.js";
3
+ import { textStyles as s } from "./textStyles.js";
4
+ import { token as t } from "./token.js";
5
+ import { useGroupParent as a } from "./useGroupContext.js";
6
+ function h({
7
+ icon: e,
8
+ isInvalid: n,
9
+ children: i,
10
+ ...r
11
+ }) {
12
+ return a("HelperText"), /* @__PURE__ */ p(d, { $isInvalid: n, $hasIcon: !!e, ...r, children: [
13
+ e && /* @__PURE__ */ l(m, { children: e }),
14
+ i
15
+ ] });
16
+ }
17
+ const d = o.div.withConfig({
18
+ displayName: "HelperTextStyled",
19
+ componentId: "sc-16g18nz-0"
20
+ })(["", " display:flex;align-items:center;margin-top:", ";padding-top:", ";color:", ";"], s.uiTextS, t.spacing2, (e) => e.$hasIcon ? "2px" : "0", (e) => e.$isInvalid ? t.red500 : t.colorTextMuted), m = o.div.withConfig({
21
+ displayName: "Icon",
22
+ componentId: "sc-16g18nz-1"
23
+ })(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:", ";"], t.spacing2);
24
+ export {
25
+ h as HelperText
26
+ };
@@ -1,11 +1,11 @@
1
1
  import { jsxs as x, jsx as n } from "react/jsx-runtime";
2
2
  import { useState as g, useRef as b, useEffect as f } from "react";
3
- import { styled as d } from "styled-components";
4
- import { token as h } from "@bynder/design-system";
3
+ import d from "./styled-components.browser.esm.js";
4
+ import { token as h } from "./token.js";
5
5
  import { useDimensions as p } from "./useDimensions.js";
6
6
  import { RightArrow as A } from "./RightArrow.js";
7
7
  import { LeftArrow as $ } from "./LeftArrow.js";
8
- function W(r) {
8
+ function j(r) {
9
9
  const [e, c] = g(0), t = b(null), { dimensions: s, remeasure: m } = p(t.current), o = t.current !== null ? t.current.scrollWidth - t.current.clientWidth : 0, l = s !== void 0 ? Math.ceil(s.width) < s.scrollWidth : !1;
10
10
  f(() => {
11
11
  m(t.current);
@@ -46,5 +46,5 @@ const z = d.div`
46
46
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15);
47
47
  `;
48
48
  export {
49
- W as HorizontalScroll
49
+ j as HorizontalScroll
50
50
  };
package/HttpHandler.js ADDED
@@ -0,0 +1,74 @@
1
+ import { devUtils as n } from "./devUtils.js";
2
+ import { isStringEqual as i } from "./isStringEqual.js";
3
+ import { getStatusCodeColor as c } from "./getStatusCodeColor.js";
4
+ import { getTimestamp as u } from "./getTimestamp.js";
5
+ import { serializeRequest as m } from "./serializeRequest.js";
6
+ import { serializeResponse as l } from "./serializeResponse.js";
7
+ import { matchRequestUrl as h } from "./matchRequestUrl.js";
8
+ import { toPublicUrl as p } from "./toPublicUrl.js";
9
+ import { getAllRequestCookies as d } from "./getRequestCookies.js";
10
+ import { cleanUrl as f, getSearchParams as R } from "./cleanUrl.js";
11
+ import { RequestHandler as q } from "./RequestHandler.js";
12
+ var g = /* @__PURE__ */ ((t) => (t.HEAD = "HEAD", t.GET = "GET", t.POST = "POST", t.PUT = "PUT", t.PATCH = "PATCH", t.OPTIONS = "OPTIONS", t.DELETE = "DELETE", t))(g || {});
13
+ class A extends q {
14
+ constructor(e, r, o, s) {
15
+ super({
16
+ info: {
17
+ header: `${e} ${r}`,
18
+ path: r,
19
+ method: e
20
+ },
21
+ resolver: o,
22
+ options: s
23
+ }), this.checkRedundantQueryParameters();
24
+ }
25
+ checkRedundantQueryParameters() {
26
+ const { method: e, path: r } = this.info;
27
+ if (r instanceof RegExp || f(r) === r)
28
+ return;
29
+ R(r).forEach((a, P) => {
30
+ }), n.warn(
31
+ `Found a redundant usage of query parameters in the request handler URL for "${e} ${r}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/recipes/query-parameters`
32
+ );
33
+ }
34
+ async parse(e) {
35
+ var r;
36
+ const o = new URL(e.request.url), s = h(
37
+ o,
38
+ this.info.path,
39
+ (r = e.resolutionContext) == null ? void 0 : r.baseUrl
40
+ ), a = d(e.request);
41
+ return {
42
+ match: s,
43
+ cookies: a
44
+ };
45
+ }
46
+ predicate(e) {
47
+ const r = this.matchMethod(e.request.method), o = e.parsedResult.match.matches;
48
+ return r && o;
49
+ }
50
+ matchMethod(e) {
51
+ return this.info.method instanceof RegExp ? this.info.method.test(e) : i(this.info.method, e);
52
+ }
53
+ extendResolverArgs(e) {
54
+ var r;
55
+ return {
56
+ params: ((r = e.parsedResult.match) == null ? void 0 : r.params) || {},
57
+ cookies: e.parsedResult.cookies
58
+ };
59
+ }
60
+ async log(e) {
61
+ const r = p(e.request.url), o = await m(e.request), s = await l(e.response), a = c(s.status);
62
+ console.groupCollapsed(
63
+ n.formatMessage(
64
+ `${u()} ${e.request.method} ${r} (%c${s.status} ${s.statusText}%c)`
65
+ ),
66
+ `color:${a}`,
67
+ "color:inherit"
68
+ ), console.log("Request", o), console.log("Handler:", this), console.log("Response", s), console.groupEnd();
69
+ }
70
+ }
71
+ export {
72
+ A as HttpHandler,
73
+ g as HttpMethods
74
+ };
@@ -0,0 +1,85 @@
1
+ import { normalizeResponseInit as s, decorateResponse as a } from "./decorators.js";
2
+ class r extends Response {
3
+ constructor(t, n) {
4
+ const e = s(n);
5
+ super(t, e), a(this, e);
6
+ }
7
+ /**
8
+ * Create a `Response` with a `Content-Type: "text/plain"` body.
9
+ * @example
10
+ * HttpResponse.text('hello world')
11
+ * HttpResponse.text('Error', { status: 500 })
12
+ */
13
+ static text(t, n) {
14
+ const e = s(n);
15
+ return e.headers.has("Content-Type") || e.headers.set("Content-Type", "text/plain"), e.headers.has("Content-Length") || e.headers.set(
16
+ "Content-Length",
17
+ t ? new Blob([t]).size.toString() : "0"
18
+ ), new r(t, e);
19
+ }
20
+ /**
21
+ * Create a `Response` with a `Content-Type: "application/json"` body.
22
+ * @example
23
+ * HttpResponse.json({ firstName: 'John' })
24
+ * HttpResponse.json({ error: 'Not Authorized' }, { status: 401 })
25
+ */
26
+ static json(t, n) {
27
+ const e = s(n);
28
+ e.headers.has("Content-Type") || e.headers.set("Content-Type", "application/json");
29
+ const o = JSON.stringify(t);
30
+ return e.headers.has("Content-Length") || e.headers.set(
31
+ "Content-Length",
32
+ o ? new Blob([o]).size.toString() : "0"
33
+ ), new r(
34
+ o,
35
+ e
36
+ );
37
+ }
38
+ /**
39
+ * Create a `Response` with a `Content-Type: "application/xml"` body.
40
+ * @example
41
+ * HttpResponse.xml(`<user name="John" />`)
42
+ * HttpResponse.xml(`<article id="abc-123" />`, { status: 201 })
43
+ */
44
+ static xml(t, n) {
45
+ const e = s(n);
46
+ return e.headers.has("Content-Type") || e.headers.set("Content-Type", "text/xml"), new r(t, e);
47
+ }
48
+ /**
49
+ * Create a `Response` with a `Content-Type: "text/html"` body.
50
+ * @example
51
+ * HttpResponse.html(`<p class="author">Jane Doe</p>`)
52
+ * HttpResponse.html(`<main id="abc-123">Main text</main>`, { status: 201 })
53
+ */
54
+ static html(t, n) {
55
+ const e = s(n);
56
+ return e.headers.has("Content-Type") || e.headers.set("Content-Type", "text/html"), new r(t, e);
57
+ }
58
+ /**
59
+ * Create a `Response` with an `ArrayBuffer` body.
60
+ * @example
61
+ * const buffer = new ArrayBuffer(3)
62
+ * const view = new Uint8Array(buffer)
63
+ * view.set([1, 2, 3])
64
+ *
65
+ * HttpResponse.arrayBuffer(buffer)
66
+ */
67
+ static arrayBuffer(t, n) {
68
+ const e = s(n);
69
+ return t && !e.headers.has("Content-Length") && e.headers.set("Content-Length", t.byteLength.toString()), new r(t, e);
70
+ }
71
+ /**
72
+ * Create a `Response` with a `FormData` body.
73
+ * @example
74
+ * const data = new FormData()
75
+ * data.set('name', 'Alice')
76
+ *
77
+ * HttpResponse.formData(data)
78
+ */
79
+ static formData(t, n) {
80
+ return new r(t, s(n));
81
+ }
82
+ }
83
+ export {
84
+ r as HttpResponse
85
+ };