@edvisor/product-language 0.5.7 → 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);
@@ -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(' '),
@@ -7787,7 +7820,7 @@ const MenuRow$1 = /*#__PURE__*/memo(({
7787
7820
  }));
7788
7821
  }, areEqual);
7789
7822
 
7790
- const SelectLabel = /*#__PURE__*/styled(Label).withConfig({
7823
+ const SelectLabel = /*#__PURE__*/styled(Label$1).withConfig({
7791
7824
  displayName: "select-label__SelectLabel",
7792
7825
  componentId: "j60pki-0"
7793
7826
  })(["overflow:hidden;white-space:nowrap;text-overflow:ellipsis;user-select:none;box-sizing:border-box;"]);
@@ -8509,7 +8542,7 @@ const ButtonFrame = /*#__PURE__*/styled.button.withConfig({
8509
8542
  displayName: "button__ButtonFrame",
8510
8543
  componentId: "v4884z-0"
8511
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));
8512
- const ButtonText = /*#__PURE__*/styled(Label).withConfig({
8545
+ const ButtonText = /*#__PURE__*/styled(Label$1).withConfig({
8513
8546
  displayName: "button__ButtonText",
8514
8547
  componentId: "v4884z-1"
8515
8548
  })(["color:", ";", ""], props => props.textColorDisabled !== '' ? props.textColorDisabled : props.textColor, props => props.isLoading ? `
@@ -8629,7 +8662,7 @@ const ValueWrapper$1 = /*#__PURE__*/styled(Flex).withConfig({
8629
8662
  }) => isDefined(label) && !isEmpty(label) && labelPosition === "top"
8630
8663
  /* labelPositionType.TOP */
8631
8664
  ? 'block' : 'flex');
8632
- const ValueLabel = /*#__PURE__*/styled(Label).withConfig({
8665
+ const ValueLabel = /*#__PURE__*/styled(Label$1).withConfig({
8633
8666
  displayName: "value__ValueLabel",
8634
8667
  componentId: "sc-1aps7dx-2"
8635
8668
  })(["padding-left:", ";margin-bottom:", ";width:fit-content;white-space:pre;", ""], Padding.xs, Margin.xxs, ({
@@ -8645,7 +8678,7 @@ const ValueRight = /*#__PURE__*/styled(Flex).withConfig({
8645
8678
  displayName: "value__ValueRight",
8646
8679
  componentId: "sc-1aps7dx-4"
8647
8680
  })(["padding-right:", ";pointer-events:none;"], Padding.xxs);
8648
- const Placeholder = /*#__PURE__*/styled(Label).withConfig({
8681
+ const Placeholder = /*#__PURE__*/styled(Label$1).withConfig({
8649
8682
  displayName: "value__Placeholder",
8650
8683
  componentId: "sc-1aps7dx-5"
8651
8684
  })(["pointer-events:none;color:", ";"], Text$1.Light);
@@ -9163,7 +9196,7 @@ const MenuRow = /*#__PURE__*/styled(SpaceBetween).withConfig({
9163
9196
  displayName: "menu-list__MenuRow",
9164
9197
  componentId: "sxh4rn-1"
9165
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);
9166
- const OptionLabel = /*#__PURE__*/styled(Label).withConfig({
9199
+ const OptionLabel = /*#__PURE__*/styled(Label$1).withConfig({
9167
9200
  displayName: "menu-list__OptionLabel",
9168
9201
  componentId: "sxh4rn-2"
9169
9202
  })(["cursor:pointer;"]);
@@ -9259,10 +9292,12 @@ const ItemWrapper = /*#__PURE__*/styled(Flex).withConfig({
9259
9292
  displayName: "tree-node__ItemWrapper",
9260
9293
  componentId: "sc-1wjf7p9-1"
9261
9294
  })(["align-items:center;padding:", " ", ";gap:8px;flex:none;order:0;align-self:stretch;flex-grow:0;"], Padding.xxxs, Padding.none);
9262
- const ClickableLabel = /*#__PURE__*/styled(Label).withConfig({
9295
+ const ClickableLabel = /*#__PURE__*/styled(Label$1).withConfig({
9263
9296
  displayName: "tree-node__ClickableLabel",
9264
9297
  componentId: "sc-1wjf7p9-2"
9265
- })(["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);
9266
9301
  const CollapseButton = /*#__PURE__*/styled(Button).withConfig({
9267
9302
  displayName: "tree-node__CollapseButton",
9268
9303
  componentId: "sc-1wjf7p9-3"
@@ -9271,7 +9306,7 @@ const InputWrapper = /*#__PURE__*/styled(Flex).withConfig({
9271
9306
  displayName: "tree-node__InputWrapper",
9272
9307
  componentId: "sc-1wjf7p9-4"
9273
9308
  })(["gap:8px;"]);
9274
- const HelpfulMessage$1 = /*#__PURE__*/styled(Label).withConfig({
9309
+ const HelpfulMessage$1 = /*#__PURE__*/styled(Label$1).withConfig({
9275
9310
  displayName: "tree-node__HelpfulMessage",
9276
9311
  componentId: "sc-1wjf7p9-5"
9277
9312
  })(["margin-left:", ";user-select:none;"], Margin.xl);
@@ -9388,6 +9423,7 @@ const TreeNode = props => {
9388
9423
  onClick: handleCheck,
9389
9424
  onChange: () => void 0
9390
9425
  }), jsx(ClickableLabel, Object.assign({
9426
+ isParent: props.isParent,
9391
9427
  onClick: handleClick,
9392
9428
  role: "link",
9393
9429
  tabIndex: 0
@@ -9567,7 +9603,7 @@ const ParentNode = /*#__PURE__*/styled.ol.withConfig({
9567
9603
  displayName: "tree-view__ParentNode",
9568
9604
  componentId: "sc-4bkb59-0"
9569
9605
  })(["display:flex;flex-direction:column;gap:8px;margin:", ";padding-left:", ";list-style-type:none;& ol{padding-left:", ";}"], Margin.none, Padding.none, Padding.l);
9570
- const Container$1 = /*#__PURE__*/styled.div.withConfig({
9606
+ const Container$2 = /*#__PURE__*/styled.div.withConfig({
9571
9607
  displayName: "tree-view__Container",
9572
9608
  componentId: "sc-4bkb59-1"
9573
9609
  })(["display:block;margin:", ";padding:", ";"], Margin.none, ({
@@ -9684,7 +9720,7 @@ const TreeView = props => {
9684
9720
  heading: title
9685
9721
  }, {
9686
9722
  children: jsx(Card.Section, {
9687
- children: jsx(Container$1, Object.assign({
9723
+ children: jsx(Container$2, Object.assign({
9688
9724
  className: className,
9689
9725
  id: treeId,
9690
9726
  useCardContainer: true
@@ -9692,7 +9728,7 @@ const TreeView = props => {
9692
9728
  children: renderTreeNodes(nodes)
9693
9729
  }))
9694
9730
  })
9695
- })) : jsx(Container$1, Object.assign({
9731
+ })) : jsx(Container$2, Object.assign({
9696
9732
  className: className,
9697
9733
  id: treeId,
9698
9734
  useCardContainer: false
@@ -9750,7 +9786,7 @@ const AvatarSizeValues = {
9750
9786
  const AvatarSizeNodes = {
9751
9787
  [1
9752
9788
  /* AvatarSize.small */
9753
- ]: Label,
9789
+ ]: Label$1,
9754
9790
  [2
9755
9791
  /* AvatarSize.medium */
9756
9792
  ]: Body,
@@ -9765,7 +9801,7 @@ function getNodeToRenderText(props) {
9765
9801
  return AvatarSizeNodes[toAvatarSize(bitwiseOr$1([props.small, props.medium, props.large]))];
9766
9802
  }
9767
9803
 
9768
- const Container = /*#__PURE__*/styled(SpaceAround).withConfig({
9804
+ const Container$1 = /*#__PURE__*/styled(SpaceAround).withConfig({
9769
9805
  displayName: "avatar__Container",
9770
9806
  componentId: "sc-3qe63w-0"
9771
9807
  })(["align-items:center;"]);
@@ -9781,7 +9817,7 @@ const Image = /*#__PURE__*/styled.img.withConfig({
9781
9817
  displayName: "avatar__Image",
9782
9818
  componentId: "sc-3qe63w-2"
9783
9819
  })(["width:100%;height:100%;border-radius:50%;"]);
9784
- const FullName = /*#__PURE__*/styled(Label).withConfig({
9820
+ const FullName = /*#__PURE__*/styled(Label$1).withConfig({
9785
9821
  displayName: "avatar__FullName",
9786
9822
  componentId: "sc-3qe63w-3"
9787
9823
  })(["margin-left:", ";"], Margin.xs);
@@ -9810,7 +9846,7 @@ const Avatar = props => {
9810
9846
  return jsx(Nothing, {});
9811
9847
  }
9812
9848
 
9813
- return jsxs(Container, Object.assign({
9849
+ return jsxs(Container$1, Object.assign({
9814
9850
  className: props.className
9815
9851
  }, {
9816
9852
  children: [jsx(Circle, Object.assign({
@@ -9828,7 +9864,7 @@ const Avatar = props => {
9828
9864
  }));
9829
9865
  };
9830
9866
 
9831
- const Text = /*#__PURE__*/styled(Label).withConfig({
9867
+ const Text = /*#__PURE__*/styled(Label$1).withConfig({
9832
9868
  displayName: "input-checkbox__Text",
9833
9869
  componentId: "sc-4vm2q7-0"
9834
9870
  })(["margin-left:", ";user-select:none;flex:1;"], Margin.xs);
@@ -9860,7 +9896,7 @@ const InputCheckbox = props => {
9860
9896
  });
9861
9897
  };
9862
9898
 
9863
- const HelpfulMessage = /*#__PURE__*/styled(Label).withConfig({
9899
+ const HelpfulMessage = /*#__PURE__*/styled(Label$1).withConfig({
9864
9900
  displayName: "multi-choice-list__HelpfulMessage",
9865
9901
  componentId: "sc-1ylfq6e-0"
9866
9902
  })(["margin-top:", ";margin-left:", ";user-select:none;"], Margin.xxs, Margin.xl);
@@ -9895,4 +9931,46 @@ const MultiChoiceList = props => {
9895
9931
  }));
9896
9932
  };
9897
9933
 
9898
- 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';
@@ -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.7",
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/",