@basis-ng/styles 0.0.1-alpha.112 → 0.0.1-alpha.114

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-ng/styles",
3
- "version": "0.0.1-alpha.112",
3
+ "version": "0.0.1-alpha.114",
4
4
  "description": "CSS foundation for @basis-ng/primitives components",
5
5
  "main": "src/index.css",
6
6
  "exports": {
@@ -20,17 +20,10 @@ b-menu {
20
20
  button[b-menu-item-radio],
21
21
  button[b-menu-item-checkbox] {
22
22
  @apply !py-1 !px-2 rounded-size-xs;
23
+
23
24
  &.squared {
24
25
  aspect-ratio: 1 / 1;
25
- width: 2rem;
26
- min-width: 2rem;
27
- height: 2rem;
28
- min-height: 2rem;
29
- padding: 0;
30
- display: flex;
31
- align-items: center;
32
- justify-content: center;
33
- text-align: center;
26
+ @apply w-8 min-w-8 h-8 min-h-8 !p-0 flex items-center justify-center text-center;
34
27
  }
35
28
  }
36
29
  }
@@ -54,17 +47,10 @@ b-menu {
54
47
  button[b-menu-item-radio],
55
48
  button[b-menu-item-checkbox] {
56
49
  @apply !py-1.5 !px-3 rounded-size-sm;
50
+
57
51
  &.squared {
58
52
  aspect-ratio: 1 / 1;
59
- width: 2.5rem;
60
- min-width: 2.5rem;
61
- height: 2.5rem;
62
- min-height: 2.5rem;
63
- padding: 0;
64
- display: flex;
65
- align-items: center;
66
- justify-content: center;
67
- text-align: center;
53
+ @apply w-10 min-w-10 h-10 min-h-10 !p-0 flex items-center justify-center text-center;
68
54
  }
69
55
  }
70
56
  }
@@ -91,15 +77,7 @@ b-menu {
91
77
 
92
78
  &.squared {
93
79
  aspect-ratio: 1 / 1;
94
- width: 3rem;
95
- min-width: 3rem;
96
- height: 3rem;
97
- min-height: 3rem;
98
- padding: 0;
99
- display: flex;
100
- align-items: center;
101
- justify-content: center;
102
- text-align: center;
80
+ @apply w-12 min-w-12 h-12 min-h-12 !p-0 flex items-center justify-center text-center;
103
81
  }
104
82
  }
105
83
  }
@@ -0,0 +1,33 @@
1
+ b-popover-content {
2
+ padding: 0.5rem;
3
+
4
+ &.b-popover-entering {
5
+ animation: b-popover-entering 0.1s ease-out forwards;
6
+ }
7
+
8
+ &.b-popover-leaving {
9
+ animation: b-popover-leaving 0.1s ease-in forwards;
10
+ }
11
+
12
+ @keyframes b-popover-entering {
13
+ from {
14
+ opacity: 0;
15
+ transform: scale(0.98);
16
+ }
17
+ to {
18
+ opacity: 1;
19
+ transform: scale(1);
20
+ }
21
+ }
22
+
23
+ @keyframes b-popover-leaving {
24
+ from {
25
+ opacity: 1;
26
+ transform: scale(1);
27
+ }
28
+ to {
29
+ opacity: 0;
30
+ transform: scale(0.98);
31
+ }
32
+ }
33
+ }
package/src/index.css CHANGED
@@ -85,3 +85,4 @@
85
85
  @import './components/dialog.css';
86
86
  @import './components/card.css';
87
87
  @import './components/otp.css';
88
+ @import './components/popover.css';