@cladd-ui/react 0.0.10 → 0.0.11
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/CHANGELOG.md +12 -0
- package/components/FocusableLayer.d.ts +1 -1
- package/components/FocusableLayer.js +1 -1
- package/components/FocusableLayer.js.map +1 -1
- package/components/ListTitle.d.ts +10 -0
- package/components/ListTitle.d.ts.map +1 -0
- package/components/ListTitle.js +7 -0
- package/components/ListTitle.js.map +1 -0
- package/components/OTPFieldContext.d.ts.map +1 -1
- package/components/OTPFieldContext.js.map +1 -1
- package/components/{Searchbar.d.ts → SearchField.d.ts} +7 -7
- package/components/SearchField.d.ts.map +1 -0
- package/components/{Searchbar.js → SearchField.js} +2 -2
- package/components/SearchField.js.map +1 -0
- package/components/SectionTitle.d.ts +10 -0
- package/components/SectionTitle.d.ts.map +1 -0
- package/components/SectionTitle.js +7 -0
- package/components/SectionTitle.js.map +1 -0
- package/components/Segmented.d.ts.map +1 -1
- package/components/Segmented.js.map +1 -1
- package/components/Select.d.ts +1 -1
- package/components/Select.d.ts.map +1 -1
- package/components/Select.js +9 -8
- package/components/Select.js.map +1 -1
- package/components/Shortcut.js +3 -3
- package/components/Shortcut.js.map +1 -1
- package/components/{Range.d.ts → Slider.d.ts} +7 -7
- package/components/Slider.d.ts.map +1 -0
- package/components/{Range.js → Slider.js} +6 -6
- package/components/Slider.js.map +1 -0
- package/components/Spinner.d.ts +12 -0
- package/components/Spinner.d.ts.map +1 -0
- package/components/{Preloader.js → Spinner.js} +3 -3
- package/components/Spinner.js.map +1 -0
- package/components/Tooltip.d.ts +27 -43
- package/components/Tooltip.d.ts.map +1 -1
- package/components/Tooltip.js +134 -79
- package/components/Tooltip.js.map +1 -1
- package/components/TooltipPrimitive.d.ts +48 -0
- package/components/TooltipPrimitive.d.ts.map +1 -0
- package/components/TooltipPrimitive.js +90 -0
- package/components/TooltipPrimitive.js.map +1 -0
- package/hooks/use-device.js +9 -9
- package/hooks/use-modal-utils.d.ts +1 -1
- package/hooks/use-modal-utils.js +17 -17
- package/index.d.ts +54 -53
- package/index.d.ts.map +1 -1
- package/index.js +54 -53
- package/index.js.map +1 -1
- package/package.json +8 -8
- package/shared/rounded-classes.d.ts +4 -4
- package/shared/rounded-classes.js +33 -33
- package/styles/{preloader.css → spinner.css} +8 -8
- package/ui.css +5 -5
- package/components/BlockTitle.d.ts +0 -10
- package/components/BlockTitle.d.ts.map +0 -1
- package/components/BlockTitle.js +0 -7
- package/components/BlockTitle.js.map +0 -1
- package/components/Preloader.d.ts +0 -12
- package/components/Preloader.d.ts.map +0 -1
- package/components/Preloader.js.map +0 -1
- package/components/Range.d.ts.map +0 -1
- package/components/Range.js.map +0 -1
- package/components/Searchbar.d.ts.map +0 -1
- package/components/Searchbar.js.map +0 -1
- package/components/WithTooltip.d.ts +0 -36
- package/components/WithTooltip.d.ts.map +0 -1
- package/components/WithTooltip.js +0 -138
- package/components/WithTooltip.js.map +0 -1
- /package/styles/{range.css → slider.css} +0 -0
package/hooks/use-modal-utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useEffect, useRef, useState } from
|
|
2
|
-
import { nextTick } from
|
|
1
|
+
import { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { nextTick } from '../shared/next-tick';
|
|
3
3
|
export const useModalUtils = ({ phase, onPhaseChange = () => { }, lazy, onClose = () => { }, onClosed = () => { }, onOpen = () => { }, onOpened = () => { }, transitionEndElRef, closeOnEscape = true, }) => {
|
|
4
4
|
const initiallyOpenedRef = useRef(false);
|
|
5
5
|
const [opened, setOpened] = useState(false);
|
|
@@ -13,13 +13,13 @@ export const useModalUtils = ({ phase, onPhaseChange = () => { }, lazy, onClose
|
|
|
13
13
|
if (closedFiredRef.current)
|
|
14
14
|
return;
|
|
15
15
|
closedFiredRef.current = true;
|
|
16
|
-
callbacksRef.current.onPhaseChange(
|
|
16
|
+
callbacksRef.current.onPhaseChange('closed');
|
|
17
17
|
callbacksRef.current.onClosed();
|
|
18
18
|
};
|
|
19
19
|
const close = () => {
|
|
20
20
|
setOpened(false);
|
|
21
21
|
onClose();
|
|
22
|
-
onPhaseChange(
|
|
22
|
+
onPhaseChange('closing');
|
|
23
23
|
};
|
|
24
24
|
const open = () => {
|
|
25
25
|
closedFiredRef.current = false;
|
|
@@ -32,10 +32,10 @@ export const useModalUtils = ({ phase, onPhaseChange = () => { }, lazy, onClose
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
const onKeyDown = (e) => {
|
|
35
|
-
if (e.key ===
|
|
35
|
+
if (e.key === 'Escape') {
|
|
36
36
|
if (closeOnEscape === false)
|
|
37
37
|
return;
|
|
38
|
-
if (typeof closeOnEscape ===
|
|
38
|
+
if (typeof closeOnEscape === 'function' && !closeOnEscape())
|
|
39
39
|
return;
|
|
40
40
|
e.preventDefault();
|
|
41
41
|
e.stopPropagation();
|
|
@@ -47,31 +47,31 @@ export const useModalUtils = ({ phase, onPhaseChange = () => { }, lazy, onClose
|
|
|
47
47
|
return;
|
|
48
48
|
if (!transitionEndElRef.current || e.target !== transitionEndElRef.current)
|
|
49
49
|
return;
|
|
50
|
-
if (phase ===
|
|
50
|
+
if (phase === 'closing') {
|
|
51
51
|
fireClosed();
|
|
52
52
|
}
|
|
53
|
-
if (phase ===
|
|
53
|
+
if (phase === 'opening' || phase === 'opened') {
|
|
54
54
|
onOpened(transitionEndElRef.current);
|
|
55
|
-
if (phase ===
|
|
56
|
-
onPhaseChange(
|
|
55
|
+
if (phase === 'opening') {
|
|
56
|
+
onPhaseChange('opened');
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
useEffect(() => {
|
|
61
|
-
document.addEventListener(
|
|
61
|
+
document.addEventListener('keydown', onKeyDown);
|
|
62
62
|
const el = transitionEndElRef?.current;
|
|
63
63
|
if (el) {
|
|
64
64
|
if (!el.checkVisibility()) {
|
|
65
65
|
onTransitionEnd({ target: el });
|
|
66
66
|
}
|
|
67
67
|
else {
|
|
68
|
-
el.addEventListener(
|
|
68
|
+
el.addEventListener('transitionend', onTransitionEnd);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
return () => {
|
|
72
|
-
document.removeEventListener(
|
|
72
|
+
document.removeEventListener('keydown', onKeyDown);
|
|
73
73
|
if (el) {
|
|
74
|
-
el.removeEventListener(
|
|
74
|
+
el.removeEventListener('transitionend', onTransitionEnd);
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
});
|
|
@@ -83,13 +83,13 @@ export const useModalUtils = ({ phase, onPhaseChange = () => { }, lazy, onClose
|
|
|
83
83
|
}
|
|
84
84
|
}, [opened]);
|
|
85
85
|
useEffect(() => {
|
|
86
|
-
if (phase ===
|
|
86
|
+
if (phase === 'closing') {
|
|
87
87
|
if (opened) {
|
|
88
88
|
setOpened(false);
|
|
89
89
|
onClose();
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
else if (phase ===
|
|
92
|
+
else if (phase === 'opening' || phase === 'opened') {
|
|
93
93
|
if (!opened && initiallyOpenedRef.current) {
|
|
94
94
|
open();
|
|
95
95
|
}
|
|
@@ -100,7 +100,7 @@ export const useModalUtils = ({ phase, onPhaseChange = () => { }, lazy, onClose
|
|
|
100
100
|
// transitionend could fire), synthetically flip external state to closed.
|
|
101
101
|
useEffect(() => {
|
|
102
102
|
return () => {
|
|
103
|
-
if (phaseRef.current ===
|
|
103
|
+
if (phaseRef.current === 'closing') {
|
|
104
104
|
fireClosed();
|
|
105
105
|
}
|
|
106
106
|
};
|
package/index.d.ts
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
export { useDevice } from
|
|
2
|
-
export { useDialog } from
|
|
3
|
-
export { useSurface } from
|
|
4
|
-
export { useTheme } from
|
|
5
|
-
export { useToast } from
|
|
6
|
-
export { useAccentColor } from
|
|
7
|
-
export { cn } from
|
|
8
|
-
export { nextTick } from
|
|
9
|
-
export { CloseIcon } from
|
|
10
|
-
export { SearchIcon } from
|
|
11
|
-
export { DropdownIcon } from
|
|
12
|
-
export { CheckIcon } from
|
|
13
|
-
export { Backdrop, type BackdropProps } from
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export { NumberField, type NumberFieldProps, type NumberFieldSize, } from
|
|
26
|
-
export { OTPField, type OTPFieldProps } from
|
|
27
|
-
export { OTPFieldInput, type OTPFieldInputProps, } from
|
|
28
|
-
export { OTPFieldSeparator, type OTPFieldSeparatorProps, } from
|
|
29
|
-
export { Popover, PopoverClose, PopoverRoot, PopoverTrigger, type PopoverProps, } from
|
|
30
|
-
export { Popup, PopupClose, PopupRoot, PopupTrigger, type PopupProps, } from
|
|
31
|
-
export { PopupContent, type PopupContentProps, } from
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
1
|
+
export { useDevice } from './hooks/use-device';
|
|
2
|
+
export { useDialog } from './hooks/use-dialog';
|
|
3
|
+
export { useSurface } from './hooks/use-surface';
|
|
4
|
+
export { useTheme } from './hooks/use-theme';
|
|
5
|
+
export { useToast } from './hooks/use-toast';
|
|
6
|
+
export { useAccentColor } from './hooks/use-accent-color';
|
|
7
|
+
export { cn } from './shared/cn';
|
|
8
|
+
export { nextTick } from './shared/next-tick';
|
|
9
|
+
export { CloseIcon } from './components/icons/CloseIcon';
|
|
10
|
+
export { SearchIcon } from './components/icons/SearchIcon';
|
|
11
|
+
export { DropdownIcon } from './components/icons/DropdownIcon';
|
|
12
|
+
export { CheckIcon } from './components/icons/CheckIcon';
|
|
13
|
+
export { Backdrop, type BackdropProps } from './components/Backdrop';
|
|
14
|
+
export { Button, type ButtonProps, type ButtonSize } from './components/Button';
|
|
15
|
+
export { Checkbox, type CheckboxProps, type CheckboxSize, } from './components/Checkbox';
|
|
16
|
+
export { Chip, type ChipProps, type ChipSize } from './components/Chip';
|
|
17
|
+
export { Dialog, DialogClose, DialogRoot, DialogTrigger, type DialogProps, } from './components/Dialog';
|
|
18
|
+
export { Input, type InputProps, type InputSize } from './components/Input';
|
|
19
|
+
export { Link, type LinkProps } from './components/Link';
|
|
20
|
+
export { List, type ListProps } from './components/List';
|
|
21
|
+
export { ListButton, type ListButtonProps } from './components/ListButton';
|
|
22
|
+
export { ListItem, type ListItemProps } from './components/ListItem';
|
|
23
|
+
export { ListSeparator, type ListSeparatorProps, } from './components/ListSeparator';
|
|
24
|
+
export { ListTitle, type ListTitleProps } from './components/ListTitle';
|
|
25
|
+
export { NumberField, type NumberFieldProps, type NumberFieldSize, } from './components/NumberField';
|
|
26
|
+
export { OTPField, type OTPFieldProps } from './components/OTPField';
|
|
27
|
+
export { OTPFieldInput, type OTPFieldInputProps, } from './components/OTPFieldInput';
|
|
28
|
+
export { OTPFieldSeparator, type OTPFieldSeparatorProps, } from './components/OTPFieldSeparator';
|
|
29
|
+
export { Popover, PopoverClose, PopoverRoot, PopoverTrigger, type PopoverProps, } from './components/Popover';
|
|
30
|
+
export { Popup, PopupClose, PopupRoot, PopupTrigger, type PopupProps, } from './components/Popup';
|
|
31
|
+
export { PopupContent, type PopupContentProps, } from './components/PopupContent';
|
|
32
|
+
export { Radio, type RadioProps, type RadioSize } from './components/Radio';
|
|
33
|
+
export { SearchField, type SearchFieldProps } from './components/SearchField';
|
|
34
|
+
export { SectionTitle, type SectionTitleProps, } from './components/SectionTitle';
|
|
35
|
+
export { Segmented, type SegmentedProps } from './components/Segmented';
|
|
36
|
+
export { SegmentedButton, type SegmentedButtonProps, } from './components/SegmentedButton';
|
|
37
|
+
export { Select, type SelectProps } from './components/Select';
|
|
38
|
+
export { Shortcut, type ShortcutProps, type ShortcutSize, } from './components/Shortcut';
|
|
39
|
+
export { Slider, type SliderProps, type SliderSize } from './components/Slider';
|
|
40
|
+
export { Spinner, type SpinnerProps, type SpinnerSize, } from './components/Spinner';
|
|
41
|
+
export { SurfaceContextProvider } from './components/SurfaceContext';
|
|
42
|
+
export { Surface, type SurfaceProps } from './components/Surface';
|
|
43
|
+
export { SurfaceContent, type SurfaceContentProps, } from './components/SurfaceContent';
|
|
44
|
+
export { SurfaceCut, type SurfaceCutProps } from './components/SurfaceCut';
|
|
45
|
+
export { SurfaceCutContent, type SurfaceCutContentProps, } from './components/SurfaceCutContent';
|
|
46
|
+
export { Switch, type SwitchProps, type SwitchSize } from './components/Switch';
|
|
47
|
+
export { TextArea, type TextAreaProps, type TextAreaSize, } from './components/TextArea';
|
|
48
|
+
export { Toast, ToastClose, ToastRoot, ToastTrigger, type ToastProps, } from './components/Toast';
|
|
49
|
+
export { Toolbar, type ToolbarProps } from './components/Toolbar';
|
|
50
|
+
export { ToolbarButton, type ToolbarButtonProps, } from './components/ToolbarButton';
|
|
51
|
+
export { ToolbarSeparator, type ToolbarSeparatorProps, } from './components/ToolbarSeparator';
|
|
52
|
+
export { Tooltip, type TooltipPosition, type TooltipProps, } from './components/Tooltip';
|
|
53
|
+
export { TooltipPrimitive, type TooltipPrimitiveProps, } from './components/TooltipPrimitive';
|
|
54
|
+
export { UIProvider, type UIProviderProps } from './components/UIProvider';
|
|
54
55
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,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AAsB,CAAC;AAClE,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,EACL,UAAU,EACV,SAAS,EACT,YAAY,EACZ,KAAK,UAAU,GAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,OAAO,EACP,KAAK,eAAe,EACpB,KAAK,YAAY,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
export { useDevice } from
|
|
2
|
-
export { useDialog } from
|
|
3
|
-
export { useSurface } from
|
|
4
|
-
export { useTheme } from
|
|
5
|
-
export { useToast } from
|
|
6
|
-
export { useAccentColor } from
|
|
7
|
-
export { cn } from
|
|
8
|
-
export { nextTick } from
|
|
9
|
-
export { CloseIcon } from
|
|
10
|
-
export { SearchIcon } from
|
|
11
|
-
export { DropdownIcon } from
|
|
12
|
-
export { CheckIcon } from
|
|
13
|
-
export { Backdrop } from
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export { NumberField, } from
|
|
26
|
-
export { OTPField } from
|
|
27
|
-
export { OTPFieldInput, } from
|
|
28
|
-
export { OTPFieldSeparator, } from
|
|
29
|
-
export { Popover, PopoverClose, PopoverRoot, PopoverTrigger, } from
|
|
30
|
-
export { Popup, PopupClose, PopupRoot, PopupTrigger, } from
|
|
31
|
-
export { PopupContent, } from
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
1
|
+
export { useDevice } from './hooks/use-device';
|
|
2
|
+
export { useDialog } from './hooks/use-dialog';
|
|
3
|
+
export { useSurface } from './hooks/use-surface';
|
|
4
|
+
export { useTheme } from './hooks/use-theme';
|
|
5
|
+
export { useToast } from './hooks/use-toast';
|
|
6
|
+
export { useAccentColor } from './hooks/use-accent-color';
|
|
7
|
+
export { cn } from './shared/cn';
|
|
8
|
+
export { nextTick } from './shared/next-tick';
|
|
9
|
+
export { CloseIcon } from './components/icons/CloseIcon';
|
|
10
|
+
export { SearchIcon } from './components/icons/SearchIcon';
|
|
11
|
+
export { DropdownIcon } from './components/icons/DropdownIcon';
|
|
12
|
+
export { CheckIcon } from './components/icons/CheckIcon';
|
|
13
|
+
export { Backdrop } from './components/Backdrop';
|
|
14
|
+
export { Button } from './components/Button';
|
|
15
|
+
export { Checkbox, } from './components/Checkbox';
|
|
16
|
+
export { Chip } from './components/Chip';
|
|
17
|
+
export { Dialog, DialogClose, DialogRoot, DialogTrigger, } from './components/Dialog';
|
|
18
|
+
export { Input } from './components/Input';
|
|
19
|
+
export { Link } from './components/Link';
|
|
20
|
+
export { List } from './components/List';
|
|
21
|
+
export { ListButton } from './components/ListButton';
|
|
22
|
+
export { ListItem } from './components/ListItem';
|
|
23
|
+
export { ListSeparator, } from './components/ListSeparator';
|
|
24
|
+
export { ListTitle } from './components/ListTitle';
|
|
25
|
+
export { NumberField, } from './components/NumberField';
|
|
26
|
+
export { OTPField } from './components/OTPField';
|
|
27
|
+
export { OTPFieldInput, } from './components/OTPFieldInput';
|
|
28
|
+
export { OTPFieldSeparator, } from './components/OTPFieldSeparator';
|
|
29
|
+
export { Popover, PopoverClose, PopoverRoot, PopoverTrigger, } from './components/Popover';
|
|
30
|
+
export { Popup, PopupClose, PopupRoot, PopupTrigger, } from './components/Popup';
|
|
31
|
+
export { PopupContent, } from './components/PopupContent';
|
|
32
|
+
export { Radio } from './components/Radio';
|
|
33
|
+
export { SearchField } from './components/SearchField';
|
|
34
|
+
export { SectionTitle, } from './components/SectionTitle';
|
|
35
|
+
export { Segmented } from './components/Segmented';
|
|
36
|
+
export { SegmentedButton, } from './components/SegmentedButton';
|
|
37
|
+
export { Select } from './components/Select';
|
|
38
|
+
export { Shortcut, } from './components/Shortcut';
|
|
39
|
+
export { Slider } from './components/Slider';
|
|
40
|
+
export { Spinner, } from './components/Spinner';
|
|
41
|
+
export { SurfaceContextProvider } from './components/SurfaceContext';
|
|
42
|
+
export { Surface } from './components/Surface';
|
|
43
|
+
export { SurfaceContent, } from './components/SurfaceContent';
|
|
44
|
+
export { SurfaceCut } from './components/SurfaceCut';
|
|
45
|
+
export { SurfaceCutContent, } from './components/SurfaceCutContent';
|
|
46
|
+
export { Switch } from './components/Switch';
|
|
47
|
+
export { TextArea, } from './components/TextArea';
|
|
48
|
+
export { Toast, ToastClose, ToastRoot, ToastTrigger, } from './components/Toast';
|
|
49
|
+
export { Toolbar } from './components/Toolbar';
|
|
50
|
+
export { ToolbarButton, } from './components/ToolbarButton';
|
|
51
|
+
export { ToolbarSeparator, } from './components/ToolbarSeparator';
|
|
52
|
+
export { Tooltip, } from './components/Tooltip';
|
|
53
|
+
export { TooltipPrimitive, } from './components/TooltipPrimitive';
|
|
54
|
+
export { UIProvider } from './components/UIProvider';
|
|
54
55
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,QAAQ,EAAsB,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","s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MAAM,EAAqC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EACL,QAAQ,GAGT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,EACL,UAAU,EACV,SAAS,EACT,YAAY,GAEb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAqB,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACL,aAAa,GAEd,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAgB,GAEjB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,OAAO,GAGR,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,GAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAwB,MAAM,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cladd-ui/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://cladd.io",
|
|
6
6
|
"bugs": {
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"url": "https://github.com/cladd-ui/cladd.git"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"**/*.css"
|
|
18
|
+
],
|
|
16
19
|
"module": "./index.js",
|
|
17
20
|
"types": "./index.d.ts",
|
|
18
21
|
"exports": {
|
|
@@ -24,15 +27,12 @@
|
|
|
24
27
|
"./styles/*": "./styles/*",
|
|
25
28
|
"./package.json": "./package.json"
|
|
26
29
|
},
|
|
27
|
-
"sideEffects": [
|
|
28
|
-
"**/*.css"
|
|
29
|
-
],
|
|
30
|
-
"peerDependencies": {
|
|
31
|
-
"react": ">=19",
|
|
32
|
-
"react-dom": ">=19"
|
|
33
|
-
},
|
|
34
30
|
"dependencies": {
|
|
35
31
|
"clsx": "^2.1.1",
|
|
36
32
|
"tailwind-merge": "^3.5.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": ">=19",
|
|
36
|
+
"react-dom": ">=19"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ButtonSize } from
|
|
2
|
-
import { InputSize } from
|
|
3
|
-
import { NumberFieldSize } from
|
|
4
|
-
import { TextAreaSize } from
|
|
1
|
+
import { ButtonSize } from '../components/Button';
|
|
2
|
+
import { InputSize } from '../components/Input';
|
|
3
|
+
import { NumberFieldSize } from '../components/NumberField';
|
|
4
|
+
import { TextAreaSize } from '../components/TextArea';
|
|
5
5
|
export declare const roundedClasses: (size: ButtonSize | InputSize | TextAreaSize | NumberFieldSize, rounded?: boolean, multiline?: boolean) => {
|
|
6
6
|
itemRoundedClasses: string;
|
|
7
7
|
focusRoundedClasses: string;
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
export const roundedClasses = (size, rounded, multiline) => {
|
|
2
2
|
const itemRoundedClasses = rounded && multiline
|
|
3
3
|
? {
|
|
4
|
-
sm:
|
|
5
|
-
md:
|
|
6
|
-
lg:
|
|
7
|
-
xl:
|
|
8
|
-
|
|
4
|
+
sm: 'rounded-[12px]',
|
|
5
|
+
md: 'rounded-[14px]',
|
|
6
|
+
lg: 'rounded-[16px]',
|
|
7
|
+
xl: 'rounded-[20px]',
|
|
8
|
+
'2xl': 'rounded-[24px]',
|
|
9
9
|
}[size]
|
|
10
10
|
: rounded
|
|
11
|
-
?
|
|
11
|
+
? 'rounded-full'
|
|
12
12
|
: {
|
|
13
|
-
sm:
|
|
14
|
-
md:
|
|
15
|
-
lg:
|
|
16
|
-
xl:
|
|
17
|
-
|
|
13
|
+
sm: 'rounded-md', // 6
|
|
14
|
+
md: 'rounded-lg', // 8
|
|
15
|
+
lg: 'rounded-[10px]', // 10
|
|
16
|
+
xl: 'rounded-xl', // 12
|
|
17
|
+
'2xl': 'rounded-2xl', // 16
|
|
18
18
|
}[size];
|
|
19
19
|
const focusRoundedClasses = rounded && multiline
|
|
20
20
|
? {
|
|
21
|
-
sm:
|
|
22
|
-
md:
|
|
23
|
-
lg:
|
|
24
|
-
xl:
|
|
25
|
-
|
|
21
|
+
sm: 'rounded-[18px]',
|
|
22
|
+
md: 'rounded-[20px]',
|
|
23
|
+
lg: 'rounded-[22px]',
|
|
24
|
+
xl: 'rounded-[26px]',
|
|
25
|
+
'2xl': 'rounded-[30px]',
|
|
26
26
|
}[size]
|
|
27
27
|
: rounded
|
|
28
|
-
?
|
|
28
|
+
? 'rounded-full'
|
|
29
29
|
: {
|
|
30
|
-
sm:
|
|
31
|
-
md:
|
|
32
|
-
lg:
|
|
33
|
-
xl:
|
|
34
|
-
|
|
30
|
+
sm: 'rounded-[12px]',
|
|
31
|
+
md: 'rounded-[14px]',
|
|
32
|
+
lg: 'rounded-[16px]',
|
|
33
|
+
xl: 'rounded-[18px]',
|
|
34
|
+
'2xl': 'rounded-[22px]',
|
|
35
35
|
}[size];
|
|
36
36
|
const wrapRoundedClasses = rounded && multiline
|
|
37
37
|
? {
|
|
38
|
-
sm:
|
|
39
|
-
md:
|
|
40
|
-
lg:
|
|
41
|
-
xl:
|
|
42
|
-
|
|
38
|
+
sm: 'rounded-[16px]',
|
|
39
|
+
md: 'rounded-[18px]',
|
|
40
|
+
lg: 'rounded-[20px]',
|
|
41
|
+
xl: 'rounded-[24px]',
|
|
42
|
+
'2xl': 'rounded-[28px]',
|
|
43
43
|
}[size]
|
|
44
44
|
: rounded
|
|
45
|
-
?
|
|
45
|
+
? 'rounded-full'
|
|
46
46
|
: {
|
|
47
|
-
sm:
|
|
48
|
-
md:
|
|
49
|
-
lg:
|
|
50
|
-
xl:
|
|
51
|
-
|
|
47
|
+
sm: 'rounded-[10px]',
|
|
48
|
+
md: 'rounded-[12px]',
|
|
49
|
+
lg: 'rounded-[14px]',
|
|
50
|
+
xl: 'rounded-[16px]',
|
|
51
|
+
'2xl': 'rounded-[18px]',
|
|
52
52
|
}[size];
|
|
53
53
|
return { itemRoundedClasses, focusRoundedClasses, wrapRoundedClasses };
|
|
54
54
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
@layer base {
|
|
2
|
-
.
|
|
2
|
+
.spinner-wrap {
|
|
3
3
|
transform-origin: center;
|
|
4
|
-
animation:
|
|
4
|
+
animation: spinner-rotate 4s infinite;
|
|
5
5
|
}
|
|
6
|
-
.
|
|
6
|
+
.spinner-knob {
|
|
7
7
|
transform-origin: left;
|
|
8
8
|
animation:
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
spinner-knob-move 1s infinite,
|
|
10
|
+
spinner-knob-scale 1s infinite;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
@keyframes
|
|
13
|
+
@keyframes spinner-rotate {
|
|
14
14
|
0% {
|
|
15
15
|
transform: rotate(0deg);
|
|
16
16
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@keyframes
|
|
36
|
+
@keyframes spinner-knob-move {
|
|
37
37
|
0%,
|
|
38
38
|
10% {
|
|
39
39
|
translate: 0px;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
@keyframes
|
|
51
|
+
@keyframes spinner-knob-scale {
|
|
52
52
|
0% {
|
|
53
53
|
scale: 0.9 1;
|
|
54
54
|
transform-origin: left;
|
package/ui.css
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
5
5
|
@custom-variant light (&:where(.light, .light *));
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
9
|
-
@import
|
|
10
|
-
@import
|
|
6
|
+
@import './styles/colors.css';
|
|
7
|
+
@import './styles/safe-areas.css';
|
|
8
|
+
@import './styles/spinner.css';
|
|
9
|
+
@import './styles/popup.css';
|
|
10
|
+
@import './styles/slider.css';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactNode, Ref, ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
interface BlockTitleOwnProps {
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
ref?: Ref<HTMLDivElement>;
|
|
6
|
-
}
|
|
7
|
-
export type BlockTitleProps = BlockTitleOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof BlockTitleOwnProps>;
|
|
8
|
-
export declare const BlockTitle: (props: BlockTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=BlockTitle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockTitle.d.ts","sourceRoot":"","sources":["../../../src/components/BlockTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAIjE,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAC9C,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,kBAAkB,CAAC,CAAC;AAElE,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,4CAehD,CAAC"}
|
package/components/BlockTitle.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '../shared/cn';
|
|
3
|
-
export const BlockTitle = (props) => {
|
|
4
|
-
const { children, className = '', ref, ...rest } = props;
|
|
5
|
-
return (_jsx("div", { ref: ref, className: cn('block-title flex items-end gap-4 text-xs font-medium text-on-surface-dark uppercase select-none', className), ...rest, children: children }));
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=BlockTitle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockTitle.js","sourceRoot":"","sources":["../../../src/components/BlockTitle.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAWlC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACnD,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEzD,OAAO,CACL,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,iGAAiG,EACjG,SAAS,CACV,KACG,IAAI,YAEP,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Color } from '../types';
|
|
2
|
-
export type PreloaderSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
3
|
-
export interface PreloaderProps {
|
|
4
|
-
/** Preloader dimension. Default `'sm'`. Drives the size, knob position, and border thickness. */
|
|
5
|
-
size?: PreloaderSize;
|
|
6
|
-
/** Accent color for the spinning knob and ring. Default: theme accent. */
|
|
7
|
-
color?: Color;
|
|
8
|
-
/** Extra classes for the preloader root element. */
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function Preloader(props: PreloaderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=Preloader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Preloader.d.ts","sourceRoot":"","sources":["../../../src/components/Preloader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAE9D,MAAM,WAAW,cAAc;IAC7B,iGAAiG;IACjG,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAsD9C"}
|