welcome-ui 1.0.0-beta.6 → 1.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AXB53BZF-KWM2jKTz.js → AXB53BZF-CAQ85RSy.js} +1 -1
- package/dist/{AXB53BZF-BxNazDnS.mjs → AXB53BZF-DCqNWRx3.mjs} +2 -2
- package/dist/Accordion.js +1 -1
- package/dist/Accordion.mjs +2 -2
- package/dist/{BYC7LY2E-BkAEL2VD.js → BYC7LY2E-BE1a2svb.js} +1 -1
- package/dist/{BYC7LY2E-BAjGN7k_.mjs → BYC7LY2E-BNqcw1O8.mjs} +2 -2
- package/dist/Breadcrumb.js +1 -1
- package/dist/Breadcrumb.mjs +4 -3
- package/dist/CustomInput-CHhz-wtr.js +1064 -0
- package/dist/CustomInput-DsJYqH0X.mjs +1272 -0
- package/dist/DatePicker.js +1 -1
- package/dist/DatePicker.mjs +1 -1
- package/dist/DateTimePicker.js +1 -1
- package/dist/DateTimePicker.mjs +1 -1
- package/dist/DateTimePickerCommon.js +1 -1
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Drawer.mjs +3 -3
- package/dist/DropdownMenu.js +1 -1
- package/dist/DropdownMenu.mjs +5 -5
- package/dist/FileDrop.js +1 -1
- package/dist/FileDrop.mjs +4 -3
- package/dist/{JC64G2H7-CQsqXPS_.mjs → JC64G2H7-HxATiU-t.mjs} +2 -2
- package/dist/{JC64G2H7-YkBMNrtl.js → JC64G2H7-VmOGyhc1.js} +1 -1
- package/dist/{MTZPJQMC-DZ3zg4be.mjs → MTZPJQMC-C9lHSyrL.mjs} +1 -1
- package/dist/{MTZPJQMC-5Xg78Uyy.js → MTZPJQMC-D0pYOjc_.js} +1 -1
- package/dist/Modal.js +1 -1
- package/dist/Modal.mjs +3 -3
- package/dist/{P4IRICAX-DF0_vmod.mjs → P4IRICAX-C0oIr4wI.mjs} +1 -1
- package/dist/{P4IRICAX-nhgZ26A1.js → P4IRICAX-t3xfwWga.js} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/Popover.mjs +1 -1
- package/dist/{QYJ6MIDR-CRK3satR.js → QYJ6MIDR-T-fJ_t8N.js} +1 -1
- package/dist/{QYJ6MIDR-Cy39pEs2.mjs → QYJ6MIDR-YegHsExc.mjs} +2 -2
- package/dist/{SYRFVSLH-BpAfr7UE.js → SYRFVSLH-Babm193P.js} +1 -1
- package/dist/{SYRFVSLH-DyepaZf7.mjs → SYRFVSLH-DXZgEwus.mjs} +1 -1
- package/dist/Search.js +7 -7
- package/dist/Search.mjs +36 -36
- package/dist/Select.js +1 -1
- package/dist/Select.mjs +5 -4
- package/dist/Tabs.js +8 -8
- package/dist/Tabs.mjs +168 -173
- package/dist/TimePicker.js +1 -1
- package/dist/TimePicker.mjs +1 -1
- package/dist/Toast.js +1 -1
- package/dist/Toast.mjs +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/Tooltip.mjs +2 -2
- package/dist/{VEVQD5MH-mN1wMozH.js → VEVQD5MH-Cal9SWXl.js} +1 -1
- package/dist/{VEVQD5MH-De4r89YE.mjs → VEVQD5MH-DOp_qaPw.mjs} +1 -1
- package/dist/{VGCJ63VH-fv0YLRh8.mjs → VGCJ63VH-BqPfqkK_.mjs} +1 -1
- package/dist/{VGCJ63VH-BNLwLOaC.js → VGCJ63VH-Cuf7P3qW.js} +1 -1
- package/dist/WelcomeLoader.js +1 -11
- package/dist/WelcomeLoader.mjs +25 -5086
- package/dist/{index-BPNky7_R.js → index-B8roHPE-.js} +1 -1
- package/dist/index-BFQbRuqA.mjs +165 -0
- package/dist/{index-BYdkhqH4.mjs → index-BZmKn5VO.mjs} +11 -14
- package/dist/index-BjGfAqCk.mjs +209 -0
- package/dist/{index-BHi0wohR.js → index-CQyLvMJP.js} +23 -23
- package/dist/{index-DG4lwZUW.mjs → index-Cjf3wLkx.mjs} +3 -3
- package/dist/index-CmBs24Im.mjs +413 -0
- package/dist/index-DG7ovxHW.js +117 -0
- package/dist/index-DSZG0Sqy.js +54 -0
- package/dist/index-DhF591OM.js +42 -0
- package/dist/index.js +7 -7
- package/dist/index.mjs +2154 -2216
- package/dist/{usePopover-Bbhh3p_j.mjs → usePopover-AbS2gpZq.mjs} +2 -2
- package/dist/{usePopover-PCWsuJNF.js → usePopover-CzPtX0h_.js} +1 -1
- package/package.json +1 -1
- package/dist/CustomInput-DUq7mNvC.mjs +0 -7826
- package/dist/CustomInput-NV_j0IWq.js +0 -1070
- package/dist/downshift.esm-DAo-GJwH.js +0 -1
- package/dist/downshift.esm-K4YLLQXl.mjs +0 -1085
- package/dist/index-BLom3M2B.js +0 -2
- package/dist/index-BZq8PyIk.js +0 -46
- package/dist/index-CGZVoNIN.mjs +0 -1077
- package/dist/index-DPMCsVtB.js +0 -54
- package/dist/index-R0G4mc9j.mjs +0 -2347
- package/dist/index-SbQUT2mU.mjs +0 -639
- package/dist/index-_oF_K5ZN.js +0 -122
- package/dist/index-mPb8TbpM.mjs +0 -447
package/dist/index-DPMCsVtB.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";const s=require("react");require("./Icon.js");const ve=require("./index-BNwz4P5j.js"),ee=require("./System.js"),he=require("./throttle-BB1Y3bfD.js"),pe=require("./Box.js"),u=require("@xstyled/styled-components");var R=[],be=function(){return R.some(function(e){return e.activeTargets.length>0})},ge=function(){return R.some(function(e){return e.skippedTargets.length>0})},V="ResizeObserver loop completed with undelivered notifications.",me=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:V}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=V),window.dispatchEvent(e)},C;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(C||(C={}));var E=function(e){return Object.freeze(e)},xe=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,E(this)}return e}(),te=function(){function e(t,r,n,i){return this.x=t,this.y=r,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,E(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,i=t.top,a=t.right,o=t.bottom,f=t.left,v=t.width,l=t.height;return{x:r,y:n,top:i,right:a,bottom:o,left:f,width:v,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),F=function(e){return e instanceof SVGElement&&"getBBox"in e},re=function(e){if(F(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},X=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},Re=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},S=typeof window<"u"?window:{},A=new WeakMap,J=/auto|scroll/,Ee=/^tb|vertical/,we=/msie|trident/i.test(S.navigator&&S.navigator.userAgent),p=function(e){return parseFloat(e||"0")},B=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new xe((r?t:e)||0,(r?e:t)||0)},U=E({devicePixelContentBoxSize:B(),borderBoxSize:B(),contentBoxSize:B(),contentRect:new te(0,0,0,0)}),ne=function(e,t){if(t===void 0&&(t=!1),A.has(e)&&!t)return A.get(e);if(re(e))return A.set(e,U),U;var r=getComputedStyle(e),n=F(e)&&e.ownerSVGElement&&e.getBBox(),i=!we&&r.boxSizing==="border-box",a=Ee.test(r.writingMode||""),o=!n&&J.test(r.overflowY||""),f=!n&&J.test(r.overflowX||""),v=n?0:p(r.paddingTop),l=n?0:p(r.paddingRight),z=n?0:p(r.paddingBottom),h=n?0:p(r.paddingLeft),M=n?0:p(r.borderTopWidth),$=n?0:p(r.borderRightWidth),k=n?0:p(r.borderBottomWidth),N=n?0:p(r.borderLeftWidth),y=h+l,x=v+z,O=N+$,T=M+k,c=f?e.offsetHeight-T-e.clientHeight:0,d=o?e.offsetWidth-O-e.clientWidth:0,b=i?y+O:0,g=i?x+T:0,m=n?n.width:p(r.width)-b-d,w=n?n.height:p(r.height)-g-c,de=m+y+d+O,fe=w+x+c+T,H=E({devicePixelContentBoxSize:B(Math.round(m*devicePixelRatio),Math.round(w*devicePixelRatio),a),borderBoxSize:B(de,fe,a),contentBoxSize:B(m,w,a),contentRect:new te(h,v,m,w)});return A.set(e,H),H},ie=function(e,t,r){var n=ne(e,r),i=n.borderBoxSize,a=n.contentBoxSize,o=n.devicePixelContentBoxSize;switch(t){case C.DEVICE_PIXEL_CONTENT_BOX:return o;case C.BORDER_BOX:return i;default:return a}},Be=function(){function e(t){var r=ne(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=E([r.borderBoxSize]),this.contentBoxSize=E([r.contentBoxSize]),this.devicePixelContentBoxSize=E([r.devicePixelContentBoxSize])}return e}(),oe=function(e){if(re(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},ze=function(){var e=1/0,t=[];R.forEach(function(o){if(o.activeTargets.length!==0){var f=[];o.activeTargets.forEach(function(l){var z=new Be(l.target),h=oe(l.target);f.push(z),l.lastReportedSize=ie(l.target,l.observedBox),h<e&&(e=h)}),t.push(function(){o.callback.call(o.observer,f,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var i=n[r];i()}return e},Y=function(e){R.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(i){i.isActive()&&(oe(i.target)>e?r.activeTargets.push(i):r.skippedTargets.push(i))})})},ye=function(){var e=0;for(Y(e);be();)e=ze(),Y(e);return ge()&&me(),e>0},W,se=[],Oe=function(){return se.splice(0).forEach(function(e){return e()})},Te=function(e){if(!W){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Oe()}).observe(r,n),W=function(){r.textContent="".concat(t?t--:t++)}}se.push(e),W()},Se=function(e){Te(function(){requestAnimationFrame(e)})},L=0,Ce=function(){return!!L},$e=250,ke={attributes:!0,characterData:!0,childList:!0,subtree:!0},K=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Q=function(e){return e===void 0&&(e=0),Date.now()+e},P=!1,Ae=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=$e),!P){P=!0;var n=Q(t);Se(function(){var i=!1;try{i=ye()}finally{if(P=!1,t=n-Q(),!Ce())return;i?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,ke)};document.body?r():S.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),K.forEach(function(r){return S.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),K.forEach(function(r){return S.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),q=new Ae,Z=function(e){!L&&e>0&&q.start(),L+=e,!L&&q.stop()},De=function(e){return!F(e)&&!Re(e)&&getComputedStyle(e).display==="inline"},Ie=function(){function e(t,r){this.target=t,this.observedBox=r||C.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ie(this.target,this.observedBox,!0);return De(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Le=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),D=new WeakMap,j=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},I=function(){function e(){}return e.connect=function(t,r){var n=new Le(t,r);D.set(t,n)},e.observe=function(t,r,n){var i=D.get(t),a=i.observationTargets.length===0;j(i.observationTargets,r)<0&&(a&&R.push(i),i.observationTargets.push(new Ie(r,n&&n.box)),Z(1),q.schedule())},e.unobserve=function(t,r){var n=D.get(t),i=j(n.observationTargets,r),a=n.observationTargets.length===1;i>=0&&(a&&R.splice(R.indexOf(n),1),n.observationTargets.splice(i,1),Z(-1))},e.disconnect=function(t){var r=this,n=D.get(t);n.observationTargets.slice().forEach(function(i){return r.unobserve(t,i.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Me=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");I.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!X(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");I.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!X(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");I.unobserve(this,t)},e.prototype.disconnect=function(){I.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Ne=(e,t,r)=>Math.min(Math.max(e,t),r),We=u.aBox`
|
|
2
|
-
${u.th("breadcrumbs.item.default")};
|
|
3
|
-
align-items: center;
|
|
4
|
-
transition: medium;
|
|
5
|
-
direction: initial;
|
|
6
|
-
|
|
7
|
-
&:hover {
|
|
8
|
-
${u.th("breadcrumbs.item.hover")};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&[aria-current='page'] {
|
|
12
|
-
${u.th("breadcrumbs.item.active")};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&[aria-disabled='true'] {
|
|
16
|
-
pointer-events: none;
|
|
17
|
-
cursor: default;
|
|
18
|
-
}
|
|
19
|
-
`,Pe=u.spanBox`
|
|
20
|
-
${u.th("breadcrumbs.separator")};
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
`,_e=ee.forwardRef(({children:e,dataTestId:t,isActive:r,separator:n,...i},a)=>{const o=i.href||i.to;return s.createElement(pe.Box,{"aria-label":"breadcrumb",as:"li","data-testid":t,display:"inline-flex",flex:"0 0 auto",lineHeight:"normal"},n&&s.createElement(Pe,{role:"presentation"},n),s.createElement(We,{"aria-current":r?"page":void 0,"aria-disabled":!o,...i,ref:a},e))}),_=(e,t,r)=>parseInt(e.substring(t,r),16),qe=e=>/(^[0-9a-fA-F]{6}$)|(^[0-9a-fA-F]{3}$)/.test(e),Fe=e=>{if(!e||(e=e.replace("#",""),!qe(e)))return;e.length===3&&(e=`${e[0]}${e[0]}${e[1]}${e[1]}${e[2]}${e[2]}`);const t=i=>_(i,0,2),r=i=>_(i,2,4),n=i=>_(i,4,6);return`${t(e)}, ${r(e)}, ${n(e)}`},ae=(e,t=1)=>e?e.startsWith("#")?`rgba(${Fe(e)}, ${t})`:e:void 0,ce=u.spanBox(({gradientBackground:e,theme:t})=>u.css`
|
|
24
|
-
left: 0;
|
|
25
|
-
background-image: ${le(t,e)};
|
|
26
|
-
transform-origin: left;
|
|
27
|
-
`),ue=u.spanBox(({gradientBackground:e,theme:t})=>u.css`
|
|
28
|
-
right: 0;
|
|
29
|
-
background-image: ${le(t,e,"left")};
|
|
30
|
-
transform-origin: right;
|
|
31
|
-
`),Ge=u.divBox`
|
|
32
|
-
${u.th("breadcrumbs.list")};
|
|
33
|
-
height: 100%;
|
|
34
|
-
position: relative;
|
|
35
|
-
overflow-x: hidden;
|
|
36
|
-
|
|
37
|
-
${ce},
|
|
38
|
-
${ue} {
|
|
39
|
-
position: absolute;
|
|
40
|
-
bottom: 0;
|
|
41
|
-
top: 0;
|
|
42
|
-
width: 30;
|
|
43
|
-
}
|
|
44
|
-
`,He=u.olBox`
|
|
45
|
-
display: inline-flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
max-width: 100%;
|
|
48
|
-
height: 100%;
|
|
49
|
-
overflow-x: auto;
|
|
50
|
-
margin: 0;
|
|
51
|
-
padding: 0;
|
|
52
|
-
list-style: none;
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
`,le=(e,t,r="right")=>{const n=u.th(`colors.${t}`)({theme:e}),i=ae(n,0);return`linear-gradient(to ${r}, ${n}, ${i} 100%)`},G=ee.forwardRef(({children:e,gradientBackground:t="neutral-10",lastChildNotClickable:r=!0,separator:n=s.createElement(ve.RightIcon,{size:"xs"}),...i},a)=>{const o=s.useRef(null),f=s.useRef(),v=s.useRef(),[l,z]=s.useState(!1),[h,M]=s.useState(0),$=s.Children.toArray(e).filter(Boolean),k=$.length,N=$.map((c,d)=>{const b=k===1||k===d+1,g=b&&r;return s.cloneElement(c,{key:`breadcrumb-${d}`,separator:b?void 0:n,isActive:g,...c.props})});function y(c,d){c&&(c.style.transform=`scale3d(${d}, 1, 1)`)}const x=s.useCallback(c=>{const d=1-c;y(f.current,d),y(v.current,c)},[]),O=s.useCallback(()=>{const{current:{offsetWidth:c,scrollLeft:d,scrollWidth:b}}=o,g=b-c,w=Ne(Math.abs(d-h),0,g)/g;x(w)},[h,x]),T=s.useMemo(()=>he.throttle(c=>{const[{target:{offsetWidth:d,scrollLeft:b,scrollWidth:g}}]=c,m=g-d;h||M(b===0?0:m),z(m>0)},300,!1),[h]);return s.useEffect(()=>{const c=new Me(T);return c.observe(o.current),()=>c.disconnect()},[]),s.useEffect(()=>{f.current&&v.current&&x(0)},[l,x]),s.createElement(Ge,{as:"nav",ref:a,...i},l&&s.createElement(ce,{gradientBackground:t,ref:f}),s.createElement(He,{dir:"rtl",onScroll:O,ref:o},N.reverse()),l&&s.createElement(ue,{gradientBackground:t,ref:v}))});G.displayName="Breadcrumb";const Ve=Object.assign(G,{Item:_e});exports.Breadcrumb=Ve;exports.BreadcrumbComponent=G;exports.hexToRGBA=ae;
|