@tekus/design-system 4.0.3 → 5.0.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 (240) hide show
  1. package/assets/img/avatar.png +0 -0
  2. package/assets/img/pexels-jodaarba-4250980.jpg +0 -0
  3. package/assets/img/shadown.png +0 -0
  4. package/assets/img/tk-logo-compound-dark.svg +9 -0
  5. package/assets/img/tk-logo-minimal-dark.svg +16 -0
  6. package/assets/img/tk-logo-minimal-light.svg +16 -0
  7. package/assets/img/tk-logo-normal-dark.svg +12 -0
  8. package/assets/img/tk-logo-normal-light.svg +12 -0
  9. package/assets/styles/_index.scss +10 -0
  10. package/assets/styles/docs/_branding.doc.scss +69 -0
  11. package/assets/styles/docs/_grids.doc.scss +13 -0
  12. package/assets/styles/docs/_icons.doc.scss +102 -0
  13. package/assets/styles/docs/_illustrations.doc.scss +86 -0
  14. package/assets/styles/docs/_paginador.doc.scss +16 -0
  15. package/assets/styles/docs/_table-of-content.scss +22 -0
  16. package/{services/typography → components/branding}/index.d.ts +1 -1
  17. package/components/branding/public-api.d.ts +1 -0
  18. package/components/branding/src/branding-register-logo.d.ts +22 -0
  19. package/components/branding/src/branding.component.d.ts +54 -0
  20. package/components/{tk-search-bar → button}/index.d.ts +1 -1
  21. package/components/button/public-api.d.ts +1 -0
  22. package/components/button/src/button.component.d.ts +99 -0
  23. package/components/{tk-typography → fallback-view}/index.d.ts +1 -1
  24. package/components/fallback-view/public-api.d.ts +1 -0
  25. package/components/fallback-view/src/fallback-view.component.d.ts +149 -0
  26. package/components/grid-container/index.d.ts +5 -0
  27. package/components/grid-container/public-api.d.ts +1 -0
  28. package/components/grid-container/src/grid-container.component.d.ts +121 -0
  29. package/components/icon/core/icon-catalog.d.ts +76 -0
  30. package/components/icon/core/icons/ads.icons.d.ts +2 -0
  31. package/components/icon/core/icons/angle.icons.d.ts +2 -0
  32. package/components/icon/core/icons/arrow.icons.d.ts +2 -0
  33. package/components/icon/core/icons/bars.icons.d.ts +2 -0
  34. package/components/icon/core/icons/bolt.icons.d.ts +2 -0
  35. package/components/icon/core/icons/book.icons.d.ts +2 -0
  36. package/components/icon/core/icons/calendar.icons.d.ts +2 -0
  37. package/components/icon/core/icons/camera.icons.d.ts +2 -0
  38. package/components/icon/core/icons/chart.icons.d.ts +2 -0
  39. package/components/icon/core/icons/check.icons.d.ts +2 -0
  40. package/components/icon/core/icons/chevron.icons.d.ts +2 -0
  41. package/components/icon/core/icons/circle.icons.d.ts +2 -0
  42. package/components/icon/core/icons/clock.icons.d.ts +2 -0
  43. package/components/icon/core/icons/clone.icons.d.ts +2 -0
  44. package/components/icon/core/icons/download.icons.d.ts +2 -0
  45. package/components/icon/core/icons/ellipsis.icons.d.ts +2 -0
  46. package/components/icon/core/icons/eye.icons.d.ts +2 -0
  47. package/components/icon/core/icons/filter.icons.d.ts +2 -0
  48. package/components/icon/core/icons/folders.icons.d.ts +2 -0
  49. package/components/icon/core/icons/gears.icons.d.ts +2 -0
  50. package/components/icon/core/icons/hand.icons.d.ts +2 -0
  51. package/components/icon/core/icons/language.icons.d.ts +2 -0
  52. package/components/icon/core/icons/layer.icons.d.ts +2 -0
  53. package/components/icon/core/icons/link.icons.d.ts +2 -0
  54. package/components/icon/core/icons/list.icons.d.ts +2 -0
  55. package/components/icon/core/icons/location.icons.d.ts +2 -0
  56. package/components/icon/core/icons/lock.icons.d.ts +2 -0
  57. package/components/icon/core/icons/magnifying-glass.icons.d.ts +2 -0
  58. package/components/icon/core/icons/media.icons.d.ts +2 -0
  59. package/components/icon/core/icons/megaphone.icons.d.ts +2 -0
  60. package/components/icon/core/icons/money.icons.d.ts +2 -0
  61. package/components/icon/core/icons/pen.icons.d.ts +2 -0
  62. package/components/icon/core/icons/pencil.icons.d.ts +2 -0
  63. package/components/icon/core/icons/plug.icons.d.ts +2 -0
  64. package/components/icon/core/icons/plus.icons.d.ts +2 -0
  65. package/components/icon/core/icons/qr-code.icons.d.ts +2 -0
  66. package/components/icon/core/icons/screwdriver-wrench.icons.d.ts +2 -0
  67. package/components/icon/core/icons/shuffle.icons.d.ts +2 -0
  68. package/components/icon/core/icons/square.icons.d.ts +2 -0
  69. package/components/icon/core/icons/tag.icons.d.ts +2 -0
  70. package/components/icon/core/icons/thumbs.icons.d.ts +2 -0
  71. package/components/icon/core/icons/trash.icons.d.ts +2 -0
  72. package/components/icon/core/icons/triangle.icons.d.ts +2 -0
  73. package/components/icon/core/icons/user.icons.d.ts +2 -0
  74. package/components/icon/core/icons/xmark.icons.d.ts +2 -0
  75. package/components/icon/core/svg-icons/ads-icon.svg.d.ts +2 -0
  76. package/components/icon/core/svg-icons/index.d.ts +1 -0
  77. package/components/{forms → icon}/index.d.ts +1 -1
  78. package/components/icon/public-api.d.ts +2 -0
  79. package/components/icon/src/icon.component.d.ts +79 -0
  80. package/components/illustration/assets/illustrations/tk-catalogs.svg.d.ts +2 -0
  81. package/components/illustration/assets/illustrations/tk-categories.svg.d.ts +2 -0
  82. package/components/illustration/assets/illustrations/tk-confirmation-action.svg.d.ts +2 -0
  83. package/components/illustration/assets/illustrations/tk-create-an-account.svg.d.ts +2 -0
  84. package/components/illustration/assets/illustrations/tk-custom-design.svg.d.ts +2 -0
  85. package/components/illustration/assets/illustrations/tk-delete.svg.d.ts +2 -0
  86. package/components/illustration/assets/illustrations/tk-download-AKF.svg.d.ts +2 -0
  87. package/components/illustration/assets/illustrations/tk-error.svg.d.ts +2 -0
  88. package/components/illustration/assets/illustrations/tk-graphics.svg.d.ts +2 -0
  89. package/components/illustration/assets/illustrations/tk-items.svg.d.ts +2 -0
  90. package/components/illustration/assets/illustrations/tk-kiosk.svg.d.ts +2 -0
  91. package/components/illustration/assets/illustrations/tk-list.svg.d.ts +2 -0
  92. package/components/illustration/assets/illustrations/tk-locations.svg.d.ts +2 -0
  93. package/components/illustration/assets/illustrations/tk-login.svg.d.ts +2 -0
  94. package/components/illustration/assets/illustrations/tk-multimedia.svg.d.ts +2 -0
  95. package/components/illustration/assets/illustrations/tk-no-connection.svg.d.ts +2 -0
  96. package/components/illustration/assets/illustrations/tk-no-found.svg.d.ts +2 -0
  97. package/components/illustration/assets/illustrations/tk-order.svg.d.ts +2 -0
  98. package/components/illustration/assets/illustrations/tk-playlist.svg.d.ts +2 -0
  99. package/components/illustration/assets/illustrations/tk-screens.svg.d.ts +2 -0
  100. package/components/illustration/assets/illustrations/tk-success.svg.d.ts +2 -0
  101. package/components/illustration/assets/illustrations/tk-support.svg.d.ts +2 -0
  102. package/components/illustration/assets/illustrations/tk-technical-failure.svg.d.ts +2 -0
  103. package/components/illustration/assets/illustrations/tk-tip.svg.d.ts +2 -0
  104. package/components/illustration/assets/illustrations/tk-upload.svg.d.ts +2 -0
  105. package/components/illustration/assets/illustrations/tk-void.svg.d.ts +2 -0
  106. package/components/illustration/assets/illustrations/tk-warning.svg.d.ts +2 -0
  107. package/components/illustration/assets/illustrations/tk-welcome.svg.d.ts +2 -0
  108. package/components/illustration/assets/illustrations/tk-without-catalogs.svg.d.ts +2 -0
  109. package/components/illustration/illustrations.registry.d.ts +5 -0
  110. package/components/illustration/index.d.ts +5 -0
  111. package/components/illustration/public-api.d.ts +1 -0
  112. package/components/illustration/src/illustration.component.d.ts +117 -0
  113. package/components/typography/index.d.ts +5 -0
  114. package/components/typography/public-api.d.ts +1 -0
  115. package/components/typography/src/typography.component.d.ts +10 -0
  116. package/core/index.d.ts +5 -0
  117. package/core/public-api.d.ts +1 -0
  118. package/core/types/index.d.ts +5 -0
  119. package/core/types/public-api.d.ts +9 -0
  120. package/core/types/src/branding/branding.types.d.ts +15 -0
  121. package/core/types/src/branding/index.d.ts +1 -0
  122. package/core/types/src/breakpoints/breakpoints.d.ts +10 -0
  123. package/core/types/src/breakpoints/index.d.ts +1 -0
  124. package/core/types/src/grids/grid.enum.d.ts +18 -0
  125. package/core/types/src/grids/grid.model.d.ts +10 -0
  126. package/core/types/src/grids/grid.type.d.ts +40 -0
  127. package/core/types/src/grids/index.d.ts +3 -0
  128. package/core/types/src/illustration-config/illustration-config.model.d.ts +4 -0
  129. package/core/types/src/illustration-config/index.d.ts +1 -0
  130. package/core/types/src/option/index.d.ts +1 -0
  131. package/core/types/src/option/option.model.d.ts +8 -0
  132. package/core/types/src/theme/theme.provider.d.ts +1 -0
  133. package/core/types/src/theme/tk-preset.d.ts +1 -0
  134. package/core/types/src/typography-styles/index.d.ts +1 -0
  135. package/core/types/src/validator-with-message/index.d.ts +1 -0
  136. package/directives/gird-item/index.d.ts +5 -0
  137. package/directives/gird-item/public-api.d.ts +1 -0
  138. package/directives/gird-item/src/grid-item.directive.d.ts +42 -0
  139. package/fesm2022/tekus-design-system-components-branding.mjs +93 -0
  140. package/fesm2022/tekus-design-system-components-branding.mjs.map +1 -0
  141. package/fesm2022/tekus-design-system-components-button.mjs +129 -0
  142. package/fesm2022/tekus-design-system-components-button.mjs.map +1 -0
  143. package/fesm2022/tekus-design-system-components-fallback-view.mjs +187 -0
  144. package/fesm2022/tekus-design-system-components-fallback-view.mjs.map +1 -0
  145. package/fesm2022/tekus-design-system-components-grid-container.mjs +193 -0
  146. package/fesm2022/tekus-design-system-components-grid-container.mjs.map +1 -0
  147. package/fesm2022/tekus-design-system-components-icon.mjs +1206 -0
  148. package/fesm2022/tekus-design-system-components-icon.mjs.map +1 -0
  149. package/fesm2022/tekus-design-system-components-illustration.mjs +3893 -0
  150. package/fesm2022/tekus-design-system-components-illustration.mjs.map +1 -0
  151. package/fesm2022/tekus-design-system-components-typography.mjs +36 -0
  152. package/fesm2022/tekus-design-system-components-typography.mjs.map +1 -0
  153. package/fesm2022/tekus-design-system-core-types.mjs +307 -0
  154. package/fesm2022/tekus-design-system-core-types.mjs.map +1 -0
  155. package/fesm2022/tekus-design-system-core.mjs +307 -0
  156. package/fesm2022/tekus-design-system-core.mjs.map +1 -0
  157. package/fesm2022/tekus-design-system-directives-gird-item.mjs +95 -0
  158. package/fesm2022/tekus-design-system-directives-gird-item.mjs.map +1 -0
  159. package/fesm2022/tekus-design-system-utils-sanitizer-utils.mjs +53 -0
  160. package/fesm2022/tekus-design-system-utils-sanitizer-utils.mjs.map +1 -0
  161. package/package.json +47 -49
  162. package/tokens/blur/_blur.scss +11 -0
  163. package/tokens/colors/_colors.scss +97 -0
  164. package/tokens/index.scss +5 -0
  165. package/tokens/shadow/_shadow.scss +10 -0
  166. package/tokens/shapes/_shapes.scss +9 -0
  167. package/tokens/spacing/_spacing.scss +25 -0
  168. package/utils/sanitizer-utils/index.d.ts +5 -0
  169. package/utils/sanitizer-utils/public-api.d.ts +1 -0
  170. package/utils/sanitizer-utils/src/sanitizer-utils.d.ts +20 -0
  171. package/components/forms/public-api.d.ts +0 -3
  172. package/components/forms/tk-form-autocomplete-field/index.d.ts +0 -5
  173. package/components/forms/tk-form-autocomplete-field/models/option.model.d.ts +0 -4
  174. package/components/forms/tk-form-autocomplete-field/public-api.d.ts +0 -1
  175. package/components/forms/tk-form-autocomplete-field/tk-form-autocomplete-field.component.d.ts +0 -173
  176. package/components/forms/tk-form-chips-autocomplete-field/index.d.ts +0 -5
  177. package/components/forms/tk-form-chips-autocomplete-field/models/option.model.d.ts +0 -4
  178. package/components/forms/tk-form-chips-autocomplete-field/public-api.d.ts +0 -1
  179. package/components/forms/tk-form-chips-autocomplete-field/tk-form-chips-autocomplete-field.component.d.ts +0 -124
  180. package/components/forms/tk-form-input-field/index.d.ts +0 -5
  181. package/components/forms/tk-form-input-field/public-api.d.ts +0 -1
  182. package/components/forms/tk-form-input-field/tk-form-input-field.component.d.ts +0 -137
  183. package/components/tk-dropdown-list/index.d.ts +0 -5
  184. package/components/tk-dropdown-list/models/dropdown-list-item.model.d.ts +0 -4
  185. package/components/tk-dropdown-list/public-api.d.ts +0 -1
  186. package/components/tk-dropdown-list/tk-dropdown-list.component.d.ts +0 -113
  187. package/components/tk-search-bar/public-api.d.ts +0 -1
  188. package/components/tk-search-bar/tk-search-bar.component.d.ts +0 -25
  189. package/components/tk-typography/public-api.d.ts +0 -1
  190. package/components/tk-typography/tk-typography.component.d.ts +0 -10
  191. package/esm2022/components/forms/public-api.mjs +0 -4
  192. package/esm2022/components/forms/tekus-design-system-components-forms.mjs +0 -5
  193. package/esm2022/components/forms/tk-form-autocomplete-field/models/option.model.mjs +0 -2
  194. package/esm2022/components/forms/tk-form-autocomplete-field/public-api.mjs +0 -2
  195. package/esm2022/components/forms/tk-form-autocomplete-field/tekus-design-system-components-forms-tk-form-autocomplete-field.mjs +0 -5
  196. package/esm2022/components/forms/tk-form-autocomplete-field/tk-form-autocomplete-field.component.mjs +0 -263
  197. package/esm2022/components/forms/tk-form-chips-autocomplete-field/models/option.model.mjs +0 -2
  198. package/esm2022/components/forms/tk-form-chips-autocomplete-field/public-api.mjs +0 -2
  199. package/esm2022/components/forms/tk-form-chips-autocomplete-field/tekus-design-system-components-forms-tk-form-chips-autocomplete-field.mjs +0 -5
  200. package/esm2022/components/forms/tk-form-chips-autocomplete-field/tk-form-chips-autocomplete-field.component.mjs +0 -187
  201. package/esm2022/components/forms/tk-form-input-field/models/validator-with-message.model.mjs +0 -2
  202. package/esm2022/components/forms/tk-form-input-field/public-api.mjs +0 -2
  203. package/esm2022/components/forms/tk-form-input-field/tekus-design-system-components-forms-tk-form-input-field.mjs +0 -5
  204. package/esm2022/components/forms/tk-form-input-field/tk-form-input-field.component.mjs +0 -206
  205. package/esm2022/components/tk-dropdown-list/models/dropdown-list-item.model.mjs +0 -2
  206. package/esm2022/components/tk-dropdown-list/public-api.mjs +0 -2
  207. package/esm2022/components/tk-dropdown-list/tekus-design-system-components-tk-dropdown-list.mjs +0 -5
  208. package/esm2022/components/tk-dropdown-list/tk-dropdown-list.component.mjs +0 -137
  209. package/esm2022/components/tk-search-bar/public-api.mjs +0 -2
  210. package/esm2022/components/tk-search-bar/tekus-design-system-components-tk-search-bar.mjs +0 -5
  211. package/esm2022/components/tk-search-bar/tk-search-bar.component.mjs +0 -49
  212. package/esm2022/components/tk-typography/public-api.mjs +0 -2
  213. package/esm2022/components/tk-typography/tekus-design-system-components-tk-typography.mjs +0 -5
  214. package/esm2022/components/tk-typography/tk-typography.component.mjs +0 -29
  215. package/esm2022/index.mjs +0 -2
  216. package/esm2022/services/typography/models/typographyStyles.model.mjs +0 -2
  217. package/esm2022/services/typography/public-api.mjs +0 -2
  218. package/esm2022/services/typography/tekus-design-system-services-typography.mjs +0 -5
  219. package/esm2022/services/typography/typography.service.mjs +0 -84
  220. package/esm2022/tekus-design-system.mjs +0 -5
  221. package/fesm2022/tekus-design-system-components-forms-tk-form-autocomplete-field.mjs +0 -270
  222. package/fesm2022/tekus-design-system-components-forms-tk-form-autocomplete-field.mjs.map +0 -1
  223. package/fesm2022/tekus-design-system-components-forms-tk-form-chips-autocomplete-field.mjs +0 -194
  224. package/fesm2022/tekus-design-system-components-forms-tk-form-chips-autocomplete-field.mjs.map +0 -1
  225. package/fesm2022/tekus-design-system-components-forms-tk-form-input-field.mjs +0 -213
  226. package/fesm2022/tekus-design-system-components-forms-tk-form-input-field.mjs.map +0 -1
  227. package/fesm2022/tekus-design-system-components-forms.mjs +0 -642
  228. package/fesm2022/tekus-design-system-components-forms.mjs.map +0 -1
  229. package/fesm2022/tekus-design-system-components-tk-dropdown-list.mjs +0 -144
  230. package/fesm2022/tekus-design-system-components-tk-dropdown-list.mjs.map +0 -1
  231. package/fesm2022/tekus-design-system-components-tk-search-bar.mjs +0 -56
  232. package/fesm2022/tekus-design-system-components-tk-search-bar.mjs.map +0 -1
  233. package/fesm2022/tekus-design-system-components-tk-typography.mjs +0 -36
  234. package/fesm2022/tekus-design-system-components-tk-typography.mjs.map +0 -1
  235. package/fesm2022/tekus-design-system-services-typography.mjs +0 -91
  236. package/fesm2022/tekus-design-system-services-typography.mjs.map +0 -1
  237. package/services/typography/public-api.d.ts +0 -1
  238. package/services/typography/typography.service.d.ts +0 -8
  239. /package/{services/typography/models → core/types/src/typography-styles}/typographyStyles.model.d.ts +0 -0
  240. /package/{components/forms/tk-form-input-field/models → core/types/src/validator-with-message}/validator-with-message.model.d.ts +0 -0
@@ -0,0 +1,11 @@
1
+ html {
2
+ --tk-low-blur-small: 2px;
3
+ --tk-low-blur-medium: 4px;
4
+ --tk-low-blur-large: 10px;
5
+ --tk-medium-blur-small: 4px;
6
+ --tk-medium-blur-medium: 8px;
7
+ --tk-medium-blur-large: 15px;
8
+ --tk-high-blur-small: 8px;
9
+ --tk-high-blur-medium: 12px;
10
+ --tk-high-blur-large: 20px;
11
+ }
@@ -0,0 +1,97 @@
1
+ html {
2
+
3
+ --tk-color-primary-900: #375f57;
4
+ --tk-color-primary-800: #467c71;
5
+ --tk-color-primary-700: #4f9385;
6
+ --tk-color-primary-600: #5bb09f;
7
+ --tk-color-primary-500: #6ad0bc;
8
+ --tk-color-primary-400: #87d9c9;
9
+ --tk-color-primary-300: #a5e2d6;
10
+ --tk-color-primary-200: #c3ece4;
11
+ --tk-color-primary-100: #e1f5f1;
12
+
13
+ --tk-color-secondary-900: #16006f;
14
+ --tk-color-secondary-800: #2b177b;
15
+ --tk-color-secondary-700: #44338b;
16
+ --tk-color-secondary-600: #54429d;
17
+ --tk-color-secondary-500: #7366a8;
18
+ --tk-color-secondary-400: #8275bb;
19
+ --tk-color-secondary-300: #a29ac5;
20
+ --tk-color-secondary-200: #d1cde2;
21
+ --tk-color-secondary-100: #efeef5;
22
+
23
+ --tk-color-accent-900: #420008;
24
+ --tk-color-accent-800: #6a000c;
25
+ --tk-color-accent-700: #8e0d1c;
26
+ --tk-color-accent-600: #b22535;
27
+ --tk-color-accent-500: #ce4556;
28
+ --tk-color-accent-400: #ee707e;
29
+ --tk-color-accent-300: #f89a9c;
30
+ --tk-color-accent-200: #fcc2c9;
31
+ --tk-color-accent-100: #fee6e9;
32
+
33
+ --tk-color-neutral-900: #040303;
34
+ --tk-color-neutral-800: #333333;
35
+ --tk-color-neutral-700: #444444;
36
+ --tk-color-neutral-600: #5b5b5b;
37
+ --tk-color-neutral-500: #6b6b6b;
38
+ --tk-color-neutral-400: #9b9b9b;
39
+ --tk-color-neutral-300: #b3b3b3;
40
+ --tk-color-neutral-200: #cdcdcd;
41
+ --tk-color-neutral-100: #f2f2f2;
42
+
43
+ --tk-color-success-900: #004d34;
44
+ --tk-color-success-800: #0c623e;
45
+ --tk-color-success-700: #00875b;
46
+ --tk-color-success-600: #18ae7d;
47
+ --tk-color-success-500: #36b37e;
48
+ --tk-color-success-400: #57d9a3;
49
+ --tk-color-success-300: #79f2c0;
50
+ --tk-color-success-200: #abf5d1;
51
+ --tk-color-success-100: #e3fcef;
52
+
53
+ --tk-color-danger-900: #950700;
54
+ --tk-color-danger-800: #af0c1d;
55
+ --tk-color-danger-700: #cf2604;
56
+ --tk-color-danger-600: #f43e11;
57
+ --tk-color-danger-500: #ff6640;
58
+ --tk-color-danger-400: #ff7f63;
59
+ --tk-color-danger-300: #ffa28b;
60
+ --tk-color-danger-200: #fbc2b4;
61
+ --tk-color-danger-100: #ffddd4;
62
+
63
+ --tk-color-info-900: #01367b;
64
+ --tk-color-info-800: #01469e;
65
+ --tk-color-info-700: #0a68e0;
66
+ --tk-color-info-600: #1c89ff;
67
+ --tk-color-info-500: #3998ff;
68
+ --tk-color-info-400: #509dff;
69
+ --tk-color-info-300: #7bb4fe;
70
+ --tk-color-info-200: #b3d4ff;
71
+ --tk-color-info-100: #deebff;
72
+
73
+ --tk-color-warning-900: #ffc55d;
74
+ --tk-color-warning-800: #ffca6b;
75
+ --tk-color-warning-700: #ffd07d;
76
+ --tk-color-warning-600: #ffd68f;
77
+ --tk-color-warning-500: #ffdc9d;
78
+ --tk-color-warning-400: #f5dbac;
79
+ --tk-color-warning-300: #ffe8be;
80
+ --tk-color-warning-200: #fff3df;
81
+ --tk-color-warning-100: #fffaf2;
82
+
83
+ --tk-text-default-900: #101820;
84
+ --tk-text-default-800: #6c6c6c;
85
+ --tk-text-default-700: #656d76;
86
+ --tk-text-default-600: #a0a9b4;
87
+ --tk-text-default-500: #d0d5dd;
88
+
89
+ --tk-border-soft: #eaecf0;
90
+ --tk-border-error: #de350b;
91
+ --tk-border-hover: #667085;
92
+ --tk-border-focused: #6ad0bc;
93
+ --tk-border-disabled: #d0d5dd;
94
+
95
+ --tk-color-full-black: #101820;
96
+ --tk-color-full-white: #ffffff;
97
+ }
@@ -0,0 +1,5 @@
1
+ @forward './colors/colors';
2
+ @forward './spacing/spacing';
3
+ @forward './shapes/shapes';
4
+ @forward './blur/blur';
5
+ @forward './shadow/shadow';
@@ -0,0 +1,10 @@
1
+ html {
2
+
3
+ /**
4
+ * @tokens Shadows
5
+ * @presenter Shadow
6
+ */
7
+ --tk-shadow-small: 2px 2px 4px 0px #cdcdcd26;
8
+ --tk-shadow-medium: 2px 4px 8px 0px #cdcdcd66;
9
+ --tk-shadow-large: 0px 4px 8px 0px #cdcdcd99;
10
+ }
@@ -0,0 +1,9 @@
1
+ html {
2
+ --tk-rounded-null: 0;
3
+ --tk-rounded-scale-01: 2px;
4
+ --tk-rounded-scale-02: 4px;
5
+ --tk-rounded-scale-03: 8px;
6
+ --tk-rounded-scale-04: 12px;
7
+ --tk-rounded-scale-05: 16px;
8
+ --tk-rounded-scale-10: 100%;
9
+ }
@@ -0,0 +1,25 @@
1
+ html {
2
+
3
+ /**
4
+ * @tokens Spacings
5
+ * @presenter Spacing
6
+ */
7
+
8
+ --tk-spacing-1: 4px;
9
+ --tk-spacing-2: 8px;
10
+ --tk-spacing-3: 12px;
11
+ --tk-spacing-4: 16px;
12
+ --tk-spacing-5: 20px;
13
+ --tk-spacing-6: 24px;
14
+ --tk-spacing-7: 32px;
15
+ --tk-spacing-8: 40px;
16
+ --tk-spacing-9: 48px;
17
+ --tk-spacing-10: 64px;
18
+ --tk-spacing-11: 80px;
19
+ --tk-spacing-12: 96px;
20
+ --tk-spacing-13: 128px;
21
+ --tk-spacing-14: 160px;
22
+ --tk-spacing-15: 192px;
23
+ --tk-spacing-16: 224px;
24
+ --tk-spacing-17: 256px;
25
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tekus/design-system/utils/sanitizer-utils" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './src/sanitizer-utils';
@@ -0,0 +1,20 @@
1
+ export declare const UNSAFE_SVG_REGEX: {
2
+ script: RegExp;
3
+ onAttr: RegExp;
4
+ jsHref: RegExp;
5
+ href: RegExp;
6
+ foreignObject: RegExp;
7
+ iframe: RegExp;
8
+ };
9
+ /**
10
+ * Sanitize the contents of an SVG to remove malicious code.
11
+ * @param svgContent The SVG content as a string.
12
+ * @returns The sanitized SVG.
13
+ */
14
+ export declare function sanitizeSvgContent(svgContent: string): string;
15
+ /**
16
+ * Edit the SVG to ensure that the color is dynamic and the ‘none’ fills are maintained.
17
+ * @param svgContent The SVG content as a string.
18
+ * @returns The modified SVG.
19
+ */
20
+ export declare function retouchSvgForColor(svgContent: string): string;
@@ -1,3 +0,0 @@
1
- export * from './tk-form-input-field/tk-form-input-field.component';
2
- export * from './tk-form-autocomplete-field/tk-form-autocomplete-field.component';
3
- export * from './tk-form-chips-autocomplete-field/tk-form-chips-autocomplete-field.component';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/forms/tk-form-autocomplete-field" />
5
- export * from './public-api';
@@ -1,4 +0,0 @@
1
- export interface Option {
2
- ViewValue: string;
3
- Value: string | number;
4
- }
@@ -1 +0,0 @@
1
- export * from './tk-form-autocomplete-field.component';
@@ -1,173 +0,0 @@
1
- import { OnInit, OnDestroy, OnChanges, EventEmitter, AfterViewInit, SimpleChanges } from '@angular/core';
2
- import { SubscriptSizing, MatFormFieldAppearance } from '@angular/material/form-field';
3
- import { MatAutocomplete } from '@angular/material/autocomplete';
4
- import { Option } from './models/option.model';
5
- import { ThemePalette } from '@angular/material/core';
6
- import { Observable } from 'rxjs';
7
- import { FormControl } from '@angular/forms';
8
- import * as i0 from "@angular/core";
9
- export declare class TkFormAutocompleteFieldComponent implements OnInit, OnDestroy, AfterViewInit, OnChanges {
10
- /**
11
- * Input field control
12
- * @ignore
13
- */
14
- formControl: FormControl<string | Option | null>;
15
- /**
16
- * Optional input field width
17
- * @default 100%
18
- */
19
- fieldWidth?: string;
20
- /**
21
- * What color palette to use
22
- * @default 'accent'
23
- */
24
- theme?: ThemePalette;
25
- /**
26
- * Form field appearance
27
- * @default 'fill'
28
- */
29
- appearance: MatFormFieldAppearance;
30
- /**
31
- * Form field reserved space for one line by default.
32
- * @default 'dynamic'
33
- */
34
- subscriptSizing: SubscriptSizing;
35
- /**
36
- * Whether the first option should be highlighted when the autocomplete panel is opened
37
- * @default true
38
- */
39
- autoActiveFirstOption?: boolean;
40
- /**
41
- * Whether the active option should be selected as the user is navigating.
42
- * @default true
43
- */
44
- autoSelectActiveOption?: boolean;
45
- /**
46
- * Optional field input type
47
- * @default 'text'
48
- */
49
- type: string;
50
- /**
51
- * Whether the field is required
52
- * @default true
53
- */
54
- required: boolean;
55
- /**
56
- * Optional input field title
57
- * @default null
58
- */
59
- fieldTitle?: string;
60
- /**
61
- * Input field label
62
- */
63
- fieldLabel: string;
64
- /**
65
- * Input field placeholder
66
- * @default ''
67
- */
68
- placeHolder: string;
69
- /**
70
- * Filtered options
71
- * @ignore
72
- */
73
- filteredOptions: Observable<Option[]>;
74
- /**
75
- * Options to be displayed
76
- * @ignore
77
- */
78
- options: Option[];
79
- /**
80
- * Option changes handler
81
- */
82
- optionSelected: EventEmitter<string | number>;
83
- /**
84
- * Input field changes handler
85
- */
86
- inputStatus: EventEmitter<FormControl<any>>;
87
- /**
88
- * Autocomplete bottom reached handler
89
- */
90
- bottomReached: EventEmitter<void>;
91
- /**
92
- * Subscriptions property to handle all subscriptions
93
- * @ignore
94
- */
95
- private readonly subscriptions;
96
- /**
97
- * Mat-autocomplete reference
98
- * @ignore
99
- */
100
- matAutocomplete: MatAutocomplete;
101
- /**
102
- * Component lifecycle method
103
- * @ignore
104
- */
105
- ngOnInit(): void;
106
- /**
107
- * Component lifecycle method
108
- * @ignore
109
- */
110
- ngAfterViewInit(): void;
111
- /**
112
- * Component lifecycle method
113
- * @ignore
114
- */
115
- ngOnChanges(changes: SimpleChanges): void;
116
- /**
117
- * Handles options updates
118
- * @ignore
119
- */
120
- private updateFilteredOptions;
121
- /**
122
- * Starts the autocomplete subscriptions
123
- * @ignore
124
- */
125
- initAutocompleteListener(): void;
126
- /**
127
- * Handles the autocomplete opened event
128
- * @ignore
129
- */
130
- private onAutocompleteOpened;
131
- /**
132
- * Handles the autocomplete closed event
133
- * @ignore
134
- */
135
- private onAutocompleteClosed;
136
- /**
137
- * Handles the scrolling event
138
- * @ignore
139
- */
140
- private onScroll;
141
- /**
142
- * Emits the bottomReached when the user reaches the end of the autocomplete panel
143
- * @ignore
144
- */
145
- private onScrolledToEnd;
146
- /**
147
- * Conditions the options' view to display the view value
148
- * @ignore
149
- */
150
- displayFn(option: Option | null): string;
151
- /**
152
- * Filters the options according to the input value
153
- * @ignore
154
- */
155
- private _filterOptions;
156
- /**
157
- * Emits the selected option every time it changes
158
- * @ignore
159
- */
160
- onSelectionChanged(option: Option): void;
161
- /**
162
- * Emits the formControl variable every time the input value changes
163
- * @ignore
164
- */
165
- onInputChanged(): void;
166
- /**
167
- * Unsubscribe from all subscriptions when the component is destroyed
168
- * @ignore
169
- */
170
- ngOnDestroy(): void;
171
- static ɵfac: i0.ɵɵFactoryDeclaration<TkFormAutocompleteFieldComponent, never>;
172
- static ɵcmp: i0.ɵɵComponentDeclaration<TkFormAutocompleteFieldComponent, "lib-tk-form-autocomplete-field", never, { "fieldWidth": { "alias": "fieldWidth"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "autoSelectActiveOption": { "alias": "autoSelectActiveOption"; "required": false; }; "type": { "alias": "type"; "required": false; }; "required": { "alias": "required"; "required": false; }; "fieldTitle": { "alias": "fieldTitle"; "required": false; }; "fieldLabel": { "alias": "fieldLabel"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "optionSelected": "optionSelected"; "inputStatus": "inputStatus"; "bottomReached": "bottomReached"; }, never, never, true, never>;
173
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/forms/tk-form-chips-autocomplete-field" />
5
- export * from './public-api';
@@ -1,4 +0,0 @@
1
- export interface Option {
2
- ViewValue: string;
3
- Value: string | number;
4
- }
@@ -1 +0,0 @@
1
- export * from './tk-form-chips-autocomplete-field.component';
@@ -1,124 +0,0 @@
1
- import { OnInit, OnChanges, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
2
- import { SubscriptSizing, MatFormFieldAppearance } from '@angular/material/form-field';
3
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
4
- import { Option } from './models/option.model';
5
- import { Observable } from 'rxjs';
6
- import { ThemePalette } from '@angular/material/core';
7
- import { FormControl } from '@angular/forms';
8
- import * as i0 from "@angular/core";
9
- export declare class TkFormChipsAutocompleteFieldComponent implements OnInit, OnChanges {
10
- /**
11
- * Input field label
12
- */
13
- fieldLabel: string;
14
- /**
15
- * Input field placeholder
16
- * @default ''
17
- */
18
- placeHolder: string;
19
- /**
20
- * Optional input field title
21
- * @default null
22
- */
23
- fieldTitle?: string;
24
- /**
25
- * What color palette to use
26
- * @default 'accent'
27
- */
28
- theme?: ThemePalette;
29
- /**
30
- * Form field reserved space for one line by default.
31
- * @default 'dynamic'
32
- */
33
- subscriptSizing: SubscriptSizing;
34
- /**
35
- * Optional input field width
36
- * @default 100%
37
- */
38
- fieldWidth?: string;
39
- /**
40
- * Form field appearance
41
- * @default 'fill'
42
- */
43
- appearance: MatFormFieldAppearance;
44
- /**
45
- * Input field control
46
- * @ignore
47
- */
48
- formControl: FormControl<string | null>;
49
- /**
50
- * Selected keywords
51
- * @ignore
52
- */
53
- keywords: Option[];
54
- /**
55
- * Input field changes handler
56
- */
57
- inputStatus: EventEmitter<FormControl<any>>;
58
- /**
59
- * Keywords changes handler
60
- */
61
- selectedKeywords: EventEmitter<(string | number)[]>;
62
- /**
63
- * Separator constants
64
- * @ignore
65
- */
66
- readonly separatorKeysCodes: number[];
67
- /**
68
- * Options to be displayed
69
- * @ignore
70
- */
71
- allKeywords: Option[];
72
- /**
73
- * Filtered keywords after the input field changes
74
- * @ignore
75
- */
76
- filteredKeywords: Observable<Option[]> | undefined;
77
- /**
78
- * Keyword Input element reference
79
- * @ignore
80
- */
81
- keywordInput: ElementRef<HTMLInputElement>;
82
- /**
83
- * @ignore
84
- * Lifecycle method
85
- */
86
- ngOnInit(): void;
87
- /**
88
- * @ignore
89
- * Lifecycle method
90
- */
91
- ngOnChanges(changes: SimpleChanges): void;
92
- /**
93
- * Updates the filtered keywords when allKeywords changes
94
- * @ignore
95
- */
96
- private updateFilteredKeywords;
97
- /**
98
- * Handles every keyword deletion
99
- * @ignore
100
- */
101
- remove(keyword: Option): void;
102
- /**
103
- * Emits the formControl variable every time the field value changes
104
- * @ignore
105
- */
106
- onInputChanged(): void;
107
- /**
108
- * Emits the selected keywords every time they changed
109
- * @ignore
110
- */
111
- onKeywordsChanged(): void;
112
- /**
113
- * Handles the autocomplete selection
114
- * @ignore
115
- */
116
- selected(event: MatAutocompleteSelectedEvent): void;
117
- /**
118
- * Filters the keywords based on the input
119
- * @ignore
120
- */
121
- private _filter;
122
- static ɵfac: i0.ɵɵFactoryDeclaration<TkFormChipsAutocompleteFieldComponent, never>;
123
- static ɵcmp: i0.ɵɵComponentDeclaration<TkFormChipsAutocompleteFieldComponent, "lib-tk-form-chips-autocomplete-field", never, { "fieldLabel": { "alias": "fieldLabel"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "fieldTitle": { "alias": "fieldTitle"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "fieldWidth": { "alias": "fieldWidth"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "allKeywords": { "alias": "allKeywords"; "required": false; }; }, { "inputStatus": "inputStatus"; "selectedKeywords": "selectedKeywords"; }, never, never, true, never>;
124
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/forms/tk-form-input-field" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './tk-form-input-field.component';
@@ -1,137 +0,0 @@
1
- import { OnInit, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
2
- import { FormControl } from '@angular/forms';
3
- import { FloatLabelType, SubscriptSizing, MatFormFieldAppearance } from '@angular/material/form-field';
4
- import { ThemePalette } from '@angular/material/core';
5
- import { ValidatorWithMessage } from './models/validator-with-message.model';
6
- import * as i0 from "@angular/core";
7
- export declare class TkFormInputFieldComponent implements OnInit, OnChanges {
8
- /**
9
- * Optional input field width
10
- * @default 100%
11
- */
12
- fieldWidth?: string;
13
- /**
14
- * Optional input field title
15
- * @default null
16
- */
17
- fieldTitle?: string;
18
- /**
19
- * What color palette to use
20
- * @default 'accent'
21
- */
22
- theme?: ThemePalette;
23
- /**
24
- * Optional field input type
25
- * @default 'text'
26
- */
27
- type: string;
28
- /**
29
- * Whether the field is required
30
- * @default true
31
- */
32
- required: boolean;
33
- /**
34
- * Form field label behavior
35
- * @default 'auto'
36
- */
37
- floatLabel: FloatLabelType;
38
- /**
39
- * Form field appearance
40
- * @default 'fill'
41
- */
42
- appearance: MatFormFieldAppearance;
43
- /**
44
- * Form field reserved space for one line by default.
45
- * @default 'dynamic'
46
- */
47
- subscriptSizing: SubscriptSizing;
48
- /**
49
- * Input field label
50
- */
51
- fieldLabel: string;
52
- /**
53
- * Input field placeholder
54
- * @default ''
55
- */
56
- placeHolder: string;
57
- /**
58
- * Optional Input field text prefix
59
- * @default ''
60
- */
61
- inputPrefix?: string;
62
- /**
63
- * Optional Input field text suffix
64
- * @default ''
65
- */
66
- inputSuffix?: string;
67
- /**
68
- * Input field control
69
- * @ignore
70
- */
71
- formControl: FormControl<string | null>;
72
- /**
73
- * Input field error message
74
- * @ignore
75
- */
76
- errorMessage: string;
77
- /**
78
- * Optional validators for the field
79
- * @default ''
80
- */
81
- validatorsWithMessages: {
82
- [key: string]: ValidatorWithMessage;
83
- };
84
- /**
85
- * Optional async validators for the field
86
- * @default ''
87
- */
88
- asyncValidatorsWithMessages: {
89
- [key: string]: ValidatorWithMessage;
90
- };
91
- /**
92
- * Input field changes handler
93
- */
94
- inputStatus: EventEmitter<FormControl<any>>;
95
- /**
96
- * @ignore
97
- * Class constructor
98
- */
99
- constructor();
100
- /**
101
- * Component lifecycle method
102
- * @ignore
103
- */
104
- ngOnInit(): void;
105
- /**
106
- * Component lifecycle method
107
- * @ignore
108
- */
109
- ngOnChanges(changes: SimpleChanges): void;
110
- /**
111
- * @ignore
112
- * Component lifecycle method
113
- */
114
- private isThereAnyValidator;
115
- /**
116
- * Applies all the passed validators
117
- * @ignore
118
- */
119
- private applyValidators;
120
- /**
121
- * Checks if there is any validation error
122
- * @ignore
123
- */
124
- private checkValidationErrors;
125
- /**
126
- * Emits the formControl variable every time the field value changes
127
- * @ignore
128
- */
129
- onInputChanged(): void;
130
- /**
131
- * Updates the error message every time the input value changes
132
- * @ignore
133
- */
134
- updateErrorMessage(): void;
135
- static ɵfac: i0.ɵɵFactoryDeclaration<TkFormInputFieldComponent, never>;
136
- static ɵcmp: i0.ɵɵComponentDeclaration<TkFormInputFieldComponent, "lib-tk-form-input-field", never, { "fieldWidth": { "alias": "fieldWidth"; "required": false; }; "fieldTitle": { "alias": "fieldTitle"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "type": { "alias": "type"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "fieldLabel": { "alias": "fieldLabel"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "inputPrefix": { "alias": "inputPrefix"; "required": false; }; "inputSuffix": { "alias": "inputSuffix"; "required": false; }; "validatorsWithMessages": { "alias": "validatorsWithMessages"; "required": false; }; "asyncValidatorsWithMessages": { "alias": "asyncValidatorsWithMessages"; "required": false; }; }, { "inputStatus": "inputStatus"; }, never, never, true, never>;
137
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@tekus/design-system/components/tk-dropdown-list" />
5
- export * from './public-api';