@autoguru/overdrive 4.59.0 → 4.61.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/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +2 -0
- 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/Tooltip.d.ts +5 -5
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +20 -11
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/useTooltip/useTooltip.d.ts +18 -7
- package/dist/components/Tooltip/useTooltip/useTooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/useTooltip/useTooltip.js +12 -10
- 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 +15 -15
|
@@ -3,7 +3,7 @@ __vanilla_filescope__.setFileScope("lib/components/Table/TableCell.css.ts", "@au
|
|
|
3
3
|
import { style } from '@vanilla-extract/css';
|
|
4
4
|
import { overdriveTokens as vars } from "../../themes/theme.css.js";
|
|
5
5
|
export const root = style({
|
|
6
|
-
borderBottomColor: vars.
|
|
6
|
+
borderBottomColor: vars.color.border.default,
|
|
7
7
|
/*
|
|
8
8
|
We do this hack, as our row's have no distinct element. Once subgrid is
|
|
9
9
|
supported across browsers we can revisit this approach.
|
|
@@ -22,7 +22,7 @@ export const root = style({
|
|
|
22
22
|
},
|
|
23
23
|
selectors: {
|
|
24
24
|
'&:hover:before': {
|
|
25
|
-
backgroundColor: vars.
|
|
25
|
+
backgroundColor: vars.color.gamut.gray['100'],
|
|
26
26
|
transitionTimingFunction: vars.animation.easing.decelerate
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -29,7 +29,7 @@ export const TableCell = /*#__PURE__*/forwardRef(({
|
|
|
29
29
|
className: styles.root,
|
|
30
30
|
children: typeof children === 'string' || typeof children === 'number' ? /*#__PURE__*/_jsx(Text, {
|
|
31
31
|
as: "span",
|
|
32
|
-
|
|
32
|
+
color: "primary",
|
|
33
33
|
display: "block",
|
|
34
34
|
size: "3",
|
|
35
35
|
children: children
|
|
@@ -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;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import type { TestIdProp } from '../../types';
|
|
3
3
|
import { EAlignment } from '../Positioner/alignment';
|
|
4
|
-
import { type ToolTipSize } from './useTooltip/useTooltip';
|
|
5
|
-
|
|
4
|
+
import { type PositionedTooltipContentProps, type ToolTipSize } from './useTooltip/useTooltip';
|
|
5
|
+
interface TooltipBaseProps extends TestIdProp {
|
|
6
6
|
/** Size of the tooltip text */
|
|
7
7
|
size?: ToolTipSize;
|
|
8
8
|
/** Whether the tooltip is open. When provided, the tooltip becomes controlled */
|
|
9
9
|
isOpen?: boolean;
|
|
10
|
-
/** Text content displayed in the tooltip */
|
|
11
|
-
label: string;
|
|
12
10
|
/** Position of the tooltip relative to the trigger element */
|
|
13
11
|
alignment?: EAlignment;
|
|
14
12
|
/** The element(s) that trigger the tooltip on hover or focus */
|
|
@@ -18,6 +16,7 @@ export interface TooltipProps extends TestIdProp {
|
|
|
18
16
|
/** An HTML tag to wrap the tooltip trigger with if children do not contain a keyboard focusable element */
|
|
19
17
|
wrapper?: boolean | keyof React.JSX.IntrinsicElements;
|
|
20
18
|
}
|
|
19
|
+
export type TooltipProps = TooltipBaseProps & PositionedTooltipContentProps;
|
|
21
20
|
/**
|
|
22
21
|
* Renders a tooltip that appears when the user hovers over or focuses on the trigger element.
|
|
23
22
|
*
|
|
@@ -29,7 +28,8 @@ export interface TooltipProps extends TestIdProp {
|
|
|
29
28
|
* - In controlled mode, its visibility is managed externally via the `isOpen` prop.
|
|
30
29
|
*/
|
|
31
30
|
export declare const Tooltip: {
|
|
32
|
-
({ alignment, isOpen, label, children, size, closeAfter, testId, wrapper, }: TooltipProps): React.JSX.Element;
|
|
31
|
+
({ alignment, content, isOpen, label, children, size, closeAfter, testId, wrapper, }: TooltipProps): React.JSX.Element;
|
|
33
32
|
displayName: string;
|
|
34
33
|
};
|
|
34
|
+
export {};
|
|
35
35
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../lib/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAIb,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../lib/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAIb,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAEN,KAAK,6BAA6B,EAClC,KAAK,WAAW,EAChB,MAAM,yBAAyB,CAAC;AAEjC,UAAU,gBAAiB,SAAQ,UAAU;IAC5C,+BAA+B;IAC/B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,iFAAiF;IACjF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,gEAAgE;IAChE,QAAQ,EAAE,SAAS,CAAC;IACpB,6FAA6F;IAC7F,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,2GAA2G;IAC3G,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC;CACtD;AAED,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,6BAA6B,CAAC;AAE5E;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO;0FAUjB,YAAY;;CAmEd,CAAC"}
|
|
@@ -20,6 +20,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
20
20
|
*/
|
|
21
21
|
export const Tooltip = ({
|
|
22
22
|
alignment = EAlignment.RIGHT,
|
|
23
|
+
content,
|
|
23
24
|
isOpen,
|
|
24
25
|
label,
|
|
25
26
|
children,
|
|
@@ -36,11 +37,21 @@ export const Tooltip = ({
|
|
|
36
37
|
isOpen,
|
|
37
38
|
closeAfter
|
|
38
39
|
});
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (
|
|
42
|
-
children
|
|
43
|
-
|
|
40
|
+
!(label === undefined || content === undefined) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Tooltip accepts either `label` or `content`, not both') : invariant(false) : void 0;
|
|
41
|
+
let positionedTooltipContent;
|
|
42
|
+
if (content === undefined) {
|
|
43
|
+
// Return children unchanged when the text label is empty.
|
|
44
|
+
if (!label) return /*#__PURE__*/_jsx(_Fragment, {
|
|
45
|
+
children: children
|
|
46
|
+
});
|
|
47
|
+
positionedTooltipContent = {
|
|
48
|
+
label
|
|
49
|
+
};
|
|
50
|
+
} else {
|
|
51
|
+
positionedTooltipContent = {
|
|
52
|
+
content
|
|
53
|
+
};
|
|
54
|
+
}
|
|
44
55
|
|
|
45
56
|
// return wrapped output
|
|
46
57
|
if (wrapper) {
|
|
@@ -54,24 +65,22 @@ export const Tooltip = ({
|
|
|
54
65
|
testid: testId
|
|
55
66
|
})), {}, {
|
|
56
67
|
children: children
|
|
57
|
-
})), /*#__PURE__*/_jsx(PositionedTooltip, {
|
|
68
|
+
})), /*#__PURE__*/_jsx(PositionedTooltip, _objectSpread(_objectSpread({}, positionedTooltipContent), {}, {
|
|
58
69
|
alignment: alignment,
|
|
59
70
|
className: styles.root,
|
|
60
|
-
label: label,
|
|
61
71
|
size: size
|
|
62
|
-
})]
|
|
72
|
+
}))]
|
|
63
73
|
});
|
|
64
74
|
}
|
|
65
75
|
!(Children.count(children) === 1 && /*#__PURE__*/isValidElement(Children.only(children))) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Tooltips without a wrapper should have a single React element as a child') : invariant(false) : void 0;
|
|
66
76
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
67
77
|
children: [/*#__PURE__*/cloneElement(Children.only(children), _objectSpread(_objectSpread({}, triggerProps), {}, {
|
|
68
78
|
ref: triggerRef
|
|
69
|
-
})), /*#__PURE__*/_jsx(PositionedTooltip, {
|
|
79
|
+
})), /*#__PURE__*/_jsx(PositionedTooltip, _objectSpread(_objectSpread({}, positionedTooltipContent), {}, {
|
|
70
80
|
alignment: alignment,
|
|
71
81
|
className: styles.root,
|
|
72
|
-
label: label,
|
|
73
82
|
size: size
|
|
74
|
-
})]
|
|
83
|
+
}))]
|
|
75
84
|
});
|
|
76
85
|
};
|
|
77
86
|
Tooltip.displayName = 'Tooltip';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Tooltip, type TooltipProps } from './Tooltip';
|
|
2
|
-
export { useTooltip, type UseTooltipProps, type ToolTipSize, } from './useTooltip/useTooltip';
|
|
2
|
+
export { useTooltip, type PositionedTooltipProps, type UseTooltipProps, type ToolTipSize, } from './useTooltip/useTooltip';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EACN,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,WAAW,GAChB,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EACN,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,GAChB,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { EAlignment } from '../../Positioner/alignment';
|
|
3
3
|
export type ToolTipSize = 'medium' | 'large';
|
|
4
4
|
export interface UseTooltipProps {
|
|
@@ -15,6 +15,21 @@ export interface UseTooltipProps {
|
|
|
15
15
|
*/
|
|
16
16
|
onOpenChange?: (isOpen: boolean) => void;
|
|
17
17
|
}
|
|
18
|
+
interface PositionedTooltipBaseProps {
|
|
19
|
+
alignment?: EAlignment;
|
|
20
|
+
className?: string;
|
|
21
|
+
size?: ToolTipSize;
|
|
22
|
+
}
|
|
23
|
+
export type PositionedTooltipContentProps = {
|
|
24
|
+
/** Text rendered with the standard tooltip surface */
|
|
25
|
+
label: string;
|
|
26
|
+
content?: never;
|
|
27
|
+
} | {
|
|
28
|
+
/** Custom tooltip surface and content */
|
|
29
|
+
content: ReactNode;
|
|
30
|
+
label?: never;
|
|
31
|
+
};
|
|
32
|
+
export type PositionedTooltipProps = PositionedTooltipBaseProps & PositionedTooltipContentProps;
|
|
18
33
|
/**
|
|
19
34
|
* Hook for managing tooltip state and interactions
|
|
20
35
|
*/
|
|
@@ -28,11 +43,7 @@ export declare const useTooltip: ({ isOpen: controlledIsOpen, closeAfter, onOpen
|
|
|
28
43
|
onBlur: () => void;
|
|
29
44
|
'aria-describedby': string | undefined;
|
|
30
45
|
};
|
|
31
|
-
PositionedTooltip: ({ alignment, className, label, size, }:
|
|
32
|
-
alignment?: EAlignment;
|
|
33
|
-
className?: string;
|
|
34
|
-
label: string;
|
|
35
|
-
size?: ToolTipSize;
|
|
36
|
-
}) => React.JSX.Element;
|
|
46
|
+
PositionedTooltip: ({ alignment, className, content, label, size, }: PositionedTooltipProps) => React.JSX.Element;
|
|
37
47
|
};
|
|
48
|
+
export {};
|
|
38
49
|
//# sourceMappingURL=useTooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTooltip.d.ts","sourceRoot":"","sources":["../../../../lib/components/Tooltip/useTooltip/useTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useTooltip.d.ts","sourceRoot":"","sources":["../../../../lib/components/Tooltip/useTooltip/useTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACb,KAAK,SAAS,EAMd,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7C,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AAED,UAAU,0BAA0B;IACnC,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,6BAA6B,GACtC;IACA,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC;CACf,GACD;IACA,yCAAyC;IACzC,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;CACb,CAAC;AAEL,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,GAC9D,6BAA6B,CAAC;AAO/B;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,yDAIxB,eAAe;;;;;;;;;;yEAoFb,sBAAsB;CA+C1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useCallback, useEffect, useRef, useState
|
|
1
|
+
import React, { useCallback, useEffect, useId, useRef, useState } from 'react';
|
|
2
2
|
import { Box } from "../../Box/Box.js";
|
|
3
3
|
import { Positioner } from "../../Positioner/Positioner.js";
|
|
4
4
|
import { EAlignment } from "../../Positioner/alignment.js";
|
|
@@ -82,10 +82,12 @@ export const useTooltip = ({
|
|
|
82
82
|
const PositionedTooltip = useCallback(({
|
|
83
83
|
alignment = EAlignment.RIGHT,
|
|
84
84
|
className,
|
|
85
|
+
content,
|
|
85
86
|
label,
|
|
86
87
|
size = 'medium'
|
|
87
88
|
}) => {
|
|
88
89
|
const textSize = sizeMap[size];
|
|
90
|
+
const hasCustomContent = content !== undefined;
|
|
89
91
|
return /*#__PURE__*/_jsx(Positioner, {
|
|
90
92
|
triggerRef: triggerRef,
|
|
91
93
|
alignment: alignment,
|
|
@@ -94,19 +96,19 @@ export const useTooltip = ({
|
|
|
94
96
|
className: className,
|
|
95
97
|
id: tooltipId,
|
|
96
98
|
ref: tooltipRef,
|
|
97
|
-
width:
|
|
99
|
+
width: hasCustomContent ? undefined : 'full',
|
|
98
100
|
pointerEvents: "none",
|
|
99
101
|
userSelect: "none",
|
|
100
|
-
overflow:
|
|
101
|
-
borderRadius:
|
|
102
|
-
boxShadow:
|
|
103
|
-
|
|
104
|
-
paddingY:
|
|
105
|
-
paddingX:
|
|
102
|
+
overflow: hasCustomContent ? undefined : 'hidden',
|
|
103
|
+
borderRadius: hasCustomContent ? undefined : '1',
|
|
104
|
+
boxShadow: hasCustomContent ? undefined : '4',
|
|
105
|
+
backgroundColor: hasCustomContent ? undefined : 'gray900',
|
|
106
|
+
paddingY: hasCustomContent ? undefined : '2',
|
|
107
|
+
paddingX: hasCustomContent ? undefined : '3',
|
|
106
108
|
role: "tooltip",
|
|
107
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
109
|
+
children: hasCustomContent ? content : /*#__PURE__*/_jsx(Text, {
|
|
108
110
|
size: textSize,
|
|
109
|
-
|
|
111
|
+
color: "white",
|
|
110
112
|
children: label
|
|
111
113
|
})
|
|
112
114
|
})
|
|
@@ -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";
|