@zap-wunschlachen/wl-shared-components 1.0.76 → 1.0.78

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 (227) hide show
  1. package/.github/workflows/playwright.yml +229 -229
  2. package/.github/workflows/static.yml +61 -61
  3. package/.github/workflows/update-snapshots.yml +37 -37
  4. package/.prettierrc.json +8 -8
  5. package/.storybook/main.ts +18 -18
  6. package/.storybook/preview.ts +37 -37
  7. package/.storybook/storyWrapper.vue +18 -18
  8. package/.storybook/withVuetifyTheme.decorator.ts +21 -21
  9. package/App.vue +139 -139
  10. package/README.md +56 -56
  11. package/docs/assets.md +62 -62
  12. package/heroicons.ts +75 -75
  13. package/index.html +19 -19
  14. package/package.json +71 -71
  15. package/playwright.config.ts +48 -48
  16. package/public/background.svg +60 -60
  17. package/public/style.css +187 -187
  18. package/public/technologies.svg +22 -22
  19. package/scripts/check-translations.ts +352 -352
  20. package/src/assets/css/base.css +242 -242
  21. package/src/assets/css/variables.css +176 -176
  22. package/src/components/Accordion/Accordion.css +65 -65
  23. package/src/components/Accordion/AccordionGroup.vue +88 -88
  24. package/src/components/Accordion/AccordionItem.vue +272 -272
  25. package/src/components/Accordion/presets/default.css +4 -4
  26. package/src/components/Accordion/presets/elevated.css +25 -25
  27. package/src/components/Accordion/presets/filled.css +26 -26
  28. package/src/components/Accordion/presets/index.css +5 -5
  29. package/src/components/Accordion/presets/plain.css +34 -34
  30. package/src/components/Appointment/Card/Actions.css +54 -54
  31. package/src/components/Appointment/Card/Actions.vue +99 -99
  32. package/src/components/Appointment/Card/AnamneseNotification.css +20 -20
  33. package/src/components/Appointment/Card/AnamneseNotification.vue +23 -23
  34. package/src/components/Appointment/Card/Card.css +99 -99
  35. package/src/components/Appointment/Card/Card.vue +97 -97
  36. package/src/components/Appointment/Card/Details.css +62 -62
  37. package/src/components/Appointment/Card/Details.vue +44 -44
  38. package/src/components/Audio/Audio.vue +187 -187
  39. package/src/components/Audio/Waveform.vue +118 -118
  40. package/src/components/Banner/Banner.css +29 -29
  41. package/src/components/Banner/Banner.vue +89 -89
  42. package/src/components/Button/Button.vue +257 -257
  43. package/src/components/CheckBox/CheckBox.css +234 -234
  44. package/src/components/CheckBox/Checkbox.vue +184 -184
  45. package/src/components/DateInput/DateInput.css +2 -2
  46. package/src/components/DateInput/DateInput.vue +376 -370
  47. package/src/components/Dialog/Dialog.css +6 -6
  48. package/src/components/Dialog/Dialog.vue +46 -46
  49. package/src/components/EditField/EditField.css +19 -19
  50. package/src/components/EditField/EditField.vue +211 -211
  51. package/src/components/ErrorPage/ErrorPage.css +172 -172
  52. package/src/components/IconBullet/IconBullet.vue +104 -104
  53. package/src/components/IconBullet/IconBulletList.vue +55 -55
  54. package/src/components/Icons/AdvanceAppointments.vue +161 -161
  55. package/src/components/Icons/Audio/CloudFailed.vue +27 -27
  56. package/src/components/Icons/Audio/CloudSaved.vue +28 -28
  57. package/src/components/Icons/Audio/Delete.vue +22 -22
  58. package/src/components/Icons/Audio/Pause.vue +25 -25
  59. package/src/components/Icons/Audio/Play.vue +22 -22
  60. package/src/components/Icons/Calendar.vue +28 -28
  61. package/src/components/Icons/CalendarNotification.vue +137 -137
  62. package/src/components/Icons/Chair.vue +43 -43
  63. package/src/components/Icons/ChairNotification.vue +46 -46
  64. package/src/components/Icons/Circle.vue +66 -66
  65. package/src/components/Icons/FavIcon.vue +69 -69
  66. package/src/components/Icons/FilledCircle.vue +11 -11
  67. package/src/components/Icons/Group3.vue +57 -57
  68. package/src/components/Icons/Play.vue +16 -16
  69. package/src/components/Icons/RingNotification.vue +65 -65
  70. package/src/components/Icons/SolidArrowRight.vue +14 -14
  71. package/src/components/Icons/checkbox.vue +19 -19
  72. package/src/components/Icons/outlineChecked.vue +38 -38
  73. package/src/components/Input/Input.css +234 -234
  74. package/src/components/Input/Input.vue +281 -281
  75. package/src/components/Laboratory/AppointmentCard/AppointmentCard.css +7 -7
  76. package/src/components/Laboratory/AppointmentCard/AppointmentCard.vue +116 -116
  77. package/src/components/Laboratory/ChatBoxImage/ChatBoxImage.vue +81 -81
  78. package/src/components/Laboratory/ChatMessage/ChatMessage.vue +113 -113
  79. package/src/components/Laboratory/ChatMessage/ChatMessageBadge.css +4 -4
  80. package/src/components/Laboratory/ChatMessage/ChatMessageBadge.vue +99 -99
  81. package/src/components/Laboratory/ChatNotification/ChatNotification.vue +130 -130
  82. package/src/components/Laboratory/DocumentCard/DocumentCard.css +3 -3
  83. package/src/components/Laboratory/DocumentCard/DocumentCard.vue +50 -50
  84. package/src/components/Laboratory/DocumentCard/DocumentCardItem.vue +53 -53
  85. package/src/components/Laboratory/InfoCard/InfoCard.vue +162 -162
  86. package/src/components/Laboratory/MainColumnsBar/MainColumnsBar.vue +102 -102
  87. package/src/components/Laboratory/ProgressCircle/ProgressCircle.vue +152 -152
  88. package/src/components/Laboratory/ProgressLinear/ProgressLinear.css +33 -33
  89. package/src/components/Laboratory/ProgressLinear/ProgressLinear.vue +75 -75
  90. package/src/components/Laboratory/SelectionColumnBar/SelectionColumnBar.vue +92 -92
  91. package/src/components/Laboratory/StatusNotification/StatusNotification.vue +49 -49
  92. package/src/components/Laboratory/TagLabel/TagLabel.vue +126 -126
  93. package/src/components/Laboratory/TagLabelGroup/TagLabelGroup.vue +97 -97
  94. package/src/components/Laboratory/TicketCard/TicketCard.css +3 -3
  95. package/src/components/Laboratory/TicketCard/TicketCard.vue +143 -143
  96. package/src/components/Laboratory/TimeLine/TimeLineEvent.css +18 -18
  97. package/src/components/Laboratory/TimeLine/TimeLineEvent.vue +119 -119
  98. package/src/components/Laboratory/TimeLine/Timeline.css +4 -4
  99. package/src/components/Laboratory/TimeLine/Timeline.vue +30 -30
  100. package/src/components/Loader/Loader.css +78 -78
  101. package/src/components/MaintenanceBanner/MaintenanceBanner.css +353 -353
  102. package/src/components/MaintenanceBanner/MaintenanceBanner.vue +140 -140
  103. package/src/components/MaintenanceBanner/MaintenanceIllustration.vue +54 -54
  104. package/src/components/Modal/Modal.css +5 -5
  105. package/src/components/Modal/Modal.vue +29 -29
  106. package/src/components/NotificationBubble/NotificationBubble.css +4 -4
  107. package/src/components/NotificationBubble/NotificationBubble.vue +90 -90
  108. package/src/components/OtpInput/OtpInput.css +43 -43
  109. package/src/components/OtpInput/OtpInput.vue +181 -181
  110. package/src/components/PhoneInput/PhoneInput.css +151 -126
  111. package/src/components/PhoneInput/PhoneInput.vue +230 -139
  112. package/src/components/RadioGroup/RadioGroup.css +65 -0
  113. package/src/components/RadioGroup/RadioGroup.vue +134 -0
  114. package/src/components/Select/Select.css +172 -172
  115. package/src/components/Select/Select.vue +377 -377
  116. package/src/components/SelectAutocomplete/SelectAutocomplete.css +172 -172
  117. package/src/components/SelectAutocomplete/SelectAutocomplete.vue +414 -414
  118. package/src/components/TextArea/TextArea.css +269 -269
  119. package/src/components/TextArea/TextArea.vue +207 -207
  120. package/src/components/TickBox/TickBox.css +116 -116
  121. package/src/components/TickBox/TickBox.vue +172 -172
  122. package/src/components/Tile/Tile.css +106 -106
  123. package/src/components/Tile/Tile.vue +173 -173
  124. package/src/components/accessibility.css +218 -218
  125. package/src/components/index.ts +110 -109
  126. package/src/constants/iconEnums.ts +3 -3
  127. package/src/i18n/i18n.ts +15 -15
  128. package/src/i18n/locales/de.json +30 -30
  129. package/src/i18n/locales/en.json +30 -30
  130. package/src/index.ts +43 -43
  131. package/src/main.ts +11 -11
  132. package/src/pages/AccordionGroupPage.vue +873 -873
  133. package/src/pages/AllPage.vue +2483 -2365
  134. package/src/pages/SelectPage.vue +1302 -1302
  135. package/src/pages/TilePage.vue +902 -902
  136. package/src/plugins/vuetify.ts +54 -54
  137. package/src/shims-vue.d.ts +30 -30
  138. package/src/utils/index.ts +733 -733
  139. package/src/vite-env.d.ts +1 -1
  140. package/tests/unit/accessibility/component-a11y.spec.ts +657 -657
  141. package/tests/unit/components/Accordion/AccordionGroup.spec.ts +228 -228
  142. package/tests/unit/components/Accordion/AccordionItem.spec.ts +257 -257
  143. package/tests/unit/components/Appointment/AnamneseNotification.spec.ts +176 -176
  144. package/tests/unit/components/Appointment/Card/Actions.spec.ts +436 -436
  145. package/tests/unit/components/Appointment/Card/Card.spec.ts +531 -531
  146. package/tests/unit/components/Appointment/Card/Details.spec.ts +395 -395
  147. package/tests/unit/components/Audio/Audio.spec.ts +403 -403
  148. package/tests/unit/components/Audio/Waveform.spec.ts +483 -483
  149. package/tests/unit/components/Background/Background.spec.ts +177 -177
  150. package/tests/unit/components/Core/AnamneseAnswerDialog.spec.ts +344 -0
  151. package/tests/unit/components/Core/Banner.spec.ts +187 -0
  152. package/tests/unit/components/Core/Button.spec.ts +346 -346
  153. package/tests/unit/components/Core/Checkbox.spec.ts +544 -544
  154. package/tests/unit/components/Core/DateInput.spec.ts +702 -702
  155. package/tests/unit/components/Core/Dialog.spec.ts +448 -448
  156. package/tests/unit/components/Core/EditField.spec.ts +541 -541
  157. package/tests/unit/components/Core/Input.spec.ts +512 -512
  158. package/tests/unit/components/Core/List.spec.ts +163 -0
  159. package/tests/unit/components/Core/ListItem.spec.ts +205 -0
  160. package/tests/unit/components/Core/Modal.spec.ts +518 -518
  161. package/tests/unit/components/Core/NotificationBubble.spec.ts +606 -606
  162. package/tests/unit/components/Core/OtpInput.spec.ts +708 -708
  163. package/tests/unit/components/Core/PhoneInput.spec.ts +757 -619
  164. package/tests/unit/components/Core/RadioGroup.spec.ts +318 -0
  165. package/tests/unit/components/Core/Select.spec.ts +712 -712
  166. package/tests/unit/components/Core/SelectAutocomplete.spec.ts +361 -0
  167. package/tests/unit/components/Core/TextArea.spec.ts +565 -565
  168. package/tests/unit/components/Core/TickBox.spec.ts +836 -836
  169. package/tests/unit/components/Core/Tile.spec.ts +286 -0
  170. package/tests/unit/components/DateInput/DateInput.spec.ts +128 -0
  171. package/tests/unit/components/ErrorPage/ErrorPage.spec.ts +313 -313
  172. package/tests/unit/components/ErrorPage/ErrorPageLogo.spec.ts +153 -153
  173. package/tests/unit/components/IconBullet/IconBullet.spec.ts +356 -356
  174. package/tests/unit/components/IconBullet/IconBulletList.spec.ts +371 -371
  175. package/tests/unit/components/Icons/AdvanceAppointments.spec.ts +186 -186
  176. package/tests/unit/components/Icons/Audio/CloudFailed.spec.ts +108 -108
  177. package/tests/unit/components/Icons/Audio/CloudSaved.spec.ts +149 -149
  178. package/tests/unit/components/Icons/Audio/Delete.spec.ts +158 -158
  179. package/tests/unit/components/Icons/Audio/Pause.spec.ts +208 -208
  180. package/tests/unit/components/Icons/Audio/Play.spec.ts +217 -217
  181. package/tests/unit/components/Icons/CalendarNotification.spec.ts +193 -193
  182. package/tests/unit/components/Icons/Chair.spec.ts +241 -241
  183. package/tests/unit/components/Icons/ChairNotification.spec.ts +318 -318
  184. package/tests/unit/components/Icons/Circle.spec.ts +255 -255
  185. package/tests/unit/components/Icons/FavIcon.spec.ts +259 -259
  186. package/tests/unit/components/Icons/FilledCircle.spec.ts +274 -274
  187. package/tests/unit/components/Icons/Group3.spec.ts +362 -362
  188. package/tests/unit/components/Icons/Logo.spec.ts +229 -229
  189. package/tests/unit/components/Icons/MiniLogo.spec.ts +38 -38
  190. package/tests/unit/components/Icons/RingNotification.spec.ts +400 -400
  191. package/tests/unit/components/Icons/SolidArrowRight.spec.ts +49 -49
  192. package/tests/unit/components/Icons/calendar.spec.ts +293 -293
  193. package/tests/unit/components/Icons/checkbox.spec.ts +315 -315
  194. package/tests/unit/components/Icons/outlineChecked.spec.ts +441 -441
  195. package/tests/unit/components/Icons/play.spec.ts +315 -315
  196. package/tests/unit/components/Laboratory/AppointmentCard.spec.ts +167 -167
  197. package/tests/unit/components/Laboratory/ChatBoxImage.spec.ts +179 -179
  198. package/tests/unit/components/Laboratory/ChatMessage.spec.ts +263 -263
  199. package/tests/unit/components/Laboratory/ChatMessageBadge.spec.ts +282 -282
  200. package/tests/unit/components/Laboratory/ChatNotification.spec.ts +256 -256
  201. package/tests/unit/components/Laboratory/DocumentCard.spec.ts +228 -228
  202. package/tests/unit/components/Laboratory/DocumentCardItem.spec.ts +236 -236
  203. package/tests/unit/components/Laboratory/InfoCard.spec.ts +308 -308
  204. package/tests/unit/components/Laboratory/MainColumnsBar.spec.ts +251 -251
  205. package/tests/unit/components/Laboratory/ProgressCircle.spec.ts +290 -290
  206. package/tests/unit/components/Laboratory/ProgressLinear.spec.ts +275 -275
  207. package/tests/unit/components/Laboratory/SelectionColumnBar.spec.ts +288 -288
  208. package/tests/unit/components/Laboratory/StatusNotification.spec.ts +296 -296
  209. package/tests/unit/components/Laboratory/TagLabel.spec.ts +353 -353
  210. package/tests/unit/components/Laboratory/TagLabelGroup.spec.ts +377 -377
  211. package/tests/unit/components/Laboratory/TicketCard.spec.ts +351 -351
  212. package/tests/unit/components/Laboratory/TimeLineEvent.spec.ts +381 -381
  213. package/tests/unit/components/Laboratory/Timeline.spec.ts +419 -419
  214. package/tests/unit/components/Loader/Loader.spec.ts +197 -197
  215. package/tests/unit/components/MaintenanceBanner/MaintenanceBanner.spec.ts +302 -302
  216. package/tests/unit/constants/iconEnums.spec.ts +39 -39
  217. package/tests/unit/i18n/i18n.spec.ts +88 -88
  218. package/tests/unit/plugins/vuetify.spec.ts +182 -182
  219. package/tests/unit/setup.ts +237 -237
  220. package/tests/unit/src/components/index.spec.ts.skip +192 -192
  221. package/tests/unit/src/index.spec.ts.skip +182 -182
  222. package/tests/unit/src/main.spec.ts +111 -111
  223. package/tests/unit/utils/accessibility.spec.ts +318 -318
  224. package/tests/unit/utils/anamnese.spec.ts +531 -0
  225. package/tsconfig.json +26 -26
  226. package/vite.config.ts +29 -29
  227. package/vitest.config.ts +91 -91
@@ -1,734 +1,734 @@
1
- import { se } from "date-fns/locale";
2
- import { ref } from "vue";
3
-
4
- const appointmentTypes = [
5
- {
6
- id: 0,
7
- icon: 'simple',
8
- title: 'Simple',
9
- content: '1 Patient <br>1 Behandler <br>1 Behandlungen',
10
- description: 'Hier steht Text zu der Termin option die ungefähr so lang ist.',
11
- additionalClass: "hidden"
12
- },
13
- {
14
- id: 1,
15
- icon: 'multitermin',
16
- title: 'Multitermin',
17
- content: '1 Patient <br>1 Behandler <br>2 Behandlungen',
18
- description: 'Hier steht Text zu der Termin option die ungefähr so lang ist.',
19
- additionalClass: ""
20
- },
21
- {
22
- id: 2,
23
- icon: 'supervision',
24
- title: 'Supervision',
25
- content: '1 Patient <br>2 Behandler <br> 1 Behandlungen',
26
- description: 'Hier steht Text zu der Termin option die ungefähr so lang ist.',
27
- additionalClass: ""
28
- },
29
- {
30
- id: 3,
31
- icon: 'doppeltermin',
32
- title: 'Doppeltermin',
33
- content: '2 Patienten <br> 1 Behandler <br> 1 Behandlungen',
34
- description: 'Hier steht Text zu der Termin option die ungefähr so lang ist.',
35
- additionalClass: ""
36
- },
37
- {
38
- id: 4,
39
- icon: 'kombitermin',
40
- title: 'Kombitermin',
41
- content: '1 Patient <br> 2 Behandler <br> 2 Behandlungen',
42
- description: 'Hier steht Text zu der Termin option die ungefähr so lang ist.',
43
- additionalClass: ""
44
- },
45
- ];
46
-
47
- const getDomainName = () => {
48
- const host = window.location.hostname;
49
- const m = host.match(/([^.]+)\.app/);
50
- return m?.[1] ?? null;
51
- }
52
-
53
- const generateDynamicDomain = () => {
54
- const protocol = window.location.protocol; // e.g., "http:"
55
- const host = window.location.host; // e.g., "localhost:3000"
56
- return `${protocol}//${host}`; // Combine protocol and host
57
- };
58
-
59
- // Check for testing override in localStorage or URL parameter
60
- const getTestingDomainOverride = () => {
61
- // Check URL parameter first
62
- if (typeof window !== 'undefined') {
63
- const urlParams = new URLSearchParams(window.location.search);
64
- const urlDomain = urlParams.get('testDomain');
65
- if (urlDomain === 'domain-cocoon' || urlDomain === 'domain-dental') {
66
- return urlDomain;
67
- }
68
-
69
- // Check localStorage second
70
- const storedDomain = localStorage.getItem('testDomain');
71
- if (storedDomain === 'domain-cocoon' || storedDomain === 'domain-dental') {
72
- return storedDomain;
73
- }
74
- }
75
- return null;
76
- };
77
-
78
- const domain: any = ref(null);
79
- const testingOverride = getTestingDomainOverride();
80
-
81
- if (testingOverride) {
82
- // Use testing override if available
83
- domain.value = testingOverride;
84
- } else {
85
- // Use actual domain detection
86
- const currentDomain = generateDynamicDomain().toLowerCase();
87
- if (currentDomain.includes("white-cocoon")) {
88
- domain.value = "domain-cocoon";
89
- } else {
90
- domain.value = "domain-dental";
91
- }
92
- }
93
-
94
- // Function to get colors for a specific domain
95
- const getColorsForDomain = (domainValue: string) => {
96
- if (domainValue === "domain-cocoon") {
97
- return {
98
- "primary-color": "var(--Dark-Nude-2)",
99
-
100
- /* Button colors */
101
- button_default_bg: "var(--Dark-Nude-2)",
102
- button_pressed_bg: "var(--Dark-Nude-3)",
103
- button_hovered_bg: "var(--Night-Nude--1)",
104
- button_disabled_bg: "var(--Night-Nude--3)",
105
- button_default_text: "var(--White-0)",
106
-
107
- button_outline_border: "var(--Dark-Nude-3)",
108
- button_outline_pressed_bg: "var(--Dark-Nude-2)",
109
- button_outline_hovered_bg: "var(--Night-Nude-2)",
110
- button_outline_hovered_border: "var(--Night-Nude-2)",
111
- button_outline_disabled_border: "var(--Night-Nude--1)",
112
- button_outline_default_text: "var(--Dark-Nude-3)",
113
- button_outline_disabled_text: "var(--Night-Nude--1)",
114
- /* End button colors */
115
-
116
- /* Checkbox colors */
117
- checkbox_default_text: "var(--Dark-Nude-3)",
118
-
119
- checkbox_defaut_border: "var(--Night-Nude--2)",
120
- checkbox_default_bg: "var(--White-0)",
121
-
122
- checkbox_hovered_border: "var(--Dark-Nude-2)",
123
- checkbox_hovered_bg: "var(--Warm-Light--2)",
124
-
125
- checkbox_checked_border: "var(--Night-Nude-0)",
126
- checkbox_checked_bg: "var(--White-0)",
127
-
128
- checkbox_error_border: "var(--Error-Red-0)",
129
- checkbox_error_bg: "var(--Light-Gum--3)",
130
- checkbox_error_text: "var(--Error-Red-0)",
131
-
132
- checkbox_success_border: "var(--Success-Green-0)",
133
- checkbox_success_bg: "var(--Success-Green--1)",
134
- checkbox_success_text: "var(--Success-Green-1)",
135
-
136
- checkbox_disabled_border: "var(--Night-Nude--1)",
137
- checkbox_disabled_bg: "var(--White-0)",
138
- checkbox_disabled_text: "var(--Night-Nude--1)",
139
-
140
- checkbox_default_checkmark: "var(--Night-Nude-0)",
141
- checkbox_hovered_checkmark: "var(--Night-Nude-2)",
142
- checkbox_error_checkmark: "var(--Error-Red-0)",
143
- checkbox_success_checkmark: "var(--Success-Green-0)",
144
- checkbox_disabled_checkmark: "var(--Night-Nude--1)",
145
- /* End checkbox colors */
146
-
147
- /* Logo colors */
148
- logo_primary_fill: "var(--Dark-Nude-2)",
149
- /* End logo colors */
150
-
151
- /* Input colors */
152
- input_default_border: "var(--Dark-Nude--2)",
153
- input_default_bg: "var(--Light-Nude--4)",
154
- input_default_icon_color: "var(--Dark-Nude-2)",
155
- input_default_text: "var(--Dark-Nude-0)",
156
-
157
- input_active_border: "var(--Dark-Nude--2)",
158
- input_active_bg: "var(--Light-Nude--4)",
159
- input_active_icon_color: "var(--Dark-Nude-2)",
160
- input_active_text: "var(--Dark-Nude-3)",
161
-
162
- input_focused_border: "var(--Dark-Nude-2)",
163
- input_focused_bg: "var(--White-0)",
164
- input_focused_icon_color: "var(--Dark-Nude-2)",
165
- input_focused_text: "var(--Dark-Nude-2)",
166
-
167
- input_disabled_border: "var(--Dark-Nude-0)",
168
- input_disabled_bg: "var(--Light-Nude--4)",
169
- input_disabled_icon_color: "var(--Dark-Nude-0)",
170
- input_disabled_text: "var(--Dark-Nude-0)",
171
-
172
- input_error_border: "var(--Error-Red-0)",
173
- input_error_bg: "var(--Light-Gum--3)",
174
- input_error_icon_color: "var(--Error-Red-0)",
175
- input_error_text: "var(--Error-Red-0)",
176
-
177
- input_success_border: "var(--Success-Green-0)",
178
- input_success_bg: "var(--Success-Green--1)",
179
- input_success_icon_color: "var(--Success-Green-1)",
180
- input_success_text: "var(--Success-Green-1)",
181
-
182
- input_warning_border: "var(--Warning-Yellow-0)",
183
- input_warning_bg: "var(--Warm-Light--2)",
184
- input_warning_icon_color: "var(--Warm-Light-3)",
185
- input_warning_text: "var(--Dark-Nude-3)",
186
- /* End input colors */
187
-
188
- /* Select Item colors */
189
- select_item_text: "var(--Night-Nude-2)",
190
- select_item_default_bg: "var(--White-0)",
191
- select_item_hovered_bg: "var(--Dark-Nude--3)",
192
- select_item_selected_left_border: "var(--Night-Nude-2)",
193
- select_item_selected_bg: "var(--White-0)",
194
- /* End Select Item colors */
195
-
196
- /* Accordion colors */
197
- accordion_headline_color: "var(--Dark-Nude-2)",
198
- accordion_title_color: "var(--Dark-Nude-2)",
199
- accordion_content_color: "var(--Dark-Nude-3)",
200
- accordion_divider_color: "var(--Night-Nude--2)",
201
- accordion_icon_color: "var(--Dark-Nude-2)",
202
- /* End Accordion colors */
203
-
204
- /* Appointment card colors */
205
- appointment_card_header_default_bg: "var(--Dark-Nude--3)",
206
- appointment_card_header_text: "var(--Dark-Nude-3)",
207
- appointment_card_default_bg: "var(--White-0)",
208
- appointment_card_title: "var(--Dark-Nude-3)",
209
- appointment_card_text: "var(--Dark-Nude-2)",
210
- appointment_card_delimiter: "var(--Night-Nude--2)",
211
- /* End Appointment card colors */
212
-
213
- /* Progress bar colors */
214
- progress_bar_bg: "var(--Night-Nude--3)",
215
- progress_bar_fill: "var(--Dark-Nude-0)",
216
- /* End Progress bar colors */
217
-
218
- /* Navigation colors */
219
- nav_bg: "var(--Warm-Air--4)",
220
- nav_item_active_bg: "var(--Dark-Nude--2)",
221
- nav_item_text: "var(--Dark-Nude-2)",
222
- nav_item_icon: "var(--Dark-Nude-2)",
223
- /* End Navigation colors */
224
-
225
- /* Toggle colors */
226
- toggle_inactive_bg: "var(--Night-Nude--2)",
227
- toggle_active_bg: "var(--Dark-Nude-2)",
228
- toggle_text: "var(--Dark-Nude-2)",
229
- /* End Toggle colors */
230
-
231
- /* Loader colors */
232
- loader_fill: "var(--Dark-Nude-2)",
233
- loader_text: "var(--Dark-Nude-2)",
234
- /* End Loader colors */
235
-
236
- /* Focus colors */
237
- focus_ring_color: "var(--Dark-Nude-2)",
238
- /* End Focus colors */
239
-
240
- /* Card/List item colors */
241
- card_bg: "var(--White-0)",
242
- card_hover_bg: "var(--Dark-Nude--3)",
243
- card_border: "var(--Night-Nude--2)",
244
- card_divider: "var(--Night-Nude--2)",
245
- /* End Card/List item colors */
246
-
247
- /* Tile colors */
248
- tile_bg: "var(--White-0)",
249
- tile_border: "var(--Dark-Nude--2)",
250
- tile_hover_bg: "var(--Dark-Nude--4)",
251
- tile_pressed_bg: "var(--Dark-Nude--3)",
252
- tile_title_color: "var(--Dark-Nude-3)",
253
- tile_description_color: "var(--Dark-Nude-3)",
254
- tile_label_text_color: "var(--Dark-Nude-3)",
255
- tile_label_bg: "var(--Dark-Nude--2)",
256
- tile_icon_color: "var(--Dark-Nude-3)",
257
- tile_focus_ring: "var(--Dark-Nude-2)",
258
- tile_disabled_border: "var(--Night-Nude--2)",
259
- /* End Tile colors */
260
-
261
- /* Status badge colors */
262
- badge_available_border: "var(--Success-Green-0)",
263
- badge_available_text: "var(--Success-Green-0)",
264
- badge_available_subtext: "var(--Success-Green-1)",
265
- badge_unavailable_border: "var(--Error-Red-1)",
266
- badge_unavailable_text: "var(--Error-Red-0)",
267
- badge_unavailable_subtext: "var(--Error-Red-1)",
268
- /* End Status badge colors */
269
-
270
- /* Page state colors */
271
- state_success_title: "var(--Success-Green-0)",
272
- state_error_title: "var(--Error-Red-0)",
273
- state_info_icon: "var(--Dark-Nude-2)",
274
- state_info_text: "var(--Dark-Nude-2)",
275
- /* End Page state colors */
276
-
277
- /* Destructive action colors */
278
- action_destructive_icon: "var(--Power-Red-0)",
279
- action_destructive_text: "var(--Power-Red-0)",
280
- /* End Destructive action colors */
281
-
282
- /* Background colors */
283
- page_bg: "var(--Warm-Air--4)",
284
- section_bg: "var(--White-0)",
285
- /* End Background colors */
286
-
287
- /* Primary text and icon colors */
288
- icon_primary: "var(--Dark-Nude-2)",
289
- text_primary: "var(--Dark-Nude-2)",
290
- text_secondary: "var(--Dark-Nude-3)",
291
- divider_primary: "var(--Night-Nude--2)",
292
- border_primary: "var(--Dark-Nude-0)",
293
- /* End Primary text and icon colors */
294
-
295
- /* Slot grid colors */
296
- slot_header_bg: "var(--Night-Nude--3)",
297
- slot_button_bg: "var(--Warm-Air--4)",
298
- slot_button_hover_bg: "var(--Night-Nude--2)",
299
- /* End Slot grid colors */
300
-
301
- other_locations_banner_bg: "var(--Dark-Nude--3)",
302
- other_locations_bg: "var(--Night-Nude-2)",
303
-
304
- /* To be checked the validity of these colors */
305
- font_color: "!text-[var(--Dark-Nude-3)]",
306
- font_color_title: "!text-[var(--Dark-Nude-2)]",
307
- font_color_code: "var(--Dark-Nude-3)",
308
- font_color_title_code: "var(--Dark-Nude-2)",
309
- "border-b": "border-b-[var(--Night-Nude-0)]",
310
- bg_0: "bg-[var(--Warm-Air--4)]",
311
- font_family: "font-['arial']",
312
- btn_bg: "var(--Dark-Nude-2)",
313
- "border-color": "var(--Dark-Nude-0)",
314
- "slot-bg": "var(--Light-Nude-0)",
315
- "slot-text": "var(--Dark-Nude-3)",
316
- "divider-color": "divide-[var(--Dark-Nude-0)]",
317
- bg_logo_fill_color: "var(--Warm-Air--3)",
318
- bg_card_title: "bg-[var(--Dark-Nude--3)]",
319
- button_rounded: "0",
320
- /* End Colors*/
321
-
322
- /* Domain */
323
- domain: domainValue,
324
- };
325
- } else {
326
- return {
327
- "primary-color": "var(--Dental-Blue-0)",
328
-
329
- /* Button colors */
330
- button_default_bg: "var(--Dental-Blue-0)",
331
- button_pressed_bg: "var(--Dental-Blue-1)",
332
- button_hovered_bg: "var(--Dental-Blue--1)",
333
- button_disabled_bg: "var(--Soft-Concrete-1)",
334
- button_default_text: "var(--White-0)",
335
-
336
- button_outline_border: "var(--Dental-Blue-0)",
337
- button_outline_pressed_bg: "var(--Dental-Blue--5)",
338
- button_outline_hovered_bg: "var(--Dental-Blue--6)",
339
- button_outline_hovered_border: "var(--Dental-Blue-0)",
340
- button_outline_disabled_border: "var(--Soft-Concrete-2)",
341
- button_outline_default_text: "var(--Dental-Blue-0)",
342
- button_outline_disabled_text: "var(--Soft-Concrete-2)",
343
- /* End button colors */
344
-
345
- /* Checkbox colors */
346
- checkbox_default_text: "var(--Dental-Blue-0)",
347
-
348
- checkbox_defaut_border: "var(--Soft-Concrete-2)",
349
- checkbox_default_bg: "var(--White-0)",
350
-
351
- checkbox_hovered_border: "var(--Dental-Blue--1)",
352
- checkbox_hovered_bg: "var(--Dental-Light-Blue--2)",
353
-
354
- checkbox_checked_border: "var(--Dental-Blue-0)",
355
- checkbox_checked_bg: "var(--White-0)",
356
-
357
- checkbox_error_border: "var(--Error-Red-0)",
358
- checkbox_error_bg: "var(--Light-Gum--3)",
359
- checkbox_error_text: "var(--Error-Red-0)",
360
-
361
- checkbox_success_border: "var(--Success-Green-0)",
362
- checkbox_success_bg: "var(--Success-Green--1)",
363
- checkbox_success_text: "var(--Success-Green-1)",
364
-
365
- checkbox_disabled_border: "var(--Soft-Concrete-2)",
366
- checkbox_disabled_bg: "var(--White-0)",
367
- checkbox_disabled_text: "var(--Soft-Concrete-2)",
368
-
369
- checkbox_default_checkmark: "var(--Dental-Blue-0)",
370
- checkbox_hovered_checkmark: "var(--Dental-Blue--1)",
371
- checkbox_error_checkmark: "var(--Error-Red-0)",
372
- checkbox_success_checkmark: "var(--Success-Green-0)",
373
- checkbox_disabled_checkmark: "var(--Soft-Concrete-2)",
374
- /* End checkbox colors */
375
-
376
- /* Logo colors */
377
- logo_primary_fill: "var(--Dental-Blue-0)",
378
- /* End logo colors */
379
-
380
- /* Input colors */
381
- input_default_border: "var(--Soft-Concrete-1)",
382
- input_default_bg: "var(--White-0)",
383
- input_default_icon_color: "var(--Dental-Blue-0)",
384
- input_default_text: "var(--Dental-Blue--2)",
385
-
386
- input_active_border: "var(--Soft-Concrete-1)",
387
- input_active_bg: "var(--White-0)",
388
- input_active_icon_color: "var(--Dental-Blue-0)",
389
- input_active_text: "var(--Dental-Blue-0)",
390
-
391
- input_focused_border: "var(--Dental-Light-Blue-1)",
392
- input_focused_bg: "var(--White-0)",
393
- input_focused_icon_color: "var(--Dental-Blue-0)",
394
- input_focused_text: "var(--Dental-Blue-0)",
395
-
396
- input_disabled_border: "var(--Soft-Concrete-1)",
397
- input_disabled_bg: "var(--White-0)",
398
- input_disabled_icon_color: "var(--Soft-Concrete-1)",
399
- input_disabled_text: "var(--Soft-Concrete-1)",
400
-
401
- input_error_border: "var(--Error-Red-0)",
402
- input_error_bg: "var(--Light-Gum--3)",
403
- input_error_icon_color: "var(--Error-Red-0)",
404
- input_error_text: "var(--Error-Red-0)",
405
-
406
- input_success_border: "var(--Success-Green-0)",
407
- input_success_bg: "var(--Success-Green--1)",
408
- input_success_icon_color: "var(--Success-Green-1)",
409
- input_success_text: "var(--Success-Green-1)",
410
-
411
- input_warning_border: "var(--Warning-Yellow-0)",
412
- input_warning_bg: "var(--Warm-Light--2)",
413
- input_warning_icon_color: "var(--Warm-Light-3)",
414
- input_warning_text: "var(--Warm-Light-3)",
415
- /* End input colors */
416
-
417
- /* Select Item colors */
418
- select_item_text: "var(--Dental-Blue-0)",
419
- select_item_default_bg: "var(--White-0)",
420
- select_item_hovered_bg: "var(--Soft-Concrete-1)",
421
- select_item_selected_left_border: "var(--Dental-Blue-0)",
422
- select_item_selected_bg: "var(--White-0)",
423
- /* End Select Item colors */
424
-
425
- /* Accordion colors */
426
- accordion_headline_color: "var(--Dental-Blue-0)",
427
- accordion_title_color: "var(--Dental-Blue-0)",
428
- accordion_content_color: "var(--Dental-Blue-0)",
429
- accordion_divider_color: "var(--Soft-Concrete-1)",
430
- accordion_icon_color: "var(--Dental-Blue-0)",
431
- /* End Accordion colors */
432
-
433
- /* Appointment card colors */
434
- appointment_card_header_default_bg: "var(--Dental-Light-Blue--1)",
435
- appointment_card_header_text: "var(--Dental-Blue-0)",
436
- appointment_card_default_bg: "var(--White-0)",
437
- appointment_card_title: "var(--Dental-Blue-0)",
438
- appointment_card_text: "var(--Dental-Blue--2)",
439
- appointment_card_delimiter: "var(--Soft-Concrete-1)",
440
- /* End Appointment card colors */
441
-
442
- /* Progress bar colors */
443
- progress_bar_bg: "var(--Soft-Concrete-0)",
444
- progress_bar_fill: "var(--Dental-Light-Blue-0)",
445
- /* End Progress bar colors */
446
-
447
- /* Navigation colors */
448
- nav_bg: "var(--Dental-Light-Blue--3)",
449
- nav_item_active_bg: "var(--Dental-Light-Blue-1)",
450
- nav_item_text: "var(--Dental-Blue-0)",
451
- nav_item_icon: "var(--Dental-Blue-0)",
452
- /* End Navigation colors */
453
-
454
- /* Toggle colors */
455
- toggle_inactive_bg: "var(--Dental-Blue--5)",
456
- toggle_active_bg: "var(--Dental-Blue-0)",
457
- toggle_text: "var(--Dental-Blue-0)",
458
- /* End Toggle colors */
459
-
460
- /* Loader colors */
461
- loader_fill: "var(--Dental-Blue-0)",
462
- loader_text: "var(--Dental-Blue-0)",
463
- /* End Loader colors */
464
-
465
- /* Focus colors */
466
- focus_ring_color: "var(--Dental-Blue-0)",
467
- /* End Focus colors */
468
-
469
- /* Card/List item colors */
470
- card_bg: "var(--White-0)",
471
- card_hover_bg: "var(--Dental-Blue--6)",
472
- card_border: "var(--Soft-Concrete-1)",
473
- card_divider: "var(--Dental-Blue--4)",
474
- /* End Card/List item colors */
475
-
476
- /* Tile colors */
477
- tile_bg: "var(--White-0)",
478
- tile_border: "var(--Soft-Concrete-2)",
479
- tile_hover_bg: "var(--Dental-Blue--6)",
480
- tile_pressed_bg: "var(--Dental-Blue--5)",
481
- tile_title_color: "var(--Dental-Blue-0)",
482
- tile_description_color: "var(--Dental-Blue-0)",
483
- tile_label_text_color: "var(--Dental-Blue-0)",
484
- tile_label_bg: "var(--Dental-Light-Blue-0)",
485
- tile_icon_color: "var(--Dental-Blue-0)",
486
- tile_focus_ring: "var(--Dental-Blue-0)",
487
- tile_disabled_border: "var(--Soft-Concrete-2)",
488
- /* End Tile colors */
489
-
490
- /* Status badge colors */
491
- badge_available_border: "var(--Success-Green-0)",
492
- badge_available_text: "var(--Success-Green-0)",
493
- badge_available_subtext: "var(--Success-Green-1)",
494
- badge_unavailable_border: "var(--Error-Red-1)",
495
- badge_unavailable_text: "var(--Error-Red-0)",
496
- badge_unavailable_subtext: "var(--Error-Red-1)",
497
- /* End Status badge colors */
498
-
499
- /* Page state colors */
500
- state_success_title: "var(--Success-Green-0)",
501
- state_error_title: "var(--Error-Red-0)",
502
- state_info_icon: "var(--Dental-Blue-0)",
503
- state_info_text: "var(--Dental-Blue-0)",
504
- /* End Page state colors */
505
-
506
- /* Destructive action colors */
507
- action_destructive_icon: "var(--Power-Red-0)",
508
- action_destructive_text: "var(--Power-Red-0)",
509
- /* End Destructive action colors */
510
-
511
- /* Background colors */
512
- page_bg: "var(--Dental-Light-Blue--3)",
513
- section_bg: "var(--White-0)",
514
- /* End Background colors */
515
-
516
- /* Primary text and icon colors */
517
- icon_primary: "var(--Dental-Blue-0)",
518
- text_primary: "var(--Dental-Blue-0)",
519
- text_secondary: "var(--Dental-Blue--2)",
520
- divider_primary: "var(--Dental-Blue--4)",
521
- border_primary: "var(--Dental-Blue-0)",
522
- /* End Primary text and icon colors */
523
-
524
- /* Slot grid colors */
525
- slot_header_bg: "var(--Dental-Light-Blue--2)",
526
- slot_button_bg: "var(--Dental-Light-Blue--1)",
527
- slot_button_hover_bg: "var(--Dental-Light-Blue-0)",
528
- /* End Slot grid colors */
529
-
530
- other_locations_banner_bg: "var(--Light-Gum--1)",
531
- other_locations_bg: "var(--Dental-Air-0)",
532
-
533
- /* To be checked the validity of these colors */
534
- "border-color": "var(--Dental-Blue-0)",
535
- font_color: "!text-[var(--Dental-Blue-1)]",
536
- font_color_title: "!text-[var(--Dental-Blue-0)]",
537
- btn_bg: "var(--Dental-Blue-0)",
538
- "border-b": "border-b-[var(--Dental-Blue-0)]",
539
- font_color_code: "var(--Dental-Blue-1)",
540
- font_color_title_code: "var(--Dental-Blue-0)",
541
- "slot-bg": "var(--Dental-Light-Blue--1)",
542
- "slot-text": "var(--Dental-Blue-0)",
543
- bg_0: "bg-[var(--Dental-Light-Blue--3)]",
544
- bg_logo_fill_color: "white",
545
- button_rounded: "lg",
546
- bg_card_title: "bg-[var(--Dental-Blue--1)]",
547
- "divider-color": "divide-[var(--Dental-Blue-0)]",
548
- /* End Colors*/
549
-
550
- /* Domain */
551
- domain: domainValue,
552
- };
553
- }
554
- };
555
-
556
- let siteColors: any = getColorsForDomain(domain.value);
557
-
558
- // Set CSS variables on document root so base.css can use them
559
- // This ensures that teleported content (Dialog/Modal) also inherits these colors
560
- if (typeof document !== 'undefined') {
561
- const root = document.documentElement;
562
-
563
- // Primary color (fallback)
564
- root.style.setProperty('--primary-color', siteColors["primary-color"]);
565
-
566
- // Heading colors - h1 and h2 use title color, h3-h6 use regular color
567
- root.style.setProperty('--h1-color', siteColors['font_color_title_code']);
568
- root.style.setProperty('--h2-color', siteColors['font_color_title_code']);
569
- root.style.setProperty('--h3-color', siteColors['font_color_code']);
570
- root.style.setProperty('--h4-color', siteColors['font_color_code']);
571
- root.style.setProperty('--h5-color', siteColors['font_color_code']);
572
- root.style.setProperty('--h6-color', siteColors['font_color_code']);
573
-
574
- // Paragraph color
575
- root.style.setProperty('--p-color', siteColors['font_color_code']);
576
-
577
- // Input colors
578
- root.style.setProperty('--input-default-border', siteColors['input_default_border']);
579
- root.style.setProperty('--input-default-bg', siteColors['input_default_bg']);
580
- root.style.setProperty('--input-default-icon-color', siteColors['input_default_icon_color']);
581
- root.style.setProperty('--input-default-text', siteColors['input_default_text']);
582
-
583
- root.style.setProperty('--input-active-border', siteColors['input_active_border']);
584
- root.style.setProperty('--input-active-bg', siteColors['input_active_bg']);
585
- root.style.setProperty('--input-active-icon-color', siteColors['input_active_icon_color']);
586
- root.style.setProperty('--input-active-text', siteColors['input_active_text']);
587
-
588
- root.style.setProperty('--input-focused-border', siteColors['input_focused_border']);
589
- root.style.setProperty('--input-focused-bg', siteColors['input_focused_bg']);
590
- root.style.setProperty('--input-focused-icon-color', siteColors['input_focused_icon_color']);
591
- root.style.setProperty('--input-focused-text', siteColors['input_focused_text']);
592
-
593
- root.style.setProperty('--input-disabled-border', siteColors['input_disabled_border']);
594
- root.style.setProperty('--input-disabled-bg', siteColors['input_disabled_bg']);
595
- root.style.setProperty('--input-disabled-icon-color', siteColors['input_disabled_icon_color']);
596
- root.style.setProperty('--input-disabled-text', siteColors['input_disabled_text']);
597
-
598
- root.style.setProperty('--input-error-border', siteColors['input_error_border']);
599
- root.style.setProperty('--input-error-bg', siteColors['input_error_bg']);
600
- root.style.setProperty('--input-error-icon-color', siteColors['input_error_icon_color']);
601
- root.style.setProperty('--input-error-text', siteColors['input_error_text']);
602
-
603
- root.style.setProperty('--input-success-border', siteColors['input_success_border']);
604
- root.style.setProperty('--input-success-bg', siteColors['input_success_bg']);
605
- root.style.setProperty('--input-success-icon-color', siteColors['input_success_icon_color']);
606
- root.style.setProperty('--input-success-text', siteColors['input_success_text']);
607
-
608
- root.style.setProperty('--input-warning-border', siteColors['input_warning_border']);
609
- root.style.setProperty('--input-warning-bg', siteColors['input_warning_bg']);
610
- root.style.setProperty('--input-warning-icon-color', siteColors['input_warning_icon_color']);
611
- root.style.setProperty('--input-warning-text', siteColors['input_warning_text']);
612
-
613
- // Accordion colors
614
- root.style.setProperty('--accordion-headline-color', siteColors['accordion_headline_color']);
615
- root.style.setProperty('--accordion-title-color', siteColors['accordion_title_color']);
616
- root.style.setProperty('--accordion-content-color', siteColors['accordion_content_color']);
617
- root.style.setProperty('--accordion-divider-color', siteColors['accordion_divider_color']);
618
- root.style.setProperty('--accordion-icon-color', siteColors['accordion_icon_color']);
619
-
620
- // Appointment card colors
621
- root.style.setProperty('--appointment_card_header_default_bg', siteColors['appointment_card_header_default_bg']);
622
- root.style.setProperty('--appointment_card_header_text', siteColors['appointment_card_header_text']);
623
- root.style.setProperty('--appointment_card_default_bg', siteColors['appointment_card_default_bg']);
624
- root.style.setProperty('--appointment_card_title', siteColors['appointment_card_title']);
625
- root.style.setProperty('--appointment_card_text', siteColors['appointment_card_text']);
626
- root.style.setProperty('--appointment_card_delimiter', siteColors['appointment_card_delimiter']);
627
-
628
- // Progress bar colors
629
- root.style.setProperty('--progress-bar-bg', siteColors['progress_bar_bg']);
630
- root.style.setProperty('--progress-bar-fill', siteColors['progress_bar_fill']);
631
-
632
- // Navigation colors
633
- root.style.setProperty('--nav-bg', siteColors['nav_bg']);
634
- root.style.setProperty('--nav-item-active-bg', siteColors['nav_item_active_bg']);
635
- root.style.setProperty('--nav-item-text', siteColors['nav_item_text']);
636
- root.style.setProperty('--nav-item-icon', siteColors['nav_item_icon']);
637
-
638
- // Toggle colors
639
- root.style.setProperty('--toggle-inactive-bg', siteColors['toggle_inactive_bg']);
640
- root.style.setProperty('--toggle-active-bg', siteColors['toggle_active_bg']);
641
- root.style.setProperty('--toggle-text', siteColors['toggle_text']);
642
-
643
- // Loader colors
644
- root.style.setProperty('--loader-fill', siteColors['loader_fill']);
645
- root.style.setProperty('--loader-text', siteColors['loader_text']);
646
-
647
- // Focus colors
648
- root.style.setProperty('--focus-ring-color', siteColors['focus_ring_color']);
649
-
650
- // Card/List item colors
651
- root.style.setProperty('--card-bg', siteColors['card_bg']);
652
- root.style.setProperty('--card-hover-bg', siteColors['card_hover_bg']);
653
- root.style.setProperty('--card-border', siteColors['card_border']);
654
- root.style.setProperty('--card-divider', siteColors['card_divider']);
655
-
656
- // Tile colors
657
- root.style.setProperty('--tile-bg', siteColors['tile_bg']);
658
- root.style.setProperty('--tile-border', siteColors['tile_border']);
659
- root.style.setProperty('--tile-hover-bg', siteColors['tile_hover_bg']);
660
- root.style.setProperty('--tile-pressed-bg', siteColors['tile_pressed_bg']);
661
- root.style.setProperty('--tile-title-color', siteColors['tile_title_color']);
662
- root.style.setProperty('--tile-description-color', siteColors['tile_description_color']);
663
- root.style.setProperty('--tile-label-text-color', siteColors['tile_label_text_color']);
664
- root.style.setProperty('--tile-label-bg', siteColors['tile_label_bg']);
665
- root.style.setProperty('--tile-icon-color', siteColors['tile_icon_color']);
666
- root.style.setProperty('--tile-focus-ring', siteColors['tile_focus_ring']);
667
- root.style.setProperty('--tile-disabled-border', siteColors['tile_disabled_border']);
668
-
669
- // Status badge colors
670
- root.style.setProperty('--badge-available-border', siteColors['badge_available_border']);
671
- root.style.setProperty('--badge-available-text', siteColors['badge_available_text']);
672
- root.style.setProperty('--badge-available-subtext', siteColors['badge_available_subtext']);
673
- root.style.setProperty('--badge-unavailable-border', siteColors['badge_unavailable_border']);
674
- root.style.setProperty('--badge-unavailable-text', siteColors['badge_unavailable_text']);
675
- root.style.setProperty('--badge-unavailable-subtext', siteColors['badge_unavailable_subtext']);
676
-
677
- // Page state colors
678
- root.style.setProperty('--state-success-title', siteColors['state_success_title']);
679
- root.style.setProperty('--state-error-title', siteColors['state_error_title']);
680
- root.style.setProperty('--state-info-icon', siteColors['state_info_icon']);
681
- root.style.setProperty('--state-info-text', siteColors['state_info_text']);
682
-
683
- // Destructive action colors
684
- root.style.setProperty('--action-destructive-icon', siteColors['action_destructive_icon']);
685
- root.style.setProperty('--action-destructive-text', siteColors['action_destructive_text']);
686
-
687
- // Background colors
688
- root.style.setProperty('--page-bg', siteColors['page_bg']);
689
- root.style.setProperty('--section-bg', siteColors['section_bg']);
690
-
691
- // Primary text and icon colors
692
- root.style.setProperty('--icon-primary', siteColors['icon_primary']);
693
- root.style.setProperty('--text-primary', siteColors['text_primary']);
694
- root.style.setProperty('--text-secondary', siteColors['text_secondary']);
695
- root.style.setProperty('--divider-primary', siteColors['divider_primary']);
696
- root.style.setProperty('--border-primary', siteColors['border_primary']);
697
-
698
- // Slot grid colors
699
- root.style.setProperty('--slot-header-bg', siteColors['slot_header_bg']);
700
- root.style.setProperty('--slot-button-bg', siteColors['slot_button_bg']);
701
- root.style.setProperty('--slot-button-hover-bg', siteColors['slot_button_hover_bg']);
702
-
703
- root.style.setProperty('--other-locations-banner-bg', siteColors['other_locations_banner_bg']);
704
- root.style.setProperty('--other-locations-bg', siteColors['other_locations_bg']);
705
- }
706
-
707
- // Function to set domain for testing purposes
708
- const setTestingDomain = (newDomain: 'domain-cocoon' | 'domain-dental') => {
709
- if (typeof window !== 'undefined') {
710
- localStorage.setItem('testDomain', newDomain);
711
- window.location.reload();
712
- }
713
- };
714
-
715
- // Function to clear testing override
716
- const clearTestingDomain = () => {
717
- if (typeof window !== 'undefined') {
718
- localStorage.removeItem('testDomain');
719
- window.location.reload();
720
- }
721
- };
722
-
723
- export {
724
- siteColors,
725
- getDomainName,
726
- appointmentTypes,
727
- domain,
728
- setTestingDomain,
729
- clearTestingDomain,
730
- getColorsForDomain
731
- };
732
-
733
- // Anamnese utilities
1
+ import { se } from "date-fns/locale";
2
+ import { ref } from "vue";
3
+
4
+ const appointmentTypes = [
5
+ {
6
+ id: 0,
7
+ icon: 'simple',
8
+ title: 'Simple',
9
+ content: '1 Patient <br>1 Behandler <br>1 Behandlungen',
10
+ description: 'Hier steht Text zu der Termin option die ungefähr so lang ist.',
11
+ additionalClass: "hidden"
12
+ },
13
+ {
14
+ id: 1,
15
+ icon: 'multitermin',
16
+ title: 'Multitermin',
17
+ content: '1 Patient <br>1 Behandler <br>2 Behandlungen',
18
+ description: 'Hier steht Text zu der Termin option die ungefähr so lang ist.',
19
+ additionalClass: ""
20
+ },
21
+ {
22
+ id: 2,
23
+ icon: 'supervision',
24
+ title: 'Supervision',
25
+ content: '1 Patient <br>2 Behandler <br> 1 Behandlungen',
26
+ description: 'Hier steht Text zu der Termin option die ungefähr so lang ist.',
27
+ additionalClass: ""
28
+ },
29
+ {
30
+ id: 3,
31
+ icon: 'doppeltermin',
32
+ title: 'Doppeltermin',
33
+ content: '2 Patienten <br> 1 Behandler <br> 1 Behandlungen',
34
+ description: 'Hier steht Text zu der Termin option die ungefähr so lang ist.',
35
+ additionalClass: ""
36
+ },
37
+ {
38
+ id: 4,
39
+ icon: 'kombitermin',
40
+ title: 'Kombitermin',
41
+ content: '1 Patient <br> 2 Behandler <br> 2 Behandlungen',
42
+ description: 'Hier steht Text zu der Termin option die ungefähr so lang ist.',
43
+ additionalClass: ""
44
+ },
45
+ ];
46
+
47
+ const getDomainName = () => {
48
+ const host = window.location.hostname;
49
+ const m = host.match(/([^.]+)\.app/);
50
+ return m?.[1] ?? null;
51
+ }
52
+
53
+ const generateDynamicDomain = () => {
54
+ const protocol = window.location.protocol; // e.g., "http:"
55
+ const host = window.location.host; // e.g., "localhost:3000"
56
+ return `${protocol}//${host}`; // Combine protocol and host
57
+ };
58
+
59
+ // Check for testing override in localStorage or URL parameter
60
+ const getTestingDomainOverride = () => {
61
+ // Check URL parameter first
62
+ if (typeof window !== 'undefined') {
63
+ const urlParams = new URLSearchParams(window.location.search);
64
+ const urlDomain = urlParams.get('testDomain');
65
+ if (urlDomain === 'domain-cocoon' || urlDomain === 'domain-dental') {
66
+ return urlDomain;
67
+ }
68
+
69
+ // Check localStorage second
70
+ const storedDomain = localStorage.getItem('testDomain');
71
+ if (storedDomain === 'domain-cocoon' || storedDomain === 'domain-dental') {
72
+ return storedDomain;
73
+ }
74
+ }
75
+ return null;
76
+ };
77
+
78
+ const domain: any = ref(null);
79
+ const testingOverride = getTestingDomainOverride();
80
+
81
+ if (testingOverride) {
82
+ // Use testing override if available
83
+ domain.value = testingOverride;
84
+ } else {
85
+ // Use actual domain detection
86
+ const currentDomain = generateDynamicDomain().toLowerCase();
87
+ if (currentDomain.includes("white-cocoon")) {
88
+ domain.value = "domain-cocoon";
89
+ } else {
90
+ domain.value = "domain-dental";
91
+ }
92
+ }
93
+
94
+ // Function to get colors for a specific domain
95
+ const getColorsForDomain = (domainValue: string) => {
96
+ if (domainValue === "domain-cocoon") {
97
+ return {
98
+ "primary-color": "var(--Dark-Nude-2)",
99
+
100
+ /* Button colors */
101
+ button_default_bg: "var(--Dark-Nude-2)",
102
+ button_pressed_bg: "var(--Dark-Nude-3)",
103
+ button_hovered_bg: "var(--Night-Nude--1)",
104
+ button_disabled_bg: "var(--Night-Nude--3)",
105
+ button_default_text: "var(--White-0)",
106
+
107
+ button_outline_border: "var(--Dark-Nude-3)",
108
+ button_outline_pressed_bg: "var(--Dark-Nude-2)",
109
+ button_outline_hovered_bg: "var(--Night-Nude-2)",
110
+ button_outline_hovered_border: "var(--Night-Nude-2)",
111
+ button_outline_disabled_border: "var(--Night-Nude--1)",
112
+ button_outline_default_text: "var(--Dark-Nude-3)",
113
+ button_outline_disabled_text: "var(--Night-Nude--1)",
114
+ /* End button colors */
115
+
116
+ /* Checkbox colors */
117
+ checkbox_default_text: "var(--Dark-Nude-3)",
118
+
119
+ checkbox_defaut_border: "var(--Night-Nude--2)",
120
+ checkbox_default_bg: "var(--White-0)",
121
+
122
+ checkbox_hovered_border: "var(--Dark-Nude-2)",
123
+ checkbox_hovered_bg: "var(--Warm-Light--2)",
124
+
125
+ checkbox_checked_border: "var(--Night-Nude-0)",
126
+ checkbox_checked_bg: "var(--White-0)",
127
+
128
+ checkbox_error_border: "var(--Error-Red-0)",
129
+ checkbox_error_bg: "var(--Light-Gum--3)",
130
+ checkbox_error_text: "var(--Error-Red-0)",
131
+
132
+ checkbox_success_border: "var(--Success-Green-0)",
133
+ checkbox_success_bg: "var(--Success-Green--1)",
134
+ checkbox_success_text: "var(--Success-Green-1)",
135
+
136
+ checkbox_disabled_border: "var(--Night-Nude--1)",
137
+ checkbox_disabled_bg: "var(--White-0)",
138
+ checkbox_disabled_text: "var(--Night-Nude--1)",
139
+
140
+ checkbox_default_checkmark: "var(--Night-Nude-0)",
141
+ checkbox_hovered_checkmark: "var(--Night-Nude-2)",
142
+ checkbox_error_checkmark: "var(--Error-Red-0)",
143
+ checkbox_success_checkmark: "var(--Success-Green-0)",
144
+ checkbox_disabled_checkmark: "var(--Night-Nude--1)",
145
+ /* End checkbox colors */
146
+
147
+ /* Logo colors */
148
+ logo_primary_fill: "var(--Dark-Nude-2)",
149
+ /* End logo colors */
150
+
151
+ /* Input colors */
152
+ input_default_border: "var(--Dark-Nude--2)",
153
+ input_default_bg: "var(--Light-Nude--4)",
154
+ input_default_icon_color: "var(--Dark-Nude-2)",
155
+ input_default_text: "var(--Dark-Nude-0)",
156
+
157
+ input_active_border: "var(--Dark-Nude--2)",
158
+ input_active_bg: "var(--Light-Nude--4)",
159
+ input_active_icon_color: "var(--Dark-Nude-2)",
160
+ input_active_text: "var(--Dark-Nude-3)",
161
+
162
+ input_focused_border: "var(--Dark-Nude-2)",
163
+ input_focused_bg: "var(--White-0)",
164
+ input_focused_icon_color: "var(--Dark-Nude-2)",
165
+ input_focused_text: "var(--Dark-Nude-2)",
166
+
167
+ input_disabled_border: "var(--Dark-Nude-0)",
168
+ input_disabled_bg: "var(--Light-Nude--4)",
169
+ input_disabled_icon_color: "var(--Dark-Nude-0)",
170
+ input_disabled_text: "var(--Dark-Nude-0)",
171
+
172
+ input_error_border: "var(--Error-Red-0)",
173
+ input_error_bg: "var(--Light-Gum--3)",
174
+ input_error_icon_color: "var(--Error-Red-0)",
175
+ input_error_text: "var(--Error-Red-0)",
176
+
177
+ input_success_border: "var(--Success-Green-0)",
178
+ input_success_bg: "var(--Success-Green--1)",
179
+ input_success_icon_color: "var(--Success-Green-1)",
180
+ input_success_text: "var(--Success-Green-1)",
181
+
182
+ input_warning_border: "var(--Warning-Yellow-0)",
183
+ input_warning_bg: "var(--Warm-Light--2)",
184
+ input_warning_icon_color: "var(--Warm-Light-3)",
185
+ input_warning_text: "var(--Dark-Nude-3)",
186
+ /* End input colors */
187
+
188
+ /* Select Item colors */
189
+ select_item_text: "var(--Night-Nude-2)",
190
+ select_item_default_bg: "var(--White-0)",
191
+ select_item_hovered_bg: "var(--Dark-Nude--3)",
192
+ select_item_selected_left_border: "var(--Night-Nude-2)",
193
+ select_item_selected_bg: "var(--White-0)",
194
+ /* End Select Item colors */
195
+
196
+ /* Accordion colors */
197
+ accordion_headline_color: "var(--Dark-Nude-2)",
198
+ accordion_title_color: "var(--Dark-Nude-2)",
199
+ accordion_content_color: "var(--Dark-Nude-3)",
200
+ accordion_divider_color: "var(--Night-Nude--2)",
201
+ accordion_icon_color: "var(--Dark-Nude-2)",
202
+ /* End Accordion colors */
203
+
204
+ /* Appointment card colors */
205
+ appointment_card_header_default_bg: "var(--Dark-Nude--3)",
206
+ appointment_card_header_text: "var(--Dark-Nude-3)",
207
+ appointment_card_default_bg: "var(--White-0)",
208
+ appointment_card_title: "var(--Dark-Nude-3)",
209
+ appointment_card_text: "var(--Dark-Nude-2)",
210
+ appointment_card_delimiter: "var(--Night-Nude--2)",
211
+ /* End Appointment card colors */
212
+
213
+ /* Progress bar colors */
214
+ progress_bar_bg: "var(--Night-Nude--3)",
215
+ progress_bar_fill: "var(--Dark-Nude-0)",
216
+ /* End Progress bar colors */
217
+
218
+ /* Navigation colors */
219
+ nav_bg: "var(--Warm-Air--4)",
220
+ nav_item_active_bg: "var(--Dark-Nude--2)",
221
+ nav_item_text: "var(--Dark-Nude-2)",
222
+ nav_item_icon: "var(--Dark-Nude-2)",
223
+ /* End Navigation colors */
224
+
225
+ /* Toggle colors */
226
+ toggle_inactive_bg: "var(--Night-Nude--2)",
227
+ toggle_active_bg: "var(--Dark-Nude-2)",
228
+ toggle_text: "var(--Dark-Nude-2)",
229
+ /* End Toggle colors */
230
+
231
+ /* Loader colors */
232
+ loader_fill: "var(--Dark-Nude-2)",
233
+ loader_text: "var(--Dark-Nude-2)",
234
+ /* End Loader colors */
235
+
236
+ /* Focus colors */
237
+ focus_ring_color: "var(--Dark-Nude-2)",
238
+ /* End Focus colors */
239
+
240
+ /* Card/List item colors */
241
+ card_bg: "var(--White-0)",
242
+ card_hover_bg: "var(--Dark-Nude--3)",
243
+ card_border: "var(--Night-Nude--2)",
244
+ card_divider: "var(--Night-Nude--2)",
245
+ /* End Card/List item colors */
246
+
247
+ /* Tile colors */
248
+ tile_bg: "var(--White-0)",
249
+ tile_border: "var(--Dark-Nude--2)",
250
+ tile_hover_bg: "var(--Dark-Nude--4)",
251
+ tile_pressed_bg: "var(--Dark-Nude--3)",
252
+ tile_title_color: "var(--Dark-Nude-3)",
253
+ tile_description_color: "var(--Dark-Nude-3)",
254
+ tile_label_text_color: "var(--Dark-Nude-3)",
255
+ tile_label_bg: "var(--Dark-Nude--2)",
256
+ tile_icon_color: "var(--Dark-Nude-3)",
257
+ tile_focus_ring: "var(--Dark-Nude-2)",
258
+ tile_disabled_border: "var(--Night-Nude--2)",
259
+ /* End Tile colors */
260
+
261
+ /* Status badge colors */
262
+ badge_available_border: "var(--Success-Green-0)",
263
+ badge_available_text: "var(--Success-Green-0)",
264
+ badge_available_subtext: "var(--Success-Green-1)",
265
+ badge_unavailable_border: "var(--Error-Red-1)",
266
+ badge_unavailable_text: "var(--Error-Red-0)",
267
+ badge_unavailable_subtext: "var(--Error-Red-1)",
268
+ /* End Status badge colors */
269
+
270
+ /* Page state colors */
271
+ state_success_title: "var(--Success-Green-0)",
272
+ state_error_title: "var(--Error-Red-0)",
273
+ state_info_icon: "var(--Dark-Nude-2)",
274
+ state_info_text: "var(--Dark-Nude-2)",
275
+ /* End Page state colors */
276
+
277
+ /* Destructive action colors */
278
+ action_destructive_icon: "var(--Power-Red-0)",
279
+ action_destructive_text: "var(--Power-Red-0)",
280
+ /* End Destructive action colors */
281
+
282
+ /* Background colors */
283
+ page_bg: "var(--Warm-Air--4)",
284
+ section_bg: "var(--White-0)",
285
+ /* End Background colors */
286
+
287
+ /* Primary text and icon colors */
288
+ icon_primary: "var(--Dark-Nude-2)",
289
+ text_primary: "var(--Dark-Nude-2)",
290
+ text_secondary: "var(--Dark-Nude-3)",
291
+ divider_primary: "var(--Night-Nude--2)",
292
+ border_primary: "var(--Dark-Nude-0)",
293
+ /* End Primary text and icon colors */
294
+
295
+ /* Slot grid colors */
296
+ slot_header_bg: "var(--Night-Nude--3)",
297
+ slot_button_bg: "var(--Warm-Air--4)",
298
+ slot_button_hover_bg: "var(--Night-Nude--2)",
299
+ /* End Slot grid colors */
300
+
301
+ other_locations_banner_bg: "var(--Dark-Nude--3)",
302
+ other_locations_bg: "var(--Night-Nude-2)",
303
+
304
+ /* To be checked the validity of these colors */
305
+ font_color: "!text-[var(--Dark-Nude-3)]",
306
+ font_color_title: "!text-[var(--Dark-Nude-2)]",
307
+ font_color_code: "var(--Dark-Nude-3)",
308
+ font_color_title_code: "var(--Dark-Nude-2)",
309
+ "border-b": "border-b-[var(--Night-Nude-0)]",
310
+ bg_0: "bg-[var(--Warm-Air--4)]",
311
+ font_family: "font-['arial']",
312
+ btn_bg: "var(--Dark-Nude-2)",
313
+ "border-color": "var(--Dark-Nude-0)",
314
+ "slot-bg": "var(--Light-Nude-0)",
315
+ "slot-text": "var(--Dark-Nude-3)",
316
+ "divider-color": "divide-[var(--Dark-Nude-0)]",
317
+ bg_logo_fill_color: "var(--Warm-Air--3)",
318
+ bg_card_title: "bg-[var(--Dark-Nude--3)]",
319
+ button_rounded: "0",
320
+ /* End Colors*/
321
+
322
+ /* Domain */
323
+ domain: domainValue,
324
+ };
325
+ } else {
326
+ return {
327
+ "primary-color": "var(--Dental-Blue-0)",
328
+
329
+ /* Button colors */
330
+ button_default_bg: "var(--Dental-Blue-0)",
331
+ button_pressed_bg: "var(--Dental-Blue-1)",
332
+ button_hovered_bg: "var(--Dental-Blue--1)",
333
+ button_disabled_bg: "var(--Soft-Concrete-1)",
334
+ button_default_text: "var(--White-0)",
335
+
336
+ button_outline_border: "var(--Dental-Blue-0)",
337
+ button_outline_pressed_bg: "var(--Dental-Blue--5)",
338
+ button_outline_hovered_bg: "var(--Dental-Blue--6)",
339
+ button_outline_hovered_border: "var(--Dental-Blue-0)",
340
+ button_outline_disabled_border: "var(--Soft-Concrete-2)",
341
+ button_outline_default_text: "var(--Dental-Blue-0)",
342
+ button_outline_disabled_text: "var(--Soft-Concrete-2)",
343
+ /* End button colors */
344
+
345
+ /* Checkbox colors */
346
+ checkbox_default_text: "var(--Dental-Blue-0)",
347
+
348
+ checkbox_defaut_border: "var(--Soft-Concrete-2)",
349
+ checkbox_default_bg: "var(--White-0)",
350
+
351
+ checkbox_hovered_border: "var(--Dental-Blue--1)",
352
+ checkbox_hovered_bg: "var(--Dental-Light-Blue--2)",
353
+
354
+ checkbox_checked_border: "var(--Dental-Blue-0)",
355
+ checkbox_checked_bg: "var(--White-0)",
356
+
357
+ checkbox_error_border: "var(--Error-Red-0)",
358
+ checkbox_error_bg: "var(--Light-Gum--3)",
359
+ checkbox_error_text: "var(--Error-Red-0)",
360
+
361
+ checkbox_success_border: "var(--Success-Green-0)",
362
+ checkbox_success_bg: "var(--Success-Green--1)",
363
+ checkbox_success_text: "var(--Success-Green-1)",
364
+
365
+ checkbox_disabled_border: "var(--Soft-Concrete-2)",
366
+ checkbox_disabled_bg: "var(--White-0)",
367
+ checkbox_disabled_text: "var(--Soft-Concrete-2)",
368
+
369
+ checkbox_default_checkmark: "var(--Dental-Blue-0)",
370
+ checkbox_hovered_checkmark: "var(--Dental-Blue--1)",
371
+ checkbox_error_checkmark: "var(--Error-Red-0)",
372
+ checkbox_success_checkmark: "var(--Success-Green-0)",
373
+ checkbox_disabled_checkmark: "var(--Soft-Concrete-2)",
374
+ /* End checkbox colors */
375
+
376
+ /* Logo colors */
377
+ logo_primary_fill: "var(--Dental-Blue-0)",
378
+ /* End logo colors */
379
+
380
+ /* Input colors */
381
+ input_default_border: "var(--Soft-Concrete-1)",
382
+ input_default_bg: "var(--White-0)",
383
+ input_default_icon_color: "var(--Dental-Blue-0)",
384
+ input_default_text: "var(--Dental-Blue--2)",
385
+
386
+ input_active_border: "var(--Soft-Concrete-1)",
387
+ input_active_bg: "var(--White-0)",
388
+ input_active_icon_color: "var(--Dental-Blue-0)",
389
+ input_active_text: "var(--Dental-Blue-0)",
390
+
391
+ input_focused_border: "var(--Dental-Light-Blue-1)",
392
+ input_focused_bg: "var(--White-0)",
393
+ input_focused_icon_color: "var(--Dental-Blue-0)",
394
+ input_focused_text: "var(--Dental-Blue-0)",
395
+
396
+ input_disabled_border: "var(--Soft-Concrete-1)",
397
+ input_disabled_bg: "var(--White-0)",
398
+ input_disabled_icon_color: "var(--Soft-Concrete-1)",
399
+ input_disabled_text: "var(--Soft-Concrete-1)",
400
+
401
+ input_error_border: "var(--Error-Red-0)",
402
+ input_error_bg: "var(--Light-Gum--3)",
403
+ input_error_icon_color: "var(--Error-Red-0)",
404
+ input_error_text: "var(--Error-Red-0)",
405
+
406
+ input_success_border: "var(--Success-Green-0)",
407
+ input_success_bg: "var(--Success-Green--1)",
408
+ input_success_icon_color: "var(--Success-Green-1)",
409
+ input_success_text: "var(--Success-Green-1)",
410
+
411
+ input_warning_border: "var(--Warning-Yellow-0)",
412
+ input_warning_bg: "var(--Warm-Light--2)",
413
+ input_warning_icon_color: "var(--Warm-Light-3)",
414
+ input_warning_text: "var(--Warm-Light-3)",
415
+ /* End input colors */
416
+
417
+ /* Select Item colors */
418
+ select_item_text: "var(--Dental-Blue-0)",
419
+ select_item_default_bg: "var(--White-0)",
420
+ select_item_hovered_bg: "var(--Soft-Concrete-1)",
421
+ select_item_selected_left_border: "var(--Dental-Blue-0)",
422
+ select_item_selected_bg: "var(--White-0)",
423
+ /* End Select Item colors */
424
+
425
+ /* Accordion colors */
426
+ accordion_headline_color: "var(--Dental-Blue-0)",
427
+ accordion_title_color: "var(--Dental-Blue-0)",
428
+ accordion_content_color: "var(--Dental-Blue-0)",
429
+ accordion_divider_color: "var(--Soft-Concrete-1)",
430
+ accordion_icon_color: "var(--Dental-Blue-0)",
431
+ /* End Accordion colors */
432
+
433
+ /* Appointment card colors */
434
+ appointment_card_header_default_bg: "var(--Dental-Light-Blue--1)",
435
+ appointment_card_header_text: "var(--Dental-Blue-0)",
436
+ appointment_card_default_bg: "var(--White-0)",
437
+ appointment_card_title: "var(--Dental-Blue-0)",
438
+ appointment_card_text: "var(--Dental-Blue--2)",
439
+ appointment_card_delimiter: "var(--Soft-Concrete-1)",
440
+ /* End Appointment card colors */
441
+
442
+ /* Progress bar colors */
443
+ progress_bar_bg: "var(--Soft-Concrete-0)",
444
+ progress_bar_fill: "var(--Dental-Light-Blue-0)",
445
+ /* End Progress bar colors */
446
+
447
+ /* Navigation colors */
448
+ nav_bg: "var(--Dental-Light-Blue--3)",
449
+ nav_item_active_bg: "var(--Dental-Light-Blue-1)",
450
+ nav_item_text: "var(--Dental-Blue-0)",
451
+ nav_item_icon: "var(--Dental-Blue-0)",
452
+ /* End Navigation colors */
453
+
454
+ /* Toggle colors */
455
+ toggle_inactive_bg: "var(--Dental-Blue--5)",
456
+ toggle_active_bg: "var(--Dental-Blue-0)",
457
+ toggle_text: "var(--Dental-Blue-0)",
458
+ /* End Toggle colors */
459
+
460
+ /* Loader colors */
461
+ loader_fill: "var(--Dental-Blue-0)",
462
+ loader_text: "var(--Dental-Blue-0)",
463
+ /* End Loader colors */
464
+
465
+ /* Focus colors */
466
+ focus_ring_color: "var(--Dental-Blue-0)",
467
+ /* End Focus colors */
468
+
469
+ /* Card/List item colors */
470
+ card_bg: "var(--White-0)",
471
+ card_hover_bg: "var(--Dental-Blue--6)",
472
+ card_border: "var(--Soft-Concrete-1)",
473
+ card_divider: "var(--Dental-Blue--4)",
474
+ /* End Card/List item colors */
475
+
476
+ /* Tile colors */
477
+ tile_bg: "var(--White-0)",
478
+ tile_border: "var(--Soft-Concrete-2)",
479
+ tile_hover_bg: "var(--Dental-Blue--6)",
480
+ tile_pressed_bg: "var(--Dental-Blue--5)",
481
+ tile_title_color: "var(--Dental-Blue-0)",
482
+ tile_description_color: "var(--Dental-Blue-0)",
483
+ tile_label_text_color: "var(--Dental-Blue-0)",
484
+ tile_label_bg: "var(--Dental-Light-Blue-0)",
485
+ tile_icon_color: "var(--Dental-Blue-0)",
486
+ tile_focus_ring: "var(--Dental-Blue-0)",
487
+ tile_disabled_border: "var(--Soft-Concrete-2)",
488
+ /* End Tile colors */
489
+
490
+ /* Status badge colors */
491
+ badge_available_border: "var(--Success-Green-0)",
492
+ badge_available_text: "var(--Success-Green-0)",
493
+ badge_available_subtext: "var(--Success-Green-1)",
494
+ badge_unavailable_border: "var(--Error-Red-1)",
495
+ badge_unavailable_text: "var(--Error-Red-0)",
496
+ badge_unavailable_subtext: "var(--Error-Red-1)",
497
+ /* End Status badge colors */
498
+
499
+ /* Page state colors */
500
+ state_success_title: "var(--Success-Green-0)",
501
+ state_error_title: "var(--Error-Red-0)",
502
+ state_info_icon: "var(--Dental-Blue-0)",
503
+ state_info_text: "var(--Dental-Blue-0)",
504
+ /* End Page state colors */
505
+
506
+ /* Destructive action colors */
507
+ action_destructive_icon: "var(--Power-Red-0)",
508
+ action_destructive_text: "var(--Power-Red-0)",
509
+ /* End Destructive action colors */
510
+
511
+ /* Background colors */
512
+ page_bg: "var(--Dental-Light-Blue--3)",
513
+ section_bg: "var(--White-0)",
514
+ /* End Background colors */
515
+
516
+ /* Primary text and icon colors */
517
+ icon_primary: "var(--Dental-Blue-0)",
518
+ text_primary: "var(--Dental-Blue-0)",
519
+ text_secondary: "var(--Dental-Blue--2)",
520
+ divider_primary: "var(--Dental-Blue--4)",
521
+ border_primary: "var(--Dental-Blue-0)",
522
+ /* End Primary text and icon colors */
523
+
524
+ /* Slot grid colors */
525
+ slot_header_bg: "var(--Dental-Light-Blue--2)",
526
+ slot_button_bg: "var(--Dental-Light-Blue--1)",
527
+ slot_button_hover_bg: "var(--Dental-Light-Blue-0)",
528
+ /* End Slot grid colors */
529
+
530
+ other_locations_banner_bg: "var(--Light-Gum--1)",
531
+ other_locations_bg: "var(--Dental-Air-0)",
532
+
533
+ /* To be checked the validity of these colors */
534
+ "border-color": "var(--Dental-Blue-0)",
535
+ font_color: "!text-[var(--Dental-Blue-1)]",
536
+ font_color_title: "!text-[var(--Dental-Blue-0)]",
537
+ btn_bg: "var(--Dental-Blue-0)",
538
+ "border-b": "border-b-[var(--Dental-Blue-0)]",
539
+ font_color_code: "var(--Dental-Blue-1)",
540
+ font_color_title_code: "var(--Dental-Blue-0)",
541
+ "slot-bg": "var(--Dental-Light-Blue--1)",
542
+ "slot-text": "var(--Dental-Blue-0)",
543
+ bg_0: "bg-[var(--Dental-Light-Blue--3)]",
544
+ bg_logo_fill_color: "white",
545
+ button_rounded: "lg",
546
+ bg_card_title: "bg-[var(--Dental-Blue--1)]",
547
+ "divider-color": "divide-[var(--Dental-Blue-0)]",
548
+ /* End Colors*/
549
+
550
+ /* Domain */
551
+ domain: domainValue,
552
+ };
553
+ }
554
+ };
555
+
556
+ let siteColors: any = getColorsForDomain(domain.value);
557
+
558
+ // Set CSS variables on document root so base.css can use them
559
+ // This ensures that teleported content (Dialog/Modal) also inherits these colors
560
+ if (typeof document !== 'undefined') {
561
+ const root = document.documentElement;
562
+
563
+ // Primary color (fallback)
564
+ root.style.setProperty('--primary-color', siteColors["primary-color"]);
565
+
566
+ // Heading colors - h1 and h2 use title color, h3-h6 use regular color
567
+ root.style.setProperty('--h1-color', siteColors['font_color_title_code']);
568
+ root.style.setProperty('--h2-color', siteColors['font_color_title_code']);
569
+ root.style.setProperty('--h3-color', siteColors['font_color_code']);
570
+ root.style.setProperty('--h4-color', siteColors['font_color_code']);
571
+ root.style.setProperty('--h5-color', siteColors['font_color_code']);
572
+ root.style.setProperty('--h6-color', siteColors['font_color_code']);
573
+
574
+ // Paragraph color
575
+ root.style.setProperty('--p-color', siteColors['font_color_code']);
576
+
577
+ // Input colors
578
+ root.style.setProperty('--input-default-border', siteColors['input_default_border']);
579
+ root.style.setProperty('--input-default-bg', siteColors['input_default_bg']);
580
+ root.style.setProperty('--input-default-icon-color', siteColors['input_default_icon_color']);
581
+ root.style.setProperty('--input-default-text', siteColors['input_default_text']);
582
+
583
+ root.style.setProperty('--input-active-border', siteColors['input_active_border']);
584
+ root.style.setProperty('--input-active-bg', siteColors['input_active_bg']);
585
+ root.style.setProperty('--input-active-icon-color', siteColors['input_active_icon_color']);
586
+ root.style.setProperty('--input-active-text', siteColors['input_active_text']);
587
+
588
+ root.style.setProperty('--input-focused-border', siteColors['input_focused_border']);
589
+ root.style.setProperty('--input-focused-bg', siteColors['input_focused_bg']);
590
+ root.style.setProperty('--input-focused-icon-color', siteColors['input_focused_icon_color']);
591
+ root.style.setProperty('--input-focused-text', siteColors['input_focused_text']);
592
+
593
+ root.style.setProperty('--input-disabled-border', siteColors['input_disabled_border']);
594
+ root.style.setProperty('--input-disabled-bg', siteColors['input_disabled_bg']);
595
+ root.style.setProperty('--input-disabled-icon-color', siteColors['input_disabled_icon_color']);
596
+ root.style.setProperty('--input-disabled-text', siteColors['input_disabled_text']);
597
+
598
+ root.style.setProperty('--input-error-border', siteColors['input_error_border']);
599
+ root.style.setProperty('--input-error-bg', siteColors['input_error_bg']);
600
+ root.style.setProperty('--input-error-icon-color', siteColors['input_error_icon_color']);
601
+ root.style.setProperty('--input-error-text', siteColors['input_error_text']);
602
+
603
+ root.style.setProperty('--input-success-border', siteColors['input_success_border']);
604
+ root.style.setProperty('--input-success-bg', siteColors['input_success_bg']);
605
+ root.style.setProperty('--input-success-icon-color', siteColors['input_success_icon_color']);
606
+ root.style.setProperty('--input-success-text', siteColors['input_success_text']);
607
+
608
+ root.style.setProperty('--input-warning-border', siteColors['input_warning_border']);
609
+ root.style.setProperty('--input-warning-bg', siteColors['input_warning_bg']);
610
+ root.style.setProperty('--input-warning-icon-color', siteColors['input_warning_icon_color']);
611
+ root.style.setProperty('--input-warning-text', siteColors['input_warning_text']);
612
+
613
+ // Accordion colors
614
+ root.style.setProperty('--accordion-headline-color', siteColors['accordion_headline_color']);
615
+ root.style.setProperty('--accordion-title-color', siteColors['accordion_title_color']);
616
+ root.style.setProperty('--accordion-content-color', siteColors['accordion_content_color']);
617
+ root.style.setProperty('--accordion-divider-color', siteColors['accordion_divider_color']);
618
+ root.style.setProperty('--accordion-icon-color', siteColors['accordion_icon_color']);
619
+
620
+ // Appointment card colors
621
+ root.style.setProperty('--appointment_card_header_default_bg', siteColors['appointment_card_header_default_bg']);
622
+ root.style.setProperty('--appointment_card_header_text', siteColors['appointment_card_header_text']);
623
+ root.style.setProperty('--appointment_card_default_bg', siteColors['appointment_card_default_bg']);
624
+ root.style.setProperty('--appointment_card_title', siteColors['appointment_card_title']);
625
+ root.style.setProperty('--appointment_card_text', siteColors['appointment_card_text']);
626
+ root.style.setProperty('--appointment_card_delimiter', siteColors['appointment_card_delimiter']);
627
+
628
+ // Progress bar colors
629
+ root.style.setProperty('--progress-bar-bg', siteColors['progress_bar_bg']);
630
+ root.style.setProperty('--progress-bar-fill', siteColors['progress_bar_fill']);
631
+
632
+ // Navigation colors
633
+ root.style.setProperty('--nav-bg', siteColors['nav_bg']);
634
+ root.style.setProperty('--nav-item-active-bg', siteColors['nav_item_active_bg']);
635
+ root.style.setProperty('--nav-item-text', siteColors['nav_item_text']);
636
+ root.style.setProperty('--nav-item-icon', siteColors['nav_item_icon']);
637
+
638
+ // Toggle colors
639
+ root.style.setProperty('--toggle-inactive-bg', siteColors['toggle_inactive_bg']);
640
+ root.style.setProperty('--toggle-active-bg', siteColors['toggle_active_bg']);
641
+ root.style.setProperty('--toggle-text', siteColors['toggle_text']);
642
+
643
+ // Loader colors
644
+ root.style.setProperty('--loader-fill', siteColors['loader_fill']);
645
+ root.style.setProperty('--loader-text', siteColors['loader_text']);
646
+
647
+ // Focus colors
648
+ root.style.setProperty('--focus-ring-color', siteColors['focus_ring_color']);
649
+
650
+ // Card/List item colors
651
+ root.style.setProperty('--card-bg', siteColors['card_bg']);
652
+ root.style.setProperty('--card-hover-bg', siteColors['card_hover_bg']);
653
+ root.style.setProperty('--card-border', siteColors['card_border']);
654
+ root.style.setProperty('--card-divider', siteColors['card_divider']);
655
+
656
+ // Tile colors
657
+ root.style.setProperty('--tile-bg', siteColors['tile_bg']);
658
+ root.style.setProperty('--tile-border', siteColors['tile_border']);
659
+ root.style.setProperty('--tile-hover-bg', siteColors['tile_hover_bg']);
660
+ root.style.setProperty('--tile-pressed-bg', siteColors['tile_pressed_bg']);
661
+ root.style.setProperty('--tile-title-color', siteColors['tile_title_color']);
662
+ root.style.setProperty('--tile-description-color', siteColors['tile_description_color']);
663
+ root.style.setProperty('--tile-label-text-color', siteColors['tile_label_text_color']);
664
+ root.style.setProperty('--tile-label-bg', siteColors['tile_label_bg']);
665
+ root.style.setProperty('--tile-icon-color', siteColors['tile_icon_color']);
666
+ root.style.setProperty('--tile-focus-ring', siteColors['tile_focus_ring']);
667
+ root.style.setProperty('--tile-disabled-border', siteColors['tile_disabled_border']);
668
+
669
+ // Status badge colors
670
+ root.style.setProperty('--badge-available-border', siteColors['badge_available_border']);
671
+ root.style.setProperty('--badge-available-text', siteColors['badge_available_text']);
672
+ root.style.setProperty('--badge-available-subtext', siteColors['badge_available_subtext']);
673
+ root.style.setProperty('--badge-unavailable-border', siteColors['badge_unavailable_border']);
674
+ root.style.setProperty('--badge-unavailable-text', siteColors['badge_unavailable_text']);
675
+ root.style.setProperty('--badge-unavailable-subtext', siteColors['badge_unavailable_subtext']);
676
+
677
+ // Page state colors
678
+ root.style.setProperty('--state-success-title', siteColors['state_success_title']);
679
+ root.style.setProperty('--state-error-title', siteColors['state_error_title']);
680
+ root.style.setProperty('--state-info-icon', siteColors['state_info_icon']);
681
+ root.style.setProperty('--state-info-text', siteColors['state_info_text']);
682
+
683
+ // Destructive action colors
684
+ root.style.setProperty('--action-destructive-icon', siteColors['action_destructive_icon']);
685
+ root.style.setProperty('--action-destructive-text', siteColors['action_destructive_text']);
686
+
687
+ // Background colors
688
+ root.style.setProperty('--page-bg', siteColors['page_bg']);
689
+ root.style.setProperty('--section-bg', siteColors['section_bg']);
690
+
691
+ // Primary text and icon colors
692
+ root.style.setProperty('--icon-primary', siteColors['icon_primary']);
693
+ root.style.setProperty('--text-primary', siteColors['text_primary']);
694
+ root.style.setProperty('--text-secondary', siteColors['text_secondary']);
695
+ root.style.setProperty('--divider-primary', siteColors['divider_primary']);
696
+ root.style.setProperty('--border-primary', siteColors['border_primary']);
697
+
698
+ // Slot grid colors
699
+ root.style.setProperty('--slot-header-bg', siteColors['slot_header_bg']);
700
+ root.style.setProperty('--slot-button-bg', siteColors['slot_button_bg']);
701
+ root.style.setProperty('--slot-button-hover-bg', siteColors['slot_button_hover_bg']);
702
+
703
+ root.style.setProperty('--other-locations-banner-bg', siteColors['other_locations_banner_bg']);
704
+ root.style.setProperty('--other-locations-bg', siteColors['other_locations_bg']);
705
+ }
706
+
707
+ // Function to set domain for testing purposes
708
+ const setTestingDomain = (newDomain: 'domain-cocoon' | 'domain-dental') => {
709
+ if (typeof window !== 'undefined') {
710
+ localStorage.setItem('testDomain', newDomain);
711
+ window.location.reload();
712
+ }
713
+ };
714
+
715
+ // Function to clear testing override
716
+ const clearTestingDomain = () => {
717
+ if (typeof window !== 'undefined') {
718
+ localStorage.removeItem('testDomain');
719
+ window.location.reload();
720
+ }
721
+ };
722
+
723
+ export {
724
+ siteColors,
725
+ getDomainName,
726
+ appointmentTypes,
727
+ domain,
728
+ setTestingDomain,
729
+ clearTestingDomain,
730
+ getColorsForDomain
731
+ };
732
+
733
+ // Anamnese utilities
734
734
  export * from './anamnese';