@flikk/ui 1.0.0-beta.13 → 1.0.0-beta.14

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 (47) hide show
  1. package/dist/components/ai/PromptInput/PromptInput.js +1 -1
  2. package/dist/components/ai/PromptInput/VoiceRecorder.js +1 -1
  3. package/dist/components/ai/PromptSuggestions/PromptSuggestion.theme.js +1 -1
  4. package/dist/components/charts/FunnelChart/FunnelChart.js +2 -2
  5. package/dist/components/core/Badge/Badge.js +3 -3
  6. package/dist/components/core/Badge/Badge.theme.js +5 -5
  7. package/dist/components/core/Badge/Badge.types.d.ts +1 -1
  8. package/dist/components/core/Button/Button.ripple.js +1 -1
  9. package/dist/components/core/Button/Button.theme.d.ts +1 -1
  10. package/dist/components/core/Button/Button.theme.js +3 -3
  11. package/dist/components/core/Button/Button.types.d.ts +1 -1
  12. package/dist/components/core/Calendar/CalendarMini/CalendarMini.js +2 -2
  13. package/dist/components/core/Drawer/DrawerHeader.js +1 -1
  14. package/dist/components/core/Link/Link.js +1 -1
  15. package/dist/components/core/Modal/ModalHeader.js +1 -1
  16. package/dist/components/core/NavItem/NavItem.js +100 -52
  17. package/dist/components/core/NavItem/NavItem.theme.js +6 -3
  18. package/dist/components/core/NavItem/NavItem.types.d.ts +44 -30
  19. package/dist/components/core/NavItem/index.d.ts +1 -1
  20. package/dist/components/core/Pill/Pill.theme.js +1 -1
  21. package/dist/components/core/Sidebar/Sidebar.d.ts +11 -1
  22. package/dist/components/core/Sidebar/Sidebar.js +49 -16
  23. package/dist/components/core/Sidebar/Sidebar.theme.js +9 -7
  24. package/dist/components/core/Sidebar/Sidebar.types.d.ts +57 -0
  25. package/dist/components/core/Sidebar/SidebarContent.js +3 -1
  26. package/dist/components/core/Sidebar/SidebarContext.d.ts +14 -0
  27. package/dist/components/core/Sidebar/SidebarContext.js +63 -11
  28. package/dist/components/core/Sidebar/SidebarFooter.js +3 -1
  29. package/dist/components/core/Sidebar/SidebarHeader.js +6 -2
  30. package/dist/components/core/Sidebar/SidebarMobileTrigger.d.ts +3 -0
  31. package/dist/components/core/Sidebar/SidebarMobileTrigger.js +28 -0
  32. package/dist/components/core/Sidebar/SidebarNav.js +3 -2
  33. package/dist/components/core/Sidebar/SidebarNavGroup.js +4 -2
  34. package/dist/components/core/Sidebar/SidebarToggle.js +1 -1
  35. package/dist/components/core/Sidebar/SidebarUserProfile.d.ts +3 -0
  36. package/dist/components/core/Sidebar/SidebarUserProfile.js +35 -0
  37. package/dist/components/core/Sidebar/index.d.ts +3 -1
  38. package/dist/components/core/Tabs/Tabs.theme.d.ts +1 -1
  39. package/dist/components/core/Tabs/Tabs.theme.js +3 -3
  40. package/dist/components/core/index.js +2 -0
  41. package/dist/components/data-display/GanttChart/GanttToolbar.js +1 -1
  42. package/dist/components/forms/RichTextEditor/RichTextEditor.js +10 -10
  43. package/dist/index.js +2 -0
  44. package/dist/styles.css +1 -1
  45. package/package.json +1 -1
  46. package/src/global.scss +1 -0
  47. package/src/styles/theme.css +48 -48
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flikk/ui",
3
- "version": "1.0.0-beta.13",
3
+ "version": "1.0.0-beta.14",
4
4
  "description": "A modern React component library built with TypeScript, Tailwind CSS v4, and Framer Motion. Follows the shadcn philosophy with complete className override support.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/global.scss CHANGED
@@ -579,6 +579,7 @@
579
579
  html,
580
580
  body {
581
581
  font-family: var(--font-family-base);
582
+ font-size: 14px;
582
583
  -webkit-font-smoothing: antialiased;
583
584
  -moz-osx-font-smoothing: grayscale;
584
585
  }
@@ -121,27 +121,27 @@
121
121
  --font-weight-bold: 700;
122
122
  --font-weight-extrabold: 800;
123
123
 
124
- /* Form element variables with explicit values that match Tailwind's scale */
125
- --form-min-h-sm: 2rem; /* 32px = h-8 in Tailwind */
126
- --form-min-h-md: 2.5rem; /* 40px = h-10 in Tailwind */
127
- --form-min-h-lg: 3rem; /* 48px = h-12 in Tailwind */
124
+ /* Form element variables fixed px so they don't scale with root font-size */
125
+ --form-min-h-sm: 32px; /* h-8 in Tailwind */
126
+ --form-min-h-md: 40px; /* h-10 in Tailwind */
127
+ --form-min-h-lg: 48px; /* h-12 in Tailwind */
128
128
 
129
- --form-label-pb: 0.5rem; /* 8px = pb-2 in Tailwind */
129
+ --form-label-pb: 8px; /* pb-2 in Tailwind */
130
130
 
131
- --form-px-sm: 0.75rem; /* 12px = px-3 in Tailwind */
132
- --form-px-md: 0.875rem; /* 14px = px-3.5 in Tailwind */
133
- --form-px-lg: 1rem; /* 16px = px-4 in Tailwind */
131
+ --form-px-sm: 12px; /* px-3 in Tailwind */
132
+ --form-px-md: 14px; /* px-3.5 in Tailwind */
133
+ --form-px-lg: 16px; /* px-4 in Tailwind */
134
134
 
135
- --form-py-sm: 0.5rem; /* 0.5rem 8px = py-1 in Tailwind */
136
- --form-py-md: 0.625rem; /* 0.625rem 10px = py-2 in Tailwind */
137
- --form-py-lg: 0.75rem; /* 0.75rem 12px = py-3 in Tailwind */
135
+ --form-py-sm: 8px; /* py-1 in Tailwind */
136
+ --form-py-md: 10px; /* py-2 in Tailwind */
137
+ --form-py-lg: 12px; /* py-3 in Tailwind */
138
138
 
139
139
  /* ============================================
140
140
  BORDER RADIUS SYSTEM
141
141
  Change --radius-base to adjust the entire UI.
142
142
  Individual --*-radius variables can be overridden independently.
143
143
  ============================================ */
144
- --radius-base: 0.5rem; /* 8px - Base radius token */
144
+ --radius-base: 8px; /* Base radius token */
145
145
 
146
146
  /* Forms & Controls (1x base = 8px) */
147
147
  --form-radius: var(--radius-base);
@@ -159,8 +159,8 @@
159
159
  --metric-radius: calc(var(--radius-base) * 2);
160
160
 
161
161
  /* Surfaces (3x base = 24px) */
162
- --card-radius: calc(var(--radius-base) * 3);
163
- --modal-radius: calc(var(--radius-base) * 3);
162
+ --card-radius: calc(var(--radius-base) * 2);
163
+ --modal-radius: calc(var(--radius-base) * 2);
164
164
 
165
165
  /* Special shapes - not part of scale */
166
166
  --segmented-radius: var(--form-radius);
@@ -181,18 +181,18 @@
181
181
  --button-min-h-md: var(--form-min-h-md);
182
182
  --button-min-h-lg: var(--form-min-h-lg);
183
183
 
184
- /* Button padding */
185
- --button-px-sm: 0.75rem; /* 12px */
186
- --button-py-sm: 0; /* 6px */
187
- --button-px-md: 0.875rem; /* 14px */
188
- --button-py-md: 0; /* 10px */
189
- --button-px-lg: 1.25rem; /* 20px */
190
- --button-py-lg: 0; /* 12px */
184
+ /* Button padding — fixed px */
185
+ --button-px-sm: 12px;
186
+ --button-py-sm: 0;
187
+ --button-px-md: 14px;
188
+ --button-py-md: 0;
189
+ --button-px-lg: 20px;
190
+ --button-py-lg: 0;
191
191
 
192
- /* Button icon-only padding */
193
- --button-icon-p-sm: 0.375rem; /* 6px */
194
- --button-icon-p-md: 0.5rem; /* 8px */
195
- --button-icon-p-lg: 0.625rem; /* 10px */
192
+ /* Button icon-only padding — fixed px */
193
+ --button-icon-p-sm: 6px;
194
+ --button-icon-p-md: 8px;
195
+ --button-icon-p-lg: 10px;
196
196
 
197
197
  /* Button icon-only sizes */
198
198
  --button-icon-size-sm: var(--form-min-h-sm);
@@ -244,12 +244,12 @@
244
244
  --chat-bubble-border-sender: rgba(255, 255, 255, 0.4);
245
245
  --chat-bubble-border-receiver: rgba(255, 255, 255, 1);
246
246
 
247
- /* Avatar variables */
248
- --avatar-size-xs: 1.5rem; /* 24px = size-6 in Tailwind */
249
- --avatar-size-sm: 2rem; /* 32px = size-8 in Tailwind */
250
- --avatar-size-md: 2.5rem; /* 40px = size-10 in Tailwind */
251
- --avatar-size-lg: 3rem; /* 48px = size-12 in Tailwind */
252
- --avatar-size-xl: 4rem; /* 64px = size-16 in Tailwind */
247
+ /* Avatar variables — fixed px */
248
+ --avatar-size-xs: 24px; /* size-6 in Tailwind */
249
+ --avatar-size-sm: 32px; /* size-8 in Tailwind */
250
+ --avatar-size-md: 40px; /* size-10 in Tailwind */
251
+ --avatar-size-lg: 48px; /* size-12 in Tailwind */
252
+ --avatar-size-xl: 64px; /* size-16 in Tailwind */
253
253
 
254
254
  /* Avatar radius - now defined in radius system above */
255
255
 
@@ -257,32 +257,32 @@
257
257
  --carousel-container-width: 100%; /* Full width container */
258
258
  --carousel-slide-width: 66vw; /* Default slide width - can be overridden */
259
259
  --carousel-slide-height: 44rem; /* 384px = h-96 */
260
- --carousel-slide-gap: 1rem; /* 16px gap between slides */
261
- --carousel-controls-size: 3rem; /* 48px control button size */
262
- --carousel-controls-offset: 1rem; /* Distance from edge */
260
+ --carousel-slide-gap: 16px; /* gap between slides */
261
+ --carousel-controls-size: 48px; /* control button size */
262
+ --carousel-controls-offset: 16px; /* distance from edge */
263
263
 
264
264
  /* Popover variables - radius now defined in radius system above */
265
265
  --popover-shadow:
266
266
  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
267
267
  --popover-border-width: 1px;
268
268
  --popover-backdrop-opacity: 0.5;
269
- --popover-offset-sm: 0.5rem;
270
- --popover-offset-md: 0.5rem;
271
- --popover-offset-lg: 0.75rem;
272
- --popover-max-width-sm: 16rem;
273
- --popover-max-width-md: 24rem;
274
- --popover-max-width-lg: 32rem;
275
- --popover-padding-sm: 0.75rem;
276
- --popover-padding-md: 0.75rem;
277
- --popover-padding-lg: 1rem;
269
+ --popover-offset-sm: 8px;
270
+ --popover-offset-md: 8px;
271
+ --popover-offset-lg: 12px;
272
+ --popover-max-width-sm: 256px;
273
+ --popover-max-width-md: 384px;
274
+ --popover-max-width-lg: 512px;
275
+ --popover-padding-sm: 12px;
276
+ --popover-padding-md: 12px;
277
+ --popover-padding-lg: 16px;
278
278
 
279
279
  /* NavItem variables */
280
280
  --nav-item-radius: var(--radius-base);
281
- --nav-item-min-h: 2.5rem; /* 40px = h-10 in Tailwind */
281
+ --nav-item-min-h: 40px; /* h-10 in Tailwind */
282
282
 
283
- /* NavItem padding */
284
- --nav-item-px: 0.75rem; /* 12px = px-3 in Tailwind */
285
- --nav-item-py: 0.625rem; /* 10px = py-2.5 in Tailwind */
283
+ /* NavItem padding — fixed px */
284
+ --nav-item-px: 12px; /* px-3 in Tailwind */
285
+ --nav-item-py: 10px; /* py-2.5 in Tailwind */
286
286
 
287
287
  /* Modal and Drawer */
288
288
  --overlay-bg: rgba(0, 0, 0, 0.65);
@@ -321,7 +321,7 @@
321
321
  --color-text-inverse: var(--color-neutral-950);
322
322
 
323
323
  /* Base theme colors */
324
- --color-primary: var(--color-primary-400);
324
+ --color-primary: var(--color-primary-600);
325
325
  --color-success: var(--color-success-400);
326
326
  --color-warning: var(--color-warning-400);
327
327
  --color-danger: var(--color-danger-400);