@sps-woodland/core 8.56.11 → 8.56.13

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 (206) hide show
  1. package/lib/action-bar/action-bar/ActionBar.ve.js +1 -1
  2. package/lib/action-bar/index.js +3 -59
  3. package/lib/action-bar/style.css +1 -2
  4. package/lib/add-to-list/add-to-list/AddToList.js +4 -4
  5. package/lib/add-to-list/add-to-list/AddToList.ve.js +32 -32
  6. package/lib/add-to-list/add-to-list/ItemsList.js +3 -3
  7. package/lib/add-to-list/add-to-list/ListItem.js +1 -1
  8. package/lib/add-to-list/index.js +1 -402
  9. package/lib/add-to-list/style.css +1 -2
  10. package/lib/buttons/button/Button.js +2 -2
  11. package/lib/buttons/button/Button.ve.js +56 -56
  12. package/lib/buttons/index.js +1 -285
  13. package/lib/buttons/style.css +1 -2
  14. package/lib/cards/card/Card.ve.js +1 -1
  15. package/lib/cards/card-footer/CardFooter.ve.js +1 -1
  16. package/lib/cards/card-header/CardHeader.ve.js +1 -1
  17. package/lib/cards/card-title/CardTitle.ve.js +1 -1
  18. package/lib/cards/index.js +5 -56
  19. package/lib/cards/style.css +4 -2
  20. package/lib/components/icon/Icon.ve.js +5 -5
  21. package/lib/content-row/content-row/ContentRow.js +2 -2
  22. package/lib/content-row/content-row/ContentRow.ve.js +37 -37
  23. package/lib/content-row/content-row-col/ContentRowCol.ve.js +14 -14
  24. package/lib/content-row/index.js +5 -419
  25. package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +3 -3
  26. package/lib/content-row/style.css +3 -2
  27. package/lib/content-tiles/content-tile/ContentTile.js +3 -3
  28. package/lib/content-tiles/content-tile/ContentTile.ve.js +12 -12
  29. package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
  30. package/lib/content-tiles/index.js +3 -162
  31. package/lib/content-tiles/style.css +2 -2
  32. package/lib/dropdowns/dropdown/Dropdown.js +1 -1
  33. package/lib/dropdowns/dropdown/Dropdown.ve.js +13 -13
  34. package/lib/dropdowns/index.js +4 -180
  35. package/lib/dropdowns/option-list/Option.js +1 -1
  36. package/lib/dropdowns/option-list/Option.ve.js +1 -1
  37. package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
  38. package/lib/dropdowns/style.css +3 -2
  39. package/lib/feedback-block/FeedbackBlock.ve.js +18 -18
  40. package/lib/feedback-block/index.js +1 -138
  41. package/lib/feedback-block/style.css +1 -2
  42. package/lib/file-upload/file-upload/FileUpload.js +4 -4
  43. package/lib/file-upload/file-upload/FileUpload.ve.js +28 -28
  44. package/lib/file-upload/index.js +1 -398
  45. package/lib/file-upload/style.css +1 -2
  46. package/lib/filter-tiles/filter-tile/FilterTile.ve.js +20 -20
  47. package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
  48. package/lib/filter-tiles/index.js +3 -148
  49. package/lib/filter-tiles/style.css +2 -2
  50. package/lib/focused-task/focused-task/FocusedTask.ve.js +5 -5
  51. package/lib/focused-task/index.js +4 -137
  52. package/lib/focused-task/style.css +1 -2
  53. package/lib/growler/Growler.js +1 -1
  54. package/lib/growler/Growler.ve.js +10 -10
  55. package/lib/growler/Sonner.ve.js +8 -8
  56. package/lib/growler/index.js +4 -261
  57. package/lib/growler/style.css +2 -2
  58. package/lib/index.js +28 -28
  59. package/lib/index.umd.cjs +1 -1
  60. package/lib/insight-card/InsightCard.ve.js +54 -54
  61. package/lib/insight-card/index.js +3 -276
  62. package/lib/insight-card/style.css +1 -2
  63. package/lib/key-value-set/index.js +3 -105
  64. package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +2 -2
  65. package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +4 -4
  66. package/lib/key-value-set/style.css +2 -2
  67. package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +9 -9
  68. package/lib/list-bar/index.js +8 -321
  69. package/lib/list-bar/list-bar/ListBar.js +5 -5
  70. package/lib/list-bar/list-bar/ListBar.ve.js +4 -4
  71. package/lib/list-bar/search-results-bar/SearchResultsBar.js +2 -2
  72. package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -1
  73. package/lib/list-bar/style.css +3 -2
  74. package/lib/matrix/index.js +7 -87
  75. package/lib/matrix/matrix/Matrix.ve.js +1 -1
  76. package/lib/matrix/style.css +1 -2
  77. package/lib/modal/index.js +4 -207
  78. package/lib/modal/modal/Modal.js +1 -1
  79. package/lib/modal/modal/Modal.ve.js +23 -23
  80. package/lib/modal/style.css +1 -2
  81. package/lib/page-title/index.js +4 -38
  82. package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
  83. package/lib/page-title/page-title/PageTitle.ve.js +1 -1
  84. package/lib/page-title/style.css +2 -2
  85. package/lib/photo/index.js +3 -180
  86. package/lib/photo/photo/Photo.ve.js +7 -7
  87. package/lib/photo/photo-carousel/PhotoCarousel.ve.js +4 -4
  88. package/lib/photo/style.css +2 -2
  89. package/lib/product-bar/index.js +5 -387
  90. package/lib/product-bar/product-bar/ProductBar.ve.js +17 -17
  91. package/lib/product-bar/product-bar-name/ProductBarName.js +2 -2
  92. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +3 -3
  93. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
  94. package/lib/product-bar/product-bar-tab/ProductBarTab.js +1 -1
  95. package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
  96. package/lib/product-bar/style.css +3 -2
  97. package/lib/product-bar-vertical/index.js +5 -250
  98. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +1 -1
  99. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +22 -22
  100. package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +1 -1
  101. package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +2 -2
  102. package/lib/product-bar-vertical/style.css +1 -2
  103. package/lib/progress-indicators/index.js +4 -381
  104. package/lib/progress-indicators/progress-bar/ProgressBar.js +2 -2
  105. package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +26 -26
  106. package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +42 -42
  107. package/lib/progress-indicators/style.css +2 -2
  108. package/lib/rich-text-editor/index.js +1 -580
  109. package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +4 -4
  110. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +2 -2
  111. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +7 -7
  112. package/lib/rich-text-editor/style.css +2 -2
  113. package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
  114. package/lib/scrollable-container/index.js +1 -22
  115. package/lib/scrollable-container/style.css +1 -2
  116. package/lib/side-nav/index.js +5 -202
  117. package/lib/side-nav/side-nav/SideNav.js +1 -1
  118. package/lib/side-nav/side-nav/SideNav.ve.js +7 -7
  119. package/lib/side-nav/side-nav-section/SideNavSection.js +1 -1
  120. package/lib/side-nav/style.css +1 -2
  121. package/lib/sorting-header/caret/caret.ve.js +3 -3
  122. package/lib/sorting-header/index.js +3 -276
  123. package/lib/sorting-header/sorting-header/SortingHeader.ve.js +9 -9
  124. package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +6 -6
  125. package/lib/sorting-header/style.css +3 -2
  126. package/lib/style.css +1 -1
  127. package/lib/tabs/index.js +4 -261
  128. package/lib/tabs/style.css +2 -2
  129. package/lib/tabs/tab/Tab.ve.js +21 -21
  130. package/lib/tabs/tabs/Tabs.js +2 -2
  131. package/lib/tabs/tabs/Tabs.ve.js +5 -5
  132. package/lib/tags/clickable-tag/ClickableTag.js +1 -1
  133. package/lib/tags/clickable-tag/ClickableTag.ve.js +21 -21
  134. package/lib/tags/index.js +4 -352
  135. package/lib/tags/split-tag/SplitTag.js +1 -1
  136. package/lib/tags/split-tag/SplitTag.ve.js +15 -15
  137. package/lib/tags/style.css +3 -2
  138. package/lib/tags/tag/Tag.ve.js +19 -19
  139. package/lib/zero-state/ZeroState.js +1 -1
  140. package/lib/zero-state/ZeroState.ve.js +11 -11
  141. package/lib/zero-state/index.js +1 -109
  142. package/lib/zero-state/style.css +1 -2
  143. package/package.json +11 -41
  144. package/scripts/family-stylesheets.mjs +100 -0
  145. package/scripts/watch-all.mjs +11 -24
  146. package/vite.subpaths.config.mjs +15 -4
  147. package/lib/action-bar/index.umd.cjs +0 -1
  148. package/lib/add-to-list/index.umd.cjs +0 -1
  149. package/lib/buttons/index.umd.cjs +0 -1
  150. package/lib/cards/index.umd.cjs +0 -1
  151. package/lib/content-row/index.umd.cjs +0 -1
  152. package/lib/content-tiles/index.umd.cjs +0 -1
  153. package/lib/core.css +0 -2
  154. package/lib/dropdowns/index.umd.cjs +0 -1
  155. package/lib/feedback-block/index.umd.cjs +0 -1
  156. package/lib/file-upload/index.umd.cjs +0 -1
  157. package/lib/filter-tiles/index.umd.cjs +0 -1
  158. package/lib/focused-task/index.umd.cjs +0 -1
  159. package/lib/growler/index.umd.cjs +0 -1
  160. package/lib/insight-card/index.umd.cjs +0 -1
  161. package/lib/key-value-set/index.umd.cjs +0 -1
  162. package/lib/list-bar/index.umd.cjs +0 -1
  163. package/lib/matrix/index.umd.cjs +0 -1
  164. package/lib/modal/index.umd.cjs +0 -1
  165. package/lib/page-title/index.umd.cjs +0 -1
  166. package/lib/photo/index.umd.cjs +0 -1
  167. package/lib/product-bar/index.umd.cjs +0 -1
  168. package/lib/product-bar-vertical/index.umd.cjs +0 -1
  169. package/lib/progress-indicators/index.umd.cjs +0 -1
  170. package/lib/rich-text-editor/index.umd.cjs +0 -13
  171. package/lib/scrollable-container/index.umd.cjs +0 -1
  172. package/lib/side-nav/index.umd.cjs +0 -1
  173. package/lib/sorting-header/index.umd.cjs +0 -1
  174. package/lib/tabs/index.umd.cjs +0 -1
  175. package/lib/tags/index.umd.cjs +0 -1
  176. package/lib/zero-state/index.umd.cjs +0 -1
  177. package/vite.action-bar.config.mjs +0 -43
  178. package/vite.add-to-list.config.mjs +0 -43
  179. package/vite.buttons.config.mjs +0 -44
  180. package/vite.cards.config.mjs +0 -43
  181. package/vite.content-row.config.mjs +0 -43
  182. package/vite.content-tiles.config.mjs +0 -43
  183. package/vite.dropdowns.config.mjs +0 -44
  184. package/vite.editable-table.config.mjs +0 -71
  185. package/vite.feedback-block.config.mjs +0 -43
  186. package/vite.file-upload.config.mjs +0 -43
  187. package/vite.filter-tiles.config.mjs +0 -43
  188. package/vite.focused-task.config.mjs +0 -43
  189. package/vite.growler.config.mjs +0 -44
  190. package/vite.insight-card.config.mjs +0 -43
  191. package/vite.key-value-set.config.mjs +0 -43
  192. package/vite.list-bar.config.mjs +0 -43
  193. package/vite.matrix.config.mjs +0 -43
  194. package/vite.modal.config.mjs +0 -43
  195. package/vite.page-title.config.mjs +0 -43
  196. package/vite.photo.config.mjs +0 -43
  197. package/vite.product-bar-vertical.config.mjs +0 -43
  198. package/vite.product-bar.config.mjs +0 -45
  199. package/vite.progress-indicators.config.mjs +0 -43
  200. package/vite.rich-text-editor.config.mjs +0 -51
  201. package/vite.scrollable-container.config.mjs +0 -43
  202. package/vite.side-nav.config.mjs +0 -43
  203. package/vite.sorting-header.config.mjs +0 -43
  204. package/vite.tabs.config.mjs +0 -46
  205. package/vite.tags.config.mjs +0 -43
  206. package/vite.zero-state.config.mjs +0 -43
@@ -1,13 +0,0 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@sps-woodland/core"),require("react"),require("@spscommerce/ds-react"),require("@sps-woodland/core/button"),require("@spscommerce/i18n"),require("@sps-woodland/tokens"),require("remark-parse"),require("remark-rehype"),require("rehype-sanitize"),require("rehype-stringify"),require("unified"),require("unist-util-visit"),require("rehype-parse"),require("rehype-remark"),require("remark-stringify")):typeof define==`function`&&define.amd?define([`exports`,`@sps-woodland/core`,`react`,`@spscommerce/ds-react`,`@sps-woodland/core/button`,`@spscommerce/i18n`,`@sps-woodland/tokens`,`remark-parse`,`remark-rehype`,`rehype-sanitize`,`rehype-stringify`,`unified`,`unist-util-visit`,`rehype-parse`,`rehype-remark`,`remark-stringify`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.RichTextEditor={},e.spsWoodlandCore,e.react,e.spscommerceDsReact,e.spsWoodlandCoreButton,e.spscommerceI18n,e.spsWoodlandTokens,e.remarkParse,e.remarkRehype,e.rehypeSanitize,e.rehypeStringify,e.unified,e.unistUtilVisit,e.rehypeParse,e.rehypeRemark,e.remarkStringify))})(this,function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var g=Object.create,_=Object.defineProperty,v=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,b=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,S=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=y(t),a=0,o=i.length,s;a<o;a++)s=i[a],!x.call(e,s)&&s!==n&&_(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=v(t,s))||r.enumerable});return e},C=(e,t,n)=>(n=e==null?{}:g(b(e)),S(t||!e||!e.__esModule||!x.call(e,`default`)?_(n,`default`,{value:e,enumerable:!0}):n,e));n=C(n,1),s=C(s,1),c=C(c,1),l=C(l,1),u=C(u,1),p=C(p,1),m=C(m,1),h=C(h,1);function w({onClose:e,selectionDOMContextFind:t,selectionRange:o}){let{t:s}=(0,a.useWoodlandLanguage)(),c=n.useRef(o),l=n.useRef(!1),{formValue:u,formMeta:d,updateForm:f}=(0,r.useSpsForm)({text:o?.toString()||``,link:``});return n.useEffect(()=>{if(!l.current){let e=t(e=>e.tagName===`A`);e&&(f({text:e.textContent||``,link:e.getAttribute(`href`)||``}),l.current=!0)}},[t]),n.createElement(r.SpsModal,{title:`Add Link`,onClose:()=>e(c.current)},n.createElement(`div`,{className:`sg-row`},n.createElement(`div`,{className:`sg-col-12`},n.createElement(r.SpsLabel,{for:d.fields.text},s(`richTextEditor.linkModal.text`,{defaultValue:`Text`})),n.createElement(r.SpsTextInput,{formMeta:d.fields.text,value:u.text}))),n.createElement(`div`,{className:`sg-row`},n.createElement(`div`,{className:`sg-col-12`},n.createElement(r.SpsLabel,{for:d.fields.link},s(`richTextEditor.linkModal.link`,{defaultValue:`Link`})),n.createElement(r.SpsTextInput,{formMeta:d.fields.link,value:u.link}))),n.createElement(r.SpsModalFooter,null,n.createElement(i.Button,{onClick:()=>e(c.current,u)},s(`richTextEditor.linkModal.ok`,{defaultValue:`OK`}))))}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(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 E(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?T(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var D=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},O=e=>t=>{var n=e.defaultClassName,r=E(E({},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)D(c,r,e.defaultVariants)&&(n+=` `+l);return n},te=O({defaultClassName:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1903a6n0`,variantClassNames:{active:{true:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1903a6n1`,false:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1903a6n2`}},defaultVariants:{},compoundVariants:[]}),ne={icon:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1903a6n3`};function re({icon:e,onClick:t,selectionDOMContextFind:r,activeTest:i,isSimpleToggle:a=!1,...o}){let[s,c]=n.useState(!1);n.useEffect(()=>{i&&c(!!r(i))},[r]);let l=n.useCallback(()=>{t&&t(s),a&&c(!s)},[t,s]);return n.createElement(`button`,{className:te({active:s}),onClick:l,onMouseDown:e=>e.preventDefault(),...o},n.createElement(`span`,{className:ne.icon,style:{backgroundImage:`url("${e}")`},"aria-hidden":`true`}))}var k=O({defaultClassName:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1f3v2ss0`,variantClassNames:{disabled:{true:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1f3v2ss1`,false:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1f3v2ss2`}},defaultVariants:{disabled:!1},compoundVariants:[]}),A=O({defaultClassName:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1f3v2ss3`,variantClassNames:{disabled:{true:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1f3v2ss4`,false:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1f3v2ss5`}},defaultVariants:{},compoundVariants:[]});function j(){return e=>((0,f.visit)(e,`listItem`,e=>{let t=Array.from(e.children);if(t.length>0&&t[0].type===`paragraph`){let n=t[0];e.children=Array.from(n.children).concat(t.slice(1))}}),e)}function M(){let e=(0,n.useMemo)(()=>(0,d.unified)().use(s.default).use(j).use(c.default).use(l.default).use(u.default),[]);return(0,n.useMemo)(()=>function(t){return e.process(t).then(String)},[e])}var N=new Set([`strong`,`emphasis`,`delete`,`link`,`linkReference`]),P=new Set([...N,`paragraph`]);function F(e){return`children`in e}function I(){return e=>{function t(e){for(let n of e.children)F(n)&&t(n);if(e.children=e.children.filter(e=>!(P.has(e.type)&&F(e)&&e.children.length===0)),N.has(e.type))for(;e.children.at(-1)?.type===`break`;)e.children.pop()}return t(e),e}}function L(){let e=(0,n.useMemo)(()=>(0,d.unified)().use(p.default).use(m.default).use(I).use(h.default),[]);return(0,n.useMemo)(()=>function(t){return e.process(t).then(String)},[e])}function R(e=``,t=``){let[r,i]=(0,n.useState)(),[a,o]=(0,n.useState)({html:t}),s=L(),c=M(),l=(0,n.useCallback)(async e=>{let t={md:e,html:await c(e)};return i(t),t},[c]),u=(0,n.useCallback)(async e=>{let t={md:await s(e),html:e};return i(t),t},[s]);(0,n.useEffect)(()=>{!t&&e!==r?.md?l(e).then(({html:e})=>{o({html:e})}):!e&&t&&t!==r?.html&&u(t)},[e,t]);function d(e){e.current&&u(e.current.innerHTML)}return{aggValue:r,editableDivInnerHtml:a,updateStateFromDiv:d}}function z(e){if(e instanceof HTMLElement){for(let t of Array.from(e.attributes))/(style|class|data-[^=]+)/.test(t.name)&&e.removeAttribute(t.name);e.innerHTML=e.innerHTML.replace(/(style|class|data-[^=]+)="[^"]+"/g,``)}}var B=[{regex:/\*\*([^*]+)\*\*/,command:`bold`},{regex:/(?<!\*)\*([^*]+)\*/,command:`italic`},{regex:/^\*[ \u00a0]/,command:`insertUnorderedList`},{regex:/^1\.[ \u00a0]/,command:`insertOrderedList`},{regex:/\[([^\]]+)\]\(([^)]+)\)/,command:`createLink`,getCommandArg:([,,e])=>/^https?:\/\//.test(e)?e:`https://${e}`}];function V(e,t,n){let r=document.createRange();r.setStart(e,t),r.setEnd(e,n);let i=window.getSelection();i?.removeAllRanges(),i?.addRange(r)}function H(e){let t=document.createRange();t.setStartAfter(e),t.setEndAfter(e);let n=window.getSelection();n?.removeAllRanges(),n?.addRange(t)}function U(e){let t=document.createRange();t.setStartBefore(e),t.setEndBefore(e);let n=window.getSelection();n?.removeAllRanges(),n?.addRange(t)}function W(e){let t=(0,n.useRef)(null),r=(0,n.useMemo)(()=>new MutationObserver(([n])=>{if(n.type===`characterData`&&n.oldValue&&n.target.textContent){for(let e of B)if(!e.regex.test(n.oldValue)&&e.regex.test(n.target.textContent)){let t=e.regex.exec(n.target.textContent),[r,i=``]=t,a=n.target.textContent.indexOf(r);n.target.textContent=n.target.textContent.replace(r,i);let o=a+i.length;V(n.target,a,o);let s=e.getCommandArg?e.getCommandArg(t):void 0;document.execCommand(e.command,void 0,s),i&&(H(n.target.parentNode),document.execCommand(e.command))}}else n.type===`childList`&&Array.from(n.addedNodes).forEach(e=>{let t;if(e instanceof HTMLElement&&e.tagName===`LI`?t=e:e?.parentElement?.tagName===`LI`&&(t=e?.parentElement),t){let e=t.nextElementSibling,n=e?.childNodes?.[0];if(n instanceof HTMLElement&&[`UL`,`OL`].includes(n.tagName)){let t=document.createElement(`br`);e.insertBefore(t,n),U(t)}}z(e)});e(t)}),[]);return(0,n.useEffect)(()=>()=>{r&&r.disconnect()},[]),(0,n.useEffect)(()=>{t.current!==null&&r.observe(t.current,{childList:!0,subtree:!0,characterDataOldValue:!0})},[r,t]),t}function ie(e){let[t,r]=(0,n.useState)();return(0,n.useEffect)(()=>{function e(){let e=window.getSelection();Number(e?.rangeCount)>0&&r(e?.getRangeAt(0))}return document.addEventListener(`selectionchange`,e),()=>{document.removeEventListener(`selectionchange`,e)}},[]),{selectionRange:t,selectionDOMContextFind:(0,n.useCallback)(n=>{if(!t)return null;let r=t.commonAncestorContainer;if(!e.current||!e.current.contains(r))return null;let i=r instanceof HTMLElement?r:r.parentElement;for(;i&&i!==e.current;){if(n(i))return i;i=i.parentElement}return null},[t])}}var G=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='10px'%20height='12px'%20viewBox='0%200%2010%2012'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eBold%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-53.000000,%20-103.000000)'%20fill='%234B5356'%20fill-rule='nonzero'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%202.000000)'%20id='B'%3e%3cg%20transform='translate(3.550000,%202.130000)'%3e%3cpath%20d='M0,0%20L4.014,0%20C4.626,0%205.193,0.045%205.715,0.135%20C6.237,0.225%206.693,0.384%207.083,0.612%20C7.473,0.84%207.779,1.14%208.001,1.512%20C8.223,1.884%208.334,2.352%208.334,2.916%20C8.334,3.18%208.295,3.444%208.217,3.708%20C8.139,3.972%208.022,4.218%207.866,4.446%20C7.71,4.674%207.506,4.878%207.254,5.058%20C7.002,5.238%206.708,5.37%206.372,5.454%20L6.372,5.526%20C7.212,5.682%207.845,5.982%208.271,6.426%20C8.697,6.87%208.91,7.488%208.91,8.28%20C8.91,8.88%208.793,9.396%208.559,9.828%20C8.325,10.26%208.001,10.617%207.587,10.899%20C7.173,11.181%206.69,11.391%206.138,11.529%20C5.586,11.667%204.992,11.736%204.356,11.736%20L0,11.736%20L0,0%20Z%20M3.888,4.734%20C4.536,4.734%205.007,4.605%205.301,4.347%20C5.595,4.089%205.742,3.738%205.742,3.294%20C5.742,2.85%205.592,2.532%205.292,2.34%20C4.992,2.148%204.53,2.052%203.906,2.052%20L2.646,2.052%20L2.646,4.734%20L3.888,4.734%20Z%20M4.14,9.684%20C5.592,9.684%206.318,9.15%206.318,8.082%20C6.318,7.566%206.138,7.191%205.778,6.957%20C5.418,6.723%204.872,6.606%204.14,6.606%20L2.646,6.606%20L2.646,9.684%20L4.14,9.684%20Z'%20id='Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,K=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='14px'%20viewBox='0%200%2016%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIndent%20short%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-50.000000,%20-282.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%20182.000000)'%3e%3crect%20id='Rectangle-223'%20x='0'%20y='1.6'%20width='16'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='0'%20y='12.4'%20width='16'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='7'%20y='8.8'%20width='9'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='7'%20y='5.2'%20width='9'%20height='2'%3e%3c/rect%3e%3cpath%20d='M5.20857552,7.99286089%20C5.20857552,8.06428955%205.18178977,8.14464678%205.12821828,8.19821828%20L2.27107201,11.0553645%20C2.21750052,11.108936%202.13714328,11.1357218%202.06571463,11.1357218%20C1.91392873,11.1357218%201.78,11.001793%201.78,10.85%20L1.78,5.13571463%20C1.78,4.97500015%201.90500015,4.85%202.06571463,4.85%20C2.14607186,4.85%202.21750052,4.88571433%202.28,4.93928582%20L5.12821828,7.7875035%20C5.18178977,7.84107499%205.20857552,7.92143223%205.20857552,7.99286089%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,q=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='10px'%20height='12px'%20viewBox='0%200%2010%2012'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eItalics%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-53.000000,%20-148.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%2047.000000)'%3e%3cg%20id='I'%20transform='translate(5.600000,%202.130000)'%20fill-rule='nonzero'%3e%3cpolygon%20id='Path'%20points='2.358%200%204.824%200%202.484%2011.736%200%2011.736'%3e%3c/polygon%3e%3c/g%3e%3crect%20id='Rectangle'%20x='5.5'%20y='2'%20width='7'%20height='1.5'%3e%3c/rect%3e%3crect%20id='Rectangle-Copy'%20x='3.5'%20y='12.5'%20width='7'%20height='1.5'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,J=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14px'%20height='14px'%20viewBox='0%200%2014%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIcon/icon-ellipses%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---Schematics'%20transform='translate(-401.000000,%20-200.000000)'%20fill='%234B5356'%3e%3cg%20id='Group-5'%20transform='translate(146.000000,%20167.000000)'%3e%3cg%20id='Icon/icon-link'%20transform='translate(254.000000,%2032.000000)'%3e%3cpath%20d='M9.28515625,6.03125%20C9.33984402,6.06770852%209.39908822,6.11328098%209.46289062,6.16796875%20C9.52669303,6.22265652%209.58593723,6.26822898%209.640625,6.3046875%20L9.6953125,6.359375%20C10.3333365,7.01562828%2010.6523438,7.79947461%2010.6523438,8.7109375%20C10.6523438,9.62240039%2010.3333365,10.4062467%209.6953125,11.0625%20L6.6875,14.0429688%20C6.04947598,14.6809928%205.27474414,15%204.36328125,15%20C3.45181836,15%202.66797203,14.6809928%202.01171875,14.0429688%20L1.95703125,13.9882812%20C1.31900723,13.332028%201,12.5481816%201,11.6367188%20C1,10.7252559%201.31900723,9.95052402%201.95703125,9.3125%20L4.0625,7.20703125%20C4.04427074,7.51692863%204.06249973,7.82682137%204.1171875,8.13671875%20C4.17187527,8.44661613%204.2630202,8.73827988%204.390625,9.01171875%20L3.05078125,10.3789062%20C2.68619609,10.7252621%202.50390625,11.1445288%202.50390625,11.6367188%20C2.50390625,12.1289087%202.68619609,12.5481754%203.05078125,12.8945312%20L3.10546875,12.9492188%20C3.45182465,13.3138039%203.87109129,13.4960938%204.36328125,13.4960938%20C4.85547121,13.4960938%205.27473785,13.3138039%205.62109375,12.9492188%20L8.6015625,9.96875%20C8.9479184,9.6223941%209.12109375,9.20312746%209.12109375,8.7109375%20C9.12109375,8.21874754%208.9479184,7.7994809%208.6015625,7.453125%20L8.546875,7.3984375%20C8.49218723,7.34374973%208.43750027,7.29362002%208.3828125,7.24804688%20C8.32812473,7.20247373%208.26432328,7.16145852%208.19140625,7.125%20L9.28515625,6.03125%20Z%20M11.6367188,1%20C12.5481816,1%2013.332028,1.31900723%2013.9882812,1.95703125%20L14.0429688,2.01171875%20C14.6809928,2.66797203%2015,3.45181836%2015,4.36328125%20C15,5.27474414%2014.6809928,6.04947598%2014.0429688,6.6875%20L11.9375,8.79296875%20C11.9557293,8.48307137%2011.9375003,8.17317863%2011.8828125,7.86328125%20C11.8281247,7.55338387%2011.7369798,7.26172012%2011.609375,6.98828125%20L12.9492188,5.62109375%20C13.3138039,5.27473785%2013.4960938,4.85547121%2013.4960938,4.36328125%20C13.4960938,3.87109129%2013.3138039,3.45182465%2012.9492188,3.10546875%20L12.8945312,3.05078125%20C12.5481754,2.68619609%2012.1289087,2.50390625%2011.6367188,2.50390625%20C11.1445288,2.50390625%2010.7252621,2.68619609%2010.3789062,3.05078125%20L7.3984375,6.03125%20C7.0520816,6.3776059%206.87890625,6.79687254%206.87890625,7.2890625%20C6.87890625,7.78125246%207.0520816,8.2005191%207.3984375,8.546875%20L7.453125,8.6015625%20C7.50781277,8.65625027%207.56249973,8.70637998%207.6171875,8.75195312%20C7.67187527,8.79752627%207.73567672,8.83854148%207.80859375,8.875%20L6.71484375,9.96875%20C6.66015598,9.93229148%206.60091178,9.88671902%206.53710938,9.83203125%20C6.47330697,9.77734348%206.41406277,9.73177102%206.359375,9.6953125%20L6.3046875,9.640625%20C5.66666348,8.98437172%205.34765625,8.20052539%205.34765625,7.2890625%20C5.34765625,6.37759961%205.66666348,5.59375328%206.3046875,4.9375%20L9.3125,1.95703125%20C9.95052402,1.31900723%2010.7252559,1%2011.6367188,1%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,Y=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='15px'%20height='14px'%20viewBox='0%200%2015%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eOrdered%20list%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-51.000000,%20-192.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%2092.000000)'%3e%3crect%20id='Rectangle-223-Copy-3'%20x='5'%20y='2.5'%20width='11'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223-Copy-2'%20x='5'%20y='7'%20width='11'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223-Copy'%20x='5'%20y='11.5'%20width='11'%20height='2'%3e%3c/rect%3e%3cg%20id='1'%20transform='translate(1.500000,%201.900000)'%20fill-rule='nonzero'%3e%3cpath%20d='M0,2.58%20L0.69,2.58%20L0.69,0.745%20L0.095,0.745%20L0.095,0.29%20C0.268333333,0.256666667%200.415,0.216666667%200.535,0.17%20C0.655,0.123333333%200.771666667,0.0666666667%200.885,0%20L1.425,0%20L1.425,2.58%20L2.02,2.58%20L2.02,3.175%20L0,3.175%20L0,2.58%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3cg%20id='2'%20transform='translate(1.355000,%206.400000)'%20fill-rule='nonzero'%3e%3cpath%20d='M0.035,2.815%20C0.238333333,2.625%200.424166667,2.4475%200.5925,2.2825%20C0.760833333,2.1175%200.905833333,1.9625%201.0275,1.8175%20C1.14916667,1.6725%201.24416667,1.5375%201.3125,1.4125%20C1.38083333,1.2875%201.415,1.16833333%201.415,1.055%20C1.415,0.898333333%201.375,0.779166667%201.295,0.6975%20C1.215,0.615833333%201.105,0.575%200.965,0.575%20C0.848333333,0.575%200.745,0.6075%200.655,0.6725%20C0.565,0.7375%200.48,0.813333333%200.4,0.9%20L0,0.505%20C0.156666667,0.338333333%200.316666667,0.2125%200.48,0.1275%20C0.643333333,0.0425%200.838333333,0%201.065,0%20C1.22166667,0%201.36416667,0.0241666667%201.4925,0.0725%20C1.62083333,0.120833333%201.73166667,0.189166667%201.825,0.2775%20C1.91833333,0.365833333%201.99,0.471666667%202.04,0.595%20C2.09,0.718333333%202.115,0.856666667%202.115,1.01%20C2.115,1.14333333%202.08666667,1.27916667%202.03,1.4175%20C1.97333333,1.55583333%201.8975,1.69416667%201.8025,1.8325%20C1.7075,1.97083333%201.59916667,2.10916667%201.4775,2.2475%20C1.35583333,2.38583333%201.23,2.52166667%201.1,2.655%20C1.18,2.645%201.26916667,2.63583333%201.3675,2.6275%20C1.46583333,2.61916667%201.55333333,2.615%201.63,2.615%20L2.27,2.615%20L2.27,3.235%20L0.035,3.235%20L0.035,2.815%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3cg%20id='3'%20transform='translate(1.350000,%2010.800000)'%20fill-rule='nonzero'%3e%3cpath%20d='M0.34,2.38%20C0.436666667,2.47333333%200.5425,2.55%200.6575,2.61%20C0.7725,2.67%200.898333333,2.7%201.035,2.7%20C1.19166667,2.7%201.31666667,2.6675%201.41,2.6025%20C1.50333333,2.5375%201.55,2.445%201.55,2.325%20C1.55,2.255%201.5375,2.19166667%201.5125,2.135%20C1.4875,2.07833333%201.44333333,2.03083333%201.38,1.9925%20C1.31666667,1.95416667%201.23,1.92416667%201.12,1.9025%20C1.01,1.88083333%200.868333333,1.87%200.695,1.87%20L0.695,1.35%20C0.838333333,1.35%200.9575,1.34%201.0525,1.32%20C1.1475,1.3%201.22416667,1.27083333%201.2825,1.2325%20C1.34083333,1.19416667%201.3825,1.14916667%201.4075,1.0975%20C1.4325,1.04583333%201.445,0.988333333%201.445,0.925%20C1.445,0.815%201.41166667,0.729166667%201.345,0.6675%20C1.27833333,0.605833333%201.18166667,0.575%201.055,0.575%20C0.941666667,0.575%200.839166667,0.6%200.7475,0.65%20C0.655833333,0.7%200.56,0.768333333%200.46,0.855%20L0.09,0.405%20C0.236666667,0.278333333%200.390833333,0.179166667%200.5525,0.1075%20C0.714166667,0.0358333333%200.893333333,0%201.09,0%20C1.25333333,0%201.4025,0.0191666667%201.5375,0.0575%20C1.6725,0.0958333333%201.7875,0.1525%201.8825,0.2275%20C1.9775,0.3025%202.05166667,0.393333333%202.105,0.5%20C2.15833333,0.606666667%202.185,0.73%202.185,0.87%20C2.185,1.03666667%202.13916667,1.1775%202.0475,1.2925%20C1.95583333,1.4075%201.825,1.50166667%201.655,1.575%20L1.655,1.595%20C1.83833333,1.64833333%201.98916667,1.73916667%202.1075,1.8675%20C2.22583333,1.99583333%202.285,2.16333333%202.285,2.37%20C2.285,2.51666667%202.25333333,2.6475%202.19,2.7625%20C2.12666667,2.8775%202.04166667,2.97416667%201.935,3.0525%20C1.82833333,3.13083333%201.70333333,3.19083333%201.56,3.2325%20C1.41666667,3.27416667%201.265,3.295%201.105,3.295%20C0.845,3.295%200.625,3.25416667%200.445,3.1725%20C0.265,3.09083333%200.116666667,2.98166667%200,2.845%20L0.34,2.38%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,ae=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='14px'%20viewBox='0%200%2016%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eOutdent%20short%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-50.000000,%20-327.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%20227.000000)'%3e%3crect%20id='Rectangle-223'%20x='0'%20y='1.6'%20width='16'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='0'%20y='12.4'%20width='16'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='7'%20y='8.8'%20width='9'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='7'%20y='5.2'%20width='9'%20height='2'%3e%3c/rect%3e%3cpath%20d='M5.21357552,10.85%20C5.21357552,11.001793%205.08857537,11.1357218%204.92786089,11.1357218%20C4.84750365,11.1357218%204.77607499,11.1000075%204.71357492,11.046436%20L1.86535724,8.1892897%20C1.81178575,8.1357182%201.785,8.06428955%201.785,7.99286089%20C1.785,7.91250365%201.81178575,7.84107499%201.86535724,7.7875035%20L4.7225035,4.93035724%20C4.77607499,4.87678575%204.85643223,4.85%204.92786089,4.85%20C5.07964678,4.85%205.21357552,4.97500015%205.21357552,5.13571463%20L5.21357552,10.85%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,oe=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14px'%20height='14px'%20viewBox='0%200%2014%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIcon/icon-ellipses%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---Schematics'%20transform='translate(-520.000000,%20-200.000000)'%20fill='%234B5356'%3e%3cg%20id='Group-5'%20transform='translate(146.000000,%20167.000000)'%3e%3cg%20id='Button/2.-Icon/6.-Default-Copy-8'%20transform='translate(363.000000,%2025.000000)'%3e%3cg%20id='Icon/icon-undo'%20transform='translate(10.000000,%207.000000)'%3e%3cpath%20d='M15,2.16666667%20C15,1.9296875%2014.8541667,1.72005208%2014.6445312,1.62890625%20C14.4257812,1.53776042%2014.1705729,1.58333333%2014.0065104,1.75651042%20L12.8216146,2.93229167%20C11.5364583,1.72005208%209.79557292,1%208,1%20C4.14453125,1%201,4.14453125%201,8%20C1,11.8554688%204.14453125,15%208,15%20C10.0872396,15%2012.0559896,14.0794271%2013.3867188,12.4752604%20C13.4778646,12.3567708%2013.4778646,12.1835938%2013.3684896,12.0833333%20L12.1197917,10.8255208%20C12.0559896,10.7708333%2011.9739583,10.7434896%2011.8919271,10.7434896%20C11.8098958,10.7526042%2011.7278646,10.7890625%2011.6822917,10.8528646%20C10.7890625,12.0104167%209.44921875,12.6666667%208,12.6666667%20C5.4296875,12.6666667%203.33333333,10.5703125%203.33333333,8%20C3.33333333,5.4296875%205.4296875,3.33333333%208,3.33333333%20C9.19401042,3.33333333%2010.3242188,3.7890625%2011.1809896,4.58203125%20L9.92317708,5.83984375%20C9.75,6.00390625%209.70442708,6.25911458%209.79557292,6.46875%20C9.88671875,6.6875%2010.0963542,6.83333333%2010.3333333,6.83333333%20L14.4166667,6.83333333%20C14.7356771,6.83333333%2015,6.56901042%2015,6.25%20L15,2.16666667%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,se=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14px'%20height='14px'%20viewBox='0%200%2014%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIcon/icon-ellipses%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---Schematics'%20transform='translate(-484.000000,%20-200.000000)'%20fill='%234B5356'%3e%3cg%20id='Group-5'%20transform='translate(146.000000,%20167.000000)'%3e%3cg%20id='Button/2.-Icon/6.-Default-Copy-9'%20transform='translate(345.000000,%2040.000000)%20scale(-1,%201)%20translate(-345.000000,%20-40.000000)%20translate(327.000000,%2025.000000)'%3e%3cg%20id='Icon/icon-undo'%20transform='translate(10.000000,%207.000000)'%3e%3cpath%20d='M15,2.16666667%20C15,1.9296875%2014.8541667,1.72005208%2014.6445312,1.62890625%20C14.4257812,1.53776042%2014.1705729,1.58333333%2014.0065104,1.75651042%20L12.8216146,2.93229167%20C11.5364583,1.72005208%209.79557292,1%208,1%20C4.14453125,1%201,4.14453125%201,8%20C1,11.8554688%204.14453125,15%208,15%20C10.0872396,15%2012.0559896,14.0794271%2013.3867188,12.4752604%20C13.4778646,12.3567708%2013.4778646,12.1835938%2013.3684896,12.0833333%20L12.1197917,10.8255208%20C12.0559896,10.7708333%2011.9739583,10.7434896%2011.8919271,10.7434896%20C11.8098958,10.7526042%2011.7278646,10.7890625%2011.6822917,10.8528646%20C10.7890625,12.0104167%209.44921875,12.6666667%208,12.6666667%20C5.4296875,12.6666667%203.33333333,10.5703125%203.33333333,8%20C3.33333333,5.4296875%205.4296875,3.33333333%208,3.33333333%20C9.19401042,3.33333333%2010.3242188,3.7890625%2011.1809896,4.58203125%20L9.92317708,5.83984375%20C9.75,6.00390625%209.70442708,6.25911458%209.79557292,6.46875%20C9.88671875,6.6875%2010.0963542,6.83333333%2010.3333333,6.83333333%20L14.4166667,6.83333333%20C14.7356771,6.83333333%2015,6.56901042%2015,6.25%20L15,2.16666667%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,ce=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14px'%20height='16px'%20viewBox='0%200%2014%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eUnlink%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-51.000000,%20-371.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%20272.000000)'%3e%3cpath%20d='M14.0429688,2.01171875%20C14.6809928,2.66797203%2015,3.45181836%2015,4.36328125%20C15,5.27474414%2014.6809928,6.04947598%2014.0429688,6.6875%20L11.1027446,9.58420181%20L10.3518996,8.27890801%20L12.9492188,5.62109375%20C13.3138039,5.27473785%2013.4960938,4.85547121%2013.4960938,4.36328125%20C13.4960938,3.87109129%2013.3138039,3.45182465%2012.9492188,3.10546875%20L12.8945313,3.05078125%20C12.5481754,2.68619609%2012.1289087,2.50390625%2011.6367188,2.50390625%20C11.1445288,2.50390625%2010.7252621,2.68619609%2010.3789063,3.05078125%20L8.41457939,4.92175579%20L7.64047964,3.57621944%20L9.3125,1.95703125%20C9.95052402,1.31900723%2010.7252559,1%2011.6367188,1%20C12.5481816,1%2013.332028,1.31900723%2013.9882813,1.95703125%20L14.0429688,2.01171875%20Z'%20id='Path'%3e%3c/path%3e%3cpath%20d='M8.02641916,12.7072184%20L6.6875,14.0429687%20C6.04947598,14.6809928%205.27474414,15%204.36328125,15%20C3.45181836,15%202.66797203,14.6809928%202.01171875,14.0429687%20L1.95703125,13.9882812%20C1.31900723,13.332028%201,12.5481816%201,11.6367187%20C1,10.7252559%201.31900723,9.95052402%201.95703125,9.3125%20L4.57246065,6.71787083%20L5.34566408,8.05009655%20L3.05078125,10.3789062%20C2.68619609,10.7252621%202.50390625,11.1445288%202.50390625,11.6367187%20C2.50390625,12.1289087%202.68619609,12.5481754%203.05078125,12.8945312%20L3.10546875,12.9492187%20C3.45182465,13.3138039%203.87109129,13.4960937%204.36328125,13.4960937%20C4.85547121,13.4960937%205.27473785,13.3138039%205.62109375,12.9492187%20L7.2646265,11.388324%20L8.02641916,12.7072184%20Z'%20id='Path'%3e%3c/path%3e%3crect%20id='Rectangle'%20transform='translate(7.750000,%208.000000)%20rotate(-30.000000)%20translate(-7.750000,%20-8.000000)%20'%20x='7'%20y='0'%20width='1.5'%20height='16'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,le=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='15px'%20height='12px'%20viewBox='0%200%2015%2012'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eUnordered%20list%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-51.000000,%20-238.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%20137.000000)'%3e%3cg%20transform='translate(1.000000,%202.000000)'%3e%3crect%20id='Rectangle-223'%20x='4'%20y='0.5'%20width='11'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='4'%20y='5'%20width='11'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='4'%20y='9.5'%20width='11'%20height='2'%3e%3c/rect%3e%3ccircle%20id='Oval'%20cx='1.5'%20cy='1.5'%20r='1.5'%3e%3c/circle%3e%3ccircle%20id='Oval-Copy'%20cx='1.5'%20cy='6'%20r='1.5'%3e%3c/circle%3e%3ccircle%20id='Oval-Copy-2'%20cx='1.5'%20cy='10.5'%20r='1.5'%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,X=(e,t)=>{let n=e;for(;n.parentElement&&!t.includes(n.parentElement.tagName);)n=n.parentElement;return n.parentElement&&t.includes(n.parentElement.tagName)?n.parentElement:null},Z=e=>{let t=[],n=e;for(;n.nextElementSibling;)t.push(n.nextElementSibling),n=n.nextElementSibling;return t},ue={key:`bold`,icon:G,onClick:()=>document.execCommand(`bold`),activeTest:e=>[`B`,`STRONG`].includes(e.tagName),isSimpleToggle:!0},de={key:`italics`,icon:q,onClick:()=>document.execCommand(`italic`),activeTest:e=>[`I`,`EM`].includes(e.tagName),isSimpleToggle:!0},fe={key:`ul`,icon:le,onClick:()=>document.execCommand(`insertUnorderedList`),activeTest:e=>e.tagName===`UL`},pe={key:`ol`,icon:Y,onClick:()=>document.execCommand(`insertOrderedList`),activeTest:e=>e.tagName===`OL`},me={key:`indent`,icon:K,onClick:()=>{try{let e=window.getSelection();if(e?.type===`Range`){let t=e.getRangeAt(0),n=t.commonAncestorContainer;if(!(n instanceof HTMLElement)||(n.tagName===`UL`||n.tagName===`OL`||n.tagName===`LI`)&&n.firstElementChild&&t.intersectsNode(n.firstElementChild))return;let r=[],i;if(n.childNodes.forEach(e=>{t.intersectsNode(e)&&e instanceof HTMLElement&&e.tagName===`LI`&&(r.length===0&&(i=e.previousSibling),r.push(e))}),i instanceof HTMLElement&&i.tagName===`LI`){r.forEach(e=>e.remove());let e=i.parentElement?.tagName.toLowerCase();if(e){let t=document.createElement(e);r.forEach(e=>t.appendChild(e)),i.appendChild(t)}return}}else if(e){let{anchorNode:t}=e,n;if(t instanceof HTMLElement&&t.tagName===`LI`?n=t:t&&(n=X(t,[`LI`])),n){let e=n.previousElementSibling,r=n.parentElement.tagName.toLowerCase();if(e&&e.tagName===`LI`){n.remove();let i=e.querySelector(r);if(i)i.appendChild(n);else{let t=document.createElement(r);t.appendChild(n),e.appendChild(t)}t&&H(t.childNodes?.[0]||t)}return}}}catch{}document.execCommand(`indent`)}},Q={key:`outdent`,icon:ae,onClick:()=>{try{let e=window.getSelection();if(e?.type===`Range`){let t=e.getRangeAt(0),n=t.commonAncestorContainer;if(!(n instanceof HTMLElement))return;let r=[],i;if(n.tagName===`UL`||n.tagName===`OL`?i=n:n.tagName===`LI`&&(i=n.parentElement),i){i.childNodes.forEach(e=>{t.intersectsNode(e)&&e instanceof HTMLElement&&e.tagName===`LI`&&r.push(e)});let e=i.parentElement;e?.tagName===`LI`&&(r.forEach((e,t)=>{if(t===r.length-1){let t=Z(e);if(t.length>0){let n=i.tagName.toLowerCase(),r=e.querySelector(n);if(r)for(let e of t)e.remove(),r.appendChild(e);else{let r=document.createElement(n);e.appendChild(r);for(let e of t)e.remove(),r.appendChild(e)}}}e.remove()}),i.childElementCount===0&&i.remove(),r.reverse().forEach(t=>e.after(t)));return}}else if(e){let{anchorNode:t}=e,n=null,r=null;t instanceof HTMLElement&&(t.tagName===`UL`||t.tagName===`OL`)?(n=t,r=t.querySelector(`li`)):t&&(n=X(t,[`UL`,`OL`]),r=t instanceof HTMLElement&&t.tagName===`LI`?t:X(t,[`LI`]));let i=n?X(n,[`UL`,`OL`]):null;if(n&&i){let e=X(n,[`LI`]);if(n.childElementCount===1&&n.remove(),r){let t=Z(r);if(t.length>0){let e=document.createElement(n.tagName.toLowerCase());r.appendChild(e);for(let n of t)n.remove(),e.appendChild(n)}e?.after(r),r.lastChild&&H(r.lastChild)}return}}}catch{}document.execCommand(`outdent`)}},he={key:`undo`,icon:se,onClick:()=>document.execCommand(`undo`)},ge={key:`redo`,icon:oe,onClick:()=>document.execCommand(`redo`)};function _e(e,t){let[r,i]=(0,n.useState)(!1),a=(0,n.useCallback)((e,t)=>{i(!1);let n=e.cloneRange(),r=window.getSelection();if((r?.rangeCount??0)>0&&r?.removeAllRanges(),r?.addRange(n),!n?.toString()&&t?.text&&r){let e=document.createTextNode(t.text),{anchorNode:i}=r;if(i instanceof HTMLElement){let t=i.lastElementChild;t&&t.tagName===`BR`?i.insertBefore(e,t):i.appendChild(e)}else if(i){let t=n.cloneRange();t.selectNodeContents(i),t.setEnd(n.endContainer,n.endOffset);let r=t.toString().length;i.parentElement?.insertBefore(e,i.splitText(r))}n.setStart(e,0),n.setEnd(e,t.text.length)}if(t){let e=n?.startContainer?.parentElement;e&&e.tagName===`A`?(e.setAttribute(`href`,t.link),e.textContent=t.text,(window.getSelection()?.getRangeAt(0))?.selectNodeContents(e)):document.execCommand(`createLink`,void 0,t.link)}},[]),o=(0,n.useMemo)(()=>({key:`link`,icon:J,onClick:()=>{let e=window.getSelection(),n=(e?.rangeCount??0)>0?e?.getRangeAt(0).commonAncestorContainer:null;t.current&&n&&t.current.contains(n)&&i(!0)},activeTest:e=>e.tagName===`A`}),[]);return{toolbarButtons:[ue,de,`vr`,fe,pe,me,Q,`vr`,o,(0,n.useMemo)(()=>({key:`unlink`,icon:ce,onClick:()=>{let t=e(o.activeTest);t&&(window.getSelection()?.getRangeAt(0).selectNodeContents(t),document.execCommand(`unlink`))}}),[e]),`vr`,he,ge],showLinkModal:r,handleLinkModalClose:a}}function $({className:e,md:r,html:i,disabled:a,onChange:s,...c}){let l=(0,t.useChildTestIdAttrBuilder)(c),{aggValue:u,editableDivInnerHtml:d,updateStateFromDiv:f}=R(r,i);n.useEffect(()=>{s&&u&&s(u)},[u]);let p=W(f);n.useEffect(()=>{d&&p.current&&(p.current.innerHTML=d.html)},[d]);let{selectionRange:m,selectionDOMContextFind:h}=ie(p),{toolbarButtons:g,showLinkModal:_,handleLinkModalClose:v}=_e(h,p),{height:y,minHeight:b}=c.style??{},x={};return y?x.height=`
2
- calc(
3
- ${y}
4
- - ${o.Tokens.component[`rich-text-editor`].vr.height}
5
- - (2 * ${o.Tokens.component[`rich-text-editor`].border.width})
6
- - (2 * ${o.Tokens.component[`rich-text-editor`].padding.input.y})
7
- )`:b&&(x.minHeight=`
8
- calc(
9
- ${b}
10
- - ${o.Tokens.component[`rich-text-editor`].vr.height}
11
- - (2 * ${o.Tokens.component[`rich-text-editor`].border.width})
12
- - (2 * ${o.Tokens.component[`rich-text-editor`].padding.input.y})
13
- )`),n.createElement(`div`,{className:(0,t.cl)(k({disabled:a}),e),...c},!a&&n.createElement(n.Fragment,null,n.createElement(`div`,{className:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1f3v2ss6`,...l(`toolbar`)},g.map((e,t)=>e===`vr`?n.createElement(`div`,{className:`pkg_sps-woodland_core__family_rich-text-editor__version_8_56_11__hash_1f3v2ss7`,key:`vr-${t}`}):n.createElement(re,{...e,selectionDOMContextFind:h,...l(`button-${e.key}`)}))),_&&n.createElement(w,{onClose:v,selectionDOMContextFind:h,selectionRange:m})),n.createElement(`div`,{className:A({disabled:a}),ref:p,contentEditable:!a,...l(`input`),style:x}))}t.Metadata.set($,{name:`RichTextEditor`,props:{md:`string`,html:`string`,disabled:{type:`boolean`,default:`false`},onChange:`(newValue: RichTextEditorAggregateValue) => void`}}),e.RichTextEditor=$});
@@ -1 +0,0 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@sps-woodland/core"),require("react")):typeof define==`function`&&define.amd?define([`exports`,`@sps-woodland/core`,`react`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.ScrollableContainer={},e.spsWoodlandCore,e.react))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e};n=((e,t,n)=>(n=e==null?{}:r(s(e)),l(t||!e||!e.__esModule||!c.call(e,`default`)?i(n,`default`,{value:e,enumerable:!0}):n,e)))(n,1);var u=`pkg_sps-woodland_core__family_scrollable-container__version_8_56_11__hash_xsjxqv0`;function d({children:e,className:r,maxHeight:i,style:a,...o}){return n.createElement(`div`,{className:(0,t.cl)(u,r),style:{...a,maxHeight:i},...o},e)}t.Metadata.set(d,{name:`ScrollableContainer`,props:{maxHeight:`string`}}),e.ScrollableContainer=d});
@@ -1 +0,0 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.SideNav={},e.react,e.spsWoodlandCore))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:r(s(e)),l(t||!e||!e.__esModule||!c.call(e,`default`)?i(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(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 f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?d(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},m=e=>t=>{var n=e.defaultClassName,r=f(f({},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)p(c,r,e.defaultVariants)&&(n+=` `+l);return n},h=`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70p0`,g=`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70p1`,_=`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70p2`,v=`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70p5`,y=`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70p7`,b=`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70p8`,x=m({defaultClassName:`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70p9`,variantClassNames:{selected:{true:`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70pa`,false:`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70pb`},inFilter:{true:`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70pc`,false:`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70pd`}},defaultVariants:{selected:!1,inFilter:!0},compoundVariants:[]}),S=`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70pf`,C=`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70pg`;function w({children:e,className:n,...r}){return t.createElement(`div`,{className:g,...r},t.createElement(`div`,{className:_},e))}n.Metadata.set(w,{name:`SideNavHeader`,props:{}});var T=(0,t.createContext)({filterValue:``,activeItem:``});function E({children:e,className:r,onSelect:i,as:a,keyId:o,selectableAsParent:s,defaultExpanded:c=!0,expanded:l,onExpandedChange:u,...d}){let f=a??`a`,[p,m]=(0,n.selectChildren)(e,[{type:E}]),[h,g]=t.useState(c),[_,v]=t.useState(!0),y=t.useContext(T),w=t.useRef(null),D=l!==void 0,O=y.filterValue.length>0?!0:l??h,k=e=>{D||g(e),u?.(e)},A={tabIndex:0,role:f===`a`&&d.href==null?`link`:void 0,onKeyDown:e=>{if(e.key!==`Enter`&&e.key!==` `)return;let t=e.currentTarget;t.tagName===`BUTTON`||t.tagName===`A`&&t.hasAttribute(`href`)||(e.preventDefault(),t.click())}};return t.useEffect(()=>{v(w.current?.innerText.toLowerCase().includes(y.filterValue.toLowerCase())||!1),y.filterValue.length>0&&!D&&g(!0)},[y]),t.createElement(t.Fragment,null,p.length?t.createElement(`ul`,{className:b},t.createElement(`li`,{ref:w,className:x({selected:s&&y.activeItem===o,inFilter:_}),onClick:()=>{i&&s?i(o):i&&!s&&k(!O)}},t.createElement(f,{className:C,...A,...d},t.createElement(`div`,null,t.createElement(n.Icon,{className:S,icon:O?`chevron-down`:`chevron-right`,onClick:()=>{k(!O)}})),m)),O&&p):t.createElement(`li`,{ref:w,className:x({selected:y.activeItem===o,inFilter:_})},t.createElement(f,{className:C,onClick:()=>{i&&i(o)},...A,...d},e)))}n.Metadata.set(E,{name:`SideNavItem`,props:{keyId:{type:`string`,required:!0},onSelect:{type:`function`},selectableAsParent:{type:`boolean`},defaultExpanded:{type:`boolean`},expanded:{type:`boolean`},onExpandedChange:{type:`function`},as:{type:`string`}}});function D({children:e,className:r,title:i,onSelect:a,...o}){let[s,c]=(0,n.selectChildren)(e,[{type:E}]),l=(0,n.modChildren)(s,e=>e.type===E?[{onSelect:a?e=>a(e):()=>{}}]:[]);return t.createElement(`div`,{className:v,...o},i&&t.createElement(`div`,{className:`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70p6`},i),t.createElement(`ul`,{className:y},l),c)}n.Metadata.set(D,{name:`SideNavSection`,props:{title:{type:`string`}}});function O({children:e,className:r,activeNavItem:i,onChange:a,filterable:o,filterInputPlaceholder:s,...c}){let[l,u,d]=(0,n.selectChildren)(e,[{type:w},{type:D},{type:E}]),f=t.useRef(i),[p,m]=t.useState(i),[g,_]=t.useState(``),v=e=>{m(e),a&&a(e)},b=(0,n.modChildren)(d,e=>e.type===E?[{onSelect:e=>v(e)}]:[]),x=(0,n.modChildren)(u,e=>e.type===D?[{onSelect:e=>v(e)}]:[]);return i!==f.current&&(m(i),f.current=i),t.createElement(T.Provider,{value:{filterValue:g,activeItem:p}},t.createElement(`div`,{className:(0,n.cl)(h),...c},l,o&&t.createElement(`div`,{className:`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70p3`},t.createElement(`div`,{className:`pkg_sps-woodland_core__family_side-nav__version_8_56_11__hash_1wtt70p4`},t.createElement(`div`,{className:`sps-text-input`},t.createElement(`div`,{className:`sps-form-control`},t.createElement(`i`,{className:`sps-text-input__icon sps-icon sps-icon-filter`}),t.createElement(`input`,{type:`text`,className:`sps-text-input__input`,placeholder:s,onChange:e=>{_(e.target.value)}}))))),x,t.createElement(`ul`,{className:y},b)))}n.Metadata.set(O,{name:`SideNav`,props:{activeNavItem:{type:`string`,required:!0},onChange:{type:`(keyId: string) => void`},filterable:{type:`boolean`},filterInputPlaceholder:{type:`string`}}}),e.SideNav=O,e.SideNavHeader=w,e.SideNavItem=E,e.SideNavSection=D});
@@ -1 +0,0 @@
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_11__hash_ax8xqf0`,variantClassNames:{up:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_ax8xqf1`},down:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_ax8xqf2`}},defaultVariants:{},compoundVariants:[]}),v=g({defaultClassName:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_11ho8id0`,variantClassNames:{disabled:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_11ho8id1`},active:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_11ho8id2`},__autoLayout:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_11ho8id3`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_11ho8id4`}},defaultVariants:{disabled:!1,active:!1,__autoLayout:!1},compoundVariants:[]}),y=`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_11ho8id5`,b=`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__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_11__hash_1jpcvsu0`,variantClassNames:{pinned:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_1jpcvsu1`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_1jpcvsu2`},scrollParentIsWindow:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_1jpcvsu3`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_1jpcvsu4`},__autoLayout:{true:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_1jpcvsu5`,false:`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_1jpcvsu6`}},defaultVariants:{pinned:!1,scrollParentIsWindow:!1,__autoLayout:!1},compoundVariants:[[{pinned:!0,scrollParentIsWindow:!0},`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__hash_1jpcvsu7`]]}),C=`pkg_sps-woodland_core__family_sorting-header__version_8_56_11__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 +0,0 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@react-stately/tabs"),require("@react-aria/tabs"),require("@sps-woodland/core")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@react-stately/tabs`,`@react-aria/tabs`,`@sps-woodland/core`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.Tabs={},e.react,e.reactStatelyTabs,e.reactAriaTabs,e.spsWoodlandCore))})(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_tabs__version_8_56_11__hash_p40u540`,variantClassNames:{context:{container:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u541`,navigation:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u542`},active:{true:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u543`,false:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u544`},disabled:{true:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u545`,false:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u546`}},defaultVariants:{},compoundVariants:[[{context:`container`,active:!0},`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u547`],[{context:`container`,active:!1},`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u548`],[{context:`container`,active:!1,disabled:!1},`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u549`],[{context:`navigation`,active:!0},`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54a`],[{context:`navigation`,active:!1},`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54b`],[{context:`navigation`,active:!1,disabled:!1},`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54c`],[{context:`navigation`,active:!1,disabled:!0},`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54d`]]}),v=g({defaultClassName:``,variantClassNames:{active:{true:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54e`,false:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54f`},disabled:{true:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54g`,false:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54h`},context:{navigation:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54i`,container:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54j`}},defaultVariants:{},compoundVariants:[[{context:`navigation`,active:!0},`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_p40u54k`]]});function y({context:e,item:n,state:a,...o}){let{key:s}=n,c=t.useRef(null),{tabProps:l}=(0,r.useTab)({key:s},a,c),u=a.selectedKey===s,d=a.disabledKeys.has(s),f=(0,i.modChildren)(n.rendered,t=>t.type.displayName===`SpsTag`||i.Metadata.isWoodlandComponent(t.type)&&i.Metadata.get(t.type).name===`Tag`?[{className:(0,i.cl)(t.props.className,v({active:u,disabled:d,context:e}))}]:[{}]);return t.createElement(`div`,{...l,ref:c,className:_({active:u,disabled:d,context:e}),...o},f)}i.Metadata.set(y,{name:`Tab`});var b=`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_1mdnm0k1`,x=g({defaultClassName:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_1mdnm0k5 pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_1mdnm0k0`,variantClassNames:{context:{container:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_1mdnm0k6`,navigation:`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_1mdnm0k7`}},defaultVariants:{},compoundVariants:[]}),S=`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_1mdnm0k8`;function C({context:e,"data-testid":n,state:a,...o}){let s=t.useRef(null),{tabPanelProps:c}=(0,r.useTabPanel)(o,a,s),l=e===`container`?i.Content:`div`;return t.createElement(l,{...c,ref:s,className:S,"data-testid":n},a.selectedItem?a.selectedItem.props.children:null)}i.Metadata.set(C,{name:`TabPanel`});var w=.75;function T({className:e,context:a=`navigation`,"data-testid":o,selectedKey:s,defaultSelectedKey:c,...l}){let u={...l,selectedKey:s??void 0,defaultSelectedKey:c??void 0},d=(0,n.useTabListState)(u),f=t.useRef(null),{tabListProps:p}=(0,r.useTabList)(u,d,f),m=(0,i.useChildTestIdAttrBuilder)({"data-testid":o}),h=a===`container`,[g,_]=t.useState(!1),[v,S]=t.useState(!1),T=t.useCallback(()=>{let e=f.current;if(!e)return;let t=e.scrollWidth-e.clientWidth;_(e.scrollLeft>1),S(t-e.scrollLeft>1)},[]);t.useEffect(()=>{let e=f.current;if(!e)return;T(),e.addEventListener(`scroll`,T,{passive:!0});let t=new ResizeObserver(T);return t.observe(e),()=>{e.removeEventListener(`scroll`,T),t.disconnect()}},[T]);let E=e=>{let t=f.current;if(!t)return;let n=t.clientWidth*w;t.scrollBy({left:e===`left`?-n:n,behavior:`smooth`})},D=t.useCallback(()=>{let e=f.current;if(!e)return;let t=e.querySelector(`[aria-selected="true"]`);if(!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=e.scrollLeft>1,a=e.scrollWidth-e.clientWidth-e.scrollLeft>1,o=n.left+(i?39:0),s=n.right-(a?39:0);r.left<o?e.scrollBy({left:r.left-(n.left+39),behavior:`smooth`}):r.right>s&&e.scrollBy({left:r.right-(n.right-39),behavior:`smooth`})},[]);t.useEffect(()=>{D()},[d.selectedKey,D]);let O=()=>{requestAnimationFrame(()=>D())};return t.createElement(t.Fragment,null,t.createElement(`div`,{className:b,"data-testid":o},h&&g&&t.createElement(`button`,{"aria-label":`Show previous tabs`,title:`Show previous tabs`,className:(0,i.cl)(`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_1mdnm0k2`,`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_1mdnm0k3`),"data-side":`left`,onClick:()=>E(`left`),type:`button`},t.createElement(i.Icon,{icon:`chevron-left`,size:`sm`,"aria-hidden":`true`})),t.createElement(`div`,{...p,ref:f,className:(0,i.cl)(x({context:a}),e),onClickCapture:O},[...d.collection].map(e=>t.createElement(y,{key:e.key,item:e,state:d,context:a,...m(`tab-${String(e.key)}`)}))),h&&v&&t.createElement(`button`,{"aria-label":`Show more tabs`,title:`Show more tabs`,className:(0,i.cl)(`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_1mdnm0k2`,`pkg_sps-woodland_core__family_tabs__version_8_56_11__hash_1mdnm0k4`),onClick:()=>E(`right`),type:`button`},t.createElement(i.Icon,{icon:`chevron-right`,size:`sm`,"aria-hidden":`true`}))),t.createElement(C,{key:d.selectedItem?d.selectedItem.key:null,state:d,context:a,...m(`tab-panel`)}))}i.Metadata.set(T,{name:`Tabs`}),e.Tab=y,e.TabPanel=C,e.Tabs=T});
@@ -1 +0,0 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core"),require("@spscommerce/i18n")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`,`@spscommerce/i18n`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.Tags={},e.react,e.spsWoodlandCore,e.spscommerceI18n))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:i(c(e)),u(t||!e||!e.__esModule||!l.call(e,`default`)?a(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?f(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},h=e=>t=>{var n=e.defaultClassName,r=p(p({},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)m(c,r,e.defaultVariants)&&(n+=` `+l);return n},g=h({defaultClassName:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2r0`,variantClassNames:{kind:{default:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2r1`,key:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2r2`,warning:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2r3`,error:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2r4`,pending:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2r5`,success:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2r6`,info:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2r7`},wrap:{true:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2r8`,false:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2r9`}},defaultVariants:{kind:`default`,wrap:!1},compoundVariants:[]}),_=h({defaultClassName:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2ra`,variantClassNames:{kind:{default:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2rb`,key:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2rc`,warning:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2rd`,error:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2re`,pending:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2rf`,success:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2rg`,info:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2rh`,custom:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_k59j2ri`}},defaultVariants:{kind:`default`},compoundVariants:[]}),v=Object.freeze({default:`info-circle`,key:`info-circle`,warning:`status-warning`,error:`status-error`,pending:`status-in-process`,success:`status-ok`,info:`info-circle`});function y({children:e,className:r,kind:i=`default`,icon:a,wrap:o,...s}){let c=typeof a==`string`,l=a&&c?a:a?v[i]:void 0;return t.createElement(`span`,{className:(0,n.cl)(g({kind:i,wrap:o}),r),...s},l&&t.createElement(n.Icon,{className:(0,n.cl)(_({kind:c?`custom`:i})),icon:l}),e)}n.Metadata.set(y,{name:`Tag`,props:{kind:{type:`TagKind`,default:`default`},icon:{type:`boolean | IconName`,default:`false`},wrap:{type:`boolean`,default:`false`}}});var b=h({defaultClassName:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu50`,variantClassNames:{kind:{blue:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu51`,gray:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu52`},disabled:{true:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu53`,false:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu54`},wrap:{true:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu55`,false:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu56`}},defaultVariants:{kind:`blue`,disabled:!1,wrap:!1},compoundVariants:[]}),x=h({defaultClassName:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu57`,variantClassNames:{link:{true:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu58`,false:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu59`},wrap:{true:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5a`,false:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5b`},disabled:{true:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5c`,false:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5d`},addOrRemove:{true:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5e`,false:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5f`}},defaultVariants:{link:!1,wrap:!1,disabled:!1,addOrRemove:!1},compoundVariants:[[{disabled:!1,wrap:!1,addOrRemove:!0},`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5g`]]}),S=h({defaultClassName:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5h`,variantClassNames:{wrap:{true:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5i`,false:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5j`}},defaultVariants:{wrap:!1},compoundVariants:[]}),C=`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5l`;function w({children:e,className:i,onClick:a,disabled:o,wrap:s,href:c,target:l,kind:u,onAdd:d,onRemove:f,...p}){let{t:m}=(0,r.useWoodlandLanguage)(),h=t.Children.toArray(e).filter(e=>typeof e==`string`).join(``);t.useEffect(()=>{if(f&&d)throw Error(`Clickable tag should have onRemove or onAdd, not both`)},[d,f]);function g(e){d?d():f&&f(),e.stopPropagation()}function _(e){e.stopPropagation(),o?e.preventDefault():a&&a(e)}let v=!!a&&!c;function y(e){o||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),e.currentTarget.click())}return t.createElement(`div`,{className:(0,n.cl)(b({kind:u,disabled:o,wrap:s}),i),...p},t.createElement(`span`,{className:(0,n.cl)(x({link:!!c||!!a,disabled:o,wrap:s,addOrRemove:d||f})),onClick:_,title:h,...v?{role:`button`,tabIndex:o?void 0:0,"aria-disabled":o||void 0,onKeyDown:y}:{}},c?t.createElement(`a`,{className:C,href:c,target:l},e):e),(d||f)&&!o&&t.createElement(`div`,{className:(0,n.cl)(S({wrap:s})),role:`button`,onClick:g,onKeyDown:y,tabIndex:0,"aria-label":d?`${m(`clickableTag.add`,{elementName:h,defaultValue:`Add ${h}`})}`:`${m(`clickableTag.remove`,{elementName:h,defaultValue:`Remove ${h}`})}`},t.createElement(n.Icon,{className:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_1avalu5k`,"aria-hidden":`true`,icon:d?`plus-sign`:`x`})))}n.Metadata.set(w,{name:`Clickable Tag`,props:{disabled:{type:`boolean`,default:`false`},wrap:{type:`boolean`,default:`false`},href:{type:`string`},target:{type:`'_blank' | '_self' | '_parent' | '_top'`},kind:{type:`ClickableTagKind`,default:`blue`},onAdd:{type:`() => void`},onRemove:{type:`() => void`}}});var T=h({defaultClassName:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrf0`,variantClassNames:{wrap:{true:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrf1`,false:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrf2`}},defaultVariants:{wrap:!1},compoundVariants:[]}),E=`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrf3`,D=h({defaultClassName:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrf5`,variantClassNames:{href:{true:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrf6`,false:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrf7`},kind:{default:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrf8`,key:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrf9`,warning:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrfa`,error:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrfb`,pending:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrfc`,success:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrfd`,info:`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrfe`}},defaultVariants:{href:!1,kind:`default`},compoundVariants:[]}),O=`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrff`;function k({children:e,className:r,color:i=`default`,href:a,target:o,icon:s,tagKey:c,value:l,wrap:u=!1,...d}){return t.createElement(`span`,{className:(0,n.cl)(T({wrap:u}),r),...d},t.createElement(y,{className:(0,n.cl)(E),icon:s,kind:i,wrap:u},c&&t.createElement(`span`,{className:(0,n.cl)(`pkg_sps-woodland_core__family_tags__version_8_56_11__hash_16xtnrf4`)},c)),t.createElement(y,{className:(0,n.cl)(D({href:!!a,kind:i})),wrap:u},a?t.createElement(`a`,{className:O,href:a,target:o},l):l))}n.Metadata.set(k,{name:`Split Tag`,props:{color:{type:`TagKind`,default:`key`},href:{type:`string`},target:{type:`'_blank' | '_self' | '_parent' | '_top'`},icon:{type:`boolean | IconName`,default:`false`},tagKey:{type:`string`,required:!0},value:{type:`string`,required:!0}}}),e.ClickableTag=w,e.SplitTag=k,e.Tag=y,e.TagIcons=v});
@@ -1 +0,0 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/illustrations")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`,`@sps-woodland/illustrations`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.ZeroState={},e.react,e.spsWoodlandCore,e.spsWoodlandIllustrations))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:i(c(e)),u(t||!e||!e.__esModule||!l.call(e,`default`)?a(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?f(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},h=e=>t=>{var n=e.defaultClassName,r=p(p({},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)m(c,r,e.defaultVariants)&&(n+=` `+l);return n},g=h({defaultClassName:`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luu0`,variantClassNames:{micro:{true:`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luu1`,false:`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luu2`}},defaultVariants:{},compoundVariants:[]}),_=h({defaultClassName:`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luu3`,variantClassNames:{micro:{true:`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luu4`,false:`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luu5`}},defaultVariants:{micro:!1},compoundVariants:[]}),v=`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luu6`,y=h({defaultClassName:`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luu7`,variantClassNames:{micro:{true:`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luu8`,false:`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luu9`}},defaultVariants:{micro:!1},compoundVariants:[]}),b=`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luub`,x=`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luuc`;function S({artwork:e,heading:i,illustration:a,subHeading:o,micro:s=!1,children:c,className:l,icon:u,...d}){let f=a||e||r.BUILDING_LARGE;return t.createElement(`div`,{className:g({micro:s})},t.createElement(`div`,{className:(0,n.cl)(_({micro:s}),l),...d},s?t.createElement(t.Fragment,null,u?t.createElement(n.Icon,{className:x,icon:u,"aria-hidden":`true`}):t.createElement(`img`,{style:{height:`3rem`},src:f})):t.createElement(`img`,{className:v,src:f,alt:``}),i&&(typeof i==`string`?t.createElement(`h1`,{className:y({micro:s})},i):(0,n.contentOf)(i)),o&&(typeof o==`string`?t.createElement(`h2`,{className:`pkg_sps-woodland_core__family_zero-state__version_8_56_11__hash_sa7luua`},o):(0,n.contentOf)(o)),t.createElement(`div`,{className:b},c)))}n.Metadata.set(S,{name:`ZeroState`,props:{artwork:{type:`string`},heading:{type:`string | ReactNodeOrRenderFn`},illustration:{type:`string`},subHeading:{type:`string | ReactNodeOrRenderFn`},micro:{type:`boolean`,default:`false`}}}),e.ZeroState=S});
@@ -1,43 +0,0 @@
1
- /**
2
- * Vite config for building action-bar CSS separately.
3
- */
4
- import path from "node:path";
5
- import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
6
- import { defineConfig } from "vite";
7
- import pkg from "./package.json" with { type: "json" };
8
- import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
9
- import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
10
-
11
- const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
12
-
13
- export default defineConfig(
14
- withOutputGlobals({
15
- plugins: [
16
- vanillaExtractPlugin(
17
- getVanillaExtractPluginProps({
18
- packageName: pkg.name,
19
- packageVersion,
20
- })
21
- ),
22
- ],
23
- build: {
24
- lib: {
25
- entry: path.resolve(__dirname, "src/action-bar/index.ts"),
26
- name: "ActionBar",
27
- fileName: "index",
28
- cssFileName: "style",
29
- },
30
- outDir: path.resolve(__dirname, "./lib/action-bar"),
31
- emptyOutDir: false,
32
- rollupOptions: {
33
- external: [
34
- ...Object.keys(pkg.peerDependencies || {}),
35
- /^@sps-woodland\//,
36
- /^@spscommerce\//,
37
- /^react/,
38
- /^react-dom/,
39
- ],
40
- },
41
- },
42
- })
43
- );
@@ -1,43 +0,0 @@
1
- /**
2
- * Vite config for building add-to-list CSS separately.
3
- */
4
- import path from "node:path";
5
- import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
6
- import { defineConfig } from "vite";
7
- import pkg from "./package.json" with { type: "json" };
8
- import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
9
- import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
10
-
11
- const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
12
-
13
- export default defineConfig(
14
- withOutputGlobals({
15
- plugins: [
16
- vanillaExtractPlugin(
17
- getVanillaExtractPluginProps({
18
- packageName: pkg.name,
19
- packageVersion,
20
- })
21
- ),
22
- ],
23
- build: {
24
- lib: {
25
- entry: path.resolve(__dirname, "src/add-to-list/index.ts"),
26
- name: "AddToList",
27
- fileName: "index",
28
- cssFileName: "style",
29
- },
30
- outDir: path.resolve(__dirname, "./lib/add-to-list"),
31
- emptyOutDir: false,
32
- rollupOptions: {
33
- external: [
34
- ...Object.keys(pkg.peerDependencies || {}),
35
- /^@sps-woodland\//,
36
- /^@spscommerce\//,
37
- /^react/,
38
- /^react-dom/,
39
- ],
40
- },
41
- },
42
- })
43
- );
@@ -1,44 +0,0 @@
1
- /**
2
- * Vite config for building buttons CSS separately.
3
- */
4
- import path from "node:path";
5
- import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
6
- import { defineConfig } from "vite";
7
- import pkg from "./package.json" with { type: "json" };
8
- import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
9
- import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
10
-
11
- const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
12
-
13
- export default defineConfig(
14
- withOutputGlobals({
15
- plugins: [
16
- vanillaExtractPlugin(
17
- getVanillaExtractPluginProps({
18
- packageName: pkg.name,
19
- packageVersion,
20
- })
21
- ),
22
- ],
23
- build: {
24
- lib: {
25
- entry: path.resolve(__dirname, "src/buttons/index.ts"),
26
- name: "Buttons",
27
- fileName: "index",
28
- cssFileName: "style",
29
- },
30
- outDir: path.resolve(__dirname, "./lib/buttons"),
31
- emptyOutDir: false,
32
- rollupOptions: {
33
- external: [
34
- ...Object.keys(pkg.peerDependencies || {}),
35
- /^@sps-woodland\//,
36
- /^@spscommerce\//,
37
- /^@react-aria\//,
38
- /^react/,
39
- /^react-dom/,
40
- ],
41
- },
42
- },
43
- })
44
- );
@@ -1,43 +0,0 @@
1
- /**
2
- * Vite config for building cards CSS separately.
3
- */
4
- import path from "node:path";
5
- import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
6
- import { defineConfig } from "vite";
7
- import pkg from "./package.json" with { type: "json" };
8
- import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
9
- import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
10
-
11
- const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
12
-
13
- export default defineConfig(
14
- withOutputGlobals({
15
- plugins: [
16
- vanillaExtractPlugin(
17
- getVanillaExtractPluginProps({
18
- packageName: pkg.name,
19
- packageVersion,
20
- })
21
- ),
22
- ],
23
- build: {
24
- lib: {
25
- entry: path.resolve(__dirname, "src/cards/index.ts"),
26
- name: "Cards",
27
- fileName: "index",
28
- cssFileName: "style",
29
- },
30
- outDir: path.resolve(__dirname, "./lib/cards"),
31
- emptyOutDir: false,
32
- rollupOptions: {
33
- external: [
34
- ...Object.keys(pkg.peerDependencies || {}),
35
- /^@sps-woodland\//,
36
- /^@spscommerce\//,
37
- /^react/,
38
- /^react-dom/,
39
- ],
40
- },
41
- },
42
- })
43
- );
@@ -1,43 +0,0 @@
1
- /**
2
- * Vite config for building content-row CSS separately.
3
- */
4
- import path from "node:path";
5
- import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
6
- import { defineConfig } from "vite";
7
- import pkg from "./package.json" with { type: "json" };
8
- import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
9
- import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
10
-
11
- const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
12
-
13
- export default defineConfig(
14
- withOutputGlobals({
15
- plugins: [
16
- vanillaExtractPlugin(
17
- getVanillaExtractPluginProps({
18
- packageName: pkg.name,
19
- packageVersion,
20
- })
21
- ),
22
- ],
23
- build: {
24
- lib: {
25
- entry: path.resolve(__dirname, "src/content-row/index.ts"),
26
- name: "ContentRow",
27
- fileName: "index",
28
- cssFileName: "style",
29
- },
30
- outDir: path.resolve(__dirname, "./lib/content-row"),
31
- emptyOutDir: false,
32
- rollupOptions: {
33
- external: [
34
- ...Object.keys(pkg.peerDependencies || {}),
35
- /^@sps-woodland\//,
36
- /^@spscommerce\//,
37
- /^react/,
38
- /^react-dom/,
39
- ],
40
- },
41
- },
42
- })
43
- );
@@ -1,43 +0,0 @@
1
- /**
2
- * Vite config for building content-tiles CSS separately.
3
- */
4
- import path from "node:path";
5
- import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
6
- import { defineConfig } from "vite";
7
- import pkg from "./package.json" with { type: "json" };
8
- import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
9
- import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
10
-
11
- const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
12
-
13
- export default defineConfig(
14
- withOutputGlobals({
15
- plugins: [
16
- vanillaExtractPlugin(
17
- getVanillaExtractPluginProps({
18
- packageName: pkg.name,
19
- packageVersion,
20
- })
21
- ),
22
- ],
23
- build: {
24
- lib: {
25
- entry: path.resolve(__dirname, "src/content-tiles/index.ts"),
26
- name: "ContentTiles",
27
- fileName: "index",
28
- cssFileName: "style",
29
- },
30
- outDir: path.resolve(__dirname, "./lib/content-tiles"),
31
- emptyOutDir: false,
32
- rollupOptions: {
33
- external: [
34
- ...Object.keys(pkg.peerDependencies || {}),
35
- /^@sps-woodland\//,
36
- /^@spscommerce\//,
37
- /^react/,
38
- /^react-dom/,
39
- ],
40
- },
41
- },
42
- })
43
- );
@@ -1,44 +0,0 @@
1
- /**
2
- * Vite config for building dropdowns CSS separately.
3
- */
4
- import path from "node:path";
5
- import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
6
- import { defineConfig } from "vite";
7
- import pkg from "./package.json" with { type: "json" };
8
- import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
9
- import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
10
-
11
- const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
12
-
13
- export default defineConfig(
14
- withOutputGlobals({
15
- plugins: [
16
- vanillaExtractPlugin(
17
- getVanillaExtractPluginProps({
18
- packageName: pkg.name,
19
- packageVersion,
20
- })
21
- ),
22
- ],
23
- build: {
24
- lib: {
25
- entry: path.resolve(__dirname, "src/dropdowns/index.ts"),
26
- name: "Dropdowns",
27
- fileName: "index",
28
- cssFileName: "style",
29
- },
30
- outDir: path.resolve(__dirname, "./lib/dropdowns"),
31
- emptyOutDir: false,
32
- rollupOptions: {
33
- external: [
34
- ...Object.keys(pkg.peerDependencies || {}),
35
- /^@sps-woodland\//,
36
- /^@spscommerce\//,
37
- /^@ariakit\//,
38
- /^react/,
39
- /^react-dom/,
40
- ],
41
- },
42
- },
43
- })
44
- );
@@ -1,71 +0,0 @@
1
- /**
2
- * Vite config for building editable-table CSS separately.
3
- *
4
- * Unlike every other family in core, editable-table uses a plain .css file
5
- * (not vanilla-extract). It needs postcss-import to inline the
6
- * `@import url("handsontable/styles/handsontable.min.css")` reference so that
7
- * consumers get a single self-contained stylesheet.
8
- *
9
- * The main subpaths build (vite.subpaths.config.mjs) emits the JS
10
- * (`lib/editable-table/index.js`). This config emits the bundled stylesheet
11
- * (`lib/editable-table/style.css`) via a writeBundle plugin — mirrors the
12
- * pattern the original @sps-woodland/core family used.
13
- */
14
- import path from "node:path";
15
- import fs from "node:fs";
16
- import { defineConfig } from "vite";
17
- import pkg from "./package.json" with { type: "json" };
18
- import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
19
-
20
- const SRC_CSS = path.resolve(__dirname, "src/editable-table/EditableTable.css");
21
- const OUT_DIR = path.resolve(__dirname, "lib/editable-table");
22
- const OUT_CSS = path.join(OUT_DIR, "style.css");
23
- const NOOP_OUT = path.resolve(__dirname, "lib/_editable-table-css-driver");
24
-
25
- export default defineConfig(
26
- withOutputGlobals({
27
- plugins: [
28
- {
29
- name: "process-editable-table-css",
30
- async writeBundle() {
31
- const postcss = (await import("postcss")).default;
32
- const postcssImport = (await import("postcss-import")).default;
33
-
34
- const css = await fs.promises.readFile(SRC_CSS, "utf8");
35
- const result = await postcss([postcssImport()]).process(css, {
36
- from: SRC_CSS,
37
- to: OUT_CSS,
38
- });
39
-
40
- await fs.promises.mkdir(OUT_DIR, { recursive: true });
41
- await fs.promises.writeFile(OUT_CSS, result.css);
42
- await fs.promises.rm(NOOP_OUT, { recursive: true, force: true });
43
- },
44
- },
45
- ],
46
- build: {
47
- // Vite requires a JS build target; we drive the writeBundle plugin via a
48
- // throwaway entry pointed at the barrel. The emitted JS is deleted after
49
- // the CSS is written above — the real JS comes from vite.subpaths.config.mjs.
50
- lib: {
51
- entry: path.resolve(__dirname, "src/editable-table/index.ts"),
52
- name: "EditableTableCssDriver",
53
- fileName: "_driver",
54
- formats: ["es"],
55
- },
56
- outDir: NOOP_OUT,
57
- emptyOutDir: true,
58
- rollupOptions: {
59
- external: [
60
- ...Object.keys(pkg.peerDependencies || {}),
61
- /^@sps-woodland\//,
62
- /^@spscommerce\//,
63
- /^@handsontable\//,
64
- /^handsontable/,
65
- /^react/,
66
- /^react-dom/,
67
- ],
68
- },
69
- },
70
- })
71
- );
@@ -1,43 +0,0 @@
1
- /**
2
- * Vite config for building feedback-block CSS separately.
3
- */
4
- import path from "node:path";
5
- import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
6
- import { defineConfig } from "vite";
7
- import pkg from "./package.json" with { type: "json" };
8
- import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
9
- import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
10
-
11
- const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
12
-
13
- export default defineConfig(
14
- withOutputGlobals({
15
- plugins: [
16
- vanillaExtractPlugin(
17
- getVanillaExtractPluginProps({
18
- packageName: pkg.name,
19
- packageVersion,
20
- })
21
- ),
22
- ],
23
- build: {
24
- lib: {
25
- entry: path.resolve(__dirname, "src/feedback-block/index.ts"),
26
- name: "FeedbackBlock",
27
- fileName: "index",
28
- cssFileName: "style",
29
- },
30
- outDir: path.resolve(__dirname, "./lib/feedback-block"),
31
- emptyOutDir: false,
32
- rollupOptions: {
33
- external: [
34
- ...Object.keys(pkg.peerDependencies || {}),
35
- /^@sps-woodland\//,
36
- /^@spscommerce\//,
37
- /^react/,
38
- /^react-dom/,
39
- ],
40
- },
41
- },
42
- })
43
- );