@autoguru/overdrive 4.58.0 → 4.60.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/components/Alert/Alert.js +4 -4
- package/dist/components/AutoSuggest/AutoSuggest.css.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.css.js +9 -1
- package/dist/components/AutoSuggest/AutoSuggest.js +4 -4
- package/dist/components/Badge/Badge.css.js +1 -1
- package/dist/components/Box/useBox/useBox.d.ts +3 -3
- package/dist/components/BulletList/Bullet.css.js +3 -3
- package/dist/components/BulletText/BulletText.css.d.ts.map +1 -1
- package/dist/components/BulletText/BulletText.css.js +4 -1
- package/dist/components/Button/Button.css.js +7 -7
- package/dist/components/Calendar/Calendar.css.js +16 -16
- package/dist/components/CheckBox/CheckBox.css.js +2 -2
- package/dist/components/ColourInput/ColourInput.css.js +2 -2
- package/dist/components/DataTable/DataTable.css.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.css.js +2 -1
- package/dist/components/DateInput/DateInput.js +1 -1
- package/dist/components/DateTimeField/DateTimeField.css.js +2 -2
- package/dist/components/EditableText/EditableText.css.js +1 -1
- package/dist/components/EditableText/EditableText.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.js +3 -1
- package/dist/components/Flex/flex.d.ts +23 -23
- package/dist/components/Flyout/Flyout.js +2 -2
- package/dist/components/Heading/Heading.js +1 -1
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.js +2 -2
- package/dist/components/MarkdownRenderer/components/MarkdownHeading.js +3 -3
- package/dist/components/Meta/Meta.css.d.ts.map +1 -1
- package/dist/components/Meta/Meta.css.js +2 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +3 -1
- package/dist/components/OptionGrid/OptionGrid.css.js +20 -20
- package/dist/components/OptionList/OptionList.css.js +11 -11
- package/dist/components/OrderedList/OrderedList.js +1 -1
- package/dist/components/Pagination/Bubble.js +3 -3
- package/dist/components/Pagination/Pagination.css.js +2 -2
- package/dist/components/Popover/Popover.css.js +3 -3
- package/dist/components/ProgressBar/ProgressBar.js +2 -2
- package/dist/components/ProgressBarGroup/ProgressBarGroup.js +2 -2
- package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.css.js +2 -2
- package/dist/components/Radio/Radio.css.js +2 -2
- package/dist/components/ScrollPane/ScrollPane.css.js +3 -3
- package/dist/components/SearchBar/SearchBar.css.js +6 -6
- package/dist/components/SelectInput/SelectInput.css.js +1 -1
- package/dist/components/Slider/Slider.css.js +6 -6
- package/dist/components/SliderProgress/ProgressStep.d.ts.map +1 -1
- package/dist/components/SliderProgress/ProgressStep.js +6 -2
- package/dist/components/SliderProgress/SliderProgress.d.ts.map +1 -1
- package/dist/components/SliderProgress/SliderProgress.js +3 -1
- package/dist/components/Stack/Stack.css.d.ts.map +1 -1
- package/dist/components/Stack/Stack.css.js +1 -0
- package/dist/components/StandardModal/StandardModal.css.js +4 -4
- package/dist/components/StandardModal/StandardModal.js +4 -4
- package/dist/components/Stepper/Stepper.js +3 -3
- package/dist/components/Switch/Switch.css.js +2 -2
- package/dist/components/Table/TableCell.css.js +2 -2
- package/dist/components/Table/TableCell.js +1 -1
- package/dist/components/Table/TableHeadCell.css.js +2 -2
- package/dist/components/Tabs/Tab.css.js +6 -6
- package/dist/components/Tabs/Tab.js +2 -2
- package/dist/components/Tabs/TabList.css.js +1 -1
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +3 -3
- package/dist/components/TextLink/TextLink.js +1 -1
- package/dist/components/Tooltip/useTooltip/useTooltip.js +2 -2
- package/dist/components/private/CheckableBase/CheckableBase.css.js +2 -2
- package/dist/components/private/InputBase/HintText.js +1 -1
- package/dist/components/private/InputBase/InputState.css.js +16 -16
- package/dist/components/private/InputBase/NotchedBase.css.js +2 -2
- package/dist/components/private/InputBase/withEnhancedInput.css.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/focusOutline.css.d.ts.map +1 -1
- package/dist/styles/focusOutline.css.js +2 -0
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/index.js +1 -1
- package/dist/styles/intentColorset.css.d.ts +3 -3
- package/dist/styles/intentColorset.css.d.ts.map +1 -1
- package/dist/styles/intentColorset.css.js +8 -2
- package/dist/styles/sprinkles.css.d.ts +290 -275
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +87 -10
- package/dist/styles/sprinkles.spec.d.ts +2 -0
- package/dist/styles/sprinkles.spec.d.ts.map +1 -0
- package/dist/styles/sprinkles.spec.js +8 -0
- package/dist/styles/typography.css.d.ts +1 -1
- package/dist/styles/typography.d.ts +44 -3
- package/dist/styles/typography.d.ts.map +1 -1
- package/dist/styles/typography.js +74 -17
- package/dist/themes/base/colours.d.ts +0 -22
- package/dist/themes/base/colours.d.ts.map +1 -1
- package/dist/themes/base/colours.js +6 -17
- package/dist/themes/base/contrastGuide.d.ts +31 -0
- package/dist/themes/base/contrastGuide.d.ts.map +1 -0
- package/dist/themes/base/contrastGuide.js +43 -0
- package/dist/themes/base/contrastGuide.spec.d.ts +2 -0
- package/dist/themes/base/contrastGuide.spec.d.ts.map +1 -0
- package/dist/themes/base/contrastGuide.spec.js +51 -0
- package/dist/themes/base/index.d.ts +258 -86
- package/dist/themes/base/index.d.ts.map +1 -1
- package/dist/themes/base/space.spec.d.ts +2 -0
- package/dist/themes/base/space.spec.d.ts.map +1 -0
- package/dist/themes/base/space.spec.js +41 -0
- package/dist/themes/base/tokens.d.ts +163 -66
- package/dist/themes/base/tokens.d.ts.map +1 -1
- package/dist/themes/base/tokens.js +210 -9
- package/dist/themes/flat_red/index.d.ts +264 -95
- package/dist/themes/flat_red/index.d.ts.map +1 -1
- package/dist/themes/flat_red/tokens.d.ts +158 -75
- package/dist/themes/flat_red/tokens.d.ts.map +1 -1
- package/dist/themes/flat_red/tokens.js +8 -13
- package/dist/themes/index.d.ts +259 -86
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/themes/index.js +1 -0
- package/dist/themes/makeTheme.d.ts +106 -20
- package/dist/themes/makeTheme.d.ts.map +1 -1
- package/dist/themes/neutral/index.d.ts +258 -107
- package/dist/themes/neutral/index.d.ts.map +1 -1
- package/dist/themes/neutral/tokens.d.ts +153 -88
- package/dist/themes/neutral/tokens.d.ts.map +1 -1
- package/dist/themes/neutral/tokens.js +12 -33
- package/dist/themes/theme.css.d.ts +106 -31
- package/dist/themes/theme.css.d.ts.map +1 -1
- package/dist/themes/theme.css.js +130 -12
- package/package.json +16 -16
|
@@ -11,7 +11,7 @@ export const sorterButton = style({
|
|
|
11
11
|
export const text = style({
|
|
12
12
|
selectors: {
|
|
13
13
|
[`${sorterButton}:hover &`]: {
|
|
14
|
-
color: vars.
|
|
14
|
+
color: vars.color.foreground.primary
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}, "text");
|
|
@@ -23,7 +23,7 @@ const sorterRoot = style({
|
|
|
23
23
|
}, "sorterRoot");
|
|
24
24
|
export const sorter = _objectSpread({
|
|
25
25
|
root: [sorterRoot, style({
|
|
26
|
-
color: vars.
|
|
26
|
+
color: vars.color.foreground.primary,
|
|
27
27
|
transitionTimingFunction: vars.animation.easing.standard
|
|
28
28
|
}, "sorter_root")]
|
|
29
29
|
}, styleVariants({
|
|
@@ -16,7 +16,7 @@ export const styledTab = recipe({
|
|
|
16
16
|
':focus-visible': _objectSpread({}, focusOutline),
|
|
17
17
|
selectors: {
|
|
18
18
|
'&:not([aria-selected=true]):hover': {
|
|
19
|
-
color: vars.
|
|
19
|
+
color: vars.color.foreground.primary
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
},
|
|
@@ -31,7 +31,7 @@ export const styledTab = recipe({
|
|
|
31
31
|
},
|
|
32
32
|
pill: {
|
|
33
33
|
borderRadius: vars.border.radius.pill,
|
|
34
|
-
color: vars.
|
|
34
|
+
color: vars.color.foreground.primary,
|
|
35
35
|
fontWeight: vars.typography.fontWeight.normal,
|
|
36
36
|
padding: `${vars.space['2']} ${vars.space['4']}`,
|
|
37
37
|
selectors: {
|
|
@@ -39,7 +39,7 @@ export const styledTab = recipe({
|
|
|
39
39
|
marginLeft: vars.space['3']
|
|
40
40
|
},
|
|
41
41
|
'&:not([aria-selected=true]):hover': {
|
|
42
|
-
backgroundColor: vars.
|
|
42
|
+
backgroundColor: vars.color.gamut.gray['200']
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
},
|
|
@@ -72,8 +72,8 @@ export const styledTab = recipe({
|
|
|
72
72
|
active: true
|
|
73
73
|
},
|
|
74
74
|
style: {
|
|
75
|
-
backgroundColor: vars.
|
|
76
|
-
color: vars.
|
|
75
|
+
backgroundColor: vars.color.foreground.primary,
|
|
76
|
+
color: vars.color.background.default
|
|
77
77
|
}
|
|
78
78
|
}, {
|
|
79
79
|
variants: {
|
|
@@ -136,7 +136,7 @@ export const indication = recipe({
|
|
|
136
136
|
},
|
|
137
137
|
style: {
|
|
138
138
|
backgroundColor: vars.colours.background.light,
|
|
139
|
-
color: vars.
|
|
139
|
+
color: vars.color.foreground.primary
|
|
140
140
|
}
|
|
141
141
|
}],
|
|
142
142
|
defaultVariants: {
|
|
@@ -41,7 +41,7 @@ export const Tab = /*#__PURE__*/forwardRef(({
|
|
|
41
41
|
as: typeof Component === 'string' ? Component : 'button',
|
|
42
42
|
display: 'inline-flex',
|
|
43
43
|
justifyContent: 'center',
|
|
44
|
-
|
|
44
|
+
backgroundColor: 'transparent'
|
|
45
45
|
}), textStyles({
|
|
46
46
|
colour: 'light',
|
|
47
47
|
noWrap: true,
|
|
@@ -77,7 +77,7 @@ export const Tab = /*#__PURE__*/forwardRef(({
|
|
|
77
77
|
size: "2",
|
|
78
78
|
align: "center",
|
|
79
79
|
display: "block",
|
|
80
|
-
|
|
80
|
+
color: isActive ? 'reverse' : 'primary',
|
|
81
81
|
className: styles.indication({
|
|
82
82
|
appearance,
|
|
83
83
|
active: isActive
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../lib/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../lib/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAEN,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,KAAK,iBAAiB,GAAG,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,GAC3D,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC;AAE1C,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACtC,SAAS,EACP,SAAS,GACT,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,aAAa,GACb,WAAW,GACX,SAAS,GACT,SAAS,GACT,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,SAAS,GACT,eAAe,GACf,aAAa,GACb,cAAc,GACd,YAAY,GACZ,UAAU,GACV,UAAU,CACZ,CAAC;AAEF,MAAM,WAAW,SAChB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,eAAe,CAAC,EAC1E,oBAAoB,EACpB,eAAe,EACf,UAAU;IACX,EAAE,CAAC,EAAE,QAAQ,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,IAAI,+EAiHhB,CAAC"}
|
|
@@ -5,7 +5,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { sprinkles } from "../../styles/sprinkles.css.js";
|
|
8
|
-
import {
|
|
8
|
+
import { textStyles } from "../../styles/typography.js";
|
|
9
9
|
import { useBox } from "../Box/useBox/useBox.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
/**
|
|
@@ -39,10 +39,10 @@ export const Text = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
39
39
|
colour,
|
|
40
40
|
// legacy colours
|
|
41
41
|
noWrap,
|
|
42
|
-
size
|
|
42
|
+
size,
|
|
43
43
|
strong,
|
|
44
44
|
transform,
|
|
45
|
-
weight
|
|
45
|
+
weight,
|
|
46
46
|
wrap,
|
|
47
47
|
//style props
|
|
48
48
|
display,
|
|
@@ -36,7 +36,7 @@ export const TextLink = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
36
36
|
size,
|
|
37
37
|
strong,
|
|
38
38
|
transform,
|
|
39
|
-
weight = '
|
|
39
|
+
weight = 'medium'
|
|
40
40
|
} = _ref,
|
|
41
41
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
42
42
|
!!(Component !== undefined && props.href !== undefined) ? process.env.NODE_ENV !== "production" ? invariant(false, 'You cannot have both href and as defined.') : invariant(false) : void 0;
|
|
@@ -100,13 +100,13 @@ export const useTooltip = ({
|
|
|
100
100
|
overflow: "hidden",
|
|
101
101
|
borderRadius: "1",
|
|
102
102
|
boxShadow: "4",
|
|
103
|
-
|
|
103
|
+
backgroundColor: "gray900",
|
|
104
104
|
paddingY: "2",
|
|
105
105
|
paddingX: "3",
|
|
106
106
|
role: "tooltip",
|
|
107
107
|
children: /*#__PURE__*/_jsx(Text, {
|
|
108
108
|
size: textSize,
|
|
109
|
-
|
|
109
|
+
color: "white",
|
|
110
110
|
children: label
|
|
111
111
|
})
|
|
112
112
|
})
|
|
@@ -6,12 +6,12 @@ import { overdriveTokens as vars } from "../../../themes/theme.css.js";
|
|
|
6
6
|
export const root = style({
|
|
7
7
|
cursor: 'pointer',
|
|
8
8
|
':hover': {
|
|
9
|
-
backgroundColor: vars.
|
|
9
|
+
backgroundColor: vars.color.background.default
|
|
10
10
|
}
|
|
11
11
|
}, "root");
|
|
12
12
|
export const label = styleVariants({
|
|
13
13
|
disabled: {
|
|
14
|
-
color: vars.
|
|
14
|
+
color: vars.color.foreground.primary
|
|
15
15
|
}
|
|
16
16
|
}, "label");
|
|
17
17
|
export const nativeInput = style({
|
|
@@ -3,23 +3,23 @@ __vanilla_filescope__.setFileScope("lib/components/private/InputBase/InputState.
|
|
|
3
3
|
import { style, styleVariants } from '@vanilla-extract/css';
|
|
4
4
|
import { overdriveTokens as vars } from "../../../themes/theme.css.js";
|
|
5
5
|
const activeColour = style({
|
|
6
|
-
color: vars.
|
|
6
|
+
color: vars.color.foreground.primary
|
|
7
7
|
}, "activeColour");
|
|
8
8
|
const activeBorderColour = style({
|
|
9
|
-
color: vars.
|
|
9
|
+
color: vars.color.foreground.primary
|
|
10
10
|
}, "activeBorderColour");
|
|
11
11
|
export const disabled = styleVariants({
|
|
12
12
|
borderColour: {
|
|
13
13
|
borderColor: vars.border.colours.gray
|
|
14
14
|
},
|
|
15
15
|
colour: {
|
|
16
|
-
color: vars.
|
|
16
|
+
color: vars.color.gamut.gray['200']
|
|
17
17
|
}
|
|
18
18
|
}, "disabled");
|
|
19
19
|
export const natural = {
|
|
20
20
|
default: {
|
|
21
21
|
colour: style({
|
|
22
|
-
color: vars.
|
|
22
|
+
color: vars.color.foreground.tertiaryInactive
|
|
23
23
|
}, "natural_default_colour"),
|
|
24
24
|
borderColour: style({
|
|
25
25
|
borderColor: vars.border.colours.gray
|
|
@@ -51,52 +51,52 @@ export const active = {
|
|
|
51
51
|
export const success = {
|
|
52
52
|
default: {
|
|
53
53
|
colour: style({
|
|
54
|
-
color: vars.
|
|
54
|
+
color: vars.color.success.foreground
|
|
55
55
|
}, "success_default_colour"),
|
|
56
56
|
borderColour: style({
|
|
57
|
-
borderColor: vars.
|
|
57
|
+
borderColor: vars.color.success.foreground
|
|
58
58
|
}, "success_default_borderColour")
|
|
59
59
|
},
|
|
60
60
|
hover: {
|
|
61
61
|
colour: style({
|
|
62
|
-
color: vars.
|
|
62
|
+
color: vars.color.success.foreground
|
|
63
63
|
}, "success_hover_colour"),
|
|
64
64
|
borderColour: style({
|
|
65
|
-
borderColor: vars.
|
|
65
|
+
borderColor: vars.color.success.foreground
|
|
66
66
|
}, "success_hover_borderColour")
|
|
67
67
|
},
|
|
68
68
|
active: {
|
|
69
69
|
colour: style({
|
|
70
|
-
color: vars.
|
|
70
|
+
color: vars.color.success.foreground
|
|
71
71
|
}, "success_active_colour"),
|
|
72
72
|
borderColour: style({
|
|
73
|
-
borderColor: vars.
|
|
73
|
+
borderColor: vars.color.success.foreground
|
|
74
74
|
}, "success_active_borderColour")
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
export const error = {
|
|
78
78
|
default: {
|
|
79
79
|
colour: style({
|
|
80
|
-
color: vars.
|
|
80
|
+
color: vars.color.alert.foreground
|
|
81
81
|
}, "error_default_colour"),
|
|
82
82
|
borderColour: style({
|
|
83
|
-
borderColor: vars.
|
|
83
|
+
borderColor: vars.color.alert.foreground
|
|
84
84
|
}, "error_default_borderColour")
|
|
85
85
|
},
|
|
86
86
|
hover: {
|
|
87
87
|
colour: style({
|
|
88
|
-
color: vars.
|
|
88
|
+
color: vars.color.alert.foreground
|
|
89
89
|
}, "error_hover_colour"),
|
|
90
90
|
borderColour: style({
|
|
91
|
-
borderColor: vars.
|
|
91
|
+
borderColor: vars.color.alert.foreground
|
|
92
92
|
}, "error_hover_borderColour")
|
|
93
93
|
},
|
|
94
94
|
active: {
|
|
95
95
|
colour: style({
|
|
96
|
-
color: vars.
|
|
96
|
+
color: vars.color.alert.foreground
|
|
97
97
|
}, "error_active_colour"),
|
|
98
98
|
borderColour: style({
|
|
99
|
-
borderColor: vars.
|
|
99
|
+
borderColor: vars.color.alert.foreground
|
|
100
100
|
}, "error_active_borderColour")
|
|
101
101
|
}
|
|
102
102
|
};
|
|
@@ -157,7 +157,7 @@ export const placeholder = styleVariants({
|
|
|
157
157
|
color: vars.colours.background.neutral
|
|
158
158
|
},
|
|
159
159
|
mutedLabelStyles: {
|
|
160
|
-
color: vars.
|
|
160
|
+
color: vars.color.foreground.tertiaryInactive
|
|
161
161
|
}
|
|
162
162
|
}, "placeholder");
|
|
163
163
|
const calcPlaceholderTranslate = (notched, prefixed, size) => {
|
|
@@ -168,7 +168,7 @@ const calcPlaceholderTranslate = (notched, prefixed, size) => {
|
|
|
168
168
|
}
|
|
169
169
|
if (size === 'medium') {
|
|
170
170
|
const offsetX = prefixed ? `calc(${vars.space['7']} + ${vars.space['3']})` : typography.fontSize;
|
|
171
|
-
return `${offsetX}, calc((${vars.space['
|
|
171
|
+
return `${offsetX}, calc((${vars.space['9']} - ${typography.fontSize}) / 2)`;
|
|
172
172
|
}
|
|
173
173
|
if (size === 'large') {
|
|
174
174
|
const offsetX = prefixed ? '64px' : typography.fontSize;
|
|
@@ -14,7 +14,7 @@ export const input = {
|
|
|
14
14
|
cursor: 'not-allowed'
|
|
15
15
|
},
|
|
16
16
|
'&::placeholder': {
|
|
17
|
-
color: vars.
|
|
17
|
+
color: vars.color.foreground.tertiaryInactive,
|
|
18
18
|
fontSize: vars.typography.size['4'].fontSize,
|
|
19
19
|
lineHeight: vars.typography.size['4'].lineHeight,
|
|
20
20
|
opacity: 1
|
|
@@ -89,12 +89,12 @@ export const inputItselfSize = {
|
|
|
89
89
|
root: styleVariants({
|
|
90
90
|
any: {
|
|
91
91
|
fontSize: vars.typography.size['4'].fontSize,
|
|
92
|
-
height: vars.space['
|
|
92
|
+
height: vars.space['9'],
|
|
93
93
|
lineHeight: vars.typography.size['4'].lineHeight,
|
|
94
|
-
padding: `calc(((${vars.space['
|
|
94
|
+
padding: `calc(((${vars.space['9']} - ${vars.typography.size['4'].fontSize}) / 2) - 3px) calc(${vars.space['4']} - 1px)`
|
|
95
95
|
},
|
|
96
96
|
textarea: {
|
|
97
|
-
padding: `${vars.space['1']} calc(${vars.space['4']} - 1px) calc(((${vars.space['
|
|
97
|
+
padding: `${vars.space['1']} calc(${vars.space['4']} - 1px) calc(((${vars.space['9']} - ${vars.typography.size['4'].fontSize}) / 2) - 3px)`
|
|
98
98
|
}
|
|
99
99
|
}, "inputItselfSize_medium_root"),
|
|
100
100
|
prefixed: styleVariants({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Actions, Alert, Anchor, AutoSuggest, type AutoSuggestValue, type AutoSuggestItemRenderer, Badge, Box, type BoxProps, useBox, type UseBoxProps, BulletList, Bullet, BulletText, Button, Calendar, type CalendarProps, CheckBox, ColourInput, Columns, Column, DateInput, DatePicker, DateTimeField, type DateTimeFieldProps, DateField, type DateFieldProps, TimeField, type TimeFieldProps, type CommonSelectorProps, DividerLine, DropDown, DropDownOption, EditableText, FillHeightBox, FlexInline, type FlexInlineComponentProps, FlexStack, type FlexStackComponentProps, type FlexComponentProps, inline, stack, Flyout, Heading, HorizontalAutoScroller, useHorizontalAutoScroller, Icon, type IconEl, type IconProps, Image, ImageServerProvider, useImageServer, Inline, IntentStripe, LinearProgressIndicator, LoadingBox, MarkdownRenderer, type MarkdownRendererDensity, type MarkdownRendererProps, Meta, MinimalModal, withModal, Modal, NumberBubble, NumberInput, OptionGrid, type OptionGridProps, type OptionItem, OptionList, OptionListContext, type OptionListProps, OrderedList, useOutsideClick, OutsideClick, OverdriveProvider, useRuntimeTokens, useTheme, ThemeProvider, ThemeOverrideProvider, ThemeOverrideDebugger, ThemeAnalyser, Pagination, Portal, EPositionerAlignment, Positioner, ProgressBar, ProgressBarGroup, ProgressSpinner, Radio, RadioGroup, ScrollPane, SearchBar, type SearchBarProps, Section, SelectInput, SimplePagination, EPageChangeDirection, Slider, type SliderProps, SliderProgress, SplitButton, type SplitButtonProps, Stack, StandardModal, EStandardModalSize, StarRating, EStarRatingSize, Stepper, StickyBox, Switch, Table, TableCell, TableHeadCell, TableRow, TableRowGroup, Tabs, Tab, TabList, TabPane, TabPanes, Text, TextAreaInput, TextBubble, TextContainer, TextInput, TextLink, useToast, ToastProvider, ToggleButtons, ToggleButton, type ToggleButtonsProps, Tooltip, type TooltipProps, useTooltip, type UseTooltipProps, type ToolTipSize, VisuallyHidden, } from './components';
|
|
2
2
|
export { useAnimationEvents, useAttachedBoxes, useContainerWidth, type UseContainerWidthProps, useDeepCompareMemo, useDocumentBodyStyles, useNegativeMarginTop, useNegativeMarginLeft, useResponsiveValue, useWindowHeightFill, useWindowScrollLock, useMedia, useNullCheck, } from './hooks';
|
|
3
|
-
export { cssLayerComponent, cssLayerTheme, resetVariants, type ResetVariantProps, elementStyles, type ElementStylesProps, resetStyles, sprinkles, type StyleProps, type LegacyStyleProps, textStyles, type TextStylesProps, typography, type TypographyProps, type LegacyTextColours, } from './styles';
|
|
3
|
+
export { cssLayerComponent, cssLayerTheme, resetVariants, type ResetVariantProps, elementStyles, type ElementStylesProps, resetStyles, sprinkles, type StyleProps, type LegacyStyleProps, namedTextStyleMap, type NamedTextStyle, TEXT_STYLES, textStyles, type TextStylesProps, typography, type TypographyProps, type LegacyTextColours, } from './styles';
|
|
4
4
|
export { overdriveTokens as tokens } from './themes/theme.css';
|
|
5
5
|
export { sprinkles as css } from './styles/sprinkles.css';
|
|
6
6
|
export { elementStyles as useBoxStyles, textStyles as useTextStyles, type ElementStylesProps as BoxStyleProps, } from './styles';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Components
|
|
2
2
|
export { Actions, Alert, Anchor, AutoSuggest, Badge, Box, useBox, BulletList, Bullet, BulletText, Button, Calendar, CheckBox, ColourInput, Columns, Column, DateInput, DatePicker, DateTimeField, DateField, TimeField, DividerLine, DropDown, DropDownOption, EditableText, FillHeightBox, FlexInline, FlexStack, inline, stack, Flyout, Heading, HorizontalAutoScroller, useHorizontalAutoScroller, Icon, Image, ImageServerProvider, useImageServer, Inline, IntentStripe, LinearProgressIndicator, LoadingBox, MarkdownRenderer, Meta, MinimalModal, withModal, Modal, NumberBubble, NumberInput, OptionGrid, OptionList, OptionListContext, OrderedList, useOutsideClick, OutsideClick, OverdriveProvider, useRuntimeTokens, useTheme, ThemeProvider, ThemeOverrideProvider, ThemeOverrideDebugger, ThemeAnalyser, Pagination, Portal, EPositionerAlignment, Positioner, ProgressBar, ProgressBarGroup, ProgressSpinner, Radio, RadioGroup, ScrollPane, SearchBar, Section, SelectInput, SimplePagination, EPageChangeDirection, Slider, SliderProgress, SplitButton, Stack, StandardModal, EStandardModalSize, StarRating, EStarRatingSize, Stepper, StickyBox, Switch, Table, TableCell, TableHeadCell, TableRow, TableRowGroup, Tabs, Tab, TabList, TabPane, TabPanes, Text, TextAreaInput, TextBubble, TextContainer, TextInput, TextLink, useToast, ToastProvider, ToggleButtons, ToggleButton, Tooltip, useTooltip, VisuallyHidden } from "./components/index.js"; // Hooks
|
|
3
3
|
export { useAnimationEvents, useAttachedBoxes, useContainerWidth, useDeepCompareMemo, useDocumentBodyStyles, useNegativeMarginTop, useNegativeMarginLeft, useResponsiveValue, useWindowHeightFill, useWindowScrollLock, useMedia, useNullCheck } from "./hooks/index.js"; // Styles
|
|
4
|
-
export { cssLayerComponent, cssLayerTheme, resetVariants, elementStyles, resetStyles, sprinkles, textStyles, typography } from "./styles/index.js"; // Tokens & aliases
|
|
4
|
+
export { cssLayerComponent, cssLayerTheme, resetVariants, elementStyles, resetStyles, sprinkles, namedTextStyleMap, TEXT_STYLES, textStyles, typography } from "./styles/index.js"; // Tokens & aliases
|
|
5
5
|
export { overdriveTokens as tokens } from "./themes/theme.css.js";
|
|
6
6
|
export { sprinkles as css } from "./styles/sprinkles.css.js";
|
|
7
7
|
export { elementStyles as useBoxStyles, textStyles as useTextStyles } from "./styles/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusOutline.css.d.ts","sourceRoot":"","sources":["../../lib/styles/focusOutline.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;
|
|
1
|
+
{"version":3,"file":"focusOutline.css.d.ts","sourceRoot":"","sources":["../../lib/styles/focusOutline.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;CAIxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAQ5B,CAAC"}
|
|
@@ -4,12 +4,14 @@ import { style } from '@vanilla-extract/css';
|
|
|
4
4
|
import { overdriveTokens as tokens } from "../themes/theme.css.js";
|
|
5
5
|
const width = '2px';
|
|
6
6
|
export const focusOutline = {
|
|
7
|
+
// eslint-disable-next-line no-restricted-syntax -- RETAINED: C-P9 superseded — colours.foreground.link is theme-overridden (neutral -> blue500, fleetGuru -> yellow500), intent-like; stays on the legacy contract until the major (docs/ds2026-plan/track-c.md §1.9 C-P9 work order).
|
|
7
8
|
outline: `solid ${width} ${tokens.colours.foreground.link}`,
|
|
8
9
|
outlineOffset: width
|
|
9
10
|
};
|
|
10
11
|
export const focusOutlineStyle = style({
|
|
11
12
|
selectors: {
|
|
12
13
|
'&:focus-visible, &[data-focus-visible], [data-focus-visible] &': {
|
|
14
|
+
// eslint-disable-next-line no-restricted-syntax -- RETAINED: same as above.
|
|
13
15
|
outline: `solid ${width} ${tokens.colours.foreground.link}`,
|
|
14
16
|
outlineOffset: width
|
|
15
17
|
}
|
package/dist/styles/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export { cssLayerComponent, cssLayerTheme, LAYER_ORDER } from './layers.css';
|
|
|
2
2
|
export { resetVariants, type ResetVariantProps } from './elementReset.css';
|
|
3
3
|
export { elementStyles, type ElementStylesProps, resetStyles, } from './elementStyles';
|
|
4
4
|
export { sprinkles, type Sprinkles as StyleProps, type SprinklesLegacyColours as LegacyStyleProps, } from './sprinkles.css';
|
|
5
|
-
export { textStyles, type TextStylesProps, typography, type TypographyProps, } from './typography';
|
|
5
|
+
export { namedTextStyleMap, type NamedTextStyle, TEXT_STYLES, textStyles, type TextStylesProps, typography, type TypographyProps, } from './typography';
|
|
6
6
|
export { type LegacyTextColours } from './typography.css';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACN,aAAa,EACb,KAAK,kBAAkB,EACvB,WAAW,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,SAAS,EACT,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,sBAAsB,IAAI,gBAAgB,GAC/C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,UAAU,EACV,KAAK,eAAe,EACpB,UAAU,EACV,KAAK,eAAe,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACN,aAAa,EACb,KAAK,kBAAkB,EACvB,WAAW,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,SAAS,EACT,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,sBAAsB,IAAI,gBAAgB,GAC/C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,iBAAiB,EACjB,KAAK,cAAc,EACnB,WAAW,EACX,UAAU,EACV,KAAK,eAAe,EACpB,UAAU,EACV,KAAK,eAAe,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/styles/index.js
CHANGED
|
@@ -2,4 +2,4 @@ export { cssLayerComponent, cssLayerTheme, LAYER_ORDER } from "./layers.css.js";
|
|
|
2
2
|
export { resetVariants } from "./elementReset.css.js";
|
|
3
3
|
export { elementStyles, resetStyles } from "./elementStyles.js";
|
|
4
4
|
export { sprinkles } from "./sprinkles.css.js";
|
|
5
|
-
export { textStyles, typography } from "./typography.js";
|
|
5
|
+
export { namedTextStyleMap, TEXT_STYLES, textStyles, typography } from "./typography.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
-
export declare const variantIntentionalColors: Record<"success" | "danger" | "warning" | "
|
|
3
|
-
export declare const variantIntentionalColorsInverted: Record<"success" | "danger" | "warning" | "
|
|
2
|
+
export declare const variantIntentionalColors: Record<"success" | "danger" | "warning" | "primary" | "secondary" | "neutral" | "brand" | "shine" | "information", string>;
|
|
3
|
+
export declare const variantIntentionalColorsInverted: Record<"success" | "danger" | "warning" | "primary" | "secondary" | "neutral" | "brand" | "shine" | "information", string>;
|
|
4
4
|
export declare const styledIntentionalElement: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
5
|
-
intention: Record<"success" | "danger" | "warning" | "
|
|
5
|
+
intention: Record<"success" | "danger" | "warning" | "primary" | "secondary" | "neutral" | "brand" | "shine" | "information", object>;
|
|
6
6
|
inverted: {
|
|
7
7
|
true: {};
|
|
8
8
|
false: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intentColorset.css.d.ts","sourceRoot":"","sources":["../../lib/styles/intentColorset.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAUvE,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"intentColorset.css.d.ts","sourceRoot":"","sources":["../../lib/styles/intentColorset.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAUvE,eAAO,MAAM,wBAAwB,4HAcpC,CAAC;AAEF,eAAO,MAAM,gCAAgC,4HAc5C,CAAC;AA0BF,eAAO,MAAM,wBAAwB;;;;;;EAcnC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,WAAW,CACxD,cAAc,CAAC,OAAO,wBAAwB,CAAC,CAC/C,CAAC"}
|
|
@@ -7,7 +7,9 @@ import { cssColorSet } from "./layers.css.js";
|
|
|
7
7
|
const intentBg = createGlobalVar('od-colorset-intent-bg');
|
|
8
8
|
const intentBorderColor = createGlobalVar('od-colorset-intent-border');
|
|
9
9
|
const intentColor = createGlobalVar('od-colorset-intent-color');
|
|
10
|
-
export const variantIntentionalColors = styleVariants(
|
|
10
|
+
export const variantIntentionalColors = styleVariants(
|
|
11
|
+
// eslint-disable-next-line no-restricted-syntax -- RETAINED: C-P9 superseded — intent-derived shared utility stays on the legacy contract until the major (docs/ds2026-plan/track-c.md §1.9 C-P9 work order).
|
|
12
|
+
tokens.colours.intent, variant => ({
|
|
11
13
|
'@layer': {
|
|
12
14
|
[cssColorSet]: {
|
|
13
15
|
vars: {
|
|
@@ -18,7 +20,9 @@ export const variantIntentionalColors = styleVariants(tokens.colours.intent, var
|
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
}), "variantIntentionalColors");
|
|
21
|
-
export const variantIntentionalColorsInverted = styleVariants(
|
|
23
|
+
export const variantIntentionalColorsInverted = styleVariants(
|
|
24
|
+
// eslint-disable-next-line no-restricted-syntax -- RETAINED: C-P9 superseded — intent-derived shared utility stays on the legacy contract until the major (docs/ds2026-plan/track-c.md §1.9 C-P9 work order).
|
|
25
|
+
tokens.colours.intent, variant => ({
|
|
22
26
|
'@layer': {
|
|
23
27
|
[cssColorSet]: {
|
|
24
28
|
vars: {
|
|
@@ -29,6 +33,8 @@ export const variantIntentionalColorsInverted = styleVariants(tokens.colours.int
|
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
}), "variantIntentionalColorsInverted");
|
|
36
|
+
|
|
37
|
+
// eslint-disable-next-line no-restricted-syntax -- RETAINED: C-P9 superseded — intent-derived shared utility stays on the legacy contract until the major (docs/ds2026-plan/track-c.md §1.9 C-P9 work order).
|
|
32
38
|
const intentKeys = Object.keys(tokens.colours.intent);
|
|
33
39
|
const intentionRecipeVariants = intentKeys.reduce((acc, key) => {
|
|
34
40
|
acc[key] = {};
|