@semcore/bulk-textarea 1.4.2-prerelease.0 → 1.5.0-prerelease.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/BulkTextarea.js +35 -38
  3. package/lib/cjs/BulkTextarea.js.map +1 -1
  4. package/lib/cjs/BulkTextarea.types.js.map +1 -1
  5. package/lib/cjs/components/ClearAll.js +2 -2
  6. package/lib/cjs/components/ClearAll.js.map +1 -1
  7. package/lib/cjs/components/Counter.js +5 -5
  8. package/lib/cjs/components/Counter.js.map +1 -1
  9. package/lib/cjs/components/ErrorsNavigation.js +14 -14
  10. package/lib/cjs/components/ErrorsNavigation.js.map +1 -1
  11. package/lib/cjs/components/InputField/InputField.js +219 -167
  12. package/lib/cjs/components/InputField/InputField.js.map +1 -1
  13. package/lib/cjs/components/InputField/InputField.types.js.map +1 -1
  14. package/lib/cjs/components/InputField/inputField.shadow.css +70 -32
  15. package/lib/cjs/index.js +1 -1
  16. package/lib/cjs/index.js.map +1 -1
  17. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
  18. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  19. package/lib/es6/BulkTextarea.js +31 -32
  20. package/lib/es6/BulkTextarea.js.map +1 -1
  21. package/lib/es6/BulkTextarea.types.js.map +1 -1
  22. package/lib/es6/components/ClearAll.js +2 -2
  23. package/lib/es6/components/ClearAll.js.map +1 -1
  24. package/lib/es6/components/Counter.js +2 -2
  25. package/lib/es6/components/Counter.js.map +1 -1
  26. package/lib/es6/components/ErrorsNavigation.js +10 -10
  27. package/lib/es6/components/ErrorsNavigation.js.map +1 -1
  28. package/lib/es6/components/InputField/InputField.js +219 -165
  29. package/lib/es6/components/InputField/InputField.js.map +1 -1
  30. package/lib/es6/components/InputField/InputField.types.js.map +1 -1
  31. package/lib/es6/components/InputField/inputField.shadow.css +70 -32
  32. package/lib/es6/index.js.map +1 -1
  33. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  34. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  35. package/lib/esm/BulkTextarea.mjs +33 -35
  36. package/lib/esm/components/ClearAll.mjs +1 -1
  37. package/lib/esm/components/Counter.mjs +2 -2
  38. package/lib/esm/components/ErrorsNavigation.mjs +4 -4
  39. package/lib/esm/components/InputField/InputField.mjs +181 -136
  40. package/lib/esm/components/InputField/inputField.shadow.css +70 -32
  41. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  42. package/lib/types/BulkTextarea.d.ts +1 -1
  43. package/lib/types/BulkTextarea.types.d.ts +113 -8
  44. package/lib/types/components/ClearAll.d.ts +2 -2
  45. package/lib/types/components/Counter.d.ts +4 -4
  46. package/lib/types/components/ErrorsNavigation.d.ts +2 -2
  47. package/lib/types/components/InputField/InputField.d.ts +12 -7
  48. package/lib/types/components/InputField/InputField.types.d.ts +11 -125
  49. package/package.json +10 -10
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import { Flex } from '@semcore/base-components';
2
2
  import Button from '@semcore/button';
3
- import { Flex } from '@semcore/flex-box';
4
- import { Text } from '@semcore/typography';
5
- import ChevronUpM from '@semcore/icon/ChevronUp/m';
6
3
  import ChevronDownM from '@semcore/icon/ChevronDown/m';
4
+ import ChevronUpM from '@semcore/icon/ChevronUp/m';
5
+ import { Text } from '@semcore/typography';
6
+ import React from 'react';
7
7
  export function ErrorsNavigation(props) {
8
8
  var errorIndex = props.errorIndex,
9
9
  errorsCount = props.errorsCount,
@@ -20,19 +20,19 @@ export function ErrorsNavigation(props) {
20
20
  }, errorsCount > 0 && showErrors && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
21
21
  onClick: onNextError,
22
22
  addonLeft: ChevronDownM,
23
- use: 'tertiary',
24
- theme: 'muted',
23
+ use: "tertiary",
24
+ theme: "muted",
25
25
  "aria-label": getI18nText('BulkTextarea.ErrorsNavigation.nextError:aria-label'),
26
- hintPlacement: 'bottom',
26
+ hintPlacement: "bottom",
27
27
  disabled: disabled,
28
28
  ref: nextButtonRef
29
29
  }), /*#__PURE__*/React.createElement(Button, {
30
30
  onClick: onPrevError,
31
31
  addonLeft: ChevronUpM,
32
- use: 'tertiary',
33
- theme: 'muted',
32
+ use: "tertiary",
33
+ theme: "muted",
34
34
  "aria-label": getI18nText('BulkTextarea.ErrorsNavigation.previousError:aria-label'),
35
- hintPlacement: 'bottom',
35
+ hintPlacement: "bottom",
36
36
  disabled: disabled,
37
37
  ref: prevButtonRef
38
38
  }), /*#__PURE__*/React.createElement(Text, {
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorsNavigation.js","names":["React","Button","Flex","Text","ChevronUpM","ChevronDownM","ErrorsNavigation","props","errorIndex","errorsCount","onPrevError","onNextError","size","showErrors","getI18nText","disabled","nextButtonRef","prevButtonRef","createElement","alignItems","Fragment","onClick","addonLeft","use","theme","hintPlacement","ref","color","ml"],"sources":["../../../src/components/ErrorsNavigation.tsx"],"sourcesContent":["import React from 'react';\nimport Button from '@semcore/button';\nimport { Flex } from '@semcore/flex-box';\nimport { Text } from '@semcore/typography';\nimport ChevronUpM from '@semcore/icon/ChevronUp/m';\nimport ChevronDownM from '@semcore/icon/ChevronDown/m';\nimport { useI18n } from '@semcore/utils/lib/enhances/WithI18n';\n\nexport type ErrorsNavigationProps = {\n errorIndex: number;\n onPrevError: () => void;\n onNextError: () => void;\n errorsCount: number;\n size: 'm' | 'l';\n showErrors: boolean;\n getI18nText: ReturnType<typeof useI18n>;\n disabled: boolean;\n nextButtonRef: React.RefObject<HTMLButtonElement>;\n prevButtonRef: React.RefObject<HTMLButtonElement>;\n};\n\nexport function ErrorsNavigation(props: ErrorsNavigationProps) {\n const {\n errorIndex,\n errorsCount,\n onPrevError,\n onNextError,\n size,\n showErrors,\n getI18nText,\n disabled,\n nextButtonRef,\n prevButtonRef,\n } = props;\n return (\n <Flex alignItems='center'>\n {errorsCount > 0 && showErrors && (\n <>\n <Button\n onClick={onNextError}\n addonLeft={ChevronDownM}\n use={'tertiary'}\n theme={'muted'}\n aria-label={getI18nText('BulkTextarea.ErrorsNavigation.nextError:aria-label')}\n hintPlacement={'bottom'}\n disabled={disabled}\n ref={nextButtonRef}\n />\n <Button\n onClick={onPrevError}\n addonLeft={ChevronUpM}\n use={'tertiary'}\n theme={'muted'}\n aria-label={getI18nText('BulkTextarea.ErrorsNavigation.previousError:aria-label')}\n hintPlacement={'bottom'}\n disabled={disabled}\n ref={prevButtonRef}\n />\n <Text size={size === 'l' ? 300 : 200} color='text-critical' ml={1} disabled={disabled}>\n {errorIndex === -1\n ? getI18nText('BulkTextarea.ErrorsNavigation.totalErrors', { errorsCount })\n : getI18nText('BulkTextarea.ErrorsNavigation.selectedError', {\n errorIndex: errorIndex + 1,\n errorsCount,\n })}\n </Text>\n </>\n )}\n </Flex>\n );\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,iBAAiB;AACpC,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,IAAI,QAAQ,qBAAqB;AAC1C,OAAOC,UAAU,MAAM,2BAA2B;AAClD,OAAOC,YAAY,MAAM,6BAA6B;AAgBtD,OAAO,SAASC,gBAAgBA,CAACC,KAA4B,EAAE;EAC7D,IACEC,UAAU,GAURD,KAAK,CAVPC,UAAU;IACVC,WAAW,GASTF,KAAK,CATPE,WAAW;IACXC,WAAW,GAQTH,KAAK,CARPG,WAAW;IACXC,WAAW,GAOTJ,KAAK,CAPPI,WAAW;IACXC,IAAI,GAMFL,KAAK,CANPK,IAAI;IACJC,UAAU,GAKRN,KAAK,CALPM,UAAU;IACVC,WAAW,GAITP,KAAK,CAJPO,WAAW;IACXC,QAAQ,GAGNR,KAAK,CAHPQ,QAAQ;IACRC,aAAa,GAEXT,KAAK,CAFPS,aAAa;IACbC,aAAa,GACXV,KAAK,CADPU,aAAa;EAEf,oBACEjB,KAAA,CAAAkB,aAAA,CAAChB,IAAI;IAACiB,UAAU,EAAC;EAAQ,GACtBV,WAAW,GAAG,CAAC,IAAII,UAAU,iBAC5Bb,KAAA,CAAAkB,aAAA,CAAAlB,KAAA,CAAAoB,QAAA,qBACEpB,KAAA,CAAAkB,aAAA,CAACjB,MAAM;IACLoB,OAAO,EAAEV,WAAY;IACrBW,SAAS,EAAEjB,YAAa;IACxBkB,GAAG,EAAE,UAAW;IAChBC,KAAK,EAAE,OAAQ;IACf,cAAYV,WAAW,CAAC,oDAAoD,CAAE;IAC9EW,aAAa,EAAE,QAAS;IACxBV,QAAQ,EAAEA,QAAS;IACnBW,GAAG,EAAEV;EAAc,EACnB,eACFhB,KAAA,CAAAkB,aAAA,CAACjB,MAAM;IACLoB,OAAO,EAAEX,WAAY;IACrBY,SAAS,EAAElB,UAAW;IACtBmB,GAAG,EAAE,UAAW;IAChBC,KAAK,EAAE,OAAQ;IACf,cAAYV,WAAW,CAAC,wDAAwD,CAAE;IAClFW,aAAa,EAAE,QAAS;IACxBV,QAAQ,EAAEA,QAAS;IACnBW,GAAG,EAAET;EAAc,EACnB,eACFjB,KAAA,CAAAkB,aAAA,CAACf,IAAI;IAACS,IAAI,EAAEA,IAAI,KAAK,GAAG,GAAG,GAAG,GAAG,GAAI;IAACe,KAAK,EAAC,eAAe;IAACC,EAAE,EAAE,CAAE;IAACb,QAAQ,EAAEA;EAAS,GACnFP,UAAU,KAAK,CAAC,CAAC,GACdM,WAAW,CAAC,2CAA2C,EAAE;IAAEL,WAAW,EAAXA;EAAY,CAAC,CAAC,GACzEK,WAAW,CAAC,6CAA6C,EAAE;IACzDN,UAAU,EAAEA,UAAU,GAAG,CAAC;IAC1BC,WAAW,EAAXA;EACF,CAAC,CAAC,CACD,CAEV,CACI;AAEX"}
1
+ {"version":3,"file":"ErrorsNavigation.js","names":["Flex","Button","ChevronDownM","ChevronUpM","Text","React","ErrorsNavigation","props","errorIndex","errorsCount","onPrevError","onNextError","size","showErrors","getI18nText","disabled","nextButtonRef","prevButtonRef","createElement","alignItems","Fragment","onClick","addonLeft","use","theme","hintPlacement","ref","color","ml"],"sources":["../../../src/components/ErrorsNavigation.tsx"],"sourcesContent":["import { Flex } from '@semcore/base-components';\nimport Button from '@semcore/button';\nimport type { useI18n } from '@semcore/core/lib/utils/enhances/WithI18n';\nimport ChevronDownM from '@semcore/icon/ChevronDown/m';\nimport ChevronUpM from '@semcore/icon/ChevronUp/m';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nexport type ErrorsNavigationProps = {\n errorIndex: number;\n onPrevError: () => void;\n onNextError: () => void;\n errorsCount: number;\n size: 'm' | 'l';\n showErrors: boolean;\n getI18nText: ReturnType<typeof useI18n>;\n disabled: boolean;\n nextButtonRef: React.RefObject<HTMLButtonElement>;\n prevButtonRef: React.RefObject<HTMLButtonElement>;\n};\n\nexport function ErrorsNavigation(props: ErrorsNavigationProps) {\n const {\n errorIndex,\n errorsCount,\n onPrevError,\n onNextError,\n size,\n showErrors,\n getI18nText,\n disabled,\n nextButtonRef,\n prevButtonRef,\n } = props;\n return (\n <Flex alignItems='center'>\n {errorsCount > 0 && showErrors && (\n <>\n <Button\n onClick={onNextError}\n addonLeft={ChevronDownM}\n use='tertiary'\n theme='muted'\n aria-label={getI18nText('BulkTextarea.ErrorsNavigation.nextError:aria-label')}\n hintPlacement='bottom'\n disabled={disabled}\n ref={nextButtonRef}\n />\n <Button\n onClick={onPrevError}\n addonLeft={ChevronUpM}\n use='tertiary'\n theme='muted'\n aria-label={getI18nText('BulkTextarea.ErrorsNavigation.previousError:aria-label')}\n hintPlacement='bottom'\n disabled={disabled}\n ref={prevButtonRef}\n />\n <Text size={size === 'l' ? 300 : 200} color='text-critical' ml={1} disabled={disabled}>\n {errorIndex === -1\n ? getI18nText('BulkTextarea.ErrorsNavigation.totalErrors', { errorsCount })\n : getI18nText('BulkTextarea.ErrorsNavigation.selectedError', {\n errorIndex: errorIndex + 1,\n errorsC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