@mediquo/elements 0.8.2 → 0.9.0
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/README.md +36 -1
- package/dist/chunks/appointment-card-skeleton-B_rJNvU9.js +1 -0
- package/dist/chunks/{documentation-view-BbMbGneD.js → documentation-view-DEXxBFrV.js} +1 -1
- package/dist/chunks/{index-uHvVQMNc.js → index-Btj1mwcE.js} +1 -1
- package/dist/chunks/next-appointment-card-6uXWTDx5.js +1 -0
- package/dist/chunks/next-appointment-card-Bc65OZ1_.d.ts +61 -0
- package/dist/chunks/{telemetry-client-7fvNqUSU.js → telemetry-client-BdPx4SXu.js} +1 -1
- package/dist/env.js +1 -1
- package/dist/mq-appointment-documentation.js +1 -1
- package/dist/mq-dashboard.js +1 -1
- package/dist/mq-documents.d.ts +4 -8
- package/dist/mq-documents.js +1 -1
- package/dist/mq-my-appointments.d.ts +2 -2
- package/dist/mq-my-appointments.js +1 -1
- package/dist/mq-next-appointments.d.ts +8 -47
- package/dist/mq-next-appointments.js +1 -1
- package/dist/mq-recent-documents.js +1 -1
- package/dist/mq-schedule-success.js +1 -1
- package/dist/mq-schedule.d.ts +12 -1
- package/dist/mq-schedule.js +1 -1
- package/dist/mq-support-chat.d.ts +1 -0
- package/dist/mq-support-chat.js +1 -1
- package/dist/mq-videocall.js +1 -1
- package/dist/react/mq-appointment-documentation.js +1 -1
- package/dist/react/mq-chat-room.js +1 -1
- package/dist/react/mq-dashboard.js +1 -1
- package/dist/react/mq-documents-page.d.ts +0 -1
- package/dist/react/mq-documents-page.js +1 -1
- package/dist/react/mq-documents.d.ts +0 -1
- package/dist/react/mq-documents.js +1 -1
- package/dist/react/mq-my-appointments.d.ts +1 -1
- package/dist/react/mq-my-appointments.js +1 -1
- package/dist/react/mq-next-appointments.d.ts +2 -0
- package/dist/react/mq-next-appointments.js +1 -1
- package/dist/react/mq-recent-documents.js +1 -1
- package/dist/react/mq-schedule-success.js +1 -1
- package/dist/react/mq-schedule.d.ts +4 -0
- package/dist/react/mq-schedule.js +1 -1
- package/dist/react/mq-support-chat.d.ts +3 -0
- package/dist/react/mq-support-chat.js +1 -1
- package/dist/react/mq-videocall.js +1 -1
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +1 -1
- package/dist/ui/icons/alert-circle-icon.js +1 -1
- package/dist/ui/icons/annotation-question-icon.d.ts +1 -1
- package/dist/ui/icons/annotation-question-icon.js +1 -1
- package/dist/ui/icons/arrow-narrow-left-icon.js +1 -1
- package/dist/ui/icons/arrow-right-icon.js +1 -1
- package/dist/ui/icons/briefcase-icon.d.ts +1 -1
- package/dist/ui/icons/briefcase-icon.js +1 -1
- package/dist/ui/icons/calendar-icon.d.ts +1 -1
- package/dist/ui/icons/calendar-icon.js +1 -1
- package/dist/ui/icons/chat-bubble-icon.d.ts +1 -1
- package/dist/ui/icons/chat-bubble-icon.js +1 -1
- package/dist/ui/icons/check-double-icon.js +1 -1
- package/dist/ui/icons/check-icon.js +1 -1
- package/dist/ui/icons/chevron-down-icon.js +1 -1
- package/dist/ui/icons/chevron-left-icon.js +1 -1
- package/dist/ui/icons/chevron-right-icon.js +1 -1
- package/dist/ui/icons/clock-icon.d.ts +1 -1
- package/dist/ui/icons/clock-icon.js +1 -1
- package/dist/ui/icons/dots-horizontal-icon.js +1 -1
- package/dist/ui/icons/download-02-icon.d.ts +1 -1
- package/dist/ui/icons/download-02-icon.js +1 -1
- package/dist/ui/icons/download-icon.d.ts +1 -1
- package/dist/ui/icons/download-icon.js +1 -1
- package/dist/ui/icons/file-icon.d.ts +1 -1
- package/dist/ui/icons/file-icon.js +1 -1
- package/dist/ui/icons/heartbeat-icon.js +1 -1
- package/dist/ui/icons/info-circle-outine-icon.d.ts +1 -1
- package/dist/ui/icons/info-circle-outine-icon.js +1 -1
- package/dist/ui/icons/message-bubble-icon.d.ts +1 -1
- package/dist/ui/icons/message-bubble-icon.js +1 -1
- package/dist/ui/icons/message-square-icon.d.ts +1 -1
- package/dist/ui/icons/message-square-icon.js +1 -1
- package/dist/ui/icons/mic-icon.d.ts +1 -1
- package/dist/ui/icons/mic-icon.js +1 -1
- package/dist/ui/icons/mic-off-icon.d.ts +1 -1
- package/dist/ui/icons/mic-off-icon.js +1 -1
- package/dist/ui/icons/phone-icon.d.ts +1 -1
- package/dist/ui/icons/phone-icon.js +1 -1
- package/dist/ui/icons/tag-icon.d.ts +1 -1
- package/dist/ui/icons/tag-icon.js +1 -1
- package/dist/ui/icons/time-left-icon.js +1 -1
- package/dist/ui/icons/types.d.ts +2 -1
- package/dist/ui/icons/types.js +1 -1
- package/dist/ui/icons/upload-icon.d.ts +1 -1
- package/dist/ui/icons/upload-icon.js +1 -1
- package/dist/ui/icons/video-icon.d.ts +1 -1
- package/dist/ui/icons/video-icon.js +1 -1
- package/dist/ui/icons/video-off-icon.d.ts +1 -1
- package/dist/ui/icons/video-off-icon.js +1 -1
- package/dist/ui/icons/x-icon.d.ts +1 -1
- package/dist/ui/icons/x-icon.js +1 -1
- package/dist/ui/mq-callout.js +1 -1
- package/dist/ui/mq-dialog.js +1 -1
- package/dist/ui/mq-input.d.ts +1 -1
- package/dist/ui/mq-select.d.ts +1 -1
- package/dist/ui/mq-tabs.d.ts +27 -7
- package/dist/ui/mq-tabs.js +79 -1
- package/dist/ui/mq-text-button.js +1 -1
- package/dist/ui/mq-textarea.d.ts +1 -1
- package/dist/ui/mq-unread-badge.js +1 -1
- package/package.json +2 -1
- package/dist/chunks/appointment-card-skeleton-D8gypuKh.js +0 -1
- package/dist/ui/icons/check-circle-icon.d.ts +0 -5
- package/dist/ui/icons/check-circle-icon.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as
|
|
1
|
+
import{x as r}from"../../chunks/lit-element-DiWJYFwC.js";function e(){return r`<svg xmlns="http://www.w3.org/2000/svg" width="${139}" height="${136}" viewBox="0 0 ${139} ${136}" fill="none" aria-hidden="true"><circle cx="60.5" cy="76.5" r="51.5" style="fill:var(--color-neutrals-background-weak)"/><path d="M60.5 25A51.5 51.5 0 0 1 102.2 106.6L60.5 76.5Z" style="fill:var(--color-white)"/><circle cx="60.5" cy="76.5" r="51.5" style="stroke:var(--color-border-subtle)" stroke-width="2"/><path d="M60.5 76.5L95.3 56.4" style="stroke:var(--color-text-icons--secondary)" stroke-width="3" stroke-linecap="round"/><circle cx="60.5" cy="76.5" r="4" style="fill:var(--color-text-icons--secondary)"/><circle cx="19.5" cy="116.5" r="17.5" style="fill:var(--color-white);stroke:var(--color-neutrals-background-weak)" stroke-width="4"/><circle cx="19.5" cy="116.5" r="13" style="fill:var(--color-text-icons--secondary)"/><path d="M19.5 110.5V117.5M19.5 122.2V122.3" style="stroke:var(--color-white)" stroke-width="2.5" stroke-linecap="round"/><path d="M104.5 12.5L106.6 18.4L112.5 20.5L106.6 22.6L104.5 28.5L102.4 22.6L96.5 20.5L102.4 18.4Z" style="fill:var(--color-neutrals-background-weak)"/><path d="M122 100L123.4 104.1L127.5 105.5L123.4 106.9L122 111L120.6 106.9L116.5 105.5L120.6 104.1Z" style="fill:var(--color-neutrals-background-weak)"/><circle cx="14" cy="30" r="4" style="fill:var(--color-neutrals-background-weak)"/></svg>`}export{e as timeLeftIcon};
|
package/dist/ui/icons/types.d.ts
CHANGED
package/dist/ui/icons/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const o={size:24,color:"currentColor",className:""};export{o as defaultIconProps};
|
|
1
|
+
const o={size:24,color:"currentColor",className:""},r=1.5;export{r as ICON_STROKE_WIDTH,o as defaultIconProps};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
declare function uploadIcon({ size, color, }?: IconProps): lit_html.TemplateResult<1>;
|
|
4
|
+
declare function uploadIcon({ size, color, className, }?: IconProps): lit_html.TemplateResult<1>;
|
|
5
5
|
|
|
6
6
|
export { uploadIcon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as e}from"../../chunks/lit-element-DiWJYFwC.js";import{defaultIconProps as
|
|
1
|
+
import{x as e}from"../../chunks/lit-element-DiWJYFwC.js";import{o}from"../../chunks/if-defined-BYeVdwgd.js";import{defaultIconProps as s,ICON_STROKE_WIDTH as t}from"./types.js";function r({size:r=s.size,color:i=s.color,className:n=s.className}={}){return e`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${r}" viewBox="0 0 24 24" fill="none" stroke="${i}" stroke-width="${t}" stroke-linecap="round" stroke-linejoin="round" class="${o(n)}" aria-hidden="true"><path d="M12 15.5V3"/><path d="m7.5 7.5 4.5-4.5 4.5 4.5"/><path d="M3.5 15v4A2.5 2.5 0 0 0 6 21.5h12a2.5 2.5 0 0 0 2.5-2.5v-4"/></svg>`}export{r as uploadIcon};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
declare function videoIcon({ size, color, }?: IconProps): lit_html.TemplateResult<1>;
|
|
4
|
+
declare function videoIcon({ size, color, className, }?: IconProps): lit_html.TemplateResult<1>;
|
|
5
5
|
|
|
6
6
|
export { videoIcon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as
|
|
1
|
+
import{x as e}from"../../chunks/lit-element-DiWJYFwC.js";import{o as t}from"../../chunks/if-defined-BYeVdwgd.js";import{defaultIconProps as o,ICON_STROKE_WIDTH as r}from"./types.js";function s({size:s=o.size,color:i=o.color,className:n=o.className}={}){return e`<svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${s}" viewBox="0 0 24 24" fill="none" stroke="${i}" stroke-width="${r}" stroke-linecap="round" stroke-linejoin="round" class="${t(n)}" aria-hidden="true"><rect x="2.5" y="6" width="13" height="12" rx="2.5"/><path d="m15.5 10.5 4.8-3a.6.6 0 0 1 .95.5v7a.6.6 0 0 1-.95.5l-4.8-3Z"/></svg>`}export{s as videoIcon};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
declare function videoOffIcon({ size, color, }?: IconProps): lit_html.TemplateResult<1>;
|
|
4
|
+
declare function videoOffIcon({ size, color, className, }?: IconProps): lit_html.TemplateResult<1>;
|
|
5
5
|
|
|
6
6
|
export { videoOffIcon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as
|
|
1
|
+
import{x as e}from"../../chunks/lit-element-DiWJYFwC.js";import{o}from"../../chunks/if-defined-BYeVdwgd.js";import{defaultIconProps as s,ICON_STROKE_WIDTH as t}from"./types.js";function r({size:r=s.size,color:i=s.color,className:n=s.className}={}){return e`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${r}" viewBox="0 0 24 24" fill="none" stroke="${i}" stroke-width="${t}" stroke-linecap="round" stroke-linejoin="round" class="${o(n)}" aria-hidden="true"><path d="m3 3 18 18"/><path d="M10.5 6h2.5A2.5 2.5 0 0 1 15.5 8.5v2l4.8-3a.6.6 0 0 1 .95.5v7"/><path d="M15.5 15.5V17a2.5 2.5 0 0 1-2.5 2.5H5A2.5 2.5 0 0 1 2.5 17V8.5A2.5 2.5 0 0 1 5 6h1"/></svg>`}export{r as videoOffIcon};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
declare function xIcon({ size, color, }?: IconProps): lit_html.TemplateResult<1>;
|
|
4
|
+
declare function xIcon({ size, color, className, }?: IconProps): lit_html.TemplateResult<1>;
|
|
5
5
|
|
|
6
6
|
export { xIcon };
|
package/dist/ui/icons/x-icon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as
|
|
1
|
+
import{x as e}from"../../chunks/lit-element-DiWJYFwC.js";import{o}from"../../chunks/if-defined-BYeVdwgd.js";import{defaultIconProps as s,ICON_STROKE_WIDTH as t}from"./types.js";function r({size:r=s.size,color:i=s.color,className:n=s.className}={}){return e`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${r}" viewBox="0 0 24 24" fill="none" stroke="${i}" stroke-width="${t}" stroke-linecap="round" stroke-linejoin="round" class="${o(n)}" aria-hidden="true"><path d="m6 6 12 12"/><path d="m18 6-12 12"/></svg>`}export{r as xIcon};
|
package/dist/ui/mq-callout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,c as t}from"../chunks/custom-element-D2ziPxYE.js";import{i as n,a as r,E as e,x as i}from"../chunks/lit-element-DiWJYFwC.js";import{n as s}from"../chunks/property-scuRaFcM.js";import{infoCircleOutineIcon as a}from"./icons/info-circle-outine-icon.js";import"./icons/types.js";const c=n`:host{display:block}.container{align-items:flex-start;background-color:var(--color-neutrals-background-disabled);border-radius:var(--border-radius-sm);box-sizing:border-box;color:var(--color-neutrals-text-default);display:flex;font-family:var(--font-body);font-size:var(--text-sm);gap:var(--sp-2);line-height:var(--text-sm--line-height);margin:0;padding:var(--sp-4) var(--sp-2);width:100%}:host([noPadding]) .container{padding:0}:host([background=solid]) .container{background-color:var(--color-background)}.icon{align-items:center;display:flex;justify-content:center;max-height:100%;min-width:var(--size-6)}.content{display:block;flex:1;margin:0}.content ::slotted(*){margin:0}`;let l=class MqCallout extends r{constructor(){super(...arguments),this.background="default",this.noPadding=!1}static{this.styles=[c]}render(){const o=this.renderVariantIcon(),t=this.hasCustomIcon(),n=Boolean(o||t);return i`<div class="container">${n?i`<span class="icon">${o??i`<slot name="icon"></slot>`}</span>`:e}<div class="content"><slot></slot></div></div>`}hasCustomIcon(){return Boolean(this.querySelector('[slot="icon"]'))}renderVariantIcon(){return"info"===this.variant?a({size:24,color:"var(--color-primary-icon-link)"}):null}};o([s({type:String,reflect:!0})],l.prototype,"background",void 0),o([s({type:String,reflect:!0})],l.prototype,"variant",void 0),o([s({type:Boolean,reflect:!0})],l.prototype,"noPadding",void 0),l=o([t("mq-callout")],l);export{l as MqCallout};
|
|
1
|
+
import{_ as o,c as t}from"../chunks/custom-element-D2ziPxYE.js";import{i as n,a as r,E as e,x as i}from"../chunks/lit-element-DiWJYFwC.js";import{n as s}from"../chunks/property-scuRaFcM.js";import{infoCircleOutineIcon as a}from"./icons/info-circle-outine-icon.js";import"../chunks/if-defined-BYeVdwgd.js";import"./icons/types.js";const c=n`:host{display:block}.container{align-items:flex-start;background-color:var(--color-neutrals-background-disabled);border-radius:var(--border-radius-sm);box-sizing:border-box;color:var(--color-neutrals-text-default);display:flex;font-family:var(--font-body);font-size:var(--text-sm);gap:var(--sp-2);line-height:var(--text-sm--line-height);margin:0;padding:var(--sp-4) var(--sp-2);width:100%}:host([noPadding]) .container{padding:0}:host([background=solid]) .container{background-color:var(--color-background)}.icon{align-items:center;display:flex;justify-content:center;max-height:100%;min-width:var(--size-6)}.content{display:block;flex:1;margin:0}.content ::slotted(*){margin:0}`;let l=class MqCallout extends r{constructor(){super(...arguments),this.background="default",this.noPadding=!1}static{this.styles=[c]}render(){const o=this.renderVariantIcon(),t=this.hasCustomIcon(),n=Boolean(o||t);return i`<div class="container">${n?i`<span class="icon">${o??i`<slot name="icon"></slot>`}</span>`:e}<div class="content"><slot></slot></div></div>`}hasCustomIcon(){return Boolean(this.querySelector('[slot="icon"]'))}renderVariantIcon(){return"info"===this.variant?a({size:24,color:"var(--color-primary-icon-link)"}):null}};o([s({type:String,reflect:!0})],l.prototype,"background",void 0),o([s({type:String,reflect:!0})],l.prototype,"variant",void 0),o([s({type:Boolean,reflect:!0})],l.prototype,"noPadding",void 0),l=o([t("mq-callout")],l);export{l as MqCallout};
|
package/dist/ui/mq-dialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as t}from"../chunks/custom-element-D2ziPxYE.js";import{i as o,a as i,x as a}from"../chunks/lit-element-DiWJYFwC.js";import{n as s}from"../chunks/property-scuRaFcM.js";import{r}from"../chunks/state-LQivXIgA.js";import{xIcon as n}from"./icons/x-icon.js";import"./icons/types.js";const l=o`:host{display:contents}dialog.root{padding:0;border:none;margin:0;max-width:none;max-height:none;position:fixed;inset:0;width:100%;height:100%;background:var(--dialog-underlay);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity var(--dialog-transition-duration) ease}dialog.root:not([open]){display:none}dialog.root::backdrop{background:0 0}.dialog{background:var(--color-neutrals-background-extraWeak,var(--color-background,var(--color-white)));color:var(--color-neutrals-text-default,var(--color-foreground,var(--color-black)));border-radius:var(--border-radius-lg);width:calc(100% - var(--mq-safe-left,0px) - var(--mq-safe-right,0px));max-height:calc(100vh - var(--mq-safe-top,0px) - var(--mq-safe-bottom,0px));margin-top:var(--mq-safe-top,0);margin-bottom:var(--mq-safe-bottom,0);margin-left:var(--mq-safe-left,0);margin-right:var(--mq-safe-right,0);box-shadow:var(--dialog-shadow);outline:0;display:flex;flex-direction:column;overflow:hidden;opacity:0;transition:opacity var(--dialog-transition-duration,180ms) ease,transform var(--dialog-transition-duration,180ms) ease;transform:scale(.95);position:relative}.heading{padding:var(--sp-4) var(--sp-5) 0 var(--sp-5);font-size:var(--text-lg);font-weight:var(--font-weight-semibold)}.subheading{padding:var(--sp-1) var(--sp-5) 0 var(--sp-5);color:var(--color-neutrals-text-medium,var(--color-gray-darker));font-size:var(--text-sm);line-height:var(--text-sm--line-height);font-weight:var(--font-weight-normal)}.content{padding:var(--sp-3) var(--sp-5) var(--sp-5) var(--sp-5);flex:1;min-height:0;overflow-y:auto}dialog.root.active{opacity:1}dialog.root.active .dialog{opacity:1;transform:scale(1)}.close-btn{position:absolute;top:var(--sp-2);right:var(--sp-2);border:none;background:0 0;padding:var(--sp-2);border-radius:var(--border-radius-lg);cursor:pointer;line-height:0;color:inherit}.close-btn:hover{background:var(--dialog-close-hover-bg)}.close-btn:disabled{opacity:.4;cursor:default}@media (min-width:768px){.dialog{min-width:425px;max-width:min(470px,calc(100vw - var(--sp-8)))}}`,d=["a[href]","area[href]","button",'input:not([type="hidden"])',"select","textarea","iframe","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"[tabindex]"].join(",");let c=class MqDialog extends i{constructor(){super(...arguments),this.open=!1,this.dismissable=!0,this.isActive=!1,this.closeTimer=null,this.onDialogClick=e=>{this.dismissable&&e.target===this.shadowRoot?.querySelector("dialog")&&this.requestClose()},this.onCancel=e=>{e.preventDefault(),this.dismissable&&this.requestClose()},this.onNativeClose=()=>{this.open&&(this.open=!1)},this.onCloseClick=()=>{this.dismissable&&this.requestClose()},this.onKeyDown=e=>{if("Tab"!==e.key)return;const t=this.getTabbableElements();if(0===t.length)return void e.preventDefault();const o=t[0],i=t[t.length-1];if(!o||!i)return;const a=this.getDeepActiveElement();e.shiftKey||a!==i?e.shiftKey&&a===o&&(e.preventDefault(),i.focus()):(e.preventDefault(),o.focus())}}static{this.styles=[l]}updated(e){if(!e.has("open"))return;const t=this.shadowRoot?.querySelector("dialog");t&&(this.open?(this.closeTimer&&(window.clearTimeout(this.closeTimer),this.closeTimer=null),t.open||"function"!=typeof t.showModal||t.showModal(),requestAnimationFrame(()=>{this.isActive=!0})):(this.isActive=!1,this.closeTimer&&window.clearTimeout(this.closeTimer),this.closeTimer=window.setTimeout(()=>{t.open&&t.close(),this.closeTimer=null},200)))}getDeepActiveElement(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}getTabbableElements(){const e=this.shadowRoot?.querySelector(".dialog");if(!e)return[];const t=[];return this.collectTabbable(e,t),t}collectTabbable(e,t){if(this.isTabbable(e)&&t.push(e),e.shadowRoot)for(const o of e.shadowRoot.children)this.collectTabbable(o,t);else if(e instanceof HTMLSlotElement)for(const o of e.assignedElements({flatten:!0}))this.collectTabbable(o,t);else for(const o of e.children)this.collectTabbable(o,t)}isTabbable(e){if(!(e instanceof HTMLElement))return!1;if(!e.matches(d))return!1;if(e.hasAttribute("disabled")||e.hasAttribute("inert"))return!1;if("true"===e.getAttribute("aria-hidden"))return!1;const t=e.getAttribute("tabindex");return!(null!==t&&Number(t)<0)&&(null!==e.offsetParent||e.getClientRects().length>0)}requestClose(){this.dispatchEvent(new CustomEvent("mq-close",{bubbles:!0,composed:!0})),this.open=!1}render(){return a`<dialog class="root ${this.isActive?"active":""}" @click="${this.onDialogClick}" @keydown="${this.onKeyDown}" @cancel="${this.onCancel}" @close="${this.onNativeClose}" aria-labelledby="dialog-heading" aria-describedby="dialog-subheading"><div class="dialog" part="dialog"><button class="close-btn" part="close" type="button" aria-label="Close dialog" title="Close" ?disabled="${!this.dismissable}" @click="${this.onCloseClick}">${n({size:20})}</button><div class="heading" part="heading" id="dialog-heading"><slot name="heading"></slot></div><div class="subheading" part="subheading" id="dialog-subheading"><slot name="subheading"></slot></div><div class="content" part="content"><slot></slot></div></div></dialog>`}};e([s({type:Boolean,reflect:!0})],c.prototype,"open",void 0),e([s({type:Boolean,reflect:!0})],c.prototype,"dismissable",void 0),e([r()],c.prototype,"isActive",void 0),c=e([t("mq-dialog")],c);export{c as MqDialog};
|
|
1
|
+
import{_ as e,c as t}from"../chunks/custom-element-D2ziPxYE.js";import{i as o,a as i,x as a}from"../chunks/lit-element-DiWJYFwC.js";import{n as s}from"../chunks/property-scuRaFcM.js";import{r}from"../chunks/state-LQivXIgA.js";import{xIcon as n}from"./icons/x-icon.js";import"../chunks/if-defined-BYeVdwgd.js";import"./icons/types.js";const l=o`:host{display:contents}dialog.root{padding:0;border:none;margin:0;max-width:none;max-height:none;position:fixed;inset:0;width:100%;height:100%;background:var(--dialog-underlay);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity var(--dialog-transition-duration) ease}dialog.root:not([open]){display:none}dialog.root::backdrop{background:0 0}.dialog{background:var(--color-neutrals-background-extraWeak,var(--color-background,var(--color-white)));color:var(--color-neutrals-text-default,var(--color-foreground,var(--color-black)));border-radius:var(--border-radius-lg);width:calc(100% - var(--mq-safe-left,0px) - var(--mq-safe-right,0px));max-height:calc(100vh - var(--mq-safe-top,0px) - var(--mq-safe-bottom,0px));margin-top:var(--mq-safe-top,0);margin-bottom:var(--mq-safe-bottom,0);margin-left:var(--mq-safe-left,0);margin-right:var(--mq-safe-right,0);box-shadow:var(--dialog-shadow);outline:0;display:flex;flex-direction:column;overflow:hidden;opacity:0;transition:opacity var(--dialog-transition-duration,180ms) ease,transform var(--dialog-transition-duration,180ms) ease;transform:scale(.95);position:relative}.heading{padding:var(--sp-4) var(--sp-5) 0 var(--sp-5);font-size:var(--text-lg);font-weight:var(--font-weight-semibold)}.subheading{padding:var(--sp-1) var(--sp-5) 0 var(--sp-5);color:var(--color-neutrals-text-medium,var(--color-gray-darker));font-size:var(--text-sm);line-height:var(--text-sm--line-height);font-weight:var(--font-weight-normal)}.content{padding:var(--sp-3) var(--sp-5) var(--sp-5) var(--sp-5);flex:1;min-height:0;overflow-y:auto}dialog.root.active{opacity:1}dialog.root.active .dialog{opacity:1;transform:scale(1)}.close-btn{position:absolute;top:var(--sp-2);right:var(--sp-2);border:none;background:0 0;padding:var(--sp-2);border-radius:var(--border-radius-lg);cursor:pointer;line-height:0;color:inherit}.close-btn:hover{background:var(--dialog-close-hover-bg)}.close-btn:disabled{opacity:.4;cursor:default}@media (min-width:768px){.dialog{min-width:425px;max-width:min(470px,calc(100vw - var(--sp-8)))}}`,d=["a[href]","area[href]","button",'input:not([type="hidden"])',"select","textarea","iframe","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"[tabindex]"].join(",");let c=class MqDialog extends i{constructor(){super(...arguments),this.open=!1,this.dismissable=!0,this.isActive=!1,this.closeTimer=null,this.onDialogClick=e=>{this.dismissable&&e.target===this.shadowRoot?.querySelector("dialog")&&this.requestClose()},this.onCancel=e=>{e.preventDefault(),this.dismissable&&this.requestClose()},this.onNativeClose=()=>{this.open&&(this.open=!1)},this.onCloseClick=()=>{this.dismissable&&this.requestClose()},this.onKeyDown=e=>{if("Tab"!==e.key)return;const t=this.getTabbableElements();if(0===t.length)return void e.preventDefault();const o=t[0],i=t[t.length-1];if(!o||!i)return;const a=this.getDeepActiveElement();e.shiftKey||a!==i?e.shiftKey&&a===o&&(e.preventDefault(),i.focus()):(e.preventDefault(),o.focus())}}static{this.styles=[l]}updated(e){if(!e.has("open"))return;const t=this.shadowRoot?.querySelector("dialog");t&&(this.open?(this.closeTimer&&(window.clearTimeout(this.closeTimer),this.closeTimer=null),t.open||"function"!=typeof t.showModal||t.showModal(),requestAnimationFrame(()=>{this.isActive=!0})):(this.isActive=!1,this.closeTimer&&window.clearTimeout(this.closeTimer),this.closeTimer=window.setTimeout(()=>{t.open&&t.close(),this.closeTimer=null},200)))}getDeepActiveElement(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}getTabbableElements(){const e=this.shadowRoot?.querySelector(".dialog");if(!e)return[];const t=[];return this.collectTabbable(e,t),t}collectTabbable(e,t){if(this.isTabbable(e)&&t.push(e),e.shadowRoot)for(const o of e.shadowRoot.children)this.collectTabbable(o,t);else if(e instanceof HTMLSlotElement)for(const o of e.assignedElements({flatten:!0}))this.collectTabbable(o,t);else for(const o of e.children)this.collectTabbable(o,t)}isTabbable(e){if(!(e instanceof HTMLElement))return!1;if(!e.matches(d))return!1;if(e.hasAttribute("disabled")||e.hasAttribute("inert"))return!1;if("true"===e.getAttribute("aria-hidden"))return!1;const t=e.getAttribute("tabindex");return!(null!==t&&Number(t)<0)&&(null!==e.offsetParent||e.getClientRects().length>0)}requestClose(){this.dispatchEvent(new CustomEvent("mq-close",{bubbles:!0,composed:!0})),this.open=!1}render(){return a`<dialog class="root ${this.isActive?"active":""}" @click="${this.onDialogClick}" @keydown="${this.onKeyDown}" @cancel="${this.onCancel}" @close="${this.onNativeClose}" aria-labelledby="dialog-heading" aria-describedby="dialog-subheading"><div class="dialog" part="dialog"><button class="close-btn" part="close" type="button" aria-label="Close dialog" title="Close" ?disabled="${!this.dismissable}" @click="${this.onCloseClick}">${n({size:20})}</button><div class="heading" part="heading" id="dialog-heading"><slot name="heading"></slot></div><div class="subheading" part="subheading" id="dialog-subheading"><slot name="subheading"></slot></div><div class="content" part="content"><slot></slot></div></div></dialog>`}};e([s({type:Boolean,reflect:!0})],c.prototype,"open",void 0),e([s({type:Boolean,reflect:!0})],c.prototype,"dismissable",void 0),e([r()],c.prototype,"isActive",void 0),c=e([t("mq-dialog")],c);export{c as MqDialog};
|
package/dist/ui/mq-input.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare class MqInputChangeEvent extends Event {
|
|
|
9
9
|
}
|
|
10
10
|
type InputSize = "sm" | "md" | "lg";
|
|
11
11
|
/**
|
|
12
|
-
* @fires
|
|
12
|
+
* @fires onvaluechange - Fired when the value changes.
|
|
13
13
|
*/
|
|
14
14
|
declare class MqInput extends LitElement {
|
|
15
15
|
static styles: lit.CSSResult[];
|
package/dist/ui/mq-select.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare class MqSelectChangeEvent extends Event {
|
|
|
9
9
|
}
|
|
10
10
|
type SelectSize = "sm" | "md" | "lg";
|
|
11
11
|
/**
|
|
12
|
-
* @fires
|
|
12
|
+
* @fires onvaluechange - Fired when the value changes.
|
|
13
13
|
*/
|
|
14
14
|
declare class MqSelect extends LitElement {
|
|
15
15
|
static styles: lit.CSSResult[];
|
package/dist/ui/mq-tabs.d.ts
CHANGED
|
@@ -1,32 +1,44 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
|
-
import { LitElement } from 'lit';
|
|
3
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
4
4
|
|
|
5
|
+
type TabsOrientation = "horizontal" | "vertical";
|
|
6
|
+
type TabsActivationMode = "automatic" | "manual";
|
|
5
7
|
declare class MqTabsSelectEvent extends Event {
|
|
6
8
|
readonly value: string;
|
|
7
9
|
static eventName: string;
|
|
8
10
|
constructor(value: string);
|
|
9
11
|
}
|
|
10
|
-
/**
|
|
11
|
-
* @fires onvaluechange - Emitted when the value is changed
|
|
12
|
-
*/
|
|
13
12
|
declare class MqTabs extends LitElement {
|
|
14
13
|
static styles: lit.CSSResult[];
|
|
15
14
|
defaultValue: string | null;
|
|
16
15
|
value: string | null;
|
|
16
|
+
activationMode: TabsActivationMode;
|
|
17
|
+
private readonly instanceId;
|
|
17
18
|
connectedCallback(): void;
|
|
18
19
|
disconnectedCallback(): void;
|
|
19
20
|
protected firstUpdated(): void;
|
|
20
|
-
protected updated(changed:
|
|
21
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
22
|
+
get triggers(): Array<MqTabsTrigger>;
|
|
23
|
+
private get panels();
|
|
21
24
|
private onRequestSelect;
|
|
22
|
-
private
|
|
23
|
-
private
|
|
25
|
+
private readonly orphanTriggers;
|
|
26
|
+
private handleSlotChange;
|
|
27
|
+
applySelection(): void;
|
|
28
|
+
private warnOrphanTrigger;
|
|
24
29
|
render(): lit_html.TemplateResult<1>;
|
|
25
30
|
}
|
|
26
31
|
declare class MqTabsList extends LitElement {
|
|
27
32
|
static styles: lit.CSSResult[];
|
|
33
|
+
label: string;
|
|
34
|
+
orientation: TabsOrientation;
|
|
28
35
|
connectedCallback(): void;
|
|
29
36
|
disconnectedCallback(): void;
|
|
37
|
+
protected updated(): void;
|
|
38
|
+
private handleSlotChange;
|
|
39
|
+
private get enabledTriggers();
|
|
40
|
+
private get nextKey();
|
|
41
|
+
private get previousKey();
|
|
30
42
|
private handleKeyDown;
|
|
31
43
|
render(): lit_html.TemplateResult<1>;
|
|
32
44
|
}
|
|
@@ -35,13 +47,20 @@ declare class MqTabsTrigger extends LitElement {
|
|
|
35
47
|
value: string;
|
|
36
48
|
disabled: boolean;
|
|
37
49
|
active: boolean;
|
|
50
|
+
connectedCallback(): void;
|
|
51
|
+
disconnectedCallback(): void;
|
|
52
|
+
protected updated(): void;
|
|
53
|
+
select(): void;
|
|
38
54
|
private handleClick;
|
|
55
|
+
private handleKeyDown;
|
|
39
56
|
render(): lit_html.TemplateResult<1>;
|
|
40
57
|
}
|
|
41
58
|
declare class MqTabsContent extends LitElement {
|
|
42
59
|
static styles: lit.CSSResult[];
|
|
43
60
|
value: string;
|
|
44
61
|
active: boolean;
|
|
62
|
+
connectedCallback(): void;
|
|
63
|
+
protected updated(): void;
|
|
45
64
|
render(): lit_html.TemplateResult<1>;
|
|
46
65
|
}
|
|
47
66
|
declare global {
|
|
@@ -54,3 +73,4 @@ declare global {
|
|
|
54
73
|
}
|
|
55
74
|
|
|
56
75
|
export { MqTabs, MqTabsContent, MqTabsList, MqTabsSelectEvent, MqTabsTrigger };
|
|
76
|
+
export type { TabsActivationMode, TabsOrientation };
|
package/dist/ui/mq-tabs.js
CHANGED
|
@@ -1 +1,79 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{i as t,a as e,x as s}from"../chunks/lit-element-DiWJYFwC.js";import{n as i}from"../chunks/property-scuRaFcM.js";function a(t,e,s,i){for(var a,n=arguments.length,r=n<3?e:i,o=t.length-1;o>=0;o--)(a=t[o])&&(r=(n<3?a(r):n>3?a(e,s,r):a(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r}"function"==typeof SuppressedError&&SuppressedError;const n=t`
|
|
2
|
+
:host {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
6
|
+
`,r=t`
|
|
7
|
+
:host {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
width: 100%;
|
|
12
|
+
max-width: var(--mq-tabs-list-width, 304px);
|
|
13
|
+
margin-inline: auto;
|
|
14
|
+
padding: var(--sp-1, 4px);
|
|
15
|
+
border-radius: var(--mq-tabs-list-radius, 6px);
|
|
16
|
+
background-color: var(--mq-tabs-list-background, #edecf1);
|
|
17
|
+
box-shadow: var(--mq-tabs-list-shadow, 0 4px 8px rgb(0 0 0 / 5%));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host([orientation="vertical"]) {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: stretch;
|
|
23
|
+
}
|
|
24
|
+
`,o=t`
|
|
25
|
+
:host {
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
flex: 1;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
padding: calc(var(--spacing-unit, 4px) * 1.5) var(--sp-3, 12px);
|
|
33
|
+
border-radius: var(--mq-tabs-trigger-radius, 4px);
|
|
34
|
+
color: var(--color-text-icons--disabled, #9b90ae);
|
|
35
|
+
font-family: var(--font-body, sans-serif);
|
|
36
|
+
font-size: var(--text-xs, 0.75rem);
|
|
37
|
+
line-height: 20px;
|
|
38
|
+
font-weight: var(--font-weight-semibold, 600);
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
user-select: none;
|
|
44
|
+
-webkit-tap-highlight-color: transparent;
|
|
45
|
+
transition:
|
|
46
|
+
color 0.15s ease,
|
|
47
|
+
background-color 0.15s ease;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([active]) {
|
|
51
|
+
background-color: var(--color-card, #ffffff);
|
|
52
|
+
color: var(--color-primary-text-link, #4a1ea7);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host([disabled]) {
|
|
56
|
+
opacity: 0.5;
|
|
57
|
+
cursor: not-allowed;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host(:focus-visible) {
|
|
61
|
+
outline: 2px solid var(--color-primary-background-default, #4a1ea7);
|
|
62
|
+
outline-offset: 1px;
|
|
63
|
+
}
|
|
64
|
+
`,l=t`
|
|
65
|
+
:host {
|
|
66
|
+
display: block;
|
|
67
|
+
padding: var(--mq-tabs-content-padding, var(--sp-5, 20px) 0 0);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([hidden]),
|
|
71
|
+
:host(:not([active])) {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host(:focus-visible) {
|
|
76
|
+
outline: 2px solid var(--color-primary-background-default, #4a1ea7);
|
|
77
|
+
outline-offset: 2px;
|
|
78
|
+
}
|
|
79
|
+
`,c=t=>(e,s)=>{const i=()=>{void 0===customElements.get(t)&&customElements.define(t,e)};void 0!==s?s.addInitializer(i):i()};let d=0;function h(t,e){t.hasAttribute("role")||t.setAttribute("role",e)}class MqTabsSelectEvent extends Event{static{this.eventName="onvaluechange"}constructor(t){super(MqTabsSelectEvent.eventName,{bubbles:!0,composed:!0}),this.value=t}}let u=class MqTabs extends e{constructor(){super(...arguments),this.defaultValue=null,this.value=null,this.activationMode="automatic",this.instanceId=(d+=1,d),this.onRequestSelect=t=>{const e=t;e.value&&(this.value=e.value)},this.orphanTriggers=new Set,this.handleSlotChange=()=>{this.applySelection()}}static{this.styles=[n]}connectedCallback(){super.connectedCallback(),this.addEventListener(MqTabsSelectEvent.eventName,this.onRequestSelect)}disconnectedCallback(){this.removeEventListener(MqTabsSelectEvent.eventName,this.onRequestSelect),super.disconnectedCallback()}firstUpdated(){if(!this.value){const t=this.defaultValue??this.triggers[0]?.value??null;t&&(this.value=t)}this.applySelection()}updated(t){t.has("value")&&this.applySelection()}get triggers(){return Array.from(this.querySelectorAll("mq-tabs-trigger"))}get panels(){return Array.from(this.querySelectorAll("mq-tabs-content"))}applySelection(){const{value:t}=this,e=this.triggers,s=this.panels,i=e.some(e=>!!t&&e.value===t);e.forEach((e,a)=>{const n=!!t&&e.value===t,r=s.find(t=>t.value===e.value);e.id||(e.id=`mq-tabs-${this.instanceId}-trigger-${a}`),r&&!r.id&&(r.id=`mq-tabs-${this.instanceId}-panel-${a}`),r?(e.setAttribute("aria-controls",r.id),r.setAttribute("aria-labelledby",e.id)):(e.removeAttribute("aria-controls"),this.warnOrphanTrigger(e.value)),e.active=n,e.tabIndex=n||!i&&0===a?0:-1});for(const e of s)e.active=!!t&&e.value===t}warnOrphanTrigger(t){t&&!this.orphanTriggers.has(t)&&(this.orphanTriggers.add(t),console.warn(`mq-tabs: no <mq-tabs-content value="${t}"> matches the trigger with that value, so the tab controls nothing and its panel will never show.`))}render(){return s`<slot @slotchange=${this.handleSlotChange}></slot>`}};a([i({type:String,attribute:"default-value"})],u.prototype,"defaultValue",void 0),a([i({type:String,reflect:!0})],u.prototype,"value",void 0),a([i({type:String,attribute:"activation-mode"})],u.prototype,"activationMode",void 0),u=a([c("mq-tabs")],u);let p=class MqTabsList extends e{constructor(){super(...arguments),this.label="",this.orientation="horizontal",this.handleSlotChange=()=>{this.closest("mq-tabs")?.applySelection()},this.handleKeyDown=t=>{if(t.key!==this.nextKey&&t.key!==this.previousKey&&"Home"!==t.key&&"End"!==t.key)return;const e=t.composedPath().find(t=>t instanceof HTMLElement&&"MQ-TABS-TRIGGER"===t.tagName);if(!e)return;const s=this.enabledTriggers;if(0===s.length)return;t.preventDefault();const i=s.indexOf(e),a=s.length-1;let n;n="Home"===t.key?0:"End"===t.key?a:t.key===this.nextKey?-1===i?0:(i+1)%s.length:i<=0?a:i-1;const r=s[n];if(!r)return;r.focus();const o=this.closest("mq-tabs");o&&"automatic"!==o.activationMode||r.select()}}static{this.styles=[r]}connectedCallback(){super.connectedCallback(),h(this,"tablist"),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}updated(){this.setAttribute("aria-orientation",this.orientation),this.label?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label")}get enabledTriggers(){return Array.from(this.querySelectorAll("mq-tabs-trigger:not([disabled])"))}get nextKey(){return"vertical"===this.orientation?"ArrowDown":"ArrowRight"}get previousKey(){return"vertical"===this.orientation?"ArrowUp":"ArrowLeft"}render(){return s`<slot @slotchange=${this.handleSlotChange}></slot>`}};a([i({type:String})],p.prototype,"label",void 0),a([i({type:String,reflect:!0})],p.prototype,"orientation",void 0),p=a([c("mq-tabs-list")],p);let b=class MqTabsTrigger extends e{constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.handleClick=()=>{this.select()},this.handleKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.select())}}static{this.styles=[o]}connectedCallback(){super.connectedCallback(),h(this,"tab"),this.hasAttribute("tabindex")||(this.tabIndex=-1),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}updated(){this.setAttribute("aria-selected",this.active?"true":"false"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}select(){!this.disabled&&this.value&&this.dispatchEvent(new MqTabsSelectEvent(this.value))}render(){return s`<slot></slot>`}};a([i({type:String,reflect:!0})],b.prototype,"value",void 0),a([i({type:Boolean,reflect:!0})],b.prototype,"disabled",void 0),a([i({type:Boolean,reflect:!0})],b.prototype,"active",void 0),b=a([c("mq-tabs-trigger")],b);let v=class MqTabsContent extends e{constructor(){super(...arguments),this.active=!1}static{this.styles=[l]}connectedCallback(){super.connectedCallback(),h(this,"tabpanel"),this.hasAttribute("tabindex")||(this.tabIndex=0)}updated(){this.toggleAttribute("hidden",!this.active)}render(){return s`<slot></slot>`}};a([i({type:String,reflect:!0})],v.prototype,"value",void 0),a([i({type:Boolean,reflect:!0})],v.prototype,"active",void 0),v=a([c("mq-tabs-content")],v);export{u as MqTabs,v as MqTabsContent,p as MqTabsList,MqTabsSelectEvent,b as MqTabsTrigger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,c as o}from"../chunks/custom-element-D2ziPxYE.js";import{i as e,a as r,x as i}from"../chunks/lit-element-DiWJYFwC.js";import{n}from"../chunks/property-scuRaFcM.js";import{e as a}from"../chunks/class-map-Co76I6aw.js";import{o as s}from"../chunks/if-defined-BYeVdwgd.js";import"../chunks/directive-2EDmOukv.js";const
|
|
1
|
+
import{_ as t,c as o}from"../chunks/custom-element-D2ziPxYE.js";import{i as e,a as r,x as i}from"../chunks/lit-element-DiWJYFwC.js";import{n}from"../chunks/property-scuRaFcM.js";import{e as a}from"../chunks/class-map-Co76I6aw.js";import{o as s}from"../chunks/if-defined-BYeVdwgd.js";import"../chunks/directive-2EDmOukv.js";const d=e`:host{display:inline-block}button{display:inline-flex;align-items:center;justify-content:center;gap:var(--size-1);background:0 0;border:none;border-radius:var(--border-radius-md);font-family:var(--font-body);white-space:nowrap;letter-spacing:0;font-weight:var(--font-weight-medium);transition:all .2s ease;outline:0;cursor:pointer;position:relative;padding:0;text-decoration:none;--mq-text-btn-ring-color:var(--color-primary)}button:focus-visible{box-shadow:0 0 0 1.5px var(--color-background,#fff),0 0 0 3.5px var(--mq-text-btn-ring-color,var(--color-primary));z-index:1}button:disabled{opacity:.5;pointer-events:none;cursor:not-allowed}button.primary{color:var(--color-primary);--mq-text-btn-ring-color:var(--color-primary)}button::before{content:"";position:absolute;inset:calc(var(--sp-1) * -1) calc(var(--sp-2) * -1);z-index:-1;border-radius:var(--border-radius-md);transition:background .2s ease}button.primary:hover:not(:disabled){color:var(--color-primary-dark)}button.primary:hover:not(:disabled)::before{background:var(--color-primary-light)}button.black{color:var(--color-black,#000);--mq-text-btn-ring-color:var(--color-black, #000000)}button.black:hover:not(:disabled){color:var(--color-gray-dark,#333)}button.black:hover:not(:disabled)::before{background:var(--color-gray-lighter,#f8f9fa)}button.white{color:var(--color-white,#fff);--mq-text-btn-ring-color:var(--color-white, #ffffff)}button.white:hover:not(:disabled){color:var(--color-gray-lighter,#f8f9fa)}button.white:hover:not(:disabled)::before{background:rgb(255 255 255 / 10%)}button.xs{padding:0;font-size:var(--text-xs);line-height:var(--text-xs--line-height)}button.sm{padding:0;font-size:var(--text-sm);line-height:var(--text-sm--line-height)}button.md{padding:0;font-size:var(--text-base);line-height:var(--text-base--line-height)}button.lg{padding:var(--size-1) 0;font-size:var(--text-base);line-height:var(--text-base--line-height)}button.font-normal{font-weight:var(--font-weight-normal,400)}button.font-medium{font-weight:var(--font-weight-medium,500)}button.font-semibold{font-weight:var(--font-weight-semibold,600)}button.font-bold{font-weight:var(--font-weight-bold,700)}button.underlined{text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}button ::slotted(svg){pointer-events:none;width:var(--size-6);height:var(--size-6);flex-shrink:0}button ::slotted(*){pointer-events:none}`;let l=class MqTextButton extends r{constructor(){super(...arguments),this.variant="primary",this.size="md",this.disabled=!1,this.type="button",this.underlined=!1,this.fontWeight="medium"}static{this.styles=[d]}static{this.shadowRootOptions={...r.shadowRootOptions,delegatesFocus:!0}}render(){const t={[this.variant]:!0,[this.size]:!0,[`font-${this.fontWeight}`]:!0,underlined:this.underlined,disabled:this.disabled};return i`<button class="${a(t)}" type="${this.type}" ?disabled="${this.disabled}" name="${s(this.name)}" value="${s(this.value)}" form="${s(this.form)}" formaction="${s(this.formaction)}" formenctype="${s(this.formenctype)}" formmethod="${s(this.formmethod)}" ?formnovalidate="${this.formnovalidate??!1}" formtarget="${s(this.formtarget)}"><slot></slot></button>`}};t([n({type:String,reflect:!0})],l.prototype,"variant",void 0),t([n({type:String,reflect:!0})],l.prototype,"size",void 0),t([n({type:Boolean,reflect:!0})],l.prototype,"disabled",void 0),t([n({type:String,reflect:!0})],l.prototype,"type",void 0),t([n({type:Boolean,reflect:!0})],l.prototype,"underlined",void 0),t([n({type:String,reflect:!0})],l.prototype,"fontWeight",void 0),t([n({type:String})],l.prototype,"name",void 0),t([n({type:String})],l.prototype,"value",void 0),t([n({type:String})],l.prototype,"form",void 0),t([n({type:String})],l.prototype,"formaction",void 0),t([n({type:String})],l.prototype,"formenctype",void 0),t([n({type:String})],l.prototype,"formmethod",void 0),t([n({type:Boolean})],l.prototype,"formnovalidate",void 0),t([n({type:String})],l.prototype,"formtarget",void 0),l=t([o("mq-text-button")],l);export{l as MqTextButton};
|
package/dist/ui/mq-textarea.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare class MqTextareaChangeEvent extends Event {
|
|
|
8
8
|
constructor(value: string);
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* @fires
|
|
11
|
+
* @fires onvaluechange - Fired when the value changes.
|
|
12
12
|
*/
|
|
13
13
|
declare class MqTextarea extends LitElement {
|
|
14
14
|
static styles: lit.CSSResult[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as
|
|
1
|
+
import{_ as e,c as a}from"../chunks/custom-element-D2ziPxYE.js";import{a as r,i as s,x as n}from"../chunks/lit-element-DiWJYFwC.js";let d=class MqUnreadBadge extends r{static{this.styles=s`:host{display:inline-flex;align-items:center}.badge{width:var(--mq-unread-badge-size,12px);height:var(--mq-unread-badge-size,12px);border-radius:50%;background-color:var(--mq-unread-badge-color,var(--color-negative,#ff014d));flex-shrink:0}`}render(){return n`<span class="badge"></span>`}};d=e([a("mq-unread-badge")],d);export{d as MqUnreadBadge};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediquo/elements",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Mediquo elements web components",
|
|
7
7
|
"license": "ISC",
|
|
@@ -215,6 +215,7 @@
|
|
|
215
215
|
"@types/react-dom": "^19.0.0",
|
|
216
216
|
"@mediquo/eslint-config": "*",
|
|
217
217
|
"@mediquo/telemetry": "*",
|
|
218
|
+
"@mediquo/ui": "*",
|
|
218
219
|
"@rollup/plugin-alias": "^6.0.0",
|
|
219
220
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
220
221
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as t,c as e}from"./custom-element-D2ziPxYE.js";import{c as i}from"./consume-CovVqBjI.js";import{m as a}from"./runtime-Bg1WXVCx.js";import{l as o}from"./localized-decorator-BlOuLhym.js";import{Q as n}from"./query-controller-BlO1Ax65.js";import{A as s}from"./api-client-context-V1UAGtKW.js";import{g as p}from"./get-organization-setup-query-Dr1cXnHl.js";import{t as r,f as l,h as c,i as d,j as h,k as m,a as u,g,l as v}from"./telemetry-client-7fvNqUSU.js";import{g as f}from"./get-schedule-services-query-Fzvb9ug9.js";import{g as y}from"./chunk-Y4EKUX25-QqMl3eiq.js";import{a as b,i as $,E as C,x}from"./lit-element-DiWJYFwC.js";import{n as k}from"./property-scuRaFcM.js";import{r as R}from"./state-LQivXIgA.js";import{getLocale as j}from"../i18n.js";import"./appointment-details-DXLBQnPN.js";import"../ui/mq-card.js";import"./professional-overview-C4H_znIJ.js";import{l as q}from"./chunk-S5RWG6G2-DPesx3Od.js";import"../mq-chat-room.js";import"../ui/mq-floating-bubble.js";import{A as w,i as S}from"./api-chat-client-CJ1EGJe3.js";import{g as D}from"./action-unavailable-message-BIgsXk9u.js";import{e as I}from"./class-map-Co76I6aw.js";import{MqAppointmentRescheduleEvent as O,MqAppointmentBookEvent as M,MqAppointmentJoinVideocallEvent as U,MqAppointmentViewDocumentationEvent as _}from"../events.js";import{messageBubbleIcon as A}from"../ui/icons/message-bubble-icon.js";import{videoIcon as H}from"../ui/icons/video-icon.js";import"../ui/mq-button.js";import"../ui/mq-unread-badge.js";import{c as z}from"./refund-cancel-policy-CcsJ-pMx.js";import{toast as E}from"../ui/mq-toast.js";let N=class AppointmentCardActions extends b{constructor(){super(...arguments),this.variant="next",this.isVideocall=!1,this.hasChatSupport=!1,this.unreadCount=0,this.isModifyUnavailable=!1,this.isCancelUnavailable=!1,this.hasNoSlots=!1,this.modifyUnavailableMessage="",this.cancelUnavailableMessage="",this.repeatTarget=null,this.professionalHash="",this.openDialog=null,this.handleModifyClick=()=>{this.isModifyUnavailable?this.openDialog="modify":(r.track(l(this.patientHash,this.appointmentId)),this.dispatchEvent(new O({appointmentId:this.appointmentId})))},this.handleCancelClick=()=>{this.isCancelUnavailable?this.openDialog="cancel":(r.track(c(this.patientHash,this.appointmentId)),this.dispatchEvent(new CustomEvent("request-cancel",{bubbles:!0,composed:!0})))},this.handleRepeatClick=()=>{this.hasNoSlots?this.openDialog="repeat-no-slots":this.repeatTarget?(r.track(d(this.patientHash,this.appointmentId)),this.dispatchEvent(new M({specialty:this.repeatTarget.specialty,service:this.repeatTarget.service,professional:this.professionalHash}))):this.openDialog="repeat-error"},this.handleDialogClose=()=>{this.openDialog=null}}static{this.styles=$`:host{display:contents}.actions{display:flex;gap:var(--sp-3);margin-top:var(--sp-2)}.actions.next{flex-direction:column}.actions-secondary{display:flex;gap:var(--sp-3)}.actions mq-button{flex:1}`}get patientHash(){return this.loginToken.patient.hash}renderChatButton(){return x`<mq-button variant="primary" fullwidth noPadding @click="${()=>{this.dispatchEvent(new CustomEvent("toggle-chat",{bubbles:!0,composed:!0}))}}">${A({size:24})} ${a("Chat")} ${this.unreadCount>0?x`<mq-unread-badge></mq-unread-badge>`:C}</mq-button>`}renderNextActions(){return x`${this.isVideocall?x`<mq-button variant="outline" fullwidth noPadding @click="${()=>{r.track(h(this.patientHash,this.appointmentId)),this.dispatchEvent(new U({appointmentId:this.appointmentId}))}}">${H({size:24})} ${a("Ir a videollamada")}</mq-button>`:C}<div class="actions-secondary">${this.hasChatSupport?this.renderChatButton():C}<mq-button variant="outline" fullwidth noPadding @click="${this.handleModifyClick}">${a("Modificar")}</mq-button><mq-button variant="outline-negative" fullwidth noPadding @click="${this.handleCancelClick}">${a("Cancelar")}</mq-button></div>`}renderHistoryActions(){return x`${this.hasChatSupport?this.renderChatButton():C}<mq-button variant="outline" fullwidth noPadding @click="${()=>{r.track(m(this.patientHash,this.appointmentId)),this.dispatchEvent(new _({appointmentId:this.appointmentId}))}}">${a("Documentos")}</mq-button><mq-button variant="outline" fullwidth noPadding @click="${this.handleRepeatClick}">${a("Repetir")}</mq-button>`}render(){return x`<div class="${I({actions:!0,next:"next"===this.variant})}">${"next"===this.variant?this.renderNextActions():this.renderHistoryActions()}</div><appointment-action-unavailable-dialog .open="${"modify"===this.openDialog}" .heading="${a("Modificar cita")}" .message="${this.modifyUnavailableMessage}" @close="${this.handleDialogClose}"></appointment-action-unavailable-dialog><appointment-action-unavailable-dialog .open="${"cancel"===this.openDialog}" .heading="${a("Anular cita")}" .message="${this.cancelUnavailableMessage}" @close="${this.handleDialogClose}"></appointment-action-unavailable-dialog><appointment-action-unavailable-dialog .open="${"repeat-no-slots"===this.openDialog}" .heading="${a("Repetir cita")}" .message="${a("Este profesional no tiene horarios disponibles")}" @close="${this.handleDialogClose}"></appointment-action-unavailable-dialog><appointment-action-unavailable-dialog .open="${"repeat-error"===this.openDialog}" .heading="${a("Repetir cita")}" .message="${a("Lo sentimos, no hemos podido repetir tu cita. Por favor, contacta con soporte.")}" @close="${this.handleDialogClose}"></appointment-action-unavailable-dialog>`}};t([i({context:q})],N.prototype,"loginToken",void 0),t([k({type:String})],N.prototype,"variant",void 0),t([k({type:String})],N.prototype,"appointmentId",void 0),t([k({type:Boolean})],N.prototype,"isVideocall",void 0),t([k({type:Boolean})],N.prototype,"hasChatSupport",void 0),t([k({type:Number})],N.prototype,"unreadCount",void 0),t([k({type:Boolean})],N.prototype,"isModifyUnavailable",void 0),t([k({type:Boolean})],N.prototype,"isCancelUnavailable",void 0),t([k({type:Boolean})],N.prototype,"hasNoSlots",void 0),t([k({type:String})],N.prototype,"modifyUnavailableMessage",void 0),t([k({type:String})],N.prototype,"cancelUnavailableMessage",void 0),t([k({type:Object})],N.prototype,"repeatTarget",void 0),t([k({type:String})],N.prototype,"professionalHash",void 0),t([R()],N.prototype,"openDialog",void 0),N=t([o(),e("appointment-card-actions")],N);let T=class AppointmentCard extends b{constructor(){super(...arguments),this.variant="next",this.detailsVariant="wide",this.isChatOpen=!1,this.isCancelDialogOpen=!1,this.unreadQuery=new n(this,()=>y(this.apiClient,{roomId:this.appointmentResource?.room?.id})),this.getOrganizationSpecialtiesQuery=new n(this,()=>u(this.apiClient,{enabled:!!this.appointmentResource?.speciality?.id})),this.getOrganizationSetupQuery=new n(this,()=>p(this.apiClient)),this.getScheduleServicesQuery=new n(this,()=>f(this.apiClient))}static{this.styles=$`:host{display:flex}.card{width:100%;padding:var(--sp-6);display:flex;flex-direction:column;gap:var(--sp-4);justify-content:space-between}.card-top-content{display:flex;flex-direction:column;gap:var(--sp-6)}.see-details{color:var(--color-primary-link-default);font-size:var(--text-sm);line-height:var(--text-sm--line-height);font-weight:var(--font-weight-bold)}.see-details:hover{text-decoration:underline}.chevron-down{width:16px;height:16px;transition:transform .2s ease}.appointment-details{display:flex;flex-direction:column;gap:12px}.clock-icon-wrapper{width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.clock-icon-wrapper svg{width:100%;height:100%}.appointment-type{display:flex;align-items:center;gap:12px;font-size:18px;color:#2c3e50}.actions{display:flex;gap:var(--sp-3);margin-top:var(--sp-2)}.actions.next{flex-direction:column}.actions-secondary{display:flex;gap:var(--sp-3)}.actions mq-button{flex:1}`}render(){const t=this.appointmentResource.appointment.channel===w.videocall,e=this.appointmentResource.appointment.channel===w.phonecall,i=!0===this.appointmentResource.appointment.has_chat_in_appointment,o=(t||e)&&i,n=j(),s=S(this.appointmentResource.appointment.expires_at),p=0===this.appointmentResource.slots.length,l=this.getOrganizationSetupQuery.result?.data?.appointments?.seconds_before_start_to_refund_on_cancel,c=z({startsAtIso:this.appointmentResource.appointment.starts_at,refundPolicySeconds:l}),d=s||p||!c,h=s||!c,m=D({action:"modify",refundPolicySeconds:l}),u=D({action:"cancel",refundPolicySeconds:l}),f=this.getOrganizationSpecialtiesQuery.result?.data?.find(t=>Number(t.id)===Number(this.appointmentResource.speciality.id)),y=g(f?.code??"",n,f?.name??this.appointmentResource.speciality.name),b=this.getScheduleServicesQuery.result?.data?.find(t=>t.id===this.appointmentResource.appointment.service_id)?.code,$=f?.code&&b?{specialty:f.code,service:b}:null;return x`<mq-card class="card" roundness="md"><div class="card-top-content"><professional-overview .specialtyName="${y??""}" .collegiateNumber="${this.appointmentResource.professional.collegiate_number??void 0}" .description="${this.appointmentResource.professional.description??""}" .languages="${this.appointmentResource.professional.languages}" .avatar="${this.appointmentResource.professional.avatar??""}" .name="${this.appointmentResource.professional.name}"></professional-overview><appointment-details .startsAt="${this.appointmentResource.appointment.starts_at}" .duration="${this.appointmentResource.appointment.duration}" .channel="${this.appointmentResource.appointment.channel}" .timezone="${this.loginToken?.patient?.timezone}" variant="${this.detailsVariant}"></appointment-details></div><appointment-card-actions .variant="${this.variant}" .appointmentId="${this.appointmentResource.appointment.id??""}" .isVideocall="${t}" .hasChatSupport="${o}" .unreadCount="${this.unreadQuery.result?.data?.unread_count??0}" .isModifyUnavailable="${d}" .isCancelUnavailable="${h}" .hasNoSlots="${p}" .modifyUnavailableMessage="${m}" .cancelUnavailableMessage="${u}" .repeatTarget="${$}" .professionalHash="${this.appointmentResource.professional.hash}" @toggle-chat="${()=>{this.isChatOpen=!this.isChatOpen,this.isChatOpen&&r.track(v(this.loginToken.patient.hash,this.appointmentResource.appointment.id??""))}}" @request-cancel="${()=>{this.isCancelDialogOpen=!0}}"></appointment-card-actions><mq-floating-bubble ?dismissable="${!1}" .open="${this.isChatOpen}" @mq-close="${()=>{this.isChatOpen=!1}}" hideCloseButton>${this.isChatOpen?x`<mq-chat-room slot="content" .consultationId="${this.appointmentResource.appointment.id}" consultation-type="appointment" token="${this.loginToken.access_token}" .roomId="${this.appointmentResource.room.id}" .professionalHash="${this.appointmentResource.professional.hash}" @mq-chat-room-close="${()=>{this.isChatOpen=!1}}" ?readonly="${s}"></mq-chat-room>`:C}</mq-floating-bubble><cancel-appointment-confirmation-dialog .appointmentId="${this.appointmentResource.appointment.id}" .price="${this.appointmentResource.price??void 0}" .open="${this.isCancelDialogOpen}" @cancel="${()=>{this.isCancelDialogOpen=!1}}" @success="${()=>{this.isCancelDialogOpen=!1,E.success(a("Consulta anulada correctamente")),this.dispatchEvent(new CustomEvent("appointment-cancel-confirmed",{bubbles:!0,composed:!0,detail:{id:this.appointmentResource.appointment.id}}))}}"></cancel-appointment-confirmation-dialog></mq-card>`}};t([i({context:s,subscribe:!0})],T.prototype,"apiClient",void 0),t([k({type:Object})],T.prototype,"appointmentResource",void 0),t([k({type:Number})],T.prototype,"specialtyId",void 0),t([k({type:String})],T.prototype,"variant",void 0),t([k({type:String})],T.prototype,"detailsVariant",void 0),t([i({context:q})],T.prototype,"loginToken",void 0),t([R()],T.prototype,"isChatOpen",void 0),t([R()],T.prototype,"isCancelDialogOpen",void 0),T=t([o(),e("appointment-card")],T);let P=class AppointmentCardSkeleton extends b{static{this.styles=$`div{border-radius:var(--border-radius-md);background:color-mix(in srgb,var(--color-neutrals-background-disabled) 50%,#fff 50%);height:337px;width:100%}`}render(){return x`<div></div>`}};P=t([e("appointment-card-skeleton")],P);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{x as L}from"../../chunks/lit-element-DiWJYFwC.js";function M(){return L`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="path-1-inside-1_1001_2180" fill="white"><path d="M19.9997 0.655151C30.6772 0.655151 39.3336 9.16174 39.3336 19.6552L39.3268 20.1454C39.0622 30.4122 30.5104 38.6552 19.9997 38.6552L19.5006 38.6493C9.21968 38.3931 0.932895 30.2492 0.672516 20.1454L0.666656 19.6552C0.666656 9.16185 9.32231 0.655324 19.9997 0.655151ZM19.9997 2.15515C10.126 2.15532 2.16666 10.0148 2.16666 19.6552C2.16666 29.2955 10.126 37.155 19.9997 37.1552C29.8734 37.1552 37.8336 29.2956 37.8336 19.6552C37.8336 10.0147 29.8734 2.15515 19.9997 2.15515ZM29.6461 12.7557C29.8413 12.5639 30.1579 12.5641 30.3532 12.7557C30.5484 12.9476 30.5484 13.2592 30.3532 13.451L17.0202 26.5546C16.825 26.7463 16.5084 26.7461 16.3131 26.5546L9.64615 20.0028C9.4513 19.811 9.45125 19.5003 9.64615 19.3085C9.84138 19.1166 10.1579 19.1167 10.3532 19.3085L16.6667 25.5116L29.6461 12.7557Z"/></mask><path d="M19.9997 0.655151V-0.844849H19.9996L19.9997 0.655151ZM39.3336 19.6552L40.8335 19.6761L40.8336 19.6656V19.6552H39.3336ZM39.3268 20.1454L40.8263 20.184L40.8265 20.1752L40.8267 20.1663L39.3268 20.1454ZM19.9997 38.6552L19.9821 40.155L19.9909 40.1552H19.9997V38.6552ZM19.5006 38.6493L19.4633 40.1488L19.4732 40.1491L19.483 40.1492L19.5006 38.6493ZM0.672516 20.1454L-0.827377 20.1633L-0.827253 20.1737L-0.826986 20.184L0.672516 20.1454ZM0.666656 19.6552H-0.833344V19.6641L-0.833236 19.6731L0.666656 19.6552ZM19.9997 2.15515V0.655151L19.9996 0.655151L19.9997 2.15515ZM2.16666 19.6552H0.666656H0.666656H2.16666ZM19.9997 37.1552L19.9996 38.6552H19.9997V37.1552ZM37.8336 19.6552H39.3336H37.8336ZM29.6461 12.7557L28.5948 11.6859L28.5947 11.6859L29.6461 12.7557ZM30.3532 12.7557L31.4046 11.6859L31.4037 11.685L30.3532 12.7557ZM30.3532 13.451L29.3018 12.3812L29.3018 12.3812L30.3532 13.451ZM17.0202 26.5546L18.0716 27.6244L18.0716 27.6244L17.0202 26.5546ZM16.3131 26.5546L15.2618 27.6244L15.2627 27.6254L16.3131 26.5546ZM9.64615 20.0028L8.59377 21.0717L8.59477 21.0727L9.64615 20.0028ZM9.64615 19.3085L8.59474 18.2386L8.59401 18.2394L9.64615 19.3085ZM10.3532 19.3085L11.4044 18.2385L11.4043 18.2384L10.3532 19.3085ZM16.6667 25.5116L15.6154 26.5816L16.6668 27.6146L17.7181 26.5814L16.6667 25.5116ZM19.9997 0.655151V2.15515C29.8735 2.15515 37.8336 10.0147 37.8336 19.6552H39.3336H40.8336C40.8336 8.30876 31.4808 -0.844849 19.9997 -0.844849V0.655151ZM39.3336 19.6552L37.8338 19.6342L37.827 20.1245L39.3268 20.1454L40.8267 20.1663L40.8335 19.6761L39.3336 19.6552ZM39.3268 20.1454L37.8273 20.1067C37.5842 29.539 29.7187 37.1552 19.9997 37.1552V38.6552V40.1552C31.3021 40.1552 40.5402 31.2855 40.8263 20.184L39.3268 20.1454ZM19.9997 38.6552L20.0173 37.1553L19.5183 37.1494L19.5006 38.6493L19.483 40.1492L19.9821 40.155L19.9997 38.6552ZM19.5006 38.6493L19.538 37.1498C10.0328 36.9129 2.41123 29.3892 2.17202 20.1067L0.672516 20.1454L-0.826986 20.184C-0.545441 31.1091 8.40655 39.8733 19.4633 40.1488L19.5006 38.6493ZM0.672516 20.1454L2.17241 20.1275L2.16655 19.6372L0.666656 19.6552L-0.833236 19.6731L-0.827377 20.1633L0.672516 20.1454ZM0.666656 19.6552H2.16666C2.16666 10.0148 10.126 2.15531 19.9997 2.15515L19.9997 0.655151L19.9996 -0.844849C8.51857 -0.844663 -0.833344 8.30894 -0.833344 19.6552H0.666656ZM19.9997 2.15515L19.9996 0.655151C9.32166 0.655338 0.666656 9.16248 0.666656 19.6552H2.16666H3.66666C3.66666 10.867 10.9304 3.65531 19.9997 3.65515L19.9997 2.15515ZM2.16666 19.6552H0.666656C0.666658 30.1478 9.32166 38.655 19.9996 38.6552L19.9997 37.1552L19.9997 35.6552C10.9304 35.655 3.66666 28.4433 3.66666 19.6552H2.16666ZM19.9997 37.1552V38.6552C30.6777 38.6552 39.3336 30.148 39.3336 19.6552H37.8336H36.3336C36.3336 28.4433 29.0692 35.6552 19.9997 35.6552V37.1552ZM37.8336 19.6552H39.3336C39.3336 9.1623 30.6777 0.655151 19.9997 0.655151V2.15515V3.65515C29.0692 3.65515 36.3336 10.867 36.3336 19.6552H37.8336ZM29.6461 12.7557L30.6975 13.8256C30.3082 14.2082 29.6899 14.2064 29.3027 13.8265L30.3532 12.7557L31.4037 11.685C30.6259 10.9219 29.3744 10.9197 28.5948 11.6859L29.6461 12.7557ZM30.3532 12.7557L29.3018 13.8256C28.8989 13.4297 28.8989 12.7772 29.3018 12.3812L30.3532 13.451L31.4046 14.5209C32.198 13.7412 32.1979 12.4656 31.4046 11.6859L30.3532 12.7557ZM30.3532 13.451L29.3018 12.3812L15.9688 25.4847L17.0202 26.5546L18.0716 27.6244L31.4046 14.5209L30.3532 13.451ZM17.0202 26.5546L15.9688 25.4847C16.3582 25.102 16.9764 25.104 17.3636 25.4838L16.3131 26.5546L15.2627 27.6254C16.0404 28.3883 17.2919 28.3907 18.0716 27.6244L17.0202 26.5546ZM16.3131 26.5546L17.3645 25.4847L10.6975 18.9329L9.64615 20.0028L8.59477 21.0727L15.2618 27.6244L16.3131 26.5546ZM9.64615 20.0028L10.6985 18.9339C11.1003 19.3295 11.1008 19.9815 10.6983 20.3776L9.64615 19.3085L8.59401 18.2394C7.8017 19.0191 7.80235 20.2925 8.59377 21.0717L9.64615 20.0028ZM9.64615 19.3085L10.6976 20.3783C10.3089 20.7602 9.69005 20.7597 9.30202 20.3786L10.3532 19.3085L11.4043 18.2384C10.6258 17.4736 9.37383 17.473 8.59474 18.2386L9.64615 19.3085ZM10.3532 19.3085L9.30191 20.3784L15.6154 26.5816L16.6667 25.5116L17.7179 24.4416L11.4044 18.2385L10.3532 19.3085ZM16.6667 25.5116L17.7181 26.5814L30.6976 13.8256L29.6461 12.7557L28.5947 11.6859L15.6153 24.4418L16.6667 25.5116Z" fill="#41A45D" mask="url(#path-1-inside-1_1001_2180)"/></svg>`}export{M as checkCircleIcon};
|