oddsgate-ds 1.0.24 → 1.0.26

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 (44) hide show
  1. package/dist/cjs/index.js +5 -5
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/molecules/ProductCard/ProductCard.component.d.ts +4 -0
  4. package/dist/cjs/types/components/molecules/ProductCard/ProductCard.interface.d.ts +6 -0
  5. package/dist/{esm/types/components/molecules/ProjectCard/ProjectCard.stories.d.ts → cjs/types/components/molecules/ProductCard/ProductCard.stories.d.ts} +2 -2
  6. package/dist/cjs/types/components/molecules/ProductCard/ProductCard.theme.d.ts +4 -0
  7. package/dist/cjs/types/components/molecules/ProductCard/index.d.ts +1 -0
  8. package/dist/cjs/types/index.d.ts +1 -1
  9. package/dist/esm/index.js +5 -5
  10. package/dist/esm/index.js.map +1 -1
  11. package/dist/esm/types/components/molecules/ProductCard/ProductCard.component.d.ts +4 -0
  12. package/dist/esm/types/components/molecules/ProductCard/ProductCard.interface.d.ts +6 -0
  13. package/dist/{cjs/types/components/molecules/ProjectCard/ProjectCard.stories.d.ts → esm/types/components/molecules/ProductCard/ProductCard.stories.d.ts} +2 -2
  14. package/dist/esm/types/components/molecules/ProductCard/ProductCard.theme.d.ts +4 -0
  15. package/dist/esm/types/components/molecules/ProductCard/index.d.ts +1 -0
  16. package/dist/esm/types/index.d.ts +1 -1
  17. package/dist/types.d.ts +4 -6
  18. package/package.json +1 -1
  19. package/src/components/atoms/Button/Button.theme.ts +2 -2
  20. package/src/components/atoms/SocialLinks/SocialLinks.theme.ts +1 -1
  21. package/src/components/molecules/ProductCard/ProductCard.component.tsx +31 -0
  22. package/src/components/molecules/ProductCard/ProductCard.interface.ts +6 -0
  23. package/src/components/molecules/ProductCard/ProductCard.stories.tsx +33 -0
  24. package/src/components/molecules/ProductCard/ProductCard.theme.ts +27 -0
  25. package/src/components/molecules/ProductCard/index.ts +1 -0
  26. package/src/components/organisms/CircularSlider/CircularSlider.component.tsx +38 -19
  27. package/src/components/organisms/CircularSlider/CircularSlider.stories.tsx +7 -11
  28. package/src/components/organisms/CircularSlider/CircularSlider.theme.ts +20 -18
  29. package/src/components/organisms/Tabs/Tabs.theme.ts +2 -1
  30. package/src/index.ts +1 -1
  31. package/src/styles/utilities.ts +7 -0
  32. package/dist/cjs/types/components/molecules/ProjectCard/ProjectCard.component.d.ts +0 -4
  33. package/dist/cjs/types/components/molecules/ProjectCard/ProjectCard.interface.d.ts +0 -8
  34. package/dist/cjs/types/components/molecules/ProjectCard/ProjectCard.theme.d.ts +0 -3
  35. package/dist/cjs/types/components/molecules/ProjectCard/index.d.ts +0 -1
  36. package/dist/esm/types/components/molecules/ProjectCard/ProjectCard.component.d.ts +0 -4
  37. package/dist/esm/types/components/molecules/ProjectCard/ProjectCard.interface.d.ts +0 -8
  38. package/dist/esm/types/components/molecules/ProjectCard/ProjectCard.theme.d.ts +0 -3
  39. package/dist/esm/types/components/molecules/ProjectCard/index.d.ts +0 -1
  40. package/src/components/molecules/ProjectCard/ProjectCard.component.tsx +0 -45
  41. package/src/components/molecules/ProjectCard/ProjectCard.interface.ts +0 -8
  42. package/src/components/molecules/ProjectCard/ProjectCard.stories.tsx +0 -72
  43. package/src/components/molecules/ProjectCard/ProjectCard.theme.ts +0 -61
  44. package/src/components/molecules/ProjectCard/index.ts +0 -1
@@ -1,72 +0,0 @@
1
- import { Column, Row } from './../../atoms/FlexGrid'
2
- import type { Meta, StoryObj } from '@storybook/react'
3
-
4
- import { IProjectCard } from './ProjectCard.interface'
5
- import ProjectCard from './ProjectCard.component'
6
- import React from 'react'
7
-
8
- // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
9
- export default {
10
- title: 'Components/ProjectCard',
11
- component: ProjectCard,
12
- tags: ['autodocs']
13
- } as Meta
14
-
15
- const image = (
16
- <img
17
- width="100%"
18
- height="100%"
19
- sizes="100vw"
20
- decoding="async"
21
- src="/assets/placeholder.png"
22
- alt="Empty state"
23
- />
24
- )
25
-
26
- export const Simple: StoryObj<IProjectCard> = {
27
- render: args => (
28
- <Row>
29
- <Column md={4}>
30
- <ProjectCard {...args}></ProjectCard>
31
- </Column>
32
- <Column md={4}>
33
- <ProjectCard {...args}></ProjectCard>
34
- </Column>
35
- <Column md={4}>
36
- <ProjectCard {...args}></ProjectCard>
37
- </Column>
38
-
39
- <Column md={6}>
40
- <ProjectCard variant="featured" {...args}></ProjectCard>
41
- </Column>
42
- <Column md={6}>
43
- <ProjectCard variant="featured" {...args}></ProjectCard>
44
- </Column>
45
-
46
- <Column md={4}>
47
- <ProjectCard {...args}></ProjectCard>
48
- </Column>
49
- <Column md={4}>
50
- <ProjectCard {...args}></ProjectCard>
51
- </Column>
52
- <Column md={4}>
53
- <ProjectCard {...args}></ProjectCard>
54
- </Column>
55
-
56
- <Column md={8}>
57
- <ProjectCard variant="featured" {...args}></ProjectCard>
58
- </Column>
59
-
60
- <Column md={4}>
61
- <ProjectCard {...args}></ProjectCard>
62
- </Column>
63
- </Row>
64
- ),
65
- args: {
66
- category: 'Document type',
67
- title: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
68
- imageElement: image,
69
- buttonLabel: 'Download',
70
- linkElement: <a href="#" className="linker"></a>
71
- }
72
- }
@@ -1,61 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
-
3
- import Card from '../Card/Card.component';
4
- import { IProjectCard } from './ProjectCard.interface';
5
- import { colors } from '@/styles/variables';
6
-
7
- export const StyledProjectCard = styled(Card) <IProjectCard>`
8
- & picture{
9
- &:before{
10
- content: '';
11
- position: absolute;
12
- top: 0;
13
- left: 0;
14
- width: 100%;
15
- height: 100%;
16
- background: rgba(0,0,0,0.5);
17
- z-index: 1;
18
- }
19
- }
20
-
21
- & figcaption{
22
- position: absolute;
23
- top: 0;
24
- left: 0;
25
- width: 100%;
26
- height: 100%;
27
- display: flex;
28
- align-items: flex-end;
29
- padding: 1rem;
30
- color: ${colors.white};
31
- z-index: 2;
32
-
33
- & i{
34
- min-width: 3rem;
35
- height: 3rem;
36
- line-height: 3rem;
37
- font-size: 2.6rem;
38
-
39
- border-radius: 50px;
40
- color: ${colors.deepblue};
41
- background-color: ${colors.softgreen};
42
-
43
- transition: all 0.3s linear;
44
- transform: rotateZ(-45deg);
45
- transform-origin: center center;
46
- text-align: center;
47
-
48
- &::before{
49
- line-height: inherit;
50
- }
51
- }
52
- }
53
-
54
- &:hover{
55
- & figcaption{
56
- & i{
57
- transform: rotateZ(0);
58
- }
59
- }
60
- }
61
- `;
@@ -1 +0,0 @@
1
- export { default } from "./ProjectCard.component";