@tecsinapse/cortex-react 1.3.0-beta.21 → 1.3.0-beta.23
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/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/{Breadcrumbs.js → Breadcrumbs/Breadcrumbs.js} +1 -1
- package/dist/cjs/components/Button.js +1 -1
- package/dist/cjs/components/{Calendar.js → Calendar/Calendar.js} +1 -1
- package/dist/cjs/components/{CalendarCell.js → Calendar/CalendarCell.js} +5 -5
- package/dist/cjs/components/{CalendarGrid.js → Calendar/CalendarGrid.js} +1 -1
- package/dist/cjs/components/{CalendarGridHeaderRow.js → Calendar/CalendarGridHeaderRow.js} +1 -1
- package/dist/cjs/components/{CalendarHeader.js → Calendar/CalendarHeader.js} +1 -1
- package/dist/cjs/components/{RangeCalendar.js → Calendar/RangeCalendar.js} +1 -1
- package/dist/cjs/components/{DatePickerInput.js → DatePicker/DatePickerInput.js} +3 -3
- package/dist/cjs/components/{DatePickerInputBase.js → DatePicker/DatePickerInputBase.js} +2 -2
- package/dist/cjs/components/{DateRangePickerInput.js → DatePicker/DateRangePickerInput.js} +3 -3
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Hint.js +5 -15
- package/dist/cjs/components/Input/Search.js +7 -1
- package/dist/cjs/components/Menubar/MostUsedList.js +3 -3
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Tag.js +2 -9
- package/dist/cjs/components/TextArea.js +1 -1
- package/dist/cjs/components/{TimeField.js → TimeField/TimeField.js} +3 -3
- package/dist/cjs/components/{TimeFieldInput.js → TimeField/TimeFieldInput.js} +3 -3
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/index.js +21 -11
- package/dist/cjs/provider/MenubarProvider.js +1 -1
- package/dist/cjs/provider/SnackbarProvider.js +3 -3
- package/dist/cjs/service/SnackbarSonner.js +3 -3
- package/dist/esm/components/Badge.js +1 -1
- package/dist/esm/components/{Breadcrumbs.js → Breadcrumbs/Breadcrumbs.js} +1 -1
- package/dist/esm/components/Button.js +1 -1
- package/dist/esm/components/{Calendar.js → Calendar/Calendar.js} +1 -1
- package/dist/esm/components/{CalendarCell.js → Calendar/CalendarCell.js} +5 -5
- package/dist/esm/components/{CalendarGrid.js → Calendar/CalendarGrid.js} +1 -1
- package/dist/esm/components/{CalendarGridHeaderRow.js → Calendar/CalendarGridHeaderRow.js} +1 -1
- package/dist/esm/components/{CalendarHeader.js → Calendar/CalendarHeader.js} +1 -1
- package/dist/esm/components/{RangeCalendar.js → Calendar/RangeCalendar.js} +1 -1
- package/dist/esm/components/{DatePickerInput.js → DatePicker/DatePickerInput.js} +3 -3
- package/dist/esm/components/{DatePickerInputBase.js → DatePicker/DatePickerInputBase.js} +2 -2
- package/dist/esm/components/{DateRangePickerInput.js → DatePicker/DateRangePickerInput.js} +3 -3
- package/dist/esm/components/Drawer.js +1 -1
- package/dist/esm/components/Hint.js +5 -15
- package/dist/esm/components/Input/Search.js +7 -1
- package/dist/esm/components/Menubar/MostUsedList.js +3 -3
- package/dist/esm/components/Modal.js +1 -1
- package/dist/esm/components/Tag.js +2 -9
- package/dist/esm/components/TextArea.js +1 -1
- package/dist/esm/components/{TimeField.js → TimeField/TimeField.js} +3 -3
- package/dist/esm/components/{TimeFieldInput.js → TimeField/TimeFieldInput.js} +3 -3
- package/dist/esm/components/Tooltip.js +1 -1
- package/dist/esm/index.js +13 -8
- package/dist/esm/provider/MenubarProvider.js +1 -1
- package/dist/esm/provider/SnackbarProvider.js +3 -3
- package/dist/esm/service/SnackbarSonner.js +3 -3
- package/dist/types/components/Avatar.d.ts +1 -2
- package/dist/types/components/Badge.d.ts +1 -1
- package/dist/types/components/{BreadcrumbItem.d.ts → Breadcrumbs/BreadcrumbItem.d.ts} +6 -1
- package/dist/types/components/{Breadcrumbs.d.ts → Breadcrumbs/Breadcrumbs.d.ts} +2 -6
- package/dist/types/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/types/components/Button.d.ts +2 -3
- package/dist/types/components/{RangeCalendar.d.ts → Calendar/RangeCalendar.d.ts} +1 -2
- package/dist/types/components/Calendar/index.d.ts +2 -0
- package/dist/types/components/{DatePickerInput.d.ts → DatePicker/DatePickerInput.d.ts} +1 -1
- package/dist/types/components/{DatePickerInputBase.d.ts → DatePicker/DatePickerInputBase.d.ts} +1 -1
- package/dist/types/components/{DateRangePickerInput.d.ts → DatePicker/DateRangePickerInput.d.ts} +2 -2
- package/dist/types/components/DatePicker/index.d.ts +5 -0
- package/dist/types/components/Hint.d.ts +4 -11
- package/dist/types/components/Snackbar/index.d.ts +2 -0
- package/dist/types/components/Tag.d.ts +1 -1
- package/dist/types/components/TextArea.d.ts +1 -1
- package/dist/types/components/{TimeField.d.ts → TimeField/TimeField.d.ts} +1 -2
- package/dist/types/components/{TimeFieldInput.d.ts → TimeField/TimeFieldInput.d.ts} +1 -1
- package/dist/types/components/TimeField/index.d.ts +2 -0
- package/dist/types/components/Tooltip.d.ts +1 -1
- package/dist/types/components/index.d.ts +3 -6
- package/package.json +3 -3
- package/dist/types/components/SearchInput.d.ts +0 -0
- package/dist/cjs/components/{BreadcrumbItem.js → Breadcrumbs/BreadcrumbItem.js} +0 -0
- package/dist/cjs/components/{CalendarGridBodyRows.js → Calendar/CalendarGridBodyRows.js} +0 -0
- package/dist/cjs/components/{DateField.js → DatePicker/DateField.js} +0 -0
- package/dist/cjs/components/{DateSegment.js → DatePicker/DateSegment.js} +0 -0
- package/dist/cjs/components/{BaseSnackbar.js → Snackbar/BaseSnackbar.js} +0 -0
- package/dist/cjs/components/{DefaultSnack.js → Snackbar/DefaultSnack.js} +1 -1
- package/dist/esm/components/{BreadcrumbItem.js → Breadcrumbs/BreadcrumbItem.js} +0 -0
- package/dist/esm/components/{CalendarGridBodyRows.js → Calendar/CalendarGridBodyRows.js} +0 -0
- package/dist/esm/components/{DateField.js → DatePicker/DateField.js} +0 -0
- package/dist/esm/components/{DateSegment.js → DatePicker/DateSegment.js} +0 -0
- package/dist/esm/components/{BaseSnackbar.js → Snackbar/BaseSnackbar.js} +0 -0
- package/dist/esm/components/{DefaultSnack.js → Snackbar/DefaultSnack.js} +1 -1
- /package/dist/types/components/{Calendar.d.ts → Calendar/Calendar.d.ts} +0 -0
- /package/dist/types/components/{CalendarCell.d.ts → Calendar/CalendarCell.d.ts} +0 -0
- /package/dist/types/components/{CalendarGrid.d.ts → Calendar/CalendarGrid.d.ts} +0 -0
- /package/dist/types/components/{CalendarGridBodyRows.d.ts → Calendar/CalendarGridBodyRows.d.ts} +0 -0
- /package/dist/types/components/{CalendarGridHeaderRow.d.ts → Calendar/CalendarGridHeaderRow.d.ts} +0 -0
- /package/dist/types/components/{CalendarHeader.d.ts → Calendar/CalendarHeader.d.ts} +0 -0
- /package/dist/types/components/{DateField.d.ts → DatePicker/DateField.d.ts} +0 -0
- /package/dist/types/components/{DateSegment.d.ts → DatePicker/DateSegment.d.ts} +0 -0
- /package/dist/types/components/{BaseSnackbar.d.ts → Snackbar/BaseSnackbar.d.ts} +0 -0
- /package/dist/types/components/{DefaultSnack.d.ts → Snackbar/DefaultSnack.d.ts} +0 -0
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
1
|
import { hint } from '@tecsinapse/cortex-core';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
3
|
|
|
4
|
-
const Hint = forwardRef(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"div",
|
|
9
|
-
{
|
|
10
|
-
className: hint(variants),
|
|
11
|
-
ref
|
|
12
|
-
},
|
|
13
|
-
description ? /* @__PURE__ */ React.createElement("p", null, description) : /* @__PURE__ */ React.createElement(React.Fragment, null),
|
|
14
|
-
children
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
);
|
|
4
|
+
const Hint = forwardRef((props, ref) => {
|
|
5
|
+
const { children, variants } = props;
|
|
6
|
+
return /* @__PURE__ */ React.createElement("div", { className: hint(variants), ref }, children ?? /* @__PURE__ */ React.createElement(React.Fragment, null));
|
|
7
|
+
});
|
|
18
8
|
|
|
19
9
|
export { Hint };
|
|
@@ -8,7 +8,13 @@ import { useDebouncedState } from '../../hooks/useDebouncedState.js';
|
|
|
8
8
|
import '@floating-ui/react';
|
|
9
9
|
|
|
10
10
|
const InputSearch = React.forwardRef(
|
|
11
|
-
({
|
|
11
|
+
({
|
|
12
|
+
bounceTimeout = 1e3,
|
|
13
|
+
variants,
|
|
14
|
+
className,
|
|
15
|
+
onChange,
|
|
16
|
+
...rest
|
|
17
|
+
}, ref) => {
|
|
12
18
|
const [bouncedTextEvent, setBouncedTextEvent] = useState();
|
|
13
19
|
const [searchInputEvent, setSearchInputEvent] = useDebouncedState(void 0, setBouncedTextEvent, bounceTimeout);
|
|
14
20
|
useEffect(() => {
|
|
@@ -2,14 +2,13 @@ import React, { Fragment } from 'react';
|
|
|
2
2
|
import 'clsx';
|
|
3
3
|
import '@internationalized/date';
|
|
4
4
|
import '../Badge.js';
|
|
5
|
-
import '../BaseSnackbar.js';
|
|
6
5
|
import 'react-icons/md';
|
|
7
6
|
import '../Card.js';
|
|
8
7
|
import '../Button.js';
|
|
9
8
|
import 'react-aria';
|
|
10
9
|
import 'react-stately';
|
|
11
10
|
import '@floating-ui/react';
|
|
12
|
-
import '../CalendarCell.js';
|
|
11
|
+
import '../Calendar/CalendarCell.js';
|
|
13
12
|
import '@tecsinapse/cortex-core';
|
|
14
13
|
import 'react-icons/fa';
|
|
15
14
|
import 'react-icons/lia';
|
|
@@ -20,7 +19,6 @@ import '../Input/Mask.js';
|
|
|
20
19
|
import '../Input/Right.js';
|
|
21
20
|
import '../Input/Root.js';
|
|
22
21
|
import '../Input/Search.js';
|
|
23
|
-
import 'react-icons/io';
|
|
24
22
|
import '../GroupButton.js';
|
|
25
23
|
import '../Hint.js';
|
|
26
24
|
import { Menubar } from './index.js';
|
|
@@ -36,6 +34,8 @@ import '../Select/MultiGroupedOptions.js';
|
|
|
36
34
|
import '../Select/MultiOptions.js';
|
|
37
35
|
import '../Select/Options.js';
|
|
38
36
|
import '../Select/Trigger.js';
|
|
37
|
+
import '../Snackbar/BaseSnackbar.js';
|
|
38
|
+
import 'react-icons/io';
|
|
39
39
|
import '../Tag.js';
|
|
40
40
|
import '../TextArea.js';
|
|
41
41
|
import '../Toggle.js';
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
1
|
import { tag } from '@tecsinapse/cortex-core';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
3
|
|
|
4
4
|
const Tag = forwardRef((props, ref) => {
|
|
5
5
|
const { label, variants } = props;
|
|
6
|
-
return /* @__PURE__ */ React.createElement(
|
|
7
|
-
"div",
|
|
8
|
-
{
|
|
9
|
-
className: tag(variants),
|
|
10
|
-
ref
|
|
11
|
-
},
|
|
12
|
-
/* @__PURE__ */ React.createElement("p", null, label)
|
|
13
|
-
);
|
|
6
|
+
return /* @__PURE__ */ React.createElement("div", { className: tag(variants), ref }, /* @__PURE__ */ React.createElement("p", null, label));
|
|
14
7
|
});
|
|
15
8
|
|
|
16
9
|
export { Tag };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useTimeField } from '../../hooks/useTimeField.js';
|
|
3
|
+
import { DateSegment } from '../DatePicker/DateSegment.js';
|
|
4
4
|
|
|
5
5
|
const TimeField = (props) => {
|
|
6
6
|
const { fieldProps, ref, state } = useTimeField(props);
|
|
7
7
|
return /* @__PURE__ */ React.createElement("div", { ...fieldProps, ref, className: "flex flex-row" }, state.segments.map((segment, i) => /* @__PURE__ */ React.createElement(DateSegment, { key: i, segment, state })));
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
export { TimeField
|
|
10
|
+
export { TimeField };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Input } from './Input/index.js';
|
|
3
1
|
import { labelStyle, inputBox } from '@tecsinapse/cortex-core';
|
|
4
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Input } from '../Input/index.js';
|
|
4
|
+
import { TimeField } from './TimeField.js';
|
|
5
5
|
|
|
6
6
|
const TimeFieldInput = (props) => {
|
|
7
7
|
const { onChange, value, label, variants } = props;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
export { Avatar } from './components/Avatar.js';
|
|
2
2
|
export { Badge, BadgeAnchor } from './components/Badge.js';
|
|
3
|
-
export {
|
|
4
|
-
export { Breadcrumbs } from './components/Breadcrumbs.js';
|
|
3
|
+
export { BreadcrumbItem } from './components/Breadcrumbs/BreadcrumbItem.js';
|
|
4
|
+
export { Breadcrumbs } from './components/Breadcrumbs/Breadcrumbs.js';
|
|
5
5
|
export { Button } from './components/Button.js';
|
|
6
|
-
export { Calendar } from './components/Calendar.js';
|
|
6
|
+
export { Calendar } from './components/Calendar/Calendar.js';
|
|
7
|
+
export { RangeCalendar } from './components/Calendar/RangeCalendar.js';
|
|
7
8
|
export { Card } from './components/Card.js';
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
9
|
+
export { DateField } from './components/DatePicker/DateField.js';
|
|
10
|
+
export { DatePickerInput } from './components/DatePicker/DatePickerInput.js';
|
|
11
|
+
export { DatePickerInputBase } from './components/DatePicker/DatePickerInputBase.js';
|
|
12
|
+
export { DateRangePickerInput } from './components/DatePicker/DateRangePickerInput.js';
|
|
13
|
+
export { DateSegment } from './components/DatePicker/DateSegment.js';
|
|
11
14
|
export { Divider } from './components/Divider.js';
|
|
12
15
|
export { Drawer } from './components/Drawer.js';
|
|
13
16
|
export { GroupButton } from './components/GroupButton.js';
|
|
@@ -18,13 +21,15 @@ export { Modal } from './components/Modal.js';
|
|
|
18
21
|
export { Popover } from './components/Popover/index.js';
|
|
19
22
|
export { ProgressBar } from './components/ProgressBar.js';
|
|
20
23
|
export { RadioButton } from './components/RadioButton.js';
|
|
21
|
-
export { RangeCalendar } from './components/RangeCalendar.js';
|
|
22
24
|
export { Select } from './components/Select/index.js';
|
|
23
25
|
export { Skeleton } from './components/Skeleton.js';
|
|
26
|
+
export { BaseSnackbar } from './components/Snackbar/BaseSnackbar.js';
|
|
27
|
+
export { DefaultSnack } from './components/Snackbar/DefaultSnack.js';
|
|
24
28
|
export { TCell, TFoot, THead, THeadCell, TRow, TRowHeader, Table, Td } from './components/Table.js';
|
|
25
29
|
export { Tag } from './components/Tag.js';
|
|
26
30
|
export { TextArea } from './components/TextArea.js';
|
|
27
|
-
export {
|
|
31
|
+
export { TimeField } from './components/TimeField/TimeField.js';
|
|
32
|
+
export { TimeFieldInput } from './components/TimeField/TimeFieldInput.js';
|
|
28
33
|
export { Toggle } from './components/Toggle.js';
|
|
29
34
|
export { Tooltip } from './components/Tooltip.js';
|
|
30
35
|
export { useCalendar } from './hooks/useCalendar.js';
|
|
@@ -11,7 +11,7 @@ const MenubarProvider = ({ children }) => {
|
|
|
11
11
|
const useMenubar = () => {
|
|
12
12
|
const context = useContext(MenubarContext);
|
|
13
13
|
if (!context) {
|
|
14
|
-
throw new Error("
|
|
14
|
+
throw new Error("useMenubar must be used within a MenubarProvider");
|
|
15
15
|
}
|
|
16
16
|
return [context.show, context.setShow];
|
|
17
17
|
};
|
|
@@ -3,14 +3,13 @@ import 'sonner';
|
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '@internationalized/date';
|
|
5
5
|
import '../components/Badge.js';
|
|
6
|
-
import '../components/BaseSnackbar.js';
|
|
7
6
|
import 'react-icons/md';
|
|
8
7
|
import '../components/Card.js';
|
|
9
8
|
import '../components/Button.js';
|
|
10
9
|
import 'react-aria';
|
|
11
10
|
import 'react-stately';
|
|
12
11
|
import '@floating-ui/react';
|
|
13
|
-
import '../components/CalendarCell.js';
|
|
12
|
+
import '../components/Calendar/CalendarCell.js';
|
|
14
13
|
import '@tecsinapse/cortex-core';
|
|
15
14
|
import 'react-icons/fa';
|
|
16
15
|
import 'react-icons/lia';
|
|
@@ -21,7 +20,6 @@ import '../components/Input/Mask.js';
|
|
|
21
20
|
import '../components/Input/Right.js';
|
|
22
21
|
import '../components/Input/Root.js';
|
|
23
22
|
import '../components/Input/Search.js';
|
|
24
|
-
import 'react-icons/io';
|
|
25
23
|
import '../components/GroupButton.js';
|
|
26
24
|
import '../components/Hint.js';
|
|
27
25
|
import './MenubarProvider.js';
|
|
@@ -46,6 +44,8 @@ import '../components/Select/MultiGroupedOptions.js';
|
|
|
46
44
|
import '../components/Select/MultiOptions.js';
|
|
47
45
|
import '../components/Select/Options.js';
|
|
48
46
|
import '../components/Select/Trigger.js';
|
|
47
|
+
import '../components/Snackbar/BaseSnackbar.js';
|
|
48
|
+
import 'react-icons/io';
|
|
49
49
|
import '../components/Tag.js';
|
|
50
50
|
import '../components/TextArea.js';
|
|
51
51
|
import '../components/Toggle.js';
|
|
@@ -3,14 +3,13 @@ import React from 'react';
|
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '@internationalized/date';
|
|
5
5
|
import '../components/Badge.js';
|
|
6
|
-
import '../components/BaseSnackbar.js';
|
|
7
6
|
import 'react-icons/md';
|
|
8
7
|
import '../components/Card.js';
|
|
9
8
|
import '../components/Button.js';
|
|
10
9
|
import 'react-aria';
|
|
11
10
|
import 'react-stately';
|
|
12
11
|
import '@floating-ui/react';
|
|
13
|
-
import '../components/CalendarCell.js';
|
|
12
|
+
import '../components/Calendar/CalendarCell.js';
|
|
14
13
|
import '@tecsinapse/cortex-core';
|
|
15
14
|
import 'react-icons/fa';
|
|
16
15
|
import 'react-icons/lia';
|
|
@@ -21,7 +20,6 @@ import '../components/Input/Mask.js';
|
|
|
21
20
|
import '../components/Input/Right.js';
|
|
22
21
|
import '../components/Input/Root.js';
|
|
23
22
|
import '../components/Input/Search.js';
|
|
24
|
-
import { DefaultSnack } from '../components/DefaultSnack.js';
|
|
25
23
|
import '../components/GroupButton.js';
|
|
26
24
|
import '../components/Hint.js';
|
|
27
25
|
import '../provider/MenubarProvider.js';
|
|
@@ -47,6 +45,8 @@ import '../components/Select/MultiGroupedOptions.js';
|
|
|
47
45
|
import '../components/Select/MultiOptions.js';
|
|
48
46
|
import '../components/Select/Options.js';
|
|
49
47
|
import '../components/Select/Trigger.js';
|
|
48
|
+
import '../components/Snackbar/BaseSnackbar.js';
|
|
49
|
+
import { DefaultSnack } from '../components/Snackbar/DefaultSnack.js';
|
|
50
50
|
import '../components/Tag.js';
|
|
51
51
|
import '../components/TextArea.js';
|
|
52
52
|
import '../components/Toggle.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
interface AvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
export interface AvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
src?: string;
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const Avatar: ({ src, name, className, ...rest }: AvatarProps) => JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
export interface BreadcrumbType {
|
|
3
|
+
title: string;
|
|
4
|
+
Component: ElementType;
|
|
5
|
+
componentProps?: any;
|
|
6
|
+
}
|
|
2
7
|
export interface BreadcrumbItemProps extends BreadcrumbType {
|
|
3
8
|
isLast: boolean;
|
|
4
9
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
title: string;
|
|
4
|
-
Component: ElementType;
|
|
5
|
-
componentProps?: any;
|
|
6
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BreadcrumbType } from './BreadcrumbItem';
|
|
7
3
|
export interface BreadcrumbsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
4
|
breadcrumbs: BreadcrumbType[];
|
|
9
5
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ButtonVariants } from '@tecsinapse/cortex-core';
|
|
3
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'className'> {
|
|
4
4
|
variants?: ButtonVariants;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
7
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
-
export {};
|
|
@@ -2,9 +2,8 @@ export type DateRange = {
|
|
|
2
2
|
start: Date;
|
|
3
3
|
end: Date;
|
|
4
4
|
};
|
|
5
|
-
interface RangeCalendarProps {
|
|
5
|
+
export interface RangeCalendarProps {
|
|
6
6
|
value?: DateRange;
|
|
7
7
|
onChange: (value: DateRange) => void;
|
|
8
8
|
}
|
|
9
9
|
export declare const RangeCalendar: ({ value, onChange }: RangeCalendarProps) => JSX.Element;
|
|
10
|
-
export {};
|
package/dist/types/components/{DateRangePickerInput.d.ts → DatePicker/DateRangePickerInput.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DateRange } from '../Calendar/RangeCalendar';
|
|
2
|
+
import { InputPropsBase } from '../Input';
|
|
3
3
|
export interface DateRangePickerInputProps extends InputPropsBase {
|
|
4
4
|
value?: DateRange;
|
|
5
5
|
onChange: (date: DateRange) => void;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { HintVariants } from '@tecsinapse/cortex-core';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
variants?: HintVariants;
|
|
7
|
-
}
|
|
8
|
-
interface HintPropsWithChildrenProps {
|
|
9
|
-
children: JSX.Element;
|
|
10
|
-
description?: never;
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface HintProps {
|
|
4
|
+
children: React.ReactNode;
|
|
11
5
|
variants?: HintVariants;
|
|
12
6
|
}
|
|
13
|
-
export declare const Hint: React.ForwardRefExoticComponent<
|
|
14
|
-
export {};
|
|
7
|
+
export declare const Hint: React.ForwardRefExoticComponent<Omit<HintProps & Omit<React.HTMLProps<HTMLDivElement>, "className">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3,5 +3,4 @@ export interface TimeFieldProps {
|
|
|
3
3
|
value?: TimeValueType;
|
|
4
4
|
onChange: (number: TimeValueType) => void;
|
|
5
5
|
}
|
|
6
|
-
declare const TimeField: (props: TimeFieldProps) => JSX.Element;
|
|
7
|
-
export default TimeField;
|
|
6
|
+
export declare const TimeField: (props: TimeFieldProps) => JSX.Element;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
export * from './Avatar';
|
|
2
2
|
export * from './Badge';
|
|
3
|
-
export * from './BaseSnackbar';
|
|
4
3
|
export * from './Breadcrumbs';
|
|
5
4
|
export * from './Button';
|
|
6
5
|
export * from './Calendar';
|
|
7
6
|
export * from './Card';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './DateRangePickerInput';
|
|
10
|
-
export * from './DefaultSnack';
|
|
7
|
+
export * from './DatePicker';
|
|
11
8
|
export * from './Divider';
|
|
12
9
|
export * from './Drawer';
|
|
13
10
|
export * from './GroupButton';
|
|
@@ -18,12 +15,12 @@ export * from './Modal';
|
|
|
18
15
|
export * from './Popover';
|
|
19
16
|
export * from './ProgressBar';
|
|
20
17
|
export * from './RadioButton';
|
|
21
|
-
export * from './RangeCalendar';
|
|
22
18
|
export * from './Select';
|
|
23
19
|
export * from './Skeleton';
|
|
20
|
+
export * from './Snackbar';
|
|
24
21
|
export * from './Table';
|
|
25
22
|
export * from './Tag';
|
|
26
23
|
export * from './TextArea';
|
|
27
|
-
export * from './
|
|
24
|
+
export * from './TimeField';
|
|
28
25
|
export * from './Toggle';
|
|
29
26
|
export * from './Tooltip';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.23",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@floating-ui/react": "^0.26.18",
|
|
22
22
|
"@internationalized/date": "*",
|
|
23
|
-
"@tecsinapse/cortex-core": "0.3.0-beta.
|
|
23
|
+
"@tecsinapse/cortex-core": "0.3.0-beta.14",
|
|
24
24
|
"clsx": "*",
|
|
25
25
|
"react-aria": "^3.33.1",
|
|
26
26
|
"react-icons": "^5.2.1",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"react-dom": ">=18.0.0",
|
|
44
44
|
"tailwind": ">=3.3.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "51b45071d2ed294e4730031f44470b1f1a0a3f63"
|
|
47
47
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/components/{CalendarGridBodyRows.d.ts → Calendar/CalendarGridBodyRows.d.ts}
RENAMED
|
File without changes
|
/package/dist/types/components/{CalendarGridHeaderRow.d.ts → Calendar/CalendarGridHeaderRow.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|