@preply/ds-web-lib 11.0.0 → 11.1.0
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/dist/Accordion-B0hR-tcI.js +96 -0
- package/dist/AlertBannerProvider-Cf7w9AOq.js +76 -0
- package/dist/AlertDialog-BG-diKBi.js +475 -0
- package/dist/Avatar-B-JdqVyg.js +66 -0
- package/dist/AvatarWithStatus-CD9jEqEB.js +36 -0
- package/dist/Badge-Dd-CLBoW.js +50 -0
- package/dist/Box-BJBE9KNm.js +91 -0
- package/dist/BubbleCounter.module-BU2S0euA.js +16 -0
- package/dist/Button-C35BZJZT.js +91 -0
- package/dist/ButtonBase-8eUyTWxX.js +215 -0
- package/dist/Checkbox-CtolNbxI.js +108 -0
- package/dist/Chips-BRGw7Uup.js +99 -0
- package/dist/ChipsPrimitive-Bezq7ptE.js +1179 -0
- package/dist/CountryFlag-DVDKHmQH.js +43 -0
- package/dist/Dialog.module-Db2BJAn4.js +21 -0
- package/dist/DialogCloseButton-DjDd9Mid.js +98 -0
- package/dist/DialogDescription-8zw9t6pm.js +44 -0
- package/dist/DialogRoot-B67oJduC.js +335 -0
- package/dist/DialogRootContext-Bz8RW-Mq.js +12 -0
- package/dist/DialogTitle-C2Nn2ys-.js +43 -0
- package/dist/Divider-DvwDWB9_.js +17 -0
- package/dist/DropdownMenu.primitives-BrsTBvMk.js +4007 -0
- package/dist/FieldButton-B2slox8P.js +32 -0
- package/dist/FormControl-qnbQL1iF.js +128 -0
- package/dist/Heading-DA9gHfsx.js +71 -0
- package/dist/Icon-CixAeOSd.js +48 -0
- package/dist/IconButton-BPKpgfep.js +31 -0
- package/dist/InputContainer-CzzuOe_p.js +38 -0
- package/dist/LayoutFlex-e9auDvWD.js +86 -0
- package/dist/LayoutFlexItem-D9ziMmHe.js +48 -0
- package/dist/LayoutGridItem-Q8Lnvrri.js +34 -0
- package/dist/Link-CdoJVeER.js +66 -0
- package/dist/Loader-BMOxdJce.js +26 -0
- package/dist/OnboardingTooltip-B47_Yrsj.js +165 -0
- package/dist/OnboardingTour-DUUoI5WE.js +131 -0
- package/dist/PasswordField-Bx5YG62t.js +93 -0
- package/dist/PreplyLogo-abgOre30.js +112 -0
- package/dist/ProgressBar-CEU4GyHn.js +31 -0
- package/dist/ProgressSteps-BSqopxqv.js +45 -0
- package/dist/Select-Bo7PX_8V.js +124 -0
- package/dist/Slider-Crg4DEn_.js +64 -0
- package/dist/Spinner-Ck8KQA22.js +86 -0
- package/dist/Stars-D5QspUBE.js +72 -0
- package/dist/Steps-DbN5vFrP.js +173 -0
- package/dist/Switch-Ck_xB0ID.js +49 -0
- package/dist/Text-CaOF75Z-.js +121 -0
- package/dist/TextHighlighted-Dwq9Clgn.js +34 -0
- package/dist/TextInline-BcA4H2Tk.js +34 -0
- package/dist/Toast-wJAjSLfo.js +1019 -0
- package/dist/TokyoUIChevronDown-DGcVqR1z.js +14 -0
- package/dist/Tooltip-grvKQxTN.js +84 -0
- package/dist/VisuallyHidden-CtcHcZCK.js +29 -0
- package/dist/align-self-VrZUceie.js +42 -0
- package/dist/assets/Accordion.css +2 -2
- package/dist/assets/AlertBannerProvider.css +2 -2
- package/dist/assets/AlertDialog.css +2 -2
- package/dist/assets/Avatar.css +3 -3
- package/dist/assets/AvatarWithStatus.css +2 -2
- package/dist/assets/Badge.css +1 -1
- package/dist/assets/Box.css +3 -3
- package/dist/assets/BubbleCounter.css +1 -1
- package/dist/assets/Button.css +4 -4
- package/dist/assets/ButtonBase.css +40 -46
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Chips.css +2 -2
- package/dist/assets/ChipsPrimitive.css +2 -2
- package/dist/assets/CountryFlag.css +1 -1
- package/dist/assets/Dialog.css +13 -4
- package/dist/assets/Divider.css +1 -1
- package/dist/assets/DropdownMenu.css +2 -2
- package/dist/assets/FieldButton.css +3 -3
- package/dist/assets/FormControl.css +1 -1
- package/dist/assets/Heading.css +3 -3
- package/dist/assets/Icon.css +3 -3
- package/dist/assets/InputContainer.css +2 -2
- package/dist/assets/LayoutFlex.css +1 -1
- package/dist/assets/LayoutFlexItem.css +1 -1
- package/dist/assets/Link.css +3 -3
- package/dist/assets/Loader.css +1 -1
- package/dist/assets/OnboardingTooltip.css +1 -1
- package/dist/assets/OnboardingTour.css +1 -1
- package/dist/assets/PreplyLogo.css +1 -1
- package/dist/assets/ProgressBar.css +1 -1
- package/dist/assets/ProgressSteps.css +1 -1
- package/dist/assets/Select.css +2 -2
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/Spinner.css +3 -3
- package/dist/assets/Stars.css +3 -3
- package/dist/assets/Steps.css +2 -2
- package/dist/assets/Switch.css +1 -1
- package/dist/assets/Text.css +3 -3
- package/dist/assets/TextHighlighted.css +3 -3
- package/dist/assets/TextInline.css +3 -3
- package/dist/assets/Toast.css +2 -2
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/align-self.css +1 -1
- package/dist/assets/{IconTile.css → components.css} +1 -1
- package/dist/assets/exp-color.css +2 -2
- package/dist/assets/index.css +1 -1
- package/dist/assets/layout-gap.css +3 -3
- package/dist/assets/layout-grid.css +3 -3
- package/dist/assets/layout-hide.css +1 -1
- package/dist/assets/layout-padding.css +3 -3
- package/dist/assets/layout-relative.css +1 -1
- package/dist/assets/text-accent.css +2 -2
- package/dist/assets/text-centered.css +1 -1
- package/dist/assets/text-weight.css +2 -2
- package/dist/chunk-BVTlhY3a.js +24 -0
- package/dist/components/Accordion/Accordion.js +4 -60
- package/dist/components/Accordion/hooks/useOnOpenChange.js +19 -28
- package/dist/components/AlertBanner/AlertBanner.js +11 -26
- package/dist/components/AlertBanner/AlertBannerProvider.js +3 -8
- package/dist/components/AlertBanner/primitives/AlertBannerAction.js +11 -69
- package/dist/components/AlertBanner/primitives/AlertBannerIcon.js +77 -39
- package/dist/components/AlertBanner/primitives/AlertBannerRoot.js +26 -22
- package/dist/components/AlertBanner/primitives/AlertBannerText.js +11 -70
- package/dist/components/AlertDialog/AlertDialog.js +5 -430
- package/dist/components/Avatar/Avatar.js +3 -71
- package/dist/components/AvatarWithStatus/AvatarWithStatus.js +3 -43
- package/dist/components/Badge/Badge.js +4 -62
- package/dist/components/Box/Box.js +3 -95
- package/dist/components/BubbleCounter/BubbleCounter.js +23 -28
- package/dist/components/Button/Button.js +4 -80
- package/dist/components/CalloutBanner/CalloutBanner.js +61 -12
- package/dist/components/CalloutBanner/primitives/CalloutBannerDismissButton.js +50 -22
- package/dist/components/CalloutBanner/primitives/CalloutBannerIcon.js +86 -45
- package/dist/components/CalloutBanner/primitives/CalloutBannerRoot.js +50 -24
- package/dist/components/CalloutBanner/primitives/CalloutBannerText.js +41 -11
- package/dist/components/Checkbox/Checkbox.js +4 -78
- package/dist/components/Checkbox/hooks/useIndeterminate.js +24 -30
- package/dist/components/Chips/Chips.types.js +0 -1
- package/dist/components/Chips/DismissibleChips.js +117 -86
- package/dist/components/Chips/MultiSelectChips.js +98 -64
- package/dist/components/Chips/SingleSelectChips.js +94 -57
- package/dist/components/Chips/private/ChipsPrimitive.js +4 -17
- package/dist/components/CountryFlag/CountryFlag.js +3 -44
- package/dist/components/Dialog/Dialog.js +56 -31
- package/dist/components/Dialog/DialogSteps.js +40 -29
- package/dist/components/Dialog/primitives/DialogActions.js +26 -19
- package/dist/components/Dialog/primitives/DialogButtonStack.d.ts.map +1 -1
- package/dist/components/Dialog/primitives/DialogButtonStack.js +22 -15
- package/dist/components/Dialog/primitives/DialogCloseButton.d.ts +1 -1
- package/dist/components/Dialog/primitives/DialogCloseButton.d.ts.map +1 -1
- package/dist/components/Dialog/primitives/DialogCloseButton.js +4 -67
- package/dist/components/Dialog/primitives/DialogDescription.js +3 -43
- package/dist/components/Dialog/primitives/DialogFooter.js +37 -34
- package/dist/components/Dialog/primitives/DialogRoot.js +4 -315
- package/dist/components/Dialog/primitives/DialogTitle.js +3 -42
- package/dist/components/Divider/Divider.js +3 -14
- package/dist/components/DropdownMenu/DropdownMenu.js +253 -188
- package/dist/components/DropdownMenu/primitives/DropdownMenu.primitives.js +5 -34
- package/dist/components/DropdownMenu/primitives/DropdownMenuSelectItem.primitives.js +121 -71
- package/dist/components/FieldButton/FieldButton.js +3 -37
- package/dist/components/FormControl/FormControl.js +3 -105
- package/dist/components/Heading/Heading.js +3 -78
- package/dist/components/Icon/Icon.js +4 -49
- package/dist/components/IconButton/IconButton.d.ts +5 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +4 -28
- package/dist/components/IconTile/IconTile.js +11 -69
- package/dist/components/IntlFormatted/IntlFormattedAggregatedDateTime.js +16 -32
- package/dist/components/IntlFormatted/IntlFormattedCurrency.js +20 -42
- package/dist/components/IntlFormatted/IntlFormattedDate.js +73 -195
- package/dist/components/IntlFormatted/IntlFormattedTime.js +14 -24
- package/dist/components/IntlFormatted/Wrapper.js +14 -8
- package/dist/components/LayoutFlex/LayoutFlex.js +3 -100
- package/dist/components/LayoutFlex/style/getStyleAttrs.js +71 -143
- package/dist/components/LayoutFlex/tests/AlignItems.js +67 -97
- package/dist/components/LayoutFlex/tests/ColumnReverse.js +63 -100
- package/dist/components/LayoutFlex/tests/DataOverride.js +1498 -1093
- package/dist/components/LayoutFlex/tests/Default.js +19 -20
- package/dist/components/LayoutFlex/tests/Direction.js +65 -88
- package/dist/components/LayoutFlex/tests/Gap.js +115 -197
- package/dist/components/LayoutFlex/tests/HideInline.js +95 -136
- package/dist/components/LayoutFlex/tests/JustifyContent.js +75 -108
- package/dist/components/LayoutFlex/tests/Nowrap.js +35 -42
- package/dist/components/LayoutFlex/tests/Padding.js +207 -263
- package/dist/components/LayoutFlex/tests/Relative.js +49 -64
- package/dist/components/LayoutFlexItem/LayoutFlexItem.js +3 -54
- package/dist/components/LayoutGrid/LayoutGrid.js +26 -34
- package/dist/components/LayoutGridItem/LayoutGridItem.js +3 -41
- package/dist/components/Link/Link.js +3 -72
- package/dist/components/Loader/Loader.js +3 -32
- package/dist/components/NumberField/NumberField.js +33 -35
- package/dist/components/ObserveIntersection/ObserveIntersection.js +41 -42
- package/dist/components/OnboardingTooltip/OnboardingTooltip.js +4 -115
- package/dist/components/OnboardingTour/OnboardingTour.js +4 -114
- package/dist/components/PasswordField/PasswordField.js +3 -78
- package/dist/components/PreplyLogo/PreplyLogo.js +3 -81
- package/dist/components/ProgressBar/ProgressBar.js +3 -27
- package/dist/components/ProgressSteps/ProgressSteps.js +3 -48
- package/dist/components/Rating/Rating.js +29 -20
- package/dist/components/Rating/RatingInput.js +57 -59
- package/dist/components/Rating/Stars.js +4 -8
- package/dist/components/Rating/hooks/useHasError.js +11 -15
- package/dist/components/Rating/hooks/useHoverPercentage.js +37 -45
- package/dist/components/Rating/hooks/useInputState.js +18 -24
- package/dist/components/Rating/hooks/useLocalizations.js +12 -24
- package/dist/components/Rating/utils/roundToHalfDecimal.js +4 -4
- package/dist/components/SelectField/Select.js +5 -112
- package/dist/components/SelectField/SelectField.js +29 -24
- package/dist/components/SelectField/hooks/useBreakpointMatch.js +18 -19
- package/dist/components/ShowOnIntersection/ShowOnIntersection.js +32 -21
- package/dist/components/Slider/RangeSlider.js +62 -52
- package/dist/components/Slider/Slider.js +3 -10
- package/dist/components/Steps/Steps.js +4 -210
- package/dist/components/Switch/Switch.js +3 -51
- package/dist/components/Text/Text.js +3 -128
- package/dist/components/TextField/TextField.js +27 -29
- package/dist/components/TextHighlighted/TextHighlighted.js +3 -41
- package/dist/components/TextInline/TextInline.js +3 -40
- package/dist/components/TextareaField/TextareaField.js +26 -28
- package/dist/components/Toast/Toast.js +4 -1168
- package/dist/components/Tooltip/Tooltip.js +3 -66
- package/dist/components/deprecated/Chips/Chips.js +4 -76
- package/dist/components/deprecated/NativeSelectField/NativeSelect.js +40 -32
- package/dist/components/deprecated/NativeSelectField/NativeSelectField.js +34 -33
- package/dist/components/deprecated/index.js +5 -6
- package/dist/components/index.js +50 -150
- package/dist/components/private/ButtonBase/ButtonBase.d.ts +7 -11
- package/dist/components/private/ButtonBase/ButtonBase.d.ts.map +1 -1
- package/dist/components/private/ButtonBase/ButtonBase.js +3 -247
- package/dist/components/private/Input/Input.js +27 -19
- package/dist/components/private/Input/InputContainer.js +3 -5
- package/dist/components/private/Input/Textarea.js +24 -20
- package/dist/components/private/Input/index.js +2 -4
- package/dist/components/private/Spinner/Spinner.js +3 -52
- package/dist/components/private/VisuallyHidden/VisuallyHidden.js +3 -15
- package/dist/components-BIYP8wHJ.js +200 -0
- package/dist/exp-color-C5mKAN91.js +74 -0
- package/dist/floating-ui.utils.dom-CoeTbDZx.js +215 -0
- package/dist/index.js +50 -150
- package/dist/index.module-1c7ENvxc.js +7 -0
- package/dist/jsx-runtime-i4KUlhDu.js +743 -0
- package/dist/layout-gap.module-DLD8bcR4.js +95 -0
- package/dist/layout-grid.module-CZfhrKrB.js +101 -0
- package/dist/layout-hide.module-B1P0N4i3.js +53 -0
- package/dist/layout-padding-ugY-yd2q.js +389 -0
- package/dist/layout-relative.module-B5xrFD9j.js +6 -0
- package/dist/render-icon-Ch3b2dE0.js +290 -0
- package/dist/shared-styles/align-self/align-self.js +2 -36
- package/dist/shared-styles/exp-color/exp-color.js +2 -68
- package/dist/shared-styles/layout-gap/layout-gap.js +13 -7
- package/dist/shared-styles/layout-grid/layout-grid.js +28 -28
- package/dist/shared-styles/layout-grid-responsive-columns/layout-grid-responsive-columns.js +29 -43
- package/dist/shared-styles/layout-hide/layout-hide.js +8 -8
- package/dist/shared-styles/layout-padding/layout-padding.js +2 -5
- package/dist/shared-styles/layout-relative/layout-relative.js +14 -8
- package/dist/shared-styles/text-accent/text-accent.js +2 -25
- package/dist/shared-styles/text-centered/text-centered.js +2 -24
- package/dist/shared-styles/text-weight/text-weight.js +2 -15
- package/dist/store-sN_eYeZT.js +1064 -0
- package/dist/storybook-utils/consts.js +6 -8
- package/dist/storybook-utils/index.js +1 -5
- package/dist/text-accent-CfUFx-1K.js +30 -0
- package/dist/text-centered-Dwp2_-Yp.js +30 -0
- package/dist/text-weight-CwoqmM4o.js +21 -0
- package/dist/useBaseUiId-CWAD_PSs.js +13 -0
- package/dist/useBreakpointMatch-D9a3CTNK.js +338 -0
- package/dist/useButton-DHTh3Hm7.js +148 -0
- package/dist/useDialogClose-BzFIyWco.js +22 -0
- package/dist/useId-CJsH-2wV.js +34 -0
- package/dist/useOpenInteractionType-D8vA_ZKI.js +4104 -0
- package/dist/useRenderElement-ZBds6eRN.js +341 -0
- package/dist/utils/Orientation/OrientationProvider.js +54 -23
- package/dist/utils/Orientation/index.js +2 -4
- package/dist/utils/RovingTabIndex/RovingTabIndexProvider.js +70 -44
- package/dist/utils/RovingTabIndex/index.js +2 -4
- package/dist/utils/createRequiredContext.js +23 -13
- package/dist/utils/filterAttributesPassedByRadixUIAtRuntime.js +28 -25
- package/dist/utils/render-icon.js +3 -320
- package/dist/utils/shared-strings.js +24 -32
- package/dist/utils/useBreakpointMatch.d.ts.map +1 -1
- package/dist/utils/useBreakpointMatch.js +2 -183
- package/dist/utils/useControllableState/useControllableState.js +31 -25
- package/dist/utils/useMergeRefs.js +29 -14
- package/dist/utils/useStableCallback/useStableCallback.js +28 -13
- package/package.json +17 -22
- package/dist/AlertBannerProvider-DTx2Xp3V.js +0 -50
- package/dist/BubbleCounter.module-QMwXWFIS.js +0 -16
- package/dist/ChipsPrimitive-DzsaOWgY.js +0 -1244
- package/dist/Dialog.module-Ba1X7b3N.js +0 -29
- package/dist/DialogRootContext-BCXmmJAw.js +0 -15
- package/dist/DropdownMenu.primitives-B3WK71bR.js +0 -5871
- package/dist/IconTile-D1G7MljH.js +0 -172
- package/dist/InputContainer-oHJlLWIi.js +0 -30
- package/dist/Slider-DB4Maswa.js +0 -55
- package/dist/Stars-C_mHop2H.js +0 -67
- package/dist/TokyoUIChevronDown-D_tD1yU8.js +0 -11
- package/dist/floating-ui.utils.dom-3OgjGonN.js +0 -234
- package/dist/index.module-Q9TzIR6B.js +0 -11
- package/dist/layout-gap.module-MKn_un_k.js +0 -97
- package/dist/layout-grid.module-P4B4WVUy.js +0 -103
- package/dist/layout-hide.module-Bpl3Pl-a.js +0 -55
- package/dist/layout-padding-D5I6rRlL.js +0 -373
- package/dist/layout-relative.module-1z75aSwo.js +0 -8
- package/dist/store-BUKWfVf3.js +0 -1155
- package/dist/useBaseUiId-DavsGYu9.js +0 -8
- package/dist/useButton-CFPpP0o5.js +0 -193
- package/dist/useDialogClose-C9x1leGd.js +0 -34
- package/dist/useId-BhIOp2JG.js +0 -28
- package/dist/useOpenInteractionType-Cj41-8Yk.js +0 -2880
- package/dist/useRenderElement-DtYPTE_y.js +0 -350
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import { t as __commonJSMin } from "./chunk-BVTlhY3a.js";
|
|
3
|
+
import { t as require_jsx_runtime } from "./jsx-runtime-i4KUlhDu.js";
|
|
4
|
+
import { cloneElement } from "react";
|
|
5
|
+
//#region ../../node_modules/react-is/cjs/react-is.production.min.js
|
|
6
|
+
var require_react_is_production_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react-is.production.min.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u = Symbol.for("react.module.reference");
|
|
17
|
+
function v(a) {
|
|
18
|
+
if ("object" === typeof a && null !== a) {
|
|
19
|
+
var r = a.$$typeof;
|
|
20
|
+
switch (r) {
|
|
21
|
+
case b: switch (a = a.type, a) {
|
|
22
|
+
case d:
|
|
23
|
+
case f:
|
|
24
|
+
case e:
|
|
25
|
+
case m:
|
|
26
|
+
case n: return a;
|
|
27
|
+
default: switch (a = a && a.$$typeof, a) {
|
|
28
|
+
case k:
|
|
29
|
+
case h:
|
|
30
|
+
case l:
|
|
31
|
+
case q:
|
|
32
|
+
case p:
|
|
33
|
+
case g: return a;
|
|
34
|
+
default: return r;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
case c: return r;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.ContextConsumer = h;
|
|
42
|
+
exports.ContextProvider = g;
|
|
43
|
+
exports.Element = b;
|
|
44
|
+
exports.ForwardRef = l;
|
|
45
|
+
exports.Fragment = d;
|
|
46
|
+
exports.Lazy = q;
|
|
47
|
+
exports.Memo = p;
|
|
48
|
+
exports.Portal = c;
|
|
49
|
+
exports.Profiler = f;
|
|
50
|
+
exports.StrictMode = e;
|
|
51
|
+
exports.Suspense = m;
|
|
52
|
+
exports.SuspenseList = n;
|
|
53
|
+
exports.isAsyncMode = function() {
|
|
54
|
+
return !1;
|
|
55
|
+
};
|
|
56
|
+
exports.isConcurrentMode = function() {
|
|
57
|
+
return !1;
|
|
58
|
+
};
|
|
59
|
+
exports.isContextConsumer = function(a) {
|
|
60
|
+
return v(a) === h;
|
|
61
|
+
};
|
|
62
|
+
exports.isContextProvider = function(a) {
|
|
63
|
+
return v(a) === g;
|
|
64
|
+
};
|
|
65
|
+
exports.isElement = function(a) {
|
|
66
|
+
return "object" === typeof a && null !== a && a.$$typeof === b;
|
|
67
|
+
};
|
|
68
|
+
exports.isForwardRef = function(a) {
|
|
69
|
+
return v(a) === l;
|
|
70
|
+
};
|
|
71
|
+
exports.isFragment = function(a) {
|
|
72
|
+
return v(a) === d;
|
|
73
|
+
};
|
|
74
|
+
exports.isLazy = function(a) {
|
|
75
|
+
return v(a) === q;
|
|
76
|
+
};
|
|
77
|
+
exports.isMemo = function(a) {
|
|
78
|
+
return v(a) === p;
|
|
79
|
+
};
|
|
80
|
+
exports.isPortal = function(a) {
|
|
81
|
+
return v(a) === c;
|
|
82
|
+
};
|
|
83
|
+
exports.isProfiler = function(a) {
|
|
84
|
+
return v(a) === f;
|
|
85
|
+
};
|
|
86
|
+
exports.isStrictMode = function(a) {
|
|
87
|
+
return v(a) === e;
|
|
88
|
+
};
|
|
89
|
+
exports.isSuspense = function(a) {
|
|
90
|
+
return v(a) === m;
|
|
91
|
+
};
|
|
92
|
+
exports.isSuspenseList = function(a) {
|
|
93
|
+
return v(a) === n;
|
|
94
|
+
};
|
|
95
|
+
exports.isValidElementType = function(a) {
|
|
96
|
+
return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? !0 : !1;
|
|
97
|
+
};
|
|
98
|
+
exports.typeOf = v;
|
|
99
|
+
}));
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region ../../node_modules/react-is/cjs/react-is.development.js
|
|
102
|
+
var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
103
|
+
/**
|
|
104
|
+
* @license React
|
|
105
|
+
* react-is.development.js
|
|
106
|
+
*
|
|
107
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the MIT license found in the
|
|
110
|
+
* LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/
|
|
112
|
+
if (process.env.NODE_ENV !== "production") (function() {
|
|
113
|
+
"use strict";
|
|
114
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
115
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
116
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
117
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
118
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
119
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
120
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
121
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
|
122
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
123
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
124
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
125
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
126
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
127
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
128
|
+
var enableScopeAPI = false;
|
|
129
|
+
var enableCacheElement = false;
|
|
130
|
+
var enableTransitionTracing = false;
|
|
131
|
+
var enableLegacyHidden = false;
|
|
132
|
+
var enableDebugTracing = false;
|
|
133
|
+
var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
134
|
+
function isValidElementType(type) {
|
|
135
|
+
if (typeof type === "string" || typeof type === "function") return true;
|
|
136
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) return true;
|
|
137
|
+
if (typeof type === "object" && type !== null) {
|
|
138
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) return true;
|
|
139
|
+
}
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
function typeOf(object) {
|
|
143
|
+
if (typeof object === "object" && object !== null) {
|
|
144
|
+
var $$typeof = object.$$typeof;
|
|
145
|
+
switch ($$typeof) {
|
|
146
|
+
case REACT_ELEMENT_TYPE:
|
|
147
|
+
var type = object.type;
|
|
148
|
+
switch (type) {
|
|
149
|
+
case REACT_FRAGMENT_TYPE:
|
|
150
|
+
case REACT_PROFILER_TYPE:
|
|
151
|
+
case REACT_STRICT_MODE_TYPE:
|
|
152
|
+
case REACT_SUSPENSE_TYPE:
|
|
153
|
+
case REACT_SUSPENSE_LIST_TYPE: return type;
|
|
154
|
+
default:
|
|
155
|
+
var $$typeofType = type && type.$$typeof;
|
|
156
|
+
switch ($$typeofType) {
|
|
157
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
|
158
|
+
case REACT_CONTEXT_TYPE:
|
|
159
|
+
case REACT_FORWARD_REF_TYPE:
|
|
160
|
+
case REACT_LAZY_TYPE:
|
|
161
|
+
case REACT_MEMO_TYPE:
|
|
162
|
+
case REACT_PROVIDER_TYPE: return $$typeofType;
|
|
163
|
+
default: return $$typeof;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
case REACT_PORTAL_TYPE: return $$typeof;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
171
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
172
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
173
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
174
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
175
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
176
|
+
var Memo = REACT_MEMO_TYPE;
|
|
177
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
178
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
179
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
180
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
181
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
182
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
183
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
184
|
+
function isAsyncMode(object) {
|
|
185
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
186
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
187
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
|
|
188
|
+
}
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
191
|
+
function isConcurrentMode(object) {
|
|
192
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
193
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true;
|
|
194
|
+
console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
|
|
195
|
+
}
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
function isContextConsumer(object) {
|
|
199
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
200
|
+
}
|
|
201
|
+
function isContextProvider(object) {
|
|
202
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
203
|
+
}
|
|
204
|
+
function isElement(object) {
|
|
205
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
206
|
+
}
|
|
207
|
+
function isForwardRef(object) {
|
|
208
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
209
|
+
}
|
|
210
|
+
function isFragment(object) {
|
|
211
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
212
|
+
}
|
|
213
|
+
function isLazy(object) {
|
|
214
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
215
|
+
}
|
|
216
|
+
function isMemo(object) {
|
|
217
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
218
|
+
}
|
|
219
|
+
function isPortal(object) {
|
|
220
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
221
|
+
}
|
|
222
|
+
function isProfiler(object) {
|
|
223
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
224
|
+
}
|
|
225
|
+
function isStrictMode(object) {
|
|
226
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
227
|
+
}
|
|
228
|
+
function isSuspense(object) {
|
|
229
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
230
|
+
}
|
|
231
|
+
function isSuspenseList(object) {
|
|
232
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
233
|
+
}
|
|
234
|
+
exports.ContextConsumer = ContextConsumer;
|
|
235
|
+
exports.ContextProvider = ContextProvider;
|
|
236
|
+
exports.Element = Element;
|
|
237
|
+
exports.ForwardRef = ForwardRef;
|
|
238
|
+
exports.Fragment = Fragment;
|
|
239
|
+
exports.Lazy = Lazy;
|
|
240
|
+
exports.Memo = Memo;
|
|
241
|
+
exports.Portal = Portal;
|
|
242
|
+
exports.Profiler = Profiler;
|
|
243
|
+
exports.StrictMode = StrictMode;
|
|
244
|
+
exports.Suspense = Suspense;
|
|
245
|
+
exports.SuspenseList = SuspenseList;
|
|
246
|
+
exports.isAsyncMode = isAsyncMode;
|
|
247
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
248
|
+
exports.isContextConsumer = isContextConsumer;
|
|
249
|
+
exports.isContextProvider = isContextProvider;
|
|
250
|
+
exports.isElement = isElement;
|
|
251
|
+
exports.isForwardRef = isForwardRef;
|
|
252
|
+
exports.isFragment = isFragment;
|
|
253
|
+
exports.isLazy = isLazy;
|
|
254
|
+
exports.isMemo = isMemo;
|
|
255
|
+
exports.isPortal = isPortal;
|
|
256
|
+
exports.isProfiler = isProfiler;
|
|
257
|
+
exports.isStrictMode = isStrictMode;
|
|
258
|
+
exports.isSuspense = isSuspense;
|
|
259
|
+
exports.isSuspenseList = isSuspenseList;
|
|
260
|
+
exports.isValidElementType = isValidElementType;
|
|
261
|
+
exports.typeOf = typeOf;
|
|
262
|
+
})();
|
|
263
|
+
}));
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region src/utils/render-icon.tsx
|
|
266
|
+
var import_react_is = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
267
|
+
if (process.env.NODE_ENV === "production") module.exports = require_react_is_production_min();
|
|
268
|
+
else module.exports = require_react_is_development();
|
|
269
|
+
})))();
|
|
270
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
271
|
+
/**
|
|
272
|
+
* Renders an SVG icon with provided attributes from a component or element.
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* import MySvgIcon from './my-svg-icon.svg';
|
|
276
|
+
*
|
|
277
|
+
* renderIcon(MySvgIcon, { 'aria-hidden': 'true' });
|
|
278
|
+
* // or
|
|
279
|
+
* renderIcon(<MySvgIcon />, { 'aria-hidden': 'true' });
|
|
280
|
+
*
|
|
281
|
+
* @param ComponentOrElement - The SVG component or element to render.
|
|
282
|
+
* @param attrs - Optional attributes to apply to the rendered SVG element.
|
|
283
|
+
* @returns The rendered SVG icon element.
|
|
284
|
+
*/
|
|
285
|
+
var renderIcon = (ComponentOrElement, attrs) => {
|
|
286
|
+
if ((0, import_react_is.isElement)(ComponentOrElement)) return cloneElement(ComponentOrElement, attrs);
|
|
287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ComponentOrElement, { ...attrs });
|
|
288
|
+
};
|
|
289
|
+
//#endregion
|
|
290
|
+
export { renderIcon as t };
|
|
@@ -1,36 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const styles = {
|
|
4
|
-
AlignSelf,
|
|
5
|
-
"AlignSelf--align-self-start": "AlignSelf--align-self-start__Pk4Ld",
|
|
6
|
-
"AlignSelf--align-self-center": "AlignSelf--align-self-center__oKqnl",
|
|
7
|
-
"AlignSelf--align-self-end": "AlignSelf--align-self-end__mLp7w",
|
|
8
|
-
"AlignSelf--align-self-stretch": "AlignSelf--align-self-stretch__e5jP9",
|
|
9
|
-
"AlignSelf--narrow-l--align-self-start": "AlignSelf--narrow-l--align-self-start__RD68B",
|
|
10
|
-
"AlignSelf--narrow-l--align-self-center": "AlignSelf--narrow-l--align-self-center__9KYyf",
|
|
11
|
-
"AlignSelf--narrow-l--align-self-end": "AlignSelf--narrow-l--align-self-end__ydYg3",
|
|
12
|
-
"AlignSelf--narrow-l--align-self-stretch": "AlignSelf--narrow-l--align-self-stretch__an8ci",
|
|
13
|
-
"AlignSelf--medium-s--align-self-start": "AlignSelf--medium-s--align-self-start__qq8h0",
|
|
14
|
-
"AlignSelf--medium-s--align-self-center": "AlignSelf--medium-s--align-self-center__d0RSi",
|
|
15
|
-
"AlignSelf--medium-s--align-self-end": "AlignSelf--medium-s--align-self-end__Kmsf2",
|
|
16
|
-
"AlignSelf--medium-s--align-self-stretch": "AlignSelf--medium-s--align-self-stretch__j3NnI",
|
|
17
|
-
"AlignSelf--medium-l--align-self-start": "AlignSelf--medium-l--align-self-start__74bsY",
|
|
18
|
-
"AlignSelf--medium-l--align-self-center": "AlignSelf--medium-l--align-self-center__ljw4i",
|
|
19
|
-
"AlignSelf--medium-l--align-self-end": "AlignSelf--medium-l--align-self-end__Pewtw",
|
|
20
|
-
"AlignSelf--medium-l--align-self-stretch": "AlignSelf--medium-l--align-self-stretch__TkySK",
|
|
21
|
-
"AlignSelf--wide-s--align-self-start": "AlignSelf--wide-s--align-self-start__zgUOz",
|
|
22
|
-
"AlignSelf--wide-s--align-self-center": "AlignSelf--wide-s--align-self-center__sU3Gp",
|
|
23
|
-
"AlignSelf--wide-s--align-self-end": "AlignSelf--wide-s--align-self-end__o-XTQ",
|
|
24
|
-
"AlignSelf--wide-s--align-self-stretch": "AlignSelf--wide-s--align-self-stretch__G9OEM",
|
|
25
|
-
"AlignSelf--wide-l--align-self-start": "AlignSelf--wide-l--align-self-start__DcXjX",
|
|
26
|
-
"AlignSelf--wide-l--align-self-center": "AlignSelf--wide-l--align-self-center__36VHM",
|
|
27
|
-
"AlignSelf--wide-l--align-self-end": "AlignSelf--wide-l--align-self-end__VolCH",
|
|
28
|
-
"AlignSelf--wide-l--align-self-stretch": "AlignSelf--wide-l--align-self-stretch__pdrgF"
|
|
29
|
-
};
|
|
30
|
-
const ALIGN_SELF = "AlignSelf";
|
|
31
|
-
const getAlignSelfClassNames = (alignSelf) => {
|
|
32
|
-
return moduleClassNames(styles, ALIGN_SELF, [stringClassNames("align-self", alignSelf)]);
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
getAlignSelfClassNames
|
|
36
|
-
};
|
|
1
|
+
import { t as getAlignSelfClassNames } from "../../align-self-VrZUceie.js";
|
|
2
|
+
export { getAlignSelfClassNames };
|
|
@@ -1,68 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const styles = {
|
|
4
|
-
ExpColor,
|
|
5
|
-
"ExpColor--exp-color-grey-0": "ExpColor--exp-color-grey-0__DKudt",
|
|
6
|
-
"ExpColor--exp-color-grey-50": "ExpColor--exp-color-grey-50__lo7OH",
|
|
7
|
-
"ExpColor--exp-color-grey-100": "ExpColor--exp-color-grey-100__EtBtx",
|
|
8
|
-
"ExpColor--exp-color-grey-200": "ExpColor--exp-color-grey-200__KHF8X",
|
|
9
|
-
"ExpColor--exp-color-grey-300": "ExpColor--exp-color-grey-300__0u63D",
|
|
10
|
-
"ExpColor--exp-color-grey-400": "ExpColor--exp-color-grey-400__WaJzi",
|
|
11
|
-
"ExpColor--exp-color-grey-500": "ExpColor--exp-color-grey-500__1RSHd",
|
|
12
|
-
"ExpColor--exp-color-grey-600": "ExpColor--exp-color-grey-600__95yQU",
|
|
13
|
-
"ExpColor--exp-color-grey-700": "ExpColor--exp-color-grey-700__SSayo",
|
|
14
|
-
"ExpColor--exp-color-grey-800": "ExpColor--exp-color-grey-800__15Bou",
|
|
15
|
-
"ExpColor--exp-color-grey-900": "ExpColor--exp-color-grey-900__BKw9C",
|
|
16
|
-
"ExpColor--exp-color-pink-50": "ExpColor--exp-color-pink-50__SZLGx",
|
|
17
|
-
"ExpColor--exp-color-pink-100": "ExpColor--exp-color-pink-100__J0yFM",
|
|
18
|
-
"ExpColor--exp-color-pink-200": "ExpColor--exp-color-pink-200__dQ0mZ",
|
|
19
|
-
"ExpColor--exp-color-pink-300": "ExpColor--exp-color-pink-300__WYBWX",
|
|
20
|
-
"ExpColor--exp-color-pink-400": "ExpColor--exp-color-pink-400__7Jazs",
|
|
21
|
-
"ExpColor--exp-color-pink-500": "ExpColor--exp-color-pink-500__4X2bs",
|
|
22
|
-
"ExpColor--exp-color-pink-600": "ExpColor--exp-color-pink-600__Ph3VO",
|
|
23
|
-
"ExpColor--exp-color-pink-700": "ExpColor--exp-color-pink-700__nLJd1",
|
|
24
|
-
"ExpColor--exp-color-pink-800": "ExpColor--exp-color-pink-800__-fD0l",
|
|
25
|
-
"ExpColor--exp-color-yellow-50": "ExpColor--exp-color-yellow-50__EYcxx",
|
|
26
|
-
"ExpColor--exp-color-yellow-100": "ExpColor--exp-color-yellow-100__8n-ZP",
|
|
27
|
-
"ExpColor--exp-color-yellow-200": "ExpColor--exp-color-yellow-200__eOMK3",
|
|
28
|
-
"ExpColor--exp-color-yellow-300": "ExpColor--exp-color-yellow-300__JbUZg",
|
|
29
|
-
"ExpColor--exp-color-yellow-400": "ExpColor--exp-color-yellow-400__7NrMJ",
|
|
30
|
-
"ExpColor--exp-color-yellow-500": "ExpColor--exp-color-yellow-500__a3k-Q",
|
|
31
|
-
"ExpColor--exp-color-yellow-600": "ExpColor--exp-color-yellow-600__xBk-i",
|
|
32
|
-
"ExpColor--exp-color-yellow-700": "ExpColor--exp-color-yellow-700__xw4Kd",
|
|
33
|
-
"ExpColor--exp-color-yellow-800": "ExpColor--exp-color-yellow-800__vZmXG",
|
|
34
|
-
"ExpColor--exp-color-blue-50": "ExpColor--exp-color-blue-50__s2FXt",
|
|
35
|
-
"ExpColor--exp-color-blue-100": "ExpColor--exp-color-blue-100__TzrMW",
|
|
36
|
-
"ExpColor--exp-color-blue-200": "ExpColor--exp-color-blue-200__sVncU",
|
|
37
|
-
"ExpColor--exp-color-blue-300": "ExpColor--exp-color-blue-300__ooY38",
|
|
38
|
-
"ExpColor--exp-color-blue-400": "ExpColor--exp-color-blue-400__GGuoL",
|
|
39
|
-
"ExpColor--exp-color-blue-500": "ExpColor--exp-color-blue-500__N2NW9",
|
|
40
|
-
"ExpColor--exp-color-blue-600": "ExpColor--exp-color-blue-600__q-8xU",
|
|
41
|
-
"ExpColor--exp-color-blue-700": "ExpColor--exp-color-blue-700__5k-Gw",
|
|
42
|
-
"ExpColor--exp-color-blue-800": "ExpColor--exp-color-blue-800__MCpJf",
|
|
43
|
-
"ExpColor--exp-color-teal-50": "ExpColor--exp-color-teal-50__P9v3-",
|
|
44
|
-
"ExpColor--exp-color-teal-100": "ExpColor--exp-color-teal-100__Y8xbj",
|
|
45
|
-
"ExpColor--exp-color-teal-200": "ExpColor--exp-color-teal-200__yzxAu",
|
|
46
|
-
"ExpColor--exp-color-teal-300": "ExpColor--exp-color-teal-300__CC-oK",
|
|
47
|
-
"ExpColor--exp-color-teal-400": "ExpColor--exp-color-teal-400__fBHUW",
|
|
48
|
-
"ExpColor--exp-color-teal-500": "ExpColor--exp-color-teal-500__qt3Ny",
|
|
49
|
-
"ExpColor--exp-color-teal-600": "ExpColor--exp-color-teal-600__5EF-y",
|
|
50
|
-
"ExpColor--exp-color-teal-700": "ExpColor--exp-color-teal-700__o0qGK",
|
|
51
|
-
"ExpColor--exp-color-teal-800": "ExpColor--exp-color-teal-800__dntGK",
|
|
52
|
-
"ExpColor--exp-color-red-50": "ExpColor--exp-color-red-50__QFm4H",
|
|
53
|
-
"ExpColor--exp-color-red-100": "ExpColor--exp-color-red-100__gQ36l",
|
|
54
|
-
"ExpColor--exp-color-red-200": "ExpColor--exp-color-red-200__N7c7P",
|
|
55
|
-
"ExpColor--exp-color-red-300": "ExpColor--exp-color-red-300__uhkUo",
|
|
56
|
-
"ExpColor--exp-color-red-400": "ExpColor--exp-color-red-400__cNgdd",
|
|
57
|
-
"ExpColor--exp-color-red-500": "ExpColor--exp-color-red-500__VMSdk",
|
|
58
|
-
"ExpColor--exp-color-red-600": "ExpColor--exp-color-red-600__In2gH",
|
|
59
|
-
"ExpColor--exp-color-red-700": "ExpColor--exp-color-red-700__DPnKE",
|
|
60
|
-
"ExpColor--exp-color-red-800": "ExpColor--exp-color-red-800__MkRFA"
|
|
61
|
-
};
|
|
62
|
-
const EXP_COLOR = "ExpColor";
|
|
63
|
-
const getExpColorClassNames = (expColor) => {
|
|
64
|
-
return moduleClassNames(styles, EXP_COLOR, [stringClassNames("exp-color", expColor)]);
|
|
65
|
-
};
|
|
66
|
-
export {
|
|
67
|
-
getExpColorClassNames
|
|
68
|
-
};
|
|
1
|
+
import { t as getExpColorClassNames } from "../../exp-color-C5mKAN91.js";
|
|
2
|
+
export { getExpColorClassNames };
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { t as layout_gap_module_default } from "../../layout-gap.module-DLD8bcR4.js";
|
|
1
2
|
import { moduleClassNames, stringClassNames } from "@preply/ds-web-core";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
//#region src/shared-styles/layout-gap/layout-gap.ts
|
|
4
|
+
var LAYOUT_GAP = "LayoutGap";
|
|
5
|
+
/**
|
|
6
|
+
* Note: be careful with styles specificity.
|
|
7
|
+
* It's possible that some of the styles will be overridden
|
|
8
|
+
* by other components/hooks, that were rendered after this one.
|
|
9
|
+
* See #incident-918 (https://preply.slack.com/archives/C05R913FCNR/p1694510587143179) for details
|
|
10
|
+
*/
|
|
11
|
+
var getLayoutGapClassnames = (gap) => {
|
|
12
|
+
return moduleClassNames(layout_gap_module_default, LAYOUT_GAP, [stringClassNames("gap", gap)]);
|
|
9
13
|
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getLayoutGapClassnames };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { moduleClassNames, stringClassNames } from "@preply/ds-web-core";
|
|
3
|
-
import { getLayoutGapClassnames } from "../layout-gap/layout-gap.js";
|
|
1
|
+
import { t as getLayoutPaddingClassnames } from "../../layout-padding-ugY-yd2q.js";
|
|
4
2
|
import { getLayoutHideClassnames } from "../layout-hide/layout-hide.js";
|
|
5
|
-
import { g as getLayoutPaddingClassnames } from "../../layout-padding-D5I6rRlL.js";
|
|
6
3
|
import { getLayoutRelativeClassnames } from "../layout-relative/layout-relative.js";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
4
|
+
import { t as layout_grid_module_default } from "../../layout-grid.module-CZfhrKrB.js";
|
|
5
|
+
import { getLayoutGapClassnames } from "../layout-gap/layout-gap.js";
|
|
6
|
+
import { moduleClassNames, stringClassNames } from "@preply/ds-web-core";
|
|
7
|
+
import { LAYOUT_GAP_DEFAULT, LAYOUT_PADDING_DEFAULT } from "@preply/ds-core";
|
|
8
|
+
//#region src/shared-styles/layout-grid/layout-grid.ts
|
|
9
|
+
var LAYOUT_GRID = "LayoutGrid";
|
|
10
|
+
var getLayoutGridClassNames = (layout, props) => {
|
|
11
|
+
const { gap = LAYOUT_GAP_DEFAULT, padding = LAYOUT_PADDING_DEFAULT, justifyContent, alignItems, justifyItems, hide, relative } = props || {};
|
|
12
|
+
if (layout !== "grid") return [];
|
|
13
|
+
const classNames = moduleClassNames(layout_grid_module_default, LAYOUT_GRID, [
|
|
14
|
+
stringClassNames("justify-content", justifyContent),
|
|
15
|
+
stringClassNames("align-items", alignItems),
|
|
16
|
+
stringClassNames("justify-items", justifyItems)
|
|
17
|
+
]);
|
|
18
|
+
const gapClassNames = getLayoutGapClassnames(gap);
|
|
19
|
+
const paddingClassNames = getLayoutPaddingClassnames(padding);
|
|
20
|
+
const hideClassNames = getLayoutHideClassnames(hide, "grid");
|
|
21
|
+
const relativeClassNames = getLayoutRelativeClassnames(relative);
|
|
22
|
+
return [
|
|
23
|
+
...classNames,
|
|
24
|
+
...gapClassNames,
|
|
25
|
+
...paddingClassNames,
|
|
26
|
+
...hideClassNames,
|
|
27
|
+
...relativeClassNames
|
|
28
|
+
];
|
|
31
29
|
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { getLayoutGridClassNames };
|
|
@@ -1,47 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as layout_grid_module_default } from "../../layout-grid.module-CZfhrKrB.js";
|
|
2
2
|
import { moduleLocals } from "@preply/ds-web-core";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
const normalizeResponsiveColumns = (columns) => {
|
|
10
|
-
if (typeof columns === "object" && !Array.isArray(columns)) {
|
|
11
|
-
return Object.entries(columns).reduce((acc, [breakpoint, value]) => ({
|
|
12
|
-
...acc,
|
|
13
|
-
...value ? {
|
|
14
|
-
[breakpoint]: normalizeColumns(value)
|
|
15
|
-
} : {}
|
|
16
|
-
}), {
|
|
17
|
-
_: normalizeColumns(columns._)
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
_: normalizeColumns(columns)
|
|
22
|
-
};
|
|
3
|
+
import { BREAKPOINT } from "@preply/ds-core";
|
|
4
|
+
//#region src/shared-styles/layout-grid-responsive-columns/layout-grid-responsive-columns.ts
|
|
5
|
+
var LAYOUT_GRID = "LayoutGrid";
|
|
6
|
+
var BREAKPOINT_LIST = Object.keys(BREAKPOINT);
|
|
7
|
+
var normalizeColumns = (columns) => {
|
|
8
|
+
return typeof columns === "number" ? `repeat(${columns}, 1fr)` : columns.join(" ");
|
|
23
9
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
const normalizedColumns = normalizeResponsiveColumns(columns);
|
|
32
|
-
const breakpointsInUse = BREAKPOINT_LIST.filter((breakpoint) => normalizedColumns[breakpoint]);
|
|
33
|
-
const classNames = moduleLocals(styles, LAYOUT_GRID, ["columns", ...breakpointsInUse.map((breakpoint) => `columns-${breakpoint}`)]);
|
|
34
|
-
const cssVariables = breakpointsInUse.reduce((acc, breakpoint) => ({
|
|
35
|
-
...acc,
|
|
36
|
-
[`--columns-${breakpoint}`]: normalizedColumns[breakpoint]
|
|
37
|
-
}), {
|
|
38
|
-
"--columns": normalizedColumns._
|
|
39
|
-
});
|
|
40
|
-
return {
|
|
41
|
-
classNames,
|
|
42
|
-
style: cssVariables
|
|
43
|
-
};
|
|
10
|
+
var normalizeResponsiveColumns = (columns) => {
|
|
11
|
+
if (typeof columns === "object" && !Array.isArray(columns)) return Object.entries(columns).reduce((acc, [breakpoint, value]) => ({
|
|
12
|
+
...acc,
|
|
13
|
+
...value ? { [breakpoint]: normalizeColumns(value) } : {}
|
|
14
|
+
}), { _: normalizeColumns(columns._) });
|
|
15
|
+
return { _: normalizeColumns(columns) };
|
|
44
16
|
};
|
|
45
|
-
|
|
46
|
-
|
|
17
|
+
var getLayoutGridResponsiveColumnsStyles = (columns) => {
|
|
18
|
+
if (!columns) return {
|
|
19
|
+
classNames: [],
|
|
20
|
+
style: {}
|
|
21
|
+
};
|
|
22
|
+
const normalizedColumns = normalizeResponsiveColumns(columns);
|
|
23
|
+
const breakpointsInUse = BREAKPOINT_LIST.filter((breakpoint) => normalizedColumns[breakpoint]);
|
|
24
|
+
return {
|
|
25
|
+
classNames: moduleLocals(layout_grid_module_default, LAYOUT_GRID, ["columns", ...breakpointsInUse.map((breakpoint) => `columns-${breakpoint}`)]),
|
|
26
|
+
style: breakpointsInUse.reduce((acc, breakpoint) => ({
|
|
27
|
+
...acc,
|
|
28
|
+
[`--columns-${breakpoint}`]: normalizedColumns[breakpoint]
|
|
29
|
+
}), { "--columns": normalizedColumns._ })
|
|
30
|
+
};
|
|
47
31
|
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { getLayoutGridResponsiveColumnsStyles };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { t as layout_hide_module_default } from "../../layout-hide.module-B1P0N4i3.js";
|
|
2
|
+
import { booleanClassNames, moduleClassNames } from "@preply/ds-web-core";
|
|
1
3
|
import { LAYOUT_DISPLAY_DEFAULT } from "@preply/ds-core";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return moduleClassNames(styles, LAYOUT_HIDE, [booleanClassNames("hide", display, hide)]);
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
getLayoutHideClassnames
|
|
4
|
+
//#region src/shared-styles/layout-hide/layout-hide.ts
|
|
5
|
+
var LAYOUT_HIDE = "LayoutHide";
|
|
6
|
+
var getLayoutHideClassnames = (hide, display = LAYOUT_DISPLAY_DEFAULT) => {
|
|
7
|
+
return moduleClassNames(layout_hide_module_default, LAYOUT_HIDE, [booleanClassNames("hide", display, hide)]);
|
|
10
8
|
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { getLayoutHideClassnames };
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { t as layout_relative_module_default } from "../../layout-relative.module-B5xrFD9j.js";
|
|
2
|
+
import { booleanClassNames, moduleClassNames } from "@preply/ds-web-core";
|
|
3
|
+
//#region src/shared-styles/layout-relative/layout-relative.ts
|
|
4
|
+
var LAYOUT_RELATIVE = "LayoutRelative";
|
|
5
|
+
/**
|
|
6
|
+
* Note: be careful with styles specificity.
|
|
7
|
+
* It's possible that some of the styles will be overridden
|
|
8
|
+
* by other components/hooks, that were rendered after this one.
|
|
9
|
+
* See #incident-918 (https://preply.slack.com/archives/C05R913FCNR/p1694510587143179) for details
|
|
10
|
+
*/
|
|
11
|
+
var getLayoutRelativeClassnames = (relative) => {
|
|
12
|
+
return moduleClassNames(layout_relative_module_default, LAYOUT_RELATIVE, [booleanClassNames("relative", void 0, relative)]);
|
|
9
13
|
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getLayoutRelativeClassnames };
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const styles = {
|
|
4
|
-
TextAccent,
|
|
5
|
-
"TextAccent--accent-default": "TextAccent--accent-default__rjbSO",
|
|
6
|
-
"TextAccent--accent-primary": "TextAccent--accent-primary__y2VJp",
|
|
7
|
-
"TextAccent--accent-secondary": "TextAccent--accent-secondary__EN2MG",
|
|
8
|
-
"TextAccent--accent-tertiary": "TextAccent--accent-tertiary__Di2P9",
|
|
9
|
-
"TextAccent--accent-accentDark": "TextAccent--accent-accentDark__k9Bg2",
|
|
10
|
-
"TextAccent--accent-placeholder": "TextAccent--accent-placeholder__s77sy",
|
|
11
|
-
"TextAccent--accent-inverted": "TextAccent--accent-inverted__pOSYS",
|
|
12
|
-
"TextAccent--accent-positive": "TextAccent--accent-positive__znwvO",
|
|
13
|
-
"TextAccent--accent-info": "TextAccent--accent-info__rneu6",
|
|
14
|
-
"TextAccent--accent-warning": "TextAccent--accent-warning__cNFBg",
|
|
15
|
-
"TextAccent--accent-critical": "TextAccent--accent-critical__-RJ-l",
|
|
16
|
-
"TextAccent--accent-disabled": "TextAccent--accent-disabled__HZyzf"
|
|
17
|
-
};
|
|
18
|
-
const TEXT_ACCENT = "TextAccent";
|
|
19
|
-
const getTextAccentClassnames = (fallbackToDefault, accent) => {
|
|
20
|
-
const actualAccent = accent != null ? accent : fallbackToDefault ? "default" : void 0;
|
|
21
|
-
return moduleClassNames(styles, TEXT_ACCENT, [stringClassNames("accent", actualAccent)]);
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
getTextAccentClassnames
|
|
25
|
-
};
|
|
1
|
+
import { t as getTextAccentClassnames } from "../../text-accent-CfUFx-1K.js";
|
|
2
|
+
export { getTextAccentClassnames };
|