@edvisor/product-language 0.5.5 → 0.5.7

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
@@ -6096,11 +6096,11 @@ const Stepper = props => {
6096
6096
  const FancyBorder = /*#__PURE__*/styled(SpaceBetween).withConfig({
6097
6097
  displayName: "input-field__FancyBorder",
6098
6098
  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;", "}"], ({
6099
+ })(["background:", ";border:1px solid ", ";border-radius:6px;box-sizing:border-box;padding-left:", ";user-select:none;outline-offset:-2px;", "}"], ({
6100
6100
  invalid
6101
6101
  }) => is(invalid) ? Surface.Critical.Subdued : Surface.Default.Default, ({
6102
6102
  invalid
6103
- }) => is(invalid) ? Borders.Critical.Default : Borders.Default.Default, Margin.xxs, Padding.s, ({
6103
+ }) => is(invalid) ? Borders.Critical.Default : Borders.Default.Default, Padding.s, ({
6104
6104
  invalid
6105
6105
  }) => !is(invalid) && css([":focus,:focus-within,:active{outline:2px solid ", "}"], Focused.Default));
6106
6106
  const InputLayout = /*#__PURE__*/styled(Flex).withConfig({
@@ -7692,11 +7692,7 @@ const OptionComponent = /*#__PURE__*/memo(props => {
7692
7692
  const MenuWrapper = /*#__PURE__*/styled.div.withConfig({
7693
7693
  displayName: "menu-container__MenuWrapper",
7694
7694
  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"
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, props => topPosition(props), props => props.menuPosition === "bottom"
7700
7696
  /* menuPositionType.BOTTOM */
7701
7697
  ? '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
7698
  const MenuContainer = props => {
@@ -7708,9 +7704,8 @@ const MenuContainer = props => {
7708
7704
  return jsx(MenuWrapper, Object.assign({
7709
7705
  "data-role": "menu",
7710
7706
  className: className,
7711
- props: props,
7712
7707
  onClick: onClick
7713
- }, {
7708
+ }, props, {
7714
7709
  children: children
7715
7710
  }));
7716
7711
  };
@@ -8615,7 +8610,7 @@ const Button = props => {
8615
8610
  const ValueContainer = /*#__PURE__*/styled(SpaceBetween).withConfig({
8616
8611
  displayName: "value__ValueContainer",
8617
8612
  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) && `
8613
+ })(["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
8614
 
8620
8615
  &:focus {
8621
8616
  outline: 2px solid ${Focused.Default}
@@ -8628,7 +8623,7 @@ const ValueContainer = /*#__PURE__*/styled(SpaceBetween).withConfig({
8628
8623
  const ValueWrapper$1 = /*#__PURE__*/styled(Flex).withConfig({
8629
8624
  displayName: "value__ValueWrapper",
8630
8625
  componentId: "sc-1aps7dx-1"
8631
- })(["width:100%;display:", ";"], ({
8626
+ })(["width:100%;padding-bottom:", ";display:", ";"], Padding.xs, ({
8632
8627
  label,
8633
8628
  labelPosition
8634
8629
  }) => isDefined(label) && !isEmpty(label) && labelPosition === "top"
@@ -8637,7 +8632,7 @@ const ValueWrapper$1 = /*#__PURE__*/styled(Flex).withConfig({
8637
8632
  const ValueLabel = /*#__PURE__*/styled(Label).withConfig({
8638
8633
  displayName: "value__ValueLabel",
8639
8634
  componentId: "sc-1aps7dx-2"
8640
- })(["padding-left:", ";width:fit-content;white-space:pre;", ""], Padding.xs, ({
8635
+ })(["padding-left:", ";margin-bottom:", ";width:fit-content;white-space:pre;", ""], Padding.xs, Margin.xxs, ({
8641
8636
  labelPosition
8642
8637
  }) => labelPosition === "top"
8643
8638
  /* labelPositionType.TOP */
@@ -8724,6 +8719,7 @@ const Value = props => {
8724
8719
  const renderLabel = () => {
8725
8720
  return maybeRender(label, jsx(ValueLabel, Object.assign({
8726
8721
  labelPosition: labelPosition,
8722
+ subtle: true,
8727
8723
  subdued: true
8728
8724
  }, {
8729
8725
  children: label
@@ -9835,7 +9831,7 @@ const Avatar = props => {
9835
9831
  const Text = /*#__PURE__*/styled(Label).withConfig({
9836
9832
  displayName: "input-checkbox__Text",
9837
9833
  componentId: "sc-4vm2q7-0"
9838
- })(["margin-left:", ";user-select:none;"], Margin.xs);
9834
+ })(["margin-left:", ";user-select:none;flex:1;"], Margin.xs);
9839
9835
  const Wrapper = /*#__PURE__*/styled.label.withConfig({
9840
9836
  displayName: "input-checkbox__Wrapper",
9841
9837
  componentId: "sc-4vm2q7-1"
@@ -9874,7 +9870,8 @@ const Group = /*#__PURE__*/styled(Flex).withConfig({
9874
9870
  })(["width:100%;flex-direction:column;gap:18px;"]);
9875
9871
  const MultiChoiceList = props => {
9876
9872
  const {
9877
- options
9873
+ options,
9874
+ className = ''
9878
9875
  } = props;
9879
9876
 
9880
9877
  if (isEmpty(options)) {
@@ -9882,7 +9879,8 @@ const MultiChoiceList = props => {
9882
9879
  }
9883
9880
 
9884
9881
  return jsx(Group, Object.assign({
9885
- role: "group"
9882
+ role: "group",
9883
+ className: className
9886
9884
  }, {
9887
9885
  children: options.map(option => jsxs("div", {
9888
9886
  children: [jsx(InputCheckbox, Object.assign({
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edvisor/product-language",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "license": "MIT",
5
5
  "description": "Edvisor.io product-language components",
6
6
  "repository": "https://github.com/edvisor-io/front-end/",