@bynder/compact-view 5.2.1 → 5.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. package/AccessToken.js +5 -0
  2. package/AccessToken2.js +176 -0
  3. package/AccessToken3.js +4 -0
  4. package/ActiveFilter.js +6 -5
  5. package/ActiveFilters.js +24 -24
  6. package/AddMedia.js +1 -1
  7. package/AdditionalInfo.js +18 -0
  8. package/Advanced.js +3 -3
  9. package/App.js +46 -43
  10. package/Arrow.js +14 -0
  11. package/AssetCard.js +32 -29
  12. package/AssetCardMetaproperties.js +14 -13
  13. package/AssetFilter.js +36 -35
  14. package/AssetFilterContext.js +3 -3
  15. package/AssetItem.js +14 -13
  16. package/AssetList.js +7 -7
  17. package/AssetTypeItem.js +13 -12
  18. package/Autocomplete_new.js +41 -37
  19. package/Axios2.js +136 -0
  20. package/AxiosError.js +54 -0
  21. package/AxiosHeaders.js +181 -0
  22. package/AxiosURLSearchParams.js +33 -0
  23. package/Badge.js +44 -0
  24. package/Baloon.js +42 -0
  25. package/BaseStyles.js +10 -0
  26. package/Blob.js +4 -0
  27. package/Box.js +22 -0
  28. package/Button.js +39 -0
  29. package/Button.styles.js +40 -0
  30. package/ButtonAction.js +3 -3
  31. package/ButtonLegacy.js +48 -0
  32. package/ButtonLegacy.styles.js +28 -0
  33. package/CancelToken.js +77 -0
  34. package/CanceledError.js +11 -0
  35. package/Card.js +84 -0
  36. package/CardSkeleton.js +15 -14
  37. package/Checkbox.js +85 -0
  38. package/Checkbox.styles.js +2 -2
  39. package/Checkmark.js +7 -0
  40. package/Chip.js +70 -40
  41. package/Chip2.js +42 -0
  42. package/CollectionCard.js +9 -8
  43. package/CollectionItem.js +15 -14
  44. package/CollectionList.js +2 -2
  45. package/CollectionView.js +2 -2
  46. package/CollectionsView.js +6 -6
  47. package/ColorHexInput.js +31 -0
  48. package/ColorPicker.js +66 -0
  49. package/ColorPickerSolid.js +20 -0
  50. package/ColorPickerWithOpacity.js +37 -0
  51. package/Combobox.js +61 -0
  52. package/ConcealedAction.js +16 -0
  53. package/ConnectButton.js +1 -1
  54. package/Container.js +14 -13
  55. package/Container2.js +31 -0
  56. package/Content.js +16 -0
  57. package/ContextAction.js +18 -17
  58. package/ContextActionButton.js +29 -0
  59. package/ControlGroup.js +32 -0
  60. package/DOMFunctions.js +27 -0
  61. package/Dat.js +62 -50
  62. package/DatDropdownItem.js +20 -19
  63. package/DesignSystemContext.js +4 -4
  64. package/DesignSystemProvider.js +29 -0
  65. package/DirectionSelect.js +16 -15
  66. package/Divider.js +21 -0
  67. package/DomainInput.js +15 -14
  68. package/DragRange.js +25 -0
  69. package/DragSelect.js +11 -11
  70. package/Dropdown.js +12 -11
  71. package/Dropdown2.js +169 -0
  72. package/DropdownContent.js +2 -2
  73. package/DropdownListItem.js +3 -3
  74. package/Enum.js +12 -0
  75. package/ErrorMessage.js +20 -19
  76. package/FieldSelect.js +4 -4
  77. package/FilePlaceholder.js +19 -0
  78. package/FileSelector.js +11 -10
  79. package/Flex.js +21 -0
  80. package/FontPicker.js +104 -0
  81. package/Footer.js +16 -0
  82. package/Form.js +23 -0
  83. package/FormData.js +4 -0
  84. package/Frame.js +64 -0
  85. package/Group.js +17 -0
  86. package/Group2.js +26 -0
  87. package/Header2.js +43 -0
  88. package/Header22.js +15 -0
  89. package/HelperText.js +26 -0
  90. package/HorizontalScroll.js +4 -4
  91. package/HttpHandler.js +74 -0
  92. package/HttpResponse.js +85 -0
  93. package/HttpStatusCode.js +71 -0
  94. package/IconPlaceholder.js +18 -0
  95. package/Image.js +19 -0
  96. package/Images.js +30 -0
  97. package/Indicator.js +74 -0
  98. package/InfiniteScroll.js +8 -8
  99. package/InlineBanner.js +51 -0
  100. package/Input.js +109 -0
  101. package/Input.styles.js +71 -0
  102. package/InputContainer.js +9 -0
  103. package/InputField.js +74 -0
  104. package/InputRow.js +18 -0
  105. package/Inspector.js +34 -0
  106. package/InteractiveIcon.js +28 -0
  107. package/InterceptorManager.js +58 -0
  108. package/Item.js +107 -0
  109. package/Item2.js +14 -0
  110. package/Item4.js +190 -0
  111. package/Label.js +33 -0
  112. package/LeftArrow.js +3 -3
  113. package/List.js +25 -0
  114. package/ListItem.js +11 -0
  115. package/ListItem2.js +58 -0
  116. package/ListItem4.js +37 -0
  117. package/MetapropertyFilterContent.js +2 -2
  118. package/MetapropertyOption.js +2 -3
  119. package/Middleware.js +49 -0
  120. package/Middleware2.js +49 -0
  121. package/Modal.js +2 -2
  122. package/Modal2.js +31 -0
  123. package/ModalBase.js +117 -0
  124. package/ModalBase.styles.js +75 -0
  125. package/ModalConfirmation.js +8 -0
  126. package/NoResults.js +16 -15
  127. package/OffsetContext.js +9 -0
  128. package/Oops.js +1 -1
  129. package/OpacityInput.js +17 -0
  130. package/Option_new.js +19 -18
  131. package/Overlay.js +35 -0
  132. package/Parser.js +131 -0
  133. package/Prefixer.js +187 -0
  134. package/Radio.js +78 -0
  135. package/RadioGroup.js +25 -0
  136. package/RangeInput.js +41 -0
  137. package/RefreshingSpinner.js +3 -3
  138. package/ReportModal.js +16 -14
  139. package/RequestHandler.js +119 -0
  140. package/RightArrow.js +4 -4
  141. package/Row.js +16 -0
  142. package/SearchInput.js +15 -15
  143. package/SearchInput2.js +46 -0
  144. package/SectionTitle.js +17 -0
  145. package/Select.js +49 -0
  146. package/SelectButtonText.js +16 -0
  147. package/SelectedItemContainer.js +11 -10
  148. package/SelectedItems.js +2 -2
  149. package/SelectionFooter.js +8 -7
  150. package/Serializer.js +27 -0
  151. package/ShadowRootInternal.js +17 -17
  152. package/Sidebar.js +17 -0
  153. package/Skeleton.js +6 -6
  154. package/Slider.constants.js +6 -0
  155. package/Slider.js +128 -0
  156. package/SmartFilterContent.js +2 -2
  157. package/SmartFilterSelect_new.js +2 -2
  158. package/Smartfilters_new.js +53 -50
  159. package/Spinner.js +2 -2
  160. package/Spinner2.js +15 -0
  161. package/StatefulAssetList.js +15 -15
  162. package/Stats.js +16 -0
  163. package/StatsItem.js +23 -0
  164. package/Status.js +32 -0
  165. package/Switch.js +82 -0
  166. package/SwitchNLS.js +26 -23
  167. package/Tabs2.js +10 -0
  168. package/TagItem.js +8 -8
  169. package/Tags.js +9 -9
  170. package/Text2.js +11 -0
  171. package/Text22.js +18 -0
  172. package/Text4.js +18 -0
  173. package/Textarea.js +92 -0
  174. package/Theming.js +4 -4
  175. package/Thumb.js +28 -0
  176. package/Thumbnail.js +91 -0
  177. package/Tokenizer.js +147 -0
  178. package/Toolbar.js +13 -12
  179. package/Tooltip.js +2 -2
  180. package/Tooltip2.js +111 -0
  181. package/TruncatedText.js +34 -0
  182. package/URLSearchParams.js +5 -0
  183. package/Utility.js +56 -0
  184. package/ViewSwitch.js +8 -7
  185. package/_check_private_redeclaration.js +7 -0
  186. package/_class_apply_descriptor_get.js +6 -0
  187. package/_class_apply_descriptor_set.js +11 -0
  188. package/_class_extract_field_descriptor.js +7 -0
  189. package/_class_private_field_get.js +9 -0
  190. package/_class_private_field_init.js +7 -0
  191. package/_class_private_field_set.js +9 -0
  192. package/_commonjsHelpers.js +6 -0
  193. package/adapters.js +53 -0
  194. package/api.js +25 -0
  195. package/api2.js +40 -0
  196. package/api3.js +406 -0
  197. package/applyScopeDataToEvent.js +83 -0
  198. package/applyScopeDataToEvent2.js +55 -0
  199. package/asset.type.js +9 -9
  200. package/autocomplete.js +2 -2
  201. package/axios.js +46 -0
  202. package/base.js +57 -0
  203. package/baseclient.js +498 -0
  204. package/bind.js +8 -0
  205. package/browser.js +44 -0
  206. package/buildFullPath.js +9 -0
  207. package/buildURL.js +23 -0
  208. package/bundle.esm.js +81 -0
  209. package/calculateContainerMaxHeight.js +12 -0
  210. package/calculateNodeHeight.js +35 -0
  211. package/carrier.js +13 -0
  212. package/chain.js +8 -0
  213. package/checkGlobals.js +13 -0
  214. package/checks.js +178 -0
  215. package/chunk-6HYIRFX2.js +1 -0
  216. package/cleanUrl.js +11 -0
  217. package/client.js +76 -0
  218. package/clientreport.js +15 -0
  219. package/clsx.js +17 -0
  220. package/colorTransforms.js +12 -0
  221. package/combineMetaproperties.js +1 -1
  222. package/combineURLs.js +6 -0
  223. package/composeSignals.js +30 -0
  224. package/constants.js +2 -12
  225. package/constants2.js +82 -0
  226. package/constants3.js +14 -0
  227. package/constants4.js +8 -0
  228. package/constants5.js +4 -0
  229. package/constants6.js +4 -0
  230. package/context.js +12 -0
  231. package/context10.js +12 -0
  232. package/context2.js +9 -0
  233. package/context3.js +12 -0
  234. package/context6.js +5 -0
  235. package/cookieStore.js +116 -0
  236. package/cookies.js +32 -0
  237. package/core.js +42 -0
  238. package/currentScopes.js +9 -0
  239. package/data.js +4 -0
  240. package/de_DE.json.js +18 -0
  241. package/debug-build.js +4 -0
  242. package/debug-build2.js +4 -0
  243. package/debug-build3.js +4 -0
  244. package/debug-build4.js +4 -0
  245. package/debug-build5.js +4 -0
  246. package/debug-build6.js +4 -0
  247. package/decorators.js +37 -0
  248. package/defaultScopes.js +12 -0
  249. package/devUtils.js +20 -0
  250. package/dispatchRequest.js +31 -0
  251. package/doc.js +26 -0
  252. package/domHelpers.js +15 -0
  253. package/dsn.js +54 -0
  254. package/dynamicSamplingContext.js +34 -0
  255. package/dynamicSamplingContext2.js +34 -0
  256. package/emotion-unitless.esm.js +52 -0
  257. package/en_US.json.js +23 -0
  258. package/englishText-12403056.js +6 -0
  259. package/env.js +6 -0
  260. package/envelope.js +113 -0
  261. package/envelope2.js +23 -0
  262. package/envelope3.js +24 -0
  263. package/error.js +9 -0
  264. package/errors.js +33 -0
  265. package/errors2.js +55 -0
  266. package/es_ES.json.js +18 -0
  267. package/es_MX.json.js +18 -0
  268. package/eventProcessors.js +27 -0
  269. package/eventProcessors2.js +23 -0
  270. package/eventbuilder.js +128 -0
  271. package/exports.js +11 -0
  272. package/exports2.js +16 -0
  273. package/exports3.js +8 -0
  274. package/fetch.js +44 -0
  275. package/fetch2.js +141 -0
  276. package/filterAssets.js +1 -1
  277. package/fixFontSpaceInUrl.js +8 -0
  278. package/focusWithoutScrolling.js +45 -0
  279. package/forceHiddenStyles.js +19 -0
  280. package/formDataToJSON.js +31 -0
  281. package/fr_FR.json.js +18 -0
  282. package/getAbsoluteUrl.js +13 -0
  283. package/getAsset.js +1 -1
  284. package/getAssetCounts.js +1 -1
  285. package/getAssets.js +2 -2
  286. package/getCallFrame.js +12 -0
  287. package/getCollections.js +1 -1
  288. package/getFilterOptions.js +1 -1
  289. package/getFilters.js +1 -1
  290. package/getFilters_new.js +1 -1
  291. package/getRequestCookies.js +40 -0
  292. package/getRootSpan.js +6 -0
  293. package/getRootSpan2.js +6 -0
  294. package/getSimilarityAssets.js +1 -1
  295. package/getSizingData.js +45 -0
  296. package/getStatusCodeColor.js +6 -0
  297. package/getThumbPosition.js +6 -0
  298. package/getTimestamp.js +7 -0
  299. package/getUseLayerOptions.js +49 -0
  300. package/handlers.js +92 -6
  301. package/handlers2.js +6 -0
  302. package/helpers.js +3 -4
  303. package/helpers2.js +6 -0
  304. package/hexFromPercentage.js +7 -0
  305. package/http.js +17 -0
  306. package/hub.js +446 -0
  307. package/hub2.js +442 -0
  308. package/immer.js +472 -0
  309. package/import.js +7 -0
  310. package/index-esm.js +10781 -0
  311. package/index-esm2.js +138 -0
  312. package/index-esm3.js +131 -0
  313. package/index.browser.js +11 -0
  314. package/index.module.js +57 -0
  315. package/index.module2.js +72 -0
  316. package/index.module3.js +57 -0
  317. package/index10.js +20 -0
  318. package/index102.js +273 -0
  319. package/index11.js +18 -0
  320. package/index112.js +29 -0
  321. package/index12.js +38 -0
  322. package/index13.js +2432 -0
  323. package/index14.js +558 -0
  324. package/index15.js +58 -0
  325. package/index16.js +4 -0
  326. package/index17.js +89 -0
  327. package/index18.js +9 -0
  328. package/index19.js +62 -0
  329. package/index20.js +15 -0
  330. package/index21.js +11 -0
  331. package/index22.js +42 -0
  332. package/index23.js +9 -0
  333. package/index24.js +10 -0
  334. package/index25.js +7 -0
  335. package/index26.js +12 -0
  336. package/index27.js +11 -0
  337. package/index28.js +639 -0
  338. package/index29.js +76 -0
  339. package/index3.js +5 -53
  340. package/index30.js +7 -0
  341. package/index31.js +22 -0
  342. package/index32.js +2 -0
  343. package/index33.js +7 -0
  344. package/index34.js +20 -0
  345. package/index35.js +8 -0
  346. package/index36.js +4 -0
  347. package/index37.js +13 -0
  348. package/index38.js +13 -0
  349. package/index39.js +15 -0
  350. package/index4.js +1684 -17
  351. package/index40.js +13 -0
  352. package/index41.js +21 -0
  353. package/index42.js +66 -0
  354. package/index43.js +8 -0
  355. package/index44.js +57 -0
  356. package/index45.js +69 -0
  357. package/index46.js +33 -0
  358. package/index47.js +13 -0
  359. package/index48.js +123 -0
  360. package/index49.js +88 -0
  361. package/index5.js +27 -0
  362. package/index50.js +10 -0
  363. package/index51.js +13 -0
  364. package/index52.js +16 -0
  365. package/index53.js +16 -0
  366. package/index54.js +9 -0
  367. package/index55.js +9 -0
  368. package/index56.js +17 -0
  369. package/index57.js +31 -0
  370. package/index58.js +18 -0
  371. package/index6.js +315 -0
  372. package/index7.js +4 -0
  373. package/index72.js +228 -0
  374. package/index8.js +5051 -0
  375. package/index82.js +8 -0
  376. package/index9.js +55 -0
  377. package/index92.js +12 -0
  378. package/integration.js +38 -0
  379. package/is.js +77 -0
  380. package/is2.js +14 -0
  381. package/is3.js +14 -0
  382. package/isAbsoluteURL.js +6 -0
  383. package/isAbsoluteUrl2.js +6 -0
  384. package/isAxiosError.js +7 -0
  385. package/isCancel.js +6 -0
  386. package/isIterable.js +6 -0
  387. package/isStringEqual.js +6 -0
  388. package/isURLSameOrigin.js +8 -0
  389. package/isValidHexValue.js +6 -0
  390. package/isVirtualEvent.js +11 -0
  391. package/iso.js +38 -0
  392. package/it_IT.json.js +18 -0
  393. package/itemContext.js +5 -0
  394. package/ja_JP.json.js +18 -0
  395. package/ko_KR.json.js +18 -0
  396. package/localStorageHelper.js +32 -0
  397. package/localStorageHelper2.js +4 -0
  398. package/localization.js +46 -0
  399. package/logger2.js +56 -0
  400. package/logger3.js +56 -0
  401. package/logger4.js +56 -0
  402. package/makeHexWithOpacity.js +12 -0
  403. package/makeInternalTokens.js +22 -0
  404. package/matchRequestUrl.js +23 -0
  405. package/memo.js +25 -0
  406. package/merge.js +13 -0
  407. package/mergeConfig.js +70 -0
  408. package/mergeProps.js +22 -0
  409. package/mergeRefs.js +9 -0
  410. package/middleware.js +177 -0
  411. package/middleware2.js +177 -0
  412. package/misc.js +58 -0
  413. package/misc2.js +28 -0
  414. package/misc3.js +24 -0
  415. package/nl_NL.json.js +18 -0
  416. package/normalize.js +97 -0
  417. package/normalizePath.js +11 -0
  418. package/normalizeResponse.js +1 -1
  419. package/normalizeRows.js +10 -0
  420. package/notify.js +52 -0
  421. package/null.js +4 -0
  422. package/object.js +110 -0
  423. package/object2.js +39 -0
  424. package/object3.js +17 -0
  425. package/opacityPercentageFromHex.js +9 -0
  426. package/openLink.js +27 -0
  427. package/package.json +1 -1
  428. package/packageVersion.js +4 -0
  429. package/parse.js +9 -0
  430. package/parse2.js +44 -0
  431. package/parseHeaders.js +30 -0
  432. package/parseProtocol.js +7 -0
  433. package/pl_PL.json.js +18 -0
  434. package/platform.js +42 -0
  435. package/prepareEvent.js +141 -0
  436. package/prepareEvent2.js +5 -0
  437. package/prepareEvent3.js +5 -0
  438. package/progressEventReducer.js +35 -0
  439. package/promisebuffer.js +44 -0
  440. package/propagationContext.js +11 -0
  441. package/pt_BR.json.js +18 -0
  442. package/ratelimit.js +37 -0
  443. package/react.js +19 -0
  444. package/react2.js +19 -0
  445. package/regexes.js +51 -0
  446. package/registries.js +41 -0
  447. package/resolveConfig.js +33 -0
  448. package/ru_RU.json.js +18 -0
  449. package/runAfterTransition.js +35 -0
  450. package/schemas.js +368 -0
  451. package/schemas2.js +691 -0
  452. package/scope.js +412 -0
  453. package/scope2.js +407 -0
  454. package/scope3.js +348 -0
  455. package/sdk-DhxX43BH.js +4813 -0
  456. package/sdkMetadata.js +15 -0
  457. package/serializeRequest.js +12 -0
  458. package/serializeResponse.js +14 -0
  459. package/session.js +57 -0
  460. package/session2.js +57 -0
  461. package/session3.js +16 -0
  462. package/settle.js +14 -0
  463. package/shadowdom.js +13 -0
  464. package/shadowdom2.js +13 -0
  465. package/spanOnScope.js +12 -0
  466. package/spanUtils.js +31 -0
  467. package/spanUtils2.js +31 -0
  468. package/speedometer.js +19 -0
  469. package/spread.js +8 -0
  470. package/stack-parsers.js +48 -0
  471. package/stackStrategy.js +98 -0
  472. package/stacktrace.js +49 -0
  473. package/state.js +106 -0
  474. package/store/useDatStore.d.ts +11 -8
  475. package/string.js +6 -0
  476. package/styled-components.browser.esm.js +530 -0
  477. package/styles.js +55 -0
  478. package/styles2.js +17 -0
  479. package/supports.js +6 -0
  480. package/syncpromise.js +121 -0
  481. package/syncpromise2.js +109 -0
  482. package/textSelection.js +33 -0
  483. package/textStyles.js +20 -0
  484. package/theme.js +238 -0
  485. package/themeContainers.js +20 -0
  486. package/themes3.js +26 -0
  487. package/throttle.js +15 -0
  488. package/time.js +24 -0
  489. package/time2.js +24 -0
  490. package/time3.js +24 -0
  491. package/toFormData.js +85 -0
  492. package/toPublicUrl.js +9 -0
  493. package/toURLEncodedForm.js +13 -0
  494. package/token.js +236 -0
  495. package/tokenExpirationHelper.js +48 -0
  496. package/tokenExpirationHelper2.js +4 -0
  497. package/tokensAndThemes.js +92 -0
  498. package/tr_TR.json.js +18 -0
  499. package/trackStream.js +63 -0
  500. package/transformData.js +13 -0
  501. package/transitional.js +8 -0
  502. package/trimMetapropertyValue.js +1 -1
  503. package/tslib.es6.js +18 -0
  504. package/typeof.js +11 -0
  505. package/urlHelper.js +15 -0
  506. package/urlHelper2.js +4 -0
  507. package/useAutoHeight.js +25 -0
  508. package/useDatStore.js +31 -27
  509. package/useEffectEvent.js +18 -0
  510. package/useFocus.js +30 -0
  511. package/useFocusRing.js +34 -0
  512. package/useFocusVisible.js +92 -0
  513. package/useFocusWithin.js +57 -0
  514. package/useFonts.js +118 -0
  515. package/useGlobalListeners.js +34 -0
  516. package/useGroupContext.js +10 -0
  517. package/useHover.js +79 -0
  518. package/useId.js +8 -0
  519. package/useId2.js +17 -0
  520. package/useKeyDown.js +14 -0
  521. package/useLayoutEffect.js +6 -0
  522. package/useOrderingStore.js +6 -6
  523. package/usePress.js +359 -0
  524. package/useRouterStore.js +6 -6
  525. package/useScrollHighlightedIntoView.js +24 -0
  526. package/useSearchStore.js +5 -5
  527. package/useSimilaritySearchStore.js +6 -6
  528. package/useSyncRef.js +12 -0
  529. package/useTranslate.js +13 -0
  530. package/useZIndex.js +9 -0
  531. package/userfeedback.js +28 -0
  532. package/util.js +265 -0
  533. package/utils/fixFontSpaceInUrl.d.ts +1 -0
  534. package/utils.js +26 -44
  535. package/utils2.js +43 -45
  536. package/utils3.js +50 -0
  537. package/utils4.js +12 -0
  538. package/utils5.js +71 -0
  539. package/utils6.js +222 -0
  540. package/utils7.js +9 -0
  541. package/utils8.js +70 -0
  542. package/validator.js +54 -0
  543. package/vanilla.js +14 -0
  544. package/vanilla2.js +14 -0
  545. package/version.js +4 -0
  546. package/version2.js +4 -0
  547. package/version3.js +4 -0
  548. package/versionContext.js +9 -0
  549. package/versions.js +8 -0
  550. package/worldwide.js +19 -0
  551. package/worldwide2.js +15 -0
  552. package/worldwide3.js +10 -0
  553. package/xhr.js +71 -0
  554. package/zh_CN.json.js +18 -0
  555. package/zh_TW.json.js +18 -0
package/Tags.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { jsx as n, jsxs as a, Fragment as e } from "react/jsx-runtime";
2
- import { styled as s } from "styled-components";
3
- import { token as i } from "@bynder/design-system";
4
- import { IconTag as d } from "@bynder/icons";
2
+ import s from "./styled-components.browser.esm.js";
3
+ import { token as i } from "./token.js";
4
+ import { IconTag as d } from "./index4.js";
5
5
  import { Dropdown as p } from "./Dropdown.js";
6
6
  import { __ as g } from "./index2.js";
7
7
  import { TagItem as c } from "./TagItem.js";
8
8
  import { Spinner as m } from "./Spinner.js";
9
- function j(t) {
10
- const o = l(t.tags);
11
- return /* @__PURE__ */ n(p, { title: /* @__PURE__ */ n(f, {}), isSmall: !0, fadeIn: !0, children: () => /* @__PURE__ */ a(e, { children: [
9
+ function y(t) {
10
+ const o = f(t.tags);
11
+ return /* @__PURE__ */ n(p, { title: /* @__PURE__ */ n(l, {}), isSmall: !0, fadeIn: !0, children: () => /* @__PURE__ */ a(e, { children: [
12
12
  t.isLoading && /* @__PURE__ */ n(m, {}),
13
13
  /* @__PURE__ */ a(h, { children: [
14
14
  " ",
@@ -18,10 +18,10 @@ function j(t) {
18
18
  /* @__PURE__ */ n(u, { children: o.map((r) => /* @__PURE__ */ n(c, { tag: r, isLoading: t.isLoading }, r.id)) })
19
19
  ] }) });
20
20
  }
21
- function l(t) {
21
+ function f(t) {
22
22
  return [...t].sort((o, r) => r.assetCount - o.assetCount);
23
23
  }
24
- function f() {
24
+ function l() {
25
25
  return /* @__PURE__ */ a(e, { children: [
26
26
  /* @__PURE__ */ n(T, {}),
27
27
  /* @__PURE__ */ n("span", { "data-testid": "tags-filter", children: g("Tags") })
@@ -43,5 +43,5 @@ const h = s.h1`
43
43
  width: ${i.spacing6};
44
44
  `;
45
45
  export {
46
- j as Tags
46
+ y as Tags
47
47
  };
package/Text2.js ADDED
@@ -0,0 +1,11 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Dropdown as e } from "./Dropdown2.js";
3
+ function n({
4
+ children: t,
5
+ ...o
6
+ }) {
7
+ return /* @__PURE__ */ r(e.Text, { fontSize: "list-item", ...o, children: t });
8
+ }
9
+ export {
10
+ n as Text
11
+ };
package/Text22.js ADDED
@@ -0,0 +1,18 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import m from "./styled-components.browser.esm.js";
3
+ import { textStyles as e } from "./textStyles.js";
4
+ import { token as o } from "./token.js";
5
+ function s({
6
+ fontSize: t = "item",
7
+ children: i,
8
+ ...n
9
+ }) {
10
+ return /* @__PURE__ */ r(p, { $fontSize: t, ...n, children: i });
11
+ }
12
+ const p = m.div.withConfig({
13
+ displayName: "TextStyled",
14
+ componentId: "sc-15vtjf7-0"
15
+ })(["", " padding:", " ", ";color:", ";"], (t) => t.$fontSize === "item" ? e.uiTextS : e.uiTextM, o.spacing3, o.spacing5, o.gray400);
16
+ export {
17
+ s as Text
18
+ };
package/Text4.js ADDED
@@ -0,0 +1,18 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import r from "./styled-components.browser.esm.js";
3
+ import { textStyles as e } from "./textStyles.js";
4
+ import { token as i } from "./token.js";
5
+ import { internalTokens as p } from "./themes3.js";
6
+ function f({
7
+ children: t
8
+ }) {
9
+ return /* @__PURE__ */ o(n, { children: t });
10
+ }
11
+ const n = r.div.withConfig({
12
+ displayName: "StyledText",
13
+ componentId: "sc-juvpf5-0"
14
+ })(["", " padding-block:", ";color:", ";"], e.paragraphS, i.spacing3, p["tooltip-text-color"]);
15
+ export {
16
+ n as StyledText,
17
+ f as Text
18
+ };
package/Textarea.js ADDED
@@ -0,0 +1,92 @@
1
+ import { jsx as I } from "react/jsx-runtime";
2
+ import { forwardRef as R, useRef as S } from "react";
3
+ import C, { css as O } from "./styled-components.browser.esm.js";
4
+ import { textStyles as z } from "./textStyles.js";
5
+ import { token as e } from "./token.js";
6
+ import { MINIMUM_ROWS as A, MAXIMUM_ROWS as B } from "./normalizeRows.js";
7
+ import { useAutoHeight as D } from "./useAutoHeight.js";
8
+ import { mergeRefs as N } from "./mergeRefs.js";
9
+ import { makeInternalTokens as U } from "./makeInternalTokens.js";
10
+ const J = R(({
11
+ id: a,
12
+ isDisabled: l = !1,
13
+ isReadOnly: d = !1,
14
+ isInvalid: i = !1,
15
+ onBlur: s,
16
+ onChange: o,
17
+ onFocus: n,
18
+ onKeyDown: b,
19
+ placeholder: c,
20
+ value: f,
21
+ "aria-label": x,
22
+ "aria-labelledby": g,
23
+ "aria-describedby": m,
24
+ minRows: h = A,
25
+ maxRows: u = B,
26
+ maxLength: p,
27
+ autoFocus: y = !1,
28
+ ...T
29
+ }, v) => {
30
+ const t = S(null);
31
+ D(t, h, u);
32
+ function k(w) {
33
+ if (o) {
34
+ const M = w.currentTarget.value;
35
+ o(M);
36
+ }
37
+ }
38
+ return /* @__PURE__ */ I(
39
+ _,
40
+ {
41
+ value: f,
42
+ onChange: k,
43
+ id: a,
44
+ disabled: l,
45
+ readOnly: d,
46
+ $isInvalid: i,
47
+ "aria-label": x,
48
+ "aria-labelledby": g,
49
+ "aria-describedby": m,
50
+ onBlur: s,
51
+ onFocus: n,
52
+ onKeyDown: b,
53
+ placeholder: c,
54
+ autoComplete: "off",
55
+ autoCorrect: "off",
56
+ autoFocus: y,
57
+ ref: N(v, t),
58
+ maxLength: p,
59
+ ...T
60
+ }
61
+ );
62
+ }), {
63
+ internalTokens: r,
64
+ declareTokens: W
65
+ } = U({
66
+ lightTheme: {
67
+ "textarea-fill": e.gray10,
68
+ "textarea-fill-disabled": e.gray25,
69
+ "textarea-border": e.gray100,
70
+ "textarea-border-hover": e.gray200,
71
+ "textarea-border-focus": e.gray300,
72
+ "textarea-border-disabled": e.gray100,
73
+ "textarea-shadow-hover": e.elevation1,
74
+ "textarea-focus-ring": e.gray100
75
+ },
76
+ darkTheme: {
77
+ "textarea-fill": "transparent",
78
+ "textarea-fill-disabled": e.gray50a,
79
+ "textarea-border": e.gray200a,
80
+ "textarea-border-hover": e.gray300a,
81
+ "textarea-border-focus": e.gray400a,
82
+ "textarea-border-disabled": e.gray100a,
83
+ "textarea-shadow-hover": "none",
84
+ "textarea-focus-ring": e.gray300a
85
+ }
86
+ }), _ = C.textarea.withConfig({
87
+ displayName: "TextareaStyled",
88
+ componentId: "sc-tq6lgg-0"
89
+ })(["&&{", " display:block;box-sizing:border-box;width:100%;margin:0;padding:", " ", ";border:1px solid ", ";border-radius:", ";background:", ";color:", ";outline:none;font-family:", ";resize:none;transition:none;", " &::placeholder{color:", ";}&:hover{border-color:", ";box-shadow:", ";}&:focus{border-color:", ";box-shadow:0 0 0 3px ", ";}&:disabled{border-color:", ";background:", ";color:", ";box-shadow:none;&::placeholder{color:", ";}}", ";}"], W, e.spacing3, e.spacing5, r["textarea-border"], e.radiusBase, r["textarea-fill"], e.colorText, e.brandFontStackBase, z.paragraphM, e.colorTextDisabled, r["textarea-border-hover"], r["textarea-shadow-hover"], r["textarea-border-focus"], r["textarea-focus-ring"], r["textarea-border-disabled"], r["textarea-fill-disabled"], e.colorTextMuted, e.colorTextDisabled, (a) => a.$isInvalid && O(["border-color:", ";&:hover{border-color:", ";}&:focus{border-color:", ";}"], e.red500, e.red600, e.red500));
90
+ export {
91
+ J as Textarea
92
+ };
package/Theming.js CHANGED
@@ -1,4 +1,4 @@
1
- import { css as n, createGlobalStyle as i } from "styled-components";
1
+ import { css as n, createGlobalStyle as i } from "./styled-components.browser.esm.js";
2
2
  const c = (o) => ({
3
3
  // Button component
4
4
  "--componentButtonPrimaryBorderHover": o?.colorButtonPrimaryHover,
@@ -15,15 +15,15 @@ const c = (o) => ({
15
15
  "--componentButtonPrimaryFillFocus": o?.colorButtonPrimary
16
16
  }), u = i`${n`
17
17
  .cv-root {
18
- ${(o) => l(o.theme)}
18
+ ${(o) => a(o.theme)}
19
19
  }:
20
20
  `}`;
21
- function l(o) {
21
+ function a(o) {
22
22
  const r = c(o);
23
23
  return Object.entries(r).map((t) => t.join(":")).join(";") + ";";
24
24
  }
25
25
  export {
26
26
  u as ThemeStyles,
27
- l as stringifyTheme,
27
+ a as stringifyTheme,
28
28
  c as themeVariables
29
29
  };
package/Thumb.js ADDED
@@ -0,0 +1,28 @@
1
+ import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
+ import { ThumbContainer as p, ThumbCircle as u } from "./styles.js";
3
+ import { Tooltip as d } from "./Tooltip2.js";
4
+ import { getThumbPosition as f } from "./getThumbPosition.js";
5
+ function C({
6
+ min: t,
7
+ max: r,
8
+ value: i,
9
+ isTooltipOpen: e,
10
+ inputPosition: s,
11
+ isInactive: m,
12
+ isDisabled: o
13
+ }) {
14
+ const a = f(t, r, i);
15
+ return /* @__PURE__ */ l(p, { $isInactive: m, $isDisabled: o, style: h(a), "data-testid": "ds-slider-thumb", children: [
16
+ /* @__PURE__ */ n(u, { $isDisabled: o }),
17
+ s === "none" && /* @__PURE__ */ n(d, { isOpen: e, content: i, position: "top-center", children: (c) => /* @__PURE__ */ n("div", { ...c }) })
18
+ ] });
19
+ }
20
+ function h(t) {
21
+ return {
22
+ left: t,
23
+ transform: `translateY(-50%) translateX(calc(${t} * -1))`
24
+ };
25
+ }
26
+ export {
27
+ C as Thumb
28
+ };
package/Thumbnail.js ADDED
@@ -0,0 +1,91 @@
1
+ import { jsxs as e, jsx as i } from "react/jsx-runtime";
2
+ import s, { css as y } from "./styled-components.browser.esm.js";
3
+ import { token as t } from "./token.js";
4
+ import { pointerEventsClassname as p, Overlay as C } from "./Overlay.js";
5
+ import { GAP as b, INDICATORS_VALUES as I } from "./constants2.js";
6
+ import { Indicator as $ } from "./Indicator.js";
7
+ import { Status as k } from "./Status.js";
8
+ import { useId as S } from "./useId.js";
9
+ function M({
10
+ size: h = "m",
11
+ shape: v = "square",
12
+ variant: n = "clean",
13
+ icon: z,
14
+ imageUrl: o,
15
+ backgroundColor: a,
16
+ iconColor: l,
17
+ children: x,
18
+ ...g
19
+ }) {
20
+ const d = n === "content", c = n === "clean", w = a ? t[a] || a : c ? t.gray50a : !a && !o ? t.white : "transparent", H = c ? t[l] || l || t.gray600 : void 0, r = v === "circle" ? "50%" : n === "preview" ? "0" : "5px", m = S("thumbnail-mask");
21
+ return /* @__PURE__ */ e(N, { $size: h, $shape: v, className: p, style: {
22
+ "--ds-thumbnail-border-radius": r
23
+ }, ...g, children: [
24
+ /* @__PURE__ */ e(j, { role: "none", children: [
25
+ /* @__PURE__ */ e("mask", { id: m, children: [
26
+ /* @__PURE__ */ i("rect", { fill: "white", x: "0", y: "0", width: "100%", height: "100%", rx: r }),
27
+ /* @__PURE__ */ i(A, {})
28
+ ] }),
29
+ /* @__PURE__ */ e("g", { mask: `url(#${m})`, children: [
30
+ d && /* @__PURE__ */ i(R, {}),
31
+ /* @__PURE__ */ i("rect", { fill: w, x: "0", y: "0", width: "100%", height: "100%", rx: r, "data-testid": "ds-thumbnail-fill" }),
32
+ o && /* @__PURE__ */ i("image", { x: "0", y: "0", width: "100%", height: "100%", preserveAspectRatio: `xMidYMid ${n === "preview" ? "meet" : "slice"}`, xlinkHref: o, "data-testid": "ds-thumbnail-image" }),
33
+ d && /* @__PURE__ */ i("rect", { fill: "none", x: "0", y: "0", width: "100%", height: "100%", stroke: "rgba(0,0,0,0.1)", strokeWidth: "2", rx: r, "data-testid": "ds-thumbnail-inner-shadow" })
34
+ ] })
35
+ ] }),
36
+ /* @__PURE__ */ e(E, { $iconColor: H, $size: h, "data-testid": "ds-thumbnail-content", children: [
37
+ z,
38
+ d && !a && !o && /* @__PURE__ */ i(O, { "data-testid": "ds-thumbnail-no-image-line" })
39
+ ] }),
40
+ x
41
+ ] });
42
+ }
43
+ M.Overlay = C;
44
+ M.pointerEventsClassname = p;
45
+ M.Indicator = $;
46
+ M.Status = k;
47
+ const u = {
48
+ xs: "24px",
49
+ s: "32px",
50
+ m: "40px",
51
+ l: "64px"
52
+ }, N = s.div.withConfig({
53
+ displayName: "ThumbnailContainer",
54
+ componentId: "sc-womslj-0"
55
+ })(["position:relative;flex:none;width:", ";height:", ";&:has([data-thumbnail-status]){", "}&:has([data-thumbnail-indicator]){", "}"], (h) => u[h.$size], (h) => u[h.$size], f("status"), f("indicator"));
56
+ function f(h) {
57
+ return (v) => {
58
+ const {
59
+ radius: n,
60
+ offset: z
61
+ } = I[h][v.$shape][v.$size];
62
+ return y(["--ds-thumbnail-indicator-offset-x:", "px;--ds-thumbnail-indicator-offset-y:", "px;--ds-thumbnail-indicator-radius:", "px;--ds-thumbnail-overlay-indicator-cutout:-webkit-radial-gradient( calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var( --ds-thumbnail-indicator-offset-x ) ) ) calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var( --ds-thumbnail-indicator-offset-y ) ) ),circle,transparent calc(var(--ds-thumbnail-indicator-radius) + ", "px),black 0 );--ds-thumbnail-indicator-color:black;"], z[0], z[1], n, b);
63
+ };
64
+ }
65
+ const j = s.svg.withConfig({
66
+ displayName: "Svg",
67
+ componentId: "sc-womslj-1"
68
+ })(["position:absolute;top:0;left:0;width:100%;height:100%;"]), A = s.circle.withConfig({
69
+ displayName: "Cutout",
70
+ componentId: "sc-womslj-2"
71
+ })(["fill:var(--ds-thumbnail-indicator-color,white);cx:calc(100% - var(--ds-thumbnail-indicator-radius) + var(--ds-thumbnail-indicator-offset-x));cy:calc(100% - var(--ds-thumbnail-indicator-radius) + var(--ds-thumbnail-indicator-offset-y));r:calc(var(--ds-thumbnail-indicator-radius) + ", "px);"], b), T = {
72
+ xs: t.fontSize100,
73
+ s: t.fontSize200,
74
+ m: t.fontSize500,
75
+ l: t.fontSize500
76
+ }, E = s.div.withConfig({
77
+ displayName: "Content",
78
+ componentId: "sc-womslj-3"
79
+ })(["position:absolute;inset:0;display:grid;place-items:center;color:", ";font-weight:600;font-size:", ";line-height:1;"], (h) => h.$iconColor, (h) => T[h.$size]), O = s.div.withConfig({
80
+ displayName: "NoImage",
81
+ componentId: "sc-womslj-4"
82
+ })(["width:80%;height:2px;border-radius:2px;background:", ";transform:rotate(-45deg);"], t.red500);
83
+ function R() {
84
+ return /* @__PURE__ */ e("g", { children: [
85
+ /* @__PURE__ */ i("rect", { height: "64", width: "64", x: "0", y: "0", fill: "#ffffff" }),
86
+ /* @__PURE__ */ i("path", { fill: "#e9ecee", d: "M0 0h4v4H0zM0 8h4v4H0zM0 16h4v4H0zM0 24h4v4H0zM0 32h4v4H0zM0 40h4v4H0zM0 48h4v4H0zM0 56h4v4H0zM4 4h4v4H4zM4 12h4v4H4zM4 20h4v4H4zM4 28h4v4H4zM4 36h4v4H4zM4 44h4v4H4zM4 52h4v4H4zM4 60h4v4H4zM8 0h4v4H8zM8 8h4v4H8zM8 16h4v4H8zM8 24h4v4H8zM8 32h4v4H8zM8 40h4v4H8zM8 48h4v4H8zM8 56h4v4H8zM12 4h4v4h-4zM12 12h4v4h-4zM12 20h4v4h-4zM12 28h4v4h-4zM12 36h4v4h-4zM12 44h4v4h-4zM12 52h4v4h-4zM12 60h4v4h-4zM16 0h4v4h-4zM16 8h4v4h-4zM16 16h4v4h-4zM16 24h4v4h-4zM16 32h4v4h-4zM16 40h4v4h-4zM16 48h4v4h-4zM16 56h4v4h-4zM20 4h4v4h-4zM20 12h4v4h-4zM20 20h4v4h-4zM20 28h4v4h-4zM20 36h4v4h-4zM20 44h4v4h-4zM20 52h4v4h-4zM20 60h4v4h-4zM24 0h4v4h-4zM24 8h4v4h-4zM24 16h4v4h-4zM24 24h4v4h-4zM24 32h4v4h-4zM24 40h4v4h-4zM24 48h4v4h-4zM24 56h4v4h-4zM28 4h4v4h-4zM28 12h4v4h-4zM28 20h4v4h-4zM28 28h4v4h-4zM28 36h4v4h-4zM28 44h4v4h-4zM28 52h4v4h-4zM28 60h4v4h-4zM32 0h4v4h-4zM32 8h4v4h-4zM32 16h4v4h-4zM32 24h4v4h-4zM32 32h4v4h-4zM32 40h4v4h-4zM32 48h4v4h-4zM32 56h4v4h-4zM36 4h4v4h-4zM36 12h4v4h-4zM36 20h4v4h-4zM36 28h4v4h-4zM36 36h4v4h-4zM36 44h4v4h-4zM36 52h4v4h-4zM36 60h4v4h-4zM40 0h4v4h-4zM40 8h4v4h-4zM40 16h4v4h-4zM40 24h4v4h-4zM40 32h4v4h-4zM40 40h4v4h-4zM40 48h4v4h-4zM40 56h4v4h-4zM44 4h4v4h-4zM44 12h4v4h-4zM44 20h4v4h-4zM44 28h4v4h-4zM44 36h4v4h-4zM44 44h4v4h-4zM44 52h4v4h-4zM44 60h4v4h-4zM48 0h4v4h-4zM48 8h4v4h-4zM48 16h4v4h-4zM48 24h4v4h-4zM48 32h4v4h-4zM48 40h4v4h-4zM48 48h4v4h-4zM48 56h4v4h-4zM52 4h4v4h-4zM52 12h4v4h-4zM52 20h4v4h-4zM52 28h4v4h-4zM52 36h4v4h-4zM52 44h4v4h-4zM52 52h4v4h-4zM52 60h4v4h-4zM56 0h4v4h-4zM56 8h4v4h-4zM56 16h4v4h-4zM56 24h4v4h-4zM56 32h4v4h-4zM56 40h4v4h-4zM56 48h4v4h-4zM56 56h4v4h-4zM60 4h4v4h-4zM60 12h4v4h-4zM60 20h4v4h-4zM60 28h4v4h-4zM60 36h4v4h-4zM60 44h4v4h-4zM60 52h4v4h-4zM60 60h4v4h-4z" })
87
+ ] });
88
+ }
89
+ export {
90
+ M as Thumbnail
91
+ };
package/Tokenizer.js ADDED
@@ -0,0 +1,147 @@
1
+ import { assign as p, strlen as x, charat as h, trim as j, from as q, substr as z, append as A } from "./Utility.js";
2
+ var u = 1, a = 1, b = 0, r = 0, n = 0, t = "";
3
+ function B(e, c, m, g, k, w, d, v) {
4
+ return { value: e, root: c, parent: m, type: g, props: k, children: w, line: u, column: a, length: d, return: "", siblings: v };
5
+ }
6
+ function C(e, c) {
7
+ return p(B("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, c);
8
+ }
9
+ function F(e) {
10
+ for (; e.root; )
11
+ e = C(e.root, { children: [e] });
12
+ A(e, e.siblings);
13
+ }
14
+ function G() {
15
+ return n;
16
+ }
17
+ function H() {
18
+ return n = r > 0 ? h(t, --r) : 0, a--, n === 10 && (a = 1, u--), n;
19
+ }
20
+ function i() {
21
+ return n = r < b ? h(t, r++) : 0, a++, n === 10 && (a = 1, u++), n;
22
+ }
23
+ function s() {
24
+ return h(t, r);
25
+ }
26
+ function D() {
27
+ return r;
28
+ }
29
+ function l(e, c) {
30
+ return z(t, e, c);
31
+ }
32
+ function f(e) {
33
+ switch (e) {
34
+ // \0 \t \n \r \s whitespace token
35
+ case 0:
36
+ case 9:
37
+ case 10:
38
+ case 13:
39
+ case 32:
40
+ return 5;
41
+ // ! + , / > @ ~ isolate token
42
+ case 33:
43
+ case 43:
44
+ case 44:
45
+ case 47:
46
+ case 62:
47
+ case 64:
48
+ case 126:
49
+ // ; { } breakpoint token
50
+ case 59:
51
+ case 123:
52
+ case 125:
53
+ return 4;
54
+ // : accompanied token
55
+ case 58:
56
+ return 3;
57
+ // " ' ( [ opening delimit token
58
+ case 34:
59
+ case 39:
60
+ case 40:
61
+ case 91:
62
+ return 2;
63
+ // ) ] closing delimit token
64
+ case 41:
65
+ case 93:
66
+ return 1;
67
+ }
68
+ return 0;
69
+ }
70
+ function I(e) {
71
+ return u = a = 1, b = x(t = e), r = 0, [];
72
+ }
73
+ function J(e) {
74
+ return t = "", e;
75
+ }
76
+ function K(e) {
77
+ return j(l(r - 1, o(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
78
+ }
79
+ function L(e) {
80
+ for (; (n = s()) && n < 33; )
81
+ i();
82
+ return f(e) > 2 || f(n) > 3 ? "" : " ";
83
+ }
84
+ function M(e, c) {
85
+ for (; --c && i() && !(n < 48 || n > 102 || n > 57 && n < 65 || n > 70 && n < 97); )
86
+ ;
87
+ return l(e, D() + (c < 6 && s() == 32 && i() == 32));
88
+ }
89
+ function o(e) {
90
+ for (; i(); )
91
+ switch (n) {
92
+ // ] ) " '
93
+ case e:
94
+ return r;
95
+ // " '
96
+ case 34:
97
+ case 39:
98
+ e !== 34 && e !== 39 && o(n);
99
+ break;
100
+ // (
101
+ case 40:
102
+ e === 41 && o(e);
103
+ break;
104
+ // \
105
+ case 92:
106
+ i();
107
+ break;
108
+ }
109
+ return r;
110
+ }
111
+ function N(e, c) {
112
+ for (; i() && e + n !== 57; )
113
+ if (e + n === 84 && s() === 47)
114
+ break;
115
+ return "/*" + l(c, r - 1) + "*" + q(e === 47 ? e : i());
116
+ }
117
+ function O(e) {
118
+ for (; !f(s()); )
119
+ i();
120
+ return l(e, r);
121
+ }
122
+ export {
123
+ I as alloc,
124
+ D as caret,
125
+ G as char,
126
+ n as character,
127
+ t as characters,
128
+ a as column,
129
+ N as commenter,
130
+ C as copy,
131
+ J as dealloc,
132
+ K as delimit,
133
+ o as delimiter,
134
+ M as escaping,
135
+ O as identifier,
136
+ b as length,
137
+ F as lift,
138
+ u as line,
139
+ i as next,
140
+ B as node,
141
+ s as peek,
142
+ r as position,
143
+ H as prev,
144
+ l as slice,
145
+ f as token,
146
+ L as whitespace
147
+ };
package/Toolbar.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import { jsxs as n, Fragment as p, jsx as o } from "react/jsx-runtime";
2
- import m from "styled-components";
3
- import { IconExitApp as u, IconCancel as f } from "@bynder/icons";
4
- import { token as i, Button as l } from "@bynder/design-system";
5
- import { __ as a } from "./index2.js";
2
+ import m from "./styled-components.browser.esm.js";
3
+ import { IconExitApp as u, IconCancel as f } from "./index4.js";
4
+ import { Button as a } from "./Button.js";
5
+ import { token as i } from "./token.js";
6
+ import { __ as l } from "./index2.js";
6
7
  import { useIsLoggedIn as g, useAuth as h } from "./LoginContext.js";
7
8
  import { useModalContext as x } from "./Modal.js";
8
9
  import { SearchInput as C } from "./SearchInput.js";
@@ -10,40 +11,40 @@ import { ViewSwitch as I } from "./ViewSwitch.js";
10
11
  import { useAssetFilter as v, useHideSwitch as w } from "./ConfigContext.js";
11
12
  function z() {
12
13
  const e = g(), t = x(), r = h(), s = v(), d = w(), c = s !== void 0 && !s.showToolbar;
13
- return !e && !t && c ? null : /* @__PURE__ */ n(y, { children: [
14
+ return !e && !t && c ? null : /* @__PURE__ */ n(b, { children: [
14
15
  !c && /* @__PURE__ */ n(p, { children: [
15
16
  !d && /* @__PURE__ */ o(I, {}),
16
17
  /* @__PURE__ */ o(C, {})
17
18
  ] }),
18
- /* @__PURE__ */ n(b, { children: [
19
+ /* @__PURE__ */ n(k, { children: [
19
20
  e && !r?.hideLogout && /* @__PURE__ */ o(
20
- l,
21
+ a,
21
22
  {
22
23
  variant: "clean",
23
24
  onClick: () => r?.logout(),
24
25
  rightIcon: /* @__PURE__ */ o(u, {}),
25
- children: a("Log out")
26
+ children: l("Log out")
26
27
  }
27
28
  ),
28
29
  t && /* @__PURE__ */ o(
29
- l,
30
+ a,
30
31
  {
31
32
  variant: "clean",
32
33
  onClick: () => t.onClose(),
33
- title: a("Close"),
34
+ title: l("Close"),
34
35
  icon: /* @__PURE__ */ o(f, {})
35
36
  }
36
37
  )
37
38
  ] })
38
39
  ] });
39
40
  }
40
- const y = m.nav`
41
+ const b = m.nav`
41
42
  display: flex;
42
43
  justify-content: space-between;
43
44
  background: ${i.gray10};
44
45
  padding: ${i.spacing4} ${i.spacing4};
45
46
  z-index: 30;
46
- `, b = m.div`
47
+ `, k = m.div`
47
48
  display: inline-flex;
48
49
  margin-left: auto;
49
50
  `;
package/Tooltip.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as c } from "react/jsx-runtime";
2
- import { styled as o } from "styled-components";
3
- import { token as r } from "@bynder/design-system";
2
+ import o from "./styled-components.browser.esm.js";
3
+ import { token as r } from "./token.js";
4
4
  const b = ({
5
5
  text: e,
6
6
  position: t = "top",
package/Tooltip2.js ADDED
@@ -0,0 +1,111 @@
1
+ import { jsxs as T, Fragment as C, jsx as o } from "react/jsx-runtime";
2
+ import { useHover as O, useLayer as L } from "react-laag";
3
+ import p, { css as P } from "./styled-components.browser.esm.js";
4
+ import { useFocusRing as M } from "./useFocusRing.js";
5
+ import { LightTheme as S, DarkTheme as F } from "./themeContainers.js";
6
+ import { textStyles as m } from "./textStyles.js";
7
+ import { token as r } from "./token.js";
8
+ import { Flex as N } from "./Flex.js";
9
+ import { useZIndex as j } from "./useZIndex.js";
10
+ import { Image as B } from "./Image.js";
11
+ import { Text as H } from "./Text4.js";
12
+ import { ListItem as R } from "./ListItem4.js";
13
+ import { declareTokens as D, internalTokens as a } from "./themes3.js";
14
+ import { useId as E } from "./useId.js";
15
+ function d({
16
+ position: t = "top-center",
17
+ timing: e = "instant",
18
+ size: n = "small",
19
+ isLightTheme: i = !1,
20
+ className: f,
21
+ icon: g,
22
+ secondaryText: h,
23
+ badge: y,
24
+ content: I,
25
+ ...s
26
+ }) {
27
+ const [$, b] = O({
28
+ delayEnter: e === "delay" ? 800 : 0
29
+ }), {
30
+ isFocusVisible: v,
31
+ focusProps: u
32
+ } = M(), w = j("tooltip"), c = s.isOpen === void 0 ? $ || v : s.isOpen, {
33
+ triggerProps: x,
34
+ layerProps: k,
35
+ renderLayer: z
36
+ } = L({
37
+ isOpen: c,
38
+ auto: !0,
39
+ snap: !0,
40
+ placement: V(t),
41
+ possiblePlacements: W(t),
42
+ triggerOffset: 8,
43
+ containerOffset: 8
44
+ }), l = E("tooltip");
45
+ return /* @__PURE__ */ T(C, { children: [
46
+ typeof s.children == "function" ? s.children({
47
+ ...x,
48
+ ...b,
49
+ ...u,
50
+ "aria-describedby": c ? l : void 0
51
+ }) : /* @__PURE__ */ o("div", { "aria-describedby": c ? l : void 0, ...x, ...b, ...u, children: s.children }),
52
+ c && z(/* @__PURE__ */ o(Z, { isLightTheme: i, children: /* @__PURE__ */ o(q, { ...k, $zIndex: w, className: f, $size: n, id: l, role: "tooltip", children: /* @__PURE__ */ T(N, { alignItems: "center", gap: "3", children: [
53
+ g && /* @__PURE__ */ o(A, { $size: n, children: g }),
54
+ /* @__PURE__ */ o("div", { children: I }),
55
+ h && /* @__PURE__ */ o(G, { children: h }),
56
+ y
57
+ ] }) }) }))
58
+ ] });
59
+ }
60
+ function V(t) {
61
+ return {
62
+ "top-left": "top-start",
63
+ "top-center": "top-center",
64
+ "top-right": "top-end",
65
+ left: "left-center",
66
+ right: "right-center",
67
+ "bottom-left": "bottom-start",
68
+ "bottom-center": "bottom-center",
69
+ "bottom-right": "bottom-end"
70
+ }[t];
71
+ }
72
+ function W(t) {
73
+ const e = ["top-center", "bottom-center"], n = ["left-center", "right-center"], i = ["top-end", "top-start", "bottom-end", "bottom-start"];
74
+ return {
75
+ "top-left": i,
76
+ "top-center": e,
77
+ "top-right": i,
78
+ left: n,
79
+ right: n,
80
+ "bottom-left": i,
81
+ "bottom-center": e,
82
+ "bottom-right": i
83
+ }[t];
84
+ }
85
+ function Z({
86
+ isLightTheme: t,
87
+ children: e
88
+ }) {
89
+ return t ? /* @__PURE__ */ o(S, { children: e }) : /* @__PURE__ */ o(F, { children: e });
90
+ }
91
+ d.Image = B;
92
+ d.Text = H;
93
+ d.ListItem = R;
94
+ const q = p.div.withConfig({
95
+ displayName: "TooltipContainer",
96
+ componentId: "sc-10x22fh-0"
97
+ })(["--ds-tooltip-border-radius:", ";", " z-index:", ";display:flex;box-sizing:border-box;border-radius:var(--ds-tooltip-border-radius);background:", ";color:", ";box-shadow:", ";word-break:break-word;", ";"], r.radiusBase, D, (t) => t.$zIndex, a["tooltip-background"], a["tooltip-title-color"], a["tooltip-shadow"], (t) => {
98
+ if (t.$size === "small")
99
+ return P(["", " max-width:240px;padding:", " ", ";"], m.uiTextS, r.spacing3, r.spacing4);
100
+ if (t.$size === "medium")
101
+ return P(["", " max-width:256px;padding:", " ", ";"], m.uiTextM, r.spacing3, r.spacing5);
102
+ }), A = p.span.withConfig({
103
+ displayName: "IconContainer",
104
+ componentId: "sc-10x22fh-1"
105
+ })(["display:flex;align-items:center;width:24px;height:24px;margin-block:calc(", " * -1);margin-left:", ";"], r.spacing1, (t) => t.$size === "medium" ? `calc(${r.spacing3} * -1)` : `calc(${r.spacing2} * -1)`), G = p.span.withConfig({
106
+ displayName: "SecondaryTextContainer",
107
+ componentId: "sc-10x22fh-2"
108
+ })(["", " color:", ";"], m.uiTextS, a["tooltip-secondary-text-color"]);
109
+ export {
110
+ d as Tooltip
111
+ };