@licklist/design 0.78.21 → 0.78.26

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 (186) hide show
  1. package/dist/assets/Trend-Down.svg +3 -0
  2. package/dist/assets/Trend-Up.svg +3 -0
  3. package/dist/auth/Authorizer.d.ts.map +1 -1
  4. package/dist/auth/Authorizer.js +47 -12
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +5 -0
  8. package/dist/v2/components/EntityHeader/EntityHeader.d.ts +13 -0
  9. package/dist/v2/components/EntityHeader/EntityHeader.d.ts.map +1 -0
  10. package/dist/v2/components/EntityHeader/EntityHeader.js +85 -0
  11. package/dist/v2/components/EntityHeader/EntityHeader.scss.js +6 -0
  12. package/dist/v2/components/EntityHeader/index.d.ts +2 -0
  13. package/dist/v2/components/EntityHeader/index.d.ts.map +1 -0
  14. package/dist/v2/components/NPSScore/NPSScore.d.ts +18 -0
  15. package/dist/v2/components/NPSScore/NPSScore.d.ts.map +1 -0
  16. package/dist/v2/components/NPSScore/index.d.ts +3 -0
  17. package/dist/v2/components/NPSScore/index.d.ts.map +1 -0
  18. package/dist/v2/components/Select/Select.d.ts +10 -0
  19. package/dist/v2/components/Select/Select.d.ts.map +1 -0
  20. package/dist/v2/components/Select/index.d.ts +3 -0
  21. package/dist/v2/components/Select/index.d.ts.map +1 -0
  22. package/dist/v2/components/Tooltip/Tooltip.d.ts +21 -0
  23. package/dist/v2/components/Tooltip/Tooltip.d.ts.map +1 -0
  24. package/dist/v2/components/Tooltip/Tooltip.js +103 -0
  25. package/dist/v2/components/Tooltip/Tooltip.scss.js +6 -0
  26. package/dist/v2/components/Tooltip/index.d.ts +2 -0
  27. package/dist/v2/components/Tooltip/index.d.ts.map +1 -0
  28. package/dist/v2/components/UserAvatar/UserAvatar.d.ts +12 -0
  29. package/dist/v2/components/UserAvatar/UserAvatar.d.ts.map +1 -0
  30. package/dist/v2/components/UserAvatar/UserAvatar.js +77 -0
  31. package/dist/v2/components/UserAvatar/UserAvatar.scss.js +6 -0
  32. package/dist/v2/components/UserAvatar/index.d.ts +2 -0
  33. package/dist/v2/components/UserAvatar/index.d.ts.map +1 -0
  34. package/dist/v2/components/UserPanel/UserPanel.d.ts +17 -0
  35. package/dist/v2/components/UserPanel/UserPanel.d.ts.map +1 -0
  36. package/dist/v2/components/UserPanel/UserPanel.js +144 -0
  37. package/dist/v2/components/UserPanel/UserPanel.scss.js +6 -0
  38. package/dist/v2/components/UserPanel/index.d.ts +3 -0
  39. package/dist/v2/components/UserPanel/index.d.ts.map +1 -0
  40. package/dist/v2/dashboard-analytics/blog-posts/Blog.d.ts +15 -0
  41. package/dist/v2/dashboard-analytics/blog-posts/Blog.d.ts.map +1 -0
  42. package/dist/v2/dashboard-analytics/blog-posts/index.d.ts +3 -0
  43. package/dist/v2/dashboard-analytics/blog-posts/index.d.ts.map +1 -0
  44. package/dist/v2/dashboard-analytics/chart/Chart.d.ts +21 -0
  45. package/dist/v2/dashboard-analytics/chart/Chart.d.ts.map +1 -0
  46. package/dist/v2/dashboard-analytics/chart/index.d.ts +3 -0
  47. package/dist/v2/dashboard-analytics/chart/index.d.ts.map +1 -0
  48. package/dist/v2/dashboard-analytics/dashboard/Dashboard.d.ts +57 -0
  49. package/dist/v2/dashboard-analytics/dashboard/Dashboard.d.ts.map +1 -0
  50. package/dist/v2/dashboard-analytics/dashboard/index.d.ts +3 -0
  51. package/dist/v2/dashboard-analytics/dashboard/index.d.ts.map +1 -0
  52. package/dist/v2/dashboard-analytics/index.d.ts +13 -0
  53. package/dist/v2/dashboard-analytics/index.d.ts.map +1 -0
  54. package/dist/v2/dashboard-analytics/metric-card/MetricCard.d.ts +17 -0
  55. package/dist/v2/dashboard-analytics/metric-card/MetricCard.d.ts.map +1 -0
  56. package/dist/v2/dashboard-analytics/metric-card/index.d.ts +3 -0
  57. package/dist/v2/dashboard-analytics/metric-card/index.d.ts.map +1 -0
  58. package/dist/v2/dashboard-analytics/venue-card/VenueCard.d.ts +12 -0
  59. package/dist/v2/dashboard-analytics/venue-card/VenueCard.d.ts.map +1 -0
  60. package/dist/v2/dashboard-analytics/venue-card/index.d.ts +3 -0
  61. package/dist/v2/dashboard-analytics/venue-card/index.d.ts.map +1 -0
  62. package/dist/v2/dashboard-analytics/venue-closed-card/VenueClosedCard.d.ts +25 -0
  63. package/dist/v2/dashboard-analytics/venue-closed-card/VenueClosedCard.d.ts.map +1 -0
  64. package/dist/v2/dashboard-analytics/venue-closed-card/index.d.ts +3 -0
  65. package/dist/v2/dashboard-analytics/venue-closed-card/index.d.ts.map +1 -0
  66. package/dist/v2/index.d.ts +11 -5
  67. package/dist/v2/index.d.ts.map +1 -1
  68. package/dist/v2/navigation/DashboardLayout/AdminSidebar.d.ts +10 -0
  69. package/dist/v2/navigation/DashboardLayout/AdminSidebar.d.ts.map +1 -0
  70. package/dist/v2/navigation/DashboardLayout/AdminSidebar.js +296 -0
  71. package/dist/v2/navigation/DashboardLayout/AdminSidebar.scss.js +6 -0
  72. package/dist/v2/navigation/DashboardLayout/DashboardFooter.d.ts +7 -0
  73. package/dist/v2/navigation/DashboardLayout/DashboardFooter.d.ts.map +1 -0
  74. package/dist/v2/navigation/DashboardLayout/DashboardFooter.js +34 -0
  75. package/dist/v2/navigation/DashboardLayout/DashboardFooter.scss.js +6 -0
  76. package/dist/v2/navigation/DashboardLayout/DashboardLayout.d.ts +42 -0
  77. package/dist/v2/navigation/DashboardLayout/DashboardLayout.d.ts.map +1 -0
  78. package/dist/v2/navigation/DashboardLayout/DashboardLayout.js +176 -0
  79. package/dist/v2/navigation/DashboardLayout/DashboardLayout.scss.js +6 -0
  80. package/dist/v2/navigation/DashboardLayout/ProviderSidebar.d.ts +35 -0
  81. package/dist/v2/navigation/DashboardLayout/ProviderSidebar.d.ts.map +1 -0
  82. package/dist/v2/navigation/DashboardLayout/ProviderSidebar.js +366 -0
  83. package/dist/v2/navigation/DashboardLayout/ProviderSidebar.scss.js +6 -0
  84. package/dist/v2/navigation/DashboardLayout/TopNavigation.d.ts +26 -0
  85. package/dist/v2/navigation/DashboardLayout/TopNavigation.d.ts.map +1 -0
  86. package/dist/v2/navigation/DashboardLayout/TopNavigation.js +360 -0
  87. package/dist/v2/navigation/DashboardLayout/TopNavigation.scss.js +6 -0
  88. package/dist/v2/navigation/DashboardLayout/assets/AdminLogo.png.js +3 -0
  89. package/dist/v2/navigation/DashboardLayout/assets/BookedLogo_Mark.png.js +3 -0
  90. package/dist/v2/navigation/DashboardLayout/index.d.ts +7 -0
  91. package/dist/v2/navigation/DashboardLayout/index.d.ts.map +1 -0
  92. package/package.json +5 -3
  93. package/src/assets/Trend-Down.svg +3 -0
  94. package/src/assets/Trend-Up.svg +3 -0
  95. package/src/auth/Authorizer.tsx +49 -20
  96. package/src/index.ts +2 -1
  97. package/src/v2/components/EntityHeader/EntityHeader.scss +133 -0
  98. package/src/v2/components/EntityHeader/EntityHeader.stories.tsx +103 -0
  99. package/src/v2/components/EntityHeader/EntityHeader.tsx +76 -0
  100. package/src/v2/components/EntityHeader/index.ts +1 -0
  101. package/src/v2/components/NPSScore/NPSScore.scss +330 -0
  102. package/src/v2/components/NPSScore/NPSScore.stories.tsx +29 -0
  103. package/src/v2/components/NPSScore/NPSScore.tsx +209 -0
  104. package/src/v2/components/NPSScore/index.ts +2 -0
  105. package/src/v2/components/Select/Select.scss +188 -0
  106. package/src/v2/components/Select/Select.stories.tsx +164 -0
  107. package/src/v2/components/Select/Select.tsx +56 -0
  108. package/src/v2/components/Select/index.ts +2 -0
  109. package/src/v2/components/Tooltip/Tooltip.scss +92 -0
  110. package/src/v2/components/Tooltip/Tooltip.stories.tsx +164 -0
  111. package/src/v2/components/Tooltip/Tooltip.tsx +64 -0
  112. package/src/v2/components/Tooltip/index.ts +8 -0
  113. package/src/v2/components/UserAvatar/UserAvatar.scss +62 -0
  114. package/src/v2/components/UserAvatar/UserAvatar.stories.tsx +94 -0
  115. package/src/v2/components/UserAvatar/UserAvatar.tsx +96 -0
  116. package/src/v2/components/UserAvatar/index.ts +1 -0
  117. package/src/v2/components/UserPanel/UserPanel.scss +195 -0
  118. package/src/v2/components/UserPanel/UserPanel.stories.tsx +66 -0
  119. package/src/v2/components/UserPanel/UserPanel.tsx +126 -0
  120. package/src/v2/components/UserPanel/index.ts +2 -0
  121. package/src/v2/dashboard-analytics/blog-posts/Blog.scss +92 -0
  122. package/src/v2/dashboard-analytics/blog-posts/Blog.stories.tsx +57 -0
  123. package/src/v2/dashboard-analytics/blog-posts/Blog.tsx +91 -0
  124. package/src/v2/dashboard-analytics/blog-posts/index.ts +2 -0
  125. package/src/v2/dashboard-analytics/chart/Chart.scss +424 -0
  126. package/src/v2/dashboard-analytics/chart/Chart.stories.tsx +157 -0
  127. package/src/v2/dashboard-analytics/chart/Chart.tsx +623 -0
  128. package/src/v2/dashboard-analytics/chart/index.ts +2 -0
  129. package/src/v2/dashboard-analytics/dashboard/Dashboard.scss +254 -0
  130. package/src/v2/dashboard-analytics/dashboard/Dashboard.stories.tsx +298 -0
  131. package/src/v2/dashboard-analytics/dashboard/Dashboard.tsx +248 -0
  132. package/src/v2/dashboard-analytics/dashboard/index.ts +2 -0
  133. package/src/v2/dashboard-analytics/index.ts +12 -0
  134. package/src/v2/dashboard-analytics/metric-card/MetricCard.scss +125 -0
  135. package/src/v2/dashboard-analytics/metric-card/MetricCard.stories.tsx +106 -0
  136. package/src/v2/dashboard-analytics/metric-card/MetricCard.tsx +72 -0
  137. package/src/v2/dashboard-analytics/metric-card/index.ts +2 -0
  138. package/src/v2/dashboard-analytics/venue-card/VenueCard.scss +112 -0
  139. package/src/v2/dashboard-analytics/venue-card/VenueCard.stories.tsx +40 -0
  140. package/src/v2/dashboard-analytics/venue-card/VenueCard.tsx +62 -0
  141. package/src/v2/dashboard-analytics/venue-card/index.ts +2 -0
  142. package/src/v2/dashboard-analytics/venue-closed-card/VenueClosedCard.scss +129 -0
  143. package/src/v2/dashboard-analytics/venue-closed-card/VenueClosedCard.stories.tsx +31 -0
  144. package/src/v2/dashboard-analytics/venue-closed-card/VenueClosedCard.tsx +61 -0
  145. package/src/v2/dashboard-analytics/venue-closed-card/index.ts +2 -0
  146. package/src/v2/design-system/colors/ColorSystem.scss +439 -0
  147. package/src/v2/design-system/colors/ColorSystem.stories.tsx +730 -0
  148. package/src/v2/design-system/typography/Typography.scss +295 -0
  149. package/src/v2/design-system/typography/Typography.stories.tsx +109 -0
  150. package/src/v2/index.ts +43 -7
  151. package/src/v2/navigation/DashboardLayout/AdminSidebar.scss +207 -0
  152. package/src/v2/navigation/DashboardLayout/AdminSidebar.tsx +171 -0
  153. package/src/v2/navigation/DashboardLayout/DashboardFooter.scss +30 -0
  154. package/src/v2/navigation/DashboardLayout/DashboardFooter.tsx +25 -0
  155. package/src/v2/navigation/DashboardLayout/DashboardLayout.scss +91 -0
  156. package/src/v2/navigation/DashboardLayout/DashboardLayout.stories.tsx +370 -0
  157. package/src/v2/navigation/DashboardLayout/DashboardLayout.tsx +233 -0
  158. package/src/v2/navigation/DashboardLayout/ProviderSidebar.scss +271 -0
  159. package/src/v2/navigation/DashboardLayout/ProviderSidebar.tsx +266 -0
  160. package/src/v2/navigation/DashboardLayout/Sidebar.stories.tsx +220 -0
  161. package/src/v2/navigation/DashboardLayout/TopNavigation.scss +206 -0
  162. package/src/v2/navigation/DashboardLayout/TopNavigation.tsx +279 -0
  163. package/src/v2/navigation/DashboardLayout/assets/AdminLogo.png +0 -0
  164. package/src/v2/navigation/DashboardLayout/assets/BookedLogo_Mark.png +0 -0
  165. package/src/v2/navigation/DashboardLayout/index.ts +20 -0
  166. package/src/v2/styles/index.scss +0 -1
  167. package/src/v2/styles/tokens/_colors.scss +531 -98
  168. package/dist/v2/components/Colors/Colors.d.ts +0 -21
  169. package/dist/v2/components/Colors/Colors.d.ts.map +0 -1
  170. package/dist/v2/components/Colors/index.d.ts +0 -3
  171. package/dist/v2/components/Colors/index.d.ts.map +0 -1
  172. package/dist/v2/components/Typography/Typography.d.ts +0 -11
  173. package/dist/v2/components/Typography/Typography.d.ts.map +0 -1
  174. package/dist/v2/components/Typography/index.d.ts +0 -3
  175. package/dist/v2/components/Typography/index.d.ts.map +0 -1
  176. package/src/v2/components/Colors/Colors.scss +0 -64
  177. package/src/v2/components/Colors/Colors.stories.tsx +0 -143
  178. package/src/v2/components/Colors/Colors.tsx +0 -51
  179. package/src/v2/components/Colors/ColorsAliases.stories.tsx +0 -285
  180. package/src/v2/components/Colors/Sizes.stories.tsx +0 -141
  181. package/src/v2/components/Colors/index.ts +0 -2
  182. package/src/v2/components/Typography/Typography.scss +0 -72
  183. package/src/v2/components/Typography/Typography.stories.tsx +0 -266
  184. package/src/v2/components/Typography/Typography.tsx +0 -56
  185. package/src/v2/components/Typography/index.ts +0 -2
  186. package/src/v2/styles/tokens/_aliases.scss +0 -199
@@ -0,0 +1,424 @@
1
+ @import '../../design-system/typography/Typography.scss';
2
+
3
+ .chart {
4
+ position: relative;
5
+ width: 100%;
6
+ max-width: 100%;
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: 1.4375rem;
10
+ padding: 1rem;
11
+ background-color: var(--surface-primary);
12
+ border: 1px solid var(--border-primary);
13
+ border-radius: 0.5rem;
14
+ overflow: hidden;
15
+ box-sizing: border-box;
16
+ min-width: 0;
17
+ transition: all 0.3s ease-in-out;
18
+
19
+ &--loading {
20
+ .chart__wrapper {
21
+ opacity: 0.6;
22
+ transition: opacity 0.3s ease-in-out;
23
+ }
24
+ }
25
+
26
+ &--refreshing {
27
+ .chart__wrapper {
28
+ opacity: 0.95;
29
+ transition: opacity 0.2s ease-in-out;
30
+ }
31
+
32
+ border-color: rgba(31, 154, 181, 0.3);
33
+ }
34
+
35
+ &[data-full-width="true"] {
36
+ .chart__container {
37
+ margin-left: -1rem;
38
+ margin-right: -1rem;
39
+ padding: 0;
40
+ width: calc(100% + 2rem);
41
+ }
42
+
43
+ .chart__wrapper {
44
+ margin-left: 0;
45
+ margin-right: 0;
46
+ width: 100%;
47
+ max-width: none;
48
+ }
49
+ }
50
+
51
+ @media (max-width: 480px) {
52
+ padding: 0.75rem;
53
+ gap: 1rem;
54
+ }
55
+
56
+ @media (min-width: 481px) and (max-width: 768px) {
57
+ padding: 1rem;
58
+ gap: 1.25rem;
59
+ }
60
+
61
+ @media (min-width: 769px) {
62
+ padding: 1.375rem 1rem;
63
+ gap: 1.4375rem;
64
+ }
65
+
66
+ &__header {
67
+ display: flex;
68
+ flex-direction: column;
69
+ gap: 0.25rem;
70
+ margin-left: 0.25rem;
71
+
72
+ @media (min-width: 768px) {
73
+ margin-left: 0.75rem;
74
+ }
75
+ }
76
+
77
+ &__title {
78
+ @include typography('heading.h3');
79
+ line-height: 1.2;
80
+ color: var(--label-primary);
81
+ margin: 0;
82
+ padding: 0;
83
+ display: flex;
84
+ align-items: center;
85
+ gap: 0.5rem;
86
+
87
+ @media (min-width: 480px) {
88
+ font-size: 16px;
89
+ }
90
+
91
+ @media (min-width: 768px) {
92
+ font-size: 17px;
93
+ line-height: 1.176;
94
+ }
95
+ }
96
+
97
+ &__title-refresh-indicator {
98
+ font-size: 12px;
99
+ color: var(--label-primary);
100
+ animation: refreshSpin 1s linear infinite;
101
+ opacity: 0.7;
102
+ }
103
+
104
+ @keyframes refreshSpin {
105
+ from { transform: rotate(0deg); }
106
+ to { transform: rotate(360deg); }
107
+ }
108
+
109
+ &__subtitle {
110
+
111
+ @include typography('heading.h5');
112
+ line-height: 1.4;
113
+ color: var(--label-secondary);
114
+ margin: 0;
115
+ padding: 0;
116
+
117
+ @media (min-width: 480px) {
118
+ font-size: 12.5px;
119
+ }
120
+
121
+ @media (min-width: 768px) {
122
+ font-size: 13px;
123
+ line-height: 1.538;
124
+ }
125
+ }
126
+
127
+ &__container {
128
+ width: 100%;
129
+ max-width: 100%;
130
+ margin: 0 -1rem -1rem -1rem;
131
+ padding: 0;
132
+ overflow: visible;
133
+ box-sizing: border-box;
134
+ transition: all 0.3s ease-in-out;
135
+ position: relative;
136
+
137
+ @media (max-width: 480px) {
138
+ margin: 0 -0.75rem -0.75rem -0.75rem;
139
+ padding: 0;
140
+ }
141
+
142
+ @media (min-width: 768px) {
143
+ margin: 0 -1rem -1.375rem -1rem;
144
+ padding: 0;
145
+ }
146
+ }
147
+
148
+ &__loading-overlay {
149
+ position: absolute;
150
+ top: 0;
151
+ left: 0;
152
+ right: 0;
153
+ bottom: 0;
154
+ background: rgba(248, 248, 250, 0.8);
155
+ display: flex;
156
+ align-items: center;
157
+ justify-content: center;
158
+ z-index: 10;
159
+ backdrop-filter: blur(1px);
160
+ transition: opacity 0.3s ease-in-out;
161
+ }
162
+
163
+ @keyframes chartSpin {
164
+ 0% { transform: rotate(0deg); }
165
+ 100% { transform: rotate(360deg); }
166
+ }
167
+
168
+ &__wrapper {
169
+ width: 100%;
170
+ max-width: 100%;
171
+ height: 220px;
172
+ overflow: visible;
173
+ box-sizing: border-box;
174
+ position: relative;
175
+ transition: all 0.3s ease-in-out;
176
+
177
+ @media (min-width: 480px) {
178
+ height: 250px;
179
+ }
180
+
181
+ @media (min-width: 768px) {
182
+ height: 280px;
183
+ }
184
+
185
+ @media (min-width: 1024px) {
186
+ height: 300px;
187
+ }
188
+
189
+ @media (min-width: 1440px) {
190
+ height: 320px;
191
+ }
192
+ }
193
+
194
+ &__tooltip {
195
+ background-color: #fff;
196
+ border: 1px solid var(--border-primary);
197
+ border-radius: 0.5rem;
198
+ padding: 0.5rem;
199
+ box-shadow: 0 4px 12px rgba(18, 30, 82, 0.1);
200
+ min-width: 80px;
201
+ max-width: 180px;
202
+
203
+ @media (min-width: 480px) {
204
+ padding: 0.625rem;
205
+ min-width: 90px;
206
+ max-width: 190px;
207
+ }
208
+
209
+ @media (min-width: 768px) {
210
+ padding: 0.75rem;
211
+ min-width: 100px;
212
+ max-width: 200px;
213
+ }
214
+ }
215
+
216
+ &__tooltip-label {
217
+ font-size: 11px;
218
+ font-weight: 600;
219
+ line-height: 1;
220
+ color: var(--label-secondary);
221
+ margin-bottom: 0.25rem;
222
+
223
+ @media (min-width: 480px) {
224
+ font-size: 12px;
225
+ }
226
+
227
+ @media (min-width: 768px) {
228
+ font-size: 13px;
229
+ }
230
+ }
231
+
232
+ &__tooltip-value {
233
+ font-size: 13px;
234
+ font-weight: 700;
235
+ line-height: 1;
236
+ color: var(--label-primary);
237
+ margin-bottom: 0.25rem;
238
+
239
+ @media (min-width: 480px) {
240
+ font-size: 14px;
241
+ }
242
+
243
+ @media (min-width: 768px) {
244
+ font-size: 15px;
245
+ }
246
+ }
247
+
248
+ &__tooltip-participants {
249
+ font-size: 9px;
250
+ font-weight: 500;
251
+ line-height: 1;
252
+ color: var(--label-secondary);
253
+ margin-bottom: 0.5rem;
254
+
255
+ @media (min-width: 480px) {
256
+ font-size: 9.5px;
257
+ }
258
+
259
+ @media (min-width: 768px) {
260
+ font-size: 10px;
261
+ }
262
+ }
263
+
264
+ &__tooltip-trend {
265
+ font-size: 10px;
266
+ font-weight: 500;
267
+ line-height: 1;
268
+ margin-bottom: 0.25rem;
269
+
270
+ @media (min-width: 480px) {
271
+ font-size: 10.5px;
272
+ }
273
+
274
+ @media (min-width: 768px) {
275
+ font-size: 11px;
276
+ }
277
+
278
+ &.positive {
279
+ color: var(--success-dark, #2D6B18);
280
+ }
281
+
282
+ &.negative {
283
+ color: var(--error-dark, #CC3C35);
284
+ }
285
+
286
+ &.neutral {
287
+ color: var(--label-secondary);
288
+ }
289
+ }
290
+
291
+ &__tooltip-trend-content {
292
+ display: flex;
293
+ align-items: center;
294
+ gap: 0.25rem;
295
+ }
296
+
297
+ &__tooltip-trend-icon {
298
+ flex-shrink: 0;
299
+
300
+ &.positive {
301
+ color: var(--success-dark, #2D6B18);
302
+ }
303
+
304
+ &.negative {
305
+ color: var(--error-dark, #CC3C35);
306
+ }
307
+ }
308
+
309
+ &__tooltip-trend-value {
310
+ font-weight: 600;
311
+ }
312
+
313
+ &__tooltip-comparison {
314
+ font-size: 9px;
315
+ font-weight: 500;
316
+ line-height: 1;
317
+ color: var(--label-secondary);
318
+ margin-top: 0.25rem;
319
+
320
+ @media (min-width: 480px) {
321
+ font-size: 9.5px;
322
+ }
323
+
324
+ @media (min-width: 768px) {
325
+ font-size: 10px;
326
+ }
327
+ }
328
+
329
+ :global {
330
+ .recharts-cartesian-axis-tick {
331
+ text {
332
+ fill: var(--label-secondary) !important;
333
+ @include typography('heading.h6');
334
+ @media (min-width: 480px) {
335
+ font-size: 10px !important;
336
+ }
337
+
338
+ @media (min-width: 768px) {
339
+ font-size: 11px !important;
340
+ }
341
+ }
342
+ }
343
+
344
+ .recharts-cartesian-grid-horizontal line,
345
+ .recharts-cartesian-grid-vertical line {
346
+ stroke: var(--label-secondary) !important;
347
+ stroke-dasharray: 3 3 !important;
348
+ }
349
+
350
+ .recharts-tooltip-cursor {
351
+ fill: transparent;
352
+ }
353
+
354
+ .recharts-reference-line {
355
+ line {
356
+ stroke: var(--fill-action) !important;
357
+ stroke-width: 2 !important;
358
+ stroke-dasharray: 6 4 !important;
359
+ }
360
+ }
361
+
362
+ .recharts-area-dot {
363
+ r: 3 !important;
364
+
365
+ @media (min-width: 480px) {
366
+ r: 3.5 !important;
367
+ }
368
+
369
+ @media (min-width: 768px) {
370
+ r: 4 !important;
371
+ }
372
+ }
373
+
374
+ .recharts-active-dot {
375
+ r: 5 !important;
376
+
377
+ @media (min-width: 480px) {
378
+ r: 5.5 !important;
379
+ }
380
+
381
+ @media (min-width: 768px) {
382
+ r: 6 !important;
383
+ }
384
+ }
385
+
386
+ .recharts-responsive-container {
387
+ width: 100% !important;
388
+ height: 100% !important;
389
+ transition: all 0.3s ease-in-out;
390
+ }
391
+
392
+ .recharts-surface {
393
+ width: 100% !important;
394
+ transition: all 0.3s ease-in-out;
395
+ }
396
+
397
+ .recharts-area {
398
+ filter: drop-shadow(0 2px 8px rgba(31, 154, 181, 0.15));
399
+ transition: filter 0.3s ease-in-out;
400
+
401
+ &:hover {
402
+ filter: drop-shadow(0 4px 12px rgba(31, 154, 181, 0.25));
403
+ }
404
+ }
405
+
406
+ .recharts-cartesian-axis.recharts-yAxis {
407
+ .recharts-cartesian-axis-tick {
408
+ text {
409
+ text-anchor: end !important;
410
+ }
411
+ }
412
+ }
413
+ }
414
+
415
+ &[data-full-width="true"] {
416
+ :global {
417
+ .recharts-cartesian-axis-tick {
418
+ text {
419
+ font-size: 10px !important;
420
+ }
421
+ }
422
+ }
423
+ }
424
+ }
@@ -0,0 +1,157 @@
1
+ import React from 'react';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ import { Chart } from './Chart';
4
+
5
+ const meta = {
6
+ title: 'v2/Dashboard Analytics/Chart',
7
+ component: Chart,
8
+
9
+ tags: [],
10
+ } satisfies Meta<typeof Chart>;
11
+
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+
15
+ const bookingsData = [
16
+ { time: '00:00', value: 4, participants: 8 },
17
+ { time: '01:00', value: 3, participants: 6 },
18
+ { time: '02:00', value: 2, participants: 4 },
19
+ { time: '03:00', value: 5, participants: 10 },
20
+ { time: '04:00', value: 8, participants: 16 },
21
+ { time: '05:00', value: 6, participants: 12 },
22
+ { time: '06:00', value: 9, participants: 18 },
23
+ { time: '07:00', value: 12, participants: 24 },
24
+ { time: '08:00', value: 15, participants: 30 },
25
+ { time: '09:00', value: 18, participants: 36 },
26
+ ];
27
+
28
+ const weeklyData = [
29
+ { time: 'Mon', value: 45, participants: 90 },
30
+ { time: 'Tue', value: 52, participants: 104 },
31
+ { time: 'Wed', value: 48, participants: 96 },
32
+ { time: 'Thu', value: 61, participants: 122 },
33
+ { time: 'Fri', value: 55, participants: 110 },
34
+ { time: 'Sat', value: 67, participants: 134 },
35
+ { time: 'Sun', value: 58, participants: 116 },
36
+ ];
37
+
38
+ const monthlyData = [
39
+ { time: 'Jan', value: 120 },
40
+ { time: 'Feb', value: 135 },
41
+ { time: 'Mar', value: 142 },
42
+ { time: 'Apr', value: 160 },
43
+ { time: 'May', value: 155 },
44
+ { time: 'Jun', value: 175 },
45
+ { time: 'Jul', value: 182 },
46
+ { time: 'Aug', value: 168 },
47
+ { time: 'Sep', value: 190 },
48
+ { time: 'Oct', value: 210 },
49
+ { time: 'Nov', value: 198 },
50
+ { time: 'Dec', value: 225 },
51
+ ];
52
+
53
+ const revenueData = [
54
+ { time: '00:00', value: 45.50 },
55
+ { time: '01:00', value: 38.75 },
56
+ { time: '02:00', value: 52.25 },
57
+ { time: '03:00', value: 61.00 },
58
+ { time: '04:00', value: 78.50 },
59
+ { time: '05:00', value: 85.25 },
60
+ { time: '06:00', value: 92.75 },
61
+ { time: '07:00', value: 125.50 },
62
+ { time: '08:00', value: 145.75 },
63
+ { time: '09:00', value: 168.25 },
64
+ ];
65
+
66
+ export const TodayBookings: Story = {
67
+ args: {
68
+ title: 'Bookings',
69
+ subtitle: 'Today',
70
+ data: bookingsData,
71
+ isRevenue: false,
72
+ },
73
+ };
74
+
75
+ export const YesterdayBookings: Story = {
76
+ args: {
77
+ title: 'Bookings',
78
+ subtitle: 'Yesterday',
79
+ data: bookingsData,
80
+ isRevenue: false,
81
+ },
82
+ };
83
+
84
+ export const ThisWeekBookings: Story = {
85
+ args: {
86
+ title: 'Bookings',
87
+ subtitle: 'Mon 8th - Sun 14th Sept',
88
+ data: weeklyData,
89
+ isRevenue: false,
90
+ },
91
+ };
92
+
93
+ export const ThisMonthBookings: Story = {
94
+ args: {
95
+ title: 'Bookings',
96
+ subtitle: 'September 2025',
97
+ data: monthlyData.slice(0, 14),
98
+ isRevenue: false,
99
+ },
100
+ };
101
+
102
+ export const ThisYearBookings: Story = {
103
+ args: {
104
+ title: 'Bookings',
105
+ subtitle: '2025',
106
+ data: monthlyData,
107
+ isRevenue: false,
108
+ },
109
+ };
110
+
111
+ export const TodayRevenue: Story = {
112
+ args: {
113
+ title: 'Revenue',
114
+ subtitle: 'Today',
115
+ data: revenueData,
116
+ isRevenue: true,
117
+ },
118
+ };
119
+
120
+ export const ThisWeekRevenue: Story = {
121
+ args: {
122
+ title: 'Revenue',
123
+ subtitle: 'Mon 8th - Sun 14th Sept',
124
+ data: [
125
+ { time: 'Mon', value: 425.50 },
126
+ { time: 'Tue', value: 512.75 },
127
+ { time: 'Wed', value: 485.25 },
128
+ { time: 'Thu', value: 610.00 },
129
+ { time: 'Fri', value: 558.50 },
130
+ { time: 'Sat', value: 675.25 },
131
+ { time: 'Sun', value: 580.75 },
132
+ ],
133
+ isRevenue: true,
134
+ },
135
+ };
136
+
137
+ export const ThisYearRevenue: Story = {
138
+ args: {
139
+ title: 'Revenue',
140
+ subtitle: '2025',
141
+ data: [
142
+ { time: 'Jan', value: 1200 },
143
+ { time: 'Feb', value: 1350 },
144
+ { time: 'Mar', value: 1420 },
145
+ { time: 'Apr', value: 1600 },
146
+ { time: 'May', value: 1550 },
147
+ { time: 'Jun', value: 1750 },
148
+ { time: 'Jul', value: 1820 },
149
+ { time: 'Aug', value: 1680 },
150
+ { time: 'Sep', value: 1900 },
151
+ { time: 'Oct', value: 2100 },
152
+ { time: 'Nov', value: 1980 },
153
+ { time: 'Dec', value: 2250 },
154
+ ],
155
+ isRevenue: true,
156
+ },
157
+ };