@functionalcms/svelte-components 4.0.2 → 4.1.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/css/functional.css +1 -0
- package/css/functional.css.map +1 -0
- package/dist/components/form/Button.svelte +113 -113
- package/dist/components/form/ChoiceInput.svelte +375 -0
- package/dist/components/form/ChoiceInput.svelte.d.ts +17 -0
- package/dist/components/form/Input.svelte +1 -1
- package/dist/components/form/Input.svelte.d.ts +1 -1
- package/dist/components/form/utils.d.ts +14 -0
- package/dist/components/utils.d.ts +3 -0
- package/dist/components/utils.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +3 -2
- package/dist/components/form/Input.d.ts +0 -2
- /package/dist/components/form/{Input.js → utils.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:where(html){--warning-border-accent-modelight: #ecd386;--warning-border-modelight: #f0e3b9;--warning-light-modelight: #fff5d4;--warning-dark-modelight: #634902;--secondary-hover-modelight: #bc583d;--secondary-modelight: #c94d2b;--primary-extra-light-modelight: #f1faff;--primary-light-modelight: #dcf1ff;--primary-dark-modelight: #063f69;--primary-border-modelight: #c1d9e9;--primary-hover-modelight: #2087d0;--primary-modelight: #077acb;--light-modelight: #fff;--dark-modelight: #333;--gray-dark-modelight: #717171;--gray-mid-dark-modelight: #ccc;--gray-mid-modelight: #d8d8d8;--gray-light-modelight: #e9e9e9;--gray-extra-light-modelight: #f8f8f8;--error-border-modelight: #eec8c8;--error-light-modelight: #ffe0e0;--error-dark-modelight: #771414;--error-modelight: #e02e2e;--action-border-modelight: #c7f0d1;--action-light-modelight: #e2ffe9;--action-dark-modelight: #0a3414;--action-hover-modelight: #3dd262;--action-modelight: #2fb751;--disabled-color-modelight: var(--gray-dark-modelight);--disabled-bg-modelight: var(--gray-light-modelight)}:where(html){--warning-border-accent-modedark: #433507;--warning-border-modedark: #fff5d4;--warning-light-modedark: #faecc0;--warning-dark-modedark: #221b01;--secondary-hover-modedark: #000;--secondary-modedark: #e89982;--primary-extra-light-modedark: #172c38;--primary-light-modedark: #90d0fd;--primary-dark-modedark: #021421;--primary-border-modedark: #63b9f7;--primary-hover-modedark: #63b9f7;--primary-modedark: #91d1ff;--light-modedark: #1a202c;--dark-modedark: #d0d0d0;--gray-dark-modedark: rgb(255 255 255 / 40%);--gray-mid-dark-modedark: rgba(255 255 255 / 32%);--gray-mid-modedark: rgba(255 255 255 / 8%);--gray-light-modedark: rgba(255 255 255 / 6%);--gray-extra-light-modedark: rgba(255 255 255 / 4%);--error-border-modedark: #ffe0e0;--error-light-modedark: #ffe0e0;--error-dark-modedark: #260202;--error-modedark: #fd9e9e;--action-border-modedark: #e7ffed;--action-light-modedark: #baf9ca;--action-dark-modedark: #011e08;--action-hover-modedark: #9fe0af;--action-modedark: #baf9ca;--disabled-color-modedark: var(--gray-dark-modedark);--disabled-bg-modedark: var(--gray-light-modedark) }:root{color-scheme:light;--warning-border-accent: var(--warning-border-accent-modelight);--warning-border: var(--warning-border-modelight);--warning-light: var(--warning-light-modelight);--warning-dark: var(--warning-dark-modelight);--secondary-hover: var(--secondary-hover-modelight);--secondary: var(--secondary-modelight);--primary-light: var(--primary-light-modelight);--primary-dark: var(--primary-dark-modelight);--primary-border: var(--primary-border-modelight);--primary-hover: var(--primary-hover-modelight);--primary: var(--primary-modelight);--light: var(--light-modelight);--dark: var(--dark-modelight);--gray-dark: var(--gray-dark-modelight);--gray-mid-dark: var(--gray-mid-dark-modelight);--gray-mid: var(--gray-mid-modelight);--gray-light: var(--gray-light-modelight);--gray-extra-light: var(--gray-extra-light-modelight);--error: var(--error-modelight);--error-light: var(--error-light-modelight);--error-dark: var(--error-dark-modelight);--error-border: var(--error-border-modelight);--disabled-color: var(--gray-dark-modelight);--disabled-bg: var(--gray-light-modelight);--action-border: var(--action-border-modelight);--action-light: var(--action-light-modelight);--action-dark: var(--action-dark-modelight);--action-hover: var(--action-hover-modelight);--action: var(--action-modelight) }@media(prefers-color-scheme: dark){:root{color-scheme:dark;--warning-border-accent: var(--warning-border-accent-modedark);--warning-border: var(--warning-border-modedark);--warning-light: var(--warning-light-modedark);--warning-dark: var(--warning-dark-modedark);--secondary-hover: var(--secondary-hover-modedark);--secondary: var(--secondary-modedark);--primary-light: var(--primary-light-modedark);--primary-dark: var(--primary-dark-modedark);--primary-border: var(--primary-border-modedark);--primary-hover: var(--primary-hover-modedark);--primary: var(--primary-modedark);--light: var(--light-modedark);--dark: var(--dark-modedark);--gray-dark: var(--gray-dark-modedark);--gray-mid-dark: var(--gray-mid-dark-modedark);--gray-mid: var(--gray-mid-modedark);--gray-light: var(--gray-light-modedark);--gray-extra-light: var(--gray-extra-light-modedark);--error: var(--error-modedark);--error-light: var(--error-light-modedark);--error-dark: var(--error-dark-modedark);--error-border: var(--error-border-modedark);--disabled-color: var(--gray-dark-modedark);--disabled-bg: var(--gray-light-modedark);--action-border: var(--action-border-modedark);--action-light: var(--action-light-modedark);--action-dark: var(--action-dark-modedark);--action-hover: var(--action-hover-modedark);--action: var(--action-modedark) }}[color-scheme=light]{color-scheme:light;--warning-border-accent: var(--warning-border-accent-modelight);--warning-border: var(--warning-border-modelight);--warning-light: var(--warning-light-modelight);--warning-dark: var(--warning-dark-modelight);--secondary-hover: var(--secondary-hover-modelight);--secondary: var(--secondary-modelight);--primary-light: var(--primary-light-modelight);--primary-dark: var(--primary-dark-modelight);--primary-border: var(--primary-border-modelight);--primary-hover: var(--primary-hover-modelight);--primary: var(--primary-modelight);--light: var(--light-modelight);--dark: var(--dark-modelight);--gray-dark: var(--gray-dark-modelight);--gray-mid-dark: var(--gray-mid-dark-modelight);--gray-mid: var(--gray-mid-modelight);--gray-light: var(--gray-light-modelight);--gray-extra-light: var(--gray-extra-light-modelight);--error: var(--error-modelight);--error-light: var(--error-light-modelight);--error-dark: var(--error-dark-modelight);--error-border: var(--error-border-modelight);--disabled-color: var(--gray-dark-modelight);--disabled-bg: var(--gray-light-modelight);--action-border: var(--action-border-modelight);--action-light: var(--action-light-modelight);--action-dark: var(--action-dark-modelight);--action-hover: var(--action-hover-modelight);--action: var(--action-modelight) }[color-scheme=dark]{color-scheme:dark;--warning-border-accent: var(--warning-border-accent-modedark);--warning-border: var(--warning-border-modedark);--warning-light: var(--warning-light-modedark);--warning-dark: var(--warning-dark-modedark);--secondary-hover: var(--secondary-hover-modedark);--secondary: var(--secondary-modedark);--primary-light: var(--primary-light-modedark);--primary-dark: var(--primary-dark-modedark);--primary-border: var(--primary-border-modedark);--primary-hover: var(--primary-hover-modedark);--primary: var(--primary-modedark);--light: var(--light-modedark);--dark: var(--dark-modedark);--gray-dark: var(--gray-dark-modedark);--gray-mid-dark: var(--gray-mid-dark-modedark);--gray-mid: var(--gray-mid-modedark);--gray-light: var(--gray-light-modedark);--gray-extra-light: var(--gray-extra-light-modedark);--error: var(--error-modedark);--error-light: var(--error-light-modedark);--error-dark: var(--error-dark-modedark);--error-border: var(--error-border-modedark);--disabled-color: var(--gray-dark-modedark);--disabled-bg: var(--gray-light-modedark);--action-border: var(--action-border-modedark);--action-light: var(--action-light-modedark);--action-dark: var(--action-dark-modedark);--action-hover: var(--action-hover-modedark);--action: var(--action-modedark) }:where(html){--focus-ring-outline-color: transparent;--focus-ring-outline-style: solid;--focus-ring-outline-width: 3px;--focus-ring-color: rgb(55 149 225 / 50%) }:where(html){--fluid-80: 5rem;--fluid-72: 4.5rem;--fluid-64: 4rem;--fluid-56: 3.5rem;--fluid-48: 3rem;--fluid-40: 2.5rem;--fluid-36: 2.25rem;--fluid-32: 2rem;--fluid-24: 1.5rem;--fluid-20: 1.25rem;--fluid-18: 1.125rem;--fluid-16: 1rem;--fluid-14: 0.875rem;--fluid-12: 0.75rem;--fluid-10: 0.625rem;--fluid-8: 0.5rem;--fluid-6: 0.375rem;--fluid-4: 0.25rem;--fluid-2: 0.125rem;--vertical-pad: var(--fluid-8);--line-height: var(--fluid-20);--side-padding: var(--fluid-12);--input-side-padding: var(--fluid-12) }:where(html){--small: 0.875rem;--body: 1rem;--h6: 0.75rem;--h5: 1.125rem;--h4: 1.5rem;--h3: 2.25rem;--h2: 3rem;--h1: 4rem;--font-color: var(--dark);--font-weight-bold: 600;--font-weight-light: 300;--font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif;--font-family-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif }:where(html){--timing-slow: 450ms;--timing-medium: 300ms;--timing-fast: 200ms }:where(html){--mobile-content-width: 95%;--content-width: 75%}:root{--radius: var(--fluid-4, 0.25rem);--radius-capsule: 9999px }html{box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}:where(body){line-height:1.5}:where(ul){list-style:none}:where(button,[role=button]){cursor:pointer}:where(input,button,select,optgroup,textarea){margin:0;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit}:where(table){border-collapse:collapse}:where(th){text-align:-webkit-match-parent;text-align:match-parent;text-align:inherit}:where(thead,tbody,tfoot,tr,td,th){border-color:inherit;border-style:solid;border-width:0}:where(html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,button,pre,hr,h1,h2,h3,h4,h5,h6){margin:0;padding:0}a{--link-color: var(--primary, #077acb);color:var(--link-color);text-decoration:none}a:hover{text-decoration:underline}a:focus{box-shadow:0 0 0 var(--focus-ring-outline-width) var(--focus-ring-color);outline:var(--focus-ring-outline-width) var(--focus-ring-outline-style) var(--focus-ring-outline-color);transition:box-shadow var(--timing-fast) ease-out}@media(prefers-reduced-motion),(update: slow){a:focus{transition-duration:.001ms !important}}.screenreader-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.w-100{width:100% !important}.text-lowercase{text-transform:lowercase !important}.text-uppercase{text-transform:uppercase !important}.text-capitalize{text-transform:capitalize !important}.text-center{text-align:center !important}.h1{font-size:var(--h1) !important}.h2{font-size:var(--h2) !important}.h3{font-size:var(--h3) !important}.h4{font-size:var(--h4) !important}.h5{font-size:var(--h5) !important}.h6{font-size:var(--h6) !important}.top{top:0 !important}.bottom{bottom:0 !important}.start{left:var(--fluid-16) !important}.end{right:var(--fluid-16) !important}.center{left:50% !important;transform:translateX(-50%) !important}.flex{display:flex !important}.flex-inline{display:inline-flex !important}.flex-fill{flex:1 1 auto !important}.flex-row{flex-direction:row !important}.flex-column{flex-direction:column !important}.flex-grow-0{flex-grow:0 !important}.flex-grow-1{flex-grow:1 !important}.flex-shrink-0{flex-shrink:0 !important}.flex-shrink-1{flex-shrink:1 !important}.flex-wrap{flex-wrap:wrap !important}.flex-nowrap{flex-wrap:nowrap !important}.items-start{align-items:flex-start !important}.items-end{align-items:flex-end !important}.items-center{align-items:center !important}.items-baseline{align-items:baseline !important}.items-stretch{align-items:stretch !important}.self-start{align-self:flex-start !important}.self-end{align-self:flex-end !important}.self-center{align-self:center !important}.self-baseline{align-self:baseline !important}.self-stretch{align-self:stretch !important}.justify-start{justify-content:flex-start !important}.justify-end{justify-content:flex-end !important}.justify-center{justify-content:center !important}.justify-between{justify-content:space-between !important}.justify-around{justify-content:space-around !important}.content-start{align-content:flex-start !important}.content-end{align-content:flex-end !important}.content-center{align-content:center !important}.content-between{align-content:space-between !important}.content-around{align-content:space-around !important}.content-stretch{align-content:stretch !important}.m0{margin:0 !important}.m2{margin:var(--fluid-2) !important}.m4{margin:var(--fluid-4) !important}.m6{margin:var(--fluid-6) !important}.m8{margin:var(--fluid-8) !important}.m10{margin:var(--fluid-10) !important}.m12{margin:var(--fluid-12) !important}.m14{margin:var(--fluid-14) !important}.m16{margin:var(--fluid-16) !important}.m18{margin:var(--fluid-18) !important}.m20{margin:var(--fluid-20) !important}.m24{margin:var(--fluid-24) !important}.m32{margin:var(--fluid-32) !important}.m36{margin:var(--fluid-36) !important}.m40{margin:var(--fluid-40) !important}.m48{margin:var(--fluid-48) !important}.m56{margin:var(--fluid-56) !important}.m64{margin:var(--fluid-64) !important}.mis0{-webkit-margin-start:0 !important;margin-inline-start:0 !important}.mis2{-webkit-margin-start:var(--fluid-2) !important;margin-inline-start:var(--fluid-2) !important}.mis4{-webkit-margin-start:var(--fluid-4) !important;margin-inline-start:var(--fluid-4) !important}.mis6{-webkit-margin-start:var(--fluid-6) !important;margin-inline-start:var(--fluid-6) !important}.mis8{-webkit-margin-start:var(--fluid-8) !important;margin-inline-start:var(--fluid-8) !important}.mis10{-webkit-margin-start:var(--fluid-10) !important;margin-inline-start:var(--fluid-10) !important}.mis12{-webkit-margin-start:var(--fluid-12) !important;margin-inline-start:var(--fluid-12) !important}.mis14{-webkit-margin-start:var(--fluid-14) !important;margin-inline-start:var(--fluid-14) !important}.mis16{-webkit-margin-start:var(--fluid-16) !important;margin-inline-start:var(--fluid-16) !important}.mis18{-webkit-margin-start:var(--fluid-18) !important;margin-inline-start:var(--fluid-18) !important}.mis20{-webkit-margin-start:var(--fluid-20) !important;margin-inline-start:var(--fluid-20) !important}.mis24{-webkit-margin-start:var(--fluid-24) !important;margin-inline-start:var(--fluid-24) !important}.mis32{-webkit-margin-start:var(--fluid-32) !important;margin-inline-start:var(--fluid-32) !important}.mis36{-webkit-margin-start:var(--fluid-36) !important;margin-inline-start:var(--fluid-36) !important}.mis40{-webkit-margin-start:var(--fluid-40) !important;margin-inline-start:var(--fluid-40) !important}.mis48{-webkit-margin-start:var(--fluid-48) !important;margin-inline-start:var(--fluid-48) !important}.mis56{-webkit-margin-start:var(--fluid-56) !important;margin-inline-start:var(--fluid-56) !important}.mis64{-webkit-margin-start:var(--fluid-64) !important;margin-inline-start:var(--fluid-64) !important}.mie0{-webkit-margin-end:0 !important;margin-inline-end:0 !important}.mie2{-webkit-margin-end:var(--fluid-2) !important;margin-inline-end:var(--fluid-2) !important}.mie4{-webkit-margin-end:var(--fluid-4) !important;margin-inline-end:var(--fluid-4) !important}.mie6{-webkit-margin-end:var(--fluid-6) !important;margin-inline-end:var(--fluid-6) !important}.mie8{-webkit-margin-end:var(--fluid-8) !important;margin-inline-end:var(--fluid-8) !important}.mie10{-webkit-margin-end:var(--fluid-10) !important;margin-inline-end:var(--fluid-10) !important}.mie12{-webkit-margin-end:var(--fluid-12) !important;margin-inline-end:var(--fluid-12) !important}.mie14{-webkit-margin-end:var(--fluid-14) !important;margin-inline-end:var(--fluid-14) !important}.mie16{-webkit-margin-end:var(--fluid-16) !important;margin-inline-end:var(--fluid-16) !important}.mie18{-webkit-margin-end:var(--fluid-18) !important;margin-inline-end:var(--fluid-18) !important}.mie20{-webkit-margin-end:var(--fluid-20) !important;margin-inline-end:var(--fluid-20) !important}.mie24{-webkit-margin-end:var(--fluid-24) !important;margin-inline-end:var(--fluid-24) !important}.mie32{-webkit-margin-end:var(--fluid-32) !important;margin-inline-end:var(--fluid-32) !important}.mie36{-webkit-margin-end:var(--fluid-36) !important;margin-inline-end:var(--fluid-36) !important}.mie40{-webkit-margin-end:var(--fluid-40) !important;margin-inline-end:var(--fluid-40) !important}.mie48{-webkit-margin-end:var(--fluid-48) !important;margin-inline-end:var(--fluid-48) !important}.mie56{-webkit-margin-end:var(--fluid-56) !important;margin-inline-end:var(--fluid-56) !important}.mie64{-webkit-margin-end:var(--fluid-64) !important;margin-inline-end:var(--fluid-64) !important}.mbs0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.mbs2{-webkit-margin-before:var(--fluid-2) !important;margin-block-start:var(--fluid-2) !important}.mbs4{-webkit-margin-before:var(--fluid-4) !important;margin-block-start:var(--fluid-4) !important}.mbs6{-webkit-margin-before:var(--fluid-6) !important;margin-block-start:var(--fluid-6) !important}.mbs8{-webkit-margin-before:var(--fluid-8) !important;margin-block-start:var(--fluid-8) !important}.mbs10{-webkit-margin-before:var(--fluid-10) !important;margin-block-start:var(--fluid-10) !important}.mbs12{-webkit-margin-before:var(--fluid-12) !important;margin-block-start:var(--fluid-12) !important}.mbs14{-webkit-margin-before:var(--fluid-14) !important;margin-block-start:var(--fluid-14) !important}.mbs16{-webkit-margin-before:var(--fluid-16) !important;margin-block-start:var(--fluid-16) !important}.mbs18{-webkit-margin-before:var(--fluid-18) !important;margin-block-start:var(--fluid-18) !important}.mbs20{-webkit-margin-before:var(--fluid-20) !important;margin-block-start:var(--fluid-20) !important}.mbs24{-webkit-margin-before:var(--fluid-24) !important;margin-block-start:var(--fluid-24) !important}.mbs32{-webkit-margin-before:var(--fluid-32) !important;margin-block-start:var(--fluid-32) !important}.mbs36{-webkit-margin-before:var(--fluid-36) !important;margin-block-start:var(--fluid-36) !important}.mbs40{-webkit-margin-before:var(--fluid-40) !important;margin-block-start:var(--fluid-40) !important}.mbs48{-webkit-margin-before:var(--fluid-48) !important;margin-block-start:var(--fluid-48) !important}.mbs56{-webkit-margin-before:var(--fluid-56) !important;margin-block-start:var(--fluid-56) !important}.mbs64{-webkit-margin-before:var(--fluid-64) !important;margin-block-start:var(--fluid-64) !important}.mbe0{-webkit-margin-after:0 !important;margin-block-end:0 !important}.mbe2{-webkit-margin-after:var(--fluid-2) !important;margin-block-end:var(--fluid-2) !important}.mbe4{-webkit-margin-after:var(--fluid-4) !important;margin-block-end:var(--fluid-4) !important}.mbe6{-webkit-margin-after:var(--fluid-6) !important;margin-block-end:var(--fluid-6) !important}.mbe8{-webkit-margin-after:var(--fluid-8) !important;margin-block-end:var(--fluid-8) !important}.mbe10{-webkit-margin-after:var(--fluid-10) !important;margin-block-end:var(--fluid-10) !important}.mbe12{-webkit-margin-after:var(--fluid-12) !important;margin-block-end:var(--fluid-12) !important}.mbe14{-webkit-margin-after:var(--fluid-14) !important;margin-block-end:var(--fluid-14) !important}.mbe16{-webkit-margin-after:var(--fluid-16) !important;margin-block-end:var(--fluid-16) !important}.mbe18{-webkit-margin-after:var(--fluid-18) !important;margin-block-end:var(--fluid-18) !important}.mbe20{-webkit-margin-after:var(--fluid-20) !important;margin-block-end:var(--fluid-20) !important}.mbe24{-webkit-margin-after:var(--fluid-24) !important;margin-block-end:var(--fluid-24) !important}.mbe32{-webkit-margin-after:var(--fluid-32) !important;margin-block-end:var(--fluid-32) !important}.mbe36{-webkit-margin-after:var(--fluid-36) !important;margin-block-end:var(--fluid-36) !important}.mbe40{-webkit-margin-after:var(--fluid-40) !important;margin-block-end:var(--fluid-40) !important}.mbe48{-webkit-margin-after:var(--fluid-48) !important;margin-block-end:var(--fluid-48) !important}.mbe56{-webkit-margin-after:var(--fluid-56) !important;margin-block-end:var(--fluid-56) !important}.mbe64{-webkit-margin-after:var(--fluid-64) !important;margin-block-end:var(--fluid-64) !important}.p0{padding:0 !important}.p2{padding:var(--fluid-2) !important}.p4{padding:var(--fluid-4) !important}.p6{padding:var(--fluid-6) !important}.p8{padding:var(--fluid-8) !important}.p10{padding:var(--fluid-10) !important}.p12{padding:var(--fluid-12) !important}.p14{padding:var(--fluid-14) !important}.p16{padding:var(--fluid-16) !important}.p18{padding:var(--fluid-18) !important}.p20{padding:var(--fluid-20) !important}.p24{padding:var(--fluid-24) !important}.p32{padding:var(--fluid-32) !important}.p36{padding:var(--fluid-36) !important}.p40{padding:var(--fluid-40) !important}.p48{padding:var(--fluid-48) !important}.p56{padding:var(--fluid-56) !important}.p64{padding:var(--fluid-64) !important}.pis0{-webkit-padding-start:0 !important;padding-inline-start:0 !important}.pis2{-webkit-padding-start:var(--fluid-2) !important;padding-inline-start:var(--fluid-2) !important}.pis4{-webkit-padding-start:var(--fluid-4) !important;padding-inline-start:var(--fluid-4) !important}.pis6{-webkit-padding-start:var(--fluid-6) !important;padding-inline-start:var(--fluid-6) !important}.pis8{-webkit-padding-start:var(--fluid-8) !important;padding-inline-start:var(--fluid-8) !important}.pis10{-webkit-padding-start:var(--fluid-10) !important;padding-inline-start:var(--fluid-10) !important}.pis12{-webkit-padding-start:var(--fluid-12) !important;padding-inline-start:var(--fluid-12) !important}.pis14{-webkit-padding-start:var(--fluid-14) !important;padding-inline-start:var(--fluid-14) !important}.pis16{-webkit-padding-start:var(--fluid-16) !important;padding-inline-start:var(--fluid-16) !important}.pis18{-webkit-padding-start:var(--fluid-18) !important;padding-inline-start:var(--fluid-18) !important}.pis20{-webkit-padding-start:var(--fluid-20) !important;padding-inline-start:var(--fluid-20) !important}.pis24{-webkit-padding-start:var(--fluid-24) !important;padding-inline-start:var(--fluid-24) !important}.pis32{-webkit-padding-start:var(--fluid-32) !important;padding-inline-start:var(--fluid-32) !important}.pis36{-webkit-padding-start:var(--fluid-36) !important;padding-inline-start:var(--fluid-36) !important}.pis40{-webkit-padding-start:var(--fluid-40) !important;padding-inline-start:var(--fluid-40) !important}.pis48{-webkit-padding-start:var(--fluid-48) !important;padding-inline-start:var(--fluid-48) !important}.pis56{-webkit-padding-start:var(--fluid-56) !important;padding-inline-start:var(--fluid-56) !important}.pis64{-webkit-padding-start:var(--fluid-64) !important;padding-inline-start:var(--fluid-64) !important}.pie0{-webkit-padding-end:0 !important;padding-inline-end:0 !important}.pie2{-webkit-padding-end:var(--fluid-2) !important;padding-inline-end:var(--fluid-2) !important}.pie4{-webkit-padding-end:var(--fluid-4) !important;padding-inline-end:var(--fluid-4) !important}.pie6{-webkit-padding-end:var(--fluid-6) !important;padding-inline-end:var(--fluid-6) !important}.pie8{-webkit-padding-end:var(--fluid-8) !important;padding-inline-end:var(--fluid-8) !important}.pie10{-webkit-padding-end:var(--fluid-10) !important;padding-inline-end:var(--fluid-10) !important}.pie12{-webkit-padding-end:var(--fluid-12) !important;padding-inline-end:var(--fluid-12) !important}.pie14{-webkit-padding-end:var(--fluid-14) !important;padding-inline-end:var(--fluid-14) !important}.pie16{-webkit-padding-end:var(--fluid-16) !important;padding-inline-end:var(--fluid-16) !important}.pie18{-webkit-padding-end:var(--fluid-18) !important;padding-inline-end:var(--fluid-18) !important}.pie20{-webkit-padding-end:var(--fluid-20) !important;padding-inline-end:var(--fluid-20) !important}.pie24{-webkit-padding-end:var(--fluid-24) !important;padding-inline-end:var(--fluid-24) !important}.pie32{-webkit-padding-end:var(--fluid-32) !important;padding-inline-end:var(--fluid-32) !important}.pie36{-webkit-padding-end:var(--fluid-36) !important;padding-inline-end:var(--fluid-36) !important}.pie40{-webkit-padding-end:var(--fluid-40) !important;padding-inline-end:var(--fluid-40) !important}.pie48{-webkit-padding-end:var(--fluid-48) !important;padding-inline-end:var(--fluid-48) !important}.pie56{-webkit-padding-end:var(--fluid-56) !important;padding-inline-end:var(--fluid-56) !important}.pie64{-webkit-padding-end:var(--fluid-64) !important;padding-inline-end:var(--fluid-64) !important}.pbs0{-webkit-padding-before:0 !important;padding-block-start:0 !important}.pbs2{-webkit-padding-before:var(--fluid-2) !important;padding-block-start:var(--fluid-2) !important}.pbs4{-webkit-padding-before:var(--fluid-4) !important;padding-block-start:var(--fluid-4) !important}.pbs6{-webkit-padding-before:var(--fluid-6) !important;padding-block-start:var(--fluid-6) !important}.pbs8{-webkit-padding-before:var(--fluid-8) !important;padding-block-start:var(--fluid-8) !important}.pbs10{-webkit-padding-before:var(--fluid-10) !important;padding-block-start:var(--fluid-10) !important}.pbs12{-webkit-padding-before:var(--fluid-12) !important;padding-block-start:var(--fluid-12) !important}.pbs14{-webkit-padding-before:var(--fluid-14) !important;padding-block-start:var(--fluid-14) !important}.pbs16{-webkit-padding-before:var(--fluid-16) !important;padding-block-start:var(--fluid-16) !important}.pbs18{-webkit-padding-before:var(--fluid-18) !important;padding-block-start:var(--fluid-18) !important}.pbs20{-webkit-padding-before:var(--fluid-20) !important;padding-block-start:var(--fluid-20) !important}.pbs24{-webkit-padding-before:var(--fluid-24) !important;padding-block-start:var(--fluid-24) !important}.pbs32{-webkit-padding-before:var(--fluid-32) !important;padding-block-start:var(--fluid-32) !important}.pbs36{-webkit-padding-before:var(--fluid-36) !important;padding-block-start:var(--fluid-36) !important}.pbs40{-webkit-padding-before:var(--fluid-40) !important;padding-block-start:var(--fluid-40) !important}.pbs48{-webkit-padding-before:var(--fluid-48) !important;padding-block-start:var(--fluid-48) !important}.pbs56{-webkit-padding-before:var(--fluid-56) !important;padding-block-start:var(--fluid-56) !important}.pbs64{-webkit-padding-before:var(--fluid-64) !important;padding-block-start:var(--fluid-64) !important}.pbe0{-webkit-padding-after:0 !important;padding-block-end:0 !important}.pbe2{-webkit-padding-after:var(--fluid-2) !important;padding-block-end:var(--fluid-2) !important}.pbe4{-webkit-padding-after:var(--fluid-4) !important;padding-block-end:var(--fluid-4) !important}.pbe6{-webkit-padding-after:var(--fluid-6) !important;padding-block-end:var(--fluid-6) !important}.pbe8{-webkit-padding-after:var(--fluid-8) !important;padding-block-end:var(--fluid-8) !important}.pbe10{-webkit-padding-after:var(--fluid-10) !important;padding-block-end:var(--fluid-10) !important}.pbe12{-webkit-padding-after:var(--fluid-12) !important;padding-block-end:var(--fluid-12) !important}.pbe14{-webkit-padding-after:var(--fluid-14) !important;padding-block-end:var(--fluid-14) !important}.pbe16{-webkit-padding-after:var(--fluid-16) !important;padding-block-end:var(--fluid-16) !important}.pbe18{-webkit-padding-after:var(--fluid-18) !important;padding-block-end:var(--fluid-18) !important}.pbe20{-webkit-padding-after:var(--fluid-20) !important;padding-block-end:var(--fluid-20) !important}.pbe24{-webkit-padding-after:var(--fluid-24) !important;padding-block-end:var(--fluid-24) !important}.pbe32{-webkit-padding-after:var(--fluid-32) !important;padding-block-end:var(--fluid-32) !important}.pbe36{-webkit-padding-after:var(--fluid-36) !important;padding-block-end:var(--fluid-36) !important}.pbe40{-webkit-padding-after:var(--fluid-40) !important;padding-block-end:var(--fluid-40) !important}.pbe48{-webkit-padding-after:var(--fluid-48) !important;padding-block-end:var(--fluid-48) !important}.pbe56{-webkit-padding-after:var(--fluid-56) !important;padding-block-end:var(--fluid-56) !important}.pbe64{-webkit-padding-after:var(--fluid-64) !important;padding-block-end:var(--fluid-64) !important}:where(html){scrollbar-gutter:stable both-edges}:where(img,picture,canvas,video,iframe){max-inline-size:100%;block-size:auto;vertical-align:middle}:where(body){font-family:var(--font-family-body);font-size:var(--body);-webkit-font-smoothing:antialiased}:where(h1){font-size:var(--h1)}:where(h2){font-size:var(--h2)}:where(h3){font-size:var(--h3)}:where(h4){font-size:var(--h4)}:where(h5){font-size:var(--h5)}:where(h6){font-size:var(--h6)}:root{--menu-margin: 0px;--menu-padding: 0px;--menu-background: none;--menu-item-color: var(--primary);--menu-item-margin: 0px;--menu-item-padding: 0px;--menu-item-border-top: 0px;--menu-item-border-right: 0px;--menu-item-border-bottom: 0px;--menu-item-border-left: 0px;--menu-item-selected-radius: var(--radius, 0);--menu-item-hover-color: var(--menu-item-color);--menu-item-hover-background: var(--menu-item-background);--menu-item-hover-margin: var(--menu-item-margin);--menu-item-hover-padding: var(--menu-item-padding);--menu-item-hover-border-top: var(--menu-item-hover-border-top);--menu-item-hover-border-right: var(--menu-item-hover-border-right);--menu-item-hover-border-bottom: var(--menu-item-hover-border-bottom);--menu-item-hover-border-left: var(--menu-item-hover-border-left);--menu-item-hover-radius: var(--menu-item-radius);--menu-item-selected-color: var(--menu-item-color);--menu-item-selected-background: var(--menu-item-background);--menu-item-selected-margin: var(--menu-item-margin);--menu-item-selected-padding: var(--menu-item-padding);--menu-item-selected-border-top:var(--menu-item-border-top);--menu-item-selected-border-right:var(--menu-item-border-right);--menu-item-selected-border-bottom:var(--menu-item-border-bottom);--menu-item-selected-border-left:var(--menu-item-border-left);--menu-item-selected-radius: var(--menu-item-radius)}.sticky{position:sticky;top:0;z-index:10000}:root{--mobile-logo-margin: 0px;--mobile-logo-padding: 0px;--logo-margin: var(--mobile-logo-margin);--logo-padding: var(--mobile-logo-padding)}.display-block{display:block}.display-inline{display:inline}.display-inline-block{display:inline-block}.display-flex{display:flex}.display-inline-flex{display:inline-flex}.display-grid{display:grid}.display-inline-grid{display:inline-grid}.display-flow-root{display:flow-root}.display-none{display:none}.display-contents{display:contents}.display-block-flex{display:block flex}.display-block-flow{display:block flow}.display-block-flow-root{display:block flow-root}.display-block-grid{display:block grid}.display-inline-flex{display:inline flex}.display-inline-flow{display:inline flow}.display-inline-flow-root{display:inline flow-root}.display-inline-grid{display:inline grid}.display-table{display:table}.display-table-row{display:table-row}.display-list-item{display:list-item}.display-inherit{display:inherit}.display-initial{display:initial}.display-revert{display:revert}.display-revert-layer{display:revert-layer}.display-unset{display:unset}html,body,body>div{height:100%}body{display:flex;flex-direction:column}#defaultLayout{flex:1 0 auto}.fw{width:100% !important}.fh{height:100% !important}.flex-row{flex-direction:row !important}.flex-column{flex-direction:column !important}.flex-row-dynamic{flex-direction:column !important}.h0{height:0 !important}.h2{height:var(--fluid-2) !important}.h4{height:var(--fluid-4) !important}.h6{height:var(--fluid-6) !important}.h8{height:var(--fluid-8) !important}.h10{height:var(--fluid-10) !important}.h12{height:var(--fluid-12) !important}.h14{height:var(--fluid-14) !important}.h16{height:var(--fluid-16) !important}.h18{height:var(--fluid-18) !important}.h20{height:var(--fluid-20) !important}.h24{height:var(--fluid-24) !important}.h32{height:var(--fluid-32) !important}.h36{height:var(--fluid-36) !important}.h40{height:var(--fluid-40) !important}.h48{height:var(--fluid-48) !important}.h56{height:var(--fluid-56) !important}.h64{height:var(--fluid-64) !important}.h20p{height:20% !important}.h10p{height:10% !important}.h30p{height:30% !important}.h40p{height:40% !important}.h50p{height:50% !important}.h60p{height:60% !important}.h70p{height:70% !important}.h80p{height:80% !important}.h90p{height:90% !important}.h100p{height:100% !important}.h33p{height:33% !important}.h66p{height:66% !important}.h25p{height:25% !important}.h75p{height:75% !important}.h50p{height:50% !important}.w0{width:0 !important}.w2{width:var(--fluid-2) !important}.w4{width:var(--fluid-4) !important}.w6{width:var(--fluid-6) !important}.w8{width:var(--fluid-8) !important}.w10{width:var(--fluid-10) !important}.w12{width:var(--fluid-12) !important}.w14{width:var(--fluid-14) !important}.w16{width:var(--fluid-16) !important}.w18{width:var(--fluid-18) !important}.w20{width:var(--fluid-20) !important}.w24{width:var(--fluid-24) !important}.w32{width:var(--fluid-32) !important}.w36{width:var(--fluid-36) !important}.w40{width:var(--fluid-40) !important}.w48{width:var(--fluid-48) !important}.w56{width:var(--fluid-56) !important}.w64{width:var(--fluid-64) !important}.w10p{width:10% !important}.w20p{width:20% !important}.w30p{width:30% !important}.w40p{width:40% !important}.w50p{width:50% !important}.w60p{width:60% !important}.w70p{width:70% !important}.w80p{width:80% !important}.w90p{width:90% !important}.w100p{width:100% !important}.w33p{width:100% !important}.w66p{width:100% !important}.w25p{width:100% !important}.w45p{width:100% !important}.w75p{width:100% !important}.w50p{width:100% !important}@media(min-width: 960px){.flex-row-dynamic{flex-direction:row !important}.w33p{width:33% !important}.w66p{width:66% !important}.w25p{width:25% !important}.w75p{width:75% !important}.w50p{width:50% !important}.w10p{width:10% !important}.w20p{width:20% !important}.w30p{width:30% !important}.w40p{width:40% !important}.w50p{width:50% !important}.w60p{width:60% !important}.w70p{width:70% !important}.w80p{width:80% !important}.w90p{width:90% !important}.h33p{height:33% !important}.h66p{height:66% !important}.h25p{height:25% !important}.h75p{height:75% !important}.h50p{height:50% !important}}/*# sourceMappingURL=functional.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../src/lib/css/common.scss","../src/lib/css/opinions.scss","../src/lib/css/menu.scss","../src/lib/css/logo.scss","../src/lib/css/displays.scss","../src/lib/css/properties.scss"],"names":[],"mappings":"AAAA,aACI,2CACA,oCACA,mCACA,kCACA,qCACA,+BACA,yCACA,mCACA,kCACA,oCACA,mCACA,6BACA,wBACA,uBACA,+BACA,gCACA,8BACA,gCACA,sCACA,kCACA,iCACA,gCACA,2BACA,mCACA,kCACA,iCACA,kCACA,4BACA,uDACA,qDAGJ,aACI,0CACA,mCACA,kCACA,iCACA,iCACA,8BACA,wCACA,kCACA,iCACA,mCACA,kCACA,4BACA,0BACA,yBACA,6CACA,kDACA,4CACA,8CACA,oDACA,iCACA,gCACA,+BACA,0BACA,kCACA,iCACA,gCACA,iCACA,2BACA,qDACA,oDAGJ,MACI,mBACA,gEACA,kDACA,gDACA,8CACA,oDACA,wCACA,gDACA,8CACA,kDACA,gDACA,oCACA,gCACA,8BACA,wCACA,gDACA,sCACA,0CACA,sDACA,gCACA,4CACA,0CACA,8CACA,6CACA,2CACA,gDACA,8CACA,4CACA,8CACA,mCAGJ,mCACI,MACI,kBACA,+DACA,iDACA,+CACA,6CACA,mDACA,uCACA,+CACA,6CACA,iDACA,+CACA,mCACA,+BACA,6BACA,uCACA,+CACA,qCACA,yCACA,qDACA,+BACA,2CACA,yCACA,6CACA,4CACA,0CACA,+CACA,6CACA,2CACA,6CACA,mCAIR,qBACI,mBACA,gEACA,kDACA,gDACA,8CACA,oDACA,wCACA,gDACA,8CACA,kDACA,gDACA,oCACA,gCACA,8BACA,wCACA,gDACA,sCACA,0CACA,sDACA,gCACA,4CACA,0CACA,8CACA,6CACA,2CACA,gDACA,8CACA,4CACA,8CACA,mCAGJ,oBACI,kBACA,+DACA,iDACA,+CACA,6CACA,mDACA,uCACA,+CACA,6CACA,iDACA,+CACA,mCACA,+BACA,6BACA,uCACA,+CACA,qCACA,yCACA,qDACA,+BACA,2CACA,yCACA,6CACA,4CACA,0CACA,+CACA,6CACA,2CACA,6CACA,kCAGJ,aACI,wCACA,kCACA,gCACA,2CAGJ,aACI,iBACA,mBACA,iBACA,mBACA,iBACA,mBACA,oBACA,iBACA,mBACA,oBACA,qBACA,iBACA,qBACA,oBACA,qBACA,kBACA,oBACA,mBACA,oBACA,+BACA,+BACA,gCACA,uCAGJ,aACI,kBACA,aACA,cACA,eACA,aACA,cACA,WACA,WACA,0BACA,wBACA,yBACA,uHACA,uEACA,4HAGJ,aACI,qBACA,uBACA,sBAGJ,aACI,4BACA,qBAGJ,MACI,kCACA,0BAGJ,KACI,sBAGJ,qBAGI,mBAGJ,aACI,gBAGJ,WACI,gBAGJ,6BACI,eAGJ,8CACI,SACA,oBACA,kBACA,cACA,oBAGJ,cACI,yBAGJ,WACI,gCACA,wBACA,mBAGJ,mCACI,qBACA,mBACA,eAGJ,iHACI,SACA,UAGJ,EACI,sCACA,wBACA,qBAGJ,QACI,0BAGJ,QACI,yEACA,wGACA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|
-
children: Snippet;
|
|
7
|
-
css: string;
|
|
8
|
-
style: string;
|
|
9
|
-
type?: 'submit' | 'reset' | 'button' | 'link';
|
|
10
|
-
href: string;
|
|
11
|
-
mode?: string;
|
|
12
|
-
size?: string;
|
|
13
|
-
isPrimary: boolean;
|
|
14
|
-
isBordered?: boolean;
|
|
15
|
-
isCapsule?: boolean;
|
|
16
|
-
isGrouped?: boolean;
|
|
17
|
-
isBlock?: boolean;
|
|
18
|
-
isLink?: boolean;
|
|
19
|
-
isBlank?: boolean;
|
|
20
|
-
isDisabled?: boolean;
|
|
21
|
-
role?: string;
|
|
22
|
-
isCircle?: boolean;
|
|
23
|
-
isRounded?: boolean;
|
|
24
|
-
isSkinned?: boolean;
|
|
25
|
-
ariaSelected?: boolean;
|
|
26
|
-
ariaControls?: string;
|
|
27
|
-
tabIndex?: number;
|
|
28
|
-
onclick?: () => void;
|
|
29
|
-
onkeydown?: (e: KeyboardEvent) => void;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
let {
|
|
33
|
-
children,
|
|
34
|
-
css = '',
|
|
35
|
-
style = '',
|
|
36
|
-
href = '',
|
|
37
|
-
mode = undefined,
|
|
38
|
-
size = undefined,
|
|
39
|
-
type = 'button',
|
|
40
|
-
isPrimary = false,
|
|
41
|
-
isBordered = false,
|
|
42
|
-
isCapsule = false,
|
|
43
|
-
isGrouped = false,
|
|
44
|
-
isBlock = false,
|
|
45
|
-
isLink = false,
|
|
46
|
-
isBlank = false,
|
|
47
|
-
isDisabled = false,
|
|
48
|
-
role = undefined,
|
|
49
|
-
isCircle = false,
|
|
50
|
-
isRounded = false,
|
|
51
|
-
isSkinned = true,
|
|
52
|
-
ariaSelected = undefined,
|
|
53
|
-
ariaControls = undefined,
|
|
54
|
-
tabIndex = 0,
|
|
55
|
-
onclick = undefined,
|
|
56
|
-
onkeydown = undefined,
|
|
57
|
-
...restProps
|
|
58
|
-
}: Partial<Props> = $props();
|
|
59
|
-
|
|
60
|
-
let klasses = $derived(
|
|
61
|
-
cn(
|
|
62
|
-
isSkinned ? 'btn' : 'btn-base',
|
|
63
|
-
mode ? `btn-${mode}` : '',
|
|
64
|
-
size ? `btn-${size}` : '',
|
|
65
|
-
isBordered ? 'btn-bordered' : '',
|
|
66
|
-
isCapsule ? 'btn-capsule ' : '',
|
|
67
|
-
isGrouped ? 'btn-grouped' : '',
|
|
68
|
-
isBlock ? 'btn-block' : '',
|
|
69
|
-
isCircle ? 'btn-circle' : '',
|
|
70
|
-
isRounded ? 'btn-rounded' : '',
|
|
71
|
-
isDisabled ? 'disabled' : '',
|
|
72
|
-
isBlank ? 'btn-blank' : '',
|
|
73
|
-
isLink ? 'btn-link' : '',
|
|
74
|
-
css ? `${css}` : ''
|
|
75
|
-
)
|
|
76
|
-
);
|
|
77
|
-
</script>
|
|
78
|
-
|
|
79
|
-
{#if type == 'link'}
|
|
80
|
-
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
81
|
-
<a
|
|
82
|
-
class={klasses}
|
|
83
|
-
{href}
|
|
84
|
-
{style}
|
|
85
|
-
{role}
|
|
86
|
-
aria-selected={ariaSelected}
|
|
87
|
-
aria-controls={ariaControls}
|
|
88
|
-
tabindex={tabIndex}
|
|
89
|
-
{onclick}
|
|
90
|
-
{onkeydown}
|
|
91
|
-
{...restProps}
|
|
92
|
-
>
|
|
93
|
-
{@render children?.()}
|
|
94
|
-
</a>
|
|
95
|
-
{:else}
|
|
96
|
-
<button
|
|
97
|
-
{type}
|
|
98
|
-
class={klasses}
|
|
99
|
-
{style}
|
|
100
|
-
{role}
|
|
101
|
-
aria-selected={ariaSelected}
|
|
102
|
-
aria-controls={ariaControls}
|
|
103
|
-
tabindex={tabIndex}
|
|
104
|
-
disabled={isDisabled}
|
|
105
|
-
{onclick}
|
|
106
|
-
{onkeydown}
|
|
107
|
-
{...restProps}
|
|
108
|
-
>
|
|
109
|
-
{@render children?.()}
|
|
110
|
-
</button>
|
|
111
|
-
{/if}
|
|
112
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '../../utils.js';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
children: Snippet;
|
|
7
|
+
css: string;
|
|
8
|
+
style: string;
|
|
9
|
+
type?: 'submit' | 'reset' | 'button' | 'link';
|
|
10
|
+
href: string;
|
|
11
|
+
mode?: string;
|
|
12
|
+
size?: string;
|
|
13
|
+
isPrimary: boolean;
|
|
14
|
+
isBordered?: boolean;
|
|
15
|
+
isCapsule?: boolean;
|
|
16
|
+
isGrouped?: boolean;
|
|
17
|
+
isBlock?: boolean;
|
|
18
|
+
isLink?: boolean;
|
|
19
|
+
isBlank?: boolean;
|
|
20
|
+
isDisabled?: boolean;
|
|
21
|
+
role?: string;
|
|
22
|
+
isCircle?: boolean;
|
|
23
|
+
isRounded?: boolean;
|
|
24
|
+
isSkinned?: boolean;
|
|
25
|
+
ariaSelected?: boolean;
|
|
26
|
+
ariaControls?: string;
|
|
27
|
+
tabIndex?: number;
|
|
28
|
+
onclick?: () => void;
|
|
29
|
+
onkeydown?: (e: KeyboardEvent) => void;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
let {
|
|
33
|
+
children,
|
|
34
|
+
css = '',
|
|
35
|
+
style = '',
|
|
36
|
+
href = '',
|
|
37
|
+
mode = undefined,
|
|
38
|
+
size = undefined,
|
|
39
|
+
type = 'button',
|
|
40
|
+
isPrimary = false,
|
|
41
|
+
isBordered = false,
|
|
42
|
+
isCapsule = false,
|
|
43
|
+
isGrouped = false,
|
|
44
|
+
isBlock = false,
|
|
45
|
+
isLink = false,
|
|
46
|
+
isBlank = false,
|
|
47
|
+
isDisabled = false,
|
|
48
|
+
role = undefined,
|
|
49
|
+
isCircle = false,
|
|
50
|
+
isRounded = false,
|
|
51
|
+
isSkinned = true,
|
|
52
|
+
ariaSelected = undefined,
|
|
53
|
+
ariaControls = undefined,
|
|
54
|
+
tabIndex = 0,
|
|
55
|
+
onclick = undefined,
|
|
56
|
+
onkeydown = undefined,
|
|
57
|
+
...restProps
|
|
58
|
+
}: Partial<Props> = $props();
|
|
59
|
+
|
|
60
|
+
let klasses = $derived(
|
|
61
|
+
cn(
|
|
62
|
+
isSkinned ? 'btn' : 'btn-base',
|
|
63
|
+
mode ? `btn-${mode}` : '',
|
|
64
|
+
size ? `btn-${size}` : '',
|
|
65
|
+
isBordered ? 'btn-bordered' : '',
|
|
66
|
+
isCapsule ? 'btn-capsule ' : '',
|
|
67
|
+
isGrouped ? 'btn-grouped' : '',
|
|
68
|
+
isBlock ? 'btn-block' : '',
|
|
69
|
+
isCircle ? 'btn-circle' : '',
|
|
70
|
+
isRounded ? 'btn-rounded' : '',
|
|
71
|
+
isDisabled ? 'disabled' : '',
|
|
72
|
+
isBlank ? 'btn-blank' : '',
|
|
73
|
+
isLink ? 'btn-link' : '',
|
|
74
|
+
css ? `${css}` : ''
|
|
75
|
+
)
|
|
76
|
+
);
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
{#if type == 'link'}
|
|
80
|
+
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
81
|
+
<a
|
|
82
|
+
class={klasses}
|
|
83
|
+
{href}
|
|
84
|
+
{style}
|
|
85
|
+
{role}
|
|
86
|
+
aria-selected={ariaSelected}
|
|
87
|
+
aria-controls={ariaControls}
|
|
88
|
+
tabindex={tabIndex}
|
|
89
|
+
{onclick}
|
|
90
|
+
{onkeydown}
|
|
91
|
+
{...restProps}
|
|
92
|
+
>
|
|
93
|
+
{@render children?.()}
|
|
94
|
+
</a>
|
|
95
|
+
{:else}
|
|
96
|
+
<button
|
|
97
|
+
{type}
|
|
98
|
+
class={klasses}
|
|
99
|
+
{style}
|
|
100
|
+
{role}
|
|
101
|
+
aria-selected={ariaSelected}
|
|
102
|
+
aria-controls={ariaControls}
|
|
103
|
+
tabindex={tabIndex}
|
|
104
|
+
disabled={isDisabled}
|
|
105
|
+
{onclick}
|
|
106
|
+
{onkeydown}
|
|
107
|
+
{...restProps}
|
|
108
|
+
>
|
|
109
|
+
{@render children?.()}
|
|
110
|
+
</button>
|
|
111
|
+
{/if}
|
|
112
|
+
|
|
113
113
|
<style>.btn-base {
|
|
114
114
|
display: inline-flex;
|
|
115
115
|
align-items: center;
|
|
@@ -381,4 +381,4 @@ on the side padding. As such, these have a good bit less then regular buttons. *
|
|
|
381
381
|
|
|
382
382
|
.btn-link:hover {
|
|
383
383
|
cursor: pointer;
|
|
384
|
-
}</style>
|
|
384
|
+
}</style>
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '../../utils.js';
|
|
3
|
+
import type { ChoiceInputOption, ChoiceInputSize, ChoiceInputType, HtmlParts } from './utils.js';
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
isSkinned: boolean;
|
|
7
|
+
isFieldset: boolean;
|
|
8
|
+
isInline: boolean;
|
|
9
|
+
isDisabled: boolean;
|
|
10
|
+
isInvalid: boolean;
|
|
11
|
+
options: ChoiceInputOption[];
|
|
12
|
+
disabledOptions: string[];
|
|
13
|
+
checkedOptions: string[];
|
|
14
|
+
type: ChoiceInputType;
|
|
15
|
+
legendLabel: string;
|
|
16
|
+
size: ChoiceInputSize;
|
|
17
|
+
checked: string[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
let {
|
|
21
|
+
id = '',
|
|
22
|
+
name = '',
|
|
23
|
+
isSkinned = true,
|
|
24
|
+
isFieldset = true,
|
|
25
|
+
isInline = false,
|
|
26
|
+
isDisabled = undefined,
|
|
27
|
+
isInvalid = false,
|
|
28
|
+
options = [],
|
|
29
|
+
disabledOptions = [],
|
|
30
|
+
checkedOptions = [],
|
|
31
|
+
// If isFieldset falsy this will be screenreader only. If legendLabel is not passed
|
|
32
|
+
// in, it will fallback to the type prop or string choice input. Some content must be
|
|
33
|
+
// within the <legenc>CONTENT</legend> element to meet accessibility requirements
|
|
34
|
+
type = 'checkbox',
|
|
35
|
+
legendLabel = type || 'choice input',
|
|
36
|
+
size = '',
|
|
37
|
+
// Provides bind:checked capabilities that consumer can use
|
|
38
|
+
checked = [],
|
|
39
|
+
...restProps
|
|
40
|
+
}: Partial<Props & HtmlParts> = $props();
|
|
41
|
+
|
|
42
|
+
let labelClasses = $derived(
|
|
43
|
+
cn(
|
|
44
|
+
type ? `${type}-label-wrap` : '',
|
|
45
|
+
isInline ? `${type}-label-wrap-inline` : '',
|
|
46
|
+
isDisabled ? 'disabled' : ''
|
|
47
|
+
)
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
let labelSpanClasses = $derived(
|
|
51
|
+
cn(
|
|
52
|
+
type ? `${type}-label` : '',
|
|
53
|
+
isInvalid ? 'choice-input-error' : '',
|
|
54
|
+
size ? `${type}-label-${size}` : ''
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
// If consumer sets is skinned to false we don't style the legend
|
|
59
|
+
let skin = $derived(isSkinned ? `${type}-legend` : '');
|
|
60
|
+
|
|
61
|
+
let labelCopyClasses = $derived(
|
|
62
|
+
cn(
|
|
63
|
+
// Will also need to work in the small
|
|
64
|
+
// and large sizes here for the text copy
|
|
65
|
+
type ? `${type}-label-copy` : '',
|
|
66
|
+
size ? `${type}-label-copy-${size}` : '',
|
|
67
|
+
isInvalid ? 'choice-input-error' : ''
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
let legendClasses = $derived(
|
|
72
|
+
cn(
|
|
73
|
+
skin,
|
|
74
|
+
// .screenreader-only is expected to be globally available via common.min.css
|
|
75
|
+
isFieldset === false ? 'screenreader-only' : ''
|
|
76
|
+
)
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
let fieldsetClasses = $derived(
|
|
80
|
+
cn(
|
|
81
|
+
isSkinned ? `${type}-group` : '',
|
|
82
|
+
isSkinned && size === 'large' ? `${type}-group-${size}` : '',
|
|
83
|
+
isFieldset === false ? `${type}-group-hidden` : ''
|
|
84
|
+
)
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
let inputClasses = $derived(cn(type ? `${type}` : '', size ? `${type}-${size}` : ''));
|
|
88
|
+
|
|
89
|
+
let onChange = (e: any) => {
|
|
90
|
+
// This allows the consumer to use bind:checked={checkedValues} idiom.
|
|
91
|
+
// We cannot use the bind:group idiom as we're using dynamic type above,
|
|
92
|
+
// So, essentially, we're manually implementing two-way binding here ;-)
|
|
93
|
+
checked = Array.from(document.getElementsByName(e.target.name))
|
|
94
|
+
.filter((el) => (el as HTMLInputElement).checked)
|
|
95
|
+
.map((el) => (el as HTMLInputElement).value);
|
|
96
|
+
};
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<fieldset class={fieldsetClasses}>
|
|
100
|
+
<legend class={legendClasses}>{legendLabel}</legend>
|
|
101
|
+
{#each options as { name, value, label }, index}
|
|
102
|
+
<label
|
|
103
|
+
class={labelClasses}
|
|
104
|
+
class:disabled={isDisabled || disabledOptions.includes(value) || undefined}
|
|
105
|
+
>
|
|
106
|
+
<input
|
|
107
|
+
class={inputClasses}
|
|
108
|
+
id="{id}-{name}-{index}"
|
|
109
|
+
{type}
|
|
110
|
+
{name}
|
|
111
|
+
{value}
|
|
112
|
+
disabled={isDisabled || disabledOptions.includes(value)}
|
|
113
|
+
checked={checkedOptions.includes(value)}
|
|
114
|
+
onchange={onChange}
|
|
115
|
+
{...restProps}
|
|
116
|
+
/>
|
|
117
|
+
<span class={labelSpanClasses} aria-hidden="true"></span>
|
|
118
|
+
<span class={labelCopyClasses}>{label}</span>
|
|
119
|
+
</label>
|
|
120
|
+
{/each}
|
|
121
|
+
</fieldset>
|
|
122
|
+
|
|
123
|
+
<style>
|
|
124
|
+
/**
|
|
125
|
+
* These radio and checkbox customizations are an amalgamation of various resources I've
|
|
126
|
+
* found on the internets; from Heydon Pickering's radio article (and his Inclusive Components
|
|
127
|
+
* book), to Sara Soueidan, Scott O'Hara, MDO, and Adrian Roselli's research on the matter
|
|
128
|
+
* of inclusive hiding and custom radio/checkbox inputs.
|
|
129
|
+
*/
|
|
130
|
+
.checkbox-group,
|
|
131
|
+
.radio-group {
|
|
132
|
+
--width-28: calc(7 * var(--fluid-4)); /* 1.75rem/28px */
|
|
133
|
+
|
|
134
|
+
border: 1px solid var(--agnostic-checkbox-border-color, var(--agnostic-gray-light));
|
|
135
|
+
padding: var(--fluid-24);
|
|
136
|
+
padding-top: var(--fluid-14);
|
|
137
|
+
border-radius: var(--fluid-8);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.checkbox-group-large,
|
|
141
|
+
.radio-group-large {
|
|
142
|
+
padding: var(--width-28);
|
|
143
|
+
padding-top: var(--fluid-16);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.checkbox-legend,
|
|
147
|
+
.radio-legend {
|
|
148
|
+
padding: var(--fluid-2) var(--fluid-14);
|
|
149
|
+
border-radius: var(--fluid-2);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Hiding technique from https://www.sarasoueidan.com/blog/inclusively-hiding-and-styling-checkboxes-and-radio-buttons/
|
|
153
|
+
*/
|
|
154
|
+
.checkbox,
|
|
155
|
+
.radio {
|
|
156
|
+
position: absolute;
|
|
157
|
+
width: var(--fluid-14);
|
|
158
|
+
height: var(--fluid-14);
|
|
159
|
+
opacity: 0%;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.checkbox-small,
|
|
163
|
+
.radio-small {
|
|
164
|
+
width: var(--fluid-12);
|
|
165
|
+
height: var(--fluid-12);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.checkbox-large,
|
|
169
|
+
.radio-large {
|
|
170
|
+
width: var(--fluid-16);
|
|
171
|
+
height: var(--fluid-16);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.checkbox-label-wrap,
|
|
175
|
+
.radio-label-wrap {
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
cursor: pointer;
|
|
179
|
+
user-select: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.checkbox-label-wrap-inline,
|
|
183
|
+
.radio-label-wrap-inline {
|
|
184
|
+
display: inline-flex;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.checkbox-label-wrap-inline:not(:last-child),
|
|
188
|
+
.radio-label-wrap-inline:not(:last-child) {
|
|
189
|
+
margin-inline-end: var(--fluid-8);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* These are not actual <label> elements but the <span> label copy elements */
|
|
193
|
+
.checkbox-label-copy,
|
|
194
|
+
.radio-label-copy,
|
|
195
|
+
.checkbox-label,
|
|
196
|
+
.radio-label {
|
|
197
|
+
display: inline-flex;
|
|
198
|
+
position: relative;
|
|
199
|
+
align-items: center;
|
|
200
|
+
flex-wrap: wrap;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.checkbox-label-copy-small,
|
|
204
|
+
.radio-label-copy-small {
|
|
205
|
+
font-size: var(--agnostic-small); /* 0.875rem */
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.checkbox-label-copy-large,
|
|
209
|
+
.radio-label-copy-large {
|
|
210
|
+
font-size: calc(var(--agnostic-body) + 2px); /* 1rem + 2px (~18px) */
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* The checkmark itself */
|
|
214
|
+
.checkbox-label::after {
|
|
215
|
+
content: '';
|
|
216
|
+
position: absolute;
|
|
217
|
+
left: var(--fluid-6);
|
|
218
|
+
top: 1px;
|
|
219
|
+
width: var(--fluid-6);
|
|
220
|
+
height: var(--fluid-12);
|
|
221
|
+
border: solid var(--agnostic-light);
|
|
222
|
+
border-width: 0 var(--fluid-2) var(--fluid-2) 0;
|
|
223
|
+
transform-origin: center center;
|
|
224
|
+
transform: rotate(40deg) scale(0);
|
|
225
|
+
transition-property: border, background-color, transform;
|
|
226
|
+
transition-duration: var(--agnostic-timing-fast);
|
|
227
|
+
transition-timing-function: ease-in-out;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.checkbox-label::before,
|
|
231
|
+
.radio-label::before {
|
|
232
|
+
content: '';
|
|
233
|
+
display: inline-block;
|
|
234
|
+
margin-inline-end: var(--agnostic-checkbox-spacing-end, 0.75rem);
|
|
235
|
+
transition: var(--agnostic-timing-fast) ease-out all;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* Since we build up the radio size outwardly, it's naturally larger then the checkboxes
|
|
239
|
+
so we add a multiplyer to even those out initially */
|
|
240
|
+
.checkbox-label::before {
|
|
241
|
+
border: 2px solid var(--agnostic-checkbox-border-color, var(--agnostic-gray-light));
|
|
242
|
+
width: var(--fluid-16);
|
|
243
|
+
height: var(--fluid-16);
|
|
244
|
+
transition: box-shadow var(--agnostic-timing-fast) ease-out;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.radio-label::before {
|
|
248
|
+
width: var(--fluid-14);
|
|
249
|
+
height: var(--fluid-14);
|
|
250
|
+
vertical-align: calc(-1 * var(--fluid-2));
|
|
251
|
+
border-radius: 50%;
|
|
252
|
+
border: var(--fluid-2) solid var(--agnostic-checkbox-light, var(--agnostic-light));
|
|
253
|
+
box-shadow: 0 0 0 var(--fluid-2)
|
|
254
|
+
var(--agnostic-checkbox-border-color, var(--agnostic-gray-light));
|
|
255
|
+
transition: box-shadow var(--agnostic-timing-fast) ease-out;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@media (prefers-reduced-motion), (update: slow) {
|
|
259
|
+
.checkbox-label::after,
|
|
260
|
+
.checkbox-label::before,
|
|
261
|
+
.radio-label::before {
|
|
262
|
+
transition-duration: 0.001ms !important;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.checkbox-label-small::after {
|
|
267
|
+
left: calc(1.25 * var(--fluid-4));
|
|
268
|
+
top: 0;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.checkbox-label-small::before {
|
|
272
|
+
width: var(--fluid-14);
|
|
273
|
+
height: var(--fluid-14);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.radio-label-small::before {
|
|
277
|
+
width: var(--fluid-12);
|
|
278
|
+
height: var(--fluid-12);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.checkbox-label-large::after {
|
|
282
|
+
left: calc(1.75 * var(--fluid-4));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.checkbox-label-large::before {
|
|
286
|
+
width: var(--fluid-18);
|
|
287
|
+
height: var(--fluid-18);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.radio-label-large::before {
|
|
291
|
+
width: var(--fluid-16);
|
|
292
|
+
height: var(--fluid-16);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* the checked style using the :checked pseudo class */
|
|
296
|
+
.radio:checked + .radio-label::before {
|
|
297
|
+
background: var(--agnostic-checkbox-fill-color, #08a880);
|
|
298
|
+
box-shadow: 0 0 0 var(--fluid-2)
|
|
299
|
+
var(--agnostic-checkbox-border-color, var(--agnostic-gray-light));
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.radio:focus + .radio-label::before {
|
|
303
|
+
/* stylelint-disable-next-line max-line-length */
|
|
304
|
+
box-shadow:
|
|
305
|
+
0 0 0 var(--fluid-2) var(--agnostic-checkbox-border-color, var(--agnostic-gray-light)),
|
|
306
|
+
0 0 0 calc(1.5 * var(--fluid-2)) var(--agnostic-light),
|
|
307
|
+
0 0 0 calc(2.25 * var(--fluid-2)) var(--agnostic-focus-ring-color);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.checkbox:focus + .checkbox-label::before {
|
|
311
|
+
box-shadow: 0 0 0 var(--agnostic-focus-ring-outline-width) var(--agnostic-focus-ring-color);
|
|
312
|
+
|
|
313
|
+
/* Needed for High Contrast mode */
|
|
314
|
+
/* stylelint-disable-next-line max-line-length */
|
|
315
|
+
outline: var(--agnostic-focus-ring-outline-width) var(--agnostic-focus-ring-outline-style)
|
|
316
|
+
var(--agnostic-focus-ring-outline-color);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.checkbox:checked + .checkbox-label::after {
|
|
320
|
+
transform: rotate(40deg) scale(1);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.checkbox:checked + .checkbox-label::before {
|
|
324
|
+
background: var(--agnostic-checkbox-fill-color, #08a880);
|
|
325
|
+
border: 2px solid var(--agnostic-checkbox-fill-color, #08a880);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Consumer styles <legend> themselves, and can opt to use the .screenreader-only from
|
|
330
|
+
* utilities.css if they're design requires it.
|
|
331
|
+
*/
|
|
332
|
+
.checkbox-group-hidden,
|
|
333
|
+
.radio-group-hidden {
|
|
334
|
+
border: 0;
|
|
335
|
+
margin-block-start: 0;
|
|
336
|
+
margin-inline-start: 0;
|
|
337
|
+
margin-inline-end: 0;
|
|
338
|
+
margin-block-end: 0;
|
|
339
|
+
padding-block-start: 0;
|
|
340
|
+
padding-inline-start: 0;
|
|
341
|
+
padding-inline-end: 0;
|
|
342
|
+
padding-block-end: 0;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/* Targets both the label container and the span label that is used
|
|
346
|
+
to style the custom radio / checkbox. Note it does NOT target the input
|
|
347
|
+
itself. */
|
|
348
|
+
.checkbox[disabled] ~ .checkbox-label-copy,
|
|
349
|
+
.radio[disabled] ~ .radio-label-copy,
|
|
350
|
+
.checkbox-label-wrap[class='disabled'],
|
|
351
|
+
.radio-label-wrap[class='disabled'],
|
|
352
|
+
.checkbox-label-wrap-inline[class='disabled'],
|
|
353
|
+
.radio-label-wrap-inline[class='disabled'] {
|
|
354
|
+
color: var(--agnostic-input-disabled-color, var(--agnostic-disabled-color)) !important;
|
|
355
|
+
appearance: none !important;
|
|
356
|
+
box-shadow: none !important;
|
|
357
|
+
cursor: not-allowed !important;
|
|
358
|
+
opacity: 80% !important;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.choice-input-error {
|
|
362
|
+
color: var(--agnostic-input-error-color, var(--agnostic-error));
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
@media screen and (-ms-high-contrast: active) {
|
|
366
|
+
/* High contrast mode outline hacks */
|
|
367
|
+
.checkbox-label-wrap[class='disabled'],
|
|
368
|
+
.radio-label-wrap[class='disabled'],
|
|
369
|
+
.checkbox-label-wrap-inline[class='disabled'],
|
|
370
|
+
.radio-label-wrap-inline[class='disabled'] {
|
|
371
|
+
outline: 2px solid transparent;
|
|
372
|
+
outline-offset: -2px;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
</style>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ChoiceInputOption, ChoiceInputSize, ChoiceInputType, HtmlParts } from './utils.js';
|
|
2
|
+
declare const ChoiceInput: import("svelte").Component<Partial<{
|
|
3
|
+
isSkinned: boolean;
|
|
4
|
+
isFieldset: boolean;
|
|
5
|
+
isInline: boolean;
|
|
6
|
+
isDisabled: boolean;
|
|
7
|
+
isInvalid: boolean;
|
|
8
|
+
options: ChoiceInputOption[];
|
|
9
|
+
disabledOptions: string[];
|
|
10
|
+
checkedOptions: string[];
|
|
11
|
+
type: ChoiceInputType;
|
|
12
|
+
legendLabel: string;
|
|
13
|
+
size: ChoiceInputSize;
|
|
14
|
+
checked: string[];
|
|
15
|
+
} & HtmlParts>, {}, "">;
|
|
16
|
+
type ChoiceInput = ReturnType<typeof ChoiceInput>;
|
|
17
|
+
export default ChoiceInput;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Type = 'text' | 'textarea' | 'email' | 'search' | 'password' | 'tel' | 'number' | 'url' | 'month' | 'time' | 'week' | 'date' | 'datetime-local' | 'color';
|
|
2
|
+
export type LabelSize = 'small' | 'large' | '';
|
|
3
|
+
export interface HtmlParts {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
css: string;
|
|
7
|
+
}
|
|
8
|
+
export type ChoiceInputOption = {
|
|
9
|
+
name: string;
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
export type ChoiceInputType = "checkbox" | "radio";
|
|
14
|
+
export type ChoiceInputSize = "small" | "large" | "";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -21,5 +21,6 @@ export { default as HamburgerMenu } from './components/menu/HamburgerMenu.svelte
|
|
|
21
21
|
export { default as Button } from './components/form/Button.svelte';
|
|
22
22
|
export { default as Input } from './components/form/Input.svelte';
|
|
23
23
|
export { default as Switch } from './components/form/Switch.svelte';
|
|
24
|
+
export { default as ChoiceInput } from './components/form/ChoiceInput.svelte';
|
|
24
25
|
export { default as Markdown } from './components/content/Markdown.svelte';
|
|
25
26
|
export { type BlogPost, listAllPosts, importPost } from './components/blog/blog.js';
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ export { default as HamburgerMenu } from './components/menu/HamburgerMenu.svelte
|
|
|
38
38
|
export { default as Button } from './components/form/Button.svelte';
|
|
39
39
|
export { default as Input } from './components/form/Input.svelte';
|
|
40
40
|
export { default as Switch } from './components/form/Switch.svelte';
|
|
41
|
+
export { default as ChoiceInput } from './components/form/ChoiceInput.svelte';
|
|
41
42
|
/*
|
|
42
43
|
* Content
|
|
43
44
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@functionalcms/svelte-components",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"watch": {
|
|
5
5
|
"build": {
|
|
6
6
|
"patterns": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build": "npm run build-css && vite build && npm run package",
|
|
17
17
|
"preview": "vite preview",
|
|
18
18
|
"package": "svelte-kit sync && svelte-package && publint",
|
|
19
|
-
"prepublishOnly": "npm run package",
|
|
19
|
+
"prepublishOnly": "npm run build-css && npm run package",
|
|
20
20
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
21
21
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
22
22
|
"lint": "eslint . && prettier --check .",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"types": "./dist/index-server.d.ts",
|
|
33
33
|
"svelte": "./dist/index-server.js"
|
|
34
34
|
},
|
|
35
|
+
"./css": "./css/*.css",
|
|
35
36
|
"./package.json": "./package.json"
|
|
36
37
|
},
|
|
37
38
|
"files": [
|
|
File without changes
|