@salutejs/plasma-new-hope 0.122.0-canary.1349.10334109595.0 → 0.122.0-canary.1349.10339496739.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.js +1 -1
  2. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  3. package/cjs/components/Select/Select.js +2 -1
  4. package/cjs/components/Select/Select.js.map +1 -1
  5. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +3 -2
  6. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  7. package/cjs/components/Select/ui/Target/ui/Button/Button.js +3 -1
  8. package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  9. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +6 -4
  10. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  11. package/cjs/components/Select/utils/getButtonLabel.js +5 -5
  12. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  13. package/emotion/cjs/components/Autocomplete/Autocomplete.js +1 -1
  14. package/emotion/cjs/components/Select/Select.js +2 -1
  15. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +3 -2
  16. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.js +3 -1
  17. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +6 -4
  18. package/emotion/cjs/components/Select/utils/getButtonLabel.js +5 -5
  19. package/emotion/es/components/Autocomplete/Autocomplete.js +1 -1
  20. package/emotion/es/components/Select/Select.js +2 -1
  21. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +3 -2
  22. package/emotion/es/components/Select/ui/Target/ui/Button/Button.js +3 -1
  23. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +6 -4
  24. package/emotion/es/components/Select/utils/getButtonLabel.js +5 -5
  25. package/es/components/Autocomplete/Autocomplete.js +1 -1
  26. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  27. package/es/components/Select/Select.js +2 -1
  28. package/es/components/Select/Select.js.map +1 -1
  29. package/es/components/Select/ui/Inner/ui/Item/Item.js +3 -2
  30. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  31. package/es/components/Select/ui/Target/ui/Button/Button.js +3 -1
  32. package/es/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  33. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +6 -4
  34. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  35. package/es/components/Select/utils/getButtonLabel.js +5 -5
  36. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  37. package/package.json +2 -2
  38. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +1 -1
  39. package/styled-components/cjs/components/Select/Select.js +2 -1
  40. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +3 -2
  41. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.js +3 -1
  42. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +6 -4
  43. package/styled-components/cjs/components/Select/utils/getButtonLabel.js +5 -5
  44. package/styled-components/es/components/Autocomplete/Autocomplete.js +1 -1
  45. package/styled-components/es/components/Select/Select.js +2 -1
  46. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +3 -2
  47. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.js +3 -1
  48. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +6 -4
  49. package/styled-components/es/components/Select/utils/getButtonLabel.js +5 -5
  50. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  51. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +12 -12
  52. package/types/components/Select/Select.d.ts.map +1 -1
  53. package/types/components/Select/Select.types.d.ts +72 -7
  54. package/types/components/Select/Select.types.d.ts.map +1 -1
  55. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  56. package/types/components/Select/ui/Target/ui/Button/Button.d.ts.map +1 -1
  57. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  58. package/types/examples/plasma_b2c/components/Select/Select.d.ts +12 -12
  59. package/types/examples/plasma_web/components/Select/Select.d.ts +12 -12
@@ -1 +1 @@
1
- {"version":3,"file":"Textfield.js","sources":["../../../../../../../src/components/Select/ui/Target/ui/Textfield/Textfield.tsx"],"sourcesContent":["import React from 'react';\n\nimport { cx, isEmpty } from '../../../../../../utils';\nimport { classes } from '../../../../Select.tokens';\nimport { sizeToIconSize } from '../../../../utils';\n\nimport { TextfieldProps, GetTextfieldLabelProps } from './Textfield.types';\nimport { Chip } from './ui';\nimport {\n StyledButton,\n StyledArrow,\n Wrapper,\n ChipWrapper,\n TextfieldWrapper,\n IconArrowWrapper,\n Label,\n Placeholder,\n InnerLabel,\n InnerLabelWrapper,\n ContentLeftWrapper,\n Value,\n} from './Textfield.styles';\n\nconst getLabel = ({\n value,\n isTargetAmount,\n valueToItemMap,\n onChipClick,\n label,\n placeholder,\n focusedChipIndex,\n labelPlacement,\n size,\n renderValue,\n}: GetTextfieldLabelProps) => {\n if (isEmpty(value)) {\n if (!label || labelPlacement === 'outer') {\n return <Placeholder>{placeholder}</Placeholder>;\n }\n\n return <Label>{label}</Label>;\n }\n\n if (Array.isArray(value) && isTargetAmount) {\n return <Chip text={`Выбрано: ${value.length}`} isTargetAmount={isTargetAmount} />;\n }\n\n if (Array.isArray(value)) {\n return value.map((currentValue, index) => {\n const itemLabel = valueToItemMap.get(currentValue)!.label;\n\n return (\n <Chip\n text={renderValue ? renderValue(currentValue, itemLabel) : itemLabel}\n onClick={(e: React.MouseEvent<HTMLElement>) => {\n e.stopPropagation();\n onChipClick(currentValue);\n }}\n focused={focusedChipIndex === index}\n />\n );\n });\n }\n\n const itemLabel = valueToItemMap.get(value)!.label;\n\n if (!label || labelPlacement === 'outer') {\n return <Value>{renderValue ? renderValue(value, itemLabel) : itemLabel}</Value>;\n }\n\n return (\n <InnerLabelWrapper>\n {size !== 'xs' && <InnerLabel>{label}</InnerLabel>}\n <Value>{renderValue ? renderValue(value, itemLabel) : itemLabel}</Value>\n </InnerLabelWrapper>\n );\n};\n\nexport const Textfield: React.FC<TextfieldProps> = ({\n opened,\n value,\n valueToItemMap,\n onChipClick,\n label,\n placeholder,\n onKeyDown,\n focusedChipIndex,\n labelPlacement,\n size,\n contentLeft,\n disabled,\n renderValue,\n focusedPath,\n focusedToValueMap,\n selectProps,\n}) => {\n const withArrowInverse = opened ? classes.arrowInverse : undefined;\n\n const getActiveDescendant = () => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n return focusedToValueMap?.get(focusedPathAsString)?.value.toString();\n };\n\n return (\n <TextfieldWrapper opened={opened} value={value}>\n <StyledButton\n stretching=\"filled\"\n className={cx(\n classes.textfieldTarget,\n opened || focusedChipIndex !== null ? classes.selectWithoutBoxShadow : undefined,\n )}\n onKeyDown={onKeyDown}\n disabled={disabled}\n role=\"combobox\"\n aria-controls=\"tree_level_1\"\n aria-expanded={opened}\n aria-activedescendant={getActiveDescendant()}\n aria-label={label}\n renderTarget={Boolean(selectProps.renderTarget)}\n >\n <Wrapper>\n {selectProps?.renderTarget ? (\n selectProps.renderTarget(value as any)\n ) : (\n <>\n {contentLeft && (!selectProps.multiselect || isEmpty(value)) && (\n <ContentLeftWrapper>{contentLeft}</ContentLeftWrapper>\n )}\n\n <ChipWrapper>\n {getLabel({\n value,\n valueToItemMap,\n onChipClick,\n focusedChipIndex,\n label,\n labelPlacement,\n placeholder,\n isTargetAmount: selectProps.isTargetAmount,\n renderValue,\n size,\n })}\n </ChipWrapper>\n </>\n )}\n\n <IconArrowWrapper>\n <StyledArrow\n size={sizeToIconSize(size)}\n color=\"inherit\"\n className={cx(classes.selectTargetArrow, withArrowInverse)}\n />\n </IconArrowWrapper>\n </Wrapper>\n </StyledButton>\n </TextfieldWrapper>\n );\n};\n"],"names":["getLabel","_ref","value","isTargetAmount","valueToItemMap","onChipClick","label","placeholder","focusedChipIndex","labelPlacement","size","renderValue","isEmpty","React","createElement","Placeholder","Label","Array","isArray","Chip","text","concat","length","map","currentValue","index","itemLabel","get","onClick","e","stopPropagation","focused","Value","InnerLabelWrapper","InnerLabel","Textfield","_ref2","opened","onKeyDown","contentLeft","disabled","focusedPath","focusedToValueMap","selectProps","withArrowInverse","classes","arrowInverse","undefined","getActiveDescendant","_focusedToValueMap$ge","focusedPathAsString","reduce","acc","n","replace","toString","TextfieldWrapper","StyledButton","stretching","className","cx","textfieldTarget","selectWithoutBoxShadow","role","renderTarget","Boolean","Wrapper","Fragment","multiselect","ContentLeftWrapper","ChipWrapper","IconArrowWrapper","StyledArrow","sizeToIconSize","color","selectTargetArrow"],"mappings":";;;;;;;;AAuBA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAWgB;AAAA,EAAA,IAV1BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACdC,cAAc,GAAAH,IAAA,CAAdG,cAAc;IACdC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;IACXC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,WAAW,GAAAN,IAAA,CAAXM,WAAW;IACXC,gBAAgB,GAAAP,IAAA,CAAhBO,gBAAgB;IAChBC,cAAc,GAAAR,IAAA,CAAdQ,cAAc;IACdC,IAAI,GAAAT,IAAA,CAAJS,IAAI;IACJC,WAAW,GAAAV,IAAA,CAAXU,WAAW,CAAA;AAEX,EAAA,IAAIC,OAAO,CAACV,KAAK,CAAC,EAAE;AAChB,IAAA,IAAI,CAACI,KAAK,IAAIG,cAAc,KAAK,OAAO,EAAE;AACtC,MAAA,oBAAOI,KAAA,CAAAC,aAAA,CAACC,WAAW,EAAA,IAAA,EAAER,WAAyB,CAAC,CAAA;AACnD,KAAA;AAEA,IAAA,oBAAOM,KAAA,CAAAC,aAAA,CAACE,KAAK,EAAA,IAAA,EAAEV,KAAa,CA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,WAAW,KAAXA,IAAAA,IAAAA,WAAW,KAAXA,KAAAA,CAAAA,IAAAA,WAAW,CAAEqB,YAAY,GACtBrB,WAAW,CAACqB,YAAY,CAAC9D,KAAY,CAAC,gBAEtCW,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAsD,QAAA,EAAA,IAAA,EACK5B,WAAW,KAAK,CAACI,WAAW,CAACyB,WAAW,IAAIxD,OAAO,CAACV,KAAK,CAAC,CAAC,iBACxDW,KAAA,CAAAC,aAAA,CAACuD,kBAAkB,EAAA,IAAA,EAAE9B,WAAgC,CACxD,eAED1B,KAAA,CAAAC,aAAA,CAACwD,WAAW,EACPtE,IAAAA,EAAAA,QAAQ,CAAC;AACNE,IAAAA,KAAK,EAALA,KAAK;AACLE,IAAAA,cAAc,EAAdA,cAAc;AACdC,IAAAA,WAAW,EAAXA,WAAW;AACXG,IAAAA,gBAAgB,EAAhBA,gBAAgB;AAChBF,IAAAA,KAAK,EAALA,KAAK;AACLG,IAAAA,cAAc,EAAdA,cAAc;AACdF,IAAAA,WAAW,EAAXA,WAAW;IACXJ,cAAc,EAAEwC,WAAW,CAACxC,cAAc;AAC1CQ,IAAAA,WAAW,EAAXA,WAAW;AACXD,IAAAA,IAAI,EAAJA,IAAAA;AACJ,GAAC,CACQ,CACf,CACL,eAEDG,KAAA,CAAAC,aAAA,CAACyD,gBAAgB,EACb1D,IAAAA,eAAAA,KAAA,CAAAC,aAAA,CAAC0D,WAAW,EAAA;AACR9D,IAAAA,IAAI,EAAE+D,cAAc,CAAC/D,IAAI,CAAE;AAC3BgE,IAAAA,KAAK,EAAC,SAAS;AACff,IAAAA,SAAS,EAAEC,EAAE,CAACf,OAAO,CAAC8B,iBAAiB,EAAE/B,gBAAgB,CAAA;AAAE,GAC9D,CACa,CACb,CACC,CACA,CAAC,CAAA;AAE3B;;;;"}
1
+ {"version":3,"file":"Textfield.js","sources":["../../../../../../../src/components/Select/ui/Target/ui/Textfield/Textfield.tsx"],"sourcesContent":["import React from 'react';\n\nimport { cx, isEmpty } from '../../../../../../utils';\nimport { classes } from '../../../../Select.tokens';\nimport { sizeToIconSize } from '../../../../utils';\n\nimport { TextfieldProps, GetTextfieldLabelProps } from './Textfield.types';\nimport { Chip } from './ui';\nimport {\n StyledButton,\n StyledArrow,\n Wrapper,\n ChipWrapper,\n TextfieldWrapper,\n IconArrowWrapper,\n Label,\n Placeholder,\n InnerLabel,\n InnerLabelWrapper,\n ContentLeftWrapper,\n Value,\n} from './Textfield.styles';\n\nconst getLabel = ({\n value,\n isTargetAmount,\n valueToItemMap,\n onChipClick,\n label,\n placeholder,\n focusedChipIndex,\n labelPlacement,\n size,\n renderValue,\n}: GetTextfieldLabelProps) => {\n if (isEmpty(value)) {\n if (!label || labelPlacement === 'outer') {\n return <Placeholder>{placeholder}</Placeholder>;\n }\n\n return <Label>{label}</Label>;\n }\n\n if (Array.isArray(value) && isTargetAmount) {\n return <Chip text={`Выбрано: ${value.length}`} isTargetAmount={isTargetAmount} />;\n }\n\n if (Array.isArray(value)) {\n return value.map((currentValue, index) => {\n const itemLabel = valueToItemMap.get(currentValue)!.label;\n\n return (\n <Chip\n text={renderValue ? renderValue(valueToItemMap.get(currentValue)!) : itemLabel}\n onClick={(e: React.MouseEvent<HTMLElement>) => {\n e.stopPropagation();\n onChipClick(currentValue);\n }}\n focused={focusedChipIndex === index}\n />\n );\n });\n }\n\n const itemLabel = valueToItemMap.get(value)!.label;\n\n if (!label || labelPlacement === 'outer') {\n return <Value>{renderValue ? renderValue(valueToItemMap.get(value)!) : itemLabel}</Value>;\n }\n\n return (\n <InnerLabelWrapper>\n {size !== 'xs' && <InnerLabel>{label}</InnerLabel>}\n <Value>{renderValue ? renderValue(valueToItemMap.get(value)!) : itemLabel}</Value>\n </InnerLabelWrapper>\n );\n};\n\nexport const Textfield: React.FC<TextfieldProps> = ({\n opened,\n value,\n valueToItemMap,\n onChipClick,\n label,\n placeholder,\n onKeyDown,\n focusedChipIndex,\n labelPlacement,\n size,\n contentLeft,\n disabled,\n renderValue,\n focusedPath,\n focusedToValueMap,\n selectProps,\n}) => {\n const withArrowInverse = opened ? classes.arrowInverse : undefined;\n\n const getActiveDescendant = () => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n return focusedToValueMap?.get(focusedPathAsString)?.value.toString();\n };\n\n return (\n <TextfieldWrapper opened={opened} value={value}>\n <StyledButton\n stretching=\"filled\"\n className={cx(\n classes.textfieldTarget,\n opened || focusedChipIndex !== null ? classes.selectWithoutBoxShadow : undefined,\n )}\n onKeyDown={onKeyDown}\n disabled={disabled}\n role=\"combobox\"\n aria-controls=\"tree_level_1\"\n aria-expanded={opened}\n aria-activedescendant={getActiveDescendant()}\n aria-label={label}\n renderTarget={Boolean(selectProps.renderTarget)}\n >\n <Wrapper>\n {selectProps?.renderTarget ? (\n selectProps.renderTarget(\n Array.isArray(value)\n ? value.map((value) => valueToItemMap.get(value)!)\n : valueToItemMap.get(value)!,\n )\n ) : (\n <>\n {contentLeft && (!selectProps.multiselect || isEmpty(value)) && (\n <ContentLeftWrapper>{contentLeft}</ContentLeftWrapper>\n )}\n\n <ChipWrapper>\n {getLabel({\n value,\n valueToItemMap,\n onChipClick,\n focusedChipIndex,\n label,\n labelPlacement,\n placeholder,\n isTargetAmount: selectProps.isTargetAmount,\n renderValue,\n size,\n })}\n </ChipWrapper>\n </>\n )}\n\n <IconArrowWrapper>\n <StyledArrow\n size={sizeToIconSize(size)}\n color=\"inherit\"\n className={cx(classes.selectTargetArrow, withArrowInverse)}\n />\n </IconArrowWrapper>\n </Wrapper>\n </StyledButton>\n </TextfieldWrapper>\n );\n};\n"],"names":["getLabel","_ref","value","isTargetAmount","valueToItemMap","onChipClick","label","placeholder","focusedChipIndex","labelPlacement","size","renderValue","isEmpty","React","createElement","Placeholder","Label","Array","isArray","Chip","text","concat","length","map","currentValue","index","itemLabel","get","onClick","e","stopPropagation","focused","Value","InnerLabelWrapper","InnerLabel","Textfield","_ref2","opened","onKeyDown","contentLeft","disabled","focusedPath","focusedToValueMap","selectProps","withArrowInverse","classes","arrowInverse","undefined","getActiveDescendant","_focusedToValueMap$ge","focusedPathAsString","reduce","acc","n","replace","toString","TextfieldWrapper","StyledButton","stretching","className","cx","textfieldTarget","selectWithoutBoxShadow","role","renderTarget","Boolean","Wrapper","Fragment","multiselect","ContentLeftWrapper","ChipWrapper","IconArrowWrapper","StyledArrow","sizeToIconSize","color","selectTargetArrow"],"mappings":";;;;;;;;AAuBA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAWgB;AAAA,EAAA,IAV1BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACdC,cAAc,GAAAH,IAAA,CAAdG,cAAc;IACdC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;IACXC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,WAAW,GAAAN,IAAA,CAAXM,WAAW;IACXC,gBAAgB,GAAAP,IAAA,CAAhBO,gBAAgB;IAChBC,cAAc,GAAAR,IAAA,CAAdQ,cAAc;IACdC,IAAI,GAAAT,IAAA,CAAJS,IAAI;IACJC,WAAW,GAAAV,IAAA,CAAXU,WAAW,CAAA;AAEX,EAAA,IAAIC,OAAO,CAACV,KAAK,CAAC,EAAE;AAChB,IAAA,IAAI,CAACI,KAAK,IAAIG,cAAc,KAAK,OAAO,EAAE;AACtC,MAAA,oBAAOI,KAAA,CAAAC,aAAA,CAACC,WAAW,EAAA,IAAA,EAAER,WAAyB,CAAC,CAAA;AACnD,KAAA;AAEA,IAAA,oBAAOM,KAAA,CAAAC,aAAA,CAACE,KAAK,EAAA,IAAA,EAAEV,KAAa,CAAC,CAAA;AACjC,GAAA;EAEA,IAAIW,KAAK,CAACC,OAAO,CAAChB,KAAK,CAAC,IAAIC,cAAc,EAAE;AACxC,IAAA,oBAAOU,KAAA,CAAAC,aAAA,CAACK,IAAI,EAAA;AAAC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AC,CAAA;AAE3B;;;;"}
@@ -6,9 +6,9 @@ var getLabel = function getLabel(_ref) {
6
6
  var value = _ref.value,
7
7
  valueToItemMap = _ref.valueToItemMap,
8
8
  renderValue = _ref.renderValue;
9
- var _ref2 = valueToItemMap.get(value === null || value === void 0 ? void 0 : value.toString()),
9
+ var _ref2 = valueToItemMap.get(value),
10
10
  label = _ref2.label;
11
- return renderValue ? renderValue(value, label) : label;
11
+ return renderValue ? renderValue(valueToItemMap.get(value)) : label;
12
12
  };
13
13
  var getButtonLabel = function getButtonLabel(_ref3) {
14
14
  var value = _ref3.value,
@@ -33,9 +33,9 @@ var getButtonLabel = function getButtonLabel(_ref3) {
33
33
  }).join(separator || ', ');
34
34
  }
35
35
  return getLabel({
36
- renderValue: renderValue,
37
- value: value,
38
- valueToItemMap: valueToItemMap
36
+ value: value.toString(),
37
+ valueToItemMap: valueToItemMap,
38
+ renderValue: renderValue
39
39
  });
40
40
  };
41
41
 
@@ -1 +1 @@
1
- {"version":3,"file":"getButtonLabel.js","sources":["../../../../src/components/Select/utils/getButtonLabel.ts"],"sourcesContent":["import { GetButtonLabelProps } from '../ui/Target/ui/Button/Button.types';\nimport { isEmpty } from '../../../utils';\n\nconst getLabel = ({\n value,\n valueToItemMap,\n renderValue,\n}: Omit<GetButtonLabelProps, 'label' | 'selectProps'>): string => {\n const { label } = valueToItemMap.get(value?.toString())!;\n\n return renderValue ? renderValue(value as string, label) : label;\n};\n\nexport const getButtonLabel = ({\n value,\n valueToItemMap,\n label,\n renderValue,\n selectProps,\n separator,\n}: GetButtonLabelProps): string => {\n if (isEmpty(value)) {\n return label || '';\n }\n\n if (selectProps.multiselect && selectProps.isTargetAmount) {\n return `Выбрано: ${value.length}`;\n }\n\n if (selectProps.multiselect && Array.isArray(value)) {\n return value\n ?.map((itemValue) =>\n getLabel({\n value: itemValue,\n valueToItemMap,\n renderValue,\n }),\n )\n .join(separator || ', ');\n }\n\n return getLabel({\n renderValue,\n value,\n valueToItemMap,\n });\n};\n"],"names":["getLabel","_ref","value","valueToItemMap","renderValue","_ref2","get","toString","label","getButtonLabel","_ref3","selectProps","separator","isEmpty","multiselect","isTargetAmount","concat","length","Array","isArray","map","itemValue","join"],"mappings":";;;;AAGA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAIoD;AAAA,EAAA,IAH9DC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACdC,WAAW,GAAAH,IAAA,CAAXG,WAAW,CAAA;AAEX,EAAA,IAAAC,KAAA,GAAkBF,cAAc,CAACG,GAAG,CAACJ,KAAK,KAALA,IAAAA,IAAAA,KAAK,uBAALA,KAAK,CAAEK,QAAQ,EAAE,CAAC;IAA/CC,KAAK,GAAAH,KAAA,CAALG,KAAK,CAAA;EAEb,OAAOJ,WAAW,GAAGA,WAAW,CAACF,KAAK,EAAYM,KAAK,CAAC,GAAGA,KAAK,CAAA;AACpE,CAAC,CAAA;IAEYC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,KAAA,EAOQ;AAAA,EAAA,IAN/BR,KAAK,GAAAQ,KAAA,CAALR,KAAK;IACLC,cAAc,GAAAO,KAAA,CAAdP,cAAc;IACdK,KAAK,GAAAE,KAAA,CAALF,KAAK;IACLJ,WAAW,GAAAM,KAAA,CAAXN,WAAW;IACXO,WAAW,GAAAD,KAAA,CAAXC,WAAW;IACXC,SAAS,GAAAF,KAAA,CAATE,SAAS,CAAA;AAET,EAAA,IAAIC,OAAO,CAACX,KAAK,CAAC,EAAE;IAChB,OAAOM,KAAK,IAAI,EAAE,CAAA;AACtB,GAAA;AAEA,EAAA,IAAIG,WAAW,CAACG,WAAW,IAAIH,WAAW,CAACI,cAAc,EAAE;AACvD,IAAA,OAAA,8CAAA,CAAAC,MAAA,CAAmBd,KAAK,CAACe,MAAM,CAAA,CAAA;AACnC,GAAA;EAEA,IAAIN,WAAW,CAACG,WAAW,IAAII,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IACjD,OAAOA,KAAK,aAALA,KAAK,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAALA,KAAK,CACNkB,GAAG,CAAC,UAACC,SAAS,EAAA;AAAA,MAAA,OACZrB,QAAQ,CAAC;AACLE,QAAAA,KAAK,EAAEmB,SAAS;AAChBlB,QAAAA,cAAc,EAAdA,cAAc;AACdC,QAAAA,WAAW,EAAXA,WAAAA;AACJ,OAAC,CAAC,CAAA;AAAA,KACN,CAAC,CACAkB,IAAI,CAACV,SAAS,IAAI,IAAI,CAAC,CAAA;AAChC,GAAA;AAEA,EAAA,OAAOZ,QAAQ,CAAC;AACZI,IAAAA,WAAW,EAAXA,WAAW;AACXF,IAAAA,KAAK,EAALA,KAAK;AACLC,IAAAA,cAAc,EAAdA,cAAAA;AACJ,GAAC,CAAC,CAAA;AACN;;;;"}
1
+ {"version":3,"file":"getButtonLabel.js","sources":["../../../../src/components/Select/utils/getButtonLabel.ts"],"sourcesContent":["import { GetButtonLabelProps } from '../ui/Target/ui/Button/Button.types';\nimport { isEmpty } from '../../../utils';\n\nconst getLabel = ({\n value,\n valueToItemMap,\n renderValue,\n}: Omit<GetButtonLabelProps, 'label' | 'selectProps' | 'value'> & { value: string }): string => {\n const { label } = valueToItemMap.get(value)!;\n\n return renderValue ? renderValue(valueToItemMap.get(value)!) : label;\n};\n\nexport const getButtonLabel = ({\n value,\n valueToItemMap,\n label,\n renderValue,\n selectProps,\n separator,\n}: GetButtonLabelProps): string => {\n if (isEmpty(value)) {\n return label || '';\n }\n\n if (selectProps.multiselect && selectProps.isTargetAmount) {\n return `Выбрано: ${value.length}`;\n }\n\n if (selectProps.multiselect && Array.isArray(value)) {\n return value\n ?.map((itemValue) =>\n getLabel({\n value: itemValue,\n valueToItemMap,\n renderValue,\n }),\n )\n .join(separator || ', ');\n }\n\n return getLabel({\n value: value.toString(),\n valueToItemMap,\n renderValue,\n });\n};\n"],"names":["getLabel","_ref","value","valueToItemMap","renderValue","_ref2","get","label","getButtonLabel","_ref3","selectProps","separator","isEmpty","multiselect","isTargetAmount","concat","length","Array","isArray","map","itemValue","join","toString"],"mappings":";;;;AAGA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EAIkF;AAAA,EAAA,IAH5FC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACdC,WAAW,GAAAH,IAAA,CAAXG,WAAW,CAAA;AAEX,EAAA,IAAAC,KAAA,GAAkBF,cAAc,CAACG,GAAG,CAACJ,KAAK,CAAC;IAAnCK,KAAK,GAAAF,KAAA,CAALE,KAAK,CAAA;AAEb,EAAA,OAAOH,WAAW,GAAGA,WAAW,CAACD,cAAc,CAACG,GAAG,CAACJ,KAAK,CAAE,CAAC,GAAGK,KAAK,CAAA;AACxE,CAAC,CAAA;IAEYC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,KAAA,EAOQ;AAAA,EAAA,IAN/BP,KAAK,GAAAO,KAAA,CAALP,KAAK;IACLC,cAAc,GAAAM,KAAA,CAAdN,cAAc;IACdI,KAAK,GAAAE,KAAA,CAALF,KAAK;IACLH,WAAW,GAAAK,KAAA,CAAXL,WAAW;IACXM,WAAW,GAAAD,KAAA,CAAXC,WAAW;IACXC,SAAS,GAAAF,KAAA,CAATE,SAAS,CAAA;AAET,EAAA,IAAIC,OAAO,CAACV,KAAK,CAAC,EAAE;IAChB,OAAOK,KAAK,IAAI,EAAE,CAAA;AACtB,GAAA;AAEA,EAAA,IAAIG,WAAW,CAACG,WAAW,IAAIH,WAAW,CAACI,cAAc,EAAE;AACvD,IAAA,OAAA,8CAAA,CAAAC,MAAA,CAAmBb,KAAK,CAACc,MAAM,CAAA,CAAA;AACnC,GAAA;EAEA,IAAIN,WAAW,CAACG,WAAW,IAAII,KAAK,CAACC,OAAO,CAAChB,KAAK,CAAC,EAAE;IACjD,OAAOA,KAAK,aAALA,KAAK,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAALA,KAAK,CACNiB,GAAG,CAAC,UAACC,SAAS,EAAA;AAAA,MAAA,OACZpB,QAAQ,CAAC;AACLE,QAAAA,KAAK,EAAEkB,SAAS;AAChBjB,QAAAA,cAAc,EAAdA,cAAc;AACdC,QAAAA,WAAW,EAAXA,WAAAA;AACJ,OAAC,CAAC,CAAA;AAAA,KACN,CAAC,CACAiB,IAAI,CAACV,SAAS,IAAI,IAAI,CAAC,CAAA;AAChC,GAAA;AAEA,EAAA,OAAOX,QAAQ,CAAC;AACZE,IAAAA,KAAK,EAAEA,KAAK,CAACoB,QAAQ,EAAE;AACvBnB,IAAAA,cAAc,EAAdA,cAAc;AACdC,IAAAA,WAAW,EAAXA,WAAAA;AACJ,GAAC,CAAC,CAAA;AACN;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.122.0-canary.1349.10334109595.0",
3
+ "version": "0.122.0-canary.1349.10339496739.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -118,5 +118,5 @@
118
118
  "react-popper": "2.3.0",
119
119
  "storeon": "3.1.5"
120
120
  },
121
- "gitHead": "a3e57f1be98d97a87183c3877a2ded1b8c3a7382"
121
+ "gitHead": "9028635c6771a99329235aaee212bd90c12d6102"
122
122
  }
@@ -69,7 +69,7 @@ var autocompleteRoot = exports.autocompleteRoot = function autocompleteRoot(Root
69
69
  isOpen = _useState4[0],
70
70
  setIsOpen = _useState4[1];
71
71
  var listId = (0, _plasmaCore.safeUseId)();
72
- var value = outerValue || innerValue;
72
+ var value = outerValue !== null && outerValue !== void 0 ? outerValue : innerValue;
73
73
  var helperTextId = (0, _plasmaCore.safeUseId)();
74
74
  var targetRef = (0, _hooks.useOutsideClick)(function () {
75
75
  setIsOpen(false);
@@ -245,7 +245,8 @@ var selectRoot = exports.selectRoot = function selectRoot(Root) {
245
245
  handleCheckboxChange: handleCheckboxChange,
246
246
  handleItemClick: handleItemClick,
247
247
  variant: variant,
248
- renderItem: renderItem
248
+ renderItem: renderItem,
249
+ valueToItemMap: valueToItemMap
249
250
  }
250
251
  }, /*#__PURE__*/_react["default"].createElement(_Select.StyledPopover, {
251
252
  ref: targetRef,
@@ -38,7 +38,8 @@ var Item = exports.Item = function Item(_ref) {
38
38
  handleCheckboxChange = _useContext.handleCheckboxChange,
39
39
  handleItemClick = _useContext.handleItemClick,
40
40
  variant = _useContext.variant,
41
- renderItem = _useContext.renderItem;
41
+ renderItem = _useContext.renderItem,
42
+ valueToItemMap = _useContext.valueToItemMap;
42
43
  var isDisabledClassName = disabled ? _Select.classes.dropdownItemIsDisabled : undefined;
43
44
  var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? _Select.classes.dropdownItemIsFocused : undefined;
44
45
  var activeClass = value === (path === null || path === void 0 ? void 0 : path[currentLevel + 1]) ? _Select.classes.dropdownItemIsActive : undefined;
@@ -88,7 +89,7 @@ var Item = exports.Item = function Item(_ref) {
88
89
  }))), !multiselect && checked.get(item.value) === 'done' && /*#__PURE__*/_react["default"].createElement(_Icon.IconDone, {
89
90
  size: (0, _utils.sizeToIconSize)(size, variant),
90
91
  color: "inherit"
91
- })), contentLeft && /*#__PURE__*/_react["default"].createElement(_Item.StyledContentLeft, null, contentLeft), /*#__PURE__*/_react["default"].createElement(_Item.StyledText, null, renderItem && renderItem(value.toString(), label) || label), contentRight && /*#__PURE__*/_react["default"].createElement(_Item.StyledContentRight, null, contentRight), !(0, _utils2.isEmpty)(item.items) && /*#__PURE__*/_react["default"].createElement(_Item.DisclosureIconWrapper, null, /*#__PURE__*/_react["default"].createElement(_Icon.IconDisclosureRightCentered, {
92
+ })), contentLeft && /*#__PURE__*/_react["default"].createElement(_Item.StyledContentLeft, null, contentLeft), /*#__PURE__*/_react["default"].createElement(_Item.StyledText, null, renderItem && renderItem(valueToItemMap.get(value)) || label), contentRight && /*#__PURE__*/_react["default"].createElement(_Item.StyledContentRight, null, contentRight), !(0, _utils2.isEmpty)(item.items) && /*#__PURE__*/_react["default"].createElement(_Item.DisclosureIconWrapper, null, /*#__PURE__*/_react["default"].createElement(_Icon.IconDisclosureRightCentered, {
92
93
  size: (0, _utils.sizeToIconSize)(size, variant),
93
94
  color: "inherit"
94
95
  })));
@@ -47,7 +47,9 @@ var Button = exports.Button = function Button(_ref) {
47
47
  "aria-activedescendant": getActiveDescendant(),
48
48
  "aria-label": label,
49
49
  renderTarget: Boolean(selectProps.renderTarget)
50
- }, selectProps.renderTarget ? selectProps.renderTarget(value) : /*#__PURE__*/_react["default"].createElement(_Button.Label, null, (0, _utils2.getButtonLabel)({
50
+ }, selectProps.renderTarget ? selectProps.renderTarget(Array.isArray(value) ? value.map(function (value) {
51
+ return valueToItemMap.get(value);
52
+ }) : valueToItemMap.get(value)) : /*#__PURE__*/_react["default"].createElement(_Button.Label, null, (0, _utils2.getButtonLabel)({
51
53
  value: value,
52
54
  valueToItemMap: valueToItemMap,
53
55
  label: label,
@@ -38,7 +38,7 @@ var getLabel = function getLabel(_ref) {
38
38
  return value.map(function (currentValue, index) {
39
39
  var itemLabel = valueToItemMap.get(currentValue).label;
40
40
  return /*#__PURE__*/_react["default"].createElement(_ui.Chip, {
41
- text: renderValue ? renderValue(currentValue, itemLabel) : itemLabel,
41
+ text: renderValue ? renderValue(valueToItemMap.get(currentValue)) : itemLabel,
42
42
  onClick: function onClick(e) {
43
43
  e.stopPropagation();
44
44
  onChipClick(currentValue);
@@ -49,9 +49,9 @@ var getLabel = function getLabel(_ref) {
49
49
  }
50
50
  var itemLabel = valueToItemMap.get(value).label;
51
51
  if (!label || labelPlacement === 'outer') {
52
- return /*#__PURE__*/_react["default"].createElement(_Textfield.Value, null, renderValue ? renderValue(value, itemLabel) : itemLabel);
52
+ return /*#__PURE__*/_react["default"].createElement(_Textfield.Value, null, renderValue ? renderValue(valueToItemMap.get(value)) : itemLabel);
53
53
  }
54
- return /*#__PURE__*/_react["default"].createElement(_Textfield.InnerLabelWrapper, null, size !== 'xs' && /*#__PURE__*/_react["default"].createElement(_Textfield.InnerLabel, null, label), /*#__PURE__*/_react["default"].createElement(_Textfield.Value, null, renderValue ? renderValue(value, itemLabel) : itemLabel));
54
+ return /*#__PURE__*/_react["default"].createElement(_Textfield.InnerLabelWrapper, null, size !== 'xs' && /*#__PURE__*/_react["default"].createElement(_Textfield.InnerLabel, null, label), /*#__PURE__*/_react["default"].createElement(_Textfield.Value, null, renderValue ? renderValue(valueToItemMap.get(value)) : itemLabel));
55
55
  };
56
56
  var Textfield = exports.Textfield = function Textfield(_ref2) {
57
57
  var opened = _ref2.opened,
@@ -92,7 +92,9 @@ var Textfield = exports.Textfield = function Textfield(_ref2) {
92
92
  "aria-activedescendant": getActiveDescendant(),
93
93
  "aria-label": label,
94
94
  renderTarget: Boolean(selectProps.renderTarget)
95
- }, /*#__PURE__*/_react["default"].createElement(_Textfield.Wrapper, null, selectProps !== null && selectProps !== void 0 && selectProps.renderTarget ? selectProps.renderTarget(value) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && (!selectProps.multiselect || (0, _utils.isEmpty)(value)) && /*#__PURE__*/_react["default"].createElement(_Textfield.ContentLeftWrapper, null, contentLeft), /*#__PURE__*/_react["default"].createElement(_Textfield.ChipWrapper, null, getLabel({
95
+ }, /*#__PURE__*/_react["default"].createElement(_Textfield.Wrapper, null, selectProps !== null && selectProps !== void 0 && selectProps.renderTarget ? selectProps.renderTarget(Array.isArray(value) ? value.map(function (value) {
96
+ return valueToItemMap.get(value);
97
+ }) : valueToItemMap.get(value)) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && (!selectProps.multiselect || (0, _utils.isEmpty)(value)) && /*#__PURE__*/_react["default"].createElement(_Textfield.ContentLeftWrapper, null, contentLeft), /*#__PURE__*/_react["default"].createElement(_Textfield.ChipWrapper, null, getLabel({
96
98
  value: value,
97
99
  valueToItemMap: valueToItemMap,
98
100
  onChipClick: onChipClick,
@@ -9,9 +9,9 @@ var getLabel = function getLabel(_ref) {
9
9
  var value = _ref.value,
10
10
  valueToItemMap = _ref.valueToItemMap,
11
11
  renderValue = _ref.renderValue;
12
- var _ref2 = valueToItemMap.get(value === null || value === void 0 ? void 0 : value.toString()),
12
+ var _ref2 = valueToItemMap.get(value),
13
13
  label = _ref2.label;
14
- return renderValue ? renderValue(value, label) : label;
14
+ return renderValue ? renderValue(valueToItemMap.get(value)) : label;
15
15
  };
16
16
  var getButtonLabel = exports.getButtonLabel = function getButtonLabel(_ref3) {
17
17
  var value = _ref3.value,
@@ -36,8 +36,8 @@ var getButtonLabel = exports.getButtonLabel = function getButtonLabel(_ref3) {
36
36
  }).join(separator || ', ');
37
37
  }
38
38
  return getLabel({
39
- renderValue: renderValue,
40
- value: value,
41
- valueToItemMap: valueToItemMap
39
+ value: value.toString(),
40
+ valueToItemMap: valueToItemMap,
41
+ renderValue: renderValue
42
42
  });
43
43
  };
@@ -61,7 +61,7 @@ export var autocompleteRoot = function autocompleteRoot(Root) {
61
61
  isOpen = _useState4[0],
62
62
  setIsOpen = _useState4[1];
63
63
  var listId = safeUseId();
64
- var value = outerValue || innerValue;
64
+ var value = outerValue !== null && outerValue !== void 0 ? outerValue : innerValue;
65
65
  var helperTextId = safeUseId();
66
66
  var targetRef = useOutsideClick(function () {
67
67
  setIsOpen(false);
@@ -236,7 +236,8 @@ export var selectRoot = function selectRoot(Root) {
236
236
  handleCheckboxChange: handleCheckboxChange,
237
237
  handleItemClick: handleItemClick,
238
238
  variant: variant,
239
- renderItem: renderItem
239
+ renderItem: renderItem,
240
+ valueToItemMap: valueToItemMap
240
241
  }
241
242
  }, /*#__PURE__*/React.createElement(StyledPopover, {
242
243
  ref: targetRef,
@@ -29,7 +29,8 @@ export var Item = function Item(_ref) {
29
29
  handleCheckboxChange = _useContext.handleCheckboxChange,
30
30
  handleItemClick = _useContext.handleItemClick,
31
31
  variant = _useContext.variant,
32
- renderItem = _useContext.renderItem;
32
+ renderItem = _useContext.renderItem,
33
+ valueToItemMap = _useContext.valueToItemMap;
33
34
  var isDisabledClassName = disabled ? classes.dropdownItemIsDisabled : undefined;
34
35
  var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? classes.dropdownItemIsFocused : undefined;
35
36
  var activeClass = value === (path === null || path === void 0 ? void 0 : path[currentLevel + 1]) ? classes.dropdownItemIsActive : undefined;
@@ -79,7 +80,7 @@ export var Item = function Item(_ref) {
79
80
  }))), !multiselect && checked.get(item.value) === 'done' && /*#__PURE__*/React.createElement(IconDone, {
80
81
  size: sizeToIconSize(size, variant),
81
82
  color: "inherit"
82
- })), contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(StyledText, null, renderItem && renderItem(value.toString(), label) || label), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight), !isEmpty(item.items) && /*#__PURE__*/React.createElement(DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRightCentered, {
83
+ })), contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(StyledText, null, renderItem && renderItem(valueToItemMap.get(value)) || label), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight), !isEmpty(item.items) && /*#__PURE__*/React.createElement(DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRightCentered, {
83
84
  size: sizeToIconSize(size, variant),
84
85
  color: "inherit"
85
86
  })));
@@ -40,7 +40,9 @@ export var Button = function Button(_ref) {
40
40
  "aria-activedescendant": getActiveDescendant(),
41
41
  "aria-label": label,
42
42
  renderTarget: Boolean(selectProps.renderTarget)
43
- }, selectProps.renderTarget ? selectProps.renderTarget(value) : /*#__PURE__*/React.createElement(Label, null, getButtonLabel({
43
+ }, selectProps.renderTarget ? selectProps.renderTarget(Array.isArray(value) ? value.map(function (value) {
44
+ return valueToItemMap.get(value);
45
+ }) : valueToItemMap.get(value)) : /*#__PURE__*/React.createElement(Label, null, getButtonLabel({
44
46
  value: value,
45
47
  valueToItemMap: valueToItemMap,
46
48
  label: label,
@@ -31,7 +31,7 @@ var getLabel = function getLabel(_ref) {
31
31
  return value.map(function (currentValue, index) {
32
32
  var itemLabel = valueToItemMap.get(currentValue).label;
33
33
  return /*#__PURE__*/React.createElement(Chip, {
34
- text: renderValue ? renderValue(currentValue, itemLabel) : itemLabel,
34
+ text: renderValue ? renderValue(valueToItemMap.get(currentValue)) : itemLabel,
35
35
  onClick: function onClick(e) {
36
36
  e.stopPropagation();
37
37
  onChipClick(currentValue);
@@ -42,9 +42,9 @@ var getLabel = function getLabel(_ref) {
42
42
  }
43
43
  var itemLabel = valueToItemMap.get(value).label;
44
44
  if (!label || labelPlacement === 'outer') {
45
- return /*#__PURE__*/React.createElement(Value, null, renderValue ? renderValue(value, itemLabel) : itemLabel);
45
+ return /*#__PURE__*/React.createElement(Value, null, renderValue ? renderValue(valueToItemMap.get(value)) : itemLabel);
46
46
  }
47
- return /*#__PURE__*/React.createElement(InnerLabelWrapper, null, size !== 'xs' && /*#__PURE__*/React.createElement(InnerLabel, null, label), /*#__PURE__*/React.createElement(Value, null, renderValue ? renderValue(value, itemLabel) : itemLabel));
47
+ return /*#__PURE__*/React.createElement(InnerLabelWrapper, null, size !== 'xs' && /*#__PURE__*/React.createElement(InnerLabel, null, label), /*#__PURE__*/React.createElement(Value, null, renderValue ? renderValue(valueToItemMap.get(value)) : itemLabel));
48
48
  };
49
49
  export var Textfield = function Textfield(_ref2) {
50
50
  var opened = _ref2.opened,
@@ -85,7 +85,9 @@ export var Textfield = function Textfield(_ref2) {
85
85
  "aria-activedescendant": getActiveDescendant(),
86
86
  "aria-label": label,
87
87
  renderTarget: Boolean(selectProps.renderTarget)
88
- }, /*#__PURE__*/React.createElement(Wrapper, null, selectProps !== null && selectProps !== void 0 && selectProps.renderTarget ? selectProps.renderTarget(value) : /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && (!selectProps.multiselect || isEmpty(value)) && /*#__PURE__*/React.createElement(ContentLeftWrapper, null, contentLeft), /*#__PURE__*/React.createElement(ChipWrapper, null, getLabel({
88
+ }, /*#__PURE__*/React.createElement(Wrapper, null, selectProps !== null && selectProps !== void 0 && selectProps.renderTarget ? selectProps.renderTarget(Array.isArray(value) ? value.map(function (value) {
89
+ return valueToItemMap.get(value);
90
+ }) : valueToItemMap.get(value)) : /*#__PURE__*/React.createElement(React.Fragment, null, contentLeft && (!selectProps.multiselect || isEmpty(value)) && /*#__PURE__*/React.createElement(ContentLeftWrapper, null, contentLeft), /*#__PURE__*/React.createElement(ChipWrapper, null, getLabel({
89
91
  value: value,
90
92
  valueToItemMap: valueToItemMap,
91
93
  onChipClick: onChipClick,
@@ -3,9 +3,9 @@ var getLabel = function getLabel(_ref) {
3
3
  var value = _ref.value,
4
4
  valueToItemMap = _ref.valueToItemMap,
5
5
  renderValue = _ref.renderValue;
6
- var _ref2 = valueToItemMap.get(value === null || value === void 0 ? void 0 : value.toString()),
6
+ var _ref2 = valueToItemMap.get(value),
7
7
  label = _ref2.label;
8
- return renderValue ? renderValue(value, label) : label;
8
+ return renderValue ? renderValue(valueToItemMap.get(value)) : label;
9
9
  };
10
10
  export var getButtonLabel = function getButtonLabel(_ref3) {
11
11
  var value = _ref3.value,
@@ -30,8 +30,8 @@ export var getButtonLabel = function getButtonLabel(_ref3) {
30
30
  }).join(separator || ', ');
31
31
  }
32
32
  return getLabel({
33
- renderValue: renderValue,
34
- value: value,
35
- valueToItemMap: valueToItemMap
33
+ value: value.toString(),
34
+ valueToItemMap: valueToItemMap,
35
+ renderValue: renderValue
36
36
  });
37
37
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,mSAkLhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBApLQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CAmMpF,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,mSAmLhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBArLQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CAoMpF,CAAC"}
@@ -25,15 +25,15 @@ export declare const SelectPerPageSelect: import("@linaria/react").StyledMeta &
25
25
  children?: undefined;
26
26
  isOpen?: boolean | undefined;
27
27
  isTargetAmount?: boolean | undefined;
28
- renderTarget?: ((value: any) => import("react").ReactNode) | undefined;
28
+ renderTarget?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode | import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode[]) => import("react").ReactNode) | undefined;
29
29
  placement?: ("auto" | ("left" | "right" | "top" | "bottom")) | ("left" | "right" | "top" | "bottom")[] | undefined;
30
30
  label?: string | undefined;
31
31
  onScrollBottom?: ((e: import("react").UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
32
32
  variant?: "normal" | "tight" | undefined;
33
33
  listWidth?: import("csstype").Property.Width<string | number> | undefined;
34
34
  portal?: string | import("react").RefObject<HTMLElement> | undefined;
35
- renderValue?: ((value: string, label: string) => string) | undefined;
36
- renderItem?: ((value: string, label: string) => import("react").ReactNode) | undefined;
35
+ renderValue?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => string) | undefined;
36
+ renderItem?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => import("react").ReactNode) | undefined;
37
37
  size?: string | undefined;
38
38
  view?: string | undefined;
39
39
  chipView?: string | undefined;
@@ -62,15 +62,15 @@ export declare const SelectPerPageSelect: import("@linaria/react").StyledMeta &
62
62
  children?: undefined;
63
63
  isOpen?: boolean | undefined;
64
64
  isTargetAmount?: boolean | undefined;
65
- renderTarget?: ((value: any) => import("react").ReactNode) | undefined;
65
+ renderTarget?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode | import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode[]) => import("react").ReactNode) | undefined;
66
66
  placement?: ("auto" | ("left" | "right" | "top" | "bottom")) | ("left" | "right" | "top" | "bottom")[] | undefined;
67
67
  label?: string | undefined;
68
68
  onScrollBottom?: ((e: import("react").UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
69
69
  variant?: "normal" | "tight" | undefined;
70
70
  listWidth?: import("csstype").Property.Width<string | number> | undefined;
71
71
  portal?: string | import("react").RefObject<HTMLElement> | undefined;
72
- renderValue?: ((value: string, label: string) => string) | undefined;
73
- renderItem?: ((value: string, label: string) => import("react").ReactNode) | undefined;
72
+ renderValue?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => string) | undefined;
73
+ renderItem?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => import("react").ReactNode) | undefined;
74
74
  size?: string | undefined;
75
75
  view?: string | undefined;
76
76
  chipView?: string | undefined;
@@ -99,15 +99,15 @@ export declare const SelectPerPageSelect: import("@linaria/react").StyledMeta &
99
99
  children?: undefined;
100
100
  isOpen?: boolean | undefined;
101
101
  isTargetAmount?: boolean | undefined;
102
- renderTarget?: ((value: any) => import("react").ReactNode) | undefined;
102
+ renderTarget?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode | import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode[]) => import("react").ReactNode) | undefined;
103
103
  placement?: ("auto" | ("left" | "right" | "top" | "bottom")) | ("left" | "right" | "top" | "bottom")[] | undefined;
104
104
  label?: string | undefined;
105
105
  onScrollBottom?: ((e: import("react").UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
106
106
  variant?: "normal" | "tight" | undefined;
107
107
  listWidth?: import("csstype").Property.Width<string | number> | undefined;
108
108
  portal?: string | import("react").RefObject<HTMLElement> | undefined;
109
- renderValue?: ((value: string, label: string) => string) | undefined;
110
- renderItem?: ((value: string, label: string) => import("react").ReactNode) | undefined;
109
+ renderValue?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => string) | undefined;
110
+ renderItem?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => import("react").ReactNode) | undefined;
111
111
  size?: string | undefined;
112
112
  view?: string | undefined;
113
113
  chipView?: string | undefined;
@@ -136,15 +136,15 @@ export declare const SelectPerPageSelect: import("@linaria/react").StyledMeta &
136
136
  children?: undefined;
137
137
  isOpen?: boolean | undefined;
138
138
  isTargetAmount?: boolean | undefined;
139
- renderTarget?: ((value: any) => import("react").ReactNode) | undefined;
139
+ renderTarget?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode | import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode[]) => import("react").ReactNode) | undefined;
140
140
  placement?: ("auto" | ("left" | "right" | "top" | "bottom")) | ("left" | "right" | "top" | "bottom")[] | undefined;
141
141
  label?: string | undefined;
142
142
  onScrollBottom?: ((e: import("react").UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
143
143
  variant?: "normal" | "tight" | undefined;
144
144
  listWidth?: import("csstype").Property.Width<string | number> | undefined;
145
145
  portal?: string | import("react").RefObject<HTMLElement> | undefined;
146
- renderValue?: ((value: string, label: string) => string) | undefined;
147
- renderItem?: ((value: string, label: string) => import("react").ReactNode) | undefined;
146
+ renderValue?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => string) | undefined;
147
+ renderItem?: ((item: import("../../../Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => import("react").ReactNode) | undefined;
148
148
  size?: string | undefined;
149
149
  view?: string | undefined;
150
150
  chipView?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAEzG,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAU1C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAKrE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,UAAU,SAAU,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC,qGAqRzF,CAAC;AAEP,eAAO,MAAM,YAAY;;;mBAvRQ,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;CAyS9F,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAEzG,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAU1C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAKrE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,UAAU,SAAU,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC,qGAsRzF,CAAC;AAEP,eAAO,MAAM,YAAY;;;mBAxRQ,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;CA0S9F,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import type { CSSProperties, ButtonHTMLAttributes } from 'react';
2
2
  import React from 'react';
3
3
  import { FocusedPathState } from './reducers';
4
- import { ItemOption, MergedDropdownNode, MergedDropdownNodeTransformed } from './ui/Inner/ui/Item/Item.types';
5
- import type { ValueToCheckedMapType } from './hooks/usePathMaps';
4
+ import { ItemOption, MergedDropdownNode as DropdownNode, MergedDropdownNodeTransformed } from './ui/Inner/ui/Item/Item.types';
5
+ import type { ValueToCheckedMapType, ValueToItemMapType } from './hooks/usePathMaps';
6
6
  declare type SelectPlacementBasic = 'top' | 'bottom' | 'right' | 'left';
7
7
  declare type SelectPlacement = SelectPlacementBasic | 'auto';
8
8
  declare type Target = {
@@ -135,6 +135,7 @@ export declare type ItemContext = {
135
135
  handleItemClick: (item: MergedDropdownNodeTransformed, e: React.MouseEvent<HTMLElement>) => void;
136
136
  variant: MergedSelectProps['variant'];
137
137
  renderItem: MergedSelectProps['renderItem'];
138
+ valueToItemMap: ValueToItemMapType;
138
139
  };
139
140
  export declare type SelectPropsOld<T = any> = ({
140
141
  multiselect?: false;
@@ -175,29 +176,93 @@ export declare type MergedSelectProps<T = any> = Target & ({
175
176
  }) & {
176
177
  value: T;
177
178
  onChange?: (value: T) => void;
179
+ /**
180
+ * Значение css overflow для выпадающего меню.
181
+ * @example listOverflow="scroll"
182
+ */
178
183
  listOverflow?: CSSProperties['overflow'];
184
+ /**
185
+ * Значение css height для выпадающего меню.
186
+ * @example listHeight="11", listHeight="auto", listHeight={11}
187
+ */
179
188
  listHeight?: number | CSSProperties['height'];
180
189
  status?: 'success' | 'warning' | 'error';
190
+ /**
191
+ * Placeholder.
192
+ */
181
193
  placeholder?: string;
194
+ /**
195
+ * Вспомогательный текст снизу слева для поля ввода.
196
+ */
182
197
  helperText?: string;
198
+ /**
199
+ * Компонент неактивен.
200
+ * @default false
201
+ */
183
202
  disabled?: boolean;
184
- items?: MergedDropdownNode[];
185
- onItemSelect?: (e: MergedDropdownNode) => void;
203
+ /**
204
+ * Список элементов.
205
+ */
206
+ items?: DropdownNode[];
207
+ onItemSelect?: (e: DropdownNode) => void;
186
208
  hasItems?: boolean;
187
209
  children?: never;
188
210
  isOpen?: boolean;
211
+ /**
212
+ * Если включено - будет выведено общее количество выбранных элементов вместо перечисления.
213
+ * @default false
214
+ */
189
215
  isTargetAmount?: boolean;
190
- renderTarget?: (value: T) => React.ReactNode;
216
+ /**
217
+ * Callback для кастомной настройки таргета целиком.
218
+ */
219
+ renderTarget?: (item: DropdownNode | DropdownNode[]) => React.ReactNode;
220
+ /**
221
+ * Сторона открытия дропдауна относительно target элемента.
222
+ * @default bottom
223
+ */
191
224
  placement?: SelectPlacement | Array<SelectPlacementBasic>;
225
+ /**
226
+ * Метка-подпись к элементу.
227
+ */
192
228
  label?: string;
229
+ /**
230
+ * Коллбэк для определения достижения скроллом конца списка.
231
+ */
193
232
  onScrollBottom?: (e: React.UIEvent<HTMLUListElement>) => void;
233
+ /**
234
+ * Вариант: обычный или сжатый
235
+ * @default normal
236
+ */
194
237
  variant?: 'normal' | 'tight';
238
+ /**
239
+ * Значение css width для выпадающего списка.
240
+ * @example width="200px"
241
+ */
195
242
  listWidth?: CSSProperties['width'];
243
+ /**
244
+ * Портал для выпадающего списка. Принимает id контейнера или ref.
245
+ */
196
246
  portal?: string | React.RefObject<HTMLElement>;
197
- renderValue?: (value: ItemOption['value'], label: ItemOption['label']) => string;
198
- renderItem?: (value: ItemOption['value'], label: ItemOption['label']) => React.ReactNode;
247
+ /**
248
+ * Callback для кастомной настройки значения в селекте.
249
+ */
250
+ renderValue?: (item: DropdownNode) => string;
251
+ /**
252
+ * Callback для кастомной настройки айтема в выпадающем списке.
253
+ */
254
+ renderItem?: (item: DropdownNode) => React.ReactNode;
255
+ /**
256
+ * Размер компонента.
257
+ */
199
258
  size?: string;
259
+ /**
260
+ * Вид компонента.
261
+ */
200
262
  view?: string;
263
+ /**
264
+ * Внешний вид чипа в варианте textfield-like multiselect.
265
+ */
201
266
  chipView?: string;
202
267
  } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange' | 'onResize' | 'onResizeCapture' | 'nonce'>;
203
268
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Select.types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAC9G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,aAAK,oBAAoB,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAChE,aAAK,eAAe,GAAG,oBAAoB,GAAG,MAAM,CAAC;AAErD,aAAK,MAAM,GACL;IACI;;;OAGG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IACvD;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;I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AG,OAAO,CAAC;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,MAAM,CAAC;IAC7C;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,KAAK,CAAC,SAAS,CAAC;IACrD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Select/ui/Inner/ui/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAqB,EAAE,EAAc,MAAM,OAAO,CAAC;AAQjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAazC,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAoG9B,CAAC"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Select/ui/Inner/ui/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAqB,EAAE,EAAc,MAAM,OAAO,CAAC;AAQjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAazC,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAqG9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Select/ui/Target/ui/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6DxC,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Select/ui/Target/ui/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiExC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Textfield.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Select/ui/Target/ui/Textfield/Textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,cAAc,EAA0B,MAAM,mBAAmB,CAAC;AAwE3E,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA+E9C,CAAC"}
1
+ {"version":3,"file":"Textfield.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Select/ui/Target/ui/Textfield/Textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,cAAc,EAA0B,MAAM,mBAAmB,CAAC;AAwE3E,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmF9C,CAAC"}