@licklist/design 0.78.5-dev.111 → 0.78.5-dev.113

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 (90) hide show
  1. package/dist/index.js +2 -0
  2. package/dist/v2/components/AccountManagerCard/AccountManagerCard.scss.js +1 -1
  3. package/dist/v2/components/ActionMenu/ActionMenu.scss.js +1 -1
  4. package/dist/v2/components/Alert/Alert.scss.js +1 -1
  5. package/dist/v2/components/AvatarUpload/AvatarUpload.scss.js +1 -1
  6. package/dist/v2/components/Badge/Badge.scss.js +1 -1
  7. package/dist/v2/components/Checkbox/Checkbox.d.ts.map +1 -1
  8. package/dist/v2/components/Checkbox/Checkbox.js +10 -50
  9. package/dist/v2/components/Checkbox/Checkbox.scss.js +1 -1
  10. package/dist/v2/components/ColorPicker/ColorPicker.d.ts +15 -0
  11. package/dist/v2/components/ColorPicker/ColorPicker.d.ts.map +1 -0
  12. package/dist/v2/components/ColorPicker/ColorPicker.js +40 -0
  13. package/dist/v2/components/ColorPicker/ColorPicker.scss.js +6 -0
  14. package/dist/v2/components/ColorPicker/index.d.ts +2 -0
  15. package/dist/v2/components/ColorPicker/index.d.ts.map +1 -0
  16. package/dist/v2/components/DataTable/DataTable.scss.js +1 -1
  17. package/dist/v2/components/EmptyState/EmptyState.scss.js +1 -1
  18. package/dist/v2/components/FeatureCard/FeatureCard.d.ts +11 -0
  19. package/dist/v2/components/FeatureCard/FeatureCard.d.ts.map +1 -0
  20. package/dist/v2/components/FeatureCard/FeatureCard.js +40 -0
  21. package/dist/v2/components/FeatureCard/FeatureCard.scss.js +6 -0
  22. package/dist/v2/components/FeatureCard/index.d.ts +3 -0
  23. package/dist/v2/components/FeatureCard/index.d.ts.map +1 -0
  24. package/dist/v2/components/FeatureToggle/FeatureToggle.scss.js +1 -1
  25. package/dist/v2/components/FormField/FormField.scss.js +1 -1
  26. package/dist/v2/components/IconButton/IconButton.d.ts +5 -1
  27. package/dist/v2/components/IconButton/IconButton.d.ts.map +1 -1
  28. package/dist/v2/components/IconButton/IconButton.js +28 -3
  29. package/dist/v2/components/IconButton/IconButton.scss.js +1 -1
  30. package/dist/v2/components/InfoGrid/InfoGrid.scss.js +1 -1
  31. package/dist/v2/components/NotificationBanner/NotificationBanner.scss.js +1 -1
  32. package/dist/v2/components/PeriodCard/PeriodCard.d.ts +18 -4
  33. package/dist/v2/components/PeriodCard/PeriodCard.d.ts.map +1 -1
  34. package/dist/v2/components/PeriodCard/PeriodCard.js +46 -6
  35. package/dist/v2/components/StatusBadge/StatusBadge.scss.js +1 -1
  36. package/dist/v2/components/TableControls/TableControls.scss.js +1 -1
  37. package/dist/v2/components/Tabs/Tabs.scss.js +1 -1
  38. package/dist/v2/components/WYSIWYGEditor/WYSIWYGEditor.scss.js +1 -1
  39. package/dist/v2/components/index.d.ts +4 -0
  40. package/dist/v2/components/index.d.ts.map +1 -1
  41. package/dist/v2/icons/index.d.ts +19 -2
  42. package/dist/v2/icons/index.d.ts.map +1 -1
  43. package/dist/v2/icons/index.js +21 -4
  44. package/dist/v2/navigation/DashboardLayout/DashboardLayout.d.ts.map +1 -1
  45. package/dist/v2/navigation/DashboardLayout/DashboardLayout.js +14 -11
  46. package/dist/v2/navigation/DashboardLayout/DashboardLayout.scss.js +1 -1
  47. package/dist/v2/navigation/DashboardLayout/ProviderSidebar.scss.js +1 -1
  48. package/dist/v2/pages/Settings/SettingsPage.scss.js +1 -1
  49. package/dist/v2/pages/Settings/SettingsTabs.scss.js +1 -1
  50. package/dist/v2/pages/Settings/components/SidebarCustomisation.js +2 -0
  51. package/dist/v2/pages/Settings/components/SidebarCustomisation.scss.js +1 -1
  52. package/dist/v2/pages/Settings/components/SidebarNavItem.js +2 -0
  53. package/dist/v2/pages/Settings/components/SidebarNavItem.scss.js +1 -1
  54. package/dist/v2/pages/SettingsSubPage/SettingsSubPage.d.ts +1 -0
  55. package/dist/v2/pages/SettingsSubPage/SettingsSubPage.d.ts.map +1 -1
  56. package/dist/v2/pages/SettingsSubPage/SettingsSubPage.js +2 -2
  57. package/dist/v2/pages/SettingsSubPage/SettingsSubPage.scss.js +1 -1
  58. package/dist/v2/styles/form/NewInput.scss +11 -0
  59. package/dist/v2/styles/form/NewInput.scss.js +1 -1
  60. package/dist/v2/styles/tokens/_colors.scss +19 -0
  61. package/dist/v2/utils/colourPicker/colors.d.ts +8 -0
  62. package/dist/v2/utils/colourPicker/colors.d.ts.map +1 -0
  63. package/dist/v2/utils/timeFormat/formatTime.d.ts +14 -0
  64. package/dist/v2/utils/timeFormat/formatTime.d.ts.map +1 -0
  65. package/package.json +3 -3
  66. package/src/v2/components/Badge/Badge.scss +1 -2
  67. package/src/v2/components/Checkbox/Checkbox.scss +37 -57
  68. package/src/v2/components/Checkbox/Checkbox.tsx +6 -44
  69. package/src/v2/components/ColorPicker/ColorPicker.scss +96 -0
  70. package/src/v2/components/ColorPicker/ColorPicker.stories.tsx +68 -0
  71. package/src/v2/components/ColorPicker/ColorPicker.tsx +49 -0
  72. package/src/v2/components/ColorPicker/index.ts +1 -0
  73. package/src/v2/components/FeatureCard/FeatureCard.scss +65 -0
  74. package/src/v2/components/FeatureCard/FeatureCard.stories.tsx +42 -0
  75. package/src/v2/components/FeatureCard/FeatureCard.tsx +37 -0
  76. package/src/v2/components/FeatureCard/index.ts +2 -0
  77. package/src/v2/components/IconButton/IconButton.scss +1 -1
  78. package/src/v2/components/IconButton/IconButton.tsx +41 -2
  79. package/src/v2/components/PeriodCard/PeriodCard.tsx +76 -13
  80. package/src/v2/components/index.ts +6 -0
  81. package/src/v2/icons/index.tsx +29 -4
  82. package/src/v2/navigation/DashboardLayout/DashboardLayout.scss +6 -0
  83. package/src/v2/navigation/DashboardLayout/DashboardLayout.tsx +4 -2
  84. package/src/v2/navigation/DashboardLayout/ProviderSidebar.scss +8 -0
  85. package/src/v2/pages/SettingsSubPage/SettingsSubPage.scss +4 -4
  86. package/src/v2/pages/SettingsSubPage/SettingsSubPage.tsx +3 -1
  87. package/src/v2/styles/form/NewInput.scss +11 -0
  88. package/src/v2/styles/tokens/_colors.scss +19 -0
  89. package/src/v2/utils/colourPicker/colors.ts +17 -0
  90. package/src/v2/utils/timeFormat/formatTime.ts +18 -0
@@ -4,7 +4,7 @@
4
4
  align-self: stretch;
5
5
 
6
6
  &__back {
7
- padding: 24px 32px 0 0;
7
+ padding: 24px 0 0 0;
8
8
  align-self: flex-start;
9
9
 
10
10
  .ghost-button {
@@ -23,15 +23,15 @@
23
23
  }
24
24
 
25
25
  @media (max-width: 768px) {
26
- padding: 16px 16px 0 0;
26
+ padding: 16px 0 0 0;
27
27
  }
28
28
  }
29
29
 
30
30
  &__content {
31
- padding: 24px 0;
31
+ padding: 0;
32
32
 
33
33
  @media (max-width: 768px) {
34
- padding: 0;
34
+ padding: 16px 0;
35
35
  }
36
36
  }
37
37
 
@@ -11,6 +11,7 @@ export interface SettingsSubPageProps {
11
11
  actionLabel?: string
12
12
  onAction?: () => void
13
13
  children?: React.ReactNode
14
+ showDivider?: boolean
14
15
  }
15
16
 
16
17
  export const SettingsSubPage: React.FC<SettingsSubPageProps> = ({
@@ -20,6 +21,7 @@ export const SettingsSubPage: React.FC<SettingsSubPageProps> = ({
20
21
  actionLabel,
21
22
  onAction,
22
23
  children,
24
+ showDivider = true,
23
25
  }) => {
24
26
  return (
25
27
  <div className="settings-sub-page">
@@ -32,7 +34,7 @@ export const SettingsSubPage: React.FC<SettingsSubPageProps> = ({
32
34
  )}
33
35
  <NewPageHeader
34
36
  title={title}
35
- showDivider
37
+ showDivider={showDivider}
36
38
  />
37
39
  <div className="settings-sub-page__content">
38
40
  {onAction && actionLabel && (
@@ -73,6 +73,17 @@
73
73
  &[type="time"]::-webkit-datetime-edit-ampm-field {
74
74
  color: var(--label-primary, #121e52);
75
75
  }
76
+
77
+ &[type="time"],
78
+ &[type="date"] {
79
+ -webkit-appearance: none;
80
+ appearance: none;
81
+ text-align: left;
82
+
83
+ &::-webkit-date-and-time-value {
84
+ text-align: left;
85
+ }
86
+ }
76
87
  }
77
88
 
78
89
  &__textarea {
@@ -116,6 +116,16 @@
116
116
  --pink-800: #80224D;
117
117
  --pink-900: #611A3B;
118
118
 
119
+ --grey-100: #F8F8FA;
120
+ --grey-200: #E8E9EF;
121
+ --grey-300: #D2D5E3;
122
+ --grey-400: #B6BACC;
123
+ --grey-500: #9399B3;
124
+ --grey-600: #626A90;
125
+ --grey-700: #433D7B;
126
+ --grey-800: #14215A;
127
+ --grey-900: #0B1232;
128
+
119
129
  /* Teals */
120
130
  --teal-50: #E9FAF7;
121
131
  --teal-100: #BAF0E7;
@@ -218,6 +228,15 @@
218
228
  --pink-darker: var(--pink-700);
219
229
  --pink-darkest: var(--pink-800);
220
230
 
231
+ /* Grey Scale */
232
+ --grey-lightest: var(--grey-50);
233
+ --grey-lighter: var(--grey-100);
234
+ --grey-light: var(--grey-300);
235
+ --grey-regular: var(--grey-500);
236
+ --grey-dark: var(--grey-600);
237
+ --grey-darker: var(--grey-700);
238
+ --grey-darkest: var(--grey-800);
239
+
221
240
  /* Green Scale */
222
241
  --green-lightest: var(--green-50);
223
242
  --green-lighter: var(--green-100);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Standard color palette for pricing periods and other color picker components
3
+ */
4
+ export const COLORS = [
5
+ { name: 'red', hex: '#E0423A' },
6
+ { name: 'orange', hex: '#FD7E14' },
7
+ { name: 'yellow', hex: '#FBB912' },
8
+ { name: 'green', hex: '#52C22B' },
9
+ { name: 'teal', hex: '#22CEB1' },
10
+ { name: 'cyan', hex: '#2BD9FF' },
11
+ { name: 'blue', hex: '#0E8CE2' },
12
+ { name: 'indigo', hex: '#5D5BF4' },
13
+ { name: 'purple', hex: '#6200EE' },
14
+ { name: 'pink', hex: '#EC1479' },
15
+ { name: 'grey', hex: '#9399B3' },
16
+ ]
17
+
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Formats time from "HH:mm:ss" to "HH:mm" format
3
+ * Useful for converting HTML time input values to backend-compatible format
4
+ *
5
+ * @param time - Time string in "HH:mm:ss" or "HH:mm" format
6
+ * @returns Time string in "HH:mm" format, or undefined if input is undefined
7
+ *
8
+ * @example
9
+ * formatTimeToHHMM("09:00:00") // returns "09:00"
10
+ * formatTimeToHHMM("17:30") // returns "17:30"
11
+ * formatTimeToHHMM(undefined) // returns undefined
12
+ */
13
+ export const formatTimeToHHMM = (time?: string): string | undefined => {
14
+ if (!time) return undefined
15
+ // Extract HH:mm from HH:mm:ss (or return as-is if already HH:mm)
16
+ return time.substring(0, 5)
17
+ }
18
+