oddsgate-ds 1.0.67 → 1.0.68
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 +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/molecules/CareersCard/CareersCard.component.d.ts +4 -0
- package/dist/cjs/types/components/molecules/CareersCard/CareersCard.interface.d.ts +7 -0
- package/dist/cjs/types/components/molecules/CareersCard/CareersCard.stories.d.ts +5 -0
- package/dist/cjs/types/components/molecules/CareersCard/CareersCard.theme.d.ts +3 -0
- package/dist/cjs/types/components/molecules/CareersCard/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/molecules/CareersCard/CareersCard.component.d.ts +4 -0
- package/dist/esm/types/components/molecules/CareersCard/CareersCard.interface.d.ts +7 -0
- package/dist/esm/types/components/molecules/CareersCard/CareersCard.stories.d.ts +5 -0
- package/dist/esm/types/components/molecules/CareersCard/CareersCard.theme.d.ts +3 -0
- package/dist/esm/types/components/molecules/CareersCard/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/types.d.ts +9 -1
- package/package.json +1 -1
- package/src/components/atoms/Button/Button.component.tsx +2 -0
- package/src/components/atoms/FlexGrid/FlexGrid.component.tsx +1 -0
- package/src/components/atoms/FlexGrid/FlexGrid.theme.ts +10 -7
- package/src/components/molecules/CareersCard/CareersCard.component.tsx +27 -0
- package/src/components/molecules/CareersCard/CareersCard.interface.ts +7 -0
- package/src/components/molecules/CareersCard/CareersCard.stories.tsx +30 -0
- package/src/components/molecules/CareersCard/CareersCard.theme.ts +13 -0
- package/src/components/molecules/CareersCard/index.ts +1 -0
- package/src/components/molecules/Modal/Modal.theme.ts +1 -1
- package/src/index.ts +1 -0
|
@@ -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';
|
package/dist/types.d.ts
CHANGED
|
@@ -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
|
@@ -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
|
-
|
|
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-
|
|
36
|
-
margin-
|
|
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: ${$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,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";
|
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'
|