@bynder/compact-view 5.2.0 → 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.
- package/AccessToken.js +5 -0
- package/AccessToken2.js +176 -0
- package/AccessToken3.js +4 -0
- package/ActiveFilter.js +6 -6
- package/ActiveFilters.js +24 -25
- package/AddMedia.js +21 -22
- package/AdditionalInfo.js +18 -0
- package/Advanced.js +3 -4
- package/App.js +68 -61
- package/Arrow.js +14 -0
- package/AssetCard.js +68 -57
- package/AssetCardMetaproperties.js +14 -14
- package/AssetFilter.js +36 -36
- package/AssetFilterContext.js +3 -4
- package/AssetItem.js +14 -14
- package/AssetList.js +46 -46
- package/AssetTypeItem.js +13 -13
- package/AssetsView.js +0 -1
- package/Autocomplete_new.js +70 -82
- package/Axios2.js +136 -0
- package/AxiosError.js +54 -0
- package/AxiosHeaders.js +181 -0
- package/AxiosURLSearchParams.js +33 -0
- package/Badge.js +44 -0
- package/Baloon.js +42 -0
- package/BaseStyles.js +10 -0
- package/Blob.js +4 -0
- package/Box.js +22 -0
- package/Button.js +39 -0
- package/Button.styles.js +40 -0
- package/ButtonAction.js +3 -4
- package/ButtonLegacy.js +48 -0
- package/ButtonLegacy.styles.js +28 -0
- package/CancelToken.js +77 -0
- package/CanceledError.js +11 -0
- package/Card.js +84 -0
- package/CardSkeleton.js +15 -15
- package/Checkbox.js +85 -0
- package/Checkbox.styles.js +2 -3
- package/Checkmark.js +7 -0
- package/Chip.js +70 -41
- package/Chip2.js +42 -0
- package/CollectionCard.js +9 -9
- package/CollectionItem.js +15 -15
- package/CollectionList.js +2 -3
- package/CollectionView.js +2 -3
- package/CollectionsView.js +6 -7
- package/ColorHexInput.js +31 -0
- package/ColorPicker.js +66 -0
- package/ColorPickerSolid.js +20 -0
- package/ColorPickerWithOpacity.js +37 -0
- package/Combobox.js +61 -0
- package/ConcealedAction.js +16 -0
- package/ConfigContext.js +0 -1
- package/ConnectButton.js +1 -2
- package/Container.js +14 -14
- package/Container2.js +31 -0
- package/Content.js +16 -0
- package/ContextAction.js +26 -18
- package/ContextActionButton.js +29 -0
- package/ControlGroup.js +32 -0
- package/DOMFunctions.js +27 -0
- package/Dat.js +62 -51
- package/DatDropdownItem.js +20 -20
- package/DesignSystemContext.js +4 -5
- package/DesignSystemProvider.js +29 -0
- package/DirectionSelect.js +16 -16
- package/Divider.js +21 -0
- package/DocumentIcon.js +0 -1
- package/DomainInput.js +15 -15
- package/DragRange.js +25 -0
- package/DragSelect.js +68 -63
- package/Dropdown.js +12 -12
- package/Dropdown2.js +169 -0
- package/DropdownContent.js +54 -39
- package/DropdownListItem.js +3 -4
- package/Enum.js +12 -0
- package/ErrorIcon.js +0 -1
- package/ErrorMessage.js +20 -20
- package/FieldSelect.js +4 -5
- package/FilePlaceholder.js +19 -0
- package/FileSelector.js +126 -141
- package/Flex.js +21 -0
- package/FontPicker.js +104 -0
- package/Footer.js +16 -0
- package/Form.js +23 -0
- package/FormData.js +4 -0
- package/Frame.js +64 -0
- package/Group.js +17 -0
- package/Group2.js +26 -0
- package/Header.js +0 -1
- package/Header2.js +43 -0
- package/Header22.js +15 -0
- package/HelperText.js +26 -0
- package/HorizontalScroll.js +4 -5
- package/HttpHandler.js +74 -0
- package/HttpResponse.js +85 -0
- package/HttpStatusCode.js +71 -0
- package/IconPlaceholder.js +18 -0
- package/Image.js +19 -0
- package/Images.js +30 -0
- package/Indicator.js +74 -0
- package/InfiniteScroll.js +8 -9
- package/InlineBanner.js +51 -0
- package/Input.js +109 -0
- package/Input.styles.js +71 -0
- package/InputContainer.js +9 -0
- package/InputField.js +74 -0
- package/InputRow.js +18 -0
- package/Inspector.js +34 -0
- package/InteractiveIcon.js +28 -0
- package/InterceptorManager.js +58 -0
- package/Item.js +107 -0
- package/Item2.js +14 -0
- package/Item4.js +190 -0
- package/Label.js +33 -0
- package/LeftArrow.js +3 -4
- package/List.js +25 -0
- package/ListItem.js +11 -0
- package/ListItem2.js +58 -0
- package/ListItem4.js +37 -0
- package/LoginComponent.js +0 -1
- package/LoginContext.js +0 -1
- package/MetapropertyFilterContent.js +2 -3
- package/MetapropertyOption.js +2 -4
- package/Middleware.js +49 -0
- package/Middleware2.js +49 -0
- package/Modal.js +2 -3
- package/Modal2.js +31 -0
- package/ModalBase.js +117 -0
- package/ModalBase.styles.js +75 -0
- package/ModalConfirmation.js +8 -0
- package/NoResults.js +16 -16
- package/OffsetContext.js +9 -0
- package/Oops.js +1 -2
- package/OpacityInput.js +17 -0
- package/Option_new.js +19 -19
- package/Overlay.js +35 -0
- package/Parser.js +131 -0
- package/Prefixer.js +187 -0
- package/Radio.js +78 -0
- package/RadioGroup.js +25 -0
- package/RangeInput.js +41 -0
- package/RefreshingSpinner.js +3 -4
- package/ReportModal.js +16 -15
- package/RequestHandler.js +119 -0
- package/RightArrow.js +4 -5
- package/RootElementContext.js +0 -1
- package/Row.js +16 -0
- package/SearchInput.js +27 -23
- package/SearchInput2.js +46 -0
- package/SectionTitle.js +17 -0
- package/Select.js +49 -0
- package/SelectButtonText.js +16 -0
- package/SelectedItemContainer.js +11 -11
- package/SelectedItems.js +2 -3
- package/SelectionContext.js +0 -1
- package/SelectionFooter.js +8 -8
- package/Serializer.js +27 -0
- package/ShadowRoot.js +0 -1
- package/ShadowRootInternal.js +17 -18
- package/Shield.js +0 -1
- package/Sidebar.js +17 -0
- package/Skeleton.js +6 -7
- package/Slider.constants.js +6 -0
- package/Slider.js +128 -0
- package/SmartFilterContent.js +2 -3
- package/SmartFilterSelect_new.js +2 -3
- package/Smartfilters_new.js +86 -77
- package/Spinner.js +2 -3
- package/Spinner2.js +15 -0
- package/StatefulAssetList.js +15 -16
- package/Stats.js +16 -0
- package/StatsItem.js +23 -0
- package/Status.js +32 -0
- package/StoreInitializer.js +29 -0
- package/Styles.css.js +0 -1
- package/Switch.js +82 -0
- package/SwitchNLS.js +26 -24
- package/Tabs2.js +10 -0
- package/TagItem.js +8 -9
- package/Tags.js +9 -10
- package/Text2.js +11 -0
- package/Text22.js +18 -0
- package/Text4.js +18 -0
- package/Textarea.js +92 -0
- package/Theming.js +4 -5
- package/Thumb.js +28 -0
- package/Thumbnail.js +91 -0
- package/Tokenizer.js +147 -0
- package/Toolbar.js +13 -13
- package/Tooltip.js +2 -3
- package/Tooltip2.js +111 -0
- package/TruncatedText.js +34 -0
- package/URLSearchParams.js +5 -0
- package/Utility.js +56 -0
- package/ViewSwitch.js +8 -8
- package/_check_private_redeclaration.js +7 -0
- package/_class_apply_descriptor_get.js +6 -0
- package/_class_apply_descriptor_set.js +11 -0
- package/_class_extract_field_descriptor.js +7 -0
- package/_class_private_field_get.js +9 -0
- package/_class_private_field_init.js +7 -0
- package/_class_private_field_set.js +9 -0
- package/_commonjsHelpers.js +6 -0
- package/adapters.js +53 -0
- package/api/types/getFilters_new.d.ts +8 -0
- package/api.js +25 -0
- package/api2.js +40 -0
- package/api3.js +406 -0
- package/applyScopeDataToEvent.js +83 -0
- package/applyScopeDataToEvent2.js +55 -0
- package/asset.type.js +9 -10
- package/asyncDebounce.js +0 -1
- package/auth.js +0 -1
- package/autocomplete.js +2 -3
- package/axios.js +46 -0
- package/base.js +57 -0
- package/base64Converter.js +0 -1
- package/baseclient.js +498 -0
- package/bind.js +8 -0
- package/browser.js +44 -0
- package/buildFullPath.js +9 -0
- package/buildURL.js +23 -0
- package/bundle.esm.js +81 -0
- package/calculateContainerMaxHeight.js +12 -0
- package/calculateNodeHeight.js +35 -0
- package/carrier.js +13 -0
- package/chain.js +8 -0
- package/checkGlobals.js +13 -0
- package/checks.js +178 -0
- package/chunk-6HYIRFX2.js +1 -0
- package/chunk.js +0 -1
- package/class.js +0 -1
- package/cleanUrl.js +11 -0
- package/client.js +76 -0
- package/clientreport.js +15 -0
- package/clsx.js +17 -0
- package/colorTransforms.js +12 -0
- package/combineFilters.js +0 -1
- package/combineMetaproperties.js +1 -2
- package/combineURLs.js +6 -0
- package/composeSignals.js +30 -0
- package/constants.js +2 -13
- package/constants2.js +82 -0
- package/constants3.js +14 -0
- package/constants4.js +8 -0
- package/constants5.js +4 -0
- package/constants6.js +4 -0
- package/context.js +12 -0
- package/context10.js +12 -0
- package/context2.js +9 -0
- package/context3.js +12 -0
- package/context6.js +5 -0
- package/cookieStore.js +116 -0
- package/cookies.js +32 -0
- package/core.js +42 -0
- package/createSelectors.js +0 -1
- package/crypto.js +0 -1
- package/currentScopes.js +9 -0
- package/data.js +4 -0
- package/de_DE.json.js +18 -0
- package/debug-build.js +4 -0
- package/debug-build2.js +4 -0
- package/debug-build3.js +4 -0
- package/debug-build4.js +4 -0
- package/debug-build5.js +4 -0
- package/debug-build6.js +4 -0
- package/decorators.js +37 -0
- package/defaultScopes.js +12 -0
- package/devUtils.js +20 -0
- package/dispatchRequest.js +31 -0
- package/doc.js +26 -0
- package/domHelpers.js +15 -0
- package/dsn.js +54 -0
- package/dynamicSamplingContext.js +34 -0
- package/dynamicSamplingContext2.js +34 -0
- package/emotion-unitless.esm.js +52 -0
- package/en_US.json.js +23 -0
- package/englishText-12403056.js +6 -0
- package/env.js +6 -0
- package/envelope.js +113 -0
- package/envelope2.js +23 -0
- package/envelope3.js +24 -0
- package/error.js +9 -0
- package/errors.js +33 -0
- package/errors2.js +55 -0
- package/es_ES.json.js +18 -0
- package/es_MX.json.js +18 -0
- package/eventProcessors.js +27 -0
- package/eventProcessors2.js +23 -0
- package/eventbuilder.js +128 -0
- package/exports.js +11 -0
- package/exports2.js +16 -0
- package/exports3.js +8 -0
- package/fetch.js +44 -0
- package/fetch2.js +141 -0
- package/filter/filters/smartfilters/Metaproperties/Autocomplete_new.d.ts +1 -1
- package/filter/filters/smartfilters/Metaproperties/Option_new.d.ts +3 -3
- package/filterAssets.js +1 -2
- package/fixFontSpaceInUrl.js +8 -0
- package/focusWithoutScrolling.js +45 -0
- package/forceHiddenStyles.js +19 -0
- package/formDataToJSON.js +31 -0
- package/fr_FR.json.js +18 -0
- package/getAbsoluteUrl.js +13 -0
- package/getAsset.js +1 -2
- package/getAssetCounts.js +1 -2
- package/getAssets.js +2 -3
- package/getCallFrame.js +12 -0
- package/getCollections.js +1 -2
- package/getFilterOptions.js +1 -2
- package/getFilters.js +1 -2
- package/getFilters_new.js +1 -2
- package/getLimitedUseThumbnails.js +0 -1
- package/getRequestCookies.js +40 -0
- package/getRootSpan.js +6 -0
- package/getRootSpan2.js +6 -0
- package/getSimilarityAssets.js +1 -2
- package/getSizingData.js +45 -0
- package/getStatusCodeColor.js +6 -0
- package/getThumbPosition.js +6 -0
- package/getTimestamp.js +7 -0
- package/getUseLayerOptions.js +49 -0
- package/handlers.js +92 -7
- package/handlers2.js +6 -0
- package/helpers.js +3 -5
- package/helpers2.js +6 -0
- package/hexFromPercentage.js +7 -0
- package/http.js +17 -0
- package/hub.js +446 -0
- package/hub2.js +442 -0
- package/immer.js +472 -0
- package/import.js +7 -0
- package/index-esm.js +10781 -0
- package/index-esm2.js +138 -0
- package/index-esm3.js +131 -0
- package/index.browser.js +11 -0
- package/index.js +0 -1
- package/index.module.js +57 -0
- package/index.module2.js +72 -0
- package/index.module3.js +57 -0
- package/index10.js +20 -0
- package/index102.js +273 -0
- package/index11.js +18 -0
- package/index112.js +29 -0
- package/index12.js +38 -0
- package/index13.js +2432 -0
- package/index14.js +558 -0
- package/index15.js +58 -0
- package/index16.js +4 -0
- package/index17.js +89 -0
- package/index18.js +9 -0
- package/index19.js +62 -0
- package/index2.js +0 -1
- package/index20.js +15 -0
- package/index21.js +11 -0
- package/index22.js +42 -0
- package/index23.js +9 -0
- package/index24.js +10 -0
- package/index25.js +7 -0
- package/index26.js +12 -0
- package/index27.js +11 -0
- package/index28.js +639 -0
- package/index29.js +76 -0
- package/index3.js +5 -54
- package/index30.js +7 -0
- package/index31.js +22 -0
- package/index32.js +2 -0
- package/index33.js +7 -0
- package/index34.js +20 -0
- package/index35.js +8 -0
- package/index36.js +4 -0
- package/index37.js +13 -0
- package/index38.js +13 -0
- package/index39.js +15 -0
- package/index4.js +1684 -18
- package/index40.js +13 -0
- package/index41.js +21 -0
- package/index42.js +66 -0
- package/index43.js +8 -0
- package/index44.js +57 -0
- package/index45.js +69 -0
- package/index46.js +33 -0
- package/index47.js +13 -0
- package/index48.js +123 -0
- package/index49.js +88 -0
- package/index5.js +27 -0
- package/index50.js +10 -0
- package/index51.js +13 -0
- package/index52.js +16 -0
- package/index53.js +16 -0
- package/index54.js +9 -0
- package/index55.js +9 -0
- package/index56.js +17 -0
- package/index57.js +31 -0
- package/index58.js +18 -0
- package/index6.js +315 -0
- package/index7.js +4 -0
- package/index72.js +228 -0
- package/index8.js +5051 -0
- package/index82.js +8 -0
- package/index9.js +55 -0
- package/index92.js +12 -0
- package/integration.js +38 -0
- package/is.js +77 -0
- package/is2.js +14 -0
- package/is3.js +14 -0
- package/isAbsoluteURL.js +6 -0
- package/isAbsoluteUrl2.js +6 -0
- package/isAxiosError.js +7 -0
- package/isCancel.js +6 -0
- package/isIterable.js +6 -0
- package/isStringEqual.js +6 -0
- package/isURLSameOrigin.js +8 -0
- package/isValidHexValue.js +6 -0
- package/isVirtualEvent.js +11 -0
- package/iso.js +38 -0
- package/it_IT.json.js +18 -0
- package/itemContext.js +5 -0
- package/ja_JP.json.js +18 -0
- package/ko_KR.json.js +18 -0
- package/localStorageHelper.js +32 -0
- package/localStorageHelper2.js +4 -0
- package/localization.js +46 -0
- package/logger.js +0 -1
- package/logger2.js +56 -0
- package/logger3.js +56 -0
- package/logger4.js +56 -0
- package/loginwindow.js +0 -1
- package/makeHexWithOpacity.js +12 -0
- package/makeInternalTokens.js +22 -0
- package/matchRequestUrl.js +23 -0
- package/memo.js +25 -0
- package/merge.js +13 -0
- package/mergeConfig.js +70 -0
- package/mergeProps.js +22 -0
- package/mergeRefs.js +9 -0
- package/middleware.js +177 -0
- package/middleware2.js +177 -0
- package/misc.js +58 -0
- package/misc2.js +28 -0
- package/misc3.js +24 -0
- package/nl_NL.json.js +18 -0
- package/normalize.js +97 -0
- package/normalizePath.js +11 -0
- package/normalizeResponse.js +1 -2
- package/normalizeRows.js +10 -0
- package/notify.js +52 -0
- package/null.js +4 -0
- package/oauth2.js +0 -1
- package/object.js +110 -0
- package/object2.js +39 -0
- package/object3.js +17 -0
- package/opacityPercentageFromHex.js +9 -0
- package/openLink.js +27 -0
- package/package.json +1 -1
- package/packageVersion.js +4 -0
- package/parse.js +9 -0
- package/parse2.js +44 -0
- package/parseHeaders.js +30 -0
- package/parseProtocol.js +7 -0
- package/pl_PL.json.js +18 -0
- package/platform.js +42 -0
- package/prepareEvent.js +141 -0
- package/prepareEvent2.js +5 -0
- package/prepareEvent3.js +5 -0
- package/progressEventReducer.js +35 -0
- package/promisebuffer.js +44 -0
- package/propagationContext.js +11 -0
- package/pt_BR.json.js +18 -0
- package/ratelimit.js +37 -0
- package/react.js +19 -0
- package/react2.js +19 -0
- package/regexes.js +51 -0
- package/registries.js +41 -0
- package/resolveConfig.js +33 -0
- package/result.type.js +0 -1
- package/ru_RU.json.js +18 -0
- package/runAfterTransition.js +35 -0
- package/schemas.js +368 -0
- package/schemas2.js +691 -0
- package/scope.js +412 -0
- package/scope2.js +407 -0
- package/scope3.js +348 -0
- package/sdk-DhxX43BH.js +4813 -0
- package/sdkMetadata.js +15 -0
- package/serializeRequest.js +12 -0
- package/serializeResponse.js +14 -0
- package/session.js +57 -0
- package/session2.js +57 -0
- package/session3.js +16 -0
- package/settle.js +14 -0
- package/shadowdom.js +13 -0
- package/shadowdom2.js +13 -0
- package/spanOnScope.js +12 -0
- package/spanUtils.js +31 -0
- package/spanUtils2.js +31 -0
- package/speedometer.js +19 -0
- package/spread.js +8 -0
- package/stack-parsers.js +48 -0
- package/stackStrategy.js +98 -0
- package/stacktrace.js +49 -0
- package/state.js +106 -0
- package/store/StoreInitializer.d.ts +8 -0
- package/store/useDatStore.d.ts +11 -8
- package/string.js +6 -0
- package/styled-components.browser.esm.js +530 -0
- package/styles.js +55 -0
- package/styles2.js +17 -0
- package/supports.js +6 -0
- package/syncpromise.js +121 -0
- package/syncpromise2.js +109 -0
- package/text.js +0 -1
- package/textSelection.js +33 -0
- package/textStyles.js +20 -0
- package/theme.js +238 -0
- package/themeContainers.js +20 -0
- package/themes3.js +26 -0
- package/throttle.js +15 -0
- package/time.js +24 -0
- package/time2.js +24 -0
- package/time3.js +24 -0
- package/toFormData.js +85 -0
- package/toPublicUrl.js +9 -0
- package/toURLEncodedForm.js +13 -0
- package/token.js +236 -0
- package/tokenExpirationHelper.js +48 -0
- package/tokenExpirationHelper2.js +4 -0
- package/tokensAndThemes.js +92 -0
- package/tr_TR.json.js +18 -0
- package/trackStream.js +63 -0
- package/transformData.js +13 -0
- package/transitional.js +8 -0
- package/trimMetapropertyValue.js +1 -2
- package/tslib.es6.js +18 -0
- package/typeof.js +11 -0
- package/url.js +0 -1
- package/urlHelper.js +15 -0
- package/urlHelper2.js +4 -0
- package/useAccountDomain.js +0 -1
- package/useAuthInformation.js +0 -1
- package/useAutoHeight.js +25 -0
- package/useClickOutside.js +0 -1
- package/useDatStore.js +31 -28
- package/useDimensions.js +0 -1
- package/useEffectEvent.js +18 -0
- package/useFocus.js +30 -0
- package/useFocusRing.js +34 -0
- package/useFocusVisible.js +92 -0
- package/useFocusWithin.js +57 -0
- package/useFonts.js +118 -0
- package/useGlobalListeners.js +34 -0
- package/useGroupContext.js +10 -0
- package/useHover.js +79 -0
- package/useId.js +8 -0
- package/useId2.js +17 -0
- package/useKeyDown.js +14 -0
- package/useLayoutEffect.js +6 -0
- package/useOrderingStore.js +6 -7
- package/usePress.js +359 -0
- package/useRouterStore.js +6 -7
- package/useScrollHighlightedIntoView.js +24 -0
- package/useSearchStore.js +5 -6
- package/useSimilaritySearchStore.js +6 -7
- package/useSyncRef.js +12 -0
- package/useTranslate.js +13 -0
- package/useZIndex.js +9 -0
- package/userfeedback.js +28 -0
- package/util.js +265 -0
- package/utils/fixFontSpaceInUrl.d.ts +1 -0
- package/utils.js +26 -45
- package/utils2.js +43 -46
- package/utils3.js +50 -0
- package/utils4.js +12 -0
- package/utils5.js +71 -0
- package/utils6.js +222 -0
- package/utils7.js +9 -0
- package/utils8.js +70 -0
- package/validator.js +54 -0
- package/vanilla.js +14 -0
- package/vanilla2.js +14 -0
- package/version.js +4 -0
- package/version2.js +4 -0
- package/version3.js +4 -0
- package/versionContext.js +9 -0
- package/versions.js +8 -0
- package/views/asset/asset-card/AssetCard.d.ts +4 -2
- package/views/asset/asset-card/ContextAction.d.ts +3 -1
- package/worldwide.js +19 -0
- package/worldwide2.js +15 -0
- package/worldwide3.js +10 -0
- package/xhr.js +71 -0
- package/zh_CN.json.js +18 -0
- package/zh_TW.json.js +18 -0
- package/ActiveFilter.js.map +0 -1
- package/ActiveFilters.js.map +0 -1
- package/AddMedia.js.map +0 -1
- package/Advanced.js.map +0 -1
- package/App.js.map +0 -1
- package/AssetCard.js.map +0 -1
- package/AssetCardMetaproperties.js.map +0 -1
- package/AssetFilter.js.map +0 -1
- package/AssetFilterContext.js.map +0 -1
- package/AssetItem.js.map +0 -1
- package/AssetList.js.map +0 -1
- package/AssetTypeItem.js.map +0 -1
- package/AssetsView.js.map +0 -1
- package/Autocomplete_new.js.map +0 -1
- package/ButtonAction.js.map +0 -1
- package/CardSkeleton.js.map +0 -1
- package/Checkbox.styles.js.map +0 -1
- package/Chip.js.map +0 -1
- package/CollectionCard.js.map +0 -1
- package/CollectionItem.js.map +0 -1
- package/CollectionList.js.map +0 -1
- package/CollectionView.js.map +0 -1
- package/CollectionsView.js.map +0 -1
- package/ConfigContext.js.map +0 -1
- package/ConnectButton.js.map +0 -1
- package/Container.js.map +0 -1
- package/ContextAction.js.map +0 -1
- package/Dat.js.map +0 -1
- package/DatDropdownItem.js.map +0 -1
- package/DesignSystemContext.js.map +0 -1
- package/DirectionSelect.js.map +0 -1
- package/DocumentIcon.js.map +0 -1
- package/DomainInput.js.map +0 -1
- package/DragSelect.js.map +0 -1
- package/Dropdown.js.map +0 -1
- package/DropdownContent.js.map +0 -1
- package/DropdownListItem.js.map +0 -1
- package/ErrorIcon.js.map +0 -1
- package/ErrorMessage.js.map +0 -1
- package/FieldSelect.js.map +0 -1
- package/FileSelector.js.map +0 -1
- package/Header.js.map +0 -1
- package/HorizontalScroll.js.map +0 -1
- package/InfiniteScroll.js.map +0 -1
- package/LeftArrow.js.map +0 -1
- package/LoginComponent.js.map +0 -1
- package/LoginContext.js.map +0 -1
- package/MetapropertyFilterContent.js.map +0 -1
- package/MetapropertyOption.js.map +0 -1
- package/Modal.js.map +0 -1
- package/NoResults.js.map +0 -1
- package/Oops.js.map +0 -1
- package/Option_new.js.map +0 -1
- package/RefreshingSpinner.js.map +0 -1
- package/ReportModal.js.map +0 -1
- package/RightArrow.js.map +0 -1
- package/RootElementContext.js.map +0 -1
- package/SearchInput.js.map +0 -1
- package/SelectedItemContainer.js.map +0 -1
- package/SelectedItems.js.map +0 -1
- package/SelectionContext.js.map +0 -1
- package/SelectionFooter.js.map +0 -1
- package/ShadowRoot.js.map +0 -1
- package/ShadowRootInternal.js.map +0 -1
- package/Shield.js.map +0 -1
- package/Skeleton.js.map +0 -1
- package/SmartFilterContent.js.map +0 -1
- package/SmartFilterSelect_new.js.map +0 -1
- package/Smartfilters_new.js.map +0 -1
- package/Spinner.js.map +0 -1
- package/StatefulAssetList.js.map +0 -1
- package/Styles.css.js.map +0 -1
- package/SwitchNLS.js.map +0 -1
- package/TagItem.js.map +0 -1
- package/Tags.js.map +0 -1
- package/Theming.js.map +0 -1
- package/Toolbar.js.map +0 -1
- package/Tooltip.js.map +0 -1
- package/ViewSwitch.js.map +0 -1
- package/asset.type.js.map +0 -1
- package/asyncDebounce.js.map +0 -1
- package/auth.js.map +0 -1
- package/autocomplete.js.map +0 -1
- package/base64Converter.js.map +0 -1
- package/chunk.js.map +0 -1
- package/class.js.map +0 -1
- package/combineFilters.js.map +0 -1
- package/combineMetaproperties.js.map +0 -1
- package/constants.js.map +0 -1
- package/createSelectors.js.map +0 -1
- package/crypto.js.map +0 -1
- package/filterAssets.js.map +0 -1
- package/getAsset.js.map +0 -1
- package/getAssetCounts.js.map +0 -1
- package/getAssets.js.map +0 -1
- package/getCollections.js.map +0 -1
- package/getFilterOptions.js.map +0 -1
- package/getFilters.js.map +0 -1
- package/getFilters_new.js.map +0 -1
- package/getLimitedUseThumbnails.js.map +0 -1
- package/getSimilarityAssets.js.map +0 -1
- package/handlers.js.map +0 -1
- package/helpers.js.map +0 -1
- package/index.js.map +0 -1
- package/index2.js.map +0 -1
- package/index3.js.map +0 -1
- package/index4.js.map +0 -1
- package/logger.js.map +0 -1
- package/loginwindow.js.map +0 -1
- package/normalizeResponse.js.map +0 -1
- package/oauth2.js.map +0 -1
- package/result.type.js.map +0 -1
- package/router/RouterContext.d.ts +0 -19
- package/text.js.map +0 -1
- package/trimMetapropertyValue.js.map +0 -1
- package/url.js.map +0 -1
- package/useAccountDomain.js.map +0 -1
- package/useAuthInformation.js.map +0 -1
- package/useClickOutside.js.map +0 -1
- package/useDatStore.js.map +0 -1
- package/useDimensions.js.map +0 -1
- package/useOrderingStore.js.map +0 -1
- package/useRouterStore.js.map +0 -1
- package/useSearchStore.js.map +0 -1
- package/useSimilaritySearchStore.js.map +0 -1
- package/utils.js.map +0 -1
- package/utils2.js.map +0 -1
package/AxiosHeaders.js
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import i from "./utils6.js";
|
|
2
|
+
import S from "./parseHeaders.js";
|
|
3
|
+
const h = Symbol("internals");
|
|
4
|
+
function y(r) {
|
|
5
|
+
return r && String(r).trim().toLowerCase();
|
|
6
|
+
}
|
|
7
|
+
function m(r) {
|
|
8
|
+
return r === !1 || r == null ? r : i.isArray(r) ? r.map(m) : String(r);
|
|
9
|
+
}
|
|
10
|
+
function A(r) {
|
|
11
|
+
const t = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
12
|
+
let s;
|
|
13
|
+
for (; s = e.exec(r); )
|
|
14
|
+
t[s[1]] = s[2];
|
|
15
|
+
return t;
|
|
16
|
+
}
|
|
17
|
+
const k = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
|
|
18
|
+
function g(r, t, e, s, n) {
|
|
19
|
+
if (i.isFunction(s))
|
|
20
|
+
return s.call(this, t, e);
|
|
21
|
+
if (n && (t = e), !!i.isString(t)) {
|
|
22
|
+
if (i.isString(s))
|
|
23
|
+
return t.indexOf(s) !== -1;
|
|
24
|
+
if (i.isRegExp(s))
|
|
25
|
+
return s.test(t);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function E(r) {
|
|
29
|
+
return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, e, s) => e.toUpperCase() + s);
|
|
30
|
+
}
|
|
31
|
+
function j(r, t) {
|
|
32
|
+
const e = i.toCamelCase(" " + t);
|
|
33
|
+
["get", "set", "has"].forEach((s) => {
|
|
34
|
+
Object.defineProperty(r, s + e, {
|
|
35
|
+
value: function(n, o, f) {
|
|
36
|
+
return this[s].call(this, t, n, o, f);
|
|
37
|
+
},
|
|
38
|
+
configurable: !0
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
class b {
|
|
43
|
+
constructor(t) {
|
|
44
|
+
t && this.set(t);
|
|
45
|
+
}
|
|
46
|
+
set(t, e, s) {
|
|
47
|
+
const n = this;
|
|
48
|
+
function o(c, l, a) {
|
|
49
|
+
const u = y(l);
|
|
50
|
+
if (!u)
|
|
51
|
+
throw new Error("header name must be a non-empty string");
|
|
52
|
+
const p = i.findKey(n, u);
|
|
53
|
+
(!p || n[p] === void 0 || a === !0 || a === void 0 && n[p] !== !1) && (n[p || l] = m(c));
|
|
54
|
+
}
|
|
55
|
+
const f = (c, l) => i.forEach(c, (a, u) => o(a, u, l));
|
|
56
|
+
if (i.isPlainObject(t) || t instanceof this.constructor)
|
|
57
|
+
f(t, e);
|
|
58
|
+
else if (i.isString(t) && (t = t.trim()) && !k(t))
|
|
59
|
+
f(S(t), e);
|
|
60
|
+
else if (i.isObject(t) && i.isIterable(t)) {
|
|
61
|
+
let c = {}, l, a;
|
|
62
|
+
for (const u of t) {
|
|
63
|
+
if (!i.isArray(u))
|
|
64
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
65
|
+
c[a = u[0]] = (l = c[a]) ? i.isArray(l) ? [...l, u[1]] : [l, u[1]] : u[1];
|
|
66
|
+
}
|
|
67
|
+
f(c, e);
|
|
68
|
+
} else
|
|
69
|
+
t != null && o(e, t, s);
|
|
70
|
+
return this;
|
|
71
|
+
}
|
|
72
|
+
get(t, e) {
|
|
73
|
+
if (t = y(t), t) {
|
|
74
|
+
const s = i.findKey(this, t);
|
|
75
|
+
if (s) {
|
|
76
|
+
const n = this[s];
|
|
77
|
+
if (!e)
|
|
78
|
+
return n;
|
|
79
|
+
if (e === !0)
|
|
80
|
+
return A(n);
|
|
81
|
+
if (i.isFunction(e))
|
|
82
|
+
return e.call(this, n, s);
|
|
83
|
+
if (i.isRegExp(e))
|
|
84
|
+
return e.exec(n);
|
|
85
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
has(t, e) {
|
|
90
|
+
if (t = y(t), t) {
|
|
91
|
+
const s = i.findKey(this, t);
|
|
92
|
+
return !!(s && this[s] !== void 0 && (!e || g(this, this[s], s, e)));
|
|
93
|
+
}
|
|
94
|
+
return !1;
|
|
95
|
+
}
|
|
96
|
+
delete(t, e) {
|
|
97
|
+
const s = this;
|
|
98
|
+
let n = !1;
|
|
99
|
+
function o(f) {
|
|
100
|
+
if (f = y(f), f) {
|
|
101
|
+
const c = i.findKey(s, f);
|
|
102
|
+
c && (!e || g(s, s[c], c, e)) && (delete s[c], n = !0);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return i.isArray(t) ? t.forEach(o) : o(t), n;
|
|
106
|
+
}
|
|
107
|
+
clear(t) {
|
|
108
|
+
const e = Object.keys(this);
|
|
109
|
+
let s = e.length, n = !1;
|
|
110
|
+
for (; s--; ) {
|
|
111
|
+
const o = e[s];
|
|
112
|
+
(!t || g(this, this[o], o, t, !0)) && (delete this[o], n = !0);
|
|
113
|
+
}
|
|
114
|
+
return n;
|
|
115
|
+
}
|
|
116
|
+
normalize(t) {
|
|
117
|
+
const e = this, s = {};
|
|
118
|
+
return i.forEach(this, (n, o) => {
|
|
119
|
+
const f = i.findKey(s, o);
|
|
120
|
+
if (f) {
|
|
121
|
+
e[f] = m(n), delete e[o];
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const c = t ? E(o) : String(o).trim();
|
|
125
|
+
c !== o && delete e[o], e[c] = m(n), s[c] = !0;
|
|
126
|
+
}), this;
|
|
127
|
+
}
|
|
128
|
+
concat(...t) {
|
|
129
|
+
return this.constructor.concat(this, ...t);
|
|
130
|
+
}
|
|
131
|
+
toJSON(t) {
|
|
132
|
+
const e = /* @__PURE__ */ Object.create(null);
|
|
133
|
+
return i.forEach(this, (s, n) => {
|
|
134
|
+
s != null && s !== !1 && (e[n] = t && i.isArray(s) ? s.join(", ") : s);
|
|
135
|
+
}), e;
|
|
136
|
+
}
|
|
137
|
+
[Symbol.iterator]() {
|
|
138
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
139
|
+
}
|
|
140
|
+
toString() {
|
|
141
|
+
return Object.entries(this.toJSON()).map(([t, e]) => t + ": " + e).join(`
|
|
142
|
+
`);
|
|
143
|
+
}
|
|
144
|
+
getSetCookie() {
|
|
145
|
+
return this.get("set-cookie") || [];
|
|
146
|
+
}
|
|
147
|
+
get [Symbol.toStringTag]() {
|
|
148
|
+
return "AxiosHeaders";
|
|
149
|
+
}
|
|
150
|
+
static from(t) {
|
|
151
|
+
return t instanceof this ? t : new this(t);
|
|
152
|
+
}
|
|
153
|
+
static concat(t, ...e) {
|
|
154
|
+
const s = new this(t);
|
|
155
|
+
return e.forEach((n) => s.set(n)), s;
|
|
156
|
+
}
|
|
157
|
+
static accessor(t) {
|
|
158
|
+
const s = (this[h] = this[h] = {
|
|
159
|
+
accessors: {}
|
|
160
|
+
}).accessors, n = this.prototype;
|
|
161
|
+
function o(f) {
|
|
162
|
+
const c = y(f);
|
|
163
|
+
s[c] || (j(n, f), s[c] = !0);
|
|
164
|
+
}
|
|
165
|
+
return i.isArray(t) ? t.forEach(o) : o(t), this;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
b.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
169
|
+
i.reduceDescriptors(b.prototype, ({ value: r }, t) => {
|
|
170
|
+
let e = t[0].toUpperCase() + t.slice(1);
|
|
171
|
+
return {
|
|
172
|
+
get: () => r,
|
|
173
|
+
set(s) {
|
|
174
|
+
this[e] = s;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
i.freezeMethods(b);
|
|
179
|
+
export {
|
|
180
|
+
b as default
|
|
181
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import p from "./toFormData.js";
|
|
2
|
+
function i(n) {
|
|
3
|
+
const t = {
|
|
4
|
+
"!": "%21",
|
|
5
|
+
"'": "%27",
|
|
6
|
+
"(": "%28",
|
|
7
|
+
")": "%29",
|
|
8
|
+
"~": "%7E",
|
|
9
|
+
"%20": "+",
|
|
10
|
+
"%00": "\0"
|
|
11
|
+
};
|
|
12
|
+
return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
13
|
+
return t[r];
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function a(n, t) {
|
|
17
|
+
this._pairs = [], n && p(n, this, t);
|
|
18
|
+
}
|
|
19
|
+
const c = a.prototype;
|
|
20
|
+
c.append = function(t, o) {
|
|
21
|
+
this._pairs.push([t, o]);
|
|
22
|
+
};
|
|
23
|
+
c.toString = function(t) {
|
|
24
|
+
const o = t ? function(r) {
|
|
25
|
+
return t.call(this, r, i);
|
|
26
|
+
} : i;
|
|
27
|
+
return this._pairs.map(function(e) {
|
|
28
|
+
return o(e[0]) + "=" + o(e[1]);
|
|
29
|
+
}, "").join("&");
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
a as default
|
|
33
|
+
};
|
package/Badge.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs as g, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import d, { css as i } from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as e } from "./token.js";
|
|
4
|
+
import { textStyles as h } from "./textStyles.js";
|
|
5
|
+
function u({
|
|
6
|
+
children: r,
|
|
7
|
+
color: a = "brand",
|
|
8
|
+
hasBorder: n = !1,
|
|
9
|
+
isPillShaped: t = !1,
|
|
10
|
+
icon: l,
|
|
11
|
+
isSmall: o = !1,
|
|
12
|
+
isSecondary: c = !1,
|
|
13
|
+
...s
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ g(f, { $color: a, $hasBorder: n, $isPillShaped: t, $isSecondary: c, $isSmall: o, ...s, children: [
|
|
16
|
+
l && /* @__PURE__ */ m(y, { $isSmall: o, children: l }),
|
|
17
|
+
r
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
const f = d.div.withConfig({
|
|
21
|
+
displayName: "BadgeStyled",
|
|
22
|
+
componentId: "sc-w3qdpd-0"
|
|
23
|
+
})(["", " display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;height:", ";padding:0 ", ";border:2px solid transparent;border-radius:", ";color:", ";", ""], h.uiTextXS, (r) => r.$isSmall ? "20px" : "24px", (r) => r.$isSmall ? e.spacing2 : "6px", (r) => r.$isPillShaped ? e.radiusPill : e.radiusMedium, e.white, (r) => {
|
|
24
|
+
if (!r.$isSecondary && r.$color) {
|
|
25
|
+
const a = {
|
|
26
|
+
brand: e.brandPrimary500,
|
|
27
|
+
gray: e.gray500,
|
|
28
|
+
black: e.gray900,
|
|
29
|
+
"black-alpha": e.gray600a,
|
|
30
|
+
green: e.green500,
|
|
31
|
+
blue: e.blue500,
|
|
32
|
+
red: e.red500
|
|
33
|
+
};
|
|
34
|
+
return r.$hasBorder ? i(["border-color:", ";color:", ";"], a[r.$color], a[r.$color]) : i(["background-color:", ";"], a[r.$color]);
|
|
35
|
+
}
|
|
36
|
+
if (r.$isSecondary)
|
|
37
|
+
return i(["border-color:", ";background-color:", ";color:", ";"], r.$hasBorder ? e.gray100 : "transparent", r.$hasBorder ? e.white : e.gray100, e.gray800);
|
|
38
|
+
}), y = d.div.withConfig({
|
|
39
|
+
displayName: "IconHolder",
|
|
40
|
+
componentId: "sc-w3qdpd-1"
|
|
41
|
+
})(["display:flex;align-items:center;height:100%;margin-right:", ";margin-left:calc(", " * -1);svg{width:18px;height:18px;}"], (r) => r.$isSmall ? e.spacing1 : e.spacing2, e.spacing1);
|
|
42
|
+
export {
|
|
43
|
+
u as Badge
|
|
44
|
+
};
|
package/Baloon.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import t from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as e } from "./token.js";
|
|
4
|
+
import { baseStyles as l } from "./BaseStyles.js";
|
|
5
|
+
function w(i) {
|
|
6
|
+
return /* @__PURE__ */ n(r, { role: "status", "aria-live": "polite", children: [
|
|
7
|
+
i.thumbnail && /* @__PURE__ */ o(a, { children: i.thumbnail }),
|
|
8
|
+
/* @__PURE__ */ n(d, { children: [
|
|
9
|
+
/* @__PURE__ */ o(s, { title: typeof i.title == "string" ? i.title : "", children: i.title }),
|
|
10
|
+
i.description && /* @__PURE__ */ o(c, { title: typeof i.description == "string" ? i.description : "", children: i.description })
|
|
11
|
+
] }),
|
|
12
|
+
/* @__PURE__ */ o(m, { children: i.button }),
|
|
13
|
+
typeof i.progressPercentage == "number" && /* @__PURE__ */ o(p, { style: {
|
|
14
|
+
width: i.progressPercentage + "%"
|
|
15
|
+
} })
|
|
16
|
+
] });
|
|
17
|
+
}
|
|
18
|
+
const r = t.div.withConfig({
|
|
19
|
+
displayName: "BaloonStyled",
|
|
20
|
+
componentId: "sc-1b0pj4o-0"
|
|
21
|
+
})(["", ";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:", ";border-radius:", ";background:", ";box-shadow:", ",", ";"], l, e.spacing5, e.radiusLarge, e.white, e.elevationStatic, e.elevation2), a = t.div.withConfig({
|
|
22
|
+
displayName: "ThumbnailWrapper",
|
|
23
|
+
componentId: "sc-1b0pj4o-1"
|
|
24
|
+
})(["flex:none;margin-right:", ";"], e.spacing5), d = t.div.withConfig({
|
|
25
|
+
displayName: "Text",
|
|
26
|
+
componentId: "sc-1b0pj4o-2"
|
|
27
|
+
})(["flex:1;align-self:center;"]), s = t.h2.withConfig({
|
|
28
|
+
displayName: "Title",
|
|
29
|
+
componentId: "sc-1b0pj4o-3"
|
|
30
|
+
})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]), c = t.p.withConfig({
|
|
31
|
+
displayName: "Description",
|
|
32
|
+
componentId: "sc-1b0pj4o-4"
|
|
33
|
+
})(["display:-webkit-box;overflow:hidden;margin:", " 0 0;color:", ";font-size:", ";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"], e.spacing2, e.colorTextMuted, e.fontSize75), m = t.div.withConfig({
|
|
34
|
+
displayName: "Action",
|
|
35
|
+
componentId: "sc-1b0pj4o-5"
|
|
36
|
+
})(["flex:none;"]), p = t.div.withConfig({
|
|
37
|
+
displayName: "Progress",
|
|
38
|
+
componentId: "sc-1b0pj4o-6"
|
|
39
|
+
})(["position:absolute;bottom:0;left:0;height:4px;background-color:", ";transition:width 0.2s;"], e.brandPrimary500);
|
|
40
|
+
export {
|
|
41
|
+
w as Baloon
|
|
42
|
+
};
|
package/BaseStyles.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e, { css as o } from "./styled-components.browser.esm.js";
|
|
2
|
+
import { token as t } from "./token.js";
|
|
3
|
+
const s = o(["color:", ";font-size:", ";font-family:", ";line-height:", ";"], t.colorText, t.fontSizeBase, t.brandFontStackBase, t.lineHeightBase);
|
|
4
|
+
e.div.withConfig({
|
|
5
|
+
displayName: "BaseStyles",
|
|
6
|
+
componentId: "sc-j543r9-0"
|
|
7
|
+
})(["", ""], s);
|
|
8
|
+
export {
|
|
9
|
+
s as baseStyles
|
|
10
|
+
};
|
package/Blob.js
ADDED
package/Box.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import a from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as r } from "./token.js";
|
|
4
|
+
function l({
|
|
5
|
+
children: n,
|
|
6
|
+
as: t = "div",
|
|
7
|
+
...d
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ g(o, { as: t, ...d, children: n });
|
|
10
|
+
}
|
|
11
|
+
const o = a.div.withConfig({
|
|
12
|
+
shouldForwardProp: (n) => !(n.startsWith("margin") || n.startsWith("padding"))
|
|
13
|
+
}).withConfig({
|
|
14
|
+
displayName: "BoxStyled",
|
|
15
|
+
componentId: "sc-16jnu4g-0"
|
|
16
|
+
})(["margin:", ";margin-inline:", ";margin-block:", ";margin-top:", ";margin-right:", ";margin-bottom:", ";margin-left:", ";padding:", ";padding-inline:", ";padding-block:", ";padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";"], i("margin"), i("marginInline"), i("marginBlock"), i("marginTop"), i("marginRight"), i("marginBottom"), i("marginLeft"), i("padding"), i("paddingInline"), i("paddingBlock"), i("paddingTop"), i("paddingRight"), i("paddingBottom"), i("paddingLeft"));
|
|
17
|
+
function i(n) {
|
|
18
|
+
return (t) => t[n] ? r[`spacing${t[n]}`] : void 0;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
l as Box
|
|
22
|
+
};
|
package/Button.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as t, jsxs as a, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import { useFocusRing as P } from "./useFocusRing.js";
|
|
4
|
+
import { mergeProps as V } from "./mergeProps.js";
|
|
5
|
+
import { ButtonLegacy as v } from "./ButtonLegacy.js";
|
|
6
|
+
import { VersionContext as B, useVersionContext as F } from "./versionContext.js";
|
|
7
|
+
import { ButtonStyled as y, LeftIcon as d, RightIcon as C } from "./Button.styles.js";
|
|
8
|
+
import { Spinner as S } from "./Spinner2.js";
|
|
9
|
+
const j = l(({
|
|
10
|
+
children: o,
|
|
11
|
+
variant: e = "secondary",
|
|
12
|
+
isSmall: r = !1,
|
|
13
|
+
icon: s,
|
|
14
|
+
rightIcon: i,
|
|
15
|
+
isDisabled: m = !1,
|
|
16
|
+
isLoading: n = !1,
|
|
17
|
+
type: u = "button",
|
|
18
|
+
isPressed: $ = !1,
|
|
19
|
+
isFullWidth: p = !1,
|
|
20
|
+
...f
|
|
21
|
+
}, b) => {
|
|
22
|
+
const {
|
|
23
|
+
isFocusVisible: h,
|
|
24
|
+
focusProps: g
|
|
25
|
+
} = P(), x = V(f, g);
|
|
26
|
+
return /* @__PURE__ */ t(y, { $variant: e, $isSmall: r, $isPressed: $, $isFullWidth: p, disabled: n || m, type: u, as: f.href ? "a" : "button", $isFocusVisible: h, ref: b, ...x, children: n ? /* @__PURE__ */ a(c, { children: [
|
|
27
|
+
/* @__PURE__ */ t(d, { "data-testid": "ds-button-loading-icon", $lastChild: !o, children: /* @__PURE__ */ t(S, {}) }),
|
|
28
|
+
o
|
|
29
|
+
] }) : /* @__PURE__ */ a(c, { children: [
|
|
30
|
+
s && /* @__PURE__ */ t(d, { $lastChild: !o, children: s }),
|
|
31
|
+
o,
|
|
32
|
+
i && /* @__PURE__ */ t(C, { children: i })
|
|
33
|
+
] }) });
|
|
34
|
+
}), R = l((o, e) => F() === "legacy" ? /* @__PURE__ */ t(v, { ref: e, ...o }) : /* @__PURE__ */ t(j, { ref: e, ...o })), z = Object.assign(R, {
|
|
35
|
+
VersionProvider: B.Provider
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
z as Button
|
|
39
|
+
};
|
package/Button.styles.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import c, { css as l } from "./styled-components.browser.esm.js";
|
|
2
|
+
import { token as n } from "./token.js";
|
|
3
|
+
import { declareTokens as d, componentTokens as o, internalTokens as r } from "./tokensAndThemes.js";
|
|
4
|
+
const u = c.button.withConfig({
|
|
5
|
+
displayName: "ButtonStyled",
|
|
6
|
+
componentId: "sc-j3pbf3-0"
|
|
7
|
+
})(["", " display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;border:1px solid transparent;border-radius:", ";background-color:transparent;outline:none;font-weight:400;font-style:normal;font-size:", ";font-family:", ";line-height:", ";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentcolor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default;}", " ", ";", ""], d, n.brandRadiusBase, n.fontSizeBase, n.brandFontStackBase, n.lineHeightBase, (e) => e.$isFullWidth && "width: 100%;", (e) => e.$isSmall ? l(["height:32px;padding:0 ", ";font-size:", ";line-height:20px;"], n.spacing4, n.fontSize75) : l(["height:40px;padding:0 ", ";"], n.spacing5), (e) => {
|
|
8
|
+
if (e.$variant === "primary") {
|
|
9
|
+
const a = l(["border-color:", ";background-color:", ";color:", ";box-shadow:none;"], o.primaryBorderActive, o.primaryFillActive, o.primaryColorActive);
|
|
10
|
+
return l(["border-color:transparent;background-color:", ";color:", ";", " &&:hover{border-color:", ";background-color:", ";color:", ";box-shadow:", ";}&&:active{", "}", " &&:disabled{border-color:", ";background-color:", ";color:", ";box-shadow:none;}"], o.primaryFill, o.primaryColor, e.$isPressed && a, o.primaryBorderHover, o.primaryFillHover, o.primaryColorHover, n.elevation1, a, e.$isFocusVisible && l(["background-color:", ";color:", ";&&,&&:hover{border-color:", ";box-shadow:", ";}"], o.primaryFillFocus, o.primaryColorFocus, o.primaryBorderFocus, r["button-primary-focus-ring"]), o.primaryBorderDisabled, r["button-primary-fill-disabled"], r["button-primary-color-disabled"]);
|
|
11
|
+
}
|
|
12
|
+
if (e.$variant === "secondary") {
|
|
13
|
+
const a = l(["border-color:", ";background-color:", ";color:", ";box-shadow:none;"], r["button-secondary-border-active"], r["button-secondary-fill-active"], o.secondaryColor);
|
|
14
|
+
return l(["border-color:", ";background-color:", ";color:", ";", " &&:hover{border-color:", ";background-color:", ";color:", ";box-shadow:", ";}&&:active{", "}", " &&:disabled{border-color:", ";background-color:", ";color:", ";box-shadow:none;}"], r["button-secondary-border"], r["button-secondary-fill"], o.secondaryColor, e.$isPressed && a, r["button-secondary-border-hover"], r["button-secondary-fill-hover"], o.secondaryColor, n.elevation1, a, e.$isFocusVisible && l(["background-color:", ";color:", ";&&,&&:hover{border-color:", ";box-shadow:", ";}"], r["button-secondary-fill-focus"], o.secondaryColor, r["button-secondary-border-focus"], r["button-secondary-focus-ring"]), r["button-secondary-border-disabled"], r["button-secondary-fill-disabled"], o.secondaryColorDisabled);
|
|
15
|
+
}
|
|
16
|
+
if (e.$variant === "clean") {
|
|
17
|
+
const a = l(["border-color:", ";background-color:", ";color:", ";box-shadow:none;"], o.cleanBorderActive, o.cleanFillActive, r["button-clean-color-active"]);
|
|
18
|
+
return l(["background-color:", ";color:", ";", " &&:hover{background-color:", ";color:", ";box-shadow:none;}&&:active{", "}", " &&:disabled{background-color:", ";color:", ";}"], o.cleanFill, r["button-clean-color"], e.$isPressed && a, o.cleanFillHover, r["button-clean-color-hover"], a, e.$isFocusVisible && l(["color:", ";&&,&&:hover{border-color:", ";box-shadow:", ";}"], r["button-clean-color-focus"], r["button-clean-border-focus"], r["button-clean-focus-ring"]), o.cleanFillDisabled, r["button-clean-color-disabled"]);
|
|
19
|
+
}
|
|
20
|
+
if (e.$variant === "danger") {
|
|
21
|
+
const a = l(["border-color:", ";background-color:", ";color:", ";box-shadow:none;"], o.dangerBorderActive, o.dangerFillActive, o.dangerColor);
|
|
22
|
+
return l(["border-color:transparent;background-color:", ";color:", ";box-shadow:", ";", " &&:hover{border-color:", ";background-color:", ";color:", ";box-shadow:", ";}&&:active{", "}", " &&:disabled{border-color:", ";background-color:", ";color:", ";box-shadow:none;}"], o.dangerFill, o.dangerColor, n.elevation1, e.$isPressed && a, o.dangerBorderHover, o.dangerFillHover, o.dangerColor, n.elevation2, a, e.$isFocusVisible && l(["background-color:", ";color:", ";box-shadow:none;&&,&&:hover{border-color:", ";box-shadow:", ";}"], o.dangerFillFocus, o.dangerColor, o.dangerBorderFocus, r["button-danger-focus-ring"]), o.dangerBorderDisabled, o.dangerFillDisabled, o.dangerColor);
|
|
23
|
+
}
|
|
24
|
+
return "";
|
|
25
|
+
}), i = c.div.withConfig({
|
|
26
|
+
displayName: "Icon",
|
|
27
|
+
componentId: "sc-j3pbf3-1"
|
|
28
|
+
})(["display:flex;align-items:center;height:100%;"]), g = c(i).withConfig({
|
|
29
|
+
displayName: "LeftIcon",
|
|
30
|
+
componentId: "sc-j3pbf3-2"
|
|
31
|
+
})(["margin-right:", ";margin-left:calc(", " * -1);"], (e) => e.$lastChild ? `calc(${n.spacing2} * -1) ` : n.spacing3, n.spacing2), h = c(i).withConfig({
|
|
32
|
+
displayName: "RightIcon",
|
|
33
|
+
componentId: "sc-j3pbf3-3"
|
|
34
|
+
})(["margin-right:calc(", " * -1);margin-left:", ";"], n.spacing2, n.spacing3);
|
|
35
|
+
export {
|
|
36
|
+
u as ButtonStyled,
|
|
37
|
+
i as Icon,
|
|
38
|
+
g as LeftIcon,
|
|
39
|
+
h as RightIcon
|
|
40
|
+
};
|
package/ButtonAction.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsx as r, Fragment as o } from "react/jsx-runtime";
|
|
2
|
-
import { IconCheck as n } from "
|
|
2
|
+
import { IconCheck as n } from "./index4.js";
|
|
3
3
|
import { __ as e } from "./index2.js";
|
|
4
4
|
import { pluralize as m } from "./text.js";
|
|
5
|
-
function
|
|
5
|
+
function a({
|
|
6
6
|
status: t,
|
|
7
7
|
numberOfSelectedItems: i
|
|
8
8
|
}) {
|
|
9
9
|
return t === "Done" ? /* @__PURE__ */ r(n, { "data-testid": "check" }) : t === "Error" ? /* @__PURE__ */ r(o, { children: e("Retry") }) : /* @__PURE__ */ r(o, { children: m(i, e("Add asset"), e("Add assets")) });
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
a as ButtonAction
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=ButtonAction.js.map
|
package/ButtonLegacy.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as j } from "react";
|
|
3
|
+
import { ButtonStyled as p } from "./ButtonLegacy.styles.js";
|
|
4
|
+
import { LeftIcon as b, RightIcon as x } from "./Button.styles.js";
|
|
5
|
+
import { Spinner as C } from "./Spinner2.js";
|
|
6
|
+
const I = j(({
|
|
7
|
+
children: t,
|
|
8
|
+
className: l = "",
|
|
9
|
+
rightIcon: a,
|
|
10
|
+
type: r = "button",
|
|
11
|
+
"aria-label": n,
|
|
12
|
+
isFullWidth: h = !1,
|
|
13
|
+
icon: s,
|
|
14
|
+
variant: i = "secondary",
|
|
15
|
+
isSmall: c = !1,
|
|
16
|
+
isDisabled: m = !1,
|
|
17
|
+
isPressed: $ = !1,
|
|
18
|
+
isLoading: f = !1,
|
|
19
|
+
...o
|
|
20
|
+
}, y) => {
|
|
21
|
+
const g = N({
|
|
22
|
+
className: l,
|
|
23
|
+
variant: i,
|
|
24
|
+
isSmall: c,
|
|
25
|
+
icon: s,
|
|
26
|
+
isDisabled: m
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ e(p, { "aria-label": n || o.title, className: g, disabled: m || f, type: r, $variant: i, $isPressed: $, $isSmall: c, $isFullWidth: h, as: o.href ? "a" : "button", ref: y, ...o, children: f ? /* @__PURE__ */ d(u, { children: [
|
|
29
|
+
/* @__PURE__ */ e(b, { $lastChild: !t, children: /* @__PURE__ */ e(C, {}) }),
|
|
30
|
+
t
|
|
31
|
+
] }) : /* @__PURE__ */ d(u, { children: [
|
|
32
|
+
s && /* @__PURE__ */ e(b, { $lastChild: !t, children: s }),
|
|
33
|
+
t,
|
|
34
|
+
a && /* @__PURE__ */ e(x, { children: a })
|
|
35
|
+
] }) });
|
|
36
|
+
});
|
|
37
|
+
function N({
|
|
38
|
+
variant: t,
|
|
39
|
+
isSmall: l,
|
|
40
|
+
icon: a,
|
|
41
|
+
isDisabled: r,
|
|
42
|
+
className: n = ""
|
|
43
|
+
}) {
|
|
44
|
+
return [n, "action-btn", t === "secondary" || t === "clean" ? "cancel gray" : "cta-main blue", l ? "button-small" : "", a ? "button-icon" : "", r ? "disabled" : ""].join(" ");
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
I as ButtonLegacy
|
|
48
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import i, { css as e } from "./styled-components.browser.esm.js";
|
|
2
|
+
import { token as a } from "./token.js";
|
|
3
|
+
import { declareTokens as l, componentTokens as o, internalTokens as r } from "./tokensAndThemes.js";
|
|
4
|
+
const p = i.button.withConfig({
|
|
5
|
+
displayName: "ButtonStyled",
|
|
6
|
+
componentId: "sc-knasqu-0"
|
|
7
|
+
})(["", " vertical-align:middle;justify-content:center;align-items:center !important;box-sizing:border-box !important;border:1px solid transparent !important;border-radius:", ";outline:none !important;font-weight:400 !important;font-style:normal;font-size:", " !important;font-family:", " !important;line-height:", " !important;text-transform:none !important;text-shadow:none !important;cursor:pointer !important;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;button&,a&{position:relative;display:flex;flex:0 0 auto;flex-wrap:nowrap;min-width:40px;background-position:center;text-align:center;text-decoration:none;white-space:nowrap;fill:currentcolor;&:focus{display:flex;}}&:disabled{cursor:default !important;pointer-events:none;}", " ", ";", ""], l, a.brandRadiusBase, a.fontSizeBase, a.brandFontStackBase, a.lineHeightBase, (t) => t.$isFullWidth && "width: 100%;", (t) => t.$isSmall ? e(["height:32px !important;padding:0 ", " !important;font-size:", " !important;line-height:20px !important;"], a.spacing4, a.fontSize75) : e(["height:40px !important;padding:0 ", " !important;"], a.spacing5), (t) => {
|
|
8
|
+
if (t.$variant === "primary") {
|
|
9
|
+
const n = e(["border-color:", ";background-color:", ";color:", ";box-shadow:none !important;"], o.primaryBorderActive, o.primaryFillActive, o.primaryColorActive);
|
|
10
|
+
return e(["border-color:transparent;background-color:", ";color:", ";", " &:hover{border-color:", ";background-color:", ";color:", ";box-shadow:", " !important;}&:focus{border-color:", ";background-color:", ";color:", ";box-shadow:", " !important;}&:active{", "}&:disabled{border-color:", ";background-color:", ";color:", ";box-shadow:none !important;}"], o.primaryFill, o.primaryColor, t.$isPressed && n, o.primaryBorderHover, o.primaryFillHover, o.primaryColorHover, a.elevation1, o.primaryBorderFocus, o.primaryFillFocus, o.primaryColorFocus, r["button-primary-focus-ring"], n, o.primaryBorderDisabled, r["button-primary-fill-disabled"], r["button-primary-color-disabled"]);
|
|
11
|
+
}
|
|
12
|
+
if (t.$variant === "secondary") {
|
|
13
|
+
const n = e(["border-color:", " !important;background-color:", " !important;color:", " !important;box-shadow:none !important;"], r["button-secondary-border-active"], r["button-secondary-fill-active"], o.secondaryColor);
|
|
14
|
+
return e(["border-color:", " !important;background-color:", " !important;color:", " !important;", " &:hover{border-color:", " !important;background-color:", " !important;color:", " !important;box-shadow:", " !important;}&:focus{border-color:", " !important;background-color:", " !important;color:", " !important;box-shadow:", " !important;}&:active{", "}&:disabled{border-color:", " !important;background-color:", " !important;color:", " !important;box-shadow:none !important;}"], r["button-secondary-border"], r["button-secondary-fill"], o.secondaryColor, t.$isPressed && n, r["button-secondary-border-hover"], r["button-secondary-fill-hover"], o.secondaryColor, a.elevation1, r["button-secondary-border-focus"], r["button-secondary-fill-focus"], o.secondaryColor, r["button-secondary-focus-ring"], n, r["button-secondary-border-disabled"], r["button-secondary-fill-disabled"], o.secondaryColorDisabled);
|
|
15
|
+
}
|
|
16
|
+
if (t.$variant === "clean") {
|
|
17
|
+
const n = e(["border-color:", " !important;background-color:", " !important;color:", " !important;box-shadow:none !important;"], o.cleanBorderActive, o.cleanFillActive, r["button-clean-color-active"]);
|
|
18
|
+
return e(["background-color:", " !important;color:", ";", " &:hover{background-color:", " !important;color:", " !important;box-shadow:none !important;}&:focus{border-color:", " !important;color:", " !important;box-shadow:", " !important;}&:active{", "}&&&:disabled{background-color:", " !important;color:", " !important;}"], o.cleanFill, r["button-clean-color"], t.$isPressed && n, o.cleanFillHover, r["button-clean-color-hover"], r["button-clean-border-focus"], r["button-clean-color-focus"], r["button-clean-focus-ring"], n, o.cleanFillDisabled, r["button-clean-color-disabled"]);
|
|
19
|
+
}
|
|
20
|
+
if (t.$variant === "danger") {
|
|
21
|
+
const n = e(["border-color:", " !important;background-color:", " !important;color:", " !important;box-shadow:none !important;"], o.dangerBorderActive, o.dangerFillActive, o.dangerColor);
|
|
22
|
+
return e(["border-color:transparent;background-color:", " !important;color:", " !important;box-shadow:", " !important;", " &:hover{border-color:", " !important;background-color:", " !important;color:", " !important;box-shadow:", " !important;}&:focus{border-color:", " !important;color:", " !important;box-shadow:", " !important;}&:active{", "}&&&:disabled{border-color:", " !important;background-color:", " !important;color:", " !important;box-shadow:none !important;}"], o.dangerFill, o.dangerColor, a.elevation1, t.$isPressed && n, o.dangerBorderHover, o.dangerFillHover, o.dangerColor, a.elevation2, o.dangerBorderFocus, o.dangerColor, r["button-danger-focus-ring"], n, o.dangerBorderDisabled, o.dangerFillDisabled, o.dangerColor);
|
|
23
|
+
}
|
|
24
|
+
return "";
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
p as ButtonStyled
|
|
28
|
+
};
|
package/CancelToken.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import u from "./CanceledError.js";
|
|
2
|
+
class c {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
if (typeof e != "function")
|
|
5
|
+
throw new TypeError("executor must be a function.");
|
|
6
|
+
let t;
|
|
7
|
+
this.promise = new Promise(function(r) {
|
|
8
|
+
t = r;
|
|
9
|
+
});
|
|
10
|
+
const s = this;
|
|
11
|
+
this.promise.then((n) => {
|
|
12
|
+
if (!s._listeners) return;
|
|
13
|
+
let r = s._listeners.length;
|
|
14
|
+
for (; r-- > 0; )
|
|
15
|
+
s._listeners[r](n);
|
|
16
|
+
s._listeners = null;
|
|
17
|
+
}), this.promise.then = (n) => {
|
|
18
|
+
let r;
|
|
19
|
+
const o = new Promise((i) => {
|
|
20
|
+
s.subscribe(i), r = i;
|
|
21
|
+
}).then(n);
|
|
22
|
+
return o.cancel = function() {
|
|
23
|
+
s.unsubscribe(r);
|
|
24
|
+
}, o;
|
|
25
|
+
}, e(function(r, o, i) {
|
|
26
|
+
s.reason || (s.reason = new u(r, o, i), t(s.reason));
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
31
|
+
*/
|
|
32
|
+
throwIfRequested() {
|
|
33
|
+
if (this.reason)
|
|
34
|
+
throw this.reason;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Subscribe to the cancel signal
|
|
38
|
+
*/
|
|
39
|
+
subscribe(e) {
|
|
40
|
+
if (this.reason) {
|
|
41
|
+
e(this.reason);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Unsubscribe from the cancel signal
|
|
48
|
+
*/
|
|
49
|
+
unsubscribe(e) {
|
|
50
|
+
if (!this._listeners)
|
|
51
|
+
return;
|
|
52
|
+
const t = this._listeners.indexOf(e);
|
|
53
|
+
t !== -1 && this._listeners.splice(t, 1);
|
|
54
|
+
}
|
|
55
|
+
toAbortSignal() {
|
|
56
|
+
const e = new AbortController(), t = (s) => {
|
|
57
|
+
e.abort(s);
|
|
58
|
+
};
|
|
59
|
+
return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
63
|
+
* cancels the `CancelToken`.
|
|
64
|
+
*/
|
|
65
|
+
static source() {
|
|
66
|
+
let e;
|
|
67
|
+
return {
|
|
68
|
+
token: new c(function(n) {
|
|
69
|
+
e = n;
|
|
70
|
+
}),
|
|
71
|
+
cancel: e
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
c as default
|
|
77
|
+
};
|
package/CanceledError.js
ADDED