@popsure/dirty-swan 0.59.0 → 0.59.1

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.
Files changed (35) hide show
  1. package/dist/cjs/index.js +7 -7
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/{Calendar-5ad3eccf.js → Calendar-0f4bf3c1.js} +2 -2
  4. package/dist/esm/Calendar-0f4bf3c1.js.map +1 -0
  5. package/dist/esm/{TableSection-b3d158d2.js → TableSection-65e88f87.js} +1 -1
  6. package/dist/esm/{TableSection-b3d158d2.js.map → TableSection-65e88f87.js.map} +1 -1
  7. package/dist/esm/components/accordion/index.js +1 -1
  8. package/dist/esm/components/cards/card/index.js +1 -1
  9. package/dist/esm/components/dateSelector/components/Calendar.js +1 -1
  10. package/dist/esm/components/dateSelector/index.js +2 -2
  11. package/dist/esm/components/dateSelector/index.js.map +1 -1
  12. package/dist/esm/components/dateSelector/index.stories.js +1 -1
  13. package/dist/esm/components/dateSelector/index.test.js +1 -1
  14. package/dist/esm/components/informationBox/index.js +1 -1
  15. package/dist/esm/components/informationBox/index.js.map +1 -1
  16. package/dist/esm/components/modal/genericModal/index.js +1 -1
  17. package/dist/esm/components/modal/genericModal/index.js.map +1 -1
  18. package/dist/esm/components/table/Table.js +1 -1
  19. package/dist/esm/components/table/Table.stories.js +1 -1
  20. package/dist/esm/components/table/Table.test.js +1 -1
  21. package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.js +1 -1
  22. package/dist/esm/components/table/components/TableContents/TableContents.js +1 -1
  23. package/dist/esm/components/table/components/TableContents/TableContents.test.js +1 -1
  24. package/dist/esm/components/table/components/TableSection/TableSection.js +1 -1
  25. package/dist/esm/components/table/components/TableSection/TableSection.test.js +1 -1
  26. package/dist/esm/index.js +2 -2
  27. package/package.json +1 -1
  28. package/src/lib/components/accordion/style.module.scss +5 -7
  29. package/src/lib/components/cards/card/style.module.scss +12 -1
  30. package/src/lib/components/dateSelector/components/Calendar.tsx +2 -3
  31. package/src/lib/components/dateSelector/index.tsx +1 -1
  32. package/src/lib/components/informationBox/index.tsx +1 -1
  33. package/src/lib/components/modal/genericModal/index.tsx +1 -1
  34. package/src/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.module.scss +11 -9
  35. package/dist/esm/Calendar-5ad3eccf.js.map +0 -1
@@ -12,7 +12,7 @@ import { TableContents } from './components/TableContents/TableContents.js';
12
12
  import { c as classNames } from '../../index-6ea95111.js';
13
13
  import { u as useTableNavigation } from '../../useTableNavigation-f929fbc9.js';
14
14
  import { TableControls } from './components/TableControls/TableControls.js';
15
- import { i as isBaseCell, T as TableSection } from '../../TableSection-b3d158d2.js';
15
+ import { i as isBaseCell, T as TableSection } from '../../TableSection-65e88f87.js';
16
16
  import { u as useScrollSync } from '../../useScrollSync-b2d28bed.js';
17
17
  import './components/TableCell/BaseCell/BaseCell.js';
18
18
  import '../icon/icons/CheckThick.js';
@@ -37,7 +37,7 @@ import '../icon/icons/ChevronDown.js';
37
37
  import '../icon/icons/ChevronUp.js';
38
38
  import '../../useMediaQuery-1a3a2432.js';
39
39
  import './components/TableContents/TableContents.js';
40
- import '../../TableSection-b3d158d2.js';
40
+ import '../../TableSection-65e88f87.js';
41
41
  import './components/TableContents/Collapsible.js';
42
42
  import '../../useTableNavigation-f929fbc9.js';
43
43
  import './components/TableControls/TableControls.js';
@@ -37,7 +37,7 @@ import '../icon/icons/ChevronDown.js';
37
37
  import '../icon/icons/ChevronUp.js';
38
38
  import '../../useMediaQuery-1a3a2432.js';
39
39
  import './components/TableContents/TableContents.js';
40
- import '../../TableSection-b3d158d2.js';
40
+ import '../../TableSection-65e88f87.js';
41
41
  import './components/TableContents/Collapsible.js';
42
42
  import '../../useTableNavigation-f929fbc9.js';
43
43
  import './components/TableControls/TableControls.js';
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { c as classNames } from '../../../../../../index-6ea95111.js';
3
3
  import { s as styleInject } from '../../../../../../style-inject.es-1f59c1d0.js';
4
4
 
5
- var css_248z = ".MiniProgressBar-module_progressBar__2K07F {\n margin-bottom: 4px;\n}\n.MiniProgressBar-module_progressBar__2K07F rect {\n fill: #E8E7FE;\n}\n\n.MiniProgressBar-module_filledBars1__ZhQbV rect:first-child {\n fill: #919199;\n}\n\n.MiniProgressBar-module_filledBars2__2lH_z rect:nth-child(-n+2) {\n fill: #919199;\n}\n\n.MiniProgressBar-module_filledBars3__1OKUj rect:nth-child(-n+3) {\n fill: #B0CDF3;\n}\n\n.MiniProgressBar-module_filledBars4__T9kuj rect:nth-child(-n+4) {\n fill: #B0CDF3;\n}\n\n.MiniProgressBar-module_filledBars5__WxVpb rect {\n fill: #8883D8;\n}";
5
+ var css_248z = ".MiniProgressBar-module_progressBar__2K07F {\n margin-top: 4px;\n}\n.MiniProgressBar-module_progressBar__2K07F rect {\n fill: #f2f2f8;\n}\n\n.MiniProgressBar-module_filledBars1__ZhQbV rect:first-child {\n fill: #919199;\n}\n\n.MiniProgressBar-module_filledBars2__2lH_z rect:nth-child(-n+2) {\n fill: #919199;\n}\n\n.MiniProgressBar-module_filledBars3__1OKUj rect:nth-child(-n+3) {\n fill: #919199;\n}\n\n.MiniProgressBar-module_filledBars4__T9kuj rect:nth-child(-n+4) {\n fill: #696971;\n}\n\n.MiniProgressBar-module_filledBars5__WxVpb rect {\n fill: #26262e;\n}";
6
6
  var styles = {"progressBar":"MiniProgressBar-module_progressBar__2K07F","filledBars1":"MiniProgressBar-module_filledBars1__ZhQbV","filledBars2":"MiniProgressBar-module_filledBars2__2lH_z","filledBars3":"MiniProgressBar-module_filledBars3__1OKUj","filledBars4":"MiniProgressBar-module_filledBars4__T9kuj","filledBars5":"MiniProgressBar-module_filledBars5__WxVpb"};
7
7
  styleInject(css_248z);
8
8
 
@@ -1,7 +1,7 @@
1
1
  import { a as __assign, _ as __spreadArray } from '../../../../tslib.es6-a39f91fc.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { useState } from 'react';
4
- import { T as TableSection } from '../../../../TableSection-b3d158d2.js';
4
+ import { T as TableSection } from '../../../../TableSection-65e88f87.js';
5
5
  import ChevronDownIcon from '../../../icon/icons/ChevronDown.js';
6
6
  import ChevronUpIcon from '../../../icon/icons/ChevronUp.js';
7
7
  import { Card } from '../../../cards/card/index.js';
@@ -6,7 +6,7 @@ import 'react';
6
6
  import 'react-dom';
7
7
  import '../../../../_commonjsHelpers-4730bd53.js';
8
8
  import 'react-dom/test-utils';
9
- import '../../../../TableSection-b3d158d2.js';
9
+ import '../../../../TableSection-65e88f87.js';
10
10
  import '../../../../index-6ea95111.js';
11
11
  import '../../../../style-inject.es-1f59c1d0.js';
12
12
  import '../TableCell/TableCell.js';
@@ -1,7 +1,7 @@
1
1
  import '../../../../tslib.es6-a39f91fc.js';
2
2
  import 'react/jsx-runtime';
3
3
  import '../../../../index-6ea95111.js';
4
- export { T as TableSection } from '../../../../TableSection-b3d158d2.js';
4
+ export { T as TableSection } from '../../../../TableSection-65e88f87.js';
5
5
  import '../TableCell/TableCell.js';
6
6
  import 'react';
7
7
  import '../../../../useMediaQuery-1a3a2432.js';
@@ -1,7 +1,7 @@
1
1
  import { a as __assign } from '../../../../tslib.es6-a39f91fc.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { c as customRender, s as screen } from '../../../../customRender-be47569b.js';
4
- import { T as TableSection } from '../../../../TableSection-b3d158d2.js';
4
+ import { T as TableSection } from '../../../../TableSection-65e88f87.js';
5
5
  import 'react';
6
6
  import 'react-dom';
7
7
  import '../../../../_commonjsHelpers-4730bd53.js';
package/dist/esm/index.js CHANGED
@@ -32,7 +32,7 @@ export { Accordion } from './components/accordion/index.js';
32
32
  export { Table } from './components/table/Table.js';
33
33
  import { useCallback, useEffect } from 'react';
34
34
  export { u as useMediaQuery } from './useMediaQuery-1a3a2432.js';
35
- export { u as useOnClickOutside } from './Calendar-5ad3eccf.js';
35
+ export { u as useOnClickOutside } from './Calendar-0f4bf3c1.js';
36
36
  export { LogoColor } from './components/logo/LogoColor.js';
37
37
  export { LogoWhite } from './components/logo/LogoWhite.js';
38
38
  export { LogoBlack } from './components/logo/LogoBlack.js';
@@ -466,7 +466,7 @@ import './components/table/components/IconRenderer/IconRenderer.js';
466
466
  import './components/table/components/TableCell/CardCell/CardCell.js';
467
467
  import './components/table/components/TableCell/ButtonCell/ButtonCell.js';
468
468
  import './components/table/components/TableContents/TableContents.js';
469
- import './TableSection-b3d158d2.js';
469
+ import './TableSection-65e88f87.js';
470
470
  import './components/table/components/TableContents/Collapsible.js';
471
471
  import './useTableNavigation-f929fbc9.js';
472
472
  import './components/table/components/TableControls/TableControls.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popsure/dirty-swan",
3
- "version": "0.59.0",
3
+ "version": "0.59.1",
4
4
  "author": "Vincent Audoire <vincent@getpopsure.com>",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -41,24 +41,22 @@
41
41
 
42
42
  .buttonWrapper {
43
43
  background-color: transparent!important;
44
- color: $ds-purple-600;
44
+ color: $ds-neutral-900;
45
45
  outline-offset: -4px;
46
46
 
47
47
  &Default {
48
48
  outline-offset: 0;
49
49
  }
50
50
 
51
- &:hover,
52
- &:focus-visible {
53
- background: $ds-purple-100;
54
-
51
+ &:focus-visible,
52
+ &:hover {
55
53
  .icon {
56
- color: $ds-purple-600!important;
54
+ color: $ds-neutral-900!important;
57
55
  }
58
56
 
59
57
  .question,
60
58
  .chevron{
61
- color: $ds-purple-600;
59
+ color: $ds-neutral-900;
62
60
  }
63
61
  }
64
62
 
@@ -1,7 +1,7 @@
1
1
  @use '../../../scss/public/colors' as *;
2
2
  @use '../../../scss/private/borders/default' as *;
3
3
 
4
- .wrapper {
4
+ @mixin wrapper-base-styles {
5
5
  background-color: $ds-white;
6
6
  border: 1px solid transparent;
7
7
  transition: all 0.2s ease-in-out;
@@ -32,6 +32,10 @@
32
32
  }
33
33
  }
34
34
 
35
+ .wrapper {
36
+ @include wrapper-base-styles;
37
+ }
38
+
35
39
  .button {
36
40
  background-color: transparent;
37
41
  color: $ds-neutral-900;
@@ -110,6 +114,13 @@
110
114
  box-shadow: inset 0 0 0 1px $ds-purple-600;
111
115
  }
112
116
  }
117
+
118
+ @media (pointer: coarse) {
119
+ &:hover .wrapper,
120
+ &:active .wrapper {
121
+ @include wrapper-base-styles;
122
+ }
123
+ }
113
124
  }
114
125
 
115
126
  .smallPadding {
@@ -72,11 +72,10 @@ export const Calendar = ({
72
72
  onClick={() => setCalendarOpen(!isOpen)}
73
73
  data-testid="calendar-button"
74
74
  hideLabel
75
- variant='filledBlack'
76
- leftIcon={<CalendarIcon />}
75
+ variant='textBlack'
77
76
  type="button"
78
77
  >
79
- Select date
78
+ <CalendarIcon size={24} />
80
79
  </Button>
81
80
 
82
81
  {isOpen && (
@@ -233,7 +233,7 @@ export const DateSelector = ({
233
233
 
234
234
  return (
235
235
  <div>
236
- <div className="d-flex ai-center">
236
+ <div className="d-flex">
237
237
  <div className={classNames(styles.container, "d-flex gap8")}>
238
238
  <div className={"d-flex gap8 jc-between"}>
239
239
  <Input {...getInputProps('day', 0)} />
@@ -29,7 +29,7 @@ const InformationBox = ({
29
29
  error: 'red-500',
30
30
  success: 'green-500',
31
31
  information: 'blue-500',
32
- neutral: 'purple-600',
32
+ neutral: 'neutral-900',
33
33
  };
34
34
 
35
35
  return (
@@ -143,7 +143,7 @@ const InnerModal = ({
143
143
  styles.footer
144
144
  )}
145
145
  >
146
- <div className="p24 pt16">{footer}</div>
146
+ <div className="p24 pt16 pb32">{footer}</div>
147
147
  </div>
148
148
  )}
149
149
  </div>
@@ -1,12 +1,14 @@
1
1
  @use "../../../../../../scss/public/colors" as *;
2
2
 
3
- $defaultColor: $ds-purple-300;
4
- $oneOrTwoColor: $ds-neutral-600;
5
- $threeOrFourColor: $ds-blue-300;
6
- $allFilledColor: $ds-purple-600;
3
+ $defaultColor: $ds-neutral-200;
4
+ $oneColor: $ds-neutral-600;
5
+ $twoColor: $ds-neutral-600;
6
+ $threeColor: $ds-neutral-600;
7
+ $fourColor: $ds-neutral-700;
8
+ $allFilledColor: $ds-neutral-900;
7
9
 
8
10
  .progressBar {
9
- margin-bottom: 4px;
11
+ margin-top: 4px;
10
12
 
11
13
  rect {
12
14
  fill: $defaultColor;
@@ -15,25 +17,25 @@ $allFilledColor: $ds-purple-600;
15
17
 
16
18
  .filledBars1 {
17
19
  rect:first-child {
18
- fill: $oneOrTwoColor;
20
+ fill: $oneColor;
19
21
  }
20
22
  }
21
23
 
22
24
  .filledBars2 {
23
25
  rect:nth-child(-n + 2) {
24
- fill: $oneOrTwoColor;
26
+ fill: $twoColor;
25
27
  }
26
28
  }
27
29
 
28
30
  .filledBars3 {
29
31
  rect:nth-child(-n + 3) {
30
- fill: $threeOrFourColor;
32
+ fill: $threeColor;
31
33
  }
32
34
  }
33
35
 
34
36
  .filledBars4 {
35
37
  rect:nth-child(-n + 4) {
36
- fill: $threeOrFourColor;
38
+ fill: $fourColor;
37
39
  }
38
40
  }
39
41