@galaxy-ds/core 2.0.6 → 2.0.8
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/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +103 -25
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +182 -24
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/src/DateRangePicker/DateRangePicker.tsx +1 -1
- package/src/Theme/leap/desktop/design-tokens/typography.ts +17 -18
- package/src/index.ts +2 -0
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { StyledDateRangePicker } from './DateRangePicker.styled';
|
|
|
4
4
|
|
|
5
5
|
import { DateRangePickerProps } from './DateRangePicker.types';
|
|
6
6
|
|
|
7
|
-
export const DateRangePicker
|
|
7
|
+
export const DateRangePicker = ({
|
|
8
8
|
months = 2,
|
|
9
9
|
...rest
|
|
10
10
|
}: DateRangePickerProps) => {
|
|
@@ -1,73 +1,69 @@
|
|
|
1
1
|
import { TypographyOptions } from "@mui/material/styles/createTypography"
|
|
2
2
|
|
|
3
|
+
const FONT_FAMILY = [
|
|
4
|
+
"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol",
|
|
5
|
+
].join(",");
|
|
6
|
+
|
|
3
7
|
const typography: TypographyOptions = {
|
|
4
|
-
fontFamily:
|
|
5
|
-
"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol",
|
|
6
|
-
].join(","),
|
|
8
|
+
fontFamily: FONT_FAMILY,
|
|
7
9
|
h1: {
|
|
8
|
-
fontFamily:
|
|
9
|
-
"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol",
|
|
10
|
-
].join(","),
|
|
10
|
+
fontFamily: FONT_FAMILY,
|
|
11
11
|
fontWeight: 400,
|
|
12
12
|
fontSize: 24,
|
|
13
13
|
lineHeight: 1.25,
|
|
14
14
|
letterSpacing: "-0.5px",
|
|
15
15
|
},
|
|
16
16
|
h2: {
|
|
17
|
-
fontFamily:
|
|
18
|
-
"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol",
|
|
19
|
-
].join(","),
|
|
17
|
+
fontFamily: FONT_FAMILY,
|
|
20
18
|
fontWeight: 400,
|
|
21
19
|
fontSize: 16,
|
|
22
20
|
lineHeight: 1.1667,
|
|
23
21
|
letterSpacing: "-0.5px",
|
|
24
22
|
},
|
|
25
23
|
h3: {
|
|
26
|
-
fontFamily:
|
|
27
|
-
"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol",
|
|
28
|
-
].join(","),
|
|
24
|
+
fontFamily: FONT_FAMILY,
|
|
29
25
|
fontWeight: 400,
|
|
30
26
|
fontSize: 12,
|
|
31
27
|
lineHeight: 1.2,
|
|
32
28
|
letterSpacing: "-0.5px",
|
|
33
29
|
},
|
|
34
30
|
h4: {
|
|
35
|
-
fontFamily:
|
|
36
|
-
"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol",
|
|
37
|
-
].join(","),
|
|
31
|
+
fontFamily: FONT_FAMILY,
|
|
38
32
|
fontWeight: 500,
|
|
39
33
|
fontSize: 14,
|
|
40
34
|
lineHeight: "1.5rem",
|
|
41
35
|
letterSpacing: "0",
|
|
42
36
|
},
|
|
43
37
|
h5: {
|
|
38
|
+
fontFamily: FONT_FAMILY,
|
|
44
39
|
fontWeight: 400,
|
|
45
40
|
fontSize: 13,
|
|
46
41
|
lineHeight: "2rem",
|
|
47
42
|
letterSpacing: "0",
|
|
48
43
|
},
|
|
49
44
|
h6: {
|
|
50
|
-
fontFamily:
|
|
51
|
-
"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol",
|
|
52
|
-
].join(","),
|
|
45
|
+
fontFamily: FONT_FAMILY,
|
|
53
46
|
fontWeight: 400,
|
|
54
47
|
fontSize: 16,
|
|
55
48
|
lineHeight: 1.1667,
|
|
56
49
|
letterSpacing: "-0.5px",
|
|
57
50
|
},
|
|
58
51
|
body1: {
|
|
52
|
+
fontFamily: FONT_FAMILY,
|
|
59
53
|
fontWeight: 400,
|
|
60
54
|
fontSize: 14,
|
|
61
55
|
lineHeight: "1.5rem",
|
|
62
56
|
letterSpacing: "0",
|
|
63
57
|
},
|
|
64
58
|
body2: {
|
|
59
|
+
fontFamily: FONT_FAMILY,
|
|
65
60
|
fontWeight: 400,
|
|
66
61
|
fontSize: 12,
|
|
67
62
|
lineHeight: "1.25rem", // Use rem here for accurate height calculation
|
|
68
63
|
letterSpacing: "0",
|
|
69
64
|
},
|
|
70
65
|
button: {
|
|
66
|
+
fontFamily: FONT_FAMILY,
|
|
71
67
|
fontWeight: 400,
|
|
72
68
|
fontSize: 14,
|
|
73
69
|
lineHeight: "1.371",
|
|
@@ -75,18 +71,21 @@ const typography: TypographyOptions = {
|
|
|
75
71
|
textTransform: 'capitalize'
|
|
76
72
|
},
|
|
77
73
|
caption: {
|
|
74
|
+
fontFamily: FONT_FAMILY,
|
|
78
75
|
fontWeight: 500,
|
|
79
76
|
fontSize: 12,
|
|
80
77
|
lineHeight: '0.875rem',
|
|
81
78
|
letterSpacing: '0.07px'
|
|
82
79
|
},
|
|
83
80
|
subtitle1: {
|
|
81
|
+
fontFamily: FONT_FAMILY,
|
|
84
82
|
fontWeight: 500,
|
|
85
83
|
fontSize: 14,
|
|
86
84
|
lineHeight: "1.5rem",
|
|
87
85
|
letterSpacing: "0",
|
|
88
86
|
},
|
|
89
87
|
subtitle2: {
|
|
88
|
+
fontFamily: FONT_FAMILY,
|
|
90
89
|
fontWeight: 500,
|
|
91
90
|
fontSize: 12,
|
|
92
91
|
lineHeight: "1.25rem", // Use rem here for accurate height calculation
|
package/src/index.ts
CHANGED
|
@@ -91,5 +91,7 @@ export * from './AttachmentIcon';
|
|
|
91
91
|
export * from './Icons/leap';
|
|
92
92
|
export * from './Icons/common/Forms';
|
|
93
93
|
export * from './Logos/Leap';
|
|
94
|
+
export * from './Icons/doctypes/Doctype';
|
|
95
|
+
export * from './Icons/doctypes/Doctype16';
|
|
94
96
|
|
|
95
97
|
export const IconsPath = '../Icons/lawconnect/';
|