@sixbell-telco/sdk 0.1.9 → 0.2.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.
Files changed (125) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/_index.scss +0 -1
  3. package/assets/styles/combobox.scss +5 -0
  4. package/components/button/src/button.component.d.ts +3 -3
  5. package/components/dropdown/src/dropdown.component.d.ts +4 -3
  6. package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +1 -0
  7. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +2 -5
  8. package/components/forms/combobox/src/combobox.component.d.ts +4 -4
  9. package/components/forms/datepicker/src/datepicker.component.d.ts +2 -0
  10. package/components/forms/input/src/input.component.d.ts +8 -5
  11. package/components/forms/select/src/select.component.d.ts +4 -4
  12. package/components/icon/material/baseline/index.d.ts +5 -0
  13. package/components/icon/material/baseline/public-api.d.ts +1 -0
  14. package/components/icon/material/outline/index.d.ts +5 -0
  15. package/components/icon/material/outline/public-api.d.ts +1 -0
  16. package/components/icon/material/round/index.d.ts +5 -0
  17. package/components/icon/material/round/public-api.d.ts +1 -0
  18. package/components/icon/material/sharp/index.d.ts +5 -0
  19. package/components/icon/material/sharp/public-api.d.ts +1 -0
  20. package/components/icon/public-api.d.ts +0 -1
  21. package/components/icon/src/icon.component.d.ts +2 -4
  22. package/components/link/src/link.component.d.ts +6 -5
  23. package/components/notification/src/notification.component.d.ts +2 -3
  24. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +2 -3
  25. package/components/paginator/src/paginator.component.d.ts +4 -0
  26. package/components/product-card/src/product-card.component.d.ts +3 -3
  27. package/components/toast/toast-message/toast-message.component.d.ts +4 -2
  28. package/components/wizard/wizard-step/wizard-step.component.d.ts +1 -0
  29. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +1 -0
  30. package/esm2022/components/button/src/button.component.mjs +6 -4
  31. package/esm2022/components/dropdown/src/dropdown.component.mjs +7 -4
  32. package/esm2022/components/dual-list/src/dual-list.component.mjs +3 -3
  33. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +5 -3
  34. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +3 -7
  35. package/esm2022/components/forms/combobox/src/combobox.component.mjs +15 -17
  36. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +6 -3
  37. package/esm2022/components/forms/input/src/input.component.mjs +24 -19
  38. package/esm2022/components/forms/select/src/select.component.mjs +12 -13
  39. package/esm2022/components/icon/material/baseline/public-api.mjs +2 -0
  40. package/esm2022/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.mjs +5 -0
  41. package/esm2022/components/icon/material/outline/public-api.mjs +2 -0
  42. package/esm2022/components/icon/material/outline/sixbell-telco-sdk-components-icon-material-outline.mjs +5 -0
  43. package/esm2022/components/icon/material/round/public-api.mjs +2 -0
  44. package/esm2022/components/icon/material/round/sixbell-telco-sdk-components-icon-material-round.mjs +5 -0
  45. package/esm2022/components/icon/material/sharp/public-api.mjs +2 -0
  46. package/esm2022/components/icon/material/sharp/sixbell-telco-sdk-components-icon-material-sharp.mjs +5 -0
  47. package/esm2022/components/icon/public-api.mjs +1 -2
  48. package/esm2022/components/icon/src/icon.component.mjs +9 -11
  49. package/esm2022/components/link/src/link.component.mjs +11 -8
  50. package/esm2022/components/notification/src/notification.component.mjs +5 -4
  51. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +5 -4
  52. package/esm2022/components/paginator/src/paginator.component.mjs +8 -3
  53. package/esm2022/components/product-card/src/product-card.component.mjs +6 -4
  54. package/esm2022/components/table/src/table.component.mjs +3 -5
  55. package/esm2022/components/toast/toast-message/toast-message.component.mjs +9 -5
  56. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +5 -3
  57. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +5 -3
  58. package/esm2022/public_api.mjs +1 -1
  59. package/esm2022/sixbell-telco-sdk.mjs +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-button.mjs +5 -3
  61. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +6 -3
  63. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +2 -2
  65. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  66. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +4 -2
  67. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
  68. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +2 -6
  69. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
  70. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +14 -16
  71. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  72. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +5 -2
  73. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +23 -18
  75. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +11 -12
  77. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  78. package/fesm2022/sixbell-telco-sdk-components-icon-material-baseline.mjs +6 -0
  79. package/fesm2022/sixbell-telco-sdk-components-icon-material-baseline.mjs.map +1 -0
  80. package/fesm2022/sixbell-telco-sdk-components-icon-material-outline.mjs +6 -0
  81. package/fesm2022/sixbell-telco-sdk-components-icon-material-outline.mjs.map +1 -0
  82. package/fesm2022/sixbell-telco-sdk-components-icon-material-round.mjs +6 -0
  83. package/fesm2022/sixbell-telco-sdk-components-icon-material-round.mjs.map +1 -0
  84. package/fesm2022/sixbell-telco-sdk-components-icon-material-sharp.mjs +6 -0
  85. package/fesm2022/sixbell-telco-sdk-components-icon-material-sharp.mjs.map +1 -0
  86. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +8 -10
  87. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  88. package/fesm2022/sixbell-telco-sdk-components-link.mjs +10 -7
  89. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  90. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +4 -3
  91. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  92. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +10 -5
  93. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  94. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +5 -3
  95. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  96. package/fesm2022/sixbell-telco-sdk-components-table.mjs +2 -4
  97. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  98. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +7 -3
  99. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  100. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +7 -4
  101. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  102. package/fesm2022/sixbell-telco-sdk.mjs.map +1 -1
  103. package/package.json +29 -4
  104. package/assets/fonts/Poppins-Black.ttf +0 -0
  105. package/assets/fonts/Poppins-BlackItalic.ttf +0 -0
  106. package/assets/fonts/Poppins-Bold.ttf +0 -0
  107. package/assets/fonts/Poppins-BoldItalic.ttf +0 -0
  108. package/assets/fonts/Poppins-ExtraBold.ttf +0 -0
  109. package/assets/fonts/Poppins-ExtraBoldItalic.ttf +0 -0
  110. package/assets/fonts/Poppins-ExtraLight.ttf +0 -0
  111. package/assets/fonts/Poppins-ExtraLightItalic.ttf +0 -0
  112. package/assets/fonts/Poppins-Italic.ttf +0 -0
  113. package/assets/fonts/Poppins-Light.ttf +0 -0
  114. package/assets/fonts/Poppins-LightItalic.ttf +0 -0
  115. package/assets/fonts/Poppins-Medium.ttf +0 -0
  116. package/assets/fonts/Poppins-MediumItalic.ttf +0 -0
  117. package/assets/fonts/Poppins-Regular.ttf +0 -0
  118. package/assets/fonts/Poppins-SemiBold.ttf +0 -0
  119. package/assets/fonts/Poppins-SemiBoldItalic.ttf +0 -0
  120. package/assets/fonts/Poppins-Thin.ttf +0 -0
  121. package/assets/fonts/Poppins-ThinItalic.ttf +0 -0
  122. package/assets/icons/icons.svg +0 -1021
  123. package/assets/styles/fonts.scss +0 -85
  124. package/components/icon/src/icon.d.ts +0 -1
  125. package/esm2022/components/icon/src/icon.mjs +0 -2
@@ -4,13 +4,14 @@ import { toObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import * as i1 from '@angular/forms';
5
5
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
6
6
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
7
+ import { matSearchOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
7
8
  import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
8
9
  import { cn } from '@sixbell-telco/sdk/utils/cn';
9
10
  import { cva } from 'class-variance-authority';
10
11
  import { Subject, switchMap, skip, debounceTime, distinctUntilChanged } from 'rxjs';
11
12
 
12
13
  /* eslint-disable @typescript-eslint/no-explicit-any */
13
- const inputComponent = cva(['font-body', 'text-base', 'transition', 'duration-300', 'ease-ease-out-back', 'w-full'], {
14
+ const inputComponent = cva(['min-h-[auto]', 'h-auto', 'font-body', 'text-base', 'transition', 'duration-300', 'ease-ease-out-back', 'w-full'], {
14
15
  variants: {
15
16
  variant: {
16
17
  primary: ['input', 'input-primary'],
@@ -18,8 +19,8 @@ const inputComponent = cva(['font-body', 'text-base', 'transition', 'duration-30
18
19
  success: ['input', 'input-success'],
19
20
  error: ['input', 'input-error'],
20
21
  warning: ['input', 'input-warning'],
21
- search: ['input', 'input-bordered', 'flex', 'items-center', 'gap-2'],
22
- 'search-ghost': [
22
+ icon: ['input', 'input-bordered', 'flex', 'items-center', 'gap-2'],
23
+ 'icon-ghost': [
23
24
  'input',
24
25
  'focus:border-transparent',
25
26
  'focus:outline-transparent',
@@ -37,14 +38,13 @@ const inputComponent = cva(['font-body', 'text-base', 'transition', 'duration-30
37
38
  'round-lg': ['rounded-btn-lg'],
38
39
  },
39
40
  size: {
40
- sm: ['min-h-10', 'h-10'],
41
- md: ['min-h-11', 'h-11'],
42
- lg: ['min-h-12', 'h-12'],
41
+ sm: ['px-2', 'py-1'],
42
+ md: ['px-3', 'py-2'],
43
+ lg: ['px-4', 'py-3'],
43
44
  },
44
- padding: {
45
- sm: ['px-4'],
46
- md: ['px-6'],
47
- lg: ['px-8'],
45
+ iconPosition: {
46
+ left: ['flex-row'],
47
+ right: ['flex-row-reverse'],
48
48
  },
49
49
  },
50
50
  compoundVariants: [],
@@ -52,7 +52,7 @@ const inputComponent = cva(['font-body', 'text-base', 'transition', 'duration-30
52
52
  variant: 'secondary',
53
53
  shape: 'round-sm',
54
54
  size: 'md',
55
- padding: 'md',
55
+ iconPosition: 'left',
56
56
  },
57
57
  });
58
58
  class InputComponent {
@@ -60,14 +60,16 @@ class InputComponent {
60
60
  variant = input('secondary');
61
61
  shape = input('round-sm');
62
62
  size = input('md');
63
- padding = input('md');
64
63
  classes = input('');
65
64
  label = input('');
66
65
  type = input('text');
67
66
  name = input(null);
68
67
  placeholder = input('');
69
68
  icon = input(null);
69
+ iconPosition = input('left');
70
+ iconClasses = input('');
70
71
  readonly = input(false);
72
+ fallbackIcon = matSearchOutline;
71
73
  // Input value model
72
74
  value = model('');
73
75
  // Form control properties
@@ -132,7 +134,7 @@ class InputComponent {
132
134
  variant: this.variant(),
133
135
  shape: this.shape(),
134
136
  size: this.size(),
135
- padding: this.padding(),
137
+ iconPosition: this.iconPosition(),
136
138
  class: this.classes(),
137
139
  }));
138
140
  }
@@ -141,7 +143,7 @@ class InputComponent {
141
143
  variant: 'error',
142
144
  shape: this.shape(),
143
145
  size: this.size(),
144
- padding: this.padding(),
146
+ iconPosition: this.iconPosition(),
145
147
  class: this.classes(),
146
148
  }));
147
149
  }
@@ -150,7 +152,7 @@ class InputComponent {
150
152
  variant: 'success',
151
153
  shape: this.shape(),
152
154
  size: this.size(),
153
- padding: this.padding(),
155
+ iconPosition: this.iconPosition(),
154
156
  class: this.classes(),
155
157
  }));
156
158
  }
@@ -167,14 +169,17 @@ class InputComponent {
167
169
  }
168
170
  return this.componentClass;
169
171
  }
172
+ get iconClass() {
173
+ return cn({ 'text-primary': this.variant() === 'primary' }, { 'text-secondary': this.variant() === 'secondary' }, { 'text-secondary': this.variant() === 'icon' }, { 'text-secondary': this.variant() === 'icon-ghost' }, this.iconClasses());
174
+ }
170
175
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
171
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: InputComponent, isStandalone: true, selector: "st-input", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onEnter: "onEnter", onBlur: "onBlur", onDebounceChange: "onDebounceChange" }, providers: [
176
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: InputComponent, isStandalone: true, selector: "st-input", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, iconClasses: { classPropertyName: "iconClasses", publicName: "iconClasses", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onEnter: "onEnter", onBlur: "onBlur", onDebounceChange: "onDebounceChange" }, providers: [
172
177
  {
173
178
  provide: NG_VALUE_ACCESSOR,
174
179
  useExisting: InputComponent,
175
180
  multi: true,
176
181
  },
177
- ], ngImport: i0, template: "@let variantVar = this.variant();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'search' || variantVar === 'search-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<st-icon iconName=\"search\" color=\"black\" , size=\"md\"></st-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "iconName"] }] });
182
+ ], ngImport: i0, template: "@let variantVar = this.variant();\n@let iconVar = this.icon();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'icon' || variantVar === 'icon-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<st-icon [classes]=\"iconClass\" [icon]=\"iconVar ?? fallbackIcon\" size=\"md\"></st-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }] });
178
183
  }
179
184
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: InputComponent, decorators: [{
180
185
  type: Component,
@@ -184,7 +189,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
184
189
  useExisting: InputComponent,
185
190
  multi: true,
186
191
  },
187
- ], template: "@let variantVar = this.variant();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'search' || variantVar === 'search-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<st-icon iconName=\"search\" color=\"black\" , size=\"md\"></st-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n" }]
192
+ ], template: "@let variantVar = this.variant();\n@let iconVar = this.icon();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'icon' || variantVar === 'icon-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<st-icon [classes]=\"iconClass\" [icon]=\"iconVar ?? fallbackIcon\" size=\"md\"></st-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n" }]
188
193
  }], ctorParameters: () => [] });
189
194
 
190
195
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-input.mjs","sources":["../../../projects/sdk/components/forms/input/src/input.component.ts","../../../projects/sdk/components/forms/input/src/input.component.html","../../../projects/sdk/components/forms/input/sixbell-telco-sdk-components-forms-input.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, effect, input, model, output } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { Subject, debounceTime, distinctUntilChanged, skip, switchMap } from 'rxjs';\n\nconst inputComponent = cva(['font-body', 'text-base', 'transition', 'duration-300', 'ease-ease-out-back', 'w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['input', 'input-primary'],\n\t\t\tsecondary: ['input', 'input-secondary'],\n\t\t\tsuccess: ['input', 'input-success'],\n\t\t\terror: ['input', 'input-error'],\n\t\t\twarning: ['input', 'input-warning'],\n\t\t\tsearch: ['input', 'input-bordered', 'flex', 'items-center', 'gap-2'],\n\t\t\t'search-ghost': [\n\t\t\t\t'input',\n\t\t\t\t'focus:border-transparent',\n\t\t\t\t'focus:outline-transparent',\n\t\t\t\t'focus-within:border-transparent',\n\t\t\t\t'focus-within:outline-transparent',\n\t\t\t\t'flex',\n\t\t\t\t'items-center',\n\t\t\t\t'gap-2',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['min-h-10', 'h-10'],\n\t\t\tmd: ['min-h-11', 'h-11'],\n\t\t\tlg: ['min-h-12', 'h-12'],\n\t\t},\n\t\tpadding: {\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\tsize: 'md',\n\t\tpadding: 'md',\n\t},\n});\n\nexport type InputVariantProps = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'search' | 'search-ghost' | null | undefined;\nexport type InputShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type InputSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\nexport type InputPaddingProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type InputProps = {\n\tvariant?: InputVariantProps;\n\tshape?: InputShapeProps;\n\tsize?: InputSizeProps;\n\tpadding?: InputPaddingProps;\n};\n\ntype HTMLNativeInputType = 'text' | 'email' | 'number' | 'password' | 'file';\n\n@Component({\n\tselector: 'st-input',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective, IconComponent],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: InputComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './input.component.html',\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputComponent implements ControlValueAccessor {\n\t// Base input properties\n\tvariant = input<InputVariantProps>('secondary');\n\tshape = input<InputShapeProps>('round-sm');\n\tsize = input<InputSizeProps>('md');\n\tpadding = input<InputPaddingProps>('md');\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\ttype = input<HTMLNativeInputType>('text');\n\tname = input<string | null>(null);\n\tplaceholder = input<string>('');\n\ticon = input<string | null>(null);\n\treadonly = input<boolean>(false);\n\n\t// Input value model\n\tvalue = model<string>('');\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Change handler\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Enter handler\n\tonEnter = output<string>();\n\thandleEnter() {\n\t\tthis.onEnter.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Blur handler\n\tonBlur = output<string>();\n\thandleBlur() {\n\t\tthis.onBlur.emit(this.value());\n\t\tthis.onControlTouch();\n\t}\n\n\t// Debounce\n\tonDebounceChange = output<string>();\n\tdebounceTime = input(500);\n\tdebounceAction$ = new Subject<number>();\n\n\tdebounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\n\tvalue$ = toObservable(this.value);\n\n\tconstructor() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) =>\n\t\t\t\t\tthis.value$.pipe(\n\t\t\t\t\t\tskip(1), // skip 1 to avoid initial value being automatically emitted\n\t\t\t\t\t\tdebounceTime(time),\n\t\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntilDestroyed(),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.onDebounceChange.emit(`${value}`);\n\t\t\t});\n\t}\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget errorClass() {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget successClass() {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget validationClass() {\n\t\tif (!this.formField) return this.componentClass;\n\n\t\tif (this.formField.dirty || this.formField.touched) {\n\t\t\tif (this.formField.invalid) {\n\t\t\t\treturn this.errorClass;\n\t\t\t} else if (this.formField.valid) {\n\t\t\t\treturn this.successClass;\n\t\t\t}\n\t\t}\n\n\t\treturn this.componentClass;\n\t}\n}\n","@let variantVar = this.variant();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'search' || variantVar === 'search-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<st-icon iconName=\"search\" color=\"black\" , size=\"md\"></st-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AAUA,MAAM,cAAc,GAAG,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,oBAAoB,EAAE,QAAQ,CAAC,EAAE;AACpH,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,CAAC,OAAO,EAAE,eAAe,CAAC;AACnC,YAAA,SAAS,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC;AACvC,YAAA,OAAO,EAAE,CAAC,OAAO,EAAE,eAAe,CAAC;AACnC,YAAA,KAAK,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC;AAC/B,YAAA,OAAO,EAAE,CAAC,OAAO,EAAE,eAAe,CAAC;YACnC,MAAM,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC;AACpE,YAAA,cAAc,EAAE;gBACf,OAAO;gBACP,0BAA0B;gBAC1B,2BAA2B;gBAC3B,iCAAiC;gBACjC,kCAAkC;gBAClC,MAAM;gBACN,cAAc;gBACd,OAAO;AACP,aAAA;AACD,SAAA;AACD,QAAA,KAAK,EAAE;YACN,YAAY,EAAE,CAAC,cAAc,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;AAC9B,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,EAAE,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;AACxB,YAAA,EAAE,EAAE,CAAC,UAAU,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AC3B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,upDAAA,EAAA,CAAA;;;AEhFF;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-input.mjs","sources":["../../../projects/sdk/components/forms/input/src/input.component.ts","../../../projects/sdk/components/forms/input/src/input.component.html","../../../projects/sdk/components/forms/input/sixbell-telco-sdk-components-forms-input.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, effect, input, model, output } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matSearchOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { Subject, debounceTime, distinctUntilChanged, skip, switchMap } from 'rxjs';\n\nconst inputComponent = cva(['min-h-[auto]', 'h-auto', 'font-body', 'text-base', 'transition', 'duration-300', 'ease-ease-out-back', 'w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['input', 'input-primary'],\n\t\t\tsecondary: ['input', 'input-secondary'],\n\t\t\tsuccess: ['input', 'input-success'],\n\t\t\terror: ['input', 'input-error'],\n\t\t\twarning: ['input', 'input-warning'],\n\t\t\ticon: ['input', 'input-bordered', 'flex', 'items-center', 'gap-2'],\n\t\t\t'icon-ghost': [\n\t\t\t\t'input',\n\t\t\t\t'focus:border-transparent',\n\t\t\t\t'focus:outline-transparent',\n\t\t\t\t'focus-within:border-transparent',\n\t\t\t\t'focus-within:outline-transparent',\n\t\t\t\t'flex',\n\t\t\t\t'items-center',\n\t\t\t\t'gap-2',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['px-2', 'py-1'],\n\t\t\tmd: ['px-3', 'py-2'],\n\t\t\tlg: ['px-4', 'py-3'],\n\t\t},\n\t\ticonPosition: {\n\t\t\tleft: ['flex-row'],\n\t\t\tright: ['flex-row-reverse'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\tsize: 'md',\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type InputVariantProps = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'icon' | 'icon-ghost' | null | undefined;\nexport type InputShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type InputSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\nexport type InputIconPositionProps = 'left' | 'right' | null | undefined;\n\nexport type InputProps = {\n\tvariant?: InputVariantProps;\n\tshape?: InputShapeProps;\n\tsize?: InputSizeProps;\n\ticonPosition?: InputIconPositionProps;\n};\n\ntype HTMLNativeInputType = 'text' | 'email' | 'number' | 'password' | 'file';\n\n@Component({\n\tselector: 'st-input',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective, IconComponent],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: InputComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './input.component.html',\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputComponent implements ControlValueAccessor {\n\t// Base input properties\n\tvariant = input<InputVariantProps>('secondary');\n\tshape = input<InputShapeProps>('round-sm');\n\tsize = input<InputSizeProps>('md');\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\ttype = input<HTMLNativeInputType>('text');\n\tname = input<string | null>(null);\n\tplaceholder = input<string>('');\n\ticon = input<string | null>(null);\n\ticonPosition = input<InputIconPositionProps>('left');\n\ticonClasses = input<string>('');\n\treadonly = input<boolean>(false);\n\tfallbackIcon = matSearchOutline;\n\t// Input value model\n\tvalue = model<string>('');\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Change handler\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Enter handler\n\tonEnter = output<string>();\n\thandleEnter() {\n\t\tthis.onEnter.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Blur handler\n\tonBlur = output<string>();\n\thandleBlur() {\n\t\tthis.onBlur.emit(this.value());\n\t\tthis.onControlTouch();\n\t}\n\n\t// Debounce\n\tonDebounceChange = output<string>();\n\tdebounceTime = input(500);\n\tdebounceAction$ = new Subject<number>();\n\n\tdebounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\n\tvalue$ = toObservable(this.value);\n\n\tconstructor() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) =>\n\t\t\t\t\tthis.value$.pipe(\n\t\t\t\t\t\tskip(1), // skip 1 to avoid initial value being automatically emitted\n\t\t\t\t\t\tdebounceTime(time),\n\t\t\t\t\t\tdistinctUntilChanged(),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntilDestroyed(),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.onDebounceChange.emit(`${value}`);\n\t\t\t});\n\t}\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget errorClass() {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget successClass() {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget validationClass() {\n\t\tif (!this.formField) return this.componentClass;\n\n\t\tif (this.formField.dirty || this.formField.touched) {\n\t\t\tif (this.formField.invalid) {\n\t\t\t\treturn this.errorClass;\n\t\t\t} else if (this.formField.valid) {\n\t\t\t\treturn this.successClass;\n\t\t\t}\n\t\t}\n\n\t\treturn this.componentClass;\n\t}\n\n\tget iconClass() {\n\t\treturn cn(\n\t\t\t{ 'text-primary': this.variant() === 'primary' },\n\t\t\t{ 'text-secondary': this.variant() === 'secondary' },\n\t\t\t{ 'text-secondary': this.variant() === 'icon' },\n\t\t\t{ 'text-secondary': this.variant() === 'icon-ghost' },\n\t\t\tthis.iconClasses(),\n\t\t);\n\t}\n}\n","@let variantVar = this.variant();\n@let iconVar = this.icon();\n\n@if (variantVar === 'primary' || variantVar === 'secondary' || variantVar === 'success' || variantVar === 'error' || variantVar === 'warning') {\n\t<div class=\"flex flex-col gap-1\">\n\t\t@if (label()) {\n\t\t\t<label [for]=\"this.name()\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t</label>\n\t\t}\n\n\t\t<input\n\t\t\t[class]=\"validationClass\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\n\t\t<ng-content></ng-content>\n\t</div>\n} @else if (variantVar === 'icon' || variantVar === 'icon-ghost') {\n\t<label [class]=\"componentClass\">\n\t\t<st-icon [classes]=\"iconClass\" [icon]=\"iconVar ?? fallbackIcon\" size=\"md\"></st-icon>\n\t\t<input\n\t\t\tclass=\"grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t/>\n\t</label>\n} @else {\n\t<input\n\t\t[class]=\"componentClass\"\n\t\t[type]=\"type()\"\n\t\t[attr.name]=\"name()\"\n\t\t[attr.placeholder]=\"placeholder()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleChange()\"\n\t\t(keyup.enter)=\"handleEnter()\"\n\t\t(blur)=\"handleBlur()\"\n\t/>\n}\n","/**\n * Gener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EAAA,WAAA,EAAA,IAAA,EAAA,mBAAmB,8IAAE,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAW7C,cAAc,EAAA,UAAA,EAAA,CAAA;kBAd1B,SAAS;+BACC,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,CAAC,WAAW,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAC/C,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAgB,cAAA;AAC3B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,qsDAAA,EAAA,CAAA;;;AEhFF;;AAEG;;;;"}
@@ -7,7 +7,7 @@ import { cn } from '@sixbell-telco/sdk/utils/cn';
7
7
  import { cva } from 'class-variance-authority';
8
8
 
9
9
  /* eslint-disable @typescript-eslint/no-explicit-any */
10
- const selectComponent = cva(['w-full', 'font-body'], {
10
+ const selectComponent = cva(['w-full', 'font-body', 'min-h-[auto]', 'h-auto'], {
11
11
  variants: {
12
12
  variant: {
13
13
  primary: ['select', 'select-bordered', 'select-primary'],
@@ -22,25 +22,24 @@ const selectComponent = cva(['w-full', 'font-body'], {
22
22
  'round-md': ['rounded-btn-md'],
23
23
  'round-lg': ['rounded-btn-lg'],
24
24
  },
25
- height: {
26
- fit: ['h-fit', 'min-h-fit'],
27
- sm: ['h-[1.875rem]', 'min-h-[1.875rem]'],
28
- md: ['h-11', 'min-h-10'],
29
- lg: ['h-12', 'min-h-10'],
25
+ size: {
26
+ sm: ['pl-2 pr-[50]', 'py-1'],
27
+ md: ['pl-3 pr-[50]', 'py-2'],
28
+ lg: ['pl-4 pr-[50]', 'py-3'],
30
29
  },
31
30
  },
32
31
  compoundVariants: [],
33
32
  defaultVariants: {
34
33
  variant: 'secondary',
35
34
  shape: 'round-sm',
36
- height: 'md',
35
+ size: 'md',
37
36
  },
38
37
  });
39
38
  class SelectComponent {
40
39
  // Base input properties
41
40
  variant = input('secondary');
42
41
  shape = input('round-sm');
43
- height = input('md');
42
+ size = input('md');
44
43
  classes = input('');
45
44
  label = input('');
46
45
  name = input(null);
@@ -95,7 +94,7 @@ class SelectComponent {
95
94
  return cn(selectComponent({
96
95
  variant: this.variant(),
97
96
  shape: this.shape(),
98
- height: this.height(),
97
+ size: this.size(),
99
98
  class: this.classes(),
100
99
  }));
101
100
  }
@@ -103,7 +102,7 @@ class SelectComponent {
103
102
  return cn(selectComponent({
104
103
  variant: 'error',
105
104
  shape: this.shape(),
106
- height: this.height(),
105
+ size: this.size(),
107
106
  class: this.classes(),
108
107
  }));
109
108
  }
@@ -111,7 +110,7 @@ class SelectComponent {
111
110
  return cn(selectComponent({
112
111
  variant: 'success',
113
112
  shape: this.shape(),
114
- height: this.height(),
113
+ size: this.size(),
115
114
  class: this.classes(),
116
115
  }));
117
116
  }
@@ -129,7 +128,7 @@ class SelectComponent {
129
128
  return this.componentClass;
130
129
  }
131
130
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
132
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: SelectComponent, isStandalone: true, selector: "st-select", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, emptyOptionText: { classPropertyName: "emptyOptionText", publicName: "emptyOptionText", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onChange: "onChange" }, providers: [
131
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: SelectComponent, isStandalone: true, selector: "st-select", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, emptyOptionText: { classPropertyName: "emptyOptionText", publicName: "emptyOptionText", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", onChange: "onChange" }, providers: [
133
132
  {
134
133
  provide: NG_VALUE_ACCESSOR,
135
134
  useExisting: SelectComponent,
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-select.mjs","sources":["../../../projects/sdk/components/forms/select/src/select.component.ts","../../../projects/sdk/components/forms/select/src/select.component.html","../../../projects/sdk/components/forms/select/sixbell-telco-sdk-components-forms-select.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, effect, input, model, output } from '@angular/core';\nimport { FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst selectComponent = cva(['w-full', 'font-body'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['select', 'select-bordered', 'select-primary'],\n\t\t\tsecondary: ['select', 'select-bordered', 'select-secondary'],\n\t\t\tsuccess: ['select', 'select-bordered', 'select-success'],\n\t\t\terror: ['select', 'select-bordered', 'select-error'],\n\t\t\twarning: ['select', 'select-bordered', 'select-warning'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-fit'],\n\t\t\tsm: ['h-[1.875rem]', 'min-h-[1.875rem]'],\n\t\t\tmd: ['h-11', 'min-h-10'],\n\t\t\tlg: ['h-12', 'min-h-10'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\theight: 'md',\n\t},\n});\n\nexport type SelectVariantProps = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | null | undefined;\nexport type SelectShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type SelectHeightProps = 'fit' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type SelectProps = {\n\tvariant?: SelectVariantProps;\n\tshape?: SelectShapeProps;\n\theight?: SelectHeightProps;\n};\n\n@Component({\n\tselector: 'st-select',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: SelectComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './select.component.html',\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SelectComponent {\n\t// Base input properties\n\tvariant = input<SelectVariantProps>('secondary');\n\tshape = input<SelectShapeProps>('round-sm');\n\theight = input<SelectHeightProps>('md');\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\tplaceholder = input<string>('');\n\tvalue = model();\n\toptions = input<any[]>([]);\n\temptyOptionText = input<string>('');\n\n\t// Options properties\n\ttrackBy = input<string>('id');\n\tkey = input<string>('name');\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState?(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Select handler\n\tonChange = output<any>();\n\thandleSelect() {\n\t\tthis.onChange.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// Checks if options are primitives or not\n\tsimpleOption = false;\n\toptionsEffect = effect(() => {\n\t\tthis.simpleOption = this.options().every((option) => typeof option !== 'object');\n\t});\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\theight: this.height(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget errorClass() {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.shape(),\n\t\t\t\theight: this.height(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget successClass() {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.shape(),\n\t\t\t\theight: this.height(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget validationClass() {\n\t\tif (!this.formField) return this.componentClass;\n\n\t\tif (this.formField.dirty || this.formField.touched) {\n\t\t\tif (this.formField.invalid) {\n\t\t\t\treturn this.errorClass;\n\t\t\t} else if (this.formField.valid) {\n\t\t\t\treturn this.successClass;\n\t\t\t}\n\t\t}\n\n\t\treturn this.componentClass;\n\t}\n}\n","<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\n\t<select\n\t\t[class]=\"validationClass\"\n\t\t[attr.name]=\"name()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t>\n\t\t@if (emptyOptionText()) {\n\t\t\t<option value=\"\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ emptyOptionText() }}</span>\n\t\t\t</option>\n\t\t}\n\n\t\t@if (simpleOption) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<option [ngValue]=\"option\">\n\t\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t<option [ngValue]=\"option\">\n\t\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t</option>\n\t\t\t}\n\t\t}\n\t</select>\n\n\t<ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;AAOA,MAAM,eAAe,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE;AACpD,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;AACxD,YAAA,SAAS,EAAE,CAAC,QAAQ,EAAE,iB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AA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,QAAA,EAAA,6GAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAW9B,eAAe,EAAA,UAAA,EAAA,CAAA;kBAd3B,SAAS;+BACC,WAAW,EAAA,UAAA,EACT,IAAI,EACP,OAAA,EAAA,CAAC,WAAW,EAAE,mBAAmB,CAAC,EAChC,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAiB,eAAA;AAC5B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,40CAAA,EAAA,CAAA;;;AEzDF;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-select.mjs","sources":["../../../projects/sdk/components/forms/select/src/select.component.ts","../../../projects/sdk/components/forms/select/src/select.component.html","../../../projects/sdk/components/forms/select/sixbell-telco-sdk-components-forms-select.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, effect, input, model, output } from '@angular/core';\nimport { FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst selectComponent = cva(['w-full', 'font-body', 'min-h-[auto]', 'h-auto'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['select', 'select-bordered', 'select-primary'],\n\t\t\tsecondary: ['select', 'select-bordered', 'select-secondary'],\n\t\t\tsuccess: ['select', 'select-bordered', 'select-success'],\n\t\t\terror: ['select', 'select-bordered', 'select-error'],\n\t\t\twarning: ['select', 'select-bordered', 'select-warning'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['pl-2 pr-[50]', 'py-1'],\n\t\t\tmd: ['pl-3 pr-[50]', 'py-2'],\n\t\t\tlg: ['pl-4 pr-[50]', 'py-3'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tshape: 'round-sm',\n\t\tsize: 'md',\n\t},\n});\n\nexport type SelectVariantProps = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | null | undefined;\nexport type SelectShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type SelectSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type SelectProps = {\n\tvariant?: SelectVariantProps;\n\tshape?: SelectShapeProps;\n\tsize?: SelectSizeProps;\n};\n\n@Component({\n\tselector: 'st-select',\n\tstandalone: true,\n\timports: [FormsModule, TypographyDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: SelectComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './select.component.html',\n\t// changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SelectComponent {\n\t// Base input properties\n\tvariant = input<SelectVariantProps>('secondary');\n\tshape = input<SelectShapeProps>('round-sm');\n\tsize = input<SelectSizeProps>('md');\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tname = input<string | null>(null);\n\tplaceholder = input<string>('');\n\tvalue = model();\n\toptions = input<any[]>([]);\n\temptyOptionText = input<string>('');\n\n\t// Options properties\n\ttrackBy = input<string>('id');\n\tkey = input<string>('name');\n\n\t// Form control properties\n\tparentForm = input<FormGroup | null>(null);\n\tformControlName = input<string>('');\n\n\tget formField(): FormControl | null {\n\t\tif (!this.parentForm()) return null;\n\t\treturn this.parentForm()?.get(this.formControlName()) as FormControl;\n\t}\n\n\t// ControlValueAccessor attributes\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\tdisabled = model<boolean>(false);\n\n\t// ControlValueAccessor methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState?(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t// Select handler\n\tonChange = output<any>();\n\thandleSelect() {\n\t\tthis.onChange.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t// Blur handler\n\thandleBlur() {\n\t\tthis.onControlTouch();\n\t}\n\n\t// Checks if options are primitives or not\n\tsimpleOption = false;\n\toptionsEffect = effect(() => {\n\t\tthis.simpleOption = this.options().every((option) => typeof option !== 'object');\n\t});\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget errorClass() {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget successClass() {\n\t\treturn cn(\n\t\t\tselectComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget validationClass() {\n\t\tif (!this.formField) return this.componentClass;\n\n\t\tif (this.formField.dirty || this.formField.touched) {\n\t\t\tif (this.formField.invalid) {\n\t\t\t\treturn this.errorClass;\n\t\t\t} else if (this.formField.valid) {\n\t\t\t\treturn this.successClass;\n\t\t\t}\n\t\t}\n\n\t\treturn this.componentClass;\n\t}\n}\n","<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\n\t<select\n\t\t[class]=\"validationClass\"\n\t\t[attr.name]=\"name()\"\n\t\t[(ngModel)]=\"value\"\n\t\t[disabled]=\"disabled()\"\n\t\t(ngModelChange)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t>\n\t\t@if (emptyOptionText()) {\n\t\t\t<option value=\"\">\n\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ emptyOptionText() }}</span>\n\t\t\t</option>\n\t\t}\n\n\t\t@if (simpleOption) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<option [ngValue]=\"option\">\n\t\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t<option [ngValue]=\"option\">\n\t\t\t\t\t<span typography [typographyVariant]=\"'body'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t</option>\n\t\t\t}\n\t\t}\n\t</select>\n\n\t<ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;AAOA,MAAM,eAAe,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE;AAC9E,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;AACxD,YAAA,SAAS,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,kBAAkB,CAAC;AAC5D,YAAA,OAAO,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;AACxD,YAAA,KAAK,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,cAAc,CAAC;AACpD,YAAA,OAAO,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;AACxD,SAAA;AACD,QAAA,KAAK,EAAE;YACN,YAAY,EAAE,CAAC,cAAc,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;AAC9B,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,EAAE,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC;AAC5B,YAAA,EAAE,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC;AAC5B,YAAA,EAAE,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC;AAC5B,SAAA;AACD,KA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,EAAA,UAAA,EACT,IAAI,EACP,OAAA,EAAA,CAAC,WAAW,EAAE,mBAAmB,CAAC,EAChC,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAiB,eAAA;AAC5B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,40CAAA,EAAA,CAAA;;;AExDF;;AAEG;;;;"}
@@ -0,0 +1,6 @@
1
+ export * from '@ng-icons/material-icons/baseline';
2
+
3
+ /**
4
+ * Generated bundle index. Do not edit.
5
+ */
6
+ //# sourceMappingURL=sixbell-telco-sdk-components-icon-material-baseline.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-components-icon-material-baseline.mjs","sources":["../../../projects/sdk/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG"}
@@ -0,0 +1,6 @@
1
+ export * from '@ng-icons/material-icons/outline';
2
+
3
+ /**
4
+ * Generated bundle index. Do not edit.
5
+ */
6
+ //# sourceMappingURL=sixbell-telco-sdk-components-icon-material-outline.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-components-icon-material-outline.mjs","sources":["../../../projects/sdk/components/icon/material/outline/sixbell-telco-sdk-components-icon-material-outline.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG"}
@@ -0,0 +1,6 @@
1
+ export * from '@ng-icons/material-icons/round';
2
+
3
+ /**
4
+ * Generated bundle index. Do not edit.
5
+ */
6
+ //# sourceMappingURL=sixbell-telco-sdk-components-icon-material-round.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-components-icon-material-round.mjs","sources":["../../../projects/sdk/components/icon/material/round/sixbell-telco-sdk-components-icon-material-round.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG"}
@@ -0,0 +1,6 @@
1
+ export * from '@ng-icons/material-icons/sharp';
2
+
3
+ /**
4
+ * Generated bundle index. Do not edit.
5
+ */
6
+ //# sourceMappingURL=sixbell-telco-sdk-components-icon-material-sharp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sixbell-telco-sdk-components-icon-material-sharp.mjs","sources":["../../../projects/sdk/components/icon/material/sharp/sixbell-telco-sdk-components-icon-material-sharp.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG"}
@@ -1,9 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, Component } from '@angular/core';
3
+ import { NgIconComponent } from '@ng-icons/core';
3
4
  import { cn } from '@sixbell-telco/sdk/utils/cn';
4
5
  import { cva } from 'class-variance-authority';
5
6
 
6
- const iconComponent = cva([], {
7
+ const iconComponent = cva(['!block'], {
7
8
  variants: {
8
9
  color: {
9
10
  white: 'text-neutral-content',
@@ -12,9 +13,9 @@ const iconComponent = cva([], {
12
13
  inherit: 'text-inherit',
13
14
  },
14
15
  size: {
15
- sm: ['w-5 h-5'],
16
- md: ['w-6 h-6'],
17
- lg: ['w-9 h-9'],
16
+ sm: ['text-xl'],
17
+ md: ['text-2xl'],
18
+ lg: ['text-4xl'],
18
19
  },
19
20
  },
20
21
  compoundVariants: [],
@@ -27,19 +28,16 @@ class IconComponent {
27
28
  color = input();
28
29
  size = input();
29
30
  classes = input('');
30
- iconName = input.required();
31
+ icon = input.required();
31
32
  get componentClass() {
32
33
  return cn(iconComponent({ color: this.color(), size: this.size(), class: this.classes() }));
33
34
  }
34
- get iconPath() {
35
- return `assets/icons/icons.svg#${this.iconName()}`;
36
- }
37
35
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
38
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: IconComponent, isStandalone: true, selector: "st-icon", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<svg [class]=\"componentClass\">\n\t<use attr.href=\"{{ iconPath }}\"></use>\n</svg>\n", styles: [""] });
36
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: IconComponent, isStandalone: true, selector: "st-icon", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<ng-icon [svg]=\"icon()\" [class]=\"componentClass\" />\n", styles: [""], dependencies: [{ kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }] });
39
37
  }
40
38
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: IconComponent, decorators: [{
41
39
  type: Component,
42
- args: [{ selector: 'st-icon', standalone: true, imports: [], template: "<svg [class]=\"componentClass\">\n\t<use attr.href=\"{{ iconPath }}\"></use>\n</svg>\n" }]
40
+ args: [{ selector: 'st-icon', standalone: true, imports: [NgIconComponent], template: "<ng-icon [svg]=\"icon()\" [class]=\"componentClass\" />\n" }]
43
41
  }] });
44
42
 
45
43
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-icon.mjs","sources":["../../../projects/sdk/components/icon/src/icon.component.ts","../../../projects/sdk/components/icon/src/icon.component.html","../../../projects/sdk/components/icon/sixbell-telco-sdk-components-icon.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { IconName } from './icon';\n\nexport const iconComponent = cva([], {\n\tvariants: {\n\t\tcolor: {\n\t\t\twhite: 'text-neutral-content',\n\t\t\tblack: 'text-neutral',\n\t\t\tprimary: 'text-primary',\n\t\t\tinherit: 'text-inherit',\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['w-5 h-5'],\n\t\t\tmd: ['w-6 h-6'],\n\t\t\tlg: ['w-9 h-9'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcolor: 'inherit',\n\t\tsize: 'md',\n\t},\n});\n\nexport type IconColorProps = 'white' | 'black' | 'primary' | 'inherit' | null | undefined;\nexport type IconSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type IconProps = {\n\tcolor?: IconColorProps;\n\tsize?: IconSizeProps;\n};\n\n@Component({\n\tselector: 'st-icon',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './icon.component.html',\n\tstyles: '',\n})\nexport class IconComponent {\n\tcolor = input<IconColorProps>();\n\tsize = input<IconSizeProps>();\n\tclasses = input<string>('');\n\ticonName = input.required<IconName>();\n\n\tget componentClass() {\n\t\treturn cn(iconComponent({ color: this.color(), size: this.size(), class: this.classes() }));\n\t}\n\n\tget iconPath() {\n\t\treturn `assets/icons/icons.svg#${this.iconName()}`;\n\t}\n}\n","<svg [class]=\"componentClass\">\n\t<use attr.href=\"{{ iconPath }}\"></use>\n</svg>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;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EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,0jBCzC1B,wFAGA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FDsCa,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;+BACC,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,wFAAA,EAAA,CAAA;;;AErCZ;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-icon.mjs","sources":["../../../projects/sdk/components/icon/src/icon.component.ts","../../../projects/sdk/components/icon/src/icon.component.html","../../../projects/sdk/components/icon/sixbell-telco-sdk-components-icon.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { NgIconComponent } from '@ng-icons/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const iconComponent = cva(['!block'], {\n\tvariants: {\n\t\tcolor: {\n\t\t\twhite: 'text-neutral-content',\n\t\t\tblack: 'text-neutral',\n\t\t\tprimary: 'text-primary',\n\t\t\tinherit: 'text-inherit',\n\t\t},\n\t\tsize: {\n\t\t\tsm: ['text-xl'],\n\t\t\tmd: ['text-2xl'],\n\t\t\tlg: ['text-4xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcolor: 'inherit',\n\t\tsize: 'md',\n\t},\n});\n\nexport type IconColorProps = 'white' | 'black' | 'primary' | 'inherit' | null | undefined;\nexport type IconSizeProps = 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type IconProps = {\n\tcolor?: IconColorProps;\n\tsize?: IconSizeProps;\n};\n\n@Component({\n\tselector: 'st-icon',\n\tstandalone: true,\n\timports: [NgIconComponent],\n\ttemplateUrl: './icon.component.html',\n\tstyles: '',\n})\nexport class IconComponent {\n\tcolor = input<IconColorProps>();\n\tsize = input<IconSizeProps>();\n\tclasses = input<string>('');\n\ticon = input.required<string>();\n\n\tget componentClass() {\n\t\treturn cn(iconComponent({ color: this.color(), size: this.size(), class: this.classes() }));\n\t}\n}\n","<ng-icon [svg]=\"icon()\" [class]=\"componentClass\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAKa,aAAa,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE;AAC5C,IAAA,QAAQ,EAAE;AACT,QAAA,KAAK,EAAE;AACN,YAAA,KAAK,EAAE,sBAAsB;AAC7B,YAAA,KAAK,EAAE,cAAc;AACrB,YAAA,OAAO,EAAE,cAAc;AACvB,YAAA,OAAO,EAAE,cAAc;AACvB,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,UAAU,CAAC;YAChB,EAAE,EAAE,CAAC,UAAU,CAAC;AAChB,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,IAAI,EAAE,IAAI;AACV,KAAA;AACD,CAAA,EAAE;MAiBU,aAAa,CAAA;IACzB,KAAK,GAAG,KAAK,EAAkB,CAAC;IAChC,IAAI,GAAG,KAAK,EAAiB,CAAC;AAC9B,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC5B,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;AAEhC,IAAA,IAAI,cAAc,GAAA;AACjB,QAAA,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;KAC5F;wGARW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eA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