@planningcenter/tapestry-react 4.15.0 → 5.1.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 (151) hide show
  1. package/dist/ActionsDropdown/ActionsDropdown.js +1 -1
  2. package/dist/Badge/Status.js +1 -1
  3. package/dist/Box/Box.d.ts +1 -41
  4. package/dist/Box/Box.d.ts.map +1 -1
  5. package/dist/Button/Button.js +1 -1
  6. package/dist/Button/Input.js +1 -1
  7. package/dist/Calendar/Calendar.js +1 -1
  8. package/dist/Calendar/Day.js +1 -1
  9. package/dist/Calendar/utils.js +1 -1
  10. package/dist/Card/Card.js +1 -1
  11. package/dist/Checkbox/Checkbox.js +1 -1
  12. package/dist/CheckboxGroup/CheckboxGroup.d.ts +3 -0
  13. package/dist/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  14. package/dist/CheckboxGroup/CheckboxGroup.js +1 -1
  15. package/dist/Collapse/Collapse.js +1 -1
  16. package/dist/ColumnView/ColumnView.js +1 -1
  17. package/dist/Combobox/ComboboxInput.js +1 -1
  18. package/dist/Combobox/ComboboxItem.js +1 -1
  19. package/dist/Combobox/ComboboxItems.d.ts.map +1 -1
  20. package/dist/Combobox/ComboboxItems.js +1 -1
  21. package/dist/Combobox/ComboboxPopover.js +1 -1
  22. package/dist/DataTable/DataTable.d.ts.map +1 -1
  23. package/dist/DataTable/DataTable.js +1 -1
  24. package/dist/DataTable/components/BodyRow.js +1 -1
  25. package/dist/DataTable/components/BodyRows.js +1 -1
  26. package/dist/DataTable/components/BodySubRows.js +1 -1
  27. package/dist/DataTable/components/CheckboxCell.js +1 -1
  28. package/dist/DataTable/components/ColumnPicker.js +1 -1
  29. package/dist/DataTable/hooks/useCollapsibleRows.js +1 -1
  30. package/dist/DataTable/hooks/useColumnSort.js +1 -1
  31. package/dist/DataTable/hooks/useColumnWidths.js +1 -1
  32. package/dist/DataTable/hooks/useRefManager.js +1 -1
  33. package/dist/DataTable/hooks/useScrollShadows.js +1 -1
  34. package/dist/DataTable/hooks/useScrollSync.js +1 -1
  35. package/dist/DataTable/hooks/useVariants.js +1 -1
  36. package/dist/DataTable/index.d.ts.map +1 -1
  37. package/dist/DataTable/index.js +1 -1
  38. package/dist/DataTable/utils/getParsedColumns.js +1 -1
  39. package/dist/DateField/DateField.d.ts +3 -0
  40. package/dist/DateField/DateField.d.ts.map +1 -1
  41. package/dist/DateField/DateField.js +1 -1
  42. package/dist/DateField/useArrowKeysToNavigateCalendar.js +1 -1
  43. package/dist/DateField/useEditableDate.js +1 -1
  44. package/dist/DragDrop/DragDrop.js +1 -1
  45. package/dist/Drawer/Drawer.js +1 -1
  46. package/dist/Dropdown/Dropdown.d.ts +3 -0
  47. package/dist/Dropdown/Dropdown.d.ts.map +1 -1
  48. package/dist/Dropdown/Dropdown.js +1 -1
  49. package/dist/Dropdown/Item.js +1 -1
  50. package/dist/Dropdown/Link.js +1 -1
  51. package/dist/EditActions/EditActions.js +1 -1
  52. package/dist/Field/Field.js +1 -1
  53. package/dist/FilterLayout/FilterLayout.js +1 -1
  54. package/dist/FocusGroup/FocusGroup.js +1 -1
  55. package/dist/Form/Form.js +1 -1
  56. package/dist/GridView/GridView.js +1 -1
  57. package/dist/Group/Group.js +1 -1
  58. package/dist/HelperDrawer/HelperDrawer.js +1 -1
  59. package/dist/Highlight/Highlight.js +1 -1
  60. package/dist/Icon/Icon.d.ts +0 -3
  61. package/dist/Icon/Icon.d.ts.map +1 -1
  62. package/dist/Icon/Path.d.ts +0 -3
  63. package/dist/Icon/Path.d.ts.map +1 -1
  64. package/dist/Icon/Status.d.ts +0 -3
  65. package/dist/Icon/Status.d.ts.map +1 -1
  66. package/dist/Input/InputBox.js +1 -1
  67. package/dist/Input/InputField.js +1 -1
  68. package/dist/Input/InputLabel.js +1 -1
  69. package/dist/ItemList/ItemList.js +1 -1
  70. package/dist/ItemList/ItemListController.js +1 -1
  71. package/dist/ItemList/ItemListItem.js +1 -1
  72. package/dist/LinkList/LinkList.js +1 -1
  73. package/dist/List/List.js +1 -1
  74. package/dist/Logo/Logo.js +1 -1
  75. package/dist/Logo/Logo.test.d.ts +2 -0
  76. package/dist/Logo/Logo.test.d.ts.map +1 -0
  77. package/dist/Modal/Modal.d.ts +3 -0
  78. package/dist/Modal/Modal.d.ts.map +1 -1
  79. package/dist/Modal/Modal.js +1 -1
  80. package/dist/NumberField/NumberField.js +1 -1
  81. package/dist/PagerView/PagerView.js +1 -1
  82. package/dist/Pagination/Pagination.js +1 -1
  83. package/dist/Popover/Popover.js +1 -1
  84. package/dist/Portal/Portal.js +1 -1
  85. package/dist/Radio/Radio.js +1 -1
  86. package/dist/RangeSlider/RangeSlider.js +1 -1
  87. package/dist/Scrim/Scrim.js +1 -1
  88. package/dist/SegmentedControl/SegmentedControl.js +1 -1
  89. package/dist/SegmentedTabs/SegmentedTabs.js +1 -1
  90. package/dist/Select/Option.d.ts +3 -0
  91. package/dist/Select/Option.d.ts.map +1 -1
  92. package/dist/Select/Option.js +1 -1
  93. package/dist/Select/OptionGroup.d.ts +3 -0
  94. package/dist/Select/OptionGroup.d.ts.map +1 -1
  95. package/dist/Select/Select.js +1 -1
  96. package/dist/Select/Value.d.ts +3 -0
  97. package/dist/Select/Value.d.ts.map +1 -1
  98. package/dist/Select/utils.js +1 -1
  99. package/dist/Sidebar/Sidebar.js +1 -1
  100. package/dist/Sortable/SortableItem.js +1 -1
  101. package/dist/Sortable/SortableList.js +1 -1
  102. package/dist/StackView/StackView.d.ts.map +1 -1
  103. package/dist/StepperProgress/Step.js +1 -1
  104. package/dist/StepperProgress/StepperProgress.js +1 -1
  105. package/dist/TabNav/TabNav.js +1 -1
  106. package/dist/Table/AnimateScroll.js +1 -1
  107. package/dist/Table/BodyRow.js +1 -1
  108. package/dist/Table/ColumnPicker.js +1 -1
  109. package/dist/Table/Table.js +1 -1
  110. package/dist/Table/TableBase.js +1 -1
  111. package/dist/Tabs/TabList.js +1 -1
  112. package/dist/Tabs/Tabs.js +1 -1
  113. package/dist/Text/Text.d.ts.map +1 -1
  114. package/dist/ThemeProvider/ThemeProvider.js +1 -1
  115. package/dist/ThemeProvider/styles.js +1 -1
  116. package/dist/TimeField/TimeField.js +1 -1
  117. package/dist/TokenInput/TokenInput.d.ts.map +1 -1
  118. package/dist/TokenInput/TokenInput.js +1 -1
  119. package/dist/Toolbar/Toolbar.js +1 -1
  120. package/dist/Tooltip/Tooltip.js +1 -1
  121. package/dist/VariantProvider/VariantProvider.js +1 -1
  122. package/dist/Wizard/Step.js +1 -1
  123. package/dist/Wizard/Wizard.js +1 -1
  124. package/dist/ext/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
  125. package/dist/ext/tslib/tslib.es6.js +1 -1
  126. package/dist/hooks/use-accessibility-violation.js +1 -1
  127. package/dist/hooks/use-document-event.js +1 -1
  128. package/dist/hooks/use-keyboard-shortcuts.js +1 -1
  129. package/dist/hooks/use-measure.js +1 -1
  130. package/dist/hooks/use-media-query.js +1 -1
  131. package/dist/hooks/use-roving-index.js +1 -1
  132. package/dist/system/colors/colors.d.ts +3 -19
  133. package/dist/system/colors/colors.d.ts.map +1 -1
  134. package/dist/system/colors/colors.js +1 -1
  135. package/dist/system/colors/utils.js +1 -1
  136. package/dist/system/cxs.js +1 -1
  137. package/dist/system/default-theme.d.ts +1 -6
  138. package/dist/system/default-theme.d.ts.map +1 -1
  139. package/dist/system/default-theme.js +1 -1
  140. package/dist/system/parse-styles.js +1 -1
  141. package/dist/system/plugins/color.js +1 -1
  142. package/dist/system/plugins/size.js +1 -1
  143. package/dist/system/split-styles.js +1 -1
  144. package/dist/system/use-css.js +1 -1
  145. package/dist/system/utils.js +1 -1
  146. package/dist/utils.js +1 -1
  147. package/dist/vendor/react-measure/Measure.js +1 -1
  148. package/dist/vendor/react-measure/Viewport.js +1 -1
  149. package/package.json +3 -3
  150. package/dist/Logo/ Logo.test.d.ts +0 -2
  151. package/dist/Logo/ Logo.test.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- import{__rest as t,__assign as e}from'./../ext/tslib/tslib.es6.js';import o,{Children as i,cloneElement as r}from"react";import{StackView as s}from"../StackView/StackView.js";import"../system/colors/colors.js";import"polished";import"../utils.js";import"lodash/includes";import{useThemeProps as a}from"../system/utils.js";import"../system/style-names.js";import"../system/default-theme.js";import"@emotion/react";import"../system/cxs.js";var n="TabList";function m(n){var m=a("tabs.tabList",n),l=m.activeIndex,c=m.axis,d=void 0===c?"horizontal":c,p=m.children,u=m.id,f=m.moveTabFocus,v=m.setActiveIndex,y=t(m,["activeIndex","axis","children","id","moveTabFocus","setActiveIndex"]),b="horizontal"===d?"ArrowLeft":"ArrowUp",x="horizontal"===d?"ArrowRight":"ArrowDown";return o.createElement(s,e({role:"tablist","aria-orientation":d,axis:d,distribution:"fill"},y),i.map(p,(function(t,e){return r(t,{axis:d,id:"".concat(u,"-").concat(e),isActive:e===l,onFocus:function(){return v(e)},onKeyDown:function(t){t.key===b&&(t.preventDefault(),f(-1)),t.key===x&&(t.preventDefault(),f(1)),"Home"===t.key&&(t.preventDefault(),f(0)),"End"===t.key&&(t.preventDefault(),f(i.count(p)-1))},tabIndex:t.props.disabled?void 0:e!==l?-1:0})})))}m.displayName=n;export{n as TABLIST_DISPLAY_NAME,m as default};
1
+ import{__rest as t,__assign as e}from'./../ext/tslib/tslib.es6.js';import o,{Children as i,cloneElement as r}from"react";import{StackView as s}from"../StackView/StackView.js";import"../system/colors/colors.js";import"polished";import"../utils.js";import"lodash/includes";import{useThemeProps as a}from"../system/utils.js";import"../system/style-names.js";import"../system/default-theme.js";import"@emotion/react";import"../system/cxs.js";var n="TabList";function m(n){var m=a("tabs.tabList",n),l=m.activeIndex,c=m.axis,d=void 0===c?"horizontal":c,p=m.children,u=m.id,f=m.moveTabFocus,v=m.setActiveIndex,y=t(m,["activeIndex","axis","children","id","moveTabFocus","setActiveIndex"]),b="horizontal"===d?"ArrowLeft":"ArrowUp",x="horizontal"===d?"ArrowRight":"ArrowDown";return o.createElement(s,e({role:"tablist","aria-orientation":d,axis:d,distribution:"fill"},y),i.map(p,function(t,e){return r(t,{axis:d,id:"".concat(u,"-").concat(e),isActive:e===l,onFocus:function(){return v(e)},onKeyDown:function(t){t.key===b&&(t.preventDefault(),f(-1)),t.key===x&&(t.preventDefault(),f(1)),"Home"===t.key&&(t.preventDefault(),f(0)),"End"===t.key&&(t.preventDefault(),f(i.count(p)-1))},tabIndex:t.props.disabled?void 0:e!==l?-1:0})}))}m.displayName=n;export{n as TABLIST_DISPLAY_NAME,m as default};
2
2
  //# sourceMappingURL=TabList.js.map
package/dist/Tabs/Tabs.js CHANGED
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as t}from'./../ext/tslib/tslib.es6.js';import r,{useState as i,useRef as n,useCallback as o,Children as s}from"react";import{StackView as a}from"../StackView/StackView.js";import"../system/colors/colors.js";import"polished";import{generateId as l}from"../utils.js";import"lodash/includes";import{useThemeProps as m}from"../system/utils.js";import"../system/style-names.js";import"../system/default-theme.js";import"@emotion/react";import"../system/cxs.js";import c from"./Tab.js";import u,{TABLIST_DISPLAY_NAME as d}from"./TabList.js";import p from"./TabPanel.js";import f,{TABPANELS_DISPLAY_NAME as b}from"./TabPanels.js";function v(c){var u=m("tabs",c),p=u.activeIndex,f=void 0===p?null:p,v=u.children,j=u.defaultActiveIndex,y=void 0===j?0:j,h=u.onChange,x=e(u,["activeIndex","children","defaultActiveIndex","onChange"]),T=l("tabs"),I=i(y),g=I[0],A=I[1],P=n(null),E=o((function(e){h&&h(e),null===f&&A(e)}),[h,f,A]),S=o((function(){return null===f?g:f}),[f,g]),k=o((function(e,t){var r=P.current.children.length,i=e+t;i<0?i=r-1:i>=r&&(i=0);var n=P.current.children[i];return"true"===n.getAttribute("aria-disabled")?k(i,t):n}),[P]),w=o((function(e){var t=k(S(),e);t&&t.focus()}),[k,S]);return r.createElement(a,t({innerRef:function(e){e&&(P.current=e.querySelector('[role="tablist"]'))}},x),s.map(v,(function(e,t){return e&&e.type.displayName===d?r.cloneElement(e,{activeIndex:S(),id:T,moveTabFocus:w,setActiveIndex:E}):e&&e.type.displayName===b?r.cloneElement(e,{activeIndex:S(),id:T}):e})))}v.Tab=c,v.TabList=u,v.TabPanel=p,v.TabPanels=f;export{v as default};
1
+ import{__rest as e,__assign as t}from'./../ext/tslib/tslib.es6.js';import r,{useState as i,useRef as n,useCallback as o,Children as s}from"react";import{StackView as a}from"../StackView/StackView.js";import"../system/colors/colors.js";import"polished";import{generateId as l}from"../utils.js";import"lodash/includes";import{useThemeProps as m}from"../system/utils.js";import"../system/style-names.js";import"../system/default-theme.js";import"@emotion/react";import"../system/cxs.js";import c from"./Tab.js";import u,{TABLIST_DISPLAY_NAME as d}from"./TabList.js";import p from"./TabPanel.js";import f,{TABPANELS_DISPLAY_NAME as b}from"./TabPanels.js";function v(c){var u=m("tabs",c),p=u.activeIndex,f=void 0===p?null:p,v=u.children,j=u.defaultActiveIndex,y=void 0===j?0:j,h=u.onChange,x=e(u,["activeIndex","children","defaultActiveIndex","onChange"]),T=l("tabs"),I=i(y),g=I[0],A=I[1],P=n(null),E=o(function(e){h&&h(e),null===f&&A(e)},[h,f,A]),S=o(function(){return null===f?g:f},[f,g]),k=o(function(e,t){var r=P.current.children.length,i=e+t;i<0?i=r-1:i>=r&&(i=0);var n=P.current.children[i];return"true"===n.getAttribute("aria-disabled")?k(i,t):n},[P]),w=o(function(e){var t=k(S(),e);t&&t.focus()},[k,S]);return r.createElement(a,t({innerRef:function(e){e&&(P.current=e.querySelector('[role="tablist"]'))}},x),s.map(v,function(e,t){return e&&e.type.displayName===d?r.cloneElement(e,{activeIndex:S(),id:T,moveTabFocus:w,setActiveIndex:E}):e&&e.type.displayName===b?r.cloneElement(e,{activeIndex:S(),id:T}):e}))}v.Tab=c,v.TabList=u,v.TabPanel=p,v.TabPanels=f;export{v as default};
2
2
  //# sourceMappingURL=Tabs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/Text/Text.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAmDlD,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,OAAO,CAAC,CAAC,EAAE,eAAe,CAAC,CAAA;AAIvE,eAAO,MAAM,IAAI,0JAoBhB,CAAA"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/Text/Text.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAmDlD,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI,OAAO,CAAC,CAAC,EAAE,eAAe,CAAC,CAAA;AAIvE,eAAO,MAAM,IAAI,mDAId,UAAU,CAAC,CAAC,2FAgBd,CAAA"}
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as t,__spreadArray as o}from'./../ext/tslib/tslib.es6.js';import{CacheProvider as r,ThemeProvider as n}from"@emotion/react";import s from"lodash/merge";import i,{useState as m,useMemo as l,useLayoutEffect as c}from"react";import{Box as a}from"../Box/Box.js";import{createCache as d}from"../createCache.js";import"../system/colors/colors.js";import{flattenPalette as u}from"../system/colors/utils.js";import"lodash/includes";import{objectToCSSProperties as p,shallowEqual as h}from"../utils.js";import"@planningcenter/tapestry";import"lodash/get";import"polished";import v from"../system/default-theme.js";import"../system/style-names.js";import"../system/cxs.js";import{setRootStyles as f,getThemeDataAttribute as y,styleReset as g}from"./styles.js";var j="tapestry-react-theme",b={default:d({key:"tapestry-react"})};function w(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.apply(void 0,o([{}],e,!1))}var S={get:function(){return window.localStorage.getItem(j)},set:function(e){return window.localStorage.setItem(j,e)}},k="\ntry {\n var theme = window.localStorage.getItem('".concat(j,"')\n if (theme) {\n document.documentElement.dataset.theme = theme\n }\n} catch (e) {}\n"),x={};function z(e,o){var r,n,s,i,m,l;return void 0===e&&(e={}),void 0===o&&(o={}),t(t(t({},e),o),{button:t(t(t({},e.button),o.button),{themes:w((null===(r=e.button)||void 0===r?void 0:r.themes)||{},(null===(n=o.button)||void 0===n?void 0:n.themes)||{})}),colors:w(u(e.colors||{}),u(o.colors||{})),spinner:t(t(t({},e.spinner),o.spinner),{sizes:w((null===(s=e.spinner)||void 0===s?void 0:s.sizes)||{},(null===(i=o.spinner)||void 0===i?void 0:i.sizes)||{}),thickness:w((null===(m=e.spinner)||void 0===m?void 0:m.thickness)||{},(null===(l=o.spinner)||void 0===l?void 0:l.thickness)||{})})})}function E(o){var s,u=o.theme,g=void 0===u?x:u,j=o.children,w=e(o,["theme","children"]),S=m((function(){return z(v,g)})),k=S[0],E=S[1],I=l((function(){return b[g.id]||(b[g.id]=d({key:"tapestry-react-".concat(g.id)})),b[g.id]}),[g.id]);return c((function(){var e=z(v,g);f(e.id,p("colors",e.colors)),h(k,e)||E(e)}),[g]),i.createElement(r,{value:I},i.createElement(n,{theme:k},i.createElement(a,t({className:"tapestry-react-reset"},w,((s={})["".concat(y(k.id))]=!0,s)),j)))}E.cache=b.default,E.setRootStyles=f,E.styleReset=g,E.themeInitializerScript=k,E.themeStorage=S;export{E as ThemeProvider,f as setRootStyles,g as styleReset,k as themeInitializerScript,S as themeStorage};
1
+ import{__rest as e,__assign as t,__spreadArray as o}from'./../ext/tslib/tslib.es6.js';import{CacheProvider as r,ThemeProvider as n}from"@emotion/react";import s from"lodash/merge";import i,{useState as m,useMemo as l,useLayoutEffect as c}from"react";import{Box as a}from"../Box/Box.js";import{createCache as d}from"../createCache.js";import"../system/colors/colors.js";import{flattenPalette as u}from"../system/colors/utils.js";import"lodash/includes";import{objectToCSSProperties as p,shallowEqual as h}from"../utils.js";import"@planningcenter/tapestry";import"lodash/get";import"polished";import v from"../system/default-theme.js";import"../system/style-names.js";import"../system/cxs.js";import{setRootStyles as f,getThemeDataAttribute as y,styleReset as g}from"./styles.js";var j="tapestry-react-theme",b={default:d({key:"tapestry-react"})};function w(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.apply(void 0,o([{}],e,!1))}var S={get:function(){return window.localStorage.getItem(j)},set:function(e){return window.localStorage.setItem(j,e)}},k="\ntry {\n var theme = window.localStorage.getItem('".concat(j,"')\n if (theme) {\n document.documentElement.dataset.theme = theme\n }\n} catch (e) {}\n"),x={};function z(e,o){var r,n,s,i,m,l;return void 0===e&&(e={}),void 0===o&&(o={}),t(t(t({},e),o),{button:t(t(t({},e.button),o.button),{themes:w((null===(r=e.button)||void 0===r?void 0:r.themes)||{},(null===(n=o.button)||void 0===n?void 0:n.themes)||{})}),colors:w(u(e.colors||{}),u(o.colors||{})),spinner:t(t(t({},e.spinner),o.spinner),{sizes:w((null===(s=e.spinner)||void 0===s?void 0:s.sizes)||{},(null===(i=o.spinner)||void 0===i?void 0:i.sizes)||{}),thickness:w((null===(m=e.spinner)||void 0===m?void 0:m.thickness)||{},(null===(l=o.spinner)||void 0===l?void 0:l.thickness)||{})})})}function E(o){var s,u=o.theme,g=void 0===u?x:u,j=o.children,w=e(o,["theme","children"]),S=m(function(){return z(v,g)}),k=S[0],E=S[1],I=l(function(){return b[g.id]||(b[g.id]=d({key:"tapestry-react-".concat(g.id)})),b[g.id]},[g.id]);return c(function(){var e=z(v,g);f(e.id,p("colors",e.colors)),h(k,e)||E(e)},[g]),i.createElement(r,{value:I},i.createElement(n,{theme:k},i.createElement(a,t({className:"tapestry-react-reset"},w,((s={})["".concat(y(k.id))]=!0,s)),j)))}E.cache=b.default,E.setRootStyles=f,E.styleReset=g,E.themeInitializerScript=k,E.themeStorage=S;export{E as ThemeProvider,f as setRootStyles,g as styleReset,k as themeInitializerScript,S as themeStorage};
2
2
  //# sourceMappingURL=ThemeProvider.js.map
@@ -1,2 +1,2 @@
1
- import"../system/colors/colors.js";import{flattenPalette as t}from"../system/colors/utils.js";import"lodash/includes";import{objectToCSSProperties as e}from"../utils.js";import"@emotion/react";import"@planningcenter/tapestry";import"lodash/get";import"polished";import"react";import n from"../system/default-theme.js";import"../system/style-names.js";import"../system/cxs.js";function o(t){return t?"data-tapestry-react-theme-provider-".concat(t):"data-tapestry-react-theme-provider"}var r=function(t,e){var n=Object.keys(e).map((function(t){return"".concat(t,": ").concat(e[t])})).join("; ");return"[".concat(o(t),"] { ").concat(n," }")},a=function(t,e){!function(t){if("undefined"!=typeof window&&!document.getElementById("tapestry-react-style-".concat(t))){var e=document.createElement("style");e.id="tapestry-react-style-".concat(t),e.innerHTML=s,document.head.insertAdjacentElement("afterbegin",e)}}(t);var n=document.getElementById("tapestry-react-style-".concat(t)).sheet,o=r(t,e);n.deleteRule(0),n.insertRule(o,0)},i=e("colors",t(n.colors)),s="\n".concat(r(null,i),"\n\n.tapestry-react-reset {\n appearance: none;\n background-color: transparent;\n border-width: 0px;\n border-style: solid;\n border-color: transparent;\n box-sizing: border-box;\n color: inherit;\n box-sizing: border-box;\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: auto;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n font-weight: 400;\n margin-top: 0;\n margin-right: 0;\n margin-bottom: 0;\n margin-left: 0;\n min-width: 0px;\n min-height: 0px;\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n text-decoration: none;\n}\n\n.tapestry-react-reset::-moz-focus-inner {\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n border: none;\n}\n\n.tapestry-react-reset:focus:not(.focus-visible) {\n outline: 0px;\n}\n").replace(/\n/g,"").replace(/\s\s+/g," ");export{i as defaultColorProperties,o as getThemeDataAttribute,a as setRootStyles,s as styleReset};
1
+ import"../system/colors/colors.js";import{flattenPalette as t}from"../system/colors/utils.js";import'./../ext/tslib/tslib.es6.js';import"lodash/includes";import{objectToCSSProperties as e}from"../utils.js";import"@emotion/react";import"@planningcenter/tapestry";import"lodash/get";import"polished";import"react";import n from"../system/default-theme.js";import"../system/style-names.js";import"../system/cxs.js";function o(t){return t?"data-tapestry-react-theme-provider-".concat(t):"data-tapestry-react-theme-provider"}var r=function(t,e){var n=Object.keys(e).map(function(t){return"".concat(t,": ").concat(e[t])}).join("; ");return"[".concat(o(t),"] { ").concat(n," }")},i=function(t,e){!function(t){if("undefined"!=typeof window&&!document.getElementById("tapestry-react-style-".concat(t))){var e=document.createElement("style");e.id="tapestry-react-style-".concat(t),e.innerHTML=a,document.head.insertAdjacentElement("afterbegin",e)}}(t);var n=document.getElementById("tapestry-react-style-".concat(t)).sheet,o=r(t,e);n.deleteRule(0),n.insertRule(o,0)},s=e("colors",t(n.colors)),a="\n".concat(r(null,s),"\n\n.tapestry-react-reset {\n appearance: none;\n background-color: transparent;\n border-width: 0px;\n border-style: solid;\n border-color: transparent;\n box-sizing: border-box;\n color: inherit;\n box-sizing: border-box;\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: auto;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n font-weight: 400;\n margin-top: 0;\n margin-right: 0;\n margin-bottom: 0;\n margin-left: 0;\n min-width: 0px;\n min-height: 0px;\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n text-decoration: none;\n}\n\n.tapestry-react-reset::-moz-focus-inner {\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n border: none;\n}\n\n.tapestry-react-reset:focus:not(.focus-visible) {\n outline: 0px;\n}\n").replace(/\n/g,"").replace(/\s\s+/g," ");export{s as defaultColorProperties,o as getThemeDataAttribute,i as setRootStyles,a as styleReset};
2
2
  //# sourceMappingURL=styles.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as n}from'./../ext/tslib/tslib.es6.js';import t,{useRef as r,useMemo as o,useState as a}from"react";import{Box as i}from"../Box/Box.js";import u from"../Input/Input.js";import l from"../Input/InputBox.js";import c from"../Input/InputField.js";import d from"../NumberField/NumberField.js";import{padNumber as v,noop as s}from"../utils.js";import{addHoursToTime as m,addMinutesToTime as f,addTimeToDate as p,getTimeFromDate as w}from"./utils.js";var h="undefined"!=typeof window&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),g=function(r){var o=r.twelveHourClock,a=void 0===o||o,i=r.controlled,u=void 0!==i&&i,l=e(r,["twelveHourClock","controlled"]);return u?t.createElement(k,n({twelveHourClock:a},l)):t.createElement(y,n({twelveHourClock:a},l))};g.addHoursToTime=m,g.addMinutesToTime=f,g.addTimeToDate=p,g.getTimeFromDate=w;var y=function(r){var o=r.value,i=e(r,["value"]),u=a(o),l=u[0],c=u[1];return t.createElement(k,n({},i,{onChange:function(e){c(e),i.onChange&&i.onChange(e)},value:l}))},k=function(a){var m=a.ignoredKeys;a.interval;var f=a.isIOS,p=void 0!==f&&f;a.max,a.min;var w=a.onChange,g=a.twelveHourClock,y=a.value,k=e(a,["ignoredKeys","interval","isIOS","max","min","onChange","twelveHourClock","value"]),A=r(null),C=y[0],b=y[1],M=o((function(){return C<12?"AM":"PM"}),[C]),D=o((function(){return g?0===C?12:C>12?C-12:C:C}),[C]),I=function(e){var n=C-e;return n<0?23:n},x=function(e){return(C+e)%24},E=function(){w("AM"===M?[C+12,b]:[C-12,b])};return h||p?t.createElement(u,n({},k,{type:"time",autoWidth:"".concat(C,":").concat(v(b,2)," ").concat(M),value:"".concat(v(C,2),":").concat(v(b,2)),onChange:function(e){var n=e.target.value.split(":"),t=n[0],r=n[1];w(t||r?[parseInt(t,10),parseInt(r,10)]:[0,0])}})):t.createElement(l,n({ref:A,inline:!0},k),t.createElement(d,{"aria-label":"Hours",autoWidth:!1,fontVariantNumeric:"tabular-nums",grow:0,max:g?12:23,min:0,moveFocusOnMax:!0,onChange:function(e){var n=function(e){var n=e.hours,t=e.twelveHourClock,r=e.meridiem;return t?"PM"===r&&n<12?n+12:"AM"===r&&12===n?0:n:n}({hours:"string"==typeof e?parseInt(e,10):e,meridiem:M,twelveHourClock:g});w([n,b])},onKeyDown:function(e){var n;m&&m.includes(e.key)||("Backspace"===e.key&&e.preventDefault(),"ArrowRight"===e.key&&(null===(n=A.current)||void 0===n?void 0:n.node.children[2]).focus(),"ArrowUp"===e.key&&(w([x(1),b]),e.preventDefault()),"ArrowDown"===e.key&&(!function(e){w([I(e),b])}(1),e.preventDefault()))},pad:2,textAlign:"center",value:D,width:"2ch",disabled:k.disabled,ignoredKeys:m}),t.createElement(i,{as:"span",width:.5,textAlign:"center",userSelect:"none"},":"),t.createElement(d,{"aria-label":"Minutes",autoWidth:!1,fontVariantNumeric:"tabular-nums",grow:0,max:59,min:0,moveFocusOnMax:!0,onChange:function(e){return w([C,"string"==typeof e?parseInt(e,10):e])},onKeyDown:function(e){var n,t,r;"ArrowLeft"===e.key&&(null===(n=A.current)||void 0===n?void 0:n.node.children[0]).focus(),"ArrowRight"===e.key&&(null===(t=A.current)||void 0===t?void 0:t.node.children[3]).focus(),"ArrowUp"===e.key&&(w((r=b+1)<=59?[C,r]:[x(1),0]),e.preventDefault()),"ArrowDown"===e.key&&(!function(e){var n=b-e;w(n>=0?[C,n]:[I(1),59])}(1),e.preventDefault())},pad:2,textAlign:"center",value:b,width:"2ch",disabled:k.disabled,ignoredKeys:m}),g&&t.createElement(c,{"aria-label":"AM/PM",grow:0,highlightOnInteraction:!0,onChange:s,onInput:function(e){var n,t=(null!==(n=e.nativeEvent.data)&&void 0!==n?n:"").charAt(0).toLowerCase();("a"===t&&"PM"===M||"p"===t&&"AM"===M)&&E()},onKeyDown:function(e){var n;if(!m||!m.includes(e.key)){var t=e.key.toLowerCase();"Tab"===e.key||e.metaKey&&"r"===t||"a"===t&&"PM"===M||"p"===t&&"AM"===M||e.preventDefault(),"ArrowLeft"===e.key?(null===(n=A.current)||void 0===n?void 0:n.node.children[2]).focus():["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),E())}},textAlign:"center",value:M,width:"2em",disabled:k.disabled}))};export{g as default};
1
+ import{__rest as e,__assign as n}from'./../ext/tslib/tslib.es6.js';import t,{useRef as r,useMemo as o,useState as a}from"react";import{Box as i}from"../Box/Box.js";import u from"../Input/Input.js";import l from"../Input/InputBox.js";import c from"../Input/InputField.js";import d from"../NumberField/NumberField.js";import{padNumber as v,noop as s}from"../utils.js";import{addHoursToTime as m,addMinutesToTime as f,addTimeToDate as p,getTimeFromDate as w}from"./utils.js";var h="undefined"!=typeof window&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),g=function(r){var o=r.twelveHourClock,a=void 0===o||o,i=r.controlled,u=void 0!==i&&i,l=e(r,["twelveHourClock","controlled"]);return u?t.createElement(k,n({twelveHourClock:a},l)):t.createElement(y,n({twelveHourClock:a},l))};g.addHoursToTime=m,g.addMinutesToTime=f,g.addTimeToDate=p,g.getTimeFromDate=w;var y=function(r){var o=r.value,i=e(r,["value"]),u=a(o),l=u[0],c=u[1];return t.createElement(k,n({},i,{onChange:function(e){c(e),i.onChange&&i.onChange(e)},value:l}))},k=function(a){var m=a.ignoredKeys;a.interval;var f=a.isIOS,p=void 0!==f&&f;a.max,a.min;var w=a.onChange,g=a.twelveHourClock,y=a.value,k=e(a,["ignoredKeys","interval","isIOS","max","min","onChange","twelveHourClock","value"]),A=r(null),C=y[0],b=y[1],M=o(function(){return C<12?"AM":"PM"},[C]),D=o(function(){return g?0===C?12:C>12?C-12:C:C},[C]),I=function(e){var n=C-e;return n<0?23:n},x=function(e){return(C+e)%24},E=function(){w("AM"===M?[C+12,b]:[C-12,b])};return h||p?t.createElement(u,n({},k,{type:"time",autoWidth:"".concat(C,":").concat(v(b,2)," ").concat(M),value:"".concat(v(C,2),":").concat(v(b,2)),onChange:function(e){var n=e.target.value.split(":"),t=n[0],r=n[1];w(t||r?[parseInt(t,10),parseInt(r,10)]:[0,0])}})):t.createElement(l,n({ref:A,inline:!0},k),t.createElement(d,{"aria-label":"Hours",autoWidth:!1,fontVariantNumeric:"tabular-nums",grow:0,max:g?12:23,min:0,moveFocusOnMax:!0,onChange:function(e){var n=function(e){var n=e.hours,t=e.twelveHourClock,r=e.meridiem;return t?"PM"===r&&n<12?n+12:"AM"===r&&12===n?0:n:n}({hours:"string"==typeof e?parseInt(e,10):e,meridiem:M,twelveHourClock:g});w([n,b])},onKeyDown:function(e){var n;m&&m.includes(e.key)||("Backspace"===e.key&&e.preventDefault(),"ArrowRight"===e.key&&(null===(n=A.current)||void 0===n?void 0:n.node.children[2]).focus(),"ArrowUp"===e.key&&(w([x(1),b]),e.preventDefault()),"ArrowDown"===e.key&&(!function(e){w([I(e),b])}(1),e.preventDefault()))},pad:2,textAlign:"center",value:D,width:"2ch",disabled:k.disabled,ignoredKeys:m}),t.createElement(i,{as:"span",width:.5,textAlign:"center",userSelect:"none"},":"),t.createElement(d,{"aria-label":"Minutes",autoWidth:!1,fontVariantNumeric:"tabular-nums",grow:0,max:59,min:0,moveFocusOnMax:!0,onChange:function(e){return w([C,"string"==typeof e?parseInt(e,10):e])},onKeyDown:function(e){var n,t,r;"ArrowLeft"===e.key&&(null===(n=A.current)||void 0===n?void 0:n.node.children[0]).focus(),"ArrowRight"===e.key&&(null===(t=A.current)||void 0===t?void 0:t.node.children[3]).focus(),"ArrowUp"===e.key&&(w((r=b+1)<=59?[C,r]:[x(1),0]),e.preventDefault()),"ArrowDown"===e.key&&(!function(e){var n=b-e;w(n>=0?[C,n]:[I(1),59])}(1),e.preventDefault())},pad:2,textAlign:"center",value:b,width:"2ch",disabled:k.disabled,ignoredKeys:m}),g&&t.createElement(c,{"aria-label":"AM/PM",grow:0,highlightOnInteraction:!0,onChange:s,onInput:function(e){var n,t=(null!==(n=e.nativeEvent.data)&&void 0!==n?n:"").charAt(0).toLowerCase();("a"===t&&"PM"===M||"p"===t&&"AM"===M)&&E()},onKeyDown:function(e){var n;if(!m||!m.includes(e.key)){var t=e.key.toLowerCase();"Tab"===e.key||e.metaKey&&"r"===t||"a"===t&&"PM"===M||"p"===t&&"AM"===M||e.preventDefault(),"ArrowLeft"===e.key?(null===(n=A.current)||void 0===n?void 0:n.node.children[2]).focus():["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),E())}},textAlign:"center",value:M,width:"2em",disabled:k.disabled}))};export{g as default};
2
2
  //# sourceMappingURL=TimeField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenInput.d.ts","sourceRoot":"","sources":["../../src/TokenInput/TokenInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC1C;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,KAAK,EAAE,OAAO,CAAA;QACd,KAAK,EAAE,CAAC,CAAA;QACR,UAAU,EAAE,MAAM,CAAA;QAClB,MAAM,EAAE,CAAC,EAAE,CAAA;KACZ,KAAK,IAAI,CAAA;IACV;;;OAGG;IACH,WAAW,CAAC,EAAE,CACZ,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE;QACP,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;QAC5B,eAAe,EAAE,MAAM,IAAI,CAAA;QAC3B,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;QACpD,gBAAgB,EAAE,MAAM,IAAI,CAAA;QAC5B,eAAe,EAAE,MAAM,IAAI,CAAA;KAC5B,KACE,KAAK,CAAC,YAAY,CAAA;IACvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,CACZ,KAAK,EAAE,CAAC,EACR,OAAO,EAAE;QACP,gBAAgB,EAAE;YAChB,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;YAC3C,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;QACpD,gBAAgB,EAAE,MAAM,IAAI,CAAA;QAC5B,eAAe,EAAE,MAAM,IAAI,CAAA;QAC3B,eAAe,EAAE,MAAM,IAAI,CAAA;QAC3B,mBAAmB,EAAE,MAAM,IAAI,CAAA;QAC/B,UAAU,EAAE,MAAM,CAAA;KACnB,KACE,KAAK,CAAC,YAAY,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAA;CACjB;AAED,KAAK,KAAK,CAAC,CAAC,GAAG,OAAO,IAAI,eAAe,CAAC,CAAC,CAAC,CAAA;AAE5C,cAAM,UAAU,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACvD,MAAM,CAAC,KAAK,sBAAe;IAE3B,MAAM,CAAC,YAAY;;;;;MAKlB;IAED,QAAQ,EAAE,gBAAgB,CAAA;IAE1B,KAAK;;MAEJ;IAED,kBAAkB,CAAC,SAAS,KAAA;IAM5B,eAAe,aAEd;IAED,QAAQ,uBAkBP;IAED,WAAW,wCAiCV;IAED,kBAAkB,mBAWjB;IAED,iBAAiB,mBAEhB;IAED,IAAI,aAEH;IAED,KAAK,uBAEJ;IAED,eAAe,aAEd;IAED,cAAc,aAEb;IAED,MAAM;CAwFP;;AAED,wBAEC"}
1
+ {"version":3,"file":"TokenInput.d.ts","sourceRoot":"","sources":["../../src/TokenInput/TokenInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC1C;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,KAAK,EAAE,OAAO,CAAA;QACd,KAAK,EAAE,CAAC,CAAA;QACR,UAAU,EAAE,MAAM,CAAA;QAClB,MAAM,EAAE,CAAC,EAAE,CAAA;KACZ,KAAK,IAAI,CAAA;IACV;;;OAGG;IACH,WAAW,CAAC,EAAE,CACZ,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE;QACP,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;QAC5B,eAAe,EAAE,MAAM,IAAI,CAAA;QAC3B,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;QACpD,gBAAgB,EAAE,MAAM,IAAI,CAAA;QAC5B,eAAe,EAAE,MAAM,IAAI,CAAA;KAC5B,KACE,KAAK,CAAC,YAAY,CAAA;IACvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,CACZ,KAAK,EAAE,CAAC,EACR,OAAO,EAAE;QACP,gBAAgB,EAAE;YAChB,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;YAC3C,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;QACpD,gBAAgB,EAAE,MAAM,IAAI,CAAA;QAC5B,eAAe,EAAE,MAAM,IAAI,CAAA;QAC3B,eAAe,EAAE,MAAM,IAAI,CAAA;QAC3B,mBAAmB,EAAE,MAAM,IAAI,CAAA;QAC/B,UAAU,EAAE,MAAM,CAAA;KACnB,KACE,KAAK,CAAC,YAAY,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAA;CACjB;AAED,KAAK,KAAK,CAAC,CAAC,GAAG,OAAO,IAAI,eAAe,CAAC,CAAC,CAAC,CAAA;AAE5C,cAAM,UAAU,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACvD,MAAM,CAAC,KAAK,sBAAe;IAE3B,MAAM,CAAC,YAAY;;;;;MAKlB;IAED,QAAQ,EAAE,gBAAgB,CAAA;IAE1B,KAAK;;MAEJ;IAED,kBAAkB,CAAC,SAAS,KAAA;IAM5B,eAAe,aAEd;IAED,QAAQ,uBAkBP;IAED,WAAW,wCAiCV;IAED,kBAAkB,mBAWjB;IAED,iBAAiB,mBAEhB;IAED,IAAI,aAEH;IAED,KAAK,uBAEJ;IAED,eAAe,aAEd;IAED,cAAc,aAEb;IAED,MAAM;CAwFP;sEAG0B,gBAAgB,CAAC,CAAC,KAAG,WAAW,CAAC,CAAC;AAD7D,wBAEC"}
@@ -1,2 +1,2 @@
1
- import{__extends as e,__spreadArray as t,__rest as n,__assign as o}from'./../ext/tslib/tslib.es6.js';import r,{cloneElement as i,Component as a}from"react";import s from"../Input/InputBox.js";import{getBoxSize as u}from"../system/box-sizes.js";import"../system/colors/colors.js";import"polished";import"../utils.js";import"lodash/includes";import{navigateSize as l}from"../system/utils.js";import"../system/style-names.js";import"../system/default-theme.js";import"@emotion/react";import"../system/cxs.js";import{WrapView as p}from"../WrapView/WrapView.js";import{defaultRenderToken as c,defaultRenderInput as f}from"./default-renders.js";import d from"./DefaultToken.js";var b=function(a){function b(){var e=null!==a&&a.apply(this,arguments)||this;return Object.defineProperty(e,"inputBox",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(e,"state",{enumerable:!0,configurable:!0,writable:!0,value:{inputValue:""}}),Object.defineProperty(e,"clearInputValue",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.setState({inputValue:""})}}),Object.defineProperty(e,"addToken",{enumerable:!0,configurable:!0,writable:!0,value:function(n){var o=t([],e.props.tokens,!0),r=o.indexOf(n);if(r>-1){var i=o.splice(r,1);o.push(i[0])}else o.push(n);e.props.onChange&&e.props.onChange({added:!0,token:n,tokenIndex:r,tokens:o}),e.clearInputValue()}}),Object.defineProperty(e,"removeToken",{enumerable:!0,configurable:!0,writable:!0,value:function(n,o){var r=t([],e.props.tokens,!0),i=-1;n.constructor===Array?n.some((function(e){return(i=r.indexOf(e))>-1&&(r.splice(i,1),!0)})):(i=r.indexOf(n))>-1&&r.splice(i,1),e.props.onChange&&e.props.onChange({added:!1,token:n,tokenIndex:i,tokens:r}),"number"==typeof o?setTimeout((function(){e.focus(o>=r.length?void 0:o)})):e.blur()}}),Object.defineProperty(e,"handleInputKeyDown",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.target,o=n.selectionStart,r=n.selectionEnd,i=0===o&&0===r;e.props.tokens.length>0&&i&&("Backspace"===t.key||"ArrowLeft"===t.key)&&(t.preventDefault(),e.focusLastToken())}}),Object.defineProperty(e,"handleInputChange",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.setState({inputValue:t.target.value})}}),Object.defineProperty(e,"blur",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.inputBox.blur()}}),Object.defineProperty(e,"focus",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.inputBox.focus(t)}}),Object.defineProperty(e,"focusFirstToken",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.focus(0)}}),Object.defineProperty(e,"focusLastToken",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.focus(e.props.tokens.length-1)}}),e}return e(b,a),Object.defineProperty(b.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e.tokens.length!==this.props.tokens.length&&this.clearInputValue()}}),Object.defineProperty(b.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props;t.onChange;var a=t.renderInput,c=t.renderToken,f=t.tokens,b=n(t,["onChange","renderInput","renderToken","tokens"]),m={grow:1,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown,paddingLeft:0,paddingRight:0,paddingVertical:0,shrink:1,size:l(b.size,-1),stroke:!1,strokeWeight:0,value:this.state.inputValue},k=u(b.size).paddingVertical;return r.createElement(p,o({as:s,innerRef:function(t){return e.inputBox=t},role:"group",focusChildIndex:f.length,evenPadding:!0,spacing:k},b),f.map((function(t,n){var o=e.removeToken.bind(e,t),a=e.focusFirstToken,s=e.focusLastToken,u=e.focus.bind(e,n+1),l=e.focus.bind(e,n-1),p=c(t,{keyboardControls:{onKeyDown:function(e){"Backspace"===e.key&&(e.preventDefault(),o(n)),"ArrowLeft"===e.key&&(e.preventDefault(),l()),"ArrowRight"===e.key&&(e.preventDefault(),u())},tabIndex:0},removeToken:o,selectFirstToken:a,selectLastToken:s,selectNextToken:u,selectPreviousToken:l,tokenIndex:n});return"string"==typeof p?r.createElement(d,{key:p,removeToken:o,selectFirstToken:a,selectLastToken:s,selectNextToken:u,selectPreviousToken:l,token:p,tokenIndex:n}):i(p,{key:JSON.stringify(t)})})),a(m,{addToken:this.addToken,clearInputValue:this.clearInputValue,removeToken:this.removeToken,selectFirstToken:this.focusFirstToken,selectLastToken:this.focusLastToken}))}}),Object.defineProperty(b,"Token",{enumerable:!0,configurable:!0,writable:!0,value:d}),Object.defineProperty(b,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{renderInput:f,renderToken:c,size:"md",tokens:null}}),b}(a);export{b as default};
1
+ import{__extends as e,__spreadArray as t,__rest as n,__assign as o}from'./../ext/tslib/tslib.es6.js';import r,{cloneElement as i,Component as a}from"react";import s from"../Input/InputBox.js";import{getBoxSize as u}from"../system/box-sizes.js";import"../system/colors/colors.js";import"polished";import"../utils.js";import"lodash/includes";import{navigateSize as l}from"../system/utils.js";import"../system/style-names.js";import"../system/default-theme.js";import"@emotion/react";import"../system/cxs.js";import{WrapView as p}from"../WrapView/WrapView.js";import{defaultRenderToken as c,defaultRenderInput as f}from"./default-renders.js";import d from"./DefaultToken.js";var b=function(a){function b(){var e=null!==a&&a.apply(this,arguments)||this;return Object.defineProperty(e,"inputBox",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(e,"state",{enumerable:!0,configurable:!0,writable:!0,value:{inputValue:""}}),Object.defineProperty(e,"clearInputValue",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.setState({inputValue:""})}}),Object.defineProperty(e,"addToken",{enumerable:!0,configurable:!0,writable:!0,value:function(n){var o=t([],e.props.tokens,!0),r=o.indexOf(n);if(r>-1){var i=o.splice(r,1);o.push(i[0])}else o.push(n);e.props.onChange&&e.props.onChange({added:!0,token:n,tokenIndex:r,tokens:o}),e.clearInputValue()}}),Object.defineProperty(e,"removeToken",{enumerable:!0,configurable:!0,writable:!0,value:function(n,o){var r=t([],e.props.tokens,!0),i=-1;n.constructor===Array?n.some(function(e){return(i=r.indexOf(e))>-1&&(r.splice(i,1),!0)}):(i=r.indexOf(n))>-1&&r.splice(i,1),e.props.onChange&&e.props.onChange({added:!1,token:n,tokenIndex:i,tokens:r}),"number"==typeof o?setTimeout(function(){e.focus(o>=r.length?void 0:o)}):e.blur()}}),Object.defineProperty(e,"handleInputKeyDown",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.target,o=n.selectionStart,r=n.selectionEnd,i=0===o&&0===r;e.props.tokens.length>0&&i&&("Backspace"===t.key||"ArrowLeft"===t.key)&&(t.preventDefault(),e.focusLastToken())}}),Object.defineProperty(e,"handleInputChange",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.setState({inputValue:t.target.value})}}),Object.defineProperty(e,"blur",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.inputBox.blur()}}),Object.defineProperty(e,"focus",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.inputBox.focus(t)}}),Object.defineProperty(e,"focusFirstToken",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.focus(0)}}),Object.defineProperty(e,"focusLastToken",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.focus(e.props.tokens.length-1)}}),e}return e(b,a),Object.defineProperty(b.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e.tokens.length!==this.props.tokens.length&&this.clearInputValue()}}),Object.defineProperty(b.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props;t.onChange;var a=t.renderInput,c=t.renderToken,f=t.tokens,b=n(t,["onChange","renderInput","renderToken","tokens"]),m={grow:1,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown,paddingLeft:0,paddingRight:0,paddingVertical:0,shrink:1,size:l(b.size,-1),stroke:!1,strokeWeight:0,value:this.state.inputValue},k=u(b.size).paddingVertical;return r.createElement(p,o({as:s,innerRef:function(t){return e.inputBox=t},role:"group",focusChildIndex:f.length,evenPadding:!0,spacing:k},b),f.map(function(t,n){var o=e.removeToken.bind(e,t),a=e.focusFirstToken,s=e.focusLastToken,u=e.focus.bind(e,n+1),l=e.focus.bind(e,n-1),p=c(t,{keyboardControls:{onKeyDown:function(e){"Backspace"===e.key&&(e.preventDefault(),o(n)),"ArrowLeft"===e.key&&(e.preventDefault(),l()),"ArrowRight"===e.key&&(e.preventDefault(),u())},tabIndex:0},removeToken:o,selectFirstToken:a,selectLastToken:s,selectNextToken:u,selectPreviousToken:l,tokenIndex:n});return"string"==typeof p?r.createElement(d,{key:p,removeToken:o,selectFirstToken:a,selectLastToken:s,selectNextToken:u,selectPreviousToken:l,token:p,tokenIndex:n}):i(p,{key:JSON.stringify(t)})}),a(m,{addToken:this.addToken,clearInputValue:this.clearInputValue,removeToken:this.removeToken,selectFirstToken:this.focusFirstToken,selectLastToken:this.focusLastToken}))}}),Object.defineProperty(b,"Token",{enumerable:!0,configurable:!0,writable:!0,value:d}),Object.defineProperty(b,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{renderInput:f,renderToken:c,size:"md",tokens:null}}),b}(a);export{b as default};
2
2
  //# sourceMappingURL=TokenInput.js.map
@@ -1,2 +1,2 @@
1
- import{__extends as e,__rest as t,__assign as r}from'./../ext/tslib/tslib.es6.js';import a,{Children as o,cloneElement as n,Component as i}from"react";import l from"../Badge/Badge.js";import s from"../HelperDrawer/HelperDrawer.js";import{StackView as c}from"../StackView/StackView.js";import{generateId as u}from"../utils.js";import p from"./Action.js";var m=function(i){function m(){var e=null!==i&&i.apply(this,arguments)||this;return Object.defineProperty(e,"helperDrawerId",{enumerable:!0,configurable:!0,writable:!0,value:u("toolbar-helper-drawer")}),e}return e(m,i),Object.defineProperty(m.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,i=e.actions,u=e.count,p=e.countColor,m=e.helpContent,f=e.onStatusClearRequest,d=e.status,b=e.title,g=t(e,["actions","count","countColor","helpContent","onStatusClearRequest","status","title"]);return a.createElement(c,r({},g),a.createElement(c,{alignment:"center",axis:"horizontal",distribution:"space-between",spacing:1},a.createElement(c,{alignment:"center",axis:"horizontal",grow:1,shrink:1},b,u&&a.createElement(l,{color:p,marginLeft:.75,radius:"circle",size:"xs",title:"".concat(u)}),m&&a.createElement(s.Toggle,{drawerId:this.helperDrawerId,marginLeft:.25,tooltip:{title:"More info",triggerOnFocus:!1}})),(d||i)&&a.createElement(c,{axis:"horizontal",spacing:d&&i?1:0},d&&a.createElement(l.Status,{onClearRequest:f,size:"xs",status:d,title:"success"===d?"Saved":"Error"}),i&&a.createElement(c,{axis:"horizontal",spacing:Array.isArray(i)&&i.length>1?1:0},o.map(i,(function(e){return"ToolbarAction"===function(e){if(!(null==e?void 0:e.type)||"string"==typeof e.type)return;var t=e.type;return t.displayName}(e)?e:n(e,{size:e.props.size||"xs",theme:e.props.theme||"primary",variant:e.props.variant||"outline"})}))))),m&&a.createElement(s,{id:this.helperDrawerId,marginTop:1},m))}}),Object.defineProperty(m,"Action",{enumerable:!0,configurable:!0,writable:!0,value:p}),Object.defineProperty(m,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{countColor:"grey-7"}}),m}(i);export{m as default};
1
+ import{__extends as e,__rest as t,__assign as r}from'./../ext/tslib/tslib.es6.js';import a,{Children as o,cloneElement as n,Component as i}from"react";import l from"../Badge/Badge.js";import s from"../HelperDrawer/HelperDrawer.js";import{StackView as c}from"../StackView/StackView.js";import{generateId as u}from"../utils.js";import p from"./Action.js";var m=function(i){function m(){var e=null!==i&&i.apply(this,arguments)||this;return Object.defineProperty(e,"helperDrawerId",{enumerable:!0,configurable:!0,writable:!0,value:u("toolbar-helper-drawer")}),e}return e(m,i),Object.defineProperty(m.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,i=e.actions,u=e.count,p=e.countColor,m=e.helpContent,f=e.onStatusClearRequest,d=e.status,b=e.title,g=t(e,["actions","count","countColor","helpContent","onStatusClearRequest","status","title"]);return a.createElement(c,r({},g),a.createElement(c,{alignment:"center",axis:"horizontal",distribution:"space-between",spacing:1},a.createElement(c,{alignment:"center",axis:"horizontal",grow:1,shrink:1},b,u&&a.createElement(l,{color:p,marginLeft:.75,radius:"circle",size:"xs",title:"".concat(u)}),m&&a.createElement(s.Toggle,{drawerId:this.helperDrawerId,marginLeft:.25,tooltip:{title:"More info",triggerOnFocus:!1}})),(d||i)&&a.createElement(c,{axis:"horizontal",spacing:d&&i?1:0},d&&a.createElement(l.Status,{onClearRequest:f,size:"xs",status:d,title:"success"===d?"Saved":"Error"}),i&&a.createElement(c,{axis:"horizontal",spacing:Array.isArray(i)&&i.length>1?1:0},o.map(i,function(e){return"ToolbarAction"===function(e){if(!(null==e?void 0:e.type)||"string"==typeof e.type)return;var t=e.type;return t.displayName}(e)?e:n(e,{size:e.props.size||"xs",theme:e.props.theme||"primary",variant:e.props.variant||"outline"})})))),m&&a.createElement(s,{id:this.helperDrawerId,marginTop:1},m))}}),Object.defineProperty(m,"Action",{enumerable:!0,configurable:!0,writable:!0,value:p}),Object.defineProperty(m,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{countColor:"grey-7"}}),m}(i);export{m as default};
2
2
  //# sourceMappingURL=Toolbar.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as n}from'./../ext/tslib/tslib.es6.js';import{token as o}from"@planningcenter/tapestry";import r from"mitt";import t,{forwardRef as u,useRef as i,useState as l,useEffect as c,useImperativeHandle as s,Children as m,cloneElement as p}from"react";import{Popover as a}from"../Popover/Popover.js";import"../system/colors/colors.js";import"polished";import{pageViewChange as f,composeEvents as d}from"../utils.js";import"lodash/includes";import{useThemeProps as v}from"../system/utils.js";import"../system/style-names.js";import"../system/default-theme.js";import"@emotion/react";import"../system/cxs.js";var T=r(),O=null,g=!1;var y=u((function(r,u){var y=v("tooltip",r),I=y.children,E=y.openDelay,M=void 0===E?500:E,P=y.closeDelay,L=void 0===P?300:P,h=y.defaultOpen,j=void 0!==h&&h,S=y.keepInView,_=void 0===S||S,x=y.placement,z=y.popoverProps,D=y.renderTo,w=y.title,F=y.triggerOnFocus,b=void 0===F||F,k=y.triggerOnHover,A=void 0===k||k,C=y.zIndex,V=void 0===C?1e4:C,H=y.refAsInnerRef,N=void 0===H||H,R=e(y,["children","openDelay","closeDelay","defaultOpen","keepInView","placement","popoverProps","renderTo","title","triggerOnFocus","triggerOnHover","zIndex","refAsInnerRef"]),B=i(!0),U=i(!1),q=i(null),G=i(null),J=l(j),K=J[0],Q=J[1];c((function(){var e=f((function(e){return setTimeout((function(){return B.current=e}))}));return T.on("CLOSE_OPEN_TOOLTIPS",X),function(){T.off("CLOSE_OPEN_TOOLTIPS",X),clearTimeout(q.current),clearTimeout(G.current),e()}}),[]);var W=function(){clearTimeout(G.current),G.current=null,Q(!0)},X=function(){clearTimeout(q.current),q.current=null,Q(!1)},Y=function(){Q(!K)};s(u,(function(){return{close:X,open:W,toggle:Y}})),c((function(){!1===b&&X()}),[b]),c((function(){!1===A&&X()}),[A]);var Z=function(){clearTimeout(O),null===q.current&&(clearTimeout(G.current),G.current=null,!1===K&&(T.emit("CLOSE_OPEN_TOOLTIPS"),q.current=setTimeout((function(){return W()}),g?0:M)))},$=function(){g=!0,O=setTimeout((function(){g=!1}),500),null===G.current&&(clearTimeout(q.current),q.current=null,G.current=setTimeout((function(){return X()}),L))},ee=m.only(I),ne=ee.props,oe=ne.onFocus,re=ne.onBlur,te=ne.onMouseEnter,ue=ne.onMouseLeave,ie=ne.onMouseDown,le=ne.onMouseUp;return w?(b&&(R.onFocus=d((function(){B.current&&!U.current&&W()}),oe),R.onBlur=d(X,re),R.onMouseDown=d((function(){U.current=!0,X()}),ie),R.onMouseUp=d((function(){U.current=!1}),le)),A&&(R.onMouseEnter=d(Z,te),R.onMouseLeave=d($,ue)),t.createElement(a,n({shouldFlip:!0,paddingHorizontal:o("--t-spacing-1"),paddingVertical:o("--t-spacing-half"),fontSize:o("--t-font-size-sm"),textAlign:"center",radius:o("--t-border-radius-md"),backgroundColor:o("--t-fill-color-tooltip"),color:"#fff",zIndex:V},z,{anchorElement:p(ee,R),onMouseEnter:Z,onMouseLeave:$,keepInView:_,placement:x,renderTo:D,open:K,refAsInnerRef:N}),w)):p(ee,R)}));export{y as default};
1
+ import{__rest as e,__assign as n}from'./../ext/tslib/tslib.es6.js';import{token as o}from"@planningcenter/tapestry";import r from"mitt";import t,{forwardRef as u,useRef as i,useState as l,useEffect as c,useImperativeHandle as s,Children as m,cloneElement as p}from"react";import{Popover as a}from"../Popover/Popover.js";import"../system/colors/colors.js";import"polished";import{pageViewChange as f,composeEvents as d}from"../utils.js";import"lodash/includes";import{useThemeProps as v}from"../system/utils.js";import"../system/style-names.js";import"../system/default-theme.js";import"@emotion/react";import"../system/cxs.js";var T=r(),O=null,g=!1;var y=u(function(r,u){var y=v("tooltip",r),I=y.children,E=y.openDelay,M=void 0===E?500:E,P=y.closeDelay,L=void 0===P?300:P,h=y.defaultOpen,j=void 0!==h&&h,S=y.keepInView,_=void 0===S||S,x=y.placement,z=y.popoverProps,D=y.renderTo,w=y.title,F=y.triggerOnFocus,b=void 0===F||F,k=y.triggerOnHover,A=void 0===k||k,C=y.zIndex,V=void 0===C?1e4:C,H=y.refAsInnerRef,N=void 0===H||H,R=e(y,["children","openDelay","closeDelay","defaultOpen","keepInView","placement","popoverProps","renderTo","title","triggerOnFocus","triggerOnHover","zIndex","refAsInnerRef"]),B=i(!0),U=i(!1),q=i(null),G=i(null),J=l(j),K=J[0],Q=J[1];c(function(){var e=f(function(e){return setTimeout(function(){return B.current=e})});return T.on("CLOSE_OPEN_TOOLTIPS",X),function(){T.off("CLOSE_OPEN_TOOLTIPS",X),clearTimeout(q.current),clearTimeout(G.current),e()}},[]);var W=function(){clearTimeout(G.current),G.current=null,Q(!0)},X=function(){clearTimeout(q.current),q.current=null,Q(!1)},Y=function(){Q(!K)};s(u,function(){return{close:X,open:W,toggle:Y}}),c(function(){!1===b&&X()},[b]),c(function(){!1===A&&X()},[A]);var Z=function(){clearTimeout(O),null===q.current&&(clearTimeout(G.current),G.current=null,!1===K&&(T.emit("CLOSE_OPEN_TOOLTIPS"),q.current=setTimeout(function(){return W()},g?0:M)))},$=function(){g=!0,O=setTimeout(function(){g=!1},500),null===G.current&&(clearTimeout(q.current),q.current=null,G.current=setTimeout(function(){return X()},L))},ee=m.only(I),ne=ee.props,oe=ne.onFocus,re=ne.onBlur,te=ne.onMouseEnter,ue=ne.onMouseLeave,ie=ne.onMouseDown,le=ne.onMouseUp;return w?(b&&(R.onFocus=d(function(){B.current&&!U.current&&W()},oe),R.onBlur=d(X,re),R.onMouseDown=d(function(){U.current=!0,X()},ie),R.onMouseUp=d(function(){U.current=!1},le)),A&&(R.onMouseEnter=d(Z,te),R.onMouseLeave=d($,ue)),t.createElement(a,n({shouldFlip:!0,paddingHorizontal:o("--t-spacing-1"),paddingVertical:o("--t-spacing-half"),fontSize:o("--t-font-size-sm"),textAlign:"center",radius:o("--t-border-radius-md"),backgroundColor:o("--t-fill-color-tooltip"),color:"#fff",zIndex:V},z,{anchorElement:p(ee,R),onMouseEnter:Z,onMouseLeave:$,keepInView:_,placement:x,renderTo:D,open:K,refAsInnerRef:N}),w)):p(ee,R)});export{y as default};
2
2
  //# sourceMappingURL=Tooltip.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as r}from'./../ext/tslib/tslib.es6.js';import e,{createContext as t,useContext as n}from"react";var i=t({});function o(){var r=n(i);return r?Object.keys(r).filter((function(e){return r[e]})):null}function l(t){var n=t.children,l=r(t,["children"]);return o(),e.createElement(i.Provider,{value:l},n)}export{l as VariantProvider,o as useVariant};
1
+ import{__rest as r}from'./../ext/tslib/tslib.es6.js';import e,{createContext as t,useContext as n}from"react";var i=t({});function o(){var r=n(i);return r?Object.keys(r).filter(function(e){return r[e]}):null}function l(t){var n=t.children,l=r(t,["children"]);return o(),e.createElement(i.Provider,{value:l},n)}export{l as VariantProvider,o as useVariant};
2
2
  //# sourceMappingURL=VariantProvider.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as t}from'./../ext/tslib/tslib.es6.js';import{useContext as r,useEffect as e}from"react";import o from"./WizardContext.js";function a(a){var d=a.children,i=a.name,n=a.valid,m=r(o),l=m.addStep,s=t(m,["addStep"]);return e((function(){return l({name:i,valid:n})}),[]),d(s)}export{a as default};
1
+ import{__rest as t}from'./../ext/tslib/tslib.es6.js';import{useContext as r,useEffect as e}from"react";import o from"./WizardContext.js";function a(a){var d=a.children,i=a.name,n=a.valid,m=r(o),l=m.addStep,s=t(m,["addStep"]);return e(function(){return l({name:i,valid:n})},[]),d(s)}export{a as default};
2
2
  //# sourceMappingURL=Step.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as t,__spreadArray as n}from'./../ext/tslib/tslib.es6.js';import r,{useState as o,useReducer as i,useCallback as a,Children as s}from"react";import{Button as l}from"../Button/Button.js";import{Card as m}from"../Card/Card.js";import{Divider as c}from"../Divider/Divider.js";import p from"../PagerView/PagerView.js";import{StackView as u}from"../StackView/StackView.js";import d from"../StepperProgress/StepperProgress.js";import"../system/colors/colors.js";import"polished";import"../utils.js";import"lodash/includes";import{useThemeProps as f}from"../system/utils.js";import"../system/style-names.js";import"../system/default-theme.js";import"@emotion/react";import"../system/cxs.js";import{Text as v}from"../Text/Text.js";import g from"./Step.js";import P from"./WizardContext.js";var S=function(g){var S=f("wizard",g),x=S.alwaysCancellable,j=S.autoFocus,b=void 0===j||j,y=S.backButtonProps,E=S.buttonProps,h=S.cancelButtonProps,k=S.children,B=S.footerProps,C=S.initialPayload,w=void 0===C?{}:C,z=S.nextButtonProps,I=S.nextButtonTitle,T=void 0===I?function(e){var t=e.activeStepIndex;return e.steps,t>=e.totalSteps-1?"Finish":"Next"}:I,V=S.onCancel,F=S.onSubmit,W=S.renderProgress,D=e(S,["alwaysCancellable","autoFocus","backButtonProps","buttonProps","cancelButtonProps","children","footerProps","initialPayload","nextButtonProps","nextButtonTitle","onCancel","onSubmit","renderProgress"]),L=o(0),N=L[0],_=L[1],q=o([]),A=q[0],G=q[1],H=o(!1),J=H[0],K=H[1],M=A.length,O=i((function(e,n){return t(t({},e),n)}),w),Q=O[0],R=O[1],U=a((function(e){return G((function(t){return n(n([],t,!0),[e],!1)})),function(){G((function(t){return t.filter((function(t){return t.name!==e.name}))}))}}),[]),X=a((function(){var e=A[N];return!e||!e.valid||e.valid(Q)}),[N,A,Q]),Y=a((function(){if(F){K(!0),F(Q,(function(){return K(!1)}))}}),[F,Q]);return r.createElement(P.Provider,{value:{activeStepIndex:N,addStep:U,payload:Q,setPayload:R,totalSteps:M}},r.createElement(u,t({alignment:"center",minWidth:48,maxWidth:96},D),W?W({activeStepIndex:N,steps:A,totalSteps:M}):r.createElement(d,{width:"80%",paddingTop:6,paddingBottom:4,activeStepIndex:N},A.map((function(e,t){return r.createElement(d.Step,{key:t,renderEnd:r.createElement(v,{align:"center",marginTop:2},e.name)})}))),r.createElement(m,{spacing:r.createElement(c,null),elevation:1},r.createElement(p,{activeViewIndex:N,autoFocus:b},s.map(k,(function(e,t){return r.createElement(p.View,{key:t},e)}))),r.createElement(u,t({axis:"horizontal",distribution:N>0?"space-between":"end",padding:1,spacing:1},B),N>0&&r.createElement(l,t({disabled:J,iconLeft:{name:"general.leftChevron",size:"sm"},onClick:function(){return _(N-1)},size:"lg",title:"Back",variant:"naked"},E,y)),(x||0===N)&&V&&r.createElement(l,t({disabled:J,onClick:V,size:"lg",title:"Cancel",variant:"naked",marginLeft:x?"auto":void 0},E,h)),r.createElement(l,t({disabled:!X(),onClick:function(){return N>=M-1?Y():_(N+1)},size:"lg",spinner:J,theme:"primary",title:T({activeStepIndex:N,steps:A,totalSteps:M})},E,z))))))};S.Step=g;export{S as default};
1
+ import{__rest as e,__assign as t,__spreadArray as n}from'./../ext/tslib/tslib.es6.js';import r,{useState as o,useReducer as i,useCallback as a,Children as s}from"react";import{Button as l}from"../Button/Button.js";import{Card as m}from"../Card/Card.js";import{Divider as c}from"../Divider/Divider.js";import p from"../PagerView/PagerView.js";import{StackView as u}from"../StackView/StackView.js";import d from"../StepperProgress/StepperProgress.js";import"../system/colors/colors.js";import"polished";import"../utils.js";import"lodash/includes";import{useThemeProps as f}from"../system/utils.js";import"../system/style-names.js";import"../system/default-theme.js";import"@emotion/react";import"../system/cxs.js";import{Text as v}from"../Text/Text.js";import g from"./Step.js";import P from"./WizardContext.js";var S=function(g){var S=f("wizard",g),x=S.alwaysCancellable,j=S.autoFocus,b=void 0===j||j,y=S.backButtonProps,E=S.buttonProps,h=S.cancelButtonProps,k=S.children,B=S.footerProps,C=S.initialPayload,w=void 0===C?{}:C,z=S.nextButtonProps,I=S.nextButtonTitle,T=void 0===I?function(e){var t=e.activeStepIndex;return e.steps,t>=e.totalSteps-1?"Finish":"Next"}:I,V=S.onCancel,F=S.onSubmit,W=S.renderProgress,D=e(S,["alwaysCancellable","autoFocus","backButtonProps","buttonProps","cancelButtonProps","children","footerProps","initialPayload","nextButtonProps","nextButtonTitle","onCancel","onSubmit","renderProgress"]),L=o(0),N=L[0],_=L[1],q=o([]),A=q[0],G=q[1],H=o(!1),J=H[0],K=H[1],M=A.length,O=i(function(e,n){return t(t({},e),n)},w),Q=O[0],R=O[1],U=a(function(e){return G(function(t){return n(n([],t,!0),[e],!1)}),function(){G(function(t){return t.filter(function(t){return t.name!==e.name})})}},[]),X=a(function(){var e=A[N];return!e||!e.valid||e.valid(Q)},[N,A,Q]),Y=a(function(){if(F){K(!0),F(Q,function(){return K(!1)})}},[F,Q]);return r.createElement(P.Provider,{value:{activeStepIndex:N,addStep:U,payload:Q,setPayload:R,totalSteps:M}},r.createElement(u,t({alignment:"center",minWidth:48,maxWidth:96},D),W?W({activeStepIndex:N,steps:A,totalSteps:M}):r.createElement(d,{width:"80%",paddingTop:6,paddingBottom:4,activeStepIndex:N},A.map(function(e,t){return r.createElement(d.Step,{key:t,renderEnd:r.createElement(v,{align:"center",marginTop:2},e.name)})})),r.createElement(m,{spacing:r.createElement(c,null),elevation:1},r.createElement(p,{activeViewIndex:N,autoFocus:b},s.map(k,function(e,t){return r.createElement(p.View,{key:t},e)})),r.createElement(u,t({axis:"horizontal",distribution:N>0?"space-between":"end",padding:1,spacing:1},B),N>0&&r.createElement(l,t({disabled:J,iconLeft:{name:"general.leftChevron",size:"sm"},onClick:function(){return _(N-1)},size:"lg",title:"Back",variant:"naked"},E,y)),(x||0===N)&&V&&r.createElement(l,t({disabled:J,onClick:V,size:"lg",title:"Cancel",variant:"naked",marginLeft:x?"auto":void 0},E,h)),r.createElement(l,t({disabled:!X(),onClick:function(){return N>=M-1?Y():_(N+1)},size:"lg",spinner:J,theme:"primary",title:T({activeStepIndex:N,steps:A,totalSteps:M})},E,z))))))};S.Step=g;export{S as default};
2
2
  //# sourceMappingURL=Wizard.js.map
@@ -1,2 +1,2 @@
1
- var t=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),e="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,n="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),r="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(n):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var i=["top","right","bottom","left","width","height","size","weight"],o="undefined"!=typeof MutationObserver,s=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,o=0;function s(){n&&(n=!1,t()),i&&c()}function a(){r(s)}function c(){var t=Date.now();if(n){if(t-o<2)return;i=!0}else n=!0,i=!1,setTimeout(a,e);o=t}return c}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){e&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),o?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){e&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;i.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),a=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},c=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||n},h=l(0,0,0,0);function u(t){return parseFloat(t)||0}function f(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+u(t["border-"+n+"-width"])}),0)}function d(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return h;var r=c(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=u(o)}return e}(r),o=i.left+i.right,s=i.top+i.bottom,a=u(r.width),d=u(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==e&&(a-=f(r,"left","right")+o),Math.round(d+s)!==n&&(d-=f(r,"top","bottom")+s)),!function(t){return t===c(t).document.documentElement}(t)){var p=Math.round(a+o)-e,v=Math.round(d+s)-n;1!==Math.abs(p)&&(a-=p),1!==Math.abs(v)&&(d-=v)}return l(i.left,i.top,a,d)}var p="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof c(t).SVGGraphicsElement}:function(t){return t instanceof c(t).SVGElement&&"function"==typeof t.getBBox};function v(t){return e?p(t)?function(t){var e=t.getBBox();return l(0,0,e.width,e.height)}(t):d(t):h}function l(t,e,n,r){return{x:t,y:e,width:n,height:r}}var _=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=l(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=v(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),b=function(t,e){var n,r,i,o,s,c,h,u=(r=(n=e).x,i=n.y,o=n.width,s=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,h=Object.create(c.prototype),a(h,{x:r,y:i,width:o,height:s,top:i,right:r+o,bottom:s+i,left:r}),h);a(this,{target:t,contentRect:u})},m=function(){function e(e,n,r){if(this.activeObservations_=[],this.observations_=new t,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new _(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new b(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),y="undefined"!=typeof WeakMap?new WeakMap:new t,g=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new m(e,n,this);y.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){g.prototype[t]=function(){var e;return(e=y.get(this))[t].apply(e,arguments)}}));var w=void 0!==n.ResizeObserver?n.ResizeObserver:g;export{w as default};
1
+ var t=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),e="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,n="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),r="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(n):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)};var i=["top","right","bottom","left","width","height","size","weight"],o="undefined"!=typeof MutationObserver,s=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,o=0;function s(){n&&(n=!1,t()),i&&c()}function a(){r(s)}function c(){var t=Date.now();if(n){if(t-o<2)return;i=!0}else n=!0,i=!1,setTimeout(a,e);o=t}return c}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){e&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),o?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){e&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;i.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),a=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},c=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||n},h=l(0,0,0,0);function u(t){return parseFloat(t)||0}function f(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+u(t["border-"+n+"-width"])},0)}function d(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return h;var r=c(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=u(o)}return e}(r),o=i.left+i.right,s=i.top+i.bottom,a=u(r.width),d=u(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==e&&(a-=f(r,"left","right")+o),Math.round(d+s)!==n&&(d-=f(r,"top","bottom")+s)),!function(t){return t===c(t).document.documentElement}(t)){var p=Math.round(a+o)-e,v=Math.round(d+s)-n;1!==Math.abs(p)&&(a-=p),1!==Math.abs(v)&&(d-=v)}return l(i.left,i.top,a,d)}var p="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof c(t).SVGGraphicsElement}:function(t){return t instanceof c(t).SVGElement&&"function"==typeof t.getBBox};function v(t){return e?p(t)?function(t){var e=t.getBBox();return l(0,0,e.width,e.height)}(t):d(t):h}function l(t,e,n,r){return{x:t,y:e,width:n,height:r}}var _=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=l(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=v(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),b=function(t,e){var n,r,i,o,s,c,h,u=(r=(n=e).x,i=n.y,o=n.width,s=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,h=Object.create(c.prototype),a(h,{x:r,y:i,width:o,height:s,top:i,right:r+o,bottom:s+i,left:r}),h);a(this,{target:t,contentRect:u})},m=function(){function e(e,n,r){if(this.activeObservations_=[],this.observations_=new t,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new _(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new b(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),y="undefined"!=typeof WeakMap?new WeakMap:new t,g=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new m(e,n,this);y.set(this,r)};["observe","unobserve","disconnect"].forEach(function(t){g.prototype[t]=function(){var e;return(e=y.get(this))[t].apply(e,arguments)}});var w=void 0!==n.ResizeObserver?n.ResizeObserver:g;export{w as default};
2
2
  //# sourceMappingURL=ResizeObserver.es.js.map
@@ -1,2 +1,2 @@
1
- var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};function r(r,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++)for(var e in r=arguments[o])Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);return t},o.apply(this,arguments)};function n(t,r){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(n=Object.getOwnPropertySymbols(t);e<n.length;e++)r.indexOf(n[e])<0&&Object.prototype.propertyIsEnumerable.call(t,n[e])&&(o[n[e]]=t[n[e]])}return o}function e(t,r,o){if(o||2===arguments.length)for(var n,e=0,c=r.length;e<c;e++)!n&&e in r||(n||(n=Array.prototype.slice.call(r,0,e)),n[e]=r[e]);return t.concat(n||Array.prototype.slice.call(r))}export{o as __assign,r as __extends,n as __rest,e as __spreadArray};
1
+ var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};function r(r,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}var o=function(){return o=Object.assign||function(t){for(var r,o=1,e=arguments.length;o<e;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t},o.apply(this,arguments)};function e(t,r){var o={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(o[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(e=Object.getOwnPropertySymbols(t);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(t,e[n])&&(o[e[n]]=t[e[n]])}return o}function n(t,r,o){if(o||2===arguments.length)for(var e,n=0,p=r.length;n<p;n++)!e&&n in r||(e||(e=Array.prototype.slice.call(r,0,n)),e[n]=r[n]);return t.concat(e||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;export{o as __assign,r as __extends,e as __rest,n as __spreadArray};
2
2
  //# sourceMappingURL=tslib.es6.js.map
@@ -1,2 +1,2 @@
1
- import*as e from"react";import r from"../Icon/Icon.js";import{StackView as t}from"../StackView/StackView.js";import{Text as o}from"../Text/Text.js";function n(n,i){if("production"===process.env.NODE_ENV)return{};var a=e.useRef(null),c={closeDelay:300,openDelay:0,popoverProps:{backgroundColor:"surface",color:"foreground",elevation:2,paddingHorizontal:2,paddingVertical:2,stroke:"separator",strokeWeight:1,textAlign:"left"},title:e.createElement(t,{width:32,spacing:1,cursor:"default"},e.createElement(t,{axis:"horizontal",alignment:"center",spacing:1},e.createElement(r,{name:"general.exclamationCircle",size:"md",color:"error"}),e.createElement(o,{fontSize:3,weight:500},"Accessibility Violation")),e.createElement(o,{fontSize:3,lineHeight:3},n))},l={innerRef:a,stroke:"error",strokeAlign:"outside",strokeWeight:4};return e.useEffect((function(){a.current&&console.error(i,a.current)}),[]),{tooltipProps:c,wrapperProps:l}}export{n as useAccessibilityViolation};
1
+ import*as e from"react";import r from"../Icon/Icon.js";import{StackView as t}from"../StackView/StackView.js";import{Text as o}from"../Text/Text.js";function n(n,i){if("production"===process.env.NODE_ENV)return{};var a=e.useRef(null),c={closeDelay:300,openDelay:0,popoverProps:{backgroundColor:"surface",color:"foreground",elevation:2,paddingHorizontal:2,paddingVertical:2,stroke:"separator",strokeWeight:1,textAlign:"left"},title:e.createElement(t,{width:32,spacing:1,cursor:"default"},e.createElement(t,{axis:"horizontal",alignment:"center",spacing:1},e.createElement(r,{name:"general.exclamationCircle",size:"md",color:"error"}),e.createElement(o,{fontSize:3,weight:500},"Accessibility Violation")),e.createElement(o,{fontSize:3,lineHeight:3},n))},l={innerRef:a,stroke:"error",strokeAlign:"outside",strokeWeight:4};return e.useEffect(function(){a.current&&console.error(i,a.current)},[]),{tooltipProps:c,wrapperProps:l}}export{n as useAccessibilityViolation};
2
2
  //# sourceMappingURL=use-accessibility-violation.js.map
@@ -1,2 +1,2 @@
1
- import{useRef as n,useEffect as t}from"react";function e(e,r){var o=n(r);t((function(){o.current=r}),[r]),t((function(){function n(n){o.current(n)}return document.addEventListener(e,n),function(){document.removeEventListener(e,n)}}),[])}export{e as useDocumentEvent};
1
+ import{useRef as n,useEffect as t}from"react";function e(e,r){var o=n(r);t(function(){o.current=r},[r]),t(function(){function n(n){o.current(n)}return document.addEventListener(e,n),function(){document.removeEventListener(e,n)}},[])}export{e as useDocumentEvent};
2
2
  //# sourceMappingURL=use-document-event.js.map
@@ -1,2 +1,2 @@
1
- import n from"mousetrap";import{useEffect as t}from"react";function r(r,o){function u(){r&&Object.keys(r).forEach((function(t){return n.unbind(t)}))}return t((function(){return function(){u()}}),[]),{bindKeyboardShortcuts:function(){r&&Object.keys(r).forEach((function(t){return n.bind(t,r[t].bind(null,o))}))},unbindKeyboardShortcuts:u}}export{r as useKeyboardShortcuts};
1
+ import n from"mousetrap";import{useEffect as t}from"react";function r(r,o){function u(){r&&Object.keys(r).forEach(function(t){return n.unbind(t)})}return t(function(){return function(){u()}},[]),{bindKeyboardShortcuts:function(){r&&Object.keys(r).forEach(function(t){return n.bind(t,r[t].bind(null,o))})},unbindKeyboardShortcuts:u}}export{r as useKeyboardShortcuts};
2
2
  //# sourceMappingURL=use-keyboard-shortcuts.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e}from'./../ext/tslib/tslib.es6.js';import n from"mitt";import*as t from"react";import r from'./../ext/resize-observer-polyfill/dist/ResizeObserver.es.js';var u=null,o=n(),f=function(){null===u&&(u=window.requestAnimationFrame((function(){o.emit("measure"),window.requestAnimationFrame((function(){u=null}))})))},i="undefined"==typeof window?{}:new MutationObserver(f),s="undefined"==typeof window?{}:new r(f);function c(){var r=t.useRef([]),u=t.useCallback((function(e){-1===r.current.indexOf(e)&&r.current.push(e)}),[]),f=t.useMemo((function(){var e=n();return e.on("storeRef",u),e}),[u]);return[function(e){var n=t.useRef(void 0),r=e||n;return t.useLayoutEffect((function(){var e=r.current;return i.observe(e,{characterData:!0,childList:!0,subtree:!0}),s.observe(e),function(){s.unobserve(e)}}),[]),t.useLayoutEffect((function(){f.emit("storeRef",r.current)})),r},function(n,i){void 0===i&&(i=[]),t.useLayoutEffect((function(){function t(){n(e([],r.current,!0))}return t(),o.on("measure",t),function(){o.off("measure",t)}}),i),t.useLayoutEffect((function(){return function(){r.current=[]}})),t.useEffect((function(){return function(){f.off("storeRef",u)}}),[])}]}export{c as useMeasure};
1
+ import{__spreadArray as e}from'./../ext/tslib/tslib.es6.js';import n from"mitt";import*as t from"react";import r from'./../ext/resize-observer-polyfill/dist/ResizeObserver.es.js';var u=null,o=n(),f=function(){null===u&&(u=window.requestAnimationFrame(function(){o.emit("measure"),window.requestAnimationFrame(function(){u=null})}))},i="undefined"==typeof window?{}:new MutationObserver(f),s="undefined"==typeof window?{}:new r(f);function c(){var r=t.useRef([]),u=t.useCallback(function(e){-1===r.current.indexOf(e)&&r.current.push(e)},[]),f=t.useMemo(function(){var e=n();return e.on("storeRef",u),e},[u]);return[function(e){var n=t.useRef(void 0),r=e||n;return t.useLayoutEffect(function(){var e=r.current;return i.observe(e,{characterData:!0,childList:!0,subtree:!0}),s.observe(e),function(){s.unobserve(e)}},[]),t.useLayoutEffect(function(){f.emit("storeRef",r.current)}),r},function(n,i){void 0===i&&(i=[]),t.useLayoutEffect(function(){function t(){n(e([],r.current,!0))}return t(),o.on("measure",t),function(){o.off("measure",t)}},i),t.useLayoutEffect(function(){return function(){r.current=[]}}),t.useEffect(function(){return function(){f.off("storeRef",u)}},[])}]}export{c as useMeasure};
2
2
  //# sourceMappingURL=use-measure.js.map
@@ -1,2 +1,2 @@
1
- import{useState as e,useCallback as n,useEffect as t}from"react";function i(i){var o=function(e){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia(e).matches},r=e(o(i)),d=r[0],a=r[1],c=n((function(){a(o(i))}),[i]);return t((function(){if("undefined"!=typeof window&&"function"==typeof window.matchMedia){var e=window.matchMedia(i);return c(),e.addListener?e.addListener(c):e.addEventListener("change",c),function(){e.removeListener?e.removeListener(c):e.removeEventListener("change",c)}}}),[c,i]),d}export{i as useMediaQuery};
1
+ import{useState as e,useCallback as n,useEffect as t}from"react";function i(i){var o=function(e){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia(e).matches},r=e(o(i)),d=r[0],a=r[1],c=n(function(){a(o(i))},[i]);return t(function(){if("undefined"!=typeof window&&"function"==typeof window.matchMedia){var e=window.matchMedia(i);return c(),e.addListener?e.addListener(c):e.addEventListener("change",c),function(){e.removeListener?e.removeListener(c):e.removeEventListener("change",c)}}},[c,i]),d}export{i as useMediaQuery};
2
2
  //# sourceMappingURL=use-media-query.js.map
@@ -1,2 +1,2 @@
1
- import{useState as e,useCallback as n}from"react";function t(t){var r=t.maxIndex,o=t.defaultIndex,i=void 0===o?0:o,d=t.wrap,a=void 0!==d&&d,c=e(i),u=c[0],v=c[1],f=n((function(e){return a?(e%r+r)%r:e>r?r:e<0?0:e}),[r,a]);return{activeIndex:u,moveActiveIndex:n((function(e){v((function(n){return f(n+e)}))}),[f]),moveBackwardDisabled:u<=0,moveForwardDisabled:u>=r,setActiveIndex:n((function(e){v(f(e))}),[f])}}export{t as useRovingIndex};
1
+ import{useState as e,useCallback as n}from"react";function t(t){var r=t.maxIndex,o=t.defaultIndex,i=void 0===o?0:o,d=t.wrap,a=void 0!==d&&d,c=e(i),u=c[0],v=c[1],f=n(function(e){return a?(e%r+r)%r:e>r?r:e<0?0:e},[r,a]);return{activeIndex:u,moveActiveIndex:n(function(e){v(function(n){return f(n+e)})},[f]),moveBackwardDisabled:u<=0,moveForwardDisabled:u>=r,setActiveIndex:n(function(e){v(f(e))},[f])}}export{t as useRovingIndex};
2
2
  //# sourceMappingURL=use-roving-index.js.map
@@ -47,7 +47,7 @@ export declare const palette: {
47
47
  foregroundTertiary: string;
48
48
  };
49
49
  green: string[];
50
- grey: ("var(--t-fill-color-neutral-070)" | "var(--t-fill-color-neutral-010)" | "var(--t-fill-color-neutral-050)" | "var(--t-fill-color-neutral-080)" | "var(--t-fill-color-neutral-090)" | "var(--t-fill-color-neutral-060)" | "var(--t-fill-color-neutral-040)" | "var(--t-fill-color-neutral-030)" | "var(--t-fill-color-neutral-025)" | "var(--t-fill-color-neutral-020)")[];
50
+ grey: ("var(--t-fill-color-neutral-070)" | "var(--t-fill-color-neutral-010)" | "var(--t-fill-color-neutral-050)" | "var(--t-fill-color-neutral-080)" | "var(--t-fill-color-neutral-020)" | "var(--t-fill-color-neutral-025)" | "var(--t-fill-color-neutral-030)" | "var(--t-fill-color-neutral-040)" | "var(--t-fill-color-neutral-060)" | "var(--t-fill-color-neutral-090)")[];
51
51
  highlight: {
52
52
  highlight: "var(--t-fill-color-neutral-070)";
53
53
  highlightSecondary: "var(--t-fill-color-neutral-060)";
@@ -97,12 +97,6 @@ export declare const palette: {
97
97
  surfaceSecondary: "var(--t-surface-color-canvas)";
98
98
  surfaceTertiary: "var(--t-fill-color-neutral-070)";
99
99
  };
100
- tapestry: {
101
- create: {
102
- create35: "var(--t-fill-color-control-secondary)";
103
- };
104
- interaction66: "var(--t-fill-color-control)";
105
- };
106
100
  warning: {
107
101
  base: "var(--t-fill-color-status-warning)";
108
102
  dark: "var(--t-fill-color-status-warning)";
@@ -113,16 +107,6 @@ export declare const palette: {
113
107
  };
114
108
  yellow: string[];
115
109
  };
116
- export declare const colors: Partial<import("../../types").Colors> & Record<string, string | [string, string, string, string, string, string, string, string, string, string]> & {
117
- create: {
118
- create35: "var(--t-fill-color-control-secondary)";
119
- };
120
- interaction66: "var(--t-fill-color-control)";
121
- };
122
- export declare function getColor(key: string): string | [string, string, string, string, string, string, string, string, string, string] | (Partial<import("../../types").Colors> & Record<string, string | [string, string, string, string, string, string, string, string, string, string]> & {
123
- create: {
124
- create35: "var(--t-fill-color-control-secondary)";
125
- };
126
- interaction66: "var(--t-fill-color-control)";
127
- });
110
+ export declare const colors: Partial<import("../../types").Colors> & Record<string, string | [string, string, string, string, string, string, string, string, string, string]>;
111
+ export declare function getColor(key: string): string | [string, string, string, string, string, string, string, string, string, string] | (Partial<import("../../types").Colors> & Record<string, string | [string, string, string, string, string, string, string, string, string, string]>);
128
112
  //# sourceMappingURL=colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/system/colors/colors.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiNnB,CAAA;AAED,eAAO,MAAM,MAAM;;;;;CACF,CAAA;AAEjB,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM;;;;;GAEnC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/system/colors/colors.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+MnB,CAAA;AAED,eAAO,MAAM,MAAM,mJAA6C,CAAA;AAEhE,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,mPAEnC"}
@@ -1,2 +1,2 @@
1
- import{token as l,computedToken as r}from"@planningcenter/tapestry";import{flattenPalette as t}from"./utils.js";var o={create:{create35:l("--t-fill-color-control-secondary")},interaction66:l("--t-fill-color-control")},a={apps:{calendar:l("--t-fill-color-product-calendar-050"),"check-ins":l("--t-fill-color-product-checkins-050"),giving:l("--t-fill-color-product-giving-050"),groups:l("--t-fill-color-product-groups-050"),home:l("--t-fill-color-product-home-050"),"music-stand":"#4984c4",pco:"#3565cf",people:l("--t-fill-color-product-people-050"),"planning-center":"#2266f7",projector:"#f19900",registrations:l("--t-fill-color-product-registrations-050"),services:l("--t-fill-color-product-services-050")},background:{background:l("--t-surface-color-card"),backgroundSecondary:l("--t-surface-color-canvas"),backgroundTertiary:l("--t-fill-color-neutral-070")},static:{staticDark:r("--t-text-color"),staticLight:r("--t-text-color-inverted")},blue:["hsl(197, 56%, 92%)","hsl(197, 56%, 88%)","hsl(197, 56%, 72%)","hsl(197, 56%, 64%)","hsl(197, 56%, 52%)","hsl(197, 56%, 44%)","hsl(197, 56%, 40%)","hsl(197, 56%, 32%)","hsl(197, 56%, 24%)","hsl(197, 56%, 20%)"],dark:["hsla(0,0%,0%,0.04)","hsla(0,0%,0%,0.08)",l("--t-fill-color-transparency-dark-010"),l("--t-fill-color-transparency-dark-020"),l("--t-fill-color-transparency-dark-020"),l("--t-fill-color-transparency-dark-030"),l("--t-fill-color-transparency-dark-040"),l("--t-fill-color-transparency-dark-050"),l("--t-fill-color-transparency-dark-060"),l("--t-fill-color-transparency-dark-070")],days:{friday:"#F69688",monday:"#789FF8",saturday:"#66BEEB",sunday:"#7DC156",thursday:"#FA7EA4",tuesday:"#A193FD",wednesday:"#D18CF6"},error:{base:l("--t-fill-color-button-delete-solid"),dark:l("--t-fill-color-button-delete-solid-hover"),darker:l("--t-fill-color-button-delete-solid-active"),light:"hsl(8, 60%, 85%)",lighter:l("--t-fill-color-status-error-ghost"),lightest:l("--t-fill-color-status-error-dim")},foreground:{foreground:l("--t-text-color"),foregroundSecondary:l("--t-text-color-secondary"),foregroundTertiary:"hsl(0, 0%, 58%)"},green:["hsl(96, 24%, 92%)","hsl(96, 30%, 84%)","hsl(96, 32%, 76%)","hsl(96, 34%, 72%)","hsl(96, 36%, 64%)","hsl(96, 40%, 58%)","hsl(96, 44%, 50%)","hsl(96, 48%, 40%)","hsl(96, 52%, 30%)","hsl(96, 60%, 20%)"],grey:[l("--t-fill-color-neutral-090"),l("--t-fill-color-neutral-080"),l("--t-fill-color-neutral-070"),l("--t-fill-color-neutral-060"),l("--t-fill-color-neutral-050"),l("--t-fill-color-neutral-040"),l("--t-fill-color-neutral-030"),l("--t-fill-color-neutral-025"),l("--t-fill-color-neutral-020"),l("--t-fill-color-neutral-010")],highlight:{highlight:l("--t-fill-color-neutral-070"),highlightSecondary:l("--t-fill-color-neutral-060")},interaction:{base:l("--t-fill-color-interaction"),dark:l("--t-fill-color-interaction-hover"),darker:l("--t-fill-color-interaction-active"),darkest:"hsl(221, 90%, 31%)",light:"hsl(221, 91%, 70%)",lighter:"hsl(0, 0%, 81%);",lightest:l("--t-fill-color-interaction-disabled")},light:[l("--t-fill-color-transparency-light-010"),l("--t-fill-color-transparency-light-020"),l("--t-fill-color-transparency-light-030"),l("--t-fill-color-transparency-light-040"),l("--t-fill-color-transparency-light-050"),l("--t-fill-color-transparency-light-060"),l("--t-fill-color-transparency-light-070"),l("--t-fill-color-transparency-light-080"),l("--t-fill-color-transparency-light-090"),"hsla(0,0%,100%,0.96)"],link:{linkBackground:l("--t-fill-color-neutral-090"),linkForeground:l("--t-text-color-interaction")},primary:{base:"hsl(88, 44%, 40%)",dark:"hsl(88, 46%, 36%)",darker:"hsl(88, 52%, 32%)",darkest:"hsl(88, 72%, 20%)",light:"hsl(88, 40%, 54%)",lighter:"hsl(88, 32%, 86%)",lightest:"hsl(88, 24%, 92%)"},red:["hsl(8, 73%, 96%)","hsl(8, 74%, 92%)","hsl(8, 75%, 88%)","hsl(8, 76%, 68%)","hsl(8, 77%, 60%)","hsl(8, 78%, 56%)","hsl(8, 79%, 52%)","hsl(8, 80%, 48%)","hsl(8, 81%, 40%)","hsl(8, 82%, 30%)"],separator:{separator:l("--t-fill-color-neutral-040"),separatorFocus:l("--t-form-border-color-focus"),separatorFocusSecondary:l("--t-fill-color-neutral-050"),separatorHover:l("--t-form-border-color-hover"),separatorSecondary:l("--t-fill-color-neutral-050"),separatorTertiary:l("--t-fill-color-neutral-050")},success:{base:l("--t-fill-color-status-success"),dark:l("--t-text-color-status-success"),darker:"hsl(86, 91%, 23%)",light:l("--t-border-color-control-success"),lighter:l("--t-fill-color-status-success-ghost"),lightest:l("--t-fill-color-status-success-dim")},surface:{surface:l("--t-surface-color-card"),surfaceSecondary:l("--t-surface-color-canvas"),surfaceTertiary:l("--t-fill-color-neutral-070")},tapestry:o,warning:{base:l("--t-fill-color-status-warning"),dark:l("--t-fill-color-status-warning"),darker:l("--t-icon-color-status-warning"),light:"hsl(42, 87%, 90%)",lighter:l("--t-fill-color-status-warning-ghost"),lightest:l("--t-fill-color-status-warning-dim")},yellow:["hsl(50, 89%, 90%)","hsl(50, 90%, 86%)","hsl(50, 91%, 74%)","hsl(50, 92%, 68%)","hsl(50, 93%, 62%)","hsl(50, 94%, 56%)","hsl(50, 95%, 48%)","hsl(50, 96%, 40%)","hsl(50, 97%, 32%)","hsl(50, 98%, 26%)"]},s=t(a);function c(l){return l?s[l]:s}export{s as colors,c as getColor,a as palette};
1
+ import{token as l,computedToken as r}from"@planningcenter/tapestry";import{flattenPalette as t}from"./utils.js";var o={apps:{calendar:l("--t-fill-color-product-calendar-050"),"check-ins":l("--t-fill-color-product-checkins-050"),giving:l("--t-fill-color-product-giving-050"),groups:l("--t-fill-color-product-groups-050"),home:l("--t-fill-color-product-home-050"),"music-stand":"#4984c4",pco:"#3565cf",people:l("--t-fill-color-product-people-050"),"planning-center":"#2266f7",projector:"#f19900",registrations:l("--t-fill-color-product-registrations-050"),services:l("--t-fill-color-product-services-050")},background:{background:l("--t-surface-color-card"),backgroundSecondary:l("--t-surface-color-canvas"),backgroundTertiary:l("--t-fill-color-neutral-070")},static:{staticDark:r("--t-text-color"),staticLight:r("--t-text-color-inverted")},blue:["hsl(197, 56%, 92%)","hsl(197, 56%, 88%)","hsl(197, 56%, 72%)","hsl(197, 56%, 64%)","hsl(197, 56%, 52%)","hsl(197, 56%, 44%)","hsl(197, 56%, 40%)","hsl(197, 56%, 32%)","hsl(197, 56%, 24%)","hsl(197, 56%, 20%)"],dark:["hsla(0,0%,0%,0.04)","hsla(0,0%,0%,0.08)",l("--t-fill-color-transparency-dark-010"),l("--t-fill-color-transparency-dark-020"),l("--t-fill-color-transparency-dark-020"),l("--t-fill-color-transparency-dark-030"),l("--t-fill-color-transparency-dark-040"),l("--t-fill-color-transparency-dark-050"),l("--t-fill-color-transparency-dark-060"),l("--t-fill-color-transparency-dark-070")],days:{friday:"#F69688",monday:"#789FF8",saturday:"#66BEEB",sunday:"#7DC156",thursday:"#FA7EA4",tuesday:"#A193FD",wednesday:"#D18CF6"},error:{base:l("--t-fill-color-button-delete-solid"),dark:l("--t-fill-color-button-delete-solid-hover"),darker:l("--t-fill-color-button-delete-solid-active"),light:"hsl(8, 60%, 85%)",lighter:l("--t-fill-color-status-error-ghost"),lightest:l("--t-fill-color-status-error-dim")},foreground:{foreground:l("--t-text-color"),foregroundSecondary:l("--t-text-color-secondary"),foregroundTertiary:"hsl(0, 0%, 58%)"},green:["hsl(96, 24%, 92%)","hsl(96, 30%, 84%)","hsl(96, 32%, 76%)","hsl(96, 34%, 72%)","hsl(96, 36%, 64%)","hsl(96, 40%, 58%)","hsl(96, 44%, 50%)","hsl(96, 48%, 40%)","hsl(96, 52%, 30%)","hsl(96, 60%, 20%)"],grey:[l("--t-fill-color-neutral-090"),l("--t-fill-color-neutral-080"),l("--t-fill-color-neutral-070"),l("--t-fill-color-neutral-060"),l("--t-fill-color-neutral-050"),l("--t-fill-color-neutral-040"),l("--t-fill-color-neutral-030"),l("--t-fill-color-neutral-025"),l("--t-fill-color-neutral-020"),l("--t-fill-color-neutral-010")],highlight:{highlight:l("--t-fill-color-neutral-070"),highlightSecondary:l("--t-fill-color-neutral-060")},interaction:{base:l("--t-fill-color-interaction"),dark:l("--t-fill-color-interaction-hover"),darker:l("--t-fill-color-interaction-active"),darkest:"hsl(221, 90%, 31%)",light:"hsl(221, 91%, 70%)",lighter:"hsl(0, 0%, 81%);",lightest:l("--t-fill-color-interaction-disabled")},light:[l("--t-fill-color-transparency-light-010"),l("--t-fill-color-transparency-light-020"),l("--t-fill-color-transparency-light-030"),l("--t-fill-color-transparency-light-040"),l("--t-fill-color-transparency-light-050"),l("--t-fill-color-transparency-light-060"),l("--t-fill-color-transparency-light-070"),l("--t-fill-color-transparency-light-080"),l("--t-fill-color-transparency-light-090"),"hsla(0,0%,100%,0.96)"],link:{linkBackground:l("--t-fill-color-neutral-090"),linkForeground:l("--t-text-color-interaction")},primary:{base:"hsl(88, 44%, 40%)",dark:"hsl(88, 46%, 36%)",darker:"hsl(88, 52%, 32%)",darkest:"hsl(88, 72%, 20%)",light:"hsl(88, 40%, 54%)",lighter:"hsl(88, 32%, 86%)",lightest:"hsl(88, 24%, 92%)"},red:["hsl(8, 73%, 96%)","hsl(8, 74%, 92%)","hsl(8, 75%, 88%)","hsl(8, 76%, 68%)","hsl(8, 77%, 60%)","hsl(8, 78%, 56%)","hsl(8, 79%, 52%)","hsl(8, 80%, 48%)","hsl(8, 81%, 40%)","hsl(8, 82%, 30%)"],separator:{separator:l("--t-fill-color-neutral-040"),separatorFocus:l("--t-form-border-color-focus"),separatorFocusSecondary:l("--t-fill-color-neutral-050"),separatorHover:l("--t-form-border-color-hover"),separatorSecondary:l("--t-fill-color-neutral-050"),separatorTertiary:l("--t-fill-color-neutral-050")},success:{base:l("--t-fill-color-status-success"),dark:l("--t-text-color-status-success"),darker:"hsl(86, 91%, 23%)",light:l("--t-border-color-control-success"),lighter:l("--t-fill-color-status-success-ghost"),lightest:l("--t-fill-color-status-success-dim")},surface:{surface:l("--t-surface-color-card"),surfaceSecondary:l("--t-surface-color-canvas"),surfaceTertiary:l("--t-fill-color-neutral-070")},warning:{base:l("--t-fill-color-status-warning"),dark:l("--t-fill-color-status-warning"),darker:l("--t-icon-color-status-warning"),light:"hsl(42, 87%, 90%)",lighter:l("--t-fill-color-status-warning-ghost"),lightest:l("--t-fill-color-status-warning-dim")},yellow:["hsl(50, 89%, 90%)","hsl(50, 90%, 86%)","hsl(50, 91%, 74%)","hsl(50, 92%, 68%)","hsl(50, 93%, 62%)","hsl(50, 94%, 56%)","hsl(50, 95%, 48%)","hsl(50, 96%, 40%)","hsl(50, 97%, 32%)","hsl(50, 98%, 26%)"]},s=t(o);function a(l){return l?s[l]:s}export{s as colors,a as getColor,o as palette};
2
2
  //# sourceMappingURL=colors.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r,__spreadArray as t}from'./../../ext/tslib/tslib.es6.js';import{getLuminance as n,setLightness as e,darken as c,parseToRgb as o,parseToHsl as a,toColorString as u,rgba as i,mix as f}from"polished";import{getCSSProperty as s}from"../../utils.js";function v(r,t){if(void 0!==r){var n=o(t),e=n.red,c=n.green,a=n.blue;return"rgba(".concat(e,", ").concat(c,", ").concat(a,", ").concat(r,")")}return t}function l(r){var t,n=r.key,o=r.baseColor;return(t={})["".concat(n,"-lightest")]=e(.94,o),t["".concat(n,"-lighter")]=e(.92,o),t["".concat(n,"-light")]=e(.7,o),t[n]=o,t["".concat(n,"-dark")]=c(.04,o),t["".concat(n,"-darker")]=c(.08,o),t["".concat(n,"-darkest")]=c(.16,o),t}function d(t,n){return Object.keys(t).map((function(e){var c,o,a,u=t[e];return"string"==typeof u?((c={})[e]=u,o=c):o=Array.isArray(u)?u.reduce((function(t,n,c){var o;return r(r({},t),((o={})["".concat(e,"-").concat(c)]=n,o))}),{}):u.base?Object.keys(u).reduce((function(t,n){var c;return r(r({},t),((c={})["base"===n?e:"".concat(e,"-").concat(n)]=u[n],c))}),{}):Object.keys(u).reduce((function(t,n){var e;return r(r({},t),((e={})[n]=u[n],e))}),{}),n({colors:o,name:(a=e,a.charAt(0).toUpperCase()+a.slice(1))})}))}function m(t){var n=d(t,(function(r){return r.colors})).reduce((function(t,n){return r(r({},t),n)}),{});return Object.keys(n).reduce((function(t,e){var c,o=n[e],a="string"==typeof o?n[o]:void 0;return r(r({},t),((c={})[e]=a?s("colors",o):o,c))}),{})}var p=1e-7;function b(r,t){var e,c=o(t).alpha,a=void 0===c?1:c;if(0===r)e=i(0,0,0,a);else if(1===r)e=i(255,255,255,a);else{var u=20,s=function(t,e){var c=f(.5,t,e),o=n(c);return Math.abs(r-o)<p||!u--?c:o>r?s(t,c):s(c,e)};e=n(t)>r?s("#000",t):s(t,"#fff")}return e}function h(r,t){var n=a(t);return n.saturation+=n.saturation*r,u(n)}function y(r,t){return void 0===t&&(t=.5),function(n){var e=Math.min(Math.max(n,.05),.95);return h(-n*t,b(e,r))}}function k(r,e){var c=y(r,e),o=n(r),a=o/5,u=(1-o)/6,i=[4,3,2,1].map((function(r){return c(r*a)})),f=[5,4,3,2,1,0].map((function(r){return c(o+r*u)}));return t(t([],f,!0),i,!0)}export{b as adjustLightness,h as adjustSaturation,y as createTone,k as createTones,d as eachPalette,m as flattenPalette,l as generateColorScale,v as setAlphaChannel};
1
+ import{__assign as r,__spreadArray as t}from'./../../ext/tslib/tslib.es6.js';import{getLuminance as n,setLightness as e,darken as c,parseToRgb as o,parseToHsl as a,toColorString as u,rgba as i,mix as f}from"polished";import{getCSSProperty as s}from"../../utils.js";function v(r,t){if(void 0!==r){var n=o(t),e=n.red,c=n.green,a=n.blue;return"rgba(".concat(e,", ").concat(c,", ").concat(a,", ").concat(r,")")}return t}function l(r){var t,n=r.key,o=r.baseColor;return(t={})["".concat(n,"-lightest")]=e(.94,o),t["".concat(n,"-lighter")]=e(.92,o),t["".concat(n,"-light")]=e(.7,o),t[n]=o,t["".concat(n,"-dark")]=c(.04,o),t["".concat(n,"-darker")]=c(.08,o),t["".concat(n,"-darkest")]=c(.16,o),t}function d(t,n){return Object.keys(t).map(function(e){var c,o,a,u=t[e];return"string"==typeof u?((c={})[e]=u,o=c):o=Array.isArray(u)?u.reduce(function(t,n,c){var o;return r(r({},t),((o={})["".concat(e,"-").concat(c)]=n,o))},{}):u.base?Object.keys(u).reduce(function(t,n){var c;return r(r({},t),((c={})["base"===n?e:"".concat(e,"-").concat(n)]=u[n],c))},{}):Object.keys(u).reduce(function(t,n){var e;return r(r({},t),((e={})[n]=u[n],e))},{}),n({colors:o,name:(a=e,a.charAt(0).toUpperCase()+a.slice(1))})})}function m(t){var n=d(t,function(r){return r.colors}).reduce(function(t,n){return r(r({},t),n)},{});return Object.keys(n).reduce(function(t,e){var c,o=n[e],a="string"==typeof o?n[o]:void 0;return r(r({},t),((c={})[e]=a?s("colors",o):o,c))},{})}function p(r,t){var e,c=o(t).alpha,a=void 0===c?1:c;if(0===r)e=i(0,0,0,a);else if(1===r)e=i(255,255,255,a);else{var u=20,s=function(t,e){var c=f(.5,t,e),o=n(c);return Math.abs(r-o)<1e-7||!u--?c:o>r?s(t,c):s(c,e)};e=n(t)>r?s("#000",t):s(t,"#fff")}return e}function b(r,t){var n=a(t);return n.saturation+=n.saturation*r,u(n)}function h(r,t){return void 0===t&&(t=.5),function(n){var e=Math.min(Math.max(n,.05),.95);return b(-n*t,p(e,r))}}function y(r,e){var c=h(r,e),o=n(r),a=o/5,u=(1-o)/6,i=[4,3,2,1].map(function(r){return c(r*a)}),f=[5,4,3,2,1,0].map(function(r){return c(o+r*u)});return t(t([],f,!0),i,!0)}export{p as adjustLightness,b as adjustSaturation,h as createTone,y as createTones,d as eachPalette,m as flattenPalette,l as generateColorScale,v as setAlphaChannel};
2
2
  //# sourceMappingURL=utils.js.map
@@ -1,2 +1,2 @@
1
- var n={},t="x",e="development"===process.env.NODE_ENV||!process.env.NODE_ENV,c=[],o=function(n){c.push(n)},r=function(n,t){return""===t?n:"".concat(t,"{").concat(n,"}")},a=function(n,t,e,c){var o,r=""===t?".".concat(n):t.includes("&")?t.replace("&",".".concat(n)):".".concat(n).concat(t);return"".concat(r.trim(),"{").concat((o=e,o.replace(/[A-Z]|^ms/g,"-$&").toLowerCase()),":").concat(c,"}")};function i(e,s,u){void 0===s&&(s=""),void 0===u&&(u="");var l="";for(var f in e){var p=e[f];if(null!=p)if("object"!=typeof p){var v=f+p+s+u;if(n[v])l+=" "+n[v];else{var d=t+c.length.toString(36),h=r(a(d,s,f,p),u);o(h),n[v]=d,l+=" "+d}}else{var m=/^@/.test(f)?f:null;l+=i(p,m?s:f.startsWith(":")?"".concat(s).concat(f):"".concat(s," ").concat(f),m||u)}}return l}function s(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n.map((function(n){return i(n)})).join(" ").trim()}if(s.css=function(){return c.sort().join("")},s.reset=function(){for(n={};c.length;)c.pop()},"undefined"!=typeof document){var u=document.head.appendChild(document.createElement("style")).sheet;o=function(n){try{c.push(n),u.insertRule(n,u.cssRules.length)}catch(t){e&&console.warn("whoops, illegal rule inserted",n)}}}export{s as default};
1
+ var n={},t="development"===process.env.NODE_ENV||!process.env.NODE_ENV,e=[],c=function(n){e.push(n)},o=function(n,t){return""===t?n:"".concat(t,"{").concat(n,"}")},r=function(n,t,e,c){var o,r=""===t?".".concat(n):t.includes("&")?t.replace("&",".".concat(n)):".".concat(n).concat(t);return"".concat(r.trim(),"{").concat((o=e,o.replace(/[A-Z]|^ms/g,"-$&").toLowerCase()),":").concat(c,"}")};function a(t,i,s){void 0===i&&(i=""),void 0===s&&(s="");var u="";for(var l in t){var f=t[l];if(null!=f)if("object"!=typeof f){var p=l+f+i+s;if(n[p])u+=" "+n[p];else{var v="x"+e.length.toString(36),d=o(r(v,i,l,f),s);c(d),n[p]=v,u+=" "+v}}else{var h=/^@/.test(l)?l:null;u+=a(f,h?i:l.startsWith(":")?"".concat(i).concat(l):"".concat(i," ").concat(l),h||s)}}return u}function i(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n.map(function(n){return a(n)}).join(" ").trim()}if(i.css=function(){return e.sort().join("")},i.reset=function(){for(n={};e.length;)e.pop()},"undefined"!=typeof document){var s=document.head.appendChild(document.createElement("style")).sheet;c=function(n){try{e.push(n),s.insertRule(n,s.cssRules.length)}catch(e){t&&console.warn("whoops, illegal rule inserted",n)}}}export{i as default};
2
2
  //# sourceMappingURL=cxs.js.map
@@ -553,12 +553,7 @@ declare const defaultTheme: {
553
553
  focusStroke: "var(--t-fill-color-control)";
554
554
  stroke: "var(--t-border-color-control-neutral)";
555
555
  };
556
- colors: Partial<import("..").Colors> & Record<string, string | [string, string, string, string, string, string, string, string, string, string]> & {
557
- create: {
558
- create35: "var(--t-fill-color-control-secondary)";
559
- };
560
- interaction66: "var(--t-fill-color-control)";
561
- };
556
+ colors: Partial<import("..").Colors> & Record<string, string | [string, string, string, string, string, string, string, string, string, string]>;
562
557
  elevations: string[];
563
558
  fontSizes: number[];
564
559
  group: {
@@ -1 +1 @@
1
- {"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../../src/system/default-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,qCAAqC,CAAA;AAC9D,OAAO,KAAK,QAAQ,MAAM,sCAAsC,CAAA;AAqBhE,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCjB,CAAA;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../../src/system/default-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,qCAAqC,CAAA;AAC9D,OAAO,KAAK,QAAQ,MAAM,sCAAsC,CAAA;AAqBhE,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCjB,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1,2 +1,2 @@
1
- import*as o from"@planningcenter/icons/paths/general";import*as r from"@planningcenter/icons/paths/tapestry";import{token as l}from"@planningcenter/tapestry";import{boxSizes as t}from"./box-sizes.js";import{buttonThemes as e}from"./button-themes.js";import{colors as s}from"./colors/colors.js";import"polished";import"../utils.js";var c={boxSizes:t,breakpoints:{lg:960,md:720,sm:600,xl:1200,xs:480},button:{themes:e},calendar:{weekStartsOn:0},checkbox:{checkedFill:l("--t-fill-color-control"),checkedStroke:l("--t-fill-color-control"),disabled:{checkedFill:l("--t-fill-color-control-disabled"),checkedStroke:l("--t-border-color-control-disabled"),fill:l("--t-fill-color-neutral-070"),stroke:l("--t-border-color-control-disabled")},fill:l("--t-surface-color-card"),focusStroke:l("--t-fill-color-control"),stroke:l("--t-border-color-control-neutral")},colors:s,elevations:["0 2px 5px rgba(0,0,0,0.043)","0 4px 12px rgba(0,0,0,0.12)","0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)","0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)","0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22)","0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22)"],fontSizes:[30,21,18,16,14,12,10],group:{radius:3},icons:{general:o,tapestry:r},pageBody:{backgroundColor:l("--t-surface-color-card")},id:"default",lineHeights:[40,32,24,24,20,16,16],spinner:{color:l("--t-fill-color-neutral-010"),sizes:{lg:3,md:2.5,sm:2,xl:5,xs:1.75,xxl:8,xxs:1.5},thickness:{lg:5,md:4,sm:3,xl:7,xs:3,xxl:9,xxs:3},trackColor:l("--t-fill-color-transparency-dark-020")},toggleSwitch:{backgroundColor:l("--t-fill-color-control")}};export{c as default};
1
+ import*as o from"@planningcenter/icons/paths/general";import*as r from"@planningcenter/icons/paths/tapestry";import{token as l}from"@planningcenter/tapestry";import{boxSizes as t}from"./box-sizes.js";import{buttonThemes as e}from"./button-themes.js";import{colors as s}from"./colors/colors.js";import'./../ext/tslib/tslib.es6.js';import"polished";import"../utils.js";var c={boxSizes:t,breakpoints:{lg:960,md:720,sm:600,xl:1200,xs:480},button:{themes:e},calendar:{weekStartsOn:0},checkbox:{checkedFill:l("--t-fill-color-control"),checkedStroke:l("--t-fill-color-control"),disabled:{checkedFill:l("--t-fill-color-control-disabled"),checkedStroke:l("--t-border-color-control-disabled"),fill:l("--t-fill-color-neutral-070"),stroke:l("--t-border-color-control-disabled")},fill:l("--t-surface-color-card"),focusStroke:l("--t-fill-color-control"),stroke:l("--t-border-color-control-neutral")},colors:s,elevations:["0 2px 5px rgba(0,0,0,0.043)","0 4px 12px rgba(0,0,0,0.12)","0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)","0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)","0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22)","0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22)"],fontSizes:[30,21,18,16,14,12,10],group:{radius:3},icons:{general:o,tapestry:r},pageBody:{backgroundColor:l("--t-surface-color-card")},id:"default",lineHeights:[40,32,24,24,20,16,16],spinner:{color:l("--t-fill-color-neutral-010"),sizes:{lg:3,md:2.5,sm:2,xl:5,xs:1.75,xxl:8,xxs:1.5},thickness:{lg:5,md:4,sm:3,xl:7,xs:3,xxl:9,xxs:3},trackColor:l("--t-fill-color-transparency-dark-020")},toggleSwitch:{backgroundColor:l("--t-fill-color-control")}};export{c as default};
2
2
  //# sourceMappingURL=default-theme.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from'./../ext/tslib/tslib.es6.js';import t from"lodash/includes";import o from"./plugins/index.js";import{colorStyleNames as e}from"./style-names.js";var n=o.length;function s(t,e,s){void 0===t&&(t={});var i=r({},t);e&&(i=e.getStyles(i,s));for(var c=0;c<n;c++){i=(0,o[c])(i,s)}return i.css&&delete(i=r(r({},i),u(i.css,e,s))).css,i}function i(r,o,n){var u={};for(var c in r){var l=r[c];u[c]=t(e,c)||"object"!=typeof l?l:i(l,o,n)}return s(u,o,n)}function u(t,o,e){return t?t.constructor===Array?t.reduce((function(t,n){return r(r({},t),i(n,o,e))}),{}):i(t,o,e):null}export{u as parseCssStyles,s as parsePluginStyles,i as parseStyles};
1
+ import{__assign as r}from'./../ext/tslib/tslib.es6.js';import t from"lodash/includes";import o from"./plugins/index.js";import{colorStyleNames as e}from"./style-names.js";var n=o.length;function s(t,e,s){void 0===t&&(t={});var i=r({},t);e&&(i=e.getStyles(i,s));for(var c=0;c<n;c++){i=(0,o[c])(i,s)}return i.css&&delete(i=r(r({},i),u(i.css,e,s))).css,i}function i(r,o,n){var u={};for(var c in r){var l=r[c];u[c]=t(e,c)||"object"!=typeof l?l:i(l,o,n)}return s(u,o,n)}function u(t,o,e){return t?t.constructor===Array?t.reduce(function(t,n){return r(r({},t),i(n,o,e))},{}):i(t,o,e):null}export{u as parseCssStyles,s as parsePluginStyles,i as parseStyles};
2
2
  //# sourceMappingURL=parse-styles.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as o}from'./../../ext/tslib/tslib.es6.js';import{getCSSProperty as r}from"../../utils.js";import{parseColor as l}from"../utils.js";function e(e,t){var b=e.backgroundColor,d=e.borderColor,C=e.borderBottomColor,i=e.borderLeftColor,s=e.borderRightColor,c=e.borderTopColor,f=e.color,u=e.fill,n=e.outlineColor,m=e.stroke,a=o(e,["backgroundColor","borderColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","fill","outlineColor","stroke"]),k={backgroundColor:b,borderBottomColor:C,borderColor:d,borderLeftColor:i,borderRightColor:s,borderTopColor:c,color:f,fill:u,outlineColor:n,stroke:m};return Object.keys(k).forEach((function(o){var e=k[o];e&&(a[o]=t&&t.colors&&t.colors[e]?r("colors",e):l(e))})),a}export{e as default};
1
+ import{__rest as o}from'./../../ext/tslib/tslib.es6.js';import{getCSSProperty as r}from"../../utils.js";import{parseColor as l}from"../utils.js";function e(e,t){var b=e.backgroundColor,d=e.borderColor,C=e.borderBottomColor,i=e.borderLeftColor,s=e.borderRightColor,c=e.borderTopColor,f=e.color,u=e.fill,n=e.outlineColor,m=e.stroke,a=o(e,["backgroundColor","borderColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","fill","outlineColor","stroke"]),k={backgroundColor:b,borderBottomColor:C,borderColor:d,borderLeftColor:i,borderRightColor:s,borderTopColor:c,color:f,fill:u,outlineColor:n,stroke:m};return Object.keys(k).forEach(function(o){var e=k[o];e&&(a[o]=t&&t.colors&&t.colors[e]?r("colors",e):l(e))}),a}export{e as default};
2
2
  //# sourceMappingURL=color.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as i}from'./../../ext/tslib/tslib.es6.js';import{spacingValue as t}from"../utils.js";function h(h){var e=h.width,m=h.height,d=h.minWidth,n=h.minHeight,a=h.maxWidth,o=h.maxHeight,r=i(h,["width","height","minWidth","minHeight","maxWidth","maxHeight"]),g={height:m,maxHeight:o,maxWidth:a,minHeight:n,minWidth:d,width:e};return Object.keys(g).forEach((function(i){var h=g[i];void 0!==h&&(r[i]=t(h))})),r}export{h as default};
1
+ import{__rest as i}from'./../../ext/tslib/tslib.es6.js';import{spacingValue as t}from"../utils.js";function h(h){var e=h.width,m=h.height,d=h.minWidth,n=h.minHeight,a=h.maxWidth,o=h.maxHeight,r=i(h,["width","height","minWidth","minHeight","maxWidth","maxHeight"]),g={height:m,maxHeight:o,maxWidth:a,minHeight:n,minWidth:d,width:e};return Object.keys(g).forEach(function(i){var h=g[i];void 0!==h&&(r[i]=t(h))}),r}export{h as default};
2
2
  //# sourceMappingURL=size.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as i}from'./../ext/tslib/tslib.es6.js';import r from"lodash/includes";import{parsePluginStyles as n}from"./parse-styles.js";import{stylePropNames as s,pseudoPropNames as a}from"./style-names.js";function t(t){var o=t.className,d=void 0===o?void 0:o,v=t.mediaQueries,l=void 0===v?{}:v,c=t.plugin,u=void 0===c?void 0:c,p=t.variant,f=t.variants,m=void 0===f?{}:f,y=t.visible,b=void 0===y||y,x=e(t,["className","mediaQueries","plugin","variant","variants","visible"]),O={},j={},k=function(e){return s.indexOf(e)>-1||a.indexOf(e)>-1||u&&u.styleProps.indexOf(e)>-1};for(var N in x){var g=x[N];k(N)?j[N]=g:O[N]=g}return i(i({},O),{className:d?"tapestry-react-reset ".concat(d):"tapestry-react-reset",css:function(t){var o={};for(var d in j){var v=j[d];r(s,d)||u&&u.styleProps.indexOf(d)>-1?o[d]=v:r(a,d)&&(o["&:".concat(d)]=n(v,u,t))}var c=n(o,u,t),f=Object.keys(l).reduce((function(e,i){var r=null==t?void 0:t.breakpoints[i],s=r?"number"==typeof r?"@media screen and (min-width: ".concat(r,"px)"):r:i,a=n(l[i],u,t);return void 0!==a.visible&&(a.display=a.visible?c.display:"none",delete a.visible),e[s]=a,e}),{}),y=function(r){var n=r.variants,s=e(r,["variants"]);return n?i(i({},s),x(n)):r},x=function(s){return Object.keys(s).reduce((function(o,d){var v,l=n(s[d],u,t),f=l.visible,m=e(l,["visible"]);return void 0!==f&&(m.display=f?c.display:"none"),p.includes(d)?i(i({},o),y(m)):r(a,d)?i(i({},o),((v={})[":".concat(d)]=y(m),v)):o}),{})},O=x(m);return!1===b&&(c.display="none"),[c,f,O]}})}export{t as default};
1
+ import{__rest as e,__assign as i}from'./../ext/tslib/tslib.es6.js';import r from"lodash/includes";import{parsePluginStyles as n}from"./parse-styles.js";import{stylePropNames as s,pseudoPropNames as a}from"./style-names.js";function t(t){var o=t.className,d=void 0===o?void 0:o,v=t.mediaQueries,l=void 0===v?{}:v,c=t.plugin,u=void 0===c?void 0:c,p=t.variant,f=t.variants,m=void 0===f?{}:f,y=t.visible,b=void 0===y||y,x=e(t,["className","mediaQueries","plugin","variant","variants","visible"]),O={},j={},k=function(e){return s.indexOf(e)>-1||a.indexOf(e)>-1||u&&u.styleProps.indexOf(e)>-1};for(var N in x){var g=x[N];k(N)?j[N]=g:O[N]=g}return i(i({},O),{className:d?"tapestry-react-reset ".concat(d):"tapestry-react-reset",css:function(t){var o={};for(var d in j){var v=j[d];r(s,d)||u&&u.styleProps.indexOf(d)>-1?o[d]=v:r(a,d)&&(o["&:".concat(d)]=n(v,u,t))}var c=n(o,u,t),f=Object.keys(l).reduce(function(e,i){var r=null==t?void 0:t.breakpoints[i],s=r?"number"==typeof r?"@media screen and (min-width: ".concat(r,"px)"):r:i,a=n(l[i],u,t);return void 0!==a.visible&&(a.display=a.visible?c.display:"none",delete a.visible),e[s]=a,e},{}),y=function(r){var n=r.variants,s=e(r,["variants"]);return n?i(i({},s),x(n)):r},x=function(s){return Object.keys(s).reduce(function(o,d){var v,l=n(s[d],u,t),f=l.visible,m=e(l,["visible"]);return void 0!==f&&(m.display=f?c.display:"none"),p.includes(d)?i(i({},o),y(m)):r(a,d)?i(i({},o),((v={})[":".concat(d)]=y(m),v)):o},{})},O=x(m);return!1===b&&(c.display="none"),[c,f,O]}})}export{t as default};
2
2
  //# sourceMappingURL=split-styles.js.map
@@ -1,2 +1,2 @@
1
- import{useTheme as r}from"@emotion/react";import{useCallback as t}from"react";import o from"./cxs.js";import{parseCssStyles as e}from"./parse-styles.js";function m(){var m=r();return t((function(r){return o(e(r,null,m))}),[m])}export{m as default};
1
+ import{useTheme as r}from"@emotion/react";import{useCallback as t}from"react";import o from"./cxs.js";import{parseCssStyles as e}from"./parse-styles.js";function m(){var m=r();return t(function(r){return o(e(r,null,m))},[m])}export{m as default};
2
2
  //# sourceMappingURL=use-css.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from'./../ext/tslib/tslib.es6.js';import{ThemeContext as r}from"@emotion/react";import{token as e}from"@planningcenter/tapestry";import n from"lodash/get";import{darken as o,lighten as a,parseToRgb as i,getLuminance as u,cssVar as c}from"polished";import{useContext as f,useCallback as l}from"react";import{getColor as s}from"./colors/colors.js";import"../utils.js";import p from"./default-theme.js";var m=8,d=["xxs","xs","sm","md","lg","xl","xxl"],h={baseline:"baseline",center:"center",end:"flex-end",start:"flex-start",stretch:"stretch"},v={center:"center",end:"flex-end","space-around":"space-around","space-between":"space-between","space-evenly":"space-evenly",start:"flex-start"};function g(t,r){var e=d.indexOf(t);return d[e+r]||t}function x(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.some((function(t){return null!=t}))}function b(t){return"number"==typeof t?8*t+"px":t}function y(t){return t/8}function j(r,e){var n=e.split(/\s+/);if(1===n.length){var o=n[0];n=[o,o,o,o]}else 2===n.length?n=n.concat(n):3===n.length&&n.push(n[1]);return["Top","Right","Bottom","Left"].reduce((function(e,o,a){var i;return t(t({},e),((i={})["".concat(r).concat(o)]=n[a],i))}),{})}function k(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.reduce((function(t,r){return"string"==typeof r?r:null!=r?8*r+"px":t}),0)}function w(t){return"string"==typeof t&&t.startsWith("var(")}function O(t){if("object"==typeof t){var r=s(t.base)||t.base;if("transparent"===r)return r;if(t.darken&&(r=o(t.darken,r)),t.lighten&&(r=a(t.lighten,r)),void 0!==t.alpha){var e=i(r),n=e.red,u=e.green,c=e.blue;return"rgba(".concat(n,", ").concat(u,", ").concat(c,", ").concat(t.alpha,")")}return r}return s(t)||t}function S(t){if("transparent"===t)return null;if(w(t))try{var r=function(t){if("undefined"==typeof window)return t;try{var r=t.match(/var\((--[^,)]+)/);if(!r)return t;var e=r[1],n=String(c(e));return n&&"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n?n:t}catch(r){return t}}(t);return w(r)?null:u(r)>.5}catch(t){return null}try{return u(O(t))>.5}catch(t){return null}}function z(t){if(w(t)){var r=S(t);return e(!1!==r?"--t-text-color-headline":"--t-fill-color-neutral-100")}return S(t)?"staticDark":"staticLight"}function L(t,e){var o=f(r);return t?n(o,t,e||n(p,t)):o||p}function B(r,e){return t(t({},L(r)),e)}function D(r){void 0===r&&(r="md");var e=L("boxSizes"),n=l((function(t){var n=Object.keys(e).indexOf(r);return d[n+t]||r}),[r]);return t(t({},e[r]||{}),{navigateSize:n})}export{h as alignTypes,x as anyDefined,y as convertToBaseUnit,j as expandDirectionalProperty,z as getForegroundColor,S as isLightColor,v as justifyTypes,g as navigateSize,O as parseColor,k as parseSides,d as sizes,m as spacing,b as spacingValue,D as useBoxSize,B as useThemeProps,L as useThemeValue};
1
+ import{__assign as t}from'./../ext/tslib/tslib.es6.js';import{ThemeContext as r}from"@emotion/react";import{token as e}from"@planningcenter/tapestry";import n from"lodash/get";import{darken as o,lighten as a,parseToRgb as i,getLuminance as u,cssVar as c}from"polished";import{useContext as f,useCallback as l}from"react";import{getColor as s}from"./colors/colors.js";import"../utils.js";import p from"./default-theme.js";var m=8,d=["xxs","xs","sm","md","lg","xl","xxl"],h={baseline:"baseline",center:"center",end:"flex-end",start:"flex-start",stretch:"stretch"},v={center:"center",end:"flex-end","space-around":"space-around","space-between":"space-between","space-evenly":"space-evenly",start:"flex-start"};function g(t,r){var e=d.indexOf(t);return d[e+r]||t}function x(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.some(function(t){return null!=t})}function b(t){return"number"==typeof t?8*t+"px":t}function y(t){return t/8}function j(r,e){var n=e.split(/\s+/);if(1===n.length){var o=n[0];n=[o,o,o,o]}else 2===n.length?n=n.concat(n):3===n.length&&n.push(n[1]);return["Top","Right","Bottom","Left"].reduce(function(e,o,a){var i;return t(t({},e),((i={})["".concat(r).concat(o)]=n[a],i))},{})}function k(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.reduce(function(t,r){return"string"==typeof r?r:null!=r?8*r+"px":t},0)}function w(t){return"string"==typeof t&&t.startsWith("var(")}function O(t){if("object"==typeof t){var r=s(t.base)||t.base;if("transparent"===r)return r;if(t.darken&&(r=o(t.darken,r)),t.lighten&&(r=a(t.lighten,r)),void 0!==t.alpha){var e=i(r),n=e.red,u=e.green,c=e.blue;return"rgba(".concat(n,", ").concat(u,", ").concat(c,", ").concat(t.alpha,")")}return r}return s(t)||t}function S(t){if("transparent"===t)return null;if(w(t))try{var r=function(t){if("undefined"==typeof window)return t;try{var r=t.match(/var\((--[^,)]+)/);if(!r)return t;var e=r[1],n=String(c(e));return n&&"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n?n:t}catch(r){return t}}(t);return w(r)?null:u(r)>.5}catch(t){return null}try{return u(O(t))>.5}catch(t){return null}}function z(t){if(w(t)){var r=S(t);return e(!1!==r?"--t-text-color-headline":"--t-fill-color-neutral-100")}return S(t)?"staticDark":"staticLight"}function L(t,e){var o=f(r);return t?n(o,t,e||n(p,t)):o||p}function B(r,e){return t(t({},L(r)),e)}function D(r){void 0===r&&(r="md");var e=L("boxSizes"),n=l(function(t){var n=Object.keys(e).indexOf(r);return d[n+t]||r},[r]);return t(t({},e[r]||{}),{navigateSize:n})}export{h as alignTypes,x as anyDefined,y as convertToBaseUnit,j as expandDirectionalProperty,z as getForegroundColor,S as isLightColor,v as justifyTypes,g as navigateSize,O as parseColor,k as parseSides,d as sizes,m as spacing,b as spacingValue,D as useBoxSize,B as useThemeProps,L as useThemeValue};
2
2
  //# sourceMappingURL=utils.js.map