labsense-ui-kit 1.1.0 → 1.1.1
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/Breadcrums/Breadcrums.d.ts +2 -2
- package/dist/Breadcrums/index.d.ts +2 -2
- package/dist/Dropdown/index.d.ts +2 -2
- package/dist/Tabs/Tabs.d.ts +4 -4
- package/dist/Tabs/index.d.ts +2 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +28 -22
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +25 -22
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface BreadcrumbDetail {
|
|
3
3
|
navigateLink?: string;
|
|
4
4
|
text: string;
|
|
5
5
|
}
|
|
6
6
|
interface BreadcrumbsProps {
|
|
7
7
|
backLink?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
-
breadcrumbs:
|
|
9
|
+
breadcrumbs: BreadcrumbDetail[];
|
|
10
10
|
onBackClick?: () => void;
|
|
11
11
|
}
|
|
12
12
|
declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Breadcrumbs from './Breadcrums';
|
|
2
|
-
export { Breadcrumbs };
|
|
1
|
+
import Breadcrumbs, { BreadcrumbDetail } from './Breadcrums';
|
|
2
|
+
export { Breadcrumbs, BreadcrumbDetail };
|
package/dist/Dropdown/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import MultiSelectDropdown from './MultiSelectDropdown';
|
|
2
2
|
import OptionComponent from './OptionComponent';
|
|
3
3
|
import SelectedOption from './SelectedOption';
|
|
4
|
-
import SelectOption from './SelectOption';
|
|
5
|
-
export { MultiSelectDropdown, OptionComponent, SelectedOption, SelectOption };
|
|
4
|
+
import SelectOption, { DropdownMenu, Options } from './SelectOption';
|
|
5
|
+
export { MultiSelectDropdown, OptionComponent, SelectedOption, SelectOption, DropdownMenu, Options };
|
package/dist/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconNames } from '../Icons';
|
|
3
|
-
export interface
|
|
3
|
+
export interface TabContentProps {
|
|
4
4
|
title: string;
|
|
5
5
|
icon?: IconNames;
|
|
6
6
|
iconSize?: number;
|
|
@@ -10,12 +10,12 @@ export interface tabContent {
|
|
|
10
10
|
content?: React.ReactNode;
|
|
11
11
|
}
|
|
12
12
|
interface TabProps {
|
|
13
|
-
tabItems:
|
|
13
|
+
tabItems: TabContentProps[];
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
headerHeight?: string;
|
|
16
16
|
headerPadding?: string;
|
|
17
17
|
activeTab: string;
|
|
18
18
|
border?: string;
|
|
19
19
|
}
|
|
20
|
-
declare const
|
|
21
|
-
export default
|
|
20
|
+
declare const Tabs: React.FC<TabProps>;
|
|
21
|
+
export default Tabs;
|
package/dist/Tabs/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { Badge } from './Badge';
|
|
2
|
-
import { Breadcrumbs } from './Breadcrums';
|
|
2
|
+
import { Breadcrumbs, BreadcrumbDetail } from './Breadcrums';
|
|
3
3
|
import { Button, ButtonProps, ButtonLoaderProps } from './Buttons';
|
|
4
4
|
import { ButtonCarousel } from './Carousel';
|
|
5
5
|
import { Container, Span } from './Container&Span/StyledComponents';
|
|
6
6
|
import { DatePicker } from './Date-Time';
|
|
7
|
-
import { MultiSelectDropdown, OptionComponent, SelectedOption, SelectOption } from './Dropdown';
|
|
8
|
-
import { useClickOutside, useCustomModal } from './hooks';
|
|
7
|
+
import { MultiSelectDropdown, OptionComponent, SelectedOption, SelectOption, DropdownMenu, Options } from './Dropdown';
|
|
8
|
+
import { useClickOutside, useCustomModal, useNotification } from './hooks';
|
|
9
9
|
import { Icon, IconNames } from './Icons';
|
|
10
10
|
import { SearchBox, TextArea, TextField, TextFieldWithDropdown } from './Inputs';
|
|
11
11
|
import { CircularLoader, Loader } from './Loader';
|
|
12
12
|
import { Pagination } from './Pagination';
|
|
13
13
|
import { ProgressBar } from './ProgressBar';
|
|
14
14
|
import { Sidebar } from './Sidebar';
|
|
15
|
-
import { Table, TableCell, TableRow } from './Table';
|
|
16
|
-
import { InternalTabs, Tabs } from './Tabs';
|
|
15
|
+
import { Table, TableCell, TableRow, TableProps } from './Table';
|
|
16
|
+
import { InternalTabs, Tabs, TabContentProps } from './Tabs';
|
|
17
17
|
import { colorVariables, darkColorVariables, themes } from './Themes/Colors';
|
|
18
18
|
import { convertToEpoch, formatDate, formatTimestamp, formatCalendarDateTime, timeAgo, formatEpochToIST, convertEpochToDateString, convertEpochToOnlyDate, getSystemTimezoneAbbreviation, timeStringToSeconds } from './Utils/Date&Time';
|
|
19
19
|
export { Badge };
|
|
20
|
-
export { Breadcrumbs };
|
|
20
|
+
export { Breadcrumbs, BreadcrumbDetail };
|
|
21
21
|
export { Button, ButtonProps, ButtonLoaderProps };
|
|
22
22
|
export { ButtonCarousel };
|
|
23
23
|
export { Container, Span };
|
|
24
24
|
export { DatePicker };
|
|
25
|
-
export { MultiSelectDropdown, OptionComponent, SelectedOption, SelectOption };
|
|
26
|
-
export { useClickOutside, useCustomModal };
|
|
25
|
+
export { MultiSelectDropdown, OptionComponent, SelectedOption, SelectOption, DropdownMenu, Options };
|
|
26
|
+
export { useClickOutside, useCustomModal, useNotification };
|
|
27
27
|
export { Icon, IconNames };
|
|
28
28
|
export { SearchBox, TextArea, TextField, TextFieldWithDropdown };
|
|
29
29
|
export { CircularLoader, Loader };
|
|
30
30
|
export { Pagination };
|
|
31
31
|
export { ProgressBar };
|
|
32
32
|
export { Sidebar };
|
|
33
|
-
export { TableCell, Table, TableRow };
|
|
34
|
-
export { InternalTabs, Tabs };
|
|
33
|
+
export { TableCell, Table, TableRow, TableProps };
|
|
34
|
+
export { InternalTabs, Tabs, TabContentProps };
|
|
35
35
|
export { colorVariables, darkColorVariables, themes };
|
|
36
36
|
export { convertToEpoch, formatDate, formatTimestamp, formatCalendarDateTime, timeAgo, formatEpochToIST, convertEpochToDateString, convertEpochToOnlyDate, getSystemTimezoneAbbreviation, timeStringToSeconds };
|
package/dist/index.js
CHANGED
|
@@ -6046,26 +6046,29 @@ var Table = function Table(_ref) {
|
|
|
6046
6046
|
};
|
|
6047
6047
|
|
|
6048
6048
|
var _templateObject$o, _templateObject2$j, _templateObject3$e, _templateObject4$b, _templateObject5$9;
|
|
6049
|
-
var Container$5 = styled__default.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n \n"])))
|
|
6050
|
-
var
|
|
6051
|
-
|
|
6049
|
+
var Container$5 = styled__default.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 100%; \n display: flex;\n flex-direction: column;\n overflow: hidden;\n gap: 24px;\n border: ", ";\n border-radius: 8px;\n"])), function (_ref) {
|
|
6050
|
+
var $border = _ref.$border;
|
|
6051
|
+
return $border;
|
|
6052
|
+
});
|
|
6053
|
+
var FirstContainer = styled__default.div(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n font-family: NotoSans, sans-serif;\n font-size: 16px;\n gap: 24px;\n border-bottom: 1px solid ", ";\n padding: ", ";\n"])), colorVariables.border.light, function (_ref2) {
|
|
6054
|
+
var $headerPadding = _ref2.$headerPadding;
|
|
6052
6055
|
return $headerPadding ? $headerPadding : '0px';
|
|
6053
6056
|
});
|
|
6054
|
-
var TabContainer = styled__default.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n width: auto;\n display: flex;\n align-items: center;\n cursor: ", ";\n opacity: ", ";\n gap: 8px;\n font-family: NotoSans, sans-serif;\n font-size: 14px;\n font-weight: 500;\n color: ", ";\n height: ", ";\n\n svg {\n cursor: ", ";\n }\n\n"])), function (
|
|
6055
|
-
var $disabled = _ref2.$disabled;
|
|
6056
|
-
return $disabled ? 'not-allowed' : 'pointer';
|
|
6057
|
-
}, function (_ref3) {
|
|
6057
|
+
var TabContainer = styled__default.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n width: auto;\n display: flex;\n align-items: center;\n cursor: ", ";\n opacity: ", ";\n gap: 8px;\n font-family: NotoSans, sans-serif;\n font-size: 14px;\n font-weight: 500;\n color: ", ";\n height: ", ";\n\n svg {\n cursor: ", ";\n }\n\n"])), function (_ref3) {
|
|
6058
6058
|
var $disabled = _ref3.$disabled;
|
|
6059
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
6060
|
+
}, function (_ref4) {
|
|
6061
|
+
var $disabled = _ref4.$disabled;
|
|
6059
6062
|
return $disabled ? '0.6' : '1';
|
|
6060
|
-
}, colorVariables.text.medium, function (
|
|
6061
|
-
var $headerHeight =
|
|
6063
|
+
}, colorVariables.text.medium, function (_ref5) {
|
|
6064
|
+
var $headerHeight = _ref5.$headerHeight;
|
|
6062
6065
|
return $headerHeight ? $headerHeight : '34px';
|
|
6063
|
-
}, function (
|
|
6064
|
-
var $disabled =
|
|
6066
|
+
}, function (_ref6) {
|
|
6067
|
+
var $disabled = _ref6.$disabled;
|
|
6065
6068
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
6066
6069
|
});
|
|
6067
|
-
var TabItemContainer = styled__default.div(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n position: relative;\n gap: 8px;\n height: 100%;\n max-height: ", ";\n\n &:after {\n content: \"\";\n display: ", ";\n width: 100%;\n height: 3px;\n background: ", ";\n position: absolute;\n bottom: -1px;\n left: 0px;\n }\n"])), function (
|
|
6068
|
-
var $headerHeight =
|
|
6070
|
+
var TabItemContainer = styled__default.div(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n position: relative;\n gap: 8px;\n height: 100%;\n max-height: ", ";\n\n &:after {\n content: \"\";\n display: ", ";\n width: 100%;\n height: 3px;\n background: ", ";\n position: absolute;\n bottom: -1px;\n left: 0px;\n }\n"])), function (_ref7) {
|
|
6071
|
+
var $headerHeight = _ref7.$headerHeight;
|
|
6069
6072
|
return $headerHeight ? $headerHeight : '34px';
|
|
6070
6073
|
}, function (props) {
|
|
6071
6074
|
return props.$active ? 'block' : 'none';
|
|
@@ -6073,14 +6076,14 @@ var TabItemContainer = styled__default.div(_templateObject4$b || (_templateObjec
|
|
|
6073
6076
|
var DetailsFirstContainer = styled__default.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n text-align: center;\n font-size: 14px;\n line-height: 18px;\n font-weight: 500;\n font-family: NotoSans, sans-serif;\n height: 100%;\n display: flex;\n align-items: center;\n color: ", ";\n"])), function (props) {
|
|
6074
6077
|
return props.$active ? colorVariables["default"].primary : colorVariables.text.medium;
|
|
6075
6078
|
});
|
|
6076
|
-
var
|
|
6077
|
-
var tabItems =
|
|
6078
|
-
|
|
6079
|
-
disabled =
|
|
6080
|
-
headerHeight =
|
|
6081
|
-
headerPadding =
|
|
6082
|
-
activeTab =
|
|
6083
|
-
border =
|
|
6079
|
+
var Tabs = function Tabs(_ref8) {
|
|
6080
|
+
var tabItems = _ref8.tabItems,
|
|
6081
|
+
_ref8$disabled = _ref8.disabled,
|
|
6082
|
+
disabled = _ref8$disabled === void 0 ? false : _ref8$disabled,
|
|
6083
|
+
headerHeight = _ref8.headerHeight,
|
|
6084
|
+
headerPadding = _ref8.headerPadding,
|
|
6085
|
+
activeTab = _ref8.activeTab,
|
|
6086
|
+
border = _ref8.border;
|
|
6084
6087
|
return React__default.createElement(Container$5, {
|
|
6085
6088
|
"$border": border
|
|
6086
6089
|
}, React__default.createElement(FirstContainer, {
|
|
@@ -6153,11 +6156,13 @@ exports.ButtonCarousel = ButtonCarousel;
|
|
|
6153
6156
|
exports.CircularLoader = CircularLoader;
|
|
6154
6157
|
exports.Container = Container;
|
|
6155
6158
|
exports.DatePicker = DatePicker;
|
|
6159
|
+
exports.DropdownMenu = DropdownMenu$1;
|
|
6156
6160
|
exports.Icon = Icon;
|
|
6157
6161
|
exports.InternalTabs = InternalTabs;
|
|
6158
6162
|
exports.Loader = Loader;
|
|
6159
6163
|
exports.MultiSelectDropdown = MultiSelectDropdown;
|
|
6160
6164
|
exports.OptionComponent = OptionComponent;
|
|
6165
|
+
exports.Options = Options;
|
|
6161
6166
|
exports.Pagination = Pagination;
|
|
6162
6167
|
exports.ProgressBar = ProgressBar;
|
|
6163
6168
|
exports.SearchBox = SearchBox;
|
|
@@ -6168,7 +6173,7 @@ exports.Span = Span;
|
|
|
6168
6173
|
exports.Table = Table;
|
|
6169
6174
|
exports.TableCell = TableCell;
|
|
6170
6175
|
exports.TableRow = TableRow;
|
|
6171
|
-
exports.Tabs =
|
|
6176
|
+
exports.Tabs = Tabs;
|
|
6172
6177
|
exports.TextArea = TextArea;
|
|
6173
6178
|
exports.TextField = InputField;
|
|
6174
6179
|
exports.TextFieldWithDropdown = TextFieldWithDropdown;
|
|
@@ -6187,4 +6192,5 @@ exports.timeAgo = timeAgo;
|
|
|
6187
6192
|
exports.timeStringToSeconds = timeStringToSeconds;
|
|
6188
6193
|
exports.useClickOutside = useClickOutside;
|
|
6189
6194
|
exports.useCustomModal = useCustomModal;
|
|
6195
|
+
exports.useNotification = useNotification;
|
|
6190
6196
|
//# sourceMappingURL=index.js.map
|