@kubex/zinc 0.0.1
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/.idea/.name +1 -0
- package/.idea/fusion.iml +9 -0
- package/.idea/modules.xml +8 -0
- package/.idea/php.xml +4 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/watcherTasks.xml +25 -0
- package/components/Blank/demo/demo.html +11 -0
- package/components/Blank/dist/zn-blank.js +39 -0
- package/components/Blank/go/component.go +18 -0
- package/components/Blank/go/go.mod +3 -0
- package/components/Blank/package.json +33 -0
- package/components/Blank/php/composer.json +25 -0
- package/components/Blank/php/src/Blank.php +15 -0
- package/components/Blank/rollup.config.js +32 -0
- package/components/Blank/scss/Styles.scss +6 -0
- package/components/Blank/ts/Component.ts +15 -0
- package/components/Blank/tsconfig.json +7 -0
- package/components/Icon/demo/demo.html +90 -0
- package/components/Icon/dist/zn-icon.js +55 -0
- package/components/Icon/go/component.go +56 -0
- package/components/Icon/go/go.mod +3 -0
- package/components/Icon/package.json +33 -0
- package/components/Icon/php/composer.json +26 -0
- package/components/Icon/php/src/Icon.php +38 -0
- package/components/Icon/php/src/Library.php +17 -0
- package/components/Icon/php/src/Size.php +42 -0
- package/components/Icon/roadmap.md +7 -0
- package/components/Icon/rollup.config.js +32 -0
- package/components/Icon/scss/Styles.scss +65 -0
- package/components/Icon/ts/Component.ts +108 -0
- package/components/Icon/ts/md5.ts +215 -0
- package/components/Icon/tsconfig.json +7 -0
- package/components/MaxWidth/demo/demo.html +11 -0
- package/components/MaxWidth/dist/zn-max-width.js +51 -0
- package/components/MaxWidth/go/component.go +24 -0
- package/components/MaxWidth/go/go.mod +3 -0
- package/components/MaxWidth/package.json +33 -0
- package/components/MaxWidth/php/composer.json +25 -0
- package/components/MaxWidth/php/src/MaxWidth.php +32 -0
- package/components/MaxWidth/rollup.config.js +32 -0
- package/components/MaxWidth/scss/Styles.scss +13 -0
- package/components/MaxWidth/ts/Component.ts +27 -0
- package/components/MaxWidth/tsconfig.json +7 -0
- package/components/roadmap.md +4 -0
- package/layout/components/Columns/demo/demo.html +16 -0
- package/layout/components/Columns/scss/Styles.scss +0 -0
- package/layout/components/Columns/ts/Component.ts +59 -0
- package/layout/demo/index.html +24 -0
- package/layout/dist/zn-layout.js +87 -0
- package/layout/package.json +38 -0
- package/layout/rollup.config.js +38 -0
- package/layout/scss/layout.scss +24 -0
- package/layout/tailwind.config.js +23 -0
- package/layout/ts/import.ts +2 -0
- package/layout/tsconfig.json +7 -0
- package/package.json +20 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kubex/zn-max-width",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"repository": "git@github.com:kubex/zinc",
|
|
5
|
+
"author": "Brooke Bryan <brooke@bajb.net>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "ts/Component.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"scss/",
|
|
10
|
+
"ts/"
|
|
11
|
+
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"lit": "2.0.0-rc.4"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@rollup/plugin-commonjs": "^20.0.0",
|
|
17
|
+
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
18
|
+
"@rollup/plugin-typescript": "^8.2.5",
|
|
19
|
+
"npm-run-all": "^4.1.5",
|
|
20
|
+
"postcss": "^8.2.10",
|
|
21
|
+
"postcss-import": "^14.0.2",
|
|
22
|
+
"rollup": "^2.44.0",
|
|
23
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
24
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
25
|
+
"sass": "^1.32.10",
|
|
26
|
+
"tslib": "^2.2.0",
|
|
27
|
+
"typescript": "^4.2.4"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "rollup -c",
|
|
31
|
+
"watch": "rollup -c -w"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "kubex/zinc-components-max-width",
|
|
3
|
+
"description": "Kubex Fusion MaxWidth",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"authors": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Brooke Bryan",
|
|
8
|
+
"email": "brooke@bajb.net"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"require": {
|
|
12
|
+
"php": ">=7.4",
|
|
13
|
+
"packaged/safehtml": "~2.2"
|
|
14
|
+
},
|
|
15
|
+
"autoload": {
|
|
16
|
+
"psr-4": {
|
|
17
|
+
"Kubex\\Zinc\\Components\\MaxWidth\\": "src"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"autoload-dev": {
|
|
21
|
+
"psr-4": {
|
|
22
|
+
"Kubex\\ZincTests\\Components\\MaxWidth\\": "tests"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
namespace Kubex\Zinc\Components\MaxWidth;
|
|
3
|
+
|
|
4
|
+
use Packaged\SafeHtml\ISafeHtmlProducer;
|
|
5
|
+
use Packaged\SafeHtml\SafeHtml;
|
|
6
|
+
|
|
7
|
+
class MaxWidth implements ISafeHtmlProducer
|
|
8
|
+
{
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @var int
|
|
12
|
+
*/
|
|
13
|
+
protected $_size;
|
|
14
|
+
|
|
15
|
+
public function setSize(int $size): self
|
|
16
|
+
{
|
|
17
|
+
$this->_size = $size;
|
|
18
|
+
return $this;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public function size(): int
|
|
22
|
+
{
|
|
23
|
+
return $this->_size;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public function produceSafeHTML(): SafeHtml
|
|
27
|
+
{
|
|
28
|
+
return new SafeHtml(
|
|
29
|
+
sprintf('<zn-max-width width="%d"></zn-max-width>', $this->_size)
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
2
|
+
import typescript from '@rollup/plugin-typescript';
|
|
3
|
+
import {terser} from 'rollup-plugin-terser';
|
|
4
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
5
|
+
import postcss from 'rollup-plugin-postcss';
|
|
6
|
+
import AtImport from 'postcss-import';
|
|
7
|
+
|
|
8
|
+
const component = {
|
|
9
|
+
input: 'ts/Component.ts',
|
|
10
|
+
output: {
|
|
11
|
+
dir: 'dist',
|
|
12
|
+
format: 'iife',
|
|
13
|
+
entryFileNames: 'zn-max-width.js',
|
|
14
|
+
sourcemap: false,
|
|
15
|
+
},
|
|
16
|
+
plugins: [
|
|
17
|
+
resolve({browser: true, preferBuiltins: false}),
|
|
18
|
+
typescript(),
|
|
19
|
+
commonjs(),
|
|
20
|
+
postcss(
|
|
21
|
+
{
|
|
22
|
+
plugins: [AtImport()],
|
|
23
|
+
inject: false,
|
|
24
|
+
extract: false,
|
|
25
|
+
minimize: true,
|
|
26
|
+
sourceMap: false,
|
|
27
|
+
}),
|
|
28
|
+
terser(),
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default [component];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {html, LitElement, unsafeCSS} from 'lit';
|
|
2
|
+
import {customElement, property} from 'lit/decorators.js';
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
import styles from '../scss/Styles.scss';
|
|
5
|
+
|
|
6
|
+
@customElement('zn-max-width')
|
|
7
|
+
export class ZincMaxWidth extends LitElement {
|
|
8
|
+
static styles = unsafeCSS(styles);
|
|
9
|
+
|
|
10
|
+
@property({reflect: true})
|
|
11
|
+
width = 1024
|
|
12
|
+
|
|
13
|
+
attributeChangedCallback(name: string, _old: string | null, value: string | null) {
|
|
14
|
+
super.attributeChangedCallback(name, _old, value);
|
|
15
|
+
if (Number(value) < 1) {
|
|
16
|
+
this.width = Number(_old)
|
|
17
|
+
}
|
|
18
|
+
this.style.setProperty('--max-width', this.width + "px")
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
render() {
|
|
22
|
+
return html`
|
|
23
|
+
<div class="container">
|
|
24
|
+
<slot></slot>
|
|
25
|
+
</div>`;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Zinc-Blank Demo</title>
|
|
6
|
+
</head>
|
|
7
|
+
<body>
|
|
8
|
+
|
|
9
|
+
<zn-cols>
|
|
10
|
+
<div slot="col-1">Col 1</div>
|
|
11
|
+
<div slot="col-2">Col 2</div>
|
|
12
|
+
<div slot="col-3">Col 3</div>
|
|
13
|
+
</zn-cols>
|
|
14
|
+
<script src="../../dist/zn-layout.js" type="text/javascript"></script>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
File without changes
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {html, LitElement, unsafeCSS} from 'lit';
|
|
2
|
+
import {customElement, property} from 'lit/decorators.js';
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
import styles from '../scss/Styles.scss';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import layoutStyles from '../../../scss/layout.scss';
|
|
7
|
+
|
|
8
|
+
@customElement('zn-cols')
|
|
9
|
+
export class ZincColumns extends LitElement {
|
|
10
|
+
static get styles() {
|
|
11
|
+
return [unsafeCSS(layoutStyles), unsafeCSS(styles)];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property()
|
|
15
|
+
layout = "2,1"
|
|
16
|
+
|
|
17
|
+
render() {
|
|
18
|
+
switch (this.layout) {
|
|
19
|
+
case "2,1":
|
|
20
|
+
return html`
|
|
21
|
+
<div
|
|
22
|
+
class="grid grid-cols-1 gap-6 p-3 sm:p-6 lg:grid-flow-col-dense lg:grid-cols-3">
|
|
23
|
+
<div class="lg:col-start-1 lg:col-span-2">
|
|
24
|
+
<slot name="col1"></slot>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="lg:col-start-3 lg:col-span-1">
|
|
27
|
+
<slot name="col2"></slot>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
`;
|
|
31
|
+
case "1,2":
|
|
32
|
+
return html`
|
|
33
|
+
<div
|
|
34
|
+
class="grid grid-cols-1 gap-6 p-3 sm:p-6 lg:grid-flow-col-dense lg:grid-cols-3">
|
|
35
|
+
<div class="lg:col-start-1 lg:col-span-1">
|
|
36
|
+
<slot name="col1"></slot>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="lg:col-start-2 lg:col-span-2">
|
|
39
|
+
<slot name="col2"></slot>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
`;
|
|
43
|
+
case "1,1,1":
|
|
44
|
+
return html`
|
|
45
|
+
<div
|
|
46
|
+
class="grid grid-cols-1 gap-6 p-3 sm:p-6 lg:grid-flow-col-dense lg:grid-cols-3">
|
|
47
|
+
<div class="lg:col-start-1 lg:col-span-1">
|
|
48
|
+
<slot name="col1"></slot>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="lg:col-start-2 lg:col-span-1">
|
|
51
|
+
<slot name="col2"></slot>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="lg:col-start-3 lg:col-span-1">
|
|
54
|
+
<slot name="col3"></slot>
|
|
55
|
+
</div>
|
|
56
|
+
</div>`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Zinc-Layout Demo</title>
|
|
6
|
+
<link rel="stylesheet" href="../dist/zn-layout.css">
|
|
7
|
+
<script src="../dist/zn-layout.js" type="text/javascript"></script>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<zn-cols>
|
|
11
|
+
<div slot="col1">Col 1</div>
|
|
12
|
+
<div slot="col2">Col 2</div>
|
|
13
|
+
</zn-cols>
|
|
14
|
+
<zn-cols layout="1,2">
|
|
15
|
+
<div slot="col1">Col 1</div>
|
|
16
|
+
<div slot="col2">Col 2</div>
|
|
17
|
+
</zn-cols>
|
|
18
|
+
<zn-cols layout="1,1,1">
|
|
19
|
+
<div slot="col1">Col 1</div>
|
|
20
|
+
<div slot="col2">Col 2</div>
|
|
21
|
+
<div slot="col3">Col 3</div>
|
|
22
|
+
</zn-cols>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
!function(){"use strict";
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */
|
|
16
|
+
function t(t,e,i,o){var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n
|
|
17
|
+
/**
|
|
18
|
+
* @license
|
|
19
|
+
* Copyright 2019 Google LLC
|
|
20
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
+
*/}const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),o=new Map;class r{constructor(t,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=o.get(this.cssText);return e&&void 0===t&&(o.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const s=t=>new r("string"==typeof t?t:t+"",i),n=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return s(e)})(t):t
|
|
22
|
+
/**
|
|
23
|
+
* @license
|
|
24
|
+
* Copyright 2017 Google LLC
|
|
25
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
26
|
+
*/;var a;const l=window.trustedTypes,c=l?l.emptyScript:"",d=window.reactiveElementPolyfillSupport,h={toAttribute(t,e){switch(e){case Boolean:t=t?c:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},p=(t,e)=>e!==t&&(e==e||t==t),u={attribute:!0,type:String,converter:h,reflect:!1,hasChanged:p};class g extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=u){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||u}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{e?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=u){var o,r;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const n=(null!==(r=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==r?r:h.toAttribute)(e,i.type);this._$Ei=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$Ei=null}}_$AK(t,e){var i,o,r;const s=this.constructor,n=s._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=s.getPropertyOptions(n),a=t.converter,l=null!==(r=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==r?r:h.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
27
|
+
/**
|
|
28
|
+
* @license
|
|
29
|
+
* Copyright 2017 Google LLC
|
|
30
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
+
*/
|
|
32
|
+
var f;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:g}),(null!==(a=globalThis.reactiveElementVersions)&&void 0!==a?a:globalThis.reactiveElementVersions=[]).push("1.3.1");const m=globalThis.trustedTypes,v=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,b="?"+w,y=`<${b}>`,$=document,_=(t="")=>$.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,C=/>/g,S=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,z=/'/g,U=/"/g,P=/^(?:script|style|textarea|title)$/i,H=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),T=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),M=new WeakMap,O=$.createTreeWalker($,129,null,!1),R=(t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",n=k;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,d=0;for(;d<i.length&&(n.lastIndex=d,l=n.exec(i),null!==l);)d=n.lastIndex,n===k?"!--"===l[1]?n=E:void 0!==l[1]?n=C:void 0!==l[2]?(P.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=S):void 0!==l[3]&&(n=S):n===S?">"===l[0]?(n=null!=r?r:k,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?S:'"'===l[3]?U:z):n===U||n===z?n=S:n===E||n===C?n=k:(n=S,r=void 0);const h=n===S&&t[e+1].startsWith("/>")?" ":"";s+=n===k?i+y:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+w+h):i+w+(-2===c?(o.push(void 0),e):h)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(a):a,o]};class j{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,c]=R(t,e);if(this.el=j.createElement(l,i),O.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=O.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(w)){const i=c[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(w),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?V:"?"===e[1]?q:"@"===e[1]?K:D})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(P.test(o.tagName)){const t=o.textContent.split(w),e=t.length-1;if(e>0){o.textContent=m?m.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],_()),O.nextNode(),a.push({type:2,index:++r});o.append(t[e],_())}}}else if(8===o.nodeType)if(o.data===b)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)a.push({type:7,index:r}),t+=w.length-1}r++}}static createElement(t,e){const i=$.createElement("template");return i.innerHTML=t,i}}function L(t,e,i=t,o){var r,s,n,a;if(e===T)return e;let l=void 0!==o?null===(r=i._$Cl)||void 0===r?void 0:r[o]:i._$Cu;const c=x(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=L(t,l._$AS(t,e.values),l,o)),e}class B{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:$).importNode(i,!0);O.currentNode=r;let s=O.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new I(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new F(s,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(s=O.nextNode(),n++)}return r}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class I{constructor(t,e,i,o){var r;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=L(this,t,e),x(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==T&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return A(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==N&&x(this._$AH)?this._$AA.nextSibling.data=t:this.k($.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=j.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new B(r,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=M.get(t.strings);return void 0===e&&M.set(t.strings,e=new j(t)),e}S(t){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new I(this.A(_()),this.A(_()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class D{constructor(t,e,i,o,r){this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=N}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(void 0===r)t=L(this,t,e,0),s=!x(t)||t!==this._$AH&&t!==T,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=L(this,o[i+n],e,n),a===T&&(a=this._$AH[n]),s||(s=!x(a)||a!==this._$AH[n]),a===N?t=N:t!==N&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.C(t)}C(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends D{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===N?void 0:t}}const W=m?m.emptyScript:"";class q extends D{constructor(){super(...arguments),this.type=4}C(t){t&&t!==N?this.element.setAttribute(this.name,W):this.element.removeAttribute(this.name)}}class K extends D{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=L(this,t,e,0))&&void 0!==i?i:N)===T)return;const o=this._$AH,r=t===N&&o!==N||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==N&&(o===N||r);r&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class F{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const J=window.litHtmlPolyfillSupport;
|
|
33
|
+
/**
|
|
34
|
+
* @license
|
|
35
|
+
* Copyright 2017 Google LLC
|
|
36
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
+
*/
|
|
38
|
+
var Z,G;null==J||J(j,I),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:globalThis.litHtmlVersions=[]).push("2.2.1");class Q extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,r;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new I(e.insertBefore(_(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return T}}Q.finalized=!0,Q._$litElement$=!0,null===(Z=globalThis.litElementHydrateSupport)||void 0===Z||Z.call(globalThis,{LitElement:Q});const X=globalThis.litElementPolyfillSupport;null==X||X({LitElement:Q}),(null!==(G=globalThis.litElementVersions)&&void 0!==G?G:globalThis.litElementVersions=[]).push("3.2.0");
|
|
39
|
+
/**
|
|
40
|
+
* @license
|
|
41
|
+
* Copyright 2017 Google LLC
|
|
42
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
+
*/
|
|
44
|
+
const Y=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};
|
|
45
|
+
/**
|
|
46
|
+
* @license
|
|
47
|
+
* Copyright 2017 Google LLC
|
|
48
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* @license
|
|
52
|
+
* Copyright 2021 Google LLC
|
|
53
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
+
*/
|
|
55
|
+
var tt;null===(tt=window.HTMLSlotElement)||void 0===tt||tt.prototype.assignedElements;let et=class extends Q{constructor(){super(...arguments),this.layout="2,1"}static get styles(){return[s("/*! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}html{-webkit-text-size-adjust:100%;font-family:Inter var,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{color-adjust:exact;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact}[multiple]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset}[type=checkbox],[type=radio]{color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E\")}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gap-6{gap:1.5rem}.border{border-width:1px}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-3{padding:.75rem}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-muted{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.dark .text-muted{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-impact{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.dark .text-impact{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.text-default{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.dark .text-default,.dark.text-default{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.bg-panel{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .bg-panel{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}@media (min-width:640px){.sm\\:p-6{padding:1.5rem}}@media (min-width:1024px){.lg\\:col-span-2{grid-column:span 2/span 2}.lg\\:col-span-1{grid-column:span 1/span 1}.lg\\:col-start-1{grid-column-start:1}.lg\\:col-start-3{grid-column-start:3}.lg\\:col-start-2{grid-column-start:2}.lg\\:grid-flow-col-dense{grid-auto-flow:column dense}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}"),s("")]}render(){switch(this.layout){case"2,1":return H`
|
|
56
|
+
<div
|
|
57
|
+
class="grid grid-cols-1 gap-6 p-3 sm:p-6 lg:grid-flow-col-dense lg:grid-cols-3">
|
|
58
|
+
<div class="lg:col-start-1 lg:col-span-2">
|
|
59
|
+
<slot name="col1"></slot>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="lg:col-start-3 lg:col-span-1">
|
|
62
|
+
<slot name="col2"></slot>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
`;case"1,2":return H`
|
|
66
|
+
<div
|
|
67
|
+
class="grid grid-cols-1 gap-6 p-3 sm:p-6 lg:grid-flow-col-dense lg:grid-cols-3">
|
|
68
|
+
<div class="lg:col-start-1 lg:col-span-1">
|
|
69
|
+
<slot name="col1"></slot>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="lg:col-start-2 lg:col-span-2">
|
|
72
|
+
<slot name="col2"></slot>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
`;case"1,1,1":return H`
|
|
76
|
+
<div
|
|
77
|
+
class="grid grid-cols-1 gap-6 p-3 sm:p-6 lg:grid-flow-col-dense lg:grid-cols-3">
|
|
78
|
+
<div class="lg:col-start-1 lg:col-span-1">
|
|
79
|
+
<slot name="col1"></slot>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="lg:col-start-2 lg:col-span-1">
|
|
82
|
+
<slot name="col2"></slot>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="lg:col-start-3 lg:col-span-1">
|
|
85
|
+
<slot name="col3"></slot>
|
|
86
|
+
</div>
|
|
87
|
+
</div>`}}};t([function(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):Y(t,e)}()],et.prototype,"layout",void 0),et=t([(t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:o}=e;return{kind:i,elements:o,finisher(e){window.customElements.define(t,e)}}})(t,e))("zn-cols")],et)}();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kubex/zn-layout",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"repository": "git@github.com:kubex/zinc",
|
|
5
|
+
"author": "Brooke Bryan <brooke@bajb.net>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "ts/Layout.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"scss/",
|
|
10
|
+
"ts/"
|
|
11
|
+
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@tailwindcss/aspect-ratio": "^0.4.0",
|
|
14
|
+
"@tailwindcss/forms": "^0.4.0",
|
|
15
|
+
"@tailwindcss/typography": "^0.5.0",
|
|
16
|
+
"autoprefixer": "^10.4.4",
|
|
17
|
+
"lit": "2.0.0-rc.4",
|
|
18
|
+
"postcss": "^8.4.12",
|
|
19
|
+
"postcss-import": "^14.1.0",
|
|
20
|
+
"postcss-scss": "^4.0.3"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@rollup/plugin-commonjs": "^20.0.0",
|
|
24
|
+
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
25
|
+
"@rollup/plugin-typescript": "^8.2.5",
|
|
26
|
+
"npm-run-all": "^4.1.5",
|
|
27
|
+
"rollup": "^2.44.0",
|
|
28
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
29
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
30
|
+
"sass": "^1.32.10",
|
|
31
|
+
"tslib": "^2.2.0",
|
|
32
|
+
"typescript": "^4.2.4"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "rollup -c",
|
|
36
|
+
"watch": "rollup -c -w"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
2
|
+
import typescript from '@rollup/plugin-typescript';
|
|
3
|
+
import {terser} from 'rollup-plugin-terser';
|
|
4
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
5
|
+
import postcss from 'rollup-plugin-postcss';
|
|
6
|
+
import autoprefixer from "autoprefixer";
|
|
7
|
+
import AtImport from 'postcss-import';
|
|
8
|
+
import tailwindCss from 'tailwindcss';
|
|
9
|
+
|
|
10
|
+
const layout = {
|
|
11
|
+
input: 'ts/import.ts',
|
|
12
|
+
output: {
|
|
13
|
+
dir: 'dist',
|
|
14
|
+
format: 'iife',
|
|
15
|
+
entryFileNames: 'zn-layout.js',
|
|
16
|
+
sourcemap: false,
|
|
17
|
+
},
|
|
18
|
+
plugins: [
|
|
19
|
+
resolve({browser: true, preferBuiltins: false}),
|
|
20
|
+
typescript(),
|
|
21
|
+
commonjs(),
|
|
22
|
+
postcss({
|
|
23
|
+
inject: false,
|
|
24
|
+
extract: false,
|
|
25
|
+
minimize: true,
|
|
26
|
+
sourceMap: false,
|
|
27
|
+
plugins: [
|
|
28
|
+
AtImport(),
|
|
29
|
+
tailwindCss('./tailwind.config.js'),
|
|
30
|
+
autoprefixer(),
|
|
31
|
+
],
|
|
32
|
+
parser: 'postcss-scss',
|
|
33
|
+
}),
|
|
34
|
+
terser(),
|
|
35
|
+
],
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export default [layout];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.text-muted {
|
|
7
|
+
@apply text-gray-500 dark:text-gray-400;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.text-impact {
|
|
11
|
+
@apply text-gray-900 dark:text-gray-100;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.text-default {
|
|
15
|
+
@apply text-gray-800 dark:text-gray-200;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dark.text-default {
|
|
19
|
+
@apply text-gray-200;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.bg-panel {
|
|
23
|
+
@apply bg-white dark:bg-gray-900;
|
|
24
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const defaultTheme = require('tailwindcss/defaultTheme')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
content: [
|
|
5
|
+
"./scss/*.scss",
|
|
6
|
+
"./ts/*.ts",
|
|
7
|
+
"./demo/*.html",
|
|
8
|
+
"./components/**/demo/*.html}",
|
|
9
|
+
"./components/**/ts/*.{ts,js,html}",
|
|
10
|
+
"./components/**/scss/*.{scss,css}"
|
|
11
|
+
],
|
|
12
|
+
darkMode: 'class',
|
|
13
|
+
theme: {
|
|
14
|
+
extend: {
|
|
15
|
+
fontFamily: {
|
|
16
|
+
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
plugins: [
|
|
21
|
+
require('@tailwindcss/forms'),
|
|
22
|
+
],
|
|
23
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kubex/zinc",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "ts/index.ts",
|
|
5
|
+
"repository": "git@github.com:kubex/zinc",
|
|
6
|
+
"author": "",
|
|
7
|
+
"contributors": [
|
|
8
|
+
"Brooke Bryan <brooke@bajb,net>",
|
|
9
|
+
"Tom Kay <oridan82@gmail.com>"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@kubex/zn-blank": "file:./components/Blank",
|
|
14
|
+
"@kubex/zn-icon": "file:./components/Icon",
|
|
15
|
+
"@kubex/zn-max-width": "file:./components/MaxWidth",
|
|
16
|
+
"@kubex/zn-layout": "file:./layout"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {},
|
|
19
|
+
"scripts": {}
|
|
20
|
+
}
|