@alto-avios/alto-ui 3.4.0 → 3.4.1

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 (103) hide show
  1. package/README.md +8 -0
  2. package/dist/assets/Button.css +1 -1
  3. package/dist/components/Accordion/index.d.ts +1 -0
  4. package/dist/components/AviosBadge/AviosBadge.d.ts +1 -1
  5. package/dist/components/AviosBadge/AviosBadge.js +1 -1
  6. package/dist/components/AviosBadge/index.d.ts +1 -0
  7. package/dist/components/AviosCurrencySymbol/AviosCurrencySymbol.js +1 -1
  8. package/dist/components/AviosCurrencySymbol/index.d.ts +1 -0
  9. package/dist/components/Badge/index.d.ts +1 -0
  10. package/dist/components/Box/Box.d.ts +26 -1
  11. package/dist/components/Box/Box.js +11 -1
  12. package/dist/components/Box/Box.js.map +1 -1
  13. package/dist/components/Box/index.d.ts +1 -0
  14. package/dist/components/Button/Button.d.ts +2 -2
  15. package/dist/components/Button/Button.js +34 -33
  16. package/dist/components/Button/Button.js.map +1 -1
  17. package/dist/components/Button/index.d.ts +1 -0
  18. package/dist/components/ButtonGroup/index.d.ts +1 -0
  19. package/dist/components/CalloutBanner/CalloutBanner.d.ts +1 -1
  20. package/dist/components/CalloutBanner/index.d.ts +1 -0
  21. package/dist/components/CardSection/index.d.ts +1 -0
  22. package/dist/components/Checkbox/index.d.ts +1 -1
  23. package/dist/components/CheckboxGroup/index.d.ts +1 -0
  24. package/dist/components/ClearFieldButton/ClearFieldButton.d.ts +0 -1
  25. package/dist/components/ClearFieldButton/index.d.ts +1 -0
  26. package/dist/components/ComboBox/ComboBox.d.ts +2 -2
  27. package/dist/components/CreditCardNumberField/CreditCardNumberField.d.ts +1 -1
  28. package/dist/components/CreditCardNumberField/index.d.ts +1 -0
  29. package/dist/components/CreditCardSecurityCodeField/CreditCardSecurityCodeField.d.ts +1 -1
  30. package/dist/components/CreditCardSecurityCodeField/index.d.ts +1 -0
  31. package/dist/components/DateField/index.d.ts +1 -0
  32. package/dist/components/DestinationHeading/index.d.ts +1 -0
  33. package/dist/components/DetailsDisclosure/DetailsDisclosure.d.ts +1 -2
  34. package/dist/components/DetailsDisclosure/index.d.ts +1 -1
  35. package/dist/components/Dialog/Dialog.d.ts +29 -11
  36. package/dist/components/Dialog/index.d.ts +1 -0
  37. package/dist/components/ErrorSummary/index.d.ts +1 -0
  38. package/dist/components/Eyebrow/Eyebrow.d.ts +14 -0
  39. package/dist/components/FieldDescription/index.d.ts +1 -0
  40. package/dist/components/FieldError/index.d.ts +1 -0
  41. package/dist/components/FieldLabel/index.d.ts +1 -0
  42. package/dist/components/FieldsetHeader/index.d.ts +1 -0
  43. package/dist/components/Form/index.d.ts +1 -0
  44. package/dist/components/Grid/Grid.d.ts +1 -1
  45. package/dist/components/Grid/index.d.ts +1 -0
  46. package/dist/components/Heading/Heading.d.ts +1 -0
  47. package/dist/components/Heading/Heading.js +1 -0
  48. package/dist/components/Heading/index.d.ts +1 -0
  49. package/dist/components/Icon/Icon.d.ts +1 -1
  50. package/dist/components/Icon/index.d.ts +1 -0
  51. package/dist/components/IconBackdrop/index.d.ts +1 -0
  52. package/dist/components/IconButton/index.d.ts +1 -0
  53. package/dist/components/Image/Image.d.ts +18 -6
  54. package/dist/components/Image/index.d.ts +1 -0
  55. package/dist/components/Label/index.d.ts +1 -0
  56. package/dist/components/Link/index.d.ts +1 -0
  57. package/dist/components/ListBoxItem/index.d.ts +1 -1
  58. package/dist/components/LoadingSpinner/index.d.ts +1 -0
  59. package/dist/components/Menu/index.d.ts +1 -0
  60. package/dist/components/NumberField/index.d.ts +1 -0
  61. package/dist/components/Paragraph/Paragraph.d.ts +4 -1
  62. package/dist/components/Paragraph/Paragraph.js +8 -3
  63. package/dist/components/Paragraph/Paragraph.js.map +1 -1
  64. package/dist/components/Paragraph/index.d.ts +1 -0
  65. package/dist/components/PasswordField/PasswordField.d.ts +1 -1
  66. package/dist/components/PasswordField/index.d.ts +1 -0
  67. package/dist/components/Popover/Popover.d.ts +2 -2
  68. package/dist/components/Popover/index.d.ts +1 -0
  69. package/dist/components/Radio/index.d.ts +1 -1
  70. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  71. package/dist/components/RadioGroup/index.d.ts +1 -0
  72. package/dist/components/SearchField/index.d.ts +1 -0
  73. package/dist/components/Section/Section.d.ts +2 -2
  74. package/dist/components/Section/index.d.ts +1 -0
  75. package/dist/components/SelectCard/SelectCard.d.ts +3 -2
  76. package/dist/components/SelectCard/SelectCard.js +1 -0
  77. package/dist/components/SelectCard/index.d.ts +1 -0
  78. package/dist/components/SelectNative/index.d.ts +1 -0
  79. package/dist/components/Slider/Slider.d.ts +16 -4
  80. package/dist/components/Slider/index.d.ts +1 -0
  81. package/dist/components/SubHeading/SubHeading.d.ts +3 -3
  82. package/dist/components/SubHeading/index.d.ts +1 -0
  83. package/dist/components/Switch/index.d.ts +1 -0
  84. package/dist/components/Tag/index.d.ts +1 -0
  85. package/dist/components/TagGroup/index.d.ts +1 -0
  86. package/dist/components/TextField/index.d.ts +1 -0
  87. package/dist/components/ToggleButton/index.d.ts +1 -0
  88. package/dist/components/ToggleIconButton/index.d.ts +1 -0
  89. package/dist/components/Tooltip/index.d.ts +1 -0
  90. package/dist/components/index.d.ts +62 -2
  91. package/dist/components/index.js +3 -4
  92. package/dist/index.js +3 -4
  93. package/dist/utils/breakpoint/hooks/useBreakpoint.d.ts +11 -0
  94. package/dist/utils/breakpoint/hooks/useBreakpoint.js +79 -0
  95. package/dist/utils/breakpoint/hooks/useBreakpoint.js.map +1 -0
  96. package/dist/utils/breakpoint/responsive.d.ts +18 -0
  97. package/dist/utils/breakpoint/responsive.js +22 -0
  98. package/dist/utils/breakpoint/responsive.js.map +1 -0
  99. package/dist/utils/breakpoint/theme/breakpoints.d.ts +13 -0
  100. package/dist/utils/breakpoint/theme/breakpoints.js +27 -0
  101. package/dist/utils/breakpoint/theme/breakpoints.js.map +1 -0
  102. package/dist/utils/position/position.js +10 -10
  103. package/package.json +4 -2
package/README.md CHANGED
@@ -73,6 +73,14 @@ We need to create static storybook files for our public domain site to use. Run
73
73
 
74
74
  `npm run build:storybook`
75
75
 
76
+ ## Run Chromatic (Dev)
77
+
78
+ Run the following command to analyze our code and send to chromatic
79
+
80
+ `npx chromatic --project-token <YOUR_PROJECT_TOKEN>`
81
+
82
+ Project Token can be found in the chromatic dashboard
83
+
76
84
  ## For Application using our package
77
85
 
78
86
  ### Install Package in Applications
@@ -1 +1 @@
1
- ._button_c09nf_1{background:var(--alto-sem-color-bg-accent-vibrant-default);border:none;border-radius:var(--alto-button-md-radius);box-sizing:border-box;color:var(--alto-sem-color-fg-accent-on-vibrant);cursor:pointer;font-family:var(--alto-sem-text-body-font-family);font-style:normal;font-weight:500;justify-content:center;padding:var(--alto-sem-space-xs) var(--alto-sem-space-md);text-decoration:none}._button_c09nf_1,._button_c09nf_1 ._content_c09nf_19{align-items:center;display:inline-flex;gap:var(--alto-sem-space-2xs)}._isNotLoading_c09nf_28 ._loadingSpinner_c09nf_28{opacity:0;position:absolute}._isNotLoading_c09nf_28 ._content_c09nf_19{opacity:1}._isLoading_c09nf_37 ._loadingSpinner_c09nf_28{opacity:1;position:absolute}._isLoading_c09nf_37 ._content_c09nf_19{opacity:0}._focusWhite_c09nf_49[data-focused]{outline-color:var(--alto-sem-color-border-white)}._sm_c09nf_56{font-size:var(--alto-sem-text-label-sm-font-size);letter-spacing:var(--alto-sem-text-label-sm-letter-spacing);line-height:var(--alto-sem-text-label-sm-line-height);min-height:36px;padding:var(--alto-button-sm-padding-top) var(--alto-sem-space-md) var(--alto-button-sm-padding-bottom)}._md_c09nf_65{font-size:var(--alto-sem-text-label-md-font-size);letter-spacing:var(--alto-sem-text-label-md-letter-spacing);line-height:var(--alto-sem-text-label-md-line-height);min-height:48px;padding:var(--alto-button-md-padding-top) var(--alto-sem-space-lg) var(--alto-button-md-padding-bottom)}._lg_c09nf_74{font-size:var(--alto-sem-text-label-lg-font-size);height:55px;letter-spacing:var(--alto-sem-text-label-lg-letter-spacing);line-height:var(--alto-sem-text-label-lg-line-height);padding:var(--alto-button-lg-padding-top) var(--alto-sem-space-lg) var(--alto-button-lg-padding-bottom)}._fullWidth_c09nf_83{width:100%}._textAlignLeft_c09nf_90{text-align:left}._textAlignCenter_c09nf_94{text-align:center}._textAlignRight_c09nf_98{text-align:right}._accentPrimary_c09nf_106[data-focused],._accentPrimary_c09nf_106[data-hovered]{background:var(--alto-sem-color-bg-accent-vibrant-hover)}._accentPrimary_c09nf_106[data-pressed]{background:var(--alto-sem-color-bg-accent-vibrant-active)}._accentPrimary_c09nf_106[data-pressed][data-focused]{outline:none}._accentPrimary_c09nf_106:disabled,._accentPrimary_c09nf_106[aria-disabled]{background:var(--alto-sem-color-bg-disabled-vibrant);cursor:not-allowed;pointer-events:auto}._accentSecondary_c09nf_126{background-color:transparent;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-accent);color:var(--alto-sem-color-fg-accent-primary)}._accentSecondary_c09nf_126[data-focused],._accentSecondary_c09nf_126[data-hovered]{background:var(--alto-sem-color-bg-accent-subtle-hover)}._accentSecondary_c09nf_126[data-pressed]{background:var(--alto-sem-color-bg-accent-subtle-active)}._accentSecondary_c09nf_126[data-pressed][data-focused]{outline:none}._accentSecondary_c09nf_126:disabled,._accentSecondary_c09nf_126[aria-disabled]{background:none;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-disabled-vibrant);color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._accentTertiary_c09nf_156{background:var(--alto-sem-color-bg-accent-subtle-default);color:var(--alto-sem-color-fg-accent-primary)}._accentTertiary_c09nf_156[data-focused],._accentTertiary_c09nf_156[data-hovered]{background:var(--alto-sem-color-bg-accent-subtle-hover)}._accentTertiary_c09nf_156[data-pressed]{background:var(--alto-sem-color-bg-accent-subtle-active)}._accentTertiary_c09nf_156[data-pressed][data-focused]{outline:none}._accentTertiary_c09nf_156:disabled,._accentTertiary_c09nf_156[aria-disabled]{background:var(--alto-sem-color-bg-disabled-subtle);color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._accentQuaternary_c09nf_182{background:none;color:var(--alto-sem-color-fg-accent-primary)}._accentQuaternary_c09nf_182[data-focused],._accentQuaternary_c09nf_182[data-hovered]{background:var(--alto-sem-color-bg-accent-subtle-hover)}._accentQuaternary_c09nf_182[data-pressed]{background:var(--alto-sem-color-bg-accent-subtle-active)}._accentQuaternary_c09nf_182[data-pressed][data-focused]{outline:none}._accentQuaternary_c09nf_182:disabled,._accentQuaternary_c09nf_182[aria-disabled]{color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._criticalPrimary_c09nf_208{background:var(--alto-sem-color-bg-critical-vibrant-default);color:var(--alto-sem-color-fg-critical-on-vibrant)}._criticalPrimary_c09nf_208[data-focused],._criticalPrimary_c09nf_208[data-hovered]{background:var(--alto-sem-color-bg-critical-vibrant-hover)}._criticalPrimary_c09nf_208[data-pressed]{background:var(--alto-sem-color-bg-critical-vibrant-active)}._criticalPrimary_c09nf_208[data-pressed][data-focused]{outline:none}._criticalPrimary_c09nf_208:disabled,._criticalPrimary_c09nf_208[aria-disabled]{background:var(--alto-sem-color-bg-disabled-vibrant);cursor:not-allowed;pointer-events:auto}._criticalSecondary_c09nf_233{background:transparent;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-critical);color:var(--alto-sem-color-fg-critical-primary)}._criticalSecondary_c09nf_233[data-focused],._criticalSecondary_c09nf_233[data-hovered]{background:var(--alto-sem-color-bg-critical-subtle-hover)}._criticalSecondary_c09nf_233[data-pressed]{background:var(--alto-sem-color-bg-critical-subtle-active)}._criticalSecondary_c09nf_233[data-pressed][data-focused]{outline:none}._criticalSecondary_c09nf_233:disabled,._criticalSecondary_c09nf_233[aria-disabled]{background:none;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-disabled-vibrant);color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._criticalTertiary_c09nf_263{background:var(--alto-sem-color-bg-critical-subtle-default);color:var(--alto-sem-color-fg-critical-primary)}._criticalTertiary_c09nf_263[data-focused],._criticalTertiary_c09nf_263[data-hovered]{background:var(--alto-sem-color-bg-critical-subtle-hover)}._criticalTertiary_c09nf_263[data-pressed]{background:var(--alto-sem-color-bg-critical-subtle-active)}._criticalTertiary_c09nf_263[data-pressed][data-focused]{outline:none}._criticalTertiary_c09nf_263:disabled,._criticalTertiary_c09nf_263[aria-disabled]{background:var(--alto-sem-color-bg-disabled-subtle);color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._criticalQuaternary_c09nf_289{background:none;color:var(--alto-sem-color-fg-critical-primary)}._criticalQuaternary_c09nf_289[data-focused],._criticalQuaternary_c09nf_289[data-hovered]{background:var(--alto-sem-color-bg-critical-subtle-hover)}._criticalQuaternary_c09nf_289[data-pressed]{background:var(--alto-sem-color-bg-critical-subtle-active)}._criticalQuaternary_c09nf_289[data-pressed][data-focused]{outline:none}._criticalQuaternary_c09nf_289:disabled,._criticalQuaternary_c09nf_289[aria-disabled]{background:none;color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._neutralPrimary_c09nf_316{background:var(--alto-sem-color-bg-inverse-vibrant-default);color:var(--alto-sem-color-fg-inverse-on-vibrant)}._neutralPrimary_c09nf_316[data-focused],._neutralPrimary_c09nf_316[data-hovered]{background:var(--alto-sem-color-bg-inverse-vibrant-hover)}._neutralPrimary_c09nf_316[data-pressed]{background:var(--alto-sem-color-bg-inverse-vibrant-active)}._neutralPrimary_c09nf_316[data-pressed][data-focused]{outline:none}._neutralPrimary_c09nf_316:disabled,._neutralPrimary_c09nf_316[aria-disabled]{background:var(--alto-sem-color-bg-disabled-vibrant);cursor:not-allowed;pointer-events:auto}._neutralSecondary_c09nf_341{background:transparent;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-inverse);color:var(--alto-sem-color-fg-inverse-on-subtle)}._neutralSecondary_c09nf_341[data-focused],._neutralSecondary_c09nf_341[data-hovered]{background:var(--alto-sem-color-bg-inverse-subtle-hover)}._neutralSecondary_c09nf_341[data-pressed]{background:var(--alto-sem-color-bg-inverse-subtle-active)}._neutralSecondary_c09nf_341[data-pressed][data-focused]{outline:none}._neutralSecondary_c09nf_341:disabled,._neutralSecondary_c09nf_341[aria-disabled]{background:none;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-disabled-vibrant);cursor:not-allowed;pointer-events:auto}._neutralTertiary_c09nf_370{background:var(--alto-sem-color-bg-inverse-subtle-default);color:var(--alto-sem-color-fg-primary)}._neutralTertiary_c09nf_370[data-focused],._neutralTertiary_c09nf_370[data-hovered]{background:var(--alto-sem-color-bg-inverse-subtle-hover)}._neutralTertiary_c09nf_370[data-pressed]{background:var(--alto-sem-color-bg-inverse-subtle-active)}._neutralTertiary_c09nf_370[data-pressed][data-focused]{outline:none}._neutralTertiary_c09nf_370:disabled,._neutralTertiary_c09nf_370[aria-disabled]{background:var(--alto-sem-color-bg-disabled-subtle);color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._neutralQuaternary_c09nf_396{background:none;color:var(--alto-sem-color-fg-primary)}._neutralQuaternary_c09nf_396[data-focused],._neutralQuaternary_c09nf_396[data-hovered]{background:var(--alto-sem-color-bg-inverse-subtle-hover)}._neutralQuaternary_c09nf_396[data-pressed]{background:var(--alto-sem-color-bg-inverse-subtle-active)}._neutralQuaternary_c09nf_396[data-pressed][data-focused]{outline:none}._neutralQuaternary_c09nf_396:disabled,._neutralQuaternary_c09nf_396[aria-disabled]{background:none;color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._whitePrimary_c09nf_423{background:var(--alto-sem-color-bg-white-vibrant-default);color:var(--alto-sem-color-fg-white-on-vibrant)}._whitePrimary_c09nf_423[data-focused],._whitePrimary_c09nf_423[data-hovered]{background:var(--alto-sem-color-bg-white-vibrant-hover)}._whitePrimary_c09nf_423[data-pressed]{background:var(--alto-sem-color-bg-white-vibrant-active)}._whitePrimary_c09nf_423[data-pressed][data-focused]{outline:none}._whitePrimary_c09nf_423:disabled,._whitePrimary_c09nf_423[aria-disabled]{background:#ffffff52;color:var(--alto-sem-color-fg-disabled-on-vibrant);cursor:not-allowed;pointer-events:auto}._whiteSecondary_c09nf_449{background:transparent;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-white);color:var(--alto-sem-color-fg-white-on-subtle)}._whiteSecondary_c09nf_449[data-focused],._whiteSecondary_c09nf_449[data-hovered]{background:var(--alto-sem-color-overlay-state-darken-hover)}._whiteSecondary_c09nf_449[data-pressed]{background:var(--alto-sem-color-overlay-state-darken-active)}._whiteSecondary_c09nf_449[data-pressed][data-focused]{outline:none}._whiteSecondary_c09nf_449[data-focused]{outline-color:var(--alto-sem-color-border-white)}._whiteSecondary_c09nf_449:disabled,._whiteSecondary_c09nf_449[aria-disabled]{background:none;border:var(--alto-sem-border-width-sm) solid hsla(0,0%,100%,.32);color:#ffffff52;cursor:not-allowed;pointer-events:auto}._whiteTertiary_c09nf_482{background:var(--alto-sem-color-bg-white-subtle-default);color:var(--alto-sem-color-fg-white-on-subtle)}._whiteTertiary_c09nf_482[data-focused],._whiteTertiary_c09nf_482[data-hovered]{background:var(--alto-sem-color-bg-white-subtle-hover)}._whiteTertiary_c09nf_482[data-pressed]{background:var(--alto-sem-color-bg-white-subtle-active)}._whiteTertiary_c09nf_482[data-pressed][data-focused]{outline:none}._whiteTertiary_c09nf_482[data-focused]{outline-color:var(--alto-sem-color-border-white)}._whiteTertiary_c09nf_482:disabled,._whiteTertiary_c09nf_482[aria-disabled]{background:#0000000d;color:#ffffff52;cursor:not-allowed;pointer-events:auto}._whiteQuaternary_c09nf_512{background:none;color:var(--alto-sem-color-fg-white-primary)}._whiteQuaternary_c09nf_512[data-focused],._whiteQuaternary_c09nf_512[data-hovered]{background:var(--alto-sem-color-bg-white-subtle-hover)}._whiteQuaternary_c09nf_512[data-pressed]{background:var(--alto-sem-color-bg-white-subtle-active)}._whiteQuaternary_c09nf_512[data-pressed][data-focused]{outline:none}._whiteQuaternary_c09nf_512[data-focused]{outline-color:var(--alto-sem-color-border-white)}._whiteQuaternary_c09nf_512:disabled,._whiteQuaternary_c09nf_512[aria-disabled]{background:none;color:#ffffff52;cursor:not-allowed;pointer-events:auto}._fa-spinner-third_c09nf_544{height:1rem;width:1rem}._icon-wrapper_c09nf_549{all:unset;align-items:center;display:flex;height:1em;justify-content:center;width:1em}
1
+ ._button_9pg0y_1{background:var(--alto-sem-color-bg-accent-vibrant-default);border:none;border-radius:var(--alto-button-md-radius);box-sizing:border-box;color:var(--alto-sem-color-fg-accent-on-vibrant);cursor:pointer;font-family:var(--alto-sem-text-body-font-family);font-style:normal;font-weight:500;justify-content:center;padding:var(--alto-sem-space-xs) var(--alto-sem-space-md);text-decoration:none}._button_9pg0y_1,._button_9pg0y_1 ._content_9pg0y_19{align-items:center;display:inline-flex;gap:var(--alto-sem-space-2xs)}._isNotLoading_9pg0y_28 ._loadingSpinner_9pg0y_28{opacity:0;position:absolute}._isNotLoading_9pg0y_28 ._content_9pg0y_19{opacity:1}._isLoading_9pg0y_37 ._loadingSpinner_9pg0y_28{opacity:1;position:absolute}._isLoading_9pg0y_37 ._content_9pg0y_19{opacity:0}._focusWhite_9pg0y_49[data-focus-visible]{outline-color:var(--alto-sem-color-border-white)}._sm_9pg0y_56{font-size:var(--alto-sem-text-label-sm-font-size);letter-spacing:var(--alto-sem-text-label-sm-letter-spacing);line-height:var(--alto-sem-text-label-sm-line-height);min-height:36px;padding:var(--alto-button-sm-padding-top) var(--alto-sem-space-md) var(--alto-button-sm-padding-bottom)}._md_9pg0y_65{font-size:var(--alto-sem-text-label-md-font-size);letter-spacing:var(--alto-sem-text-label-md-letter-spacing);line-height:var(--alto-sem-text-label-md-line-height);min-height:48px;padding:var(--alto-button-md-padding-top) var(--alto-sem-space-lg) var(--alto-button-md-padding-bottom)}._lg_9pg0y_74{font-size:var(--alto-sem-text-label-lg-font-size);height:55px;letter-spacing:var(--alto-sem-text-label-lg-letter-spacing);line-height:var(--alto-sem-text-label-lg-line-height);padding:var(--alto-button-lg-padding-top) var(--alto-sem-space-lg) var(--alto-button-lg-padding-bottom)}._fullWidth_9pg0y_83{width:100%}._textAlignLeft_9pg0y_90{text-align:left}._textAlignCenter_9pg0y_94{text-align:center}._textAlignRight_9pg0y_98{text-align:right}._accentPrimary_9pg0y_106[data-focused],._accentPrimary_9pg0y_106[data-hovered]{background:var(--alto-sem-color-bg-accent-vibrant-hover)}._accentPrimary_9pg0y_106[data-pressed]{background:var(--alto-sem-color-bg-accent-vibrant-active)}._accentPrimary_9pg0y_106[data-pressed][data-focused]{outline:none}._accentPrimary_9pg0y_106:disabled,._accentPrimary_9pg0y_106[aria-disabled]{background:var(--alto-sem-color-bg-disabled-vibrant);cursor:not-allowed;pointer-events:auto}._accentSecondary_9pg0y_126{background-color:transparent;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-accent);color:var(--alto-sem-color-fg-accent-primary)}._accentSecondary_9pg0y_126[data-focused],._accentSecondary_9pg0y_126[data-hovered]{background:var(--alto-sem-color-bg-accent-subtle-hover)}._accentSecondary_9pg0y_126[data-pressed]{background:var(--alto-sem-color-bg-accent-subtle-active)}._accentSecondary_9pg0y_126[data-pressed][data-focused]{outline:none}._accentSecondary_9pg0y_126:disabled,._accentSecondary_9pg0y_126[aria-disabled]{background:none;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-disabled-vibrant);color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._accentTertiary_9pg0y_156{background:var(--alto-sem-color-bg-accent-subtle-default);color:var(--alto-sem-color-fg-accent-primary)}._accentTertiary_9pg0y_156[data-focused],._accentTertiary_9pg0y_156[data-hovered]{background:var(--alto-sem-color-bg-accent-subtle-hover)}._accentTertiary_9pg0y_156[data-pressed]{background:var(--alto-sem-color-bg-accent-subtle-active)}._accentTertiary_9pg0y_156[data-pressed][data-focused]{outline:none}._accentTertiary_9pg0y_156:disabled,._accentTertiary_9pg0y_156[aria-disabled]{background:var(--alto-sem-color-bg-disabled-subtle);color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._accentQuaternary_9pg0y_182{background:none;color:var(--alto-sem-color-fg-accent-primary)}._accentQuaternary_9pg0y_182[data-focused],._accentQuaternary_9pg0y_182[data-hovered]{background:var(--alto-sem-color-bg-accent-subtle-hover)}._accentQuaternary_9pg0y_182[data-pressed]{background:var(--alto-sem-color-bg-accent-subtle-active)}._accentQuaternary_9pg0y_182[data-pressed][data-focused]{outline:none}._accentQuaternary_9pg0y_182:disabled,._accentQuaternary_9pg0y_182[aria-disabled]{color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._criticalPrimary_9pg0y_208{background:var(--alto-sem-color-bg-critical-vibrant-default);color:var(--alto-sem-color-fg-critical-on-vibrant)}._criticalPrimary_9pg0y_208[data-focused],._criticalPrimary_9pg0y_208[data-hovered]{background:var(--alto-sem-color-bg-critical-vibrant-hover)}._criticalPrimary_9pg0y_208[data-pressed]{background:var(--alto-sem-color-bg-critical-vibrant-active)}._criticalPrimary_9pg0y_208[data-pressed][data-focused]{outline:none}._criticalPrimary_9pg0y_208:disabled,._criticalPrimary_9pg0y_208[aria-disabled]{background:var(--alto-sem-color-bg-disabled-vibrant);cursor:not-allowed;pointer-events:auto}._criticalSecondary_9pg0y_233{background:transparent;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-critical);color:var(--alto-sem-color-fg-critical-primary)}._criticalSecondary_9pg0y_233[data-focused],._criticalSecondary_9pg0y_233[data-hovered]{background:var(--alto-sem-color-bg-critical-subtle-hover)}._criticalSecondary_9pg0y_233[data-pressed]{background:var(--alto-sem-color-bg-critical-subtle-active)}._criticalSecondary_9pg0y_233[data-pressed][data-focused]{outline:none}._criticalSecondary_9pg0y_233:disabled,._criticalSecondary_9pg0y_233[aria-disabled]{background:none;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-disabled-vibrant);color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._criticalTertiary_9pg0y_263{background:var(--alto-sem-color-bg-critical-subtle-default);color:var(--alto-sem-color-fg-critical-primary)}._criticalTertiary_9pg0y_263[data-focused],._criticalTertiary_9pg0y_263[data-hovered]{background:var(--alto-sem-color-bg-critical-subtle-hover)}._criticalTertiary_9pg0y_263[data-pressed]{background:var(--alto-sem-color-bg-critical-subtle-active)}._criticalTertiary_9pg0y_263[data-pressed][data-focused]{outline:none}._criticalTertiary_9pg0y_263:disabled,._criticalTertiary_9pg0y_263[aria-disabled]{background:var(--alto-sem-color-bg-disabled-subtle);color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._criticalQuaternary_9pg0y_289{background:none;color:var(--alto-sem-color-fg-critical-primary)}._criticalQuaternary_9pg0y_289[data-focused],._criticalQuaternary_9pg0y_289[data-hovered]{background:var(--alto-sem-color-bg-critical-subtle-hover)}._criticalQuaternary_9pg0y_289[data-pressed]{background:var(--alto-sem-color-bg-critical-subtle-active)}._criticalQuaternary_9pg0y_289[data-pressed][data-focused]{outline:none}._criticalQuaternary_9pg0y_289:disabled,._criticalQuaternary_9pg0y_289[aria-disabled]{background:none;color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._neutralPrimary_9pg0y_316{background:var(--alto-sem-color-bg-inverse-vibrant-default);color:var(--alto-sem-color-fg-inverse-on-vibrant)}._neutralPrimary_9pg0y_316[data-focused],._neutralPrimary_9pg0y_316[data-hovered]{background:var(--alto-sem-color-bg-inverse-vibrant-hover)}._neutralPrimary_9pg0y_316[data-pressed]{background:var(--alto-sem-color-bg-inverse-vibrant-active)}._neutralPrimary_9pg0y_316[data-pressed][data-focused]{outline:none}._neutralPrimary_9pg0y_316:disabled,._neutralPrimary_9pg0y_316[aria-disabled]{background:var(--alto-sem-color-bg-disabled-vibrant);cursor:not-allowed;pointer-events:auto}._neutralSecondary_9pg0y_341{background:transparent;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-inverse);color:var(--alto-sem-color-fg-inverse-on-subtle)}._neutralSecondary_9pg0y_341[data-focused],._neutralSecondary_9pg0y_341[data-hovered]{background:var(--alto-sem-color-bg-inverse-subtle-hover)}._neutralSecondary_9pg0y_341[data-pressed]{background:var(--alto-sem-color-bg-inverse-subtle-active)}._neutralSecondary_9pg0y_341[data-pressed][data-focused]{outline:none}._neutralSecondary_9pg0y_341:disabled,._neutralSecondary_9pg0y_341[aria-disabled]{background:none;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-disabled-vibrant);cursor:not-allowed;pointer-events:auto}._neutralTertiary_9pg0y_370{background:var(--alto-sem-color-bg-inverse-subtle-default);color:var(--alto-sem-color-fg-primary)}._neutralTertiary_9pg0y_370[data-focused],._neutralTertiary_9pg0y_370[data-hovered]{background:var(--alto-sem-color-bg-inverse-subtle-hover)}._neutralTertiary_9pg0y_370[data-pressed]{background:var(--alto-sem-color-bg-inverse-subtle-active)}._neutralTertiary_9pg0y_370[data-pressed][data-focused]{outline:none}._neutralTertiary_9pg0y_370:disabled,._neutralTertiary_9pg0y_370[aria-disabled]{background:var(--alto-sem-color-bg-disabled-subtle);color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._neutralQuaternary_9pg0y_396{background:none;color:var(--alto-sem-color-fg-primary)}._neutralQuaternary_9pg0y_396[data-focused],._neutralQuaternary_9pg0y_396[data-hovered]{background:var(--alto-sem-color-bg-inverse-subtle-hover)}._neutralQuaternary_9pg0y_396[data-pressed]{background:var(--alto-sem-color-bg-inverse-subtle-active)}._neutralQuaternary_9pg0y_396[data-pressed][data-focused]{outline:none}._neutralQuaternary_9pg0y_396:disabled,._neutralQuaternary_9pg0y_396[aria-disabled]{background:none;color:var(--alto-sem-color-fg-disabled-primary);cursor:not-allowed;pointer-events:auto}._whitePrimary_9pg0y_423{background:var(--alto-sem-color-bg-white-vibrant-default);color:var(--alto-sem-color-fg-white-on-vibrant)}._whitePrimary_9pg0y_423[data-focused],._whitePrimary_9pg0y_423[data-hovered]{background:var(--alto-sem-color-bg-white-vibrant-hover)}._whitePrimary_9pg0y_423[data-pressed]{background:var(--alto-sem-color-bg-white-vibrant-active)}._whitePrimary_9pg0y_423[data-pressed][data-focused]{outline:none}._whitePrimary_9pg0y_423:disabled,._whitePrimary_9pg0y_423[aria-disabled]{background:#ffffff52;color:var(--alto-sem-color-fg-disabled-on-vibrant);cursor:not-allowed;pointer-events:auto}._whiteSecondary_9pg0y_449{background:transparent;border:var(--alto-sem-border-width-sm) solid var(--alto-sem-color-border-white);color:var(--alto-sem-color-fg-white-on-subtle)}._whiteSecondary_9pg0y_449[data-focused],._whiteSecondary_9pg0y_449[data-hovered]{background:var(--alto-sem-color-overlay-state-darken-hover)}._whiteSecondary_9pg0y_449[data-pressed]{background:var(--alto-sem-color-overlay-state-darken-active)}._whiteSecondary_9pg0y_449[data-pressed][data-focused]{outline:none}._whiteSecondary_9pg0y_449[data-focused]{outline-color:var(--alto-sem-color-border-white)}._whiteSecondary_9pg0y_449:disabled,._whiteSecondary_9pg0y_449[aria-disabled]{background:none;border:var(--alto-sem-border-width-sm) solid hsla(0,0%,100%,.32);color:#ffffff52;cursor:not-allowed;pointer-events:auto}._whiteTertiary_9pg0y_482{background:var(--alto-sem-color-bg-white-subtle-default);color:var(--alto-sem-color-fg-white-on-subtle)}._whiteTertiary_9pg0y_482[data-focused],._whiteTertiary_9pg0y_482[data-hovered]{background:var(--alto-sem-color-bg-white-subtle-hover)}._whiteTertiary_9pg0y_482[data-pressed]{background:var(--alto-sem-color-bg-white-subtle-active)}._whiteTertiary_9pg0y_482[data-pressed][data-focused]{outline:none}._whiteTertiary_9pg0y_482[data-focused]{outline-color:var(--alto-sem-color-border-white)}._whiteTertiary_9pg0y_482:disabled,._whiteTertiary_9pg0y_482[aria-disabled]{background:#0000000d;color:#ffffff52;cursor:not-allowed;pointer-events:auto}._whiteQuaternary_9pg0y_512{background:none;color:var(--alto-sem-color-fg-white-primary)}._whiteQuaternary_9pg0y_512[data-focused],._whiteQuaternary_9pg0y_512[data-hovered]{background:var(--alto-sem-color-bg-white-subtle-hover)}._whiteQuaternary_9pg0y_512[data-pressed]{background:var(--alto-sem-color-bg-white-subtle-active)}._whiteQuaternary_9pg0y_512[data-pressed][data-focused]{outline:none}._whiteQuaternary_9pg0y_512[data-focused]{outline-color:var(--alto-sem-color-border-white)}._whiteQuaternary_9pg0y_512:disabled,._whiteQuaternary_9pg0y_512[aria-disabled]{background:none;color:#ffffff52;cursor:not-allowed;pointer-events:auto}._fa-spinner-third_9pg0y_544{height:1rem;width:1rem}._icon-wrapper_9pg0y_549{all:unset;align-items:center;display:flex;height:1em;justify-content:center;width:1em}
@@ -1 +1,2 @@
1
1
  export { default } from './Accordion';
2
+ export type { AccordionProps, AccordionGroupProps } from './Accordion';
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { BadgeProps } from '../Badge/Badge';
3
- export type AviosBadgeKind = 'collect' | 'spend';
3
+ type AviosBadgeKind = 'collect' | 'spend';
4
4
  export interface AviosBadgeProps extends Omit<BadgeProps, 'variant' | 'size'> {
5
5
  /**
6
6
  * The kind of Avios badge (collect or spend)
@@ -40,7 +40,7 @@ const AviosBadge = ({
40
40
  };
41
41
  const badgeSize = size === "lg" ? "md" : size;
42
42
  return /* @__PURE__ */ jsxs(Badge, { variant: kind === "collect" ? "success" : "info", size: badgeSize, ariaLabel: ariaLabel || defaultAriaLabel, className: `${styles.aviosBadge} ${styles[size]} ${styles[kind]} ${className || ""}`, ...props, children: [
43
- /* @__PURE__ */ jsx(AviosCurrencySymbol, { kind, styleVariant: "secondary", width: iconSizes[size], height: iconSizes[size], "aria-hidden": "true" }),
43
+ /* @__PURE__ */ jsx(AviosCurrencySymbol, { kind, styleVariant: kind === "collect" ? "onCollect" : "onSpend", width: iconSizes[size], height: iconSizes[size], "aria-hidden": "true" }),
44
44
  /* @__PURE__ */ jsxs("span", { className: styles.content, children: [
45
45
  /* @__PURE__ */ jsx("span", { className: styles.points, children: formattedPoints }),
46
46
  children && /* @__PURE__ */ jsx("span", { className: styles.label, children }),
@@ -1 +1,2 @@
1
1
  export { default } from './AviosBadge';
2
+ export type { AviosBadgeProps } from './AviosBadge';
@@ -44,7 +44,7 @@ const DEFAULT_DIMENSIONS = {
44
44
  };
45
45
  const AviosCurrencySymbol = ({
46
46
  kind = "collect",
47
- styleVariant = "primary",
47
+ styleVariant = "accentPrimary",
48
48
  width,
49
49
  height,
50
50
  label,
@@ -1 +1,2 @@
1
1
  export { default } from './AviosCurrencySymbol';
2
+ export type { AviosCurrencySymbolProps } from './AviosCurrencySymbol';
@@ -1 +1,2 @@
1
1
  export { default } from './Badge';
2
+ export type { BadgeProps } from './Badge';
@@ -39,10 +39,35 @@ export interface BoxProps extends BackgroundVariants, FlexVariants, BorderVarian
39
39
  * Accepts any valid CSS unit.
40
40
  */
41
41
  minHeight?: string;
42
+ /**
43
+ * The z-index of the Box.
44
+ * Accepts any valid CSS z-index value.
45
+ */
46
+ zIndex?: string;
47
+ /**
48
+ * The top position of the Box.
49
+ * Accepts any valid CSS position value.
50
+ */
51
+ top?: string;
52
+ /**
53
+ * The right position of the Box.
54
+ * Accepts any valid CSS position value.
55
+ */
56
+ right?: string;
57
+ /**
58
+ * The bottom position of the Box.
59
+ * Accepts any valid CSS position value.
60
+ */
61
+ bottom?: string;
62
+ /**
63
+ * The left position of the Box.
64
+ * Accepts any valid CSS position value.
65
+ */
66
+ left?: string;
42
67
  /**
43
68
  * @deprecated Use `backgroundColor` instead.
44
69
  */
45
70
  backgroundColour?: BackgroundVariants['backgroundColor'];
46
71
  }
47
- export declare const Box: ({ children, as: Component, width, maxWidth, minWidth, height, maxHeight, minHeight, position, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
72
+ export declare const Box: ({ children, as: Component, width, maxWidth, minWidth, height, maxHeight, minHeight, zIndex, top, right, bottom, left, position, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
48
73
  export default Box;
@@ -13,6 +13,11 @@ const Box = ({
13
13
  height,
14
14
  maxHeight,
15
15
  minHeight,
16
+ zIndex,
17
+ top,
18
+ right,
19
+ bottom,
20
+ left,
16
21
  position,
17
22
  ...props
18
23
  }) => {
@@ -27,7 +32,12 @@ const Box = ({
27
32
  maxWidth: maxWidth === "pageWidth" ? "var(--alto-section-container-max-width)" : maxWidth,
28
33
  minWidth,
29
34
  maxHeight,
30
- minHeight
35
+ minHeight,
36
+ zIndex,
37
+ top,
38
+ right,
39
+ bottom,
40
+ left
31
41
  };
32
42
  return /* @__PURE__ */ jsx(Component, { className: `${borderVariants({
33
43
  ...props,
@@ -1 +1 @@
1
- {"version":3,"file":"Box.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Box.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1,2 @@
1
1
  export { default } from './Box';
2
+ export type { BoxProps } from './Box';
@@ -2,8 +2,8 @@ import { default as React, ComponentType, ElementType, ReactNode } from 'react';
2
2
  import { AriaButtonOptions } from '@react-aria/button';
3
3
  import { HoverProps } from '@react-aria/interactions';
4
4
  import { IconProps } from '../Icon/Icon';
5
- export type ButtonSize = 'lg' | 'md' | 'sm';
6
- export type ButtonTextAlignement = 'left' | 'center' | 'right';
5
+ type ButtonSize = 'lg' | 'md' | 'sm';
6
+ type ButtonTextAlignement = 'left' | 'center' | 'right';
7
7
  export type DefaultButtonProps = ButtonProps<'button'>;
8
8
  export type ButtonProps<T extends ElementType = 'button'> = AriaButtonOptions<T> & HoverProps & {
9
9
  /**
@@ -8,35 +8,35 @@ import { useFocusRing } from "@react-aria/focus";
8
8
  import { Icon } from "../Icon/Icon.js";
9
9
  import LoadingSpinner from "../LoadingSpinner/LoadingSpinner.js";
10
10
  import { focusStyleVariants } from "../../utils/focus/focusStyles.js";
11
- import '../../assets/Button.css';const button$1 = "_button_c09nf_1";
12
- const content = "_content_c09nf_19";
13
- const isNotLoading = "_isNotLoading_c09nf_28";
14
- const loadingSpinner = "_loadingSpinner_c09nf_28";
15
- const isLoading = "_isLoading_c09nf_37";
16
- const focusWhite = "_focusWhite_c09nf_49";
17
- const sm = "_sm_c09nf_56";
18
- const md = "_md_c09nf_65";
19
- const lg = "_lg_c09nf_74";
20
- const fullWidth = "_fullWidth_c09nf_83";
21
- const textAlignLeft = "_textAlignLeft_c09nf_90";
22
- const textAlignCenter = "_textAlignCenter_c09nf_94";
23
- const textAlignRight = "_textAlignRight_c09nf_98";
24
- const accentPrimary = "_accentPrimary_c09nf_106";
25
- const accentSecondary = "_accentSecondary_c09nf_126";
26
- const accentTertiary = "_accentTertiary_c09nf_156";
27
- const accentQuaternary = "_accentQuaternary_c09nf_182";
28
- const criticalPrimary = "_criticalPrimary_c09nf_208";
29
- const criticalSecondary = "_criticalSecondary_c09nf_233";
30
- const criticalTertiary = "_criticalTertiary_c09nf_263";
31
- const criticalQuaternary = "_criticalQuaternary_c09nf_289";
32
- const neutralPrimary = "_neutralPrimary_c09nf_316";
33
- const neutralSecondary = "_neutralSecondary_c09nf_341";
34
- const neutralTertiary = "_neutralTertiary_c09nf_370";
35
- const neutralQuaternary = "_neutralQuaternary_c09nf_396";
36
- const whitePrimary = "_whitePrimary_c09nf_423";
37
- const whiteSecondary = "_whiteSecondary_c09nf_449";
38
- const whiteTertiary = "_whiteTertiary_c09nf_482";
39
- const whiteQuaternary = "_whiteQuaternary_c09nf_512";
11
+ import '../../assets/Button.css';const button$1 = "_button_9pg0y_1";
12
+ const content = "_content_9pg0y_19";
13
+ const isNotLoading = "_isNotLoading_9pg0y_28";
14
+ const loadingSpinner = "_loadingSpinner_9pg0y_28";
15
+ const isLoading = "_isLoading_9pg0y_37";
16
+ const focusWhite = "_focusWhite_9pg0y_49";
17
+ const sm = "_sm_9pg0y_56";
18
+ const md = "_md_9pg0y_65";
19
+ const lg = "_lg_9pg0y_74";
20
+ const fullWidth = "_fullWidth_9pg0y_83";
21
+ const textAlignLeft = "_textAlignLeft_9pg0y_90";
22
+ const textAlignCenter = "_textAlignCenter_9pg0y_94";
23
+ const textAlignRight = "_textAlignRight_9pg0y_98";
24
+ const accentPrimary = "_accentPrimary_9pg0y_106";
25
+ const accentSecondary = "_accentSecondary_9pg0y_126";
26
+ const accentTertiary = "_accentTertiary_9pg0y_156";
27
+ const accentQuaternary = "_accentQuaternary_9pg0y_182";
28
+ const criticalPrimary = "_criticalPrimary_9pg0y_208";
29
+ const criticalSecondary = "_criticalSecondary_9pg0y_233";
30
+ const criticalTertiary = "_criticalTertiary_9pg0y_263";
31
+ const criticalQuaternary = "_criticalQuaternary_9pg0y_289";
32
+ const neutralPrimary = "_neutralPrimary_9pg0y_316";
33
+ const neutralSecondary = "_neutralSecondary_9pg0y_341";
34
+ const neutralTertiary = "_neutralTertiary_9pg0y_370";
35
+ const neutralQuaternary = "_neutralQuaternary_9pg0y_396";
36
+ const whitePrimary = "_whitePrimary_9pg0y_423";
37
+ const whiteSecondary = "_whiteSecondary_9pg0y_449";
38
+ const whiteTertiary = "_whiteTertiary_9pg0y_482";
39
+ const whiteQuaternary = "_whiteQuaternary_9pg0y_512";
40
40
  const styles = {
41
41
  button: button$1,
42
42
  content,
@@ -67,8 +67,8 @@ const styles = {
67
67
  whiteSecondary,
68
68
  whiteTertiary,
69
69
  whiteQuaternary,
70
- "fa-spinner-third": "_fa-spinner-third_c09nf_544",
71
- "icon-wrapper": "_icon-wrapper_c09nf_549"
70
+ "fa-spinner-third": "_fa-spinner-third_9pg0y_544",
71
+ "icon-wrapper": "_icon-wrapper_9pg0y_549"
72
72
  };
73
73
  const button = cva(styles.button, {
74
74
  variants: {
@@ -160,7 +160,8 @@ const Button = forwardRef(function Button2({
160
160
  } = useHover(props);
161
161
  const {
162
162
  isFocusVisible,
163
- focusProps
163
+ focusProps,
164
+ isFocused
164
165
  } = useFocusRing(props);
165
166
  const getAriaLabel = () => {
166
167
  if (isLoading2) {
@@ -190,7 +191,7 @@ const Button = forwardRef(function Button2({
190
191
  } : iconEndProps;
191
192
  return /* @__PURE__ */ jsx(Component, { className: `${className} ${focusStyleVariants({
192
193
  focusStyle
193
- })}`, ref, "data-focused": isFocusVisible ? true : void 0, "data-hovered": isHovered ? true : void 0, "data-pressed": isPressed ? true : void 0, "aria-label": getAriaLabel(), "aria-disabled": props.isDisabled ? true : void 0, ...mergeProps(buttonProps, hoverProps, focusProps), ...passthroughProps, children: /* @__PURE__ */ jsxs(Fragment, { children: [
194
+ })}`, ref, "data-focused": isFocused ? true : void 0, "data-focus-visible": isFocusVisible ? true : void 0, "data-hovered": isHovered ? true : void 0, "data-pressed": isPressed ? true : void 0, "aria-label": getAriaLabel(), "aria-disabled": props.isDisabled ? true : void 0, ...mergeProps(buttonProps, hoverProps, focusProps), ...passthroughProps, children: /* @__PURE__ */ jsxs(Fragment, { children: [
194
195
  isLoading2 && /* @__PURE__ */ jsx(LoadingSpinner, { className: styles.loadingSpinner, size: size === "lg" ? "lg" : "1x", "aria-hidden": "true" }),
195
196
  /* @__PURE__ */ jsxs("span", { className: styles.content, children: [
196
197
  resolvedIconStartProps && /* @__PURE__ */ jsx(Icon, { ...resolvedIconStartProps, "aria-hidden": "true" }),
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1,2 @@
1
1
  export { default } from './Button';
2
+ export type { DefaultButtonProps, ButtonProps } from './Button';
@@ -1 +1,2 @@
1
1
  export { default } from './ButtonGroup';
2
+ export type { ButtonGroupProps } from './ButtonGroup';
@@ -4,7 +4,7 @@ declare const calloutBanner: (props?: ({
4
4
  emphasis?: "primary" | "secondary" | "tertiary" | null | undefined;
5
5
  styleVariant?: "neutral" | "critical" | "success" | "information" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- export type CalloutBannerVariants = VariantProps<typeof calloutBanner>;
7
+ type CalloutBannerVariants = VariantProps<typeof calloutBanner>;
8
8
  export interface CalloutBannerProps extends CalloutBannerVariants {
9
9
  /** The main heading text of the banner */
10
10
  title: string;
@@ -1 +1,2 @@
1
1
  export { default } from './CalloutBanner';
2
+ export type { CalloutBannerProps } from './CalloutBanner';
@@ -1 +1,2 @@
1
1
  export { default } from './CardSection';
2
+ export type { CardSectionProps } from './CardSection';
@@ -1,2 +1,2 @@
1
- export type { CheckboxProps } from './Checkbox';
2
1
  export { default } from './Checkbox';
2
+ export type { CheckboxProps } from './Checkbox';
@@ -1 +1,2 @@
1
1
  export { default } from './CheckboxGroup';
2
+ export type { CheckboxGroupProps } from './CheckboxGroup';
@@ -1,6 +1,5 @@
1
1
  import { ButtonProps } from '../Button/Button';
2
2
  import { FormProps } from '../../utils/forms/formProps';
3
- export type ClearFieldButtonButtonSize = 'lg' | 'md' | 'sm';
4
3
  export interface ClearFieldButtonProps extends Omit<ButtonProps, '$styleText'>, FormProps {
5
4
  slot?: string;
6
5
  className?: string;
@@ -1 +1,2 @@
1
1
  export { default } from './ClearFieldButton';
2
+ export type { ClearFieldButtonProps } from './ClearFieldButton';
@@ -1,9 +1,9 @@
1
1
  import { default as React } from 'react';
2
- import { ComboBoxProps as AriaComboBoxProps, ListBoxItemProps } from 'react-aria-components';
2
+ import { ComboBoxProps as AriaComboBoxProps, ListBoxItemProps as AriaListBoxItemProps } from 'react-aria-components';
3
3
  import { FieldProps } from '../_base/Field';
4
4
  export interface ComboBoxProps<T extends object> extends FieldProps<AriaComboBoxProps<T>> {
5
5
  isLoading?: boolean;
6
- children: React.ReactNode | React.ReactElement<ListBoxItemProps<T>>;
6
+ children: React.ReactNode | React.ReactElement<AriaListBoxItemProps<T>>;
7
7
  }
8
8
  export declare const ComboBox: <T extends object>({ children, isLoading, ...props }: ComboBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
9
9
  export default ComboBox;
@@ -1,7 +1,7 @@
1
1
  import { TextFieldProps as AriaTextFieldProps } from 'react-aria-components';
2
2
  import { FieldProps } from '../_base/Field';
3
3
  type CreditCardNumberValue = string | number | null | undefined;
4
- interface CreditCardNumberFieldBaseProps {
4
+ export interface CreditCardNumberFieldBaseProps {
5
5
  /**
6
6
  * The icon to display.
7
7
  * If a function is provided, it will be called with the current value of the input.
@@ -1 +1,2 @@
1
1
  export { default } from './CreditCardNumberField';
2
+ export type { CreditCardNumberFieldProps, CreditCardNumberFieldBaseProps, } from './CreditCardNumberField';
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { TextFieldProps as AriaTextFieldProps } from 'react-aria-components';
3
3
  import { FieldProps } from '../_base/Field';
4
4
  type CreditCardSecurityCodeValue = string | number | null | undefined;
5
- interface CreditCardSecurityCodeFieldBaseProps {
5
+ export interface CreditCardSecurityCodeFieldBaseProps {
6
6
  /**
7
7
  * The controlled value of the credit card number.
8
8
  */
@@ -1 +1,2 @@
1
1
  export { default } from './CreditCardSecurityCodeField';
2
+ export type { CreditCardSecurityCodeFieldProps, CreditCardSecurityCodeFieldBaseProps, } from './CreditCardSecurityCodeField';
@@ -1 +1,2 @@
1
1
  export { default } from './DateField';
2
+ export type { DateFieldProps } from './DateField';
@@ -1 +1,2 @@
1
1
  export { default } from './DestinationHeading';
2
+ export type { DestinationHeadingProps } from './DestinationHeading';
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { DisclosureProps as AriaDisclosureProps, DisclosurePanelProps as AriaDisclosurePanelProps } from 'react-aria-components';
3
- interface DetailsDisclosureProps extends AriaDisclosureProps {
3
+ export interface DetailsDisclosureProps extends AriaDisclosureProps {
4
4
  /**
5
5
  * Whether the disclosure is expanded by default.
6
6
  */
@@ -29,5 +29,4 @@ declare const DetailsDisclosure: {
29
29
  displayName: string;
30
30
  };
31
31
  };
32
- export type { DetailsDisclosureProps };
33
32
  export default DetailsDisclosure;
@@ -1,2 +1,2 @@
1
- export type { DetailsDisclosureProps } from './DetailsDisclosure';
2
1
  export { default } from './DetailsDisclosure';
2
+ export type { DetailsDisclosureProps } from './DetailsDisclosure';
@@ -1,25 +1,43 @@
1
1
  import { default as React } from 'react';
2
2
  import { AriaDialogProps } from 'react-aria';
3
- export type DialogSize = 'dialogSmall' | 'dialogMedium' | 'dialogLarge';
4
- export type DialogRole = 'alertdialog' | 'dialog';
3
+ type DialogSize = 'dialogSmall' | 'dialogMedium' | 'dialogLarge';
4
+ type DialogRole = 'alertdialog' | 'dialog';
5
5
  export interface DialogProps extends AriaDialogProps {
6
- /** Whether the dialog is currently visible */
6
+ /**
7
+ * Whether the dialog is currently visible
8
+ */
7
9
  isOpen?: boolean;
8
- /** Callback function when dialog is requested to close */
10
+ /**
11
+ * Callback function when dialog is requested to close
12
+ */
9
13
  onClose?: () => void;
10
- /** Width variant of the dialog - affects max-width */
14
+ /**
15
+ * Width variant of the dialog - affects max-width
16
+ */
11
17
  size?: DialogSize;
12
- /** Whether clicking outside or escape key should be blocked */
18
+ /**
19
+ * Whether clicking outside or escape key should be blocked
20
+ */
13
21
  modal?: boolean;
14
- /** Shows/hides the close (X) button in header */
22
+ /**
23
+ * Shows/hides the close (X) button in header
24
+ */
15
25
  hasDismissButton?: boolean;
16
- /** ARIA role - use 'alertdialog' for important messages */
26
+ /**
27
+ * ARIA role - use 'alertdialog' for important messages
28
+ */
17
29
  role?: DialogRole;
18
- /** Required unique ID for the dialog */
30
+ /**
31
+ * Required unique ID for the dialog
32
+ */
19
33
  id?: string;
20
- /** ID of element labeling the dialog (required for a11y) */
34
+ /**
35
+ * ID of element labeling the dialog (required for a11y)
36
+ */
21
37
  'aria-describedby'?: string;
22
- /** ID of element describing the dialog (optional but recommended) */
38
+ /**
39
+ * ID of element describing the dialog (optional but recommended)
40
+ */
23
41
  'aria-labelledby'?: string;
24
42
  }
25
43
  export interface DialogComposition {
@@ -1 +1,2 @@
1
1
  export { default } from './Dialog';
2
+ export type { DialogProps, DialogComposition } from './Dialog';
@@ -1 +1,2 @@
1
1
  export { default } from './ErrorSummary';
2
+ export type { ErrorSummaryProps } from './ErrorSummary';
@@ -1,7 +1,21 @@
1
1
  import { default as React } from 'react';
2
2
  export interface EyebrowProps {
3
+ /**
4
+ * The text content of the Eyebrow component.
5
+ * This is the main content that will be displayed.
6
+ */
3
7
  children: React.ReactNode;
8
+ /**
9
+ * As which HTML element to render the Eyebrow component.
10
+ * This allows for flexibility in the semantic structure of the document.
11
+ * @default 'span'
12
+ */
4
13
  as?: 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
14
+ /**
15
+ * Style variant of the Eyebrow component.
16
+ * This determines the visual style applied to the component.
17
+ * @default 'inspiration'
18
+ */
5
19
  styleVariant?: 'inspiration' | 'collect' | 'spend' | 'activate';
6
20
  }
7
21
  export declare const Eyebrow: ({ children, as: Component, styleVariant, ...props }: EyebrowProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,2 @@
1
1
  export { default } from './FieldDescription';
2
+ export type { FieldDescriptionProps } from './FieldDescription';
@@ -1 +1,2 @@
1
1
  export { default } from './FieldError';
2
+ export type { FieldErrorProps } from './FieldError';
@@ -1 +1,2 @@
1
1
  export { default } from './FieldLabel';
2
+ export type { FieldLabelProps } from './FieldLabel';
@@ -1 +1,2 @@
1
1
  export { default } from './FieldsetHeader';
2
+ export type { FieldsetHeaderProps } from './FieldsetHeader';
@@ -1 +1,2 @@
1
1
  export { default } from './Form';
2
+ export type { FormProps } from './Form';
@@ -3,7 +3,7 @@ import { SpaceToken } from '../../utils/spaceToken/spaceToken';
3
3
  type AutoFlowValue = 'row' | 'column' | 'dense' | 'row dense' | 'column dense';
4
4
  type AlignContentValue = 'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly';
5
5
  type ValidElements = 'div' | 'span';
6
- type PolymorphicProps<E extends ValidElements> = {
6
+ export type PolymorphicProps<E extends ValidElements> = {
7
7
  as?: E;
8
8
  } & Omit<React.ComponentPropsWithRef<E>, 'as'>;
9
9
  export interface GridCellBaseProps {
@@ -1 +1,2 @@
1
1
  export { default } from './Grid';
2
+ export type { PolymorphicProps, GridCellBaseProps, GridProps } from './Grid';
@@ -8,6 +8,7 @@ declare const heading: (props?: ({
8
8
  type HeadingVariants = VariantProps<typeof heading>;
9
9
  type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'legend';
10
10
  type HeadingSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
11
+ export declare const DEFAULT_HEADING_SIZE_MAP: Record<HeadingLevel, HeadingSize>;
11
12
  export interface HeadingProps extends HeadingVariants {
12
13
  /**
13
14
  * children
@@ -78,6 +78,7 @@ const Heading = ({
78
78
  })}`, ...props, children });
79
79
  };
80
80
  export {
81
+ DEFAULT_HEADING_SIZE_MAP,
81
82
  Heading,
82
83
  Heading as default
83
84
  };
@@ -1 +1,2 @@
1
1
  export { default } from './Heading';
2
+ export type { HeadingProps, DEFAULT_HEADING_SIZE_MAP } from './Heading';
@@ -5,7 +5,7 @@ export type IconSize = '0.5x' | '0.75x' | '1x' | '1.25x' | '1.5x' | '2x' | '2.5x
5
5
  * @deprecated These sizes will be removed in the next major version. Use 1x instead.
6
6
  * @ignore
7
7
  */
8
- export type DeprecatedIconSize = 'lg' | 'sm' | 'xs' | '2xs' | 'xl' | '2xl';
8
+ type DeprecatedIconSize = 'lg' | 'sm' | 'xs' | '2xs' | 'xl' | '2xl';
9
9
  export interface IconProps {
10
10
  /**
11
11
  * What Icon to load from fontAwesome
@@ -1 +1,2 @@
1
1
  export { default } from './Icon';
2
+ export type { IconProps, IconSize } from './Icon';
@@ -1 +1,2 @@
1
1
  export { default } from './IconBackdrop';
2
+ export type { IconBackdropProps } from './IconBackdrop';
@@ -1 +1,2 @@
1
1
  export { default } from './IconButton';
2
+ export type { IconButtonProps } from './IconButton';