@autoguru/overdrive 4.43.8-next.1 → 4.43.9-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Actions/Actions.d.ts +3 -3
- package/dist/components/Actions/Actions.d.ts.map +1 -1
- package/dist/components/Actions/Actions.js +1 -2
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Anchor/Anchor.d.ts +3 -4
- package/dist/components/Anchor/Anchor.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.js +17 -19
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/BulletText/BulletText.d.ts.map +1 -1
- package/dist/components/BulletText/BulletText.js +6 -7
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ColourInput/ColourInput.d.ts.map +1 -1
- package/dist/components/ColourInput/ColourInput.js +4 -5
- package/dist/components/Columns/Columns.d.ts +3 -3
- package/dist/components/Columns/Columns.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.d.ts +2 -2
- package/dist/components/EditableText/EditableText.d.ts.map +1 -1
- package/dist/components/EditableText/EditableText.js +6 -4
- package/dist/components/Flyout/Flyout.d.ts +2 -2
- package/dist/components/Flyout/Flyout.d.ts.map +1 -1
- package/dist/components/Flyout/Flyout.js +1 -1
- package/dist/components/Heading/Heading.d.ts +1 -2
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +2 -3
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts +2 -2
- package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.d.ts.map +1 -1
- package/dist/components/Inline/Inline.d.ts +6 -9
- package/dist/components/Inline/Inline.d.ts.map +1 -1
- package/dist/components/Inline/Inline.js +45 -52
- package/dist/components/OrderedList/OrderedList.css.d.ts +1 -0
- package/dist/components/OrderedList/OrderedList.css.d.ts.map +1 -1
- package/dist/components/OrderedList/OrderedList.css.js +8 -1
- package/dist/components/OrderedList/OrderedList.d.ts +4 -4
- package/dist/components/OrderedList/OrderedList.d.ts.map +1 -1
- package/dist/components/OrderedList/OrderedList.js +4 -6
- package/dist/components/Section/Section.d.ts +3 -3
- package/dist/components/Section/Section.d.ts.map +1 -1
- package/dist/components/Section/Section.js +2 -3
- package/dist/components/SelectInput/SelectInput.js +2 -2
- package/dist/components/Stack/Stack.d.ts +10 -6
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/Stack/Stack.js +27 -27
- package/dist/components/Tabs/Tab.d.ts +3 -3
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.js +1 -1
- package/dist/components/Text/Text.d.ts +5 -3
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.d.ts +5 -5
- package/dist/components/TextBubble/TextBubble.d.ts.map +1 -1
- package/dist/components/TextBubble/TextBubble.js +1 -2
- package/dist/components/TextLink/TextLink.css.d.ts +1 -0
- package/dist/components/TextLink/TextLink.css.d.ts.map +1 -1
- package/dist/components/TextLink/TextLink.css.js +5 -0
- package/dist/components/TextLink/TextLink.d.ts +8 -7
- package/dist/components/TextLink/TextLink.d.ts.map +1 -1
- package/dist/components/TextLink/TextLink.js +14 -14
- package/dist/components/private/InputBase/withEnhancedInput.d.ts +1 -1
- package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.d.ts +11 -7
- package/dist/styles/sprinkles.css.d.ts.map +1 -1
- package/dist/styles/sprinkles.css.js +11 -7
- package/package.json +2 -2
- package/dist/components/Anchor/Anchor.css.d.ts +0 -2
- package/dist/components/Anchor/Anchor.css.d.ts.map +0 -1
- package/dist/components/Anchor/Anchor.css.js +0 -10
- package/dist/components/Stack/Divider.d.ts +0 -3
- package/dist/components/Stack/Divider.d.ts.map +0 -1
- package/dist/components/Stack/Divider.js +0 -13
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComponentProps,
|
|
1
|
+
import React, { type ComponentProps, type ReactElement } from 'react';
|
|
2
2
|
import { Columns } from '../Columns/Columns';
|
|
3
|
-
export interface
|
|
3
|
+
export interface ActionsProps extends Partial<Pick<ComponentProps<typeof Columns>, 'noWrap' | 'wrappingDirection'>> {
|
|
4
4
|
children: ReactElement | ReactElement[];
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const Actions:
|
|
7
|
+
export declare const Actions: ({ children, noWrap, wrappingDirection, }: ActionsProps) => React.JSX.Element;
|
|
8
8
|
export default Actions;
|
|
9
9
|
//# sourceMappingURL=Actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../lib/components/Actions/Actions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../lib/components/Actions/Actions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,WAAW,YAChB,SAAQ,OAAO,CACd,IAAI,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,QAAQ,GAAG,mBAAmB,CAAC,CACpE;IACD,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,OAAO,GAAI,0CAIrB,YAAY,sBAMd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import { Children } from 'react';
|
|
3
|
+
import React, { Children } from 'react';
|
|
5
4
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
6
5
|
import { Column } from "../Columns/Column.js";
|
|
7
6
|
import { Columns } from "../Columns/Columns.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ComponentProps,
|
|
1
|
+
import React, { type ComponentProps, type ReactNode } from 'react';
|
|
2
2
|
import { Button } from '../Button/Button';
|
|
3
3
|
import { IntentStripe } from '../IntentStripe/IntentStripe';
|
|
4
4
|
type IntentStripeProps = ComponentProps<typeof IntentStripe>;
|
|
5
|
-
export interface
|
|
5
|
+
export interface AlertProps extends IntentStripeProps {
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
inline?: boolean;
|
|
9
9
|
dismissible?: boolean;
|
|
10
10
|
onRequestClose?: ComponentProps<typeof Button>['onClick'];
|
|
11
11
|
}
|
|
12
|
-
export declare const Alert:
|
|
12
|
+
export declare const Alert: ({ children, className, intent, inline, onRequestClose, dismissible, }: AlertProps) => React.JSX.Element;
|
|
13
13
|
export default Alert;
|
|
14
14
|
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../lib/components/Alert/Alert.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../lib/components/Alert/Alert.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKnE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAK5D,KAAK,iBAAiB,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAG7D,MAAM,WAAW,UAAW,SAAQ,iBAAiB;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;CAC1D;AASD,eAAO,MAAM,KAAK,GAAI,uEAOnB,UAAU,sBA6DZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { AlertCircleIcon, AlertIcon, CheckCircleIcon, InformationIcon, WindowCloseIcon } from '@autoguru/icons';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import { sprinkles } from "../../styles/index.js";
|
|
7
7
|
import { sprinklesLegacyText } from "../../styles/typography.css.js";
|
|
8
8
|
import { Box } from "../Box/Box.js";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { IconType } from '@autoguru/icons';
|
|
2
2
|
import { AnchorHTMLAttributes, ElementType, FunctionComponent, ReactElement, ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
export interface Props extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, '
|
|
5
|
-
|
|
6
|
-
is?: ElementType | ReactElement;
|
|
3
|
+
import type { TestId } from '../../types';
|
|
4
|
+
export interface Props extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'as' | 'children' | 'is' | 'style'>, TestId {
|
|
5
|
+
as?: ElementType | ReactElement;
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
children?: ReactNode;
|
|
9
8
|
icon?: IconType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../lib/components/Anchor/Anchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EACN,oBAAoB,EAGpB,WAAW,EACX,iBAAiB,EAEjB,YAAY,EACZ,SAAS,EACT,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../lib/components/Anchor/Anchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EACN,oBAAoB,EAGpB,WAAW,EACX,iBAAiB,EAEjB,YAAY,EACZ,SAAS,EACT,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAO1C,MAAM,WAAW,KAChB,SAAQ,IAAI,CACV,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,IAAI,GAAG,UAAU,GAAG,IAAI,GAAG,OAAO,CAClC,EACD,MAAM;IACP,EAAE,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;CAChB;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,KAAK,CA4C3C,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -2,24 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["className", "
|
|
5
|
+
const _excluded = ["className", "as", "disabled", "testId", "children", "icon"];
|
|
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
9
|
import * as React from 'react';
|
|
10
10
|
import { cloneElement, createElement, isValidElement } from 'react';
|
|
11
11
|
import { componentStyles } from "../../styles/componentStyles.js";
|
|
12
|
-
import { sprinkles } from "../../styles/sprinkles.css.js";
|
|
13
12
|
import { dataAttrs } from "../../utils/dataAttrs.js";
|
|
13
|
+
import { Box } from "../Box/Box.js";
|
|
14
14
|
import { Icon } from "../Icon/Icon.js";
|
|
15
|
-
import { Inline } from "../Inline/Inline.js";
|
|
16
|
-
import { Text } from "../Text/Text.js";
|
|
17
|
-
import * as styles from "./Anchor.css.js";
|
|
18
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
const ANCHOR_TAG = 'a';
|
|
19
17
|
export const Anchor = _ref => {
|
|
20
18
|
let {
|
|
21
|
-
className
|
|
22
|
-
|
|
19
|
+
className,
|
|
20
|
+
as: Component = ANCHOR_TAG,
|
|
23
21
|
disabled = false,
|
|
24
22
|
testId,
|
|
25
23
|
children,
|
|
@@ -31,26 +29,26 @@ export const Anchor = _ref => {
|
|
|
31
29
|
as: Component,
|
|
32
30
|
colour: 'link',
|
|
33
31
|
display: 'inline'
|
|
34
|
-
}),
|
|
32
|
+
}), className),
|
|
35
33
|
disabled
|
|
36
34
|
}, dataAttrs({
|
|
37
35
|
testid: testId
|
|
38
36
|
})), rest);
|
|
39
|
-
const
|
|
40
|
-
|
|
37
|
+
const content = _jsxs(Box, {
|
|
38
|
+
as: "span",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
colour: "link",
|
|
41
|
+
display: "inline-flex",
|
|
42
|
+
fontSize: "4",
|
|
43
|
+
fontWeight: "bold",
|
|
44
|
+
gap: "2",
|
|
41
45
|
children: [icon && _jsx(Icon, {
|
|
42
46
|
icon: icon,
|
|
43
|
-
size: "small"
|
|
44
|
-
|
|
45
|
-
colour: 'link'
|
|
46
|
-
})
|
|
47
|
-
}), _jsx(Text, {
|
|
48
|
-
weight: "bold",
|
|
49
|
-
size: "4",
|
|
50
|
-
colour: "link",
|
|
47
|
+
size: "small"
|
|
48
|
+
}), _jsx("span", {
|
|
51
49
|
children: children
|
|
52
50
|
})]
|
|
53
51
|
});
|
|
54
|
-
return isValidElement(Component) ? cloneElement(Component, props,
|
|
52
|
+
return isValidElement(Component) ? cloneElement(Component, props, content) : createElement(Component, props, content);
|
|
55
53
|
};
|
|
56
54
|
export default Anchor;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { TestId } from '../../types';
|
|
3
3
|
import type { StyledBadgeProps } from './Badge.css';
|
|
4
4
|
type Colours = Exclude<StyledBadgeProps['colour'], undefined>;
|
|
5
|
-
export interface BadgeProps extends
|
|
5
|
+
export interface BadgeProps extends TestId {
|
|
6
6
|
label: string;
|
|
7
7
|
colour?: Colours;
|
|
8
8
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../lib/components/Badge/Badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../lib/components/Badge/Badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAI1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,KAAK,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAC;AAE9D,MAAM,WAAW,UAAW,SAAQ,MAAM;IAEzC,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAE/B,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CAChC;AAOD,eAAO,MAAM,KAAK,GAAI,mDAOnB,UAAU,sBAyBZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAEN,KAAK,oBAAoB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAMlD,MAAM,WAAW,cAChB,SAAQ,WAAW,EAClB,iBAAiB,EACjB,MAAM;CAAG;AAEX,MAAM,WAAW,QAChB,SAAQ,IAAI,CACV,iBAAiB,CAAC,WAAW,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CACjE,EACD,cAAc,EACd,oBAAoB;IAErB,EAAE,CAAC,EAAE,WAAW,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../lib/components/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAEN,KAAK,oBAAoB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAMlD,MAAM,WAAW,cAChB,SAAQ,WAAW,EAClB,iBAAiB,EACjB,MAAM;CAAG;AAEX,MAAM,WAAW,QAChB,SAAQ,IAAI,CACV,iBAAiB,CAAC,WAAW,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CACjE,EACD,cAAc,EACd,oBAAoB;IAErB,EAAE,CAAC,EAAE,WAAW,CAAC;CACjB;AAoBD,eAAO,MAAM,GAAG,8EA6Pf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BulletText.d.ts","sourceRoot":"","sources":["../../../lib/components/BulletText/BulletText.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BulletText.d.ts","sourceRoot":"","sources":["../../../lib/components/BulletText/BulletText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAkC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAMhD,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAChD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CAClC;AAED,eAAO,MAAM,UAAU,GAAI,4CAKxB,eAAe,sBA8CjB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import clsx from 'clsx';
|
|
4
3
|
import React, { isValidElement } from 'react';
|
|
5
4
|
import { Box } from "../Box/Box.js";
|
|
6
5
|
import { Inline } from "../Inline/Inline.js";
|
|
@@ -26,26 +25,26 @@ export const BulletText = _ref => {
|
|
|
26
25
|
children: Bullet
|
|
27
26
|
}) : _jsx(Box, {
|
|
28
27
|
position: "relative",
|
|
29
|
-
flexShrink: 0,
|
|
28
|
+
flexShrink: "0",
|
|
30
29
|
display: "flex",
|
|
31
30
|
alignItems: "center",
|
|
32
31
|
justifyContent: "center",
|
|
33
|
-
className:
|
|
32
|
+
className: [styles.bullet, {
|
|
34
33
|
[styles.primary]: variant === 'primary',
|
|
35
34
|
[styles.secondary]: variant !== 'primary'
|
|
36
|
-
}
|
|
35
|
+
}],
|
|
37
36
|
borderRadius: "pill",
|
|
38
37
|
children: _jsx(Text, {
|
|
39
|
-
className:
|
|
38
|
+
className: {
|
|
40
39
|
[styles.primaryText]: variant === 'primary',
|
|
41
40
|
[styles.secondaryText]: variant !== 'primary'
|
|
42
|
-
}
|
|
41
|
+
},
|
|
43
42
|
as: "span",
|
|
44
43
|
size: "2",
|
|
45
44
|
children: Bullet
|
|
46
45
|
})
|
|
47
46
|
}), _jsx(Box, {
|
|
48
|
-
flexGrow: 1,
|
|
47
|
+
flexGrow: "1",
|
|
49
48
|
children: _jsx(Text, {
|
|
50
49
|
as: "span",
|
|
51
50
|
size: "4",
|
|
@@ -12,7 +12,7 @@ type TextContent = keyof typeof defaultEnglish;
|
|
|
12
12
|
export interface ButtonProps extends Pick<ButtonPrimitive, 'id' | 'onClick' | 'type' | 'className'>, Pick<AriaAttributes, 'aria-label'>, StyledButtonProps, TestId {
|
|
13
13
|
children: AllowedChildren | AllowedChildren[];
|
|
14
14
|
disabled?: boolean;
|
|
15
|
-
|
|
15
|
+
as?: ElementType | ReactElement;
|
|
16
16
|
isLoading?: boolean;
|
|
17
17
|
isFullWidth?: boolean;
|
|
18
18
|
rounded?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColourInput.d.ts","sourceRoot":"","sources":["../../../lib/components/ColourInput/ColourInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColourInput.d.ts","sourceRoot":"","sources":["../../../lib/components/ColourInput/ColourInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,eAAO,MAAM,WAAW,8TAyEvB,CAAC"}
|
|
@@ -6,7 +6,6 @@ const _excluded = ["field", "eventHandlers", "validation", "isLoading", "suffixe
|
|
|
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 { warning } from '@autoguru/utilities';
|
|
9
|
-
import clsx from 'clsx';
|
|
10
9
|
import * as React from 'react';
|
|
11
10
|
import { sprinkles } from "../../styles/index.js";
|
|
12
11
|
import { Box } from "../Box/Box.js";
|
|
@@ -38,7 +37,7 @@ export const ColourInput = withEnhancedInput(_ref => {
|
|
|
38
37
|
height: "full",
|
|
39
38
|
alignItems: "center",
|
|
40
39
|
justifyContent: "space-around",
|
|
41
|
-
flexShrink: 0,
|
|
40
|
+
flexShrink: "0",
|
|
42
41
|
pointerEvents: "none",
|
|
43
42
|
position: "absolute",
|
|
44
43
|
children: _jsx(Box, {
|
|
@@ -50,14 +49,14 @@ export const ColourInput = withEnhancedInput(_ref => {
|
|
|
50
49
|
})
|
|
51
50
|
}), _jsx(Text, {
|
|
52
51
|
display: "block",
|
|
53
|
-
className:
|
|
52
|
+
className: [styles.valueText, styles.valueTextSize[size], sprinkles({
|
|
54
53
|
position: 'absolute'
|
|
55
|
-
})
|
|
54
|
+
})],
|
|
56
55
|
children: field.value
|
|
57
56
|
}), _jsx(Box, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
58
57
|
as: "input",
|
|
59
58
|
type: "color",
|
|
60
|
-
flexGrow: 1
|
|
59
|
+
flexGrow: "1"
|
|
61
60
|
}, eventHandlers), field), rest), {}, {
|
|
62
61
|
className: [styles.input, field.className],
|
|
63
62
|
autoComplete: "off"
|
|
@@ -4,13 +4,13 @@ import type { ThemeTokens as Tokens } from '../../themes';
|
|
|
4
4
|
import { ResponsiveProp } from '../../utils/responsiveProps.css';
|
|
5
5
|
import { Box } from '../Box/Box';
|
|
6
6
|
import * as styles from './Columns.css';
|
|
7
|
-
export interface
|
|
7
|
+
export interface ColumnsProps extends Omit<ComponentProps<typeof Box>, 'css'>, styles.ColumnsStyle {
|
|
8
|
+
children?: ReactNode;
|
|
8
9
|
className?: string;
|
|
9
10
|
columns?: number;
|
|
10
11
|
space?: ResponsiveProp<keyof Tokens['space']>;
|
|
11
12
|
spaceX?: ResponsiveProp<keyof typeof styles.space.spaceX>;
|
|
12
13
|
spaceY?: ResponsiveProp<keyof typeof styles.space.spaceY>;
|
|
13
|
-
children?: ReactNode;
|
|
14
14
|
}
|
|
15
15
|
interface ColumnContextValue {
|
|
16
16
|
spaceXCls: any;
|
|
@@ -18,6 +18,6 @@ interface ColumnContextValue {
|
|
|
18
18
|
isList: boolean;
|
|
19
19
|
}
|
|
20
20
|
export declare const ColumnContext: React.Context<ColumnContextValue | null>;
|
|
21
|
-
export declare const Columns: React.ForwardRefExoticComponent<Omit<
|
|
21
|
+
export declare const Columns: React.ForwardRefExoticComponent<Omit<ColumnsProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
22
22
|
export {};
|
|
23
23
|
//# 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,KAAK,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,
|
|
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,KAAK,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,YAChB,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,KAAK,CAAC,EAC9C,MAAM,CAAC,YAAY;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAI9C,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAI1D,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1D;AAED,UAAU,kBAAkB;IAC3B,SAAS,MAAC;IACV,SAAS,MAAC;IACV,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,0CAAiD,CAAC;AAgC5E,eAAO,MAAM,OAAO,+FAkEnB,CAAC"}
|
|
@@ -2,8 +2,8 @@ import React, { type InputHTMLAttributes } from 'react';
|
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
3
|
import { type TextProps } from '../Text/Text';
|
|
4
4
|
type PickedBoxProps = Pick<BoxProps, 'display' | 'onFocus' | 'onBlur' | 'onKeyDown'>;
|
|
5
|
-
type FilteredTextProps = Pick<TextProps, 'as' | 'colour' | 'size' | 'children' | 'noWrap'>;
|
|
6
|
-
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, '
|
|
5
|
+
type FilteredTextProps = Pick<TextProps, 'as' | 'color' | 'colour' | 'size' | 'children' | 'noWrap'>;
|
|
6
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'as' | 'autoFocus' | 'color' | 'height' | 'is' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'style' | 'width' | keyof FilteredTextProps | keyof PickedBoxProps>;
|
|
7
7
|
export interface EditableTextProps extends FilteredTextProps, InputProps, Partial<PickedBoxProps> {
|
|
8
8
|
className?: string;
|
|
9
9
|
onModeChange?: (mode: InputMode) => void;
|
|
@@ -1 +1 @@
|
|
|
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,QAAQ,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMpD,KAAK,cAAc,GAAG,IAAI,CACzB,QAAQ,EACR,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,
|
|
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,QAAQ,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMpD,KAAK,cAAc,GAAG,IAAI,CACzB,QAAQ,EACR,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,CAC9C,CAAC;AAEF,KAAK,iBAAiB,GAAG,IAAI,CAC5B,SAAS,EACT,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAC1D,CAAC;AAEF,KAAK,UAAU,GAAG,IAAI,CACrB,mBAAmB,CAAC,gBAAgB,CAAC,EACnC,IAAI,GACJ,WAAW,GACX,OAAO,GACP,QAAQ,GACR,IAAI,GACJ,SAAS,GACT,QAAQ,GACR,WAAW,GACX,OAAO,GACP,OAAO,GACP,MAAM,iBAAiB,GACvB,MAAM,cAAc,CACtB,CAAC;AAEF,MAAM,WAAW,iBAChB,SAAQ,iBAAiB,EACxB,UAAU,EACV,OAAO,CAAC,cAAc,CAAC;IACxB,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,0FAyHxB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["as", "colour", "size", "display", "value", "onFocus", "onBlur", "onKeyDown", "onModeChange", "tabIndex", "onChange", "type"];
|
|
5
|
+
const _excluded = ["as", "color", "colour", "size", "display", "value", "onFocus", "onBlur", "onKeyDown", "onModeChange", "tabIndex", "onChange", "type"];
|
|
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';
|
|
@@ -17,7 +17,8 @@ const numberInputValuePattern = /^\d*\.?\d*$/;
|
|
|
17
17
|
export const EditableText = forwardRef((_ref, ref) => {
|
|
18
18
|
var _inputRef$current;
|
|
19
19
|
let {
|
|
20
|
-
as
|
|
20
|
+
as,
|
|
21
|
+
color,
|
|
21
22
|
colour = 'muted',
|
|
22
23
|
size,
|
|
23
24
|
display = 'inline-block',
|
|
@@ -53,7 +54,7 @@ export const EditableText = forwardRef((_ref, ref) => {
|
|
|
53
54
|
if (typeof incomingOnChange === 'function') incomingOnChange(e);
|
|
54
55
|
}, [incomingOnChange, type, mode]);
|
|
55
56
|
const baseStyle = textStyles({
|
|
56
|
-
as
|
|
57
|
+
as,
|
|
57
58
|
colour,
|
|
58
59
|
size
|
|
59
60
|
});
|
|
@@ -101,7 +102,8 @@ export const EditableText = forwardRef((_ref, ref) => {
|
|
|
101
102
|
})), _jsx(Text, {
|
|
102
103
|
noWrap: true,
|
|
103
104
|
ref: textRef,
|
|
104
|
-
as:
|
|
105
|
+
as: as,
|
|
106
|
+
color: color,
|
|
105
107
|
colour: colour,
|
|
106
108
|
size: size,
|
|
107
109
|
className: clsx(baseStyle, styles.text, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { type ComponentProps } from 'react';
|
|
2
2
|
import { Positioner } from '../Positioner/Positioner';
|
|
3
|
-
export declare const Flyout:
|
|
3
|
+
export declare const Flyout: ({ children, triggerRef, isOpen, alignment, triggerOffset, ...rest }: ComponentProps<typeof Positioner>) => React.JSX.Element;
|
|
4
4
|
//# 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,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,eAAO,MAAM,MAAM,GAAI,qEAOpB,cAAc,CAAC,OAAO,UAAU,CAAC,sBAmBnC,CAAC"}
|
|
@@ -5,7 +5,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
5
5
|
const _excluded = ["children", "triggerRef", "isOpen", "alignment", "triggerOffset"];
|
|
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
|
-
import
|
|
8
|
+
import React from 'react';
|
|
9
9
|
import { Box } from "../Box/Box.js";
|
|
10
10
|
import { Positioner } from "../Positioner/Positioner.js";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -4,7 +4,6 @@ import { type TextStyleProps } from '../Text/textStyles';
|
|
|
4
4
|
export type HeadingTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5
5
|
export interface HeadingProps extends Omit<BoxProps, keyof TextStyleProps>, Omit<TextStyleProps, 'as'> {
|
|
6
6
|
as?: HeadingTags;
|
|
7
|
-
is?: HeadingTags;
|
|
8
7
|
}
|
|
9
|
-
export declare const Heading: ({
|
|
8
|
+
export declare const Heading: ({ as, align, breakWord, children, className, color, colour, noWrap, size, transform, weight, ...props }: HeadingProps) => React.JSX.Element;
|
|
10
9
|
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../lib/components/Heading/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElE,MAAM,WAAW,YAChB,SAAQ,IAAI,CAAC,QAAQ,EAAE,MAAM,cAAc,CAAC,EAC3C,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC;IAC3B,EAAE,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../lib/components/Heading/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElE,MAAM,WAAW,YAChB,SAAQ,IAAI,CAAC,QAAQ,EAAE,MAAM,cAAc,CAAC,EAC3C,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC;IAC3B,EAAE,CAAC,EAAE,WAAW,CAAC;CACjB;AAcD,eAAO,MAAM,OAAO,GAAI,yGAarB,YAAY,sBAoBd,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["
|
|
5
|
+
const _excluded = ["as", "align", "breakWord", "children", "className", "color", "colour", "noWrap", "size", "transform", "weight"];
|
|
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 React from 'react';
|
|
@@ -19,8 +19,7 @@ const defaultSizeMap = {
|
|
|
19
19
|
};
|
|
20
20
|
export const Heading = _ref => {
|
|
21
21
|
let {
|
|
22
|
-
|
|
23
|
-
as = is,
|
|
22
|
+
as = 'h1',
|
|
24
23
|
align,
|
|
25
24
|
breakWord,
|
|
26
25
|
children,
|
|
@@ -3,7 +3,7 @@ import { Column } from '../Columns/Column';
|
|
|
3
3
|
import { Columns } from '../Columns/Columns';
|
|
4
4
|
import { SliderProgress } from '../SliderProgress/SliderProgress';
|
|
5
5
|
import { UseHorizontalAutoScrollerProps } from './useHorizontalAutoScroller';
|
|
6
|
-
export interface
|
|
6
|
+
export interface HorizontalAutoScrollerProps extends Pick<ComponentProps<typeof Columns>, 'space'>, Omit<UseHorizontalAutoScrollerProps, 'itemsRef'> {
|
|
7
7
|
durationSeconds?: number;
|
|
8
8
|
className?: string;
|
|
9
9
|
columnWidth?: ComponentProps<typeof Column>['width'];
|
|
@@ -11,6 +11,6 @@ export interface Props extends Pick<ComponentProps<typeof Columns>, 'space'>, Om
|
|
|
11
11
|
noControls?: boolean;
|
|
12
12
|
children: ReactNode | ReactNode[];
|
|
13
13
|
}
|
|
14
|
-
export declare const HorizontalAutoScroller: FunctionComponent<
|
|
14
|
+
export declare const HorizontalAutoScroller: FunctionComponent<HorizontalAutoScrollerProps>;
|
|
15
15
|
export default HorizontalAutoScroller;
|
|
16
16
|
//# sourceMappingURL=HorizontalAutoScroller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalAutoScroller.d.ts","sourceRoot":"","sources":["../../../lib/components/HorizontalAutoScroller/HorizontalAutoScroller.tsx"],"names":[],"mappings":"AAGA,OAAO,EACN,cAAc,EACd,iBAAiB,EACjB,SAAS,EAGT,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG7C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIlE,OAAO,EAEN,8BAA8B,EAC9B,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"HorizontalAutoScroller.d.ts","sourceRoot":"","sources":["../../../lib/components/HorizontalAutoScroller/HorizontalAutoScroller.tsx"],"names":[],"mappings":"AAGA,OAAO,EACN,cAAc,EACd,iBAAiB,EACjB,SAAS,EAGT,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG7C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIlE,OAAO,EAEN,8BAA8B,EAC9B,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,2BAChB,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,OAAO,CAAC,EACpD,IAAI,CAAC,8BAA8B,EAAE,UAAU,CAAC;IACjD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;IACrD,oBAAoB,CAAC,EAAE,cAAc,CACpC,OAAO,cAAc,CACrB,CAAC,kBAAkB,CAAC,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CACrD,2BAA2B,CAmK3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
import type { ThemeTokens as Tokens } from '../../themes';
|
|
4
|
-
import type { ResponsiveProp } from '../../utils/responsiveProps.css';
|
|
1
|
+
import { type FunctionComponent, type ReactNode } from 'react';
|
|
2
|
+
import { Sprinkles } from '../../styles/sprinkles.css';
|
|
5
3
|
import { type BoxProps } from '../Box/Box';
|
|
6
4
|
export interface InlineProps extends Pick<BoxProps, 'as' | 'width'> {
|
|
7
|
-
|
|
8
|
-
alignY?:
|
|
9
|
-
alignX?: BoxProps['justifyContent'];
|
|
10
|
-
noWrap?: boolean;
|
|
5
|
+
alignX?: Sprinkles['justifyContent'];
|
|
6
|
+
alignY?: Sprinkles['alignItems'];
|
|
11
7
|
children: ReactNode;
|
|
12
8
|
dividers?: boolean | ReactNode;
|
|
9
|
+
noWrap?: boolean;
|
|
10
|
+
space?: Sprinkles['gap'];
|
|
13
11
|
}
|
|
14
12
|
export declare const Inline: FunctionComponent<InlineProps>;
|
|
15
|
-
export default Inline;
|
|
16
13
|
//# sourceMappingURL=Inline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../../lib/components/Inline/Inline.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../../lib/components/Inline/Inline.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEb,KAAK,iBAAiB,EAGtB,KAAK,SAAS,EAEd,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAIhD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,OAAO,CAAC;IAIlE,MAAM,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAKrC,MAAM,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAKjC,QAAQ,EAAE,SAAS,CAAC;IAIpB,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,KAAK,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;CACzB;AAkCD,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,WAAW,CAsDjD,CAAC"}
|