@maskingtech/designsystem 0.0.2 → 0.0.3
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/mtds.css +1 -1
- package/dist/mtds.d.ts +180 -88
- package/dist/mtds.js +250 -429
- package/package.json +11 -10
package/dist/mtds.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.mtds{--font-family: sans-serif;--font-size: 16px;--font-weight-extra-light: 200;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semi-bold: 600;--font-weight-bold: 700;--color-background: transparent;--color-background-hover: #efefef;--color-foreground: #000000;--color-border: #b7b7b7;--color-primary-background: #ffffff;--color-primary-foreground: #000000;--color-secondary-background: #f3f3f3;--color-secondary-foreground: #666666;--color-primary-action-background: #cccccc;--color-primary-action-foreground: #000000;--color-secondary-action-background: #f3f3f3;--color-secondary-action-foreground: #000000;--color-input-background: #ffffff;--color-input-foreground: #000000;--color-alert-background: #d9d9d9;--color-alert-foreground: #666666;--color-error-background: #666666;--color-error-foreground: #f3f3f3;--color-warning-background: #999999;--color-warning-foreground: #f3f3f3;--color-success-background: #efefef;--color-success-foreground: #666666;--margin-container: 0 0 1.2em 0;--width-border: .05em;font-family:var(--font-family);font-size:var(--font-size);background-color:var(--color-background);color:var(--color-foreground);font-weight:var(--font-weight-light)}.mtds *{box-sizing:border-box}.mtds *:is(:last-child){margin-bottom:0}.mtds .dropdown{--background-color: transparent;--background-color-options: var(--color-primary-background);--background-color-options-hover: var(--color-background-hover);--arrow-color: var(--color-alert-foreground);--border-color: var(--color-border);display:inline-block;position:relative;min-width:fit-content;cursor:pointer}.mtds .dropdown .text{background-color:var(--background-color);padding:.8em 2em .8em 0}.mtds .dropdown .text:after{content:"";position:absolute;right:.7em;top:1.2em;border:.45em solid transparent;border-color:var(--arrow-color) transparent transparent transparent}.mtds .dropdown .text.active:after{top:.8em;border-color:transparent transparent var(--arrow-color) transparent}.mtds .dropdown .options{position:absolute;min-width:fit-content;white-space:nowrap;text-align:left;background-color:var(--background-color-options);border:.1em solid var(--border-color)}.mtds .dropdown .options .option{padding:.8em 2em .8em .8em;background:var(--color-primary-background);cursor:pointer}.mtds .dropdown .options .option:hover{background-color:var(--background-color-options-hover)}.mtds .tabs{--margin: var(--margin-container);--foreground-color: var(--color-primary-foreground);--font-size-nav: 1.1em;--background-color-nav-item: transparent;--background-color-nav-item-active: var(--background-color-nav-item);--background-color-nav-item-hover: var(--color-background-hover);--padding-nav-item: .5em 1em;--margin-separator: .2em 0 1em 0;display:flex;flex-direction:column;margin:var(--margin)}.mtds .tabs .nav{display:flex;flex-direction:row;justify-content:center;color:var(--foreground-color);font-size:var(--font-size-nav)}.mtds .tabs .nav .item{background:var(--background-color-nav-item);cursor:pointer;padding:var(--padding-nav-item);width:100%;text-align:center}.mtds .tabs .nav .item:hover,.mtds .tabs .nav .item.active:hover{background:var(--background-color-nav-item-hover)}.mtds .tabs .nav .item.active{background:var(--background-color-nav-item-active);font-weight:var(--font-weight-bold)}.mtds .tabs .separator{margin:var(--margin-separator)}.mtds .avatar{border-radius:50%}.mtds .avatar.fit-fill{object-fit:fill}.mtds .avatar.fit-contain{object-fit:contain}.mtds .avatar.fit-cover{object-fit:cover}.mtds .avatar.fit-none{object-fit:none}.mtds .avatar.fit-scale-down{object-fit:scale-down}.mtds .border{--border-radius: 0;--margin: 0;--color: var(--color-border);--size-large: .3em;--size-medium: .2em;--size-small: .1em;--padding-large: 2em;--padding-medium: 1.5em;--padding-small: 1em;border-color:var(--color);border-radius:var(--border-radius);margin:var(--margin);min-width:0}.mtds .border.type-normal{border-style:solid}.mtds .border.type-dashed{border-style:dashed}.mtds .border.type-dotted{border-style:dotted}.mtds .border.size-large{border-width:var(--size-large)}.mtds .border.size-medium{border-width:var(--size-medium)}.mtds .border.size-small{border-width:var(--size-small)}.mtds .border.padding-none{padding:0}.mtds .border.padding-small{padding:var(--padding-small)}.mtds .border.padding-medium{padding:var(--padding-medium)}.mtds .border.padding-large{padding:var(--padding-large)}.mtds .button{--margin: 0;--border-radius: 2em;--border-style: solid;--border-color: var(--color-border);--border-width: var(--width-border);--size-small: .2em 2.2em;--size-medium: .5em 2.2em;--size-large: .9em 2.2em;--type-primary-background-color: var(--color-primary-action-background);--type-primary-foreground-color: var(--color-primary-action-foreground);--type-secondary-background-color: var(--color-secondary-action-background);--type-secondary-foreground-color: var(--color-secondary-action-foreground);--type-disabled-background-color: transparent;border-radius:var(--border-radius);border:0;cursor:pointer;margin:var(--margin);text-align:center;width:fit-content;font-family:inherit;font-size:inherit}.mtds .button.size-small{padding:var(--size-small)}.mtds .button.size-medium{padding:var(--size-medium)}.mtds .button.size-large{padding:var(--size-large)}.mtds .button.type-primary,.mtds .button.type-submit{background-color:var(--type-primary-background-color);color:var(--type-primary-foreground-color);font-weight:var(--font-weight-bold)}.mtds .button.type-primary:hover,.mtds .button.type-submit:hover{background-color:color-mix(in srgb,black 10%,var(--type-primary-background-color))}.mtds .button.type-primary:focus{background-color:color-mix(in srgb,black 20%,var(--type-primary-background-color))}.mtds .button.type-secondary{background-color:var(--type-secondary-background-color);color:var(--type-secondary-foreground-color);font-weight:var(--font-weight-normal)}.mtds .button.type-secondary:hover{background-color:color-mix(in srgb,black 10%,var(--type-secondary-background-color))}.mtds .button.type-secondary:focus{background-color:color-mix(in srgb,black 20%,var(--type-secondary-background-color))}.mtds .button.type-disabled{background-color:var(--type-disabled-background-color);border-color:var(--border-color);border-style:var(--border-style);border-width:var(--border-width);font-weight:var(--font-weight-light);cursor:default}.mtds .cell.sizing-fixed{flex-grow:0;flex-shrink:0;overflow:hidden}.mtds .cell.sizing-fluid{flex-grow:1;flex-shrink:1;overflow:auto}.mtds .clickarea{--margin: 0;--padding-large: 2em;--padding-medium: 1.5em;--padding-small: 1em;--padding-none: 0;cursor:pointer;display:inline-block;margin:var(--margin);padding:var(--padding)}.mtds .clickarea.padding-none{padding:var(--padding-none)}.mtds .clickarea.padding-small{padding:var(--padding-small)}.mtds .clickarea.padding-medium{padding:var(--padding-medium)}.mtds .clickarea.padding-large{padding:var(--padding-large)}.mtds .column{--gap-small: .4em;--gap-medium: 1em;--gap-large: 2em;display:flex;flex-direction:column;min-width:0;width:100%}.mtds .column>div,.mtds .column>h1,.mtds .column>h2,.mtds .column>h3,.mtds .column>p,.mtds .column>form,.mtds .column>label,.mtds .column>input,.mtds .column>textarea,.mtds .column>select{margin:0}.mtds .column.align-y-top{justify-content:flex-start}.mtds .column.align-y-center{justify-content:center}.mtds .column.align-y-bottom{justify-content:flex-end}.mtds .column.align-y-justify{justify-content:space-between}.mtds .column.align-x-left{align-items:flex-start}.mtds .column.align-x-center{align-items:center}.mtds .column.align-x-right{align-items:flex-end}.mtds .column.align-x-stretch{align-items:stretch}.mtds .column.gap-small{gap:var(--gap-small)}.mtds .column.gap-medium{gap:var(--gap-medium)}.mtds .column.gap-large{gap:var(--gap-large)}.mtds .column.wrap-nowrap{flex-wrap:nowrap}.mtds .column.wrap-wrap{flex-wrap:wrap}.mtds .form{--margin: var(--margin-container);margin:var(--margin);min-width:0}.mtds .grid{--gap-small: .5em;--gap-medium: 1em;--gap-large: 2em;display:grid;min-width:0}.mtds .grid>div,.mtds .grid>h1,.mtds .grid>h2,.mtds .grid>h3,.mtds .grid>p,.mtds .grid>form,.mtds .grid>label,.mtds .grid>input,.mtds .grid>textarea,.mtds .grid>select{margin:0}.mtds .grid.layout-two-columns{grid-template-columns:1fr 1fr}.mtds .grid.layout-three-columns{grid-template-columns:1fr 1fr 1fr}.mtds .grid.layout-four-columns{grid-template-columns:1fr 1fr 1fr 1fr}.mtds .grid.gap-small{grid-gap:var(--gap-small)}.mtds .grid.gap-medium{grid-gap:var(--gap-medium)}.mtds .grid.gap-large{grid-gap:var(--gap-large)}.mtds .icon{--icon-attachment: "📎";--icon-bookmark: "🔖";--icon-box: "☐";--icon-box-checked: "☑";--icon-box-crossed: "☒";--icon-calendar: "📅";--icon-caution: "☡";--icon-check: "✓";--icon-clock: "🕔";--icon-close: "✕";--icon-cloud: "☁";--icon-comment: "💬";--icon-diamond: "♦";--icon-eye: "👁";--icon-flag: "⚑";--icon-heart: "♥";--icon-home: "⌂";--icon-info: "ℹ";--icon-lock: "🔒";--icon-mail: "✉";--icon-music: "♫";--icon-phone: "☎";--icon-piece: "☮";--icon-plus: "➕";--icon-question: "❓";--icon-rain: "⛆";--icon-recycle: "♻";--icon-search: "🔍";--icon-settings: "⚙";--icon-star: "★";--icon-sun: "☀";--icon-tag: "🏷";--icon-trash: "🗑";--icon-umbrella: "☂";--icon-unlock: "🔓";--icon-user: "👤";--icon-video: "🎬";--icon-warning: "⚠";--icon-yinyang: "☯"}.mtds .icon.attachment:before{content:var(--icon-attachment)}.mtds .icon.bookmark:before{content:var(--icon-bookmark)}.mtds .icon.box:before{content:var(--icon-box)}.mtds .icon.box-checked:before{content:var(--icon-box-checked)}.mtds .icon.box-crossed:before{content:var(--icon-box-crossed)}.mtds .icon.calendar:before{content:var(--icon-calendar)}.mtds .icon.caution:before{content:var(--icon-caution)}.mtds .icon.check:before{content:var(--icon-check)}.mtds .icon.clock:before{content:var(--icon-clock)}.mtds .icon.close:before{content:var(--icon-close)}.mtds .icon.cloud:before{content:var(--icon-cloud)}.mtds .icon.comment:before{content:var(--icon-comment)}.mtds .icon.diamond:before{content:var(--icon-diamond)}.mtds .icon.eye:before{content:var(--icon-eye)}.mtds .icon.flag:before{content:var(--icon-flag)}.mtds .icon.heart:before{content:var(--icon-heart)}.mtds .icon.home:before{content:var(--icon-home)}.mtds .icon.info:before{content:var(--icon-info)}.mtds .icon.lock:before{content:var(--icon-lock)}.mtds .icon.mail:before{content:var(--icon-mail)}.mtds .icon.music:before{content:var(--icon-music)}.mtds .icon.phone:before{content:var(--icon-phone)}.mtds .icon.piece:before{content:var(--icon-piece)}.mtds .icon.plus:before{content:var(--icon-plus)}.mtds .icon.question:before{content:var(--icon-question)}.mtds .icon.rain:before{content:var(--icon-rain)}.mtds .icon.recycle:before{content:var(--icon-recycle)}.mtds .icon.search:before{content:var(--icon-search)}.mtds .icon.settings:before{content:var(--icon-settings)}.mtds .icon.star:before{content:var(--icon-star)}.mtds .icon.sun:before{content:var(--icon-sun)}.mtds .icon.tag:before{content:var(--icon-tag)}.mtds .icon.trash:before{content:var(--icon-trash)}.mtds .icon.umbrella:before{content:var(--icon-umbrella)}.mtds .icon.unlock:before{content:var(--icon-unlock)}.mtds .icon.user:before{content:var(--icon-user)}.mtds .icon.video:before{content:var(--icon-video)}.mtds .icon.warning:before{content:var(--icon-warning)}.mtds .icon.yinyang:before{content:var(--icon-yinyang)}.mtds .image.fit-fill{object-fit:fill}.mtds .image.fit-contain{object-fit:contain}.mtds .image.fit-cover{object-fit:cover}.mtds .image.fit-none{object-fit:none}.mtds .image.fit-scale-down{object-fit:scale-down}.mtds .input{--margin: 0 0 1em 0;--gap: .5em;display:flex;flex-direction:column;gap:var(--gap);margin:var(--margin)}.mtds .input .label{font-weight:var(--font-weight-medium)}.mtds .label{--margin: 0;margin:var(--margin)}.mtds .link{--color: var(--color-primary-foreground);--color-hover: var(--color-primary-foreground);--text-decoration: dotted underline;--text-decoration-hover: underline;color:var(--color);text-decoration:var(--text-decoration)}.mtds .link:hover{color:var(--color-hover);text-decoration:var(--text-decoration-hover)}.mtds .modal{border:0;padding:0;min-width:0}.mtds .modal.sizing-full{width:100%}.mtds .modal.sizing-content{width:fit-content}.mtds .panel{--border-radius: 0;--margin: 0 0 1.5em 0;--padding-large: 2em;--padding-medium: 1.5em;--padding-small: 1em;--type-alert-background-color: var(--color-alert-background);--type-alert-foreground-color: var(--color-alert-foreground);--type-error-background-color: var(--color-error-background);--type-error-foreground-color: var(--color-error-foreground);--type-normal-background-color: var(--color-secondary-background);--type-normal-foreground-color: var(--color-primary-foreground);--type-success-background-color: var(--color-success-background);--type-success-foreground-color: var(--color-success-foreground);--type-warning-background-color: var(--color-warning-background);--type-warning-foreground-color: var(--color-warning-foreground);border-radius:var(--border-radius);padding:var(--padding);margin:var(--margin);min-width:0}.mtds .panel.type-alert{background-color:var(--type-alert-background-color);color:var(--type-alert-foreground-color)}.mtds .panel.type-error{background-color:var(--type-error-background-color);color:var(--type-error-foreground-color)}.mtds .panel.type-normal{background-color:var(--type-normal-background-color);color:var(--type-normal-foreground-color)}.mtds .panel.type-success{background-color:var(--type-success-background-color);color:var(--type-success-foreground-color)}.mtds .panel.type-warning{background-color:var(--type-warning-background-color);color:var(--type-warning-foreground-color)}.mtds .panel.type-transparent{background-color:transparent}.mtds .panel.padding-small{padding:var(--padding-small)}.mtds .panel.padding-medium{padding:var(--padding-medium)}.mtds .panel.padding-large{padding:var(--padding-large)}.mtds .paragraph{--margin: var(--margin-container);--line-height: 1.5em;--size-large: 1.5em;--size-medium: 1em;--size-small: .75em;margin:var(--margin);line-height:var(--line-height);min-width:0}.mtds .paragraph.size-large{font-size:var(--size-large)}.mtds .paragraph.size-medium{font-size:var(--size-medium)}.mtds .paragraph.size-small{font-size:var(--size-small)}.mtds .row{--gap-small: .4em;--gap-medium: 1em;--gap-large: 2em;display:flex;flex-direction:row;min-width:0;height:100%}.mtds .row>div,.mtds .row>h1,.mtds .row>h2,.mtds .row>h3,.mtds .row>p,.mtds .row>form,.mtds .row>label,.mtds .row>input,.mtds .row>textarea,.mtds .row>select{margin:0}.mtds .row.align-x-left{justify-content:flex-start}.mtds .row.align-x-center{justify-content:center}.mtds .row.align-x-right{justify-content:flex-end}.mtds .row.align-x-justify{justify-content:space-between}.mtds .row.align-y-top{align-items:flex-start}.mtds .row.align-y-center{align-items:center}.mtds .row.align-y-bottom{align-items:flex-end}.mtds .row.align-y-stretch{align-items:stretch}.mtds .row.gap-small{gap:var(--gap-small)}.mtds .row.gap-medium{gap:var(--gap-medium)}.mtds .row.gap-large{gap:var(--gap-large)}.mtds .row.wrap-nowrap{flex-wrap:nowrap}.mtds .row.wrap-wrap{flex-wrap:wrap}.mtds .ruler{--size-small: .1rem;--size-medium: .2rem;--size-large: .3rem;--color: var(--color-border);background-color:var(--color)}.mtds .ruler.direction-horizontal{width:100%}.mtds .ruler.direction-horizontal.size-small{height:var(--size-small)}.mtds .ruler.direction-horizontal.size-medium{height:var(--size-medium)}.mtds .ruler.direction-horizontal.size-large{height:var(--size-large)}.mtds .ruler.direction-vertical{height:100%}.mtds .ruler.direction-vertical.size-small{width:var(--size-small)}.mtds .ruler.direction-vertical.size-medium{width:var(--size-medium)}.mtds .ruler.direction-vertical.size-large{width:var(--size-large)}.mtds .select{--margin: 0;--size-small: .4em;--size-medium: .8em;--size-large: 1.2em;--border-style: solid;--border-color: var(--color-border);--border-width: var(--width-border);margin:var(--margin);padding:var(--padding);border-style:var(--border-style);border-width:var(--border-width);border-color:var(--border-color);background-color:var(--color-input-background);font-family:inherit;font-size:inherit}.mtds .select:focus-visible{outline-color:color-mix(in srgb,black 10%,var(--border-color))}.mtds .select.size-small{padding:var(--size-small)}.mtds .select.size-medium{padding:var(--size-medium)}.mtds .select.size-large{padding:var(--size-large)}.mtds .spinner{--color: var(--color-border);--size: 2em;--speed: 1.2s;--thickness: .3em;display:inline-block;width:var(--size);height:var(--size)}.mtds .spinner:after{content:" ";display:block;width:var(--size);height:var(--size);border-radius:50%;border:var(--thickness) solid var(--color);border-color:transparent var(--color) transparent var(--color)}.mtds .spinner.active:after{animation:ds-spinner var(--speed) linear infinite}@keyframes ds-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mtds .text{--primary-color: var(--color-primary-foreground);--secondary-color: var(--color-secondary-foreground);--size-small: .9em;--size-medium: 1em;--size-large: 1.2em;display:inline-block}.mtds .text.type-primary{color:var(--primary-color)}.mtds .text.type-secondary{color:var(--secondary-color)}.mtds .text.size-small{font-size:var(--size-small)}.mtds .text.size-medium{font-size:var(--size-medium)}.mtds .text.size-large{font-size:var(--size-large)}.mtds .text.weight-light{font-weight:var(--font-weight-light)}.mtds .text.weight-normal{font-weight:var(--font-weight-normal)}.mtds .text.weight-bold{font-weight:var(--font-weight-bold)}.mtds .text.wrap-none{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mtds .text.wrap-normal{white-space:normal}.mtds .text.wrap-break-word{word-wrap:break-word}.mtds .textarea{--margin: 0;--size-small: .4em;--size-medium: .8em;--size-large: 1.2em;--border-style: solid;--border-color: var(--color-border);--border-width: var(--width-border);margin:var(--margin);padding:var(--padding);border-style:var(--border-style);border-width:var(--border-width);border-color:var(--border-color);background-color:var(--color-input-background);font-family:inherit;font-size:inherit;resize:vertical;width:100%}.mtds .textarea:focus-visible{outline-color:color-mix(in srgb,black 10%,var(--border-color))}.mtds .textarea.size-small{padding:var(--size-small)}.mtds .textarea.size-medium{padding:var(--size-medium)}.mtds .textarea.size-large{padding:var(--size-large)}.mtds .textbox{--margin: 0;--size-small: .4em;--size-medium: .8em;--size-large: 1.2em;--border-style: solid;--border-color: var(--color-border);--border-width: var(--width-border);margin:var(--margin);border-style:var(--border-style);border-width:var(--border-width);border-color:var(--border-color);background-color:var(--color-input-background);font-family:inherit;font-size:inherit}.mtds .textbox:focus-visible{outline-color:color-mix(in srgb,black 10%,var(--border-color))}.mtds .textbox.size-small{padding:var(--size-small)}.mtds .textbox.size-medium{padding:var(--size-medium)}.mtds .textbox.size-large{padding:var(--size-large)}.mtds .title{--margin: 0 0 .8em 0;--size-large: 2em;--size-medium: 1.5em;--size-small: 1em;margin:var(--margin)}.mtds .title.size-large{font-size:var(--size-large)}.mtds .title.size-medium{font-size:var(--size-medium)}.mtds .title.size-small{font-size:var(--size-small)}
|
|
1
|
+
.mtds .avatar{border-radius:50%}.mtds .avatar.fit-fill{object-fit:fill}.mtds .avatar.fit-contain{object-fit:contain}.mtds .avatar.fit-cover{object-fit:cover}.mtds .avatar.fit-none{object-fit:none}.mtds .avatar.fit-scale-down{object-fit:scale-down}.mtds .border{--border-radius: 0;--margin: 0;--color: var(--color-border);--size-large: .3em;--size-medium: .2em;--size-small: .1em;--padding-large: 2em;--padding-medium: 1.5em;--padding-small: 1em;border-color:var(--color);border-radius:var(--border-radius);margin:var(--margin);min-width:0}.mtds .border.type-normal{border-style:solid}.mtds .border.type-dashed{border-style:dashed}.mtds .border.type-dotted{border-style:dotted}.mtds .border.size-large{border-width:var(--size-large)}.mtds .border.size-medium{border-width:var(--size-medium)}.mtds .border.size-small{border-width:var(--size-small)}.mtds .border.padding-none{padding:0}.mtds .border.padding-small{padding:var(--padding-small)}.mtds .border.padding-medium{padding:var(--padding-medium)}.mtds .border.padding-large{padding:var(--padding-large)}.mtds .button{--margin: 0;--border-radius: 2em;--border-style: solid;--border-color: var(--color-border);--border-width: var(--width-border);--size-small: .2em 2.2em;--size-medium: .5em 2.2em;--size-large: .9em 2.2em;--type-primary-background-color: var(--color-primary-action-background);--type-primary-foreground-color: var(--color-primary-action-foreground);--type-secondary-background-color: var(--color-secondary-action-background);--type-secondary-foreground-color: var(--color-secondary-action-foreground);--type-disabled-background-color: transparent;border-radius:var(--border-radius);border:0;cursor:pointer;margin:var(--margin);text-align:center;width:fit-content;font-family:inherit;font-size:inherit}.mtds .button.size-small{padding:var(--size-small)}.mtds .button.size-medium{padding:var(--size-medium)}.mtds .button.size-large{padding:var(--size-large)}.mtds .button.type-primary,.mtds .button.type-submit{background-color:var(--type-primary-background-color);color:var(--type-primary-foreground-color);font-weight:var(--font-weight-bold)}.mtds .button.type-primary:hover,.mtds .button.type-submit:hover{background-color:color-mix(in srgb,black 10%,var(--type-primary-background-color))}.mtds .button.type-primary:focus{background-color:color-mix(in srgb,black 20%,var(--type-primary-background-color))}.mtds .button.type-secondary{background-color:var(--type-secondary-background-color);color:var(--type-secondary-foreground-color);font-weight:var(--font-weight-normal)}.mtds .button.type-secondary:hover{background-color:color-mix(in srgb,black 10%,var(--type-secondary-background-color))}.mtds .button.type-secondary:focus{background-color:color-mix(in srgb,black 20%,var(--type-secondary-background-color))}.mtds .button.type-disabled{background-color:var(--type-disabled-background-color);border-color:var(--border-color);border-style:var(--border-style);border-width:var(--border-width);font-weight:var(--font-weight-light);cursor:default}.mtds .cell.sizing-fixed{flex-grow:0;flex-shrink:0;overflow:hidden}.mtds .cell.sizing-fluid{flex-grow:1;flex-shrink:1;overflow:auto}.mtds .checkbox input{accent-color:var(--color-input-foreground);margin-right:.5em}.mtds .clickarea{--margin: 0;--padding-large: 2em;--padding-medium: 1.5em;--padding-small: 1em;--padding-none: 0;cursor:pointer;display:inline-block;margin:var(--margin);padding:var(--padding)}.mtds .clickarea.padding-none{padding:var(--padding-none)}.mtds .clickarea.padding-small{padding:var(--padding-small)}.mtds .clickarea.padding-medium{padding:var(--padding-medium)}.mtds .clickarea.padding-large{padding:var(--padding-large)}.mtds .column{--gap-small: .4em;--gap-medium: 1em;--gap-large: 2em;display:flex;flex-direction:column;min-width:0;width:100%}.mtds .column>div,.mtds .column>h1,.mtds .column>h2,.mtds .column>h3,.mtds .column>p,.mtds .column>form,.mtds .column>label,.mtds .column>input,.mtds .column>textarea,.mtds .column>select{margin:0}.mtds .column.align-y-top{justify-content:flex-start}.mtds .column.align-y-center{justify-content:center}.mtds .column.align-y-bottom{justify-content:flex-end}.mtds .column.align-y-justify{justify-content:space-between}.mtds .column.align-x-left{align-items:flex-start}.mtds .column.align-x-center{align-items:center}.mtds .column.align-x-right{align-items:flex-end}.mtds .column.align-x-stretch{align-items:stretch}.mtds .column.gap-small{gap:var(--gap-small)}.mtds .column.gap-medium{gap:var(--gap-medium)}.mtds .column.gap-large{gap:var(--gap-large)}.mtds .column.wrap-nowrap{flex-wrap:nowrap}.mtds .column.wrap-wrap{flex-wrap:wrap}.mtds .datetime{--margin: 0;--size-small: .4em;--size-medium: .8em;--size-large: 1.2em;--border-style: solid;--border-color: var(--color-border);--border-width: var(--width-border);margin:var(--margin);border-style:var(--border-style);border-width:var(--border-width);border-color:var(--border-color);background-color:var(--color-input-background);font-family:inherit;font-size:inherit}.mtds .datetime:focus-visible{outline-color:color-mix(in srgb,black 10%,var(--border-color))}.mtds .datetime.size-small{padding:var(--size-small)}.mtds .datetime.size-medium{padding:var(--size-medium)}.mtds .datetime.size-large{padding:var(--size-large)}.mtds .form{margin:0;min-width:0}.mtds .grid{--gap-small: .5em;--gap-medium: 1em;--gap-large: 2em;display:grid;min-width:0}.mtds .grid>div,.mtds .grid>h1,.mtds .grid>h2,.mtds .grid>h3,.mtds .grid>p,.mtds .grid>form,.mtds .grid>label,.mtds .grid>input,.mtds .grid>textarea,.mtds .grid>select{margin:0}.mtds .grid.layout-two-columns{grid-template-columns:1fr 1fr}.mtds .grid.layout-three-columns{grid-template-columns:1fr 1fr 1fr}.mtds .grid.layout-four-columns{grid-template-columns:1fr 1fr 1fr 1fr}.mtds .grid.gap-small{grid-gap:var(--gap-small)}.mtds .grid.gap-medium{grid-gap:var(--gap-medium)}.mtds .grid.gap-large{grid-gap:var(--gap-large)}.mtds .icon{--icon-attachment: "📎";--icon-bookmark: "🔖";--icon-box: "☐";--icon-box-checked: "☑";--icon-box-crossed: "☒";--icon-calendar: "📅";--icon-caution: "☡";--icon-check: "✓";--icon-clock: "🕔";--icon-close: "✕";--icon-cloud: "☁";--icon-comment: "💬";--icon-diamond: "♦";--icon-eye: "👁";--icon-flag: "⚑";--icon-heart: "♥";--icon-home: "⌂";--icon-info: "ℹ";--icon-lock: "🔒";--icon-mail: "✉";--icon-music: "♫";--icon-pencil: "✎";--icon-phone: "☎";--icon-piece: "☮";--icon-plus: "+";--icon-question: "❓";--icon-rain: "⛆";--icon-recycle: "♻";--icon-search: "🔍";--icon-settings: "⚙";--icon-star: "★";--icon-sun: "☀";--icon-tag: "🏷";--icon-trash: "🗑";--icon-umbrella: "☂";--icon-unlock: "🔓";--icon-user: "👤";--icon-video: "🎬";--icon-warning: "⚠";--icon-yinyang: "☯"}.mtds .icon.attachment:before{content:var(--icon-attachment)}.mtds .icon.bookmark:before{content:var(--icon-bookmark)}.mtds .icon.box:before{content:var(--icon-box)}.mtds .icon.box-checked:before{content:var(--icon-box-checked)}.mtds .icon.box-crossed:before{content:var(--icon-box-crossed)}.mtds .icon.calendar:before{content:var(--icon-calendar)}.mtds .icon.caution:before{content:var(--icon-caution)}.mtds .icon.check:before{content:var(--icon-check)}.mtds .icon.clock:before{content:var(--icon-clock)}.mtds .icon.close:before{content:var(--icon-close)}.mtds .icon.cloud:before{content:var(--icon-cloud)}.mtds .icon.comment:before{content:var(--icon-comment)}.mtds .icon.diamond:before{content:var(--icon-diamond)}.mtds .icon.eye:before{content:var(--icon-eye)}.mtds .icon.flag:before{content:var(--icon-flag)}.mtds .icon.heart:before{content:var(--icon-heart)}.mtds .icon.home:before{content:var(--icon-home)}.mtds .icon.info:before{content:var(--icon-info)}.mtds .icon.lock:before{content:var(--icon-lock)}.mtds .icon.mail:before{content:var(--icon-mail)}.mtds .icon.music:before{content:var(--icon-music)}.mtds .icon.pencil:before{content:var(--icon-pencil)}.mtds .icon.phone:before{content:var(--icon-phone)}.mtds .icon.piece:before{content:var(--icon-piece)}.mtds .icon.plus:before{content:var(--icon-plus)}.mtds .icon.question:before{content:var(--icon-question)}.mtds .icon.rain:before{content:var(--icon-rain)}.mtds .icon.recycle:before{content:var(--icon-recycle)}.mtds .icon.search:before{content:var(--icon-search)}.mtds .icon.settings:before{content:var(--icon-settings)}.mtds .icon.star:before{content:var(--icon-star)}.mtds .icon.sun:before{content:var(--icon-sun)}.mtds .icon.tag:before{content:var(--icon-tag)}.mtds .icon.trash:before{content:var(--icon-trash)}.mtds .icon.umbrella:before{content:var(--icon-umbrella)}.mtds .icon.unlock:before{content:var(--icon-unlock)}.mtds .icon.user:before{content:var(--icon-user)}.mtds .icon.video:before{content:var(--icon-video)}.mtds .icon.warning:before{content:var(--icon-warning)}.mtds .icon.yinyang:before{content:var(--icon-yinyang)}.mtds .image.fit-fill{object-fit:fill}.mtds .image.fit-contain{object-fit:contain}.mtds .image.fit-cover{object-fit:cover}.mtds .image.fit-none{object-fit:none}.mtds .image.fit-scale-down{object-fit:scale-down}.mtds .input{--margin: 0 0 1em 0;--gap: .5em;display:flex;flex-direction:column;gap:var(--gap);margin:var(--margin)}.mtds .input label,.mtds .input input,.mtds .input textarea,.mtds .input select{width:100%}.mtds .label{--margin: 0;font-weight:var(--font-weight-medium);margin:var(--margin)}.mtds .link{--color: var(--color-primary-foreground);--color-hover: var(--color-primary-foreground);--text-decoration: dotted underline;--text-decoration-hover: underline;color:var(--color);text-decoration:var(--text-decoration)}.mtds .link:hover{color:var(--color-hover);text-decoration:var(--text-decoration-hover)}.mtds .modal{border:0;padding:0;min-width:0}.mtds .modal.sizing-full{width:100%}.mtds .modal.sizing-content{width:fit-content}.mtds .panel{--border-radius: 0;--margin: 0 0 1.5em 0;--padding-large: 2em;--padding-medium: 1.5em;--padding-small: 1em;--type-alert-background-color: var(--color-alert-background);--type-alert-foreground-color: var(--color-alert-foreground);--type-error-background-color: var(--color-error-background);--type-error-foreground-color: var(--color-error-foreground);--type-normal-background-color: var(--color-secondary-background);--type-normal-foreground-color: var(--color-primary-foreground);--type-success-background-color: var(--color-success-background);--type-success-foreground-color: var(--color-success-foreground);--type-warning-background-color: var(--color-warning-background);--type-warning-foreground-color: var(--color-warning-foreground);border-radius:var(--border-radius);padding:var(--padding);margin:var(--margin);min-width:0}.mtds .panel.type-alert{background-color:var(--type-alert-background-color);color:var(--type-alert-foreground-color)}.mtds .panel.type-error{background-color:var(--type-error-background-color);color:var(--type-error-foreground-color)}.mtds .panel.type-normal{background-color:var(--type-normal-background-color);color:var(--type-normal-foreground-color)}.mtds .panel.type-success{background-color:var(--type-success-background-color);color:var(--type-success-foreground-color)}.mtds .panel.type-warning{background-color:var(--type-warning-background-color);color:var(--type-warning-foreground-color)}.mtds .panel.type-transparent{background-color:transparent}.mtds .panel.padding-small{padding:var(--padding-small)}.mtds .panel.padding-medium{padding:var(--padding-medium)}.mtds .panel.padding-large{padding:var(--padding-large)}.mtds .paragraph{--margin: var(--margin-container);--line-height: 1.5em;--size-large: 1.5em;--size-medium: 1em;--size-small: .75em;margin:var(--margin);line-height:var(--line-height);min-width:0}.mtds .paragraph.size-large{font-size:var(--size-large)}.mtds .paragraph.size-medium{font-size:var(--size-medium)}.mtds .paragraph.size-small{font-size:var(--size-small)}.mtds .row{--gap-small: .4em;--gap-medium: 1em;--gap-large: 2em;display:flex;flex-direction:row;min-width:0;height:100%}.mtds .row>div,.mtds .row>h1,.mtds .row>h2,.mtds .row>h3,.mtds .row>p,.mtds .row>form,.mtds .row>label,.mtds .row>input,.mtds .row>textarea,.mtds .row>select{margin:0}.mtds .row.align-x-left{justify-content:flex-start}.mtds .row.align-x-center{justify-content:center}.mtds .row.align-x-right{justify-content:flex-end}.mtds .row.align-x-justify{justify-content:space-between}.mtds .row.align-y-top{align-items:flex-start}.mtds .row.align-y-center{align-items:center}.mtds .row.align-y-bottom{align-items:flex-end}.mtds .row.align-y-stretch{align-items:stretch}.mtds .row.gap-small{gap:var(--gap-small)}.mtds .row.gap-medium{gap:var(--gap-medium)}.mtds .row.gap-large{gap:var(--gap-large)}.mtds .row.wrap-nowrap{flex-wrap:nowrap}.mtds .row.wrap-wrap{flex-wrap:wrap}.mtds .ruler{--size-small: .1rem;--size-medium: .2rem;--size-large: .3rem;--color: var(--color-border);background-color:var(--color)}.mtds .ruler.direction-horizontal{width:100%}.mtds .ruler.direction-horizontal.size-small{height:var(--size-small)}.mtds .ruler.direction-horizontal.size-medium{height:var(--size-medium)}.mtds .ruler.direction-horizontal.size-large{height:var(--size-large)}.mtds .ruler.direction-vertical{height:100%}.mtds .ruler.direction-vertical.size-small{width:var(--size-small)}.mtds .ruler.direction-vertical.size-medium{width:var(--size-medium)}.mtds .ruler.direction-vertical.size-large{width:var(--size-large)}.mtds .select{--margin: 0;--size-small: .4em;--size-medium: .8em;--size-large: 1.2em;--border-style: solid;--border-color: var(--color-border);--border-width: var(--width-border);margin:var(--margin);padding:var(--padding);border-style:var(--border-style);border-width:var(--border-width);border-color:var(--border-color);background-color:var(--color-input-background);font-family:inherit;font-size:inherit}.mtds .select:focus-visible{outline-color:color-mix(in srgb,black 10%,var(--border-color))}.mtds .select.size-small{padding:var(--size-small)}.mtds .select.size-medium{padding:var(--size-medium)}.mtds .select.size-large{padding:var(--size-large)}.mtds .spinner{--color: var(--color-border);--size: 2em;--speed: 1.2s;--thickness: .3em;display:inline-block;width:var(--size);height:var(--size)}.mtds .spinner:after{content:" ";display:block;width:var(--size);height:var(--size);border-radius:50%;border:var(--thickness) solid var(--color);border-color:transparent var(--color) transparent var(--color)}.mtds .spinner.active:after{animation:ds-spinner var(--speed) linear infinite}@keyframes ds-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mtds .table{--padding-large: 1em;--padding-medium: .7em;--padding-small: .4em;--header-background-color: var(--color-border);--header-forground-color: var(--color-primary-foreground);--row-odd-color: var(--color-primary-background);--row-even-color: var(--color-secondary-background);--footer-border-small: .1rem;--footer-border-medium: .2rem;--footer-border-large: .3rem;--footer-border-color: var(--color-border);--footer-forground-color: var(--color-primary-foreground);border-collapse:collapse;margin:0}.mtds .table thead{background-color:var(--header-background-color);color:var(--header-forground-color);font-weight:700;margin:0}.mtds .table tbody tr:nth-child(odd){background-color:var(--row-odd-color)}.mtds .table tbody tr:nth-child(2n){background-color:var(--row-even-color)}.mtds .table tbody.border-none{border-bottom:0}.mtds .table tbody.border-small{border-bottom:var(--footer-border-small) solid var(--footer-border-color)}.mtds .table tbody.border-medium{border-bottom:var(--footer-border-medium) solid var(--footer-border-color)}.mtds .table tbody.border-large{border-bottom:var(--footer-border-large) solid var(--footer-border-color)}.mtds .table tfoot{color:var(--footer-forground-color);font-weight:700}.mtds .table td.align-x-left{text-align:left}.mtds .table td.align-x-center{text-align:center}.mtds .table td.align-x-right{text-align:right}.mtds .table td.align-y-top{vertical-align:top}.mtds .table td.align-y-center{vertical-align:center}.mtds .table td.align-y-bottom{vertical-align:bottom}.mtds .table td.size-95{width:95%}.mtds .table td.size-90{width:90%}.mtds .table td.size-85{width:85%}.mtds .table td.size-80{width:80%}.mtds .table td.size-75{width:75%}.mtds .table td.size-70{width:70%}.mtds .table td.size-65{width:65%}.mtds .table td.size-60{width:60%}.mtds .table td.size-55{width:55%}.mtds .table td.size-50{width:50%}.mtds .table td.size-45{width:45%}.mtds .table td.size-40{width:40%}.mtds .table td.size-35{width:35%}.mtds .table td.size-30{width:30%}.mtds .table td.size-25{width:25%}.mtds .table td.size-20{width:20%}.mtds .table td.size-15{width:15%}.mtds .table td.size-10{width:10%}.mtds .table td.size-5{width:5%}.mtds .table td.size-fit{width:auto}.mtds .table.padding-large td{padding:var(--padding-large)}.mtds .table.padding-medium td{padding:var(--padding-medium)}.mtds .table.padding-small td{padding:var(--padding-small)}.mtds .text{--primary-color: var(--color-primary-foreground);--secondary-color: var(--color-secondary-foreground);--size-small: .9em;--size-medium: 1em;--size-large: 1.2em;display:inline-block}.mtds .text.type-primary{color:var(--primary-color)}.mtds .text.type-secondary{color:var(--secondary-color)}.mtds .text.size-small{font-size:var(--size-small)}.mtds .text.size-medium{font-size:var(--size-medium)}.mtds .text.size-large{font-size:var(--size-large)}.mtds .text.weight-light{font-weight:var(--font-weight-light)}.mtds .text.weight-normal{font-weight:var(--font-weight-normal)}.mtds .text.weight-bold{font-weight:var(--font-weight-bold)}.mtds .text.wrap-none{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mtds .text.wrap-normal{white-space:normal}.mtds .text.wrap-break-word{word-wrap:break-word}.mtds .textarea{--margin: 0;--size-small: .4em;--size-medium: .8em;--size-large: 1.2em;--border-style: solid;--border-color: var(--color-border);--border-width: var(--width-border);margin:var(--margin);padding:var(--padding);border-style:var(--border-style);border-width:var(--border-width);border-color:var(--border-color);background-color:var(--color-input-background);font-family:inherit;font-size:inherit;resize:vertical;width:100%}.mtds .textarea:focus-visible{outline-color:color-mix(in srgb,black 10%,var(--border-color))}.mtds .textarea.size-small{padding:var(--size-small)}.mtds .textarea.size-medium{padding:var(--size-medium)}.mtds .textarea.size-large{padding:var(--size-large)}.mtds .textbox{--margin: 0;--size-small: .4em;--size-medium: .8em;--size-large: 1.2em;--border-style: solid;--border-color: var(--color-border);--border-width: var(--width-border);margin:var(--margin);border-style:var(--border-style);border-width:var(--border-width);border-color:var(--border-color);background-color:var(--color-input-background);font-family:inherit;font-size:inherit}.mtds .textbox:focus-visible{outline-color:color-mix(in srgb,black 10%,var(--border-color))}.mtds .textbox.size-small{padding:var(--size-small)}.mtds .textbox.size-medium{padding:var(--size-medium)}.mtds .textbox.size-large{padding:var(--size-large)}.mtds .title{--margin: 0 0 .8em 0;--size-large: 2em;--size-medium: 1.5em;--size-small: 1em;margin:var(--margin)}.mtds .title.size-large{font-size:var(--size-large)}.mtds .title.size-medium{font-size:var(--size-medium)}.mtds .title.size-small{font-size:var(--size-small)}.mtds .dropdown{--background-color: transparent;--background-color-options: var(--color-primary-background);--background-color-options-hover: var(--color-background-hover);--arrow-color: var(--color-alert-foreground);--border-color: var(--color-border);display:inline-block;position:relative;min-width:fit-content;cursor:pointer}.mtds .dropdown .text{background-color:var(--background-color);padding:.8em 2em .8em 0}.mtds .dropdown .text:after{content:"";position:absolute;right:.7em;top:1.2em;border:.45em solid transparent;border-color:var(--arrow-color) transparent transparent transparent}.mtds .dropdown .text.active:after{top:.8em;border-color:transparent transparent var(--arrow-color) transparent}.mtds .dropdown .options{position:absolute;min-width:fit-content;white-space:nowrap;text-align:left;background-color:var(--background-color-options);border:.1em solid var(--border-color)}.mtds .dropdown .options .option{padding:.8em 2em .8em .8em;background:var(--color-primary-background);cursor:pointer}.mtds .dropdown .options .option:hover{background-color:var(--background-color-options-hover)}.mtds .tabs{--margin: var(--margin-container);--foreground-color: var(--color-primary-foreground);--font-size-nav: 1.1em;--background-color-nav-item: transparent;--background-color-nav-item-active: var(--background-color-nav-item);--background-color-nav-item-hover: var(--color-background-hover);--padding-nav-item: .5em 1em;--margin-separator: .2em 0 1em 0;display:flex;flex-direction:column;margin:var(--margin)}.mtds .tabs .nav{display:flex;flex-direction:row;justify-content:center;color:var(--foreground-color);font-size:var(--font-size-nav)}.mtds .tabs .nav .item{background:var(--background-color-nav-item);cursor:pointer;padding:var(--padding-nav-item);width:100%;text-align:center}.mtds .tabs .nav .item:hover,.mtds .tabs .nav .item.active:hover{background:var(--background-color-nav-item-hover)}.mtds .tabs .nav .item.active{background:var(--background-color-nav-item-active);font-weight:var(--font-weight-bold)}.mtds .tabs .separator{margin:var(--margin-separator)}.mtds{--font-family: sans-serif;--font-size: 16px;--font-weight-extra-light: 200;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semi-bold: 600;--font-weight-bold: 700;--color-background: transparent;--color-background-hover: #efefef;--color-foreground: #000000;--color-border: #b7b7b7;--color-primary-background: #ffffff;--color-primary-foreground: #000000;--color-secondary-background: #f3f3f3;--color-secondary-foreground: #666666;--color-primary-action-background: #cccccc;--color-primary-action-foreground: #000000;--color-secondary-action-background: #f3f3f3;--color-secondary-action-foreground: #000000;--color-input-background: #ffffff;--color-input-foreground: #000000;--color-alert-background: #d9d9d9;--color-alert-foreground: #666666;--color-error-background: #666666;--color-error-foreground: #f3f3f3;--color-warning-background: #999999;--color-warning-foreground: #f3f3f3;--color-success-background: #efefef;--color-success-foreground: #666666;--margin-container: 0 0 1.2em 0;--width-border: .05em;font-family:var(--font-family);font-size:var(--font-size);background-color:var(--color-background);color:var(--color-foreground);font-weight:var(--font-weight-light)}.mtds *{box-sizing:border-box}.mtds *:is(:last-child){margin-bottom:0}
|
package/dist/mtds.d.ts
CHANGED
|
@@ -5,71 +5,79 @@ import { ReactElement } from 'react';
|
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { RefAttributes } from 'react';
|
|
7
7
|
|
|
8
|
-
export declare function Avatar({ source, title, alt, width, height, fit }:
|
|
8
|
+
export declare function Avatar({ source, title, alt, width, height, fit }: Props): JSX.Element;
|
|
9
9
|
|
|
10
|
-
export declare function Border({ type, size, padding, children }:
|
|
10
|
+
export declare function Border({ type, size, padding, children }: Props_2): JSX.Element;
|
|
11
11
|
|
|
12
|
-
export declare function Button({ type, size, text, onClick }:
|
|
12
|
+
export declare function Button({ type, size, text, onClick }: Props_3): JSX.Element;
|
|
13
13
|
|
|
14
|
-
export declare function Cell({ sizing, children }:
|
|
14
|
+
export declare function Cell({ sizing, children }: Props_4): JSX.Element;
|
|
15
15
|
|
|
16
|
-
export declare
|
|
16
|
+
export declare const CheckBox: ForwardRefExoticComponent<Props_5 & RefAttributes<HTMLInputElement>>;
|
|
17
17
|
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function ClickArea({ padding, onClick, children }: Props_6): JSX.Element;
|
|
19
19
|
|
|
20
|
-
export declare function
|
|
20
|
+
export declare function Column({ alignX, alignY, gap, wrap, children }: Props_7): JSX.Element;
|
|
21
21
|
|
|
22
|
-
export declare
|
|
22
|
+
export declare const DateTime: ForwardRefExoticComponent<Props_8 & RefAttributes<HTMLInputElement>>;
|
|
23
23
|
|
|
24
|
-
export declare
|
|
24
|
+
export declare function DesignSystem({ children }: Props_37): JSX.Element;
|
|
25
25
|
|
|
26
|
-
export declare function
|
|
26
|
+
export declare function Dropdown({ options, selected, onChange }: Props_33): JSX.Element;
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
declare function Element_2({ children }: Props_26): JSX.Element;
|
|
29
29
|
|
|
30
|
-
declare function
|
|
30
|
+
declare function Element_3({ border, children }: Props_29): JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare function Element_4({ children }: Props_30): JSX.Element;
|
|
33
|
+
|
|
34
|
+
declare function Element_5({ children }: Props_27): JSX.Element;
|
|
35
|
+
|
|
36
|
+
declare function Element_6({ colspan, rowspan, alignX, alignY, size, children }: Props_28): JSX.Element;
|
|
37
|
+
|
|
38
|
+
export declare const Form: ForwardRefExoticComponent<Props_9 & RefAttributes<HTMLFormElement>>;
|
|
39
|
+
|
|
40
|
+
export declare function Grid({ layout, gap, children }: Props_10): JSX.Element;
|
|
41
|
+
|
|
42
|
+
export declare function Icon({ type }: Props_11): JSX.Element;
|
|
43
|
+
|
|
44
|
+
declare function Image_2({ source, title, alt, width, height, fit }: Props_12): JSX.Element;
|
|
31
45
|
export { Image_2 as Image }
|
|
32
46
|
|
|
33
|
-
export declare function Input({ label, element }:
|
|
47
|
+
export declare function Input({ label, element }: Props_13): JSX.Element;
|
|
48
|
+
|
|
49
|
+
export declare function Label({ value }: Props_14): JSX.Element;
|
|
34
50
|
|
|
35
|
-
export declare function
|
|
51
|
+
export declare function Link({ url, target, children }: Props_18): JSX.Element;
|
|
36
52
|
|
|
37
|
-
export declare function
|
|
53
|
+
export declare function Modal({ open, sizing, children }: Props_19): JSX.Element;
|
|
38
54
|
|
|
39
|
-
export declare function
|
|
55
|
+
export declare function ModalManager({ selectedId, children }: Props_34): JSX.Element;
|
|
40
56
|
|
|
41
|
-
export declare function Panel({ type, padding, children }:
|
|
57
|
+
export declare function Panel({ type, padding, children }: Props_20): JSX.Element;
|
|
42
58
|
|
|
43
|
-
export declare function Paragraph({ size, children }:
|
|
59
|
+
export declare function Paragraph({ size, children }: Props_21): JSX.Element;
|
|
44
60
|
|
|
45
61
|
declare type Props = {
|
|
46
|
-
readonly
|
|
62
|
+
readonly source: string;
|
|
63
|
+
readonly title?: string;
|
|
64
|
+
readonly alt?: string;
|
|
65
|
+
readonly width?: string;
|
|
66
|
+
readonly height?: string;
|
|
67
|
+
readonly fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
47
68
|
};
|
|
48
69
|
|
|
49
70
|
declare type Props_10 = {
|
|
50
|
-
readonly
|
|
51
|
-
readonly alignY?: 'top' | 'center' | 'bottom' | 'justify';
|
|
71
|
+
readonly layout: 'two-columns' | 'three-columns' | 'four-columns';
|
|
52
72
|
readonly gap?: 'large' | 'medium' | 'small' | 'none';
|
|
53
|
-
readonly wrap?: 'wrap' | 'nowrap';
|
|
54
73
|
readonly children: ReactNode;
|
|
55
74
|
};
|
|
56
75
|
|
|
57
76
|
declare type Props_11 = {
|
|
58
|
-
readonly
|
|
59
|
-
readonly submitHandler?: (form: HTMLFormElement) => void;
|
|
77
|
+
readonly type: 'attachment' | 'bookmark' | 'box' | 'box-checked' | 'box-crossed' | 'calendar' | 'caution' | 'check' | 'clock' | 'close' | 'cloud' | 'comment' | 'diamond' | 'eye' | 'flag' | 'heart' | 'home' | 'info' | 'lock' | 'mail' | 'music' | 'pencil' | 'phone' | 'piece' | 'plus' | 'question' | 'rain' | 'recycle' | 'search' | 'settings' | 'star' | 'sun' | 'tag' | 'trash' | 'umbrella' | 'unlock' | 'user' | 'video' | 'warning' | 'yinyang';
|
|
60
78
|
};
|
|
61
79
|
|
|
62
80
|
declare type Props_12 = {
|
|
63
|
-
readonly layout: 'two-columns' | 'three-columns' | 'four-columns';
|
|
64
|
-
readonly gap?: 'large' | 'medium' | 'small' | 'none';
|
|
65
|
-
readonly children: ReactNode;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
declare type Props_13 = {
|
|
69
|
-
readonly type: 'attachment' | 'bookmark' | 'box' | 'box-checked' | 'box-crossed' | 'calendar' | 'caution' | 'check' | 'clock' | 'close' | 'cloud' | 'comment' | 'diamond' | 'eye' | 'flag' | 'heart' | 'home' | 'info' | 'lock' | 'mail' | 'music' | 'phone' | 'piece' | 'plus' | 'question' | 'rain' | 'recycle' | 'search' | 'settings' | 'star' | 'sun' | 'tag' | 'trash' | 'umbrella' | 'unlock' | 'user' | 'video' | 'warning' | 'yinyang';
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
declare type Props_14 = {
|
|
73
81
|
readonly source: string;
|
|
74
82
|
readonly title?: string;
|
|
75
83
|
readonly alt?: string;
|
|
@@ -78,30 +86,33 @@ declare type Props_14 = {
|
|
|
78
86
|
readonly fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
79
87
|
};
|
|
80
88
|
|
|
81
|
-
declare type
|
|
82
|
-
readonly label: ReactElement<
|
|
83
|
-
readonly element: ReactElement<
|
|
89
|
+
declare type Props_13 = {
|
|
90
|
+
readonly label: ReactElement<Props_14>;
|
|
91
|
+
readonly element: ReactElement<Props_15> | ReactElement<Props_16> | ReactElement<Props_17>;
|
|
84
92
|
};
|
|
85
93
|
|
|
86
|
-
declare type
|
|
94
|
+
declare type Props_14 = {
|
|
87
95
|
readonly value: string;
|
|
88
96
|
};
|
|
89
97
|
|
|
90
|
-
declare type
|
|
98
|
+
declare type Props_15 = {
|
|
91
99
|
readonly name: string;
|
|
92
100
|
readonly placeholder?: string;
|
|
101
|
+
readonly defaultValue?: string;
|
|
93
102
|
readonly value?: string;
|
|
94
103
|
readonly limit?: number;
|
|
95
104
|
readonly pattern?: string;
|
|
96
105
|
readonly title?: string;
|
|
106
|
+
readonly type?: 'email' | 'number' | 'password' | 'search' | 'text' | 'tel' | 'url';
|
|
97
107
|
readonly size?: 'large' | 'medium' | 'small';
|
|
98
108
|
readonly required?: boolean;
|
|
99
109
|
readonly onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
100
110
|
};
|
|
101
111
|
|
|
102
|
-
declare type
|
|
112
|
+
declare type Props_16 = {
|
|
103
113
|
readonly name: string;
|
|
104
114
|
readonly placeholder?: string;
|
|
115
|
+
readonly defaultValue?: string;
|
|
105
116
|
readonly value?: string;
|
|
106
117
|
readonly size?: 'large' | 'medium' | 'small';
|
|
107
118
|
readonly rows?: number;
|
|
@@ -109,44 +120,47 @@ declare type Props_18 = {
|
|
|
109
120
|
readonly onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
110
121
|
};
|
|
111
122
|
|
|
112
|
-
declare type
|
|
123
|
+
declare type Props_17 = {
|
|
113
124
|
readonly name: string;
|
|
114
125
|
readonly options: Map<string, string>;
|
|
126
|
+
readonly defaultValue?: string;
|
|
115
127
|
readonly value?: string;
|
|
116
128
|
readonly size?: 'large' | 'medium' | 'small';
|
|
117
129
|
readonly onChange?: ChangeEventHandler<HTMLSelectElement>;
|
|
118
130
|
};
|
|
119
131
|
|
|
120
|
-
declare type
|
|
121
|
-
readonly options: Map<string, string>;
|
|
122
|
-
readonly selected?: string;
|
|
123
|
-
readonly onChange?: (oldKey: string, newKey: string) => void;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
declare type Props_20 = {
|
|
132
|
+
declare type Props_18 = {
|
|
127
133
|
readonly url?: string;
|
|
128
134
|
readonly target?: string;
|
|
129
135
|
readonly children: ReactNode;
|
|
130
136
|
};
|
|
131
137
|
|
|
132
|
-
declare type
|
|
133
|
-
readonly
|
|
138
|
+
declare type Props_19 = {
|
|
139
|
+
readonly id?: string;
|
|
140
|
+
readonly open?: boolean;
|
|
134
141
|
readonly sizing?: 'full' | 'content';
|
|
135
142
|
readonly children?: ReactNode;
|
|
136
143
|
};
|
|
137
144
|
|
|
138
|
-
declare type
|
|
145
|
+
declare type Props_2 = {
|
|
146
|
+
readonly type?: 'normal' | 'dashed' | 'dotted';
|
|
147
|
+
readonly size?: 'large' | 'medium' | 'small';
|
|
148
|
+
readonly padding?: 'large' | 'medium' | 'small' | 'none';
|
|
149
|
+
readonly children?: ReactNode;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
declare type Props_20 = {
|
|
139
153
|
readonly type?: 'normal' | 'alert' | 'warning' | 'success' | 'error' | 'transparent';
|
|
140
154
|
readonly padding?: 'large' | 'medium' | 'small';
|
|
141
155
|
readonly children?: ReactNode;
|
|
142
156
|
};
|
|
143
157
|
|
|
144
|
-
declare type
|
|
158
|
+
declare type Props_21 = {
|
|
145
159
|
readonly size?: 'large' | 'medium' | 'small';
|
|
146
160
|
readonly children: ReactNode;
|
|
147
161
|
};
|
|
148
162
|
|
|
149
|
-
declare type
|
|
163
|
+
declare type Props_22 = {
|
|
150
164
|
readonly alignX?: 'left' | 'center' | 'right' | 'justify';
|
|
151
165
|
readonly alignY?: 'top' | 'center' | 'bottom' | 'stretch';
|
|
152
166
|
readonly gap?: 'large' | 'medium' | 'small' | 'none';
|
|
@@ -154,16 +168,54 @@ declare type Props_24 = {
|
|
|
154
168
|
readonly children: ReactNode;
|
|
155
169
|
};
|
|
156
170
|
|
|
157
|
-
declare type
|
|
171
|
+
declare type Props_23 = {
|
|
158
172
|
readonly direction: 'horizontal' | 'vertical';
|
|
159
173
|
readonly size?: 'small' | 'medium' | 'large';
|
|
160
174
|
};
|
|
161
175
|
|
|
162
|
-
declare type
|
|
176
|
+
declare type Props_24 = {
|
|
163
177
|
readonly active?: boolean;
|
|
164
178
|
};
|
|
165
179
|
|
|
180
|
+
declare type Props_25 = {
|
|
181
|
+
readonly padding?: 'large' | 'medium' | 'small';
|
|
182
|
+
readonly children?: ReactElement<Props_26> | ReactElement<Props_29> | ReactElement<Props_30>[];
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
declare type Props_26 = {
|
|
186
|
+
readonly children?: ReactElement<Props_27>;
|
|
187
|
+
};
|
|
188
|
+
|
|
166
189
|
declare type Props_27 = {
|
|
190
|
+
readonly children?: ReactElement<Props_28>;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
declare type Props_28 = {
|
|
194
|
+
readonly colspan?: number;
|
|
195
|
+
readonly rowspan?: number;
|
|
196
|
+
readonly alignX?: 'left' | 'center' | 'right';
|
|
197
|
+
readonly alignY?: 'top' | 'center' | 'bottom';
|
|
198
|
+
readonly size?: '95' | '90' | '85' | '80' | '75' | '70' | '65' | '60' | '55' | '50' | '45' | '40' | '35' | '30' | '25' | '20' | '25' | '10' | '5' | 'fit';
|
|
199
|
+
readonly children?: ReactNode;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
declare type Props_29 = {
|
|
203
|
+
readonly border?: 'large' | 'medium' | 'small' | 'none';
|
|
204
|
+
readonly children?: ReactElement<Props_27>;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
declare type Props_3 = {
|
|
208
|
+
readonly type?: 'submit' | 'primary' | 'secondary' | 'disabled';
|
|
209
|
+
readonly size?: 'large' | 'medium' | 'small';
|
|
210
|
+
readonly text: string;
|
|
211
|
+
readonly onClick?: () => void;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
declare type Props_30 = {
|
|
215
|
+
readonly children?: ReactElement<Props_27>;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
declare type Props_31 = {
|
|
167
219
|
readonly value: string;
|
|
168
220
|
readonly type?: 'primary' | 'secondary';
|
|
169
221
|
readonly size?: 'large' | 'medium' | 'small';
|
|
@@ -171,77 +223,117 @@ declare type Props_27 = {
|
|
|
171
223
|
readonly wrap?: 'none' | 'normal' | 'break-word';
|
|
172
224
|
};
|
|
173
225
|
|
|
174
|
-
declare type
|
|
226
|
+
declare type Props_32 = {
|
|
175
227
|
readonly size?: 'large' | 'medium' | 'small';
|
|
176
228
|
readonly children: ReactNode;
|
|
177
229
|
};
|
|
178
230
|
|
|
179
|
-
declare type
|
|
231
|
+
declare type Props_33 = {
|
|
232
|
+
readonly options: Map<string, string>;
|
|
233
|
+
readonly selected?: string;
|
|
234
|
+
readonly onChange?: (oldKey: string, newKey: string) => void;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
declare type Props_34 = {
|
|
238
|
+
readonly selectedId?: string;
|
|
239
|
+
readonly children: ReactElement<Props_19> | ReactElement<Props_19>[];
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
declare type Props_35 = {
|
|
243
|
+
readonly separator?: ReactNode;
|
|
244
|
+
readonly selectedId?: string;
|
|
245
|
+
readonly children: ReactElement<Props_36> | ReactElement<Props_36>[];
|
|
246
|
+
readonly onChange?: (newId: string, oldId?: string) => void;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
declare type Props_36 = {
|
|
180
250
|
readonly id: string;
|
|
181
251
|
readonly title: ReactNode;
|
|
182
252
|
readonly children: ReactNode;
|
|
183
253
|
};
|
|
184
254
|
|
|
255
|
+
declare type Props_37 = {
|
|
256
|
+
readonly children?: ReactNode;
|
|
257
|
+
};
|
|
258
|
+
|
|
185
259
|
declare type Props_4 = {
|
|
186
|
-
readonly
|
|
187
|
-
readonly
|
|
188
|
-
readonly children: ReactElement<Props_3> | ReactElement<Props_3>[];
|
|
189
|
-
readonly onChange?: (newId: string, oldId?: string) => void;
|
|
260
|
+
readonly sizing?: 'fixed' | 'fluid';
|
|
261
|
+
readonly children: ReactNode;
|
|
190
262
|
};
|
|
191
263
|
|
|
192
264
|
declare type Props_5 = {
|
|
193
|
-
readonly
|
|
194
|
-
readonly
|
|
195
|
-
readonly
|
|
196
|
-
readonly
|
|
197
|
-
readonly
|
|
198
|
-
readonly
|
|
265
|
+
readonly name: string;
|
|
266
|
+
readonly label: string;
|
|
267
|
+
readonly defaultChecked?: boolean;
|
|
268
|
+
readonly checked?: boolean;
|
|
269
|
+
readonly value?: string;
|
|
270
|
+
readonly required?: boolean;
|
|
271
|
+
readonly onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
199
272
|
};
|
|
200
273
|
|
|
201
274
|
declare type Props_6 = {
|
|
202
|
-
readonly type?: 'normal' | 'dashed' | 'dotted';
|
|
203
|
-
readonly size?: 'large' | 'medium' | 'small';
|
|
204
275
|
readonly padding?: 'large' | 'medium' | 'small' | 'none';
|
|
276
|
+
readonly onClick?: () => void;
|
|
205
277
|
readonly children?: ReactNode;
|
|
206
278
|
};
|
|
207
279
|
|
|
208
280
|
declare type Props_7 = {
|
|
209
|
-
readonly
|
|
210
|
-
readonly
|
|
211
|
-
readonly
|
|
212
|
-
readonly
|
|
281
|
+
readonly alignX?: 'left' | 'center' | 'right' | 'stretch';
|
|
282
|
+
readonly alignY?: 'top' | 'center' | 'bottom' | 'justify';
|
|
283
|
+
readonly gap?: 'large' | 'medium' | 'small' | 'none';
|
|
284
|
+
readonly wrap?: 'wrap' | 'nowrap';
|
|
285
|
+
readonly children: ReactNode;
|
|
213
286
|
};
|
|
214
287
|
|
|
215
288
|
declare type Props_8 = {
|
|
216
|
-
readonly
|
|
217
|
-
readonly
|
|
289
|
+
readonly name: string;
|
|
290
|
+
readonly defaultValue?: string;
|
|
291
|
+
readonly value?: string;
|
|
292
|
+
readonly title?: string;
|
|
293
|
+
readonly type?: 'datetime' | 'date' | 'time' | 'month' | 'week';
|
|
294
|
+
readonly size?: 'large' | 'medium' | 'small';
|
|
295
|
+
readonly required?: boolean;
|
|
296
|
+
readonly onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
218
297
|
};
|
|
219
298
|
|
|
220
299
|
declare type Props_9 = {
|
|
221
|
-
readonly
|
|
222
|
-
readonly
|
|
223
|
-
readonly children?: ReactNode;
|
|
300
|
+
readonly children: ReactNode;
|
|
301
|
+
readonly submitHandler?: (form: HTMLFormElement) => void;
|
|
224
302
|
};
|
|
225
303
|
|
|
226
|
-
export declare function Row({ alignX, alignY, gap, wrap, children }:
|
|
304
|
+
export declare function Row({ alignX, alignY, gap, wrap, children }: Props_22): JSX.Element;
|
|
305
|
+
|
|
306
|
+
export declare function Ruler({ direction, size }: Props_23): JSX.Element;
|
|
307
|
+
|
|
308
|
+
export declare const Select: ForwardRefExoticComponent<Props_17 & RefAttributes<HTMLSelectElement>>;
|
|
309
|
+
|
|
310
|
+
export declare function Spinner({ active }: Props_24): JSX.Element;
|
|
227
311
|
|
|
228
|
-
|
|
312
|
+
declare function Tab({ children }: Props_36): JSX.Element;
|
|
229
313
|
|
|
230
|
-
export declare
|
|
314
|
+
export declare function Table({ padding, children }: Props_25): JSX.Element;
|
|
231
315
|
|
|
232
|
-
export declare
|
|
316
|
+
export declare namespace Table {
|
|
317
|
+
var Header: Element_2;
|
|
318
|
+
var Body: Element_3;
|
|
319
|
+
var Footer: Element_4;
|
|
320
|
+
var Row: Element_5;
|
|
321
|
+
var Cell: Element_6;
|
|
322
|
+
}
|
|
233
323
|
|
|
234
|
-
export declare function
|
|
324
|
+
export declare function Tabs({ separator, selectedId, children, onChange }: Props_35): JSX.Element;
|
|
235
325
|
|
|
236
|
-
export declare
|
|
326
|
+
export declare namespace Tabs {
|
|
327
|
+
var Tab: Tab;
|
|
328
|
+
}
|
|
237
329
|
|
|
238
|
-
declare function Text_2({ value, type, size, weight, wrap }:
|
|
330
|
+
declare function Text_2({ value, type, size, weight, wrap }: Props_31): JSX.Element;
|
|
239
331
|
export { Text_2 as Text }
|
|
240
332
|
|
|
241
|
-
export declare const TextArea: ForwardRefExoticComponent<
|
|
333
|
+
export declare const TextArea: ForwardRefExoticComponent<Props_16 & RefAttributes<HTMLTextAreaElement>>;
|
|
242
334
|
|
|
243
|
-
export declare const TextBox: ForwardRefExoticComponent<
|
|
335
|
+
export declare const TextBox: ForwardRefExoticComponent<Props_15 & RefAttributes<HTMLInputElement>>;
|
|
244
336
|
|
|
245
|
-
export declare function Title({ size, children }:
|
|
337
|
+
export declare function Title({ size, children }: Props_32): JSX.Element;
|
|
246
338
|
|
|
247
339
|
export { }
|
package/dist/mtds.js
CHANGED
|
@@ -1,495 +1,316 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
W = 1;
|
|
7
|
-
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
8
|
-
function n(a, s, l) {
|
|
9
|
-
var i = null;
|
|
10
|
-
if (l !== void 0 && (i = "" + l), s.key !== void 0 && (i = "" + s.key), "key" in s) {
|
|
11
|
-
l = {};
|
|
12
|
-
for (var f in s)
|
|
13
|
-
f !== "key" && (l[f] = s[f]);
|
|
14
|
-
} else l = s;
|
|
15
|
-
return s = l.ref, {
|
|
16
|
-
$$typeof: t,
|
|
17
|
-
type: a,
|
|
18
|
-
key: i,
|
|
19
|
-
ref: s !== void 0 ? s : null,
|
|
20
|
-
props: l
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return T.Fragment = r, T.jsx = n, T.jsxs = n, T;
|
|
24
|
-
}
|
|
25
|
-
var N = {};
|
|
26
|
-
var U;
|
|
27
|
-
function le() {
|
|
28
|
-
return U || (U = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
29
|
-
function t(e) {
|
|
30
|
-
if (e == null) return null;
|
|
31
|
-
if (typeof e == "function")
|
|
32
|
-
return e.$$typeof === te ? null : e.displayName || e.name || null;
|
|
33
|
-
if (typeof e == "string") return e;
|
|
34
|
-
switch (e) {
|
|
35
|
-
case g:
|
|
36
|
-
return "Fragment";
|
|
37
|
-
case G:
|
|
38
|
-
return "Profiler";
|
|
39
|
-
case A:
|
|
40
|
-
return "StrictMode";
|
|
41
|
-
case Z:
|
|
42
|
-
return "Suspense";
|
|
43
|
-
case H:
|
|
44
|
-
return "SuspenseList";
|
|
45
|
-
case ee:
|
|
46
|
-
return "Activity";
|
|
47
|
-
}
|
|
48
|
-
if (typeof e == "object")
|
|
49
|
-
switch (typeof e.tag == "number" && console.error(
|
|
50
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
51
|
-
), e.$$typeof) {
|
|
52
|
-
case S:
|
|
53
|
-
return "Portal";
|
|
54
|
-
case X:
|
|
55
|
-
return e.displayName || "Context";
|
|
56
|
-
case B:
|
|
57
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
58
|
-
case K:
|
|
59
|
-
var c = e.render;
|
|
60
|
-
return e = e.displayName, e || (e = c.displayName || c.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
61
|
-
case Q:
|
|
62
|
-
return c = e.displayName || null, c !== null ? c : t(e.type) || "Memo";
|
|
63
|
-
case O:
|
|
64
|
-
c = e._payload, e = e._init;
|
|
65
|
-
try {
|
|
66
|
-
return t(e(c));
|
|
67
|
-
} catch {
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
function r(e) {
|
|
73
|
-
return "" + e;
|
|
74
|
-
}
|
|
75
|
-
function n(e) {
|
|
76
|
-
try {
|
|
77
|
-
r(e);
|
|
78
|
-
var c = !1;
|
|
79
|
-
} catch {
|
|
80
|
-
c = !0;
|
|
81
|
-
}
|
|
82
|
-
if (c) {
|
|
83
|
-
c = console;
|
|
84
|
-
var u = c.error, d = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
85
|
-
return u.call(
|
|
86
|
-
c,
|
|
87
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
88
|
-
d
|
|
89
|
-
), r(e);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
function a(e) {
|
|
93
|
-
if (e === g) return "<>";
|
|
94
|
-
if (typeof e == "object" && e !== null && e.$$typeof === O)
|
|
95
|
-
return "<...>";
|
|
96
|
-
try {
|
|
97
|
-
var c = t(e);
|
|
98
|
-
return c ? "<" + c + ">" : "<...>";
|
|
99
|
-
} catch {
|
|
100
|
-
return "<...>";
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
function s() {
|
|
104
|
-
var e = P.A;
|
|
105
|
-
return e === null ? null : e.getOwner();
|
|
106
|
-
}
|
|
107
|
-
function l() {
|
|
108
|
-
return Error("react-stack-top-frame");
|
|
109
|
-
}
|
|
110
|
-
function i(e) {
|
|
111
|
-
if (I.call(e, "key")) {
|
|
112
|
-
var c = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
113
|
-
if (c && c.isReactWarning) return !1;
|
|
114
|
-
}
|
|
115
|
-
return e.key !== void 0;
|
|
116
|
-
}
|
|
117
|
-
function f(e, c) {
|
|
118
|
-
function u() {
|
|
119
|
-
z || (z = !0, console.error(
|
|
120
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
121
|
-
c
|
|
122
|
-
));
|
|
123
|
-
}
|
|
124
|
-
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
125
|
-
get: u,
|
|
126
|
-
configurable: !0
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function x() {
|
|
130
|
-
var e = t(this.type);
|
|
131
|
-
return D[e] || (D[e] = !0, console.error(
|
|
132
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
133
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
134
|
-
}
|
|
135
|
-
function v(e, c, u, d, h, C) {
|
|
136
|
-
var p = u.ref;
|
|
137
|
-
return e = {
|
|
138
|
-
$$typeof: j,
|
|
139
|
-
type: e,
|
|
140
|
-
key: c,
|
|
141
|
-
props: u,
|
|
142
|
-
_owner: d
|
|
143
|
-
}, (p !== void 0 ? p : null) !== null ? Object.defineProperty(e, "ref", {
|
|
144
|
-
enumerable: !1,
|
|
145
|
-
get: x
|
|
146
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
147
|
-
configurable: !1,
|
|
148
|
-
enumerable: !1,
|
|
149
|
-
writable: !0,
|
|
150
|
-
value: 0
|
|
151
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
152
|
-
configurable: !1,
|
|
153
|
-
enumerable: !1,
|
|
154
|
-
writable: !0,
|
|
155
|
-
value: null
|
|
156
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
157
|
-
configurable: !1,
|
|
158
|
-
enumerable: !1,
|
|
159
|
-
writable: !0,
|
|
160
|
-
value: h
|
|
161
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
162
|
-
configurable: !1,
|
|
163
|
-
enumerable: !1,
|
|
164
|
-
writable: !0,
|
|
165
|
-
value: C
|
|
166
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
167
|
-
}
|
|
168
|
-
function m(e, c, u, d, h, C) {
|
|
169
|
-
var p = c.children;
|
|
170
|
-
if (p !== void 0)
|
|
171
|
-
if (d)
|
|
172
|
-
if (re(p)) {
|
|
173
|
-
for (d = 0; d < p.length; d++)
|
|
174
|
-
E(p[d]);
|
|
175
|
-
Object.freeze && Object.freeze(p);
|
|
176
|
-
} else
|
|
177
|
-
console.error(
|
|
178
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
179
|
-
);
|
|
180
|
-
else E(p);
|
|
181
|
-
if (I.call(c, "key")) {
|
|
182
|
-
p = t(e);
|
|
183
|
-
var R = Object.keys(c).filter(function(ne) {
|
|
184
|
-
return ne !== "key";
|
|
185
|
-
});
|
|
186
|
-
d = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", M[p + d] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
187
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
188
|
-
let props = %s;
|
|
189
|
-
<%s {...props} />
|
|
190
|
-
React keys must be passed directly to JSX without using spread:
|
|
191
|
-
let props = %s;
|
|
192
|
-
<%s key={someKey} {...props} />`,
|
|
193
|
-
d,
|
|
194
|
-
p,
|
|
195
|
-
R,
|
|
196
|
-
p
|
|
197
|
-
), M[p + d] = !0);
|
|
198
|
-
}
|
|
199
|
-
if (p = null, u !== void 0 && (n(u), p = "" + u), i(c) && (n(c.key), p = "" + c.key), "key" in c) {
|
|
200
|
-
u = {};
|
|
201
|
-
for (var Y in c)
|
|
202
|
-
Y !== "key" && (u[Y] = c[Y]);
|
|
203
|
-
} else u = c;
|
|
204
|
-
return p && f(
|
|
205
|
-
u,
|
|
206
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
207
|
-
), v(
|
|
208
|
-
e,
|
|
209
|
-
p,
|
|
210
|
-
u,
|
|
211
|
-
s(),
|
|
212
|
-
h,
|
|
213
|
-
C
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
function E(e) {
|
|
217
|
-
_(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === O && (e._payload.status === "fulfilled" ? _(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
218
|
-
}
|
|
219
|
-
function _(e) {
|
|
220
|
-
return typeof e == "object" && e !== null && e.$$typeof === j;
|
|
221
|
-
}
|
|
222
|
-
var b = ae, j = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), G = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), X = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), Z = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), te = Symbol.for("react.client.reference"), P = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, re = Array.isArray, $ = console.createTask ? console.createTask : function() {
|
|
223
|
-
return null;
|
|
224
|
-
};
|
|
225
|
-
b = {
|
|
226
|
-
react_stack_bottom_frame: function(e) {
|
|
227
|
-
return e();
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
var z, D = {}, L = b.react_stack_bottom_frame.bind(
|
|
231
|
-
b,
|
|
232
|
-
l
|
|
233
|
-
)(), F = $(a(l)), M = {};
|
|
234
|
-
N.Fragment = g, N.jsx = function(e, c, u) {
|
|
235
|
-
var d = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
236
|
-
return m(
|
|
237
|
-
e,
|
|
238
|
-
c,
|
|
239
|
-
u,
|
|
240
|
-
!1,
|
|
241
|
-
d ? Error("react-stack-top-frame") : L,
|
|
242
|
-
d ? $(a(e)) : F
|
|
243
|
-
);
|
|
244
|
-
}, N.jsxs = function(e, c, u) {
|
|
245
|
-
var d = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
246
|
-
return m(
|
|
247
|
-
e,
|
|
248
|
-
c,
|
|
249
|
-
u,
|
|
250
|
-
!0,
|
|
251
|
-
d ? Error("react-stack-top-frame") : L,
|
|
252
|
-
d ? $(a(e)) : F
|
|
253
|
-
);
|
|
254
|
-
};
|
|
255
|
-
})()), N;
|
|
256
|
-
}
|
|
257
|
-
var q;
|
|
258
|
-
function ie() {
|
|
259
|
-
return q || (q = 1, process.env.NODE_ENV === "production" ? y.exports = ce() : y.exports = le()), y.exports;
|
|
260
|
-
}
|
|
261
|
-
var o = ie();
|
|
262
|
-
function fe({ children: t }) {
|
|
263
|
-
return /* @__PURE__ */ o.jsx("div", { className: "mtds", children: t });
|
|
264
|
-
}
|
|
265
|
-
function me({ options: t, selected: r, onChange: n }) {
|
|
266
|
-
const a = r ?? [...t.keys()][0], s = t.get(a) ?? "", [l, i] = k(a), [f, x] = k(s), [v, m] = k(!1), E = () => {
|
|
267
|
-
m(!v);
|
|
268
|
-
}, _ = (b) => {
|
|
269
|
-
const j = b.target, S = l, g = j.getAttribute("data-key") ?? a, A = t.get(g) ?? s;
|
|
270
|
-
i(g), x(A), m(!1), n && n(S, g);
|
|
271
|
-
};
|
|
272
|
-
return /* @__PURE__ */ o.jsxs("div", { className: "dropdown", children: [
|
|
273
|
-
/* @__PURE__ */ o.jsx("div", { className: v ? "text active" : "text", onClick: E, children: f }),
|
|
274
|
-
v && /* @__PURE__ */ o.jsx("div", { className: "options", children: Array.from(t).map(([b, j]) => /* @__PURE__ */ o.jsx("div", { className: "option", "data-key": b, onClick: _, children: j }, b)) })
|
|
275
|
-
] });
|
|
276
|
-
}
|
|
277
|
-
function de({ children: t }) {
|
|
278
|
-
return /* @__PURE__ */ o.jsx("div", { className: "ds-tabs-tab", children: t });
|
|
279
|
-
}
|
|
280
|
-
function pe({ separator: t, selectedId: r, children: n, onChange: a }) {
|
|
281
|
-
const [s, l] = k(r ?? ""), i = V(() => Array.isArray(n) ? n : [n], [n]), f = V(() => {
|
|
282
|
-
const m = {};
|
|
283
|
-
return i.forEach((E) => {
|
|
284
|
-
const _ = E.props.id;
|
|
285
|
-
m[_] = E;
|
|
286
|
-
}), m;
|
|
287
|
-
}, [i]), x = se((m) => {
|
|
288
|
-
const E = i[0]?.props.id;
|
|
289
|
-
l(m ?? E);
|
|
290
|
-
});
|
|
291
|
-
J(() => {
|
|
292
|
-
x(r);
|
|
293
|
-
}, [r, i]);
|
|
294
|
-
const v = (m) => {
|
|
295
|
-
a !== void 0 && a(m, s), l(m);
|
|
296
|
-
};
|
|
297
|
-
return /* @__PURE__ */ o.jsxs("div", { className: "tabs", children: [
|
|
298
|
-
/* @__PURE__ */ o.jsx("div", { className: "nav", children: i.map((m) => {
|
|
299
|
-
const E = m.props.id, _ = `tab-${E}`, b = E === s ? "active" : "inactive", j = () => v(m.props.id);
|
|
300
|
-
return /* @__PURE__ */ o.jsx("div", { className: "item " + b, onClick: j, children: m.props.title }, _);
|
|
301
|
-
}) }),
|
|
302
|
-
t !== void 0 ? /* @__PURE__ */ o.jsx("div", { className: "separator", children: t }) : null,
|
|
303
|
-
/* @__PURE__ */ o.jsx("div", { className: "content", children: f[s] })
|
|
304
|
-
] });
|
|
305
|
-
}
|
|
306
|
-
function Ee({ source: t, title: r, alt: n = "Avatar", width: a, height: s, fit: l = "contain" }) {
|
|
307
|
-
const i = "avatar fit-" + l, f = { width: a, height: s };
|
|
308
|
-
return /* @__PURE__ */ o.jsx(
|
|
1
|
+
import { jsx as s, jsxs as h, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, useRef as z, useEffect as w, useState as b, useMemo as y, useEffectEvent as E } from "react";
|
|
3
|
+
function O({ source: t, title: e, alt: n = "Avatar", width: a, height: c, fit: r = "contain" }) {
|
|
4
|
+
const o = "avatar fit-" + r;
|
|
5
|
+
return /* @__PURE__ */ s(
|
|
309
6
|
"img",
|
|
310
7
|
{
|
|
311
|
-
className:
|
|
312
|
-
title:
|
|
8
|
+
className: o,
|
|
9
|
+
title: e,
|
|
313
10
|
alt: n,
|
|
314
|
-
style:
|
|
11
|
+
style: { width: a, height: c },
|
|
315
12
|
src: t
|
|
316
13
|
}
|
|
317
14
|
);
|
|
318
15
|
}
|
|
319
|
-
function
|
|
320
|
-
const
|
|
321
|
-
return /* @__PURE__ */
|
|
16
|
+
function F({ type: t = "normal", size: e = "large", padding: n = "large", children: a }) {
|
|
17
|
+
const c = "border type-" + t + " size-" + e + " padding-" + n;
|
|
18
|
+
return /* @__PURE__ */ s("div", { className: c, children: a });
|
|
322
19
|
}
|
|
323
|
-
function
|
|
324
|
-
const
|
|
325
|
-
return /* @__PURE__ */
|
|
20
|
+
function j({ type: t = "primary", size: e = "medium", text: n, onClick: a }) {
|
|
21
|
+
const c = "button type-" + t + " size-" + e;
|
|
22
|
+
return /* @__PURE__ */ s("input", { type: t === "submit" ? "submit" : "button", onClick: a, className: c, disabled: t === "disabled", value: n });
|
|
326
23
|
}
|
|
327
|
-
function
|
|
24
|
+
function I({ sizing: t = "fluid", children: e }) {
|
|
328
25
|
const n = "cell sizing-" + t;
|
|
329
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ s("div", { className: n, children: e });
|
|
330
27
|
}
|
|
331
|
-
|
|
28
|
+
const P = g(function({ name: e, label: n, defaultChecked: a, checked: c, value: r, required: o, onChange: l }, m) {
|
|
29
|
+
return /* @__PURE__ */ h("label", { className: "checkbox", children: [
|
|
30
|
+
/* @__PURE__ */ s(
|
|
31
|
+
"input",
|
|
32
|
+
{
|
|
33
|
+
type: "checkbox",
|
|
34
|
+
defaultChecked: a,
|
|
35
|
+
checked: c,
|
|
36
|
+
value: r,
|
|
37
|
+
name: e,
|
|
38
|
+
ref: m,
|
|
39
|
+
required: o,
|
|
40
|
+
onChange: l
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
n
|
|
44
|
+
] });
|
|
45
|
+
});
|
|
46
|
+
function G({ padding: t = "none", onClick: e, children: n }) {
|
|
332
47
|
const a = "clickarea padding-" + t;
|
|
333
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ s("div", { className: a, onClick: e, children: n });
|
|
334
49
|
}
|
|
335
|
-
function
|
|
336
|
-
const
|
|
337
|
-
return /* @__PURE__ */
|
|
50
|
+
function q({ alignX: t = "left", alignY: e = "top", gap: n = "medium", wrap: a = "nowrap", children: c }) {
|
|
51
|
+
const r = "column align-x-" + t + " align-y-" + e + " gap-" + n + " wrap-" + a;
|
|
52
|
+
return /* @__PURE__ */ s("div", { className: r, children: c });
|
|
338
53
|
}
|
|
339
|
-
const
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
54
|
+
const H = g(function({ name: e, defaultValue: n, value: a, title: c, type: r = "datetime", size: o = "medium", required: l, onChange: m }, u) {
|
|
55
|
+
const i = "datetime size-" + o;
|
|
56
|
+
return /* @__PURE__ */ s(
|
|
57
|
+
"input",
|
|
58
|
+
{
|
|
59
|
+
className: i,
|
|
60
|
+
type: r,
|
|
61
|
+
name: e,
|
|
62
|
+
defaultValue: n,
|
|
63
|
+
value: a,
|
|
64
|
+
title: c,
|
|
65
|
+
ref: u,
|
|
66
|
+
required: l,
|
|
67
|
+
onChange: m
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}), J = g(function({ children: e, submitHandler: n }, a) {
|
|
71
|
+
return /* @__PURE__ */ s("form", { onSubmit: (r) => {
|
|
72
|
+
r.preventDefault(), n && n(r.target);
|
|
73
|
+
}, className: "form", ref: a, children: e });
|
|
344
74
|
});
|
|
345
|
-
function
|
|
346
|
-
const a = "grid layout-" + t + " gap-" +
|
|
347
|
-
return /* @__PURE__ */
|
|
75
|
+
function Q({ layout: t, gap: e = "medium", children: n }) {
|
|
76
|
+
const a = "grid layout-" + t + " gap-" + e;
|
|
77
|
+
return /* @__PURE__ */ s("div", { className: a, children: n });
|
|
348
78
|
}
|
|
349
|
-
function
|
|
350
|
-
return /* @__PURE__ */
|
|
79
|
+
function U({ type: t }) {
|
|
80
|
+
return /* @__PURE__ */ s("span", { className: "icon " + t });
|
|
351
81
|
}
|
|
352
|
-
function
|
|
353
|
-
const
|
|
354
|
-
return /* @__PURE__ */
|
|
82
|
+
function V({ source: t, title: e, alt: n, width: a, height: c, fit: r = "contain" }) {
|
|
83
|
+
const o = "image fit-" + r;
|
|
84
|
+
return /* @__PURE__ */ s(
|
|
355
85
|
"img",
|
|
356
86
|
{
|
|
357
|
-
className:
|
|
358
|
-
title:
|
|
87
|
+
className: o,
|
|
88
|
+
title: e,
|
|
359
89
|
alt: n,
|
|
360
|
-
style:
|
|
90
|
+
style: { width: a, height: c },
|
|
361
91
|
src: t
|
|
362
92
|
}
|
|
363
93
|
);
|
|
364
94
|
}
|
|
365
|
-
function
|
|
366
|
-
return /* @__PURE__ */
|
|
95
|
+
function W({ label: t, element: e }) {
|
|
96
|
+
return /* @__PURE__ */ h("div", { className: "input", children: [
|
|
367
97
|
t,
|
|
368
|
-
|
|
98
|
+
e
|
|
369
99
|
] });
|
|
370
100
|
}
|
|
371
|
-
function
|
|
372
|
-
return /* @__PURE__ */
|
|
101
|
+
function X({ value: t }) {
|
|
102
|
+
return /* @__PURE__ */ s("label", { className: "label", children: t });
|
|
373
103
|
}
|
|
374
|
-
function
|
|
375
|
-
return /* @__PURE__ */
|
|
104
|
+
function Y({ url: t, target: e, children: n }) {
|
|
105
|
+
return /* @__PURE__ */ s("a", { className: "link", href: t, target: e, children: n });
|
|
376
106
|
}
|
|
377
|
-
function
|
|
378
|
-
const a =
|
|
379
|
-
return
|
|
107
|
+
function Z({ open: t = !0, sizing: e = "content", children: n }) {
|
|
108
|
+
const a = z(null), c = "modal sizing-" + e;
|
|
109
|
+
return w(() => {
|
|
380
110
|
t ? a.current?.showModal() : a.current?.close();
|
|
381
|
-
}, [t]), /* @__PURE__ */
|
|
111
|
+
}, [t]), /* @__PURE__ */ s("dialog", { ref: a, className: c, children: n });
|
|
382
112
|
}
|
|
383
|
-
function
|
|
384
|
-
const a = "panel type-" + t + " padding-" +
|
|
385
|
-
return /* @__PURE__ */
|
|
113
|
+
function _({ type: t = "normal", padding: e = "large", children: n }) {
|
|
114
|
+
const a = "panel type-" + t + " padding-" + e;
|
|
115
|
+
return /* @__PURE__ */ s("div", { className: a, children: n });
|
|
386
116
|
}
|
|
387
|
-
function
|
|
117
|
+
function tt({ size: t = "medium", children: e }) {
|
|
388
118
|
const n = "paragraph size-" + t;
|
|
389
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ s("p", { className: n, children: e });
|
|
390
120
|
}
|
|
391
|
-
function
|
|
392
|
-
const
|
|
393
|
-
return /* @__PURE__ */
|
|
121
|
+
function et({ alignX: t = "left", alignY: e = "top", gap: n = "medium", wrap: a = "nowrap", children: c }) {
|
|
122
|
+
const r = "row align-x-" + t + " align-y-" + e + " gap-" + n + " wrap-" + a;
|
|
123
|
+
return /* @__PURE__ */ s("div", { className: r, children: c });
|
|
394
124
|
}
|
|
395
|
-
function
|
|
396
|
-
const n = "ruler direction-" + t + " size-" +
|
|
397
|
-
return /* @__PURE__ */
|
|
125
|
+
function nt({ direction: t, size: e = "medium" }) {
|
|
126
|
+
const n = "ruler direction-" + t + " size-" + e;
|
|
127
|
+
return /* @__PURE__ */ s("div", { className: n });
|
|
398
128
|
}
|
|
399
|
-
const
|
|
400
|
-
const
|
|
401
|
-
return /* @__PURE__ */
|
|
129
|
+
const at = g(function({ name: e, options: n, defaultValue: a, value: c, size: r = "medium", onChange: o }, l) {
|
|
130
|
+
const m = "select size-" + r;
|
|
131
|
+
return /* @__PURE__ */ s(
|
|
402
132
|
"select",
|
|
403
133
|
{
|
|
404
|
-
className:
|
|
405
|
-
name:
|
|
134
|
+
className: m,
|
|
135
|
+
name: e,
|
|
406
136
|
defaultValue: a,
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
137
|
+
value: c,
|
|
138
|
+
onChange: o,
|
|
139
|
+
ref: l,
|
|
140
|
+
children: Array.from(n).map(([u, i]) => /* @__PURE__ */ s("option", { value: u, children: i }, u))
|
|
410
141
|
}
|
|
411
142
|
);
|
|
412
143
|
});
|
|
413
|
-
function
|
|
414
|
-
const
|
|
415
|
-
return /* @__PURE__ */
|
|
144
|
+
function st({ active: t = !0 }) {
|
|
145
|
+
const e = "spinner" + (t ? " active" : "");
|
|
146
|
+
return /* @__PURE__ */ s("div", { className: e });
|
|
147
|
+
}
|
|
148
|
+
function A({ children: t }) {
|
|
149
|
+
return /* @__PURE__ */ s("thead", { children: t });
|
|
150
|
+
}
|
|
151
|
+
function C({ border: t = "medium", children: e }) {
|
|
152
|
+
const n = "border-" + t;
|
|
153
|
+
return /* @__PURE__ */ s("tbody", { className: n, children: e });
|
|
154
|
+
}
|
|
155
|
+
function M({ children: t }) {
|
|
156
|
+
return /* @__PURE__ */ s("tfoot", { children: t });
|
|
157
|
+
}
|
|
158
|
+
function L({ children: t }) {
|
|
159
|
+
return /* @__PURE__ */ s("tr", { children: t });
|
|
416
160
|
}
|
|
417
|
-
function
|
|
418
|
-
const
|
|
419
|
-
return /* @__PURE__ */
|
|
161
|
+
function B({ colspan: t, rowspan: e, alignX: n = "left", alignY: a = "center", size: c = "fit", children: r }) {
|
|
162
|
+
const o = "align-x-" + n + " align-y-" + a + " size-" + c;
|
|
163
|
+
return /* @__PURE__ */ s("td", { className: o, colSpan: t, rowSpan: e, children: r });
|
|
420
164
|
}
|
|
421
|
-
|
|
422
|
-
const
|
|
423
|
-
return /* @__PURE__ */
|
|
165
|
+
function v({ padding: t = "medium", children: e }) {
|
|
166
|
+
const n = "table padding-" + t;
|
|
167
|
+
return /* @__PURE__ */ s("table", { className: n, children: e });
|
|
168
|
+
}
|
|
169
|
+
v.Header = A;
|
|
170
|
+
v.Body = C;
|
|
171
|
+
v.Footer = M;
|
|
172
|
+
v.Row = L;
|
|
173
|
+
v.Cell = B;
|
|
174
|
+
function ct({ value: t, type: e = "primary", size: n = "medium", weight: a = "normal", wrap: c = "none" }) {
|
|
175
|
+
const r = "text type-" + e + " size-" + n + " weight-" + a + " wrap-" + c;
|
|
176
|
+
return /* @__PURE__ */ s("span", { className: r, children: t });
|
|
177
|
+
}
|
|
178
|
+
const rt = g(function({ name: e, placeholder: n, defaultValue: a, value: c, size: r = "medium", rows: o, limit: l, onChange: m }, u) {
|
|
179
|
+
const i = "textarea size-" + r;
|
|
180
|
+
return /* @__PURE__ */ s(
|
|
424
181
|
"textarea",
|
|
425
182
|
{
|
|
426
|
-
className:
|
|
427
|
-
name:
|
|
183
|
+
className: i,
|
|
184
|
+
name: e,
|
|
428
185
|
placeholder: n,
|
|
429
186
|
defaultValue: a,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
187
|
+
value: c,
|
|
188
|
+
rows: o,
|
|
189
|
+
ref: u,
|
|
190
|
+
maxLength: l,
|
|
191
|
+
onChange: m
|
|
434
192
|
}
|
|
435
193
|
);
|
|
436
|
-
}),
|
|
437
|
-
const
|
|
438
|
-
return /* @__PURE__ */
|
|
194
|
+
}), ot = g(function({ name: e, placeholder: n, defaultValue: a, value: c, limit: r, pattern: o, title: l, type: m = "text", size: u = "medium", required: i, onChange: d }, p) {
|
|
195
|
+
const f = "textbox size-" + u;
|
|
196
|
+
return /* @__PURE__ */ s(
|
|
439
197
|
"input",
|
|
440
198
|
{
|
|
441
|
-
className:
|
|
442
|
-
type:
|
|
443
|
-
name:
|
|
199
|
+
className: f,
|
|
200
|
+
type: m,
|
|
201
|
+
name: e,
|
|
444
202
|
placeholder: n,
|
|
445
203
|
defaultValue: a,
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
204
|
+
value: c,
|
|
205
|
+
maxLength: r,
|
|
206
|
+
pattern: o,
|
|
207
|
+
title: l,
|
|
208
|
+
ref: p,
|
|
209
|
+
required: i,
|
|
210
|
+
onChange: d
|
|
452
211
|
}
|
|
453
212
|
);
|
|
454
213
|
});
|
|
455
|
-
function
|
|
214
|
+
function it({ size: t = "large", children: e }) {
|
|
456
215
|
const n = "title size-" + t;
|
|
457
216
|
switch (t) {
|
|
458
217
|
case "large":
|
|
459
|
-
return /* @__PURE__ */
|
|
218
|
+
return /* @__PURE__ */ s("h1", { className: n, children: e });
|
|
460
219
|
case "medium":
|
|
461
|
-
return /* @__PURE__ */
|
|
220
|
+
return /* @__PURE__ */ s("h2", { className: n, children: e });
|
|
462
221
|
case "small":
|
|
463
|
-
return /* @__PURE__ */
|
|
222
|
+
return /* @__PURE__ */ s("h3", { className: n, children: e });
|
|
464
223
|
}
|
|
465
224
|
}
|
|
225
|
+
function lt({ options: t, selected: e, onChange: n }) {
|
|
226
|
+
const a = e ?? [...t.keys()][0], c = t.get(a) ?? "", [r, o] = b(a), [l, m] = b(c), [u, i] = b(!1), d = () => {
|
|
227
|
+
i(!u);
|
|
228
|
+
}, p = (f) => {
|
|
229
|
+
const N = f.target, S = r, x = N.getAttribute("data-key") ?? a, T = t.get(x) ?? c;
|
|
230
|
+
o(x), m(T), i(!1), n && n(S, x);
|
|
231
|
+
};
|
|
232
|
+
return /* @__PURE__ */ h("div", { className: "dropdown", children: [
|
|
233
|
+
/* @__PURE__ */ s("div", { className: u ? "text active" : "text", onClick: d, children: l }),
|
|
234
|
+
u && /* @__PURE__ */ s("div", { className: "options", children: Array.from(t).map(([f, N]) => /* @__PURE__ */ s("div", { className: "option", "data-key": f, onClick: p, children: N }, f)) })
|
|
235
|
+
] });
|
|
236
|
+
}
|
|
237
|
+
function ut({ selectedId: t, children: e }) {
|
|
238
|
+
const [n, a] = b(t ?? ""), c = y(() => Array.isArray(e) ? e : [e], [e]), r = y(() => {
|
|
239
|
+
const l = {};
|
|
240
|
+
return c.forEach((m) => {
|
|
241
|
+
const u = m.props.id;
|
|
242
|
+
l[u] = m;
|
|
243
|
+
}), l;
|
|
244
|
+
}, [c]), o = E((l) => {
|
|
245
|
+
a(l ?? "");
|
|
246
|
+
});
|
|
247
|
+
return w(() => {
|
|
248
|
+
o(t);
|
|
249
|
+
}, [t, c]), r[n] ?? /* @__PURE__ */ s(k, {});
|
|
250
|
+
}
|
|
251
|
+
function K({ children: t }) {
|
|
252
|
+
return /* @__PURE__ */ s("div", { className: "tab", children: t });
|
|
253
|
+
}
|
|
254
|
+
function R({ separator: t, selectedId: e, children: n, onChange: a }) {
|
|
255
|
+
const [c, r] = b(e ?? ""), o = y(() => Array.isArray(n) ? n : [n], [n]), l = y(() => {
|
|
256
|
+
const i = {};
|
|
257
|
+
return o.forEach((d) => {
|
|
258
|
+
const p = d.props.id;
|
|
259
|
+
i[p] = d;
|
|
260
|
+
}), i;
|
|
261
|
+
}, [o]), m = E((i) => {
|
|
262
|
+
const d = o[0]?.props.id;
|
|
263
|
+
r(i ?? d);
|
|
264
|
+
});
|
|
265
|
+
w(() => {
|
|
266
|
+
m(e);
|
|
267
|
+
}, [e, o]);
|
|
268
|
+
const u = (i) => {
|
|
269
|
+
a !== void 0 && a(i, c), r(i);
|
|
270
|
+
};
|
|
271
|
+
return /* @__PURE__ */ h("div", { className: "tabs", children: [
|
|
272
|
+
/* @__PURE__ */ s("div", { className: "nav", children: o.map((i) => {
|
|
273
|
+
const d = i.props.id, p = `tab-${d}`, f = d === c ? "active" : "inactive", N = () => u(i.props.id);
|
|
274
|
+
return /* @__PURE__ */ s("div", { className: "item " + f, onClick: N, children: i.props.title }, p);
|
|
275
|
+
}) }),
|
|
276
|
+
t !== void 0 ? /* @__PURE__ */ s("div", { className: "separator", children: t }) : null,
|
|
277
|
+
/* @__PURE__ */ s("div", { className: "content", children: l[c] })
|
|
278
|
+
] });
|
|
279
|
+
}
|
|
280
|
+
R.Tab = K;
|
|
281
|
+
function mt({ children: t }) {
|
|
282
|
+
return /* @__PURE__ */ s("div", { className: "mtds", children: t });
|
|
283
|
+
}
|
|
466
284
|
export {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
285
|
+
O as Avatar,
|
|
286
|
+
F as Border,
|
|
287
|
+
j as Button,
|
|
288
|
+
I as Cell,
|
|
289
|
+
P as CheckBox,
|
|
290
|
+
G as ClickArea,
|
|
291
|
+
q as Column,
|
|
292
|
+
H as DateTime,
|
|
293
|
+
mt as DesignSystem,
|
|
294
|
+
lt as Dropdown,
|
|
295
|
+
J as Form,
|
|
296
|
+
Q as Grid,
|
|
297
|
+
U as Icon,
|
|
298
|
+
V as Image,
|
|
299
|
+
W as Input,
|
|
300
|
+
X as Label,
|
|
301
|
+
Y as Link,
|
|
302
|
+
Z as Modal,
|
|
303
|
+
ut as ModalManager,
|
|
304
|
+
_ as Panel,
|
|
305
|
+
tt as Paragraph,
|
|
306
|
+
et as Row,
|
|
307
|
+
nt as Ruler,
|
|
308
|
+
at as Select,
|
|
309
|
+
st as Spinner,
|
|
310
|
+
v as Table,
|
|
311
|
+
R as Tabs,
|
|
312
|
+
ct as Text,
|
|
313
|
+
rt as TextArea,
|
|
314
|
+
ot as TextBox,
|
|
315
|
+
it as Title
|
|
495
316
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maskingtech/designsystem",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"url": "https://github.com/MaskingTechnology/designsystem"
|
|
8
|
+
},
|
|
6
9
|
"scripts": {
|
|
7
10
|
"build": "vite build",
|
|
8
11
|
"clean": "rimraf dist",
|
|
@@ -17,21 +20,19 @@
|
|
|
17
20
|
"README.md",
|
|
18
21
|
"dist"
|
|
19
22
|
],
|
|
20
|
-
"
|
|
21
|
-
"react": "19.2.0"
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "^19.2.0"
|
|
22
25
|
},
|
|
23
26
|
"devDependencies": {
|
|
24
27
|
"@eslint/js": "9.39.1",
|
|
25
|
-
"@types/
|
|
26
|
-
"@types/
|
|
27
|
-
"@vitejs/plugin-react": "5.1.
|
|
28
|
+
"@types/react": "19.2.7",
|
|
29
|
+
"@types/node": "25.0.1",
|
|
30
|
+
"@vitejs/plugin-react": "5.1.2",
|
|
28
31
|
"eslint-plugin-react": "7.37.5",
|
|
29
|
-
"eslint-plugin-react-hooks": "7.0.1",
|
|
30
|
-
"eslint-plugin-sonarjs": "3.0.5",
|
|
31
32
|
"rimraf": "6.1.2",
|
|
32
33
|
"typescript": "5.9.3",
|
|
33
|
-
"typescript-eslint": "8.
|
|
34
|
-
"vite": "7.2.
|
|
34
|
+
"typescript-eslint": "8.49.0",
|
|
35
|
+
"vite": "7.2.7",
|
|
35
36
|
"vite-plugin-dts": "4.5.4"
|
|
36
37
|
},
|
|
37
38
|
"optionalDependencies": {
|