@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
@@ -1,18 +1,21 @@
1
- import { jsx as o, Fragment as T, jsxs as C } from "react/jsx-runtime";
2
- import { useState as p, useRef as m, useEffect as q } from "react";
3
- import { styled as f } from "styled-components";
4
- import { Box as G, token as w, Flex as J, Button as K } from "@bynder/design-system";
5
- import { IconArrowLeft as Q, IconArrowRight as Y } from "@bynder/icons";
1
+ import { jsx as n, Fragment as T, jsxs as C } from "react/jsx-runtime";
2
+ import { useState as u, useRef as m, useEffect as q } from "react";
3
+ import f from "./styled-components.browser.esm.js";
4
+ import { Box as G } from "./Box.js";
5
+ import { Button as J } from "./Button.js";
6
+ import { Flex as K } from "./Flex.js";
7
+ import { token as w } from "./token.js";
8
+ import { IconArrowLeft as Q, IconArrowRight as Y } from "./index4.js";
6
9
  import { useConfig as Z } from "./ConfigContext.js";
7
10
  import { useAssetFilter as tt } from "./AssetFilterContext.js";
8
11
  import { Dropdown as et } from "./Dropdown.js";
9
12
  import { Autocomplete as rt } from "./Autocomplete_new.js";
10
- import { SmartFilterSelect as nt } from "./SmartFilterSelect_new.js";
11
- import { getAutocompleteOptions as ot } from "./autocomplete.js";
13
+ import { SmartFilterSelect as ot } from "./SmartFilterSelect_new.js";
14
+ import { getAutocompleteOptions as nt } from "./autocomplete.js";
12
15
  import { useAuth as it } from "./LoginContext.js";
13
16
  import { debounceAsync as st } from "./asyncDebounce.js";
14
- const Ot = ({ filterData: l }) => {
15
- const i = tt(), b = it(), { language: y } = Z(), $ = lt(l), [L, D] = p({}), [X, A] = p(), [I, M] = p({}), [g, d] = p(0), [c, P] = p(0), [O, F] = p(!1), a = m(null), x = m(!1), u = m(null), h = m(null), S = m({});
17
+ const Ct = ({ filterData: l }) => {
18
+ const i = tt(), b = it(), { language: y } = Z(), k = lt(l), [L, D] = u({}), [X, A] = u(), [I, M] = u({}), [g, d] = u(0), [c, P] = u(0), [O, F] = u(!1), a = m(null), x = m(!1), p = m(null), h = m(null), S = m({});
16
19
  q(() => {
17
20
  a.current && P(a.current.scrollWidth - a.current.clientWidth), i.isDropdownActive || (D({}), A({}));
18
21
  }, [l, a, i]);
@@ -29,21 +32,21 @@ const Ot = ({ filterData: l }) => {
29
32
  return t <= c - 100 ? t : c;
30
33
  });
31
34
  }
32
- const N = async (e, t, n) => {
35
+ const N = async (e, t, o) => {
33
36
  let s;
34
37
  M((r) => ({
35
38
  ...r,
36
39
  [t]: !0
37
- })), e.length >= 2 && (s = await ot({
40
+ })), e.length >= 2 && (s = await nt({
38
41
  metapropertyId: t,
39
42
  auth: b,
40
43
  searchTerm: e,
41
- page: n
44
+ page: o
42
45
  })), A((r) => ({
43
46
  ...r,
44
47
  [t]: s ? {
45
48
  ...s,
46
- metapropertyOptions: n > 1 ? [
49
+ metapropertyOptions: o > 1 ? [
47
50
  ...r?.[t]?.metapropertyOptions || [],
48
51
  ...s.metapropertyOptions
49
52
  ] : s.metapropertyOptions
@@ -52,36 +55,36 @@ const Ot = ({ filterData: l }) => {
52
55
  ...r,
53
56
  [t]: !1
54
57
  }));
55
- }, W = (e) => (S.current[e] || (S.current[e] = st(N, 500)), S.current[e]), v = (e, t, n) => {
56
- i.selectSmartfilterOption(e, t, n);
57
- }, j = (e, t, n) => {
58
+ }, W = (e) => (S.current[e] || (S.current[e] = st(N, 500)), S.current[e]), v = (e, t, o) => {
59
+ i.selectSmartfilterOption(e, t, o);
60
+ }, _ = (e, t, o) => {
58
61
  D((r) => ({
59
62
  ...r,
60
63
  [e]: t
61
- })), W(e)(t, e, n);
64
+ })), W(e)(t, e, o);
65
+ }, j = (e) => {
66
+ p.current = e.clientX, x.current = !1, F(!0);
62
67
  }, B = (e) => {
63
- u.current = e.clientX, x.current = !1, F(!0);
64
- }, H = (e) => {
65
68
  if (x.current) {
66
69
  e.preventDefault();
67
- const t = (n) => {
68
- n.stopPropagation(), document.removeEventListener("click", t, !0);
70
+ const t = (o) => {
71
+ o.stopPropagation(), document.removeEventListener("click", t, !0);
69
72
  };
70
73
  document.addEventListener("click", t, {
71
74
  capture: !0,
72
75
  once: !0
73
76
  });
74
77
  }
75
- u.current = null, h.current = null, F(!1);
76
- }, V = (e) => {
77
- if (!O || !a.current || !u.current) return;
78
- e.preventDefault(), h.current === null && (h.current = g), u.current && Math.abs(e.clientX - u.current) > 5 && (x.current = !0);
79
- const t = (e.clientX - u.current) * -1 + h.current;
78
+ p.current = null, h.current = null, F(!1);
79
+ }, H = (e) => {
80
+ if (!O || !a.current || !p.current) return;
81
+ e.preventDefault(), h.current === null && (h.current = g), p.current && Math.abs(e.clientX - p.current) > 5 && (x.current = !0);
82
+ const t = (e.clientX - p.current) * -1 + h.current;
80
83
  return t <= 16 ? d(0) : t + 16 < c ? d(t) : d(c);
81
84
  };
82
- return /* @__PURE__ */ o(T, { children: $.map((e) => {
83
- const t = e.smartfilter, n = e.metapropertyFilters;
84
- return /* @__PURE__ */ o(
85
+ return /* @__PURE__ */ n(T, { children: k.map((e) => {
86
+ const t = e.smartfilter, o = e.metapropertyFilters;
87
+ return /* @__PURE__ */ n(
85
88
  et,
86
89
  {
87
90
  title: t.labels[y] || t.labels.en_US,
@@ -93,33 +96,33 @@ const Ot = ({ filterData: l }) => {
93
96
  ct,
94
97
  {
95
98
  ref: a,
96
- onMouseDown: B,
97
- onMouseUp: H,
98
- onMouseMove: V,
99
+ onMouseDown: j,
100
+ onMouseUp: B,
101
+ onMouseMove: H,
99
102
  children: [
100
- /* @__PURE__ */ o(
103
+ /* @__PURE__ */ n(
101
104
  at,
102
105
  {
103
106
  $scroll: g,
104
107
  "data-testid": "metaproperty-dropdown-content",
105
108
  $isDragging: O,
106
- children: n.map((s) => {
109
+ children: o.map((s) => {
107
110
  const r = s.metaproperty;
108
111
  if (!i.existingFilters?.[r.name] || r.type !== "autocomplete" && (r.type !== "smart-single" && r.type !== "select" || r.options.length === 0))
109
112
  return null;
110
- const _ = r.type === "autocomplete" ? /* @__PURE__ */ o(
113
+ const V = r.type === "autocomplete" ? /* @__PURE__ */ n(
111
114
  rt,
112
115
  {
113
116
  metaproperty: r,
114
117
  value: L[r.id] || "",
115
- onChange: j,
118
+ onChange: _,
116
119
  onOptionSelect: v,
117
120
  autocompleteOptions: X || {},
118
121
  isLoading: I[r.id] || !1,
119
122
  selectedOptions: i.selectedSmartfilterOptions || {}
120
123
  }
121
- ) : /* @__PURE__ */ o(
122
- nt,
124
+ ) : /* @__PURE__ */ n(
125
+ ot,
123
126
  {
124
127
  metaproperty: r,
125
128
  smartfilterId: t.id,
@@ -129,26 +132,26 @@ const Ot = ({ filterData: l }) => {
129
132
  metapropertyCursor: s.metadata.nextCursorMark
130
133
  }
131
134
  );
132
- return /* @__PURE__ */ o(ut, { children: _ }, r.id);
135
+ return /* @__PURE__ */ n(pt, { children: V }, r.id);
133
136
  })
134
137
  }
135
138
  ),
136
- /* @__PURE__ */ C(pt, { direction: "row", justifyContent: "flex-end", children: [
137
- /* @__PURE__ */ o(
138
- k,
139
+ /* @__PURE__ */ C(ut, { direction: "row", justifyContent: "flex-end", children: [
140
+ /* @__PURE__ */ n(
141
+ $,
139
142
  {
140
143
  title: "Previous",
141
- icon: /* @__PURE__ */ o(Q, {}),
144
+ icon: /* @__PURE__ */ n(Q, {}),
142
145
  onClick: z,
143
146
  "data-testid": "left-arrow",
144
147
  isDisabled: R
145
148
  }
146
149
  ),
147
- /* @__PURE__ */ o(
148
- k,
150
+ /* @__PURE__ */ n(
151
+ $,
149
152
  {
150
153
  title: "Next",
151
- icon: /* @__PURE__ */ o(Y, {}),
154
+ icon: /* @__PURE__ */ n(Y, {}),
152
155
  onClick: E,
153
156
  "data-testid": "right-arrow",
154
157
  isDisabled: !U
@@ -177,14 +180,14 @@ const ct = f.div`
177
180
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15);
178
181
  width: fit-content;
179
182
  cursor: ${(l) => l.$isDragging ? "grabbing" : "default"};
180
- `, ut = f(G)`
183
+ `, pt = f(G)`
181
184
  border-right: 1px solid rgba(3, 16, 38, 0.1);
182
185
  max-width: 300px;
183
- `, pt = f(J)`
186
+ `, ut = f(K)`
184
187
  padding: ${w.spacing3};
185
188
  border-top: 1px solid rgba(3, 16, 38, 0.1);
186
189
  gap: ${w.spacing3};
187
- `, k = f(K)`
190
+ `, $ = f(J)`
188
191
  padding: ${w.spacing3};
189
192
  border-radius: 6px;
190
193
  border: 1px solid rgba(3, 16, 38, 0.1);
@@ -192,5 +195,5 @@ const ct = f.div`
192
195
  cursor: pointer;
193
196
  `;
194
197
  export {
195
- Ot as Smartfilter
198
+ Ct as Smartfilter
196
199
  };
package/Spinner.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { styled as r } from "styled-components";
3
- import { token as n } from "@bynder/design-system";
2
+ import r from "./styled-components.browser.esm.js";
3
+ import { token as n } from "./token.js";
4
4
  function g(i) {
5
5
  return /* @__PURE__ */ e(
6
6
  s,
package/Spinner2.js ADDED
@@ -0,0 +1,15 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import e, { keyframes as r } from "./styled-components.browser.esm.js";
3
+ function h(o) {
4
+ return /* @__PURE__ */ t(n, { viewBox: "0 0 24 24", "aria-hidden": "true", ...o, children: /* @__PURE__ */ t(a, { cx: "12", cy: "12", r: "8", fill: "none", strokeWidth: "3" }) });
5
+ }
6
+ const s = r(["100%{transform:rotate(360deg);}"]), i = r(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]), n = e.svg.withConfig({
7
+ displayName: "Svg",
8
+ componentId: "sc-16b0hpm-0"
9
+ })(["width:24px;height:24px;animation:", " 1s linear infinite;"], s), a = e.circle.withConfig({
10
+ displayName: "Circle",
11
+ componentId: "sc-16b0hpm-1"
12
+ })(["stroke:currentcolor;animation:", " 1.5s ease-in-out infinite;stroke-linecap:round;"], i);
13
+ export {
14
+ h as Spinner
15
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as F } from "react/jsx-runtime";
2
2
  import { useEffect as c } from "react";
3
- import { styled as f } from "styled-components";
4
- import { token as i } from "@bynder/design-system";
5
- import { IconErrorOutline as N } from "@bynder/icons";
3
+ import f from "./styled-components.browser.esm.js";
4
+ import { token as i } from "./token.js";
5
+ import { IconErrorOutline as N } from "./index4.js";
6
6
  import { __ as m } from "./index2.js";
7
7
  import { NoResults as I } from "./NoResults.js";
8
8
  import { useAssetFilter as _ } from "./AssetFilterContext.js";
@@ -13,16 +13,16 @@ import { ActiveFilters as P } from "./ActiveFilters.js";
13
13
  import { pluralize as $ } from "./text.js";
14
14
  import { AssetList as b } from "./AssetList.js";
15
15
  import { DirectionSelect as j } from "./DirectionSelect.js";
16
- import { FieldSelect as k } from "./FieldSelect.js";
17
- import { Tooltip as z } from "./Tooltip.js";
18
- import { useSearchStore as B } from "./useSearchStore.js";
19
- import { useSimilaritySearchStore as H } from "./useSimilaritySearchStore.js";
16
+ import { FieldSelect as U } from "./FieldSelect.js";
17
+ import { Tooltip as k } from "./Tooltip.js";
18
+ import { useSearchStore as z } from "./useSearchStore.js";
19
+ import { useSimilaritySearchStore as B } from "./useSimilaritySearchStore.js";
20
20
  function ce(e) {
21
- const { data: s, isLoading: r, loadMore: g, hasNextPage: p, executeQuery: d } = e.connection, { setIsLoading: S, setSearch: a } = B(), l = w(), A = D(), { selectAssets: h, toggleAssets: v, setAllAssets: L } = R(), x = _(), {
21
+ const { data: s, isLoading: r, loadMore: g, hasNextPage: p, executeQuery: d } = e.connection, { setIsLoading: S, setSearch: a } = z(), l = w(), A = D(), { selectAssets: h, toggleAssets: v, setAllAssets: L } = R(), x = _(), {
22
22
  isNLSSelected: E,
23
23
  NLSSearchText: y,
24
24
  isSelected: C
25
- } = H();
25
+ } = B();
26
26
  if (c(() => {
27
27
  r || S(!1);
28
28
  }, [r]), c(() => {
@@ -46,18 +46,18 @@ function ce(e) {
46
46
  onSelect: h,
47
47
  onToggle: v,
48
48
  emptyStateElement: /* @__PURE__ */ t(I, { onReset: T }),
49
- children: /* @__PURE__ */ F(O, { children: [
50
- o !== void 0 && /* @__PURE__ */ t(U, { "data-testid": "assets-amount", children: $(o, m("{} asset"), m("{} assets")) }, o),
49
+ children: /* @__PURE__ */ F(H, { children: [
50
+ o !== void 0 && /* @__PURE__ */ t(O, { "data-testid": "assets-amount", children: $(o, m("{} asset"), m("{} assets")) }, o),
51
51
  e.showActiveFilters && /* @__PURE__ */ t(P, {}),
52
52
  /* @__PURE__ */ t(
53
- k,
53
+ U,
54
54
  {
55
55
  options: n ? ["NL_SEARCH"] : ["CREATED_AT", "PUBLISHED_AT", "UPDATED_AT", "NAME"]
56
56
  }
57
57
  ),
58
58
  /* @__PURE__ */ t(j, { nlSearch: n }),
59
59
  n && /* @__PURE__ */ t(
60
- z,
60
+ k,
61
61
  {
62
62
  text: `You cannot change the sorting criteria while a Visual Similarity filter
63
63
  is being applied`,
@@ -83,13 +83,13 @@ function u(e) {
83
83
  value: e.value.searchAssets.assets.nodes
84
84
  };
85
85
  }
86
- const O = f.div`
86
+ const H = f.div`
87
87
  display: flex;
88
88
  justify-content: space-between;
89
89
  align-items: center;
90
90
  z-index: 10;
91
91
  padding: ${i.spacing5} ${i.spacing5} ${i.spacing3} ${i.spacing5};
92
- `, U = f.span`
92
+ `, O = f.span`
93
93
  color: rgba(0, 34, 51, 0.5);
94
94
  flex-shrink: 0;
95
95
  animation: fade-in-down 0.15s ease-out;
package/Stats.js ADDED
@@ -0,0 +1,16 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import r from "./styled-components.browser.esm.js";
3
+ import { token as t } from "./token.js";
4
+ function s({
5
+ children: o,
6
+ ...p
7
+ }) {
8
+ return /* @__PURE__ */ a(n, { ...p, children: o });
9
+ }
10
+ const n = r.div.withConfig({
11
+ displayName: "StatsStyled",
12
+ componentId: "sc-1pp7wmq-0"
13
+ })(["display:flex;flex-wrap:wrap;row-gap:", ";column-gap:", ";padding:var(--card-content-padding);border-top:1px solid ", ";"], t.spacing4, t.spacing5, t.gray100a);
14
+ export {
15
+ s as Stats
16
+ };
package/StatsItem.js ADDED
@@ -0,0 +1,23 @@
1
+ import { jsx as o, jsxs as l } from "react/jsx-runtime";
2
+ import p from "./styled-components.browser.esm.js";
3
+ import { Tooltip as s } from "./Tooltip2.js";
4
+ import { token as e } from "./token.js";
5
+ import { textStyles as a } from "./textStyles.js";
6
+ function y({
7
+ icon: i,
8
+ children: t,
9
+ title: m,
10
+ ...n
11
+ }) {
12
+ return t && t.toString().length > 3, /* @__PURE__ */ o(s, { content: m, timing: "delay", children: (r) => /* @__PURE__ */ l(c, { ...n, ...r, children: [
13
+ /* @__PURE__ */ o("div", { children: i }),
14
+ t ? /* @__PURE__ */ o("span", { children: t }) : null
15
+ ] }) });
16
+ }
17
+ const c = p.div.withConfig({
18
+ displayName: "StatItemStyled",
19
+ componentId: "sc-1f3t5ym-0"
20
+ })(["", " display:flex;column-gap:", ";align-items:center;color:", ";"], a.uiTextS, e.spacing2, e.colorTextMuted);
21
+ export {
22
+ y as StatsItem
23
+ };
package/Status.js ADDED
@@ -0,0 +1,32 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { token as r } from "./token.js";
3
+ import { SvgIcon as i } from "./styles2.js";
4
+ const o = {
5
+ online: a,
6
+ offline: c,
7
+ inactive: l
8
+ };
9
+ function s({
10
+ type: n
11
+ }) {
12
+ const e = o[n];
13
+ return /* @__PURE__ */ t(e, { "data-thumbnail-status": !0 });
14
+ }
15
+ function a({
16
+ ...n
17
+ }) {
18
+ return /* @__PURE__ */ t(i, { viewBox: "0 0 24 24", "aria-hidden": "true", fill: r.teal500, ...n, children: /* @__PURE__ */ t("path", { d: "M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 " }) });
19
+ }
20
+ function c({
21
+ ...n
22
+ }) {
23
+ return /* @__PURE__ */ t(i, { viewBox: "0 0 24 24", "aria-hidden": "true", fill: r.gray400, ...n, children: /* @__PURE__ */ t("path", { d: "M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 " }) });
24
+ }
25
+ function l({
26
+ ...n
27
+ }) {
28
+ return /* @__PURE__ */ t(i, { viewBox: "0 0 24 24", "aria-hidden": "true", fill: "transparent", ...n, children: /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9", stroke: r.gray400, strokeWidth: "4" }) });
29
+ }
30
+ export {
31
+ s as Status
32
+ };
package/Switch.js ADDED
@@ -0,0 +1,82 @@
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { useFocusRing as k } from "./useFocusRing.js";
3
+ import t, { css as h } from "./styled-components.browser.esm.js";
4
+ import { textStyles as y } from "./textStyles.js";
5
+ import { token as o } from "./token.js";
6
+ import { makeInternalTokens as $ } from "./makeInternalTokens.js";
7
+ const l = "ds-switch__pointer-events-wrapper";
8
+ function v({
9
+ children: i,
10
+ isChecked: b,
11
+ isDisabled: n,
12
+ inputProps: p,
13
+ onChange: g = () => {
14
+ },
15
+ // eslint-disable-line @typescript-eslint/no-empty-function
16
+ subtext: s,
17
+ "aria-label": f,
18
+ "aria-labelledby": u,
19
+ ...m
20
+ }) {
21
+ const {
22
+ isFocusVisible: w,
23
+ focusProps: x
24
+ } = k();
25
+ return /* @__PURE__ */ d(D, { $hasSubtext: !!s, $isDisabled: n, className: l, ...m, children: [
26
+ i && /* @__PURE__ */ d(S, { children: [
27
+ i,
28
+ s ? /* @__PURE__ */ r(z, { $isDisabled: n, children: s }) : null
29
+ ] }),
30
+ /* @__PURE__ */ r(I, { children: /* @__PURE__ */ d(c, { children: [
31
+ /* @__PURE__ */ r("input", { role: "switch", type: "checkbox", disabled: n, onChange: g, checked: b, "aria-checked": b, "aria-label": f, "aria-labelledby": u, ...x, ...p }),
32
+ /* @__PURE__ */ r(C, { "aria-hidden": "true", $isDisabled: n, $isFocusVisible: w })
33
+ ] }) })
34
+ ] });
35
+ }
36
+ v.pointerEventsClassname = l;
37
+ const {
38
+ internalTokens: e,
39
+ declareTokens: T
40
+ } = $({
41
+ lightTheme: {
42
+ "switch-indicator-background-off": o.gray75,
43
+ "switch-indicator-background-off-hover": o.gray100,
44
+ "switch-indicator-handle-box-shadow": o.elevation2,
45
+ "switch-focus-ring-color": o.gray200,
46
+ "switch-indicator-background-off-disabled": o.gray100,
47
+ "switch-indicator-handle-color-off-disabled": o.gray50,
48
+ "switch-indicator-background-on-disabled": o.gray400,
49
+ "switch-indicator-handle-color-on-disabled": o.gray100
50
+ },
51
+ darkTheme: {
52
+ "switch-indicator-background-off": o.gray75a,
53
+ "switch-indicator-background-off-hover": o.gray100a,
54
+ "switch-indicator-handle-box-shadow": "none",
55
+ "switch-focus-ring-color": o.gray200a,
56
+ "switch-indicator-background-off-disabled": o.gray100a,
57
+ "switch-indicator-handle-color-off-disabled": o.gray200a,
58
+ "switch-indicator-background-on-disabled": o.gray400a,
59
+ "switch-indicator-handle-color-on-disabled": o.gray200a
60
+ }
61
+ }), D = t.label.withConfig({
62
+ displayName: "SwitchStyled",
63
+ componentId: "sc-13zxk6h-0"
64
+ })(["", " ", " display:flex;align-items:", ";margin:0;padding:", " 0;color:", ";cursor:", ";user-select:none;"], T, y.uiTextM, (i) => i.$hasSubtext ? "center" : "baseline", o.spacing1, o.colorText, (i) => !i.$isDisabled && "pointer"), S = t.span.withConfig({
65
+ displayName: "Label",
66
+ componentId: "sc-13zxk6h-1"
67
+ })(["align-self:center;margin-right:", ";"], o.spacing4), z = t.span.withConfig({
68
+ displayName: "SubtextHolder",
69
+ componentId: "sc-13zxk6h-2"
70
+ })(["display:block;color:", ";font-size:", ";"], (i) => i.$isDisabled ? o.colorTextDisabled : o.colorTextMuted, o.fontSize75), I = t.span.withConfig({
71
+ displayName: "ToggleAlignment",
72
+ componentId: "sc-13zxk6h-3"
73
+ })(["position:static !important;margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]), c = t.span.withConfig({
74
+ displayName: "Toggle",
75
+ componentId: "sc-13zxk6h-4"
76
+ })(["position:relative !important;display:inline-block;vertical-align:middle;width:36px;height:22px;input{position:absolute;opacity:0;}"]), a = "." + l, C = t.span.withConfig({
77
+ displayName: "Indicator",
78
+ componentId: "sc-13zxk6h-5"
79
+ })(["position:absolute !important;top:0;right:0;bottom:0;left:0;box-sizing:border-box;width:100%;height:100%;border-radius:", ";background:", ";cursor:", ";transition:0.2s;&::before{content:'';position:absolute;right:calc(100% - 20px);bottom:2px;left:2px;height:18px;border-radius:50%;background-color:", ";box-shadow:", ";transition:0.2s;}", " input:checked + &&{background-color:", ";opacity:", ";&::before{right:2px;left:calc(100% - 20px);background-color:", ";}}", " ", ":hover &&,", ":focus-visible &&{background-color:", ";}", ":hover input:checked + &&,", ":focus-visible input:checked + &&{background-color:", ";}", ""], o.radiusPill, (i) => i.$isDisabled ? e["switch-indicator-background-off-disabled"] : e["switch-indicator-background-off"], (i) => !i.$isDisabled && "pointer", (i) => i.$isDisabled ? e["switch-indicator-handle-color-off-disabled"] : o.white, e["switch-indicator-handle-box-shadow"], c, (i) => i.$isDisabled ? e["switch-indicator-background-on-disabled"] : o.blue500, (i) => i.$isDisabled ? "0.5" : "1", (i) => i.$isDisabled ? e["switch-indicator-handle-color-on-disabled"] : o.white, (i) => !i.$isDisabled && h(["", ":active input + &&::before{right:calc(100% - 24px);left:2px;border-radius:9px;}", ":active input:checked + &&::before{right:2px;left:calc(100% - 24px);}"], a, a), a, a, (i) => !i.$isDisabled && e["switch-indicator-background-off-hover"], a, a, (i) => !i.$isDisabled && o.blue600, (i) => i.$isFocusVisible && h(["", " input + &&{background-color:", ";&::after{content:'';position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:2px solid ", ";border-radius:100px;}}", " input:checked + &&::after{border-color:", ";}"], c, o.gray100, e["switch-focus-ring-color"], c, o.blue500));
80
+ export {
81
+ v as Switch
82
+ };
package/SwitchNLS.js CHANGED
@@ -1,13 +1,16 @@
1
1
  import { jsxs as l, jsx as i } from "react/jsx-runtime";
2
- import r from "styled-components";
3
- import { token as e, textStyles as s, TruncatedText as c, Switch as f } from "@bynder/design-system";
4
- import { IconSmart as m } from "@bynder/icons";
2
+ import o from "./styled-components.browser.esm.js";
3
+ import { Switch as m } from "./Switch.js";
4
+ import { TruncatedText as c } from "./TruncatedText.js";
5
+ import { token as r } from "./token.js";
6
+ import { textStyles as s } from "./textStyles.js";
7
+ import { IconSmart as f } from "./index4.js";
5
8
  import { __ as d } from "./index2.js";
6
- const C = ({ isNLSSearchOn: n, setIsNLSSearchOn: o }) => {
9
+ const j = ({ isNLSSearchOn: e, setIsNLSSearchOn: n }) => {
7
10
  const a = (t) => {
8
- t && t.currentTarget !== t.target || (t?.stopPropagation(), o(!n));
11
+ t && t.currentTarget !== t.target || (t?.stopPropagation(), n(!e));
9
12
  }, g = () => {
10
- o(!n);
13
+ n(!e);
11
14
  };
12
15
  return /* @__PURE__ */ l(
13
16
  p,
@@ -19,15 +22,15 @@ const C = ({ isNLSSearchOn: n, setIsNLSSearchOn: o }) => {
19
22
  tabIndex: 0,
20
23
  "data-testid": "switch-nls-container",
21
24
  children: [
22
- /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(m, {}) }),
25
+ /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(f, {}) }),
23
26
  /* @__PURE__ */ l(u, { id: "labelId", children: [
24
27
  /* @__PURE__ */ i(c, { children: d("Use natural language search") }),
25
28
  /* @__PURE__ */ i(x, { children: /* @__PURE__ */ i(c, { children: d("Find images by describing them") }) })
26
29
  ] }),
27
30
  /* @__PURE__ */ i(b, { children: /* @__PURE__ */ i(
28
- f,
31
+ m,
29
32
  {
30
- isChecked: n,
33
+ isChecked: e,
31
34
  "aria-labelledby": "labelId",
32
35
  onChange: g
33
36
  }
@@ -35,14 +38,14 @@ const C = ({ isNLSSearchOn: n, setIsNLSSearchOn: o }) => {
35
38
  ]
36
39
  }
37
40
  );
38
- }, p = r.div`
41
+ }, p = o.div`
39
42
  display: flex;
40
43
 
41
44
  align-items: flex-start;
42
- margin: ${e.spacing3};
43
- padding: ${e.spacing3};
45
+ margin: ${r.spacing3};
46
+ padding: ${r.spacing3};
44
47
  background-color: #f3f2fd;
45
- border-radius: ${e.radiusLarge};
48
+ border-radius: ${r.radiusLarge};
46
49
 
47
50
  &:hover {
48
51
  background-color: #eeedfc;
@@ -52,28 +55,28 @@ const C = ({ isNLSSearchOn: n, setIsNLSSearchOn: o }) => {
52
55
  &:active {
53
56
  background-color: #f3f2fd;
54
57
  }
55
- `, h = r.div`
58
+ `, h = o.div`
56
59
  flex: none;
57
- margin-right: ${e.spacing4};
58
- color: ${e.purple500};
59
- `, u = r.div`
60
+ margin-right: ${r.spacing4};
61
+ color: ${r.purple500};
62
+ `, u = o.div`
60
63
  ${s.uiTextM}
61
64
 
62
65
  flex: 1;
63
66
  min-width: 0;
64
67
  font-weight: 400;
65
68
  color: #031026;
66
- `, x = r.div`
69
+ `, x = o.div`
67
70
  ${s.uiTextS}
68
71
 
69
- color: ${e.colorTextMuted};
70
- `, b = r.div`
72
+ color: ${r.colorTextMuted};
73
+ `, b = o.div`
71
74
  display: flex;
72
75
  flex: none;
73
- gap: ${e.spacing3};
76
+ gap: ${r.spacing3};
74
77
  align-items: center;
75
- margin-left: ${e.spacing4};
78
+ margin-left: ${r.spacing4};
76
79
  `;
77
80
  export {
78
- C as SwitchNLS
81
+ j as SwitchNLS
79
82
  };
package/Tabs2.js ADDED
@@ -0,0 +1,10 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { Box as d } from "./Box.js";
3
+ function n({
4
+ children: o
5
+ }) {
6
+ return /* @__PURE__ */ t(d, { paddingTop: "6", paddingRight: "6", paddingBottom: "3", paddingLeft: "6", children: o });
7
+ }
8
+ export {
9
+ n as Tabs
10
+ };
package/TagItem.js CHANGED
@@ -1,29 +1,29 @@
1
1
  import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
- import { styled as n } from "styled-components";
3
- import { token as s } from "@bynder/design-system";
4
- import { Chip as l } from "./Chip.js";
5
- import { useAssetFilter as r } from "./AssetFilterContext.js";
2
+ import n from "./styled-components.browser.esm.js";
3
+ import { token as s } from "./token.js";
4
+ import { Chip as r } from "./Chip2.js";
5
+ import { useAssetFilter as g } from "./AssetFilterContext.js";
6
6
  function x(t) {
7
- const e = r(), i = e.tags.includes(t.tag.name);
7
+ const e = g(), i = e.tags.includes(t.tag.name);
8
8
  function o() {
9
9
  i ? e.removeTag(t.tag.name) : t.isLoading || e.addTag(t.tag.name);
10
10
  }
11
11
  return /* @__PURE__ */ m(
12
- l,
12
+ r,
13
13
  {
14
14
  loading: t.isLoading,
15
15
  active: i,
16
16
  onClick: o,
17
17
  "data-testid": "tag-item",
18
18
  children: [
19
- /* @__PURE__ */ a(g, { children: t.tag.name }),
19
+ /* @__PURE__ */ a(l, { children: t.tag.name }),
20
20
  /* @__PURE__ */ a(c, { children: t.tag.assetCount })
21
21
  ]
22
22
  },
23
23
  t.tag.id
24
24
  );
25
25
  }
26
- const g = n.span`
26
+ const l = n.span`
27
27
  max-with: 128px;
28
28
  overflow: hidden;
29
29
  text-overflow: ellipsis;