@mono-lit/helper 0.0.8 → 0.0.10

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 (161) hide show
  1. package/dist/accordion-core-DaNyPWRr.js +277 -0
  2. package/dist/alert-core-DWtHbX_-.js +134 -0
  3. package/dist/breadcrumb-list-core-Dh68T8Cf.js +747 -0
  4. package/dist/{mono-button-CLkHg3WW.js → button-core-DerXg84Q.js} +3 -276
  5. package/dist/button-dropdown-core-DKYEOyjy.js +654 -0
  6. package/dist/button-utils-D5-66M02.js +63 -0
  7. package/dist/card-utils-l80qAmrN.js +312 -0
  8. package/dist/chart-core-DV7hD3ZY.js +801 -0
  9. package/dist/checkbox-utils-DKdrhAzF.js +337 -0
  10. package/dist/chip-utils-DpRrd7Zj.js +403 -0
  11. package/dist/{data-source-controller-C6C4ej_M.js → data-source-controller-DS_JLrmS.js} +1 -1
  12. package/dist/{data-source-options-fxT5QIX4.js → data-source-options-DJUNU26C.js} +6 -6
  13. package/dist/{data-source-read-BL266IW0.js → data-source-read-uKJpRAzx.js} +2 -2
  14. package/dist/date-core-CyuSyvvG.js +734 -0
  15. package/dist/drawer-core-DbFWvNln.js +759 -0
  16. package/dist/dropdown-core-BCH1pK14.js +511 -0
  17. package/dist/dropdown-table-core-SfHUJVFq.js +1342 -0
  18. package/dist/export.js +1 -1
  19. package/dist/{field-path-BabiMrrA.js → field-path-DK2VBWHl.js} +1 -1
  20. package/dist/field-tooltip.css_raw-DVblekCl.js +5 -0
  21. package/dist/{field-validation.css_raw-Cx6SGrfP.js → field-validation.css_raw-BU7C6173.js} +1 -170
  22. package/dist/file-upload-core-Cz_dBQMx.js +624 -0
  23. package/dist/filter-builder-core-DyWjbBP7.js +381 -0
  24. package/dist/{filter-builder-B6Y2mmbM.js → filter-builder-vbqIuPhX.js} +1 -1
  25. package/dist/{filter-eval-ChDSaAUH.js → filter-eval-CqeBnMYh.js} +1 -1
  26. package/dist/{filter-odata-Bi27XUpQ.js → filter-odata-GsczYKNC.js} +1 -1
  27. package/dist/{hydration-flush-BaE9gN3C.js → hydration-flush-Volt9X7Q.js} +2 -1071
  28. package/dist/index.js +11 -11
  29. package/dist/{index.node-CLqE8F8P.js → index.node-Csy9zrr1.js} +4 -4
  30. package/dist/index.node.js +11 -11
  31. package/dist/input-utils-BglY-k0H.js +1145 -0
  32. package/dist/menu-core-DkAYuCZ2.js +831 -0
  33. package/dist/modal-core-CSBSPN_m.js +844 -0
  34. package/dist/mono-button-DVvZ03P-.js +280 -0
  35. package/dist/{mono-button.shadow-DqZMpcqY.js → mono-button.shadow-BANxMGln.js} +6 -594
  36. package/dist/{mono-data-chart-NKPdAgVq.js → mono-data-chart-ChF4J9RT.js} +6 -6
  37. package/dist/{mono-data-dropdown-DUXo_jxd.js → mono-data-dropdown-Bgj2PDfm.js} +1 -1
  38. package/dist/{mono-data-grid-Bb00QM72.js → mono-data-grid-DJkp96N-.js} +346 -51
  39. package/dist/{mono-event-BPku9HpS.js → mono-event-CAZf0F_k.js} +14 -9
  40. package/dist/{mono-form-controller-BrA10erm.js → mono-form-controller-DxZLvyg6.js} +2 -1
  41. package/dist/mono-table-checkbox-core-BKOMx8R5.js +5288 -0
  42. package/dist/nav-core-B5qU2dzn.js +225 -0
  43. package/dist/{normalize-error-D93O4q8g.js → normalize-error-BEcd1tmS.js} +2 -2
  44. package/dist/otp-core-DXg3vFLh.js +758 -0
  45. package/dist/radio-utils-Dk9Tl1jz.js +319 -0
  46. package/dist/rich-text-editor-core-Ddd_QaLn.js +1280 -0
  47. package/dist/select-utils-BgArYHk8.js +2140 -0
  48. package/dist/sidebar-core-CD6txDo3.js +583 -0
  49. package/dist/slider-core-vcWr321-.js +1014 -0
  50. package/dist/src/components/dropdown-table/dropdown-table-core.d.ts +2 -2
  51. package/dist/src/components/dropdown-table/dropdown-table-types.d.ts +1 -1
  52. package/dist/src/components/dropdown-table/index.d.ts +1 -1
  53. package/dist/src/components/dropdown-table/index.shadow.d.ts +1 -1
  54. package/dist/src/components/dropdown-table/mono-data-dropdown.d.ts +1 -1
  55. package/dist/src/components/form/form-types.d.ts +9 -3
  56. package/dist/src/components/input/input-core.d.ts +1 -1
  57. package/dist/src/components/input/input-types.d.ts +1 -1
  58. package/dist/src/components/otp/otp-core.d.ts +1 -1
  59. package/dist/src/components/select/select-core.d.ts +1 -1
  60. package/dist/src/components/select/select-types.d.ts +1 -1
  61. package/dist/src/components/slider/slider-core.d.ts +1 -1
  62. package/dist/src/components/slider/slider-types.d.ts +1 -1
  63. package/dist/src/components/table/filter-suggestion.d.ts +171 -0
  64. package/dist/src/components/table/index.d.ts +5 -4
  65. package/dist/src/components/table/index.shadow.d.ts +5 -4
  66. package/dist/src/components/table/mono-data-grid.d.ts +58 -3
  67. package/dist/src/components/table/mono-table-empty-core.d.ts +37 -0
  68. package/dist/src/components/table/mono-table-search-core.d.ts +22 -3
  69. package/dist/src/components/table/table-types.d.ts +74 -4
  70. package/dist/src/components/tag-input/tag-input-core.d.ts +1 -1
  71. package/dist/src/components/tag-input/tag-input-types.d.ts +1 -1
  72. package/dist/src/components/textarea/textarea-core.d.ts +1 -1
  73. package/dist/src/composables/mono-event.d.ts +7 -1
  74. package/dist/src/entries/index.d.ts +8 -6
  75. package/dist/src/entries/index.node.d.ts +8 -6
  76. package/dist/src/search/index.d.ts +1 -1
  77. package/dist/src/utils/group-count.d.ts +36 -0
  78. package/dist/switch-utils-CTZ4id2V.js +338 -0
  79. package/dist/tabs-core-r5-B8k_N.js +317 -0
  80. package/dist/tag-input-utils-D2JA90DQ.js +3060 -0
  81. package/dist/textarea-utils-VU1KeXm8.js +821 -0
  82. package/dist/ui/accordion.js +2 -274
  83. package/dist/ui/alert.js +2 -131
  84. package/dist/ui/breadcrumb.js +4 -745
  85. package/dist/ui/button-dropdown.js +4 -652
  86. package/dist/ui/button.js +2 -63
  87. package/dist/ui/card.js +2 -310
  88. package/dist/ui/chart.js +4 -800
  89. package/dist/ui/checkbox.js +4 -335
  90. package/dist/ui/chip.js +4 -402
  91. package/dist/ui/date.js +3 -732
  92. package/dist/ui/drawer.js +3 -757
  93. package/dist/ui/dropdown-table.js +5 -1341
  94. package/dist/ui/dropdown.js +4 -509
  95. package/dist/ui/file-upload.js +3 -622
  96. package/dist/ui/filter.js +5 -380
  97. package/dist/ui/form.js +1 -1
  98. package/dist/ui/index.css +130 -5
  99. package/dist/ui/input.js +3 -1141
  100. package/dist/ui/menu.js +4 -828
  101. package/dist/ui/modal.js +4 -843
  102. package/dist/ui/nav.js +4 -223
  103. package/dist/ui/otp.js +4 -756
  104. package/dist/ui/radio.js +4 -317
  105. package/dist/ui/rich-text-editor.js +4 -1278
  106. package/dist/ui/select.js +5 -2138
  107. package/dist/ui/shadow/accordion.js +4 -273
  108. package/dist/ui/shadow/alert.js +4 -130
  109. package/dist/ui/shadow/breadcrumb.js +5 -744
  110. package/dist/ui/shadow/button-dropdown.js +6 -652
  111. package/dist/ui/shadow/button.js +3 -63
  112. package/dist/ui/shadow/card.js +4 -309
  113. package/dist/ui/shadow/chart.js +6 -1576
  114. package/dist/ui/shadow/checkbox.js +4 -334
  115. package/dist/ui/shadow/chip.js +4 -396
  116. package/dist/ui/shadow/date.js +7 -731
  117. package/dist/ui/shadow/drawer.js +4 -756
  118. package/dist/ui/shadow/dropdown-table.js +8 -1762
  119. package/dist/ui/shadow/dropdown.js +4 -508
  120. package/dist/ui/shadow/file-upload.js +4 -620
  121. package/dist/ui/shadow/filter.js +7 -379
  122. package/dist/ui/shadow/input.js +6 -1140
  123. package/dist/ui/shadow/menu.js +5 -828
  124. package/dist/ui/shadow/modal.js +6 -1063
  125. package/dist/ui/shadow/nav.js +5 -223
  126. package/dist/ui/shadow/otp.js +6 -754
  127. package/dist/ui/shadow/radio.js +4 -316
  128. package/dist/ui/shadow/rich-text-editor.js +4 -1276
  129. package/dist/ui/shadow/select.js +6 -2136
  130. package/dist/ui/shadow/sidebar.js +5 -581
  131. package/dist/ui/shadow/slider.js +5 -1010
  132. package/dist/ui/shadow/switch.js +4 -335
  133. package/dist/ui/shadow/table.js +10 -4501
  134. package/dist/ui/shadow/tabs.js +6 -315
  135. package/dist/ui/shadow/tag-input.js +7 -3057
  136. package/dist/ui/shadow/textarea.js +6 -817
  137. package/dist/ui/sidebar.js +3 -581
  138. package/dist/ui/slider.js +4 -1012
  139. package/dist/ui/switch.js +4 -336
  140. package/dist/ui/table.js +9 -4502
  141. package/dist/ui/tabs.js +4 -315
  142. package/dist/ui/tag-input.js +5 -3058
  143. package/dist/ui/textarea.js +4 -819
  144. package/dist/vue.d.ts +3 -2
  145. package/package.json +3 -3
  146. package/dist/chip-strip-bNfLn52Z.js +0 -215
  147. package/dist/data-source-controller-Dx6IQ2CN.js +0 -243
  148. package/dist/data-source-options-BM4r4PRw.js +0 -558
  149. package/dist/data-source-read-HyBCRg1t.js +0 -242
  150. package/dist/excel-BXzr3uI1.js +0 -784
  151. package/dist/export-ixRdCS2y.js +0 -2388
  152. package/dist/field-tooltip-addon-CWCp19mJ.js +0 -702
  153. package/dist/field-tooltip.css_raw-U5UeTa2d.js +0 -269
  154. package/dist/filter-builder-C0T3pMx2.js +0 -208
  155. package/dist/form-control-core-BbiACMtL.js +0 -226
  156. package/dist/icon-ClxnYhBG.js +0 -19
  157. package/dist/import-Dc4eXC02.js +0 -612
  158. package/dist/light-slots-_no0r2Z-.js +0 -246
  159. package/dist/markdown-uGlE_OfJ.js +0 -20191
  160. package/dist/mono-data-grid-Bkr-e1-i.js +0 -4043
  161. package/dist/normalize-error-BmLbgANw.js +0 -1048
@@ -1,298 +1,10 @@
1
- import { a as __decorate, c as defineHybridPropAlias, f as customElement, i as withShadowUtilityStyles, l as defineHybridPropAliases, r as toShadowCss, s as booleanStringConverter, t as flushSsrHydration } from "../../hydration-flush-BaE9gN3C.js";
2
- import { t as dispatchMonoEvent } from "../../mono-event-BPku9HpS.js";
3
- import { t as MonoFormControlCore } from "../../form-control-core-BbiACMtL.js";
1
+ import { t as customElement } from "../../mono-element-CKcT0rwv.js";
2
+ import { t as __decorate } from "../../decorate-DbYFpi8R.js";
3
+ import { n as validateCheckboxProps, r as MonoCheckboxCore, t as generateCheckboxAttributes } from "../../checkbox-utils-DKdrhAzF.js";
4
+ import { i as withShadowUtilityStyles, r as toShadowCss, t as flushSsrHydration } from "../../hydration-flush-Volt9X7Q.js";
4
5
  import { t as checkbox_css_raw_default } from "../../checkbox.css_raw-AYtSbUtY.js";
5
6
  import { LitElement, html, isServer, nothing, unsafeCSS } from "lit";
6
- import { property, state } from "lit/decorators.js";
7
- import { ifDefined } from "lit/directives/if-defined.js";
8
7
 
9
- //#region src/components/checkbox/checkbox-core.ts
10
- /**
11
- * `MonoCheckboxCore` — all render-mode-agnostic logic for `mono-checkbox`:
12
- * reactive props (incl. SSR boolean coercion), hybrid aliases, camelCase
13
- * attribute fallbacks, the `modelValue`↔`checked` sync, class computation,
14
- * change interactivity (`mno-change`), `focus`/`blur`, AND the shared `render()`
15
- * skeleton (`<label><input><box></box><labelBlock></label>`). The slot-bearing
16
- * regions are two overridable hooks — `_renderCustomIcon()` / `_renderLabelBlock()`
17
- * — that default to the light build's `[data-mono-slot]` placeholders; the shadow
18
- * build overrides them with native `<slot>` (mirrors `mono-accordion`).
19
- *
20
- * SSR-safe: no `document`/`window` access; `focus`/`blur` query `this.renderRoot`.
21
- */
22
- const MonoCheckboxCore = (superClass) => {
23
- class MonoCheckboxCoreClass extends MonoFormControlCore(superClass) {
24
- constructor(...args) {
25
- super(...args);
26
- this.size = "md";
27
- this.color = "primary";
28
- this.modelValue = false;
29
- this.checked = false;
30
- this.disabled = false;
31
- this.indeterminate = false;
32
- this.loading = false;
33
- this.label = "";
34
- this.sublabel = "";
35
- this.value = "";
36
- this.name = "";
37
- this.cssClass = {};
38
- this.cssClassName = "";
39
- this._hasIcon = false;
40
- this._hasIndeterminateIcon = false;
41
- this._hasLabelSlotState = false;
42
- this._hasDescriptionSlotState = false;
43
- defineHybridPropAliases(this, [
44
- "modelValue",
45
- "ariaLabelText",
46
- "cssClass"
47
- ]);
48
- defineHybridPropAlias(this, "description", "sublabel");
49
- }
50
- static get observedAttributes() {
51
- return [
52
- ...super.observedAttributes ?? [],
53
- "modelvalue",
54
- "arialabeltext",
55
- "description",
56
- "css-class",
57
- "cssclass"
58
- ];
59
- }
60
- attributeChangedCallback(name, oldValue, newValue) {
61
- super.attributeChangedCallback(name, oldValue, newValue);
62
- if (oldValue === newValue) return;
63
- if (name === "modelvalue") {
64
- this.modelValue = this._toBoolean(newValue);
65
- return;
66
- }
67
- if (name === "arialabeltext") {
68
- this.ariaLabelText = newValue ?? void 0;
69
- return;
70
- }
71
- if (name === "description") {
72
- this.sublabel = newValue ?? "";
73
- return;
74
- }
75
- if (name === "css-class" || name === "cssclass") this.cssClassName = newValue ?? "";
76
- }
77
- willUpdate(changed) {
78
- for (const key of [
79
- "modelValue",
80
- "checked",
81
- "disabled",
82
- "indeterminate"
83
- ]) if (typeof this[key] === "string") this[key] = this._toBoolean(this[key]);
84
- if (changed.has("modelValue") && this.checked !== this.modelValue) this.checked = this.modelValue;
85
- if (changed.has("checked") && this.modelValue !== this.checked) this.modelValue = this.checked;
86
- super.willUpdate?.(changed);
87
- }
88
- _toBoolean(value) {
89
- if (typeof value === "boolean") return value;
90
- if (typeof value === "string") {
91
- const normalized = value.toLowerCase().trim();
92
- return normalized === "" || normalized === "true";
93
- }
94
- return Boolean(value);
95
- }
96
- _cls(base, key) {
97
- const extra = this.cssClass?.[key];
98
- return extra ? `${base} ${extra}` : base;
99
- }
100
- get _wrapperClasses() {
101
- return [
102
- "mono-checkbox",
103
- this.size,
104
- this.color,
105
- this.disabled ? "disabled" : "",
106
- this.checked ? "mono-checkbox-checked" : "",
107
- this.indeterminate ? "mono-checkbox-indeterminate" : "",
108
- this.cssClassName,
109
- this.cssClass?.root
110
- ].filter(Boolean).join(" ");
111
- }
112
- get _inputClasses() {
113
- return this._cls("mono-checkbox-input", "input");
114
- }
115
- get _boxClasses() {
116
- return [
117
- this._cls("mono-checkbox-box", "box"),
118
- this.size,
119
- this._hasIcon || this.loading ? "has-custom-icon" : "",
120
- this._hasIndeterminateIcon || this.loading ? "has-custom-indeterminate-icon" : ""
121
- ].filter(Boolean).join(" ");
122
- }
123
- _hasLabelContent() {
124
- return Boolean(this.label) || this._hasLabelSlotState;
125
- }
126
- _hasDescriptionContent() {
127
- return Boolean(this.sublabel) || this._hasDescriptionSlotState;
128
- }
129
- _createModelDetail(args) {
130
- return {
131
- modelValue: args.modelValue,
132
- currentValue: args.modelValue,
133
- oldValue: args.oldValue,
134
- checked: args.modelValue,
135
- value: this.value,
136
- name: this.name,
137
- sourceEvent: args.sourceEvent
138
- };
139
- }
140
- _emitChange(detail) {
141
- dispatchMonoEvent(this, "change", detail);
142
- }
143
- _handleChange(event) {
144
- if (this.disabled) return;
145
- const input = event.currentTarget;
146
- const oldValue = this.modelValue;
147
- const nextValue = input.checked;
148
- if (this.indeterminate) this.indeterminate = false;
149
- this.checked = nextValue;
150
- this.modelValue = nextValue;
151
- const detail = this._createModelDetail({
152
- modelValue: nextValue,
153
- oldValue,
154
- sourceEvent: event
155
- });
156
- this._emitChange(detail);
157
- }
158
- /**
159
- * The `loading` spinner, shown in place of the tick/dash. Light uses the global
160
- * icon utility class; the shadow build overrides this with inline SVG, which
161
- * page-level CSS cannot reach.
162
- */
163
- _renderLoadingIcon() {
164
- return html`<span class="mono-icon i-mdi-loading mono-checkbox-spinner" mono-spinner aria-hidden="true"></span>`;
165
- }
166
- /** Light-DOM custom icon (data-mono-slot). Shadow build overrides with `<slot>`. */
167
- _renderCustomIcon() {
168
- if (this.indeterminate && this._hasIndeterminateIcon) return html`
169
- <span
170
- class=${[this._cls("mono-checkbox-indeterminate-icon", "indeterminateIcon"), this.size].filter(Boolean).join(" ")}
171
- mono-indeterminate-icon
172
- data-mono-slot="indeterminate-icon"
173
- ></span>
174
- `;
175
- if (this.checked && this._hasIcon) return html`
176
- <span
177
- class=${[this._cls("mono-checkbox-icon", "icon"), this.size].filter(Boolean).join(" ")}
178
- mono-icon
179
- data-mono-slot="icon"
180
- ></span>
181
- `;
182
- return nothing;
183
- }
184
- /** Light-DOM label block (data-mono-slot). Shadow build overrides with `<slot>`. */
185
- _renderLabelBlock() {
186
- if (!this._hasLabelContent() && !this._hasDescriptionContent()) return nothing;
187
- return html`
188
- <span class=${this._cls("mono-checkbox-label", "label")} mono-label>
189
- ${this._hasLabelContent() ? html`
190
- <span class=${this._cls("mono-checkbox-label-text", "labelText")} mono-label-text>
191
- ${this._hasLabelSlotState ? html`<span data-mono-slot="label"></span>` : this.label}
192
- </span>
193
- ` : nothing}
194
-
195
- ${this._hasDescriptionContent() ? html`
196
- <span class=${this._cls("mono-checkbox-label-description", "description")} mono-description>
197
- ${this._hasDescriptionSlotState ? html`<span data-mono-slot="description"></span>` : this.sublabel}
198
- </span>
199
- ` : nothing}
200
- </span>
201
- `;
202
- }
203
- render() {
204
- const ariaLabel = this.ariaLabelText || this.label || (this._hasLabelSlotState ? "Checkbox" : void 0);
205
- return html`
206
- <label
207
- class=${this._wrapperClasses}
208
- mono-checkbox
209
- mono-size=${this.size === "md" ? nothing : this.size}
210
- mono-color=${this.color === "primary" ? nothing : this.color}
211
- ?mono-checked=${this.checked}
212
- ?mono-indeterminate=${this.indeterminate}
213
- ?mono-disabled=${this.disabled}
214
- ?mono-loading=${this.loading}
215
- >
216
- <input
217
- class=${this._inputClasses}
218
- mono-input
219
- type="checkbox"
220
- .checked=${this.checked}
221
- .indeterminate=${this.indeterminate}
222
- .value=${this.value}
223
- name=${ifDefined(this.name || void 0)}
224
- ?disabled=${this.disabled || this.loading}
225
- aria-checked=${this.indeterminate ? "mixed" : String(this.checked)}
226
- aria-label=${ifDefined(ariaLabel)}
227
- aria-busy=${this.loading ? "true" : "false"}
228
- @change=${this._handleChange}
229
- />
230
-
231
- <span
232
- class=${this._boxClasses}
233
- mono-box
234
- ?mono-custom-icon=${this._hasIcon || this.loading}
235
- ?mono-custom-indeterminate-icon=${this._hasIndeterminateIcon || this.loading}
236
- aria-hidden="true"
237
- >
238
- ${this.loading ? this._renderLoadingIcon() : this._renderCustomIcon()}
239
- </span>
240
-
241
- ${this._renderLabelBlock()}
242
- </label>
243
- `;
244
- }
245
- focus(options) {
246
- this.renderRoot.querySelector(".mono-checkbox-input")?.focus(options);
247
- }
248
- blur() {
249
- this.renderRoot.querySelector(".mono-checkbox-input")?.blur();
250
- }
251
- }
252
- __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "size", void 0);
253
- __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "color", void 0);
254
- __decorate([property({
255
- attribute: "model-value",
256
- reflect: true,
257
- converter: booleanStringConverter
258
- })], MonoCheckboxCoreClass.prototype, "modelValue", void 0);
259
- __decorate([property({
260
- reflect: true,
261
- converter: booleanStringConverter
262
- })], MonoCheckboxCoreClass.prototype, "checked", void 0);
263
- __decorate([property({
264
- reflect: true,
265
- converter: booleanStringConverter
266
- })], MonoCheckboxCoreClass.prototype, "disabled", void 0);
267
- __decorate([property({
268
- reflect: true,
269
- converter: booleanStringConverter
270
- })], MonoCheckboxCoreClass.prototype, "indeterminate", void 0);
271
- __decorate([property({
272
- reflect: true,
273
- converter: booleanStringConverter
274
- })], MonoCheckboxCoreClass.prototype, "loading", void 0);
275
- __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "label", void 0);
276
- __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "sublabel", void 0);
277
- __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "value", void 0);
278
- __decorate([property({ type: String })], MonoCheckboxCoreClass.prototype, "name", void 0);
279
- __decorate([property({
280
- type: String,
281
- attribute: "aria-label"
282
- })], MonoCheckboxCoreClass.prototype, "ariaLabelText", void 0);
283
- __decorate([property({ attribute: false })], MonoCheckboxCoreClass.prototype, "cssClass", void 0);
284
- __decorate([property({
285
- type: String,
286
- attribute: "css-class"
287
- })], MonoCheckboxCoreClass.prototype, "cssClassName", void 0);
288
- __decorate([state()], MonoCheckboxCoreClass.prototype, "_hasIcon", void 0);
289
- __decorate([state()], MonoCheckboxCoreClass.prototype, "_hasIndeterminateIcon", void 0);
290
- __decorate([state()], MonoCheckboxCoreClass.prototype, "_hasLabelSlotState", void 0);
291
- __decorate([state()], MonoCheckboxCoreClass.prototype, "_hasDescriptionSlotState", void 0);
292
- return MonoCheckboxCoreClass;
293
- };
294
-
295
- //#endregion
296
8
  //#region src/components/checkbox/mono-checkbox.shadow.ts
297
9
  const SHADOW_EXTRA_CSS = "";
298
10
  let MonoCheckboxShadow = class MonoCheckboxShadow extends withShadowUtilityStyles(MonoCheckboxCore(LitElement)) {
@@ -415,47 +127,5 @@ let MonoCheckboxShadow = class MonoCheckboxShadow extends withShadowUtilityStyle
415
127
  };
416
128
  MonoCheckboxShadow = __decorate([customElement("mono-shadow-checkbox")], MonoCheckboxShadow);
417
129
 
418
- //#endregion
419
- //#region src/components/checkbox/checkbox-utils.ts
420
- /**
421
- * Validate checkbox props
422
- */
423
- function validateCheckboxProps(props) {
424
- const validSizes = [
425
- "xs",
426
- "sm",
427
- "md",
428
- "lg",
429
- "xl",
430
- "xxl"
431
- ];
432
- const validColors = [
433
- "primary",
434
- "secondary",
435
- "success",
436
- "danger",
437
- "warning",
438
- "info",
439
- "teal",
440
- "purple",
441
- "neutral",
442
- "dark"
443
- ];
444
- if (props.size && !validSizes.includes(props.size)) return false;
445
- if (props.color && !validColors.includes(props.color)) return false;
446
- return true;
447
- }
448
- /**
449
- * Generate ARIA attributes for accessibility
450
- */
451
- function generateCheckboxAttributes(disabled, checked, indeterminate, label) {
452
- return {
453
- "aria-disabled": disabled ? "true" : void 0,
454
- "aria-checked": indeterminate ? "mixed" : String(checked),
455
- "role": "checkbox",
456
- "aria-label": label || void 0
457
- };
458
- }
459
-
460
130
  //#endregion
461
131
  export { MonoCheckboxCore, MonoCheckboxShadow, generateCheckboxAttributes, validateCheckboxProps };