@hyalo/angular 0.0.0-stage → 0.1.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 (83) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/LICENSE +21 -0
  3. package/README.md +32 -3
  4. package/fesm2022/hyalo-angular-accordion.mjs +230 -0
  5. package/fesm2022/hyalo-angular-accordion.mjs.map +1 -0
  6. package/fesm2022/hyalo-angular-button.mjs +203 -0
  7. package/fesm2022/hyalo-angular-button.mjs.map +1 -0
  8. package/fesm2022/hyalo-angular-card.mjs +221 -0
  9. package/fesm2022/hyalo-angular-card.mjs.map +1 -0
  10. package/fesm2022/hyalo-angular-choice.mjs +788 -0
  11. package/fesm2022/hyalo-angular-choice.mjs.map +1 -0
  12. package/fesm2022/hyalo-angular-dialog.mjs +571 -0
  13. package/fesm2022/hyalo-angular-dialog.mjs.map +1 -0
  14. package/fesm2022/hyalo-angular-field.mjs +312 -0
  15. package/fesm2022/hyalo-angular-field.mjs.map +1 -0
  16. package/fesm2022/hyalo-angular-icon.mjs +343 -0
  17. package/fesm2022/hyalo-angular-icon.mjs.map +1 -0
  18. package/fesm2022/hyalo-angular-interaction.mjs +455 -0
  19. package/fesm2022/hyalo-angular-interaction.mjs.map +1 -0
  20. package/fesm2022/hyalo-angular-navbar.mjs +343 -0
  21. package/fesm2022/hyalo-angular-navbar.mjs.map +1 -0
  22. package/fesm2022/hyalo-angular-overlay.mjs +94 -0
  23. package/fesm2022/hyalo-angular-overlay.mjs.map +1 -0
  24. package/fesm2022/hyalo-angular-popover-overlay-kit-6wPwnxln.mjs +3 -0
  25. package/fesm2022/hyalo-angular-popover.mjs +487 -0
  26. package/fesm2022/hyalo-angular-popover.mjs.map +1 -0
  27. package/fesm2022/hyalo-angular-segmented.mjs +223 -0
  28. package/fesm2022/hyalo-angular-segmented.mjs.map +1 -0
  29. package/fesm2022/hyalo-angular-select.mjs +464 -0
  30. package/fesm2022/hyalo-angular-select.mjs.map +1 -0
  31. package/fesm2022/hyalo-angular-tabs.mjs +324 -0
  32. package/fesm2022/hyalo-angular-tabs.mjs.map +1 -0
  33. package/fesm2022/hyalo-angular-theme.mjs +94 -0
  34. package/fesm2022/hyalo-angular-theme.mjs.map +1 -0
  35. package/fesm2022/hyalo-angular-toast.mjs +322 -0
  36. package/fesm2022/hyalo-angular-toast.mjs.map +1 -0
  37. package/fesm2022/hyalo-angular.mjs +473 -0
  38. package/fesm2022/hyalo-angular.mjs.map +1 -0
  39. package/package.json +133 -3
  40. package/styles/hyalo-core.css +25 -0
  41. package/styles/hyalo.css +17 -0
  42. package/styles/overlays/dialog.css +9 -0
  43. package/styles/overlays/popover.css +9 -0
  44. package/styles/overlays/select.css +9 -0
  45. package/styles/overlays/toast.css +8 -0
  46. package/styles/palettes/aurora.css +47 -0
  47. package/styles/palettes/ember.css +47 -0
  48. package/styles/palettes/graphite.css +47 -0
  49. package/styles/palettes/ocean.css +47 -0
  50. package/styles/palettes/orchid.css +47 -0
  51. package/styles/palettes/rose.css +47 -0
  52. package/styles/parts/card.css +49 -0
  53. package/styles/parts/dialog.css +116 -0
  54. package/styles/parts/drawer.css +124 -0
  55. package/styles/parts/field.css +36 -0
  56. package/styles/parts/glass.css +137 -0
  57. package/styles/parts/motion.css +82 -0
  58. package/styles/parts/navbar.css +55 -0
  59. package/styles/parts/popover.css +27 -0
  60. package/styles/parts/presence.css +55 -0
  61. package/styles/parts/reset.css +42 -0
  62. package/styles/parts/select.css +46 -0
  63. package/styles/parts/themes.css +105 -0
  64. package/styles/parts/toast.css +128 -0
  65. package/styles/parts/tokens.css +151 -0
  66. package/styles/parts/typography.css +64 -0
  67. package/types/hyalo-angular-accordion.d.ts +74 -0
  68. package/types/hyalo-angular-button.d.ts +88 -0
  69. package/types/hyalo-angular-card.d.ts +61 -0
  70. package/types/hyalo-angular-choice.d.ts +259 -0
  71. package/types/hyalo-angular-dialog.d.ts +170 -0
  72. package/types/hyalo-angular-field.d.ts +135 -0
  73. package/types/hyalo-angular-icon.d.ts +122 -0
  74. package/types/hyalo-angular-interaction.d.ts +131 -0
  75. package/types/hyalo-angular-navbar.d.ts +110 -0
  76. package/types/hyalo-angular-overlay.d.ts +31 -0
  77. package/types/hyalo-angular-popover.d.ts +142 -0
  78. package/types/hyalo-angular-segmented.d.ts +79 -0
  79. package/types/hyalo-angular-select.d.ts +130 -0
  80. package/types/hyalo-angular-tabs.d.ts +102 -0
  81. package/types/hyalo-angular-theme.d.ts +46 -0
  82. package/types/hyalo-angular-toast.d.ts +79 -0
  83. package/types/hyalo-angular.d.ts +345 -0
@@ -0,0 +1,788 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, booleanAttribute, computed, inject, input, model, output, signal } from "@angular/core";
3
+ import { injectId, rubberband } from "@hyalo/angular";
4
+ import { HyIcon } from "@hyalo/angular/icon";
5
+ var HyCheckbox = class HyCheckbox {
6
+ descriptionId = injectId("checkbox-desc");
7
+ checked = model(false, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
8
+ indeterminate = model(false, ...ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []);
9
+ description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
10
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
11
+ disabled = input(false, {
12
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
13
+ transform: booleanAttribute
14
+ });
15
+ required = input(false, {
16
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
17
+ transform: booleanAttribute
18
+ });
19
+ invalid = input(false, {
20
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
21
+ transform: booleanAttribute
22
+ });
23
+ touched = input(false, {
24
+ ...ngDevMode ? { debugName: "touched" } : /* istanbul ignore next */ {},
25
+ transform: booleanAttribute
26
+ });
27
+ touch = output();
28
+ onChange(event) {
29
+ this.indeterminate.set(false);
30
+ this.checked.set(event.target.checked);
31
+ }
32
+ static ɵfac = i0.ɵɵngDeclareFactory({
33
+ minVersion: "12.0.0",
34
+ version: "22.2.3",
35
+ ngImport: i0,
36
+ type: HyCheckbox,
37
+ deps: [],
38
+ target: i0.ɵɵFactoryTarget.Component
39
+ });
40
+ static ɵcmp = i0.ɵɵngDeclareComponent({
41
+ minVersion: "17.0.0",
42
+ version: "22.2.3",
43
+ type: HyCheckbox,
44
+ isStandalone: true,
45
+ selector: "hy-checkbox",
46
+ inputs: {
47
+ checked: {
48
+ classPropertyName: "checked",
49
+ publicName: "checked",
50
+ isSignal: true,
51
+ isRequired: false,
52
+ transformFunction: null
53
+ },
54
+ indeterminate: {
55
+ classPropertyName: "indeterminate",
56
+ publicName: "indeterminate",
57
+ isSignal: true,
58
+ isRequired: false,
59
+ transformFunction: null
60
+ },
61
+ description: {
62
+ classPropertyName: "description",
63
+ publicName: "description",
64
+ isSignal: true,
65
+ isRequired: false,
66
+ transformFunction: null
67
+ },
68
+ name: {
69
+ classPropertyName: "name",
70
+ publicName: "name",
71
+ isSignal: true,
72
+ isRequired: false,
73
+ transformFunction: null
74
+ },
75
+ disabled: {
76
+ classPropertyName: "disabled",
77
+ publicName: "disabled",
78
+ isSignal: true,
79
+ isRequired: false,
80
+ transformFunction: null
81
+ },
82
+ required: {
83
+ classPropertyName: "required",
84
+ publicName: "required",
85
+ isSignal: true,
86
+ isRequired: false,
87
+ transformFunction: null
88
+ },
89
+ invalid: {
90
+ classPropertyName: "invalid",
91
+ publicName: "invalid",
92
+ isSignal: true,
93
+ isRequired: false,
94
+ transformFunction: null
95
+ },
96
+ touched: {
97
+ classPropertyName: "touched",
98
+ publicName: "touched",
99
+ isSignal: true,
100
+ isRequired: false,
101
+ transformFunction: null
102
+ }
103
+ },
104
+ outputs: {
105
+ checked: "checkedChange",
106
+ indeterminate: "indeterminateChange",
107
+ touch: "touch"
108
+ },
109
+ host: {
110
+ properties: {
111
+ "attr.data-checked": "checked() || null",
112
+ "attr.data-indeterminate": "indeterminate() || null",
113
+ "attr.data-disabled": "disabled() || null",
114
+ "attr.data-invalid": "(invalid() && touched()) || null"
115
+ },
116
+ classAttribute: "hy-choice hy-checkbox"
117
+ },
118
+ ngImport: i0,
119
+ template: "<label class=\"hy-choice__row\">\r\n <span class=\"hy-choice__control hy-checkbox__box\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"hy-choice__input\"\r\n [name]=\"name()\"\r\n [checked]=\"checked()\"\r\n [indeterminate]=\"indeterminate()\"\r\n [disabled]=\"disabled()\"\r\n [required]=\"required()\"\r\n [attr.aria-invalid]=\"(invalid() && touched()) || null\"\r\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\r\n (change)=\"onChange($event)\"\r\n (blur)=\"touch.emit()\"\r\n />\r\n <hy-icon\r\n class=\"hy-checkbox__mark\"\r\n [name]=\"indeterminate() ? 'minus' : 'check'\"\r\n [strokeWidth]=\"2.5\"\r\n />\r\n </span>\r\n <span class=\"hy-choice__label\"><ng-content /></span>\r\n</label>\r\n@if (description()) {\r\n <p class=\"hy-choice__description\" [id]=\"descriptionId\">{{ description() }}</p>\r\n}\r\n",
120
+ styles: [":host{display:block}.hy-choice__row{display:inline-flex;align-items:flex-start;gap:var(--hy-space-3);min-block-size:1.5rem;color:var(--hy-ink);cursor:pointer}:host([data-disabled]) .hy-choice__row{opacity:.5;cursor:not-allowed}.hy-choice__control{position:relative;display:grid;place-items:center;flex:none;margin-block-start:.1em;transition:background-color var(--hy-dur-quick) var(--hy-ease-out),border-color var(--hy-dur-quick) var(--hy-ease-out),box-shadow var(--hy-dur-quick) var(--hy-ease-out)}.hy-choice__input{position:absolute;inset:-.25rem;margin:0;opacity:0;cursor:inherit}.hy-choice__control:has(:focus-visible){box-shadow:var(--hy-focus-ring)}.hy-choice__label{line-height:1.5}.hy-choice__description{margin:var(--hy-space-1) 0 0;padding-inline-start:calc(1.25rem + var(--hy-space-3));color:var(--hy-ink-3);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-checkbox__box{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:var(--hy-checkbox-radius, 6px);background:var(--hy-surface-1);color:var(--hy-primary-ink)}.hy-checkbox__mark{--hy-icon-size: .875rem;opacity:0;scale:.6;transition:opacity var(--hy-dur-quick) var(--hy-ease-out),scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-checkbox__box,:host([data-indeterminate]) .hy-checkbox__box{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-checkbox__mark,:host([data-indeterminate]) .hy-checkbox__mark{opacity:1;scale:1}:host([data-invalid]) .hy-checkbox__box{border-color:var(--hy-danger)}.hy-radio__circle{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:50%;background:var(--hy-surface-1)}.hy-radio__dot{inline-size:.5rem;block-size:.5rem;border-radius:50%;background:var(--hy-primary-ink);scale:0;transition:scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-radio__circle{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-radio__dot{scale:1}:host(.hy-radio-group){display:flex;flex-direction:column;gap:var(--hy-space-3)}.hy-radio-group__label{font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small);font-weight:560}.hy-radio-group__items{display:flex;flex-direction:column;gap:var(--hy-space-3)}:host([data-orientation=\"horizontal\"]) .hy-radio-group__items{flex-direction:row;flex-wrap:wrap;gap:var(--hy-space-5)}.hy-choice__error{margin:0;color:var(--hy-danger);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-switch__track{inline-size:2.5rem;block-size:1.5rem;margin-block-start:0;padding:2px;place-items:center start;border-radius:var(--hy-radius-pill);background:var(--hy-switch-track, color-mix(in srgb, var(--hy-ink) 22%, transparent));box-shadow:inset 0 1px 2px #0f1a2426}.hy-switch__thumb{inline-size:1.25rem;block-size:1.25rem;border-radius:50%;background:var(--hy-glass-reflection),#fff;box-shadow:0 1px 3px #00000040,inset 0 0 0 .5px #0000000f;transition:translate var(--hy-dur-settle) var(--hy-ease-spring),inline-size var(--hy-dur-quick) var(--hy-ease-out)}:host([data-checked]) .hy-switch__track{background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-switch__thumb{translate:1rem 0}:host([data-checked]) .hy-switch__thumb:dir(rtl){translate:-1rem 0}:host(:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb,.hy-switch__thumb[data-dragging]{inline-size:1.5rem}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb{translate:.75rem 0}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb:dir(rtl){translate:-.75rem 0}.hy-switch__thumb[data-dragging],.hy-switch__thumb[data-dragging]:dir(rtl){translate:var(--_drag) 0;transition:inline-size var(--hy-dur-quick) var(--hy-ease-out)}@media(forced-colors:active){.hy-choice__control{border:1px solid CanvasText}:host([data-checked]) .hy-choice__control{background:Highlight}}\n"],
121
+ dependencies: [{
122
+ kind: "component",
123
+ type: HyIcon,
124
+ selector: "hy-icon",
125
+ inputs: [
126
+ "name",
127
+ "icon",
128
+ "label",
129
+ "size",
130
+ "strokeWidth"
131
+ ]
132
+ }],
133
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
134
+ });
135
+ };
136
+ i0.ɵɵngDeclareClassMetadata({
137
+ minVersion: "12.0.0",
138
+ version: "22.2.3",
139
+ ngImport: i0,
140
+ type: HyCheckbox,
141
+ decorators: [{
142
+ type: Component,
143
+ args: [{
144
+ selector: "hy-checkbox",
145
+ imports: [HyIcon],
146
+ changeDetection: ChangeDetectionStrategy.OnPush,
147
+ host: {
148
+ class: "hy-choice hy-checkbox",
149
+ "[attr.data-checked]": "checked() || null",
150
+ "[attr.data-indeterminate]": "indeterminate() || null",
151
+ "[attr.data-disabled]": "disabled() || null",
152
+ "[attr.data-invalid]": "(invalid() && touched()) || null"
153
+ },
154
+ template: "<label class=\"hy-choice__row\">\r\n <span class=\"hy-choice__control hy-checkbox__box\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"hy-choice__input\"\r\n [name]=\"name()\"\r\n [checked]=\"checked()\"\r\n [indeterminate]=\"indeterminate()\"\r\n [disabled]=\"disabled()\"\r\n [required]=\"required()\"\r\n [attr.aria-invalid]=\"(invalid() && touched()) || null\"\r\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\r\n (change)=\"onChange($event)\"\r\n (blur)=\"touch.emit()\"\r\n />\r\n <hy-icon\r\n class=\"hy-checkbox__mark\"\r\n [name]=\"indeterminate() ? 'minus' : 'check'\"\r\n [strokeWidth]=\"2.5\"\r\n />\r\n </span>\r\n <span class=\"hy-choice__label\"><ng-content /></span>\r\n</label>\r\n@if (description()) {\r\n <p class=\"hy-choice__description\" [id]=\"descriptionId\">{{ description() }}</p>\r\n}\r\n",
155
+ styles: [":host{display:block}.hy-choice__row{display:inline-flex;align-items:flex-start;gap:var(--hy-space-3);min-block-size:1.5rem;color:var(--hy-ink);cursor:pointer}:host([data-disabled]) .hy-choice__row{opacity:.5;cursor:not-allowed}.hy-choice__control{position:relative;display:grid;place-items:center;flex:none;margin-block-start:.1em;transition:background-color var(--hy-dur-quick) var(--hy-ease-out),border-color var(--hy-dur-quick) var(--hy-ease-out),box-shadow var(--hy-dur-quick) var(--hy-ease-out)}.hy-choice__input{position:absolute;inset:-.25rem;margin:0;opacity:0;cursor:inherit}.hy-choice__control:has(:focus-visible){box-shadow:var(--hy-focus-ring)}.hy-choice__label{line-height:1.5}.hy-choice__description{margin:var(--hy-space-1) 0 0;padding-inline-start:calc(1.25rem + var(--hy-space-3));color:var(--hy-ink-3);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-checkbox__box{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:var(--hy-checkbox-radius, 6px);background:var(--hy-surface-1);color:var(--hy-primary-ink)}.hy-checkbox__mark{--hy-icon-size: .875rem;opacity:0;scale:.6;transition:opacity var(--hy-dur-quick) var(--hy-ease-out),scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-checkbox__box,:host([data-indeterminate]) .hy-checkbox__box{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-checkbox__mark,:host([data-indeterminate]) .hy-checkbox__mark{opacity:1;scale:1}:host([data-invalid]) .hy-checkbox__box{border-color:var(--hy-danger)}.hy-radio__circle{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:50%;background:var(--hy-surface-1)}.hy-radio__dot{inline-size:.5rem;block-size:.5rem;border-radius:50%;background:var(--hy-primary-ink);scale:0;transition:scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-radio__circle{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-radio__dot{scale:1}:host(.hy-radio-group){display:flex;flex-direction:column;gap:var(--hy-space-3)}.hy-radio-group__label{font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small);font-weight:560}.hy-radio-group__items{display:flex;flex-direction:column;gap:var(--hy-space-3)}:host([data-orientation=\"horizontal\"]) .hy-radio-group__items{flex-direction:row;flex-wrap:wrap;gap:var(--hy-space-5)}.hy-choice__error{margin:0;color:var(--hy-danger);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-switch__track{inline-size:2.5rem;block-size:1.5rem;margin-block-start:0;padding:2px;place-items:center start;border-radius:var(--hy-radius-pill);background:var(--hy-switch-track, color-mix(in srgb, var(--hy-ink) 22%, transparent));box-shadow:inset 0 1px 2px #0f1a2426}.hy-switch__thumb{inline-size:1.25rem;block-size:1.25rem;border-radius:50%;background:var(--hy-glass-reflection),#fff;box-shadow:0 1px 3px #00000040,inset 0 0 0 .5px #0000000f;transition:translate var(--hy-dur-settle) var(--hy-ease-spring),inline-size var(--hy-dur-quick) var(--hy-ease-out)}:host([data-checked]) .hy-switch__track{background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-switch__thumb{translate:1rem 0}:host([data-checked]) .hy-switch__thumb:dir(rtl){translate:-1rem 0}:host(:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb,.hy-switch__thumb[data-dragging]{inline-size:1.5rem}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb{translate:.75rem 0}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb:dir(rtl){translate:-.75rem 0}.hy-switch__thumb[data-dragging],.hy-switch__thumb[data-dragging]:dir(rtl){translate:var(--_drag) 0;transition:inline-size var(--hy-dur-quick) var(--hy-ease-out)}@media(forced-colors:active){.hy-choice__control{border:1px solid CanvasText}:host([data-checked]) .hy-choice__control{background:Highlight}}\n"]
156
+ }]
157
+ }],
158
+ propDecorators: {
159
+ checked: [{
160
+ type: i0.Input,
161
+ args: [{
162
+ isSignal: true,
163
+ alias: "checked",
164
+ required: false
165
+ }]
166
+ }, {
167
+ type: i0.Output,
168
+ args: ["checkedChange"]
169
+ }],
170
+ indeterminate: [{
171
+ type: i0.Input,
172
+ args: [{
173
+ isSignal: true,
174
+ alias: "indeterminate",
175
+ required: false
176
+ }]
177
+ }, {
178
+ type: i0.Output,
179
+ args: ["indeterminateChange"]
180
+ }],
181
+ description: [{
182
+ type: i0.Input,
183
+ args: [{
184
+ isSignal: true,
185
+ alias: "description",
186
+ required: false
187
+ }]
188
+ }],
189
+ name: [{
190
+ type: i0.Input,
191
+ args: [{
192
+ isSignal: true,
193
+ alias: "name",
194
+ required: false
195
+ }]
196
+ }],
197
+ disabled: [{
198
+ type: i0.Input,
199
+ args: [{
200
+ isSignal: true,
201
+ alias: "disabled",
202
+ required: false
203
+ }]
204
+ }],
205
+ required: [{
206
+ type: i0.Input,
207
+ args: [{
208
+ isSignal: true,
209
+ alias: "required",
210
+ required: false
211
+ }]
212
+ }],
213
+ invalid: [{
214
+ type: i0.Input,
215
+ args: [{
216
+ isSignal: true,
217
+ alias: "invalid",
218
+ required: false
219
+ }]
220
+ }],
221
+ touched: [{
222
+ type: i0.Input,
223
+ args: [{
224
+ isSignal: true,
225
+ alias: "touched",
226
+ required: false
227
+ }]
228
+ }],
229
+ touch: [{
230
+ type: i0.Output,
231
+ args: ["touch"]
232
+ }]
233
+ }
234
+ });
235
+ var HyRadioGroup = class HyRadioGroup {
236
+ labelId = injectId("radio-label");
237
+ generatedName = injectId("radio");
238
+ value = model(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
239
+ label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
240
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
241
+ orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
242
+ disabled = input(false, {
243
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
244
+ transform: booleanAttribute
245
+ });
246
+ required = input(false, {
247
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
248
+ transform: booleanAttribute
249
+ });
250
+ invalid = input(false, {
251
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
252
+ transform: booleanAttribute
253
+ });
254
+ touched = input(false, {
255
+ ...ngDevMode ? { debugName: "touched" } : /* istanbul ignore next */ {},
256
+ transform: booleanAttribute
257
+ });
258
+ errors = input([], ...ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []);
259
+ touch = output();
260
+ groupName = computed(() => this.name() || this.generatedName, ...ngDevMode ? [{ debugName: "groupName" }] : /* istanbul ignore next */ []);
261
+ showsError = computed(() => this.invalid() && this.touched(), ...ngDevMode ? [{ debugName: "showsError" }] : /* istanbul ignore next */ []);
262
+ errorMessage = computed(() => {
263
+ const first = this.errors()[0];
264
+ return first ? first.message ?? first.kind : "";
265
+ }, ...ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []);
266
+ static ɵfac = i0.ɵɵngDeclareFactory({
267
+ minVersion: "12.0.0",
268
+ version: "22.2.3",
269
+ ngImport: i0,
270
+ type: HyRadioGroup,
271
+ deps: [],
272
+ target: i0.ɵɵFactoryTarget.Component
273
+ });
274
+ static ɵcmp = i0.ɵɵngDeclareComponent({
275
+ minVersion: "17.0.0",
276
+ version: "22.2.3",
277
+ type: HyRadioGroup,
278
+ isStandalone: true,
279
+ selector: "hy-radio-group",
280
+ inputs: {
281
+ value: {
282
+ classPropertyName: "value",
283
+ publicName: "value",
284
+ isSignal: true,
285
+ isRequired: false,
286
+ transformFunction: null
287
+ },
288
+ label: {
289
+ classPropertyName: "label",
290
+ publicName: "label",
291
+ isSignal: true,
292
+ isRequired: false,
293
+ transformFunction: null
294
+ },
295
+ name: {
296
+ classPropertyName: "name",
297
+ publicName: "name",
298
+ isSignal: true,
299
+ isRequired: false,
300
+ transformFunction: null
301
+ },
302
+ orientation: {
303
+ classPropertyName: "orientation",
304
+ publicName: "orientation",
305
+ isSignal: true,
306
+ isRequired: false,
307
+ transformFunction: null
308
+ },
309
+ disabled: {
310
+ classPropertyName: "disabled",
311
+ publicName: "disabled",
312
+ isSignal: true,
313
+ isRequired: false,
314
+ transformFunction: null
315
+ },
316
+ required: {
317
+ classPropertyName: "required",
318
+ publicName: "required",
319
+ isSignal: true,
320
+ isRequired: false,
321
+ transformFunction: null
322
+ },
323
+ invalid: {
324
+ classPropertyName: "invalid",
325
+ publicName: "invalid",
326
+ isSignal: true,
327
+ isRequired: false,
328
+ transformFunction: null
329
+ },
330
+ touched: {
331
+ classPropertyName: "touched",
332
+ publicName: "touched",
333
+ isSignal: true,
334
+ isRequired: false,
335
+ transformFunction: null
336
+ },
337
+ errors: {
338
+ classPropertyName: "errors",
339
+ publicName: "errors",
340
+ isSignal: true,
341
+ isRequired: false,
342
+ transformFunction: null
343
+ }
344
+ },
345
+ outputs: {
346
+ value: "valueChange",
347
+ touch: "touch"
348
+ },
349
+ host: {
350
+ attributes: { "role": "radiogroup" },
351
+ properties: {
352
+ "attr.aria-labelledby": "label() ? labelId : null",
353
+ "attr.aria-invalid": "showsError() || null",
354
+ "attr.aria-required": "required() || null",
355
+ "attr.data-orientation": "orientation()"
356
+ },
357
+ classAttribute: "hy-radio-group"
358
+ },
359
+ ngImport: i0,
360
+ template: "@if (label()) {\r\n <span class=\"hy-radio-group__label\" [id]=\"labelId\">{{ label() }}</span>\r\n}\r\n<div class=\"hy-radio-group__items\"><ng-content /></div>\r\n@if (showsError()) {\r\n <p class=\"hy-choice__error\">{{ errorMessage() }}</p>\r\n}\r\n",
361
+ styles: [":host{display:block}.hy-choice__row{display:inline-flex;align-items:flex-start;gap:var(--hy-space-3);min-block-size:1.5rem;color:var(--hy-ink);cursor:pointer}:host([data-disabled]) .hy-choice__row{opacity:.5;cursor:not-allowed}.hy-choice__control{position:relative;display:grid;place-items:center;flex:none;margin-block-start:.1em;transition:background-color var(--hy-dur-quick) var(--hy-ease-out),border-color var(--hy-dur-quick) var(--hy-ease-out),box-shadow var(--hy-dur-quick) var(--hy-ease-out)}.hy-choice__input{position:absolute;inset:-.25rem;margin:0;opacity:0;cursor:inherit}.hy-choice__control:has(:focus-visible){box-shadow:var(--hy-focus-ring)}.hy-choice__label{line-height:1.5}.hy-choice__description{margin:var(--hy-space-1) 0 0;padding-inline-start:calc(1.25rem + var(--hy-space-3));color:var(--hy-ink-3);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-checkbox__box{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:var(--hy-checkbox-radius, 6px);background:var(--hy-surface-1);color:var(--hy-primary-ink)}.hy-checkbox__mark{--hy-icon-size: .875rem;opacity:0;scale:.6;transition:opacity var(--hy-dur-quick) var(--hy-ease-out),scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-checkbox__box,:host([data-indeterminate]) .hy-checkbox__box{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-checkbox__mark,:host([data-indeterminate]) .hy-checkbox__mark{opacity:1;scale:1}:host([data-invalid]) .hy-checkbox__box{border-color:var(--hy-danger)}.hy-radio__circle{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:50%;background:var(--hy-surface-1)}.hy-radio__dot{inline-size:.5rem;block-size:.5rem;border-radius:50%;background:var(--hy-primary-ink);scale:0;transition:scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-radio__circle{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-radio__dot{scale:1}:host(.hy-radio-group){display:flex;flex-direction:column;gap:var(--hy-space-3)}.hy-radio-group__label{font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small);font-weight:560}.hy-radio-group__items{display:flex;flex-direction:column;gap:var(--hy-space-3)}:host([data-orientation=\"horizontal\"]) .hy-radio-group__items{flex-direction:row;flex-wrap:wrap;gap:var(--hy-space-5)}.hy-choice__error{margin:0;color:var(--hy-danger);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-switch__track{inline-size:2.5rem;block-size:1.5rem;margin-block-start:0;padding:2px;place-items:center start;border-radius:var(--hy-radius-pill);background:var(--hy-switch-track, color-mix(in srgb, var(--hy-ink) 22%, transparent));box-shadow:inset 0 1px 2px #0f1a2426}.hy-switch__thumb{inline-size:1.25rem;block-size:1.25rem;border-radius:50%;background:var(--hy-glass-reflection),#fff;box-shadow:0 1px 3px #00000040,inset 0 0 0 .5px #0000000f;transition:translate var(--hy-dur-settle) var(--hy-ease-spring),inline-size var(--hy-dur-quick) var(--hy-ease-out)}:host([data-checked]) .hy-switch__track{background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-switch__thumb{translate:1rem 0}:host([data-checked]) .hy-switch__thumb:dir(rtl){translate:-1rem 0}:host(:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb,.hy-switch__thumb[data-dragging]{inline-size:1.5rem}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb{translate:.75rem 0}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb:dir(rtl){translate:-.75rem 0}.hy-switch__thumb[data-dragging],.hy-switch__thumb[data-dragging]:dir(rtl){translate:var(--_drag) 0;transition:inline-size var(--hy-dur-quick) var(--hy-ease-out)}@media(forced-colors:active){.hy-choice__control{border:1px solid CanvasText}:host([data-checked]) .hy-choice__control{background:Highlight}}\n"],
362
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
363
+ });
364
+ };
365
+ i0.ɵɵngDeclareClassMetadata({
366
+ minVersion: "12.0.0",
367
+ version: "22.2.3",
368
+ ngImport: i0,
369
+ type: HyRadioGroup,
370
+ decorators: [{
371
+ type: Component,
372
+ args: [{
373
+ selector: "hy-radio-group",
374
+ changeDetection: ChangeDetectionStrategy.OnPush,
375
+ host: {
376
+ class: "hy-radio-group",
377
+ role: "radiogroup",
378
+ "[attr.aria-labelledby]": "label() ? labelId : null",
379
+ "[attr.aria-invalid]": "showsError() || null",
380
+ "[attr.aria-required]": "required() || null",
381
+ "[attr.data-orientation]": "orientation()"
382
+ },
383
+ template: "@if (label()) {\r\n <span class=\"hy-radio-group__label\" [id]=\"labelId\">{{ label() }}</span>\r\n}\r\n<div class=\"hy-radio-group__items\"><ng-content /></div>\r\n@if (showsError()) {\r\n <p class=\"hy-choice__error\">{{ errorMessage() }}</p>\r\n}\r\n",
384
+ styles: [":host{display:block}.hy-choice__row{display:inline-flex;align-items:flex-start;gap:var(--hy-space-3);min-block-size:1.5rem;color:var(--hy-ink);cursor:pointer}:host([data-disabled]) .hy-choice__row{opacity:.5;cursor:not-allowed}.hy-choice__control{position:relative;display:grid;place-items:center;flex:none;margin-block-start:.1em;transition:background-color var(--hy-dur-quick) var(--hy-ease-out),border-color var(--hy-dur-quick) var(--hy-ease-out),box-shadow var(--hy-dur-quick) var(--hy-ease-out)}.hy-choice__input{position:absolute;inset:-.25rem;margin:0;opacity:0;cursor:inherit}.hy-choice__control:has(:focus-visible){box-shadow:var(--hy-focus-ring)}.hy-choice__label{line-height:1.5}.hy-choice__description{margin:var(--hy-space-1) 0 0;padding-inline-start:calc(1.25rem + var(--hy-space-3));color:var(--hy-ink-3);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-checkbox__box{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:var(--hy-checkbox-radius, 6px);background:var(--hy-surface-1);color:var(--hy-primary-ink)}.hy-checkbox__mark{--hy-icon-size: .875rem;opacity:0;scale:.6;transition:opacity var(--hy-dur-quick) var(--hy-ease-out),scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-checkbox__box,:host([data-indeterminate]) .hy-checkbox__box{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-checkbox__mark,:host([data-indeterminate]) .hy-checkbox__mark{opacity:1;scale:1}:host([data-invalid]) .hy-checkbox__box{border-color:var(--hy-danger)}.hy-radio__circle{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:50%;background:var(--hy-surface-1)}.hy-radio__dot{inline-size:.5rem;block-size:.5rem;border-radius:50%;background:var(--hy-primary-ink);scale:0;transition:scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-radio__circle{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-radio__dot{scale:1}:host(.hy-radio-group){display:flex;flex-direction:column;gap:var(--hy-space-3)}.hy-radio-group__label{font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small);font-weight:560}.hy-radio-group__items{display:flex;flex-direction:column;gap:var(--hy-space-3)}:host([data-orientation=\"horizontal\"]) .hy-radio-group__items{flex-direction:row;flex-wrap:wrap;gap:var(--hy-space-5)}.hy-choice__error{margin:0;color:var(--hy-danger);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-switch__track{inline-size:2.5rem;block-size:1.5rem;margin-block-start:0;padding:2px;place-items:center start;border-radius:var(--hy-radius-pill);background:var(--hy-switch-track, color-mix(in srgb, var(--hy-ink) 22%, transparent));box-shadow:inset 0 1px 2px #0f1a2426}.hy-switch__thumb{inline-size:1.25rem;block-size:1.25rem;border-radius:50%;background:var(--hy-glass-reflection),#fff;box-shadow:0 1px 3px #00000040,inset 0 0 0 .5px #0000000f;transition:translate var(--hy-dur-settle) var(--hy-ease-spring),inline-size var(--hy-dur-quick) var(--hy-ease-out)}:host([data-checked]) .hy-switch__track{background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-switch__thumb{translate:1rem 0}:host([data-checked]) .hy-switch__thumb:dir(rtl){translate:-1rem 0}:host(:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb,.hy-switch__thumb[data-dragging]{inline-size:1.5rem}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb{translate:.75rem 0}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb:dir(rtl){translate:-.75rem 0}.hy-switch__thumb[data-dragging],.hy-switch__thumb[data-dragging]:dir(rtl){translate:var(--_drag) 0;transition:inline-size var(--hy-dur-quick) var(--hy-ease-out)}@media(forced-colors:active){.hy-choice__control{border:1px solid CanvasText}:host([data-checked]) .hy-choice__control{background:Highlight}}\n"]
385
+ }]
386
+ }],
387
+ propDecorators: {
388
+ value: [{
389
+ type: i0.Input,
390
+ args: [{
391
+ isSignal: true,
392
+ alias: "value",
393
+ required: false
394
+ }]
395
+ }, {
396
+ type: i0.Output,
397
+ args: ["valueChange"]
398
+ }],
399
+ label: [{
400
+ type: i0.Input,
401
+ args: [{
402
+ isSignal: true,
403
+ alias: "label",
404
+ required: false
405
+ }]
406
+ }],
407
+ name: [{
408
+ type: i0.Input,
409
+ args: [{
410
+ isSignal: true,
411
+ alias: "name",
412
+ required: false
413
+ }]
414
+ }],
415
+ orientation: [{
416
+ type: i0.Input,
417
+ args: [{
418
+ isSignal: true,
419
+ alias: "orientation",
420
+ required: false
421
+ }]
422
+ }],
423
+ disabled: [{
424
+ type: i0.Input,
425
+ args: [{
426
+ isSignal: true,
427
+ alias: "disabled",
428
+ required: false
429
+ }]
430
+ }],
431
+ required: [{
432
+ type: i0.Input,
433
+ args: [{
434
+ isSignal: true,
435
+ alias: "required",
436
+ required: false
437
+ }]
438
+ }],
439
+ invalid: [{
440
+ type: i0.Input,
441
+ args: [{
442
+ isSignal: true,
443
+ alias: "invalid",
444
+ required: false
445
+ }]
446
+ }],
447
+ touched: [{
448
+ type: i0.Input,
449
+ args: [{
450
+ isSignal: true,
451
+ alias: "touched",
452
+ required: false
453
+ }]
454
+ }],
455
+ errors: [{
456
+ type: i0.Input,
457
+ args: [{
458
+ isSignal: true,
459
+ alias: "errors",
460
+ required: false
461
+ }]
462
+ }],
463
+ touch: [{
464
+ type: i0.Output,
465
+ args: ["touch"]
466
+ }]
467
+ }
468
+ });
469
+ var HyRadio = class HyRadio {
470
+ group = inject(HyRadioGroup);
471
+ descriptionId = injectId("radio-desc");
472
+ value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
473
+ description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
474
+ disabled = input(false, {
475
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
476
+ transform: booleanAttribute
477
+ });
478
+ checked = computed(() => this.group.value() === this.value(), ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
479
+ isDisabled = computed(() => this.disabled() || this.group.disabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
480
+ static ɵfac = i0.ɵɵngDeclareFactory({
481
+ minVersion: "12.0.0",
482
+ version: "22.2.3",
483
+ ngImport: i0,
484
+ type: HyRadio,
485
+ deps: [],
486
+ target: i0.ɵɵFactoryTarget.Component
487
+ });
488
+ static ɵcmp = i0.ɵɵngDeclareComponent({
489
+ minVersion: "17.0.0",
490
+ version: "22.2.3",
491
+ type: HyRadio,
492
+ isStandalone: true,
493
+ selector: "hy-radio",
494
+ inputs: {
495
+ value: {
496
+ classPropertyName: "value",
497
+ publicName: "value",
498
+ isSignal: true,
499
+ isRequired: true,
500
+ transformFunction: null
501
+ },
502
+ description: {
503
+ classPropertyName: "description",
504
+ publicName: "description",
505
+ isSignal: true,
506
+ isRequired: false,
507
+ transformFunction: null
508
+ },
509
+ disabled: {
510
+ classPropertyName: "disabled",
511
+ publicName: "disabled",
512
+ isSignal: true,
513
+ isRequired: false,
514
+ transformFunction: null
515
+ }
516
+ },
517
+ host: {
518
+ properties: {
519
+ "attr.data-checked": "checked() || null",
520
+ "attr.data-disabled": "isDisabled() || null"
521
+ },
522
+ classAttribute: "hy-choice hy-radio"
523
+ },
524
+ ngImport: i0,
525
+ template: "<label class=\"hy-choice__row\">\r\n <span class=\"hy-choice__control hy-radio__circle\">\r\n <input\r\n type=\"radio\"\r\n class=\"hy-choice__input\"\r\n [name]=\"group.groupName()\"\r\n [checked]=\"checked()\"\r\n [disabled]=\"isDisabled()\"\r\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\r\n (change)=\"group.value.set(value())\"\r\n (blur)=\"group.touch.emit()\"\r\n />\r\n <span class=\"hy-radio__dot\" aria-hidden=\"true\"></span>\r\n </span>\r\n <span class=\"hy-choice__label\"><ng-content /></span>\r\n</label>\r\n@if (description()) {\r\n <p class=\"hy-choice__description\" [id]=\"descriptionId\">{{ description() }}</p>\r\n}\r\n",
526
+ styles: [":host{display:block}.hy-choice__row{display:inline-flex;align-items:flex-start;gap:var(--hy-space-3);min-block-size:1.5rem;color:var(--hy-ink);cursor:pointer}:host([data-disabled]) .hy-choice__row{opacity:.5;cursor:not-allowed}.hy-choice__control{position:relative;display:grid;place-items:center;flex:none;margin-block-start:.1em;transition:background-color var(--hy-dur-quick) var(--hy-ease-out),border-color var(--hy-dur-quick) var(--hy-ease-out),box-shadow var(--hy-dur-quick) var(--hy-ease-out)}.hy-choice__input{position:absolute;inset:-.25rem;margin:0;opacity:0;cursor:inherit}.hy-choice__control:has(:focus-visible){box-shadow:var(--hy-focus-ring)}.hy-choice__label{line-height:1.5}.hy-choice__description{margin:var(--hy-space-1) 0 0;padding-inline-start:calc(1.25rem + var(--hy-space-3));color:var(--hy-ink-3);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-checkbox__box{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:var(--hy-checkbox-radius, 6px);background:var(--hy-surface-1);color:var(--hy-primary-ink)}.hy-checkbox__mark{--hy-icon-size: .875rem;opacity:0;scale:.6;transition:opacity var(--hy-dur-quick) var(--hy-ease-out),scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-checkbox__box,:host([data-indeterminate]) .hy-checkbox__box{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-checkbox__mark,:host([data-indeterminate]) .hy-checkbox__mark{opacity:1;scale:1}:host([data-invalid]) .hy-checkbox__box{border-color:var(--hy-danger)}.hy-radio__circle{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:50%;background:var(--hy-surface-1)}.hy-radio__dot{inline-size:.5rem;block-size:.5rem;border-radius:50%;background:var(--hy-primary-ink);scale:0;transition:scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-radio__circle{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-radio__dot{scale:1}:host(.hy-radio-group){display:flex;flex-direction:column;gap:var(--hy-space-3)}.hy-radio-group__label{font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small);font-weight:560}.hy-radio-group__items{display:flex;flex-direction:column;gap:var(--hy-space-3)}:host([data-orientation=\"horizontal\"]) .hy-radio-group__items{flex-direction:row;flex-wrap:wrap;gap:var(--hy-space-5)}.hy-choice__error{margin:0;color:var(--hy-danger);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-switch__track{inline-size:2.5rem;block-size:1.5rem;margin-block-start:0;padding:2px;place-items:center start;border-radius:var(--hy-radius-pill);background:var(--hy-switch-track, color-mix(in srgb, var(--hy-ink) 22%, transparent));box-shadow:inset 0 1px 2px #0f1a2426}.hy-switch__thumb{inline-size:1.25rem;block-size:1.25rem;border-radius:50%;background:var(--hy-glass-reflection),#fff;box-shadow:0 1px 3px #00000040,inset 0 0 0 .5px #0000000f;transition:translate var(--hy-dur-settle) var(--hy-ease-spring),inline-size var(--hy-dur-quick) var(--hy-ease-out)}:host([data-checked]) .hy-switch__track{background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-switch__thumb{translate:1rem 0}:host([data-checked]) .hy-switch__thumb:dir(rtl){translate:-1rem 0}:host(:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb,.hy-switch__thumb[data-dragging]{inline-size:1.5rem}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb{translate:.75rem 0}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb:dir(rtl){translate:-.75rem 0}.hy-switch__thumb[data-dragging],.hy-switch__thumb[data-dragging]:dir(rtl){translate:var(--_drag) 0;transition:inline-size var(--hy-dur-quick) var(--hy-ease-out)}@media(forced-colors:active){.hy-choice__control{border:1px solid CanvasText}:host([data-checked]) .hy-choice__control{background:Highlight}}\n"],
527
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
528
+ });
529
+ };
530
+ i0.ɵɵngDeclareClassMetadata({
531
+ minVersion: "12.0.0",
532
+ version: "22.2.3",
533
+ ngImport: i0,
534
+ type: HyRadio,
535
+ decorators: [{
536
+ type: Component,
537
+ args: [{
538
+ selector: "hy-radio",
539
+ changeDetection: ChangeDetectionStrategy.OnPush,
540
+ host: {
541
+ class: "hy-choice hy-radio",
542
+ "[attr.data-checked]": "checked() || null",
543
+ "[attr.data-disabled]": "isDisabled() || null"
544
+ },
545
+ template: "<label class=\"hy-choice__row\">\r\n <span class=\"hy-choice__control hy-radio__circle\">\r\n <input\r\n type=\"radio\"\r\n class=\"hy-choice__input\"\r\n [name]=\"group.groupName()\"\r\n [checked]=\"checked()\"\r\n [disabled]=\"isDisabled()\"\r\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\r\n (change)=\"group.value.set(value())\"\r\n (blur)=\"group.touch.emit()\"\r\n />\r\n <span class=\"hy-radio__dot\" aria-hidden=\"true\"></span>\r\n </span>\r\n <span class=\"hy-choice__label\"><ng-content /></span>\r\n</label>\r\n@if (description()) {\r\n <p class=\"hy-choice__description\" [id]=\"descriptionId\">{{ description() }}</p>\r\n}\r\n",
546
+ styles: [":host{display:block}.hy-choice__row{display:inline-flex;align-items:flex-start;gap:var(--hy-space-3);min-block-size:1.5rem;color:var(--hy-ink);cursor:pointer}:host([data-disabled]) .hy-choice__row{opacity:.5;cursor:not-allowed}.hy-choice__control{position:relative;display:grid;place-items:center;flex:none;margin-block-start:.1em;transition:background-color var(--hy-dur-quick) var(--hy-ease-out),border-color var(--hy-dur-quick) var(--hy-ease-out),box-shadow var(--hy-dur-quick) var(--hy-ease-out)}.hy-choice__input{position:absolute;inset:-.25rem;margin:0;opacity:0;cursor:inherit}.hy-choice__control:has(:focus-visible){box-shadow:var(--hy-focus-ring)}.hy-choice__label{line-height:1.5}.hy-choice__description{margin:var(--hy-space-1) 0 0;padding-inline-start:calc(1.25rem + var(--hy-space-3));color:var(--hy-ink-3);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-checkbox__box{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:var(--hy-checkbox-radius, 6px);background:var(--hy-surface-1);color:var(--hy-primary-ink)}.hy-checkbox__mark{--hy-icon-size: .875rem;opacity:0;scale:.6;transition:opacity var(--hy-dur-quick) var(--hy-ease-out),scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-checkbox__box,:host([data-indeterminate]) .hy-checkbox__box{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-checkbox__mark,:host([data-indeterminate]) .hy-checkbox__mark{opacity:1;scale:1}:host([data-invalid]) .hy-checkbox__box{border-color:var(--hy-danger)}.hy-radio__circle{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:50%;background:var(--hy-surface-1)}.hy-radio__dot{inline-size:.5rem;block-size:.5rem;border-radius:50%;background:var(--hy-primary-ink);scale:0;transition:scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-radio__circle{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-radio__dot{scale:1}:host(.hy-radio-group){display:flex;flex-direction:column;gap:var(--hy-space-3)}.hy-radio-group__label{font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small);font-weight:560}.hy-radio-group__items{display:flex;flex-direction:column;gap:var(--hy-space-3)}:host([data-orientation=\"horizontal\"]) .hy-radio-group__items{flex-direction:row;flex-wrap:wrap;gap:var(--hy-space-5)}.hy-choice__error{margin:0;color:var(--hy-danger);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-switch__track{inline-size:2.5rem;block-size:1.5rem;margin-block-start:0;padding:2px;place-items:center start;border-radius:var(--hy-radius-pill);background:var(--hy-switch-track, color-mix(in srgb, var(--hy-ink) 22%, transparent));box-shadow:inset 0 1px 2px #0f1a2426}.hy-switch__thumb{inline-size:1.25rem;block-size:1.25rem;border-radius:50%;background:var(--hy-glass-reflection),#fff;box-shadow:0 1px 3px #00000040,inset 0 0 0 .5px #0000000f;transition:translate var(--hy-dur-settle) var(--hy-ease-spring),inline-size var(--hy-dur-quick) var(--hy-ease-out)}:host([data-checked]) .hy-switch__track{background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-switch__thumb{translate:1rem 0}:host([data-checked]) .hy-switch__thumb:dir(rtl){translate:-1rem 0}:host(:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb,.hy-switch__thumb[data-dragging]{inline-size:1.5rem}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb{translate:.75rem 0}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb:dir(rtl){translate:-.75rem 0}.hy-switch__thumb[data-dragging],.hy-switch__thumb[data-dragging]:dir(rtl){translate:var(--_drag) 0;transition:inline-size var(--hy-dur-quick) var(--hy-ease-out)}@media(forced-colors:active){.hy-choice__control{border:1px solid CanvasText}:host([data-checked]) .hy-choice__control{background:Highlight}}\n"]
547
+ }]
548
+ }],
549
+ propDecorators: {
550
+ value: [{
551
+ type: i0.Input,
552
+ args: [{
553
+ isSignal: true,
554
+ alias: "value",
555
+ required: true
556
+ }]
557
+ }],
558
+ description: [{
559
+ type: i0.Input,
560
+ args: [{
561
+ isSignal: true,
562
+ alias: "description",
563
+ required: false
564
+ }]
565
+ }],
566
+ disabled: [{
567
+ type: i0.Input,
568
+ args: [{
569
+ isSignal: true,
570
+ alias: "disabled",
571
+ required: false
572
+ }]
573
+ }]
574
+ }
575
+ });
576
+ const SLOP = 4;
577
+ const PRESSED_THUMB = 1.5;
578
+ var HySwitch = class HySwitch {
579
+ descriptionId = injectId("switch-desc");
580
+ drag = signal(null, ...ngDevMode ? [{ debugName: "drag" }] : /* istanbul ignore next */ []);
581
+ press = null;
582
+ landed = null;
583
+ checked = model(false, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
584
+ description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
585
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
586
+ disabled = input(false, {
587
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
588
+ transform: booleanAttribute
589
+ });
590
+ required = input(false, {
591
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
592
+ transform: booleanAttribute
593
+ });
594
+ touch = output();
595
+ onChange(event) {
596
+ this.checked.set(event.target.checked);
597
+ }
598
+ onDown(event) {
599
+ if (this.disabled() || event.button !== 0) return;
600
+ const track = event.currentTarget;
601
+ const rem = parseFloat(getComputedStyle(track.ownerDocument.documentElement).fontSize) || 16;
602
+ const travel = track.clientWidth - 4 - PRESSED_THUMB * rem;
603
+ this.press = {
604
+ x: event.clientX,
605
+ from: this.checked() ? travel : 0,
606
+ travel,
607
+ dir: getComputedStyle(track).direction === "rtl" ? -1 : 1,
608
+ pos: this.checked() ? travel : 0
609
+ };
610
+ }
611
+ onMove(event) {
612
+ const press = this.press;
613
+ if (!press) return;
614
+ const moved = (event.clientX - press.x) * press.dir;
615
+ if (this.drag() === null) {
616
+ if (Math.abs(moved) < SLOP) return;
617
+ try {
618
+ event.currentTarget.setPointerCapture(event.pointerId);
619
+ } catch {}
620
+ }
621
+ const raw = press.from + moved;
622
+ const over = raw < 0 ? raw : raw > press.travel ? raw - press.travel : 0;
623
+ press.pos = Math.min(Math.max(raw, 0), press.travel) + rubberband(over, press.travel);
624
+ this.drag.set(press.pos * press.dir);
625
+ }
626
+ onUp(cancelled = false) {
627
+ const press = this.press;
628
+ this.press = null;
629
+ if (!press || this.drag() === null) return;
630
+ this.drag.set(null);
631
+ const on = press.pos > press.travel / 2;
632
+ if (cancelled) {
633
+ this.checked.set(on);
634
+ return;
635
+ }
636
+ this.landed = on;
637
+ setTimeout(() => {
638
+ if (this.landed === null) return;
639
+ this.checked.set(this.landed);
640
+ this.landed = null;
641
+ });
642
+ }
643
+ onClick(event) {
644
+ if (this.landed === null) return;
645
+ event.preventDefault();
646
+ this.checked.set(this.landed);
647
+ this.landed = null;
648
+ }
649
+ static ɵfac = i0.ɵɵngDeclareFactory({
650
+ minVersion: "12.0.0",
651
+ version: "22.2.3",
652
+ ngImport: i0,
653
+ type: HySwitch,
654
+ deps: [],
655
+ target: i0.ɵɵFactoryTarget.Component
656
+ });
657
+ static ɵcmp = i0.ɵɵngDeclareComponent({
658
+ minVersion: "17.0.0",
659
+ version: "22.2.3",
660
+ type: HySwitch,
661
+ isStandalone: true,
662
+ selector: "hy-switch",
663
+ inputs: {
664
+ checked: {
665
+ classPropertyName: "checked",
666
+ publicName: "checked",
667
+ isSignal: true,
668
+ isRequired: false,
669
+ transformFunction: null
670
+ },
671
+ description: {
672
+ classPropertyName: "description",
673
+ publicName: "description",
674
+ isSignal: true,
675
+ isRequired: false,
676
+ transformFunction: null
677
+ },
678
+ name: {
679
+ classPropertyName: "name",
680
+ publicName: "name",
681
+ isSignal: true,
682
+ isRequired: false,
683
+ transformFunction: null
684
+ },
685
+ disabled: {
686
+ classPropertyName: "disabled",
687
+ publicName: "disabled",
688
+ isSignal: true,
689
+ isRequired: false,
690
+ transformFunction: null
691
+ },
692
+ required: {
693
+ classPropertyName: "required",
694
+ publicName: "required",
695
+ isSignal: true,
696
+ isRequired: false,
697
+ transformFunction: null
698
+ }
699
+ },
700
+ outputs: {
701
+ checked: "checkedChange",
702
+ touch: "touch"
703
+ },
704
+ host: {
705
+ properties: {
706
+ "attr.data-checked": "checked() || null",
707
+ "attr.data-disabled": "disabled() || null"
708
+ },
709
+ classAttribute: "hy-choice hy-switch"
710
+ },
711
+ ngImport: i0,
712
+ template: "<label class=\"hy-choice__row\">\r\n <span\r\n class=\"hy-choice__control hy-switch__track\"\r\n (pointerdown)=\"onDown($event)\"\r\n (pointermove)=\"onMove($event)\"\r\n (pointerup)=\"onUp()\"\r\n (pointercancel)=\"onUp(true)\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n role=\"switch\"\r\n class=\"hy-choice__input\"\r\n [name]=\"name()\"\r\n [checked]=\"checked()\"\r\n [disabled]=\"disabled()\"\r\n [required]=\"required()\"\r\n [attr.aria-checked]=\"checked()\"\r\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\r\n (click)=\"onClick($event)\"\r\n (change)=\"onChange($event)\"\r\n (blur)=\"touch.emit()\"\r\n />\r\n <span\r\n class=\"hy-switch__thumb\"\r\n aria-hidden=\"true\"\r\n [attr.data-dragging]=\"drag() === null ? null : ''\"\r\n [style.--_drag.px]=\"drag()\"\r\n ></span>\r\n </span>\r\n <span class=\"hy-choice__label\"><ng-content /></span>\r\n</label>\r\n@if (description()) {\r\n <p class=\"hy-choice__description\" [id]=\"descriptionId\">{{ description() }}</p>\r\n}\r\n",
713
+ styles: [":host{display:block}.hy-choice__row{display:inline-flex;align-items:flex-start;gap:var(--hy-space-3);min-block-size:1.5rem;color:var(--hy-ink);cursor:pointer}:host([data-disabled]) .hy-choice__row{opacity:.5;cursor:not-allowed}.hy-choice__control{position:relative;display:grid;place-items:center;flex:none;margin-block-start:.1em;transition:background-color var(--hy-dur-quick) var(--hy-ease-out),border-color var(--hy-dur-quick) var(--hy-ease-out),box-shadow var(--hy-dur-quick) var(--hy-ease-out)}.hy-choice__input{position:absolute;inset:-.25rem;margin:0;opacity:0;cursor:inherit}.hy-choice__control:has(:focus-visible){box-shadow:var(--hy-focus-ring)}.hy-choice__label{line-height:1.5}.hy-choice__description{margin:var(--hy-space-1) 0 0;padding-inline-start:calc(1.25rem + var(--hy-space-3));color:var(--hy-ink-3);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-checkbox__box{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:var(--hy-checkbox-radius, 6px);background:var(--hy-surface-1);color:var(--hy-primary-ink)}.hy-checkbox__mark{--hy-icon-size: .875rem;opacity:0;scale:.6;transition:opacity var(--hy-dur-quick) var(--hy-ease-out),scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-checkbox__box,:host([data-indeterminate]) .hy-checkbox__box{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-checkbox__mark,:host([data-indeterminate]) .hy-checkbox__mark{opacity:1;scale:1}:host([data-invalid]) .hy-checkbox__box{border-color:var(--hy-danger)}.hy-radio__circle{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:50%;background:var(--hy-surface-1)}.hy-radio__dot{inline-size:.5rem;block-size:.5rem;border-radius:50%;background:var(--hy-primary-ink);scale:0;transition:scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-radio__circle{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-radio__dot{scale:1}:host(.hy-radio-group){display:flex;flex-direction:column;gap:var(--hy-space-3)}.hy-radio-group__label{font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small);font-weight:560}.hy-radio-group__items{display:flex;flex-direction:column;gap:var(--hy-space-3)}:host([data-orientation=\"horizontal\"]) .hy-radio-group__items{flex-direction:row;flex-wrap:wrap;gap:var(--hy-space-5)}.hy-choice__error{margin:0;color:var(--hy-danger);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-switch__track{inline-size:2.5rem;block-size:1.5rem;margin-block-start:0;padding:2px;place-items:center start;border-radius:var(--hy-radius-pill);background:var(--hy-switch-track, color-mix(in srgb, var(--hy-ink) 22%, transparent));box-shadow:inset 0 1px 2px #0f1a2426}.hy-switch__thumb{inline-size:1.25rem;block-size:1.25rem;border-radius:50%;background:var(--hy-glass-reflection),#fff;box-shadow:0 1px 3px #00000040,inset 0 0 0 .5px #0000000f;transition:translate var(--hy-dur-settle) var(--hy-ease-spring),inline-size var(--hy-dur-quick) var(--hy-ease-out)}:host([data-checked]) .hy-switch__track{background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-switch__thumb{translate:1rem 0}:host([data-checked]) .hy-switch__thumb:dir(rtl){translate:-1rem 0}:host(:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb,.hy-switch__thumb[data-dragging]{inline-size:1.5rem}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb{translate:.75rem 0}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb:dir(rtl){translate:-.75rem 0}.hy-switch__thumb[data-dragging],.hy-switch__thumb[data-dragging]:dir(rtl){translate:var(--_drag) 0;transition:inline-size var(--hy-dur-quick) var(--hy-ease-out)}@media(forced-colors:active){.hy-choice__control{border:1px solid CanvasText}:host([data-checked]) .hy-choice__control{background:Highlight}}\n"],
714
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
715
+ });
716
+ };
717
+ i0.ɵɵngDeclareClassMetadata({
718
+ minVersion: "12.0.0",
719
+ version: "22.2.3",
720
+ ngImport: i0,
721
+ type: HySwitch,
722
+ decorators: [{
723
+ type: Component,
724
+ args: [{
725
+ selector: "hy-switch",
726
+ changeDetection: ChangeDetectionStrategy.OnPush,
727
+ host: {
728
+ class: "hy-choice hy-switch",
729
+ "[attr.data-checked]": "checked() || null",
730
+ "[attr.data-disabled]": "disabled() || null"
731
+ },
732
+ template: "<label class=\"hy-choice__row\">\r\n <span\r\n class=\"hy-choice__control hy-switch__track\"\r\n (pointerdown)=\"onDown($event)\"\r\n (pointermove)=\"onMove($event)\"\r\n (pointerup)=\"onUp()\"\r\n (pointercancel)=\"onUp(true)\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n role=\"switch\"\r\n class=\"hy-choice__input\"\r\n [name]=\"name()\"\r\n [checked]=\"checked()\"\r\n [disabled]=\"disabled()\"\r\n [required]=\"required()\"\r\n [attr.aria-checked]=\"checked()\"\r\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\r\n (click)=\"onClick($event)\"\r\n (change)=\"onChange($event)\"\r\n (blur)=\"touch.emit()\"\r\n />\r\n <span\r\n class=\"hy-switch__thumb\"\r\n aria-hidden=\"true\"\r\n [attr.data-dragging]=\"drag() === null ? null : ''\"\r\n [style.--_drag.px]=\"drag()\"\r\n ></span>\r\n </span>\r\n <span class=\"hy-choice__label\"><ng-content /></span>\r\n</label>\r\n@if (description()) {\r\n <p class=\"hy-choice__description\" [id]=\"descriptionId\">{{ description() }}</p>\r\n}\r\n",
733
+ styles: [":host{display:block}.hy-choice__row{display:inline-flex;align-items:flex-start;gap:var(--hy-space-3);min-block-size:1.5rem;color:var(--hy-ink);cursor:pointer}:host([data-disabled]) .hy-choice__row{opacity:.5;cursor:not-allowed}.hy-choice__control{position:relative;display:grid;place-items:center;flex:none;margin-block-start:.1em;transition:background-color var(--hy-dur-quick) var(--hy-ease-out),border-color var(--hy-dur-quick) var(--hy-ease-out),box-shadow var(--hy-dur-quick) var(--hy-ease-out)}.hy-choice__input{position:absolute;inset:-.25rem;margin:0;opacity:0;cursor:inherit}.hy-choice__control:has(:focus-visible){box-shadow:var(--hy-focus-ring)}.hy-choice__label{line-height:1.5}.hy-choice__description{margin:var(--hy-space-1) 0 0;padding-inline-start:calc(1.25rem + var(--hy-space-3));color:var(--hy-ink-3);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-checkbox__box{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:var(--hy-checkbox-radius, 6px);background:var(--hy-surface-1);color:var(--hy-primary-ink)}.hy-checkbox__mark{--hy-icon-size: .875rem;opacity:0;scale:.6;transition:opacity var(--hy-dur-quick) var(--hy-ease-out),scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-checkbox__box,:host([data-indeterminate]) .hy-checkbox__box{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-checkbox__mark,:host([data-indeterminate]) .hy-checkbox__mark{opacity:1;scale:1}:host([data-invalid]) .hy-checkbox__box{border-color:var(--hy-danger)}.hy-radio__circle{inline-size:1.25rem;block-size:1.25rem;border:1.5px solid var(--hy-line-strong);border-radius:50%;background:var(--hy-surface-1)}.hy-radio__dot{inline-size:.5rem;block-size:.5rem;border-radius:50%;background:var(--hy-primary-ink);scale:0;transition:scale var(--hy-dur-settle) var(--hy-ease-spring)}:host([data-checked]) .hy-radio__circle{border-color:var(--hy-choice-checked, var(--hy-primary));background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-radio__dot{scale:1}:host(.hy-radio-group){display:flex;flex-direction:column;gap:var(--hy-space-3)}.hy-radio-group__label{font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small);font-weight:560}.hy-radio-group__items{display:flex;flex-direction:column;gap:var(--hy-space-3)}:host([data-orientation=\"horizontal\"]) .hy-radio-group__items{flex-direction:row;flex-wrap:wrap;gap:var(--hy-space-5)}.hy-choice__error{margin:0;color:var(--hy-danger);font-size:var(--hy-step--1);letter-spacing:var(--hy-tracking-small)}.hy-switch__track{inline-size:2.5rem;block-size:1.5rem;margin-block-start:0;padding:2px;place-items:center start;border-radius:var(--hy-radius-pill);background:var(--hy-switch-track, color-mix(in srgb, var(--hy-ink) 22%, transparent));box-shadow:inset 0 1px 2px #0f1a2426}.hy-switch__thumb{inline-size:1.25rem;block-size:1.25rem;border-radius:50%;background:var(--hy-glass-reflection),#fff;box-shadow:0 1px 3px #00000040,inset 0 0 0 .5px #0000000f;transition:translate var(--hy-dur-settle) var(--hy-ease-spring),inline-size var(--hy-dur-quick) var(--hy-ease-out)}:host([data-checked]) .hy-switch__track{background:var(--hy-choice-checked, var(--hy-primary))}:host([data-checked]) .hy-switch__thumb{translate:1rem 0}:host([data-checked]) .hy-switch__thumb:dir(rtl){translate:-1rem 0}:host(:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb,.hy-switch__thumb[data-dragging]{inline-size:1.5rem}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb{translate:.75rem 0}:host([data-checked]:not([data-disabled])) .hy-choice__row:active .hy-switch__thumb:dir(rtl){translate:-.75rem 0}.hy-switch__thumb[data-dragging],.hy-switch__thumb[data-dragging]:dir(rtl){translate:var(--_drag) 0;transition:inline-size var(--hy-dur-quick) var(--hy-ease-out)}@media(forced-colors:active){.hy-choice__control{border:1px solid CanvasText}:host([data-checked]) .hy-choice__control{background:Highlight}}\n"]
734
+ }]
735
+ }],
736
+ propDecorators: {
737
+ checked: [{
738
+ type: i0.Input,
739
+ args: [{
740
+ isSignal: true,
741
+ alias: "checked",
742
+ required: false
743
+ }]
744
+ }, {
745
+ type: i0.Output,
746
+ args: ["checkedChange"]
747
+ }],
748
+ description: [{
749
+ type: i0.Input,
750
+ args: [{
751
+ isSignal: true,
752
+ alias: "description",
753
+ required: false
754
+ }]
755
+ }],
756
+ name: [{
757
+ type: i0.Input,
758
+ args: [{
759
+ isSignal: true,
760
+ alias: "name",
761
+ required: false
762
+ }]
763
+ }],
764
+ disabled: [{
765
+ type: i0.Input,
766
+ args: [{
767
+ isSignal: true,
768
+ alias: "disabled",
769
+ required: false
770
+ }]
771
+ }],
772
+ required: [{
773
+ type: i0.Input,
774
+ args: [{
775
+ isSignal: true,
776
+ alias: "required",
777
+ required: false
778
+ }]
779
+ }],
780
+ touch: [{
781
+ type: i0.Output,
782
+ args: ["touch"]
783
+ }]
784
+ }
785
+ });
786
+ export { HyCheckbox, HyRadio, HyRadioGroup, HySwitch };
787
+
788
+ //# sourceMappingURL=hyalo-angular-choice.mjs.map