@sps-woodland/core 8.53.29 → 8.53.31

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 (158) hide show
  1. package/lib/action-bar/action-bar/ActionBar.ve.js +1 -1
  2. package/lib/action-bar/index.js +1 -1
  3. package/lib/action-bar/index.umd.cjs +1 -1
  4. package/lib/action-bar/style.css +1 -1
  5. package/lib/add-to-list/add-to-list/AddToList.d.ts.map +1 -1
  6. package/lib/add-to-list/add-to-list/AddToList.js +126 -119
  7. package/lib/add-to-list/add-to-list/AddToList.ve.js +1 -1
  8. package/lib/add-to-list/index.js +129 -122
  9. package/lib/add-to-list/index.umd.cjs +1 -1
  10. package/lib/add-to-list/style.css +1 -1
  11. package/lib/buttons/button/Button.css.d.ts +3 -1
  12. package/lib/buttons/button/Button.css.d.ts.map +1 -1
  13. package/lib/buttons/button/Button.d.ts +2 -0
  14. package/lib/buttons/button/Button.d.ts.map +1 -1
  15. package/lib/buttons/button/Button.js +65 -59
  16. package/lib/buttons/button/Button.ve.js +1 -1
  17. package/lib/buttons/index.js +91 -85
  18. package/lib/buttons/index.umd.cjs +1 -1
  19. package/lib/buttons/style.css +1 -1
  20. package/lib/cards/card/Card.ve.js +1 -1
  21. package/lib/cards/card-footer/CardFooter.ve.js +1 -1
  22. package/lib/cards/card-header/CardHeader.ve.js +1 -1
  23. package/lib/cards/card-title/CardTitle.ve.js +1 -1
  24. package/lib/cards/index.js +4 -4
  25. package/lib/cards/index.umd.cjs +1 -1
  26. package/lib/cards/style.css +1 -1
  27. package/lib/components/icon/Icon.ve.js +1 -1
  28. package/lib/content-row/content-row/ContentRow.ve.js +1 -1
  29. package/lib/content-row/content-row-col/ContentRowCol.ve.js +1 -1
  30. package/lib/content-row/index.js +3 -3
  31. package/lib/content-row/index.umd.cjs +1 -1
  32. package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +1 -1
  33. package/lib/content-row/style.css +1 -1
  34. package/lib/content-tiles/content-tile/ContentTile.ve.js +1 -1
  35. package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
  36. package/lib/content-tiles/index.js +2 -2
  37. package/lib/content-tiles/index.umd.cjs +1 -1
  38. package/lib/content-tiles/style.css +1 -1
  39. package/lib/core.css +1 -1
  40. package/lib/dropdowns/dropdown/Dropdown.js +11 -11
  41. package/lib/dropdowns/dropdown/Dropdown.ve.js +1 -1
  42. package/lib/dropdowns/index.js +13 -13
  43. package/lib/dropdowns/index.umd.cjs +1 -1
  44. package/lib/dropdowns/option-list/Option.ve.js +1 -1
  45. package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
  46. package/lib/dropdowns/style.css +1 -1
  47. package/lib/feedback-block/FeedbackBlock.ve.js +1 -1
  48. package/lib/feedback-block/index.js +1 -1
  49. package/lib/feedback-block/index.umd.cjs +1 -1
  50. package/lib/feedback-block/style.css +1 -1
  51. package/lib/file-upload/file-upload/FileUpload.ve.js +1 -1
  52. package/lib/file-upload/index.js +1 -1
  53. package/lib/file-upload/index.umd.cjs +1 -1
  54. package/lib/file-upload/style.css +1 -1
  55. package/lib/filter-tiles/filter-tile/FilterTile.ve.js +1 -1
  56. package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
  57. package/lib/filter-tiles/index.js +2 -2
  58. package/lib/filter-tiles/index.umd.cjs +1 -1
  59. package/lib/filter-tiles/style.css +1 -1
  60. package/lib/focused-task/focused-task/FocusedTask.ve.js +1 -1
  61. package/lib/focused-task/index.js +1 -1
  62. package/lib/focused-task/index.umd.cjs +1 -1
  63. package/lib/focused-task/style.css +1 -1
  64. package/lib/growler/Growler.ve.js +1 -1
  65. package/lib/growler/Sonner.ve.js +1 -1
  66. package/lib/growler/index.js +2 -2
  67. package/lib/growler/index.umd.cjs +1 -1
  68. package/lib/growler/style.css +1 -1
  69. package/lib/index.js +8 -8
  70. package/lib/index.umd.cjs +1 -1
  71. package/lib/insight-card/InsightCard.ve.js +1 -1
  72. package/lib/insight-card/index.js +1 -1
  73. package/lib/insight-card/index.umd.cjs +1 -1
  74. package/lib/insight-card/style.css +1 -1
  75. package/lib/key-value-set/index.js +2 -2
  76. package/lib/key-value-set/index.umd.cjs +1 -1
  77. package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +1 -1
  78. package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +1 -1
  79. package/lib/key-value-set/style.css +1 -1
  80. package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +1 -1
  81. package/lib/list-bar/index.js +60 -60
  82. package/lib/list-bar/index.umd.cjs +1 -1
  83. package/lib/list-bar/list-bar/ListBar.ve.js +1 -1
  84. package/lib/list-bar/search-results-bar/SearchResultsBar.css.d.ts +0 -1
  85. package/lib/list-bar/search-results-bar/SearchResultsBar.css.d.ts.map +1 -1
  86. package/lib/list-bar/search-results-bar/SearchResultsBar.d.ts.map +1 -1
  87. package/lib/list-bar/search-results-bar/SearchResultsBar.js +7 -7
  88. package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -2
  89. package/lib/list-bar/style.css +1 -1
  90. package/lib/matrix/index.js +1 -1
  91. package/lib/matrix/index.umd.cjs +1 -1
  92. package/lib/matrix/matrix/Matrix.ve.js +1 -1
  93. package/lib/matrix/style.css +1 -1
  94. package/lib/modal/index.js +1 -1
  95. package/lib/modal/index.umd.cjs +1 -1
  96. package/lib/modal/modal/Modal.ve.js +1 -1
  97. package/lib/modal/style.css +1 -1
  98. package/lib/page-title/index.js +2 -2
  99. package/lib/page-title/index.umd.cjs +1 -1
  100. package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
  101. package/lib/page-title/page-title/PageTitle.ve.js +1 -1
  102. package/lib/page-title/style.css +1 -1
  103. package/lib/photo/index.js +2 -2
  104. package/lib/photo/index.umd.cjs +1 -1
  105. package/lib/photo/photo/Photo.ve.js +1 -1
  106. package/lib/photo/photo-carousel/PhotoCarousel.ve.js +1 -1
  107. package/lib/photo/style.css +1 -1
  108. package/lib/product-bar/index.js +3 -3
  109. package/lib/product-bar/index.umd.cjs +1 -1
  110. package/lib/product-bar/product-bar/ProductBar.ve.js +1 -1
  111. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
  112. package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
  113. package/lib/product-bar/style.css +1 -1
  114. package/lib/product-bar-vertical/index.js +1 -1
  115. package/lib/product-bar-vertical/index.umd.cjs +1 -1
  116. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +1 -1
  117. package/lib/product-bar-vertical/style.css +1 -1
  118. package/lib/progress-indicators/index.js +1 -1
  119. package/lib/progress-indicators/index.umd.cjs +1 -1
  120. package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +1 -1
  121. package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +1 -1
  122. package/lib/progress-indicators/style.css +1 -1
  123. package/lib/rich-text-editor/index.js +2 -2
  124. package/lib/rich-text-editor/index.umd.cjs +1 -1
  125. package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +1 -1
  126. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +1 -1
  127. package/lib/rich-text-editor/style.css +1 -1
  128. package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
  129. package/lib/scrollable-container/index.js +1 -1
  130. package/lib/scrollable-container/index.umd.cjs +1 -1
  131. package/lib/scrollable-container/style.css +1 -1
  132. package/lib/side-nav/index.js +1 -1
  133. package/lib/side-nav/index.umd.cjs +1 -1
  134. package/lib/side-nav/side-nav/SideNav.ve.js +1 -1
  135. package/lib/side-nav/style.css +1 -1
  136. package/lib/sorting-header/caret/caret.ve.js +1 -1
  137. package/lib/sorting-header/index.js +2 -2
  138. package/lib/sorting-header/index.umd.cjs +1 -1
  139. package/lib/sorting-header/sorting-header/SortingHeader.ve.js +1 -1
  140. package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +1 -1
  141. package/lib/sorting-header/style.css +1 -1
  142. package/lib/style.css +1 -1
  143. package/lib/tabs/index.js +2 -2
  144. package/lib/tabs/index.umd.cjs +1 -1
  145. package/lib/tabs/style.css +1 -1
  146. package/lib/tabs/tab/Tab.ve.js +1 -1
  147. package/lib/tabs/tabs/Tabs.ve.js +1 -1
  148. package/lib/tags/clickable-tag/ClickableTag.ve.js +1 -1
  149. package/lib/tags/index.js +3 -3
  150. package/lib/tags/index.umd.cjs +1 -1
  151. package/lib/tags/split-tag/SplitTag.ve.js +1 -1
  152. package/lib/tags/style.css +1 -1
  153. package/lib/tags/tag/Tag.ve.js +1 -1
  154. package/lib/zero-state/ZeroState.ve.js +1 -1
  155. package/lib/zero-state/index.js +1 -1
  156. package/lib/zero-state/index.umd.cjs +1 -1
  157. package/lib/zero-state/style.css +1 -1
  158. package/package.json +10 -10
@@ -1 +1 @@
1
- .pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx90{display:flex;flex-direction:row;align-content:space-between}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx91{flex-direction:column}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx93{margin-right:1rem;position:relative}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx94{margin-right:0;margin-bottom:1.375rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx96{position:relative}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx97{width:.0625rem;background-color:#d2d4d4;height:100%;position:absolute;top:0}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx98{left:calc(100% + 1rem)}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9a{left:-1rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9c{height:calc(100% - 1.5625rem)}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9e{margin-left:1rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9f{margin-left:0}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9h{flex-shrink:0;align-self:stretch;width:calc(50% - 1rem)}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9i{width:100%}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9k{display:block;width:.375rem;height:1.125rem;background:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgOCAxOCIgd2lkdGg9IjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE2IDcwODFoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem01LTE1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3oiIGZpbGw9IiNhNWE5YWIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2IC03MDgxKSIvPjwvc3ZnPg==) no-repeat left center;padding:0 1rem 0 0;line-height:1.125rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9l{display:block;opacity:.25;width:.375rem;height:1.125rem;background:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgOCAxOCIgd2lkdGg9IjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE2IDcwODFoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem01LTE1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3oiIGZpbGw9IiNhNWE5YWIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2IC03MDgxKSIvPjwvc3ZnPg==) no-repeat left center;padding:0 1rem 0 0;line-height:1.125rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9m{border:#d2d4d4ff solid .0625rem;border-bottom:none}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9m:last-child{border-bottom:#d2d4d4ff solid .0625rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9n{position:relative;border:#d2d4d4ff solid .0625rem;border-bottom:none}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9o{background-color:#f3f4f4;color:#717779}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9q{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;line-height:1.125rem;font-size:.75rem;border:#d2d4d4ff solid .0625rem;width:100%;min-width:17.75rem;padding:.75rem;background-color:#e6f2f8;flex:1}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9r{display:flex;flex-direction:row;justify-content:flex-start;position:relative;line-height:1.125rem;font-size:.75rem;width:100%;padding:.75rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9r:focus{background-color:#e6f2f8}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9s{box-shadow:inset 0 .25rem #007db8}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9u{position:relative;line-height:1.125rem;font-size:.75rem;width:100%;padding:.75rem;border-top:.0625rem solid #d2d4d4ff}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9u:focus{outline:none}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9v{box-shadow:inset 0 .25rem #007db8}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9x{position:absolute;right:.375rem;top:.375rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9y{font-size:.875rem;line-height:1.25rem;display:flex;align-items:center;justify-content:flex-start;font-weight:600;margin-bottom:.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx9z{font-size:.875rem;line-height:1.25rem;margin-right:.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx910{margin-left:.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx911{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;line-height:1.125rem;font-size:.75rem;width:100%;padding:.75rem;border-bottom:none}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx911:last-child{border-bottom:#d2d4d4ff solid .0625rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx912{margin-bottom:1.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_29__hash_13b8tx913{margin-top:1.5625rem}
1
+ .pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx90{display:flex;flex-direction:row;align-content:space-between}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx91{flex-direction:column}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx93{margin-right:1rem;position:relative}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx94{margin-right:0;margin-bottom:1.375rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx96{position:relative}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx97{width:.0625rem;background-color:#d2d4d4;height:100%;position:absolute;top:0}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx98{left:calc(100% + 1rem)}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9a{left:-1rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9c{height:calc(100% - 1.5625rem)}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9e{margin-left:1rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9f{margin-left:0}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9h{flex-shrink:0;align-self:stretch;width:calc(50% - 1rem)}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9i{width:100%}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9k{display:block;width:.375rem;height:1.125rem;background:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgOCAxOCIgd2lkdGg9IjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE2IDcwODFoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem01LTE1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3oiIGZpbGw9IiNhNWE5YWIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2IC03MDgxKSIvPjwvc3ZnPg==) no-repeat left center;padding:0 1rem 0 0;line-height:1.125rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9l{display:block;opacity:.25;width:.375rem;height:1.125rem;background:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgOCAxOCIgd2lkdGg9IjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE2IDcwODFoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem01LTE1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3oiIGZpbGw9IiNhNWE5YWIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2IC03MDgxKSIvPjwvc3ZnPg==) no-repeat left center;padding:0 1rem 0 0;line-height:1.125rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9m{border:#d2d4d4ff solid .0625rem;border-bottom:none}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9m:last-child{border-bottom:#d2d4d4ff solid .0625rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9n{position:relative;border:#d2d4d4ff solid .0625rem;border-bottom:none}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9o{background-color:#f3f4f4;color:#717779}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9q{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;line-height:1.125rem;font-size:.75rem;border:#d2d4d4ff solid .0625rem;width:100%;min-width:17.75rem;padding:.75rem;background-color:#e6f2f8;flex:1}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9r{display:flex;flex-direction:row;justify-content:flex-start;position:relative;line-height:1.125rem;font-size:.75rem;width:100%;padding:.75rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9r:focus{background-color:#e6f2f8}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9s{box-shadow:inset 0 .25rem #007db8}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9u{position:relative;line-height:1.125rem;font-size:.75rem;width:100%;padding:.75rem;border-top:.0625rem solid #d2d4d4ff}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9u:focus{outline:none}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9v{box-shadow:inset 0 .25rem #007db8}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9x{position:absolute;right:.375rem;top:.375rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9y{font-size:.875rem;line-height:1.25rem;display:flex;align-items:center;justify-content:flex-start;font-weight:600;margin-bottom:.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx9z{font-size:.875rem;line-height:1.25rem;margin-right:.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx910{margin-left:.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx911{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;line-height:1.125rem;font-size:.75rem;width:100%;padding:.75rem;border-bottom:none}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx911:last-child{border-bottom:#d2d4d4ff solid .0625rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx912{margin-bottom:1.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_53_31__hash_13b8tx913{margin-top:1.5625rem}
@@ -5,10 +5,12 @@ interface ButtonVariantDefinitions extends VariantDefinitions {
5
5
  kind: RecipeVariant<ButtonKind>;
6
6
  disabled: BooleanRecipeVariant;
7
7
  spinning: BooleanRecipeVariant;
8
+ fill: BooleanRecipeVariant;
9
+ noWrap: BooleanRecipeVariant;
8
10
  }
9
11
  export declare const button: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<ButtonVariantDefinitions>;
10
12
  export declare const buttonElement: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<ButtonVariantDefinitions>;
11
- export declare const linkButton: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<ButtonVariantDefinitions, "kind" | "spinning">>;
13
+ export declare const linkButton: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<ButtonVariantDefinitions, "kind" | "fill" | "spinning" | "noWrap">>;
12
14
  export declare const buttonIcon: string;
13
15
  export declare const buttonSpinner: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<ButtonVariantDefinitions, "spinning">>;
14
16
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../../src/buttons/button/Button.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAIlG,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;AAEnE,UAAU,wBAAyB,SAAQ,kBAAkB;IAC3D,IAAI,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAChC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,QAAQ,EAAE,oBAAoB,CAAC;CAChC;AAED,eAAO,MAAM,MAAM,iHAiMjB,CAAC;AAEH,eAAO,MAAM,aAAa,iHA6DxB,CAAC;AAEH,eAAO,MAAM,UAAU,4IAuDrB,CAAC;AAIH,eAAO,MAAM,UAAU,QAMrB,CAAC;AAEH,eAAO,MAAM,aAAa,mIAsBxB,CAAC"}
1
+ {"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../../src/buttons/button/Button.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAIlG,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;AAEnE,UAAU,wBAAyB,SAAQ,kBAAkB;IAC3D,IAAI,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAChC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAuBD,eAAO,MAAM,MAAM,iHA2MjB,CAAC;AAEH,eAAO,MAAM,aAAa,iHAyFxB,CAAC;AAEH,eAAO,MAAM,UAAU,gKA+ErB,CAAC;AAIH,eAAO,MAAM,UAAU,QAMrB,CAAC;AAEH,eAAO,MAAM,aAAa,mIAsBxB,CAAC"}
@@ -5,9 +5,11 @@ import type { AriaButtonProps } from "@react-aria/button";
5
5
  import type { ButtonKind } from "./Button.css";
6
6
  interface BaseButtonProps {
7
7
  disabled?: boolean;
8
+ fill?: boolean;
8
9
  href?: string;
9
10
  icon?: IconName;
10
11
  kind?: ButtonKind;
12
+ noWrap?: boolean;
11
13
  spinning?: boolean;
12
14
  spinningTitle?: string;
13
15
  title?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/buttons/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;CACxD;AAED,KAAK,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,GAAG,GAAG,IAAI,OAAO,CACtE,yBAAyB,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAC5F,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,WAAW,CAAC,QAAQ,GAAG,GAAG,CAAC,CAgHxE,CAAC;AAyBF,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/buttons/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;CACxD;AAED,KAAK,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,GAAG,GAAG,IAAI,OAAO,CACtE,yBAAyB,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAC5F,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,WAAW,CAAC,QAAQ,GAAG,GAAG,CAAC,CAoHxE,CAAC;AA2BF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,103 +1,109 @@
1
- import * as t from "react";
2
- import { Spinner as z, cl as D, Metadata as F, Icon as p } from "@sps-woodland/core";
3
- import { useButton as H } from "@react-aria/button";
4
- import { useHover as L } from "@react-aria/interactions";
5
- import { mergeProps as M } from "@react-aria/utils";
6
- import { FocusRing as w } from "@react-aria/focus";
7
- import { linkButton as x, buttonElement as V, buttonSpinner as W, button as j, buttonIcon as f } from "./Button.ve.js";
8
- import { useWoodlandLanguage as q } from "@spscommerce/i18n";
9
- const A = t.forwardRef(
1
+ import * as e from "react";
2
+ import { Spinner as F, cl as H, Metadata as L, Icon as b } from "@sps-woodland/core";
3
+ import { useButton as M } from "@react-aria/button";
4
+ import { useHover as w } from "@react-aria/interactions";
5
+ import { mergeProps as x } from "@react-aria/utils";
6
+ import { FocusRing as V } from "@react-aria/focus";
7
+ import { linkButton as j, buttonElement as q, buttonSpinner as A, button as G, buttonIcon as y } from "./Button.ve.js";
8
+ import { useWoodlandLanguage as J } from "@spscommerce/i18n";
9
+ const K = e.forwardRef(
10
10
  ({
11
- as: b,
12
- onClick: E,
13
- onPress: y,
14
- children: m,
15
- className: N,
11
+ as: E,
12
+ onClick: N,
13
+ onPress: P,
14
+ children: d,
15
+ className: g,
16
16
  isDisabled: s,
17
17
  disabled: l,
18
+ fill: r,
18
19
  href: n,
19
20
  icon: a,
20
- kind: e = "default",
21
+ kind: t = "default",
22
+ noWrap: i,
21
23
  spinning: o,
22
- spinningTitle: P,
23
- title: g,
24
- ...r
25
- }, R) => {
26
- const v = b ?? (n ? "a" : "button"), u = {
27
- onPress: y ?? E,
24
+ spinningTitle: R,
25
+ title: v,
26
+ ...c
27
+ }, _) => {
28
+ const B = E ?? (n ? "a" : "button"), p = {
29
+ onPress: P ?? N,
28
30
  // the button element should be disabled if the button is marked as disabled or spinning
29
31
  isDisabled: !!(o || l || s),
30
- ...r
31
- }, { "data-testid": i } = r, _ = t.useRef(null), d = R || _, { buttonProps: B } = H(
32
- u,
33
- d
34
- ), { hoverProps: $ } = L({ isDisabled: u.isDisabled }), { type: I, ...S } = B, T = {
35
- ...M(S, $),
36
- ref: d,
37
- title: g,
38
- className: n ? x({ spinning: o, kind: e }) : V({ disabled: s || l, kind: e, spinning: o }),
39
- ...n ? { href: n } : { type: I },
40
- ...r
41
- }, { t: C } = q(), h = a && (a === "ai-color" ? (
32
+ ...c
33
+ }, { "data-testid": m } = c, $ = e.useRef(null), f = _ || $, { buttonProps: I } = M(
34
+ p,
35
+ f
36
+ ), { hoverProps: S } = w({ isDisabled: p.isDisabled }), { type: T, ...C } = I, h = {
37
+ ...x(C, S),
38
+ ref: f,
39
+ title: v,
40
+ className: n ? j({ spinning: o, kind: t, fill: r, noWrap: i }) : q({ disabled: s || l, kind: t, spinning: o, fill: r, noWrap: i }),
41
+ ...n ? { href: n } : { type: T },
42
+ ...c
43
+ }, { t: k } = J(), z = a && (a === "ai-color" ? (
42
44
  // ai-color can only be used on default or link buttons for contrast/accessibility reasons
43
45
  // if the user tries to use ai-color on a non-approved button swap it out for the regular ai icon
44
- /* @__PURE__ */ t.createElement(
45
- p,
46
+ /* @__PURE__ */ e.createElement(
47
+ b,
46
48
  {
47
- className: f,
48
- icon: e === "default" || e === "link" ? "ai-color" : "ai",
49
+ className: y,
50
+ icon: t === "default" || t === "link" ? "ai-color" : "ai",
49
51
  size: "sm",
50
52
  "aria-hidden": "true",
51
- "data-testid": `${i}__${a}-icon`
53
+ "data-testid": `${m}__${a}-icon`
52
54
  }
53
55
  )
54
- ) : /* @__PURE__ */ t.createElement(
55
- p,
56
+ ) : /* @__PURE__ */ e.createElement(
57
+ b,
56
58
  {
57
- className: f,
59
+ className: y,
58
60
  icon: a,
59
61
  size: "sm",
60
62
  "aria-hidden": "true",
61
- "data-testid": `${i}__${a}-icon`
63
+ "data-testid": `${m}__${a}-icon`
62
64
  }
63
65
  ));
64
- let c;
65
- e === "default" || e === "icon" || e === "link" ? c = "dark" : c = "light";
66
- const k = o && /* @__PURE__ */ t.createElement(
67
- z,
66
+ let u;
67
+ t === "default" || t === "icon" || t === "link" ? u = "dark" : u = "light";
68
+ const D = o && /* @__PURE__ */ e.createElement(
69
+ F,
68
70
  {
69
- color: c,
70
- className: W({ spinning: o }),
71
- title: P || C("button.spinningTitle", { defaultValue: "Loading..." }),
72
- "data-testid": `${i}__spinner`
71
+ color: u,
72
+ className: A({ spinning: o }),
73
+ title: R || k("button.spinningTitle", { defaultValue: "Loading..." }),
74
+ "data-testid": `${m}__spinner`
73
75
  }
74
76
  );
75
- return /* @__PURE__ */ t.createElement(w, null, /* @__PURE__ */ t.createElement(
77
+ return /* @__PURE__ */ e.createElement(V, null, /* @__PURE__ */ e.createElement(
76
78
  "div",
77
79
  {
78
- className: D(
79
- j({
80
+ className: H(
81
+ G({
80
82
  disabled: s || l,
81
- kind: e,
82
- spinning: o
83
+ kind: t,
84
+ spinning: o,
85
+ fill: r,
86
+ noWrap: i
83
87
  }),
84
- N
88
+ g
85
89
  )
86
90
  },
87
- /* @__PURE__ */ t.createElement(v, { ...T }, h, m ? /* @__PURE__ */ t.createElement("span", null, m) : "", k)
91
+ /* @__PURE__ */ e.createElement(B, { ...h }, z, d ? /* @__PURE__ */ e.createElement("span", null, d) : "", D)
88
92
  ));
89
93
  }
90
94
  );
91
- F.set(A, {
95
+ L.set(K, {
92
96
  name: "Button",
93
97
  props: {
94
98
  disabled: "boolean",
99
+ fill: { type: "boolean", default: "false" },
95
100
  href: "string",
96
101
  icon: "IconName",
97
102
  kind: {
98
103
  type: '"default" | "link" | "icon" | "confirm" | "delete" | "key"',
99
104
  default: '"default"'
100
105
  },
106
+ noWrap: { type: "boolean", default: "false" },
101
107
  spinning: "boolean",
102
108
  spinningTitle: "string",
103
109
  type: { type: '"button" | "submit"', default: '"button"' },
@@ -112,5 +118,5 @@ F.set(A, {
112
118
  panellable: !0
113
119
  });
114
120
  export {
115
- A as Button
121
+ K as Button
116
122
  };
@@ -1,6 +1,6 @@
1
1
  /* empty css */
2
2
  import { createRuntimeFn as _ } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
3
- var n = _({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq0", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq1", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq2" }, kind: { default: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq3", link: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq4", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq5", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq6", key: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq7", icon: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq8" }, spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq9", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqa" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [[{ kind: "icon", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqb"], [{ kind: "default", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqc"], [{ kind: "confirm", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqd"], [{ kind: "delete", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqe"], [{ kind: "key", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqf"], [{ disabled: !0, spinning: !1 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqg"], [{ kind: "link", disabled: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqh"]] }), a = _({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqi", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqj", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqk" }, kind: { icon: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieql", default: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqm", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqn", key: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqo", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqp", link: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqq" }, spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqr", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqs" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [] }), e = _({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqt", variantClassNames: { spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqiequ", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqv" }, kind: { icon: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqw", default: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqx", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqy", key: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqz", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq10", link: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq11" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] }), i = "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq12", l = _({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq13", variantClassNames: { spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq14", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq15" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] });
3
+ var n = _({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq0", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq2" }, kind: { default: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq3", link: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq4", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq5", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq6", key: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq7", icon: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq8" }, spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq9", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqa" }, fill: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqb", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqc" }, noWrap: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqd", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqe" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1, fill: !1, noWrap: !1 }, compoundVariants: [[{ kind: "icon", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqf"], [{ kind: "default", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqg"], [{ kind: "confirm", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqh"], [{ kind: "delete", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqi"], [{ kind: "key", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqj"], [{ disabled: !0, spinning: !1 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqk"], [{ kind: "link", disabled: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieql"]] }), a = _({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqm", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqn", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqo" }, kind: { icon: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqp", default: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqq", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqr", key: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqs", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqt", link: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqiequ" }, spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqv", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqw" }, fill: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqx", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqy" }, noWrap: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqz", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq10" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1, fill: !1, noWrap: !1 }, compoundVariants: [[{ kind: "link", fill: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq11"]] }), e = _({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq12", variantClassNames: { spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq13", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq14" }, kind: { icon: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq15", default: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq16", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq17", key: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq18", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq19", link: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1a" }, fill: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1b", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1c" }, noWrap: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1d", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1e" } }, defaultVariants: { spinning: !1, fill: !1, noWrap: !1 }, compoundVariants: [[{ kind: "link", fill: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1f"]] }), i = "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1g", l = _({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1h", variantClassNames: { spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1i", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1j" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] });
4
4
  export {
5
5
  n as button,
6
6
  a as buttonElement,
@@ -1,11 +1,11 @@
1
- import * as i from "react";
2
- import { Spinner as I, cl as T, Metadata as z, Icon as b } from "@sps-woodland/core";
3
- import { useButton as F } from "@react-aria/button";
4
- import { useHover as x } from "@react-aria/interactions";
5
- import { mergeProps as H } from "@react-aria/utils";
6
- import { FocusRing as L } from "@react-aria/focus";
7
- import { useWoodlandLanguage as M } from "@spscommerce/i18n";
8
- function A(_, o, e) {
1
+ import * as t from "react";
2
+ import { Spinner as T, cl as z, Metadata as F, Icon as g } from "@sps-woodland/core";
3
+ import { useButton as x } from "@react-aria/button";
4
+ import { useHover as H } from "@react-aria/interactions";
5
+ import { mergeProps as L } from "@react-aria/utils";
6
+ import { FocusRing as M } from "@react-aria/focus";
7
+ import { useWoodlandLanguage as A } from "@spscommerce/i18n";
8
+ function K(_, o, e) {
9
9
  return o in _ ? Object.defineProperty(_, o, {
10
10
  value: e,
11
11
  enumerable: !0,
@@ -13,144 +13,150 @@ function A(_, o, e) {
13
13
  writable: !0
14
14
  }) : _[o] = e, _;
15
15
  }
16
- function v(_, o) {
16
+ function y(_, o) {
17
17
  var e = Object.keys(_);
18
18
  if (Object.getOwnPropertySymbols) {
19
19
  var s = Object.getOwnPropertySymbols(_);
20
- o && (s = s.filter(function(n) {
21
- return Object.getOwnPropertyDescriptor(_, n).enumerable;
20
+ o && (s = s.filter(function(a) {
21
+ return Object.getOwnPropertyDescriptor(_, a).enumerable;
22
22
  })), e.push.apply(e, s);
23
23
  }
24
24
  return e;
25
25
  }
26
- function g(_) {
26
+ function k(_) {
27
27
  for (var o = 1; o < arguments.length; o++) {
28
28
  var e = arguments[o] != null ? arguments[o] : {};
29
- o % 2 ? v(Object(e), !0).forEach(function(s) {
30
- A(_, s, e[s]);
31
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_, Object.getOwnPropertyDescriptors(e)) : v(Object(e)).forEach(function(s) {
29
+ o % 2 ? y(Object(e), !0).forEach(function(s) {
30
+ K(_, s, e[s]);
31
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_, Object.getOwnPropertyDescriptors(e)) : y(Object(e)).forEach(function(s) {
32
32
  Object.defineProperty(_, s, Object.getOwnPropertyDescriptor(e, s));
33
33
  });
34
34
  }
35
35
  return _;
36
36
  }
37
- var K = (_, o, e) => {
37
+ var $ = (_, o, e) => {
38
38
  for (var s of Object.keys(_)) {
39
- var n;
40
- if (_[s] !== ((n = o[s]) !== null && n !== void 0 ? n : e[s]))
39
+ var a;
40
+ if (_[s] !== ((a = o[s]) !== null && a !== void 0 ? a : e[s]))
41
41
  return !1;
42
42
  }
43
43
  return !0;
44
- }, p = (_) => (o) => {
45
- var e = _.defaultClassName, s = g(g({}, _.defaultVariants), o);
46
- for (var n in s) {
47
- var d, f = (d = s[n]) !== null && d !== void 0 ? d : _.defaultVariants[n];
48
- if (f != null) {
49
- var t = f;
50
- typeof t == "boolean" && (t = t === !0 ? "true" : "false");
51
- var l = (
44
+ }, u = (_) => (o) => {
45
+ var e = _.defaultClassName, s = k(k({}, _.defaultVariants), o);
46
+ for (var a in s) {
47
+ var i, d = (i = s[a]) !== null && i !== void 0 ? i : _.defaultVariants[a];
48
+ if (d != null) {
49
+ var l = d;
50
+ typeof l == "boolean" && (l = l === !0 ? "true" : "false");
51
+ var r = (
52
52
  // @ts-expect-error
53
- _.variantClassNames[n][t]
53
+ _.variantClassNames[a][l]
54
54
  );
55
- l && (e += " " + l);
55
+ r && (e += " " + r);
56
56
  }
57
57
  }
58
- for (var [a, r] of _.compoundVariants)
59
- K(a, s, _.defaultVariants) && (e += " " + r);
58
+ for (var [f, n] of _.compoundVariants)
59
+ $(f, s, _.defaultVariants) && (e += " " + n);
60
60
  return e;
61
- }, W = p({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq0", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq1", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq2" }, kind: { default: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq3", link: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq4", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq5", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq6", key: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq7", icon: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq8" }, spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq9", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqa" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [[{ kind: "icon", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqb"], [{ kind: "default", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqc"], [{ kind: "confirm", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqd"], [{ kind: "delete", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqe"], [{ kind: "key", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqf"], [{ disabled: !0, spinning: !1 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqg"], [{ kind: "link", disabled: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqh"]] }), $ = p({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqi", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqj", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqk" }, kind: { icon: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieql", default: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqm", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqn", key: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqo", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqp", link: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqq" }, spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqr", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqs" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [] }), G = p({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqt", variantClassNames: { spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqiequ", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqv" }, kind: { icon: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqw", default: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqx", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqy", key: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqz", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq10", link: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq11" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] }), y = "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq12", J = p({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq13", variantClassNames: { spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq14", false: "pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq15" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] });
62
- const Q = i.forwardRef(
61
+ }, G = u({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq0", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq2" }, kind: { default: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq3", link: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq4", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq5", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq6", key: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq7", icon: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq8" }, spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq9", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqa" }, fill: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqb", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqc" }, noWrap: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqd", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqe" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1, fill: !1, noWrap: !1 }, compoundVariants: [[{ kind: "icon", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqf"], [{ kind: "default", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqg"], [{ kind: "confirm", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqh"], [{ kind: "delete", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqi"], [{ kind: "key", spinning: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqj"], [{ disabled: !0, spinning: !1 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqk"], [{ kind: "link", disabled: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieql"]] }), J = u({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqm", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqn", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqo" }, kind: { icon: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqp", default: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqq", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqr", key: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqs", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqt", link: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqiequ" }, spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqv", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqw" }, fill: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqx", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqy" }, noWrap: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqz", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq10" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1, fill: !1, noWrap: !1 }, compoundVariants: [[{ kind: "link", fill: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq11"]] }), Q = u({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq12", variantClassNames: { spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq13", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq14" }, kind: { icon: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq15", default: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq16", delete: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq17", key: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq18", confirm: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq19", link: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1a" }, fill: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1b", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1c" }, noWrap: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1d", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1e" } }, defaultVariants: { spinning: !1, fill: !1, noWrap: !1 }, compoundVariants: [[{ kind: "link", fill: !0 }, "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1f"]] }), w = "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1g", U = u({ defaultClassName: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1h", variantClassNames: { spinning: { true: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1i", false: "pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1j" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] });
62
+ const X = t.forwardRef(
63
63
  ({
64
64
  as: _,
65
65
  onClick: o,
66
66
  onPress: e,
67
67
  children: s,
68
- className: n,
69
- isDisabled: d,
70
- disabled: f,
71
- href: t,
72
- icon: l,
73
- kind: a = "default",
74
- spinning: r,
75
- spinningTitle: k,
76
- title: w,
77
- ...u
78
- }, O) => {
79
- const P = _ ?? (t ? "a" : "button"), h = {
68
+ className: a,
69
+ isDisabled: i,
70
+ disabled: d,
71
+ fill: l,
72
+ href: r,
73
+ icon: f,
74
+ kind: n = "default",
75
+ noWrap: c,
76
+ spinning: p,
77
+ spinningTitle: O,
78
+ title: P,
79
+ ...h
80
+ }, N) => {
81
+ const V = _ ?? (r ? "a" : "button"), b = {
80
82
  onPress: e ?? o,
81
83
  // the button element should be disabled if the button is marked as disabled or spinning
82
- isDisabled: !!(r || f || d),
83
- ...u
84
- }, { "data-testid": c } = u, N = i.useRef(null), q = O || N, { buttonProps: V } = F(
85
- h,
86
- q
87
- ), { hoverProps: C } = x({ isDisabled: h.isDisabled }), { type: E, ...j } = V, R = {
88
- ...H(j, C),
89
- ref: q,
90
- title: w,
91
- className: t ? G({ spinning: r, kind: a }) : $({ disabled: d || f, kind: a, spinning: r }),
92
- ...t ? { href: t } : { type: E },
93
- ...u
94
- }, { t: D } = M(), S = l && (l === "ai-color" ? (
84
+ isDisabled: !!(p || d || i),
85
+ ...h
86
+ }, { "data-testid": m } = h, C = t.useRef(null), v = N || C, { buttonProps: E } = x(
87
+ b,
88
+ v
89
+ ), { hoverProps: j } = H({ isDisabled: b.isDisabled }), { type: R, ...D } = E, S = {
90
+ ...L(D, j),
91
+ ref: v,
92
+ title: P,
93
+ className: r ? Q({ spinning: p, kind: n, fill: l, noWrap: c }) : J({ disabled: i || d, kind: n, spinning: p, fill: l, noWrap: c }),
94
+ ...r ? { href: r } : { type: R },
95
+ ...h
96
+ }, { t: W } = A(), B = f && (f === "ai-color" ? (
95
97
  // ai-color can only be used on default or link buttons for contrast/accessibility reasons
96
98
  // if the user tries to use ai-color on a non-approved button swap it out for the regular ai icon
97
- /* @__PURE__ */ i.createElement(
98
- b,
99
+ /* @__PURE__ */ t.createElement(
100
+ g,
99
101
  {
100
- className: y,
101
- icon: a === "default" || a === "link" ? "ai-color" : "ai",
102
+ className: w,
103
+ icon: n === "default" || n === "link" ? "ai-color" : "ai",
102
104
  size: "sm",
103
105
  "aria-hidden": "true",
104
- "data-testid": `${c}__${l}-icon`
106
+ "data-testid": `${m}__${f}-icon`
105
107
  }
106
108
  )
107
- ) : /* @__PURE__ */ i.createElement(
108
- b,
109
+ ) : /* @__PURE__ */ t.createElement(
110
+ g,
109
111
  {
110
- className: y,
111
- icon: l,
112
+ className: w,
113
+ icon: f,
112
114
  size: "sm",
113
115
  "aria-hidden": "true",
114
- "data-testid": `${c}__${l}-icon`
116
+ "data-testid": `${m}__${f}-icon`
115
117
  }
116
118
  ));
117
- let m;
118
- a === "default" || a === "icon" || a === "link" ? m = "dark" : m = "light";
119
- const B = r && /* @__PURE__ */ i.createElement(
120
- I,
119
+ let q;
120
+ n === "default" || n === "icon" || n === "link" ? q = "dark" : q = "light";
121
+ const I = p && /* @__PURE__ */ t.createElement(
122
+ T,
121
123
  {
122
- color: m,
123
- className: J({ spinning: r }),
124
- title: k || D("button.spinningTitle", { defaultValue: "Loading..." }),
125
- "data-testid": `${c}__spinner`
124
+ color: q,
125
+ className: U({ spinning: p }),
126
+ title: O || W("button.spinningTitle", { defaultValue: "Loading..." }),
127
+ "data-testid": `${m}__spinner`
126
128
  }
127
129
  );
128
- return /* @__PURE__ */ i.createElement(L, null, /* @__PURE__ */ i.createElement(
130
+ return /* @__PURE__ */ t.createElement(M, null, /* @__PURE__ */ t.createElement(
129
131
  "div",
130
132
  {
131
- className: T(
132
- W({
133
- disabled: d || f,
134
- kind: a,
135
- spinning: r
133
+ className: z(
134
+ G({
135
+ disabled: i || d,
136
+ kind: n,
137
+ spinning: p,
138
+ fill: l,
139
+ noWrap: c
136
140
  }),
137
- n
141
+ a
138
142
  )
139
143
  },
140
- /* @__PURE__ */ i.createElement(P, { ...R }, S, s ? /* @__PURE__ */ i.createElement("span", null, s) : "", B)
144
+ /* @__PURE__ */ t.createElement(V, { ...S }, B, s ? /* @__PURE__ */ t.createElement("span", null, s) : "", I)
141
145
  ));
142
146
  }
143
147
  );
144
- z.set(Q, {
148
+ F.set(X, {
145
149
  name: "Button",
146
150
  props: {
147
151
  disabled: "boolean",
152
+ fill: { type: "boolean", default: "false" },
148
153
  href: "string",
149
154
  icon: "IconName",
150
155
  kind: {
151
156
  type: '"default" | "link" | "icon" | "confirm" | "delete" | "key"',
152
157
  default: '"default"'
153
158
  },
159
+ noWrap: { type: "boolean", default: "false" },
154
160
  spinning: "boolean",
155
161
  spinningTitle: "string",
156
162
  type: { type: '"button" | "submit"', default: '"button"' },
@@ -165,5 +171,5 @@ z.set(Q, {
165
171
  panellable: !0
166
172
  });
167
173
  export {
168
- Q as Button
174
+ X as Button
169
175
  };
@@ -1 +1 @@
1
- (function(t,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("@sps-woodland/core"),require("@react-aria/button"),require("@react-aria/interactions"),require("@react-aria/utils"),require("@react-aria/focus"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@react-aria/button","@react-aria/interactions","@react-aria/utils","@react-aria/focus","@spscommerce/i18n"],p):(t=typeof globalThis<"u"?globalThis:t||self,p(t.Buttons={},t.react,t.spsWoodlandCore,t.reactAriaButton,t.reactAriaInteractions,t.reactAriaUtils,t.reactAriaFocus,t.spscommerceI18n))})(this,(function(t,p,c,P,j,N,C,V){"use strict";function E(_){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(_){for(const e in _)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(_,e);Object.defineProperty(n,e,s.get?s:{enumerable:!0,get:()=>_[e]})}}return n.default=_,Object.freeze(n)}const i=E(p);function S(_,n,e){return n in _?Object.defineProperty(_,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):_[n]=e,_}function v(_,n){var e=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);n&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(_,o).enumerable})),e.push.apply(e,s)}return e}function y(_){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?v(Object(e),!0).forEach(function(s){S(_,s,e[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(e,s))})}return _}var B=(_,n,e)=>{for(var s of Object.keys(_)){var o;if(_[s]!==((o=n[s])!==null&&o!==void 0?o:e[s]))return!1}return!0},m=_=>n=>{var e=_.defaultClassName,s=y(y({},_.defaultVariants),n);for(var o in s){var f,u=(f=s[o])!==null&&f!==void 0?f:_.defaultVariants[o];if(u!=null){var r=u;typeof r=="boolean"&&(r=r===!0?"true":"false");var l=_.variantClassNames[o][r];l&&(e+=" "+l)}}for(var[a,d]of _.compoundVariants)B(a,s,_.defaultVariants)&&(e+=" "+d);return e},D=m({defaultClassName:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq0",variantClassNames:{disabled:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq1",false:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq2"},kind:{default:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq3",link:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq4",confirm:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq5",delete:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq6",key:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq7",icon:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq8"},spinning:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq9",false:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqa"}},defaultVariants:{disabled:!1,kind:"default",spinning:!1},compoundVariants:[[{kind:"icon",spinning:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqb"],[{kind:"default",spinning:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqc"],[{kind:"confirm",spinning:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqd"],[{kind:"delete",spinning:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqe"],[{kind:"key",spinning:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqf"],[{disabled:!0,spinning:!1},"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqg"],[{kind:"link",disabled:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqh"]]}),R=m({defaultClassName:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqi",variantClassNames:{disabled:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqj",false:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqk"},kind:{icon:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieql",default:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqm",delete:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqn",key:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqo",confirm:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqp",link:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqq"},spinning:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqr",false:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqs"}},defaultVariants:{disabled:!1,kind:"default",spinning:!1},compoundVariants:[]}),T=m({defaultClassName:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqt",variantClassNames:{spinning:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqiequ",false:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqv"},kind:{icon:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqw",default:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqx",delete:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqy",key:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieqz",confirm:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq10",link:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq11"}},defaultVariants:{spinning:!1},compoundVariants:[]}),g="pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq12",I=m({defaultClassName:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq13",variantClassNames:{spinning:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq14",false:"pkg_sps-woodland_core__family_buttons__version_8_53_29__hash_1flqieq15"}},defaultVariants:{spinning:!1},compoundVariants:[]});const k=i.forwardRef(({as:_,onClick:n,onPress:e,children:s,className:o,isDisabled:f,disabled:u,href:r,icon:l,kind:a="default",spinning:d,spinningTitle:A,title:z,...h},F)=>{const M=_??(r?"a":"button"),w={onPress:e??n,isDisabled:!!(d||u||f),...h},{"data-testid":q}=h,x=i.useRef(null),O=F||x,{buttonProps:H}=P.useButton(w,O),{hoverProps:L}=j.useHover({isDisabled:w.isDisabled}),{type:W,...K}=H,U={...N.mergeProps(K,L),ref:O,title:z,className:r?T({spinning:d,kind:a}):R({disabled:f||u,kind:a,spinning:d}),...r?{href:r}:{type:W},...h},{t:$}=V.useWoodlandLanguage(),G=l&&(l==="ai-color"?i.createElement(c.Icon,{className:g,icon:a==="default"||a==="link"?"ai-color":"ai",size:"sm","aria-hidden":"true","data-testid":`${q}__${l}-icon`}):i.createElement(c.Icon,{className:g,icon:l,size:"sm","aria-hidden":"true","data-testid":`${q}__${l}-icon`}));let b;a==="default"||a==="icon"||a==="link"?b="dark":b="light";const J=d&&i.createElement(c.Spinner,{color:b,className:I({spinning:d}),title:A||$("button.spinningTitle",{defaultValue:"Loading..."}),"data-testid":`${q}__spinner`});return i.createElement(C.FocusRing,null,i.createElement("div",{className:c.cl(D({disabled:f||u,kind:a,spinning:d}),o)},i.createElement(M,{...U},G,s?i.createElement("span",null,s):"",J)))});c.Metadata.set(k,{name:"Button",props:{disabled:"boolean",href:"string",icon:"IconName",kind:{type:'"default" | "link" | "icon" | "confirm" | "delete" | "key"',default:'"default"'},spinning:"boolean",spinningTitle:"string",type:{type:'"button" | "submit"',default:'"button"'},as:"button | a",onClick:"() => void",onPress:"() => void",children:"ReactNode",className:"string",isDisabled:"boolean",style:"CSSProperties"},panellable:!0}),t.Button=k,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(a,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react"),require("@sps-woodland/core"),require("@react-aria/button"),require("@react-aria/interactions"),require("@react-aria/utils"),require("@react-aria/focus"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@react-aria/button","@react-aria/interactions","@react-aria/utils","@react-aria/focus","@spscommerce/i18n"],c):(a=typeof globalThis<"u"?globalThis:a||self,c(a.Buttons={},a.react,a.spsWoodlandCore,a.reactAriaButton,a.reactAriaInteractions,a.reactAriaUtils,a.reactAriaFocus,a.spscommerceI18n))})(this,(function(a,c,h,N,C,V,E,S){"use strict";function B(_){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(_){for(const e in _)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(_,e);Object.defineProperty(o,e,s.get?s:{enumerable:!0,get:()=>_[e]})}}return o.default=_,Object.freeze(o)}const i=B(c);function D(_,o,e){return o in _?Object.defineProperty(_,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):_[o]=e,_}function g(_,o){var e=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);o&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(_,n).enumerable})),e.push.apply(e,s)}return e}function k(_){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?g(Object(e),!0).forEach(function(s){D(_,s,e[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(e)):g(Object(e)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(e,s))})}return _}var R=(_,o,e)=>{for(var s of Object.keys(_)){var n;if(_[s]!==((n=o[s])!==null&&n!==void 0?n:e[s]))return!1}return!0},q=_=>o=>{var e=_.defaultClassName,s=k(k({},_.defaultVariants),o);for(var n in s){var l,u=(l=s[n])!==null&&l!==void 0?l:_.defaultVariants[n];if(u!=null){var r=u;typeof r=="boolean"&&(r=r===!0?"true":"false");var f=_.variantClassNames[n][r];f&&(e+=" "+f)}}for(var[d,t]of _.compoundVariants)R(d,s,_.defaultVariants)&&(e+=" "+t);return e},T=q({defaultClassName:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq0",variantClassNames:{disabled:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq2"},kind:{default:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq3",link:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq4",confirm:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq5",delete:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq6",key:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq7",icon:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq8"},spinning:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq9",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqa"},fill:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqb",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqc"},noWrap:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqd",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqe"}},defaultVariants:{disabled:!1,kind:"default",spinning:!1,fill:!1,noWrap:!1},compoundVariants:[[{kind:"icon",spinning:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqf"],[{kind:"default",spinning:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqg"],[{kind:"confirm",spinning:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqh"],[{kind:"delete",spinning:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqi"],[{kind:"key",spinning:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqj"],[{disabled:!0,spinning:!1},"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqk"],[{kind:"link",disabled:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieql"]]}),I=q({defaultClassName:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqm",variantClassNames:{disabled:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqn",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqo"},kind:{icon:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqp",default:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqq",delete:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqr",key:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqs",confirm:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqt",link:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqiequ"},spinning:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqv",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqw"},fill:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqx",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqy"},noWrap:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieqz",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq10"}},defaultVariants:{disabled:!1,kind:"default",spinning:!1,fill:!1,noWrap:!1},compoundVariants:[[{kind:"link",fill:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq11"]]}),W=q({defaultClassName:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq12",variantClassNames:{spinning:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq13",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq14"},kind:{icon:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq15",default:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq16",delete:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq17",key:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq18",confirm:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq19",link:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1a"},fill:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1b",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1c"},noWrap:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1d",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1e"}},defaultVariants:{spinning:!1,fill:!1,noWrap:!1},compoundVariants:[[{kind:"link",fill:!0},"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1f"]]}),w="pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1g",A=q({defaultClassName:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1h",variantClassNames:{spinning:{true:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1i",false:"pkg_sps-woodland_core__family_buttons__version_8_53_31__hash_1flqieq1j"}},defaultVariants:{spinning:!1},compoundVariants:[]});const O=i.forwardRef(({as:_,onClick:o,onPress:e,children:s,className:n,isDisabled:l,disabled:u,fill:r,href:f,icon:d,kind:t="default",noWrap:m,spinning:p,spinningTitle:z,title:F,...b},M)=>{const x=_??(f?"a":"button"),P={onPress:e??o,isDisabled:!!(p||u||l),...b},{"data-testid":v}=b,H=i.useRef(null),j=M||H,{buttonProps:L}=N.useButton(P,j),{hoverProps:K}=C.useHover({isDisabled:P.isDisabled}),{type:U,...$}=L,G={...V.mergeProps($,K),ref:j,title:F,className:f?W({spinning:p,kind:t,fill:r,noWrap:m}):I({disabled:l||u,kind:t,spinning:p,fill:r,noWrap:m}),...f?{href:f}:{type:U},...b},{t:J}=S.useWoodlandLanguage(),Q=d&&(d==="ai-color"?i.createElement(h.Icon,{className:w,icon:t==="default"||t==="link"?"ai-color":"ai",size:"sm","aria-hidden":"true","data-testid":`${v}__${d}-icon`}):i.createElement(h.Icon,{className:w,icon:d,size:"sm","aria-hidden":"true","data-testid":`${v}__${d}-icon`}));let y;t==="default"||t==="icon"||t==="link"?y="dark":y="light";const X=p&&i.createElement(h.Spinner,{color:y,className:A({spinning:p}),title:z||J("button.spinningTitle",{defaultValue:"Loading..."}),"data-testid":`${v}__spinner`});return i.createElement(E.FocusRing,null,i.createElement("div",{className:h.cl(T({disabled:l||u,kind:t,spinning:p,fill:r,noWrap:m}),n)},i.createElement(x,{...G},Q,s?i.createElement("span",null,s):"",X)))});h.Metadata.set(O,{name:"Button",props:{disabled:"boolean",fill:{type:"boolean",default:"false"},href:"string",icon:"IconName",kind:{type:'"default" | "link" | "icon" | "confirm" | "delete" | "key"',default:'"default"'},noWrap:{type:"boolean",default:"false"},spinning:"boolean",spinningTitle:"string",type:{type:'"button" | "submit"',default:'"button"'},as:"button | a",onClick:"() => void",onPress:"() => void",children:"ReactNode",className:"string",isDisabled:"boolean",style:"CSSProperties"},panellable:!0}),a.Button=O,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})}));