@transferwise/components 0.0.0-experimental-b2d320f → 0.0.0-experimental-fe0caa4
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/common/{card/Card.js → baseCard/BaseCard.js} +4 -4
- package/build/common/baseCard/BaseCard.js.map +1 -0
- package/build/common/{card/Card.mjs → baseCard/BaseCard.mjs} +4 -4
- package/build/common/baseCard/BaseCard.mjs.map +1 -0
- package/build/index.js +4 -4
- package/build/index.mjs +1 -1
- package/build/main.css +1387 -1277
- package/build/promoCard/PromoCard.js +2 -2
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCard.mjs +2 -2
- package/build/promoCard/PromoCard.mjs.map +1 -1
- package/build/styles/accordion/Accordion.css +26 -19
- package/build/styles/actionButton/ActionButton.css +8 -6
- package/build/styles/alert/Alert.css +2 -2
- package/build/styles/avatar/Avatar.css +65 -65
- package/build/styles/avatarLayout/AvatarLayout.css +11 -11
- package/build/styles/avatarView/AvatarView.css +3 -3
- package/build/styles/avatarView/Dot.css +3 -3
- package/build/styles/badge/Badge.css +11 -10
- package/build/styles/button/Button.css +6 -6
- package/build/styles/button/LegacyButton.css +7 -7
- package/build/styles/card/Card.css +32 -16
- package/build/styles/carousel/Carousel.css +29 -27
- package/build/styles/checkboxButton/CheckboxButton.css +13 -13
- package/build/styles/chips/Chip.css +31 -27
- package/build/styles/common/Option/Option.css +44 -42
- package/build/styles/common/{card/Card.css → baseCard/BaseCard.css} +5 -5
- package/build/styles/common/bottomSheet/BottomSheet.css +35 -18
- package/build/styles/common/circle/Circle.css +10 -10
- package/build/styles/common/closeButton/CloseButton.css +36 -36
- package/build/styles/common/panel/Panel.css +7 -7
- package/build/styles/criticalBanner/CriticalCommsBanner.css +6 -6
- package/build/styles/dateInput/DateInput.css +4 -4
- package/build/styles/dateLookup/DateLookup.css +11 -9
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +13 -13
- package/build/styles/definitionList/DefinitionList.css +12 -12
- package/build/styles/dimmer/Dimmer.css +15 -15
- package/build/styles/divider/Divider.css +8 -7
- package/build/styles/drawer/Drawer.css +19 -15
- package/build/styles/dropFade/DropFade.css +2 -2
- package/build/styles/expressiveMoneyInput/ExpressiveMoneyInput.css +11 -11
- package/build/styles/expressiveMoneyInput/amountInput/AmountInput.css +4 -4
- package/build/styles/expressiveMoneyInput/chevron/Chevron.css +5 -5
- package/build/styles/field/Field.css +5 -5
- package/build/styles/flowNavigation/FlowNavigation.css +29 -28
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +5 -5
- package/build/styles/header/Header.css +12 -9
- package/build/styles/image/Image.css +7 -7
- package/build/styles/info/Info.css +1 -1
- package/build/styles/inputs/Input.css +25 -25
- package/build/styles/inputs/InputGroup.css +9 -9
- package/build/styles/inputs/SelectInput.css +55 -47
- package/build/styles/inputs/TextArea.css +27 -27
- package/build/styles/instructionsList/InstructionsList.css +5 -5
- package/build/styles/legacylistItem/LegacyListItem.css +1 -1
- package/build/styles/link/Link.css +6 -6
- package/build/styles/listItem/ListItem.css +39 -35
- package/build/styles/listItem/ListItem.grid.css +7 -7
- package/build/styles/loader/Loader.css +30 -30
- package/build/styles/main.css +1387 -1277
- package/build/styles/modal/Modal.css +18 -16
- package/build/styles/moneyInput/MoneyInput.css +16 -16
- package/build/styles/navigationOption/NavigationOption.css +9 -9
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +6 -6
- package/build/styles/nudge/Nudge.css +72 -70
- package/build/styles/overlayHeader/OverlayHeader.css +7 -6
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +7 -7
- package/build/styles/popover/Popover.css +14 -10
- package/build/styles/progress/Progress.css +3 -3
- package/build/styles/progressBar/ProgressBar.css +4 -4
- package/build/styles/promoCard/PromoCard.css +36 -35
- package/build/styles/prompt/ActionPrompt/ActionPrompt.css +8 -8
- package/build/styles/prompt/InfoPrompt/InfoPrompt.css +7 -7
- package/build/styles/prompt/InlinePrompt/InlinePrompt.css +6 -6
- package/build/styles/prompt/PrimitivePrompt/PrimitivePrompt.css +6 -6
- package/build/styles/radioGroup/RadioGroup.css +1 -1
- package/build/styles/section/Section.css +6 -6
- package/build/styles/segmentedControl/SegmentedControl.css +19 -15
- package/build/styles/select/Select.css +80 -76
- package/build/styles/slidingPanel/SlidingPanel.css +21 -21
- package/build/styles/snackbar/Snackbar.css +31 -27
- package/build/styles/stepper/Stepper.css +8 -8
- package/build/styles/summary/Summary.css +26 -26
- package/build/styles/switch/Switch.css +5 -4
- package/build/styles/table/Table.css +60 -57
- package/build/styles/tabs/Tabs.css +20 -14
- package/build/styles/tile/Tile.css +12 -12
- package/build/styles/tooltip/Tooltip.css +2 -2
- package/build/styles/typeahead/Typeahead.css +48 -48
- package/build/styles/upload/Upload.css +11 -10
- package/build/styles/uploadInput/UploadInput.css +4 -4
- package/build/styles/uploadInput/uploadButton/UploadButton.css +20 -19
- package/build/styles/uploadInput/uploadItem/UploadItem.css +46 -44
- package/build/types/common/{card/Card.d.ts → baseCard/BaseCard.d.ts} +8 -8
- package/build/types/common/baseCard/BaseCard.d.ts.map +1 -0
- package/build/types/common/baseCard/index.d.ts +3 -0
- package/build/types/common/baseCard/index.d.ts.map +1 -0
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/promoCard/PromoCard.d.ts +3 -3
- package/build/types/promoCard/PromoCard.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/accordion/Accordion.css +26 -19
- package/src/actionButton/ActionButton.css +8 -6
- package/src/alert/Alert.css +2 -2
- package/src/avatar/Avatar.css +65 -65
- package/src/avatarLayout/AvatarLayout.css +11 -11
- package/src/avatarView/AvatarView.css +3 -3
- package/src/avatarView/Dot.css +3 -3
- package/src/badge/Badge.css +11 -10
- package/src/button/Button.css +6 -6
- package/src/button/LegacyButton.css +7 -7
- package/src/card/Card.css +32 -16
- package/src/carousel/Carousel.css +29 -27
- package/src/checkboxButton/CheckboxButton.css +13 -13
- package/src/chips/Chip.css +31 -27
- package/src/common/Option/Option.css +44 -42
- package/src/common/{card/Card.css → baseCard/BaseCard.css} +5 -5
- package/src/common/{card/Card.less → baseCard/BaseCard.less} +1 -1
- package/src/common/{card/Card.story.tsx → baseCard/BaseCard.story.tsx} +5 -5
- package/src/common/{card/Card.test.tsx → baseCard/BaseCard.test.tsx} +11 -12
- package/src/common/{card/Card.tsx → baseCard/BaseCard.tsx} +9 -9
- package/src/common/baseCard/index.ts +2 -0
- package/src/common/bottomSheet/BottomSheet.css +35 -18
- package/src/common/circle/Circle.css +10 -10
- package/src/common/closeButton/CloseButton.css +36 -36
- package/src/common/panel/Panel.css +7 -7
- package/src/criticalBanner/CriticalCommsBanner.css +6 -6
- package/src/dateInput/DateInput.css +4 -4
- package/src/dateLookup/DateLookup.css +11 -9
- package/src/dateLookup/dateTrigger/DateTrigger.css +13 -13
- package/src/definitionList/DefinitionList.css +12 -12
- package/src/dimmer/Dimmer.css +15 -15
- package/src/divider/Divider.css +8 -7
- package/src/drawer/Drawer.css +19 -15
- package/src/dropFade/DropFade.css +2 -2
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.css +11 -11
- package/src/expressiveMoneyInput/amountInput/AmountInput.css +4 -4
- package/src/expressiveMoneyInput/chevron/Chevron.css +5 -5
- package/src/field/Field.css +5 -5
- package/src/flowNavigation/FlowNavigation.css +29 -28
- package/src/flowNavigation/animatedLabel/AnimatedLabel.css +5 -5
- package/src/header/Header.css +12 -9
- package/src/image/Image.css +7 -7
- package/src/index.ts +1 -1
- package/src/info/Info.css +1 -1
- package/src/inputs/Input.css +25 -25
- package/src/inputs/InputGroup.css +9 -9
- package/src/inputs/SelectInput.css +55 -47
- package/src/inputs/TextArea.css +27 -27
- package/src/instructionsList/InstructionsList.css +5 -5
- package/src/legacylistItem/LegacyListItem.css +1 -1
- package/src/link/Link.css +6 -6
- package/src/listItem/ListItem.css +39 -35
- package/src/listItem/ListItem.grid.css +7 -7
- package/src/loader/Loader.css +30 -30
- package/src/main.css +1387 -1277
- package/src/main.less +2 -2
- package/src/modal/Modal.css +18 -16
- package/src/moneyInput/MoneyInput.css +16 -16
- package/src/navigationOption/NavigationOption.css +9 -9
- package/src/navigationOptionsList/NavigationOptionsList.css +6 -6
- package/src/nudge/Nudge.css +72 -70
- package/src/overlayHeader/OverlayHeader.css +7 -6
- package/src/phoneNumberInput/PhoneNumberInput.css +7 -7
- package/src/popover/Popover.css +14 -10
- package/src/progress/Progress.css +3 -3
- package/src/progressBar/ProgressBar.css +4 -4
- package/src/promoCard/PromoCard.css +36 -35
- package/src/promoCard/PromoCard.tsx +6 -5
- package/src/prompt/ActionPrompt/ActionPrompt.css +8 -8
- package/src/prompt/InfoPrompt/InfoPrompt.css +7 -7
- package/src/prompt/InlinePrompt/InlinePrompt.css +6 -6
- package/src/prompt/PrimitivePrompt/PrimitivePrompt.css +6 -6
- package/src/radioGroup/RadioGroup.css +1 -1
- package/src/section/Section.css +6 -6
- package/src/segmentedControl/SegmentedControl.css +19 -15
- package/src/select/Select.css +80 -76
- package/src/slidingPanel/SlidingPanel.css +21 -21
- package/src/snackbar/Snackbar.css +31 -27
- package/src/stepper/Stepper.css +8 -8
- package/src/summary/Summary.css +26 -26
- package/src/switch/Switch.css +5 -4
- package/src/table/Table.css +60 -57
- package/src/tabs/Tabs.css +20 -14
- package/src/tile/Tile.css +12 -12
- package/src/tooltip/Tooltip.css +2 -2
- package/src/typeahead/Typeahead.css +48 -48
- package/src/upload/Upload.css +11 -10
- package/src/uploadInput/UploadInput.css +4 -4
- package/src/uploadInput/uploadButton/UploadButton.css +20 -19
- package/src/uploadInput/uploadItem/UploadItem.css +46 -44
- package/build/common/card/Card.js.map +0 -1
- package/build/common/card/Card.mjs.map +0 -1
- package/build/types/common/card/Card.d.ts.map +0 -1
- package/build/types/common/card/index.d.ts +0 -3
- package/build/types/common/card/index.d.ts.map +0 -1
- package/src/common/card/index.ts +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.np-tile {
|
|
2
|
-
min-
|
|
2
|
+
min-inline-size: 120px;
|
|
3
3
|
border-radius: 10px;
|
|
4
4
|
border-radius: var(--radius-small);
|
|
5
|
-
|
|
5
|
+
inline-size: 100%;
|
|
6
6
|
}
|
|
7
7
|
.np-theme-personal .np-tile {
|
|
8
8
|
background-color: rgba(134,167,189,0.10196);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
background-color: var(--color-contrast);
|
|
13
13
|
}
|
|
14
14
|
.np-tile.decision {
|
|
15
|
-
margin-
|
|
15
|
+
margin-block-start: 0;
|
|
16
16
|
border: 1px solid rgba(0,0,0,0.10196);
|
|
17
17
|
border: 1px solid var(--color-border-neutral);
|
|
18
18
|
}
|
|
@@ -30,24 +30,24 @@
|
|
|
30
30
|
color: var(--color-content-secondary);
|
|
31
31
|
}
|
|
32
32
|
.np-tile.np-decision__tile--fixed-width {
|
|
33
|
-
|
|
33
|
+
inline-size: 300px;
|
|
34
34
|
}
|
|
35
35
|
.np-tile__media {
|
|
36
|
-
|
|
36
|
+
inline-size: 100%;
|
|
37
37
|
}
|
|
38
38
|
.np-tile__description {
|
|
39
39
|
color: #5d7079;
|
|
40
40
|
color: var(--color-content-secondary);
|
|
41
|
-
margin-
|
|
42
|
-
margin-
|
|
41
|
+
margin-block-start: 12px;
|
|
42
|
+
margin-block-start: var(--size-12);
|
|
43
43
|
display: inline-block;
|
|
44
44
|
}
|
|
45
45
|
.np-tile--small.np-decision__tile--fixed-width {
|
|
46
|
-
|
|
46
|
+
inline-size: 260px;
|
|
47
47
|
}
|
|
48
48
|
.np-tile--small .np-tile__description {
|
|
49
|
-
margin-
|
|
50
|
-
margin-
|
|
49
|
+
margin-block-start: 4px;
|
|
50
|
+
margin-block-start: var(--size-4);
|
|
51
51
|
}
|
|
52
52
|
.np-tile:hover .tw-avatar {
|
|
53
53
|
pointer-events: none;
|
|
@@ -63,6 +63,6 @@
|
|
|
63
63
|
font-weight: var(--font-weight-regular);
|
|
64
64
|
line-height: 1.5;
|
|
65
65
|
line-height: var(--line-height-body);
|
|
66
|
-
margin-
|
|
67
|
-
margin-
|
|
66
|
+
margin-block-start: 12px;
|
|
67
|
+
margin-block-start: var(--size-12);
|
|
68
68
|
}
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
visibility: initial;
|
|
44
44
|
}
|
|
45
45
|
.np-panel[data-popper-placement^="right"] > .np-panel__content.tooltip-inner .np-panel__arrow {
|
|
46
|
-
|
|
46
|
+
inset-inline-start: -7px;
|
|
47
47
|
}
|
|
48
48
|
.np-panel[data-popper-placement^="left"] > .np-panel__content.tooltip-inner .np-panel__arrow {
|
|
49
|
-
|
|
49
|
+
inset-inline-end: -7px;
|
|
50
50
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
display: block;
|
|
6
6
|
}
|
|
7
7
|
.typeahead .dropdown-menu {
|
|
8
|
-
max-
|
|
9
|
-
|
|
8
|
+
max-inline-size: 100%;
|
|
9
|
+
inline-size: 100%;
|
|
10
10
|
}
|
|
11
11
|
.np-theme-personal--forest-green .typeahead .dropdown-menu,
|
|
12
12
|
.np-theme-personal--bright-green .typeahead .dropdown-menu,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
background-color: var(--color-background-elevated);
|
|
16
16
|
}
|
|
17
17
|
.typeahead--multiple .np-chip {
|
|
18
|
-
margin-
|
|
18
|
+
margin-block-end: auto;
|
|
19
19
|
animation-name: slide;
|
|
20
20
|
animation-duration: 0.03s;
|
|
21
21
|
animation-timing-function: ease-in-out;
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
animation-timing-function: ease-in-out;
|
|
30
30
|
}
|
|
31
31
|
.typeahead--multiple .form-control {
|
|
32
|
-
|
|
33
|
-
min-
|
|
34
|
-
padding-
|
|
35
|
-
padding-
|
|
32
|
+
block-size: auto;
|
|
33
|
+
min-block-size: auto;
|
|
34
|
+
padding-block-start: 0;
|
|
35
|
+
padding-block-end: 0;
|
|
36
36
|
overflow: auto;
|
|
37
37
|
}
|
|
38
38
|
.typeahead--multiple .typeahead__input {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
padding: 0;
|
|
44
44
|
}
|
|
45
45
|
.typeahead--multiple .typeahead__input-aligner {
|
|
46
|
-
|
|
46
|
+
block-size: 40px;
|
|
47
47
|
display: inline-block;
|
|
48
|
-
|
|
48
|
+
inline-size: 0;
|
|
49
49
|
}
|
|
50
50
|
.typeahead--multiple .typeahead__input-container {
|
|
51
51
|
cursor: text;
|
|
@@ -55,84 +55,84 @@
|
|
|
55
55
|
white-space: pre;
|
|
56
56
|
position: absolute;
|
|
57
57
|
visibility: hidden;
|
|
58
|
-
|
|
58
|
+
inline-size: auto;
|
|
59
59
|
}
|
|
60
60
|
.typeahead--multiple.typeahead--has-value .typeahead__input-container {
|
|
61
|
-
padding-
|
|
62
|
-
padding-
|
|
61
|
+
padding-inline-start: 8px;
|
|
62
|
+
padding-inline-start: var(--size-8);
|
|
63
63
|
}
|
|
64
64
|
[dir="rtl"] .typeahead--multiple.typeahead--has-value .typeahead__input-container {
|
|
65
|
-
padding-
|
|
66
|
-
padding-
|
|
67
|
-
padding-
|
|
68
|
-
padding-
|
|
65
|
+
padding-inline-end: 8px;
|
|
66
|
+
padding-inline-end: var(--size-8);
|
|
67
|
+
padding-inline-start: 0;
|
|
68
|
+
padding-inline-start: initial;
|
|
69
69
|
}
|
|
70
70
|
.typeahead--multiple.typeahead--has-value .input-group-addon + .typeahead__input-container {
|
|
71
|
-
padding-
|
|
71
|
+
padding-inline-start: 0;
|
|
72
72
|
}
|
|
73
73
|
.typeahead--multiple.typeahead--has-value .typeahead__input {
|
|
74
|
-
margin-
|
|
75
|
-
margin-
|
|
76
|
-
margin-
|
|
77
|
-
margin-
|
|
74
|
+
margin-block-end: calc(-1 * 8px + 1px);
|
|
75
|
+
margin-block-end: calc(-1 * var(--size-8) + 1px);
|
|
76
|
+
margin-inline-start: 4px;
|
|
77
|
+
margin-inline-start: var(--size-4);
|
|
78
78
|
}
|
|
79
79
|
[dir="rtl"] .typeahead--multiple.typeahead--has-value .typeahead__input {
|
|
80
|
-
margin-
|
|
81
|
-
margin-
|
|
82
|
-
margin-
|
|
83
|
-
margin-
|
|
80
|
+
margin-inline-end: 4px;
|
|
81
|
+
margin-inline-end: var(--size-4);
|
|
82
|
+
margin-inline-start: 0;
|
|
83
|
+
margin-inline-start: initial;
|
|
84
84
|
}
|
|
85
85
|
.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper::after {
|
|
86
86
|
content: "";
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
block-size: calc(8px - 1);
|
|
88
|
+
block-size: calc(var(--size-8) - 1);
|
|
89
|
+
inline-size: 100%;
|
|
90
90
|
}
|
|
91
91
|
.typeahead__input-wrapper {
|
|
92
|
-
|
|
93
|
-
margin-
|
|
92
|
+
inline-size: 100%;
|
|
93
|
+
margin-block-start: -1px;
|
|
94
94
|
display: flex;
|
|
95
95
|
flex-wrap: wrap;
|
|
96
96
|
flex: 1;
|
|
97
97
|
align-items: center;
|
|
98
98
|
}
|
|
99
99
|
.np-theme-personal .typeahead__input-wrapper {
|
|
100
|
-
margin-
|
|
100
|
+
margin-block-start: 0;
|
|
101
101
|
}
|
|
102
102
|
.typeahead--empty.typeahead--multiple .typeahead__input-wrapper {
|
|
103
103
|
padding: 0;
|
|
104
104
|
margin: 0;
|
|
105
105
|
}
|
|
106
106
|
.typeahead--prompt {
|
|
107
|
-
margin-
|
|
108
|
-
margin-
|
|
107
|
+
margin-block-start: 4px;
|
|
108
|
+
margin-block-start: var(--size-4);
|
|
109
109
|
}
|
|
110
110
|
.typeahead-sm.typeahead--multiple .typeahead__input-container {
|
|
111
|
-
min-
|
|
111
|
+
min-block-size: 32px;
|
|
112
112
|
}
|
|
113
113
|
.typeahead-sm.typeahead--multiple .typeahead__input {
|
|
114
|
-
padding-
|
|
114
|
+
padding-block-start: 0;
|
|
115
115
|
}
|
|
116
116
|
.typeahead-md.typeahead--multiple .typeahead__input-container {
|
|
117
|
-
min-
|
|
117
|
+
min-block-size: var(--input-height-base);
|
|
118
118
|
}
|
|
119
119
|
.typeahead-lg.typeahead--multiple .typeahead__input-container {
|
|
120
|
-
min-
|
|
120
|
+
min-block-size: var(--input-height-large);
|
|
121
121
|
}
|
|
122
122
|
.typeahead-lg.typeahead--multiple .typeahead__input {
|
|
123
|
-
padding-
|
|
124
|
-
padding-
|
|
123
|
+
padding-block-start: calc(8px - 1);
|
|
124
|
+
padding-block-start: calc(var(--size-8) - 1);
|
|
125
125
|
}
|
|
126
126
|
.typeahead-lg.typeahead--multiple .typeahead__input-wrapper {
|
|
127
|
-
padding-
|
|
128
|
-
padding-
|
|
127
|
+
padding-block-end: 8px;
|
|
128
|
+
padding-block-end: var(--size-8);
|
|
129
129
|
margin: 0;
|
|
130
130
|
}
|
|
131
131
|
.typeahead-lg.typeahead--multiple .typeahead__input-wrapper::after {
|
|
132
132
|
content: none;
|
|
133
133
|
}
|
|
134
134
|
.typeahead-lg.typeahead--multiple .np-chip {
|
|
135
|
-
margin-
|
|
135
|
+
margin-block-end: 0;
|
|
136
136
|
}
|
|
137
137
|
@keyframes slide {
|
|
138
138
|
from {
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
@media (max-width: 575px) {
|
|
162
162
|
.typeahead .dropdown.open .dropdown-menu {
|
|
163
163
|
position: absolute;
|
|
164
|
-
|
|
164
|
+
inset-block-end: auto;
|
|
165
165
|
overflow: scroll;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -173,15 +173,15 @@
|
|
|
173
173
|
color: var(--color-interactive-secondary);
|
|
174
174
|
}
|
|
175
175
|
.np-theme-personal .typeahead .np-chip {
|
|
176
|
-
margin-
|
|
176
|
+
margin-block-start: 9px !important;
|
|
177
177
|
}
|
|
178
178
|
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
179
|
-
padding-
|
|
180
|
-
padding-
|
|
179
|
+
padding-inline-end: 16px;
|
|
180
|
+
padding-inline-end: var(--size-16);
|
|
181
181
|
}
|
|
182
182
|
@media (max-width: 320px) {
|
|
183
183
|
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
184
|
-
padding-
|
|
185
|
-
padding-
|
|
184
|
+
padding-inline-end: 32px;
|
|
185
|
+
padding-inline-end: var(--size-32);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.tw-droppable-lg {
|
|
2
|
-
min-
|
|
2
|
+
min-block-size: 346px;
|
|
3
3
|
}
|
|
4
4
|
.tw-droppable-lg .thumbnail {
|
|
5
|
-
max-
|
|
5
|
+
max-block-size: 72px;
|
|
6
6
|
}
|
|
7
7
|
.tw-droppable-md {
|
|
8
|
-
min-
|
|
8
|
+
min-block-size: 315px;
|
|
9
9
|
}
|
|
10
10
|
.tw-droppable-md .thumbnail {
|
|
11
|
-
max-
|
|
11
|
+
max-block-size: 72px;
|
|
12
12
|
}
|
|
13
13
|
.tw-droppable-sm {
|
|
14
|
-
min-
|
|
14
|
+
min-block-size: 245px;
|
|
15
15
|
}
|
|
16
16
|
.tw-droppable-lg .btn:focus-visible,
|
|
17
17
|
.tw-droppable-md .btn:focus-visible,
|
|
@@ -20,14 +20,15 @@
|
|
|
20
20
|
outline-offset: var(--ring-outline-offset);
|
|
21
21
|
}
|
|
22
22
|
.upload-error-message {
|
|
23
|
-
margin-
|
|
24
|
-
margin-
|
|
25
|
-
border-
|
|
26
|
-
border-
|
|
23
|
+
margin-block-start: 24px;
|
|
24
|
+
margin-block-start: var(--padding-medium);
|
|
25
|
+
border-block-start: 1px solid rgba(0,0,0,0.10196);
|
|
26
|
+
border-block-start: 1px solid #0000001a;
|
|
27
|
+
border-block-start: 1px solid var(--color-border-neutral);
|
|
27
28
|
text-align: start;
|
|
28
29
|
}
|
|
29
30
|
.upload-error-message .alert {
|
|
30
|
-
min-
|
|
31
|
+
min-inline-size: 100px;
|
|
31
32
|
}
|
|
32
33
|
.np-theme-personal .droppable-dropping .droppable-complete-card {
|
|
33
34
|
display: none;
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
.np-upload-input .np-upload-input__section:only-child .np-upload-input__item {
|
|
10
10
|
border-radius: 10px;
|
|
11
11
|
border-radius: var(--radius-small);
|
|
12
|
-
border-
|
|
12
|
+
border-block-end: var(--outerBorder);
|
|
13
13
|
}
|
|
14
14
|
.np-upload-input .np-upload-input__section:has(.np-upload-input__item:last-child.is-interactive:hover):not(:has(.np-upload-input__item-button:hover)) + .np-upload-input__section--uploader .np-upload-input__upload-button::before {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
inset-inline-start: 0;
|
|
16
|
+
inline-size: 100%;
|
|
17
|
+
inset-block-start: 0;
|
|
18
18
|
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
margin: 0;
|
|
8
|
-
border-
|
|
9
|
-
border-
|
|
10
|
-
border-
|
|
11
|
-
border-
|
|
8
|
+
border-end-start-radius: 10px;
|
|
9
|
+
border-end-start-radius: var(--radius-small);
|
|
10
|
+
border-end-end-radius: 10px;
|
|
11
|
+
border-end-end-radius: var(--radius-small);
|
|
12
12
|
border: var(--outerBorder);
|
|
13
13
|
cursor: pointer;
|
|
14
14
|
}
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
text-underline-offset: 0.3em;
|
|
20
20
|
}
|
|
21
21
|
.np-upload-input__upload-button .np-upload-input__title + .np-upload-input__text {
|
|
22
|
-
margin-
|
|
23
|
-
margin-
|
|
22
|
+
margin-block-start: 4px;
|
|
23
|
+
margin-block-start: var(--size-4);
|
|
24
24
|
}
|
|
25
25
|
.np-upload-input__upload-button .np-upload-input__icon {
|
|
26
|
-
padding-
|
|
27
|
-
padding-
|
|
26
|
+
padding-inline-end: 16px;
|
|
27
|
+
padding-inline-end: var(--size-16);
|
|
28
28
|
color: var(--color-interactive-primary);
|
|
29
29
|
}
|
|
30
30
|
.np-upload-input__upload-button.is-dropping .np-upload-input__icon,
|
|
@@ -47,29 +47,30 @@
|
|
|
47
47
|
.np-upload-input__upload-button .np-upload-input__drop-file-overlay {
|
|
48
48
|
display: flex;
|
|
49
49
|
flex: 1;
|
|
50
|
-
padding: 13px
|
|
50
|
+
padding-block: 13px !important;
|
|
51
|
+
padding-inline: 0;
|
|
51
52
|
background-color: transparent;
|
|
52
53
|
transition: transform 0.3s ease;
|
|
53
54
|
position: relative;
|
|
54
55
|
}
|
|
55
56
|
.np-upload-input__upload-button--with-entries {
|
|
56
|
-
border-
|
|
57
|
+
border-block-start-width: 0;
|
|
57
58
|
}
|
|
58
59
|
.np-upload-input__upload-button--with-entries:before {
|
|
59
60
|
display: block;
|
|
60
61
|
position: absolute;
|
|
61
|
-
|
|
62
|
+
block-size: 1px;
|
|
62
63
|
background-color: rgba(0,0,0,0.10196);
|
|
63
64
|
background-color: var(--color-border-neutral);
|
|
64
65
|
content: " ";
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
inset-inline-start: 16px;
|
|
67
|
+
inset-inline-start: var(--size-16);
|
|
68
|
+
inline-size: calc(100% - 2 * 16px);
|
|
69
|
+
inline-size: calc(100% - 2 * var(--size-16));
|
|
70
|
+
inset-block-start: 0;
|
|
70
71
|
}
|
|
71
72
|
.np-upload-input__upload-button--without-entries {
|
|
72
|
-
border-
|
|
73
|
+
border-block-start: var(--outerBorder);
|
|
73
74
|
border-radius: 10px;
|
|
74
75
|
border-radius: var(--radius-small);
|
|
75
76
|
}
|
|
@@ -82,8 +83,8 @@
|
|
|
82
83
|
.np-upload-input__upload-button--enabled.is-dropping:before,
|
|
83
84
|
.np-upload-input__upload-button--enabled:hover:before,
|
|
84
85
|
.np-upload-input__upload-button--enabled:active:before {
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
inline-size: 100%;
|
|
87
|
+
inset-inline-start: 0;
|
|
87
88
|
}
|
|
88
89
|
.np-upload-input__upload-button--disabled {
|
|
89
90
|
cursor: inherit;
|
|
@@ -4,38 +4,38 @@
|
|
|
4
4
|
padding: var(--size-16);
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: flex-start;
|
|
7
|
-
border-
|
|
8
|
-
border-
|
|
7
|
+
border-inline-start: var(--outerBorder);
|
|
8
|
+
border-inline-end: var(--outerBorder);
|
|
9
9
|
}
|
|
10
10
|
.np-upload-input__item:first-child {
|
|
11
|
-
border-
|
|
12
|
-
border-
|
|
13
|
-
border-
|
|
14
|
-
border-
|
|
15
|
-
border-
|
|
11
|
+
border-block-start: var(--outerBorder);
|
|
12
|
+
border-start-start-radius: 10px;
|
|
13
|
+
border-start-start-radius: var(--radius-small);
|
|
14
|
+
border-start-end-radius: 10px;
|
|
15
|
+
border-start-end-radius: var(--radius-small);
|
|
16
16
|
}
|
|
17
17
|
.np-upload-input__item + .np-upload-input__item:before {
|
|
18
18
|
content: " ";
|
|
19
19
|
display: block;
|
|
20
20
|
position: absolute;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
block-size: 1px;
|
|
22
|
+
inset-inline-start: 16px;
|
|
23
|
+
inset-inline-start: var(--size-16);
|
|
24
|
+
inline-size: calc(100% - 2 * 16px);
|
|
25
|
+
inline-size: calc(100% - 2 * var(--size-16));
|
|
26
|
+
inset-block-start: 0;
|
|
27
27
|
background: rgba(0,0,0,0.10196);
|
|
28
28
|
background: var(--color-border-neutral);
|
|
29
29
|
}
|
|
30
30
|
.np-upload-input__item .np-upload-input__item-content {
|
|
31
|
-
padding-
|
|
32
|
-
padding-
|
|
31
|
+
padding-inline-end: 32px;
|
|
32
|
+
padding-inline-end: var(--size-32);
|
|
33
33
|
flex: 1;
|
|
34
34
|
}
|
|
35
35
|
@media (max-width: 320px) {
|
|
36
36
|
.np-upload-input__item .np-upload-input__item-content {
|
|
37
|
-
padding-
|
|
38
|
-
padding-
|
|
37
|
+
padding-inline-end: 64px;
|
|
38
|
+
padding-inline-end: var(--size-64);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
.np-upload-input__item .np-upload-input__title,
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
color: var(--color-content-secondary);
|
|
48
48
|
}
|
|
49
49
|
.np-upload-input__item .np-upload-input__title + .np-upload-input__text {
|
|
50
|
-
margin-
|
|
51
|
-
margin-
|
|
50
|
+
margin-block-start: 4px;
|
|
51
|
+
margin-block-start: var(--size-4);
|
|
52
52
|
}
|
|
53
53
|
.np-upload-input__item .np-upload-input__icon {
|
|
54
|
-
padding-
|
|
55
|
-
padding-
|
|
54
|
+
padding-inline-end: 16px;
|
|
55
|
+
padding-inline-end: var(--size-16);
|
|
56
56
|
}
|
|
57
57
|
.np-upload-input__item .np-upload-input__item-link,
|
|
58
58
|
.np-upload-input__item .np-upload-input__item-container {
|
|
59
59
|
align-items: flex-start;
|
|
60
60
|
display: flex;
|
|
61
|
-
|
|
61
|
+
inline-size: 100%;
|
|
62
62
|
}
|
|
63
63
|
.np-upload-input__item .np-upload-input__item-action {
|
|
64
64
|
--iconSize: var(--size-24);
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
--buttonTopRightOffset: var(--size-16);
|
|
67
67
|
--clickAreaTopRightOffset: calc((var(--clickAreaSize) - var(--iconSize)) * -0.5);
|
|
68
68
|
position: absolute;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
inset-inline-end: 16px;
|
|
70
|
+
inset-inline-end: var(--buttonTopRightOffset);
|
|
71
|
+
inset-block-start: 16px;
|
|
72
|
+
inset-block-start: var(--buttonTopRightOffset);
|
|
73
73
|
}
|
|
74
74
|
@media (max-width: 320px) {
|
|
75
75
|
.np-upload-input__item .np-upload-input__item-action {
|
|
@@ -81,10 +81,12 @@
|
|
|
81
81
|
-webkit-appearance: none;
|
|
82
82
|
-moz-appearance: none;
|
|
83
83
|
appearance: none;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
padding: 0
|
|
87
|
-
padding:
|
|
84
|
+
block-size: var(--iconSize);
|
|
85
|
+
inline-size: var(--iconSize);
|
|
86
|
+
padding-block: 0;
|
|
87
|
+
padding-inline: 4px;
|
|
88
|
+
padding-block: 0;
|
|
89
|
+
padding-inline: var(--size-4);
|
|
88
90
|
border-radius: 50%;
|
|
89
91
|
border: 0;
|
|
90
92
|
background-color: rgba(134,167,189,0.10196);
|
|
@@ -99,12 +101,12 @@
|
|
|
99
101
|
.np-upload-input__item .np-upload-input__item-action .np-upload-input__item-button:before {
|
|
100
102
|
content: '';
|
|
101
103
|
display: block;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
inline-size: var(--clickAreaSize);
|
|
105
|
+
block-size: var(--clickAreaSize);
|
|
104
106
|
border-radius: 50%;
|
|
105
107
|
position: absolute;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
inset-block-start: var(--clickAreaTopRightOffset);
|
|
109
|
+
inset-inline-end: var(--clickAreaTopRightOffset);
|
|
108
110
|
}
|
|
109
111
|
.np-upload-input__item .np-upload-input__item-action .np-upload-input__item-button:hover {
|
|
110
112
|
background-color: var(--color-sentiment-negative);
|
|
@@ -118,8 +120,8 @@
|
|
|
118
120
|
}
|
|
119
121
|
.np-upload-input__item.is-interactive:hover:not(:has(.np-upload-input__item-button:hover)):before,
|
|
120
122
|
.np-upload-input__item.is-interactive:hover:not(:has(.np-upload-input__item-button:hover)) + .np-upload-input__item:before {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
inline-size: 100%;
|
|
124
|
+
inset-inline-start: 0;
|
|
123
125
|
}
|
|
124
126
|
.np-upload-input__item.is-interactive .np-upload-input__item-link {
|
|
125
127
|
padding: 16px;
|
|
@@ -127,7 +129,7 @@
|
|
|
127
129
|
-webkit-text-decoration: none;
|
|
128
130
|
text-decoration: none;
|
|
129
131
|
border-radius: inherit;
|
|
130
|
-
border-
|
|
132
|
+
border-block-start: 1px solid transparent;
|
|
131
133
|
background-clip: padding-box;
|
|
132
134
|
}
|
|
133
135
|
.np-upload-input__item.is-interactive .np-upload-input__item-link:focus-visible {
|
|
@@ -140,27 +142,27 @@
|
|
|
140
142
|
background-color: var(--color-background-neutral);
|
|
141
143
|
}
|
|
142
144
|
.np-upload-input__item.is-interactive:first-child .np-upload-input__item-link {
|
|
143
|
-
border-
|
|
145
|
+
border-block-start-width: 0;
|
|
144
146
|
}
|
|
145
147
|
.np-upload-input__item .np-upload-input-errors {
|
|
146
|
-
padding-
|
|
148
|
+
padding-inline-start: 0;
|
|
147
149
|
list-style-type: "";
|
|
148
150
|
}
|
|
149
151
|
.np-upload-input__item .np-upload-input-errors > li {
|
|
150
152
|
position: relative;
|
|
151
|
-
padding-
|
|
152
|
-
padding-
|
|
153
|
+
padding-inline-start: 16px;
|
|
154
|
+
padding-inline-start: var(--size-16);
|
|
153
155
|
}
|
|
154
156
|
.np-upload-input__item .np-upload-input-errors > li::before {
|
|
155
157
|
content: '•' ;
|
|
156
158
|
content: '•' / '';
|
|
157
159
|
position: absolute;
|
|
158
160
|
display: block;
|
|
159
|
-
|
|
161
|
+
inset-inline-start: 0;
|
|
160
162
|
}
|
|
161
163
|
@media (max-width: 320px) {
|
|
162
164
|
.np-upload-input__item .np-upload-input-errors > li {
|
|
163
|
-
padding-
|
|
164
|
-
padding-
|
|
165
|
+
padding-inline-start: 32px;
|
|
166
|
+
padding-inline-start: var(--size-32);
|
|
165
167
|
}
|
|
166
168
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface BaseCardProps {
|
|
3
3
|
/** Content to display inside Card. */
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
/** Optional prop to specify classNames onto the Card */
|
|
@@ -16,9 +16,9 @@ export interface CardProps {
|
|
|
16
16
|
testId?: string;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* BaseCard component.
|
|
20
20
|
*
|
|
21
|
-
* A
|
|
21
|
+
* A BaseCard is a container for content that is used to group related information.
|
|
22
22
|
* It can be used to display information in a structured way, and can be
|
|
23
23
|
* customized with various props to suit different use cases.
|
|
24
24
|
*
|
|
@@ -32,10 +32,10 @@ export interface CardProps {
|
|
|
32
32
|
* @param {string} testId - Optional ID to add to the card container for testing purposes.
|
|
33
33
|
* @returns {React.JSX.Element} - The card component.
|
|
34
34
|
* @example
|
|
35
|
-
* <
|
|
35
|
+
* <BaseCard>
|
|
36
36
|
* <p>Hello World!</p>
|
|
37
|
-
* </
|
|
37
|
+
* </BaseCard>
|
|
38
38
|
*/
|
|
39
|
-
declare const
|
|
40
|
-
export default
|
|
41
|
-
//# sourceMappingURL=
|
|
39
|
+
declare const BaseCard: import("react").ForwardRefExoticComponent<BaseCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
40
|
+
export default BaseCard;
|
|
41
|
+
//# sourceMappingURL=BaseCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseCard.d.ts","sourceRoot":"","sources":["../../../../src/common/baseCard/BaseCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAK3D,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,QAAQ,EAAE,SAAS,CAAC;IAEpB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,kDAAkD;IAClD,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,mDAAmD;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,QAAQ,0GAgDb,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/baseCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,YAAY,CAAC"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export { Chip, default as Chips } from './chips';
|
|
|
103
103
|
export { default as CircularButton } from './circularButton';
|
|
104
104
|
export { default as Option } from './common/Option';
|
|
105
105
|
export { default as BottomSheet } from './common/bottomSheet';
|
|
106
|
-
export { default as BaseCard } from './common/
|
|
106
|
+
export { default as BaseCard } from './common/baseCard';
|
|
107
107
|
export { default as CriticalCommsBanner } from './criticalBanner';
|
|
108
108
|
export { default as DateInput } from './dateInput';
|
|
109
109
|
export { default as DateLookup } from './dateLookup';
|