@bynder/compact-view 5.2.1 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccessToken.js +5 -0
- package/AccessToken2.js +176 -0
- package/AccessToken3.js +4 -0
- package/ActiveFilter.js +6 -5
- package/ActiveFilters.js +24 -24
- package/AddMedia.js +1 -1
- package/AdditionalInfo.js +18 -0
- package/Advanced.js +3 -3
- package/App.js +46 -43
- package/Arrow.js +14 -0
- package/AssetCard.js +32 -29
- package/AssetCardMetaproperties.js +14 -13
- package/AssetFilter.js +36 -35
- package/AssetFilterContext.js +3 -3
- package/AssetItem.js +14 -13
- package/AssetList.js +7 -7
- package/AssetTypeItem.js +13 -12
- package/Autocomplete_new.js +41 -37
- 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 -3
- 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 -14
- package/Checkbox.js +85 -0
- package/Checkbox.styles.js +2 -2
- package/Checkmark.js +7 -0
- package/Chip.js +70 -40
- package/Chip2.js +42 -0
- package/CollectionCard.js +9 -8
- package/CollectionItem.js +15 -14
- package/CollectionList.js +2 -2
- package/CollectionView.js +2 -2
- package/CollectionsView.js +6 -6
- 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/ConnectButton.js +1 -1
- package/Container.js +14 -13
- package/Container2.js +31 -0
- package/Content.js +16 -0
- package/ContextAction.js +18 -17
- package/ContextActionButton.js +29 -0
- package/ControlGroup.js +32 -0
- package/DOMFunctions.js +27 -0
- package/Dat.js +62 -50
- package/DatDropdownItem.js +20 -19
- package/DesignSystemContext.js +4 -4
- package/DesignSystemProvider.js +29 -0
- package/DirectionSelect.js +16 -15
- package/Divider.js +21 -0
- package/DomainInput.js +15 -14
- package/DragRange.js +25 -0
- package/DragSelect.js +11 -11
- package/Dropdown.js +12 -11
- package/Dropdown2.js +169 -0
- package/DropdownContent.js +2 -2
- package/DropdownListItem.js +3 -3
- package/Enum.js +12 -0
- package/ErrorMessage.js +20 -19
- package/FieldSelect.js +4 -4
- package/FilePlaceholder.js +19 -0
- package/FileSelector.js +11 -10
- 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/Header2.js +43 -0
- package/Header22.js +15 -0
- package/HelperText.js +26 -0
- package/HorizontalScroll.js +4 -4
- 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 -8
- 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 -3
- package/List.js +25 -0
- package/ListItem.js +11 -0
- package/ListItem2.js +58 -0
- package/ListItem4.js +37 -0
- package/MetapropertyFilterContent.js +2 -2
- package/MetapropertyOption.js +2 -3
- package/Middleware.js +49 -0
- package/Middleware2.js +49 -0
- package/Modal.js +2 -2
- 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 -15
- package/OffsetContext.js +9 -0
- package/Oops.js +1 -1
- package/OpacityInput.js +17 -0
- package/Option_new.js +19 -18
- 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 -3
- package/ReportModal.js +16 -14
- package/RequestHandler.js +119 -0
- package/RightArrow.js +4 -4
- package/Row.js +16 -0
- package/SearchInput.js +15 -15
- package/SearchInput2.js +46 -0
- package/SectionTitle.js +17 -0
- package/Select.js +49 -0
- package/SelectButtonText.js +16 -0
- package/SelectedItemContainer.js +11 -10
- package/SelectedItems.js +2 -2
- package/SelectionFooter.js +8 -7
- package/Serializer.js +27 -0
- package/ShadowRootInternal.js +17 -17
- package/Sidebar.js +17 -0
- package/Skeleton.js +6 -6
- package/Slider.constants.js +6 -0
- package/Slider.js +128 -0
- package/SmartFilterContent.js +2 -2
- package/SmartFilterSelect_new.js +2 -2
- package/Smartfilters_new.js +53 -50
- package/Spinner.js +2 -2
- package/Spinner2.js +15 -0
- package/StatefulAssetList.js +15 -15
- package/Stats.js +16 -0
- package/StatsItem.js +23 -0
- package/Status.js +32 -0
- package/Switch.js +82 -0
- package/SwitchNLS.js +26 -23
- package/Tabs2.js +10 -0
- package/TagItem.js +8 -8
- package/Tags.js +9 -9
- package/Text2.js +11 -0
- package/Text22.js +18 -0
- package/Text4.js +18 -0
- package/Textarea.js +92 -0
- package/Theming.js +4 -4
- package/Thumb.js +28 -0
- package/Thumbnail.js +91 -0
- package/Tokenizer.js +147 -0
- package/Toolbar.js +13 -12
- package/Tooltip.js +2 -2
- package/Tooltip2.js +111 -0
- package/TruncatedText.js +34 -0
- package/URLSearchParams.js +5 -0
- package/Utility.js +56 -0
- package/ViewSwitch.js +8 -7
- 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.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 -9
- package/autocomplete.js +2 -2
- package/axios.js +46 -0
- package/base.js +57 -0
- 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/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/combineMetaproperties.js +1 -1
- package/combineURLs.js +6 -0
- package/composeSignals.js +30 -0
- package/constants.js +2 -12
- 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/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/filterAssets.js +1 -1
- 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 -1
- package/getAssetCounts.js +1 -1
- package/getAssets.js +2 -2
- package/getCallFrame.js +12 -0
- package/getCollections.js +1 -1
- package/getFilterOptions.js +1 -1
- package/getFilters.js +1 -1
- package/getFilters_new.js +1 -1
- package/getRequestCookies.js +40 -0
- package/getRootSpan.js +6 -0
- package/getRootSpan2.js +6 -0
- package/getSimilarityAssets.js +1 -1
- 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 -6
- package/handlers2.js +6 -0
- package/helpers.js +3 -4
- 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.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/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 -53
- 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 -17
- 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/logger2.js +56 -0
- package/logger3.js +56 -0
- package/logger4.js +56 -0
- 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 -1
- package/normalizeRows.js +10 -0
- package/notify.js +52 -0
- package/null.js +4 -0
- 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/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/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/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 -1
- package/tslib.es6.js +18 -0
- package/typeof.js +11 -0
- package/urlHelper.js +15 -0
- package/urlHelper2.js +4 -0
- package/useAutoHeight.js +25 -0
- package/useDatStore.js +31 -27
- 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 -6
- package/usePress.js +359 -0
- package/useRouterStore.js +6 -6
- package/useScrollHighlightedIntoView.js +24 -0
- package/useSearchStore.js +5 -5
- package/useSimilaritySearchStore.js +6 -6
- 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 -44
- package/utils2.js +43 -45
- 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/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/DatDropdownItem.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { jsxs as u, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import b from "styled-components";
|
|
4
|
-
import { IconArrowRight as w, IconCrop as x } from "
|
|
5
|
-
import { List as
|
|
1
|
+
import { jsxs as u, Fragment as p, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, useEffect as g } from "react";
|
|
3
|
+
import b from "./styled-components.browser.esm.js";
|
|
4
|
+
import { IconArrowRight as w, IconCrop as x } from "./index4.js";
|
|
5
|
+
import { List as l } from "./List.js";
|
|
6
|
+
import { Thumbnail as s } from "./Thumbnail.js";
|
|
6
7
|
import { useDat as D } from "./useDatStore.js";
|
|
7
|
-
function
|
|
8
|
-
const { transformation: t, openDat: c } = D(), [h,
|
|
8
|
+
function S({ transformBaseUrl: n, asset: m, toggleDropdown: f }) {
|
|
9
|
+
const { transformation: t, openDat: c } = D(), [h, e] = d(), o = t?.preset?.content?.io?.length ?? 0;
|
|
9
10
|
return g(() => {
|
|
10
11
|
if (t?.url) {
|
|
11
|
-
const { url:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
),
|
|
12
|
+
const { url: r } = t, a = "io=transform:fill,width:40,height:40";
|
|
13
|
+
r.includes("io=transform:fill") && e(
|
|
14
|
+
r.replace(/io=transform:fill,width:[0-9]+,height:[0-9]+/, a)
|
|
15
|
+
), e(`${r}&${a}`);
|
|
15
16
|
}
|
|
16
|
-
}, [t]),
|
|
17
|
-
/* @__PURE__ */ i(
|
|
17
|
+
}, [t]), n ? /* @__PURE__ */ u(p, { children: [
|
|
18
|
+
/* @__PURE__ */ i(l.Divider, {}),
|
|
18
19
|
/* @__PURE__ */ i(
|
|
19
20
|
I,
|
|
20
21
|
{
|
|
21
|
-
thumbnail: !t ||
|
|
22
|
-
|
|
22
|
+
thumbnail: !t || o === 0 ? /* @__PURE__ */ i(s, { icon: /* @__PURE__ */ i(x, {}), "data-testid": "crop-icon" }) : /* @__PURE__ */ i(
|
|
23
|
+
s,
|
|
23
24
|
{
|
|
24
25
|
variant: "content",
|
|
25
26
|
imageUrl: h,
|
|
@@ -28,19 +29,19 @@ function L({ transformBaseUrl: r, asset: e, toggleDropdown: f }) {
|
|
|
28
29
|
),
|
|
29
30
|
rightElements: /* @__PURE__ */ i(w, {}),
|
|
30
31
|
onClick: () => {
|
|
31
|
-
f(), c(
|
|
32
|
+
f(), c(n, m, m.name);
|
|
32
33
|
},
|
|
33
|
-
subtext: t &&
|
|
34
|
+
subtext: t && o > 0 ? `${o} transformation${o === 1 ? "" : "s"}` : "",
|
|
34
35
|
children: "New transformation"
|
|
35
36
|
}
|
|
36
37
|
)
|
|
37
38
|
] }) : null;
|
|
38
39
|
}
|
|
39
|
-
const I = b(
|
|
40
|
+
const I = b(l.Item)`
|
|
40
41
|
max-width: 100%;
|
|
41
42
|
width: 340px;
|
|
42
43
|
margin-left: 0;
|
|
43
44
|
`;
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
S as DatDropdownItem
|
|
46
47
|
};
|
package/DesignSystemContext.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { StyleSheetManager as o } from "styled-components";
|
|
3
|
-
import { DesignSystemProvider as i } from "
|
|
2
|
+
import { StyleSheetManager as o } from "./styled-components.browser.esm.js";
|
|
3
|
+
import { DesignSystemProvider as i } from "./DesignSystemProvider.js";
|
|
4
4
|
import { useRootElement as n } from "./RootElementContext.js";
|
|
5
|
-
function
|
|
5
|
+
function l(r) {
|
|
6
6
|
const t = n();
|
|
7
7
|
return /* @__PURE__ */ e(o, { target: t, children: /* @__PURE__ */ e(i, { zIndexBase: 1e6, children: r.children }) });
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
l as DesignSystemProvider
|
|
11
11
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import u, { useMemo as f } from "react";
|
|
3
|
+
import { ThemeStyles as l } from "./theme.js";
|
|
4
|
+
import { Button as a } from "./Button.js";
|
|
5
|
+
import { LocalizationProvider as p } from "./localization.js";
|
|
6
|
+
const t = 10001, v = u.createContext({
|
|
7
|
+
zIndexBase: t
|
|
8
|
+
});
|
|
9
|
+
function D({
|
|
10
|
+
children: n,
|
|
11
|
+
noTheme: i,
|
|
12
|
+
zIndexBase: r = t,
|
|
13
|
+
buttonVersion: m = "modern",
|
|
14
|
+
dateFnsLocale: o,
|
|
15
|
+
locale: s = "en-US"
|
|
16
|
+
}) {
|
|
17
|
+
const c = f(() => ({
|
|
18
|
+
zIndexBase: r,
|
|
19
|
+
dateFnsLocale: o
|
|
20
|
+
}), [o, r]);
|
|
21
|
+
return /* @__PURE__ */ e(v.Provider, { value: c, children: /* @__PURE__ */ e(p, { locale: s, children: /* @__PURE__ */ d(a.VersionProvider, { value: m, children: [
|
|
22
|
+
!i && /* @__PURE__ */ e(l, {}),
|
|
23
|
+
n
|
|
24
|
+
] }) }) });
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
v as DesignSystemContext,
|
|
28
|
+
D as DesignSystemProvider
|
|
29
|
+
};
|
package/DirectionSelect.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import n from "styled-components";
|
|
3
|
-
import { IconSortOrder as
|
|
4
|
-
import { Button as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import n from "./styled-components.browser.esm.js";
|
|
3
|
+
import { IconSortOrder as m } from "./index4.js";
|
|
4
|
+
import { Button as l } from "./Button.js";
|
|
5
|
+
import { token as t } from "./token.js";
|
|
5
6
|
import { __ as r } from "./index2.js";
|
|
6
|
-
import { useOrderingByPage as
|
|
7
|
-
import { useRouterSelectors as
|
|
8
|
-
function
|
|
9
|
-
const c =
|
|
7
|
+
import { useOrderingByPage as f } from "./useOrderingStore.js";
|
|
8
|
+
import { useRouterSelectors as g } from "./useRouterStore.js";
|
|
9
|
+
function k({ nlSearch: o = !1 }) {
|
|
10
|
+
const c = g.use.page(), [i, s] = f(c.page), d = {
|
|
10
11
|
ASC: r("Ascending"),
|
|
11
12
|
DESC: r("Descending")
|
|
12
13
|
}, p = {
|
|
@@ -16,27 +17,27 @@ function b({ nlSearch: e = !1 }) {
|
|
|
16
17
|
function a() {
|
|
17
18
|
s({ field: i.field, direction: p[i.direction] });
|
|
18
19
|
}
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ e(
|
|
20
21
|
S,
|
|
21
22
|
{
|
|
22
23
|
variant: "clean",
|
|
23
24
|
isSmall: !0,
|
|
24
25
|
title: d[i.direction],
|
|
25
26
|
onClick: a,
|
|
26
|
-
icon: /* @__PURE__ */
|
|
27
|
-
isDisabled:
|
|
27
|
+
icon: /* @__PURE__ */ e(u, { $isAscending: i.direction === "ASC" }),
|
|
28
|
+
isDisabled: o
|
|
28
29
|
}
|
|
29
30
|
);
|
|
30
31
|
}
|
|
31
|
-
const S = n(
|
|
32
|
+
const S = n(l)`
|
|
32
33
|
border-radius: 5px 0 0 5px;
|
|
33
34
|
border: 1px solid #d9dee1;
|
|
34
35
|
height: 42px;
|
|
35
|
-
`, u = n(
|
|
36
|
+
`, u = n(m)`
|
|
36
37
|
width: ${t.spacing6};
|
|
37
38
|
height: ${t.spacing6};
|
|
38
|
-
${(
|
|
39
|
+
${(o) => o.$isAscending && "transform: scaleY(-1)"}
|
|
39
40
|
`;
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
k as DirectionSelect
|
|
42
43
|
};
|
package/Divider.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import r from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as i } from "./token.js";
|
|
4
|
+
function p({
|
|
5
|
+
direction: t = "horizontal",
|
|
6
|
+
...o
|
|
7
|
+
}) {
|
|
8
|
+
return t === "horizontal" ? /* @__PURE__ */ n(a, { ...o }) : /* @__PURE__ */ n(e, { role: "separator", ...o });
|
|
9
|
+
}
|
|
10
|
+
const a = r.hr.withConfig({
|
|
11
|
+
displayName: "HorizontalDivider",
|
|
12
|
+
componentId: "sc-galaug-0"
|
|
13
|
+
})(["box-sizing:content-box;height:1px;margin:0;padding:", " 0;border:none;background:", ";background-clip:content-box;"], i.spacing3, i.gray100a), e = r.div.withConfig({
|
|
14
|
+
displayName: "VerticalDivider",
|
|
15
|
+
componentId: "sc-galaug-1"
|
|
16
|
+
})(["box-sizing:content-box;width:1px;min-height:100%;margin:0;padding:0 ", ";background:", ";background-clip:content-box;"], i.spacing2, i.gray100a);
|
|
17
|
+
export {
|
|
18
|
+
p as Divider,
|
|
19
|
+
a as HorizontalDivider,
|
|
20
|
+
e as VerticalDivider
|
|
21
|
+
};
|
package/DomainInput.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import r from "./styled-components.browser.esm.js";
|
|
3
|
+
import { InputField as m } from "./InputField.js";
|
|
4
|
+
import { token as h } from "./token.js";
|
|
4
5
|
import { Spinner as c } from "./Spinner.js";
|
|
5
|
-
import { __ as
|
|
6
|
-
function
|
|
6
|
+
import { __ as e } from "./index2.js";
|
|
7
|
+
function D({ status: i, isReadOnly: o, value: t, onChange: a, onSubmit: l }) {
|
|
7
8
|
function d(p) {
|
|
8
9
|
i === "valid" && p.keyCode === 13 && l();
|
|
9
10
|
}
|
|
10
11
|
return /* @__PURE__ */ n(g, { children: /* @__PURE__ */ n(
|
|
11
|
-
|
|
12
|
+
m,
|
|
12
13
|
{
|
|
13
14
|
type: "url",
|
|
14
|
-
value:
|
|
15
|
+
value: t,
|
|
15
16
|
placeholder: "yourdomain.bynder.com",
|
|
16
|
-
label:
|
|
17
|
+
label: e("Enter the portal domain"),
|
|
17
18
|
onChange: a,
|
|
18
19
|
onKeyDown: d,
|
|
19
20
|
isInvalid: i === "invalid",
|
|
20
|
-
helperText: i === "invalid" &&
|
|
21
|
-
hasClearButton: i !== "validating" && !
|
|
21
|
+
helperText: i === "invalid" && e("This portal domain does not exist"),
|
|
22
|
+
hasClearButton: i !== "validating" && !o,
|
|
22
23
|
iconRight: i === "validating" ? /* @__PURE__ */ n(v, { role: "alert", "aria-live": "polite", children: /* @__PURE__ */ n(c, { isRelative: !0, isNotUsingMargin: !0 }) }) : void 0,
|
|
23
|
-
isDisabled:
|
|
24
|
+
isDisabled: o,
|
|
24
25
|
"data-testid": "login-input"
|
|
25
26
|
}
|
|
26
27
|
) });
|
|
27
28
|
}
|
|
28
|
-
const g =
|
|
29
|
-
margin: ${
|
|
29
|
+
const g = r.div`
|
|
30
|
+
margin: ${h.spacing4} 0;
|
|
30
31
|
width: 320px;
|
|
31
|
-
`, v =
|
|
32
|
+
`, v = r.div`
|
|
32
33
|
height: 100%;
|
|
33
34
|
display: flex;
|
|
34
35
|
align-items: center;
|
|
35
36
|
`;
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
D as DomainInput
|
|
38
39
|
};
|
package/DragRange.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import g from "./styled-components.browser.esm.js";
|
|
3
|
+
function f({
|
|
4
|
+
max: t,
|
|
5
|
+
min: n,
|
|
6
|
+
onKeyDown: o,
|
|
7
|
+
onMouseDown: i,
|
|
8
|
+
value: e
|
|
9
|
+
}) {
|
|
10
|
+
function r(a) {
|
|
11
|
+
return (a - n) / (t - n) * 100;
|
|
12
|
+
}
|
|
13
|
+
return /* @__PURE__ */ d(s, { $left: r(e[0]), $width: r(e[1]) - r(e[0]), role: "presentation", "data-testid": "ds-slider-drag-range", onKeyDown: o, onMouseDown: i });
|
|
14
|
+
}
|
|
15
|
+
const s = g.div.withConfig({
|
|
16
|
+
displayName: "StyledDragRange",
|
|
17
|
+
componentId: "sc-1mv2tts-0"
|
|
18
|
+
})(["position:absolute;left:", "%;width:", "%;height:100%;cursor:pointer;"], ({
|
|
19
|
+
$left: t
|
|
20
|
+
}) => t, ({
|
|
21
|
+
$width: t
|
|
22
|
+
}) => t);
|
|
23
|
+
export {
|
|
24
|
+
f as DragRange
|
|
25
|
+
};
|
package/DragSelect.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as Y } from "react/jsx-runtime";
|
|
2
2
|
import j, { useState as T, useRef as I, useEffect as f, useCallback as w } from "react";
|
|
3
3
|
import { createPortal as z } from "react-dom";
|
|
4
|
-
import { useDebounce as q } from "
|
|
5
|
-
import { token as G } from "
|
|
4
|
+
import { useDebounce as q } from "./index.module2.js";
|
|
5
|
+
import { token as G } from "./token.js";
|
|
6
6
|
import { useRootElement as H } from "./RootElementContext.js";
|
|
7
7
|
const L = {
|
|
8
8
|
x: null,
|
|
@@ -18,7 +18,7 @@ const L = {
|
|
|
18
18
|
const [E, R] = T(L), [d, D] = T(L), [C] = q(d, W, {
|
|
19
19
|
leading: !0,
|
|
20
20
|
maxWait: W
|
|
21
|
-
}), [
|
|
21
|
+
}), [_, $] = T(), o = H(), O = j.useMemo(
|
|
22
22
|
() => ee(
|
|
23
23
|
E,
|
|
24
24
|
C,
|
|
@@ -43,12 +43,12 @@ const L = {
|
|
|
43
43
|
}), []);
|
|
44
44
|
const p = ({ shiftKey: t, metaKey: s }) => {
|
|
45
45
|
const r = t || s ? "inverse" : "select";
|
|
46
|
-
B.current = { shiftKey: t, metaKey: s }, i.current && r !==
|
|
46
|
+
B.current = { shiftKey: t, metaKey: s }, i.current && r !== _ && $(r);
|
|
47
47
|
};
|
|
48
48
|
f(() => {
|
|
49
49
|
let t;
|
|
50
|
-
return typeof h == "function" && i.current ? (p(B.current), h(
|
|
51
|
-
}, [i.current,
|
|
50
|
+
return typeof h == "function" && i.current ? (p(B.current), h(_ ?? "select")) : typeof u == "function" && !i.current && (t = setTimeout(() => u(_ ?? "select"), Q)), () => clearTimeout(t);
|
|
51
|
+
}, [i.current, _]);
|
|
52
52
|
const A = (t) => {
|
|
53
53
|
c.current = t, R(t), b();
|
|
54
54
|
}, k = (t) => {
|
|
@@ -61,16 +61,16 @@ const L = {
|
|
|
61
61
|
x: s,
|
|
62
62
|
y: t
|
|
63
63
|
});
|
|
64
|
-
}, []),
|
|
65
|
-
o.removeEventListener("mousemove", S), o.removeEventListener("mouseup",
|
|
64
|
+
}, []), M = w(() => {
|
|
65
|
+
o.removeEventListener("mousemove", S), o.removeEventListener("mouseup", M), A(L), k(L);
|
|
66
66
|
}, [S, o]), P = w(
|
|
67
67
|
({ clientY: t, clientX: s, button: r }) => {
|
|
68
|
-
r === K && (o.addEventListener("mousemove", S), o.addEventListener("mouseup",
|
|
68
|
+
r === K && (o.addEventListener("mousemove", S), o.addEventListener("mouseup", M), A({
|
|
69
69
|
x: s,
|
|
70
70
|
y: t
|
|
71
71
|
}));
|
|
72
72
|
},
|
|
73
|
-
[S,
|
|
73
|
+
[S, M, o]
|
|
74
74
|
// eslint-disable-line react-hooks/exhaustive-deps
|
|
75
75
|
);
|
|
76
76
|
f(() => {
|
|
@@ -78,7 +78,7 @@ const L = {
|
|
|
78
78
|
return t && (oe(o), t.addEventListener("mousedown", P)), () => {
|
|
79
79
|
t && (t.removeEventListener("mousedown", P), re(o));
|
|
80
80
|
};
|
|
81
|
-
}, [n, P, S,
|
|
81
|
+
}, [n, P, S, M, o]), f(() => {
|
|
82
82
|
const t = o.querySelectorAll(`[${J}]`), s = Array.from(t).reduce((r, a) => {
|
|
83
83
|
const X = ne(a);
|
|
84
84
|
return a instanceof HTMLElement && te(X, N) && a.dataset.dragSelectId && r.push(a.dataset.dragSelectId), r;
|
package/Dropdown.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, Fragment as w, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useState as h, useRef as D, useMemo as $ } from "react";
|
|
3
|
-
import r from "styled-components";
|
|
4
|
-
import {
|
|
3
|
+
import r from "./styled-components.browser.esm.js";
|
|
4
|
+
import { Button as v } from "./Button.js";
|
|
5
|
+
import { token as x } from "./token.js";
|
|
5
6
|
import { DropdownContent as C } from "./DropdownContent.js";
|
|
6
7
|
import { useAssetFilter as A } from "./AssetFilterContext.js";
|
|
7
|
-
function
|
|
8
|
+
function O({
|
|
8
9
|
buttonKind: t = "clean",
|
|
9
|
-
direction:
|
|
10
|
+
direction: l = "Down",
|
|
10
11
|
isSmall: m,
|
|
11
12
|
fadeIn: f,
|
|
12
13
|
isMetapropertyDropdown: u,
|
|
@@ -15,9 +16,9 @@ function N({
|
|
|
15
16
|
const a = A(), s = b(), [e, p] = h(!1), d = D(null), o = () => {
|
|
16
17
|
p((g) => !g), a.setDropdownState(!a.isDropdownActive);
|
|
17
18
|
};
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */ i(I, { $fadeIn: !!f, children: /* @__PURE__ */
|
|
20
|
-
|
|
19
|
+
return /* @__PURE__ */ c(w, { children: [
|
|
20
|
+
/* @__PURE__ */ i(I, { $fadeIn: !!f, children: /* @__PURE__ */ c(
|
|
21
|
+
v,
|
|
21
22
|
{
|
|
22
23
|
variant: t,
|
|
23
24
|
isSmall: m,
|
|
@@ -40,7 +41,7 @@ function N({
|
|
|
40
41
|
{
|
|
41
42
|
isPaddingContent: n.isPaddingContent,
|
|
42
43
|
onClickOutside: o,
|
|
43
|
-
direction:
|
|
44
|
+
direction: l,
|
|
44
45
|
target: d,
|
|
45
46
|
id: s,
|
|
46
47
|
isMetapropertyDropdown: u,
|
|
@@ -59,7 +60,7 @@ const I = r.div`
|
|
|
59
60
|
text-transform: inherit;
|
|
60
61
|
${(t) => t.$fadeIn ? "animation: var(--fade-in-down);" : ""}
|
|
61
62
|
`, S = r.i`
|
|
62
|
-
margin-left: ${
|
|
63
|
+
margin-left: ${x.spacing3};
|
|
63
64
|
transition: transform 200ms;
|
|
64
65
|
${(t) => t.$active ? "transform: rotate(180deg);" : ""}
|
|
65
66
|
`, k = r.span`
|
|
@@ -67,5 +68,5 @@ const I = r.div`
|
|
|
67
68
|
align-items: center;
|
|
68
69
|
`;
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
O as Dropdown
|
|
71
72
|
};
|
package/Dropdown2.js
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { jsx as g, jsxs as P } from "react/jsx-runtime";
|
|
2
|
+
import { useReducer as B, useRef as y, useEffect as I, useCallback as F, useMemo as W } from "react";
|
|
3
|
+
import { useLayer as j, mergeRefs as O } from "react-laag";
|
|
4
|
+
import { useKeyDown as n } from "./useKeyDown.js";
|
|
5
|
+
import { useId as K } from "./useId.js";
|
|
6
|
+
import { Arrow as N } from "./Arrow.js";
|
|
7
|
+
import { Container as U } from "./Container2.js";
|
|
8
|
+
import { Item as V } from "./Item4.js";
|
|
9
|
+
import { SectionTitle as q } from "./SectionTitle.js";
|
|
10
|
+
import { DropdownContext as _ } from "./context3.js";
|
|
11
|
+
import { getUseLayerOptions as z } from "./getUseLayerOptions.js";
|
|
12
|
+
import { reducer as G, initialState as J } from "./state.js";
|
|
13
|
+
import { SelectButtonText as Q } from "./SelectButtonText.js";
|
|
14
|
+
import { Divider as X } from "./Divider.js";
|
|
15
|
+
import { SearchInput as Y } from "./SearchInput2.js";
|
|
16
|
+
import { Text as Z } from "./Text22.js";
|
|
17
|
+
import { useScrollHighlightedIntoView as $ } from "./useScrollHighlightedIntoView.js";
|
|
18
|
+
import { ListItem as ee } from "./ListItem2.js";
|
|
19
|
+
import { getFirstShadowElement as te, isInShadow as re } from "./shadowdom2.js";
|
|
20
|
+
import { useOffset as ie, OffsetContext as oe } from "./OffsetContext.js";
|
|
21
|
+
import { calculateContainerMaxHeight as ne } from "./calculateContainerMaxHeight.js";
|
|
22
|
+
function i({
|
|
23
|
+
children: x,
|
|
24
|
+
trigger: w,
|
|
25
|
+
position: c = "bottom-left",
|
|
26
|
+
isClosedOnScroll: m = !1,
|
|
27
|
+
isKeepingFocusOnTrigger: f = !1,
|
|
28
|
+
containerRef: S,
|
|
29
|
+
onOpen: v,
|
|
30
|
+
onClose: D,
|
|
31
|
+
minWidth: T,
|
|
32
|
+
role: C,
|
|
33
|
+
noMaxHeight: E = !1,
|
|
34
|
+
...L
|
|
35
|
+
}) {
|
|
36
|
+
const [e, r] = B(G, J), l = y(!0), s = y(), p = K("dropdown-menu");
|
|
37
|
+
I(() => {
|
|
38
|
+
if (l.current) {
|
|
39
|
+
l.current = !1;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
e.isOpen ? (r({
|
|
43
|
+
type: "highlight-current-item"
|
|
44
|
+
}), v?.()) : D?.();
|
|
45
|
+
}, [e.isOpen]), $(e.highlightedItemId, e.hasSearch);
|
|
46
|
+
const o = F(() => {
|
|
47
|
+
e.isOpen && (r({
|
|
48
|
+
type: "close"
|
|
49
|
+
}), s?.current?.focus());
|
|
50
|
+
}, [e.isOpen]);
|
|
51
|
+
I(() => {
|
|
52
|
+
function t() {
|
|
53
|
+
o();
|
|
54
|
+
}
|
|
55
|
+
if (m && e.isOpen)
|
|
56
|
+
return document.addEventListener("scroll", t), () => {
|
|
57
|
+
document.removeEventListener("scroll", t);
|
|
58
|
+
};
|
|
59
|
+
}, [m, o, e.isOpen]), n("Tab", () => {
|
|
60
|
+
e.isOpen && o();
|
|
61
|
+
}), n("Escape", () => {
|
|
62
|
+
e.isOpen && o();
|
|
63
|
+
}), n("Enter", (t) => {
|
|
64
|
+
e.isOpen && e.highlightedItemId && (document.querySelector("#" + e.highlightedItemId)?.click(), t.preventDefault());
|
|
65
|
+
}), n("ArrowDown", (t) => {
|
|
66
|
+
e.isOpen && (r({
|
|
67
|
+
type: "highlight-next"
|
|
68
|
+
}), t.preventDefault());
|
|
69
|
+
}), n("ArrowUp", (t) => {
|
|
70
|
+
e.isOpen && (r({
|
|
71
|
+
type: "highlight-previous"
|
|
72
|
+
}), t.preventDefault());
|
|
73
|
+
});
|
|
74
|
+
const k = W(() => ({
|
|
75
|
+
dispatch: r,
|
|
76
|
+
close: o,
|
|
77
|
+
highlightedItemId: e.highlightedItemId,
|
|
78
|
+
hasSearch: e.hasSearch,
|
|
79
|
+
isKeepingFocusOnTrigger: f,
|
|
80
|
+
menuId: p
|
|
81
|
+
}), [o, f, e.hasSearch, e.highlightedItemId, p]), h = ie(), d = 16, {
|
|
82
|
+
renderLayer: R,
|
|
83
|
+
triggerProps: {
|
|
84
|
+
ref: A
|
|
85
|
+
},
|
|
86
|
+
layerProps: a,
|
|
87
|
+
triggerBounds: u
|
|
88
|
+
} = j({
|
|
89
|
+
isOpen: e.isOpen,
|
|
90
|
+
/**
|
|
91
|
+
* Until https://github.com/everweij/react-laag/issues/84 is fixed,
|
|
92
|
+
* we can't use the onOutsideClick option in the Shadow DOM.
|
|
93
|
+
*/
|
|
94
|
+
onOutsideClick: re(s.current) ? void 0 : () => r({
|
|
95
|
+
type: "close"
|
|
96
|
+
}),
|
|
97
|
+
onParentClose() {
|
|
98
|
+
r({
|
|
99
|
+
type: "close"
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
onDisappear: (t) => {
|
|
103
|
+
t === "full" && r({
|
|
104
|
+
type: "close"
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
triggerOffset: h,
|
|
108
|
+
containerOffset: d,
|
|
109
|
+
auto: !0,
|
|
110
|
+
container: te(s.current),
|
|
111
|
+
...z(c)
|
|
112
|
+
}), b = c === "bottom" ? {
|
|
113
|
+
width: u?.width,
|
|
114
|
+
minWidth: "initial",
|
|
115
|
+
maxWidth: "initial"
|
|
116
|
+
} : {};
|
|
117
|
+
function H(t) {
|
|
118
|
+
(t.key === " " || t.key === "Enter") && (t.preventDefault(), r({
|
|
119
|
+
type: "toggle-from-keyboard"
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
const M = ne(E, u, {
|
|
123
|
+
triggerOffset: h,
|
|
124
|
+
containerOffset: d
|
|
125
|
+
});
|
|
126
|
+
return /* @__PURE__ */ g(_.Provider, { value: k, children: /* @__PURE__ */ P("div", { ...L, children: [
|
|
127
|
+
w({
|
|
128
|
+
isOpen: e.isOpen,
|
|
129
|
+
onClick: () => {
|
|
130
|
+
r({
|
|
131
|
+
type: "toggle"
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
"aria-haspopup": !0,
|
|
135
|
+
"aria-expanded": e.isOpen,
|
|
136
|
+
"aria-controls": p,
|
|
137
|
+
"aria-activedescendant": e.highlightedItemId || void 0,
|
|
138
|
+
onKeyDown: H,
|
|
139
|
+
ref: O(A, s)
|
|
140
|
+
}, {
|
|
141
|
+
open: () => {
|
|
142
|
+
r({
|
|
143
|
+
type: "open"
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
close: () => {
|
|
147
|
+
r({
|
|
148
|
+
type: "close"
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}),
|
|
152
|
+
e.isOpen && R(/* @__PURE__ */ g(U, { id: p, ...a, ref: O(a.ref, S), style: {
|
|
153
|
+
...a.style,
|
|
154
|
+
...b
|
|
155
|
+
}, minWidth: T, role: C, dynamicMaxHeight: M, children: x }))
|
|
156
|
+
] }) });
|
|
157
|
+
}
|
|
158
|
+
i.Divider = X;
|
|
159
|
+
i.Item = V;
|
|
160
|
+
i.ListItem = ee;
|
|
161
|
+
i.SectionTitle = q;
|
|
162
|
+
i.Arrow = N;
|
|
163
|
+
i.SelectButtonText = Q;
|
|
164
|
+
i.SearchInput = Y;
|
|
165
|
+
i.Text = Z;
|
|
166
|
+
i.OffsetContext = oe;
|
|
167
|
+
export {
|
|
168
|
+
i as Dropdown
|
|
169
|
+
};
|
package/DropdownContent.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as L } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as O, useState as l, useLayoutEffect as g } from "react";
|
|
3
3
|
import { createPortal as P } from "react-dom";
|
|
4
|
-
import
|
|
5
|
-
import { token as m } from "
|
|
4
|
+
import S from "./styled-components.browser.esm.js";
|
|
5
|
+
import { token as m } from "./token.js";
|
|
6
6
|
import { useClickOutside as z } from "./useClickOutside.js";
|
|
7
7
|
import { useRootElement as V } from "./RootElementContext.js";
|
|
8
8
|
import { concatClasses as j } from "./class.js";
|
package/DropdownListItem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { token as o } from "
|
|
4
|
-
import { IconCheck as a } from "
|
|
2
|
+
import r from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as o } from "./token.js";
|
|
4
|
+
import { IconCheck as a } from "./index4.js";
|
|
5
5
|
function m({ selected: i = !1, ...t }) {
|
|
6
6
|
return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ e(
|
|
7
7
|
c,
|
package/Enum.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var r = "-ms-", a = "-moz-", v = "-webkit-", E = "comm", e = "rule", m = "decl", M = "@import", R = "@keyframes", T = "@layer";
|
|
2
|
+
export {
|
|
3
|
+
E as COMMENT,
|
|
4
|
+
m as DECLARATION,
|
|
5
|
+
M as IMPORT,
|
|
6
|
+
R as KEYFRAMES,
|
|
7
|
+
T as LAYER,
|
|
8
|
+
a as MOZ,
|
|
9
|
+
r as MS,
|
|
10
|
+
e as RULESET,
|
|
11
|
+
v as WEBKIT
|
|
12
|
+
};
|
package/ErrorMessage.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { jsxs as e, Fragment as c, jsx as
|
|
2
|
-
import i from "styled-components";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { jsxs as e, Fragment as c, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import i from "./styled-components.browser.esm.js";
|
|
3
|
+
import { Button as a } from "./Button.js";
|
|
4
|
+
import { token as t } from "./token.js";
|
|
5
|
+
import { __ as r } from "./index2.js";
|
|
5
6
|
import { ErrorIcon as s } from "./ErrorIcon.js";
|
|
6
|
-
function
|
|
7
|
+
function S(o) {
|
|
7
8
|
return /* @__PURE__ */ e(c, { children: [
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
9
|
+
/* @__PURE__ */ n(s, {}),
|
|
10
|
+
/* @__PURE__ */ n(l, { children: r("Oops! Something went wrong") }),
|
|
11
|
+
/* @__PURE__ */ n(p, { children: r("Please try again or get in contact with our customer support.") }),
|
|
11
12
|
/* @__PURE__ */ e(m, { children: [
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
+
/* @__PURE__ */ n(
|
|
13
14
|
a,
|
|
14
15
|
{
|
|
15
16
|
variant: "secondary",
|
|
16
|
-
title:
|
|
17
|
+
title: r("Send report"),
|
|
17
18
|
onClick: o.onClickSend,
|
|
18
19
|
isDisabled: o.isReportSent,
|
|
19
|
-
children: o.isReportSent ?
|
|
20
|
+
children: o.isReportSent ? r("Report sent") : r("Send report...")
|
|
20
21
|
}
|
|
21
22
|
),
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ n(a, { variant: "primary", title: r("Try again"), onClick: o.onClickRetry, children: r("Try again") })
|
|
23
24
|
] })
|
|
24
25
|
] });
|
|
25
26
|
}
|
|
26
27
|
const l = i.h1`
|
|
27
|
-
margin-top: ${
|
|
28
|
-
font-size: ${
|
|
28
|
+
margin-top: ${t.spacing8};
|
|
29
|
+
font-size: ${t.fontSize400};
|
|
29
30
|
`, p = i.span`
|
|
30
|
-
margin-top: ${
|
|
31
|
-
color: ${
|
|
31
|
+
margin-top: ${t.spacing5};
|
|
32
|
+
color: ${t.colorTextDisabled};
|
|
32
33
|
`, m = i.div`
|
|
33
|
-
margin-top: ${
|
|
34
|
+
margin-top: ${t.spacing7};
|
|
34
35
|
display: flex;
|
|
35
|
-
gap: ${
|
|
36
|
+
gap: ${t.spacing3};
|
|
36
37
|
`;
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
+
S as ErrorMessage
|
|
39
40
|
};
|