braid-design-system 32.16.2 → 32.16.3
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/CHANGELOG.md +12 -0
- package/dist/lib/components/Accordion/AccordionItem.css.cjs +3 -3
- package/dist/lib/components/Alert/Alert.css.cjs +3 -3
- package/dist/lib/components/Autosuggest/Autosuggest.css.cjs +3 -3
- package/dist/lib/components/Button/Button.css.cjs +3 -3
- package/dist/lib/components/ButtonIcon/ButtonIcon.css.cjs +3 -3
- package/dist/lib/components/Checkbox/resolveCheckedGroup.cjs +9 -1
- package/dist/lib/components/Checkbox/resolveCheckedGroup.mjs +9 -1
- package/dist/lib/components/Column/Column.css.cjs +3 -3
- package/dist/lib/components/ContentBlock/ContentBlock.css.cjs +3 -3
- package/dist/lib/components/Divider/Divider.css.cjs +3 -3
- package/dist/lib/components/Dropdown/Dropdown.css.cjs +3 -3
- package/dist/lib/components/Hidden/Hidden.css.cjs +3 -3
- package/dist/lib/components/HiddenVisually/HiddenVisually.css.cjs +3 -3
- package/dist/lib/components/List/List.css.cjs +3 -3
- package/dist/lib/components/Loader/Loader.css.cjs +3 -3
- package/dist/lib/components/MenuItem/useMenuItem.css.cjs +3 -3
- package/dist/lib/components/MenuItemCheckbox/MenuItemCheckbox.css.cjs +3 -3
- package/dist/lib/components/MenuRenderer/MenuRenderer.css.cjs +3 -3
- package/dist/lib/components/MonthPicker/MonthPicker.css.cjs +3 -3
- package/dist/lib/components/OverflowMenu/OverflowMenu.css.cjs +3 -3
- package/dist/lib/components/Page/Page.css.cjs +3 -3
- package/dist/lib/components/Pagination/Pagination.css.cjs +3 -3
- package/dist/lib/components/Rating/Rating.css.cjs +3 -3
- package/dist/lib/components/Stepper/Stepper.css.cjs +3 -3
- package/dist/lib/components/Tabs/Tabs.css.cjs +3 -3
- package/dist/lib/components/Tag/Tag.css.cjs +3 -3
- package/dist/lib/components/TextDropdown/TextDropdown.css.cjs +3 -3
- package/dist/lib/components/TextLink/TextLink.css.cjs +3 -3
- package/dist/lib/components/Textarea/Highlight/Highlight.css.cjs +3 -3
- package/dist/lib/components/Textarea/Textarea.css.cjs +3 -3
- package/dist/lib/components/Tiles/Tiles.css.cjs +3 -3
- package/dist/lib/components/Toggle/Toggle.css.cjs +3 -3
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.css.cjs +3 -3
- package/dist/lib/components/icons/IconArrow/IconArrow.css.cjs +3 -3
- package/dist/lib/components/icons/IconChevron/IconChevron.css.cjs +3 -3
- package/dist/lib/components/icons/IconThumb/IconThumb.css.cjs +3 -3
- package/dist/lib/components/private/AvoidWidowIcon/AvoidWidowIcon.css.cjs +3 -3
- package/dist/lib/components/private/Field/Field.css.cjs +3 -3
- package/dist/lib/components/private/InlineField/InlineField.css.cjs +3 -3
- package/dist/lib/components/private/InlineField/StyledInput.cjs +18 -9
- package/dist/lib/components/private/InlineField/StyledInput.mjs +18 -9
- package/dist/lib/components/private/Keyline/Keyline.css.cjs +3 -3
- package/dist/lib/components/private/MaxLines/MaxLines.css.cjs +3 -3
- package/dist/lib/components/private/Modal/Modal.css.cjs +3 -3
- package/dist/lib/components/private/Placeholder/Placeholder.css.cjs +3 -3
- package/dist/lib/components/private/hideFocusRings/hideFocusRings.css.cjs +3 -3
- package/dist/lib/components/private/touchable/virtualTouchable.css.cjs +3 -3
- package/dist/lib/components/useToast/Toast.css.cjs +3 -3
- package/dist/lib/css/atoms/sprinkles.css.cjs +3 -3
- package/dist/lib/css/lineHeightContainer.css.cjs +3 -3
- package/dist/lib/css/negativeMargin/negativeMargin.css.cjs +3 -3
- package/dist/lib/css/reset/reset.css.cjs +3 -3
- package/dist/lib/css/textAlignedToIcon.css.cjs +3 -3
- package/dist/lib/css/typography.css.cjs +6 -6
- package/dist/lib/css/typography.css.mjs +1 -1
- package/dist/lib/hooks/useIcon/icon.css.cjs +3 -3
- package/dist/lib/themes/apac/apacTheme.css.cjs +3 -3
- package/dist/lib/themes/baseTokens/apac.cjs +1 -1
- package/dist/lib/themes/baseTokens/apac.mjs +1 -1
- package/dist/lib/themes/docs/docsTheme.css.cjs +3 -3
- package/dist/lib/themes/docs/tokens.cjs +1 -1
- package/dist/lib/themes/docs/tokens.mjs +1 -1
- package/dist/lib/themes/seekBusiness/seekBusinessTheme.css.cjs +3 -3
- package/dist/lib/themes/seekJobs/seekJobs.css.cjs +3 -3
- package/dist/lib/themes/vars.css.cjs +3 -3
- package/dist/lib/themes/wireframe/tokens.cjs +1 -1
- package/dist/lib/themes/wireframe/tokens.mjs +1 -1
- package/dist/lib/themes/wireframe/wireframeTheme.css.cjs +3 -3
- package/package.json +4 -4
- package/dist/lib/css/capsize.css.cjs +0 -79
- package/dist/lib/css/capsize.css.mjs +0 -62
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
5
5
|
const lib_themes_vars_css_cjs = require("../../themes/vars.css.cjs");
|
|
@@ -7,7 +7,7 @@ const lib_components_private_touchable_hitArea_cjs = require("../private/touchab
|
|
|
7
7
|
const lib_components_private_touchable_debugTouchable_cjs = require("../private/touchable/debugTouchable.cjs");
|
|
8
8
|
const polished = require("polished");
|
|
9
9
|
const lib_css_colorModeStyle_cjs = require("../../css/colorModeStyle.cjs");
|
|
10
|
-
|
|
10
|
+
fileScope.setFileScope("src/lib/components/Toggle/Toggle.css.ts", "braid-design-system");
|
|
11
11
|
const sizes = {
|
|
12
12
|
standard: "standard",
|
|
13
13
|
small: "small"
|
|
@@ -132,7 +132,7 @@ const hoverOverlay = css.style({
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}, "hoverOverlay");
|
|
135
|
-
|
|
135
|
+
fileScope.endFileScope();
|
|
136
136
|
exports.fieldSize = fieldSize;
|
|
137
137
|
exports.focusOverlay = focusOverlay;
|
|
138
138
|
exports.hideBorderOnDarkBackgroundInLightMode = hideBorderOnDarkBackgroundInLightMode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
5
5
|
const lib_themes_vars_css_cjs = require("../../themes/vars.css.cjs");
|
|
6
|
-
|
|
6
|
+
fileScope.setFileScope("src/lib/components/TooltipRenderer/TooltipRenderer.css.ts", "braid-design-system");
|
|
7
7
|
const constants = {
|
|
8
8
|
maxWidth: "260px",
|
|
9
9
|
arrowSize: "12px"
|
|
@@ -53,7 +53,7 @@ const arrow = css.style({
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}, "arrow");
|
|
56
|
-
|
|
56
|
+
fileScope.endFileScope();
|
|
57
57
|
exports.arrow = arrow;
|
|
58
58
|
exports.maxWidth = maxWidth;
|
|
59
59
|
exports.translateZ0 = translateZ0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
|
-
|
|
4
|
+
fileScope.setFileScope("src/lib/components/icons/IconArrow/IconArrow.css.ts", "braid-design-system");
|
|
5
5
|
const root = css.style({
|
|
6
6
|
transition: "transform 0.3s ease",
|
|
7
7
|
transformOrigin: "50% 50%"
|
|
@@ -18,7 +18,7 @@ const mirror = css.style({
|
|
|
18
18
|
[mirrorVar]: "-1"
|
|
19
19
|
}
|
|
20
20
|
}, "mirror");
|
|
21
|
-
|
|
21
|
+
fileScope.endFileScope();
|
|
22
22
|
exports.flip = flip;
|
|
23
23
|
exports.mirror = mirror;
|
|
24
24
|
exports.root = root;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
|
-
|
|
4
|
+
fileScope.setFileScope("src/lib/components/icons/IconChevron/IconChevron.css.ts", "braid-design-system");
|
|
5
5
|
const root = css.style({
|
|
6
6
|
transition: "transform 0.3s ease",
|
|
7
7
|
transformOrigin: "50% 50%"
|
|
@@ -15,7 +15,7 @@ const up = css.style({
|
|
|
15
15
|
const right = css.style({
|
|
16
16
|
transform: "rotate(270deg)"
|
|
17
17
|
}, "right");
|
|
18
|
-
|
|
18
|
+
fileScope.endFileScope();
|
|
19
19
|
exports.left = left;
|
|
20
20
|
exports.right = right;
|
|
21
21
|
exports.root = root;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
|
-
|
|
4
|
+
fileScope.setFileScope("src/lib/components/icons/IconThumb/IconThumb.css.ts", "braid-design-system");
|
|
5
5
|
const root = css.style({
|
|
6
6
|
transition: "transform 0.3s ease",
|
|
7
7
|
transformOrigin: "50% 50%"
|
|
@@ -9,6 +9,6 @@ const root = css.style({
|
|
|
9
9
|
const down = css.style({
|
|
10
10
|
transform: "rotate(180deg)"
|
|
11
11
|
}, "down");
|
|
12
|
-
|
|
12
|
+
fileScope.endFileScope();
|
|
13
13
|
exports.down = down;
|
|
14
14
|
exports.root = root;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
|
-
|
|
4
|
+
fileScope.setFileScope("src/lib/components/private/AvoidWidowIcon/AvoidWidowIcon.css.ts", "braid-design-system");
|
|
5
5
|
const nowrap = css.style({
|
|
6
6
|
whiteSpace: "nowrap"
|
|
7
7
|
}, "nowrap");
|
|
8
|
-
|
|
8
|
+
fileScope.endFileScope();
|
|
9
9
|
exports.nowrap = nowrap;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
5
5
|
const lib_css_colorModeStyle_cjs = require("../../../css/colorModeStyle.cjs");
|
|
6
6
|
const lib_themes_vars_css_cjs = require("../../../themes/vars.css.cjs");
|
|
7
|
-
|
|
7
|
+
fileScope.setFileScope("src/lib/components/private/Field/Field.css.ts", "braid-design-system");
|
|
8
8
|
const field = css.style({}, "field");
|
|
9
9
|
const placeholderColor = css.style({
|
|
10
10
|
"::placeholder": {
|
|
@@ -42,7 +42,7 @@ const verticalDivider = css.style({
|
|
|
42
42
|
background: lib_themes_vars_css_cjs.vars.borderColor.field,
|
|
43
43
|
opacity: 0.4
|
|
44
44
|
}, "verticalDivider");
|
|
45
|
-
|
|
45
|
+
fileScope.endFileScope();
|
|
46
46
|
exports.field = field;
|
|
47
47
|
exports.focusOverlay = focusOverlay;
|
|
48
48
|
exports.hideBorderOnDarkBackgroundInLightMode = hideBorderOnDarkBackgroundInLightMode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
5
5
|
const lib_themes_vars_css_cjs = require("../../../themes/vars.css.cjs");
|
|
@@ -7,7 +7,7 @@ const lib_components_private_touchable_hitArea_cjs = require("../touchable/hitAr
|
|
|
7
7
|
const lib_components_private_touchable_debugTouchable_cjs = require("../touchable/debugTouchable.cjs");
|
|
8
8
|
const lib_css_responsiveStyle_cjs = require("../../../css/responsiveStyle.cjs");
|
|
9
9
|
const lib_css_colorModeStyle_cjs = require("../../../css/colorModeStyle.cjs");
|
|
10
|
-
|
|
10
|
+
fileScope.setFileScope("src/lib/components/private/InlineField/InlineField.css.ts", "braid-design-system");
|
|
11
11
|
const sizes = {
|
|
12
12
|
standard: "standard",
|
|
13
13
|
small: "small"
|
|
@@ -111,7 +111,7 @@ const radioScale = css.style({
|
|
|
111
111
|
}
|
|
112
112
|
}, "radioScale");
|
|
113
113
|
const radioIndicator = [indicator, radioScale];
|
|
114
|
-
|
|
114
|
+
fileScope.endFileScope();
|
|
115
115
|
exports.checkboxIndicator = checkboxIndicator;
|
|
116
116
|
exports.children = children;
|
|
117
117
|
exports.fakeField = fakeField;
|
|
@@ -87,7 +87,6 @@ const StyledInput = React.forwardRef(
|
|
|
87
87
|
}, forwardedRef) => {
|
|
88
88
|
const defaultRef = React.useRef(null);
|
|
89
89
|
const ref = forwardedRef || defaultRef;
|
|
90
|
-
const indeterminateRef = React.useRef(false);
|
|
91
90
|
if (tones.indexOf(tone) === -1) {
|
|
92
91
|
throw new Error(`Invalid tone: ${tone}`);
|
|
93
92
|
}
|
|
@@ -97,12 +96,22 @@ const StyledInput = React.forwardRef(
|
|
|
97
96
|
const isMixed = isCheckbox && checked === "mixed";
|
|
98
97
|
const fieldBackground = disabled ? { lightMode: "neutralSoft", darkMode: "neutral" } : { lightMode: "surface" };
|
|
99
98
|
const defaultBorder = checked ? "formAccent" : "default";
|
|
99
|
+
const indeterminateRef = React.useRef(isMixed);
|
|
100
|
+
const lastChecked = React.useRef(null);
|
|
101
|
+
indeterminateRef.current = isMixed;
|
|
102
|
+
if (isCheckbox && checked !== lastChecked.current && ref && typeof ref === "object" && ref.current) {
|
|
103
|
+
ref.current.indeterminate = indeterminateRef.current;
|
|
104
|
+
}
|
|
105
|
+
React.useEffect(() => {
|
|
106
|
+
if (isCheckbox && ref && typeof ref === "object" && ref.current) {
|
|
107
|
+
ref.current.indeterminate = indeterminateRef.current;
|
|
108
|
+
}
|
|
109
|
+
}, [ref, isCheckbox]);
|
|
100
110
|
React.useEffect(() => {
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
indeterminateRef.current = isMixed;
|
|
111
|
+
if (isCheckbox) {
|
|
112
|
+
lastChecked.current = checked;
|
|
104
113
|
}
|
|
105
|
-
}, [
|
|
114
|
+
}, [isCheckbox, checked]);
|
|
106
115
|
const { lightMode } = lib_components_Box_BackgroundContext_cjs.useBackgroundLightness();
|
|
107
116
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
108
117
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -113,14 +122,14 @@ const StyledInput = React.forwardRef(
|
|
|
113
122
|
id,
|
|
114
123
|
name,
|
|
115
124
|
value,
|
|
116
|
-
onChange:
|
|
117
|
-
if (
|
|
118
|
-
|
|
125
|
+
onChange: (e) => {
|
|
126
|
+
if (isMixed) {
|
|
127
|
+
e.currentTarget.indeterminate = isMixed;
|
|
119
128
|
}
|
|
120
129
|
if (typeof onChange === "function") {
|
|
121
130
|
onChange(e);
|
|
122
131
|
}
|
|
123
|
-
}
|
|
132
|
+
},
|
|
124
133
|
checked: checked === "mixed" ? false : checked,
|
|
125
134
|
position: "absolute",
|
|
126
135
|
zIndex: 1,
|
|
@@ -86,7 +86,6 @@ const StyledInput = forwardRef(
|
|
|
86
86
|
}, forwardedRef) => {
|
|
87
87
|
const defaultRef = useRef(null);
|
|
88
88
|
const ref = forwardedRef || defaultRef;
|
|
89
|
-
const indeterminateRef = useRef(false);
|
|
90
89
|
if (tones.indexOf(tone) === -1) {
|
|
91
90
|
throw new Error(`Invalid tone: ${tone}`);
|
|
92
91
|
}
|
|
@@ -96,12 +95,22 @@ const StyledInput = forwardRef(
|
|
|
96
95
|
const isMixed$1 = isCheckbox && checked === "mixed";
|
|
97
96
|
const fieldBackground = disabled ? { lightMode: "neutralSoft", darkMode: "neutral" } : { lightMode: "surface" };
|
|
98
97
|
const defaultBorder = checked ? "formAccent" : "default";
|
|
98
|
+
const indeterminateRef = useRef(isMixed$1);
|
|
99
|
+
const lastChecked = useRef(null);
|
|
100
|
+
indeterminateRef.current = isMixed$1;
|
|
101
|
+
if (isCheckbox && checked !== lastChecked.current && ref && typeof ref === "object" && ref.current) {
|
|
102
|
+
ref.current.indeterminate = indeterminateRef.current;
|
|
103
|
+
}
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
if (isCheckbox && ref && typeof ref === "object" && ref.current) {
|
|
106
|
+
ref.current.indeterminate = indeterminateRef.current;
|
|
107
|
+
}
|
|
108
|
+
}, [ref, isCheckbox]);
|
|
99
109
|
useEffect(() => {
|
|
100
|
-
if (
|
|
101
|
-
|
|
102
|
-
indeterminateRef.current = isMixed$1;
|
|
110
|
+
if (isCheckbox) {
|
|
111
|
+
lastChecked.current = checked;
|
|
103
112
|
}
|
|
104
|
-
}, [
|
|
113
|
+
}, [isCheckbox, checked]);
|
|
105
114
|
const { lightMode } = useBackgroundLightness();
|
|
106
115
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
107
116
|
/* @__PURE__ */ jsx(
|
|
@@ -112,14 +121,14 @@ const StyledInput = forwardRef(
|
|
|
112
121
|
id,
|
|
113
122
|
name,
|
|
114
123
|
value,
|
|
115
|
-
onChange:
|
|
116
|
-
if (
|
|
117
|
-
|
|
124
|
+
onChange: (e) => {
|
|
125
|
+
if (isMixed$1) {
|
|
126
|
+
e.currentTarget.indeterminate = isMixed$1;
|
|
118
127
|
}
|
|
119
128
|
if (typeof onChange === "function") {
|
|
120
129
|
onChange(e);
|
|
121
130
|
}
|
|
122
|
-
}
|
|
131
|
+
},
|
|
123
132
|
checked: checked === "mixed" ? false : checked,
|
|
124
133
|
position: "absolute",
|
|
125
134
|
zIndex: 1,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const lib_css_colorModeStyle_cjs = require("../../../css/colorModeStyle.cjs");
|
|
5
5
|
const lib_themes_vars_css_cjs = require("../../../themes/vars.css.cjs");
|
|
6
|
-
|
|
6
|
+
fileScope.setFileScope("src/lib/components/private/Keyline/Keyline.css.ts", "braid-design-system");
|
|
7
7
|
const keylineVars = css.createThemeContract({
|
|
8
8
|
promote: null,
|
|
9
9
|
info: null,
|
|
@@ -61,7 +61,7 @@ const largestWidth = css.style({
|
|
|
61
61
|
const width = css.style({
|
|
62
62
|
width: lib_themes_vars_css_cjs.vars.grid
|
|
63
63
|
}, "width");
|
|
64
|
-
|
|
64
|
+
fileScope.endFileScope();
|
|
65
65
|
exports.darkMode = darkMode;
|
|
66
66
|
exports.largestWidth = largestWidth;
|
|
67
67
|
exports.lightMode = lightMode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const entries_css_cjs = require("../../../../css.cjs");
|
|
5
|
-
|
|
5
|
+
fileScope.setFileScope("src/lib/components/private/MaxLines/MaxLines.css.ts", "braid-design-system");
|
|
6
6
|
const descenderCropFixOffset = "0.1em";
|
|
7
7
|
const negateDescenderCropFixOffset = `-${descenderCropFixOffset}`;
|
|
8
8
|
const descenderCropFixForWebkitBox = css.style({
|
|
@@ -34,7 +34,7 @@ const multiLine = css.style({
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}, "multiLine");
|
|
37
|
-
|
|
37
|
+
fileScope.endFileScope();
|
|
38
38
|
exports.base = base;
|
|
39
39
|
exports.descenderCropFixForWebkitBox = descenderCropFixForWebkitBox;
|
|
40
40
|
exports.lineLimit = lineLimit;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
5
5
|
const lib_components_private_Modal_ModalExternalGutter_cjs = require("./ModalExternalGutter.cjs");
|
|
@@ -7,7 +7,7 @@ const lib_css_responsiveStyle_cjs = require("../../../css/responsiveStyle.cjs");
|
|
|
7
7
|
const lib_themes_vars_css_cjs = require("../../../themes/vars.css.cjs");
|
|
8
8
|
const lib_css_atoms_atoms_cjs = require("../../../css/atoms/atoms.cjs");
|
|
9
9
|
const lib_css_colorModeStyle_cjs = require("../../../css/colorModeStyle.cjs");
|
|
10
|
-
|
|
10
|
+
fileScope.setFileScope("src/lib/components/private/Modal/Modal.css.ts", "braid-design-system");
|
|
11
11
|
const fixedStackingContext = lib_css_atoms_atoms_cjs.atoms({
|
|
12
12
|
position: "fixed",
|
|
13
13
|
zIndex: "modal"
|
|
@@ -152,7 +152,7 @@ const closeIconOffset = css.style({
|
|
|
152
152
|
top: "-5px",
|
|
153
153
|
right: "-5px"
|
|
154
154
|
}, "closeIconOffset");
|
|
155
|
-
|
|
155
|
+
fileScope.endFileScope();
|
|
156
156
|
exports.backdrop = backdrop;
|
|
157
157
|
exports.closeIconOffset = closeIconOffset;
|
|
158
158
|
exports.entrance = entrance;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const lib_css_colorModeStyle_cjs = require("../../../css/colorModeStyle.cjs");
|
|
5
|
-
|
|
5
|
+
fileScope.setFileScope("src/lib/components/private/Placeholder/Placeholder.css.ts", "braid-design-system");
|
|
6
6
|
const vars = css.createThemeContract({
|
|
7
7
|
background: null,
|
|
8
8
|
borderColor: null,
|
|
@@ -53,7 +53,7 @@ const line = css.style({
|
|
|
53
53
|
strokeWidth: borderWidth,
|
|
54
54
|
stroke: vars.lineColor
|
|
55
55
|
}, "line");
|
|
56
|
-
|
|
56
|
+
fileScope.endFileScope();
|
|
57
57
|
exports.box = box;
|
|
58
58
|
exports.darkTheme = darkTheme;
|
|
59
59
|
exports.label = label;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const lib_components_private_hideFocusRings_hideFocusRingsDataAttribute_cjs = require("./hideFocusRingsDataAttribute.cjs");
|
|
5
|
-
|
|
5
|
+
fileScope.setFileScope("src/lib/components/private/hideFocusRings/hideFocusRings.css.ts", "braid-design-system");
|
|
6
6
|
const hideFocusRingsClassName = css.style({
|
|
7
7
|
selectors: {
|
|
8
8
|
[`[${lib_components_private_hideFocusRings_hideFocusRingsDataAttribute_cjs.hideFocusRingsDataAttribute}] &`]: {
|
|
@@ -10,5 +10,5 @@ const hideFocusRingsClassName = css.style({
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}, "hideFocusRingsClassName");
|
|
13
|
-
|
|
13
|
+
fileScope.endFileScope();
|
|
14
14
|
exports.hideFocusRingsClassName = hideFocusRingsClassName;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const lib_components_private_touchable_debugTouchable_cjs = require("./debugTouchable.cjs");
|
|
5
5
|
const lib_components_private_touchable_virtualTouchableRules_cjs = require("./virtualTouchableRules.cjs");
|
|
6
|
-
|
|
6
|
+
fileScope.setFileScope("src/lib/components/private/touchable/virtualTouchable.css.ts", "braid-design-system");
|
|
7
7
|
const virtualTouchable = css.style([{
|
|
8
8
|
position: "relative",
|
|
9
9
|
":after": {
|
|
@@ -22,6 +22,6 @@ const yAxisOnly = css.style({
|
|
|
22
22
|
right: "0 !important"
|
|
23
23
|
}
|
|
24
24
|
}, "yAxisOnly");
|
|
25
|
-
|
|
25
|
+
fileScope.endFileScope();
|
|
26
26
|
exports.virtualTouchable = virtualTouchable;
|
|
27
27
|
exports.yAxisOnly = yAxisOnly;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
|
-
|
|
4
|
+
fileScope.setFileScope("src/lib/components/useToast/Toast.css.ts", "braid-design-system");
|
|
5
5
|
const toast = css.style({
|
|
6
6
|
pointerEvents: "all"
|
|
7
7
|
}, "toast");
|
|
8
|
-
|
|
8
|
+
fileScope.endFileScope();
|
|
9
9
|
exports.toast = toast;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const sprinkles$1 = require("@vanilla-extract/sprinkles");
|
|
5
5
|
const lib_css_breakpoints_cjs = require("../breakpoints.cjs");
|
|
6
6
|
const lib_css_atoms_atomicProperties_cjs = require("./atomicProperties.cjs");
|
|
7
|
-
|
|
7
|
+
fileScope.setFileScope("src/lib/css/atoms/sprinkles.css.ts", "braid-design-system");
|
|
8
8
|
const unresponsiveAtomicProperties = sprinkles$1.defineProperties({
|
|
9
9
|
properties: lib_css_atoms_atomicProperties_cjs.unresponsiveProperties,
|
|
10
10
|
shorthands: {
|
|
@@ -66,7 +66,7 @@ const sprinkles = sprinkles$1.createSprinkles(unresponsiveAtomicProperties, resp
|
|
|
66
66
|
const normalizeResponsiveValue = sprinkles$1.createNormalizeValueFn(responsiveAtomicProperties);
|
|
67
67
|
const mapResponsiveValue = sprinkles$1.createMapValueFn(responsiveAtomicProperties);
|
|
68
68
|
const mapColorModeValue = sprinkles$1.createMapValueFn(colorAtomicProperties);
|
|
69
|
-
|
|
69
|
+
fileScope.endFileScope();
|
|
70
70
|
exports.colorModeSelectors = colorModeSelectors;
|
|
71
71
|
exports.darkMode = darkMode;
|
|
72
72
|
exports.mapColorModeValue = mapColorModeValue;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const lib_css_responsiveStyle_cjs = require("./responsiveStyle.cjs");
|
|
5
5
|
const lib_themes_vars_css_cjs = require("../themes/vars.css.cjs");
|
|
6
|
-
|
|
6
|
+
fileScope.setFileScope("src/lib/css/lineHeightContainer.css.ts", "braid-design-system");
|
|
7
7
|
const lineHeightContainer = css.styleVariants(lib_themes_vars_css_cjs.vars.textSize, ({
|
|
8
8
|
mobile,
|
|
9
9
|
tablet
|
|
@@ -15,5 +15,5 @@ const lineHeightContainer = css.styleVariants(lib_themes_vars_css_cjs.vars.textS
|
|
|
15
15
|
height: tablet.lineHeight
|
|
16
16
|
}
|
|
17
17
|
}), "lineHeightContainer");
|
|
18
|
-
|
|
18
|
+
fileScope.endFileScope();
|
|
19
19
|
exports.lineHeightContainer = lineHeightContainer;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
5
5
|
const lib_css_atoms_atomicProperties_cjs = require("../atoms/atomicProperties.cjs");
|
|
6
6
|
const lib_css_responsiveStyle_cjs = require("../responsiveStyle.cjs");
|
|
7
|
-
|
|
7
|
+
fileScope.setFileScope("src/lib/css/negativeMargin/negativeMargin.css.ts", "braid-design-system");
|
|
8
8
|
const stylesForBreakpoint = (bp, property, mapToStyle) => css.styleVariants(lib_css_atoms_atomicProperties_cjs.space, (value) => {
|
|
9
9
|
const styleRule = {
|
|
10
10
|
[property]: value ? cssUtils.calc.negate(value) : 0
|
|
@@ -53,7 +53,7 @@ const right = {
|
|
|
53
53
|
desktop: stylesForBreakpoint("desktop", "marginRight"),
|
|
54
54
|
wide: stylesForBreakpoint("wide", "marginRight")
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
fileScope.endFileScope();
|
|
57
57
|
exports.bottom = bottom;
|
|
58
58
|
exports.left = left;
|
|
59
59
|
exports.preventCollapsePseudo = preventCollapsePseudo;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const lib_components_private_hideFocusRings_hideFocusRingsDataAttribute_cjs = require("../../components/private/hideFocusRings/hideFocusRingsDataAttribute.cjs");
|
|
5
|
-
|
|
5
|
+
fileScope.setFileScope("src/lib/css/reset/reset.css.ts", "braid-design-system");
|
|
6
6
|
const base = css.style({
|
|
7
7
|
margin: 0,
|
|
8
8
|
padding: 0,
|
|
@@ -106,6 +106,6 @@ const element = {
|
|
|
106
106
|
textarea: field,
|
|
107
107
|
input
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
fileScope.endFileScope();
|
|
110
110
|
exports.base = base;
|
|
111
111
|
exports.element = element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
5
5
|
const lib_css_responsiveStyle_cjs = require("./responsiveStyle.cjs");
|
|
6
6
|
const lib_themes_vars_css_cjs = require("../themes/vars.css.cjs");
|
|
7
|
-
|
|
7
|
+
fileScope.setFileScope("src/lib/css/textAlignedToIcon.css.ts", "braid-design-system");
|
|
8
8
|
const calculateForBreakpoint = (breakpoint) => {
|
|
9
9
|
const type = lib_themes_vars_css_cjs.vars.textSize.standard[breakpoint];
|
|
10
10
|
const padding = cssUtils.calc(type.lineHeight).subtract(type.capHeight).divide(2).toString();
|
|
@@ -19,5 +19,5 @@ const textAlignedToIcon = {
|
|
|
19
19
|
tablet: calculateForBreakpoint("tablet")
|
|
20
20
|
}), "textAlignedToIcon_standard")
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
fileScope.endFileScope();
|
|
23
23
|
exports.textAlignedToIcon = textAlignedToIcon;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const cssUtils = require("@vanilla-extract/css-utils");
|
|
5
|
-
const
|
|
5
|
+
const vanillaExtract = require("@capsizecss/vanilla-extract");
|
|
6
6
|
const lib_themes_vars_css_cjs = require("../themes/vars.css.cjs");
|
|
7
7
|
const lib_css_responsiveStyle_cjs = require("./responsiveStyle.cjs");
|
|
8
8
|
const lib_css_colorModeStyle_cjs = require("./colorModeStyle.cjs");
|
|
9
9
|
const lib_utils_mapToProperty_cjs = require("../utils/mapToProperty.cjs");
|
|
10
|
-
|
|
10
|
+
fileScope.setFileScope("src/lib/css/typography.css.ts", "braid-design-system");
|
|
11
11
|
const fontFamily = css.style({
|
|
12
12
|
fontFamily: lib_themes_vars_css_cjs.vars.fontFamily
|
|
13
13
|
}, "fontFamily");
|
|
@@ -15,7 +15,7 @@ const fontWeight = css.styleVariants(lib_themes_vars_css_cjs.vars.textWeight, li
|
|
|
15
15
|
const textSizeTrimmed = css.styleVariants(lib_themes_vars_css_cjs.vars.textSize, ({
|
|
16
16
|
mobile,
|
|
17
17
|
tablet
|
|
18
|
-
}, variant) => [
|
|
18
|
+
}, variant) => [vanillaExtract.createTextStyle({
|
|
19
19
|
fontSize: mobile.fontSize,
|
|
20
20
|
lineHeight: mobile.lineHeight,
|
|
21
21
|
...mobile.capsizeTrims
|
|
@@ -45,7 +45,7 @@ const headingWeight = css.styleVariants(lib_themes_vars_css_cjs.vars.headingWeig
|
|
|
45
45
|
const heading = css.styleVariants(lib_themes_vars_css_cjs.vars.headingLevel, ({
|
|
46
46
|
mobile,
|
|
47
47
|
tablet
|
|
48
|
-
}, variant) => [
|
|
48
|
+
}, variant) => [vanillaExtract.createTextStyle({
|
|
49
49
|
fontSize: mobile.fontSize,
|
|
50
50
|
lineHeight: mobile.lineHeight,
|
|
51
51
|
...mobile.capsizeTrims
|
|
@@ -157,7 +157,7 @@ const touchableText = css.styleVariants(lib_themes_vars_css_cjs.vars.textSize, (
|
|
|
157
157
|
mobile: makeTouchableSpacing(lib_themes_vars_css_cjs.vars.touchableSize, textDefinition.mobile.lineHeight),
|
|
158
158
|
tablet: makeTouchableSpacing(lib_themes_vars_css_cjs.vars.touchableSize, textDefinition.tablet.lineHeight)
|
|
159
159
|
}), "touchableText");
|
|
160
|
-
|
|
160
|
+
fileScope.endFileScope();
|
|
161
161
|
exports.darkModeNeutralOverride = darkModeNeutralOverride;
|
|
162
162
|
exports.darkModeTone = darkModeTone;
|
|
163
163
|
exports.fontFamily = fontFamily;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style, styleVariants, createThemeContract, assignVars } from "@vanilla-extract/css";
|
|
3
3
|
import { calc } from "@vanilla-extract/css-utils";
|
|
4
|
-
import { createTextStyle } from "
|
|
4
|
+
import { createTextStyle } from "@capsizecss/vanilla-extract";
|
|
5
5
|
import { vars } from "../themes/vars.css.mjs";
|
|
6
6
|
import { breakpointQuery, responsiveStyle } from "./responsiveStyle.mjs";
|
|
7
7
|
import { colorModeStyle } from "./colorModeStyle.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const lib_css_responsiveStyle_cjs = require("../../css/responsiveStyle.cjs");
|
|
5
5
|
const lib_themes_vars_css_cjs = require("../../themes/vars.css.cjs");
|
|
6
|
-
|
|
6
|
+
fileScope.setFileScope("src/lib/hooks/useIcon/icon.css.ts", "braid-design-system");
|
|
7
7
|
const iconScaleIncrease = 0.2;
|
|
8
8
|
const size = css.style({
|
|
9
9
|
width: `${1 + iconScaleIncrease}em`,
|
|
@@ -57,7 +57,7 @@ const blockWidths = css.styleVariants(lib_themes_vars_css_cjs.vars.textSize, ({
|
|
|
57
57
|
width: tablet.lineHeight
|
|
58
58
|
}
|
|
59
59
|
}), "blockWidths");
|
|
60
|
-
|
|
60
|
+
fileScope.endFileScope();
|
|
61
61
|
exports.alignY = alignY;
|
|
62
62
|
exports.blockWidths = blockWidths;
|
|
63
63
|
exports.cropToTextSize = cropToTextSize;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const lib_themes_apac_tokens_cjs = require("./tokens.cjs");
|
|
4
4
|
const lib_themes_makeBraidTheme_cjs = require("../makeBraidTheme.cjs");
|
|
5
|
-
|
|
5
|
+
fileScope.setFileScope("src/lib/themes/apac/apacTheme.css.ts", "braid-design-system");
|
|
6
6
|
const apacTheme_css = lib_themes_makeBraidTheme_cjs.makeBraidTheme(lib_themes_apac_tokens_cjs.tokens);
|
|
7
|
-
|
|
7
|
+
fileScope.endFileScope();
|
|
8
8
|
exports.apacTheme_css = apacTheme_css;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const robotoMetrics = require("@capsizecss/metrics/roboto
|
|
2
|
+
const robotoMetrics = require("@capsizecss/metrics/roboto");
|
|
3
3
|
const polished = require("polished");
|
|
4
4
|
const merge = require("lodash/merge.js");
|
|
5
5
|
const lib_color_palette_cjs = require("../../color/palette.cjs");
|