@arc-ui/components 11.10.0 → 11.12.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 (163) hide show
  1. package/dist/Alert/Alert.cjs.js +8 -8
  2. package/dist/Alert/Alert.esm.js +8 -8
  3. package/dist/Badge/Badge.cjs.js +2 -2
  4. package/dist/Badge/Badge.esm.js +2 -2
  5. package/dist/Box/Box.cjs.js +1 -1
  6. package/dist/Box/Box.esm.js +1 -1
  7. package/dist/BrandLogo/BrandLogo.cjs.js +2 -2
  8. package/dist/BrandLogo/BrandLogo.esm.js +2 -2
  9. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +4 -4
  10. package/dist/Breadcrumbs/Breadcrumbs.esm.js +4 -4
  11. package/dist/Button/Button.cjs.js +5 -5
  12. package/dist/Button/Button.esm.js +5 -5
  13. package/dist/Card/Card.cjs.js +5 -5
  14. package/dist/Card/Card.esm.js +5 -5
  15. package/dist/Checkbox/Checkbox.cjs.js +8 -8
  16. package/dist/Checkbox/Checkbox.esm.js +8 -8
  17. package/dist/Disclosure/Disclosure.cjs.js +3 -3
  18. package/dist/Disclosure/Disclosure.esm.js +3 -3
  19. package/dist/DisclosureMini/DisclosureMini.cjs.js +4 -4
  20. package/dist/DisclosureMini/DisclosureMini.esm.js +4 -4
  21. package/dist/Filter/Filter.cjs.js +2 -2
  22. package/dist/Filter/Filter.esm.js +2 -2
  23. package/dist/FormControl/FormControl.cjs.js +6 -6
  24. package/dist/FormControl/FormControl.esm.js +6 -6
  25. package/dist/Group/Group.cjs.js +2 -2
  26. package/dist/Group/Group.esm.js +2 -2
  27. package/dist/Heading/Heading.cjs.js +2 -2
  28. package/dist/Heading/Heading.esm.js +2 -2
  29. package/dist/Icon/Icon.cjs.js +2 -2
  30. package/dist/Icon/Icon.esm.js +2 -2
  31. package/dist/Markup/Markup.cjs.js +1 -1
  32. package/dist/Markup/Markup.esm.js +1 -1
  33. package/dist/Modal/Modal.cjs.js +8 -8
  34. package/dist/Modal/Modal.esm.js +8 -8
  35. package/dist/Pagination/Pagination.cjs.js +6 -6
  36. package/dist/Pagination/Pagination.esm.js +6 -6
  37. package/dist/PaginationSimple/PaginationSimple.cjs.js +4 -4
  38. package/dist/PaginationSimple/PaginationSimple.esm.js +4 -4
  39. package/dist/Poster/Poster.cjs.js +2 -2
  40. package/dist/Poster/Poster.esm.js +2 -2
  41. package/dist/ProgressBar/ProgressBar.cjs.js +14 -16
  42. package/dist/ProgressBar/ProgressBar.esm.js +14 -16
  43. package/dist/ProgressStepper/ProgressStepper.cjs.js +4 -4
  44. package/dist/ProgressStepper/ProgressStepper.esm.js +4 -4
  45. package/dist/RadioGroup/RadioGroup.cjs.js +7 -7
  46. package/dist/RadioGroup/RadioGroup.esm.js +7 -7
  47. package/dist/Rule/Rule.cjs.js +1 -1
  48. package/dist/Rule/Rule.esm.js +1 -1
  49. package/dist/ScrollToTop/ScrollToTop.cjs.js +8 -9
  50. package/dist/ScrollToTop/ScrollToTop.esm.js +8 -9
  51. package/dist/Select/Select.cjs.js +35 -23
  52. package/dist/Select/Select.esm.js +35 -23
  53. package/dist/SiteFooter/SiteFooter.cjs.js +4 -4
  54. package/dist/SiteFooter/SiteFooter.esm.js +5 -5
  55. package/dist/SiteHeader/SiteHeader.cjs.js +10 -10
  56. package/dist/SiteHeader/SiteHeader.esm.js +10 -10
  57. package/dist/Surface/Surface.cjs.js +1 -1
  58. package/dist/Surface/Surface.esm.js +1 -1
  59. package/dist/Switch/Switch.cjs.js +8 -8
  60. package/dist/Switch/Switch.esm.js +8 -8
  61. package/dist/Tabs/Tabs.cjs.js +3 -3
  62. package/dist/Tabs/Tabs.esm.js +3 -3
  63. package/dist/Tag/Tag.cjs.js +16 -19
  64. package/dist/Tag/Tag.esm.js +16 -19
  65. package/dist/Text/Text.cjs.js +2 -2
  66. package/dist/Text/Text.esm.js +2 -2
  67. package/dist/TextArea/TextArea.cjs.js +31 -32
  68. package/dist/TextArea/TextArea.esm.js +31 -32
  69. package/dist/TextInput/TextInput.cjs.js +7 -7
  70. package/dist/TextInput/TextInput.esm.js +7 -7
  71. package/dist/Toast/Toast.cjs.js +6 -6
  72. package/dist/Toast/Toast.esm.js +6 -6
  73. package/dist/UniversalHeader/UniversalHeader.cjs.js +2 -2
  74. package/dist/UniversalHeader/UniversalHeader.esm.js +2 -2
  75. package/dist/_shared/cjs/{BrandLogo-f001e0c0.js → BrandLogo-aea340c8.js} +1 -1
  76. package/dist/_shared/cjs/{Breadcrumbs-9aa1d18b.js → Breadcrumbs-ed70e75a.js} +3 -3
  77. package/dist/_shared/cjs/{BtIconAlert.esm-e62a75b7.js → BtIconAlert.esm-1a0ff9f0.js} +9 -11
  78. package/dist/_shared/cjs/{BtIconChevronDown2Px.esm-c6f8ced2.js → BtIconChevronDown2Px.esm-39030ee0.js} +6 -7
  79. package/dist/_shared/cjs/BtIconChevronLeftMid.esm-0aaa6770.js +28 -0
  80. package/dist/_shared/cjs/{BtIconChevronRight2Px.esm-3c438341.js → BtIconChevronRight2Px.esm-dbf8cbee.js} +12 -14
  81. package/dist/_shared/cjs/BtIconChevronRightMid.esm-d01ebbd4.js +28 -0
  82. package/dist/_shared/cjs/{BtIconCrossAlt2Px.esm-c002bf55.js → BtIconCrossAlt2Px.esm-1452b14b.js} +6 -7
  83. package/dist/_shared/cjs/BtIconTick.esm-844eac6c.js +80 -0
  84. package/dist/_shared/cjs/{BtIconTickAlt2Px.esm-4862184c.js → BtIconTickAlt2Px.esm-57c89acc.js} +6 -7
  85. package/dist/_shared/cjs/{Button-c22c9787.js → Button-4fed080a.js} +6 -5
  86. package/dist/_shared/cjs/{Card-55a1c129.js → Card-17dcc171.js} +4 -4
  87. package/dist/_shared/cjs/{Checkbox-7ce718e7.js → Checkbox-b126194e.js} +4 -4
  88. package/dist/_shared/cjs/{DisclosureMini-c666cc4d.js → DisclosureMini-d0eeb6bb.js} +3 -3
  89. package/dist/_shared/cjs/{Filter-22b8b171.js → Filter-1bde635c.js} +1 -1
  90. package/dist/_shared/cjs/{FormControl-5541ac3a.js → FormControl-7daf8110.js} +4 -4
  91. package/dist/_shared/cjs/{Group-143a4578.js → Group-0429741a.js} +1 -1
  92. package/dist/_shared/cjs/{Heading-ba2f74ad.js → Heading-27cba320.js} +1 -1
  93. package/dist/_shared/cjs/{Icon-cf30e736.js → Icon-a9801f05.js} +6 -6
  94. package/dist/_shared/cjs/{Poster-62e2ba67.js → Poster-9b48fd61.js} +1 -1
  95. package/dist/_shared/cjs/{ProgressStepper-92668367.js → ProgressStepper-9cdc0afe.js} +21 -24
  96. package/dist/_shared/cjs/{RadioGroup-66c1e882.js → RadioGroup-56e3b0e5.js} +2 -2
  97. package/dist/_shared/cjs/{SiteFooter-d3babe07.js → SiteFooter-6381ac4a.js} +3 -3
  98. package/dist/_shared/cjs/{SiteHeader.rehydrator-b7284004.js → SiteHeader.rehydrator-a3f07c9e.js} +9 -9
  99. package/dist/_shared/cjs/{Surface-80c0909a.js → Surface-038db6e1.js} +2 -3
  100. package/dist/_shared/cjs/{Tabs-65e7af8a.js → Tabs-2d2a517d.js} +14 -16
  101. package/dist/_shared/cjs/{Text-76b7fea1.js → Text-606ca3a2.js} +1 -1
  102. package/dist/_shared/cjs/{TextInput-5bee337d.js → TextInput-bf1fe052.js} +13 -10
  103. package/dist/_shared/cjs/{Toast-874d9be4.js → Toast-69108261.js} +4 -4
  104. package/dist/_shared/cjs/{UniversalHeader-f5a225b6.js → UniversalHeader-5e43d320.js} +1 -1
  105. package/dist/_shared/esm/{BrandLogo-51fc6f15.js → BrandLogo-1af78f76.js} +1 -1
  106. package/dist/_shared/esm/{Breadcrumbs-50d0f406.js → Breadcrumbs-87e2bd46.js} +3 -3
  107. package/dist/_shared/esm/{BtIconAlert.esm-09346130.js → BtIconAlert.esm-a4608d47.js} +9 -11
  108. package/dist/_shared/esm/{BtIconChevronDown2Px.esm-345d78fe.js → BtIconChevronDown2Px.esm-217276c2.js} +6 -7
  109. package/dist/_shared/esm/BtIconChevronLeftMid.esm-1ed8330b.js +22 -0
  110. package/dist/_shared/esm/{BtIconChevronRight2Px.esm-2c693ef3.js → BtIconChevronRight2Px.esm-75e92636.js} +12 -14
  111. package/dist/_shared/esm/BtIconChevronRightMid.esm-32268f1a.js +22 -0
  112. package/dist/_shared/esm/BtIconCrossAlt2Px.esm-7165ab1a.js +20 -0
  113. package/dist/_shared/esm/BtIconTick.esm-e265098f.js +72 -0
  114. package/dist/_shared/esm/{BtIconTickAlt2Px.esm-ce22224b.js → BtIconTickAlt2Px.esm-0bc2ded0.js} +6 -7
  115. package/dist/_shared/esm/{Button-67f68b14.js → Button-a453e8e4.js} +6 -5
  116. package/dist/_shared/esm/{Card-bf0c3b0b.js → Card-201e9f28.js} +4 -4
  117. package/dist/_shared/esm/{Checkbox-50e2d4ab.js → Checkbox-d6ec5024.js} +4 -4
  118. package/dist/_shared/esm/{DisclosureMini-376c013c.js → DisclosureMini-ec17b008.js} +3 -3
  119. package/dist/_shared/esm/{Filter-f7ac126b.js → Filter-58a42358.js} +1 -1
  120. package/dist/_shared/esm/{FormControl-aad4288c.js → FormControl-351e5f1b.js} +4 -4
  121. package/dist/_shared/esm/{Group-0129c979.js → Group-73fdb896.js} +1 -1
  122. package/dist/_shared/esm/{Heading-8bb7b7c0.js → Heading-d16e0e53.js} +1 -1
  123. package/dist/_shared/esm/{Icon-3bfabb14.js → Icon-abd0d990.js} +6 -6
  124. package/dist/_shared/esm/{Poster-046b0f77.js → Poster-4ec2f679.js} +1 -1
  125. package/dist/_shared/esm/{ProgressStepper-3ffbdb73.js → ProgressStepper-f51f86c3.js} +21 -24
  126. package/dist/_shared/esm/{RadioGroup-1273a716.js → RadioGroup-c838764c.js} +2 -2
  127. package/dist/_shared/esm/{SiteFooter-60d1b216.js → SiteFooter-233bb926.js} +3 -3
  128. package/dist/_shared/esm/{SiteHeader.rehydrator-029f568e.js → SiteHeader.rehydrator-8f554bfd.js} +9 -9
  129. package/dist/_shared/esm/{Surface-c6e817cd.js → Surface-0ca6817d.js} +2 -3
  130. package/dist/_shared/esm/{Tabs-ec960828.js → Tabs-f903187a.js} +14 -16
  131. package/dist/_shared/esm/{Text-a3720712.js → Text-14f586ac.js} +1 -1
  132. package/dist/_shared/esm/{TextInput-732f0b51.js → TextInput-991804b6.js} +13 -10
  133. package/dist/_shared/esm/{Toast-b81384a4.js → Toast-37549e68.js} +4 -4
  134. package/dist/_shared/esm/{UniversalHeader-354a1867.js → UniversalHeader-b4c1577c.js} +1 -1
  135. package/dist/index.es.js +190 -201
  136. package/dist/index.es.js.map +1 -1
  137. package/dist/index.js +190 -201
  138. package/dist/index.js.map +1 -1
  139. package/dist/styles.css +4 -4
  140. package/dist/types/components/Alert/Alert.d.ts +2 -2
  141. package/dist/types/components/Box/index.d.ts +1 -1
  142. package/dist/types/components/BrandLogo/BrandLogo.d.ts +2 -2
  143. package/dist/types/components/Button/Button.d.ts +4 -0
  144. package/dist/types/components/Columns/index.d.ts +1 -1
  145. package/dist/types/components/Curve/Curve.d.ts +4 -4
  146. package/dist/types/components/Icon/Icon.d.ts +1 -1
  147. package/dist/types/components/Image/Image.d.ts +4 -4
  148. package/dist/types/components/MediaCard/MediaCard.d.ts +1 -1
  149. package/dist/types/components/Poster/PosterImage.d.ts +2 -2
  150. package/dist/types/components/Poster/PosterVideo.d.ts +1 -1
  151. package/dist/types/components/Select/Select.d.ts +1 -0
  152. package/dist/types/components/SiteHeader/SiteHeader.d.ts +1 -1
  153. package/dist/types/components/Surface/index.d.ts +1 -1
  154. package/dist/types/components/TextInput/TextInput.d.ts +4 -0
  155. package/dist/types/hooks/use-aria-describedby.d.ts +1 -1
  156. package/package.json +8 -7
  157. package/dist/_shared/cjs/BtIconChevronLeftMid.esm-7c2fc822.js +0 -29
  158. package/dist/_shared/cjs/BtIconChevronRightMid.esm-cce080c8.js +0 -29
  159. package/dist/_shared/cjs/BtIconTick.esm-613dfd8a.js +0 -85
  160. package/dist/_shared/esm/BtIconChevronLeftMid.esm-e69276cb.js +0 -23
  161. package/dist/_shared/esm/BtIconChevronRightMid.esm-24809a93.js +0 -23
  162. package/dist/_shared/esm/BtIconCrossAlt2Px.esm-425a6beb.js +0 -21
  163. package/dist/_shared/esm/BtIconTick.esm-673282f5.js +0 -77
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import { ReactNode, FC } from "react";
2
2
  import { HeadingProps } from "../Heading/Heading";
3
3
  import { ArcIcon } from "../../types/arc-icon";
4
4
  /** use `Alert` to display persistent messages, either permanent or dismissible. */
@@ -15,7 +15,7 @@ export interface AlertProps {
15
15
  /**
16
16
  * Determine a description for `<Alert />`
17
17
  */
18
- description?: string;
18
+ description?: string | ReactNode;
19
19
  /**
20
20
  * Determine a link for `<Alert />`
21
21
  */
@@ -1 +1 @@
1
- export { Box, BoxProps } from "./Box";
1
+ export { Box, type BoxProps } from "./Box";
@@ -9,7 +9,7 @@ export interface BrandLogoProps {
9
9
  /**
10
10
  * Color of the BrandLogo. The `brand` color only shows on light surfaces.
11
11
  */
12
- color?: typeof colors[number];
12
+ color?: (typeof colors)[number];
13
13
  /**
14
14
  * Accessible text for the BrandLogo.
15
15
  */
@@ -21,5 +21,5 @@ export interface BrandLogoProps {
21
21
  /**
22
22
  * Optional sub-brand variant. Only applies to BT.
23
23
  */
24
- subBrand?: typeof subBrands[number];
24
+ subBrand?: (typeof subBrands)[number];
25
25
  }
@@ -92,6 +92,10 @@ export interface ButtonProps extends ButtonElementProps, LinkElementProps {
92
92
  * Optional property to provide component Ref
93
93
  */
94
94
  ref?: Ref;
95
+ /**
96
+ * How should a Button icon be displayed?
97
+ */
98
+ size?: "s" | "m" | "l";
95
99
  /**
96
100
  * Optional supporting text for the Button.
97
101
  */
@@ -1 +1 @@
1
- export { Columns, Span } from "./Columns";
1
+ export { Columns, type Span } from "./Columns";
@@ -14,11 +14,11 @@ export interface CurveProps {
14
14
  /**
15
15
  * Bottom color of the Curve. Shares values with Surface.
16
16
  */
17
- bottomColor?: typeof backgroundsBT[number];
17
+ bottomColor?: (typeof backgroundsBT)[number];
18
18
  /**
19
19
  * Positional variants of the Curve.
20
20
  */
21
- from?: typeof positions[number];
21
+ from?: (typeof positions)[number];
22
22
  /**
23
23
  * Should the Curve colors be flipped? Normally used at the top of Poster.
24
24
  */
@@ -26,9 +26,9 @@ export interface CurveProps {
26
26
  /**
27
27
  * Size of the Curve.
28
28
  */
29
- size?: typeof sizes[number];
29
+ size?: (typeof sizes)[number];
30
30
  /**
31
31
  * Top color of the Curve. Shares values with Surface.
32
32
  */
33
- topColor?: typeof backgroundsBT[number];
33
+ topColor?: (typeof backgroundsBT)[number];
34
34
  }
@@ -9,7 +9,7 @@ export interface IconProps {
9
9
  /**
10
10
  * Color of the Icon.
11
11
  */
12
- color?: typeof colors[number];
12
+ color?: (typeof colors)[number];
13
13
  /**
14
14
  * Should the Icon component be styled as an inline element?
15
15
  */
@@ -45,7 +45,7 @@ export interface ImageProps extends HTMLAttributes<HTMLElement> {
45
45
  /**
46
46
  * Anchor point for the Image if using fit="cover".
47
47
  */
48
- anchor?: typeof anchorPoints[number];
48
+ anchor?: (typeof anchorPoints)[number];
49
49
  /**
50
50
  * Optionally enable HTML <picture> functionality by passing `Image.Source`
51
51
  * components as children.
@@ -58,7 +58,7 @@ export interface ImageProps extends HTMLAttributes<HTMLElement> {
58
58
  /**
59
59
  * Fit of the Image.
60
60
  */
61
- fit?: typeof fitOptions[number];
61
+ fit?: (typeof fitOptions)[number];
62
62
  /**
63
63
  * Height dimension of the Image, in pixels. If fit="cover", the height in which
64
64
  * to fit the Image. Otherwise, the intrinsic height of the Image element.
@@ -67,12 +67,12 @@ export interface ImageProps extends HTMLAttributes<HTMLElement> {
67
67
  /**
68
68
  * Loading behaviour of the Image.
69
69
  */
70
- loading?: typeof loadingOptions[number];
70
+ loading?: (typeof loadingOptions)[number];
71
71
  /**
72
72
  * Apply an overlay to the Image, e.g. a scrim gradient for text legibility.
73
73
  * Should not be used if the image has a rasterized overlay.
74
74
  */
75
- overlay?: typeof overlayOptions[number];
75
+ overlay?: (typeof overlayOptions)[number];
76
76
  /**
77
77
  * The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Only required if srcSet is switching widths. Ignored if `children` (<source> elements) are present.
78
78
  */
@@ -45,7 +45,7 @@ export interface MediaCardProps {
45
45
  /**
46
46
  * Loading behaviour of the MediaCard.
47
47
  */
48
- imageLoading?: typeof loadingOptions[number];
48
+ imageLoading?: (typeof loadingOptions)[number];
49
49
  /**
50
50
  * The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Required if srcSet is defined.
51
51
  */
@@ -10,11 +10,11 @@ export interface PosterImageProps {
10
10
  /**
11
11
  * Anchor point for the Poster.Image.
12
12
  */
13
- anchor?: typeof anchorPoints[number];
13
+ anchor?: (typeof anchorPoints)[number];
14
14
  /**
15
15
  * Loading behaviour of the Poster.Image.
16
16
  */
17
- loading?: typeof loadingOptions[number];
17
+ loading?: (typeof loadingOptions)[number];
18
18
  /**
19
19
  * The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute for the Poster.Image. Required if `srcSet` is defined.
20
20
  */
@@ -5,7 +5,7 @@ export interface PosterVideoProps {
5
5
  /**
6
6
  * Anchor point for the Poster.Video,
7
7
  */
8
- anchor?: typeof anchorPoints[number];
8
+ anchor?: (typeof anchorPoints)[number];
9
9
  /**
10
10
  * Should the Poster.Video autoplay?
11
11
  */
@@ -15,6 +15,7 @@ export interface SelectProps extends Omit<FormControlProps, "children" | "elemen
15
15
  onChange?: (value: string) => void;
16
16
  onBlur?: (e: FocusEvent) => void;
17
17
  onOpenChange?: () => void;
18
+ selectSize?: "s" | "m" | "l";
18
19
  isFluid?: boolean;
19
20
  isDisabled?: boolean;
20
21
  isDefaultOpen?: boolean;
@@ -70,6 +70,6 @@ export interface SiteHeaderProps {
70
70
  /**
71
71
  * Optional sub-brand variant. Only applies to BT.
72
72
  */
73
- subBrand?: typeof subBrands[number];
73
+ subBrand?: (typeof subBrands)[number];
74
74
  }
75
75
  export { Context as SiteHeaderContext };
@@ -1 +1 @@
1
- export { Surface, SurfaceContext, backgrounds, backgroundsBT, SurfacePadding, SurfaceBackgroundColor } from "./Surface";
1
+ export { Surface, SurfaceContext, backgrounds, backgroundsBT, type SurfacePadding, type SurfaceBackgroundColor, } from "./Surface";
@@ -58,6 +58,10 @@ export interface TextInputProps extends Omit<FormControlProps, "children" | "ele
58
58
  * Validation regex pattern.
59
59
  */
60
60
  pattern?: string;
61
+ /**
62
+ * Size of the input.
63
+ */
64
+ inputSize?: "s" | "m" | "l";
61
65
  /**
62
66
  * Enable button to toggle TextInput type from `Selected Type` to `Text`
63
67
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Optionally define ariaDescribedBy if errorMessage or helper exist.
3
3
  */
4
- export declare const useAriaDescribedby: ({ id, idError, idHelper, idDisclosure, errorMessage, helper, disclosureText }: {
4
+ export declare const useAriaDescribedby: ({ id, idError, idHelper, idDisclosure, errorMessage, helper, disclosureText, }: {
5
5
  id?: string | undefined;
6
6
  idError?: string | undefined;
7
7
  idDisclosure?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arc-ui/components",
3
- "version": "11.10.0",
3
+ "version": "11.12.0",
4
4
  "homepage": "https://ui.digital-ent-int.bt.com",
5
5
  "author": "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
6
6
  "main": "./dist/index.js",
@@ -11,9 +11,8 @@
11
11
  "storybook": "storybook dev -p 6006",
12
12
  "storybook:build": "storybook build --quiet",
13
13
  "storybook:quiet": "pnpm run storybook --quiet",
14
- "test": "TZ=UTC jest",
15
- "test:coverage": "pnpm run test --coverage",
16
- "test:watch": "pnpm run test --changedSince=origin/master --coverage --watch",
14
+ "test": "cypress open --component",
15
+ "test:ci": "cypress run --component --browser chrome",
17
16
  "generate:component": "node ./generate-component $1"
18
17
  },
19
18
  "files": [
@@ -59,9 +58,9 @@
59
58
  "@storybook/react-webpack5": "^7.4.5",
60
59
  "@storybook/testing-library": "^0.2.1",
61
60
  "@storybook/theming": "^7.4.5",
62
- "@types/classnames": "^2.2.10",
61
+ "@testing-library/cypress": "^10.0.1",
63
62
  "@types/lodash": "^4.14.184",
64
- "@types/node": "^12.12.38",
63
+ "@types/node": "^12.20.55",
65
64
  "@types/prop-types": "^15.7.3",
66
65
  "@types/react": "^18.0.26",
67
66
  "@types/react-dom": "^18.0.9",
@@ -70,6 +69,7 @@
70
69
  "camelcase": "^6.2.1",
71
70
  "classnames": "^2.2.6",
72
71
  "countries-list": "^2.6.1",
72
+ "cypress": "^13.3.0",
73
73
  "formik": "^2.2.9",
74
74
  "lodash": "^4.17.21",
75
75
  "postcss": "^8.0.0",
@@ -88,7 +88,8 @@
88
88
  "rollup-plugin-postcss": "^4.0.0",
89
89
  "storybook": "^7.4.5",
90
90
  "tslib": "^2.0.1",
91
- "typescript": "^4.0.2",
91
+ "typescript": "^4.9.5",
92
+ "vite": "^4.4.5",
92
93
  "yup": "^0.32.11"
93
94
  }
94
95
  }
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
-
5
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
-
7
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
8
-
9
- const BtIconChevronLeftMid = props =>
10
- /*#__PURE__*/ React__default["default"].createElement(
11
- "svg",
12
- Object.assign(
13
- {
14
- viewBox: "0 0 16 16",
15
- fill: "none",
16
- xmlns: "http://www.w3.org/2000/svg"
17
- },
18
- props
19
- ),
20
- /*#__PURE__*/ React__default["default"].createElement("path", {
21
- fillRule: "evenodd",
22
- clipRule: "evenodd",
23
- d:
24
- "M7.62107 8.00023L10.4697 10.8522C10.5957 10.9785 10.6665 11.1495 10.6665 11.3279C10.6665 11.5063 10.5957 11.6773 10.4697 11.8036C10.4074 11.866 10.3335 11.9155 10.252 11.9493C10.1706 11.983 10.0833 12.0004 9.99507 12.0004C9.9069 12.0004 9.81959 11.983 9.73814 11.9493C9.65669 11.9155 9.5827 11.866 9.52041 11.8036L6.19641 8.47556C6.07061 8.34935 5.99998 8.17842 5.99998 8.00023C5.99998 7.82203 6.07061 7.6511 6.19641 7.52489L9.52041 4.19689C9.5827 4.13449 9.65669 4.08498 9.73814 4.0512C9.81959 4.01741 9.9069 4.00003 9.99507 4.00003C10.0832 4.00003 10.1706 4.01741 10.252 4.0512C10.3335 4.08498 10.4074 4.13449 10.4697 4.19689C10.5957 4.32313 10.6665 4.4942 10.6665 4.67256C10.6665 4.85092 10.5957 5.02199 10.4697 5.14823L7.62107 8.00023Z",
25
- fill: "currentColor"
26
- })
27
- );
28
-
29
- exports.BtIconChevronLeftMid = BtIconChevronLeftMid;
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
-
5
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
-
7
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
8
-
9
- const BtIconChevronRightMid = props =>
10
- /*#__PURE__*/ React__default["default"].createElement(
11
- "svg",
12
- Object.assign(
13
- {
14
- viewBox: "0 0 16 16",
15
- fill: "none",
16
- xmlns: "http://www.w3.org/2000/svg"
17
- },
18
- props
19
- ),
20
- /*#__PURE__*/ React__default["default"].createElement("path", {
21
- fillRule: "evenodd",
22
- clipRule: "evenodd",
23
- d:
24
- "M9.04543 8.0002L6.19676 5.1482C6.07077 5.02196 6 4.85089 6 4.67253C6 4.49418 6.07077 4.32311 6.19676 4.19687C6.25906 4.13446 6.33304 4.08495 6.41449 4.05117C6.49594 4.01739 6.58325 4 6.67143 4C6.75961 4 6.84692 4.01739 6.92837 4.05117C7.00982 4.08495 7.0838 4.13446 7.1461 4.19687L10.4701 7.52487C10.5959 7.65108 10.6665 7.82201 10.6665 8.0002C10.6665 8.1784 10.5959 8.34932 10.4701 8.47553L7.1461 11.8035C7.0838 11.8659 7.00982 11.9155 6.92837 11.9492C6.84692 11.983 6.75961 12.0004 6.67143 12.0004C6.58325 12.0004 6.49594 11.983 6.41449 11.9492C6.33304 11.9155 6.25906 11.8659 6.19676 11.8035C6.07077 11.6773 6 11.5062 6 11.3279C6 11.1495 6.07077 10.9784 6.19676 10.8522L9.04543 8.0002Z",
25
- fill: "currentColor"
26
- })
27
- );
28
-
29
- exports.BtIconChevronRightMid = BtIconChevronRightMid;
@@ -1,85 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
-
5
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
-
7
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
8
-
9
- const BtIconNotification = props =>
10
- /*#__PURE__*/ React__default["default"].createElement(
11
- "svg",
12
- Object.assign(
13
- {
14
- xmlns: "http://www.w3.org/2000/svg",
15
- viewBox: "0 0 32 32"
16
- },
17
- props
18
- ),
19
- /*#__PURE__*/ React__default["default"].createElement("defs", null),
20
- /*#__PURE__*/ React__default["default"].createElement("path", {
21
- d:
22
- "M24.50977,21.98867,24,21.99014,23.99414,13.975a7.98466,7.98466,0,0,0-6.66046-7.86011,1.46733,1.46733,0,0,0,.15655-.65063,1.48633,1.48633,0,1,0-2.97265,0,1.46732,1.46732,0,0,0,.15826.65369,7.9849,7.9849,0,0,0-6.63971,7.857v8.0166l-.50781-.00293a1.50464,1.50464,0,1,0,0,3.00928h3.45679a1.997,1.997,0,0,0,3.99365,0h9.532a1.50464,1.50464,0,1,0-.001-3.00928ZM16.00391,4.97793a.48633.48633,0,1,1-.48633.48633A.48668.48668,0,0,1,16.00391,4.97793ZM12.98242,25.97158a.998.998,0,0,1-.99469-.97363h1.98841A.99785.99785,0,0,1,12.98242,25.97158ZM24.51074,23.998H7.52832a.50465.50465,0,0,1-.00488-1.00928l1.51269.00293V13.975a6.979,6.979,0,0,1,13.958.00049L23,22.99209l1.51074-.00342a.50464.50464,0,1,1,0,1.00928Z",
23
- fill: "currentColor"
24
- })
25
- );
26
-
27
- const BtIconAlertTriangle = props =>
28
- /*#__PURE__*/ React__default["default"].createElement(
29
- "svg",
30
- Object.assign(
31
- {
32
- xmlns: "http://www.w3.org/2000/svg",
33
- viewBox: "0 0 32 32"
34
- },
35
- props
36
- ),
37
- /*#__PURE__*/ React__default["default"].createElement("defs", null),
38
- /*#__PURE__*/ React__default["default"].createElement("path", {
39
- fill: "currentColor",
40
- d: "M16 21.99335A1 1 0 1 0 16 23.99335 1 1 0 1 0 16 21.99335z"
41
- }),
42
- /*#__PURE__*/ React__default["default"].createElement("path", {
43
- d:
44
- "M16.00488,20.00977a.49972.49972,0,0,0,.5-.5l.002-9.00977a.5.5,0,0,0-1,0l-.002,9.00977A.5.5,0,0,0,16.00488,20.00977Z",
45
- fill: "currentColor"
46
- }),
47
- /*#__PURE__*/ React__default["default"].createElement("path", {
48
- d:
49
- "M29.83691,26.21,17.041,4.5332A1.15617,1.15617,0,0,0,16.03711,3.959h-.001a1.159,1.159,0,0,0-1.00586.57373L2.23535,26.21045a1.16676,1.16676,0,0,0,1.00488,1.76074H28.83105A1.16843,1.16843,0,0,0,29.83691,26.21Zm-.86035.67725a.164.164,0,0,1-.14551.084H3.24023a.16737.16737,0,0,1-.14355-.25244L15.8916,5.0415a.167.167,0,0,1,.28809,0l12.7959,21.67627A.16531.16531,0,0,1,28.97656,26.88721Z",
50
- fill: "currentColor"
51
- })
52
- );
53
-
54
- const BtIconTick = props =>
55
- /*#__PURE__*/ React__default["default"].createElement(
56
- "svg",
57
- Object.assign(
58
- {
59
- xmlns: "http://www.w3.org/2000/svg",
60
- viewBox: "0 0 32 32"
61
- },
62
- props
63
- ),
64
- /*#__PURE__*/ React__default["default"].createElement("defs", null),
65
- /*#__PURE__*/ React__default["default"].createElement(
66
- "g",
67
- {
68
- "data-name": "Icons"
69
- },
70
- /*#__PURE__*/ React__default["default"].createElement("path", {
71
- d:
72
- "M16,3A13,13,0,1,1,3,16,12.9741,12.9741,0,0,1,16,3m0-1A14,14,0,1,0,30,16,14.04116,14.04116,0,0,0,16,2Z",
73
- fill: "currentColor"
74
- }),
75
- /*#__PURE__*/ React__default["default"].createElement("path", {
76
- d:
77
- "M13.5,21.2,9.1,16.8a.495.495,0,1,1,.7-.7l3.6,3.6L22,11.1a.495.495,0,1,1,.7.7Z",
78
- fill: "currentColor"
79
- })
80
- )
81
- );
82
-
83
- exports.BtIconAlertTriangle = BtIconAlertTriangle;
84
- exports.BtIconNotification = BtIconNotification;
85
- exports.BtIconTick = BtIconTick;
@@ -1,23 +0,0 @@
1
- import React__default from 'react';
2
-
3
- const BtIconChevronLeftMid = props =>
4
- /*#__PURE__*/ React__default.createElement(
5
- "svg",
6
- Object.assign(
7
- {
8
- viewBox: "0 0 16 16",
9
- fill: "none",
10
- xmlns: "http://www.w3.org/2000/svg"
11
- },
12
- props
13
- ),
14
- /*#__PURE__*/ React__default.createElement("path", {
15
- fillRule: "evenodd",
16
- clipRule: "evenodd",
17
- d:
18
- "M7.62107 8.00023L10.4697 10.8522C10.5957 10.9785 10.6665 11.1495 10.6665 11.3279C10.6665 11.5063 10.5957 11.6773 10.4697 11.8036C10.4074 11.866 10.3335 11.9155 10.252 11.9493C10.1706 11.983 10.0833 12.0004 9.99507 12.0004C9.9069 12.0004 9.81959 11.983 9.73814 11.9493C9.65669 11.9155 9.5827 11.866 9.52041 11.8036L6.19641 8.47556C6.07061 8.34935 5.99998 8.17842 5.99998 8.00023C5.99998 7.82203 6.07061 7.6511 6.19641 7.52489L9.52041 4.19689C9.5827 4.13449 9.65669 4.08498 9.73814 4.0512C9.81959 4.01741 9.9069 4.00003 9.99507 4.00003C10.0832 4.00003 10.1706 4.01741 10.252 4.0512C10.3335 4.08498 10.4074 4.13449 10.4697 4.19689C10.5957 4.32313 10.6665 4.4942 10.6665 4.67256C10.6665 4.85092 10.5957 5.02199 10.4697 5.14823L7.62107 8.00023Z",
19
- fill: "currentColor"
20
- })
21
- );
22
-
23
- export { BtIconChevronLeftMid as B };
@@ -1,23 +0,0 @@
1
- import React__default from 'react';
2
-
3
- const BtIconChevronRightMid = props =>
4
- /*#__PURE__*/ React__default.createElement(
5
- "svg",
6
- Object.assign(
7
- {
8
- viewBox: "0 0 16 16",
9
- fill: "none",
10
- xmlns: "http://www.w3.org/2000/svg"
11
- },
12
- props
13
- ),
14
- /*#__PURE__*/ React__default.createElement("path", {
15
- fillRule: "evenodd",
16
- clipRule: "evenodd",
17
- d:
18
- "M9.04543 8.0002L6.19676 5.1482C6.07077 5.02196 6 4.85089 6 4.67253C6 4.49418 6.07077 4.32311 6.19676 4.19687C6.25906 4.13446 6.33304 4.08495 6.41449 4.05117C6.49594 4.01739 6.58325 4 6.67143 4C6.75961 4 6.84692 4.01739 6.92837 4.05117C7.00982 4.08495 7.0838 4.13446 7.1461 4.19687L10.4701 7.52487C10.5959 7.65108 10.6665 7.82201 10.6665 8.0002C10.6665 8.1784 10.5959 8.34932 10.4701 8.47553L7.1461 11.8035C7.0838 11.8659 7.00982 11.9155 6.92837 11.9492C6.84692 11.983 6.75961 12.0004 6.67143 12.0004C6.58325 12.0004 6.49594 11.983 6.41449 11.9492C6.33304 11.9155 6.25906 11.8659 6.19676 11.8035C6.07077 11.6773 6 11.5062 6 11.3279C6 11.1495 6.07077 10.9784 6.19676 10.8522L9.04543 8.0002Z",
19
- fill: "currentColor"
20
- })
21
- );
22
-
23
- export { BtIconChevronRightMid as B };
@@ -1,21 +0,0 @@
1
- import React__default from 'react';
2
-
3
- const BtIconCrossAlt2Px = props =>
4
- /*#__PURE__*/ React__default.createElement(
5
- "svg",
6
- Object.assign(
7
- {
8
- xmlns: "http://www.w3.org/2000/svg",
9
- viewBox: "0 0 32 32"
10
- },
11
- props
12
- ),
13
- /*#__PURE__*/ React__default.createElement("defs", null),
14
- /*#__PURE__*/ React__default.createElement("path", {
15
- d:
16
- "M17.41406,16l3.793-3.793A.99989.99989,0,0,0,19.793,10.793L16,14.58594l-3.793-3.793A.99989.99989,0,0,0,10.793,12.207L14.58594,16l-3.793,3.793A.99989.99989,0,1,0,12.207,21.207L16,17.41406l3.793,3.793A.99989.99989,0,0,0,21.207,19.793Z",
17
- fill: "currentColor"
18
- })
19
- );
20
-
21
- export { BtIconCrossAlt2Px as B };
@@ -1,77 +0,0 @@
1
- import React__default from 'react';
2
-
3
- const BtIconNotification = props =>
4
- /*#__PURE__*/ React__default.createElement(
5
- "svg",
6
- Object.assign(
7
- {
8
- xmlns: "http://www.w3.org/2000/svg",
9
- viewBox: "0 0 32 32"
10
- },
11
- props
12
- ),
13
- /*#__PURE__*/ React__default.createElement("defs", null),
14
- /*#__PURE__*/ React__default.createElement("path", {
15
- d:
16
- "M24.50977,21.98867,24,21.99014,23.99414,13.975a7.98466,7.98466,0,0,0-6.66046-7.86011,1.46733,1.46733,0,0,0,.15655-.65063,1.48633,1.48633,0,1,0-2.97265,0,1.46732,1.46732,0,0,0,.15826.65369,7.9849,7.9849,0,0,0-6.63971,7.857v8.0166l-.50781-.00293a1.50464,1.50464,0,1,0,0,3.00928h3.45679a1.997,1.997,0,0,0,3.99365,0h9.532a1.50464,1.50464,0,1,0-.001-3.00928ZM16.00391,4.97793a.48633.48633,0,1,1-.48633.48633A.48668.48668,0,0,1,16.00391,4.97793ZM12.98242,25.97158a.998.998,0,0,1-.99469-.97363h1.98841A.99785.99785,0,0,1,12.98242,25.97158ZM24.51074,23.998H7.52832a.50465.50465,0,0,1-.00488-1.00928l1.51269.00293V13.975a6.979,6.979,0,0,1,13.958.00049L23,22.99209l1.51074-.00342a.50464.50464,0,1,1,0,1.00928Z",
17
- fill: "currentColor"
18
- })
19
- );
20
-
21
- const BtIconAlertTriangle = props =>
22
- /*#__PURE__*/ React__default.createElement(
23
- "svg",
24
- Object.assign(
25
- {
26
- xmlns: "http://www.w3.org/2000/svg",
27
- viewBox: "0 0 32 32"
28
- },
29
- props
30
- ),
31
- /*#__PURE__*/ React__default.createElement("defs", null),
32
- /*#__PURE__*/ React__default.createElement("path", {
33
- fill: "currentColor",
34
- d: "M16 21.99335A1 1 0 1 0 16 23.99335 1 1 0 1 0 16 21.99335z"
35
- }),
36
- /*#__PURE__*/ React__default.createElement("path", {
37
- d:
38
- "M16.00488,20.00977a.49972.49972,0,0,0,.5-.5l.002-9.00977a.5.5,0,0,0-1,0l-.002,9.00977A.5.5,0,0,0,16.00488,20.00977Z",
39
- fill: "currentColor"
40
- }),
41
- /*#__PURE__*/ React__default.createElement("path", {
42
- d:
43
- "M29.83691,26.21,17.041,4.5332A1.15617,1.15617,0,0,0,16.03711,3.959h-.001a1.159,1.159,0,0,0-1.00586.57373L2.23535,26.21045a1.16676,1.16676,0,0,0,1.00488,1.76074H28.83105A1.16843,1.16843,0,0,0,29.83691,26.21Zm-.86035.67725a.164.164,0,0,1-.14551.084H3.24023a.16737.16737,0,0,1-.14355-.25244L15.8916,5.0415a.167.167,0,0,1,.28809,0l12.7959,21.67627A.16531.16531,0,0,1,28.97656,26.88721Z",
44
- fill: "currentColor"
45
- })
46
- );
47
-
48
- const BtIconTick = props =>
49
- /*#__PURE__*/ React__default.createElement(
50
- "svg",
51
- Object.assign(
52
- {
53
- xmlns: "http://www.w3.org/2000/svg",
54
- viewBox: "0 0 32 32"
55
- },
56
- props
57
- ),
58
- /*#__PURE__*/ React__default.createElement("defs", null),
59
- /*#__PURE__*/ React__default.createElement(
60
- "g",
61
- {
62
- "data-name": "Icons"
63
- },
64
- /*#__PURE__*/ React__default.createElement("path", {
65
- d:
66
- "M16,3A13,13,0,1,1,3,16,12.9741,12.9741,0,0,1,16,3m0-1A14,14,0,1,0,30,16,14.04116,14.04116,0,0,0,16,2Z",
67
- fill: "currentColor"
68
- }),
69
- /*#__PURE__*/ React__default.createElement("path", {
70
- d:
71
- "M13.5,21.2,9.1,16.8a.495.495,0,1,1,.7-.7l3.6,3.6L22,11.1a.495.495,0,1,1,.7.7Z",
72
- fill: "currentColor"
73
- })
74
- )
75
- );
76
-
77
- export { BtIconNotification as B, BtIconAlertTriangle as a, BtIconTick as b };