@sixbell-telco/sdk 1.0.3 → 1.2.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 (103) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/README.md +641 -163
  3. package/_index.css +85 -28
  4. package/components/avatar/src/avatar.component.d.ts +40 -26
  5. package/components/badge/src/badge.component.d.ts +0 -4
  6. package/components/button/src/button.component.d.ts +2 -2
  7. package/components/dialog/dialog-actions/dialog-actions.component.d.ts +8 -0
  8. package/components/dialog/dialog-content/dialog-content.component.d.ts +5 -0
  9. package/components/dialog/dialog-sub-title/dialog-sub-title.component.d.ts +5 -0
  10. package/components/dialog/dialog-title/dialog-title.component.d.ts +5 -0
  11. package/components/dialog/index.d.ts +5 -0
  12. package/components/dialog/public-api.d.ts +5 -0
  13. package/components/dialog/src/dialog.component.d.ts +132 -0
  14. package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +39 -0
  15. package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +41 -0
  16. package/components/dropdown/dropdown-group/dropdown-group.component.d.ts +9 -0
  17. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +23 -12
  18. package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +49 -0
  19. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +53 -0
  20. package/components/dropdown/dropdown-label/dropdown-label.component.d.ts +17 -0
  21. package/components/dropdown/dropdown-separator/dropdown-separator.component.d.ts +21 -0
  22. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +121 -0
  23. package/components/dropdown/public-api.d.ts +9 -0
  24. package/components/dropdown/src/dropdown.component.d.ts +20 -174
  25. package/components/dropdown/src/services/dropdown.service.d.ts +22 -0
  26. package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +22 -0
  27. package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +64 -0
  28. package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +37 -0
  29. package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +54 -0
  30. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +58 -0
  31. package/components/dropdown-menu/bar/dropdown-menu-bar-label/dropdown-menu-bar-label.component.d.ts +16 -0
  32. package/components/dropdown-menu/bar/dropdown-menu-bar-separator/dropdown-menu-bar-separator.component.d.ts +16 -0
  33. package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +29 -0
  34. package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +50 -0
  35. package/components/dropdown-menu/bar/index.d.ts +5 -0
  36. package/components/dropdown-menu/bar/public-api.d.ts +9 -0
  37. package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +23 -0
  38. package/components/dropdown-menu/context/index.d.ts +5 -0
  39. package/components/dropdown-menu/context/public-api.d.ts +1 -0
  40. package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +43 -0
  41. package/components/dropdown-menu/index.d.ts +5 -0
  42. package/components/dropdown-menu/public-api.d.ts +13 -0
  43. package/components/dropdown-menu/src/directives/dropdown-menu.directive.d.ts +40 -0
  44. package/components/dropdown-menu/src/dropdown-menu/dropdown-menu.component.d.ts +9 -0
  45. package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +40 -0
  46. package/components/dropdown-menu/src/dropdown-menu-group/dropdown-menu-group.component.d.ts +8 -0
  47. package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +38 -0
  48. package/components/dropdown-menu/src/dropdown-menu-label/dropdown-menu-label.component.d.ts +16 -0
  49. package/components/dropdown-menu/src/dropdown-menu-separator/dropdown-menu-separator.component.d.ts +16 -0
  50. package/components/dropdown-menu/src/dropdown-menu-sub/dropdown-menu-sub.component.d.ts +8 -0
  51. package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +31 -0
  52. package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +18 -0
  53. package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +19 -0
  54. package/components/dropdown-menu/src/services/dropdown-menu.service.d.ts +22 -0
  55. package/directives/auto-focus/src/autofocus.directive.d.ts +3 -3
  56. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +75 -39
  57. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  58. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +1 -1
  59. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -0
  61. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +305 -0
  63. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -0
  64. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +529 -0
  65. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -0
  66. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +52 -0
  67. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -0
  68. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +539 -0
  69. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -0
  70. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +592 -213
  71. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  72. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +5 -2
  73. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
  75. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  78. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +2 -2
  79. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  80. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +3 -3
  81. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
  82. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +295 -0
  83. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -0
  84. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +332 -0
  85. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -0
  86. package/package.json +29 -9
  87. package/sixbell-telco-sdk-1.2.0.tgz +0 -0
  88. package/utils/theme/README.md +185 -0
  89. package/{components/modal → utils/theme}/index.d.ts +1 -1
  90. package/utils/theme/public-api.d.ts +1 -0
  91. package/utils/theme/src/theme.service.d.ts +206 -0
  92. package/utils/translation/README.md +274 -0
  93. package/utils/translation/index.d.ts +5 -0
  94. package/utils/translation/public-api.d.ts +5 -0
  95. package/utils/translation/src/translation.service.d.ts +197 -0
  96. package/components/modal/modal-actions/modal-actions.component.d.ts +0 -8
  97. package/components/modal/modal-content/modal-content.component.d.ts +0 -5
  98. package/components/modal/modal-title/modal-title.component.d.ts +0 -5
  99. package/components/modal/public-api.d.ts +0 -4
  100. package/components/modal/src/modal.component.d.ts +0 -102
  101. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +0 -202
  102. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +0 -1
  103. package/sixbell-telco-sdk-1.0.3.tgz +0 -0
package/_index.css CHANGED
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  @plugin "daisyui/theme" {
15
- name: 'vivid_elegance_light';
15
+ name: 'sixbell_telco__light';
16
16
  default: true;
17
17
  prefersdark: false;
18
18
  color-scheme: 'light';
@@ -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);
@@ -65,8 +73,10 @@
65
73
  --color-neutral-tertiary: oklch(100% 0 0);
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);
76
+ --color-backdrop: oklch(0% 0 0/ 0.4);
68
77
 
69
- --shadow-primary: oklch(78.66% 0.0011 17.18);
78
+ --shadow-primary: oklch(0.8975 0 0);
79
+ --shadow-backdrop: oklch(0% 0 0/ 0.25);
70
80
 
71
81
  --color-metrics-increase: oklch(74.59% 0.1812 152.33);
72
82
  --color-metrics-decrease: oklch(63.07% 0.194 29.44);
@@ -80,9 +90,9 @@
80
90
  }
81
91
 
82
92
  @plugin "daisyui/theme" {
83
- name: 'vivid_elegance_dark';
84
- /* default: false; */
85
- /* prefersdark: true; */
93
+ name: 'sixbell_telco__dark';
94
+ default: false;
95
+ prefersdark: true;
86
96
  color-scheme: 'dark';
87
97
 
88
98
  /* Daisy UI Colors */
@@ -124,7 +134,15 @@
124
134
  --noise: 0;
125
135
 
126
136
  /* Custom Colors */
127
- --color-primary-gradient: oklch(43.1% 0.0738 214.57);
137
+ --color-base-50: color-mix(in oklch, var(--color-base-200), #000 7%);
138
+ --color-primary-gradient: color-mix(in oklch, var(--color-primary) 60%, #121212);
139
+ --color-primary-gradient-content: oklch(100% 0 0);
140
+ --color-secondary-gradient: color-mix(in oklch, var(--color-secondary) 60%, #121212);
141
+ --color-secondary-gradient-content: oklch(100% 0 0);
142
+ --color-tertiary-gradient: color-mix(in oklch, var(--color-tertiary) 60%, #121212);
143
+ --color-tertiary-gradient-content: oklch(100% 0 0);
144
+ --color-accent-gradient: color-mix(in oklch, var(--color-accent) 60%, #121212);
145
+ --color-accent-gradient-content: oklch(100% 0 0);
128
146
  --color-tertiary: oklch(72.52% 0 0);
129
147
  --color-tertiary-content: oklch(13.49% 0.0024 286.07);
130
148
  --color-neutral-secondary: oklch(73.97% 0.0115 280.4);
@@ -132,8 +150,10 @@
132
150
  --color-neutral-tertiary: oklch(100% 0 0);
133
151
  --color-neutral-tertiary-content: oklch(73.97% 0.0115 280.4);
134
152
  --color-base-placeholder: oklch(51.6% 0.0073 255.51);
153
+ --color-backdrop: oklch(0% 0 0/ 0.4);
135
154
 
136
- --shadow-primary: oklch(78.66% 0.0011 17.18);
155
+ --shadow-primary: oklch(0 0 0);
156
+ --shadow-backdrop: oklch(0% 0 0/ 0.25);
137
157
 
138
158
  --color-metrics-increase: oklch(74.59% 0.1812 152.33);
139
159
  --color-metrics-decrease: oklch(63.07% 0.194 29.44);
@@ -147,30 +167,41 @@
147
167
  }
148
168
 
149
169
  @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);
170
+ --color-base-50: var(--base-50);
171
+ --color-primary-gradient: var(--primary-gradient);
172
+ --color-primary-gradient-content: var(--primary-gradient-content);
173
+ --color-secondary-gradient: var(--secondary-gradient);
174
+ --color-secondary-gradient-content: var(--secondary-gradient-content);
175
+ --color-tertiary-gradient: var(--tertiary-gradient);
176
+ --color-tertiary-gradient-content: var(--tertiary-gradient-content);
177
+ --color-accent-gradient: var(--accent-gradient);
178
+ --color-accent-gradient-content: var(--accent-gradient-content);
179
+ --color-tertiary: var(--tertiary);
180
+ --color-tertiary-content: var(--tertiary-content);
181
+ --color-neutral-secondary: var(--neutral-secondary);
182
+ --color-neutral-secondary-content: var(--neutral-secondary-content);
183
+ --color-neutral-tertiary: var(--neutral-tertiary);
184
+ --color-neutral-tertiary-content: var(--neutral-tertiary-content);
185
+ --color-base-placeholder: var(--base-placeholder);
186
+ --color-backdrop: var(--backdrop);
187
+ --shadow-backdrop: var(--shadow-backdrop);
188
+
189
+ --color-metrics-increase: var(--metrics-increase);
190
+ --color-metrics-decrease: var(--metrics-decrease);
191
+ --color-metrics-neutral: var(--metrics-neutral);
192
+
193
+ --color-metrics-intensity-highest: var(--metrics-intensity-highest);
194
+ --color-metrics-intensity-high: var(--metrics-intensity-high);
195
+ --color-metrics-intensity-medium: var(--metrics-intensity-medium);
196
+ --color-metrics-intensity-low: var(--metrics-intensity-low);
197
+ --color-metrics-intensity-lowest: var(--metrics-intensity-lowest);
168
198
 
169
199
  --font-poppins: Poppins, sans-serif;
170
200
  --font-heading: Poppins, sans-serif;
171
201
  --font-body: Poppins, sans-serif;
172
202
 
173
- --shadow-main: 0px 0px 8px 0px rgba(var(--shadow-primary));
203
+ --shadow-main: 0px 0px 4px 0px var(--shadow-primary);
204
+ --shadow-backdrop: 0px 25px 50px -12px var(--shadow-backdrop);
174
205
 
175
206
  --font-weight-inherit: inherit;
176
207
 
@@ -183,6 +214,11 @@
183
214
  --animate-fade-in: fadeIn 1s;
184
215
  --animate-fade-out: fadeOut 1s;
185
216
  --animate-wave: wave 1s linear infinite;
217
+ --animate-enter: enter 0.15s ease 0s 1 normal none;
218
+ --animate-exit: exit 0.15s ease 0s 1 normal none;
219
+
220
+ --text-xxs: 0.625rem;
221
+ --text-xxs--line-height: 0.625rem;
186
222
 
187
223
  @keyframes wave {
188
224
  0%,
@@ -193,6 +229,28 @@
193
229
  transform: scaleY(1);
194
230
  }
195
231
  }
232
+
233
+ @keyframes enter {
234
+ 0% {
235
+ opacity: 0;
236
+ transform: scale(0.95);
237
+ }
238
+ 100% {
239
+ opacity: 1;
240
+ transform: scale(1);
241
+ }
242
+ }
243
+
244
+ @keyframes exit {
245
+ 0% {
246
+ opacity: 1;
247
+ transform: scale(1);
248
+ }
249
+ 100% {
250
+ opacity: 0;
251
+ transform: scale(0.95);
252
+ }
253
+ }
196
254
  }
197
255
 
198
256
  @layer base {
@@ -328,7 +386,6 @@
328
386
  opacity: 0;
329
387
  }
330
388
  }
331
-
332
389
  .animate-wave {
333
390
  animation-delay: calc(1s - var(--i));
334
391
  }
@@ -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
  }
@@ -1,8 +1,4 @@
1
1
  import * as i0 from "@angular/core";
2
- export type Route = {
3
- label: string;
4
- path: string;
5
- };
6
2
  /**
7
3
  * @internal
8
4
  * Generates base badge classes with style variants
@@ -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,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export type ModalActionsAligmentProps = 'left' | 'right' | 'center';
3
+ export declare class DialogActionsComponent {
4
+ alignment: import("@angular/core").InputSignal<ModalActionsAligmentProps>;
5
+ componentClass: import("@angular/core").Signal<string>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogActionsComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogActionsComponent, "st-dialog-actions", never, { "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
8
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DialogContentComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogContentComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogContentComponent, "st-dialog-content", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DialogSubTitleComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogSubTitleComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogSubTitleComponent, "st-dialog-sub-title", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DialogTitleComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogTitleComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogTitleComponent, "st-dialog-title", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sixbell-telco/sdk/components/dialog" />
5
+ export * from './public-api';
@@ -0,0 +1,5 @@
1
+ export * from './dialog-actions/dialog-actions.component';
2
+ export * from './dialog-content/dialog-content.component';
3
+ export * from './dialog-sub-title/dialog-sub-title.component';
4
+ export * from './dialog-title/dialog-title.component';
5
+ export * from './src/dialog.component';
@@ -0,0 +1,132 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * CSS class generator for dialog component variants
5
+ * Uses carefully selected DaisyUI classes that don't conflict with CDK positioning
6
+ * @internal
7
+ */
8
+ export declare const dialogComponent: (props?: ({
9
+ width?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ /** Possible width values for the dialog component */
12
+ export type DialogWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;
13
+ /** Possible vertical alignment values for the dialog component */
14
+ export type DialogAlignmentProps = 'top' | 'center' | 'bottom' | 'start' | 'end' | null | undefined;
15
+ /** Animation states for the dialog */
16
+ type AnimationState = 'closed' | 'open';
17
+ /** Configuration properties for the dialog component */
18
+ export type DialogProps = {
19
+ width?: DialogWidthProps;
20
+ alignment?: DialogAlignmentProps;
21
+ };
22
+ /**
23
+ * A customizable dialog component using Angular CDK Dialog for declarative usage
24
+ *
25
+ * @remarks
26
+ * This component provides a declarative way to create dialogs with content projection.
27
+ * Uses CDK Dialog under the hood to avoid z-index issues with native dialog elements.
28
+ *
29
+ * @example
30
+ * ```html
31
+ * <st-dialog
32
+ * [(opened)]="isDialogOpen"
33
+ * width="lg"
34
+ * alignment="center"
35
+ * (closed)="handleDialogClosed()">
36
+ * <st-dialog-title>Confirm Action</st-dialog-title>
37
+ * <st-dialog-content>
38
+ * Are you sure you want to proceed?
39
+ * </st-dialog-content>
40
+ * <st-dialog-actions>
41
+ * <st-button (click)="confirmAction()">Confirm</st-button>
42
+ * <st-button variant="secondary" (click)="closeDialog()">Cancel</st-button>
43
+ * </st-dialog-actions>
44
+ * </st-dialog>
45
+ * ```
46
+ */
47
+ export declare class DialogComponent {
48
+ /**
49
+ * Specifies the maximum width of the dialog content
50
+ * @defaultValue 'md'
51
+ */
52
+ width: import("@angular/core").InputSignal<DialogWidthProps>;
53
+ /**
54
+ * Controls the horizontal positioning of the dialog (x-axis)
55
+ * @defaultValue 'center'
56
+ */
57
+ xPosition: import("@angular/core").InputSignal<"center" | "start" | "end">;
58
+ /**
59
+ * Controls the vertical positioning of the dialog (y-axis)
60
+ * @defaultValue 'center'
61
+ */
62
+ yPosition: import("@angular/core").InputSignal<"center" | "top" | "bottom">;
63
+ /**
64
+ * Controls the visibility state of the dialog
65
+ * Supports two-way binding via Angular's model
66
+ */
67
+ opened: import("@angular/core").ModelSignal<boolean>;
68
+ /** Event emitted when the dialog closes */
69
+ closed: import("@angular/core").OutputEmitterRef<void>;
70
+ /** Event emitted when clicking outside the dialog content */
71
+ clickOutside: import("@angular/core").OutputEmitterRef<void>;
72
+ /** @internal CDK Dialog service */
73
+ private readonly dialog;
74
+ /** @internal CDK Overlay service for positioning */
75
+ private readonly overlay;
76
+ /** @internal Reference to the dialog template */
77
+ dialogTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
78
+ /** @internal Reference to the current open dialog */
79
+ private dialogRef;
80
+ /** @internal Animation state signal for controlling CSS animations */
81
+ private readonly animationState;
82
+ /** @internal Flag to track if we're in the process of closing */
83
+ private isClosing;
84
+ /**
85
+ * Computes the data-state attribute value for CSS animations
86
+ * @returns Current animation state
87
+ * @internal
88
+ */
89
+ dataState: import("@angular/core").Signal<AnimationState>;
90
+ /**
91
+ * Computes CSS classes for dialog content based on current configuration
92
+ * @returns Combined Tailwind classes string
93
+ * @internal
94
+ */
95
+ componentClass: import("@angular/core").Signal<string>;
96
+ /** @internal Handles open/close state changes */
97
+ openedEffect: import("@angular/core").EffectRef;
98
+ /**
99
+ * Computed CDK Dialog configuration based on x/y axis signals
100
+ * Uses CDK's overlay positioning system for full axis control
101
+ * @internal
102
+ */
103
+ private readonly dialogConfig;
104
+ /**
105
+ * Opens the dialog using CDK Dialog
106
+ * @internal
107
+ */
108
+ private openDialog;
109
+ /**
110
+ * Public method to close the dialog
111
+ * Can be called directly from parent components or child components
112
+ */
113
+ close(): void;
114
+ /**
115
+ * Closes the dialog using CDK Dialog
116
+ * @internal
117
+ */
118
+ private closeDialog;
119
+ /**
120
+ * Handles animation end events to trigger the actual dialog close
121
+ * @internal
122
+ */
123
+ onAnimationEnd(event: AnimationEvent): void;
124
+ /**
125
+ * Handles the close button click
126
+ * @internal
127
+ */
128
+ handleCloseClick(): void;
129
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
130
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "st-dialog", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "xPosition": { "alias": "xPosition"; "required": false; "isSignal": true; }; "yPosition": { "alias": "yPosition"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; }, { "opened": "openedChange"; "closed": "closed"; "clickOutside": "clickOutside"; }, never, ["st-dialog-title", "st-dialog-sub-title", "st-dialog-content", "st-dialog-actions"], true, never>;
131
+ }
132
+ export {};
@@ -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
+ }