@transferwise/components 46.100.1 → 46.101.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/avatarLayout/AvatarLayout.js +1 -1
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +1 -1
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/dateLookup/DateLookup.js +3 -2
- package/build/dateLookup/DateLookup.js.map +1 -1
- package/build/dateLookup/DateLookup.mjs +3 -2
- package/build/dateLookup/DateLookup.mjs.map +1 -1
- package/build/i18n/en.json +2 -0
- package/build/i18n/en.json.js +2 -0
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +2 -0
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/main.css +4 -94
- package/build/styles/accordion/Accordion.css +27 -16
- package/build/styles/avatar/Avatar.css +95 -50
- package/build/styles/inputs/Input.css +37 -21
- package/build/styles/inputs/TextArea.css +35 -20
- package/build/styles/loader/Loader.css +4 -90
- package/build/styles/main.css +4 -94
- package/build/styles/popover/Popover.css +19 -12
- package/build/styles/select/Select.css +131 -68
- package/build/styles/switch/Switch.css +27 -16
- package/build/styles/tile/Tile.css +31 -18
- package/build/types/dateLookup/DateLookup.d.ts +2 -2
- package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +4 -0
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/build/types/test-utils/story-config.d.ts +2 -3
- package/build/types/test-utils/story-config.d.ts.map +1 -1
- package/build/types/upload/Upload.d.ts +6 -2
- package/build/types/upload/Upload.d.ts.map +1 -1
- package/build/types/upload/Upload.messages.d.ts +8 -0
- package/build/types/upload/Upload.messages.d.ts.map +1 -1
- package/build/types/uploadInput/UploadInput.d.ts +1 -1
- package/build/types/uploadInput/uploadButton/UploadButton.d.ts +4 -2
- package/build/types/uploadInput/uploadButton/UploadButton.d.ts.map +1 -1
- package/build/upload/Upload.js +16 -9
- package/build/upload/Upload.js.map +1 -1
- package/build/upload/Upload.messages.js +6 -0
- package/build/upload/Upload.messages.js.map +1 -1
- package/build/upload/Upload.messages.mjs +6 -0
- package/build/upload/Upload.messages.mjs.map +1 -1
- package/build/upload/Upload.mjs +16 -9
- package/build/upload/Upload.mjs.map +1 -1
- package/build/uploadInput/UploadInput.js +1 -1
- package/build/uploadInput/UploadInput.js.map +1 -1
- package/build/uploadInput/UploadInput.mjs +1 -1
- package/build/uploadInput/UploadInput.mjs.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.js +7 -4
- package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.mjs +7 -4
- package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
- package/package.json +19 -27
- package/src/accordion/Accordion.css +27 -16
- package/src/accordion/Accordion.story.tsx +1 -1
- package/src/actionButton/ActionButton.story.tsx +3 -2
- package/src/actionOption/ActionOption.story.tsx +2 -2
- package/src/alert/Alert.story.tsx +2 -2
- package/src/alert/Alert.tests.story.tsx +2 -2
- package/src/avatar/Avatar.css +95 -50
- package/src/avatar/Avatar.spec.tsx +1 -1
- package/src/avatar/Avatar.story.tsx +3 -2
- package/src/avatarLayout/AvatarLayout.story.tsx +1 -1
- package/src/avatarLayout/AvatarLayout.tsx +1 -1
- package/src/avatarView/AvatarView.story.tsx +1 -1
- package/src/avatarWrapper/AvatarWrapper.story.tsx +3 -2
- package/src/badge/Badge.story.tsx +49 -28
- package/src/button/Button.accessibility.docs.mdx +1 -1
- package/src/button/Button.story.tsx +2 -2
- package/src/button/Button.tests.story.tsx +2 -2
- package/src/button/LegacyButton.story.tsx +3 -2
- package/src/card/Card.story.tsx +2 -2
- package/src/carousel/Carousel.story.tsx +1 -1
- package/src/checkbox/Checkbox.story.tsx +2 -2
- package/src/checkboxButton/CheckboxButton.story.tsx +2 -2
- package/src/checkboxOption/CheckboxOption.story.tsx +35 -29
- package/src/chevron/Chevron.story.tsx +1 -1
- package/src/chips/Chips.story.tsx +1 -1
- package/src/circularButton/CircularButton.story.tsx +1 -1
- package/src/circularButton/CircularButton.tests.story.tsx +1 -1
- package/src/common/bottomSheet/BottomSheet.story.tsx +2 -2
- package/src/common/card/Card.story.tsx +1 -1
- package/src/common/circle/Circle.story.tsx +2 -2
- package/src/common/locale/index.spec.ts +28 -16
- package/src/common/responsivePanel/ResponsivePanel.spec.js +8 -29
- package/src/criticalBanner/CriticalCommsBanner.story.tsx +1 -1
- package/src/dateInput/DateInput.story.tsx +2 -2
- package/src/dateInput/DateInput.tests.story.tsx +2 -2
- package/src/dateLookup/DateLookup.spec.tsx +5 -5
- package/src/dateLookup/DateLookup.story.tsx +43 -71
- package/src/dateLookup/DateLookup.tests.story.tsx +3 -3
- package/src/dateLookup/DateLookup.tsx +4 -1
- package/src/decision/Decision.story.tsx +24 -49
- package/src/definitionList/DefinitionList.story.tsx +1 -1
- package/src/dimmer/Dimmer.story.tsx +2 -2
- package/src/divider/Divider.accessibility.docs.mdx +1 -1
- package/src/divider/Divider.story.tsx +1 -1
- package/src/drawer/Drawer.story.tsx +13 -7
- package/src/dropFade/DropFade.story.tsx +1 -1
- package/src/emphasis/Emphasis.spec.tsx +8 -8
- package/src/emphasis/Emphasis.story.tsx +1 -1
- package/src/field/Field.story.tsx +3 -3
- package/src/flowNavigation/FlowNavigation.story.tsx +305 -260
- package/src/i18n/en.json +2 -0
- package/src/iconButton/IconButton.story.tsx +2 -2
- package/src/image/Image.story.tsx +27 -54
- package/src/info/Info.story.tsx +2 -2
- package/src/inlineAlert/InlineAlert.story.tsx +1 -1
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +2 -2
- package/src/inputs/Input.css +37 -21
- package/src/inputs/InputGroup.story.tsx +1 -1
- package/src/inputs/SearchInput.story.tsx +1 -1
- package/src/inputs/SelectInput.docs.mdx +1 -1
- package/src/inputs/SelectInput.story.tsx +2 -2
- package/src/inputs/TextArea.css +35 -20
- package/src/instructionsList/InstructionsList.story.tsx +2 -2
- package/src/legacylistItem/LegacyListItem.story.tsx +1 -1
- package/src/loader/Loader.css +4 -90
- package/src/loader/Loader.story.tsx +1 -1
- package/src/logo/Logo.story.tsx +1 -1
- package/src/main.css +4 -94
- package/src/markdown/Markdown.story.tsx +1 -1
- package/src/modal/Modal.story.tsx +2 -2
- package/src/money/Money.story.tsx +1 -1
- package/src/moneyInput/MoneyInput.docs.mdx +1 -1
- package/src/moneyInput/MoneyInput.spec.tsx +8 -5
- package/src/moneyInput/MoneyInput.story.tsx +2 -2
- package/src/moneyInput/currencyFormatting.spec.ts +1 -1
- package/src/navigationOption/NavigationOption.story.tsx +265 -226
- package/src/nudge/Nudge.story.tsx +1 -1
- package/src/overlayHeader/OverlayHeader.story.tsx +32 -24
- package/src/phoneNumberInput/PhoneNumberInput.story.tsx +1 -1
- package/src/phoneNumberInput/utils/setDefaultPrefix/setDefaultPrefix.spec.ts +6 -3
- package/src/popover/Popover.css +19 -12
- package/src/popover/Popover.story.tsx +2 -2
- package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.story.tsx +2 -2
- package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.tests.story.tsx +2 -2
- package/src/primitives/PrimitiveButton/stories/PrimitiveButton.story.tsx +2 -2
- package/src/primitives/PrimitiveButton/stories/PrimitiveButton.tests.story.tsx +2 -2
- package/src/processIndicator/ProcessIndicator.story.tsx +1 -1
- package/src/progress/Progress.story.tsx +1 -1
- package/src/progressBar/ProgressBar.story.tsx +1 -1
- package/src/promoCard/PromoCard.story.tsx +1 -1
- package/src/promoCard/PromoCardGroup.story.tsx +1 -1
- package/src/provider/Provider.spec.tsx +2 -2
- package/src/provider/Provider.story.tsx +1 -1
- package/src/provider/direction/DirectionProvider.spec.tsx +1 -1
- package/src/provider/language/LanguageProvider.spec.tsx +1 -1
- package/src/provider/theme/ThemeProvider.story.tsx +1 -1
- package/src/radio/Radio.story.tsx +59 -42
- package/src/radioGroup/RadioGroup.story.tsx +2 -2
- package/src/radioOption/RadioOption.story.tsx +73 -38
- package/src/segmentedControl/SegmentedControl.story.tsx +1 -1
- package/src/select/Select.css +131 -68
- package/src/select/Select.story.tsx +385 -397
- package/src/slidingPanel/SlidingPanel.story.tsx +30 -13
- package/src/snackbar/Snackbar.story.tsx +50 -36
- package/src/snackbar/Snackbar.tests.story.tsx +3 -2
- package/src/statusIcon/StatusIcon.docs.mdx +1 -1
- package/src/statusIcon/StatusIcon.spec.tsx +8 -5
- package/src/statusIcon/StatusIcon.story.tsx +1 -1
- package/src/stepper/Stepper.story.tsx +2 -2
- package/src/stepper/Stepper.tests.story.tsx +2 -2
- package/src/sticky/Sticky.story.tsx +1 -1
- package/src/summary/Summary.story.tsx +18 -17
- package/src/switch/Switch.css +27 -16
- package/src/switch/Switch.story.tsx +2 -2
- package/src/switchOption/SwitchOption.story.tsx +1 -1
- package/src/table/Table.story.tsx +1 -1
- package/src/test-utils/story-config.ts +9 -6
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.story.tsx +2 -2
- package/src/tile/Tile.css +31 -18
- package/src/tile/Tile.story.tsx +43 -43
- package/src/tooltip/Tooltip.story.tsx +2 -2
- package/src/typeahead/Typeahead.story.tsx +2 -2
- package/src/upload/Upload.messages.ts +8 -0
- package/src/upload/Upload.spec.tsx +6 -0
- package/src/upload/Upload.story.tsx +120 -5
- package/src/upload/Upload.tests.story.tsx +5 -3
- package/src/upload/Upload.tsx +24 -15
- package/src/upload/utils/isTypeValid/isTypeValid.spec.ts +3 -1
- package/src/uploadInput/UploadInput.story.tsx +1 -1
- package/src/uploadInput/UploadInput.tests.story.tsx +10 -3
- package/src/uploadInput/UploadInput.tsx +2 -2
- package/src/uploadInput/uploadButton/UploadButton.spec.tsx +6 -0
- package/src/uploadInput/uploadButton/UploadButton.tsx +12 -6
- package/src/withId/withId.docs.mdx +1 -1
- package/src/withId/withId.story.tsx +1 -1
- package/src/common/responsivePanel/__snapshots__/ResponsivePanel.spec.js.snap +0 -21
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
}@media (min-width: 768px) {
|
|
3
|
-
}.np-select .np-dropdown-toggle {
|
|
1
|
+
.np-select .np-dropdown-toggle {
|
|
4
2
|
background-color: #ffffff;
|
|
5
3
|
background-color: var(--color-background-screen);
|
|
6
4
|
border: 1px solid #c9cbce;
|
|
@@ -17,99 +15,125 @@
|
|
|
17
15
|
text-align: left;
|
|
18
16
|
text-overflow: ellipsis;
|
|
19
17
|
max-width: 100%;
|
|
20
|
-
}
|
|
18
|
+
}
|
|
19
|
+
[dir="rtl"] .np-select .np-dropdown-toggle {
|
|
21
20
|
text-align: right;
|
|
22
|
-
}
|
|
21
|
+
}
|
|
22
|
+
.np-select .np-dropdown-toggle:focus-visible {
|
|
23
23
|
outline: none;
|
|
24
|
-
}
|
|
24
|
+
}
|
|
25
|
+
.np-theme-personal .np-select .np-dropdown-toggle {
|
|
25
26
|
border-radius: 10px;
|
|
26
27
|
border-radius: var(--radius-small);
|
|
27
|
-
}
|
|
28
|
+
}
|
|
29
|
+
.has-error .np-select .np-dropdown-toggle {
|
|
28
30
|
border: 1px solid #e74848;
|
|
29
31
|
border: 1px solid var(--color-interactive-negative);
|
|
30
|
-
}
|
|
32
|
+
}
|
|
33
|
+
.np-select .np-dropdown-toggle-navy {
|
|
31
34
|
--color-content-accent: #00b9ff;
|
|
32
35
|
--color-content-primary: #ffffff;
|
|
33
36
|
--color-content-secondary: #c9cbce;
|
|
34
37
|
--color-background-screen: #2e4369;
|
|
35
38
|
--color-interactive-secondary: #2e4369;
|
|
36
39
|
--color-interactive-secondary-hover: #2e4369;
|
|
37
|
-
}
|
|
40
|
+
}
|
|
41
|
+
.np-select .np-dropdown-toggle.np-btn-sm {
|
|
38
42
|
padding-right: 32px;
|
|
39
43
|
padding-right: var(--size-32);
|
|
40
|
-
}
|
|
44
|
+
}
|
|
45
|
+
[dir="rtl"] .np-select .np-dropdown-toggle.np-btn-sm {
|
|
41
46
|
padding-left: 32px;
|
|
42
47
|
padding-left: var(--size-32);
|
|
43
48
|
padding-right: 0;
|
|
44
49
|
padding-right: initial;
|
|
45
|
-
}
|
|
50
|
+
}
|
|
51
|
+
.np-select .np-dropdown-toggle.np-btn-md {
|
|
46
52
|
padding-right: 40px;
|
|
47
53
|
padding-right: var(--size-40);
|
|
48
|
-
}
|
|
54
|
+
}
|
|
55
|
+
[dir="rtl"] .np-select .np-dropdown-toggle.np-btn-md {
|
|
49
56
|
padding-left: 40px;
|
|
50
57
|
padding-left: var(--size-40);
|
|
51
58
|
padding-right: 0;
|
|
52
59
|
padding-right: initial;
|
|
53
|
-
}
|
|
60
|
+
}
|
|
61
|
+
.np-select .np-dropdown-toggle.np-btn-lg {
|
|
54
62
|
padding-right: 48px;
|
|
55
63
|
padding-right: var(--size-48);
|
|
56
|
-
}
|
|
64
|
+
}
|
|
65
|
+
[dir="rtl"] .np-select .np-dropdown-toggle.np-btn-lg {
|
|
57
66
|
padding-left: 48px;
|
|
58
67
|
padding-left: var(--size-48);
|
|
59
68
|
padding-right: 0;
|
|
60
69
|
padding-right: initial;
|
|
61
|
-
}
|
|
70
|
+
}
|
|
71
|
+
.np-select .np-dropdown-toggle .np-select-chevron {
|
|
62
72
|
margin: 0 ;
|
|
63
73
|
position: absolute;
|
|
64
74
|
right: 16px;
|
|
65
75
|
right: var(--size-16);
|
|
66
76
|
top: 16px;
|
|
67
77
|
top: var(--size-16);
|
|
68
|
-
}
|
|
78
|
+
}
|
|
79
|
+
[dir="rtl"] .np-select .np-dropdown-toggle .np-select-chevron {
|
|
69
80
|
margin: 0 ;
|
|
70
|
-
}
|
|
81
|
+
}
|
|
82
|
+
[dir="rtl"] .np-select .np-dropdown-toggle .np-select-chevron {
|
|
71
83
|
left: 16px;
|
|
72
84
|
left: var(--size-16);
|
|
73
85
|
right: auto;
|
|
74
86
|
right: initial;
|
|
75
|
-
}
|
|
87
|
+
}
|
|
88
|
+
.np-select .np-dropdown-toggle.np-btn-sm .np-select-chevron {
|
|
76
89
|
right: 8px;
|
|
77
90
|
right: var(--size-8);
|
|
78
91
|
top: 8px;
|
|
79
92
|
top: var(--size-8);
|
|
80
|
-
}
|
|
93
|
+
}
|
|
94
|
+
[dir="rtl"] .np-select .np-dropdown-toggle.np-btn-sm .np-select-chevron {
|
|
81
95
|
left: 8px;
|
|
82
96
|
left: var(--size-8);
|
|
83
97
|
right: auto;
|
|
84
98
|
right: initial;
|
|
85
|
-
}
|
|
99
|
+
}
|
|
100
|
+
.np-select .np-dropdown-toggle.np-btn-lg .np-select-chevron {
|
|
86
101
|
top: 27px;
|
|
87
|
-
}
|
|
102
|
+
}
|
|
103
|
+
.np-select .btn:not(.disabled):not(:disabled):not(.btn-loading) {
|
|
88
104
|
color: #37517e;
|
|
89
105
|
color: var(--color-content-primary);
|
|
90
|
-
}
|
|
106
|
+
}
|
|
107
|
+
.np-select .btn:not(.disabled):not(:disabled):not(.btn-loading):hover {
|
|
91
108
|
border-color: #b5b7ba;
|
|
92
109
|
border-color: var(--color-interactive-secondary-hover);
|
|
93
|
-
}
|
|
110
|
+
}
|
|
111
|
+
.np-select .btn:not(.disabled):not(:disabled):not(.btn-loading):focus {
|
|
94
112
|
border-color: #00a2dd;
|
|
95
113
|
border-color: var(--color-interactive-accent);
|
|
96
|
-
}
|
|
114
|
+
}
|
|
115
|
+
.np-theme-personal .np-select .btn:not(.disabled):not(:disabled):not(.btn-loading):focus {
|
|
97
116
|
border-color: #c9cbce;
|
|
98
117
|
border-color: var(--color-interactive-secondary);
|
|
99
|
-
}
|
|
118
|
+
}
|
|
119
|
+
.np-option-content {
|
|
100
120
|
max-width: 100%;
|
|
101
|
-
}
|
|
121
|
+
}
|
|
122
|
+
.np-option-content .d-flex:last-child {
|
|
102
123
|
max-width: calc(100% - 32px);
|
|
103
|
-
}
|
|
124
|
+
}
|
|
125
|
+
.np-dropdown-menu-desktop {
|
|
104
126
|
max-height: 70vh;
|
|
105
127
|
max-height: 70svh;
|
|
106
128
|
min-width: 160px;
|
|
107
129
|
max-width: calc(100vw - 32px);
|
|
108
|
-
}
|
|
130
|
+
}
|
|
131
|
+
@media (min-height: 592px) {
|
|
109
132
|
.np-dropdown-menu-desktop {
|
|
110
133
|
max-height: 592px;
|
|
111
134
|
}
|
|
112
|
-
}
|
|
135
|
+
}
|
|
136
|
+
.np-dropdown-menu {
|
|
113
137
|
border-radius: 10px;
|
|
114
138
|
border-radius: var(--radius-small);
|
|
115
139
|
overflow: auto;
|
|
@@ -119,27 +143,36 @@
|
|
|
119
143
|
text-align: left;
|
|
120
144
|
background-color: #ffffff;
|
|
121
145
|
background-color: var(--color-background-screen);
|
|
122
|
-
}
|
|
146
|
+
}
|
|
147
|
+
[dir="rtl"] .np-dropdown-menu {
|
|
123
148
|
padding: 0 ;
|
|
124
|
-
}
|
|
149
|
+
}
|
|
150
|
+
[dir="rtl"] .np-dropdown-menu {
|
|
125
151
|
text-align: right;
|
|
126
|
-
}
|
|
152
|
+
}
|
|
153
|
+
.np-theme-personal .np-dropdown-menu {
|
|
127
154
|
border-radius: 10px;
|
|
128
155
|
border-radius: var(--radius-small);
|
|
129
|
-
}
|
|
156
|
+
}
|
|
157
|
+
.np-dropdown-menu-sm {
|
|
130
158
|
width: 220px;
|
|
131
|
-
}
|
|
159
|
+
}
|
|
160
|
+
.np-dropdown-menu-md {
|
|
132
161
|
width: 300px;
|
|
133
|
-
}
|
|
162
|
+
}
|
|
163
|
+
.np-dropdown-menu-lg {
|
|
134
164
|
width: 420px;
|
|
135
|
-
}
|
|
165
|
+
}
|
|
166
|
+
.np-dropdown-menu .np-dropdown-item--focused {
|
|
136
167
|
background-color: rgba(134,167,189,0.10196);
|
|
137
168
|
background-color: var(--color-background-neutral);
|
|
138
169
|
border-radius: 10px;
|
|
139
170
|
border-radius: var(--radius-small);
|
|
140
|
-
}
|
|
171
|
+
}
|
|
172
|
+
.np-dropdown-menu .np-dropdown-item > a {
|
|
141
173
|
white-space: normal;
|
|
142
|
-
}
|
|
174
|
+
}
|
|
175
|
+
.np-dropdown-menu > li > a {
|
|
143
176
|
text-overflow: ellipsis;
|
|
144
177
|
-webkit-text-decoration: none;
|
|
145
178
|
text-decoration: none;
|
|
@@ -158,35 +191,43 @@
|
|
|
158
191
|
letter-spacing: -0.006em;
|
|
159
192
|
font-weight: 400;
|
|
160
193
|
font-weight: var(--font-weight-regular);
|
|
161
|
-
}
|
|
194
|
+
}
|
|
195
|
+
.np-theme-personal .np-dropdown-menu > li > a {
|
|
162
196
|
border-radius: 10px;
|
|
163
197
|
border-radius: var(--radius-small);
|
|
164
|
-
}
|
|
198
|
+
}
|
|
199
|
+
.np-dropdown-menu > li:first-child > a {
|
|
165
200
|
border-top-right-radius: 3px;
|
|
166
201
|
border-top-left-radius: 3px;
|
|
167
|
-
}
|
|
202
|
+
}
|
|
203
|
+
.np-theme-personal .np-dropdown-menu > li:first-child > a {
|
|
168
204
|
border-top-right-radius: 10px;
|
|
169
205
|
border-top-right-radius: var(--radius-small);
|
|
170
206
|
border-top-left-radius: 10px;
|
|
171
207
|
border-top-left-radius: var(--radius-small);
|
|
172
|
-
}
|
|
208
|
+
}
|
|
209
|
+
.np-dropdown-menu > li:last-child > a {
|
|
173
210
|
border-bottom-right-radius: 3px;
|
|
174
211
|
border-bottom-left-radius: 3px;
|
|
175
|
-
}
|
|
212
|
+
}
|
|
213
|
+
.np-theme-personal .np-dropdown-menu > li:last-child > a {
|
|
176
214
|
border-bottom-right-radius: 10px;
|
|
177
215
|
border-bottom-right-radius: var(--radius-small);
|
|
178
216
|
border-bottom-left-radius: 10px;
|
|
179
217
|
border-bottom-left-radius: var(--radius-small);
|
|
180
|
-
}
|
|
218
|
+
}
|
|
219
|
+
.np-dropdown-menu > li:not(.active):not(.selected):not(:has(input)) > a:not([disabled]):not(.disabled):hover,
|
|
181
220
|
.np-dropdown-menu > li:not(.active):not(.selected):not(:has(input)) > a:not([disabled]):not(.disabled):focus {
|
|
182
221
|
color: #37517e;
|
|
183
222
|
color: var(--color-content-primary);
|
|
184
223
|
background-color: rgba(134,167,189,0.10196);
|
|
185
224
|
background-color: var(--color-background-neutral);
|
|
186
|
-
}
|
|
225
|
+
}
|
|
226
|
+
.np-dropdown-menu > li:not(.active):not(.selected):not(:has(input)) > a:not([disabled]):not(.disabled):active {
|
|
187
227
|
color: #ffffff;
|
|
188
228
|
background-color: #37517e;
|
|
189
|
-
}
|
|
229
|
+
}
|
|
230
|
+
.np-dropdown-menu > .active > a,
|
|
190
231
|
.np-dropdown-menu > .selected > a,
|
|
191
232
|
.np-dropdown-menu > .active > a:hover,
|
|
192
233
|
.np-dropdown-menu > .selected > a:hover,
|
|
@@ -194,22 +235,27 @@
|
|
|
194
235
|
.np-dropdown-menu > .selected > a:focus {
|
|
195
236
|
color: #ffffff;
|
|
196
237
|
background-color: #37517e;
|
|
197
|
-
}
|
|
238
|
+
}
|
|
239
|
+
.np-dropdown-menu > .active > a strong,
|
|
198
240
|
.np-dropdown-menu > .selected > a strong {
|
|
199
241
|
color: inherit;
|
|
200
|
-
}
|
|
242
|
+
}
|
|
243
|
+
.np-dropdown-menu > .active > a .np-text-body-default,
|
|
201
244
|
.np-dropdown-menu > .selected > a .np-text-body-default {
|
|
202
245
|
color: #c9cbce;
|
|
203
|
-
}
|
|
246
|
+
}
|
|
247
|
+
.np-dropdown-menu .np-select-filter,
|
|
204
248
|
.np-dropdown-menu .input-group-addon {
|
|
205
249
|
border: 0;
|
|
206
|
-
}
|
|
250
|
+
}
|
|
251
|
+
.np-dropdown-menu .np-separator {
|
|
207
252
|
height: 1px;
|
|
208
253
|
margin: 0;
|
|
209
254
|
overflow: hidden;
|
|
210
255
|
background-color: rgba(134,167,189,0.10196);
|
|
211
256
|
background-color: var(--color-background-neutral);
|
|
212
|
-
}
|
|
257
|
+
}
|
|
258
|
+
.np-dropdown-menu .np-dropdown-header {
|
|
213
259
|
padding: 8px 16px;
|
|
214
260
|
padding: var(--size-8) var(--size-16);
|
|
215
261
|
color: #5d7079;
|
|
@@ -222,7 +268,8 @@
|
|
|
222
268
|
line-height: 1.5;
|
|
223
269
|
line-height: var(--line-height-body);
|
|
224
270
|
white-space: nowrap;
|
|
225
|
-
}
|
|
271
|
+
}
|
|
272
|
+
.np-select .tw-icon,
|
|
226
273
|
.np-dropdown-menu .tw-icon,
|
|
227
274
|
.np-select img,
|
|
228
275
|
.np-dropdown-menu img {
|
|
@@ -230,7 +277,8 @@
|
|
|
230
277
|
margin-right: var(--size-8);
|
|
231
278
|
display: inline-block;
|
|
232
279
|
vertical-align: middle;
|
|
233
|
-
}
|
|
280
|
+
}
|
|
281
|
+
[dir="rtl"] .np-select .tw-icon,
|
|
234
282
|
[dir="rtl"] .np-dropdown-menu .tw-icon,
|
|
235
283
|
[dir="rtl"] .np-select img,
|
|
236
284
|
[dir="rtl"] .np-dropdown-menu img {
|
|
@@ -238,40 +286,50 @@
|
|
|
238
286
|
margin-left: var(--size-8);
|
|
239
287
|
margin-right: 0;
|
|
240
288
|
margin-right: initial;
|
|
241
|
-
}
|
|
289
|
+
}
|
|
290
|
+
.np-select .np-text-body-default,
|
|
242
291
|
.np-dropdown-menu .np-text-body-default {
|
|
243
292
|
color: #5d7079;
|
|
244
293
|
color: var(--color-content-secondary);
|
|
245
|
-
}
|
|
294
|
+
}
|
|
295
|
+
.np-select .tw-icon-search,
|
|
246
296
|
.np-dropdown-menu .tw-icon-search {
|
|
247
297
|
margin-right: 0;
|
|
248
|
-
}
|
|
298
|
+
}
|
|
299
|
+
.np-theme-personal {
|
|
249
300
|
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
250
301
|
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
251
|
-
}
|
|
302
|
+
}
|
|
303
|
+
.np-theme-personal .np-select .np-dropdown-toggle {
|
|
252
304
|
background-color: transparent;
|
|
253
305
|
background-color: initial;
|
|
254
306
|
transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
|
|
255
307
|
border: none;
|
|
256
308
|
box-shadow: inset 0 0 0 1px #c9cbce;
|
|
257
309
|
box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
|
|
258
|
-
}
|
|
310
|
+
}
|
|
311
|
+
.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled):not(:disabled):hover {
|
|
259
312
|
box-shadow: inset 0 0 0 2px #b5b7ba;
|
|
260
313
|
box-shadow: inset 0 0 0 2px var(--color-interactive-secondary-hover);
|
|
261
|
-
}
|
|
314
|
+
}
|
|
315
|
+
.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled):not(:disabled):focus,
|
|
262
316
|
.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled):not(:disabled):focus-visible,
|
|
263
317
|
.np-theme-personal .np-select .np-dropdown-toggle:not(.disabled):not(:disabled):focus-within {
|
|
264
318
|
box-shadow: inset 0 0 0 3px var(--color-interactive-primary);
|
|
265
|
-
}
|
|
319
|
+
}
|
|
320
|
+
.np-theme-personal .has-error .np-select .np-dropdown-toggle,
|
|
266
321
|
.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled):not(:disabled):hover {
|
|
267
322
|
box-shadow: inset 0 0 0 2px var(--color-sentiment-negative);
|
|
268
|
-
}
|
|
323
|
+
}
|
|
324
|
+
.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled):not(:disabled):focus,
|
|
269
325
|
.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled):not(:disabled):focus-visible,
|
|
270
326
|
.np-theme-personal .has-error .np-select .np-dropdown-toggle:not(.disabled):not(:disabled):focus-within {
|
|
271
327
|
box-shadow: inset 0 0 0 3px var(--color-sentiment-negative);
|
|
272
|
-
}
|
|
328
|
+
}
|
|
329
|
+
.np-theme-personal .np-dropdown-menu {
|
|
273
330
|
outline: none;
|
|
274
|
-
}
|
|
331
|
+
}
|
|
332
|
+
.np-theme-personal .np-dropdown-menu .active a,
|
|
275
333
|
.np-theme-personal .np-dropdown-menu .selected a,
|
|
276
334
|
.np-theme-personal .np-dropdown-menu .active a:focus,
|
|
277
335
|
.np-theme-personal .np-dropdown-menu .selected a:focus,
|
|
@@ -279,7 +337,8 @@
|
|
|
279
337
|
.np-theme-personal .np-dropdown-menu .selected a:hover {
|
|
280
338
|
color: var(--color-interactive-primary);
|
|
281
339
|
background-color: var(--color-background-neutral-active);
|
|
282
|
-
}
|
|
340
|
+
}
|
|
341
|
+
.np-theme-personal .np-dropdown-menu .active a .body-2,
|
|
283
342
|
.np-theme-personal .np-dropdown-menu .selected a .body-2,
|
|
284
343
|
.np-theme-personal .np-dropdown-menu .active a:focus .body-2,
|
|
285
344
|
.np-theme-personal .np-dropdown-menu .selected a:focus .body-2,
|
|
@@ -292,14 +351,18 @@
|
|
|
292
351
|
.np-theme-personal .np-dropdown-menu .active a:hover .np-text-body-default,
|
|
293
352
|
.np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default {
|
|
294
353
|
color: var(--color-interactive-primary);
|
|
295
|
-
}
|
|
354
|
+
}
|
|
355
|
+
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active {
|
|
296
356
|
color: var(--color-interactive-primary) !important;
|
|
297
357
|
background-color: var(--color-background-neutral-active) !important;
|
|
298
|
-
}
|
|
358
|
+
}
|
|
359
|
+
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .body-2,
|
|
299
360
|
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .np-text-body-default {
|
|
300
361
|
color: var(--color-interactive-primary);
|
|
301
|
-
}
|
|
362
|
+
}
|
|
363
|
+
.np-theme-personal .np-dropdown-menu .np-dropdown-item {
|
|
302
364
|
outline: none;
|
|
303
|
-
}
|
|
365
|
+
}
|
|
366
|
+
.np-theme-personal .np-dropdown-menu .np-dropdown-item--focused {
|
|
304
367
|
box-shadow: inset 0 0 0 2px var(--color-interactive-primary);
|
|
305
368
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
}@media (min-width: 768px) {
|
|
3
|
-
}.np-switch {
|
|
1
|
+
.np-switch {
|
|
4
2
|
all: unset;
|
|
5
3
|
box-sizing: border-box;
|
|
6
4
|
display: inline-flex;
|
|
@@ -12,37 +10,50 @@
|
|
|
12
10
|
-moz-user-select: none;
|
|
13
11
|
user-select: none;
|
|
14
12
|
cursor: pointer;
|
|
15
|
-
}
|
|
13
|
+
}
|
|
14
|
+
.np-switch:focus {
|
|
16
15
|
outline: none;
|
|
17
|
-
}
|
|
16
|
+
}
|
|
17
|
+
.np-switch:focus-visible {
|
|
18
18
|
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
19
19
|
outline-offset: var(--ring-outline-offset);
|
|
20
|
-
}
|
|
20
|
+
}
|
|
21
|
+
.np-switch--thumb {
|
|
21
22
|
display: flex;
|
|
22
23
|
transition: transform cubic-bezier(0, 0.94, 0.62, 1) 350ms;
|
|
23
|
-
}
|
|
24
|
+
}
|
|
25
|
+
.np-switch--thumb .tw-icon {
|
|
24
26
|
color: #fff;
|
|
25
|
-
}
|
|
27
|
+
}
|
|
28
|
+
.np-switch--unchecked {
|
|
26
29
|
background: #c9cbce;
|
|
27
30
|
background: var(--color-interactive-secondary);
|
|
28
|
-
}
|
|
31
|
+
}
|
|
32
|
+
.np-switch--unchecked .switch--thumb {
|
|
29
33
|
transform: translateX(0);
|
|
30
|
-
}
|
|
34
|
+
}
|
|
35
|
+
.np-switch--checked {
|
|
31
36
|
background: #00a2dd;
|
|
32
37
|
background: var(--color-interactive-accent);
|
|
33
|
-
}
|
|
38
|
+
}
|
|
39
|
+
.np-switch--checked .np-switch--thumb {
|
|
34
40
|
transform: translateX(20px) ;
|
|
35
|
-
}
|
|
41
|
+
}
|
|
42
|
+
[dir="rtl"] .np-switch--checked .np-switch--thumb {
|
|
36
43
|
transform: translateX(-20px) ;
|
|
37
|
-
}
|
|
44
|
+
}
|
|
45
|
+
.np-switch.disabled {
|
|
38
46
|
filter: grayscale(1);
|
|
39
47
|
opacity: 0.45;
|
|
40
48
|
cursor: not-allowed !important;
|
|
41
|
-
}
|
|
49
|
+
}
|
|
50
|
+
.np-theme-personal .np-switch {
|
|
42
51
|
padding: 1px 2px;
|
|
43
|
-
}
|
|
52
|
+
}
|
|
53
|
+
.np-theme-personal .np-switch--checked {
|
|
44
54
|
background: var(--color-interactive-primary);
|
|
45
|
-
}
|
|
55
|
+
}
|
|
56
|
+
.np-theme-personal .np-switch--thumb {
|
|
46
57
|
width: 20px;
|
|
47
58
|
height: 20px;
|
|
48
59
|
margin: 3px;
|
|
@@ -1,49 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
}@media (min-width: 768px) {
|
|
3
|
-
}.np-tile {
|
|
1
|
+
.np-tile {
|
|
4
2
|
min-width: 120px;
|
|
5
3
|
border-radius: 10px;
|
|
6
4
|
border-radius: var(--radius-small);
|
|
7
5
|
width: 100%;
|
|
8
|
-
}
|
|
6
|
+
}
|
|
7
|
+
.np-theme-personal .np-tile {
|
|
9
8
|
background-color: rgba(134,167,189,0.10196);
|
|
10
9
|
background-color: var(--color-background-neutral);
|
|
11
|
-
}
|
|
10
|
+
}
|
|
11
|
+
.np-theme-personal .np-tile .tw-avatar .tw-avatar__content {
|
|
12
12
|
background-color: var(--color-contrast);
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
|
+
.np-tile.decision {
|
|
14
15
|
margin-top: 0;
|
|
15
16
|
border: 1px solid rgba(0,0,0,0.10196);
|
|
16
17
|
border: 1px solid var(--color-border-neutral);
|
|
17
|
-
}
|
|
18
|
+
}
|
|
19
|
+
.np-theme-personal .np-tile.decision {
|
|
18
20
|
border: none;
|
|
19
|
-
}
|
|
21
|
+
}
|
|
22
|
+
.np-theme-personal .np-tile.decision:hover {
|
|
20
23
|
background-color: var(--color-background-neutral-hover);
|
|
21
|
-
}
|
|
24
|
+
}
|
|
25
|
+
.np-theme-personal .np-tile.decision:active {
|
|
22
26
|
background-color: var(--color-background-neutral-active);
|
|
23
|
-
}
|
|
27
|
+
}
|
|
28
|
+
.np-theme-personal .np-tile.decision .np-text-body-default {
|
|
24
29
|
color: #5d7079;
|
|
25
30
|
color: var(--color-content-secondary);
|
|
26
|
-
}
|
|
31
|
+
}
|
|
32
|
+
.np-tile.np-decision__tile--fixed-width {
|
|
27
33
|
width: 300px;
|
|
28
|
-
}
|
|
34
|
+
}
|
|
35
|
+
.np-tile__media {
|
|
29
36
|
width: 100%;
|
|
30
|
-
}
|
|
37
|
+
}
|
|
38
|
+
.np-tile__description {
|
|
31
39
|
color: #5d7079;
|
|
32
40
|
color: var(--color-content-secondary);
|
|
33
41
|
margin-top: 12px;
|
|
34
42
|
margin-top: var(--size-12);
|
|
35
43
|
display: inline-block;
|
|
36
|
-
}
|
|
44
|
+
}
|
|
45
|
+
.np-tile--small.np-decision__tile--fixed-width {
|
|
37
46
|
width: 260px;
|
|
38
|
-
}
|
|
47
|
+
}
|
|
48
|
+
.np-tile--small .np-tile__description {
|
|
39
49
|
margin-top: 4px;
|
|
40
50
|
margin-top: var(--size-4);
|
|
41
|
-
}
|
|
51
|
+
}
|
|
52
|
+
.np-tile:hover .tw-avatar {
|
|
42
53
|
pointer-events: none;
|
|
43
|
-
}
|
|
54
|
+
}
|
|
55
|
+
.np-tile:hover .tw-avatar .tw-avatar__content {
|
|
44
56
|
background-color: #ffffff;
|
|
45
57
|
background-color: var(--color-background-screen);
|
|
46
|
-
}
|
|
58
|
+
}
|
|
59
|
+
.np-tile__description {
|
|
47
60
|
color: #5d7079;
|
|
48
61
|
color: var(--color-content-secondary);
|
|
49
62
|
font-weight: 400;
|
|
@@ -74,9 +74,9 @@ declare class DateLookup extends PureComponent<DateLookupPropsWithInputAttribute
|
|
|
74
74
|
render(): import("react").JSX.Element;
|
|
75
75
|
}
|
|
76
76
|
export declare const DateLookupWithoutInputAttributes: typeof DateLookup;
|
|
77
|
-
declare const
|
|
77
|
+
declare const WrappedDateLookup: {
|
|
78
78
|
(props: Omit<DateLookupPropsWithInputAttributes, "inputAttributes">): import("react").JSX.Element;
|
|
79
79
|
displayName: string;
|
|
80
80
|
};
|
|
81
|
-
export default
|
|
81
|
+
export default WrappedDateLookup;
|
|
82
82
|
//# sourceMappingURL=DateLookup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateLookup.d.ts","sourceRoot":"","sources":["../../../src/dateLookup/DateLookup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEhE,OAAO,EACL,IAAI,EACJ,WAAW,EAGX,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,wBAAwB,EAAuB,MAAM,oBAAoB,CAAC;AAQnF,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,GAAG,WAAW,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,KAAK,kCAAkC,GAAG,eAAe,GAAG,OAAO,CAAC,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c,IAAI,UAM5C;IAEF,oBAAoB,GAAI;;;KAA4D,UAElF;IAEF,WAAW,oCA2CT;IAEF,WAAW,aAGT;IAEF,MAAM;CAmDP;AAED,eAAO,MAAM,gCAAgC,mBAAa,CAAC;AAE3D,QAAA,MAAM,iBAAiB;;;CAGtB,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
|
|
@@ -55,6 +55,7 @@ declare function customRender(ui: ReactElement, { locale, messages, ...renderOpt
|
|
|
55
55
|
"neptune.Upload.csFailureText": string;
|
|
56
56
|
"neptune.Upload.csSuccessText": string;
|
|
57
57
|
"neptune.Upload.csTooLargeMessage": string;
|
|
58
|
+
"neptune.Upload.csTooLargeNoLimitMessage": string;
|
|
58
59
|
"neptune.Upload.csWrongTypeMessage": string;
|
|
59
60
|
"neptune.Upload.psButtonText": string;
|
|
60
61
|
"neptune.Upload.psProcessingText": string;
|
|
@@ -62,6 +63,7 @@ declare function customRender(ui: ReactElement, { locale, messages, ...renderOpt
|
|
|
62
63
|
"neptune.Upload.usButtonText": string;
|
|
63
64
|
"neptune.Upload.usDropMessage": string;
|
|
64
65
|
"neptune.Upload.usPlaceholder": string;
|
|
66
|
+
"neptune.Upload.usPlaceholderNoLimit": string;
|
|
65
67
|
"neptune.UploadButton.allFileTypes": string;
|
|
66
68
|
"neptune.UploadButton.dropFiles": string;
|
|
67
69
|
"neptune.UploadButton.instructions": string;
|
|
@@ -136,6 +138,7 @@ declare function customRenderHook(callback: () => unknown, { locale, messages }?
|
|
|
136
138
|
"neptune.Upload.csFailureText": string;
|
|
137
139
|
"neptune.Upload.csSuccessText": string;
|
|
138
140
|
"neptune.Upload.csTooLargeMessage": string;
|
|
141
|
+
"neptune.Upload.csTooLargeNoLimitMessage": string;
|
|
139
142
|
"neptune.Upload.csWrongTypeMessage": string;
|
|
140
143
|
"neptune.Upload.psButtonText": string;
|
|
141
144
|
"neptune.Upload.psProcessingText": string;
|
|
@@ -143,6 +146,7 @@ declare function customRenderHook(callback: () => unknown, { locale, messages }?
|
|
|
143
146
|
"neptune.Upload.usButtonText": string;
|
|
144
147
|
"neptune.Upload.usDropMessage": string;
|
|
145
148
|
"neptune.Upload.usPlaceholder": string;
|
|
149
|
+
"neptune.Upload.usPlaceholderNoLimit": string;
|
|
146
150
|
"neptune.UploadButton.allFileTypes": string;
|
|
147
151
|
"neptune.UploadButton.dropFiles": string;
|
|
148
152
|
"neptune.UploadButton.instructions": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test-utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAM,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAc,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAMxD;;;;GAIG;AACH,iBAAS,YAAY,CACnB,EAAE,EAAE,YAAY,EAChB,EAAE,MAAuB,EAAE,QAAa,EAAE,GAAG,aAAa,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test-utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAM,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAc,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAMxD;;;;GAIG;AACH,iBAAS,YAAY,CACnB,EAAE,EAAE,YAAY,EAChB,EAAE,MAAuB,EAAE,QAAa,EAAE,GAAG,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAK,GAChE,UAAU,CAAC,OAAO,MAAM,CAAC,CAK3B;AAED;;;GAGG;AACH,iBAAS,gBAAgB,CACvB,QAAQ,EAAE,MAAM,OAAO,EACvB,EAAE,MAAuB,EAAE,QAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAK,uEAKhD;AAED,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,gBAAgB,IAAI,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
1
|
+
import { StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
export declare const viewports: {
|
|
3
3
|
mobile3: {
|
|
4
4
|
name: string;
|
|
@@ -17,7 +17,7 @@ export declare const viewports: {
|
|
|
17
17
|
type: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
interface StoryConfig {
|
|
20
|
+
export interface StoryConfig {
|
|
21
21
|
/**
|
|
22
22
|
* Creates variations of the component for the current story. Some
|
|
23
23
|
* padding is applied to the variants for spacing.
|
|
@@ -37,5 +37,4 @@ interface StoryConfig {
|
|
|
37
37
|
* Utility function for creating variants of a CSFv3 story.
|
|
38
38
|
*/
|
|
39
39
|
export declare const storyConfig: <Args>(storyObject: StoryObj<Args>, { variants }: StoryConfig) => StoryObj<Args>;
|
|
40
|
-
export {};
|
|
41
40
|
//# sourceMappingURL=story-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"story-config.d.ts","sourceRoot":"","sources":["../../../src/test-utils/story-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"story-config.d.ts","sourceRoot":"","sources":["../../../src/test-utils/story-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAarB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,CACP,SAAS,GACT,OAAO,GACP,MAAM,GACN,cAAc,GACd,cAAc,GACd,KAAK,GACL,QAAQ,GACR,MAAM,CACT,EAAE,CAAC;CACL;AAmBD;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,IAAI,EAC9B,aAAa,QAAQ,CAAC,IAAI,CAAC,EAC3B,cAAc,WAAW,KACxB,QAAQ,CAAC,IAAI,CAuBf,CAAC"}
|
|
@@ -19,10 +19,14 @@ export interface UploadProps extends WrappedComponentProps {
|
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* You can provide a fetcher function with the same interface as the global fetch function, which is used by default.
|
|
22
|
-
* function fetcher(input: RequestInfo, init?: RequestInit): Promise<Response
|
|
22
|
+
* `function fetcher(input: RequestInfo, init?: RequestInit): Promise<Response>`
|
|
23
23
|
*/
|
|
24
24
|
fetcher?: PostDataFetcher;
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Filesize expressed in B.<br />If set to `null`, no size limit will be applied.
|
|
27
|
+
* @default 5000000 (5 MB)
|
|
28
|
+
*/
|
|
29
|
+
maxSize?: number | null;
|
|
26
30
|
psButtonText?: string;
|
|
27
31
|
psButtonDisabled?: boolean;
|
|
28
32
|
psProcessingText?: string;
|