@deepfuture/dui-components 0.0.12 → 0.0.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.
Files changed (89) hide show
  1. package/_deprecated/center/center.js +2 -2
  2. package/_deprecated/hstack/hstack.js +79 -33
  3. package/_deprecated/page-inset/page-inset.js +104 -56
  4. package/_deprecated/vstack/vstack.js +61 -19
  5. package/accordion/accordion-item.js +217 -147
  6. package/accordion/accordion.js +214 -149
  7. package/alert-dialog/alert-dialog-close.js +2 -2
  8. package/alert-dialog/alert-dialog-popup.js +230 -166
  9. package/alert-dialog/alert-dialog-trigger.js +2 -2
  10. package/alert-dialog/alert-dialog.js +128 -73
  11. package/avatar/avatar.js +175 -115
  12. package/badge/badge.js +2 -2
  13. package/breadcrumb/breadcrumb-ellipsis.js +2 -2
  14. package/breadcrumb/breadcrumb-item.js +2 -2
  15. package/breadcrumb/breadcrumb-link.js +2 -2
  16. package/breadcrumb/breadcrumb-page.js +2 -2
  17. package/breadcrumb/breadcrumb-separator.js +2 -2
  18. package/breadcrumb/breadcrumb.js +2 -2
  19. package/button/button.js +109 -65
  20. package/calendar/calendar.js +368 -290
  21. package/checkbox/checkbox-group.js +146 -87
  22. package/checkbox/checkbox.js +232 -167
  23. package/collapsible/collapsible.js +210 -132
  24. package/combobox/combobox.js +318 -252
  25. package/command/command-empty.js +67 -25
  26. package/command/command-group.js +87 -47
  27. package/command/command-input.js +84 -44
  28. package/command/command-item.js +168 -124
  29. package/command/command-list.js +60 -18
  30. package/command/command-separator.js +2 -2
  31. package/command/command-shortcut.js +2 -2
  32. package/command/command.js +297 -232
  33. package/data-table/data-table.js +225 -153
  34. package/dialog/dialog-close.js +2 -2
  35. package/dialog/dialog-popup.js +247 -181
  36. package/dialog/dialog-trigger.js +2 -2
  37. package/dialog/dialog.js +128 -73
  38. package/dropzone/dropzone.js +310 -249
  39. package/icon/icon.js +2 -2
  40. package/input/input.js +204 -143
  41. package/link/link.js +62 -24
  42. package/menu/menu-item.js +66 -24
  43. package/menu/menu.js +189 -136
  44. package/menubar/menubar.js +142 -91
  45. package/number-field/number-field.js +277 -204
  46. package/package.json +2 -3
  47. package/popover/popover-close.js +2 -2
  48. package/popover/popover-popup.js +126 -76
  49. package/popover/popover-trigger.js +2 -2
  50. package/popover/popover.js +181 -120
  51. package/portal/portal.js +128 -86
  52. package/preview-card/preview-card-popup.js +114 -66
  53. package/preview-card/preview-card-trigger.js +2 -2
  54. package/preview-card/preview-card.js +211 -142
  55. package/progress/progress.js +91 -45
  56. package/radio/radio-group.js +153 -90
  57. package/radio/radio.js +137 -94
  58. package/scroll-area/scroll-area.js +382 -283
  59. package/select/select.js +260 -203
  60. package/separator/separator.js +60 -18
  61. package/sidebar/sidebar-content.js +2 -2
  62. package/sidebar/sidebar-footer.js +2 -2
  63. package/sidebar/sidebar-group-label.js +2 -2
  64. package/sidebar/sidebar-group.js +2 -2
  65. package/sidebar/sidebar-header.js +2 -2
  66. package/sidebar/sidebar-inset.js +2 -2
  67. package/sidebar/sidebar-menu-button.js +118 -74
  68. package/sidebar/sidebar-menu-item.js +2 -2
  69. package/sidebar/sidebar-menu.js +2 -2
  70. package/sidebar/sidebar-provider.js +202 -129
  71. package/sidebar/sidebar-separator.js +2 -2
  72. package/sidebar/sidebar-trigger.js +2 -2
  73. package/sidebar/sidebar.js +150 -85
  74. package/slider/slider.js +217 -159
  75. package/spinner/spinner.js +70 -28
  76. package/switch/switch.js +174 -111
  77. package/tabs/tab.js +89 -47
  78. package/tabs/tabs-indicator.js +2 -2
  79. package/tabs/tabs-list.js +92 -54
  80. package/tabs/tabs-panel.js +90 -44
  81. package/tabs/tabs.js +130 -71
  82. package/textarea/textarea.js +153 -95
  83. package/toggle/toggle-group.js +184 -125
  84. package/toggle/toggle.js +131 -76
  85. package/toolbar/toolbar.js +79 -33
  86. package/tooltip/tooltip-popup.js +108 -60
  87. package/tooltip/tooltip-trigger.js +93 -55
  88. package/tooltip/tooltip.js +225 -154
  89. package/trunc/trunc.js +78 -34
@@ -25,8 +25,8 @@ const styles = css `
25
25
  * @csspart root - The centering container element.
26
26
  */
27
27
  export class DuiCenter extends LitElement {
28
- static { this.tagName = "dui-center"; }
29
- static { this.styles = [base, styles]; }
28
+ static tagName = "dui-center";
29
+ static styles = [base, styles];
30
30
  render() {
31
31
  return html `
32
32
  <div part="root">
@@ -1,9 +1,37 @@
1
1
  /** Ported from original DUI: deep-future-app/app/client/components/dui/hstack */
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
3
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
4
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
5
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
6
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
7
+ var _, done = false;
8
+ for (var i = decorators.length - 1; i >= 0; i--) {
9
+ var context = {};
10
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
11
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
12
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
13
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
14
+ if (kind === "accessor") {
15
+ if (result === void 0) continue;
16
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
17
+ if (_ = accept(result.get)) descriptor.get = _;
18
+ if (_ = accept(result.set)) descriptor.set = _;
19
+ if (_ = accept(result.init)) initializers.unshift(_);
20
+ }
21
+ else if (_ = accept(result)) {
22
+ if (kind === "field") initializers.unshift(_);
23
+ else descriptor[key] = _;
24
+ }
25
+ }
26
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
27
+ done = true;
28
+ };
29
+ var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
30
+ var useValue = arguments.length > 2;
31
+ for (var i = 0; i < initializers.length; i++) {
32
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
33
+ }
34
+ return useValue ? value : void 0;
7
35
  };
8
36
  import { css, html, LitElement } from "lit";
9
37
  import { property } from "lit/decorators.js";
@@ -107,35 +135,53 @@ const styles = css `
107
135
  * @cssprop --hstack-align - Override align-items.
108
136
  * @cssprop --hstack-justify - Override justify-content.
109
137
  */
110
- export class DuiHstack extends LitElement {
111
- static { this.tagName = "dui-hstack"; }
112
- static { this.styles = [base, styles]; }
113
- #gap_accessor_storage = "4";
114
- /** Gap between stack items. Maps to space tokens. */
115
- get gap() { return this.#gap_accessor_storage; }
116
- set gap(value) { this.#gap_accessor_storage = value; }
117
- #align_accessor_storage = "center";
118
- /** Alignment of items on the cross axis. */
119
- get align() { return this.#align_accessor_storage; }
120
- set align(value) { this.#align_accessor_storage = value; }
121
- #justify_accessor_storage = "stretch";
122
- /** Justification of items on the main axis. */
123
- get justify() { return this.#justify_accessor_storage; }
124
- set justify(value) { this.#justify_accessor_storage = value; }
125
- render() {
126
- return html `
138
+ let DuiHstack = (() => {
139
+ let _classSuper = LitElement;
140
+ let _gap_decorators;
141
+ let _gap_initializers = [];
142
+ let _gap_extraInitializers = [];
143
+ let _align_decorators;
144
+ let _align_initializers = [];
145
+ let _align_extraInitializers = [];
146
+ let _justify_decorators;
147
+ let _justify_initializers = [];
148
+ let _justify_extraInitializers = [];
149
+ return class DuiHstack extends _classSuper {
150
+ static {
151
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
152
+ _gap_decorators = [property({ reflect: true })];
153
+ _align_decorators = [property({ reflect: true })];
154
+ _justify_decorators = [property({ reflect: true })];
155
+ __esDecorate(this, null, _gap_decorators, { kind: "accessor", name: "gap", static: false, private: false, access: { has: obj => "gap" in obj, get: obj => obj.gap, set: (obj, value) => { obj.gap = value; } }, metadata: _metadata }, _gap_initializers, _gap_extraInitializers);
156
+ __esDecorate(this, null, _align_decorators, { kind: "accessor", name: "align", static: false, private: false, access: { has: obj => "align" in obj, get: obj => obj.align, set: (obj, value) => { obj.align = value; } }, metadata: _metadata }, _align_initializers, _align_extraInitializers);
157
+ __esDecorate(this, null, _justify_decorators, { kind: "accessor", name: "justify", static: false, private: false, access: { has: obj => "justify" in obj, get: obj => obj.justify, set: (obj, value) => { obj.justify = value; } }, metadata: _metadata }, _justify_initializers, _justify_extraInitializers);
158
+ if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
159
+ }
160
+ static tagName = "dui-hstack";
161
+ static styles = [base, styles];
162
+ #gap_accessor_storage = __runInitializers(this, _gap_initializers, "4");
163
+ /** Gap between stack items. Maps to space tokens. */
164
+ get gap() { return this.#gap_accessor_storage; }
165
+ set gap(value) { this.#gap_accessor_storage = value; }
166
+ #align_accessor_storage = (__runInitializers(this, _gap_extraInitializers), __runInitializers(this, _align_initializers, "center"));
167
+ /** Alignment of items on the cross axis. */
168
+ get align() { return this.#align_accessor_storage; }
169
+ set align(value) { this.#align_accessor_storage = value; }
170
+ #justify_accessor_storage = (__runInitializers(this, _align_extraInitializers), __runInitializers(this, _justify_initializers, "stretch"));
171
+ /** Justification of items on the main axis. */
172
+ get justify() { return this.#justify_accessor_storage; }
173
+ set justify(value) { this.#justify_accessor_storage = value; }
174
+ render() {
175
+ return html `
127
176
  <div part="root">
128
177
  <slot></slot>
129
178
  </div>
130
179
  `;
131
- }
132
- }
133
- __decorate([
134
- property({ reflect: true })
135
- ], DuiHstack.prototype, "gap", null);
136
- __decorate([
137
- property({ reflect: true })
138
- ], DuiHstack.prototype, "align", null);
139
- __decorate([
140
- property({ reflect: true })
141
- ], DuiHstack.prototype, "justify", null);
180
+ }
181
+ constructor() {
182
+ super(...arguments);
183
+ __runInitializers(this, _justify_extraInitializers);
184
+ }
185
+ };
186
+ })();
187
+ export { DuiHstack };
@@ -1,9 +1,37 @@
1
1
  /** Ported from original DUI: deep-future-app/app/client/components/dui/page-inset */
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
3
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
4
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
5
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
6
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
7
+ var _, done = false;
8
+ for (var i = decorators.length - 1; i >= 0; i--) {
9
+ var context = {};
10
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
11
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
12
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
13
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
14
+ if (kind === "accessor") {
15
+ if (result === void 0) continue;
16
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
17
+ if (_ = accept(result.get)) descriptor.get = _;
18
+ if (_ = accept(result.set)) descriptor.set = _;
19
+ if (_ = accept(result.init)) initializers.unshift(_);
20
+ }
21
+ else if (_ = accept(result)) {
22
+ if (kind === "field") initializers.unshift(_);
23
+ else descriptor[key] = _;
24
+ }
25
+ }
26
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
27
+ done = true;
28
+ };
29
+ var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
30
+ var useValue = arguments.length > 2;
31
+ for (var i = 0; i < initializers.length; i++) {
32
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
33
+ }
34
+ return useValue ? value : void 0;
7
35
  };
8
36
  import { css, html, LitElement } from "lit";
9
37
  import { property } from "lit/decorators.js";
@@ -44,60 +72,80 @@ const styles = css `
44
72
  * @cssprop --page-inset-max-width - Max width of inner content (default: 48rem).
45
73
  * @cssprop --page-inset-min-width - Min width of inner content (default: auto).
46
74
  */
47
- export class DuiPageInset extends LitElement {
48
- static { this.tagName = "dui-page-inset"; }
49
- static { this.styles = [base, styles]; }
50
- #maxWidth_accessor_storage;
51
- /** Maximum width of the inner content area. Overrides --page-inset-max-width. */
52
- get maxWidth() { return this.#maxWidth_accessor_storage; }
53
- set maxWidth(value) { this.#maxWidth_accessor_storage = value; }
54
- #minWidth_accessor_storage;
55
- /** Minimum width of the inner content area. Overrides --page-inset-min-width. */
56
- get minWidth() { return this.#minWidth_accessor_storage; }
57
- set minWidth(value) { this.#minWidth_accessor_storage = value; }
58
- #padX_accessor_storage;
59
- /** Horizontal padding. Overrides --page-inset-pad-x. */
60
- get padX() { return this.#padX_accessor_storage; }
61
- set padX(value) { this.#padX_accessor_storage = value; }
62
- #padY_accessor_storage;
63
- /** Vertical padding. Overrides --page-inset-pad-y. */
64
- get padY() { return this.#padY_accessor_storage; }
65
- set padY(value) { this.#padY_accessor_storage = value; }
66
- #setOrRemove(prop, value) {
67
- if (value)
68
- this.style.setProperty(prop, value);
69
- else
70
- this.style.removeProperty(prop);
71
- }
72
- willUpdate(changed) {
73
- if (changed.has("maxWidth"))
74
- this.#setOrRemove("--page-inset-max-width", this.maxWidth);
75
- if (changed.has("minWidth"))
76
- this.#setOrRemove("--page-inset-min-width", this.minWidth);
77
- if (changed.has("padX"))
78
- this.#setOrRemove("--page-inset-pad-x", this.padX);
79
- if (changed.has("padY"))
80
- this.#setOrRemove("--page-inset-pad-y", this.padY);
81
- }
82
- render() {
83
- return html `
75
+ let DuiPageInset = (() => {
76
+ let _classSuper = LitElement;
77
+ let _maxWidth_decorators;
78
+ let _maxWidth_initializers = [];
79
+ let _maxWidth_extraInitializers = [];
80
+ let _minWidth_decorators;
81
+ let _minWidth_initializers = [];
82
+ let _minWidth_extraInitializers = [];
83
+ let _padX_decorators;
84
+ let _padX_initializers = [];
85
+ let _padX_extraInitializers = [];
86
+ let _padY_decorators;
87
+ let _padY_initializers = [];
88
+ let _padY_extraInitializers = [];
89
+ return class DuiPageInset extends _classSuper {
90
+ static {
91
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
92
+ _maxWidth_decorators = [property({ attribute: "max-width" })];
93
+ _minWidth_decorators = [property({ attribute: "min-width" })];
94
+ _padX_decorators = [property({ attribute: "pad-x" })];
95
+ _padY_decorators = [property({ attribute: "pad-y" })];
96
+ __esDecorate(this, null, _maxWidth_decorators, { kind: "accessor", name: "maxWidth", static: false, private: false, access: { has: obj => "maxWidth" in obj, get: obj => obj.maxWidth, set: (obj, value) => { obj.maxWidth = value; } }, metadata: _metadata }, _maxWidth_initializers, _maxWidth_extraInitializers);
97
+ __esDecorate(this, null, _minWidth_decorators, { kind: "accessor", name: "minWidth", static: false, private: false, access: { has: obj => "minWidth" in obj, get: obj => obj.minWidth, set: (obj, value) => { obj.minWidth = value; } }, metadata: _metadata }, _minWidth_initializers, _minWidth_extraInitializers);
98
+ __esDecorate(this, null, _padX_decorators, { kind: "accessor", name: "padX", static: false, private: false, access: { has: obj => "padX" in obj, get: obj => obj.padX, set: (obj, value) => { obj.padX = value; } }, metadata: _metadata }, _padX_initializers, _padX_extraInitializers);
99
+ __esDecorate(this, null, _padY_decorators, { kind: "accessor", name: "padY", static: false, private: false, access: { has: obj => "padY" in obj, get: obj => obj.padY, set: (obj, value) => { obj.padY = value; } }, metadata: _metadata }, _padY_initializers, _padY_extraInitializers);
100
+ if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
101
+ }
102
+ static tagName = "dui-page-inset";
103
+ static styles = [base, styles];
104
+ #maxWidth_accessor_storage = __runInitializers(this, _maxWidth_initializers, void 0);
105
+ /** Maximum width of the inner content area. Overrides --page-inset-max-width. */
106
+ get maxWidth() { return this.#maxWidth_accessor_storage; }
107
+ set maxWidth(value) { this.#maxWidth_accessor_storage = value; }
108
+ #minWidth_accessor_storage = (__runInitializers(this, _maxWidth_extraInitializers), __runInitializers(this, _minWidth_initializers, void 0));
109
+ /** Minimum width of the inner content area. Overrides --page-inset-min-width. */
110
+ get minWidth() { return this.#minWidth_accessor_storage; }
111
+ set minWidth(value) { this.#minWidth_accessor_storage = value; }
112
+ #padX_accessor_storage = (__runInitializers(this, _minWidth_extraInitializers), __runInitializers(this, _padX_initializers, void 0));
113
+ /** Horizontal padding. Overrides --page-inset-pad-x. */
114
+ get padX() { return this.#padX_accessor_storage; }
115
+ set padX(value) { this.#padX_accessor_storage = value; }
116
+ #padY_accessor_storage = (__runInitializers(this, _padX_extraInitializers), __runInitializers(this, _padY_initializers, void 0));
117
+ /** Vertical padding. Overrides --page-inset-pad-y. */
118
+ get padY() { return this.#padY_accessor_storage; }
119
+ set padY(value) { this.#padY_accessor_storage = value; }
120
+ #setOrRemove(prop, value) {
121
+ if (value)
122
+ this.style.setProperty(prop, value);
123
+ else
124
+ this.style.removeProperty(prop);
125
+ }
126
+ willUpdate(changed) {
127
+ if (changed.has("maxWidth"))
128
+ this.#setOrRemove("--page-inset-max-width", this.maxWidth);
129
+ if (changed.has("minWidth"))
130
+ this.#setOrRemove("--page-inset-min-width", this.minWidth);
131
+ if (changed.has("padX"))
132
+ this.#setOrRemove("--page-inset-pad-x", this.padX);
133
+ if (changed.has("padY"))
134
+ this.#setOrRemove("--page-inset-pad-y", this.padY);
135
+ }
136
+ render() {
137
+ return html `
84
138
  <div part="root">
85
139
  <div part="inner">
86
140
  <slot></slot>
87
141
  </div>
88
142
  </div>
89
143
  `;
90
- }
91
- }
92
- __decorate([
93
- property({ attribute: "max-width" })
94
- ], DuiPageInset.prototype, "maxWidth", null);
95
- __decorate([
96
- property({ attribute: "min-width" })
97
- ], DuiPageInset.prototype, "minWidth", null);
98
- __decorate([
99
- property({ attribute: "pad-x" })
100
- ], DuiPageInset.prototype, "padX", null);
101
- __decorate([
102
- property({ attribute: "pad-y" })
103
- ], DuiPageInset.prototype, "padY", null);
144
+ }
145
+ constructor() {
146
+ super(...arguments);
147
+ __runInitializers(this, _padY_extraInitializers);
148
+ }
149
+ };
150
+ })();
151
+ export { DuiPageInset };
@@ -1,9 +1,37 @@
1
1
  /** Ported from original DUI: deep-future-app/app/client/components/dui/vstack */
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
3
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
4
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
5
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
6
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
7
+ var _, done = false;
8
+ for (var i = decorators.length - 1; i >= 0; i--) {
9
+ var context = {};
10
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
11
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
12
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
13
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
14
+ if (kind === "accessor") {
15
+ if (result === void 0) continue;
16
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
17
+ if (_ = accept(result.get)) descriptor.get = _;
18
+ if (_ = accept(result.set)) descriptor.set = _;
19
+ if (_ = accept(result.init)) initializers.unshift(_);
20
+ }
21
+ else if (_ = accept(result)) {
22
+ if (kind === "field") initializers.unshift(_);
23
+ else descriptor[key] = _;
24
+ }
25
+ }
26
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
27
+ done = true;
28
+ };
29
+ var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
30
+ var useValue = arguments.length > 2;
31
+ for (var i = 0; i < initializers.length; i++) {
32
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
33
+ }
34
+ return useValue ? value : void 0;
7
35
  };
8
36
  import { css, html, LitElement } from "lit";
9
37
  import { property } from "lit/decorators.js";
@@ -63,21 +91,35 @@ const styles = css `
63
91
  * @csspart root - The stack container.
64
92
  * @cssprop --vstack-gap - Override gap between items.
65
93
  */
66
- export class DuiVstack extends LitElement {
67
- static { this.tagName = "dui-vstack"; }
68
- static { this.styles = [base, styles]; }
69
- #gap_accessor_storage = "4";
70
- /** Gap between stack items. Maps to space tokens. */
71
- get gap() { return this.#gap_accessor_storage; }
72
- set gap(value) { this.#gap_accessor_storage = value; }
73
- render() {
74
- return html `
94
+ let DuiVstack = (() => {
95
+ let _classSuper = LitElement;
96
+ let _gap_decorators;
97
+ let _gap_initializers = [];
98
+ let _gap_extraInitializers = [];
99
+ return class DuiVstack extends _classSuper {
100
+ static {
101
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
102
+ _gap_decorators = [property({ reflect: true })];
103
+ __esDecorate(this, null, _gap_decorators, { kind: "accessor", name: "gap", static: false, private: false, access: { has: obj => "gap" in obj, get: obj => obj.gap, set: (obj, value) => { obj.gap = value; } }, metadata: _metadata }, _gap_initializers, _gap_extraInitializers);
104
+ if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
105
+ }
106
+ static tagName = "dui-vstack";
107
+ static styles = [base, styles];
108
+ #gap_accessor_storage = __runInitializers(this, _gap_initializers, "4");
109
+ /** Gap between stack items. Maps to space tokens. */
110
+ get gap() { return this.#gap_accessor_storage; }
111
+ set gap(value) { this.#gap_accessor_storage = value; }
112
+ render() {
113
+ return html `
75
114
  <div part="root">
76
115
  <slot></slot>
77
116
  </div>
78
117
  `;
79
- }
80
- }
81
- __decorate([
82
- property({ reflect: true })
83
- ], DuiVstack.prototype, "gap", null);
118
+ }
119
+ constructor() {
120
+ super(...arguments);
121
+ __runInitializers(this, _gap_extraInitializers);
122
+ }
123
+ };
124
+ })();
125
+ export { DuiVstack };