@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/store/useDatStore.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Asset } from '../views/asset/asset.type';
|
|
2
2
|
import { Transformation } from '../Dat/types';
|
|
3
3
|
type datState = {
|
|
4
|
-
|
|
4
|
+
assetId: string;
|
|
5
5
|
assetName: string;
|
|
6
|
+
closeDat: () => void;
|
|
7
|
+
datUrl: string;
|
|
6
8
|
datExtension: string;
|
|
9
|
+
openDat: (url: string, asset: Asset, name: string) => void;
|
|
7
10
|
transformation: Transformation;
|
|
11
|
+
reset: () => void;
|
|
8
12
|
resetTransformation: () => void;
|
|
9
13
|
setTransformation: (transformation?: Transformation) => void;
|
|
10
|
-
openDat: (url: string, asset: Asset, name: string) => void;
|
|
11
|
-
closeDat: () => void;
|
|
12
|
-
reset: () => void;
|
|
13
14
|
};
|
|
14
15
|
export declare const useDatStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<datState>, "setState" | "devtools"> & {
|
|
15
16
|
setState(partial: datState | Partial<datState> | ((state: datState) => datState | Partial<datState>), replace?: false | undefined, action?: (string | {
|
|
@@ -49,15 +50,16 @@ export declare const useDatSelectors: {
|
|
|
49
50
|
};
|
|
50
51
|
} & {
|
|
51
52
|
use: {
|
|
52
|
-
|
|
53
|
+
assetId: () => string;
|
|
53
54
|
assetName: () => string;
|
|
55
|
+
closeDat: () => () => void;
|
|
56
|
+
datUrl: () => string;
|
|
54
57
|
datExtension: () => string;
|
|
58
|
+
openDat: () => (url: string, asset: Asset, name: string) => void;
|
|
55
59
|
transformation: () => Transformation;
|
|
60
|
+
reset: () => () => void;
|
|
56
61
|
resetTransformation: () => () => void;
|
|
57
62
|
setTransformation: () => (transformation?: Transformation) => void;
|
|
58
|
-
openDat: () => (url: string, asset: Asset, name: string) => void;
|
|
59
|
-
closeDat: () => () => void;
|
|
60
|
-
reset: () => () => void;
|
|
61
63
|
};
|
|
62
64
|
};
|
|
63
65
|
export declare const useDat: () => {
|
|
@@ -69,5 +71,6 @@ export declare const useDat: () => {
|
|
|
69
71
|
closeDat: () => void;
|
|
70
72
|
openDat: (url: string, asset: Asset, name: string) => void;
|
|
71
73
|
reset: () => void;
|
|
74
|
+
assetId: string;
|
|
72
75
|
};
|
|
73
76
|
export {};
|
package/string.js
ADDED
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
import { __assign as g, __spreadArray as T } from "./tslib.es6.js";
|
|
2
|
+
import S, { useContext as ie, useState as ae, useMemo as ut, useEffect as ue, createElement as ce } from "react";
|
|
3
|
+
import le from "./index3.js";
|
|
4
|
+
import pe from "./emotion-unitless.esm.js";
|
|
5
|
+
import { RULESET as fe } from "./Enum.js";
|
|
6
|
+
import { prefixer as he, middleware as de, rulesheet as me } from "./Middleware.js";
|
|
7
|
+
import { stringify as ve, serialize as ye } from "./Serializer.js";
|
|
8
|
+
import { compile as ge } from "./Parser.js";
|
|
9
|
+
var j = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Ft = "active", $t = "data-styled-version", nt = "6.1.13", vt = `/*!sc*/
|
|
10
|
+
`, Q = typeof window < "u" && "HTMLElement" in window, Se = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" && process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY), Ie = {}, ot = Object.freeze([]), D = Object.freeze({});
|
|
11
|
+
function zt(e, t, r) {
|
|
12
|
+
return r === void 0 && (r = D), e.theme !== r.theme && e.theme || t || r.theme;
|
|
13
|
+
}
|
|
14
|
+
var kt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Ce = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Pe = /(^-|-$)/g;
|
|
15
|
+
function At(e) {
|
|
16
|
+
return e.replace(Ce, "-").replace(Pe, "");
|
|
17
|
+
}
|
|
18
|
+
var be = /(a)(d)/gi, V = 52, _t = function(e) {
|
|
19
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
20
|
+
};
|
|
21
|
+
function ft(e) {
|
|
22
|
+
var t, r = "";
|
|
23
|
+
for (t = Math.abs(e); t > V; t = t / V | 0) r = _t(t % V) + r;
|
|
24
|
+
return (_t(t % V) + r).replace(be, "$1-$2");
|
|
25
|
+
}
|
|
26
|
+
var ct, Bt = 5381, O = function(e, t) {
|
|
27
|
+
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
28
|
+
return e;
|
|
29
|
+
}, Lt = function(e) {
|
|
30
|
+
return O(Bt, e);
|
|
31
|
+
};
|
|
32
|
+
function yt(e) {
|
|
33
|
+
return ft(Lt(e) >>> 0);
|
|
34
|
+
}
|
|
35
|
+
function we(e) {
|
|
36
|
+
return e.displayName || e.name || "Component";
|
|
37
|
+
}
|
|
38
|
+
function lt(e) {
|
|
39
|
+
return typeof e == "string" && !0;
|
|
40
|
+
}
|
|
41
|
+
var Gt = typeof Symbol == "function" && Symbol.for, Mt = Gt ? Symbol.for("react.memo") : 60115, Ae = Gt ? Symbol.for("react.forward_ref") : 60112, _e = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ee = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Yt = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Re = ((ct = {})[Ae] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, ct[Mt] = Yt, ct);
|
|
42
|
+
function Et(e) {
|
|
43
|
+
return ("type" in (t = e) && t.type.$$typeof) === Mt ? Yt : "$$typeof" in e ? Re[e.$$typeof] : _e;
|
|
44
|
+
var t;
|
|
45
|
+
}
|
|
46
|
+
var Ne = Object.defineProperty, xe = Object.getOwnPropertyNames, Rt = Object.getOwnPropertySymbols, Oe = Object.getOwnPropertyDescriptor, Te = Object.getPrototypeOf, Nt = Object.prototype;
|
|
47
|
+
function Wt(e, t, r) {
|
|
48
|
+
if (typeof t != "string") {
|
|
49
|
+
if (Nt) {
|
|
50
|
+
var n = Te(t);
|
|
51
|
+
n && n !== Nt && Wt(e, n, r);
|
|
52
|
+
}
|
|
53
|
+
var o = xe(t);
|
|
54
|
+
Rt && (o = o.concat(Rt(t)));
|
|
55
|
+
for (var s = Et(e), i = Et(t), c = 0; c < o.length; ++c) {
|
|
56
|
+
var a = o[c];
|
|
57
|
+
if (!(a in Ee || r && r[a] || i && a in i || s && a in s)) {
|
|
58
|
+
var u = Oe(t, a);
|
|
59
|
+
try {
|
|
60
|
+
Ne(e, a, u);
|
|
61
|
+
} catch {
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return e;
|
|
67
|
+
}
|
|
68
|
+
function F(e) {
|
|
69
|
+
return typeof e == "function";
|
|
70
|
+
}
|
|
71
|
+
function gt(e) {
|
|
72
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
73
|
+
}
|
|
74
|
+
function x(e, t) {
|
|
75
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
76
|
+
}
|
|
77
|
+
function X(e, t) {
|
|
78
|
+
if (e.length === 0) return "";
|
|
79
|
+
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
80
|
+
return r;
|
|
81
|
+
}
|
|
82
|
+
function G(e) {
|
|
83
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
84
|
+
}
|
|
85
|
+
function ht(e, t, r) {
|
|
86
|
+
if (r === void 0 && (r = !1), !r && !G(e) && !Array.isArray(e)) return t;
|
|
87
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = ht(e[n], t[n]);
|
|
88
|
+
else if (G(t)) for (var n in t) e[n] = ht(e[n], t[n]);
|
|
89
|
+
return e;
|
|
90
|
+
}
|
|
91
|
+
function St(e, t) {
|
|
92
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
93
|
+
}
|
|
94
|
+
function M(e) {
|
|
95
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
96
|
+
return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : ""));
|
|
97
|
+
}
|
|
98
|
+
var je = (function() {
|
|
99
|
+
function e(t) {
|
|
100
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
101
|
+
}
|
|
102
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
103
|
+
for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
|
|
104
|
+
return r;
|
|
105
|
+
}, e.prototype.insertRules = function(t, r) {
|
|
106
|
+
if (t >= this.groupSizes.length) {
|
|
107
|
+
for (var n = this.groupSizes, o = n.length, s = o; t >= s; ) if ((s <<= 1) < 0) throw M(16, "".concat(t));
|
|
108
|
+
this.groupSizes = new Uint32Array(s), this.groupSizes.set(n), this.length = s;
|
|
109
|
+
for (var i = o; i < s; i++) this.groupSizes[i] = 0;
|
|
110
|
+
}
|
|
111
|
+
for (var c = this.indexOfGroup(t + 1), a = (i = 0, r.length); i < a; i++) this.tag.insertRule(c, r[i]) && (this.groupSizes[t]++, c++);
|
|
112
|
+
}, e.prototype.clearGroup = function(t) {
|
|
113
|
+
if (t < this.length) {
|
|
114
|
+
var r = this.groupSizes[t], n = this.indexOfGroup(t), o = n + r;
|
|
115
|
+
this.groupSizes[t] = 0;
|
|
116
|
+
for (var s = n; s < o; s++) this.tag.deleteRule(n);
|
|
117
|
+
}
|
|
118
|
+
}, e.prototype.getGroup = function(t) {
|
|
119
|
+
var r = "";
|
|
120
|
+
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
121
|
+
for (var n = this.groupSizes[t], o = this.indexOfGroup(t), s = o + n, i = o; i < s; i++) r += "".concat(this.tag.getRule(i)).concat(vt);
|
|
122
|
+
return r;
|
|
123
|
+
}, e;
|
|
124
|
+
})(), K = /* @__PURE__ */ new Map(), tt = /* @__PURE__ */ new Map(), Z = 1, J = function(e) {
|
|
125
|
+
if (K.has(e)) return K.get(e);
|
|
126
|
+
for (; tt.has(Z); ) Z++;
|
|
127
|
+
var t = Z++;
|
|
128
|
+
return K.set(e, t), tt.set(t, e), t;
|
|
129
|
+
}, De = function(e, t) {
|
|
130
|
+
Z = t + 1, K.set(e, t), tt.set(t, e);
|
|
131
|
+
}, Fe = "style[".concat(j, "][").concat($t, '="').concat(nt, '"]'), $e = new RegExp("^".concat(j, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ze = function(e, t, r) {
|
|
132
|
+
for (var n, o = r.split(","), s = 0, i = o.length; s < i; s++) (n = o[s]) && e.registerName(t, n);
|
|
133
|
+
}, ke = function(e, t) {
|
|
134
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(vt), o = [], s = 0, i = n.length; s < i; s++) {
|
|
135
|
+
var c = n[s].trim();
|
|
136
|
+
if (c) {
|
|
137
|
+
var a = c.match($e);
|
|
138
|
+
if (a) {
|
|
139
|
+
var u = 0 | parseInt(a[1], 10), l = a[2];
|
|
140
|
+
u !== 0 && (De(l, u), ze(e, l, a[3]), e.getTag().insertRules(u, o)), o.length = 0;
|
|
141
|
+
} else o.push(c);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}, xt = function(e) {
|
|
145
|
+
for (var t = document.querySelectorAll(Fe), r = 0, n = t.length; r < n; r++) {
|
|
146
|
+
var o = t[r];
|
|
147
|
+
o && o.getAttribute(j) !== Ft && (ke(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
function Be() {
|
|
151
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
152
|
+
}
|
|
153
|
+
var qt = function(e) {
|
|
154
|
+
var t = document.head, r = e || t, n = document.createElement("style"), o = (function(c) {
|
|
155
|
+
var a = Array.from(c.querySelectorAll("style[".concat(j, "]")));
|
|
156
|
+
return a[a.length - 1];
|
|
157
|
+
})(r), s = o !== void 0 ? o.nextSibling : null;
|
|
158
|
+
n.setAttribute(j, Ft), n.setAttribute($t, nt);
|
|
159
|
+
var i = Be();
|
|
160
|
+
return i && n.setAttribute("nonce", i), r.insertBefore(n, s), n;
|
|
161
|
+
}, Le = (function() {
|
|
162
|
+
function e(t) {
|
|
163
|
+
this.element = qt(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(r) {
|
|
164
|
+
if (r.sheet) return r.sheet;
|
|
165
|
+
for (var n = document.styleSheets, o = 0, s = n.length; o < s; o++) {
|
|
166
|
+
var i = n[o];
|
|
167
|
+
if (i.ownerNode === r) return i;
|
|
168
|
+
}
|
|
169
|
+
throw M(17);
|
|
170
|
+
})(this.element), this.length = 0;
|
|
171
|
+
}
|
|
172
|
+
return e.prototype.insertRule = function(t, r) {
|
|
173
|
+
try {
|
|
174
|
+
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
175
|
+
} catch {
|
|
176
|
+
return !1;
|
|
177
|
+
}
|
|
178
|
+
}, e.prototype.deleteRule = function(t) {
|
|
179
|
+
this.sheet.deleteRule(t), this.length--;
|
|
180
|
+
}, e.prototype.getRule = function(t) {
|
|
181
|
+
var r = this.sheet.cssRules[t];
|
|
182
|
+
return r && r.cssText ? r.cssText : "";
|
|
183
|
+
}, e;
|
|
184
|
+
})(), Ge = (function() {
|
|
185
|
+
function e(t) {
|
|
186
|
+
this.element = qt(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
187
|
+
}
|
|
188
|
+
return e.prototype.insertRule = function(t, r) {
|
|
189
|
+
if (t <= this.length && t >= 0) {
|
|
190
|
+
var n = document.createTextNode(r);
|
|
191
|
+
return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
|
|
192
|
+
}
|
|
193
|
+
return !1;
|
|
194
|
+
}, e.prototype.deleteRule = function(t) {
|
|
195
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
196
|
+
}, e.prototype.getRule = function(t) {
|
|
197
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
198
|
+
}, e;
|
|
199
|
+
})(), Me = (function() {
|
|
200
|
+
function e(t) {
|
|
201
|
+
this.rules = [], this.length = 0;
|
|
202
|
+
}
|
|
203
|
+
return e.prototype.insertRule = function(t, r) {
|
|
204
|
+
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
205
|
+
}, e.prototype.deleteRule = function(t) {
|
|
206
|
+
this.rules.splice(t, 1), this.length--;
|
|
207
|
+
}, e.prototype.getRule = function(t) {
|
|
208
|
+
return t < this.length ? this.rules[t] : "";
|
|
209
|
+
}, e;
|
|
210
|
+
})(), Ot = Q, Ye = { isServer: !Q, useCSSOMInjection: !Se }, et = (function() {
|
|
211
|
+
function e(t, r, n) {
|
|
212
|
+
t === void 0 && (t = D), r === void 0 && (r = {});
|
|
213
|
+
var o = this;
|
|
214
|
+
this.options = g(g({}, Ye), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Q && Ot && (Ot = !1, xt(this)), St(this, function() {
|
|
215
|
+
return (function(s) {
|
|
216
|
+
for (var i = s.getTag(), c = i.length, a = "", u = function(h) {
|
|
217
|
+
var p = (function(I) {
|
|
218
|
+
return tt.get(I);
|
|
219
|
+
})(h);
|
|
220
|
+
if (p === void 0) return "continue";
|
|
221
|
+
var f = s.names.get(p), m = i.getGroup(h);
|
|
222
|
+
if (f === void 0 || !f.size || m.length === 0) return "continue";
|
|
223
|
+
var w = "".concat(j, ".g").concat(h, '[id="').concat(p, '"]'), R = "";
|
|
224
|
+
f !== void 0 && f.forEach(function(I) {
|
|
225
|
+
I.length > 0 && (R += "".concat(I, ","));
|
|
226
|
+
}), a += "".concat(m).concat(w, '{content:"').concat(R, '"}').concat(vt);
|
|
227
|
+
}, l = 0; l < c; l++) u(l);
|
|
228
|
+
return a;
|
|
229
|
+
})(o);
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
return e.registerId = function(t) {
|
|
233
|
+
return J(t);
|
|
234
|
+
}, e.prototype.rehydrate = function() {
|
|
235
|
+
!this.server && Q && xt(this);
|
|
236
|
+
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
237
|
+
return r === void 0 && (r = !0), new e(g(g({}, this.options), t), this.gs, r && this.names || void 0);
|
|
238
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
239
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
240
|
+
}, e.prototype.getTag = function() {
|
|
241
|
+
return this.tag || (this.tag = (t = (function(r) {
|
|
242
|
+
var n = r.useCSSOMInjection, o = r.target;
|
|
243
|
+
return r.isServer ? new Me(o) : n ? new Le(o) : new Ge(o);
|
|
244
|
+
})(this.options), new je(t)));
|
|
245
|
+
var t;
|
|
246
|
+
}, e.prototype.hasNameForId = function(t, r) {
|
|
247
|
+
return this.names.has(t) && this.names.get(t).has(r);
|
|
248
|
+
}, e.prototype.registerName = function(t, r) {
|
|
249
|
+
if (J(t), this.names.has(t)) this.names.get(t).add(r);
|
|
250
|
+
else {
|
|
251
|
+
var n = /* @__PURE__ */ new Set();
|
|
252
|
+
n.add(r), this.names.set(t, n);
|
|
253
|
+
}
|
|
254
|
+
}, e.prototype.insertRules = function(t, r, n) {
|
|
255
|
+
this.registerName(t, r), this.getTag().insertRules(J(t), n);
|
|
256
|
+
}, e.prototype.clearNames = function(t) {
|
|
257
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
258
|
+
}, e.prototype.clearRules = function(t) {
|
|
259
|
+
this.getTag().clearGroup(J(t)), this.clearNames(t);
|
|
260
|
+
}, e.prototype.clearTag = function() {
|
|
261
|
+
this.tag = void 0;
|
|
262
|
+
}, e;
|
|
263
|
+
})(), We = /&/g, qe = /^\s*\/\/.*$/gm;
|
|
264
|
+
function Ht(e, t) {
|
|
265
|
+
return e.map(function(r) {
|
|
266
|
+
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
|
|
267
|
+
return "".concat(t, " ").concat(n);
|
|
268
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Ht(r.children, t)), r;
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
function Ut(e) {
|
|
272
|
+
var t, r, n, o = e === void 0 ? D : e, s = o.options, i = s === void 0 ? D : s, c = o.plugins, a = c === void 0 ? ot : c, u = function(p, f, m) {
|
|
273
|
+
return m.startsWith(r) && m.endsWith(r) && m.replaceAll(r, "").length > 0 ? ".".concat(t) : p;
|
|
274
|
+
}, l = a.slice();
|
|
275
|
+
l.push(function(p) {
|
|
276
|
+
p.type === fe && p.value.includes("&") && (p.props[0] = p.props[0].replace(We, r).replace(n, u));
|
|
277
|
+
}), i.prefix && l.push(he), l.push(ve);
|
|
278
|
+
var h = function(p, f, m, w) {
|
|
279
|
+
f === void 0 && (f = ""), m === void 0 && (m = ""), w === void 0 && (w = "&"), t = w, r = f, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
280
|
+
var R = p.replace(qe, ""), I = ge(m || f ? "".concat(m, " ").concat(f, " { ").concat(R, " }") : R);
|
|
281
|
+
i.namespace && (I = Ht(I, i.namespace));
|
|
282
|
+
var $ = [];
|
|
283
|
+
return ye(I, de(l.concat(me(function(v) {
|
|
284
|
+
return $.push(v);
|
|
285
|
+
})))), $;
|
|
286
|
+
};
|
|
287
|
+
return h.hash = a.length ? a.reduce(function(p, f) {
|
|
288
|
+
return f.name || M(15), O(p, f.name);
|
|
289
|
+
}, Bt).toString() : "", h;
|
|
290
|
+
}
|
|
291
|
+
var He = new et(), dt = Ut(), It = S.createContext({ shouldForwardProp: void 0, styleSheet: He, stylis: dt });
|
|
292
|
+
It.Consumer;
|
|
293
|
+
var Ue = S.createContext(void 0);
|
|
294
|
+
function rt() {
|
|
295
|
+
return ie(It);
|
|
296
|
+
}
|
|
297
|
+
function ur(e) {
|
|
298
|
+
var t = ae(e.stylisPlugins), r = t[0], n = t[1], o = rt().styleSheet, s = ut(function() {
|
|
299
|
+
var a = o;
|
|
300
|
+
return e.sheet ? a = e.sheet : e.target && (a = a.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (a = a.reconstructWithOptions({ useCSSOMInjection: !1 })), a;
|
|
301
|
+
}, [e.disableCSSOMInjection, e.sheet, e.target, o]), i = ut(function() {
|
|
302
|
+
return Ut({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: r });
|
|
303
|
+
}, [e.enableVendorPrefixes, e.namespace, r]);
|
|
304
|
+
ue(function() {
|
|
305
|
+
le(r, e.stylisPlugins) || n(e.stylisPlugins);
|
|
306
|
+
}, [e.stylisPlugins]);
|
|
307
|
+
var c = ut(function() {
|
|
308
|
+
return { shouldForwardProp: e.shouldForwardProp, styleSheet: s, stylis: i };
|
|
309
|
+
}, [e.shouldForwardProp, s, i]);
|
|
310
|
+
return S.createElement(It.Provider, { value: c }, S.createElement(Ue.Provider, { value: i }, e.children));
|
|
311
|
+
}
|
|
312
|
+
var Vt = (function() {
|
|
313
|
+
function e(t, r) {
|
|
314
|
+
var n = this;
|
|
315
|
+
this.inject = function(o, s) {
|
|
316
|
+
s === void 0 && (s = dt);
|
|
317
|
+
var i = n.name + s.hash;
|
|
318
|
+
o.hasNameForId(n.id, i) || o.insertRules(n.id, i, s(n.rules, i, "@keyframes"));
|
|
319
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, St(this, function() {
|
|
320
|
+
throw M(12, String(n.name));
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
return e.prototype.getName = function(t) {
|
|
324
|
+
return t === void 0 && (t = dt), this.name + t.hash;
|
|
325
|
+
}, e;
|
|
326
|
+
})(), Ve = function(e) {
|
|
327
|
+
return e >= "A" && e <= "Z";
|
|
328
|
+
};
|
|
329
|
+
function Tt(e) {
|
|
330
|
+
for (var t = "", r = 0; r < e.length; r++) {
|
|
331
|
+
var n = e[r];
|
|
332
|
+
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
333
|
+
Ve(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
334
|
+
}
|
|
335
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
336
|
+
}
|
|
337
|
+
var Jt = function(e) {
|
|
338
|
+
return e == null || e === !1 || e === "";
|
|
339
|
+
}, Kt = function(e) {
|
|
340
|
+
var t, r, n = [];
|
|
341
|
+
for (var o in e) {
|
|
342
|
+
var s = e[o];
|
|
343
|
+
e.hasOwnProperty(o) && !Jt(s) && (Array.isArray(s) && s.isCss || F(s) ? n.push("".concat(Tt(o), ":"), s, ";") : G(s) ? n.push.apply(n, T(T(["".concat(o, " {")], Kt(s), !1), ["}"], !1)) : n.push("".concat(Tt(o), ": ").concat((t = o, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in pe || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
344
|
+
}
|
|
345
|
+
return n;
|
|
346
|
+
};
|
|
347
|
+
function E(e, t, r, n) {
|
|
348
|
+
if (Jt(e)) return [];
|
|
349
|
+
if (gt(e)) return [".".concat(e.styledComponentId)];
|
|
350
|
+
if (F(e)) {
|
|
351
|
+
if (!F(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
352
|
+
var o = e(t);
|
|
353
|
+
return E(o, t, r, n);
|
|
354
|
+
}
|
|
355
|
+
var s;
|
|
356
|
+
return e instanceof Vt ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : G(e) ? Kt(e) : Array.isArray(e) ? Array.prototype.concat.apply(ot, e.map(function(i) {
|
|
357
|
+
return E(i, t, r, n);
|
|
358
|
+
})) : [e.toString()];
|
|
359
|
+
}
|
|
360
|
+
function Zt(e) {
|
|
361
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
362
|
+
var r = e[t];
|
|
363
|
+
if (F(r) && !gt(r)) return !1;
|
|
364
|
+
}
|
|
365
|
+
return !0;
|
|
366
|
+
}
|
|
367
|
+
var Je = Lt(nt), Ke = (function() {
|
|
368
|
+
function e(t, r, n) {
|
|
369
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = (n === void 0 || n.isStatic) && Zt(t), this.componentId = r, this.baseHash = O(Je, r), this.baseStyle = n, et.registerId(r);
|
|
370
|
+
}
|
|
371
|
+
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
372
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
373
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = x(o, this.staticRulesId);
|
|
374
|
+
else {
|
|
375
|
+
var s = X(E(this.rules, t, r, n)), i = ft(O(this.baseHash, s) >>> 0);
|
|
376
|
+
if (!r.hasNameForId(this.componentId, i)) {
|
|
377
|
+
var c = n(s, ".".concat(i), void 0, this.componentId);
|
|
378
|
+
r.insertRules(this.componentId, i, c);
|
|
379
|
+
}
|
|
380
|
+
o = x(o, i), this.staticRulesId = i;
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
for (var a = O(this.baseHash, n.hash), u = "", l = 0; l < this.rules.length; l++) {
|
|
384
|
+
var h = this.rules[l];
|
|
385
|
+
if (typeof h == "string") u += h;
|
|
386
|
+
else if (h) {
|
|
387
|
+
var p = X(E(h, t, r, n));
|
|
388
|
+
a = O(a, p + l), u += p;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
if (u) {
|
|
392
|
+
var f = ft(a >>> 0);
|
|
393
|
+
r.hasNameForId(this.componentId, f) || r.insertRules(this.componentId, f, n(u, ".".concat(f), void 0, this.componentId)), o = x(o, f);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return o;
|
|
397
|
+
}, e;
|
|
398
|
+
})(), Ct = S.createContext(void 0);
|
|
399
|
+
Ct.Consumer;
|
|
400
|
+
var pt = {};
|
|
401
|
+
function Ze(e, t, r) {
|
|
402
|
+
var n = gt(e), o = e, s = !lt(e), i = t.attrs, c = i === void 0 ? ot : i, a = t.componentId, u = a === void 0 ? (function(y, C) {
|
|
403
|
+
var d = typeof y != "string" ? "sc" : At(y);
|
|
404
|
+
pt[d] = (pt[d] || 0) + 1;
|
|
405
|
+
var P = "".concat(d, "-").concat(yt(nt + d + pt[d]));
|
|
406
|
+
return C ? "".concat(C, "-").concat(P) : P;
|
|
407
|
+
})(t.displayName, t.parentComponentId) : a, l = t.displayName, h = l === void 0 ? (function(y) {
|
|
408
|
+
return lt(y) ? "styled.".concat(y) : "Styled(".concat(we(y), ")");
|
|
409
|
+
})(e) : l, p = t.displayName && t.componentId ? "".concat(At(t.displayName), "-").concat(t.componentId) : t.componentId || u, f = n && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, m = t.shouldForwardProp;
|
|
410
|
+
if (n && o.shouldForwardProp) {
|
|
411
|
+
var w = o.shouldForwardProp;
|
|
412
|
+
if (t.shouldForwardProp) {
|
|
413
|
+
var R = t.shouldForwardProp;
|
|
414
|
+
m = function(y, C) {
|
|
415
|
+
return w(y, C) && R(y, C);
|
|
416
|
+
};
|
|
417
|
+
} else m = w;
|
|
418
|
+
}
|
|
419
|
+
var I = new Ke(r, p, n ? o.componentStyle : void 0);
|
|
420
|
+
function $(y, C) {
|
|
421
|
+
return (function(d, P, z) {
|
|
422
|
+
var Y = d.attrs, Xt = d.componentStyle, te = d.defaultProps, ee = d.foldedComponentIds, re = d.styledComponentId, ne = d.target, oe = S.useContext(Ct), se = rt(), st = d.shouldForwardProp || se.shouldForwardProp, bt = zt(P, oe, te) || D, b = (function(q, B, H) {
|
|
423
|
+
for (var L, N = g(g({}, B), { className: void 0, theme: H }), at = 0; at < q.length; at += 1) {
|
|
424
|
+
var U = F(L = q[at]) ? L(N) : L;
|
|
425
|
+
for (var _ in U) N[_] = _ === "className" ? x(N[_], U[_]) : _ === "style" ? g(g({}, N[_]), U[_]) : U[_];
|
|
426
|
+
}
|
|
427
|
+
return B.className && (N.className = x(N.className, B.className)), N;
|
|
428
|
+
})(Y, P, bt), W = b.as || ne, k = {};
|
|
429
|
+
for (var A in b) b[A] === void 0 || A[0] === "$" || A === "as" || A === "theme" && b.theme === bt || (A === "forwardedAs" ? k.as = b.forwardedAs : st && !st(A, W) || (k[A] = b[A]));
|
|
430
|
+
var wt = (function(q, B) {
|
|
431
|
+
var H = rt(), L = q.generateAndInjectStyles(B, H.styleSheet, H.stylis);
|
|
432
|
+
return L;
|
|
433
|
+
})(Xt, b), it = x(ee, re);
|
|
434
|
+
return wt && (it += " " + wt), b.className && (it += " " + b.className), k[lt(W) && !kt.has(W) ? "class" : "className"] = it, k.ref = z, ce(W, k);
|
|
435
|
+
})(v, y, C);
|
|
436
|
+
}
|
|
437
|
+
$.displayName = h;
|
|
438
|
+
var v = S.forwardRef($);
|
|
439
|
+
return v.attrs = f, v.componentStyle = I, v.displayName = h, v.shouldForwardProp = m, v.foldedComponentIds = n ? x(o.foldedComponentIds, o.styledComponentId) : "", v.styledComponentId = p, v.target = n ? o.target : e, Object.defineProperty(v, "defaultProps", { get: function() {
|
|
440
|
+
return this._foldedDefaultProps;
|
|
441
|
+
}, set: function(y) {
|
|
442
|
+
this._foldedDefaultProps = n ? (function(C) {
|
|
443
|
+
for (var d = [], P = 1; P < arguments.length; P++) d[P - 1] = arguments[P];
|
|
444
|
+
for (var z = 0, Y = d; z < Y.length; z++) ht(C, Y[z], !0);
|
|
445
|
+
return C;
|
|
446
|
+
})({}, o.defaultProps, y) : y;
|
|
447
|
+
} }), St(v, function() {
|
|
448
|
+
return ".".concat(v.styledComponentId);
|
|
449
|
+
}), s && Wt(v, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), v;
|
|
450
|
+
}
|
|
451
|
+
function jt(e, t) {
|
|
452
|
+
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
453
|
+
return r;
|
|
454
|
+
}
|
|
455
|
+
var Dt = function(e) {
|
|
456
|
+
return Object.assign(e, { isCss: !0 });
|
|
457
|
+
};
|
|
458
|
+
function Pt(e) {
|
|
459
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
460
|
+
if (F(e) || G(e)) return Dt(E(jt(ot, T([e], t, !0))));
|
|
461
|
+
var n = e;
|
|
462
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? E(n) : Dt(E(jt(n, t)));
|
|
463
|
+
}
|
|
464
|
+
function mt(e, t, r) {
|
|
465
|
+
if (r === void 0 && (r = D), !t) throw M(1, t);
|
|
466
|
+
var n = function(o) {
|
|
467
|
+
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
468
|
+
return e(t, r, Pt.apply(void 0, T([o], s, !1)));
|
|
469
|
+
};
|
|
470
|
+
return n.attrs = function(o) {
|
|
471
|
+
return mt(e, t, g(g({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
472
|
+
}, n.withConfig = function(o) {
|
|
473
|
+
return mt(e, t, g(g({}, r), o));
|
|
474
|
+
}, n;
|
|
475
|
+
}
|
|
476
|
+
var Qt = function(e) {
|
|
477
|
+
return mt(Ze, e);
|
|
478
|
+
}, Qe = Qt;
|
|
479
|
+
kt.forEach(function(e) {
|
|
480
|
+
Qe[e] = Qt(e);
|
|
481
|
+
});
|
|
482
|
+
var Xe = (function() {
|
|
483
|
+
function e(t, r) {
|
|
484
|
+
this.rules = t, this.componentId = r, this.isStatic = Zt(t), et.registerId(this.componentId + 1);
|
|
485
|
+
}
|
|
486
|
+
return e.prototype.createStyles = function(t, r, n, o) {
|
|
487
|
+
var s = o(X(E(this.rules, r, n, o)), ""), i = this.componentId + t;
|
|
488
|
+
n.insertRules(i, i, s);
|
|
489
|
+
}, e.prototype.removeStyles = function(t, r) {
|
|
490
|
+
r.clearRules(this.componentId + t);
|
|
491
|
+
}, e.prototype.renderStyles = function(t, r, n, o) {
|
|
492
|
+
t > 2 && et.registerId(this.componentId + t), this.removeStyles(t, n), this.createStyles(t, r, n, o);
|
|
493
|
+
}, e;
|
|
494
|
+
})();
|
|
495
|
+
function cr(e) {
|
|
496
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
497
|
+
var n = Pt.apply(void 0, T([e], t, !1)), o = "sc-global-".concat(yt(JSON.stringify(n))), s = new Xe(n, o), i = function(a) {
|
|
498
|
+
var u = rt(), l = S.useContext(Ct), h = S.useRef(u.styleSheet.allocateGSInstance(o)).current;
|
|
499
|
+
return u.styleSheet.server && c(h, a, u.styleSheet, l, u.stylis), S.useLayoutEffect(function() {
|
|
500
|
+
if (!u.styleSheet.server) return c(h, a, u.styleSheet, l, u.stylis), function() {
|
|
501
|
+
return s.removeStyles(h, u.styleSheet);
|
|
502
|
+
};
|
|
503
|
+
}, [h, a, u.styleSheet, l, u.stylis]), null;
|
|
504
|
+
};
|
|
505
|
+
function c(a, u, l, h, p) {
|
|
506
|
+
if (s.isStatic) s.renderStyles(a, Ie, l, p);
|
|
507
|
+
else {
|
|
508
|
+
var f = g(g({}, u), { theme: zt(u, h, i.defaultProps) });
|
|
509
|
+
s.renderStyles(a, f, l, p);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
return S.memo(i);
|
|
513
|
+
}
|
|
514
|
+
function lr(e) {
|
|
515
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
516
|
+
var n = X(Pt.apply(void 0, T([e], t, !1))), o = yt(n);
|
|
517
|
+
return new Vt(o, n);
|
|
518
|
+
}
|
|
519
|
+
export {
|
|
520
|
+
It as StyleSheetContext,
|
|
521
|
+
ur as StyleSheetManager,
|
|
522
|
+
Ct as ThemeContext,
|
|
523
|
+
cr as createGlobalStyle,
|
|
524
|
+
Pt as css,
|
|
525
|
+
Qe as default,
|
|
526
|
+
gt as isStyledComponent,
|
|
527
|
+
lr as keyframes,
|
|
528
|
+
Qe as styled,
|
|
529
|
+
nt as version
|
|
530
|
+
};
|
package/styles.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import e, { css as r } from "./styled-components.browser.esm.js";
|
|
2
|
+
import { token as t } from "./token.js";
|
|
3
|
+
import { getThumbPosition as l } from "./getThumbPosition.js";
|
|
4
|
+
const v = e.div.withConfig({
|
|
5
|
+
displayName: "Container",
|
|
6
|
+
componentId: "sc-1noysms-0"
|
|
7
|
+
})(["position:relative;display:flex;gap:", ";align-items:center;"], t.spacing3), m = e.div.withConfig({
|
|
8
|
+
displayName: "SliderContainer",
|
|
9
|
+
componentId: "sc-1noysms-1"
|
|
10
|
+
})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]), x = e.div.withConfig({
|
|
11
|
+
displayName: "IconStyled",
|
|
12
|
+
componentId: "sc-1noysms-2"
|
|
13
|
+
})(["display:grid;color:", ";"], (i) => i.$isDisabled ? t.colorTextDisabled : t.colorTextMuted), c = r(["position:relative;box-sizing:border-box;height:24px;padding:0;border:10px solid transparent;border-radius:2px / 50%;background-image:var(--track-background);background-clip:padding-box;border-inline:none;appearance:none;"]), b = r(["position:relative;top:50%;bottom:0;width:20px;height:20px;padding:0;opacity:0;pointer-events:", ";transform:translateY(-50%);-webkit-appearance:none;appearance:none;"], (i) => i.$isDisabled ? "none" : "auto");
|
|
14
|
+
function u(i) {
|
|
15
|
+
const o = l(i.min, i.max, i.value);
|
|
16
|
+
let n, a;
|
|
17
|
+
Array.isArray(i.$values) ? (n = l(i.min, i.max, i.$values[0]), a = l(i.min, i.max, i.$values[1])) : i.$isFromCenter ? (n = `min(${o}, 50%)`, a = `max(50%, ${o})`) : (n = "0", a = o);
|
|
18
|
+
const s = i.$isDisabled ? t.gray400 : t.brandPrimary500;
|
|
19
|
+
return `linear-gradient(
|
|
20
|
+
90deg,
|
|
21
|
+
${t.gray100a} ${n},
|
|
22
|
+
${s} ${n},
|
|
23
|
+
${s} ${a},
|
|
24
|
+
${t.gray100a} ${a}
|
|
25
|
+
)`;
|
|
26
|
+
}
|
|
27
|
+
const d = e.input.attrs((i) => ({
|
|
28
|
+
style: {
|
|
29
|
+
"--track-background": u(i)
|
|
30
|
+
}
|
|
31
|
+
})).withConfig({
|
|
32
|
+
displayName: "SliderInput",
|
|
33
|
+
componentId: "sc-1noysms-3"
|
|
34
|
+
})(["position:absolute;left:0;width:100%;margin:0;padding:0;border:none;background:transparent;cursor:", ";pointer-events:", ";-webkit-appearance:none;appearance:none;&:focus{outline:none;}&::-webkit-slider-thumb{", "}&::-moz-range-thumb{", " transform:none;}&::-webkit-slider-runnable-track{", "}&::-moz-range-track{", "}"], (i) => i.$isDisabled ? "default" : "pointer", (i) => i.$isRange || i.$isDisabled ? "none" : "auto", b, b, c, c), f = e.div.withConfig({
|
|
35
|
+
displayName: "ThumbContainer",
|
|
36
|
+
componentId: "sc-1noysms-4"
|
|
37
|
+
})(["position:absolute;top:50%;z-index:1;box-sizing:border-box;width:16px;height:16px;opacity:var(--thumb-opacity,", ");pointer-events:none;transition:opacity 120ms ease-in-out;", " ", ":hover + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ", ";--thumb-shadow:", ",", ";}", ":focus-visible + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ", ";--thumb-shadow:0 0 0 3px ", ";}", ":active + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ", ";--thumb-shadow:", ",", ";--thumb-size:20px;}"], (i) => i.$isInactive ? 0 : 1, (i) => i.$isInactive && r(["", ":hover &{--thumb-opacity:", ";}"], m, i.$isDisabled ? 0 : 1), d, t.gray100a, t.elevationStatic, t.elevation1, d, t.gray100a, t.gray100a, d, t.gray100a, t.elevationStatic, t.elevation2), $ = e.div.withConfig({
|
|
38
|
+
displayName: "ThumbCircle",
|
|
39
|
+
componentId: "sc-1noysms-5"
|
|
40
|
+
})(["position:absolute;top:50%;left:50%;width:var(--thumb-size,16px);height:var(--thumb-size,16px);border-radius:", ";background:", ";", " transform:translate(-50%,-50%);&::before{content:'';position:absolute;top:50%;left:50%;display:block;width:8px;height:8px;border-radius:", ";background-color:", ";visibility:var(--thumb-inner-circle-visibility,hidden);transform:translate(-50%,-50%);}"], t.radiusCircle, (i) => i.$isDisabled ? t.gray400 : t.gray10, (i) => !i.$isDisabled && r(["box-shadow:var(--thumb-shadow,", ",", "),var(--thumb-border,0 0 0 1px ", ");"], t.elevationStatic, t.elevation1, t.gray75a), t.radiusCircle, (i) => i.$isDisabled ? t.gray400 : t.gray25), C = e.div.withConfig({
|
|
41
|
+
displayName: "InputContainer",
|
|
42
|
+
componentId: "sc-1noysms-6"
|
|
43
|
+
})(["width:", ";input{text-align:center;}"], h);
|
|
44
|
+
function h(i) {
|
|
45
|
+
return `${40 + 8 * Math.max(i.$min.toString().length, i.$max.toString().length)}px`;
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
v as Container,
|
|
49
|
+
x as IconStyled,
|
|
50
|
+
C as InputContainer,
|
|
51
|
+
m as SliderContainer,
|
|
52
|
+
d as SliderInput,
|
|
53
|
+
$ as ThumbCircle,
|
|
54
|
+
f as ThumbContainer
|
|
55
|
+
};
|
package/styles2.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import i, { css as c } from "./styled-components.browser.esm.js";
|
|
2
|
+
import { token as t } from "./token.js";
|
|
3
|
+
const n = c(["position:absolute;right:calc(var(--ds-thumbnail-indicator-offset-x) * -1);bottom:calc(var(--ds-thumbnail-indicator-offset-y) * -1);overflow:visible;width:calc(var(--ds-thumbnail-indicator-radius) * 2);height:calc(var(--ds-thumbnail-indicator-radius) * 2);"]), s = i.svg.withConfig({
|
|
4
|
+
displayName: "SvgIcon",
|
|
5
|
+
componentId: "sc-1swtdnx-0"
|
|
6
|
+
})(["", ""], n), d = i.div.withConfig({
|
|
7
|
+
displayName: "IconContainer",
|
|
8
|
+
componentId: "sc-1swtdnx-1"
|
|
9
|
+
})(["", " display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:", ";color:", ";svg{width:12px;height:12px;}"], n, ({
|
|
10
|
+
$backgroundColor: o
|
|
11
|
+
}) => t[o], ({
|
|
12
|
+
$iconColor: o
|
|
13
|
+
}) => t[o]);
|
|
14
|
+
export {
|
|
15
|
+
d as IconContainer,
|
|
16
|
+
s as SvgIcon
|
|
17
|
+
};
|