@alto-avios/alto-ui 2.3.3 → 3.0.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/README.md +33 -9
- package/dist/assets/AviosCurrencySymbol.css +1 -0
- package/dist/assets/Badge.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ButtonGroup.css +1 -1
- package/dist/assets/CardSection.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/CheckboxGroup.css +1 -1
- package/dist/assets/ClearFieldButton.css +1 -1
- package/dist/assets/DateField.css +1 -1
- package/dist/assets/Eyebrow.css +1 -1
- package/dist/assets/FieldDescription.css +1 -1
- package/dist/assets/FieldError.css +1 -1
- package/dist/assets/FieldHeader.css +1 -1
- package/dist/assets/FieldLabel.css +1 -1
- package/dist/assets/Fieldset.css +1 -0
- package/dist/assets/FieldsetHeader.css +1 -0
- package/dist/assets/Form.css +1 -0
- package/dist/assets/Grid.css +1 -1
- package/dist/assets/Heading.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Image.css +1 -0
- package/dist/assets/Link.css +1 -1
- package/dist/assets/LoadingSpinner.css +1 -1
- package/dist/assets/NumberField.css +1 -0
- package/dist/assets/Radio.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/Section.css +1 -0
- package/dist/assets/SubHeading.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/TextAreaField.css +1 -1
- package/dist/assets/ToggleButton.css +1 -1
- package/dist/assets/ToggleIconButton.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/fgColor.css +1 -1
- package/dist/assets/focusStyles.css +1 -1
- package/dist/assets/global.css +1 -1
- package/dist/assets/padding.css +1 -1
- package/dist/components/AviosCurrencySymbol/AviosCurrencySymbol.d.ts +25 -0
- package/dist/components/AviosCurrencySymbol/AviosCurrencySymbol.js +80 -0
- package/dist/components/AviosCurrencySymbol/AviosCurrencySymbol.js.map +1 -0
- package/dist/components/AviosCurrencySymbol/index.d.ts +1 -0
- package/dist/components/AviosCurrencySymbol/index.js +5 -0
- package/dist/components/Badge/Badge.js +11 -11
- package/dist/components/Box/Box.d.ts +18 -3
- package/dist/components/Box/Box.js +9 -3
- package/dist/components/Box/Box.js.map +1 -1
- package/dist/components/Button/Button.d.ts +128 -36
- package/dist/components/Button/Button.js +129 -66
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +8 -8
- package/dist/components/CardSection/CardSection.d.ts +12 -6
- package/dist/components/CardSection/CardSection.js +9 -7
- package/dist/components/CardSection/CardSection.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +4 -2
- package/dist/components/Checkbox/Checkbox.js +12 -10
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +12 -12
- package/dist/components/CheckboxGroup/CheckboxGroup.js +3 -3
- package/dist/components/ClearFieldButton/ClearFieldButton.d.ts +4 -6
- package/dist/components/ClearFieldButton/ClearFieldButton.js +4 -4
- package/dist/components/DateField/DateField.d.ts +4 -24
- package/dist/components/DateField/DateField.js +7 -19
- package/dist/components/DateField/DateField.js.map +1 -1
- package/dist/components/DestinationHeading/DestinationHeading.d.ts +1 -1
- package/dist/components/Eyebrow/Eyebrow.js +5 -5
- package/dist/components/FieldDescription/FieldDescription.js +1 -1
- package/dist/components/FieldError/FieldError.d.ts +1 -1
- package/dist/components/FieldError/FieldError.js +12 -9
- package/dist/components/FieldError/FieldError.js.map +1 -1
- package/dist/components/FieldHeader/FieldHeader.d.ts +2 -1
- package/dist/components/FieldHeader/FieldHeader.js +5 -4
- package/dist/components/FieldHeader/FieldHeader.js.map +1 -1
- package/dist/components/FieldHeader/index.d.ts +1 -0
- package/dist/components/FieldLabel/FieldLabel.d.ts +1 -1
- package/dist/components/FieldLabel/FieldLabel.js +1 -2
- package/dist/components/FieldLabel/FieldLabel.js.map +1 -1
- package/dist/components/Fieldset/Fieldset.d.ts +18 -0
- package/dist/components/Fieldset/Fieldset.js +24 -0
- package/dist/components/Fieldset/Fieldset.js.map +1 -0
- package/dist/components/Fieldset/index.d.ts +2 -0
- package/dist/components/Fieldset/index.js +5 -0
- package/dist/components/Fieldset/index.js.map +1 -0
- package/dist/components/FieldsetHeader/FieldsetHeader.d.ts +7 -0
- package/dist/components/FieldsetHeader/FieldsetHeader.js +21 -0
- package/dist/components/FieldsetHeader/FieldsetHeader.js.map +1 -0
- package/dist/components/FieldsetHeader/index.d.ts +1 -0
- package/dist/components/FieldsetHeader/index.js +5 -0
- package/dist/components/FieldsetHeader/index.js.map +1 -0
- package/dist/components/Form/Form.d.ts +7 -0
- package/dist/components/Form/Form.js +17 -0
- package/dist/components/Form/Form.js.map +1 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/index.js +5 -0
- package/dist/components/Form/index.js.map +1 -0
- package/dist/components/Grid/Grid.d.ts +35 -16
- package/dist/components/Grid/Grid.js +63 -30
- package/dist/components/Grid/Grid.js.map +1 -1
- package/dist/components/Heading/Heading.d.ts +2 -2
- package/dist/components/Heading/Heading.js +19 -17
- package/dist/components/Heading/Heading.js.map +1 -1
- package/dist/components/Icon/Icon.d.ts +4 -4
- package/dist/components/Icon/Icon.js +1 -0
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +13 -4
- package/dist/components/IconButton/IconButton.js +35 -26
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/Image/Image.d.ts +23 -0
- package/dist/components/Image/Image.js +130 -0
- package/dist/components/Image/Image.js.map +1 -0
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/Image/index.js +5 -0
- package/dist/components/Image/index.js.map +1 -0
- package/dist/components/Link/Link.d.ts +32 -34
- package/dist/components/Link/Link.js +34 -22
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +2 -2
- package/dist/components/LoadingSpinner/LoadingSpinner.js +5 -5
- package/dist/components/NumberField/NumberField.d.ts +25 -0
- package/dist/components/NumberField/NumberField.js +35 -0
- package/dist/components/NumberField/NumberField.js.map +1 -0
- package/dist/components/NumberField/index.d.ts +1 -0
- package/dist/components/NumberField/index.js +5 -0
- package/dist/components/NumberField/index.js.map +1 -0
- package/dist/components/Paragraph/Paragraph.d.ts +4 -4
- package/dist/components/Radio/Radio.js +3 -3
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -2
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/Section/Section.d.ts +29 -0
- package/dist/components/Section/Section.js +103 -0
- package/dist/components/Section/Section.js.map +1 -0
- package/dist/components/Section/index.d.ts +1 -0
- package/dist/components/Section/index.js +5 -0
- package/dist/components/Section/index.js.map +1 -0
- package/dist/components/SubHeading/SubHeading.d.ts +1 -1
- package/dist/components/SubHeading/SubHeading.js +8 -8
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/Tag/Tag.js +4 -4
- package/dist/components/TagGroup/TagGroup.d.ts +2 -2
- package/dist/components/TagGroup/TagGroup.js +1 -1
- package/dist/components/TextAreaField/TextAreaField.d.ts +1 -1
- package/dist/components/TextAreaField/TextAreaField.js +6 -18
- package/dist/components/TextAreaField/TextAreaField.js.map +1 -1
- package/dist/components/TextField/TextField.d.ts +4 -31
- package/dist/components/TextField/TextField.js +7 -17
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.js +6 -6
- package/dist/components/ToggleIconButton/ToggleIconButton.d.ts +9 -1
- package/dist/components/ToggleIconButton/ToggleIconButton.js +15 -8
- package/dist/components/ToggleIconButton/ToggleIconButton.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/_base/Field/Field.d.ts +16 -0
- package/dist/components/_base/Field/Field.js +32 -0
- package/dist/components/_base/Field/Field.js.map +1 -0
- package/dist/components/_base/Field/index.d.ts +2 -0
- package/dist/components/_base/Field/index.js +5 -0
- package/dist/components/_base/Field/index.js.map +1 -0
- package/dist/components/index.d.ts +7 -1
- package/dist/components/index.js +22 -10
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +22 -10
- package/dist/index.js.map +1 -1
- package/dist/utils/backgroundColour/backgroundColour.d.ts +1 -1
- package/dist/utils/border/border.d.ts +3 -3
- package/dist/utils/fgColour/fgColor.d.ts +1 -1
- package/dist/utils/fgColour/fgColor.js +34 -34
- package/dist/utils/flex/flex.d.ts +2 -2
- package/dist/utils/flex/flex.js +3 -1
- package/dist/utils/flex/flex.js.map +1 -1
- package/dist/utils/focus/focusStyles.d.ts +1 -1
- package/dist/utils/focus/focusStyles.js +2 -2
- package/dist/utils/forms/formProps.d.ts +2 -0
- package/dist/utils/forms/formProps.js +2 -0
- package/dist/utils/forms/formProps.js.map +1 -0
- package/dist/utils/padding/padding.d.ts +7 -7
- package/dist/utils/padding/padding.js +271 -46
- package/dist/utils/padding/padding.js.map +1 -1
- package/dist/utils/spaceToken/spaceToken.d.ts +3 -0
- package/dist/utils/spaceToken/spaceToken.js +25 -0
- package/dist/utils/spaceToken/spaceToken.js.map +1 -0
- package/dist/utils/stories/iconPropsArgTypes.js +14 -13
- package/dist/utils/stories/iconPropsArgTypes.js.map +1 -1
- package/package.json +75 -19
- package/dist/assets/NewButton.css +0 -1
- package/dist/components/NewButton/NewButton.d.ts +0 -87
- package/dist/components/NewButton/NewButton.js +0 -189
- package/dist/components/NewButton/NewButton.js.map +0 -1
- package/dist/components/NewButton/index.d.ts +0 -1
- package/dist/components/NewButton/index.js +0 -5
- /package/dist/components/{NewButton → AviosCurrencySymbol}/index.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { c as cva } from "../../index-Bi3v_EjJ.js";
|
|
4
|
-
import '../../assets/ButtonGroup.css';const buttonGroup = "
|
|
5
|
-
const alignStart = "
|
|
6
|
-
const alignCenter = "
|
|
7
|
-
const alignEnd = "
|
|
8
|
-
const alignJustify = "
|
|
9
|
-
const alignSplit = "
|
|
10
|
-
const alignStack = "
|
|
11
|
-
const alignStackFlip = "
|
|
4
|
+
import '../../assets/ButtonGroup.css';const buttonGroup = "_buttonGroup_zcnod_2";
|
|
5
|
+
const alignStart = "_alignStart_zcnod_10";
|
|
6
|
+
const alignCenter = "_alignCenter_zcnod_14";
|
|
7
|
+
const alignEnd = "_alignEnd_zcnod_18";
|
|
8
|
+
const alignJustify = "_alignJustify_zcnod_22";
|
|
9
|
+
const alignSplit = "_alignSplit_zcnod_26";
|
|
10
|
+
const alignStack = "_alignStack_zcnod_39";
|
|
11
|
+
const alignStackFlip = "_alignStackFlip_zcnod_44";
|
|
12
12
|
const styles = {
|
|
13
13
|
buttonGroup,
|
|
14
14
|
alignStart,
|
|
@@ -14,10 +14,16 @@ interface CardSectionComponent extends React.ForwardRefExoticComponent<CardSecti
|
|
|
14
14
|
Media: typeof Media;
|
|
15
15
|
}
|
|
16
16
|
declare const CardSection: CardSectionComponent;
|
|
17
|
-
declare const Content:
|
|
18
|
-
children:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
17
|
+
declare const Content: {
|
|
18
|
+
({ children }: {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
declare const Media: {
|
|
24
|
+
({ children }: {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
23
29
|
export default CardSection;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as cva } from "../../index-Bi3v_EjJ.js";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import '../../assets/CardSection.css';const cardSection$1 = "
|
|
5
|
-
const cardContainer = "
|
|
6
|
-
const cardGrid = "
|
|
7
|
-
const contentCell = "
|
|
8
|
-
const contentBox = "
|
|
9
|
-
const mediaCell = "
|
|
10
|
-
const isReversed = "
|
|
4
|
+
import '../../assets/CardSection.css';const cardSection$1 = "_cardSection_1uwwa_1";
|
|
5
|
+
const cardContainer = "_cardContainer_1uwwa_12";
|
|
6
|
+
const cardGrid = "_cardGrid_1uwwa_24";
|
|
7
|
+
const contentCell = "_contentCell_1uwwa_33";
|
|
8
|
+
const contentBox = "_contentBox_1uwwa_40";
|
|
9
|
+
const mediaCell = "_mediaCell_1uwwa_51";
|
|
10
|
+
const isReversed = "_isReversed_1uwwa_65";
|
|
11
11
|
const styles = {
|
|
12
12
|
cardSection: cardSection$1,
|
|
13
13
|
cardContainer,
|
|
@@ -35,9 +35,11 @@ CardSection.displayName = "CardSection";
|
|
|
35
35
|
const Content = ({
|
|
36
36
|
children
|
|
37
37
|
}) => /* @__PURE__ */ jsx("div", { className: styles.contentCell, children: /* @__PURE__ */ jsx("article", { className: styles.contentBox, children }) });
|
|
38
|
+
Content.displayName = "CardSection.Content";
|
|
38
39
|
const Media = ({
|
|
39
40
|
children
|
|
40
41
|
}) => /* @__PURE__ */ jsx("figure", { className: styles.mediaCell, children });
|
|
42
|
+
Media.displayName = "CardSection.Media";
|
|
41
43
|
CardSection.Content = Content;
|
|
42
44
|
CardSection.Media = Media;
|
|
43
45
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { ValidationError } from '@react-types/shared';
|
|
2
3
|
import { CheckboxProps as AriaCheckboxProps } from 'react-aria-components';
|
|
3
4
|
export interface CheckboxProps extends AriaCheckboxProps {
|
|
4
|
-
label
|
|
5
|
+
/** The label of the checkbox, can be a string or a React node. */
|
|
6
|
+
label?: string | React.ReactNode;
|
|
5
7
|
/** Indeterminism is presentational only. The indeterminate visual representation remains regardless of user interaction. */
|
|
6
8
|
isIndeterminate?: boolean;
|
|
7
9
|
/** Whether the element should be selected (uncontrolled). */
|
|
@@ -30,7 +32,7 @@ export interface CheckboxProps extends AriaCheckboxProps {
|
|
|
30
32
|
* or invalid via ARIA.
|
|
31
33
|
* @default 'aria'
|
|
32
34
|
*/
|
|
33
|
-
validationBehavior?:
|
|
35
|
+
validationBehavior?: 'native' | 'aria';
|
|
34
36
|
description?: string;
|
|
35
37
|
children?: React.ReactNode;
|
|
36
38
|
focusStyle?: 'default' | 'white';
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { jsxs,
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Checkbox as Checkbox$1 } from "react-aria-components";
|
|
3
3
|
import { c as cva } from "../../index-Bi3v_EjJ.js";
|
|
4
4
|
import FieldDescription from "../FieldDescription/FieldDescription.js";
|
|
5
|
-
import '../../assets/Checkbox.css';const checkbox$1 = "
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
5
|
+
import '../../assets/Checkbox.css';const checkbox$1 = "_checkbox_1twm2_2";
|
|
6
|
+
const checkboxContainer = "_checkboxContainer_1twm2_19";
|
|
7
|
+
const checkboxLabel = "_checkboxLabel_1twm2_24";
|
|
8
|
+
const checkboxDescription = "_checkboxDescription_1twm2_28";
|
|
9
|
+
const checkboxSvgWrapper = "_checkboxSvgWrapper_1twm2_32";
|
|
10
|
+
const svg = "_svg_1twm2_46";
|
|
11
|
+
const defaultFocus = "_defaultFocus_1twm2_74";
|
|
12
|
+
const whiteFocus = "_whiteFocus_1twm2_78";
|
|
12
13
|
const styles = {
|
|
13
14
|
checkbox: checkbox$1,
|
|
15
|
+
checkboxContainer,
|
|
14
16
|
checkboxLabel,
|
|
15
17
|
checkboxDescription,
|
|
16
18
|
checkboxSvgWrapper,
|
|
@@ -42,13 +44,13 @@ const Checkbox = ({
|
|
|
42
44
|
validate,
|
|
43
45
|
autoFocus,
|
|
44
46
|
name,
|
|
45
|
-
validationBehavior
|
|
47
|
+
validationBehavior,
|
|
46
48
|
description,
|
|
47
49
|
children,
|
|
48
50
|
focusStyle = "default",
|
|
49
51
|
...props
|
|
50
52
|
}) => {
|
|
51
|
-
return /* @__PURE__ */ jsxs(
|
|
53
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.checkboxContainer, children: [
|
|
52
54
|
/* @__PURE__ */ jsx(Checkbox$1, { className: checkbox({
|
|
53
55
|
focusStyle
|
|
54
56
|
}), isIndeterminate, defaultSelected, isSelected, value, isDisabled, isReadOnly, isRequired, isInvalid, validate, autoFocus, name, validationBehavior, ...props, children: ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,28 +2,28 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { CheckboxGroupProps as AriaCheckboxGroupProps, ValidationResult } from 'react-aria-components';
|
|
3
3
|
export interface CheckboxGroupProps extends AriaCheckboxGroupProps {
|
|
4
4
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
* The field label.
|
|
6
|
+
*/
|
|
7
7
|
label?: string;
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
* The children to render.
|
|
10
|
+
*/
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
* The descriptive text located underneath the checkbox group.
|
|
14
|
+
*/
|
|
15
15
|
description?: string;
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* The error message to display when the input value is invalid.
|
|
18
|
+
*/
|
|
19
19
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* Whether the input is disabled.
|
|
22
|
+
*/
|
|
23
23
|
isDisabled?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
* Whether the input value is invalid.
|
|
26
|
+
*/
|
|
27
27
|
isInvalid?: boolean;
|
|
28
28
|
}
|
|
29
29
|
export declare const CheckboxGroup: ({ label, children, description, errorMessage, isDisabled, isInvalid, ...props }: CheckboxGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CheckboxGroup as CheckboxGroup$1 } from "react-aria-components";
|
|
3
3
|
import { FieldHeader } from "../FieldHeader/FieldHeader.js";
|
|
4
|
-
import '../../assets/CheckboxGroup.css';const checkboxGroup = "
|
|
5
|
-
const errorMessage = "
|
|
6
|
-
const description = "
|
|
4
|
+
import '../../assets/CheckboxGroup.css';const checkboxGroup = "_checkboxGroup_1vs5o_1";
|
|
5
|
+
const errorMessage = "_errorMessage_1vs5o_8";
|
|
6
|
+
const description = "_description_1vs5o_13";
|
|
7
7
|
const styles = {
|
|
8
8
|
checkboxGroup,
|
|
9
9
|
errorMessage,
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { ButtonProps } from '../Button/Button';
|
|
2
|
-
import {
|
|
2
|
+
import { FormProps } from '../../utils/forms/formProps';
|
|
3
3
|
export type ClearFieldButtonButtonSize = 'lg' | 'md' | 'sm';
|
|
4
|
-
export interface ClearFieldButtonProps extends Omit<ButtonProps,
|
|
4
|
+
export interface ClearFieldButtonProps extends Omit<ButtonProps, '$styleText'>, FormProps {
|
|
5
5
|
slot?: string;
|
|
6
|
-
iconSize?: IconSize;
|
|
7
6
|
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The focus style of the button
|
|
10
|
-
*/
|
|
11
7
|
focusStyle?: 'default' | 'white';
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
type?: 'button' | 'submit' | 'reset';
|
|
12
10
|
}
|
|
13
11
|
export declare const ClearFieldButton: ({ size, form, formAction, formEncType, formMethod, formNoValidate, formTarget, name, value, isDisabled, autoFocus, type, slot, onClick, className, focusStyle, ...props }: ClearFieldButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
export default ClearFieldButton;
|
|
@@ -3,10 +3,10 @@ import { c as cva } from "../../index-Bi3v_EjJ.js";
|
|
|
3
3
|
import { Button } from "react-aria-components";
|
|
4
4
|
import { Icon } from "../Icon/Icon.js";
|
|
5
5
|
import { focusStyleVariants } from "../../utils/focus/focusStyles.js";
|
|
6
|
-
import '../../assets/ClearFieldButton.css';const clearFieldButton$1 = "
|
|
7
|
-
const sm = "
|
|
8
|
-
const md = "
|
|
9
|
-
const lg = "
|
|
6
|
+
import '../../assets/ClearFieldButton.css';const clearFieldButton$1 = "_clearFieldButton_hkevp_1";
|
|
7
|
+
const sm = "_sm_hkevp_18";
|
|
8
|
+
const md = "_md_hkevp_23";
|
|
9
|
+
const lg = "_lg_hkevp_28";
|
|
10
10
|
const styles = {
|
|
11
11
|
clearFieldButton: clearFieldButton$1,
|
|
12
12
|
sm,
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
import { DateFieldProps as AriaDateFieldProps, DateValue
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
label?: string;
|
|
7
|
-
/**
|
|
8
|
-
* The description for the TextField
|
|
9
|
-
*/
|
|
10
|
-
description?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The error message for the TextField
|
|
13
|
-
*/
|
|
14
|
-
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
15
|
-
/**
|
|
16
|
-
* Whether the TextField is disabled
|
|
17
|
-
*/
|
|
18
|
-
isDisabled?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the TextField is invalid
|
|
21
|
-
*/
|
|
22
|
-
isInvalid?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare const DateField: ({ label, description, errorMessage, isRequired, isInvalid, isDisabled, value, ...props }: DateFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { DateFieldProps as AriaDateFieldProps, DateValue } from 'react-aria-components';
|
|
2
|
+
import { FieldProps } from '../_base/Field/Field';
|
|
3
|
+
export type DateFieldProps = FieldProps<AriaDateFieldProps<DateValue>>;
|
|
4
|
+
export declare const DateField: (props: DateFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
5
|
export default DateField;
|
|
@@ -1,28 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { DateField as DateField$1, DateInput, DateSegment } from "react-aria-components";
|
|
3
|
-
import {
|
|
4
|
-
import '../../assets/DateField.css';const dateField = "
|
|
5
|
-
const dateInput = "
|
|
6
|
-
const dateSegment = "
|
|
3
|
+
import { Field } from "../_base/Field/Field.js";
|
|
4
|
+
import '../../assets/DateField.css';const dateField = "_dateField_1bpet_1";
|
|
5
|
+
const dateInput = "_dateInput_1bpet_5";
|
|
6
|
+
const dateSegment = "_dateSegment_1bpet_50";
|
|
7
7
|
const styles = {
|
|
8
8
|
dateField,
|
|
9
9
|
dateInput,
|
|
10
10
|
dateSegment
|
|
11
11
|
};
|
|
12
|
-
const DateField = ({
|
|
13
|
-
|
|
14
|
-
description,
|
|
15
|
-
errorMessage,
|
|
16
|
-
isRequired = false,
|
|
17
|
-
isInvalid = false,
|
|
18
|
-
isDisabled = false,
|
|
19
|
-
value,
|
|
20
|
-
...props
|
|
21
|
-
}) => {
|
|
22
|
-
return /* @__PURE__ */ jsxs(DateField$1, { className: styles.dateField, isInvalid, isDisabled, value, ...props, children: [
|
|
23
|
-
/* @__PURE__ */ jsx(FieldHeader, { label, description, errorMessage, isRequired, isInvalid }),
|
|
24
|
-
/* @__PURE__ */ jsx(DateInput, { className: styles.dateInput, children: (segment) => /* @__PURE__ */ jsx(DateSegment, { className: styles.dateSegment, segment }) })
|
|
25
|
-
] });
|
|
12
|
+
const DateField = (props) => {
|
|
13
|
+
return /* @__PURE__ */ jsx(Field, { as: DateField$1, className: styles.dateField, ...props, children: /* @__PURE__ */ jsx(DateInput, { className: styles.dateInput, children: (segment) => /* @__PURE__ */ jsx(DateSegment, { className: styles.dateSegment, segment }) }) });
|
|
26
14
|
};
|
|
27
15
|
export {
|
|
28
16
|
DateField,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateField.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateField.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as cva } from "../../index-Bi3v_EjJ.js";
|
|
3
|
-
import '../../assets/Eyebrow.css';const eyebrow$1 = "
|
|
4
|
-
const inspiration = "
|
|
5
|
-
const collect = "
|
|
6
|
-
const spend = "
|
|
7
|
-
const activate = "
|
|
3
|
+
import '../../assets/Eyebrow.css';const eyebrow$1 = "_eyebrow_rc11b_1";
|
|
4
|
+
const inspiration = "_inspiration_rc11b_16";
|
|
5
|
+
const collect = "_collect_rc11b_20";
|
|
6
|
+
const spend = "_spend_rc11b_24";
|
|
7
|
+
const activate = "_activate_rc11b_29";
|
|
8
8
|
const styles = {
|
|
9
9
|
eyebrow: eyebrow$1,
|
|
10
10
|
inspiration,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Text } from "react-aria-components";
|
|
3
|
-
import '../../assets/FieldDescription.css';const fieldDescription = "
|
|
3
|
+
import '../../assets/FieldDescription.css';const fieldDescription = "_fieldDescription_18783_1";
|
|
4
4
|
const styles = {
|
|
5
5
|
fieldDescription
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import { FieldErrorProps as AriaFieldErrorProps } from 'react-aria-components';
|
|
|
2
2
|
export interface FieldErrorProps extends AriaFieldErrorProps {
|
|
3
3
|
children?: React.ReactNode | any;
|
|
4
4
|
}
|
|
5
|
-
export declare const FieldError: ({ children, ...props }: FieldErrorProps) => import("react/jsx-runtime").JSX.Element
|
|
5
|
+
export declare const FieldError: ({ children, ...props }: FieldErrorProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default FieldError;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs,
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { FieldError as FieldError$1 } from "react-aria-components";
|
|
3
3
|
import { Icon } from "../Icon/Icon.js";
|
|
4
|
-
import '../../assets/FieldError.css';const fieldError = "
|
|
4
|
+
import '../../assets/FieldError.css';const fieldError = "_fieldError_1tsix_1";
|
|
5
5
|
const styles = {
|
|
6
6
|
fieldError
|
|
7
7
|
};
|
|
@@ -9,13 +9,16 @@ const FieldError = ({
|
|
|
9
9
|
children,
|
|
10
10
|
...props
|
|
11
11
|
}) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children
|
|
18
|
-
|
|
12
|
+
return /* @__PURE__ */ jsx(FieldError$1, { className: styles.fieldError, ...props, children: ({
|
|
13
|
+
validationErrors
|
|
14
|
+
}) => {
|
|
15
|
+
const errorMessage = children || (validationErrors == null ? void 0 : validationErrors[0]);
|
|
16
|
+
if (!errorMessage) return null;
|
|
17
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
|
+
/* @__PURE__ */ jsx(Icon, { iconName: "triangle-exclamation", "aria-label": "error-icon" }),
|
|
19
|
+
errorMessage
|
|
20
|
+
] });
|
|
21
|
+
} });
|
|
19
22
|
};
|
|
20
23
|
export {
|
|
21
24
|
FieldError,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldError.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FieldError.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,6 +5,7 @@ export interface FieldHeaderProps {
|
|
|
5
5
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
6
6
|
isInvalid?: boolean;
|
|
7
7
|
isRequired?: boolean;
|
|
8
|
+
labelFor?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const FieldHeader: ({ label, description, isInvalid, isRequired, errorMessage, }: FieldHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const FieldHeader: ({ label, description, isInvalid, isRequired, errorMessage, labelFor, }: FieldHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default FieldHeader;
|
|
@@ -2,21 +2,22 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import FieldDescription from "../FieldDescription/FieldDescription.js";
|
|
3
3
|
import { FieldError } from "../FieldError/FieldError.js";
|
|
4
4
|
import { FieldLabel } from "../FieldLabel/FieldLabel.js";
|
|
5
|
-
import '../../assets/FieldHeader.css';const fieldHeader = "
|
|
5
|
+
import '../../assets/FieldHeader.css';const fieldHeader = "_fieldHeader_3rjlj_1";
|
|
6
6
|
const styles = {
|
|
7
7
|
fieldHeader,
|
|
8
|
-
"label-container": "_label-
|
|
8
|
+
"label-container": "_label-container_3rjlj_12"
|
|
9
9
|
};
|
|
10
10
|
const FieldHeader = ({
|
|
11
11
|
label,
|
|
12
12
|
description,
|
|
13
13
|
isInvalid,
|
|
14
14
|
isRequired,
|
|
15
|
-
errorMessage
|
|
15
|
+
errorMessage,
|
|
16
|
+
labelFor
|
|
16
17
|
}) => {
|
|
17
18
|
return /* @__PURE__ */ jsxs("div", { className: styles.fieldHeader, "data-invalid": isInvalid ? true : void 0, children: [
|
|
18
19
|
/* @__PURE__ */ jsxs("div", { className: styles["label-container"], children: [
|
|
19
|
-
label && /* @__PURE__ */ jsx(FieldLabel, { required: isRequired ? true : void 0, children: label }),
|
|
20
|
+
label && /* @__PURE__ */ jsx(FieldLabel, { required: isRequired ? true : void 0, htmlFor: labelFor, children: label }),
|
|
20
21
|
!isRequired && /* @__PURE__ */ jsx("span", { children: "Optional" })
|
|
21
22
|
] }),
|
|
22
23
|
description && /* @__PURE__ */ jsx(FieldDescription, { children: description }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldHeader.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FieldHeader.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,5 +2,5 @@ import { LabelProps as AriaLabelProps } from 'react-aria-components';
|
|
|
2
2
|
export interface FieldLabelProps extends AriaLabelProps {
|
|
3
3
|
required?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const FieldLabel: ({ children,
|
|
5
|
+
export declare const FieldLabel: ({ children, ...props }: FieldLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default FieldLabel;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Label } from "react-aria-components";
|
|
3
|
-
import '../../assets/FieldLabel.css';const fieldLabel = "
|
|
3
|
+
import '../../assets/FieldLabel.css';const fieldLabel = "_fieldLabel_1jqml_1";
|
|
4
4
|
const styles = {
|
|
5
5
|
fieldLabel
|
|
6
6
|
};
|
|
7
7
|
const FieldLabel = ({
|
|
8
8
|
children,
|
|
9
|
-
required,
|
|
10
9
|
...props
|
|
11
10
|
}) => {
|
|
12
11
|
return /* @__PURE__ */ jsx(Label, { className: styles.fieldLabel, ...props, children });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FieldLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FieldsetHeaderProps } from '../FieldsetHeader/FieldsetHeader';
|
|
3
|
+
export interface FieldsetProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const Fieldset: {
|
|
7
|
+
({ children }: FieldsetProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Content: {
|
|
9
|
+
({ children }: FieldsetContentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
Header: ({ children, description, }: FieldsetHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export interface FieldsetContentProps {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export type { FieldsetHeaderProps };
|
|
18
|
+
export default Fieldset;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { FieldsetHeader } from "../FieldsetHeader/FieldsetHeader.js";
|
|
3
|
+
import { Box } from "../Box/Box.js";
|
|
4
|
+
import '../../assets/Fieldset.css';const fieldset = "_fieldset_11lio_1";
|
|
5
|
+
const styles = {
|
|
6
|
+
fieldset
|
|
7
|
+
};
|
|
8
|
+
const Fieldset = ({
|
|
9
|
+
children
|
|
10
|
+
}) => {
|
|
11
|
+
return /* @__PURE__ */ jsx("fieldset", { className: styles.fieldset, children });
|
|
12
|
+
};
|
|
13
|
+
const Content = ({
|
|
14
|
+
children
|
|
15
|
+
}) => {
|
|
16
|
+
return /* @__PURE__ */ jsx(Box, { flexDirection: "column", gap: "sm", width: "100%", children });
|
|
17
|
+
};
|
|
18
|
+
Content.displayName = "Fieldset.Content";
|
|
19
|
+
Fieldset.Content = Content;
|
|
20
|
+
Fieldset.Header = FieldsetHeader;
|
|
21
|
+
export {
|
|
22
|
+
Fieldset as default
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Fieldset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fieldset.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface FieldsetHeaderProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const FieldsetHeader: ({ children, description, }: FieldsetHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default FieldsetHeader;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Heading } from "../Heading/Heading.js";
|
|
3
|
+
import '../../assets/FieldsetHeader.css';const fieldsetHeader = "_fieldsetHeader_abhm4_1";
|
|
4
|
+
const styles = {
|
|
5
|
+
fieldsetHeader,
|
|
6
|
+
"fieldsetHeader-description": "_fieldsetHeader-description_abhm4_12"
|
|
7
|
+
};
|
|
8
|
+
const FieldsetHeader = ({
|
|
9
|
+
children,
|
|
10
|
+
description
|
|
11
|
+
}) => {
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", { className: styles["fieldsetHeader"], children: [
|
|
13
|
+
/* @__PURE__ */ jsx(Heading, { as: "legend", size: "sm", fgColor: "accentSecondary", children }),
|
|
14
|
+
description && /* @__PURE__ */ jsx("span", { className: styles["fieldsetHeader-description"], children: description })
|
|
15
|
+
] });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
FieldsetHeader,
|
|
19
|
+
FieldsetHeader as default
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=FieldsetHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldsetHeader.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './FieldsetHeader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FormProps as FormAriaProps } from 'react-aria-components';
|
|
3
|
+
export interface FormProps extends FormAriaProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const Form: ({ children, ...props }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Form;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Form as Form$1 } from "react-aria-components";
|
|
3
|
+
import '../../assets/Form.css';const form = "_form_11vpr_1";
|
|
4
|
+
const styles = {
|
|
5
|
+
form
|
|
6
|
+
};
|
|
7
|
+
const Form = ({
|
|
8
|
+
children,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
return /* @__PURE__ */ jsx(Form$1, { className: styles["form"], ...props, children });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
Form,
|
|
15
|
+
Form as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=Form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|