@edvisor/product-language 0.10.3 → 0.10.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/index.js +75 -7
- package/lib/components/index.d.ts +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6534,7 +6534,7 @@ const SpinnerValues = {
|
|
|
6534
6534
|
/* SpinnerSize.large */
|
|
6535
6535
|
]: '60px'
|
|
6536
6536
|
};
|
|
6537
|
-
function getValuesBySize$
|
|
6537
|
+
function getValuesBySize$3(props) {
|
|
6538
6538
|
return SpinnerValues[toSpinner(bitwiseOr$1([props.small, props.medium, props.large]))];
|
|
6539
6539
|
}
|
|
6540
6540
|
|
|
@@ -6551,7 +6551,7 @@ const Spin = /*#__PURE__*/styled.div.withConfig({
|
|
|
6551
6551
|
$onCritical
|
|
6552
6552
|
}) => $onPrimary || $onCritical ? Icons.OnPrimary : Icons.Default, spinAnimation);
|
|
6553
6553
|
const Spinner = props => {
|
|
6554
|
-
const size = getValuesBySize$
|
|
6554
|
+
const size = getValuesBySize$3(props);
|
|
6555
6555
|
return jsx(Spin, Object.assign({
|
|
6556
6556
|
"$onPrimary": is(props.onPrimary),
|
|
6557
6557
|
"$onCritical": is(props.onCritical),
|
|
@@ -6565,7 +6565,7 @@ const Spinner = props => {
|
|
|
6565
6565
|
const ButtonFrame = /*#__PURE__*/styled.button.withConfig({
|
|
6566
6566
|
displayName: "button__ButtonFrame",
|
|
6567
6567
|
componentId: "v4884z-0"
|
|
6568
|
-
})(["padding:", ";border:", ";border-radius:6px;background:", ";cursor:", ";display:flex;flex-direction:row;justify-content:center;gap:8px;align-items:center;position:relative;svg[role='icon']{path{fill:", ";}}", ""], props => props.buttonSize, props => props.buttonBorder, props => props.backgroundColor, props => props.cursor, props => props.iconColor, props => !props.isDisabled && css(["&:hover{background:", ";text-decoration:", ";div{color:", ";}svg[role='icon']{path{fill:", ";}}}outline-offset:-2px;&:focus,focus-visible{outline:2px solid ", ";}&:active{text-decoration:'none';background:", ";}"], props.backgroundHover, props.textDecorationHover, props.textColorHover, props.iconColorHover, Focused.Default, props.backgroundPressed));
|
|
6568
|
+
})(["padding:", ";border:", ";border-radius:6px;background:", ";cursor:", ";display:flex;flex-direction:row;justify-content:center;gap:8px;align-items:center;position:relative;svg[role='icon']{path{fill:", ";}}", ""], props => props.buttonSize, props => props.buttonBorder, props => props.backgroundColor, props => props.cursor, props => props.iconColor, props => !props.isDisabled && css(["&:hover{background:", ";color:", ";text-decoration:", ";div{color:", ";}svg[role='icon']{path{fill:", ";}}}outline-offset:-2px;&:focus,focus-visible{outline:2px solid ", ";}&:active{text-decoration:'none';background:", ";}"], props.backgroundHover, props.textColorHover, props.textDecorationHover, props.textColorHover, props.iconColorHover, Focused.Default, props.backgroundPressed));
|
|
6569
6569
|
const ButtonText = /*#__PURE__*/styled(Label$1).withConfig({
|
|
6570
6570
|
displayName: "button__ButtonText",
|
|
6571
6571
|
componentId: "v4884z-1"
|
|
@@ -7799,7 +7799,7 @@ const ThumbnailSizeValues = {
|
|
|
7799
7799
|
/* ThumbnailSize.large */
|
|
7800
7800
|
]: '80px'
|
|
7801
7801
|
};
|
|
7802
|
-
function getValuesBySize$
|
|
7802
|
+
function getValuesBySize$2(props) {
|
|
7803
7803
|
return ThumbnailSizeValues[toThumbnailSize(bitwiseOr$1([props.small, props.medium, props.large]))];
|
|
7804
7804
|
}
|
|
7805
7805
|
|
|
@@ -7821,7 +7821,7 @@ const Thumbnail = props => {
|
|
|
7821
7821
|
imageLabel = imageUrl,
|
|
7822
7822
|
className = ''
|
|
7823
7823
|
} = props;
|
|
7824
|
-
const size = getValuesBySize$
|
|
7824
|
+
const size = getValuesBySize$2(props);
|
|
7825
7825
|
|
|
7826
7826
|
if (isNil(imageUrl)) {
|
|
7827
7827
|
return jsx(Nothing, {});
|
|
@@ -9921,7 +9921,7 @@ const TreeView = props => {
|
|
|
9921
9921
|
expanded: expandedList
|
|
9922
9922
|
});
|
|
9923
9923
|
return _nodeList;
|
|
9924
|
-
}, [nodes]);
|
|
9924
|
+
}, [nodes, checkedList]);
|
|
9925
9925
|
|
|
9926
9926
|
const handleOnCheck = nodeInfo => {
|
|
9927
9927
|
const {
|
|
@@ -11035,6 +11035,74 @@ const ModalDestructive = props => {
|
|
|
11035
11035
|
}));
|
|
11036
11036
|
};
|
|
11037
11037
|
|
|
11038
|
+
function toProgressBarSize(n) {
|
|
11039
|
+
switch (n) {
|
|
11040
|
+
case 2
|
|
11041
|
+
/* ProgressBarSize.medium */
|
|
11042
|
+
:
|
|
11043
|
+
return 2
|
|
11044
|
+
/* ProgressBarSize.medium */
|
|
11045
|
+
;
|
|
11046
|
+
|
|
11047
|
+
case 4
|
|
11048
|
+
/* ProgressBarSize.large */
|
|
11049
|
+
:
|
|
11050
|
+
return 4
|
|
11051
|
+
/* ProgressBarSize.large */
|
|
11052
|
+
;
|
|
11053
|
+
|
|
11054
|
+
case 1
|
|
11055
|
+
/* ProgressBarSize.small */
|
|
11056
|
+
:
|
|
11057
|
+
default:
|
|
11058
|
+
return 1
|
|
11059
|
+
/* ProgressBarSize.small */
|
|
11060
|
+
;
|
|
11061
|
+
}
|
|
11062
|
+
}
|
|
11063
|
+
|
|
11064
|
+
const ProgressBarValues = {
|
|
11065
|
+
[1
|
|
11066
|
+
/* ProgressBarSize.small */
|
|
11067
|
+
]: '8px',
|
|
11068
|
+
[2
|
|
11069
|
+
/* ProgressBarSize.medium */
|
|
11070
|
+
]: '16px',
|
|
11071
|
+
[4
|
|
11072
|
+
/* ProgressBarSize.large */
|
|
11073
|
+
]: '32px'
|
|
11074
|
+
};
|
|
11075
|
+
function getValuesBySize$1(props) {
|
|
11076
|
+
return ProgressBarValues[toProgressBarSize(bitwiseOr$1([props.small, props.medium, props.large]))];
|
|
11077
|
+
}
|
|
11078
|
+
|
|
11079
|
+
const ProgressContainerBar = /*#__PURE__*/styled.div.withConfig({
|
|
11080
|
+
displayName: "progress-bar__ProgressContainerBar",
|
|
11081
|
+
componentId: "v5hj2u-0"
|
|
11082
|
+
})(["background-color:", ";width:100%;height:fit-content;border-radius:6px;overflow:hidden;"], Surface.Neutral.Default);
|
|
11083
|
+
const ProgressContentBar = /*#__PURE__*/styled.div.withConfig({
|
|
11084
|
+
displayName: "progress-bar__ProgressContentBar",
|
|
11085
|
+
componentId: "v5hj2u-1"
|
|
11086
|
+
})(["background-color:", ";height:", ";width:", "%;border-radius:6px;"], Actions.Primary.Default, ({
|
|
11087
|
+
size
|
|
11088
|
+
}) => size, ({
|
|
11089
|
+
progress
|
|
11090
|
+
}) => progress);
|
|
11091
|
+
const ProgressBar = props => {
|
|
11092
|
+
const size = getValuesBySize$1(props);
|
|
11093
|
+
const {
|
|
11094
|
+
progress = 0
|
|
11095
|
+
} = props;
|
|
11096
|
+
return jsx(ProgressContainerBar, {
|
|
11097
|
+
children: jsx(ProgressContentBar, {
|
|
11098
|
+
size: size,
|
|
11099
|
+
"aria-valuenow": progress,
|
|
11100
|
+
progress: progress,
|
|
11101
|
+
role: "progressbar"
|
|
11102
|
+
})
|
|
11103
|
+
});
|
|
11104
|
+
};
|
|
11105
|
+
|
|
11038
11106
|
// this file was generated, but it is safe to modify
|
|
11039
11107
|
|
|
11040
11108
|
function toAvatarSize(n) {
|
|
@@ -11268,4 +11336,4 @@ const ChoiceList = props => {
|
|
|
11268
11336
|
});
|
|
11269
11337
|
};
|
|
11270
11338
|
|
|
11271
|
-
export { Actions, AlertBanner, Avatar, BODY, BODY_LARGE, Background, Badge, Body, BodyLarge, Borders, Button, CAPTION, Caption, Card, CardFrame$1 as CardFrame, Center, CenterContainer, Checkbox, ChoiceList, DatePicker, Display, Divider, Flag, Flex, Focused, Gap, HTMLAnchor, HTMLInput, Heading1, Heading2, Heading3, Heading4, Icon, IconMinor, Icons, InputCheckbox, InputField$1 as InputField, InputNumber, InputText, Interactive, LABEL, Label$1 as Label, LeftRightCard, Link, MODAL_SIZE, MODAL_SIZE_TEXT, Margin, MenuList, Modal, ModalBase, ModalDestructive, MultiChoiceList, Padding, Radio, RadioButton$1 as RadioButton, RangeSlider, Select, Slider, SpaceAround, SpaceBetween, Spinner, Surface, Tab$1 as Tab, Tabs, Tag, Text$1 as Text, Thumbnail, Tooltip, TooltipBox, TooltipPosition, TooltipWrapper, TreeView, Typography, _Typography, gridLayoutGenerator, leftRightLayoutGenerator, shadow, shadow2Xl, shadowInner, shadowLg, shadowMd, shadowSm, shadowXl };
|
|
11339
|
+
export { Actions, AlertBanner, Avatar, BODY, BODY_LARGE, Background, Badge, Body, BodyLarge, Borders, Button, CAPTION, Caption, Card, CardFrame$1 as CardFrame, Center, CenterContainer, Checkbox, ChoiceList, DatePicker, Display, Divider, Flag, Flex, Focused, Gap, HTMLAnchor, HTMLInput, Heading1, Heading2, Heading3, Heading4, Icon, IconMinor, Icons, InputCheckbox, InputField$1 as InputField, InputNumber, InputText, Interactive, LABEL, Label$1 as Label, LeftRightCard, Link, MODAL_SIZE, MODAL_SIZE_TEXT, Margin, MenuList, Modal, ModalBase, ModalDestructive, MultiChoiceList, Padding, ProgressBar, Radio, RadioButton$1 as RadioButton, RangeSlider, Select, Slider, SpaceAround, SpaceBetween, Spinner, Surface, Tab$1 as Tab, Tabs, Tag, Text$1 as Text, Thumbnail, Tooltip, TooltipBox, TooltipPosition, TooltipWrapper, TreeView, Typography, _Typography, gridLayoutGenerator, leftRightLayoutGenerator, shadow, shadow2Xl, shadowInner, shadowLg, shadowMd, shadowSm, shadowXl };
|