@transferwise/components 0.0.0-experimental-af6dee0 → 0.0.0-experimental-befc4f0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/main.css CHANGED
@@ -30737,6 +30737,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
30737
30737
 
30738
30738
  .np-select-input-content {
30739
30739
  overflow: hidden;
30740
+ overflow: clip;
30741
+ overflow-clip-margin: 1px;
30740
30742
  text-overflow: ellipsis;
30741
30743
  white-space: nowrap;
30742
30744
  }
@@ -371,6 +371,8 @@
371
371
  }
372
372
  .np-select-input-content {
373
373
  overflow: hidden;
374
+ overflow: clip;
375
+ overflow-clip-margin: 1px;
374
376
  text-overflow: ellipsis;
375
377
  white-space: nowrap;
376
378
  }
@@ -30737,6 +30737,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
30737
30737
 
30738
30738
  .np-select-input-content {
30739
30739
  overflow: hidden;
30740
+ overflow: clip;
30741
+ overflow-clip-margin: 1px;
30740
30742
  text-overflow: ellipsis;
30741
30743
  white-space: nowrap;
30742
30744
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-af6dee0",
3
+ "version": "0.0.0-experimental-befc4f0",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -91,8 +91,8 @@
91
91
  "storybook-addon-tag-badges": "^3.1.0",
92
92
  "storybook-addon-test-codegen": "^3.0.1",
93
93
  "@transferwise/less-config": "3.1.2",
94
- "@wise/components-theming": "1.10.2",
95
94
  "@transferwise/neptune-css": "14.27.1",
95
+ "@wise/components-theming": "1.10.2",
96
96
  "@wise/wds-configs": "0.0.0"
97
97
  },
98
98
  "peerDependencies": {
@@ -371,6 +371,8 @@
371
371
  }
372
372
  .np-select-input-content {
373
373
  overflow: hidden;
374
+ overflow: clip;
375
+ overflow-clip-margin: 1px;
374
376
  text-overflow: ellipsis;
375
377
  white-space: nowrap;
376
378
  }
@@ -13,6 +13,8 @@
13
13
  // Main SelectInput styles
14
14
  .np-select-input-content {
15
15
  overflow: hidden;
16
+ overflow: clip;
17
+ overflow-clip-margin: 1px;
16
18
  text-overflow: ellipsis;
17
19
  white-space: nowrap;
18
20
  }
@@ -1845,3 +1845,26 @@ export const Zoom400: Story<TestMonth | null> = {
1845
1845
  },
1846
1846
  ...withVariantConfig(['400%']),
1847
1847
  };
1848
+
1849
+ const jpy = { code: 'JPY', name: 'Japanese yen' } satisfies TestCurrency;
1850
+ const flagClippingItems = [testCurrencyOption(jpy)];
1851
+ const flagClippingArgs = {
1852
+ items: flagClippingItems,
1853
+ value: jpy,
1854
+ size: 'lg',
1855
+ renderValue: (currency: TestCurrency) => (
1856
+ <SelectInputOptionContent
1857
+ title={currency.code}
1858
+ icon={<Flag code={currency.code} intrinsicSize={24} />}
1859
+ />
1860
+ ),
1861
+ } satisfies Story<TestCurrency>['args'];
1862
+
1863
+ export const FlagClipping: Story<TestCurrency> = {
1864
+ render: (args) => (
1865
+ <Field label="Flag clipping">
1866
+ <SelectInput {...args} />
1867
+ </Field>
1868
+ ),
1869
+ args: flagClippingArgs,
1870
+ };
package/src/main.css CHANGED
@@ -30737,6 +30737,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
30737
30737
 
30738
30738
  .np-select-input-content {
30739
30739
  overflow: hidden;
30740
+ overflow: clip;
30741
+ overflow-clip-margin: 1px;
30740
30742
  text-overflow: ellipsis;
30741
30743
  white-space: nowrap;
30742
30744
  }