@autoguru/overdrive 4.42.0-next.1 → 4.43.0-next.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/Actions/Actions.d.ts +4 -3
- package/dist/components/Actions/Actions.d.ts.map +1 -1
- package/dist/components/Actions/Actions.js +5 -9
- package/dist/components/Actions/Actions.stories.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +13 -17
- package/dist/components/Anchor/Anchor.js +3 -3
- package/dist/components/AutoSuggest/AutoSuggest.js +2 -2
- package/dist/components/Box/Box.d.ts +6 -9
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/Box.js +12 -117
- package/dist/components/Box/Box.stories.d.ts +3 -20
- package/dist/components/Box/Box.stories.d.ts.map +1 -1
- package/dist/components/Box/argTypes.d.ts.map +1 -1
- package/dist/components/Box/argTypes.js +1 -1
- package/dist/components/Box/boxStyles.d.ts +5 -0
- package/dist/components/Box/boxStyles.d.ts.map +1 -0
- package/dist/components/Box/boxStyles.js +32 -0
- package/dist/components/Box/index.d.ts +3 -3
- package/dist/components/Box/index.d.ts.map +1 -1
- package/dist/components/Box/index.js +3 -2
- package/dist/components/Box/useBox.d.ts +22 -0
- package/dist/components/Box/useBox.d.ts.map +1 -0
- package/dist/components/Box/useBox.js +42 -0
- package/dist/components/BulletText/BulletText.d.ts +4 -5
- package/dist/components/BulletText/BulletText.d.ts.map +1 -1
- package/dist/components/BulletText/BulletText.js +6 -8
- package/dist/components/BulletText/BulletText.stories.d.ts +1 -1
- package/dist/components/BulletText/BulletText.stories.d.ts.map +1 -1
- package/dist/components/Button/Button.js +4 -4
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/ColourInput/ColourInput.js +4 -4
- package/dist/components/Columns/Column.d.ts +13 -14
- package/dist/components/Columns/Column.d.ts.map +1 -1
- package/dist/components/Columns/Column.js +23 -37
- package/dist/components/Columns/Columns.css.d.ts +18 -6
- package/dist/components/Columns/Columns.css.d.ts.map +1 -1
- package/dist/components/Columns/Columns.css.js +46 -34
- package/dist/components/Columns/Columns.d.ts +13 -24
- package/dist/components/Columns/Columns.d.ts.map +1 -1
- package/dist/components/Columns/Columns.js +31 -40
- package/dist/components/Columns/Columns.stories.d.ts +7 -904
- package/dist/components/Columns/Columns.stories.d.ts.map +1 -1
- package/dist/components/Columns/index.d.ts +2 -2
- package/dist/components/Columns/index.d.ts.map +1 -1
- package/dist/components/Columns/index.js +2 -2
- package/dist/components/DateInput/DateInput.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +3 -3
- package/dist/components/DividerLine/DividerLine.js +2 -2
- package/dist/components/DropDown/DropDown.stories.d.ts +5 -5
- package/dist/components/DropDown/DropDown.stories.d.ts.map +1 -1
- package/dist/components/DropDown/DropDownOption.js +2 -2
- package/dist/components/DropDown/DropDownOptionsList.js +2 -1
- package/dist/components/EditableText/EditableText.d.ts +2 -2
- package/dist/components/EditableText/EditableText.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.js +2 -2
- package/dist/components/EditableText/EditableText.stories.d.ts +1 -1
- package/dist/components/EditableText/EditableText.stories.d.ts.map +1 -1
- package/dist/components/FillHeightBox/FillHeightBox.stories.d.ts +1 -1
- package/dist/components/Flyout/Flyout.stories.d.ts +1 -1
- package/dist/components/Heading/Heading.d.ts +4 -4
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +10 -12
- package/dist/components/Heading/Heading.stories.d.ts +1 -8
- package/dist/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.css.d.ts +12 -0
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.css.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.css.js +33 -0
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts +5 -4
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts.map +1 -1
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.js +46 -35
- 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 +2 -2
- package/dist/components/Inline/Inline.d.ts +13 -13
- package/dist/components/Inline/Inline.d.ts.map +1 -1
- package/dist/components/Inline/Inline.js +54 -55
- package/dist/components/Inline/Inline.stories.d.ts +3 -32
- package/dist/components/Inline/Inline.stories.d.ts.map +1 -1
- package/dist/components/Inline/index.d.ts +1 -1
- package/dist/components/Inline/index.d.ts.map +1 -1
- package/dist/components/Inline/index.js +1 -1
- package/dist/components/IntentStripe/IntentStripe.d.ts +1 -2
- package/dist/components/IntentStripe/IntentStripe.d.ts.map +1 -1
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.d.ts.map +1 -1
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.js +1 -0
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts +394 -431
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts.map +1 -1
- package/dist/components/Meta/Meta.js +1 -1
- package/dist/components/MinimalModal/MinimalModal.css.d.ts +1 -1
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts +6 -1
- package/dist/components/MinimalModal/MinimalModal.stories.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/NumberBubble/NumberBubble.d.ts.map +1 -1
- package/dist/components/NumberBubble/NumberBubble.js +3 -3
- package/dist/components/OptionGrid/OptionGrid.css.js +1 -1
- package/dist/components/OptionList/OptionList.d.ts +2 -2
- package/dist/components/OptionList/OptionListItem.js +1 -1
- package/dist/components/Pagination/Bubble.js +1 -1
- package/dist/components/Pagination/Pagination.js +3 -3
- package/dist/components/ProgressSpinner/ProgressSpinner.js +3 -3
- package/dist/components/ScrollPane/ScrollPane.d.ts +3 -3
- package/dist/components/ScrollPane/ScrollPane.d.ts.map +1 -1
- package/dist/components/ScrollPane/ScrollPane.js +1 -2
- package/dist/components/ScrollPane/ScrollPane.stories.d.ts +1 -1
- package/dist/components/ScrollPane/ScrollPane.stories.d.ts.map +1 -1
- package/dist/components/Section/Section.d.ts +4 -5
- package/dist/components/Section/Section.d.ts.map +1 -1
- package/dist/components/Section/Section.js +18 -13
- package/dist/components/Section/Section.stories.d.ts +1 -1
- package/dist/components/SimplePagination/SimplePagination.js +1 -1
- package/dist/components/SliderProgress/ProgressStep.js +2 -1
- package/dist/components/SliderProgress/SliderProgress.js +2 -1
- package/dist/components/SliderProgress/SliderProgress.stories.d.ts +1 -1
- package/dist/components/Stack/Divider.css.d.ts +1 -1
- package/dist/components/Stack/Divider.css.d.ts.map +1 -1
- package/dist/components/Stack/Divider.css.js +8 -3
- package/dist/components/Stack/Stack.d.ts +8 -9
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/Stack/Stack.js +50 -35
- package/dist/components/Stack/Stack.stories.d.ts +2 -17
- package/dist/components/Stack/Stack.stories.d.ts.map +1 -1
- package/dist/components/StandardModal/StandardModal.js +2 -2
- package/dist/components/StarRating/StarRating.d.ts.map +1 -1
- package/dist/components/StarRating/StarRating.js +3 -2
- package/dist/components/Stepper/Stepper.css.d.ts +1 -2
- package/dist/components/Stepper/Stepper.css.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.css.js +7 -12
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +15 -30
- package/dist/components/Table/TableCell.d.ts.map +1 -1
- package/dist/components/Table/TableCell.js +2 -2
- package/dist/components/Table/TableHeadCell.d.ts +1 -1
- package/dist/components/Table/TableHeadCell.d.ts.map +1 -1
- package/dist/components/Table/TableHeadCell.js +4 -2
- package/dist/components/Tabs/Tab.js +5 -5
- package/dist/components/Text/Text.d.ts +4 -2
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +2 -5
- package/dist/components/Text/Text.stories.d.ts.map +1 -1
- package/dist/components/Text/useTextStyles.css.d.ts +1 -1
- package/dist/components/Text/useTextStyles.css.d.ts.map +1 -1
- package/dist/components/Text/useTextStyles.css.js +5 -1
- package/dist/components/Text/useTextStyles.d.ts +4 -5
- package/dist/components/Text/useTextStyles.d.ts.map +1 -1
- package/dist/components/Text/useTextStyles.js +3 -4
- package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -1
- package/dist/components/TextAreaInput/TextAreaInput.js +7 -6
- package/dist/components/TextBubble/TextBubble.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.js +3 -3
- package/dist/components/TextContainer/TextContainer.d.ts +0 -1
- package/dist/components/TextContainer/TextContainer.d.ts.map +1 -1
- package/dist/components/TextContainer/TextContainer.js +13 -25
- package/dist/components/TextContainer/TextContainer.stories.d.ts +3 -6
- package/dist/components/TextContainer/TextContainer.stories.d.ts.map +1 -1
- package/dist/components/TextLink/TextLink.d.ts +2 -2
- package/dist/components/TextLink/TextLink.d.ts.map +1 -1
- package/dist/components/TextLink/TextLink.js +8 -8
- package/dist/components/TextLink/TextLink.stories.d.ts +27 -22
- package/dist/components/TextLink/TextLink.stories.d.ts.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +5 -4
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +9 -3
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +1 -5
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.d.ts.map +1 -1
- package/dist/components/private/CheckableBase/CheckableBase.js +10 -10
- package/dist/components/private/InputBase/HintText.js +5 -5
- package/dist/components/private/InputBase/withEnhancedInput.d.ts +3 -3
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.js +4 -4
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useDeepCompareMemo/index.d.ts +2 -0
- package/dist/hooks/useDeepCompareMemo/index.d.ts.map +1 -0
- package/dist/hooks/useDeepCompareMemo/index.js +13 -0
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.d.ts +1 -2
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.d.ts.map +1 -1
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.d.ts +1 -2
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.d.ts.map +1 -1
- package/dist/reset/globalReset.css.js +30 -13
- package/dist/reset/reset.css.d.ts.map +1 -1
- package/dist/reset/reset.css.js +94 -37
- package/dist/stories/helpers/index.d.ts +1 -1
- package/dist/stories/helpers/index.d.ts.map +1 -1
- package/dist/stories/helpers/sprinkles.css.d.ts +1 -1
- package/dist/stories/helpers/stack.css.d.ts.map +1 -0
- package/dist/styles/layers.css.d.ts +2 -0
- package/dist/styles/layers.css.d.ts.map +1 -1
- package/dist/styles/layers.css.js +2 -0
- package/dist/styles/sprinkles.css.d.ts +405 -71
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +193 -19
- package/dist/styles/vars.css.d.ts +2 -0
- package/dist/styles/vars.css.d.ts.map +1 -0
- package/dist/styles/vars.css.js +7 -0
- package/dist/test/vitest.setup.d.ts +2 -0
- package/dist/test/vitest.setup.d.ts.map +1 -0
- package/dist/themes/makeTheme.d.ts +1 -0
- package/dist/themes/makeTheme.d.ts.map +1 -1
- package/dist/themes/makeTheme.js +2 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/sprinkles.d.ts +11 -0
- package/dist/utils/sprinkles.d.ts.map +1 -0
- package/dist/utils/sprinkles.js +34 -0
- package/package.json +26 -23
- package/dist/components/Box/useBoxStyles.css.d.ts +0 -48
- package/dist/components/Box/useBoxStyles.css.d.ts.map +0 -1
- package/dist/components/Box/useBoxStyles.css.js +0 -141
- package/dist/components/Box/useBoxStyles.d.ts +0 -69
- package/dist/components/Box/useBoxStyles.d.ts.map +0 -1
- package/dist/components/Box/useBoxStyles.js +0 -80
- package/dist/components/Columns/Column.css.d.ts +0 -3
- package/dist/components/Columns/Column.css.d.ts.map +0 -1
- package/dist/components/Columns/Column.css.js +0 -35
- package/dist/components/Stack/Divider.d.ts +0 -3
- package/dist/components/Stack/Divider.d.ts.map +0 -1
- package/dist/components/Stack/Divider.js +0 -14
- package/dist/components/Stack/Stack.css.d.ts +0 -5
- package/dist/components/Stack/Stack.css.d.ts.map +0 -1
- package/dist/components/Stack/Stack.css.js +0 -18
- package/dist/styles/stack.css.d.ts.map +0 -1
- package/dist/styles/stack.css.js +0 -44
- package/dist/test/vitest-setup.d.ts +0 -2
- package/dist/test/vitest-setup.d.ts.map +0 -1
- /package/dist/{styles → stories/helpers}/stack.css.d.ts +0 -0
- /package/dist/test/{vitest-setup.js → vitest.setup.js} +0 -0
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
-
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
5
|
-
__vanilla_filescope__.setFileScope("lib/components/Box/useBoxStyles.css.ts", "@autoguru/overdrive");
|
|
6
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
-
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; }
|
|
8
|
-
import { style, styleVariants } from '@vanilla-extract/css';
|
|
9
|
-
import { overdriveTokens as vars } from "../../themes/theme.css.js";
|
|
10
|
-
import { mapTokenToProperty } from "../../utils/mapTokenToProperty.js";
|
|
11
|
-
import { makeResponsiveStyle } from "../../utils/responsiveProps.css.js";
|
|
12
|
-
export const padding = {
|
|
13
|
-
top: makeResponsiveStyle(vars.space, 'paddingTop'),
|
|
14
|
-
right: makeResponsiveStyle(vars.space, 'paddingRight'),
|
|
15
|
-
bottom: makeResponsiveStyle(vars.space, 'paddingBottom'),
|
|
16
|
-
left: makeResponsiveStyle(vars.space, 'paddingLeft')
|
|
17
|
-
};
|
|
18
|
-
export const margin = {
|
|
19
|
-
top: makeResponsiveStyle(vars.space, 'marginTop'),
|
|
20
|
-
right: makeResponsiveStyle(vars.space, 'marginRight'),
|
|
21
|
-
bottom: makeResponsiveStyle(vars.space, 'marginBottom'),
|
|
22
|
-
left: makeResponsiveStyle(vars.space, 'marginLeft')
|
|
23
|
-
};
|
|
24
|
-
export const boxShadow = makeResponsiveStyle(vars.elevation, 'boxShadow');
|
|
25
|
-
const borderColours = _objectSpread(_objectSpread({}, vars.border.colours), Object.fromEntries(Object.entries(vars.colours.intent).map(entry => [entry[0], entry[1].border])));
|
|
26
|
-
const backgroundColourTokens = _objectSpread(_objectSpread(_objectSpread({}, vars.colours.gamut), Object.fromEntries(Object.entries(vars.colours.intent).map(entry => [entry[0], entry[1].background.standard]))), {}, {
|
|
27
|
-
transparent: 'transparent'
|
|
28
|
-
});
|
|
29
|
-
const foregroundColourTokens = Object.fromEntries(Object.entries(vars.colours.intent).map(entry => [entry[0], entry[1].foreground]));
|
|
30
|
-
export const border = {
|
|
31
|
-
style: style({
|
|
32
|
-
borderStyle: 'solid'
|
|
33
|
-
}, "border_style"),
|
|
34
|
-
colour: {
|
|
35
|
-
top: styleVariants(mapTokenToProperty(borderColours, 'borderTopColor'), "border_colour_top"),
|
|
36
|
-
right: styleVariants(mapTokenToProperty(borderColours, 'borderRightColor'), "border_colour_right"),
|
|
37
|
-
bottom: styleVariants(mapTokenToProperty(borderColours, 'borderBottomColor'), "border_colour_bottom"),
|
|
38
|
-
left: styleVariants(mapTokenToProperty(borderColours, 'borderLeftColor'), "border_colour_left")
|
|
39
|
-
},
|
|
40
|
-
width: {
|
|
41
|
-
top: makeResponsiveStyle(vars.border.width, 'borderTopWidth'),
|
|
42
|
-
right: makeResponsiveStyle(vars.border.width, 'borderRightWidth'),
|
|
43
|
-
bottom: makeResponsiveStyle(vars.border.width, 'borderBottomWidth'),
|
|
44
|
-
left: makeResponsiveStyle(vars.border.width, 'borderLeftWidth')
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
export const borderRadius = makeResponsiveStyle(vars.border.radius, 'borderRadius');
|
|
48
|
-
export const backgroundColours = styleVariants(mapTokenToProperty(backgroundColourTokens, 'backgroundColor'), "backgroundColours");
|
|
49
|
-
export const colours = styleVariants(mapTokenToProperty(foregroundColourTokens, 'color'), "colours");
|
|
50
|
-
export const width = styleVariants({
|
|
51
|
-
full: {
|
|
52
|
-
width: '100%'
|
|
53
|
-
},
|
|
54
|
-
none: {
|
|
55
|
-
width: 'auto'
|
|
56
|
-
}
|
|
57
|
-
}, "width");
|
|
58
|
-
export const height = styleVariants({
|
|
59
|
-
full: {
|
|
60
|
-
height: '100%'
|
|
61
|
-
}
|
|
62
|
-
}, "height");
|
|
63
|
-
export const position = styleVariants(mapTokenToProperty({
|
|
64
|
-
absolute: 'absolute',
|
|
65
|
-
fixed: 'fixed',
|
|
66
|
-
relative: 'relative'
|
|
67
|
-
}, 'position'), "position");
|
|
68
|
-
export const textAlign = styleVariants(mapTokenToProperty({
|
|
69
|
-
left: 'left',
|
|
70
|
-
center: 'center',
|
|
71
|
-
right: 'right'
|
|
72
|
-
}, 'textAlign'), "textAlign");
|
|
73
|
-
export const overflow = styleVariants(mapTokenToProperty({
|
|
74
|
-
hidden: 'hidden',
|
|
75
|
-
scroll: 'scroll',
|
|
76
|
-
visible: 'visible',
|
|
77
|
-
auto: 'auto'
|
|
78
|
-
}, 'overflow'), "overflow");
|
|
79
|
-
export const display = styleVariants(mapTokenToProperty({
|
|
80
|
-
contents: 'contents',
|
|
81
|
-
block: 'block',
|
|
82
|
-
flex: 'flex',
|
|
83
|
-
grid: 'grid',
|
|
84
|
-
inlineFlex: 'inline-flex',
|
|
85
|
-
inline: 'inline',
|
|
86
|
-
inlineBlock: 'inline-block',
|
|
87
|
-
none: 'none'
|
|
88
|
-
}, 'display'), "display");
|
|
89
|
-
export const opacity = styleVariants({
|
|
90
|
-
0: {
|
|
91
|
-
opacity: 0
|
|
92
|
-
},
|
|
93
|
-
1: {
|
|
94
|
-
opacity: 1
|
|
95
|
-
}
|
|
96
|
-
}, "opacity");
|
|
97
|
-
export const userSelect = styleVariants({
|
|
98
|
-
none: {
|
|
99
|
-
userSelect: 'none'
|
|
100
|
-
}
|
|
101
|
-
}, "userSelect");
|
|
102
|
-
export const order = makeResponsiveStyle({
|
|
103
|
-
0: '0',
|
|
104
|
-
1: '1',
|
|
105
|
-
2: '2'
|
|
106
|
-
}, 'order');
|
|
107
|
-
export const alignItems = makeResponsiveStyle({
|
|
108
|
-
flexStart: 'flex-start',
|
|
109
|
-
center: 'center',
|
|
110
|
-
flexEnd: 'flex-end'
|
|
111
|
-
}, 'alignItems');
|
|
112
|
-
export const flexDirection = makeResponsiveStyle({
|
|
113
|
-
row: 'row',
|
|
114
|
-
rowReverse: 'row-reverse',
|
|
115
|
-
column: 'column',
|
|
116
|
-
columnReverse: 'column-reverse'
|
|
117
|
-
}, 'flexDirection');
|
|
118
|
-
export const flexGrow = styleVariants(mapTokenToProperty({
|
|
119
|
-
0: 0,
|
|
120
|
-
1: 1
|
|
121
|
-
}, 'flexGrow'), "flexGrow");
|
|
122
|
-
export const flexShrink = styleVariants(mapTokenToProperty({
|
|
123
|
-
0: 0
|
|
124
|
-
}, 'flexShrink'), "flexShrink");
|
|
125
|
-
export const flexWrap = styleVariants(mapTokenToProperty({
|
|
126
|
-
wrap: 'wrap',
|
|
127
|
-
nowrap: 'nowrap'
|
|
128
|
-
}, 'flexWrap'), "flexWrap");
|
|
129
|
-
export const justifyContent = makeResponsiveStyle({
|
|
130
|
-
flexStart: 'flex-start',
|
|
131
|
-
center: 'center',
|
|
132
|
-
flexEnd: 'flex-end',
|
|
133
|
-
spaceBetween: 'space-between',
|
|
134
|
-
spaceAround: 'space-around'
|
|
135
|
-
}, 'justifyContent');
|
|
136
|
-
export const pointerEvents = styleVariants({
|
|
137
|
-
none: {
|
|
138
|
-
pointerEvents: 'none'
|
|
139
|
-
}
|
|
140
|
-
}, "pointerEvents");
|
|
141
|
-
__vanilla_filescope__.endFileScope();
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx';
|
|
2
|
-
import type { ElementType } from 'react';
|
|
3
|
-
import { ThemeTokens as Tokens } from '../../themes';
|
|
4
|
-
import { ResponsiveProp } from '../../utils/responsiveProps.css';
|
|
5
|
-
import * as styles from './useBoxStyles.css';
|
|
6
|
-
interface Padding {
|
|
7
|
-
padding?: ResponsiveProp<keyof Tokens['space']>;
|
|
8
|
-
paddingX?: ResponsiveProp<keyof Tokens['space']>;
|
|
9
|
-
paddingY?: ResponsiveProp<keyof Tokens['space']>;
|
|
10
|
-
paddingTop?: ResponsiveProp<keyof Tokens['space']>;
|
|
11
|
-
paddingRight?: ResponsiveProp<keyof Tokens['space']>;
|
|
12
|
-
paddingBottom?: ResponsiveProp<keyof Tokens['space']>;
|
|
13
|
-
paddingLeft?: ResponsiveProp<keyof Tokens['space']>;
|
|
14
|
-
}
|
|
15
|
-
interface Margin {
|
|
16
|
-
margin?: ResponsiveProp<keyof Tokens['space']>;
|
|
17
|
-
marginX?: ResponsiveProp<keyof Tokens['space']>;
|
|
18
|
-
marginY?: ResponsiveProp<keyof Tokens['space']>;
|
|
19
|
-
marginTop?: ResponsiveProp<keyof Tokens['space']>;
|
|
20
|
-
marginRight?: ResponsiveProp<keyof Tokens['space']>;
|
|
21
|
-
marginBottom?: ResponsiveProp<keyof Tokens['space']>;
|
|
22
|
-
marginLeft?: ResponsiveProp<keyof Tokens['space']>;
|
|
23
|
-
}
|
|
24
|
-
interface Border {
|
|
25
|
-
borderWidth?: ResponsiveProp<keyof Tokens['border']['width']>;
|
|
26
|
-
borderWidthX?: ResponsiveProp<keyof Tokens['border']['width']>;
|
|
27
|
-
borderWidthY?: ResponsiveProp<keyof Tokens['border']['width']>;
|
|
28
|
-
borderWidthTop?: ResponsiveProp<keyof Tokens['border']['width']>;
|
|
29
|
-
borderWidthRight?: ResponsiveProp<keyof Tokens['border']['width']>;
|
|
30
|
-
borderWidthBottom?: ResponsiveProp<keyof Tokens['border']['width']>;
|
|
31
|
-
borderWidthLeft?: ResponsiveProp<keyof Tokens['border']['width']>;
|
|
32
|
-
borderColour?: keyof (typeof styles.border)['colour']['top'];
|
|
33
|
-
borderColourX?: keyof (typeof styles.border)['colour']['top'];
|
|
34
|
-
borderColourY?: keyof (typeof styles.border)['colour']['top'];
|
|
35
|
-
borderColourTop?: keyof (typeof styles.border)['colour']['top'];
|
|
36
|
-
borderColourRight?: keyof (typeof styles.border)['colour']['top'];
|
|
37
|
-
borderColourBottom?: keyof (typeof styles.border)['colour']['top'];
|
|
38
|
-
borderColourLeft?: keyof (typeof styles.border)['colour']['top'];
|
|
39
|
-
borderRadius?: ResponsiveProp<keyof typeof styles.borderRadius>;
|
|
40
|
-
}
|
|
41
|
-
interface Flex {
|
|
42
|
-
alignItems?: ResponsiveProp<keyof typeof styles.alignItems>;
|
|
43
|
-
order?: ResponsiveProp<keyof typeof styles.order>;
|
|
44
|
-
flexDirection?: ResponsiveProp<keyof typeof styles.flexDirection>;
|
|
45
|
-
flexGrow?: keyof typeof styles.flexGrow;
|
|
46
|
-
flexShrink?: keyof typeof styles.flexShrink;
|
|
47
|
-
flexWrap?: keyof typeof styles.flexWrap;
|
|
48
|
-
justifyContent?: ResponsiveProp<keyof typeof styles.justifyContent>;
|
|
49
|
-
}
|
|
50
|
-
export interface BoxStyleProps extends Padding, Margin, Border, Flex {
|
|
51
|
-
as?: ElementType;
|
|
52
|
-
is?: ElementType;
|
|
53
|
-
boxShadow?: ResponsiveProp<keyof typeof styles.boxShadow>;
|
|
54
|
-
display?: keyof typeof styles.display;
|
|
55
|
-
position?: keyof typeof styles.position;
|
|
56
|
-
width?: keyof typeof styles.width;
|
|
57
|
-
height?: keyof typeof styles.height;
|
|
58
|
-
backgroundColour?: keyof typeof styles.backgroundColours;
|
|
59
|
-
colour?: keyof typeof styles.colours;
|
|
60
|
-
opacity?: keyof typeof styles.opacity;
|
|
61
|
-
overflow?: keyof typeof styles.overflow;
|
|
62
|
-
userSelect?: keyof typeof styles.userSelect;
|
|
63
|
-
textAlign?: keyof typeof styles.textAlign;
|
|
64
|
-
pointerEvents?: keyof typeof styles.pointerEvents;
|
|
65
|
-
className?: Parameters<typeof clsx>[0];
|
|
66
|
-
}
|
|
67
|
-
export declare const useBoxStyles: ({ as, is, display, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, margin, marginX, marginY, marginTop, marginBottom, marginLeft, marginRight, boxShadow, borderWidth, borderWidthX, borderWidthY, borderWidthTop, borderWidthRight, borderWidthBottom, borderWidthLeft, borderColour, borderColourX, borderColourY, borderColourTop, borderColourRight, borderColourBottom, borderColourLeft, borderRadius, backgroundColour, colour, opacity, width, height, position, overflow, userSelect, textAlign, pointerEvents, alignItems, order, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, className, }: BoxStyleProps) => string;
|
|
68
|
-
export default useBoxStyles;
|
|
69
|
-
//# sourceMappingURL=useBoxStyles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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,CAAC;IACjB,SAAS,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1D,OAAO,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC;IAEtC,QAAQ,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,QAAQ,CAAC;IAExC,KAAK,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC;IAEpC,gBAAgB,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,iBAAiB,CAAC;IACzD,MAAM,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC;IAEtC,QAAQ,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,QAAQ,CAAC;IACxC,UAAU,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,UAAU,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,SAAS,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,aAAa,CAAC;IAElD,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;CACvC;AAED,eAAO,MAAM,YAAY,GAAI,4nBAoD1B,aAAa,WAqHf,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import * as resetStyles from "../../reset/reset.css.js";
|
|
5
|
-
import { resolveResponsiveStyle } from "../../utils/resolveResponsiveProps.js";
|
|
6
|
-
import * as styles from "./useBoxStyles.css.js";
|
|
7
|
-
export const useBoxStyles = _ref => {
|
|
8
|
-
let {
|
|
9
|
-
as,
|
|
10
|
-
is = as,
|
|
11
|
-
display,
|
|
12
|
-
padding,
|
|
13
|
-
paddingX,
|
|
14
|
-
paddingY,
|
|
15
|
-
paddingTop,
|
|
16
|
-
paddingBottom,
|
|
17
|
-
paddingLeft,
|
|
18
|
-
paddingRight,
|
|
19
|
-
margin,
|
|
20
|
-
marginX,
|
|
21
|
-
marginY,
|
|
22
|
-
marginTop,
|
|
23
|
-
marginBottom,
|
|
24
|
-
marginLeft,
|
|
25
|
-
marginRight,
|
|
26
|
-
boxShadow,
|
|
27
|
-
borderWidth,
|
|
28
|
-
borderWidthX,
|
|
29
|
-
borderWidthY,
|
|
30
|
-
borderWidthTop,
|
|
31
|
-
borderWidthRight,
|
|
32
|
-
borderWidthBottom,
|
|
33
|
-
borderWidthLeft,
|
|
34
|
-
borderColour,
|
|
35
|
-
borderColourX,
|
|
36
|
-
borderColourY,
|
|
37
|
-
borderColourTop,
|
|
38
|
-
borderColourRight,
|
|
39
|
-
borderColourBottom,
|
|
40
|
-
borderColourLeft,
|
|
41
|
-
borderRadius,
|
|
42
|
-
backgroundColour,
|
|
43
|
-
colour,
|
|
44
|
-
opacity,
|
|
45
|
-
width,
|
|
46
|
-
height,
|
|
47
|
-
position,
|
|
48
|
-
overflow,
|
|
49
|
-
userSelect,
|
|
50
|
-
textAlign,
|
|
51
|
-
pointerEvents,
|
|
52
|
-
alignItems,
|
|
53
|
-
order,
|
|
54
|
-
flexDirection,
|
|
55
|
-
flexGrow,
|
|
56
|
-
flexShrink,
|
|
57
|
-
flexWrap,
|
|
58
|
-
justifyContent,
|
|
59
|
-
className
|
|
60
|
-
} = _ref;
|
|
61
|
-
const resolvedPaddingTop = paddingTop || paddingY || padding;
|
|
62
|
-
const resolvedPaddingRight = paddingRight || paddingX || padding;
|
|
63
|
-
const resolvedPaddingBottom = paddingBottom || paddingY || padding;
|
|
64
|
-
const resolvedPaddingLeft = paddingLeft || paddingX || padding;
|
|
65
|
-
const resolvedMarginTop = marginTop || marginY || margin;
|
|
66
|
-
const resolvedMarginRight = marginRight || marginX || margin;
|
|
67
|
-
const resolvedMarginBottom = marginBottom || marginY || margin;
|
|
68
|
-
const resolvedMarginLeft = marginLeft || marginX || margin;
|
|
69
|
-
const resolvedBorderWidthTop = borderWidthTop || borderWidthY || borderWidth;
|
|
70
|
-
const resolvedBorderWidthRight = borderWidthRight || borderWidthX || borderWidth;
|
|
71
|
-
const resolvedBorderWidthBottom = borderWidthBottom || borderWidthY || borderWidth;
|
|
72
|
-
const resolvedBorderWidthLeft = borderWidthLeft || borderWidth || borderWidth;
|
|
73
|
-
const resolvedBorderColourTop = borderColourTop || borderColourY || borderColour;
|
|
74
|
-
const resolvedBorderColourRight = borderColourRight || borderColourX || borderColour;
|
|
75
|
-
const resolvedBorderColourBottom = borderColourBottom || borderColourY || borderColour;
|
|
76
|
-
const resolvedBorderColourLeft = borderColourLeft || borderColour || borderColour;
|
|
77
|
-
const hasBorder = resolvedBorderWidthTop || resolvedBorderWidthRight || resolvedBorderWidthBottom || resolvedBorderWidthLeft;
|
|
78
|
-
return clsx(typeof is === 'string' ? [resetStyles.element[is]] : [resetStyles.element.div], resolveResponsiveStyle(resolvedPaddingTop, styles.padding.top), resolveResponsiveStyle(resolvedPaddingRight, styles.padding.right), resolveResponsiveStyle(resolvedPaddingBottom, styles.padding.bottom), resolveResponsiveStyle(resolvedPaddingLeft, styles.padding.left), resolveResponsiveStyle(resolvedMarginTop, styles.margin.top), resolveResponsiveStyle(resolvedMarginRight, styles.margin.right), resolveResponsiveStyle(resolvedMarginBottom, styles.margin.bottom), resolveResponsiveStyle(resolvedMarginLeft, styles.margin.left), styles.display[display], styles.width[width], styles.height[height], styles.position[position], styles.overflow[overflow], styles.userSelect[userSelect], styles.textAlign[textAlign], styles.pointerEvents[pointerEvents], hasBorder && styles.border.style, hasBorder && resolvedBorderColourTop && styles.border.colour.top[resolvedBorderColourTop], hasBorder && resolvedBorderColourRight && styles.border.colour.right[resolvedBorderColourRight], hasBorder && resolvedBorderColourBottom && styles.border.colour.bottom[resolvedBorderColourBottom], hasBorder && resolvedBorderColourLeft && styles.border.colour.left[resolvedBorderColourLeft], hasBorder && resolvedBorderWidthTop && resolveResponsiveStyle(resolvedBorderWidthTop, styles.border.width.top), hasBorder && resolvedBorderWidthRight && resolveResponsiveStyle(resolvedBorderWidthRight, styles.border.width.right), hasBorder && resolvedBorderWidthBottom && resolveResponsiveStyle(resolvedBorderWidthBottom, styles.border.width.bottom), hasBorder && resolvedBorderWidthLeft && resolveResponsiveStyle(resolvedBorderWidthLeft, styles.border.width.left), resolveResponsiveStyle(boxShadow, styles.boxShadow), borderRadius && resolveResponsiveStyle(borderRadius, styles.borderRadius), styles.backgroundColours[backgroundColour], styles.colours[colour], styles.opacity[opacity], alignItems && resolveResponsiveStyle(alignItems, styles.alignItems), order && resolveResponsiveStyle(order, styles.order), flexDirection && resolveResponsiveStyle(flexDirection, styles.flexDirection), styles.flexGrow[flexGrow], styles.flexShrink[flexShrink], styles.flexWrap[flexWrap], justifyContent && resolveResponsiveStyle(justifyContent, styles.justifyContent), className);
|
|
79
|
-
};
|
|
80
|
-
export default useBoxStyles;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Column.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Columns/Column.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,8BAejB,CAAC;AAEF,eAAO,MAAM,KAAK,yDAahB,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
-
__vanilla_filescope__.setFileScope("lib/components/Columns/Column.css.ts", "@autoguru/overdrive");
|
|
5
|
-
import { styleVariants } from '@vanilla-extract/css';
|
|
6
|
-
import { makeResponsiveStyle } from "../../utils/responsiveProps.css.js";
|
|
7
|
-
const getSizeStyle = scale => `${scale * 100}%`;
|
|
8
|
-
export const width = makeResponsiveStyle({
|
|
9
|
-
'1/2': getSizeStyle(1 / 2),
|
|
10
|
-
'1/3': getSizeStyle(1 / 3),
|
|
11
|
-
'2/3': getSizeStyle(2 / 3),
|
|
12
|
-
'1/4': getSizeStyle(1 / 4),
|
|
13
|
-
'3/4': getSizeStyle(3 / 4),
|
|
14
|
-
'1/5': getSizeStyle(1 / 5),
|
|
15
|
-
'2/5': getSizeStyle(2 / 5),
|
|
16
|
-
'3/5': getSizeStyle(3 / 5),
|
|
17
|
-
'4/5': getSizeStyle(4 / 5),
|
|
18
|
-
full: getSizeStyle(1),
|
|
19
|
-
auto: 'auto'
|
|
20
|
-
}, 'flexBasis');
|
|
21
|
-
export const align = styleVariants({
|
|
22
|
-
stretch: {
|
|
23
|
-
alignSelf: 'stretch'
|
|
24
|
-
},
|
|
25
|
-
top: {
|
|
26
|
-
alignSelf: 'flex-start'
|
|
27
|
-
},
|
|
28
|
-
centre: {
|
|
29
|
-
alignSelf: 'center'
|
|
30
|
-
},
|
|
31
|
-
bottom: {
|
|
32
|
-
alignSelf: 'flex-end'
|
|
33
|
-
}
|
|
34
|
-
}, "align");
|
|
35
|
-
__vanilla_filescope__.endFileScope();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Divider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,eAAO,MAAM,OAAO,EAAE,iBAIrB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Box } from "../Box/index.js";
|
|
5
|
-
import * as styles from "./Divider.css.js";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export const Divider = () => _jsx(Box, {
|
|
8
|
-
position: "relative",
|
|
9
|
-
children: _jsx(Box, {
|
|
10
|
-
position: "absolute",
|
|
11
|
-
className: styles.line,
|
|
12
|
-
width: "full"
|
|
13
|
-
})
|
|
14
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Stack/Stack.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK;;;CAWjB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
-
__vanilla_filescope__.setFileScope("lib/components/Stack/Stack.css.ts", "@autoguru/overdrive");
|
|
5
|
-
import { style, styleVariants } from '@vanilla-extract/css';
|
|
6
|
-
import { overdriveTokens as vars } from "../../themes/theme.css.js";
|
|
7
|
-
import { mapTokenToProperty } from "../../utils/mapTokenToProperty.js";
|
|
8
|
-
export const child = {
|
|
9
|
-
spaces: styleVariants(mapTokenToProperty(vars.space, value => ({
|
|
10
|
-
paddingBottom: value
|
|
11
|
-
})), "child_spaces"),
|
|
12
|
-
default: style({
|
|
13
|
-
':last-child': {
|
|
14
|
-
paddingBottom: 0
|
|
15
|
-
}
|
|
16
|
-
}, "child_default")
|
|
17
|
-
};
|
|
18
|
-
__vanilla_filescope__.endFileScope();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack.css.d.ts","sourceRoot":"","sources":["../../lib/styles/stack.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAOvE,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBhB,CAAC;AAEH,KAAK,QAAQ,GAAG,WAAW,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC;AAK1D,MAAM,WAAW,gBAAgB;IAIhC,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAI1B,UAAU,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;CACpC"}
|
package/dist/styles/stack.css.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
4
|
-
__vanilla_filescope__.setFileScope("lib/styles/stack.css.ts", "@autoguru/overdrive");
|
|
5
|
-
import { recipe } from '@vanilla-extract/recipes';
|
|
6
|
-
import { overdriveTokens as tokens } from "../themes/theme.css.js";
|
|
7
|
-
export const stack = recipe({
|
|
8
|
-
base: {
|
|
9
|
-
display: 'flex',
|
|
10
|
-
flexWrap: 'wrap'
|
|
11
|
-
},
|
|
12
|
-
variants: {
|
|
13
|
-
space: {
|
|
14
|
-
xxs: {
|
|
15
|
-
gap: tokens.space['1']
|
|
16
|
-
},
|
|
17
|
-
xs: {
|
|
18
|
-
gap: tokens.space['3']
|
|
19
|
-
},
|
|
20
|
-
sm: {
|
|
21
|
-
gap: tokens.space['5']
|
|
22
|
-
},
|
|
23
|
-
md: {
|
|
24
|
-
gap: tokens.space['8']
|
|
25
|
-
},
|
|
26
|
-
lg: {
|
|
27
|
-
gap: tokens.space['9']
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
horizontal: {
|
|
31
|
-
false: {
|
|
32
|
-
flexDirection: 'column'
|
|
33
|
-
},
|
|
34
|
-
true: {
|
|
35
|
-
flexDirection: 'row'
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
defaultVariants: {
|
|
40
|
-
horizontal: false,
|
|
41
|
-
space: 'md'
|
|
42
|
-
}
|
|
43
|
-
}, "stack");
|
|
44
|
-
__vanilla_filescope__.endFileScope();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vitest-setup.d.ts","sourceRoot":"","sources":["../../lib/test/vitest-setup.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
File without changes
|
|
File without changes
|