tinkiet 0.9.14 → 0.10.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.
Files changed (144) hide show
  1. package/accordion/accordion.d.ts +3 -4
  2. package/accordion/index.d.ts +1 -1
  3. package/accordion/index.js +491 -1
  4. package/badge/badge.d.ts +2 -3
  5. package/badge/index.d.ts +1 -1
  6. package/badge/index.js +134 -1
  7. package/box/box.d.ts +3 -3
  8. package/box/focusable-box.d.ts +2 -3
  9. package/box/index.d.ts +1 -1
  10. package/box/index.js +289 -1
  11. package/button/button.d.ts +3 -4
  12. package/button/index.d.ts +1 -1
  13. package/button/index.js +502 -1
  14. package/checkbox/checkbox.d.ts +3 -3
  15. package/checkbox/index.d.ts +1 -1
  16. package/checkbox/index.js +450 -1
  17. package/chip/chip.d.ts +2 -3
  18. package/chip/index.d.ts +1 -1
  19. package/chip/index.js +123 -1
  20. package/dialog/dialog.d.ts +2 -3
  21. package/dialog/index.d.ts +1 -1
  22. package/dialog/index.js +162 -1
  23. package/drawer/drawer.d.ts +2 -3
  24. package/drawer/index.d.ts +1 -1
  25. package/drawer/index.js +272 -1
  26. package/form/form.d.ts +1 -2
  27. package/form/index.d.ts +1 -1
  28. package/form/index.js +149 -1
  29. package/icon/icon.d.ts +3 -4
  30. package/icon/icons.d.ts +1 -2
  31. package/icon/index.d.ts +2 -2
  32. package/icon/index.js +457 -2
  33. package/index.d.ts +52 -26
  34. package/index.js +3682 -52
  35. package/list-item/index.d.ts +1 -1
  36. package/list-item/index.js +414 -1
  37. package/list-item/list-item.d.ts +3 -4
  38. package/loading/index.d.ts +1 -1
  39. package/loading/index.js +389 -1
  40. package/loading/loading.d.ts +3 -4
  41. package/navigation/index.d.ts +2 -2
  42. package/navigation/index.js +201 -2
  43. package/navigation/navigation-bar.d.ts +2 -3
  44. package/navigation/navigation-item.d.ts +2 -3
  45. package/notie/index.d.ts +1 -1
  46. package/notie/index.js +744 -1
  47. package/notie/notie.d.ts +12 -11
  48. package/package.json +8 -5
  49. package/pages/index.d.ts +1 -1
  50. package/pages/index.js +178 -1
  51. package/pages/pages.d.ts +2 -3
  52. package/radio/index.d.ts +1 -1
  53. package/radio/index.js +466 -1
  54. package/radio/radio.d.ts +3 -3
  55. package/select/index.d.ts +1 -1
  56. package/select/index.js +493 -1
  57. package/select/select.d.ts +3 -3
  58. package/slider/index.d.ts +1 -1
  59. package/slider/index.js +274 -1
  60. package/slider/slider.d.ts +2 -3
  61. package/snackbar/index.d.ts +1 -0
  62. package/snackbar/snackbar.d.ts +34 -0
  63. package/switch/index.d.ts +1 -1
  64. package/switch/index.js +462 -1
  65. package/switch/switch.d.ts +3 -3
  66. package/tab-group/index.d.ts +1 -1
  67. package/tab-group/index.js +182 -1
  68. package/tab-group/tab-group.d.ts +2 -3
  69. package/tab-group/tab-item.d.ts +7 -0
  70. package/textarea/index.d.ts +1 -1
  71. package/textarea/index.js +272 -1
  72. package/textarea/textarea.d.ts +2 -3
  73. package/textfield/index.d.ts +1 -1
  74. package/textfield/index.js +278 -1
  75. package/textfield/textfield.d.ts +2 -3
  76. package/theme/index.d.ts +1 -1
  77. package/theme/index.js +240 -1
  78. package/theme/theme.d.ts +2 -3
  79. package/tooltip/index.d.ts +1 -1
  80. package/tooltip/index.js +136 -1
  81. package/tooltip/tooltip.d.ts +2 -3
  82. package/topbar/index.d.ts +1 -1
  83. package/topbar/index.js +358 -1
  84. package/topbar/topbar.d.ts +3 -4
  85. package/umd/tinkiet.min.js +420 -1
  86. package/utils/aria.d.ts +11 -0
  87. package/utils/unique.d.ts +1 -2
  88. package/accordion/accordion.js +0 -94
  89. package/accordion/accordion.scss.js +0 -4
  90. package/badge/badge.js +0 -31
  91. package/badge/badge.scss.js +0 -4
  92. package/box/box.js +0 -186
  93. package/box/box.scss.js +0 -4
  94. package/box/focusable-box.js +0 -30
  95. package/button/button.js +0 -141
  96. package/button/button.scss.js +0 -4
  97. package/checkbox/checkbox.js +0 -89
  98. package/checkbox/checkbox.scss.js +0 -4
  99. package/chip/chip.js +0 -20
  100. package/chip/chip.scss.js +0 -4
  101. package/dialog/dialog.js +0 -59
  102. package/dialog/dialog.scss.js +0 -4
  103. package/drawer/drawer.js +0 -168
  104. package/drawer/drawer.scss.js +0 -4
  105. package/form/form.js +0 -54
  106. package/icon/icon.js +0 -77
  107. package/icon/icon.scss.js +0 -4
  108. package/icon/icons.js +0 -24
  109. package/index.d.ts.map +0 -1
  110. package/list-item/list-item.js +0 -86
  111. package/list-item/list-item.scss.js +0 -4
  112. package/loading/loading.js +0 -61
  113. package/loading/loading.scss.js +0 -4
  114. package/navigation/navigation-bar.js +0 -20
  115. package/navigation/navigation-bar.scss.js +0 -4
  116. package/navigation/navigation-item.js +0 -51
  117. package/navigation/navigation-item.scss.js +0 -4
  118. package/notie/notie.js +0 -201
  119. package/notie/notie.scss.js +0 -4
  120. package/pages/pages.js +0 -75
  121. package/pages/pages.scss.js +0 -4
  122. package/radio/radio.js +0 -105
  123. package/radio/radio.scss.js +0 -4
  124. package/select/select.js +0 -132
  125. package/select/select.scss.js +0 -4
  126. package/slider/slider.js +0 -135
  127. package/slider/slider.scss.js +0 -4
  128. package/switch/switch.js +0 -101
  129. package/switch/switch.scss.js +0 -4
  130. package/tab-group/tab-group.js +0 -79
  131. package/tab-group/tab-group.scss.js +0 -4
  132. package/textarea/textarea.js +0 -133
  133. package/textarea/textarea.scss.js +0 -4
  134. package/textfield/textfield.js +0 -138
  135. package/textfield/textfield.scss.js +0 -4
  136. package/theme/theme.js +0 -137
  137. package/theme/theme.scss.js +0 -4
  138. package/tooltip/tooltip.js +0 -33
  139. package/tooltip/tooltip.scss.js +0 -4
  140. package/topbar/topbar.js +0 -33
  141. package/topbar/topbar.scss.js +0 -4
  142. package/umd/tinkiet.min.d.ts +0 -660
  143. package/umd/tinkiet.min.d.ts.map +0 -1
  144. package/utils/unique.js +0 -12
package/checkbox/index.js CHANGED
@@ -1 +1,450 @@
1
- export { TkCheckbox } from './checkbox.js';
1
+ import * as __WEBPACK_EXTERNAL_MODULE_lit__ from "lit";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_lit_directives_if_defined_js_76c6050d__ from "lit/directives/if-defined.js";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__ from "lit/decorators.js";
4
+ /******/ var __webpack_modules__ = ({
5
+
6
+ /***/ 1702:
7
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
+
9
+
10
+ // EXPORTS
11
+ __webpack_require__.d(__webpack_exports__, {
12
+ T: () => (/* binding */ TkCheckbox)
13
+ });
14
+
15
+ // EXTERNAL MODULE: external "lit"
16
+ var external_lit_ = __webpack_require__(2927);
17
+ // EXTERNAL MODULE: external "lit/decorators.js"
18
+ var decorators_js_ = __webpack_require__(8899);
19
+ // EXTERNAL MODULE: external "lit/directives/if-defined.js"
20
+ var if_defined_js_ = __webpack_require__(3517);
21
+ // EXTERNAL MODULE: ./tinkiet/box/index.ts
22
+ var box = __webpack_require__(3433);
23
+ // EXTERNAL MODULE: ./tinkiet/utils/unique.ts
24
+ var unique = __webpack_require__(3770);
25
+ ;// ./tinkiet/checkbox/checkbox.scss
26
+ /* harmony default export */ const checkbox_checkbox = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex}:host .state{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:100%;outline:none;overflow:hidden}:host .checkbox{width:18px;height:18px;border:solid 2px hsl(var(--primary));transition:var(--checkbox-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), border-color var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));position:relative;display:inline-flex;align-items:center;justify-content:center;outline:none;-webkit-user-select:none;user-select:none;margin:0 5px}:host .label{user-select:none}:host([checked]) .checkbox{background-color:hsl(var(--primary))}:host([checked]:not([indeterminate])) #checkmark-path,:host([indeterminate]) #indeterminate-path{stroke-dashoffset:0}:host(:focus) #checkmark-path,:host(:hover) #checkmark-path{will-change:stroke-dashoffset}#checkmark{padding:1px}#checkmark-path,#indeterminate-path{stroke-width:5px;stroke:hsl(var(--on-primary));stroke-dasharray:30;stroke-dashoffset:30;transition:var(--checkbox-checkmark-transition, stroke-dashoffset var(--transition-duration-medium, 0.18s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)))}#checkmark-path{transition-delay:var(--checkbox-checkmark-path-delay, 50ms)}:host(:not([disabled])){cursor:pointer}:host(:focus) .state,:host(:hover) .state{background:hsla(var(--on-surface), 0.3)}:host([checked]:focus) .state,:host([checked]:hover) .state{background:hsla(var(--primary), 0.3)}:host([checked]:focus) .checked,:host([checked]:hover) .checked{background-color:hsl(var(--primary))}:host([disabled]){pointer-events:none}:host([disabled]) .checkbox{border-color:hsla(var(--on-surface), 0);background-color:hsla(var(--on-surface), 0.3)}:host([disabled]) #checkmark-path,:host([disabled]) #indeterminate-path{stroke:hsla(var(--on-surface-variant, 0.3))}:host([disabled]) .label{opacity:.6}");
27
+ ;// ./tinkiet/checkbox/checkbox.ts
28
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
29
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
30
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
31
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
32
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
33
+ };
34
+
35
+
36
+
37
+
38
+
39
+
40
+ let TkCheckbox = class TkCheckbox extends external_lit_.LitElement {
41
+ constructor() {
42
+ super(...arguments);
43
+ this._id = (0,unique/* uniqueID */.z)();
44
+ this.checked = false;
45
+ this.disabled = false;
46
+ }
47
+ render() {
48
+ return (0,external_lit_.html) `
49
+ <tk-box direction="row" align-items="center">
50
+ <tk-box ripple tabindex="${this.disabled ? -1 : 0}" class="state">
51
+ <div class="checkbox">
52
+ <svg id="checkmark" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" preserveAspectRatio="none" viewBox="0 0 24 24">
53
+ <path id="checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path>
54
+ <line id="indeterminate-path" fill="none" x1="0" y1="12.5" x2="24" y2="12.5" />
55
+ </svg>
56
+ </div>
57
+ </tk-box>
58
+ <span class="label"><slot></slot></span>
59
+ </tk-box>
60
+ <input
61
+ id=${this._id}
62
+ slot="none"
63
+ style="display: none;"
64
+ ?checked=${this.checked}
65
+ type="checkbox"
66
+ name="${(0,if_defined_js_.ifDefined)(this.name)}"
67
+ value="${(0,if_defined_js_.ifDefined)(this.value)}"
68
+ aria-hidden="true"
69
+ tabindex="-1"
70
+ />
71
+ `;
72
+ }
73
+ connectedCallback() {
74
+ super.connectedCallback();
75
+ this.addEventListener("click", this.handleClick.bind(this));
76
+ this.addEventListener("keydown", this.onKeyDown.bind(this));
77
+ }
78
+ disconnectedCallback() {
79
+ super.disconnectedCallback();
80
+ this.removeEventListener("click", this.handleClick);
81
+ this.removeEventListener("keydown", this.onKeyDown);
82
+ }
83
+ firstUpdated() {
84
+ this.appendChild(this.$input);
85
+ }
86
+ onKeyDown(e) {
87
+ if (e.code === "Space" || e.code === "Enter") {
88
+ e.preventDefault();
89
+ e.stopPropagation();
90
+ this.click();
91
+ }
92
+ }
93
+ handleClick() {
94
+ this.checked = !this.checked;
95
+ setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
96
+ }
97
+ };
98
+ TkCheckbox.styles = (0,external_lit_.css) `
99
+ ${(0,external_lit_.unsafeCSS)(checkbox_checkbox)}
100
+ `;
101
+ __decorate([
102
+ (0,decorators_js_.property)({ attribute: true, type: String })
103
+ ], TkCheckbox.prototype, "name", void 0);
104
+ __decorate([
105
+ (0,decorators_js_.property)({ attribute: true, type: String, reflect: true })
106
+ ], TkCheckbox.prototype, "value", void 0);
107
+ __decorate([
108
+ (0,decorators_js_.property)({ attribute: true, type: Boolean, reflect: true })
109
+ ], TkCheckbox.prototype, "checked", void 0);
110
+ __decorate([
111
+ (0,decorators_js_.property)({ type: Boolean })
112
+ ], TkCheckbox.prototype, "disabled", void 0);
113
+ __decorate([
114
+ (0,decorators_js_.query)("input")
115
+ ], TkCheckbox.prototype, "$input", void 0);
116
+ TkCheckbox = __decorate([
117
+ (0,decorators_js_.customElement)("tk-checkbox")
118
+ ], TkCheckbox);
119
+
120
+
121
+
122
+ /***/ }),
123
+
124
+ /***/ 2788:
125
+ /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
126
+
127
+
128
+ // EXPORTS
129
+ __webpack_require__.d(__webpack_exports__, {
130
+ P: () => (/* binding */ TkBox)
131
+ });
132
+
133
+ // UNUSED EXPORTS: TkBox
134
+
135
+ // EXTERNAL MODULE: external "lit"
136
+ var external_lit_ = __webpack_require__(2927);
137
+ // EXTERNAL MODULE: external "lit/decorators.js"
138
+ var decorators_js_ = __webpack_require__(8899);
139
+ ;// ./tinkiet/box/box.scss
140
+ /* harmony default export */ const box = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:flex;position:relative;flex-direction:column;box-sizing:border-box}:host([hidden]){display:none}.ripple{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;pointer-events:none}.ripple span{position:absolute;border-radius:50%;background-color:hsla(var(--on-primary), 0.5)}:host([align-content=start]){align-content:flex-start}:host([align-content=end]){align-content:flex-end}:host([align-content=stretch]){align-content:stretch}:host([align-content=center]){align-content:center}:host([align-content=around]){align-content:space-around}:host([align-content=between]){align-content:space-between}:host([align-items=start]){align-items:flex-start}:host([align-items=end]){align-items:flex-end}:host([align-items=stretch]){align-items:stretch}:host([align-items=center]){align-items:center}:host([align-items=baseline]){align-items:baseline}:host([align-self=start]){align-self:flex-start}:host([align-self=end]){align-self:flex-end}:host([align-self=stretch]){align-self:stretch}:host([align-self=center]){align-self:center}:host([background=primary]){background-color:hsl(var(--primary))}:host([color=primary]){color:hsl(var(--primary))}:host([background=on-primary]){background-color:hsl(var(--on-primary))}:host([color=on-primary]){color:hsl(var(--on-primary))}:host([background=secondary]){background-color:hsl(var(--secondary))}:host([color=secondary]){color:hsl(var(--secondary))}:host([background=on-secondary]){background-color:hsl(var(--on-secondary))}:host([color=on-secondary]){color:hsl(var(--on-secondary))}:host([background=tertiary]){background-color:hsl(var(--tertiary))}:host([color=tertiary]){color:hsl(var(--tertiary))}:host([background=on-tertiary]){background-color:hsl(var(--on-tertiary))}:host([color=on-tertiary]){color:hsl(var(--on-tertiary))}:host([background=neutral]){background-color:hsl(var(--neutral))}:host([color=neutral]){color:hsl(var(--neutral))}:host([background=on-neutral]){background-color:hsl(var(--on-neutral))}:host([color=on-neutral]){color:hsl(var(--on-neutral))}:host([background=neutral-variant]){background-color:hsl(var(--neutral-variant))}:host([color=neutral-variant]){color:hsl(var(--neutral-variant))}:host([background=on-neutral-variant]){background-color:hsl(var(--on-neutral-variant))}:host([color=on-neutral-variant]){color:hsl(var(--on-neutral-variant))}:host([background=error]){background-color:hsl(var(--error))}:host([color=error]){color:hsl(var(--error))}:host([background=on-error]){background-color:hsl(var(--on-error))}:host([color=on-error]){color:hsl(var(--on-error))}:host([background=primary-container]){background-color:hsl(var(--primary-container))}:host([color=primary-container]){color:hsl(var(--primary-container))}:host([background=on-primary-container]){background-color:hsl(var(--on-primary-container))}:host([color=on-primary-container]){color:hsl(var(--on-primary-container))}:host([background=secondary-container]){background-color:hsl(var(--secondary-container))}:host([color=secondary-container]){color:hsl(var(--secondary-container))}:host([background=on-secondary-container]){background-color:hsl(var(--on-secondary-container))}:host([color=on-secondary-container]){color:hsl(var(--on-secondary-container))}:host([background=tertiary-container]){background-color:hsl(var(--tertiary-container))}:host([color=tertiary-container]){color:hsl(var(--tertiary-container))}:host([background=on-tertiary-container]){background-color:hsl(var(--on-tertiary-container))}:host([color=on-tertiary-container]){color:hsl(var(--on-tertiary-container))}:host([background=neutral-container]){background-color:hsl(var(--neutral-container))}:host([color=neutral-container]){color:hsl(var(--neutral-container))}:host([background=on-neutral-container]){background-color:hsl(var(--on-neutral-container))}:host([color=on-neutral-container]){color:hsl(var(--on-neutral-container))}:host([background=neutral-variant-container]){background-color:hsl(var(--neutral-variant-container))}:host([color=neutral-variant-container]){color:hsl(var(--neutral-variant-container))}:host([background=on-neutral-variant-container]){background-color:hsl(var(--on-neutral-variant-container))}:host([color=on-neutral-variant-container]){color:hsl(var(--on-neutral-variant-container))}:host([background=error-container]){background-color:hsl(var(--error-container))}:host([color=error-container]){color:hsl(var(--error-container))}:host([background=on-error-container]){background-color:hsl(var(--on-error-container))}:host([color=on-error-container]){color:hsl(var(--on-error-container))}:host([background=primary-0]){background-color:hsl(var(--primary-0))}:host([color=primary-0]){color:hsl(var(--primary-0))}:host([background=surface]){background-color:hsl(var(--surface))}:host([color=surface]){color:hsl(var(--surface))}:host([background=on-surface]){background-color:hsl(var(--on-surface))}:host([color=on-surface]){color:hsl(var(--on-surface))}:host([background=surface-dim]){background-color:hsl(var(--surface-dim))}:host([color=surface-dim]){color:hsl(var(--surface-dim))}:host([background=surface-bright]){background-color:hsl(var(--surface-bright))}:host([color=surface-bright]){color:hsl(var(--surface-bright))}:host([background=surface-container-lowest]){background-color:hsl(var(--surface-container-lowest))}:host([color=surface-container-lowest]){color:hsl(var(--surface-container-lowest))}:host([background=surface-container-low]){background-color:hsl(var(--surface-container-low))}:host([color=surface-container-low]){color:hsl(var(--surface-container-low))}:host([background=surface-container]){background-color:hsl(var(--surface-container))}:host([color=surface-container]){color:hsl(var(--surface-container))}:host([background=surface-container-high]){background-color:hsl(var(--surface-container-high))}:host([color=surface-container-high]){color:hsl(var(--surface-container-high))}:host([background=surface-container-highest]){background-color:hsl(var(--surface-container-highest))}:host([color=surface-container-highest]){color:hsl(var(--surface-container-highest))}:host([background=surface-variant]){background-color:hsl(var(--surface-variant))}:host([color=surface-variant]){color:hsl(var(--surface-variant))}:host([background=on-surface-variant]){background-color:hsl(var(--on-surface-variant))}:host([color=on-surface-variant]){color:hsl(var(--on-surface-variant))}:host([background=outline]){background-color:hsl(var(--outline))}:host([color=outline]){color:hsl(var(--outline))}:host([background=outline-variant]){background-color:hsl(var(--outline-variant))}:host([color=outline-variant]){color:hsl(var(--outline-variant))}:host([background=inverse-surface]){background-color:hsl(var(--inverse-surface))}:host([color=inverse-surface]){color:hsl(var(--inverse-surface))}:host([background=inverse-on-surface]){background-color:hsl(var(--inverse-on-surface))}:host([color=inverse-on-surface]){color:hsl(var(--inverse-on-surface))}:host([background=background]){background-color:hsl(var(--background))}:host([color=background]){color:hsl(var(--background))}:host([background=on-background]){background-color:hsl(var(--on-background))}:host([color=on-background]){color:hsl(var(--on-background))}:host([background=shadow]){background-color:hsl(var(--shadow))}:host([color=shadow]){color:hsl(var(--shadow))}:host([background=primary-10]){background-color:hsl(var(--primary-10))}:host([color=primary-10]){color:hsl(var(--primary-10))}:host([background=primary-20]){background-color:hsl(var(--primary-20))}:host([color=primary-20]){color:hsl(var(--primary-20))}:host([background=primary-30]){background-color:hsl(var(--primary-30))}:host([color=primary-30]){color:hsl(var(--primary-30))}:host([background=primary-40]){background-color:hsl(var(--primary-40))}:host([color=primary-40]){color:hsl(var(--primary-40))}:host([background=primary-50]){background-color:hsl(var(--primary-50))}:host([color=primary-50]){color:hsl(var(--primary-50))}:host([background=primary-60]){background-color:hsl(var(--primary-60))}:host([color=primary-60]){color:hsl(var(--primary-60))}:host([background=primary-70]){background-color:hsl(var(--primary-70))}:host([color=primary-70]){color:hsl(var(--primary-70))}:host([background=primary-80]){background-color:hsl(var(--primary-80))}:host([color=primary-80]){color:hsl(var(--primary-80))}:host([background=primary-90]){background-color:hsl(var(--primary-90))}:host([color=primary-90]){color:hsl(var(--primary-90))}:host([background=primary-95]){background-color:hsl(var(--primary-95))}:host([color=primary-95]){color:hsl(var(--primary-95))}:host([background=primary-99]){background-color:hsl(var(--primary-99))}:host([color=primary-99]){color:hsl(var(--primary-99))}:host([background=primary-100]){background-color:hsl(var(--primary-100))}:host([color=primary-100]){color:hsl(var(--primary-100))}:host([background=secondary-0]){background-color:hsl(var(--secondary-0))}:host([color=secondary-0]){color:hsl(var(--secondary-0))}:host([background=secondary-10]){background-color:hsl(var(--secondary-10))}:host([color=secondary-10]){color:hsl(var(--secondary-10))}:host([background=secondary-20]){background-color:hsl(var(--secondary-20))}:host([color=secondary-20]){color:hsl(var(--secondary-20))}:host([background=secondary-30]){background-color:hsl(var(--secondary-30))}:host([color=secondary-30]){color:hsl(var(--secondary-30))}:host([background=secondary-40]){background-color:hsl(var(--secondary-40))}:host([color=secondary-40]){color:hsl(var(--secondary-40))}:host([background=secondary-50]){background-color:hsl(var(--secondary-50))}:host([color=secondary-50]){color:hsl(var(--secondary-50))}:host([background=secondary-60]){background-color:hsl(var(--secondary-60))}:host([color=secondary-60]){color:hsl(var(--secondary-60))}:host([background=secondary-70]){background-color:hsl(var(--secondary-70))}:host([color=secondary-70]){color:hsl(var(--secondary-70))}:host([background=secondary-80]){background-color:hsl(var(--secondary-80))}:host([color=secondary-80]){color:hsl(var(--secondary-80))}:host([background=secondary-90]){background-color:hsl(var(--secondary-90))}:host([color=secondary-90]){color:hsl(var(--secondary-90))}:host([background=secondary-100]){background-color:hsl(var(--secondary-100))}:host([color=secondary-100]){color:hsl(var(--secondary-100))}:host([background=tertiary-0]){background-color:hsl(var(--tertiary-0))}:host([color=tertiary-0]){color:hsl(var(--tertiary-0))}:host([background=tertiary-10]){background-color:hsl(var(--tertiary-10))}:host([color=tertiary-10]){color:hsl(var(--tertiary-10))}:host([background=tertiary-20]){background-color:hsl(var(--tertiary-20))}:host([color=tertiary-20]){color:hsl(var(--tertiary-20))}:host([background=tertiary-30]){background-color:hsl(var(--tertiary-30))}:host([color=tertiary-30]){color:hsl(var(--tertiary-30))}:host([background=tertiary-40]){background-color:hsl(var(--tertiary-40))}:host([color=tertiary-40]){color:hsl(var(--tertiary-40))}:host([background=tertiary-50]){background-color:hsl(var(--tertiary-50))}:host([color=tertiary-50]){color:hsl(var(--tertiary-50))}:host([background=tertiary-60]){background-color:hsl(var(--tertiary-60))}:host([color=tertiary-60]){color:hsl(var(--tertiary-60))}:host([background=tertiary-70]){background-color:hsl(var(--tertiary-70))}:host([color=tertiary-70]){color:hsl(var(--tertiary-70))}:host([background=tertiary-80]){background-color:hsl(var(--tertiary-80))}:host([color=tertiary-80]){color:hsl(var(--tertiary-80))}:host([background=tertiary-90]){background-color:hsl(var(--tertiary-90))}:host([color=tertiary-90]){color:hsl(var(--tertiary-90))}:host([background=tertiary-100]){background-color:hsl(var(--tertiary-100))}:host([color=tertiary-100]){color:hsl(var(--tertiary-100))}:host([background=neutral-0]){background-color:hsl(var(--neutral-0))}:host([color=neutral-0]){color:hsl(var(--neutral-0))}:host([background=neutral-10]){background-color:hsl(var(--neutral-10))}:host([color=neutral-10]){color:hsl(var(--neutral-10))}:host([background=neutral-20]){background-color:hsl(var(--neutral-20))}:host([color=neutral-20]){color:hsl(var(--neutral-20))}:host([background=neutral-30]){background-color:hsl(var(--neutral-30))}:host([color=neutral-30]){color:hsl(var(--neutral-30))}:host([background=neutral-40]){background-color:hsl(var(--neutral-40))}:host([color=neutral-40]){color:hsl(var(--neutral-40))}:host([background=neutral-50]){background-color:hsl(var(--neutral-50))}:host([color=neutral-50]){color:hsl(var(--neutral-50))}:host([background=neutral-60]){background-color:hsl(var(--neutral-60))}:host([color=neutral-60]){color:hsl(var(--neutral-60))}:host([background=neutral-70]){background-color:hsl(var(--neutral-70))}:host([color=neutral-70]){color:hsl(var(--neutral-70))}:host([background=neutral-80]){background-color:hsl(var(--neutral-80))}:host([color=neutral-80]){color:hsl(var(--neutral-80))}:host([background=neutral-90]){background-color:hsl(var(--neutral-90))}:host([color=neutral-90]){color:hsl(var(--neutral-90))}:host([background=neutral-100]){background-color:hsl(var(--neutral-100))}:host([color=neutral-100]){color:hsl(var(--neutral-100))}:host([background=error-0]){background-color:hsl(var(--error-0))}:host([color=error-0]){color:hsl(var(--error-0))}:host([background=error-10]){background-color:hsl(var(--error-10))}:host([color=error-10]){color:hsl(var(--error-10))}:host([background=error-20]){background-color:hsl(var(--error-20))}:host([color=error-20]){color:hsl(var(--error-20))}:host([background=error-30]){background-color:hsl(var(--error-30))}:host([color=error-30]){color:hsl(var(--error-30))}:host([background=error-40]){background-color:hsl(var(--error-40))}:host([color=error-40]){color:hsl(var(--error-40))}:host([background=error-50]){background-color:hsl(var(--error-50))}:host([color=error-50]){color:hsl(var(--error-50))}:host([background=error-60]){background-color:hsl(var(--error-60))}:host([color=error-60]){color:hsl(var(--error-60))}:host([background=error-70]){background-color:hsl(var(--error-70))}:host([color=error-70]){color:hsl(var(--error-70))}:host([background=error-80]){background-color:hsl(var(--error-80))}:host([color=error-80]){color:hsl(var(--error-80))}:host([background=error-90]){background-color:hsl(var(--error-90))}:host([color=error-90]){color:hsl(var(--error-90))}:host([background=error-100]){background-color:hsl(var(--error-100))}:host([color=error-100]){color:hsl(var(--error-100))}:host([direction=column]){flex-direction:column}:host([direction=row]){flex-direction:row}:host([direction=row-reverse]){flex-direction:row-reverse}:host([direction=column-reverse]){flex-direction:column-reverse}:host([text=center]){text-align:center}:host([text=justify]){text-align:justify}:host([text=left]){text-align:left}:host([text=right]){text-align:right}:host([weight=\"100\"]){font-weight:100}:host([weight=\"200\"]){font-weight:200}:host([weight=\"300\"]){font-weight:300}:host([weight=\"400\"]){font-weight:400}:host([weight=\"500\"]){font-weight:500}:host([weight=\"600\"]){font-weight:600}:host([weight=\"700\"]){font-weight:700}:host([weight=\"800\"]){font-weight:800}:host([weight=\"900\"]){font-weight:900}:host([weight=lighter]){font-weight:lighter}:host([weight=bold]){font-weight:bold}:host([weight=bolder]){font-weight:bolder}:host([direction=row]){flex-direction:row}:host([direction=row-reverse]){flex-direction:row}:host([elevation=\"1\"]){box-shadow:var(--box-elevation, 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15))}:host([elevation=\"2\"]){box-shadow:var(--box-elevation, 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15))}:host([elevation=\"3\"]){box-shadow:var(--box-elevation, 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15))}:host([fill=horizontal]){width:100%}:host([fill=vertical]){height:100%}:host([fill=true]){width:100%;height:100%}:host([flex=grow]){flex:1 0}:host([flex=shrink]){flex:0 1}:host([flex=true]){flex:1 1}:host([flex=false]){flex:0 0}:host([gap=xsmall]) ::slotted(*),:host([gap=xsmall][direction=column]) ::slotted(*){margin:var(--spacing-xs, 0.25rem) 0}:host([gap=xsmall][direction=row]) ::slotted(*){margin:0 var(--spacing-xs, 0.25rem)}:host([margin=xsmall]){margin:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([vmargin=xsmall]){margin-top:var(--box-margin, var(--spacing-xs, 0.25rem));margin-bottom:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([hmargin=xsmall]){margin-left:var(--box-margin, var(--spacing-xs, 0.25rem));margin-right:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([margin=\"xsmall auto\"]){margin:var(--box-margin, var(--spacing-xs, 0.25rem)) auto}:host([margin=\"auto xsmall\"]){margin:auto var(--box-margin, var(--spacing-xs, 0.25rem))}:host([padding=xsmall]){padding:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([vpadding=xsmall]){padding-top:var(--box-padding, var(--spacing-xs, 0.25rem));padding-bottom:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([hpadding=xsmall]){padding-left:var(--box-padding, var(--spacing-xs, 0.25rem));padding-right:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([gap=small]) ::slotted(*),:host([gap=small][direction=column]) ::slotted(*){margin:var(--spacing-s, 0.5rem) 0}:host([gap=small][direction=row]) ::slotted(*){margin:0 var(--spacing-s, 0.5rem)}:host([margin=small]){margin:var(--box-margin, var(--spacing-s, 0.5rem))}:host([vmargin=small]){margin-top:var(--box-margin, var(--spacing-s, 0.5rem));margin-bottom:var(--box-margin, var(--spacing-s, 0.5rem))}:host([hmargin=small]){margin-left:var(--box-margin, var(--spacing-s, 0.5rem));margin-right:var(--box-margin, var(--spacing-s, 0.5rem))}:host([margin=\"small auto\"]){margin:var(--box-margin, var(--spacing-s, 0.5rem)) auto}:host([margin=\"auto small\"]){margin:auto var(--box-margin, var(--spacing-s, 0.5rem))}:host([padding=small]){padding:var(--box-padding, var(--spacing-s, 0.5rem))}:host([vpadding=small]){padding-top:var(--box-padding, var(--spacing-s, 0.5rem));padding-bottom:var(--box-padding, var(--spacing-s, 0.5rem))}:host([hpadding=small]){padding-left:var(--box-padding, var(--spacing-s, 0.5rem));padding-right:var(--box-padding, var(--spacing-s, 0.5rem))}:host([gap=medium]) ::slotted(*),:host([gap=medium][direction=column]) ::slotted(*){margin:var(--spacing-m, 1rem) 0}:host([gap=medium][direction=row]) ::slotted(*){margin:0 var(--spacing-m, 1rem)}:host([margin=medium]){margin:var(--box-margin, var(--spacing-m, 1rem))}:host([vmargin=medium]){margin-top:var(--box-margin, var(--spacing-m, 1rem));margin-bottom:var(--box-margin, var(--spacing-m, 1rem))}:host([hmargin=medium]){margin-left:var(--box-margin, var(--spacing-m, 1rem));margin-right:var(--box-margin, var(--spacing-m, 1rem))}:host([margin=\"medium auto\"]){margin:var(--box-margin, var(--spacing-m, 1rem)) auto}:host([margin=\"auto medium\"]){margin:auto var(--box-margin, var(--spacing-m, 1rem))}:host([padding=medium]){padding:var(--box-padding, var(--spacing-m, 1rem))}:host([vpadding=medium]){padding-top:var(--box-padding, var(--spacing-m, 1rem));padding-bottom:var(--box-padding, var(--spacing-m, 1rem))}:host([hpadding=medium]){padding-left:var(--box-padding, var(--spacing-m, 1rem));padding-right:var(--box-padding, var(--spacing-m, 1rem))}:host([gap=large]) ::slotted(*),:host([gap=large][direction=column]) ::slotted(*){margin:var(--spacing-l, 1.25rem) 0}:host([gap=large][direction=row]) ::slotted(*){margin:0 var(--spacing-l, 1.25rem)}:host([margin=large]){margin:var(--box-margin, var(--spacing-l, 1.25rem))}:host([vmargin=large]){margin-top:var(--box-margin, var(--spacing-l, 1.25rem));margin-bottom:var(--box-margin, var(--spacing-l, 1.25rem))}:host([hmargin=large]){margin-left:var(--box-margin, var(--spacing-l, 1.25rem));margin-right:var(--box-margin, var(--spacing-l, 1.25rem))}:host([margin=\"large auto\"]){margin:var(--box-margin, var(--spacing-l, 1.25rem)) auto}:host([margin=\"auto large\"]){margin:auto var(--box-margin, var(--spacing-l, 1.25rem))}:host([padding=large]){padding:var(--box-padding, var(--spacing-l, 1.25rem))}:host([vpadding=large]){padding-top:var(--box-padding, var(--spacing-l, 1.25rem));padding-bottom:var(--box-padding, var(--spacing-l, 1.25rem))}:host([hpadding=large]){padding-left:var(--box-padding, var(--spacing-l, 1.25rem));padding-right:var(--box-padding, var(--spacing-l, 1.25rem))}:host([gap=xlarge]) ::slotted(*),:host([gap=xlarge][direction=column]) ::slotted(*){margin:var(--spacing-xl, 2rem) 0}:host([gap=xlarge][direction=row]) ::slotted(*){margin:0 var(--spacing-xl, 2rem)}:host([margin=xlarge]){margin:var(--box-margin, var(--spacing-xl, 2rem))}:host([vmargin=xlarge]){margin-top:var(--box-margin, var(--spacing-xl, 2rem));margin-bottom:var(--box-margin, var(--spacing-xl, 2rem))}:host([hmargin=xlarge]){margin-left:var(--box-margin, var(--spacing-xl, 2rem));margin-right:var(--box-margin, var(--spacing-xl, 2rem))}:host([margin=\"xlarge auto\"]){margin:var(--box-margin, var(--spacing-xl, 2rem)) auto}:host([margin=\"auto xlarge\"]){margin:auto var(--box-margin, var(--spacing-xl, 2rem))}:host([padding=xlarge]){padding:var(--box-padding, var(--spacing-xl, 2rem))}:host([vpadding=xlarge]){padding-top:var(--box-padding, var(--spacing-xl, 2rem));padding-bottom:var(--box-padding, var(--spacing-xl, 2rem))}:host([hpadding=xlarge]){padding-left:var(--box-padding, var(--spacing-xl, 2rem));padding-right:var(--box-padding, var(--spacing-xl, 2rem))}:host([font=xsmall]),:host([size=xsmall]){font-size:var(--box-font-size, var(--font-size-xs, 0.625rem))}:host([font=small]),:host([size=small]){font-size:var(--box-font-size, var(--font-size-s, 0.875rem))}:host([font=medium]),:host([size=medium]){font-size:var(--box-font-size, var(--font-size-m, 1rem))}:host([font=large]),:host([size=large]){font-size:var(--box-font-size, var(--font-size-l, 1.25rem))}:host([font=xlarge]),:host([size=xlarge]){font-size:var(--box-font-size, var(--font-size-xl, 1.5rem))}:host([font=xxlarge]),:host([size=xxlarge]){font-size:var(--box-font-size, var(--font-size-xxl, 2.25rem))}:host([justify=start]){justify-content:flex-start}:host([justify=end]){justify-content:flex-end}:host([justify=stretch]){justify-content:stretch}:host([justify=baseline]){justify-content:baseline}:host([justify=center]){justify-content:center}:host([justify=around]){justify-content:space-around}:host([justify=between]){justify-content:space-between}:host([justify=evenly]){justify-content:space-evenly}:host([overflow=auto]){overflow:auto}:host([overflow=hidden]){overflow:hidden}:host([overflow=scroll]){overflow:scroll}:host([overflow=visible]){overflow:visible}:host([radius=none]){border-radius:var(--box-border-radius, 0)}:host([radius=small]){border-radius:var(--box-border-radius, var(--border-radius-small, 0.125rem))}:host([radius=medium]){border-radius:var(--box-border-radius, var(--border-radius-medium, 0.25rem))}:host([radius=large]){border-radius:var(--box-border-radius, var(--border-radius-large, 0.5rem))}:host([radius=xlarge]){border-radius:var(--box-border-radius, var(--border-radius-x-large, 1rem))}:host([radius=circle]){border-radius:var(--box-border-radius, var(--border-radius-circle, 50%))}:host([radius=pill]){border-radius:var(--box-border-radius, var(--border-radius-pill, 9999px))}:host([max-width=xxsmall]){max-width:var(--box-max-width, var(--size-xxs, 2rem))}:host([width=xxsmall]){width:var(--box-width, var(--size-xxs, 2rem))}:host([max-height=xxsmall]){max-height:var(--box-max-height, var(--size-xxs, 2rem))}:host([height=xxsmall]){height:var(--box-height, var(--size-xxs, 2rem))}:host([max-width=xsmall]){max-width:var(--box-max-width, var(--size-xs, 4rem))}:host([width=xsmall]){width:var(--box-width, var(--size-xs, 4rem))}:host([max-height=xsmall]){max-height:var(--box-max-height, var(--size-xs, 4rem))}:host([height=xsmall]){height:var(--box-height, var(--size-xs, 4rem))}:host([max-width=small]){max-width:var(--box-max-width, var(--size-s, 8rem))}:host([width=small]){width:var(--box-width, var(--size-s, 8rem))}:host([max-height=small]){max-height:var(--box-max-height, var(--size-s, 8rem))}:host([height=small]){height:var(--box-height, var(--size-s, 8rem))}:host([max-width=medium]){max-width:var(--box-max-width, var(--size-m, 16rem))}:host([width=medium]){width:var(--box-width, var(--size-m, 16rem))}:host([max-height=medium]){max-height:var(--box-max-height, var(--size-m, 16rem))}:host([height=medium]){height:var(--box-height, var(--size-m, 16rem))}:host([max-width=large]){max-width:var(--box-max-width, var(--size-l, 32rem))}:host([width=large]){width:var(--box-width, var(--size-l, 32rem))}:host([max-height=large]){max-height:var(--box-max-height, var(--size-l, 32rem))}:host([height=large]){height:var(--box-height, var(--size-l, 32rem))}:host([max-width=xlarge]){max-width:var(--box-max-width, var(--size-xl, 48rem))}:host([width=xlarge]){width:var(--box-width, var(--size-xl, 48rem))}:host([max-height=xlarge]){max-height:var(--box-max-height, var(--size-xl, 48rem))}:host([height=xlarge]){height:var(--box-height, var(--size-xl, 48rem))}:host([max-width=xxlarge]){max-width:var(--box-max-width, var(--size-xxl, 64rem))}:host([width=xxlarge]){width:var(--box-width, var(--size-xxl, 64rem))}:host([max-height=xxlarge]){max-height:var(--box-max-height, var(--size-xxl, 64rem))}:host([height=xxlarge]){height:var(--box-height, var(--size-xxl, 64rem))}:host([wrap=true]){flex-wrap:wrap}:host([wrap=reverse]){flex-wrap:wrap-reverse}");
141
+ ;// ./tinkiet/box/box.ts
142
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
143
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
144
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
145
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
146
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
147
+ };
148
+
149
+
150
+
151
+ const colors = (/* unused pure expression or super */ null && ([
152
+ "primary-lighter",
153
+ "primary-light",
154
+ "primary",
155
+ "primary-dark",
156
+ "primary-darker",
157
+ "on-primary-lighter",
158
+ "on-primary-light",
159
+ "on-primary",
160
+ "on-primary-dark",
161
+ "on-primary-darker",
162
+ "accent-lighter",
163
+ "accent-light",
164
+ "accent",
165
+ "accent-dark",
166
+ "accent-darker",
167
+ "on-accent-lighter",
168
+ "on-accent-light",
169
+ "on-accent",
170
+ "on-accent-dark",
171
+ "on-accent-darker",
172
+ "error-lighter",
173
+ "error-light",
174
+ "error",
175
+ "error-dark",
176
+ "error-darker",
177
+ "on-error-lighter",
178
+ "on-error-light",
179
+ "on-error",
180
+ "on-error-dark",
181
+ "on-error-darker",
182
+ "shade-lighter",
183
+ "shade-light",
184
+ "shade",
185
+ "shade-dark",
186
+ "shade-darker",
187
+ "on-shade-lighter",
188
+ "on-shade-light",
189
+ "on-shade",
190
+ "on-shade-dark",
191
+ "on-shade-darker"
192
+ ]));
193
+ /**
194
+ * A container that lays out its contents in one direction
195
+ *
196
+ * @attr {"none" | "small" | "medium" | "large" | "xlarge" | "circle" | "pill" } radius - border radius
197
+ * @attr {"around" | "between" | "center" | "end" | "start" | "stretch"} align-content - How to align the contents when there is extra space in the cross axis.
198
+ * @attr [align-content="stretch"]
199
+ * @attr {"baseline" | "center" | "end" | "start" | "stretch"} align-items - How to align the contents along the cross axis.
200
+ * @attr {"center" | "end" | "start" | "stretch"} align-self - How to align along the cross axis when contained in a Box or along the column axis when contained in a Grid.
201
+ * @attr {"row" | "column"} direction - The orientation to layout the child components in.
202
+ * @attr [direction="column"]
203
+ * @attr {1|2|3} elevation - Elevated height above the underlying context, indicated via a drop shadow.
204
+ * @attr {"horizontal" | "vertical" | "true" | "false"} fill - Whether the width and/or height should fill the container.
205
+ * @attr {"grow" | "shrink" | "true" | "false"} flex - flex-grow and/or flex-shrink
206
+ * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} gap - The amount of spacing between child elements. This should not be used in conjunction with 'wrap' as the gap elements will not wrap gracefully. If a child is a Fragment, Box will not add a gap between the children of the Fragment.
207
+ * @attr {"around" | "between" | "center" | "end" | "evenly" | "start" | "stretch"} justify - How to align the contents along the main axis.
208
+ * @attr [justify="stretch"]
209
+ * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} margin - The amount of margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.
210
+ * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} vmargin - The amount of vertical margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.
211
+ * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} hmargin - The amount of horizontal margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.
212
+ * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} padding - The amount of padding around the box contents. An object can be specified to distinguish horizontal padding, vertical padding, and padding on a particular side of the box.
213
+ * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} vpadding - The amount of vertical padding around the box contents. An object can be specified to distinguish horizontal padding, vertical padding, and padding on a particular side of the box.
214
+ * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} hpadding - The amount of horizontal padding around the box contents. An object can be specified to distinguish horizontal padding, vertical padding, and padding on a particular side of the box.
215
+ * @attr {"center" | "justify" | "left" | "right"} text - Text align
216
+ * @attr {"xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge"} width - A fixed width.
217
+ * @attr {"xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge"} height - A fixed height.
218
+ * @attr {"auto" | "hidden" | "scroll" | "visible"} overflow - box overflow.
219
+ * @attr { "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "lighter" | "bold" | "bolder"} weight - Font weight.
220
+ * @attr {"true" | "false" | "reverse"} wrap - Whether children can wrap if they can't all fit.
221
+ * @attr [wrap="false"]
222
+ */
223
+ let TkBox = class TkBox extends external_lit_.LitElement {
224
+ constructor() {
225
+ super(...arguments);
226
+ /**
227
+ * Activate ripple
228
+ */
229
+ this.ripple = false;
230
+ }
231
+ static get styles() {
232
+ return [
233
+ (0,external_lit_.css) `
234
+ ${(0,external_lit_.unsafeCSS)(box)}
235
+ `
236
+ ];
237
+ }
238
+ render() {
239
+ return (0,external_lit_.html) `
240
+ <slot></slot>
241
+ `;
242
+ }
243
+ connectedCallback() {
244
+ if (this.ripple) {
245
+ this.addEventListener("mousedown", this.showRipple.bind(this), { passive: true });
246
+ this.addEventListener("mouseup", this.hideRipple.bind(this), { passive: true });
247
+ }
248
+ super.connectedCallback();
249
+ }
250
+ disconnectedCallback() {
251
+ this.removeEventListener("mousedown", this.showRipple);
252
+ this.addEventListener("mouseup", this.hideRipple);
253
+ super.disconnectedCallback();
254
+ }
255
+ updated(props) {
256
+ // if (props.has("background") && ![...colors, "background", "foreground"].includes(this.background as string))
257
+ // this.style.setProperty("background-color", this.background.toString());
258
+ // if (props.has("color") && ![...colors, "background", "foreground"].includes(this.color as string))
259
+ // this.style.setProperty("color", this.color.toString());
260
+ super.updated(props);
261
+ }
262
+ showRipple(event) {
263
+ const x = event.clientX;
264
+ const y = event.clientY;
265
+ const { offsetWidth, offsetHeight } = this;
266
+ const container = document.createElement("span");
267
+ container.classList.add("ripple", "open");
268
+ const element = document.createElement("span");
269
+ container.appendChild(element);
270
+ this.shadowRoot.appendChild(container);
271
+ const rect = this.getBoundingClientRect();
272
+ const diameter = Math.max(offsetWidth, offsetWidth) * 2;
273
+ element.style.width = element.style.height = diameter + "px";
274
+ element.style.left = x - rect.left - diameter / 2 + "px";
275
+ element.style.top = y - rect.top - diameter / 2 + "px";
276
+ const inAnimation = element.animate({
277
+ transform: [`scale(0)`, `scale(1)`]
278
+ }, {
279
+ easing: "ease-out",
280
+ fill: "both",
281
+ duration: 500
282
+ });
283
+ inAnimation.onfinish = () => {
284
+ container.classList.remove("open");
285
+ const outAnimation = element.animate({
286
+ opacity: ["0.5", "0"]
287
+ }, {
288
+ easing: "ease-in",
289
+ fill: "both",
290
+ duration: 300
291
+ });
292
+ outAnimation.onfinish = () => {
293
+ requestAnimationFrame(() => {
294
+ container.remove();
295
+ });
296
+ };
297
+ };
298
+ }
299
+ hideRipple(event) {
300
+ var _a;
301
+ (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".ripple:not([open])").forEach(container => {
302
+ const element = container.querySelector("span");
303
+ const outAnimation = element.animate({
304
+ opacity: ["0.5", "0"]
305
+ }, {
306
+ easing: "ease-out",
307
+ fill: "both",
308
+ duration: 300
309
+ });
310
+ outAnimation.onfinish = () => {
311
+ requestAnimationFrame(() => {
312
+ container.remove();
313
+ });
314
+ };
315
+ });
316
+ }
317
+ };
318
+ __decorate([
319
+ (0,decorators_js_.property)({ type: Boolean })
320
+ ], TkBox.prototype, "ripple", void 0);
321
+ __decorate([
322
+ (0,decorators_js_.property)()
323
+ ], TkBox.prototype, "background", void 0);
324
+ __decorate([
325
+ (0,decorators_js_.property)()
326
+ ], TkBox.prototype, "color", void 0);
327
+ TkBox = __decorate([
328
+ (0,decorators_js_.customElement)("tk-box")
329
+ ], TkBox);
330
+
331
+
332
+
333
+ /***/ }),
334
+
335
+ /***/ 2927:
336
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
337
+
338
+ var x = (y) => {
339
+ var x = {}; __webpack_require__.d(x, y); return x
340
+ }
341
+ var y = (x) => (() => (x))
342
+ module.exports = x({ ["LitElement"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.LitElement), ["css"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.css), ["html"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.html), ["unsafeCSS"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.unsafeCSS) });
343
+
344
+ /***/ }),
345
+
346
+ /***/ 3433:
347
+ /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
348
+
349
+ /* harmony import */ var _box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2788);
350
+
351
+
352
+
353
+ /***/ }),
354
+
355
+ /***/ 3517:
356
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
357
+
358
+ var x = (y) => {
359
+ var x = {}; __webpack_require__.d(x, y); return x
360
+ }
361
+ var y = (x) => (() => (x))
362
+ module.exports = x({ ["ifDefined"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_directives_if_defined_js_76c6050d__.ifDefined) });
363
+
364
+ /***/ }),
365
+
366
+ /***/ 3770:
367
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
368
+
369
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
370
+ /* harmony export */ z: () => (/* binding */ uniqueID)
371
+ /* harmony export */ });
372
+ /**
373
+ * Returns a unique ID.
374
+ * @param {number} length
375
+ * @returns {string}
376
+ */
377
+ function uniqueID(length = 10) {
378
+ return `_${Math.random()
379
+ .toString(36)
380
+ .substr(2, length)}`;
381
+ }
382
+
383
+
384
+ /***/ }),
385
+
386
+ /***/ 8899:
387
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
388
+
389
+ var x = (y) => {
390
+ var x = {}; __webpack_require__.d(x, y); return x
391
+ }
392
+ var y = (x) => (() => (x))
393
+ module.exports = x({ ["customElement"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.customElement), ["property"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.property), ["query"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.query) });
394
+
395
+ /***/ })
396
+
397
+ /******/ });
398
+ /************************************************************************/
399
+ /******/ // The module cache
400
+ /******/ var __webpack_module_cache__ = {};
401
+ /******/
402
+ /******/ // The require function
403
+ /******/ function __webpack_require__(moduleId) {
404
+ /******/ // Check if module is in cache
405
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
406
+ /******/ if (cachedModule !== undefined) {
407
+ /******/ return cachedModule.exports;
408
+ /******/ }
409
+ /******/ // Create a new module (and put it into the cache)
410
+ /******/ var module = __webpack_module_cache__[moduleId] = {
411
+ /******/ // no module.id needed
412
+ /******/ // no module.loaded needed
413
+ /******/ exports: {}
414
+ /******/ };
415
+ /******/
416
+ /******/ // Execute the module function
417
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
418
+ /******/
419
+ /******/ // Return the exports of the module
420
+ /******/ return module.exports;
421
+ /******/ }
422
+ /******/
423
+ /************************************************************************/
424
+ /******/ /* webpack/runtime/define property getters */
425
+ /******/ (() => {
426
+ /******/ // define getter functions for harmony exports
427
+ /******/ __webpack_require__.d = (exports, definition) => {
428
+ /******/ for(var key in definition) {
429
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
430
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
431
+ /******/ }
432
+ /******/ }
433
+ /******/ };
434
+ /******/ })();
435
+ /******/
436
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
437
+ /******/ (() => {
438
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
439
+ /******/ })();
440
+ /******/
441
+ /************************************************************************/
442
+ var __webpack_exports__ = {};
443
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
444
+ /* harmony export */ T: () => (/* reexport safe */ _checkbox__WEBPACK_IMPORTED_MODULE_0__.T)
445
+ /* harmony export */ });
446
+ /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1702);
447
+
448
+
449
+ const __webpack_exports__TkCheckbox = __webpack_exports__.T;
450
+ export { __webpack_exports__TkCheckbox as TkCheckbox };
package/chip/chip.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import { LitElement } from "lit";
2
- declare class TkChip extends LitElement {
2
+ export declare class TkChip extends LitElement {
3
3
  static styles: import("lit").CSSResult;
4
- render(): import("lit-html").TemplateResult<1>;
4
+ render(): import("lit").TemplateResult<1>;
5
5
  }
6
6
  declare global {
7
7
  interface HTMLElementTagNameMap {
8
8
  "tk-chip": TkChip;
9
9
  }
10
10
  }
11
- export { TkChip };
package/chip/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./chip.js";
1
+ export * from "./chip";
package/chip/index.js CHANGED
@@ -1 +1,123 @@
1
- export { TkChip } from './chip.js';
1
+ import * as __WEBPACK_EXTERNAL_MODULE_lit__ from "lit";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__ from "lit/decorators.js";
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ 2927:
6
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7
+
8
+ var x = (y) => {
9
+ var x = {}; __webpack_require__.d(x, y); return x
10
+ }
11
+ var y = (x) => (() => (x))
12
+ module.exports = x({ ["LitElement"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.LitElement), ["css"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.css), ["html"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.html), ["unsafeCSS"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.unsafeCSS) });
13
+
14
+ /***/ }),
15
+
16
+ /***/ 3309:
17
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
18
+
19
+
20
+ // EXPORTS
21
+ __webpack_require__.d(__webpack_exports__, {
22
+ i: () => (/* binding */ TkChip)
23
+ });
24
+
25
+ // EXTERNAL MODULE: external "lit"
26
+ var external_lit_ = __webpack_require__(2927);
27
+ // EXTERNAL MODULE: external "lit/decorators.js"
28
+ var decorators_js_ = __webpack_require__(8899);
29
+ ;// ./tinkiet/chip/chip.scss
30
+ /* harmony default export */ const chip = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{z-index:var(--navbar-z-index, 100);--color: var(--primary);--text: var(--on-primary);position:relative;color:var(--text);transition:var(--nav-transition, background var(--transition-duration-fast, 120ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), transform var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), box-shadow var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));height:var(--navbar-height, 48px);padding:var(--navbar-padding, var(--spacing-s, 0.5rem));background:var(--color);display:flex;justify-content:space-between;box-sizing:border-box;flex-grow:1}:host([inverted]){--color: var(--on-primary);--text: var(--primary)}:host([fixed]){position:fixed;top:0;left:0;width:100%}:host([shadow]){box-shadow:var(--nav-elevation, 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15))}#left,#right,#title,::slotted([slot=left]),::slotted([slot=right]),::slotted([slot=title]){display:flex;align-items:center;height:100%}#title,::slotted([slot=title]){margin:var(--nav-title-margin, 0 0 0 var(--spacing-l, 1.25rem));font-size:var(--nav-title-font-size, var(--font-size-l, 1.25rem))}");
31
+ ;// ./tinkiet/chip/chip.ts
32
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
33
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
34
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
35
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
36
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
37
+ };
38
+
39
+
40
+
41
+ let TkChip = class TkChip extends external_lit_.LitElement {
42
+ render() {
43
+ return (0,external_lit_.html) `
44
+ <div class="chip"><slot></slot></div>
45
+ `;
46
+ }
47
+ };
48
+ TkChip.styles = (0,external_lit_.css) `
49
+ ${(0,external_lit_.unsafeCSS)(chip)}
50
+ `;
51
+ TkChip = __decorate([
52
+ (0,decorators_js_.customElement)("tk-chip")
53
+ ], TkChip);
54
+
55
+
56
+
57
+ /***/ }),
58
+
59
+ /***/ 8899:
60
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
61
+
62
+ var x = (y) => {
63
+ var x = {}; __webpack_require__.d(x, y); return x
64
+ }
65
+ var y = (x) => (() => (x))
66
+ module.exports = x({ ["customElement"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.customElement) });
67
+
68
+ /***/ })
69
+
70
+ /******/ });
71
+ /************************************************************************/
72
+ /******/ // The module cache
73
+ /******/ var __webpack_module_cache__ = {};
74
+ /******/
75
+ /******/ // The require function
76
+ /******/ function __webpack_require__(moduleId) {
77
+ /******/ // Check if module is in cache
78
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
79
+ /******/ if (cachedModule !== undefined) {
80
+ /******/ return cachedModule.exports;
81
+ /******/ }
82
+ /******/ // Create a new module (and put it into the cache)
83
+ /******/ var module = __webpack_module_cache__[moduleId] = {
84
+ /******/ // no module.id needed
85
+ /******/ // no module.loaded needed
86
+ /******/ exports: {}
87
+ /******/ };
88
+ /******/
89
+ /******/ // Execute the module function
90
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
91
+ /******/
92
+ /******/ // Return the exports of the module
93
+ /******/ return module.exports;
94
+ /******/ }
95
+ /******/
96
+ /************************************************************************/
97
+ /******/ /* webpack/runtime/define property getters */
98
+ /******/ (() => {
99
+ /******/ // define getter functions for harmony exports
100
+ /******/ __webpack_require__.d = (exports, definition) => {
101
+ /******/ for(var key in definition) {
102
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
103
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
104
+ /******/ }
105
+ /******/ }
106
+ /******/ };
107
+ /******/ })();
108
+ /******/
109
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
110
+ /******/ (() => {
111
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
112
+ /******/ })();
113
+ /******/
114
+ /************************************************************************/
115
+ var __webpack_exports__ = {};
116
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
117
+ /* harmony export */ i: () => (/* reexport safe */ _chip__WEBPACK_IMPORTED_MODULE_0__.i)
118
+ /* harmony export */ });
119
+ /* harmony import */ var _chip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3309);
120
+
121
+
122
+ const __webpack_exports__TkChip = __webpack_exports__.i;
123
+ export { __webpack_exports__TkChip as TkChip };