@jk-core/components 1.1.22 → 1.2.0

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": "@jk-core/components",
3
- "version": "1.1.22",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "types": "./dist/index.d.ts",
@@ -52,8 +52,8 @@
52
52
  "dependencies": {
53
53
  "@jk-core/hooks": "^1.0.0",
54
54
  "@jk-core/utils": "^1.0.0",
55
- "react": "^19.0.0",
56
- "react-dom": "^19.0.0"
55
+ "react": "*",
56
+ "react-dom": "*"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@eslint/js": "^9.30.1",
@@ -17,6 +17,11 @@
17
17
  font-size: 1em;
18
18
  }
19
19
 
20
+ &--tile {
21
+ border-radius: 10px;
22
+ gap: 5px;
23
+ }
24
+
20
25
  &--selected {
21
26
  width: 100%;
22
27
  height: 100%;
@@ -99,7 +104,7 @@
99
104
  }
100
105
 
101
106
  &--tile {
102
- border-radius: 10px;
107
+ border-radius: 3px;
103
108
  gap: 5px;
104
109
  }
105
110
 
@@ -93,6 +93,7 @@ export default function DayTile({
93
93
  <div className={cn({
94
94
  [styles['day-tile--content']]: true,
95
95
  [styles['day-tile--selected']]: !!selectedDate && (isSameDay(day.date, selectedDate[0] || null) || isSameDay(day.date, selectedDate[1] || null) || isSameDay(day.date, hoverDate || null)),
96
+ [styles['day-tile--tile']]: !!(tileContent && tileContent(day.date, 'day')),
96
97
  })}
97
98
  >
98
99
  {day.date.getDate()}