@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
@@ -0,0 +1,11 @@
1
+ import r from "./AxiosError.js";
2
+ import i from "./utils6.js";
3
+ function l(o, t, e) {
4
+ r.call(this, o ?? "canceled", r.ERR_CANCELED, t, e), this.name = "CanceledError";
5
+ }
6
+ i.inherits(l, r, {
7
+ __CANCEL__: !0
8
+ });
9
+ export {
10
+ l as default
11
+ };
package/Card.js ADDED
@@ -0,0 +1,84 @@
1
+ import { jsx as t, jsxs as M } from "react/jsx-runtime";
2
+ import { useMemo as j } from "react";
3
+ import s, { css as c } from "./styled-components.browser.esm.js";
4
+ import { IconCheck as F } from "./index4.js";
5
+ import { token as r } from "./token.js";
6
+ import { Frame as z } from "./Frame.js";
7
+ import { CardContext as S } from "./context.js";
8
+ import { Header as K } from "./Header2.js";
9
+ import { AdditionalInfo as N } from "./AdditionalInfo.js";
10
+ import { ContextActionButton as W } from "./ContextActionButton.js";
11
+ import { Images as B, Img as D } from "./Images.js";
12
+ import { FilePlaceholder as H } from "./FilePlaceholder.js";
13
+ import { useId as O } from "./useId.js";
14
+ import { IconPlaceholder as T } from "./IconPlaceholder.js";
15
+ import { Stats as V } from "./Stats.js";
16
+ import { StatsItem as q } from "./StatsItem.js";
17
+ const E = 224;
18
+ function a({
19
+ children: o,
20
+ variant: l = "outlined",
21
+ isSelected: d = !1,
22
+ isSelectButtonSelected: m,
23
+ contextAction: h,
24
+ onClick: v,
25
+ onSelect: n,
26
+ as: y = "button",
27
+ href: x,
28
+ to: w,
29
+ noMinWidth: $,
30
+ selectButtonAriaLabel: C,
31
+ hideSelectButton: u = !1,
32
+ "aria-label": f,
33
+ isDisabled: e = !1,
34
+ ...I
35
+ }) {
36
+ const b = O("card-title"), k = j(() => ({
37
+ variant: l,
38
+ isSelected: d,
39
+ cardTitleId: b
40
+ }), [d, l, b]);
41
+ function P(i) {
42
+ if (e)
43
+ return;
44
+ const A = i.metaKey || i.ctrlKey || i.shiftKey;
45
+ if (n && (A || u)) {
46
+ n(i), i.preventDefault();
47
+ return;
48
+ }
49
+ v?.(i);
50
+ }
51
+ const p = e ? "div" : y;
52
+ return /* @__PURE__ */ t(S.Provider, { value: k, children: /* @__PURE__ */ M(G, { $variant: l, $isSelected: m || d, $noMinWidth: $, $isDisabled: e, ...I, children: [
53
+ /* @__PURE__ */ t(g, { as: p, to: e ? void 0 : w, href: p === "a" ? x : void 0, type: p === "button" ? "button" : void 0, onClick: P, "aria-labelledby": f ? void 0 : b, "aria-label": f, $isDisabled: e, children: o }),
54
+ h && !e ? /* @__PURE__ */ t(Q, { children: h }) : null,
55
+ n && !u ? /* @__PURE__ */ t(J, { type: "button", $isSelected: m ?? d, onClick: n, "aria-label": C, disabled: e, $isDisabled: e, "data-testid": "ds-card-select-button", children: /* @__PURE__ */ t(F, {}) }) : null
56
+ ] }) });
57
+ }
58
+ a.Frame = z;
59
+ a.Header = K;
60
+ a.AdditionalInfo = N;
61
+ a.ContextActionButton = W;
62
+ a.Images = B;
63
+ a.Img = D;
64
+ a.FilePlaceholder = H;
65
+ a.IconPlaceholder = T;
66
+ a.Stats = V;
67
+ a.StatsItem = q;
68
+ const g = s.button.withConfig({
69
+ displayName: "MainAction",
70
+ componentId: "sc-ji6een-0"
71
+ })(["display:block;box-sizing:border-box;width:100%;padding:0;border:none;background:none;font:inherit;text-align:left;text-decoration:none;cursor:", ";"], (o) => o.$isDisabled ? "default" : "pointer"), G = s.div.withConfig({
72
+ displayName: "Container",
73
+ componentId: "sc-ji6een-1"
74
+ })(["--card-border-radius:", ";--card-inner-border-color:", ";--card-inner-border-width:1px;--card-selected-border-color:", ";--card-selected-border-width:2px;--card-elevation:", ";--card-frame-overlay-color:transparent;--card-actions-opacity:0;&:hover{--card-frame-overlay-color:", ";--card-inner-border-color:", ";--card-actions-opacity:1;}&:has(", ":active){--card-frame-overlay-color:", ";--card-inner-border-color:", ";--card-elevation:0 0 0 transparent;}&:focus-within{--card-actions-opacity:1;}", " position:relative;box-sizing:border-box;min-width:", ";border-radius:var(--card-border-radius);background:", ";box-shadow:var(--card-box-shadow);pointer-events:", ";"], r.radiusBase, r.gray200a, (o) => o.$isDisabled ? r.gray400 : r.brandPrimary500, (o) => o.$isDisabled ? "0 0 0 transparent" : r.elevation1, r.gray100a, r.gray300a, g, r.gray200a, r.gray300a, (o) => o.$variant === "outlined" ? c(["--card-frame-border-radius:var(--card-border-radius) var(--card-border-radius) 0 0;--card-box-shadow:var(--card-elevation),inset 0 0 0 var(--card-inner-border-width) var(--card-inner-border-color);--card-frame-border-bottom-width:0;--card-content-padding:", " ", ";&:hover{--card-elevation:", ";}", ""], r.spacing4, r.spacing5, r.elevation2, o.$isSelected ? c(["--card-inner-border-width:var(--card-selected-border-width);--card-inner-border-color:var(--card-selected-border-color);&:hover{--card-inner-border-color:var(--card-selected-border-color);}"]) : "") : c(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:", " 0;"], r.spacing3), (o) => o.$noMinWidth ? "auto" : `${E}px`, r.gray10, (o) => o.$isDisabled ? "none" : "initial"), J = s.button.withConfig({
75
+ displayName: "SelectButton",
76
+ componentId: "sc-ji6een-2"
77
+ })(["position:absolute;top:", ";right:", ";z-index:2;display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;padding:0;border:2px solid rgb(", " / 80%);border-radius:", ";background:none;color:transparent;opacity:", ";cursor:pointer;pointer-events:", ";&:hover{border-color:", ";}&:active{border-width:3px;border-color:", ";}", ""], r.spacing4, r.spacing4, r["white-rgb"], r.radiusCircle, (o) => o.$isSelected ? "1" : "var(--card-actions-opacity)", (o) => o.$isDisabled ? "none" : "initial", r.white, r.white, (o) => o.$isSelected && c(["border:none;background:", ";color:", ";&:hover{background:", ";box-shadow:", ";}&:active{background:", ";box-shadow:none;}"], o.$isDisabled ? r.gray400 : r.brandPrimary500, r.white, r.brandPrimary600, r.elevation1, r.brandPrimary700)), Q = s.div.withConfig({
78
+ displayName: "ActionContainer",
79
+ componentId: "sc-ji6een-3"
80
+ })(["position:absolute;top:", ";left:", ";z-index:2;opacity:var(--card-actions-opacity);"], r.spacing4, r.spacing4);
81
+ export {
82
+ a as Card,
83
+ E as cardMinWidth
84
+ };
package/CardSkeleton.js CHANGED
@@ -1,30 +1,31 @@
1
- import { jsx as r, Fragment as o, jsxs as a } from "react/jsx-runtime";
2
- import { styled as d } from "styled-components";
3
- import { token as l, Card as e } from "@bynder/design-system";
1
+ import { jsx as t, Fragment as o, jsxs as a } from "react/jsx-runtime";
2
+ import d from "./styled-components.browser.esm.js";
3
+ import { Card as i } from "./Card.js";
4
+ import { token as l } from "./token.js";
4
5
  import { Skeleton as m } from "./Skeleton.js";
5
- function p(t) {
6
- return /* @__PURE__ */ r(o, { children: Array(t.rows * t.columns).fill(void 0).map((i, n) => /* @__PURE__ */ r(
7
- c,
6
+ function v(r) {
7
+ return /* @__PURE__ */ t(o, { children: Array(r.rows * r.columns).fill(void 0).map((e, n) => /* @__PURE__ */ t(
8
+ f,
8
9
  {
9
10
  "data-testid": "asset-card",
10
- children: /* @__PURE__ */ a(e, { children: [
11
- /* @__PURE__ */ r(e.Frame, {}),
12
- /* @__PURE__ */ r(e.AdditionalInfo, { children: /* @__PURE__ */ r(m, { width: 70 + s(100, n) }) }),
13
- t.title
11
+ children: /* @__PURE__ */ a(i, { children: [
12
+ /* @__PURE__ */ t(i.Frame, {}),
13
+ /* @__PURE__ */ t(i.AdditionalInfo, { children: /* @__PURE__ */ t(m, { width: 70 + s(100, n) }) }),
14
+ r.title
14
15
  ] })
15
16
  },
16
17
  n
17
18
  )) });
18
19
  }
19
- function s(t, i) {
20
- return 16807 * ((i + 20) % 2147483647 + 2147483646) % 2147483647 % t;
20
+ function s(r, e) {
21
+ return 16807 * ((e + 20) % 2147483647 + 2147483646) % 2147483647 % r;
21
22
  }
22
- const c = d.div`
23
+ const f = d.div`
23
24
  width: 224px;
24
25
  position: relative;
25
26
  margin: ${l.spacing3};
26
27
  align-self: flex-start;
27
28
  `;
28
29
  export {
29
- p as CardSkeleton
30
+ v as CardSkeleton
30
31
  };
package/Checkbox.js ADDED
@@ -0,0 +1,85 @@
1
+ import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
+ import r, { css as d } from "./styled-components.browser.esm.js";
3
+ import { useFocusRing as $ } from "./useFocusRing.js";
4
+ import { Checkmark as I } from "./Checkmark.js";
5
+ import { textStyles as C } from "./textStyles.js";
6
+ import { token as o } from "./token.js";
7
+ import { makeInternalTokens as v } from "./makeInternalTokens.js";
8
+ const s = "ds-checkbox__pointer-events-wrapper";
9
+ function w({
10
+ isChecked: e = !1,
11
+ isDisabled: i = !1,
12
+ isIndeterminate: c = !1,
13
+ inputProps: f,
14
+ subtext: l,
15
+ children: b,
16
+ onChange: p = () => {
17
+ },
18
+ // eslint-disable-line @typescript-eslint/no-empty-function
19
+ id: k,
20
+ "aria-label": m,
21
+ "aria-labelledby": x,
22
+ ...u
23
+ }) {
24
+ const {
25
+ isFocusVisible: g,
26
+ focusProps: y
27
+ } = $();
28
+ return /* @__PURE__ */ t(D, { $isIndeterminate: c, $isDisabled: i, $isChecked: e, className: s, ...u, children: [
29
+ /* @__PURE__ */ a(P, { type: "checkbox", ref: (h) => {
30
+ h && (h.indeterminate = c);
31
+ }, "aria-checked": c ? "mixed" : e, disabled: i, checked: e, onChange: p, id: k, "aria-label": m, "aria-labelledby": x, ...y, ...f }),
32
+ /* @__PURE__ */ a(N, { children: /* @__PURE__ */ t(M, { $isFocusVisible: g, $isIndeterminate: c, $isDisabled: i, $isChecked: e, children: [
33
+ e && /* @__PURE__ */ a(I, {}),
34
+ c && /* @__PURE__ */ a(S, {})
35
+ ] }) }),
36
+ b && /* @__PURE__ */ t(F, { $isDisabled: i, children: [
37
+ b,
38
+ l && /* @__PURE__ */ a(R, { $isDisabled: i, children: l })
39
+ ] })
40
+ ] });
41
+ }
42
+ w.pointerEventsClassname = s;
43
+ const {
44
+ internalTokens: n,
45
+ declareTokens: T
46
+ } = v({
47
+ lightTheme: {
48
+ "checkbox-border-unchecked": o.gray300,
49
+ "checkbox-border-unchecked-hover": o.gray500,
50
+ "checkbox-border-unchecked-focus": o.gray500,
51
+ "checkbox-fill-disabled": o.gray100,
52
+ "checkbox-checkmark-color-disabled": o.gray500
53
+ },
54
+ darkTheme: {
55
+ "checkbox-border-unchecked": o.gray300a,
56
+ "checkbox-border-unchecked-hover": o.gray500a,
57
+ "checkbox-border-unchecked-focus": o.gray500a,
58
+ "checkbox-fill-disabled": o.gray100a,
59
+ "checkbox-checkmark-color-disabled": o.gray500a
60
+ }
61
+ }), D = r.label.withConfig({
62
+ displayName: "Container",
63
+ componentId: "sc-b4faes-0"
64
+ })(["", " ", " display:flex;align-items:flex-start;margin:0;padding:", " 0;cursor:", ";user-select:none;"], T, C.uiTextM, o.spacing1, (e) => !e.$isDisabled && "pointer"), N = r.div.withConfig({
65
+ displayName: "IndicatorPosition",
66
+ componentId: "sc-b4faes-1"
67
+ })(["display:flex;flex:none;align-items:center;&::before{content:'​';}"]), M = r.div.withConfig({
68
+ displayName: "Indicator",
69
+ componentId: "sc-b4faes-2"
70
+ })(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ", ";border-radius:", ";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:", " solid transparent;border-radius:calc( ", " + 3px );}", " ", " ", " ", " ", ":hover &&,", ":focus-visible &&{", " background-color:", ";}"], n["checkbox-border-unchecked"], o.radiusMedium, o.focusRingWidth, o.radiusMedium, (e) => e.$isFocusVisible && d(["border-color:", ";&::before{border-color:", ";}"], n["checkbox-border-unchecked-focus"], e.$isChecked || e.$isIndeterminate ? o.focusRingColorPrimary : o.focusRingColorSecondary), (e) => e.$isChecked && d(["border-color:transparent;background-color:", ";fill:#fff;"], o.blue500), (e) => e.$isIndeterminate && d(["border-color:transparent;background-color:", ";"], o.blue500), (e) => e.$isDisabled && d(["border-color:transparent;background-color:", ";fill:", ";"], n["checkbox-fill-disabled"], n["checkbox-checkmark-color-disabled"]), "." + s, "." + s, (e) => !e.$isChecked && !e.$isIndeterminate && !e.$isDisabled && `border-color: ${n["checkbox-border-unchecked-hover"]};`, (e) => (e.$isChecked || e.$isIndeterminate) && !e.$isDisabled ? o.blue600 : void 0), P = r.input.withConfig({
71
+ displayName: "Input",
72
+ componentId: "sc-b4faes-3"
73
+ })(["position:relative;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]), S = r.div.withConfig({
74
+ displayName: "IndeterminateMark",
75
+ componentId: "sc-b4faes-4"
76
+ })(["width:8px;height:2px;border-radius:", ";background-color:", ";"], o.radiusPill, o.white), F = r.div.withConfig({
77
+ displayName: "Label",
78
+ componentId: "sc-b4faes-5"
79
+ })(["display:block;margin-left:8px;color:", ";"], (e) => e.$isDisabled ? o.colorTextDisabled : o.colorText), R = r.span.withConfig({
80
+ displayName: "SubtextHolder",
81
+ componentId: "sc-b4faes-6"
82
+ })(["display:block;color:", ";font-size:", ";"], (e) => e.$isDisabled ? o.colorTextDisabled : o.colorTextMuted, o.fontSize75);
83
+ export {
84
+ w as Checkbox
85
+ };
@@ -1,5 +1,5 @@
1
- import t from "styled-components";
2
- import { token as e } from "@bynder/design-system";
1
+ import t from "./styled-components.browser.esm.js";
2
+ import { token as e } from "./token.js";
3
3
  const s = t.div`
4
4
  width: 100%;
5
5
  font-size: ${e.fontSize75};
package/Checkmark.js ADDED
@@ -0,0 +1,7 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ function h() {
3
+ return /* @__PURE__ */ t("svg", { width: "12", height: "12", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t("path", { d: "M1.793 5.621a1 1 0 000 1.415l2.121 2.12a.995.995 0 00.773.292.996.996 0 00.641-.291l4.95-4.95a1 1 0 00-1.414-1.414L4.621 7.036 3.207 5.62a1 1 0 00-1.414 0z" }) });
4
+ }
5
+ export {
6
+ h as Checkmark
7
+ };
package/Chip.js CHANGED
@@ -1,42 +1,72 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { styled as r } from "styled-components";
3
- import { token as n } from "@bynder/design-system";
4
- import { handleEnter as a } from "./helpers.js";
5
- function s(i) {
6
- return /* @__PURE__ */ o(
7
- e,
8
- {
9
- onClick: i.onClick,
10
- onKeyDown: (t) => a(t, i.onClick),
11
- role: "button",
12
- tabIndex: 0,
13
- "data-testid": i["data-testid"],
14
- loading: i.loading,
15
- active: i.active,
16
- children: i.children
17
- }
18
- );
19
- }
20
- const e = r.div`
21
- display: inline-flex;
22
- align-items: center;
23
- justify-content: center;
24
- flex-shrink: 0;
25
- border-radius: calc(infinity * 1px);
26
- font-size: ${n.fontSize75};
27
- height: ${n.spacing7};
28
- padding: 0 ${n.spacing4};
29
- transition-property: color, background-color, border-color, opacity;
30
- transition-timing-function: linear;
31
- transition-duration: 0.05s;
32
-
33
- margin-right: ${n.spacing3};
34
- margin-bottom: ${n.spacing3};
35
- border: 1px solid rgba(0, 34, 51, 0.1);
36
- box-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);
37
- cursor: ${({ loading: i, active: t }) => i && !t ? "default" : "pointer"};
38
- background-color: ${({ active: i }) => i ? "rgba(0, 34, 51, .05)" : "transparent"};
39
- `;
1
+ import { jsxs as C, jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as T } from "react";
3
+ import d, { css as e } from "./styled-components.browser.esm.js";
4
+ import { useFocusRing as $ } from "./useFocusRing.js";
5
+ import { IconCancel as q } from "./index4.js";
6
+ import { token as o } from "./token.js";
7
+ import { textStyles as u } from "./textStyles.js";
8
+ import { makeInternalTokens as I } from "./makeInternalTokens.js";
9
+ import { TruncatedText as S } from "./TruncatedText.js";
10
+ const H = T(({
11
+ size: a = "m",
12
+ isDisabled: t = !1,
13
+ thumbnail: p,
14
+ children: m,
15
+ icon: g,
16
+ onClick: s,
17
+ onDelete: i,
18
+ ...f
19
+ }, k) => {
20
+ const {
21
+ isFocusVisible: y,
22
+ focusProps: w
23
+ } = $();
24
+ function x(c) {
25
+ s && c.key === "Enter" ? (c.preventDefault(), s()) : i && (c.key === "Backspace" || c.key === "Delete") && i();
26
+ }
27
+ function v(c) {
28
+ c.stopPropagation(), i && i();
29
+ }
30
+ const h = !!(s || i);
31
+ return /* @__PURE__ */ C(D, { $size: a, $isDisabled: t, disabled: t && h, "aria-disabled": t, onClick: s, onKeyDown: x, $isFocusVisible: y, as: h ? "button" : "span", ref: k, ...w, ...f, children: [
32
+ p && /* @__PURE__ */ n(l, { children: p }),
33
+ g && /* @__PURE__ */ n(j, { children: g }),
34
+ /* @__PURE__ */ n(S, { children: m }),
35
+ i && /* @__PURE__ */ n(b, { $isDisabled: t, onClick: v, "data-testid": "ds-chip-delete-button", children: /* @__PURE__ */ n(q, { size: "18px" }) })
36
+ ] });
37
+ }), {
38
+ internalTokens: r,
39
+ declareTokens: B
40
+ } = I({
41
+ lightTheme: {
42
+ "chip-background-color": o.gray50,
43
+ "chip-background-color-disabled": o.gray25,
44
+ "chip-background-color-hover": o.gray75,
45
+ "chip-background-color-active": o.gray100,
46
+ "chip-background-color-focus": o.gray25,
47
+ "chip-shadow-focus": o.elevationStatic
48
+ },
49
+ darkTheme: {
50
+ "chip-background-color": o.gray50a,
51
+ "chip-background-color-disabled": o.gray25a,
52
+ "chip-background-color-hover": o.gray75a,
53
+ "chip-background-color-active": o.gray100a,
54
+ "chip-background-color-focus": "transparent",
55
+ "chip-shadow-focus": `0 0 0 1px ${o.gray200a}`
56
+ }
57
+ }), b = d.span.withConfig({
58
+ displayName: "DeleteButton",
59
+ componentId: "sc-qqweaw-0"
60
+ })(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;margin:0 calc(", " * -1) 0 ", ";padding:0;border:0;border-radius:", ";background:none;color:", ";outline:0;cursor:pointer;&:hover{background:", ";color:", ";}&:active{background:", ";}"], o.spacing3, o.spacing3, o.radiusCircle, (a) => a.$isDisabled ? o.gray400 : o.gray600, o.gray50a, o.gray800, o.gray100a), D = d.button.withConfig({
61
+ displayName: "ChipStyled",
62
+ componentId: "sc-qqweaw-1"
63
+ })(["", " display:inline-flex;align-items:center;max-width:100%;border:0;border-radius:", ";background-color:", ";color:", ";outline:none;font-family:", ";white-space:nowrap;", ";", ";", ";", ";", ";"], B, o.radiusPill, r["chip-background-color"], o.colorText, o.brandFontStackBase, (a) => a.onClick && e(["cursor:pointer;&:hover{background-color:", ";", "{color:", ";}}&:active{background-color:", ";}"], r["chip-background-color-hover"], b, o.gray800, r["chip-background-color-active"]), (a) => a.$isFocusVisible && e(["background:", ";box-shadow:inset ", ";outline:0;"], r["chip-background-color-focus"], r["chip-shadow-focus"]), (a) => a.$size === "m" && z, (a) => a.$size === "s" && F, (a) => a.$isDisabled && N), l = d.div.withConfig({
64
+ displayName: "ThumbnailContainer",
65
+ componentId: "sc-qqweaw-2"
66
+ })(["display:block;"]), F = e(["", " height:32px;padding:0 12px;", "{margin:0 ", " 0 calc(", " * -1);}"], u.uiTextS, l, o.spacing3, o.spacing3), z = e(["", " height:40px;padding:0 16px;", "{margin:0 ", " 0 calc(", " * -1);}"], u.uiTextM, l, o.spacing3, o.spacing4), N = e(["background-color:", ";color:", ";pointer-events:none;"], r["chip-background-color-disabled"], o.colorTextDisabled), j = d.div.withConfig({
67
+ displayName: "IconContainer",
68
+ componentId: "sc-qqweaw-3"
69
+ })(["width:24px;height:24px;margin-left:calc(", " * -1);padding:0 ", " 0 0;"], o.spacing2, o.spacing3);
40
70
  export {
41
- s as Chip
71
+ H as Chip
42
72
  };
package/Chip2.js ADDED
@@ -0,0 +1,42 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import r from "./styled-components.browser.esm.js";
3
+ import { token as n } from "./token.js";
4
+ import { handleEnter as a } from "./helpers2.js";
5
+ function s(i) {
6
+ return /* @__PURE__ */ o(
7
+ e,
8
+ {
9
+ onClick: i.onClick,
10
+ onKeyDown: (t) => a(t, i.onClick),
11
+ role: "button",
12
+ tabIndex: 0,
13
+ "data-testid": i["data-testid"],
14
+ loading: i.loading,
15
+ active: i.active,
16
+ children: i.children
17
+ }
18
+ );
19
+ }
20
+ const e = r.div`
21
+ display: inline-flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ flex-shrink: 0;
25
+ border-radius: calc(infinity * 1px);
26
+ font-size: ${n.fontSize75};
27
+ height: ${n.spacing7};
28
+ padding: 0 ${n.spacing4};
29
+ transition-property: color, background-color, border-color, opacity;
30
+ transition-timing-function: linear;
31
+ transition-duration: 0.05s;
32
+
33
+ margin-right: ${n.spacing3};
34
+ margin-bottom: ${n.spacing3};
35
+ border: 1px solid rgba(0, 34, 51, 0.1);
36
+ box-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);
37
+ cursor: ${({ loading: i, active: t }) => i && !t ? "default" : "pointer"};
38
+ background-color: ${({ active: i }) => i ? "rgba(0, 34, 51, .05)" : "transparent"};
39
+ `;
40
+ export {
41
+ s as Chip
42
+ };
package/CollectionCard.js CHANGED
@@ -1,14 +1,15 @@
1
1
  import { jsx as t, jsxs as g } from "react/jsx-runtime";
2
- import { styled as s } from "styled-components";
3
- import { IconOpenInNew as u } from "@bynder/icons";
4
- import { token as i, Card as n } from "@bynder/design-system";
2
+ import s from "./styled-components.browser.esm.js";
3
+ import { IconOpenInNew as u } from "./index4.js";
4
+ import { Card as n } from "./Card.js";
5
+ import { token as i } from "./token.js";
5
6
  import { useSelectionMode as C, useConfig as h } from "./ConfigContext.js";
6
7
  import { __ as o } from "./index2.js";
7
8
  import { useRouter as x } from "./useRouterStore.js";
8
9
  import { useSelection as $ } from "./SelectionContext.js";
9
10
  import { pluralize as b } from "./text.js";
10
- function O({ collection: e, fadeIn: d = !0, isSelected: r, style: l }) {
11
- const c = C(), [, m] = x(), p = $(), { hideExternalAccess: f } = h();
11
+ function P({ collection: e, fadeIn: d = !0, isSelected: r, style: l }) {
12
+ const m = C(), [, c] = x(), p = $(), { hideExternalAccess: f } = h();
12
13
  return /* @__PURE__ */ t(w, { id: e.id, style: l, $fadeIn: d, children: /* @__PURE__ */ g(
13
14
  n,
14
15
  {
@@ -23,11 +24,11 @@ function O({ collection: e, fadeIn: d = !0, isSelected: r, style: l }) {
23
24
  }
24
25
  ),
25
26
  selectButtonAriaLabel: r ? o("Deselect") : o("Select"),
26
- onSelect: c === "MultiSelect" ? (a) => {
27
+ onSelect: m === "MultiSelect" ? (a) => {
27
28
  a.stopPropagation(), p.toggleCollection(e);
28
29
  } : void 0,
29
30
  isSelected: r,
30
- onClick: () => m({ page: "collection", collection: e }),
31
+ onClick: () => c({ page: "collection", collection: e }),
31
32
  "aria-selected": r,
32
33
  "data-testid": "asset-card",
33
34
  children: [
@@ -51,5 +52,5 @@ const w = s.div`
51
52
  color: rgba(0, 34, 51, 0.5);
52
53
  `;
53
54
  export {
54
- O as CollectionCard
55
+ P as CollectionCard
55
56
  };
package/CollectionItem.js CHANGED
@@ -1,35 +1,36 @@
1
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import t from "styled-components";
3
- import { IconCollection as m } from "@bynder/icons";
4
- import { token as i, Thumbnail as a } from "@bynder/design-system";
1
+ import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
+ import e from "./styled-components.browser.esm.js";
3
+ import { IconCollection as a } from "./index4.js";
4
+ import { Thumbnail as l } from "./Thumbnail.js";
5
+ import { token as i } from "./token.js";
5
6
  import { __ as n } from "./index2.js";
6
7
  import { useSelection as s } from "./SelectionContext.js";
7
8
  import { pluralize as p } from "./text.js";
8
9
  import { SelectedItemContainer as c } from "./SelectedItemContainer.js";
9
- function z({ collection: o }) {
10
+ function z({ collection: t }) {
10
11
  const r = s();
11
- return /* @__PURE__ */ l(
12
+ return /* @__PURE__ */ m(
12
13
  c,
13
14
  {
14
- title: o.name,
15
- onRemove: () => r.toggleCollection(o),
15
+ title: t.name,
16
+ onRemove: () => r.toggleCollection(t),
16
17
  children: [
17
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(a, { variant: "clean", icon: /* @__PURE__ */ e(m, {}) }) }),
18
- /* @__PURE__ */ e(g, { children: o.name }),
19
- /* @__PURE__ */ e(h, { children: p(o.assetCount, n("{} asset"), n("{} assets")) })
18
+ /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(l, { variant: "clean", icon: /* @__PURE__ */ o(a, {}) }) }),
19
+ /* @__PURE__ */ o(g, { children: t.name }),
20
+ /* @__PURE__ */ o(h, { children: p(t.assetCount, n("{} asset"), n("{} assets")) })
20
21
  ]
21
22
  }
22
23
  );
23
24
  }
24
- const f = t.div`
25
+ const f = e.div`
25
26
  margin-right: ${i.spacing4};
26
- `, g = t.span`
27
+ `, g = e.span`
27
28
  width: 160px;
28
29
  margin-right: ${i.spacing3};
29
30
  overflow: hidden;
30
31
  text-overflow: ellipsis;
31
32
  white-space: nowrap;
32
- `, h = t.span`
33
+ `, h = e.span`
33
34
  flex-grow: 1;
34
35
  color: rgba(0, 34, 51, 0.5);
35
36
  font-size: ${i.fontSize75};
package/CollectionList.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as h, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as S } from "react";
3
- import { styled as v } from "styled-components";
4
- import { token as r } from "@bynder/design-system";
3
+ import v from "./styled-components.browser.esm.js";
4
+ import { token as r } from "./token.js";
5
5
  import { CardSkeleton as C } from "./CardSkeleton.js";
6
6
  import { CollectionCard as L } from "./CollectionCard.js";
7
7
  import { useDimensions as x } from "./useDimensions.js";
package/CollectionView.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as e, Fragment as b, jsx as y } from "react/jsx-runtime";
2
- import { styled as i } from "styled-components";
3
- import { token as t } from "@bynder/design-system";
2
+ import i from "./styled-components.browser.esm.js";
3
+ import { token as t } from "./token.js";
4
4
  import { useConfig as A } from "./ConfigContext.js";
5
5
  import { useOrderingSelectors as k } from "./useOrderingStore.js";
6
6
  import { useRouter as v } from "./useRouterStore.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
2
  import { useEffect as m } from "react";
3
- import { styled as i } from "styled-components";
4
- import { token as t } from "@bynder/design-system";
3
+ import i from "./styled-components.browser.esm.js";
4
+ import { token as t } from "./token.js";
5
5
  import { useConfig as f } from "./ConfigContext.js";
6
6
  import { useOrderingSelectors as d } from "./useOrderingStore.js";
7
7
  import { Oops as p } from "./Oops.js";
@@ -22,8 +22,8 @@ function O() {
22
22
  );
23
23
  return m(() => {
24
24
  o.isLoading || s(!1);
25
- }, [o.isLoading]), o.data.tag === "Failure" ? /* @__PURE__ */ e(p, { error: new Error(o.data.value), onRetry: o.executeQuery }) : /* @__PURE__ */ r(y, { "data-testid": "collections-view-container", children: [
26
- /* @__PURE__ */ r(h, { children: [
25
+ }, [o.isLoading]), o.data.tag === "Failure" ? /* @__PURE__ */ e(p, { error: new Error(o.data.value), onRetry: o.executeQuery }) : /* @__PURE__ */ r(h, { "data-testid": "collections-view-container", children: [
26
+ /* @__PURE__ */ r(y, { children: [
27
27
  o.data.value && /* @__PURE__ */ e(E, { children: C(
28
28
  o.data.value.collections.totalCount,
29
29
  n("{} collection"),
@@ -36,12 +36,12 @@ function O() {
36
36
  /* @__PURE__ */ e(x, { connection: o })
37
37
  ] });
38
38
  }
39
- const y = i.div`
39
+ const h = i.div`
40
40
  display: flex;
41
41
  flex-direction: column;
42
42
  flex-grow: 1;
43
43
  overflow-y: auto;
44
- `, h = i.div`
44
+ `, y = i.div`
45
45
  display: flex;
46
46
  align-items: center;
47
47
  padding: ${t.spacing5} ${t.spacing5} ${t.spacing3} ${t.spacing5};
@@ -0,0 +1,31 @@
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { useState as l, useEffect as m } from "react";
3
+ import { Input as p } from "./Input.js";
4
+ import { Thumbnail as c } from "./Thumbnail.js";
5
+ import { isValidHexValue as s } from "./isValidHexValue.js";
6
+ import { makeHexWithOpacity as u } from "./makeHexWithOpacity.js";
7
+ function y({
8
+ value: o,
9
+ onChange: e,
10
+ opacity: n
11
+ }) {
12
+ const [i, t] = l(o);
13
+ return m(() => {
14
+ t(o);
15
+ }, [o]), /* @__PURE__ */ f(p, { maxLength: 7, icon: /* @__PURE__ */ f(c, { variant: "content", backgroundColor: typeof n > "u" ? o : u({
16
+ color: o,
17
+ opacity: n
18
+ }), shape: "circle", size: "xs" }), value: i, onChange: (a) => {
19
+ const r = x(a);
20
+ t(r), (s(r) || r.length === 0) && e(r);
21
+ }, onBlur: () => {
22
+ i !== o && (e(o), t(o));
23
+ }, placeholder: "#ffffff", "aria-label": "Hex" });
24
+ }
25
+ function x(o) {
26
+ const e = "#" + o.replace(/([^0-9A-F]+)/gi, "");
27
+ return e.length === 1 ? "" : e;
28
+ }
29
+ export {
30
+ y as ColorHexInput
31
+ };