@edvisor/product-language 0.10.3 → 0.10.4

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 CHANGED
@@ -6534,7 +6534,7 @@ const SpinnerValues = {
6534
6534
  /* SpinnerSize.large */
6535
6535
  ]: '60px'
6536
6536
  };
6537
- function getValuesBySize$2(props) {
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$2(props);
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),
@@ -7799,7 +7799,7 @@ const ThumbnailSizeValues = {
7799
7799
  /* ThumbnailSize.large */
7800
7800
  ]: '80px'
7801
7801
  };
7802
- function getValuesBySize$1(props) {
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$1(props);
7824
+ const size = getValuesBySize$2(props);
7825
7825
 
7826
7826
  if (isNil(imageUrl)) {
7827
7827
  return jsx(Nothing, {});
@@ -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 };
@@ -20,5 +20,6 @@ export * from './tooltip';
20
20
  export * from './date-picker';
21
21
  export * from './range-slider';
22
22
  export * from './modal';
23
+ export * from './progress-bar';
23
24
  export * from './molecules';
24
25
  export * from './organisms';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edvisor/product-language",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "license": "MIT",
5
5
  "description": "Edvisor.io product-language components",
6
6
  "repository": "https://github.com/edvisor-io/front-end/",