ngx-com 0.0.1 → 0.0.4

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 (82) hide show
  1. package/fesm2022/ngx-com-components-avatar.mjs +772 -0
  2. package/fesm2022/ngx-com-components-avatar.mjs.map +1 -0
  3. package/fesm2022/ngx-com-components-badge.mjs +138 -0
  4. package/fesm2022/ngx-com-components-badge.mjs.map +1 -0
  5. package/fesm2022/ngx-com-components-button.mjs +146 -0
  6. package/fesm2022/ngx-com-components-button.mjs.map +1 -0
  7. package/fesm2022/ngx-com-components-calendar.mjs +5046 -0
  8. package/fesm2022/ngx-com-components-calendar.mjs.map +1 -0
  9. package/fesm2022/ngx-com-components-card.mjs +590 -0
  10. package/fesm2022/ngx-com-components-card.mjs.map +1 -0
  11. package/fesm2022/ngx-com-components-checkbox.mjs +344 -0
  12. package/fesm2022/ngx-com-components-checkbox.mjs.map +1 -0
  13. package/fesm2022/ngx-com-components-collapsible.mjs +612 -0
  14. package/fesm2022/ngx-com-components-collapsible.mjs.map +1 -0
  15. package/fesm2022/ngx-com-components-confirm.mjs +562 -0
  16. package/fesm2022/ngx-com-components-confirm.mjs.map +1 -0
  17. package/fesm2022/ngx-com-components-dropdown-testing.mjs +255 -0
  18. package/fesm2022/ngx-com-components-dropdown-testing.mjs.map +1 -0
  19. package/fesm2022/ngx-com-components-dropdown.mjs +2692 -0
  20. package/fesm2022/ngx-com-components-dropdown.mjs.map +1 -0
  21. package/fesm2022/ngx-com-components-empty-state.mjs +382 -0
  22. package/fesm2022/ngx-com-components-empty-state.mjs.map +1 -0
  23. package/fesm2022/ngx-com-components-form-field.mjs +924 -0
  24. package/fesm2022/ngx-com-components-form-field.mjs.map +1 -0
  25. package/fesm2022/ngx-com-components-icon.mjs +183 -0
  26. package/fesm2022/ngx-com-components-icon.mjs.map +1 -0
  27. package/fesm2022/ngx-com-components-item.mjs +578 -0
  28. package/fesm2022/ngx-com-components-item.mjs.map +1 -0
  29. package/fesm2022/ngx-com-components-menu.mjs +1200 -0
  30. package/fesm2022/ngx-com-components-menu.mjs.map +1 -0
  31. package/fesm2022/ngx-com-components-paginator.mjs +823 -0
  32. package/fesm2022/ngx-com-components-paginator.mjs.map +1 -0
  33. package/fesm2022/ngx-com-components-popover.mjs +901 -0
  34. package/fesm2022/ngx-com-components-popover.mjs.map +1 -0
  35. package/fesm2022/ngx-com-components-radio.mjs +621 -0
  36. package/fesm2022/ngx-com-components-radio.mjs.map +1 -0
  37. package/fesm2022/ngx-com-components-segmented-control.mjs +538 -0
  38. package/fesm2022/ngx-com-components-segmented-control.mjs.map +1 -0
  39. package/fesm2022/ngx-com-components-sort.mjs +368 -0
  40. package/fesm2022/ngx-com-components-sort.mjs.map +1 -0
  41. package/fesm2022/ngx-com-components-spinner.mjs +189 -0
  42. package/fesm2022/ngx-com-components-spinner.mjs.map +1 -0
  43. package/fesm2022/ngx-com-components-tabs.mjs +1522 -0
  44. package/fesm2022/ngx-com-components-tabs.mjs.map +1 -0
  45. package/fesm2022/ngx-com-components-tooltip.mjs +625 -0
  46. package/fesm2022/ngx-com-components-tooltip.mjs.map +1 -0
  47. package/fesm2022/ngx-com-components.mjs +17 -0
  48. package/fesm2022/ngx-com-components.mjs.map +1 -0
  49. package/fesm2022/ngx-com-tokens.mjs +12 -0
  50. package/fesm2022/ngx-com-tokens.mjs.map +1 -0
  51. package/fesm2022/ngx-com-utils.mjs +601 -0
  52. package/fesm2022/ngx-com-utils.mjs.map +1 -0
  53. package/fesm2022/ngx-com.mjs +9 -23
  54. package/fesm2022/ngx-com.mjs.map +1 -1
  55. package/package.json +105 -1
  56. package/types/ngx-com-components-avatar.d.ts +409 -0
  57. package/types/ngx-com-components-badge.d.ts +97 -0
  58. package/types/ngx-com-components-button.d.ts +69 -0
  59. package/types/ngx-com-components-calendar.d.ts +1665 -0
  60. package/types/ngx-com-components-card.d.ts +373 -0
  61. package/types/ngx-com-components-checkbox.d.ts +116 -0
  62. package/types/ngx-com-components-collapsible.d.ts +379 -0
  63. package/types/ngx-com-components-confirm.d.ts +160 -0
  64. package/types/ngx-com-components-dropdown-testing.d.ts +116 -0
  65. package/types/ngx-com-components-dropdown.d.ts +938 -0
  66. package/types/ngx-com-components-empty-state.d.ts +269 -0
  67. package/types/ngx-com-components-form-field.d.ts +531 -0
  68. package/types/ngx-com-components-icon.d.ts +94 -0
  69. package/types/ngx-com-components-item.d.ts +336 -0
  70. package/types/ngx-com-components-menu.d.ts +479 -0
  71. package/types/ngx-com-components-paginator.d.ts +265 -0
  72. package/types/ngx-com-components-popover.d.ts +309 -0
  73. package/types/ngx-com-components-radio.d.ts +258 -0
  74. package/types/ngx-com-components-segmented-control.d.ts +274 -0
  75. package/types/ngx-com-components-sort.d.ts +133 -0
  76. package/types/ngx-com-components-spinner.d.ts +120 -0
  77. package/types/ngx-com-components-tabs.d.ts +396 -0
  78. package/types/ngx-com-components-tooltip.d.ts +200 -0
  79. package/types/ngx-com-components.d.ts +12 -0
  80. package/types/ngx-com-tokens.d.ts +7 -0
  81. package/types/ngx-com-utils.d.ts +424 -0
  82. package/types/ngx-com.d.ts +10 -7
@@ -0,0 +1,269 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InputSignal, Signal } from '@angular/core';
3
+
4
+ type EmptyStateSize = 'sm' | 'md' | 'lg';
5
+ type EmptyStateAlign = 'start' | 'center';
6
+ type EmptyStateOrientation = 'vertical' | 'horizontal';
7
+ /**
8
+ * CVA variants for the empty state container.
9
+ *
10
+ * @tokens `--color-foreground`, `--color-muted`, `--color-muted-foreground`
11
+ */
12
+ declare const emptyStateVariants: (props?: {
13
+ size?: EmptyStateSize;
14
+ align?: EmptyStateAlign;
15
+ orientation?: EmptyStateOrientation;
16
+ }) => string;
17
+ /**
18
+ * CVA variants for the empty state icon container.
19
+ *
20
+ * @tokens `--color-muted`, `--color-muted-foreground`
21
+ */
22
+ declare const emptyStateIconVariants: (props?: {
23
+ size?: EmptyStateSize;
24
+ }) => string;
25
+ /**
26
+ * CVA variants for the empty state title.
27
+ *
28
+ * @tokens `--color-foreground`
29
+ */
30
+ declare const emptyStateTitleVariants: (props?: {
31
+ size?: EmptyStateSize;
32
+ }) => string;
33
+ /**
34
+ * CVA variants for the empty state description.
35
+ *
36
+ * @tokens `--color-muted-foreground`
37
+ */
38
+ declare const emptyStateDescriptionVariants: (props?: {
39
+ size?: EmptyStateSize;
40
+ }) => string;
41
+ /**
42
+ * CVA variants for the empty state actions container.
43
+ */
44
+ declare const emptyStateActionsVariants: (props?: {
45
+ size?: EmptyStateSize;
46
+ }) => string;
47
+
48
+ /**
49
+ * Empty state component - a placeholder surface for when there is no data to display.
50
+ *
51
+ * Common use cases include:
52
+ * - Empty lists or tables ("No results found")
53
+ * - Initial states before user action ("Create your first project")
54
+ * - Search results with no matches ("No items match your search")
55
+ * - Error recovery states ("Something went wrong. Try again.")
56
+ *
57
+ * The component is a pure layout container that accepts projected content through attribute directives.
58
+ *
59
+ * @tokens `--color-muted`, `--color-muted-foreground`, `--color-foreground`
60
+ *
61
+ * @example Minimal empty state
62
+ * ```html
63
+ * <com-empty-state>
64
+ * <div comEmptyStateIcon>
65
+ * <com-icon name="inbox" size="xl" />
66
+ * </div>
67
+ * <h3 comEmptyStateTitle>No messages</h3>
68
+ * </com-empty-state>
69
+ * ```
70
+ *
71
+ * @example Full empty state with description and action
72
+ * ```html
73
+ * <com-empty-state>
74
+ * <div comEmptyStateIcon>
75
+ * <com-icon name="folder-open" size="xl" />
76
+ * </div>
77
+ * <h3 comEmptyStateTitle>No projects yet</h3>
78
+ * <p comEmptyStateDescription>
79
+ * Create your first project to get started organizing your work.
80
+ * </p>
81
+ * <div comEmptyStateActions>
82
+ * <button comButton>Create Project</button>
83
+ * </div>
84
+ * </com-empty-state>
85
+ * ```
86
+ *
87
+ * @example Search empty state with secondary action
88
+ * ```html
89
+ * <com-empty-state>
90
+ * <div comEmptyStateIcon>
91
+ * <com-icon name="search-x" size="xl" />
92
+ * </div>
93
+ * <h3 comEmptyStateTitle>No results found</h3>
94
+ * <p comEmptyStateDescription>
95
+ * Try adjusting your search terms or filters.
96
+ * </p>
97
+ * <div comEmptyStateActions>
98
+ * <button comButton variant="outline">Clear Filters</button>
99
+ * <button comButton>New Search</button>
100
+ * </div>
101
+ * </com-empty-state>
102
+ * ```
103
+ *
104
+ * @example Small size for inline contexts
105
+ * ```html
106
+ * <com-empty-state size="sm">
107
+ * <div comEmptyStateIcon>
108
+ * <com-icon name="list" size="lg" />
109
+ * </div>
110
+ * <h4 comEmptyStateTitle>No items</h4>
111
+ * </com-empty-state>
112
+ * ```
113
+ *
114
+ * @example Large size for full-page empty states
115
+ * ```html
116
+ * <com-empty-state size="lg">
117
+ * <div comEmptyStateIcon>
118
+ * <com-icon name="rocket" size="2xl" />
119
+ * </div>
120
+ * <h2 comEmptyStateTitle>Welcome to Acme</h2>
121
+ * <p comEmptyStateDescription>
122
+ * Your dashboard is ready. Start by creating your first resource.
123
+ * </p>
124
+ * <div comEmptyStateActions>
125
+ * <button comButton size="lg">Get Started</button>
126
+ * </div>
127
+ * </com-empty-state>
128
+ * ```
129
+ *
130
+ * @example Horizontal orientation
131
+ * ```html
132
+ * <com-empty-state orientation="horizontal" align="start">
133
+ * <div comEmptyStateIcon>
134
+ * <com-icon name="alert-circle" size="lg" />
135
+ * </div>
136
+ * <h4 comEmptyStateTitle>No notifications</h4>
137
+ * <p comEmptyStateDescription>You're all caught up!</p>
138
+ * </com-empty-state>
139
+ * ```
140
+ *
141
+ * @example Left-aligned for sidebar contexts
142
+ * ```html
143
+ * <com-empty-state align="start">
144
+ * <div comEmptyStateIcon>
145
+ * <com-icon name="users" size="lg" />
146
+ * </div>
147
+ * <h4 comEmptyStateTitle>No team members</h4>
148
+ * <p comEmptyStateDescription>Invite people to collaborate.</p>
149
+ * <div comEmptyStateActions>
150
+ * <button comButton size="sm">Invite</button>
151
+ * </div>
152
+ * </com-empty-state>
153
+ * ```
154
+ */
155
+ declare class ComEmptyState {
156
+ /** Controls overall scale: icon container size, text sizes, spacing. */
157
+ readonly size: InputSignal<EmptyStateSize>;
158
+ /** Horizontal alignment of content. */
159
+ readonly align: InputSignal<EmptyStateAlign>;
160
+ /** Layout direction: vertical stacks content, horizontal places icon beside text. */
161
+ readonly orientation: InputSignal<EmptyStateOrientation>;
162
+ /** Consumer CSS classes - merged with variant classes. */
163
+ readonly userClass: InputSignal<string>;
164
+ protected readonly computedClass: Signal<string>;
165
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComEmptyState, never>;
166
+ static ɵcmp: i0.ɵɵComponentDeclaration<ComEmptyState, "com-empty-state", ["comEmptyState"], { "size": { "alias": "size"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
167
+ }
168
+
169
+ /**
170
+ * Empty state icon container directive - styled circular background for icon/illustration.
171
+ *
172
+ * Apply to a container element. Place any content inside (typically `com-icon`).
173
+ * Styling automatically adapts to the parent's `size` input.
174
+ *
175
+ * @example
176
+ * ```html
177
+ * <div comEmptyStateIcon>
178
+ * <com-icon name="inbox" size="xl" />
179
+ * </div>
180
+ * ```
181
+ *
182
+ * @example With custom illustration
183
+ * ```html
184
+ * <div comEmptyStateIcon>
185
+ * <img src="/assets/empty-mailbox.svg" alt="" class="size-8" />
186
+ * </div>
187
+ * ```
188
+ *
189
+ * @tokens `--color-muted`, `--color-muted-foreground`
190
+ */
191
+ declare class ComEmptyStateIcon {
192
+ private readonly emptyState;
193
+ protected readonly computedClass: Signal<string>;
194
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComEmptyStateIcon, never>;
195
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComEmptyStateIcon, "[comEmptyStateIcon]", never, {}, {}, never, never, true, never>;
196
+ }
197
+
198
+ /**
199
+ * Empty state title directive - styled heading text.
200
+ *
201
+ * Apply to any heading element. Consumer picks the semantic level (h2, h3, etc.).
202
+ * Styling automatically adapts to the parent's `size` input.
203
+ *
204
+ * @example
205
+ * ```html
206
+ * <h3 comEmptyStateTitle>No projects yet</h3>
207
+ * ```
208
+ *
209
+ * @tokens `--color-foreground`
210
+ */
211
+ declare class ComEmptyStateTitle {
212
+ private readonly emptyState;
213
+ protected readonly computedClass: Signal<string>;
214
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComEmptyStateTitle, never>;
215
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComEmptyStateTitle, "[comEmptyStateTitle]", never, {}, {}, never, never, true, never>;
216
+ }
217
+
218
+ /**
219
+ * Empty state description directive - supporting text.
220
+ *
221
+ * Apply to a paragraph or text element.
222
+ * Styling automatically adapts to the parent's `size` input.
223
+ *
224
+ * @example
225
+ * ```html
226
+ * <p comEmptyStateDescription>
227
+ * Create your first project to get started organizing your work.
228
+ * </p>
229
+ * ```
230
+ *
231
+ * @tokens `--color-muted-foreground`
232
+ */
233
+ declare class ComEmptyStateDescription {
234
+ private readonly emptyState;
235
+ protected readonly computedClass: Signal<string>;
236
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComEmptyStateDescription, never>;
237
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComEmptyStateDescription, "[comEmptyStateDescription]", never, {}, {}, never, never, true, never>;
238
+ }
239
+
240
+ /**
241
+ * Empty state actions directive - container for action buttons.
242
+ *
243
+ * Apply to a container element. Place buttons inside.
244
+ * Styling automatically adapts to the parent's `size` input.
245
+ *
246
+ * @example Single action
247
+ * ```html
248
+ * <div comEmptyStateActions>
249
+ * <button comButton>Create Project</button>
250
+ * </div>
251
+ * ```
252
+ *
253
+ * @example Multiple actions
254
+ * ```html
255
+ * <div comEmptyStateActions>
256
+ * <button comButton variant="outline">Clear Filters</button>
257
+ * <button comButton>New Search</button>
258
+ * </div>
259
+ * ```
260
+ */
261
+ declare class ComEmptyStateActions {
262
+ private readonly emptyState;
263
+ protected readonly computedClass: Signal<string>;
264
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComEmptyStateActions, never>;
265
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComEmptyStateActions, "[comEmptyStateActions]", never, {}, {}, never, never, true, never>;
266
+ }
267
+
268
+ export { ComEmptyState, ComEmptyStateActions, ComEmptyStateDescription, ComEmptyStateIcon, ComEmptyStateTitle, emptyStateActionsVariants, emptyStateDescriptionVariants, emptyStateIconVariants, emptyStateTitleVariants, emptyStateVariants };
269
+ export type { EmptyStateAlign, EmptyStateOrientation, EmptyStateSize };