@transferwise/components 46.96.1 → 46.97.1

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 (50) hide show
  1. package/build/alert/Alert.js.map +1 -1
  2. package/build/alert/Alert.mjs.map +1 -1
  3. package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
  4. package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
  5. package/build/common/propsValues/sentiment.js +1 -0
  6. package/build/common/propsValues/sentiment.js.map +1 -1
  7. package/build/common/propsValues/sentiment.mjs +1 -0
  8. package/build/common/propsValues/sentiment.mjs.map +1 -1
  9. package/build/main.css +60 -4
  10. package/build/progressBar/ProgressBar.js.map +1 -1
  11. package/build/progressBar/ProgressBar.mjs.map +1 -1
  12. package/build/statusIcon/StatusIcon.js +2 -2
  13. package/build/statusIcon/StatusIcon.js.map +1 -1
  14. package/build/statusIcon/StatusIcon.mjs +2 -2
  15. package/build/statusIcon/StatusIcon.mjs.map +1 -1
  16. package/build/styles/inputs/Input.css +28 -2
  17. package/build/styles/inputs/TextArea.css +28 -2
  18. package/build/styles/main.css +60 -4
  19. package/build/styles/popover/Popover.css +28 -2
  20. package/build/title/Title.js.map +1 -1
  21. package/build/title/Title.mjs.map +1 -1
  22. package/build/types/alert/Alert.d.ts +2 -2
  23. package/build/types/alert/Alert.d.ts.map +1 -1
  24. package/build/types/avatarWrapper/AvatarWrapper.d.ts +2 -2
  25. package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
  26. package/build/types/common/propsValues/sentiment.d.ts.map +1 -1
  27. package/build/types/progressBar/ProgressBar.d.ts +3 -3
  28. package/build/types/progressBar/ProgressBar.d.ts.map +1 -1
  29. package/build/types/statusIcon/StatusIcon.d.ts +3 -2
  30. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  31. package/build/types/title/Title.d.ts.map +1 -1
  32. package/package.json +6 -6
  33. package/src/alert/Alert.story.tsx +5 -3
  34. package/src/alert/Alert.tsx +11 -2
  35. package/src/avatarWrapper/AvatarWrapper.story.tsx +2 -2
  36. package/src/avatarWrapper/AvatarWrapper.tsx +3 -2
  37. package/src/common/propsValues/sentiment.ts +1 -0
  38. package/src/inputs/Input.css +28 -2
  39. package/src/inputs/TextArea.css +28 -2
  40. package/src/main.css +60 -4
  41. package/src/popover/Popover.css +28 -2
  42. package/src/progressBar/ProgressBar.spec.tsx +33 -8
  43. package/src/progressBar/ProgressBar.story.tsx +15 -0
  44. package/src/progressBar/ProgressBar.tsx +3 -3
  45. package/src/statusIcon/StatusIcon.docs.mdx +1 -1
  46. package/src/statusIcon/StatusIcon.spec.tsx +10 -4
  47. package/src/statusIcon/StatusIcon.story.tsx +10 -5
  48. package/src/statusIcon/StatusIcon.tsx +6 -4
  49. package/src/title/Title.test.story.tsx +19 -12
  50. package/src/title/Title.tsx +1 -0
@@ -2585,8 +2585,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2585
2585
  line-height: 1.2;
2586
2586
  line-height: var(--line-height-title);
2587
2587
  letter-spacing: 0;
2588
- -webkit-hyphens: auto;
2589
- hyphens: auto;
2590
2588
  margin-bottom: 0;
2591
2589
  margin-bottom: initial;
2592
2590
  font-size: 1.375rem;
@@ -2598,6 +2596,36 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2598
2596
  height: 72px !important;
2599
2597
  height: var(--size-72) !important;
2600
2598
  }
2599
+ @supports (hyphenate-limit-chars: 1) {
2600
+ .np-form-control--size-lg {
2601
+ -webkit-hyphens: auto;
2602
+ hyphens: auto;
2603
+ hyphenate-limit-chars: 7 3;
2604
+ }
2605
+ @media (min-width: 768px) {
2606
+ .np-form-control--size-lg {
2607
+ hyphenate-limit-chars: 8 3;
2608
+ }
2609
+ }
2610
+ @media (min-width: 992px) {
2611
+ .np-form-control--size-lg {
2612
+ hyphenate-limit-chars: 10 4 3;
2613
+ }
2614
+ }
2615
+ }
2616
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
2617
+ .np-form-control--size-lg {
2618
+ -webkit-hyphens: auto;
2619
+ hyphens: auto;
2620
+ -webkit-hyphenate-limit-before: 3;
2621
+ -webkit-hyphenate-limit-after: 3;
2622
+ }
2623
+ @media (min-width: 992px) {
2624
+ .np-form-control--size-lg {
2625
+ -webkit-hyphenate-limit-before: 4;
2626
+ }
2627
+ }
2628
+ }
2601
2629
  .np-form-control--size-lg + p,
2602
2630
  .np-form-control--size-lg + ul:not(.list-unstyled),
2603
2631
  .np-form-control--size-lg + ol:not(.list-unstyled) {
@@ -4023,8 +4051,6 @@ html:not([dir="rtl"]) .np-navigation-option {
4023
4051
  line-height: 1.2;
4024
4052
  line-height: var(--line-height-title);
4025
4053
  letter-spacing: 0;
4026
- -webkit-hyphens: auto;
4027
- hyphens: auto;
4028
4054
  margin-bottom: 0;
4029
4055
  margin-bottom: initial;
4030
4056
  font-weight: 600;
@@ -4034,6 +4060,36 @@ html:not([dir="rtl"]) .np-navigation-option {
4034
4060
  letter-spacing: -0.02em;
4035
4061
  line-height: 122%;
4036
4062
  }
4063
+ @supports (hyphenate-limit-chars: 1) {
4064
+ .np-popover__container.np-bottom-sheet .np-popover__title {
4065
+ -webkit-hyphens: auto;
4066
+ hyphens: auto;
4067
+ hyphenate-limit-chars: 7 3;
4068
+ }
4069
+ @media (min-width: 768px) {
4070
+ .np-popover__container.np-bottom-sheet .np-popover__title {
4071
+ hyphenate-limit-chars: 8 3;
4072
+ }
4073
+ }
4074
+ @media (min-width: 992px) {
4075
+ .np-popover__container.np-bottom-sheet .np-popover__title {
4076
+ hyphenate-limit-chars: 10 4 3;
4077
+ }
4078
+ }
4079
+ }
4080
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
4081
+ .np-popover__container.np-bottom-sheet .np-popover__title {
4082
+ -webkit-hyphens: auto;
4083
+ hyphens: auto;
4084
+ -webkit-hyphenate-limit-before: 3;
4085
+ -webkit-hyphenate-limit-after: 3;
4086
+ }
4087
+ @media (min-width: 992px) {
4088
+ .np-popover__container.np-bottom-sheet .np-popover__title {
4089
+ -webkit-hyphenate-limit-before: 4;
4090
+ }
4091
+ }
4092
+ }
4037
4093
  .np-popover__container.np-bottom-sheet .np-popover__title + p,
4038
4094
  .np-popover__container.np-bottom-sheet .np-popover__title + ul:not(.list-unstyled),
4039
4095
  .np-popover__container.np-bottom-sheet .np-popover__title + ol:not(.list-unstyled) {
@@ -24,8 +24,6 @@
24
24
  line-height: 1.2;
25
25
  line-height: var(--line-height-title);
26
26
  letter-spacing: 0;
27
- -webkit-hyphens: auto;
28
- hyphens: auto;
29
27
  margin-bottom: 0;
30
28
  margin-bottom: initial;
31
29
  font-weight: 600;
@@ -34,6 +32,34 @@
34
32
  font-size: var(--font-size-26);
35
33
  letter-spacing: -0.02em;
36
34
  line-height: 122%;
35
+ }@supports (hyphenate-limit-chars: 1) {
36
+ .np-popover__container.np-bottom-sheet .np-popover__title {
37
+ -webkit-hyphens: auto;
38
+ hyphens: auto;
39
+ hyphenate-limit-chars: 7 3;
40
+ }
41
+ @media (min-width: 768px) {
42
+ .np-popover__container.np-bottom-sheet .np-popover__title {
43
+ hyphenate-limit-chars: 8 3;
44
+ }
45
+ }
46
+ @media (min-width: 992px) {
47
+ .np-popover__container.np-bottom-sheet .np-popover__title {
48
+ hyphenate-limit-chars: 10 4 3;
49
+ }
50
+ }
51
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
52
+ .np-popover__container.np-bottom-sheet .np-popover__title {
53
+ -webkit-hyphens: auto;
54
+ hyphens: auto;
55
+ -webkit-hyphenate-limit-before: 3;
56
+ -webkit-hyphenate-limit-after: 3;
57
+ }
58
+ @media (min-width: 992px) {
59
+ .np-popover__container.np-bottom-sheet .np-popover__title {
60
+ -webkit-hyphenate-limit-before: 4;
61
+ }
62
+ }
37
63
  }.np-popover__container.np-bottom-sheet .np-popover__title + p,
38
64
  .np-popover__container.np-bottom-sheet .np-popover__title + ul:not(.list-unstyled),
39
65
  .np-popover__container.np-bottom-sheet .np-popover__title + ol:not(.list-unstyled) {
@@ -1 +1 @@
1
- {"version":3,"file":"Title.js","sources":["../../src/title/Title.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { LabelHTMLAttributes, LiHTMLAttributes, ReactHTML } from 'react';\n\nimport { TitleTypes, Typography, Heading } from '../common';\n\nconst DEFAULT_TYPE = Typography.TITLE_GROUP;\n\nconst titleTypeMapping = {\n [Typography.TITLE_SCREEN]: 'h1',\n [Typography.TITLE_SECTION]: 'h2',\n [Typography.TITLE_SUBSECTION]: 'h3',\n [Typography.TITLE_BODY]: 'h4',\n [Typography.TITLE_GROUP]: 'h5',\n} as const;\n\ntype Props = LabelHTMLAttributes<HTMLHeadingElement | HTMLSpanElement | HTMLLabelElement> &\n LiHTMLAttributes<HTMLLIElement> & {\n /**\n * Default value will based one `type` prop\n */\n as?: 'span' | 'label' | 'li' | 'legend' | 'header' | Heading;\n /**\n * Default value: {@link DEFAULT_TYPE}\n */\n type?: TitleTypes;\n };\n\nfunction Title({ as, type = DEFAULT_TYPE, className, ...props }: Props) {\n const mapping = titleTypeMapping[type];\n const isTypeSupported = mapping !== undefined;\n if (isTypeSupported) {\n const HeaderTag = as ?? mapping;\n return <HeaderTag {...props} className={clsx(`np-text-${type}`, className)} />;\n }\n const HeaderTag = as ?? titleTypeMapping[DEFAULT_TYPE];\n return <HeaderTag {...props} className={clsx(`np-text-${DEFAULT_TYPE}`, className)} />;\n}\n\nexport default Title;\n"],"names":["DEFAULT_TYPE","Typography","TITLE_GROUP","titleTypeMapping","TITLE_SCREEN","TITLE_SECTION","TITLE_SUBSECTION","TITLE_BODY","Title","as","type","className","props","mapping","isTypeSupported","undefined","HeaderTag","_jsx","clsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAMA,YAAY,GAAGC,qBAAU,CAACC,WAAW,CAAA;AAE3C,MAAMC,gBAAgB,GAAG;AACvB,EAAA,CAACF,qBAAU,CAACG,YAAY,GAAG,IAAI;AAC/B,EAAA,CAACH,qBAAU,CAACI,aAAa,GAAG,IAAI;AAChC,EAAA,CAACJ,qBAAU,CAACK,gBAAgB,GAAG,IAAI;AACnC,EAAA,CAACL,qBAAU,CAACM,UAAU,GAAG,IAAI;EAC7B,CAACN,qBAAU,CAACC,WAAW,GAAG,IAAA;CAClB,CAAA;AAcV,SAASM,KAAKA,CAAC;EAAEC,EAAE;AAAEC,EAAAA,IAAI,GAAGV,YAAY;EAAEW,SAAS;EAAE,GAAGC,KAAAA;AAAc,CAAA,EAAA;AACpE,EAAA,MAAMC,OAAO,GAAGV,gBAAgB,CAACO,IAAI,CAAC,CAAA;AACtC,EAAA,MAAMI,eAAe,GAAGD,OAAO,KAAKE,SAAS,CAAA;AAC7C,EAAA,IAAID,eAAe,EAAE;AACnB,IAAA,MAAME,SAAS,GAAGP,EAAE,IAAII,OAAO,CAAA;IAC/B,oBAAOI,cAAA,CAACD,SAAS,EAAA;AAAA,MAAA,GAAKJ,KAAK;AAAED,MAAAA,SAAS,EAAEO,SAAI,CAAC,WAAWR,IAAI,CAAA,CAAE,EAAEC,SAAS,CAAA;AAAE,MAAG,CAAA;AAChF,GAAA;AACA,EAAA,MAAMK,SAAS,GAAGP,EAAE,IAAIN,gBAAgB,CAACH,YAAY,CAAC,CAAA;EACtD,oBAAOiB,cAAA,CAACD,SAAS,EAAA;AAAA,IAAA,GAAKJ,KAAK;AAAED,IAAAA,SAAS,EAAEO,SAAI,CAAC,WAAWlB,YAAY,CAAA,CAAE,EAAEW,SAAS,CAAA;AAAE,IAAG,CAAA;AACxF;;;;"}
1
+ {"version":3,"file":"Title.js","sources":["../../src/title/Title.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { LabelHTMLAttributes, LiHTMLAttributes, ReactHTML } from 'react';\n\nimport { TitleTypes, Typography, Heading } from '../common';\n\nconst DEFAULT_TYPE = Typography.TITLE_GROUP;\n\nconst titleTypeMapping = {\n [Typography.TITLE_SCREEN]: 'h1',\n [Typography.TITLE_SECTION]: 'h2',\n [Typography.TITLE_SUBSECTION]: 'h3',\n [Typography.TITLE_BODY]: 'h4',\n [Typography.TITLE_GROUP]: 'h5',\n} as const;\n\ntype Props = LabelHTMLAttributes<HTMLHeadingElement | HTMLSpanElement | HTMLLabelElement> &\n LiHTMLAttributes<HTMLLIElement> & {\n /**\n * Default value will based one `type` prop\n */\n as?: 'span' | 'label' | 'li' | 'legend' | 'header' | Heading;\n /**\n * Default value: {@link DEFAULT_TYPE}\n */\n type?: TitleTypes;\n };\n\nfunction Title({ as, type = DEFAULT_TYPE, className, ...props }: Props) {\n const mapping = titleTypeMapping[type];\n const isTypeSupported = mapping !== undefined;\n\n if (isTypeSupported) {\n const HeaderTag = as ?? mapping;\n return <HeaderTag {...props} className={clsx(`np-text-${type}`, className)} />;\n }\n const HeaderTag = as ?? titleTypeMapping[DEFAULT_TYPE];\n return <HeaderTag {...props} className={clsx(`np-text-${DEFAULT_TYPE}`, className)} />;\n}\n\nexport default Title;\n"],"names":["DEFAULT_TYPE","Typography","TITLE_GROUP","titleTypeMapping","TITLE_SCREEN","TITLE_SECTION","TITLE_SUBSECTION","TITLE_BODY","Title","as","type","className","props","mapping","isTypeSupported","undefined","HeaderTag","_jsx","clsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAMA,YAAY,GAAGC,qBAAU,CAACC,WAAW,CAAA;AAE3C,MAAMC,gBAAgB,GAAG;AACvB,EAAA,CAACF,qBAAU,CAACG,YAAY,GAAG,IAAI;AAC/B,EAAA,CAACH,qBAAU,CAACI,aAAa,GAAG,IAAI;AAChC,EAAA,CAACJ,qBAAU,CAACK,gBAAgB,GAAG,IAAI;AACnC,EAAA,CAACL,qBAAU,CAACM,UAAU,GAAG,IAAI;EAC7B,CAACN,qBAAU,CAACC,WAAW,GAAG,IAAA;CAClB,CAAA;AAcV,SAASM,KAAKA,CAAC;EAAEC,EAAE;AAAEC,EAAAA,IAAI,GAAGV,YAAY;EAAEW,SAAS;EAAE,GAAGC,KAAAA;AAAc,CAAA,EAAA;AACpE,EAAA,MAAMC,OAAO,GAAGV,gBAAgB,CAACO,IAAI,CAAC,CAAA;AACtC,EAAA,MAAMI,eAAe,GAAGD,OAAO,KAAKE,SAAS,CAAA;AAE7C,EAAA,IAAID,eAAe,EAAE;AACnB,IAAA,MAAME,SAAS,GAAGP,EAAE,IAAII,OAAO,CAAA;IAC/B,oBAAOI,cAAA,CAACD,SAAS,EAAA;AAAA,MAAA,GAAKJ,KAAK;AAAED,MAAAA,SAAS,EAAEO,SAAI,CAAC,WAAWR,IAAI,CAAA,CAAE,EAAEC,SAAS,CAAA;AAAE,MAAG,CAAA;AAChF,GAAA;AACA,EAAA,MAAMK,SAAS,GAAGP,EAAE,IAAIN,gBAAgB,CAACH,YAAY,CAAC,CAAA;EACtD,oBAAOiB,cAAA,CAACD,SAAS,EAAA;AAAA,IAAA,GAAKJ,KAAK;AAAED,IAAAA,SAAS,EAAEO,SAAI,CAAC,WAAWlB,YAAY,CAAA,CAAE,EAAEW,SAAS,CAAA;AAAE,IAAG,CAAA;AACxF;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Title.mjs","sources":["../../src/title/Title.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { LabelHTMLAttributes, LiHTMLAttributes, ReactHTML } from 'react';\n\nimport { TitleTypes, Typography, Heading } from '../common';\n\nconst DEFAULT_TYPE = Typography.TITLE_GROUP;\n\nconst titleTypeMapping = {\n [Typography.TITLE_SCREEN]: 'h1',\n [Typography.TITLE_SECTION]: 'h2',\n [Typography.TITLE_SUBSECTION]: 'h3',\n [Typography.TITLE_BODY]: 'h4',\n [Typography.TITLE_GROUP]: 'h5',\n} as const;\n\ntype Props = LabelHTMLAttributes<HTMLHeadingElement | HTMLSpanElement | HTMLLabelElement> &\n LiHTMLAttributes<HTMLLIElement> & {\n /**\n * Default value will based one `type` prop\n */\n as?: 'span' | 'label' | 'li' | 'legend' | 'header' | Heading;\n /**\n * Default value: {@link DEFAULT_TYPE}\n */\n type?: TitleTypes;\n };\n\nfunction Title({ as, type = DEFAULT_TYPE, className, ...props }: Props) {\n const mapping = titleTypeMapping[type];\n const isTypeSupported = mapping !== undefined;\n if (isTypeSupported) {\n const HeaderTag = as ?? mapping;\n return <HeaderTag {...props} className={clsx(`np-text-${type}`, className)} />;\n }\n const HeaderTag = as ?? titleTypeMapping[DEFAULT_TYPE];\n return <HeaderTag {...props} className={clsx(`np-text-${DEFAULT_TYPE}`, className)} />;\n}\n\nexport default Title;\n"],"names":["DEFAULT_TYPE","Typography","TITLE_GROUP","titleTypeMapping","TITLE_SCREEN","TITLE_SECTION","TITLE_SUBSECTION","TITLE_BODY","Title","as","type","className","props","mapping","isTypeSupported","undefined","HeaderTag","_jsx","clsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAMA,YAAY,GAAGC,UAAU,CAACC,WAAW,CAAA;AAE3C,MAAMC,gBAAgB,GAAG;AACvB,EAAA,CAACF,UAAU,CAACG,YAAY,GAAG,IAAI;AAC/B,EAAA,CAACH,UAAU,CAACI,aAAa,GAAG,IAAI;AAChC,EAAA,CAACJ,UAAU,CAACK,gBAAgB,GAAG,IAAI;AACnC,EAAA,CAACL,UAAU,CAACM,UAAU,GAAG,IAAI;EAC7B,CAACN,UAAU,CAACC,WAAW,GAAG,IAAA;CAClB,CAAA;AAcV,SAASM,KAAKA,CAAC;EAAEC,EAAE;AAAEC,EAAAA,IAAI,GAAGV,YAAY;EAAEW,SAAS;EAAE,GAAGC,KAAAA;AAAc,CAAA,EAAA;AACpE,EAAA,MAAMC,OAAO,GAAGV,gBAAgB,CAACO,IAAI,CAAC,CAAA;AACtC,EAAA,MAAMI,eAAe,GAAGD,OAAO,KAAKE,SAAS,CAAA;AAC7C,EAAA,IAAID,eAAe,EAAE;AACnB,IAAA,MAAME,SAAS,GAAGP,EAAE,IAAII,OAAO,CAAA;IAC/B,oBAAOI,GAAA,CAACD,SAAS,EAAA;AAAA,MAAA,GAAKJ,KAAK;AAAED,MAAAA,SAAS,EAAEO,IAAI,CAAC,WAAWR,IAAI,CAAA,CAAE,EAAEC,SAAS,CAAA;AAAE,MAAG,CAAA;AAChF,GAAA;AACA,EAAA,MAAMK,SAAS,GAAGP,EAAE,IAAIN,gBAAgB,CAACH,YAAY,CAAC,CAAA;EACtD,oBAAOiB,GAAA,CAACD,SAAS,EAAA;AAAA,IAAA,GAAKJ,KAAK;AAAED,IAAAA,SAAS,EAAEO,IAAI,CAAC,WAAWlB,YAAY,CAAA,CAAE,EAAEW,SAAS,CAAA;AAAE,IAAG,CAAA;AACxF;;;;"}
1
+ {"version":3,"file":"Title.mjs","sources":["../../src/title/Title.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { LabelHTMLAttributes, LiHTMLAttributes, ReactHTML } from 'react';\n\nimport { TitleTypes, Typography, Heading } from '../common';\n\nconst DEFAULT_TYPE = Typography.TITLE_GROUP;\n\nconst titleTypeMapping = {\n [Typography.TITLE_SCREEN]: 'h1',\n [Typography.TITLE_SECTION]: 'h2',\n [Typography.TITLE_SUBSECTION]: 'h3',\n [Typography.TITLE_BODY]: 'h4',\n [Typography.TITLE_GROUP]: 'h5',\n} as const;\n\ntype Props = LabelHTMLAttributes<HTMLHeadingElement | HTMLSpanElement | HTMLLabelElement> &\n LiHTMLAttributes<HTMLLIElement> & {\n /**\n * Default value will based one `type` prop\n */\n as?: 'span' | 'label' | 'li' | 'legend' | 'header' | Heading;\n /**\n * Default value: {@link DEFAULT_TYPE}\n */\n type?: TitleTypes;\n };\n\nfunction Title({ as, type = DEFAULT_TYPE, className, ...props }: Props) {\n const mapping = titleTypeMapping[type];\n const isTypeSupported = mapping !== undefined;\n\n if (isTypeSupported) {\n const HeaderTag = as ?? mapping;\n return <HeaderTag {...props} className={clsx(`np-text-${type}`, className)} />;\n }\n const HeaderTag = as ?? titleTypeMapping[DEFAULT_TYPE];\n return <HeaderTag {...props} className={clsx(`np-text-${DEFAULT_TYPE}`, className)} />;\n}\n\nexport default Title;\n"],"names":["DEFAULT_TYPE","Typography","TITLE_GROUP","titleTypeMapping","TITLE_SCREEN","TITLE_SECTION","TITLE_SUBSECTION","TITLE_BODY","Title","as","type","className","props","mapping","isTypeSupported","undefined","HeaderTag","_jsx","clsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAMA,YAAY,GAAGC,UAAU,CAACC,WAAW,CAAA;AAE3C,MAAMC,gBAAgB,GAAG;AACvB,EAAA,CAACF,UAAU,CAACG,YAAY,GAAG,IAAI;AAC/B,EAAA,CAACH,UAAU,CAACI,aAAa,GAAG,IAAI;AAChC,EAAA,CAACJ,UAAU,CAACK,gBAAgB,GAAG,IAAI;AACnC,EAAA,CAACL,UAAU,CAACM,UAAU,GAAG,IAAI;EAC7B,CAACN,UAAU,CAACC,WAAW,GAAG,IAAA;CAClB,CAAA;AAcV,SAASM,KAAKA,CAAC;EAAEC,EAAE;AAAEC,EAAAA,IAAI,GAAGV,YAAY;EAAEW,SAAS;EAAE,GAAGC,KAAAA;AAAc,CAAA,EAAA;AACpE,EAAA,MAAMC,OAAO,GAAGV,gBAAgB,CAACO,IAAI,CAAC,CAAA;AACtC,EAAA,MAAMI,eAAe,GAAGD,OAAO,KAAKE,SAAS,CAAA;AAE7C,EAAA,IAAID,eAAe,EAAE;AACnB,IAAA,MAAME,SAAS,GAAGP,EAAE,IAAII,OAAO,CAAA;IAC/B,oBAAOI,GAAA,CAACD,SAAS,EAAA;AAAA,MAAA,GAAKJ,KAAK;AAAED,MAAAA,SAAS,EAAEO,IAAI,CAAC,WAAWR,IAAI,CAAA,CAAE,EAAEC,SAAS,CAAA;AAAE,MAAG,CAAA;AAChF,GAAA;AACA,EAAA,MAAMK,SAAS,GAAGP,EAAE,IAAIN,gBAAgB,CAACH,YAAY,CAAC,CAAA;EACtD,oBAAOiB,GAAA,CAACD,SAAS,EAAA;AAAA,IAAA,GAAKJ,KAAK;AAAED,IAAAA,SAAS,EAAEO,IAAI,CAAC,WAAWlB,YAAY,CAAA,CAAE,EAAEW,SAAS,CAAA;AAAE,IAAG,CAAA;AACxF;;;;"}
@@ -1,4 +1,4 @@
1
- import { Sentiment, Size } from '../common';
1
+ import { Sentiment, Size, Status } from '../common';
2
2
  export type AlertAction = {
3
3
  'aria-label'?: string;
4
4
  href?: string;
@@ -8,7 +8,7 @@ export type AlertAction = {
8
8
  };
9
9
  /** @deprecated Use `"top" | "bottom"` instead. */
10
10
  type AlertTypeDeprecated = `${Sentiment.SUCCESS | Sentiment.INFO | Sentiment.ERROR}`;
11
- type AlertTypeResolved = `${Sentiment.POSITIVE | Sentiment.NEUTRAL | Sentiment.WARNING | Sentiment.PENDING | Sentiment.NEGATIVE}`;
11
+ type AlertTypeResolved = `${Sentiment.POSITIVE | Sentiment.NEUTRAL | Sentiment.WARNING | Sentiment.NEGATIVE | Sentiment.PENDING | Status.PENDING}`;
12
12
  export type AlertType = AlertTypeResolved | AlertTypeDeprecated;
13
13
  export declare enum AlertArrowPosition {
14
14
  TOP_LEFT = "up-left",
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/alert/Alert.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAe,SAAS,EAAE,IAAI,EAAwC,MAAM,WAAW,CAAC;AAU/F,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,kDAAkD;AAClD,KAAK,mBAAmB,GAAG,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,KAAK,EA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ACf,kGAAkG;IAClG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACvD,2DAA2D;IAC3D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAChC,oHAAoH;IACpH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,2CAA2C;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;CAClB;AAeD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,MAAM,EACN,SAAS,EACT,IAAI,EACJ,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EACL,IAAgB,EAChB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,GACZ,EAAE,UAAU,+BAuIZ"}
@@ -1,6 +1,6 @@
1
1
  import { AvatarProps } from '../avatar';
2
2
  import { BadgeProps } from '../badge';
3
- import { ProfileTypePersonal, ProfileTypeBusiness, Sentiment } from '../common';
3
+ import { ProfileTypePersonal, ProfileTypeBusiness, Sentiment, Status } from '../common';
4
4
  export type AvatarWrapperProps = {
5
5
  url?: string;
6
6
  'aria-label'?: string;
@@ -16,7 +16,7 @@ export type AvatarWrapperProps = {
16
16
  } | {
17
17
  badgeUrl?: never;
18
18
  badgeAltText?: never;
19
- badgeStatusIcon: Sentiment;
19
+ badgeStatusIcon: Sentiment | Status.PENDING;
20
20
  } | {
21
21
  badgeUrl?: never;
22
22
  badgeAltText?: never;
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarWrapper.d.ts","sourceRoot":"","sources":["../../../src/avatarWrapper/AvatarWrapper.tsx"],"names":[],"mappings":"AAGA,OAAe,EAAE,WAAW,EAAc,MAAM,WAAW,CAAC;AA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MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,GAAG,CACA;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,eAAe,EAAE,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC;CAC7C,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,CACJ,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa,sIAWhB,kBAAkB,gCAoDpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sentiment.d.ts","sourceRoot":"","sources":["../../../../src/common/propsValues/sentiment.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IAEnB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,OAAO,YAAY;CACpB"}
1
+ {"version":3,"file":"sentiment.d.ts","sourceRoot":"","sources":["../../../../src/common/propsValues/sentiment.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IAEnB,OAAO,YAAY;IAEnB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,OAAO,YAAY;CACpB"}
@@ -1,13 +1,13 @@
1
1
  export type ProgressBarProps = {
2
2
  className?: string;
3
- description?: string;
3
+ description?: React.ReactNode;
4
4
  id: string;
5
- title: string;
5
+ title: React.ReactNode;
6
6
  progress: {
7
7
  value: number;
8
8
  max: number;
9
9
  };
10
- textEnd: string;
10
+ textEnd: React.ReactNode;
11
11
  };
12
12
  declare const ProgressBar: ({ className, description, id, title, progress, textEnd, }: ProgressBarProps) => import("react").JSX.Element;
13
13
  export default ProgressBar;
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../src/progressBar/ProgressBar.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,WAAW,8DAOd,gBAAgB,gCAuBlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../src/progressBar/ProgressBar.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,WAAW,8DAOd,gBAAgB,gCAuBlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,10 +1,11 @@
1
- import { SizeSmall, SizeMedium, SizeLarge, Sentiment } from '../common';
1
+ import { SizeSmall, SizeMedium, SizeLarge, Sentiment, Status } from '../common';
2
2
  /**
3
3
  * @deprecated use `16 | 24 | 32 | 40 | 48 | 56 | 72` component instead
4
4
  */
5
5
  type LegacySizes = SizeSmall | SizeMedium | SizeLarge;
6
+ export type StatusIconSentiment = Sentiment | Status.PENDING;
6
7
  export type StatusIconProps = {
7
- sentiment?: `${Sentiment}`;
8
+ sentiment?: `${StatusIconSentiment}`;
8
9
  size?: LegacySizes | 16 | 24 | 32 | 40 | 48 | 56 | 72;
9
10
  /**
10
11
  * Override for the sentiment's-derived, default, accessible
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../src/statusIcon/StatusIcon.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAoB,MAAM,WAAW,CAAC;AAM1F;;GAEG;AACH,KAAK,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEtD,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,GAAG,SAAS,EAAE,CAAC;IAC3B,IAAI,CAAC,EAAE,WAAW,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACtD;;;;SAIK;IACL,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAQF,QAAA,MAAM,UAAU,6CAA+D,eAAe,gCA8D7F,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../src/statusIcon/StatusIcon.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAoB,MAAM,EAAE,MAAM,WAAW,CAAC;AAMlG;;GAEG;AACH,KAAK,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,GAAG,mBAAmB,EAAE,CAAC;IACrC,IAAI,CAAC,EAAE,WAAW,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACtD;;;;SAIK;IACL,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAQF,QAAA,MAAM,UAAU,6CAA+D,eAAe,gCA8D7F,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/title/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAa,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAc,OAAO,EAAE,MAAM,WAAW,CAAC;AAY5D,KAAK,KAAK,GAAG,mBAAmB,CAAC,kBAAkB,GAAG,eAAe,GAAG,gBAAgB,CAAC,GACvF,gBAAgB,CAAC,aAAa,CAAC,GAAG;IAChC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC7D;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEJ,iBAAS,KAAK,CAAC,EAAE,EAAE,EAAE,IAAmB,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,+BASrE;AAED,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/title/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAa,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAc,OAAO,EAAE,MAAM,WAAW,CAAC;AAY5D,KAAK,KAAK,GAAG,mBAAmB,CAAC,kBAAkB,GAAG,eAAe,GAAG,gBAAgB,CAAC,GACvF,gBAAgB,CAAC,aAAa,CAAC,GAAG;IAChC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC7D;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEJ,iBAAS,KAAK,CAAC,EAAE,EAAE,EAAE,IAAmB,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,+BAUrE;AAED,eAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "46.96.1",
3
+ "version": "46.97.1",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -68,7 +68,7 @@
68
68
  "@testing-library/jest-dom": "^6.4.6",
69
69
  "@testing-library/react": "^16.0.0",
70
70
  "@testing-library/user-event": "^14.5.2",
71
- "@transferwise/icons": "^3.20.0",
71
+ "@transferwise/icons": "^3.21.0",
72
72
  "@tsconfig/recommended": "^1.0.7",
73
73
  "@types/babel__core": "^7.20.5",
74
74
  "@types/commonmark": "^0.27.9",
@@ -80,11 +80,11 @@
80
80
  "@types/react": "^18.3.11",
81
81
  "@types/react-dom": "^18.3.1",
82
82
  "@types/react-transition-group": "4.4.10",
83
- "@wise/art": "^2.20.0",
83
+ "@wise/art": "^2.20.1",
84
84
  "@wise/eslint-config": "^12.3.0",
85
85
  "babel-plugin-formatjs": "^10.5.16",
86
86
  "enzyme": "^3.11.0",
87
- "eslint": "^9.22.0",
87
+ "eslint": "^9.26.0",
88
88
  "gulp": "^5.0.0",
89
89
  "jest": "^29.7.0",
90
90
  "jest-environment-jsdom": "^29.7.0",
@@ -95,12 +95,12 @@
95
95
  "rollup-preserve-directives": "^1.1.1",
96
96
  "storybook": "^8.2.2",
97
97
  "@transferwise/less-config": "3.1.1",
98
- "@transferwise/neptune-css": "14.24.3",
98
+ "@transferwise/neptune-css": "14.24.4",
99
99
  "@wise/components-theming": "1.6.2",
100
100
  "@wise/wds-configs": "0.0.0"
101
101
  },
102
102
  "peerDependencies": {
103
- "@transferwise/icons": "^3.20.0",
103
+ "@transferwise/icons": "^3.21.0",
104
104
  "@transferwise/neptune-css": "^14.24",
105
105
  "@wise/art": "^2.16",
106
106
  "@wise/components-theming": "^1.0.0",
@@ -4,7 +4,7 @@ import { action } from '@storybook/addon-actions';
4
4
  import { ClockBorderless } from '@transferwise/icons';
5
5
 
6
6
  import { lorem40 } from '../test-utils';
7
- import { Sentiment } from '../common';
7
+ import { Sentiment, Status } from '../common';
8
8
  import { Button, Field, SelectInput } from '..';
9
9
  import Alert, { AlertArrowPosition, type AlertProps as FullAlertProps } from './Alert';
10
10
 
@@ -33,6 +33,7 @@ export default {
33
33
  Sentiment.NEUTRAL,
34
34
  Sentiment.WARNING,
35
35
  Sentiment.PENDING,
36
+ Status.PENDING,
36
37
  ],
37
38
  },
38
39
  },
@@ -51,7 +52,8 @@ export const Variants: Story = {
51
52
  { type: Sentiment.NEGATIVE, title: 'Negative Title' },
52
53
  { type: Sentiment.NEUTRAL, title: 'Neutral Title' },
53
54
  { type: Sentiment.WARNING, title: 'Warning Title' },
54
- { type: Sentiment.PENDING, title: 'Pending Title' },
55
+ { type: Sentiment.PENDING, title: 'Pending Sentiment Title' },
56
+ { type: Status.PENDING, title: 'Pending Status Title' },
55
57
  ];
56
58
 
57
59
  return (
@@ -59,7 +61,7 @@ export const Variants: Story = {
59
61
  {variants.map((variant) => (
60
62
  <Alert
61
63
  key={variant.type}
62
- type={variant.type}
64
+ type={variant.type as AlertProps['type']}
63
65
  title={variant.title}
64
66
  message={message}
65
67
  action={
@@ -2,7 +2,14 @@ import { clsx } from 'clsx';
2
2
  import { useState, useRef, useEffect } from 'react';
3
3
 
4
4
  import Body from '../body/Body';
5
- import { CloseButton, Sentiment, Size, Typography, WDS_LIVE_REGION_DELAY_MS } from '../common';
5
+ import {
6
+ CloseButton,
7
+ Sentiment,
8
+ Size,
9
+ Status,
10
+ Typography,
11
+ WDS_LIVE_REGION_DELAY_MS,
12
+ } from '../common';
6
13
 
7
14
  import StatusIcon from '../statusIcon';
8
15
  import Title from '../title/Title';
@@ -26,8 +33,10 @@ type AlertTypeResolved = `${
26
33
  | Sentiment.POSITIVE
27
34
  | Sentiment.NEUTRAL
28
35
  | Sentiment.WARNING
36
+ | Sentiment.NEGATIVE
37
+ // remove when all instances of Sentiment.PENDING have been updated to Status.PENDING
29
38
  | Sentiment.PENDING
30
- | Sentiment.NEGATIVE}`;
39
+ | Status.PENDING}`;
31
40
  export type AlertType = AlertTypeResolved | AlertTypeDeprecated;
32
41
 
33
42
  export enum AlertArrowPosition {
@@ -1,6 +1,6 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
 
3
- import { ProfileType, Sentiment } from '../common';
3
+ import { ProfileType, Sentiment, Status } from '../common';
4
4
 
5
5
  import AvatarWrapper from './AvatarWrapper';
6
6
 
@@ -96,7 +96,7 @@ export const All: Story = {
96
96
  </div>
97
97
  Default
98
98
  <div>
99
- <AvatarWrapper badgeStatusIcon={Sentiment.PENDING} avatarProps={avatarProps} />
99
+ <AvatarWrapper badgeStatusIcon={Status.PENDING} avatarProps={avatarProps} />
100
100
  </div>
101
101
  </div>
102
102
  </div>
@@ -10,6 +10,7 @@ import {
10
10
  Size,
11
11
  Sentiment,
12
12
  getInitials,
13
+ Status,
13
14
  } from '../common';
14
15
  import StatusIcon from '../statusIcon/StatusIcon';
15
16
 
@@ -17,7 +18,7 @@ interface OptionalBadgeProps extends Omit<BadgeProps, 'badge'> {
17
18
  url?: string;
18
19
  ariaLabel?: string;
19
20
  altText?: string;
20
- statusIcon?: Sentiment;
21
+ statusIcon?: Sentiment | Status.PENDING;
21
22
  }
22
23
 
23
24
  const OptionalBadge = ({
@@ -66,7 +67,7 @@ export type AvatarWrapperProps = {
66
67
  | {
67
68
  badgeUrl?: never;
68
69
  badgeAltText?: never;
69
- badgeStatusIcon: Sentiment;
70
+ badgeStatusIcon: Sentiment | Status.PENDING;
70
71
  }
71
72
  | {
72
73
  badgeUrl?: never;
@@ -3,6 +3,7 @@ export enum Sentiment {
3
3
  NEUTRAL = 'neutral',
4
4
  POSITIVE = 'positive',
5
5
  WARNING = 'warning',
6
+ // remove when all instances of Sentiment.PENDING have been updated to Status.PENDING
6
7
  PENDING = 'pending',
7
8
 
8
9
  /**
@@ -71,8 +71,6 @@
71
71
  line-height: 1.2;
72
72
  line-height: var(--line-height-title);
73
73
  letter-spacing: 0;
74
- -webkit-hyphens: auto;
75
- hyphens: auto;
76
74
  margin-bottom: 0;
77
75
  margin-bottom: initial;
78
76
  font-size: 1.375rem;
@@ -83,6 +81,34 @@
83
81
  line-height: 125%;
84
82
  height: 72px !important;
85
83
  height: var(--size-72) !important;
84
+ }@supports (hyphenate-limit-chars: 1) {
85
+ .np-form-control--size-lg {
86
+ -webkit-hyphens: auto;
87
+ hyphens: auto;
88
+ hyphenate-limit-chars: 7 3;
89
+ }
90
+ @media (min-width: 768px) {
91
+ .np-form-control--size-lg {
92
+ hyphenate-limit-chars: 8 3;
93
+ }
94
+ }
95
+ @media (min-width: 992px) {
96
+ .np-form-control--size-lg {
97
+ hyphenate-limit-chars: 10 4 3;
98
+ }
99
+ }
100
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
101
+ .np-form-control--size-lg {
102
+ -webkit-hyphens: auto;
103
+ hyphens: auto;
104
+ -webkit-hyphenate-limit-before: 3;
105
+ -webkit-hyphenate-limit-after: 3;
106
+ }
107
+ @media (min-width: 992px) {
108
+ .np-form-control--size-lg {
109
+ -webkit-hyphenate-limit-before: 4;
110
+ }
111
+ }
86
112
  }.np-form-control--size-lg + p,
87
113
  .np-form-control--size-lg + ul:not(.list-unstyled),
88
114
  .np-form-control--size-lg + ol:not(.list-unstyled) {
@@ -71,8 +71,6 @@
71
71
  line-height: 1.2;
72
72
  line-height: var(--line-height-title);
73
73
  letter-spacing: 0;
74
- -webkit-hyphens: auto;
75
- hyphens: auto;
76
74
  margin-bottom: 0;
77
75
  margin-bottom: initial;
78
76
  font-size: 1.375rem;
@@ -83,6 +81,34 @@
83
81
  line-height: 125%;
84
82
  height: 72px !important;
85
83
  height: var(--size-72) !important;
84
+ }@supports (hyphenate-limit-chars: 1) {
85
+ .np-form-control--size-lg {
86
+ -webkit-hyphens: auto;
87
+ hyphens: auto;
88
+ hyphenate-limit-chars: 7 3;
89
+ }
90
+ @media (min-width: 768px) {
91
+ .np-form-control--size-lg {
92
+ hyphenate-limit-chars: 8 3;
93
+ }
94
+ }
95
+ @media (min-width: 992px) {
96
+ .np-form-control--size-lg {
97
+ hyphenate-limit-chars: 10 4 3;
98
+ }
99
+ }
100
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
101
+ .np-form-control--size-lg {
102
+ -webkit-hyphens: auto;
103
+ hyphens: auto;
104
+ -webkit-hyphenate-limit-before: 3;
105
+ -webkit-hyphenate-limit-after: 3;
106
+ }
107
+ @media (min-width: 992px) {
108
+ .np-form-control--size-lg {
109
+ -webkit-hyphenate-limit-before: 4;
110
+ }
111
+ }
86
112
  }.np-form-control--size-lg + p,
87
113
  .np-form-control--size-lg + ul:not(.list-unstyled),
88
114
  .np-form-control--size-lg + ol:not(.list-unstyled) {
package/src/main.css CHANGED
@@ -2585,8 +2585,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2585
2585
  line-height: 1.2;
2586
2586
  line-height: var(--line-height-title);
2587
2587
  letter-spacing: 0;
2588
- -webkit-hyphens: auto;
2589
- hyphens: auto;
2590
2588
  margin-bottom: 0;
2591
2589
  margin-bottom: initial;
2592
2590
  font-size: 1.375rem;
@@ -2598,6 +2596,36 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2598
2596
  height: 72px !important;
2599
2597
  height: var(--size-72) !important;
2600
2598
  }
2599
+ @supports (hyphenate-limit-chars: 1) {
2600
+ .np-form-control--size-lg {
2601
+ -webkit-hyphens: auto;
2602
+ hyphens: auto;
2603
+ hyphenate-limit-chars: 7 3;
2604
+ }
2605
+ @media (min-width: 768px) {
2606
+ .np-form-control--size-lg {
2607
+ hyphenate-limit-chars: 8 3;
2608
+ }
2609
+ }
2610
+ @media (min-width: 992px) {
2611
+ .np-form-control--size-lg {
2612
+ hyphenate-limit-chars: 10 4 3;
2613
+ }
2614
+ }
2615
+ }
2616
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
2617
+ .np-form-control--size-lg {
2618
+ -webkit-hyphens: auto;
2619
+ hyphens: auto;
2620
+ -webkit-hyphenate-limit-before: 3;
2621
+ -webkit-hyphenate-limit-after: 3;
2622
+ }
2623
+ @media (min-width: 992px) {
2624
+ .np-form-control--size-lg {
2625
+ -webkit-hyphenate-limit-before: 4;
2626
+ }
2627
+ }
2628
+ }
2601
2629
  .np-form-control--size-lg + p,
2602
2630
  .np-form-control--size-lg + ul:not(.list-unstyled),
2603
2631
  .np-form-control--size-lg + ol:not(.list-unstyled) {
@@ -4023,8 +4051,6 @@ html:not([dir="rtl"]) .np-navigation-option {
4023
4051
  line-height: 1.2;
4024
4052
  line-height: var(--line-height-title);
4025
4053
  letter-spacing: 0;
4026
- -webkit-hyphens: auto;
4027
- hyphens: auto;
4028
4054
  margin-bottom: 0;
4029
4055
  margin-bottom: initial;
4030
4056
  font-weight: 600;
@@ -4034,6 +4060,36 @@ html:not([dir="rtl"]) .np-navigation-option {
4034
4060
  letter-spacing: -0.02em;
4035
4061
  line-height: 122%;
4036
4062
  }
4063
+ @supports (hyphenate-limit-chars: 1) {
4064
+ .np-popover__container.np-bottom-sheet .np-popover__title {
4065
+ -webkit-hyphens: auto;
4066
+ hyphens: auto;
4067
+ hyphenate-limit-chars: 7 3;
4068
+ }
4069
+ @media (min-width: 768px) {
4070
+ .np-popover__container.np-bottom-sheet .np-popover__title {
4071
+ hyphenate-limit-chars: 8 3;
4072
+ }
4073
+ }
4074
+ @media (min-width: 992px) {
4075
+ .np-popover__container.np-bottom-sheet .np-popover__title {
4076
+ hyphenate-limit-chars: 10 4 3;
4077
+ }
4078
+ }
4079
+ }
4080
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
4081
+ .np-popover__container.np-bottom-sheet .np-popover__title {
4082
+ -webkit-hyphens: auto;
4083
+ hyphens: auto;
4084
+ -webkit-hyphenate-limit-before: 3;
4085
+ -webkit-hyphenate-limit-after: 3;
4086
+ }
4087
+ @media (min-width: 992px) {
4088
+ .np-popover__container.np-bottom-sheet .np-popover__title {
4089
+ -webkit-hyphenate-limit-before: 4;
4090
+ }
4091
+ }
4092
+ }
4037
4093
  .np-popover__container.np-bottom-sheet .np-popover__title + p,
4038
4094
  .np-popover__container.np-bottom-sheet .np-popover__title + ul:not(.list-unstyled),
4039
4095
  .np-popover__container.np-bottom-sheet .np-popover__title + ol:not(.list-unstyled) {