@povio/ui 2.2.1 → 2.2.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/README.md +8 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +5 -6
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuMobile.js +2 -3
- package/dist/components/Menu/MenuPopover.js +8 -7
- package/dist/components/buttons/Button/Button.js +24 -8
- package/dist/components/buttons/PillButton/PillButton.js +2 -3
- package/dist/components/buttons/shared/ButtonContent.js +1 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +2 -2
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +2 -3
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +2 -6
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +3 -10
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +1 -3
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +63 -78
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +33 -50
- package/dist/components/inputs/File/shared/InputUploadContent.js +2 -2
- package/dist/components/inputs/File/shared/InputUploadFilled.js +1 -1
- package/dist/components/inputs/FormField/FormField.js +1 -1
- package/dist/components/inputs/FormField/FormFieldError.js +4 -4
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -1
- package/dist/components/inputs/FormField/FormFieldLabel.js +14 -21
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +29 -26
- package/dist/components/inputs/Input/TextArea/TextArea.js +15 -7
- package/dist/components/inputs/Input/TextInput/TextInput.js +30 -27
- package/dist/components/inputs/Input/shared/InputContent.d.ts +2 -2
- package/dist/components/inputs/Input/shared/InputContent.js +53 -73
- package/dist/components/inputs/RadioGroup/RadioGroup.js +3 -4
- package/dist/components/inputs/Selection/shared/SelectBase.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +15 -4
- package/dist/components/inputs/Selection/shared/SelectInput.js +24 -41
- package/dist/components/inputs/Slider/Slider.js +1 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +9 -2
- package/dist/components/inputs/Toggle/Toggle.js +3 -4
- package/dist/components/inputs/shared/CheckContent.js +1 -1
- package/dist/components/inputs/shared/InputClear.d.ts +2 -1
- package/dist/components/inputs/shared/InputClear.js +2 -2
- package/dist/components/inputs/shared/input.cva.js +34 -25
- package/dist/components/inputs/shared/label.cva.js +10 -38
- package/dist/components/navigation/Accordion/Accordion.js +1 -1
- package/dist/components/navigation/Accordion/AccordionItem.js +9 -10
- package/dist/components/navigation/Stepper/Stepper.js +1 -1
- package/dist/components/navigation/Stepper/StepperItem.js +5 -6
- package/dist/components/navigation/Stepper/StepperSeparator.js +1 -1
- package/dist/components/outline.clsx.js +1 -1
- package/dist/components/overlays/ActionModal/ActionModal.d.ts +6 -1
- package/dist/components/overlays/ActionModal/ActionModal.js +7 -6
- package/dist/components/overlays/Modal/Modal.d.ts +2 -1
- package/dist/components/overlays/Modal/Modal.js +5 -5
- package/dist/components/overlays/Tooltip/Tooltip.js +4 -5
- package/dist/components/segment/Segment.js +1 -2
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/status/Alert/Alert.js +3 -4
- package/dist/components/status/Toast/Toast.js +4 -5
- package/dist/components/table/Table.js +16 -11
- package/dist/components/text/Link/Link.js +1 -1
- package/dist/components/text/Tag/Tag.js +1 -1
- package/dist/components/text/Typography/Typography.d.ts +1 -1
- package/dist/components/text/Typography/Typography.js +1 -1
- package/dist/config/uiConfig.context.d.ts +4 -0
- package/dist/config/uiConfig.context.js +11 -0
- package/dist/config/uiStyle.context.d.ts +7 -3
- package/dist/config/uiStyle.context.js +13 -1
- package/dist/index.js +4 -4
- package/dist/tw-ui-plugin.d.ts +3 -0
- package/dist/utils/compoundMapper.d.ts +1 -1
- package/package.json +25 -26
|
@@ -20,11 +20,10 @@ var CustomTrigger = ({ children, className, tabIndex }) => {
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
const Tooltip$1 = ({ children, text, isDisabled, delay, closeDelay, color, isNonInteractiveTrigger, triggerClassName, triggerTabIndex, ...tooltipProps }) => {
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const tooltipTextCva$1 = uiStyle?.tooltip?.textCva ?? tooltipTextCva;
|
|
23
|
+
const tooltipCva$1 = UIStyle.useCva("tooltip.cva", tooltipCva);
|
|
24
|
+
const tooltipPointerHorizontalCva$1 = UIStyle.useCva("tooltip.pointerHorizontalCva", tooltipPointerHorizontalCva);
|
|
25
|
+
const tooltipPointerVerticalCva$1 = UIStyle.useCva("tooltip.pointerVerticalCva", tooltipPointerVerticalCva);
|
|
26
|
+
const tooltipTextCva$1 = UIStyle.useCva("tooltip.textCva", tooltipTextCva);
|
|
28
27
|
const Trigger = isNonInteractiveTrigger ? CustomTrigger : Fragment$1;
|
|
29
28
|
return /* @__PURE__ */ jsxs(TooltipTrigger, {
|
|
30
29
|
delay: delay ?? 0,
|
|
@@ -17,10 +17,9 @@ var SegmentBase = ({ className, items, error, onChange, value, defaultValue, ...
|
|
|
17
17
|
selectedKeys: value ? Array.isArray(value) ? value : [value] : void 0
|
|
18
18
|
};
|
|
19
19
|
const buttonGroupRef = useRef(null);
|
|
20
|
-
const uiStyle = UIStyle.useConfig();
|
|
21
20
|
const state = useToggleGroupState(props);
|
|
22
21
|
const { groupProps } = useToggleButtonGroup(props, state, buttonGroupRef);
|
|
23
|
-
const segmentCva$1 =
|
|
22
|
+
const segmentCva$1 = UIStyle.useCva("segment.cva", segmentCva);
|
|
24
23
|
const formFieldProps = {
|
|
25
24
|
error,
|
|
26
25
|
label: "",
|
|
@@ -6,7 +6,7 @@ import { ToggleButton } from "react-aria-components";
|
|
|
6
6
|
const SegmentItem = ({ label, icon, id, isDisabled, ...props }) => {
|
|
7
7
|
const IconComponent = icon;
|
|
8
8
|
const iconOnly = !!(icon && !label);
|
|
9
|
-
const segmentItemCva$1 = UIStyle.
|
|
9
|
+
const segmentItemCva$1 = UIStyle.useCva("segment.itemCva", segmentItemCva);
|
|
10
10
|
return /* @__PURE__ */ jsxs(ToggleButton, {
|
|
11
11
|
...props,
|
|
12
12
|
id,
|
|
@@ -5,10 +5,9 @@ import { alert } from "./alert.cva.js";
|
|
|
5
5
|
import { statusIcon, statusSeparator } from "../shared/status.cva.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
const Alert = ({ variant, color, text, isLoading = false, rightContent, hasSeparator, icon: Icon, className }) => {
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const separatorCva = uiStyle?.status?.separatorCva ?? statusSeparator;
|
|
8
|
+
const alertCva = UIStyle.useCva("alert.cva", alert);
|
|
9
|
+
const iconCva = UIStyle.useCva("status.iconCva", statusIcon);
|
|
10
|
+
const separatorCva = UIStyle.useCva("status.separatorCva", statusSeparator);
|
|
12
11
|
return /* @__PURE__ */ jsx("div", {
|
|
13
12
|
className: alertCva({
|
|
14
13
|
variant,
|
|
@@ -7,11 +7,10 @@ import { buttonColorVariant, toast as toast$1, toastContainer, toastWrapper } fr
|
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { ToastContainer } from "react-toastify";
|
|
9
9
|
const Toast = ({ text, isLoading = false, actions = [], icon: Icon, ...props }) => {
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const separatorCva = uiStyle?.status?.separatorCva ?? statusSeparator;
|
|
10
|
+
const toastCva = UIStyle.useCva("toast.cva", toast$1);
|
|
11
|
+
const buttonColor = UIStyle.useMapper("toast.buttonColor", buttonColorVariant);
|
|
12
|
+
const iconCva = UIStyle.useCva("status.iconCva", statusIcon);
|
|
13
|
+
const separatorCva = UIStyle.useCva("status.separatorCva", statusSeparator);
|
|
15
14
|
return /* @__PURE__ */ jsxs("div", {
|
|
16
15
|
className: toastCva({ ...props }),
|
|
17
16
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -51,12 +51,15 @@ var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCv
|
|
|
51
51
|
zIndex: isDragging ? 1 : 0,
|
|
52
52
|
position: "relative"
|
|
53
53
|
},
|
|
54
|
-
"data-clickable": hasOnClick,
|
|
54
|
+
"data-clickable": hasOnClick || row.getCanSelect() || void 0,
|
|
55
55
|
"data-selected": row.getIsSelected() || void 0,
|
|
56
56
|
className: clsx(tableRowCva(props)),
|
|
57
57
|
onClick: () => {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
if (onRowClick) {
|
|
59
|
+
onRowClick(row.original);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (row.getCanSelect()) row.toggleSelected();
|
|
60
63
|
},
|
|
61
64
|
onDoubleClick: () => onDoubleClick?.(row.original),
|
|
62
65
|
children: row.getVisibleCells().map((cell, cellIndex) => {
|
|
@@ -70,11 +73,10 @@ var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCv
|
|
|
70
73
|
});
|
|
71
74
|
};
|
|
72
75
|
const Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop = false, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection = false, defaultSelectedRows, onRowSelectionChange, ...props }) => {
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
const tableDataCva = uiStyle?.table?.dataCva ?? tableData;
|
|
76
|
+
const tableRowCva = UIStyle.useCva("table.rowCva", tableRow);
|
|
77
|
+
const tableHeadRowCva = UIStyle.useCva("table.headRowCva", tableHeadRow);
|
|
78
|
+
const tableHeadDataCva = UIStyle.useCva("table.headDataCva", tableHeadData);
|
|
79
|
+
const tableDataCva = UIStyle.useCva("table.dataCva", tableData);
|
|
78
80
|
const ref = useRef(null);
|
|
79
81
|
const { listeners } = useTableNav();
|
|
80
82
|
const getCoreRowModelCallback = useCallback(getCoreRowModel, []);
|
|
@@ -228,11 +230,14 @@ const Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, clas
|
|
|
228
230
|
return /* @__PURE__ */ jsx("tr", {
|
|
229
231
|
className: clsx(tableRowCva({ ...props })),
|
|
230
232
|
onClick: () => {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
+
if (onRowClick) {
|
|
234
|
+
onRowClick(row.original);
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (row.getCanSelect()) row.toggleSelected();
|
|
233
238
|
},
|
|
234
239
|
onDoubleClick: () => onDoubleClick?.(row.original),
|
|
235
|
-
"data-clickable": hasOnClick,
|
|
240
|
+
"data-clickable": hasOnClick || row.getCanSelect() || void 0,
|
|
236
241
|
"data-selected": row.getIsSelected() || void 0,
|
|
237
242
|
children: row.getVisibleCells().map((cell, cellIndex) => {
|
|
238
243
|
const columnMeta = cell.column.columnDef.meta ?? {};
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { Link } from "react-aria-components";
|
|
6
6
|
const Link$1 = ({ variant, ...props }) => {
|
|
7
7
|
const linkContext = LinkContext.useLinkContext();
|
|
8
|
-
const linkCva = UIStyle.
|
|
8
|
+
const linkCva = UIStyle.useCva("link.cva", link);
|
|
9
9
|
const LinkComponent = linkContext?.LinkComponent ?? Link;
|
|
10
10
|
if (!props.to && props.href) props.to = props.href;
|
|
11
11
|
return /* @__PURE__ */ jsx(LinkComponent, {
|
|
@@ -8,7 +8,7 @@ import { clsx } from "clsx";
|
|
|
8
8
|
import { Button } from "react-aria-components";
|
|
9
9
|
import { useTranslation } from "react-i18next";
|
|
10
10
|
const Tag = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }) => {
|
|
11
|
-
const tagCva = UIStyle.
|
|
11
|
+
const tagCva = UIStyle.useCva("tag.cva", tag);
|
|
12
12
|
const { t } = useTranslation("ui");
|
|
13
13
|
const buttonProps = {
|
|
14
14
|
isDisabled,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, Ref } from 'react';
|
|
2
2
|
import { TypographyVariantProps } from './typography.cva';
|
|
3
3
|
type TypographyTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div";
|
|
4
|
-
interface TypographyPropsCva extends Omit<TypographyVariantProps, "size">, Required<Pick<TypographyVariantProps, "size">> {
|
|
4
|
+
export interface TypographyPropsCva extends Omit<TypographyVariantProps, "size">, Required<Pick<TypographyVariantProps, "size">> {
|
|
5
5
|
}
|
|
6
6
|
export interface TypographyProps extends TypographyPropsCva, HTMLAttributes<HTMLElement> {
|
|
7
7
|
ref?: Ref<HTMLHeadingElement>;
|
|
@@ -3,7 +3,7 @@ import { typography } from "./typography.cva.js";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
const Typography = ({ as = "p", className, ...props }) => {
|
|
5
5
|
return /* @__PURE__ */ jsx(as, {
|
|
6
|
-
className:
|
|
6
|
+
className: UIStyle.useCva("typography.cva", typography)({
|
|
7
7
|
...props,
|
|
8
8
|
sizeMobile: props.sizeMobile ?? props.size,
|
|
9
9
|
className
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ButtonProps } from '../components/buttons/Button/Button';
|
|
2
3
|
import { CheckboxProps } from '../components/inputs/Checkbox/Checkbox';
|
|
3
4
|
import { DatePickerProps } from '../components/inputs/DateTime/DatePicker/DatePicker';
|
|
4
5
|
import { NumberInputProps } from '../components/inputs/Input/NumberInput/NumberInput';
|
|
@@ -7,12 +8,14 @@ import { RadioGroupProps } from '../components/inputs/RadioGroup/RadioGroup';
|
|
|
7
8
|
import { SelectBaseProps } from '../components/inputs/Selection/shared/SelectBase';
|
|
8
9
|
import { SliderProps } from '../components/inputs/Slider/Slider';
|
|
9
10
|
import { ToggleProps } from '../components/inputs/Toggle/Toggle';
|
|
11
|
+
import { ActionModalProps } from '../components/overlays/ActionModal/ActionModal';
|
|
10
12
|
export declare namespace UIConfig {
|
|
11
13
|
type DeepRequired<T> = {
|
|
12
14
|
[P in keyof T]-?: T[P] extends object ? DeepRequired<T[P]> : Exclude<T[P], null | undefined>;
|
|
13
15
|
};
|
|
14
16
|
export interface Options {
|
|
15
17
|
input: Pick<TextInputProps, "variant" | "isClearable" | "hideLabel" | "as" | "size">;
|
|
18
|
+
button: Pick<ButtonProps, "variant" | "size">;
|
|
16
19
|
numberInput: Pick<NumberInputProps, "formatOptions">;
|
|
17
20
|
radioGroup: Pick<RadioGroupProps, "variant" | "hideLabel">;
|
|
18
21
|
checkbox: Pick<CheckboxProps, "variant">;
|
|
@@ -20,6 +23,7 @@ export declare namespace UIConfig {
|
|
|
20
23
|
toggle: Pick<ToggleProps, "variant">;
|
|
21
24
|
slider: Pick<SliderProps, "minValue" | "maxValue">;
|
|
22
25
|
dateInput: Pick<DatePickerProps, "todayIcon" | "shouldForceLeadingZeros" | "disableManualEntry">;
|
|
26
|
+
actionModal: Pick<ActionModalProps, "titleTypography" | "descriptionTypography">;
|
|
23
27
|
}
|
|
24
28
|
interface ProviderProps {
|
|
25
29
|
config?: Partial<Options>;
|
|
@@ -12,6 +12,10 @@ let UIConfig;
|
|
|
12
12
|
isClearable: false,
|
|
13
13
|
hideLabel: false
|
|
14
14
|
},
|
|
15
|
+
button: {
|
|
16
|
+
variant: "contained",
|
|
17
|
+
size: "m"
|
|
18
|
+
},
|
|
15
19
|
numberInput: { formatOptions: {
|
|
16
20
|
minimumFractionDigits: 0,
|
|
17
21
|
maximumFractionDigits: 3
|
|
@@ -36,6 +40,13 @@ let UIConfig;
|
|
|
36
40
|
todayIcon: false,
|
|
37
41
|
shouldForceLeadingZeros: false,
|
|
38
42
|
disableManualEntry: false
|
|
43
|
+
},
|
|
44
|
+
actionModal: {
|
|
45
|
+
titleTypography: {
|
|
46
|
+
size: "title-5",
|
|
47
|
+
variant: "prominent-1"
|
|
48
|
+
},
|
|
49
|
+
descriptionTypography: { size: "body-3" }
|
|
39
50
|
}
|
|
40
51
|
};
|
|
41
52
|
const Context = createContext(DEFAULT_CONFIG);
|
|
@@ -20,9 +20,12 @@ import { TableDataVariantProps, TableHeadDataVariantProps, TableHeadRowVariantPr
|
|
|
20
20
|
import { LinkVariantProps } from '../components/text/Link/link.cva';
|
|
21
21
|
import { TagVariantProps } from '../components/text/Tag/tag.cva';
|
|
22
22
|
import { TypographyVariantProps } from '../components/text/Typography/typography.cva';
|
|
23
|
-
import { CompoundMapper } from '../utils/compoundMapper';
|
|
23
|
+
import { CompoundMapper, ConfigSchema } from '../utils/compoundMapper';
|
|
24
24
|
export declare namespace UIStyle {
|
|
25
|
-
export type Cva<T> = (props: T & ClassProp) => string;
|
|
25
|
+
export type Cva<T> = (props: (T & ClassProp) | ClassProp) => string;
|
|
26
|
+
type OptionKey = {
|
|
27
|
+
[K in keyof Options]: Options[K] extends object ? `${K & string}.${keyof Options[K] & string}` : never;
|
|
28
|
+
}[keyof Options];
|
|
26
29
|
interface Options {
|
|
27
30
|
button: {
|
|
28
31
|
cva?: Cva<ButtonVariantProps>;
|
|
@@ -137,6 +140,7 @@ export declare namespace UIStyle {
|
|
|
137
140
|
config?: Partial<Options>;
|
|
138
141
|
}
|
|
139
142
|
export const Provider: ({ children, config }: PropsWithChildren<ProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
140
|
-
export const
|
|
143
|
+
export const useCva: <T>(key: OptionKey, fallback: Cva<T>) => Cva<T>;
|
|
144
|
+
export const useMapper: <T, K extends ConfigSchema>(key: OptionKey, fallback: CompoundMapper<T, K>) => CompoundMapper<T, K>;
|
|
141
145
|
export {};
|
|
142
146
|
}
|
|
@@ -9,8 +9,20 @@ let UIStyle;
|
|
|
9
9
|
children
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
const useConfig = () => {
|
|
13
13
|
return use(Context);
|
|
14
14
|
};
|
|
15
|
+
_UIStyle.useCva = (key, fallback) => {
|
|
16
|
+
const uiStyle = useConfig();
|
|
17
|
+
if (!uiStyle) return fallback;
|
|
18
|
+
const [k1, k2] = key.split(".");
|
|
19
|
+
return uiStyle[k1]?.[k2] ?? fallback;
|
|
20
|
+
};
|
|
21
|
+
_UIStyle.useMapper = (key, fallback) => {
|
|
22
|
+
const uiStyle = useConfig();
|
|
23
|
+
if (!uiStyle) return fallback;
|
|
24
|
+
const [k1, k2] = key.split(".");
|
|
25
|
+
return uiStyle[k1]?.[k2] ?? fallback;
|
|
26
|
+
};
|
|
15
27
|
})(UIStyle || (UIStyle = {}));
|
|
16
28
|
export { UIStyle };
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,10 @@ import { Tooltip } from "./components/overlays/Tooltip/Tooltip.js";
|
|
|
45
45
|
import { LinkContext } from "./config/link.context.js";
|
|
46
46
|
import { Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs.js";
|
|
47
47
|
import { Loader } from "./components/status/Loader/Loader.js";
|
|
48
|
+
import { ObjectUtils } from "./utils/object.utils.js";
|
|
49
|
+
import { isEqual } from "./utils/isEqual.js";
|
|
50
|
+
import { useDeepCompareEffect, useDeepCompareLayoutEffect, useDeepCompareMemo } from "./hooks/useDeepCompare.js";
|
|
51
|
+
import { UIConfig } from "./config/uiConfig.context.js";
|
|
48
52
|
import { uiOutlineClass } from "./components/outline.clsx.js";
|
|
49
53
|
import { compoundMapper } from "./utils/compoundMapper.js";
|
|
50
54
|
import { Button } from "./components/buttons/Button/Button.js";
|
|
@@ -58,10 +62,6 @@ import { Menu } from "./components/Menu/Menu.js";
|
|
|
58
62
|
import { SplitButton } from "./components/buttons/SplitButton/SplitButton.js";
|
|
59
63
|
import { TextButton } from "./components/buttons/TextButton/TextButton.js";
|
|
60
64
|
import { ToggleButton } from "./components/buttons/ToggleButton/ToggleButton.js";
|
|
61
|
-
import { ObjectUtils } from "./utils/object.utils.js";
|
|
62
|
-
import { isEqual } from "./utils/isEqual.js";
|
|
63
|
-
import { useDeepCompareEffect, useDeepCompareLayoutEffect, useDeepCompareMemo } from "./hooks/useDeepCompare.js";
|
|
64
|
-
import { UIConfig } from "./config/uiConfig.context.js";
|
|
65
65
|
import { Checkbox } from "./components/inputs/Checkbox/Checkbox.js";
|
|
66
66
|
import { useLongPressRepeat } from "./hooks/useLongPressRepeat.js";
|
|
67
67
|
import { useScrollableListBox } from "./hooks/useScrollableListBox.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@povio/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@casl/ability": "^6.7.3",
|
|
19
19
|
"@casl/react": "^5.0.0",
|
|
20
|
-
"@tiptap/core": "^
|
|
21
|
-
"@tiptap/extension-color": "^
|
|
22
|
-
"@tiptap/extension-heading": "^
|
|
23
|
-
"@tiptap/extension-highlight": "^
|
|
24
|
-
"@tiptap/extension-link": "^
|
|
25
|
-
"@tiptap/extension-placeholder": "^
|
|
26
|
-
"@tiptap/extension-text-align": "^
|
|
27
|
-
"@tiptap/extension-text-style": "^
|
|
28
|
-
"@tiptap/extension-underline": "^
|
|
29
|
-
"@tiptap/pm": "^
|
|
30
|
-
"@tiptap/react": "^
|
|
31
|
-
"@tiptap/starter-kit": "^
|
|
20
|
+
"@tiptap/core": "^3.19.0",
|
|
21
|
+
"@tiptap/extension-color": "^3.19.0",
|
|
22
|
+
"@tiptap/extension-heading": "^3.19.0",
|
|
23
|
+
"@tiptap/extension-highlight": "^3.19.0",
|
|
24
|
+
"@tiptap/extension-link": "^3.19.0",
|
|
25
|
+
"@tiptap/extension-placeholder": "^3.19.0",
|
|
26
|
+
"@tiptap/extension-text-align": "^3.19.0",
|
|
27
|
+
"@tiptap/extension-text-style": "^3.19.0",
|
|
28
|
+
"@tiptap/extension-underline": "^3.19.0",
|
|
29
|
+
"@tiptap/pm": "^3.19.0",
|
|
30
|
+
"@tiptap/react": "^3.19.0",
|
|
31
|
+
"@tiptap/starter-kit": "^3.19.0",
|
|
32
32
|
"react": "^19.1.0",
|
|
33
33
|
"react-dom": "^19.1.0"
|
|
34
34
|
},
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"@dnd-kit/sortable": "^10.0.0",
|
|
39
39
|
"@dnd-kit/utilities": "^3.2.2",
|
|
40
40
|
"@hookform/resolvers": "^5.2.2",
|
|
41
|
-
"@internationalized/date": "^3.
|
|
42
|
-
"@react-aria/button": "^3.14.
|
|
43
|
-
"@react-aria/calendar": "^3.9.
|
|
44
|
-
"@react-aria/focus": "^3.21.
|
|
45
|
-
"@react-aria/i18n": "^3.12.
|
|
46
|
-
"@react-aria/utils": "^3.
|
|
47
|
-
"@react-stately/calendar": "^3.9.
|
|
48
|
-
"@react-stately/datepicker": "^3.
|
|
49
|
-
"@react-types/shared": "^3.
|
|
41
|
+
"@internationalized/date": "^3.11.0",
|
|
42
|
+
"@react-aria/button": "^3.14.4",
|
|
43
|
+
"@react-aria/calendar": "^3.9.4",
|
|
44
|
+
"@react-aria/focus": "^3.21.4",
|
|
45
|
+
"@react-aria/i18n": "^3.12.15",
|
|
46
|
+
"@react-aria/utils": "^3.33.0",
|
|
47
|
+
"@react-stately/calendar": "^3.9.2",
|
|
48
|
+
"@react-stately/datepicker": "^3.16.0",
|
|
49
|
+
"@react-types/shared": "^3.33.0",
|
|
50
50
|
"@tanstack/react-query": "~5.89.0",
|
|
51
51
|
"@tanstack/react-table": "^8.21.3",
|
|
52
52
|
"axios": "^1.13.2",
|
|
@@ -57,14 +57,13 @@
|
|
|
57
57
|
"loglevel-plugin-prefix": "^0.8.4",
|
|
58
58
|
"luxon": "^3.7.2",
|
|
59
59
|
"motion": "~12.23.24",
|
|
60
|
-
"react-aria": "^3.
|
|
61
|
-
"react-aria-components": "^1.
|
|
60
|
+
"react-aria": "^3.46.0",
|
|
61
|
+
"react-aria-components": "^1.15.1",
|
|
62
62
|
"react-hook-form": "^7.65.0",
|
|
63
63
|
"react-i18next": "^16.5.1",
|
|
64
64
|
"react-responsive": "^10.0.1",
|
|
65
|
-
"react-stately": "^3.
|
|
65
|
+
"react-stately": "^3.44.0",
|
|
66
66
|
"react-toastify": "^11.0.5",
|
|
67
|
-
"react-use-measure": "^2.1.7",
|
|
68
67
|
"tailwindcss": "^4.1.18",
|
|
69
68
|
"tailwindcss-react-aria-components": "^2.0.1",
|
|
70
69
|
"zod": "^4.3.5"
|