@optifye/dashboard-core 1.0.0 → 2.0.2

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.
Files changed (5) hide show
  1. package/README.md +592 -154
  2. package/dist/index.js +19753 -4399
  3. package/dist/index.mjs +19593 -4238
  4. package/global.css +133 -0
  5. package/package.json +8 -9
package/global.css CHANGED
@@ -60,4 +60,137 @@ input[type="range"]:active::-moz-range-thumb {
60
60
  body {
61
61
  @apply bg-background text-foreground;
62
62
  }
63
+ }
64
+
65
+ /* React Day Picker Styles - v9 */
66
+ /* These styles are included to avoid Next.js CSS import issues */
67
+ .rdp {
68
+ --rdp-background-color: #ffffff;
69
+ --rdp-accent-color: #4f46e5;
70
+ --rdp-accent-background-color: #e0e7ff;
71
+ --rdp-accent-background-color-dark: #4f46e5;
72
+ --rdp-accent-color-dark: #ffffff;
73
+ --rdp-disabled-color: #9ca3af;
74
+ --rdp-disabled-background-color: #f3f4f6;
75
+ --rdp-outline: 2px solid var(--rdp-accent-color);
76
+ --rdp-outline-selected: 2px solid var(--rdp-accent-color-dark);
77
+ }
78
+
79
+ .rdp-vhidden {
80
+ box-sizing: border-box;
81
+ padding: 0;
82
+ margin: 0;
83
+ background: transparent;
84
+ border: 0;
85
+ -moz-appearance: none;
86
+ -webkit-appearance: none;
87
+ appearance: none;
88
+ position: absolute !important;
89
+ top: 0 !important;
90
+ width: 1px !important;
91
+ height: 1px !important;
92
+ padding: 0 !important;
93
+ margin: -1px !important;
94
+ overflow: hidden !important;
95
+ clip: rect(1px, 1px, 1px, 1px) !important;
96
+ white-space: nowrap !important;
97
+ border: 0 !important;
98
+ }
99
+
100
+ .rdp-button_reset {
101
+ appearance: none;
102
+ position: relative;
103
+ margin: 0;
104
+ padding: 0;
105
+ cursor: default;
106
+ color: inherit;
107
+ background: none;
108
+ font: inherit;
109
+ border: 0;
110
+ outline: none;
111
+ }
112
+
113
+ .rdp-button {
114
+ -moz-appearance: none;
115
+ -webkit-appearance: none;
116
+ appearance: none;
117
+ position: relative;
118
+ margin: 0;
119
+ padding: 0;
120
+ cursor: pointer;
121
+ color: inherit;
122
+ background: none;
123
+ font: inherit;
124
+ border: 0;
125
+ outline: none;
126
+ }
127
+
128
+ .rdp-months {
129
+ display: flex;
130
+ }
131
+
132
+ .rdp-month {
133
+ margin: 0 1em;
134
+ }
135
+
136
+ .rdp-month:first-child {
137
+ margin-left: 0;
138
+ }
139
+
140
+ .rdp-month:last-child {
141
+ margin-right: 0;
142
+ }
143
+
144
+ .rdp-table {
145
+ margin: 0;
146
+ max-width: calc(var(--rdp-cell-size) * 7);
147
+ border-collapse: collapse;
148
+ }
149
+
150
+ .rdp-with_weeknumber .rdp-table {
151
+ max-width: calc(var(--rdp-cell-size) * 8);
152
+ border-collapse: collapse;
153
+ }
154
+
155
+ .rdp-tbody {
156
+ border: 0;
157
+ }
158
+
159
+ .rdp-row {
160
+ height: 100%;
161
+ }
162
+
163
+ .rdp-row:nth-child(2) {
164
+ padding-top: 0.25em;
165
+ }
166
+
167
+ .rdp-head_cell {
168
+ vertical-align: middle;
169
+ text-align: center;
170
+ font-size: 0.75em;
171
+ font-weight: 700;
172
+ text-transform: uppercase;
173
+ }
174
+
175
+ .rdp-cell {
176
+ width: var(--rdp-cell-size, 2.5rem);
177
+ height: 100%;
178
+ text-align: center;
179
+ padding: 0;
180
+ }
181
+
182
+ .rdp-day {
183
+ display: flex;
184
+ overflow: hidden;
185
+ align-items: center;
186
+ justify-content: center;
187
+ box-sizing: border-box;
188
+ font-weight: 500;
189
+ border: 2px solid transparent;
190
+ border-radius: 6px;
191
+ }
192
+
193
+ .rdp-day_today:not(.rdp-day_selected) {
194
+ font-weight: 700;
195
+ color: var(--rdp-accent-color);
63
196
  }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@optifye/dashboard-core",
3
- "version": "1.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Reusable UI & logic for Optifye dashboard",
5
5
  "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
6
7
  "types": "dist/index.d.ts",
7
8
  "files": [
8
9
  "dist",
@@ -14,8 +15,8 @@
14
15
  "exports": {
15
16
  ".": {
16
17
  "types": "./dist/index.d.ts",
17
- "import": "./dist/index.js",
18
- "require": "./dist/index.cjs"
18
+ "import": "./dist/index.mjs",
19
+ "require": "./dist/index.js"
19
20
  },
20
21
  "./global.css": "./global.css"
21
22
  },
@@ -26,7 +27,9 @@
26
27
  "react-dom": ">=18",
27
28
  "next": ">=13",
28
29
  "tailwindcss": ">=3",
29
- "@supabase/supabase-js": "^2.47.0"
30
+ "@supabase/supabase-js": "^2.47.0",
31
+ "date-fns": "^4.1.0",
32
+ "date-fns-tz": "^3.2.0"
30
33
  },
31
34
  "dependencies": {
32
35
  "@aws-sdk/client-s3": "^3.464.0",
@@ -40,8 +43,6 @@
40
43
  "axios": "^1.7.0",
41
44
  "class-variance-authority": "^0.7.1",
42
45
  "clsx": "^2.1.0",
43
- "date-fns": "^4.1.0",
44
- "date-fns-tz": "^3.2.0",
45
46
  "framer-motion": "^11.18.1",
46
47
  "html2canvas": "^1.4.1",
47
48
  "hls.js": "^1.6.2",
@@ -78,6 +79,4 @@
78
79
  "type": "git",
79
80
  "url": "git+https://github.com/optifye/dashboard-core.git"
80
81
  }
81
- }
82
-
83
-
82
+ }