@basis-ng/styles 0.0.1-alpha.151 → 0.0.1-alpha.153

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.151",
3
+ "version": "0.0.1-alpha.153",
4
4
  "description": "CSS foundation for @basis-ng/primitives components",
5
5
  "main": "src/index.css",
6
6
  "exports": {
@@ -30,7 +30,8 @@
30
30
  "./textarea": "./src/components/textarea.css",
31
31
  "./tooltip": "./src/components/tooltip.css",
32
32
  "./tree": "./src/components/tree.css",
33
- "./dialog": "./src/components/dialog.css"
33
+ "./dialog": "./src/components/dialog.css",
34
+ "./calendar": "./src/components/calendar.css"
34
35
  },
35
36
  "files": [
36
37
  "src/**/*.css"
@@ -0,0 +1,56 @@
1
+ /* Calendar component styles - simple, utility-first classes matching project conventions */
2
+ b-calendar {
3
+ @apply w-full max-w-60 flex flex-col gap-1;
4
+
5
+ header.b-calendar-header {
6
+ @apply flex gap-0.5 w-full justify-between;
7
+
8
+ .b-calendar-header {
9
+ @apply flex items-center justify-between mb-2;
10
+ }
11
+
12
+ .b-calendar-title {
13
+ @apply font-medium text-sm;
14
+ @apply px-3 py-1 rounded-size-sm text-sm font-medium cursor-pointer bg-transparent hover:bg-primary/5 dark:hover:bg-primary-dark/5;
15
+ }
16
+
17
+ .b-calendar-nav {
18
+ @apply inline-flex items-center justify-center w-8 h-8 rounded-size-sm cursor-pointer bg-transparent hover:bg-primary/5 dark:hover:bg-primary-dark/5;
19
+ }
20
+
21
+ .b-calendar-title:focus {
22
+ @apply outline-none ring-2 ring-primary/10;
23
+ }
24
+ }
25
+
26
+ table.b-calendar-table {
27
+ @apply w-full table table-fixed border-collapse;
28
+
29
+ .b-calendar-weekday {
30
+ @apply text-xs text-center mb-1;
31
+ }
32
+
33
+ .b-calendar-cell {
34
+ @apply text-center rounded-size-sm w-full h-8 place-content-center;
35
+
36
+ &.b-active {
37
+ @apply bg-primary text-primary-foreground;
38
+ @apply dark:bg-primary-dark dark:text-primary-foreground-dark;
39
+
40
+ &[data-outside] {
41
+ @apply text-primary-foreground;
42
+ @apply dark:text-primary-foreground-dark;
43
+ }
44
+ }
45
+
46
+ &[data-outside] {
47
+ @apply opacity-50;
48
+ }
49
+
50
+ &:not(.b-active):hover,
51
+ &:not(.b-active):focus {
52
+ @apply bg-primary/5 dark:bg-primary-dark/5 cursor-pointer;
53
+ }
54
+ }
55
+ }
56
+ }
package/src/index.css CHANGED
@@ -76,4 +76,5 @@
76
76
  @import './components/tree.css';
77
77
  @import './components/dialog.css';
78
78
  @import './components/card.css';
79
+ @import './components/calendar.css';
79
80
  @import './components/otp.css';