@sixbell-telco/sdk 1.0.3 → 1.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 (77) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +44 -0
  3. package/_index.css +52 -25
  4. package/components/avatar/src/avatar.component.d.ts +40 -26
  5. package/components/button/src/button.component.d.ts +2 -2
  6. package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +39 -0
  7. package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +41 -0
  8. package/components/dropdown/dropdown-group/dropdown-group.component.d.ts +9 -0
  9. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +23 -12
  10. package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +49 -0
  11. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +53 -0
  12. package/components/dropdown/dropdown-label/dropdown-label.component.d.ts +17 -0
  13. package/components/dropdown/dropdown-separator/dropdown-separator.component.d.ts +21 -0
  14. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +121 -0
  15. package/components/dropdown/public-api.d.ts +9 -0
  16. package/components/dropdown/src/dropdown.component.d.ts +20 -174
  17. package/components/dropdown/src/services/dropdown.service.d.ts +22 -0
  18. package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +22 -0
  19. package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +64 -0
  20. package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +37 -0
  21. package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +54 -0
  22. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +58 -0
  23. package/components/dropdown-menu/bar/dropdown-menu-bar-label/dropdown-menu-bar-label.component.d.ts +16 -0
  24. package/components/dropdown-menu/bar/dropdown-menu-bar-separator/dropdown-menu-bar-separator.component.d.ts +16 -0
  25. package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +29 -0
  26. package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +50 -0
  27. package/components/dropdown-menu/bar/index.d.ts +5 -0
  28. package/components/dropdown-menu/bar/public-api.d.ts +9 -0
  29. package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +23 -0
  30. package/components/dropdown-menu/context/index.d.ts +5 -0
  31. package/components/dropdown-menu/context/public-api.d.ts +1 -0
  32. package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +43 -0
  33. package/components/dropdown-menu/index.d.ts +5 -0
  34. package/components/dropdown-menu/public-api.d.ts +13 -0
  35. package/components/dropdown-menu/src/directives/dropdown-menu.directive.d.ts +40 -0
  36. package/components/dropdown-menu/src/dropdown-menu/dropdown-menu.component.d.ts +9 -0
  37. package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +40 -0
  38. package/components/dropdown-menu/src/dropdown-menu-group/dropdown-menu-group.component.d.ts +8 -0
  39. package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +38 -0
  40. package/components/dropdown-menu/src/dropdown-menu-label/dropdown-menu-label.component.d.ts +16 -0
  41. package/components/dropdown-menu/src/dropdown-menu-separator/dropdown-menu-separator.component.d.ts +16 -0
  42. package/components/dropdown-menu/src/dropdown-menu-sub/dropdown-menu-sub.component.d.ts +8 -0
  43. package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +31 -0
  44. package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +18 -0
  45. package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +19 -0
  46. package/components/dropdown-menu/src/services/dropdown-menu.service.d.ts +22 -0
  47. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +75 -39
  48. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  49. package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -0
  50. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  51. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +529 -0
  52. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -0
  53. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +52 -0
  54. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -0
  55. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +539 -0
  56. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -0
  57. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +592 -213
  58. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  59. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
  60. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  61. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
  62. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  63. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  65. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +139 -0
  66. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -0
  67. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +183 -0
  68. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -0
  69. package/package.json +21 -1
  70. package/sixbell-telco-sdk-1.1.0.tgz +0 -0
  71. package/utils/theme/index.d.ts +5 -0
  72. package/utils/theme/public-api.d.ts +1 -0
  73. package/utils/theme/src/theme.service.d.ts +55 -0
  74. package/utils/translation/index.d.ts +5 -0
  75. package/utils/translation/public-api.d.ts +1 -0
  76. package/utils/translation/src/translation.service.d.ts +112 -0
  77. package/sixbell-telco-sdk-1.0.3.tgz +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.1.0] - 2025-08-08
11
+
12
+ ### Added
13
+
14
+ - **Dropdown Menu**: Add comprehensive dropdown menu component system with trigger, content, separator, group, checkbox, and radio components for enhanced menu functionality
15
+ - **Dropdown Menu**: Add dropdown menu service for managing menu state and closing nested menus
16
+ - **Dropdown Menu**: Add context menu trigger and bar components for horizontal menu functionality
17
+ - **Theme Service**: Add theme service for managing themes and schemes with data-theme attribute support
18
+ - **Translation Service**: Add translation service with language management and localization features for English, Spanish, and Portuguese
19
+ - **Dropdown**: Add standalone dropdown component with improved trigger and content coordination using CDK overlay positioning
20
+ - **Dropdown Chevron**: Add DropdownChevron component with size and color inputs for improved dropdown navigation (`405bcfd`)
21
+ - **Dropdown Menu Chevron**: Add DropdownMenuChevron component with size and color support and state management service (`1ecf46a`, `6da96fb`)
22
+ - **Avatar Component**: Enhance with DaisyUI patterns and presence indicators for improved user representation (`55b8cc3`)
23
+ - **Theme Colors**: Add custom color base-50 and new gradients for improved theming capabilities (`fbea5c6`, `14b174a`)
24
+ - **Storybook Documentation**: Enhance color documentation with light and dark theme variations (`64157bc`)
25
+
26
+ ### Changed
27
+
28
+ - **Dropdown Components**: Refactor dropdown items to use radio components for better selection handling and improved component structure
29
+ - **Dropdown Events**: Migrate from deprecated `onEvent` pattern to modern Angular signal-based event patterns (`selected`, `opened`, `closed`) following Angular conventions
30
+ - **Dropdown Menu**: Restructure dropdown menu components and enhance functionality with improved icons and context menu support
31
+ - **App Component**: Rename menu action and notification methods for clarity and compatibility during dropdown refactoring
32
+ - **Button Component**: Add 'base' variant to button style variants for enhanced dropdown integration
33
+ - **Code Structure**: Refactor code structure for improved readability and maintainability across dropdown components
34
+ - **Dropdown Trigger**: Update dropdown trigger button styles and adjust chevron size for better visual consistency (`868f532`)
35
+ - **Dropdown Menu**: Enhance dropdown menu with avatar support and improved documentation (`42e0517`)
36
+ - **Dropdown**: Add chevron support to dropdown and menu components (`116bb04`)
37
+ - **Dropdown Menu**: Add shadow option to dropdown menu components for enhanced visual depth (`63ac073`)
38
+ - **Dropdown Trigger**: Update dropdown trigger bindings to use new syntax (`4110978`)
39
+ - **Showcase**: Update avatar usage in showcase examples (`3dc5aca`)
40
+
41
+ ### Fixed
42
+
43
+ - **Dropdown Content**: Update minimum width class for dropdown content to improve layout consistency
44
+ - **Dropdown Trigger**: Change button to div for better accessibility and semantics in dropdown triggers
45
+ - **Dropdown Menu**: Remove unnecessary absolute positioning classes and unused menu position inputs for cleaner implementation
46
+ - **Showcase Compatibility**: Add method aliases (`onMenuAction`, `onNotify`) to maintain backward compatibility with dropdown-menu and toast components
47
+
48
+ ### Removed
49
+
50
+ - **Dropdown Menu**: Remove unused DropdownMenuShortcut component and export to streamline dropdown menu structure
51
+ - **Menu Dropdown**: Remove redundant dropdown menu components and related services to avoid duplication
52
+ - **Dropdown Menu Stack Service**: Remove unused DropdownMenuStackService for code cleanup (`27cac5b`)
53
+
10
54
  ## [1.0.3] - 2025-07-23
11
55
 
12
56
  ### Added
package/README.md CHANGED
@@ -179,6 +179,23 @@ npm install @ngx-translate/core@16.0 @ngx-translate/http-loader@16.0 ngx-transla
179
179
  ```json
180
180
  {
181
181
  "sdk": {
182
+ "theme": {
183
+ "themes": {
184
+ "vivid_elegance": "Vivid Elegance"
185
+ },
186
+ "schemes": {
187
+ "system": "System",
188
+ "light": "Light",
189
+ "dark": "Dark"
190
+ }
191
+ },
192
+ "language": {
193
+ "languages": {
194
+ "en": "English",
195
+ "es": "Spanish",
196
+ "pt": "Portuguese"
197
+ }
198
+ },
182
199
  "fileUpload": {
183
200
  "dropzone": {
184
201
  "selectPrompt": "Click to select files or drag and drop here",
@@ -272,6 +289,23 @@ npm install @ngx-translate/core@16.0 @ngx-translate/http-loader@16.0 ngx-transla
272
289
  ```json
273
290
  {
274
291
  "sdk": {
292
+ "theme": {
293
+ "themes": {
294
+ "vivid_elegance": "Elegancia Vívida"
295
+ },
296
+ "schemes": {
297
+ "system": "Sistema",
298
+ "light": "Claro",
299
+ "dark": "Oscuro"
300
+ }
301
+ },
302
+ "language": {
303
+ "languages": {
304
+ "en": "Inglés",
305
+ "es": "Español",
306
+ "pt": "Portugués"
307
+ }
308
+ },
275
309
  "fileUpload": {
276
310
  "dropzone": {
277
311
  "selectPrompt": "Haz clic para seleccionar archivos o arrastra y suelta aquí",
@@ -365,6 +399,16 @@ npm install @ngx-translate/core@16.0 @ngx-translate/http-loader@16.0 ngx-transla
365
399
  ```json
366
400
  {
367
401
  "sdk": {
402
+ "theme": {
403
+ "themes": {
404
+ "vivid_elegance": "Elegância Vívida"
405
+ },
406
+ "schemes": {
407
+ "system": "Sistema",
408
+ "light": "Claro",
409
+ "dark": "Escuro"
410
+ }
411
+ },
368
412
  "fileUpload": {
369
413
  "dropzone": {
370
414
  "selectPrompt": "Haz clic para seleccionar archivos o arrastra y suelta aquí",
package/_index.css CHANGED
@@ -57,7 +57,15 @@
57
57
  --noise: 0;
58
58
 
59
59
  /* Custom Colors */
60
- --color-primary-gradient: oklch(43.1% 0.0738 214.57);
60
+ --color-base-50: color-mix(in oklch, var(--color-base-200), #000 7%);
61
+ --color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
62
+ --color-primary-gradient-content: oklch(100% 0 0);
63
+ --color-secondary-gradient: color-mix(in oklch, var(--color-secondary) 60%, #121212);
64
+ --color-secondary-gradient-content: oklch(13.49% 0.0024 286.07);
65
+ --color-tertiary-gradient: color-mix(in oklch, var(--color-tertiary) 60%, #121212);
66
+ --color-tertiary-gradient-content: oklch(13.49% 0.0024 286.07);
67
+ --color-accent-gradient: color-mix(in oklch, var(--color-accent) 60%, #121212);
68
+ --color-accent-gradient-content: oklch(100% 0 0);
61
69
  --color-tertiary: oklch(72.52% 0 0);
62
70
  --color-tertiary-content: oklch(13.49% 0.0024 286.07);
63
71
  --color-neutral-secondary: oklch(73.97% 0.0115 280.4);
@@ -66,7 +74,7 @@
66
74
  --color-neutral-tertiary-content: oklch(73.97% 0.0115 280.4);
67
75
  --color-base-placeholder: oklch(51.6% 0.0073 255.51);
68
76
 
69
- --shadow-primary: oklch(78.66% 0.0011 17.18);
77
+ --shadow-primary: oklch(0.8975 0 0);
70
78
 
71
79
  --color-metrics-increase: oklch(74.59% 0.1812 152.33);
72
80
  --color-metrics-decrease: oklch(63.07% 0.194 29.44);
@@ -81,8 +89,8 @@
81
89
 
82
90
  @plugin "daisyui/theme" {
83
91
  name: 'vivid_elegance_dark';
84
- /* default: false; */
85
- /* prefersdark: true; */
92
+ default: false;
93
+ prefersdark: true;
86
94
  color-scheme: 'dark';
87
95
 
88
96
  /* Daisy UI Colors */
@@ -124,7 +132,15 @@
124
132
  --noise: 0;
125
133
 
126
134
  /* Custom Colors */
127
- --color-primary-gradient: oklch(43.1% 0.0738 214.57);
135
+ --color-base-50: color-mix(in oklch, var(--color-base-200), #000 7%);
136
+ --color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
137
+ --color-primary-gradient-content: oklch(100% 0 0);
138
+ --color-secondary-gradient: color-mix(in oklch, var(--color-secondary) 60%, #121212);
139
+ --color-secondary-gradient-content: oklch(100% 0 0);
140
+ --color-tertiary-gradient: color-mix(in oklch, var(--color-tertiary) 60%, #121212);
141
+ --color-tertiary-gradient-content: oklch(100% 0 0);
142
+ --color-accent-gradient: color-mix(in oklch, var(--color-accent) 60%, #121212);
143
+ --color-accent-gradient-content: oklch(100% 0 0);
128
144
  --color-tertiary: oklch(72.52% 0 0);
129
145
  --color-tertiary-content: oklch(13.49% 0.0024 286.07);
130
146
  --color-neutral-secondary: oklch(73.97% 0.0115 280.4);
@@ -133,7 +149,7 @@
133
149
  --color-neutral-tertiary-content: oklch(73.97% 0.0115 280.4);
134
150
  --color-base-placeholder: oklch(51.6% 0.0073 255.51);
135
151
 
136
- --shadow-primary: oklch(78.66% 0.0011 17.18);
152
+ --shadow-primary: oklch(0 0 0);
137
153
 
138
154
  --color-metrics-increase: oklch(74.59% 0.1812 152.33);
139
155
  --color-metrics-decrease: oklch(63.07% 0.194 29.44);
@@ -147,30 +163,38 @@
147
163
  }
148
164
 
149
165
  @theme {
150
- --color-primary-gradient: rgba(var(--primary-gradient), 1);
151
- --color-tertiary: rgba(var(--tertiary), 1);
152
- --color-tertiary-content: rgba(var(--tertiary-content), 1);
153
- --color-neutral-secondary: rgba(var(--neutral-secondary), 1);
154
- --color-neutral-secondary-content: rgba(var(--neutral-secondary-content), 1);
155
- --color-neutral-tertiary: rgba(var(--neutral-tertiary), 1);
156
- --color-neutral-tertiary-content: rgba(var(--neutral-tertiary-content), 1);
157
- --color-base-placeholder: rgba(var(--base-placeholder), 1);
158
-
159
- --color-metrics-increase: rgba(var(--metrics-increase), 1);
160
- --color-metrics-decrease: rgba(var(--metrics-decrease), 1);
161
- --color-metrics-neutral: rgba(var(--metrics-neutral), 1);
162
-
163
- --color-metrics-intensity-highest: rgba(var(--metrics-intensity-highest), 1);
164
- --color-metrics-intensity-high: rgba(var(--metrics-intensity-high), 1);
165
- --color-metrics-intensity-medium: rgba(var(--metrics-intensity-medium), 1);
166
- --color-metrics-intensity-low: rgba(var(--metrics-intensity-low), 1);
167
- --color-metrics-intensity-lowest: rgba(var(--metrics-intensity-lowest), 1);
166
+ --color-base-50: var(--color-base-50);
167
+ --color-primary-gradient: var(--primary-gradient);
168
+ --color-primary-gradient-content: var(--primary-gradient-content);
169
+ --color-secondary-gradient: var(--secondary-gradient);
170
+ --color-secondary-gradient-content: var(--secondary-gradient-content);
171
+ --color-tertiary-gradient: var(--tertiary-gradient);
172
+ --color-tertiary-gradient-content: var(--tertiary-gradient-content);
173
+ --color-accent-gradient: var(--accent-gradient);
174
+ --color-accent-gradient-content: var(--accent-gradient-content);
175
+ --color-tertiary: var(--tertiary);
176
+ --color-tertiary-content: var(--tertiary-content);
177
+ --color-neutral-secondary: var(--neutral-secondary);
178
+ --color-neutral-secondary-content: var(--neutral-secondary-content);
179
+ --color-neutral-tertiary: var(--neutral-tertiary);
180
+ --color-neutral-tertiary-content: var(--neutral-tertiary-content);
181
+ --color-base-placeholder: var(--base-placeholder);
182
+
183
+ --color-metrics-increase: var(--metrics-increase);
184
+ --color-metrics-decrease: var(--metrics-decrease);
185
+ --color-metrics-neutral: var(--metrics-neutral);
186
+
187
+ --color-metrics-intensity-highest: var(--metrics-intensity-highest);
188
+ --color-metrics-intensity-high: var(--metrics-intensity-high);
189
+ --color-metrics-intensity-medium: var(--metrics-intensity-medium);
190
+ --color-metrics-intensity-low: var(--metrics-intensity-low);
191
+ --color-metrics-intensity-lowest: var(--metrics-intensity-lowest);
168
192
 
169
193
  --font-poppins: Poppins, sans-serif;
170
194
  --font-heading: Poppins, sans-serif;
171
195
  --font-body: Poppins, sans-serif;
172
196
 
173
- --shadow-main: 0px 0px 8px 0px rgba(var(--shadow-primary));
197
+ --shadow-main: 0px 0px 4px 0px var(--shadow-primary);
174
198
 
175
199
  --font-weight-inherit: inherit;
176
200
 
@@ -184,6 +208,9 @@
184
208
  --animate-fade-out: fadeOut 1s;
185
209
  --animate-wave: wave 1s linear infinite;
186
210
 
211
+ --text-xxs: 0.625rem;
212
+ --text-xxs--line-height: 0.625rem;
213
+
187
214
  @keyframes wave {
188
215
  0%,
189
216
  100% {
@@ -3,8 +3,8 @@ import * as i0 from "@angular/core";
3
3
  * Represents a user object for the avatar component.
4
4
  *
5
5
  * @property {string} displayName - The full display name of the user.
6
- * @property {string} part1 - The first part of the user's name (used for initials).
7
- * @property {string} part2 - The second part of the user's name (used for initials).
6
+ * @property {string} firstInitial - The first initial of the user's name.
7
+ * @property {string} lastInitial - The last initial of the user's name (optional).
8
8
  * @property {string} role - The role of the user.
9
9
  */
10
10
  export type AvatarUser = {
@@ -14,23 +14,23 @@ export type AvatarUser = {
14
14
  role: string;
15
15
  };
16
16
  /**
17
- * Possible avatar types.
17
+ * Possible presence indicator states.
18
18
  */
19
- export type AvatarTypes = 'quick' | 'profile';
19
+ export type AvatarPresenceProps = 'online' | 'offline' | null | undefined;
20
20
  /**
21
- * CSS class generator for the avatar component.
21
+ * CSS class generator for the avatar inner container.
22
22
  *
23
- * Generates Tailwind CSS classes based on variant, shape, and size.
23
+ * Generates Tailwind CSS classes based on variant, shape, and size following DaisyUI patterns.
24
24
  */
25
- export declare const avatarComponent: (props?: ({
26
- variant?: "neutral" | "neutralSecondary" | "neutralTertiary" | null | undefined;
25
+ export declare const avatarInnerComponent: (props?: ({
26
+ variant?: "primary" | "secondary" | "tertiary" | "accent" | null | undefined;
27
27
  shape?: "square" | "rounded" | null | undefined;
28
- size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
28
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
29
29
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
30
30
  /**
31
31
  * Possible values for the avatar variant.
32
32
  */
33
- export type AvatarVariantProps = 'neutral' | 'neutralSecondary' | 'neutralTertiary' | null | undefined;
33
+ export type AvatarVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | null | undefined;
34
34
  /**
35
35
  * Possible values for the avatar shape.
36
36
  */
@@ -38,7 +38,7 @@ export type AvatarShapeProps = 'square' | 'rounded' | null | undefined;
38
38
  /**
39
39
  * Possible values for the avatar size.
40
40
  */
41
- export type AvatarSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
41
+ export type AvatarSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | null | undefined;
42
42
  /**
43
43
  * Configuration properties for the avatar component.
44
44
  */
@@ -46,22 +46,24 @@ export type AvatarProps = {
46
46
  variant?: AvatarVariantProps;
47
47
  shape?: AvatarShapeProps;
48
48
  size?: AvatarSizeProps;
49
+ presence?: AvatarPresenceProps;
49
50
  };
50
51
  /**
51
- * A customizable avatar component for displaying user images or initials.
52
+ * A customizable avatar component following DaisyUI v5 patterns.
52
53
  *
53
54
  * @remarks
54
55
  * This component uses Angular's signal-based inputs for reactive state management.
55
- * It computes various CSS classes dynamically based on the provided properties.
56
+ * It follows DaisyUI's avatar component structure and supports relative text sizing using em units.
56
57
  *
57
58
  * @example
58
59
  * ```html
59
60
  * <st-avatar
60
61
  * [variant]="'neutral'"
61
- * [shape]="'rounded-sm'"
62
+ * [shape]="'rounded'"
62
63
  * [size]="'md'"
63
64
  * [user]="userObject"
64
- * [shadow]="true"
65
+ * [ring]="true"
66
+ * [presence]="'online'"
65
67
  * [image]="userImageUrl"
66
68
  * [showNameAndRole]="true">
67
69
  * </st-avatar>
@@ -71,7 +73,7 @@ export declare class AvatarComponent {
71
73
  /**
72
74
  * Specifies the visual variant of the avatar.
73
75
  *
74
- * @default neutralTertiary
76
+ * @default neutral
75
77
  */
76
78
  variant: import("@angular/core").InputSignal<AvatarVariantProps>;
77
79
  /**
@@ -87,11 +89,17 @@ export declare class AvatarComponent {
87
89
  */
88
90
  size: import("@angular/core").InputSignal<AvatarSizeProps>;
89
91
  /**
90
- * Enables or disables a shadow effect on the avatar.
92
+ * Enables or disables a ring effect on the avatar based on the current variant.
91
93
  *
92
- * @default false
94
+ * @default true
95
+ */
96
+ ring: import("@angular/core").InputSignal<boolean>;
97
+ /**
98
+ * Specifies the presence indicator state.
99
+ *
100
+ * @default undefined
93
101
  */
94
- shadow: import("@angular/core").InputSignal<boolean>;
102
+ presence: import("@angular/core").InputSignal<AvatarPresenceProps>;
95
103
  /**
96
104
  * The user data used to display avatar initials when no image is provided.
97
105
  *
@@ -117,23 +125,29 @@ export declare class AvatarComponent {
117
125
  */
118
126
  initials: import("@angular/core").Signal<string>;
119
127
  /**
120
- * Computes the CSS classes for the avatar based on variant, shape, and size.
128
+ * Computes the CSS classes for the avatar container following DaisyUI patterns.
129
+ *
130
+ * @returns {string} Combined classes including presence indicators.
131
+ */
132
+ containerClass: import("@angular/core").Signal<string>;
133
+ /**
134
+ * Computes the CSS classes for the avatar inner element.
121
135
  *
122
136
  * @returns {string} Combined Tailwind CSS classes.
123
137
  */
124
138
  componentClass: import("@angular/core").Signal<string>;
125
139
  /**
126
- * Computes the CSS classes for the avatar container.
140
+ * Computes the CSS classes for the text size of the user's name.
127
141
  *
128
- * @returns {string} Combined classes that include placeholder and shadow effects.
142
+ * @returns {string} Tailwind CSS classes for text sizing.
129
143
  */
130
- containerClass: import("@angular/core").Signal<string>;
144
+ nameTextSizeClass: import("@angular/core").Signal<string>;
131
145
  /**
132
- * Computes the CSS classes for the text size of the user's name and role.
146
+ * Computes the CSS classes for the text size of the user's role.
133
147
  *
134
148
  * @returns {string} Tailwind CSS classes for text sizing.
135
149
  */
136
- nameAndRoleTextSizeClass: import("@angular/core").Signal<string>;
150
+ roleTextSizeClass: import("@angular/core").Signal<string>;
137
151
  static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
138
- static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "st-avatar", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": true; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "showNameAndRole": { "alias": "showNameAndRole"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "st-avatar", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ring": { "alias": "ring"; "required": false; "isSignal": true; }; "presence": { "alias": "presence"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": true; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "showNameAndRole": { "alias": "showNameAndRole"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
139
153
  }
@@ -4,12 +4,12 @@ import * as i0 from "@angular/core";
4
4
  * Generates base button classes with style variants
5
5
  */
6
6
  export declare const buttonComponent: (props?: ({
7
- variant?: "primary" | "secondary" | "tertiary" | "accent" | "info" | "success" | "warning" | "error" | null | undefined;
7
+ variant?: "primary" | "secondary" | "tertiary" | "accent" | "info" | "success" | "warning" | "error" | "base" | null | undefined;
8
8
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
9
9
  iconPosition?: "left" | "right" | null | undefined;
10
10
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
11
  /** Possible button style variants */
12
- export type ButtonVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;
12
+ export type ButtonVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | 'base' | null | undefined;
13
13
  /** Possible button size variants */
14
14
  export type ButtonSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
15
15
  /** Possible icon positions relative to button text */
@@ -0,0 +1,39 @@
1
+ import { IconColorProps, IconSizeProps } from '@sixbell-telco/sdk/components/icon';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * DropdownChevron - Chevron indicator for dropdown triggers
5
+ * Automatically rotates based on dropdown state and positions itself correctly
6
+ */
7
+ export declare class DropdownChevronComponent {
8
+ private readonly dropdownService;
9
+ /**
10
+ * Custom icon to use instead of default arrow down
11
+ */
12
+ icon: import("@angular/core").InputSignal<string>;
13
+ /**
14
+ * Additional CSS classes
15
+ */
16
+ class: import("@angular/core").InputSignal<string>;
17
+ /**
18
+ * Size of the chevron using Icon component size types
19
+ */
20
+ size: import("@angular/core").InputSignal<IconSizeProps>;
21
+ /**
22
+ * Color of the chevron using Icon component color types
23
+ */
24
+ color: import("@angular/core").InputSignal<IconColorProps>;
25
+ /**
26
+ * Position relative to content
27
+ */
28
+ position: import("@angular/core").InputSignal<"left" | "right">;
29
+ /**
30
+ * Whether the chevron is open (rotated)
31
+ */
32
+ private readonly isOpen;
33
+ /**
34
+ * Computed classes for the chevron
35
+ */
36
+ readonly chevronClasses: import("@angular/core").Signal<string>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownChevronComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownChevronComponent, "st-dropdown-chevron", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
39
+ }
@@ -0,0 +1,41 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * DropdownContent - Container for dropdown menu items
5
+ *
6
+ * @remarks
7
+ * This component contains the dropdown menu items and provides them as a template
8
+ * for the trigger component to display in the overlay.
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <st-dropdown-content>
13
+ * <st-dropdown-item>Menu Item 1</st-dropdown-item>
14
+ * <st-dropdown-item>Menu Item 2</st-dropdown-item>
15
+ * <div class="divider"></div>
16
+ * <st-dropdown-item>Menu Item 3</st-dropdown-item>
17
+ * </st-dropdown-content>
18
+ * ```
19
+ */
20
+ export declare class DropdownContentComponent {
21
+ template: TemplateRef<unknown>;
22
+ /** Custom CSS classes */
23
+ class: import("@angular/core").InputSignal<string>;
24
+ /** Size variant */
25
+ size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg" | "xl">;
26
+ /** Whether to apply shadow */
27
+ shadow: import("@angular/core").InputSignal<boolean>;
28
+ /** Event emitted when close is requested */
29
+ closeRequested: import("@angular/core").OutputEmitterRef<void>;
30
+ /**
31
+ * Computed CSS classes for the content
32
+ */
33
+ contentClass: () => string;
34
+ /**
35
+ * Request to close the dropdown
36
+ * This will be handled by the parent dropdown component
37
+ */
38
+ requestClose(): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownContentComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownContentComponent, "st-dropdown-content", ["dropdownContent"], { "class": { "alias": "class"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; }, { "closeRequested": "closeRequested"; }, never, ["*"], true, never>;
41
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * DropdownGroup - Groups related dropdown items together
4
+ * Provides semantic grouping for dropdown items
5
+ */
6
+ export declare class DropdownGroupComponent {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownGroupComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownGroupComponent, "st-dropdown-group", never, {}, {}, never, ["*"], true, never>;
9
+ }
@@ -1,10 +1,9 @@
1
- import { DropdownComponent } from '../src/dropdown.component';
2
1
  import * as i0 from "@angular/core";
3
2
  /**
4
3
  * A selectable item component for use within dropdown menus
5
4
  *
6
5
  * @remarks
7
- * Designed to be used inside `<st-dropdown>` components. Handles selection events
6
+ * Designed to be used inside `<st-dropdown-content>` components. Handles selection events
8
7
  * and automatically closes the parent dropdown when clicked.
9
8
  *
10
9
  * @example
@@ -17,27 +16,39 @@ import * as i0 from "@angular/core";
17
16
  *
18
17
  * @example
19
18
  * ```html
20
- * <st-dropdown-item class="custom-item-style" (selected)="logSelection()">
21
- * Custom styled item
19
+ * <st-dropdown-item class="custom-item-style" (selected)="logSelection()" [disabled]="true">
20
+ * Disabled item
22
21
  * </st-dropdown-item>
23
22
  * ```
24
23
  */
25
24
  export declare class DropdownItemComponent {
26
- private dropdown;
25
+ private readonly dropdown;
27
26
  /**
28
- * Event emitted when the item is selected
27
+ * Whether the menu item is active
29
28
  */
30
- selected: import("@angular/core").OutputEmitterRef<void>;
29
+ active: import("@angular/core").InputSignal<boolean>;
31
30
  /**
32
- * @internal
33
- * Reference to parent dropdown component
31
+ * Custom CSS classes
34
32
  */
35
- constructor(dropdown: DropdownComponent);
33
+ class: import("@angular/core").InputSignal<string>;
34
+ /**
35
+ * Whether the item is disabled
36
+ * @defaultValue false
37
+ */
38
+ disabled: import("@angular/core").InputSignal<boolean>;
39
+ /**
40
+ * Event emitted when the item is selected
41
+ */
42
+ selected: import("@angular/core").OutputEmitterRef<void>;
36
43
  /**
37
44
  * @internal
38
45
  * Handles item selection and dropdown state
39
46
  */
40
47
  handleSelect(): void;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemComponent, [{ host: true; }]>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "st-dropdown-item", never, {}, { "selected": "selected"; }, never, ["*"], true, never>;
48
+ /**
49
+ * Computed CSS classes for the menu item
50
+ */
51
+ itemClass: () => string;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemComponent, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "st-dropdown-item", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selected"; }, never, ["*"], true, never>;
43
54
  }
@@ -0,0 +1,49 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * DropdownItemCheckbox - Checkbox dropdown item
4
+ * Provides checkbox functionality for dropdown selections
5
+ */
6
+ export declare class DropdownItemCheckboxComponent {
7
+ /**
8
+ * Whether the checkbox is checked
9
+ */
10
+ checked: import("@angular/core").InputSignal<boolean>;
11
+ /**
12
+ * Whether the menu item is disabled
13
+ */
14
+ disabled: import("@angular/core").InputSignal<boolean>;
15
+ /**
16
+ * Custom indicator character or text
17
+ */
18
+ indicator: import("@angular/core").InputSignal<string>;
19
+ /**
20
+ * Whether to show the indicator
21
+ */
22
+ showIndicator: import("@angular/core").InputSignal<boolean>;
23
+ /**
24
+ * Custom CSS classes
25
+ */
26
+ class: import("@angular/core").InputSignal<string>;
27
+ /**
28
+ * Emitted when the checkbox state changes
29
+ */
30
+ checkedChange: import("@angular/core").OutputEmitterRef<boolean>;
31
+ /**
32
+ * Emitted when the menu item is triggered/clicked
33
+ */
34
+ triggered: import("@angular/core").OutputEmitterRef<void>;
35
+ /**
36
+ * Computed data state for ARIA
37
+ */
38
+ dataState: import("@angular/core").Signal<"checked" | "unchecked">;
39
+ /**
40
+ * Handle item click - toggle checkbox state
41
+ */
42
+ onItemClick(): void;
43
+ /**
44
+ * Computed CSS classes for the menu item
45
+ */
46
+ itemClass: () => string;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemCheckboxComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemCheckboxComponent, "st-dropdown-item-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; "triggered": "triggered"; }, never, ["*"], true, never>;
49
+ }