@wellingtonhlc/shared-ui 0.29.1 → 0.29.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DismissiblePopover.d.ts","sourceRoot":"","sources":["../../src/components/DismissiblePopover.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DismissiblePopover.d.ts","sourceRoot":"","sources":["../../src/components/DismissiblePopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,UAAiB,EACjB,iBAAuB,GACxB,EAAE,uBAAuB,+BA4FzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { useEffect, useRef, useState, } from 'react';
|
|
3
3
|
import { cn } from '../utils/cn';
|
|
4
4
|
export function DismissiblePopover({ open, onOpenChange, trigger, content, className, contentClassName, containerRef, closeDelay = 1500, animationDuration = 180, }) {
|
|
5
5
|
const closeTimerRef = useRef(null);
|
|
@@ -17,7 +17,7 @@ export function DismissiblePopover({ open, onOpenChange, trigger, content, class
|
|
|
17
17
|
animationTimerRef.current = window.setTimeout(() => {
|
|
18
18
|
setContentVisible(false);
|
|
19
19
|
animationTimerRef.current = null;
|
|
20
|
-
}, animationDuration);
|
|
20
|
+
}, animationDuration + 50);
|
|
21
21
|
return () => {
|
|
22
22
|
if (animationTimerRef.current !== null) {
|
|
23
23
|
window.clearTimeout(animationTimerRef.current);
|
|
@@ -37,6 +37,12 @@ export function DismissiblePopover({ open, onOpenChange, trigger, content, class
|
|
|
37
37
|
closeTimerRef.current = null;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
function clearAnimationTimer() {
|
|
41
|
+
if (animationTimerRef.current !== null) {
|
|
42
|
+
window.clearTimeout(animationTimerRef.current);
|
|
43
|
+
animationTimerRef.current = null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
40
46
|
function handleMouseEnter() {
|
|
41
47
|
clearCloseTimer();
|
|
42
48
|
}
|
|
@@ -47,5 +53,11 @@ export function DismissiblePopover({ open, onOpenChange, trigger, content, class
|
|
|
47
53
|
closeTimerRef.current = null;
|
|
48
54
|
}, closeDelay);
|
|
49
55
|
}
|
|
50
|
-
|
|
56
|
+
function handleTransitionEnd(event) {
|
|
57
|
+
if (open || event.currentTarget !== event.target || event.propertyName !== 'opacity')
|
|
58
|
+
return;
|
|
59
|
+
clearAnimationTimer();
|
|
60
|
+
setContentVisible(false);
|
|
61
|
+
}
|
|
62
|
+
return (_jsxs("div", { ref: containerRef, className: cn('relative', className), onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onFocus: handleMouseEnter, children: [trigger, contentVisible ? (_jsx("div", { "data-state": open ? 'open' : 'closed', className: cn('transition-[opacity,transform,translate,scale] ease-out', open ? 'translate-x-0 opacity-100' : 'pointer-events-none translate-x-2 opacity-0', contentClassName), style: { transitionDuration: `${animationDuration}ms` }, onTransitionEnd: handleTransitionEnd, children: content })) : null] }));
|
|
51
63
|
}
|
|
@@ -33,7 +33,7 @@ const ActionButton = forwardRef(function SidebarActionButton({ active = false, c
|
|
|
33
33
|
return (_jsxs("button", { ref: ref, type: type, title: title ? (typeof label === 'string' && !isOpen ? label : undefined) : undefined, "data-open": isOpen, "data-sidebar-active": active ? 'true' : undefined, className: cn(sidebarButtonClasses(active, size, tone), showChevron && isOpen && 'pr-2', className), ...props, children: [_jsx("span", { className: cn('grid w-16 min-w-16 flex-none place-items-center transition-colors', size === 'compact' ? 'h-9' : 'h-11', active ? 'text-current' : 'text-current'), children: icon }), _jsx("span", { className: cn('min-w-0 flex-1 truncate text-left font-medium whitespace-nowrap transition-opacity duration-[var(--duration-normal)]', size === 'compact' ? 'text-xs max-md:text-base' : 'text-[length:var(--font-size-compact)] max-md:text-base', isOpen ? 'opacity-100' : 'pointer-events-none w-0 opacity-0', labelClassName), children: label }), _jsx("span", { className: cn('flex-none place-items-center', isOpen ? 'grid' : 'hidden', size === 'compact' ? 'h-9 w-6' : 'h-11 w-7', showChevron && isOpen ? 'opacity-100' : 'opacity-0'), children: _jsx(ChevronIcon, { expanded: expanded }) })] }));
|
|
34
34
|
});
|
|
35
35
|
const SubActionButton = forwardRef(function SidebarSubActionButton({ active = false, className, isOpen, label, size = 'compact', title, type = 'button', ...props }, ref) {
|
|
36
|
-
return (_jsx("button", { ref: ref, type: type, title: title ? (typeof label === 'string' && !isOpen ? label : undefined) : undefined, "data-sidebar-active": active ? 'true' : undefined, className: cn('focus-visible:ring-brand/35 flex w-full cursor-pointer items-center rounded-xl font-medium transition-colors focus-visible:ring-2 focus-visible:outline-none', size === 'compact' ? 'h-9 min-h-9 text-xs' : 'h-11 min-h-11 text-[length:var(--font-size-compact)]', isOpen ? 'justify-start pl-
|
|
36
|
+
return (_jsx("button", { ref: ref, type: type, title: title ? (typeof label === 'string' && !isOpen ? label : undefined) : undefined, "data-sidebar-active": active ? 'true' : undefined, className: cn('focus-visible:ring-brand/35 flex w-full cursor-pointer items-center rounded-xl font-medium transition-colors focus-visible:ring-2 focus-visible:outline-none', size === 'compact' ? 'h-9 min-h-9 text-xs' : 'h-11 min-h-11 text-[length:var(--font-size-compact)]', isOpen ? 'justify-start pl-16' : 'justify-center', subActionButtonTone(active, size), className), ...props, children: _jsx("span", { className: cn('truncate', isOpen ? 'opacity-100' : 'sr-only'), children: label }) }));
|
|
37
37
|
});
|
|
38
38
|
function NavGroup({ active = false, className, collapsible = false, defaultExpanded, icon, isOpen, items, subItemSize = 'compact', title, }) {
|
|
39
39
|
const itemByKey = useMemo(() => new Map(items.map((item) => [item.key, item])), [items]);
|
|
@@ -92,7 +92,7 @@ function NavGroup({ active = false, className, collapsible = false, defaultExpan
|
|
|
92
92
|
if (singleItem) {
|
|
93
93
|
return (_jsx("li", { className: cn('w-full', className), children: _jsx(ActionButton, { active: singleItem.active, icon: singleItem.icon ?? icon, isOpen: isOpen, label: singleItem.label, onClick: handleSingleItemClick, title: singleItem.title, tone: "subtle" }) }));
|
|
94
94
|
}
|
|
95
|
-
return (_jsxs("li", { className: cn('relative w-full', className), onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [_jsx(ActionButton, { active: groupActive, "aria-expanded": isOpen ? expanded : undefined, icon: icon, isOpen: isOpen, label: title, labelClassName: labelVisible ? 'opacity-100' : 'opacity-0', onClick: handleGroupClick, expanded: expanded, showChevron: collapsible && isOpen, tone: "subtle" }), isOpen ? (_jsx("div", { className: "grid grid-rows-[0fr] opacity-0 transition-[grid-template-rows,opacity] duration-[var(--duration-normal)] ease-out data-[expanded=true]:grid-rows-[1fr] data-[expanded=true]:opacity-100", "data-expanded": expanded, children: _jsx("div", { className: "relative min-h-0 overflow-hidden", children: _jsx("ul", { className: "flex w-full flex-col", children: items.map((item, index) => (_jsxs("li", { className: "relative w-full", children: [_jsx("span", { "aria-hidden": "true", className: cn('bg-app-border absolute left-
|
|
95
|
+
return (_jsxs("li", { className: cn('relative w-full', className), onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [_jsx(ActionButton, { active: groupActive, "aria-expanded": isOpen ? expanded : undefined, icon: icon, isOpen: isOpen, label: title, labelClassName: labelVisible ? 'opacity-100' : 'opacity-0', onClick: handleGroupClick, expanded: expanded, showChevron: collapsible && isOpen, tone: "subtle" }), isOpen ? (_jsx("div", { className: "grid grid-rows-[0fr] opacity-0 transition-[grid-template-rows,opacity] duration-[var(--duration-normal)] ease-out data-[expanded=true]:grid-rows-[1fr] data-[expanded=true]:opacity-100", "data-expanded": expanded, children: _jsx("div", { className: "relative min-h-0 overflow-hidden", children: _jsx("ul", { className: "flex w-full flex-col", children: items.map((item, index) => (_jsxs("li", { className: "relative w-full", children: [_jsx("span", { "aria-hidden": "true", className: cn('bg-app-border absolute left-8 top-0 w-px', index === items.length - 1 ? 'h-1/2' : 'bottom-0') }), _jsx("span", { "aria-hidden": "true", className: "bg-app-border absolute left-8 top-1/2 h-px w-5" }), _jsx(SubActionButton, { active: item.active, "data-sidebar-item-key": item.key, isOpen: isOpen, label: item.label, onClick: handleItemSelect, size: subItemSize, title: item.title })] }, item.key))) }) }) })) : (_jsx(Flyout, { open: hovered, title: title, items: items, onItemSelect: handleItemSelect }))] }));
|
|
96
96
|
}
|
|
97
97
|
function Flyout({ items, onItemSelect, open, title }) {
|
|
98
98
|
return (_jsxs("div", { className: "border-app-border bg-[var(--sidebar-flyout-background)] invisible pointer-events-none absolute left-[calc(100%+0.375rem)] top-0 z-[var(--z-flyout)] min-w-52 -translate-x-2 overflow-hidden rounded-xl border p-2 opacity-0 shadow-[var(--shadow-flyout)] transition-[opacity,transform,visibility] duration-[var(--duration-fast)] data-[open=true]:visible data-[open=true]:pointer-events-auto data-[open=true]:translate-x-0 data-[open=true]:opacity-100", "data-open": open, children: [_jsx("span", { "aria-hidden": "true", className: "absolute right-full top-0 h-full w-2.5" }), _jsx("p", { className: "text-foreground-muted mb-2 text-[length:var(--font-size-caption)] font-semibold uppercase tracking-[var(--letter-spacing-caps)]", children: title }), _jsx("div", { className: "flex max-h-[calc(100vh-5rem)] flex-col overflow-y-auto", children: items.map((item) => (_jsxs("button", { type: "button", "data-sidebar-item-key": item.key, onClick: onItemSelect, className: cn('group focus-visible:ring-brand/35 flex h-9 min-h-9 w-full cursor-pointer items-center gap-2 rounded-lg text-left text-xs font-medium leading-none transition-colors focus-visible:ring-2 focus-visible:outline-none', item.active
|
package/dist/styles.css
CHANGED
|
@@ -596,6 +596,9 @@ h2.react-datepicker__current-month {
|
|
|
596
596
|
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
597
597
|
--color-red-600: oklch(57.7% 0.245 27.325);
|
|
598
598
|
--color-red-950: oklch(25.8% 0.092 26.042);
|
|
599
|
+
--color-amber-600: oklch(66.6% 0.179 58.318);
|
|
600
|
+
--color-green-600: oklch(62.7% 0.194 149.214);
|
|
601
|
+
--color-sky-600: oklch(58.8% 0.158 241.966);
|
|
599
602
|
--spacing: 0.25rem;
|
|
600
603
|
--container-xs: 20rem;
|
|
601
604
|
--container-sm: 24rem;
|
|
@@ -859,6 +862,9 @@ h2.react-datepicker__current-month {
|
|
|
859
862
|
.inset-y-0 {
|
|
860
863
|
inset-block: calc(var(--spacing) * 0);
|
|
861
864
|
}
|
|
865
|
+
.-top-1 {
|
|
866
|
+
top: calc(var(--spacing) * -1);
|
|
867
|
+
}
|
|
862
868
|
.top-0 {
|
|
863
869
|
top: calc(var(--spacing) * 0);
|
|
864
870
|
}
|
|
@@ -880,6 +886,9 @@ h2.react-datepicker__current-month {
|
|
|
880
886
|
.top-full {
|
|
881
887
|
top: 100%;
|
|
882
888
|
}
|
|
889
|
+
.-right-1 {
|
|
890
|
+
right: calc(var(--spacing) * -1);
|
|
891
|
+
}
|
|
883
892
|
.right-0 {
|
|
884
893
|
right: calc(var(--spacing) * 0);
|
|
885
894
|
}
|
|
@@ -919,8 +928,8 @@ h2.react-datepicker__current-month {
|
|
|
919
928
|
.left-4 {
|
|
920
929
|
left: calc(var(--spacing) * 4);
|
|
921
930
|
}
|
|
922
|
-
.left-
|
|
923
|
-
left: calc(var(--spacing) *
|
|
931
|
+
.left-8 {
|
|
932
|
+
left: calc(var(--spacing) * 8);
|
|
924
933
|
}
|
|
925
934
|
.left-\[50\%\] {
|
|
926
935
|
left: 50%;
|
|
@@ -931,6 +940,9 @@ h2.react-datepicker__current-month {
|
|
|
931
940
|
.left-full {
|
|
932
941
|
left: 100%;
|
|
933
942
|
}
|
|
943
|
+
.z-10 {
|
|
944
|
+
z-index: 10;
|
|
945
|
+
}
|
|
934
946
|
.z-\[var\(--z-critical-dialog\)\] {
|
|
935
947
|
z-index: var(--z-critical-dialog);
|
|
936
948
|
}
|
|
@@ -1097,6 +1109,10 @@ h2.react-datepicker__current-month {
|
|
|
1097
1109
|
width: calc(var(--spacing) * 10) !important;
|
|
1098
1110
|
height: calc(var(--spacing) * 10) !important;
|
|
1099
1111
|
}
|
|
1112
|
+
.size-2 {
|
|
1113
|
+
width: calc(var(--spacing) * 2);
|
|
1114
|
+
height: calc(var(--spacing) * 2);
|
|
1115
|
+
}
|
|
1100
1116
|
.size-3 {
|
|
1101
1117
|
width: calc(var(--spacing) * 3);
|
|
1102
1118
|
height: calc(var(--spacing) * 3);
|
|
@@ -1231,6 +1247,9 @@ h2.react-datepicker__current-month {
|
|
|
1231
1247
|
.h-\[32rem\] {
|
|
1232
1248
|
height: 32rem;
|
|
1233
1249
|
}
|
|
1250
|
+
.h-\[40rem\] {
|
|
1251
|
+
height: 40rem;
|
|
1252
|
+
}
|
|
1234
1253
|
.h-\[calc\(100\%-1rem\)\] {
|
|
1235
1254
|
height: calc(100% - 1rem);
|
|
1236
1255
|
}
|
|
@@ -1255,6 +1274,9 @@ h2.react-datepicker__current-month {
|
|
|
1255
1274
|
.max-h-\[95vh\] {
|
|
1256
1275
|
max-height: 95vh;
|
|
1257
1276
|
}
|
|
1277
|
+
.max-h-\[560px\] {
|
|
1278
|
+
max-height: 560px;
|
|
1279
|
+
}
|
|
1258
1280
|
.max-h-\[calc\(100vh-5rem\)\] {
|
|
1259
1281
|
max-height: calc(100vh - 5rem);
|
|
1260
1282
|
}
|
|
@@ -1420,6 +1442,9 @@ h2.react-datepicker__current-month {
|
|
|
1420
1442
|
.w-\[34rem\] {
|
|
1421
1443
|
width: 34rem;
|
|
1422
1444
|
}
|
|
1445
|
+
.w-\[38rem\] {
|
|
1446
|
+
width: 38rem;
|
|
1447
|
+
}
|
|
1423
1448
|
.w-\[42rem\] {
|
|
1424
1449
|
width: 42rem;
|
|
1425
1450
|
}
|
|
@@ -1438,6 +1463,9 @@ h2.react-datepicker__current-month {
|
|
|
1438
1463
|
.w-\[min\(10rem\,24vw\)\] {
|
|
1439
1464
|
width: min(10rem, 24vw);
|
|
1440
1465
|
}
|
|
1466
|
+
.w-\[min\(24rem\,calc\(100vw-2rem\)\)\] {
|
|
1467
|
+
width: min(24rem, calc(100vw - 2rem));
|
|
1468
|
+
}
|
|
1441
1469
|
.w-auto {
|
|
1442
1470
|
width: auto;
|
|
1443
1471
|
}
|
|
@@ -1587,6 +1615,9 @@ h2.react-datepicker__current-month {
|
|
|
1587
1615
|
--tw-border-spacing-y: calc(var(--spacing) * 0);
|
|
1588
1616
|
border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
|
|
1589
1617
|
}
|
|
1618
|
+
.origin-top-right {
|
|
1619
|
+
transform-origin: top right;
|
|
1620
|
+
}
|
|
1590
1621
|
.-translate-x-1\/2 {
|
|
1591
1622
|
--tw-translate-x: calc(calc(1/2 * 100%) * -1);
|
|
1592
1623
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -1669,6 +1700,9 @@ h2.react-datepicker__current-month {
|
|
|
1669
1700
|
.grid-rows-\[0fr\] {
|
|
1670
1701
|
grid-template-rows: 0fr;
|
|
1671
1702
|
}
|
|
1703
|
+
.grid-rows-\[auto_1fr\] {
|
|
1704
|
+
grid-template-rows: auto 1fr;
|
|
1705
|
+
}
|
|
1672
1706
|
.grid-rows-\[auto_minmax\(0\,1fr\)\] {
|
|
1673
1707
|
grid-template-rows: auto minmax(0,1fr);
|
|
1674
1708
|
}
|
|
@@ -1951,6 +1985,12 @@ h2.react-datepicker__current-month {
|
|
|
1951
1985
|
.border-brand {
|
|
1952
1986
|
border-color: var(--color-brand);
|
|
1953
1987
|
}
|
|
1988
|
+
.border-brand\/40 {
|
|
1989
|
+
border-color: var(--color-brand);
|
|
1990
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1991
|
+
border-color: color-mix(in oklab, var(--color-brand) 40%, transparent);
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1954
1994
|
.border-brand\/50 {
|
|
1955
1995
|
border-color: var(--color-brand);
|
|
1956
1996
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -2104,6 +2144,12 @@ h2.react-datepicker__current-month {
|
|
|
2104
2144
|
.bg-brand {
|
|
2105
2145
|
background-color: var(--color-brand);
|
|
2106
2146
|
}
|
|
2147
|
+
.bg-brand\/5 {
|
|
2148
|
+
background-color: var(--color-brand);
|
|
2149
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2150
|
+
background-color: color-mix(in oklab, var(--color-brand) 5%, transparent);
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2107
2153
|
.bg-brand\/10 {
|
|
2108
2154
|
background-color: var(--color-brand);
|
|
2109
2155
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -2290,6 +2336,9 @@ h2.react-datepicker__current-month {
|
|
|
2290
2336
|
.pb-2 {
|
|
2291
2337
|
padding-bottom: calc(var(--spacing) * 2);
|
|
2292
2338
|
}
|
|
2339
|
+
.pb-3 {
|
|
2340
|
+
padding-bottom: calc(var(--spacing) * 3);
|
|
2341
|
+
}
|
|
2293
2342
|
.pb-4 {
|
|
2294
2343
|
padding-bottom: calc(var(--spacing) * 4);
|
|
2295
2344
|
}
|
|
@@ -2329,6 +2378,9 @@ h2.react-datepicker__current-month {
|
|
|
2329
2378
|
.pl-14 {
|
|
2330
2379
|
padding-left: calc(var(--spacing) * 14);
|
|
2331
2380
|
}
|
|
2381
|
+
.pl-16 {
|
|
2382
|
+
padding-left: calc(var(--spacing) * 16);
|
|
2383
|
+
}
|
|
2332
2384
|
.text-center {
|
|
2333
2385
|
text-align: center;
|
|
2334
2386
|
}
|
|
@@ -2381,6 +2433,12 @@ h2.react-datepicker__current-month {
|
|
|
2381
2433
|
font-size: var(--text-xs);
|
|
2382
2434
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
2383
2435
|
}
|
|
2436
|
+
.text-\[10px\] {
|
|
2437
|
+
font-size: 10px;
|
|
2438
|
+
}
|
|
2439
|
+
.text-\[11px\] {
|
|
2440
|
+
font-size: 11px;
|
|
2441
|
+
}
|
|
2384
2442
|
.text-\[length\:var\(--font-size-2xs\)\] {
|
|
2385
2443
|
font-size: var(--font-size-2xs);
|
|
2386
2444
|
}
|
|
@@ -2547,6 +2605,9 @@ h2.react-datepicker__current-month {
|
|
|
2547
2605
|
.text-\[var\(--status-warning-text\)\] {
|
|
2548
2606
|
color: var(--status-warning-text);
|
|
2549
2607
|
}
|
|
2608
|
+
.text-amber-600 {
|
|
2609
|
+
color: var(--color-amber-600);
|
|
2610
|
+
}
|
|
2550
2611
|
.text-brand {
|
|
2551
2612
|
color: var(--color-brand);
|
|
2552
2613
|
}
|
|
@@ -2571,6 +2632,9 @@ h2.react-datepicker__current-month {
|
|
|
2571
2632
|
color: color-mix(in oklab, var(--color-foreground-muted) 90%, transparent);
|
|
2572
2633
|
}
|
|
2573
2634
|
}
|
|
2635
|
+
.text-green-600 {
|
|
2636
|
+
color: var(--color-green-600);
|
|
2637
|
+
}
|
|
2574
2638
|
.text-primary {
|
|
2575
2639
|
color: var(--color-primary);
|
|
2576
2640
|
}
|
|
@@ -2580,6 +2644,9 @@ h2.react-datepicker__current-month {
|
|
|
2580
2644
|
.text-red-600 {
|
|
2581
2645
|
color: var(--color-red-600);
|
|
2582
2646
|
}
|
|
2647
|
+
.text-sky-600 {
|
|
2648
|
+
color: var(--color-sky-600);
|
|
2649
|
+
}
|
|
2583
2650
|
.uppercase {
|
|
2584
2651
|
text-transform: uppercase;
|
|
2585
2652
|
}
|
|
@@ -2700,6 +2767,10 @@ h2.react-datepicker__current-month {
|
|
|
2700
2767
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
2701
2768
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2702
2769
|
}
|
|
2770
|
+
.shadow-xl {
|
|
2771
|
+
--tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
2772
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2773
|
+
}
|
|
2703
2774
|
.outline {
|
|
2704
2775
|
outline-style: var(--tw-outline-style);
|
|
2705
2776
|
outline-width: 1px;
|
|
@@ -2786,13 +2857,13 @@ h2.react-datepicker__current-month {
|
|
|
2786
2857
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
2787
2858
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
2788
2859
|
}
|
|
2789
|
-
.transition-\[opacity\,transform\,
|
|
2790
|
-
transition-property: opacity,transform,
|
|
2860
|
+
.transition-\[opacity\,transform\,translate\,scale\] {
|
|
2861
|
+
transition-property: opacity,transform,translate,scale;
|
|
2791
2862
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
2792
2863
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
2793
2864
|
}
|
|
2794
|
-
.transition-\[opacity\,transform\] {
|
|
2795
|
-
transition-property: opacity,transform;
|
|
2865
|
+
.transition-\[opacity\,transform\,visibility\] {
|
|
2866
|
+
transition-property: opacity,transform,visibility;
|
|
2796
2867
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
2797
2868
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
2798
2869
|
}
|
|
@@ -3258,6 +3329,16 @@ h2.react-datepicker__current-month {
|
|
|
3258
3329
|
}
|
|
3259
3330
|
}
|
|
3260
3331
|
}
|
|
3332
|
+
.hover\:bg-brand\/10 {
|
|
3333
|
+
&:hover {
|
|
3334
|
+
@media (hover: hover) {
|
|
3335
|
+
background-color: var(--color-brand);
|
|
3336
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3337
|
+
background-color: color-mix(in oklab, var(--color-brand) 10%, transparent);
|
|
3338
|
+
}
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3261
3342
|
.hover\:bg-destructive {
|
|
3262
3343
|
&:hover {
|
|
3263
3344
|
@media (hover: hover) {
|
|
@@ -3682,6 +3763,22 @@ h2.react-datepicker__current-month {
|
|
|
3682
3763
|
color: var(--color-foreground);
|
|
3683
3764
|
}
|
|
3684
3765
|
}
|
|
3766
|
+
.data-\[state\=closed\]\:scale-95 {
|
|
3767
|
+
&[data-state="closed"] {
|
|
3768
|
+
--tw-scale-x: 95%;
|
|
3769
|
+
--tw-scale-y: 95%;
|
|
3770
|
+
--tw-scale-z: 95%;
|
|
3771
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
.data-\[state\=open\]\:scale-100 {
|
|
3775
|
+
&[data-state="open"] {
|
|
3776
|
+
--tw-scale-x: 100%;
|
|
3777
|
+
--tw-scale-y: 100%;
|
|
3778
|
+
--tw-scale-z: 100%;
|
|
3779
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3685
3782
|
.data-\[state\=open\]\:bg-\[var\(--status-danger-bg\)\] {
|
|
3686
3783
|
&[data-state="open"] {
|
|
3687
3784
|
background-color: var(--status-danger-bg);
|
|
@@ -5098,6 +5195,21 @@ h2.react-datepicker__current-month {
|
|
|
5098
5195
|
initial-value: "";
|
|
5099
5196
|
inherits: false;
|
|
5100
5197
|
}
|
|
5198
|
+
@property --tw-scale-x {
|
|
5199
|
+
syntax: "*";
|
|
5200
|
+
inherits: false;
|
|
5201
|
+
initial-value: 1;
|
|
5202
|
+
}
|
|
5203
|
+
@property --tw-scale-y {
|
|
5204
|
+
syntax: "*";
|
|
5205
|
+
inherits: false;
|
|
5206
|
+
initial-value: 1;
|
|
5207
|
+
}
|
|
5208
|
+
@property --tw-scale-z {
|
|
5209
|
+
syntax: "*";
|
|
5210
|
+
inherits: false;
|
|
5211
|
+
initial-value: 1;
|
|
5212
|
+
}
|
|
5101
5213
|
@keyframes spin {
|
|
5102
5214
|
to {
|
|
5103
5215
|
transform: rotate(360deg);
|
|
@@ -5167,6 +5279,9 @@ h2.react-datepicker__current-month {
|
|
|
5167
5279
|
--tw-duration: initial;
|
|
5168
5280
|
--tw-ease: initial;
|
|
5169
5281
|
--tw-content: "";
|
|
5282
|
+
--tw-scale-x: 1;
|
|
5283
|
+
--tw-scale-y: 1;
|
|
5284
|
+
--tw-scale-z: 1;
|
|
5170
5285
|
}
|
|
5171
5286
|
}
|
|
5172
5287
|
}
|