@telefonica/mistica 17.8.0 → 17.9.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/css/blau.css +10 -0
- package/css/community/cyber.css +49 -23
- package/css/esimflag.css +10 -0
- package/css/mistica-common.css +10 -0
- package/css/mistica.css +1 -1
- package/css/movistar.css +10 -0
- package/css/o2.css +10 -0
- package/css/telefonica.css +18 -8
- package/css/vivo-evolution.css +12 -2
- package/css/vivo.css +10 -0
- package/dist/accordion.css-mistica.js +6 -6
- package/dist/accordion.js +67 -74
- package/dist/align.css-mistica.js +1 -1
- package/dist/autocomplete.css-mistica.js +1 -1
- package/dist/avatar.css-mistica.js +1 -1
- package/dist/badge.css-mistica.js +1 -1
- package/dist/box.css-mistica.js +13 -13
- package/dist/boxed.css-mistica.js +24 -24
- package/dist/boxed.d.ts +2 -2
- package/dist/boxed.js +27 -27
- package/dist/button-group.css-mistica.js +1 -1
- package/dist/button-layout.css-mistica.js +14 -14
- package/dist/button.css-mistica.js +38 -38
- package/dist/callout.css-mistica.js +11 -11
- package/dist/card-internal.css-mistica.js +21 -21
- package/dist/carousel.css-mistica.js +8 -8
- package/dist/checkbox.css-mistica.js +11 -11
- package/dist/chip.css-mistica.js +15 -15
- package/dist/circle.css-mistica.js +1 -1
- package/dist/community/advanced-data-card.css-mistica.js +8 -8
- package/dist/community/ai-card.css-mistica.js +11 -11
- package/dist/community/blocks.css-mistica.js +1 -1
- package/dist/community/cyber/example-component.css-mistica.js +1 -1
- package/dist/community/example-component.css-mistica.js +1 -1
- package/dist/community/skins/cyber-skin.js +48 -4
- package/dist/counter.css-mistica.js +1 -1
- package/dist/cover-hero.css-mistica.js +2 -2
- package/dist/credit-card-number-field.css-mistica.js +3 -3
- package/dist/date-field.css-mistica.js +1 -1
- package/dist/date-time-picker.css-mistica.js +1 -1
- package/dist/dialog.css-mistica.js +4 -4
- package/dist/divider.css-mistica.js +5 -5
- package/dist/double-field.css-mistica.js +2 -2
- package/dist/drawer.css-mistica.js +1 -1
- package/dist/empty-state-card.css-mistica.js +1 -1
- package/dist/empty-state.css-mistica.js +5 -5
- package/dist/fade-in.css-mistica.js +1 -1
- package/dist/fade-out.css-mistica.js +1 -1
- package/dist/feedback.css-mistica.js +1 -1
- package/dist/feedback.js +123 -123
- package/dist/file-upload.css-mistica.js +7 -7
- package/dist/fixed-footer-layout.css-mistica.js +2 -2
- package/dist/form.css-mistica.js +1 -1
- package/dist/grid-layout.css-mistica.js +3 -3
- package/dist/grid.css-mistica.js +120 -120
- package/dist/header.css-mistica.js +1 -1
- package/dist/hero.css-mistica.js +2 -2
- package/dist/horizontal-scroll.css-mistica.js +1 -1
- package/dist/icon-button.css-mistica.js +53 -53
- package/dist/icons/icon-chevron.css-mistica.js +2 -2
- package/dist/icons/icon-error.css-mistica.js +1 -1
- package/dist/icons/icon-error.js +51 -31
- package/dist/icons/icon-info.js +42 -10
- package/dist/icons/icon-stepper-success-vivo.d.ts +7 -0
- package/dist/icons/icon-stepper-success-vivo.js +78 -0
- package/dist/icons/icon-success-vivo-new.d.ts +1 -0
- package/dist/icons/icon-success-vivo.d.ts +1 -0
- package/dist/icons/icon-success.js +137 -58
- package/dist/image.css-mistica.js +10 -10
- package/dist/index.d.ts +2 -0
- package/dist/inline.css-mistica.js +11 -11
- package/dist/list.css-mistica.js +42 -30
- package/dist/list.css.d.ts +4 -0
- package/dist/list.js +167 -160
- package/dist/loading-bar.css-mistica.js +1 -1
- package/dist/loading-screen.css-mistica.js +4 -4
- package/dist/logo.css-mistica.js +5 -5
- package/dist/menu.css-mistica.js +12 -12
- package/dist/mosaic.css-mistica.js +1 -1
- package/dist/navigation-bar.css-mistica.js +9 -9
- package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist/navigation-shared.css-mistica.js +9 -9
- package/dist/package-version.js +1 -1
- package/dist/pagination.css-mistica.js +18 -18
- package/dist/pin-field.css-mistica.js +1 -1
- package/dist/popover.css-mistica.js +1 -1
- package/dist/progress-bar.css-mistica.js +6 -6
- package/dist/radio-button.css-mistica.js +19 -19
- package/dist/rating.css-mistica.js +2 -2
- package/dist/responsive-layout.css-mistica.js +6 -6
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +15 -15
- package/dist/sheet-action-row.css-mistica.js +1 -1
- package/dist/sheet-common.css-mistica.js +1 -1
- package/dist/sheet-info.css-mistica.js +1 -1
- package/dist/sidenav-bar-layout.css-mistica.js +1 -1
- package/dist/sidenav-bar.css-mistica.js +71 -71
- package/dist/skeletons.css-mistica.js +6 -6
- package/dist/skins/blau.js +32 -0
- package/dist/skins/defaults.js +32 -0
- package/dist/skins/esimflag.js +32 -0
- package/dist/skins/movistar.js +32 -0
- package/dist/skins/o2.js +32 -0
- package/dist/skins/skin-contract.css-mistica.js +755 -741
- package/dist/skins/skin-contract.css.d.ts +14 -0
- package/dist/skins/telefonica.js +40 -8
- package/dist/skins/types/index.d.ts +3 -0
- package/dist/skins/vivo-evolution.js +34 -2
- package/dist/skins/vivo.js +32 -0
- package/dist/skip-link.css-mistica.js +1 -1
- package/dist/slider.css-mistica.js +18 -18
- package/dist/snackbar.css-mistica.js +4 -4
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/square.css-mistica.js +1 -1
- package/dist/stack.css-mistica.js +5 -5
- package/dist/stacking-group.css-mistica.js +1 -1
- package/dist/stepper.css-mistica.js +2 -2
- package/dist/stepper.js +31 -25
- package/dist/switch-component.css-mistica.js +35 -35
- package/dist/table.css-mistica.js +9 -9
- package/dist/tabs.css-mistica.js +17 -17
- package/dist/tag.css-mistica.js +1 -1
- package/dist/text-field-base.css-mistica.js +16 -16
- package/dist/text-field-components.css-mistica.js +3 -3
- package/dist/text-link.css-mistica.js +6 -6
- package/dist/text.css-mistica.js +6 -6
- package/dist/timeline.css-mistica.js +9 -9
- package/dist/timer.css-mistica.js +6 -6
- package/dist/tooltip.css-mistica.js +1 -1
- package/dist/touchable.css-mistica.js +1 -1
- package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist/video.css-mistica.js +1 -1
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
- package/dist-es/accordion.css-mistica.js +6 -6
- package/dist-es/accordion.js +104 -111
- package/dist-es/align.css-mistica.js +1 -1
- package/dist-es/autocomplete.css-mistica.js +1 -1
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/badge.css-mistica.js +1 -1
- package/dist-es/box.css-mistica.js +13 -13
- package/dist-es/boxed.css-mistica.js +23 -23
- package/dist-es/boxed.js +34 -34
- package/dist-es/button-group.css-mistica.js +1 -1
- package/dist-es/button-layout.css-mistica.js +14 -14
- package/dist-es/button.css-mistica.js +35 -35
- package/dist-es/callout.css-mistica.js +11 -11
- package/dist-es/card-internal.css-mistica.js +21 -21
- package/dist-es/carousel.css-mistica.js +8 -8
- package/dist-es/checkbox.css-mistica.js +11 -11
- package/dist-es/chip.css-mistica.js +15 -15
- package/dist-es/circle.css-mistica.js +1 -1
- package/dist-es/community/advanced-data-card.css-mistica.js +8 -8
- package/dist-es/community/ai-card.css-mistica.js +4 -4
- package/dist-es/community/blocks.css-mistica.js +1 -1
- package/dist-es/community/cyber/example-component.css-mistica.js +1 -1
- package/dist-es/community/example-component.css-mistica.js +1 -1
- package/dist-es/community/skins/cyber-skin.js +48 -4
- package/dist-es/counter.css-mistica.js +1 -1
- package/dist-es/cover-hero.css-mistica.js +2 -2
- package/dist-es/credit-card-number-field.css-mistica.js +3 -3
- package/dist-es/date-field.css-mistica.js +1 -1
- package/dist-es/date-time-picker.css-mistica.js +1 -1
- package/dist-es/dialog.css-mistica.js +4 -4
- package/dist-es/divider.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +2 -2
- package/dist-es/drawer.css-mistica.js +1 -1
- package/dist-es/empty-state-card.css-mistica.js +1 -1
- package/dist-es/empty-state.css-mistica.js +5 -5
- package/dist-es/fade-in.css-mistica.js +1 -1
- package/dist-es/fade-out.css-mistica.js +1 -1
- package/dist-es/feedback.css-mistica.js +1 -1
- package/dist-es/feedback.js +158 -158
- package/dist-es/file-upload.css-mistica.js +7 -7
- package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
- package/dist-es/form.css-mistica.js +1 -1
- package/dist-es/grid-layout.css-mistica.js +3 -3
- package/dist-es/grid.css-mistica.js +120 -120
- package/dist-es/header.css-mistica.js +1 -1
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/horizontal-scroll.css-mistica.js +1 -1
- package/dist-es/icon-button.css-mistica.js +53 -53
- package/dist-es/icons/icon-chevron.css-mistica.js +2 -2
- package/dist-es/icons/icon-error.css-mistica.js +1 -1
- package/dist-es/icons/icon-error.js +55 -35
- package/dist-es/icons/icon-info.js +53 -21
- package/dist-es/icons/icon-stepper-success-vivo.js +69 -0
- package/dist-es/icons/icon-success.js +112 -74
- package/dist-es/image.css-mistica.js +4 -4
- package/dist-es/inline.css-mistica.js +11 -11
- package/dist-es/list.css-mistica.js +8 -8
- package/dist-es/list.js +230 -223
- package/dist-es/loading-bar.css-mistica.js +1 -1
- package/dist-es/loading-screen.css-mistica.js +4 -4
- package/dist-es/logo.css-mistica.js +5 -5
- package/dist-es/menu.css-mistica.js +12 -12
- package/dist-es/mosaic.css-mistica.js +1 -1
- package/dist-es/navigation-bar.css-mistica.js +9 -9
- package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist-es/navigation-shared.css-mistica.js +9 -9
- package/dist-es/package-version.js +1 -1
- package/dist-es/pagination.css-mistica.js +18 -18
- package/dist-es/pin-field.css-mistica.js +1 -1
- package/dist-es/popover.css-mistica.js +1 -1
- package/dist-es/progress-bar.css-mistica.js +6 -6
- package/dist-es/radio-button.css-mistica.js +19 -19
- package/dist-es/rating.css-mistica.js +2 -2
- package/dist-es/responsive-layout.css-mistica.js +6 -6
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +15 -15
- package/dist-es/sheet-action-row.css-mistica.js +1 -1
- package/dist-es/sheet-common.css-mistica.js +1 -1
- package/dist-es/sheet-info.css-mistica.js +1 -1
- package/dist-es/sidenav-bar-layout.css-mistica.js +1 -1
- package/dist-es/sidenav-bar.css-mistica.js +71 -71
- package/dist-es/skeletons.css-mistica.js +6 -6
- package/dist-es/skins/blau.js +32 -0
- package/dist-es/skins/defaults.js +32 -0
- package/dist-es/skins/esimflag.js +32 -0
- package/dist-es/skins/movistar.js +32 -0
- package/dist-es/skins/o2.js +32 -0
- package/dist-es/skins/skin-contract.css-mistica.js +755 -741
- package/dist-es/skins/telefonica.js +40 -8
- package/dist-es/skins/vivo-evolution.js +34 -2
- package/dist-es/skins/vivo.js +32 -0
- package/dist-es/skip-link.css-mistica.js +1 -1
- package/dist-es/slider.css-mistica.js +18 -18
- package/dist-es/snackbar.css-mistica.js +4 -4
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/square.css-mistica.js +1 -1
- package/dist-es/stack.css-mistica.js +5 -5
- package/dist-es/stacking-group.css-mistica.js +1 -1
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/stepper.js +60 -54
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +35 -35
- package/dist-es/table.css-mistica.js +9 -9
- package/dist-es/tabs.css-mistica.js +17 -17
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/text-field-base.css-mistica.js +16 -16
- package/dist-es/text-field-components.css-mistica.js +3 -3
- package/dist-es/text-link.css-mistica.js +6 -6
- package/dist-es/text.css-mistica.js +6 -6
- package/dist-es/timeline.css-mistica.js +9 -9
- package/dist-es/timer.css-mistica.js +6 -6
- package/dist-es/tooltip.css-mistica.js +1 -1
- package/dist-es/touchable.css-mistica.js +1 -1
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist-es/video.css-mistica.js +1 -1
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
- package/doc/layout.md +30 -0
- package/package.json +1 -1
- package/src/accordion.tsx +1 -21
- package/src/boxed.tsx +6 -2
- package/src/community/skins/cyber-skin.tsx +21 -4
- package/src/feedback.tsx +36 -29
- package/src/icons/icon-error.tsx +17 -1
- package/src/icons/icon-info.tsx +22 -1
- package/src/icons/icon-stepper-success-vivo.tsx +58 -0
- package/src/icons/icon-success-vivo-new.tsx +1 -0
- package/src/icons/icon-success-vivo.tsx +1 -0
- package/src/icons/icon-success.tsx +56 -37
- package/src/index.tsx +2 -0
- package/src/list.css.ts +20 -0
- package/src/list.tsx +9 -3
- package/src/package-version.tsx +1 -1
- package/src/skins/blau.tsx +11 -0
- package/src/skins/defaults.tsx +11 -0
- package/src/skins/esimflag.tsx +11 -0
- package/src/skins/movistar.tsx +11 -0
- package/src/skins/o2.tsx +11 -0
- package/src/skins/skin-contract.css.ts +3 -0
- package/src/skins/telefonica.tsx +19 -8
- package/src/skins/types/index.tsx +3 -0
- package/src/skins/vivo-evolution.tsx +13 -2
- package/src/skins/vivo.tsx +11 -0
- package/src/stepper.tsx +16 -6
package/dist-es/list.js
CHANGED
|
@@ -78,33 +78,33 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
import { jsx as t, jsxs as
|
|
81
|
+
import { jsx as t, jsxs as N } from "react/jsx-runtime";
|
|
82
82
|
import * as s from "react";
|
|
83
|
-
import
|
|
83
|
+
import c from "classnames";
|
|
84
84
|
import { BaseTouchable as ge } from "./touchable.js";
|
|
85
|
-
import { Text as
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
85
|
+
import { Text as He, Text1 as M, Text2 as ie } from "./text.js";
|
|
86
|
+
import H from "./box.js";
|
|
87
|
+
import j from "./stack.js";
|
|
88
|
+
import ze from "./badge.js";
|
|
89
89
|
import { useThemeVariant as se } from "./theme-variant-context.js";
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import xe, { useRadioContext as
|
|
93
|
-
import
|
|
94
|
-
import { InternalBoxed as
|
|
90
|
+
import We from "./generated/mistica-icons/icon-chevron-right-filled.js";
|
|
91
|
+
import Me from "./switch-component.js";
|
|
92
|
+
import xe, { useRadioContext as je } from "./radio-button.js";
|
|
93
|
+
import qe from "./checkbox.js";
|
|
94
|
+
import { InternalBoxed as Fe } from "./boxed.js";
|
|
95
95
|
import Re from "./divider.js";
|
|
96
|
-
import { getPrefixedDataAttributes as
|
|
97
|
-
import { row as
|
|
98
|
-
import { vars as
|
|
96
|
+
import { getPrefixedDataAttributes as q } from "./utils/dom.js";
|
|
97
|
+
import { row as Ue, boxed as Ze, selectionOutline as _e, selectionOutlineColor as Ge, ul as Be, liWithoutMarker as Je, liContent as ye, liWithCustomIcon as Ke, li as Qe, innerContent as Se, rowContentPadding as E, rowContent as re, pointer as Ce, touchableBackgroundBrand as le, touchableBackground as oe, dualActionRightIconButton as Xe, dualActionRightIconButtonSmall as Ye, asset as $e, assetContainer as pe, disabled as L, center as ne, assetContainerSmall as et, rowBody as tt, badge as at, rightContent as it, detail as rt, detailRight as lt, innerContentSmall as ot, rowDivider as nt, content as dt, contentSmall as st, dualActionContainer as ct, dualActionBody as ut, dualActionLeft as mt, dualActionDivider as ht, rowDividerDualAction as bt, dualActionRight as ft } from "./list.css-mistica.js";
|
|
98
|
+
import { vars as vt } from "./image.css-mistica.js";
|
|
99
99
|
import { vars as o } from "./skins/skin-contract.css-mistica.js";
|
|
100
|
-
import { applyCssVars as
|
|
101
|
-
import { combineRefs as
|
|
102
|
-
import { IconButton as
|
|
103
|
-
import
|
|
104
|
-
import { useTheme as
|
|
105
|
-
const
|
|
100
|
+
import { applyCssVars as gt } from "./utils/css.js";
|
|
101
|
+
import { combineRefs as xt } from "./utils/common.js";
|
|
102
|
+
import { IconButton as we, ToggleIconButton as Ne } from "./icon-button.js";
|
|
103
|
+
import yt from "./screen-reader-only.js";
|
|
104
|
+
import { useTheme as Ct } from "./hooks.js";
|
|
105
|
+
const F = /*#__PURE__*/ s.createContext({
|
|
106
106
|
small: !1
|
|
107
|
-
}),
|
|
107
|
+
}), wt = (e, a)=>typeof e == "function" ? e === null || e === void 0 ? void 0 : e({
|
|
108
108
|
centerY: a
|
|
109
109
|
}) : a ? /* @__PURE__ */ t("div", {
|
|
110
110
|
style: {
|
|
@@ -115,68 +115,73 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
115
115
|
children: /* @__PURE__ */ t("div", {
|
|
116
116
|
children: e
|
|
117
117
|
})
|
|
118
|
-
}) : e,
|
|
119
|
-
let { withChevron: e, headline: a, headlineRef: i, slotRef: l, title: r, titleAs:
|
|
120
|
-
const
|
|
118
|
+
}) : e, Nt = (param)=>{
|
|
119
|
+
let { withChevron: e, headline: a, headlineRef: i, slotRef: l, title: r, titleAs: u, titleLinesMax: m, subtitle: h, subtitleLinesMax: k, description: A, descriptionLinesMax: U, detail: f, asset: z, danger: I, badge: P, right: C, rightRef: Z, slot: D, labelId: b, disabled: v, control: V, withDivider: _ } = param;
|
|
120
|
+
const w = se(), R = [
|
|
121
121
|
a,
|
|
122
122
|
r,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
].filter(Boolean).length === 1, { textPresets:
|
|
127
|
-
return /* @__PURE__ */
|
|
128
|
-
className:
|
|
129
|
-
|
|
123
|
+
h,
|
|
124
|
+
A,
|
|
125
|
+
D
|
|
126
|
+
].filter(Boolean).length === 1, { textPresets: B } = Ct(), { small: g } = s.useContext(F), x = g ? B.text2 : B.text3, W = g ? M : ie, G = g ? M : ie, J = g ? M : ie;
|
|
127
|
+
return /* @__PURE__ */ N("div", {
|
|
128
|
+
className: c(dt, {
|
|
129
|
+
[st]: g
|
|
130
|
+
}),
|
|
131
|
+
id: b,
|
|
130
132
|
children: [
|
|
131
|
-
|
|
132
|
-
className:
|
|
133
|
-
[
|
|
134
|
-
[
|
|
133
|
+
z && /* @__PURE__ */ t("div", {
|
|
134
|
+
className: c(pe, {
|
|
135
|
+
[et]: g,
|
|
136
|
+
[ne]: R,
|
|
137
|
+
[L]: v
|
|
135
138
|
}),
|
|
136
139
|
"aria-hidden": !0,
|
|
137
140
|
"data-testid": "asset",
|
|
138
141
|
children: /* @__PURE__ */ t("div", {
|
|
139
|
-
className:
|
|
140
|
-
style:
|
|
141
|
-
color:
|
|
142
|
+
className: $e,
|
|
143
|
+
style: gt({
|
|
144
|
+
color: I ? ({
|
|
142
145
|
default: o.colors.textError,
|
|
143
146
|
alternative: o.colors.textError,
|
|
144
147
|
brand: o.colors.textErrorBrand,
|
|
145
148
|
negative: o.colors.textErrorNegative,
|
|
146
149
|
media: o.colors.textErrorBrand
|
|
147
|
-
})[
|
|
150
|
+
})[w] : ({
|
|
148
151
|
default: o.colors.textPrimary,
|
|
149
152
|
alternative: o.colors.textPrimary,
|
|
150
153
|
brand: o.colors.textPrimaryBrand,
|
|
151
154
|
negative: o.colors.textPrimaryNegative,
|
|
152
155
|
media: o.colors.textPrimaryMedia
|
|
153
|
-
})[
|
|
154
|
-
[
|
|
156
|
+
})[w],
|
|
157
|
+
[vt.mediaBorderRadius]: o.borderRadii.mediaSmall
|
|
155
158
|
}),
|
|
156
|
-
children:
|
|
159
|
+
children: z
|
|
157
160
|
})
|
|
158
161
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
className: Se,
|
|
162
|
+
/* @__PURE__ */ N("div", {
|
|
163
|
+
className: c(Se, {
|
|
164
|
+
[ot]: g
|
|
165
|
+
}),
|
|
161
166
|
children: [
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
className:
|
|
164
|
-
[L]:
|
|
167
|
+
/* @__PURE__ */ N("div", {
|
|
168
|
+
className: c(tt, {
|
|
169
|
+
[L]: v
|
|
165
170
|
}),
|
|
166
171
|
style: {
|
|
167
|
-
justifyContent:
|
|
172
|
+
justifyContent: R ? "center" : "flex-start"
|
|
168
173
|
},
|
|
169
174
|
children: [
|
|
170
|
-
/* @__PURE__ */ t(
|
|
171
|
-
mobileSize:
|
|
172
|
-
desktopSize:
|
|
173
|
-
mobileLineHeight:
|
|
174
|
-
desktopLineHeight:
|
|
175
|
-
weight:
|
|
176
|
-
color:
|
|
177
|
-
truncate:
|
|
175
|
+
/* @__PURE__ */ t(He, {
|
|
176
|
+
mobileSize: x.size.mobile,
|
|
177
|
+
desktopSize: x.size.desktop,
|
|
178
|
+
mobileLineHeight: x.lineHeight.mobile,
|
|
179
|
+
desktopLineHeight: x.lineHeight.desktop,
|
|
180
|
+
weight: B.rowTitle.weight,
|
|
181
|
+
color: I ? o.colors.textError : o.colors.textPrimary,
|
|
182
|
+
truncate: m,
|
|
178
183
|
hyphens: "auto",
|
|
179
|
-
as:
|
|
184
|
+
as: u,
|
|
180
185
|
dataAttributes: {
|
|
181
186
|
testid: "title"
|
|
182
187
|
},
|
|
@@ -188,7 +193,7 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
188
193
|
order: -1,
|
|
189
194
|
paddingBottom: 4
|
|
190
195
|
},
|
|
191
|
-
children: /* @__PURE__ */ t(
|
|
196
|
+
children: /* @__PURE__ */ t(M, {
|
|
192
197
|
regular: !0,
|
|
193
198
|
color: o.colors.textPrimary,
|
|
194
199
|
hyphens: "auto",
|
|
@@ -198,59 +203,59 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
198
203
|
children: a
|
|
199
204
|
})
|
|
200
205
|
}),
|
|
201
|
-
|
|
206
|
+
h && /* @__PURE__ */ t(H, {
|
|
202
207
|
paddingTop: 2,
|
|
203
|
-
children: /* @__PURE__ */ t(
|
|
208
|
+
children: /* @__PURE__ */ t(W, {
|
|
204
209
|
regular: !0,
|
|
205
210
|
color: o.colors.textPrimary,
|
|
206
|
-
truncate:
|
|
211
|
+
truncate: k,
|
|
207
212
|
hyphens: "auto",
|
|
208
213
|
dataAttributes: {
|
|
209
214
|
testid: "subtitle"
|
|
210
215
|
},
|
|
211
|
-
children:
|
|
216
|
+
children: h
|
|
212
217
|
})
|
|
213
218
|
}),
|
|
214
|
-
|
|
219
|
+
A && /* @__PURE__ */ t(H, {
|
|
215
220
|
paddingTop: 2,
|
|
216
221
|
children: /* @__PURE__ */ t(G, {
|
|
217
222
|
regular: !0,
|
|
218
223
|
color: o.colors.textSecondary,
|
|
219
|
-
truncate:
|
|
224
|
+
truncate: U,
|
|
220
225
|
hyphens: "auto",
|
|
221
226
|
dataAttributes: {
|
|
222
227
|
testid: "description"
|
|
223
228
|
},
|
|
224
|
-
children:
|
|
229
|
+
children: A
|
|
225
230
|
})
|
|
226
231
|
}),
|
|
227
|
-
|
|
232
|
+
D && /* @__PURE__ */ t(H, {
|
|
228
233
|
ref: l,
|
|
229
234
|
paddingTop: 2,
|
|
230
235
|
dataAttributes: {
|
|
231
236
|
testid: "slot"
|
|
232
237
|
},
|
|
233
|
-
children:
|
|
238
|
+
children: D
|
|
234
239
|
})
|
|
235
240
|
]
|
|
236
241
|
}),
|
|
237
|
-
|
|
242
|
+
P && /* @__PURE__ */ t(H, {
|
|
238
243
|
paddingLeft: 16,
|
|
239
244
|
children: /* @__PURE__ */ t("div", {
|
|
240
|
-
className:
|
|
241
|
-
[L]:
|
|
245
|
+
className: c(at, {
|
|
246
|
+
[L]: v
|
|
242
247
|
}),
|
|
243
|
-
children: /* @__PURE__ */ t(
|
|
244
|
-
value:
|
|
248
|
+
children: /* @__PURE__ */ t(ze, {
|
|
249
|
+
value: P === !0 ? void 0 : P
|
|
245
250
|
})
|
|
246
251
|
})
|
|
247
252
|
}),
|
|
248
|
-
(
|
|
249
|
-
className:
|
|
253
|
+
(f || C || e || V) && /* @__PURE__ */ N("div", {
|
|
254
|
+
className: it,
|
|
250
255
|
children: [
|
|
251
|
-
|
|
252
|
-
className:
|
|
253
|
-
[L]:
|
|
256
|
+
f && /* @__PURE__ */ t("div", {
|
|
257
|
+
className: c(rt, {
|
|
258
|
+
[L]: v
|
|
254
259
|
}),
|
|
255
260
|
children: /* @__PURE__ */ t(J, {
|
|
256
261
|
regular: !0,
|
|
@@ -259,27 +264,27 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
259
264
|
dataAttributes: {
|
|
260
265
|
testid: "detail"
|
|
261
266
|
},
|
|
262
|
-
children:
|
|
267
|
+
children: f
|
|
263
268
|
})
|
|
264
269
|
}),
|
|
265
|
-
|
|
266
|
-
className:
|
|
267
|
-
[
|
|
268
|
-
[L]:
|
|
270
|
+
C && /* @__PURE__ */ t("div", {
|
|
271
|
+
className: c({
|
|
272
|
+
[lt]: !!f,
|
|
273
|
+
[L]: v
|
|
269
274
|
}),
|
|
270
275
|
ref: Z,
|
|
271
276
|
"data-testid": "endSlot",
|
|
272
|
-
children:
|
|
277
|
+
children: wt(C, R)
|
|
273
278
|
}),
|
|
274
279
|
e && /* @__PURE__ */ t("div", {
|
|
275
280
|
style: {
|
|
276
|
-
paddingLeft:
|
|
281
|
+
paddingLeft: f || C ? 4 : 0
|
|
277
282
|
},
|
|
278
|
-
className:
|
|
279
|
-
[L]:
|
|
283
|
+
className: c(ne, {
|
|
284
|
+
[L]: v
|
|
280
285
|
}),
|
|
281
286
|
"data-testid": "chevron",
|
|
282
|
-
children: /* @__PURE__ */ t(
|
|
287
|
+
children: /* @__PURE__ */ t(We, {
|
|
283
288
|
size: 16,
|
|
284
289
|
color: {
|
|
285
290
|
default: o.colors.chevronIndicator,
|
|
@@ -287,42 +292,42 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
287
292
|
brand: o.colors.textSecondaryBrand,
|
|
288
293
|
negative: o.colors.textSecondaryNegative,
|
|
289
294
|
media: o.colors.textSecondaryBrand
|
|
290
|
-
}[
|
|
295
|
+
}[w]
|
|
291
296
|
})
|
|
292
297
|
}),
|
|
293
|
-
|
|
298
|
+
V && /* @__PURE__ */ t("div", {
|
|
294
299
|
style: {
|
|
295
|
-
paddingLeft:
|
|
300
|
+
paddingLeft: f || C ? 8 : 0
|
|
296
301
|
},
|
|
297
302
|
className: ne,
|
|
298
|
-
children:
|
|
303
|
+
children: V
|
|
299
304
|
})
|
|
300
305
|
]
|
|
301
306
|
})
|
|
302
307
|
]
|
|
303
308
|
}),
|
|
304
|
-
|
|
305
|
-
className:
|
|
309
|
+
_ && /* @__PURE__ */ t("div", {
|
|
310
|
+
className: nt,
|
|
306
311
|
"data-testid": "row-divider",
|
|
307
312
|
children: /* @__PURE__ */ t(Re, {})
|
|
308
313
|
})
|
|
309
314
|
]
|
|
310
315
|
});
|
|
311
|
-
},
|
|
316
|
+
}, Rt = (param)=>{
|
|
312
317
|
let { value: e, defaultValue: a, onChange: i } = param;
|
|
313
|
-
const l = e !== void 0, [r,
|
|
318
|
+
const l = e !== void 0, [r, u] = s.useState(!!a);
|
|
314
319
|
return [
|
|
315
320
|
l ? !!e : r,
|
|
316
321
|
()=>{
|
|
317
|
-
l ||
|
|
322
|
+
l || u(!r), i === null || i === void 0 ? void 0 : i(l ? !e : !r);
|
|
318
323
|
}
|
|
319
324
|
];
|
|
320
|
-
},
|
|
325
|
+
}, Bt = (e)=>[
|
|
321
326
|
"switch",
|
|
322
327
|
"checkbox",
|
|
323
328
|
"radioValue",
|
|
324
329
|
"iconButton"
|
|
325
|
-
].some((a)=>e[a] !== void 0),
|
|
330
|
+
].some((a)=>e[a] !== void 0), St = (e)=>{
|
|
326
331
|
let a = "";
|
|
327
332
|
const i = (l)=>{
|
|
328
333
|
if (l && /*#__PURE__*/ s.isValidElement(l)) {
|
|
@@ -335,24 +340,24 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
335
340
|
const a = (e === null || e === void 0 ? void 0 : e.innerText) || (e === null || e === void 0 ? void 0 : e.textContent) || "";
|
|
336
341
|
return process.env.NODE_ENV === "test" ? a.replace(/\s+/g, " ").replace(/([^ ])([A-ZÁÉÍÓÚÑ])/g, "$1 $2").trim() : a;
|
|
337
342
|
}, Te = /*#__PURE__*/ s.forwardRef((e, a)=>{
|
|
338
|
-
const i = s.useId(), l = se(), r = l === "brand" || l === "media" || l === "negative", { asset:
|
|
339
|
-
if (!n || !
|
|
343
|
+
const i = s.useId(), l = se(), r = l === "brand" || l === "media" || l === "negative", { small: u } = s.useContext(F), { asset: m, headline: h, title: k, titleAs: A, titleLinesMax: U, subtitle: f, subtitleLinesMax: z, description: I, descriptionLinesMax: P, detail: C, danger: Z, badge: D, role: b, touchableRole: v, slot: V, withChevron: _, dataAttributes: w, right: ce, "aria-label": R, tabIndex: B, atomicReading: g, hasDivider: x, onSelectedChange: W } = e, [G, J] = s.useState(""), [Le, ke] = s.useState(""), [Ae, Ie] = s.useState(""), Pe = St(m), [De, Ve] = s.useState(0), Oe = s.useCallback((n)=>{
|
|
344
|
+
if (!n || !x) return;
|
|
340
345
|
const d = n.querySelector(`.${Se}`);
|
|
341
346
|
if (!d) return;
|
|
342
347
|
const te = n.getBoundingClientRect().left, ae = d.getBoundingClientRect().left;
|
|
343
|
-
|
|
348
|
+
Ve(ae - te);
|
|
344
349
|
}, [
|
|
345
|
-
|
|
350
|
+
x
|
|
346
351
|
]), ue = [
|
|
347
|
-
|
|
352
|
+
k,
|
|
348
353
|
Pe,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
].filter(Boolean).join(" "), S = !!e.onPress || !!e.href || !!e.to,
|
|
354
|
+
G,
|
|
355
|
+
f,
|
|
356
|
+
I,
|
|
357
|
+
Le,
|
|
358
|
+
C,
|
|
359
|
+
Ae
|
|
360
|
+
].filter(Boolean).join(" "), S = !!e.onPress || !!e.href || !!e.to, O = R !== null && R !== void 0 ? R : S ? ue : void 0, me = je(), y = e.disabled || e.radioValue !== void 0 && me.disabled, K = !y && !r, Q = !y && r, he = Bt(e), Ee = he ? !1 : _ !== null && _ !== void 0 ? _ : S, be = {
|
|
356
361
|
href: e.href,
|
|
357
362
|
newTab: e.newTab,
|
|
358
363
|
loadOnTop: e.loadOnTop,
|
|
@@ -362,104 +367,104 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
362
367
|
onNavigate: e.onNavigate,
|
|
363
368
|
onPress: e.onPress,
|
|
364
369
|
trackingEvent: e.trackingEvent,
|
|
365
|
-
"aria-label":
|
|
370
|
+
"aria-label": O,
|
|
366
371
|
"aria-labelledby": e["aria-labelledby"],
|
|
367
372
|
"aria-description": e["aria-description"],
|
|
368
373
|
"aria-describedby": e["aria-describedby"],
|
|
369
374
|
"aria-current": e["aria-current"]
|
|
370
|
-
}, [X, fe] =
|
|
375
|
+
}, [X, fe] = Rt(e.switch || e.checkbox || {}), Y = e.switch || e.checkbox ? X : e.radioValue !== void 0 ? me.selectedValue === e.radioValue : void 0;
|
|
371
376
|
s.useEffect(()=>{
|
|
372
|
-
Y !== void 0 && (
|
|
377
|
+
Y !== void 0 && (W === null || W === void 0 ? void 0 : W(Y));
|
|
373
378
|
}, [
|
|
374
|
-
|
|
379
|
+
W,
|
|
375
380
|
Y
|
|
376
381
|
]);
|
|
377
382
|
const T = (n)=>{
|
|
378
383
|
var _n_withDivider;
|
|
379
|
-
return /* @__PURE__ */ t(
|
|
380
|
-
asset:
|
|
381
|
-
headline:
|
|
384
|
+
return /* @__PURE__ */ t(Nt, {
|
|
385
|
+
asset: m,
|
|
386
|
+
headline: h,
|
|
382
387
|
headlineRef: (d)=>{
|
|
383
|
-
d &&
|
|
388
|
+
d && J(de(d));
|
|
384
389
|
},
|
|
385
|
-
title:
|
|
386
|
-
titleAs:
|
|
387
|
-
subtitle:
|
|
388
|
-
description:
|
|
389
|
-
badge:
|
|
390
|
-
titleLinesMax:
|
|
391
|
-
subtitleLinesMax:
|
|
392
|
-
descriptionLinesMax:
|
|
393
|
-
detail:
|
|
394
|
-
danger:
|
|
395
|
-
right:
|
|
390
|
+
title: k,
|
|
391
|
+
titleAs: A,
|
|
392
|
+
subtitle: f,
|
|
393
|
+
description: I,
|
|
394
|
+
badge: D,
|
|
395
|
+
titleLinesMax: U,
|
|
396
|
+
subtitleLinesMax: z,
|
|
397
|
+
descriptionLinesMax: P,
|
|
398
|
+
detail: C,
|
|
399
|
+
danger: Z,
|
|
400
|
+
right: ce,
|
|
396
401
|
rightRef: (d)=>{
|
|
397
|
-
d &&
|
|
402
|
+
d && Ie(de(d));
|
|
398
403
|
},
|
|
399
404
|
control: n === null || n === void 0 ? void 0 : n.control,
|
|
400
405
|
role: n === null || n === void 0 ? void 0 : n.role,
|
|
401
|
-
slot:
|
|
406
|
+
slot: V,
|
|
402
407
|
slotRef: (d)=>{
|
|
403
|
-
d &&
|
|
408
|
+
d && ke(de(d));
|
|
404
409
|
},
|
|
405
410
|
labelId: n === null || n === void 0 ? void 0 : n.labelId,
|
|
406
|
-
disabled:
|
|
407
|
-
withChevron:
|
|
408
|
-
withDivider: (_n_withDivider = n === null || n === void 0 ? void 0 : n.withDivider) !== null && _n_withDivider !== void 0 ? _n_withDivider :
|
|
411
|
+
disabled: y,
|
|
412
|
+
withChevron: Ee,
|
|
413
|
+
withDivider: (_n_withDivider = n === null || n === void 0 ? void 0 : n.withDivider) !== null && _n_withDivider !== void 0 ? _n_withDivider : x
|
|
409
414
|
});
|
|
410
415
|
};
|
|
411
|
-
if (S && !
|
|
416
|
+
if (S && !he) return /* @__PURE__ */ t(ge, _object_spread_props(_object_spread({
|
|
412
417
|
ref: a,
|
|
413
|
-
className:
|
|
418
|
+
className: c(re, {
|
|
414
419
|
[oe]: K,
|
|
415
420
|
[le]: Q,
|
|
416
|
-
[
|
|
421
|
+
[Ce]: !y
|
|
417
422
|
})
|
|
418
423
|
}, be), {
|
|
419
|
-
role:
|
|
420
|
-
dataAttributes:
|
|
421
|
-
disabled:
|
|
422
|
-
tabIndex:
|
|
424
|
+
role: v,
|
|
425
|
+
dataAttributes: w,
|
|
426
|
+
disabled: y,
|
|
427
|
+
tabIndex: B,
|
|
423
428
|
children: /* @__PURE__ */ t("div", {
|
|
424
|
-
className:
|
|
429
|
+
className: E,
|
|
425
430
|
"aria-hidden": !!e.to || !!e.href || e.touchableRole === "link" || void 0,
|
|
426
431
|
"data-testid": "content-container",
|
|
427
432
|
children: T({
|
|
428
|
-
role:
|
|
433
|
+
role: b
|
|
429
434
|
})
|
|
430
435
|
})
|
|
431
436
|
}));
|
|
432
|
-
const $ = (n)=>/* @__PURE__ */
|
|
433
|
-
className:
|
|
434
|
-
ref:
|
|
435
|
-
},
|
|
437
|
+
const $ = (n)=>/* @__PURE__ */ N("div", _object_spread_props(_object_spread({
|
|
438
|
+
className: ct,
|
|
439
|
+
ref: xt(a, Oe)
|
|
440
|
+
}, q(w)), {
|
|
436
441
|
children: [
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
-
className:
|
|
442
|
+
/* @__PURE__ */ N("div", {
|
|
443
|
+
className: ut,
|
|
439
444
|
children: [
|
|
440
445
|
/* @__PURE__ */ t(ge, _object_spread_props(_object_spread({
|
|
441
|
-
disabled:
|
|
446
|
+
disabled: y
|
|
442
447
|
}, be), {
|
|
443
|
-
role:
|
|
444
|
-
className:
|
|
448
|
+
role: v,
|
|
449
|
+
className: c(mt, {
|
|
445
450
|
[oe]: K,
|
|
446
451
|
[le]: Q
|
|
447
452
|
}),
|
|
448
|
-
tabIndex:
|
|
453
|
+
tabIndex: B,
|
|
449
454
|
children: T({
|
|
450
455
|
labelId: i,
|
|
451
|
-
role:
|
|
456
|
+
role: b,
|
|
452
457
|
withDivider: !1
|
|
453
458
|
})
|
|
454
459
|
})),
|
|
455
460
|
/* @__PURE__ */ t("div", {
|
|
456
|
-
className:
|
|
461
|
+
className: ht
|
|
457
462
|
}),
|
|
458
463
|
n
|
|
459
464
|
]
|
|
460
465
|
}),
|
|
461
|
-
|
|
462
|
-
className:
|
|
466
|
+
x && /* @__PURE__ */ t("div", {
|
|
467
|
+
className: bt,
|
|
463
468
|
"data-testid": "row-divider-dual-action",
|
|
464
469
|
style: {
|
|
465
470
|
paddingLeft: De
|
|
@@ -468,48 +473,48 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
468
473
|
})
|
|
469
474
|
]
|
|
470
475
|
})), p = (n, d)=>/* @__PURE__ */ t("div", _object_spread_props(_object_spread({
|
|
471
|
-
className:
|
|
476
|
+
className: c(re, {
|
|
472
477
|
[oe]: K && d,
|
|
473
478
|
[le]: Q && d,
|
|
474
|
-
[
|
|
479
|
+
[Ce]: !y && d
|
|
475
480
|
}),
|
|
476
481
|
ref: a
|
|
477
|
-
},
|
|
482
|
+
}, q(w)), {
|
|
478
483
|
children: n
|
|
479
484
|
})), ve = (param)=>{
|
|
480
485
|
let { controlElement: n } = param;
|
|
481
486
|
return /* @__PURE__ */ t("div", {
|
|
482
|
-
className:
|
|
487
|
+
className: ft,
|
|
483
488
|
children: n
|
|
484
489
|
});
|
|
485
490
|
};
|
|
486
491
|
if (e.switch || e.checkbox) {
|
|
487
492
|
var _e_switch, _e_checkbox;
|
|
488
493
|
var _e_switch_name, _ref;
|
|
489
|
-
const n = e.switch ?
|
|
494
|
+
const n = e.switch ? Me : qe, d = (_ref = (_e_switch_name = (_e_switch = e.switch) === null || _e_switch === void 0 ? void 0 : _e_switch.name) !== null && _e_switch_name !== void 0 ? _e_switch_name : (_e_checkbox = e.checkbox) === null || _e_checkbox === void 0 ? void 0 : _e_checkbox.name) !== null && _ref !== void 0 ? _ref : i;
|
|
490
495
|
return S ? $(/* @__PURE__ */ t(n, {
|
|
491
|
-
disabled:
|
|
496
|
+
disabled: y,
|
|
492
497
|
name: d,
|
|
493
498
|
checked: X,
|
|
494
|
-
"aria-label":
|
|
499
|
+
"aria-label": O,
|
|
495
500
|
"aria-labelledby": i,
|
|
496
501
|
onChange: fe,
|
|
497
502
|
render: ve
|
|
498
503
|
})) : p(/* @__PURE__ */ t(n, {
|
|
499
|
-
disabled:
|
|
504
|
+
disabled: y,
|
|
500
505
|
name: d,
|
|
501
506
|
checked: X,
|
|
502
|
-
"aria-label":
|
|
507
|
+
"aria-label": O,
|
|
503
508
|
"aria-labelledby": i,
|
|
504
509
|
onChange: fe,
|
|
505
510
|
render: (param)=>{
|
|
506
511
|
let { controlElement: te, labelId: ae } = param;
|
|
507
512
|
return /* @__PURE__ */ t("div", {
|
|
508
|
-
className:
|
|
509
|
-
role:
|
|
513
|
+
className: E,
|
|
514
|
+
role: b,
|
|
510
515
|
children: T({
|
|
511
516
|
labelId: ae,
|
|
512
|
-
control: /* @__PURE__ */ t(
|
|
517
|
+
control: /* @__PURE__ */ t(j, {
|
|
513
518
|
space: "around",
|
|
514
519
|
children: te
|
|
515
520
|
})
|
|
@@ -520,21 +525,21 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
520
525
|
}
|
|
521
526
|
if (e.radioValue) return S ? $(/* @__PURE__ */ t(xe, {
|
|
522
527
|
value: e.radioValue,
|
|
523
|
-
"aria-label":
|
|
528
|
+
"aria-label": O,
|
|
524
529
|
"aria-labelledby": i,
|
|
525
530
|
render: ve
|
|
526
531
|
})) : p(/* @__PURE__ */ t(xe, {
|
|
527
532
|
value: e.radioValue,
|
|
528
|
-
"aria-label":
|
|
533
|
+
"aria-label": O,
|
|
529
534
|
"aria-labelledby": i,
|
|
530
535
|
render: (param)=>{
|
|
531
536
|
let { controlElement: n } = param;
|
|
532
537
|
return /* @__PURE__ */ t("div", {
|
|
533
|
-
className:
|
|
534
|
-
role:
|
|
538
|
+
className: E,
|
|
539
|
+
role: b,
|
|
535
540
|
children: T({
|
|
536
541
|
labelId: i,
|
|
537
|
-
control: /* @__PURE__ */ t(
|
|
542
|
+
control: /* @__PURE__ */ t(j, {
|
|
538
543
|
space: "around",
|
|
539
544
|
children: n
|
|
540
545
|
})
|
|
@@ -543,60 +548,62 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
543
548
|
}
|
|
544
549
|
}), !0);
|
|
545
550
|
if (e.iconButton) return S ? $(/* @__PURE__ */ t("div", {
|
|
546
|
-
className:
|
|
547
|
-
|
|
551
|
+
className: c(Xe, {
|
|
552
|
+
[Ye]: u
|
|
553
|
+
}),
|
|
554
|
+
children: e.iconButton.Icon ? /* @__PURE__ */ t(we, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
548
555
|
disabled: e.disabled
|
|
549
|
-
})) : /* @__PURE__ */ t(
|
|
556
|
+
})) : /* @__PURE__ */ t(Ne, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
550
557
|
disabled: e.disabled
|
|
551
558
|
}))
|
|
552
559
|
})) : p(/* @__PURE__ */ t("div", {
|
|
553
|
-
className:
|
|
560
|
+
className: E,
|
|
554
561
|
children: T({
|
|
555
562
|
labelId: i,
|
|
556
|
-
control: /* @__PURE__ */ t(
|
|
563
|
+
control: /* @__PURE__ */ t(j, {
|
|
557
564
|
space: "around",
|
|
558
|
-
children: e.iconButton.Icon ? /* @__PURE__ */ t(
|
|
565
|
+
children: e.iconButton.Icon ? /* @__PURE__ */ t(we, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
559
566
|
disabled: e.disabled,
|
|
560
|
-
role:
|
|
561
|
-
})) : /* @__PURE__ */ t(
|
|
567
|
+
role: b
|
|
568
|
+
})) : /* @__PURE__ */ t(Ne, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
562
569
|
disabled: e.disabled,
|
|
563
|
-
role:
|
|
570
|
+
role: b
|
|
564
571
|
}))
|
|
565
572
|
})
|
|
566
573
|
})
|
|
567
574
|
}));
|
|
568
|
-
const ee = !!
|
|
575
|
+
const ee = !!R || g;
|
|
569
576
|
return /* @__PURE__ */ t("div", {
|
|
570
|
-
role:
|
|
571
|
-
children: /* @__PURE__ */
|
|
572
|
-
className:
|
|
577
|
+
role: b,
|
|
578
|
+
children: /* @__PURE__ */ N("div", _object_spread_props(_object_spread({
|
|
579
|
+
className: c(re, E),
|
|
573
580
|
role: ee ? "text" : void 0
|
|
574
|
-
},
|
|
581
|
+
}, q(w)), {
|
|
575
582
|
ref: a,
|
|
576
|
-
tabIndex:
|
|
583
|
+
tabIndex: B,
|
|
577
584
|
children: [
|
|
578
585
|
/* @__PURE__ */ t("div", {
|
|
579
586
|
"aria-hidden": ee,
|
|
580
587
|
children: T({
|
|
581
|
-
role:
|
|
588
|
+
role: b
|
|
582
589
|
})
|
|
583
590
|
}),
|
|
584
|
-
ee && /* @__PURE__ */ t(
|
|
591
|
+
ee && /* @__PURE__ */ t(yt, {
|
|
585
592
|
children: /* @__PURE__ */ t("span", {
|
|
586
|
-
children:
|
|
593
|
+
children: R !== null && R !== void 0 ? R : ue
|
|
587
594
|
})
|
|
588
595
|
})
|
|
589
596
|
]
|
|
590
597
|
}))
|
|
591
598
|
});
|
|
592
|
-
}),
|
|
599
|
+
}), Qt = /*#__PURE__*/ s.forwardRef((_param, l)=>{
|
|
593
600
|
var { dataAttributes: e, role: a = "listitem" } = _param, i = _object_without_properties(_param, [
|
|
594
601
|
"dataAttributes",
|
|
595
602
|
"role"
|
|
596
603
|
]);
|
|
597
604
|
return /* @__PURE__ */ t("div", {
|
|
598
605
|
role: a,
|
|
599
|
-
className:
|
|
606
|
+
className: Ue,
|
|
600
607
|
children: /* @__PURE__ */ t(Te, _object_spread_props(_object_spread({}, i), {
|
|
601
608
|
hasDivider: !0,
|
|
602
609
|
ref: l,
|
|
@@ -605,35 +612,35 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
605
612
|
}, e)
|
|
606
613
|
}))
|
|
607
614
|
});
|
|
608
|
-
}),
|
|
609
|
-
let { children: e, role: a = "list", "aria-label": i, "aria-labelledby": l, "aria-live": r = "off", "aria-atomic":
|
|
610
|
-
return /* @__PURE__ */ t(
|
|
615
|
+
}), Xt = (param)=>{
|
|
616
|
+
let { children: e, role: a = "list", "aria-label": i, "aria-labelledby": l, "aria-live": r = "off", "aria-atomic": u = !1, dataAttributes: m, small: h = !1 } = param;
|
|
617
|
+
return /* @__PURE__ */ t(F.Provider, {
|
|
611
618
|
value: {
|
|
612
|
-
small:
|
|
619
|
+
small: h
|
|
613
620
|
},
|
|
614
621
|
children: /* @__PURE__ */ t("div", _object_spread_props(_object_spread({
|
|
615
622
|
role: a,
|
|
616
623
|
"aria-labelledby": l,
|
|
617
624
|
"aria-label": i,
|
|
618
625
|
"aria-live": r,
|
|
619
|
-
"aria-atomic":
|
|
620
|
-
},
|
|
626
|
+
"aria-atomic": u
|
|
627
|
+
}, q(_object_spread({
|
|
621
628
|
testid: "RowList"
|
|
622
|
-
},
|
|
629
|
+
}, m))), {
|
|
623
630
|
children: e
|
|
624
631
|
}))
|
|
625
632
|
});
|
|
626
|
-
},
|
|
633
|
+
}, Yt = /*#__PURE__*/ s.forwardRef((_param, i)=>{
|
|
627
634
|
var { dataAttributes: e } = _param, a = _object_without_properties(_param, [
|
|
628
635
|
"dataAttributes"
|
|
629
636
|
]);
|
|
630
637
|
const { selected: l } = a, r = _object_without_properties(a, [
|
|
631
638
|
"selected"
|
|
632
|
-
]),
|
|
639
|
+
]), u = se(), [m, h] = s.useState(!1);
|
|
633
640
|
var _r_variant;
|
|
634
|
-
return /* @__PURE__ */ t(
|
|
641
|
+
return /* @__PURE__ */ t(Fe, {
|
|
635
642
|
overflow: "visible",
|
|
636
|
-
className:
|
|
643
|
+
className: c(Ze, _e, (l !== null && l !== void 0 ? l : m) && Ge[u]),
|
|
637
644
|
variant: (_r_variant = r.variant) !== null && _r_variant !== void 0 ? _r_variant : "default",
|
|
638
645
|
ref: i,
|
|
639
646
|
dataAttributes: _object_spread({
|
|
@@ -641,29 +648,29 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
641
648
|
}, e),
|
|
642
649
|
children: /* @__PURE__ */ t(Te, _object_spread_props(_object_spread({}, r), {
|
|
643
650
|
hasDivider: !1,
|
|
644
|
-
onSelectedChange:
|
|
651
|
+
onSelectedChange: h
|
|
645
652
|
}))
|
|
646
653
|
});
|
|
647
|
-
}),
|
|
648
|
-
let { children: e, role: a = "list", dataAttributes: i, "aria-label": l, "aria-labelledby": r, "aria-live":
|
|
649
|
-
return /* @__PURE__ */ t(
|
|
654
|
+
}), $t = (param)=>{
|
|
655
|
+
let { children: e, role: a = "list", dataAttributes: i, "aria-label": l, "aria-labelledby": r, "aria-live": u = "off", "aria-atomic": m = !1, small: h = !1 } = param;
|
|
656
|
+
return /* @__PURE__ */ t(F.Provider, {
|
|
650
657
|
value: {
|
|
651
|
-
small:
|
|
658
|
+
small: h
|
|
652
659
|
},
|
|
653
|
-
children: /* @__PURE__ */ t(
|
|
660
|
+
children: /* @__PURE__ */ t(j, {
|
|
654
661
|
space: 16,
|
|
655
662
|
role: a,
|
|
656
663
|
"aria-label": l,
|
|
657
664
|
"aria-labelledby": r,
|
|
658
|
-
"aria-live":
|
|
659
|
-
"aria-atomic":
|
|
665
|
+
"aria-live": u,
|
|
666
|
+
"aria-atomic": m,
|
|
660
667
|
dataAttributes: _object_spread({
|
|
661
668
|
testid: "BoxedRowList"
|
|
662
669
|
}, i),
|
|
663
670
|
children: e
|
|
664
671
|
})
|
|
665
672
|
});
|
|
666
|
-
},
|
|
673
|
+
}, pt = (param)=>{
|
|
667
674
|
let { children: e, "aria-label": a, "aria-labelledby": i } = param;
|
|
668
675
|
return(// role="list" is needed for accesibility in Safari+VoiceOver. See: https://developer.mozilla.org/en-US/docs/Web/CSS/list-style#accessibility
|
|
669
676
|
// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
@@ -674,7 +681,7 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
674
681
|
"aria-labelledby": i,
|
|
675
682
|
children: e
|
|
676
683
|
}));
|
|
677
|
-
},
|
|
684
|
+
}, ea = (param)=>{
|
|
678
685
|
let { children: e, "aria-label": a, "aria-labelledby": i } = param;
|
|
679
686
|
return(// role="list" is needed for accesibility in Safari+VoiceOver. See: https://developer.mozilla.org/en-US/docs/Web/CSS/list-style#accessibility
|
|
680
687
|
// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
@@ -685,12 +692,12 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
685
692
|
"aria-labelledby": i,
|
|
686
693
|
children: e
|
|
687
694
|
}));
|
|
688
|
-
},
|
|
695
|
+
}, ta = (param)=>{
|
|
689
696
|
let { children: e, Icon: a, icon: i, withMarker: l = !0 } = param;
|
|
690
|
-
return l ? a || i ? /* @__PURE__ */
|
|
691
|
-
className:
|
|
697
|
+
return l ? a || i ? /* @__PURE__ */ N("li", {
|
|
698
|
+
className: Ke,
|
|
692
699
|
children: [
|
|
693
|
-
/* @__PURE__ */ t(
|
|
700
|
+
/* @__PURE__ */ t(H, {
|
|
694
701
|
paddingRight: {
|
|
695
702
|
mobile: 8,
|
|
696
703
|
desktop: 16
|
|
@@ -706,14 +713,14 @@ const ce = /*#__PURE__*/ s.createContext({
|
|
|
706
713
|
})
|
|
707
714
|
]
|
|
708
715
|
}) : /* @__PURE__ */ t("li", {
|
|
709
|
-
className:
|
|
716
|
+
className: Qe,
|
|
710
717
|
children: e
|
|
711
718
|
}) : /* @__PURE__ */ t("li", {
|
|
712
|
-
className:
|
|
719
|
+
className: Je,
|
|
713
720
|
children: /* @__PURE__ */ t("div", {
|
|
714
721
|
className: ye,
|
|
715
722
|
children: e
|
|
716
723
|
})
|
|
717
724
|
});
|
|
718
725
|
};
|
|
719
|
-
export {
|
|
726
|
+
export { Yt as BoxedRow, $t as BoxedRowList, Nt as Content, F as ListContext, ta as ListItem, ea as OrderedList, Qt as Row, Xt as RowList, pt as UnorderedList };
|