@egose/shadcn-theme-ng-tw 0.2.0 → 0.4.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 (97) hide show
  1. package/README.md +1 -1
  2. package/alert/fesm2022/alert.mjs +1 -1
  3. package/autocomplete/fesm2022/autocomplete.mjs +1 -1
  4. package/button/fesm2022/button.mjs +3 -3
  5. package/checkbox/fesm2022/checkbox.mjs +6 -7
  6. package/checkbox/types/checkbox.d.ts +1 -1
  7. package/combobox/fesm2022/combobox.mjs +1 -1
  8. package/date-picker/README.md +15 -11
  9. package/date-picker/fesm2022/date-picker.mjs +148 -30
  10. package/date-picker/types/date-picker.d.ts +102 -9
  11. package/form-autocomplete/README.md +178 -0
  12. package/form-autocomplete/fesm2022/form-autocomplete.mjs +243 -0
  13. package/form-autocomplete/package.json +24 -0
  14. package/form-autocomplete/types/form-autocomplete.d.ts +81 -0
  15. package/form-checkbox/README.md +29 -18
  16. package/form-checkbox/fesm2022/form-checkbox.mjs +62 -22
  17. package/form-checkbox/types/form-checkbox.d.ts +43 -4
  18. package/form-combobox/README.md +203 -0
  19. package/form-combobox/fesm2022/form-combobox.mjs +305 -0
  20. package/form-combobox/package.json +24 -0
  21. package/form-combobox/types/form-combobox.d.ts +93 -0
  22. package/form-date-picker/README.md +49 -22
  23. package/form-date-picker/fesm2022/form-date-picker.mjs +100 -29
  24. package/form-date-picker/types/form-date-picker.d.ts +37 -1
  25. package/form-date-picker-multi/README.md +192 -0
  26. package/form-date-picker-multi/fesm2022/form-date-picker-multi.mjs +266 -0
  27. package/form-date-picker-multi/package.json +24 -0
  28. package/form-date-picker-multi/types/form-date-picker-multi.d.ts +78 -0
  29. package/form-date-range-picker/README.md +254 -0
  30. package/form-date-range-picker/fesm2022/form-date-range-picker.mjs +263 -0
  31. package/form-date-range-picker/package.json +24 -0
  32. package/form-date-range-picker/types/form-date-range-picker.d.ts +75 -0
  33. package/form-field/README.md +9 -0
  34. package/form-field/fesm2022/form-field.mjs +80 -5
  35. package/form-field/types/form-field.d.ts +50 -2
  36. package/form-field-simple/fesm2022/form-field-simple.mjs +15 -1
  37. package/form-field-simple/types/form-field-simple.d.ts +9 -2
  38. package/form-input-otp/README.md +195 -0
  39. package/form-input-otp/fesm2022/form-input-otp.mjs +226 -0
  40. package/form-input-otp/package.json +24 -0
  41. package/form-input-otp/types/form-input-otp.d.ts +78 -0
  42. package/form-month-year-picker/README.md +189 -0
  43. package/form-month-year-picker/fesm2022/form-month-year-picker.mjs +256 -0
  44. package/form-month-year-picker/package.json +24 -0
  45. package/form-month-year-picker/types/form-month-year-picker.d.ts +73 -0
  46. package/form-native-select/README.md +206 -0
  47. package/form-native-select/fesm2022/form-native-select.mjs +226 -0
  48. package/form-native-select/package.json +24 -0
  49. package/form-native-select/types/form-native-select.d.ts +77 -0
  50. package/form-phone-input/README.md +189 -0
  51. package/form-phone-input/fesm2022/form-phone-input.mjs +230 -0
  52. package/form-phone-input/package.json +24 -0
  53. package/form-phone-input/types/form-phone-input.d.ts +78 -0
  54. package/form-radio-group/README.md +199 -0
  55. package/form-radio-group/fesm2022/form-radio-group.mjs +238 -0
  56. package/form-radio-group/package.json +24 -0
  57. package/form-radio-group/types/form-radio-group.d.ts +83 -0
  58. package/form-searchable-multiselect/README.md +28 -17
  59. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +60 -24
  60. package/form-searchable-multiselect/types/form-searchable-multiselect.d.ts +39 -2
  61. package/form-select/README.md +30 -19
  62. package/form-select/fesm2022/form-select.mjs +65 -29
  63. package/form-select/types/form-select.d.ts +39 -2
  64. package/form-slider/README.md +183 -0
  65. package/form-slider/fesm2022/form-slider.mjs +218 -0
  66. package/form-slider/package.json +24 -0
  67. package/form-slider/types/form-slider.d.ts +80 -0
  68. package/form-switch/README.md +174 -0
  69. package/form-switch/fesm2022/form-switch.mjs +205 -0
  70. package/form-switch/package.json +24 -0
  71. package/form-switch/types/form-switch.d.ts +70 -0
  72. package/form-text-input/README.md +37 -26
  73. package/form-text-input/fesm2022/form-text-input.mjs +60 -24
  74. package/form-text-input/types/form-text-input.d.ts +39 -2
  75. package/form-textarea/README.md +33 -22
  76. package/form-textarea/fesm2022/form-textarea.mjs +60 -24
  77. package/form-textarea/types/form-textarea.d.ts +39 -2
  78. package/form-toggle/README.md +187 -0
  79. package/form-toggle/fesm2022/form-toggle.mjs +275 -0
  80. package/form-toggle/package.json +24 -0
  81. package/form-toggle/types/form-toggle.d.ts +100 -0
  82. package/form-toggle-group/README.md +177 -0
  83. package/form-toggle-group/fesm2022/form-toggle-group.mjs +243 -0
  84. package/form-toggle-group/package.json +24 -0
  85. package/form-toggle-group/types/form-toggle-group.d.ts +85 -0
  86. package/input-group/fesm2022/input-group.mjs +20 -10
  87. package/input-group/types/input-group.d.ts +4 -1
  88. package/native-select/fesm2022/native-select.mjs +18 -6
  89. package/native-select/types/native-select.d.ts +7 -2
  90. package/package.json +57 -1
  91. package/phone-input/README.md +114 -0
  92. package/phone-input/fesm2022/phone-input.mjs +191 -0
  93. package/phone-input/package.json +24 -0
  94. package/phone-input/types/phone-input.d.ts +67 -0
  95. package/sheet/fesm2022/sheet.mjs +1 -1
  96. package/switch/fesm2022/switch.mjs +7 -5
  97. package/switch/types/switch.d.ts +2 -1
@@ -0,0 +1,177 @@
1
+ # Form Toggle Group (`@egose/shadcn-theme-ng/form-toggle-group`)
2
+
3
+ A ready-made reactive-form option group: label + `hlm-toggle-group` buttons + validation error/hint display in one tag. For single- or multi-select button groups (alignment, view modes, formatting).
4
+
5
+ The Angular implementation is a standalone wrapper: it renders `EgFormField` from `@egose/shadcn-theme-ng/form-field-simple` (like `eg-form-checkbox`, because `hlm-toggle-group` exposes no `BrnFieldControl`), `HlmError` / `HlmHint`, `HlmLabel`, and `HlmToggleGroup` / `HlmToggleGroupItem` from `@egose/shadcn-theme-ng/toggle-group`. The group is bound with `[formControlName]="controlName()"`, so the parent `FormGroup` owns the `string | string[]` value. It must live inside a `FormGroupDirective` (`[formGroup]` parent); ids come from `HlmFormIdGenerator` unless overridden.
6
+
7
+ > **Ships as:** `@egose/shadcn-theme-ng/form-toggle-group` and `@egose/shadcn-theme-ng-tw/form-toggle-group`
8
+ > (the `tw:`-prefixed Tailwind variant). Both expose the identical TypeScript surface; only the
9
+ > emitted Tailwind class strings differ. See the [package README](../../README.md) for install
10
+ > steps, peer dependencies, and Tailwind setup. Do not publish this project directory independently.
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ # Plain Tailwind (no prefix)
16
+ npm install @egose/shadcn-theme-ng
17
+
18
+ # tw:-prefixed Tailwind variant
19
+ npm install @egose/shadcn-theme-ng-tw
20
+ ```
21
+
22
+ Peer dependencies (Angular, `@spartan-ng/brain`, `rxjs`, …) are documented in the
23
+ [package README](../../README.md#peer-dependencies). This subpath additionally relies at runtime on
24
+ `@egose/shadcn-theme-ng/toggle-group`, `@egose/shadcn-theme-ng/toggle`, `@egose/shadcn-theme-ng/form-field`,
25
+ `@egose/shadcn-theme-ng/form-field-simple`, and `@egose/shadcn-theme-ng/label`.
26
+
27
+ ## Imports
28
+
29
+ Exported from the subpath root (`projects/form-toggle-group/src/public-api.ts`):
30
+
31
+ ```ts
32
+ import { EgFormToggleGroup, provideEgFormToggleGroupConfig } from '@egose/shadcn-theme-ng/form-toggle-group';
33
+ // tw variant: replace with '@egose/shadcn-theme-ng-tw/form-toggle-group'
34
+ ```
35
+
36
+ `ControlValueAccessor` behavior: `eg-form-toggle-group` itself is not a `ControlValueAccessor`; the
37
+ inner `hlm-toggle-group` is (bound via `formControlName`), so `formControlName`/`formGroup` handling,
38
+ `Validators`, and `disabled` state from the control all flow through the parent form.
39
+
40
+ ## Anatomy / Structure
41
+
42
+ ```html
43
+ <form [formGroup]="form">
44
+ <eg-form-toggle-group controlName="align" label="Align" [options]="options" [required]="true" error="Pick one." />
45
+ </form>
46
+ ```
47
+
48
+ Selector (from source): `eg-form-toggle-group` (standalone component, host `tw:w-full`).
49
+
50
+ ## API reference
51
+
52
+ ### `EgFormToggleGroup` — `eg-form-toggle-group`
53
+
54
+ | Input | Type | Default | Description |
55
+ | ------------- | ------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
56
+ | `controlName` | `string` | `''` | `formControlName` key inside the parent `FormGroup`. **Required.** |
57
+ | `label` | `string \| undefined` | — | Group label text (hidden when omitted). |
58
+ | `error` | `string \| undefined` | — | Error text shown when invalid. |
59
+ | `autoError` | `boolean` | `true` | Auto-resolve the message from the control's `ValidationErrors` when `error` is unset. Explicit `error` always wins; `error=""` counts as unset. Global wording via `provideEgFormErrorMessages`. |
60
+ | `hint` | `string \| undefined` | — | Hint text shown otherwise. |
61
+ | `controlId` | `string \| undefined` | — | Explicit id prefix (first priority for `effectiveId`). |
62
+ | `id` | `string \| undefined` | — | Fallback id prefix (second priority). |
63
+ | `type` | `'single' \| 'multiple'` | `'single'` | Selection mode forwarded to the group. |
64
+ | `disabled` | `boolean` | `false` | Locks interaction (form control stays enabled). |
65
+ | `required` | `boolean` | `false` | Shows a red `*` next to the label. |
66
+ | `variant` | toggle variant | `'default'` | Variant forwarded to the group. |
67
+ | `size` | toggle size | `'default'` | Size forwarded to the group. |
68
+ | `options` | `{ value, label, disabled? }[]` | `[]` | Rendered as `hlmToggleGroupItem` buttons. |
69
+ | `class` | `ClassValue` | `''` | Extra host classes (base `tw:w-full`). |
70
+ | `labelClass` | `string` | `''` | Extra group-label classes (base `tw:mb-1`). |
71
+ | `groupClass` | `string` | `''` | Extra group classes. |
72
+ | `errorClass` | `string` | `''` | Extra error classes (base `tw:mt-0`). |
73
+ | `hintClass` | `string` | `''` | Extra hint classes (base `tw:mt-0`). |
74
+
75
+ | Member | Description |
76
+ | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
77
+ | `effectiveId` | `controlId() \|\| id() \|\| generated` — id prefix for `errorId` / `hintId`. |
78
+ | `errorId` / `hintId` | `effectiveId + '-error' / '-hint'`. |
79
+ | `describedBy()` | `errorId` when `error()` is set and control is invalid + dirty/touched, else `hintId` when `hint()` is set, else `null` — wired to each item's `aria-describedby`. |
80
+
81
+ Requires a `[formGroup]` ancestor (injects `FormGroupDirective`, provides `ControlContainer → FormGroupDirective`).
82
+
83
+ ## Examples
84
+
85
+ ### 1. Single-select alignment
86
+
87
+ ```ts
88
+ import { Component, inject } from '@angular/core';
89
+ import { FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';
90
+ import { EgFormToggleGroup } from '@egose/shadcn-theme-ng/form-toggle-group';
91
+
92
+ @Component({
93
+ selector: 'app-align',
94
+ standalone: true,
95
+ imports: [ReactiveFormsModule, EgFormToggleGroup],
96
+ template: `
97
+ <form [formGroup]="form" (ngSubmit)="submit()">
98
+ <eg-form-toggle-group controlName="align" label="Align" [options]="options" [required]="true" error="Pick one." />
99
+ <button type="submit" [disabled]="form.invalid">Save</button>
100
+ </form>
101
+ `,
102
+ })
103
+ export class AlignComponent {
104
+ private readonly fb = inject(FormBuilder);
105
+ readonly form = this.fb.group({ align: ['', Validators.required] });
106
+ readonly options = [
107
+ { value: 'left', label: 'Left' },
108
+ { value: 'center', label: 'Center' },
109
+ { value: 'right', label: 'Right' },
110
+ ];
111
+ submit() {
112
+ console.log(this.form.value.align);
113
+ }
114
+ }
115
+ ```
116
+
117
+ ### 2. Multi-select formats
118
+
119
+ ```ts
120
+ import { Component, inject } from '@angular/core';
121
+ import { FormBuilder, ReactiveFormsModule } from '@angular/forms';
122
+ import { EgFormToggleGroup } from '@egose/shadcn-theme-ng/form-toggle-group';
123
+
124
+ @Component({
125
+ selector: 'app-format-group',
126
+ standalone: true,
127
+ imports: [ReactiveFormsModule, EgFormToggleGroup],
128
+ template: `
129
+ <form [formGroup]="form">
130
+ <eg-form-toggle-group
131
+ controlName="formats"
132
+ label="Formats"
133
+ type="multiple"
134
+ [options]="options"
135
+ hint="Combine as needed."
136
+ />
137
+ </form>
138
+ `,
139
+ })
140
+ export class FormatGroupComponent {
141
+ private readonly fb = inject(FormBuilder);
142
+ readonly form = this.fb.group({ formats: [<string[]>[]] });
143
+ readonly options = [
144
+ { value: 'bold', label: 'Bold' },
145
+ { value: 'italic', label: 'Italic' },
146
+ { value: 'underline', label: 'Underline' },
147
+ ];
148
+ }
149
+ ```
150
+
151
+ ## Accessibility notes
152
+
153
+ - The group label is visual; each item carries its option text and `aria-describedby` (error/hint id).
154
+ - The required `*` is visual; pair with `Validators.required` so assistive tech and validation agree.
155
+
156
+ ## Theming / CSS variables
157
+
158
+ No component-specific CSS variables. Style per-instance via `class` / `labelClass` / `groupClass` / `errorClass` / `hintClass` (precedence: library base < global config < per-instance); `variant` / `size` drive the button look.
159
+
160
+ Global defaults per styling slot via the wrapper config:
161
+
162
+ ```ts
163
+ import { provideEgFormToggleGroupConfig } from '@egose/shadcn-theme-ng/form-toggle-group';
164
+
165
+ await bootstrapApplication(App, {
166
+ providers: [provideEgFormToggleGroupConfig({ labelClass: 'tw:font-medium' })],
167
+ });
168
+ ```
169
+
170
+ ## Related subpaths
171
+
172
+ - `@egose/shadcn-theme-ng/toggle-group` — raw `hlm-toggle-group` / `hlmToggleGroupItem` for custom layouts.
173
+ - `@egose/shadcn-theme-ng/toggle` — raw `hlmToggle` directive.
174
+ - `@egose/shadcn-theme-ng/form-toggle` — the single boolean toggle (`eg-form-toggle`).
175
+ - `@egose/shadcn-theme-ng/form-radio-group` — single-choice alternative with radios.
176
+ - `@egose/shadcn-theme-ng/form-field` — `hlm-error` / `hlm-hint` used internally.
177
+ - `@egose/shadcn-theme-ng/form-field-simple` — `eg-form-field` used internally.
@@ -0,0 +1,243 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, inject, input, computed, Component } from '@angular/core';
3
+ import * as i1 from '@angular/forms';
4
+ import { FormGroupDirective, ReactiveFormsModule, ControlContainer } from '@angular/forms';
5
+ import { injectEgFormErrorMessages, HlmFormIdGenerator, resolveEgFormError, HlmError, HlmHint } from '@egose/shadcn-theme-ng-tw/form-field';
6
+ import { EgFormField } from '@egose/shadcn-theme-ng-tw/form-field-simple';
7
+ import { HlmLabel } from '@egose/shadcn-theme-ng-tw/label';
8
+ import { HlmToggleGroup, HlmToggleGroupItem } from '@egose/shadcn-theme-ng-tw/toggle-group';
9
+ import { hlm } from '@egose/shadcn-theme-ng-tw/utils';
10
+
11
+ const EgFormToggleGroupConfigToken = new InjectionToken('EgFormToggleGroupConfig');
12
+ function provideEgFormToggleGroupConfig(config) {
13
+ return { provide: EgFormToggleGroupConfigToken, useValue: { ...config } };
14
+ }
15
+ function injectEgFormToggleGroupConfig() {
16
+ return inject(EgFormToggleGroupConfigToken, { optional: true }) ?? {};
17
+ }
18
+
19
+ class EgFormToggleGroup {
20
+ formGroupDirective = inject(FormGroupDirective);
21
+ _errorMessages = injectEgFormErrorMessages();
22
+ generatedId = inject(HlmFormIdGenerator).generate('eg-form-toggle-group');
23
+ _config = injectEgFormToggleGroupConfig();
24
+ label = input(undefined, /* @ts-ignore */
25
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
26
+ controlId = input(undefined, /* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "controlId" }] : /* istanbul ignore next */ []));
28
+ controlName = input('', /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "controlName" }] : /* istanbul ignore next */ []));
30
+ error = input(undefined, /* @ts-ignore */
31
+ ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
32
+ /**
33
+ * Auto-resolve the displayed message from the control's `ValidationErrors`
34
+ * when `error()` is unset. Explicit `error()` always wins. Set to `false`
35
+ * for manual-only messages.
36
+ */
37
+ autoError = input(true, /* @ts-ignore */
38
+ ...(ngDevMode ? [{ debugName: "autoError" }] : /* istanbul ignore next */ []));
39
+ hint = input(undefined, /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
41
+ id = input(undefined, /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
43
+ type = input('single', /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
45
+ disabled = input(false, /* @ts-ignore */
46
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
47
+ required = input(false, /* @ts-ignore */
48
+ ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
49
+ variant = input('default', /* @ts-ignore */
50
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
51
+ size = input('default', /* @ts-ignore */
52
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
53
+ options = input([], /* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
55
+ effectiveId = computed(() => this.controlId() || this.id() || this.generatedId, /* @ts-ignore */
56
+ ...(ngDevMode ? [{ debugName: "effectiveId" }] : /* istanbul ignore next */ []));
57
+ errorId = computed(() => `${this.effectiveId()}-error`, /* @ts-ignore */
58
+ ...(ngDevMode ? [{ debugName: "errorId" }] : /* istanbul ignore next */ []));
59
+ hintId = computed(() => `${this.effectiveId()}-hint`, /* @ts-ignore */
60
+ ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
61
+ /**
62
+ * Displayed message: explicit `error()` wins; otherwise (when `autoError()`)
63
+ * auto-resolved from the control's `ValidationErrors`. Plain method (not a
64
+ * computed): `ValidationErrors` is not a signal, so the control must be read
65
+ * fresh on every change-detection pass.
66
+ */
67
+ resolvedError() {
68
+ const explicit = this.error();
69
+ if (explicit)
70
+ return explicit;
71
+ if (!this.autoError())
72
+ return undefined;
73
+ const control = this.formGroupDirective.form.get(this.controlName());
74
+ return resolveEgFormError(control?.errors ?? null, this.label(), this._errorMessages);
75
+ }
76
+ /**
77
+ * Whether the error is surfaced: message present + control invalid +
78
+ * touched/dirty/submitted. Gates the visual `<hlm-error>` (and
79
+ * `describedBy()`, where present) so sighted and screen-reader output agree.
80
+ */
81
+ showError() {
82
+ const control = this.formGroupDirective.form.get(this.controlName());
83
+ return (!!this.resolvedError() &&
84
+ !!control?.invalid &&
85
+ (control.dirty || control.touched || this.formGroupDirective.submitted));
86
+ }
87
+ /**
88
+ * Combined lock for the brain `linkedSignal`-based disabled state: the raw
89
+ * input write always carries the resolved value, so a same-pass
90
+ * wrapper-toggle + `control.disable()` cannot clobber CVA state.
91
+ */
92
+ effectiveDisabled() {
93
+ return this.disabled() || !!this.formGroupDirective.form.get(this.controlName())?.disabled;
94
+ }
95
+ describedBy() {
96
+ return this.showError() ? this.errorId() : this.hint() ? this.hintId() : null;
97
+ }
98
+ // Styling
99
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
100
+ labelClass = input('', /* @ts-ignore */
101
+ ...(ngDevMode ? [{ debugName: "labelClass" }] : /* istanbul ignore next */ []));
102
+ groupClass = input('', /* @ts-ignore */
103
+ ...(ngDevMode ? [{ debugName: "groupClass" }] : /* istanbul ignore next */ []));
104
+ errorClass = input('', /* @ts-ignore */
105
+ ...(ngDevMode ? [{ debugName: "errorClass" }] : /* istanbul ignore next */ []));
106
+ hintClass = input('', /* @ts-ignore */
107
+ ...(ngDevMode ? [{ debugName: "hintClass" }] : /* istanbul ignore next */ []));
108
+ // Computed classes (library base < global config < per-instance)
109
+ $userClass = computed(() => hlm('tw:w-full', this.userClass()), /* @ts-ignore */
110
+ ...(ngDevMode ? [{ debugName: "$userClass" }] : /* istanbul ignore next */ []));
111
+ $labelClass = computed(() => hlm('tw:mb-1', this._config.labelClass, this.labelClass()), /* @ts-ignore */
112
+ ...(ngDevMode ? [{ debugName: "$labelClass" }] : /* istanbul ignore next */ []));
113
+ $groupClass = computed(() => hlm(this._config.groupClass, this.groupClass()), /* @ts-ignore */
114
+ ...(ngDevMode ? [{ debugName: "$groupClass" }] : /* istanbul ignore next */ []));
115
+ $errorClass = computed(() => hlm('tw:mt-0', this._config.errorClass, this.errorClass()), /* @ts-ignore */
116
+ ...(ngDevMode ? [{ debugName: "$errorClass" }] : /* istanbul ignore next */ []));
117
+ $hintClass = computed(() => hlm('tw:mt-0', this._config.hintClass, this.hintClass()), /* @ts-ignore */
118
+ ...(ngDevMode ? [{ debugName: "$hintClass" }] : /* istanbul ignore next */ []));
119
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EgFormToggleGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
120
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: EgFormToggleGroup, isStandalone: true, selector: "eg-form-toggle-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, controlId: { classPropertyName: "controlId", publicName: "controlId", isSignal: true, isRequired: false, transformFunction: null }, controlName: { classPropertyName: "controlName", publicName: "controlName", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, autoError: { classPropertyName: "autoError", publicName: "autoError", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, labelClass: { classPropertyName: "labelClass", publicName: "labelClass", isSignal: true, isRequired: false, transformFunction: null }, groupClass: { classPropertyName: "groupClass", publicName: "groupClass", isSignal: true, isRequired: false, transformFunction: null }, errorClass: { classPropertyName: "errorClass", publicName: "errorClass", isSignal: true, isRequired: false, transformFunction: null }, hintClass: { classPropertyName: "hintClass", publicName: "hintClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "$userClass()" } }, providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }], ngImport: i0, template: `
121
+ @let lbl = label();
122
+ @let cnm = controlName();
123
+ @let hnt = hint();
124
+ @let rqrd = required();
125
+
126
+ <eg-form-field>
127
+ @if (lbl) {
128
+ <span hlmLabel [class]="$labelClass()"
129
+ >{{ lbl }}
130
+ @if (rqrd) {
131
+ <span class="tw:text-red-500">*</span>
132
+ }
133
+ </span>
134
+ }
135
+
136
+ <hlm-toggle-group
137
+ [formControlName]="cnm"
138
+ [type]="type()"
139
+ [disabled]="effectiveDisabled()"
140
+ [variant]="variant()"
141
+ [size]="size()"
142
+ [class]="$groupClass()"
143
+ >
144
+ @for (option of options(); track option.value) {
145
+ <button
146
+ hlmToggleGroupItem
147
+ type="button"
148
+ [value]="option.value"
149
+ [disabled]="option.disabled ?? false"
150
+ [attr.aria-describedby]="describedBy()"
151
+ >
152
+ {{ option.label }}
153
+ </button>
154
+ }
155
+ </hlm-toggle-group>
156
+
157
+ @if (showError()) {
158
+ <hlm-error [id]="errorId()" [class]="$errorClass()">
159
+ {{ resolvedError() }}
160
+ </hlm-error>
161
+ }
162
+
163
+ @if (hnt) {
164
+ <hlm-hint [id]="hintId()" [class]="$hintClass()">
165
+ {{ hnt }}
166
+ </hlm-hint>
167
+ }
168
+ </eg-form-field>
169
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: HlmError, selector: "hlm-error", inputs: ["class"] }, { kind: "directive", type: HlmHint, selector: "hlm-hint", inputs: ["class"] }, { kind: "directive", type: HlmLabel, selector: "[hlmLabel]", inputs: ["class"] }, { kind: "directive", type: HlmToggleGroup, selector: "[hlmToggleGroup],hlm-toggle-group", inputs: ["variant", "size", "spacing", "orientation"] }, { kind: "directive", type: HlmToggleGroupItem, selector: "button[hlmToggleGroupItem]", inputs: ["variant", "size"] }, { kind: "component", type: EgFormField, selector: "eg-form-field", inputs: ["class"] }] });
170
+ }
171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EgFormToggleGroup, decorators: [{
172
+ type: Component,
173
+ args: [{
174
+ selector: 'eg-form-toggle-group',
175
+ standalone: true,
176
+ host: {
177
+ '[class]': '$userClass()',
178
+ },
179
+ imports: [ReactiveFormsModule, HlmError, HlmHint, HlmLabel, HlmToggleGroup, HlmToggleGroupItem, EgFormField],
180
+ providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }],
181
+ template: `
182
+ @let lbl = label();
183
+ @let cnm = controlName();
184
+ @let hnt = hint();
185
+ @let rqrd = required();
186
+
187
+ <eg-form-field>
188
+ @if (lbl) {
189
+ <span hlmLabel [class]="$labelClass()"
190
+ >{{ lbl }}
191
+ @if (rqrd) {
192
+ <span class="tw:text-red-500">*</span>
193
+ }
194
+ </span>
195
+ }
196
+
197
+ <hlm-toggle-group
198
+ [formControlName]="cnm"
199
+ [type]="type()"
200
+ [disabled]="effectiveDisabled()"
201
+ [variant]="variant()"
202
+ [size]="size()"
203
+ [class]="$groupClass()"
204
+ >
205
+ @for (option of options(); track option.value) {
206
+ <button
207
+ hlmToggleGroupItem
208
+ type="button"
209
+ [value]="option.value"
210
+ [disabled]="option.disabled ?? false"
211
+ [attr.aria-describedby]="describedBy()"
212
+ >
213
+ {{ option.label }}
214
+ </button>
215
+ }
216
+ </hlm-toggle-group>
217
+
218
+ @if (showError()) {
219
+ <hlm-error [id]="errorId()" [class]="$errorClass()">
220
+ {{ resolvedError() }}
221
+ </hlm-error>
222
+ }
223
+
224
+ @if (hnt) {
225
+ <hlm-hint [id]="hintId()" [class]="$hintClass()">
226
+ {{ hnt }}
227
+ </hlm-hint>
228
+ }
229
+ </eg-form-field>
230
+ `,
231
+ }]
232
+ }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], controlId: [{ type: i0.Input, args: [{ isSignal: true, alias: "controlId", required: false }] }], controlName: [{ type: i0.Input, args: [{ isSignal: true, alias: "controlName", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], autoError: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoError", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], labelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelClass", required: false }] }], groupClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupClass", required: false }] }], errorClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorClass", required: false }] }], hintClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "hintClass", required: false }] }] } });
233
+
234
+ /*
235
+ * Public API Surface of form-toggle-group
236
+ */
237
+
238
+ /**
239
+ * Generated bundle index. Do not edit.
240
+ */
241
+
242
+ export { EgFormToggleGroup, injectEgFormToggleGroupConfig, provideEgFormToggleGroupConfig };
243
+
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "form-toggle-group",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^20.3.0 || ^22.0.0",
6
+ "@angular/core": "^20.3.0 || ^22.0.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "sideEffects": false,
12
+ "module": "fesm2022/form-toggle-group.mjs",
13
+ "typings": "types/form-toggle-group.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./types/form-toggle-group.d.ts",
20
+ "default": "./fesm2022/form-toggle-group.mjs"
21
+ }
22
+ },
23
+ "type": "module"
24
+ }
@@ -0,0 +1,85 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ValueProvider } from '@angular/core';
3
+ import { ClassValue } from 'clsx';
4
+
5
+ interface ToggleGroupOption {
6
+ value: string;
7
+ label: string;
8
+ disabled?: boolean;
9
+ }
10
+ declare class EgFormToggleGroup {
11
+ private readonly formGroupDirective;
12
+ private readonly _errorMessages;
13
+ private readonly generatedId;
14
+ private readonly _config;
15
+ label: _angular_core.InputSignal<string | undefined>;
16
+ controlId: _angular_core.InputSignal<string | undefined>;
17
+ controlName: _angular_core.InputSignal<string>;
18
+ error: _angular_core.InputSignal<string | undefined>;
19
+ /**
20
+ * Auto-resolve the displayed message from the control's `ValidationErrors`
21
+ * when `error()` is unset. Explicit `error()` always wins. Set to `false`
22
+ * for manual-only messages.
23
+ */
24
+ autoError: _angular_core.InputSignal<boolean>;
25
+ hint: _angular_core.InputSignal<string | undefined>;
26
+ id: _angular_core.InputSignal<string | undefined>;
27
+ type: _angular_core.InputSignal<"single" | "multiple">;
28
+ disabled: _angular_core.InputSignal<boolean>;
29
+ required: _angular_core.InputSignal<boolean>;
30
+ variant: _angular_core.InputSignal<"default" | "outline" | null | undefined>;
31
+ size: _angular_core.InputSignal<"default" | "sm" | "lg" | null | undefined>;
32
+ options: _angular_core.InputSignal<ToggleGroupOption[]>;
33
+ readonly effectiveId: _angular_core.Signal<string>;
34
+ readonly errorId: _angular_core.Signal<string>;
35
+ readonly hintId: _angular_core.Signal<string>;
36
+ /**
37
+ * Displayed message: explicit `error()` wins; otherwise (when `autoError()`)
38
+ * auto-resolved from the control's `ValidationErrors`. Plain method (not a
39
+ * computed): `ValidationErrors` is not a signal, so the control must be read
40
+ * fresh on every change-detection pass.
41
+ */
42
+ protected resolvedError(): string | undefined;
43
+ /**
44
+ * Whether the error is surfaced: message present + control invalid +
45
+ * touched/dirty/submitted. Gates the visual `<hlm-error>` (and
46
+ * `describedBy()`, where present) so sighted and screen-reader output agree.
47
+ */
48
+ protected showError(): boolean;
49
+ /**
50
+ * Combined lock for the brain `linkedSignal`-based disabled state: the raw
51
+ * input write always carries the resolved value, so a same-pass
52
+ * wrapper-toggle + `control.disable()` cannot clobber CVA state.
53
+ */
54
+ effectiveDisabled(): boolean;
55
+ describedBy(): string | null;
56
+ userClass: _angular_core.InputSignal<ClassValue>;
57
+ labelClass: _angular_core.InputSignal<string>;
58
+ groupClass: _angular_core.InputSignal<string>;
59
+ errorClass: _angular_core.InputSignal<string>;
60
+ hintClass: _angular_core.InputSignal<string>;
61
+ $userClass: _angular_core.Signal<string>;
62
+ $labelClass: _angular_core.Signal<string>;
63
+ $groupClass: _angular_core.Signal<string>;
64
+ $errorClass: _angular_core.Signal<string>;
65
+ $hintClass: _angular_core.Signal<string>;
66
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EgFormToggleGroup, never>;
67
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EgFormToggleGroup, "eg-form-toggle-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "controlId": { "alias": "controlId"; "required": false; "isSignal": true; }; "controlName": { "alias": "controlName"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "autoError": { "alias": "autoError"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "labelClass": { "alias": "labelClass"; "required": false; "isSignal": true; }; "groupClass": { "alias": "groupClass"; "required": false; "isSignal": true; }; "errorClass": { "alias": "errorClass"; "required": false; "isSignal": true; }; "hintClass": { "alias": "hintClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
68
+ }
69
+
70
+ interface EgFormToggleGroupConfig {
71
+ /**
72
+ * Global class defaults for `eg-form-toggle-group` styling slots.
73
+ * Each is merged under the matching per-instance `*Class` input
74
+ * (library base < global config < per-instance).
75
+ */
76
+ labelClass?: string;
77
+ groupClass?: string;
78
+ errorClass?: string;
79
+ hintClass?: string;
80
+ }
81
+ declare function provideEgFormToggleGroupConfig(config: Partial<EgFormToggleGroupConfig>): ValueProvider;
82
+ declare function injectEgFormToggleGroupConfig(): EgFormToggleGroupConfig;
83
+
84
+ export { EgFormToggleGroup, injectEgFormToggleGroupConfig, provideEgFormToggleGroupConfig };
85
+ export type { EgFormToggleGroupConfig };
@@ -1,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, input, NgModule } from '@angular/core';
3
- import { classes } from '@egose/shadcn-theme-ng-tw/utils';
2
+ import { Directive, input, inject, effect, NgModule } from '@angular/core';
3
+ import { classes, hlm } from '@egose/shadcn-theme-ng-tw/utils';
4
4
  import { cva } from 'class-variance-authority';
5
5
  import * as i1 from '@egose/shadcn-theme-ng-tw/button';
6
- import { provideBrnButtonConfig, HlmBtn } from '@egose/shadcn-theme-ng-tw/button';
6
+ import { HlmBtn, provideBrnButtonConfig } from '@egose/shadcn-theme-ng-tw/button';
7
7
  import * as i1$1 from '@egose/shadcn-theme-ng-tw/input';
8
8
  import { HlmInput } from '@egose/shadcn-theme-ng-tw/input';
9
9
  import * as i1$2 from '@egose/shadcn-theme-ng-tw/textarea';
@@ -37,7 +37,7 @@ const inputGroupAddonVariants$1 = cva("tw:text-muted-foreground tw:h-auto tw:gap
37
37
  },
38
38
  },
39
39
  defaultVariants: {
40
- align: "tw:inline-start",
40
+ align: 'inline-start',
41
41
  },
42
42
  });
43
43
  class HlmInputGroupAddon {
@@ -64,10 +64,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
64
64
  const inputGroupAddonVariants = cva('tw:gap-2 tw:text-sm tw:flex tw:items-center tw:shadow-none', {
65
65
  variants: {
66
66
  size: {
67
- xs: "tw:h-6 tw:gap-1 tw:rounded-[calc(var(--radius)-5px)] tw:px-1.5 tw:[&>ng-icon:not([class*='text-'])]:text-[length:--spacing(3.5)]",
67
+ xs: "tw:h-6 tw:gap-1 tw:rounded-[calc(var(--radius)-5px)] tw:px-1.5 tw:[&>ng-icon:not([class*='text-'])]:text-[length:--spacing(3.5)] tw:[&_svg:not([class*='size-'])]:size-3.5",
68
68
  sm: '',
69
- 'icon-xs': 'tw:size-6 tw:rounded-[calc(var(--radius)-5px)] tw:p-0 tw:has-[>ng-icon]:p-0',
70
- 'icon-sm': 'tw:size-8 tw:p-0 tw:has-[>ng-icon]:p-0',
69
+ 'icon-xs': "tw:size-6 tw:rounded-[calc(var(--radius)-5px)] tw:p-0 tw:has-[>ng-icon]:p-0 tw:[&>ng-icon:not([class*='text-'])]:text-[length:--spacing(3)] tw:[&_svg:not([class*='size-'])]:size-3",
70
+ 'icon-sm': "tw:size-8 tw:p-0 tw:has-[>ng-icon]:p-0 tw:[&>ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] tw:[&_svg:not([class*='size-'])]:size-4",
71
71
  },
72
72
  },
73
73
  defaultVariants: {
@@ -75,15 +75,25 @@ const inputGroupAddonVariants = cva('tw:gap-2 tw:text-sm tw:flex tw:items-center
75
75
  },
76
76
  });
77
77
  class HlmInputGroupButton {
78
+ _btn = inject(HlmBtn);
78
79
  size = input('xs', /* @ts-ignore */
79
80
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
80
81
  type = input('button', /* @ts-ignore */
81
82
  ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
83
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
82
84
  constructor() {
83
- classes(() => inputGroupAddonVariants({ size: this.size() }));
85
+ // HlmBtn renders its classes through a `[class]` host binding, so layering
86
+ // another `classes()` call here would lose: the binding output is treated
87
+ // as base classes and merged last, letting HlmBtn's default `h-9 px-4 py-2`
88
+ // beat the input-group sizing and push the button onto the outer
89
+ // container's borders. Route the variant through `setClass()` instead so it
90
+ // wins over the button defaults while explicit `class` values still win.
91
+ effect(() => {
92
+ this._btn.setClass(hlm(inputGroupAddonVariants({ size: this.size() }), this.userClass()));
93
+ });
84
94
  }
85
95
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmInputGroupButton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
86
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmInputGroupButton, isStandalone: true, selector: "button[hlmInputGroupButton]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-size": "size()", "type": "type()" } }, providers: [
96
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmInputGroupButton, isStandalone: true, selector: "button[hlmInputGroupButton]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-size": "size()", "type": "type()" } }, providers: [
87
97
  provideBrnButtonConfig({
88
98
  variant: 'ghost',
89
99
  }),
@@ -109,7 +119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
109
119
  '[type]': 'type()',
110
120
  },
111
121
  }]
112
- }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
122
+ }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
113
123
 
114
124
  class HlmInputGroupInput {
115
125
  constructor() {
@@ -1,4 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
+ import { ClassValue } from 'clsx';
2
3
  import * as i1 from '@egose/shadcn-theme-ng-tw/button';
3
4
  import * as i1$1 from '@egose/shadcn-theme-ng-tw/input';
4
5
  import * as i1$2 from '@egose/shadcn-theme-ng-tw/textarea';
@@ -17,11 +18,13 @@ declare class HlmInputGroupAddon {
17
18
  }
18
19
 
19
20
  declare class HlmInputGroupButton {
21
+ private readonly _btn;
20
22
  readonly size: i0.InputSignal<"xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined>;
21
23
  readonly type: i0.InputSignal<"button" | "submit" | "reset">;
24
+ readonly userClass: i0.InputSignal<ClassValue>;
22
25
  constructor();
23
26
  static ɵfac: i0.ɵɵFactoryDeclaration<HlmInputGroupButton, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<HlmInputGroupButton, "button[hlmInputGroupButton]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HlmBtn; inputs: { "variant": "variant"; }; outputs: {}; }]>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmInputGroupButton, "button[hlmInputGroupButton]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HlmBtn; inputs: { "variant": "variant"; }; outputs: {}; }]>;
25
28
  }
26
29
 
27
30
  declare class HlmInputGroupInput {