@alto-avios/alto-ui 2.4.0 → 3.1.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 +13 -0
- package/dist/assets/AviosCurrencySymbol.css +1 -0
- package/dist/assets/Badge.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/CardSection.css +1 -1
- package/dist/assets/CreditCardNumberField.css +1 -0
- package/dist/assets/DateField.css +1 -1
- package/dist/assets/DetailsDisclosure.css +1 -0
- package/dist/assets/Dialog.css +1 -0
- package/dist/assets/Fieldset.css +1 -0
- package/dist/assets/FieldsetHeader.css +1 -0
- package/dist/assets/Form.css +1 -0
- package/dist/assets/Icon.css +1 -0
- package/dist/assets/IconBackdrop.css +1 -0
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Image.css +1 -0
- package/dist/assets/Link.css +1 -1
- package/dist/assets/NumberField.css +1 -1
- package/dist/assets/PasswordField.css +1 -0
- package/dist/assets/PhoneNumberField.css +1 -0
- package/dist/assets/Popover.css +1 -0
- package/dist/assets/Section.css +1 -1
- package/dist/assets/SelectNative.css +1 -0
- package/dist/assets/Slider.css +1 -0
- package/dist/assets/Switch.css +1 -0
- package/dist/assets/TextAreaField.css +1 -1
- package/dist/assets/ToggleButton.css +1 -1
- package/dist/assets/ToggleIconButton.css +1 -1
- package/dist/assets/backgroundColor.css +1 -0
- package/dist/assets/flex.css +1 -1
- package/dist/assets/focusStyles.css +1 -1
- package/dist/assets/foregroundColor.css +1 -0
- 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 +21 -2
- package/dist/components/Box/Box.js +16 -4
- 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/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 +3 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/ClearFieldButton/ClearFieldButton.d.ts +4 -6
- package/dist/components/CreditCardNumberField/CreditCardNumberField.d.ts +29 -0
- package/dist/components/CreditCardNumberField/CreditCardNumberField.js +45 -0
- package/dist/components/CreditCardNumberField/CreditCardNumberField.js.map +1 -0
- package/dist/components/CreditCardNumberField/index.d.ts +1 -0
- package/dist/components/CreditCardNumberField/index.js +5 -0
- package/dist/components/CreditCardNumberField/index.js.map +1 -0
- 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/DetailsDisclosure/DetailsDisclosure.d.ts +33 -0
- package/dist/components/DetailsDisclosure/DetailsDisclosure.js +39 -0
- package/dist/components/DetailsDisclosure/DetailsDisclosure.js.map +1 -0
- package/dist/components/DetailsDisclosure/index.d.ts +2 -0
- package/dist/components/DetailsDisclosure/index.js +5 -0
- package/dist/components/DetailsDisclosure/index.js.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +46 -0
- package/dist/components/Dialog/Dialog.js +117 -0
- package/dist/components/Dialog/Dialog.js.map +1 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.js +5 -0
- package/dist/components/Dialog/index.js.map +1 -0
- package/dist/components/FieldError/FieldError.d.ts +1 -1
- package/dist/components/FieldError/FieldError.js +11 -8
- package/dist/components/FieldError/FieldError.js.map +1 -1
- package/dist/components/FieldHeader/index.d.ts +1 -0
- 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/Heading/Heading.d.ts +26 -7
- package/dist/components/Heading/Heading.js +12 -5
- package/dist/components/Heading/Heading.js.map +1 -1
- package/dist/components/Icon/Icon.d.ts +30 -4
- package/dist/components/Icon/Icon.js +98 -5
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/IconBackdrop/IconBackdrop.d.ts +24 -0
- package/dist/components/IconBackdrop/IconBackdrop.js +34 -0
- package/dist/components/IconBackdrop/IconBackdrop.js.map +1 -0
- package/dist/components/IconBackdrop/index.d.ts +1 -0
- package/dist/components/IconBackdrop/index.js +5 -0
- package/dist/components/IconBackdrop/index.js.map +1 -0
- package/dist/components/IconButton/IconButton.d.ts +13 -4
- package/dist/components/IconButton/IconButton.js +40 -31
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/Image/Image.d.ts +24 -0
- package/dist/components/Image/Image.js +135 -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/NumberField/NumberField.d.ts +4 -34
- package/dist/components/NumberField/NumberField.js +11 -19
- package/dist/components/NumberField/NumberField.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.d.ts +9 -5
- package/dist/components/Paragraph/Paragraph.js +9 -4
- package/dist/components/Paragraph/Paragraph.js.map +1 -1
- package/dist/components/PasswordField/PasswordField.d.ts +30 -0
- package/dist/components/PasswordField/PasswordField.js +104 -0
- package/dist/components/PasswordField/PasswordField.js.map +1 -0
- package/dist/components/PasswordField/index.d.ts +1 -0
- package/dist/components/PasswordField/index.js +5 -0
- package/dist/components/PasswordField/index.js.map +1 -0
- package/dist/components/PhoneNumberField/PhoneNumberField.d.ts +53 -0
- package/dist/components/PhoneNumberField/PhoneNumberField.js +91 -0
- package/dist/components/PhoneNumberField/PhoneNumberField.js.map +1 -0
- package/dist/components/PhoneNumberField/index.d.ts +3 -0
- package/dist/components/PhoneNumberField/index.js +7 -0
- package/dist/components/PhoneNumberField/index.js.map +1 -0
- package/dist/components/Popover/Popover.d.ts +16 -0
- package/dist/components/Popover/Popover.js +68 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.js +5 -0
- package/dist/components/Popover/index.js.map +1 -0
- package/dist/components/Section/Section.d.ts +4 -3
- package/dist/components/Section/Section.js +18 -13
- package/dist/components/Section/Section.js.map +1 -1
- package/dist/components/SelectNative/SelectNative.d.ts +56 -0
- package/dist/components/SelectNative/SelectNative.js +40 -0
- package/dist/components/SelectNative/SelectNative.js.map +1 -0
- package/dist/components/SelectNative/index.d.ts +1 -0
- package/dist/components/SelectNative/index.js +5 -0
- package/dist/components/SelectNative/index.js.map +1 -0
- package/dist/components/Slider/Slider.d.ts +33 -0
- package/dist/components/Slider/Slider.js +113 -0
- package/dist/components/Slider/Slider.js.map +1 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Slider/index.js +5 -0
- package/dist/components/Slider/index.js.map +1 -0
- package/dist/components/SubHeading/SubHeading.d.ts +26 -5
- package/dist/components/SubHeading/SubHeading.js +9 -4
- package/dist/components/SubHeading/SubHeading.js.map +1 -1
- package/dist/components/Switch/Switch.d.ts +7 -0
- package/dist/components/Switch/Switch.js +18 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/index.js +5 -0
- package/dist/components/Switch/index.js.map +1 -0
- 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.d.ts +5 -1
- package/dist/components/Tooltip/Tooltip.js +3 -2
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/_base/Field/Field.d.ts +16 -0
- package/dist/components/_base/Field/Field.js +29 -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 +15 -1
- package/dist/components/index.js +41 -14
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +41 -14
- package/dist/index.js.map +1 -1
- package/dist/react-number-format.es-DMLgWFZX.js +760 -0
- package/dist/react-number-format.es-DMLgWFZX.js.map +1 -0
- package/dist/utils/backgroundColor/backgroundColor.d.ts +8 -0
- package/dist/utils/backgroundColor/backgroundColor.js +102 -0
- package/dist/utils/backgroundColor/backgroundColor.js.map +1 -0
- package/dist/utils/border/border.d.ts +3 -3
- package/dist/utils/creditCard/creditCard.d.ts +7 -0
- package/dist/utils/creditCard/creditCard.js +25 -0
- package/dist/utils/creditCard/creditCard.js.map +1 -0
- package/dist/utils/flex/flex.d.ts +3 -3
- package/dist/utils/flex/flex.js +49 -35
- 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/foregroundColour/foregroundColor.d.ts +8 -0
- package/dist/utils/foregroundColour/foregroundColor.js +125 -0
- package/dist/utils/foregroundColour/foregroundColor.js.map +1 -0
- 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 +98 -98
- package/dist/utils/phoneNumber/phoneNumber.d.ts +24 -0
- package/dist/utils/phoneNumber/phoneNumber.js +566 -0
- package/dist/utils/phoneNumber/phoneNumber.js.map +1 -0
- package/dist/utils/stories/iconPropsArgTypes.js +50 -13
- package/dist/utils/stories/iconPropsArgTypes.js.map +1 -1
- package/package.json +39 -19
- package/dist/assets/NewButton.css +0 -1
- package/dist/assets/backgroundColour.css +0 -1
- package/dist/assets/fgColor.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/utils/backgroundColour/backgroundColour.d.ts +0 -8
- package/dist/utils/backgroundColour/backgroundColour.js +0 -102
- package/dist/utils/backgroundColour/backgroundColour.js.map +0 -1
- package/dist/utils/fgColour/fgColor.d.ts +0 -5
- package/dist/utils/fgColour/fgColor.js +0 -84
- package/dist/utils/fgColour/fgColor.js.map +0 -1
- /package/dist/components/{NewButton → AviosCurrencySymbol}/index.js.map +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-number-format.es-DMLgWFZX.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { InputType } from 'storybook/internal/types';
|
|
3
|
+
export declare const backgroundColorVariants: (props?: ({
|
|
4
|
+
backgroundColor?: "transparent" | "base" | "layer1" | "layer2" | "layer3" | "accentVibrant" | "accentSubtle" | "accentDeep" | "criticalVibrant" | "criticalSubtle" | "warningVibrant" | "warningSubtle" | "cautionVibrant" | "cautionSubtle" | "successVibrant" | "successSubtle" | "informationVibrant" | "informationSubtle" | "inverseVibrant" | "inverseSubtle" | "whiteVibrant" | "whiteSubtle" | "disabledVibrant" | "disabledSubtle" | "saleVibrant" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export type BackgroundVariants = VariantProps<typeof backgroundColorVariants>;
|
|
7
|
+
export declare const backgroundColorOptions: BackgroundVariants['backgroundColor'][];
|
|
8
|
+
export declare const backgroundColorArgTypes: Record<string, InputType>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { c as cva } from "../../index-Bi3v_EjJ.js";
|
|
2
|
+
import '../../assets/backgroundColor.css';const styles = {
|
|
3
|
+
"backgroundColor-transparent": "_backgroundColor-transparent_it5xu_1",
|
|
4
|
+
"backgroundColor-base": "_backgroundColor-base_it5xu_5",
|
|
5
|
+
"backgroundColor-layer1": "_backgroundColor-layer1_it5xu_9",
|
|
6
|
+
"backgroundColor-layer2": "_backgroundColor-layer2_it5xu_13",
|
|
7
|
+
"backgroundColor-layer3": "_backgroundColor-layer3_it5xu_17",
|
|
8
|
+
"backgroundColor-accent-vibrant": "_backgroundColor-accent-vibrant_it5xu_21",
|
|
9
|
+
"backgroundColor-accent-subtle": "_backgroundColor-accent-subtle_it5xu_25",
|
|
10
|
+
"backgroundColor-accent-deep": "_backgroundColor-accent-deep_it5xu_29",
|
|
11
|
+
"backgroundColor-critical-vibrant": "_backgroundColor-critical-vibrant_it5xu_33",
|
|
12
|
+
"backgroundColor-critical-subtle": "_backgroundColor-critical-subtle_it5xu_37",
|
|
13
|
+
"backgroundColor-warning-vibrant": "_backgroundColor-warning-vibrant_it5xu_41",
|
|
14
|
+
"backgroundColor-warning-subtle": "_backgroundColor-warning-subtle_it5xu_45",
|
|
15
|
+
"backgroundColor-caution-vibrant": "_backgroundColor-caution-vibrant_it5xu_49",
|
|
16
|
+
"backgroundColor-caution-subtle": "_backgroundColor-caution-subtle_it5xu_53",
|
|
17
|
+
"backgroundColor-success-vibrant": "_backgroundColor-success-vibrant_it5xu_57",
|
|
18
|
+
"backgroundColor-success-subtle": "_backgroundColor-success-subtle_it5xu_61",
|
|
19
|
+
"backgroundColor-information-vibrant": "_backgroundColor-information-vibrant_it5xu_65",
|
|
20
|
+
"backgroundColor-information-subtle": "_backgroundColor-information-subtle_it5xu_69",
|
|
21
|
+
"backgroundColor-inverse-vibrant": "_backgroundColor-inverse-vibrant_it5xu_73",
|
|
22
|
+
"backgroundColor-inverse-subtle": "_backgroundColor-inverse-subtle_it5xu_77",
|
|
23
|
+
"backgroundColor-white-vibrant": "_backgroundColor-white-vibrant_it5xu_81",
|
|
24
|
+
"backgroundColor-white-subtle": "_backgroundColor-white-subtle_it5xu_85",
|
|
25
|
+
"backgroundColor-disabled-vibrant": "_backgroundColor-disabled-vibrant_it5xu_89",
|
|
26
|
+
"backgroundColor-disabled-subtle": "_backgroundColor-disabled-subtle_it5xu_93",
|
|
27
|
+
"backgroundColor-sale-vibrant": "_backgroundColor-sale-vibrant_it5xu_97"
|
|
28
|
+
};
|
|
29
|
+
const backgroundColorVariants = cva("", {
|
|
30
|
+
variants: {
|
|
31
|
+
backgroundColor: {
|
|
32
|
+
transparent: styles["backgroundColor-transparent"],
|
|
33
|
+
base: styles["backgroundColor-base"],
|
|
34
|
+
layer1: styles["backgroundColor-layer1"],
|
|
35
|
+
layer2: styles["backgroundColor-layer2"],
|
|
36
|
+
layer3: styles["backgroundColor-layer3"],
|
|
37
|
+
accentVibrant: styles["backgroundColor-accent-vibrant"],
|
|
38
|
+
accentSubtle: styles["backgroundColor-accent-subtle"],
|
|
39
|
+
accentDeep: styles["backgroundColor-accent-deep"],
|
|
40
|
+
criticalVibrant: styles["backgroundColor-critical-vibrant"],
|
|
41
|
+
criticalSubtle: styles["backgroundColor-critical-subtle"],
|
|
42
|
+
warningVibrant: styles["backgroundColor-warning-vibrant"],
|
|
43
|
+
warningSubtle: styles["backgroundColor-warning-subtle"],
|
|
44
|
+
cautionVibrant: styles["backgroundColor-caution-vibrant"],
|
|
45
|
+
cautionSubtle: styles["backgroundColor-caution-subtle"],
|
|
46
|
+
successVibrant: styles["backgroundColor-success-vibrant"],
|
|
47
|
+
successSubtle: styles["backgroundColor-success-subtle"],
|
|
48
|
+
informationVibrant: styles["backgroundColor-information-vibrant"],
|
|
49
|
+
informationSubtle: styles["backgroundColor-information-subtle"],
|
|
50
|
+
inverseVibrant: styles["backgroundColor-inverse-vibrant"],
|
|
51
|
+
inverseSubtle: styles["backgroundColor-inverse-subtle"],
|
|
52
|
+
whiteVibrant: styles["backgroundColor-white-vibrant"],
|
|
53
|
+
whiteSubtle: styles["backgroundColor-white-subtle"],
|
|
54
|
+
disabledVibrant: styles["backgroundColor-disabled-vibrant"],
|
|
55
|
+
disabledSubtle: styles["backgroundColor-disabled-subtle"],
|
|
56
|
+
saleVibrant: styles["backgroundColor-sale-vibrant"]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
backgroundColor: "transparent"
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const backgroundColorOptions = [
|
|
64
|
+
"transparent",
|
|
65
|
+
"base",
|
|
66
|
+
"layer1",
|
|
67
|
+
"layer2",
|
|
68
|
+
"layer3",
|
|
69
|
+
"accentVibrant",
|
|
70
|
+
"accentSubtle",
|
|
71
|
+
"accentDeep",
|
|
72
|
+
"criticalVibrant",
|
|
73
|
+
"criticalSubtle",
|
|
74
|
+
"warningVibrant",
|
|
75
|
+
"warningSubtle",
|
|
76
|
+
"cautionVibrant",
|
|
77
|
+
"cautionSubtle",
|
|
78
|
+
"successVibrant",
|
|
79
|
+
"successSubtle",
|
|
80
|
+
"informationVibrant",
|
|
81
|
+
"informationSubtle",
|
|
82
|
+
"inverseVibrant",
|
|
83
|
+
"inverseSubtle",
|
|
84
|
+
"whiteVibrant",
|
|
85
|
+
"whiteSubtle",
|
|
86
|
+
"disabledVibrant",
|
|
87
|
+
"disabledSubtle",
|
|
88
|
+
"saleVibrant"
|
|
89
|
+
];
|
|
90
|
+
const backgroundColorArgTypes = {
|
|
91
|
+
backgroundColor: {
|
|
92
|
+
control: "select",
|
|
93
|
+
options: backgroundColorOptions,
|
|
94
|
+
defaultValue: "transparent"
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
export {
|
|
98
|
+
backgroundColorArgTypes,
|
|
99
|
+
backgroundColorOptions,
|
|
100
|
+
backgroundColorVariants
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=backgroundColor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backgroundColor.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { InputType } from 'storybook/internal/types';
|
|
3
3
|
export declare const borderVariants: (props?: ({
|
|
4
|
-
borderRadius?: "
|
|
5
|
-
borderWidth?: "
|
|
4
|
+
borderRadius?: "none" | "lg" | "sm" | "xs" | "2xs" | "xl" | "md" | "5xs" | "4xs" | "3xs" | "6xs" | "circle" | null | undefined;
|
|
5
|
+
borderWidth?: "none" | "lg" | "sm" | "xs" | "xl" | "md" | null | undefined;
|
|
6
6
|
borderStyle?: "none" | "solid" | "dashed" | null | undefined;
|
|
7
|
-
borderColour?: "
|
|
7
|
+
borderColour?: "secondary" | "white" | "none" | "critical" | "warning" | "caution" | "success" | "tertiary" | "accent" | "information" | "inverse" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
export type BorderVariants = VariantProps<typeof borderVariants>;
|
|
10
10
|
export declare const borderArgTypes: Record<string, InputType>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default card icon detection.
|
|
3
|
+
* Detects the card type based on the BIN (Bank Identification Number)
|
|
4
|
+
* Reference: https://fontawesome.com/search?q=credit%20card&o=r&ip=brands
|
|
5
|
+
* Returns the corresponding icon name.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getCardIcon: (value?: number | string | null) => string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const getCardIcon = (value) => {
|
|
2
|
+
const cleanValue = String(value || "").replace(/\D/g, "");
|
|
3
|
+
if (/^(4026|417500|4508|4844|491(3|7))/.test(cleanValue)) {
|
|
4
|
+
return "cc-visa";
|
|
5
|
+
} else if (cleanValue.startsWith("4")) {
|
|
6
|
+
return "cc-visa";
|
|
7
|
+
} else if (/^(5[1-5]|2(22[1-9]|2[3-9]|[3-6]|7[0-1]|720))/.test(cleanValue)) {
|
|
8
|
+
return "cc-mastercard";
|
|
9
|
+
} else if (/^3[47]/.test(cleanValue)) {
|
|
10
|
+
return "cc-amex";
|
|
11
|
+
} else if (/^(6011|622(12[6-9]|1[3-9]|[2-8]|9[0-1]|92[0-5])|64[4-9]|65)/.test(
|
|
12
|
+
cleanValue
|
|
13
|
+
)) {
|
|
14
|
+
return "cc-discover";
|
|
15
|
+
} else if (/^(36|30[0-5])/.test(cleanValue)) {
|
|
16
|
+
return "cc-diners-club";
|
|
17
|
+
} else if (/^35(2[89]|[3-8])/.test(cleanValue)) {
|
|
18
|
+
return "cc-jcb";
|
|
19
|
+
}
|
|
20
|
+
return "credit-card";
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
getCardIcon
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=creditCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creditCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
export declare const flexVariants: (props?: ({
|
|
3
3
|
display?: "flex" | "inline-flex" | null | undefined;
|
|
4
|
-
justifyContent?: "start" | "center" | "
|
|
4
|
+
justifyContent?: "end" | "start" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly" | null | undefined;
|
|
5
5
|
flexWrap?: "wrap" | "nowrap" | null | undefined;
|
|
6
6
|
flexGrow?: 0 | 1 | null | undefined;
|
|
7
7
|
flexShrink?: 0 | 1 | null | undefined;
|
|
8
8
|
flexDirection?: "row" | "row-reverse" | "column" | "column-reverse" | null | undefined;
|
|
9
|
-
alignItems?: "start" | "center" | "
|
|
10
|
-
gap?: "lg" | "sm" | "xs" | "
|
|
9
|
+
alignItems?: "end" | "start" | "center" | "stretch" | null | undefined;
|
|
10
|
+
gap?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
12
|
export type FlexVariants = VariantProps<typeof flexVariants>;
|
package/dist/utils/flex/flex.js
CHANGED
|
@@ -1,42 +1,49 @@
|
|
|
1
1
|
import { c as cva } from "../../index-Bi3v_EjJ.js";
|
|
2
|
-
import '../../assets/flex.css';const flex = "
|
|
3
|
-
const flexInline = "
|
|
4
|
-
const flexJustifyContentStart = "
|
|
5
|
-
const flexJustifyContentCenter = "
|
|
6
|
-
const flexJustifyContentEnd = "
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
2
|
+
import '../../assets/flex.css';const flex = "_flex_12kod_1";
|
|
3
|
+
const flexInline = "_flexInline_12kod_5";
|
|
4
|
+
const flexJustifyContentStart = "_flexJustifyContentStart_12kod_9";
|
|
5
|
+
const flexJustifyContentCenter = "_flexJustifyContentCenter_12kod_13";
|
|
6
|
+
const flexJustifyContentEnd = "_flexJustifyContentEnd_12kod_17";
|
|
7
|
+
const flexJustifyContentSpaceBetween = "_flexJustifyContentSpaceBetween_12kod_21";
|
|
8
|
+
const flexJustifyContentSpaceAround = "_flexJustifyContentSpaceAround_12kod_25";
|
|
9
|
+
const flexJustifyContentSpaceEvenly = "_flexJustifyContentSpaceEvenly_12kod_29";
|
|
10
|
+
const flexWrapWrap = "_flexWrapWrap_12kod_33";
|
|
11
|
+
const flexWrapNowrap = "_flexWrapNowrap_12kod_37";
|
|
12
|
+
const flexGrow1 = "_flexGrow1_12kod_41";
|
|
13
|
+
const flexGrow0 = "_flexGrow0_12kod_45";
|
|
14
|
+
const flexShrink1 = "_flexShrink1_12kod_49";
|
|
15
|
+
const flexShrink0 = "_flexShrink0_12kod_53";
|
|
16
|
+
const flexDirectionRow = "_flexDirectionRow_12kod_57";
|
|
17
|
+
const flexDirectionRowReverse = "_flexDirectionRowReverse_12kod_61";
|
|
18
|
+
const flexDirectionColumn = "_flexDirectionColumn_12kod_65";
|
|
19
|
+
const flexDirectionColumnReverse = "_flexDirectionColumnReverse_12kod_69";
|
|
20
|
+
const flexAlignItemsStart = "_flexAlignItemsStart_12kod_73";
|
|
21
|
+
const flexAlignItemsCenter = "_flexAlignItemsCenter_12kod_77";
|
|
22
|
+
const flexAlignItemsEnd = "_flexAlignItemsEnd_12kod_81";
|
|
23
|
+
const flexAlignItemsStretch = "_flexAlignItemsStretch_12kod_85";
|
|
24
|
+
const flexGap5xs = "_flexGap5xs_12kod_89";
|
|
25
|
+
const flexGap4xs = "_flexGap4xs_12kod_93";
|
|
26
|
+
const flexGap3xs = "_flexGap3xs_12kod_97";
|
|
27
|
+
const flexGap2xs = "_flexGap2xs_12kod_101";
|
|
28
|
+
const flexGapXs = "_flexGapXs_12kod_105";
|
|
29
|
+
const flexGapSm = "_flexGapSm_12kod_109";
|
|
30
|
+
const flexGapMd = "_flexGapMd_12kod_113";
|
|
31
|
+
const flexGapLg = "_flexGapLg_12kod_117";
|
|
32
|
+
const flexGapXl = "_flexGapXl_12kod_121";
|
|
33
|
+
const flexGap2xl = "_flexGap2xl_12kod_125";
|
|
34
|
+
const flexGap3xl = "_flexGap3xl_12kod_129";
|
|
35
|
+
const flexGap4xl = "_flexGap4xl_12kod_133";
|
|
36
|
+
const flexGap5xl = "_flexGap5xl_12kod_137";
|
|
37
|
+
const flexGap6xl = "_flexGap6xl_12kod_141";
|
|
34
38
|
const styles = {
|
|
35
39
|
flex,
|
|
36
40
|
flexInline,
|
|
37
41
|
flexJustifyContentStart,
|
|
38
42
|
flexJustifyContentCenter,
|
|
39
43
|
flexJustifyContentEnd,
|
|
44
|
+
flexJustifyContentSpaceBetween,
|
|
45
|
+
flexJustifyContentSpaceAround,
|
|
46
|
+
flexJustifyContentSpaceEvenly,
|
|
40
47
|
flexWrapWrap,
|
|
41
48
|
flexWrapNowrap,
|
|
42
49
|
flexGrow1,
|
|
@@ -50,6 +57,7 @@ const styles = {
|
|
|
50
57
|
flexAlignItemsStart,
|
|
51
58
|
flexAlignItemsCenter,
|
|
52
59
|
flexAlignItemsEnd,
|
|
60
|
+
flexAlignItemsStretch,
|
|
53
61
|
flexGap5xs,
|
|
54
62
|
flexGap4xs,
|
|
55
63
|
flexGap3xs,
|
|
@@ -74,7 +82,10 @@ const flexVariants = cva("", {
|
|
|
74
82
|
justifyContent: {
|
|
75
83
|
start: styles["flexJustifyContentStart"],
|
|
76
84
|
center: styles["flexJustifyContentCenter"],
|
|
77
|
-
end: styles["flexJustifyContentEnd"]
|
|
85
|
+
end: styles["flexJustifyContentEnd"],
|
|
86
|
+
spaceBetween: styles["flexJustifyContentSpaceBetween"],
|
|
87
|
+
spaceAround: styles["flexJustifyContentSpaceAround"],
|
|
88
|
+
spaceEvenly: styles["flexJustifyContentSpaceEvenly"]
|
|
78
89
|
},
|
|
79
90
|
flexWrap: {
|
|
80
91
|
wrap: styles["flexWrapWrap"],
|
|
@@ -97,7 +108,8 @@ const flexVariants = cva("", {
|
|
|
97
108
|
alignItems: {
|
|
98
109
|
start: styles["flexAlignItemsStart"],
|
|
99
110
|
center: styles["flexAlignItemsCenter"],
|
|
100
|
-
end: styles["flexAlignItemsEnd"]
|
|
111
|
+
end: styles["flexAlignItemsEnd"],
|
|
112
|
+
stretch: styles["flexAlignItemsStretch"]
|
|
101
113
|
},
|
|
102
114
|
gap: {
|
|
103
115
|
"5xs": styles["flexGap5xs"],
|
|
@@ -117,7 +129,9 @@ const flexVariants = cva("", {
|
|
|
117
129
|
}
|
|
118
130
|
},
|
|
119
131
|
defaultVariants: {
|
|
120
|
-
display: "flex"
|
|
132
|
+
display: "flex",
|
|
133
|
+
alignItems: "stretch",
|
|
134
|
+
justifyContent: "start"
|
|
121
135
|
}
|
|
122
136
|
});
|
|
123
137
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flex.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flex.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as cva } from "../../index-Bi3v_EjJ.js";
|
|
2
|
-
import '../../assets/focusStyles.css';const defaultFocus = "
|
|
3
|
-
const whiteFocus = "
|
|
2
|
+
import '../../assets/focusStyles.css';const defaultFocus = "_defaultFocus_19nac_1";
|
|
3
|
+
const whiteFocus = "_whiteFocus_19nac_5";
|
|
4
4
|
const styles = {
|
|
5
5
|
defaultFocus,
|
|
6
6
|
whiteFocus
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { InputType } from 'storybook/internal/types';
|
|
3
|
+
export declare const foregroundColorVariants: (props?: ({
|
|
4
|
+
foregroundColor?: "secondary" | "default" | "accentPrimary" | "accentSecondary" | "accentOnVibrant" | "accentOnVibrantAccent" | "accentOnSubtle" | "accentOnDeep" | "criticalPrimary" | "criticalOnVibrant" | "criticalOnSubtle" | "warningPrimary" | "warningOnVibrant" | "warningOnSubtle" | "cautionPrimary" | "cautionOnVibrant" | "cautionOnSubtle" | "successPrimary" | "successOnVibrant" | "successOnSubtle" | "informationPrimary" | "informationOnVibrant" | "informationOnSubtle" | "inversePrimary" | "inverseOnVibrant" | "inverseOnSubtle" | "whitePrimary" | "whiteOnVibrant" | "whiteOnSubtle" | "disabledPrimary" | "disabledOnVibrant" | "disabledOnSubtle" | "salePrimary" | "saleOnVibrant" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export type ForegroundVariants = VariantProps<typeof foregroundColorVariants>;
|
|
7
|
+
export declare const foregroundColorOptions: ForegroundVariants['foregroundColor'][];
|
|
8
|
+
export declare const foregroundColorArgTypes: Record<string, InputType>;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { c as cva } from "../../index-Bi3v_EjJ.js";
|
|
2
|
+
import '../../assets/foregroundColor.css';const styles = {
|
|
3
|
+
"foregroundColor-primary": "_foregroundColor-primary_6k06r_1",
|
|
4
|
+
"foregroundColor-secondary": "_foregroundColor-secondary_6k06r_5",
|
|
5
|
+
"foregroundColor-accent-primary": "_foregroundColor-accent-primary_6k06r_9",
|
|
6
|
+
"foregroundColor-accent-secondary": "_foregroundColor-accent-secondary_6k06r_13",
|
|
7
|
+
"foregroundColor-accent-on-vibrant": "_foregroundColor-accent-on-vibrant_6k06r_17",
|
|
8
|
+
"foregroundColor-accent-on-vibrant-accent": "_foregroundColor-accent-on-vibrant-accent_6k06r_21",
|
|
9
|
+
"foregroundColor-accent-on-subtle": "_foregroundColor-accent-on-subtle_6k06r_25",
|
|
10
|
+
"foregroundColor-accent-on-deep": "_foregroundColor-accent-on-deep_6k06r_29",
|
|
11
|
+
"foregroundColor-critical-primary": "_foregroundColor-critical-primary_6k06r_33",
|
|
12
|
+
"foregroundColor-critical-on-vibrant": "_foregroundColor-critical-on-vibrant_6k06r_37",
|
|
13
|
+
"foregroundColor-critical-on-subtle": "_foregroundColor-critical-on-subtle_6k06r_41",
|
|
14
|
+
"foregroundColor-warning-primary": "_foregroundColor-warning-primary_6k06r_45",
|
|
15
|
+
"foregroundColor-warning-on-vibrant": "_foregroundColor-warning-on-vibrant_6k06r_49",
|
|
16
|
+
"foregroundColor-warning-on-subtle": "_foregroundColor-warning-on-subtle_6k06r_53",
|
|
17
|
+
"foregroundColor-caution-primary": "_foregroundColor-caution-primary_6k06r_57",
|
|
18
|
+
"foregroundColor-caution-on-vibrant": "_foregroundColor-caution-on-vibrant_6k06r_61",
|
|
19
|
+
"foregroundColor-caution-on-subtle": "_foregroundColor-caution-on-subtle_6k06r_65",
|
|
20
|
+
"foregroundColor-success-primary": "_foregroundColor-success-primary_6k06r_69",
|
|
21
|
+
"foregroundColor-success-on-vibrant": "_foregroundColor-success-on-vibrant_6k06r_73",
|
|
22
|
+
"foregroundColor-success-on-subtle": "_foregroundColor-success-on-subtle_6k06r_77",
|
|
23
|
+
"foregroundColor-information-primary": "_foregroundColor-information-primary_6k06r_81",
|
|
24
|
+
"foregroundColor-information-on-vibrant": "_foregroundColor-information-on-vibrant_6k06r_85",
|
|
25
|
+
"foregroundColor-information-on-subtle": "_foregroundColor-information-on-subtle_6k06r_89",
|
|
26
|
+
"foregroundColor-inverse-primary": "_foregroundColor-inverse-primary_6k06r_93",
|
|
27
|
+
"foregroundColor-inverse-on-vibrant": "_foregroundColor-inverse-on-vibrant_6k06r_97",
|
|
28
|
+
"foregroundColor-inverse-on-subtle": "_foregroundColor-inverse-on-subtle_6k06r_101",
|
|
29
|
+
"foregroundColor-white-primary": "_foregroundColor-white-primary_6k06r_105",
|
|
30
|
+
"foregroundColor-white-on-vibrant": "_foregroundColor-white-on-vibrant_6k06r_109",
|
|
31
|
+
"foregroundColor-white-on-subtle": "_foregroundColor-white-on-subtle_6k06r_113",
|
|
32
|
+
"foregroundColor-disabled-primary": "_foregroundColor-disabled-primary_6k06r_117",
|
|
33
|
+
"foregroundColor-disabled-on-vibrant": "_foregroundColor-disabled-on-vibrant_6k06r_121",
|
|
34
|
+
"foregroundColor-disabled-on-subtle": "_foregroundColor-disabled-on-subtle_6k06r_125",
|
|
35
|
+
"foregroundColor-sale-primary": "_foregroundColor-sale-primary_6k06r_129",
|
|
36
|
+
"foregroundColor-sale-on-vibrant": "_foregroundColor-sale-on-vibrant_6k06r_133"
|
|
37
|
+
};
|
|
38
|
+
const foregroundColorVariants = cva("", {
|
|
39
|
+
variants: {
|
|
40
|
+
foregroundColor: {
|
|
41
|
+
default: styles["foregroundColor-primary"],
|
|
42
|
+
secondary: styles["foregroundColor-secondary"],
|
|
43
|
+
accentPrimary: styles["foregroundColor-accent-primary"],
|
|
44
|
+
accentSecondary: styles["foregroundColor-accent-secondary"],
|
|
45
|
+
accentOnVibrant: styles["foregroundColor-accent-on-vibrant"],
|
|
46
|
+
accentOnVibrantAccent: styles["foregroundColor-accent-on-vibrant-accent"],
|
|
47
|
+
accentOnSubtle: styles["foregroundColor-accent-on-subtle"],
|
|
48
|
+
accentOnDeep: styles["foregroundColor-accent-on-deep"],
|
|
49
|
+
criticalPrimary: styles["foregroundColor-critical-primary"],
|
|
50
|
+
criticalOnVibrant: styles["foregroundColor-critical-on-vibrant"],
|
|
51
|
+
criticalOnSubtle: styles["foregroundColor-critical-on-subtle"],
|
|
52
|
+
warningPrimary: styles["foregroundColor-warning-primary"],
|
|
53
|
+
warningOnVibrant: styles["foregroundColor-warning-on-vibrant"],
|
|
54
|
+
warningOnSubtle: styles["foregroundColor-warning-on-subtle"],
|
|
55
|
+
cautionPrimary: styles["foregroundColor-caution-primary"],
|
|
56
|
+
cautionOnVibrant: styles["foregroundColor-caution-on-vibrant"],
|
|
57
|
+
cautionOnSubtle: styles["foregroundColor-caution-on-subtle"],
|
|
58
|
+
successPrimary: styles["foregroundColor-success-primary"],
|
|
59
|
+
successOnVibrant: styles["foregroundColor-success-on-vibrant"],
|
|
60
|
+
successOnSubtle: styles["foregroundColor-success-on-subtle"],
|
|
61
|
+
informationPrimary: styles["foregroundColor-information-primary"],
|
|
62
|
+
informationOnVibrant: styles["foregroundColor-information-on-vibrant"],
|
|
63
|
+
informationOnSubtle: styles["foregroundColor-information-on-subtle"],
|
|
64
|
+
inversePrimary: styles["foregroundColor-inverse-primary"],
|
|
65
|
+
inverseOnVibrant: styles["foregroundColor-inverse-on-vibrant"],
|
|
66
|
+
inverseOnSubtle: styles["foregroundColor-inverse-on-subtle"],
|
|
67
|
+
whitePrimary: styles["foregroundColor-white-primary"],
|
|
68
|
+
whiteOnVibrant: styles["foregroundColor-white-on-vibrant"],
|
|
69
|
+
whiteOnSubtle: styles["foregroundColor-white-on-subtle"],
|
|
70
|
+
disabledPrimary: styles["foregroundColor-disabled-primary"],
|
|
71
|
+
disabledOnVibrant: styles["foregroundColor-disabled-on-vibrant"],
|
|
72
|
+
disabledOnSubtle: styles["foregroundColor-disabled-on-subtle"],
|
|
73
|
+
salePrimary: styles["foregroundColor-sale-primary"],
|
|
74
|
+
saleOnVibrant: styles["foregroundColor-sale-on-vibrant"]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
const foregroundColorOptions = [
|
|
79
|
+
"secondary",
|
|
80
|
+
"accentPrimary",
|
|
81
|
+
"accentSecondary",
|
|
82
|
+
"accentOnVibrant",
|
|
83
|
+
"accentOnVibrantAccent",
|
|
84
|
+
"accentOnSubtle",
|
|
85
|
+
"accentOnDeep",
|
|
86
|
+
"criticalPrimary",
|
|
87
|
+
"criticalOnVibrant",
|
|
88
|
+
"criticalOnSubtle",
|
|
89
|
+
"warningPrimary",
|
|
90
|
+
"warningOnVibrant",
|
|
91
|
+
"warningOnSubtle",
|
|
92
|
+
"cautionPrimary",
|
|
93
|
+
"cautionOnVibrant",
|
|
94
|
+
"cautionOnSubtle",
|
|
95
|
+
"successPrimary",
|
|
96
|
+
"successOnVibrant",
|
|
97
|
+
"successOnSubtle",
|
|
98
|
+
"informationPrimary",
|
|
99
|
+
"informationOnVibrant",
|
|
100
|
+
"informationOnSubtle",
|
|
101
|
+
"inversePrimary",
|
|
102
|
+
"inverseOnVibrant",
|
|
103
|
+
"inverseOnSubtle",
|
|
104
|
+
"whitePrimary",
|
|
105
|
+
"whiteOnVibrant",
|
|
106
|
+
"whiteOnSubtle",
|
|
107
|
+
"disabledPrimary",
|
|
108
|
+
"disabledOnVibrant",
|
|
109
|
+
"disabledOnSubtle",
|
|
110
|
+
"salePrimary",
|
|
111
|
+
"saleOnVibrant"
|
|
112
|
+
];
|
|
113
|
+
const foregroundColorArgTypes = {
|
|
114
|
+
foregroundColor: {
|
|
115
|
+
control: "select",
|
|
116
|
+
options: foregroundColorOptions,
|
|
117
|
+
defaultValue: "transparent"
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
foregroundColorArgTypes,
|
|
122
|
+
foregroundColorOptions,
|
|
123
|
+
foregroundColorVariants
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=foregroundColor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foregroundColor.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formProps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { InputType } from 'storybook/internal/types';
|
|
3
3
|
export declare const paddingVariants: (props?: ({
|
|
4
|
-
padding?: "lg" | "sm" | "xs" | "
|
|
5
|
-
paddingX?: "lg" | "sm" | "xs" | "
|
|
6
|
-
paddingY?: "lg" | "sm" | "xs" | "
|
|
7
|
-
paddingTop?: "lg" | "sm" | "xs" | "
|
|
8
|
-
paddingRight?: "lg" | "sm" | "xs" | "
|
|
9
|
-
paddingBottom?: "lg" | "sm" | "xs" | "
|
|
10
|
-
paddingLeft?: "lg" | "sm" | "xs" | "
|
|
4
|
+
padding?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
|
|
5
|
+
paddingX?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
|
|
6
|
+
paddingY?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
|
|
7
|
+
paddingTop?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
|
|
8
|
+
paddingRight?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
|
|
9
|
+
paddingBottom?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
|
|
10
|
+
paddingLeft?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
12
|
export type PaddingVariants = VariantProps<typeof paddingVariants>;
|
|
13
13
|
export declare const paddingArgTypes: Record<string, InputType>;
|