@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/FieldSelect.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import t from "styled-components";
|
|
3
|
-
import { token as l } from "
|
|
2
|
+
import t from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as l } from "./token.js";
|
|
4
4
|
import { Dropdown as f } from "./Dropdown.js";
|
|
5
5
|
import { __ as i } from "./index2.js";
|
|
6
6
|
import { useOrderingByPage as p } from "./useOrderingStore.js";
|
|
7
7
|
import { useRouterSelectors as g } from "./useRouterStore.js";
|
|
8
8
|
import { DropdownListItem as u } from "./DropdownListItem.js";
|
|
9
|
-
function
|
|
9
|
+
function $({ options: e }) {
|
|
10
10
|
const d = g.use.page(), [o, a] = p(d.page), s = {
|
|
11
11
|
CREATED_AT: i("Date added"),
|
|
12
12
|
NAME: i("Name"),
|
|
@@ -69,5 +69,5 @@ const S = t.ul`
|
|
|
69
69
|
color: ${(e) => e.$isDisabled ? "rgba(0, 34, 51, 0.5)" : "#212c40"};
|
|
70
70
|
`;
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
$ as FieldSelect
|
|
73
73
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import i from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as e } from "./token.js";
|
|
4
|
+
function p({
|
|
5
|
+
children: o,
|
|
6
|
+
...n
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ r(t, { ...n, children: /* @__PURE__ */ r(d, { children: o }) });
|
|
9
|
+
}
|
|
10
|
+
const t = i.div.withConfig({
|
|
11
|
+
displayName: "Placeholder",
|
|
12
|
+
componentId: "sc-1xjrejg-0"
|
|
13
|
+
})(["display:grid;place-items:center;min-height:100px;"]), d = i.div.withConfig({
|
|
14
|
+
displayName: "IconContainer",
|
|
15
|
+
componentId: "sc-1xjrejg-1"
|
|
16
|
+
})(["display:grid;place-items:center;width:60px;height:70px;border-radius:", ";background:", ";color:", ";"], e.brandRadiusBase, e.gray10, e.gray600);
|
|
17
|
+
export {
|
|
18
|
+
p as FilePlaceholder
|
|
19
|
+
};
|
package/FileSelector.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsxs as p, jsx as n, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import { useState as k, useRef as U, useEffect as I } from "react";
|
|
3
|
-
import a from "styled-components";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import a from "./styled-components.browser.esm.js";
|
|
4
|
+
import { IconCrop as E, IconAspectRatioOutline as R, IconImage as j } from "./index4.js";
|
|
5
|
+
import { Badge as N } from "./Badge.js";
|
|
6
|
+
import { token as o } from "./token.js";
|
|
6
7
|
import "./AssetCard.js";
|
|
7
8
|
import "./AssetList.js";
|
|
8
|
-
import "./
|
|
9
|
+
import "./Chip2.js";
|
|
9
10
|
import { Dropdown as V } from "./Dropdown.js";
|
|
10
11
|
import { DropdownListItem as $ } from "./DropdownListItem.js";
|
|
11
12
|
import "./MetapropertyFilterContent.js";
|
|
@@ -25,7 +26,7 @@ import { logger as M } from "./logger.js";
|
|
|
25
26
|
import { useAuth as q } from "./LoginContext.js";
|
|
26
27
|
import { isErr as G, isOk as J, ok as Q, err as W } from "./result.type.js";
|
|
27
28
|
import { getAsset as X } from "./getAsset.js";
|
|
28
|
-
import { getDefaultKey as Z, getUrlExtension as ee, splitByCamelCase as T, getHumanReadableFileSize as te } from "./
|
|
29
|
+
import { getDefaultKey as Z, getUrlExtension as ee, splitByCamelCase as T, getHumanReadableFileSize as te } from "./utils3.js";
|
|
29
30
|
import { normalizeFilesResponse as ie } from "./normalizeResponse.js";
|
|
30
31
|
import "./Dat.js";
|
|
31
32
|
import { DatDropdownItem as re } from "./DatDropdownItem.js";
|
|
@@ -46,7 +47,7 @@ async function ae(s) {
|
|
|
46
47
|
return W("Error retrieving asset files");
|
|
47
48
|
}
|
|
48
49
|
const A = "Custom transformation", c = "adaptiveVideo";
|
|
49
|
-
function
|
|
50
|
+
function et({ asset: s, onChange: m }) {
|
|
50
51
|
const [i, f] = k({ status: "Loading" }), [v, u] = k(!1), d = U(null), w = q(), { isSelected: S, NLSSearchText: O, isNLSSelected: z } = se(), {
|
|
51
52
|
assetFieldSelection: b,
|
|
52
53
|
noCache: F,
|
|
@@ -181,7 +182,7 @@ function Ze({ asset: s, onChange: m }) {
|
|
|
181
182
|
}
|
|
182
183
|
function le({ state: s }) {
|
|
183
184
|
return s.status === "Loading" ? /* @__PURE__ */ n(P, { width: 50 }) : s.status === "Data" ? /* @__PURE__ */ p(ce, { children: [
|
|
184
|
-
s.key === A && /* @__PURE__ */ n(
|
|
185
|
+
s.key === A && /* @__PURE__ */ n(E, {}),
|
|
185
186
|
T(s.key)
|
|
186
187
|
] }) : /* @__PURE__ */ n(B, { children: "Error" });
|
|
187
188
|
}
|
|
@@ -214,10 +215,10 @@ const de = a.div`
|
|
|
214
215
|
border-radius: 5px;
|
|
215
216
|
background-color: rgba(0, 34, 51, 0.05);
|
|
216
217
|
margin-right: ${o.spacing4};
|
|
217
|
-
`, pe = a(
|
|
218
|
+
`, pe = a(R)`
|
|
218
219
|
height: ${o.spacing6};
|
|
219
220
|
width: ${o.spacing6};
|
|
220
|
-
`, fe = a(
|
|
221
|
+
`, fe = a(j)`
|
|
221
222
|
height: ${o.spacing6};
|
|
222
223
|
width: ${o.spacing6};
|
|
223
224
|
`, ue = a.div`
|
|
@@ -246,5 +247,5 @@ const de = a.div`
|
|
|
246
247
|
z-index: 1000;
|
|
247
248
|
`;
|
|
248
249
|
export {
|
|
249
|
-
|
|
250
|
+
et as FileSelector
|
|
250
251
|
};
|
package/Flex.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import l from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as p } from "./token.js";
|
|
4
|
+
function m({
|
|
5
|
+
children: t,
|
|
6
|
+
direction: i = "row",
|
|
7
|
+
wrap: e = "nowrap",
|
|
8
|
+
justifyContent: o = "flex-start",
|
|
9
|
+
alignItems: n = "stretch",
|
|
10
|
+
gap: r,
|
|
11
|
+
...a
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ d(s, { $direction: i, $wrap: e, $justifyContent: o, $alignItems: n, $gap: r, ...a, children: t });
|
|
14
|
+
}
|
|
15
|
+
const s = l.div.withConfig({
|
|
16
|
+
displayName: "FlexStyled",
|
|
17
|
+
componentId: "sc-1qk7dea-0"
|
|
18
|
+
})(["display:flex;flex-direction:", ";flex-wrap:", ";gap:", ";justify-content:", ";align-items:", ";box-sizing:border-box;width:100%;height:100%;"], (t) => t.$direction, (t) => t.$wrap, (t) => t.$gap ? p[`spacing${t.$gap}`] : void 0, (t) => t.$justifyContent, (t) => t.$alignItems);
|
|
19
|
+
export {
|
|
20
|
+
m as Flex
|
|
21
|
+
};
|
package/FontPicker.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { jsxs as d, Fragment as z, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useId as L, useState as A, useMemo as H, useEffect as v, useCallback as x } from "react";
|
|
3
|
+
import { produce as J } from "./immer.js";
|
|
4
|
+
import { useTranslate as K, Translate as u } from "./index6.js";
|
|
5
|
+
import { Form as b } from "./Form.js";
|
|
6
|
+
import { Select as i } from "./Select.js";
|
|
7
|
+
import { useFonts as O } from "./useFonts.js";
|
|
8
|
+
function Z({
|
|
9
|
+
familyLabel: C,
|
|
10
|
+
subfamilyLabel: w,
|
|
11
|
+
initialFamilyId: M,
|
|
12
|
+
initialSubfamilyId: j,
|
|
13
|
+
hideSubfamily: D = !1,
|
|
14
|
+
onSelectFamily: h,
|
|
15
|
+
onSelectSubfamily: p,
|
|
16
|
+
filterOutItalics: G = !1
|
|
17
|
+
}) {
|
|
18
|
+
const { translate: o } = K(), y = L(), k = L(), N = o("fontmanager.picker.default-family-label"), _ = o("fontmanager.picker.default-subfamily-label"), [g, S] = A(""), {
|
|
19
|
+
portal: s,
|
|
20
|
+
global: c,
|
|
21
|
+
selectedFamily: a,
|
|
22
|
+
selectedSubfamily: r,
|
|
23
|
+
setSelectedFamily: T,
|
|
24
|
+
setSelectedSubfamily: f,
|
|
25
|
+
searchFonts: F
|
|
26
|
+
} = O({ initialFamilyId: M, initialSubfamilyId: j, filterOutItalics: G }), I = H(() => new Map(s.concat(c).map((e) => [e.id, e])), [s, c]);
|
|
27
|
+
v(() => {
|
|
28
|
+
F(g);
|
|
29
|
+
}, [g, F]), v(() => {
|
|
30
|
+
h && a && h(a);
|
|
31
|
+
}, [a, h]), v(() => {
|
|
32
|
+
p && r && p(r);
|
|
33
|
+
}, [r, p]);
|
|
34
|
+
const B = x(
|
|
35
|
+
(e) => {
|
|
36
|
+
var n, t;
|
|
37
|
+
const m = I.get(e);
|
|
38
|
+
m && (T(m), (n = m.subfamilies) != null && n[0] && f((t = m.subfamilies) == null ? void 0 : t[0]));
|
|
39
|
+
},
|
|
40
|
+
[I, T, f]
|
|
41
|
+
), E = x(
|
|
42
|
+
(e) => {
|
|
43
|
+
const n = a?.subfamilies.find((t) => t.id === e);
|
|
44
|
+
n && f(n);
|
|
45
|
+
},
|
|
46
|
+
[a, f]
|
|
47
|
+
);
|
|
48
|
+
function P() {
|
|
49
|
+
S("");
|
|
50
|
+
}
|
|
51
|
+
const q = J(a?.subfamilies || [], (e) => {
|
|
52
|
+
e.sort((n, t) => Number(n.weight) - Number(t.weight));
|
|
53
|
+
});
|
|
54
|
+
return /* @__PURE__ */ d(z, { children: [
|
|
55
|
+
/* @__PURE__ */ d(b.Group, { children: [
|
|
56
|
+
/* @__PURE__ */ l(b.Label, { id: y, children: C ?? N }),
|
|
57
|
+
/* @__PURE__ */ d(
|
|
58
|
+
i,
|
|
59
|
+
{
|
|
60
|
+
"aria-labelledby": y,
|
|
61
|
+
label: a?.name,
|
|
62
|
+
onChange: B,
|
|
63
|
+
value: a?.id || "",
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ l(
|
|
66
|
+
i.SearchInput,
|
|
67
|
+
{
|
|
68
|
+
value: g,
|
|
69
|
+
onChange: S,
|
|
70
|
+
onBlur: P,
|
|
71
|
+
placeholder: o("fontmanager.picker.fonts.placeholder-search"),
|
|
72
|
+
"aria-label": o("fontmanager.picker.fonts.aria-label-search")
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ l(i.SectionTitle, { children: /* @__PURE__ */ l(u, { id: "fontmanager.picker.fonts.uploaded-fonts" }) }),
|
|
76
|
+
s.map(({ id: e, name: n }) => /* @__PURE__ */ l(i.Item, { value: e, children: n }, e)),
|
|
77
|
+
s.length === 0 && /* @__PURE__ */ l(i.Text, { children: /* @__PURE__ */ l(u, { id: "fontmanager.picker.fonts.no-fonts" }) }),
|
|
78
|
+
/* @__PURE__ */ l(i.Divider, {}),
|
|
79
|
+
/* @__PURE__ */ l(i.SectionTitle, { children: /* @__PURE__ */ l(u, { id: "fontmanager.picker.fonts.available-fonts" }) }),
|
|
80
|
+
c.map(({ id: e, name: n }) => /* @__PURE__ */ l(i.Item, { value: e, children: n }, e)),
|
|
81
|
+
c.length === 0 && /* @__PURE__ */ l(i.Text, { children: /* @__PURE__ */ l(u, { id: "fontmanager.picker.fonts.no-fonts" }) })
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }),
|
|
86
|
+
!D && /* @__PURE__ */ d(b.Group, { children: [
|
|
87
|
+
/* @__PURE__ */ l(b.Label, { id: k, children: w ?? _ }),
|
|
88
|
+
/* @__PURE__ */ l(
|
|
89
|
+
i,
|
|
90
|
+
{
|
|
91
|
+
"aria-labelledby": k,
|
|
92
|
+
label: r?.name,
|
|
93
|
+
onChange: E,
|
|
94
|
+
value: r?.id || "",
|
|
95
|
+
isDisabled: a?.subfamilies.length === 0,
|
|
96
|
+
children: q.map(({ id: e, name: n }) => /* @__PURE__ */ l(i.Item, { value: e, children: n }, e))
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] })
|
|
100
|
+
] });
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
Z as FontPicker
|
|
104
|
+
};
|
package/Footer.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import n from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as o } from "./token.js";
|
|
4
|
+
function m({
|
|
5
|
+
children: r,
|
|
6
|
+
...i
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ t(a, { ...i, children: r });
|
|
9
|
+
}
|
|
10
|
+
const a = n.div.withConfig({
|
|
11
|
+
displayName: "FooterContainer",
|
|
12
|
+
componentId: "sc-109ca6m-0"
|
|
13
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(40%,1fr));gap:", ";box-sizing:border-box;padding:", " ", ";border-top:1px solid ", ";background-color:", ";"], o.spacing4, o.spacing5, o.spacing6, o.gray100a, o.white);
|
|
14
|
+
export {
|
|
15
|
+
m as Footer
|
|
16
|
+
};
|
package/Form.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { IconError as e } from "./index4.js";
|
|
3
|
+
import { Group as f } from "./Group.js";
|
|
4
|
+
import { HelperText as i } from "./HelperText.js";
|
|
5
|
+
import { Label as n } from "./Label.js";
|
|
6
|
+
import { Row as u } from "./Row.js";
|
|
7
|
+
import { InputRow as l } from "./InputRow.js";
|
|
8
|
+
function r({
|
|
9
|
+
children: o,
|
|
10
|
+
onSubmit: m,
|
|
11
|
+
...p
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ t("form", { onSubmit: m, ...p, children: o });
|
|
14
|
+
}
|
|
15
|
+
r.Group = f;
|
|
16
|
+
r.HelperText = i;
|
|
17
|
+
r.Label = n;
|
|
18
|
+
r.Row = u;
|
|
19
|
+
r.InputRow = l;
|
|
20
|
+
r.IconError = e;
|
|
21
|
+
export {
|
|
22
|
+
r as Form
|
|
23
|
+
};
|
package/FormData.js
ADDED
package/Frame.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsxs as a, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import o, { css as d } from "./styled-components.browser.esm.js";
|
|
3
|
+
import { Badge as m } from "./Badge.js";
|
|
4
|
+
import { token as r } from "./token.js";
|
|
5
|
+
import { useCardContext as g } from "./context.js";
|
|
6
|
+
function S({
|
|
7
|
+
children: e,
|
|
8
|
+
progressBar: n,
|
|
9
|
+
badge: t,
|
|
10
|
+
icon: c,
|
|
11
|
+
isCheckeredBackground: p = !1,
|
|
12
|
+
height: s = "fixed",
|
|
13
|
+
...h
|
|
14
|
+
}) {
|
|
15
|
+
const {
|
|
16
|
+
variant: l,
|
|
17
|
+
isSelected: f
|
|
18
|
+
} = g();
|
|
19
|
+
return /* @__PURE__ */ a(v, { $isCheckeredBackground: p, $height: s, ...h, children: [
|
|
20
|
+
l === "clean" && f && /* @__PURE__ */ i(b, {}),
|
|
21
|
+
/* @__PURE__ */ i(u, { $height: s, children: e }),
|
|
22
|
+
/* @__PURE__ */ i(C, {}),
|
|
23
|
+
/* @__PURE__ */ a(w, { children: [
|
|
24
|
+
/* @__PURE__ */ a(x, { children: [
|
|
25
|
+
c ? /* @__PURE__ */ i(k, { children: c }) : null,
|
|
26
|
+
t ? /* @__PURE__ */ i(y, { children: typeof t == "string" ? /* @__PURE__ */ i(m, { color: "black-alpha", children: t }) : t }) : null
|
|
27
|
+
] }),
|
|
28
|
+
n ? /* @__PURE__ */ i(F, { $variant: l, children: n }) : null
|
|
29
|
+
] })
|
|
30
|
+
] });
|
|
31
|
+
}
|
|
32
|
+
const v = o.div.withConfig({
|
|
33
|
+
displayName: "FrameStyled",
|
|
34
|
+
componentId: "sc-13dpc3f-0"
|
|
35
|
+
})(["position:relative;min-height:92px;border-radius:var(--card-frame-border-radius);background:", ";", ""], (e) => e.$isCheckeredBackground ? `url("data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='12' width='12' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='6' width='6' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='6' width='6' y='6' x='6' fill='%23e9ecee'/%3E%3C/svg%3E%0A") ` : r.gray25, (e) => e.$height === "fixed" && d(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"])), b = o.div.withConfig({
|
|
36
|
+
displayName: "FocusRing",
|
|
37
|
+
componentId: "sc-13dpc3f-1"
|
|
38
|
+
})(["position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:var(--card-selected-border-width) solid var(--card-selected-border-color);border-radius:calc(var(--card-border-radius) + 4px);"]), u = o.div.withConfig({
|
|
39
|
+
displayName: "Children",
|
|
40
|
+
componentId: "sc-13dpc3f-2"
|
|
41
|
+
})(["", " display:grid;overflow:hidden;border-radius:var(--card-frame-border-radius);"], (e) => e.$height === "fixed" && d(["position:absolute;inset:0;"])), C = o.div.withConfig({
|
|
42
|
+
displayName: "Overlay",
|
|
43
|
+
componentId: "sc-13dpc3f-3"
|
|
44
|
+
})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:var(--card-inner-border-width) solid var(--card-inner-border-color);border-bottom-width:var(--card-frame-border-bottom-width);border-radius:var(--card-frame-border-radius);background:var(--card-frame-overlay-color);"]), w = o.div.withConfig({
|
|
45
|
+
displayName: "FrameFooter",
|
|
46
|
+
componentId: "sc-13dpc3f-4"
|
|
47
|
+
})(["position:absolute;right:0;bottom:", ";left:0;display:flex;flex-direction:column;gap:", ";"], r.spacing4, r.spacing3), x = o.div.withConfig({
|
|
48
|
+
displayName: "FrameFooterContent",
|
|
49
|
+
componentId: "sc-13dpc3f-5"
|
|
50
|
+
})(["display:flex;padding:0 ", ";"], r.spacing4), y = o.div.withConfig({
|
|
51
|
+
displayName: "BadgeContainer",
|
|
52
|
+
componentId: "sc-13dpc3f-6"
|
|
53
|
+
})(["margin-left:auto;"]), k = o.div.withConfig({
|
|
54
|
+
displayName: "IconContainer",
|
|
55
|
+
componentId: "sc-13dpc3f-7"
|
|
56
|
+
})(["color:", ";path{stroke:", ";stroke-width:2px;paint-order:stroke;&[d='M0 0h24v24H0z']{stroke:none;}}"], r.white, r.gray100a), F = o.div.withConfig({
|
|
57
|
+
displayName: "ProgressContainer",
|
|
58
|
+
componentId: "sc-13dpc3f-8"
|
|
59
|
+
})(["", ""], ({
|
|
60
|
+
$variant: e
|
|
61
|
+
}) => e === "clean" ? d(["position:relative;padding:0 ", ";"], r.spacing4) : d(["position:absolute;right:0;bottom:calc(", " * -1);left:0;"], r.spacing4));
|
|
62
|
+
export {
|
|
63
|
+
S as Frame
|
|
64
|
+
};
|
package/Group.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import p from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as i } from "./token.js";
|
|
4
|
+
import { GroupContext as n } from "./useGroupContext.js";
|
|
5
|
+
function a({
|
|
6
|
+
children: r,
|
|
7
|
+
...t
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ o(n.Provider, { value: "group", children: /* @__PURE__ */ o(e, { ...t, children: r }) });
|
|
10
|
+
}
|
|
11
|
+
const e = p.div.withConfig({
|
|
12
|
+
displayName: "GroupStyled",
|
|
13
|
+
componentId: "sc-1gmxpcl-0"
|
|
14
|
+
})(["margin:0;padding:", " 0;border:0;"], i.spacing3);
|
|
15
|
+
export {
|
|
16
|
+
a as Group
|
|
17
|
+
};
|
package/Group2.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import c from "./styled-components.browser.esm.js";
|
|
3
|
+
import { token as e } from "./token.js";
|
|
4
|
+
import { useId as a } from "./useId.js";
|
|
5
|
+
function u({
|
|
6
|
+
title: n,
|
|
7
|
+
action: t,
|
|
8
|
+
children: d,
|
|
9
|
+
...s
|
|
10
|
+
}) {
|
|
11
|
+
const i = a("list-group-header");
|
|
12
|
+
return /* @__PURE__ */ r("div", { ...s, children: [
|
|
13
|
+
/* @__PURE__ */ r(p, { children: [
|
|
14
|
+
/* @__PURE__ */ o("span", { id: i, children: n }),
|
|
15
|
+
t
|
|
16
|
+
] }),
|
|
17
|
+
/* @__PURE__ */ o("div", { "aria-describedby": i, children: d })
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
const p = c.div.withConfig({
|
|
21
|
+
displayName: "Header",
|
|
22
|
+
componentId: "sc-g7ra3w-0"
|
|
23
|
+
})(["display:flex;justify-content:space-between;align-items:center;padding:", " 0 ", ";color:", ";"], e.spacing3, e.spacing2, e.colorText);
|
|
24
|
+
export {
|
|
25
|
+
u as Group
|
|
26
|
+
};
|
package/Header2.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsxs as p, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import r from "./styled-components.browser.esm.js";
|
|
3
|
+
import { TruncatedText as l } from "./TruncatedText.js";
|
|
4
|
+
import { textStyles as c } from "./textStyles.js";
|
|
5
|
+
import { token as t } from "./token.js";
|
|
6
|
+
import { useCardContext as g } from "./context.js";
|
|
7
|
+
function N({
|
|
8
|
+
thumbnail: n,
|
|
9
|
+
title: e,
|
|
10
|
+
detail: o,
|
|
11
|
+
icon: a,
|
|
12
|
+
isNotTruncated: d = !1,
|
|
13
|
+
...m
|
|
14
|
+
}) {
|
|
15
|
+
const {
|
|
16
|
+
cardTitleId: s
|
|
17
|
+
} = g();
|
|
18
|
+
return /* @__PURE__ */ p(h, { ...m, children: [
|
|
19
|
+
n ? /* @__PURE__ */ i(f, { children: n }) : null,
|
|
20
|
+
/* @__PURE__ */ i(u, { id: s, children: d ? e : /* @__PURE__ */ i(l, { children: e }) }),
|
|
21
|
+
o ? /* @__PURE__ */ i(w, { children: d ? o : /* @__PURE__ */ i(l, { children: o }) }) : null,
|
|
22
|
+
a ? /* @__PURE__ */ i(x, { children: a }) : null
|
|
23
|
+
] });
|
|
24
|
+
}
|
|
25
|
+
const h = r.div.withConfig({
|
|
26
|
+
displayName: "HeaderStyled",
|
|
27
|
+
componentId: "sc-1o0trsi-0"
|
|
28
|
+
})(["display:grid;grid-template-areas:'thumbnail title icon' 'thumbnail detail icon';grid-template-columns:auto 1fr auto;padding:var(--card-content-padding);"]), f = r.div.withConfig({
|
|
29
|
+
displayName: "ThumbnailContainer",
|
|
30
|
+
componentId: "sc-1o0trsi-1"
|
|
31
|
+
})(["grid-area:thumbnail;margin-top:2px;margin-right:", ";"], t.spacing4), u = r.div.withConfig({
|
|
32
|
+
displayName: "Title",
|
|
33
|
+
componentId: "sc-1o0trsi-2"
|
|
34
|
+
})(["", " grid-area:title;min-width:0;color:", ";overflow-wrap:break-word;"], c.uiTextM, t.colorText), w = r.div.withConfig({
|
|
35
|
+
displayName: "Detail",
|
|
36
|
+
componentId: "sc-1o0trsi-3"
|
|
37
|
+
})(["", " grid-area:detail;min-width:0;margin-top:", ";color:", ";overflow-wrap:break-word;"], c.uiTextS, t.spacing2, t.colorTextMuted), x = r.div.withConfig({
|
|
38
|
+
displayName: "IconContainer",
|
|
39
|
+
componentId: "sc-1o0trsi-4"
|
|
40
|
+
})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:", ";color:", ";"], t.spacing2, t.gray600);
|
|
41
|
+
export {
|
|
42
|
+
N as Header
|
|
43
|
+
};
|
package/Header22.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Box as m } from "./Box.js";
|
|
3
|
+
import { Item as c } from "./Item.js";
|
|
4
|
+
function x({
|
|
5
|
+
rightElements: r,
|
|
6
|
+
subtext: o,
|
|
7
|
+
thumbnail: d,
|
|
8
|
+
title: n,
|
|
9
|
+
...p
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ i(m, { paddingBlock: "3", paddingInline: "6", ...p, children: (r || o || d || n) && /* @__PURE__ */ i(c, { thumbnail: d, rightElements: r, subtext: o, children: n }) });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
x as Header
|
|
15
|
+
};
|
package/HelperText.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as p, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import o from "./styled-components.browser.esm.js";
|
|
3
|
+
import { textStyles as s } from "./textStyles.js";
|
|
4
|
+
import { token as t } from "./token.js";
|
|
5
|
+
import { useGroupParent as a } from "./useGroupContext.js";
|
|
6
|
+
function h({
|
|
7
|
+
icon: e,
|
|
8
|
+
isInvalid: n,
|
|
9
|
+
children: i,
|
|
10
|
+
...r
|
|
11
|
+
}) {
|
|
12
|
+
return a("HelperText"), /* @__PURE__ */ p(d, { $isInvalid: n, $hasIcon: !!e, ...r, children: [
|
|
13
|
+
e && /* @__PURE__ */ l(m, { children: e }),
|
|
14
|
+
i
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
const d = o.div.withConfig({
|
|
18
|
+
displayName: "HelperTextStyled",
|
|
19
|
+
componentId: "sc-16g18nz-0"
|
|
20
|
+
})(["", " display:flex;align-items:center;margin-top:", ";padding-top:", ";color:", ";"], s.uiTextS, t.spacing2, (e) => e.$hasIcon ? "2px" : "0", (e) => e.$isInvalid ? t.red500 : t.colorTextMuted), m = o.div.withConfig({
|
|
21
|
+
displayName: "Icon",
|
|
22
|
+
componentId: "sc-16g18nz-1"
|
|
23
|
+
})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:", ";"], t.spacing2);
|
|
24
|
+
export {
|
|
25
|
+
h as HelperText
|
|
26
|
+
};
|
package/HorizontalScroll.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as x, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useState as g, useRef as b, useEffect as f } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { token as h } from "
|
|
3
|
+
import d from "./styled-components.browser.esm.js";
|
|
4
|
+
import { token as h } from "./token.js";
|
|
5
5
|
import { useDimensions as p } from "./useDimensions.js";
|
|
6
6
|
import { RightArrow as A } from "./RightArrow.js";
|
|
7
7
|
import { LeftArrow as $ } from "./LeftArrow.js";
|
|
8
|
-
function
|
|
8
|
+
function j(r) {
|
|
9
9
|
const [e, c] = g(0), t = b(null), { dimensions: s, remeasure: m } = p(t.current), o = t.current !== null ? t.current.scrollWidth - t.current.clientWidth : 0, l = s !== void 0 ? Math.ceil(s.width) < s.scrollWidth : !1;
|
|
10
10
|
f(() => {
|
|
11
11
|
m(t.current);
|
|
@@ -46,5 +46,5 @@ const z = d.div`
|
|
|
46
46
|
transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15);
|
|
47
47
|
`;
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
j as HorizontalScroll
|
|
50
50
|
};
|
package/HttpHandler.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { devUtils as n } from "./devUtils.js";
|
|
2
|
+
import { isStringEqual as i } from "./isStringEqual.js";
|
|
3
|
+
import { getStatusCodeColor as c } from "./getStatusCodeColor.js";
|
|
4
|
+
import { getTimestamp as u } from "./getTimestamp.js";
|
|
5
|
+
import { serializeRequest as m } from "./serializeRequest.js";
|
|
6
|
+
import { serializeResponse as l } from "./serializeResponse.js";
|
|
7
|
+
import { matchRequestUrl as h } from "./matchRequestUrl.js";
|
|
8
|
+
import { toPublicUrl as p } from "./toPublicUrl.js";
|
|
9
|
+
import { getAllRequestCookies as d } from "./getRequestCookies.js";
|
|
10
|
+
import { cleanUrl as f, getSearchParams as R } from "./cleanUrl.js";
|
|
11
|
+
import { RequestHandler as q } from "./RequestHandler.js";
|
|
12
|
+
var g = /* @__PURE__ */ ((t) => (t.HEAD = "HEAD", t.GET = "GET", t.POST = "POST", t.PUT = "PUT", t.PATCH = "PATCH", t.OPTIONS = "OPTIONS", t.DELETE = "DELETE", t))(g || {});
|
|
13
|
+
class A extends q {
|
|
14
|
+
constructor(e, r, o, s) {
|
|
15
|
+
super({
|
|
16
|
+
info: {
|
|
17
|
+
header: `${e} ${r}`,
|
|
18
|
+
path: r,
|
|
19
|
+
method: e
|
|
20
|
+
},
|
|
21
|
+
resolver: o,
|
|
22
|
+
options: s
|
|
23
|
+
}), this.checkRedundantQueryParameters();
|
|
24
|
+
}
|
|
25
|
+
checkRedundantQueryParameters() {
|
|
26
|
+
const { method: e, path: r } = this.info;
|
|
27
|
+
if (r instanceof RegExp || f(r) === r)
|
|
28
|
+
return;
|
|
29
|
+
R(r).forEach((a, P) => {
|
|
30
|
+
}), n.warn(
|
|
31
|
+
`Found a redundant usage of query parameters in the request handler URL for "${e} ${r}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/recipes/query-parameters`
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
async parse(e) {
|
|
35
|
+
var r;
|
|
36
|
+
const o = new URL(e.request.url), s = h(
|
|
37
|
+
o,
|
|
38
|
+
this.info.path,
|
|
39
|
+
(r = e.resolutionContext) == null ? void 0 : r.baseUrl
|
|
40
|
+
), a = d(e.request);
|
|
41
|
+
return {
|
|
42
|
+
match: s,
|
|
43
|
+
cookies: a
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
predicate(e) {
|
|
47
|
+
const r = this.matchMethod(e.request.method), o = e.parsedResult.match.matches;
|
|
48
|
+
return r && o;
|
|
49
|
+
}
|
|
50
|
+
matchMethod(e) {
|
|
51
|
+
return this.info.method instanceof RegExp ? this.info.method.test(e) : i(this.info.method, e);
|
|
52
|
+
}
|
|
53
|
+
extendResolverArgs(e) {
|
|
54
|
+
var r;
|
|
55
|
+
return {
|
|
56
|
+
params: ((r = e.parsedResult.match) == null ? void 0 : r.params) || {},
|
|
57
|
+
cookies: e.parsedResult.cookies
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
async log(e) {
|
|
61
|
+
const r = p(e.request.url), o = await m(e.request), s = await l(e.response), a = c(s.status);
|
|
62
|
+
console.groupCollapsed(
|
|
63
|
+
n.formatMessage(
|
|
64
|
+
`${u()} ${e.request.method} ${r} (%c${s.status} ${s.statusText}%c)`
|
|
65
|
+
),
|
|
66
|
+
`color:${a}`,
|
|
67
|
+
"color:inherit"
|
|
68
|
+
), console.log("Request", o), console.log("Handler:", this), console.log("Response", s), console.groupEnd();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
A as HttpHandler,
|
|
73
|
+
g as HttpMethods
|
|
74
|
+
};
|
package/HttpResponse.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { normalizeResponseInit as s, decorateResponse as a } from "./decorators.js";
|
|
2
|
+
class r extends Response {
|
|
3
|
+
constructor(t, n) {
|
|
4
|
+
const e = s(n);
|
|
5
|
+
super(t, e), a(this, e);
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Create a `Response` with a `Content-Type: "text/plain"` body.
|
|
9
|
+
* @example
|
|
10
|
+
* HttpResponse.text('hello world')
|
|
11
|
+
* HttpResponse.text('Error', { status: 500 })
|
|
12
|
+
*/
|
|
13
|
+
static text(t, n) {
|
|
14
|
+
const e = s(n);
|
|
15
|
+
return e.headers.has("Content-Type") || e.headers.set("Content-Type", "text/plain"), e.headers.has("Content-Length") || e.headers.set(
|
|
16
|
+
"Content-Length",
|
|
17
|
+
t ? new Blob([t]).size.toString() : "0"
|
|
18
|
+
), new r(t, e);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Create a `Response` with a `Content-Type: "application/json"` body.
|
|
22
|
+
* @example
|
|
23
|
+
* HttpResponse.json({ firstName: 'John' })
|
|
24
|
+
* HttpResponse.json({ error: 'Not Authorized' }, { status: 401 })
|
|
25
|
+
*/
|
|
26
|
+
static json(t, n) {
|
|
27
|
+
const e = s(n);
|
|
28
|
+
e.headers.has("Content-Type") || e.headers.set("Content-Type", "application/json");
|
|
29
|
+
const o = JSON.stringify(t);
|
|
30
|
+
return e.headers.has("Content-Length") || e.headers.set(
|
|
31
|
+
"Content-Length",
|
|
32
|
+
o ? new Blob([o]).size.toString() : "0"
|
|
33
|
+
), new r(
|
|
34
|
+
o,
|
|
35
|
+
e
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Create a `Response` with a `Content-Type: "application/xml"` body.
|
|
40
|
+
* @example
|
|
41
|
+
* HttpResponse.xml(`<user name="John" />`)
|
|
42
|
+
* HttpResponse.xml(`<article id="abc-123" />`, { status: 201 })
|
|
43
|
+
*/
|
|
44
|
+
static xml(t, n) {
|
|
45
|
+
const e = s(n);
|
|
46
|
+
return e.headers.has("Content-Type") || e.headers.set("Content-Type", "text/xml"), new r(t, e);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Create a `Response` with a `Content-Type: "text/html"` body.
|
|
50
|
+
* @example
|
|
51
|
+
* HttpResponse.html(`<p class="author">Jane Doe</p>`)
|
|
52
|
+
* HttpResponse.html(`<main id="abc-123">Main text</main>`, { status: 201 })
|
|
53
|
+
*/
|
|
54
|
+
static html(t, n) {
|
|
55
|
+
const e = s(n);
|
|
56
|
+
return e.headers.has("Content-Type") || e.headers.set("Content-Type", "text/html"), new r(t, e);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a `Response` with an `ArrayBuffer` body.
|
|
60
|
+
* @example
|
|
61
|
+
* const buffer = new ArrayBuffer(3)
|
|
62
|
+
* const view = new Uint8Array(buffer)
|
|
63
|
+
* view.set([1, 2, 3])
|
|
64
|
+
*
|
|
65
|
+
* HttpResponse.arrayBuffer(buffer)
|
|
66
|
+
*/
|
|
67
|
+
static arrayBuffer(t, n) {
|
|
68
|
+
const e = s(n);
|
|
69
|
+
return t && !e.headers.has("Content-Length") && e.headers.set("Content-Length", t.byteLength.toString()), new r(t, e);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Create a `Response` with a `FormData` body.
|
|
73
|
+
* @example
|
|
74
|
+
* const data = new FormData()
|
|
75
|
+
* data.set('name', 'Alice')
|
|
76
|
+
*
|
|
77
|
+
* HttpResponse.formData(data)
|
|
78
|
+
*/
|
|
79
|
+
static formData(t, n) {
|
|
80
|
+
return new r(t, s(n));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export {
|
|
84
|
+
r as HttpResponse
|
|
85
|
+
};
|