@wix/editor-react-components 1.2328.0 → 1.2329.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/site/components/AccordionComponent/component.js +1 -1
- package/dist/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +1 -1
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +1 -1
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/site/components/Checkbox/Checkbox.types.d.ts +20 -0
- package/dist/site/components/Checkbox/component.d.ts +2 -0
- package/dist/site/components/Checkbox/component.js +166 -0
- package/dist/site/components/Checkbox/component.preview.d.ts +4 -0
- package/dist/site/components/Checkbox/constants.d.ts +85 -0
- package/dist/site/components/Checkbox/css.css +183 -0
- package/dist/site/components/Checkbox/index.d.ts +2 -0
- package/dist/site/components/Checkbox/index.js +6 -0
- package/dist/site/components/Checkbox/manifest.d.ts +5 -0
- package/dist/site/components/Checkbox/manifest.js +209 -0
- package/dist/site/components/CheckboxGroup/component.js +2 -20
- package/dist/site/components/CheckboxGroup/css.css +9 -8
- package/dist/site/components/chunks/RequiredIndicator.js +25 -0
- package/dist/site/components/chunks/constants36.js +69 -69
- package/dist/site/components/chunks/constants37.js +73 -77
- package/dist/site/components/chunks/constants38.js +76 -57
- package/dist/site/components/chunks/constants39.js +72 -0
- package/dist/site/components/extensions.js +57 -52
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
|
|
|
8
8
|
import { a as requireEq, d as requireIsFunction, r as requireIsObject, e as requireIsLength, c as require_isIndex, b as requireIsArrayLike } from "../chunks/isArrayLike.js";
|
|
9
9
|
import { c as require_root, r as require_Symbol, a as require_baseGetTag, b as requireIsObjectLike, d as require_freeGlobal } from "../chunks/isObjectLike.js";
|
|
10
10
|
import { r as requireIsArray } from "../chunks/isArray.js";
|
|
11
|
-
import { D as DEFAULT_PROPS } from "../chunks/
|
|
11
|
+
import { D as DEFAULT_PROPS } from "../chunks/constants39.js";
|
|
12
12
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
13
13
|
var _overArg;
|
|
14
14
|
var hasRequired_overArg;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as CSS_PROPERTIES, b as DISPLAY_GROUPS, D as DATA, L as LAYOUT, c as ContainerType, a as ACTIONS, E as ELEMENTS, N as NativeStateType, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
|
|
2
|
-
import { a as DesignStates, b as DISPLAY_NAMES, c as accordionManifestDefaults, C as CONTAINER_INITIAL_HEIGHT } from "../chunks/
|
|
2
|
+
import { a as DesignStates, b as DISPLAY_NAMES, c as accordionManifestDefaults, C as CONTAINER_INITIAL_HEIGHT } from "../chunks/constants39.js";
|
|
3
3
|
import { m as manifestFocusable, c as manifestMouseHover, d as manifestClickable } from "../chunks/manifestSdkMixins.js";
|
|
4
4
|
import { w as withSpec } from "../chunks/manifest.js";
|
|
5
5
|
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
@@ -7,7 +7,7 @@ import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
|
7
7
|
import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
8
8
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
9
9
|
import Image3 from "../Image3/component.js";
|
|
10
|
-
import { A as ARIA_LABELS, s as selectors, d as dataDefaults } from "../chunks/
|
|
10
|
+
import { A as ARIA_LABELS, s as selectors, d as dataDefaults } from "../chunks/constants38.js";
|
|
11
11
|
import { c as commonjsGlobal } from "../chunks/_commonjsHelpers.js";
|
|
12
12
|
import { g as $cbf007e418543821$export$b0d6fa1ab32e3295, h as $cbf007e418543821$export$16a4697467175487, a as $1dfb119a85e764e5$export$cc77c4ff7e8673c5, c as $240e9101ba2842f5$export$7d15b64cf5a3a4c4, i as $240e9101ba2842f5$export$cb6e0bb50bc19463, $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../chunks/Button.js";
|
|
13
13
|
import { b as $64fa3d84918910a7$export$29f1550f4b0d4415, d as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, f as $64fa3d84918910a7$export$4d86445c2cf5e3, g as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, h as $64fa3d84918910a7$export$2881499e37b75b9a, c as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../chunks/filterDOMProps.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as DISPLAY_GROUPS, N as NativeStateType, C as CSS_PROPERTIES, E as ELEMENTS, D as DATA, I as INTERACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
|
|
2
2
|
import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
|
|
3
|
-
import { D as DesignStates, a as DisplayNames, s as selectors, b as borderDefaultValue } from "../chunks/
|
|
3
|
+
import { D as DesignStates, a as DisplayNames, s as selectors, b as borderDefaultValue } from "../chunks/constants38.js";
|
|
4
4
|
import manifest$1 from "../Image3/manifest.js";
|
|
5
5
|
import { w as withSpec } from "../chunks/manifest.js";
|
|
6
6
|
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
@@ -6,7 +6,7 @@ import { $ as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "../chunks/useLoc
|
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
7
|
import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
8
8
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
9
|
-
import { s as semanticClassNames } from "../chunks/
|
|
9
|
+
import { s as semanticClassNames } from "../chunks/constants37.js";
|
|
10
10
|
import { A as AnimatedIcon } from "../chunks/AnimatedIcon.js";
|
|
11
11
|
import { useService } from "@wix/services-manager-react";
|
|
12
12
|
import { d as defineService } from "../chunks/index7.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { L as LAYOUT, a as ACTIONS, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, E as ELEMENTS, N as NativeStateType, D as DATA, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
|
|
2
2
|
import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
|
|
3
3
|
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
4
|
-
import { D as DesignStates, a as DisplayNames, h as homepageModeValues, d as defaultStateValues, b as separatorValues, c as componentMetadata, s as semanticClassNames } from "../chunks/
|
|
4
|
+
import { D as DesignStates, a as DisplayNames, h as homepageModeValues, d as defaultStateValues, b as separatorValues, c as componentMetadata, s as semanticClassNames } from "../chunks/constants37.js";
|
|
5
5
|
import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
|
|
6
6
|
const manifest = {
|
|
7
7
|
id: componentMetadata.id,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { A11y, Direction } from '@wix/editor-react-types';
|
|
2
|
+
import { SdkFunctionFocusableProps } from '../../../utils/functions/sdkFunctionCallbackProps';
|
|
3
|
+
export type CheckboxProps = SdkFunctionFocusableProps & {
|
|
4
|
+
id: string;
|
|
5
|
+
className: string;
|
|
6
|
+
label: string;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
defaultChecked?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
indeterminate?: boolean;
|
|
14
|
+
onChange?: (checked: boolean) => void;
|
|
15
|
+
direction?: Direction;
|
|
16
|
+
a11y?: A11y;
|
|
17
|
+
wix?: {
|
|
18
|
+
presetsWrapperProps?: Record<string, unknown>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c as clsx } from "../chunks/clsx.js";
|
|
3
|
+
import { F as Field, c as Checkbox, T as Tooltip } from "../chunks/index10.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { useService } from "@wix/services-manager-react";
|
|
6
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
7
|
+
import { f as formatClassNames } from "../chunks/classNames.js";
|
|
8
|
+
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
9
|
+
import { R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
|
|
10
|
+
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
11
|
+
import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
|
|
12
|
+
import { d as defaultValues, s as selectors, T as TestIds, a as semanticClassNames } from "../chunks/constants36.js";
|
|
13
|
+
import { I as InfoCircleSmall_default } from "../chunks/InfoCircleSmall.js";
|
|
14
|
+
const root = "root__0DpH8";
|
|
15
|
+
const field = "field__R0D8f";
|
|
16
|
+
const item = "item__EzhwB";
|
|
17
|
+
const control = "control__7-RJh";
|
|
18
|
+
const indicator = "indicator__dzBy2";
|
|
19
|
+
const checkmark = "checkmark__SY2jU";
|
|
20
|
+
const label = "label__Y3ciV";
|
|
21
|
+
const tooltipButton = "tooltipButton__EXd4N";
|
|
22
|
+
const tooltip = "tooltip__Eudyd";
|
|
23
|
+
const styles = {
|
|
24
|
+
root,
|
|
25
|
+
field,
|
|
26
|
+
item,
|
|
27
|
+
control,
|
|
28
|
+
indicator,
|
|
29
|
+
checkmark,
|
|
30
|
+
label,
|
|
31
|
+
tooltipButton,
|
|
32
|
+
tooltip
|
|
33
|
+
};
|
|
34
|
+
const noop = () => {
|
|
35
|
+
};
|
|
36
|
+
function CheckboxComponent(props) {
|
|
37
|
+
const environmentService = useService(EnvironmentDefinition);
|
|
38
|
+
const {
|
|
39
|
+
id,
|
|
40
|
+
className = "",
|
|
41
|
+
label: label2 = defaultValues.label,
|
|
42
|
+
tooltip: tooltip2 = defaultValues.tooltip,
|
|
43
|
+
defaultChecked = defaultValues.defaultChecked,
|
|
44
|
+
readOnly = defaultValues.readOnly,
|
|
45
|
+
required = defaultValues.required,
|
|
46
|
+
disabled = defaultValues.disabled,
|
|
47
|
+
indeterminate = defaultValues.indeterminate,
|
|
48
|
+
direction,
|
|
49
|
+
a11y,
|
|
50
|
+
onChange = noop,
|
|
51
|
+
onFocus = noop,
|
|
52
|
+
onBlur = noop,
|
|
53
|
+
wix
|
|
54
|
+
} = props;
|
|
55
|
+
const isControlled = props.checked !== void 0;
|
|
56
|
+
const ariaLabel = !label2 ? (a11y == null ? void 0 : a11y.ariaLabel) || void 0 : void 0;
|
|
57
|
+
const presetsWrapperProps = (wix == null ? void 0 : wix.presetsWrapperProps) || {};
|
|
58
|
+
const rootClassName = clsx(
|
|
59
|
+
className,
|
|
60
|
+
styles.root,
|
|
61
|
+
selectors.root,
|
|
62
|
+
!direction && directionStyles.fallbackDirection
|
|
63
|
+
);
|
|
64
|
+
return /* @__PURE__ */ jsx("div", { className: presetWrapperStyles.presetWrapper, ...presetsWrapperProps, children: /* @__PURE__ */ jsx(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
id,
|
|
68
|
+
...getDataAttributes(props),
|
|
69
|
+
className: rootClassName,
|
|
70
|
+
dir: direction,
|
|
71
|
+
lang: environmentService.language,
|
|
72
|
+
"data-testid": TestIds.root,
|
|
73
|
+
children: /* @__PURE__ */ jsx(Field.Root, { className: styles.field, children: /* @__PURE__ */ jsxs(
|
|
74
|
+
Field.Item,
|
|
75
|
+
{
|
|
76
|
+
className: clsx(
|
|
77
|
+
styles.item,
|
|
78
|
+
formatClassNames(semanticClassNames.root)
|
|
79
|
+
),
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ jsx(
|
|
82
|
+
Checkbox.Root,
|
|
83
|
+
{
|
|
84
|
+
...isControlled ? { checked: props.checked } : { defaultChecked },
|
|
85
|
+
onCheckedChange: (checked) => onChange(checked),
|
|
86
|
+
required,
|
|
87
|
+
readOnly,
|
|
88
|
+
disabled,
|
|
89
|
+
indeterminate,
|
|
90
|
+
className: clsx(
|
|
91
|
+
styles.control,
|
|
92
|
+
formatClassNames(semanticClassNames.control)
|
|
93
|
+
),
|
|
94
|
+
"data-testid": TestIds.control,
|
|
95
|
+
"aria-label": ariaLabel,
|
|
96
|
+
onFocus,
|
|
97
|
+
onBlur,
|
|
98
|
+
children: /* @__PURE__ */ jsx(
|
|
99
|
+
Checkbox.Indicator,
|
|
100
|
+
{
|
|
101
|
+
keepMounted: true,
|
|
102
|
+
className: clsx(
|
|
103
|
+
styles.indicator,
|
|
104
|
+
selectors.indicator,
|
|
105
|
+
formatClassNames(semanticClassNames.indicator)
|
|
106
|
+
),
|
|
107
|
+
"data-testid": TestIds.indicator,
|
|
108
|
+
children: /* @__PURE__ */ jsx(
|
|
109
|
+
"svg",
|
|
110
|
+
{
|
|
111
|
+
className: styles.checkmark,
|
|
112
|
+
viewBox: "0 0 16 16",
|
|
113
|
+
"aria-hidden": "true",
|
|
114
|
+
focusable: "false",
|
|
115
|
+
children: /* @__PURE__ */ jsx("path", { d: "M6.667 11.333 3.333 8l1.18-1.18 2.154 2.146 4.82-4.819 1.18 1.187z" })
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
label2 && /* @__PURE__ */ jsxs(
|
|
123
|
+
Field.Label,
|
|
124
|
+
{
|
|
125
|
+
className: clsx(
|
|
126
|
+
styles.label,
|
|
127
|
+
selectors.label,
|
|
128
|
+
formatClassNames(semanticClassNames.label)
|
|
129
|
+
),
|
|
130
|
+
"data-testid": TestIds.label,
|
|
131
|
+
children: [
|
|
132
|
+
label2,
|
|
133
|
+
required && /* @__PURE__ */ jsx(
|
|
134
|
+
RequiredIndicator,
|
|
135
|
+
{
|
|
136
|
+
className: formatClassNames(
|
|
137
|
+
semanticClassNames.requiredIndicator
|
|
138
|
+
),
|
|
139
|
+
"data-testid": TestIds.requiredIndicator
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
tooltip2 && /* @__PURE__ */ jsx(Tooltip.Provider, { delay: 0, children: /* @__PURE__ */ jsxs(Tooltip.Root, { children: [
|
|
146
|
+
/* @__PURE__ */ jsx(
|
|
147
|
+
Tooltip.Trigger,
|
|
148
|
+
{
|
|
149
|
+
type: "button",
|
|
150
|
+
className: styles.tooltipButton,
|
|
151
|
+
"data-testid": TestIds.tooltipButton,
|
|
152
|
+
"aria-label": tooltip2,
|
|
153
|
+
children: /* @__PURE__ */ jsx(InfoCircleSmall_default, { "aria-hidden": "true" })
|
|
154
|
+
}
|
|
155
|
+
),
|
|
156
|
+
/* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, { sideOffset: 6, children: /* @__PURE__ */ jsx(Tooltip.Popup, { className: styles.tooltip, children: tooltip2 }) }) })
|
|
157
|
+
] }) })
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
) })
|
|
161
|
+
}
|
|
162
|
+
) });
|
|
163
|
+
}
|
|
164
|
+
export {
|
|
165
|
+
CheckboxComponent as default
|
|
166
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const DisplayNames: {
|
|
2
|
+
root: {
|
|
3
|
+
elementDisplayName: string;
|
|
4
|
+
data: {
|
|
5
|
+
checked: string;
|
|
6
|
+
defaultChecked: string;
|
|
7
|
+
required: string;
|
|
8
|
+
readOnly: string;
|
|
9
|
+
disabled: string;
|
|
10
|
+
indeterminate: string;
|
|
11
|
+
label: string;
|
|
12
|
+
tooltip: string;
|
|
13
|
+
};
|
|
14
|
+
cssCustomProperties: {
|
|
15
|
+
gap: string;
|
|
16
|
+
alignment: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
indicator: {
|
|
20
|
+
elementDisplayName: string;
|
|
21
|
+
cssCustomProperties: {
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
borderColor: string;
|
|
24
|
+
borderWidth: string;
|
|
25
|
+
checkmarkColor: string;
|
|
26
|
+
size: string;
|
|
27
|
+
};
|
|
28
|
+
displayGroups: {
|
|
29
|
+
borderGroup: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
elementDisplayName: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const DesignStates: {
|
|
37
|
+
readonly indicator: {
|
|
38
|
+
readonly hover: {
|
|
39
|
+
readonly displayName: "Hover";
|
|
40
|
+
readonly className: "checkbox__indicator--hover";
|
|
41
|
+
};
|
|
42
|
+
readonly focus: {
|
|
43
|
+
readonly displayName: "Focus";
|
|
44
|
+
readonly className: "checkbox__indicator--focus";
|
|
45
|
+
};
|
|
46
|
+
readonly disabled: {
|
|
47
|
+
readonly displayName: "Disabled";
|
|
48
|
+
readonly className: "checkbox__indicator--disabled";
|
|
49
|
+
};
|
|
50
|
+
readonly invalid: {
|
|
51
|
+
readonly displayName: "Invalid";
|
|
52
|
+
readonly className: "checkbox__indicator--invalid";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const defaultValues: {
|
|
57
|
+
readonly label: "Label";
|
|
58
|
+
readonly checked: false;
|
|
59
|
+
readonly defaultChecked: false;
|
|
60
|
+
readonly required: false;
|
|
61
|
+
readonly readOnly: false;
|
|
62
|
+
readonly disabled: false;
|
|
63
|
+
readonly indeterminate: false;
|
|
64
|
+
readonly tooltip: "";
|
|
65
|
+
};
|
|
66
|
+
export declare const TestIds: {
|
|
67
|
+
readonly root: "checkbox-root";
|
|
68
|
+
readonly control: "checkbox-control";
|
|
69
|
+
readonly indicator: "checkbox-indicator";
|
|
70
|
+
readonly label: "checkbox-label";
|
|
71
|
+
readonly requiredIndicator: "checkbox-required-indicator";
|
|
72
|
+
readonly tooltipButton: "checkbox-tooltip-button";
|
|
73
|
+
};
|
|
74
|
+
export declare const selectors: {
|
|
75
|
+
readonly root: "checkbox";
|
|
76
|
+
readonly indicator: "checkbox__indicator";
|
|
77
|
+
readonly label: "checkbox__label";
|
|
78
|
+
};
|
|
79
|
+
export declare const semanticClassNames: {
|
|
80
|
+
readonly root: "checkbox";
|
|
81
|
+
readonly control: "checkbox__control";
|
|
82
|
+
readonly indicator: "checkbox__indicator";
|
|
83
|
+
readonly label: "checkbox__label";
|
|
84
|
+
readonly requiredIndicator: "checkbox__required-indicator";
|
|
85
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
.root__0DpH8 {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.field__R0D8f {
|
|
9
|
+
display: flex;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.item__EzhwB {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
column-gap: var(--gap, 8px);
|
|
16
|
+
justify-content: var(--alignment, flex-start);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.control__7-RJh {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
border: none;
|
|
27
|
+
background: none;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
.control__7-RJh:hover, .control__7-RJh:focus-within {
|
|
31
|
+
outline: none;
|
|
32
|
+
}
|
|
33
|
+
.control__7-RJh[data-disabled] {
|
|
34
|
+
cursor: default;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.control__7-RJh:focus-visible .indicator__dzBy2,
|
|
39
|
+
.control__7-RJh:has(:focus-visible) .indicator__dzBy2,
|
|
40
|
+
.indicator__dzBy2.checkbox__indicator--focus {
|
|
41
|
+
outline: 2px solid #116dff;
|
|
42
|
+
outline-offset: 2px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.indicator__dzBy2 {
|
|
46
|
+
box-sizing: content-box;
|
|
47
|
+
position: relative;
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
width: var(--checkboxSize, 16px);
|
|
53
|
+
height: var(--checkboxSize, 16px);
|
|
54
|
+
border-style: solid;
|
|
55
|
+
border-color: var(--indicator-border);
|
|
56
|
+
border-width: var(--borderWidth, 1px);
|
|
57
|
+
background-color: var(--indicator-bg);
|
|
58
|
+
transition: background-color 0.2s linear, border-color 0.2s linear;
|
|
59
|
+
--indicator-bg: var(--backgroundColor, #fff);
|
|
60
|
+
--indicator-border: var(
|
|
61
|
+
--borderColor,
|
|
62
|
+
color-mix(in srgb, #000 60%, transparent)
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.control__7-RJh:hover .indicator__dzBy2,
|
|
67
|
+
.control__7-RJh:focus-within .indicator__dzBy2,
|
|
68
|
+
.indicator__dzBy2.checkbox__indicator--hover {
|
|
69
|
+
--indicator-border: var(--borderColor, #000);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.control__7-RJh[data-checked] .indicator__dzBy2,
|
|
73
|
+
.control__7-RJh[data-indeterminate] .indicator__dzBy2,
|
|
74
|
+
.indicator__dzBy2.checkbox__indicator--indeterminate {
|
|
75
|
+
--indicator-bg: var(--backgroundColor, #116dff);
|
|
76
|
+
--indicator-border: var(--borderColor, var(--backgroundColor, #116dff));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.control__7-RJh[data-disabled] .indicator__dzBy2,
|
|
80
|
+
.indicator__dzBy2.checkbox__indicator--disabled {
|
|
81
|
+
opacity: 0.55;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.control__7-RJh[data-invalid] .indicator__dzBy2,
|
|
85
|
+
.indicator__dzBy2.checkbox__indicator--invalid {
|
|
86
|
+
--indicator-border: var(--borderColor, #e62214);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.checkmark__SY2jU {
|
|
90
|
+
width: 70%;
|
|
91
|
+
height: 70%;
|
|
92
|
+
}
|
|
93
|
+
.checkmark__SY2jU path {
|
|
94
|
+
fill: transparent;
|
|
95
|
+
transition: fill 0.2s linear;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.control__7-RJh[data-checked] .checkmark__SY2jU path {
|
|
99
|
+
fill: var(--checkmarkColor, #fff);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Indeterminate: hide the tick and draw a centered dash instead. */
|
|
103
|
+
.control__7-RJh[data-indeterminate] .checkmark__SY2jU,
|
|
104
|
+
.indicator__dzBy2.checkbox__indicator--indeterminate .checkmark__SY2jU {
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.control__7-RJh[data-indeterminate] .indicator__dzBy2::after,
|
|
109
|
+
.indicator__dzBy2.checkbox__indicator--indeterminate::after {
|
|
110
|
+
content: "";
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: 50%;
|
|
113
|
+
left: 50%;
|
|
114
|
+
transform: translate(-50%, -50%);
|
|
115
|
+
width: 60%;
|
|
116
|
+
height: 2px;
|
|
117
|
+
border-radius: 1px;
|
|
118
|
+
background: var(--checkmarkColor, #fff);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.label__Y3ciV {
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
margin-bottom: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.tooltipButton__EXd4N {
|
|
127
|
+
flex: none;
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
display: inline-flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
width: 16px;
|
|
133
|
+
height: 16px;
|
|
134
|
+
margin: 0;
|
|
135
|
+
padding: 0;
|
|
136
|
+
border: none;
|
|
137
|
+
background: transparent;
|
|
138
|
+
color: inherit;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
opacity: 0.65;
|
|
141
|
+
}
|
|
142
|
+
.tooltipButton__EXd4N:hover, .tooltipButton__EXd4N:focus-visible {
|
|
143
|
+
opacity: 1;
|
|
144
|
+
}
|
|
145
|
+
.tooltipButton__EXd4N:focus-visible {
|
|
146
|
+
outline: none;
|
|
147
|
+
border-radius: 50%;
|
|
148
|
+
box-shadow: 0 0 0 2px #116dff;
|
|
149
|
+
}
|
|
150
|
+
.tooltipButton__EXd4N svg {
|
|
151
|
+
width: 16px;
|
|
152
|
+
height: 16px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.tooltip__Eudyd {
|
|
156
|
+
max-width: 220px;
|
|
157
|
+
padding: 6px 10px;
|
|
158
|
+
font: var(--wst-paragraph-2-font, normal normal normal 12px/1.4em madefor-text, sans-serif);
|
|
159
|
+
color: var(--wst-primary-background-color, #fff);
|
|
160
|
+
background: var(--wst-paragraph-2-color, #2b2b2b);
|
|
161
|
+
border-radius: 6px;
|
|
162
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
163
|
+
}.checkbox {
|
|
164
|
+
--gap: 8px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.checkbox__indicator {
|
|
168
|
+
border-radius: 2px;
|
|
169
|
+
}
|
|
170
|
+
.requiredIndicator__j5mIH {
|
|
171
|
+
display: inline-block;
|
|
172
|
+
width: 0.7em;
|
|
173
|
+
height: 0.7em;
|
|
174
|
+
margin-inline-start: 0.4em;
|
|
175
|
+
vertical-align: baseline;
|
|
176
|
+
color: inherit;
|
|
177
|
+
}
|
|
178
|
+
.fallbackDirection__HeRgn:not([dir]) {
|
|
179
|
+
direction: var(--wix-opt-in-direction);
|
|
180
|
+
}
|
|
181
|
+
.presetWrapper__J1yzj {
|
|
182
|
+
display: contents;
|
|
183
|
+
}
|