@alto-avios/alto-ui 3.0.0 → 3.2.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.
Files changed (213) hide show
  1. package/dist/assets/Accordion.css +1 -0
  2. package/dist/assets/AviosBadge.css +1 -0
  3. package/dist/assets/Button.css +1 -1
  4. package/dist/assets/CalloutBanner.css +1 -0
  5. package/dist/assets/CreditCardNumberField.css +1 -0
  6. package/dist/assets/DetailsDisclosure.css +1 -0
  7. package/dist/assets/Dialog.css +1 -0
  8. package/dist/assets/ErrorSummary.css +1 -0
  9. package/dist/assets/FieldHeader.css +1 -1
  10. package/dist/assets/FieldLabel.css +1 -1
  11. package/dist/assets/FieldsetHeader.css +1 -1
  12. package/dist/assets/Icon.css +1 -0
  13. package/dist/assets/IconBackdrop.css +1 -0
  14. package/dist/assets/IconButton.css +1 -1
  15. package/dist/assets/Menu.css +1 -0
  16. package/dist/assets/PasswordField.css +1 -0
  17. package/dist/assets/PhoneNumberField.css +1 -0
  18. package/dist/assets/Popover.css +1 -0
  19. package/dist/assets/SelectCard.css +1 -0
  20. package/dist/assets/SelectNative.css +1 -0
  21. package/dist/assets/Slider.css +1 -0
  22. package/dist/assets/Switch.css +1 -0
  23. package/dist/assets/Tag.css +1 -1
  24. package/dist/assets/ToggleButton.css +1 -1
  25. package/dist/assets/ToggleIconButton.css +1 -1
  26. package/dist/assets/backgroundColor.css +1 -0
  27. package/dist/assets/flex.css +1 -1
  28. package/dist/assets/foregroundColor.css +1 -0
  29. package/dist/assets/position.css +1 -0
  30. package/dist/components/Accordion/Accordion.d.ts +35 -0
  31. package/dist/components/Accordion/Accordion.js +140 -0
  32. package/dist/components/Accordion/Accordion.js.map +1 -0
  33. package/dist/components/Accordion/index.d.ts +1 -0
  34. package/dist/components/Accordion/index.js +5 -0
  35. package/dist/components/Accordion/index.js.map +1 -0
  36. package/dist/components/AviosBadge/AviosBadge.d.ts +34 -0
  37. package/dist/components/AviosBadge/AviosBadge.js +58 -0
  38. package/dist/components/AviosBadge/AviosBadge.js.map +1 -0
  39. package/dist/components/AviosBadge/index.d.ts +1 -0
  40. package/dist/components/AviosBadge/index.js +5 -0
  41. package/dist/components/AviosBadge/index.js.map +1 -0
  42. package/dist/components/Badge/Badge.d.ts +7 -2
  43. package/dist/components/Badge/Badge.js +2 -1
  44. package/dist/components/Badge/Badge.js.map +1 -1
  45. package/dist/components/Box/Box.d.ts +9 -5
  46. package/dist/components/Box/Box.js +10 -1
  47. package/dist/components/Box/Box.js.map +1 -1
  48. package/dist/components/Button/Button.js +31 -31
  49. package/dist/components/CalloutBanner/CalloutBanner.d.ts +21 -0
  50. package/dist/components/CalloutBanner/CalloutBanner.js +96 -0
  51. package/dist/components/CalloutBanner/CalloutBanner.js.map +1 -0
  52. package/dist/components/CalloutBanner/index.d.ts +1 -0
  53. package/dist/components/CalloutBanner/index.js +5 -0
  54. package/dist/components/CalloutBanner/index.js.map +1 -0
  55. package/dist/components/Checkbox/index.d.ts +1 -0
  56. package/dist/components/CreditCardNumberField/CreditCardNumberField.d.ts +29 -0
  57. package/dist/components/CreditCardNumberField/CreditCardNumberField.js +46 -0
  58. package/dist/components/CreditCardNumberField/CreditCardNumberField.js.map +1 -0
  59. package/dist/components/CreditCardNumberField/index.d.ts +1 -0
  60. package/dist/components/CreditCardNumberField/index.js +5 -0
  61. package/dist/components/CreditCardNumberField/index.js.map +1 -0
  62. package/dist/components/DateField/DateField.d.ts +22 -3
  63. package/dist/components/DateField/DateField.js +856 -2
  64. package/dist/components/DateField/DateField.js.map +1 -1
  65. package/dist/components/DetailsDisclosure/DetailsDisclosure.d.ts +33 -0
  66. package/dist/components/DetailsDisclosure/DetailsDisclosure.js +39 -0
  67. package/dist/components/DetailsDisclosure/DetailsDisclosure.js.map +1 -0
  68. package/dist/components/DetailsDisclosure/index.d.ts +2 -0
  69. package/dist/components/DetailsDisclosure/index.js +5 -0
  70. package/dist/components/DetailsDisclosure/index.js.map +1 -0
  71. package/dist/components/Dialog/Dialog.d.ts +46 -0
  72. package/dist/components/Dialog/Dialog.js +117 -0
  73. package/dist/components/Dialog/Dialog.js.map +1 -0
  74. package/dist/components/Dialog/index.d.ts +1 -0
  75. package/dist/components/Dialog/index.js +5 -0
  76. package/dist/components/Dialog/index.js.map +1 -0
  77. package/dist/components/ErrorSummary/ErrorSummary.d.ts +7 -0
  78. package/dist/components/ErrorSummary/ErrorSummary.js +44 -0
  79. package/dist/components/ErrorSummary/ErrorSummary.js.map +1 -0
  80. package/dist/components/ErrorSummary/index.d.ts +1 -0
  81. package/dist/components/ErrorSummary/index.js +5 -0
  82. package/dist/components/ErrorSummary/index.js.map +1 -0
  83. package/dist/components/FieldError/FieldError.js +1 -1
  84. package/dist/components/FieldHeader/FieldHeader.js +6 -6
  85. package/dist/components/FieldLabel/FieldLabel.js +1 -1
  86. package/dist/components/FieldsetHeader/FieldsetHeader.js +3 -3
  87. package/dist/components/Heading/Heading.d.ts +25 -6
  88. package/dist/components/Heading/Heading.js +9 -4
  89. package/dist/components/Heading/Heading.js.map +1 -1
  90. package/dist/components/Icon/Icon.d.ts +31 -4
  91. package/dist/components/Icon/Icon.js +98 -5
  92. package/dist/components/Icon/Icon.js.map +1 -1
  93. package/dist/components/IconBackdrop/IconBackdrop.d.ts +24 -0
  94. package/dist/components/IconBackdrop/IconBackdrop.js +34 -0
  95. package/dist/components/IconBackdrop/IconBackdrop.js.map +1 -0
  96. package/dist/components/IconBackdrop/index.d.ts +1 -0
  97. package/dist/components/IconBackdrop/index.js +5 -0
  98. package/dist/components/IconBackdrop/index.js.map +1 -0
  99. package/dist/components/IconButton/IconButton.d.ts +1 -1
  100. package/dist/components/IconButton/IconButton.js +28 -28
  101. package/dist/components/Image/Image.d.ts +3 -2
  102. package/dist/components/Image/Image.js +7 -2
  103. package/dist/components/Image/Image.js.map +1 -1
  104. package/dist/components/Link/Link.d.ts +3 -3
  105. package/dist/components/Link/Link.js +2 -2
  106. package/dist/components/Menu/Menu.d.ts +75 -0
  107. package/dist/components/Menu/Menu.js +356 -0
  108. package/dist/components/Menu/Menu.js.map +1 -0
  109. package/dist/components/Menu/index.d.ts +1 -0
  110. package/dist/components/Menu/index.js +5 -0
  111. package/dist/components/Menu/index.js.map +1 -0
  112. package/dist/components/Paragraph/Paragraph.d.ts +9 -5
  113. package/dist/components/Paragraph/Paragraph.js +9 -4
  114. package/dist/components/Paragraph/Paragraph.js.map +1 -1
  115. package/dist/components/PasswordField/PasswordField.d.ts +30 -0
  116. package/dist/components/PasswordField/PasswordField.js +104 -0
  117. package/dist/components/PasswordField/PasswordField.js.map +1 -0
  118. package/dist/components/PasswordField/index.d.ts +1 -0
  119. package/dist/components/PasswordField/index.js +5 -0
  120. package/dist/components/PasswordField/index.js.map +1 -0
  121. package/dist/components/PhoneNumberField/PhoneNumberField.d.ts +53 -0
  122. package/dist/components/PhoneNumberField/PhoneNumberField.js +96 -0
  123. package/dist/components/PhoneNumberField/PhoneNumberField.js.map +1 -0
  124. package/dist/components/PhoneNumberField/index.d.ts +3 -0
  125. package/dist/components/PhoneNumberField/index.js +7 -0
  126. package/dist/components/PhoneNumberField/index.js.map +1 -0
  127. package/dist/components/Popover/Popover.d.ts +48 -0
  128. package/dist/components/Popover/Popover.js +65 -0
  129. package/dist/components/Popover/Popover.js.map +1 -0
  130. package/dist/components/Popover/index.d.ts +1 -0
  131. package/dist/components/Popover/index.js +5 -0
  132. package/dist/components/Popover/index.js.map +1 -0
  133. package/dist/components/Radio/index.d.ts +1 -0
  134. package/dist/components/Section/Section.d.ts +2 -1
  135. package/dist/components/Section/Section.js +7 -2
  136. package/dist/components/Section/Section.js.map +1 -1
  137. package/dist/components/SelectCard/SelectCard.d.ts +51 -0
  138. package/dist/components/SelectCard/SelectCard.js +85 -0
  139. package/dist/components/SelectCard/SelectCard.js.map +1 -0
  140. package/dist/components/SelectCard/index.d.ts +1 -0
  141. package/dist/components/SelectCard/index.js +5 -0
  142. package/dist/components/SelectCard/index.js.map +1 -0
  143. package/dist/components/SelectNative/SelectNative.d.ts +56 -0
  144. package/dist/components/SelectNative/SelectNative.js +40 -0
  145. package/dist/components/SelectNative/SelectNative.js.map +1 -0
  146. package/dist/components/SelectNative/index.d.ts +1 -0
  147. package/dist/components/SelectNative/index.js +5 -0
  148. package/dist/components/SelectNative/index.js.map +1 -0
  149. package/dist/components/Slider/Slider.d.ts +33 -0
  150. package/dist/components/Slider/Slider.js +113 -0
  151. package/dist/components/Slider/Slider.js.map +1 -0
  152. package/dist/components/Slider/index.d.ts +1 -0
  153. package/dist/components/Slider/index.js +5 -0
  154. package/dist/components/Slider/index.js.map +1 -0
  155. package/dist/components/SubHeading/SubHeading.d.ts +26 -5
  156. package/dist/components/SubHeading/SubHeading.js +9 -4
  157. package/dist/components/SubHeading/SubHeading.js.map +1 -1
  158. package/dist/components/Switch/Switch.d.ts +7 -0
  159. package/dist/components/Switch/Switch.js +18 -0
  160. package/dist/components/Switch/Switch.js.map +1 -0
  161. package/dist/components/Switch/index.d.ts +1 -0
  162. package/dist/components/Switch/index.js +5 -0
  163. package/dist/components/Switch/index.js.map +1 -0
  164. package/dist/components/Tag/Tag.js +4 -4
  165. package/dist/components/ToggleButton/ToggleButton.js +6 -6
  166. package/dist/components/ToggleIconButton/ToggleIconButton.js +6 -6
  167. package/dist/components/Tooltip/Tooltip.d.ts +5 -1
  168. package/dist/components/Tooltip/Tooltip.js +2 -1
  169. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  170. package/dist/components/_base/Field/Field.d.ts +2 -2
  171. package/dist/components/_base/Field/Field.js +2 -5
  172. package/dist/components/_base/Field/Field.js.map +1 -1
  173. package/dist/components/index.d.ts +16 -0
  174. package/dist/components/index.js +45 -14
  175. package/dist/components/index.js.map +1 -1
  176. package/dist/index.js +45 -14
  177. package/dist/index.js.map +1 -1
  178. package/dist/react-number-format.es-DMLgWFZX.js +760 -0
  179. package/dist/react-number-format.es-DMLgWFZX.js.map +1 -0
  180. package/dist/utils/backgroundColor/backgroundColor.d.ts +8 -0
  181. package/dist/utils/backgroundColor/backgroundColor.js +102 -0
  182. package/dist/utils/backgroundColor/backgroundColor.js.map +1 -0
  183. package/dist/utils/border/border.d.ts +3 -3
  184. package/dist/utils/creditCard/creditCard.d.ts +7 -0
  185. package/dist/utils/creditCard/creditCard.js +25 -0
  186. package/dist/utils/creditCard/creditCard.js.map +1 -0
  187. package/dist/utils/flex/flex.d.ts +11 -6
  188. package/dist/utils/flex/flex.js +390 -46
  189. package/dist/utils/flex/flex.js.map +1 -1
  190. package/dist/utils/flex/flex.test.d.ts +1 -0
  191. package/dist/utils/focus/focusStyles.d.ts +1 -1
  192. package/dist/utils/foregroundColour/foregroundColor.d.ts +8 -0
  193. package/dist/utils/foregroundColour/foregroundColor.js +125 -0
  194. package/dist/utils/foregroundColour/foregroundColor.js.map +1 -0
  195. package/dist/utils/padding/padding.d.ts +7 -7
  196. package/dist/utils/phoneNumber/phoneNumber.d.ts +24 -0
  197. package/dist/utils/phoneNumber/phoneNumber.js +566 -0
  198. package/dist/utils/phoneNumber/phoneNumber.js.map +1 -0
  199. package/dist/utils/position/position.d.ts +8 -0
  200. package/dist/utils/position/position.js +57 -0
  201. package/dist/utils/position/position.js.map +1 -0
  202. package/dist/utils/position/position.test.d.ts +1 -0
  203. package/dist/utils/stories/iconPropsArgTypes.js +49 -13
  204. package/dist/utils/stories/iconPropsArgTypes.js.map +1 -1
  205. package/package.json +2 -1
  206. package/dist/assets/backgroundColour.css +0 -1
  207. package/dist/assets/fgColor.css +0 -1
  208. package/dist/utils/backgroundColour/backgroundColour.d.ts +0 -8
  209. package/dist/utils/backgroundColour/backgroundColour.js +0 -102
  210. package/dist/utils/backgroundColour/backgroundColour.js.map +0 -1
  211. package/dist/utils/fgColour/fgColor.d.ts +0 -5
  212. package/dist/utils/fgColour/fgColor.js +0 -84
  213. package/dist/utils/fgColour/fgColor.js.map +0 -1
@@ -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?: "none" | "lg" | "sm" | "xs" | "md" | "5xs" | "4xs" | "3xs" | "2xs" | "xl" | "6xs" | "circle" | null | undefined;
5
- borderWidth?: "none" | "lg" | "sm" | "xs" | "md" | "xl" | null | undefined;
4
+ borderRadius?: "none" | "lg" | "sm" | "xs" | "2xs" | "xl" | "circle" | "md" | "5xs" | "4xs" | "3xs" | "6xs" | null | undefined;
5
+ borderWidth?: "none" | "lg" | "sm" | "xs" | "xl" | "md" | null | undefined;
6
6
  borderStyle?: "none" | "solid" | "dashed" | null | undefined;
7
- borderColour?: "secondary" | "white" | "none" | "critical" | "warning" | "caution" | "success" | "tertiary" | "accent" | "information" | "inverse" | null | undefined;
7
+ borderColour?: "secondary" | "none" | "white" | "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,17 @@
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?: "end" | "start" | "center" | null | undefined;
5
- flexWrap?: "wrap" | "nowrap" | null | undefined;
6
- flexGrow?: 0 | 1 | null | undefined;
7
- flexShrink?: 0 | 1 | null | undefined;
4
+ alignItems?: "center" | "end" | "start" | "flexStart" | "flexEnd" | "stretch" | "selfStart" | "selfEnd" | "selfCenter" | null | undefined;
5
+ justifyContent?: "left" | "right" | "center" | "end" | "inherit" | "initial" | "start" | "flexStart" | "flexEnd" | "stretch" | "spaceBetween" | "spaceAround" | "spaceEvenly" | "normal" | "revert" | "revertLayer" | "unset" | null | undefined;
6
+ flexWrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
7
+ flexGrow?: 0 | 1 | "inherit" | "initial" | "revert" | "revertLayer" | "unset" | null | undefined;
8
+ flexShrink?: 0 | 1 | "inherit" | "initial" | "revert" | "revertLayer" | "unset" | null | undefined;
8
9
  flexDirection?: "row" | "row-reverse" | "column" | "column-reverse" | null | undefined;
9
- alignItems?: "end" | "start" | "center" | null | undefined;
10
- gap?: "lg" | "sm" | "xs" | "md" | "5xs" | "4xs" | "3xs" | "2xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
10
+ alignSelf?: "center" | "end" | "auto" | "baseline" | "inherit" | "initial" | "start" | "flexStart" | "flexEnd" | "stretch" | "selfStart" | "selfEnd" | "normal" | "revert" | "revertLayer" | "unset" | null | undefined;
11
+ alignContent?: "center" | "end" | "baseline" | "inherit" | "initial" | "start" | "flexStart" | "flexEnd" | "stretch" | "spaceBetween" | "spaceAround" | "spaceEvenly" | "normal" | "revert" | "revertLayer" | "unset" | "firstBaseline" | "lastBaseline" | "safeCenter" | "unsafeCenter" | null | undefined;
12
+ flexBasis?: "inherit" | "initial" | "content" | "revert" | "revertLayer" | "unset" | "maxContent" | "minContent" | "fitContent" | null | undefined;
13
+ gap?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
14
+ rowGap?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
15
+ columnGap?: "lg" | "sm" | "xs" | "2xs" | "xl" | "2xl" | "md" | "5xs" | "4xs" | "3xs" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
11
16
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
17
  export type FlexVariants = VariantProps<typeof flexVariants>;