oddsgate-ds 1.0.67 → 1.0.69

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 (31) hide show
  1. package/dist/cjs/index.js +3 -3
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/molecules/CareersCard/CareersCard.component.d.ts +4 -0
  4. package/dist/cjs/types/components/molecules/CareersCard/CareersCard.interface.d.ts +7 -0
  5. package/dist/cjs/types/components/molecules/CareersCard/CareersCard.stories.d.ts +5 -0
  6. package/dist/cjs/types/components/molecules/CareersCard/CareersCard.theme.d.ts +3 -0
  7. package/dist/cjs/types/components/molecules/CareersCard/index.d.ts +1 -0
  8. package/dist/cjs/types/index.d.ts +1 -0
  9. package/dist/cjs/types/styles/variables.d.ts +1 -1
  10. package/dist/esm/index.js +3 -3
  11. package/dist/esm/index.js.map +1 -1
  12. package/dist/esm/types/components/molecules/CareersCard/CareersCard.component.d.ts +4 -0
  13. package/dist/esm/types/components/molecules/CareersCard/CareersCard.interface.d.ts +7 -0
  14. package/dist/esm/types/components/molecules/CareersCard/CareersCard.stories.d.ts +5 -0
  15. package/dist/esm/types/components/molecules/CareersCard/CareersCard.theme.d.ts +3 -0
  16. package/dist/esm/types/components/molecules/CareersCard/index.d.ts +1 -0
  17. package/dist/esm/types/index.d.ts +1 -0
  18. package/dist/esm/types/styles/variables.d.ts +1 -1
  19. package/dist/types.d.ts +10 -2
  20. package/package.json +1 -1
  21. package/src/components/atoms/Button/Button.component.tsx +2 -0
  22. package/src/components/atoms/FlexGrid/FlexGrid.component.tsx +1 -0
  23. package/src/components/atoms/FlexGrid/FlexGrid.theme.ts +10 -7
  24. package/src/components/molecules/CareersCard/CareersCard.component.tsx +27 -0
  25. package/src/components/molecules/CareersCard/CareersCard.interface.ts +7 -0
  26. package/src/components/molecules/CareersCard/CareersCard.stories.tsx +30 -0
  27. package/src/components/molecules/CareersCard/CareersCard.theme.ts +13 -0
  28. package/src/components/molecules/CareersCard/index.ts +1 -0
  29. package/src/components/molecules/Modal/Modal.theme.ts +1 -1
  30. package/src/index.ts +1 -0
  31. package/src/styles/variables.ts +1 -1
@@ -0,0 +1,4 @@
1
+ import { ICareersCard } from './CareersCard.interface';
2
+ import React from 'react';
3
+ declare const CareersCard: ({ title, description, linkElement, className, style, ...props }: ICareersCard) => React.JSX.Element;
4
+ export default CareersCard;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ICard } from '../Card/Card.interface';
3
+ export interface ICareersCard extends ICard {
4
+ title?: string;
5
+ description?: string | React.ReactElement;
6
+ linkElement?: React.ReactElement;
7
+ }
@@ -0,0 +1,5 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { ICareersCard } from './CareersCard.interface';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
4
+ export default _default;
5
+ export declare const Simple: StoryObj<ICareersCard>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ICareersCard } from './CareersCard.interface';
3
+ export declare const StyledCareersCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ICareersCard>> & string;
@@ -0,0 +1 @@
1
+ export { default } from "./CareersCard.component";
@@ -39,6 +39,7 @@ export { default as ProductCard } from './components/molecules/ProductCard';
39
39
  export { default as LicenseCard } from './components/molecules/LicenseCard';
40
40
  export { default as NewsCard } from './components/molecules/NewsCard';
41
41
  export { default as EventsCard } from './components/molecules/EventsCard';
42
+ export { default as CareersCard } from './components/molecules/CareersCard';
42
43
  export { default as Slider } from './components/organisms/Slider';
43
44
  export { default as Cover } from './components/organisms/Cover';
44
45
  export { default as Tabs } from './components/organisms/Tabs';
@@ -5,7 +5,7 @@ export declare const gutter: string;
5
5
  export declare const desktop_width: number;
6
6
  export declare const tablet_width: number;
7
7
  export declare const mobile_width: number;
8
- export declare const responsiveMedia = "980px";
8
+ export declare const responsiveMedia = "768px";
9
9
  export declare const mobileMedia = "360px";
10
10
  export declare const easeOutExpo = "cubic-bezier(.32,.94,.6,1);";
11
11
  export type IBreakpoints = {
package/dist/types.d.ts CHANGED
@@ -10,7 +10,7 @@ declare const gutter: string;
10
10
  declare const desktop_width: number;
11
11
  declare const tablet_width: number;
12
12
  declare const mobile_width: number;
13
- declare const responsiveMedia = "980px";
13
+ declare const responsiveMedia = "768px";
14
14
  declare const mobileMedia = "360px";
15
15
  declare const easeOutExpo = "cubic-bezier(.32,.94,.6,1);";
16
16
  type IBreakpoints = {
@@ -554,6 +554,14 @@ interface IEventsCard extends ICard {
554
554
 
555
555
  declare const EventsCard: ({ variant, date, category, title, imageElement, linkElement, description, ...props }: IEventsCard) => React__default.JSX.Element;
556
556
 
557
+ interface ICareersCard extends ICard {
558
+ title?: string;
559
+ description?: string | React.ReactElement;
560
+ linkElement?: React.ReactElement;
561
+ }
562
+
563
+ declare const CareersCard: ({ title, description, linkElement, className, style, ...props }: ICareersCard) => React__default.JSX.Element;
564
+
557
565
  interface ISlider {
558
566
  $responsiveCSS?: string;
559
567
  arrows?: boolean;
@@ -628,4 +636,4 @@ declare function clickOutSideToClose(ref: React.RefObject<HTMLDivElement>, close
628
636
 
629
637
  declare const isTouchDevice: () => boolean;
630
638
 
631
- export { Accordion, AccordionItem, BlogCard, Button, CheckRadioField, Chip, CircularSlider, CloseButton, Column, Counter, Cover, Dropdown, DropdownItem, EmptyState, EventsCard, Flex, FormField, GlobalStyles, Heading, Icon, IconBox, IconTitle, ImageWrapper, LicenseCard, Loader, LogosCard, Marquee, Modal, NewsCard, OffCanvas, PortalComponent, ProductCard, Quote, RichText, Row, ScrollingNav, Separator, ShareModal, Slider, SocialLinks, Spacer, Tabs, TeamCard, Video, VideoEmbed, clickOutSideToClose, iconsList, isTouchDevice, variables };
639
+ export { Accordion, AccordionItem, BlogCard, Button, CareersCard, CheckRadioField, Chip, CircularSlider, CloseButton, Column, Counter, Cover, Dropdown, DropdownItem, EmptyState, EventsCard, Flex, FormField, GlobalStyles, Heading, Icon, IconBox, IconTitle, ImageWrapper, LicenseCard, Loader, LogosCard, Marquee, Modal, NewsCard, OffCanvas, PortalComponent, ProductCard, Quote, RichText, Row, ScrollingNav, Separator, ShareModal, Slider, SocialLinks, Spacer, Tabs, TeamCard, Video, VideoEmbed, clickOutSideToClose, iconsList, isTouchDevice, variables };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -41,7 +41,9 @@ const Button = ({
41
41
  >
42
42
  {variant === "primary" ? (
43
43
  <>
44
+ {leftIcon}
44
45
  {children && <span>{children}</span>}
46
+ {rightIcon}
45
47
  {!rightIcon && !leftIcon && (<Icon icon={"icon-arrow-right"} />)}
46
48
  </>
47
49
  ) : (
@@ -18,6 +18,7 @@ export const Row = ({
18
18
  return (
19
19
  <StyledContainer $fluid={fluid} className={className} style={style}>
20
20
  <StyledRow
21
+ $fluid={fluid}
21
22
  $direction={direction}
22
23
  $align={align}
23
24
  $justify={justify}
@@ -20,7 +20,7 @@ export const StyledContainer = styled.div<IRowSC>`
20
20
  ${props => !props.$fluid && Object.keys(CONTAINER_NAMES)
21
21
  .sort((k1, k2) => CONTAINER_NAMES.indexOf(k1) - CONTAINER_NAMES.indexOf(k2))
22
22
  .map(k => config(CONTAINER_NAMES).mediaContainer[CONTAINER_NAMES[k]]`
23
- max-width: ${grid_conf.container[CONTAINER_NAMES[k]]};
23
+ max-width: ${grid_conf.container[CONTAINER_NAMES[k]]};
24
24
  `)}
25
25
 
26
26
  `
@@ -32,8 +32,8 @@ export const StyledRow = styled.div<IRowSC>`
32
32
  justify-content: ${props => props.$justify ? props.$justify : "flex-start"};
33
33
  flex-wrap: ${props => props.$wrap ? props.$wrap : "wrap"};
34
34
 
35
- margin-right: -${gutter};
36
- margin-left: -${gutter};
35
+ margin-left: ${props => props.$fluid ? "0" : `-${gutter}`};
36
+ margin-right: ${props => props.$fluid ? "0" : `-${gutter}`};
37
37
 
38
38
  @media only screen and (max-width: ${responsiveMedia}) {
39
39
  ${({ $mobileSpace }) => $mobileSpace && `
@@ -47,6 +47,10 @@ export const StyledColumn = styled.div<IColumnSC>`
47
47
  padding-right: ${gutter};
48
48
  padding-left: ${gutter};
49
49
 
50
+ ${({ $align }) => $align && `
51
+ align-self: ${$align};
52
+ `}
53
+
50
54
  ${({ $xs }) => $xs && `
51
55
  flex-basis: ${100 / grid_conf.gridSize * $xs}%;
52
56
  max-width: ${100 / grid_conf.gridSize * $xs}%;
@@ -66,13 +70,12 @@ export const StyledColumn = styled.div<IColumnSC>`
66
70
  }
67
71
 
68
72
  @media only screen and (max-width: ${responsiveMedia}) {
69
- ${({ $mobileOrder }) => $mobileOrder && `
70
- order: ${$mobileOrder};
71
- `}
72
-
73
73
  &:empty{
74
74
  display:none
75
75
  }
76
+ ${({ $mobileOrder }) => $mobileOrder && `
77
+ order: ${$mobileOrder};
78
+ `}
76
79
  }
77
80
  `;
78
81
 
@@ -0,0 +1,27 @@
1
+ import Heading from '@/components/atoms/Heading'
2
+ import { ICareersCard } from './CareersCard.interface'
3
+ import React from 'react'
4
+ import { StyledCareersCard } from './CareersCard.theme'
5
+
6
+ const CareersCard = ({
7
+ title,
8
+ description,
9
+ linkElement,
10
+ className,
11
+ style,
12
+ ...props
13
+ }: ICareersCard) => {
14
+ return (
15
+ <StyledCareersCard className={className} style={style}>
16
+ <Heading tag={'h3'} size={'h4'} className={'text-uppercase fw-bold'}>
17
+ {title}
18
+ </Heading>
19
+ <Heading tag={'span'} size={'h5'} className={'mt-4 mb-4'}>
20
+ {description}
21
+ </Heading>
22
+ {linkElement}
23
+ </StyledCareersCard>
24
+ )
25
+ }
26
+
27
+ export default CareersCard
@@ -0,0 +1,7 @@
1
+ import { ICard } from '../Card/Card.interface';
2
+
3
+ export interface ICareersCard extends ICard {
4
+ title?: string
5
+ description?: string | React.ReactElement
6
+ linkElement?: React.ReactElement
7
+ }
@@ -0,0 +1,30 @@
1
+ import type { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import CareersCard from './CareersCard.component'
4
+ import { ICareersCard } from './CareersCard.interface'
5
+ import React from 'react'
6
+
7
+ // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
8
+ export default {
9
+ title: 'Components/CareersCard',
10
+ component: CareersCard,
11
+ tags: ['autodocs']
12
+ } as Meta
13
+
14
+ export const Simple: StoryObj<ICareersCard> = {
15
+ render: args => (
16
+ <>
17
+ <CareersCard
18
+ {...args}
19
+ title="Lorem"
20
+ style={{ maxWidth: '320px' }}
21
+ ></CareersCard>
22
+ <CareersCard {...args} style={{ maxWidth: '320px' }}></CareersCard>
23
+ </>
24
+ ),
25
+ args: {
26
+ title: 'Cras vel facilisis tellus',
27
+ description:
28
+ 'Cras vel facilisis tellus, id iaculis risus. Vestibulum non mollis ipsum. Vestibulum faucibus nisl sit amet magna interdum tristique. Cras vel facilisis tellus, id iaculis risus. Vestibulum non mollis ipsum. Vestibulum faucibus nisl sit amet magna interdum tristique.'
29
+ }
30
+ }
@@ -0,0 +1,13 @@
1
+ import { colors, radius } from '@/styles/variables';
2
+ import styled, { css } from 'styled-components';
3
+
4
+ import { ICareersCard } from './CareersCard.interface';
5
+
6
+ export const StyledCareersCard = styled.div <ICareersCard>`
7
+ color: ${colors.third10};
8
+ background-color: ${colors.secondary50};
9
+ padding: 2rem;
10
+ border-radius: ${radius.md};
11
+
12
+ `;
13
+
@@ -0,0 +1 @@
1
+ export { default } from "./CareersCard.component";
@@ -35,7 +35,7 @@ export const StyledWrapper = styled.div<IModal>`
35
35
  will-change: transform;
36
36
  overflow: hidden;
37
37
  overflow-y: auto;
38
- z-index: ${zIndexes['modal']};
38
+ z-index: 101;
39
39
 
40
40
  &:focus {
41
41
  outline: none
package/src/index.ts CHANGED
@@ -45,6 +45,7 @@ export { default as ProductCard } from './components/molecules/ProductCard'
45
45
  export { default as LicenseCard } from './components/molecules/LicenseCard'
46
46
  export { default as NewsCard } from './components/molecules/NewsCard'
47
47
  export { default as EventsCard } from './components/molecules/EventsCard'
48
+ export { default as CareersCard } from './components/molecules/CareersCard'
48
49
  // //organisms
49
50
  export { default as Slider } from './components/organisms/Slider'
50
51
  export { default as Cover } from './components/organisms/Cover'
@@ -10,7 +10,7 @@ export const gutter = pxToRem(8); //needs to be in this file
10
10
  export const desktop_width:number = 1620; //container size of design on desktop
11
11
  export const tablet_width:number = 768; //container size of design on tablet
12
12
  export const mobile_width:number = 375; //container size of design on mobile
13
- export const responsiveMedia = "980px"; //mobile media value for bootstrap
13
+ export const responsiveMedia = "768px"; //mobile media value for bootstrap
14
14
  export const mobileMedia = "360px"; //mobile media value
15
15
 
16
16
  export const easeOutExpo = "cubic-bezier(.32,.94,.6,1);";