@licklist/design 0.78.21 → 0.78.25

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 +168 -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 +154 -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 +344 -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 +468 -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 +132 -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 +215 -0
  158. package/src/v2/navigation/DashboardLayout/ProviderSidebar.scss +266 -0
  159. package/src/v2/navigation/DashboardLayout/ProviderSidebar.tsx +252 -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 +270 -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
@@ -1 +0,0 @@
1
- {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,MAAM,iBAAiB,GACzB,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,qBAAqB,GACrB,iBAAiB,GACjB,SAAS,GACT,cAAc,CAAA;AAElB,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA2BhD,CAAA"}
@@ -1,3 +0,0 @@
1
- export { Typography } from './Typography';
2
- export type { TypographyProps, TypographyVariant } from './Typography';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/Typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA"}
@@ -1,64 +0,0 @@
1
- @import '../../styles/tokens/colors';
2
-
3
- .color-swatch {
4
- display: flex;
5
- gap: 24px;
6
- align-items: center;
7
- width: 100%;
8
-
9
- &__preview {
10
- width: 142px;
11
- height: 48px;
12
- border-radius: 16px;
13
- border: 1px solid var(--color-border-primary);
14
- flex-shrink: 0;
15
- }
16
-
17
- &__details {
18
- flex: 1;
19
- display: flex;
20
- flex-direction: column;
21
- gap: 8px;
22
- }
23
-
24
- &__name {
25
- font-family: 'Geist', sans-serif;
26
- font-size: 15px;
27
- font-weight: 600;
28
- line-height: 18px;
29
- color: var(--color-label-primary);
30
- }
31
-
32
- &__hex,
33
- &__rgb {
34
- font-family: 'Geist Mono', monospace;
35
- font-size: 14px;
36
- font-weight: 400;
37
- line-height: 24px;
38
- color: var(--color-label-primary);
39
- background-color: var(--color-surface-hover);
40
- padding: 4px 8px;
41
- border-radius: 4px;
42
- display: inline-block;
43
- width: fit-content;
44
- }
45
- }
46
-
47
- .colors-showcase {
48
- margin-bottom: 48px;
49
-
50
- &__title {
51
- font-family: 'Geist', sans-serif;
52
- font-size: 20px;
53
- font-weight: 600;
54
- line-height: 24px;
55
- color: var(--color-label-primary);
56
- margin-bottom: 16px;
57
- }
58
-
59
- &__grid {
60
- display: flex;
61
- flex-direction: column;
62
- gap: 16px;
63
- }
64
- }
@@ -1,143 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react'
2
- import React from 'react'
3
- import { ColorsShowcase } from './Colors'
4
-
5
- export default {
6
- title: 'v2/Design System/Colors',
7
- component: ColorsShowcase,
8
- parameters: {
9
- layout: 'padded',
10
- },
11
- } as Meta
12
-
13
- type Story = StoryObj<typeof ColorsShowcase>
14
-
15
- const purples = {
16
- title: 'Purples',
17
- colors: [
18
- { name: 'purple.50', hex: '#efe6fd', rgb: 'RGB: 239, 230, 253' },
19
- { name: 'purple.100', hex: '#dccefb', rgb: 'RGB: 220, 206, 251' },
20
- { name: 'purple.200', hex: '#c49af7', rgb: 'RGB: 196, 154, 247' },
21
- { name: 'purple.300', hex: '#a866f3', rgb: 'RGB: 168, 102, 243' },
22
- { name: 'purple.400', hex: '#8c33ef', rgb: 'RGB: 140, 51, 239' },
23
- { name: 'purple.500', hex: '#7000eb', rgb: 'RGB: 112, 0, 235' },
24
- { name: 'purple.600', hex: '#5a00bc', rgb: 'RGB: 90, 0, 188' },
25
- { name: 'purple.700', hex: '#450091', rgb: 'RGB: 69, 0, 145' },
26
- { name: 'purple.800', hex: '#2f0064', rgb: 'RGB: 47, 0, 100' },
27
- { name: 'purple.900', hex: '#1a0036', rgb: 'RGB: 26, 0, 54' },
28
- ],
29
- }
30
-
31
- const labels = {
32
- title: 'Labels - Text Colors',
33
- colors: [
34
- { name: 'label.primary', hex: '#121e52', description: 'Main text color' },
35
- { name: 'label.secondary', hex: '#626a90', description: 'Secondary text' },
36
- { name: 'label.tertiary', hex: '#979db2', description: 'Tertiary text' },
37
- { name: 'label.disabled', hex: '#c2c7d4', description: 'Disabled text' },
38
- { name: 'label.inverse', hex: '#ffffff', description: 'Text on dark backgrounds' },
39
- ],
40
- }
41
-
42
- const surfaces = {
43
- title: 'Surfaces - Background Colors',
44
- colors: [
45
- { name: 'surface.primary', hex: '#ffffff', description: 'Main background' },
46
- { name: 'surface.secondary', hex: '#f8f8fa', description: 'Secondary background' },
47
- { name: 'surface.tertiary', hex: '#e8e9ef', description: 'Tertiary background' },
48
- { name: 'surface.hover', hex: '#f0f0f2', description: 'Hover state' },
49
- { name: 'surface.active', hex: '#e8e9ef', description: 'Active state' },
50
- ],
51
- }
52
-
53
- const borders = {
54
- title: 'Borders',
55
- colors: [
56
- { name: 'border.primary', hex: '#e8e9ef', description: 'Main border color' },
57
- { name: 'border.secondary', hex: '#d4d6dd', description: 'Secondary border' },
58
- { name: 'border.focus', hex: '#7000eb', description: 'Focus border' },
59
- ],
60
- }
61
-
62
- const brand = {
63
- title: 'Brand Colors',
64
- colors: [
65
- { name: 'primary', hex: '#7000eb', description: 'Main brand color' },
66
- { name: 'primary.hover', hex: '#5a00bc', description: 'Hover state' },
67
- { name: 'primary.active', hex: '#450091', description: 'Active state' },
68
- { name: 'primary.focus', hex: '#8c33ef', description: 'Focus state' },
69
- ],
70
- }
71
-
72
- const status = {
73
- title: 'Status Colors (Legacy)',
74
- colors: [
75
- { name: 'success', hex: '#10b981', description: 'Success state' },
76
- { name: 'success.light', hex: '#d1fae5', description: 'Success background' },
77
- { name: 'error', hex: '#ef4444', description: 'Error state' },
78
- { name: 'error.light', hex: '#fee2e2', description: 'Error background' },
79
- { name: 'warning', hex: '#f59e0b', description: 'Warning state' },
80
- { name: 'warning.light', hex: '#fef3c7', description: 'Warning background' },
81
- { name: 'info', hex: '#3b82f6', description: 'Info state' },
82
- { name: 'info.light', hex: '#dbeafe', description: 'Info background' },
83
- ],
84
- }
85
-
86
- const statusTokens = {
87
- title: 'Status Colors (Figma Alerts & Errors)',
88
- colors: [
89
- { name: 'success.fill', hex: '#2d6b18', description: 'Success fill/icon color' },
90
- { name: 'success.background', hex: '#eef9ea', description: 'Success background' },
91
- { name: 'success.border', hex: '#c9ecbd', description: 'Success border color' },
92
- { name: 'error.fill', hex: '#cc3c35', description: 'Error fill/icon color' },
93
- { name: 'error.background', hex: '#fceceb', description: 'Error background' },
94
- { name: 'error.border', hex: '#f5c4c2', description: 'Error border color' },
95
- { name: 'alert.fill', hex: '#fd7e14', description: 'Alert fill/icon color' },
96
- { name: 'alert.background', hex: '#fcf6e7', description: 'Alert background' },
97
- { name: 'alert.border', hex: '#f6e3b4', description: 'Alert border color' },
98
- { name: 'info.fill', hex: '#0e8ce2', description: 'Info fill/icon color' },
99
- { name: 'info.background', hex: '#e7f4fc', description: 'Info background' },
100
- { name: 'info.border', hex: '#b4dbf6', description: 'Info border color' },
101
- ],
102
- }
103
-
104
- export const PurpleScale: Story = {
105
- render: () => <ColorsShowcase {...purples} />,
106
- }
107
-
108
- export const Labels: Story = {
109
- render: () => <ColorsShowcase {...labels} />,
110
- }
111
-
112
- export const Surfaces: Story = {
113
- render: () => <ColorsShowcase {...surfaces} />,
114
- }
115
-
116
- export const Borders: Story = {
117
- render: () => <ColorsShowcase {...borders} />,
118
- }
119
-
120
- export const Brand: Story = {
121
- render: () => <ColorsShowcase {...brand} />,
122
- }
123
-
124
- export const Status: Story = {
125
- render: () => <ColorsShowcase {...status} />,
126
- }
127
-
128
- export const StatusTokens: Story = {
129
- render: () => <ColorsShowcase {...statusTokens} />,
130
- }
131
-
132
- export const AllColors: Story = {
133
- render: () => (
134
- <div>
135
- <ColorsShowcase {...purples} />
136
- <ColorsShowcase {...labels} />
137
- <ColorsShowcase {...surfaces} />
138
- <ColorsShowcase {...borders} />
139
- <ColorsShowcase {...brand} />
140
- <ColorsShowcase {...status} />
141
- </div>
142
- ),
143
- }
@@ -1,51 +0,0 @@
1
- import React from 'react'
2
- import './Colors.scss'
3
-
4
- interface ColorSwatchProps {
5
- name: string
6
- hex: string
7
- rgb?: string
8
- className?: string
9
- }
10
-
11
- export const ColorSwatch: React.FC<ColorSwatchProps> = ({ name, hex, rgb, className }) => {
12
- return (
13
- <div className={`color-swatch ${className || ''}`}>
14
- <div className="color-swatch__preview" style={{ backgroundColor: hex }} />
15
- <div className="color-swatch__details">
16
- <div className="color-swatch__name">{name}</div>
17
- <div className="color-swatch__hex">{hex}</div>
18
- {rgb && <div className="color-swatch__rgb">{rgb}</div>}
19
- </div>
20
- </div>
21
- )
22
- }
23
-
24
- export interface ColorGroup {
25
- title: string
26
- colors: {
27
- name: string
28
- hex: string
29
- rgb?: string
30
- description?: string
31
- }[]
32
- }
33
-
34
- export const ColorsShowcase: React.FC<ColorGroup> = ({ title, colors }) => {
35
- return (
36
- <div className="colors-showcase">
37
- <h3 className="colors-showcase__title">{title}</h3>
38
- <div className="colors-showcase__grid">
39
- {colors.map((color) => (
40
- <ColorSwatch
41
- key={color.name}
42
- name={color.name}
43
- hex={color.hex}
44
- rgb={color.rgb}
45
- className={color.description ? 'color-swatch--with-description' : ''}
46
- />
47
- ))}
48
- </div>
49
- </div>
50
- )
51
- }
@@ -1,285 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react'
2
- import React from 'react'
3
-
4
- export default {
5
- title: 'v2/Design System/Color Aliases',
6
- parameters: {
7
- layout: 'padded',
8
- },
9
- } as Meta
10
-
11
- type Story = StoryObj
12
-
13
- export const Labels: Story = {
14
- render: () => (
15
- <div>
16
- <h2>Label Colors - Text Alias Tokens</h2>
17
- <div style={{ display: 'flex', flexDirection: 'column', gap: '16px', marginTop: '24px' }}>
18
- <div style={{ padding: '16px', backgroundColor: '#ffffff', border: '1px solid #e8e9ef', borderRadius: '8px' }}>
19
- <div style={{ color: 'var(--labels-main-label-primary, #121e52)', fontSize: '15px', fontWeight: 600, marginBottom: '8px' }}>
20
- label-primary
21
- </div>
22
- <div style={{ fontFamily: 'monospace', fontSize: '14px', color: 'var(--labels-main-label-primary, #121e52)' }}>
23
- var(--labels-main-label-primary, #121e52)
24
- </div>
25
- <div style={{ fontFamily: 'monospace', fontSize: '12px', marginTop: '4px', color: '#626a90' }}>
26
- #121e52
27
- </div>
28
- </div>
29
-
30
- <div style={{ padding: '16px', backgroundColor: '#ffffff', border: '1px solid #e8e9ef', borderRadius: '8px' }}>
31
- <div style={{ color: 'var(--labels-main-label-secondary, #626a90)', fontSize: '15px', fontWeight: 600, marginBottom: '8px' }}>
32
- label-secondary
33
- </div>
34
- <div style={{ fontFamily: 'monospace', fontSize: '14px', color: 'var(--labels-main-label-secondary, #626a90)' }}>
35
- var(--labels-main-label-secondary, #626a90)
36
- </div>
37
- <div style={{ fontFamily: 'monospace', fontSize: '12px', marginTop: '4px', color: '#626a90' }}>
38
- #626a90
39
- </div>
40
- </div>
41
-
42
- <div style={{ padding: '16px', backgroundColor: '#ffffff', border: '1px solid #e8e9ef', borderRadius: '8px' }}>
43
- <div style={{ color: 'var(--labels-main-label-tertiary, #979db2)', fontSize: '15px', fontWeight: 600, marginBottom: '8px' }}>
44
- label-tertiary
45
- </div>
46
- <div style={{ fontFamily: 'monospace', fontSize: '14px', color: 'var(--labels-main-label-tertiary, #979db2)' }}>
47
- var(--labels-main-label-tertiary, #979db2)
48
- </div>
49
- <div style={{ fontFamily: 'monospace', fontSize: '12px', marginTop: '4px', color: '#626a90' }}>
50
- #979db2
51
- </div>
52
- </div>
53
-
54
- <div style={{ padding: '16px', backgroundColor: '#ffffff', border: '1px solid #e8e9ef', borderRadius: '8px' }}>
55
- <div style={{ color: 'var(--labels-main-label-disabled, #c2c7d4)', fontSize: '15px', fontWeight: 600, marginBottom: '8px' }}>
56
- label-disabled
57
- </div>
58
- <div style={{ fontFamily: 'monospace', fontSize: '14px', color: 'var(--labels-main-label-disabled, #c2c7d4)' }}>
59
- var(--labels-main-label-disabled, #c2c7d4)
60
- </div>
61
- <div style={{ fontFamily: 'monospace', fontSize: '12px', marginTop: '4px', color: '#626a90' }}>
62
- #c2c7d4
63
- </div>
64
- </div>
65
-
66
- <div style={{ padding: '16px', backgroundColor: '#14215a', border: '1px solid #e8e9ef', borderRadius: '8px' }}>
67
- <div style={{ color: 'var(--labels-main-label-inverse, #ffffff)', fontSize: '15px', fontWeight: 600, marginBottom: '8px' }}>
68
- label-inverse
69
- </div>
70
- <div style={{ fontFamily: 'monospace', fontSize: '14px', color: 'var(--labels-main-label-inverse, #ffffff)' }}>
71
- var(--labels-main-label-inverse, #ffffff)
72
- </div>
73
- <div style={{ fontFamily: 'monospace', fontSize: '12px', marginTop: '4px', color: '#626a90' }}>
74
- #ffffff
75
- </div>
76
- </div>
77
- </div>
78
- </div>
79
- ),
80
- }
81
-
82
- export const Surfaces: Story = {
83
- render: () => (
84
- <div>
85
- <h2>Surface Colors - Background Alias Tokens</h2>
86
- <div style={{ display: 'flex', flexDirection: 'column', gap: '16px', marginTop: '24px' }}>
87
- <div style={{ padding: '16px', backgroundColor: 'var(--surfaces-main-background-primary, #ffffff)', border: '1px solid #e8e9ef', borderRadius: '8px' }}>
88
- <div style={{ color: 'var(--labels-main-label-primary, #121e52)', fontSize: '15px', fontWeight: 600, marginBottom: '8px' }}>
89
- background-primary
90
- </div>
91
- <div style={{ fontFamily: 'monospace', fontSize: '14px', color: 'var(--labels-main-label-primary, #121e52)' }}>
92
- var(--surfaces-main-background-primary, #ffffff)
93
- </div>
94
- <div style={{ fontFamily: 'monospace', fontSize: '12px', marginTop: '4px', color: '#626a90' }}>
95
- #ffffff
96
- </div>
97
- </div>
98
-
99
- <div style={{ padding: '16px', backgroundColor: 'var(--surfaces-main-background-secondary, #f8f8fa)', border: '1px solid #e8e9ef', borderRadius: '8px' }}>
100
- <div style={{ color: 'var(--labels-main-label-primary, #121e52)', fontSize: '15px', fontWeight: 600, marginBottom: '8px' }}>
101
- background-secondary
102
- </div>
103
- <div style={{ fontFamily: 'monospace', fontSize: '14px', color: 'var(--labels-main-label-primary, #121e52)' }}>
104
- var(--surfaces-main-background-secondary, #f8f8fa)
105
- </div>
106
- <div style={{ fontFamily: 'monospace', fontSize: '12px', marginTop: '4px', color: '#626a90' }}>
107
- #f8f8fa
108
- </div>
109
- </div>
110
-
111
- <div style={{ padding: '16px', backgroundColor: 'var(--surfaces-main-background-secondary-hover, #e8e9ef)', border: '1px solid #e8e9ef', borderRadius: '8px' }}>
112
- <div style={{ color: 'var(--labels-main-label-primary, #121e52)', fontSize: '15px', fontWeight: 600, marginBottom: '8px' }}>
113
- background-secondary-hover
114
- </div>
115
- <div style={{ fontFamily: 'monospace', fontSize: '14px', color: 'var(--labels-main-label-primary, #121e52)' }}>
116
- var(--surfaces-main-background-secondary-hover, #e8e9ef)
117
- </div>
118
- <div style={{ fontFamily: 'monospace', fontSize: '12px', marginTop: '4px', color: '#626a90' }}>
119
- #e8e9ef
120
- </div>
121
- </div>
122
- </div>
123
- </div>
124
- ),
125
- }
126
-
127
- export const Borders: Story = {
128
- render: () => (
129
- <div>
130
- <h2>Border Colors - Alias Tokens</h2>
131
- <div style={{ display: 'flex', flexDirection: 'column', gap: '16px', marginTop: '24px' }}>
132
- <div style={{ padding: '16px', backgroundColor: '#ffffff', border: '2px solid var(--borders-main-border-primary, #e8e9ef)', borderRadius: '8px' }}>
133
- <div style={{ color: 'var(--labels-main-label-primary, #121e52)', fontSize: '15px', fontWeight: 600, marginBottom: '8px' }}>
134
- border-primary
135
- </div>
136
- <div style={{ fontFamily: 'monospace', fontSize: '14px', color: 'var(--labels-main-label-primary, #121e52)' }}>
137
- var(--borders-main-border-primary, #e8e9ef)
138
- </div>
139
- <div style={{ fontFamily: 'monospace', fontSize: '12px', marginTop: '4px', color: '#626a90' }}>
140
- #e8e9ef
141
- </div>
142
- </div>
143
- </div>
144
- </div>
145
- ),
146
- }
147
-
148
- export const AdditionalAliases: Story = {
149
- render: () => (
150
- <div>
151
- <h2>Additional Alias Tokens</h2>
152
- <div style={{ display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)', gap: '16px', marginTop: '24px' }}>
153
- {/* Labels */}
154
- <div>
155
- <h3 style={{ marginBottom: '12px', color: 'var(--labels-main-label-primary, #121e52)', fontSize: '18px', fontWeight: 600 }}>Labels</h3>
156
- {['primary', 'secondary', 'tertiary', 'disabled', 'inverse'].map((label) => (
157
- <div key={label} style={{ padding: '8px', backgroundColor: label === 'inverse' ? '#14215a' : '#ffffff', borderRadius: '4px', marginBottom: '8px' }}>
158
- <div style={{ fontFamily: 'monospace', fontSize: '12px', color: label === 'inverse' ? '#ffffff' : '#121e52' }}>
159
- --labels-main-label-{label}
160
- </div>
161
- </div>
162
- ))}
163
- </div>
164
-
165
- {/* Surfaces */}
166
- <div>
167
- <h3 style={{ marginBottom: '12px', color: 'var(--labels-main-label-primary, #121e52)', fontSize: '18px', fontWeight: 600 }}>Surfaces</h3>
168
- {['primary', 'secondary', 'secondary-hover', 'tertiary', 'active', 'focus'].map((surface) => (
169
- <div key={surface} style={{ padding: '8px', backgroundColor: '#ffffff', borderRadius: '4px', marginBottom: '8px' }}>
170
- <div style={{ fontFamily: 'monospace', fontSize: '12px', color: '#121e52' }}>
171
- --surfaces-main-background-{surface.replace(/-/g, '-')}
172
- </div>
173
- </div>
174
- ))}
175
- </div>
176
-
177
- {/* Borders */}
178
- <div>
179
- <h3 style={{ marginBottom: '12px', color: 'var(--labels-main-label-primary, #121e52)', fontSize: '18px', fontWeight: 600 }}>Borders</h3>
180
- {['primary', 'secondary', 'colour-overlay', 'focus'].map((border) => (
181
- <div key={border} style={{ padding: '8px', backgroundColor: '#ffffff', borderRadius: '4px', marginBottom: '8px' }}>
182
- <div style={{ fontFamily: 'monospace', fontSize: '12px', color: '#121e52' }}>
183
- --borders-main-border-{border.replace(/-/g, '-')}
184
- </div>
185
- </div>
186
- ))}
187
- </div>
188
-
189
- {/* Fills */}
190
- <div>
191
- <h3 style={{ marginBottom: '12px', color: 'var(--labels-main-label-primary, #121e52)', fontSize: '18px', fontWeight: 600 }}>Fills</h3>
192
- {['primary', 'secondary', 'disabled'].map((fill) => (
193
- <div key={fill} style={{ padding: '8px', backgroundColor: '#ffffff', borderRadius: '4px', marginBottom: '8px' }}>
194
- <div style={{ fontFamily: 'monospace', fontSize: '12px', color: '#121e52' }}>
195
- --fills-main-fill-{fill}
196
- </div>
197
- </div>
198
- ))}
199
- </div>
200
-
201
- {/* Color Surfaces */}
202
- <div>
203
- <h3 style={{ marginBottom: '12px', color: 'var(--labels-main-label-primary, #121e52)', fontSize: '18px', fontWeight: 600 }}>Color Surfaces</h3>
204
- {['teal', 'orange', 'green', 'red'].map((colour) => (
205
- <div key={colour} style={{ padding: '8px', backgroundColor: '#ffffff', borderRadius: '4px', marginBottom: '8px' }}>
206
- <div style={{ fontFamily: 'monospace', fontSize: '12px', color: '#121e52' }}>
207
- --surfaces-colour-{colour}
208
- </div>
209
- </div>
210
- ))}
211
- </div>
212
-
213
- {/* Spacing Shortcuts */}
214
- <div>
215
- <h3 style={{ marginBottom: '12px', color: 'var(--labels-main-label-primary, #121e52)', fontSize: '18px', fontWeight: 600 }}>Spacing Shortcuts</h3>
216
- {['25', '50', '100'].map((spacing) => (
217
- <div key={spacing} style={{ padding: '8px', backgroundColor: '#ffffff', borderRadius: '4px', marginBottom: '8px' }}>
218
- <div style={{ fontFamily: 'monospace', fontSize: '12px', color: '#121e52' }}>
219
- --spacing-{spacing}
220
- </div>
221
- </div>
222
- ))}
223
- </div>
224
-
225
- {/* Radius Shortcuts */}
226
- <div>
227
- <h3 style={{ marginBottom: '12px', color: 'var(--labels-main-label-primary, #121e52)', fontSize: '18px', fontWeight: 600 }}>Radius Shortcuts</h3>
228
- <div style={{ padding: '8px', backgroundColor: '#ffffff', borderRadius: '4px' }}>
229
- <div style={{ fontFamily: 'monospace', fontSize: '12px', color: '#121e52' }}>
230
- --radius-50
231
- </div>
232
- </div>
233
- </div>
234
-
235
- {/* Opacity Tokens */}
236
- <div>
237
- <h3 style={{ marginBottom: '12px', color: 'var(--labels-main-label-primary, #121e52)', fontSize: '18px', fontWeight: 600 }}>Opacity Aliases</h3>
238
- {[100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0].map((opacity) => (
239
- <div key={opacity} style={{ padding: '8px', backgroundColor: '#ffffff', borderRadius: '4px', marginBottom: '8px' }}>
240
- <div style={{ fontFamily: 'monospace', fontSize: '12px', color: '#121e52' }}>
241
- --opacity-{opacity}-percent
242
- </div>
243
- </div>
244
- ))}
245
- </div>
246
- </div>
247
- </div>
248
- ),
249
- }
250
-
251
- export const Usage: Story = {
252
- render: () => (
253
- <div>
254
- <h2>Using Color Aliases</h2>
255
- <div style={{ marginTop: '24px' }}>
256
- <h3 style={{ marginBottom: '16px', color: 'var(--labels-main-label-primary, #121e52)' }}>In CSS:</h3>
257
- <pre style={{ background: '#f8f8fa', padding: '16px', borderRadius: '8px', fontFamily: 'monospace', fontSize: '14px' }}>
258
- {`.my-text {
259
- color: var(--labels-main-label-primary, #121e52);
260
- }
261
-
262
- .my-background {
263
- background-color: var(--surfaces-main-background-primary, #ffffff);
264
- border: 1px solid var(--borders-main-border-primary, #e8e9ef);
265
- }`}
266
- </pre>
267
- </div>
268
- <div style={{ marginTop: '24px' }}>
269
- <h3 style={{ marginBottom: '16px', color: 'var(--labels-main-label-primary, #121e52)' }}>In SCSS (using mixins):</h3>
270
- <pre style={{ background: '#f8f8fa', padding: '16px', borderRadius: '8px', fontFamily: 'monospace', fontSize: '14px' }}>
271
- {`@import 'styles/tokens/aliases';
272
-
273
- .my-text {
274
- @include label-primary;
275
- }
276
-
277
- .my-background {
278
- @include surface-primary;
279
- @include border-primary;
280
- }`}
281
- </pre>
282
- </div>
283
- </div>
284
- ),
285
- }