trepur_components 2.3.26 → 2.3.28
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/lib/components/Accordion/Accordion.stories.d.ts +0 -34
- package/lib/components/Accordion/index.js +5 -5
- package/lib/components/AlertBar/index.js +31 -27
- package/lib/components/Button/index.js +2 -3
- package/lib/components/Calendar/index.js +27 -27
- package/lib/components/Card/index.js +7 -7
- package/lib/components/Carousel/Carousel.stories.d.ts +1 -3
- package/lib/components/Carousel/index.d.ts +16 -18
- package/lib/components/Carousel/index.js +101 -100
- package/lib/components/CarouselThumbnail/index.d.ts +14 -14
- package/lib/components/Collapsible/Collapsible.stories.d.ts +0 -34
- package/lib/components/Collapsible/index.js +44 -41
- package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +1 -3
- package/lib/components/DetailUpdater/index.d.ts +2 -5
- package/lib/components/DetailUpdater/index.js +14 -17
- package/lib/components/Dialog/Dialog.stories.d.ts +1 -1
- package/lib/components/Dialog/index.d.ts +2 -2
- package/lib/components/Dialog/index.js +4 -14
- package/lib/components/Dropdown/index.js +41 -41
- package/lib/components/FileUploader/FilePreview.d.ts +1 -1
- package/lib/components/FileUploader/FileUploader.stories.d.ts +0 -34
- package/lib/components/FooterNav/index.js +24 -16
- package/lib/components/Form/Form.stories.d.ts +3 -54
- package/lib/components/Input/index.js +36 -36
- package/lib/components/MenuButton/MenuButton.stories.d.ts +1 -49
- package/lib/components/MenuButton/index.d.ts +1 -3
- package/lib/components/MenuButton/index.js +9 -15
- package/lib/components/Modal/Modal.stories.d.ts +1 -1
- package/lib/components/Modal/index.d.ts +1 -1
- package/lib/components/NavItem/index.js +21 -14
- package/lib/components/Search/Search.stories.d.ts +1 -43
- package/lib/components/Search/index.d.ts +1 -1
- package/lib/components/Select/Select.stories.d.ts +1 -33
- package/lib/components/Select/index.d.ts +1 -1
- package/lib/components/Showcase/Showcase.stories.d.ts +3 -41
- package/lib/components/Showcase/index.d.ts +1 -1
- package/lib/components/SideNav/SideNav.stories.d.ts +4 -44
- package/lib/components/SideNav/index.d.ts +2 -2
- package/lib/components/SocialButton/SocialButton.stories.d.ts +10 -57
- package/lib/components/SocialButton/index.d.ts +2 -3
- package/lib/components/SplitCard/index.js +34 -34
- package/lib/components/Stars/index.d.ts +0 -3
- package/lib/components/Stars/index.js +6 -6
- package/lib/components/Testimonial/index.js +31 -15
- package/lib/components/TextArea/index.js +37 -37
- package/lib/components/index.d.ts +1 -1
- package/lib/styles/themes/penrithmrt.css +19 -19
- package/lib/tailwind/boxShadow.ts +1 -1
- package/lib/tailwind/colors.ts +27 -27
- package/lib/tailwind/container.ts +2 -2
- package/lib/tailwind/preset.ts +12 -12
- package/lib/tailwind/spacing.ts +1 -1
- package/lib/utils/controls.d.ts +0 -35
- package/package.json +4 -2
package/lib/tailwind/colors.ts
CHANGED
|
@@ -8,29 +8,29 @@ export default {
|
|
|
8
8
|
bg: 'var(--color-nav-bg)',
|
|
9
9
|
text: 'var(--color-nav-text)',
|
|
10
10
|
shadow: {
|
|
11
|
-
bg: 'var(--color-nav-shadow-bg)'
|
|
11
|
+
bg: 'var(--color-nav-shadow-bg)'
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
loading: 'var(--color-loading)',
|
|
15
15
|
footer: {
|
|
16
16
|
bg: 'var(--color-footer-bg)',
|
|
17
|
-
text: 'var(--color-footer-text)'
|
|
17
|
+
text: 'var(--color-footer-text)'
|
|
18
18
|
},
|
|
19
19
|
error: {
|
|
20
20
|
default: 'var(--color-error-default)',
|
|
21
|
-
light: 'var(--color-error-light)'
|
|
21
|
+
light: 'var(--color-error-light)'
|
|
22
22
|
},
|
|
23
23
|
warning: {
|
|
24
24
|
default: 'var(--color-warning-default)',
|
|
25
|
-
light: 'var(--color-warning-light)'
|
|
25
|
+
light: 'var(--color-warning-light)'
|
|
26
26
|
},
|
|
27
27
|
info: {
|
|
28
28
|
default: 'var(--color-info-default)',
|
|
29
|
-
light: 'var(--color-info-light)'
|
|
29
|
+
light: 'var(--color-info-light)'
|
|
30
30
|
},
|
|
31
31
|
success: {
|
|
32
32
|
default: 'var(--color-success-default)',
|
|
33
|
-
light: 'var(--color-success-light)'
|
|
33
|
+
light: 'var(--color-success-light)'
|
|
34
34
|
},
|
|
35
35
|
button: {
|
|
36
36
|
primary: {
|
|
@@ -38,62 +38,62 @@ export default {
|
|
|
38
38
|
border: 'var(--color-button-primary-border)',
|
|
39
39
|
bg: 'var(--color-button-primary-bg)',
|
|
40
40
|
text: 'var(--color-button-primary-text)',
|
|
41
|
-
hover: 'var(--color-button-primary-hover)'
|
|
41
|
+
hover: 'var(--color-button-primary-hover)'
|
|
42
42
|
},
|
|
43
43
|
secondary: {
|
|
44
44
|
active: 'var(--color-button-secondary-active)',
|
|
45
45
|
border: 'var(--color-button-secondary-border)',
|
|
46
46
|
bg: 'var(--color-button-secondary-bg)',
|
|
47
47
|
text: 'var(--color-button-secondary-text)',
|
|
48
|
-
hover: 'var(--color-button-secondary-hover)'
|
|
48
|
+
hover: 'var(--color-button-secondary-hover)'
|
|
49
49
|
},
|
|
50
50
|
ghost: {
|
|
51
51
|
active: 'var(--color-button-ghost-active)',
|
|
52
52
|
border: 'var(--color-button-ghost-border)',
|
|
53
53
|
bg: 'var(--color-button-ghost-bg)',
|
|
54
54
|
text: 'var(--color-button-ghost-text)',
|
|
55
|
-
hover: 'var(--color-button-ghost-hover)'
|
|
55
|
+
hover: 'var(--color-button-ghost-hover)'
|
|
56
56
|
},
|
|
57
57
|
bordered: {
|
|
58
58
|
active: 'var(--color-button-bordered-active)',
|
|
59
59
|
border: 'var(--color-button-bordered-border)',
|
|
60
60
|
bg: 'var(--color-button-bordered-bg)',
|
|
61
61
|
text: 'var(--color-button-bordered-text)',
|
|
62
|
-
hover: 'var(--color-button-bordered-hover)'
|
|
62
|
+
hover: 'var(--color-button-bordered-hover)'
|
|
63
63
|
},
|
|
64
64
|
basic: {
|
|
65
65
|
active: 'var(--color-button-basic-active)',
|
|
66
66
|
border: 'var(--color-button-basic-border)',
|
|
67
67
|
bg: 'var(--color-button-basic-bg)',
|
|
68
68
|
text: 'var(--color-button-basic-text)',
|
|
69
|
-
hover: 'var(--color-button-basic-hover)'
|
|
69
|
+
hover: 'var(--color-button-basic-hover)'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
carousel: {
|
|
73
|
+
arrow: {
|
|
74
|
+
default: 'var(--color-carousel-arrow-default)',
|
|
75
|
+
hover: 'var(--color-carousel-arrow-hover)'
|
|
70
76
|
},
|
|
77
|
+
dots: {
|
|
78
|
+
default: 'var(--color-carousel-dots-inactive)',
|
|
79
|
+
active: 'var(--color-carousel-dots-active)',
|
|
80
|
+
hover: 'var(--color-carousel-dots-hover)'
|
|
81
|
+
}
|
|
71
82
|
},
|
|
72
83
|
tubestop: {
|
|
73
84
|
station: {
|
|
74
85
|
active: 'var(--color-tubestop-station-active)',
|
|
75
86
|
complete: 'var(--color-tubestop-station-complete)',
|
|
76
|
-
future: 'var(--color-tubestop-station-future)'
|
|
87
|
+
future: 'var(--color-tubestop-station-future)'
|
|
77
88
|
},
|
|
78
89
|
line: {
|
|
79
90
|
complete: 'var(--color-tubestop-line-complete)',
|
|
80
|
-
future: 'var(--color-tubestop-line-future)'
|
|
91
|
+
future: 'var(--color-tubestop-line-future)'
|
|
81
92
|
},
|
|
82
93
|
text: {
|
|
83
94
|
active: 'var(--color-tubestop-text-active)',
|
|
84
95
|
complete: 'var(--color-tubestop-text-complete)',
|
|
85
|
-
future: 'var(--color-tubestop-text-future)'
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
carousel: {
|
|
89
|
-
arrow: {
|
|
90
|
-
default: 'var(--color-carousel-arrow-default)',
|
|
91
|
-
hover: 'var(--color-carousel-arrow-hover)',
|
|
92
|
-
},
|
|
93
|
-
dots: {
|
|
94
|
-
default: 'var(--color-carousel-dots-inactive)',
|
|
95
|
-
active: 'var(--color-carousel-dots-active)',
|
|
96
|
-
hover: 'var(--color-carousel-dots-hover)',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
96
|
+
future: 'var(--color-tubestop-text-future)'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
99
|
};
|
package/lib/tailwind/preset.ts
CHANGED
|
@@ -17,37 +17,37 @@ const presetConfig: Config = {
|
|
|
17
17
|
container,
|
|
18
18
|
extend: {
|
|
19
19
|
animation: {
|
|
20
|
-
'rest-bounce': 'rest-bounce 2s linear infinite'
|
|
20
|
+
'rest-bounce': 'rest-bounce 2s linear infinite'
|
|
21
21
|
},
|
|
22
22
|
boxShadow,
|
|
23
23
|
colors,
|
|
24
24
|
|
|
25
25
|
fontFamily: {
|
|
26
|
-
sans: ['Poppins', 'sans-serif']
|
|
26
|
+
sans: ['Poppins', 'sans-serif']
|
|
27
27
|
},
|
|
28
28
|
keyframes: {
|
|
29
29
|
'rest-bounce': {
|
|
30
30
|
'0%': {
|
|
31
|
-
transform: 'translateY(0%)'
|
|
31
|
+
transform: 'translateY(0%)'
|
|
32
32
|
},
|
|
33
33
|
'20%': {
|
|
34
|
-
transform: 'translateY(-40%)'
|
|
34
|
+
transform: 'translateY(-40%)'
|
|
35
35
|
},
|
|
36
36
|
'40%': {
|
|
37
|
-
transform: 'translateY(0%)'
|
|
38
|
-
}
|
|
39
|
-
}
|
|
37
|
+
transform: 'translateY(0%)'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
40
|
},
|
|
41
41
|
spacing,
|
|
42
42
|
transitionProperty: {
|
|
43
43
|
height: 'height',
|
|
44
|
-
'max-height': 'max-height'
|
|
44
|
+
'max-height': 'max-height'
|
|
45
45
|
},
|
|
46
46
|
transitionDelay: {
|
|
47
|
-
600: '600ms'
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
47
|
+
600: '600ms'
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
export default presetConfig;
|
package/lib/tailwind/spacing.ts
CHANGED
package/lib/utils/controls.d.ts
CHANGED
|
@@ -1,36 +1 @@
|
|
|
1
1
|
export type Colours = 'primary' | 'secondary' | 'white' | 'black' | 'grey' | 'gold' | 'facebook' | 'linkedin' | 'email' | 'instagram' | 'github' | 'interactive-facebook' | 'interactive-email' | 'interactive-linkedin' | 'interactive-instagram' | 'interactive-github' | 'success' | 'error' | 'ink' | 'transparent';
|
|
2
|
-
export type SocialTypes = 'facebook' | 'instagram' | 'github' | 'linkedin';
|
|
3
|
-
export declare const idAndClassName: {
|
|
4
|
-
id: {
|
|
5
|
-
description: string;
|
|
6
|
-
control: {
|
|
7
|
-
type: string;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
table: {
|
|
11
|
-
category: string;
|
|
12
|
-
type: {
|
|
13
|
-
summary: string;
|
|
14
|
-
};
|
|
15
|
-
defaultValue: {
|
|
16
|
-
summary: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
className: {
|
|
21
|
-
description: string;
|
|
22
|
-
control: {
|
|
23
|
-
type: string;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
table: {
|
|
27
|
-
category: string;
|
|
28
|
-
type: {
|
|
29
|
-
summary: string;
|
|
30
|
-
};
|
|
31
|
-
defaultValue: {
|
|
32
|
-
summary: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trepur_components",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.28",
|
|
4
4
|
"description": "component lib",
|
|
5
5
|
"author": "trepur_ttenneb",
|
|
6
6
|
"private": false,
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"lint:fix": "npm run lint -- --fix",
|
|
32
32
|
"prettier:check": "prettier --check .",
|
|
33
33
|
"prettier:fix": "prettier --write .",
|
|
34
|
-
"prepare": "husky install"
|
|
34
|
+
"prepare": "husky install",
|
|
35
|
+
"verify": "npm run prettier:fix && npm run lint:fix"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|
|
37
38
|
"@types/react": ">=17",
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
"chromatic": "^10.1.0",
|
|
108
109
|
"concurrently": "^8.2.2",
|
|
109
110
|
"eslint": "^8.56.0",
|
|
111
|
+
"eslint-config-prettier": "^9.1.0",
|
|
110
112
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
111
113
|
"eslint-plugin-import": "^2.29.1",
|
|
112
114
|
"eslint-plugin-prettier": "^5.1.3",
|