@planningcenter/tapestry-react 4.5.0-rc.0 → 4.5.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.
- package/dist/Calendar/Calendar.d.ts.map +1 -1
- package/dist/Calendar/Calendar.js +1 -1
- package/dist/ChurchCenterStatus/ChurchCenterStatus.js +1 -1
- package/dist/Combobox/ComboboxItems.d.ts.map +1 -1
- package/dist/Combobox/ComboboxItems.js +1 -1
- package/dist/Select/Select.d.ts +4 -4
- package/dist/Select/Select.d.ts.map +1 -1
- package/dist/Select/Select.js +1 -1
- package/dist/Select/utils.d.ts +1 -7
- package/dist/Select/utils.d.ts.map +1 -1
- package/dist/TabNav/TabNav.js +1 -1
- package/dist/Wizard/Step.d.ts +2 -5
- package/dist/Wizard/Step.d.ts.map +1 -1
- package/dist/Wizard/StepProps.d.ts +11 -0
- package/dist/Wizard/StepProps.d.ts.map +1 -0
- package/dist/Wizard/Wizard.d.ts +11 -11
- package/dist/Wizard/Wizard.d.ts.map +1 -1
- package/dist/Wizard/Wizard.js +1 -1
- package/dist/Wizard/WizardContext.d.ts +2 -2
- package/dist/Wizard/WizardContext.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../src/Calendar/Calendar.tsx"],"names":[],"mappings":"AAYA,OAAO,KAON,MAAM,OAAO,CAAA;AASd,OAAO,GAAG,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAEL,aAAa,EACb,sBAAsB,EAOtB,KAAK,EACN,MAAM,SAAS,CAAA;AA2ChB,MAAM,MAAM,aAAa,GAAG;IAI1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IAM7C,IAAI,CAAC,EAAE,IAAI,CAAA;IAKX,WAAW,CAAC,EAAE,IAAI,CAAA;IAMlB,OAAO,CAAC,EAAE,IAA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IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IAKzB,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;CACzC,CAAA;AAsWD,KAAK,SAAS,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAA;AAEjD,iBAAS,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,WAE5D;AACD,iBAAS,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,WAE7D;AACD,iBAAS,gBAAgB,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,WAElE;AACD,iBAAS,aAAa,CACpB,IAAI,EAAE,SAAS,EACf,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,WAKrD;;;;;;;;;;;;;;;;;SAYM,UAAU;WACR,YAAY;mBACJ,oBAAoB;4BACX,6BAA6B;gBACzC,iBAAiB;iBAChB,kBAAkB;eACpB,uBAAuB;mBACnB,oBAAoB;;AARrC,wBASC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from'./../ext/tslib/tslib.es6.js';import{getMonth as n,getYear as r,isSameDay as i,format as a,isSameMonth as o,addMonths as l,addYears as s,isBefore as c,isAfter as
|
|
1
|
+
import{__rest as e,__assign as t}from'./../ext/tslib/tslib.es6.js';import{getMonth as n,getYear as r,isSameDay as i,format as a,isSameMonth as o,addMonths as l,addYears as s,isBefore as c,isAfter as u,isWithinInterval as d}from"date-fns";import m,{forwardRef as h,useRef as f,useState as g,useEffect as p,useImperativeHandle as b,Children as y}from"react";import{Box as S}from"../Box/Box.js";import{Button as k}from"../Button/Button.js";import{Group as v}from"../Group/Group.js";import z from"../HeadingUppercase/HeadingUppercase.js";import{useHover as D}from"../hooks/use-hover.js";import"mousetrap";import"../hooks/use-measure.js";import{StackView as x}from"../StackView/StackView.js";import{useThemeValue as C}from"../system/utils.js";import E from"./Day.js";import{MIN_MONTH_DEFAULT as w,MAX_MONTH_DEFAULT as O,MIN_YEAR_DEFAULT as j,MAX_YEAR_DEFAULT as W,getMonthWeekDays as M,getMonthWeeks as B,MONTHS as T,TODAY as I,getNextOccurrenceOfDay as A,getYears as F}from"./utils.js";var H={lg:{buttonSize:"sm",cellSize:7,fontSize:3,headerFontSize:2,trimWeekdays:3},md:{buttonSize:"sm",cellSize:5,fontSize:4,headerFontSize:2,trimWeekdays:3},sm:{buttonSize:"sm",cellSize:4,fontSize:4,headerFontSize:4,statusOffset:"12.5%",trimWeekdays:2}},P=h((function(d,h){var A=d.date,R=void 0===A?null:A,G=d.initialDate,N=void 0===G?I:G,U=d.maxDate,V=void 0===U?null:U,Y=d.minDate,_=void 0===Y?null:Y,q=d.onDateChange,J=void 0===q?null:q,K=d.onDateSelect,L=void 0===K?null:K,Q=d.renderDay,X=void 0===Q?function(e){return m.createElement(E,t({},e))}:Q,Z=d.selected,$=void 0===Z?null:Z,ee=d.size,te=void 0===ee?"md":ee,ne=d.weekStartsOn,re=void 0===ne?null:ne,ie=e(d,["date","initialDate","maxDate","minDate","onDateChange","onDateSelect","renderDay","selected","size","weekStartsOn"]),ae=C("calendar"),oe=f(R),le=D(),se=le.hover,ce=le.hoverProps,ue=g(R||N),de=ue[0],me=ue[1],he=g("calendar"),fe=he[0],ge=he[1],pe="calendar"===fe,be="years"===fe,ye="months"===fe,Se=n(de),ke=r(de),ve=F(ke),ze=n(_)||w,De=n(V)||O,xe=r(_)||j,Ce=r(V)||W,Ee=H[te],we=Ee.buttonSize,Oe=Ee.cellSize,je=Ee.fontSize,We=Ee.headerFontSize,Me=Ee.statusOffset,Be=Ee.trimWeekdays,Te=M({trimWeekdays:Be,weekStartsOn:re||ae.weekStartsOn||0}),Ie=B(de,{forceSixWeeks:!0,weekStartsOn:re||ae.weekStartsOn||0}),Ae=function(e,t){var n=t?"calendar":fe;P.isBeforeDay(e,_)?e=_:P.isAfterDay(e,V)&&(e=V),null===R?(me(e),ge(n)):ge(n),J&&J(e)},Fe=function(e){Ae(("years"===fe?s:l)(de,e))};return p((function(){null===R||i(oe.current,R)||me(R),oe.current=R}),[R]),b(h,(function(){return{navigateCalendar:Fe,setDate:Ae}})),m.createElement(x,t({innerRef:h},ce,ie),m.createElement(x,{axis:"horizontal",alignment:"center",distribution:"space-between",padding:.5,paddingBottom:0},m.createElement(x,{axis:"horizontal",spacing:.5},m.createElement(S,{"aria-label":ye?"Choose dates":"Choose month",as:"button",type:"button",backgroundColor:se?"highlight":"transparent",cursor:"pointer",fontSize:We,hover:{backgroundColor:"highlightSecondary"},lineHeight:3,onClick:function(){ge(ye?"calendar":"months")},padding:.25,radius:3,tabIndex:-1},a(de,"MMMM")),m.createElement(S,{"aria-label":be?"Choose dates":"Choose year",as:"button",type:"button",backgroundColor:se?"highlight":"transparent",cursor:"pointer",fontSize:We,hover:{backgroundColor:"highlightSecondary"},lineHeight:3,onClick:function(){ge(be?"calendar":"years")},padding:.25,radius:3,tabIndex:-1},ke)),m.createElement(v,{marginRight:.5,childProps:{size:we,variant:"outline"}},m.createElement(k,{disabled:be?ke<=xe:o(de,_),icon:{name:"general.leftChevron",size:"xxs"},onClick:function(){return Fe(-1)},tabIndex:-1,title:"Previous month"}),m.createElement(k,{icon:{name:"tapestry.radio1"},onClick:function(){return Ae(I,!0)},tabIndex:-1,tooltip:{title:"Today"}}),m.createElement(k,{disabled:be?ke>=Ce:o(de,V),icon:{name:"general.rightChevron",size:"xxs"},onClick:function(){return Fe(1)},tabIndex:-1,title:"Next month"}))),ye&&m.createElement(x,{axis:"horizontal",width:7*Oe,height:6*Oe+3.5,marginTop:.5,wrap:!0},T.map((function(e,t){var n=!P.isWithinRange(new Date(ke,t,1),{end:new Date(Ce,De,1),start:new Date(xe,ze,1)});return m.createElement(x,{key:e,as:"button",type:"button",basis:7*Oe/3,alignment:"center",distribution:"center",fontWeight:700,cursor:n?"not-allowed":"pointer",backgroundColor:Se===t?"surfaceSecondary":"transparent",opacity:n?.6:void 0,hover:{backgroundColor:n?void 0:"highlight"},disabled:n,onClick:function(){Ae(l(de,t-Se),!0)},children:m.createElement(z,{cursor:"inherit"},e.substring(0,3))})}))),be&&m.createElement(x,{axis:"horizontal",width:7*Oe,height:6*Oe+3.5,marginTop:.5,wrap:!0},ve.map((function(e){var t=!(e>=xe&&e<=Ce);return m.createElement(x,{key:e,as:"button",type:"button",basis:7*Oe/3,alignment:"center",distribution:"center",fontWeight:700,cursor:t?"not-allowed":"pointer",backgroundColor:ke===e?"surfaceTertiary":"transparent",opacity:t?.6:void 0,hover:{backgroundColor:t?void 0:"highlight"},disabled:t,onClick:function(){Ae(s(de,e-ke),!0)},children:m.createElement(z,{cursor:"inherit"},e)})}))),pe&&m.createElement(x,null,m.createElement(x,{axis:"horizontal"},Te.map((function(e){return m.createElement(x,{key:e.full,alignment:"center",distribution:"center",width:Oe,height:4},m.createElement(z,{fontSize:6},e.trimmed))}))),Ie.map((function(e,t){return m.createElement(x,{key:t,axis:"horizontal"},y.toArray(e.map((function(e){var t=o(e,de),n=c(e,_),r=u(e,V),a=i(e,$),l=i(e,I);return X({backgroundColor:n||r?"surfaceSecondary":"inherit",cellSize:Oe,color:a?"white":t&&!(n||r)?"inherit":"foregroundTertiary",date:e,fontSize:je,inSameMonth:t,isMaxDate:r,isMinDate:n,isSelected:a,isToday:l,selectDate:L,statusOffset:Me})}))))}))))}));P.defaultProps={date:null,initialDate:I,maxDate:null,minDate:null,renderDay:function(e){return m.createElement(E,t({},e))},size:"md"},P.TODAY=I,P.Day=E,P.getNextOccurrenceOfDay=A,P.getMonthWeeks=B,P.isAfterDay=function(e,t){return e&&t&&u(e,t)},P.isBeforeDay=function(e,t){return e&&t&&c(e,t)},P.isSameDay=function(e,t){return e&&t&&i(e,t)},P.isWithinRange=function(e,t){var n=t.start,r=t.end;if(e&&n&&r&&u(r,n))return d(e,{end:r,start:n})};export{P as default};
|
|
2
2
|
//# sourceMappingURL=Calendar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from'./../ext/tslib/tslib.es6.js';import n from"react";import{Button as
|
|
1
|
+
import{__rest as e,__assign as t}from'./../ext/tslib/tslib.es6.js';import n from"react";import{Button as i}from"../Button/Button.js";import{Divider as r}from"../Divider/Divider.js";import o from"../Dropdown/Dropdown.js";import a from"../Icon/Icon.js";import{StackView as c}from"../StackView/StackView.js";import{Text as s}from"../Text/Text.js";function l(l){var p=l.buttonProps,m=void 0===p?{}:p,d=l.ccAppEnabled,g=void 0!==d&&d,h=l.ccPublishingEnabled,b=void 0!==h&&h,u=l.ccWebEnabled,x=void 0!==u&&u,E=l.description,v=l.destinationLabel,f=l.disabledDescription,w=void 0===f?"People cannot access this product on the web or mobile app.":f,z=l.dropdownProps,P=void 0===z?{}:z,k=l.icons,j=l.productUrl,C=l.renderPopoverFooter,D=void 0===C?function(){}:C,L=l.settingsUrl,T=l.showSettingsLink,W=void 0===T||T,U=e(l,["buttonProps","ccAppEnabled","ccPublishingEnabled","ccWebEnabled","description","destinationLabel","disabledDescription","dropdownProps","icons","productUrl","renderPopoverFooter","settingsUrl","showSettingsLink"]),S=t({distribution:"start",fontWeight:400,paddingHorizontal:2,radius:0,variant:"naked"},m),V=g||x,A=W||V&&b||!!D(),B=t({check:"general.check",exclamationTriangle:"general.exclamationTriangle",external:"general.newWindow",x:"general.x"},k);return n.createElement(c,t({axis:"horizontal",spacing:1},U),n.createElement(o,t({fontWeight:400,placement:"bottom-end",popoverProps:t({width:"280px"},P.popoverProps),theme:"dark",title:"Church Center",variant:"outline"},(!V||!b)&&{iconLeft:{name:B.exclamationTriangle,size:"sm"}},P),n.createElement(c,{padding:2,spacing:2},b?V?n.createElement(s,{size:"14px"},E):n.createElement(s,{size:"14px"},n.createElement("strong",null,"Church Center is disabled.")," ",w):n.createElement(s,{size:"14px"},n.createElement("strong",null,"This product is not published on Church Center.")," ",w),V&&b&&n.createElement(c,{axis:"horizontal",spacing:3},n.createElement(c,{axis:"horizontal",alignment:"center",spacing:.5},n.createElement(a,{color:x?"success":"error",name:x?B.check:B.x,size:"sm"}),n.createElement(s,{size:"14px",weight:700},"Web")),n.createElement(c,{axis:"horizontal",alignment:"center",spacing:.5},n.createElement(a,{color:g?"success":"error",name:g?B.check:B.x,size:"sm"}),n.createElement(s,{size:"14px",weight:700},"Mobile app")))),A&&n.createElement(r,{margin:.5}),n.createElement(c,null,W&&n.createElement(i,t({external:!0,title:"Update settings",to:L},S)),V&&b&&n.createElement(i,t({external:!0,iconRight:{color:"inherit",marginLeft:1,name:B.external,size:"xs"},title:"Visit ".concat(v),to:j},S,{as:"a"})),D(S))))}export{l as ChurchCenterStatus};
|
|
2
2
|
//# sourceMappingURL=ChurchCenterStatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxItems.d.ts","sourceRoot":"","sources":["../../src/Combobox/ComboboxItems.tsx"],"names":[],"mappings":"AACA,OAAc,EAAY,YAAY,EAAuB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ComboboxItems.d.ts","sourceRoot":"","sources":["../../src/Combobox/ComboboxItems.tsx"],"names":[],"mappings":"AACA,OAAc,EAAY,YAAY,EAAuB,MAAM,OAAO,CAAA;AAyB1E,KAAK,KAAK,CAAC,IAAI,SAAS,MAAM,IAAI;IAIhC,MAAM,CAAC,EAAE,MAAM,CAAA;IAKf,KAAK,EAAE,IAAI,EAAE,CAAA;IAKb,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAKrC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,YAAY,CAAA;IAKxD,KAAK,CAAC,EAAE,MAAM,CAAA;IAKd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,iBAAS,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,eAsC7D;kBAtCQ,aAAa;;;AAwCtB,eAAe,aAAa,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from'./../ext/tslib/tslib.es6.js';import{matchSorter as r}from"match-sorter";import o,{useState as i,useEffect as
|
|
1
|
+
import{__rest as e,__assign as t}from'./../ext/tslib/tslib.es6.js';import{matchSorter as r}from"match-sorter";import o,{useState as i,useEffect as n,Children as m}from"react";import{Box as l}from"../Box/Box.js";import a from"../HeadingUppercase/HeadingUppercase.js";import s from"../Menu/Menu.js";import{StackView as u}from"../StackView/StackView.js";import{useThemeProps as f}from"../system/utils.js";import{Text as c}from"../Text/Text.js";import p from"./ComboboxItem.js";var d=function(e){return o.createElement(s.Item,null,o.createElement(c,null,"No results for"," ",o.createElement(c,{as:"span",inline:!0,color:"grey-7"},"“",e,"”")))},v=function(e){return o.createElement(p,{value:e,children:e?String(e):null})};function E(s){var c=f("combobox.items",s),p=c.filter,E=c.items,b=c.renderEmpty,g=void 0===b?d:b,j=c.renderItem,x=void 0===j?v:j,y=c.title,I=c.value,h=void 0===I?"":I,H=e(c,["filter","items","renderEmpty","renderItem","title","value"]),S=i(w({filter:p,items:E,value:h})),V=S[0],k=S[1];function w(e){var t=e.items,o=e.value,i=e.filter;return r(t,o.length>0?o:"",i)}return n((function(){k(w({filter:p,items:E,value:h}))}),[E,h,p]),o.createElement(l,t({},H),y&&o.createElement(u,{paddingHorizontal:1,paddingVertical:.5},o.createElement(a,null,y)),m.toArray(V.length>0?V.map((function(e,t){return x(e,t)})):"function"==typeof g?g(h):g))}E.displayName="Combobox.Items";export{E as default};
|
|
2
2
|
//# sourceMappingURL=ComboboxItems.js.map
|
package/dist/Select/Select.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ItemList } from '../ItemList';
|
|
|
5
5
|
import Inline from './Inline';
|
|
6
6
|
import Option from './Option';
|
|
7
7
|
import OptionGroup from './OptionGroup';
|
|
8
|
-
import {
|
|
8
|
+
import { toggleValue } from './utils';
|
|
9
9
|
import Value from './Value';
|
|
10
10
|
type ValueBase = boolean | string | number | null | undefined;
|
|
11
11
|
type ValueFindFn = (item?: ValueBase) => boolean;
|
|
@@ -40,7 +40,7 @@ type Props<V extends Value | Value[], IsMultiple extends boolean = false> = {
|
|
|
40
40
|
placement?: Placement;
|
|
41
41
|
popoverProps?: object;
|
|
42
42
|
renderTo?: HTMLElement | string;
|
|
43
|
-
renderValue?: (
|
|
43
|
+
renderValue?: (item: any) => ReactNode;
|
|
44
44
|
tooltip?: Object;
|
|
45
45
|
value?: IsMultiple extends true ? V[] : V;
|
|
46
46
|
};
|
|
@@ -75,7 +75,7 @@ declare class Select<V extends Value | Value[] = Value | Value[], IsMultiple ext
|
|
|
75
75
|
state: {
|
|
76
76
|
isPopoverOpen: boolean;
|
|
77
77
|
isPopoverVisible: boolean;
|
|
78
|
-
selectedOptions:
|
|
78
|
+
selectedOptions: any[];
|
|
79
79
|
uncontrolledValue: any[] | (IsMultiple extends true ? V[] : V);
|
|
80
80
|
};
|
|
81
81
|
componentDidMount(): void;
|
|
@@ -88,7 +88,7 @@ declare class Select<V extends Value | Value[] = Value | Value[], IsMultiple ext
|
|
|
88
88
|
closePopover: () => void;
|
|
89
89
|
togglePopover: () => void;
|
|
90
90
|
setSelectedOptions(): void;
|
|
91
|
-
getSortedSelectedOptions(value: any):
|
|
91
|
+
getSortedSelectedOptions(value: any): any[];
|
|
92
92
|
getValue: () => any;
|
|
93
93
|
getHiddenInputValues: () => JSX.Element[];
|
|
94
94
|
getSelected: (item: any) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAc,EA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yBAYV;IAED,YAAY,sBAuBX;IAED,4BAA4B,aAO3B;IAED,2BAA2B,aAS1B;IAED,UAAU,aAQT;IAED,MAAM;CA8PP;AAQD,eAAe,MAAM,CAAA"}
|
package/dist/Select/Select.js
CHANGED
|
@@ -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 from"lodash/isEqual";import i,{Component as l}from"react";import a from"../FocusGroup/FocusGroup.js";import u from"../Icon/Icon.js";import c from"../Input/Input.js";import p from"../ItemList/ItemList.js";import s from"../ItemList/ItemListController.js";import"../ItemList/ItemListItem.js";import d from"../Menu/Menu.js";import{Popover as f}from"../Popover/Popover.js";import m from"../Tooltip/Tooltip.js";import{joinChildren as b,generateId as v,isArray as g,isValueInArray as h,shallowEqual as O}from"../utils.js";import{SELECT_DISPLAY_NAME as y}from"./constants.js";import P from"./Context.js";import S from"./Inline.js";import w from"./Option.js";import j from"./OptionGroup.js";import{toggleValue as V,optionsToElements as I,getSelectedOptions as x,renderOptions as C}from"./utils.js";import L from"./Value.js";function k(e){return i.createElement(d,o({},e,{as:"ul"}))}var E=function(l){function d(){var e=null!==l&&l.apply(this,arguments)||this;return Object.defineProperty(e,"input",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(e,"popover",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(e,"itemList",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(e,"id",{enumerable:!0,configurable:!0,writable:!0,value:v("select")}),Object.defineProperty(e,"canCallFocus",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(e,"contextValue",{enumerable:!0,configurable:!0,writable:!0,value:{canSelectOption:{current:!1},multiple:e.props.multiple}}),Object.defineProperty(e,"state",{enumerable:!0,configurable:!0,writable:!0,value:{isPopoverOpen:e.props.defaultOpen,isPopoverVisible:!1,selectedOptions:[],uncontrolledValue:void 0===e.props.defaultValue?e.props.multiple?[]:null:e.props.defaultValue}}),Object.defineProperty(e,"addUserSelectStyle",{enumerable:!0,configurable:!0,writable:!0,value:function(){document.body.style.webkitUserSelect="none"}}),Object.defineProperty(e,"clearUserSelectStyle",{enumerable:!0,configurable:!0,writable:!0,value:function(){document.body.style.webkitUserSelect=""}}),Object.defineProperty(e,"openPopover",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t&&(setTimeout((function(){e.contextValue.canSelectOption.current=!0}),300),setTimeout((function(){var t=e.state.selectedOptions;t.length>0&&e.itemList.scrollItemIntoViewByIndex(t[0].index)}))),e.setState({isPopoverOpen:!0,isPopoverVisible:t})}}),Object.defineProperty(e,"closePopover",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.contextValue.canSelectOption.current=!1,e.setState({isPopoverOpen:!1,isPopoverVisible:!1}),e.itemList&&e.itemList.clearHighlightedIndex()}}),Object.defineProperty(e,"togglePopover",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.state.isPopoverVisible&&e.state.isPopoverOpen?e.closePopover():e.openPopover(!0)}}),Object.defineProperty(e,"getValue",{enumerable:!0,configurable:!0,writable:!0,value:function(){if(e.state.selectedOptions.length>0){var t=e.isControlled()?e.props.value:e.state.uncontrolledValue;return e.props.renderValue(g(t)?e.getSortedSelectedOptions(t):e.state.selectedOptions)}return e.props.emptyValue}}),Object.defineProperty(e,"getHiddenInputValues",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.name,n=e.state.selectedOptions;return t&&n.length>0?n.map((function(e,n){return i.createElement("input",{key:n,name:t,type:"hidden",value:e.value.toString()})})):null}}),Object.defineProperty(e,"getSelected",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e.props.value,o=e.state.uncontrolledValue;return e.isControlled()?"function"==typeof n?n(t):g(n)?h(n,t)>-1:n===t:g(o)?h(o,t)>-1:o===t}}),Object.defineProperty(e,"handleSelect",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e.props,o=n.multiple,r=n.value,i=t;e.isControlled()?g(r)&&(i=d.toggleValue(e.props.value,t)):(o&&(i=d.toggleValue(e.state.uncontrolledValue,t)),e.setState({uncontrolledValue:i},e.setSelectedOptions)),e.props.onChange&&e.props.onChange({selectedValue:t,value:i}),!o&&e.state.isPopoverVisible&&e.focusInput()}}),Object.defineProperty(e,"highlightFirstSelectedOption",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.state.selectedOptions;t.length>0?e.itemList.setHighlightedIndex(t[0].index):e.itemList.moveHighlightedIndex(1,{contain:!0})}}),Object.defineProperty(e,"highlightLastSelectedOption",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.state.selectedOptions;t.length>0?e.itemList.setHighlightedIndex(t[Math.max(0,t.length-1)].index):e.itemList.moveHighlightedIndex(-1,{contain:!0})}}),Object.defineProperty(e,"focusInput",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.input&&(e.contextValue.canSelectOption.current=!1,e.setState({isPopoverVisible:!1}),e.canCallFocus=!1,e.input.focus(),e.canCallFocus=!0)}}),e}return e(d,l),Object.defineProperty(d.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){"undefined"!=typeof document&&document.addEventListener("mouseup",this.clearUserSelectStyle),this.setSelectedOptions()}}),Object.defineProperty(d.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isControlled()&&this.setSelectedOptions()}}),Object.defineProperty(d.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){"undefined"!=typeof document&&(document.removeEventListener("mouseup",this.clearUserSelectStyle),this.clearUserSelectStyle())}}),Object.defineProperty(d.prototype,"isControlled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return void 0!==this.props.value}}),Object.defineProperty(d.prototype,"setSelectedOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props.options?I(this.props.options):this.props.children,t=x(e,this.getSelected);O(this.state.selectedOptions.map((function(e){return e.value})),t.map((function(e){return e.value})))&&r(this.state.selectedOptions.map((function(e){return e.children})),t.map((function(e){return e.children})))||this.setState({selectedOptions:t})}}),Object.defineProperty(d.prototype,"getSortedSelectedOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return t([],this.state.selectedOptions,!0).sort((function(t,n){return h(e,t.value)-h(e,n.value)}))}}),Object.defineProperty(d.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props,r=t.children;t.defaultValue;var l=t.disabled;t.emptyValue;var d=t.innerRef;t.defaultOpen;var b=t.keepInView,v=t.lockScrollWhileOpen,g=t.matchWidths,h=t.multiple;t.name;var O=t.onBlur;t.onChange,t.onClick;var y=t.onFocus,S=t.onKeyDown,w=t.onMouseDown,j=t.onMouseUp,V=t.options,x=t.placement,L=t.popoverProps,E=t.renderTo;t.renderValue;var D=t.tooltip;t.value;var F=n(t,["children","defaultValue","disabled","emptyValue","innerRef","defaultOpen","keepInView","lockScrollWhileOpen","matchWidths","multiple","name","onBlur","onChange","onClick","onFocus","onKeyDown","onMouseDown","onMouseUp","options","placement","popoverProps","renderTo","renderValue","tooltip","value"]),U=this.state,H=U.isPopoverOpen,R=U.isPopoverVisible;return i.createElement(P.Provider,{value:this.contextValue},i.createElement(a,{onBlur:this.closePopover},(function(t){var n=t.requestBlur,a=t.setRef;return i.createElement(p,{ref:function(t){return e.itemList=t},selected:e.getSelected,onSelect:e.handleSelect},(function(t){var p=t.getItemByText,P=t.getHighlightedIndex,U=t.moveHighlightedIndex,T=t.selectHighlightedItem,B=t.setHighlightedIndex,M=t.selectItemByIndex,W=t.stringSearch;return i.createElement(f,o({},L,{ref:function(t){e.popover=t},innerRef:function(t){a("".concat(e.id,"-popover"))(t)},as:k,tabIndex:-1,"aria-labelledby":e.id,"aria-multiselectable":h,role:"listbox",display:R?void 0:"none",minWidth:16,padding:0,elevation:2,matchWidths:g,lockScrollWhileOpen:!!R&&v,keepInView:b,placement:x,renderTo:E,open:H,onRequestClose:function(){return e.setState({isPopoverVisible:!1})},onBlur:n,onKeyDown:function(t){switch(t.key){case"ArrowUp":t.preventDefault(),R?U(-1,{contain:!0}):(e.openPopover(!0),setTimeout((function(){e.highlightLastSelectedOption()})));break;case"ArrowDown":t.preventDefault(),R?U(1,{contain:!0}):(e.openPopover(!0),setTimeout((function(){e.highlightFirstSelectedOption()})));break;case"Enter":R&&(t.preventDefault(),T());break;case"Escape":H&&!R&&(t.preventDefault(),e.closePopover());break;case" ":t.preventDefault(),null===P()?(e.togglePopover(),setTimeout((function(){e.highlightFirstSelectedOption()}))):R?T():e.openPopover(!0);break;default:W(t).then((function(e){var t=p(e);t&&(R?B(t.props.index):M(t.props.index))}))}},anchorElement:function(t){var r=l?{}:{onBlur:function(e){n(e),O&&O(e)},onFocus:function(t){e.canCallFocus&&e.openPopover(!1),y&&y(t)},onKeyDown:function(e){t.onKeyDown(e),S&&S(e)},onMouseDown:function(t){0===t.button&&(e.addUserSelectStyle(),e.canCallFocus=!1,e.togglePopover()),w&&w(t)},onMouseUp:function(t){e.canCallFocus=!0,j&&j(t)}};return i.createElement(s,null,(function(n){var p=n.getHighlightedItemId;return i.createElement(m,o({triggerOnHover:!R,triggerOnFocus:!R},D),i.createElement(c.InputBox,o({innerRef:function(n){"function"==typeof t.innerRef?t.innerRef(n):t.innerRef&&t.innerRef.current&&(t.innerRef.current=n),e.input=n,a("".concat(e.id,"-button"))(n),d&&d(n)},id:e.id,tabIndex:0,role:"combobox",disabled:l,"aria-disabled":l,"aria-haspopup":R,"aria-expanded":R,"aria-activedescendant":p(),cursor:"pointer",userSelect:"none",touchAction:"manipulation",focusChildrenOnFocus:!1,renderRight:i.createElement(u,{name:R?"general.upCaret":"general.downCaret"})},F,r),e.getValue(),e.getHiddenInputValues()))}))}}),C(V?I(V):r))}))})))}}),Object.defineProperty(d,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:y}),Object.defineProperty(d,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{defaultOpen:!1,emptyValue:i.createElement(L,null,"Select an item"),lockScrollWhileOpen:!0,matchWidths:"minimum",renderValue:function(e){return i.createElement(L,null,b(e.map((function(e){return e.children}))))}}}),d}(l);E.Inline=S,E.Option=w,E.OptionGroup=j,E.Value=L,E.toggleValue=V;export{E as default};
|
|
1
|
+
import{__extends as e,__spreadArray as t,__rest as n,__assign as o}from'./../ext/tslib/tslib.es6.js';import r from"lodash/isEqual";import i,{Component as l}from"react";import a from"../FocusGroup/FocusGroup.js";import u from"../Icon/Icon.js";import c from"../Input/Input.js";import p from"../ItemList/ItemList.js";import s from"../ItemList/ItemListController.js";import"../ItemList/ItemListItem.js";import d from"../Menu/Menu.js";import{Popover as f}from"../Popover/Popover.js";import m from"../Tooltip/Tooltip.js";import{joinChildren as b,generateId as v,isArray as g,isValueInArray as h,shallowEqual as O}from"../utils.js";import{SELECT_DISPLAY_NAME as y}from"./constants.js";import P from"./Context.js";import S from"./Inline.js";import w from"./Option.js";import j from"./OptionGroup.js";import{toggleValue as V,optionsToElements as I,getSelectedOptions as x,renderOptions as C}from"./utils.js";import L from"./Value.js";function k(e){return i.createElement(d,o({},e,{as:"ul"}))}var E=function(l){function d(){var e=null!==l&&l.apply(this,arguments)||this;return Object.defineProperty(e,"input",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(e,"popover",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(e,"itemList",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(e,"id",{enumerable:!0,configurable:!0,writable:!0,value:v("select")}),Object.defineProperty(e,"canCallFocus",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(e,"contextValue",{enumerable:!0,configurable:!0,writable:!0,value:{canSelectOption:{current:!1},multiple:e.props.multiple}}),Object.defineProperty(e,"state",{enumerable:!0,configurable:!0,writable:!0,value:{isPopoverOpen:e.props.defaultOpen,isPopoverVisible:!1,selectedOptions:[],uncontrolledValue:void 0===e.props.defaultValue?e.props.multiple?[]:null:e.props.defaultValue}}),Object.defineProperty(e,"addUserSelectStyle",{enumerable:!0,configurable:!0,writable:!0,value:function(){document.body.style.webkitUserSelect="none"}}),Object.defineProperty(e,"clearUserSelectStyle",{enumerable:!0,configurable:!0,writable:!0,value:function(){document.body.style.webkitUserSelect=""}}),Object.defineProperty(e,"openPopover",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t&&(setTimeout((function(){e.contextValue.canSelectOption.current=!0}),300),setTimeout((function(){var t=e.state.selectedOptions;t.length>0&&e.itemList.scrollItemIntoViewByIndex(t[0].index)}))),e.setState({isPopoverOpen:!0,isPopoverVisible:t})}}),Object.defineProperty(e,"closePopover",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.contextValue.canSelectOption.current=!1,e.setState({isPopoverOpen:!1,isPopoverVisible:!1}),e.itemList&&e.itemList.clearHighlightedIndex()}}),Object.defineProperty(e,"togglePopover",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.state.isPopoverVisible&&e.state.isPopoverOpen?e.closePopover():e.openPopover(!0)}}),Object.defineProperty(e,"getValue",{enumerable:!0,configurable:!0,writable:!0,value:function(){if(e.state.selectedOptions.length>0){var t=e.isControlled()?e.props.value:e.state.uncontrolledValue;return e.props.renderValue(g(t)?e.getSortedSelectedOptions(t):e.state.selectedOptions)}return e.props.emptyValue}}),Object.defineProperty(e,"getHiddenInputValues",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.name,n=e.state.selectedOptions;return t&&n.length>0?n.map((function(e,n){return i.createElement("input",{key:n,name:t,type:"hidden",value:e.value})})):null}}),Object.defineProperty(e,"getSelected",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e.props.value,o=e.state.uncontrolledValue;return e.isControlled()?"function"==typeof n?n(t):g(n)?h(n,t)>-1:n===t:g(o)?h(o,t)>-1:o===t}}),Object.defineProperty(e,"handleSelect",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e.props,o=n.multiple,r=n.value,i=t;e.isControlled()?g(r)&&(i=d.toggleValue(e.props.value,t)):(o&&(i=d.toggleValue(e.state.uncontrolledValue,t)),e.setState({uncontrolledValue:i},e.setSelectedOptions)),e.props.onChange&&e.props.onChange({selectedValue:t,value:i}),!o&&e.state.isPopoverVisible&&e.focusInput()}}),Object.defineProperty(e,"highlightFirstSelectedOption",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.state.selectedOptions;t.length>0?e.itemList.setHighlightedIndex(t[0].index):e.itemList.moveHighlightedIndex(1,{contain:!0})}}),Object.defineProperty(e,"highlightLastSelectedOption",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.state.selectedOptions;t.length>0?e.itemList.setHighlightedIndex(t[Math.max(0,t.length-1)].index):e.itemList.moveHighlightedIndex(-1,{contain:!0})}}),Object.defineProperty(e,"focusInput",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.input&&(e.contextValue.canSelectOption.current=!1,e.setState({isPopoverVisible:!1}),e.canCallFocus=!1,e.input.focus(),e.canCallFocus=!0)}}),e}return e(d,l),Object.defineProperty(d.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){"undefined"!=typeof document&&document.addEventListener("mouseup",this.clearUserSelectStyle),this.setSelectedOptions()}}),Object.defineProperty(d.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isControlled()&&this.setSelectedOptions()}}),Object.defineProperty(d.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){"undefined"!=typeof document&&(document.removeEventListener("mouseup",this.clearUserSelectStyle),this.clearUserSelectStyle())}}),Object.defineProperty(d.prototype,"isControlled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return void 0!==this.props.value}}),Object.defineProperty(d.prototype,"setSelectedOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props.options?I(this.props.options):this.props.children,t=x(e,this.getSelected);O(this.state.selectedOptions.map((function(e){return e.value})),t.map((function(e){return e.value})))&&r(this.state.selectedOptions.map((function(e){return e.children})),t.map((function(e){return e.children})))||this.setState({selectedOptions:t})}}),Object.defineProperty(d.prototype,"getSortedSelectedOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return t([],this.state.selectedOptions,!0).sort((function(t,n){return h(e,t.value)-h(e,n.value)}))}}),Object.defineProperty(d.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props,r=t.children;t.defaultValue;var l=t.disabled;t.emptyValue;var d=t.innerRef;t.defaultOpen;var b=t.keepInView,v=t.lockScrollWhileOpen,g=t.matchWidths,h=t.multiple;t.name;var O=t.onBlur;t.onChange,t.onClick;var y=t.onFocus,S=t.onKeyDown,w=t.onMouseDown,j=t.onMouseUp,V=t.options,x=t.placement,L=t.popoverProps,E=t.renderTo;t.renderValue;var D=t.tooltip;t.value;var F=n(t,["children","defaultValue","disabled","emptyValue","innerRef","defaultOpen","keepInView","lockScrollWhileOpen","matchWidths","multiple","name","onBlur","onChange","onClick","onFocus","onKeyDown","onMouseDown","onMouseUp","options","placement","popoverProps","renderTo","renderValue","tooltip","value"]),U=this.state,H=U.isPopoverOpen,R=U.isPopoverVisible;return i.createElement(P.Provider,{value:this.contextValue},i.createElement(a,{onBlur:this.closePopover},(function(t){var n=t.requestBlur,a=t.setRef;return i.createElement(p,{ref:function(t){return e.itemList=t},selected:e.getSelected,onSelect:e.handleSelect},(function(t){var p=t.getItemByText,P=t.getHighlightedIndex,U=t.moveHighlightedIndex,T=t.selectHighlightedItem,B=t.setHighlightedIndex,M=t.selectItemByIndex,W=t.stringSearch;return i.createElement(f,o({},L,{ref:function(t){e.popover=t},innerRef:function(t){a("".concat(e.id,"-popover"))(t)},as:k,tabIndex:-1,"aria-labelledby":e.id,"aria-multiselectable":h,role:"listbox",display:R?void 0:"none",minWidth:16,padding:0,elevation:2,matchWidths:g,lockScrollWhileOpen:!!R&&v,keepInView:b,placement:x,renderTo:E,open:H,onRequestClose:function(){return e.setState({isPopoverVisible:!1})},onBlur:n,onKeyDown:function(t){switch(t.key){case"ArrowUp":t.preventDefault(),R?U(-1,{contain:!0}):(e.openPopover(!0),setTimeout((function(){e.highlightLastSelectedOption()})));break;case"ArrowDown":t.preventDefault(),R?U(1,{contain:!0}):(e.openPopover(!0),setTimeout((function(){e.highlightFirstSelectedOption()})));break;case"Enter":R&&(t.preventDefault(),T());break;case"Escape":H&&!R&&(t.preventDefault(),e.closePopover());break;case" ":t.preventDefault(),null===P()?(e.togglePopover(),setTimeout((function(){e.highlightFirstSelectedOption()}))):R?T():e.openPopover(!0);break;default:W(t).then((function(e){var t=p(e);t&&(R?B(t.props.index):M(t.props.index))}))}},anchorElement:function(t){var r=l?{}:{onBlur:function(e){n(e),O&&O(e)},onFocus:function(t){e.canCallFocus&&e.openPopover(!1),y&&y(t)},onKeyDown:function(e){t.onKeyDown(e),S&&S(e)},onMouseDown:function(t){0===t.button&&(e.addUserSelectStyle(),e.canCallFocus=!1,e.togglePopover()),w&&w(t)},onMouseUp:function(t){e.canCallFocus=!0,j&&j(t)}};return i.createElement(s,null,(function(n){var p=n.getHighlightedItemId;return i.createElement(m,o({triggerOnHover:!R,triggerOnFocus:!R},D),i.createElement(c.InputBox,o({innerRef:function(n){"function"==typeof t.innerRef?t.innerRef(n):t.innerRef&&t.innerRef.current&&(t.innerRef.current=n),e.input=n,a("".concat(e.id,"-button"))(n),d&&d(n)},id:e.id,tabIndex:0,role:"combobox",disabled:l,"aria-disabled":l,"aria-haspopup":R,"aria-expanded":R,"aria-activedescendant":p(),cursor:"pointer",userSelect:"none",touchAction:"manipulation",focusChildrenOnFocus:!1,renderRight:i.createElement(u,{name:R?"general.upCaret":"general.downCaret"})},F,r),e.getValue(),e.getHiddenInputValues()))}))}}),C(V?I(V):r))}))})))}}),Object.defineProperty(d,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:y}),Object.defineProperty(d,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{defaultOpen:!1,emptyValue:i.createElement(L,null,"Select an item"),lockScrollWhileOpen:!0,matchWidths:"minimum",renderValue:function(e){return i.createElement(L,null,b(e.map((function(e){return e.children}))))}}}),d}(l);E.Inline=S,E.Option=w,E.OptionGroup=j,E.Value=L,E.toggleValue=V;export{E as default};
|
|
2
2
|
//# sourceMappingURL=Select.js.map
|
package/dist/Select/utils.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
children: any;
|
|
3
|
-
index: number;
|
|
4
|
-
text: string;
|
|
5
|
-
value: V;
|
|
6
|
-
};
|
|
7
|
-
export declare function getSelectedOptions<V>(children: any, selected: any): SelectedOption<V>[];
|
|
1
|
+
export declare function getSelectedOptions(children: any, selected: any): any[];
|
|
8
2
|
export declare function renderOptions(children: any): any;
|
|
9
3
|
export declare function optionsToElements(options: any): any;
|
|
10
4
|
export declare function toggleValue(collection: any, item: any): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/Select/utils.tsx"],"names":[],"mappings":"AAeA,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/Select/utils.tsx"],"names":[],"mappings":"AAeA,wBAAgB,kBAAkB,CAAC,QAAQ,KAAA,EAAE,QAAQ,KAAA,SA2CpD;AAED,wBAAgB,aAAa,CAAC,QAAQ,KAAA,OAsBrC;AAED,wBAAgB,iBAAiB,CAAC,OAAO,KAAA,OAaxC;AAED,wBAAgB,WAAW,CAAC,UAAU,KAAA,EAAE,IAAI,KAAA,OAc3C"}
|
package/dist/TabNav/TabNav.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as o}from'./../ext/tslib/tslib.es6.js';import r from"react";import{designTokens as t}from"../designTokens/index.js";import"mousetrap";import"../hooks/use-measure.js";import{useMediaQuery as e}from"../hooks/use-media-query.js";import{StackView as
|
|
1
|
+
import{__assign as o}from'./../ext/tslib/tslib.es6.js';import r from"react";import{designTokens as t}from"../designTokens/index.js";import"mousetrap";import"../hooks/use-measure.js";import{useMediaQuery as e}from"../hooks/use-media-query.js";import{StackView as a}from"../StackView/StackView.js";import{convertToBaseUnit as i}from"../system/utils.js";import{Tab as s}from"./Tab.js";var d=t.tabNav,m=d.desktop,n=d.mobile,l=function(t){var d=t.selectedTabBackgroundColor,l=void 0===d?m.selectedTabBackgroundColor:d,p=t.tabs,c=e("(max-width: 600px)"),b={paddingHorizontal:i(m.paddingX),spacing:i(m.spacing)},u={backgroundColor:n.backgroundColor,borderBottomColor:n.borderBottomColor,borderBottomStyle:n.borderBottomStyle,borderBottomWidth:n.borderBottomWidth,paddingHorizontal:i(n.paddingX),spacing:i(n.spacing)};return r.createElement(a,o({axis:"horizontal",overflowX:"auto",role:"tablist",spacing:2.5,width:"100%"},c?u:b),p.map((function(t,e){return r.createElement(s,o({key:e,isMobile:c,selectedTabBackgroundColor:l},t))})))};export{l as TabNav,l as default};
|
|
2
2
|
//# sourceMappingURL=TabNav.js.map
|
package/dist/Wizard/Step.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
name: any;
|
|
4
|
-
valid: any;
|
|
5
|
-
}): any;
|
|
1
|
+
import { StepProps } from './StepProps';
|
|
2
|
+
declare function Step({ children, name, valid }: StepProps): any;
|
|
6
3
|
export default Step;
|
|
7
4
|
//# sourceMappingURL=Step.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../src/Wizard/Step.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../src/Wizard/Step.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,iBAAS,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,SAAS,OAIjD;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type StepProps = {
|
|
2
|
+
children: (wizard: {
|
|
3
|
+
activeStepIndex: number;
|
|
4
|
+
payload: Record<string, any>;
|
|
5
|
+
setPayload: (payload: Record<string, any>) => void;
|
|
6
|
+
totalSteps: number;
|
|
7
|
+
}) => any;
|
|
8
|
+
name: string;
|
|
9
|
+
valid?: (payload: Record<string, any>) => boolean;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=StepProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepProps.d.ts","sourceRoot":"","sources":["../../src/Wizard/StepProps.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,CAAC,MAAM,EAAE;QACjB,eAAe,EAAE,MAAM,CAAA;QACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;QAC5B,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAA;QAClD,UAAU,EAAE,MAAM,CAAA;KACnB,KAAK,GAAG,CAAA;IACT,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAA;CAClD,CAAA"}
|
package/dist/Wizard/Wizard.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button/Button';
|
|
3
|
+
import { StackViewProps } from '../StackView';
|
|
3
4
|
import Step from './Step';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
export type WizardProps = {
|
|
5
|
+
import { StepProps } from './StepProps';
|
|
6
|
+
export type WizardProps = StackViewProps & {
|
|
7
|
+
alwaysCancellable?: boolean;
|
|
9
8
|
backButtonProps?: ButtonProps;
|
|
10
9
|
buttonProps?: ButtonProps;
|
|
11
10
|
cancelButtonProps?: ButtonProps;
|
|
@@ -15,22 +14,23 @@ export type WizardProps = {
|
|
|
15
14
|
nextButtonProps?: ButtonProps;
|
|
16
15
|
nextButtonTitle?: (props: {
|
|
17
16
|
activeStepIndex: number;
|
|
18
|
-
steps:
|
|
17
|
+
steps: StepProps[];
|
|
19
18
|
totalSteps: number;
|
|
20
19
|
}) => string;
|
|
21
20
|
onCancel?: () => void;
|
|
22
21
|
onSubmit?: (payload: Record<string, any>, complete: () => void) => void;
|
|
23
22
|
renderProgress?: (props: {
|
|
24
23
|
activeStepIndex: number;
|
|
25
|
-
steps:
|
|
24
|
+
steps: StepProps[];
|
|
26
25
|
totalSteps: number;
|
|
27
26
|
}) => React.ReactNode;
|
|
28
27
|
};
|
|
29
|
-
declare const
|
|
28
|
+
declare const Wizard: {
|
|
30
29
|
(props: WizardProps): JSX.Element;
|
|
31
30
|
Step: typeof Step;
|
|
32
|
-
} & {
|
|
33
|
-
Step: typeof Step;
|
|
34
31
|
};
|
|
35
|
-
export default
|
|
32
|
+
export default Wizard;
|
|
33
|
+
export interface Wizard extends React.FC<WizardProps> {
|
|
34
|
+
Step: typeof Step;
|
|
35
|
+
}
|
|
36
36
|
//# sourceMappingURL=Wizard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wizard.d.ts","sourceRoot":"","sources":["../../src/Wizard/Wizard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsD,MAAM,OAAO,CAAA;AAG1E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"Wizard.d.ts","sourceRoot":"","sources":["../../src/Wizard/Wizard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsD,MAAM,OAAO,CAAA;AAG1E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C,OAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAIxD,OAAO,IAAI,MAAM,Q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-
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
|
|
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 c}from"../Card/Card.js";import{Divider as p}from"../Divider/Divider.js";import m 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"@planningcenter/icons/paths/general";import"@planningcenter/icons/paths/tapestry";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,b=S.autoFocus,j=void 0===b||b,y=S.backButtonProps,h=S.buttonProps,E=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(c,{spacing:r.createElement(p,null),elevation:1},r.createElement(m,{activeViewIndex:N,autoFocus:j},s.map(k,(function(e,t){return r.createElement(m.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"},h,y)),(x||0===N)&&V&&r.createElement(l,t({disabled:J,onClick:V,size:"lg",title:"Cancel",variant:"naked",marginLeft:x?"auto":void 0},h,E)),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})},h,z))))))};S.Step=g;export{S as default};
|
|
2
2
|
//# sourceMappingURL=Wizard.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { StepProps } from './StepProps';
|
|
3
3
|
declare const WizardContext: import("react").Context<{
|
|
4
4
|
activeStepIndex: number;
|
|
5
|
-
addStep: (step:
|
|
5
|
+
addStep: (step: Omit<StepProps, 'children'>) => void;
|
|
6
6
|
payload: Record<string, any>;
|
|
7
7
|
setPayload: (payload: Record<string, any>) => void;
|
|
8
8
|
totalSteps: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardContext.d.ts","sourceRoot":"","sources":["../../src/Wizard/WizardContext.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"WizardContext.d.ts","sourceRoot":"","sources":["../../src/Wizard/WizardContext.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,QAAA,MAAM,aAAa;qBAEI,MAAM;oBACP,KAAK,SAAS,EAAE,UAAU,CAAC,KAAK,IAAI;aAC3C,OAAO,MAAM,EAAE,GAAG,CAAC;0BACN,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI;gBACtC,MAAM;EAGZ,CAAA;AACZ,eAAe,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/tapestry-react",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"description": "A collection of flexible React components to help you build resilient, accessible user interfaces quickly and effectively.",
|
|
5
5
|
"author": "Front End Systems Engineering <frontend@pco.bz>",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"typescript": "^5.3.3"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@planningcenter/icons": "^15.
|
|
85
|
+
"@planningcenter/icons": "^15.15.0",
|
|
86
86
|
"@planningcenter/react-beautiful-dnd": "^13.4.0",
|
|
87
87
|
"@planningcenter/tapestry-design-tokens": "^1.1.1",
|
|
88
88
|
"@popmotion/popcorn": "^0.4.4",
|