oddsgate-ds 1.0.16 → 1.0.17

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.
@@ -2,5 +2,6 @@ import type { StoryObj } from '@storybook/react';
2
2
  import { ISocialLinks } from './SocialLinks.interface';
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
4
4
  export default _default;
5
+ export declare const Example: StoryObj<ISocialLinks>;
5
6
  export declare const Light: StoryObj<ISocialLinks>;
6
7
  export declare const Dark: StoryObj<ISocialLinks>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -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 text-uppercase mb-2"
24
24
  >
25
25
  {label}
26
26
  </label>
@@ -61,6 +61,7 @@ export const StyledFieldContainer = styled.div<IFormField>`
61
61
  select {
62
62
  font-family: inherit;
63
63
  ${fontSize('h4')};
64
+ font-weight: 700;
64
65
  text-transform:uppercase;
65
66
 
66
67
  border-radius: 50px;
@@ -78,6 +79,11 @@ export const StyledFieldContainer = styled.div<IFormField>`
78
79
  }
79
80
  }
80
81
 
82
+ textarea{
83
+ border-radius: 46px;
84
+ height: 11.5rem;
85
+ }
86
+
81
87
  select{
82
88
  option{
83
89
  color: ${colors.primary70};
@@ -14,9 +14,11 @@ const SocialLinks = ({
14
14
 
15
15
  return (
16
16
  <StyledSocialLinks variant={variant} className={className} style={style}>
17
- {Object.keys(socials).map((social: string) => {
17
+ {Object.keys(socials).map((social: string, index:number) => {
18
+ if (!social) return <></>
19
+
18
20
  return (
19
- <li>
21
+ <li key={`social-${index}`}>
20
22
  <a
21
23
  href={socials[social]}
22
24
  target="_blank"
@@ -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: 'light',
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: {