@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/Tags.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as n, jsxs as a, Fragment as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { token as i } from "
|
|
4
|
-
import { IconTag as d } from "
|
|
2
|
+
import s from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as i } from "./token.js";
|
|
4
|
+
import { IconTag as d } from "./index4.js";
|
|
5
5
|
import { Dropdown as p } from "./Dropdown.js";
|
|
6
6
|
import { __ as g } from "./index2.js";
|
|
7
7
|
import { TagItem as c } from "./TagItem.js";
|
|
8
8
|
import { Spinner as m } from "./Spinner.js";
|
|
9
|
-
function
|
|
10
|
-
const o =
|
|
11
|
-
return /* @__PURE__ */ n(p, { title: /* @__PURE__ */ n(
|
|
9
|
+
function y(t) {
|
|
10
|
+
const o = f(t.tags);
|
|
11
|
+
return /* @__PURE__ */ n(p, { title: /* @__PURE__ */ n(l, {}), isSmall: !0, fadeIn: !0, children: () => /* @__PURE__ */ a(e, { children: [
|
|
12
12
|
t.isLoading && /* @__PURE__ */ n(m, {}),
|
|
13
13
|
/* @__PURE__ */ a(h, { children: [
|
|
14
14
|
" ",
|
|
@@ -18,10 +18,10 @@ function j(t) {
|
|
|
18
18
|
/* @__PURE__ */ n(u, { children: o.map((r) => /* @__PURE__ */ n(c, { tag: r, isLoading: t.isLoading }, r.id)) })
|
|
19
19
|
] }) });
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function f(t) {
|
|
22
22
|
return [...t].sort((o, r) => r.assetCount - o.assetCount);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function l() {
|
|
25
25
|
return /* @__PURE__ */ a(e, { children: [
|
|
26
26
|
/* @__PURE__ */ n(T, {}),
|
|
27
27
|
/* @__PURE__ */ n("span", { "data-testid": "tags-filter", children: g("Tags") })
|
|
@@ -43,5 +43,5 @@ const h = s.h1`
|
|
|
43
43
|
width: ${i.spacing6};
|
|
44
44
|
`;
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
y as Tags
|
|
47
47
|
};
|
package/Text2.js
ADDED
package/Text22.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import m from "./styled-components.browser.esm.js";
|
|
3
|
+
import { textStyles as e } from "./textStyles.js";
|
|
4
|
+
import { token as o } from "./token.js";
|
|
5
|
+
function s({
|
|
6
|
+
fontSize: t = "item",
|
|
7
|
+
children: i,
|
|
8
|
+
...n
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ r(p, { $fontSize: t, ...n, children: i });
|
|
11
|
+
}
|
|
12
|
+
const p = m.div.withConfig({
|
|
13
|
+
displayName: "TextStyled",
|
|
14
|
+
componentId: "sc-15vtjf7-0"
|
|
15
|
+
})(["", " padding:", " ", ";color:", ";"], (t) => t.$fontSize === "item" ? e.uiTextS : e.uiTextM, o.spacing3, o.spacing5, o.gray400);
|
|
16
|
+
export {
|
|
17
|
+
s as Text
|
|
18
|
+
};
|
package/Text4.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import r from "./styled-components.browser.esm.js";
|
|
3
|
+
import { textStyles as e } from "./textStyles.js";
|
|
4
|
+
import { token as i } from "./token.js";
|
|
5
|
+
import { internalTokens as p } from "./themes3.js";
|
|
6
|
+
function f({
|
|
7
|
+
children: t
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ o(n, { children: t });
|
|
10
|
+
}
|
|
11
|
+
const n = r.div.withConfig({
|
|
12
|
+
displayName: "StyledText",
|
|
13
|
+
componentId: "sc-juvpf5-0"
|
|
14
|
+
})(["", " padding-block:", ";color:", ";"], e.paragraphS, i.spacing3, p["tooltip-text-color"]);
|
|
15
|
+
export {
|
|
16
|
+
n as StyledText,
|
|
17
|
+
f as Text
|
|
18
|
+
};
|
package/Textarea.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as I } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as R, useRef as S } from "react";
|
|
3
|
+
import C, { css as O } from "./styled-components.browser.esm.js";
|
|
4
|
+
import { textStyles as z } from "./textStyles.js";
|
|
5
|
+
import { token as e } from "./token.js";
|
|
6
|
+
import { MINIMUM_ROWS as A, MAXIMUM_ROWS as B } from "./normalizeRows.js";
|
|
7
|
+
import { useAutoHeight as D } from "./useAutoHeight.js";
|
|
8
|
+
import { mergeRefs as N } from "./mergeRefs.js";
|
|
9
|
+
import { makeInternalTokens as U } from "./makeInternalTokens.js";
|
|
10
|
+
const J = R(({
|
|
11
|
+
id: a,
|
|
12
|
+
isDisabled: l = !1,
|
|
13
|
+
isReadOnly: d = !1,
|
|
14
|
+
isInvalid: i = !1,
|
|
15
|
+
onBlur: s,
|
|
16
|
+
onChange: o,
|
|
17
|
+
onFocus: n,
|
|
18
|
+
onKeyDown: b,
|
|
19
|
+
placeholder: c,
|
|
20
|
+
value: f,
|
|
21
|
+
"aria-label": x,
|
|
22
|
+
"aria-labelledby": g,
|
|
23
|
+
"aria-describedby": m,
|
|
24
|
+
minRows: h = A,
|
|
25
|
+
maxRows: u = B,
|
|
26
|
+
maxLength: p,
|
|
27
|
+
autoFocus: y = !1,
|
|
28
|
+
...T
|
|
29
|
+
}, v) => {
|
|
30
|
+
const t = S(null);
|
|
31
|
+
D(t, h, u);
|
|
32
|
+
function k(w) {
|
|
33
|
+
if (o) {
|
|
34
|
+
const M = w.currentTarget.value;
|
|
35
|
+
o(M);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return /* @__PURE__ */ I(
|
|
39
|
+
_,
|
|
40
|
+
{
|
|
41
|
+
value: f,
|
|
42
|
+
onChange: k,
|
|
43
|
+
id: a,
|
|
44
|
+
disabled: l,
|
|
45
|
+
readOnly: d,
|
|
46
|
+
$isInvalid: i,
|
|
47
|
+
"aria-label": x,
|
|
48
|
+
"aria-labelledby": g,
|
|
49
|
+
"aria-describedby": m,
|
|
50
|
+
onBlur: s,
|
|
51
|
+
onFocus: n,
|
|
52
|
+
onKeyDown: b,
|
|
53
|
+
placeholder: c,
|
|
54
|
+
autoComplete: "off",
|
|
55
|
+
autoCorrect: "off",
|
|
56
|
+
autoFocus: y,
|
|
57
|
+
ref: N(v, t),
|
|
58
|
+
maxLength: p,
|
|
59
|
+
...T
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}), {
|
|
63
|
+
internalTokens: r,
|
|
64
|
+
declareTokens: W
|
|
65
|
+
} = U({
|
|
66
|
+
lightTheme: {
|
|
67
|
+
"textarea-fill": e.gray10,
|
|
68
|
+
"textarea-fill-disabled": e.gray25,
|
|
69
|
+
"textarea-border": e.gray100,
|
|
70
|
+
"textarea-border-hover": e.gray200,
|
|
71
|
+
"textarea-border-focus": e.gray300,
|
|
72
|
+
"textarea-border-disabled": e.gray100,
|
|
73
|
+
"textarea-shadow-hover": e.elevation1,
|
|
74
|
+
"textarea-focus-ring": e.gray100
|
|
75
|
+
},
|
|
76
|
+
darkTheme: {
|
|
77
|
+
"textarea-fill": "transparent",
|
|
78
|
+
"textarea-fill-disabled": e.gray50a,
|
|
79
|
+
"textarea-border": e.gray200a,
|
|
80
|
+
"textarea-border-hover": e.gray300a,
|
|
81
|
+
"textarea-border-focus": e.gray400a,
|
|
82
|
+
"textarea-border-disabled": e.gray100a,
|
|
83
|
+
"textarea-shadow-hover": "none",
|
|
84
|
+
"textarea-focus-ring": e.gray300a
|
|
85
|
+
}
|
|
86
|
+
}), _ = C.textarea.withConfig({
|
|
87
|
+
displayName: "TextareaStyled",
|
|
88
|
+
componentId: "sc-tq6lgg-0"
|
|
89
|
+
})(["&&{", " display:block;box-sizing:border-box;width:100%;margin:0;padding:", " ", ";border:1px solid ", ";border-radius:", ";background:", ";color:", ";outline:none;font-family:", ";resize:none;transition:none;", " &::placeholder{color:", ";}&:hover{border-color:", ";box-shadow:", ";}&:focus{border-color:", ";box-shadow:0 0 0 3px ", ";}&:disabled{border-color:", ";background:", ";color:", ";box-shadow:none;&::placeholder{color:", ";}}", ";}"], W, e.spacing3, e.spacing5, r["textarea-border"], e.radiusBase, r["textarea-fill"], e.colorText, e.brandFontStackBase, z.paragraphM, e.colorTextDisabled, r["textarea-border-hover"], r["textarea-shadow-hover"], r["textarea-border-focus"], r["textarea-focus-ring"], r["textarea-border-disabled"], r["textarea-fill-disabled"], e.colorTextMuted, e.colorTextDisabled, (a) => a.$isInvalid && O(["border-color:", ";&:hover{border-color:", ";}&:focus{border-color:", ";}"], e.red500, e.red600, e.red500));
|
|
90
|
+
export {
|
|
91
|
+
J as Textarea
|
|
92
|
+
};
|
package/Theming.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css as n, createGlobalStyle as i } from "styled-components";
|
|
1
|
+
import { css as n, createGlobalStyle as i } from "./styled-components.browser.esm.js";
|
|
2
2
|
const c = (o) => ({
|
|
3
3
|
// Button component
|
|
4
4
|
"--componentButtonPrimaryBorderHover": o?.colorButtonPrimaryHover,
|
|
@@ -15,15 +15,15 @@ const c = (o) => ({
|
|
|
15
15
|
"--componentButtonPrimaryFillFocus": o?.colorButtonPrimary
|
|
16
16
|
}), u = i`${n`
|
|
17
17
|
.cv-root {
|
|
18
|
-
${(o) =>
|
|
18
|
+
${(o) => a(o.theme)}
|
|
19
19
|
}:
|
|
20
20
|
`}`;
|
|
21
|
-
function
|
|
21
|
+
function a(o) {
|
|
22
22
|
const r = c(o);
|
|
23
23
|
return Object.entries(r).map((t) => t.join(":")).join(";") + ";";
|
|
24
24
|
}
|
|
25
25
|
export {
|
|
26
26
|
u as ThemeStyles,
|
|
27
|
-
|
|
27
|
+
a as stringifyTheme,
|
|
28
28
|
c as themeVariables
|
|
29
29
|
};
|
package/Thumb.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { ThumbContainer as p, ThumbCircle as u } from "./styles.js";
|
|
3
|
+
import { Tooltip as d } from "./Tooltip2.js";
|
|
4
|
+
import { getThumbPosition as f } from "./getThumbPosition.js";
|
|
5
|
+
function C({
|
|
6
|
+
min: t,
|
|
7
|
+
max: r,
|
|
8
|
+
value: i,
|
|
9
|
+
isTooltipOpen: e,
|
|
10
|
+
inputPosition: s,
|
|
11
|
+
isInactive: m,
|
|
12
|
+
isDisabled: o
|
|
13
|
+
}) {
|
|
14
|
+
const a = f(t, r, i);
|
|
15
|
+
return /* @__PURE__ */ l(p, { $isInactive: m, $isDisabled: o, style: h(a), "data-testid": "ds-slider-thumb", children: [
|
|
16
|
+
/* @__PURE__ */ n(u, { $isDisabled: o }),
|
|
17
|
+
s === "none" && /* @__PURE__ */ n(d, { isOpen: e, content: i, position: "top-center", children: (c) => /* @__PURE__ */ n("div", { ...c }) })
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
function h(t) {
|
|
21
|
+
return {
|
|
22
|
+
left: t,
|
|
23
|
+
transform: `translateY(-50%) translateX(calc(${t} * -1))`
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
C as Thumb
|
|
28
|
+
};
|
package/Thumbnail.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import s, { css as y } from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as t } from "./token.js";
|
|
4
|
+
import { pointerEventsClassname as p, Overlay as C } from "./Overlay.js";
|
|
5
|
+
import { GAP as b, INDICATORS_VALUES as I } from "./constants2.js";
|
|
6
|
+
import { Indicator as $ } from "./Indicator.js";
|
|
7
|
+
import { Status as k } from "./Status.js";
|
|
8
|
+
import { useId as S } from "./useId.js";
|
|
9
|
+
function M({
|
|
10
|
+
size: h = "m",
|
|
11
|
+
shape: v = "square",
|
|
12
|
+
variant: n = "clean",
|
|
13
|
+
icon: z,
|
|
14
|
+
imageUrl: o,
|
|
15
|
+
backgroundColor: a,
|
|
16
|
+
iconColor: l,
|
|
17
|
+
children: x,
|
|
18
|
+
...g
|
|
19
|
+
}) {
|
|
20
|
+
const d = n === "content", c = n === "clean", w = a ? t[a] || a : c ? t.gray50a : !a && !o ? t.white : "transparent", H = c ? t[l] || l || t.gray600 : void 0, r = v === "circle" ? "50%" : n === "preview" ? "0" : "5px", m = S("thumbnail-mask");
|
|
21
|
+
return /* @__PURE__ */ e(N, { $size: h, $shape: v, className: p, style: {
|
|
22
|
+
"--ds-thumbnail-border-radius": r
|
|
23
|
+
}, ...g, children: [
|
|
24
|
+
/* @__PURE__ */ e(j, { role: "none", children: [
|
|
25
|
+
/* @__PURE__ */ e("mask", { id: m, children: [
|
|
26
|
+
/* @__PURE__ */ i("rect", { fill: "white", x: "0", y: "0", width: "100%", height: "100%", rx: r }),
|
|
27
|
+
/* @__PURE__ */ i(A, {})
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ e("g", { mask: `url(#${m})`, children: [
|
|
30
|
+
d && /* @__PURE__ */ i(R, {}),
|
|
31
|
+
/* @__PURE__ */ i("rect", { fill: w, x: "0", y: "0", width: "100%", height: "100%", rx: r, "data-testid": "ds-thumbnail-fill" }),
|
|
32
|
+
o && /* @__PURE__ */ i("image", { x: "0", y: "0", width: "100%", height: "100%", preserveAspectRatio: `xMidYMid ${n === "preview" ? "meet" : "slice"}`, xlinkHref: o, "data-testid": "ds-thumbnail-image" }),
|
|
33
|
+
d && /* @__PURE__ */ i("rect", { fill: "none", x: "0", y: "0", width: "100%", height: "100%", stroke: "rgba(0,0,0,0.1)", strokeWidth: "2", rx: r, "data-testid": "ds-thumbnail-inner-shadow" })
|
|
34
|
+
] })
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ e(E, { $iconColor: H, $size: h, "data-testid": "ds-thumbnail-content", children: [
|
|
37
|
+
z,
|
|
38
|
+
d && !a && !o && /* @__PURE__ */ i(O, { "data-testid": "ds-thumbnail-no-image-line" })
|
|
39
|
+
] }),
|
|
40
|
+
x
|
|
41
|
+
] });
|
|
42
|
+
}
|
|
43
|
+
M.Overlay = C;
|
|
44
|
+
M.pointerEventsClassname = p;
|
|
45
|
+
M.Indicator = $;
|
|
46
|
+
M.Status = k;
|
|
47
|
+
const u = {
|
|
48
|
+
xs: "24px",
|
|
49
|
+
s: "32px",
|
|
50
|
+
m: "40px",
|
|
51
|
+
l: "64px"
|
|
52
|
+
}, N = s.div.withConfig({
|
|
53
|
+
displayName: "ThumbnailContainer",
|
|
54
|
+
componentId: "sc-womslj-0"
|
|
55
|
+
})(["position:relative;flex:none;width:", ";height:", ";&:has([data-thumbnail-status]){", "}&:has([data-thumbnail-indicator]){", "}"], (h) => u[h.$size], (h) => u[h.$size], f("status"), f("indicator"));
|
|
56
|
+
function f(h) {
|
|
57
|
+
return (v) => {
|
|
58
|
+
const {
|
|
59
|
+
radius: n,
|
|
60
|
+
offset: z
|
|
61
|
+
} = I[h][v.$shape][v.$size];
|
|
62
|
+
return y(["--ds-thumbnail-indicator-offset-x:", "px;--ds-thumbnail-indicator-offset-y:", "px;--ds-thumbnail-indicator-radius:", "px;--ds-thumbnail-overlay-indicator-cutout:-webkit-radial-gradient( calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var( --ds-thumbnail-indicator-offset-x ) ) ) calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var( --ds-thumbnail-indicator-offset-y ) ) ),circle,transparent calc(var(--ds-thumbnail-indicator-radius) + ", "px),black 0 );--ds-thumbnail-indicator-color:black;"], z[0], z[1], n, b);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
const j = s.svg.withConfig({
|
|
66
|
+
displayName: "Svg",
|
|
67
|
+
componentId: "sc-womslj-1"
|
|
68
|
+
})(["position:absolute;top:0;left:0;width:100%;height:100%;"]), A = s.circle.withConfig({
|
|
69
|
+
displayName: "Cutout",
|
|
70
|
+
componentId: "sc-womslj-2"
|
|
71
|
+
})(["fill:var(--ds-thumbnail-indicator-color,white);cx:calc(100% - var(--ds-thumbnail-indicator-radius) + var(--ds-thumbnail-indicator-offset-x));cy:calc(100% - var(--ds-thumbnail-indicator-radius) + var(--ds-thumbnail-indicator-offset-y));r:calc(var(--ds-thumbnail-indicator-radius) + ", "px);"], b), T = {
|
|
72
|
+
xs: t.fontSize100,
|
|
73
|
+
s: t.fontSize200,
|
|
74
|
+
m: t.fontSize500,
|
|
75
|
+
l: t.fontSize500
|
|
76
|
+
}, E = s.div.withConfig({
|
|
77
|
+
displayName: "Content",
|
|
78
|
+
componentId: "sc-womslj-3"
|
|
79
|
+
})(["position:absolute;inset:0;display:grid;place-items:center;color:", ";font-weight:600;font-size:", ";line-height:1;"], (h) => h.$iconColor, (h) => T[h.$size]), O = s.div.withConfig({
|
|
80
|
+
displayName: "NoImage",
|
|
81
|
+
componentId: "sc-womslj-4"
|
|
82
|
+
})(["width:80%;height:2px;border-radius:2px;background:", ";transform:rotate(-45deg);"], t.red500);
|
|
83
|
+
function R() {
|
|
84
|
+
return /* @__PURE__ */ e("g", { children: [
|
|
85
|
+
/* @__PURE__ */ i("rect", { height: "64", width: "64", x: "0", y: "0", fill: "#ffffff" }),
|
|
86
|
+
/* @__PURE__ */ i("path", { fill: "#e9ecee", d: "M0 0h4v4H0zM0 8h4v4H0zM0 16h4v4H0zM0 24h4v4H0zM0 32h4v4H0zM0 40h4v4H0zM0 48h4v4H0zM0 56h4v4H0zM4 4h4v4H4zM4 12h4v4H4zM4 20h4v4H4zM4 28h4v4H4zM4 36h4v4H4zM4 44h4v4H4zM4 52h4v4H4zM4 60h4v4H4zM8 0h4v4H8zM8 8h4v4H8zM8 16h4v4H8zM8 24h4v4H8zM8 32h4v4H8zM8 40h4v4H8zM8 48h4v4H8zM8 56h4v4H8zM12 4h4v4h-4zM12 12h4v4h-4zM12 20h4v4h-4zM12 28h4v4h-4zM12 36h4v4h-4zM12 44h4v4h-4zM12 52h4v4h-4zM12 60h4v4h-4zM16 0h4v4h-4zM16 8h4v4h-4zM16 16h4v4h-4zM16 24h4v4h-4zM16 32h4v4h-4zM16 40h4v4h-4zM16 48h4v4h-4zM16 56h4v4h-4zM20 4h4v4h-4zM20 12h4v4h-4zM20 20h4v4h-4zM20 28h4v4h-4zM20 36h4v4h-4zM20 44h4v4h-4zM20 52h4v4h-4zM20 60h4v4h-4zM24 0h4v4h-4zM24 8h4v4h-4zM24 16h4v4h-4zM24 24h4v4h-4zM24 32h4v4h-4zM24 40h4v4h-4zM24 48h4v4h-4zM24 56h4v4h-4zM28 4h4v4h-4zM28 12h4v4h-4zM28 20h4v4h-4zM28 28h4v4h-4zM28 36h4v4h-4zM28 44h4v4h-4zM28 52h4v4h-4zM28 60h4v4h-4zM32 0h4v4h-4zM32 8h4v4h-4zM32 16h4v4h-4zM32 24h4v4h-4zM32 32h4v4h-4zM32 40h4v4h-4zM32 48h4v4h-4zM32 56h4v4h-4zM36 4h4v4h-4zM36 12h4v4h-4zM36 20h4v4h-4zM36 28h4v4h-4zM36 36h4v4h-4zM36 44h4v4h-4zM36 52h4v4h-4zM36 60h4v4h-4zM40 0h4v4h-4zM40 8h4v4h-4zM40 16h4v4h-4zM40 24h4v4h-4zM40 32h4v4h-4zM40 40h4v4h-4zM40 48h4v4h-4zM40 56h4v4h-4zM44 4h4v4h-4zM44 12h4v4h-4zM44 20h4v4h-4zM44 28h4v4h-4zM44 36h4v4h-4zM44 44h4v4h-4zM44 52h4v4h-4zM44 60h4v4h-4zM48 0h4v4h-4zM48 8h4v4h-4zM48 16h4v4h-4zM48 24h4v4h-4zM48 32h4v4h-4zM48 40h4v4h-4zM48 48h4v4h-4zM48 56h4v4h-4zM52 4h4v4h-4zM52 12h4v4h-4zM52 20h4v4h-4zM52 28h4v4h-4zM52 36h4v4h-4zM52 44h4v4h-4zM52 52h4v4h-4zM52 60h4v4h-4zM56 0h4v4h-4zM56 8h4v4h-4zM56 16h4v4h-4zM56 24h4v4h-4zM56 32h4v4h-4zM56 40h4v4h-4zM56 48h4v4h-4zM56 56h4v4h-4zM60 4h4v4h-4zM60 12h4v4h-4zM60 20h4v4h-4zM60 28h4v4h-4zM60 36h4v4h-4zM60 44h4v4h-4zM60 52h4v4h-4zM60 60h4v4h-4z" })
|
|
87
|
+
] });
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
M as Thumbnail
|
|
91
|
+
};
|
package/Tokenizer.js
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { assign as p, strlen as x, charat as h, trim as j, from as q, substr as z, append as A } from "./Utility.js";
|
|
2
|
+
var u = 1, a = 1, b = 0, r = 0, n = 0, t = "";
|
|
3
|
+
function B(e, c, m, g, k, w, d, v) {
|
|
4
|
+
return { value: e, root: c, parent: m, type: g, props: k, children: w, line: u, column: a, length: d, return: "", siblings: v };
|
|
5
|
+
}
|
|
6
|
+
function C(e, c) {
|
|
7
|
+
return p(B("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, c);
|
|
8
|
+
}
|
|
9
|
+
function F(e) {
|
|
10
|
+
for (; e.root; )
|
|
11
|
+
e = C(e.root, { children: [e] });
|
|
12
|
+
A(e, e.siblings);
|
|
13
|
+
}
|
|
14
|
+
function G() {
|
|
15
|
+
return n;
|
|
16
|
+
}
|
|
17
|
+
function H() {
|
|
18
|
+
return n = r > 0 ? h(t, --r) : 0, a--, n === 10 && (a = 1, u--), n;
|
|
19
|
+
}
|
|
20
|
+
function i() {
|
|
21
|
+
return n = r < b ? h(t, r++) : 0, a++, n === 10 && (a = 1, u++), n;
|
|
22
|
+
}
|
|
23
|
+
function s() {
|
|
24
|
+
return h(t, r);
|
|
25
|
+
}
|
|
26
|
+
function D() {
|
|
27
|
+
return r;
|
|
28
|
+
}
|
|
29
|
+
function l(e, c) {
|
|
30
|
+
return z(t, e, c);
|
|
31
|
+
}
|
|
32
|
+
function f(e) {
|
|
33
|
+
switch (e) {
|
|
34
|
+
// \0 \t \n \r \s whitespace token
|
|
35
|
+
case 0:
|
|
36
|
+
case 9:
|
|
37
|
+
case 10:
|
|
38
|
+
case 13:
|
|
39
|
+
case 32:
|
|
40
|
+
return 5;
|
|
41
|
+
// ! + , / > @ ~ isolate token
|
|
42
|
+
case 33:
|
|
43
|
+
case 43:
|
|
44
|
+
case 44:
|
|
45
|
+
case 47:
|
|
46
|
+
case 62:
|
|
47
|
+
case 64:
|
|
48
|
+
case 126:
|
|
49
|
+
// ; { } breakpoint token
|
|
50
|
+
case 59:
|
|
51
|
+
case 123:
|
|
52
|
+
case 125:
|
|
53
|
+
return 4;
|
|
54
|
+
// : accompanied token
|
|
55
|
+
case 58:
|
|
56
|
+
return 3;
|
|
57
|
+
// " ' ( [ opening delimit token
|
|
58
|
+
case 34:
|
|
59
|
+
case 39:
|
|
60
|
+
case 40:
|
|
61
|
+
case 91:
|
|
62
|
+
return 2;
|
|
63
|
+
// ) ] closing delimit token
|
|
64
|
+
case 41:
|
|
65
|
+
case 93:
|
|
66
|
+
return 1;
|
|
67
|
+
}
|
|
68
|
+
return 0;
|
|
69
|
+
}
|
|
70
|
+
function I(e) {
|
|
71
|
+
return u = a = 1, b = x(t = e), r = 0, [];
|
|
72
|
+
}
|
|
73
|
+
function J(e) {
|
|
74
|
+
return t = "", e;
|
|
75
|
+
}
|
|
76
|
+
function K(e) {
|
|
77
|
+
return j(l(r - 1, o(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
78
|
+
}
|
|
79
|
+
function L(e) {
|
|
80
|
+
for (; (n = s()) && n < 33; )
|
|
81
|
+
i();
|
|
82
|
+
return f(e) > 2 || f(n) > 3 ? "" : " ";
|
|
83
|
+
}
|
|
84
|
+
function M(e, c) {
|
|
85
|
+
for (; --c && i() && !(n < 48 || n > 102 || n > 57 && n < 65 || n > 70 && n < 97); )
|
|
86
|
+
;
|
|
87
|
+
return l(e, D() + (c < 6 && s() == 32 && i() == 32));
|
|
88
|
+
}
|
|
89
|
+
function o(e) {
|
|
90
|
+
for (; i(); )
|
|
91
|
+
switch (n) {
|
|
92
|
+
// ] ) " '
|
|
93
|
+
case e:
|
|
94
|
+
return r;
|
|
95
|
+
// " '
|
|
96
|
+
case 34:
|
|
97
|
+
case 39:
|
|
98
|
+
e !== 34 && e !== 39 && o(n);
|
|
99
|
+
break;
|
|
100
|
+
// (
|
|
101
|
+
case 40:
|
|
102
|
+
e === 41 && o(e);
|
|
103
|
+
break;
|
|
104
|
+
// \
|
|
105
|
+
case 92:
|
|
106
|
+
i();
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
return r;
|
|
110
|
+
}
|
|
111
|
+
function N(e, c) {
|
|
112
|
+
for (; i() && e + n !== 57; )
|
|
113
|
+
if (e + n === 84 && s() === 47)
|
|
114
|
+
break;
|
|
115
|
+
return "/*" + l(c, r - 1) + "*" + q(e === 47 ? e : i());
|
|
116
|
+
}
|
|
117
|
+
function O(e) {
|
|
118
|
+
for (; !f(s()); )
|
|
119
|
+
i();
|
|
120
|
+
return l(e, r);
|
|
121
|
+
}
|
|
122
|
+
export {
|
|
123
|
+
I as alloc,
|
|
124
|
+
D as caret,
|
|
125
|
+
G as char,
|
|
126
|
+
n as character,
|
|
127
|
+
t as characters,
|
|
128
|
+
a as column,
|
|
129
|
+
N as commenter,
|
|
130
|
+
C as copy,
|
|
131
|
+
J as dealloc,
|
|
132
|
+
K as delimit,
|
|
133
|
+
o as delimiter,
|
|
134
|
+
M as escaping,
|
|
135
|
+
O as identifier,
|
|
136
|
+
b as length,
|
|
137
|
+
F as lift,
|
|
138
|
+
u as line,
|
|
139
|
+
i as next,
|
|
140
|
+
B as node,
|
|
141
|
+
s as peek,
|
|
142
|
+
r as position,
|
|
143
|
+
H as prev,
|
|
144
|
+
l as slice,
|
|
145
|
+
f as token,
|
|
146
|
+
L as whitespace
|
|
147
|
+
};
|
package/Toolbar.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs as n, Fragment as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import m from "styled-components";
|
|
3
|
-
import { IconExitApp as u, IconCancel as f } from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import m from "./styled-components.browser.esm.js";
|
|
3
|
+
import { IconExitApp as u, IconCancel as f } from "./index4.js";
|
|
4
|
+
import { Button as a } from "./Button.js";
|
|
5
|
+
import { token as i } from "./token.js";
|
|
6
|
+
import { __ as l } from "./index2.js";
|
|
6
7
|
import { useIsLoggedIn as g, useAuth as h } from "./LoginContext.js";
|
|
7
8
|
import { useModalContext as x } from "./Modal.js";
|
|
8
9
|
import { SearchInput as C } from "./SearchInput.js";
|
|
@@ -10,40 +11,40 @@ import { ViewSwitch as I } from "./ViewSwitch.js";
|
|
|
10
11
|
import { useAssetFilter as v, useHideSwitch as w } from "./ConfigContext.js";
|
|
11
12
|
function z() {
|
|
12
13
|
const e = g(), t = x(), r = h(), s = v(), d = w(), c = s !== void 0 && !s.showToolbar;
|
|
13
|
-
return !e && !t && c ? null : /* @__PURE__ */ n(
|
|
14
|
+
return !e && !t && c ? null : /* @__PURE__ */ n(b, { children: [
|
|
14
15
|
!c && /* @__PURE__ */ n(p, { children: [
|
|
15
16
|
!d && /* @__PURE__ */ o(I, {}),
|
|
16
17
|
/* @__PURE__ */ o(C, {})
|
|
17
18
|
] }),
|
|
18
|
-
/* @__PURE__ */ n(
|
|
19
|
+
/* @__PURE__ */ n(k, { children: [
|
|
19
20
|
e && !r?.hideLogout && /* @__PURE__ */ o(
|
|
20
|
-
|
|
21
|
+
a,
|
|
21
22
|
{
|
|
22
23
|
variant: "clean",
|
|
23
24
|
onClick: () => r?.logout(),
|
|
24
25
|
rightIcon: /* @__PURE__ */ o(u, {}),
|
|
25
|
-
children:
|
|
26
|
+
children: l("Log out")
|
|
26
27
|
}
|
|
27
28
|
),
|
|
28
29
|
t && /* @__PURE__ */ o(
|
|
29
|
-
|
|
30
|
+
a,
|
|
30
31
|
{
|
|
31
32
|
variant: "clean",
|
|
32
33
|
onClick: () => t.onClose(),
|
|
33
|
-
title:
|
|
34
|
+
title: l("Close"),
|
|
34
35
|
icon: /* @__PURE__ */ o(f, {})
|
|
35
36
|
}
|
|
36
37
|
)
|
|
37
38
|
] })
|
|
38
39
|
] });
|
|
39
40
|
}
|
|
40
|
-
const
|
|
41
|
+
const b = m.nav`
|
|
41
42
|
display: flex;
|
|
42
43
|
justify-content: space-between;
|
|
43
44
|
background: ${i.gray10};
|
|
44
45
|
padding: ${i.spacing4} ${i.spacing4};
|
|
45
46
|
z-index: 30;
|
|
46
|
-
`,
|
|
47
|
+
`, k = m.div`
|
|
47
48
|
display: inline-flex;
|
|
48
49
|
margin-left: auto;
|
|
49
50
|
`;
|
package/Tooltip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as l, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { token as r } from "
|
|
2
|
+
import o from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as r } from "./token.js";
|
|
4
4
|
const b = ({
|
|
5
5
|
text: e,
|
|
6
6
|
position: t = "top",
|
package/Tooltip2.js
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { jsxs as T, Fragment as C, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useHover as O, useLayer as L } from "react-laag";
|
|
3
|
+
import p, { css as P } from "./styled-components.browser.esm.js";
|
|
4
|
+
import { useFocusRing as M } from "./useFocusRing.js";
|
|
5
|
+
import { LightTheme as S, DarkTheme as F } from "./themeContainers.js";
|
|
6
|
+
import { textStyles as m } from "./textStyles.js";
|
|
7
|
+
import { token as r } from "./token.js";
|
|
8
|
+
import { Flex as N } from "./Flex.js";
|
|
9
|
+
import { useZIndex as j } from "./useZIndex.js";
|
|
10
|
+
import { Image as B } from "./Image.js";
|
|
11
|
+
import { Text as H } from "./Text4.js";
|
|
12
|
+
import { ListItem as R } from "./ListItem4.js";
|
|
13
|
+
import { declareTokens as D, internalTokens as a } from "./themes3.js";
|
|
14
|
+
import { useId as E } from "./useId.js";
|
|
15
|
+
function d({
|
|
16
|
+
position: t = "top-center",
|
|
17
|
+
timing: e = "instant",
|
|
18
|
+
size: n = "small",
|
|
19
|
+
isLightTheme: i = !1,
|
|
20
|
+
className: f,
|
|
21
|
+
icon: g,
|
|
22
|
+
secondaryText: h,
|
|
23
|
+
badge: y,
|
|
24
|
+
content: I,
|
|
25
|
+
...s
|
|
26
|
+
}) {
|
|
27
|
+
const [$, b] = O({
|
|
28
|
+
delayEnter: e === "delay" ? 800 : 0
|
|
29
|
+
}), {
|
|
30
|
+
isFocusVisible: v,
|
|
31
|
+
focusProps: u
|
|
32
|
+
} = M(), w = j("tooltip"), c = s.isOpen === void 0 ? $ || v : s.isOpen, {
|
|
33
|
+
triggerProps: x,
|
|
34
|
+
layerProps: k,
|
|
35
|
+
renderLayer: z
|
|
36
|
+
} = L({
|
|
37
|
+
isOpen: c,
|
|
38
|
+
auto: !0,
|
|
39
|
+
snap: !0,
|
|
40
|
+
placement: V(t),
|
|
41
|
+
possiblePlacements: W(t),
|
|
42
|
+
triggerOffset: 8,
|
|
43
|
+
containerOffset: 8
|
|
44
|
+
}), l = E("tooltip");
|
|
45
|
+
return /* @__PURE__ */ T(C, { children: [
|
|
46
|
+
typeof s.children == "function" ? s.children({
|
|
47
|
+
...x,
|
|
48
|
+
...b,
|
|
49
|
+
...u,
|
|
50
|
+
"aria-describedby": c ? l : void 0
|
|
51
|
+
}) : /* @__PURE__ */ o("div", { "aria-describedby": c ? l : void 0, ...x, ...b, ...u, children: s.children }),
|
|
52
|
+
c && z(/* @__PURE__ */ o(Z, { isLightTheme: i, children: /* @__PURE__ */ o(q, { ...k, $zIndex: w, className: f, $size: n, id: l, role: "tooltip", children: /* @__PURE__ */ T(N, { alignItems: "center", gap: "3", children: [
|
|
53
|
+
g && /* @__PURE__ */ o(A, { $size: n, children: g }),
|
|
54
|
+
/* @__PURE__ */ o("div", { children: I }),
|
|
55
|
+
h && /* @__PURE__ */ o(G, { children: h }),
|
|
56
|
+
y
|
|
57
|
+
] }) }) }))
|
|
58
|
+
] });
|
|
59
|
+
}
|
|
60
|
+
function V(t) {
|
|
61
|
+
return {
|
|
62
|
+
"top-left": "top-start",
|
|
63
|
+
"top-center": "top-center",
|
|
64
|
+
"top-right": "top-end",
|
|
65
|
+
left: "left-center",
|
|
66
|
+
right: "right-center",
|
|
67
|
+
"bottom-left": "bottom-start",
|
|
68
|
+
"bottom-center": "bottom-center",
|
|
69
|
+
"bottom-right": "bottom-end"
|
|
70
|
+
}[t];
|
|
71
|
+
}
|
|
72
|
+
function W(t) {
|
|
73
|
+
const e = ["top-center", "bottom-center"], n = ["left-center", "right-center"], i = ["top-end", "top-start", "bottom-end", "bottom-start"];
|
|
74
|
+
return {
|
|
75
|
+
"top-left": i,
|
|
76
|
+
"top-center": e,
|
|
77
|
+
"top-right": i,
|
|
78
|
+
left: n,
|
|
79
|
+
right: n,
|
|
80
|
+
"bottom-left": i,
|
|
81
|
+
"bottom-center": e,
|
|
82
|
+
"bottom-right": i
|
|
83
|
+
}[t];
|
|
84
|
+
}
|
|
85
|
+
function Z({
|
|
86
|
+
isLightTheme: t,
|
|
87
|
+
children: e
|
|
88
|
+
}) {
|
|
89
|
+
return t ? /* @__PURE__ */ o(S, { children: e }) : /* @__PURE__ */ o(F, { children: e });
|
|
90
|
+
}
|
|
91
|
+
d.Image = B;
|
|
92
|
+
d.Text = H;
|
|
93
|
+
d.ListItem = R;
|
|
94
|
+
const q = p.div.withConfig({
|
|
95
|
+
displayName: "TooltipContainer",
|
|
96
|
+
componentId: "sc-10x22fh-0"
|
|
97
|
+
})(["--ds-tooltip-border-radius:", ";", " z-index:", ";display:flex;box-sizing:border-box;border-radius:var(--ds-tooltip-border-radius);background:", ";color:", ";box-shadow:", ";word-break:break-word;", ";"], r.radiusBase, D, (t) => t.$zIndex, a["tooltip-background"], a["tooltip-title-color"], a["tooltip-shadow"], (t) => {
|
|
98
|
+
if (t.$size === "small")
|
|
99
|
+
return P(["", " max-width:240px;padding:", " ", ";"], m.uiTextS, r.spacing3, r.spacing4);
|
|
100
|
+
if (t.$size === "medium")
|
|
101
|
+
return P(["", " max-width:256px;padding:", " ", ";"], m.uiTextM, r.spacing3, r.spacing5);
|
|
102
|
+
}), A = p.span.withConfig({
|
|
103
|
+
displayName: "IconContainer",
|
|
104
|
+
componentId: "sc-10x22fh-1"
|
|
105
|
+
})(["display:flex;align-items:center;width:24px;height:24px;margin-block:calc(", " * -1);margin-left:", ";"], r.spacing1, (t) => t.$size === "medium" ? `calc(${r.spacing3} * -1)` : `calc(${r.spacing2} * -1)`), G = p.span.withConfig({
|
|
106
|
+
displayName: "SecondaryTextContainer",
|
|
107
|
+
componentId: "sc-10x22fh-2"
|
|
108
|
+
})(["", " color:", ";"], m.uiTextS, a["tooltip-secondary-text-color"]);
|
|
109
|
+
export {
|
|
110
|
+
d as Tooltip
|
|
111
|
+
};
|