@contentmunch/contentmunch-ui 1.1.11 → 1.1.13

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,8 +1,9 @@
1
1
  import * as React from "react";
2
2
  import "./assets/flippable-card.css";
3
- export declare const FlippableCard: ({ flipped, setFlipped, front, back }: {
3
+ export declare const FlippableCard: React.FC<FlippableCardProps>;
4
+ export interface FlippableCardProps {
4
5
  flipped: boolean;
5
6
  setFlipped: (flag: boolean) => void;
6
7
  front: React.ReactNode;
7
8
  back: React.ReactNode;
8
- }) => import("react/jsx-runtime").JSX.Element;
9
+ }
@@ -2,7 +2,7 @@
2
2
  --card-max-width: 25rem;
3
3
  }
4
4
 
5
- .card {
5
+ .muncher-card {
6
6
  width: 100%;
7
7
  max-width: var(--card-max-width);
8
8
  perspective: 62.5rem;
@@ -11,7 +11,7 @@
11
11
  position: relative;
12
12
  margin: auto;
13
13
 
14
- .face {
14
+ .muncher-card--face {
15
15
  background: var(--primary-background-color);
16
16
  color: var(--primary-color);
17
17
  border: .2rem solid var(--primary-background-color);
@@ -32,7 +32,7 @@
32
32
  }
33
33
  }
34
34
 
35
- .card-content-scrollable {
35
+ .muncher-card-content-scrollable {
36
36
  overflow-y: auto;
37
37
  max-height: 100%;
38
38
  width: 100%;
@@ -1,53 +1,56 @@
1
1
  :root {
2
- --flash-card-max-width: 25rem;
2
+ --flippable-card-max-width: 25rem;
3
3
  }
4
4
 
5
- .flippable-card {
5
+ .muncher-flippable-card {
6
6
  width: 100%;
7
- max-width: var(--flash-card-max-width);
7
+ max-width: var(--flippable-card-max-width);
8
8
  perspective: 62.5rem;
9
9
  height: 15rem;
10
10
  cursor: pointer;
11
11
  user-select: none;
12
12
  position: relative;
13
13
  margin: auto;
14
- }
15
14
 
16
- .card-face {
17
- background: var(--primary-background-color);
18
- color: var(--primary-color);
19
- border: .2rem solid var(--primary-background-color);
20
- border-radius: 1rem;
21
- box-shadow: 0 .5rem 12px rgba(0, 0, 0, 0.08);
22
- font-size: 1.25rem;
23
- backface-visibility: hidden;
24
- position: absolute;
25
- transition: transform 0.5s ease;
26
- display: flex;
27
- align-items: center;
28
- justify-content: center;
29
- width: 90%;
30
- height: 100%;
31
- margin: 2rem 1rem;
32
- @media (min-width: 62rem) {
33
- margin: 2rem;
15
+ .muncher-flippable-card-face {
16
+ background: var(--primary-background-color);
17
+ color: var(--primary-color);
18
+ border: .2rem solid var(--primary-background-color);
19
+ border-radius: 1rem;
20
+ box-shadow: 0 .5rem 12px rgba(0, 0, 0, 0.08);
21
+ font-size: 1.25rem;
22
+ backface-visibility: hidden;
23
+ position: absolute;
24
+ transition: transform 0.5s ease;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ width: 90%;
29
+ height: 100%;
30
+ margin: 2rem 1rem;
31
+ @media (min-width: 62rem) {
32
+ margin: 2rem;
33
+ }
34
+ }
35
+
36
+ .muncher-flippable-card-content-scrollable {
37
+ overflow-y: auto;
38
+ max-height: 100%;
39
+ width: 100%;
34
40
  }
41
+
35
42
  }
36
43
 
37
- .flippable-card .back {
44
+
45
+ .muncher-flippable-card .back {
38
46
  transform: rotateY(180deg);
39
47
  }
40
48
 
41
- .flippable-card.flipped .front {
49
+ .muncher-flippable-card.flipped .front {
42
50
  transform: rotateY(180deg);
43
51
  }
44
52
 
45
- .flippable-card.flipped .back {
53
+ .muncher-flippable-card.flipped .back {
46
54
  transform: rotateY(360deg);
47
55
  }
48
56
 
49
- .card-content-scrollable {
50
- overflow-y: auto;
51
- max-height: 100%;
52
- width: 100%;
53
- }