labsense-ui-kit 1.1.1 → 1.1.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/dist/Sidebar/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +33 -33
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/Sidebar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Sidebar from './Sidebar';
|
|
2
|
-
export { Sidebar };
|
|
1
|
+
import Sidebar, { logoDetails, SidebarItems } from './Sidebar';
|
|
2
|
+
export { Sidebar, logoDetails, SidebarItems };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ 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
|
-
import { Sidebar } from './Sidebar';
|
|
14
|
+
import { Sidebar, logoDetails, SidebarItems } from './Sidebar';
|
|
15
15
|
import { Table, TableCell, TableRow, TableProps } from './Table';
|
|
16
16
|
import { InternalTabs, Tabs, TabContentProps } from './Tabs';
|
|
17
17
|
import { colorVariables, darkColorVariables, themes } from './Themes/Colors';
|
|
@@ -29,7 +29,7 @@ export { SearchBox, TextArea, TextField, TextFieldWithDropdown };
|
|
|
29
29
|
export { CircularLoader, Loader };
|
|
30
30
|
export { Pagination };
|
|
31
31
|
export { ProgressBar };
|
|
32
|
-
export { Sidebar };
|
|
32
|
+
export { Sidebar, logoDetails, SidebarItems };
|
|
33
33
|
export { TableCell, Table, TableRow, TableProps };
|
|
34
34
|
export { InternalTabs, Tabs, TabContentProps };
|
|
35
35
|
export { colorVariables, darkColorVariables, themes };
|
package/dist/index.js
CHANGED
|
@@ -3089,28 +3089,28 @@ var GlobalFonts = {
|
|
|
3089
3089
|
var _templateObject$5, _templateObject2$3, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6;
|
|
3090
3090
|
var spin = styled.keyframes(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n to {\n transform: rotate(360deg);\n }\n"])));
|
|
3091
3091
|
var Spinner = styled__default.div(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n width: ", "px;\n height: ", "px;\n border: ", "px solid #ddd;\n border-top-color: ", ";\n border-radius: 50%;\n animation: fadeIn 0.3s ease-in-out forwards, ", " 1s linear infinite;\n"])), function (_ref) {
|
|
3092
|
-
var size = _ref
|
|
3093
|
-
return size;
|
|
3092
|
+
var $size = _ref.$size;
|
|
3093
|
+
return $size;
|
|
3094
3094
|
}, function (_ref2) {
|
|
3095
|
-
var size = _ref2
|
|
3096
|
-
return size;
|
|
3095
|
+
var $size = _ref2.$size;
|
|
3096
|
+
return $size;
|
|
3097
3097
|
}, function (_ref3) {
|
|
3098
|
-
var size = _ref3
|
|
3099
|
-
return size / 4;
|
|
3098
|
+
var $size = _ref3.$size;
|
|
3099
|
+
return $size / 4;
|
|
3100
3100
|
}, function (_ref4) {
|
|
3101
|
-
var color = _ref4
|
|
3102
|
-
return color;
|
|
3101
|
+
var $color = _ref4.$color;
|
|
3102
|
+
return $color;
|
|
3103
3103
|
}, spin);
|
|
3104
3104
|
var LoaderWrapper = styled__default.div(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-left: ", ";\n margin-right: ", ";\n transition: opacity 0.3s ease-in-out;\n"])), function (_ref5) {
|
|
3105
|
-
var loaderPosition = _ref5
|
|
3106
|
-
return loaderPosition === 'right' ? '4px' : '0';
|
|
3105
|
+
var $loaderPosition = _ref5.$loaderPosition;
|
|
3106
|
+
return $loaderPosition === 'right' ? '4px' : '0';
|
|
3107
3107
|
}, function (_ref6) {
|
|
3108
|
-
var loaderPosition = _ref6
|
|
3109
|
-
return loaderPosition === 'left' ? '4px' : '0';
|
|
3108
|
+
var $loaderPosition = _ref6.$loaderPosition;
|
|
3109
|
+
return $loaderPosition === 'left' ? '4px' : '0';
|
|
3110
3110
|
});
|
|
3111
3111
|
var Container$1 = styled__default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n svg {\n cursor: ", ";\n }\n"])), function (_ref7) {
|
|
3112
|
-
var iconPosition = _ref7
|
|
3113
|
-
return iconPosition === 'right' ? 'row-reverse' : 'row';
|
|
3112
|
+
var $iconPosition = _ref7.$iconPosition;
|
|
3113
|
+
return $iconPosition === 'right' ? 'row-reverse' : 'row';
|
|
3114
3114
|
}, function (_ref8) {
|
|
3115
3115
|
var gap = _ref8.gap;
|
|
3116
3116
|
return gap || '4px';
|
|
@@ -3164,20 +3164,20 @@ var StyledButton = styled__default.button(_templateObject5 || (_templateObject5
|
|
|
3164
3164
|
return color;
|
|
3165
3165
|
});
|
|
3166
3166
|
var ButtonText = styled__default.span(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n white-space: nowrap;\n"])), function (_ref16) {
|
|
3167
|
-
var fontFamily = _ref16
|
|
3168
|
-
return fontFamily ? fontFamily : GlobalFonts.bold;
|
|
3167
|
+
var $fontFamily = _ref16.$fontFamily;
|
|
3168
|
+
return $fontFamily ? $fontFamily : GlobalFonts.bold;
|
|
3169
3169
|
}, function (_ref17) {
|
|
3170
|
-
var size = _ref17
|
|
3171
|
-
fontSize = _ref17
|
|
3172
|
-
return size === 'small' ? '14px' : size === 'medium' ? '16px' : size === 'large' ? '18px' : size === 'custom' ? fontSize : '16px';
|
|
3170
|
+
var $size = _ref17.$size,
|
|
3171
|
+
$fontSize = _ref17.$fontSize;
|
|
3172
|
+
return $size === 'small' ? '14px' : $size === 'medium' ? '16px' : $size === 'large' ? '18px' : $size === 'custom' ? $fontSize : '16px';
|
|
3173
3173
|
}, function (_ref18) {
|
|
3174
|
-
var fontWeight = _ref18
|
|
3175
|
-
size = _ref18
|
|
3176
|
-
return size === 'custom' && fontWeight || '500';
|
|
3174
|
+
var $fontWeight = _ref18.$fontWeight,
|
|
3175
|
+
$size = _ref18.$size;
|
|
3176
|
+
return $size === 'custom' && $fontWeight || '500';
|
|
3177
3177
|
}, function (_ref19) {
|
|
3178
|
-
var size = _ref19
|
|
3179
|
-
fontSize = _ref19
|
|
3180
|
-
return size === 'small' ? '14px' : size === 'medium' ? '16px' : size === 'large' ? '18px' : size === 'custom' ? fontSize : '16px';
|
|
3178
|
+
var $size = _ref19.$size,
|
|
3179
|
+
$fontSize = _ref19.$fontSize;
|
|
3180
|
+
return $size === 'small' ? '14px' : $size === 'medium' ? '16px' : $size === 'large' ? '18px' : $size === 'custom' ? $fontSize : '16px';
|
|
3181
3181
|
});
|
|
3182
3182
|
var ButtonComponent = function ButtonComponent(_ref20) {
|
|
3183
3183
|
var onClick = _ref20.onClick,
|
|
@@ -3235,7 +3235,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
3235
3235
|
return setIsHovered(false);
|
|
3236
3236
|
}
|
|
3237
3237
|
}, React__default.createElement(Container$1, {
|
|
3238
|
-
iconPosition: iconPos,
|
|
3238
|
+
"$iconPosition": iconPos,
|
|
3239
3239
|
gap: gap,
|
|
3240
3240
|
cursor: !disabled && typeof onClick === 'function' ? 'pointer' : 'default'
|
|
3241
3241
|
}, icon && React__default.createElement(Icon, {
|
|
@@ -3250,15 +3250,15 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
3250
3250
|
},
|
|
3251
3251
|
color: variant === 'tertiary' && isHovered ? colorVariables.hover.primary : variant === 'tertiary' && disabled ? colorVariables.disabled.primary : variant === 'tertiary' ? colorVariables["default"].primary : variant === 'outline-primary' && isHovered ? colorVariables.text.white : variant === 'outline-primary' && disabled ? colorVariables.disabled.primary : variant === 'outline-primary' ? colorVariables["default"].primary : variant === 'outline-secondary' && isHovered ? colorVariables.text.white : variant === 'outline-secondary' && disabled ? colorVariables.disabled.secondary : variant === 'outline-secondary' ? colorVariables["default"].secondary : variant === 'outline-error' && isHovered ? colorVariables.text.white : variant === 'outline-error' && disabled ? colorVariables.disabled.error : variant === 'outline-error' ? colorVariables["default"].error : isHovered ? hoverColor : color ? color : colorVariables.text.white
|
|
3252
3252
|
}), text && React__default.createElement(ButtonText, {
|
|
3253
|
-
size: size,
|
|
3254
|
-
fontFamily: fontFamily,
|
|
3255
|
-
fontSize: fontSize,
|
|
3256
|
-
fontWeight: fontWeight
|
|
3253
|
+
"$size": size,
|
|
3254
|
+
"$fontFamily": fontFamily,
|
|
3255
|
+
"$fontSize": fontSize,
|
|
3256
|
+
"$fontWeight": fontWeight
|
|
3257
3257
|
}, text)), loaderProps.loading && React__default.createElement(LoaderWrapper, {
|
|
3258
|
-
loaderPosition: loaderPos
|
|
3258
|
+
"$loaderPosition": loaderPos
|
|
3259
3259
|
}, React__default.createElement(Spinner, {
|
|
3260
|
-
size: size === 'small' ? 12 : size === 'medium' ? 16 : 18,
|
|
3261
|
-
color: loaderProps.loaderColor || 'color'
|
|
3260
|
+
"$size": size === 'small' ? 12 : size === 'medium' ? 16 : 18,
|
|
3261
|
+
"$color": loaderProps.loaderColor || 'color'
|
|
3262
3262
|
})));
|
|
3263
3263
|
};
|
|
3264
3264
|
|