@sps-woodland/core 8.56.7 → 8.56.8

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 (175) 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.js +4 -4
  6. package/lib/add-to-list/add-to-list/AddToList.ve.js +32 -32
  7. package/lib/add-to-list/add-to-list/ItemsList.js +3 -3
  8. package/lib/add-to-list/add-to-list/ListItem.js +1 -1
  9. package/lib/add-to-list/index.js +40 -40
  10. package/lib/add-to-list/index.umd.cjs +1 -1
  11. package/lib/add-to-list/style.css +1 -1
  12. package/lib/buttons/button/Button.js +2 -2
  13. package/lib/buttons/button/Button.ve.js +56 -56
  14. package/lib/buttons/index.js +57 -57
  15. package/lib/buttons/index.umd.cjs +1 -1
  16. package/lib/buttons/style.css +1 -1
  17. package/lib/cards/card/Card.ve.js +1 -1
  18. package/lib/cards/card-footer/CardFooter.ve.js +1 -1
  19. package/lib/cards/card-header/CardHeader.ve.js +1 -1
  20. package/lib/cards/card-title/CardTitle.ve.js +1 -1
  21. package/lib/cards/index.js +4 -4
  22. package/lib/cards/index.umd.cjs +1 -1
  23. package/lib/cards/style.css +1 -1
  24. package/lib/components/icon/Icon.ve.js +5 -5
  25. package/lib/content-row/content-row/ContentRow.js +2 -2
  26. package/lib/content-row/content-row/ContentRow.ve.js +37 -37
  27. package/lib/content-row/content-row-col/ContentRowCol.ve.js +14 -14
  28. package/lib/content-row/index.js +56 -56
  29. package/lib/content-row/index.umd.cjs +1 -1
  30. package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +3 -3
  31. package/lib/content-row/style.css +1 -1
  32. package/lib/content-tiles/content-tile/ContentTile.js +3 -3
  33. package/lib/content-tiles/content-tile/ContentTile.ve.js +12 -12
  34. package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
  35. package/lib/content-tiles/index.js +16 -16
  36. package/lib/content-tiles/index.umd.cjs +1 -1
  37. package/lib/content-tiles/style.css +1 -1
  38. package/lib/core.css +1 -1
  39. package/lib/dropdowns/dropdown/Dropdown.js +1 -1
  40. package/lib/dropdowns/dropdown/Dropdown.ve.js +13 -13
  41. package/lib/dropdowns/index.js +17 -17
  42. package/lib/dropdowns/index.umd.cjs +1 -1
  43. package/lib/dropdowns/option-list/Option.js +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 +18 -18
  48. package/lib/feedback-block/index.js +18 -18
  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.js +4 -4
  52. package/lib/file-upload/file-upload/FileUpload.ve.js +28 -28
  53. package/lib/file-upload/index.js +32 -32
  54. package/lib/file-upload/index.umd.cjs +1 -1
  55. package/lib/file-upload/style.css +1 -1
  56. package/lib/filter-tiles/filter-tile/FilterTile.ve.js +20 -20
  57. package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
  58. package/lib/filter-tiles/index.js +21 -21
  59. package/lib/filter-tiles/index.umd.cjs +1 -1
  60. package/lib/filter-tiles/style.css +1 -1
  61. package/lib/focused-task/focused-task/FocusedTask.ve.js +5 -5
  62. package/lib/focused-task/index.js +5 -5
  63. package/lib/focused-task/index.umd.cjs +1 -1
  64. package/lib/focused-task/style.css +1 -1
  65. package/lib/growler/Growler.js +1 -1
  66. package/lib/growler/Growler.ve.js +10 -10
  67. package/lib/growler/Sonner.ve.js +8 -8
  68. package/lib/growler/index.js +19 -19
  69. package/lib/growler/index.umd.cjs +1 -1
  70. package/lib/growler/style.css +1 -1
  71. package/lib/index.js +28 -28
  72. package/lib/index.umd.cjs +1 -1
  73. package/lib/insight-card/InsightCard.ve.js +54 -54
  74. package/lib/insight-card/index.js +48 -48
  75. package/lib/insight-card/index.umd.cjs +1 -1
  76. package/lib/insight-card/style.css +1 -1
  77. package/lib/key-value-set/index.js +6 -6
  78. package/lib/key-value-set/index.umd.cjs +1 -1
  79. package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +2 -2
  80. package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +4 -4
  81. package/lib/key-value-set/style.css +1 -1
  82. package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +9 -9
  83. package/lib/list-bar/index.js +21 -21
  84. package/lib/list-bar/index.umd.cjs +1 -1
  85. package/lib/list-bar/list-bar/ListBar.js +5 -5
  86. package/lib/list-bar/list-bar/ListBar.ve.js +4 -4
  87. package/lib/list-bar/search-results-bar/SearchResultsBar.js +2 -2
  88. package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -1
  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 +24 -24
  95. package/lib/modal/index.umd.cjs +1 -1
  96. package/lib/modal/modal/Modal.js +1 -1
  97. package/lib/modal/modal/Modal.ve.js +23 -23
  98. package/lib/modal/style.css +1 -1
  99. package/lib/page-title/index.js +2 -2
  100. package/lib/page-title/index.umd.cjs +1 -1
  101. package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
  102. package/lib/page-title/page-title/PageTitle.ve.js +1 -1
  103. package/lib/page-title/style.css +1 -1
  104. package/lib/photo/index.js +11 -11
  105. package/lib/photo/index.umd.cjs +1 -1
  106. package/lib/photo/photo/Photo.ve.js +7 -7
  107. package/lib/photo/photo-carousel/PhotoCarousel.ve.js +4 -4
  108. package/lib/photo/style.css +1 -1
  109. package/lib/product-bar/index.js +25 -25
  110. package/lib/product-bar/index.umd.cjs +1 -1
  111. package/lib/product-bar/product-bar/ProductBar.ve.js +17 -17
  112. package/lib/product-bar/product-bar-name/ProductBarName.js +2 -2
  113. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +3 -3
  114. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
  115. package/lib/product-bar/product-bar-tab/ProductBarTab.js +1 -1
  116. package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
  117. package/lib/product-bar/style.css +1 -1
  118. package/lib/product-bar-vertical/index.js +26 -26
  119. package/lib/product-bar-vertical/index.umd.cjs +1 -1
  120. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +1 -1
  121. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +22 -22
  122. package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +1 -1
  123. package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +2 -2
  124. package/lib/product-bar-vertical/style.css +1 -1
  125. package/lib/progress-indicators/index.js +69 -69
  126. package/lib/progress-indicators/index.umd.cjs +1 -1
  127. package/lib/progress-indicators/progress-bar/ProgressBar.js +2 -2
  128. package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +26 -26
  129. package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +42 -42
  130. package/lib/progress-indicators/style.css +1 -1
  131. package/lib/rich-text-editor/index.js +12 -12
  132. package/lib/rich-text-editor/index.umd.cjs +2 -2
  133. package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +4 -4
  134. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +2 -2
  135. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +7 -7
  136. package/lib/rich-text-editor/style.css +1 -1
  137. package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
  138. package/lib/scrollable-container/index.js +1 -1
  139. package/lib/scrollable-container/index.umd.cjs +1 -1
  140. package/lib/scrollable-container/style.css +1 -1
  141. package/lib/side-nav/index.js +9 -9
  142. package/lib/side-nav/index.umd.cjs +1 -1
  143. package/lib/side-nav/side-nav/SideNav.js +1 -1
  144. package/lib/side-nav/side-nav/SideNav.ve.js +7 -7
  145. package/lib/side-nav/side-nav-section/SideNavSection.js +1 -1
  146. package/lib/side-nav/style.css +1 -1
  147. package/lib/sorting-header/caret/caret.ve.js +3 -3
  148. package/lib/sorting-header/index.js +18 -18
  149. package/lib/sorting-header/index.umd.cjs +1 -1
  150. package/lib/sorting-header/sorting-header/SortingHeader.ve.js +9 -9
  151. package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +6 -6
  152. package/lib/sorting-header/style.css +1 -1
  153. package/lib/style.css +1 -1
  154. package/lib/tabs/index.js +28 -28
  155. package/lib/tabs/index.umd.cjs +1 -1
  156. package/lib/tabs/style.css +1 -1
  157. package/lib/tabs/tab/Tab.css.d.ts.map +1 -1
  158. package/lib/tabs/tab/Tab.ve.js +21 -21
  159. package/lib/tabs/tabs/Tabs.css.d.ts.map +1 -1
  160. package/lib/tabs/tabs/Tabs.js +2 -2
  161. package/lib/tabs/tabs/Tabs.ve.js +5 -5
  162. package/lib/tags/clickable-tag/ClickableTag.js +1 -1
  163. package/lib/tags/clickable-tag/ClickableTag.ve.js +21 -21
  164. package/lib/tags/index.js +57 -57
  165. package/lib/tags/index.umd.cjs +1 -1
  166. package/lib/tags/split-tag/SplitTag.js +1 -1
  167. package/lib/tags/split-tag/SplitTag.ve.js +15 -15
  168. package/lib/tags/style.css +1 -1
  169. package/lib/tags/tag/Tag.ve.js +19 -19
  170. package/lib/zero-state/ZeroState.js +1 -1
  171. package/lib/zero-state/ZeroState.ve.js +11 -11
  172. package/lib/zero-state/index.js +12 -12
  173. package/lib/zero-state/index.umd.cjs +1 -1
  174. package/lib/zero-state/style.css +1 -1
  175. package/package.json +10 -10
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core"),require("@spscommerce/utils"),require("@spscommerce/i18n")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`,`@spscommerce/utils`,`@spscommerce/i18n`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.SortingHeader={},e.react,e.spsWoodlandCore,e.spscommerceUtils,e.spscommerceI18n))})(this,function(e,t,n,r,i){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=c(t),a=0,l=i.length,d;a<l;a++)d=i[a],!u.call(e,d)&&d!==n&&o(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=s(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:a(l(e)),d(t||!e||!e.__esModule||!u.call(e,`default`)?o(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?p(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var h=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},g=e=>t=>{var n=e.defaultClassName,r=m(m({},e.defaultVariants),t);for(var i in r){var a=r[i]??e.defaultVariants[i];if(a!=null){var o=a;typeof o==`boolean`&&(o=o===!0?`true`:`false`);var s=e.variantClassNames[i][o];s&&(n+=` `+s)}}for(var[c,l]of e.compoundVariants)h(c,r,e.defaultVariants)&&(n+=` `+l);return n},_=g({defaultClassName:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_ax8xqf0`,variantClassNames:{up:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_ax8xqf1`},down:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_ax8xqf2`}},defaultVariants:{},compoundVariants:[]}),v=g({defaultClassName:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id0`,variantClassNames:{disabled:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id1`},active:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id2`},__autoLayout:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id3`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id4`}},defaultVariants:{disabled:!1,active:!1,__autoLayout:!1},compoundVariants:[]}),y=`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id5`,b=`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id6`;function x({className:e,sortKey:r,sort:a,sortDisabled:o,onSortChange:s,onClick:c,children:l,style:u,widthPx:d,widthRem:f,__autoLayout:p=!1,...m}){let h=t.useMemo(()=>{let e=!!r&&!o&&Array.isArray(a)&&a.find(e=>e.key===r);return e?e.direction:void 0},[a,r,o]),{t:g}=(0,i.useWoodlandLanguage)(),x=d?d/16:f,S=x?{...u,width:`${x}rem`}:u,C=e=>{r&&!o&&s&&s([{key:r,direction:h===n.SortDirection.ASCENDING?n.SortDirection.DESCENDING:n.SortDirection.ASCENDING}]),c&&c(e)},w=!!r&&!!s&&!o,T=`none`;h===n.SortDirection.ASCENDING?T=`ascending`:h===n.SortDirection.DESCENDING&&(T=`descending`);let E=null;!p&&h&&(E=t.createElement(`span`,{className:b},` `,h===n.SortDirection.ASCENDING?g(`sortingHeader.sortedAscending`,{defaultValue:`sorted ascending`}):g(`sortingHeader.sortedDescending`,{defaultValue:`sorted descending`})));let D=w?t.createElement(`button`,{type:`button`,className:y},l,E):t.createElement(t.Fragment,null,l,E);return p?t.createElement(`td`,{className:(0,n.cl)(e,v({disabled:o,active:!!h,__autoLayout:p}),h&&_({up:h===n.SortDirection.ASCENDING,down:h===n.SortDirection.DESCENDING})),onClick:C,style:S,role:`columnheader`,"aria-sort":w?T:void 0,...m},D):t.createElement(`div`,{className:(0,n.cl)(e,v({disabled:o,active:!!h,__autoLayout:p}),h&&_({up:h===n.SortDirection.ASCENDING,down:h===n.SortDirection.DESCENDING})),onClick:C,style:S,...m},D)}n.Metadata.set(x,{name:`Sorting Header Cell`,props:{sortKey:{type:`string`},sort:{type:`SortedColumn[]`},sortDisabled:{type:`boolean`},onSortChange:{type:`SortChangeHandler`},widthPx:{type:`number`},widthRem:{type:`number`}}});var S=g({defaultClassName:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu0`,variantClassNames:{pinned:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu1`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu2`},scrollParentIsWindow:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu3`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu4`},__autoLayout:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu5`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu6`}},defaultVariants:{pinned:!1,scrollParentIsWindow:!1,__autoLayout:!1},compoundVariants:[[{pinned:!0,scrollParentIsWindow:!0},`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu7`]]}),C=`pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu8`;function w({sort:e,onSortChange:i,children:a,className:o,pinSortingHeader:s=!1,__autoLayout:c=!1,...l}){let[u,d]=t.useState(!1),f=t.useRef(null),p=t.useRef(null),m=t.useRef({height:``,width:``,unpinAtTop:0,unpinAtBottom:0,cellWidths:[]}),h=t.useCallback(()=>f.current&&(0,n.getScrollParent)(f.current)||window,[]),g=t.useCallback(e=>{let t=e||h();return t.scrollY||t.scrollTop||0},[]),_=t.useCallback(e=>{if(s&&f.current){let t=e||h(),n=g(t),r=c?f.current.parentElement?.parentElement?.getBoundingClientRect():f.current.parentElement?.getBoundingClientRect();if(r){let e=f.current.getBoundingClientRect();m.current.height=`${e.height}px`,m.current.width=`${e.width}px`,t===window?(m.current.unpinAtBottom=r.bottom+n-e.height*2,m.current.unpinAtTop=e.top+n-e.height):(m.current.unpinAtBottom=r.bottom+n-e.height*2,m.current.unpinAtTop=r.top+n),m.current.cellWidths=[],f.current.childNodes.forEach((e,t)=>{e instanceof HTMLElement&&(m.current.cellWidths[t]=`${e.getBoundingClientRect().width}px`)})}}},[s]),v=t.useCallback(()=>{p.current&&(p.current.style.width=m.current.width,p.current.style.height=m.current.height,p.current.childNodes.forEach((e,t)=>{e instanceof HTMLElement&&(e.style.width=m.current.cellWidths[t]||``)}))},[]);t.useLayoutEffect(()=>{_()}),t.useLayoutEffect(()=>{let e,t=h();return s?(e=(0,r.lockToAnimationFrames)(()=>{_(t);let{unpinAtTop:e,unpinAtBottom:n}=m.current,r=g(t);e&&n&&(r>=e&&r<=n?(d(!0),f.current&&(f.current.style.visibility=`hidden`)):(d(!1),f.current&&(f.current.style.visibility=`visible`)))}),t.addEventListener(`scroll`,e),e()):f.current&&(f.current.style.visibility=`visible`),()=>{e&&t.removeEventListener(`scroll`,e)}},[s,_]),t.useLayoutEffect(()=>{let e;return u&&(e=()=>{_(),v()},window.addEventListener(`resize`,e),e()),()=>{e&&window.removeEventListener(`resize`,e)}},[u,_,v]);let[y]=(0,n.selectChildren)(a,[{type:x}]),b=(0,n.modChildren)(y,()=>[{sort:e,onSortChange:i}]),w=h()===window;if(c){let e=t.createElement(`tr`,null,t.createElement(`td`,{className:(0,n.cl)(C),colSpan:100}));return t.createElement(t.Fragment,null,t.createElement(`tr`,{ref:f,className:(0,n.cl)(S({pinned:!1,scrollParentIsWindow:w,__autoLayout:c}),o),...l},b),e,u&&t.createElement(`tr`,{ref:p,className:(0,n.cl)(o,S({pinned:!0,scrollParentIsWindow:w,__autoLayout:c})),...l,id:l.id?`pinned-${l.id}`:void 0,"data-testid":l[`data-testid`]?`pinned-${l[`data-testid`]}`:void 0},b))}return t.createElement(t.Fragment,null,t.createElement(`div`,{ref:f,className:(0,n.cl)(o,S({pinned:!1,scrollParentIsWindow:w,__autoLayout:c})),...l},b),u&&t.createElement(`div`,{ref:p,className:(0,n.cl)(o,S({pinned:!0,scrollParentIsWindow:w,__autoLayout:c})),...l,id:l.id?`pinned-${l.id}`:void 0,"data-testid":l[`data-testid`]?`pinned-${l[`data-testid`]}`:void 0},b))}n.Metadata.set(w,{name:`Sorting Header`,props:{sort:{type:`SortedColumn[]`},onSortChange:{type:`SortChangeHandler`}}}),e.SortingHeader=w,e.SortingHeaderCell=x});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core"),require("@spscommerce/utils"),require("@spscommerce/i18n")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`,`@spscommerce/utils`,`@spscommerce/i18n`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.SortingHeader={},e.react,e.spsWoodlandCore,e.spscommerceUtils,e.spscommerceI18n))})(this,function(e,t,n,r,i){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=c(t),a=0,l=i.length,d;a<l;a++)d=i[a],!u.call(e,d)&&d!==n&&o(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=s(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:a(l(e)),d(t||!e||!e.__esModule||!u.call(e,`default`)?o(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?p(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var h=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},g=e=>t=>{var n=e.defaultClassName,r=m(m({},e.defaultVariants),t);for(var i in r){var a=r[i]??e.defaultVariants[i];if(a!=null){var o=a;typeof o==`boolean`&&(o=o===!0?`true`:`false`);var s=e.variantClassNames[i][o];s&&(n+=` `+s)}}for(var[c,l]of e.compoundVariants)h(c,r,e.defaultVariants)&&(n+=` `+l);return n},_=g({defaultClassName:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_ax8xqf0`,variantClassNames:{up:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_ax8xqf1`},down:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_ax8xqf2`}},defaultVariants:{},compoundVariants:[]}),v=g({defaultClassName:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id0`,variantClassNames:{disabled:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id1`},active:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id2`},__autoLayout:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id3`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id4`}},defaultVariants:{disabled:!1,active:!1,__autoLayout:!1},compoundVariants:[]}),y=`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id5`,b=`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id6`;function x({className:e,sortKey:r,sort:a,sortDisabled:o,onSortChange:s,onClick:c,children:l,style:u,widthPx:d,widthRem:f,__autoLayout:p=!1,...m}){let h=t.useMemo(()=>{let e=!!r&&!o&&Array.isArray(a)&&a.find(e=>e.key===r);return e?e.direction:void 0},[a,r,o]),{t:g}=(0,i.useWoodlandLanguage)(),x=d?d/16:f,S=x?{...u,width:`${x}rem`}:u,C=e=>{r&&!o&&s&&s([{key:r,direction:h===n.SortDirection.ASCENDING?n.SortDirection.DESCENDING:n.SortDirection.ASCENDING}]),c&&c(e)},w=!!r&&!!s&&!o,T=`none`;h===n.SortDirection.ASCENDING?T=`ascending`:h===n.SortDirection.DESCENDING&&(T=`descending`);let E=null;!p&&h&&(E=t.createElement(`span`,{className:b},` `,h===n.SortDirection.ASCENDING?g(`sortingHeader.sortedAscending`,{defaultValue:`sorted ascending`}):g(`sortingHeader.sortedDescending`,{defaultValue:`sorted descending`})));let D=w?t.createElement(`button`,{type:`button`,className:y},l,E):t.createElement(t.Fragment,null,l,E);return p?t.createElement(`td`,{className:(0,n.cl)(e,v({disabled:o,active:!!h,__autoLayout:p}),h&&_({up:h===n.SortDirection.ASCENDING,down:h===n.SortDirection.DESCENDING})),onClick:C,style:S,role:`columnheader`,"aria-sort":w?T:void 0,...m},D):t.createElement(`div`,{className:(0,n.cl)(e,v({disabled:o,active:!!h,__autoLayout:p}),h&&_({up:h===n.SortDirection.ASCENDING,down:h===n.SortDirection.DESCENDING})),onClick:C,style:S,...m},D)}n.Metadata.set(x,{name:`Sorting Header Cell`,props:{sortKey:{type:`string`},sort:{type:`SortedColumn[]`},sortDisabled:{type:`boolean`},onSortChange:{type:`SortChangeHandler`},widthPx:{type:`number`},widthRem:{type:`number`}}});var S=g({defaultClassName:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu0`,variantClassNames:{pinned:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu1`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu2`},scrollParentIsWindow:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu3`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu4`},__autoLayout:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu5`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu6`}},defaultVariants:{pinned:!1,scrollParentIsWindow:!1,__autoLayout:!1},compoundVariants:[[{pinned:!0,scrollParentIsWindow:!0},`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu7`]]}),C=`pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu8`;function w({sort:e,onSortChange:i,children:a,className:o,pinSortingHeader:s=!1,__autoLayout:c=!1,...l}){let[u,d]=t.useState(!1),f=t.useRef(null),p=t.useRef(null),m=t.useRef({height:``,width:``,unpinAtTop:0,unpinAtBottom:0,cellWidths:[]}),h=t.useCallback(()=>f.current&&(0,n.getScrollParent)(f.current)||window,[]),g=t.useCallback(e=>{let t=e||h();return t.scrollY||t.scrollTop||0},[]),_=t.useCallback(e=>{if(s&&f.current){let t=e||h(),n=g(t),r=c?f.current.parentElement?.parentElement?.getBoundingClientRect():f.current.parentElement?.getBoundingClientRect();if(r){let e=f.current.getBoundingClientRect();m.current.height=`${e.height}px`,m.current.width=`${e.width}px`,t===window?(m.current.unpinAtBottom=r.bottom+n-e.height*2,m.current.unpinAtTop=e.top+n-e.height):(m.current.unpinAtBottom=r.bottom+n-e.height*2,m.current.unpinAtTop=r.top+n),m.current.cellWidths=[],f.current.childNodes.forEach((e,t)=>{e instanceof HTMLElement&&(m.current.cellWidths[t]=`${e.getBoundingClientRect().width}px`)})}}},[s]),v=t.useCallback(()=>{p.current&&(p.current.style.width=m.current.width,p.current.style.height=m.current.height,p.current.childNodes.forEach((e,t)=>{e instanceof HTMLElement&&(e.style.width=m.current.cellWidths[t]||``)}))},[]);t.useLayoutEffect(()=>{_()}),t.useLayoutEffect(()=>{let e,t=h();return s?(e=(0,r.lockToAnimationFrames)(()=>{_(t);let{unpinAtTop:e,unpinAtBottom:n}=m.current,r=g(t);e&&n&&(r>=e&&r<=n?(d(!0),f.current&&(f.current.style.visibility=`hidden`)):(d(!1),f.current&&(f.current.style.visibility=`visible`)))}),t.addEventListener(`scroll`,e),e()):f.current&&(f.current.style.visibility=`visible`),()=>{e&&t.removeEventListener(`scroll`,e)}},[s,_]),t.useLayoutEffect(()=>{let e;return u&&(e=()=>{_(),v()},window.addEventListener(`resize`,e),e()),()=>{e&&window.removeEventListener(`resize`,e)}},[u,_,v]);let[y]=(0,n.selectChildren)(a,[{type:x}]),b=(0,n.modChildren)(y,()=>[{sort:e,onSortChange:i}]),w=h()===window;if(c){let e=t.createElement(`tr`,null,t.createElement(`td`,{className:(0,n.cl)(C),colSpan:100}));return t.createElement(t.Fragment,null,t.createElement(`tr`,{ref:f,className:(0,n.cl)(S({pinned:!1,scrollParentIsWindow:w,__autoLayout:c}),o),...l},b),e,u&&t.createElement(`tr`,{ref:p,className:(0,n.cl)(o,S({pinned:!0,scrollParentIsWindow:w,__autoLayout:c})),...l,id:l.id?`pinned-${l.id}`:void 0,"data-testid":l[`data-testid`]?`pinned-${l[`data-testid`]}`:void 0},b))}return t.createElement(t.Fragment,null,t.createElement(`div`,{ref:f,className:(0,n.cl)(o,S({pinned:!1,scrollParentIsWindow:w,__autoLayout:c})),...l},b),u&&t.createElement(`div`,{ref:p,className:(0,n.cl)(o,S({pinned:!0,scrollParentIsWindow:w,__autoLayout:c})),...l,id:l.id?`pinned-${l.id}`:void 0,"data-testid":l[`data-testid`]?`pinned-${l[`data-testid`]}`:void 0},b))}n.Metadata.set(w,{name:`Sorting Header`,props:{sort:{type:`SortedColumn[]`},onSortChange:{type:`SortChangeHandler`}}}),e.SortingHeader=w,e.SortingHeaderCell=x});
@@ -2,19 +2,19 @@ import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_
2
2
  /* empty css */
3
3
  //#region src/sorting-header/sorting-header/SortingHeader.css.ts
4
4
  var t = e({
5
- defaultClassName: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu0",
5
+ defaultClassName: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu0",
6
6
  variantClassNames: {
7
7
  pinned: {
8
- true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu1",
9
- false: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu2"
8
+ true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu1",
9
+ false: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu2"
10
10
  },
11
11
  scrollParentIsWindow: {
12
- true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu3",
13
- false: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu4"
12
+ true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu3",
13
+ false: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu4"
14
14
  },
15
15
  __autoLayout: {
16
- true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu5",
17
- false: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu6"
16
+ true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu5",
17
+ false: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu6"
18
18
  }
19
19
  },
20
20
  defaultVariants: {
@@ -25,7 +25,7 @@ var t = e({
25
25
  compoundVariants: [[{
26
26
  pinned: !0,
27
27
  scrollParentIsWindow: !0
28
- }, "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu7"]]
29
- }), n = "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu8";
28
+ }, "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu7"]]
29
+ }), n = "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu8";
30
30
  //#endregion
31
31
  export { t as sortingHeader, n as sortingHeaderSpacer };
@@ -2,13 +2,13 @@ import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_
2
2
  /* empty css */
3
3
  //#region src/sorting-header/sorting-header-cell/SortingHeaderCell.css.ts
4
4
  var t = e({
5
- defaultClassName: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id0",
5
+ defaultClassName: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id0",
6
6
  variantClassNames: {
7
- disabled: { true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id1" },
8
- active: { true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id2" },
7
+ disabled: { true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id1" },
8
+ active: { true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id2" },
9
9
  __autoLayout: {
10
- true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id3",
11
- false: "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id4"
10
+ true: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id3",
11
+ false: "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id4"
12
12
  }
13
13
  },
14
14
  defaultVariants: {
@@ -17,6 +17,6 @@ var t = e({
17
17
  __autoLayout: !1
18
18
  },
19
19
  compoundVariants: []
20
- }), n = "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id5", r = "pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id6";
20
+ }), n = "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id5", r = "pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id6";
21
21
  //#endregion
22
22
  export { t as headerCell, n as headerCellButton, r as visuallyHidden };
@@ -1,2 +1,2 @@
1
- .pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_ax8xqf0:after{content:"";border-style:solid;border-width:.375rem .25rem;border-left-color:#0000;border-right-color:#0000;height:0;position:absolute;right:.5rem}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_ax8xqf1:after{border-top-color:#0000;border-bottom-color:#1f282c;top:calc(50% - 9px)}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_ax8xqf2:after{border-top-color:#1f282c;border-bottom-color:#0000;top:calc(50% - 3px)}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id0{vertical-align:middle;color:#4b5356;padding:.5rem;font-size:.75rem;font-weight:600;line-height:1.25rem;display:table-cell;position:relative}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id0:hover{background-color:#f3f4f4}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id0:focus-within{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id1{cursor:default}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id1:hover{background-color:#e9e9ea}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id2{color:#1f282c;background-color:#d2d4d4}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id3{text-align:left}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id3:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id3:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id5{appearance:none;color:inherit;font:inherit;text-align:inherit;cursor:pointer;background:0 0;border:0;width:100%;margin:0;padding:0;display:block}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id5:focus{outline:none}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_11ho8id6{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu0{vertical-align:bottom;cursor:pointer;background-color:#e9e9ea;border-radius:.25rem;padding:0}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu1{z-index:999;border-radius:0;position:fixed;top:0}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu1:after{content:"";background:linear-gradient(#0000001a,#0000);width:100%;height:.625rem;display:block;position:absolute;top:100%;left:-.0625rem}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu5{display:table-row}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu6{table-layout:fixed;width:100%;display:table}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu7{top:3.75rem}.pkg_sps-woodland_core__family_sorting-header__version_8_56_7__hash_1jpcvsu8{background:0 0;border:0;height:1rem}
1
+ .pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_ax8xqf0:after{content:"";border-style:solid;border-width:.375rem .25rem;border-left-color:#0000;border-right-color:#0000;height:0;position:absolute;right:.5rem}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_ax8xqf1:after{border-top-color:#0000;border-bottom-color:#1f282c;top:calc(50% - 9px)}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_ax8xqf2:after{border-top-color:#1f282c;border-bottom-color:#0000;top:calc(50% - 3px)}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id0{vertical-align:middle;color:#4b5356;padding:.5rem;font-size:.75rem;font-weight:600;line-height:1.25rem;display:table-cell;position:relative}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id0:hover{background-color:#f3f4f4}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id0:focus-within{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id1{cursor:default}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id1:hover{background-color:#e9e9ea}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id2{color:#1f282c;background-color:#d2d4d4}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id3{text-align:left}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id3:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id3:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id5{appearance:none;color:inherit;font:inherit;text-align:inherit;cursor:pointer;background:0 0;border:0;width:100%;margin:0;padding:0;display:block}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id5:focus{outline:none}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_11ho8id6{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu0{vertical-align:bottom;cursor:pointer;background-color:#e9e9ea;border-radius:.25rem;padding:0}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu1{z-index:999;border-radius:0;position:fixed;top:0}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu1:after{content:"";background:linear-gradient(#0000001a,#0000);width:100%;height:.625rem;display:block;position:absolute;top:100%;left:-.0625rem}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu5{display:table-row}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu6{table-layout:fixed;width:100%;display:table}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu7{top:3.75rem}.pkg_sps-woodland_core__family_sorting-header__version_8_56_8__hash_1jpcvsu8{background:0 0;border:0;height:1rem}
2
2
  /*$vite$:1*/