oddsgate-ds 1.0.94 → 1.0.96
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 +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/organisms/Tabs/Tabs.interface.d.ts +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/organisms/Tabs/Tabs.interface.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/atoms/FormField/FormField.theme.tsx +9 -0
- package/src/components/organisms/CircularSlider/CircularSlider.component.tsx +5 -5
- package/src/components/organisms/CircularSlider/CircularSlider.theme.ts +1 -0
- package/src/components/organisms/Tabs/Tabs.component.tsx +1 -1
- package/src/components/organisms/Tabs/Tabs.interface.ts +1 -0
- package/src/components/organisms/Tabs/Tabs.theme.ts +1 -1
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -103,4 +103,13 @@ export const StyledFieldContainer = styled.div<IFormField>`
|
|
|
103
103
|
gap: 1rem;
|
|
104
104
|
}
|
|
105
105
|
`}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
::placeholder {
|
|
109
|
+
color: rbga(${colors.third10}, 0.2);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
::-ms-input-placeholder { /* Edge 12 -18 */
|
|
113
|
+
color: rbga(${colors.third10}, 0.2);
|
|
114
|
+
}
|
|
106
115
|
`
|
|
@@ -29,9 +29,6 @@ const CircularSlider = ({
|
|
|
29
29
|
|
|
30
30
|
const isMobile = useMediaMatch();
|
|
31
31
|
|
|
32
|
-
const sliderSize = isMobile ? 2.6 : 1;
|
|
33
|
-
const slideSize = isMobile ? 0.12 : 0.15;
|
|
34
|
-
|
|
35
32
|
//force 12 items
|
|
36
33
|
if (content && content.length < 12) {
|
|
37
34
|
let counter = 0;
|
|
@@ -58,7 +55,6 @@ const CircularSlider = ({
|
|
|
58
55
|
let currentSlide = 0;
|
|
59
56
|
|
|
60
57
|
slidesHolder.current.style.transitionDuration = animationDuration + 'ms';
|
|
61
|
-
|
|
62
58
|
const slidesRepositioning = (r) => {
|
|
63
59
|
for (let i = 0; i < slides.length; i++) {
|
|
64
60
|
|
|
@@ -72,6 +68,8 @@ const CircularSlider = ({
|
|
|
72
68
|
const setSize = (radius: number) => {
|
|
73
69
|
if (!wrapper.current || !slidesHolder.current) return //bail out;
|
|
74
70
|
|
|
71
|
+
const slideSize = isMobile ? 0.12 : 0.15;
|
|
72
|
+
|
|
75
73
|
wrapper.current.style.width = 2 * radius + 'px';
|
|
76
74
|
wrapper.current.style.height = 2 * radius + 'px';
|
|
77
75
|
|
|
@@ -90,6 +88,8 @@ const CircularSlider = ({
|
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
const sliderResize = debounce(() => {
|
|
91
|
+
const sliderSize = isMobile ? 2.6 : 1;
|
|
92
|
+
|
|
93
93
|
let radius,
|
|
94
94
|
w = slider?.current ? slider?.current?.getBoundingClientRect().width : 0,
|
|
95
95
|
h = slider?.current ? slider?.current.getBoundingClientRect().height : 0;
|
|
@@ -162,7 +162,7 @@ const CircularSlider = ({
|
|
|
162
162
|
|
|
163
163
|
window.removeEventListener('resize', sliderResize)
|
|
164
164
|
}
|
|
165
|
-
}, [])
|
|
165
|
+
}, [isMobile])
|
|
166
166
|
|
|
167
167
|
if (!content) return <></>
|
|
168
168
|
|
|
@@ -42,7 +42,7 @@ const Tabs = ({ id, title, menu, vertical, className, style }: ITabs) => {
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
return (
|
|
45
|
-
<StyledTabs id={id} vertical={vertical} className={className} style={style}>
|
|
45
|
+
<StyledTabs id={id} $vertical={vertical} className={className} style={style}>
|
|
46
46
|
<div>
|
|
47
47
|
{title && <Heading tag="h3" size="h1" className='text-uppercase mb-4'>{title}</Heading>}
|
|
48
48
|
<StyledTabsMenu align='left'>
|