angular-tailwind-components 1.6.0 → 1.6.1
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.
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Angular Tailwind Components
|
|
2
2
|
|
|
3
|
+
[](https://stackblitz.com/fork/github/giuseppemorale/angular-tailwind-components?startScript=stackblitz&title=Angular%20Tailwind%20Components%20%E2%80%94%20Storybook)
|
|
4
|
+
|
|
5
|
+
Apri la demo live su StackBlitz: avvia **Storybook** (tutti i componenti, stesso sorgente del repo).
|
|
6
|
+
|
|
3
7
|
A comprehensive Angular component library built entirely with **Tailwind CSS v4** — zero additional UI dependencies.
|
|
4
8
|
|
|
5
9
|
## Features
|
|
@@ -275,8 +279,11 @@ You can still override any token in your own CSS, for example:
|
|
|
275
279
|
# Build the library
|
|
276
280
|
ng build angular-tailwind-components
|
|
277
281
|
|
|
278
|
-
# Start Storybook
|
|
282
|
+
# Start Storybook (locale)
|
|
279
283
|
npm run storybook
|
|
284
|
+
|
|
285
|
+
# Storybook per StackBlitz (CI, host 0.0.0.0, porta 6006)
|
|
286
|
+
npm run stackblitz
|
|
280
287
|
```
|
|
281
288
|
|
|
282
289
|
### Component Conventions
|
package/package.json
CHANGED
|
@@ -129,7 +129,7 @@ declare class TailwindButton extends TailwindComponent {
|
|
|
129
129
|
/** Whether the button is disabled */
|
|
130
130
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
131
131
|
/** HTML button type attribute */
|
|
132
|
-
readonly type: _angular_core.InputSignal<"button" | "
|
|
132
|
+
readonly type: _angular_core.InputSignal<"button" | "reset" | "submit">;
|
|
133
133
|
/** Emitted when the button is clicked (not disabled). */
|
|
134
134
|
readonly onClick: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
135
135
|
/** Computed Tailwind classes based on color, kind, size, and state */
|
|
@@ -198,7 +198,7 @@ declare class TailwindTextarea extends TailwindComponent implements ControlValue
|
|
|
198
198
|
/** Maximum character length (HTML maxlength) */
|
|
199
199
|
readonly maxlength: _angular_core.InputSignal<number | undefined>;
|
|
200
200
|
/** Resize behavior */
|
|
201
|
-
readonly resize: _angular_core.InputSignal<"
|
|
201
|
+
readonly resize: _angular_core.InputSignal<"vertical" | "none" | "both" | "horizontal">;
|
|
202
202
|
/** Size variant */
|
|
203
203
|
readonly size: _angular_core.InputSignal<TailwindSize>;
|
|
204
204
|
/** Whether the textarea is readonly */
|
|
@@ -232,7 +232,7 @@ declare class TailwindUpload extends TailwindComponent implements ControlValueAc
|
|
|
232
232
|
private readonly fallbackFileId;
|
|
233
233
|
readonly fileInput: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
234
234
|
/** Visual layout: compact button or drop zone */
|
|
235
|
-
readonly variant: _angular_core.InputSignal<"
|
|
235
|
+
readonly variant: _angular_core.InputSignal<"area" | "button">;
|
|
236
236
|
/** Field label */
|
|
237
237
|
readonly label: _angular_core.InputSignal<string>;
|
|
238
238
|
/** Button label when `variant` is `button` */
|
|
@@ -387,7 +387,7 @@ declare class TailwindRadioGroup<T = unknown> extends TailwindComponent implemen
|
|
|
387
387
|
/** Size variant */
|
|
388
388
|
readonly size: _angular_core.InputSignal<TailwindSize>;
|
|
389
389
|
/** Layout orientation */
|
|
390
|
-
readonly orientation: _angular_core.InputSignal<"
|
|
390
|
+
readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
391
391
|
/** Currently selected value */
|
|
392
392
|
readonly value: _angular_core.ModelSignal<T | null>;
|
|
393
393
|
/** Internal disabled state */
|
|
@@ -572,7 +572,7 @@ declare class TailwindSpinner extends TailwindComponent {
|
|
|
572
572
|
/** Aria label for accessibility */
|
|
573
573
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
574
574
|
/** Layout orientation */
|
|
575
|
-
readonly orientation: _angular_core.InputSignal<"
|
|
575
|
+
readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
576
576
|
readonly containerClasses: _angular_core.Signal<string>;
|
|
577
577
|
readonly spinnerClasses: _angular_core.Signal<string>;
|
|
578
578
|
readonly labelClasses: _angular_core.Signal<string>;
|
|
@@ -1119,7 +1119,7 @@ declare class TailwindToolbar extends TailwindComponent {
|
|
|
1119
1119
|
*/
|
|
1120
1120
|
readonly variant: _angular_core.InputSignal<TailwindSeverity | "default">;
|
|
1121
1121
|
/** `horizontal` for a top app bar; `vertical` for a side rail (logo → menu → end). */
|
|
1122
|
-
readonly orientation: _angular_core.InputSignal<"
|
|
1122
|
+
readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
1123
1123
|
/** Navigation / actions rendered between logo and end slots. */
|
|
1124
1124
|
readonly menu: _angular_core.InputSignal<TailwindMenuItem[]>;
|
|
1125
1125
|
/** Emitted when a non-disabled, non-divider menu entry is activated. */
|
|
@@ -1128,7 +1128,7 @@ declare class TailwindToolbar extends TailwindComponent {
|
|
|
1128
1128
|
/** Foreground on semantic surface (`text-on-*`), aligned with solid toolbar shade per variant. */
|
|
1129
1129
|
readonly variantContrastTextClass: _angular_core.Signal<string | null>;
|
|
1130
1130
|
/** Heroicons are `<img>`; on light-on-color variants tint SVG strokes to match `text-on-*`. */
|
|
1131
|
-
readonly menuItemIconClasses: _angular_core.Signal<"toolbar-menu-icon-on-light"
|
|
1131
|
+
readonly menuItemIconClasses: _angular_core.Signal<"" | "toolbar-menu-icon-on-light">;
|
|
1132
1132
|
readonly menuItemToneClasses: _angular_core.Signal<string>;
|
|
1133
1133
|
readonly menuItemButtonClasses: _angular_core.Signal<string>;
|
|
1134
1134
|
readonly mobileMenuToggleClasses: _angular_core.Signal<string>;
|
|
@@ -1147,7 +1147,7 @@ declare class TailwindToolbar extends TailwindComponent {
|
|
|
1147
1147
|
|
|
1148
1148
|
declare class TailwindDivider extends TailwindComponent {
|
|
1149
1149
|
/** Rule direction */
|
|
1150
|
-
readonly orientation: _angular_core.InputSignal<"
|
|
1150
|
+
readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
1151
1151
|
/** Adds horizontal margin to the rule (horizontal orientation only). */
|
|
1152
1152
|
readonly inset: _angular_core.InputSignal<boolean>;
|
|
1153
1153
|
/** Border style for the rule */
|
|
@@ -1214,7 +1214,7 @@ declare class TailwindSlider extends TailwindComponent implements ControlValueAc
|
|
|
1214
1214
|
/** Two-thumb range mode */
|
|
1215
1215
|
readonly range: _angular_core.InputSignal<boolean>;
|
|
1216
1216
|
/** Layout */
|
|
1217
|
-
readonly orientation: _angular_core.InputSignal<"
|
|
1217
|
+
readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
1218
1218
|
/** Tick marks at each step */
|
|
1219
1219
|
readonly showTicks: _angular_core.InputSignal<boolean>;
|
|
1220
1220
|
/** Control size */
|