oddsgate-ds 1.0.177 → 1.0.179
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 +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/AwardBadge/AwardBadge.interface.d.ts +1 -1
- package/dist/cjs/types/components/molecules/AwardCard/AwardCard.component.d.ts +1 -1
- package/dist/cjs/types/components/molecules/AwardCard/AwardCard.interface.d.ts +1 -4
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/AwardBadge/AwardBadge.interface.d.ts +1 -1
- package/dist/esm/types/components/molecules/AwardCard/AwardCard.component.d.ts +1 -1
- package/dist/esm/types/components/molecules/AwardCard/AwardCard.interface.d.ts +1 -4
- package/dist/types.d.ts +3 -6
- package/package.json +1 -1
- package/src/components/atoms/AwardBadge/AwardBadge.interface.ts +1 -1
- package/src/components/atoms/AwardBadge/AwardBadge.stories.tsx +12 -0
- package/src/components/atoms/AwardBadge/AwardBadge.theme.ts +5 -0
- package/src/components/atoms/Button/Button.stories.tsx +1 -1
- package/src/components/atoms/Button/Button.theme.ts +10 -5
- package/src/components/molecules/AwardCard/AwardCard.component.tsx +3 -3
- package/src/components/molecules/AwardCard/AwardCard.interface.ts +1 -4
- package/src/components/molecules/AwardCard/AwardCard.stories.tsx +1 -4
|
@@ -11,5 +11,5 @@ import React from 'react';
|
|
|
11
11
|
* @param {{ variant: string; label: string }} [props.chip] - Optional chip object to display a badge, with variant and label.
|
|
12
12
|
* @returns {JSX.Element} The rendered AwardCard component.
|
|
13
13
|
*/
|
|
14
|
-
declare const AwardCard: ({ title, imageElement, className, style,
|
|
14
|
+
declare const AwardCard: ({ title, imageElement, className, style, chipLabel, ...props }: IAwardCard) => React.JSX.Element;
|
|
15
15
|
export default AwardCard;
|
package/dist/types.d.ts
CHANGED
|
@@ -419,7 +419,7 @@ declare const CardMarquee: ({ direction, speed, repeatContent, gap, children, }:
|
|
|
419
419
|
|
|
420
420
|
interface IAwardBadge {
|
|
421
421
|
label?: string;
|
|
422
|
-
variant?: 'primary' | 'secondary';
|
|
422
|
+
variant?: 'primary' | 'secondary' | 'unstyled';
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
/**
|
|
@@ -618,10 +618,7 @@ declare const CareersCard: ({ title, description, linkElement, className, style,
|
|
|
618
618
|
interface IAwardCard extends ICard {
|
|
619
619
|
title?: string;
|
|
620
620
|
imageElement?: React.ReactElement;
|
|
621
|
-
|
|
622
|
-
label: string;
|
|
623
|
-
variant: 'primary' | 'secondary';
|
|
624
|
-
};
|
|
621
|
+
chipLabel?: string;
|
|
625
622
|
}
|
|
626
623
|
|
|
627
624
|
/**
|
|
@@ -635,7 +632,7 @@ interface IAwardCard extends ICard {
|
|
|
635
632
|
* @param {{ variant: string; label: string }} [props.chip] - Optional chip object to display a badge, with variant and label.
|
|
636
633
|
* @returns {JSX.Element} The rendered AwardCard component.
|
|
637
634
|
*/
|
|
638
|
-
declare const AwardCard: ({ title, imageElement, className, style,
|
|
635
|
+
declare const AwardCard: ({ title, imageElement, className, style, chipLabel, ...props }: IAwardCard) => React__default.JSX.Element;
|
|
639
636
|
|
|
640
637
|
type SliderVariant = 'default' | 'awards';
|
|
641
638
|
interface ISlider {
|
package/package.json
CHANGED
|
@@ -46,3 +46,15 @@ export const Secondary: StoryObj<IAwardBadge> = {
|
|
|
46
46
|
variant: 'secondary'
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
export const Unstyled: StoryObj<IAwardBadge> = {
|
|
51
|
+
render: args => (
|
|
52
|
+
<div className="p-6">
|
|
53
|
+
<AwardBadge {...args} />
|
|
54
|
+
</div>
|
|
55
|
+
),
|
|
56
|
+
args: {
|
|
57
|
+
label: 'Award Badge',
|
|
58
|
+
variant: 'unstyled'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -23,6 +23,11 @@ export const StyledAwardBadge = styled.div<IAwardBadge>`
|
|
|
23
23
|
color: ${colors.third50};
|
|
24
24
|
background-color: ${colors.primary50};
|
|
25
25
|
`
|
|
26
|
+
case 'unstyled':
|
|
27
|
+
return css`
|
|
28
|
+
color: ${colors.secondary50};
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
`
|
|
26
31
|
}
|
|
27
32
|
}};
|
|
28
33
|
`
|
|
@@ -52,14 +52,19 @@ export const StyledButton = styled.a<IButtonSC>`
|
|
|
52
52
|
border-radius: 100px;
|
|
53
53
|
text-transform: uppercase;
|
|
54
54
|
|
|
55
|
-
${props.$mode === '
|
|
55
|
+
${props.$mode === 'darkNewsletter'
|
|
56
56
|
? css`
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
color: ${colors.secondary50};
|
|
58
|
+
background-color: ${colors.third50};
|
|
59
|
+
`
|
|
60
|
+
: props.$mode === 'light'
|
|
61
|
+
? css`
|
|
62
|
+
color: ${colors.primary50};
|
|
63
|
+
background-color: ${colors.secondary50};
|
|
59
64
|
`
|
|
60
65
|
: css`
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
color: ${colors.secondary50};
|
|
67
|
+
background-color: ${colors.primary50};
|
|
63
68
|
`}
|
|
64
69
|
|
|
65
70
|
& span {
|
|
@@ -26,7 +26,7 @@ const AwardCard = ({
|
|
|
26
26
|
imageElement,
|
|
27
27
|
className,
|
|
28
28
|
style,
|
|
29
|
-
|
|
29
|
+
chipLabel,
|
|
30
30
|
...props
|
|
31
31
|
}: IAwardCard) => {
|
|
32
32
|
return (
|
|
@@ -37,9 +37,9 @@ const AwardCard = ({
|
|
|
37
37
|
</Heading>
|
|
38
38
|
<StyledAwardCardImageAndBadgeWrapper>
|
|
39
39
|
{imageElement}
|
|
40
|
-
{
|
|
40
|
+
{chipLabel && (
|
|
41
41
|
<StyledAwardCardAwardBadgeWrapper>
|
|
42
|
-
<AwardBadge variant=
|
|
42
|
+
<AwardBadge variant="unstyled" label={chipLabel} />
|
|
43
43
|
</StyledAwardCardAwardBadgeWrapper>
|
|
44
44
|
)}
|
|
45
45
|
</StyledAwardCardImageAndBadgeWrapper>
|