@autoguru/overdrive 4.8.1 → 4.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/Alert.css.js +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.css.js +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.d.ts +2 -1
- package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -1
- package/dist/components/AutoSuggest/stories.js +1 -1
- package/dist/components/Badge/Badge.css.d.ts +1 -1
- package/dist/components/Badge/Badge.css.js +1 -1
- package/dist/components/Box/useBoxStyles.css.d.ts.map +1 -1
- package/dist/components/Box/useBoxStyles.css.js +2 -1
- package/dist/components/BulletList/Bullet.css.js +1 -1
- package/dist/components/BulletList/BulletList.css.js +1 -1
- package/dist/components/BulletText/BulletText.css.js +1 -1
- package/dist/components/Button/Button.css.js +1 -1
- package/dist/components/CheckBox/CheckBox.css.js +1 -1
- package/dist/components/ColourInput/ColourInput.css.d.ts +6 -0
- package/dist/components/ColourInput/ColourInput.css.d.ts.map +1 -0
- package/dist/components/ColourInput/ColourInput.css.js +29 -0
- package/dist/components/ColourInput/ColourInput.d.ts +4 -0
- package/dist/components/ColourInput/ColourInput.d.ts.map +1 -0
- package/dist/components/ColourInput/ColourInput.js +25 -0
- package/dist/components/ColourInput/index.d.ts +2 -0
- package/dist/components/ColourInput/index.d.ts.map +1 -0
- package/dist/components/ColourInput/index.js +1 -0
- package/dist/components/ColourInput/stories.js +182 -0
- package/dist/components/Columns/Column.d.ts +1 -1
- package/dist/components/Columns/Columns.css.js +1 -1
- package/dist/components/Columns/Columns.d.ts +2 -2
- package/dist/components/Columns/Columns.d.ts.map +1 -1
- package/dist/components/DateInput/stories.js +1 -1
- package/dist/components/Flyout/stories.js +1 -1
- package/dist/components/Icon/Icon.css.js +1 -1
- package/dist/components/Image/ImageServerProvider.d.ts +1 -1
- package/dist/components/Image/ImageServerProvider.d.ts.map +1 -1
- package/dist/components/Image/ResponsiveImage.d.ts.map +1 -1
- package/dist/components/LinearProgressIndicator/LinearProgressIndicator.css.js +1 -1
- package/dist/components/LoadingBox/LoadingBox.css.js +1 -1
- package/dist/components/Meta/Meta.css.js +1 -1
- package/dist/components/Modal/Modal.css.js +1 -1
- package/dist/components/OrderedList/OrderedList.css.js +1 -1
- package/dist/components/OverdriveProvider/OverdriveProvider.d.ts.map +1 -1
- package/dist/components/OverdriveProvider/OverdriveProvider.js +3 -2
- package/dist/components/Pagination/Pagination.css.js +1 -1
- package/dist/components/Portal/Portal.d.ts +2 -2
- package/dist/components/Portal/Portal.d.ts.map +1 -1
- package/dist/components/Positioner/stories.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.css.js +1 -1
- package/dist/components/ProgressBarGroup/ProgressBarGroup.css.js +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.css.js +1 -1
- package/dist/components/Radio/Radio.css.js +1 -1
- package/dist/components/Radio/RadioGroup.d.ts +1 -1
- package/dist/components/Radio/RadioGroup.d.ts.map +1 -1
- package/dist/components/Section/Section.css.js +1 -1
- package/dist/components/SelectInput/SelectInput.css.js +1 -1
- package/dist/components/SelectInput/SelectInput.d.ts +1 -2
- package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
- package/dist/components/SelectInput/stories.js +1 -1
- package/dist/components/Stack/Divider.css.js +1 -1
- package/dist/components/Stack/Stack.css.js +1 -1
- package/dist/components/StandardModal/StandardModal.css.js +1 -1
- package/dist/components/StarRating/StarRating.css.js +1 -1
- package/dist/components/Stepper/Stepper.css.js +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Switch/Switch.css.js +1 -1
- package/dist/components/Table/TableCell.css.js +1 -1
- package/dist/components/Table/TableHeadCell.css.js +1 -1
- package/dist/components/Tabs/Tab.css.js +1 -1
- package/dist/components/Tabs/TabList.css.js +1 -1
- package/dist/components/Tabs/TabList.d.ts +1 -1
- package/dist/components/Tabs/TabList.d.ts.map +1 -1
- package/dist/components/Tabs/TabPanes.d.ts +1 -1
- package/dist/components/Tabs/TabPanes.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Text/useTextStyles.css.js +1 -1
- package/dist/components/TextAreaInput/stories.js +1 -1
- package/dist/components/TextInput/stories.js +1 -1
- package/dist/components/TextLink/TextLink.css.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -1
- package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +2 -2
- package/dist/components/Toaster/Toast.css.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/private/CheckableBase/CheckableBase.css.js +1 -1
- package/dist/components/private/InputBase/HintText.css.js +1 -1
- package/dist/components/private/InputBase/InputState.css.js +1 -1
- package/dist/components/private/InputBase/NotchedBase.css.js +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.css.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.css.js +2 -1
- package/dist/components/private/InputBase/withEnhancedInput.d.ts +4 -3
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.js +1 -1
- package/dist/hooks/useAttachedBoxes/useAttachedBoxes.css.js +1 -1
- package/dist/hooks/useNegativeMargin/useNegativeMarginLeft.css.js +1 -1
- package/dist/hooks/useNegativeMargin/useNegativeMarginTop.css.js +1 -1
- package/dist/themes/base/index.d.ts +260 -2
- package/dist/themes/base/index.d.ts.map +1 -1
- package/dist/themes/base/index.js +3 -4
- package/dist/themes/base/tokens.d.ts.map +1 -1
- package/dist/themes/base/vars.css.d.ts +1 -2
- package/dist/themes/base/vars.css.d.ts.map +1 -1
- package/dist/themes/base/vars.css.js +2 -1
- package/dist/themes/flat_red/index.d.ts +260 -2
- package/dist/themes/flat_red/index.d.ts.map +1 -1
- package/dist/themes/flat_red/index.js +2 -4
- package/dist/themes/flat_red/tokens.d.ts +1 -2
- package/dist/themes/flat_red/tokens.d.ts.map +1 -1
- package/dist/themes/flat_red/tokens.js +3 -86
- package/dist/themes/flat_red/vars.css.d.ts.map +1 -1
- package/dist/themes/flat_red/vars.css.js +2 -2
- package/dist/themes/makeTheme.d.ts +2 -6
- package/dist/themes/makeTheme.d.ts.map +1 -1
- package/dist/themes/makeTheme.js +1 -5
- package/dist/themes/theme.css.d.ts +262 -0
- package/dist/themes/theme.css.d.ts.map +1 -0
- package/dist/themes/theme.css.js +279 -0
- package/dist/themes/tokens.d.ts +1 -1
- package/dist/themes/tokens.d.ts.map +1 -1
- package/dist/utils/index.d.ts +6 -6
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/resolveResponsiveProps.d.ts +1 -1
- package/dist/utils/resolveResponsiveProps.d.ts.map +1 -1
- package/package.json +5 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { style, styleVariants } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../themes/
|
|
2
|
+
import { themeContractVars as vars } from '../../themes/theme.css';
|
|
3
3
|
import { mapTokenToProperty } from '../../utils/mapTokenToProperty';
|
|
4
4
|
export const root = style({
|
|
5
5
|
':before': {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IconType } from '@autoguru/icons';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import { ComponentPropsWithoutRef, ReactElement, Ref } from 'react';
|
|
3
4
|
import { TextInput } from '../TextInput';
|
|
4
5
|
export interface AutoSuggestValue<PayloadType> {
|
|
@@ -24,7 +25,7 @@ export interface Props<PayloadType> extends Omit<ComponentPropsWithoutRef<typeof
|
|
|
24
25
|
onEnter?(value: AutoSuggestValue<PayloadType>): void;
|
|
25
26
|
}
|
|
26
27
|
export declare const AutoSuggest: <PayloadType extends unknown>(p: Props<PayloadType> & {
|
|
27
|
-
ref?: Ref<HTMLInputElement
|
|
28
|
+
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
28
29
|
}) => ReactElement;
|
|
29
30
|
export default AutoSuggest;
|
|
30
31
|
//# sourceMappingURL=AutoSuggest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,wBAAwB,EAKxB,YAAY,EAEZ,GAAG,EAQH,MAAM,OAAO,CAAC;AAYf,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,WAAW,gBAAgB,CAAC,WAAW;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAED,oBAAY,uBAAuB,CAAC,WAAW,IAAI,CAAC,KAAK,EAAE;IAC1D,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;CAClD,KAAK,YAAY,CAAC;AAiCnB,aAAK,WAAW,CAAC,WAAW,IAAI,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,KAAK,CAAC,WAAW,CACjC,SAAQ,IAAI,CACX,wBAAwB,CAAC,OAAO,SAAS,CAAC,EAC1C,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAC5C;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAC5C,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAEtC,YAAY,CAAC,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAEpD,QAAQ,CAAC,CAAC,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAEtD,OAAO,CAAC,CAAC,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;CACrD;AAwGD,eAAO,MAAM,WAAW;;MA4FnB,YAAY,CAAC;AAuhBlB,eAAe,WAAW,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const label: string;
|
|
2
2
|
export declare const labelSize: Record<"large" | "standard", string>;
|
|
3
3
|
export declare const colours: {
|
|
4
|
-
default: Record<"neutral" | "
|
|
4
|
+
default: Record<"neutral" | "green" | "blue" | "yellow" | "red", string>;
|
|
5
5
|
inverted: {
|
|
6
6
|
neutral: Record<"background" | "text", string>;
|
|
7
7
|
green: Record<"background" | "text", string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBoxStyles.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/useBoxStyles.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;CAKlB,CAAC;AAEF,eAAO,MAAM,SAAS,8BAAmD,CAAC;AAE1E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAwBlB,CAAC;AAEF,eAAO,MAAM,YAAY,8BAGxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,ulBAQ7B,CAAC;AAEF,eAAO,MAAM,KAAK,wBAIhB,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,
|
|
1
|
+
{"version":3,"file":"useBoxStyles.css.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/useBoxStyles.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;CAKlB,CAAC;AAEF,eAAO,MAAM,SAAS,8BAAmD,CAAC;AAE1E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAwBlB,CAAC;AAEF,eAAO,MAAM,YAAY,8BAGxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,ulBAQ7B,CAAC;AAEF,eAAO,MAAM,KAAK,wBAIhB,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,5 +1,5 @@
|
|
|
1
1
|
import { style, styleVariants } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../themes/
|
|
2
|
+
import { themeContractVars as vars } from '../../themes/theme.css';
|
|
3
3
|
import { mapTokenToProperty } from '../../utils/mapTokenToProperty';
|
|
4
4
|
import { makeResponsiveStyle } from '../../utils/responsiveProps.css';
|
|
5
5
|
export const padding = {
|
|
@@ -106,6 +106,7 @@ export const justifyContent = makeResponsiveStyle({
|
|
|
106
106
|
center: 'center',
|
|
107
107
|
flexEnd: 'flex-end',
|
|
108
108
|
spaceBetween: 'space-between',
|
|
109
|
+
spaceAround: 'space-around',
|
|
109
110
|
}, 'justifyContent');
|
|
110
111
|
export const pointerEvents = styleVariants({
|
|
111
112
|
none: { pointerEvents: 'none' },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { style } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../themes/
|
|
2
|
+
import { themeContractVars as vars } from '../../themes/theme.css';
|
|
3
3
|
export const bullet = style({
|
|
4
4
|
lineHeight: vars.typography.size['2'].lineHeight,
|
|
5
5
|
width: vars.space['6'],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { style, styleVariants } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../themes/
|
|
2
|
+
import { themeContractVars as vars } from '../../themes/theme.css';
|
|
3
3
|
export const root = style({
|
|
4
4
|
transitionDelay: '0s',
|
|
5
5
|
transitionTimingFunction: vars.animation.easing.standard,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { style, styleVariants } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../themes/
|
|
2
|
+
import { themeContractVars as vars } from '../../themes/theme.css';
|
|
3
3
|
export const icon = style({
|
|
4
4
|
zIndex: 1,
|
|
5
5
|
top: `calc(50% - 0.5*(${vars.space['4']}))`,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const input: string;
|
|
2
|
+
export declare const colouredBoxHolder: string;
|
|
3
|
+
export declare const colouredBoxHolderSize: Record<"small" | "medium", string>;
|
|
4
|
+
export declare const valueText: string;
|
|
5
|
+
export declare const valueTextSize: Record<"small" | "medium", string>;
|
|
6
|
+
//# sourceMappingURL=ColourInput.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColourInput.css.d.ts","sourceRoot":"","sources":["../../../lib/components/ColourInput/ColourInput.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK,QAEhB,CAAC;AACH,eAAO,MAAM,iBAAiB,QAG5B,CAAC;AACH,eAAO,MAAM,qBAAqB,oCAOhC,CAAC;AACH,eAAO,MAAM,SAAS,QAGpB,CAAC;AACH,eAAO,MAAM,aAAa,oCAOxB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { style, styleVariants } from '@vanilla-extract/css';
|
|
2
|
+
import { themeContractVars as vars } from '../../themes/theme.css';
|
|
3
|
+
export const input = style({
|
|
4
|
+
opacity: 0,
|
|
5
|
+
});
|
|
6
|
+
export const colouredBoxHolder = style({
|
|
7
|
+
top: '0',
|
|
8
|
+
left: '0',
|
|
9
|
+
});
|
|
10
|
+
export const colouredBoxHolderSize = styleVariants({
|
|
11
|
+
small: {
|
|
12
|
+
width: `calc(${vars.typography.size['3'].lineHeight} + (2* ${vars.space['2']}))`,
|
|
13
|
+
},
|
|
14
|
+
medium: {
|
|
15
|
+
width: vars.space['8'],
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
export const valueText = style({
|
|
19
|
+
top: '50%',
|
|
20
|
+
transform: 'translateY(-50%)',
|
|
21
|
+
});
|
|
22
|
+
export const valueTextSize = styleVariants({
|
|
23
|
+
small: {
|
|
24
|
+
left: `calc(${vars.typography.size['3'].lineHeight} + (2* ${vars.space['2']}))`,
|
|
25
|
+
},
|
|
26
|
+
medium: {
|
|
27
|
+
left: vars.space['8'],
|
|
28
|
+
},
|
|
29
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const ColourInput: React.ForwardRefExoticComponent<import("../private/InputBase/withEnhancedInput").EnhanceInputPrimitiveProps & import("../private/InputBase/withEnhancedInput").EventHandlers<HTMLInputElement> & import("../private/InputBase/withEnhancedInput").ValidationProps & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export default ColourInput;
|
|
4
|
+
//# sourceMappingURL=ColourInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColourInput.d.ts","sourceRoot":"","sources":["../../../lib/components/ColourInput/ColourInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,WAAW,4SAyEvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { warning } from '@autoguru/utilities';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Box, useBoxStyles } from '../Box';
|
|
5
|
+
import { Text } from '../Text';
|
|
6
|
+
import { withEnhancedInput } from '../private/InputBase';
|
|
7
|
+
import * as styles from './ColourInput.css';
|
|
8
|
+
export const ColourInput = withEnhancedInput(({ field, eventHandlers, validation, isLoading, suffixed, prefixed, size, ...rest }) => {
|
|
9
|
+
warning(field.value !== '', 'Colour Input does not support empty values.');
|
|
10
|
+
return (React.createElement(Box, { display: "flex", flexWrap: "nowrap", alignItems: "center", justifyContent: "center", position: "relative" },
|
|
11
|
+
React.createElement(Box, { className: [
|
|
12
|
+
styles.colouredBoxHolder,
|
|
13
|
+
styles.colouredBoxHolderSize[size],
|
|
14
|
+
], display: "flex", height: "full", alignItems: "center", justifyContent: "spaceAround", flexShrink: 0, pointerEvents: "none", position: "absolute" },
|
|
15
|
+
React.createElement(Box, { style: { backgroundColor: field.value }, padding: size === 'medium' ? '3' : '2', borderRadius: "1" })),
|
|
16
|
+
React.createElement(Text, { display: "block", className: clsx(styles.valueText, styles.valueTextSize[size], useBoxStyles({
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
})) }, field.value),
|
|
19
|
+
React.createElement(Box, { is: "input", type: "color", flexGrow: 1, ...eventHandlers, ...field, ...rest, className: [styles.input, field.className], autoComplete: "off" })));
|
|
20
|
+
}, {
|
|
21
|
+
primitiveType: 'color',
|
|
22
|
+
withPrefixIcon: false,
|
|
23
|
+
defaultValue: '#000000',
|
|
24
|
+
});
|
|
25
|
+
export default ColourInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/ColourInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ColourInput } from './ColourInput';
|
|
@@ -0,0 +1,182 @@
|
|
|
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 { AccountEditIcon, AlertCircleIcon, CalendarIcon, CarIcon, CarMultipleIcon, CurrencyUsdIcon, FourByFourIcon, PlusIcon, StarIcon } from '@autoguru/icons';
|
|
10
|
+
import { action } from '@storybook/addon-actions';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
import { ColourInput } from "./index.js";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
export default {
|
|
15
|
+
title: 'Components/Inputs/Colour',
|
|
16
|
+
component: ColourInput,
|
|
17
|
+
parameters: {
|
|
18
|
+
chromatic: {
|
|
19
|
+
delay: 3000
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const defaultColour = '#ec4040';
|
|
24
|
+
const iconOptions = {
|
|
25
|
+
CalendarIcon,
|
|
26
|
+
AccountEditIcon,
|
|
27
|
+
AlertCircleIcon,
|
|
28
|
+
CarMultipleIcon,
|
|
29
|
+
CurrencyUsdIcon,
|
|
30
|
+
PlusIcon,
|
|
31
|
+
StarIcon
|
|
32
|
+
};
|
|
33
|
+
const argTypes = {
|
|
34
|
+
value: {
|
|
35
|
+
control: {
|
|
36
|
+
type: 'color'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
suffixIcon: {
|
|
40
|
+
defaultValue: null,
|
|
41
|
+
description: 'Input suffix Icon',
|
|
42
|
+
options: iconOptions,
|
|
43
|
+
control: {
|
|
44
|
+
type: 'select'
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const Template = args => _jsx(ColourInput, _objectSpread({}, args));
|
|
50
|
+
|
|
51
|
+
const sharedProps = {
|
|
52
|
+
disabled: false,
|
|
53
|
+
name: 'date',
|
|
54
|
+
placeholder: 'Your favourite colour',
|
|
55
|
+
isValid: false,
|
|
56
|
+
isTouched: false,
|
|
57
|
+
isLoading: false,
|
|
58
|
+
isFocused: false,
|
|
59
|
+
reserveHintSpace: false,
|
|
60
|
+
hintText: '',
|
|
61
|
+
notch: true,
|
|
62
|
+
suffixIcon: void 0,
|
|
63
|
+
onChange: action('onChange'),
|
|
64
|
+
onFocus: action('onFocus'),
|
|
65
|
+
onBlur: action('onBlur')
|
|
66
|
+
};
|
|
67
|
+
const standardProps = sharedProps;
|
|
68
|
+
|
|
69
|
+
const withAValueProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
70
|
+
value: defaultColour,
|
|
71
|
+
placeholder: 'What is your favourite car colour?'
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const withHintTextProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
75
|
+
hintText: 'Hint Text',
|
|
76
|
+
placeholder: 'What is your favourite car colour?'
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
const withIconProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
80
|
+
suffixIcon: FourByFourIcon
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
const disabledProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
84
|
+
value: defaultColour,
|
|
85
|
+
placeholder: 'What is your favourite car colour?',
|
|
86
|
+
disabled: true
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
const validProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
90
|
+
value: defaultColour,
|
|
91
|
+
placeholder: 'What is your favourite car colour?',
|
|
92
|
+
isTouched: true,
|
|
93
|
+
isValid: true
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const invalidProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
97
|
+
value: '#ffd402',
|
|
98
|
+
placeholder: 'What is your favourite car colour?',
|
|
99
|
+
isTouched: true,
|
|
100
|
+
isValid: false,
|
|
101
|
+
hintText: 'Invalid colour'
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
const noNotchProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
105
|
+
placeholder: 'What is your favourite car colour?',
|
|
106
|
+
notch: false
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
const noNotchWithValueProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
110
|
+
value: defaultColour,
|
|
111
|
+
placeholder: 'What is your favourite car colour?',
|
|
112
|
+
notch: false
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
const loadingProps = _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
116
|
+
isLoading: true
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
export const standard = Template.bind(standardProps);
|
|
120
|
+
standard.args = standardProps;
|
|
121
|
+
standard.argTypes = argTypes;
|
|
122
|
+
export const withAValue = Template.bind(withAValueProps);
|
|
123
|
+
withAValue.args = withAValueProps;
|
|
124
|
+
withAValue.argTypes = argTypes;
|
|
125
|
+
export const withHintText = Template.bind(withHintTextProps);
|
|
126
|
+
withHintText.args = withHintTextProps;
|
|
127
|
+
withHintText.argTypes = argTypes;
|
|
128
|
+
export const notchDisabled = Template.bind(noNotchProps);
|
|
129
|
+
notchDisabled.args = noNotchProps;
|
|
130
|
+
notchDisabled.argTypes = argTypes;
|
|
131
|
+
export const notchDisabledWithValue = Template.bind(noNotchWithValueProps);
|
|
132
|
+
notchDisabledWithValue.args = noNotchWithValueProps;
|
|
133
|
+
notchDisabledWithValue.argTypes = argTypes;
|
|
134
|
+
export const withIcon = Template.bind(withIconProps);
|
|
135
|
+
withIcon.args = withIconProps;
|
|
136
|
+
withIcon.argTypes = argTypes;
|
|
137
|
+
export const disabled = Template.bind(disabledProps);
|
|
138
|
+
disabled.args = disabledProps;
|
|
139
|
+
disabled.argTypes = argTypes;
|
|
140
|
+
export const valid = Template.bind(validProps);
|
|
141
|
+
valid.args = validProps;
|
|
142
|
+
valid.argTypes = argTypes;
|
|
143
|
+
export const invalid = Template.bind(invalidProps);
|
|
144
|
+
invalid.args = invalidProps;
|
|
145
|
+
invalid.argTypes = argTypes;
|
|
146
|
+
export const loading = Template.bind(loadingProps);
|
|
147
|
+
loading.args = loadingProps;
|
|
148
|
+
loading.argTypes = argTypes;
|
|
149
|
+
|
|
150
|
+
const smallProps = _objectSpread(_objectSpread({}, standardProps), {}, {
|
|
151
|
+
size: 'small'
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
export const small = Template.bind(smallProps);
|
|
155
|
+
small.args = smallProps;
|
|
156
|
+
small.argTypes = argTypes;
|
|
157
|
+
|
|
158
|
+
const withValueSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
|
|
159
|
+
size: 'small'
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
export const withValueSmall = Template.bind(withValueSmallProps);
|
|
163
|
+
withValueSmall.args = withValueSmallProps;
|
|
164
|
+
withValueSmall.argTypes = argTypes;
|
|
165
|
+
|
|
166
|
+
const withIconSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
|
|
167
|
+
suffixIcon: CarIcon,
|
|
168
|
+
size: 'small'
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
export const withIconSmall = Template.bind(withIconSmallProps);
|
|
172
|
+
withIconSmall.args = withIconSmallProps;
|
|
173
|
+
withIconSmall.argTypes = argTypes;
|
|
174
|
+
|
|
175
|
+
const loadingSmallProps = _objectSpread(_objectSpread({}, withAValueProps), {}, {
|
|
176
|
+
isLoading: true,
|
|
177
|
+
size: 'small'
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
export const loadingSmall = Template.bind(loadingSmallProps);
|
|
181
|
+
loadingSmall.args = loadingSmallProps;
|
|
182
|
+
loadingSmall.argTypes = argTypes;
|
|
@@ -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, "
|
|
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>>;
|
|
15
15
|
export default Column;
|
|
16
16
|
//# sourceMappingURL=Column.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styleVariants } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../themes/
|
|
2
|
+
import { themeContractVars as vars } from '../../themes/theme.css';
|
|
3
3
|
import { makeResponsiveStyle } from '../../utils/responsiveProps.css';
|
|
4
4
|
export const space = {
|
|
5
5
|
spaceX: makeResponsiveStyle(vars.space, 'paddingLeft'),
|
|
@@ -20,7 +20,7 @@ interface ColumnContextValue {
|
|
|
20
20
|
spaceYCls: any;
|
|
21
21
|
isList: boolean;
|
|
22
22
|
}
|
|
23
|
-
export declare const ColumnContext: React.Context<ColumnContextValue>;
|
|
24
|
-
export declare const Columns: React.ForwardRefExoticComponent<Pick<Props, "
|
|
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>>;
|
|
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,QAAQ,CAAC;IACjD,KAAK,CAAC,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,
|
|
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,QAAQ,CAAC;IACjD,KAAK,CAAC,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,glNAmEnB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { vars } from '../../themes/
|
|
1
|
+
import { themeContractVars as vars } from '../../themes/theme.css';
|
|
2
2
|
import { makeResponsiveStyle } from '../../utils/responsiveProps.css';
|
|
3
3
|
export const size = makeResponsiveStyle(vars.icon.size, (value) => ({
|
|
4
4
|
width: value,
|
|
@@ -9,7 +9,7 @@ interface ImageServerContext {
|
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
widthMap?: Record<WidthScale, number>;
|
|
11
11
|
getWidthValue?(width: WidthScale): number;
|
|
12
|
-
srcUrlMapper(params: UrlParams)
|
|
12
|
+
srcUrlMapper: (params: UrlParams) => string;
|
|
13
13
|
generateSrcSet(params: Omit<UrlParams, 'width'>): string;
|
|
14
14
|
}
|
|
15
15
|
export declare const widthMap: ImageServerContext['widthMap'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageServerProvider.d.ts","sourceRoot":"","sources":["../../../lib/components/Image/ImageServerProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAGN,iBAAiB,EACjB,SAAS,EAIT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,UAAU,SAAS;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,kBAAkB;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAEtC,aAAa,CAAC,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAAC;IAE1C,YAAY,CAAC,MAAM,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"ImageServerProvider.d.ts","sourceRoot":"","sources":["../../../lib/components/Image/ImageServerProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAGN,iBAAiB,EACjB,SAAS,EAIT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,UAAU,SAAS;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,kBAAkB;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAEtC,aAAa,CAAC,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAAC;IAE1C,YAAY,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,MAAM,CAAC;IAE5C,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC;CACzD;AAED,eAAO,MAAM,QAAQ,EAAE,kBAAkB,CAAC,UAAU,CAiBnD,CAAC;AAcF,eAAO,MAAM,cAAc,0BAAmC,CAAC;AAE/D,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,CAClD,IAAI,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAqC1C,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsiveImage.d.ts","sourceRoot":"","sources":["../../../lib/components/Image/ResponsiveImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAkB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,KAChB,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,EAAE,OAAO,CAAC;IAQzD,UAAU,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;IAanD,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAM/B,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"ResponsiveImage.d.ts","sourceRoot":"","sources":["../../../lib/components/Image/ResponsiveImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAkB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,KAChB,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,EAAE,OAAO,CAAC;IAQzD,UAAU,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;IAanD,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAM/B,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,KAAK,CAyCpD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { keyframes, style } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../themes/
|
|
2
|
+
import { themeContractVars as vars } from '../../themes/theme.css';
|
|
3
3
|
export const root = style({
|
|
4
4
|
height: vars.space['1'],
|
|
5
5
|
transition: 'opacity 0.25s cubic-bezier(0.4, 0, 0.6, 1) 0ms',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styleVariants } from '@vanilla-extract/css';
|
|
2
|
-
import { vars } from '../../themes/
|
|
2
|
+
import { themeContractVars as vars } from '../../themes/theme.css';
|
|
3
3
|
export const variant = styleVariants({
|
|
4
4
|
primary: {
|
|
5
5
|
color: vars.colours.intent.primary.background.strong,
|