@loadsmart/loadsmart-ui 8.0.3 → 8.0.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/dist/components/Calendar/index.d.ts +1 -1
- package/dist/components/Dropdown/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts +3 -1
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- package/dist/hooks/useSelectable/index.d.ts +1 -1
- package/dist/index.d.ts +14 -8
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +8 -10
|
@@ -3,7 +3,7 @@ export { default as DateFormatHelper } from './DateFormat.helper';
|
|
|
3
3
|
export { default as DateHelper, TODAY } from './Date.helper';
|
|
4
4
|
export { default as MonthHelper } from './Month.helper';
|
|
5
5
|
export { default as useCalendar } from './useCalendar';
|
|
6
|
-
export type { CalendarDate, CalendarDateRange, CalendarConstraint } from './Date.helper';
|
|
6
|
+
export type { CalendarDate, CalendarDateRange, CalendarConstraint, InputDate } from './Date.helper';
|
|
7
7
|
export type { DateFormat } from './DateFormat.helper';
|
|
8
8
|
export type { CalendarMonth, CalendarMonthAlias } from './Month.helper';
|
|
9
9
|
export type { CalendarProps, useCalendarProps, GenericCalendarProps } from './Calendar.types';
|
|
@@ -3,4 +3,4 @@ export { default as DropdownContext } from './Dropdown.context';
|
|
|
3
3
|
export { default as DropdownTrigger, GenericDropdownTrigger } from './DropdownTrigger';
|
|
4
4
|
export { DropdownMenu, DropdownMenuItem } from './DropdownMenu';
|
|
5
5
|
export { default as useDropdown } from './useDropdown';
|
|
6
|
-
export type { DropdownMenuItemProps, DropdownMenuProps, DropdownMenuSectionProps, DropdownProps, DropdownTriggerProps, GenericDropdownProps, useDropdownProps, } from './Dropdown.types';
|
|
6
|
+
export type { DropdownMenuItemProps, DropdownMenuProps, DropdownMenuSectionProps, DropdownProps, DropdownTriggerProps, GenericDropdownProps, useDropdownProps, useDropdownReturn, DropdownContextReturn, } from './Dropdown.types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Select } from './Select';
|
|
2
|
-
export type { SelectProps, useSelectExternalReturn as useSelectReturn, SelectComponentsOptionProps as SelectOptionProps, SelectComponentsEmptyProps as SelectEmptyProps, Option as SelectOption, OnChange as SelectOnChange, OnCreate as SelectOnCreate, OnQueryChange as SelectOnQueryChange, } from './Select.types';
|
|
2
|
+
export type { SelectProps, useSelectExternalReturn as useSelectReturn, SelectComponentsOptionProps as SelectOptionProps, SelectComponentsEmptyProps as SelectEmptyProps, Option as SelectOption, OnChange as SelectOnChange, OnCreate as SelectOnCreate, OnQueryChange as SelectOnQueryChange, GenericOption, SelectableOption, SelectableOptionProps, CreatableProps, OptionKeyType, SelectValue, SelectAdapter, Adapters, SelectDatasource, Option, } from './Select.types';
|
|
3
3
|
export { useSelectExternal as useSelect } from './useSelectExternal';
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { default as Table } from './Table';
|
|
2
|
-
export type { TableProps, TableCellProps, TableRowProps, TableSectionProps } from './Table.types';
|
|
2
|
+
export type { TableProps, TableCellProps, TableRowProps, TableSectionProps, TableCaptionProps, TableSelectionProps, SelectionCellProps, ExpandableTableRowProps, } from './Table.types';
|
|
3
|
+
export type { TableSelectableRow, TableSelectionSelectable, TableSelectionConfig, TableSelectionCore, } from './Selection';
|
|
4
|
+
export type { SortDirection, SortState, TableRowGroup, ColumnGroup, SortableColumn, } from './useSortBy.types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ToggleGroup } from './ToggleGroup';
|
|
2
|
-
export type { ToggleGroupProps, ToggleGroupOptionProps } from './ToggleGroup.types';
|
|
2
|
+
export type { ToggleGroupProps, ToggleGroupOptionProps, ToggleGroupType, ToggleGroupOptionValue, ToggleOption, SelectedToggleGroupOptions, } from './ToggleGroup.types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { createSelectable } from './useSelectable';
|
|
2
|
-
export type { Selectable, SelectableAdapter, SelectableKeyType, SelectableType, SelectableState, } from './useSelectable.types';
|
|
2
|
+
export type { Selectable, SelectableAdapter, SelectableKeyType, SelectableType, SelectableState, SelectableStrategy, SelectableAction, useSelectableReturn, useSelectableProps, } from './useSelectable.types';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export type { Selectable, SelectableKeyType, SelectableAdapter, SelectableState, SelectableType, SelectableStrategy, SelectableAction, useSelectableReturn, useSelectableProps, } from './hooks/useSelectable';
|
|
2
|
+
export type { default as EventLike, EventLikeTarget } from './utils/types/EventLike';
|
|
3
|
+
export { default as Status } from './utils/types/Status';
|
|
1
4
|
export { Button, BaseButton, SelectorButton, IconButton, Caret } from './components/Button';
|
|
2
5
|
export { default as CloseButton } from './common/CloseButton';
|
|
3
6
|
export { default as BackButton } from './common/BackButton';
|
|
@@ -15,9 +18,9 @@ export type { TextareaProps } from './components/Textarea';
|
|
|
15
18
|
export { Link } from './components/Link';
|
|
16
19
|
export type { LinkProps } from './components/Link';
|
|
17
20
|
export { Breadcrumbs } from './components/Breadcrumbs';
|
|
18
|
-
export type { BreadcrumbsProps } from './components/Breadcrumbs';
|
|
21
|
+
export type { BreadcrumbsProps, BreadcrumbProps } from './components/Breadcrumbs';
|
|
19
22
|
export { ToggleGroup } from './components/ToggleGroup';
|
|
20
|
-
export type { ToggleGroupProps, ToggleGroupOptionProps } from './components/ToggleGroup';
|
|
23
|
+
export type { ToggleGroupProps, ToggleGroupOptionProps, ToggleGroupType, ToggleGroupOptionValue, ToggleOption, SelectedToggleGroupOptions, } from './components/ToggleGroup';
|
|
21
24
|
export { Tabs } from './components/Tabs';
|
|
22
25
|
export type { TabsProps } from './components/Tabs';
|
|
23
26
|
export { Section } from './components/Section';
|
|
@@ -48,26 +51,28 @@ export { Steps, useSteps } from './components/Steps';
|
|
|
48
51
|
export type { Step, StepsProps, useStepsProps } from './components/Steps';
|
|
49
52
|
export { Card } from './components/Card';
|
|
50
53
|
export type { CardProps } from './components/Card';
|
|
54
|
+
export { Icon } from './components/Icon';
|
|
55
|
+
export type { IconProps as IconComponentProps } from './components/Icon';
|
|
51
56
|
export { IconFactory } from './components/IconFactory';
|
|
52
57
|
export type { IconProps, IconMapping } from './components/IconFactory';
|
|
53
58
|
export { Popover, usePopover } from './components/Popover';
|
|
54
59
|
export type { PopoverProps, PopoverAlign, PopoverPosition, PopoverFloatingProps, PopoverPlacement, PopoverReferenceProps, UsePopoverReturn, } from './components/Popover';
|
|
55
60
|
export { Dropdown, useDropdown, DropdownContext } from './components/Dropdown';
|
|
56
|
-
export type { DropdownProps, useDropdownProps } from './components/Dropdown';
|
|
61
|
+
export type { DropdownProps, useDropdownProps, useDropdownReturn, GenericDropdownProps, DropdownTriggerProps, DropdownMenuProps, DropdownMenuItemProps, DropdownMenuSectionProps, DropdownContextReturn, } from './components/Dropdown';
|
|
57
62
|
export { Select, useSelect } from './components/Select';
|
|
58
|
-
export type { SelectProps, useSelectReturn, SelectOptionProps, SelectEmptyProps, } from './components/Select';
|
|
63
|
+
export type { SelectProps, useSelectReturn, SelectOptionProps, SelectEmptyProps, SelectOption, SelectOnChange, SelectOnCreate, SelectOnQueryChange, GenericOption, SelectableOption, SelectableOptionProps, CreatableProps, OptionKeyType, SelectValue, SelectAdapter, Adapters, SelectDatasource, Option, } from './components/Select';
|
|
59
64
|
export { SideNavigation, useSideNavigation } from './components/SideNavigation';
|
|
60
65
|
export type { SideNavigationProps, useSideNavigationProps } from './components/SideNavigation';
|
|
61
66
|
export { Drawer, useDrawer } from './components/Drawer';
|
|
62
67
|
export type { DrawerProps, DrawerBodyProps, DrawerFooterProps, DrawerHeaderProps, } from './components/Drawer';
|
|
63
68
|
export { Table } from './components/Table';
|
|
64
|
-
export type { TableProps, TableCellProps, TableRowProps, TableSectionProps, } from './components/Table';
|
|
69
|
+
export type { TableProps, TableCellProps, TableRowProps, TableSectionProps, TableCaptionProps, TableSelectionProps, SelectionCellProps, ExpandableTableRowProps, TableSelectableRow, TableSelectionSelectable, TableSelectionConfig, TableSelectionCore, SortDirection, SortState, TableRowGroup, ColumnGroup, SortableColumn, } from './components/Table';
|
|
65
70
|
export { Text } from './components/Text';
|
|
66
71
|
export type { TextProps } from './components/Text';
|
|
67
72
|
export { TopNavigation } from './components/TopNavigation';
|
|
68
73
|
export type { TopNavigationProps } from './components/TopNavigation';
|
|
69
74
|
export { EmptyState } from './components/EmptyState';
|
|
70
|
-
export type { EmptyStateProps } from './components/EmptyState';
|
|
75
|
+
export type { EmptyStateProps, EmptyStateCommonProps, EmptyStateWithIconProps, EmptyStateWithIllustrationProps, IllustrationProps, } from './components/EmptyState';
|
|
71
76
|
export { Layout } from './components/Layout';
|
|
72
77
|
export type { BoxProps } from './components/Layout/Box';
|
|
73
78
|
export type { GroupProps } from './components/Layout/Group';
|
|
@@ -75,8 +80,9 @@ export type { SidebarProps } from './components/Layout/Sidebar';
|
|
|
75
80
|
export type { StackProps } from './components/Layout/Stack';
|
|
76
81
|
export type { SwitcherProps } from './components/Layout/Switcher';
|
|
77
82
|
export type { GridProps } from './components/Layout/Grid';
|
|
83
|
+
export type { Spacing, JustifyValue, AlignValue } from './components/Layout/Layout.types';
|
|
78
84
|
export { Calendar, DateHelper, DateFormatHelper } from './components/Calendar';
|
|
79
|
-
export type { CalendarProps, CalendarDate, CalendarDateRange, CalendarConstraint, DateFormat, } from './components/Calendar';
|
|
85
|
+
export type { CalendarProps, CalendarDate, CalendarDateRange, CalendarConstraint, DateFormat, CalendarMonth, CalendarMonthAlias, useCalendarProps, GenericCalendarProps, InputDate, } from './components/Calendar';
|
|
80
86
|
export { DatePicker, DateRangePicker } from './components/DatePicker';
|
|
81
87
|
export type { DatePickerProps, DateRangePickerProps } from './components/DatePicker';
|
|
82
88
|
export { Spinner } from './components/Loaders';
|
|
@@ -91,7 +97,7 @@ export { ErrorMessage } from './components/ErrorMessage';
|
|
|
91
97
|
export type { ErrorMessageProps } from './components/ErrorMessage';
|
|
92
98
|
export { DragDropFileProvider, useDragDropFileContext, } from './components/DragDropFile/DragDropFile.context';
|
|
93
99
|
export { default as DragDropFile } from './components/DragDropFile/DragDropFile';
|
|
94
|
-
export type { FileStatus, FileWithStatus, DropZoneProps, DragDropFileProviderProps, DragDropFileContextValue, } from './components/DragDropFile/types';
|
|
100
|
+
export type { FileStatus, FileWithStatus, DropZoneProps, DragDropFileProviderProps, DragDropFileContextValue, WrapperProps as DragDropFileWrapperProps, } from './components/DragDropFile/types';
|
|
95
101
|
export { TablePagination } from './components/TablePagination';
|
|
96
102
|
export type { TablePaginationProps } from './components/TablePagination';
|
|
97
103
|
export { VisuallyHidden } from './components/VisuallyHidden';
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,13 @@ import ReactDOM from "react-dom";
|
|
|
14
14
|
import { useFloating, autoUpdate, offset, flip, shift, arrow } from "@floating-ui/react-dom";
|
|
15
15
|
import { u as useDragDropFileContext } from "./DragDropFile.context-oKnUu6d3.js";
|
|
16
16
|
import { a } from "./DragDropFile.context-oKnUu6d3.js";
|
|
17
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
18
|
+
Status2["Success"] = "success";
|
|
19
|
+
Status2["Danger"] = "danger";
|
|
20
|
+
Status2["Warn"] = "warn";
|
|
21
|
+
Status2["Neutral"] = "neutral";
|
|
22
|
+
return Status2;
|
|
23
|
+
})(Status || {});
|
|
17
24
|
function transitionStyle(options) {
|
|
18
25
|
return `
|
|
19
26
|
transition-property: ${options?.property || "background, border-color, box-shadow, color, fill, left, stroke, transform, opacity"};
|
|
@@ -1471,13 +1478,6 @@ function useFocusWithin(props = {}) {
|
|
|
1471
1478
|
focused
|
|
1472
1479
|
};
|
|
1473
1480
|
}
|
|
1474
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
1475
|
-
Status2["Success"] = "success";
|
|
1476
|
-
Status2["Danger"] = "danger";
|
|
1477
|
-
Status2["Warn"] = "warn";
|
|
1478
|
-
Status2["Neutral"] = "neutral";
|
|
1479
|
-
return Status2;
|
|
1480
|
-
})(Status || {});
|
|
1481
1481
|
const InputWrapper = styled.div.withConfig({
|
|
1482
1482
|
displayName: "InputWrapper",
|
|
1483
1483
|
componentId: "ls-ui__sc-zve05l-0"
|
|
@@ -9204,6 +9204,7 @@ export {
|
|
|
9204
9204
|
EmptyState,
|
|
9205
9205
|
ErrorMessage,
|
|
9206
9206
|
HighlightMatch,
|
|
9207
|
+
Icon$2 as Icon,
|
|
9207
9208
|
IconButton$1 as IconButton,
|
|
9208
9209
|
IconFactory,
|
|
9209
9210
|
Label,
|
|
@@ -9221,6 +9222,7 @@ export {
|
|
|
9221
9222
|
SelectorButton,
|
|
9222
9223
|
SideNavigation,
|
|
9223
9224
|
Spinner,
|
|
9225
|
+
Status,
|
|
9224
9226
|
Steps,
|
|
9225
9227
|
Switch,
|
|
9226
9228
|
Table,
|