@flikk/ui 1.0.0-beta.15 → 1.0.0-beta.16
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/README.md +52 -0
- package/dist/components/ai/StreamingResponse/AnimatedText.js +3 -3
- package/dist/components/ai/StreamingResponse/MarkdownRenderer.js +22 -22
- package/dist/components/ai/StreamingResponse/StreamingCursor.js +1 -1
- package/dist/components/ai/StreamingResponse/StreamingResponse.animations.js +10 -10
- package/dist/components/ai/StreamingResponse/StreamingResponse.js +3 -3
- package/dist/components/ai/StreamingResponse/WordAnimationContext.d.ts +1 -1
- package/dist/components/ai/StreamingResponse/WordAnimationContext.js +11 -11
- package/dist/components/ai/index.d.ts +0 -2
- package/dist/components/ai/index.js +0 -2
- package/dist/components/core/Progress/Progress.theme.js +2 -2
- package/dist/components/effects/GlassSurface/GlassSurface.js +7 -7
- package/dist/components/effects/GlassSurface/GlassSurface.types.d.ts +6 -0
- package/dist/components/effects/Neumorphic/InsetCircleButton.d.ts +2 -1
- package/dist/components/effects/Neumorphic/InsetCircleButton.js +2 -2
- package/dist/components/effects/Neumorphic/InsetPill.d.ts +2 -1
- package/dist/components/effects/Neumorphic/InsetPill.js +2 -2
- package/dist/components/forms/Slider/Slider.js +10 -3
- package/dist/components/forms/Slider/Slider.theme.js +3 -3
- package/dist/components/forms/Switch/Switch.js +10 -2
- package/dist/components/forms/Switch/Switch.theme.js +2 -2
- package/dist/components/forms/index.d.ts +0 -3
- package/dist/components/forms/index.js +0 -2
- package/dist/index.js +0 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.animations.d.ts +0 -10
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.animations.js +0 -47
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.d.ts +0 -20
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.js +0 -44
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.theme.d.ts +0 -2
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.theme.js +0 -20
- package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.types.d.ts +0 -67
- package/dist/components/ai/ThinkingIndicator/index.d.ts +0 -3
- package/dist/components/forms/TransferList/TransferList.animations.d.ts +0 -10
- package/dist/components/forms/TransferList/TransferList.animations.js +0 -32
- package/dist/components/forms/TransferList/TransferList.d.ts +0 -28
- package/dist/components/forms/TransferList/TransferList.js +0 -199
- package/dist/components/forms/TransferList/TransferList.theme.d.ts +0 -6
- package/dist/components/forms/TransferList/TransferList.theme.js +0 -60
- package/dist/components/forms/TransferList/TransferList.types.d.ts +0 -101
- package/dist/components/forms/TransferList/index.d.ts +0 -3
|
@@ -34,7 +34,9 @@ const Switch = React__default.forwardRef(({ id, checked: controlledChecked, onCh
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
// Label and description content
|
|
37
|
-
const labelContent = label || description ? (jsxs("div", { className: "flex grow flex-col", children: [label &&
|
|
37
|
+
const labelContent = label || description ? (jsxs("div", { className: "flex grow flex-col", children: [label &&
|
|
38
|
+
(typeof label === "string" ? (jsx(FormLabel, { htmlFor: id, state: state, children: label })) : (label)), description &&
|
|
39
|
+
(typeof description === "string" ? (jsx("div", { className: cn(switchTheme.description, theme === null || theme === void 0 ? void 0 : theme.description), children: description })) : (description))] })) : null;
|
|
38
40
|
// Build data attributes for state-based styling
|
|
39
41
|
const trackDataState = isDisabled
|
|
40
42
|
? "disabled"
|
|
@@ -43,8 +45,14 @@ const Switch = React__default.forwardRef(({ id, checked: controlledChecked, onCh
|
|
|
43
45
|
: isChecked
|
|
44
46
|
? "checked"
|
|
45
47
|
: "unchecked";
|
|
48
|
+
const filterId = `switch-liquid-lens-${id}`;
|
|
46
49
|
// Switch toggle component
|
|
47
|
-
const switchToggle = (jsxs("div", { className: "relative flex items-center h-6", children: [jsx("input", { ref: ref, type: "checkbox", id: id, checked: isChecked, onChange: handleChange, disabled: isDisabled, className: "sr-only", "aria-checked": isChecked, "aria-invalid": isInvalid }), jsx("div", { className: cn(switchTheme.track, theme === null || theme === void 0 ? void 0 : theme.track), "data-state": trackDataState, onClick: handleTrackClick, children:
|
|
50
|
+
const switchToggle = (jsxs("div", { className: "relative flex items-center h-6", children: [jsx("input", { ref: ref, type: "checkbox", id: id, checked: isChecked, onChange: handleChange, disabled: isDisabled, className: "sr-only", "aria-checked": isChecked, "aria-invalid": isInvalid }), jsx("svg", { width: "0", height: "0", className: "absolute", "aria-hidden": "true", children: jsx("defs", { children: jsxs("filter", { id: filterId, children: [jsx("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "1", result: "blur" }), jsx("feColorMatrix", { in: "blur", type: "matrix", values: "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7", result: "goo" }), jsx("feComposite", { in: "SourceGraphic", in2: "goo", operator: "atop" })] }) }) }), jsx("div", { className: cn(switchTheme.track, theme === null || theme === void 0 ? void 0 : theme.track), "data-state": trackDataState, onClick: handleTrackClick, children: jsxs(motion.div, { className: cn(switchTheme.thumb, theme === null || theme === void 0 ? void 0 : theme.thumb, ""), initial: false, animate: isChecked ? thumbPositions.checked : thumbPositions.unchecked, transition: { type: "spring", stiffness: 500, damping: 30 }, whileTap: isDisabled ? undefined : { scale: 1.15 }, style: { filter: `url(#${filterId})` }, children: [jsx("div", { className: "absolute inset-0 z-0 rounded-full", style: {
|
|
51
|
+
backdropFilter: "blur(0.6px)",
|
|
52
|
+
WebkitBackdropFilter: "blur(0.6px)",
|
|
53
|
+
}, "aria-hidden": "true" }), jsx("div", { className: "absolute inset-0 z-[1] rounded-full bg-[var(--color-surface)]/80", "aria-hidden": "true" }), jsx("div", { className: "absolute inset-0 z-[2] rounded-full", style: {
|
|
54
|
+
boxShadow: "inset 1px 1px 0 rgba(255,255,255,0.35), inset 1px 3px 0 rgba(0,0,0,0.03), inset 0 0 14px rgba(255,255,255,0.25), inset -1px -1px 0 rgba(0,0,0,0.06)",
|
|
55
|
+
}, "aria-hidden": "true" })] }) })] }));
|
|
48
56
|
return (jsxs("div", { className: cn(switchTheme.container, labelPosition === "start" ? "flex-row-reverse" : "flex-row", theme === null || theme === void 0 ? void 0 : theme.container, className), ...rest, children: [labelContent, switchToggle] }));
|
|
49
57
|
});
|
|
50
58
|
Switch.displayName = "Switch";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
const switchTheme = {
|
|
5
5
|
container: "flex w-full justify-between items-center gap-4",
|
|
6
|
-
track: "w-12 h-6 rounded-full
|
|
7
|
-
thumb: "w-7 h-5 rounded-full
|
|
6
|
+
track: "w-12 h-6 rounded-full cursor-pointer shadow-inner bg-[var(--color-background-tertiary)] data-[state=checked]:bg-[var(--color-primary)] data-[state=disabled]:bg-[var(--color-background-disabled)] data-[state=disabled]:cursor-not-allowed data-[state=invalid]:border-2 data-[state=invalid]:border-[var(--color-danger)] outline outline-[var(--color-border)] transition-colors duration-300",
|
|
7
|
+
thumb: "w-7 h-5 rounded-full bg-transparent overflow-hidden border border-[var(--color-border)]/40 shadow-lg",
|
|
8
8
|
description: "text-base text-[var(--color-text-muted)] -mt-1.5",
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
@@ -69,9 +69,6 @@ export * from "./ColorPicker";
|
|
|
69
69
|
export { SelectableCard } from "./SelectableCard";
|
|
70
70
|
export type { SelectableCardProps, SelectableCardGroupProps, SelectableCardType, SelectableCardIndicator, SelectableCardTheme, } from "./SelectableCard";
|
|
71
71
|
export { selectableCardTheme } from "./SelectableCard";
|
|
72
|
-
export { TransferList } from "./TransferList";
|
|
73
|
-
export type { TransferListProps, TransferListItem, TransferListSize, TransferListTheme, } from "./TransferList";
|
|
74
|
-
export { transferListTheme } from "./TransferList";
|
|
75
72
|
export { Mention } from "./Mention";
|
|
76
73
|
export type { MentionProps, MentionSuggestion, MentionTrigger, MentionSize, MentionTheme, MentionThemeOverrides, } from "./Mention";
|
|
77
74
|
export { mentionTheme } from "./Mention";
|
|
@@ -65,8 +65,6 @@ export { ColorPickerPresets } from './ColorPicker/ColorPickerPresets.js';
|
|
|
65
65
|
export { formatHex, formatHsl, formatRgb, hexToRgb, hslToRgb, hsvToRgb, parseColor, rgbToHex, rgbToHsl, rgbToHsv, validateHex, validateRgb } from './ColorPicker/colorUtils.js';
|
|
66
66
|
export { SelectableCard } from './SelectableCard/SelectableCard.js';
|
|
67
67
|
export { selectableCardTheme } from './SelectableCard/SelectableCard.theme.js';
|
|
68
|
-
export { TransferList } from './TransferList/TransferList.js';
|
|
69
|
-
export { transferListTheme } from './TransferList/TransferList.theme.js';
|
|
70
68
|
export { Mention } from './Mention/Mention.js';
|
|
71
69
|
export { mentionTheme } from './Mention/Mention.theme.js';
|
|
72
70
|
export { CronInput } from './CronInput/CronInput.js';
|
package/dist/index.js
CHANGED
|
@@ -205,7 +205,6 @@ export { Timeline } from './components/data-display/Timeline/Timeline.js';
|
|
|
205
205
|
export { Toast } from './components/core/Toast/Toast.js';
|
|
206
206
|
export { ToastProvider, useToastContext } from './components/core/Toast/ToastProvider.js';
|
|
207
207
|
export { Tooltip } from './components/core/Tooltip/Tooltip.js';
|
|
208
|
-
export { TransferList } from './components/forms/TransferList/TransferList.js';
|
|
209
208
|
export { Tree } from './components/core/Tree/Tree.js';
|
|
210
209
|
export { TypeWriter } from './components/core/Message/TypeWriter.js';
|
|
211
210
|
export { XAxis } from './components/charts/shared/ChartAxis/XAxis.js';
|
|
@@ -263,7 +262,6 @@ export { tagTheme } from './components/core/Tag/Tag.theme.js';
|
|
|
263
262
|
export { textareaTheme } from './components/forms/Textarea/Textarea.theme.js';
|
|
264
263
|
export { timePickerTheme } from './components/forms/TimePicker/TimePicker.theme.js';
|
|
265
264
|
export { toastTheme } from './components/core/Toast/Toast.theme.js';
|
|
266
|
-
export { transferListTheme } from './components/forms/TransferList/TransferList.theme.js';
|
|
267
265
|
export { treeTheme } from './components/core/Tree/Tree.theme.js';
|
|
268
266
|
export { useChartAccessibility } from './components/charts/hooks/useChartAccessibility.js';
|
|
269
267
|
export { useChartTheme } from './components/charts/hooks/useChartTheme.js';
|