@flikk/ui 1.0.0-beta.7 → 1.0.0-beta.9
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/ApprovalCard/ApprovalCard.js +1 -1
- package/dist/components/ai/CodeBlock/CodeBlock.theme.js +2 -2
- package/dist/components/ai/PromptInput/PromptInput.js +2 -2
- package/dist/components/ai/PromptInput/PromptInput.theme.js +1 -1
- package/dist/components/ai/PromptSuggestions/PromptSuggestion.theme.js +1 -1
- package/dist/components/ai/StreamingResponse/MarkdownRenderer.js +6 -6
- package/dist/components/ai/StreamingResponse/StreamingResponse.theme.js +4 -4
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.theme.js +2 -2
- package/dist/components/ai/TokenCounter/TokenCounter.theme.js +6 -6
- package/dist/components/charts/ActivityRings/ActivityRings.js +1 -1
- package/dist/components/charts/ActivityRings/ActivityRings.theme.js +2 -2
- package/dist/components/charts/BarChart/BarChart.js +3 -3
- package/dist/components/charts/ChartContainer.js +1 -1
- package/dist/components/charts/ComboChart/ComboChart.js +2 -2
- package/dist/components/charts/DonutChart/DonutChart.theme.js +1 -1
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.js +1 -1
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.theme.js +1 -1
- package/dist/components/charts/FunnelChart/FunnelChart.js +7 -7
- package/dist/components/charts/Heatmap/Heatmap.theme.js +1 -1
- package/dist/components/charts/Heatmap/HeatmapCell.js +1 -1
- package/dist/components/charts/Heatmap/HeatmapLegend.js +1 -1
- package/dist/components/charts/RadarChart/RadarChart.theme.js +2 -2
- package/dist/components/charts/ScatterPlot/ScatterPlot.js +1 -1
- package/dist/components/charts/ScatterPlot/ScatterPlot.theme.js +2 -2
- package/dist/components/charts/StackedBarChart/StackedBarChart.js +2 -2
- package/dist/components/charts/shared/ChartErrorBoundary/ChartErrorBoundary.js +1 -1
- package/dist/components/charts/shared/ChartLegend/ChartLegendContent.js +1 -1
- package/dist/components/charts/shared/ChartText/ChartText.js +1 -1
- package/dist/components/charts/shared/ChartText/ChartText.theme.js +1 -1
- package/dist/components/charts/shared/ChartTooltip/ChartTooltip.theme.js +4 -4
- package/dist/components/core/Alert/Alert.js +1 -0
- package/dist/components/core/Alert/Alert.theme.js +4 -8
- package/dist/components/core/Alert/Alert.types.d.ts +2 -1
- package/dist/components/core/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/core/Avatar/Avatar.theme.js +5 -5
- package/dist/components/core/AvatarGroup/AvatarGroup.theme.js +1 -1
- package/dist/components/core/Badge/Badge.theme.js +11 -6
- package/dist/components/core/Badge/Badge.types.d.ts +2 -1
- package/dist/components/core/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/core/Button/Button.theme.js +38 -32
- package/dist/components/core/Button/Button.types.d.ts +2 -1
- package/dist/components/core/ButtonGroup/ButtonGroup.theme.js +1 -1
- package/dist/components/core/Calendar/Calendar.js +1 -1
- package/dist/components/core/Calendar/Calendar.theme.js +5 -5
- package/dist/components/core/Calendar/CalendarMini/CalendarMini.js +1 -1
- package/dist/components/core/Card/Card.theme.js +2 -2
- package/dist/components/core/CommandPalette/CommandItem.js +1 -1
- package/dist/components/core/CommandPalette/CommandPalette.theme.js +3 -3
- package/dist/components/core/ContextMenu/ContextMenu.theme.js +3 -3
- package/dist/components/core/ContextMenu/ContextMenuItem.js +1 -1
- package/dist/components/core/Drawer/Drawer.theme.js +2 -2
- package/dist/components/core/Dropdown/Dropdown.theme.js +1 -1
- package/dist/components/core/Empty/Empty.theme.js +2 -2
- package/dist/components/core/Kbd/Kbd.theme.js +3 -3
- package/dist/components/core/Loader/Loader.theme.js +1 -1
- package/dist/components/core/MenuItem/MenuItem.theme.js +2 -2
- package/dist/components/core/Message/Message.js +1 -1
- package/dist/components/core/Message/Message.theme.js +4 -4
- package/dist/components/core/Modal/Modal.theme.js +2 -2
- package/dist/components/core/NavItem/NavItem.js +1 -1
- package/dist/components/core/NavItem/NavItem.theme.js +1 -1
- package/dist/components/core/OfflineIndicator/OfflineIndicator.theme.js +2 -2
- package/dist/components/core/PageHeading/PageHeading.theme.js +1 -1
- package/dist/components/core/Pagination/Pagination.theme.js +2 -2
- package/dist/components/core/Pill/Pill.theme.js +3 -3
- package/dist/components/core/Popover/PopoverContent.js +2 -0
- package/dist/components/core/Progress/Progress.theme.js +10 -7
- package/dist/components/core/Progress/Progress.types.d.ts +2 -1
- package/dist/components/core/Segmented/Segmented.theme.js +3 -3
- package/dist/components/core/Sidebar/SidebarNavGroup.js +1 -1
- package/dist/components/core/Spinner/Spinner.theme.js +3 -5
- package/dist/components/core/Spinner/Spinner.types.d.ts +2 -1
- package/dist/components/core/Tabs/Tabs.theme.js +2 -2
- package/dist/components/core/Tag/Tag.theme.js +2 -2
- package/dist/components/core/Toast/Toast.theme.js +4 -4
- package/dist/components/core/Tooltip/Tooltip.theme.js +1 -1
- package/dist/components/core/Tree/Tree.theme.js +1 -1
- package/dist/components/data-display/DescriptionList/DescriptionList.theme.js +2 -2
- package/dist/components/data-display/Feed/Feed.js +1 -1
- package/dist/components/data-display/Feed/Feed.theme.js +2 -2
- package/dist/components/data-display/GanttChart/GanttChart.theme.js +2 -2
- package/dist/components/data-display/GanttChart/GanttChartPanel.js +1 -1
- package/dist/components/data-display/GanttChart/GanttMilestone.js +2 -2
- package/dist/components/data-display/GanttChart/GanttTableGroupRow.js +1 -1
- package/dist/components/data-display/GanttChart/GanttTaskBar.js +2 -2
- package/dist/components/data-display/KPI/KPI.js +1 -1
- package/dist/components/data-display/KPI/KPI.theme.js +10 -11
- package/dist/components/data-display/KPI/KPI.types.d.ts +2 -1
- package/dist/components/data-display/Metric/Metric.js +1 -1
- package/dist/components/data-display/Metric/Metric.theme.js +11 -7
- package/dist/components/data-display/Metric/Metric.types.d.ts +2 -1
- package/dist/components/data-display/Table/Table.theme.js +3 -3
- package/dist/components/data-display/Table/TableActionsMenu.js +1 -1
- package/dist/components/data-display/Table/TableColumnManager.js +1 -1
- package/dist/components/data-display/Table/TableFilter.js +3 -3
- package/dist/components/data-display/Table/TableHeader.js +1 -1
- package/dist/components/data-display/Table/TablePagination.js +1 -1
- package/dist/components/data-display/Table/TableSelectionHeader.js +1 -1
- package/dist/components/effects/CustomCursor/CustomCursor.js +1 -1
- package/dist/components/effects/CustomCursor/CustomCursor.theme.js +3 -1
- package/dist/components/effects/CustomCursor/CustomCursor.types.d.ts +2 -1
- package/dist/components/effects/StickyScroll/StickyScroll.js +1 -1
- package/dist/components/forms/Checkbox/Checkbox.d.ts +3 -4
- package/dist/components/forms/Checkbox/Checkbox.js +33 -9
- package/dist/components/forms/Checkbox/Checkbox.theme.js +7 -1
- package/dist/components/forms/Checkbox/Checkbox.types.d.ts +28 -2
- package/dist/components/forms/Checkbox/CheckboxContext.d.ts +14 -0
- package/dist/components/forms/Checkbox/CheckboxContext.js +12 -0
- package/dist/components/forms/Checkbox/CheckboxGroup.d.ts +3 -0
- package/dist/components/forms/Checkbox/CheckboxGroup.js +40 -0
- package/dist/components/forms/Checkbox/index.d.ts +1 -1
- package/dist/components/forms/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/forms/ColorPicker/ColorPicker.theme.js +1 -1
- package/dist/components/forms/ColorPicker/ColorPickerInput.js +7 -7
- package/dist/components/forms/CronInput/CronInput.js +1 -1
- package/dist/components/forms/CronInput/CronInput.theme.js +8 -8
- package/dist/components/forms/DatePicker/DatePicker.theme.js +1 -1
- package/dist/components/forms/DatePicker/DatePickerContent.js +1 -1
- package/dist/components/forms/FileUpload/FileUpload.js +2 -2
- package/dist/components/forms/FileUpload/FileUpload.theme.js +4 -4
- package/dist/components/forms/FormLabel/FormLabel.theme.js +1 -1
- package/dist/components/forms/Input/Input.theme.js +1 -1
- package/dist/components/forms/InputCounter/InputCounter.theme.js +1 -1
- package/dist/components/forms/InputOTP/InputOTP.theme.js +1 -1
- package/dist/components/forms/InputTag/InputTag.js +1 -1
- package/dist/components/forms/Mention/Mention.theme.js +3 -3
- package/dist/components/forms/Radio/Radio.d.ts +3 -4
- package/dist/components/forms/Radio/Radio.js +21 -4
- package/dist/components/forms/Radio/Radio.theme.js +7 -1
- package/dist/components/forms/Radio/Radio.types.d.ts +30 -4
- package/dist/components/forms/Radio/RadioContext.d.ts +14 -0
- package/dist/components/forms/Radio/RadioContext.js +12 -0
- package/dist/components/forms/Radio/RadioGroup.d.ts +3 -0
- package/dist/components/forms/Radio/RadioGroup.js +36 -0
- package/dist/components/forms/Radio/index.d.ts +1 -1
- package/dist/components/forms/RichTextEditor/RichTextEditor.js +2 -2
- package/dist/components/forms/RichTextEditor/RichTextEditor.theme.js +1 -1
- package/dist/components/forms/Select/Select.theme.js +1 -1
- package/dist/components/forms/Signature/Signature.theme.js +1 -1
- package/dist/components/forms/Slider/Slider.theme.js +3 -3
- package/dist/components/forms/Switch/Switch.theme.js +1 -1
- package/dist/components/forms/TimePicker/TimePicker.theme.js +2 -2
- package/dist/components/forms/TransferList/TransferList.js +2 -2
- package/dist/components/forms/TransferList/TransferList.theme.js +6 -6
- package/dist/components/forms/forms.theme.js +6 -6
- package/dist/components/forms/index.d.ts +2 -2
- package/dist/components/layout/FormLayout/FormLayout.theme.js +4 -4
- package/dist/hooks/useSelectPortal.d.ts +3 -2
- package/dist/hooks/useSelectPortal.js +44 -19
- package/dist/styles.css +1 -1
- package/dist/utils/colorUtils.d.ts +23 -0
- package/dist/utils/colorUtils.js +45 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/styles/theme.css +19 -17
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared semantic color type and common color maps.
|
|
3
|
+
*
|
|
4
|
+
* Components with extra colors extend locally:
|
|
5
|
+
* export type SpinnerColor = SemanticColor | 'dark';
|
|
6
|
+
*/
|
|
7
|
+
export type SemanticColor = "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
8
|
+
/**
|
|
9
|
+
* Background colors for semantic colors.
|
|
10
|
+
* neutral uses neutral-400; others use their base variable.
|
|
11
|
+
*/
|
|
12
|
+
export declare const semanticBgColors: Record<SemanticColor, string>;
|
|
13
|
+
/**
|
|
14
|
+
* Text colors for semantic colors.
|
|
15
|
+
* neutral uses text-primary; others use their base variable.
|
|
16
|
+
*/
|
|
17
|
+
export declare const semanticTextColors: Record<SemanticColor, string>;
|
|
18
|
+
/**
|
|
19
|
+
* Spinner border colors for semantic colors.
|
|
20
|
+
* Each value is the atomic pair: border color + transparent top.
|
|
21
|
+
* neutral uses --color-border; others use their base variable.
|
|
22
|
+
*/
|
|
23
|
+
export declare const semanticSpinnerColors: Record<SemanticColor, string>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared semantic color type and common color maps.
|
|
3
|
+
*
|
|
4
|
+
* Components with extra colors extend locally:
|
|
5
|
+
* export type SpinnerColor = SemanticColor | 'dark';
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Background colors for semantic colors.
|
|
9
|
+
* neutral uses neutral-400; others use their base variable.
|
|
10
|
+
*/
|
|
11
|
+
const semanticBgColors = {
|
|
12
|
+
neutral: "bg-[var(--color-neutral-400)]",
|
|
13
|
+
primary: "bg-[var(--color-primary)]",
|
|
14
|
+
secondary: "bg-[var(--color-secondary)]",
|
|
15
|
+
success: "bg-[var(--color-success)]",
|
|
16
|
+
warning: "bg-[var(--color-warning)]",
|
|
17
|
+
danger: "bg-[var(--color-danger)]",
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Text colors for semantic colors.
|
|
21
|
+
* neutral uses text-primary; others use their base variable.
|
|
22
|
+
*/
|
|
23
|
+
const semanticTextColors = {
|
|
24
|
+
neutral: "text-[var(--color-text-primary)]",
|
|
25
|
+
primary: "text-[var(--color-primary)]",
|
|
26
|
+
secondary: "text-[var(--color-secondary)]",
|
|
27
|
+
success: "text-[var(--color-success)]",
|
|
28
|
+
warning: "text-[var(--color-warning)]",
|
|
29
|
+
danger: "text-[var(--color-danger)]",
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Spinner border colors for semantic colors.
|
|
33
|
+
* Each value is the atomic pair: border color + transparent top.
|
|
34
|
+
* neutral uses --color-border; others use their base variable.
|
|
35
|
+
*/
|
|
36
|
+
const semanticSpinnerColors = {
|
|
37
|
+
neutral: "border-[var(--color-border)] border-t-transparent",
|
|
38
|
+
primary: "border-[var(--color-primary)] border-t-transparent",
|
|
39
|
+
secondary: "border-[var(--color-secondary)] border-t-transparent",
|
|
40
|
+
success: "border-[var(--color-success)] border-t-transparent",
|
|
41
|
+
warning: "border-[var(--color-warning)] border-t-transparent",
|
|
42
|
+
danger: "border-[var(--color-danger)] border-t-transparent",
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { semanticBgColors, semanticSpinnerColors, semanticTextColors };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -13,3 +13,4 @@ export * from "./stateMachine";
|
|
|
13
13
|
export * from "./formValidation";
|
|
14
14
|
export { calculateVelocity, clampScroll, detectScrollDirection, isReducedMotion, lerp, calculateScrollProgress, normalizeWheelDelta, isScrollable, getMaxScroll, throttle, } from './smoothScrollUtils';
|
|
15
15
|
export { PerformanceMonitor, usePerformanceMonitor } from './performanceMonitor';
|
|
16
|
+
export { type SemanticColor, semanticBgColors, semanticTextColors, semanticSpinnerColors, } from './colorUtils';
|
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.9",
|
|
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/styles/theme.css
CHANGED
|
@@ -15,6 +15,22 @@
|
|
|
15
15
|
--color-primary: var(--color-primary-600);
|
|
16
16
|
--color-primary-contrast: var(--color-neutral-50);
|
|
17
17
|
|
|
18
|
+
/* Secondary color palette - Tailwind v4 gray */
|
|
19
|
+
--color-secondary-50: oklch(0.984 0.003 247.858);
|
|
20
|
+
--color-secondary-100: oklch(0.968 0.007 247.896);
|
|
21
|
+
--color-secondary-200: oklch(0.929 0.013 255.508);
|
|
22
|
+
--color-secondary-300: oklch(0.869 0.022 252.894);
|
|
23
|
+
--color-secondary-400: oklch(0.704 0.04 256.788);
|
|
24
|
+
--color-secondary-500: oklch(0.554 0.046 257.417);
|
|
25
|
+
--color-secondary-600: oklch(0.446 0.043 257.281);
|
|
26
|
+
--color-secondary-700: oklch(0.372 0.044 257.287);
|
|
27
|
+
--color-secondary-800: oklch(0.279 0.041 260.031);
|
|
28
|
+
--color-secondary-900: oklch(0.208 0.042 265.755);
|
|
29
|
+
--color-secondary-950: oklch(0.129 0.042 264.695);
|
|
30
|
+
|
|
31
|
+
--color-secondary: var(--color-secondary-600);
|
|
32
|
+
--color-secondary-contrast: var(--color-neutral-50);
|
|
33
|
+
|
|
18
34
|
/* Danger/Error color palette - full 50-950 range */
|
|
19
35
|
--color-danger-50: oklch(0.971 0.013 17.38);
|
|
20
36
|
--color-danger-100: oklch(0.936 0.032 17.717);
|
|
@@ -120,10 +136,6 @@
|
|
|
120
136
|
--form-py-md: 0.625rem; /* 0.625rem 10px = py-2 in Tailwind */
|
|
121
137
|
--form-py-lg: 0.75rem; /* 0.75rem 12px = py-3 in Tailwind */
|
|
122
138
|
|
|
123
|
-
/* Text sizing for form elements */
|
|
124
|
-
--form-text-sm: 0.75rem; /* 12px = text-xs in Tailwind */
|
|
125
|
-
--form-text-md: 0.875rem; /* 14px = text-sm in Tailwind */
|
|
126
|
-
--form-text-lg: 1rem; /* 16px = text-lg in Tailwind */
|
|
127
139
|
|
|
128
140
|
/* ============================================
|
|
129
141
|
BORDER RADIUS SYSTEM
|
|
@@ -188,10 +200,6 @@
|
|
|
188
200
|
--button-icon-size-md: var(--form-min-h-md);
|
|
189
201
|
--button-icon-size-lg: var(--form-min-h-lg);
|
|
190
202
|
|
|
191
|
-
/* Button font size */
|
|
192
|
-
--button-text-size-sm: var(--form-text-sm);
|
|
193
|
-
--button-text-size-md: var(--form-text-md);
|
|
194
|
-
--button-text-size-lg: var(--form-text-lg);
|
|
195
203
|
|
|
196
204
|
/* Badge variables */
|
|
197
205
|
--badge-radius: var(--form-radius);
|
|
@@ -210,10 +218,6 @@
|
|
|
210
218
|
--segmented-py-md: var(--form-py-md);
|
|
211
219
|
--segmented-py-lg: var(--form-py-lg);
|
|
212
220
|
|
|
213
|
-
/* Segmented text size */
|
|
214
|
-
--segmented-text-size-sm: var(--form-text-sm);
|
|
215
|
-
--segmented-text-size-md: var(--form-text-md);
|
|
216
|
-
--segmented-text-size-lg: var(--form-text-md);
|
|
217
221
|
|
|
218
222
|
/* Segmented sliding background */
|
|
219
223
|
--segmented-active-bg: #ffffff;
|
|
@@ -250,11 +254,6 @@
|
|
|
250
254
|
--avatar-size-lg: 3rem; /* 48px = size-12 in Tailwind */
|
|
251
255
|
--avatar-size-xl: 4rem; /* 64px = size-16 in Tailwind */
|
|
252
256
|
|
|
253
|
-
--avatar-text-xs: 0.75rem; /* 12px = text-xs in Tailwind */
|
|
254
|
-
--avatar-text-sm: 0.875rem; /* 14px = text-sm in Tailwind */
|
|
255
|
-
--avatar-text-md: 1rem; /* 16px = text-base in Tailwind */
|
|
256
|
-
--avatar-text-lg: 1.125rem; /* 18px = text-lg in Tailwind */
|
|
257
|
-
--avatar-text-xl: 1.25rem; /* 20px = text-xl in Tailwind */
|
|
258
257
|
|
|
259
258
|
/* Avatar radius - now defined in radius system above */
|
|
260
259
|
|
|
@@ -300,6 +299,7 @@
|
|
|
300
299
|
--shadow-color-success: var(--color-success);
|
|
301
300
|
--shadow-color-warning: var(--color-warning);
|
|
302
301
|
--shadow-color-danger: var(--color-danger);
|
|
302
|
+
--shadow-color-secondary: var(--color-secondary);
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
/* ============================================
|
|
@@ -329,12 +329,14 @@
|
|
|
329
329
|
--color-success: var(--color-success-400);
|
|
330
330
|
--color-warning: var(--color-warning-400);
|
|
331
331
|
--color-danger: var(--color-danger-400);
|
|
332
|
+
--color-secondary: var(--color-secondary-400);
|
|
332
333
|
|
|
333
334
|
/* Contrast colors for filled variants on semantic backgrounds */
|
|
334
335
|
--color-primary-contrast: var(--color-neutral-50);
|
|
335
336
|
--color-danger-contrast: var(--color-neutral-50);
|
|
336
337
|
--color-success-contrast: var(--color-neutral-50);
|
|
337
338
|
--color-warning-contrast: var(--color-neutral-50);
|
|
339
|
+
--color-secondary-contrast: var(--color-neutral-50);
|
|
338
340
|
|
|
339
341
|
/* Background colors - dark equivalents */
|
|
340
342
|
--color-surface: oklch(14.5% 0 0);
|