@dynamic-labs-sdk/droplet 0.27.1 → 0.27.3
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/README.md +116 -20
- package/dist/components/toggle-card/index.d.ts +2 -0
- package/dist/components/toggle-card/index.d.ts.map +1 -0
- package/dist/components/toggle-card/toggle-card.d.ts +113 -0
- package/dist/components/toggle-card/toggle-card.d.ts.map +1 -0
- package/dist/components/toggle-card/toggle-card.stories.d.ts +45 -0
- package/dist/components/toggle-card/toggle-card.stories.d.ts.map +1 -0
- package/dist/index.cjs +184 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +214 -30
- package/dist/index.esm.js.map +1 -1
- package/package.json +11 -2
- package/src/styles/globals.css +16 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-sdk/droplet",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
"dist",
|
|
24
24
|
"src/styles"
|
|
25
25
|
],
|
|
26
|
+
"sideEffects": [
|
|
27
|
+
"**/*.css"
|
|
28
|
+
],
|
|
26
29
|
"dependencies": {
|
|
27
30
|
"@hugeicons/core-free-icons": "4.1.1",
|
|
28
31
|
"@hugeicons/react": "1.1.6",
|
|
@@ -76,7 +79,13 @@
|
|
|
76
79
|
"peerDependencies": {
|
|
77
80
|
"next": ">=14",
|
|
78
81
|
"react": ">=18",
|
|
79
|
-
"react-dom": ">=18"
|
|
82
|
+
"react-dom": ">=18",
|
|
83
|
+
"tailwindcss": ">=4"
|
|
84
|
+
},
|
|
85
|
+
"peerDependenciesMeta": {
|
|
86
|
+
"next": {
|
|
87
|
+
"optional": true
|
|
88
|
+
}
|
|
80
89
|
},
|
|
81
90
|
"scripts": {
|
|
82
91
|
"build": "rm -rf dist && tsdown && pnpm exec tsc --emitDeclarationOnly -p ./tsconfig.lib.json",
|
package/src/styles/globals.css
CHANGED
|
@@ -227,6 +227,12 @@
|
|
|
227
227
|
--shadow-field-hover: 0 0 0 1px oklch(0.278 0.03 256.85 / 0.18), 0px 0px 1px 0px oklch(0.278 0.03 256.85 / 0.10);
|
|
228
228
|
--shadow-elevated: 0 0 0 1px oklch(0.278 0.03 256.85 / 0.10), 0px 5px 15px 0px oklch(0.278 0.03 256.85 / 0.08), 0px 15px 35px -5px oklch(0.278 0.03 256.85 / 0.20);
|
|
229
229
|
--shadow-card-content: 0px 0px 2px 0px oklch(0.278 0.03 256.85 / 0.08), 0px 1px 2px 0px oklch(0.278 0.03 256.85 / 0.06);
|
|
230
|
+
|
|
231
|
+
/* ——— Component-specific overlays (themeable) ——— */
|
|
232
|
+
--selection-bg: oklch(0.574 0.207 257.4 / 0.15);
|
|
233
|
+
--checkbox-hover-fill: oklch(0.278 0.03 256.85 / 0.08);
|
|
234
|
+
--radio-hover-fill: oklch(0.278 0.03 256.85 / 0.12);
|
|
235
|
+
--button-highlight: oklch(1 0 0);
|
|
230
236
|
}
|
|
231
237
|
|
|
232
238
|
/* ═══════════════════════════════════════════════════════════
|
|
@@ -354,6 +360,12 @@
|
|
|
354
360
|
--shadow-field-hover: 0 0 0 1px oklch(1 0 0 / 0.18), 0px 0px 1px 0px oklch(0 0 0 / 0.10);
|
|
355
361
|
--shadow-elevated: 0 0 0 1px oklch(1 0 0 / 0.06), 0px 5px 15px 0px oklch(0 0 0 / 0.25), 0px 15px 35px -5px oklch(0 0 0 / 0.45);
|
|
356
362
|
--shadow-card-content: 0px 0px 2px 0px oklch(0 0 0 / 0.08), 0px 1px 2px 0px oklch(0 0 0 / 0.06);
|
|
363
|
+
|
|
364
|
+
/* ——— Component-specific overlays (themeable) ——— */
|
|
365
|
+
--selection-bg: oklch(0.510 0.205 257 / 0.18);
|
|
366
|
+
--checkbox-hover-fill: oklch(1 0 0 / 0.10);
|
|
367
|
+
--radio-hover-fill: oklch(1 0 0 / 0.15);
|
|
368
|
+
--button-highlight: oklch(1 0 0);
|
|
357
369
|
}
|
|
358
370
|
|
|
359
371
|
@layer base {
|
|
@@ -384,7 +396,7 @@
|
|
|
384
396
|
}
|
|
385
397
|
/* Branded text selection */
|
|
386
398
|
::selection {
|
|
387
|
-
background-color:
|
|
399
|
+
background-color: var(--selection-bg);
|
|
388
400
|
color: inherit;
|
|
389
401
|
}
|
|
390
402
|
/* Slashed zero + tabular nums for monospace contexts */
|
|
@@ -448,16 +460,12 @@
|
|
|
448
460
|
position: absolute;
|
|
449
461
|
inset: 2px;
|
|
450
462
|
border-radius: 2px;
|
|
451
|
-
background:
|
|
463
|
+
background: var(--checkbox-hover-fill);
|
|
452
464
|
opacity: 0;
|
|
453
465
|
transition: opacity 150ms ease-out;
|
|
454
466
|
pointer-events: none;
|
|
455
467
|
}
|
|
456
468
|
|
|
457
|
-
.dark [data-slot='checkbox'][data-state='unchecked']::before {
|
|
458
|
-
background: oklch(1 0 0 / 0.10);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
469
|
[data-slot='checkbox'][data-state='unchecked']:not(:disabled):hover::before {
|
|
462
470
|
opacity: 1;
|
|
463
471
|
}
|
|
@@ -477,16 +485,12 @@
|
|
|
477
485
|
top: 50%;
|
|
478
486
|
left: 50%;
|
|
479
487
|
transform: translate(-50%, -50%);
|
|
480
|
-
background:
|
|
488
|
+
background: var(--radio-hover-fill);
|
|
481
489
|
opacity: 0;
|
|
482
490
|
transition: opacity 150ms ease-out;
|
|
483
491
|
pointer-events: none;
|
|
484
492
|
}
|
|
485
493
|
|
|
486
|
-
.dark [data-slot='radio-group-item'][data-state='unchecked']::before {
|
|
487
|
-
background: oklch(1 0 0 / 0.15);
|
|
488
|
-
}
|
|
489
|
-
|
|
490
494
|
[data-slot='radio-group-item'][data-state='unchecked']:not(:disabled):hover::before {
|
|
491
495
|
opacity: 1;
|
|
492
496
|
}
|
|
@@ -524,7 +528,7 @@
|
|
|
524
528
|
position: absolute;
|
|
525
529
|
inset: 0;
|
|
526
530
|
border-radius: inherit;
|
|
527
|
-
background: linear-gradient(180deg,
|
|
531
|
+
background: linear-gradient(180deg, var(--button-highlight), transparent);
|
|
528
532
|
opacity: 0.1;
|
|
529
533
|
transition: opacity 0.5s;
|
|
530
534
|
pointer-events: none;
|