@transferwise/components 45.18.0 → 45.19.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.
@@ -4,7 +4,7 @@
4
4
  export type { InputProps } from './inputs/Input';
5
5
  export type { InputGroupProps } from './inputs/InputGroup';
6
6
  export type { SearchInputProps } from './inputs/SearchInput';
7
- export type { SelectInputGroupItem, SelectInputItem, SelectInputOptionContentProps, SelectInputOptionItem, SelectInputProps, SelectInputSeparatorItem, } from './inputs/SelectInput';
7
+ export type { SelectInputGroupItem, SelectInputItem, SelectInputOptionContentProps, SelectInputOptionItem, SelectInputProps, SelectInputSeparatorItem, SelectInputTriggerButtonProps, } from './inputs/SelectInput';
8
8
  export type { TextAreaProps } from './inputs/TextArea';
9
9
  export type { UploadedFile, UploadError, UploadResponse } from './uploadInput/types';
10
10
  export type { ModalProps } from './modal';
@@ -49,7 +49,7 @@ export { default as InlineAlert } from './inlineAlert';
49
49
  export { Input } from './inputs/Input';
50
50
  export { InputGroup } from './inputs/InputGroup';
51
51
  export { SearchInput } from './inputs/SearchInput';
52
- export { SelectInput, SelectInputOptionContent } from './inputs/SelectInput';
52
+ export { SelectInput, SelectInputOptionContent, SelectInputTriggerButton, } from './inputs/SelectInput';
53
53
  export { TextArea } from './inputs/TextArea';
54
54
  export { default as InputWithDisplayFormat } from './inputWithDisplayFormat';
55
55
  export { default as InstructionsList } from './instructionsList';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,6BAA6B,EAC7B,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,GACz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AE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEjD;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEzD;;GAEG;AACH,OAAO,EACL,SAAS,EACT,IAAI,EACJ,KAAK,EACL,SAAS,EACT,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,MAAM,EACN,WAAW,EACX,UAAU,EACV,MAAM,EACN,MAAM,EACN,gBAAgB,EAChB,UAAU,EACV,OAAO,GACR,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC;;GAEG;AACH,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,aAAa,EACb,mBAAmB,GACpB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAC"}
@@ -27,16 +27,18 @@ export interface SelectInputProps<T = string> {
27
27
  placeholderShown: boolean;
28
28
  clear: (() => void) | undefined;
29
29
  disabled: boolean;
30
+ size: 'md' | 'lg';
30
31
  className: string | undefined;
31
32
  }) => React.ReactNode;
32
33
  filterable?: boolean;
33
34
  filterPlaceholder?: string;
34
35
  disabled?: boolean;
36
+ size?: 'md' | 'lg';
35
37
  className?: string;
36
38
  onChange?: (value: T) => void;
37
39
  onClear?: () => void;
38
40
  }
39
- export declare function SelectInput<T = string>({ name, placeholder, items, defaultValue, value: controlledValue, compareValues, renderValue, renderTrigger, filterable, filterPlaceholder, disabled, className, onChange, onClear, }: SelectInputProps<T>): import("react").JSX.Element;
41
+ export declare function SelectInput<T = string>({ name, placeholder, items, defaultValue, value: controlledValue, compareValues, renderValue, renderTrigger, filterable, filterPlaceholder, disabled, size, className, onChange, onClear, }: SelectInputProps<T>): import("react").JSX.Element;
40
42
  export type SelectInputTriggerButtonProps<T extends React.ComponentType | 'button' = 'button'> = {
41
43
  as?: T;
42
44
  } & React.ComponentPropsWithoutRef<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../src/inputs/SelectInput.tsx"],"names":[],"mappings":";AAgDA,MAAM,WAAW,qBAAqB,CAAC,CAAC,GAAG,MAAM;IAC/C,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;IACT,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,MAAM;IAC9C,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,MAAM,IAClC,qBAAqB,CAAC,CAAC,CAAC,GACxB,oBAAoB,CAAC,CAAC,CAAC,GACvB,wBAAwB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ts","sourceRoot":"","sources":["../../../src/inputs/_BottomSheet.tsx"],"names":[],"mappings":";AAiBA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE;QACrB,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,mBAAmB,EAAE,CAAC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK;YACvE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;SACxB,CAAC;KACH,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,aAAa,EACb,KAAK,EACL,eAAe,EACf,OAAc,EACd,QAAQ,EACR,OAAO,GACR,EAAE,gBAAgB,+BA4FlB"}
1
+ {"version":3,"file":"_BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/inputs/_BottomSheet.tsx"],"names":[],"mappings":";AAkBA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE;QACrB,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,mBAAmB,EAAE,CAAC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK;YACvE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;SACxB,CAAC;KACH,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK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Popover.d.ts","sourceRoot":"","sources":["../../../src/inputs/_Popover.tsx"],"names":[],"mappings":";AAAA,OAAO,EAOL,KAAK,IAAI,EAMV,MAAM,oBAAoB,CAAC;AAS5B,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,EAAE,CAAC,IAAI,EAAE;QACpB,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAChC,mBAAmB,EAAE,CAAC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK;YACvE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;SACxB,CAAC;KACH,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAID,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,IAAI,EACJ,aAAa,EACb,KAAK,EACL,OAAc,EACd,QAAQ,EACR,OAAO,GACR,EAAE,YAAY,+BAgFd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "45.18.0",
3
+ "version": "45.19.0",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/index.ts CHANGED
@@ -11,6 +11,7 @@ export type {
11
11
  SelectInputOptionItem,
12
12
  SelectInputProps,
13
13
  SelectInputSeparatorItem,
14
+ SelectInputTriggerButtonProps,
14
15
  } from './inputs/SelectInput';
15
16
  export type { TextAreaProps } from './inputs/TextArea';
16
17
  export type { UploadedFile, UploadError, UploadResponse } from './uploadInput/types';
@@ -64,7 +65,11 @@ export { default as InlineAlert } from './inlineAlert';
64
65
  export { Input } from './inputs/Input';
65
66
  export { InputGroup } from './inputs/InputGroup';
66
67
  export { SearchInput } from './inputs/SearchInput';
67
- export { SelectInput, SelectInputOptionContent } from './inputs/SelectInput';
68
+ export {
69
+ SelectInput,
70
+ SelectInputOptionContent,
71
+ SelectInputTriggerButton,
72
+ } from './inputs/SelectInput';
68
73
  export { TextArea } from './inputs/TextArea';
69
74
  export { default as InputWithDisplayFormat } from './inputWithDisplayFormat';
70
75
  export { default as InstructionsList } from './instructionsList';
@@ -1 +1 @@
1
- .np-form-control{--ring-width:1px;--ring-color:var(--color-interactive-secondary);background-color:transparent;border:none;box-shadow:inset 0 0 0 var(--ring-width) var(--ring-color);color:#37517e;color:var(--color-content-primary);min-height:0;padding-left:16px;padding-left:var(--size-16);padding-right:16px;padding-right:var(--size-16);transition-duration:.3s;transition-property:color,opacity,box-shadow;transition-timing-function:ease-in-out}.np-form-control:focus-visible{outline:none}.np-form-control[aria-invalid=true]{--ring-width:2px;--ring-color:var(--color-sentiment-negative)!important}.np-form-control:hover:enabled{--ring-width:2px;--ring-color:var(--color-interactive-secondary-hover)}.np-form-control:focus:enabled{--ring-width:3px;--ring-color:var(--color-interactive-primary)}.np-form-control--size-auto{padding-bottom:12px;padding-bottom:var(--size-12);padding-top:12px;padding-top:var(--size-12)}.np-form-control--size-lg,.np-form-control--size-md,.np-form-control--size-sm{padding-bottom:0!important;padding-top:0!important}.np-form-control--size-sm{height:32px!important;height:var(--size-32)!important}.np-form-control--size-md{height:48px!important;height:var(--size-48)!important}.np-form-control--size-lg{height:72px!important;height:var(--size-72)!important}.np-input::-moz-placeholder{color:#768e9c;color:var(--color-content-tertiary)}.np-input::placeholder{color:#768e9c;color:var(--color-content-tertiary)}.np-input--shape-rectangle{border-radius:10px!important;border-radius:var(--radius-small)!important}.np-input--shape-pill{border-radius:9999px!important;border-radius:var(--radius-full)!important}
1
+ .np-form-control{--ring-width:1px;--ring-color:var(--color-interactive-secondary);background-color:transparent;border:none;box-shadow:inset 0 0 0 var(--ring-width) var(--ring-color);color:#37517e;color:var(--color-content-primary);min-height:0;padding-left:16px;padding-left:var(--size-16);padding-right:16px;padding-right:var(--size-16);transition-duration:.3s;transition-property:color,opacity,box-shadow;transition-timing-function:ease-in-out}.np-form-control:focus-visible{outline:none}.np-form-control[aria-invalid=true]{--ring-width:2px;--ring-color:var(--color-sentiment-negative)!important}.np-form-control:hover:enabled{--ring-width:2px;--ring-color:var(--color-interactive-secondary-hover)}.np-form-control:focus:enabled{--ring-width:3px;--ring-color:var(--color-interactive-primary)}.np-form-control--size-auto{font-size:1rem;font-size:var(--font-size-16);font-weight:400;font-weight:var(--font-weight-regular);letter-spacing:-.011em;line-height:150%;padding-bottom:12px;padding-bottom:var(--size-12);padding-top:12px;padding-top:var(--size-12)}.np-form-control--size-lg,.np-form-control--size-md,.np-form-control--size-sm{padding-bottom:0!important;padding-top:0!important}.np-form-control--size-sm{font-size:1rem;font-size:var(--font-size-16);font-size:.875rem;font-size:var(--font-size-14);height:32px!important;height:var(--size-32)!important;letter-spacing:-.006em;line-height:1.5;line-height:var(--line-height-body);line-height:155%}.np-form-control--size-md,.np-form-control--size-sm{font-weight:400;font-weight:var(--font-weight-regular)}.np-form-control--size-md{font-size:1rem;font-size:var(--font-size-16);height:48px!important;height:var(--size-48)!important;letter-spacing:-.011em;line-height:150%}.np-form-control--size-lg{color:#37517e;color:var(--color-content-primary);font-size:1.375rem;font-size:var(--font-size-22);font-weight:600;font-weight:var(--font-weight-semi-bold);height:72px!important;height:var(--size-72)!important;letter-spacing:0;letter-spacing:-.018em;line-height:1.2;line-height:var(--line-height-title);line-height:125%;margin:0}.np-form-control--size-lg+ol:not(.list-unstyled),.np-form-control--size-lg+p,.np-form-control--size-lg+ul:not(.list-unstyled){margin-top:8px;margin-top:var(--size-8)}.np-input::-moz-placeholder{color:#768e9c;color:var(--color-content-tertiary)}.np-input::placeholder{color:#768e9c;color:var(--color-content-tertiary)}.np-input--shape-rectangle{border-radius:10px!important;border-radius:var(--radius-small)!important}.np-input--shape-pill{border-radius:9999px!important;border-radius:var(--radius-full)!important}
@@ -1 +1 @@
1
- .np-bottom-sheet-v2-container{position:relative;z-index:1060}.np-bottom-sheet-v2-backdrop-container--enter,.np-bottom-sheet-v2-backdrop-container--leave{transition-duration:.15s;transition-property:opacity;transition-timing-function:ease-out}.np-bottom-sheet-v2-backdrop-container--enter-from,.np-bottom-sheet-v2-backdrop-container--leave-to{opacity:0}.np-bottom-sheet-v2-backdrop{background-color:#37517e;background-color:var(--color-content-primary);inset:0;opacity:.4;position:fixed}.np-bottom-sheet-v2{display:flex;flex-direction:column;inset:0;justify-content:flex-end;padding-left:8px;padding-left:var(--size-8);padding-right:8px;padding-right:var(--size-8);padding-top:64px;padding-top:var(--size-64);position:fixed}.np-bottom-sheet-v2-content{max-height:100%}.np-bottom-sheet-v2-content--enter,.np-bottom-sheet-v2-content--leave{transition-duration:.3s;transition-property:transform;transition-timing-function:ease-out}@media (prefers-reduced-motion:reduce){.np-bottom-sheet-v2-content--enter,.np-bottom-sheet-v2-content--leave{transition-property:opacity}}@media (prefers-reduced-motion:no-preference){.np-bottom-sheet-v2-content--enter-from,.np-bottom-sheet-v2-content--leave-to{transform:translateY(100%)}}@media (prefers-reduced-motion:reduce){.np-bottom-sheet-v2-content--enter-from,.np-bottom-sheet-v2-content--leave-to{opacity:0}}.np-bottom-sheet-v2-content-inner-container{background-color:#fff;background-color:var(--color-background-elevated);border-top-left-radius:32px;border-top-right-radius:32px;box-shadow:0 0 40px rgba(69,71,69,.2);display:flex;flex-direction:column;height:100%}.np-bottom-sheet-v2-content-inner-container:focus{outline:none}.np-bottom-sheet-v2-header{align-self:flex-end;padding:16px;padding:var(--size-16)}.np-bottom-sheet-v2-content-inner{display:grid;grid-template-rows:repeat(1,minmax(0,1fr));overflow-y:auto;padding-top:0;row-gap:8px;row-gap:var(--size-8)}.np-bottom-sheet-v2-content-inner--has-title{grid-template-rows:auto 1fr}.np-bottom-sheet-v2-content-inner--padding-md{padding:16px;padding:var(--size-16)}.np-bottom-sheet-v2-title{color:#37517e;color:var(--color-content-primary)}.np-bottom-sheet-v2-body{color:#5d7079;color:var(--color-content-secondary)}.np-button-input{align-content:center;border-radius:10px;border-radius:var(--size-10);display:inline-grid;grid-auto-columns:minmax(0,1fr);text-align:start}.np-popover-v2-container{background-color:#fff;background-color:var(--color-background-elevated);border-radius:10px;border-radius:var(--radius-small);box-shadow:0 0 40px rgba(69,71,69,.2);display:flex;flex-direction:column;max-height:var(--max-height);min-width:20rem;width:var(--width);z-index:1060}.np-popover-v2-container:focus{outline:none}.np-popover-v2{display:grid;grid-template-rows:repeat(1,minmax(0,1fr));overflow-y:auto;row-gap:8px;row-gap:var(--size-8)}.np-popover-v2--has-title{grid-template-rows:auto 1fr}.np-popover-v2--padding-md{padding:16px;padding:var(--size-16)}.np-popover-v2-title{color:#37517e;color:var(--color-content-primary)}.np-popover-v2-content{color:#5d7079;color:var(--color-content-secondary)}.np-select-input-placeholder{color:#768e9c;color:var(--color-content-tertiary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.np-select-input-options-container{display:flex;flex-direction:column;height:100%}.np-select-input-options-container:focus{outline:none}@media (min-width:576px){.np-select-input-options-container{max-height:28rem}}.np-select-input-query-container{display:flex;flex-direction:column;padding:8px;padding:var(--size-8);padding-top:0}@media (min-width:576px){.np-select-input-query-container{padding-top:8px;padding-top:var(--size-8)}}.np-select-input-listbox-container{height:var(--initial-height);overflow-y:auto;position:relative;scroll-padding-bottom:8px;scroll-padding-bottom:var(--size-8);scroll-padding-top:8px;scroll-padding-top:var(--size-8)}@media (min-width:576px){.np-select-input-listbox-container{height:auto}}.np-select-input-listbox-container--has-group{scroll-padding-top:32px;scroll-padding-top:var(--size-32)}.np-select-input-listbox{padding:8px;padding:var(--size-8)}.np-select-input-listbox:focus{outline:none}.np-select-input-separator-item{border-top-width:1px;margin:8px;margin:var(--size-8)}.np-select-input-group-item--without-needle:first-child{margin-top:-8px;margin-top:calc(var(--size-8)*-1)}.np-select-input-group-item-header{background-color:#fff;background-color:var(--color-background-elevated);color:#5d7079;color:var(--color-content-secondary);padding:8px 16px 4px;padding:var(--size-8) var(--size-16) var(--size-4);position:sticky;top:0;z-index:10}.np-select-input-option-container{align-items:center;border-radius:10px;border-radius:var(--radius-small);color:#37517e;color:var(--color-content-primary);-moz-column-gap:8px;column-gap:8px;-moz-column-gap:var(--size-8);column-gap:var(--size-8);display:flex;padding:12px 16px;padding:var(--size-12) var(--size-16)}.np-select-input-option-container--selected{box-shadow:inset 0 0 0 1px #c9cbce;box-shadow:inset 0 0 0 1px var(--color-interactive-secondary)}.np-select-input-option-container--active{background-color:var(--color-background-screen-hover)}.np-select-input-option-container--disabled{opacity:.45}.np-select-input-option-check{color:var(--color-interactive-primary)}.np-select-input-option-check--not-selected{visibility:hidden}.np-select-input-option{flex:1}.np-select-input-option-content-container{align-items:center;color:#37517e;color:var(--color-content-primary);-moz-column-gap:8px;column-gap:8px;-moz-column-gap:var(--size-8);column-gap:var(--size-8);display:flex}.np-select-input-option-content-icon{display:flex}.np-select-input-option-content-icon--not-within-trigger{align-self:flex-start}.np-select-input-option-content-text{display:flex;flex:1;flex-direction:column;overflow:hidden}.np-select-input-option-content-text-secondary{color:#5d7079;color:var(--color-content-secondary)}.np-select-input-option-content-text-within-trigger{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.np-select-input-option-content-text-line-1>:not([hidden])~:not([hidden]){margin-left:8px;margin-left:var(--size-8);margin-right:8px;margin-right:var(--size-8)}.np-select-input-addon-container{align-items:center;display:inline-flex;pointer-events:none}.np-select-input-addon{align-items:center;background:none;border-radius:.125rem;border-width:0;display:inline-flex;height:32px;height:var(--size-32);justify-content:center;width:32px;width:var(--size-32)}.np-select-input-addon--interactive{color:#c9cbce;color:var(--color-interactive-secondary);pointer-events:auto}.np-select-input-addon--interactive:hover{color:#b5b7ba;color:var(--color-interactive-secondary-hover)}.np-select-input-addon--interactive:focus{outline:none}.np-select-input-addon--interactive:focus-visible{outline:var(--ring-outline-color) solid var(--ring-outline-width);outline-offset:var(--ring-outline-offset)}.np-select-input-addon-separator{border-inline-start-width:1px;height:24px;height:var(--size-24)}
1
+ .np-bottom-sheet-v2-container{position:relative;z-index:1060}.np-bottom-sheet-v2-backdrop-container--enter,.np-bottom-sheet-v2-backdrop-container--leave{transition-duration:.15s;transition-property:opacity;transition-timing-function:ease-out}.np-bottom-sheet-v2-backdrop-container--enter-from,.np-bottom-sheet-v2-backdrop-container--leave-to{opacity:0}.np-bottom-sheet-v2-backdrop{background-color:#37517e;background-color:var(--color-content-primary);inset:0;opacity:.4;position:fixed}.np-bottom-sheet-v2{display:flex;flex-direction:column;inset:0;justify-content:flex-end;padding-left:8px;padding-left:var(--size-8);padding-right:8px;padding-right:var(--size-8);padding-top:64px;padding-top:var(--size-64);position:fixed}.np-bottom-sheet-v2-content{max-height:100%}.np-bottom-sheet-v2-content--enter,.np-bottom-sheet-v2-content--leave{transition-duration:.3s;transition-property:transform;transition-timing-function:ease-out}@media (prefers-reduced-motion:reduce){.np-bottom-sheet-v2-content--enter,.np-bottom-sheet-v2-content--leave{transition-property:opacity}}@media (prefers-reduced-motion:no-preference){.np-bottom-sheet-v2-content--enter-from,.np-bottom-sheet-v2-content--leave-to{transform:translateY(100%)}}@media (prefers-reduced-motion:reduce){.np-bottom-sheet-v2-content--enter-from,.np-bottom-sheet-v2-content--leave-to{opacity:0}}.np-bottom-sheet-v2-content-inner-container{background-color:#fff;background-color:var(--color-background-elevated);border-top-left-radius:32px;border-top-right-radius:32px;box-shadow:0 0 40px rgba(69,71,69,.2);display:flex;flex-direction:column;height:100%}.np-bottom-sheet-v2-content-inner-container:focus{outline:none}.np-bottom-sheet-v2-header{align-self:flex-end;padding:16px;padding:var(--size-16)}.np-bottom-sheet-v2-content-inner{display:grid;grid-template-rows:repeat(1,minmax(0,1fr));overflow-y:auto;padding-top:0;row-gap:8px;row-gap:var(--size-8)}.np-bottom-sheet-v2-content-inner--has-title{grid-template-rows:auto 1fr}.np-bottom-sheet-v2-content-inner--padding-md{padding:16px;padding:var(--size-16)}.np-bottom-sheet-v2-title{color:#37517e;color:var(--color-content-primary)}.np-bottom-sheet-v2-body{color:#5d7079;color:var(--color-content-secondary)}.np-button-input{align-content:center;border-radius:10px;border-radius:var(--size-10);display:inline-grid;grid-auto-columns:minmax(0,1fr);text-align:start}.np-popover-v2-container{background-color:#fff;background-color:var(--color-background-elevated);border-radius:10px;border-radius:var(--radius-small);box-shadow:0 0 40px rgba(69,71,69,.2);display:flex;flex-direction:column;max-height:var(--max-height);min-width:20rem;width:var(--width);z-index:1060}.np-popover-v2-container:focus{outline:none}.np-popover-v2{display:grid;grid-template-rows:repeat(1,minmax(0,1fr));overflow-y:auto;row-gap:8px;row-gap:var(--size-8)}.np-popover-v2--has-title{grid-template-rows:auto 1fr}.np-popover-v2--padding-md{padding:16px;padding:var(--size-16)}.np-popover-v2-title{color:#37517e;color:var(--color-content-primary)}.np-popover-v2-content{color:#5d7079;color:var(--color-content-secondary)}.np-select-input-placeholder{color:#768e9c;color:var(--color-content-tertiary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.np-select-input-options-container{display:flex;flex-direction:column;height:100%}.np-select-input-options-container:focus{outline:none}@media (min-width:576px){.np-select-input-options-container{max-height:28rem}}.np-select-input-query-container{display:flex;flex-direction:column;padding:8px;padding:var(--size-8);padding-top:0}@media (min-width:576px){.np-select-input-query-container{padding-top:8px;padding-top:var(--size-8)}}.np-select-input-listbox-container{height:var(--initial-height);overflow-y:auto;position:relative;scroll-padding-bottom:8px;scroll-padding-bottom:var(--size-8);scroll-padding-top:8px;scroll-padding-top:var(--size-8)}@media (min-width:576px){.np-select-input-listbox-container{height:auto}}.np-select-input-listbox-container--has-group{scroll-padding-top:32px;scroll-padding-top:var(--size-32)}.np-select-input-listbox{padding:8px;padding:var(--size-8)}.np-select-input-listbox:focus{outline:none}.np-select-input-separator-item{border-top-width:1px;margin:8px;margin:var(--size-8)}.np-select-input-group-item--without-needle:first-child{margin-top:-8px;margin-top:calc(var(--size-8)*-1)}.np-select-input-group-item-header{background-color:#fff;background-color:var(--color-background-elevated);color:#5d7079;color:var(--color-content-secondary);padding:8px 16px 4px;padding:var(--size-8) var(--size-16) var(--size-4);position:sticky;top:0;z-index:10}.np-select-input-option-container{align-items:center;border-radius:10px;border-radius:var(--radius-small);color:#37517e;color:var(--color-content-primary);-moz-column-gap:8px;column-gap:8px;-moz-column-gap:var(--size-8);column-gap:var(--size-8);display:flex;padding:12px 16px;padding:var(--size-12) var(--size-16)}.np-select-input-option-container--selected{box-shadow:inset 0 0 0 1px #c9cbce;box-shadow:inset 0 0 0 1px var(--color-interactive-secondary)}.np-select-input-option-container--active{background-color:var(--color-background-screen-hover)}.np-select-input-option-container--disabled{opacity:.45}.np-select-input-option-check{color:var(--color-interactive-primary)}.np-select-input-option-check--not-selected{visibility:hidden}.np-select-input-option{flex:1}.np-select-input-option-content-container{align-items:center;color:#37517e;color:var(--color-content-primary);-moz-column-gap:8px;column-gap:8px;-moz-column-gap:var(--size-8);column-gap:var(--size-8);display:flex}.np-select-input-option-content-icon{display:flex}.np-select-input-option-content-icon--not-within-trigger{align-self:flex-start}.np-select-input-option-content-text{display:flex;flex:1;flex-direction:column;overflow:hidden}.np-select-input-option-content-text-primary{font:inherit}.np-select-input-option-content-text-secondary{color:#5d7079;color:var(--color-content-secondary)}.np-select-input-option-content-text-within-trigger{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.np-select-input-option-content-text-line-1>:not([hidden])~:not([hidden]){margin-left:8px;margin-left:var(--size-8);margin-right:8px;margin-right:var(--size-8)}.np-select-input-addon-container{align-items:center;display:inline-flex;pointer-events:none}.np-select-input-addon-container,.np-select-input-addon-container>:not([hidden])~:not([hidden]){margin-inline-start:4px;margin-inline-start:var(--size-4)}.np-select-input-addon{align-items:center;background:none;border-radius:.125rem;border-width:0;display:inline-flex;height:24px;height:var(--size-24);justify-content:center;width:24px;width:var(--size-24)}.np-select-input-addon--interactive{color:#c9cbce;color:var(--color-interactive-secondary);pointer-events:auto}.np-select-input-addon--interactive:hover{color:#b5b7ba;color:var(--color-interactive-secondary-hover)}.np-select-input-addon--interactive:focus{outline:none}.np-select-input-addon--interactive:focus-visible{outline:var(--ring-outline-color) solid var(--ring-outline-width);outline-offset:var(--ring-outline-offset)}.np-select-input-addon-separator{border-inline-start:1px solid #0000001a;border-inline-start:1px solid var(--color-border-neutral);height:24px;height:var(--size-24)}
@@ -140,6 +140,10 @@
140
140
  overflow: hidden;
141
141
  }
142
142
 
143
+ .np-select-input-option-content-text-primary {
144
+ font: inherit;
145
+ }
146
+
143
147
  .np-select-input-option-content-text-secondary {
144
148
  color: var(--color-content-secondary);
145
149
  }
@@ -159,8 +163,13 @@
159
163
 
160
164
  .np-select-input-addon-container {
161
165
  pointer-events: none;
166
+ margin-inline-start: var(--size-4);
162
167
  display: inline-flex;
163
168
  align-items: center;
169
+
170
+ & > :not([hidden]) ~ :not([hidden]) {
171
+ margin-inline-start: var(--size-4);
172
+ }
164
173
  }
165
174
 
166
175
  .np-select-input-addon {
@@ -168,8 +177,8 @@
168
177
  background: none;
169
178
 
170
179
  display: inline-flex;
171
- height: var(--size-32);
172
- width: var(--size-32);
180
+ height: var(--size-24);
181
+ width: var(--size-24);
173
182
  align-items: center;
174
183
  justify-content: center;
175
184
  border-radius: 0.125rem /* 2px */; /* TODO: Tokenize */
@@ -188,5 +197,5 @@
188
197
 
189
198
  .np-select-input-addon-separator {
190
199
  height: var(--size-24);
191
- border-inline-start-width: 1px;
200
+ border-inline-start: 1px solid var(--color-border-neutral);
192
201
  }
@@ -45,6 +45,7 @@ export const Basic: StoryObj<{
45
45
  clearable: boolean;
46
46
  invalid: boolean;
47
47
  disabled: boolean;
48
+ size: 'md' | 'lg';
48
49
  onChange: (value: TestMonth | null) => void;
49
50
  onClear: () => void;
50
51
  }> = {
@@ -53,6 +54,7 @@ export const Basic: StoryObj<{
53
54
  filterPlaceholder,
54
55
  clearable,
55
56
  disabled,
57
+ size,
56
58
  onChange,
57
59
  onClear,
58
60
  }) {
@@ -95,6 +97,7 @@ export const Basic: StoryObj<{
95
97
  )}
96
98
  filterable={filterable}
97
99
  filterPlaceholder={filterPlaceholder}
100
+ size={size}
98
101
  disabled={disabled}
99
102
  onChange={(month) => {
100
103
  setSelectedMonth(month);
@@ -118,6 +121,7 @@ export const Basic: StoryObj<{
118
121
  clearable: true,
119
122
  invalid: false,
120
123
  disabled: false,
124
+ size: 'md',
121
125
  },
122
126
  argTypes: {
123
127
  onChange: {
@@ -238,36 +242,35 @@ export const Currencies: StoryObj<{
238
242
  const [selectedCurrency, setSelectedCurrency] = useState<Currency>(popularCurrencies[0]);
239
243
 
240
244
  return (
241
- <div className="d-flex flex-column">
242
- <SelectInput
243
- items={[
244
- {
245
- type: 'group',
246
- label: 'Popular currencies',
247
- options: popularCurrencies.map((currency) => currencyOption(currency)),
248
- },
249
- {
250
- type: 'group',
251
- label: 'All currencies',
252
- options: allCurrencies.map((currency) => currencyOption(currency)),
253
- },
254
- ]}
255
- value={selectedCurrency}
256
- renderValue={(currency) => (
257
- <SelectInputOptionContent
258
- title={currency.code}
259
- note={currency.name}
260
- icon={<Flag code={currency.code} intrinsicSize={24} />}
261
- />
262
- )}
263
- filterable
264
- filterPlaceholder="Type a currency / country"
265
- onChange={(currency) => {
266
- setSelectedCurrency(currency);
267
- onChange(currency);
268
- }}
269
- />
270
- </div>
245
+ <SelectInput
246
+ items={[
247
+ {
248
+ type: 'group',
249
+ label: 'Popular currencies',
250
+ options: popularCurrencies.map((currency) => currencyOption(currency)),
251
+ },
252
+ {
253
+ type: 'group',
254
+ label: 'All currencies',
255
+ options: allCurrencies.map((currency) => currencyOption(currency)),
256
+ },
257
+ ]}
258
+ value={selectedCurrency}
259
+ renderValue={(currency, withinTrigger) => (
260
+ <SelectInputOptionContent
261
+ title={currency.code}
262
+ note={withinTrigger ? undefined : currency.name}
263
+ icon={<Flag code={currency.code} intrinsicSize={24} />}
264
+ />
265
+ )}
266
+ filterable
267
+ filterPlaceholder="Type a currency / country"
268
+ size="lg"
269
+ onChange={(currency) => {
270
+ setSelectedCurrency(currency);
271
+ onChange(currency);
272
+ }}
273
+ />
271
274
  );
272
275
  },
273
276
  argTypes: {
@@ -121,17 +121,19 @@ export interface SelectInputProps<T = string> {
121
121
  placeholderShown: boolean;
122
122
  clear: (() => void) | undefined;
123
123
  disabled: boolean;
124
+ size: 'md' | 'lg';
124
125
  className: string | undefined;
125
126
  }) => React.ReactNode;
126
127
  filterable?: boolean;
127
128
  filterPlaceholder?: string;
128
129
  disabled?: boolean;
130
+ size?: 'md' | 'lg';
129
131
  className?: string;
130
132
  onChange?: (value: T) => void;
131
133
  onClear?: () => void;
132
134
  }
133
135
 
134
- const defaultRenderTrigger = (({ content, placeholderShown, clear, disabled, className }) => (
136
+ const defaultRenderTrigger = (({ content, placeholderShown, clear, disabled, size, className }) => (
135
137
  <InputGroup
136
138
  addonEnd={{
137
139
  content: (
@@ -158,7 +160,7 @@ const defaultRenderTrigger = (({ content, placeholderShown, clear, disabled, cla
158
160
  disabled={disabled}
159
161
  className={className}
160
162
  >
161
- <SelectInputTriggerButton as={ButtonInput}>
163
+ <SelectInputTriggerButton as={ButtonInput} size={size}>
162
164
  {placeholderShown ? <span className="np-select-input-placeholder"> {content}</span> : content}
163
165
  </SelectInputTriggerButton>
164
166
  </InputGroup>
@@ -194,6 +196,7 @@ export function SelectInput<T = string>({
194
196
  filterable,
195
197
  filterPlaceholder,
196
198
  disabled,
199
+ size = 'md',
197
200
  className,
198
201
  onChange,
199
202
  onClear,
@@ -260,7 +263,8 @@ export function SelectInput<T = string>({
260
263
  }
261
264
  : undefined,
262
265
  disabled: uiDisabled,
263
- className: classNames(className, 'np-text-body-large'),
266
+ size,
267
+ className,
264
268
  })}
265
269
  </SelectInputTriggerButtonPropsContext.Provider>
266
270
  )}
@@ -583,7 +587,12 @@ export function SelectInputOptionContent({
583
587
  const withinTrigger = useContext(SelectInputOptionContentWithinTriggerContext);
584
588
 
585
589
  return (
586
- <div className="np-select-input-option-content-container np-text-body-large">
590
+ <div
591
+ className={classNames(
592
+ 'np-select-input-option-content-container',
593
+ (note || description) && 'np-text-body-large',
594
+ )}
595
+ >
587
596
  {icon ? (
588
597
  <div
589
598
  className={classNames(
@@ -602,7 +611,7 @@ export function SelectInputOptionContent({
602
611
  withinTrigger && 'np-select-input-option-content-text-within-trigger',
603
612
  )}
604
613
  >
605
- <h4 className="d-inline np-text-body-large">{title}</h4>
614
+ <h4 className="np-select-input-option-content-text-primary d-inline">{title}</h4>
606
615
  {note ? (
607
616
  <span className="np-select-input-option-content-text-secondary np-text-body-default">
608
617
  {note}
@@ -1 +1 @@
1
- .np-form-control{--ring-width:1px;--ring-color:var(--color-interactive-secondary);background-color:transparent;border:none;box-shadow:inset 0 0 0 var(--ring-width) var(--ring-color);color:#37517e;color:var(--color-content-primary);min-height:0;padding-left:16px;padding-left:var(--size-16);padding-right:16px;padding-right:var(--size-16);transition-duration:.3s;transition-property:color,opacity,box-shadow;transition-timing-function:ease-in-out}.np-form-control:focus-visible{outline:none}.np-form-control[aria-invalid=true]{--ring-width:2px;--ring-color:var(--color-sentiment-negative)!important}.np-form-control:hover:enabled{--ring-width:2px;--ring-color:var(--color-interactive-secondary-hover)}.np-form-control:focus:enabled{--ring-width:3px;--ring-color:var(--color-interactive-primary)}.np-form-control--size-auto{padding-bottom:12px;padding-bottom:var(--size-12);padding-top:12px;padding-top:var(--size-12)}.np-form-control--size-lg,.np-form-control--size-md,.np-form-control--size-sm{padding-bottom:0!important;padding-top:0!important}.np-form-control--size-sm{height:32px!important;height:var(--size-32)!important}.np-form-control--size-md{height:48px!important;height:var(--size-48)!important}.np-form-control--size-lg{height:72px!important;height:var(--size-72)!important}.np-text-area{border-radius:10px!important;border-radius:var(--radius-small)!important;min-height:72px;min-height:var(--size-72);overscroll-behavior:none;scroll-padding-bottom:8px;scroll-padding-bottom:var(--size-8);scroll-padding-top:8px;scroll-padding-top:var(--size-8)}.np-text-area::-moz-placeholder{color:#768e9c;color:var(--color-content-tertiary)}.np-text-area::placeholder{color:#768e9c;color:var(--color-content-tertiary)}
1
+ .np-form-control{--ring-width:1px;--ring-color:var(--color-interactive-secondary);background-color:transparent;border:none;box-shadow:inset 0 0 0 var(--ring-width) var(--ring-color);color:#37517e;color:var(--color-content-primary);min-height:0;padding-left:16px;padding-left:var(--size-16);padding-right:16px;padding-right:var(--size-16);transition-duration:.3s;transition-property:color,opacity,box-shadow;transition-timing-function:ease-in-out}.np-form-control:focus-visible{outline:none}.np-form-control[aria-invalid=true]{--ring-width:2px;--ring-color:var(--color-sentiment-negative)!important}.np-form-control:hover:enabled{--ring-width:2px;--ring-color:var(--color-interactive-secondary-hover)}.np-form-control:focus:enabled{--ring-width:3px;--ring-color:var(--color-interactive-primary)}.np-form-control--size-auto{font-size:1rem;font-size:var(--font-size-16);font-weight:400;font-weight:var(--font-weight-regular);letter-spacing:-.011em;line-height:150%;padding-bottom:12px;padding-bottom:var(--size-12);padding-top:12px;padding-top:var(--size-12)}.np-form-control--size-lg,.np-form-control--size-md,.np-form-control--size-sm{padding-bottom:0!important;padding-top:0!important}.np-form-control--size-sm{font-size:1rem;font-size:var(--font-size-16);font-size:.875rem;font-size:var(--font-size-14);height:32px!important;height:var(--size-32)!important;letter-spacing:-.006em;line-height:1.5;line-height:var(--line-height-body);line-height:155%}.np-form-control--size-md,.np-form-control--size-sm{font-weight:400;font-weight:var(--font-weight-regular)}.np-form-control--size-md{font-size:1rem;font-size:var(--font-size-16);height:48px!important;height:var(--size-48)!important;letter-spacing:-.011em;line-height:150%}.np-form-control--size-lg{color:#37517e;color:var(--color-content-primary);font-size:1.375rem;font-size:var(--font-size-22);font-weight:600;font-weight:var(--font-weight-semi-bold);height:72px!important;height:var(--size-72)!important;letter-spacing:0;letter-spacing:-.018em;line-height:1.2;line-height:var(--line-height-title);line-height:125%;margin:0}.np-form-control--size-lg+ol:not(.list-unstyled),.np-form-control--size-lg+p,.np-form-control--size-lg+ul:not(.list-unstyled){margin-top:8px;margin-top:var(--size-8)}.np-text-area{border-radius:10px!important;border-radius:var(--radius-small)!important;min-height:72px;min-height:var(--size-72);overscroll-behavior:none;scroll-padding-bottom:8px;scroll-padding-bottom:var(--size-8);scroll-padding-top:8px;scroll-padding-top:var(--size-8)}.np-text-area::-moz-placeholder{color:#768e9c;color:var(--color-content-tertiary)}.np-text-area::placeholder{color:#768e9c;color:var(--color-content-tertiary)}
@@ -12,6 +12,7 @@ import classNames from 'classnames';
12
12
  import { useState } from 'react';
13
13
 
14
14
  import { CloseButton } from '../common/closeButton';
15
+ import FocusBoundary from '../common/focusBoundary/FocusBoundary';
15
16
  import { PreventScroll } from '../common/preventScroll/PreventScroll';
16
17
  import { Size } from '../common/propsValues/size';
17
18
 
@@ -84,47 +85,56 @@ export function BottomSheet({
84
85
  <div className="np-bottom-sheet-v2-backdrop" />
85
86
  </Transition.Child>
86
87
 
87
- <FloatingFocusManager context={context} initialFocus={initialFocusRef}>
88
- <div className="np-bottom-sheet-v2">
89
- <Transition.Child
90
- className="np-bottom-sheet-v2-content"
91
- enter="np-bottom-sheet-v2-content--enter"
92
- enterFrom="np-bottom-sheet-v2-content--enter-from"
93
- leave="np-bottom-sheet-v2-content--leave"
94
- leaveTo="np-bottom-sheet-v2-content--leave-to"
95
- >
96
- <div
97
- key={floatingKey} // Force inner state invalidation on open
98
- ref={refs.setFloating}
99
- className="np-bottom-sheet-v2-content-inner-container"
100
- {...getFloatingProps()}
88
+ <FocusBoundary>
89
+ <FloatingFocusManager
90
+ context={context}
91
+ initialFocus={initialFocusRef}
92
+ guards={false}
93
+ modal={false}
94
+ >
95
+ <div className="np-bottom-sheet-v2">
96
+ <Transition.Child
97
+ className="np-bottom-sheet-v2-content"
98
+ enter="np-bottom-sheet-v2-content--enter"
99
+ enterFrom="np-bottom-sheet-v2-content--enter-from"
100
+ leave="np-bottom-sheet-v2-content--leave"
101
+ leaveTo="np-bottom-sheet-v2-content--leave-to"
101
102
  >
102
- <div className="np-bottom-sheet-v2-header">
103
- <CloseButton
104
- size={Size.SMALL}
105
- onClick={() => {
106
- onClose?.();
107
- }}
108
- />
109
- </div>
110
103
  <div
111
- className={classNames(
112
- 'np-bottom-sheet-v2-content-inner',
113
- title && 'np-bottom-sheet-v2-content-inner--has-title',
114
- {
115
- 'np-bottom-sheet-v2-content-inner--padding-md': padding === 'md',
116
- },
117
- )}
104
+ key={floatingKey} // Force inner state invalidation on open
105
+ ref={refs.setFloating}
106
+ className="np-bottom-sheet-v2-content-inner-container"
107
+ {...getFloatingProps()}
118
108
  >
119
- {title ? (
120
- <h2 className="np-bottom-sheet-v2-title np-text-title-body">{title}</h2>
121
- ) : null}
122
- <div className="np-bottom-sheet-v2-body np-text-body-default">{children}</div>
109
+ <div className="np-bottom-sheet-v2-header">
110
+ <CloseButton
111
+ size={Size.SMALL}
112
+ onClick={() => {
113
+ onClose?.();
114
+ }}
115
+ />
116
+ </div>
117
+ <div
118
+ className={classNames(
119
+ 'np-bottom-sheet-v2-content-inner',
120
+ title && 'np-bottom-sheet-v2-content-inner--has-title',
121
+ {
122
+ 'np-bottom-sheet-v2-content-inner--padding-md': padding === 'md',
123
+ },
124
+ )}
125
+ >
126
+ {title ? (
127
+ <h2 className="np-bottom-sheet-v2-title np-text-title-body">{title}</h2>
128
+ ) : null}
129
+ <div className="np-bottom-sheet-v2-body np-text-body-default">
130
+ {children}
131
+ </div>
132
+ </div>
123
133
  </div>
124
- </div>
125
- </Transition.Child>
126
- </div>
127
- </FloatingFocusManager>
134
+ </Transition.Child>
135
+ </div>
136
+ </FloatingFocusManager>
137
+ </FocusBoundary>
128
138
  </Transition>
129
139
  </ThemeProvider>
130
140
  </FloatingPortal>
@@ -17,6 +17,7 @@ import { ThemeProvider, useTheme } from '@wise/components-theming';
17
17
  import classNames from 'classnames';
18
18
  import { useState } from 'react';
19
19
 
20
+ import FocusBoundary from '../common/focusBoundary/FocusBoundary';
20
21
  import { PreventScroll } from '../common/preventScroll/PreventScroll';
21
22
 
22
23
  export interface PopoverProps {
@@ -88,36 +89,38 @@ export function Popover({
88
89
 
89
90
  <FloatingPortal>
90
91
  <ThemeProvider theme={theme} screenMode={screenMode} isNotRootProvider>
91
- <FloatingFocusManager context={context}>
92
- <Transition
93
- show={open}
94
- leave="transition-opacity"
95
- leaveTo="opacity-0"
96
- beforeEnter={() => {
97
- setFloatingKey((prev) => prev + 1);
98
- }}
99
- >
100
- <div
101
- key={floatingKey} // Force inner state invalidation on open
102
- ref={refs.setFloating}
103
- className="np-popover-v2-container"
104
- // eslint-disable-next-line react/forbid-dom-props
105
- style={floatingStyles}
106
- {...getFloatingProps()}
107
- >
92
+ <Transition
93
+ show={open}
94
+ leave="transition-opacity"
95
+ leaveTo="opacity-0"
96
+ beforeEnter={() => {
97
+ setFloatingKey((prev) => prev + 1);
98
+ }}
99
+ >
100
+ <FocusBoundary>
101
+ <FloatingFocusManager context={context} guards={false} modal={false}>
108
102
  <div
109
- className={classNames('np-popover-v2', title && 'np-popover-v2--has-title', {
110
- 'np-popover-v2--padding-md': padding === 'md',
111
- })}
103
+ key={floatingKey} // Force inner state invalidation on open
104
+ ref={refs.setFloating}
105
+ className="np-popover-v2-container"
106
+ // eslint-disable-next-line react/forbid-dom-props
107
+ style={floatingStyles}
108
+ {...getFloatingProps()}
112
109
  >
113
- {title ? (
114
- <h2 className="np-popover-v2-title np-text-title-body">{title}</h2>
115
- ) : null}
116
- <div className="np-popover-v2-content np-text-body-default">{children}</div>
110
+ <div
111
+ className={classNames('np-popover-v2', title && 'np-popover-v2--has-title', {
112
+ 'np-popover-v2--padding-md': padding === 'md',
113
+ })}
114
+ >
115
+ {title ? (
116
+ <h2 className="np-popover-v2-title np-text-title-body">{title}</h2>
117
+ ) : null}
118
+ <div className="np-popover-v2-content np-text-body-default">{children}</div>
119
+ </div>
117
120
  </div>
118
- </div>
119
- </Transition>
120
- </FloatingFocusManager>
121
+ </FloatingFocusManager>
122
+ </FocusBoundary>
123
+ </Transition>
121
124
  </ThemeProvider>
122
125
  </FloatingPortal>
123
126
  </>
@@ -1,3 +1,5 @@
1
+ @import (reference) '../../node_modules/@transferwise/neptune-css/src/less/core/_typography.less';
2
+
1
3
  .np-form-control {
2
4
  --ring-width: 1px;
3
5
  --ring-color: var(--color-interactive-secondary);
@@ -33,6 +35,7 @@
33
35
  }
34
36
 
35
37
  &--size-auto {
38
+ .np-text-body-large;
36
39
  padding-top: var(--size-12);
37
40
  padding-bottom: var(--size-12);
38
41
  }
@@ -46,14 +49,17 @@
46
49
  }
47
50
 
48
51
  &--size-sm {
52
+ .np-text-body-default;
49
53
  height: var(--size-32) !important;
50
54
  }
51
55
 
52
56
  &--size-md {
57
+ .np-text-body-large;
53
58
  height: var(--size-48) !important;
54
59
  }
55
60
 
56
61
  &--size-lg {
62
+ .np-text-title-subsection;
57
63
  height: var(--size-72) !important;
58
64
  }
59
65
  }
@@ -11,10 +11,10 @@ export function formControlClassNameBase({ size = 'auto' }: FormControlPropsBase
11
11
  'form-control', // TODO: Deprecate
12
12
  'np-form-control',
13
13
  {
14
- 'np-form-control--size-auto np-text-body-large': size === 'auto',
15
- 'np-form-control--size-sm np-text-body-default': size === 'sm',
16
- 'np-form-control--size-md np-text-body-large': size === 'md',
17
- 'np-form-control--size-lg np-text-title-subsection': size === 'lg',
14
+ 'np-form-control--size-auto': size === 'auto',
15
+ 'np-form-control--size-sm': size === 'sm',
16
+ 'np-form-control--size-md': size === 'md',
17
+ 'np-form-control--size-lg': size === 'lg',
18
18
  },
19
19
  );
20
20
  }