@transferwise/components 46.171.0 → 46.172.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 (189) hide show
  1. package/build/Chips/Chip/Chip.js.map +1 -1
  2. package/build/Chips/Chip/Chip.mjs.map +1 -1
  3. package/build/Chips/Chips.js +9 -17
  4. package/build/Chips/Chips.js.map +1 -1
  5. package/build/Chips/Chips.mjs +9 -17
  6. package/build/Chips/Chips.mjs.map +1 -1
  7. package/build/DateInput/DateInput.js +1 -0
  8. package/build/DateInput/DateInput.js.map +1 -1
  9. package/build/DateInput/DateInput.mjs +1 -0
  10. package/build/DateInput/DateInput.mjs.map +1 -1
  11. package/build/ExpressiveMoneyInput/CurrencySelector/CurrencySelector.js +1 -0
  12. package/build/ExpressiveMoneyInput/CurrencySelector/CurrencySelector.js.map +1 -1
  13. package/build/ExpressiveMoneyInput/CurrencySelector/CurrencySelector.mjs +1 -0
  14. package/build/ExpressiveMoneyInput/CurrencySelector/CurrencySelector.mjs.map +1 -1
  15. package/build/Header/index.js +14 -0
  16. package/build/Header/index.js.map +1 -0
  17. package/build/Header/index.mjs +9 -0
  18. package/build/Header/index.mjs.map +1 -0
  19. package/build/Inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs +2 -2
  20. package/build/Inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs.map +1 -1
  21. package/build/Inputs/SelectInput/Options/SelectInputOptions.js +1 -0
  22. package/build/Inputs/SelectInput/Options/SelectInputOptions.js.map +1 -1
  23. package/build/Inputs/SelectInput/Options/SelectInputOptions.mjs +1 -0
  24. package/build/Inputs/SelectInput/Options/SelectInputOptions.mjs.map +1 -1
  25. package/build/MoneyInput/MoneyInput.js +1 -0
  26. package/build/MoneyInput/MoneyInput.js.map +1 -1
  27. package/build/MoneyInput/MoneyInput.mjs +1 -0
  28. package/build/MoneyInput/MoneyInput.mjs.map +1 -1
  29. package/build/PhoneNumberInput/PhoneNumberInput.js +1 -0
  30. package/build/PhoneNumberInput/PhoneNumberInput.js.map +1 -1
  31. package/build/PhoneNumberInput/PhoneNumberInput.mjs +1 -0
  32. package/build/PhoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  33. package/build/Section/Section.js +6 -1
  34. package/build/Section/Section.js.map +1 -1
  35. package/build/Section/Section.mjs +6 -1
  36. package/build/Section/Section.mjs.map +1 -1
  37. package/build/Typeahead/Typeahead.js +1 -2
  38. package/build/Typeahead/Typeahead.js.map +1 -1
  39. package/build/Typeahead/Typeahead.mjs +1 -2
  40. package/build/Typeahead/Typeahead.mjs.map +1 -1
  41. package/build/i18n/cs.json +0 -1
  42. package/build/i18n/cs.json.js +0 -1
  43. package/build/i18n/cs.json.js.map +1 -1
  44. package/build/i18n/cs.json.mjs +0 -1
  45. package/build/i18n/cs.json.mjs.map +1 -1
  46. package/build/i18n/de.json +0 -1
  47. package/build/i18n/de.json.js +0 -1
  48. package/build/i18n/de.json.js.map +1 -1
  49. package/build/i18n/de.json.mjs +0 -1
  50. package/build/i18n/de.json.mjs.map +1 -1
  51. package/build/i18n/en.json +0 -1
  52. package/build/i18n/en.json.js +0 -1
  53. package/build/i18n/en.json.js.map +1 -1
  54. package/build/i18n/en.json.mjs +0 -1
  55. package/build/i18n/en.json.mjs.map +1 -1
  56. package/build/i18n/es.json +0 -1
  57. package/build/i18n/es.json.js +0 -1
  58. package/build/i18n/es.json.js.map +1 -1
  59. package/build/i18n/es.json.mjs +0 -1
  60. package/build/i18n/es.json.mjs.map +1 -1
  61. package/build/i18n/hu.json +0 -1
  62. package/build/i18n/hu.json.js +0 -1
  63. package/build/i18n/hu.json.js.map +1 -1
  64. package/build/i18n/hu.json.mjs +0 -1
  65. package/build/i18n/hu.json.mjs.map +1 -1
  66. package/build/i18n/id.json +0 -1
  67. package/build/i18n/id.json.js +0 -1
  68. package/build/i18n/id.json.js.map +1 -1
  69. package/build/i18n/id.json.mjs +0 -1
  70. package/build/i18n/id.json.mjs.map +1 -1
  71. package/build/i18n/it.json +0 -1
  72. package/build/i18n/it.json.js +0 -1
  73. package/build/i18n/it.json.js.map +1 -1
  74. package/build/i18n/it.json.mjs +0 -1
  75. package/build/i18n/it.json.mjs.map +1 -1
  76. package/build/i18n/ja.json +0 -1
  77. package/build/i18n/ja.json.js +0 -1
  78. package/build/i18n/ja.json.js.map +1 -1
  79. package/build/i18n/ja.json.mjs +0 -1
  80. package/build/i18n/ja.json.mjs.map +1 -1
  81. package/build/i18n/nl.json +0 -1
  82. package/build/i18n/nl.json.js +0 -1
  83. package/build/i18n/nl.json.js.map +1 -1
  84. package/build/i18n/nl.json.mjs +0 -1
  85. package/build/i18n/nl.json.mjs.map +1 -1
  86. package/build/i18n/pl.json +0 -1
  87. package/build/i18n/pl.json.js +0 -1
  88. package/build/i18n/pl.json.js.map +1 -1
  89. package/build/i18n/pl.json.mjs +0 -1
  90. package/build/i18n/pl.json.mjs.map +1 -1
  91. package/build/i18n/pt.json +0 -1
  92. package/build/i18n/pt.json.js +0 -1
  93. package/build/i18n/pt.json.js.map +1 -1
  94. package/build/i18n/pt.json.mjs +0 -1
  95. package/build/i18n/pt.json.mjs.map +1 -1
  96. package/build/i18n/ro.json +0 -1
  97. package/build/i18n/ro.json.js +0 -1
  98. package/build/i18n/ro.json.js.map +1 -1
  99. package/build/i18n/ro.json.mjs +0 -1
  100. package/build/i18n/ro.json.mjs.map +1 -1
  101. package/build/i18n/ru.json +0 -1
  102. package/build/i18n/ru.json.js +0 -1
  103. package/build/i18n/ru.json.js.map +1 -1
  104. package/build/i18n/ru.json.mjs +0 -1
  105. package/build/i18n/ru.json.mjs.map +1 -1
  106. package/build/i18n/th.json +0 -1
  107. package/build/i18n/th.json.js +0 -1
  108. package/build/i18n/th.json.js.map +1 -1
  109. package/build/i18n/th.json.mjs +0 -1
  110. package/build/i18n/th.json.mjs.map +1 -1
  111. package/build/i18n/tr.json +1 -1
  112. package/build/i18n/tr.json.js +1 -1
  113. package/build/i18n/tr.json.mjs +1 -1
  114. package/build/i18n/uk.json +0 -1
  115. package/build/i18n/uk.json.js +0 -1
  116. package/build/i18n/uk.json.js.map +1 -1
  117. package/build/i18n/uk.json.mjs +0 -1
  118. package/build/i18n/uk.json.mjs.map +1 -1
  119. package/build/i18n/zh-CN.json +0 -1
  120. package/build/i18n/zh-CN.json.js +0 -1
  121. package/build/i18n/zh-CN.json.js.map +1 -1
  122. package/build/i18n/zh-CN.json.mjs +0 -1
  123. package/build/i18n/zh-CN.json.mjs.map +1 -1
  124. package/build/i18n/zh-HK.json +0 -1
  125. package/build/i18n/zh-HK.json.js +0 -1
  126. package/build/i18n/zh-HK.json.js.map +1 -1
  127. package/build/i18n/zh-HK.json.mjs +0 -1
  128. package/build/i18n/zh-HK.json.mjs.map +1 -1
  129. package/build/index.js +4 -4
  130. package/build/index.mjs +1 -1
  131. package/build/main.css +12 -2
  132. package/build/styles/Chips/Chip/Chip.css +8 -2
  133. package/build/styles/Chips/Chips.css +4 -0
  134. package/build/styles/main.css +12 -2
  135. package/build/types/Chips/Chip/Chip.d.ts +2 -1
  136. package/build/types/Chips/Chip/Chip.d.ts.map +1 -1
  137. package/build/types/Chips/Chips.d.ts.map +1 -1
  138. package/build/types/Header/index.d.ts +6 -1
  139. package/build/types/Header/index.d.ts.map +1 -1
  140. package/build/types/Section/Section.d.ts +5 -8
  141. package/build/types/Section/Section.d.ts.map +1 -1
  142. package/build/types/index.d.ts +1 -1
  143. package/build/types/index.d.ts.map +1 -1
  144. package/build/types/test-utils/index.d.ts +0 -2
  145. package/build/types/test-utils/index.d.ts.map +1 -1
  146. package/package.json +1 -1
  147. package/src/Chips/Chip/Chip.css +8 -2
  148. package/src/Chips/Chip/Chip.less +8 -2
  149. package/src/Chips/Chip/Chip.tsx +2 -2
  150. package/src/Chips/Chips.css +4 -0
  151. package/src/Chips/Chips.less +4 -0
  152. package/src/Chips/Chips.test.tsx +21 -2
  153. package/src/Chips/Chips.tsx +8 -17
  154. package/src/Chips/_stories/Chips.story.tsx +48 -0
  155. package/src/Chips/_stories/Chips.test.story.tsx +35 -12
  156. package/src/Header/_stories/Header.story.tsx +2 -1
  157. package/src/Header/index.ts +8 -1
  158. package/src/Section/Section.test.tsx +16 -0
  159. package/src/Section/Section.tsx +7 -2
  160. package/src/Section/_stories/Section.story.tsx +7 -8
  161. package/src/Section/_stories/Section.test.story.tsx +2 -3
  162. package/src/i18n/cs.json +0 -1
  163. package/src/i18n/de.json +0 -1
  164. package/src/i18n/en.json +0 -1
  165. package/src/i18n/es.json +0 -1
  166. package/src/i18n/hu.json +0 -1
  167. package/src/i18n/id.json +0 -1
  168. package/src/i18n/it.json +0 -1
  169. package/src/i18n/ja.json +0 -1
  170. package/src/i18n/nl.json +0 -1
  171. package/src/i18n/pl.json +0 -1
  172. package/src/i18n/pt.json +0 -1
  173. package/src/i18n/ro.json +0 -1
  174. package/src/i18n/ru.json +0 -1
  175. package/src/i18n/th.json +0 -1
  176. package/src/i18n/tr.json +1 -1
  177. package/src/i18n/uk.json +0 -1
  178. package/src/i18n/zh-CN.json +0 -1
  179. package/src/i18n/zh-HK.json +0 -1
  180. package/src/index.ts +1 -1
  181. package/src/main.css +12 -2
  182. package/src/main.less +1 -0
  183. package/build/Chips/Chips.messages.js +0 -14
  184. package/build/Chips/Chips.messages.js.map +0 -1
  185. package/build/Chips/Chips.messages.mjs +0 -10
  186. package/build/Chips/Chips.messages.mjs.map +0 -1
  187. package/build/types/Chips/Chips.messages.d.ts +0 -9
  188. package/build/types/Chips/Chips.messages.d.ts.map +0 -1
  189. package/src/Chips/Chips.messages.ts +0 -9
@@ -8,7 +8,6 @@ import {
8
8
  } from '../../../.storybook/components/sandbox/SandboxEditor';
9
9
  import Accordion from '../../Accordion';
10
10
  import Card from '../../_deprecated/Card';
11
- import Header from '../../Header';
12
11
  import ListItem from '../../ListItem';
13
12
  import Section from '../Section';
14
13
 
@@ -20,11 +19,11 @@ export default {
20
19
  export const Sandbox = createSandboxStory({
21
20
  code: `<>
22
21
  <Section>
23
- <Header title="Section with header" />
22
+ <Section.Header title="Section with header" />
24
23
  Section content goes here.
25
24
  </Section>
26
25
  <Section>
27
- <Header title="Another section" />
26
+ <Section.Header title="Another section" />
28
27
  More content goes here.
29
28
  </Section>
30
29
  </>`,
@@ -44,11 +43,11 @@ export const WithHeader = () => {
44
43
  return (
45
44
  <>
46
45
  <Section>
47
- <Header title="Section 1 title" />
46
+ <Section.Header title="Section 1 title" />
48
47
  Section 1 content
49
48
  </Section>
50
49
  <Section>
51
- <Header title="Section 2 title" />
50
+ <Section.Header title="Section 2 title" />
52
51
  Section 2 content
53
52
  </Section>
54
53
  </>
@@ -81,7 +80,7 @@ export const withAccordion = () => {
81
80
  ];
82
81
  return (
83
82
  <Section>
84
- <Header title="Section with accordion" />
83
+ <Section.Header title="Section with accordion" />
85
84
  <Accordion items={items} indexOpen={0} />
86
85
  </Section>
87
86
  );
@@ -100,7 +99,7 @@ export const WithCards = () => {
100
99
 
101
100
  return (
102
101
  <Section>
103
- <Header title="Section with cards" />
102
+ <Section.Header title="Section with cards" />
104
103
  <Card
105
104
  title="What's in the box?!"
106
105
  details="Click me to reveal."
@@ -126,7 +125,7 @@ export const WithCards = () => {
126
125
  export const WithListItems = () => {
127
126
  return (
128
127
  <Section>
129
- <Header title="Section with list items" />
128
+ <Section.Header title="Section with list items" />
130
129
  <ListItem title="Item 1" control={<ListItem.Navigation onClick={() => action('Item 1')} />} />
131
130
  <ListItem title="Item 2" control={<ListItem.Navigation onClick={() => action('Item 2')} />} />
132
131
  </Section>
@@ -1,7 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
2
 
3
3
  import { useRtlDiffI18n, withRTLDiff } from '../../../.storybook/decorators/RtlDiffDecorator';
4
- import Header from '../../Header';
5
4
  import Section from '..';
6
5
 
7
6
  export default {
@@ -18,11 +17,11 @@ export const RTLDiff: Story = {
18
17
  return (
19
18
  <>
20
19
  <Section>
21
- <Header title={i18n.defaultTitle} />
20
+ <Section.Header title={i18n.defaultTitle} />
22
21
  {i18n.defaultContent}
23
22
  </Section>
24
23
  <Section withHorizontalPadding>
25
- <Header title={i18n.paddedTitle} />
24
+ <Section.Header title={i18n.paddedTitle} />
26
25
  {i18n.paddedContent}
27
26
  </Section>
28
27
  </>
package/src/i18n/cs.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "načítání",
3
- "neptune.Chips.ariaLabel": "Vymazat {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "Vymazat",
5
4
  "neptune.CloseButton.ariaLabel": "Zavřít",
6
5
  "neptune.DateInput.day.label": "Den",
package/src/i18n/de.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "wird geladen",
3
- "neptune.Chips.ariaLabel": "{choice} zurücksetzen",
4
3
  "neptune.ClearButton.ariaLabel": "Zurücksetzen",
5
4
  "neptune.CloseButton.ariaLabel": "Schließen",
6
5
  "neptune.DateInput.day.label": "Tag",
package/src/i18n/en.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "loading",
3
- "neptune.Chips.ariaLabel": "Clear {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "Clear",
5
4
  "neptune.CloseButton.ariaLabel": "Close",
6
5
  "neptune.DateInput.day.label": "Day",
package/src/i18n/es.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "cargando",
3
- "neptune.Chips.ariaLabel": "Descartar {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "Borrar",
5
4
  "neptune.CloseButton.ariaLabel": "Cerrar",
6
5
  "neptune.DateInput.day.label": "Día",
package/src/i18n/hu.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "betöltés",
3
- "neptune.Chips.ariaLabel": "{choice} törlése",
4
3
  "neptune.ClearButton.ariaLabel": "Törlés",
5
4
  "neptune.CloseButton.ariaLabel": "Bezárás",
6
5
  "neptune.DateInput.day.label": "Nap",
package/src/i18n/id.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "memuat",
3
- "neptune.Chips.ariaLabel": "Hapus {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "Hapus",
5
4
  "neptune.CloseButton.ariaLabel": "Tutup",
6
5
  "neptune.DateInput.day.label": "Hari",
package/src/i18n/it.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "caricamento",
3
- "neptune.Chips.ariaLabel": "Rimuovi {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "Elimina",
5
4
  "neptune.CloseButton.ariaLabel": "Chiudi",
6
5
  "neptune.DateInput.day.label": "Giorno",
package/src/i18n/ja.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "読み込み中…",
3
- "neptune.Chips.ariaLabel": "{choice}を消去する",
4
3
  "neptune.ClearButton.ariaLabel": "消去する",
5
4
  "neptune.CloseButton.ariaLabel": "閉じる",
6
5
  "neptune.DateInput.day.label": "日",
package/src/i18n/nl.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "laden",
3
- "neptune.Chips.ariaLabel": "{choice} wissen",
4
3
  "neptune.ClearButton.ariaLabel": "Wissen",
5
4
  "neptune.CloseButton.ariaLabel": "Sluiten",
6
5
  "neptune.DateInput.day.label": "Dag",
package/src/i18n/pl.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "ładowanie",
3
- "neptune.Chips.ariaLabel": "Wyczyść {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "Wyczyść",
5
4
  "neptune.CloseButton.ariaLabel": "Zamknij",
6
5
  "neptune.DateInput.day.label": "Dzień",
package/src/i18n/pt.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "carregando",
3
- "neptune.Chips.ariaLabel": "Remover {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "Remover",
5
4
  "neptune.CloseButton.ariaLabel": "Fechar",
6
5
  "neptune.DateInput.day.label": "Dia",
package/src/i18n/ro.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "se încarcă",
3
- "neptune.Chips.ariaLabel": "Șterge {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "Elimină",
5
4
  "neptune.CloseButton.ariaLabel": "Închide",
6
5
  "neptune.DateInput.day.label": "Zi",
package/src/i18n/ru.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "загрузка",
3
- "neptune.Chips.ariaLabel": "Очистить {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "Очистить",
5
4
  "neptune.CloseButton.ariaLabel": "Закрыть",
6
5
  "neptune.DateInput.day.label": "День",
package/src/i18n/th.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "กำลังโหลด",
3
- "neptune.Chips.ariaLabel": "ล้าง {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "ล้าง",
5
4
  "neptune.CloseButton.ariaLabel": "ปิด",
6
5
  "neptune.DateInput.day.label": "วัน",
package/src/i18n/tr.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "yükleniyor",
3
- "neptune.Chips.ariaLabel": "{choice} temizle",
4
3
  "neptune.ClearButton.ariaLabel": "Sil",
5
4
  "neptune.CloseButton.ariaLabel": "Kapat",
6
5
  "neptune.DateInput.day.label": "Gün",
@@ -38,6 +37,7 @@
38
37
  "neptune.PhoneNumberInput.phoneNumberPrefix": "Ön ek",
39
38
  "neptune.Select.searchPlaceholder": "Ara...",
40
39
  "neptune.SelectInput.noResultsFound": "Sonuç bulunamadı",
40
+ "neptune.Snackbar.escapeDismissHint": "Kapatmak için Escape tuşuna basın.",
41
41
  "neptune.StatusIcon.iconLabel.error": "Hata:",
42
42
  "neptune.StatusIcon.iconLabel.information": "Bilgi:",
43
43
  "neptune.StatusIcon.iconLabel.pending": "Bekliyor:",
package/src/i18n/uk.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "завантаження",
3
- "neptune.Chips.ariaLabel": "Очистити {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "Очистити",
5
4
  "neptune.CloseButton.ariaLabel": "Закрити",
6
5
  "neptune.DateInput.day.label": "День",
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "正在加载",
3
- "neptune.Chips.ariaLabel": "清除 {choice}",
4
3
  "neptune.ClearButton.ariaLabel": "清除",
5
4
  "neptune.CloseButton.ariaLabel": "关闭",
6
5
  "neptune.DateInput.day.label": "日",
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "載入中",
3
- "neptune.Chips.ariaLabel": "清除{choice}",
4
3
  "neptune.ClearButton.ariaLabel": "清除",
5
4
  "neptune.CloseButton.ariaLabel": "關閉",
6
5
  "neptune.DateInput.day.label": "日",
package/src/index.ts CHANGED
@@ -247,7 +247,7 @@ export { default as DropFade } from './DropFade';
247
247
  export { default as Emphasis } from './Emphasis';
248
248
  export { default as Field } from './Field';
249
249
  export { default as FlowNavigation } from './FlowNavigation';
250
- export { default as Header } from './Header';
250
+ export { Header } from './Header';
251
251
  export { default as Image } from './Image';
252
252
  export { default as Info } from './Info';
253
253
  export { default as InlineAlert } from './_deprecated/InlineAlert';
package/src/main.css CHANGED
@@ -27739,15 +27739,18 @@ a[data-toggle="tooltip"] {
27739
27739
  border: 1px solid var(--color-border-neutral);
27740
27740
  border-radius: var(--size-16);
27741
27741
  color: var(--color-content-secondary);
27742
- block-size: var(--size-32);
27742
+ min-block-size: var(--size-32);
27743
27743
  margin-inline-end: var(--size-8);
27744
27744
  padding-block: 0;
27745
27745
  padding-inline: var(--size-12);
27746
27746
  transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
27747
+ -webkit-user-select: none;
27748
+ -moz-user-select: none;
27749
+ user-select: none;
27747
27750
  }
27748
27751
  @media (max-width: 320px) {
27749
27752
  .np-chip {
27750
- block-size: var(--size-40);
27753
+ min-block-size: var(--size-40);
27751
27754
  }
27752
27755
  }
27753
27756
  .np-chip:hover {
@@ -27773,6 +27776,9 @@ a[data-toggle="tooltip"] {
27773
27776
  border-color: var(--color-interactive-accent);
27774
27777
  pointer-events: none;
27775
27778
  }
27779
+ .np-chip--selected[role="checkbox"] {
27780
+ pointer-events: auto;
27781
+ }
27776
27782
  .np-chip--selected:hover,
27777
27783
  .np-chip--selected:active {
27778
27784
  color: #fff;
@@ -27900,6 +27906,10 @@ a[data-toggle="tooltip"] {
27900
27906
  .np-theme-personal .np-chip--valid .np-close-button:focus-within {
27901
27907
  outline: none;
27902
27908
  }
27909
+ .np-chips {
27910
+ flex-wrap: wrap;
27911
+ row-gap: var(--size-8);
27912
+ }
27903
27913
  .np-circular-btn {
27904
27914
  display: inline-flex;
27905
27915
  flex-direction: column;
package/src/main.less CHANGED
@@ -24,6 +24,7 @@
24
24
  @import "./Carousel/Carousel.less";
25
25
  @import "./CheckboxButton/CheckboxButton.less";
26
26
  @import "./Chips/Chip/Chip.less";
27
+ @import "./Chips/Chips.less";
27
28
  @import "./CircularButton/CircularButton.less";
28
29
  @import "./common/Circle/Circle.less";
29
30
  @import "./common/BaseCard/BaseCard.less";
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var reactIntl = require('react-intl');
6
-
7
- var messages = reactIntl.defineMessages({
8
- ariaLabel: {
9
- id: "neptune.Chips.ariaLabel"
10
- }
11
- });
12
-
13
- exports.default = messages;
14
- //# sourceMappingURL=Chips.messages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chips.messages.js","sources":["../../src/Chips/Chips.messages.ts"],"sourcesContent":["import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n ariaLabel: {\n id: 'neptune.Chips.ariaLabel',\n defaultMessage: 'Clear {choice}',\n description: 'Clear button for chip',\n },\n});\n"],"names":["defineMessages","ariaLabel","id"],"mappings":";;;;;;AAEA,eAAeA,wBAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA;AAGH;AACF,CAAA,CAAC;;"}
@@ -1,10 +0,0 @@
1
- import { defineMessages } from 'react-intl';
2
-
3
- var messages = defineMessages({
4
- ariaLabel: {
5
- id: "neptune.Chips.ariaLabel"
6
- }
7
- });
8
-
9
- export { messages as default };
10
- //# sourceMappingURL=Chips.messages.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chips.messages.mjs","sources":["../../src/Chips/Chips.messages.ts"],"sourcesContent":["import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n ariaLabel: {\n id: 'neptune.Chips.ariaLabel',\n defaultMessage: 'Clear {choice}',\n description: 'Clear button for chip',\n },\n});\n"],"names":["defineMessages","ariaLabel","id"],"mappings":";;AAEA,eAAeA,cAAc,CAAC;AAC5BC,EAAAA,SAAS,EAAE;IACTC,EAAE,EAAA;AAGH;AACF,CAAA,CAAC;;"}
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- ariaLabel: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- };
8
- export default _default;
9
- //# sourceMappingURL=Chips.messages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chips.messages.d.ts","sourceRoot":"","sources":["../../../src/Chips/Chips.messages.ts"],"names":[],"mappings":";;;;;;;AAEA,wBAMG"}
@@ -1,9 +0,0 @@
1
- import { defineMessages } from 'react-intl';
2
-
3
- export default defineMessages({
4
- ariaLabel: {
5
- id: 'neptune.Chips.ariaLabel',
6
- defaultMessage: 'Clear {choice}',
7
- description: 'Clear button for chip',
8
- },
9
- });