@popsure/dirty-swan 0.59.0-alpha → 0.59.0-beta-2
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/dist/cjs/index.js +87 -93
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/button/index.d.ts +1 -1
- package/dist/cjs/lib/components/cards/card/index.d.ts +4 -1
- package/dist/cjs/lib/components/cards/card/index.stories.d.ts +2 -1
- package/dist/cjs/lib/components/cards/infoCard/index.d.ts +9 -7
- package/dist/cjs/lib/components/cards/infoCard/index.stories.d.ts +23 -17
- package/dist/cjs/lib/components/input/currency/input.stories.d.ts +1 -0
- package/dist/cjs/lib/components/input/input.stories.d.ts +2 -1
- package/dist/cjs/lib/components/input/stories/config.d.ts +1 -0
- package/dist/cjs/lib/components/table/components/TableCell/BaseCell/BaseCell.d.ts +1 -1
- package/dist/cjs/lib/scss/public/borders.stories.d.ts +13 -0
- package/dist/esm/{Calendar-2d7e51b5.js → Calendar-5ad3eccf.js} +2 -2
- package/dist/esm/Calendar-5ad3eccf.js.map +1 -0
- package/dist/esm/{TableSection-5277dae1.js → TableSection-018d8e8f.js} +1 -1
- package/dist/esm/{TableSection-5277dae1.js.map → TableSection-018d8e8f.js.map} +1 -1
- package/dist/esm/components/accordion/index.js +2 -2
- package/dist/esm/components/accordion/index.js.map +1 -1
- package/dist/esm/components/button/index.js +4 -5
- package/dist/esm/components/button/index.js.map +1 -1
- package/dist/esm/components/button/index.stories.js +5 -9
- package/dist/esm/components/button/index.stories.js.map +1 -1
- package/dist/esm/components/cards/card/index.js +6 -6
- package/dist/esm/components/cards/card/index.js.map +1 -1
- package/dist/esm/components/cards/card/index.stories.js +8 -3
- package/dist/esm/components/cards/card/index.stories.js.map +1 -1
- package/dist/esm/components/cards/cardButton/index.js +6 -4
- package/dist/esm/components/cards/cardButton/index.js.map +1 -1
- package/dist/esm/components/cards/cardButton/index.stories.js +2 -2
- package/dist/esm/components/cards/cardButton/index.stories.js.map +1 -1
- package/dist/esm/components/cards/index.js +7 -21
- package/dist/esm/components/cards/index.js.map +1 -1
- package/dist/esm/components/cards/infoCard/index.js +34 -8
- package/dist/esm/components/cards/infoCard/index.js.map +1 -1
- package/dist/esm/components/cards/infoCard/index.stories.js +44 -31
- package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js +1 -1
- package/dist/esm/components/comparisonTable/components/Chevron.js +1 -1
- package/dist/esm/components/comparisonTable/components/Chevron.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/Row/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableArrows/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js +3 -3
- package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableRating/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableTrueFalse.js +2 -2
- package/dist/esm/components/comparisonTable/components/TableTrueFalse.js.map +1 -1
- package/dist/esm/components/comparisonTable/index.js +2 -2
- package/dist/esm/components/comparisonTable/index.js.map +1 -1
- package/dist/esm/components/dateSelector/components/Calendar.js +1 -1
- package/dist/esm/components/dateSelector/index.js +1 -1
- package/dist/esm/components/dateSelector/index.stories.js +1 -1
- package/dist/esm/components/dateSelector/index.test.js +1 -1
- package/dist/esm/components/icon/icons/BasketballSports.js +2 -2
- package/dist/esm/components/icon/icons/BasketballSports.js.map +1 -1
- package/dist/esm/components/icon/icons/BookOpen.js +2 -2
- package/dist/esm/components/icon/icons/BookOpen.js.map +1 -1
- package/dist/esm/components/icon/icons/Heart.js +2 -2
- package/dist/esm/components/icon/icons/Heart.js.map +1 -1
- package/dist/esm/components/icon/icons/Info.js +2 -2
- package/dist/esm/components/icon/icons/Info.js.map +1 -1
- package/dist/esm/components/icon/icons/Star.js +2 -2
- package/dist/esm/components/icon/icons/Star.js.map +1 -1
- package/dist/esm/components/icon/icons.stories.js +1 -1
- package/dist/esm/components/icon/index.stories.js +1 -1
- package/dist/esm/components/input/currency/input.stories.js +1 -1
- package/dist/esm/components/input/index.js +5 -5
- package/dist/esm/components/input/index.js.map +1 -1
- package/dist/esm/components/input/input.stories.js +3 -3
- package/dist/esm/components/input/input.stories.js.map +1 -1
- package/dist/esm/components/input/toggle/index.js +1 -1
- package/dist/esm/components/modal/index.stories.js +7 -7
- package/dist/esm/components/modal/index.stories.js.map +1 -1
- package/dist/esm/components/segmentedControl/index.js +1 -1
- package/dist/esm/components/table/Table.js +4 -5
- package/dist/esm/components/table/Table.js.map +1 -1
- package/dist/esm/components/table/Table.stories.js +1 -1
- package/dist/esm/components/table/Table.test.js +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js +3 -3
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js +2 -2
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/TableCell.js +1 -1
- package/dist/esm/components/table/components/TableCell/TableCell.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.js +6 -5
- package/dist/esm/components/table/components/TableContents/TableContents.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.test.js +1 -1
- package/dist/esm/components/table/components/TableControls/TableControls.js +4 -3
- package/dist/esm/components/table/components/TableControls/TableControls.js.map +1 -1
- package/dist/esm/components/table/components/TableSection/TableSection.js +1 -1
- package/dist/esm/components/table/components/TableSection/TableSection.test.js +1 -1
- package/dist/esm/{config-4b5ffe4f.js → config-bc609993.js} +3 -2
- package/dist/esm/config-bc609993.js.map +1 -0
- package/dist/esm/{index-d2e06251.js → index-7427c96f.js} +11 -11
- package/dist/esm/{index-d2e06251.js.map → index-7427c96f.js.map} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/lib/components/button/index.d.ts +1 -1
- package/dist/esm/lib/components/cards/card/index.d.ts +4 -1
- package/dist/esm/lib/components/cards/card/index.stories.d.ts +2 -1
- package/dist/esm/lib/components/cards/infoCard/index.d.ts +9 -7
- package/dist/esm/lib/components/cards/infoCard/index.stories.d.ts +23 -17
- package/dist/esm/lib/components/input/currency/input.stories.d.ts +1 -0
- package/dist/esm/lib/components/input/input.stories.d.ts +2 -1
- package/dist/esm/lib/components/input/stories/config.d.ts +1 -0
- package/dist/esm/lib/components/table/components/TableCell/BaseCell/BaseCell.d.ts +1 -1
- package/dist/esm/lib/scss/public/borders.stories.d.ts +13 -0
- package/dist/esm/scss/public/borders.stories.js +86 -0
- package/dist/esm/scss/public/borders.stories.js.map +1 -0
- package/dist/index.css +212 -122
- package/dist/index.css.map +1 -1
- package/dist/lib/scss/index.scss +1 -0
- package/dist/lib/scss/private/base/_typography.scss +21 -52
- package/dist/lib/scss/private/borders/_index.scss +1 -0
- package/dist/lib/scss/private/borders/default.scss +61 -0
- package/dist/lib/scss/private/components/_buttons.scss +105 -63
- package/dist/lib/scss/private/components/_cards.scss +2 -1
- package/dist/lib/scss/private/components/_input.scss +32 -26
- package/dist/lib/scss/private/components/_spinner.scss +2 -2
- package/dist/lib/scss/public/borders.stories.tsx +124 -0
- package/dist/lib/scss/public/colors/default.scss +1 -0
- package/dist/lib/scss/public/shadows.scss +5 -5
- package/package.json +1 -1
- package/src/lib/components/accordion/index.tsx +1 -0
- package/src/lib/components/accordion/style.module.scss +0 -4
- package/src/lib/components/button/index.stories.tsx +22 -57
- package/src/lib/components/button/index.tsx +7 -9
- package/src/lib/components/cards/card/index.stories.tsx +60 -1
- package/src/lib/components/cards/card/index.tsx +13 -3
- package/src/lib/components/cards/card/style.module.scss +87 -10
- package/src/lib/components/cards/cardButton/index.stories.tsx +2 -2
- package/src/lib/components/cards/cardButton/index.tsx +4 -2
- package/src/lib/components/cards/cardButton/style.module.scss +4 -0
- package/src/lib/components/cards/infoCard/index.stories.tsx +164 -40
- package/src/lib/components/cards/infoCard/index.tsx +72 -37
- package/src/lib/components/cards/infoCard/style.module.scss +46 -33
- package/src/lib/components/comparisonTable/components/AccordionItem/AccordionItem.module.scss +2 -2
- package/src/lib/components/comparisonTable/components/Chevron.tsx +1 -1
- package/src/lib/components/comparisonTable/components/Row/style.module.scss +0 -4
- package/src/lib/components/comparisonTable/components/TableArrows/style.module.scss +6 -5
- package/src/lib/components/comparisonTable/components/TableInfoButton/index.tsx +2 -2
- package/src/lib/components/comparisonTable/components/TableInfoButton/style.module.scss +3 -4
- package/src/lib/components/comparisonTable/components/TableRating/style.module.scss +2 -2
- package/src/lib/components/comparisonTable/components/TableTrueFalse.tsx +2 -2
- package/src/lib/components/comparisonTable/index.tsx +1 -1
- package/src/lib/components/comparisonTable/style.module.scss +6 -2
- package/src/lib/components/dateSelector/components/Calendar.tsx +1 -1
- package/src/lib/components/input/index.tsx +2 -1
- package/src/lib/components/input/input.stories.tsx +3 -1
- package/src/lib/components/input/stories/config.ts +4 -1
- package/src/lib/components/input/style.module.scss +8 -4
- package/src/lib/components/input/toggle/styles.module.scss +8 -4
- package/src/lib/components/modal/index.stories.tsx +23 -23
- package/src/lib/components/segmentedControl/style.module.scss +1 -1
- package/src/lib/components/table/Table.module.scss +18 -0
- package/src/lib/components/table/Table.tsx +1 -2
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.module.scss +0 -10
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.tsx +6 -9
- package/src/lib/components/table/components/TableCell/ButtonCell/ButtonCell.module.scss +1 -2
- package/src/lib/components/table/components/TableCell/ButtonCell/ButtonCell.tsx +1 -1
- package/src/lib/components/table/components/TableCell/TableCell.tsx +1 -1
- package/src/lib/components/table/components/TableContents/TableContents.module.scss +19 -0
- package/src/lib/components/table/components/TableContents/TableContents.tsx +3 -1
- package/src/lib/components/table/components/TableControls/TableControls.module.scss +7 -3
- package/src/lib/components/table/components/TableControls/TableControls.tsx +38 -25
- package/src/lib/scss/index.scss +1 -0
- package/src/lib/scss/private/base/_typography.scss +21 -52
- package/src/lib/scss/private/borders/_index.scss +1 -0
- package/src/lib/scss/private/borders/default.scss +61 -0
- package/src/lib/scss/private/components/_buttons.scss +105 -63
- package/src/lib/scss/private/components/_cards.scss +2 -1
- package/src/lib/scss/private/components/_input.scss +32 -26
- package/src/lib/scss/private/components/_spinner.scss +2 -2
- package/src/lib/scss/public/borders.stories.tsx +124 -0
- package/src/lib/scss/public/colors/default.scss +1 -0
- package/src/lib/scss/public/shadows.scss +5 -5
- package/dist/esm/Calendar-2d7e51b5.js.map +0 -1
- package/dist/esm/config-4b5ffe4f.js.map +0 -1
|
@@ -21,7 +21,8 @@ export const InputStory = ({
|
|
|
21
21
|
hideLabel,
|
|
22
22
|
labelInsideInput,
|
|
23
23
|
prefix,
|
|
24
|
-
error
|
|
24
|
+
error,
|
|
25
|
+
disabled
|
|
25
26
|
}: InputProps) => {
|
|
26
27
|
const [newValue, setValue] = useState(value);
|
|
27
28
|
|
|
@@ -41,6 +42,7 @@ export const InputStory = ({
|
|
|
41
42
|
labelInsideInput={labelInsideInput}
|
|
42
43
|
prefix={prefix}
|
|
43
44
|
error={error}
|
|
45
|
+
disabled={disabled}
|
|
44
46
|
/>
|
|
45
47
|
);
|
|
46
48
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { isDisabled } from "@testing-library/user-event/dist/types/utils";
|
|
2
|
+
|
|
1
3
|
const sharedConfig = {
|
|
2
4
|
argTypes: {
|
|
3
5
|
value: {
|
|
@@ -49,7 +51,8 @@ const sharedConfig = {
|
|
|
49
51
|
labelInsideInput: false,
|
|
50
52
|
prefix: '£',
|
|
51
53
|
id: '1234567890',
|
|
52
|
-
error: ''
|
|
54
|
+
error: '',
|
|
55
|
+
disabled: false
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -12,7 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
color: var(--ds-neutral-600);
|
|
14
14
|
|
|
15
|
-
transition: 0.3s
|
|
15
|
+
transition: top 0.3s, color 0.3s;
|
|
16
|
+
|
|
17
|
+
&--with-value {
|
|
18
|
+
color: var(--ds-neutral-900);
|
|
19
|
+
}
|
|
16
20
|
|
|
17
21
|
&--with-error {
|
|
18
22
|
color: var(--ds-red-500);
|
|
@@ -38,15 +42,15 @@
|
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
.input:focus ~ .placeholder {
|
|
41
|
-
color: var(--ds-
|
|
45
|
+
color: var(--ds-neutral-900);
|
|
42
46
|
|
|
43
47
|
&--with-error {
|
|
44
48
|
color: var(--ds-red-500);
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
51
|
|
|
48
|
-
|
|
49
|
-
color: var(--ds-
|
|
52
|
+
input:focus ~ .prefix {
|
|
53
|
+
color: var(--ds-neutral-900);
|
|
50
54
|
|
|
51
55
|
&--with-error {
|
|
52
56
|
color: var(--ds-red-500);
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
width: 20px;
|
|
31
31
|
left: 0;
|
|
32
32
|
bottom: -4px;
|
|
33
|
-
background: var(--ds-neutral-
|
|
33
|
+
background: var(--ds-neutral-500);
|
|
34
34
|
transition: 0.3s ease-in-out;
|
|
35
35
|
transition-property: background-color, outline, transform;
|
|
36
|
-
outline-color: var(--ds-
|
|
36
|
+
outline-color: var(--ds-neutral-500);
|
|
37
37
|
border-radius: 50%;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -43,11 +43,15 @@
|
|
|
43
43
|
|
|
44
44
|
&:checked {
|
|
45
45
|
& + .toggle {
|
|
46
|
-
background: var(--ds-purple-
|
|
46
|
+
background: var(--ds-purple-400);
|
|
47
47
|
}
|
|
48
48
|
+ .toggle:before {
|
|
49
49
|
background: var(--ds-purple-600);
|
|
50
50
|
}
|
|
51
|
+
|
|
52
|
+
&:focus-visible ~ .toggle:before {
|
|
53
|
+
outline: 3px solid var(--ds-purple-500);
|
|
54
|
+
}
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
&:disabled + .toggle {
|
|
@@ -56,7 +60,7 @@
|
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
&:focus-visible ~ .toggle:before {
|
|
59
|
-
outline:
|
|
63
|
+
outline: 3px solid var(--ds-neutral-600);
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
&:checked + .toggle:before {
|
|
@@ -106,12 +106,12 @@ export const BottomOrRegularModalStory = ({
|
|
|
106
106
|
|
|
107
107
|
return (
|
|
108
108
|
<>
|
|
109
|
-
<
|
|
110
|
-
className="
|
|
109
|
+
<Button
|
|
110
|
+
className="wmn2"
|
|
111
111
|
onClick={() => setDisplay(true)}
|
|
112
112
|
>
|
|
113
113
|
Click to open modal
|
|
114
|
-
</
|
|
114
|
+
</Button>
|
|
115
115
|
|
|
116
116
|
<BottomOrRegularModal
|
|
117
117
|
dismissible={dismissible}
|
|
@@ -159,12 +159,12 @@ export const RegularModalStory = ({
|
|
|
159
159
|
to use it for Mobile only, you should check BottomModal instead. Want to
|
|
160
160
|
use either Regular Modal or Bottom Modal based on the screen width? You
|
|
161
161
|
can use Bottom or Regular modal.
|
|
162
|
-
<
|
|
163
|
-
className="
|
|
162
|
+
<Button
|
|
163
|
+
className="wmn2 mt24"
|
|
164
164
|
onClick={() => setDisplay(true)}
|
|
165
165
|
>
|
|
166
166
|
Click to open modal
|
|
167
|
-
</
|
|
167
|
+
</Button>
|
|
168
168
|
<RegularModal title={title} isOpen={display} onClose={handleOnClose}>
|
|
169
169
|
<div style={{ padding: '0 24px 24px 24px' }}>
|
|
170
170
|
<div>{children}</div>
|
|
@@ -202,12 +202,12 @@ export const BottomModalStory = ({
|
|
|
202
202
|
Desktop only, you should check Regular modal instead. Want to use either
|
|
203
203
|
Regular Modal or Bottom Modal based on the screen width? You can use
|
|
204
204
|
Bottom or Regular modal.
|
|
205
|
-
<
|
|
206
|
-
className="
|
|
205
|
+
<Button
|
|
206
|
+
className="wmn2 mt24"
|
|
207
207
|
onClick={() => setDisplay(true)}
|
|
208
208
|
>
|
|
209
209
|
Click to open modal
|
|
210
|
-
</
|
|
210
|
+
</Button>
|
|
211
211
|
<BottomModal title={title} isOpen={display} onClose={handleOnClose}>
|
|
212
212
|
<div style={{ padding: '0 24px 24px 24px' }}>
|
|
213
213
|
<div>{children}</div>
|
|
@@ -242,12 +242,12 @@ export const FullScreenModalStory = ({
|
|
|
242
242
|
Full screen modals are primary meant to be used as blocker screens. The
|
|
243
243
|
modal will cover the entire screen and the user will be able to dismiss
|
|
244
244
|
them using the top left "X" icon.
|
|
245
|
-
<
|
|
246
|
-
className="
|
|
245
|
+
<Button
|
|
246
|
+
className="wmn2 mt24"
|
|
247
247
|
onClick={() => setDisplay(true)}
|
|
248
248
|
>
|
|
249
249
|
Click to open modal
|
|
250
|
-
</
|
|
250
|
+
</Button>
|
|
251
251
|
<FullScreenModal title={title} isOpen={display} onClose={handleOnClose}>
|
|
252
252
|
<div style={{ padding: '0 24px 24px 24px' }}>
|
|
253
253
|
<div>{children}</div>
|
|
@@ -286,12 +286,12 @@ export const NonDismissibleModal = ({
|
|
|
286
286
|
the modal options.
|
|
287
287
|
<strong>Warning:</strong> a modal with the dismissible prop can only be
|
|
288
288
|
closed by changing the isOpen prop to false.
|
|
289
|
-
<
|
|
290
|
-
className="
|
|
289
|
+
<Button
|
|
290
|
+
className="wmn2 mt24"
|
|
291
291
|
onClick={() => setDisplay(true)}
|
|
292
292
|
>
|
|
293
293
|
Click to open modal
|
|
294
|
-
</
|
|
294
|
+
</Button>
|
|
295
295
|
<BottomOrRegularModal
|
|
296
296
|
dismissible={false}
|
|
297
297
|
title={title}
|
|
@@ -326,12 +326,12 @@ export const ModalWithFooter = ({
|
|
|
326
326
|
|
|
327
327
|
return (
|
|
328
328
|
<>
|
|
329
|
-
<
|
|
330
|
-
className="
|
|
329
|
+
<Button
|
|
330
|
+
className="wmn2"
|
|
331
331
|
onClick={() => setDisplay(true)}
|
|
332
332
|
>
|
|
333
333
|
Click to open modal
|
|
334
|
-
</
|
|
334
|
+
</Button>
|
|
335
335
|
|
|
336
336
|
<BottomOrRegularModal
|
|
337
337
|
title={title}
|
|
@@ -340,7 +340,7 @@ export const ModalWithFooter = ({
|
|
|
340
340
|
footer={
|
|
341
341
|
<div className="d-flex fd-row gap8">
|
|
342
342
|
<Button
|
|
343
|
-
variant="
|
|
343
|
+
variant="textBlack"
|
|
344
344
|
className="w100"
|
|
345
345
|
onClick={handleOnClose}
|
|
346
346
|
>
|
|
@@ -374,12 +374,12 @@ export const ModalWithFooterAndScroll = ({
|
|
|
374
374
|
|
|
375
375
|
return (
|
|
376
376
|
<>
|
|
377
|
-
<
|
|
378
|
-
className="
|
|
377
|
+
<Button
|
|
378
|
+
className="wmn2"
|
|
379
379
|
onClick={() => setDisplay(true)}
|
|
380
380
|
>
|
|
381
381
|
Click to open modal
|
|
382
|
-
</
|
|
382
|
+
</Button>
|
|
383
383
|
|
|
384
384
|
<BottomOrRegularModal
|
|
385
385
|
title={title}
|
|
@@ -388,7 +388,7 @@ export const ModalWithFooterAndScroll = ({
|
|
|
388
388
|
footer={
|
|
389
389
|
<div className="d-flex fd-row gap8">
|
|
390
390
|
<Button
|
|
391
|
-
variant="
|
|
391
|
+
variant="textBlack"
|
|
392
392
|
className="w100"
|
|
393
393
|
onClick={handleOnClose}
|
|
394
394
|
>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
@use '../../scss/public/grid' as *;
|
|
3
|
+
@use '../../scss/public/colors' as *;
|
|
3
4
|
|
|
4
5
|
.wrapper {
|
|
5
6
|
position: relative;
|
|
@@ -22,6 +23,23 @@
|
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
.cardButton {
|
|
27
|
+
div {
|
|
28
|
+
background-color: $ds-orange-50;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:hover div {
|
|
32
|
+
border-color: transparent!important;
|
|
33
|
+
outline-color: transparent!important;
|
|
34
|
+
box-shadow: none!important;
|
|
35
|
+
background-color: $ds-orange-100!important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:focus-visible div {
|
|
39
|
+
background-color: $ds-orange-100!important;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
25
43
|
.stickyHeader {
|
|
26
44
|
display: flex;
|
|
27
45
|
position: sticky;
|
|
@@ -178,9 +178,8 @@ const Table = ({
|
|
|
178
178
|
<Card
|
|
179
179
|
data-testid="show-hide-details"
|
|
180
180
|
classNames={{
|
|
181
|
-
buttonWrapper: 'm8 mt32',
|
|
181
|
+
buttonWrapper: classNames(styles.cardButton, 'm8 mt32'),
|
|
182
182
|
title: 'd-flex gap8 ai-center jc-center fw-bold',
|
|
183
|
-
wrapper: 'bg-neutral-100',
|
|
184
183
|
}}
|
|
185
184
|
title={
|
|
186
185
|
<>
|
|
@@ -14,13 +14,3 @@
|
|
|
14
14
|
.description {
|
|
15
15
|
word-break: break-word;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
.bigWithUnderline {
|
|
19
|
-
position: relative;
|
|
20
|
-
display: flex;
|
|
21
|
-
line-height: 38px;
|
|
22
|
-
text-decoration: underline;
|
|
23
|
-
text-decoration-color: $ds-purple-600;
|
|
24
|
-
text-decoration-thickness: 4px;
|
|
25
|
-
text-underline-offset: 8px;
|
|
26
|
-
}
|
|
@@ -11,7 +11,7 @@ import { MiniProgressBar } from './MiniProgressBar/MiniProgressBar';
|
|
|
11
11
|
import { TableInfoButton } from '../../../../comparisonTable';
|
|
12
12
|
import { ModalFunction } from '../../../types';
|
|
13
13
|
|
|
14
|
-
export type FontVariant = 'NORMAL' | '
|
|
14
|
+
export type FontVariant = 'NORMAL' | 'TITLE' | 'PRICE';
|
|
15
15
|
|
|
16
16
|
const progressLookup: Record<string, number> = {
|
|
17
17
|
'30%': 1,
|
|
@@ -101,7 +101,7 @@ export const BaseCell = ({
|
|
|
101
101
|
<SelectedIcon
|
|
102
102
|
aria-hidden="true"
|
|
103
103
|
key={value}
|
|
104
|
-
color={value <= rating?.value ? '
|
|
104
|
+
color={value <= rating?.value ? 'neutral-900' : 'neutral-400'}
|
|
105
105
|
className={styles.icon}
|
|
106
106
|
size={rating?.type === 'zap' ? 16 : 14}
|
|
107
107
|
/>
|
|
@@ -117,7 +117,7 @@ export const BaseCell = ({
|
|
|
117
117
|
data-testid="table-cell-boolean-yes"
|
|
118
118
|
size={24}
|
|
119
119
|
aria-hidden
|
|
120
|
-
color="
|
|
120
|
+
color="neutral-900"
|
|
121
121
|
/>
|
|
122
122
|
) : (
|
|
123
123
|
<XIcon
|
|
@@ -145,20 +145,17 @@ export const BaseCell = ({
|
|
|
145
145
|
|
|
146
146
|
{text && fontVariant === 'PRICE' && (
|
|
147
147
|
<div
|
|
148
|
-
className="p-h1 p--serif tc-
|
|
148
|
+
className="p-h1 p--serif tc-neutral-900"
|
|
149
149
|
data-testid="table-cell-content"
|
|
150
150
|
>
|
|
151
151
|
{text}
|
|
152
152
|
</div>
|
|
153
153
|
)}
|
|
154
154
|
|
|
155
|
-
{text && fontVariant === '
|
|
155
|
+
{text && fontVariant === 'TITLE' && (
|
|
156
156
|
<h2
|
|
157
157
|
aria-hidden
|
|
158
|
-
className=
|
|
159
|
-
'tc-grey-800 p-h2 p--serif',
|
|
160
|
-
styles.bigWithUnderline
|
|
161
|
-
)}
|
|
158
|
+
className="tc-grey-800 p-h2 p--serif"
|
|
162
159
|
>
|
|
163
160
|
{text}
|
|
164
161
|
</h2>
|
|
@@ -1,7 +1,26 @@
|
|
|
1
|
+
@use "../../../../scss/public/colors" as *;
|
|
2
|
+
|
|
1
3
|
.cardWrapper {
|
|
2
4
|
height: 88px;
|
|
3
5
|
}
|
|
4
6
|
|
|
7
|
+
.cardButton {
|
|
8
|
+
div {
|
|
9
|
+
background-color: $ds-orange-50;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:hover div {
|
|
13
|
+
border-color: transparent!important;
|
|
14
|
+
outline-color: transparent!important;
|
|
15
|
+
box-shadow: none!important;
|
|
16
|
+
background-color: $ds-orange-100!important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:focus-visible div {
|
|
20
|
+
background-color: $ds-orange-100!important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
5
24
|
.card {
|
|
6
25
|
position: absolute;
|
|
7
26
|
left: 0;
|
|
@@ -84,13 +84,15 @@ const TableContents = ({
|
|
|
84
84
|
aria-expanded={isExpanded ? 'true' : 'false'}
|
|
85
85
|
aria-hidden
|
|
86
86
|
classNames={{
|
|
87
|
-
wrapper: '
|
|
87
|
+
wrapper: 'pl16',
|
|
88
|
+
buttonWrapper: styles.cardButton,
|
|
88
89
|
icon: classNames(styles.cardIcon, 'tc-neutral-900'),
|
|
89
90
|
}}
|
|
90
91
|
dropShadow={false}
|
|
91
92
|
icon={renderedIcon}
|
|
92
93
|
title={section.title}
|
|
93
94
|
titleVariant="medium"
|
|
95
|
+
variant="primary"
|
|
94
96
|
{...(collapsibleSections
|
|
95
97
|
? {
|
|
96
98
|
onClick: () => handleToggleSection(index),
|
|
@@ -23,38 +23,51 @@ const TableControls = ({
|
|
|
23
23
|
<div
|
|
24
24
|
aria-hidden
|
|
25
25
|
className={classNames(
|
|
26
|
-
'd-flex ai-
|
|
26
|
+
'd-flex ai-stretch jc-between bg-white px8',
|
|
27
27
|
styles.stickyHeader
|
|
28
28
|
)}
|
|
29
29
|
style={{ top: `${stickyHeaderTopOffset}px` }}
|
|
30
30
|
>
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
<div className='py24'>
|
|
32
|
+
<Button
|
|
33
|
+
className={classNames(
|
|
34
|
+
{ [styles.controlButtonHidden]: activeSection <= 1 },
|
|
35
|
+
'br8',
|
|
36
|
+
styles.controlButton
|
|
37
|
+
)}
|
|
38
|
+
disabled={activeSection <= 1}
|
|
39
|
+
hideLabel
|
|
40
|
+
leftIcon={<ChevronLeftIcon />}
|
|
41
|
+
onClick={() => navigateTable()}
|
|
42
|
+
type="button"
|
|
43
|
+
variant="filledGray"
|
|
44
|
+
data-testid="previous-section-button"
|
|
45
|
+
style={{ height: '100%' }}
|
|
46
|
+
>
|
|
47
|
+
Previous section
|
|
48
|
+
</Button>
|
|
49
|
+
</div>
|
|
43
50
|
|
|
44
51
|
{children}
|
|
45
52
|
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
<div className='py24'>
|
|
54
|
+
<Button
|
|
55
|
+
className={classNames(
|
|
56
|
+
{ [styles.controlButtonHidden]: activeSection >= columnsLength - 1 },
|
|
57
|
+
'br8',
|
|
58
|
+
styles.controlButton
|
|
59
|
+
)}
|
|
60
|
+
disabled={activeSection >= columnsLength - 1}
|
|
61
|
+
hideLabel
|
|
62
|
+
leftIcon={<ChevronRightIcon />}
|
|
63
|
+
onClick={() => navigateTable(true)}
|
|
64
|
+
type="button"
|
|
65
|
+
variant="filledGray"
|
|
66
|
+
data-testid="next-section-button"
|
|
67
|
+
>
|
|
68
|
+
Next section
|
|
69
|
+
</Button>
|
|
70
|
+
</div>
|
|
58
71
|
</div>
|
|
59
72
|
);
|
|
60
73
|
};
|
package/src/lib/scss/index.scss
CHANGED
|
@@ -4,66 +4,31 @@
|
|
|
4
4
|
@use '../../public/font' as *;
|
|
5
5
|
|
|
6
6
|
@font-face {
|
|
7
|
-
font-family: '
|
|
7
|
+
font-family: 'Mona Sans';
|
|
8
8
|
font-style: normal;
|
|
9
|
-
font-weight:
|
|
9
|
+
font-weight: 400;
|
|
10
10
|
font-display: swap;
|
|
11
|
-
src: url(https://
|
|
12
|
-
|
|
13
|
-
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F,
|
|
14
|
-
U+FE2E-FE2F;
|
|
11
|
+
src: url(https://github.githubassets.com/static/fonts/Mona-Sans-Medium.woff2) format('woff2');
|
|
12
|
+
font-feature-settings: "ss05" on;
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
@font-face {
|
|
18
|
-
font-family: '
|
|
16
|
+
font-family: 'Mona Sans';
|
|
19
17
|
font-style: normal;
|
|
20
|
-
font-weight:
|
|
18
|
+
font-weight: 600;
|
|
21
19
|
font-display: swap;
|
|
22
|
-
src: url(https://
|
|
23
|
-
|
|
24
|
-
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@font-face {
|
|
28
|
-
font-family: 'Merriweather';
|
|
29
|
-
font-style: normal;
|
|
30
|
-
font-weight: 700;
|
|
31
|
-
font-display: swap;
|
|
32
|
-
src: url(https://fonts.gstatic.com/s/merriweather/v30/u-4n0qyriQwlOrhSvowK_l52xwNZV8f6hPvhPUWH.woff2)
|
|
33
|
-
format('woff2');
|
|
34
|
-
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
|
|
35
|
-
U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@font-face {
|
|
39
|
-
font-family: 'Merriweather';
|
|
40
|
-
font-style: normal;
|
|
41
|
-
font-weight: 700;
|
|
42
|
-
font-display: swap;
|
|
43
|
-
src: url(https://fonts.gstatic.com/s/merriweather/v30/u-4n0qyriQwlOrhSvowK_l52xwNZVsf6hPvhPUWH.woff2)
|
|
44
|
-
format('woff2');
|
|
45
|
-
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
46
|
-
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@font-face {
|
|
50
|
-
font-family: 'Merriweather';
|
|
51
|
-
font-style: normal;
|
|
52
|
-
font-weight: 700;
|
|
53
|
-
font-display: swap;
|
|
54
|
-
src: url(https://fonts.gstatic.com/s/merriweather/v30/u-4n0qyriQwlOrhSvowK_l52xwNZWMf6hPvhPQ.woff2)
|
|
55
|
-
format('woff2');
|
|
56
|
-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
57
|
-
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
58
|
-
U+FEFF, U+FFFD;
|
|
20
|
+
src: url(https://github.githubassets.com/static/fonts/Mona-Sans-SemiBold.woff2) format('woff2');
|
|
21
|
+
font-feature-settings: "ss05" on;
|
|
59
22
|
}
|
|
60
23
|
|
|
61
24
|
body {
|
|
62
25
|
font-family: $font-family;
|
|
26
|
+
-webkit-font-smoothing: antialiased;
|
|
63
27
|
}
|
|
64
28
|
|
|
65
29
|
.p--serif {
|
|
66
|
-
font-family: '
|
|
30
|
+
font-family: 'Mona Sans', sans-serif;
|
|
31
|
+
font-feature-settings: "ss05" on;
|
|
67
32
|
}
|
|
68
33
|
|
|
69
34
|
.p-h1,
|
|
@@ -87,8 +52,8 @@ body {
|
|
|
87
52
|
|
|
88
53
|
&--xl {
|
|
89
54
|
@extend .p-h1;
|
|
90
|
-
font-size:
|
|
91
|
-
line-height:
|
|
55
|
+
font-size: 44px;
|
|
56
|
+
line-height: 56px;
|
|
92
57
|
|
|
93
58
|
@include p-size-mobile {
|
|
94
59
|
font-size: 32px;
|
|
@@ -136,8 +101,9 @@ body {
|
|
|
136
101
|
|
|
137
102
|
&--small {
|
|
138
103
|
@extend .p-p;
|
|
139
|
-
font-size:
|
|
104
|
+
font-size: 13px;
|
|
140
105
|
line-height: 18px;
|
|
106
|
+
letter-spacing: 0.4px;
|
|
141
107
|
}
|
|
142
108
|
}
|
|
143
109
|
|
|
@@ -146,15 +112,18 @@ body {
|
|
|
146
112
|
}
|
|
147
113
|
|
|
148
114
|
.p-a {
|
|
149
|
-
color: $ds-
|
|
150
|
-
text-decoration:
|
|
115
|
+
color: $ds-neutral-900;
|
|
116
|
+
text-decoration: underline;
|
|
117
|
+
text-underline-offset: 5px;
|
|
118
|
+
font-weight: $p-font-weight-bold;
|
|
151
119
|
|
|
152
120
|
&:hover,
|
|
153
121
|
&:focus {
|
|
154
|
-
color: $ds-
|
|
122
|
+
color: $ds-neutral-700;
|
|
155
123
|
}
|
|
156
124
|
|
|
157
125
|
&:focus-visible {
|
|
126
|
+
color: $ds-neutral-900;
|
|
158
127
|
outline: 2px solid $ds-neutral-900;
|
|
159
128
|
border-radius: 2px;
|
|
160
129
|
outline-offset: 2px;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'default';
|