@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.
- package/dist/components/ai/PromptInput/PromptInput.js +1 -1
- package/dist/components/ai/PromptInput/VoiceRecorder.js +1 -1
- package/dist/components/ai/PromptSuggestions/PromptSuggestion.theme.js +1 -1
- package/dist/components/charts/FunnelChart/FunnelChart.js +2 -2
- package/dist/components/core/Badge/Badge.js +3 -3
- package/dist/components/core/Badge/Badge.theme.js +5 -5
- package/dist/components/core/Badge/Badge.types.d.ts +1 -1
- package/dist/components/core/Button/Button.ripple.js +1 -1
- package/dist/components/core/Button/Button.theme.d.ts +1 -1
- package/dist/components/core/Button/Button.theme.js +3 -3
- package/dist/components/core/Button/Button.types.d.ts +1 -1
- package/dist/components/core/Calendar/CalendarMini/CalendarMini.js +2 -2
- package/dist/components/core/Drawer/DrawerHeader.js +1 -1
- package/dist/components/core/Link/Link.js +1 -1
- package/dist/components/core/Modal/ModalHeader.js +1 -1
- package/dist/components/core/NavItem/NavItem.js +100 -52
- package/dist/components/core/NavItem/NavItem.theme.js +6 -3
- package/dist/components/core/NavItem/NavItem.types.d.ts +44 -30
- package/dist/components/core/NavItem/index.d.ts +1 -1
- package/dist/components/core/Pill/Pill.theme.js +1 -1
- package/dist/components/core/Sidebar/Sidebar.d.ts +11 -1
- package/dist/components/core/Sidebar/Sidebar.js +49 -16
- package/dist/components/core/Sidebar/Sidebar.theme.js +9 -7
- package/dist/components/core/Sidebar/Sidebar.types.d.ts +57 -0
- package/dist/components/core/Sidebar/SidebarContent.js +3 -1
- package/dist/components/core/Sidebar/SidebarContext.d.ts +14 -0
- package/dist/components/core/Sidebar/SidebarContext.js +63 -11
- package/dist/components/core/Sidebar/SidebarFooter.js +3 -1
- package/dist/components/core/Sidebar/SidebarHeader.js +6 -2
- package/dist/components/core/Sidebar/SidebarMobileTrigger.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarMobileTrigger.js +28 -0
- package/dist/components/core/Sidebar/SidebarNav.js +3 -2
- package/dist/components/core/Sidebar/SidebarNavGroup.js +4 -2
- package/dist/components/core/Sidebar/SidebarToggle.js +1 -1
- package/dist/components/core/Sidebar/SidebarUserProfile.d.ts +3 -0
- package/dist/components/core/Sidebar/SidebarUserProfile.js +35 -0
- package/dist/components/core/Sidebar/index.d.ts +3 -1
- package/dist/components/core/Tabs/Tabs.theme.d.ts +1 -1
- package/dist/components/core/Tabs/Tabs.theme.js +3 -3
- package/dist/components/core/index.js +2 -0
- package/dist/components/data-display/GanttChart/GanttToolbar.js +1 -1
- package/dist/components/forms/RichTextEditor/RichTextEditor.js +10 -10
- package/dist/index.js +2 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/global.scss +1 -0
- 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.
|
|
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
package/src/styles/theme.css
CHANGED
|
@@ -121,27 +121,27 @@
|
|
|
121
121
|
--font-weight-bold: 700;
|
|
122
122
|
--font-weight-extrabold: 800;
|
|
123
123
|
|
|
124
|
-
/* Form element variables
|
|
125
|
-
--form-min-h-sm:
|
|
126
|
-
--form-min-h-md:
|
|
127
|
-
--form-min-h-lg:
|
|
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:
|
|
129
|
+
--form-label-pb: 8px; /* pb-2 in Tailwind */
|
|
130
130
|
|
|
131
|
-
--form-px-sm:
|
|
132
|
-
--form-px-md:
|
|
133
|
-
--form-px-lg:
|
|
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:
|
|
136
|
-
--form-py-md:
|
|
137
|
-
--form-py-lg:
|
|
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:
|
|
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) *
|
|
163
|
-
--modal-radius: calc(var(--radius-base) *
|
|
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:
|
|
186
|
-
--button-py-sm: 0;
|
|
187
|
-
--button-px-md:
|
|
188
|
-
--button-py-md: 0;
|
|
189
|
-
--button-px-lg:
|
|
190
|
-
--button-py-lg: 0;
|
|
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:
|
|
194
|
-
--button-icon-p-md:
|
|
195
|
-
--button-icon-p-lg:
|
|
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:
|
|
249
|
-
--avatar-size-sm:
|
|
250
|
-
--avatar-size-md:
|
|
251
|
-
--avatar-size-lg:
|
|
252
|
-
--avatar-size-xl:
|
|
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:
|
|
261
|
-
--carousel-controls-size:
|
|
262
|
-
--carousel-controls-offset:
|
|
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:
|
|
270
|
-
--popover-offset-md:
|
|
271
|
-
--popover-offset-lg:
|
|
272
|
-
--popover-max-width-sm:
|
|
273
|
-
--popover-max-width-md:
|
|
274
|
-
--popover-max-width-lg:
|
|
275
|
-
--popover-padding-sm:
|
|
276
|
-
--popover-padding-md:
|
|
277
|
-
--popover-padding-lg:
|
|
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:
|
|
281
|
+
--nav-item-min-h: 40px; /* h-10 in Tailwind */
|
|
282
282
|
|
|
283
|
-
/* NavItem padding */
|
|
284
|
-
--nav-item-px:
|
|
285
|
-
--nav-item-py:
|
|
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-
|
|
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);
|