@choice-ui/react 1.6.1 → 1.6.2
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/calendar/dist/index.d.ts +5 -12
- package/dist/components/calendar/dist/index.js +223 -122
- package/dist/components/dialog/dist/index.d.ts +2 -1
- package/dist/components/dialog/dist/index.js +5 -1
- package/dist/components/dialog/src/dialog.d.ts +2 -1
- package/dist/components/dialog/src/dialog.js +5 -1
- package/dist/components/dropdown/dist/index.js +16 -41
- package/dist/components/list/dist/index.d.ts +8 -3
- package/dist/components/list/src/components/list-content.d.ts +3 -2
- package/dist/components/list/src/components/list-content.js +2 -2
- package/dist/components/list/src/components/list-item.d.ts +3 -0
- package/dist/components/list/src/list.d.ts +2 -1
- package/dist/components/list/src/list.js +4 -2
- package/dist/components/md-render/src/tv.js +1 -1
- package/dist/components/menus/dist/index.js +20 -25
- package/dist/components/modal/dist/index.d.ts +2 -1
- package/dist/components/modal/dist/index.js +2 -2
- package/dist/components/modal/src/modal.d.ts +2 -1
- package/dist/components/modal/src/modal.js +2 -2
- package/dist/components/multi-select/dist/index.js +11 -16
- package/dist/components/popover/dist/index.d.ts +11 -10
- package/dist/components/popover/dist/index.js +5 -1
- package/dist/components/popover/src/popover.d.ts +2 -1
- package/dist/components/popover/src/popover.js +5 -1
- package/dist/components/scroll-area/dist/index.d.ts +6 -1
- package/dist/components/scroll-area/dist/index.js +2 -2
- package/dist/components/scroll-area/src/components/scroll-area-content.d.ts +4 -1
- package/dist/components/scroll-area/src/components/scroll-area-content.js +2 -2
- package/dist/components/scroll-area/src/scroll-area.d.ts +1 -1
- package/dist/components/select/dist/index.js +15 -47
- package/dist/components/slot/dist/index.d.ts +10 -6
- package/dist/components/slot/dist/index.js +51 -45
- package/dist/components/tooltip/dist/index.js +2 -7
- package/dist/components/virtual-select/dist/index.d.ts +48 -0
- package/dist/styles/components.css +220 -193
- package/dist/styles/markdown.css +362 -360
- package/package.json +1 -1
- package/dist/styles/preflight.css +0 -97
- package/dist/styles/stories.css +0 -5
- package/dist/styles/theme.css +0 -597
|
@@ -1,57 +1,76 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { forwardRef } from "react";
|
|
1
|
+
import React__default, { forwardRef, useMemo } from "react";
|
|
3
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
|
+
var REACT_MAJOR = parseInt(React__default.version.split(".")[0], 10);
|
|
4
|
+
var IS_REACT_19 = REACT_MAJOR >= 19;
|
|
5
|
+
function getChildRef(children) {
|
|
6
|
+
if (IS_REACT_19) {
|
|
7
|
+
return children.props.ref;
|
|
8
|
+
}
|
|
9
|
+
return void 0;
|
|
10
|
+
}
|
|
4
11
|
var Slot = forwardRef(
|
|
5
12
|
({ children, ...slotProps }, forwardedRef) => {
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
const slottedChild = useMemo(() => {
|
|
14
|
+
if (!React__default.isValidElement(children)) {
|
|
15
|
+
return children;
|
|
16
|
+
}
|
|
17
|
+
const childRef = getChildRef(children);
|
|
8
18
|
const mergedProps = mergeProps(slotProps, children.props);
|
|
9
|
-
return
|
|
19
|
+
return React__default.cloneElement(children, {
|
|
10
20
|
...mergedProps,
|
|
11
|
-
ref: forwardedRef ? composeRefs(forwardedRef,
|
|
21
|
+
ref: forwardedRef ? composeRefs(forwardedRef, childRef) : childRef
|
|
12
22
|
});
|
|
13
|
-
}
|
|
14
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
23
|
+
}, [children, slotProps, forwardedRef]);
|
|
24
|
+
return /* @__PURE__ */ jsx(Fragment, { children: slottedChild });
|
|
15
25
|
}
|
|
16
26
|
);
|
|
17
27
|
Slot.displayName = "Slot";
|
|
18
28
|
var SlotClone = forwardRef(
|
|
19
29
|
({ children, ...slotProps }, forwardedRef) => {
|
|
20
|
-
|
|
21
|
-
|
|
30
|
+
const slottedChild = useMemo(() => {
|
|
31
|
+
if (!React__default.isValidElement(children)) {
|
|
32
|
+
return children;
|
|
33
|
+
}
|
|
34
|
+
const childRef = getChildRef(children);
|
|
22
35
|
const mergedProps = mergeProps(slotProps, children.props);
|
|
23
|
-
return
|
|
36
|
+
return React__default.cloneElement(children, {
|
|
24
37
|
...mergedProps,
|
|
25
|
-
ref: forwardedRef ? composeRefs(forwardedRef,
|
|
38
|
+
ref: forwardedRef ? composeRefs(forwardedRef, childRef) : childRef
|
|
26
39
|
});
|
|
27
|
-
}
|
|
28
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
40
|
+
}, [children, slotProps, forwardedRef]);
|
|
41
|
+
return /* @__PURE__ */ jsx(Fragment, { children: slottedChild });
|
|
29
42
|
}
|
|
30
43
|
);
|
|
31
44
|
SlotClone.displayName = "SlotClone";
|
|
32
45
|
function mergeProps(slotProps, childProps) {
|
|
33
46
|
const overrideProps = { ...childProps };
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
47
|
+
if (slotProps.className && childProps.className) {
|
|
48
|
+
overrideProps.className = `${slotProps.className} ${childProps.className}`;
|
|
49
|
+
} else if (slotProps.className) {
|
|
50
|
+
overrideProps.className = slotProps.className;
|
|
51
|
+
}
|
|
52
|
+
if (slotProps.style && childProps.style) {
|
|
53
|
+
overrideProps.style = { ...slotProps.style, ...childProps.style };
|
|
54
|
+
} else if (slotProps.style) {
|
|
55
|
+
overrideProps.style = slotProps.style;
|
|
56
|
+
}
|
|
57
|
+
for (const propName in slotProps) {
|
|
58
|
+
if (propName.startsWith("on") && typeof slotProps[propName] === "function") {
|
|
59
|
+
const slotHandler = slotProps[propName];
|
|
60
|
+
const childHandler = childProps[propName];
|
|
61
|
+
if (childHandler && typeof childHandler === "function") {
|
|
40
62
|
overrideProps[propName] = (...args) => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return result;
|
|
63
|
+
childHandler(...args);
|
|
64
|
+
slotHandler(...args);
|
|
44
65
|
};
|
|
45
|
-
} else
|
|
46
|
-
overrideProps[propName] =
|
|
66
|
+
} else {
|
|
67
|
+
overrideProps[propName] = slotHandler;
|
|
47
68
|
}
|
|
48
|
-
} else if (propName
|
|
49
|
-
overrideProps[propName] =
|
|
50
|
-
} else if (propName === "className") {
|
|
51
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
69
|
+
} else if (propName !== "className" && propName !== "style") {
|
|
70
|
+
overrideProps[propName] = slotProps[propName];
|
|
52
71
|
}
|
|
53
72
|
}
|
|
54
|
-
return
|
|
73
|
+
return overrideProps;
|
|
55
74
|
}
|
|
56
75
|
function composeRefs(...refs) {
|
|
57
76
|
return (node) => {
|
|
@@ -59,25 +78,12 @@ function composeRefs(...refs) {
|
|
|
59
78
|
if (typeof ref === "function") {
|
|
60
79
|
ref(node);
|
|
61
80
|
} else if (ref != null) {
|
|
62
|
-
|
|
81
|
+
const mutableRef = ref;
|
|
82
|
+
mutableRef.current = node;
|
|
63
83
|
}
|
|
64
84
|
});
|
|
65
85
|
};
|
|
66
86
|
}
|
|
67
|
-
function getElementRef(element) {
|
|
68
|
-
var _a, _b;
|
|
69
|
-
let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
|
|
70
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
71
|
-
if (mayWarn) {
|
|
72
|
-
return element.ref;
|
|
73
|
-
}
|
|
74
|
-
getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
|
|
75
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
76
|
-
if (mayWarn) {
|
|
77
|
-
return element.props.ref;
|
|
78
|
-
}
|
|
79
|
-
return element.props.ref || element.ref;
|
|
80
|
-
}
|
|
81
87
|
export {
|
|
82
88
|
Slot
|
|
83
89
|
};
|
|
@@ -184,17 +184,12 @@ var TooltipTrigger = forwardRef(
|
|
|
184
184
|
function TooltipTrigger2({ children, ...props }, propRef) {
|
|
185
185
|
const state = useTooltipState();
|
|
186
186
|
const ref = useMergeRefs([state.refs.setReference, propRef]);
|
|
187
|
-
const slotProps = useMemo(() => {
|
|
188
|
-
return {
|
|
189
|
-
...state.disabled && { disabled: true },
|
|
190
|
-
...state.getReferenceProps(props)
|
|
191
|
-
};
|
|
192
|
-
}, [state.disabled, state.getReferenceProps, props]);
|
|
193
187
|
return /* @__PURE__ */ jsx(
|
|
194
188
|
Slot,
|
|
195
189
|
{
|
|
196
190
|
ref,
|
|
197
|
-
...
|
|
191
|
+
...state.disabled && { disabled: true },
|
|
192
|
+
...state.getReferenceProps(props),
|
|
198
193
|
children
|
|
199
194
|
}
|
|
200
195
|
);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { MenuContextContent, MenuDivider, MenuEmpty, MenuContextItem, MenuSearch, MenuTrigger, MenuValue } from '../../menus/src';
|
|
2
|
+
import { FloatingFocusManagerProps } from '@floating-ui/react';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
interface VirtualSelectOption<T = unknown> {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
data?: T;
|
|
9
|
+
}
|
|
10
|
+
interface VirtualSelectProps<T = unknown> {
|
|
11
|
+
className?: string;
|
|
12
|
+
closeOnEscape?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
emptyText?: string;
|
|
15
|
+
focusManagerProps?: Partial<FloatingFocusManagerProps>;
|
|
16
|
+
matchTriggerWidth?: boolean;
|
|
17
|
+
maxHeight?: number;
|
|
18
|
+
onChange?: (value: string) => void;
|
|
19
|
+
onOpenChange?: (open: boolean) => void;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
options: VirtualSelectOption<T>[];
|
|
22
|
+
overscan?: number;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
placement?: "bottom-start" | "bottom-end";
|
|
25
|
+
portalId?: string;
|
|
26
|
+
readOnly?: boolean;
|
|
27
|
+
renderOption?: (option: VirtualSelectOption<T>, isSelected: boolean) => React.ReactNode;
|
|
28
|
+
renderValue?: (option: VirtualSelectOption<T> | null) => React.ReactNode;
|
|
29
|
+
root?: HTMLElement | null;
|
|
30
|
+
searchPlaceholder?: string;
|
|
31
|
+
size?: "default" | "large";
|
|
32
|
+
value?: string | null;
|
|
33
|
+
variant?: "default" | "light" | "reset";
|
|
34
|
+
}
|
|
35
|
+
interface VirtualSelectComponentType {
|
|
36
|
+
<T = unknown>(props: VirtualSelectProps<T>): React.ReactElement | null;
|
|
37
|
+
displayName?: string;
|
|
38
|
+
Content: typeof MenuContextContent;
|
|
39
|
+
Divider: typeof MenuDivider;
|
|
40
|
+
Empty: typeof MenuEmpty;
|
|
41
|
+
Item: typeof MenuContextItem;
|
|
42
|
+
Search: typeof MenuSearch;
|
|
43
|
+
Trigger: typeof MenuTrigger;
|
|
44
|
+
Value: typeof MenuValue;
|
|
45
|
+
}
|
|
46
|
+
declare const VirtualSelect: VirtualSelectComponentType;
|
|
47
|
+
|
|
48
|
+
export { VirtualSelect, type VirtualSelectOption, type VirtualSelectProps };
|
|
@@ -1,22 +1,156 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--sash-size: 8px;
|
|
3
|
+
--sash-hover-size: 4px;
|
|
4
|
+
--focus-border: var(--color-accent-background);
|
|
5
|
+
--sash-hover-transition-duration: 0.1s;
|
|
6
|
+
--separator-border: var(--color-default-boundary);
|
|
7
|
+
|
|
8
|
+
--shadow-border-white: 0 0 0 1px var(--color-white);
|
|
9
|
+
--shadow-border-white-inset: inset 0 0 0 1px var(--color-white);
|
|
10
|
+
|
|
11
|
+
--shadow-range-thumb:
|
|
12
|
+
0 0 0 2px rgb(255 255 255), 0 1px 4px 2px rgba(0 0 0 / 0.1), 0 4px 8px 2px rgba(0 0 0 / 0.1),
|
|
13
|
+
0 0 1px 2px rgba(0 0 0 / 0.3);
|
|
14
|
+
|
|
15
|
+
--shadow-checked-focused:
|
|
16
|
+
inset 0 0 0 1px var(--color-default-background), inset 0 0 0 8px var(--color-accent-background);
|
|
17
|
+
|
|
18
|
+
--shadow-switch-focused:
|
|
19
|
+
inset 0 0 0 1px var(--color-default-background), inset 0 0 0 8px var(--color-default-foreground);
|
|
20
|
+
|
|
21
|
+
--animate-spinner-spin-shape1: spinner-spin-shape1 2s linear 0s infinite normal;
|
|
22
|
+
--animate-spinner-spin-shape2: spinner-spin-shape2 2s linear 0s infinite normal;
|
|
23
|
+
--animate-spinner-spin-shape3: spinner-spin-shape3 2s linear 0s infinite normal;
|
|
24
|
+
--animate-spinner-spin-shape4: spinner-spin-shape4 2s linear 0s infinite normal;
|
|
25
|
+
--animate-spinner-bounce-left: spinner-bounce-left 0.5s infinite alternate ease;
|
|
26
|
+
--animate-spinner-bounce-right: spinner-bounce-right 0.5s infinite alternate ease;
|
|
27
|
+
--animate-indeterminate-bar: indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395)
|
|
28
|
+
infinite normal none running;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Base styles */
|
|
1
32
|
@layer components {
|
|
2
|
-
.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
pointer-events: none !important;
|
|
11
|
-
color: transparent !important;
|
|
12
|
-
&::placeholder,
|
|
13
|
-
&:placeholder-shown {
|
|
14
|
-
color: transparent !important;
|
|
33
|
+
.scrollbar-hide {
|
|
34
|
+
/* IE and Edge */
|
|
35
|
+
-ms-overflow-style: none;
|
|
36
|
+
/* Firefox */
|
|
37
|
+
scrollbar-width: none;
|
|
38
|
+
/* Safari and Chrome */
|
|
39
|
+
&::-webkit-scrollbar {
|
|
40
|
+
display: none;
|
|
15
41
|
}
|
|
16
|
-
|
|
17
|
-
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.press-move-cursor {
|
|
45
|
+
position: fixed;
|
|
46
|
+
top: 0;
|
|
47
|
+
left: 0;
|
|
48
|
+
z-index: 10000001;
|
|
49
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='24' fill='none'%3E%3Cg filter='url(%23a)'%3E%3Cpath fill='%23fff' d='M5.41 12 9 8.41V11h16V8.42L28.58 12 25 15.59V13H9v2.59L5.41 12ZM4 12l6 6v-4h14v4l6-6-6-6v4H10V6l-6 6Z'/%3E%3Cpath fill='%23202125' d='M12.5 13h12.52v2.59L28.58 12l-3.56-3.58v2.6H9v-2.6L5.41 12 9 15.59V13h3.5Z'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='a' width='29.6' height='15.6' x='2.2' y='5.2' color-interpolation-filters='sRGB' filterUnits='userSpaceOnUse'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' result='hardAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0'/%3E%3CfeOffset dy='1'/%3E%3CfeGaussianBlur stdDeviation='.9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.65 0'/%3E%3CfeBlend in2='BackgroundImageFix' result='effect1_dropShadow_504_477'/%3E%3CfeBlend in='SourceGraphic' in2='effect1_dropShadow_504_477' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
|
|
50
|
+
background-size: contain;
|
|
51
|
+
background-repeat: no-repeat;
|
|
52
|
+
width: 34px;
|
|
53
|
+
height: 24px;
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Animations */
|
|
59
|
+
@layer components {
|
|
60
|
+
@keyframes spinner-spin-shape1 {
|
|
61
|
+
0% {
|
|
62
|
+
transform: translate(0, 0);
|
|
63
|
+
}
|
|
64
|
+
25% {
|
|
65
|
+
transform: translate(0, var(--bounce));
|
|
66
|
+
}
|
|
67
|
+
50% {
|
|
68
|
+
transform: translate(var(--bounce), var(--bounce));
|
|
69
|
+
}
|
|
70
|
+
75% {
|
|
71
|
+
transform: translate(var(--bounce), 0);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
@keyframes spinner-spin-shape2 {
|
|
75
|
+
0% {
|
|
76
|
+
transform: translate(0, 0);
|
|
77
|
+
}
|
|
78
|
+
25% {
|
|
79
|
+
transform: translate(calc(var(--bounce) * -1), 0);
|
|
80
|
+
}
|
|
81
|
+
50% {
|
|
82
|
+
transform: translate(calc(var(--bounce) * -1), var(--bounce));
|
|
83
|
+
}
|
|
84
|
+
75% {
|
|
85
|
+
transform: translate(0, var(--bounce));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
@keyframes spinner-spin-shape3 {
|
|
89
|
+
0% {
|
|
90
|
+
transform: translate(0, 0);
|
|
91
|
+
}
|
|
92
|
+
25% {
|
|
93
|
+
transform: translate(var(--bounce), 0);
|
|
94
|
+
}
|
|
95
|
+
50% {
|
|
96
|
+
transform: translate(var(--bounce), calc(var(--bounce) * -1));
|
|
97
|
+
}
|
|
98
|
+
75% {
|
|
99
|
+
transform: translate(0, calc(var(--bounce) * -1));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
@keyframes spinner-spin-shape4 {
|
|
103
|
+
0% {
|
|
104
|
+
transform: translate(0, 0);
|
|
105
|
+
}
|
|
106
|
+
25% {
|
|
107
|
+
transform: translate(0, calc(var(--bounce) * -1));
|
|
108
|
+
}
|
|
109
|
+
50% {
|
|
110
|
+
transform: translate(calc(var(--bounce) * -1), calc(var(--bounce) * -1));
|
|
111
|
+
}
|
|
112
|
+
75% {
|
|
113
|
+
transform: translate(calc(var(--bounce) * -1), 0);
|
|
18
114
|
}
|
|
19
115
|
}
|
|
116
|
+
|
|
117
|
+
@keyframes spinner-bounce-left {
|
|
118
|
+
0% {
|
|
119
|
+
transform: translate3d(0, 0, 0) scale(1);
|
|
120
|
+
}
|
|
121
|
+
25% {
|
|
122
|
+
background-color: currentColor;
|
|
123
|
+
}
|
|
124
|
+
100% {
|
|
125
|
+
transform: translate3d(calc(var(--shape) / -1), 0, 0) scale(0.64);
|
|
126
|
+
background-color: transparent;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
@keyframes spinner-bounce-right {
|
|
130
|
+
0% {
|
|
131
|
+
transform: translate3d(0, 0, 0) scale(1);
|
|
132
|
+
}
|
|
133
|
+
25% {
|
|
134
|
+
background-color: currentColor;
|
|
135
|
+
}
|
|
136
|
+
100% {
|
|
137
|
+
transform: translate3d(var(--shape), 0, 0) scale(0.64);
|
|
138
|
+
background-color: transparent;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@keyframes indeterminate-bar {
|
|
143
|
+
0% {
|
|
144
|
+
transform: translateX(-50%) scaleX(0.2);
|
|
145
|
+
}
|
|
146
|
+
100% {
|
|
147
|
+
transform: translateX(100%) scaleX(1);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Allotment styles */
|
|
153
|
+
@layer components {
|
|
20
154
|
.allotment-module_splitView__L-yRc {
|
|
21
155
|
position: relative;
|
|
22
156
|
width: 100%;
|
|
@@ -228,31 +362,8 @@
|
|
|
228
362
|
}
|
|
229
363
|
}
|
|
230
364
|
|
|
365
|
+
/* Panel row styles */
|
|
231
366
|
@layer components {
|
|
232
|
-
.scrollbar-hide {
|
|
233
|
-
/* IE and Edge */
|
|
234
|
-
-ms-overflow-style: none;
|
|
235
|
-
/* Firefox */
|
|
236
|
-
scrollbar-width: none;
|
|
237
|
-
/* Safari and Chrome */
|
|
238
|
-
&::-webkit-scrollbar {
|
|
239
|
-
display: none;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.press-move-cursor {
|
|
244
|
-
position: fixed;
|
|
245
|
-
top: 0;
|
|
246
|
-
left: 0;
|
|
247
|
-
z-index: 10000001;
|
|
248
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='24' fill='none'%3E%3Cg filter='url(%23a)'%3E%3Cpath fill='%23fff' d='M5.41 12 9 8.41V11h16V8.42L28.58 12 25 15.59V13H9v2.59L5.41 12ZM4 12l6 6v-4h14v4l6-6-6-6v4H10V6l-6 6Z'/%3E%3Cpath fill='%23202125' d='M12.5 13h12.52v2.59L28.58 12l-3.56-3.58v2.6H9v-2.6L5.41 12 9 15.59V13h3.5Z'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='a' width='29.6' height='15.6' x='2.2' y='5.2' color-interpolation-filters='sRGB' filterUnits='userSpaceOnUse'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' result='hardAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0'/%3E%3CfeOffset dy='1'/%3E%3CfeGaussianBlur stdDeviation='.9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.65 0'/%3E%3CfeBlend in2='BackgroundImageFix' result='effect1_dropShadow_504_477'/%3E%3CfeBlend in='SourceGraphic' in2='effect1_dropShadow_504_477' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
|
|
249
|
-
background-size: contain;
|
|
250
|
-
background-repeat: no-repeat;
|
|
251
|
-
width: 34px;
|
|
252
|
-
height: 24px;
|
|
253
|
-
pointer-events: none;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
367
|
.properties-panel {
|
|
257
368
|
@apply relative flex min-w-0 flex-col;
|
|
258
369
|
&:not(:last-child) {
|
|
@@ -341,42 +452,10 @@
|
|
|
341
452
|
grid-template-columns: 1fr 1fr 1.5rem;
|
|
342
453
|
grid-template-areas: "label-1 label-2 ." "input-1 input-3 icon-1" "input-2 input-3 icon-2";
|
|
343
454
|
}
|
|
455
|
+
}
|
|
344
456
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
grid-template-areas: "prefix input suffix";
|
|
348
|
-
&::before {
|
|
349
|
-
@apply pointer-events-none z-2 h-full border transform-3d;
|
|
350
|
-
grid-row: 1 / 2;
|
|
351
|
-
grid-column: 1 / 4;
|
|
352
|
-
border-radius: inherit;
|
|
353
|
-
content: "";
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.input__number {
|
|
358
|
-
grid-template-rows: 1.5rem;
|
|
359
|
-
grid-template-columns: auto auto 1fr auto auto;
|
|
360
|
-
grid-template-areas: "prefix-handler variable input action suffix-handler";
|
|
361
|
-
&::before {
|
|
362
|
-
@apply pointer-events-none z-3 h-6 rounded-md border;
|
|
363
|
-
grid-row: 1 / 2;
|
|
364
|
-
grid-column: 1 / 6;
|
|
365
|
-
content: "";
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.input-search {
|
|
370
|
-
@apply relative grid;
|
|
371
|
-
grid-template-columns: 1.5rem 1fr auto;
|
|
372
|
-
grid-template-areas: "icon input action";
|
|
373
|
-
&::before {
|
|
374
|
-
@apply pointer-events-none z-2 h-full rounded-md border border-transparent;
|
|
375
|
-
grid-row: 1 / 2;
|
|
376
|
-
grid-column: 1 / 4;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
|
|
457
|
+
/* Condition styles */
|
|
458
|
+
@layer components {
|
|
380
459
|
.condition__group {
|
|
381
460
|
grid-template-rows: repeat(auto-fill, minmax(0, 1fr));
|
|
382
461
|
grid-template-columns: 1fr 1.5rem;
|
|
@@ -402,7 +481,10 @@
|
|
|
402
481
|
bottom: 2.25rem;
|
|
403
482
|
}
|
|
404
483
|
}
|
|
484
|
+
}
|
|
405
485
|
|
|
486
|
+
/* Tree list styles */
|
|
487
|
+
@layer components {
|
|
406
488
|
.tree-list {
|
|
407
489
|
&[data-has-horizontal-scroll="true"] {
|
|
408
490
|
& .tree-list_node::after {
|
|
@@ -422,7 +504,32 @@
|
|
|
422
504
|
width: var(--tree-node-width);
|
|
423
505
|
height: var(--tree-list-height);
|
|
424
506
|
}
|
|
507
|
+
}
|
|
425
508
|
|
|
509
|
+
/* Skeleton styles */
|
|
510
|
+
@layer components {
|
|
511
|
+
.skeleton {
|
|
512
|
+
transition: all 0.2s ease-in-out !important;
|
|
513
|
+
outline: none !important;
|
|
514
|
+
box-shadow: none !important;
|
|
515
|
+
border-color: transparent !important;
|
|
516
|
+
border-radius: var(--radius-md);
|
|
517
|
+
background-color: var(--color-secondary-background) !important;
|
|
518
|
+
resize: none !important;
|
|
519
|
+
pointer-events: none !important;
|
|
520
|
+
color: transparent !important;
|
|
521
|
+
&::placeholder,
|
|
522
|
+
&:placeholder-shown {
|
|
523
|
+
color: transparent !important;
|
|
524
|
+
}
|
|
525
|
+
& * {
|
|
526
|
+
visibility: hidden !important;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/* Comments styles */
|
|
532
|
+
@layer components {
|
|
426
533
|
.comments__input {
|
|
427
534
|
grid-template-columns: calc(var(--spacing) * 6) 1fr;
|
|
428
535
|
}
|
|
@@ -434,135 +541,55 @@
|
|
|
434
541
|
grid-template-areas: "avatar meta action" ". content reaction" ". reactions .";
|
|
435
542
|
column-gap: calc(var(--spacing) * 2);
|
|
436
543
|
}
|
|
544
|
+
}
|
|
437
545
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
grid-template-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
0% {
|
|
450
|
-
transform: translate(0, 0);
|
|
451
|
-
}
|
|
452
|
-
25% {
|
|
453
|
-
transform: translate(0, var(--bounce));
|
|
454
|
-
}
|
|
455
|
-
50% {
|
|
456
|
-
transform: translate(var(--bounce), var(--bounce));
|
|
457
|
-
}
|
|
458
|
-
75% {
|
|
459
|
-
transform: translate(var(--bounce), 0);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
@keyframes spinner-spin-shape2 {
|
|
463
|
-
0% {
|
|
464
|
-
transform: translate(0, 0);
|
|
465
|
-
}
|
|
466
|
-
25% {
|
|
467
|
-
transform: translate(calc(var(--bounce) * -1), 0);
|
|
468
|
-
}
|
|
469
|
-
50% {
|
|
470
|
-
transform: translate(calc(var(--bounce) * -1), var(--bounce));
|
|
471
|
-
}
|
|
472
|
-
75% {
|
|
473
|
-
transform: translate(0, var(--bounce));
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
@keyframes spinner-spin-shape3 {
|
|
477
|
-
0% {
|
|
478
|
-
transform: translate(0, 0);
|
|
479
|
-
}
|
|
480
|
-
25% {
|
|
481
|
-
transform: translate(var(--bounce), 0);
|
|
482
|
-
}
|
|
483
|
-
50% {
|
|
484
|
-
transform: translate(var(--bounce), calc(var(--bounce) * -1));
|
|
485
|
-
}
|
|
486
|
-
75% {
|
|
487
|
-
transform: translate(0, calc(var(--bounce) * -1));
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
@keyframes spinner-spin-shape4 {
|
|
491
|
-
0% {
|
|
492
|
-
transform: translate(0, 0);
|
|
493
|
-
}
|
|
494
|
-
25% {
|
|
495
|
-
transform: translate(0, calc(var(--bounce) * -1));
|
|
496
|
-
}
|
|
497
|
-
50% {
|
|
498
|
-
transform: translate(calc(var(--bounce) * -1), calc(var(--bounce) * -1));
|
|
499
|
-
}
|
|
500
|
-
75% {
|
|
501
|
-
transform: translate(calc(var(--bounce) * -1), 0);
|
|
546
|
+
/* Fields styles */
|
|
547
|
+
@layer components {
|
|
548
|
+
.fields__text-field {
|
|
549
|
+
grid-template-columns: auto 1fr auto;
|
|
550
|
+
grid-template-areas: "prefix input suffix";
|
|
551
|
+
&::before {
|
|
552
|
+
@apply pointer-events-none z-2 h-full border transform-3d;
|
|
553
|
+
grid-row: 1 / 2;
|
|
554
|
+
grid-column: 1 / 4;
|
|
555
|
+
border-radius: inherit;
|
|
556
|
+
content: "";
|
|
502
557
|
}
|
|
503
558
|
}
|
|
504
559
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
background-color: transparent;
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
@keyframes spinner-bounce-right {
|
|
518
|
-
0% {
|
|
519
|
-
transform: translate3d(0, 0, 0) scale(1);
|
|
520
|
-
}
|
|
521
|
-
25% {
|
|
522
|
-
background-color: currentColor;
|
|
523
|
-
}
|
|
524
|
-
100% {
|
|
525
|
-
transform: translate3d(var(--shape), 0, 0) scale(0.64);
|
|
526
|
-
background-color: transparent;
|
|
560
|
+
.input__number {
|
|
561
|
+
grid-template-rows: 1.5rem;
|
|
562
|
+
grid-template-columns: auto auto 1fr auto auto;
|
|
563
|
+
grid-template-areas: "prefix-handler variable input action suffix-handler";
|
|
564
|
+
&::before {
|
|
565
|
+
@apply pointer-events-none z-3 h-6 rounded-md border;
|
|
566
|
+
grid-row: 1 / 2;
|
|
567
|
+
grid-column: 1 / 6;
|
|
568
|
+
content: "";
|
|
527
569
|
}
|
|
528
570
|
}
|
|
529
571
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
572
|
+
.input-search {
|
|
573
|
+
@apply relative grid;
|
|
574
|
+
grid-template-columns: 1.5rem 1fr auto;
|
|
575
|
+
grid-template-areas: "icon input action";
|
|
576
|
+
&::before {
|
|
577
|
+
@apply pointer-events-none z-2 h-full rounded-md border border-transparent;
|
|
578
|
+
grid-row: 1 / 2;
|
|
579
|
+
grid-column: 1 / 4;
|
|
536
580
|
}
|
|
537
581
|
}
|
|
538
582
|
}
|
|
539
583
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
--shadow-border-white: 0 0 0 1px var(--color-white);
|
|
548
|
-
--shadow-border-white-inset: inset 0 0 0 1px var(--color-white);
|
|
549
|
-
|
|
550
|
-
--shadow-range-thumb:
|
|
551
|
-
0 0 0 2px rgb(255 255 255), 0 1px 4px 2px rgba(0 0 0 / 0.1), 0 4px 8px 2px rgba(0 0 0 / 0.1),
|
|
552
|
-
0 0 1px 2px rgba(0 0 0 / 0.3);
|
|
553
|
-
|
|
554
|
-
--shadow-checked-focused:
|
|
555
|
-
inset 0 0 0 1px var(--color-default-background), inset 0 0 0 8px var(--color-accent-background);
|
|
556
|
-
|
|
557
|
-
--shadow-switch-focused:
|
|
558
|
-
inset 0 0 0 1px var(--color-default-background), inset 0 0 0 8px var(--color-default-foreground);
|
|
584
|
+
/* Modal styles */
|
|
585
|
+
@layer components {
|
|
586
|
+
.modal__header {
|
|
587
|
+
@apply grid;
|
|
588
|
+
grid-template-rows: minmax(2.5rem, auto);
|
|
589
|
+
grid-template-areas: "title . close" "input input input";
|
|
590
|
+
}
|
|
559
591
|
|
|
560
|
-
--
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
--animate-spinner-spin-shape4: spinner-spin-shape4 2s linear 0s infinite normal;
|
|
564
|
-
--animate-spinner-bounce-left: spinner-bounce-left 0.5s infinite alternate ease;
|
|
565
|
-
--animate-spinner-bounce-right: spinner-bounce-right 0.5s infinite alternate ease;
|
|
566
|
-
--animate-indeterminate-bar: indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395)
|
|
567
|
-
infinite normal none running;
|
|
592
|
+
.modal__header--action {
|
|
593
|
+
grid-template-columns: auto 1fr 2.5rem;
|
|
594
|
+
}
|
|
568
595
|
}
|