@sps-woodland/core 8.55.2 → 8.56.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/lib/action-bar/action-bar/ActionBar.ve.js +1 -1
  2. package/lib/action-bar/index.js +1 -1
  3. package/lib/action-bar/index.umd.cjs +1 -1
  4. package/lib/action-bar/style.css +1 -1
  5. package/lib/add-to-list/add-to-list/AddToList.ve.js +1 -1
  6. package/lib/add-to-list/index.js +1 -1
  7. package/lib/add-to-list/index.umd.cjs +1 -1
  8. package/lib/add-to-list/style.css +1 -1
  9. package/lib/buttons/button/Button.ve.js +1 -1
  10. package/lib/buttons/index.js +1 -1
  11. package/lib/buttons/index.umd.cjs +1 -1
  12. package/lib/buttons/style.css +1 -1
  13. package/lib/cards/card/Card.ve.js +1 -1
  14. package/lib/cards/card-footer/CardFooter.ve.js +1 -1
  15. package/lib/cards/card-header/CardHeader.ve.js +1 -1
  16. package/lib/cards/card-title/CardTitle.ve.js +1 -1
  17. package/lib/cards/index.js +4 -4
  18. package/lib/cards/index.umd.cjs +1 -1
  19. package/lib/cards/style.css +1 -1
  20. package/lib/components/icon/Icon.ve.js +1 -1
  21. package/lib/content-row/content-row/ContentRow.ve.js +1 -1
  22. package/lib/content-row/content-row-col/ContentRowCol.ve.js +1 -1
  23. package/lib/content-row/index.js +3 -3
  24. package/lib/content-row/index.umd.cjs +1 -1
  25. package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +1 -1
  26. package/lib/content-row/style.css +1 -1
  27. package/lib/content-tiles/content-tile/ContentTile.ve.js +1 -1
  28. package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
  29. package/lib/content-tiles/index.js +2 -2
  30. package/lib/content-tiles/index.umd.cjs +1 -1
  31. package/lib/content-tiles/style.css +1 -1
  32. package/lib/core.css +1 -1
  33. package/lib/dropdowns/dropdown/Dropdown.ve.js +1 -1
  34. package/lib/dropdowns/index.js +3 -3
  35. package/lib/dropdowns/index.umd.cjs +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 +1 -1
  39. package/lib/feedback-block/FeedbackBlock.ve.js +1 -1
  40. package/lib/feedback-block/index.js +1 -1
  41. package/lib/feedback-block/index.umd.cjs +1 -1
  42. package/lib/feedback-block/style.css +1 -1
  43. package/lib/file-upload/file-upload/FileUpload.ve.js +1 -1
  44. package/lib/file-upload/index.js +1 -1
  45. package/lib/file-upload/index.umd.cjs +1 -1
  46. package/lib/file-upload/style.css +1 -1
  47. package/lib/filter-tiles/filter-tile/FilterTile.ve.js +1 -1
  48. package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
  49. package/lib/filter-tiles/index.js +2 -2
  50. package/lib/filter-tiles/index.umd.cjs +1 -1
  51. package/lib/filter-tiles/style.css +1 -1
  52. package/lib/focused-task/focused-task/FocusedTask.ve.js +1 -1
  53. package/lib/focused-task/index.js +1 -1
  54. package/lib/focused-task/index.umd.cjs +1 -1
  55. package/lib/focused-task/style.css +1 -1
  56. package/lib/growler/Growler.ve.js +1 -1
  57. package/lib/growler/Sonner.ve.js +1 -1
  58. package/lib/growler/index.js +2 -2
  59. package/lib/growler/index.umd.cjs +1 -1
  60. package/lib/growler/style.css +1 -1
  61. package/lib/index.js +8 -8
  62. package/lib/index.umd.cjs +1 -1
  63. package/lib/insight-card/InsightCard.ve.js +1 -1
  64. package/lib/insight-card/index.js +1 -1
  65. package/lib/insight-card/index.umd.cjs +1 -1
  66. package/lib/insight-card/style.css +1 -1
  67. package/lib/key-value-set/index.js +2 -2
  68. package/lib/key-value-set/index.umd.cjs +1 -1
  69. package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +1 -1
  70. package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +1 -1
  71. package/lib/key-value-set/style.css +1 -1
  72. package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +1 -1
  73. package/lib/list-bar/index.js +3 -3
  74. package/lib/list-bar/index.umd.cjs +1 -1
  75. package/lib/list-bar/list-bar/ListBar.ve.js +1 -1
  76. package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -1
  77. package/lib/list-bar/style.css +1 -1
  78. package/lib/matrix/index.js +1 -1
  79. package/lib/matrix/index.umd.cjs +1 -1
  80. package/lib/matrix/matrix/Matrix.ve.js +1 -1
  81. package/lib/matrix/style.css +1 -1
  82. package/lib/modal/index.js +1 -1
  83. package/lib/modal/index.umd.cjs +1 -1
  84. package/lib/modal/modal/Modal.ve.js +1 -1
  85. package/lib/modal/style.css +1 -1
  86. package/lib/page-title/heading-level/HeadingLevel.d.ts +9 -0
  87. package/lib/page-title/heading-level/HeadingLevel.d.ts.map +1 -0
  88. package/lib/page-title/heading-level/HeadingLevel.js +15 -0
  89. package/lib/page-title/index.d.ts +1 -0
  90. package/lib/page-title/index.d.ts.map +1 -1
  91. package/lib/page-title/index.js +35 -22
  92. package/lib/page-title/index.umd.cjs +1 -1
  93. package/lib/page-title/page-subtitle/PageSubtitle.js +6 -6
  94. package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
  95. package/lib/page-title/page-title/PageTitle.css.d.ts +1 -0
  96. package/lib/page-title/page-title/PageTitle.css.d.ts.map +1 -1
  97. package/lib/page-title/page-title/PageTitle.d.ts +9 -1
  98. package/lib/page-title/page-title/PageTitle.d.ts.map +1 -1
  99. package/lib/page-title/page-title/PageTitle.js +13 -10
  100. package/lib/page-title/page-title/PageTitle.ve.js +2 -1
  101. package/lib/page-title/style.css +1 -1
  102. package/lib/photo/index.js +2 -2
  103. package/lib/photo/index.umd.cjs +1 -1
  104. package/lib/photo/photo/Photo.ve.js +1 -1
  105. package/lib/photo/photo-carousel/PhotoCarousel.ve.js +1 -1
  106. package/lib/photo/style.css +1 -1
  107. package/lib/product-bar/index.js +115 -100
  108. package/lib/product-bar/index.umd.cjs +1 -1
  109. package/lib/product-bar/product-bar/ProductBar.css.d.ts +1 -0
  110. package/lib/product-bar/product-bar/ProductBar.css.d.ts.map +1 -1
  111. package/lib/product-bar/product-bar/ProductBar.ve.js +5 -4
  112. package/lib/product-bar/product-bar-name/ProductBarName.d.ts.map +1 -1
  113. package/lib/product-bar/product-bar-name/ProductBarName.js +31 -20
  114. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
  115. package/lib/product-bar/product-bar-tab/ProductBarTab.d.ts +3 -4
  116. package/lib/product-bar/product-bar-tab/ProductBarTab.d.ts.map +1 -1
  117. package/lib/product-bar/product-bar-tab/ProductBarTab.js +17 -13
  118. package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
  119. package/lib/product-bar/style.css +1 -1
  120. package/lib/product-bar-vertical/index.js +1 -1
  121. package/lib/product-bar-vertical/index.umd.cjs +1 -1
  122. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +1 -1
  123. package/lib/product-bar-vertical/style.css +1 -1
  124. package/lib/progress-indicators/index.js +1 -1
  125. package/lib/progress-indicators/index.umd.cjs +1 -1
  126. package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +1 -1
  127. package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +1 -1
  128. package/lib/progress-indicators/style.css +1 -1
  129. package/lib/rich-text-editor/index.js +2 -2
  130. package/lib/rich-text-editor/index.umd.cjs +1 -1
  131. package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +1 -1
  132. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +1 -1
  133. package/lib/rich-text-editor/style.css +1 -1
  134. package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
  135. package/lib/scrollable-container/index.js +1 -1
  136. package/lib/scrollable-container/index.umd.cjs +1 -1
  137. package/lib/scrollable-container/style.css +1 -1
  138. package/lib/side-nav/index.js +1 -1
  139. package/lib/side-nav/index.umd.cjs +1 -1
  140. package/lib/side-nav/side-nav/SideNav.ve.js +1 -1
  141. package/lib/side-nav/style.css +1 -1
  142. package/lib/sorting-header/caret/caret.ve.js +1 -1
  143. package/lib/sorting-header/index.js +2 -2
  144. package/lib/sorting-header/index.umd.cjs +1 -1
  145. package/lib/sorting-header/sorting-header/SortingHeader.ve.js +1 -1
  146. package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +1 -1
  147. package/lib/sorting-header/style.css +1 -1
  148. package/lib/style.css +1 -1
  149. package/lib/tabs/index.js +2 -2
  150. package/lib/tabs/index.umd.cjs +1 -1
  151. package/lib/tabs/style.css +1 -1
  152. package/lib/tabs/tab/Tab.ve.js +1 -1
  153. package/lib/tabs/tabs/Tabs.ve.js +1 -1
  154. package/lib/tags/clickable-tag/ClickableTag.ve.js +1 -1
  155. package/lib/tags/index.js +3 -3
  156. package/lib/tags/index.umd.cjs +1 -1
  157. package/lib/tags/split-tag/SplitTag.ve.js +1 -1
  158. package/lib/tags/style.css +1 -1
  159. package/lib/tags/tag/Tag.ve.js +1 -1
  160. package/lib/zero-state/ZeroState.ve.js +1 -1
  161. package/lib/zero-state/index.js +1 -1
  162. package/lib/zero-state/index.umd.cjs +1 -1
  163. package/lib/zero-state/style.css +1 -1
  164. package/package.json +10 -10
@@ -1 +1 @@
1
- .pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksem0{background-color:#fff;border-style:solid;border-width:.0625rem;border-radius:.25rem;display:flex;flex-direction:column;overflow:hidden;max-height:100%}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksem1{border-color:#007db8}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksem2,.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksem3{border-color:#de002e}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksem4{border-color:#0b8940}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksem5,.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksem6{border-color:#e7760b}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksem7{border-color:#4b5356}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksem8{width:23.75rem}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksem9{width:36.25rem}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksema{width:48.75rem}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemb{width:73.75rem}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemc{height:100%}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41kseme{align-items:center;color:#fff;display:flex;padding:1rem}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemf{background-color:#4b5356}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemg,.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemh{background-color:#de002e}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemi{background-color:#007db8}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemj{background-color:#0b8940}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemk,.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41kseml{background-color:#e7760b}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemm{flex-grow:1;font-size:.875rem;font-weight:600;line-height:1.25rem}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemn{font-weight:600;line-height:.875rem;font-size:.875rem;margin-right:.5rem}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemo{overflow-y:auto;padding:1rem;flex:1}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemp{align-items:center;background-color:#f3f4f4;display:flex;justify-content:flex-end;padding:.5rem}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemq{color:#fff;border-width:0}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksemr{padding:0 .25rem}.pkg_sps-woodland_core__family_modal__version_8_55_2__hash_41ksems{position:fixed;z-index:1000;inset:0;background:#f3f4f4cc;display:flex;align-items:start;justify-content:center;padding:4rem 1rem 1rem}.z-stratum-dropdown{z-index:1100}
1
+ .pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksem0{background-color:#fff;border-style:solid;border-width:.0625rem;border-radius:.25rem;display:flex;flex-direction:column;overflow:hidden;max-height:100%}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksem1{border-color:#007db8}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksem2,.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksem3{border-color:#de002e}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksem4{border-color:#0b8940}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksem5,.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksem6{border-color:#e7760b}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksem7{border-color:#4b5356}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksem8{width:23.75rem}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksem9{width:36.25rem}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksema{width:48.75rem}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemb{width:73.75rem}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemc{height:100%}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41kseme{align-items:center;color:#fff;display:flex;padding:1rem}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemf{background-color:#4b5356}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemg,.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemh{background-color:#de002e}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemi{background-color:#007db8}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemj{background-color:#0b8940}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemk,.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41kseml{background-color:#e7760b}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemm{flex-grow:1;font-size:.875rem;font-weight:600;line-height:1.25rem}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemn{font-weight:600;line-height:.875rem;font-size:.875rem;margin-right:.5rem}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemo{overflow-y:auto;padding:1rem;flex:1}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemp{align-items:center;background-color:#f3f4f4;display:flex;justify-content:flex-end;padding:.5rem}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemq{color:#fff;border-width:0}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksemr{padding:0 .25rem}.pkg_sps-woodland_core__family_modal__version_8_56_1__hash_41ksems{position:fixed;z-index:1000;inset:0;background:#f3f4f4cc;display:flex;align-items:start;justify-content:center;padding:4rem 1rem 1rem}.z-stratum-dropdown{z-index:1100}
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
3
+ export declare function HeadingLevelProvider({ level, children, }: React.PropsWithChildren<{
4
+ /** The heading level that a `PageTitle` without an `as` prop renders inside this provider. */
5
+ level: HeadingLevel;
6
+ }>): React.ReactElement;
7
+ /** Returns the level from the nearest `HeadingLevelProvider`, or `undefined` if there is none. */
8
+ export declare function useHeadingLevel(): HeadingLevel | undefined;
9
+ //# sourceMappingURL=HeadingLevel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeadingLevel.d.ts","sourceRoot":"","sources":["../../../src/page-title/heading-level/HeadingLevel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAIjD,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,QAAQ,GACT,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACzB,8FAA8F;IAC9F,KAAK,EAAE,YAAY,CAAC;CACrB,CAAC,GAAG,KAAK,CAAC,YAAY,CAEtB;AAED,kGAAkG;AAClG,wBAAgB,eAAe,IAAI,YAAY,GAAG,SAAS,CAE1D"}
@@ -0,0 +1,15 @@
1
+ import * as e from "react";
2
+ const t = e.createContext(void 0);
3
+ function o({
4
+ level: n,
5
+ children: r
6
+ }) {
7
+ return /* @__PURE__ */ e.createElement(t.Provider, { value: n }, r);
8
+ }
9
+ function i() {
10
+ return e.useContext(t);
11
+ }
12
+ export {
13
+ o as HeadingLevelProvider,
14
+ i as useHeadingLevel
15
+ };
@@ -1,3 +1,4 @@
1
1
  export * from "./page-title/PageTitle";
2
2
  export * from "./page-subtitle/PageSubtitle";
3
+ export * from "./heading-level/HeadingLevel";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/page-title/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/page-title/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC"}
@@ -1,32 +1,45 @@
1
- import * as o from "react";
2
- import { Metadata as i, selectChildren as p, Icon as n, addClassName as d, cl as s, modChildren as c } from "@sps-woodland/core";
3
- var m = "pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl00", g = "pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl01", h = "pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl02";
4
- function v({
5
- children: a,
1
+ import * as e from "react";
2
+ import { Metadata as d, modChildren as h, Icon as c, cl as o, selectChildren as u, addClassName as w } from "@sps-woodland/core";
3
+ var f = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_14qi3ku0", y = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_14qi3ku1";
4
+ function p({
5
+ children: _,
6
6
  className: t,
7
- ...l
7
+ ...n
8
8
  }) {
9
- const [[e], _] = p(a, [{ type: n }]), r = e ? d(e, h) : "";
10
- return /* @__PURE__ */ o.createElement("div", { className: s(m, t), ...l }, r, /* @__PURE__ */ o.createElement("div", { className: g }, _));
9
+ const l = h(_, (a) => a.type === c ? [{
10
+ className: o(a.props.className, y)
11
+ }] : []);
12
+ return /* @__PURE__ */ e.createElement("div", { className: o(f, t), ...n }, e.Children.toArray(l));
11
13
  }
12
- i.set(v, {
13
- name: "Page Title"
14
+ d.set(p, {
15
+ name: "Page Subtitle"
14
16
  });
15
- var w = "pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_14qi3ku0", u = "pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_14qi3ku1";
16
- function f({
17
- children: a,
18
- className: t,
17
+ const m = e.createContext(void 0);
18
+ function E({
19
+ level: _,
20
+ children: t
21
+ }) {
22
+ return /* @__PURE__ */ e.createElement(m.Provider, { value: _ }, t);
23
+ }
24
+ function C() {
25
+ return e.useContext(m);
26
+ }
27
+ var k = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl00", N = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl01", T = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl02", x = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl03";
28
+ function P({
29
+ as: _,
30
+ children: t,
31
+ className: n,
19
32
  ...l
20
33
  }) {
21
- const e = c(a, (_) => _.type === n ? [{
22
- className: s(_.props.className, u)
23
- }] : []);
24
- return /* @__PURE__ */ o.createElement("div", { className: s(w, t), ...l }, e);
34
+ const [[a], g, i] = u(t, [{ type: c }, { type: p }]), s = C(), r = _ ?? (s ? `h${s}` : "h1"), v = a ? w(a, T) : "";
35
+ return /* @__PURE__ */ e.createElement("div", { className: o(k, n), ...l }, v, /* @__PURE__ */ e.createElement("div", { className: N }, r === "div" ? i : e.createElement(r, { className: x }, i), g));
25
36
  }
26
- i.set(f, {
27
- name: "Page Subtitle"
37
+ d.set(P, {
38
+ name: "Page Title"
28
39
  });
29
40
  export {
30
- f as PageSubtitle,
31
- v as PageTitle
41
+ E as HeadingLevelProvider,
42
+ p as PageSubtitle,
43
+ P as PageTitle,
44
+ C as useHeadingLevel
32
45
  };
@@ -1 +1 @@
1
- (function(t,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react"),require("@sps-woodland/core")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core"],l):(t=typeof globalThis<"u"?globalThis:t||self,l(t.PageTitle={},t.react,t.spsWoodlandCore))})(this,(function(t,l,e){"use strict";function c(a){const _=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(_,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}return _.default=a,Object.freeze(_)}const s=c(l);var p="pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl00",u="pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl01",f="pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl02";function d({children:a,className:_,...n}){const[[i],o]=e.selectChildren(a,[{type:e.Icon}]),h=i?e.addClassName(i,f):"";return s.createElement("div",{className:e.cl(p,_),...n},h,s.createElement("div",{className:u},o))}e.Metadata.set(d,{name:"Page Title"});var g="pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_14qi3ku0",m="pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_14qi3ku1";function r({children:a,className:_,...n}){const i=e.modChildren(a,o=>o.type===e.Icon?[{className:e.cl(o.props.className,m)}]:[]);return s.createElement("div",{className:e.cl(g,_),...n},i)}e.Metadata.set(r,{name:"Page Subtitle"}),t.PageSubtitle=r,t.PageTitle=d,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(e,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react"),require("@sps-woodland/core")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core"],o):(e=typeof globalThis<"u"?globalThis:e||self,o(e.PageTitle={},e.react,e.spsWoodlandCore))})(this,(function(e,o,a){"use strict";function m(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const _ in t)if(_!=="default"){const l=Object.getOwnPropertyDescriptor(t,_);Object.defineProperty(n,_,l.get?l:{enumerable:!0,get:()=>t[_]})}}return n.default=t,Object.freeze(n)}const i=m(o);var v="pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_14qi3ku0",h="pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_14qi3ku1";function r({children:t,className:n,..._}){const l=a.modChildren(t,s=>s.type===a.Icon?[{className:a.cl(s.props.className,h)}]:[]);return i.createElement("div",{className:a.cl(v,n),..._},i.Children.toArray(l))}a.Metadata.set(r,{name:"Page Subtitle"});const d=i.createContext(void 0);function w({level:t,children:n}){return i.createElement(d.Provider,{value:t},n)}function c(){return i.useContext(d)}var y="pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl00",b="pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl01",P="pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl02",T="pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl03";function p({as:t,children:n,className:_,...l}){const[[s],C,u]=a.selectChildren(n,[{type:a.Icon},{type:r}]),g=c(),f=t??(g?`h${g}`:"h1"),k=s?a.addClassName(s,P):"";return i.createElement("div",{className:a.cl(y,_),...l},k,i.createElement("div",{className:b},f==="div"?u:i.createElement(f,{className:T},u),C))}a.Metadata.set(p,{name:"Page Title"}),e.HeadingLevelProvider=w,e.PageSubtitle=r,e.PageTitle=p,e.useHeadingLevel=c,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
@@ -1,15 +1,15 @@
1
- import * as i from "react";
2
- import { Metadata as l, modChildren as n, Icon as s, cl as t } from "@sps-woodland/core";
1
+ import * as t from "react";
2
+ import { Metadata as l, modChildren as n, Icon as s, cl as a } from "@sps-woodland/core";
3
3
  import { pageSubtitleIcon as c, pageSubtitle as p } from "./PageSubtitle.ve.js";
4
4
  function d({
5
- children: a,
5
+ children: r,
6
6
  className: o,
7
7
  ...m
8
8
  }) {
9
- const r = n(a, (e) => e.type === s ? [{
10
- className: t(e.props.className, c)
9
+ const i = n(r, (e) => e.type === s ? [{
10
+ className: a(e.props.className, c)
11
11
  }] : []);
12
- return /* @__PURE__ */ i.createElement("div", { className: t(p, o), ...m }, r);
12
+ return /* @__PURE__ */ t.createElement("div", { className: a(p, o), ...m }, t.Children.toArray(i));
13
13
  }
14
14
  l.set(d, {
15
15
  name: "Page Subtitle"
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- var e = "pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_14qi3ku0", a = "pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_14qi3ku1";
2
+ var e = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_14qi3ku0", a = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_14qi3ku1";
3
3
  export {
4
4
  e as pageSubtitle,
5
5
  a as pageSubtitleIcon
@@ -1,4 +1,5 @@
1
1
  export declare const pageTitle: string;
2
2
  export declare const pageTitleText: string;
3
3
  export declare const pageTitleIcon: string;
4
+ export declare const pageTitleHeading: string;
4
5
  //# sourceMappingURL=PageTitle.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageTitle.css.d.ts","sourceRoot":"","sources":["../../../src/page-title/page-title/PageTitle.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH,eAAO,MAAM,aAAa,QAMxB,CAAC;AAEH,eAAO,MAAM,aAAa,QAMxB,CAAC"}
1
+ {"version":3,"file":"PageTitle.css.d.ts","sourceRoot":"","sources":["../../../src/page-title/page-title/PageTitle.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH,eAAO,MAAM,aAAa,QAMxB,CAAC;AAEH,eAAO,MAAM,aAAa,QAMxB,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAM3B,CAAC"}
@@ -1,4 +1,12 @@
1
1
  import * as React from "react";
2
2
  import type { ComponentProps } from "@sps-woodland/core";
3
- export declare function PageTitle({ children, className, ...rest }: ComponentProps<unknown, HTMLDivElement>): React.ReactElement;
3
+ export type PageTitleElement = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
4
+ export declare function PageTitle({ as, children, className, ...rest }: ComponentProps<{
5
+ /**
6
+ * The element that wraps the title text. Use a heading that matches the position of the title
7
+ * in the page outline. Use "div" for a title that is not a heading. Without this prop, the
8
+ * title uses the level from the nearest HeadingLevelProvider, or "h1" if there is none.
9
+ */
10
+ as?: PageTitleElement;
11
+ }, HTMLDivElement>): React.ReactElement;
4
12
  //# sourceMappingURL=PageTitle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageTitle.d.ts","sourceRoot":"","sources":["../../../src/page-title/page-title/PageTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAY,MAAM,oBAAoB,CAAC;AAOnE,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,YAAY,CAgB9D"}
1
+ {"version":3,"file":"PageTitle.d.ts","sourceRoot":"","sources":["../../../src/page-title/page-title/PageTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAY,MAAM,oBAAoB,CAAC;AAWnE,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAE/E,wBAAgB,SAAS,CAAC,EACxB,EAAE,EACF,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,cAAc,CAAC;IAChB;;;;OAIG;IACH,EAAE,CAAC,EAAE,gBAAgB,CAAC;CACvB,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,YAAY,CAyBtC"}
@@ -1,17 +1,20 @@
1
- import * as t from "react";
2
- import { Metadata as n, selectChildren as r, Icon as m, addClassName as s, cl as d } from "@sps-woodland/core";
3
- import { pageTitleIcon as p, pageTitle as T, pageTitleText as g } from "./PageTitle.ve.js";
4
- function f({
5
- children: a,
6
- className: o,
1
+ import * as e from "react";
2
+ import { Metadata as d, selectChildren as p, Icon as g, addClassName as T, cl as f } from "@sps-woodland/core";
3
+ import { PageSubtitle as h } from "../page-subtitle/PageSubtitle.js";
4
+ import { useHeadingLevel as u } from "../heading-level/HeadingLevel.js";
5
+ import { pageTitleIcon as v, pageTitle as N, pageTitleText as x, pageTitleHeading as C } from "./PageTitle.ve.js";
6
+ function E({
7
+ as: l,
8
+ children: n,
9
+ className: m,
7
10
  ...c
8
11
  }) {
9
- const [[e], i] = r(a, [{ type: m }]), l = e ? s(e, p) : "";
10
- return /* @__PURE__ */ t.createElement("div", { className: d(T, o), ...c }, l, /* @__PURE__ */ t.createElement("div", { className: g }, i));
12
+ const [[t], r, a] = p(n, [{ type: g }, { type: h }]), o = u(), i = l ?? (o ? `h${o}` : "h1"), s = t ? T(t, v) : "";
13
+ return /* @__PURE__ */ e.createElement("div", { className: f(N, m), ...c }, s, /* @__PURE__ */ e.createElement("div", { className: x }, i === "div" ? a : e.createElement(i, { className: C }, a), r));
11
14
  }
12
- n.set(f, {
15
+ d.set(E, {
13
16
  name: "Page Title"
14
17
  });
15
18
  export {
16
- f as PageTitle
19
+ E as PageTitle
17
20
  };
@@ -1,7 +1,8 @@
1
1
  /* empty css */
2
- var e = "pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl00", a = "pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl01", l = "pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl02";
2
+ var e = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl00", a = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl01", l = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl02", o = "pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl03";
3
3
  export {
4
4
  e as pageTitle,
5
+ o as pageTitleHeading,
5
6
  l as pageTitleIcon,
6
7
  a as pageTitleText
7
8
  };
@@ -1 +1 @@
1
- .pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl00{display:flex;flex-direction:row}.pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl01{color:#1f282c;display:flex;flex-direction:column;font-size:1.5rem;line-height:1.5rem}.pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_6nwwl02{align-self:flex-start;font-size:1.125rem;line-height:1.5rem;margin-right:.25rem;margin-top:.1875rem}.pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_14qi3ku0{color:#4b5356;font-size:1.125rem;line-height:1.125rem;margin-top:.25rem}.pkg_sps-woodland_core__family_page-title__version_8_55_2__hash_14qi3ku1{font-size:.75rem;line-height:1.125rem;margin-left:.25rem;margin-right:.25rem;margin-top:.25rem}
1
+ .pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_14qi3ku0{color:#4b5356;font-size:1.125rem;line-height:1.125rem;margin-top:.25rem}.pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_14qi3ku1{font-size:.75rem;line-height:1.125rem;margin-left:.25rem;margin-right:.25rem;margin-top:.25rem}.pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl00{display:flex;flex-direction:row}.pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl01{color:#1f282c;display:flex;flex-direction:column;font-size:1.5rem;line-height:1.5rem}.pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl02{align-self:flex-start;font-size:1.125rem;line-height:1.5rem;margin-right:.25rem;margin-top:.1875rem}.pkg_sps-woodland_core__family_page-title__version_8_56_1__hash_6nwwl03{color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0}
@@ -56,7 +56,7 @@ var F = (e, a, o) => {
56
56
  for (var [s, u] of e.compoundVariants)
57
57
  F(s, t, e.defaultVariants) && (o += " " + u);
58
58
  return o;
59
- }, L = m({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w0", variantClassNames: { placeholder: { true: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w1", false: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w2" } }, defaultVariants: { placeholder: !1 }, compoundVariants: [] }), A = m({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w3", variantClassNames: { mode: { fill: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w4", fit: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w5" } }, defaultVariants: { mode: "fill" }, compoundVariants: [] }), D = "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w6";
59
+ }, L = m({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w0", variantClassNames: { placeholder: { true: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w1", false: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w2" } }, defaultVariants: { placeholder: !1 }, compoundVariants: [] }), A = m({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w3", variantClassNames: { mode: { fill: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w4", fit: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w5" } }, defaultVariants: { mode: "fill" }, compoundVariants: [] }), D = "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w6";
60
60
  function E({
61
61
  className: e,
62
62
  src: a,
@@ -134,7 +134,7 @@ V.set(E, {
134
134
  placeholderIcon: "IconName"
135
135
  }
136
136
  });
137
- var C = "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba10", I = "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba11", z = "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba12", T = "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba13", H = m({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba14", variantClassNames: { selected: { true: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba15", false: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba16" } }, defaultVariants: { selected: !1 }, compoundVariants: [] });
137
+ var C = "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba10", I = "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba11", z = "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba12", T = "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba13", H = m({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba14", variantClassNames: { selected: { true: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba15", false: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba16" } }, defaultVariants: { selected: !1 }, compoundVariants: [] });
138
138
  function J({
139
139
  children: e,
140
140
  className: a,
@@ -1 +1 @@
1
- (function(s,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/tokens"),require("@spscommerce/ds-react"),require("@spscommerce/ds-shared")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@sps-woodland/tokens","@spscommerce/ds-react","@spscommerce/ds-shared"],m):(s=typeof globalThis<"u"?globalThis:s||self,m(s.Photo={},s.react,s.spsWoodlandCore,s.spsWoodlandTokens,s.spscommerceDsReact,s.spscommerceDsShared))})(this,(function(s,m,c,h,y,v){"use strict";function E(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const o=E(m);function N(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?O(Object(t),!0).forEach(function(r){N(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var R=(e,n,t)=>{for(var r of Object.keys(e)){var a;if(e[r]!==((a=n[r])!==null&&a!==void 0?a:t[r]))return!1}return!0},g=e=>n=>{var t=e.defaultClassName,r=C(C({},e.defaultVariants),n);for(var a in r){var u,d=(u=r[a])!==null&&u!==void 0?u:e.defaultVariants[a];if(d!=null){var l=d;typeof l=="boolean"&&(l=l===!0?"true":"false");var i=e.variantClassNames[a][l];i&&(t+=" "+i)}}for(var[_,f]of e.compoundVariants)R(_,r,e.defaultVariants)&&(t+=" "+f);return t},j=g({defaultClassName:"pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w0",variantClassNames:{placeholder:{true:"pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w1",false:"pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w2"}},defaultVariants:{placeholder:!1},compoundVariants:[]}),S=g({defaultClassName:"pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w3",variantClassNames:{mode:{fill:"pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w4",fit:"pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w5"}},defaultVariants:{mode:"fill"},compoundVariants:[]}),k="pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w6";function b({className:e,src:n,altText:t,mode:r="fill",placeholderIcon:a="photo",...u}){const d=o.useRef(null),l=o.useRef(null),i=o.useRef(null),_=o.useRef(null),[f,B]=o.useState(),[T,F]=o.useState(!1);o.useEffect(()=>{l.current&&(i.current&&(window.clearInterval(i.current),i.current=null),i.current=window.setInterval(()=>{if(l.current){const p=l.current.getBoundingClientRect();if(p.height){i.current&&(window.clearInterval(i.current),i.current=null);const w=p.width/p.height>1;F(w===(r==="fit"))}}},1e3/60))},[d.current,l.current,n]),o.useEffect(()=>{_.current&&(window.clearInterval(_.current),_.current=null),_.current=window.setInterval(()=>{if(d.current){const p=d.current.getBoundingClientRect();p.width&&(L(p.width),_.current&&(window.clearInterval(_.current),_.current=null))}},1e3/60)},[d.current]);function L(p){if(p){const w=document?.body?.parentElement?.style?.fontSize||"16px",A=Number(w.substring(0,w.length-2));B(p/A)}}function q(){if(typeof f<"u")return f*.05}function z(){if(typeof f<"u")return .75*f}return o.createElement("div",{ref:d,className:c.cl(j({placeholder:!n}),e),style:{width:`${f}`&&`${f}rem`,fontSize:`${q()}rem`,height:`${z()}rem`},...u},n?f?o.createElement("img",{className:S({mode:T?"fit":"fill"}),ref:l,src:n,alt:t}):o.createElement("span",null):o.createElement(c.Icon,{className:k,icon:a}))}c.Metadata.set(b,{name:"Photo",props:{src:"string",altText:"string",mode:{type:'"fill" | "fit"',default:'"fill"'},placeholderIcon:"IconName"}});var I="pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba10",P="pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba11",x="pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba12",V="pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba13",W=g({defaultClassName:"pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba14",variantClassNames:{selected:{true:"pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba15",false:"pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba16"}},defaultVariants:{selected:!1},compoundVariants:[]});function D({children:e,className:n,...t}){const[r]=c.selectChildren(e,[{type:b}]),[a,u]=o.useState(0);function d(){a+1===r.length?u(0):u(a+1)}function l(){u(a===0?r.length-1:a-1)}return o.createElement("div",{className:h.grid.root,...t},o.createElement("div",{className:c.cl(I)},o.createElement("div",{className:c.cl(P)},o.createElement(y.SpsButton,{tabIndex:0,kind:v.ButtonKind.ICON,icon:v.SpsIcon.ARROW_LEFT_CIRCLE,onClick:l}))),o.createElement("div",{className:h.grid[10]},o.createElement("div",{className:c.cl(V,h.grid[12])},r[a]),o.createElement("div",{className:c.cl(x,h.grid[12])},r.map((i,_)=>o.createElement("button",{tabIndex:0,className:c.cl(W({selected:_===a})),onClick:()=>u(_)},i)))),o.createElement("div",{className:c.cl(I)},o.createElement("div",{className:c.cl(P)},o.createElement(y.SpsButton,{tabIndex:0,kind:v.ButtonKind.ICON,icon:v.SpsIcon.ARROW_RIGHT_CIRCLE,onClick:d}))))}s.Photo=b,s.PhotoCarousel=D,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(s,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/tokens"),require("@spscommerce/ds-react"),require("@spscommerce/ds-shared")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@sps-woodland/tokens","@spscommerce/ds-react","@spscommerce/ds-shared"],m):(s=typeof globalThis<"u"?globalThis:s||self,m(s.Photo={},s.react,s.spsWoodlandCore,s.spsWoodlandTokens,s.spscommerceDsReact,s.spscommerceDsShared))})(this,(function(s,m,c,h,y,v){"use strict";function E(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const o=E(m);function N(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?O(Object(t),!0).forEach(function(r){N(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var R=(e,n,t)=>{for(var r of Object.keys(e)){var a;if(e[r]!==((a=n[r])!==null&&a!==void 0?a:t[r]))return!1}return!0},g=e=>n=>{var t=e.defaultClassName,r=C(C({},e.defaultVariants),n);for(var a in r){var u,d=(u=r[a])!==null&&u!==void 0?u:e.defaultVariants[a];if(d!=null){var l=d;typeof l=="boolean"&&(l=l===!0?"true":"false");var i=e.variantClassNames[a][l];i&&(t+=" "+i)}}for(var[_,f]of e.compoundVariants)R(_,r,e.defaultVariants)&&(t+=" "+f);return t},j=g({defaultClassName:"pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w0",variantClassNames:{placeholder:{true:"pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w1",false:"pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w2"}},defaultVariants:{placeholder:!1},compoundVariants:[]}),S=g({defaultClassName:"pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w3",variantClassNames:{mode:{fill:"pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w4",fit:"pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w5"}},defaultVariants:{mode:"fill"},compoundVariants:[]}),k="pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w6";function b({className:e,src:n,altText:t,mode:r="fill",placeholderIcon:a="photo",...u}){const d=o.useRef(null),l=o.useRef(null),i=o.useRef(null),_=o.useRef(null),[f,B]=o.useState(),[T,F]=o.useState(!1);o.useEffect(()=>{l.current&&(i.current&&(window.clearInterval(i.current),i.current=null),i.current=window.setInterval(()=>{if(l.current){const p=l.current.getBoundingClientRect();if(p.height){i.current&&(window.clearInterval(i.current),i.current=null);const w=p.width/p.height>1;F(w===(r==="fit"))}}},1e3/60))},[d.current,l.current,n]),o.useEffect(()=>{_.current&&(window.clearInterval(_.current),_.current=null),_.current=window.setInterval(()=>{if(d.current){const p=d.current.getBoundingClientRect();p.width&&(L(p.width),_.current&&(window.clearInterval(_.current),_.current=null))}},1e3/60)},[d.current]);function L(p){if(p){const w=document?.body?.parentElement?.style?.fontSize||"16px",A=Number(w.substring(0,w.length-2));B(p/A)}}function q(){if(typeof f<"u")return f*.05}function z(){if(typeof f<"u")return .75*f}return o.createElement("div",{ref:d,className:c.cl(j({placeholder:!n}),e),style:{width:`${f}`&&`${f}rem`,fontSize:`${q()}rem`,height:`${z()}rem`},...u},n?f?o.createElement("img",{className:S({mode:T?"fit":"fill"}),ref:l,src:n,alt:t}):o.createElement("span",null):o.createElement(c.Icon,{className:k,icon:a}))}c.Metadata.set(b,{name:"Photo",props:{src:"string",altText:"string",mode:{type:'"fill" | "fit"',default:'"fill"'},placeholderIcon:"IconName"}});var I="pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba10",P="pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba11",x="pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba12",V="pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba13",W=g({defaultClassName:"pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba14",variantClassNames:{selected:{true:"pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba15",false:"pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba16"}},defaultVariants:{selected:!1},compoundVariants:[]});function D({children:e,className:n,...t}){const[r]=c.selectChildren(e,[{type:b}]),[a,u]=o.useState(0);function d(){a+1===r.length?u(0):u(a+1)}function l(){u(a===0?r.length-1:a-1)}return o.createElement("div",{className:h.grid.root,...t},o.createElement("div",{className:c.cl(I)},o.createElement("div",{className:c.cl(P)},o.createElement(y.SpsButton,{tabIndex:0,kind:v.ButtonKind.ICON,icon:v.SpsIcon.ARROW_LEFT_CIRCLE,onClick:l}))),o.createElement("div",{className:h.grid[10]},o.createElement("div",{className:c.cl(V,h.grid[12])},r[a]),o.createElement("div",{className:c.cl(x,h.grid[12])},r.map((i,_)=>o.createElement("button",{tabIndex:0,className:c.cl(W({selected:_===a})),onClick:()=>u(_)},i)))),o.createElement("div",{className:c.cl(I)},o.createElement("div",{className:c.cl(P)},o.createElement(y.SpsButton,{tabIndex:0,kind:v.ButtonKind.ICON,icon:v.SpsIcon.ARROW_RIGHT_CIRCLE,onClick:d}))))}s.Photo=b,s.PhotoCarousel=D,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
@@ -1,6 +1,6 @@
1
1
  /* empty css */
2
2
  import { createRuntimeFn as _ } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
3
- var s = _({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w0", variantClassNames: { placeholder: { true: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w1", false: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w2" } }, defaultVariants: { placeholder: !1 }, compoundVariants: [] }), r = _({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w3", variantClassNames: { mode: { fill: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w4", fit: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w5" } }, defaultVariants: { mode: "fill" }, compoundVariants: [] }), e = "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w6";
3
+ var s = _({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w0", variantClassNames: { placeholder: { true: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w1", false: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w2" } }, defaultVariants: { placeholder: !1 }, compoundVariants: [] }), r = _({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w3", variantClassNames: { mode: { fill: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w4", fit: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w5" } }, defaultVariants: { mode: "fill" }, compoundVariants: [] }), e = "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w6";
4
4
  export {
5
5
  r as photo,
6
6
  e as photoPlaceholder,
@@ -1,6 +1,6 @@
1
1
  /* empty css */
2
2
  import { createRuntimeFn as _ } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
3
- var s = "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba10", e = "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba11", r = "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba12", p = "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba13", t = _({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba14", variantClassNames: { selected: { true: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba15", false: "pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba16" } }, defaultVariants: { selected: !1 }, compoundVariants: [] });
3
+ var s = "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba10", e = "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba11", r = "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba12", p = "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba13", t = _({ defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba14", variantClassNames: { selected: { true: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba15", false: "pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba16" } }, defaultVariants: { selected: !1 }, compoundVariants: [] });
4
4
  export {
5
5
  e as photoCarouselButton,
6
6
  s as photoCarouselButtonWrapper,
@@ -1 +1 @@
1
- .pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w0{align-items:center;display:flex;justify-content:center;overflow:hidden;padding:0!important;vertical-align:middle}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w1{background:#f3f4f4;box-shadow:inset .0625rem 0 #d2d4d4,inset -.0625rem 0 #d2d4d4,inset 0 .0625rem #d2d4d4,inset 0 -.0625rem #d2d4d4,inset 1em 0 #fff,inset -1em 0 #fff,inset 0 1em #fff,inset 0 -1em #fff}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w3{visibility:hidden}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w4{height:100%;visibility:visible;width:auto}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w5{height:auto;visibility:visible;width:100%}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1orib4w6{font-size:6em;text-align:center;color:#717779}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba10{display:table;float:right}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba11{display:table-cell;vertical-align:middle}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba12{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba13{display:block;margin-bottom:.5rem;width:100%}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba14{display:block;background:transparent;border:0;cursor:pointer;padding:0}.pkg_sps-woodland_core__family_photo__version_8_55_2__hash_1744ba16{opacity:.4}
1
+ .pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w0{align-items:center;display:flex;justify-content:center;overflow:hidden;padding:0!important;vertical-align:middle}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w1{background:#f3f4f4;box-shadow:inset .0625rem 0 #d2d4d4,inset -.0625rem 0 #d2d4d4,inset 0 .0625rem #d2d4d4,inset 0 -.0625rem #d2d4d4,inset 1em 0 #fff,inset -1em 0 #fff,inset 0 1em #fff,inset 0 -1em #fff}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w3{visibility:hidden}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w4{height:100%;visibility:visible;width:auto}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w5{height:auto;visibility:visible;width:100%}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1orib4w6{font-size:6em;text-align:center;color:#717779}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba10{display:table;float:right}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba11{display:table-cell;vertical-align:middle}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba12{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba13{display:block;margin-bottom:.5rem;width:100%}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba14{display:block;background:transparent;border:0;cursor:pointer;padding:0}.pkg_sps-woodland_core__family_photo__version_8_56_1__hash_1744ba16{opacity:.4}