@westpac/ui 0.26.0 → 0.27.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 (51) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/component-type.json +1 -1
  3. package/dist/components/button/button.component.d.ts +2 -2
  4. package/dist/components/button/button.styles.js +23 -7
  5. package/dist/components/button/button.utils.js +2 -2
  6. package/dist/components/filter/components/filter-buttons/filter-buttons.component.js +24 -9
  7. package/dist/components/filter/components/filter-buttons/filter-buttons.styles.js +1 -1
  8. package/dist/components/icon/components/cancel-card-icon.js +8 -18
  9. package/dist/components/icon/components/child-care-icon.js +6 -6
  10. package/dist/components/icon/components/child-icon.js +2 -2
  11. package/dist/components/icon/components/circle-icon.js +9 -19
  12. package/dist/components/icon/components/drop-left-icon.js +1 -1
  13. package/dist/components/icon/components/drop-right-icon.js +1 -1
  14. package/dist/components/icon/components/piggy-bank.js +4 -4
  15. package/dist/components/icon/components/quick-balance-icon.js +7 -17
  16. package/dist/components/icon/components/target-icon.d.ts +1 -1
  17. package/dist/components/icon/components/target-icon.js +3 -9
  18. package/dist/components/icon/components/x-icon.js +6 -6
  19. package/dist/components/icon/index.d.ts +1 -1
  20. package/dist/components/icon/index.js +1 -1
  21. package/dist/components/input/input.component.d.ts +2 -2
  22. package/dist/components/pictogram/components/informative/sparkle-pictogram.js +15 -15
  23. package/dist/components/progress-indicator/progress-indicator.component.d.ts +2 -2
  24. package/dist/components/progress-indicator/progress-indicator.component.js +6 -5
  25. package/dist/components/progress-indicator/progress-indicator.styles.d.ts +2 -38
  26. package/dist/components/progress-indicator/progress-indicator.styles.js +1 -14
  27. package/dist/components/progress-indicator/progress-indicator.types.d.ts +2 -15
  28. package/dist/components/select/select.component.d.ts +2 -2
  29. package/dist/components/textarea/textarea.component.d.ts +2 -2
  30. package/dist/css/westpac-ui.css +9 -133
  31. package/dist/css/westpac-ui.min.css +9 -133
  32. package/package.json +4 -4
  33. package/src/components/button/button.styles.ts +27 -7
  34. package/src/components/button/button.utils.ts +2 -2
  35. package/src/components/filter/components/filter-buttons/filter-buttons.component.tsx +55 -51
  36. package/src/components/filter/components/filter-buttons/filter-buttons.styles.ts +1 -1
  37. package/src/components/icon/components/cancel-card-icon.tsx +15 -19
  38. package/src/components/icon/components/child-care-icon.tsx +6 -6
  39. package/src/components/icon/components/child-icon.tsx +2 -2
  40. package/src/components/icon/components/circle-icon.tsx +14 -22
  41. package/src/components/icon/components/drop-left-icon.tsx +1 -1
  42. package/src/components/icon/components/drop-right-icon.tsx +1 -1
  43. package/src/components/icon/components/piggy-bank.tsx +4 -4
  44. package/src/components/icon/components/quick-balance-icon.tsx +15 -19
  45. package/src/components/icon/components/target-icon.tsx +13 -20
  46. package/src/components/icon/components/x-icon.tsx +6 -6
  47. package/src/components/icon/index.ts +1 -1
  48. package/src/components/pictogram/components/informative/sparkle-pictogram.tsx +15 -15
  49. package/src/components/progress-indicator/progress-indicator.component.tsx +6 -4
  50. package/src/components/progress-indicator/progress-indicator.styles.ts +1 -14
  51. package/src/components/progress-indicator/progress-indicator.types.ts +2 -16
@@ -15,8 +15,8 @@ export function ChildCareIcon({
15
15
  <Fragment>
16
16
  <path d="M12 8a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z" fill="currentColor" />
17
17
  <path
18
- fill-rule="evenodd"
19
- clip-rule="evenodd"
18
+ fillRule="evenodd"
19
+ clipRule="evenodd"
20
20
  d="M12 9c3.338 0 10 1.519 10 4.533v5.934c0 1.321-1.28 2.355-3 3.1-.32.139-.655.267-1 .386v-3.286C18 17.893 14.002 17 12 17s-6 .893-6 2.667v.061c.225.104.483.21.773.316 1.547.562 3.416.88 4.747.944V21a1.5 1.5 0 1 1-.285 2.977c-1.537-.09-3.508-.431-5.235-1.024-2.199-.756-4-1.919-4-3.486v-5.934C2 10.52 8.662 9 12 9Zm2.5 4.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z"
21
21
  fill="currentColor"
22
22
  />
@@ -24,15 +24,15 @@ export function ChildCareIcon({
24
24
  ) : (
25
25
  <Fragment>
26
26
  <path
27
- fill-rule="evenodd"
28
- clip-rule="evenodd"
27
+ fillRule="evenodd"
28
+ clipRule="evenodd"
29
29
  d="M12 8a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
30
30
  fill="currentColor"
31
31
  />
32
32
  <path d="M12 17a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" fill="currentColor" />
33
33
  <path
34
- fill-rule="evenodd"
35
- clip-rule="evenodd"
34
+ fillRule="evenodd"
35
+ clipRule="evenodd"
36
36
  d="M12 24a1 1 0 1 0 0-2c-1.054 0-2.548-.182-4-.543v-.466c.175-.122.476-.28.92-.439C9.947 20.187 11.22 20 12 20c.78 0 2.053.187 3.08.552.444.159.745.317.92.44v2.52a18.837 18.837 0 0 0 2-.56c2.199-.755 4-1.918 4-3.485v-5.934C22 10.52 15.338 9 12 9S2 10.519 2 13.533v5.934c0 1.567 1.801 2.73 4 3.486l.144.048c.6.2 1.229.37 1.856.51 1.456.326 2.906.489 4 .489Zm5.569-11.984C15.712 11.341 13.443 11 12 11c-1.443 0-3.712.341-5.569 1.016-.93.338-1.627.713-2.054 1.071a1.52 1.52 0 0 0-.348.379.283.283 0 0 0-.028.06L4 13.533v5.934l.001.007a.283.283 0 0 0 .028.06c.043.075.142.207.348.379.358.3.906.613 1.623.905v-.151C6 18.893 9.998 18 12 18s6 .893 6 2.667v.151l.067-.028c.684-.284 1.21-.587 1.556-.877a1.52 1.52 0 0 0 .348-.379.279.279 0 0 0 .028-.06v-.005l.001-.002v-5.936l-.001-.005a.279.279 0 0 0-.028-.06 1.52 1.52 0 0 0-.348-.379c-.427-.357-1.123-.733-2.054-1.071Z"
37
37
  fill="currentColor"
38
38
  />
@@ -11,8 +11,8 @@ export function ChildIcon({ 'aria-label': ariaLabel = 'Child', copyrightYear = '
11
11
  fill="currentColor"
12
12
  />
13
13
  <path
14
- fill-rule="evenodd"
15
- clip-rule="evenodd"
14
+ fillRule="evenodd"
15
+ clipRule="evenodd"
16
16
  d="M12.262.003A12.24 12.24 0 0 0 12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12C24 5.56 18.928.306 12.56.013A1.007 1.007 0 0 0 12.4 0c-.046 0-.092 0-.138.003ZM12 22c5.523 0 10-4.477 10-10 0-5.424-4.318-9.84-9.705-9.996C11.603 2.061 11 2.674 11 3.5c0 .867.665 1.5 1.4 1.5.347 0 .668-.134.918-.368a1 1 0 1 1 1.364 1.463c-.599.558-1.4.905-2.282.905C10.484 7 9 5.394 9 3.5c0-.38.06-.748.17-1.094C5.027 3.626 2 7.46 2 12c0 5.523 4.477 10 10 10Z"
17
17
  fill="currentColor"
18
18
  />
@@ -1,4 +1,4 @@
1
- import React, { Fragment } from 'react';
1
+ import React from 'react';
2
2
 
3
3
  import { Icon } from '../icon.component.js';
4
4
  import { type IconProps } from '../icon.types.js';
@@ -6,33 +6,25 @@ import { type IconProps } from '../icon.types.js';
6
6
  export function CircleIcon({
7
7
  look = 'filled',
8
8
  'aria-label': ariaLabel = 'Circle',
9
- copyrightYear = '2024',
9
+ copyrightYear = '2023',
10
10
  ...props
11
11
  }: IconProps) {
12
12
  return (
13
13
  <Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
14
14
  {look === 'filled' ? (
15
- <Fragment>
16
- <svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
17
- <path
18
- fill-rule="evenodd"
19
- clip-rule="evenodd"
20
- d="M12 24c6.628 0 12-5.373 12-12S18.628 0 12 0 0 5.373 0 12s5.372 12 12 12Z"
21
- fill="currentColor"
22
- />
23
- </svg>
24
- </Fragment>
15
+ <path
16
+ fillRule="evenodd"
17
+ clipRule="evenodd"
18
+ d="M12 24c6.628 0 12-5.373 12-12S18.628 0 12 0 0 5.373 0 12s5.372 12 12 12Z"
19
+ fill="currentColor"
20
+ />
25
21
  ) : (
26
- <Fragment>
27
- <svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
28
- <path
29
- fill-rule="evenodd"
30
- clip-rule="evenodd"
31
- d="M24 12c0 6.627-5.372 12-12 12S0 18.627 0 12 5.372 0 12 0s12 5.373 12 12ZM12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Z"
32
- fill="currentColor"
33
- />
34
- </svg>
35
- </Fragment>
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M24 12c0 6.627-5.372 12-12 12S0 18.627 0 12 5.372 0 12 0s12 5.373 12 12ZM12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Z"
26
+ fill="currentColor"
27
+ />
36
28
  )}
37
29
  </Icon>
38
30
  );
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { Icon } from '../icon.component.js';
4
4
  import { type IconProps } from '../icon.types.js';
5
5
 
6
- export function DropLeftIcon({ 'aria-label': ariaLabel = 'Drop Left', copyrightYear = '2024', ...props }: IconProps) {
6
+ export function DropLeftIcon({ 'aria-label': ariaLabel = 'Drop Left', copyrightYear = '2023', ...props }: IconProps) {
7
7
  return (
8
8
  <Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
9
9
  <path d="m8 19 8-7-8-7v14Z" fill="currentColor" />
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { Icon } from '../icon.component.js';
4
4
  import { type IconProps } from '../icon.types.js';
5
5
 
6
- export function DropRightIcon({ 'aria-label': ariaLabel = 'Drop Right', copyrightYear = '2024', ...props }: IconProps) {
6
+ export function DropRightIcon({ 'aria-label': ariaLabel = 'Drop Right', copyrightYear = '2023', ...props }: IconProps) {
7
7
  return (
8
8
  <Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
9
9
  <path d="m16 5-8 7 8 7V5Z" fill="currentColor" />
@@ -15,9 +15,9 @@ export function PiggyBankIcon({
15
15
  <Fragment>
16
16
  <path
17
17
  fill="currentColor"
18
- fill-rule="evenodd"
18
+ fillRule="evenodd"
19
19
  d="M.99 15.975A101.66 101.66 0 0 0 3 24h6v-3h4v3h5.6l2.01-7.92L24 14.97V6.5h-2.61l-2.73-2.63c.04-.24.095-.475.165-.705.07-.23.145-.455.225-.675.04-.1.075-.21.105-.33a1.736 1.736 0 0 0-.48-1.635A1.736 1.736 0 0 0 17.4 0c-.96 0-1.855.21-2.685.63A6.098 6.098 0 0 0 12.6 2.4h-6c-1.84 0-3.4.64-4.68 1.92C.64 5.6 0 7.16 0 9c0 2.136.42 4.19.845 6.264l.145.711ZM6 7a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Zm12.5 3.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z"
20
- clip-rule="evenodd"
20
+ clipRule="evenodd"
21
21
  />
22
22
  </Fragment>
23
23
  ) : (
@@ -28,9 +28,9 @@ export function PiggyBankIcon({
28
28
  />
29
29
  <path
30
30
  fill="currentColor"
31
- fill-rule="evenodd"
31
+ fillRule="evenodd"
32
32
  d="M12.6 2.4h-6c-1.84 0-3.4.64-4.68 1.92C.64 5.6 0 7.16 0 9c0 2.136.42 4.19.845 6.264l.145.711A101.66 101.66 0 0 0 3 24h6v-3h4v3h5.6l2.01-7.92L24 14.97V6.5h-2.61l-2.73-2.63c.04-.24.095-.475.165-.705.07-.23.145-.455.225-.675.04-.1.075-.21.105-.33a1.736 1.736 0 0 0-.48-1.635A1.736 1.736 0 0 0 17.4 0c-.96 0-1.855.21-2.685.63A6.098 6.098 0 0 0 12.6 2.4ZM22 8.5h-1.417l-4.069-3.92.173-1.039c.054-.324.129-.644.225-.958.058-.193.12-.384.186-.573a3.808 3.808 0 0 0-1.48.405 4.1 4.1 0 0 0-1.428 1.198l-.6.787H6.6c-1.32 0-2.368.436-3.266 1.334C2.436 6.632 2 7.681 2 9c0 1.921.378 3.772.808 5.877l.142.702A99.66 99.66 0 0 0 4.507 22H7v-3h8v3h2.044l1.898-7.478L22 13.52V8.5Z"
33
- clip-rule="evenodd"
33
+ clipRule="evenodd"
34
34
  />
35
35
  </Fragment>
36
36
  )}
@@ -12,28 +12,24 @@ export function QuickBalanceIcon({
12
12
  return (
13
13
  <Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
14
14
  {look === 'filled' ? (
15
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none">
15
+ <path
16
+ fillRule="evenodd"
17
+ d="M24 14c0 3.073-1.155 5.877-3.056 8H3.056A11.955 11.955 0 0 1 0 14C0 7.373 5.373 2 12 2s12 5.373 12 12Zm-3.877-3.88-1.528 1.528c.262.735.405 1.527.405 2.352 0 1.277-.34 2.47-.936 3.5a1 1 0 0 0 1.731 1A8.963 8.963 0 0 0 21 14c0-1.39-.315-2.705-.877-3.88ZM15.88 5.877A9 9 0 0 0 4.204 18.501a1 1 0 0 0 1.732-1.002 7 7 0 0 1 8.416-10.094l1.528-1.528Zm2.827 2.83a1 1 0 0 0-1.414-1.414l-4.775 4.775a2 2 0 1 0 1.414 1.414l4.775-4.775Z"
18
+ clipRule="evenodd"
19
+ fill="currentColor"
20
+ />
21
+ ) : (
22
+ <Fragment>
16
23
  <path
17
- fill-rule="evenodd"
18
- d="M24 14c0 3.073-1.155 5.877-3.056 8H3.056A11.955 11.955 0 0 1 0 14C0 7.373 5.373 2 12 2s12 5.373 12 12Zm-3.877-3.88-1.528 1.528c.262.735.405 1.527.405 2.352 0 1.277-.34 2.47-.936 3.5a1 1 0 0 0 1.731 1A8.963 8.963 0 0 0 21 14c0-1.39-.315-2.705-.877-3.88ZM15.88 5.877A9 9 0 0 0 4.204 18.501a1 1 0 0 0 1.732-1.002 7 7 0 0 1 8.416-10.094l1.528-1.528Zm2.827 2.83a1 1 0 0 0-1.414-1.414l-4.775 4.775a2 2 0 1 0 1.414 1.414l4.775-4.775Z"
19
- clip-rule="evenodd"
24
+ d="m17.797 12.446 1.57-1.57c.407.96.633 2.016.633 3.124a7.983 7.983 0 0 1-.526 2.857 1 1 0 1 1-1.868-.714A5.984 5.984 0 0 0 18 14a6.01 6.01 0 0 0-.203-1.554ZM12 6c1.108 0 2.164.225 3.124.633l-1.57 1.57a6 6 0 0 0-7.16 7.94 1 1 0 1 1-1.868.714A8 8 0 0 1 12 6ZM17.293 7.293a1 1 0 1 1 1.414 1.414l-4.775 4.775a2 2 0 1 1-1.414-1.414l4.775-4.775Z"
25
+ fill="currentColor"
26
+ />
27
+ <path
28
+ fillRule="evenodd"
29
+ d="M24 14c0 3.073-1.155 5.877-3.056 8H3.056A11.955 11.955 0 0 1 0 14C0 7.373 5.373 2 12 2s12 5.373 12 12Zm-2 0a9.947 9.947 0 0 1-2 6H4a9.948 9.948 0 0 1-2-6C2 8.477 6.477 4 12 4s10 4.477 10 10Z"
30
+ clipRule="evenodd"
20
31
  fill="currentColor"
21
32
  />
22
- </svg>
23
- ) : (
24
- <Fragment>
25
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none">
26
- <path
27
- d="m17.797 12.446 1.57-1.57c.407.96.633 2.016.633 3.124a7.983 7.983 0 0 1-.526 2.857 1 1 0 1 1-1.868-.714A5.984 5.984 0 0 0 18 14a6.01 6.01 0 0 0-.203-1.554ZM12 6c1.108 0 2.164.225 3.124.633l-1.57 1.57a6 6 0 0 0-7.16 7.94 1 1 0 1 1-1.868.714A8 8 0 0 1 12 6ZM17.293 7.293a1 1 0 1 1 1.414 1.414l-4.775 4.775a2 2 0 1 1-1.414-1.414l4.775-4.775Z"
28
- fill="currentColor"
29
- />
30
- <path
31
- fill-rule="evenodd"
32
- d="M24 14c0 3.073-1.155 5.877-3.056 8H3.056A11.955 11.955 0 0 1 0 14C0 7.373 5.373 2 12 2s12 5.373 12 12Zm-2 0a9.947 9.947 0 0 1-2 6H4a9.948 9.948 0 0 1-2-6C2 8.477 6.477 4 12 4s10 4.477 10 10Z"
33
- clip-rule="evenodd"
34
- fill="currentColor"
35
- />
36
- </svg>
37
33
  </Fragment>
38
34
  )}
39
35
  </Icon>
@@ -3,28 +3,21 @@ import React from 'react';
3
3
  import { Icon } from '../icon.component.js';
4
4
  import { type IconProps } from '../icon.types.js';
5
5
 
6
- export function TargetIcon({
7
- look = 'filled',
8
- 'aria-label': ariaLabel = 'Target',
9
- copyrightYear = '2023',
10
- ...props
11
- }: IconProps) {
6
+ export function TargetIcon({ 'aria-label': ariaLabel = 'Target', copyrightYear = '2023', ...props }: IconProps) {
12
7
  return (
13
8
  <Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
14
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
15
- <path
16
- d="M16.9431 11.2432C16.9806 11.49 17 11.7427 17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C12.2821 7 12.5588 7.02337 12.8282 7.06827L13.1617 5.09595C12.7838 5.03284 12.3957 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 11.6291 18.9712 11.265 18.9156 10.9097L16.9431 11.2432Z"
17
- fill="currentColor"
18
- />
19
- <path
20
- d="M21.8742 10.4095C21.957 10.9275 22 11.4587 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C12.5662 2 13.1213 2.04705 13.6618 2.13745L13.9953 0.165126C13.3464 0.0565233 12.6798 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C18.6274 24 24 18.6274 24 12C24 11.3451 23.9475 10.7025 23.8466 10.076L21.8742 10.4095Z"
21
- fill="currentColor"
22
- />
23
- <path
24
- d="M14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C12.1791 10 12.3528 10.0236 12.518 10.0677L15.9861 6.59968L15.5146 4.24268L19.7573 0L20.3129 3.68706L24 4.24264L19.7573 8.48532L17.4003 8.01389L13.9322 11.4819C13.9764 11.6472 14 11.8208 14 12Z"
25
- fill="currentColor"
26
- />
27
- </svg>
9
+ <path
10
+ d="M16.9431 11.2432C16.9806 11.49 17 11.7427 17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C12.2821 7 12.5588 7.02337 12.8282 7.06827L13.1617 5.09595C12.7838 5.03284 12.3957 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 11.6291 18.9712 11.265 18.9156 10.9097L16.9431 11.2432Z"
11
+ fill="currentColor"
12
+ />
13
+ <path
14
+ d="M21.8742 10.4095C21.957 10.9275 22 11.4587 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C12.5662 2 13.1213 2.04705 13.6618 2.13745L13.9953 0.165126C13.3464 0.0565233 12.6798 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C18.6274 24 24 18.6274 24 12C24 11.3451 23.9475 10.7025 23.8466 10.076L21.8742 10.4095Z"
15
+ fill="currentColor"
16
+ />
17
+ <path
18
+ d="M14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C12.1791 10 12.3528 10.0236 12.518 10.0677L15.9861 6.59968L15.5146 4.24268L19.7573 0L20.3129 3.68706L24 4.24264L19.7573 8.48532L17.4003 8.01389L13.9322 11.4819C13.9764 11.6472 14 11.8208 14 12Z"
19
+ fill="currentColor"
20
+ />
28
21
  </Icon>
29
22
  );
30
23
  }
@@ -11,24 +11,24 @@ export function XIcon({ look = 'filled', 'aria-label': ariaLabel = 'X', copyrigh
11
11
  <path fill="currentColor" d="M15.815 19.008h2.12L8.178 5.04h-2.12l9.757 13.968Z" />
12
12
  <path
13
13
  fill="currentColor"
14
- fill-rule="evenodd"
14
+ fillRule="evenodd"
15
15
  d="M2 0a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2Zm17.315 4-5.824 6.775L19.825 20h-4.659l-4.265-6.212L5.56 20H4.18l6.107-7.104L4.18 4H8.84l4.039 5.883L17.935 4h1.38Z"
16
- clip-rule="evenodd"
16
+ clipRule="evenodd"
17
17
  />
18
18
  </Fragment>
19
19
  ) : (
20
20
  <Fragment>
21
21
  <path
22
22
  fill="currentColor"
23
- fill-rule="evenodd"
23
+ fillRule="evenodd"
24
24
  d="m19.315 4-5.824 6.775L19.825 20h-4.659l-4.265-6.212L5.56 20H4.18l6.107-7.104L4.18 4H8.84l4.039 5.883L17.935 4h1.38Zm-3.5 15.008h2.12L8.178 5.04h-2.12l9.757 13.968Z"
25
- clip-rule="evenodd"
25
+ clipRule="evenodd"
26
26
  />
27
27
  <path
28
28
  fill="currentColor"
29
- fill-rule="evenodd"
29
+ fillRule="evenodd"
30
30
  d="M0 2a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v20a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2Zm2 0h20v20H2V2Z"
31
- clip-rule="evenodd"
31
+ clipRule="evenodd"
32
32
  />
33
33
  </Fragment>
34
34
  )}
@@ -62,9 +62,9 @@ export { DownloadFileIcon } from './components/download-file-icon.js';
62
62
  export { DownloadIcon } from './components/download-icon.js';
63
63
  export { DragIcon } from './components/drag-icon.js';
64
64
  export { DropDownIcon } from './components/drop-down-icon.js';
65
- export { DropUpIcon } from './components/drop-up-icon.js';
66
65
  export { DropLeftIcon } from './components/drop-left-icon.js';
67
66
  export { DropRightIcon } from './components/drop-right-icon.js';
67
+ export { DropUpIcon } from './components/drop-up-icon.js';
68
68
  export { DropboxIcon } from './components/dropbox-icon.js';
69
69
  export { EditIcon } from './components/edit-icon.js';
70
70
  export { EducationIcon } from './components/education-icon.js';
@@ -26,50 +26,50 @@ export function SparklePictogram({
26
26
  {...props}
27
27
  >
28
28
  <svg width="78" height="78" viewBox="0 0 78 78" fill="none" xmlns="http://www.w3.org/2000/svg">
29
- <g clip-path="url(#clip0_882_7929)">
29
+ <g clipPath="url(#clip0_882_7929)">
30
30
  <path
31
31
  d="M38.9999 61.716C37.7659 61.716 36.6949 60.9716 36.2758 59.8201L32.4922 49.5961C31.782 47.6885 30.2802 46.1765 28.371 45.4786L18.1378 41.6984C16.9853 41.268 16.2402 40.1979 16.2402 38.9766C16.2402 37.7553 16.9853 36.6736 18.1378 36.2549L28.371 32.4747C30.2802 31.7652 31.7937 30.2647 32.4922 28.3572L36.2758 18.1332C36.7065 16.9817 37.7775 16.2373 38.9999 16.2373C40.2223 16.2373 43.5 17 44.0525 18.1332L47.8361 28.3572C48.5462 30.2647 50.048 31.7768 51.9572 32.4747L62.1904 36.2549C63.3429 36.6853 64.088 37.7553 64.088 38.9766C64.088 40.1979 63.3429 41.2797 62.1904 41.6984L51.9572 45.4786C50.048 46.1881 48.5346 47.6885 47.8361 49.5961C47.8361 49.5961 45.6049 57.6401 44.0525 59.8201C42.5 62 40.2223 61.716 38.9999 61.716ZM38.9999 18.5403C38.8835 18.5403 38.5808 18.5752 38.4528 18.9242L34.6692 29.1481C33.7262 31.6954 31.7238 33.7076 29.1626 34.6498L18.9295 38.43C18.5919 38.5579 18.5453 38.8487 18.5453 38.9766C18.5453 39.1046 18.5802 39.3954 18.9295 39.5233L29.1626 43.3035C31.7122 44.2457 33.7262 46.2463 34.6692 48.8052L38.4528 59.0291C38.5808 59.3664 38.8719 59.413 38.9999 59.413C39.128 59.413 39.419 59.3781 39.5471 59.0291L43.3307 48.8052C44.2737 46.2579 46.2761 44.2457 48.8372 43.3035L59.0704 39.5233C59.408 39.3954 59.4546 39.1046 59.4546 38.9766C59.4546 38.8487 59.4196 38.5579 59.0704 38.43L48.8372 34.6498C46.2877 33.7076 44.2737 31.707 43.3307 29.1481L41.4389 24.0361L39.5471 18.9242C39.419 18.5868 39.128 18.5403 38.9999 18.5403Z"
32
32
  className={fill({ mode, outline: true })}
33
33
  />
34
34
  <path
35
- fill-rule="evenodd"
36
- clip-rule="evenodd"
35
+ fillRule="evenodd"
36
+ clipRule="evenodd"
37
37
  d="M67.5225 39.5465H78.0001V37.2202H67.5225V39.5465Z"
38
38
  className={fill({ mode, highlight: true })}
39
39
  />
40
40
  <path
41
- fill-rule="evenodd"
42
- clip-rule="evenodd"
41
+ fillRule="evenodd"
42
+ clipRule="evenodd"
43
43
  d="M39.582 10.4682V0H37.2537V10.4682H39.582Z"
44
44
  className={fill({ mode, highlight: true })}
45
45
  />
46
46
  <path
47
- fill-rule="evenodd"
48
- clip-rule="evenodd"
47
+ fillRule="evenodd"
48
+ clipRule="evenodd"
49
49
  d="M58.8375 20.192L66.0671 12.9689L64.4605 11.3638L57.231 18.5869L58.8375 20.192Z"
50
50
  className={fill({ mode, highlight: true })}
51
51
  />
52
52
  <path
53
- fill-rule="evenodd"
54
- clip-rule="evenodd"
53
+ fillRule="evenodd"
54
+ clipRule="evenodd"
55
55
  d="M19.9772 18.5869L12.7477 11.3638L11.1411 12.9689L18.3707 20.192L19.9772 18.5869Z"
56
56
  className={fill({ mode, highlight: true })}
57
57
  />
58
58
  <path
59
- fill-rule="evenodd"
60
- clip-rule="evenodd"
59
+ fillRule="evenodd"
60
+ clipRule="evenodd"
61
61
  d="M0 39.5465H10.4776V37.2202H0V39.5465Z"
62
62
  className={fill({ mode, highlight: true })}
63
63
  />
64
64
  <path
65
- fill-rule="evenodd"
66
- clip-rule="evenodd"
65
+ fillRule="evenodd"
66
+ clipRule="evenodd"
67
67
  d="M39.582 77.9302V67.4619H37.2537V77.9302H39.582Z"
68
68
  className={fill({ mode, highlight: true })}
69
69
  />
70
70
  <path
71
- fill-rule="evenodd"
72
- clip-rule="evenodd"
71
+ fillRule="evenodd"
72
+ clipRule="evenodd"
73
73
  d="M12.7477 66.2408L19.9772 59.0177L18.3707 57.4126L11.1411 64.6357L12.7477 66.2408Z"
74
74
  className={fill({ mode, highlight: true })}
75
75
  />
@@ -1,19 +1,21 @@
1
1
  import React from 'react';
2
2
 
3
+ import { Icon } from '../icon/icon.component.js';
4
+
3
5
  import { styles } from './progress-indicator.styles.js';
4
- import { type ProgressIndicatorProps } from './progress-indicator.types.js';
6
+ import { ProgressIndicatorProps } from './progress-indicator.types.js';
5
7
 
6
8
  export function ProgressIndicator({
7
9
  className,
8
10
  children,
9
- inverted = false,
11
+ color = 'hero',
10
12
  size = 'medium',
11
13
  'aria-label': ariaLabel = 'Loading',
12
14
  ...props
13
15
  }: ProgressIndicatorProps) {
14
16
  return (
15
- <div className={styles({ className, size, inverted })} aria-label={ariaLabel} {...props}>
17
+ <Icon className={styles({ className })} size={size} color={color} aria-label={ariaLabel} {...props}>
16
18
  {children}
17
- </div>
19
+ </Icon>
18
20
  );
19
21
  }
@@ -2,20 +2,7 @@ import { tv } from 'tailwind-variants';
2
2
 
3
3
  export const styles = tv(
4
4
  {
5
- base: 'box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-[transparent]',
6
- variants: {
7
- size: {
8
- xsmall: 'h-2 w-2',
9
- small: 'h-3 w-3',
10
- medium: 'h-4 w-4',
11
- large: 'h-6 w-6',
12
- xlarge: 'h-8 w-8',
13
- },
14
- inverted: {
15
- true: 'border-b-white border-l-white',
16
- false: 'border-b-hero border-l-hero',
17
- },
18
- },
5
+ base: 'box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-transparent',
19
6
  },
20
7
  { responsiveVariants: ['xsl', 'sm', 'md', 'lg', 'xl'] },
21
8
  );
@@ -1,17 +1,3 @@
1
- import { HTMLAttributes } from 'react';
2
- import { type VariantProps } from 'tailwind-variants';
1
+ import { IconProps } from '../icon/icon.types.js';
3
2
 
4
- import { styles } from './progress-indicator.styles.js';
5
-
6
- type Variants = VariantProps<typeof styles>;
7
-
8
- export type ProgressIndicatorProps = {
9
- /**
10
- * Whether indicator should be white for a dark background
11
- */
12
- inverted?: boolean;
13
- /**
14
- * Size of progress indicator
15
- */
16
- size?: Variants['size'];
17
- } & HTMLAttributes<Element>;
3
+ export type ProgressIndicatorProps = IconProps;