@transferwise/components 46.5.0 → 46.7.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.
- package/build/i18n/th.json +3 -3
- package/build/index.esm.js +252 -464
- package/build/index.esm.js.map +1 -1
- package/build/index.js +253 -465
- package/build/index.js.map +1 -1
- package/build/main.css +6 -17
- package/build/styles/inputs/Input.css +0 -4
- package/build/styles/inputs/SelectInput.css +6 -1
- package/build/styles/inputs/TextArea.css +0 -4
- package/build/styles/main.css +6 -17
- package/build/styles/select/Select.css +0 -4
- package/build/types/common/locale/index.d.ts +26 -43
- package/build/types/common/locale/index.d.ts.map +1 -1
- package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts +1 -1
- package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts.map +1 -1
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts +2 -2
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts.map +1 -1
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts +5 -1
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts.map +1 -1
- package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts +1 -1
- package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts +7 -11
- package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +1 -1
- package/build/types/inputWithDisplayFormat/index.d.ts +2 -1
- package/build/types/inputWithDisplayFormat/index.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts +6 -5
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/phoneNumberInput/PhoneNumberInput.d.ts +22 -27
- package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
- package/build/types/phoneNumberInput/data/countries.d.ts +5 -10
- package/build/types/phoneNumberInput/data/countries.d.ts.map +1 -1
- package/build/types/phoneNumberInput/index.d.ts +1 -1
- package/build/types/phoneNumberInput/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/cleanNumber/index.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/cleanNumber/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts +8 -1
- package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/excludeCountries/index.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/excludeCountries/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts +8 -4
- package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts +2 -1
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/index.d.ts +11 -13
- package/build/types/phoneNumberInput/utils/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/isStringNumeric/index.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/isStringNumeric/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts +6 -1
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts +2 -1
- package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts +7 -1
- package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/index.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts +1 -1
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts.map +1 -1
- package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts +7 -11
- package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +1 -1
- package/build/types/textareaWithDisplayFormat/index.d.ts +2 -1
- package/build/types/textareaWithDisplayFormat/index.d.ts.map +1 -1
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts +55 -83
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
- package/build/types/withDisplayFormat/index.d.ts +2 -1
- package/build/types/withDisplayFormat/index.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/common/locale/{index.spec.js → index.spec.ts} +4 -4
- package/src/common/locale/index.ts +96 -0
- package/src/common/textFormat/formatWithPattern/{formatWithPattern.js → formatWithPattern.ts} +8 -4
- package/src/common/textFormat/getCursorPositionAfterKeystroke/{getCursorPositionAfterKeystroke.js → getCursorPositionAfterKeystroke.ts} +8 -8
- package/src/common/textFormat/getSymbolsInPatternWithPosition/{getSymbolsInPatternWithPosition.js → getSymbolsInPatternWithPosition.ts} +7 -2
- package/src/common/textFormat/unformatWithPattern/{unformatWithPattern.js → unformatWithPattern.ts} +3 -2
- package/src/i18n/th.json +3 -3
- package/src/index.ts +3 -0
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.tsx +10 -0
- package/src/inputWithDisplayFormat/index.ts +2 -0
- package/src/inputs/Input.css +0 -4
- package/src/inputs/SelectInput.css +6 -1
- package/src/inputs/SelectInput.less +8 -1
- package/src/inputs/SelectInput.spec.tsx +26 -0
- package/src/inputs/SelectInput.story.tsx +73 -1
- package/src/inputs/SelectInput.tsx +104 -85
- package/src/inputs/TextArea.css +0 -4
- package/src/main.css +6 -17
- package/src/phoneNumberInput/PhoneNumberInput.spec.js +18 -22
- package/src/phoneNumberInput/PhoneNumberInput.tsx +193 -0
- package/src/phoneNumberInput/data/{countries.js → countries.ts} +9 -1
- package/src/phoneNumberInput/utils/cleanNumber/cleanNumber.ts +3 -0
- package/src/phoneNumberInput/utils/excludeCountries/{excludeCountries.spec.js → excludeCountries.spec.ts} +1 -1
- package/src/phoneNumberInput/utils/excludeCountries/{excludeCountries.js → excludeCountries.ts} +6 -5
- package/src/phoneNumberInput/utils/explodeNumberModel/{explodeNumberModel.spec.js → explodeNumberModel.spec.ts} +1 -1
- package/src/phoneNumberInput/utils/explodeNumberModel/index.ts +24 -0
- package/src/phoneNumberInput/utils/findCountryByCode/{findCountryByCode.spec.js → findCountryByCode.spec.ts} +0 -1
- package/src/phoneNumberInput/utils/findCountryByCode/index.ts +12 -0
- package/src/phoneNumberInput/utils/findCountryByPrefix/index.ts +12 -0
- package/src/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.spec.ts +102 -0
- package/src/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.ts +12 -0
- package/src/phoneNumberInput/utils/{index.js → index.ts} +0 -2
- package/src/phoneNumberInput/utils/isStringNumeric/{isStringNumeric.spec.js → isStringNumeric.spec.ts} +0 -1
- package/src/phoneNumberInput/utils/isStringNumeric/isStringNumeric.ts +1 -0
- package/src/phoneNumberInput/utils/isValidPhoneNumber/{isValidPhoneNumber.spec.js → isValidPhoneNumber.spec.ts} +1 -1
- package/src/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.ts +7 -0
- package/src/phoneNumberInput/utils/longestMatchingPrefix/index.ts +4 -0
- package/src/phoneNumberInput/utils/setDefaultPrefix/index.ts +20 -0
- package/src/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.ts +6 -0
- package/src/select/Select.css +0 -4
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.spec.js +3 -1
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.story.tsx +32 -0
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.tsx +13 -0
- package/src/textareaWithDisplayFormat/index.ts +2 -0
- package/src/withDisplayFormat/WithDisplayFormat.spec.js +1 -1
- package/src/withDisplayFormat/{WithDisplayFormat.js → WithDisplayFormat.tsx} +127 -107
- package/src/withDisplayFormat/index.ts +2 -0
- package/build/types/phoneNumberInput/utils/filterOptionsForQuery/index.d.ts +0 -2
- package/build/types/phoneNumberInput/utils/filterOptionsForQuery/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/index.d.ts +0 -2
- package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.d.ts +0 -3
- package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.d.ts.map +0 -1
- package/build/types/utilities/wrapInFragment.d.ts +0 -3
- package/build/types/utilities/wrapInFragment.d.ts.map +0 -1
- package/src/common/locale/index.js +0 -139
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.js +0 -14
- package/src/inputWithDisplayFormat/index.js +0 -1
- package/src/phoneNumberInput/PhoneNumberInput.js +0 -210
- package/src/phoneNumberInput/data/countries.spec.js +0 -12
- package/src/phoneNumberInput/utils/cleanNumber/cleanNumber.js +0 -4
- package/src/phoneNumberInput/utils/explodeNumberModel/index.js +0 -27
- package/src/phoneNumberInput/utils/filterOptionsForQuery/filterOptionsForQuery.spec.js +0 -36
- package/src/phoneNumberInput/utils/filterOptionsForQuery/index.js +0 -11
- package/src/phoneNumberInput/utils/findCountryByCode/index.js +0 -10
- package/src/phoneNumberInput/utils/findCountryByPrefix/index.js +0 -11
- package/src/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +0 -26
- package/src/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.spec.js +0 -67
- package/src/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +0 -1
- package/src/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +0 -25
- package/src/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.spec.js +0 -66
- package/src/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +0 -1
- package/src/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +0 -10
- package/src/phoneNumberInput/utils/longestMatchingPrefix/index.js +0 -2
- package/src/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -25
- package/src/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +0 -3
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +0 -14
- package/src/textareaWithDisplayFormat/index.js +0 -1
- package/src/utilities/wrapInFragment.tsx +0 -3
- package/src/withDisplayFormat/index.js +0 -1
- /package/src/phoneNumberInput/{PhoneNumberInput.story.js → PhoneNumberInput.story.tsx} +0 -0
- /package/src/phoneNumberInput/{index.js → index.ts} +0 -0
- /package/src/phoneNumberInput/utils/cleanNumber/{cleanNumber.spec.js → cleanNumber.spec.ts} +0 -0
- /package/src/phoneNumberInput/utils/cleanNumber/{index.js → index.ts} +0 -0
- /package/src/phoneNumberInput/utils/excludeCountries/{index.js → index.ts} +0 -0
- /package/src/phoneNumberInput/utils/findCountryByPrefix/{findCountryByPrefix.spec.js → findCountryByPrefix.spec.ts} +0 -0
- /package/src/phoneNumberInput/utils/groupCountriesByPrefix/{index.js → index.ts} +0 -0
- /package/src/phoneNumberInput/utils/isStringNumeric/{index.js → index.ts} +0 -0
- /package/src/phoneNumberInput/utils/isValidPhoneNumber/{index.js → index.ts} +0 -0
- /package/src/phoneNumberInput/utils/longestMatchingPrefix/{longestMatchingPrefix.spec.js → longestMatchingPrefix.spec.ts} +0 -0
- /package/src/phoneNumberInput/utils/setDefaultPrefix/{setDefaultPrefix.spec.js → setDefaultPrefix.spec.ts} +0 -0
- /package/src/phoneNumberInput/utils/sortArrayByProperty/{index.js → index.ts} +0 -0
- /package/src/phoneNumberInput/utils/sortArrayByProperty/{sortArrayByProperty.spec.js → sortArrayByProperty.spec.ts} +0 -0
package/build/main.css
CHANGED
|
@@ -74,14 +74,6 @@ div.critical-comms .critical-comms-body {
|
|
|
74
74
|
flex-wrap: wrap;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
.tw-date-lookup-calendar > tbody > tr > td.weekend button {
|
|
78
|
-
font-weight: 400;
|
|
79
|
-
font-weight: var(--font-weight-regular);line-height: 1.5;line-height: var(--line-height-body);
|
|
80
|
-
}
|
|
81
|
-
.tw-date-lookup-calendar > tbody > tr > td.weekend button {
|
|
82
|
-
font-size: 1rem;
|
|
83
|
-
font-size: var(--font-size-16);
|
|
84
|
-
}
|
|
85
77
|
.tw-date-lookup-calendar > tbody > tr > td.weekend button {
|
|
86
78
|
font-size: 0.875rem;
|
|
87
79
|
font-size: var(--font-size-14);line-height: 155%;letter-spacing: -0.006em;font-weight: 400;font-weight: var(--font-weight-regular);
|
|
@@ -2226,10 +2218,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2226
2218
|
padding-bottom: 0 !important;
|
|
2227
2219
|
}
|
|
2228
2220
|
.np-form-control--size-sm {
|
|
2229
|
-
line-height: 1.5;
|
|
2230
|
-
line-height: var(--line-height-body);
|
|
2231
|
-
font-size: 1rem;
|
|
2232
|
-
font-size: var(--font-size-16);
|
|
2233
2221
|
font-size: 0.875rem;
|
|
2234
2222
|
font-size: var(--font-size-14);
|
|
2235
2223
|
line-height: 155%;
|
|
@@ -2511,10 +2499,12 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2511
2499
|
color: #5d7079;
|
|
2512
2500
|
color: var(--color-content-secondary);
|
|
2513
2501
|
}
|
|
2514
|
-
.np-select-input-
|
|
2502
|
+
.np-select-input-content {
|
|
2515
2503
|
overflow: hidden;
|
|
2516
2504
|
text-overflow: ellipsis;
|
|
2517
2505
|
white-space: nowrap;
|
|
2506
|
+
}
|
|
2507
|
+
.np-select-input-placeholder {
|
|
2518
2508
|
color: #768e9c;
|
|
2519
2509
|
color: var(--color-content-tertiary);
|
|
2520
2510
|
}
|
|
@@ -2622,6 +2612,9 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2622
2612
|
padding: var(--size-12) var(--size-16);
|
|
2623
2613
|
color: var(--color-interactive-primary);
|
|
2624
2614
|
}
|
|
2615
|
+
.np-select-input-option-container:focus {
|
|
2616
|
+
outline: none;
|
|
2617
|
+
}
|
|
2625
2618
|
.np-select-input-option-container--active {
|
|
2626
2619
|
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
2627
2620
|
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
@@ -4455,10 +4448,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4455
4448
|
border-radius: var(--radius-small);
|
|
4456
4449
|
color: #37517e;
|
|
4457
4450
|
color: var(--color-content-primary);
|
|
4458
|
-
line-height: 1.5;
|
|
4459
|
-
line-height: var(--line-height-body);
|
|
4460
|
-
font-size: 1rem;
|
|
4461
|
-
font-size: var(--font-size-16);
|
|
4462
4451
|
font-size: 0.875rem;
|
|
4463
4452
|
font-size: var(--font-size-14);
|
|
4464
4453
|
line-height: 155%;
|
|
@@ -47,10 +47,6 @@
|
|
|
47
47
|
padding-top: 0 !important;
|
|
48
48
|
padding-bottom: 0 !important;
|
|
49
49
|
}.np-form-control--size-sm {
|
|
50
|
-
line-height: 1.5;
|
|
51
|
-
line-height: var(--line-height-body);
|
|
52
|
-
font-size: 1rem;
|
|
53
|
-
font-size: var(--font-size-16);
|
|
54
50
|
font-size: 0.875rem;
|
|
55
51
|
font-size: var(--font-size-14);
|
|
56
52
|
line-height: 155%;
|
|
@@ -158,10 +158,12 @@
|
|
|
158
158
|
color: #5d7079;
|
|
159
159
|
color: var(--color-content-secondary);
|
|
160
160
|
}
|
|
161
|
-
.np-select-input-
|
|
161
|
+
.np-select-input-content {
|
|
162
162
|
overflow: hidden;
|
|
163
163
|
text-overflow: ellipsis;
|
|
164
164
|
white-space: nowrap;
|
|
165
|
+
}
|
|
166
|
+
.np-select-input-placeholder {
|
|
165
167
|
color: #768e9c;
|
|
166
168
|
color: var(--color-content-tertiary);
|
|
167
169
|
}
|
|
@@ -269,6 +271,9 @@
|
|
|
269
271
|
padding: var(--size-12) var(--size-16);
|
|
270
272
|
color: var(--color-interactive-primary);
|
|
271
273
|
}
|
|
274
|
+
.np-select-input-option-container:focus {
|
|
275
|
+
outline: none;
|
|
276
|
+
}
|
|
272
277
|
.np-select-input-option-container--active {
|
|
273
278
|
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
274
279
|
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
@@ -47,10 +47,6 @@
|
|
|
47
47
|
padding-top: 0 !important;
|
|
48
48
|
padding-bottom: 0 !important;
|
|
49
49
|
}.np-form-control--size-sm {
|
|
50
|
-
line-height: 1.5;
|
|
51
|
-
line-height: var(--line-height-body);
|
|
52
|
-
font-size: 1rem;
|
|
53
|
-
font-size: var(--font-size-16);
|
|
54
50
|
font-size: 0.875rem;
|
|
55
51
|
font-size: var(--font-size-14);
|
|
56
52
|
line-height: 155%;
|
package/build/styles/main.css
CHANGED
|
@@ -74,14 +74,6 @@ div.critical-comms .critical-comms-body {
|
|
|
74
74
|
flex-wrap: wrap;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
.tw-date-lookup-calendar > tbody > tr > td.weekend button {
|
|
78
|
-
font-weight: 400;
|
|
79
|
-
font-weight: var(--font-weight-regular);line-height: 1.5;line-height: var(--line-height-body);
|
|
80
|
-
}
|
|
81
|
-
.tw-date-lookup-calendar > tbody > tr > td.weekend button {
|
|
82
|
-
font-size: 1rem;
|
|
83
|
-
font-size: var(--font-size-16);
|
|
84
|
-
}
|
|
85
77
|
.tw-date-lookup-calendar > tbody > tr > td.weekend button {
|
|
86
78
|
font-size: 0.875rem;
|
|
87
79
|
font-size: var(--font-size-14);line-height: 155%;letter-spacing: -0.006em;font-weight: 400;font-weight: var(--font-weight-regular);
|
|
@@ -2226,10 +2218,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2226
2218
|
padding-bottom: 0 !important;
|
|
2227
2219
|
}
|
|
2228
2220
|
.np-form-control--size-sm {
|
|
2229
|
-
line-height: 1.5;
|
|
2230
|
-
line-height: var(--line-height-body);
|
|
2231
|
-
font-size: 1rem;
|
|
2232
|
-
font-size: var(--font-size-16);
|
|
2233
2221
|
font-size: 0.875rem;
|
|
2234
2222
|
font-size: var(--font-size-14);
|
|
2235
2223
|
line-height: 155%;
|
|
@@ -2511,10 +2499,12 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2511
2499
|
color: #5d7079;
|
|
2512
2500
|
color: var(--color-content-secondary);
|
|
2513
2501
|
}
|
|
2514
|
-
.np-select-input-
|
|
2502
|
+
.np-select-input-content {
|
|
2515
2503
|
overflow: hidden;
|
|
2516
2504
|
text-overflow: ellipsis;
|
|
2517
2505
|
white-space: nowrap;
|
|
2506
|
+
}
|
|
2507
|
+
.np-select-input-placeholder {
|
|
2518
2508
|
color: #768e9c;
|
|
2519
2509
|
color: var(--color-content-tertiary);
|
|
2520
2510
|
}
|
|
@@ -2622,6 +2612,9 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2622
2612
|
padding: var(--size-12) var(--size-16);
|
|
2623
2613
|
color: var(--color-interactive-primary);
|
|
2624
2614
|
}
|
|
2615
|
+
.np-select-input-option-container:focus {
|
|
2616
|
+
outline: none;
|
|
2617
|
+
}
|
|
2625
2618
|
.np-select-input-option-container--active {
|
|
2626
2619
|
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
2627
2620
|
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
@@ -4455,10 +4448,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4455
4448
|
border-radius: var(--radius-small);
|
|
4456
4449
|
color: #37517e;
|
|
4457
4450
|
color: var(--color-content-primary);
|
|
4458
|
-
line-height: 1.5;
|
|
4459
|
-
line-height: var(--line-height-body);
|
|
4460
|
-
font-size: 1rem;
|
|
4461
|
-
font-size: var(--font-size-16);
|
|
4462
4451
|
font-size: 0.875rem;
|
|
4463
4452
|
font-size: var(--font-size-14);
|
|
4464
4453
|
line-height: 155%;
|
|
@@ -152,10 +152,6 @@
|
|
|
152
152
|
border-radius: var(--radius-small);
|
|
153
153
|
color: #37517e;
|
|
154
154
|
color: var(--color-content-primary);
|
|
155
|
-
line-height: 1.5;
|
|
156
|
-
line-height: var(--line-height-body);
|
|
157
|
-
font-size: 1rem;
|
|
158
|
-
font-size: var(--font-size-16);
|
|
159
155
|
font-size: 0.875rem;
|
|
160
156
|
font-size: var(--font-size-14);
|
|
161
157
|
line-height: 155%;
|
|
@@ -1,62 +1,45 @@
|
|
|
1
|
+
import { Direction } from '..';
|
|
2
|
+
export declare const DEFAULT_LANG = "en";
|
|
3
|
+
export declare const DEFAULT_LOCALE = "en-GB";
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
|
|
5
|
+
* Languages written right-to-left.
|
|
6
|
+
*/
|
|
7
|
+
export declare const RTL_LANGUAGES: string[];
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated The source of truth for supported languages lives in Crab.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SUPPORTED_LANGUAGES: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Verifies and adjusts locale, replacing `_` with `-`.
|
|
4
14
|
*
|
|
5
|
-
* @param
|
|
6
|
-
* @returns
|
|
15
|
+
* @param locale `es`, `es_ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.
|
|
16
|
+
* @returns `null` if locale is unrecognized by `Intl.Locale`.
|
|
7
17
|
*/
|
|
8
|
-
export function adjustLocale(locale: string): string | null;
|
|
18
|
+
export declare function adjustLocale(locale: string): string | null;
|
|
9
19
|
/**
|
|
10
|
-
* Provides corresponding lang (iso2) for provided locale
|
|
11
|
-
* if locale is invalid or language is unsupported returns null
|
|
20
|
+
* Provides corresponding lang (iso2) for provided locale.
|
|
12
21
|
*
|
|
13
22
|
* @deprecated The use of this function almost always breaks language variants
|
|
14
23
|
* e.g. Simplified and Traditional Chinese.
|
|
15
24
|
* There should be no use case for this function.
|
|
16
25
|
* To select the correct translations from a translations object, pass the
|
|
17
26
|
* locale directly into Crab's getLocalisedMessages.
|
|
18
|
-
* @param
|
|
19
|
-
* @returns
|
|
27
|
+
* @param locale `es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.
|
|
28
|
+
* @returns Two-letter ISO 639-1 language code, falling back to `null` if locale is invalid or language is unsupported.
|
|
20
29
|
*/
|
|
21
|
-
export function getLangFromLocale(locale: string): string | null;
|
|
30
|
+
export declare function getLangFromLocale(locale: string): string | null;
|
|
22
31
|
/**
|
|
23
|
-
* Provides corresponding country code (iso2) for locales code with explicit region value
|
|
24
|
-
* if the value is invalid or missing region it returns null
|
|
32
|
+
* Provides corresponding country code (iso2) for locales code with explicit region value.
|
|
25
33
|
*
|
|
26
|
-
* @param
|
|
27
|
-
* @returns
|
|
34
|
+
* @param locale `es-ES`, `en-GB`, `ja-JP`, etc.
|
|
35
|
+
* @returns `null` if the locale is invalid or the region can‘t be identified.
|
|
28
36
|
*/
|
|
29
|
-
export function getCountryFromLocale(locale: string): string | null;
|
|
37
|
+
export declare function getCountryFromLocale(locale: string): string | null;
|
|
30
38
|
/**
|
|
31
39
|
* Provides the layout direction for a given locale.
|
|
32
|
-
* If locale is invalid or language is unsupported returns Direction.LTR
|
|
33
40
|
*
|
|
34
|
-
* @param
|
|
35
|
-
* @returns
|
|
36
|
-
*/
|
|
37
|
-
export function getDirectionFromLocale(locale: string): Direction;
|
|
38
|
-
/**
|
|
39
|
-
* Default language
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
*/
|
|
43
|
-
export const DEFAULT_LANG: string;
|
|
44
|
-
/**
|
|
45
|
-
* Default locale
|
|
46
|
-
*
|
|
47
|
-
* @type {string}
|
|
48
|
-
*/
|
|
49
|
-
export const DEFAULT_LOCALE: string;
|
|
50
|
-
/**
|
|
51
|
-
* Array of languages that are written from the right to the left
|
|
52
|
-
*
|
|
53
|
-
* @type {string[]}
|
|
54
|
-
*/
|
|
55
|
-
export const RTL_LANGUAGES: string[];
|
|
56
|
-
/**
|
|
57
|
-
* @deprecated The source of truth for supported languages lives in Crab.
|
|
58
|
-
* @type {string[]}
|
|
41
|
+
* @param locale `es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP`, etc.
|
|
42
|
+
* @returns The layout direction based on the locale, falling back to `Direction.LTR` if the locale is invalid or unsupported.
|
|
59
43
|
*/
|
|
60
|
-
export
|
|
61
|
-
import { Direction } from "../direction";
|
|
44
|
+
export declare function getDirectionFromLocale(locale: string): Direction.RTL | Direction.LTR;
|
|
62
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/locale/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAE/B,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,aAAa,UAAe,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,mBAAmB,UAiB/B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,iBAW1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,iBAS/C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,iBAGlD;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,iCAKpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatWithPattern.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/formatWithPattern/formatWithPattern.
|
|
1
|
+
{"version":3,"file":"formatWithPattern.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/formatWithPattern/formatWithPattern.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,iBAAiB,UAAW,MAAM,WAAW,MAAM,KAAG,MAuB3D,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const getCursorPositionAfterActionStroke: (action: string, selectionStart: number, selectionEnd: number, pattern: string, pastedLength: number) => number;
|
|
2
|
+
export default getCursorPositionAfterActionStroke;
|
|
3
3
|
//# sourceMappingURL=getCursorPositionAfterKeystroke.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCursorPositionAfterKeystroke.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.
|
|
1
|
+
{"version":3,"file":"getCursorPositionAfterKeystroke.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,kCAAkC,WAC9B,MAAM,kBACE,MAAM,gBACR,MAAM,WACX,MAAM,gBACD,MAAM,KACnB,MA6BF,CAAC;AAEF,eAAe,kCAAkC,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export type SymbolWithPosition = {
|
|
2
|
+
index: number;
|
|
3
|
+
symbol: string;
|
|
4
|
+
};
|
|
5
|
+
declare const getSymbolsInPatternWithPosition: (pattern: string) => SymbolWithPosition[];
|
|
1
6
|
export default getSymbolsInPatternWithPosition;
|
|
2
|
-
declare function getSymbolsInPatternWithPosition(pattern: any): any[];
|
|
3
7
|
//# sourceMappingURL=getSymbolsInPatternWithPosition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSymbolsInPatternWithPosition.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.
|
|
1
|
+
{"version":3,"file":"getSymbolsInPatternWithPosition.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,+BAA+B,YAAa,MAAM,KAAG,kBAAkB,EAU5E,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unformatWithPattern.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/unformatWithPattern/unformatWithPattern.
|
|
1
|
+
{"version":3,"file":"unformatWithPattern.d.ts","sourceRoot":"","sources":["../../../../../src/common/textFormat/unformatWithPattern/unformatWithPattern.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,mBAAmB,UAAW,MAAM,WAAW,MAAM,KAAG,MAQ7D,CAAC;AAKF,eAAe,mBAAmB,CAAC"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
* Types
|
|
3
3
|
*/
|
|
4
4
|
export type { InputProps } from './inputs/Input';
|
|
5
|
+
export type { InputWithDisplayFormatProps } from './inputWithDisplayFormat';
|
|
5
6
|
export type { InputGroupProps } from './inputs/InputGroup';
|
|
6
7
|
export type { SearchInputProps } from './inputs/SearchInput';
|
|
7
8
|
export type { SelectInputGroupItem, SelectInputItem, SelectInputOptionContentProps, SelectInputOptionItem, SelectInputProps, SelectInputSeparatorItem, SelectInputTriggerButtonProps, } from './inputs/SelectInput';
|
|
8
9
|
export type { TextAreaProps } from './inputs/TextArea';
|
|
10
|
+
export type { PhoneNumberInputProps } from './phoneNumberInput/PhoneNumberInput';
|
|
11
|
+
export type { TextareaWithDisplayFormatProps } from './textareaWithDisplayFormat';
|
|
9
12
|
export type { UploadedFile, UploadError, UploadResponse } from './uploadInput/types';
|
|
10
13
|
export type { ModalProps } from './modal';
|
|
11
14
|
export type { CurrencyHeaderItem, CurrencyItem, CurrencyOptionItem, MoneyInputProps, } from './moneyInput';
|
|
@@ -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,C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AAU,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,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface InputWithDisplayFormatProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare const InputWithDisplayFormat: React.FC<InputWithDisplayFormatProps>;
|
|
9
|
-
|
|
10
|
-
export default InputWithDisplayFormat;
|
|
11
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type WithDisplayFormatProps } from '../withDisplayFormat';
|
|
3
|
+
export interface InputWithDisplayFormatProps extends Omit<WithDisplayFormatProps, 'render'> {
|
|
4
|
+
}
|
|
5
|
+
declare const InputWithDisplayFormat: (props: InputWithDisplayFormatProps) => import("react").JSX.Element;
|
|
6
|
+
export default InputWithDisplayFormat;
|
|
7
|
+
//# sourceMappingURL=InputWithDisplayFormat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputWithDisplayFormat.d.ts","sourceRoot":"","sources":["../../../src/inputWithDisplayFormat/InputWithDisplayFormat.
|
|
1
|
+
{"version":3,"file":"InputWithDisplayFormat.d.ts","sourceRoot":"","sources":["../../../src/inputWithDisplayFormat/InputWithDisplayFormat.tsx"],"names":[],"mappings":";AACA,OAA0B,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEtF,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,sBAAsB,EAAE,QAAQ,CAAC;CAAG;AAE9F,QAAA,MAAM,sBAAsB,UAAW,2BAA2B,gCAEjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/inputWithDisplayFormat/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/inputWithDisplayFormat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -15,12 +15,13 @@ export interface SelectInputSeparatorItem {
|
|
|
15
15
|
type: 'separator';
|
|
16
16
|
}
|
|
17
17
|
export type SelectInputItem<T = string> = SelectInputOptionItem<T> | SelectInputGroupItem<T> | SelectInputSeparatorItem;
|
|
18
|
-
export interface SelectInputProps<T = string> {
|
|
18
|
+
export interface SelectInputProps<T = string, M extends boolean = false> {
|
|
19
19
|
name?: string;
|
|
20
|
+
multiple?: M;
|
|
20
21
|
placeholder?: string;
|
|
21
22
|
items: readonly SelectInputItem<NonNullable<T>>[];
|
|
22
|
-
defaultValue?: T;
|
|
23
|
-
value?: T;
|
|
23
|
+
defaultValue?: M extends true ? readonly T[] : T;
|
|
24
|
+
value?: M extends true ? readonly T[] : T;
|
|
24
25
|
compareValues?: (keyof NonNullable<T> & string) | ((a: T | undefined, b: T | undefined) => boolean);
|
|
25
26
|
renderValue?: (value: NonNullable<T>, withinTrigger: boolean) => React.ReactNode;
|
|
26
27
|
renderFooter?: (args: {
|
|
@@ -44,10 +45,10 @@ export interface SelectInputProps<T = string> {
|
|
|
44
45
|
query: string;
|
|
45
46
|
queryNormalized: string | null;
|
|
46
47
|
}) => void;
|
|
47
|
-
onChange?: (value: T) => void;
|
|
48
|
+
onChange?: (value: M extends true ? T[] : T) => void;
|
|
48
49
|
onClear?: () => void;
|
|
49
50
|
}
|
|
50
|
-
export declare function SelectInput<T = string>({ name, placeholder, items, defaultValue, value: controlledValue, compareValues, renderValue, renderFooter, renderTrigger, filterable, filterPlaceholder, disabled, size, className, onFilterChange, onChange, onClear, }: SelectInputProps<T>): import("react").JSX.Element;
|
|
51
|
+
export declare function SelectInput<T = string, M extends boolean = false>({ name, multiple, placeholder, items, defaultValue, value: controlledValue, compareValues, renderValue, renderFooter, renderTrigger, filterable, filterPlaceholder, disabled, size, className, onFilterChange, onChange, onClear, }: SelectInputProps<T, M>): import("react").JSX.Element;
|
|
51
52
|
type SelectInputTriggerButtonElementType = 'button' | React.ComponentType;
|
|
52
53
|
export type SelectInputTriggerButtonProps<T extends SelectInputTriggerButtonElementType = 'button'> = Merge<React.ComponentPropsWithoutRef<T>, {
|
|
53
54
|
as?: T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../src/inputs/SelectInput.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../src/inputs/SelectInput.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAmCjC,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;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,KAAK,mCAAmC,GAAG,QAAQ,GAAG,KAAK,CAAC,aAAa,CAAC;AAE1E,MAAM,MAAM,6BAA6B,CACvC,CAAC,SAAS,mCAAmC,GAAG,QAAQ,IACtD,KAAK,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE;IAAE,EAAE,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC;AAEzD,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,mCAAmC,GAAG,QAAQ,EAAE,EACjG,EAAkB,EAClB,GAAG,SAAS,EACb,EAAE,6BAA6B,CAAC,CAAC,CAAC,+BAalC;AAwTD,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,wBAAgB,wBAAwB,CAAC,EACvC,KAAK,EACL,IAAI,EACJ,WAAW,EACX,IAAI,GACL,EAAE,6BAA6B,+BAiD/B"}
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
declare const PhoneNumberInput: React.FC<PhoneNumberInputProps>;
|
|
25
|
-
|
|
26
|
-
export default PhoneNumberInput;
|
|
27
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SizeLarge, SizeMedium, SizeSmall } from '../common';
|
|
3
|
+
import { SelectInputProps } from '../inputs/SelectInput';
|
|
4
|
+
export interface PhoneNumberInputProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
initialValue?: string;
|
|
9
|
+
onChange: (value: string | null, prefix: string) => void;
|
|
10
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
11
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
12
|
+
countryCode?: string;
|
|
13
|
+
searchPlaceholder?: string;
|
|
14
|
+
size?: SizeSmall | SizeMedium | SizeLarge;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
selectProps?: Partial<SelectInputProps<string | null>>;
|
|
17
|
+
/** List of iso3 codes of countries to remove from the list */
|
|
18
|
+
disabledCountries?: string[];
|
|
19
|
+
}
|
|
20
|
+
declare const PhoneNumberInput: ({ id, required, disabled, initialValue, onChange, onFocus, onBlur, countryCode, searchPlaceholder, size, placeholder, selectProps, disabledCountries, }: PhoneNumberInputProps) => import("react").JSX.Element;
|
|
21
|
+
export default PhoneNumberInput;
|
|
22
|
+
//# sourceMappingURL=PhoneNumberInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneNumberInput.d.ts","sourceRoot":"","sources":["../../../src/phoneNumberInput/PhoneNumberInput.
|
|
1
|
+
{"version":3,"file":"PhoneNumberInput.d.ts","sourceRoot":"","sources":["../../../src/phoneNumberInput/PhoneNumberInput.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAQ,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAyC,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAiBhG,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACvD,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAKD,QAAA,MAAM,gBAAgB,4JAcnB,qBAAqB,gCAuIvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
declare const countries: ({
|
|
3
|
-
name: string;
|
|
4
|
-
iso2: string;
|
|
5
|
-
iso3: string;
|
|
6
|
-
phone: string;
|
|
7
|
-
phoneFormat?: undefined;
|
|
8
|
-
} | {
|
|
1
|
+
export type Country = {
|
|
9
2
|
name: string;
|
|
10
3
|
iso2: string;
|
|
11
4
|
iso3: string;
|
|
12
5
|
phone: string;
|
|
13
|
-
phoneFormat
|
|
14
|
-
}
|
|
6
|
+
phoneFormat?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const countries: Country[];
|
|
9
|
+
export default countries;
|
|
15
10
|
//# sourceMappingURL=countries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countries.d.ts","sourceRoot":"","sources":["../../../../src/phoneNumberInput/data/countries.
|
|
1
|
+
{"version":3,"file":"countries.d.ts","sourceRoot":"","sources":["../../../../src/phoneNumberInput/data/countries.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,OAAO,EAu/CvB,CAAC;AACF,eAAe,SAAS,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './PhoneNumberInput';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/phoneNumberInput/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/phoneNumberInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const cleanNumber: (number: string) => string;
|
|
2
2
|
//# sourceMappingURL=cleanNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanNumber.d.ts","sourceRoot":"","sources":["../../../../../src/phoneNumberInput/utils/cleanNumber/cleanNumber.
|
|
1
|
+
{"version":3,"file":"cleanNumber.d.ts","sourceRoot":"","sources":["../../../../../src/phoneNumberInput/utils/cleanNumber/cleanNumber.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,WAAY,MAAM,WAA+C,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { cleanNumber } from
|
|
1
|
+
export { cleanNumber } from './cleanNumber';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/phoneNumberInput/utils/cleanNumber/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/phoneNumberInput/utils/cleanNumber/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Country } from '../../data/countries';
|
|
2
|
+
/**
|
|
3
|
+
* Removes the countries sepecified in the second param
|
|
4
|
+
*
|
|
5
|
+
* @param countries list of country metadata objects
|
|
6
|
+
* @param disabledCountries list of iso3 country codes to remove from the list
|
|
7
|
+
*/
|
|
8
|
+
export declare const excludeCountries: (countries: Country[], disabledCountries: string[]) => Country[];
|
|
2
9
|
//# sourceMappingURL=excludeCountries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excludeCountries.d.ts","sourceRoot":"","sources":["../../../../../src/phoneNumberInput/utils/excludeCountries/excludeCountries.
|
|
1
|
+
{"version":3,"file":"excludeCountries.d.ts","sourceRoot":"","sources":["../../../../../src/phoneNumberInput/utils/excludeCountries/excludeCountries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAQpD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,cAAe,OAAO,EAAE,qBAAqB,MAAM,EAAE,cAIjF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { excludeCountries } from
|
|
1
|
+
export { excludeCountries } from './excludeCountries';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/phoneNumberInput/utils/excludeCountries/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/phoneNumberInput/utils/excludeCountries/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
prefix:
|
|
1
|
+
export interface PhoneNumber {
|
|
2
|
+
prefix: string | null;
|
|
3
3
|
suffix: string;
|
|
4
|
-
format
|
|
5
|
-
}
|
|
4
|
+
format?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @param number Phone number in a format like "+447573135343"
|
|
8
|
+
*/
|
|
9
|
+
export declare const explodeNumberModel: (number: string) => PhoneNumber;
|
|
6
10
|
//# sourceMappingURL=index.d.ts.map
|