@veeqo/ui 14.1.1 → 14.3.0-beta-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/Accordion/styled.cjs +19 -9
- package/dist/components/Accordion/styled.cjs.map +1 -1
- package/dist/components/Accordion/styled.d.ts +9 -23
- package/dist/components/Accordion/styled.js +19 -9
- package/dist/components/Accordion/styled.js.map +1 -1
- package/dist/components/Action/Action.cjs +19 -10
- package/dist/components/Action/Action.cjs.map +1 -1
- package/dist/components/Action/Action.d.ts +66 -19
- package/dist/components/Action/Action.js +19 -11
- package/dist/components/Action/Action.js.map +1 -1
- package/dist/components/Action/styles/button.module.scss.cjs +2 -2
- package/dist/components/Action/styles/button.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/button.module.scss.js +2 -2
- package/dist/components/Action/styles/button.module.scss.js.map +1 -1
- package/dist/components/Action/styles/link.module.scss.cjs +2 -2
- package/dist/components/Action/styles/link.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/link.module.scss.js +2 -2
- package/dist/components/Action/styles/link.module.scss.js.map +1 -1
- package/dist/components/Action/types.d.ts +17 -1
- package/dist/components/Action/utils.cjs +4 -2
- package/dist/components/Action/utils.cjs.map +1 -1
- package/dist/components/Action/utils.d.ts +3 -2
- package/dist/components/Action/utils.js +4 -2
- package/dist/components/Action/utils.js.map +1 -1
- package/dist/components/AnimatedDropdown/components/styled.d.ts +2 -1
- package/dist/components/AnimatedDropdown/styled.d.ts +2 -2
- package/dist/components/Badge/styled.cjs +27 -4
- package/dist/components/Badge/styled.cjs.map +1 -1
- package/dist/components/Badge/styled.d.ts +4 -3
- package/dist/components/Badge/styled.js +27 -4
- package/dist/components/Badge/styled.js.map +1 -1
- package/dist/components/Banner/styled.cjs +27 -8
- package/dist/components/Banner/styled.cjs.map +1 -1
- package/dist/components/Banner/styled.d.ts +7 -7
- package/dist/components/Banner/styled.js +27 -8
- package/dist/components/Banner/styled.js.map +1 -1
- package/dist/components/BaseContainer/BaseContainer.cjs +7 -3
- package/dist/components/BaseContainer/BaseContainer.cjs.map +1 -1
- package/dist/components/BaseContainer/BaseContainer.d.ts +2 -1
- package/dist/components/BaseContainer/BaseContainer.js +6 -2
- package/dist/components/BaseContainer/BaseContainer.js.map +1 -1
- package/dist/components/BaseContainer/BaseContainer.module.scss.cjs +9 -0
- package/dist/components/BaseContainer/BaseContainer.module.scss.cjs.map +1 -0
- package/dist/components/BaseContainer/BaseContainer.module.scss.js +7 -0
- package/dist/components/BaseContainer/BaseContainer.module.scss.js.map +1 -0
- package/dist/components/DataTable/components/ColumnHeader.d.ts +1 -1
- package/dist/components/DimensionsInput/DimensionsInput.cjs +8 -8
- package/dist/components/DimensionsInput/DimensionsInput.cjs.map +1 -1
- package/dist/components/DimensionsInput/DimensionsInput.d.ts +8 -8
- package/dist/components/DimensionsInput/DimensionsInput.js +1 -1
- package/dist/components/FilterTag/styled.d.ts +4 -4
- package/dist/components/Grid/index.cjs +7 -1
- package/dist/components/Grid/index.cjs.map +1 -1
- package/dist/components/Grid/index.d.ts +2 -1
- package/dist/components/Grid/index.js +7 -1
- package/dist/components/Grid/index.js.map +1 -1
- package/dist/components/InputAffix/InputAffix.cjs +3 -4
- package/dist/components/InputAffix/InputAffix.cjs.map +1 -1
- package/dist/components/InputAffix/InputAffix.js +1 -2
- package/dist/components/InputAffix/InputAffix.js.map +1 -1
- package/dist/components/InputGroup/InputGroup.cjs +21 -0
- package/dist/components/InputGroup/InputGroup.cjs.map +1 -0
- package/dist/components/InputGroup/InputGroup.d.ts +2 -0
- package/dist/components/InputGroup/InputGroup.js +15 -0
- package/dist/components/InputGroup/InputGroup.js.map +1 -0
- package/dist/components/InputGroup/InputGroup.module.scss.cjs +9 -0
- package/dist/components/InputGroup/InputGroup.module.scss.cjs.map +1 -0
- package/dist/components/InputGroup/InputGroup.module.scss.js +7 -0
- package/dist/components/InputGroup/InputGroup.module.scss.js.map +1 -0
- package/dist/components/InputGroup/index.d.ts +2 -4
- package/dist/components/InputGroup/types.d.ts +3 -0
- package/dist/components/LegacyDataTable/SpecificState/styled.d.ts +4 -4
- package/dist/components/Pagination/styled.d.ts +8 -8
- package/dist/components/PhoneInput/index.d.ts +8 -8
- package/dist/components/PriceInput/PriceInput.cjs +4 -4
- package/dist/components/PriceInput/PriceInput.cjs.map +1 -1
- package/dist/components/PriceInput/PriceInput.js +1 -1
- package/dist/components/Search/Search.d.ts +8 -8
- package/dist/components/Search/styled.cjs +12 -2
- package/dist/components/Search/styled.cjs.map +1 -1
- package/dist/components/Search/styled.d.ts +9 -9
- package/dist/components/Search/styled.js +12 -2
- package/dist/components/Search/styled.js.map +1 -1
- package/dist/components/SegmentedControl/styled.d.ts +2 -1
- package/dist/components/Stack/Stack.cjs +26 -45
- package/dist/components/Stack/Stack.cjs.map +1 -1
- package/dist/components/Stack/Stack.d.ts +9 -2
- package/dist/components/Stack/Stack.js +25 -44
- package/dist/components/Stack/Stack.js.map +1 -1
- package/dist/components/Stack/Stack.module.scss.cjs +9 -0
- package/dist/components/Stack/Stack.module.scss.cjs.map +1 -0
- package/dist/components/Stack/Stack.module.scss.js +7 -0
- package/dist/components/Stack/Stack.module.scss.js.map +1 -0
- package/dist/components/Stack/types.d.ts +6 -6
- package/dist/components/Stepper/styled.cjs +16 -3
- package/dist/components/Stepper/styled.cjs.map +1 -1
- package/dist/components/Stepper/styled.d.ts +9 -1
- package/dist/components/Stepper/styled.js +16 -3
- package/dist/components/Stepper/styled.js.map +1 -1
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/TextField/TextField.d.ts +8 -8
- package/dist/components/TextField/index.d.ts +8 -8
- package/dist/components/ToastsLayout/components/styled.cjs +37 -4
- package/dist/components/ToastsLayout/components/styled.cjs.map +1 -1
- package/dist/components/ToastsLayout/components/styled.d.ts +26 -5
- package/dist/components/ToastsLayout/components/styled.js +37 -4
- package/dist/components/ToastsLayout/components/styled.js.map +1 -1
- package/dist/components/Toggle/styled.d.ts +2 -1
- package/dist/components/VideoModal/components/styled.d.ts +4 -3
- package/dist/components/View/styled.d.ts +4 -4
- package/dist/components/ViewTab/ViewTab.d.ts +1 -1
- package/dist/components/WeightInput/WeightInput.cjs +8 -8
- package/dist/components/WeightInput/WeightInput.cjs.map +1 -1
- package/dist/components/WeightInput/WeightInput.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/hoc/withClassNames/withClassNames.d.ts +1 -1
- package/dist/hoc/withLabels/styled.d.ts +9 -1
- package/dist/index.cjs +10 -10
- package/dist/index.js +1 -1
- package/dist/utils/forms/inputStyles.cjs +1 -2
- package/dist/utils/forms/inputStyles.cjs.map +1 -1
- package/dist/utils/forms/inputStyles.js +1 -2
- package/dist/utils/forms/inputStyles.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/InputGroup/index.cjs +0 -13
- package/dist/components/InputGroup/index.cjs.map +0 -1
- package/dist/components/InputGroup/index.js +0 -7
- package/dist/components/InputGroup/index.js.map +0 -1
- package/dist/components/Stack/Alignments.cjs +0 -12
- package/dist/components/Stack/Alignments.cjs.map +0 -1
- package/dist/components/Stack/Alignments.js +0 -12
- package/dist/components/Stack/Alignments.js.map +0 -1
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const DimensionsInput: React.ForwardRefExoticComponent<{
|
|
3
|
-
form?: string | undefined;
|
|
4
|
-
slot?: string | undefined;
|
|
5
|
-
style?: React.CSSProperties | undefined;
|
|
6
|
-
title?: string | undefined;
|
|
7
|
-
pattern?: string | undefined;
|
|
8
3
|
rel?: string | undefined;
|
|
9
|
-
placeholder?: string | undefined;
|
|
10
|
-
list?: string | undefined;
|
|
11
4
|
className?: string | undefined;
|
|
12
5
|
children?: React.ReactNode;
|
|
13
6
|
defaultChecked?: boolean | undefined;
|
|
@@ -24,8 +17,12 @@ export declare const DimensionsInput: React.ForwardRefExoticComponent<{
|
|
|
24
17
|
id?: string | undefined;
|
|
25
18
|
lang?: string | undefined;
|
|
26
19
|
nonce?: string | undefined;
|
|
20
|
+
placeholder?: string | undefined;
|
|
21
|
+
slot?: string | undefined;
|
|
27
22
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
23
|
+
style?: React.CSSProperties | undefined;
|
|
28
24
|
tabIndex?: number | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
29
26
|
translate?: "yes" | "no" | undefined;
|
|
30
27
|
radioGroup?: string | undefined;
|
|
31
28
|
role?: React.AriaRole | undefined;
|
|
@@ -51,7 +48,7 @@ export declare const DimensionsInput: React.ForwardRefExoticComponent<{
|
|
|
51
48
|
results?: number | undefined;
|
|
52
49
|
security?: string | undefined;
|
|
53
50
|
unselectable?: "on" | "off" | undefined;
|
|
54
|
-
inputMode?: "
|
|
51
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
55
52
|
is?: string | undefined;
|
|
56
53
|
'aria-activedescendant'?: string | undefined;
|
|
57
54
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -263,6 +260,9 @@ export declare const DimensionsInput: React.ForwardRefExoticComponent<{
|
|
|
263
260
|
onAnimationIterationCapture?: (React.AnimationEventHandler<HTMLInputElement> & React.AnimationEventHandler<HTMLTextAreaElement>) | undefined;
|
|
264
261
|
onTransitionEnd?: (React.TransitionEventHandler<HTMLInputElement> & React.TransitionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
265
262
|
onTransitionEndCapture?: (React.TransitionEventHandler<HTMLInputElement> & React.TransitionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
263
|
+
form?: string | undefined;
|
|
264
|
+
pattern?: string | undefined;
|
|
265
|
+
list?: string | undefined;
|
|
266
266
|
alt?: string | undefined;
|
|
267
267
|
disabled?: boolean | undefined;
|
|
268
268
|
formAction?: string | undefined;
|
|
@@ -5,7 +5,7 @@ import { blockInvalidCharacters } from '../../utils/blockInvalidCharacters.js';
|
|
|
5
5
|
import { InputAffix } from '../InputAffix/InputAffix.js';
|
|
6
6
|
import { TextField } from '../TextField/index.js';
|
|
7
7
|
import { Stack } from '../Stack/Stack.js';
|
|
8
|
-
import { InputGroup } from '../InputGroup/
|
|
8
|
+
import { InputGroup } from '../InputGroup/InputGroup.js';
|
|
9
9
|
|
|
10
10
|
const blockInvalidChars = (e) => blockInvalidCharacters(e, invalidCharsList);
|
|
11
11
|
const styles = {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Text } from '../Text';
|
|
3
3
|
import { AnimatedDropdown } from '../AnimatedDropdown';
|
|
4
|
-
declare const Container: import("styled-components").StyledComponent<"
|
|
4
|
+
declare const Container: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {
|
|
5
5
|
as: string;
|
|
6
6
|
}, "as">;
|
|
7
7
|
declare const GroupLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
8
8
|
as?: import("../Text").ValidTextTag | undefined;
|
|
9
9
|
muted?: boolean | undefined;
|
|
10
|
-
variant?: "
|
|
10
|
+
variant?: "placeholder" | "link" | "body" | "button" | "headingXXL" | "headingXL" | "headingLarge" | "headingMedium" | "headingSmall" | "headingTable" | "subheadingLarge" | "subheadingMedium" | "subheadingSmall" | "subheadingSmallBold" | "bodySmall" | "bodyBold" | "bodyBoldDark" | "bodySmallBold" | "inputLabel" | "inputLabelSmall" | "hintText" | "placeholderSmall" | "placeholderCode" | "placeholderCodeSmall" | "error" | "errorSmall" | "successSmall" | "buttonSmall" | "linkLarge" | "linkMedium" | "linkSmall" | undefined;
|
|
11
11
|
} & import("react").HTMLAttributes<HTMLElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
12
12
|
declare const MainIcon: import("styled-components").StyledComponent<(props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element, any, {
|
|
13
13
|
$shouldShow?: boolean | undefined;
|
|
14
14
|
}, never>;
|
|
15
15
|
declare const StyledCrossIcon: import("styled-components").StyledComponent<(props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element, any, {}, never>;
|
|
16
|
-
declare const Content: import("styled-components").StyledComponent<"
|
|
17
|
-
declare const Header: import("styled-components").StyledComponent<"
|
|
16
|
+
declare const Content: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
17
|
+
declare const Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {
|
|
18
18
|
color: string;
|
|
19
19
|
}, never>;
|
|
20
20
|
export { Container, Text, AnimatedDropdown as Dropdown, GroupLabel, Content, Header, MainIcon, StyledCrossIcon as CrossIcon, };
|
|
@@ -8,7 +8,13 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
|
|
9
9
|
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
10
10
|
|
|
11
|
-
const Grid = styled__default.default(BaseContainer.BaseContainer).withConfig({
|
|
11
|
+
const Grid = styled__default.default(BaseContainer.BaseContainer).withConfig({
|
|
12
|
+
shouldForwardProp: (prop) => !['columns', 'spacing'].includes(prop),
|
|
13
|
+
}) `
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template-columns: repeat(${({ columns }) => columns}, 1fr);
|
|
16
|
+
grid-gap: ${({ spacing = 'base' }) => (spacing ? sizes.sizes[spacing] : 0)};
|
|
17
|
+
`;
|
|
12
18
|
|
|
13
19
|
exports.Grid = Grid;
|
|
14
20
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/Grid/index.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { BaseContainer } from '../BaseContainer';\nimport { sizes } from '../../theme/modules/sizes';\n\nimport { GridProps } from './types';\n\nexport const Grid = styled(BaseContainer)<GridProps>`\n display: grid;\n grid-template-columns: repeat(${({ columns }) => columns}, 1fr);\n grid-gap: ${({ spacing = 'base' }) => (spacing ? sizes[spacing] : 0)};\n`;\n"],"names":["styled","BaseContainer","sizes"],"mappings":";;;;;;;;;;AAOO,MAAM,IAAI,GAAGA,uBAAM,CAACC,2BAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/Grid/index.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { BaseContainer } from '../BaseContainer';\nimport { sizes } from '../../theme/modules/sizes';\n\nimport { GridProps } from './types';\n\nexport const Grid = styled(BaseContainer).withConfig({\n shouldForwardProp: (prop) => !['columns', 'spacing'].includes(prop),\n})<GridProps>`\n display: grid;\n grid-template-columns: repeat(${({ columns }) => columns}, 1fr);\n grid-gap: ${({ spacing = 'base' }) => (spacing ? sizes[spacing] : 0)};\n`;\n"],"names":["styled","BaseContainer","sizes"],"mappings":";;;;;;;;;;AAOO,MAAM,IAAI,GAAGA,uBAAM,CAACC,2BAAa,CAAC,CAAC,UAAU,CAAC;AACnD,IAAA,iBAAiB,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;AACpE,CAAA,CAAC,CAAW;;AAEqB,gCAAA,EAAA,CAAC,EAAE,OAAO,EAAE,KAAK,OAAO,CAAA;cAC5C,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,MAAM,OAAO,GAAGC,WAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA;;;;;"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { GridProps } from './types';
|
|
2
|
-
export declare const Grid: import("styled-components").StyledComponent<"
|
|
3
|
+
export declare const Grid: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, GridProps, never>;
|
|
@@ -2,7 +2,13 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { BaseContainer } from '../BaseContainer/BaseContainer.js';
|
|
3
3
|
import { sizes } from '../../theme/modules/sizes.js';
|
|
4
4
|
|
|
5
|
-
const Grid = styled(BaseContainer).withConfig({
|
|
5
|
+
const Grid = styled(BaseContainer).withConfig({
|
|
6
|
+
shouldForwardProp: (prop) => !['columns', 'spacing'].includes(prop),
|
|
7
|
+
}) `
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: repeat(${({ columns }) => columns}, 1fr);
|
|
10
|
+
grid-gap: ${({ spacing = 'base' }) => (spacing ? sizes[spacing] : 0)};
|
|
11
|
+
`;
|
|
6
12
|
|
|
7
13
|
export { Grid };
|
|
8
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Grid/index.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { BaseContainer } from '../BaseContainer';\nimport { sizes } from '../../theme/modules/sizes';\n\nimport { GridProps } from './types';\n\nexport const Grid = styled(BaseContainer)<GridProps>`\n display: grid;\n grid-template-columns: repeat(${({ columns }) => columns}, 1fr);\n grid-gap: ${({ spacing = 'base' }) => (spacing ? sizes[spacing] : 0)};\n`;\n"],"names":[],"mappings":";;;;AAOO,MAAM,IAAI,GAAG,MAAM,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Grid/index.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { BaseContainer } from '../BaseContainer';\nimport { sizes } from '../../theme/modules/sizes';\n\nimport { GridProps } from './types';\n\nexport const Grid = styled(BaseContainer).withConfig({\n shouldForwardProp: (prop) => !['columns', 'spacing'].includes(prop),\n})<GridProps>`\n display: grid;\n grid-template-columns: repeat(${({ columns }) => columns}, 1fr);\n grid-gap: ${({ spacing = 'base' }) => (spacing ? sizes[spacing] : 0)};\n`;\n"],"names":[],"mappings":";;;;AAOO,MAAM,IAAI,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC;AACnD,IAAA,iBAAiB,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;AACpE,CAAA,CAAC,CAAW;;AAEqB,gCAAA,EAAA,CAAC,EAAE,OAAO,EAAE,KAAK,OAAO,CAAA;cAC5C,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA;;;;;"}
|
|
@@ -3,17 +3,16 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var styled = require('styled-components');
|
|
5
5
|
var inputStyles = require('../../utils/forms/inputStyles.cjs');
|
|
6
|
-
var index
|
|
6
|
+
var index = require('../../theme/index.cjs');
|
|
7
7
|
var Text = require('../Text/Text.cjs');
|
|
8
|
-
var index = require('../InputGroup/index.cjs');
|
|
9
8
|
|
|
10
9
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
10
|
|
|
12
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
12
|
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
14
13
|
|
|
15
|
-
const Container = styled__default.default.div.withConfig({ displayName: "vui--Container", componentId: "vui--zm6t34" }) `user-select:none;flex-shrink:0;${inputStyles.inputFullStyles}
|
|
16
|
-
const StyledHint = styled__default.default(Text.Text).attrs({ variant: 'hintText' }).withConfig({ displayName: "vui--StyledHint", componentId: "vui--8xnkei" }) `font-size:${index
|
|
14
|
+
const Container = styled__default.default.div.withConfig({ displayName: "vui--Container", componentId: "vui--zm6t34" }) `user-select:none;flex-shrink:0;${inputStyles.inputFullStyles} [data-input-group]:has(:disabled)&{background-color:${index.theme.colors.neutral.grey.light};}`;
|
|
15
|
+
const StyledHint = styled__default.default(Text.Text).attrs({ variant: 'hintText' }).withConfig({ displayName: "vui--StyledHint", componentId: "vui--8xnkei" }) `font-size:${index.theme.text.body.fontSize};`;
|
|
17
16
|
function InputAffix({ children, ...otherProps }) {
|
|
18
17
|
return (React__default.default.createElement(Container, { ...otherProps },
|
|
19
18
|
React__default.default.createElement(StyledHint, { variant: "hintText" }, children)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputAffix.cjs","sources":["../../../src/components/InputAffix/InputAffix.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { inputFullStyles } from '../../utils/forms/inputStyles';\nimport { theme } from '../../theme';\nimport { Text } from '../Text';\nimport {
|
|
1
|
+
{"version":3,"file":"InputAffix.cjs","sources":["../../../src/components/InputAffix/InputAffix.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { inputFullStyles } from '../../utils/forms/inputStyles';\nimport { theme } from '../../theme';\nimport { Text } from '../Text';\nimport { FormComponentProps } from '../types';\n\nexport type InputAffixProps = React.HTMLAttributes<HTMLDivElement> & FormComponentProps;\n\nconst Container = styled.div<InputAffixProps>`\n user-select: none;\n flex-shrink: 0;\n\n ${inputFullStyles}\n\n [data-input-group]:has(:disabled) & {\n background-color: ${theme.colors.neutral.grey.light};\n }\n`;\n\nconst StyledHint = styled(Text).attrs({ variant: 'hintText' })`\n font-size: ${theme.text.body.fontSize};\n`;\n\nexport function InputAffix({ children, ...otherProps }: InputAffixProps) {\n return (\n <Container {...otherProps}>\n <StyledHint variant=\"hintText\">{children}</StyledHint>\n </Container>\n );\n}\n\nInputAffix.Container = Container;\n"],"names":["styled","inputFullStyles","theme","Text","React"],"mappings":";;;;;;;;;;;;;AASA,MAAM,SAAS,GAAGA,uBAAM,CAAC,GAAG,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,+BAAA,EAIxBC,2BAAe,CAAA,qDAAA,EAGKC,WAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,IAEtD;AAED,MAAM,UAAU,GAAGF,uBAAM,CAACG,SAAI,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,UAAA,EAC/CD,WAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAA,CAAA,CACtC;AAEK,SAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAmB,EAAA;AACrE,IAAA,QACEE,sBAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GAAK,UAAU,EAAA;QACvBA,sBAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,OAAO,EAAC,UAAU,IAAE,QAAQ,CAAc,CAC5C;AAEhB;AAEA,UAAU,CAAC,SAAS,GAAG,SAAS;;;;"}
|
|
@@ -3,9 +3,8 @@ import styled from 'styled-components';
|
|
|
3
3
|
import { inputFullStyles } from '../../utils/forms/inputStyles.js';
|
|
4
4
|
import { theme } from '../../theme/index.js';
|
|
5
5
|
import { Text } from '../Text/Text.js';
|
|
6
|
-
import { InputGroup } from '../InputGroup/index.js';
|
|
7
6
|
|
|
8
|
-
const Container = styled.div.withConfig({ displayName: "vui--Container", componentId: "vui--zm6t34" }) `user-select:none;flex-shrink:0;${inputFullStyles}
|
|
7
|
+
const Container = styled.div.withConfig({ displayName: "vui--Container", componentId: "vui--zm6t34" }) `user-select:none;flex-shrink:0;${inputFullStyles} [data-input-group]:has(:disabled)&{background-color:${theme.colors.neutral.grey.light};}`;
|
|
9
8
|
const StyledHint = styled(Text).attrs({ variant: 'hintText' }).withConfig({ displayName: "vui--StyledHint", componentId: "vui--8xnkei" }) `font-size:${theme.text.body.fontSize};`;
|
|
10
9
|
function InputAffix({ children, ...otherProps }) {
|
|
11
10
|
return (React__default.createElement(Container, { ...otherProps },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputAffix.js","sources":["../../../src/components/InputAffix/InputAffix.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { inputFullStyles } from '../../utils/forms/inputStyles';\nimport { theme } from '../../theme';\nimport { Text } from '../Text';\nimport {
|
|
1
|
+
{"version":3,"file":"InputAffix.js","sources":["../../../src/components/InputAffix/InputAffix.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { inputFullStyles } from '../../utils/forms/inputStyles';\nimport { theme } from '../../theme';\nimport { Text } from '../Text';\nimport { FormComponentProps } from '../types';\n\nexport type InputAffixProps = React.HTMLAttributes<HTMLDivElement> & FormComponentProps;\n\nconst Container = styled.div<InputAffixProps>`\n user-select: none;\n flex-shrink: 0;\n\n ${inputFullStyles}\n\n [data-input-group]:has(:disabled) & {\n background-color: ${theme.colors.neutral.grey.light};\n }\n`;\n\nconst StyledHint = styled(Text).attrs({ variant: 'hintText' })`\n font-size: ${theme.text.body.fontSize};\n`;\n\nexport function InputAffix({ children, ...otherProps }: InputAffixProps) {\n return (\n <Container {...otherProps}>\n <StyledHint variant=\"hintText\">{children}</StyledHint>\n </Container>\n );\n}\n\nInputAffix.Container = Container;\n"],"names":["React"],"mappings":";;;;;;AASA,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,+BAAA,EAIxB,eAAe,CAAA,qDAAA,EAGK,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,IAEtD;AAED,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,UAAA,EAC/C,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAA,CAAA,CACtC;AAEK,SAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAmB,EAAA;AACrE,IAAA,QACEA,cAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GAAK,UAAU,EAAA;QACvBA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,OAAO,EAAC,UAAU,IAAE,QAAQ,CAAc,CAC5C;AAEhB;AAEA,UAAU,CAAC,SAAS,GAAG,SAAS;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var buildClassnames = require('../../utils/buildClassnames.cjs');
|
|
5
|
+
require('uid/secure');
|
|
6
|
+
var InputGroup_module = require('./InputGroup.module.scss.cjs');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
+
|
|
12
|
+
const InputGroup = React__default.default.forwardRef(({ hasError, disabled, compact, className, children, ...rest }, ref) => (React__default.default.createElement("div", { className: buildClassnames.buildClassnames([
|
|
13
|
+
InputGroup_module.base,
|
|
14
|
+
hasError ? InputGroup_module.error : undefined,
|
|
15
|
+
compact ? InputGroup_module.compact : undefined,
|
|
16
|
+
className,
|
|
17
|
+
]), ...rest, "data-input-group": true, ref: ref }, children)));
|
|
18
|
+
InputGroup.displayName = 'InputGroup';
|
|
19
|
+
|
|
20
|
+
exports.InputGroup = InputGroup;
|
|
21
|
+
//# sourceMappingURL=InputGroup.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroup.cjs","sources":["../../../src/components/InputGroup/InputGroup.tsx"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport styles from './InputGroup.module.scss';\nimport { InputGroupProps } from './types';\n\nexport const InputGroup = React.forwardRef<HTMLDivElement, InputGroupProps>(\n ({ hasError, disabled, compact, className, children, ...rest }, ref) => (\n <div\n className={buildClassnames([\n styles.base,\n hasError ? styles.error : undefined,\n compact ? styles.compact : undefined,\n className,\n ])}\n {...rest}\n data-input-group\n ref={ref}\n >\n {children}\n </div>\n ),\n);\n\nInputGroup.displayName = 'InputGroup';\n"],"names":["React","buildClassnames","styles"],"mappings":";;;;;;;;;;;AAKO,MAAM,UAAU,GAAGA,sBAAK,CAAC,UAAU,CACxC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,MACjEA,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAEC,+BAAe,CAAC;AACzB,QAAAC,iBAAM,CAAC,IAAI;QACX,QAAQ,GAAGA,iBAAM,CAAC,KAAK,GAAG,SAAS;QACnC,OAAO,GAAGA,iBAAM,CAAC,OAAO,GAAG,SAAS;QACpC,SAAS;KACV,CAAC,EAAA,GACE,IAAI,EAAA,kBAAA,EAAA,IAAA,EAER,GAAG,EAAE,GAAG,EAAA,EAEP,QAAQ,CACL,CACP;AAGH,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { buildClassnames } from '../../utils/buildClassnames.js';
|
|
3
|
+
import 'uid/secure';
|
|
4
|
+
import styles from './InputGroup.module.scss.js';
|
|
5
|
+
|
|
6
|
+
const InputGroup = React__default.forwardRef(({ hasError, disabled, compact, className, children, ...rest }, ref) => (React__default.createElement("div", { className: buildClassnames([
|
|
7
|
+
styles.base,
|
|
8
|
+
hasError ? styles.error : undefined,
|
|
9
|
+
compact ? styles.compact : undefined,
|
|
10
|
+
className,
|
|
11
|
+
]), ...rest, "data-input-group": true, ref: ref }, children)));
|
|
12
|
+
InputGroup.displayName = 'InputGroup';
|
|
13
|
+
|
|
14
|
+
export { InputGroup };
|
|
15
|
+
//# sourceMappingURL=InputGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroup.js","sources":["../../../src/components/InputGroup/InputGroup.tsx"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport styles from './InputGroup.module.scss';\nimport { InputGroupProps } from './types';\n\nexport const InputGroup = React.forwardRef<HTMLDivElement, InputGroupProps>(\n ({ hasError, disabled, compact, className, children, ...rest }, ref) => (\n <div\n className={buildClassnames([\n styles.base,\n hasError ? styles.error : undefined,\n compact ? styles.compact : undefined,\n className,\n ])}\n {...rest}\n data-input-group\n ref={ref}\n >\n {children}\n </div>\n ),\n);\n\nInputGroup.displayName = 'InputGroup';\n"],"names":["React"],"mappings":";;;;;AAKO,MAAM,UAAU,GAAGA,cAAK,CAAC,UAAU,CACxC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,MACjEA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,eAAe,CAAC;AACzB,QAAA,MAAM,CAAC,IAAI;QACX,QAAQ,GAAG,MAAM,CAAC,KAAK,GAAG,SAAS;QACnC,OAAO,GAAG,MAAM,CAAC,OAAO,GAAG,SAAS;QACpC,SAAS;KACV,CAAC,EAAA,GACE,IAAI,EAAA,kBAAA,EAAA,IAAA,EAER,GAAG,EAAE,GAAG,EAAA,EAEP,QAAQ,CACL,CACP;AAGH,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ___$insertStyle = require('../../_virtual/____insertStyle.cjs');
|
|
4
|
+
|
|
5
|
+
___$insertStyle("._base_1wk6x_1 {\n --padding: var(--sizes-3);\n --padding-right: var(--padding);\n --outline-size: var(--sizes-xs);\n --border-color: var(--colors-neutral-ink-lightest);\n --shadow-color: var(--colors-secondary-blue-light);\n display: flex;\n /* Remove inline margins and shadows from all children.\n !important needed because SC-based children (e.g. Button) inject\n their box-shadow dynamically after CSS Module static styles. */\n /* Bring in-focus and active children to the front to maintain outlines */\n /* Remove inline borders for children in the middle */\n /* Remove right border radius from first child */\n /* Remove left border radius from last child */\n}\n._base_1wk6x_1 > * {\n margin-left: 0;\n margin-right: 0;\n box-shadow: none !important;\n}\n._base_1wk6x_1 > *:focus, ._base_1wk6x_1 > *:active {\n z-index: 5;\n}\n._base_1wk6x_1 > *:not(:first-child):not(:last-child) {\n border-radius: 0 !important;\n border-inline: 0 !important;\n}\n._base_1wk6x_1 > *:first-child {\n border-top-right-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n border-right: 0 !important;\n}\n._base_1wk6x_1 > *:last-child {\n border-top-left-radius: 0 !important;\n border-bottom-left-radius: 0 !important;\n border-left: 0 !important;\n}\n\n._error_1wk6x_39 {\n --border-color: var(--colors-secondary-red-base);\n --shadow-color: var(--colors-secondary-red-light);\n}\n\n._compact_1wk6x_44 {\n --outline-size: 2px;\n}");
|
|
6
|
+
var styles = {"base":"_base_1wk6x_1","error":"_error_1wk6x_39","compact":"_compact_1wk6x_44"};
|
|
7
|
+
|
|
8
|
+
module.exports = styles;
|
|
9
|
+
//# sourceMappingURL=InputGroup.module.scss.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroup.module.scss.cjs","sources":["../../../src/components/InputGroup/InputGroup.module.scss"],"sourcesContent":[".base {\n --padding: var(--sizes-3);\n --padding-right: var(--padding);\n --outline-size: var(--sizes-xs);\n --border-color: var(--colors-neutral-ink-lightest);\n --shadow-color: var(--colors-secondary-blue-light);\n\n display: flex;\n\n /* Remove inline margins and shadows from all children.\n !important needed because SC-based children (e.g. Button) inject\n their box-shadow dynamically after CSS Module static styles. */\n & > * {\n margin-left: 0;\n margin-right: 0;\n box-shadow: none !important;\n }\n\n /* Bring in-focus and active children to the front to maintain outlines */\n & > *:focus,\n & > *:active {\n z-index: 5;\n }\n\n /* Remove inline borders for children in the middle */\n & > *:not(:first-child):not(:last-child) {\n border-radius: 0 !important;\n border-inline: 0 !important;\n }\n\n /* Remove right border radius from first child */\n & > *:first-child {\n border-top-right-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n border-right: 0 !important;\n }\n\n /* Remove left border radius from last child */\n & > *:last-child {\n border-top-left-radius: 0 !important;\n border-bottom-left-radius: 0 !important;\n border-left: 0 !important;\n }\n}\n\n.error {\n --border-color: var(--colors-secondary-red-base);\n --shadow-color: var(--colors-secondary-red-light);\n}\n\n.compact {\n --outline-size: 2px;\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,i8CAAA;AACA,aAAA,CAAA,MAAA,CAAA,eAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,SAAA,CAAA,mBAAA;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import insertStyle from '../../_virtual/____insertStyle.js';
|
|
2
|
+
|
|
3
|
+
insertStyle("._base_1wk6x_1 {\n --padding: var(--sizes-3);\n --padding-right: var(--padding);\n --outline-size: var(--sizes-xs);\n --border-color: var(--colors-neutral-ink-lightest);\n --shadow-color: var(--colors-secondary-blue-light);\n display: flex;\n /* Remove inline margins and shadows from all children.\n !important needed because SC-based children (e.g. Button) inject\n their box-shadow dynamically after CSS Module static styles. */\n /* Bring in-focus and active children to the front to maintain outlines */\n /* Remove inline borders for children in the middle */\n /* Remove right border radius from first child */\n /* Remove left border radius from last child */\n}\n._base_1wk6x_1 > * {\n margin-left: 0;\n margin-right: 0;\n box-shadow: none !important;\n}\n._base_1wk6x_1 > *:focus, ._base_1wk6x_1 > *:active {\n z-index: 5;\n}\n._base_1wk6x_1 > *:not(:first-child):not(:last-child) {\n border-radius: 0 !important;\n border-inline: 0 !important;\n}\n._base_1wk6x_1 > *:first-child {\n border-top-right-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n border-right: 0 !important;\n}\n._base_1wk6x_1 > *:last-child {\n border-top-left-radius: 0 !important;\n border-bottom-left-radius: 0 !important;\n border-left: 0 !important;\n}\n\n._error_1wk6x_39 {\n --border-color: var(--colors-secondary-red-base);\n --shadow-color: var(--colors-secondary-red-light);\n}\n\n._compact_1wk6x_44 {\n --outline-size: 2px;\n}");
|
|
4
|
+
var styles = {"base":"_base_1wk6x_1","error":"_error_1wk6x_39","compact":"_compact_1wk6x_44"};
|
|
5
|
+
|
|
6
|
+
export { styles as default };
|
|
7
|
+
//# sourceMappingURL=InputGroup.module.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroup.module.scss.js","sources":["../../../src/components/InputGroup/InputGroup.module.scss"],"sourcesContent":[".base {\n --padding: var(--sizes-3);\n --padding-right: var(--padding);\n --outline-size: var(--sizes-xs);\n --border-color: var(--colors-neutral-ink-lightest);\n --shadow-color: var(--colors-secondary-blue-light);\n\n display: flex;\n\n /* Remove inline margins and shadows from all children.\n !important needed because SC-based children (e.g. Button) inject\n their box-shadow dynamically after CSS Module static styles. */\n & > * {\n margin-left: 0;\n margin-right: 0;\n box-shadow: none !important;\n }\n\n /* Bring in-focus and active children to the front to maintain outlines */\n & > *:focus,\n & > *:active {\n z-index: 5;\n }\n\n /* Remove inline borders for children in the middle */\n & > *:not(:first-child):not(:last-child) {\n border-radius: 0 !important;\n border-inline: 0 !important;\n }\n\n /* Remove right border radius from first child */\n & > *:first-child {\n border-top-right-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n border-right: 0 !important;\n }\n\n /* Remove left border radius from last child */\n & > *:last-child {\n border-top-left-radius: 0 !important;\n border-bottom-left-radius: 0 !important;\n border-left: 0 !important;\n }\n}\n\n.error {\n --border-color: var(--colors-secondary-red-base);\n --shadow-color: var(--colors-secondary-red-light);\n}\n\n.compact {\n --outline-size: 2px;\n}\n"],"names":["___$insertStyle"],"mappings":";;AACEA,WAAA,CAAA,i8CAAA;AACA,aAAA,CAAA,MAAA,CAAA,eAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,SAAA,CAAA,mBAAA;;;;"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type InputGroupProps = React.HTMLAttributes<HTMLDivElement> & FormComponentProps;
|
|
4
|
-
export declare const InputGroup: import("styled-components").StyledComponent<"div", any, import("react").HTMLAttributes<HTMLDivElement> & FormComponentProps, never>;
|
|
1
|
+
export { InputGroup } from './InputGroup';
|
|
2
|
+
export type { InputGroupProps } from './types';
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
type SpecificStateContainerPropTypes = {
|
|
3
3
|
height: number;
|
|
4
4
|
};
|
|
5
|
-
declare const SpecificStateContainer: import("styled-components").StyledComponent<"
|
|
6
|
-
declare const EllipseContainer: import("styled-components").StyledComponent<"
|
|
5
|
+
declare const SpecificStateContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, SpecificStateContainerPropTypes, never>;
|
|
6
|
+
declare const EllipseContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
7
7
|
declare const TitleText: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
8
8
|
as?: import("../../Text").ValidTextTag | undefined;
|
|
9
9
|
muted?: boolean | undefined;
|
|
10
|
-
variant?: "
|
|
10
|
+
variant?: "placeholder" | "link" | "body" | "button" | "headingXXL" | "headingXL" | "headingLarge" | "headingMedium" | "headingSmall" | "headingTable" | "subheadingLarge" | "subheadingMedium" | "subheadingSmall" | "subheadingSmallBold" | "bodySmall" | "bodyBold" | "bodyBoldDark" | "bodySmallBold" | "inputLabel" | "inputLabelSmall" | "hintText" | "placeholderSmall" | "placeholderCode" | "placeholderCodeSmall" | "error" | "errorSmall" | "successSmall" | "buttonSmall" | "linkLarge" | "linkMedium" | "linkSmall" | undefined;
|
|
11
11
|
} & import("react").HTMLAttributes<HTMLElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
12
12
|
declare const SubTitleText: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
13
13
|
as?: import("../../Text").ValidTextTag | undefined;
|
|
14
14
|
muted?: boolean | undefined;
|
|
15
|
-
variant?: "
|
|
15
|
+
variant?: "placeholder" | "link" | "body" | "button" | "headingXXL" | "headingXL" | "headingLarge" | "headingMedium" | "headingSmall" | "headingTable" | "subheadingLarge" | "subheadingMedium" | "subheadingSmall" | "subheadingSmallBold" | "bodySmall" | "bodyBold" | "bodyBoldDark" | "bodySmallBold" | "inputLabel" | "inputLabelSmall" | "hintText" | "placeholderSmall" | "placeholderCode" | "placeholderCodeSmall" | "error" | "errorSmall" | "successSmall" | "buttonSmall" | "linkLarge" | "linkMedium" | "linkSmall" | undefined;
|
|
16
16
|
} & import("react").HTMLAttributes<HTMLElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
17
17
|
export { SpecificStateContainer, EllipseContainer, TitleText, SubTitleText };
|
|
@@ -16,14 +16,7 @@ export declare const PaginationButton: import("styled-components").StyledCompone
|
|
|
16
16
|
contentStyles?: import("react").CSSProperties | undefined;
|
|
17
17
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("../../hoc/withTokens").WithTokensProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
18
18
|
export declare const PageInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<{
|
|
19
|
-
form?: string | undefined;
|
|
20
|
-
slot?: string | undefined;
|
|
21
|
-
style?: import("react").CSSProperties | undefined;
|
|
22
|
-
title?: string | undefined;
|
|
23
|
-
pattern?: string | undefined;
|
|
24
19
|
rel?: string | undefined;
|
|
25
|
-
placeholder?: string | undefined;
|
|
26
|
-
list?: string | undefined;
|
|
27
20
|
className?: string | undefined;
|
|
28
21
|
children?: import("react").ReactNode;
|
|
29
22
|
defaultChecked?: boolean | undefined;
|
|
@@ -40,8 +33,12 @@ export declare const PageInput: import("styled-components").StyledComponent<impo
|
|
|
40
33
|
id?: string | undefined;
|
|
41
34
|
lang?: string | undefined;
|
|
42
35
|
nonce?: string | undefined;
|
|
36
|
+
placeholder?: string | undefined;
|
|
37
|
+
slot?: string | undefined;
|
|
43
38
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
39
|
+
style?: import("react").CSSProperties | undefined;
|
|
44
40
|
tabIndex?: number | undefined;
|
|
41
|
+
title?: string | undefined;
|
|
45
42
|
translate?: "yes" | "no" | undefined;
|
|
46
43
|
radioGroup?: string | undefined;
|
|
47
44
|
role?: import("react").AriaRole | undefined;
|
|
@@ -67,7 +64,7 @@ export declare const PageInput: import("styled-components").StyledComponent<impo
|
|
|
67
64
|
results?: number | undefined;
|
|
68
65
|
security?: string | undefined;
|
|
69
66
|
unselectable?: "on" | "off" | undefined;
|
|
70
|
-
inputMode?: "
|
|
67
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
71
68
|
is?: string | undefined;
|
|
72
69
|
'aria-activedescendant'?: string | undefined;
|
|
73
70
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -279,6 +276,9 @@ export declare const PageInput: import("styled-components").StyledComponent<impo
|
|
|
279
276
|
onAnimationIterationCapture?: (import("react").AnimationEventHandler<HTMLInputElement> & import("react").AnimationEventHandler<HTMLTextAreaElement>) | undefined;
|
|
280
277
|
onTransitionEnd?: (import("react").TransitionEventHandler<HTMLInputElement> & import("react").TransitionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
281
278
|
onTransitionEndCapture?: (import("react").TransitionEventHandler<HTMLInputElement> & import("react").TransitionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
279
|
+
form?: string | undefined;
|
|
280
|
+
pattern?: string | undefined;
|
|
281
|
+
list?: string | undefined;
|
|
282
282
|
alt?: string | undefined;
|
|
283
283
|
disabled?: boolean | undefined;
|
|
284
284
|
formAction?: string | undefined;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const PhoneInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
form?: string | undefined;
|
|
4
|
-
slot?: string | undefined;
|
|
5
|
-
style?: import("react").CSSProperties | undefined;
|
|
6
|
-
title?: string | undefined;
|
|
7
|
-
pattern?: string | undefined;
|
|
8
3
|
rel?: string | undefined;
|
|
9
|
-
placeholder?: string | undefined;
|
|
10
|
-
list?: string | undefined;
|
|
11
4
|
className?: string | undefined;
|
|
12
5
|
children?: import("react").ReactNode;
|
|
13
6
|
defaultChecked?: boolean | undefined;
|
|
@@ -24,8 +17,12 @@ export declare const PhoneInput: import("react").ForwardRefExoticComponent<{
|
|
|
24
17
|
id?: string | undefined;
|
|
25
18
|
lang?: string | undefined;
|
|
26
19
|
nonce?: string | undefined;
|
|
20
|
+
placeholder?: string | undefined;
|
|
21
|
+
slot?: string | undefined;
|
|
27
22
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
23
|
+
style?: import("react").CSSProperties | undefined;
|
|
28
24
|
tabIndex?: number | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
29
26
|
translate?: "yes" | "no" | undefined;
|
|
30
27
|
radioGroup?: string | undefined;
|
|
31
28
|
role?: import("react").AriaRole | undefined;
|
|
@@ -51,7 +48,7 @@ export declare const PhoneInput: import("react").ForwardRefExoticComponent<{
|
|
|
51
48
|
results?: number | undefined;
|
|
52
49
|
security?: string | undefined;
|
|
53
50
|
unselectable?: "on" | "off" | undefined;
|
|
54
|
-
inputMode?: "
|
|
51
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
55
52
|
is?: string | undefined;
|
|
56
53
|
'aria-activedescendant'?: string | undefined;
|
|
57
54
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -263,6 +260,9 @@ export declare const PhoneInput: import("react").ForwardRefExoticComponent<{
|
|
|
263
260
|
onAnimationIterationCapture?: (import("react").AnimationEventHandler<HTMLInputElement> & import("react").AnimationEventHandler<HTMLTextAreaElement>) | undefined;
|
|
264
261
|
onTransitionEnd?: (import("react").TransitionEventHandler<HTMLInputElement> & import("react").TransitionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
265
262
|
onTransitionEndCapture?: (import("react").TransitionEventHandler<HTMLInputElement> & import("react").TransitionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
263
|
+
form?: string | undefined;
|
|
264
|
+
pattern?: string | undefined;
|
|
265
|
+
list?: string | undefined;
|
|
266
266
|
alt?: string | undefined;
|
|
267
267
|
disabled?: boolean | undefined;
|
|
268
268
|
formAction?: string | undefined;
|
|
@@ -4,8 +4,8 @@ var React = require('react');
|
|
|
4
4
|
var withLabels = require('../../hoc/withLabels/withLabels.cjs');
|
|
5
5
|
var Stepper = require('../Stepper/Stepper.cjs');
|
|
6
6
|
var InputAffix = require('../InputAffix/InputAffix.cjs');
|
|
7
|
-
var
|
|
8
|
-
var index
|
|
7
|
+
var InputGroup = require('../InputGroup/InputGroup.cjs');
|
|
8
|
+
var index = require('../TextField/index.cjs');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
@@ -53,9 +53,9 @@ const PriceInput = withLabels.withLabels(({ className = '', hasError, currency,
|
|
|
53
53
|
handleDecrement(onChange);
|
|
54
54
|
};
|
|
55
55
|
const compact = size === 'sm';
|
|
56
|
-
return (React__default.default.createElement(
|
|
56
|
+
return (React__default.default.createElement(InputGroup.InputGroup, { hasError: hasError, style: flexStyle, className: className },
|
|
57
57
|
React__default.default.createElement(InputAffix.InputAffix, { compact: compact, hasError: hasError }, currency),
|
|
58
|
-
React__default.default.createElement(index
|
|
58
|
+
React__default.default.createElement(index.TextField, { placeholder: "0.00", value: priceValue, step: step, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, disabled: disabled, size: size, hasError: hasError, style: flexStyle, ...otherProps }),
|
|
59
59
|
React__default.default.createElement(Stepper.Stepper, { onIncrement: () => handleIncrement(), onDecrement: () => handleDecrement(), disabled: disabled, hasError: hasError, size: size })));
|
|
60
60
|
});
|
|
61
61
|
PriceInput.displayName = 'PriceInput';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceInput.cjs","sources":["../../../src/components/PriceInput/PriceInput.tsx"],"sourcesContent":["import React from 'react';\n\nimport { withLabels } from '../../hoc';\nimport { PriceInputProps } from './types';\n\nimport { Stepper } from '../Stepper';\nimport { InputAffix } from '../InputAffix';\nimport { InputGroup } from '../InputGroup';\nimport { TextField, TextFieldProps } from '../TextField';\n\nconst fractionDigits = 2;\n\nconst flexStyle = { flex: 1 };\n\nfunction stringToFixed(price: string) {\n const floatPrice = parseFloat(price.replace(',', '.'));\n return floatPrice.toFixed(fractionDigits);\n}\n\nexport const PriceInput = withLabels<PriceInputProps>(\n ({\n className = '',\n hasError,\n currency,\n disabled = false,\n onChange,\n onPriceChange,\n priceValue,\n step = '0.1',\n size = 'base',\n ...otherProps\n }) => {\n const handleChange = (value: string) =>\n onChange(value.replace(/[a-zA-Z]/g, '').replace(',', '.'));\n\n const handleBlur: TextFieldProps['onBlur'] = (e) => {\n const target = e.target as HTMLInputElement;\n const { value } = target;\n\n if (!value) {\n onPriceChange('');\n\n return;\n }\n\n const roundedValue = stringToFixed(value);\n\n onPriceChange(roundedValue);\n };\n\n const handleIncrement = (callback = onPriceChange) => {\n const currentPrice = parseFloat(priceValue) || 0;\n const currentStep = parseFloat(step);\n\n callback((currentPrice + currentStep).toFixed(fractionDigits));\n };\n const handleDecrement = (callback = onPriceChange) => {\n const currentPrice = parseFloat(priceValue) || 0;\n const currentStep = parseFloat(step);\n\n callback((currentPrice - currentStep).toFixed(fractionDigits));\n };\n\n const handleKeyDown: TextFieldProps['onKeyDown'] = (e) => {\n const { key } = e;\n const target = e.target as HTMLInputElement;\n const isInForm = target.form;\n\n if (!isInForm) {\n if (key === 'Enter') target.blur();\n }\n if (key === 'ArrowUp') handleIncrement(onChange);\n if (key === 'ArrowDown') handleDecrement(onChange);\n };\n\n const compact = size === 'sm';\n\n return (\n <InputGroup hasError={hasError} style={flexStyle} className={className}>\n <InputAffix compact={compact} hasError={hasError}>\n {currency}\n </InputAffix>\n <TextField\n placeholder=\"0.00\"\n value={priceValue}\n step={step}\n onChange={handleChange}\n onBlur={handleBlur}\n onKeyDown={handleKeyDown}\n disabled={disabled}\n size={size}\n hasError={hasError}\n style={flexStyle}\n {...otherProps}\n />\n <Stepper\n onIncrement={() => handleIncrement()}\n onDecrement={() => handleDecrement()}\n disabled={disabled}\n hasError={hasError}\n size={size}\n />\n </InputGroup>\n );\n },\n);\n\nPriceInput.displayName = 'PriceInput';\n"],"names":["withLabels","React","InputGroup","InputAffix","TextField","Stepper"],"mappings":";;;;;;;;;;;;;AAUA,MAAM,cAAc,GAAG,CAAC;AAExB,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE;AAE7B,SAAS,aAAa,CAAC,KAAa,EAAA;AAClC,IAAA,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AACtD,IAAA,OAAO,UAAU,CAAC,OAAO,CAAC,cAAc,CAAC;AAC3C;AAEO,MAAM,UAAU,GAAGA,qBAAU,CAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,QAAQ,EACR,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,IAAI,GAAG,KAAK,EACZ,IAAI,GAAG,MAAM,EACb,GAAG,UAAU,EACd,KAAI;IACH,MAAM,YAAY,GAAG,CAAC,KAAa,KACjC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAE5D,IAAA,MAAM,UAAU,GAA6B,CAAC,CAAC,KAAI;AACjD,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B;AAC3C,QAAA,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM;QAExB,IAAI,CAAC,KAAK,EAAE;YACV,aAAa,CAAC,EAAE,CAAC;YAEjB;AACD,QAAA;AAED,QAAA,MAAM,YAAY,GAAG,aAAa,CAAC,KAAK,CAAC;QAEzC,aAAa,CAAC,YAAY,CAAC;AAC7B,IAAA,CAAC;AAED,IAAA,MAAM,eAAe,GAAG,CAAC,QAAQ,GAAG,aAAa,KAAI;QACnD,MAAM,YAAY,GAAG,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC;AAChD,QAAA,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC;AAEpC,QAAA,QAAQ,CAAC,CAAC,YAAY,GAAG,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;AAChE,IAAA,CAAC;AACD,IAAA,MAAM,eAAe,GAAG,CAAC,QAAQ,GAAG,aAAa,KAAI;QACnD,MAAM,YAAY,GAAG,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC;AAChD,QAAA,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC;AAEpC,QAAA,QAAQ,CAAC,CAAC,YAAY,GAAG,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;AAChE,IAAA,CAAC;AAED,IAAA,MAAM,aAAa,GAAgC,CAAC,CAAC,KAAI;AACvD,QAAA,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC;AACjB,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B;AAC3C,QAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI;QAE5B,IAAI,CAAC,QAAQ,EAAE;YACb,IAAI,GAAG,KAAK,OAAO;gBAAE,MAAM,CAAC,IAAI,EAAE;AACnC,QAAA;QACD,IAAI,GAAG,KAAK,SAAS;YAAE,eAAe,CAAC,QAAQ,CAAC;QAChD,IAAI,GAAG,KAAK,WAAW;YAAE,eAAe,CAAC,QAAQ,CAAC;AACpD,IAAA,CAAC;AAED,IAAA,MAAM,OAAO,GAAG,IAAI,KAAK,IAAI;AAE7B,IAAA,QACEC,sBAAA,CAAA,aAAA,CAACC,
|
|
1
|
+
{"version":3,"file":"PriceInput.cjs","sources":["../../../src/components/PriceInput/PriceInput.tsx"],"sourcesContent":["import React from 'react';\n\nimport { withLabels } from '../../hoc';\nimport { PriceInputProps } from './types';\n\nimport { Stepper } from '../Stepper';\nimport { InputAffix } from '../InputAffix';\nimport { InputGroup } from '../InputGroup';\nimport { TextField, TextFieldProps } from '../TextField';\n\nconst fractionDigits = 2;\n\nconst flexStyle = { flex: 1 };\n\nfunction stringToFixed(price: string) {\n const floatPrice = parseFloat(price.replace(',', '.'));\n return floatPrice.toFixed(fractionDigits);\n}\n\nexport const PriceInput = withLabels<PriceInputProps>(\n ({\n className = '',\n hasError,\n currency,\n disabled = false,\n onChange,\n onPriceChange,\n priceValue,\n step = '0.1',\n size = 'base',\n ...otherProps\n }) => {\n const handleChange = (value: string) =>\n onChange(value.replace(/[a-zA-Z]/g, '').replace(',', '.'));\n\n const handleBlur: TextFieldProps['onBlur'] = (e) => {\n const target = e.target as HTMLInputElement;\n const { value } = target;\n\n if (!value) {\n onPriceChange('');\n\n return;\n }\n\n const roundedValue = stringToFixed(value);\n\n onPriceChange(roundedValue);\n };\n\n const handleIncrement = (callback = onPriceChange) => {\n const currentPrice = parseFloat(priceValue) || 0;\n const currentStep = parseFloat(step);\n\n callback((currentPrice + currentStep).toFixed(fractionDigits));\n };\n const handleDecrement = (callback = onPriceChange) => {\n const currentPrice = parseFloat(priceValue) || 0;\n const currentStep = parseFloat(step);\n\n callback((currentPrice - currentStep).toFixed(fractionDigits));\n };\n\n const handleKeyDown: TextFieldProps['onKeyDown'] = (e) => {\n const { key } = e;\n const target = e.target as HTMLInputElement;\n const isInForm = target.form;\n\n if (!isInForm) {\n if (key === 'Enter') target.blur();\n }\n if (key === 'ArrowUp') handleIncrement(onChange);\n if (key === 'ArrowDown') handleDecrement(onChange);\n };\n\n const compact = size === 'sm';\n\n return (\n <InputGroup hasError={hasError} style={flexStyle} className={className}>\n <InputAffix compact={compact} hasError={hasError}>\n {currency}\n </InputAffix>\n <TextField\n placeholder=\"0.00\"\n value={priceValue}\n step={step}\n onChange={handleChange}\n onBlur={handleBlur}\n onKeyDown={handleKeyDown}\n disabled={disabled}\n size={size}\n hasError={hasError}\n style={flexStyle}\n {...otherProps}\n />\n <Stepper\n onIncrement={() => handleIncrement()}\n onDecrement={() => handleDecrement()}\n disabled={disabled}\n hasError={hasError}\n size={size}\n />\n </InputGroup>\n );\n },\n);\n\nPriceInput.displayName = 'PriceInput';\n"],"names":["withLabels","React","InputGroup","InputAffix","TextField","Stepper"],"mappings":";;;;;;;;;;;;;AAUA,MAAM,cAAc,GAAG,CAAC;AAExB,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE;AAE7B,SAAS,aAAa,CAAC,KAAa,EAAA;AAClC,IAAA,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AACtD,IAAA,OAAO,UAAU,CAAC,OAAO,CAAC,cAAc,CAAC;AAC3C;AAEO,MAAM,UAAU,GAAGA,qBAAU,CAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,QAAQ,EACR,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,IAAI,GAAG,KAAK,EACZ,IAAI,GAAG,MAAM,EACb,GAAG,UAAU,EACd,KAAI;IACH,MAAM,YAAY,GAAG,CAAC,KAAa,KACjC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAE5D,IAAA,MAAM,UAAU,GAA6B,CAAC,CAAC,KAAI;AACjD,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B;AAC3C,QAAA,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM;QAExB,IAAI,CAAC,KAAK,EAAE;YACV,aAAa,CAAC,EAAE,CAAC;YAEjB;AACD,QAAA;AAED,QAAA,MAAM,YAAY,GAAG,aAAa,CAAC,KAAK,CAAC;QAEzC,aAAa,CAAC,YAAY,CAAC;AAC7B,IAAA,CAAC;AAED,IAAA,MAAM,eAAe,GAAG,CAAC,QAAQ,GAAG,aAAa,KAAI;QACnD,MAAM,YAAY,GAAG,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC;AAChD,QAAA,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC;AAEpC,QAAA,QAAQ,CAAC,CAAC,YAAY,GAAG,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;AAChE,IAAA,CAAC;AACD,IAAA,MAAM,eAAe,GAAG,CAAC,QAAQ,GAAG,aAAa,KAAI;QACnD,MAAM,YAAY,GAAG,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC;AAChD,QAAA,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC;AAEpC,QAAA,QAAQ,CAAC,CAAC,YAAY,GAAG,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;AAChE,IAAA,CAAC;AAED,IAAA,MAAM,aAAa,GAAgC,CAAC,CAAC,KAAI;AACvD,QAAA,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC;AACjB,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B;AAC3C,QAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI;QAE5B,IAAI,CAAC,QAAQ,EAAE;YACb,IAAI,GAAG,KAAK,OAAO;gBAAE,MAAM,CAAC,IAAI,EAAE;AACnC,QAAA;QACD,IAAI,GAAG,KAAK,SAAS;YAAE,eAAe,CAAC,QAAQ,CAAC;QAChD,IAAI,GAAG,KAAK,WAAW;YAAE,eAAe,CAAC,QAAQ,CAAC;AACpD,IAAA,CAAC;AAED,IAAA,MAAM,OAAO,GAAG,IAAI,KAAK,IAAI;AAE7B,IAAA,QACEC,sBAAA,CAAA,aAAA,CAACC,qBAAU,EAAA,EAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAA;QACpED,sBAAA,CAAA,aAAA,CAACE,qBAAU,EAAA,EAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAA,EAC7C,QAAQ,CACE;AACb,QAAAF,sBAAA,CAAA,aAAA,CAACG,eAAS,EAAA,EACR,WAAW,EAAC,MAAM,EAClB,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,SAAS,EAAA,GACZ,UAAU,EAAA,CACd;AACF,QAAAH,sBAAA,CAAA,aAAA,CAACI,eAAO,EAAA,EACN,WAAW,EAAE,MAAM,eAAe,EAAE,EACpC,WAAW,EAAE,MAAM,eAAe,EAAE,EACpC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EAAA,CACV,CACS;AAEjB,CAAC;AAGH,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
|
|
@@ -2,7 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import { withLabels } from '../../hoc/withLabels/withLabels.js';
|
|
3
3
|
import { Stepper } from '../Stepper/Stepper.js';
|
|
4
4
|
import { InputAffix } from '../InputAffix/InputAffix.js';
|
|
5
|
-
import { InputGroup } from '../InputGroup/
|
|
5
|
+
import { InputGroup } from '../InputGroup/InputGroup.js';
|
|
6
6
|
import { TextField } from '../TextField/index.js';
|
|
7
7
|
|
|
8
8
|
const fractionDigits = 2;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const Search: React.ForwardRefExoticComponent<{
|
|
3
|
-
form?: string | undefined;
|
|
4
|
-
slot?: string | undefined;
|
|
5
|
-
style?: React.CSSProperties | undefined;
|
|
6
|
-
title?: string | undefined;
|
|
7
|
-
pattern?: string | undefined;
|
|
8
3
|
rel?: string | undefined;
|
|
9
|
-
placeholder?: string | undefined;
|
|
10
|
-
list?: string | undefined;
|
|
11
4
|
className?: string | undefined;
|
|
12
5
|
children?: React.ReactNode;
|
|
13
6
|
defaultChecked?: boolean | undefined;
|
|
@@ -24,8 +17,12 @@ export declare const Search: React.ForwardRefExoticComponent<{
|
|
|
24
17
|
id?: string | undefined;
|
|
25
18
|
lang?: string | undefined;
|
|
26
19
|
nonce?: string | undefined;
|
|
20
|
+
placeholder?: string | undefined;
|
|
21
|
+
slot?: string | undefined;
|
|
27
22
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
23
|
+
style?: React.CSSProperties | undefined;
|
|
28
24
|
tabIndex?: number | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
29
26
|
translate?: "yes" | "no" | undefined;
|
|
30
27
|
radioGroup?: string | undefined;
|
|
31
28
|
role?: React.AriaRole | undefined;
|
|
@@ -51,7 +48,7 @@ export declare const Search: React.ForwardRefExoticComponent<{
|
|
|
51
48
|
results?: number | undefined;
|
|
52
49
|
security?: string | undefined;
|
|
53
50
|
unselectable?: "on" | "off" | undefined;
|
|
54
|
-
inputMode?: "
|
|
51
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
55
52
|
is?: string | undefined;
|
|
56
53
|
'aria-activedescendant'?: string | undefined;
|
|
57
54
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -263,6 +260,9 @@ export declare const Search: React.ForwardRefExoticComponent<{
|
|
|
263
260
|
onAnimationIterationCapture?: (React.AnimationEventHandler<HTMLInputElement> & React.AnimationEventHandler<HTMLTextAreaElement>) | undefined;
|
|
264
261
|
onTransitionEnd?: (React.TransitionEventHandler<HTMLInputElement> & React.TransitionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
265
262
|
onTransitionEndCapture?: (React.TransitionEventHandler<HTMLInputElement> & React.TransitionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
263
|
+
form?: string | undefined;
|
|
264
|
+
pattern?: string | undefined;
|
|
265
|
+
list?: string | undefined;
|
|
266
266
|
alt?: string | undefined;
|
|
267
267
|
disabled?: boolean | undefined;
|
|
268
268
|
formAction?: string | undefined;
|
|
@@ -11,7 +11,16 @@ var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
|
11
11
|
|
|
12
12
|
const Input = styled__default.default(index.TextField).withConfig({ displayName: "vui--Input", componentId: "vui--je6y84" }) `flex-grow:2;margin-top:0;margin-bottom:0;`;
|
|
13
13
|
const IconContainer = styled__default.default.div.withConfig({ displayName: "vui--IconContainer", componentId: "vui--113gfe8" }) `position:absolute;`;
|
|
14
|
-
const Container = styled__default.default(BaseContainer.BaseContainer).withConfig({
|
|
14
|
+
const Container = styled__default.default(BaseContainer.BaseContainer).withConfig({
|
|
15
|
+
shouldForwardProp: (prop) => !['iconPosition'].includes(prop),
|
|
16
|
+
}) `
|
|
17
|
+
position: relative;
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: flex-start;
|
|
20
|
+
align-items: center;
|
|
21
|
+
border-radius: 0.25rem;
|
|
22
|
+
|
|
23
|
+
${({ iconPosition }) => {
|
|
15
24
|
let padding = 'padding-right: 2.5rem;';
|
|
16
25
|
let position = 'right: 0.5rem;';
|
|
17
26
|
if (iconPosition === 'left') {
|
|
@@ -27,7 +36,8 @@ const Container = styled__default.default(BaseContainer.BaseContainer).withConfi
|
|
|
27
36
|
${position}
|
|
28
37
|
}
|
|
29
38
|
`;
|
|
30
|
-
}}
|
|
39
|
+
}}
|
|
40
|
+
`;
|
|
31
41
|
|
|
32
42
|
exports.Container = Container;
|
|
33
43
|
exports.IconContainer = IconContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.cjs","sources":["../../../src/components/Search/styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { TextField } from '../TextField';\nimport { BaseContainer } from '../BaseContainer';\nimport { Loader } from '../Loader';\n\nconst Input = styled(TextField)`\n flex-grow: 2;\n margin-top: 0;\n margin-bottom: 0;\n`;\n\nconst IconContainer = styled.div`\n position: absolute;\n`;\n\nconst Container = styled(BaseContainer)<{ iconPosition: 'left' | 'right' }>`\n position: relative;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n border-radius: 0.25rem;\n\n ${({ iconPosition }) => {\n let padding = 'padding-right: 2.5rem;';\n let position = 'right: 0.5rem;';\n\n if (iconPosition === 'left') {\n padding = 'padding-left: 2.5rem';\n position = 'left: 0.5rem;';\n }\n\n return `\n & ${Input} {\n ${padding}\n }\n\n & ${IconContainer} {\n ${position}\n }\n `;\n }}\n`;\n\nexport { Container, Input, IconContainer, Loader };\n"],"names":["styled","TextField","BaseContainer"],"mappings":";;;;;;;;;;;AAMA,MAAM,KAAK,GAAGA,uBAAM,CAACC,eAAS,CAAC;AAM/B,MAAM,aAAa,GAAGD,uBAAM,CAAC,GAAG;AAIhC,MAAM,SAAS,GAAGA,uBAAM,CAACE,2BAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"styled.cjs","sources":["../../../src/components/Search/styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { TextField } from '../TextField';\nimport { BaseContainer } from '../BaseContainer';\nimport { Loader } from '../Loader';\n\nconst Input = styled(TextField)`\n flex-grow: 2;\n margin-top: 0;\n margin-bottom: 0;\n`;\n\nconst IconContainer = styled.div`\n position: absolute;\n`;\n\nconst Container = styled(BaseContainer).withConfig({\n shouldForwardProp: (prop) => !['iconPosition'].includes(prop),\n})<{ iconPosition: 'left' | 'right' }>`\n position: relative;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n border-radius: 0.25rem;\n\n ${({ iconPosition }) => {\n let padding = 'padding-right: 2.5rem;';\n let position = 'right: 0.5rem;';\n\n if (iconPosition === 'left') {\n padding = 'padding-left: 2.5rem';\n position = 'left: 0.5rem;';\n }\n\n return `\n & ${Input} {\n ${padding}\n }\n\n & ${IconContainer} {\n ${position}\n }\n `;\n }}\n`;\n\nexport { Container, Input, IconContainer, Loader };\n"],"names":["styled","TextField","BaseContainer"],"mappings":";;;;;;;;;;;AAMA,MAAM,KAAK,GAAGA,uBAAM,CAACC,eAAS,CAAC;AAM/B,MAAM,aAAa,GAAGD,uBAAM,CAAC,GAAG;AAIhC,MAAM,SAAS,GAAGA,uBAAM,CAACE,2BAAa,CAAC,CAAC,UAAU,CAAC;AACjD,IAAA,iBAAiB,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC9D,CAAA,CAAC,CAAoC;;;;;;;AAOlC,EAAA,EAAA,CAAC,EAAE,YAAY,EAAE,KAAI;IACrB,IAAI,OAAO,GAAG,wBAAwB;IACtC,IAAI,QAAQ,GAAG,gBAAgB;IAE/B,IAAI,YAAY,KAAK,MAAM,EAAE;QAC3B,OAAO,GAAG,sBAAsB;QAChC,QAAQ,GAAG,eAAe;AAC3B,IAAA;IAED,OAAO;UACD,KAAK,CAAA;UACL,OAAO;;;UAGP,aAAa,CAAA;UACb,QAAQ;;KAEb;AACH,CAAC;;;;;;;"}
|