@transferwise/components 0.0.0-experimental-9b30760 → 0.0.0-experimental-683a8ba
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/index.esm.js +110 -114
- package/build/index.esm.js.map +1 -1
- package/build/index.js +110 -114
- package/build/index.js.map +1 -1
- package/build/types/circularButton/CircularButton.d.ts +2 -2
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
- package/build/types/common/textFormat/formatWithPattern/index.d.ts +1 -1
- package/build/types/common/textFormat/formatWithPattern/index.d.ts.map +1 -1
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts +1 -1
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts.map +1 -1
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/index.d.ts +1 -1
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/index.d.ts.map +1 -1
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts +1 -1
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts.map +1 -1
- package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts +2 -2
- package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts.map +1 -1
- package/build/types/common/textFormat/getDistanceToSymbol/index.d.ts +1 -1
- package/build/types/common/textFormat/getDistanceToSymbol/index.d.ts.map +1 -1
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts +1 -1
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts.map +1 -1
- package/build/types/common/textFormat/index.d.ts +7 -6
- package/build/types/common/textFormat/index.d.ts.map +1 -1
- package/build/types/common/textFormat/unformatWithPattern/index.d.ts +1 -1
- package/build/types/common/textFormat/unformatWithPattern/index.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/info/Info.d.ts +2 -3
- package/build/types/info/Info.d.ts.map +1 -1
- package/build/types/logo/Logo.d.ts.map +1 -1
- package/build/types/popover/Popover.d.ts +21 -16
- package/build/types/popover/Popover.d.ts.map +1 -1
- package/build/types/popover/index.d.ts +1 -2
- package/build/types/popover/index.d.ts.map +1 -1
- package/build/types/slidingPanel/SlidingPanel.d.ts +12 -17
- package/build/types/slidingPanel/SlidingPanel.d.ts.map +1 -1
- package/build/types/slidingPanel/index.d.ts +2 -1
- package/build/types/slidingPanel/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/circularButton/CircularButton.tsx +2 -2
- package/src/common/bottomSheet/BottomSheet.tsx +47 -41
- package/src/common/bottomSheet/__snapshots__/BottomSheet.spec.tsx.snap +37 -33
- package/src/common/textFormat/getCountOfSymbolsInSelection/{getCountOfSymbolsInSelection.js → getCountOfSymbolsInSelection.ts} +5 -1
- package/src/common/textFormat/getCursorPositionAfterKeystroke/{getCursorPositionAfterKeystroke.spec.js → getCursorPositionAfterKeystroke.spec.ts} +15 -18
- package/src/common/textFormat/getDistanceToSymbol/{getDistanceToSymbol.spec.js → getDistanceToSymbol.spec.ts} +3 -3
- package/src/common/textFormat/getDistanceToSymbol/{getDistanceToSymbol.js → getDistanceToSymbol.ts} +8 -3
- package/src/index.ts +1 -1
- package/src/info/Info.tsx +2 -2
- package/src/logo/Logo.js +1 -0
- package/src/logo/__snapshots__/Logo.spec.js.snap +6 -0
- package/src/popover/Popover.js +101 -0
- package/src/popover/{Popover.spec.tsx → Popover.spec.js} +2 -5
- package/src/popover/index.js +1 -0
- package/src/select/Select.spec.js +1 -1
- package/src/slidingPanel/SlidingPanel.spec.js +9 -19
- package/src/slidingPanel/SlidingPanel.tsx +62 -0
- package/src/slidingPanel/index.ts +2 -0
- package/src/sticky/Sticky.spec.js +0 -1
- package/src/popover/Popover.tsx +0 -106
- package/src/popover/index.ts +0 -2
- package/src/slidingPanel/SlidingPanel.js +0 -73
- package/src/slidingPanel/index.js +0 -1
- /package/src/common/textFormat/formatWithPattern/{formatWithPattern.spec.js → formatWithPattern.spec.ts} +0 -0
- /package/src/common/textFormat/formatWithPattern/{index.js → index.ts} +0 -0
- /package/src/common/textFormat/getCountOfSymbolsInSelection/{getCountOfSymbolsInSelection.spec.js → getCountOfSymbolsInSelection.spec.ts} +0 -0
- /package/src/common/textFormat/getCountOfSymbolsInSelection/{index.js → index.ts} +0 -0
- /package/src/common/textFormat/getCursorPositionAfterKeystroke/{index.js → index.ts} +0 -0
- /package/src/common/textFormat/getDistanceToSymbol/{index.js → index.ts} +0 -0
- /package/src/common/textFormat/getSymbolsInPatternWithPosition/{getSymbolsInPatternWithPosition.spec.js → getSymbolsInPatternWithPosition.spec.ts} +0 -0
- /package/src/common/textFormat/getSymbolsInPatternWithPosition/{index.js → index.ts} +0 -0
- /package/src/common/textFormat/{index.js → index.ts} +0 -0
- /package/src/common/textFormat/unformatWithPattern/{index.js → index.ts} +0 -0
- /package/src/common/textFormat/unformatWithPattern/{unformatWithPattern.spec.js → unformatWithPattern.spec.ts} +0 -0
- /package/src/popover/{Popover.story.tsx → Popover.story.js} +0 -0
- /package/src/popover/__snapshots__/{Popover.spec.tsx.snap → Popover.spec.js.snap} +0 -0
- /package/src/slidingPanel/{SlidingPanel.story.js → SlidingPanel.story.tsx} +0 -0
|
@@ -8,8 +8,8 @@ export interface CircularButtonProps {
|
|
|
8
8
|
size?: unknown;
|
|
9
9
|
}>;
|
|
10
10
|
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
11
|
-
priority?: `${Priority.PRIMARY
|
|
12
|
-
type?: `${ControlType.ACCENT
|
|
11
|
+
priority?: `${Priority.PRIMARY | Priority.SECONDARY}`;
|
|
12
|
+
type?: `${ControlType.ACCENT | ControlType.POSITIVE | ControlType.NEGATIVE}`;
|
|
13
13
|
}
|
|
14
14
|
declare const CircularButton: ({ className, children, disabled, icon, priority, type, ...rest }: CircularButtonProps) => import("react").JSX.Element;
|
|
15
15
|
export default CircularButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularButton.d.ts","sourceRoot":"","sources":["../../../src/circularButton/CircularButton.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGlD,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,GAAG,QAAQ,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"CircularButton.d.ts","sourceRoot":"","sources":["../../../src/circularButton/CircularButton.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGlD,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,GAAG,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;IACtD,IAAI,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,GAAG,WAAW,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;CAC9E;AAED,QAAA,MAAM,cAAc,qEAQjB,mBAAmB,gCAsBrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/common/bottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,YAAY,EACZ,iBAAiB,EAEjB,cAAc,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAa7C,KAAK,KAAK,GAAG,iBAAiB,CAC5B;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,KAAK,IAAI,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,WAAW,CACnF,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,WAAW,UAAW,KAAK,KAAG,
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/common/bottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,YAAY,EACZ,iBAAiB,EAEjB,cAAc,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAa7C,KAAK,KAAK,GAAG,iBAAiB,CAC5B;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,KAAK,IAAI,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,WAAW,CACnF,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,WAAW,UAAW,KAAK,KAAG,YAiLnC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './formatWithPattern';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/formatWithPattern/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/formatWithPattern/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
|
package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
declare const getCountOfSymbolsInSelection: (selectionStart: number, selectionEnd: number, pattern: string) => number;
|
|
1
2
|
export default getCountOfSymbolsInSelection;
|
|
2
|
-
declare function getCountOfSymbolsInSelection(selectionStart: any, selectionEnd: any, pattern: any): number;
|
|
3
3
|
//# sourceMappingURL=getCountOfSymbolsInSelection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCountOfSymbolsInSelection.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.
|
|
1
|
+
{"version":3,"file":"getCountOfSymbolsInSelection.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,4BAA4B,mBAChB,MAAM,gBACR,MAAM,WACX,MAAM,WAIP,CAAC;AAEX,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './getCountOfSymbolsInSelection';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getCountOfSymbolsInSelection/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getCountOfSymbolsInSelection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './getCursorPositionAfterKeystroke';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getCursorPositionAfterKeystroke/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getCursorPositionAfterKeystroke/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export declare const getDistanceToNextSymbol: (selectionStart: number, pattern: string) => number;
|
|
2
|
+
export declare const getDistanceToPreviousSymbol: (selectionStart: number, pattern: string) => number;
|
|
3
3
|
//# sourceMappingURL=getDistanceToSymbol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDistanceToSymbol.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.
|
|
1
|
+
{"version":3,"file":"getDistanceToSymbol.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,mBAAoB,MAAM,WAAW,MAAM,WAI9E,CAAC;AAEF,eAAO,MAAM,2BAA2B,mBAAoB,MAAM,WAAW,MAAM,WAMlF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getDistanceToPreviousSymbol, getDistanceToNextSymbol } from
|
|
1
|
+
export { getDistanceToPreviousSymbol, getDistanceToNextSymbol } from './getDistanceToSymbol';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getDistanceToSymbol/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getDistanceToSymbol/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './getSymbolsInPatternWithPosition';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getSymbolsInPatternWithPosition/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getSymbolsInPatternWithPosition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { default as formatWithPattern } from
|
|
2
|
-
export { default as unformatWithPattern } from
|
|
3
|
-
export { default as getSymbolsInPatternWithPosition } from
|
|
4
|
-
export { default as getCountOfSymbolsInSelection } from
|
|
5
|
-
export { default as getCursorPositionAfterKeystroke } from
|
|
6
|
-
export { getDistanceToNextSymbol
|
|
1
|
+
export { default as formatWithPattern } from './formatWithPattern';
|
|
2
|
+
export { default as unformatWithPattern } from './unformatWithPattern';
|
|
3
|
+
export { default as getSymbolsInPatternWithPosition } from './getSymbolsInPatternWithPosition';
|
|
4
|
+
export { default as getCountOfSymbolsInSelection } from './getCountOfSymbolsInSelection';
|
|
5
|
+
export { default as getCursorPositionAfterKeystroke } from './getCursorPositionAfterKeystroke';
|
|
6
|
+
export { getDistanceToNextSymbol } from './getDistanceToSymbol';
|
|
7
|
+
export { getDistanceToPreviousSymbol } from './getDistanceToSymbol';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/textFormat/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/textFormat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './unformatWithPattern';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/unformatWithPattern/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/unformatWithPattern/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export type { SearchInputProps } from './inputs/SearchInput';
|
|
|
14
14
|
export type { SelectInputGroupItem, SelectInputItem, SelectInputOptionContentProps, SelectInputOptionItem, SelectInputProps, SelectInputSeparatorItem, SelectInputTriggerButtonProps, } from './inputs/SelectInput';
|
|
15
15
|
export type { TextAreaProps } from './inputs/TextArea';
|
|
16
16
|
export type { PhoneNumberInputProps } from './phoneNumberInput/PhoneNumberInput';
|
|
17
|
-
export type { PopoverProps, PopoverPreferredPlacement } from './popover';
|
|
18
17
|
export type { RadioProps } from './radio';
|
|
19
18
|
export type { RadioGroupProps, RadioGroupRadio } from './radioGroup';
|
|
20
19
|
export type { RadioOptionProps } from './radioOption';
|
|
@@ -25,6 +24,7 @@ export type { UploadedFile, UploadError, UploadResponse } from './uploadInput/ty
|
|
|
25
24
|
export type { MarkdownProps } from './markdown';
|
|
26
25
|
export type { ModalProps } from './modal';
|
|
27
26
|
export type { CurrencyHeaderItem, CurrencyItem, CurrencyOptionItem, MoneyInputProps, } from './moneyInput';
|
|
27
|
+
export type { SlidingPanelProps } from './slidingPanel';
|
|
28
28
|
export type { LayoutDirection, TypographyTypes, TitleTypes, BodyTypes, LinkTypes, DisplayTypes, } from './common';
|
|
29
29
|
export type { SegmentedControlProps } from './segmentedControl';
|
|
30
30
|
export type { TypeaheadProps, TypeaheadOption } from './typeahead';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5E,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,C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C;AAChE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D;;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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SizeSmall, SizeLarge } from '../common';
|
|
3
|
-
import { PopoverPreferredPlacement } from '../popover';
|
|
2
|
+
import { Position, SizeSmall, SizeLarge } from '../common';
|
|
4
3
|
export interface Props {
|
|
5
4
|
'aria-label'?: string;
|
|
6
5
|
/**
|
|
@@ -27,7 +26,7 @@ export interface Props {
|
|
|
27
26
|
/**
|
|
28
27
|
* Prferred placement of the Popover, does not apply to Modal
|
|
29
28
|
*/
|
|
30
|
-
preferredPlacement?:
|
|
29
|
+
preferredPlacement?: Position;
|
|
31
30
|
}
|
|
32
31
|
declare const Info: ({ className, content, onClick, presentation, size, title, "aria-label": ariaLabel, preferredPlacement, }: Props) => import("react").JSX.Element;
|
|
33
32
|
export default Info;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../src/info/Info.tsx"],"names":[],"mappings":";AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../src/info/Info.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAQ,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAOjE,MAAM,WAAW,KAAK;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,QAAQ,CAAC;CAC/B;AAED,QAAA,MAAM,IAAI,6GASP,KAAK,gCAiDP,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/logo/Logo.js"],"names":[],"mappings":";AAkBA;;;;
|
|
1
|
+
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/logo/Logo.js"],"names":[],"mappings":";AAkBA;;;;gCAcC"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export type PopoverPreferredPlacement = "top" | "right" | "bottom" | "left" | "left-top" | "right-top" | "bottom-right" | "bottom-left";
|
|
4
|
+
|
|
5
|
+
export interface PopoverProps {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
content: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* `'left-top'` / `'right-top'` are deprecated use `Position.TOP` / `'top'` instead,
|
|
11
|
+
* `'bottom-right'` / `'bottom-left'` are deprecated use `Position.BOTTOM` / `'bottom'` instead
|
|
12
|
+
*/
|
|
13
|
+
preferredPlacement?: PopoverPreferredPlacement;
|
|
14
|
+
onClose?: (...args: any[])=>any;
|
|
15
|
+
title?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const Popover: React.FC<PopoverProps>;
|
|
19
|
+
|
|
20
|
+
export default Popover;
|
|
21
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/popover/Popover.
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/popover/Popover.js"],"names":[],"mappings":";AAUA;;;;;;;gCA8CC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/popover/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/popover/index.js"],"names":[],"mappings":""}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare const SlidingPanel: React.FC<SlidingPanelProps>;
|
|
15
|
-
|
|
16
|
-
export default SlidingPanel;
|
|
17
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Position } from '../common';
|
|
3
|
+
export declare const EXIT_ANIMATION = 350;
|
|
4
|
+
export interface SlidingPanelProps extends Pick<React.ComponentPropsWithRef<'div'>, 'ref' | 'className' | 'children'> {
|
|
5
|
+
position?: `${Position.TOP | Position.RIGHT | Position.BOTTOM | Position.LEFT}`;
|
|
6
|
+
open: boolean;
|
|
7
|
+
showSlidingPanelBorder?: boolean;
|
|
8
|
+
slidingPanelPositionFixed?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const SlidingPanel: import("react").ForwardRefExoticComponent<Omit<SlidingPanelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default SlidingPanel;
|
|
12
|
+
//# sourceMappingURL=SlidingPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlidingPanel.d.ts","sourceRoot":"","sources":["../../../src/slidingPanel/SlidingPanel.
|
|
1
|
+
{"version":3,"file":"SlidingPanel.d.ts","sourceRoot":"","sources":["../../../src/slidingPanel/SlidingPanel.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,WAAW,GAAG,UAAU,CAAC;IAClF,QAAQ,CAAC,EAAE,GAAG,QAAQ,CAAC,GAAG,GAAG,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAChF,IAAI,EAAE,OAAO,CAAC;IACd,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,QAAA,MAAM,YAAY,2HA0CjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/slidingPanel/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/slidingPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -12,8 +12,8 @@ export interface CircularButtonProps {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
icon: React.ReactElement<{ size?: unknown }>;
|
|
14
14
|
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
15
|
-
priority?: `${Priority.PRIMARY
|
|
16
|
-
type?: `${ControlType.ACCENT
|
|
15
|
+
priority?: `${Priority.PRIMARY | Priority.SECONDARY}`;
|
|
16
|
+
type?: `${ControlType.ACCENT | ControlType.POSITIVE | ControlType.NEGATIVE}`;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
const CircularButton = ({
|
|
@@ -92,33 +92,35 @@ const BottomSheet = (props: Props): ReactElement => {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const onSwipeStart =
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const onSwipeMove =
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
95
|
+
const onSwipeStart = (
|
|
96
|
+
event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,
|
|
97
|
+
): void => {
|
|
98
|
+
initialYCoordinate.current = ('touches' in event ? event.touches[0] : event).clientY;
|
|
99
|
+
setPressed(true);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const onSwipeMove = (
|
|
103
|
+
event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,
|
|
104
|
+
): void => {
|
|
105
|
+
if (pressed) {
|
|
106
|
+
const { clientY } = 'touches' in event ? event.touches[0] : event;
|
|
107
|
+
|
|
108
|
+
const offset = calculateOffsetAfterMove(clientY);
|
|
109
|
+
// check whether move is to the bottom only and content scroll position is at the top
|
|
110
|
+
if (offset > INITIAL_Y_POSITION && isContentScrollPositionAtTop()) {
|
|
111
|
+
moveOffset.current = offset;
|
|
112
|
+
animationId.current = requestAnimationFrame(() => {
|
|
113
|
+
if (animationId.current !== undefined && bottomSheetReference.current !== null) {
|
|
114
|
+
move(offset);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
118
117
|
}
|
|
119
|
-
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
120
|
|
|
121
|
-
function onSwipeEnd(
|
|
121
|
+
function onSwipeEnd(
|
|
122
|
+
event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,
|
|
123
|
+
): void {
|
|
122
124
|
// stop moving component
|
|
123
125
|
cancelAnimationFrame(animationId.current);
|
|
124
126
|
setPressed(false);
|
|
@@ -178,30 +180,34 @@ const BottomSheet = (props: Props): ReactElement => {
|
|
|
178
180
|
</Drawer>
|
|
179
181
|
) : (
|
|
180
182
|
<Dimmer open={props.open} fadeContentOnEnter fadeContentOnExit onClose={close}>
|
|
181
|
-
{/* @ts-expect-error remove when SlidingPanel will be written on TS */}
|
|
182
183
|
<SlidingPanel
|
|
183
184
|
ref={bottomSheetReference}
|
|
184
185
|
open={props.open}
|
|
185
186
|
position={Position.BOTTOM}
|
|
186
187
|
className={classNames('np-bottom-sheet', props.className)}
|
|
187
|
-
role="dialog"
|
|
188
|
-
onTouchStart={onSwipeStart(true)}
|
|
189
|
-
onTouchMove={onSwipeMove(true)}
|
|
190
|
-
onTouchEnd={onSwipeEnd}
|
|
191
|
-
onMouseDown={onSwipeStart(false)}
|
|
192
|
-
onMouseMove={onSwipeMove(false)}
|
|
193
|
-
onMouseUp={onSwipeEnd}
|
|
194
188
|
>
|
|
195
|
-
|
|
196
|
-
<div className="np-bottom-sheet--handler" />
|
|
197
|
-
<CloseButton size="sm" className="sr-only np-bottom-sheet--close-btn" onClick={close} />
|
|
198
|
-
</div>
|
|
189
|
+
{/* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */}
|
|
199
190
|
<div
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
191
|
+
role="dialog"
|
|
192
|
+
aria-modal
|
|
193
|
+
onTouchStart={onSwipeStart}
|
|
194
|
+
onTouchMove={onSwipeMove}
|
|
195
|
+
onTouchEnd={onSwipeEnd}
|
|
196
|
+
onMouseDown={onSwipeStart}
|
|
197
|
+
onMouseMove={onSwipeMove}
|
|
198
|
+
onMouseUp={onSwipeEnd}
|
|
203
199
|
>
|
|
204
|
-
{
|
|
200
|
+
<div ref={topBarReference} className="np-bottom-sheet--top-bar">
|
|
201
|
+
<div className="np-bottom-sheet--handler" />
|
|
202
|
+
<CloseButton size="sm" className="sr-only np-bottom-sheet--close-btn" onClick={close} />
|
|
203
|
+
</div>
|
|
204
|
+
<div
|
|
205
|
+
ref={contentReference}
|
|
206
|
+
style={setContentMaxHeight()}
|
|
207
|
+
className="np-bottom-sheet--content"
|
|
208
|
+
>
|
|
209
|
+
{props.children}
|
|
210
|
+
</div>
|
|
205
211
|
</div>
|
|
206
212
|
</SlidingPanel>
|
|
207
213
|
</Dimmer>
|
|
@@ -22,46 +22,50 @@ exports[`BottomSheet renders content when open 1`] = `
|
|
|
22
22
|
>
|
|
23
23
|
<div
|
|
24
24
|
class="sliding-panel sliding-panel--open-bottom np-bottom-sheet sliding-panel-appear sliding-panel-appear-active"
|
|
25
|
-
role="dialog"
|
|
26
25
|
>
|
|
27
26
|
<div
|
|
28
|
-
|
|
27
|
+
aria-modal="true"
|
|
28
|
+
role="dialog"
|
|
29
29
|
>
|
|
30
30
|
<div
|
|
31
|
-
class="np-bottom-sheet--
|
|
32
|
-
/>
|
|
33
|
-
<button
|
|
34
|
-
aria-label="Close"
|
|
35
|
-
class="np-close-button close btn-link text-no-decoration sr-only np-bottom-sheet--close-btn"
|
|
36
|
-
type="button"
|
|
31
|
+
class="np-bottom-sheet--top-bar"
|
|
37
32
|
>
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
<div
|
|
34
|
+
class="np-bottom-sheet--handler"
|
|
35
|
+
/>
|
|
36
|
+
<button
|
|
37
|
+
aria-label="Close"
|
|
38
|
+
class="np-close-button close btn-link text-no-decoration sr-only np-bottom-sheet--close-btn"
|
|
39
|
+
type="button"
|
|
43
40
|
>
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
width="16"
|
|
41
|
+
<span
|
|
42
|
+
aria-hidden="true"
|
|
43
|
+
class="tw-icon tw-icon-cross "
|
|
44
|
+
data-testid="cross-icon"
|
|
45
|
+
role="presentation"
|
|
50
46
|
>
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</
|
|
47
|
+
<svg
|
|
48
|
+
fill="currentColor"
|
|
49
|
+
focusable="false"
|
|
50
|
+
height="16"
|
|
51
|
+
viewBox="0 0 24 24"
|
|
52
|
+
width="16"
|
|
53
|
+
>
|
|
54
|
+
<path
|
|
55
|
+
d="m19.629 5.915-1.2-1.2-6.257 6.257-6.258-6.257-1.2 1.2 6.258 6.257-6.258 6.257 1.2 1.2 6.258-6.257 6.257 6.257 1.2-1.2-6.258-6.257 6.258-6.257Z"
|
|
56
|
+
/>
|
|
57
|
+
</svg>
|
|
58
|
+
</span>
|
|
59
|
+
</button>
|
|
60
|
+
</div>
|
|
61
|
+
<div
|
|
62
|
+
class="np-bottom-sheet--content"
|
|
63
|
+
style="max-height: calc(768px - 64px - 32px);"
|
|
64
|
+
>
|
|
65
|
+
<b>
|
|
66
|
+
Test Content
|
|
67
|
+
</b>
|
|
68
|
+
</div>
|
|
65
69
|
</div>
|
|
66
70
|
</div>
|
|
67
71
|
</div>
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import getSymbolsInPatternWithPosition from '../getSymbolsInPatternWithPosition';
|
|
2
2
|
|
|
3
|
-
const getCountOfSymbolsInSelection = (
|
|
3
|
+
const getCountOfSymbolsInSelection = (
|
|
4
|
+
selectionStart: number,
|
|
5
|
+
selectionEnd: number,
|
|
6
|
+
pattern: string,
|
|
7
|
+
) =>
|
|
4
8
|
getSymbolsInPatternWithPosition(pattern).filter(
|
|
5
9
|
(symbol) => symbol.index >= selectionStart && symbol.index < selectionEnd,
|
|
6
10
|
).length;
|
|
@@ -112,23 +112,20 @@ const tests = [
|
|
|
112
112
|
];
|
|
113
113
|
|
|
114
114
|
describe('pushValueToStack', () => {
|
|
115
|
-
tests
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
expect(
|
|
130
|
-
getCursorPositionAfterKeystroke(key, selectionStart, selectionEnd, pattern, pastedLength),
|
|
131
|
-
).toStrictEqual(expectedValue);
|
|
132
|
-
});
|
|
115
|
+
tests.forEach((test) => {
|
|
116
|
+
const {
|
|
117
|
+
key,
|
|
118
|
+
selectionStart,
|
|
119
|
+
selectionEnd = selectionStart,
|
|
120
|
+
expectedValue,
|
|
121
|
+
testMessage,
|
|
122
|
+
pattern,
|
|
123
|
+
pastedLength = 0,
|
|
124
|
+
} = test;
|
|
125
|
+
it(`${testMessage}`, () => {
|
|
126
|
+
expect(
|
|
127
|
+
getCursorPositionAfterKeystroke(key, selectionStart, selectionEnd, pattern, pastedLength),
|
|
128
|
+
).toStrictEqual(expectedValue);
|
|
133
129
|
});
|
|
130
|
+
});
|
|
134
131
|
});
|
|
@@ -28,9 +28,9 @@ describe('getDistanceToNextSymbol', () => {
|
|
|
28
28
|
describe('testsGetDistanceToPreviousSymbol', () => {
|
|
29
29
|
testsGetDistanceToPreviousSymbol.forEach((test) => {
|
|
30
30
|
it(`returns ${test.expectedValue} for current cursor ${test.selectionStart} if pattern is ${test.pattern} and direction ${test.direction}`, () => {
|
|
31
|
-
expect(
|
|
32
|
-
|
|
33
|
-
)
|
|
31
|
+
expect(getDistanceToPreviousSymbol(test.selectionStart, test.pattern)).toStrictEqual(
|
|
32
|
+
test.expectedValue,
|
|
33
|
+
);
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
});
|