@wavv/ui 2.2.3 → 2.2.5
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/build/assets/icons/Checkbox.js +3 -3
- package/build/assets/icons/Exclamation.js +3 -3
- package/build/assets/icons/PhoneEnd.js +3 -3
- package/build/assets/icons/PhoneForward.js +3 -3
- package/build/assets/icons/PhoneHold.js +3 -3
- package/build/assets/icons/Record.js +3 -3
- package/build/assets/icons/ShieldWavv.js +3 -3
- package/build/components/Accordion/Accordion.d.ts +24 -3
- package/build/components/Accordion/Accordion.js +2 -1
- package/build/components/Accordion/Header.js +4 -4
- package/build/components/Accordion/Item.d.ts +12 -1
- package/build/components/Accordion/Item.js +12 -1
- package/build/components/Accordion/Panel.d.ts +3 -0
- package/build/components/Audio.js +3 -3
- package/build/components/Button/Button.d.ts +1 -1
- package/build/components/Button/Group.d.ts +1 -1
- package/build/components/Calendar.d.ts +4 -1
- package/build/components/CalendarParts/CalendarHeader.js +3 -3
- package/build/components/CalendarParts/useMinMax.js +3 -3
- package/build/components/Checkbox.d.ts +4 -3
- package/build/components/Checkbox.js +12 -20
- package/build/components/Code/Code.js +3 -3
- package/build/components/Code/Endpoint.js +3 -3
- package/build/components/ComboBox.d.ts +2 -2
- package/build/components/CommandMenu/CommandMenu.js +3 -3
- package/build/components/CommandMenu/CommandSection.js +3 -3
- package/build/components/Dot.js +3 -3
- package/build/components/DraftEditor.js +3 -3
- package/build/components/Dropdown.js +3 -3
- package/build/components/DropdownMenu.d.ts +5 -5
- package/build/components/DropdownMenuParts/MenuOptions.js +3 -3
- package/build/components/DropdownSelect.js +3 -3
- package/build/components/Editor/RichTextToolbar.js +3 -3
- package/build/components/Focusable.js +3 -3
- package/build/components/Form.d.ts +4 -2
- package/build/components/Form.js +9 -9
- package/build/components/Grid.js +3 -3
- package/build/components/Icon/customIcons.js +3 -3
- package/build/components/ImageViewer.js +3 -3
- package/build/components/InlineCode.js +3 -3
- package/build/components/Inputs/DatePicker.d.ts +5 -1
- package/build/components/Inputs/DateRangePicker.d.ts +5 -1
- package/build/components/Inputs/InlineInput.js +3 -3
- package/build/components/Inputs/NumberInput.d.ts +2 -2
- package/build/components/Inputs/PhoneInput.d.ts +2 -2
- package/build/components/Inputs/PhoneInput.js +3 -3
- package/build/components/Inputs/SearchInput.d.ts +2 -2
- package/build/components/Inputs/TextArea.d.ts +2 -4
- package/build/components/Inputs/TextInput.d.ts +2 -4
- package/build/components/Inputs/TextInput.js +3 -3
- package/build/components/Inputs/TimeInput.d.ts +2 -3
- package/build/components/Inputs/helpers/LabelWrapper.js +3 -3
- package/build/components/Inputs/helpers/useDynamicWidth.js +3 -3
- package/build/components/ListHelpers/ItemHeaderBody.js +3 -3
- package/build/components/ListHelpers/ListSection.js +3 -3
- package/build/components/Modal.d.ts +35 -21
- package/build/components/Modal.js +15 -3
- package/build/components/MultiSelect/SearchDropdown.d.ts +2 -2
- package/build/components/MultiSelect/SearchDropdown.js +3 -3
- package/build/components/Pagination.js +3 -3
- package/build/components/Popover.d.ts +13 -3
- package/build/components/Popover.js +3 -3
- package/build/components/Radio.js +3 -3
- package/build/components/RangeCalendar.d.ts +4 -1
- package/build/components/Select.d.ts +5 -5
- package/build/components/Slider.js +3 -3
- package/build/components/Table/Body.d.ts +5 -3
- package/build/components/Table/Body.js +3 -3
- package/build/components/Table/Cell.d.ts +5 -2
- package/build/components/Table/Column.d.ts +9 -2
- package/build/components/Table/ColumnSort.js +3 -3
- package/build/components/Table/Header.js +5 -5
- package/build/components/Table/Resizer.js +3 -3
- package/build/components/Table/Row.js +2 -2
- package/build/components/Table/Table.d.ts +34 -7
- package/build/components/Table/contentStyles.js +3 -3
- package/build/components/Tabs.d.ts +24 -4
- package/build/components/ToggleButton/ToggleButton.d.ts +4 -0
- package/build/components/ToggleButton/ToggleButton.js +3 -3
- package/build/components/ToggleButton/ToggleButtonGroup.d.ts +9 -1
- package/build/components/Tooltip.d.ts +6 -3
- package/build/components/Tree/Tree.d.ts +25 -3
- package/build/components/Tree/TreeItem.d.ts +11 -2
- package/build/components/Tree/TreeItem.js +2 -1
- package/build/components/UnstyledButton.js +3 -3
- package/build/components/helpers/getIcon.d.ts +1 -1
- package/build/components/helpers/mergePadding.js +3 -3
- package/build/components/typeDefs/inputTypes.d.ts +1 -0
- package/build/components/typeDefs/reactAriaTypes.d.ts +126 -0
- package/build/components/typeDefs/reactAriaTypes.js +0 -0
- package/build/components/typeDefs/selectionTypes.d.ts +1 -0
- package/build/global-styles/ResetStyles.js +3 -3
- package/build/hooks/useControlledOpenState.js +3 -3
- package/build/hooks/useOnClickOutside.js +3 -3
- package/build/hooks/useWindowSize.js +3 -3
- package/build/theme/core/dark/dark.js +3 -3
- package/build/theme/core/light/light.js +3 -3
- package/build/theme/eighties/dark/dark.js +3 -3
- package/build/theme/eighties/light/light.js +3 -3
- package/build/utils/chunk.js +3 -3
- package/build/utils/copyToClipboard.js +3 -3
- package/build/utils/formatNumber.js +3 -3
- package/package.json +24 -24
- package/build/components/Table/Check.d.ts +0 -3
- package/build/components/Table/Check.js +0 -35
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { ComboBoxProps as AriaComboBoxProps, MenuProps as AriaMenuProps, SelectProps as AriaSelectProps, NumberFieldProps as NumberProps, SearchFieldProps as SearchProps, TextFieldProps as TextProps, TimeFieldProps as TimeBaseProps, TimeValue } from 'react-aria-components';
|
|
2
|
+
import type { ListOption, SelectItem } from './selectionTypes';
|
|
3
|
+
/** INPUTS */
|
|
4
|
+
type TimeProps = TimeBaseProps<TimeValue>;
|
|
5
|
+
export type TextFieldProps = {
|
|
6
|
+
value?: TextProps['value'];
|
|
7
|
+
defaultValue?: TextProps['defaultValue'];
|
|
8
|
+
enterKeyHint?: TextProps['enterKeyHint'];
|
|
9
|
+
validate?: TextProps['validate'];
|
|
10
|
+
autoFocus?: TextProps['autoFocus'];
|
|
11
|
+
autoComplete?: TextProps['autoComplete'];
|
|
12
|
+
maxLength?: TextProps['maxLength'];
|
|
13
|
+
minLength?: TextProps['minLength'];
|
|
14
|
+
pattern?: TextProps['pattern'];
|
|
15
|
+
type?: TextProps['type'];
|
|
16
|
+
inputMode?: TextProps['inputMode'];
|
|
17
|
+
autoCorrect?: TextProps['autoCorrect'];
|
|
18
|
+
spellCheck?: TextProps['spellCheck'];
|
|
19
|
+
name?: TextProps['name'];
|
|
20
|
+
form?: TextProps['form'];
|
|
21
|
+
validationBehavior?: TextProps['validationBehavior'];
|
|
22
|
+
className?: TextProps['className'];
|
|
23
|
+
style?: TextProps['style'];
|
|
24
|
+
onChange?: TextProps['onChange'];
|
|
25
|
+
onInput?: TextProps['onInput'];
|
|
26
|
+
} & Omit<TextProps, 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired' | 'children'>;
|
|
27
|
+
export type SearchFieldProps = {
|
|
28
|
+
value?: SearchProps['value'];
|
|
29
|
+
defaultValue?: SearchProps['defaultValue'];
|
|
30
|
+
enterKeyHint?: SearchProps['enterKeyHint'];
|
|
31
|
+
validate?: SearchProps['validate'];
|
|
32
|
+
autoFocus?: SearchProps['autoFocus'];
|
|
33
|
+
autoComplete?: SearchProps['autoComplete'];
|
|
34
|
+
maxLength?: SearchProps['maxLength'];
|
|
35
|
+
minLength?: SearchProps['minLength'];
|
|
36
|
+
pattern?: SearchProps['pattern'];
|
|
37
|
+
type?: SearchProps['type'];
|
|
38
|
+
inputMode?: SearchProps['inputMode'];
|
|
39
|
+
autoCorrect?: SearchProps['autoCorrect'];
|
|
40
|
+
spellCheck?: SearchProps['spellCheck'];
|
|
41
|
+
name?: SearchProps['name'];
|
|
42
|
+
form?: SearchProps['form'];
|
|
43
|
+
validationBehavior?: SearchProps['validationBehavior'];
|
|
44
|
+
className?: SearchProps['className'];
|
|
45
|
+
style?: SearchProps['style'];
|
|
46
|
+
onChange?: SearchProps['onChange'];
|
|
47
|
+
onInput?: SearchProps['onInput'];
|
|
48
|
+
} & Omit<SearchProps, 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired' | 'children'>;
|
|
49
|
+
export type NumberFieldProps = {
|
|
50
|
+
value?: NumberProps['value'];
|
|
51
|
+
defaultValue?: NumberProps['defaultValue'];
|
|
52
|
+
isWheelDisabled?: NumberProps['isWheelDisabled'];
|
|
53
|
+
formatOptions?: NumberProps['formatOptions'];
|
|
54
|
+
validate?: NumberProps['validate'];
|
|
55
|
+
autoFocus?: NumberProps['autoFocus'];
|
|
56
|
+
minValue?: NumberProps['minValue'];
|
|
57
|
+
maxValue?: NumberProps['maxValue'];
|
|
58
|
+
step?: NumberProps['step'];
|
|
59
|
+
name?: NumberProps['name'];
|
|
60
|
+
form?: NumberProps['form'];
|
|
61
|
+
validationBehavior?: NumberProps['validationBehavior'];
|
|
62
|
+
className?: NumberProps['className'];
|
|
63
|
+
style?: NumberProps['style'];
|
|
64
|
+
onChange?: NumberProps['onChange'];
|
|
65
|
+
onInput?: NumberProps['onInput'];
|
|
66
|
+
} & Omit<NumberProps, 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired' | 'children'>;
|
|
67
|
+
export type TimeFieldProps = {
|
|
68
|
+
hourCycle?: TimeProps['hourCycle'];
|
|
69
|
+
granularity?: TimeProps['granularity'];
|
|
70
|
+
minValue?: TimeProps['minValue'];
|
|
71
|
+
maxValue?: TimeProps['maxValue'];
|
|
72
|
+
validate?: TimeProps['validate'];
|
|
73
|
+
autoFocus?: TimeProps['autoFocus'];
|
|
74
|
+
name?: TimeProps['name'];
|
|
75
|
+
form?: TimeProps['form'];
|
|
76
|
+
validationBehavior?: TimeProps['validationBehavior'];
|
|
77
|
+
className?: TimeProps['className'];
|
|
78
|
+
style?: TimeProps['style'];
|
|
79
|
+
} & Omit<TimeProps, 'value' | 'defaultValue' | 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'isRequired' | 'children' | 'onChange'>;
|
|
80
|
+
/** SELECTS */
|
|
81
|
+
type Combo = AriaComboBoxProps<object>;
|
|
82
|
+
export type ComboBoxProps = {
|
|
83
|
+
defaultFilter?: Combo['defaultFilter'];
|
|
84
|
+
formValue?: Combo['formValue'];
|
|
85
|
+
allowsEmptyCollection?: Combo['allowsEmptyCollection'];
|
|
86
|
+
shouldFocusWrap?: Combo['shouldFocusWrap'];
|
|
87
|
+
allowsCustomValue?: Combo['allowsCustomValue'];
|
|
88
|
+
menuTrigger?: Combo['menuTrigger'];
|
|
89
|
+
disabledKeys?: Combo['disabledKeys'];
|
|
90
|
+
validate?: Combo['validate'];
|
|
91
|
+
autoFocus?: Combo['autoFocus'];
|
|
92
|
+
name?: Combo['name'];
|
|
93
|
+
form?: Combo['form'];
|
|
94
|
+
validationBehavior?: Combo['validationBehavior'];
|
|
95
|
+
className?: Combo['className'];
|
|
96
|
+
style?: Combo['style'];
|
|
97
|
+
onOpenChange?: Combo['onOpenChange'];
|
|
98
|
+
} & Omit<Combo, 'children' | 'defaultItems' | 'items' | 'onSelectionChange' | 'onInputChange' | 'selectedKey' | 'defaultSelectedKey' | 'inputValue' | 'defaultInputValue' | 'isOpen' | 'isDisabled' | 'isInvalid' | 'isRequired'>;
|
|
99
|
+
type Select = AriaSelectProps<SelectItem>;
|
|
100
|
+
export type SelectProps = {
|
|
101
|
+
autoComplete?: Select['autoComplete'];
|
|
102
|
+
name?: Select['name'];
|
|
103
|
+
form?: Select['form'];
|
|
104
|
+
defaultOpen?: Select['defaultOpen'];
|
|
105
|
+
disabledKeys?: Select['disabledKeys'];
|
|
106
|
+
defaultValue?: Select['defaultValue'];
|
|
107
|
+
autoFocus?: Select['autoFocus'];
|
|
108
|
+
validationBehavior?: Select['validationBehavior'];
|
|
109
|
+
className?: Select['className'];
|
|
110
|
+
style?: Select['style'];
|
|
111
|
+
onOpenChange?: Select['onOpenChange'];
|
|
112
|
+
} & Omit<Select, 'placeholder' | 'selectionMode' | 'value' | 'children' | 'isOpen' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'defaultSelectedKey' | 'selectionMode' | 'onChange' | 'validate' | 'onSelectionChange'>;
|
|
113
|
+
type MenuProps = AriaMenuProps<ListOption>;
|
|
114
|
+
export type DropdownMenuProps = {
|
|
115
|
+
renderEmptyState?: MenuProps['renderEmptyState'];
|
|
116
|
+
escapeKeyBehavior?: MenuProps['escapeKeyBehavior'];
|
|
117
|
+
autoFocus?: MenuProps['autoFocus'];
|
|
118
|
+
shouldFocusWrap?: MenuProps['shouldFocusWrap'];
|
|
119
|
+
disabledKeys?: MenuProps['disabledKeys'];
|
|
120
|
+
disallowEmptySelection?: MenuProps['disallowEmptySelection'];
|
|
121
|
+
className?: MenuProps['className'];
|
|
122
|
+
style?: MenuProps['style'];
|
|
123
|
+
onAction?: MenuProps['onAction'];
|
|
124
|
+
onClose?: MenuProps['onClose'];
|
|
125
|
+
} & Omit<MenuProps, 'items' | 'selectionMode' | 'selectedKeys' | 'defaultSelectedKeys' | 'children' | 'dependencies' | 'onSelectionChange'>;
|
|
126
|
+
export {};
|
|
File without changes
|
|
@@ -68,6 +68,7 @@ export type SelectInputProps = {
|
|
|
68
68
|
after?: ReactNode;
|
|
69
69
|
/** The function to be called when an option is selected */
|
|
70
70
|
onChange?: (key: string) => void;
|
|
71
|
+
maxHeight?: PopoverProps['maxHeight'];
|
|
71
72
|
} & Omit<InputProps, 'iconRight'> & ShowHideCallbacks & Pick<PopoverProps, 'maxHeight'>;
|
|
72
73
|
export type CalendarBaseProps = {
|
|
73
74
|
/** Prevents selection of dates in the past (relative to the set date or current date). */
|
|
@@ -12,7 +12,7 @@ const loadFonts = (fonts)=>{
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
const
|
|
15
|
+
const ResetStyles = ({ families, fontFamily })=>{
|
|
16
16
|
useEffect(()=>{
|
|
17
17
|
loadFonts(families);
|
|
18
18
|
}, [
|
|
@@ -29,5 +29,5 @@ const ResetStyles_ResetStyles = ({ families, fontFamily })=>{
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
const
|
|
33
|
-
export {
|
|
32
|
+
const global_styles_ResetStyles = ResetStyles;
|
|
33
|
+
export { global_styles_ResetStyles as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
const
|
|
2
|
+
const useControlledOpenState = ({ open, onOpenChange, afterShow, afterHide })=>{
|
|
3
3
|
const [isOpen, setIsOpen] = useState(false);
|
|
4
4
|
useEffect(()=>{
|
|
5
5
|
if (void 0 !== open && open !== isOpen) setIsOpen(open);
|
|
@@ -18,5 +18,5 @@ const useControlledOpenState_useControlledOpenState = ({ open, onOpenChange, aft
|
|
|
18
18
|
handleOpenChange
|
|
19
19
|
];
|
|
20
20
|
};
|
|
21
|
-
const
|
|
22
|
-
export {
|
|
21
|
+
const hooks_useControlledOpenState = useControlledOpenState;
|
|
22
|
+
export { hooks_useControlledOpenState as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef } from "react";
|
|
2
2
|
import useEventListener from "./useEventListener.js";
|
|
3
|
-
const
|
|
3
|
+
const useOnClickOutside = (onClickOutside, condition, exclusions)=>{
|
|
4
4
|
const ref = useRef(null);
|
|
5
5
|
const handleOutsideClick = (event)=>{
|
|
6
6
|
if (ref?.current && null !== event) {
|
|
@@ -17,5 +17,5 @@ const useOnClickOutside_useOnClickOutside = (onClickOutside, condition, exclusio
|
|
|
17
17
|
useEventListener(document, 'touchstart', handleOutsideClick, condition);
|
|
18
18
|
return ref;
|
|
19
19
|
};
|
|
20
|
-
const
|
|
21
|
-
export {
|
|
20
|
+
const hooks_useOnClickOutside = useOnClickOutside;
|
|
21
|
+
export { hooks_useOnClickOutside as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
const
|
|
2
|
+
const useWindowSize = ()=>{
|
|
3
3
|
const initialState = {
|
|
4
4
|
width: null,
|
|
5
5
|
height: null
|
|
@@ -21,5 +21,5 @@ const useWindowSize_useWindowSize = ()=>{
|
|
|
21
21
|
}, []);
|
|
22
22
|
return windowSize;
|
|
23
23
|
};
|
|
24
|
-
const
|
|
25
|
-
export {
|
|
24
|
+
const hooks_useWindowSize = useWindowSize;
|
|
25
|
+
export { hooks_useWindowSize as default };
|
|
@@ -3,7 +3,7 @@ import colors from "../colors.js";
|
|
|
3
3
|
import darkScale from "./darkScale.js";
|
|
4
4
|
const white = '#FFFFFF';
|
|
5
5
|
const accent = colors.brandDark;
|
|
6
|
-
const
|
|
6
|
+
const dark = {
|
|
7
7
|
...common,
|
|
8
8
|
...darkScale,
|
|
9
9
|
name: 'dark',
|
|
@@ -558,5 +558,5 @@ const dark_dark = {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
};
|
|
561
|
-
const
|
|
562
|
-
export {
|
|
561
|
+
const dark_dark = dark;
|
|
562
|
+
export { dark_dark as default };
|
|
@@ -2,7 +2,7 @@ import common, { button as index_js_button } from "../../common/index.js";
|
|
|
2
2
|
import colors from "../colors.js";
|
|
3
3
|
import lightScale from "./lightScale.js";
|
|
4
4
|
const white = '#FFFFFF';
|
|
5
|
-
const
|
|
5
|
+
const light = {
|
|
6
6
|
...common,
|
|
7
7
|
...lightScale,
|
|
8
8
|
name: 'light',
|
|
@@ -557,5 +557,5 @@ const light_light = {
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
|
-
const
|
|
561
|
-
export {
|
|
560
|
+
const light_light = light;
|
|
561
|
+
export { light_light as default };
|
|
@@ -3,7 +3,7 @@ import colors from "../colors.js";
|
|
|
3
3
|
import darkScale from "./darkScale.js";
|
|
4
4
|
const white = '#FFFFFF';
|
|
5
5
|
const accent = colors.brandDark;
|
|
6
|
-
const
|
|
6
|
+
const dark = {
|
|
7
7
|
...common,
|
|
8
8
|
...darkScale,
|
|
9
9
|
name: 'dark',
|
|
@@ -558,5 +558,5 @@ const dark_dark = {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
};
|
|
561
|
-
const
|
|
562
|
-
export {
|
|
561
|
+
const dark_dark = dark;
|
|
562
|
+
export { dark_dark as default };
|
|
@@ -2,7 +2,7 @@ import common, { button as index_js_button } from "../../common/index.js";
|
|
|
2
2
|
import colors from "../colors.js";
|
|
3
3
|
import lightScale from "./lightScale.js";
|
|
4
4
|
const white = '#FFFFFF';
|
|
5
|
-
const
|
|
5
|
+
const light = {
|
|
6
6
|
...common,
|
|
7
7
|
...lightScale,
|
|
8
8
|
name: 'light',
|
|
@@ -557,5 +557,5 @@ const light_light = {
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
|
-
const
|
|
561
|
-
export {
|
|
560
|
+
const light_light = light;
|
|
561
|
+
export { light_light as default };
|
package/build/utils/chunk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const chunk = (array, chunkLength)=>{
|
|
2
2
|
const copy = [
|
|
3
3
|
...array
|
|
4
4
|
];
|
|
@@ -9,5 +9,5 @@ const chunk_chunk = (array, chunkLength)=>{
|
|
|
9
9
|
}
|
|
10
10
|
return chunkArray;
|
|
11
11
|
};
|
|
12
|
-
const
|
|
13
|
-
export {
|
|
12
|
+
const utils_chunk = chunk;
|
|
13
|
+
export { utils_chunk as default };
|
|
@@ -17,7 +17,7 @@ const legacyCopy = (text)=>{
|
|
|
17
17
|
console.error('Failed to copy text to clipboard');
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
const
|
|
20
|
+
const copyToClipboard = (text)=>{
|
|
21
21
|
if ('undefined' == typeof window || 'undefined' == typeof document) return;
|
|
22
22
|
const canUseModernApi = 'undefined' != typeof navigator && navigator.clipboard && 'function' == typeof navigator.clipboard.writeText;
|
|
23
23
|
if (canUseModernApi) return void navigator.clipboard.writeText(text).catch(()=>{
|
|
@@ -25,5 +25,5 @@ const copyToClipboard_copyToClipboard = (text)=>{
|
|
|
25
25
|
});
|
|
26
26
|
legacyCopy(text);
|
|
27
27
|
};
|
|
28
|
-
const
|
|
29
|
-
export {
|
|
28
|
+
const utils_copyToClipboard = copyToClipboard;
|
|
29
|
+
export { utils_copyToClipboard as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const formatNumber = (value, decimals = 1)=>{
|
|
2
2
|
if (0 === value) return '0';
|
|
3
3
|
if (!Number.isFinite(value)) return String(value);
|
|
4
4
|
const absValue = Math.abs(value);
|
|
@@ -28,5 +28,5 @@ const formatNumber_formatNumber = (value, decimals = 1)=>{
|
|
|
28
28
|
}
|
|
29
29
|
return String(value);
|
|
30
30
|
};
|
|
31
|
-
const
|
|
32
|
-
export {
|
|
31
|
+
const utils_formatNumber = formatNumber;
|
|
32
|
+
export { utils_formatNumber as default, formatNumber };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavv/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"@emotion/styled": "^11.14.1",
|
|
32
32
|
"@internationalized/date": "3.10.0",
|
|
33
33
|
"@react-hook/resize-observer": "^2.0.2",
|
|
34
|
-
"@tiptap/core": "^3.
|
|
35
|
-
"@tiptap/extension-character-count": "^3.
|
|
36
|
-
"@tiptap/extension-highlight": "^3.
|
|
37
|
-
"@tiptap/extension-placeholder": "^3.
|
|
38
|
-
"@tiptap/extension-task-item": "^3.
|
|
39
|
-
"@tiptap/extension-task-list": "^3.
|
|
40
|
-
"@tiptap/markdown": "^3.
|
|
41
|
-
"@tiptap/pm": "^3.
|
|
42
|
-
"@tiptap/react": "^3.
|
|
43
|
-
"@tiptap/starter-kit": "^3.
|
|
34
|
+
"@tiptap/core": "^3.10.1",
|
|
35
|
+
"@tiptap/extension-character-count": "^3.10.1",
|
|
36
|
+
"@tiptap/extension-highlight": "^3.10.1",
|
|
37
|
+
"@tiptap/extension-placeholder": "^3.10.1",
|
|
38
|
+
"@tiptap/extension-task-item": "^3.10.1",
|
|
39
|
+
"@tiptap/extension-task-list": "^3.10.1",
|
|
40
|
+
"@tiptap/markdown": "^3.10.1",
|
|
41
|
+
"@tiptap/pm": "^3.10.1",
|
|
42
|
+
"@tiptap/react": "^3.10.1",
|
|
43
|
+
"@tiptap/starter-kit": "^3.10.1",
|
|
44
44
|
"cmdk": "^1.1.1",
|
|
45
45
|
"date-fns": "^4.1.0",
|
|
46
46
|
"draft-js": "^0.11.7",
|
|
47
47
|
"es-toolkit": "^1.41.0",
|
|
48
48
|
"libphonenumber-js": "^1.12.25",
|
|
49
|
-
"lucide-react": "^0.
|
|
49
|
+
"lucide-react": "^0.552.0",
|
|
50
50
|
"polished": "^4.1.4",
|
|
51
51
|
"prism-react-renderer": "^2.4.1",
|
|
52
52
|
"react-aria": "3.44.0",
|
|
@@ -61,26 +61,26 @@
|
|
|
61
61
|
"@babel/core": "^7.28.5",
|
|
62
62
|
"@babel/preset-env": "^7.28.5",
|
|
63
63
|
"@babel/preset-typescript": "^7.28.5",
|
|
64
|
-
"@biomejs/biome": "2.3.
|
|
65
|
-
"@chromatic-com/storybook": "^4.1.
|
|
64
|
+
"@biomejs/biome": "2.3.3",
|
|
65
|
+
"@chromatic-com/storybook": "^4.1.2",
|
|
66
66
|
"@emotion/babel-plugin": "^11.13.5",
|
|
67
67
|
"@emotion/react": "^11.14.0",
|
|
68
|
-
"@rsbuild/core": "1.
|
|
68
|
+
"@rsbuild/core": "1.6.1",
|
|
69
69
|
"@rsbuild/plugin-react": "^1.4.1",
|
|
70
70
|
"@rsbuild/plugin-svgr": "^1.2.2",
|
|
71
|
-
"@rslib/core": "^0.
|
|
72
|
-
"@storybook/addon-docs": "^9.1.
|
|
73
|
-
"@storybook/addon-links": "^9.1.
|
|
74
|
-
"@storybook/addon-themes": "^9.1.
|
|
71
|
+
"@rslib/core": "^0.17.0",
|
|
72
|
+
"@storybook/addon-docs": "^9.1.16",
|
|
73
|
+
"@storybook/addon-links": "^9.1.16",
|
|
74
|
+
"@storybook/addon-themes": "^9.1.16",
|
|
75
75
|
"@storybook/test-runner": "^0.23.0",
|
|
76
76
|
"@svgr/core": "^8.1.0",
|
|
77
77
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
78
78
|
"@svgr/plugin-prettier": "^8.1.0",
|
|
79
|
-
"@swc/plugin-emotion": "
|
|
79
|
+
"@swc/plugin-emotion": "12.0.0",
|
|
80
80
|
"@types/draft-js": "^0.11.18",
|
|
81
81
|
"@types/jest": "^30.0.0",
|
|
82
82
|
"@types/ncp": "^2.0.8",
|
|
83
|
-
"@types/node": "^24.
|
|
83
|
+
"@types/node": "^24.10.0",
|
|
84
84
|
"@types/prompts": "^2.4.9",
|
|
85
85
|
"@types/randomcolor": "^0.5.9",
|
|
86
86
|
"@types/react": "^19.2.2",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@types/webfontloader": "^1.6.38",
|
|
90
90
|
"chalk": "^5.6.2",
|
|
91
91
|
"change-case": "^5.4.4",
|
|
92
|
-
"chromatic": "^13.3.
|
|
92
|
+
"chromatic": "^13.3.3",
|
|
93
93
|
"jest": "^30.2.0",
|
|
94
94
|
"lefthook": "^2.0.2",
|
|
95
95
|
"ncp": "^2.0.0",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"react-dom": "^19.2.0",
|
|
105
105
|
"replace": "^1.2.2",
|
|
106
106
|
"signale": "^1.4.0",
|
|
107
|
-
"storybook": "^9.1.
|
|
108
|
-
"storybook-react-rsbuild": "^2.1.
|
|
107
|
+
"storybook": "^9.1.16",
|
|
108
|
+
"storybook-react-rsbuild": "^2.1.4",
|
|
109
109
|
"tsc-files": "^1.1.4",
|
|
110
110
|
"tslib": "^2.8.1",
|
|
111
111
|
"tsx": "^4.20.6",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import styled from "@emotion/styled";
|
|
3
|
-
import { Checkbox } from "react-aria-components";
|
|
4
|
-
import icons_Checkbox from "../../assets/icons/Checkbox.js";
|
|
5
|
-
import CheckboxOff from "../../assets/icons/CheckboxOff.js";
|
|
6
|
-
import CheckboxPartial from "../../assets/icons/CheckboxPartial.js";
|
|
7
|
-
import Icon from "../Icon/index.js";
|
|
8
|
-
const Check = ({ ...props })=>/*#__PURE__*/ jsx(CheckContainer, {
|
|
9
|
-
...props,
|
|
10
|
-
children: ({ isIndeterminate, isSelected, isDisabled })=>{
|
|
11
|
-
let svg = /*#__PURE__*/ jsx(CheckboxOff, {});
|
|
12
|
-
if (isIndeterminate) svg = /*#__PURE__*/ jsx(CheckboxPartial, {});
|
|
13
|
-
else if (isSelected) svg = /*#__PURE__*/ jsx(icons_Checkbox, {});
|
|
14
|
-
return /*#__PURE__*/ jsx(Icon, {
|
|
15
|
-
svg: svg,
|
|
16
|
-
pointer: !isDisabled
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const CheckContainer = styled(Checkbox)(({ theme: { formControl }, isDisabled })=>({
|
|
21
|
-
'&[data-hovered] > div': {
|
|
22
|
-
color: isDisabled ? void 0 : formControl.color.hover
|
|
23
|
-
},
|
|
24
|
-
'&[data-selected] > div, &[data-indeterminate] > div': {
|
|
25
|
-
color: formControl.color.active
|
|
26
|
-
},
|
|
27
|
-
'&[data-hovered][data-selected] > div': {
|
|
28
|
-
color: isDisabled ? void 0 : formControl.color.activeHover
|
|
29
|
-
},
|
|
30
|
-
'&[data-disabled] > div': {
|
|
31
|
-
color: formControl.color.disabled
|
|
32
|
-
}
|
|
33
|
-
}));
|
|
34
|
-
const Table_Check = Check;
|
|
35
|
-
export { Table_Check as default };
|