oddsgate-ds 1.0.16 → 1.0.18

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 (100) hide show
  1. package/dist/cjs/index.js +5 -5
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/atoms/Button/Button.theme.d.ts +3 -0
  4. package/dist/cjs/types/components/atoms/Chip/Chip.theme.d.ts +3 -0
  5. package/dist/cjs/types/components/atoms/CloseButton/CloseButton.theme.d.ts +3 -0
  6. package/dist/cjs/types/components/atoms/EmptyState/EmptyState.theme.d.ts +3 -0
  7. package/dist/cjs/types/components/atoms/Flex/Flex.theme.d.ts +3 -0
  8. package/dist/cjs/types/components/atoms/FlexGrid/FlexGrid.theme.d.ts +5 -0
  9. package/dist/cjs/types/components/atoms/FormField/CheckRadioField/CheckRadioField.theme.d.ts +3 -0
  10. package/dist/cjs/types/components/atoms/FormField/FormField.theme.d.ts +4 -0
  11. package/dist/cjs/types/components/atoms/Heading/Heading.theme.d.ts +3 -0
  12. package/dist/cjs/types/components/atoms/Icon/Icon.theme.d.ts +3 -0
  13. package/dist/cjs/types/components/atoms/ImageWrapper/ImageWrapper.theme.d.ts +4 -0
  14. package/dist/cjs/types/components/atoms/Loader/Loader.theme.d.ts +3 -0
  15. package/dist/cjs/types/components/atoms/Marquee/Marquee.theme.d.ts +3 -0
  16. package/dist/cjs/types/components/atoms/Quote/Quote.theme.d.ts +3 -0
  17. package/dist/cjs/types/components/atoms/RichText/RichText.theme.d.ts +3 -0
  18. package/dist/cjs/types/components/atoms/ScrollingNav/ScrollingNav.theme.d.ts +3 -0
  19. package/dist/cjs/types/components/atoms/Separator/Separator.theme.d.ts +3 -0
  20. package/dist/cjs/types/components/atoms/SocialLinks/SocialLinks.stories.d.ts +1 -0
  21. package/dist/cjs/types/components/atoms/SocialLinks/SocialLinks.theme.d.ts +3 -0
  22. package/dist/cjs/types/components/atoms/Spacer/Spacer.theme.d.ts +3 -0
  23. package/dist/cjs/types/components/atoms/Video/Video.theme.d.ts +5 -0
  24. package/dist/cjs/types/components/atoms/VideoEmbed/VideoEmbed.theme.d.ts +5 -0
  25. package/dist/cjs/types/components/molecules/Accordion/Accordion.theme.d.ts +6 -0
  26. package/dist/cjs/types/components/molecules/BlogCard/BlogCard.theme.d.ts +3 -0
  27. package/dist/cjs/types/components/molecules/Card/Card.theme.d.ts +4 -0
  28. package/dist/cjs/types/components/molecules/Dropdown/Dropdown.theme.d.ts +6 -0
  29. package/dist/cjs/types/components/molecules/IconBox/IconBox.theme.d.ts +3 -0
  30. package/dist/cjs/types/components/molecules/IconTitle/IconTitle.theme.d.ts +3 -0
  31. package/dist/cjs/types/components/molecules/Modal/Modal.theme.d.ts +6 -0
  32. package/dist/cjs/types/components/molecules/OffCanvas/OffCanvas.theme.d.ts +3 -0
  33. package/dist/cjs/types/components/molecules/ProjectCard/ProjectCard.theme.d.ts +3 -0
  34. package/dist/cjs/types/components/molecules/ShareModal/ShareModal.theme.d.ts +5 -0
  35. package/dist/cjs/types/components/molecules/TeamCard/TeamCard.theme.d.ts +3 -0
  36. package/dist/cjs/types/components/organisms/CircularSlider/CircularSlider.component.d.ts +4 -0
  37. package/dist/cjs/types/components/organisms/CircularSlider/CircularSlider.interface.d.ts +11 -0
  38. package/dist/cjs/types/components/organisms/CircularSlider/CircularSlider.stories.d.ts +5 -0
  39. package/dist/cjs/types/components/organisms/CircularSlider/CircularSlider.theme.d.ts +7 -0
  40. package/dist/cjs/types/components/organisms/CircularSlider/index.d.ts +1 -0
  41. package/dist/cjs/types/components/organisms/Cover/Cover.theme.d.ts +5 -0
  42. package/dist/cjs/types/components/organisms/Slider/Slider.theme.d.ts +3 -0
  43. package/dist/cjs/types/index.d.ts +1 -0
  44. package/dist/esm/index.js +5 -5
  45. package/dist/esm/index.js.map +1 -1
  46. package/dist/esm/types/components/atoms/Button/Button.theme.d.ts +3 -0
  47. package/dist/esm/types/components/atoms/Chip/Chip.theme.d.ts +3 -0
  48. package/dist/esm/types/components/atoms/CloseButton/CloseButton.theme.d.ts +3 -0
  49. package/dist/esm/types/components/atoms/EmptyState/EmptyState.theme.d.ts +3 -0
  50. package/dist/esm/types/components/atoms/Flex/Flex.theme.d.ts +3 -0
  51. package/dist/esm/types/components/atoms/FlexGrid/FlexGrid.theme.d.ts +5 -0
  52. package/dist/esm/types/components/atoms/FormField/CheckRadioField/CheckRadioField.theme.d.ts +3 -0
  53. package/dist/esm/types/components/atoms/FormField/FormField.theme.d.ts +4 -0
  54. package/dist/esm/types/components/atoms/Heading/Heading.theme.d.ts +3 -0
  55. package/dist/esm/types/components/atoms/Icon/Icon.theme.d.ts +3 -0
  56. package/dist/esm/types/components/atoms/ImageWrapper/ImageWrapper.theme.d.ts +4 -0
  57. package/dist/esm/types/components/atoms/Loader/Loader.theme.d.ts +3 -0
  58. package/dist/esm/types/components/atoms/Marquee/Marquee.theme.d.ts +3 -0
  59. package/dist/esm/types/components/atoms/Quote/Quote.theme.d.ts +3 -0
  60. package/dist/esm/types/components/atoms/RichText/RichText.theme.d.ts +3 -0
  61. package/dist/esm/types/components/atoms/ScrollingNav/ScrollingNav.theme.d.ts +3 -0
  62. package/dist/esm/types/components/atoms/Separator/Separator.theme.d.ts +3 -0
  63. package/dist/esm/types/components/atoms/SocialLinks/SocialLinks.stories.d.ts +1 -0
  64. package/dist/esm/types/components/atoms/SocialLinks/SocialLinks.theme.d.ts +3 -0
  65. package/dist/esm/types/components/atoms/Spacer/Spacer.theme.d.ts +3 -0
  66. package/dist/esm/types/components/atoms/Video/Video.theme.d.ts +5 -0
  67. package/dist/esm/types/components/atoms/VideoEmbed/VideoEmbed.theme.d.ts +5 -0
  68. package/dist/esm/types/components/molecules/Accordion/Accordion.theme.d.ts +6 -0
  69. package/dist/esm/types/components/molecules/BlogCard/BlogCard.theme.d.ts +3 -0
  70. package/dist/esm/types/components/molecules/Card/Card.theme.d.ts +4 -0
  71. package/dist/esm/types/components/molecules/Dropdown/Dropdown.theme.d.ts +6 -0
  72. package/dist/esm/types/components/molecules/IconBox/IconBox.theme.d.ts +3 -0
  73. package/dist/esm/types/components/molecules/IconTitle/IconTitle.theme.d.ts +3 -0
  74. package/dist/esm/types/components/molecules/Modal/Modal.theme.d.ts +6 -0
  75. package/dist/esm/types/components/molecules/OffCanvas/OffCanvas.theme.d.ts +3 -0
  76. package/dist/esm/types/components/molecules/ProjectCard/ProjectCard.theme.d.ts +3 -0
  77. package/dist/esm/types/components/molecules/ShareModal/ShareModal.theme.d.ts +5 -0
  78. package/dist/esm/types/components/molecules/TeamCard/TeamCard.theme.d.ts +3 -0
  79. package/dist/esm/types/components/organisms/CircularSlider/CircularSlider.component.d.ts +4 -0
  80. package/dist/esm/types/components/organisms/CircularSlider/CircularSlider.interface.d.ts +11 -0
  81. package/dist/esm/types/components/organisms/CircularSlider/CircularSlider.stories.d.ts +5 -0
  82. package/dist/esm/types/components/organisms/CircularSlider/CircularSlider.theme.d.ts +7 -0
  83. package/dist/esm/types/components/organisms/CircularSlider/index.d.ts +1 -0
  84. package/dist/esm/types/components/organisms/Cover/Cover.theme.d.ts +5 -0
  85. package/dist/esm/types/components/organisms/Slider/Slider.theme.d.ts +3 -0
  86. package/dist/esm/types/index.d.ts +1 -0
  87. package/dist/types.d.ts +555 -0
  88. package/package.json +2 -2
  89. package/rollup.config.js +5 -5
  90. package/src/components/atoms/Button/Button.theme.ts +3 -1
  91. package/src/components/atoms/FormField/FormField.component.tsx +1 -1
  92. package/src/components/atoms/FormField/FormField.theme.tsx +8 -1
  93. package/src/components/atoms/SocialLinks/SocialLinks.component.tsx +10 -3
  94. package/src/components/atoms/SocialLinks/SocialLinks.stories.tsx +14 -0
  95. package/src/components/organisms/CircularSlider/CircularSlider.component.tsx +162 -0
  96. package/src/components/organisms/CircularSlider/CircularSlider.interface.ts +12 -0
  97. package/src/components/organisms/CircularSlider/CircularSlider.stories.tsx +74 -0
  98. package/src/components/organisms/CircularSlider/CircularSlider.theme.ts +58 -0
  99. package/src/components/organisms/CircularSlider/index.ts +1 -0
  100. package/src/index.ts +1 -0
@@ -0,0 +1,555 @@
1
+ import * as React$1 from 'react';
2
+ import React__default, { CSSProperties } from 'react';
3
+ import { spaces as spaces$1 } from '@/styles/variables';
4
+ import * as styled_components from 'styled-components';
5
+
6
+ declare const pxToRem: (size: number) => string;
7
+ declare const fontName = "Red Hat Display";
8
+ declare const alternativeFont = "MD Nichrome";
9
+ declare const gutter: string;
10
+ declare const desktop_width = "1360";
11
+ declare const tablet_width = "768";
12
+ declare const mobile_width = "375";
13
+ declare const responsiveMedia = "980px";
14
+ declare const mobileMedia = "360px";
15
+ declare const easeOutExpo = "cubic-bezier(.32,.94,.6,1);";
16
+ type IBreakpoints = {
17
+ $xs?: string;
18
+ $sm?: string;
19
+ $md?: string;
20
+ $lg?: string;
21
+ $xl?: string;
22
+ $xxl?: string;
23
+ };
24
+ declare const colors: Record<string, string>;
25
+ declare const spaces: Record<string, string>;
26
+ declare const spacesNegative: Record<string, string>;
27
+ declare const typography: Record<string, Record<string, unknown>>;
28
+ declare const radius: Record<string, string>;
29
+ declare const shadows: Record<string, string>;
30
+ declare const zIndexes: Record<string, string>;
31
+ declare const grid_conf: {
32
+ gridSize: number;
33
+ gutter: number;
34
+ mediaQuery: string;
35
+ container: IBreakpoints;
36
+ breakpoints: IBreakpoints;
37
+ };
38
+
39
+ type variables_IBreakpoints = IBreakpoints;
40
+ declare const variables_alternativeFont: typeof alternativeFont;
41
+ declare const variables_colors: typeof colors;
42
+ declare const variables_desktop_width: typeof desktop_width;
43
+ declare const variables_easeOutExpo: typeof easeOutExpo;
44
+ declare const variables_fontName: typeof fontName;
45
+ declare const variables_grid_conf: typeof grid_conf;
46
+ declare const variables_gutter: typeof gutter;
47
+ declare const variables_mobileMedia: typeof mobileMedia;
48
+ declare const variables_mobile_width: typeof mobile_width;
49
+ declare const variables_pxToRem: typeof pxToRem;
50
+ declare const variables_radius: typeof radius;
51
+ declare const variables_responsiveMedia: typeof responsiveMedia;
52
+ declare const variables_shadows: typeof shadows;
53
+ declare const variables_spaces: typeof spaces;
54
+ declare const variables_spacesNegative: typeof spacesNegative;
55
+ declare const variables_tablet_width: typeof tablet_width;
56
+ declare const variables_typography: typeof typography;
57
+ declare const variables_zIndexes: typeof zIndexes;
58
+ declare namespace variables {
59
+ export {
60
+ variables_IBreakpoints as IBreakpoints,
61
+ variables_alternativeFont as alternativeFont,
62
+ variables_colors as colors,
63
+ variables_desktop_width as desktop_width,
64
+ variables_easeOutExpo as easeOutExpo,
65
+ variables_fontName as fontName,
66
+ variables_grid_conf as grid_conf,
67
+ variables_gutter as gutter,
68
+ variables_mobileMedia as mobileMedia,
69
+ variables_mobile_width as mobile_width,
70
+ variables_pxToRem as pxToRem,
71
+ variables_radius as radius,
72
+ variables_responsiveMedia as responsiveMedia,
73
+ variables_shadows as shadows,
74
+ variables_spaces as spaces,
75
+ variables_spacesNegative as spacesNegative,
76
+ variables_tablet_width as tablet_width,
77
+ variables_typography as typography,
78
+ variables_zIndexes as zIndexes,
79
+ };
80
+ }
81
+
82
+ type IImageWrapper = {
83
+ aspectRatioHeight?: number;
84
+ anchor?: string;
85
+ $align?: string;
86
+ align?: string;
87
+ caption?: string;
88
+ href?: string;
89
+ linkTarget?: string;
90
+ rel?: string;
91
+ className?: string;
92
+ style?: CSSProperties;
93
+ children?: React.ReactNode;
94
+ asBackground?: boolean;
95
+ };
96
+
97
+ declare const ImageWrapper: ({ aspectRatioHeight, align, caption, href, linkTarget, rel, className, style, children, asBackground }: IImageWrapper) => React__default.JSX.Element;
98
+
99
+ declare enum typographyTags {
100
+ div = "div",
101
+ span = "span",
102
+ p = "p",
103
+ h1 = "h1",
104
+ h2 = "h2",
105
+ h3 = "h3",
106
+ h4 = "h4",
107
+ h5 = "h5",
108
+ h6 = "h6"
109
+ }
110
+ type IHeading = {
111
+ tag?: keyof typeof typographyTags | string;
112
+ size?: string;
113
+ className?: string;
114
+ style?: CSSProperties;
115
+ children?: React.ReactNode;
116
+ };
117
+
118
+ declare const Heading: ({ tag, size, className, ...props }: IHeading) => React__default.JSX.Element;
119
+
120
+ type IRichText = {
121
+ id?: string;
122
+ tag?: keyof typeof typographyTags;
123
+ attributes?: object;
124
+ className?: string;
125
+ style?: CSSProperties;
126
+ children?: any;
127
+ };
128
+
129
+ declare const RichText: ({ id, tag, attributes, className, style, children, ...props }: IRichText) => React__default.JSX.Element;
130
+
131
+ interface IButtonBase {
132
+ id?: string;
133
+ as?: 'button' | 'a';
134
+ type?: string;
135
+ outlined?: boolean;
136
+ leftIcon?: React.ReactElement;
137
+ rightIcon?: React.ReactElement;
138
+ removeLabel?: boolean;
139
+ href?: string;
140
+ ariaLabel?: string;
141
+ rel?: string;
142
+ disabled?: boolean;
143
+ target?: string;
144
+ className?: string;
145
+ style?: CSSProperties;
146
+ children?: React.ReactNode;
147
+ onClick?: (event?: React.MouseEvent<HTMLElement>) => void;
148
+ }
149
+ interface IButton extends IButtonBase {
150
+ variant?: string;
151
+ mode?: string;
152
+ }
153
+
154
+ declare const Button: ({ id, as, children, variant, mode, outlined, leftIcon, rightIcon, removeLabel, className, href, ariaLabel, rel, target, disabled, type, ...props }: IButton) => React__default.JSX.Element;
155
+
156
+ type ISpacer = {
157
+ id?: string;
158
+ color?: string;
159
+ height?: keyof typeof spaces$1 | string | number;
160
+ customHeight?: string;
161
+ className?: string;
162
+ style?: CSSProperties;
163
+ };
164
+
165
+ declare const Spacer: ({ id, color, customHeight, height, className, ...props }: ISpacer) => React__default.JSX.Element;
166
+
167
+ type ISeparator = {
168
+ color?: string;
169
+ margin?: string;
170
+ height?: string;
171
+ className?: string;
172
+ style?: CSSProperties;
173
+ };
174
+
175
+ declare const Separator: ({ color, margin, height, ...props }: ISeparator) => React__default.JSX.Element;
176
+
177
+ interface IFlexBase {
178
+ className?: string;
179
+ style?: CSSProperties;
180
+ children?: React.ReactNode;
181
+ }
182
+ type flexAlign = 'flex-start' | 'center' | 'flex-end' | 'stretch' | string;
183
+ type flexJustify = 'flex-start' | 'center' | 'flex-end' | 'space-between' | string;
184
+ interface IFlex extends IFlexBase {
185
+ direction?: 'row' | 'column';
186
+ align?: flexAlign;
187
+ justify?: flexJustify;
188
+ wrap?: 'wrap' | 'nowrap';
189
+ }
190
+
191
+ declare const Flex: ({ direction, align, justify, wrap, children, className, ...props }: IFlex) => React__default.JSX.Element;
192
+
193
+ type IIcon = {
194
+ icon?: string;
195
+ className?: string;
196
+ style?: CSSProperties;
197
+ onClick?: () => void;
198
+ };
199
+
200
+ declare const Icon: ({ icon, className, onClick, ...props }: IIcon) => React__default.JSX.Element;
201
+
202
+ interface IChip {
203
+ variant?: string;
204
+ $variant?: string;
205
+ hover?: boolean;
206
+ className?: string;
207
+ style?: CSSProperties;
208
+ children?: React.ReactNode;
209
+ }
210
+
211
+ declare const Chip: ({ variant, hover, className, style, children, ...props }: IChip) => React__default.JSX.Element;
212
+
213
+ type IQuote = {
214
+ id?: string;
215
+ value?: string;
216
+ citation?: string;
217
+ className?: string;
218
+ style?: CSSProperties;
219
+ children?: React.ReactNode;
220
+ };
221
+
222
+ declare const Quote: ({ id, value, citation, className, children, ...props }: IQuote) => React__default.JSX.Element;
223
+
224
+ type IVideo = {
225
+ src?: string;
226
+ poster?: string;
227
+ autoplay?: boolean;
228
+ controls?: boolean;
229
+ loop?: boolean;
230
+ muted?: boolean;
231
+ playsInline?: boolean;
232
+ className?: string;
233
+ style?: CSSProperties;
234
+ };
235
+
236
+ declare const Video: ({ src, poster, autoplay, controls, loop, muted, playsInline, className, style, ...props }: IVideo) => React__default.JSX.Element;
237
+
238
+ type IVideoEmbed = {
239
+ embed?: string;
240
+ poster?: string;
241
+ autoplay?: boolean;
242
+ controls?: boolean;
243
+ loop?: boolean;
244
+ muted?: boolean;
245
+ playsInline?: boolean;
246
+ className?: string;
247
+ style?: CSSProperties;
248
+ };
249
+
250
+ declare const VideoEmbed: ({ embed, poster, autoplay, controls, loop, muted, playsInline, className, style, ...props }: IVideoEmbed) => React__default.JSX.Element;
251
+
252
+ interface IRowBase {
253
+ className?: string;
254
+ style?: CSSProperties;
255
+ children?: React.ReactNode;
256
+ }
257
+ interface IRow extends IRowBase {
258
+ fluid?: boolean;
259
+ direction?: 'row' | 'column';
260
+ align?: flexAlign;
261
+ justify?: flexJustify;
262
+ wrap?: 'wrap' | 'nowrap';
263
+ mobileSpace?: boolean;
264
+ }
265
+ type IColumnsSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | number;
266
+ interface IColumnBase {
267
+ className?: string;
268
+ style?: CSSProperties;
269
+ children?: React.ReactNode;
270
+ }
271
+ interface IColumn extends IColumnBase {
272
+ align?: flexAlign;
273
+ lg?: IColumnsSize;
274
+ md?: IColumnsSize;
275
+ sm?: IColumnsSize;
276
+ xs?: IColumnsSize;
277
+ mobileOrder?: number;
278
+ }
279
+
280
+ declare const Row: ({ fluid, direction, align, justify, wrap, mobileSpace, className, style, children, ...props }: IRow) => React__default.JSX.Element;
281
+ declare const Column: ({ xs, sm, md, lg, align, mobileOrder, children, className, style, ...props }: IColumn) => React__default.JSX.Element;
282
+
283
+ interface IFormField {
284
+ id?: string;
285
+ label?: string;
286
+ leftIcon?: React.ReactNode | React.ReactNode[];
287
+ rightIcon?: React.ReactNode | React.ReactNode[];
288
+ isCheckRadio?: boolean;
289
+ children?: React.ReactNode;
290
+ className?: string;
291
+ }
292
+
293
+ declare const FormField: ({ id, label, leftIcon, rightIcon, isCheckRadio, className, children, ...props }: IFormField) => React__default.JSX.Element;
294
+
295
+ type ICheckRadioField = {
296
+ id?: string;
297
+ label?: string;
298
+ className?: string;
299
+ children?: React.ReactNode;
300
+ };
301
+
302
+ declare const CheckRadioField: ({ id, label, className, children, ...props }: ICheckRadioField) => React__default.JSX.Element;
303
+
304
+ interface ILoader {
305
+ variant?: string;
306
+ $variant?: string;
307
+ label?: string;
308
+ className?: string;
309
+ style?: CSSProperties;
310
+ children?: React.ReactNode;
311
+ }
312
+
313
+ declare const Loader: ({ variant, label, children, className, style, ...props }: ILoader) => React__default.JSX.Element;
314
+
315
+ interface IEmptyState {
316
+ variant?: string;
317
+ $variant?: string;
318
+ label?: string;
319
+ className?: string;
320
+ style?: CSSProperties;
321
+ children?: React.ReactNode;
322
+ }
323
+
324
+ declare const EmptyState: ({ variant, label, children, className, style, ...props }: IEmptyState) => React__default.JSX.Element;
325
+
326
+ type ICloseButton = {
327
+ variant?: string;
328
+ $variant?: string;
329
+ className?: string;
330
+ style?: CSSProperties;
331
+ onClick?: () => void;
332
+ };
333
+
334
+ declare const CloseButton: ({ variant, className, onClick, ...props }: ICloseButton) => React__default.JSX.Element;
335
+
336
+ interface IScrollingNav {
337
+ align?: string;
338
+ className?: string;
339
+ style?: CSSProperties;
340
+ children?: React.ReactNode;
341
+ }
342
+
343
+ declare const ScrollingNav: ({ align, children, className, ...props }: IScrollingNav) => React__default.JSX.Element;
344
+
345
+ type ISocialLinks = {
346
+ variant?: string;
347
+ socials?: Record<string, string>;
348
+ className?: string;
349
+ style?: CSSProperties;
350
+ };
351
+
352
+ declare const SocialLinks: ({ variant, socials, className, style, ...props }: ISocialLinks) => React__default.JSX.Element;
353
+
354
+ type IMarquee = {
355
+ text?: string;
356
+ className?: string;
357
+ style?: CSSProperties;
358
+ onClick?: () => void;
359
+ };
360
+
361
+ declare const Marquee: ({ text, className, onClick, ...props }: IMarquee) => React__default.JSX.Element;
362
+
363
+ type PortalComponentProps = {
364
+ wrapperId: string;
365
+ children?: React.ReactNode;
366
+ };
367
+ declare function PortalComponent({ wrapperId, children }: PortalComponentProps): React.ReactPortal | null;
368
+
369
+ interface IAccordion {
370
+ className?: string;
371
+ style?: CSSProperties;
372
+ children?: React.ReactNode;
373
+ }
374
+ interface IAccordionItem {
375
+ active?: boolean;
376
+ title?: string;
377
+ className?: string;
378
+ style?: CSSProperties;
379
+ children?: React.ReactNode;
380
+ }
381
+
382
+ declare const Accordion: ({ className, style, children }: IAccordion) => React__default.JSX.Element;
383
+ declare const AccordionItem: ({ title, className, style, children }: IAccordionItem) => React__default.JSX.Element;
384
+
385
+ type IModal = {
386
+ title?: string;
387
+ open?: boolean;
388
+ onClose?: () => void;
389
+ hideCloseIcon?: boolean;
390
+ className?: string;
391
+ style?: CSSProperties;
392
+ children?: React.ReactNode;
393
+ };
394
+
395
+ declare const Modal: ({ title, open, onClose, hideCloseIcon, children, ...props }: IModal) => React__default.JSX.Element | null;
396
+
397
+ interface IOffCanvas {
398
+ isOpen?: boolean;
399
+ $isOpen?: boolean;
400
+ actions?: React.ReactNode;
401
+ title?: React.ReactNode;
402
+ className?: string;
403
+ style?: CSSProperties;
404
+ children?: React.ReactNode;
405
+ onClose?: () => void;
406
+ }
407
+
408
+ declare const OffCanvas: ({ isOpen, title, actions, children, className, onClose }: IOffCanvas) => React__default.JSX.Element;
409
+
410
+ type IDropdown = {
411
+ ref?: React.RefObject<HTMLDivElement>;
412
+ title?: React.ReactElement;
413
+ icon?: React.ReactElement;
414
+ className?: string;
415
+ style?: CSSProperties;
416
+ children: React.ReactNode;
417
+ };
418
+ type IDropdownItem = {
419
+ icon?: React.ReactElement;
420
+ disabled?: boolean;
421
+ section?: boolean;
422
+ className?: string;
423
+ style?: CSSProperties;
424
+ children: React.ReactNode;
425
+ onClick?: () => void;
426
+ };
427
+
428
+ declare const Dropdown: ({ children, title, icon, className, style, ...props }: IDropdown) => React__default.JSX.Element;
429
+
430
+ declare const DropdownItem: ({ icon, disabled, section, className, style, children, onClick, ...props }: IDropdownItem) => React__default.JSX.Element;
431
+
432
+ type IShareModal = {
433
+ siteTitle?: string;
434
+ title?: string;
435
+ url?: string;
436
+ label?: string;
437
+ copyText?: string;
438
+ open?: boolean;
439
+ onClose?: () => void;
440
+ };
441
+
442
+ declare const ShareModal: ({ siteTitle, title, label, url, copyText, open, onClose, ...props }: IShareModal) => React__default.JSX.Element;
443
+
444
+ type IIconBox = {
445
+ label?: string;
446
+ icon?: React.ReactElement;
447
+ description?: string;
448
+ className?: string;
449
+ style?: CSSProperties;
450
+ children?: React.ReactNode;
451
+ };
452
+
453
+ declare const IconBox: ({ label, icon, description, className, ...props }: IIconBox) => React__default.JSX.Element;
454
+
455
+ type IIconTitle = {
456
+ label?: string;
457
+ icon?: React.ReactElement;
458
+ imageElement?: React.ReactElement;
459
+ className?: string;
460
+ style?: CSSProperties;
461
+ children?: React.ReactNode;
462
+ };
463
+
464
+ declare const IconTitle: ({ label, icon, imageElement, className, style, children, ...props }: IIconTitle) => React__default.JSX.Element;
465
+
466
+ type ICard = {
467
+ variant?: string;
468
+ imageElement?: React.ReactElement;
469
+ className?: string;
470
+ style?: CSSProperties;
471
+ children?: React.ReactNode;
472
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
473
+ };
474
+
475
+ interface IBlogCard extends ICard {
476
+ date?: string;
477
+ category?: string;
478
+ title?: string;
479
+ description?: string | React.ReactElement;
480
+ author?: string;
481
+ linkElement?: React.ReactElement;
482
+ }
483
+
484
+ declare const BlogCard: ({ variant, date, category, title, imageElement, linkElement, description, author, ...props }: IBlogCard) => React__default.JSX.Element;
485
+
486
+ interface ITeamCard extends ICard {
487
+ title?: string;
488
+ role?: string;
489
+ description?: string | React.ReactElement;
490
+ }
491
+
492
+ declare const TeamCard: ({ title, imageElement, role, description, ...props }: ITeamCard) => React__default.JSX.Element;
493
+
494
+ interface IProjectCard extends ICard {
495
+ category?: string;
496
+ title?: string;
497
+ buttonLabel?: string;
498
+ linkElement?: React.ReactElement;
499
+ }
500
+
501
+ declare const ProjectCard: ({ variant, category, title, imageElement, linkElement, buttonLabel, ...props }: IProjectCard) => React__default.JSX.Element;
502
+
503
+ interface ISlider {
504
+ $responsiveCSS?: string;
505
+ arrows?: boolean;
506
+ dots?: boolean;
507
+ slidesToShow?: number;
508
+ slidesToScroll?: number;
509
+ infinite?: boolean;
510
+ autoplay?: boolean;
511
+ spacing?: string;
512
+ mediaQueries?: object;
513
+ onSlide?: () => void;
514
+ className?: string;
515
+ style?: CSSProperties;
516
+ children: React.ReactNode;
517
+ }
518
+
519
+ declare const Slider: ({ arrows, dots, slidesToShow, slidesToScroll, infinite, autoplay, spacing, mediaQueries, className, style, children, onSlide, ...props }: ISlider) => React__default.JSX.Element;
520
+
521
+ type ICover = {
522
+ id?: string;
523
+ anchor?: string;
524
+ minHeight?: string;
525
+ contentPosition?: string;
526
+ imageElement?: React.ReactElement;
527
+ overlayOpacity?: number;
528
+ overlayColor?: string;
529
+ className?: string;
530
+ style?: CSSProperties;
531
+ children?: React.ReactNode;
532
+ };
533
+
534
+ declare const Cover: ({ minHeight, contentPosition, imageElement, overlayOpacity, overlayColor, style, className, children }: ICover) => React__default.JSX.Element;
535
+
536
+ type ICircularSlider = {
537
+ id?: string;
538
+ className?: string;
539
+ style?: CSSProperties;
540
+ content?: {
541
+ name?: string;
542
+ role?: string;
543
+ img?: React.ReactNode;
544
+ }[];
545
+ };
546
+
547
+ declare const CircularSlider: ({ content, style, className, }: ICircularSlider) => React__default.JSX.Element;
548
+
549
+ declare const iconsList: string[];
550
+
551
+ declare const GlobalStyles: React$1.NamedExoticComponent<styled_components.ExecutionProps & object>;
552
+
553
+ declare function clickOutSideToClose(ref: React.RefObject<HTMLDivElement>, closeFunction: () => void): void;
554
+
555
+ export { Accordion, AccordionItem, BlogCard, Button, CheckRadioField, Chip, CircularSlider, CloseButton, Column, Cover, Dropdown, DropdownItem, EmptyState, Flex, FormField, GlobalStyles, Heading, Icon, IconBox, IconTitle, ImageWrapper, Loader, Marquee, Modal, OffCanvas, PortalComponent, ProjectCard, Quote, RichText, Row, ScrollingNav, Separator, ShareModal, Slider, SocialLinks, Spacer, TeamCard, Video, VideoEmbed, clickOutSideToClose, iconsList, variables };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -78,7 +78,7 @@
78
78
  "prop-types": "^15.8.1",
79
79
  "react-player": "^2.14.0",
80
80
  "react-svg": "^16.1.17",
81
- "styled-components": "^6.0.2",
81
+ "styled-components": "^6.1.11",
82
82
  "uuid": "^9.0.0",
83
83
  "xss": "^1.0.14"
84
84
  },
package/rollup.config.js CHANGED
@@ -82,9 +82,9 @@ export default [
82
82
  ],
83
83
  external: ['react', 'react-dom', 'storybook', 'styled-components']
84
84
  },
85
- // {
86
- // input: './src/index.ts',
87
- // output: [{ file: './dist/types.d.ts', format: 'es' }],
88
- // plugins: [dts.default()]
89
- // }
85
+ {
86
+ input: './src/index.ts',
87
+ output: [{ file: './dist/types.d.ts', format: 'es' }],
88
+ plugins: [dts.default()]
89
+ }
90
90
  ]
@@ -5,6 +5,7 @@ import { IButtonSC } from './Button.interface';
5
5
  import { fontSize } from '@/styles/utilities';
6
6
 
7
7
  export const StyledButton = styled.a<IButtonSC>`
8
+ font-family: var(--font-nichrome) !important;
8
9
  display: inline-flex;
9
10
  vertical-align: middle;
10
11
  justify-content: center;
@@ -60,9 +61,10 @@ export const StyledButton = styled.a<IButtonSC>`
60
61
  case "secondary":
61
62
  return css`
62
63
  ${fontSize('h5')};
64
+ font-weight: 700;
65
+ text-transform:uppercase;
63
66
  padding: 18px 26px;
64
67
  border-radius: 50px;
65
- text-transform:uppercase;
66
68
 
67
69
  ${props.$mode === "light" ? `
68
70
  color: ${colors.primary50};
@@ -20,7 +20,7 @@ export const FormField = ({
20
20
  {label && (
21
21
  <label
22
22
  htmlFor={itemID}
23
- className="d-blocks captions text-uppercase mb-2"
23
+ className="d-blocks h4 color-secondary90 fw-bold text-uppercase mb-2"
24
24
  >
25
25
  {label}
26
26
  </label>
@@ -33,6 +33,7 @@ export const StyledFieldContainer = styled.div<IFormField>`
33
33
 
34
34
  label {
35
35
  display: block;
36
+ font-family: var(--font-nichrome) !important;
36
37
  }
37
38
 
38
39
  &:has(select) {
@@ -59,8 +60,9 @@ export const StyledFieldContainer = styled.div<IFormField>`
59
60
  input,
60
61
  textarea,
61
62
  select {
62
- font-family: inherit;
63
+ font-family: var(--font-nichrome) !important;
63
64
  ${fontSize('h4')};
65
+ font-weight: 700;
64
66
  text-transform:uppercase;
65
67
 
66
68
  border-radius: 50px;
@@ -78,6 +80,11 @@ export const StyledFieldContainer = styled.div<IFormField>`
78
80
  }
79
81
  }
80
82
 
83
+ textarea{
84
+ border-radius: 46px;
85
+ height: 11.5rem;
86
+ }
87
+
81
88
  select{
82
89
  option{
83
90
  color: ${colors.primary70};
@@ -1,3 +1,4 @@
1
+ import Button from '../Button/Button.component'
1
2
  import { ISocialLinks } from './SocialLinks.interface'
2
3
  import Icon from '../Icon/Icon.component'
3
4
  import React from 'react'
@@ -14,16 +15,22 @@ const SocialLinks = ({
14
15
 
15
16
  return (
16
17
  <StyledSocialLinks variant={variant} className={className} style={style}>
17
- {Object.keys(socials).map((social: string) => {
18
+ {Object.keys(socials).map((social: string, index:number) => {
19
+ if (!social) return <></>
20
+
18
21
  return (
19
- <li>
22
+ <li key={`social-${index}`}>
20
23
  <a
21
24
  href={socials[social]}
22
25
  target="_blank"
23
26
  aria-label={social}
24
27
  rel="noreferrer"
25
28
  >
26
- <Icon icon={`icon-${social}`}></Icon>
29
+ {variant === "text" ? (
30
+ <Button variant='link'>{social}</Button>
31
+ ): (
32
+ <Icon icon={`icon-${social}`}></Icon>
33
+ )}
27
34
  </a>
28
35
  </li>
29
36
  )
@@ -12,6 +12,20 @@ export default {
12
12
  argTypes: {}
13
13
  } as Meta
14
14
 
15
+
16
+ export const Example: StoryObj<ISocialLinks> = {
17
+ args: {
18
+ variant: 'text',
19
+ socials: {
20
+ facebook: 'https://www.facebook.com/wearemiew',
21
+ instagram: 'https://www.instagram.com/wearemiew/',
22
+ youtube: 'https://www.youtube.com/user/miewshapes',
23
+ linkedIn: 'https://www.linkedin.com/company/2470068/admin/'
24
+ }
25
+ }
26
+ }
27
+
28
+
15
29
  export const Light: StoryObj<ISocialLinks> = {
16
30
  render: args => <SocialLinks {...args} />,
17
31
  args: {