@autoguru/overdrive 4.44.5 → 4.45.0-next.1
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.css.js +2 -2
- package/dist/components/Anchor/Anchor.d.ts +2 -2
- package/dist/components/Anchor/Anchor.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.css.js +33 -33
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Box/useBox/useBox.d.ts +2 -2
- package/dist/components/Box/useBox/useBox.d.ts.map +1 -1
- package/dist/components/BulletList/Bullet.css.js +14 -14
- package/dist/components/BulletText/BulletText.css.js +2 -2
- package/dist/components/BulletText/BulletText.d.ts +3 -3
- package/dist/components/BulletText/BulletText.d.ts.map +1 -1
- package/dist/components/BulletText/BulletText.js +9 -8
- package/dist/components/Button/Button.css.d.ts +113 -39
- package/dist/components/Button/Button.css.d.ts.map +1 -1
- package/dist/components/Button/Button.css.js +236 -99
- package/dist/components/Button/Button.d.ts +37 -13
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +112 -133
- package/dist/components/CheckBox/CheckBox.css.js +11 -11
- package/dist/components/ColourInput/ColourInput.css.js +8 -8
- package/dist/components/Columns/Column.d.ts +3 -4
- package/dist/components/Columns/Column.d.ts.map +1 -1
- package/dist/components/Columns/Column.js +27 -19
- package/dist/components/Columns/Columns.d.ts +1 -2
- package/dist/components/Columns/Columns.d.ts.map +1 -1
- package/dist/components/Columns/Columns.js +21 -19
- package/dist/components/DatePicker/DatePicker.css.js +7 -7
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/dist/components/DateTimePicker/DateTimePicker.d.ts.map +1 -1
- package/dist/components/DropDown/DropDownOption.css.js +3 -3
- package/dist/components/DropDown/DropDownOption.d.ts.map +1 -1
- package/dist/components/DropDown/DropDownOption.js +9 -7
- package/dist/components/DropDown/DropDownOptionsList.css.d.ts.map +1 -1
- package/dist/components/DropDown/DropDownOptionsList.css.js +2 -1
- package/dist/components/DropDown/DropDownOptionsList.d.ts +1 -2
- package/dist/components/DropDown/DropDownOptionsList.d.ts.map +1 -1
- package/dist/components/DropDown/DropDownOptionsList.js +3 -6
- package/dist/components/EditableText/EditableText.css.d.ts +1 -0
- package/dist/components/EditableText/EditableText.css.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.css.js +40 -8
- package/dist/components/EditableText/EditableText.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.js +5 -6
- package/dist/components/Flex/FlexInline.d.ts +1 -1
- package/dist/components/Flex/FlexInline.d.ts.map +1 -1
- package/dist/components/Flex/FlexInline.js +3 -1
- package/dist/components/Flex/FlexStack.d.ts +1 -1
- package/dist/components/Flex/FlexStack.d.ts.map +1 -1
- package/dist/components/Flex/FlexStack.js +7 -3
- package/dist/components/Flex/flex.d.ts +24 -3
- package/dist/components/Flex/flex.d.ts.map +1 -1
- package/dist/components/Flex/flex.js +8 -2
- package/dist/components/Heading/Heading.d.ts +2 -2
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.css.js +11 -11
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +15 -7
- package/dist/components/Inline/Inline.d.ts +4 -3
- package/dist/components/Inline/Inline.d.ts.map +1 -1
- package/dist/components/Inline/Inline.js +38 -26
- package/dist/components/IntentStripe/IntentStripe.css.js +1 -1
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.css.js +13 -13
- package/dist/components/LoadingBox/LoadingBox.css.js +5 -5
- package/dist/components/Meta/Meta.js +7 -6
- package/dist/components/Modal/Modal.css.js +9 -9
- package/dist/components/NumberBubble/NumberBubble.css.d.ts +2 -0
- package/dist/components/NumberBubble/NumberBubble.css.d.ts.map +1 -0
- package/dist/components/NumberBubble/NumberBubble.css.js +14 -0
- package/dist/components/NumberBubble/NumberBubble.d.ts +7 -6
- package/dist/components/NumberBubble/NumberBubble.d.ts.map +1 -1
- package/dist/components/NumberBubble/NumberBubble.js +16 -14
- package/dist/components/OptionGrid/OptionGrid.css.js +4 -4
- package/dist/components/OptionGrid/OptionGrid.d.ts +2 -2
- package/dist/components/OptionGrid/OptionGrid.d.ts.map +1 -1
- package/dist/components/OptionList/OptionList.css.js +4 -4
- package/dist/components/OptionList/OptionList.d.ts +2 -2
- package/dist/components/OptionList/OptionList.d.ts.map +1 -1
- package/dist/components/OrderedList/OrderedList.d.ts.map +1 -1
- package/dist/components/OrderedList/OrderedList.js +24 -19
- package/dist/components/Pagination/Pagination.css.js +3 -3
- package/dist/components/Pagination/Pagination.js +9 -7
- package/dist/components/Positioner/Positioner.css.js +3 -3
- package/dist/components/ProgressSpinner/ProgressSpinner.css.js +21 -21
- package/dist/components/Radio/Radio.css.js +5 -5
- package/dist/components/ScrollPane/ScrollPane.css.js +4 -4
- package/dist/components/SearchBar/SearchBar.css.js +2 -2
- package/dist/components/SearchBar/SearchBar.d.ts +2 -2
- package/dist/components/SearchBar/SearchBar.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.css.js +4 -4
- package/dist/components/SimplePagination/SimplePagination.d.ts.map +1 -1
- package/dist/components/SimplePagination/SimplePagination.js +6 -6
- package/dist/components/SliderProgress/ProgressStep.css.js +6 -6
- package/dist/components/SliderProgress/SliderProgress.css.js +3 -3
- package/dist/components/Stack/Stack.d.ts +4 -8
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/Stack/Stack.js +35 -27
- package/dist/components/StandardModal/StandardModal.css.js +6 -6
- package/dist/components/StarRating/StarRating.js +11 -7
- package/dist/components/Stepper/Stepper.css.js +1 -1
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +8 -4
- package/dist/components/StickyBox/StickyBox.css.js +2 -2
- package/dist/components/Switch/Switch.css.js +15 -15
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Table/Table.css.js +3 -3
- package/dist/components/Table/TableCell.css.js +8 -8
- package/dist/components/Table/TableHeadCell.css.js +7 -7
- package/dist/components/Table/TableHeadCell.d.ts.map +1 -1
- package/dist/components/Table/TableHeadCell.js +7 -5
- package/dist/components/Tabs/Tab.css.js +2 -2
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.js +8 -6
- package/dist/components/Tabs/TabList.css.d.ts +1 -1
- package/dist/components/Tabs/TabList.css.js +3 -3
- package/dist/components/Tabs/TabPanes.css.js +2 -2
- package/dist/components/Text/Text.d.ts +2 -2
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +76 -8
- package/dist/components/TextBubble/TextBubble.css.js +3 -3
- package/dist/components/TextContainer/TextContainer.d.ts.map +1 -1
- package/dist/components/TextContainer/TextContainer.js +7 -6
- package/dist/components/TextLink/TextLink.css.js +6 -6
- package/dist/components/Toaster/Toast.css.js +3 -3
- package/dist/components/Toaster/Toast.js +5 -3
- package/dist/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.css.js +6 -6
- package/dist/components/private/InputBase/InputState.css.js +3 -3
- package/dist/components/private/InputBase/NotchedBase.css.d.ts +4 -4
- package/dist/components/private/InputBase/NotchedBase.css.js +63 -63
- package/dist/components/private/InputBase/withEnhancedInput.css.js +13 -13
- package/dist/styles/elementReset.css.js +2 -2
- package/dist/styles/elementStyles.d.ts +2 -5
- package/dist/styles/elementStyles.d.ts.map +1 -1
- package/dist/styles/global/fonts.css.js +9 -9
- package/dist/styles/global/reset.css.js +2 -2
- package/dist/styles/typography.css.js +2 -2
- package/dist/types/index.d.ts +17 -10
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/elements.d.ts +7 -0
- package/dist/utils/elements.d.ts.map +1 -0
- package/dist/utils/elements.js +7 -0
- package/package.json +2 -1
|
@@ -4,7 +4,7 @@ import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
|
4
4
|
__vanilla_filescope__.setFileScope("lib/components/Alert/Alert.css.ts", "@autoguru/overdrive");
|
|
5
5
|
import { style } from '@vanilla-extract/css';
|
|
6
6
|
export const contained = style({
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
maxWidth: '640px',
|
|
8
|
+
minWidth: '280px'
|
|
9
9
|
}, "contained");
|
|
10
10
|
__vanilla_filescope__.endFileScope();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconType } from '@autoguru/icons';
|
|
2
2
|
import { AnchorHTMLAttributes, ElementType, FunctionComponent, ReactElement, ReactNode } from 'react';
|
|
3
|
-
import type {
|
|
4
|
-
export interface Props extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'as' | 'children' | 'is' | 'style'>,
|
|
3
|
+
import type { TestIdProp } from '../../types';
|
|
4
|
+
export interface Props extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'as' | 'children' | 'is' | 'style'>, TestIdProp {
|
|
5
5
|
as?: ElementType | ReactElement;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../lib/components/Anchor/Anchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EACN,oBAAoB,EAGpB,WAAW,EACX,iBAAiB,EAEjB,YAAY,EACZ,SAAS,EACT,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../lib/components/Anchor/Anchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EACN,oBAAoB,EAGpB,WAAW,EACX,iBAAiB,EAEjB,YAAY,EACZ,SAAS,EACT,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAM9C,MAAM,WAAW,KAChB,SAAQ,IAAI,CACV,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,IAAI,GAAG,UAAU,GAAG,IAAI,GAAG,OAAO,CAClC,EACD,UAAU;IACX,EAAE,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;CAChB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CA6C3C,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -5,83 +5,83 @@ __vanilla_filescope__.setFileScope("lib/components/AutoSuggest/AutoSuggest.css.t
|
|
|
5
5
|
import { style, styleVariants } from '@vanilla-extract/css';
|
|
6
6
|
import { overdriveTokens as vars } from "../../themes/theme.css.js";
|
|
7
7
|
export const fullScreenRoot = style({
|
|
8
|
-
position: 'fixed',
|
|
9
|
-
zIndex: 1001,
|
|
10
|
-
top: vars.space['5'],
|
|
11
|
-
right: vars.space['5'],
|
|
12
8
|
bottom: vars.space['5'],
|
|
9
|
+
height: 'stretch',
|
|
13
10
|
left: vars.space['5'],
|
|
11
|
+
maxHeight: '100vh',
|
|
12
|
+
overflowY: 'auto',
|
|
14
13
|
paddingBottom: vars.space['5'],
|
|
15
14
|
paddingTop: vars.space['2'],
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
position: 'fixed',
|
|
16
|
+
right: vars.space['5'],
|
|
17
|
+
top: vars.space['5'],
|
|
18
|
+
zIndex: 1001,
|
|
19
19
|
':before': {
|
|
20
|
-
content: '""',
|
|
21
|
-
position: 'fixed',
|
|
22
|
-
zIndex: 0,
|
|
23
20
|
backgroundColor: vars.colours.intent.secondary.background.standard,
|
|
21
|
+
bottom: 0,
|
|
22
|
+
content: '""',
|
|
23
|
+
left: 0,
|
|
24
24
|
pointerEvents: 'none',
|
|
25
|
+
position: 'fixed',
|
|
26
|
+
right: 0,
|
|
25
27
|
top: 0,
|
|
26
|
-
|
|
27
|
-
bottom: 0,
|
|
28
|
-
right: 0
|
|
28
|
+
zIndex: 0
|
|
29
29
|
}
|
|
30
30
|
}, "fullScreenRoot");
|
|
31
31
|
export const suggestionList = {
|
|
32
32
|
defaults: style({
|
|
33
33
|
display: 'grid',
|
|
34
|
-
overflowY: 'auto',
|
|
35
|
-
maxHeight: '384px',
|
|
36
|
-
overscrollBehavior: 'contain',
|
|
37
34
|
gridAutoFlow: 'row',
|
|
38
35
|
gridGap: 0,
|
|
36
|
+
maxHeight: '384px',
|
|
37
|
+
overflowY: 'auto',
|
|
38
|
+
overscrollBehavior: 'contain',
|
|
39
39
|
zIndex: 2
|
|
40
40
|
}, "suggestionList_defaults"),
|
|
41
41
|
blockOptions: style({
|
|
42
42
|
borderRadius: vars.border.radius['md'],
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
maxHeight: '384px',
|
|
44
|
+
overflowY: 'auto'
|
|
45
45
|
}, "suggestionList_blockOptions"),
|
|
46
46
|
inlineOptions: style({
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
maxHeight: '100%',
|
|
48
|
+
overflowY: 'auto'
|
|
49
49
|
}, "suggestionList_inlineOptions"),
|
|
50
50
|
inlineOptionsNoScroll: style({
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
maxHeight: 'none',
|
|
52
|
+
overflowY: 'visible'
|
|
53
53
|
}, "suggestionList_inlineOptionsNoScroll")
|
|
54
54
|
};
|
|
55
55
|
export const inputPrimitive = style({
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
marginBottom: `calc(-1 * ${vars.border.width['1']})`,
|
|
57
|
+
marginTop: `calc(-1 * ${vars.border.width['1']})`
|
|
58
58
|
}, "inputPrimitive");
|
|
59
59
|
export const input = style({
|
|
60
|
+
backgroundColor: 'white',
|
|
60
61
|
position: 'sticky',
|
|
61
62
|
top: 0,
|
|
62
|
-
zIndex: 2
|
|
63
|
-
backgroundColor: 'white'
|
|
63
|
+
zIndex: 2
|
|
64
64
|
}, "input");
|
|
65
65
|
export const fullScreenInput = style({
|
|
66
66
|
width: 'calc(100% - 40px)'
|
|
67
67
|
}, "fullScreenInput");
|
|
68
68
|
export const fullScreenCloseBtn = style({
|
|
69
69
|
position: 'fixed',
|
|
70
|
-
top: vars.space['5'],
|
|
71
70
|
right: vars.space['2'],
|
|
71
|
+
top: vars.space['5'],
|
|
72
72
|
zIndex: 3
|
|
73
73
|
}, "fullScreenCloseBtn");
|
|
74
74
|
export const spacer = style({
|
|
75
75
|
height: vars.space['1']
|
|
76
76
|
}, "spacer");
|
|
77
77
|
export const suggestion = style({
|
|
78
|
+
backgroundColor: 'transparent',
|
|
79
|
+
cursor: 'pointer',
|
|
78
80
|
display: 'block',
|
|
81
|
+
outline: 'none',
|
|
79
82
|
padding: `${vars.space['3']} calc(${vars.space['3']} + 1px)`,
|
|
80
|
-
width: '100%',
|
|
81
|
-
cursor: 'pointer',
|
|
82
83
|
textAlign: 'left',
|
|
83
|
-
|
|
84
|
-
backgroundColor: 'transparent'
|
|
84
|
+
width: '100%'
|
|
85
85
|
}, "suggestion");
|
|
86
86
|
export const suggestionListItem = styleVariants({
|
|
87
87
|
default: {
|
|
@@ -92,7 +92,7 @@ export const suggestionListItem = styleVariants({
|
|
|
92
92
|
}
|
|
93
93
|
}, "suggestionListItem");
|
|
94
94
|
export const suggestionHighlight = style({
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
backgroundColor: vars.colours.background.light,
|
|
96
|
+
color: vars.typography.colour.information
|
|
97
97
|
}, "suggestionHighlight");
|
|
98
98
|
__vanilla_filescope__.endFileScope();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TestIdProp } from '../../types';
|
|
3
3
|
import type { StyledBadgeProps } from './Badge.css';
|
|
4
4
|
type Colours = Exclude<StyledBadgeProps['colour'], undefined>;
|
|
5
|
-
export interface BadgeProps extends
|
|
5
|
+
export interface BadgeProps extends TestIdProp {
|
|
6
6
|
/** The text content */
|
|
7
7
|
label: string;
|
|
8
8
|
/** The color of the badge */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../lib/components/Badge/Badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../lib/components/Badge/Badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,KAAK,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAC;AAE9D,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC7C,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC/B,4BAA4B;IAC5B,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CAChC;AAED;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,mDAOnB,UAAU,sBAyBZ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AllHTMLAttributes, ElementType } from 'react';
|
|
2
2
|
import { type ElementStylesProps } from '../../../styles/elementStyles';
|
|
3
|
-
import type { ConsistentComponentProps, DataAttributes,
|
|
3
|
+
import type { ConsistentComponentProps, DataAttributes, OdComponentProp } from '../../../types';
|
|
4
4
|
type FilteredAttributes = Omit<AllHTMLAttributes<HTMLElement>, 'as' | 'className' | 'color' | 'height' | 'is' | 'size' | 'width'>;
|
|
5
|
-
export interface UseBoxProps extends FilteredAttributes, ConsistentComponentProps,
|
|
5
|
+
export interface UseBoxProps extends FilteredAttributes, ConsistentComponentProps, OdComponentProp, ElementStylesProps, DataAttributes {
|
|
6
6
|
}
|
|
7
7
|
export declare const useBox: ({ as, className: incomingClassName, odComponent, testId, display, height, maxWidth, minWidth, overflow, overflowX, overflowY, pointerEvents, position, size, userSelect, useVar, width, bg, backgroundColor, backgroundColour, boxShadow, color, colour, fg, opacity, fontSize, fontWeight, lineHeight, text, textAlign, textTransform, textWrap, wordBreak, borderRadius, borderColor, borderColorX, borderColorY, borderStyle, borderWidth, borderWidthX, borderWidthY, borderBottomColor, borderBottomStyle, borderBottomWidth, borderLeftColor, borderLeftStyle, borderLeftWidth, borderRightColor, borderRightStyle, borderRightWidth, borderStyleBottom, borderStyleLeft, borderStyleRight, borderStyleTop, borderTopColor, borderTopStyle, borderTopWidth, borderWidthTop, borderWidthRight, borderWidthBottom, borderWidthLeft, borderColour, borderColourX, borderColourY, borderBottomColour, borderLeftColour, borderRightColour, borderTopColour, alignContent, alignItems, alignSelf, columnGap, flexDirection, flexGrow, flexShrink, flexWrap, gap, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumns, justifyContent, placeItems, rowGap, order, m, mb, ml, mr, mt, mx, my, margin, marginX, marginY, marginBottom, marginLeft, marginRight, marginTop, p, pb, pl, pr, pt, px, py, padding, paddingX, paddingY, paddingBottom, paddingLeft, paddingRight, paddingTop, ...elementProps }: UseBoxProps) => {
|
|
8
8
|
Component: ElementType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBox.d.ts","sourceRoot":"","sources":["../../../../lib/components/Box/useBox/useBox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAEN,KAAK,kBAAkB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACX,wBAAwB,EACxB,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"useBox.d.ts","sourceRoot":"","sources":["../../../../lib/components/Box/useBox/useBox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAEN,KAAK,kBAAkB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACX,wBAAwB,EACxB,cAAc,EACd,eAAe,EACf,MAAM,gBAAgB,CAAC;AAGxB,KAAK,kBAAkB,GAAG,IAAI,CAC7B,iBAAiB,CAAC,WAAW,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CACjE,CAAC;AAEF,MAAM,WAAW,WAChB,SAAQ,kBAAkB,EACzB,wBAAwB,EACxB,eAAe,EACf,kBAAkB,EAClB,cAAc;CAAG;AAEnB,eAAO,MAAM,MAAM,GAAI,+0CA8HpB,WAAW;eAqIK,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI7B,CAAC"}
|
|
@@ -5,41 +5,41 @@ __vanilla_filescope__.setFileScope("lib/components/BulletList/Bullet.css.ts", "@
|
|
|
5
5
|
import { style, styleVariants } from '@vanilla-extract/css';
|
|
6
6
|
import { overdriveTokens as vars } from "../../themes/theme.css.js";
|
|
7
7
|
export const root = styleVariants({
|
|
8
|
+
circle: {
|
|
9
|
+
'::before': {
|
|
10
|
+
borderRadius: '50%'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
8
13
|
default: {
|
|
9
14
|
display: 'grid',
|
|
10
|
-
gridTemplateColumns: 'min-content 1fr',
|
|
11
15
|
gridGap: vars.space['4'],
|
|
16
|
+
gridTemplateColumns: 'min-content 1fr',
|
|
12
17
|
marginBottom: vars.space['2'],
|
|
13
18
|
':last-of-type': {
|
|
14
19
|
marginBottom: 0
|
|
15
20
|
},
|
|
16
21
|
'::before': {
|
|
22
|
+
alignSelf: 'flex-start',
|
|
23
|
+
backgroundColor: vars.typography.colour.dark,
|
|
17
24
|
boxSizing: 'content-box',
|
|
25
|
+
content: "' '",
|
|
18
26
|
display: 'block',
|
|
19
|
-
alignSelf: 'flex-start',
|
|
20
|
-
width: vars.space['2'],
|
|
21
27
|
height: vars.space['2'],
|
|
22
28
|
marginTop: `calc((1.6em - ${vars.space['2']}) / 2)`,
|
|
23
|
-
|
|
24
|
-
backgroundColor: vars.typography.colour.dark
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
circle: {
|
|
28
|
-
'::before': {
|
|
29
|
-
borderRadius: '50%'
|
|
29
|
+
width: vars.space['2']
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
disc: {
|
|
33
33
|
'::before': {
|
|
34
|
+
backgroundColor: 'transparent',
|
|
34
35
|
border: `2px solid ${vars.typography.colour.dark}`,
|
|
35
|
-
borderRadius: '50%'
|
|
36
|
-
backgroundColor: 'transparent'
|
|
36
|
+
borderRadius: '50%'
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
square: {
|
|
40
40
|
'::before': {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
backgroundColor: 'transparent',
|
|
42
|
+
border: `2px solid ${vars.typography.colour.dark}`
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}, "root");
|
|
@@ -5,9 +5,9 @@ __vanilla_filescope__.setFileScope("lib/components/BulletText/BulletText.css.ts"
|
|
|
5
5
|
import { style } from '@vanilla-extract/css';
|
|
6
6
|
import { overdriveTokens as vars } from "../../themes/theme.css.js";
|
|
7
7
|
export const bullet = style({
|
|
8
|
+
height: vars.space['6'],
|
|
8
9
|
lineHeight: vars.typography.size['2'].lineHeight,
|
|
9
|
-
width: vars.space['6']
|
|
10
|
-
height: vars.space['6']
|
|
10
|
+
width: vars.space['6']
|
|
11
11
|
}, "bullet");
|
|
12
12
|
export const primary = style({
|
|
13
13
|
backgroundColor: vars.colours.intent.primary.background.mild
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
export interface BulletTextProps extends
|
|
2
|
+
import { type FlexInlineComponentProps } from '../Flex/FlexInline';
|
|
3
|
+
export interface BulletTextProps extends Pick<FlexInlineComponentProps, 'as' | 'children'> {
|
|
4
4
|
bullet?: ReactNode;
|
|
5
5
|
variant?: 'primary' | 'secondary';
|
|
6
6
|
}
|
|
7
|
-
export declare const BulletText: ({ as, variant, children, bullet: Bullet, }: BulletTextProps) => React.JSX.Element;
|
|
7
|
+
export declare const BulletText: ({ as: Component, variant, children, bullet: Bullet, }: BulletTextProps) => React.JSX.Element;
|
|
8
8
|
//# sourceMappingURL=BulletText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BulletText.d.ts","sourceRoot":"","sources":["../../../lib/components/BulletText/BulletText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"BulletText.d.ts","sourceRoot":"","sources":["../../../lib/components/BulletText/BulletText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAkB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG9D,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAMnE,MAAM,WAAW,eAChB,SAAQ,IAAI,CAAC,wBAAwB,EAAE,IAAI,GAAG,UAAU,CAAC;IACzD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CAClC;AAED,eAAO,MAAM,UAAU,GAAI,uDAKxB,eAAe,sBA+CjB,CAAC"}
|
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { isValidElement } from 'react';
|
|
4
4
|
import { Box } from "../Box/Box.js";
|
|
5
|
-
import {
|
|
5
|
+
import { inline } from "../Flex/flex.js";
|
|
6
6
|
import { Text } from "../Text/Text.js";
|
|
7
7
|
import * as styles from "./BulletText.css.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export const BulletText = ({
|
|
10
|
-
as,
|
|
10
|
+
as: Component = 'div',
|
|
11
11
|
variant = 'primary',
|
|
12
12
|
children,
|
|
13
13
|
bullet: Bullet = '•'
|
|
14
|
-
}) => /*#__PURE__*/_jsxs(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
}) => /*#__PURE__*/_jsxs(Component, {
|
|
15
|
+
className: inline({
|
|
16
|
+
align: 'start',
|
|
17
|
+
gap: '3',
|
|
18
|
+
justify: 'center',
|
|
19
|
+
noWrap: true
|
|
20
|
+
}),
|
|
20
21
|
children: [/*#__PURE__*/isValidElement(Bullet) ? /*#__PURE__*/_jsx(Box, {
|
|
21
22
|
position: "relative",
|
|
22
23
|
flexShrink: 0,
|
|
@@ -1,94 +1,162 @@
|
|
|
1
1
|
import { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
-
|
|
2
|
+
import { cssLayerComponent } from '../../styles/layers.css';
|
|
3
3
|
export declare const hiddenContent: string;
|
|
4
|
+
export declare const spinnerWrapper: string;
|
|
4
5
|
export declare const spinner: string;
|
|
5
6
|
export declare const button: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
6
7
|
size: {
|
|
7
8
|
small: {
|
|
8
|
-
|
|
9
|
+
'@layer': {
|
|
10
|
+
[cssLayerComponent]: {
|
|
11
|
+
fontSize: `var(--${string})`;
|
|
12
|
+
height: "36px";
|
|
13
|
+
padding: `0 var(--${string})`;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
9
16
|
};
|
|
10
17
|
medium: {
|
|
11
|
-
|
|
18
|
+
'@layer': {
|
|
19
|
+
[cssLayerComponent]: {
|
|
20
|
+
fontSize: `var(--${string})`;
|
|
21
|
+
height: `var(--${string})`;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
12
24
|
};
|
|
13
25
|
xsmall: {
|
|
14
|
-
|
|
26
|
+
'@layer': {
|
|
27
|
+
[cssLayerComponent]: {
|
|
28
|
+
fontSize: `var(--${string})`;
|
|
29
|
+
fontWeight: `var(--${string})`;
|
|
30
|
+
padding: `2px var(--${string})`;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
15
33
|
};
|
|
16
34
|
};
|
|
17
35
|
shape: {
|
|
18
36
|
default: {};
|
|
19
37
|
rounded: {};
|
|
20
|
-
iconOnly: {
|
|
38
|
+
iconOnly: {
|
|
39
|
+
'@layer': {
|
|
40
|
+
[cssLayerComponent]: {
|
|
41
|
+
padding: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
21
45
|
};
|
|
22
46
|
intent: {
|
|
23
47
|
primary: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
48
|
+
'@layer': {
|
|
49
|
+
[cssLayerComponent]: {
|
|
50
|
+
backgroundColor: `var(--${string})`;
|
|
51
|
+
color: `var(--${string})`;
|
|
52
|
+
"&:focus-visible, &:not(:disabled):hover, &:not(:disabled):active": {
|
|
53
|
+
backgroundColor: `var(--${string})`;
|
|
54
|
+
color: `var(--${string})`;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
29
57
|
};
|
|
30
58
|
};
|
|
31
59
|
brand: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
60
|
+
'@layer': {
|
|
61
|
+
[cssLayerComponent]: {
|
|
62
|
+
backgroundColor: `var(--${string})`;
|
|
63
|
+
color: `var(--${string})`;
|
|
64
|
+
"&:focus-visible, &:not(:disabled):hover, &:not(:disabled):active": {
|
|
65
|
+
backgroundColor: `var(--${string})`;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
36
68
|
};
|
|
37
69
|
};
|
|
38
70
|
secondary: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
border: `1px solid var(--${string})`;
|
|
42
|
-
selectors: {
|
|
43
|
-
"&:focus-visible, &:not(:disabled):hover, &:not(:disabled):active": {
|
|
71
|
+
'@layer': {
|
|
72
|
+
[cssLayerComponent]: {
|
|
44
73
|
backgroundColor: `var(--${string})`;
|
|
45
|
-
|
|
74
|
+
border: `1px solid var(--${string})`;
|
|
75
|
+
color: `var(--${string})`;
|
|
76
|
+
selectors: {
|
|
77
|
+
"&:focus-visible, &:not(:disabled):hover, &:not(:disabled):active": {
|
|
78
|
+
backgroundColor: `var(--${string})`;
|
|
79
|
+
borderColor: `var(--${string})`;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
46
82
|
};
|
|
47
83
|
};
|
|
48
84
|
};
|
|
49
85
|
danger: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
86
|
+
'@layer': {
|
|
87
|
+
[cssLayerComponent]: {
|
|
88
|
+
backgroundColor: `var(--${string})`;
|
|
89
|
+
color: `var(--${string})`;
|
|
90
|
+
"&:focus-visible, &:not(:disabled):hover, &:not(:disabled):active": {
|
|
91
|
+
backgroundColor: `var(--${string})`;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
54
94
|
};
|
|
55
95
|
};
|
|
56
96
|
information: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
97
|
+
'@layer': {
|
|
98
|
+
[cssLayerComponent]: {
|
|
99
|
+
backgroundColor: `var(--${string})`;
|
|
100
|
+
color: `var(--${string})`;
|
|
101
|
+
"&:focus-visible, &:not(:disabled):hover, &:not(:disabled):active": {
|
|
102
|
+
backgroundColor: `var(--${string})`;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
61
105
|
};
|
|
62
106
|
};
|
|
63
107
|
warning: {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
108
|
+
'@layer': {
|
|
109
|
+
[cssLayerComponent]: {
|
|
110
|
+
backgroundColor: `var(--${string})`;
|
|
111
|
+
color: `var(--${string})`;
|
|
112
|
+
"&:focus-visible, &:not(:disabled):hover, &:not(:disabled):active": {
|
|
113
|
+
backgroundColor: `var(--${string})`;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
68
116
|
};
|
|
69
117
|
};
|
|
70
118
|
success: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
119
|
+
'@layer': {
|
|
120
|
+
[cssLayerComponent]: {
|
|
121
|
+
backgroundColor: `var(--${string})`;
|
|
122
|
+
color: `var(--${string})`;
|
|
123
|
+
"&:focus-visible, &:not(:disabled):hover, &:not(:disabled):active": {
|
|
124
|
+
backgroundColor: `var(--${string})`;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
75
127
|
};
|
|
76
128
|
};
|
|
77
129
|
};
|
|
78
130
|
minimal: {
|
|
79
131
|
true: {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
132
|
+
'@layer': {
|
|
133
|
+
[cssLayerComponent]: {
|
|
134
|
+
backgroundColor: "transparent";
|
|
135
|
+
borderStyle: "none";
|
|
136
|
+
color: `var(--${string})`;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
83
139
|
};
|
|
84
140
|
false: never[];
|
|
85
141
|
};
|
|
142
|
+
rounded: {
|
|
143
|
+
true: string;
|
|
144
|
+
};
|
|
145
|
+
isFullWidth: {
|
|
146
|
+
true: string;
|
|
147
|
+
};
|
|
148
|
+
isLoading: {
|
|
149
|
+
true: {};
|
|
150
|
+
};
|
|
86
151
|
}>;
|
|
87
152
|
type ButtonRecipeProps = NonNullable<Required<RecipeVariants<typeof button>>>;
|
|
88
153
|
export type ButtonSize = ButtonRecipeProps['size'];
|
|
89
154
|
export type ButtonShape = ButtonRecipeProps['shape'];
|
|
90
155
|
export type ButtonIntent = ButtonRecipeProps['intent'];
|
|
156
|
+
export type ButtonIsFullWidth = ButtonRecipeProps['isFullWidth'];
|
|
157
|
+
export type ButtonIsLoading = ButtonRecipeProps['isLoading'];
|
|
91
158
|
export type ButtonMinimal = ButtonRecipeProps['minimal'];
|
|
159
|
+
export type ButtonRounded = ButtonRecipeProps['rounded'];
|
|
92
160
|
export interface StyledButtonProps {
|
|
93
161
|
/**
|
|
94
162
|
* Button sizing
|
|
@@ -98,10 +166,16 @@ export interface StyledButtonProps {
|
|
|
98
166
|
* Button intentional colour scheme
|
|
99
167
|
*/
|
|
100
168
|
variant?: ButtonIntent;
|
|
169
|
+
/**
|
|
170
|
+
* Pill shaped button appearance
|
|
171
|
+
*/
|
|
172
|
+
rounded?: ButtonRounded;
|
|
101
173
|
/**
|
|
102
174
|
* Present a borderless minimal appearance
|
|
103
175
|
*/
|
|
104
176
|
minimal?: ButtonMinimal;
|
|
177
|
+
isFullWidth?: ButtonIsFullWidth;
|
|
178
|
+
isLoading?: ButtonIsFullWidth;
|
|
105
179
|
}
|
|
106
180
|
export {};
|
|
107
181
|
//# sourceMappingURL=Button.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Button/Button.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Button/Button.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAU5D,eAAO,MAAM,aAAa,QAAkC,CAAC;AAC7D,eAAO,MAAM,cAAc,QAKzB,CAAC;AACH,eAAO,MAAM,OAAO,QAA4B,CAAC;AAGjD,eAAO,MAAM,MAAM;;;;gBA+Cd,CAAC,iBAAiB,CAAC;;;;kBAIlB;;;;;gBAKD,CAAC,iBAAiB,CAAC;;;kBAGlB;;;;;gBAKD,CAAC,iBAAiB,CAAC;;;;kBAIlB;;;;;;;;;gBAUD,CAAC,iBAAiB,CAAC;;kBAElB;;;;;;;gBAQD,CAAC,iBAAiB,CAAC;;;;;;;kBASlB;;;;;gBAKD,CAAC,iBAAiB,CAAC;;;;;;kBAOlB;;;;;gBAKD,CAAC,iBAAiB,CAAC;;;;;;;;;;kBAalB;;;;;gBAKD,CAAC,iBAAiB,CAAC;;;;;;kBAQlB;;;;;gBAKD,CAAC,iBAAiB,CAAC;;;;;;kBAQlB;;;;;gBAKD,CAAC,iBAAiB,CAAC;;;;;;kBAQlB;;;;;gBAKD,CAAC,iBAAiB,CAAC;;;;;;kBAQlB;;;;;;;gBAQD,CAAC,iBAAiB,CAAC;;;;kBAIlB;;;;;;;;;;;;;;EAsMJ,CAAC;AAEH,KAAK,iBAAiB,GAAG,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;AAE9E,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACrD,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AACvD,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;AAC7D,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACzD,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;AAEzD,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC9B"}
|