@bbl-digital/snorre 3.1.54 → 3.1.56

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/dist/bundle.js +70 -44
  2. package/esm/core/ImageCarousel/index.js +70 -0
  3. package/esm/core/ImageCarousel/styles.js +58 -0
  4. package/esm/core/InfoButton/index.js +2 -1
  5. package/esm/core/Select/index.js +16 -2
  6. package/esm/core/Select/styles.js +37 -24
  7. package/esm/enums/ModifierKey.js +13 -0
  8. package/esm/illustrations/MySite/IllustrationMySiteAssociation.js +2 -2
  9. package/esm/illustrations/MySite/IllustrationMySiteCooperative.js +2 -2
  10. package/esm/illustrations/MySite/IllustrationMySiteDashboard.js +7 -7
  11. package/esm/illustrations/MySite/IllustrationMySiteMailbox.js +4 -4
  12. package/lib/core/ImageCarousel/index.d.ts +11 -0
  13. package/lib/core/ImageCarousel/index.d.ts.map +1 -0
  14. package/lib/core/ImageCarousel/index.js +70 -0
  15. package/lib/core/ImageCarousel/styles.d.ts +26 -0
  16. package/lib/core/ImageCarousel/styles.d.ts.map +1 -0
  17. package/lib/core/ImageCarousel/styles.js +58 -0
  18. package/lib/core/InfoButton/index.d.ts +2 -0
  19. package/lib/core/InfoButton/index.d.ts.map +1 -1
  20. package/lib/core/InfoButton/index.js +2 -1
  21. package/lib/core/Select/index.d.ts +4 -0
  22. package/lib/core/Select/index.d.ts.map +1 -1
  23. package/lib/core/Select/index.js +16 -2
  24. package/lib/core/Select/styles.d.ts +3 -0
  25. package/lib/core/Select/styles.d.ts.map +1 -1
  26. package/lib/core/Select/styles.js +37 -24
  27. package/lib/enums/ModifierKey.d.ts +12 -0
  28. package/lib/enums/ModifierKey.d.ts.map +1 -0
  29. package/lib/enums/ModifierKey.js +13 -0
  30. package/lib/illustrations/MySite/IllustrationMySiteAssociation.js +2 -2
  31. package/lib/illustrations/MySite/IllustrationMySiteCooperative.js +2 -2
  32. package/lib/illustrations/MySite/IllustrationMySiteDashboard.js +7 -7
  33. package/lib/illustrations/MySite/IllustrationMySiteMailbox.js +4 -4
  34. package/package.json +1 -1
  35. package/esm/core/Autocomplete/index.d.js +0 -1
  36. package/esm/core/DatepickerRange/YearMonthForm.js +0 -56
  37. package/lib/core/Autocomplete/index.d.js +0 -1
  38. package/lib/core/DatepickerRange/YearMonthForm.d.ts +0 -10
  39. package/lib/core/DatepickerRange/YearMonthForm.d.ts.map +0 -1
  40. package/lib/core/DatepickerRange/YearMonthForm.js +0 -56
@@ -7,11 +7,11 @@ const IllustrationMySiteCooperative = props => /*#__PURE__*/_jsx("svg", {
7
7
  viewBox: "0 0 222 150",
8
8
  ...props,
9
9
  children: /*#__PURE__*/_jsxs("g", {
10
- "fill-rule": "nonzero",
10
+ fillRule: "nonzero",
11
11
  fill: "none",
12
12
  children: [/*#__PURE__*/_jsx("path", {
13
13
  d: "M128.987 24.731c-14.232-.497-27.788-5.136-40.731-10.21C75.313 9.445 62.49 3.82 48.599 1.131 39.664-.597 29.446-.84 22.248 3.994c-6.93 4.646-9.167 12.689-10.37 20.135-.906 5.615-1.438 11.51 1.041 16.761 1.723 3.646 4.782 6.709 6.898 10.2 7.358 12.149 2.161 27.13-5.819 38.993-3.733 5.564-8.08 10.873-10.967 16.795-2.886 5.923-4.222 12.71-1.697 18.753 2.505 5.99 8.47 10.488 14.931 13.652 13.126 6.428 14.42 10.76 29.58 10.715 34.035-.1 80.98-.1 114.503 0 12.4.037 24.854-1.844 37.043-3.778 6.766-1.075 13.752-2.778 18.664-6.895 6.238-5.227 7.784-14.07 3.603-20.619-7.004-10.984-26.39-13.71-31.29-25.504-2.697-6.49.074-13.72 3.993-19.749 8.409-12.911 22.503-24.24 23.246-39 .51-10.138-6.265-20.29-16.741-25.087-10.982-5.033-26.208-4.394-34.31 3.927-8.343 8.583-23.003 11.88-35.569 11.438z",
14
- "fill-opacity": ".136",
14
+ fillOpacity: ".136",
15
15
  fill: "#1657E2",
16
16
  className: "fill-primary"
17
17
  }), /*#__PURE__*/_jsx("path", {
@@ -31,13 +31,13 @@ const IllustrationMySiteDashboard = props => /*#__PURE__*/_jsxs("svg", {
31
31
  })]
32
32
  }), /*#__PURE__*/_jsxs("g", {
33
33
  fill: "none",
34
- "fill-rule": "evenodd",
34
+ fillRule: "evenodd",
35
35
  children: [/*#__PURE__*/_jsx("path", {
36
36
  d: "M127.825 24.898c-14.104-.501-27.538-5.171-40.364-10.28C74.634 9.509 61.927 3.848 48.16 1.14 39.308-.6 29.182-.846 22.048 4.02 15.18 8.7 11.447 16.428 10.255 23.924c-.897 5.653.091 11.956 2.548 17.242 1.708 3.67 4.739 6.754 6.836 10.268 7.291 12.23 2.141 27.313-5.767 39.255-3.7 5.602-8.008 10.947-10.868 16.909-2.86 5.962-4.184 12.796-1.682 18.88 2.482 6.03 8.393 10.558 14.797 13.742C29.126 146.691 43.976 150 59 150c33.5 0 66.6-.1 99.926-.1 12.29 0 24.607-.75 36.686-2.697 6.706-1.082 13.629-2.797 18.496-6.94 6.182-5.263 7.714-14.165 3.571-20.759-6.94-11.057-26.151-13.802-31.007-25.676-2.673-6.533.072-13.811 3.956-19.88 8.333-13 22.3-24.404 23.036-39.264.507-10.205-6.208-20.427-16.59-25.255-10.883-5.067-25.972-4.424-34.001 3.953-8.267 8.64-22.795 11.96-35.248 11.516z",
37
- "fill-opacity": ".14",
37
+ fillOpacity: ".14",
38
38
  fill: "#1657E2",
39
39
  className: "fill-primary",
40
- "fill-rule": "nonzero"
40
+ fillRule: "nonzero"
41
41
  }), /*#__PURE__*/_jsxs("g", {
42
42
  transform: "translate(0 39)",
43
43
  children: [/*#__PURE__*/_jsx("use", {
@@ -45,7 +45,7 @@ const IllustrationMySiteDashboard = props => /*#__PURE__*/_jsxs("svg", {
45
45
  className: "fill-primary-opa50",
46
46
  xlinkHref: "#a"
47
47
  }), /*#__PURE__*/_jsx("use", {
48
- "fill-opacity": ".499",
48
+ fillOpacity: ".499",
49
49
  fill: "#FFF",
50
50
  xlinkHref: "#a"
51
51
  }), /*#__PURE__*/_jsx("rect", {
@@ -61,7 +61,7 @@ const IllustrationMySiteDashboard = props => /*#__PURE__*/_jsxs("svg", {
61
61
  d: "M8.752 30.517h18v4.36h-18zM8.752 39.517h18v4.36h-18zM30.256 30.517h28v4.36h-28zM30.256 39.517h28v4.36h-28z"
62
62
  })]
63
63
  }), /*#__PURE__*/_jsxs("g", {
64
- "fill-rule": "nonzero",
64
+ fillRule: "nonzero",
65
65
  children: [/*#__PURE__*/_jsx("path", {
66
66
  fill: "#C3D0D8",
67
67
  d: "M114 90.8L133 67l20 23.8V150h-39z"
@@ -96,7 +96,7 @@ const IllustrationMySiteDashboard = props => /*#__PURE__*/_jsxs("svg", {
96
96
  className: "fill-primary-opa50",
97
97
  xlinkHref: "#b"
98
98
  }), /*#__PURE__*/_jsx("use", {
99
- "fill-opacity": ".499",
99
+ fillOpacity: ".499",
100
100
  fill: "#FFF",
101
101
  xlinkHref: "#b"
102
102
  }), /*#__PURE__*/_jsx("use", {
@@ -104,7 +104,7 @@ const IllustrationMySiteDashboard = props => /*#__PURE__*/_jsxs("svg", {
104
104
  className: "fill-primary-opa50",
105
105
  xlinkHref: "#c"
106
106
  }), /*#__PURE__*/_jsx("use", {
107
- "fill-opacity": ".499",
107
+ fillOpacity: ".499",
108
108
  fill: "#FFF",
109
109
  xlinkHref: "#c"
110
110
  }), /*#__PURE__*/_jsx("rect", {
@@ -16,13 +16,13 @@ const IllustrationMySiteMailbox = props => /*#__PURE__*/_jsxs("svg", {
16
16
  })]
17
17
  }), /*#__PURE__*/_jsxs("g", {
18
18
  fill: "none",
19
- "fill-rule": "evenodd",
19
+ fillRule: "evenodd",
20
20
  children: [/*#__PURE__*/_jsx("path", {
21
21
  d: "M129.568 24.731c-14.296-.497-27.913-5.136-40.914-10.21C75.652 9.445 62.77 3.82 48.818 1.131 39.843-.597 29.578-.84 22.348 3.994c-6.96 4.646-9.209 12.689-10.416 20.135-.91 5.615-1.445 11.51 1.046 16.761 1.73 3.646 4.803 6.709 6.929 10.2 7.39 12.149 2.17 27.13-5.846 38.993-3.75 5.564-8.117 10.873-11.016 16.795-2.9 5.923-4.241 12.71-1.705 18.753 2.516 5.99 8.508 10.488 14.998 13.652 13.185 6.428 14.485 10.76 29.713 10.715 34.188-.1 81.346-.1 115.019 0 12.457.037 24.966-1.844 37.21-3.778 6.796-1.075 13.814-2.778 18.748-6.895 6.266-5.227 7.819-14.07 3.62-20.619-7.036-10.984-26.509-13.71-31.43-25.504-2.71-6.49.072-13.72 4.01-19.749 8.446-12.911 22.604-24.24 23.35-39 .513-10.138-6.293-20.29-16.816-25.087-11.032-5.033-26.327-4.394-34.465 3.927-8.38 8.583-23.106 11.88-35.729 11.438z",
22
- "fill-opacity": ".136",
22
+ fillOpacity: ".136",
23
23
  fill: "#1657E2",
24
24
  className: "fill-primary",
25
- "fill-rule": "nonzero"
25
+ fillRule: "nonzero"
26
26
  }), /*#__PURE__*/_jsxs("g", {
27
27
  transform: "translate(154 13)",
28
28
  children: [/*#__PURE__*/_jsx("use", {
@@ -30,7 +30,7 @@ const IllustrationMySiteMailbox = props => /*#__PURE__*/_jsxs("svg", {
30
30
  className: "fill-primary-opa50",
31
31
  xlinkHref: "#a"
32
32
  }), /*#__PURE__*/_jsx("use", {
33
- "fill-opacity": ".499",
33
+ fillOpacity: ".499",
34
34
  fill: "#FFF",
35
35
  xlinkHref: "#a"
36
36
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbl-digital/snorre",
3
- "version": "3.1.54",
3
+ "version": "3.1.56",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",
@@ -1 +0,0 @@
1
- export {};
@@ -1,56 +0,0 @@
1
- import React from 'react';
2
- import { MONTHS } from '../../utils/dates';
3
- import { StyledSelect, Div } from './styles';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
-
7
- const YearMonthForm = ({
8
- onChange,
9
- date,
10
- fromDate,
11
- toDate
12
- }) => {
13
- const months = MONTHS;
14
- const years = [];
15
-
16
- for (let i = fromDate.getFullYear(); i <= toDate.getFullYear(); i += 1) {
17
- years.push(i);
18
- }
19
-
20
- const changeMonth = e => {
21
- let newDate = date;
22
- newDate.setMonth(e.target.value);
23
- if (newDate > toDate) newDate = toDate;
24
- onChange(newDate);
25
- };
26
-
27
- const changeYear = e => {
28
- let newDate = date;
29
- newDate.setFullYear(e.target.value);
30
- if (newDate > toDate) newDate = toDate;
31
- onChange(newDate);
32
- };
33
-
34
- return /*#__PURE__*/_jsxs(Div, {
35
- className: "DayPicker-Caption",
36
- children: [/*#__PURE__*/_jsx(StyledSelect, {
37
- name: "month",
38
- onChange: changeMonth,
39
- value: date.getMonth(),
40
- children: months.map((month, i) => /*#__PURE__*/_jsx("option", {
41
- value: i,
42
- children: month
43
- }, month))
44
- }), /*#__PURE__*/_jsx(StyledSelect, {
45
- name: "year",
46
- onChange: changeYear,
47
- value: date.getFullYear(),
48
- children: years.map(year => /*#__PURE__*/_jsx("option", {
49
- value: year,
50
- children: year
51
- }, year))
52
- })]
53
- });
54
- };
55
-
56
- export default YearMonthForm;
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- date: Date;
4
- onChange: (e: Date) => void;
5
- fromDate: Date;
6
- toDate: Date;
7
- }
8
- declare const YearMonthForm: React.FC<IProps>;
9
- export default YearMonthForm;
10
- //# sourceMappingURL=YearMonthForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"YearMonthForm.d.ts","sourceRoot":"","sources":["../../../src/packages/core/DatepickerRange/YearMonthForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,UAAU,MAAM;IACd,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,IAAI,CAAA;IAC3B,QAAQ,EAAE,IAAI,CAAA;IACd,MAAM,EAAE,IAAI,CAAA;CACb;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAmDnC,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1,56 +0,0 @@
1
- import React from 'react';
2
- import { MONTHS } from '../../utils/dates';
3
- import { StyledSelect, Div } from './styles';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
-
7
- const YearMonthForm = ({
8
- onChange,
9
- date,
10
- fromDate,
11
- toDate
12
- }) => {
13
- const months = MONTHS;
14
- const years = [];
15
-
16
- for (let i = fromDate.getFullYear(); i <= toDate.getFullYear(); i += 1) {
17
- years.push(i);
18
- }
19
-
20
- const changeMonth = e => {
21
- let newDate = date;
22
- newDate.setMonth(e.target.value);
23
- if (newDate > toDate) newDate = toDate;
24
- onChange(newDate);
25
- };
26
-
27
- const changeYear = e => {
28
- let newDate = date;
29
- newDate.setFullYear(e.target.value);
30
- if (newDate > toDate) newDate = toDate;
31
- onChange(newDate);
32
- };
33
-
34
- return /*#__PURE__*/_jsxs(Div, {
35
- className: "DayPicker-Caption",
36
- children: [/*#__PURE__*/_jsx(StyledSelect, {
37
- name: "month",
38
- onChange: changeMonth,
39
- value: date.getMonth(),
40
- children: months.map((month, i) => /*#__PURE__*/_jsx("option", {
41
- value: i,
42
- children: month
43
- }, month))
44
- }), /*#__PURE__*/_jsx(StyledSelect, {
45
- name: "year",
46
- onChange: changeYear,
47
- value: date.getFullYear(),
48
- children: years.map(year => /*#__PURE__*/_jsx("option", {
49
- value: year,
50
- children: year
51
- }, year))
52
- })]
53
- });
54
- };
55
-
56
- export default YearMonthForm;