@autoguru/overdrive 4.11.0 → 4.11.2

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.
Files changed (33) hide show
  1. package/dist/components/Box/Box.d.ts.map +1 -1
  2. package/dist/components/Box/Box.js +6 -2
  3. package/dist/components/Box/argTypes.d.ts.map +1 -1
  4. package/dist/components/Box/argTypes.js +8 -0
  5. package/dist/components/Box/stories.js +2 -1
  6. package/dist/components/Box/useBoxStyles.css.d.ts +3 -1
  7. package/dist/components/Box/useBoxStyles.css.d.ts.map +1 -1
  8. package/dist/components/Box/useBoxStyles.css.js +17 -4
  9. package/dist/components/Box/useBoxStyles.d.ts +3 -1
  10. package/dist/components/Box/useBoxStyles.d.ts.map +1 -1
  11. package/dist/components/Box/useBoxStyles.js +3 -1
  12. package/dist/components/Columns/Column.d.ts +1 -1
  13. package/dist/components/Columns/Column.d.ts.map +1 -1
  14. package/dist/components/Columns/Column.js +4 -2
  15. package/dist/components/Columns/Columns.d.ts +1 -1
  16. package/dist/components/Columns/Columns.d.ts.map +1 -1
  17. package/dist/components/Columns/stories.js +1 -0
  18. package/dist/components/Section/stories.js +2 -1
  19. package/dist/themes/base/tokens.js +1 -1
  20. package/dist/themes/flat_red/vars.css.js +1 -1
  21. package/dist/themes/index.d.ts +1 -0
  22. package/dist/themes/index.d.ts.map +1 -1
  23. package/dist/themes/index.js +2 -1
  24. package/dist/themes/neutral/index.d.ts +267 -0
  25. package/dist/themes/neutral/index.d.ts.map +1 -0
  26. package/dist/themes/neutral/index.js +11 -0
  27. package/dist/themes/neutral/tokens.d.ts +3 -0
  28. package/dist/themes/neutral/tokens.d.ts.map +1 -0
  29. package/dist/themes/neutral/tokens.js +283 -0
  30. package/dist/themes/neutral/vars.css.d.ts +2 -0
  31. package/dist/themes/neutral/vars.css.d.ts.map +1 -0
  32. package/dist/themes/neutral/vars.css.js +12 -0
  33. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,MAAM,WAAW,KAChB,SAAQ,aAAa,EACpB,IAAI,CACH,iBAAiB,CAAC,WAAW,CAAC,EAC9B,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,IAAI,CACvC;IACF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAKD,eAAO,MAAM,GAAG,2EA6Hf,CAAC;AAIF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,MAAM,WAAW,KAChB,SAAQ,aAAa,EACpB,IAAI,CACH,iBAAiB,CAAC,WAAW,CAAC,EAC9B,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,IAAI,CACvC;IACF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAKD,eAAO,MAAM,GAAG,2EAiIf,CAAC;AAIF,eAAe,GAAG,CAAC"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
- const _excluded = ["is", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginLeft", "marginRight", "display", "width", "height", "position", "overflow", "userSelect", "textAlign", "pointerEvents", "borderColour", "borderColourX", "borderColourY", "borderColourTop", "borderColourRight", "borderColourBottom", "borderColourLeft", "borderWidth", "borderWidthX", "borderWidthY", "borderWidthTop", "borderWidthRight", "borderWidthBottom", "borderWidthLeft", "boxShadow", "borderRadius", "backgroundColour", "opacity", "className", "alignItems", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "justifyContent", "children"];
5
+ const _excluded = ["is", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "margin", "marginX", "marginY", "marginTop", "marginBottom", "marginLeft", "marginRight", "display", "width", "height", "position", "overflow", "userSelect", "textAlign", "pointerEvents", "borderColour", "borderColourX", "borderColourY", "borderColourTop", "borderColourRight", "borderColourBottom", "borderColourLeft", "borderWidth", "borderWidthX", "borderWidthY", "borderWidthTop", "borderWidthRight", "borderWidthBottom", "borderWidthLeft", "boxShadow", "borderRadius", "backgroundColour", "colour", "opacity", "className", "alignItems", "order", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "justifyContent", "children"];
6
6
 
7
7
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
8
 
@@ -31,7 +31,7 @@ export const Box = forwardRef((_ref, ref) => {
31
31
  marginLeft,
32
32
  marginRight,
33
33
  display,
34
- width = 'none',
34
+ width,
35
35
  height,
36
36
  position,
37
37
  overflow,
@@ -55,9 +55,11 @@ export const Box = forwardRef((_ref, ref) => {
55
55
  boxShadow,
56
56
  borderRadius,
57
57
  backgroundColour,
58
+ colour,
58
59
  opacity,
59
60
  className = '',
60
61
  alignItems,
62
+ order,
61
63
  flexDirection,
62
64
  flexGrow,
63
65
  flexShrink,
@@ -70,7 +72,9 @@ export const Box = forwardRef((_ref, ref) => {
70
72
  const cls = useBoxStyles({
71
73
  is: Component,
72
74
  alignItems,
75
+ order,
73
76
  backgroundColour,
77
+ colour,
74
78
  borderColour,
75
79
  borderColourBottom,
76
80
  borderColourLeft,
@@ -1 +1 @@
1
- {"version":3,"file":"argTypes.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/argTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAWrD,CAAC;AAmCF,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,CA2DrE,CAAC"}
1
+ {"version":3,"file":"argTypes.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/argTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAWrD,CAAC;AAwCF,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,CAkErE,CAAC"}
@@ -11,6 +11,7 @@ const scaledProps = ['padding', 'paddingX', 'paddingY', 'paddingTop', 'paddingRi
11
11
  const boxShadowOptions = ['none', '1', '2', '3', '4', '5'];
12
12
  const borderRadiusOptions = ['none', '1', 'min', 'full', 'pill'];
13
13
  const widthOptions = ['full', 'none'];
14
+ const oderOptions = [0, 1, 2];
14
15
  export const boxArgTypes = _objectSpread({
15
16
  boxShadow: {
16
17
  options: boxShadowOptions,
@@ -60,6 +61,13 @@ export const boxArgTypes = _objectSpread({
60
61
  control: {
61
62
  type: 'select'
62
63
  }
64
+ },
65
+ order: {
66
+ options: oderOptions,
67
+ defaultValue: null,
68
+ control: {
69
+ type: 'select'
70
+ }
63
71
  }
64
72
  }, scaledProps.reduce((argTypes, prop) => {
65
73
  argTypes[prop] = {
@@ -39,7 +39,8 @@ const standardProps = {
39
39
  padding: ['2', '4'],
40
40
  marginBottom: ['2', '4', '5', '8'],
41
41
  marginX: ['none', '3', '5'],
42
- backgroundColour: 'green500',
42
+ backgroundColour: 'primary',
43
+ colour: 'primary',
43
44
  borderRadius: 'pill',
44
45
  boxShadow: ['none', '1', '2', '3']
45
46
  };
@@ -27,7 +27,8 @@ export declare const border: {
27
27
  };
28
28
  };
29
29
  export declare const borderRadius: Record<string | number, any>;
30
- export declare const backgroundColours: Record<"red900" | "red800" | "red700" | "red600" | "red500" | "red400" | "red300" | "red200" | "red100" | "gray900" | "gray800" | "gray700" | "gray600" | "gray500" | "gray400" | "gray300" | "gray200" | "gray100" | "green900" | "green800" | "green700" | "green600" | "green500" | "green400" | "green300" | "green200" | "green100" | "blue900" | "blue800" | "blue700" | "blue600" | "blue500" | "blue400" | "blue300" | "blue200" | "blue100" | "yellow900" | "yellow800" | "yellow700" | "yellow600" | "yellow500" | "yellow400" | "yellow300" | "yellow200" | "yellow100" | "white" | "transparent", string>;
30
+ export declare const backgroundColours: Record<import("../../themes/tokens").ColourGamut | ("primary" | "secondary" | "shine" | "neutral" | "danger" | "warning" | "success" | "information") | "white" | "transparent", string>;
31
+ export declare const colours: Record<"primary" | "secondary" | "shine" | "neutral" | "danger" | "warning" | "success" | "information", string>;
31
32
  export declare const width: Record<"none" | "full", string>;
32
33
  export declare const height: Record<"full", string>;
33
34
  export declare const position: Record<"fixed" | "absolute" | "relative", string>;
@@ -36,6 +37,7 @@ export declare const overflow: Record<"auto" | "hidden" | "visible" | "scroll",
36
37
  export declare const display: Record<"none" | "flex" | "contents" | "block" | "inline" | "inlineFlex" | "inlineBlock", string>;
37
38
  export declare const opacity: Record<0 | 1, string>;
38
39
  export declare const userSelect: Record<"none", string>;
40
+ export declare const order: Record<string | number, any>;
39
41
  export declare const alignItems: Record<string | number, any>;
40
42
  export declare const flexDirection: Record<string | number, any>;
41
43
  export declare const flexGrow: Record<0 | 1, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"useBoxStyles.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/useBoxStyles.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;CAKlB,CAAC;AAEF,eAAO,MAAM,SAAS,8BAAmD,CAAC;AAkB1E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAsBlB,CAAC;AAEF,eAAO,MAAM,YAAY,8BAGxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,ulBAQ7B,CAAC;AAEF,eAAO,MAAM,KAAK,iCAOhB,CAAC;AAEH,eAAO,MAAM,MAAM,wBAIjB,CAAC;AAEH,eAAO,MAAM,QAAQ,mDASpB,CAAC;AAEF,eAAO,MAAM,SAAS,6CASrB,CAAC;AAEF,eAAO,MAAM,QAAQ,0DAUpB,CAAC;AAEF,eAAO,MAAM,OAAO,kGAanB,CAAC;AAEF,eAAO,MAAM,OAAO,uBAGlB,CAAC;AAEH,eAAO,MAAM,UAAU,wBAErB,CAAC;AAIH,eAAO,MAAM,UAAU,8BAOtB,CAAC;AAEF,eAAO,MAAM,aAAa,8BAQzB,CAAC;AAEF,eAAO,MAAM,QAAQ,uBAQpB,CAAC;AAEF,eAAO,MAAM,UAAU,mBAOtB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAQpB,CAAC;AAEF,eAAO,MAAM,cAAc,8BAS1B,CAAC;AAEF,eAAO,MAAM,aAAa,wBAExB,CAAC"}
1
+ {"version":3,"file":"useBoxStyles.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/useBoxStyles.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;CAKlB,CAAC;AAEF,eAAO,MAAM,SAAS,8BAAmD,CAAC;AA2C1E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAsBlB,CAAC;AAEF,eAAO,MAAM,YAAY,8BAGxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,0LAK7B,CAAC;AAEF,eAAO,MAAM,OAAO,kHAKnB,CAAC;AAEF,eAAO,MAAM,KAAK,iCAOhB,CAAC;AAEH,eAAO,MAAM,MAAM,wBAIjB,CAAC;AAEH,eAAO,MAAM,QAAQ,mDASpB,CAAC;AAEF,eAAO,MAAM,SAAS,6CASrB,CAAC;AAEF,eAAO,MAAM,QAAQ,0DAUpB,CAAC;AAEF,eAAO,MAAM,OAAO,kGAanB,CAAC;AAEF,eAAO,MAAM,OAAO,uBAGlB,CAAC;AAEH,eAAO,MAAM,UAAU,wBAErB,CAAC;AAIH,eAAO,MAAM,KAAK,8BAOjB,CAAC;AAEF,eAAO,MAAM,UAAU,8BAOtB,CAAC;AAEF,eAAO,MAAM,aAAa,8BAQzB,CAAC;AAEF,eAAO,MAAM,QAAQ,uBAQpB,CAAC;AAEF,eAAO,MAAM,UAAU,mBAOtB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAQpB,CAAC;AAEF,eAAO,MAAM,cAAc,8BAS1B,CAAC;AAEF,eAAO,MAAM,aAAa,wBAExB,CAAC"}
@@ -31,6 +31,15 @@ const borderColours = _objectSpread(_objectSpread({}, vars.border.colours), Obje
31
31
  [entry[0]]: entry[1].border
32
32
  }), {}));
33
33
 
34
+ const backgroundColourTokens = _objectSpread(_objectSpread(_objectSpread({}, vars.colours.gamut), Object.entries(vars.colours.intent).reduce((map, entry) => _objectSpread(_objectSpread({}, map), {}, {
35
+ [entry[0]]: entry[1].background.standard
36
+ }), {})), {}, {
37
+ transparent: 'transparent'
38
+ });
39
+
40
+ const foregroundColourTokens = Object.entries(vars.colours.intent).reduce((map, entry) => _objectSpread(_objectSpread({}, map), {}, {
41
+ [entry[0]]: entry[1].foreground
42
+ }), {});
34
43
  export const border = {
35
44
  style: style({
36
45
  borderStyle: 'solid'
@@ -49,15 +58,14 @@ export const border = {
49
58
  }
50
59
  };
51
60
  export const borderRadius = makeResponsiveStyle(vars.border.radius, 'borderRadius');
52
- export const backgroundColours = styleVariants(mapTokenToProperty(_objectSpread(_objectSpread({}, vars.colours.gamut), {}, {
53
- transparent: 'transparent'
54
- }), 'backgroundColor'), "backgroundColours");
61
+ export const backgroundColours = styleVariants(mapTokenToProperty(backgroundColourTokens, 'backgroundColor'), "backgroundColours");
62
+ export const colours = styleVariants(mapTokenToProperty(foregroundColourTokens, 'color'), "colours");
55
63
  export const width = styleVariants({
56
64
  full: {
57
65
  width: '100%'
58
66
  },
59
67
  none: {
60
- width: void 0
68
+ width: 'auto'
61
69
  }
62
70
  }, "width");
63
71
  export const height = styleVariants({
@@ -103,6 +111,11 @@ export const userSelect = styleVariants({
103
111
  userSelect: 'none'
104
112
  }
105
113
  }, "userSelect");
114
+ export const order = makeResponsiveStyle({
115
+ 0: '0',
116
+ 1: '1',
117
+ 2: '2'
118
+ }, 'order');
106
119
  export const alignItems = makeResponsiveStyle({
107
120
  flexStart: 'flex-start',
108
121
  center: 'center',
@@ -40,6 +40,7 @@ interface Border {
40
40
  }
41
41
  interface Flex {
42
42
  alignItems?: ResponsiveProp<keyof typeof styles.alignItems>;
43
+ order?: ResponsiveProp<keyof typeof styles.order>;
43
44
  flexDirection?: ResponsiveProp<keyof typeof styles.flexDirection>;
44
45
  flexGrow?: keyof typeof styles.flexGrow;
45
46
  flexShrink?: keyof typeof styles.flexShrink;
@@ -54,6 +55,7 @@ export interface BoxStyleProps extends Padding, Margin, Border, Flex {
54
55
  width?: keyof typeof styles.width;
55
56
  height?: keyof typeof styles.height;
56
57
  backgroundColour?: keyof typeof styles.backgroundColours;
58
+ colour?: keyof typeof styles.colours;
57
59
  opacity?: keyof typeof styles.opacity;
58
60
  overflow?: keyof typeof styles.overflow;
59
61
  userSelect?: keyof typeof styles.userSelect;
@@ -61,6 +63,6 @@ export interface BoxStyleProps extends Padding, Margin, Border, Flex {
61
63
  pointerEvents?: keyof typeof styles.pointerEvents;
62
64
  className?: Parameters<typeof clsx>[0];
63
65
  }
64
- export declare const useBoxStyles: ({ 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, opacity, width, height, position, overflow, userSelect, textAlign, pointerEvents, alignItems, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, className, }: BoxStyleProps) => string;
66
+ export declare const useBoxStyles: ({ 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;
65
67
  export default useBoxStyles;
66
68
  //# sourceMappingURL=useBoxStyles.d.ts.map
@@ -1 +1 @@
1
- {"version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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,2nBAmDd,aAAa,WAqHvB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -39,6 +39,7 @@ export const useBoxStyles = _ref => {
39
39
  borderColourLeft,
40
40
  borderRadius,
41
41
  backgroundColour,
42
+ colour,
42
43
  opacity,
43
44
  width,
44
45
  height,
@@ -48,6 +49,7 @@ export const useBoxStyles = _ref => {
48
49
  textAlign,
49
50
  pointerEvents,
50
51
  alignItems,
52
+ order,
51
53
  flexDirection,
52
54
  flexGrow,
53
55
  flexShrink,
@@ -72,6 +74,6 @@ export const useBoxStyles = _ref => {
72
74
  const resolvedBorderColourBottom = borderColourBottom || borderColourY || borderColour;
73
75
  const resolvedBorderColourLeft = borderColourLeft || borderColour || borderColour;
74
76
  const hasBorder = resolvedBorderWidthTop || resolvedBorderWidthRight || resolvedBorderWidthBottom || resolvedBorderWidthLeft;
75
- 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.opacity[opacity], alignItems && resolveResponsiveStyle(alignItems, styles.alignItems), flexDirection && resolveResponsiveStyle(flexDirection, styles.flexDirection), styles.flexGrow[flexGrow], styles.flexShrink[flexShrink], styles.flexWrap[flexWrap], justifyContent && resolveResponsiveStyle(justifyContent, styles.justifyContent), className);
77
+ 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);
76
78
  };
77
79
  export default useBoxStyles;
@@ -11,6 +11,6 @@ export interface Props extends Omit<ComponentProps<typeof Box>, 'width' | 'css'>
11
11
  className?: string;
12
12
  children: ReactNode | ReactNode[];
13
13
  }
14
- export declare const Column: React.ForwardRefExoticComponent<Pick<Props, "backgroundColour" | "width" | "min" | "size" | "muted" | "name" | "value" | "id" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "alignItems" | "alignSelf" | "boxShadow" | "color" | "content" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pointerEvents" | "position" | "textAlign" | "translate" | "userSelect" | "borderRadius" | "borderWidth" | "margin" | "overflow" | "padding" | "start" | "hidden" | "default" | "wrap" | "open" | "multiple" | "disabled" | "key" | "is" | "className" | "paddingX" | "paddingY" | "marginX" | "marginY" | "borderWidthX" | "borderWidthY" | "borderWidthTop" | "borderWidthRight" | "borderWidthBottom" | "borderWidthLeft" | "borderColour" | "borderColourX" | "borderColourY" | "borderColourTop" | "borderColourRight" | "borderColourBottom" | "borderColourLeft" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "minLength" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "type" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "noShrink" | "grow"> & React.RefAttributes<HTMLElement>>;
14
+ export declare const Column: React.ForwardRefExoticComponent<Pick<Props, "colour" | "backgroundColour" | "width" | "min" | "size" | "muted" | "name" | "value" | "id" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "alignItems" | "alignSelf" | "boxShadow" | "color" | "content" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pointerEvents" | "position" | "textAlign" | "translate" | "userSelect" | "borderRadius" | "borderWidth" | "margin" | "overflow" | "padding" | "start" | "hidden" | "default" | "wrap" | "open" | "multiple" | "disabled" | "key" | "is" | "className" | "paddingX" | "paddingY" | "marginX" | "marginY" | "borderWidthX" | "borderWidthY" | "borderWidthTop" | "borderWidthRight" | "borderWidthBottom" | "borderWidthLeft" | "borderColour" | "borderColourX" | "borderColourY" | "borderColourTop" | "borderColourRight" | "borderColourBottom" | "borderColourLeft" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "minLength" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "type" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "noShrink" | "grow"> & React.RefAttributes<HTMLElement>>;
15
15
  export default Column;
16
16
  //# sourceMappingURL=Column.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../lib/components/Columns/Column.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAc,SAAS,EAAc,MAAM,OAAO,CAAC;AAG1E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAGvC,MAAM,WAAW,KAChB,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACzD,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,MAAM,6hNAiDlB,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../lib/components/Columns/Column.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAc,SAAS,EAAc,MAAM,OAAO,CAAC;AAG1E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAGvC,MAAM,WAAW,KAChB,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACzD,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,MAAM,kjNAmDlB,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
- const _excluded = ["className", "children", "width", "alignSelf", "is", "noShrink", "grow"];
5
+ const _excluded = ["className", "children", "width", "alignSelf", "is", "noShrink", "grow", "order"];
6
6
 
7
7
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
8
 
@@ -24,7 +24,8 @@ export const Column = forwardRef((_ref, ref) => {
24
24
  alignSelf,
25
25
  is,
26
26
  noShrink = false,
27
- grow = false
27
+ grow = false,
28
+ order
28
29
  } = _ref,
29
30
  boxProps = _objectWithoutProperties(_ref, _excluded);
30
31
 
@@ -37,6 +38,7 @@ export const Column = forwardRef((_ref, ref) => {
37
38
  } = columnsContext;
38
39
  return _jsx(Box, {
39
40
  is: isList ? 'li' : 'div',
41
+ order: order,
40
42
  flexGrow: grow ? 1 : 0,
41
43
  flexShrink: noShrink ? 0 : void 0,
42
44
  className: [spaceXCls, spaceYCls, resolveResponsiveStyle(width, styles.width), styles.align[alignSelf]],
@@ -21,6 +21,6 @@ interface ColumnContextValue {
21
21
  isList: boolean;
22
22
  }
23
23
  export declare const ColumnContext: React.Context<ColumnContextValue | null>;
24
- export declare const Columns: React.ForwardRefExoticComponent<Pick<Props, "backgroundColour" | "space" | "width" | "min" | "size" | "muted" | "name" | "value" | "id" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "alignItems" | "boxShadow" | "color" | "content" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pointerEvents" | "position" | "textAlign" | "translate" | "userSelect" | "borderRadius" | "borderWidth" | "columns" | "margin" | "overflow" | "padding" | "start" | "hidden" | "default" | "wrap" | "open" | "multiple" | "disabled" | "key" | "is" | "className" | "paddingX" | "paddingY" | "marginX" | "marginY" | "borderWidthX" | "borderWidthY" | "borderWidthTop" | "borderWidthRight" | "borderWidthBottom" | "borderWidthLeft" | "borderColour" | "borderColourX" | "borderColourY" | "borderColourTop" | "borderColourRight" | "borderColourBottom" | "borderColourLeft" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "minLength" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "type" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "align" | "noWrap" | "spaceX" | "spaceY" | "wrappingDirection"> & React.RefAttributes<HTMLElement>>;
24
+ export declare const Columns: React.ForwardRefExoticComponent<Pick<Props, "colour" | "backgroundColour" | "space" | "width" | "min" | "size" | "muted" | "name" | "value" | "id" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "alignItems" | "boxShadow" | "color" | "content" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pointerEvents" | "position" | "textAlign" | "translate" | "userSelect" | "borderRadius" | "borderWidth" | "columns" | "margin" | "overflow" | "padding" | "start" | "hidden" | "default" | "wrap" | "open" | "multiple" | "disabled" | "key" | "is" | "className" | "paddingX" | "paddingY" | "marginX" | "marginY" | "borderWidthX" | "borderWidthY" | "borderWidthTop" | "borderWidthRight" | "borderWidthBottom" | "borderWidthLeft" | "borderColour" | "borderColourX" | "borderColourY" | "borderColourTop" | "borderColourRight" | "borderColourBottom" | "borderColourLeft" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "minLength" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "type" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "align" | "noWrap" | "spaceX" | "spaceY" | "wrappingDirection"> & React.RefAttributes<HTMLElement>>;
25
25
  export default Columns;
26
26
  //# sourceMappingURL=Columns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Columns.d.ts","sourceRoot":"","sources":["../../../lib/components/Columns/Columns.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,cAAc,EAGd,SAAS,EAET,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,KAAK,CAAC;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC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,EAAE,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,kBAAkB;IAC3B,SAAS,MAAC;IACV,SAAS,MAAC;IACV,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,0CAAiD,CAAC;AAE5E,eAAO,MAAM,OAAO,qmNAmEnB,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -52,6 +52,7 @@ export default {
52
52
  const Template = args => _jsxs(Columns, _objectSpread(_objectSpread({}, args), {}, {
53
53
  children: [_jsx(Column, {
54
54
  width: ['full', '1/3', '1/5'],
55
+ order: [0, 2],
55
56
  is: "section",
56
57
  children: _jsx(Box, {
57
58
  borderColour: "gray",
@@ -33,9 +33,10 @@ const boxPropsProps = {
33
33
  borderColour: 'dark',
34
34
  borderWidth: ['none', 'none', '1', '2'],
35
35
  padding: ['2', '4'],
36
+ backgroundColour: 'primary',
37
+ colour: 'primary',
36
38
  marginBottom: ['2', '4', '5', '8'],
37
39
  marginX: ['none', '3', '5'],
38
- backgroundColour: 'green500',
39
40
  borderRadius: 'pill',
40
41
  boxShadow: ['none', '1', '2', '3']
41
42
  };
@@ -106,7 +106,7 @@ export const tokens = {
106
106
  intent: {
107
107
  primary: {
108
108
  background: {
109
- standard: colours.green['600'],
109
+ standard: colours.green['700'],
110
110
  mild: colours.green['200'],
111
111
  strong: colours.green['900']
112
112
  },
@@ -7,6 +7,6 @@ __vanilla_filescope__.setFileScope("lib/themes/flat_red/vars.css.ts", "@autoguru
7
7
  import { createTheme } from '@vanilla-extract/css';
8
8
  import { themeContractVars } from "../theme.css.js";
9
9
  import { tokens } from "./tokens.js";
10
- export const themeRef = createTheme(themeContractVars, tokens, 'flatRed');
10
+ export const themeRef = createTheme(themeContractVars, tokens, 'OD_flatRed');
11
11
 
12
12
  __vanilla_filescope__.endFileScope();
@@ -1,3 +1,4 @@
1
1
  export { default as baseTheme } from './base';
2
2
  export { default as flatRedTheme } from './flat_red';
3
+ export { default as neutralTheme } from './neutral';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC"}
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
 
3
3
  export { default as baseTheme } from "./base/index.js";
4
- export { default as flatRedTheme } from "./flat_red/index.js";
4
+ export { default as flatRedTheme } from "./flat_red/index.js";
5
+ export { default as neutralTheme } from "./neutral/index.js";
@@ -0,0 +1,267 @@
1
+ declare const _default: {
2
+ name: string;
3
+ themeRef: string;
4
+ vars: import("@vanilla-extract/private").MapLeafNodes<{
5
+ mode: string;
6
+ body: {
7
+ backgroundColour: string;
8
+ colour: string;
9
+ };
10
+ contentWidth: {
11
+ small: string;
12
+ large: string;
13
+ medium: string;
14
+ };
15
+ space: {
16
+ '1': string;
17
+ '2': string;
18
+ '3': string;
19
+ '4': string;
20
+ '5': string;
21
+ '6': string;
22
+ '7': string;
23
+ '8': string;
24
+ '9': string;
25
+ none: string;
26
+ };
27
+ colours: {
28
+ gamut: {
29
+ white: string;
30
+ red900: string;
31
+ red800: string;
32
+ red700: string;
33
+ red600: string;
34
+ red500: string;
35
+ red400: string;
36
+ red300: string;
37
+ red200: string;
38
+ red100: string;
39
+ gray900: string;
40
+ gray800: string;
41
+ gray700: string;
42
+ gray600: string;
43
+ gray500: string;
44
+ gray400: string;
45
+ gray300: string;
46
+ gray200: string;
47
+ gray100: string;
48
+ green900: string;
49
+ green800: string;
50
+ green700: string;
51
+ green600: string;
52
+ green500: string;
53
+ green400: string;
54
+ green300: string;
55
+ green200: string;
56
+ green100: string;
57
+ blue900: string;
58
+ blue800: string;
59
+ blue700: string;
60
+ blue600: string;
61
+ blue500: string;
62
+ blue400: string;
63
+ blue300: string;
64
+ blue200: string;
65
+ blue100: string;
66
+ yellow900: string;
67
+ yellow800: string;
68
+ yellow700: string;
69
+ yellow600: string;
70
+ yellow500: string;
71
+ yellow400: string;
72
+ yellow300: string;
73
+ yellow200: string;
74
+ yellow100: string;
75
+ };
76
+ foreground: {
77
+ body: string;
78
+ link: string;
79
+ };
80
+ background: {
81
+ body: string;
82
+ light: string;
83
+ neutral: string;
84
+ neutralDark: string;
85
+ };
86
+ intent: {
87
+ primary: {
88
+ background: {
89
+ standard: string;
90
+ mild: string;
91
+ strong: string;
92
+ };
93
+ foreground: string;
94
+ border: string;
95
+ };
96
+ secondary: {
97
+ background: {
98
+ standard: string;
99
+ mild: string;
100
+ strong: string;
101
+ };
102
+ foreground: string;
103
+ border: string;
104
+ };
105
+ shine: {
106
+ background: {
107
+ standard: string;
108
+ mild: string;
109
+ strong: string;
110
+ };
111
+ foreground: string;
112
+ border: string;
113
+ };
114
+ danger: {
115
+ background: {
116
+ standard: string;
117
+ mild: string;
118
+ strong: string;
119
+ };
120
+ foreground: string;
121
+ border: string;
122
+ };
123
+ warning: {
124
+ background: {
125
+ standard: string;
126
+ mild: string;
127
+ strong: string;
128
+ };
129
+ foreground: string;
130
+ border: string;
131
+ };
132
+ neutral: {
133
+ background: {
134
+ standard: string;
135
+ mild: string;
136
+ strong: string;
137
+ };
138
+ foreground: string;
139
+ border: string;
140
+ };
141
+ success: {
142
+ background: {
143
+ standard: string;
144
+ mild: string;
145
+ strong: string;
146
+ };
147
+ foreground: string;
148
+ border: string;
149
+ };
150
+ information: {
151
+ background: {
152
+ standard: string;
153
+ mild: string;
154
+ strong: string;
155
+ };
156
+ foreground: string;
157
+ border: string;
158
+ };
159
+ };
160
+ };
161
+ elevation: {
162
+ none: string;
163
+ '1': string;
164
+ '2': string;
165
+ '3': string;
166
+ '4': string;
167
+ '5': string;
168
+ };
169
+ border: {
170
+ width: {
171
+ none: string;
172
+ '1': string;
173
+ '2': string;
174
+ '3': string;
175
+ };
176
+ colours: {
177
+ light: string;
178
+ gray: string;
179
+ dark: string;
180
+ };
181
+ radius: {
182
+ none: string;
183
+ pill: string;
184
+ full: string;
185
+ '1': string;
186
+ min: string;
187
+ };
188
+ };
189
+ typography: {
190
+ size: {
191
+ '1': {
192
+ fontSize: string;
193
+ lineHeight: string;
194
+ };
195
+ '2': {
196
+ fontSize: string;
197
+ lineHeight: string;
198
+ };
199
+ '3': {
200
+ fontSize: string;
201
+ lineHeight: string;
202
+ };
203
+ '4': {
204
+ fontSize: string;
205
+ lineHeight: string;
206
+ };
207
+ '5': {
208
+ fontSize: string;
209
+ lineHeight: string;
210
+ };
211
+ '6': {
212
+ fontSize: string;
213
+ lineHeight: string;
214
+ };
215
+ '7': {
216
+ fontSize: string;
217
+ lineHeight: string;
218
+ };
219
+ '8': {
220
+ fontSize: string;
221
+ lineHeight: string;
222
+ };
223
+ '9': {
224
+ fontSize: string;
225
+ lineHeight: string;
226
+ };
227
+ };
228
+ colour: {
229
+ primary: string;
230
+ secondary: string;
231
+ shine: string;
232
+ link: string;
233
+ dark: string;
234
+ white: string;
235
+ muted: string;
236
+ neutral: string;
237
+ light: string;
238
+ danger: string;
239
+ warning: string;
240
+ success: string;
241
+ information: string;
242
+ };
243
+ fontWeight: {
244
+ normal: string;
245
+ semiBold: string;
246
+ bold: string;
247
+ };
248
+ };
249
+ animation: {
250
+ easing: {
251
+ standard: string;
252
+ decelerate: string;
253
+ accelerate: string;
254
+ };
255
+ };
256
+ icon: {
257
+ size: {
258
+ small: string;
259
+ medium: string;
260
+ large: string;
261
+ };
262
+ };
263
+ }, import("@vanilla-extract/private").CSSVarFunction>;
264
+ tokens: import("../tokens").Tokens;
265
+ };
266
+ export default _default;
267
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/themes/neutral/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAKE"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ import { themeContractVars } from "../theme.css.js";
4
+ import { tokens } from "./tokens.js";
5
+ import { themeRef } from "./vars.css.js";
6
+ export default {
7
+ name: 'neutralTheme',
8
+ themeRef,
9
+ vars: themeContractVars,
10
+ tokens
11
+ };
@@ -0,0 +1,3 @@
1
+ import { Tokens } from '../tokens';
2
+ export declare const tokens: Tokens;
3
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../lib/themes/neutral/tokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,MAAM,EAAE,MAAM,WAAW,CAAC;AAkE9C,eAAO,MAAM,MAAM,EAAE,MAuNpB,CAAC"}
@@ -0,0 +1,283 @@
1
+ "use strict";
2
+
3
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
+
5
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
+
7
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
+
9
+ import { buildColourGamut } from "../makeTheme.js";
10
+ const colours = {
11
+ gray: {
12
+ '900': '#212338',
13
+ '800': '#34384c',
14
+ '700': '#484c5f',
15
+ '600': '#5c6172',
16
+ '500': '#6c7283',
17
+ '400': '#8f95a1',
18
+ '300': '#d4d9dd',
19
+ '200': '#eef0f2',
20
+ '100': '#fafbfc'
21
+ },
22
+ green: {
23
+ '900': '#078171',
24
+ '800': '#05987a',
25
+ '700': '#03af83',
26
+ '600': '#01c68c',
27
+ '500': '#00dd95',
28
+ '400': '#36e5aa',
29
+ '300': '#71edc2',
30
+ '200': '#e3f8f0',
31
+ '100': '#f2fdf9'
32
+ },
33
+ blue: {
34
+ '900': '#0d47a1',
35
+ '800': '#0d4bb7',
36
+ '700': '#0d50ce',
37
+ '600': '#0d54e5',
38
+ '500': '#0d59fc',
39
+ '400': '#4680fc',
40
+ '300': '#80a7fd',
41
+ '200': '#e1edfe',
42
+ '100': '#f3f8ff'
43
+ },
44
+ yellow: {
45
+ '900': '#f38e29',
46
+ '800': '#f69a1f',
47
+ '700': '#f9a715',
48
+ '600': '#fcb30b',
49
+ '500': '#ffc001',
50
+ '400': '#ffcf3d',
51
+ '300': '#ffde79',
52
+ '200': '#ffedb5',
53
+ '100': '#fffcf2'
54
+ },
55
+ red: {
56
+ '900': '#780502',
57
+ '800': '#96110e',
58
+ '700': '#b51e1a',
59
+ '600': '#d42b26',
60
+ '500': '#e12e28',
61
+ '400': '#e85f5b',
62
+ '300': '#ef918e',
63
+ '200': '#ffd4d4',
64
+ '100': '#fdf4f4'
65
+ }
66
+ };
67
+ const white = '#fff';
68
+ const secondaryForeground = colours.gray['700'];
69
+ export const tokens = {
70
+ mode: 'light',
71
+ body: {
72
+ backgroundColour: white,
73
+ colour: colours.gray['900']
74
+ },
75
+ contentWidth: {
76
+ small: '592px',
77
+ large: '1344px',
78
+ medium: '940px'
79
+ },
80
+ space: {
81
+ '1': '4px',
82
+ '2': '8px',
83
+ '3': '12px',
84
+ '4': '16px',
85
+ '5': '20px',
86
+ '6': '24px',
87
+ '7': '32px',
88
+ '8': '48px',
89
+ '9': '96px',
90
+ none: '0px'
91
+ },
92
+ colours: {
93
+ gamut: _objectSpread(_objectSpread({}, buildColourGamut(colours)), {}, {
94
+ white
95
+ }),
96
+ foreground: {
97
+ body: colours.gray['900'],
98
+ link: colours.blue['500']
99
+ },
100
+ background: {
101
+ body: white,
102
+ light: colours.gray['200'],
103
+ neutral: colours.gray['400'],
104
+ neutralDark: colours.gray['800']
105
+ },
106
+ intent: {
107
+ primary: {
108
+ background: {
109
+ standard: colours.gray['700'],
110
+ mild: colours.gray['200'],
111
+ strong: colours.gray['900']
112
+ },
113
+ foreground: white,
114
+ border: colours.gray['900']
115
+ },
116
+ secondary: {
117
+ background: {
118
+ standard: white,
119
+ mild: white,
120
+ strong: colours.gray['200']
121
+ },
122
+ foreground: secondaryForeground,
123
+ border: colours.gray['300']
124
+ },
125
+ shine: {
126
+ background: {
127
+ standard: colours.gray['200'],
128
+ mild: colours.gray['100'],
129
+ strong: colours.gray['300']
130
+ },
131
+ foreground: colours.yellow['500'],
132
+ border: colours.gray['300']
133
+ },
134
+ danger: {
135
+ background: {
136
+ standard: colours.red['600'],
137
+ mild: colours.red['100'],
138
+ strong: colours.red['800']
139
+ },
140
+ foreground: white,
141
+ border: colours.red['800']
142
+ },
143
+ warning: {
144
+ background: {
145
+ standard: colours.yellow['800'],
146
+ mild: colours.yellow['100'],
147
+ strong: colours.yellow['900']
148
+ },
149
+ foreground: white,
150
+ border: colours.yellow['900']
151
+ },
152
+ neutral: {
153
+ background: {
154
+ standard: colours.gray['700'],
155
+ mild: colours.gray['200'],
156
+ strong: colours.gray['900']
157
+ },
158
+ foreground: white,
159
+ border: colours.gray['900']
160
+ },
161
+ success: {
162
+ background: {
163
+ standard: colours.green['700'],
164
+ mild: colours.green['200'],
165
+ strong: colours.green['900']
166
+ },
167
+ foreground: colours.green['200'],
168
+ border: colours.green['900']
169
+ },
170
+ information: {
171
+ background: {
172
+ standard: colours.blue['800'],
173
+ mild: colours.blue['200'],
174
+ strong: colours.blue['900']
175
+ },
176
+ foreground: white,
177
+ border: colours.blue['900']
178
+ }
179
+ }
180
+ },
181
+ elevation: {
182
+ none: 'none',
183
+ '1': '0 1px 5px 0 rgba(0, 0, 0, 0.03), 0 2px 2px 0 rgba(0, 0, 0, 0.03), 0 3px 1px -2px rgba(0, 0, 0, 0.05)',
184
+ '2': '0 1px 10px 0 rgba(0, 0, 0, 0.03), 0 4px 5px 0 rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.05)',
185
+ '3': '0 3px 14px 2px rgba(0, 0, 0, 0.03), 0 8px 10px 1px rgba(0, 0, 0, 0.03), 0 5px 5px -3px rgba(0, 0, 0, 0.05)',
186
+ '4': '0 6px 30px 5px rgba(0, 0, 0, 0.03), 0 16px 24px 2px rgba(0, 0, 0, 0.03), 0 8px 10px -5px rgba(0, 0, 0, 0.05)',
187
+ '5': '0 9px 46px 8px rgba(0, 0, 0, 0.03), 0 24px 38px 3px rgba(0, 0, 0, 0.03), 0 11px 15px -7px rgba(0, 0, 0, 0.05)'
188
+ },
189
+ border: {
190
+ width: {
191
+ none: '0',
192
+ '1': '1px',
193
+ '2': '2px',
194
+ '3': '4px'
195
+ },
196
+ colours: {
197
+ light: colours.gray['200'],
198
+ gray: colours.gray['300'],
199
+ dark: colours.gray['900']
200
+ },
201
+ radius: {
202
+ none: 'none',
203
+ pill: "".concat(1e9, "px"),
204
+ full: '50%',
205
+ '1': '4px',
206
+ min: '2px'
207
+ }
208
+ },
209
+ typography: {
210
+ size: {
211
+ '1': {
212
+ fontSize: '10px',
213
+ lineHeight: '12px'
214
+ },
215
+ '2': {
216
+ fontSize: '12px',
217
+ lineHeight: '18px'
218
+ },
219
+ '3': {
220
+ fontSize: '14px',
221
+ lineHeight: '20px'
222
+ },
223
+ '4': {
224
+ fontSize: '16px',
225
+ lineHeight: '22px'
226
+ },
227
+ '5': {
228
+ fontSize: '18px',
229
+ lineHeight: '26px'
230
+ },
231
+ '6': {
232
+ fontSize: '20px',
233
+ lineHeight: '28px'
234
+ },
235
+ '7': {
236
+ fontSize: '24px',
237
+ lineHeight: '30px'
238
+ },
239
+ '8': {
240
+ fontSize: '30px',
241
+ lineHeight: '40px'
242
+ },
243
+ '9': {
244
+ fontSize: '40px',
245
+ lineHeight: '48px'
246
+ }
247
+ },
248
+ colour: {
249
+ primary: colours.gray['800'],
250
+ secondary: colours.gray['600'],
251
+ shine: colours.yellow['500'],
252
+ link: colours.blue['500'],
253
+ dark: colours.gray['900'],
254
+ white,
255
+ muted: colours.gray['400'],
256
+ neutral: colours.gray['700'],
257
+ light: colours.gray['600'],
258
+ danger: colours.red['600'],
259
+ warning: colours.yellow['800'],
260
+ success: colours.green['600'],
261
+ information: colours.blue['500']
262
+ },
263
+ fontWeight: {
264
+ normal: '400',
265
+ semiBold: '500',
266
+ bold: '700'
267
+ }
268
+ },
269
+ animation: {
270
+ easing: {
271
+ standard: 'cubic-bezier(0.4, 0.0, 0.2, 1)',
272
+ decelerate: 'cubic-bezier(0.0, 0.0, 0.2, 1)',
273
+ accelerate: 'cubic-bezier(0.4, 0.0, 1, 1)'
274
+ }
275
+ },
276
+ icon: {
277
+ size: {
278
+ small: '16px',
279
+ medium: '20px',
280
+ large: '32px'
281
+ }
282
+ }
283
+ };
@@ -0,0 +1,2 @@
1
+ export declare const themeRef: string;
2
+ //# sourceMappingURL=vars.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vars.css.d.ts","sourceRoot":"","sources":["../../../lib/themes/neutral/vars.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,EAAE,MAItB,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
4
+
5
+ __vanilla_filescope__.setFileScope("lib/themes/neutral/vars.css.ts", "@autoguru/overdrive");
6
+
7
+ import { createTheme } from '@vanilla-extract/css';
8
+ import { themeContractVars } from "../theme.css.js";
9
+ import { tokens } from "./tokens.js";
10
+ export const themeRef = createTheme(themeContractVars, tokens, 'OD_Neutral');
11
+
12
+ __vanilla_filescope__.endFileScope();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoguru/overdrive",
3
- "version": "4.11.0",
3
+ "version": "4.11.2",
4
4
  "description": "Overdrive is a product component library, and design system for AutoGuru.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -30,10 +30,10 @@
30
30
  "access": "public"
31
31
  },
32
32
  "scripts": {
33
- "typeCheck": "tsc",
34
- "typeEmit": "tsc -d --declarationDir dist",
35
- "build": "babel lib --out-dir dist --extensions '.ts,.tsx, .css' && yarn run typeEmit",
36
- "prepublishOnly": "yarn run build",
33
+ "lint": "tsc --noEmit --skipLibCheck",
34
+ "typeEmit": "tsc -d --declarationDir dist --emitDeclarationOnly",
35
+ "build": "babel lib --out-dir dist --extensions '.ts,.tsx, .css'",
36
+ "prepublishOnly": "yarn run build && yarn run typeEmit",
37
37
  "watch": "tsc --watch"
38
38
  },
39
39
  "devDependencies": {