tinkiet 0.8.12 → 0.8.14

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.
@@ -1,4 +1,4 @@
1
- import { TkFocusableBox } from "../box/focusable-box";
1
+ import { TkFocusableBox } from "../box/focusable-box.js";
2
2
  declare class TkAccordion extends TkFocusableBox {
3
3
  static get styles(): import("lit").CSSResult[];
4
4
  name: string;
@@ -1 +1 @@
1
- export * from "./accordion";
1
+ export * from "./accordion.js";
package/badge/badge.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TkBox } from "../box/index";
1
+ import { TkBox } from "../box/index.js";
2
2
  /**
3
3
  * A badge WebComponent
4
4
  * @cssprop --tk-badge-color - Color of widget default to --primary
package/badge/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./badge";
1
+ export * from "./badge.js";
@@ -1,4 +1,4 @@
1
- import { TkBox } from "./box";
1
+ import { TkBox } from "./box.js";
2
2
  declare class TkFocusableBox extends TkBox {
3
3
  /**
4
4
  * Element random id
package/box/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./box";
1
+ export * from "./box.js";
@@ -1,4 +1,4 @@
1
- import { TkBox } from "../box/index";
1
+ import { TkBox } from "../box/index.js";
2
2
  /**
3
3
  * A button web component
4
4
  *
package/button/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./button";
1
+ export * from "./button.js";
@@ -1 +1 @@
1
- export * from "./checkbox";
1
+ export * from "./checkbox.js";
package/dialog/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./dialog";
1
+ export * from "./dialog.js";
package/drawer/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./drawer";
1
+ export * from "./drawer.js";
package/form/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { TkForm } from "./form";
1
+ export { TkForm } from "./form.js";
package/icon/icon.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TkBox } from "../box/index";
1
+ import { TkBox } from "../box/index.js";
2
2
  declare class TkIcon extends TkBox {
3
3
  static get styles(): import("lit").CSSResult[];
4
4
  name: string;
package/icon/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./icon";
2
- export * from "./icons";
1
+ export * from "./icon.js";
2
+ export * from "./icons.js";
package/index.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- export * from "./accordion/index";
2
- export * from "./badge/index";
3
- export * from "./box/index";
4
- export * from "./button/index";
5
- export * from "./checkbox/index";
6
- export * from "./dialog/index";
7
- export * from "./drawer/index";
8
- export * from "./form/index";
9
- export * from "./icon/index";
10
- export * from "./list-item/index";
11
- export * from "./loading/index";
12
- export * from "./navbar/index";
13
- export * from "./notie/index";
14
- export * from "./pages/index";
15
- export * from "./radio/index";
16
- export * from "./select/index";
17
- export * from "./slider/index";
18
- export * from "./switch/index";
19
- export * from "./tab-group/index";
20
- export * from "./tag/index";
21
- export * from "./textarea/index";
22
- export * from "./textfield/index";
23
- export * from "./theme/index";
24
- export * from "./tooltip/index";
1
+ export * from "./accordion/index.js";
2
+ export * from "./badge/index.js";
3
+ export * from "./box/index.js";
4
+ export * from "./button/index.js";
5
+ export * from "./checkbox/index.js";
6
+ export * from "./dialog/index.js";
7
+ export * from "./drawer/index.js";
8
+ export * from "./form/index.js";
9
+ export * from "./icon/index.js";
10
+ export * from "./list-item/index.js";
11
+ export * from "./loading/index.js";
12
+ export * from "./navbar/index.js";
13
+ export * from "./notie/index.js";
14
+ export * from "./pages/index.js";
15
+ export * from "./radio/index.js";
16
+ export * from "./select/index.js";
17
+ export * from "./slider/index.js";
18
+ export * from "./switch/index.js";
19
+ export * from "./tab-group/index.js";
20
+ export * from "./tag/index.js";
21
+ export * from "./textarea/index.js";
22
+ export * from "./textfield/index.js";
23
+ export * from "./theme/index.js";
24
+ export * from "./tooltip/index.js";
25
25
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../tinkiet/index.ts"],"names":[],"mappings":"AAAA,kCAA4B;AAC5B,8BAAwB;AACxB,4BAAsB;AACtB,+BAAyB;AACzB,iCAA2B;AAC3B,+BAAyB;AACzB,+BAAyB;AACzB,6BAAuB;AACvB,6BAAuB;AACvB,kCAA4B;AAC5B,gCAA0B;AAC1B,+BAAyB;AACzB,8BAAwB;AACxB,8BAAwB;AACxB,8BAAwB;AACxB,+BAAyB;AACzB,+BAAyB;AACzB,+BAAyB;AACzB,kCAA4B;AAC5B,4BAAsB;AACtB,iCAA2B;AAC3B,kCAA4B;AAC5B,8BAAwB;AACxB,gCAA0B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../tinkiet/index.ts"],"names":[],"mappings":"AAAA,qCAA4B;AAC5B,iCAAwB;AACxB,+BAAsB;AACtB,kCAAyB;AACzB,oCAA2B;AAC3B,kCAAyB;AACzB,kCAAyB;AACzB,gCAAuB;AACvB,gCAAuB;AACvB,qCAA4B;AAC5B,mCAA0B;AAC1B,kCAAyB;AACzB,iCAAwB;AACxB,iCAAwB;AACxB,iCAAwB;AACxB,kCAAyB;AACzB,kCAAyB;AACzB,kCAAyB;AACzB,qCAA4B;AAC5B,+BAAsB;AACtB,oCAA2B;AAC3B,qCAA4B;AAC5B,iCAAwB;AACxB,mCAA0B"}
@@ -1 +1 @@
1
- export * from "./list-item";
1
+ export * from "./list-item.js";
@@ -1,6 +1,6 @@
1
- import { LitElement } from "lit";
2
- declare class TkListItem extends LitElement {
3
- static styles: import("lit").CSSResult;
1
+ import { TkBox } from "../box/box.js";
2
+ declare class TkListItem extends TkBox {
3
+ static get styles(): import("lit").CSSResult[];
4
4
  href: string;
5
5
  target: string;
6
6
  ariaLabel: string;
@@ -1,10 +1,19 @@
1
1
  import { __decorate } from 'tslib';
2
- import { LitElement, html, css, unsafeCSS } from 'lit';
2
+ import { css, unsafeCSS, html } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
+ import { TkBox } from '../box/box.js';
5
6
  import css_248z from './list-item.scss.js';
6
7
 
7
- let TkListItem = class TkListItem extends LitElement {
8
+ let TkListItem = class TkListItem extends TkBox {
9
+ static get styles() {
10
+ return [
11
+ ...TkBox.styles,
12
+ css `
13
+ ${unsafeCSS(css_248z)}
14
+ `
15
+ ];
16
+ }
8
17
  render() {
9
18
  return html `
10
19
  <slot name="before" @click=${this.handleClick}></slot>
@@ -49,9 +58,6 @@ let TkListItem = class TkListItem extends LitElement {
49
58
  }
50
59
  }
51
60
  };
52
- TkListItem.styles = css `
53
- ${unsafeCSS(css_248z)}
54
- `;
55
61
  __decorate([
56
62
  property({ attribute: true })
57
63
  ], TkListItem.prototype, "href", void 0);
@@ -1,4 +1,4 @@
1
- var css_248z = "*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;box-sizing:border-box}:host{--text:var(--list-item-color,var(--foreground,#454545));--color:var(--list-item-bg,var(--background,#f7f7f7));align-items:center;background:var(--color);border-radius:var(--list-item-border-radius,var(--border-radius-large,.5rem));color:var(--text);display:flex;outline:none;overflow:hidden;padding:var(--spacing-m,1rem) var(--spacing-m,1rem);position:relative;text-align:left;transition:var(--list-item-transition,background var(--transition-duration-medium,.18s) var(--transition-timing-function-ease,ease),color var(--transition-duration-medium,.18s) var(--transition-timing-function-ease,ease))}:host([clickable]),:host([href]){user-select:none}:host([clickable]:not([active]):not([disabled])),:host([href]:not([active]):not([disabled])){cursor:pointer}:host(:focus),:host(:hover){--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)));will-change:background,color}:host([active]:focus),:host([active]:hover){--text:var(--primary-darker,hsl(var(--primary-h,258.987),var(--primary-s,38.1643%),calc(var(--primary-l, 59.4118%)*0.7)));--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)))}:host([disabled]){--text:var(--shade-dark,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*0.85)));--color:var(--shade,hsl(var(--shade-h,0),var(--shade-s,0%),var(--shade-l,66.6667%)));opacity:.4;pointer-events:none}:host([active]){--text:var(--primary-darker,hsl(var(--primary-h,258.987),var(--primary-s,38.1643%),calc(var(--primary-l, 59.4118%)*0.7)));--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)))}::slotted([slot=after]),::slotted([slot=before]){flex-shrink:0}::slotted([slot=before]){align-self:var(--list-item-left-align-self,center);margin:0 var(--spacing-m,1rem) 0 0}::slotted([slot=after]){align-self:var(--list-item-left-align-self,center);margin:0 0 0 var(--spacing-m,1rem)}#content{display:flex;flex-direction:column;flex-grow:1}";
2
- var stylesheet="*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;box-sizing:border-box}:host{--text:var(--list-item-color,var(--foreground,#454545));--color:var(--list-item-bg,var(--background,#f7f7f7));align-items:center;background:var(--color);border-radius:var(--list-item-border-radius,var(--border-radius-large,.5rem));color:var(--text);display:flex;outline:none;overflow:hidden;padding:var(--spacing-m,1rem) var(--spacing-m,1rem);position:relative;text-align:left;transition:var(--list-item-transition,background var(--transition-duration-medium,.18s) var(--transition-timing-function-ease,ease),color var(--transition-duration-medium,.18s) var(--transition-timing-function-ease,ease))}:host([clickable]),:host([href]){user-select:none}:host([clickable]:not([active]):not([disabled])),:host([href]:not([active]):not([disabled])){cursor:pointer}:host(:focus),:host(:hover){--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)));will-change:background,color}:host([active]:focus),:host([active]:hover){--text:var(--primary-darker,hsl(var(--primary-h,258.987),var(--primary-s,38.1643%),calc(var(--primary-l, 59.4118%)*0.7)));--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)))}:host([disabled]){--text:var(--shade-dark,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*0.85)));--color:var(--shade,hsl(var(--shade-h,0),var(--shade-s,0%),var(--shade-l,66.6667%)));opacity:.4;pointer-events:none}:host([active]){--text:var(--primary-darker,hsl(var(--primary-h,258.987),var(--primary-s,38.1643%),calc(var(--primary-l, 59.4118%)*0.7)));--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)))}::slotted([slot=after]),::slotted([slot=before]){flex-shrink:0}::slotted([slot=before]){align-self:var(--list-item-left-align-self,center);margin:0 var(--spacing-m,1rem) 0 0}::slotted([slot=after]){align-self:var(--list-item-left-align-self,center);margin:0 0 0 var(--spacing-m,1rem)}#content{display:flex;flex-direction:column;flex-grow:1}";
1
+ var css_248z = "*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;box-sizing:border-box}:host{--text:var(--list-item-color,var(--foreground,#454545));--color:var(--list-item-bg,var(--background,#f7f7f7));align-items:center;background:var(--color);border-radius:var(--list-item-border-radius,var(--border-radius-large,.5rem));color:var(--text);display:flex;flex-direction:row;outline:none;overflow:hidden;padding:var(--spacing-m,1rem) var(--spacing-m,1rem);position:relative;text-align:left;transition:var(--list-item-transition,background var(--transition-duration-medium,.18s) var(--transition-timing-function-ease,ease),color var(--transition-duration-medium,.18s) var(--transition-timing-function-ease,ease))}:host([clickable]),:host([href]){user-select:none}:host([clickable]:not([active]):not([disabled])),:host([href]:not([active]):not([disabled])){cursor:pointer}:host(:focus),:host(:hover){--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)));will-change:background,color}:host([active]:focus),:host([active]:hover){--text:var(--primary-darker,hsl(var(--primary-h,258.987),var(--primary-s,38.1643%),calc(var(--primary-l, 59.4118%)*0.7)));--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)))}:host([disabled]){--text:var(--shade-dark,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*0.85)));--color:var(--shade,hsl(var(--shade-h,0),var(--shade-s,0%),var(--shade-l,66.6667%)));opacity:.4;pointer-events:none}:host([active]){--text:var(--primary-darker,hsl(var(--primary-h,258.987),var(--primary-s,38.1643%),calc(var(--primary-l, 59.4118%)*0.7)));--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)))}::slotted([slot=after]),::slotted([slot=before]){flex-shrink:0}::slotted([slot=before]){align-self:var(--list-item-left-align-self,center);margin:0 var(--spacing-m,1rem) 0 0}::slotted([slot=after]){align-self:var(--list-item-left-align-self,center);margin:0 0 0 var(--spacing-m,1rem)}#content{display:flex;flex-direction:column;flex-grow:1}";
2
+ var stylesheet="*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;box-sizing:border-box}:host{--text:var(--list-item-color,var(--foreground,#454545));--color:var(--list-item-bg,var(--background,#f7f7f7));align-items:center;background:var(--color);border-radius:var(--list-item-border-radius,var(--border-radius-large,.5rem));color:var(--text);display:flex;flex-direction:row;outline:none;overflow:hidden;padding:var(--spacing-m,1rem) var(--spacing-m,1rem);position:relative;text-align:left;transition:var(--list-item-transition,background var(--transition-duration-medium,.18s) var(--transition-timing-function-ease,ease),color var(--transition-duration-medium,.18s) var(--transition-timing-function-ease,ease))}:host([clickable]),:host([href]){user-select:none}:host([clickable]:not([active]):not([disabled])),:host([href]:not([active]):not([disabled])){cursor:pointer}:host(:focus),:host(:hover){--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)));will-change:background,color}:host([active]:focus),:host([active]:hover){--text:var(--primary-darker,hsl(var(--primary-h,258.987),var(--primary-s,38.1643%),calc(var(--primary-l, 59.4118%)*0.7)));--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)))}:host([disabled]){--text:var(--shade-dark,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*0.85)));--color:var(--shade,hsl(var(--shade-h,0),var(--shade-s,0%),var(--shade-l,66.6667%)));opacity:.4;pointer-events:none}:host([active]){--text:var(--primary-darker,hsl(var(--primary-h,258.987),var(--primary-s,38.1643%),calc(var(--primary-l, 59.4118%)*0.7)));--color:var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3)))}::slotted([slot=after]),::slotted([slot=before]){flex-shrink:0}::slotted([slot=before]){align-self:var(--list-item-left-align-self,center);margin:0 var(--spacing-m,1rem) 0 0}::slotted([slot=after]){align-self:var(--list-item-left-align-self,center);margin:0 0 0 var(--spacing-m,1rem)}#content{display:flex;flex-direction:column;flex-grow:1}";
3
3
 
4
4
  export { css_248z as default, stylesheet };
@@ -1 +1 @@
1
- export * from "./loading";
1
+ export * from "./loading.js";
@@ -1,4 +1,4 @@
1
- import { TkBox } from "../box/index";
1
+ import { TkBox } from "../box/index.js";
2
2
  declare class TkLoading extends TkBox {
3
3
  static get styles(): import("lit").CSSResult[];
4
4
  circle: boolean;
package/navbar/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./navbar";
1
+ export * from "./navbar.js";
@@ -1,4 +1,4 @@
1
- import { TkBox } from "../box/index";
1
+ import { TkBox } from "../box/index.js";
2
2
  declare class TkNavbar extends TkBox {
3
3
  static get styles(): import("lit").CSSResult[];
4
4
  render(): import("lit-html").TemplateResult<1>;
package/notie/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./notie";
1
+ export * from "./notie.js";
package/notie/notie.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TemplateResult } from "lit";
2
- import { TkBox } from "../box/index";
2
+ import { TkBox } from "../box/index.js";
3
3
  interface NotieOptions {
4
4
  background?: string;
5
5
  level?: NotieLevel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinkiet",
3
- "version": "0.8.12",
3
+ "version": "0.8.14",
4
4
  "description": "Pragmatic UI Web Components",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/pages/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./pages";
1
+ export * from "./pages.js";
package/radio/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./radio";
1
+ export * from "./radio.js";
package/select/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./select";
1
+ export * from "./select.js";
package/slider/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./slider";
1
+ export * from "./slider.js";
package/switch/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./switch";
1
+ export * from "./switch.js";
@@ -1 +1 @@
1
- export * from "./tab-group";
1
+ export * from "./tab-group.js";
package/tag/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./tag";
1
+ export * from "./tag.js";
@@ -1 +1 @@
1
- export * from "./textarea";
1
+ export * from "./textarea.js";
@@ -1 +1 @@
1
- export * from "./textfield";
1
+ export * from "./textfield.js";
package/theme/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./theme";
1
+ export * from "./theme.js";
@@ -1 +1 @@
1
- export * from "./tooltip";
1
+ export * from "./tooltip.js";
@@ -266,8 +266,8 @@ declare class TkIcons extends LitElement {
266
266
  library: string;
267
267
  firstUpdated(): void;
268
268
  }
269
- declare class TkListItem extends LitElement {
270
- static styles: import("lit").CSSResult;
269
+ declare class TkListItem extends TkBox {
270
+ static get styles(): import("lit").CSSResult[];
271
271
  href: string;
272
272
  target: string;
273
273
  ariaLabel: string;