oddsgate-ds 1.0.176 → 1.0.178

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.
@@ -1,4 +1,4 @@
1
1
  export interface IAwardBadge {
2
2
  label?: string;
3
- variant?: 'primary' | 'secondary';
3
+ variant?: 'primary' | 'secondary' | 'unstyled';
4
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, chip, ...props }: IAwardCard) => React.JSX.Element;
14
+ declare const AwardCard: ({ title, imageElement, className, style, chipLabel, ...props }: IAwardCard) => React.JSX.Element;
15
15
  export default AwardCard;
@@ -3,8 +3,5 @@ import { ICard } from '../Card/Card.interface';
3
3
  export interface IAwardCard extends ICard {
4
4
  title?: string;
5
5
  imageElement?: React.ReactElement;
6
- chip?: {
7
- label: string;
8
- variant: 'primary' | 'secondary';
9
- };
6
+ chipLabel?: string;
10
7
  }
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
- chip?: {
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, chip, ...props }: IAwardCard) => React__default.JSX.Element;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.176",
3
+ "version": "1.0.178",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,4 +1,4 @@
1
1
  export interface IAwardBadge {
2
2
  label?: string
3
- variant?: 'primary' | 'secondary'
3
+ variant?: 'primary' | 'secondary' | 'unstyled'
4
4
  }
@@ -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
  `
@@ -26,7 +26,7 @@ const AwardCard = ({
26
26
  imageElement,
27
27
  className,
28
28
  style,
29
- chip,
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
- {chip && (
40
+ {chipLabel && (
41
41
  <StyledAwardCardAwardBadgeWrapper>
42
- <AwardBadge variant={chip?.variant} label={chip?.label} />
42
+ <AwardBadge variant="unstyled" label={chipLabel} />
43
43
  </StyledAwardCardAwardBadgeWrapper>
44
44
  )}
45
45
  </StyledAwardCardImageAndBadgeWrapper>
@@ -3,8 +3,5 @@ import { ICard } from '../Card/Card.interface'
3
3
  export interface IAwardCard extends ICard {
4
4
  title?: string
5
5
  imageElement?: React.ReactElement
6
- chip?: {
7
- label: string
8
- variant: 'primary' | 'secondary'
9
- }
6
+ chipLabel?: string
10
7
  }
@@ -26,9 +26,6 @@ export const Simple: StoryObj<IAwardCard> = {
26
26
  args: {
27
27
  title: 'Cras vel facilisis tellus',
28
28
  imageElement: image,
29
- chip: {
30
- label: 'New',
31
- variant: 'primary'
32
- }
29
+ chipLabel: 'New'
33
30
  }
34
31
  }
@@ -2,6 +2,9 @@ import { colors, gutter, radius, responsiveMedia, responsiveMediaMax, shadows, s
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
4
  import { ISlider } from './Slider.interface';
5
+ interface SliderStylesProps {
6
+ $variant?: string;
7
+ }
5
8
 
6
9
  const SliderStyles = ({ $variant }: { $variant?: string }) => `
7
10
  .blaze-slider {
@@ -46,6 +46,8 @@ export const colors = <Record<string, string>>{
46
46
  third10: '#440E3F',
47
47
  third50: '#33052F',
48
48
 
49
+ hellobar: '#610A5A',
50
+
49
51
  // Feedback
50
52
  warning: '#ea9a1a',
51
53
  success: '#00FFD2',