@basis-ng/styles 0.0.1-alpha.191 → 0.0.1-alpha.193

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.191",
3
+ "version": "0.0.1-alpha.193",
4
4
  "description": "CSS foundation for @basis-ng/primitives components",
5
5
  "main": "src/index.css",
6
6
  "exports": {
@@ -23,7 +23,6 @@
23
23
  "./search": "./src/components/search.component.css",
24
24
  "./select": "./src/components/select.css",
25
25
  "./select-option": "./src/components/select-option.css",
26
- "./sheet": "./src/components/sheet.css",
27
26
  "./spinner": "./src/components/spinner.css",
28
27
  "./switch": "./src/components/switch.css",
29
28
  "./tabs": "./src/components/tabs.css",
@@ -1,34 +1,117 @@
1
1
  b-drawer {
2
- @apply fixed bottom-0 left-0 right-0 mx-auto bg-background dark:bg-background-dark rounded-t-lg border border-secondary dark:border-secondary-dark border-b-0 flex flex-col z-[999] will-change-transform shadow-2xl touch-none select-none pt-10 box-border overflow-hidden h-1/2;
3
- transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
4
- transform: translateY(100%);
2
+ @apply fixed z-999 flex box-border overflow-hidden rounded-2xl bg-background text-font shadow-lg inset-ring-1 inset-ring-ring will-change-transform opacity-0 pointer-events-none dark:bg-background-dark dark:text-font-dark dark:inset-ring-ring-dark;
3
+ transition:
4
+ transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
5
+ opacity 0.2s ease;
6
+
7
+ &.open,
8
+ &.dragging {
9
+ @apply opacity-100 pointer-events-auto;
10
+ }
11
+
12
+ &.bottom,
13
+ &.top {
14
+ @apply left-2 right-2 mx-auto max-h-[calc(100dvh-1rem)] min-h-0 h-1/2;
15
+ }
16
+
17
+ &.bottom {
18
+ @apply bottom-2;
19
+ transform: translateY(100%);
20
+ }
21
+
22
+ &.top {
23
+ @apply top-2;
24
+ transform: translateY(-100%);
25
+ }
26
+
27
+ &.left,
28
+ &.right {
29
+ @apply top-2 bottom-2 max-w-[calc(100vw-1rem)] w-[320px];
30
+ }
31
+
32
+ &.left {
33
+ @apply left-2;
34
+ transform: translateX(-100%);
35
+ }
36
+
37
+ &.right {
38
+ @apply right-2;
39
+ transform: translateX(100%);
40
+ }
5
41
 
6
42
  &.dragging {
7
43
  transition: none;
8
44
  }
9
45
 
10
46
  .drag-section {
11
- @apply w-full h-10 flex items-center justify-center cursor-grab touch-none absolute top-0;
47
+ @apply absolute z-10 flex items-center justify-center touch-none;
12
48
 
13
49
  .drag-indicator {
14
- @apply w-1/5 h-1 bg-secondary dark:bg-secondary-dark rounded;
50
+ @apply rounded-full bg-ring dark:bg-ring-dark;
15
51
  }
16
52
  }
17
53
 
18
54
  .drawer-content {
19
- @apply flex-1 overflow-auto;
55
+ @apply flex-1 overflow-auto min-h-0;
20
56
  }
21
- }
22
57
 
23
- html:has(b-drawer.open) {
24
- overflow: hidden;
25
- }
58
+ &.bottom {
59
+ .drag-section {
60
+ @apply top-0 left-0 right-0 h-10 cursor-ns-resize;
61
+ }
26
62
 
27
- @keyframes fadeIn {
28
- from {
29
- opacity: 0;
63
+ .drag-indicator {
64
+ @apply h-1 w-1/5;
65
+ }
66
+
67
+ .drawer-content {
68
+ @apply pt-10;
69
+ }
30
70
  }
31
- to {
32
- opacity: 1;
71
+
72
+ &.top {
73
+ .drag-section {
74
+ @apply bottom-0 left-0 right-0 h-10 cursor-ns-resize;
75
+ }
76
+
77
+ .drag-indicator {
78
+ @apply h-1 w-1/5;
79
+ }
80
+
81
+ .drawer-content {
82
+ @apply pb-10;
83
+ }
84
+ }
85
+
86
+ &.left {
87
+ .drag-section {
88
+ @apply top-0 right-0 bottom-0 w-5 cursor-ew-resize;
89
+ }
90
+
91
+ .drag-indicator {
92
+ @apply h-1/5 w-1;
93
+ }
94
+
95
+ .drawer-content {
96
+ @apply pr-5;
97
+ }
33
98
  }
99
+
100
+ &.right {
101
+ .drag-section {
102
+ @apply top-0 bottom-0 left-0 w-5 cursor-ew-resize;
103
+ }
104
+
105
+ .drag-indicator {
106
+ @apply h-1/5 w-1;
107
+ }
108
+
109
+ .drawer-content {
110
+ @apply pl-5;
111
+ }
112
+ }
113
+ }
114
+
115
+ html:has(b-drawer.open) {
116
+ overflow: hidden;
34
117
  }
@@ -20,7 +20,7 @@ b-tabs {
20
20
  /* Hover state (not selected) */
21
21
  &:hover:not([aria-selected='true']) {
22
22
  @apply bg-secondary/50 text-neutral-700 border-ring/80;
23
- @apply dark:bg-white/[0.03] dark:text-neutral-200 dark:border-white/10;
23
+ @apply dark:bg-white/3 dark:text-neutral-200 dark:border-white/10;
24
24
  }
25
25
 
26
26
  /* Selected state */
package/src/index.css CHANGED
@@ -65,7 +65,6 @@
65
65
  @import './components/command.css';
66
66
  @import './components/command-options.css';
67
67
  @import './components/option.css';
68
- @import './components/sheet.css';
69
68
  @import './components/spinner.css';
70
69
  @import './components/switch.css';
71
70
  @import './components/tabs.css';
@@ -1,34 +0,0 @@
1
- b-sheet {
2
- @apply fixed top-0 h-screen z-50 shadow-md opacity-0 w-[300px] p-5 pt-10 bg-background dark:bg-background-dark box-border;
3
- transition:
4
- transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
5
- opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1);
6
-
7
- &.right {
8
- @apply right-0 border-l border-secondary dark:border-secondary-dark;
9
- transform: translateX(100%);
10
-
11
- &.open {
12
- @apply opacity-100;
13
- transform: translateX(0);
14
- }
15
- }
16
-
17
- &.left {
18
- @apply left-0 border-r border-secondary dark:border-secondary-dark;
19
- transform: translateX(-100%);
20
-
21
- &.open {
22
- @apply opacity-100;
23
- transform: translateX(0);
24
- }
25
- }
26
-
27
- .close-button {
28
- @apply absolute top-0 right-0 w-10 h-10 cursor-pointer flex items-center justify-center;
29
- }
30
- }
31
-
32
- html:has(b-sheet.open) {
33
- overflow: hidden;
34
- }