@telia/teddy 0.7.30 → 0.7.32
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/components/checkbox-card-group/checkbox-card-group-indicator.cjs +20 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.js +20 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-root.cjs +10 -10
- package/dist/components/checkbox-card-group/checkbox-card-group-root.js +10 -10
- package/dist/style.css +56 -47
- package/package.json +1 -1
|
@@ -113,7 +113,6 @@ const Indicator$1 = React.forwardRef(
|
|
|
113
113
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: forwardRef, className: classes, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(components_checkbox_index.Checkbox, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
114
114
|
components_checkbox_index.Checkbox.Trigger,
|
|
115
115
|
{
|
|
116
|
-
className: components_checkboxCardGroup_checkboxCardGroupRoot.styles[`${components_checkboxCardGroup_checkboxCardGroupRoot.rootClassName}__trigger`],
|
|
117
116
|
checked,
|
|
118
117
|
onCheckedChange,
|
|
119
118
|
disabled
|
|
@@ -146,6 +145,22 @@ const Item$2 = React.forwardRef(
|
|
|
146
145
|
const context = React.useContext(ItemContext$1);
|
|
147
146
|
const ref = utils_composeRefs.useComposedRefs(forwardedRef, context == null ? void 0 : context.triggerRef);
|
|
148
147
|
const id = props.id || (context == null ? void 0 : context.id);
|
|
148
|
+
const handleCardClick = (event) => {
|
|
149
|
+
if (disabled || !onCheckedChange) return;
|
|
150
|
+
const target = event.target;
|
|
151
|
+
if (target.closest('input, button, a, [role="button"]')) return;
|
|
152
|
+
event.preventDefault();
|
|
153
|
+
event.stopPropagation();
|
|
154
|
+
onCheckedChange(!checked);
|
|
155
|
+
};
|
|
156
|
+
const handleKeyDown = (event) => {
|
|
157
|
+
if (disabled || !onCheckedChange) return;
|
|
158
|
+
if (event.key === " " || event.key === "Enter") {
|
|
159
|
+
event.preventDefault();
|
|
160
|
+
event.stopPropagation();
|
|
161
|
+
onCheckedChange(!checked);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
149
164
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
150
165
|
"div",
|
|
151
166
|
{
|
|
@@ -156,6 +171,10 @@ const Item$2 = React.forwardRef(
|
|
|
156
171
|
"data-state": checked ? "checked" : "unchecked",
|
|
157
172
|
"data-disabled": disabled ? "" : void 0,
|
|
158
173
|
"aria-checked": checked,
|
|
174
|
+
onClick: handleCardClick,
|
|
175
|
+
role: "checkbox",
|
|
176
|
+
tabIndex: disabled ? -1 : 0,
|
|
177
|
+
onKeyDown: handleKeyDown,
|
|
159
178
|
children: [
|
|
160
179
|
imageUrl ? /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { className: clsx([components_checkboxCardGroup_checkboxCardGroupRoot.styles[`${components_checkboxCardGroup_checkboxCardGroupRoot.rootClassName}__illustration`]], className), justify: "center", align: "center", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: imageUrl, alt: value }) }) : null,
|
|
161
180
|
/* @__PURE__ */ jsxRuntime.jsx(Content$2, { children: React.Children.map(children, (child) => {
|
|
@@ -92,7 +92,6 @@ const Indicator$1 = React__default.forwardRef(
|
|
|
92
92
|
return /* @__PURE__ */ jsx("div", { ref: forwardRef, className: classes, ...props, children: /* @__PURE__ */ jsx(Checkbox, { children: /* @__PURE__ */ jsx(
|
|
93
93
|
Checkbox.Trigger,
|
|
94
94
|
{
|
|
95
|
-
className: styles$2[`${rootClassName$2}__trigger`],
|
|
96
95
|
checked,
|
|
97
96
|
onCheckedChange,
|
|
98
97
|
disabled
|
|
@@ -125,6 +124,22 @@ const Item$2 = React__default.forwardRef(
|
|
|
125
124
|
const context = React__default.useContext(ItemContext$1);
|
|
126
125
|
const ref = useComposedRefs(forwardedRef, context == null ? void 0 : context.triggerRef);
|
|
127
126
|
const id = props.id || (context == null ? void 0 : context.id);
|
|
127
|
+
const handleCardClick = (event) => {
|
|
128
|
+
if (disabled || !onCheckedChange) return;
|
|
129
|
+
const target = event.target;
|
|
130
|
+
if (target.closest('input, button, a, [role="button"]')) return;
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
event.stopPropagation();
|
|
133
|
+
onCheckedChange(!checked);
|
|
134
|
+
};
|
|
135
|
+
const handleKeyDown = (event) => {
|
|
136
|
+
if (disabled || !onCheckedChange) return;
|
|
137
|
+
if (event.key === " " || event.key === "Enter") {
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
event.stopPropagation();
|
|
140
|
+
onCheckedChange(!checked);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
128
143
|
return /* @__PURE__ */ jsxs(
|
|
129
144
|
"div",
|
|
130
145
|
{
|
|
@@ -135,6 +150,10 @@ const Item$2 = React__default.forwardRef(
|
|
|
135
150
|
"data-state": checked ? "checked" : "unchecked",
|
|
136
151
|
"data-disabled": disabled ? "" : void 0,
|
|
137
152
|
"aria-checked": checked,
|
|
153
|
+
onClick: handleCardClick,
|
|
154
|
+
role: "checkbox",
|
|
155
|
+
tabIndex: disabled ? -1 : 0,
|
|
156
|
+
onKeyDown: handleKeyDown,
|
|
138
157
|
children: [
|
|
139
158
|
imageUrl ? /* @__PURE__ */ jsx(Flex, { className: clsx([styles$2[`${rootClassName$2}__illustration`]], className), justify: "center", align: "center", children: /* @__PURE__ */ jsx("img", { src: imageUrl, alt: value }) }) : null,
|
|
140
159
|
/* @__PURE__ */ jsx(Content$2, { children: React__default.Children.map(children, (child) => {
|
|
@@ -4,16 +4,16 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const styles = {
|
|
7
|
-
"teddy-checkbox-card-group": "_teddy-checkbox-card-
|
|
8
|
-
"teddy-checkbox-card-group__card-item": "_teddy-checkbox-card-group__card-
|
|
9
|
-
"teddy-checkbox-card-
|
|
10
|
-
"teddy-checkbox-card-
|
|
11
|
-
"teddy-checkbox-card-
|
|
12
|
-
"teddy-checkbox-card-
|
|
13
|
-
"teddy-checkbox-card-
|
|
14
|
-
"teddy-checkbox-card-
|
|
15
|
-
"teddy-checkbox-card-
|
|
16
|
-
"teddy-checkbox-card-group__card-group-label--required": "_teddy-checkbox-card-group__card-group-label--
|
|
7
|
+
"teddy-checkbox-card-group": "_teddy-checkbox-card-group_1034m_1",
|
|
8
|
+
"teddy-checkbox-card-group__card-item": "_teddy-checkbox-card-group__card-item_1034m_9",
|
|
9
|
+
"teddy-checkbox-card-group__trigger": "_teddy-checkbox-card-group__trigger_1034m_14",
|
|
10
|
+
"teddy-checkbox-card-group__indicator": "_teddy-checkbox-card-group__indicator_1034m_14",
|
|
11
|
+
"teddy-checkbox-card-group__card-group-label": "_teddy-checkbox-card-group__card-group-label_1034m_21",
|
|
12
|
+
"teddy-checkbox-card-group__content-wrapper": "_teddy-checkbox-card-group__content-wrapper_1034m_21",
|
|
13
|
+
"teddy-checkbox-card-group__title-wrapper": "_teddy-checkbox-card-group__title-wrapper_1034m_24",
|
|
14
|
+
"teddy-checkbox-card-group__illustration": "_teddy-checkbox-card-group__illustration_1034m_33",
|
|
15
|
+
"teddy-checkbox-card-group__checkbox-wrapper": "_teddy-checkbox-card-group__checkbox-wrapper_1034m_36",
|
|
16
|
+
"teddy-checkbox-card-group__card-group-label--required": "_teddy-checkbox-card-group__card-group-label--required_1034m_221"
|
|
17
17
|
};
|
|
18
18
|
const rootClassName = "teddy-checkbox-card-group";
|
|
19
19
|
const RootContext = React.createContext(void 0);
|
|
@@ -2,16 +2,16 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
const styles = {
|
|
5
|
-
"teddy-checkbox-card-group": "_teddy-checkbox-card-
|
|
6
|
-
"teddy-checkbox-card-group__card-item": "_teddy-checkbox-card-group__card-
|
|
7
|
-
"teddy-checkbox-card-
|
|
8
|
-
"teddy-checkbox-card-
|
|
9
|
-
"teddy-checkbox-card-
|
|
10
|
-
"teddy-checkbox-card-
|
|
11
|
-
"teddy-checkbox-card-
|
|
12
|
-
"teddy-checkbox-card-
|
|
13
|
-
"teddy-checkbox-card-
|
|
14
|
-
"teddy-checkbox-card-group__card-group-label--required": "_teddy-checkbox-card-group__card-group-label--
|
|
5
|
+
"teddy-checkbox-card-group": "_teddy-checkbox-card-group_1034m_1",
|
|
6
|
+
"teddy-checkbox-card-group__card-item": "_teddy-checkbox-card-group__card-item_1034m_9",
|
|
7
|
+
"teddy-checkbox-card-group__trigger": "_teddy-checkbox-card-group__trigger_1034m_14",
|
|
8
|
+
"teddy-checkbox-card-group__indicator": "_teddy-checkbox-card-group__indicator_1034m_14",
|
|
9
|
+
"teddy-checkbox-card-group__card-group-label": "_teddy-checkbox-card-group__card-group-label_1034m_21",
|
|
10
|
+
"teddy-checkbox-card-group__content-wrapper": "_teddy-checkbox-card-group__content-wrapper_1034m_21",
|
|
11
|
+
"teddy-checkbox-card-group__title-wrapper": "_teddy-checkbox-card-group__title-wrapper_1034m_24",
|
|
12
|
+
"teddy-checkbox-card-group__illustration": "_teddy-checkbox-card-group__illustration_1034m_33",
|
|
13
|
+
"teddy-checkbox-card-group__checkbox-wrapper": "_teddy-checkbox-card-group__checkbox-wrapper_1034m_36",
|
|
14
|
+
"teddy-checkbox-card-group__card-group-label--required": "_teddy-checkbox-card-group__card-group-label--required_1034m_221"
|
|
15
15
|
};
|
|
16
16
|
const rootClassName = "teddy-checkbox-card-group";
|
|
17
17
|
const RootContext = React__default.createContext(void 0);
|
package/dist/style.css
CHANGED
|
@@ -3206,39 +3206,46 @@
|
|
|
3206
3206
|
}
|
|
3207
3207
|
._teddy-visually-hidden--focusable_15nus_15:not(:focus):not(:focus-within):not(caption) {
|
|
3208
3208
|
position: absolute;
|
|
3209
|
-
}._teddy-checkbox-card-
|
|
3209
|
+
}._teddy-checkbox-card-group_1034m_1 {
|
|
3210
3210
|
display: flex;
|
|
3211
3211
|
flex-direction: column;
|
|
3212
3212
|
gap: var(--teddy-spacing-200);
|
|
3213
3213
|
}
|
|
3214
|
-
._teddy-checkbox-card-
|
|
3214
|
+
._teddy-checkbox-card-group_1034m_1[data-orientation=horizontal] {
|
|
3215
3215
|
flex-direction: row;
|
|
3216
3216
|
}
|
|
3217
|
-
._teddy-checkbox-card-
|
|
3217
|
+
._teddy-checkbox-card-group_1034m_1[data-orientation=horizontal] ._teddy-checkbox-card-group__card-item_1034m_9 {
|
|
3218
3218
|
flex: 0 1 auto;
|
|
3219
3219
|
min-width: 200px;
|
|
3220
3220
|
max-width: 300px;
|
|
3221
3221
|
}
|
|
3222
|
-
._teddy-checkbox-card-
|
|
3222
|
+
._teddy-checkbox-card-group_1034m_1 ._teddy-checkbox-card-group__trigger_1034m_14[data-state=checked] ._teddy-checkbox-card-group__indicator_1034m_14 {
|
|
3223
|
+
opacity: 1;
|
|
3224
|
+
}
|
|
3225
|
+
._teddy-checkbox-card-group_1034m_1 ._teddy-checkbox-card-group__indicator_1034m_14 {
|
|
3226
|
+
opacity: 0;
|
|
3227
|
+
transition: opacity var(--teddy-motion-duration-150) ease;
|
|
3228
|
+
}
|
|
3229
|
+
._teddy-checkbox-card-group_1034m_1[data-direction=right] ._teddy-checkbox-card-group__card-group-label_1034m_21, ._teddy-checkbox-card-group_1034m_1[data-direction=right] ._teddy-checkbox-card-group__content-wrapper_1034m_21 {
|
|
3223
3230
|
text-align: start;
|
|
3224
3231
|
}
|
|
3225
|
-
._teddy-checkbox-card-
|
|
3232
|
+
._teddy-checkbox-card-group_1034m_1[data-direction=right] ._teddy-checkbox-card-group__title-wrapper_1034m_24 {
|
|
3226
3233
|
justify-content: start;
|
|
3227
3234
|
}
|
|
3228
|
-
._teddy-checkbox-card-
|
|
3235
|
+
._teddy-checkbox-card-group_1034m_1[data-direction=right] ._teddy-checkbox-card-group__content-wrapper_1034m_21 {
|
|
3229
3236
|
padding-right: calc(24px + var(--teddy-spacing-200));
|
|
3230
3237
|
}
|
|
3231
|
-
._teddy-checkbox-card-
|
|
3238
|
+
._teddy-checkbox-card-group_1034m_1[data-direction=right] ._teddy-checkbox-card-group__card-item_1034m_9 {
|
|
3232
3239
|
flex-direction: row;
|
|
3233
3240
|
}
|
|
3234
|
-
._teddy-checkbox-card-
|
|
3241
|
+
._teddy-checkbox-card-group_1034m_1[data-direction=right] ._teddy-checkbox-card-group__illustration_1034m_33 {
|
|
3235
3242
|
order: -1;
|
|
3236
3243
|
}
|
|
3237
|
-
._teddy-checkbox-card-
|
|
3244
|
+
._teddy-checkbox-card-group_1034m_1[data-direction=right] ._teddy-checkbox-card-group__checkbox-wrapper_1034m_36 {
|
|
3238
3245
|
right: 28px;
|
|
3239
3246
|
left: auto;
|
|
3240
3247
|
}
|
|
3241
|
-
._teddy-checkbox-card-group__card-
|
|
3248
|
+
._teddy-checkbox-card-group__card-item_1034m_9 {
|
|
3242
3249
|
padding: 0;
|
|
3243
3250
|
display: flex;
|
|
3244
3251
|
flex: 1;
|
|
@@ -3251,52 +3258,52 @@
|
|
|
3251
3258
|
background-color: var(--teddy-color-brand-white);
|
|
3252
3259
|
color: var(--teddy-color-text-default);
|
|
3253
3260
|
}
|
|
3254
|
-
._teddy-checkbox-card-group__card-
|
|
3261
|
+
._teddy-checkbox-card-group__card-item_1034m_9::before, ._teddy-checkbox-card-group__card-item_1034m_9::after {
|
|
3255
3262
|
position: absolute;
|
|
3256
3263
|
inset: 0;
|
|
3257
3264
|
content: "";
|
|
3258
3265
|
display: block;
|
|
3259
3266
|
border-radius: inherit;
|
|
3260
3267
|
}
|
|
3261
|
-
._teddy-checkbox-card-group__card-
|
|
3268
|
+
._teddy-checkbox-card-group__card-item_1034m_9:focus::after {
|
|
3262
3269
|
outline: var(--teddy-border-width-sm) solid var(--teddy-color-border-interactive-focus);
|
|
3263
3270
|
outline-offset: var(--teddy-spacing-50);
|
|
3264
3271
|
opacity: 1;
|
|
3265
3272
|
}
|
|
3266
|
-
._teddy-checkbox-card-group__card-
|
|
3273
|
+
._teddy-checkbox-card-group__card-item_1034m_9:focus:not(:focus-visible)::after {
|
|
3267
3274
|
opacity: 0;
|
|
3268
3275
|
}
|
|
3269
|
-
._teddy-checkbox-card-group__card-
|
|
3276
|
+
._teddy-checkbox-card-group__card-item_1034m_9:not([data-disabled])[aria-checked=true]::before {
|
|
3270
3277
|
outline: var(--teddy-border-width-sm) solid var(--teddy-color-border-interactive-primary);
|
|
3271
3278
|
}
|
|
3272
|
-
._teddy-checkbox-card-group__card-
|
|
3279
|
+
._teddy-checkbox-card-group__card-item_1034m_9:not([data-disabled])[aria-checked=true] ._teddy-checkbox-card-group__trigger_1034m_14::after, ._teddy-checkbox-card-group__card-item_1034m_9:not([data-disabled])[aria-checked=true] ._teddy-checkbox-card-group__trigger_1034m_14::before {
|
|
3273
3280
|
opacity: 1;
|
|
3274
3281
|
border-width: var(--teddy-border-width-xs);
|
|
3275
3282
|
}
|
|
3276
|
-
._teddy-checkbox-card-group__card-
|
|
3283
|
+
._teddy-checkbox-card-group__card-item_1034m_9:not([data-disabled]):hover:not(:active):not([data-state=checked])::before {
|
|
3277
3284
|
outline: var(--teddy-border-width-sm) solid var(--teddy-color-border-interactive-primary);
|
|
3278
3285
|
}
|
|
3279
|
-
._teddy-checkbox-card-group__card-
|
|
3286
|
+
._teddy-checkbox-card-group__card-item_1034m_9:not([data-disabled]):hover:not(:active):not([data-state=checked]) ._teddy-checkbox-card-group__trigger_1034m_14::after {
|
|
3280
3287
|
opacity: 1;
|
|
3281
3288
|
}
|
|
3282
|
-
._teddy-checkbox-card-group__card-
|
|
3289
|
+
._teddy-checkbox-card-group__card-item_1034m_9:not([data-disabled]):active:not([aria-checked=true])::before {
|
|
3283
3290
|
outline: var(--teddy-border-width-xs) solid var(--teddy-color-border-interactive-primary);
|
|
3284
3291
|
}
|
|
3285
|
-
._teddy-checkbox-card-group__card-
|
|
3292
|
+
._teddy-checkbox-card-group__card-item_1034m_9:not([data-disabled]):active:not([aria-checked=true]) ._teddy-checkbox-card-group__trigger_1034m_14::after, ._teddy-checkbox-card-group__card-item_1034m_9:not([data-disabled]):active:not([aria-checked=true]) ._teddy-checkbox-card-group__trigger_1034m_14::before {
|
|
3286
3293
|
opacity: 1;
|
|
3287
3294
|
background-color: var(--teddy-color-brand-light-purple);
|
|
3288
3295
|
}
|
|
3289
|
-
._teddy-checkbox-card-group__card-
|
|
3296
|
+
._teddy-checkbox-card-group__card-item_1034m_9[data-disabled] {
|
|
3290
3297
|
cursor: default;
|
|
3291
3298
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
3292
3299
|
}
|
|
3293
|
-
._teddy-checkbox-card-group__card-
|
|
3300
|
+
._teddy-checkbox-card-group__card-item_1034m_9[data-disabled]:has([aria-checked=true]) {
|
|
3294
3301
|
border-width: var(--teddy-border-width-sm);
|
|
3295
3302
|
}
|
|
3296
|
-
._teddy-checkbox-card-group__card-
|
|
3303
|
+
._teddy-checkbox-card-group__card-item_1034m_9[data-disabled] ._teddy-checkbox-card-group__content-wrapper_1034m_21 * {
|
|
3297
3304
|
color: var(--teddy-color-text-weak);
|
|
3298
3305
|
}
|
|
3299
|
-
._teddy-checkbox-card-
|
|
3306
|
+
._teddy-checkbox-card-group__trigger_1034m_14 {
|
|
3300
3307
|
all: unset;
|
|
3301
3308
|
flex-shrink: 0;
|
|
3302
3309
|
cursor: pointer;
|
|
@@ -3307,8 +3314,9 @@
|
|
|
3307
3314
|
height: var(--teddy-spacing-300);
|
|
3308
3315
|
position: relative;
|
|
3309
3316
|
}
|
|
3310
|
-
._teddy-checkbox-card-
|
|
3317
|
+
._teddy-checkbox-card-group__trigger_1034m_14::before, ._teddy-checkbox-card-group__trigger_1034m_14::after {
|
|
3311
3318
|
content: "";
|
|
3319
|
+
z-index: 1;
|
|
3312
3320
|
position: absolute;
|
|
3313
3321
|
display: block;
|
|
3314
3322
|
width: var(--teddy-spacing-300);
|
|
@@ -3320,41 +3328,41 @@
|
|
|
3320
3328
|
border: var(--teddy-border-width-xs) solid var(--teddy-color-border-interactive-subtle);
|
|
3321
3329
|
}
|
|
3322
3330
|
@media (prefers-reduced-motion: no-preference) {
|
|
3323
|
-
._teddy-checkbox-card-
|
|
3331
|
+
._teddy-checkbox-card-group__trigger_1034m_14::before, ._teddy-checkbox-card-group__trigger_1034m_14::after {
|
|
3324
3332
|
transition: border-color var(--teddy-motion-duration-150) ease;
|
|
3325
3333
|
}
|
|
3326
3334
|
}
|
|
3327
|
-
._teddy-checkbox-card-
|
|
3335
|
+
._teddy-checkbox-card-group__trigger_1034m_14::after {
|
|
3328
3336
|
opacity: 0;
|
|
3329
3337
|
background-color: transparent;
|
|
3330
3338
|
border-color: var(--teddy-color-border-interactive-subtle-hover);
|
|
3331
3339
|
border-width: var(--teddy-border-width-sm);
|
|
3332
3340
|
}
|
|
3333
3341
|
@media (prefers-reduced-motion: no-preference) {
|
|
3334
|
-
._teddy-checkbox-card-
|
|
3342
|
+
._teddy-checkbox-card-group__trigger_1034m_14::after {
|
|
3335
3343
|
transition: opacity var(--teddy-motion-duration-150) ease;
|
|
3336
3344
|
}
|
|
3337
3345
|
}
|
|
3338
|
-
._teddy-checkbox-card-
|
|
3346
|
+
._teddy-checkbox-card-group__trigger_1034m_14[data-state=checked]::before {
|
|
3339
3347
|
border-color: var(--teddy-color-border-interactive-primary);
|
|
3340
3348
|
}
|
|
3341
|
-
._teddy-checkbox-card-
|
|
3349
|
+
._teddy-checkbox-card-group__trigger_1034m_14:hover:not(:active):not(._teddy-checkbox-card-group__trigger_1034m_14[data-state=checked]):not(._teddy-checkbox-card-group__trigger_1034m_14[data-disabled])::after {
|
|
3342
3350
|
opacity: 1;
|
|
3343
3351
|
}
|
|
3344
|
-
._teddy-checkbox-card-
|
|
3352
|
+
._teddy-checkbox-card-group__trigger_1034m_14:active::before {
|
|
3345
3353
|
border-color: var(--teddy-color-border-interactive-subtle-hover);
|
|
3346
3354
|
}
|
|
3347
|
-
._teddy-checkbox-card-
|
|
3355
|
+
._teddy-checkbox-card-group__trigger_1034m_14[data-disabled] {
|
|
3348
3356
|
cursor: default;
|
|
3349
3357
|
}
|
|
3350
|
-
._teddy-checkbox-card-
|
|
3358
|
+
._teddy-checkbox-card-group__trigger_1034m_14[data-disabled]::before {
|
|
3351
3359
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
3352
3360
|
border-color: var(--teddy-color-border-medium);
|
|
3353
3361
|
}
|
|
3354
|
-
._teddy-checkbox-card-
|
|
3362
|
+
._teddy-checkbox-card-group__trigger_1034m_14[data-disabled][data-state=checked]::before {
|
|
3355
3363
|
background-color: var(--teddy-color-background-primary);
|
|
3356
3364
|
}
|
|
3357
|
-
._teddy-checkbox-card-
|
|
3365
|
+
._teddy-checkbox-card-group__indicator_1034m_14 {
|
|
3358
3366
|
display: flex;
|
|
3359
3367
|
align-items: center;
|
|
3360
3368
|
justify-content: center;
|
|
@@ -3362,7 +3370,7 @@
|
|
|
3362
3370
|
height: 100%;
|
|
3363
3371
|
position: relative;
|
|
3364
3372
|
}
|
|
3365
|
-
._teddy-checkbox-card-
|
|
3373
|
+
._teddy-checkbox-card-group__indicator_1034m_14::after {
|
|
3366
3374
|
content: "";
|
|
3367
3375
|
display: block;
|
|
3368
3376
|
inset: 0;
|
|
@@ -3370,54 +3378,55 @@
|
|
|
3370
3378
|
height: var(--teddy-spacing-200);
|
|
3371
3379
|
border-radius: var(--teddy-border-radius-xs);
|
|
3372
3380
|
background-color: var(--teddy-color-background-interactive-primary);
|
|
3381
|
+
z-index: 2;
|
|
3373
3382
|
}
|
|
3374
|
-
._teddy-checkbox-card-
|
|
3383
|
+
._teddy-checkbox-card-group__indicator_1034m_14[data-disabled]::after {
|
|
3375
3384
|
background-color: var(--teddy-color-text-weak);
|
|
3376
3385
|
}
|
|
3377
|
-
._teddy-checkbox-card-group__content-
|
|
3386
|
+
._teddy-checkbox-card-group__content-wrapper_1034m_21 {
|
|
3378
3387
|
padding: var(--teddy-spacing-200);
|
|
3379
3388
|
text-align: start;
|
|
3380
3389
|
flex: 1;
|
|
3381
3390
|
}
|
|
3382
|
-
._teddy-checkbox-card-group__title-
|
|
3391
|
+
._teddy-checkbox-card-group__title-wrapper_1034m_24 {
|
|
3383
3392
|
justify-content: space-between;
|
|
3384
3393
|
}
|
|
3385
|
-
._teddy-checkbox-card-group__checkbox-
|
|
3394
|
+
._teddy-checkbox-card-group__checkbox-wrapper_1034m_36 {
|
|
3386
3395
|
position: absolute;
|
|
3387
3396
|
top: 14px;
|
|
3388
3397
|
z-index: 1;
|
|
3389
3398
|
}
|
|
3390
|
-
._teddy-checkbox-card-
|
|
3399
|
+
._teddy-checkbox-card-group_1034m_1:not([data-direction=right]) ._teddy-checkbox-card-group__checkbox-wrapper_1034m_36 {
|
|
3391
3400
|
left: 20px;
|
|
3392
3401
|
}
|
|
3393
|
-
._teddy-checkbox-card-
|
|
3402
|
+
._teddy-checkbox-card-group_1034m_1:not([data-direction=right]) ._teddy-checkbox-card-group__card-item_1034m_9 {
|
|
3394
3403
|
flex-direction: row-reverse;
|
|
3395
3404
|
}
|
|
3396
|
-
._teddy-checkbox-card-
|
|
3405
|
+
._teddy-checkbox-card-group_1034m_1:not([data-direction=right]) ._teddy-checkbox-card-group__content-wrapper_1034m_21 {
|
|
3397
3406
|
padding-left: calc(40px + var(--teddy-spacing-200));
|
|
3398
3407
|
}
|
|
3399
|
-
._teddy-checkbox-card-
|
|
3408
|
+
._teddy-checkbox-card-group_1034m_1:not([data-direction=right]) ._teddy-checkbox-card-group__illustration_1034m_33 img {
|
|
3400
3409
|
border-radius: 0 var(--teddy-border-radius-md) var(--teddy-border-radius-md) 0;
|
|
3401
3410
|
}
|
|
3402
|
-
._teddy-checkbox-card-
|
|
3411
|
+
._teddy-checkbox-card-group__illustration_1034m_33 {
|
|
3403
3412
|
width: var(--teddy-spacing-1000);
|
|
3404
3413
|
overflow: hidden;
|
|
3405
3414
|
flex-shrink: 0;
|
|
3406
3415
|
position: relative;
|
|
3407
3416
|
}
|
|
3408
|
-
._teddy-checkbox-card-
|
|
3417
|
+
._teddy-checkbox-card-group__illustration_1034m_33 img {
|
|
3409
3418
|
width: 100%;
|
|
3410
3419
|
height: 100%;
|
|
3411
3420
|
object-fit: cover;
|
|
3412
3421
|
border-radius: var(--teddy-border-radius-md) 0 0 var(--teddy-border-radius-md);
|
|
3413
3422
|
}
|
|
3414
|
-
._teddy-checkbox-card-group__card-group-
|
|
3423
|
+
._teddy-checkbox-card-group__card-group-label_1034m_21 {
|
|
3415
3424
|
margin: 0 0 var(--teddy-spacing-150);
|
|
3416
3425
|
font-weight: var(--teddy-typography-weight-medium);
|
|
3417
3426
|
font-size: var(--teddy-typography-scale-100);
|
|
3418
3427
|
position: relative;
|
|
3419
3428
|
}
|
|
3420
|
-
._teddy-checkbox-card-group__card-group-label--
|
|
3429
|
+
._teddy-checkbox-card-group__card-group-label--required_1034m_221::before {
|
|
3421
3430
|
content: "* ";
|
|
3422
3431
|
}@keyframes _fadeInAnimation_5xbh5_1 {
|
|
3423
3432
|
0% {
|