@edvisor/product-language 0.5.6 → 0.6.0

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
@@ -3889,7 +3889,7 @@ const BodyLarge$1 = /*#__PURE__*/css(["", " font-weight:", ";font-size:", ";line
3889
3889
  const Caption$1 = /*#__PURE__*/css(["", " font-weight:", ";font-size:", ";line-height:", ";"], Base, "400"
3890
3890
  /* FontWeight.Regular */
3891
3891
  , FontSize.a, LineHeight.a);
3892
- const Label$1 = /*#__PURE__*/css(["", " font-weight:", ";font-size:", ";line-height:", ";"], Base, ({
3892
+ const Label$2 = /*#__PURE__*/css(["", " font-weight:", ";font-size:", ";line-height:", ";"], Base, ({
3893
3893
  strong
3894
3894
  }) => is(strong) ? "500"
3895
3895
  /* FontWeight.Medium */
@@ -3909,7 +3909,7 @@ const Typography = {
3909
3909
  Body: Body$1,
3910
3910
  BodyLarge: BodyLarge$1,
3911
3911
  Caption: Caption$1,
3912
- Label: Label$1
3912
+ Label: Label$2
3913
3913
  };
3914
3914
  const _Typography = {
3915
3915
  LightText
@@ -4276,13 +4276,13 @@ const LABEL = /*#__PURE__*/styled.div.withConfig({
4276
4276
  displayName: "typography__LABEL",
4277
4277
  componentId: "sc-5x0jko-8"
4278
4278
  })(["", ";"], Typography.Label);
4279
- const Label = props => {
4279
+ const Label$1 = props => {
4280
4280
  return jsx(LABEL, Object.assign({}, toTransientProps(props), {
4281
4281
  children: props.children
4282
4282
  }));
4283
4283
  };
4284
4284
 
4285
- const BadgeFrame = /*#__PURE__*/styled(Label).withConfig({
4285
+ const BadgeFrame = /*#__PURE__*/styled(Label$1).withConfig({
4286
4286
  displayName: "badge__BadgeFrame",
4287
4287
  componentId: "sc-1sf22cn-0"
4288
4288
  })(["background:", ";display:flex;align-items:center;padding:", " ", ";border-radius:10px;height:fit-content;"], props => props.color, Padding.xxxs, Padding.xs);
@@ -4648,6 +4648,39 @@ const Checkbox = props => {
4648
4648
  }));
4649
4649
  };
4650
4650
 
4651
+ const Radio = /*#__PURE__*/styled.input.withConfig({
4652
+ displayName: "radio-button__Radio",
4653
+ componentId: "sc-127jmot-0"
4654
+ })(["-webkit-appearance:none;appearance:none;margin:", ";width:1.5em;height:1.5em;border:2px solid ", ";border-radius:50%;transition:all 0.1s ease-in-out;cursor:pointer;::after{content:\"\";display:block;border-radius:50%;width:0.75em;height:0.75em;margin:", "px;}:checked{border-color:", ";::after{background-color:", ";}:hover{background-color:", ";border:2px solid ", ";::after{background-color:", ";}}}:hover{::after{background-color:", ";}}:focus{outline:2px auto ", ";outline-offset:4px;}:disabled{cursor:not-allowed;border:2px solid ", ";background-color:", ";:hover{::after{background-color:", ";}}:checked{::after{background-color:", ";}:hover{border-color:", ";background-color:", ";::after{background-color:", ";}}}}"], Margin.none, Borders.Default.Dark, 3, Borders.Highlight.Default, Icons.Highlight, Surface.Default.Default, Icons.Highlight, Icons.Highlight, Focused.Default, Focused.Default, Borders.Default.Default, Surface.Default.Default, Surface.Default.Default, Borders.Default.Default, Borders.Default.Default, Surface.Default.Default, Borders.Default.Default);
4655
+ const Label = /*#__PURE__*/styled.label.withConfig({
4656
+ displayName: "radio-button__Label",
4657
+ componentId: "sc-127jmot-1"
4658
+ })(["", " padding:", " ", ";display:flex;align-items:center;width:fit-content;cursor:", ";"], Typography.Label, Padding.xxs, Padding.none, props => is(props.disabled) ? 'not-allowed' : 'pointer');
4659
+ const LabelText$2 = /*#__PURE__*/styled.span.withConfig({
4660
+ displayName: "radio-button__LabelText",
4661
+ componentId: "sc-127jmot-2"
4662
+ })(["margin-left:", ";"], Margin.xs);
4663
+ const RadioButton$1 = props => {
4664
+ const {
4665
+ className,
4666
+ label,
4667
+ disabled
4668
+ } = props,
4669
+ htmlProps = __rest(props, ["className", "label", "disabled"]);
4670
+
4671
+ return jsxs(Label, Object.assign({
4672
+ disabled: is(disabled),
4673
+ className: className
4674
+ }, {
4675
+ children: [jsx(Radio, Object.assign({
4676
+ type: "radio",
4677
+ disabled: disabled
4678
+ }, htmlProps)), jsx(LabelText$2, {
4679
+ children: label
4680
+ })]
4681
+ }));
4682
+ };
4683
+
4651
4684
  // this file was generated, but it is safe to modify
4652
4685
 
4653
4686
  function toDividerType(n) {
@@ -6027,7 +6060,7 @@ const HTMLLabel = /*#__PURE__*/styled.label.withConfig({
6027
6060
  displayName: "labeled-input__HTMLLabel",
6028
6061
  componentId: "a0ln2j-0"
6029
6062
  })(["all:unset;"]);
6030
- const LabelText$1 = /*#__PURE__*/styled(Label).withConfig({
6063
+ const LabelText$1 = /*#__PURE__*/styled(Label$1).withConfig({
6031
6064
  displayName: "labeled-input__LabelText",
6032
6065
  componentId: "a0ln2j-1"
6033
6066
  })(["margin-bottom:", ";"], Margin.xxs);
@@ -6096,11 +6129,11 @@ const Stepper = props => {
6096
6129
  const FancyBorder = /*#__PURE__*/styled(SpaceBetween).withConfig({
6097
6130
  displayName: "input-field__FancyBorder",
6098
6131
  componentId: "sc-1yq0rb7-0"
6099
- })(["background:", ";border:1px solid ", ";border-radius:6px;box-sizing:border-box;margin-bottom:", ";padding-left:", ";user-select:none;outline-offset:-2px;", "}"], ({
6132
+ })(["background:", ";border:1px solid ", ";border-radius:6px;box-sizing:border-box;padding-left:", ";user-select:none;outline-offset:-2px;", "}"], ({
6100
6133
  invalid
6101
6134
  }) => is(invalid) ? Surface.Critical.Subdued : Surface.Default.Default, ({
6102
6135
  invalid
6103
- }) => is(invalid) ? Borders.Critical.Default : Borders.Default.Default, Margin.xxs, Padding.s, ({
6136
+ }) => is(invalid) ? Borders.Critical.Default : Borders.Default.Default, Padding.s, ({
6104
6137
  invalid
6105
6138
  }) => !is(invalid) && css([":focus,:focus-within,:active{outline:2px solid ", "}"], Focused.Default));
6106
6139
  const InputLayout = /*#__PURE__*/styled(Flex).withConfig({
@@ -6111,11 +6144,11 @@ const HTMLInput = /*#__PURE__*/styled.input.withConfig({
6111
6144
  displayName: "input-field__HTMLInput",
6112
6145
  componentId: "sc-1yq0rb7-2"
6113
6146
  })(["all:unset;cursor:auto;padding:", " ", " ", " ", ";width:100%;::-webkit-inner-spin-button{-webkit-appearance:none;margin:", ";}", "::placeholder{", "}"], Padding.none, Padding.none, Padding.xs, Padding.none, Margin.none, Typography.Body, _Typography.LightText);
6114
- const PrefixFrame = /*#__PURE__*/styled(Label).withConfig({
6147
+ const PrefixFrame = /*#__PURE__*/styled(Label$1).withConfig({
6115
6148
  displayName: "input-field__PrefixFrame",
6116
6149
  componentId: "sc-1yq0rb7-3"
6117
6150
  })(["margin-right:", ";"], Margin.xs);
6118
- const SuffixFrame = /*#__PURE__*/styled(Label).withConfig({
6151
+ const SuffixFrame = /*#__PURE__*/styled(Label$1).withConfig({
6119
6152
  displayName: "input-field__SuffixFrame",
6120
6153
  componentId: "sc-1yq0rb7-4"
6121
6154
  })(["margin-right:", ";"], Margin.xs);
@@ -6132,7 +6165,7 @@ const ControlsFrame = /*#__PURE__*/styled(Flex).withConfig({
6132
6165
  displayName: "input-field__ControlsFrame",
6133
6166
  componentId: "sc-1yq0rb7-6"
6134
6167
  })(["margin-right:", ";"], Margin.s);
6135
- const InputLabel = /*#__PURE__*/styled(Label).withConfig({
6168
+ const InputLabel = /*#__PURE__*/styled(Label$1).withConfig({
6136
6169
  displayName: "input-field__InputLabel",
6137
6170
  componentId: "sc-1yq0rb7-7"
6138
6171
  })(["margin-bottom:", ";"], Margin.xxs);
@@ -6426,7 +6459,7 @@ const LabelFrame = /*#__PURE__*/styled(Flex).withConfig({
6426
6459
  displayName: "tag-label__LabelFrame",
6427
6460
  componentId: "sc-1auf6nr-0"
6428
6461
  })(["background:", ";flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:", " ", " ", " ", ";width:100%;min-height:24px;border-radius:", ";word-break:break-all;"], props => props.disabled ? Surface.Neutral.Subdued : Surface.Neutral.Default, Padding.xxxs, Padding.xs, Padding.xxxs, Padding.xs, props => props.closable ? '4px 0px 0px 4px' : '4px');
6429
- const LabelText = /*#__PURE__*/styled(Label).withConfig({
6462
+ const LabelText = /*#__PURE__*/styled(Label$1).withConfig({
6430
6463
  displayName: "tag-label__LabelText",
6431
6464
  componentId: "sc-1auf6nr-1"
6432
6465
  })(["color:", ";"], props => props.disabled ? Text$1.Light : Text$1.Default);
@@ -6611,7 +6644,7 @@ const Tab$1 = props => {
6611
6644
  style: {
6612
6645
  marginRight: Margin.xs
6613
6646
  }
6614
- }) : jsx(Nothing, {}), jsx(Label, Object.assign({
6647
+ }) : jsx(Nothing, {}), jsx(Label$1, Object.assign({
6615
6648
  strong: true,
6616
6649
  subdued: !selected
6617
6650
  }, {
@@ -7669,7 +7702,7 @@ const OptionComponent = /*#__PURE__*/memo(props => {
7669
7702
  option,
7670
7703
  height
7671
7704
  } = props;
7672
- const SelectLabel = isDefined(labelComponent) ? labelComponent : Label;
7705
+ const SelectLabel = isDefined(labelComponent) ? labelComponent : Label$1;
7673
7706
  const className = ['option', props.className, is(selected) ? 'selected' : '', is(active) ? 'active' : ''].filter(v => Boolean(v));
7674
7707
  return jsxs(OptionItem, Object.assign({
7675
7708
  className: className.join(' '),
@@ -7692,11 +7725,7 @@ const OptionComponent = /*#__PURE__*/memo(props => {
7692
7725
  const MenuWrapper = /*#__PURE__*/styled.div.withConfig({
7693
7726
  displayName: "menu-container__MenuWrapper",
7694
7727
  componentId: "dadn7s-0"
7695
- })(["z-index:1;position:relative;background:", ";top:", ";box-sizing:border-box;.menu-list{box-sizing:border-box;box-shadow:", ";border:1px solid ", ";background-color:", ";border-radius:6px;opacity:0;transition:opacity 0.1s ease;padding:", ";&:focus{outline:none;}::-webkit-scrollbar{width:6px;height:8px;}::-webkit-scrollbar-thumb{border-radius:4px;background:", ";min-height:50px;}}"], Surface.Default.Default, ({
7696
- props
7697
- }) => topPosition(props), ({
7698
- props
7699
- }) => props.menuPosition === "bottom"
7728
+ })(["z-index:1;position:relative;background:", ";top:", ";box-sizing:border-box;.menu-list{box-sizing:border-box;box-shadow:", ";border:1px solid ", ";background-color:", ";border-radius:6px;opacity:0;transition:opacity 0.1s ease;padding:", ";&:focus{outline:none;}::-webkit-scrollbar{width:6px;height:8px;}::-webkit-scrollbar-thumb{border-radius:4px;background:", ";min-height:50px;}}"], Surface.Default.Default, props => topPosition(props), props => props.menuPosition === "bottom"
7700
7729
  /* menuPositionType.BOTTOM */
7701
7730
  ? '0px 2px 10px 0px rgba(0, 0, 0, 0.10)' : '0px -2px 10px 0px rgba(0, 0, 0, 0.10)', Borders.Default.Subdued, Surface.Default.Default, Padding.xxs, Surface.Neutral.Default);
7702
7731
  const MenuContainer = props => {
@@ -7708,9 +7737,8 @@ const MenuContainer = props => {
7708
7737
  return jsx(MenuWrapper, Object.assign({
7709
7738
  "data-role": "menu",
7710
7739
  className: className,
7711
- props: props,
7712
7740
  onClick: onClick
7713
- }, {
7741
+ }, props, {
7714
7742
  children: children
7715
7743
  }));
7716
7744
  };
@@ -7792,7 +7820,7 @@ const MenuRow$1 = /*#__PURE__*/memo(({
7792
7820
  }));
7793
7821
  }, areEqual);
7794
7822
 
7795
- const SelectLabel = /*#__PURE__*/styled(Label).withConfig({
7823
+ const SelectLabel = /*#__PURE__*/styled(Label$1).withConfig({
7796
7824
  displayName: "select-label__SelectLabel",
7797
7825
  componentId: "j60pki-0"
7798
7826
  })(["overflow:hidden;white-space:nowrap;text-overflow:ellipsis;user-select:none;box-sizing:border-box;"]);
@@ -8514,7 +8542,7 @@ const ButtonFrame = /*#__PURE__*/styled.button.withConfig({
8514
8542
  displayName: "button__ButtonFrame",
8515
8543
  componentId: "v4884z-0"
8516
8544
  })(["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));
8517
- const ButtonText = /*#__PURE__*/styled(Label).withConfig({
8545
+ const ButtonText = /*#__PURE__*/styled(Label$1).withConfig({
8518
8546
  displayName: "button__ButtonText",
8519
8547
  componentId: "v4884z-1"
8520
8548
  })(["color:", ";", ""], props => props.textColorDisabled !== '' ? props.textColorDisabled : props.textColor, props => props.isLoading ? `
@@ -8615,7 +8643,7 @@ const Button = props => {
8615
8643
  const ValueContainer = /*#__PURE__*/styled(SpaceBetween).withConfig({
8616
8644
  displayName: "value__ValueContainer",
8617
8645
  componentId: "sc-1aps7dx-0"
8618
- })(["pointer-events:", ";padding:", " ", ";background:", ";cursor:default;border:1px solid ", ";z-index:0;border-radius:6px;outline-offset:-2px;", " ", " ", ""], props => is(props.disabled) ? 'none' : 'auto', Padding.xs, Padding.none, props => is(props.invalid) ? Surface.Critical.Subdued : Surface.Default.Default, props => is(props.invalid) ? Borders.Critical.Default : Borders.Default.Default, props => is(props.hasLabel) && css(["& div:first-of-type{align-self:flex-start;}"]), props => is(props.menuIsOpen) && css(["outline:2px solid ", ";"], Focused.Default), props => !is(props.disabled) && !is(props.invalid) && `
8646
+ })(["pointer-events:", ";padding:", " ", " ", " ", ";background:", ";cursor:default;border:1px solid ", ";z-index:0;border-radius:6px;outline-offset:-2px;", " ", " ", ""], props => is(props.disabled) ? 'none' : 'auto', Padding.xs, Padding.none, Padding.none, Padding.none, props => is(props.invalid) ? Surface.Critical.Subdued : Surface.Default.Default, props => is(props.invalid) ? Borders.Critical.Default : Borders.Default.Default, props => is(props.hasLabel) && css(["& div:first-of-type{align-self:flex-start;}"]), props => is(props.menuIsOpen) && css(["outline:2px solid ", ";"], Focused.Default), props => !is(props.disabled) && !is(props.invalid) && `
8619
8647
 
8620
8648
  &:focus {
8621
8649
  outline: 2px solid ${Focused.Default}
@@ -8628,16 +8656,16 @@ const ValueContainer = /*#__PURE__*/styled(SpaceBetween).withConfig({
8628
8656
  const ValueWrapper$1 = /*#__PURE__*/styled(Flex).withConfig({
8629
8657
  displayName: "value__ValueWrapper",
8630
8658
  componentId: "sc-1aps7dx-1"
8631
- })(["width:100%;display:", ";"], ({
8659
+ })(["width:100%;padding-bottom:", ";display:", ";"], Padding.xs, ({
8632
8660
  label,
8633
8661
  labelPosition
8634
8662
  }) => isDefined(label) && !isEmpty(label) && labelPosition === "top"
8635
8663
  /* labelPositionType.TOP */
8636
8664
  ? 'block' : 'flex');
8637
- const ValueLabel = /*#__PURE__*/styled(Label).withConfig({
8665
+ const ValueLabel = /*#__PURE__*/styled(Label$1).withConfig({
8638
8666
  displayName: "value__ValueLabel",
8639
8667
  componentId: "sc-1aps7dx-2"
8640
- })(["padding-left:", ";width:fit-content;white-space:pre;", ""], Padding.xs, ({
8668
+ })(["padding-left:", ";margin-bottom:", ";width:fit-content;white-space:pre;", ""], Padding.xs, Margin.xxs, ({
8641
8669
  labelPosition
8642
8670
  }) => labelPosition === "top"
8643
8671
  /* labelPositionType.TOP */
@@ -8650,7 +8678,7 @@ const ValueRight = /*#__PURE__*/styled(Flex).withConfig({
8650
8678
  displayName: "value__ValueRight",
8651
8679
  componentId: "sc-1aps7dx-4"
8652
8680
  })(["padding-right:", ";pointer-events:none;"], Padding.xxs);
8653
- const Placeholder = /*#__PURE__*/styled(Label).withConfig({
8681
+ const Placeholder = /*#__PURE__*/styled(Label$1).withConfig({
8654
8682
  displayName: "value__Placeholder",
8655
8683
  componentId: "sc-1aps7dx-5"
8656
8684
  })(["pointer-events:none;color:", ";"], Text$1.Light);
@@ -8724,6 +8752,7 @@ const Value = props => {
8724
8752
  const renderLabel = () => {
8725
8753
  return maybeRender(label, jsx(ValueLabel, Object.assign({
8726
8754
  labelPosition: labelPosition,
8755
+ subtle: true,
8727
8756
  subdued: true
8728
8757
  }, {
8729
8758
  children: label
@@ -9167,7 +9196,7 @@ const MenuRow = /*#__PURE__*/styled(SpaceBetween).withConfig({
9167
9196
  displayName: "menu-list__MenuRow",
9168
9197
  componentId: "sxh4rn-1"
9169
9198
  })([" border:none;text-align:left;padding:", ";margin:", " ", ";background-color:", ";border-radius:6px;i:first-child{align-self:start;margin-right:", ";}i:last-child{align-self:center;}&:first-of-type{margin-top:", ";}&:last-of-type{margin-bottom:", ";}&:hover{background-color:", ";}&:hover{background-color:", ";}&:active{background-color:", ";}"], Padding.s, Margin.none, Margin.xxs, props => is(props.active) ? Surface.Selected.Default : Surface.Default.Default, Margin.xs, Margin.xxs, Margin.xxs, Surface.Default.Hover, props => is(props.active) ? Surface.Selected.Hover : Surface.Default.Hover, props => is(props.active) ? Surface.Selected.Pressed : Surface.Default.Pressed);
9170
- const OptionLabel = /*#__PURE__*/styled(Label).withConfig({
9199
+ const OptionLabel = /*#__PURE__*/styled(Label$1).withConfig({
9171
9200
  displayName: "menu-list__OptionLabel",
9172
9201
  componentId: "sxh4rn-2"
9173
9202
  })(["cursor:pointer;"]);
@@ -9263,10 +9292,12 @@ const ItemWrapper = /*#__PURE__*/styled(Flex).withConfig({
9263
9292
  displayName: "tree-node__ItemWrapper",
9264
9293
  componentId: "sc-1wjf7p9-1"
9265
9294
  })(["align-items:center;padding:", " ", ";gap:8px;flex:none;order:0;align-self:stretch;flex-grow:0;"], Padding.xxxs, Padding.none);
9266
- const ClickableLabel = /*#__PURE__*/styled(Label).withConfig({
9295
+ const ClickableLabel = /*#__PURE__*/styled(Label$1).withConfig({
9267
9296
  displayName: "tree-node__ClickableLabel",
9268
9297
  componentId: "sc-1wjf7p9-2"
9269
- })(["flex:1;cursor:pointer;&:hover{background:", ";}&:focus{outline:0;background:", ";}"], Surface.Default.Default, Surface.Default.Default);
9298
+ })(["flex:1;cursor:", ";&:hover{background:", ";}&:focus{outline:0;background:", ";}"], ({
9299
+ isParent
9300
+ }) => isParent ? 'pointer' : 'initial', Surface.Default.Default, Surface.Default.Default);
9270
9301
  const CollapseButton = /*#__PURE__*/styled(Button).withConfig({
9271
9302
  displayName: "tree-node__CollapseButton",
9272
9303
  componentId: "sc-1wjf7p9-3"
@@ -9275,7 +9306,7 @@ const InputWrapper = /*#__PURE__*/styled(Flex).withConfig({
9275
9306
  displayName: "tree-node__InputWrapper",
9276
9307
  componentId: "sc-1wjf7p9-4"
9277
9308
  })(["gap:8px;"]);
9278
- const HelpfulMessage$1 = /*#__PURE__*/styled(Label).withConfig({
9309
+ const HelpfulMessage$1 = /*#__PURE__*/styled(Label$1).withConfig({
9279
9310
  displayName: "tree-node__HelpfulMessage",
9280
9311
  componentId: "sc-1wjf7p9-5"
9281
9312
  })(["margin-left:", ";user-select:none;"], Margin.xl);
@@ -9392,6 +9423,7 @@ const TreeNode = props => {
9392
9423
  onClick: handleCheck,
9393
9424
  onChange: () => void 0
9394
9425
  }), jsx(ClickableLabel, Object.assign({
9426
+ isParent: props.isParent,
9395
9427
  onClick: handleClick,
9396
9428
  role: "link",
9397
9429
  tabIndex: 0
@@ -9571,7 +9603,7 @@ const ParentNode = /*#__PURE__*/styled.ol.withConfig({
9571
9603
  displayName: "tree-view__ParentNode",
9572
9604
  componentId: "sc-4bkb59-0"
9573
9605
  })(["display:flex;flex-direction:column;gap:8px;margin:", ";padding-left:", ";list-style-type:none;& ol{padding-left:", ";}"], Margin.none, Padding.none, Padding.l);
9574
- const Container$1 = /*#__PURE__*/styled.div.withConfig({
9606
+ const Container$2 = /*#__PURE__*/styled.div.withConfig({
9575
9607
  displayName: "tree-view__Container",
9576
9608
  componentId: "sc-4bkb59-1"
9577
9609
  })(["display:block;margin:", ";padding:", ";"], Margin.none, ({
@@ -9688,7 +9720,7 @@ const TreeView = props => {
9688
9720
  heading: title
9689
9721
  }, {
9690
9722
  children: jsx(Card.Section, {
9691
- children: jsx(Container$1, Object.assign({
9723
+ children: jsx(Container$2, Object.assign({
9692
9724
  className: className,
9693
9725
  id: treeId,
9694
9726
  useCardContainer: true
@@ -9696,7 +9728,7 @@ const TreeView = props => {
9696
9728
  children: renderTreeNodes(nodes)
9697
9729
  }))
9698
9730
  })
9699
- })) : jsx(Container$1, Object.assign({
9731
+ })) : jsx(Container$2, Object.assign({
9700
9732
  className: className,
9701
9733
  id: treeId,
9702
9734
  useCardContainer: false
@@ -9754,7 +9786,7 @@ const AvatarSizeValues = {
9754
9786
  const AvatarSizeNodes = {
9755
9787
  [1
9756
9788
  /* AvatarSize.small */
9757
- ]: Label,
9789
+ ]: Label$1,
9758
9790
  [2
9759
9791
  /* AvatarSize.medium */
9760
9792
  ]: Body,
@@ -9769,7 +9801,7 @@ function getNodeToRenderText(props) {
9769
9801
  return AvatarSizeNodes[toAvatarSize(bitwiseOr$1([props.small, props.medium, props.large]))];
9770
9802
  }
9771
9803
 
9772
- const Container = /*#__PURE__*/styled(SpaceAround).withConfig({
9804
+ const Container$1 = /*#__PURE__*/styled(SpaceAround).withConfig({
9773
9805
  displayName: "avatar__Container",
9774
9806
  componentId: "sc-3qe63w-0"
9775
9807
  })(["align-items:center;"]);
@@ -9785,7 +9817,7 @@ const Image = /*#__PURE__*/styled.img.withConfig({
9785
9817
  displayName: "avatar__Image",
9786
9818
  componentId: "sc-3qe63w-2"
9787
9819
  })(["width:100%;height:100%;border-radius:50%;"]);
9788
- const FullName = /*#__PURE__*/styled(Label).withConfig({
9820
+ const FullName = /*#__PURE__*/styled(Label$1).withConfig({
9789
9821
  displayName: "avatar__FullName",
9790
9822
  componentId: "sc-3qe63w-3"
9791
9823
  })(["margin-left:", ";"], Margin.xs);
@@ -9814,7 +9846,7 @@ const Avatar = props => {
9814
9846
  return jsx(Nothing, {});
9815
9847
  }
9816
9848
 
9817
- return jsxs(Container, Object.assign({
9849
+ return jsxs(Container$1, Object.assign({
9818
9850
  className: props.className
9819
9851
  }, {
9820
9852
  children: [jsx(Circle, Object.assign({
@@ -9832,7 +9864,7 @@ const Avatar = props => {
9832
9864
  }));
9833
9865
  };
9834
9866
 
9835
- const Text = /*#__PURE__*/styled(Label).withConfig({
9867
+ const Text = /*#__PURE__*/styled(Label$1).withConfig({
9836
9868
  displayName: "input-checkbox__Text",
9837
9869
  componentId: "sc-4vm2q7-0"
9838
9870
  })(["margin-left:", ";user-select:none;flex:1;"], Margin.xs);
@@ -9864,7 +9896,7 @@ const InputCheckbox = props => {
9864
9896
  });
9865
9897
  };
9866
9898
 
9867
- const HelpfulMessage = /*#__PURE__*/styled(Label).withConfig({
9899
+ const HelpfulMessage = /*#__PURE__*/styled(Label$1).withConfig({
9868
9900
  displayName: "multi-choice-list__HelpfulMessage",
9869
9901
  componentId: "sc-1ylfq6e-0"
9870
9902
  })(["margin-top:", ";margin-left:", ";user-select:none;"], Margin.xxs, Margin.xl);
@@ -9874,7 +9906,8 @@ const Group = /*#__PURE__*/styled(Flex).withConfig({
9874
9906
  })(["width:100%;flex-direction:column;gap:18px;"]);
9875
9907
  const MultiChoiceList = props => {
9876
9908
  const {
9877
- options
9909
+ options,
9910
+ className = ''
9878
9911
  } = props;
9879
9912
 
9880
9913
  if (isEmpty(options)) {
@@ -9882,7 +9915,8 @@ const MultiChoiceList = props => {
9882
9915
  }
9883
9916
 
9884
9917
  return jsx(Group, Object.assign({
9885
- role: "group"
9918
+ role: "group",
9919
+ className: className
9886
9920
  }, {
9887
9921
  children: options.map(option => jsxs("div", {
9888
9922
  children: [jsx(InputCheckbox, Object.assign({
@@ -9897,4 +9931,46 @@ const MultiChoiceList = props => {
9897
9931
  }));
9898
9932
  };
9899
9933
 
9900
- export { Actions, AlertBanner, Avatar, BODY, BODY_LARGE, Background, Badge, Body, BodyLarge, Borders, Button, CAPTION, Caption, Card, CardFrame$1 as CardFrame, Center, Checkbox, Display, Divider, Flag, Flex, Focused, HTMLAnchor, HTMLInput, Heading1, Heading2, Heading3, Heading4, Icon, IconMinor, Icons, InputCheckbox, InputField, InputNumber, InputText, Interactive, LABEL, Label, LeftRightCard, Link, Margin, MenuList, MultiChoiceList, Padding, Select, SpaceAround, SpaceBetween, Spinner, Surface, Tab$1 as Tab, Tabs, Tag, Text$1 as Text, Thumbnail, TreeView, Typography, _Typography, gridLayoutGenerator, leftRightLayoutGenerator, shadow, shadow2Xl, shadowInner, shadowLg, shadowMd, shadowSm, shadowXl };
9934
+ const Container = /*#__PURE__*/styled.div.withConfig({
9935
+ displayName: "choice-list__Container",
9936
+ componentId: "sc-1jen314-0"
9937
+ })(["div:last-child{margin-bottom:", ";}"], Margin.none);
9938
+ const RadioButton = /*#__PURE__*/styled(RadioButton$1).withConfig({
9939
+ displayName: "choice-list__RadioButton",
9940
+ componentId: "sc-1jen314-1"
9941
+ })(["margin-bottom:", ";"], Margin.xxs);
9942
+
9943
+ const RadioGroup = props => {
9944
+ return jsx(Fragment, {
9945
+ children: props.options.map((option, index) => {
9946
+ const shortenedOptionLabel = defaultTo(props.name, '').replace(/\s+/g, '');
9947
+ const optionId = `radio-option-${index}-${shortenedOptionLabel}`;
9948
+ return jsx(RadioButton, {
9949
+ value: option.value,
9950
+ label: option.label,
9951
+ id: optionId,
9952
+ name: props.name,
9953
+ disabled: option.disabled,
9954
+ checked: option.value === props.selected,
9955
+ onChange: props.handleChange
9956
+ }, optionId);
9957
+ })
9958
+ });
9959
+ };
9960
+
9961
+ const ChoiceList = props => {
9962
+ const handleChange = event => {
9963
+ props.onChange(event.target.value);
9964
+ };
9965
+
9966
+ return jsx(Container, {
9967
+ children: jsx(RadioGroup, {
9968
+ options: props.options,
9969
+ selected: props.selected,
9970
+ name: props.name,
9971
+ handleChange: handleChange
9972
+ })
9973
+ });
9974
+ };
9975
+
9976
+ export { Actions, AlertBanner, Avatar, BODY, BODY_LARGE, Background, Badge, Body, BodyLarge, Borders, Button, CAPTION, Caption, Card, CardFrame$1 as CardFrame, Center, Checkbox, ChoiceList, Display, Divider, Flag, Flex, Focused, HTMLAnchor, HTMLInput, Heading1, Heading2, Heading3, Heading4, Icon, IconMinor, Icons, InputCheckbox, InputField, InputNumber, InputText, Interactive, LABEL, Label$1 as Label, LeftRightCard, Link, Margin, MenuList, MultiChoiceList, Padding, Radio, RadioButton$1 as RadioButton, Select, SpaceAround, SpaceBetween, Spinner, Surface, Tab$1 as Tab, Tabs, Tag, Text$1 as Text, Thumbnail, TreeView, Typography, _Typography, gridLayoutGenerator, leftRightLayoutGenerator, shadow, shadow2Xl, shadowInner, shadowLg, shadowMd, shadowSm, shadowXl };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Slot } from '@helpers';
2
3
  import { AlertBannerProps } from 'components/alert-banner';
3
4
  export declare class CardAlertBannerSlot extends Slot<AlertBannerProps> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Slot, PropsWithChildren } from '@helpers';
2
3
  export declare class CardControlsSlot extends Slot<PropsWithChildren> {
3
4
  render(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const SmallFlags: {
2
3
  AD: JSX.Element;
3
4
  AE: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const IconListMajor: {
2
3
  readonly 'arrows-up-down-left-right': JSX.Element;
3
4
  readonly 'badge-percent': JSX.Element;
@@ -2,6 +2,7 @@ export * from './alert-banner';
2
2
  export * from './badge';
3
3
  export * from './card';
4
4
  export * from './checkbox';
5
+ export * from './radio-button';
5
6
  export * from './divider';
6
7
  export * from './input-field';
7
8
  export * from './layout';
@@ -0,0 +1,9 @@
1
+ import { FC } from '@helpers';
2
+ import { IOption } from 'components/select/types';
3
+ export interface IOptionGroup {
4
+ selected: unknown;
5
+ options: IOption[];
6
+ onChange: (value: string) => void;
7
+ name?: string;
8
+ }
9
+ export declare const ChoiceList: FC<IOptionGroup>;
@@ -0,0 +1 @@
1
+ export * from './choice-list';
@@ -1 +1,2 @@
1
1
  export * from './multi-choice-list';
2
+ export * from './choice-list';
@@ -5,6 +5,7 @@ interface IOption extends IInputCheckboxProps {
5
5
  }
6
6
  interface IMultiChoiceList {
7
7
  options: IOption[];
8
+ className?: string;
8
9
  }
9
10
  export declare const MultiChoiceList: FC<IMultiChoiceList>;
10
11
  export {};
@@ -0,0 +1 @@
1
+ export * from './radio-button';
@@ -0,0 +1,10 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ import { FC } from '@helpers';
3
+ export declare const Radio: import("styled-components").StyledComponent<"input", any, {}, never>;
4
+ export interface InputElementProps extends InputHTMLAttributes<HTMLInputElement> {
5
+ label: string;
6
+ id: string;
7
+ key?: string;
8
+ disabled?: boolean;
9
+ }
10
+ export declare const RadioButton: FC<InputElementProps>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IMenuComponentProps } from '../types';
2
3
  export declare const Menu: (props: IMenuComponentProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IValueComponentMultiProps } from '../types';
2
3
  declare const _default: <T>(props: IValueComponentMultiProps<T>) => JSX.Element;
3
4
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edvisor/product-language",
3
- "version": "0.5.6",
3
+ "version": "0.6.0",
4
4
  "license": "MIT",
5
5
  "description": "Edvisor.io product-language components",
6
6
  "repository": "https://github.com/edvisor-io/front-end/",