@autoguru/overdrive 4.43.0-next.5 → 4.43.0-next.7
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/Box/default.d.ts +2 -0
- package/dist/components/Box/default.d.ts.map +1 -0
- package/dist/components/Box/default.js +3 -0
- package/dist/components/Box/index.d.ts +1 -1
- package/dist/components/Box/index.d.ts.map +1 -1
- package/dist/components/Box/index.js +1 -1
- package/dist/components/DropDown/DropDown.stories.d.ts +1 -1
- package/dist/components/DropDown/DropDown.stories.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.d.ts +7 -8
- package/dist/components/EditableText/EditableText.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.js +1 -2
- package/dist/components/EditableText/EditableText.stories.d.ts.map +1 -1
- package/dist/components/Flyout/Flyout.d.ts +3 -2
- package/dist/components/Flyout/Flyout.d.ts.map +1 -1
- package/dist/components/Flyout/Flyout.stories.d.ts +2 -1
- package/dist/components/Flyout/Flyout.stories.d.ts.map +1 -1
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts +36 -6
- package/dist/components/LoadingBox/LoadingBox.stories.d.ts.map +1 -1
- package/dist/components/Section/Section.stories.d.ts +36 -6
- package/dist/components/Section/Section.stories.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.d.ts +7 -8
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.js +38 -28
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/TextLink/default.d.ts +2 -0
- package/dist/components/TextLink/default.d.ts.map +1 -0
- package/dist/components/TextLink/default.js +3 -0
- package/dist/styles/sprinkles.css.d.ts +47 -17
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +21 -13
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -13,7 +13,7 @@ declare const meta: {
|
|
|
13
13
|
icon?: import("@autoguru/icons").IconType | undefined;
|
|
14
14
|
isOpen?: boolean | undefined;
|
|
15
15
|
onClick?: ComponentProps<typeof Button>["onClick"];
|
|
16
|
-
alignment
|
|
16
|
+
alignment?: import("..").EPositionerAlignment | undefined;
|
|
17
17
|
}>) => React.JSX.Element)[];
|
|
18
18
|
args: {
|
|
19
19
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropDown.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/DropDown/DropDown.stories.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAMnC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqCF,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,EAAE;;;;;;;CAoBjB,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAQnC,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DropDown.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/DropDown/DropDown.stories.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAMnC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqCF,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,EAAE;;;;;;;CAoBjB,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAQnC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAc7B,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
export interface Props extends TextProps, InputProps, BoxProps {
|
|
1
|
+
import React, { type InputHTMLAttributes } from 'react';
|
|
2
|
+
import { type UseBoxProps } from '../Box';
|
|
3
|
+
import { type TextProps } from '../Text';
|
|
4
|
+
type BoxProps = Pick<UseBoxProps<'p'>, 'display' | 'onFocus' | 'onBlur' | 'onKeyDown'>;
|
|
5
|
+
type FilteredTextProps = Pick<TextProps, 'is' | 'colour' | 'size' | 'children' | 'noWrap'>;
|
|
6
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'color' | 'style' | 'is' | 'autoFocus' | 'width' | 'height' | 'onFocus' | 'onBlur' | 'onKeyDown' | keyof FilteredTextProps | keyof BoxProps>;
|
|
7
|
+
export interface Props extends FilteredTextProps, InputProps, Partial<BoxProps> {
|
|
9
8
|
className?: string;
|
|
10
9
|
onModeChange?: (mode: InputMode) => void;
|
|
11
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableText.d.ts","sourceRoot":"","sources":["../../../lib/components/EditableText/EditableText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"EditableText.d.ts","sourceRoot":"","sources":["../../../lib/components/EditableText/EditableText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAGb,KAAK,mBAAmB,EAKxB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAO,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAQ,KAAK,SAAS,EAAiB,MAAM,SAAS,CAAC;AAK9D,KAAK,QAAQ,GAAG,IAAI,CACnB,WAAW,CAAC,GAAG,CAAC,EAChB,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,CAC9C,CAAC;AAEF,KAAK,iBAAiB,GAAG,IAAI,CAC5B,SAAS,EACT,IAAI,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAChD,CAAC;AAEF,KAAK,UAAU,GAAG,IAAI,CACrB,mBAAmB,CAAC,gBAAgB,CAAC,EACnC,OAAO,GACP,OAAO,GACP,IAAI,GACJ,WAAW,GACX,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,WAAW,GACX,MAAM,iBAAiB,GACvB,MAAM,QAAQ,CAChB,CAAC;AAEF,MAAM,WAAW,KAChB,SAAQ,iBAAiB,EACxB,UAAU,EACV,OAAO,CAAC,QAAQ,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACzC;AAED,KAAK,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAClC,eAAO,MAAM,YAAY,8EAsHxB,CAAC;AAIF,eAAe,YAAY,CAAC"}
|
|
@@ -6,8 +6,7 @@ const _excluded = ["is", "colour", "size", "display", "value", "onFocus", "onBlu
|
|
|
6
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
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
8
|
import clsx from 'clsx';
|
|
9
|
-
import
|
|
10
|
-
import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
9
|
+
import React, { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
11
10
|
import { Box } from "../Box/index.js";
|
|
12
11
|
import { Text, useTextStyles } from "../Text/index.js";
|
|
13
12
|
import * as inputStyles from "../private/InputBase/withEnhancedInput.css.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableText.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/EditableText/EditableText.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAqC,MAAM,OAAO,CAAC;AAI1D,QAAA,MAAM,IAAI;;;;;;;;;;;;CAY2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAcnC,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"EditableText.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/EditableText/EditableText.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAqC,MAAM,OAAO,CAAC;AAI1D,QAAA,MAAM,IAAI;;;;;;;;;;;;CAY2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAcnC,eAAO,MAAM,IAAI,EAAE,KAsBlB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,KAOpB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAO9B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import { Positioner } from '../Positioner';
|
|
3
|
-
export declare const Flyout:
|
|
4
|
+
export declare const Flyout: ({ children, triggerRef, isOpen, alignment, triggerOffset, ...rest }: ComponentProps<typeof Positioner>) => React.JSX.Element;
|
|
4
5
|
export default Flyout;
|
|
5
6
|
//# sourceMappingURL=Flyout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flyout.d.ts","sourceRoot":"","sources":["../../../lib/components/Flyout/Flyout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Flyout.d.ts","sourceRoot":"","sources":["../../../lib/components/Flyout/Flyout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,eAAO,MAAM,MAAM,GAAI,qEAOpB,cAAc,CAAC,OAAO,UAAU,CAAC,sBAmBnC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
3
4
|
import { EAlignment } from '../Positioner/alignment';
|
|
4
5
|
import { Flyout } from '.';
|
|
5
6
|
declare const meta: {
|
|
6
7
|
title: string;
|
|
7
|
-
component:
|
|
8
|
+
component: ({ children, triggerRef, isOpen, alignment, triggerOffset, ...rest }: ComponentProps<typeof import("..").Positioner>) => React.JSX.Element;
|
|
8
9
|
argTypes: {
|
|
9
10
|
alignment: {
|
|
10
11
|
options: EAlignment[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flyout.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/Flyout/Flyout.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Flyout.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/Flyout/Flyout.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAU,MAAM,OAAO,CAAC;AAI/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;CAoBqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAqCrC,eAAO,MAAM,IAAI,EAAE,KAOlB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAOpB,CAAC"}
|
|
@@ -18,15 +18,10 @@ declare const _default: {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
argTypes: Partial<import("@storybook/react").ArgTypes<import("..").CommonBoxProps & {
|
|
21
|
-
borderRadius?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
22
21
|
borderBottomColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
23
22
|
borderLeftColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
24
23
|
borderRightColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
25
24
|
borderTopColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
26
|
-
borderLeftWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
27
|
-
borderBottomWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
28
|
-
borderRightWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
29
|
-
borderTopWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
30
25
|
borderLeftStyle?: "none" | "solid" | undefined;
|
|
31
26
|
borderBottomStyle?: "none" | "solid" | undefined;
|
|
32
27
|
borderRightStyle?: "none" | "solid" | undefined;
|
|
@@ -45,7 +40,6 @@ declare const _default: {
|
|
|
45
40
|
fg?: "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "onBody" | "onSurface" | undefined;
|
|
46
41
|
borderColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
47
42
|
borderStyle?: "none" | "solid" | undefined;
|
|
48
|
-
borderWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
49
43
|
} & {
|
|
50
44
|
display?: ("none" | "flex" | "grid" | "block" | "contents" | "inline" | "inline-block" | "inline-flex" | {
|
|
51
45
|
mobile?: "none" | "flex" | "grid" | "block" | "contents" | "inline" | "inline-block" | "inline-flex" | undefined;
|
|
@@ -83,6 +77,36 @@ declare const _default: {
|
|
|
83
77
|
desktop?: "left" | "right" | "center" | undefined;
|
|
84
78
|
largeDesktop?: "left" | "right" | "center" | undefined;
|
|
85
79
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "left" | "right" | "center" | null>;
|
|
80
|
+
borderRadius?: ("1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | {
|
|
81
|
+
mobile?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
82
|
+
tablet?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
83
|
+
desktop?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
84
|
+
largeDesktop?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
85
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | null>;
|
|
86
|
+
borderLeftWidth?: ("1" | "2" | "3" | "none" | {
|
|
87
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
88
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
89
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
90
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
91
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
92
|
+
borderBottomWidth?: ("1" | "2" | "3" | "none" | {
|
|
93
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
94
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
95
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
96
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
97
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
98
|
+
borderRightWidth?: ("1" | "2" | "3" | "none" | {
|
|
99
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
100
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
101
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
102
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
103
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
104
|
+
borderTopWidth?: ("1" | "2" | "3" | "none" | {
|
|
105
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
106
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
107
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
108
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
109
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
86
110
|
height?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | {
|
|
87
111
|
mobile?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | undefined;
|
|
88
112
|
tablet?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | undefined;
|
|
@@ -257,6 +281,12 @@ declare const _default: {
|
|
|
257
281
|
desktop?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | undefined;
|
|
258
282
|
largeDesktop?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | undefined;
|
|
259
283
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | null>;
|
|
284
|
+
borderWidth?: ("1" | "2" | "3" | "none" | {
|
|
285
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
286
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
287
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
288
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
289
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
260
290
|
placeItems?: import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "stretch" | "center" | "flex-end" | "flex-start" | null> | ("stretch" | "center" | "flex-end" | "flex-start" | {
|
|
261
291
|
mobile?: "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
262
292
|
tablet?: "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingBox.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/LoadingBox/LoadingBox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC
|
|
1
|
+
{"version":3,"file":"LoadingBox.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/LoadingBox/LoadingBox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/B,wBAYoC;AAEpC,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC"}
|
|
@@ -4,15 +4,10 @@ import { Section } from '.';
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: React.FunctionComponent<import("../Box").CommonBoxProps & {
|
|
7
|
-
borderRadius?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
8
7
|
borderBottomColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
9
8
|
borderLeftColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
10
9
|
borderRightColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
11
10
|
borderTopColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
12
|
-
borderLeftWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
13
|
-
borderBottomWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
14
|
-
borderRightWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
15
|
-
borderTopWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
16
11
|
borderLeftStyle?: "none" | "solid" | undefined;
|
|
17
12
|
borderBottomStyle?: "none" | "solid" | undefined;
|
|
18
13
|
borderRightStyle?: "none" | "solid" | undefined;
|
|
@@ -31,7 +26,6 @@ declare const _default: {
|
|
|
31
26
|
fg?: "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "onBody" | "onSurface" | undefined;
|
|
32
27
|
borderColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
33
28
|
borderStyle?: "none" | "solid" | undefined;
|
|
34
|
-
borderWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
35
29
|
} & {
|
|
36
30
|
display?: ("none" | "flex" | "grid" | "block" | "contents" | "inline" | "inline-block" | "inline-flex" | {
|
|
37
31
|
mobile?: "none" | "flex" | "grid" | "block" | "contents" | "inline" | "inline-block" | "inline-flex" | undefined;
|
|
@@ -69,6 +63,36 @@ declare const _default: {
|
|
|
69
63
|
desktop?: "left" | "right" | "center" | undefined;
|
|
70
64
|
largeDesktop?: "left" | "right" | "center" | undefined;
|
|
71
65
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "left" | "right" | "center" | null>;
|
|
66
|
+
borderRadius?: ("1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | {
|
|
67
|
+
mobile?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
68
|
+
tablet?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
69
|
+
desktop?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
70
|
+
largeDesktop?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
71
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | null>;
|
|
72
|
+
borderLeftWidth?: ("1" | "2" | "3" | "none" | {
|
|
73
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
74
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
75
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
76
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
77
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
78
|
+
borderBottomWidth?: ("1" | "2" | "3" | "none" | {
|
|
79
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
80
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
81
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
82
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
83
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
84
|
+
borderRightWidth?: ("1" | "2" | "3" | "none" | {
|
|
85
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
86
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
87
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
88
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
89
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
90
|
+
borderTopWidth?: ("1" | "2" | "3" | "none" | {
|
|
91
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
92
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
93
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
94
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
95
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
72
96
|
height?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | {
|
|
73
97
|
mobile?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | undefined;
|
|
74
98
|
tablet?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | undefined;
|
|
@@ -243,6 +267,12 @@ declare const _default: {
|
|
|
243
267
|
desktop?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | undefined;
|
|
244
268
|
largeDesktop?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | undefined;
|
|
245
269
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | null>;
|
|
270
|
+
borderWidth?: ("1" | "2" | "3" | "none" | {
|
|
271
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
272
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
273
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
274
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
275
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
246
276
|
placeItems?: import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "stretch" | "center" | "flex-end" | "flex-start" | null> | ("stretch" | "center" | "flex-end" | "flex-start" | {
|
|
247
277
|
mobile?: "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
248
278
|
tablet?: "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/Section/Section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC
|
|
1
|
+
{"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../lib/components/Section/Section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5B,wBAMiC;AAEjC,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAetC,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
id?: string;
|
|
6
|
-
is?: ElementType | ReactElement;
|
|
1
|
+
import React, { type ElementType } from 'react';
|
|
2
|
+
import { type UseBoxProps } from '../Box';
|
|
3
|
+
export interface TabProps {
|
|
7
4
|
indication?: number;
|
|
8
5
|
}
|
|
9
|
-
export declare const Tab:
|
|
10
|
-
|
|
6
|
+
export declare const Tab: {
|
|
7
|
+
<E extends ElementType>({ as, children, id: incomingId, indication, ...tabProps }: UseBoxProps<E> & TabProps): React.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
11
10
|
//# sourceMappingURL=Tab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../lib/components/Tabs/Tab.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../lib/components/Tabs/Tab.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAgB,KAAK,WAAW,EAAc,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAQlD,MAAM,WAAW,QAAQ;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,GAAG;KAAI,CAAC,SAAS,WAAW,6DAMtC,WAAW,CAAC,CAAC,CAAC,GAAG,QAAQ;;CAqE3B,CAAC"}
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
const _excluded = ["as", "children", "id", "indication"];
|
|
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; }
|
|
3
8
|
import { invariant } from '@autoguru/utilities';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { cloneElement, createElement, forwardRef, isValidElement, useContext } from 'react';
|
|
7
|
-
import { boxStyles } from "../Box/index.js";
|
|
9
|
+
import React, { cloneElement, useContext } from 'react';
|
|
10
|
+
import { useBox } from "../Box/index.js";
|
|
8
11
|
import { Inline } from "../Inline/index.js";
|
|
9
12
|
import { Text, useTextStyles } from "../Text/index.js";
|
|
10
13
|
import * as styles from "./Tab.css.js";
|
|
11
14
|
import { TabListContext } from "./TabList.js";
|
|
12
15
|
import { TabsContext } from "./Tabs.js";
|
|
13
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
export const Tab =
|
|
17
|
+
export const Tab = _ref => {
|
|
15
18
|
let {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
as = 'button',
|
|
20
|
+
children,
|
|
21
|
+
id: incomingId,
|
|
22
|
+
indication
|
|
23
|
+
} = _ref,
|
|
24
|
+
tabProps = _objectWithoutProperties(_ref, _excluded);
|
|
21
25
|
const tabsContext = useContext(TabsContext);
|
|
22
26
|
const tabListContext = useContext(TabListContext);
|
|
23
27
|
!(tabsContext !== null && tabListContext !== null) ? process.env.NODE_ENV !== "production" ? invariant(false, 'This tab pane isnt nested beneath <Tabs /> or <TabPanes />>') : invariant(false) : void 0;
|
|
@@ -26,13 +30,14 @@ export const Tab = forwardRef((_ref, ref) => {
|
|
|
26
30
|
} = tabsContext;
|
|
27
31
|
const isActive = tabsContext.activeIndex === tabListContext;
|
|
28
32
|
const controlsId = typeof incomingId === 'string' ? incomingId : `${tabsContext.id}-${tabListContext}-tab`;
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
const {
|
|
34
|
+
Component,
|
|
35
|
+
componentProps,
|
|
36
|
+
reactElement
|
|
37
|
+
} = useBox(_objectSpread(_objectSpread({}, tabProps), {}, {
|
|
38
|
+
as: typeof as === 'string' ? as : 'button',
|
|
39
|
+
backgroundColour: 'transparent',
|
|
40
|
+
className: [useTextStyles({
|
|
36
41
|
noWrap: true,
|
|
37
42
|
size: '3',
|
|
38
43
|
fontWeight: 'bold',
|
|
@@ -40,17 +45,18 @@ export const Tab = forwardRef((_ref, ref) => {
|
|
|
40
45
|
}), styles.styledTab({
|
|
41
46
|
appearance,
|
|
42
47
|
active: isActive
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
'data-controls': controlsId,
|
|
47
|
-
tabIndex: isActive ? undefined : -1,
|
|
48
|
+
})],
|
|
49
|
+
display: 'inline-flex',
|
|
50
|
+
justifyContent: 'center',
|
|
48
51
|
onClick: () => {
|
|
49
52
|
var _tabsContext$onChange;
|
|
50
53
|
return (_tabsContext$onChange = tabsContext.onChange) === null || _tabsContext$onChange === void 0 ? void 0 : _tabsContext$onChange.call(tabsContext, tabListContext);
|
|
51
54
|
},
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
role: 'tab',
|
|
56
|
+
tabIndex: isActive ? undefined : -1,
|
|
57
|
+
'aria-selected': isActive ? 'true' : 'false',
|
|
58
|
+
'data-controls': controlsId
|
|
59
|
+
}));
|
|
54
60
|
const child = _jsxs(Inline, {
|
|
55
61
|
noWrap: true,
|
|
56
62
|
space: "2",
|
|
@@ -73,7 +79,11 @@ export const Tab = forwardRef((_ref, ref) => {
|
|
|
73
79
|
children: indication
|
|
74
80
|
})]
|
|
75
81
|
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
82
|
+
if (reactElement) {
|
|
83
|
+
return cloneElement(reactElement, componentProps, child);
|
|
84
|
+
}
|
|
85
|
+
return _jsx(Component, _objectSpread(_objectSpread({}, componentProps), {}, {
|
|
86
|
+
children: child
|
|
87
|
+
}));
|
|
88
|
+
};
|
|
89
|
+
Tab.displayName = 'Tab';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../lib/components/TextLink/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,IAAI,CAAC"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
export declare const sprinkles: ((props: {
|
|
2
|
-
borderRadius?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
3
2
|
borderBottomColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
4
3
|
borderLeftColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
5
4
|
borderRightColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
6
5
|
borderTopColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
7
|
-
borderLeftWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
8
|
-
borderBottomWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
9
|
-
borderRightWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
10
|
-
borderTopWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
11
6
|
borderLeftStyle?: "none" | "solid" | undefined;
|
|
12
7
|
borderBottomStyle?: "none" | "solid" | undefined;
|
|
13
8
|
borderRightStyle?: "none" | "solid" | undefined;
|
|
@@ -26,24 +21,23 @@ export declare const sprinkles: ((props: {
|
|
|
26
21
|
fg?: "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "onBody" | "onSurface" | undefined;
|
|
27
22
|
borderColor?: "body" | "accent" | "hard" | "soft" | "success" | "info" | "danger" | "warning" | "muted" | "default" | "disabled" | undefined;
|
|
28
23
|
borderStyle?: "none" | "solid" | undefined;
|
|
29
|
-
borderWidth?: "1" | "2" | "3" | "none" | undefined;
|
|
30
24
|
}) => string) & {
|
|
31
|
-
properties: Set<"color" | "fontSize" | "lineHeight" | "fontWeight" | "opacity" | "backgroundColor" | "borderBottomColor" | "borderBottomStyle" | "
|
|
25
|
+
properties: Set<"color" | "fontSize" | "lineHeight" | "fontWeight" | "opacity" | "backgroundColor" | "borderBottomColor" | "borderBottomStyle" | "borderLeftColor" | "borderLeftStyle" | "borderRightColor" | "borderRightStyle" | "borderTopColor" | "borderTopStyle" | "boxShadow" | "pointerEvents" | "userSelect" | "borderColor" | "borderStyle" | "text" | "bg" | "fg">;
|
|
32
26
|
};
|
|
33
27
|
export type Sprinkles = Parameters<typeof sprinkles>[0];
|
|
34
28
|
export declare const sprinklesLegacyColours: ((props: {
|
|
35
29
|
backgroundColor?: "white" | "black900" | "black800" | "black700" | "black600" | "black500" | "black400" | "black300" | "black200" | "black100" | "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" | "red900" | "red800" | "red700" | "red600" | "red500" | "red400" | "red300" | "red200" | "red100" | "success" | "danger" | "warning" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "transparent" | undefined;
|
|
36
|
-
borderBottomColor?: "gray" | "light" | "dark" | undefined;
|
|
37
|
-
borderLeftColor?: "gray" | "light" | "dark" | undefined;
|
|
38
|
-
borderRightColor?: "gray" | "light" | "dark" | undefined;
|
|
39
|
-
borderTopColor?: "gray" | "light" | "dark" | undefined;
|
|
30
|
+
borderBottomColor?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
31
|
+
borderLeftColor?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
32
|
+
borderRightColor?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
33
|
+
borderTopColor?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
40
34
|
color?: "link" | "white" | "black900" | "black800" | "black700" | "black600" | "black500" | "black400" | "black300" | "black200" | "black100" | "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" | "red900" | "red800" | "red700" | "red600" | "red500" | "red400" | "red300" | "red200" | "red100" | "body" | "success" | "danger" | "warning" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "unset" | undefined;
|
|
41
35
|
backgroundColour?: "white" | "black900" | "black800" | "black700" | "black600" | "black500" | "black400" | "black300" | "black200" | "black100" | "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" | "red900" | "red800" | "red700" | "red600" | "red500" | "red400" | "red300" | "red200" | "red100" | "success" | "danger" | "warning" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "transparent" | undefined;
|
|
42
|
-
borderBottomColour?: "gray" | "light" | "dark" | undefined;
|
|
43
|
-
borderLeftColour?: "gray" | "light" | "dark" | undefined;
|
|
44
|
-
borderRightColour?: "gray" | "light" | "dark" | undefined;
|
|
45
|
-
borderTopColour?: "gray" | "light" | "dark" | undefined;
|
|
46
|
-
borderColour?: "gray" | "light" | "dark" | undefined;
|
|
36
|
+
borderBottomColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
37
|
+
borderLeftColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
38
|
+
borderRightColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
39
|
+
borderTopColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
40
|
+
borderColour?: "gray" | "success" | "danger" | "warning" | "light" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "dark" | undefined;
|
|
47
41
|
colour?: "link" | "white" | "black900" | "black800" | "black700" | "black600" | "black500" | "black400" | "black300" | "black200" | "black100" | "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" | "red900" | "red800" | "red700" | "red600" | "red500" | "red400" | "red300" | "red200" | "red100" | "body" | "success" | "danger" | "warning" | "neutral" | "primary" | "brand" | "secondary" | "shine" | "information" | "unset" | undefined;
|
|
48
42
|
}) => string) & {
|
|
49
43
|
properties: Set<"colour" | "backgroundColour" | "color" | "backgroundColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "borderBottomColour" | "borderLeftColour" | "borderRightColour" | "borderTopColour" | "borderColour">;
|
|
@@ -98,6 +92,36 @@ export declare const sprinklesResponsive: ((props: {
|
|
|
98
92
|
desktop?: "left" | "right" | "center" | undefined;
|
|
99
93
|
largeDesktop?: "left" | "right" | "center" | undefined;
|
|
100
94
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "left" | "right" | "center" | null>;
|
|
95
|
+
borderRadius?: ("1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | {
|
|
96
|
+
mobile?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
97
|
+
tablet?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
98
|
+
desktop?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
99
|
+
largeDesktop?: "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | undefined;
|
|
100
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "none" | "min" | "sm" | "md" | "lg" | "xl" | "2xl" | "pill" | "full" | null>;
|
|
101
|
+
borderLeftWidth?: ("1" | "2" | "3" | "none" | {
|
|
102
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
103
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
104
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
105
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
106
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
107
|
+
borderBottomWidth?: ("1" | "2" | "3" | "none" | {
|
|
108
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
109
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
110
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
111
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
112
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
113
|
+
borderRightWidth?: ("1" | "2" | "3" | "none" | {
|
|
114
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
115
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
116
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
117
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
118
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
119
|
+
borderTopWidth?: ("1" | "2" | "3" | "none" | {
|
|
120
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
121
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
122
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
123
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
124
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
101
125
|
height?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | {
|
|
102
126
|
mobile?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | undefined;
|
|
103
127
|
tablet?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "full" | "auto" | "fit-content" | "max-content" | "min-content" | undefined;
|
|
@@ -272,6 +296,12 @@ export declare const sprinklesResponsive: ((props: {
|
|
|
272
296
|
desktop?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | undefined;
|
|
273
297
|
largeDesktop?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | undefined;
|
|
274
298
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | null>;
|
|
299
|
+
borderWidth?: ("1" | "2" | "3" | "none" | {
|
|
300
|
+
mobile?: "1" | "2" | "3" | "none" | undefined;
|
|
301
|
+
tablet?: "1" | "2" | "3" | "none" | undefined;
|
|
302
|
+
desktop?: "1" | "2" | "3" | "none" | undefined;
|
|
303
|
+
largeDesktop?: "1" | "2" | "3" | "none" | undefined;
|
|
304
|
+
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "none" | null>;
|
|
275
305
|
placeItems?: import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "stretch" | "center" | "flex-end" | "flex-start" | null> | ("stretch" | "center" | "flex-end" | "flex-start" | {
|
|
276
306
|
mobile?: "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
277
307
|
tablet?: "stretch" | "center" | "flex-end" | "flex-start" | undefined;
|
|
@@ -405,7 +435,7 @@ export declare const sprinklesResponsive: ((props: {
|
|
|
405
435
|
largeDesktop?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | "auto" | undefined;
|
|
406
436
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "none" | "auto" | null>;
|
|
407
437
|
}) => string) & {
|
|
408
|
-
properties: Set<"width" | "size" | "alignContent" | "alignItems" | "alignSelf" | "columnGap" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "height" | "justifyContent" | "justifySelf" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxWidth" | "minWidth" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "rowGap" | "textAlign" | "gap" | "margin" | "overflow" | "padding" | "placeItems" | "gridColumns" | "p" | "paddingX" | "px" | "paddingY" | "py" | "pt" | "pr" | "pb" | "pl" | "m" | "marginX" | "mx" | "marginY" | "my" | "mt" | "mr" | "mb" | "ml">;
|
|
438
|
+
properties: Set<"width" | "size" | "alignContent" | "alignItems" | "alignSelf" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopWidth" | "columnGap" | "display" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "height" | "justifyContent" | "justifySelf" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxWidth" | "minWidth" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "rowGap" | "textAlign" | "borderRadius" | "borderWidth" | "gap" | "margin" | "overflow" | "padding" | "placeItems" | "gridColumns" | "p" | "paddingX" | "px" | "paddingY" | "py" | "pt" | "pr" | "pb" | "pl" | "m" | "marginX" | "mx" | "marginY" | "my" | "mt" | "mr" | "mb" | "ml">;
|
|
409
439
|
};
|
|
410
440
|
export type SprinklesResponsive = Parameters<typeof sprinklesResponsive>[0];
|
|
411
441
|
//# sourceMappingURL=sprinkles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprinkles.css.d.ts","sourceRoot":"","sources":["../../lib/styles/sprinkles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sprinkles.css.d.ts","sourceRoot":"","sources":["../../lib/styles/sprinkles.css.ts"],"names":[],"mappings":"AA+HA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;CAAkC,CAAC;AACzD,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AA2CxD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;CAA0C,CAAC;AAE9E,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACxC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC,EAC1C,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,OAAO,CACT,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAOhC,CAAC;AAmIF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACzE,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -42,13 +42,20 @@ const intentBackgroundColoursStandard = Object.entries(tokens.colours.intent).re
|
|
|
42
42
|
acc[intent] = background.standard;
|
|
43
43
|
return acc;
|
|
44
44
|
}, {});
|
|
45
|
+
const intentBorderColours = Object.entries(tokens.colours.intent).reduce((acc, _ref5) => {
|
|
46
|
+
let [intent, {
|
|
47
|
+
border
|
|
48
|
+
}] = _ref5;
|
|
49
|
+
acc[intent] = border;
|
|
50
|
+
return acc;
|
|
51
|
+
}, {});
|
|
45
52
|
const borderColors = _objectSpread({
|
|
46
53
|
default: tokens.color.interactive.border,
|
|
47
54
|
muted: tokens.color.interactive.borderMuted,
|
|
48
55
|
disabled: tokens.color.interactive.borderDisabled
|
|
49
56
|
}, tokens.color.surface);
|
|
50
|
-
const gapSizesWithVar = Object.entries(space).reduce((acc,
|
|
51
|
-
let [key, value] =
|
|
57
|
+
const gapSizesWithVar = Object.entries(space).reduce((acc, _ref6) => {
|
|
58
|
+
let [key, value] = _ref6;
|
|
52
59
|
acc[key] = {
|
|
53
60
|
vars: {
|
|
54
61
|
[gapVar]: value
|
|
@@ -60,15 +67,10 @@ const gapSizesWithVar = Object.entries(space).reduce((acc, _ref5) => {
|
|
|
60
67
|
const baseProperties = defineProperties({
|
|
61
68
|
'@layer': cssLayerUtil,
|
|
62
69
|
properties: {
|
|
63
|
-
borderRadius: tokens.border.radius,
|
|
64
70
|
borderBottomColor: borderColors,
|
|
65
71
|
borderLeftColor: borderColors,
|
|
66
72
|
borderRightColor: borderColors,
|
|
67
73
|
borderTopColor: borderColors,
|
|
68
|
-
borderLeftWidth: tokens.border.width,
|
|
69
|
-
borderBottomWidth: tokens.border.width,
|
|
70
|
-
borderRightWidth: tokens.border.width,
|
|
71
|
-
borderTopWidth: tokens.border.width,
|
|
72
74
|
borderLeftStyle: ['none', 'solid'],
|
|
73
75
|
borderBottomStyle: ['none', 'solid'],
|
|
74
76
|
borderRightStyle: ['none', 'solid'],
|
|
@@ -90,21 +92,21 @@ const baseProperties = defineProperties({
|
|
|
90
92
|
bg: ['backgroundColor'],
|
|
91
93
|
fg: ['color'],
|
|
92
94
|
borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
|
|
93
|
-
borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle']
|
|
94
|
-
borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth']
|
|
95
|
+
borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle']
|
|
95
96
|
}
|
|
96
97
|
});
|
|
97
98
|
export const sprinkles = createSprinkles(baseProperties);
|
|
99
|
+
const borderColours = _objectSpread(_objectSpread({}, tokens.border.colours), intentBorderColours);
|
|
98
100
|
const legacyColourProperties = defineProperties({
|
|
99
101
|
'@layer': cssLayerUtil,
|
|
100
102
|
properties: {
|
|
101
103
|
backgroundColor: _objectSpread(_objectSpread(_objectSpread({}, intentBackgroundColoursStandard), tokens.colours.gamut), {}, {
|
|
102
104
|
transparent: 'transparent'
|
|
103
105
|
}),
|
|
104
|
-
borderBottomColor:
|
|
105
|
-
borderLeftColor:
|
|
106
|
-
borderRightColor:
|
|
107
|
-
borderTopColor:
|
|
106
|
+
borderBottomColor: borderColours,
|
|
107
|
+
borderLeftColor: borderColours,
|
|
108
|
+
borderRightColor: borderColours,
|
|
109
|
+
borderTopColor: borderColours,
|
|
108
110
|
color: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, intentForegroundColours), tokens.colours.foreground), tokens.colours.gamut), {}, {
|
|
109
111
|
unset: 'unset'
|
|
110
112
|
})
|
|
@@ -144,6 +146,11 @@ const responsiveProperties = defineProperties({
|
|
|
144
146
|
overflowY: ['auto', 'scroll', 'hidden'],
|
|
145
147
|
position: ['static', 'relative', 'absolute', 'fixed', 'sticky'],
|
|
146
148
|
textAlign: ['left', 'center', 'right'],
|
|
149
|
+
borderRadius: tokens.border.radius,
|
|
150
|
+
borderLeftWidth: tokens.border.width,
|
|
151
|
+
borderBottomWidth: tokens.border.width,
|
|
152
|
+
borderRightWidth: tokens.border.width,
|
|
153
|
+
borderTopWidth: tokens.border.width,
|
|
147
154
|
height: _objectSpread(_objectSpread({}, spaceWithoutNone), {}, {
|
|
148
155
|
'fit-content': 'fit-content',
|
|
149
156
|
'max-content': 'max-content',
|
|
@@ -194,6 +201,7 @@ const responsiveProperties = defineProperties({
|
|
|
194
201
|
marginTop: tokens.space
|
|
195
202
|
},
|
|
196
203
|
shorthands: {
|
|
204
|
+
borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
|
|
197
205
|
placeItems: ['justifyContent', 'alignItems'],
|
|
198
206
|
size: ['width', 'height'],
|
|
199
207
|
padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
|
package/package.json
CHANGED