solely 0.4.2 → 0.4.4
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/components/commands/drawer/style.css.cjs +1 -1
- package/dist/components/commands/drawer/style.css.js +1 -1
- package/dist/components/commands/index.d.ts +1 -1
- package/dist/components/commands/message/index.cjs +1 -1
- package/dist/components/commands/message/index.js +1 -1
- package/dist/components/commands/message/style.css.cjs +1 -1
- package/dist/components/commands/message/style.css.js +1 -1
- package/dist/components/commands/message/types.d.ts +11 -0
- package/dist/components/elements/backtop/index.cjs +1 -1
- package/dist/components/elements/backtop/index.d.ts +12 -23
- package/dist/components/elements/backtop/index.js +1 -1
- package/dist/components/elements/backtop/style.css.cjs +1 -1
- package/dist/components/elements/backtop/style.css.js +1 -1
- package/dist/components/elements/fab/style.css.cjs +1 -1
- package/dist/components/elements/fab/style.css.js +1 -1
- package/dist/components/elements/slider/style.css.cjs +1 -1
- package/dist/components/elements/slider/style.css.js +1 -1
- package/dist/components/elements/steps/style.css.cjs +1 -1
- package/dist/components/elements/steps/style.css.js +1 -1
- package/dist/components/elements/switch/style.css.cjs +1 -1
- package/dist/components/elements/switch/style.css.js +1 -1
- package/dist/components/elements/timeline/style.css.cjs +1 -1
- package/dist/components/elements/timeline/style.css.js +1 -1
- package/dist/components/elements/tree/types.d.ts +1 -1
- package/dist/components/theme/variables.css +11 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}.drawer-mask{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--solely-mask-bg);z-index:1;animation:drawer-mask-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer-mask.is-closing{animation:drawer-mask-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer-wrap{position:fixed;top:0;left:0;right:0;bottom:0;z-index:var(--solely-z-index-modal);pointer-events:none}.drawer{position:absolute;background-color:var(--solely-component-bg);box-shadow:var(--solely-shadow-lg);pointer-events:auto;display:flex;flex-direction:column;z-index:2}.drawer--left{left:0;top:0;bottom:0;animation:drawer-left-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--right{right:0;top:0;bottom:0;animation:drawer-right-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--top{top:0;left:0;right:0;animation:drawer-top-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--bottom{bottom:0;left:0;right:0;animation:drawer-bottom-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer.is-closing.drawer--left{animation:drawer-left-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--right{animation:drawer-right-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--top{animation:drawer-top-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--bottom{animation:drawer-bottom-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer__header{display:flex;align-items:center;justify-content:space-between;padding:var(--solely-spacing-lg) var(--solely-spacing-xl);border-bottom:1px solid var(--solely-border-color-split)}.drawer__title{margin:0;font-size:var(--solely-font-size-lg);font-weight:500;color:var(--solely-text-primary);line-height:var(--solely-line-height-lg)}.drawer__close{width:var(--solely-height-sm);height:var(--solely-height-sm);display:flex;align-items:center;justify-content:center;color:var(--solely-text-tertiary);cursor:pointer;transition:color var(--solely-transition-duration);font-size:var(--solely-font-size-lg);line-height:1;border:none;background:none;border-radius:var(--solely-border-radius-sm)}.drawer__close:hover{color:var(--solely-text-secondary);background-color:var(--solely-gray-3)}.drawer__close:active{color:var(--solely-text-primary)}.drawer__body{flex:1;padding:var(--solely-spacing-xl);overflow:auto;font-size:var(--solely-font-size-md);line-height:var(--solely-line-height-md);color:var(--solely-text-secondary)}@keyframes drawer-mask-in{0%{opacity:0}to{opacity:1}}@keyframes drawer-mask-out{0%{opacity:1}to{opacity:0}}@keyframes drawer-left-in{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes drawer-left-out{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes drawer-right-in{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes drawer-right-out{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes drawer-top-in{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes drawer-top-out{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes drawer-bottom-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes drawer-bottom-out{0%{transform:translateY(0)}to{transform:translateY(100%)}}";
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}.drawer-mask{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--solely-mask-bg);z-index:1;pointer-events:auto;animation:drawer-mask-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer-mask.is-closing{animation:drawer-mask-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer-wrap{position:fixed;top:0;left:0;right:0;bottom:0;z-index:var(--solely-z-index-modal);pointer-events:none}.drawer{position:absolute;background-color:var(--solely-component-bg);box-shadow:var(--solely-shadow-lg);pointer-events:auto;display:flex;flex-direction:column;z-index:2}.drawer--left{left:0;top:0;bottom:0;animation:drawer-left-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--right{right:0;top:0;bottom:0;animation:drawer-right-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--top{top:0;left:0;right:0;animation:drawer-top-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--bottom{bottom:0;left:0;right:0;animation:drawer-bottom-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer.is-closing.drawer--left{animation:drawer-left-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--right{animation:drawer-right-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--top{animation:drawer-top-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--bottom{animation:drawer-bottom-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer__header{display:flex;align-items:center;justify-content:space-between;padding:var(--solely-spacing-lg) var(--solely-spacing-xl);border-bottom:1px solid var(--solely-border-color-split)}.drawer__title{margin:0;font-size:var(--solely-font-size-lg);font-weight:500;color:var(--solely-text-primary);line-height:var(--solely-line-height-lg)}.drawer__close{width:var(--solely-height-sm);height:var(--solely-height-sm);display:flex;align-items:center;justify-content:center;color:var(--solely-text-tertiary);cursor:pointer;transition:color var(--solely-transition-duration);font-size:var(--solely-font-size-lg);line-height:1;border:none;background:none;border-radius:var(--solely-border-radius-sm)}.drawer__close:hover{color:var(--solely-text-secondary);background-color:var(--solely-gray-3)}.drawer__close:active{color:var(--solely-text-primary)}.drawer__body{flex:1;padding:var(--solely-spacing-xl);overflow:auto;font-size:var(--solely-font-size-md);line-height:var(--solely-line-height-md);color:var(--solely-text-secondary)}@keyframes drawer-mask-in{0%{opacity:0}to{opacity:1}}@keyframes drawer-mask-out{0%{opacity:1}to{opacity:0}}@keyframes drawer-left-in{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes drawer-left-out{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes drawer-right-in{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes drawer-right-out{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes drawer-top-in{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes drawer-top-out{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes drawer-bottom-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes drawer-bottom-out{0%{transform:translateY(0)}to{transform:translateY(100%)}}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r="*,*:before,*:after{box-sizing:border-box}.drawer-mask{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--solely-mask-bg);z-index:1;animation:drawer-mask-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer-mask.is-closing{animation:drawer-mask-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer-wrap{position:fixed;top:0;left:0;right:0;bottom:0;z-index:var(--solely-z-index-modal);pointer-events:none}.drawer{position:absolute;background-color:var(--solely-component-bg);box-shadow:var(--solely-shadow-lg);pointer-events:auto;display:flex;flex-direction:column;z-index:2}.drawer--left{left:0;top:0;bottom:0;animation:drawer-left-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--right{right:0;top:0;bottom:0;animation:drawer-right-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--top{top:0;left:0;right:0;animation:drawer-top-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--bottom{bottom:0;left:0;right:0;animation:drawer-bottom-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer.is-closing.drawer--left{animation:drawer-left-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--right{animation:drawer-right-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--top{animation:drawer-top-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--bottom{animation:drawer-bottom-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer__header{display:flex;align-items:center;justify-content:space-between;padding:var(--solely-spacing-lg) var(--solely-spacing-xl);border-bottom:1px solid var(--solely-border-color-split)}.drawer__title{margin:0;font-size:var(--solely-font-size-lg);font-weight:500;color:var(--solely-text-primary);line-height:var(--solely-line-height-lg)}.drawer__close{width:var(--solely-height-sm);height:var(--solely-height-sm);display:flex;align-items:center;justify-content:center;color:var(--solely-text-tertiary);cursor:pointer;transition:color var(--solely-transition-duration);font-size:var(--solely-font-size-lg);line-height:1;border:none;background:none;border-radius:var(--solely-border-radius-sm)}.drawer__close:hover{color:var(--solely-text-secondary);background-color:var(--solely-gray-3)}.drawer__close:active{color:var(--solely-text-primary)}.drawer__body{flex:1;padding:var(--solely-spacing-xl);overflow:auto;font-size:var(--solely-font-size-md);line-height:var(--solely-line-height-md);color:var(--solely-text-secondary)}@keyframes drawer-mask-in{0%{opacity:0}to{opacity:1}}@keyframes drawer-mask-out{0%{opacity:1}to{opacity:0}}@keyframes drawer-left-in{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes drawer-left-out{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes drawer-right-in{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes drawer-right-out{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes drawer-top-in{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes drawer-top-out{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes drawer-bottom-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes drawer-bottom-out{0%{transform:translateY(0)}to{transform:translateY(100%)}}";export{r as default};
|
|
1
|
+
const r="*,*:before,*:after{box-sizing:border-box}.drawer-mask{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--solely-mask-bg);z-index:1;pointer-events:auto;animation:drawer-mask-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer-mask.is-closing{animation:drawer-mask-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer-wrap{position:fixed;top:0;left:0;right:0;bottom:0;z-index:var(--solely-z-index-modal);pointer-events:none}.drawer{position:absolute;background-color:var(--solely-component-bg);box-shadow:var(--solely-shadow-lg);pointer-events:auto;display:flex;flex-direction:column;z-index:2}.drawer--left{left:0;top:0;bottom:0;animation:drawer-left-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--right{right:0;top:0;bottom:0;animation:drawer-right-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--top{top:0;left:0;right:0;animation:drawer-top-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer--bottom{bottom:0;left:0;right:0;animation:drawer-bottom-in var(--solely-transition-duration) var(--solely-transition-timing)}.drawer.is-closing.drawer--left{animation:drawer-left-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--right{animation:drawer-right-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--top{animation:drawer-top-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer.is-closing.drawer--bottom{animation:drawer-bottom-out var(--solely-transition-duration) var(--solely-transition-timing) forwards}.drawer__header{display:flex;align-items:center;justify-content:space-between;padding:var(--solely-spacing-lg) var(--solely-spacing-xl);border-bottom:1px solid var(--solely-border-color-split)}.drawer__title{margin:0;font-size:var(--solely-font-size-lg);font-weight:500;color:var(--solely-text-primary);line-height:var(--solely-line-height-lg)}.drawer__close{width:var(--solely-height-sm);height:var(--solely-height-sm);display:flex;align-items:center;justify-content:center;color:var(--solely-text-tertiary);cursor:pointer;transition:color var(--solely-transition-duration);font-size:var(--solely-font-size-lg);line-height:1;border:none;background:none;border-radius:var(--solely-border-radius-sm)}.drawer__close:hover{color:var(--solely-text-secondary);background-color:var(--solely-gray-3)}.drawer__close:active{color:var(--solely-text-primary)}.drawer__body{flex:1;padding:var(--solely-spacing-xl);overflow:auto;font-size:var(--solely-font-size-md);line-height:var(--solely-line-height-md);color:var(--solely-text-secondary)}@keyframes drawer-mask-in{0%{opacity:0}to{opacity:1}}@keyframes drawer-mask-out{0%{opacity:1}to{opacity:0}}@keyframes drawer-left-in{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes drawer-left-out{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes drawer-right-in{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes drawer-right-out{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes drawer-top-in{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes drawer-top-out{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes drawer-bottom-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes drawer-bottom-out{0%{transform:translateY(0)}to{transform:translateY(100%)}}";export{r as default};
|
|
@@ -6,7 +6,7 @@ export { Modal } from './modal';
|
|
|
6
6
|
export { Tooltip } from './tooltip';
|
|
7
7
|
export { Drawer } from './drawer';
|
|
8
8
|
export { Popconfirm } from './popconfirm';
|
|
9
|
-
export type { MessageOptions, MessageInstance, MessageConfig, MessageType } from './message/types';
|
|
9
|
+
export type { MessageOptions, MessageInstance, MessageConfig, MessageType, MessagePlacement } from './message/types';
|
|
10
10
|
export type { ModalOptions, ModalInstance, ModalConfig, ModalType, ModalButton } from './modal/types';
|
|
11
11
|
export type { TooltipOptions, TooltipInstance, TooltipConfig, TooltipPlacement, TooltipTrigger } from './tooltip/types';
|
|
12
12
|
export type { DrawerOptions, DrawerInstance, DrawerConfig, DrawerPlacement } from './drawer/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../utils.cjs"),t=require("./style.css.cjs"),n={duration:3e3,maxCount:5,gap:8,top:24};let o,i=null
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../utils.cjs"),t=require("./style.css.cjs"),n={duration:3e3,maxCount:5,gap:8,top:24,bottom:24,left:24,right:24,placement:"top"};let o,i=null;const s=new Set,a=[],r={info:"ℹ",success:"✓",warning:"⚠",error:"✕",loading:e.createElement("span",{className:"message__loading-spinner"})},c=new Map;function l(t,n){const o=e.createElement("span",{className:`message__icon message__icon--${n}`});return"string"==typeof t?o.textContent=t:o.appendChild(t.cloneNode(!0)),o}async function p(t){var n;if(!s.has(t)){s.add(t);try{const s=a.findIndex(e=>e.id===t);if(-1===s)return;const l=a[s];l.timer&&(clearTimeout(l.timer),l.timer=void 0),await e.addClosingAnimation(l.element,e.ANIMATION_DURATION.NORMAL),l.element.remove();const p=a.findIndex(e=>e.id===t);-1!==p&&a.splice(p,1);try{null==(n=l.onClose)||n.call(l)}catch(r){console.error("[Solely Message] onClose callback error:",r)}o&&clearTimeout(o),o=window.setTimeout(()=>{0===a.length&&(c.forEach((e,t)=>{0===e.childElementCount&&(e.remove(),c.delete(t))}),0===c.size&&i&&(i.disconnect(),i=null)),o=void 0},300)}finally{s.delete(t)}}}function d(o){const s=e.generateId(),d=o.placement||n.placement,m=function(o=n.placement){const s=o;if(c.has(s))return c.get(s);const a=e.createElement("div",{className:"message-container"}),r={position:"fixed",display:"flex",flexDirection:"column",gap:`${n.gap}px`,pointerEvents:"none",zIndex:"var(--solely-z-index-toast)"};switch(o){case"top":r.top=`${n.top}px`,r.left="50%",r.transform="translateX(-50%)";break;case"topLeft":r.top=`${n.top}px`,r.left=`${n.left}px`,r.alignItems="flex-start";break;case"topRight":r.top=`${n.top}px`,r.right=`${n.right}px`,r.alignItems="flex-end";break;case"bottom":r.bottom=`${n.bottom}px`,r.left="50%",r.transform="translateX(-50%)";break;case"bottomLeft":r.bottom=`${n.bottom}px`,r.left=`${n.left}px`,r.alignItems="flex-start";break;case"bottomRight":r.bottom=`${n.bottom}px`,r.right=`${n.right}px`,r.alignItems="flex-end";break;case"left":r.top="50%",r.left=`${n.left}px`,r.transform="translateY(-50%)",r.alignItems="flex-start";break;case"right":r.top="50%",r.right=`${n.right}px`,r.transform="translateY(-50%)",r.alignItems="flex-end"}Object.assign(a.style,r);const l=document.documentElement.getAttribute("data-theme");return l&&a.setAttribute("data-theme",l),document.body.appendChild(a),e.injectStyle("solely-message-styles",t.default),function(e){i&&i.disconnect(),i=new MutationObserver(()=>{const t=document.documentElement.getAttribute("data-theme");t?e.setAttribute("data-theme",t):e.removeAttribute("data-theme")}),i.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}(a),c.set(s,a),a}(d),u=a.filter(e=>e.placement===d);if(u.length>=n.maxCount){const e=u[0];e&&p(e.id)}const f=function(t,n){const o=t.type||"info",i=!1!==t.showIcon,s=e.createElement("div",{className:`message message--${o}${t.className?` ${t.className}`:""}`,styles:t.style});if(s.setAttribute("role","error"===o||"warning"===o?"alert":"status"),s.setAttribute("aria-live","error"===o||"warning"===o?"assertive":"polite"),i){const e=t.icon?l(t.icon,o):l(r[o],o);s.appendChild(e)}const a=e.createElement("span",{className:"message__content"}),c=e.createElement("span",{className:"message__text"});if("string"==typeof t.content?c.textContent=t.content:t.content instanceof HTMLElement&&c.appendChild(t.content.cloneNode(!0)),a.appendChild(c),t.description){const n=e.createElement("span",{className:"message__description"});"string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0)),a.appendChild(n)}if(s.appendChild(a),t.closable){const t=e.createElement("button",{className:"message__close",textContent:"×",attrs:{type:"button","aria-label":"关闭"}});t.onclick=()=>p(n),s.appendChild(t)}return s}(o,s);m.appendChild(f);const g={id:s,element:f,onClose:o.onClose,placement:d},b=o.duration??n.duration;return b>0&&(g.timer=window.setTimeout(()=>{p(s)},b)),a.push(g),{close:()=>p(s),update:t=>{if("string"==typeof t||t instanceof HTMLElement){const e=f.querySelector(".message__text");return void(e&&(e.innerHTML="","string"==typeof t?e.textContent=t:t instanceof HTMLElement&&e.appendChild(t.cloneNode(!0))))}if(void 0!==t.content){const e=f.querySelector(".message__text");e&&(e.innerHTML="","string"==typeof t.content?e.textContent=t.content:t.content instanceof HTMLElement&&e.appendChild(t.content.cloneNode(!0)))}if(void 0!==t.description){let n=f.querySelector(".message__description");if(!n&&t.description){n=e.createElement("span",{className:"message__description"}),"string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0));const o=f.querySelector(".message__content");null==o||o.appendChild(n)}else n&&(t.description?(n.innerHTML="","string"==typeof t.description?n.textContent=t.description:t.description instanceof HTMLElement&&n.appendChild(t.description.cloneNode(!0))):n.remove())}}}}const m={open:d,info:function(e,t){return d({content:e,type:"info",..."number"==typeof t?{duration:t}:t})},success:function(e,t){return d({content:e,type:"success",..."number"==typeof t?{duration:t}:t})},warning:function(e,t){return d({content:e,type:"warning",..."number"==typeof t?{duration:t}:t})},error:function(e,t){return d({content:e,type:"error",..."number"==typeof t?{duration:t}:t})},loading:function(e,t){return d(void 0===t?{content:e,type:"loading",duration:0,closable:!0}:"number"==typeof t?{content:e,type:"loading",duration:t,closable:!0}:{content:e,type:"loading",duration:0,closable:!0,...t})},config:function(e){Object.assign(n,e),c.forEach((t,n)=>{void 0!==e.top&&["top","topLeft","topRight"].includes(n)&&(t.style.top=`${e.top}px`),void 0!==e.bottom&&["bottom","bottomLeft","bottomRight"].includes(n)&&(t.style.bottom=`${e.bottom}px`),void 0!==e.left&&["topLeft","bottomLeft","left"].includes(n)&&(t.style.left=`${e.left}px`),void 0!==e.right&&["topRight","bottomRight","right"].includes(n)&&(t.style.right=`${e.right}px`),void 0!==e.gap&&(t.style.gap=`${e.gap}px`)})},destroy:async function(){o&&(clearTimeout(o),o=void 0);const e=[...a];await Promise.all(e.map(e=>p(e.id)))}};exports.Message=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createElement as
|
|
1
|
+
import{createElement as t,addClosingAnimation as e,ANIMATION_DURATION as n,generateId as o,injectStyle as i}from"../utils.js";import s from"./style.css.js";const a={duration:3e3,maxCount:5,gap:8,top:24,bottom:24,left:24,right:24,placement:"top"};let r,c=null;const l=new Set,p=[],d={info:"ℹ",success:"✓",warning:"⚠",error:"✕",loading:t("span",{className:"message__loading-spinner"})},m=new Map;function f(e,n){const o=t("span",{className:`message__icon message__icon--${n}`});return"string"==typeof e?o.textContent=e:o.appendChild(e.cloneNode(!0)),o}async function u(t){var o;if(!l.has(t)){l.add(t);try{const s=p.findIndex(e=>e.id===t);if(-1===s)return;const a=p[s];a.timer&&(clearTimeout(a.timer),a.timer=void 0),await e(a.element,n.NORMAL),a.element.remove();const l=p.findIndex(e=>e.id===t);-1!==l&&p.splice(l,1);try{null==(o=a.onClose)||o.call(a)}catch(i){console.error("[Solely Message] onClose callback error:",i)}r&&clearTimeout(r),r=window.setTimeout(()=>{0===p.length&&(m.forEach((t,e)=>{0===t.childElementCount&&(t.remove(),m.delete(e))}),0===m.size&&c&&(c.disconnect(),c=null)),r=void 0},300)}finally{l.delete(t)}}}function g(e){const n=o(),r=e.placement||a.placement,l=function(e=a.placement){const n=e;if(m.has(n))return m.get(n);const o=t("div",{className:"message-container"}),r={position:"fixed",display:"flex",flexDirection:"column",gap:`${a.gap}px`,pointerEvents:"none",zIndex:"var(--solely-z-index-toast)"};switch(e){case"top":r.top=`${a.top}px`,r.left="50%",r.transform="translateX(-50%)";break;case"topLeft":r.top=`${a.top}px`,r.left=`${a.left}px`,r.alignItems="flex-start";break;case"topRight":r.top=`${a.top}px`,r.right=`${a.right}px`,r.alignItems="flex-end";break;case"bottom":r.bottom=`${a.bottom}px`,r.left="50%",r.transform="translateX(-50%)";break;case"bottomLeft":r.bottom=`${a.bottom}px`,r.left=`${a.left}px`,r.alignItems="flex-start";break;case"bottomRight":r.bottom=`${a.bottom}px`,r.right=`${a.right}px`,r.alignItems="flex-end";break;case"left":r.top="50%",r.left=`${a.left}px`,r.transform="translateY(-50%)",r.alignItems="flex-start";break;case"right":r.top="50%",r.right=`${a.right}px`,r.transform="translateY(-50%)",r.alignItems="flex-end"}Object.assign(o.style,r);const l=document.documentElement.getAttribute("data-theme");return l&&o.setAttribute("data-theme",l),document.body.appendChild(o),i("solely-message-styles",s),function(t){c&&c.disconnect(),c=new MutationObserver(()=>{const e=document.documentElement.getAttribute("data-theme");e?t.setAttribute("data-theme",e):t.removeAttribute("data-theme")}),c.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}(o),m.set(n,o),o}(r),g=p.filter(t=>t.placement===r);if(g.length>=a.maxCount){const t=g[0];t&&u(t.id)}const b=function(e,n){const o=e.type||"info",i=!1!==e.showIcon,s=t("div",{className:`message message--${o}${e.className?` ${e.className}`:""}`,styles:e.style});if(s.setAttribute("role","error"===o||"warning"===o?"alert":"status"),s.setAttribute("aria-live","error"===o||"warning"===o?"assertive":"polite"),i){const t=e.icon?f(e.icon,o):f(d[o],o);s.appendChild(t)}const a=t("span",{className:"message__content"}),r=t("span",{className:"message__text"});if("string"==typeof e.content?r.textContent=e.content:e.content instanceof HTMLElement&&r.appendChild(e.content.cloneNode(!0)),a.appendChild(r),e.description){const n=t("span",{className:"message__description"});"string"==typeof e.description?n.textContent=e.description:e.description instanceof HTMLElement&&n.appendChild(e.description.cloneNode(!0)),a.appendChild(n)}if(s.appendChild(a),e.closable){const e=t("button",{className:"message__close",textContent:"×",attrs:{type:"button","aria-label":"关闭"}});e.onclick=()=>u(n),s.appendChild(e)}return s}(e,n);l.appendChild(b);const h={id:n,element:b,onClose:e.onClose,placement:r},y=e.duration??a.duration;return y>0&&(h.timer=window.setTimeout(()=>{u(n)},y)),p.push(h),{close:()=>u(n),update:e=>{if("string"==typeof e||e instanceof HTMLElement){const t=b.querySelector(".message__text");return void(t&&(t.innerHTML="","string"==typeof e?t.textContent=e:e instanceof HTMLElement&&t.appendChild(e.cloneNode(!0))))}if(void 0!==e.content){const t=b.querySelector(".message__text");t&&(t.innerHTML="","string"==typeof e.content?t.textContent=e.content:e.content instanceof HTMLElement&&t.appendChild(e.content.cloneNode(!0)))}if(void 0!==e.description){let n=b.querySelector(".message__description");if(!n&&e.description){n=t("span",{className:"message__description"}),"string"==typeof e.description?n.textContent=e.description:e.description instanceof HTMLElement&&n.appendChild(e.description.cloneNode(!0));const o=b.querySelector(".message__content");null==o||o.appendChild(n)}else n&&(e.description?(n.innerHTML="","string"==typeof e.description?n.textContent=e.description:e.description instanceof HTMLElement&&n.appendChild(e.description.cloneNode(!0))):n.remove())}}}}const b={open:g,info:function(t,e){return g({content:t,type:"info",..."number"==typeof e?{duration:e}:e})},success:function(t,e){return g({content:t,type:"success",..."number"==typeof e?{duration:e}:e})},warning:function(t,e){return g({content:t,type:"warning",..."number"==typeof e?{duration:e}:e})},error:function(t,e){return g({content:t,type:"error",..."number"==typeof e?{duration:e}:e})},loading:function(t,e){return g(void 0===e?{content:t,type:"loading",duration:0,closable:!0}:"number"==typeof e?{content:t,type:"loading",duration:e,closable:!0}:{content:t,type:"loading",duration:0,closable:!0,...e})},config:function(t){Object.assign(a,t),m.forEach((e,n)=>{void 0!==t.top&&["top","topLeft","topRight"].includes(n)&&(e.style.top=`${t.top}px`),void 0!==t.bottom&&["bottom","bottomLeft","bottomRight"].includes(n)&&(e.style.bottom=`${t.bottom}px`),void 0!==t.left&&["topLeft","bottomLeft","left"].includes(n)&&(e.style.left=`${t.left}px`),void 0!==t.right&&["topRight","bottomRight","right"].includes(n)&&(e.style.right=`${t.right}px`),void 0!==t.gap&&(e.style.gap=`${t.gap}px`)})},destroy:async function(){r&&(clearTimeout(r),r=void 0);const t=[...p];await Promise.all(t.map(t=>u(t.id)))}};export{b as Message};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}.message
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}.message{display:inline-flex;align-items:center;gap:var(--solely-spacing-sm);padding:var(--solely-spacing-sm) var(--solely-spacing-md);font-family:var(--solely-font-family);font-size:var(--solely-font-size-md);line-height:var(--solely-line-height-md);color:var(--solely-text-primary);background-color:var(--solely-component-bg);border-radius:var(--solely-border-radius-md);box-shadow:var(--solely-shadow-md);pointer-events:auto;animation:message-slide-in var(--solely-transition-duration) var(--solely-transition-timing);transition:opacity var(--solely-transition-duration) var(--solely-transition-timing),transform var(--solely-transition-duration) var(--solely-transition-timing)}.message.is-closing{opacity:0;transform:translateY(-10px);pointer-events:none}.message--info{border-left:4px solid var(--solely-primary)}.message--success{border-left:4px solid var(--solely-success)}.message--warning{border-left:4px solid var(--solely-warning)}.message--error{border-left:4px solid var(--solely-error)}.message--loading{border-left:4px solid var(--solely-primary)}.message__icon{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);flex-shrink:0}.message__icon--info{color:var(--solely-primary)}.message__icon--success{color:var(--solely-success)}.message__icon--warning{color:var(--solely-warning)}.message__icon--error{color:var(--solely-error)}.message__icon--loading{color:var(--solely-primary)}.message__loading-spinner{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:message-spin .8s linear infinite}.message__content{flex:1;min-width:0}.message__text{display:block;font-weight:500}.message__description{display:block;font-size:var(--solely-font-size-sm);color:var(--solely-text-secondary);margin-top:var(--solely-spacing-xs);line-height:var(--solely-line-height-sm)}.message__close{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);margin-left:var(--solely-spacing-sm);padding:0;font-size:var(--solely-font-size-lg);line-height:1;color:var(--solely-text-tertiary);background:none;border:none;border-radius:var(--solely-border-radius-sm);cursor:pointer;transition:all var(--solely-transition-duration) var(--solely-transition-timing);flex-shrink:0}.message__close:hover{color:var(--solely-text-secondary);background-color:var(--solely-gray-3)}.message__close:active{color:var(--solely-text-primary)}@keyframes message-slide-in{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes message-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e="*,*:before,*:after{box-sizing:border-box}.message
|
|
1
|
+
const e="*,*:before,*:after{box-sizing:border-box}.message{display:inline-flex;align-items:center;gap:var(--solely-spacing-sm);padding:var(--solely-spacing-sm) var(--solely-spacing-md);font-family:var(--solely-font-family);font-size:var(--solely-font-size-md);line-height:var(--solely-line-height-md);color:var(--solely-text-primary);background-color:var(--solely-component-bg);border-radius:var(--solely-border-radius-md);box-shadow:var(--solely-shadow-md);pointer-events:auto;animation:message-slide-in var(--solely-transition-duration) var(--solely-transition-timing);transition:opacity var(--solely-transition-duration) var(--solely-transition-timing),transform var(--solely-transition-duration) var(--solely-transition-timing)}.message.is-closing{opacity:0;transform:translateY(-10px);pointer-events:none}.message--info{border-left:4px solid var(--solely-primary)}.message--success{border-left:4px solid var(--solely-success)}.message--warning{border-left:4px solid var(--solely-warning)}.message--error{border-left:4px solid var(--solely-error)}.message--loading{border-left:4px solid var(--solely-primary)}.message__icon{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);flex-shrink:0}.message__icon--info{color:var(--solely-primary)}.message__icon--success{color:var(--solely-success)}.message__icon--warning{color:var(--solely-warning)}.message__icon--error{color:var(--solely-error)}.message__icon--loading{color:var(--solely-primary)}.message__loading-spinner{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:message-spin .8s linear infinite}.message__content{flex:1;min-width:0}.message__text{display:block;font-weight:500}.message__description{display:block;font-size:var(--solely-font-size-sm);color:var(--solely-text-secondary);margin-top:var(--solely-spacing-xs);line-height:var(--solely-line-height-sm)}.message__close{display:inline-flex;align-items:center;justify-content:center;width:var(--solely-height-sm);height:var(--solely-height-sm);margin-left:var(--solely-spacing-sm);padding:0;font-size:var(--solely-font-size-lg);line-height:1;color:var(--solely-text-tertiary);background:none;border:none;border-radius:var(--solely-border-radius-sm);cursor:pointer;transition:all var(--solely-transition-duration) var(--solely-transition-timing);flex-shrink:0}.message__close:hover{color:var(--solely-text-secondary);background-color:var(--solely-gray-3)}.message__close:active{color:var(--solely-text-primary)}@keyframes message-slide-in{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes message-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}";export{e as default};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type MessageType = 'info' | 'success' | 'warning' | 'error' | 'loading';
|
|
2
|
+
export type MessagePlacement = 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'left' | 'right';
|
|
2
3
|
export interface MessageOptions {
|
|
3
4
|
/** 消息内容 */
|
|
4
5
|
content?: string | HTMLElement;
|
|
@@ -20,6 +21,8 @@ export interface MessageOptions {
|
|
|
20
21
|
style?: Partial<CSSStyleDeclaration>;
|
|
21
22
|
/** 关闭时的回调 */
|
|
22
23
|
onClose?: () => void;
|
|
24
|
+
/** 消息位置,默认 'top' */
|
|
25
|
+
placement?: MessagePlacement;
|
|
23
26
|
}
|
|
24
27
|
export interface MessageInstance {
|
|
25
28
|
/** 手动关闭当前消息 */
|
|
@@ -36,4 +39,12 @@ export interface MessageConfig {
|
|
|
36
39
|
gap: number;
|
|
37
40
|
/** 距离顶部的偏移量 */
|
|
38
41
|
top: number;
|
|
42
|
+
/** 距离底部的偏移量 */
|
|
43
|
+
bottom: number;
|
|
44
|
+
/** 距离左侧的偏移量 */
|
|
45
|
+
left: number;
|
|
46
|
+
/** 距离右侧的偏移量 */
|
|
47
|
+
right: number;
|
|
48
|
+
/** 默认位置 */
|
|
49
|
+
placement: MessagePlacement;
|
|
39
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var t=Object.defineProperty,e=(e,i,o)=>((e,i,o)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[i]=o)(e,"symbol"!=typeof i?i+"":i,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./style.css.cjs"),o=require("./index.html.cjs"),n=require("../utils/helpers.cjs"),s=require("../../../runtime/component/base-element.cjs"),r=require("../../../runtime/component/decorators.cjs");Object.getOwnPropertyDescriptor;exports.SolelyBackTop=class extends s.default{constructor(){super(...arguments),e(this,"onScrollThrottled"),e(this,"onResizeThrottled"),e(this,"scrollAncestors",[]),e(this,"container",null),e(this,"mountTimeout"),e(this,"initialized",!1),e(this,"animating",!1),e(this,"isDocumentContainer",!1)}updateVisibleClass(){this.$data.visible?this.classList.add("backtop--visible"):this.classList.remove("backtop--visible")}getContainer(){let t=this.parentElement;for(;t;){const e=window.getComputedStyle(t);if("auto"===e.overflowY||"scroll"===e.overflowY)return t;t=t.parentElement}return null}getScrollAncestors(t){const e=[];let i=t.parentElement;for(;i;){const t=window.getComputedStyle(i);"auto"!==t.overflowY&&"scroll"!==t.overflowY||e.push(i),i=i.parentElement}return e}mounted(){this.$data.visible=!1,this.mountTimeout=setTimeout(()=>{this.initializeContainer()},100)}unmounted(){this.initialized=!1,this.animating=!1,this.mountTimeout&&(clearTimeout(this.mountTimeout),this.mountTimeout=void 0),this.cleanupEventListeners()}initializeContainer(){if(!this.initialized){if(this.initialized=!0,this.container=this.getContainer(),this.container?this.isDocumentContainer=!1:(this.container=document.documentElement,this.isDocumentContainer=!0),this.isDocumentContainer?this.scrollAncestors=[]:this.scrollAncestors=this.getScrollAncestors(this.container),this.onScrollThrottled=n.throttle(()=>{this.handleScroll(),this.isDocumentContainer||this.schedulePositionUpdate()},16),this.isDocumentContainer)window.addEventListener("scroll",this.onScrollThrottled,{passive:!0});else{this.container.addEventListener("scroll",this.onScrollThrottled),window.addEventListener("scroll",this.onScrollThrottled,{passive:!0});const t=this.onScrollThrottled;this.scrollAncestors.forEach(e=>{t&&e.addEventListener("scroll",t,{passive:!0})})}this.onResizeThrottled=n.throttle(()=>{this.isDocumentContainer||this.schedulePositionUpdate()},16),window.addEventListener("resize",this.onResizeThrottled),this.handleScroll(),this.updatePosition()}}cleanupEventListeners(){if(this.onScrollThrottled){if(this.isDocumentContainer)window.removeEventListener("scroll",this.onScrollThrottled);else{this.container&&this.container.removeEventListener("scroll",this.onScrollThrottled),window.removeEventListener("scroll",this.onScrollThrottled);const t=this.onScrollThrottled;this.scrollAncestors.forEach(e=>{t&&e.removeEventListener("scroll",t)})}this.onScrollThrottled=void 0}this.onResizeThrottled&&(window.removeEventListener("resize",this.onResizeThrottled),this.onResizeThrottled=void 0)}schedulePositionUpdate(){requestAnimationFrame(()=>this.updatePosition())}updatePosition(){if(!this.container)return;if(this.isDocumentContainer)return this.style.right="",void(this.style.bottom="");const t=this.container.getBoundingClientRect();this.style.position="fixed",this.style.right=window.innerWidth-t.right+20+"px",this.style.bottom=window.innerHeight-t.bottom+20+"px"}handleScroll(){if(!this.container)return;const t=this.getScrollTop()>=this.$data.visibilityHeight;this.$data.visible!==t&&(this.$data.visible=t,this.updateVisibleClass())}getScrollTop(){var t;return this.isDocumentContainer?window.scrollY||document.documentElement.scrollTop:(null==(t=this.container)?void 0:t.scrollTop)??0}setScrollTop(t){this.isDocumentContainer?(window.scrollTo({top:t,behavior:"instant"}),document.documentElement.scrollTop=t):this.container&&(this.container.scrollTop=t)}handleClick(){if(this.animating||!this.container)return;this.animating=!0;const t=this.$data.duration||450,e=Date.now(),i=this.getScrollTop(),o=()=>{if(!this.animating)return;const n=Date.now()-e,s=Math.min(n/t,1),r=s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2,l=i*(1-r);this.setScrollTop(l),s<1?requestAnimationFrame(o):(this.animating=!1,this.dispatchEvent(new CustomEvent("backtop-finish",{bubbles:!0,composed:!0})))};requestAnimationFrame(o)}},exports.SolelyBackTop=((t,e)=>{for(var i,o=e,n=t.length-1;n>=0;n--)(i=t[n])&&(o=i(o)||o);return o})([r.CustomElement({tagName:"solely-backtop",template:o.default,styles:i.default,shadowDOM:{use:!0,mode:"open"},props:[{name:"visibilityHeight",type:"number",default:400},{name:"duration",type:"number",default:450}]})],exports.SolelyBackTop);
|
|
@@ -3,40 +3,29 @@ import { BackTopProps } from './types';
|
|
|
3
3
|
declare class SolelyBackTop extends BaseElement<BackTopProps & {
|
|
4
4
|
visible: boolean;
|
|
5
5
|
}> {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
private onScrollThrottled?;
|
|
7
|
+
private onResizeThrottled?;
|
|
8
|
+
private scrollAncestors;
|
|
8
9
|
container: HTMLElement | null;
|
|
9
10
|
private mountTimeout?;
|
|
10
11
|
private initialized;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
12
|
+
private animating;
|
|
13
|
+
private isDocumentContainer;
|
|
14
14
|
updateVisibleClass(): void;
|
|
15
|
-
/**
|
|
16
|
-
* 获取滚动容器
|
|
17
|
-
*/
|
|
15
|
+
/** 向上查找第一个纵向可滚动容器(不包括祖先) */
|
|
18
16
|
getContainer(): HTMLElement | null;
|
|
17
|
+
/** 查找所有可滚动的祖先元素(用于监听) */
|
|
18
|
+
getScrollAncestors(startFrom: HTMLElement): HTMLElement[];
|
|
19
19
|
mounted(): void;
|
|
20
20
|
unmounted(): void;
|
|
21
|
-
/**
|
|
22
|
-
* 初始化容器
|
|
23
|
-
*/
|
|
24
21
|
private initializeContainer;
|
|
25
|
-
/**
|
|
26
|
-
* 清理事件监听器
|
|
27
|
-
*/
|
|
28
22
|
private cleanupEventListeners;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
23
|
+
private schedulePositionUpdate;
|
|
24
|
+
/** 根据容器在视口中的位置更新 fixed 坐标 */
|
|
32
25
|
updatePosition(): void;
|
|
33
|
-
/**
|
|
34
|
-
* 滚动事件处理
|
|
35
|
-
*/
|
|
36
26
|
handleScroll(): void;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*/
|
|
27
|
+
private getScrollTop;
|
|
28
|
+
private setScrollTop;
|
|
40
29
|
handleClick(): void;
|
|
41
30
|
}
|
|
42
31
|
export default SolelyBackTop;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=(e,i,
|
|
1
|
+
var t=Object.defineProperty,e=(e,i,o)=>((e,i,o)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[i]=o)(e,"symbol"!=typeof i?i+"":i,o);import i from"./style.css.js";import o from"./index.html.js";import{throttle as n}from"../utils/helpers.js";import s from"../../../runtime/component/base-element.js";import{CustomElement as r}from"../../../runtime/component/decorators.js";Object.getOwnPropertyDescriptor;let l=class extends s{constructor(){super(...arguments),e(this,"onScrollThrottled"),e(this,"onResizeThrottled"),e(this,"scrollAncestors",[]),e(this,"container",null),e(this,"mountTimeout"),e(this,"initialized",!1),e(this,"animating",!1),e(this,"isDocumentContainer",!1)}updateVisibleClass(){this.$data.visible?this.classList.add("backtop--visible"):this.classList.remove("backtop--visible")}getContainer(){let t=this.parentElement;for(;t;){const e=window.getComputedStyle(t);if("auto"===e.overflowY||"scroll"===e.overflowY)return t;t=t.parentElement}return null}getScrollAncestors(t){const e=[];let i=t.parentElement;for(;i;){const t=window.getComputedStyle(i);"auto"!==t.overflowY&&"scroll"!==t.overflowY||e.push(i),i=i.parentElement}return e}mounted(){this.$data.visible=!1,this.mountTimeout=setTimeout(()=>{this.initializeContainer()},100)}unmounted(){this.initialized=!1,this.animating=!1,this.mountTimeout&&(clearTimeout(this.mountTimeout),this.mountTimeout=void 0),this.cleanupEventListeners()}initializeContainer(){if(!this.initialized){if(this.initialized=!0,this.container=this.getContainer(),this.container?this.isDocumentContainer=!1:(this.container=document.documentElement,this.isDocumentContainer=!0),this.isDocumentContainer?this.scrollAncestors=[]:this.scrollAncestors=this.getScrollAncestors(this.container),this.onScrollThrottled=n(()=>{this.handleScroll(),this.isDocumentContainer||this.schedulePositionUpdate()},16),this.isDocumentContainer)window.addEventListener("scroll",this.onScrollThrottled,{passive:!0});else{this.container.addEventListener("scroll",this.onScrollThrottled),window.addEventListener("scroll",this.onScrollThrottled,{passive:!0});const t=this.onScrollThrottled;this.scrollAncestors.forEach(e=>{t&&e.addEventListener("scroll",t,{passive:!0})})}this.onResizeThrottled=n(()=>{this.isDocumentContainer||this.schedulePositionUpdate()},16),window.addEventListener("resize",this.onResizeThrottled),this.handleScroll(),this.updatePosition()}}cleanupEventListeners(){if(this.onScrollThrottled){if(this.isDocumentContainer)window.removeEventListener("scroll",this.onScrollThrottled);else{this.container&&this.container.removeEventListener("scroll",this.onScrollThrottled),window.removeEventListener("scroll",this.onScrollThrottled);const t=this.onScrollThrottled;this.scrollAncestors.forEach(e=>{t&&e.removeEventListener("scroll",t)})}this.onScrollThrottled=void 0}this.onResizeThrottled&&(window.removeEventListener("resize",this.onResizeThrottled),this.onResizeThrottled=void 0)}schedulePositionUpdate(){requestAnimationFrame(()=>this.updatePosition())}updatePosition(){if(!this.container)return;if(this.isDocumentContainer)return this.style.right="",void(this.style.bottom="");const t=this.container.getBoundingClientRect();this.style.position="fixed",this.style.right=window.innerWidth-t.right+20+"px",this.style.bottom=window.innerHeight-t.bottom+20+"px"}handleScroll(){if(!this.container)return;const t=this.getScrollTop()>=this.$data.visibilityHeight;this.$data.visible!==t&&(this.$data.visible=t,this.updateVisibleClass())}getScrollTop(){var t;return this.isDocumentContainer?window.scrollY||document.documentElement.scrollTop:(null==(t=this.container)?void 0:t.scrollTop)??0}setScrollTop(t){this.isDocumentContainer?(window.scrollTo({top:t,behavior:"instant"}),document.documentElement.scrollTop=t):this.container&&(this.container.scrollTop=t)}handleClick(){if(this.animating||!this.container)return;this.animating=!0;const t=this.$data.duration||450,e=Date.now(),i=this.getScrollTop(),o=()=>{if(!this.animating)return;const n=Date.now()-e,s=Math.min(n/t,1),r=s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2,l=i*(1-r);this.setScrollTop(l),s<1?requestAnimationFrame(o):(this.animating=!1,this.dispatchEvent(new CustomEvent("backtop-finish",{bubbles:!0,composed:!0})))};requestAnimationFrame(o)}};l=((t,e)=>{for(var i,o=e,n=t.length-1;n>=0;n--)(i=t[n])&&(o=i(o)||o);return o})([r({tagName:"solely-backtop",template:o,styles:i,shadowDOM:{use:!0,mode:"open"},props:[{name:"visibilityHeight",type:"number",default:400},{name:"duration",type:"number",default:450}]})],l);export{l as SolelyBackTop};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}:host{display:block;position:fixed;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}:host{display:block;position:fixed;z-index:var(--solely-z-index-fixed);opacity:0;visibility:hidden;pointer-events:none}:host(.backtop--visible){opacity:1;visibility:visible;pointer-events:auto}:host([hidden]){display:none!important}.backtop{width:var(--solely-height-lg);height:var(--solely-height-lg);display:flex;align-items:center;justify-content:center;color:var(--solely-primary);background-color:var(--solely-component-bg);border-radius:50%;box-shadow:var(--solely-shadow-md);cursor:pointer;transition:transform var(--solely-transition-duration),background-color var(--solely-transition-duration),box-shadow var(--solely-transition-duration);transform:translateY(20px)}:host(.backtop--visible) .backtop{transform:translateY(0)}.backtop:hover{background-color:var(--solely-primary);color:var(--solely-white);box-shadow:var(--solely-shadow-lg);transform:translateY(-2px)}.backtop__icon{font-size:var(--solely-font-size-lg);font-weight:700}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="*,*:before,*:after{box-sizing:border-box}:host{display:block;position:fixed;
|
|
1
|
+
const o="*,*:before,*:after{box-sizing:border-box}:host{display:block;position:fixed;z-index:var(--solely-z-index-fixed);opacity:0;visibility:hidden;pointer-events:none}:host(.backtop--visible){opacity:1;visibility:visible;pointer-events:auto}:host([hidden]){display:none!important}.backtop{width:var(--solely-height-lg);height:var(--solely-height-lg);display:flex;align-items:center;justify-content:center;color:var(--solely-primary);background-color:var(--solely-component-bg);border-radius:50%;box-shadow:var(--solely-shadow-md);cursor:pointer;transition:transform var(--solely-transition-duration),background-color var(--solely-transition-duration),box-shadow var(--solely-transition-duration);transform:translateY(20px)}:host(.backtop--visible) .backtop{transform:translateY(0)}.backtop:hover{background-color:var(--solely-primary);color:var(--solely-white);box-shadow:var(--solely-shadow-lg);transform:translateY(-2px)}.backtop__icon{font-size:var(--solely-font-size-lg);font-weight:700}";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default=':host{display:contents}.fab,.fab:before,.fab:after{box-sizing:border-box}.fab{position:fixed;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;box-shadow:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default=':host{display:contents}.fab,.fab:before,.fab:after{box-sizing:border-box}.fab{position:fixed;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;box-shadow:var(--solely-shadow-lg);transition:all var(--solely-transition-duration) var(--solely-transition-timing);z-index:var(--solely-z-index-fixed);outline:none;padding:0}.fab--absolute{position:absolute}.fab:hover{box-shadow:var(--solely-shadow-xl);transform:var(--fab-position-transform, none) scale(1.05)}.fab:active{transform:var(--fab-position-transform, none) scale(.95)}.fab:disabled{opacity:var(--solely-disabled-opacity);cursor:not-allowed;box-shadow:var(--solely-shadow-sm)}.fab:disabled:hover{transform:var(--fab-position-transform, none)}.fab__icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.fab__icon svg{width:60%;height:60%}.fab--sm{width:40px;height:40px}.fab--sm .fab__icon{font-size:16px}.fab--md{width:56px;height:56px}.fab--md .fab__icon{font-size:24px}.fab--lg{width:72px;height:72px}.fab--lg .fab__icon{font-size:32px}.fab--circle{border-radius:50%}.fab--square{border-radius:8px}.fab--rounded{border-radius:16px}.fab--primary{background:linear-gradient(135deg,var(--solely-primary) 0%,var(--solely-primary-hover) 100%);color:#fff}.fab--primary:hover{background:linear-gradient(135deg,var(--solely-primary-hover) 0%,var(--solely-primary-active) 100%)}.fab--secondary{background:linear-gradient(135deg,var(--solely-secondary) 0%,var(--solely-secondary-hover) 100%);color:#fff}.fab--secondary:hover{background:linear-gradient(135deg,var(--solely-secondary-hover) 0%,var(--solely-secondary-active) 100%)}.fab--success{background:linear-gradient(135deg,var(--solely-success) 0%,var(--solely-success-hover) 100%);color:#fff}.fab--success:hover{background:linear-gradient(135deg,var(--solely-success-hover) 0%,var(--solely-success-active) 100%)}.fab--warning{background:linear-gradient(135deg,var(--solely-warning) 0%,var(--solely-warning-hover) 100%);color:#fff}.fab--warning:hover{background:linear-gradient(135deg,var(--solely-warning-hover) 0%,var(--solely-warning-active) 100%)}.fab--error{background:linear-gradient(135deg,var(--solely-error) 0%,var(--solely-error-hover) 100%);color:#fff}.fab--error:hover{background:linear-gradient(135deg,var(--solely-error-hover) 0%,var(--solely-error-active) 100%)}.fab--default{background:var(--solely-component-bg);color:var(--solely-text-primary);border:1px solid var(--solely-border-color)}.fab--default:hover{color:var(--solely-primary);border-color:var(--solely-primary)}.fab--top-left{top:var(--fab-offset-y, 24px);left:var(--fab-offset-x, 24px);--fab-position-transform: none}.fab--top-center{top:var(--fab-offset-y, 24px);left:50%;--fab-position-transform: translateX(-50%);transform:translate(-50%)}.fab--top-right{top:var(--fab-offset-y, 24px);right:var(--fab-offset-x, 24px);--fab-position-transform: none}.fab--left-center{left:var(--fab-offset-x, 24px);top:50%;--fab-position-transform: translateY(-50%);transform:translateY(-50%)}.fab--center{left:50%;top:50%;--fab-position-transform: translate(-50%, -50%);transform:translate(-50%,-50%)}.fab--right-center{right:var(--fab-offset-x, 24px);top:50%;--fab-position-transform: translateY(-50%);transform:translateY(-50%)}.fab--bottom-left{bottom:var(--fab-offset-y, 24px);left:var(--fab-offset-x, 24px);--fab-position-transform: none}.fab--bottom-center{bottom:var(--fab-offset-y, 24px);left:50%;--fab-position-transform: translateX(-50%);transform:translate(-50%)}.fab--bottom-right{bottom:var(--fab-offset-y, 24px);right:var(--fab-offset-x, 24px);--fab-position-transform: none}.fab--hidden{opacity:0;pointer-events:none}.fab:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;background:var(--solely-component-bg);opacity:.3;border-radius:50%;transform:translate(-50%,-50%);transition:width .6s,height .6s}.fab:active:after{width:200%;height:200%}.fab__icon ::slotted(*){display:inline-flex;align-items:center;justify-content:center}';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a=':host{display:contents}.fab,.fab:before,.fab:after{box-sizing:border-box}.fab{position:fixed;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;box-shadow:var(--solely-shadow-lg);transition:all var(--solely-transition-duration) var(--solely-transition-timing);z-index:var(--solely-z-index-fixed);outline:none;padding:0}.fab--absolute{position:absolute}.fab:hover{box-shadow:var(--solely-shadow-xl);transform:var(--fab-position-transform, none) scale(1.05)}.fab:active{transform:var(--fab-position-transform, none) scale(.95)}.fab:disabled{opacity:var(--solely-disabled-opacity);cursor:not-allowed;box-shadow:var(--solely-shadow-sm)}.fab:disabled:hover{transform:var(--fab-position-transform, none)}.fab__icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.fab__icon svg{width:60%;height:60%}.fab--sm{width:40px;height:40px}.fab--sm .fab__icon{font-size:16px}.fab--md{width:56px;height:56px}.fab--md .fab__icon{font-size:24px}.fab--lg{width:72px;height:72px}.fab--lg .fab__icon{font-size:32px}.fab--circle{border-radius:50%}.fab--square{border-radius:8px}.fab--rounded{border-radius:16px}.fab--primary{background:linear-gradient(135deg,var(--solely-primary) 0%,var(--solely-primary-hover) 100%);color:#fff}.fab--primary:hover{background:linear-gradient(135deg,var(--solely-primary-hover) 0%,var(--solely-primary-active) 100%)}.fab--secondary{background:linear-gradient(135deg,var(--solely-secondary) 0%,var(--solely-secondary-hover) 100%);color:#fff}.fab--secondary:hover{background:linear-gradient(135deg,var(--solely-secondary-hover) 0%,var(--solely-secondary-active) 100%)}.fab--success{background:linear-gradient(135deg,var(--solely-success) 0%,var(--solely-success-hover) 100%);color:#fff}.fab--success:hover{background:linear-gradient(135deg,var(--solely-success-hover) 0%,var(--solely-success-active) 100%)}.fab--warning{background:linear-gradient(135deg,var(--solely-warning) 0%,var(--solely-warning-hover) 100%);color:#fff}.fab--warning:hover{background:linear-gradient(135deg,var(--solely-warning-hover) 0%,var(--solely-warning-active) 100%)}.fab--error{background:linear-gradient(135deg,var(--solely-error) 0%,var(--solely-error-hover) 100%);color:#fff}.fab--error:hover{background:linear-gradient(135deg,var(--solely-error-hover) 0%,var(--solely-error-active) 100%)}.fab--default{background:var(--solely-component-bg);color:var(--solely-text-primary);border:1px solid var(--solely-border-color)}.fab--default:hover{color:var(--solely-primary);border-color:var(--solely-primary)}.fab--top-left{top:var(--fab-offset-y, 24px);left:var(--fab-offset-x, 24px);--fab-position-transform: none}.fab--top-center{top:var(--fab-offset-y, 24px);left:50%;--fab-position-transform: translateX(-50%);transform:translate(-50%)}.fab--top-right{top:var(--fab-offset-y, 24px);right:var(--fab-offset-x, 24px);--fab-position-transform: none}.fab--left-center{left:var(--fab-offset-x, 24px);top:50%;--fab-position-transform: translateY(-50%);transform:translateY(-50%)}.fab--center{left:50%;top:50%;--fab-position-transform: translate(-50%, -50%);transform:translate(-50%,-50%)}.fab--right-center{right:var(--fab-offset-x, 24px);top:50%;--fab-position-transform: translateY(-50%);transform:translateY(-50%)}.fab--bottom-left{bottom:var(--fab-offset-y, 24px);left:var(--fab-offset-x, 24px);--fab-position-transform: none}.fab--bottom-center{bottom:var(--fab-offset-y, 24px);left:50%;--fab-position-transform: translateX(-50%);transform:translate(-50%)}.fab--bottom-right{bottom:var(--fab-offset-y, 24px);right:var(--fab-offset-x, 24px);--fab-position-transform: none}.fab--hidden{opacity:0;pointer-events:none}.fab:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;background:var(--solely-component-bg);opacity:.3;border-radius:50%;transform:translate(-50%,-50%);transition:width .6s,height .6s}.fab:active:after{width:200%;height:200%}.fab__icon ::slotted(*){display:inline-flex;align-items:center;justify-content:center}';export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default='*,*:before,*:after{box-sizing:border-box}:host{display:inline-block;width:100%;max-width:300px;--slider-handle-bg: var(--solely-component-bg);--slider-handle-border: var(--solely-primary);--slider-handle-shadow:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default='*,*:before,*:after{box-sizing:border-box}:host{display:inline-block;width:100%;max-width:300px;--slider-handle-bg: var(--solely-component-bg);--slider-handle-border: var(--solely-primary);--slider-handle-shadow: var(--solely-shadow-primary)}:host([block]){display:block;width:100%;max-width:none}.slider{position:relative;font-family:var(--solely-font-family);padding:8px 0;user-select:none;-webkit-user-select:none}.slider--vertical{height:200px;padding:0 12px}.slider__rail{position:relative;width:100%;height:4px;background-color:var(--solely-gray-3);border-radius:2px;cursor:pointer}.slider--vertical .slider__rail{width:4px;height:100%;margin:0 auto}.slider__track{position:absolute;height:4px;background-color:var(--solely-primary);border-radius:2px}.slider--vertical .slider__track{width:4px;height:auto;bottom:0}.slider__handle{position:absolute;width:14px;height:14px;background-color:var(--slider-handle-bg);border:2px solid var(--slider-handle-border);border-radius:50%;cursor:grab;will-change:transform,left,bottom;z-index:var(--solely-z-index-slider-handle);top:50%;transform:translateY(-50%);margin-left:-7px}.slider__handle:hover{transform:translateY(-50%) scale(1.2);transition:transform var(--solely-transition-duration)}.slider__handle--dragging{cursor:grabbing;transform:translateY(-50%) scale(1.2);box-shadow:0 0 0 4px var(--slider-handle-shadow)}.slider--vertical .slider__handle{left:9px;transform:translate(-50%) translateY(50%);margin-top:-7px;top:auto}.slider--vertical .slider__handle:hover,.slider--vertical .slider__handle--dragging{transform:translate(-50%) translateY(50%) scale(1.2)}.slider__marks{position:absolute;top:4px;left:0;right:0}.slider--vertical .slider__marks{top:0;left:12px;right:auto;height:100%}.slider__mark{position:absolute;transform:translate(-50%);font-size:12px;color:var(--solely-text-tertiary);text-align:center}.slider--vertical .slider__mark{transform:translateY(50%)}.slider__mark-dot{position:absolute;top:-6px;left:50%;transform:translate(-50%);width:8px;height:8px;background-color:var(--solely-component-bg);border:2px solid var(--solely-gray-4);border-radius:50%}.slider__mark-label{display:block;margin-top:4px}.slider__mark-dot--active{border-color:var(--solely-primary)}.slider__tooltip{position:absolute;top:-32px;left:50%;transform:translate(-50%);padding:4px 8px;background-color:var(--solely-primary);color:var(--solely-white);font-size:12px;border-radius:var(--solely-border-radius-sm);white-space:nowrap;opacity:0;visibility:hidden;transition:all var(--solely-transition-duration)}.slider__tooltip:after{content:"";position:absolute;bottom:-4px;left:50%;transform:translate(-50%);border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid var(--solely-primary)}.slider__handle:hover .slider__tooltip,.slider__handle--dragging .slider__tooltip{opacity:1;visibility:visible}.slider--vertical .slider__tooltip{top:50%;left:30px;transform:translateY(-50%)}.slider--vertical .slider__tooltip:after{top:50%;left:-8px;bottom:auto;transform:translateY(-50%);border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid var(--solely-primary)}.slider.is-disabled{opacity:var(--solely-disabled-opacity);pointer-events:none}.slider.is-disabled .slider__rail,.slider.is-disabled .slider__handle{cursor:not-allowed}';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r='*,*:before,*:after{box-sizing:border-box}:host{display:inline-block;width:100%;max-width:300px;--slider-handle-bg: var(--solely-component-bg);--slider-handle-border: var(--solely-primary);--slider-handle-shadow:
|
|
1
|
+
const r='*,*:before,*:after{box-sizing:border-box}:host{display:inline-block;width:100%;max-width:300px;--slider-handle-bg: var(--solely-component-bg);--slider-handle-border: var(--solely-primary);--slider-handle-shadow: var(--solely-shadow-primary)}:host([block]){display:block;width:100%;max-width:none}.slider{position:relative;font-family:var(--solely-font-family);padding:8px 0;user-select:none;-webkit-user-select:none}.slider--vertical{height:200px;padding:0 12px}.slider__rail{position:relative;width:100%;height:4px;background-color:var(--solely-gray-3);border-radius:2px;cursor:pointer}.slider--vertical .slider__rail{width:4px;height:100%;margin:0 auto}.slider__track{position:absolute;height:4px;background-color:var(--solely-primary);border-radius:2px}.slider--vertical .slider__track{width:4px;height:auto;bottom:0}.slider__handle{position:absolute;width:14px;height:14px;background-color:var(--slider-handle-bg);border:2px solid var(--slider-handle-border);border-radius:50%;cursor:grab;will-change:transform,left,bottom;z-index:var(--solely-z-index-slider-handle);top:50%;transform:translateY(-50%);margin-left:-7px}.slider__handle:hover{transform:translateY(-50%) scale(1.2);transition:transform var(--solely-transition-duration)}.slider__handle--dragging{cursor:grabbing;transform:translateY(-50%) scale(1.2);box-shadow:0 0 0 4px var(--slider-handle-shadow)}.slider--vertical .slider__handle{left:9px;transform:translate(-50%) translateY(50%);margin-top:-7px;top:auto}.slider--vertical .slider__handle:hover,.slider--vertical .slider__handle--dragging{transform:translate(-50%) translateY(50%) scale(1.2)}.slider__marks{position:absolute;top:4px;left:0;right:0}.slider--vertical .slider__marks{top:0;left:12px;right:auto;height:100%}.slider__mark{position:absolute;transform:translate(-50%);font-size:12px;color:var(--solely-text-tertiary);text-align:center}.slider--vertical .slider__mark{transform:translateY(50%)}.slider__mark-dot{position:absolute;top:-6px;left:50%;transform:translate(-50%);width:8px;height:8px;background-color:var(--solely-component-bg);border:2px solid var(--solely-gray-4);border-radius:50%}.slider__mark-label{display:block;margin-top:4px}.slider__mark-dot--active{border-color:var(--solely-primary)}.slider__tooltip{position:absolute;top:-32px;left:50%;transform:translate(-50%);padding:4px 8px;background-color:var(--solely-primary);color:var(--solely-white);font-size:12px;border-radius:var(--solely-border-radius-sm);white-space:nowrap;opacity:0;visibility:hidden;transition:all var(--solely-transition-duration)}.slider__tooltip:after{content:"";position:absolute;bottom:-4px;left:50%;transform:translate(-50%);border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid var(--solely-primary)}.slider__handle:hover .slider__tooltip,.slider__handle--dragging .slider__tooltip{opacity:1;visibility:visible}.slider--vertical .slider__tooltip{top:50%;left:30px;transform:translateY(-50%)}.slider--vertical .slider__tooltip:after{top:50%;left:-8px;bottom:auto;transform:translateY(-50%);border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid var(--solely-primary)}.slider.is-disabled{opacity:var(--solely-disabled-opacity);pointer-events:none}.slider.is-disabled .slider__rail,.slider.is-disabled .slider__handle{cursor:not-allowed}';export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}:host{display:block;width:100%}.steps{--step-icon-size: 32px;--step-icon-inner: 26px;--step-dot-size: 8px;--step-tail-thickness: 2px;--step-gap: 8px;--step-tail-offset: 12px;width:100%;font-family:var(--solely-font-family);font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:var(--solely-line-height-md);box-sizing:border-box}.step{position:relative;cursor:pointer}.step__wrapper{position:relative;z-index:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}:host{display:block;width:100%}.steps{--step-icon-size: 32px;--step-icon-inner: 26px;--step-dot-size: 8px;--step-tail-thickness: 2px;--step-gap: 8px;--step-tail-offset: 12px;width:100%;font-family:var(--solely-font-family);font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:var(--solely-line-height-md);box-sizing:border-box}.step{position:relative;cursor:pointer}.step__wrapper{position:relative;z-index:var(--solely-z-index-steps-icon);display:flex}.step__icon-wrapper{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--step-icon-size);height:var(--step-icon-size)}.step__icon{display:flex;align-items:center;justify-content:center;width:var(--step-icon-inner);height:var(--step-icon-inner);font-size:var(--solely-font-size-md);line-height:1;border-radius:var(--solely-border-radius-circle);border:2px solid transparent;transition:all var(--solely-transition-duration) var(--solely-transition-timing);box-sizing:border-box}.step__title{color:var(--solely-text-tertiary);font-size:var(--solely-font-size-md);line-height:22px}.step__description{color:var(--solely-text-tertiary);font-size:var(--solely-font-size-sm);line-height:20px;margin-top:4px}.steps--horizontal{display:flex;text-align:center}.steps--horizontal .step{flex:1;overflow:visible}.steps--horizontal .step__wrapper{flex-direction:column;align-items:center;width:100%}.steps--horizontal .step__tail{position:absolute;top:calc(var(--step-icon-size) / 2);left:calc(50% + var(--step-tail-offset));width:calc(100% - 2 * var(--step-tail-offset));height:var(--step-tail-thickness);background:var(--solely-border-color);transition:background var(--solely-transition-duration);z-index:var(--solely-z-index-steps-tail)}.steps--horizontal .step:last-child .step__tail{display:none}.steps--horizontal .step__content{margin-top:var(--step-gap);word-break:break-word}.steps--vertical{display:flex;flex-direction:column}.steps--vertical .step{padding-left:calc(var(--step-icon-size) + 4px);min-height:var(--step-icon-size)}.steps--vertical .step__wrapper{flex-direction:row;align-items:flex-start}.steps--vertical .step__icon-wrapper{position:absolute;left:calc(-1 * (var(--step-icon-size) + 4px));top:0}.steps--vertical .step__tail{position:absolute;left:calc(var(--step-icon-size) / 2 - 1px);top:var(--step-icon-size);bottom:0;width:var(--step-tail-thickness);background:var(--solely-border-color);transition:background var(--solely-transition-duration);z-index:var(--solely-z-index-steps-tail)}.steps--vertical .step:last-child .step__tail{display:none}.steps--vertical .step__content{flex:1;min-width:0}.steps--vertical .step__title{line-height:var(--step-icon-size)}.step--wait .step__icon{background:var(--solely-gray-4);border-color:var(--solely-text-quaternary);color:var(--solely-text-quaternary)}.step--process .step__icon{background:var(--solely-primary);border-color:var(--solely-primary);color:var(--solely-white)}.step--process .step__title{color:var(--solely-text-primary);font-weight:500}.step--finish .step__icon{background:var(--solely-gray-4);border-color:var(--solely-primary);color:var(--solely-primary)}.step--finish .step__title{color:var(--solely-text-primary)}.step--finish .step__tail{background:var(--solely-primary)!important}.step--error .step__icon{background:var(--solely-gray-4);border-color:var(--solely-error);color:var(--solely-error)}.step--error .step__title{color:var(--solely-error)}.step--disabled,.step--disabled *{cursor:not-allowed}.step:not(.step--disabled):hover .step__title{color:var(--solely-primary)}.step:not(.step--disabled):hover .step__icon{border-color:var(--solely-primary)}.step--has-icon:not(.step--disabled):hover .step__icon{color:var(--solely-primary)}.step--has-icon .step__icon{background:transparent!important;border:none!important;width:auto;height:auto;margin:0;font-size:24px}.step--has-icon .step__icon-wrapper{background:var(--solely-primary-light);color:var(--solely-primary);border-radius:var(--solely-border-radius-circle)}.step--has-icon.step--finish .step__icon-wrapper,.step--has-icon.step--process .step__icon-wrapper{background:var(--solely-primary-light);color:var(--solely-primary)}.step--has-icon.step--error .step__icon-wrapper{background:var(--solely-error-light);color:var(--solely-error)}.step--has-icon.step--wait .step__icon-wrapper{background:#0000000a;color:var(--solely-text-quaternary)}.step--has-icon.step--process .step__icon,.step--has-icon.step--finish .step__icon{color:var(--solely-primary)}.step--has-icon.step--error .step__icon{color:var(--solely-error)}.step--has-icon.step--wait .step__icon{color:var(--solely-text-quaternary)}.step__icon-wrapper--blue{background-color:var(--solely-primary-light)!important;color:var(--solely-primary)!important}.step__icon-wrapper--green{background-color:var(--solely-success-light)!important;color:var(--solely-success)!important}.step__icon-wrapper--red{background-color:var(--solely-error-light)!important;color:var(--solely-error)!important}.step__icon-wrapper--orange{background-color:var(--solely-warning-light)!important;color:var(--solely-warning)!important}.step__icon-wrapper--gray{background-color:#0000000a!important;color:var(--solely-text-tertiary)!important}.steps--dot{--step-icon-size: 8px;--step-icon-inner: 8px;--step-gap: 6px;--step-tail-offset: 6px}.steps--dot .step__icon{border:none;background:var(--solely-text-quaternary);font-size:0}.steps--dot .step__icon-text,.steps--dot .step__icon-substitution{display:none}.steps--dot .step--process .step__icon{background:var(--solely-primary);box-shadow:0 0 0 2px var(--solely-primary-light)}.steps--dot .step--finish .step__icon{background:var(--solely-primary)}.steps--dot .step--error .step__icon{background:var(--solely-error)}.steps--dot.steps--horizontal .step__tail{top:calc(var(--step-icon-size) / 2 - 1px)}.steps--dot.steps--vertical .step{padding-left:calc(var(--step-icon-size) + 12px);min-height:calc(var(--step-icon-size) + 8px)}.steps--dot.steps--vertical .step__icon-wrapper{left:calc(-1 * (var(--step-icon-size) + 12px))}.steps--dot.steps--vertical .step__tail{left:calc(var(--step-icon-size) / 2 - 1px);top:calc(var(--step-icon-size) + 4px);bottom:4px;width:var(--step-tail-thickness);background:var(--solely-border-color);transition:background var(--solely-transition-duration);z-index:var(--solely-z-index-steps-tail)}.steps--dot.steps--vertical .step__title{line-height:var(--step-icon-size);padding-bottom:4px}.steps--sm{--step-icon-size: 24px;--step-icon-inner: 20px;--step-dot-size: 6px;--step-gap: 6px;--step-tail-offset: 8px}.steps--sm .step__title{font-size:var(--solely-font-size-sm);line-height:20px}.steps--sm .step__description,.steps--sm .step__icon{font-size:var(--solely-font-size-sm)}.steps--sm .step__icon-substitution{font-size:14px}.steps--sm.steps--vertical .step{padding-left:calc(var(--step-icon-size) + 4px)}.steps--sm.steps--vertical .step__icon-wrapper{left:calc(-1 * (var(--step-icon-size) + 4px))}.steps--sm.steps--vertical .step__title{line-height:var(--step-icon-size)}.steps--sm.steps--dot.steps--vertical .step{padding-left:calc(var(--step-dot-size) + 8px);min-height:calc(var(--step-dot-size) + 6px)}.steps--sm.steps--dot.steps--vertical .step__icon-wrapper{left:calc(-1 * (var(--step-dot-size) + 8px))}.steps--sm.steps--dot.steps--vertical .step__tail{top:calc(var(--step-dot-size) + 4px)}.steps--sm.steps--dot.steps--vertical .step__title{line-height:var(--step-dot-size);padding-bottom:2px}.steps--sm.steps--dot.steps--horizontal .step__icon{width:var(--step-dot-size);height:var(--step-dot-size)}.steps--lg{--step-icon-size: 40px;--step-icon-inner: 32px;--step-dot-size: 10px;--step-gap: 10px;--step-tail-offset: 16px}.steps--lg .step__title{font-size:var(--solely-font-size-lg);line-height:24px}.steps--lg .step__description{font-size:var(--solely-font-size-md);line-height:22px}.steps--lg .step__icon{font-size:var(--solely-font-size-lg)}.steps--lg .step__icon-substitution{font-size:20px}.steps--lg.steps--vertical .step{padding-left:calc(var(--step-icon-size) + 6px)}.steps--lg.steps--vertical .step__icon-wrapper{left:calc(-1 * (var(--step-icon-size) + 6px))}.steps--lg.steps--vertical .step__title{line-height:var(--step-icon-size)}.steps--lg.steps--dot.steps--vertical .step{padding-left:calc(var(--step-dot-size) + 14px);min-height:calc(var(--step-dot-size) + 10px)}.steps--lg.steps--dot.steps--vertical .step__icon-wrapper{left:calc(-1 * (var(--step-dot-size) + 14px))}.steps--lg.steps--dot.steps--vertical .step__tail{top:calc(var(--step-dot-size) + 4px)}.steps--lg.steps--dot.steps--vertical .step__title{line-height:var(--step-dot-size);padding-bottom:6px}.steps--lg.steps--dot.steps--horizontal .step__icon{width:var(--step-dot-size);height:var(--step-dot-size)}.steps__slot-content{display:flex;flex-direction:row}.steps--vertical .steps__slot-content{flex-direction:column}.steps__slot-content ::slotted([data-step]),.steps__slot-content>[data-step]{display:flex;flex:1;position:relative;cursor:pointer}.steps__slot-content ::slotted([data-step][disabled]),.steps__slot-content>[data-step][disabled]{cursor:not-allowed;opacity:.5}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e="*,*:before,*:after{box-sizing:border-box}:host{display:block;width:100%}.steps{--step-icon-size: 32px;--step-icon-inner: 26px;--step-dot-size: 8px;--step-tail-thickness: 2px;--step-gap: 8px;--step-tail-offset: 12px;width:100%;font-family:var(--solely-font-family);font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:var(--solely-line-height-md);box-sizing:border-box}.step{position:relative;cursor:pointer}.step__wrapper{position:relative;z-index:
|
|
1
|
+
const e="*,*:before,*:after{box-sizing:border-box}:host{display:block;width:100%}.steps{--step-icon-size: 32px;--step-icon-inner: 26px;--step-dot-size: 8px;--step-tail-thickness: 2px;--step-gap: 8px;--step-tail-offset: 12px;width:100%;font-family:var(--solely-font-family);font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:var(--solely-line-height-md);box-sizing:border-box}.step{position:relative;cursor:pointer}.step__wrapper{position:relative;z-index:var(--solely-z-index-steps-icon);display:flex}.step__icon-wrapper{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--step-icon-size);height:var(--step-icon-size)}.step__icon{display:flex;align-items:center;justify-content:center;width:var(--step-icon-inner);height:var(--step-icon-inner);font-size:var(--solely-font-size-md);line-height:1;border-radius:var(--solely-border-radius-circle);border:2px solid transparent;transition:all var(--solely-transition-duration) var(--solely-transition-timing);box-sizing:border-box}.step__title{color:var(--solely-text-tertiary);font-size:var(--solely-font-size-md);line-height:22px}.step__description{color:var(--solely-text-tertiary);font-size:var(--solely-font-size-sm);line-height:20px;margin-top:4px}.steps--horizontal{display:flex;text-align:center}.steps--horizontal .step{flex:1;overflow:visible}.steps--horizontal .step__wrapper{flex-direction:column;align-items:center;width:100%}.steps--horizontal .step__tail{position:absolute;top:calc(var(--step-icon-size) / 2);left:calc(50% + var(--step-tail-offset));width:calc(100% - 2 * var(--step-tail-offset));height:var(--step-tail-thickness);background:var(--solely-border-color);transition:background var(--solely-transition-duration);z-index:var(--solely-z-index-steps-tail)}.steps--horizontal .step:last-child .step__tail{display:none}.steps--horizontal .step__content{margin-top:var(--step-gap);word-break:break-word}.steps--vertical{display:flex;flex-direction:column}.steps--vertical .step{padding-left:calc(var(--step-icon-size) + 4px);min-height:var(--step-icon-size)}.steps--vertical .step__wrapper{flex-direction:row;align-items:flex-start}.steps--vertical .step__icon-wrapper{position:absolute;left:calc(-1 * (var(--step-icon-size) + 4px));top:0}.steps--vertical .step__tail{position:absolute;left:calc(var(--step-icon-size) / 2 - 1px);top:var(--step-icon-size);bottom:0;width:var(--step-tail-thickness);background:var(--solely-border-color);transition:background var(--solely-transition-duration);z-index:var(--solely-z-index-steps-tail)}.steps--vertical .step:last-child .step__tail{display:none}.steps--vertical .step__content{flex:1;min-width:0}.steps--vertical .step__title{line-height:var(--step-icon-size)}.step--wait .step__icon{background:var(--solely-gray-4);border-color:var(--solely-text-quaternary);color:var(--solely-text-quaternary)}.step--process .step__icon{background:var(--solely-primary);border-color:var(--solely-primary);color:var(--solely-white)}.step--process .step__title{color:var(--solely-text-primary);font-weight:500}.step--finish .step__icon{background:var(--solely-gray-4);border-color:var(--solely-primary);color:var(--solely-primary)}.step--finish .step__title{color:var(--solely-text-primary)}.step--finish .step__tail{background:var(--solely-primary)!important}.step--error .step__icon{background:var(--solely-gray-4);border-color:var(--solely-error);color:var(--solely-error)}.step--error .step__title{color:var(--solely-error)}.step--disabled,.step--disabled *{cursor:not-allowed}.step:not(.step--disabled):hover .step__title{color:var(--solely-primary)}.step:not(.step--disabled):hover .step__icon{border-color:var(--solely-primary)}.step--has-icon:not(.step--disabled):hover .step__icon{color:var(--solely-primary)}.step--has-icon .step__icon{background:transparent!important;border:none!important;width:auto;height:auto;margin:0;font-size:24px}.step--has-icon .step__icon-wrapper{background:var(--solely-primary-light);color:var(--solely-primary);border-radius:var(--solely-border-radius-circle)}.step--has-icon.step--finish .step__icon-wrapper,.step--has-icon.step--process .step__icon-wrapper{background:var(--solely-primary-light);color:var(--solely-primary)}.step--has-icon.step--error .step__icon-wrapper{background:var(--solely-error-light);color:var(--solely-error)}.step--has-icon.step--wait .step__icon-wrapper{background:#0000000a;color:var(--solely-text-quaternary)}.step--has-icon.step--process .step__icon,.step--has-icon.step--finish .step__icon{color:var(--solely-primary)}.step--has-icon.step--error .step__icon{color:var(--solely-error)}.step--has-icon.step--wait .step__icon{color:var(--solely-text-quaternary)}.step__icon-wrapper--blue{background-color:var(--solely-primary-light)!important;color:var(--solely-primary)!important}.step__icon-wrapper--green{background-color:var(--solely-success-light)!important;color:var(--solely-success)!important}.step__icon-wrapper--red{background-color:var(--solely-error-light)!important;color:var(--solely-error)!important}.step__icon-wrapper--orange{background-color:var(--solely-warning-light)!important;color:var(--solely-warning)!important}.step__icon-wrapper--gray{background-color:#0000000a!important;color:var(--solely-text-tertiary)!important}.steps--dot{--step-icon-size: 8px;--step-icon-inner: 8px;--step-gap: 6px;--step-tail-offset: 6px}.steps--dot .step__icon{border:none;background:var(--solely-text-quaternary);font-size:0}.steps--dot .step__icon-text,.steps--dot .step__icon-substitution{display:none}.steps--dot .step--process .step__icon{background:var(--solely-primary);box-shadow:0 0 0 2px var(--solely-primary-light)}.steps--dot .step--finish .step__icon{background:var(--solely-primary)}.steps--dot .step--error .step__icon{background:var(--solely-error)}.steps--dot.steps--horizontal .step__tail{top:calc(var(--step-icon-size) / 2 - 1px)}.steps--dot.steps--vertical .step{padding-left:calc(var(--step-icon-size) + 12px);min-height:calc(var(--step-icon-size) + 8px)}.steps--dot.steps--vertical .step__icon-wrapper{left:calc(-1 * (var(--step-icon-size) + 12px))}.steps--dot.steps--vertical .step__tail{left:calc(var(--step-icon-size) / 2 - 1px);top:calc(var(--step-icon-size) + 4px);bottom:4px;width:var(--step-tail-thickness);background:var(--solely-border-color);transition:background var(--solely-transition-duration);z-index:var(--solely-z-index-steps-tail)}.steps--dot.steps--vertical .step__title{line-height:var(--step-icon-size);padding-bottom:4px}.steps--sm{--step-icon-size: 24px;--step-icon-inner: 20px;--step-dot-size: 6px;--step-gap: 6px;--step-tail-offset: 8px}.steps--sm .step__title{font-size:var(--solely-font-size-sm);line-height:20px}.steps--sm .step__description,.steps--sm .step__icon{font-size:var(--solely-font-size-sm)}.steps--sm .step__icon-substitution{font-size:14px}.steps--sm.steps--vertical .step{padding-left:calc(var(--step-icon-size) + 4px)}.steps--sm.steps--vertical .step__icon-wrapper{left:calc(-1 * (var(--step-icon-size) + 4px))}.steps--sm.steps--vertical .step__title{line-height:var(--step-icon-size)}.steps--sm.steps--dot.steps--vertical .step{padding-left:calc(var(--step-dot-size) + 8px);min-height:calc(var(--step-dot-size) + 6px)}.steps--sm.steps--dot.steps--vertical .step__icon-wrapper{left:calc(-1 * (var(--step-dot-size) + 8px))}.steps--sm.steps--dot.steps--vertical .step__tail{top:calc(var(--step-dot-size) + 4px)}.steps--sm.steps--dot.steps--vertical .step__title{line-height:var(--step-dot-size);padding-bottom:2px}.steps--sm.steps--dot.steps--horizontal .step__icon{width:var(--step-dot-size);height:var(--step-dot-size)}.steps--lg{--step-icon-size: 40px;--step-icon-inner: 32px;--step-dot-size: 10px;--step-gap: 10px;--step-tail-offset: 16px}.steps--lg .step__title{font-size:var(--solely-font-size-lg);line-height:24px}.steps--lg .step__description{font-size:var(--solely-font-size-md);line-height:22px}.steps--lg .step__icon{font-size:var(--solely-font-size-lg)}.steps--lg .step__icon-substitution{font-size:20px}.steps--lg.steps--vertical .step{padding-left:calc(var(--step-icon-size) + 6px)}.steps--lg.steps--vertical .step__icon-wrapper{left:calc(-1 * (var(--step-icon-size) + 6px))}.steps--lg.steps--vertical .step__title{line-height:var(--step-icon-size)}.steps--lg.steps--dot.steps--vertical .step{padding-left:calc(var(--step-dot-size) + 14px);min-height:calc(var(--step-dot-size) + 10px)}.steps--lg.steps--dot.steps--vertical .step__icon-wrapper{left:calc(-1 * (var(--step-dot-size) + 14px))}.steps--lg.steps--dot.steps--vertical .step__tail{top:calc(var(--step-dot-size) + 4px)}.steps--lg.steps--dot.steps--vertical .step__title{line-height:var(--step-dot-size);padding-bottom:6px}.steps--lg.steps--dot.steps--horizontal .step__icon{width:var(--step-dot-size);height:var(--step-dot-size)}.steps__slot-content{display:flex;flex-direction:row}.steps--vertical .steps__slot-content{flex-direction:column}.steps__slot-content ::slotted([data-step]),.steps__slot-content>[data-step]{display:flex;flex:1;position:relative;cursor:pointer}.steps__slot-content ::slotted([data-step][disabled]),.steps__slot-content>[data-step][disabled]{cursor:not-allowed;opacity:.5}";export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}:host{display:inline-block;--switch-bg: var(--solely-gray-5);--switch-bg-checked: var(--solely-primary);--switch-bg-hover: var(--solely-gray-6);--switch-bg-checked-hover: var(--solely-primary-hover);--switch-handle-bg: var(--solely-white);--switch-disabled-opacity: .4;--switch-focus-shadow: var(--solely-primary-light)}:host([hidden]){display:none!important}.switch{position:relative;display:inline-flex;align-items:center;cursor:pointer;transition:all var(--solely-transition-duration) var(--solely-transition-timing);outline:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}.switch:focus-visible,.switch.focus-visible{box-shadow:0 0 0 2px var(--switch-focus-shadow);border-radius:100px}.switch--md{min-width:44px;height:22px}.switch--sm{min-width:28px;height:16px}.switch--lg{min-width:60px;height:28px}.switch__track{position:relative;width:100%;height:100%;background-color:var(--switch-bg);border-radius:100px;transition:all var(--solely-transition-duration) var(--solely-transition-timing);overflow:hidden}.switch:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--switch-bg-hover)}.switch.is-checked .switch__track{background-color:var(--switch-bg-checked)}.switch.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--switch-bg-checked-hover)}.switch__handle{position:absolute;top:2px;left:2px;background-color:var(--switch-handle-bg);border-radius:var(--solely-border-radius-circle);box-shadow:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}:host{display:inline-block;--switch-bg: var(--solely-gray-5);--switch-bg-checked: var(--solely-primary);--switch-bg-hover: var(--solely-gray-6);--switch-bg-checked-hover: var(--solely-primary-hover);--switch-handle-bg: var(--solely-white);--switch-disabled-opacity: .4;--switch-focus-shadow: var(--solely-primary-light)}:host([hidden]){display:none!important}.switch{position:relative;display:inline-flex;align-items:center;cursor:pointer;transition:all var(--solely-transition-duration) var(--solely-transition-timing);outline:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}.switch:focus-visible,.switch.focus-visible{box-shadow:0 0 0 2px var(--switch-focus-shadow);border-radius:100px}.switch--md{min-width:44px;height:22px}.switch--sm{min-width:28px;height:16px}.switch--lg{min-width:60px;height:28px}.switch__track{position:relative;width:100%;height:100%;background-color:var(--switch-bg);border-radius:100px;transition:all var(--solely-transition-duration) var(--solely-transition-timing);overflow:hidden}.switch:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--switch-bg-hover)}.switch.is-checked .switch__track{background-color:var(--switch-bg-checked)}.switch.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--switch-bg-checked-hover)}.switch__handle{position:absolute;top:2px;left:2px;background-color:var(--switch-handle-bg);border-radius:var(--solely-border-radius-circle);box-shadow:var(--solely-shadow-sm);transition:all var(--solely-transition-duration) var(--solely-transition-timing);z-index:var(--solely-z-index-switch-handle)}.switch--md .switch__handle{width:18px;height:18px}.switch--md.is-checked .switch__handle{left:calc(100% - 20px)}.switch--sm .switch__handle{width:12px;height:12px}.switch--sm.is-checked .switch__handle{left:calc(100% - 14px)}.switch--lg .switch__handle{width:24px;height:24px}.switch--lg.is-checked .switch__handle{left:calc(100% - 26px)}.switch__inner{position:relative;display:flex;align-items:center;justify-content:center;height:100%;width:100%;font-size:12px;color:var(--solely-white);transition:all var(--solely-transition-duration) var(--solely-transition-timing)}.switch--lg .switch__inner{font-size:14px}.switch__inner-checked,.switch__inner-unchecked{position:absolute;top:50%;transform:translateY(-50%);font-size:12px;color:var(--solely-white);white-space:nowrap;font-weight:500;transition:opacity var(--solely-transition-duration) var(--solely-transition-timing)}.switch--lg .switch__inner-checked,.switch--lg .switch__inner-unchecked{font-size:14px}.switch--md .switch__inner-checked{left:6px;opacity:0}.switch--md .switch__inner-unchecked{right:6px;opacity:1}.switch--sm .switch__inner-checked{left:4px;font-size:10px;opacity:0}.switch--sm .switch__inner-unchecked{right:4px;font-size:10px;opacity:1}.switch--lg .switch__inner-checked{left:8px;opacity:0}.switch--lg .switch__inner-unchecked{right:8px;opacity:1}.switch.is-checked .switch__inner-checked{opacity:1}.switch.is-checked .switch__inner-unchecked{opacity:0}.switch.is-disabled{opacity:var(--switch-disabled-opacity)}.switch.is-disabled .switch__track{background-color:var(--solely-gray-5)!important}.switch.is-disabled.is-checked .switch__track{background-color:var(--solely-gray-6)!important}.switch__loading-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:10px;height:10px;border:2px solid var(--solely-primary);border-top-color:transparent;border-radius:var(--solely-border-radius-circle);animation:switch-spin 1s linear infinite}.switch--sm .switch__loading-icon{width:8px;height:8px;border-width:1.5px}.switch--lg .switch__loading-icon{width:14px;height:14px;border-width:2.5px}@keyframes switch-spin{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.switch--primary.is-checked .switch__track{background-color:var(--solely-primary)}.switch--primary.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--solely-primary-hover)}.switch--primary .switch__loading-icon{border-color:var(--solely-primary);border-top-color:transparent}.switch--success.is-checked .switch__track{background-color:var(--solely-success)}.switch--success.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--solely-success-hover)}.switch--success .switch__loading-icon{border-color:var(--solely-success);border-top-color:transparent}.switch--warning.is-checked .switch__track{background-color:var(--solely-warning)}.switch--warning.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--solely-warning-hover)}.switch--warning .switch__loading-icon{border-color:var(--solely-warning);border-top-color:transparent}.switch--error.is-checked .switch__track{background-color:var(--solely-error)}.switch--error.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--solely-error-hover)}.switch--error .switch__loading-icon{border-color:var(--solely-error);border-top-color:transparent}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const i="*,*:before,*:after{box-sizing:border-box}:host{display:inline-block;--switch-bg: var(--solely-gray-5);--switch-bg-checked: var(--solely-primary);--switch-bg-hover: var(--solely-gray-6);--switch-bg-checked-hover: var(--solely-primary-hover);--switch-handle-bg: var(--solely-white);--switch-disabled-opacity: .4;--switch-focus-shadow: var(--solely-primary-light)}:host([hidden]){display:none!important}.switch{position:relative;display:inline-flex;align-items:center;cursor:pointer;transition:all var(--solely-transition-duration) var(--solely-transition-timing);outline:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}.switch:focus-visible,.switch.focus-visible{box-shadow:0 0 0 2px var(--switch-focus-shadow);border-radius:100px}.switch--md{min-width:44px;height:22px}.switch--sm{min-width:28px;height:16px}.switch--lg{min-width:60px;height:28px}.switch__track{position:relative;width:100%;height:100%;background-color:var(--switch-bg);border-radius:100px;transition:all var(--solely-transition-duration) var(--solely-transition-timing);overflow:hidden}.switch:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--switch-bg-hover)}.switch.is-checked .switch__track{background-color:var(--switch-bg-checked)}.switch.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--switch-bg-checked-hover)}.switch__handle{position:absolute;top:2px;left:2px;background-color:var(--switch-handle-bg);border-radius:var(--solely-border-radius-circle);box-shadow:
|
|
1
|
+
const i="*,*:before,*:after{box-sizing:border-box}:host{display:inline-block;--switch-bg: var(--solely-gray-5);--switch-bg-checked: var(--solely-primary);--switch-bg-hover: var(--solely-gray-6);--switch-bg-checked-hover: var(--solely-primary-hover);--switch-handle-bg: var(--solely-white);--switch-disabled-opacity: .4;--switch-focus-shadow: var(--solely-primary-light)}:host([hidden]){display:none!important}.switch{position:relative;display:inline-flex;align-items:center;cursor:pointer;transition:all var(--solely-transition-duration) var(--solely-transition-timing);outline:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}.switch:focus-visible,.switch.focus-visible{box-shadow:0 0 0 2px var(--switch-focus-shadow);border-radius:100px}.switch--md{min-width:44px;height:22px}.switch--sm{min-width:28px;height:16px}.switch--lg{min-width:60px;height:28px}.switch__track{position:relative;width:100%;height:100%;background-color:var(--switch-bg);border-radius:100px;transition:all var(--solely-transition-duration) var(--solely-transition-timing);overflow:hidden}.switch:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--switch-bg-hover)}.switch.is-checked .switch__track{background-color:var(--switch-bg-checked)}.switch.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--switch-bg-checked-hover)}.switch__handle{position:absolute;top:2px;left:2px;background-color:var(--switch-handle-bg);border-radius:var(--solely-border-radius-circle);box-shadow:var(--solely-shadow-sm);transition:all var(--solely-transition-duration) var(--solely-transition-timing);z-index:var(--solely-z-index-switch-handle)}.switch--md .switch__handle{width:18px;height:18px}.switch--md.is-checked .switch__handle{left:calc(100% - 20px)}.switch--sm .switch__handle{width:12px;height:12px}.switch--sm.is-checked .switch__handle{left:calc(100% - 14px)}.switch--lg .switch__handle{width:24px;height:24px}.switch--lg.is-checked .switch__handle{left:calc(100% - 26px)}.switch__inner{position:relative;display:flex;align-items:center;justify-content:center;height:100%;width:100%;font-size:12px;color:var(--solely-white);transition:all var(--solely-transition-duration) var(--solely-transition-timing)}.switch--lg .switch__inner{font-size:14px}.switch__inner-checked,.switch__inner-unchecked{position:absolute;top:50%;transform:translateY(-50%);font-size:12px;color:var(--solely-white);white-space:nowrap;font-weight:500;transition:opacity var(--solely-transition-duration) var(--solely-transition-timing)}.switch--lg .switch__inner-checked,.switch--lg .switch__inner-unchecked{font-size:14px}.switch--md .switch__inner-checked{left:6px;opacity:0}.switch--md .switch__inner-unchecked{right:6px;opacity:1}.switch--sm .switch__inner-checked{left:4px;font-size:10px;opacity:0}.switch--sm .switch__inner-unchecked{right:4px;font-size:10px;opacity:1}.switch--lg .switch__inner-checked{left:8px;opacity:0}.switch--lg .switch__inner-unchecked{right:8px;opacity:1}.switch.is-checked .switch__inner-checked{opacity:1}.switch.is-checked .switch__inner-unchecked{opacity:0}.switch.is-disabled{opacity:var(--switch-disabled-opacity)}.switch.is-disabled .switch__track{background-color:var(--solely-gray-5)!important}.switch.is-disabled.is-checked .switch__track{background-color:var(--solely-gray-6)!important}.switch__loading-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:10px;height:10px;border:2px solid var(--solely-primary);border-top-color:transparent;border-radius:var(--solely-border-radius-circle);animation:switch-spin 1s linear infinite}.switch--sm .switch__loading-icon{width:8px;height:8px;border-width:1.5px}.switch--lg .switch__loading-icon{width:14px;height:14px;border-width:2.5px}@keyframes switch-spin{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.switch--primary.is-checked .switch__track{background-color:var(--solely-primary)}.switch--primary.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--solely-primary-hover)}.switch--primary .switch__loading-icon{border-color:var(--solely-primary);border-top-color:transparent}.switch--success.is-checked .switch__track{background-color:var(--solely-success)}.switch--success.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--solely-success-hover)}.switch--success .switch__loading-icon{border-color:var(--solely-success);border-top-color:transparent}.switch--warning.is-checked .switch__track{background-color:var(--solely-warning)}.switch--warning.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--solely-warning-hover)}.switch--warning .switch__loading-icon{border-color:var(--solely-warning);border-top-color:transparent}.switch--error.is-checked .switch__track{background-color:var(--solely-error)}.switch--error.is-checked:hover:not(.is-disabled):not(.is-loading) .switch__track{background-color:var(--solely-error-hover)}.switch--error .switch__loading-icon{border-color:var(--solely-error);border-top-color:transparent}";export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}:host{display:block;width:100%;font-size:var(--solely-font-size-md)}.timeline{--timeline-dot-size: 10px;--timeline-icon-size: 32px;--timeline-tail-color: var(--solely-border-color);--timeline-font-family: var(--solely-font-family);width:100%;font-family:var(--timeline-font-family);font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:1.5714;list-style:none;margin:0;padding:0;box-sizing:border-box}.timeline__list{position:relative;margin:0;padding:0;list-style:none}.timeline__item{position:relative;padding-bottom:20px;margin:0;list-style:none;box-sizing:border-box}.timeline__item:last-child{padding-bottom:0}.timeline__item-wrapper{display:flex;align-items:flex-start}.timeline__item-tail{position:absolute;top:16px;left:7px;width:2px;height:calc(100% - 6px);background:var(--timeline-tail-color);transition:background var(--solely-transition-duration)}.timeline__item:last-child>.timeline__item-tail{display:none}.timeline__item-head{position:relative;flex-shrink:0;width:16px;height:16px;margin-top:3px}.timeline__dot{position:absolute;top:3px;left:3px;width:var(--timeline-dot-size);height:var(--timeline-dot-size);border-radius:50%;border:2px solid var(--solely-primary);background-color:var(--solely-component-bg);background-clip:padding-box;transition:all var(--solely-transition-duration);box-sizing:border-box}.timeline__icon-wrapper{position:absolute;top:0;left:0;width:var(--timeline-icon-size);height:var(--timeline-icon-size);display:inline-flex;align-items:center;justify-content:center;background-color:var(--solely-primary-light);border:none;border-radius:50%;font-size:18px;line-height:1;color:var(--solely-primary);transform:translate(calc(-1 * (var(--timeline-icon-size) - 16px) / 2),calc(-1 * (var(--timeline-icon-size) - 16px) / 2));cursor:default;transition:all var(--solely-transition-duration)}.timeline__item-content{position:relative;flex:1 1 auto;min-width:0;margin-left:var(--solely-spacing-md);word-break:break-word}.timeline__title{display:inline-block;margin-bottom:var(--solely-spacing-xs);font-weight:500;font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:1.5714}.timeline__content-text{font-size:var(--solely-font-size-md);color:var(--solely-text-secondary);line-height:1.5714;word-break:break-word;margin-top:var(--solely-spacing-xs)}.timeline__time{font-size:var(--solely-font-size-md);color:var(--solely-text-tertiary);margin-top:var(--solely-spacing-xs)}.timeline--left .timeline__item-tail{left:7px}.timeline--left .timeline__item-head{left:0}.timeline--left .timeline__item-content{margin-left:var(--solely-spacing-md)}.timeline--right .timeline__item-wrapper{flex-direction:row-reverse}.timeline--right .timeline__item-tail{right:7px;left:auto}.timeline--right .timeline__item-head{right:0;left:auto}.timeline--right .timeline__item-content{margin-left:0;margin-right:var(--solely-spacing-md);text-align:right}.timeline--alternate .timeline__item{min-height:48px;overflow:visible}.timeline--alternate .timeline__item-tail{left:50%;transform:translate(-50%);top:16px}.timeline--alternate .timeline__item-wrapper{display:block;position:relative}.timeline--alternate .timeline__item-head{position:absolute;left:50%;top:0;transform:translate(-50%);z-index:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default="*,*:before,*:after{box-sizing:border-box}:host{display:block;width:100%;font-size:var(--solely-font-size-md)}.timeline{--timeline-dot-size: 10px;--timeline-icon-size: 32px;--timeline-tail-color: var(--solely-border-color);--timeline-font-family: var(--solely-font-family);width:100%;font-family:var(--timeline-font-family);font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:1.5714;list-style:none;margin:0;padding:0;box-sizing:border-box}.timeline__list{position:relative;margin:0;padding:0;list-style:none}.timeline__item{position:relative;padding-bottom:20px;margin:0;list-style:none;box-sizing:border-box}.timeline__item:last-child{padding-bottom:0}.timeline__item-wrapper{display:flex;align-items:flex-start}.timeline__item-tail{position:absolute;top:16px;left:7px;width:2px;height:calc(100% - 6px);background:var(--timeline-tail-color);transition:background var(--solely-transition-duration)}.timeline__item:last-child>.timeline__item-tail{display:none}.timeline__item-head{position:relative;flex-shrink:0;width:16px;height:16px;margin-top:3px}.timeline__dot{position:absolute;top:3px;left:3px;width:var(--timeline-dot-size);height:var(--timeline-dot-size);border-radius:50%;border:2px solid var(--solely-primary);background-color:var(--solely-component-bg);background-clip:padding-box;transition:all var(--solely-transition-duration);box-sizing:border-box}.timeline__icon-wrapper{position:absolute;top:0;left:0;width:var(--timeline-icon-size);height:var(--timeline-icon-size);display:inline-flex;align-items:center;justify-content:center;background-color:var(--solely-primary-light);border:none;border-radius:50%;font-size:18px;line-height:1;color:var(--solely-primary);transform:translate(calc(-1 * (var(--timeline-icon-size) - 16px) / 2),calc(-1 * (var(--timeline-icon-size) - 16px) / 2));cursor:default;transition:all var(--solely-transition-duration)}.timeline__item-content{position:relative;flex:1 1 auto;min-width:0;margin-left:var(--solely-spacing-md);word-break:break-word}.timeline__title{display:inline-block;margin-bottom:var(--solely-spacing-xs);font-weight:500;font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:1.5714}.timeline__content-text{font-size:var(--solely-font-size-md);color:var(--solely-text-secondary);line-height:1.5714;word-break:break-word;margin-top:var(--solely-spacing-xs)}.timeline__time{font-size:var(--solely-font-size-md);color:var(--solely-text-tertiary);margin-top:var(--solely-spacing-xs)}.timeline--left .timeline__item-tail{left:7px}.timeline--left .timeline__item-head{left:0}.timeline--left .timeline__item-content{margin-left:var(--solely-spacing-md)}.timeline--right .timeline__item-wrapper{flex-direction:row-reverse}.timeline--right .timeline__item-tail{right:7px;left:auto}.timeline--right .timeline__item-head{right:0;left:auto}.timeline--right .timeline__item-content{margin-left:0;margin-right:var(--solely-spacing-md);text-align:right}.timeline--alternate .timeline__item{min-height:48px;overflow:visible}.timeline--alternate .timeline__item-tail{left:50%;transform:translate(-50%);top:16px}.timeline--alternate .timeline__item-wrapper{display:block;position:relative}.timeline--alternate .timeline__item-head{position:absolute;left:50%;top:0;transform:translate(-50%);z-index:var(--solely-z-index-timeline-dot);margin-top:3px}.timeline--alternate .timeline__item-content{width:100%;min-height:48px;box-sizing:border-box;margin-left:0;padding-top:3px}.timeline--alternate .timeline__item:nth-child(odd) .timeline__item-content{text-align:right;padding-right:calc(50% + 20px)}.timeline--alternate .timeline__item:nth-child(2n) .timeline__item-content{text-align:left;padding-left:calc(50% + 20px)}.timeline--horizontal-top,.timeline--horizontal-bottom,.timeline--horizontal-alternate{overflow-x:auto;overflow-y:hidden}.timeline--horizontal-top .timeline__list,.timeline--horizontal-bottom .timeline__list,.timeline--horizontal-alternate .timeline__list{display:flex;align-items:stretch}.timeline--horizontal-top .timeline__item,.timeline--horizontal-bottom .timeline__item,.timeline--horizontal-alternate .timeline__item{display:block;position:relative;flex:1 1 0;min-width:100px;max-width:240px;padding:0!important}.timeline--horizontal-top .timeline__item-wrapper,.timeline--horizontal-bottom .timeline__item-wrapper,.timeline--horizontal-alternate .timeline__item-wrapper{display:block;width:100%;height:100%}.timeline--horizontal-top .timeline__item-head,.timeline--horizontal-bottom .timeline__item-head,.timeline--horizontal-alternate .timeline__item-head{position:absolute;left:50%;transform:translate(-50%);z-index:var(--solely-z-index-timeline-dot);margin:0;width:16px;height:16px}.timeline--horizontal-top .timeline__dot,.timeline--horizontal-bottom .timeline__dot,.timeline--horizontal-alternate .timeline__dot{position:absolute;top:3px;left:3px}.timeline--horizontal-top .timeline__icon-wrapper,.timeline--horizontal-bottom .timeline__icon-wrapper,.timeline--horizontal-alternate .timeline__icon-wrapper{position:absolute;top:0;left:0;transform:translate(-8px,-8px)}.timeline--horizontal-top .timeline__item-tail,.timeline--horizontal-bottom .timeline__item-tail,.timeline--horizontal-alternate .timeline__item-tail{position:absolute;left:calc(50% + 5px);right:calc(-50% + 5px);width:auto;height:2px}.timeline--horizontal-top .timeline__item:last-child>.timeline__item-tail,.timeline--horizontal-bottom .timeline__item:last-child>.timeline__item-tail,.timeline--horizontal-alternate .timeline__item:last-child>.timeline__item-tail{display:none!important}.timeline--horizontal-top .timeline__item-content,.timeline--horizontal-bottom .timeline__item-content,.timeline--horizontal-alternate .timeline__item-content{text-align:center;margin-left:0;padding:var(--solely-spacing-sm) var(--solely-spacing-md)}.timeline--horizontal-top .timeline__item{min-height:80px}.timeline--horizontal-top .timeline__item-head{top:var(--solely-spacing-sm)}.timeline--horizontal-top .timeline__item-tail{top:15px}.timeline--horizontal-top .timeline__item-content{padding-top:36px;padding-bottom:var(--solely-spacing-xs)}.timeline--horizontal-bottom .timeline__item{min-height:80px}.timeline--horizontal-bottom .timeline__item-head{bottom:var(--solely-spacing-sm);top:auto}.timeline--horizontal-bottom .timeline__item-tail{bottom:15px;top:auto}.timeline--horizontal-bottom .timeline__item-content{padding-bottom:36px;padding-top:var(--solely-spacing-xs)}.timeline--horizontal-alternate .timeline__item{min-height:120px}.timeline--horizontal-alternate .timeline__item-head{top:50%;transform:translate(-50%,-50%)}.timeline--horizontal-alternate .timeline__item-tail{top:50%;transform:translateY(-50%)}.timeline--horizontal-alternate .timeline__item:nth-child(odd) .timeline__item-content{padding-top:100px;padding-bottom:var(--solely-spacing-xs)}.timeline--horizontal-alternate .timeline__item:nth-child(2n) .timeline__item-content{padding-bottom:0;padding-top:var(--solely-spacing-xs)}.timeline__item--left .timeline__item-content{text-align:right;padding-right:calc(50% + 20px);margin-left:0}.timeline__item--right .timeline__item-content{text-align:left;padding-left:calc(50% + 20px);margin-left:0}.timeline__item--top .timeline__item-content{padding-top:calc(50% + 20px);padding-bottom:var(--solely-spacing-xs)}.timeline__item--bottom .timeline__item-content{padding-bottom:calc(50% + 20px);padding-top:var(--solely-spacing-xs)}.timeline__item--pending>.timeline__item-tail{display:block!important;background-color:transparent!important;background-image:repeating-linear-gradient(to bottom,var(--timeline-tail-color) 0,var(--timeline-tail-color) 4px,transparent 4px,transparent 8px)!important;animation:timeline-tail-flow 1s linear infinite}.timeline--horizontal-top .timeline__item--pending>.timeline__item-tail,.timeline--horizontal-bottom .timeline__item--pending>.timeline__item-tail,.timeline--horizontal-alternate .timeline__item--pending>.timeline__item-tail{background-image:repeating-linear-gradient(90deg,rgba(5,5,5,.15) 0,rgba(5,5,5,.15) 4px,transparent 4px,transparent 8px)!important}.timeline__item--pending .timeline__dot{background-color:transparent!important;border-color:var(--solely-primary)!important;border-style:dashed;animation:timeline-pending-pulse 1.5s ease-in-out infinite}.timeline__item--pending .timeline__item-content{color:var(--solely-text-tertiary)}.timeline__dot--blue{border-color:var(--solely-primary)!important}.timeline__dot--green{border-color:var(--solely-success)!important}.timeline__dot--red{border-color:var(--solely-error)!important}.timeline__dot--orange{border-color:var(--solely-warning)!important}.timeline__dot--gray{border-color:var(--solely-border-color)!important}.timeline--filled .timeline__dot{border-width:0!important;background-clip:border-box}.timeline--filled .timeline__dot--blue{background-color:var(--solely-primary)!important}.timeline--filled .timeline__dot--green{background-color:var(--solely-success)!important}.timeline--filled .timeline__dot--red{background-color:var(--solely-error)!important}.timeline--filled .timeline__dot--orange{background-color:var(--solely-warning)!important}.timeline--filled .timeline__dot--gray{background-color:var(--solely-border-color)!important}.timeline__item--loading .timeline__dot{border-color:var(--solely-primary) var(--solely-primary-light) var(--solely-primary) var(--solely-primary-light);animation:timeline-loading-spin .8s linear infinite}@keyframes timeline-tail-flow{0%{background-position:0 0}to{background-position:0 16px}}@keyframes timeline-pending-pulse{0%,to{opacity:1}50%{opacity:.45}}@keyframes timeline-loading-spin{to{transform:rotate(360deg)}}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const i="*,*:before,*:after{box-sizing:border-box}:host{display:block;width:100%;font-size:var(--solely-font-size-md)}.timeline{--timeline-dot-size: 10px;--timeline-icon-size: 32px;--timeline-tail-color: var(--solely-border-color);--timeline-font-family: var(--solely-font-family);width:100%;font-family:var(--timeline-font-family);font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:1.5714;list-style:none;margin:0;padding:0;box-sizing:border-box}.timeline__list{position:relative;margin:0;padding:0;list-style:none}.timeline__item{position:relative;padding-bottom:20px;margin:0;list-style:none;box-sizing:border-box}.timeline__item:last-child{padding-bottom:0}.timeline__item-wrapper{display:flex;align-items:flex-start}.timeline__item-tail{position:absolute;top:16px;left:7px;width:2px;height:calc(100% - 6px);background:var(--timeline-tail-color);transition:background var(--solely-transition-duration)}.timeline__item:last-child>.timeline__item-tail{display:none}.timeline__item-head{position:relative;flex-shrink:0;width:16px;height:16px;margin-top:3px}.timeline__dot{position:absolute;top:3px;left:3px;width:var(--timeline-dot-size);height:var(--timeline-dot-size);border-radius:50%;border:2px solid var(--solely-primary);background-color:var(--solely-component-bg);background-clip:padding-box;transition:all var(--solely-transition-duration);box-sizing:border-box}.timeline__icon-wrapper{position:absolute;top:0;left:0;width:var(--timeline-icon-size);height:var(--timeline-icon-size);display:inline-flex;align-items:center;justify-content:center;background-color:var(--solely-primary-light);border:none;border-radius:50%;font-size:18px;line-height:1;color:var(--solely-primary);transform:translate(calc(-1 * (var(--timeline-icon-size) - 16px) / 2),calc(-1 * (var(--timeline-icon-size) - 16px) / 2));cursor:default;transition:all var(--solely-transition-duration)}.timeline__item-content{position:relative;flex:1 1 auto;min-width:0;margin-left:var(--solely-spacing-md);word-break:break-word}.timeline__title{display:inline-block;margin-bottom:var(--solely-spacing-xs);font-weight:500;font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:1.5714}.timeline__content-text{font-size:var(--solely-font-size-md);color:var(--solely-text-secondary);line-height:1.5714;word-break:break-word;margin-top:var(--solely-spacing-xs)}.timeline__time{font-size:var(--solely-font-size-md);color:var(--solely-text-tertiary);margin-top:var(--solely-spacing-xs)}.timeline--left .timeline__item-tail{left:7px}.timeline--left .timeline__item-head{left:0}.timeline--left .timeline__item-content{margin-left:var(--solely-spacing-md)}.timeline--right .timeline__item-wrapper{flex-direction:row-reverse}.timeline--right .timeline__item-tail{right:7px;left:auto}.timeline--right .timeline__item-head{right:0;left:auto}.timeline--right .timeline__item-content{margin-left:0;margin-right:var(--solely-spacing-md);text-align:right}.timeline--alternate .timeline__item{min-height:48px;overflow:visible}.timeline--alternate .timeline__item-tail{left:50%;transform:translate(-50%);top:16px}.timeline--alternate .timeline__item-wrapper{display:block;position:relative}.timeline--alternate .timeline__item-head{position:absolute;left:50%;top:0;transform:translate(-50%);z-index:
|
|
1
|
+
const i="*,*:before,*:after{box-sizing:border-box}:host{display:block;width:100%;font-size:var(--solely-font-size-md)}.timeline{--timeline-dot-size: 10px;--timeline-icon-size: 32px;--timeline-tail-color: var(--solely-border-color);--timeline-font-family: var(--solely-font-family);width:100%;font-family:var(--timeline-font-family);font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:1.5714;list-style:none;margin:0;padding:0;box-sizing:border-box}.timeline__list{position:relative;margin:0;padding:0;list-style:none}.timeline__item{position:relative;padding-bottom:20px;margin:0;list-style:none;box-sizing:border-box}.timeline__item:last-child{padding-bottom:0}.timeline__item-wrapper{display:flex;align-items:flex-start}.timeline__item-tail{position:absolute;top:16px;left:7px;width:2px;height:calc(100% - 6px);background:var(--timeline-tail-color);transition:background var(--solely-transition-duration)}.timeline__item:last-child>.timeline__item-tail{display:none}.timeline__item-head{position:relative;flex-shrink:0;width:16px;height:16px;margin-top:3px}.timeline__dot{position:absolute;top:3px;left:3px;width:var(--timeline-dot-size);height:var(--timeline-dot-size);border-radius:50%;border:2px solid var(--solely-primary);background-color:var(--solely-component-bg);background-clip:padding-box;transition:all var(--solely-transition-duration);box-sizing:border-box}.timeline__icon-wrapper{position:absolute;top:0;left:0;width:var(--timeline-icon-size);height:var(--timeline-icon-size);display:inline-flex;align-items:center;justify-content:center;background-color:var(--solely-primary-light);border:none;border-radius:50%;font-size:18px;line-height:1;color:var(--solely-primary);transform:translate(calc(-1 * (var(--timeline-icon-size) - 16px) / 2),calc(-1 * (var(--timeline-icon-size) - 16px) / 2));cursor:default;transition:all var(--solely-transition-duration)}.timeline__item-content{position:relative;flex:1 1 auto;min-width:0;margin-left:var(--solely-spacing-md);word-break:break-word}.timeline__title{display:inline-block;margin-bottom:var(--solely-spacing-xs);font-weight:500;font-size:var(--solely-font-size-md);color:var(--solely-text-primary);line-height:1.5714}.timeline__content-text{font-size:var(--solely-font-size-md);color:var(--solely-text-secondary);line-height:1.5714;word-break:break-word;margin-top:var(--solely-spacing-xs)}.timeline__time{font-size:var(--solely-font-size-md);color:var(--solely-text-tertiary);margin-top:var(--solely-spacing-xs)}.timeline--left .timeline__item-tail{left:7px}.timeline--left .timeline__item-head{left:0}.timeline--left .timeline__item-content{margin-left:var(--solely-spacing-md)}.timeline--right .timeline__item-wrapper{flex-direction:row-reverse}.timeline--right .timeline__item-tail{right:7px;left:auto}.timeline--right .timeline__item-head{right:0;left:auto}.timeline--right .timeline__item-content{margin-left:0;margin-right:var(--solely-spacing-md);text-align:right}.timeline--alternate .timeline__item{min-height:48px;overflow:visible}.timeline--alternate .timeline__item-tail{left:50%;transform:translate(-50%);top:16px}.timeline--alternate .timeline__item-wrapper{display:block;position:relative}.timeline--alternate .timeline__item-head{position:absolute;left:50%;top:0;transform:translate(-50%);z-index:var(--solely-z-index-timeline-dot);margin-top:3px}.timeline--alternate .timeline__item-content{width:100%;min-height:48px;box-sizing:border-box;margin-left:0;padding-top:3px}.timeline--alternate .timeline__item:nth-child(odd) .timeline__item-content{text-align:right;padding-right:calc(50% + 20px)}.timeline--alternate .timeline__item:nth-child(2n) .timeline__item-content{text-align:left;padding-left:calc(50% + 20px)}.timeline--horizontal-top,.timeline--horizontal-bottom,.timeline--horizontal-alternate{overflow-x:auto;overflow-y:hidden}.timeline--horizontal-top .timeline__list,.timeline--horizontal-bottom .timeline__list,.timeline--horizontal-alternate .timeline__list{display:flex;align-items:stretch}.timeline--horizontal-top .timeline__item,.timeline--horizontal-bottom .timeline__item,.timeline--horizontal-alternate .timeline__item{display:block;position:relative;flex:1 1 0;min-width:100px;max-width:240px;padding:0!important}.timeline--horizontal-top .timeline__item-wrapper,.timeline--horizontal-bottom .timeline__item-wrapper,.timeline--horizontal-alternate .timeline__item-wrapper{display:block;width:100%;height:100%}.timeline--horizontal-top .timeline__item-head,.timeline--horizontal-bottom .timeline__item-head,.timeline--horizontal-alternate .timeline__item-head{position:absolute;left:50%;transform:translate(-50%);z-index:var(--solely-z-index-timeline-dot);margin:0;width:16px;height:16px}.timeline--horizontal-top .timeline__dot,.timeline--horizontal-bottom .timeline__dot,.timeline--horizontal-alternate .timeline__dot{position:absolute;top:3px;left:3px}.timeline--horizontal-top .timeline__icon-wrapper,.timeline--horizontal-bottom .timeline__icon-wrapper,.timeline--horizontal-alternate .timeline__icon-wrapper{position:absolute;top:0;left:0;transform:translate(-8px,-8px)}.timeline--horizontal-top .timeline__item-tail,.timeline--horizontal-bottom .timeline__item-tail,.timeline--horizontal-alternate .timeline__item-tail{position:absolute;left:calc(50% + 5px);right:calc(-50% + 5px);width:auto;height:2px}.timeline--horizontal-top .timeline__item:last-child>.timeline__item-tail,.timeline--horizontal-bottom .timeline__item:last-child>.timeline__item-tail,.timeline--horizontal-alternate .timeline__item:last-child>.timeline__item-tail{display:none!important}.timeline--horizontal-top .timeline__item-content,.timeline--horizontal-bottom .timeline__item-content,.timeline--horizontal-alternate .timeline__item-content{text-align:center;margin-left:0;padding:var(--solely-spacing-sm) var(--solely-spacing-md)}.timeline--horizontal-top .timeline__item{min-height:80px}.timeline--horizontal-top .timeline__item-head{top:var(--solely-spacing-sm)}.timeline--horizontal-top .timeline__item-tail{top:15px}.timeline--horizontal-top .timeline__item-content{padding-top:36px;padding-bottom:var(--solely-spacing-xs)}.timeline--horizontal-bottom .timeline__item{min-height:80px}.timeline--horizontal-bottom .timeline__item-head{bottom:var(--solely-spacing-sm);top:auto}.timeline--horizontal-bottom .timeline__item-tail{bottom:15px;top:auto}.timeline--horizontal-bottom .timeline__item-content{padding-bottom:36px;padding-top:var(--solely-spacing-xs)}.timeline--horizontal-alternate .timeline__item{min-height:120px}.timeline--horizontal-alternate .timeline__item-head{top:50%;transform:translate(-50%,-50%)}.timeline--horizontal-alternate .timeline__item-tail{top:50%;transform:translateY(-50%)}.timeline--horizontal-alternate .timeline__item:nth-child(odd) .timeline__item-content{padding-top:100px;padding-bottom:var(--solely-spacing-xs)}.timeline--horizontal-alternate .timeline__item:nth-child(2n) .timeline__item-content{padding-bottom:0;padding-top:var(--solely-spacing-xs)}.timeline__item--left .timeline__item-content{text-align:right;padding-right:calc(50% + 20px);margin-left:0}.timeline__item--right .timeline__item-content{text-align:left;padding-left:calc(50% + 20px);margin-left:0}.timeline__item--top .timeline__item-content{padding-top:calc(50% + 20px);padding-bottom:var(--solely-spacing-xs)}.timeline__item--bottom .timeline__item-content{padding-bottom:calc(50% + 20px);padding-top:var(--solely-spacing-xs)}.timeline__item--pending>.timeline__item-tail{display:block!important;background-color:transparent!important;background-image:repeating-linear-gradient(to bottom,var(--timeline-tail-color) 0,var(--timeline-tail-color) 4px,transparent 4px,transparent 8px)!important;animation:timeline-tail-flow 1s linear infinite}.timeline--horizontal-top .timeline__item--pending>.timeline__item-tail,.timeline--horizontal-bottom .timeline__item--pending>.timeline__item-tail,.timeline--horizontal-alternate .timeline__item--pending>.timeline__item-tail{background-image:repeating-linear-gradient(90deg,rgba(5,5,5,.15) 0,rgba(5,5,5,.15) 4px,transparent 4px,transparent 8px)!important}.timeline__item--pending .timeline__dot{background-color:transparent!important;border-color:var(--solely-primary)!important;border-style:dashed;animation:timeline-pending-pulse 1.5s ease-in-out infinite}.timeline__item--pending .timeline__item-content{color:var(--solely-text-tertiary)}.timeline__dot--blue{border-color:var(--solely-primary)!important}.timeline__dot--green{border-color:var(--solely-success)!important}.timeline__dot--red{border-color:var(--solely-error)!important}.timeline__dot--orange{border-color:var(--solely-warning)!important}.timeline__dot--gray{border-color:var(--solely-border-color)!important}.timeline--filled .timeline__dot{border-width:0!important;background-clip:border-box}.timeline--filled .timeline__dot--blue{background-color:var(--solely-primary)!important}.timeline--filled .timeline__dot--green{background-color:var(--solely-success)!important}.timeline--filled .timeline__dot--red{background-color:var(--solely-error)!important}.timeline--filled .timeline__dot--orange{background-color:var(--solely-warning)!important}.timeline--filled .timeline__dot--gray{background-color:var(--solely-border-color)!important}.timeline__item--loading .timeline__dot{border-color:var(--solely-primary) var(--solely-primary-light) var(--solely-primary) var(--solely-primary-light);animation:timeline-loading-spin .8s linear infinite}@keyframes timeline-tail-flow{0%{background-position:0 0}to{background-position:0 16px}}@keyframes timeline-pending-pulse{0%,to{opacity:1}50%{opacity:.45}}@keyframes timeline-loading-spin{to{transform:rotate(360deg)}}";export{i as default};
|
|
@@ -160,9 +160,19 @@
|
|
|
160
160
|
--solely-z-index-table-fixed: 2;
|
|
161
161
|
--solely-z-index-table-header: 3;
|
|
162
162
|
--solely-z-index-switch-handle: 2;
|
|
163
|
-
--solely-z-index-timeline-dot:
|
|
163
|
+
--solely-z-index-timeline-dot: 2;
|
|
164
|
+
--solely-z-index-timeline-tail: 1;
|
|
165
|
+
--solely-z-index-steps-icon: 1;
|
|
166
|
+
--solely-z-index-steps-tail: 0;
|
|
164
167
|
--solely-z-index-slider-handle: 1;
|
|
165
168
|
|
|
169
|
+
/* ==================== 阴影 ==================== */
|
|
170
|
+
--solely-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
171
|
+
--solely-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
172
|
+
--solely-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
173
|
+
--solely-shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.2);
|
|
174
|
+
--solely-shadow-primary: 0 0 0 4px rgba(24, 144, 255, 0.2);
|
|
175
|
+
|
|
166
176
|
/* ==================== 遮罩层 ==================== */
|
|
167
177
|
--solely-mask-bg: rgba(0, 0, 0, 0.45);
|
|
168
178
|
|
package/package.json
CHANGED