@uipath/apollo-wind 2.1.1 → 2.2.0-pr525.51f590d
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/dist/components/UiPath/index.cjs +5 -0
- package/dist/components/UiPath/index.d.ts +1 -0
- package/dist/components/UiPath/index.js +0 -0
- package/dist/components/custom/flow-properties-simple.cjs +5 -6
- package/dist/components/custom/flow-properties-simple.js +5 -6
- package/dist/components/ui/checkbox.cjs +3 -3
- package/dist/components/ui/checkbox.js +3 -3
- package/dist/components/ui/index.cjs +20 -20
- package/dist/components/ui/input.cjs +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/radio-group.cjs +2 -2
- package/dist/components/ui/radio-group.js +2 -2
- package/dist/styles.css +238 -0
- package/dist/tailwind.css +76 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -65,7 +65,7 @@ function FieldItem({ field, onGraphControl }) {
|
|
|
65
65
|
onValueChange: setValue,
|
|
66
66
|
children: [
|
|
67
67
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
|
|
68
|
-
className:
|
|
68
|
+
className: "h-10 rounded-xl border-0 bg-surface-overlay text-foreground shadow-sm placeholder:text-foreground-muted",
|
|
69
69
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {
|
|
70
70
|
placeholder: field.placeholder ?? 'Select...'
|
|
71
71
|
})
|
|
@@ -80,17 +80,17 @@ function FieldItem({ field, onGraphControl }) {
|
|
|
80
80
|
})
|
|
81
81
|
]
|
|
82
82
|
}) : 'url' === field.type ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
83
|
-
className: "flex h-10 items-center overflow-hidden rounded-xl bg-surface-overlay shadow-
|
|
83
|
+
className: "flex h-10 w-full items-center overflow-hidden rounded-xl bg-surface-overlay shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05)] transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 focus-within:ring-offset-background",
|
|
84
84
|
children: [
|
|
85
85
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
|
|
86
86
|
value: value,
|
|
87
87
|
onChange: (e)=>setValue(e.target.value),
|
|
88
88
|
placeholder: field.placeholder,
|
|
89
|
-
className: "h-full flex-1 rounded-none border-0 bg-transparent
|
|
89
|
+
className: "h-full flex-1 rounded-none border-0 bg-transparent px-3 py-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 future:h-full future:rounded-none future:border-0 future:bg-transparent future:py-0 future:shadow-none future:focus-visible:ring-0 future:focus-visible:ring-offset-0"
|
|
90
90
|
}),
|
|
91
91
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
92
92
|
type: "button",
|
|
93
|
-
className: "flex h-full w-[50px] items-center justify-center border-l border-border text-foreground-muted transition-colors hover:text-foreground",
|
|
93
|
+
className: "flex h-full w-[50px] shrink-0 items-center justify-center border-l border-border text-foreground-muted transition-colors hover:text-foreground",
|
|
94
94
|
"aria-label": "Browse files",
|
|
95
95
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Folder, {
|
|
96
96
|
className: "h-5 w-5"
|
|
@@ -100,8 +100,7 @@ function FieldItem({ field, onGraphControl }) {
|
|
|
100
100
|
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
|
|
101
101
|
value: value,
|
|
102
102
|
onChange: (e)=>setValue(e.target.value),
|
|
103
|
-
placeholder: field.placeholder
|
|
104
|
-
className: (0, index_cjs_namespaceObject.cn)('h-10 rounded-xl border-0 text-sm font-medium shadow-sm', value ? 'bg-surface-hover text-foreground' : 'bg-surface-overlay text-foreground-muted placeholder:text-foreground-subtle')
|
|
103
|
+
placeholder: field.placeholder
|
|
105
104
|
})
|
|
106
105
|
]
|
|
107
106
|
});
|
|
@@ -37,7 +37,7 @@ function FieldItem({ field, onGraphControl }) {
|
|
|
37
37
|
onValueChange: setValue,
|
|
38
38
|
children: [
|
|
39
39
|
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
40
|
-
className:
|
|
40
|
+
className: "h-10 rounded-xl border-0 bg-surface-overlay text-foreground shadow-sm placeholder:text-foreground-muted",
|
|
41
41
|
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
42
42
|
placeholder: field.placeholder ?? 'Select...'
|
|
43
43
|
})
|
|
@@ -52,17 +52,17 @@ function FieldItem({ field, onGraphControl }) {
|
|
|
52
52
|
})
|
|
53
53
|
]
|
|
54
54
|
}) : 'url' === field.type ? /*#__PURE__*/ jsxs("div", {
|
|
55
|
-
className: "flex h-10 items-center overflow-hidden rounded-xl bg-surface-overlay shadow-
|
|
55
|
+
className: "flex h-10 w-full items-center overflow-hidden rounded-xl bg-surface-overlay shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05)] transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 focus-within:ring-offset-background",
|
|
56
56
|
children: [
|
|
57
57
|
/*#__PURE__*/ jsx(Input, {
|
|
58
58
|
value: value,
|
|
59
59
|
onChange: (e)=>setValue(e.target.value),
|
|
60
60
|
placeholder: field.placeholder,
|
|
61
|
-
className: "h-full flex-1 rounded-none border-0 bg-transparent
|
|
61
|
+
className: "h-full flex-1 rounded-none border-0 bg-transparent px-3 py-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 future:h-full future:rounded-none future:border-0 future:bg-transparent future:py-0 future:shadow-none future:focus-visible:ring-0 future:focus-visible:ring-offset-0"
|
|
62
62
|
}),
|
|
63
63
|
/*#__PURE__*/ jsx("button", {
|
|
64
64
|
type: "button",
|
|
65
|
-
className: "flex h-full w-[50px] items-center justify-center border-l border-border text-foreground-muted transition-colors hover:text-foreground",
|
|
65
|
+
className: "flex h-full w-[50px] shrink-0 items-center justify-center border-l border-border text-foreground-muted transition-colors hover:text-foreground",
|
|
66
66
|
"aria-label": "Browse files",
|
|
67
67
|
children: /*#__PURE__*/ jsx(Folder, {
|
|
68
68
|
className: "h-5 w-5"
|
|
@@ -72,8 +72,7 @@ function FieldItem({ field, onGraphControl }) {
|
|
|
72
72
|
}) : /*#__PURE__*/ jsx(Input, {
|
|
73
73
|
value: value,
|
|
74
74
|
onChange: (e)=>setValue(e.target.value),
|
|
75
|
-
placeholder: field.placeholder
|
|
76
|
-
className: cn('h-10 rounded-xl border-0 text-sm font-medium shadow-sm', value ? 'bg-surface-hover text-foreground' : 'bg-surface-overlay text-foreground-muted placeholder:text-foreground-subtle')
|
|
75
|
+
placeholder: field.placeholder
|
|
77
76
|
})
|
|
78
77
|
]
|
|
79
78
|
});
|
|
@@ -33,12 +33,12 @@ const external_react_namespaceObject = require("react");
|
|
|
33
33
|
const utils_cjs_namespaceObject = require("../../lib/utils.cjs");
|
|
34
34
|
const Checkbox = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Root, {
|
|
35
35
|
ref: ref,
|
|
36
|
-
className: (0, utils_cjs_namespaceObject.cn)('peer h-4 w-4 shrink-0 cursor-pointer rounded-sm border border-border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', className),
|
|
36
|
+
className: (0, utils_cjs_namespaceObject.cn)('peer h-4 w-4 shrink-0 cursor-pointer rounded-sm border border-border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', 'future:hover:border-border-hover future:data-[state=checked]:border-foreground-accent future:data-[state=checked]:bg-foreground-accent future:data-[state=checked]:text-current', className),
|
|
37
37
|
...props,
|
|
38
38
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Indicator, {
|
|
39
|
-
className: (0, utils_cjs_namespaceObject.cn)('flex items-center justify-center text-current'),
|
|
39
|
+
className: (0, utils_cjs_namespaceObject.cn)('flex items-center justify-center text-current future:text-foreground-inverse'),
|
|
40
40
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Check, {
|
|
41
|
-
className: "h-4 w-4"
|
|
41
|
+
className: "h-4 w-4 future:h-3.5 future:w-3.5"
|
|
42
42
|
})
|
|
43
43
|
})
|
|
44
44
|
}));
|
|
@@ -5,12 +5,12 @@ import { forwardRef } from "react";
|
|
|
5
5
|
import { cn } from "../../lib/utils.js";
|
|
6
6
|
const Checkbox = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
7
7
|
ref: ref,
|
|
8
|
-
className: cn('peer h-4 w-4 shrink-0 cursor-pointer rounded-sm border border-border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', className),
|
|
8
|
+
className: cn('peer h-4 w-4 shrink-0 cursor-pointer rounded-sm border border-border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', 'future:hover:border-border-hover future:data-[state=checked]:border-foreground-accent future:data-[state=checked]:bg-foreground-accent future:data-[state=checked]:text-current', className),
|
|
9
9
|
...props,
|
|
10
10
|
children: /*#__PURE__*/ jsx(Indicator, {
|
|
11
|
-
className: cn('flex items-center justify-center text-current'),
|
|
11
|
+
className: cn('flex items-center justify-center text-current future:text-foreground-inverse'),
|
|
12
12
|
children: /*#__PURE__*/ jsx(Check, {
|
|
13
|
-
className: "h-4 w-4"
|
|
13
|
+
className: "h-4 w-4 future:h-3.5 future:w-3.5"
|
|
14
14
|
})
|
|
15
15
|
})
|
|
16
16
|
}));
|
|
@@ -24,16 +24,16 @@ var __webpack_modules__ = {
|
|
|
24
24
|
"./button-group" (module) {
|
|
25
25
|
module.exports = require("./button-group.cjs");
|
|
26
26
|
},
|
|
27
|
-
"
|
|
27
|
+
"@/components/ui/button" (module) {
|
|
28
28
|
module.exports = require("./button.cjs");
|
|
29
29
|
},
|
|
30
30
|
"@/components/ui/calendar" (module) {
|
|
31
31
|
module.exports = require("./calendar.cjs");
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"@/components/ui/card" (module) {
|
|
34
34
|
module.exports = require("./card.cjs");
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"@/components/ui/checkbox" (module) {
|
|
37
37
|
module.exports = require("./checkbox.cjs");
|
|
38
38
|
},
|
|
39
39
|
"./collapsible" (module) {
|
|
@@ -60,10 +60,10 @@ var __webpack_modules__ = {
|
|
|
60
60
|
"./dialog" (module) {
|
|
61
61
|
module.exports = require("./dialog.cjs");
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"@/components/ui/dropdown-menu" (module) {
|
|
64
64
|
module.exports = require("./dropdown-menu.cjs");
|
|
65
65
|
},
|
|
66
|
-
"
|
|
66
|
+
"@/components/ui/editable-cell" (module) {
|
|
67
67
|
module.exports = require("./editable-cell.cjs");
|
|
68
68
|
},
|
|
69
69
|
"./empty-state" (module) {
|
|
@@ -75,10 +75,10 @@ var __webpack_modules__ = {
|
|
|
75
75
|
"./hover-card" (module) {
|
|
76
76
|
module.exports = require("./hover-card.cjs");
|
|
77
77
|
},
|
|
78
|
-
"
|
|
78
|
+
"@/components/ui/input" (module) {
|
|
79
79
|
module.exports = require("./input.cjs");
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"@/components/ui/label" (module) {
|
|
82
82
|
module.exports = require("./label.cjs");
|
|
83
83
|
},
|
|
84
84
|
"./layout" (module) {
|
|
@@ -90,7 +90,7 @@ var __webpack_modules__ = {
|
|
|
90
90
|
"./pagination" (module) {
|
|
91
91
|
module.exports = require("./pagination.cjs");
|
|
92
92
|
},
|
|
93
|
-
"
|
|
93
|
+
"@/components/ui/popover" (module) {
|
|
94
94
|
module.exports = require("./popover.cjs");
|
|
95
95
|
},
|
|
96
96
|
"./progress" (module) {
|
|
@@ -138,7 +138,7 @@ var __webpack_modules__ = {
|
|
|
138
138
|
"./switch" (module) {
|
|
139
139
|
module.exports = require("./switch.cjs");
|
|
140
140
|
},
|
|
141
|
-
"
|
|
141
|
+
"@/components/ui/table" (module) {
|
|
142
142
|
module.exports = require("./table.cjs");
|
|
143
143
|
},
|
|
144
144
|
"./tabs" (module) {
|
|
@@ -150,7 +150,7 @@ var __webpack_modules__ = {
|
|
|
150
150
|
"./toggle-group" (module) {
|
|
151
151
|
module.exports = require("./toggle-group.cjs");
|
|
152
152
|
},
|
|
153
|
-
"
|
|
153
|
+
"@/components/ui/toggle" (module) {
|
|
154
154
|
module.exports = require("./toggle.cjs");
|
|
155
155
|
},
|
|
156
156
|
"./tooltip" (module) {
|
|
@@ -255,7 +255,7 @@ var __webpack_exports__ = {};
|
|
|
255
255
|
"default"
|
|
256
256
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_breadcrumb__rspack_import_6[__rspack_import_key];
|
|
257
257
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
258
|
-
var _button__rspack_import_7 = __webpack_require__("
|
|
258
|
+
var _button__rspack_import_7 = __webpack_require__("@/components/ui/button");
|
|
259
259
|
var __rspack_reexport = {};
|
|
260
260
|
for(const __rspack_import_key in _button__rspack_import_7)if ([
|
|
261
261
|
"TreeView",
|
|
@@ -276,14 +276,14 @@ var __webpack_exports__ = {};
|
|
|
276
276
|
"default"
|
|
277
277
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_calendar__rspack_import_9[__rspack_import_key];
|
|
278
278
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
279
|
-
var _card__rspack_import_10 = __webpack_require__("
|
|
279
|
+
var _card__rspack_import_10 = __webpack_require__("@/components/ui/card");
|
|
280
280
|
var __rspack_reexport = {};
|
|
281
281
|
for(const __rspack_import_key in _card__rspack_import_10)if ([
|
|
282
282
|
"TreeView",
|
|
283
283
|
"default"
|
|
284
284
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_card__rspack_import_10[__rspack_import_key];
|
|
285
285
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
286
|
-
var _checkbox__rspack_import_11 = __webpack_require__("
|
|
286
|
+
var _checkbox__rspack_import_11 = __webpack_require__("@/components/ui/checkbox");
|
|
287
287
|
var __rspack_reexport = {};
|
|
288
288
|
for(const __rspack_import_key in _checkbox__rspack_import_11)if ([
|
|
289
289
|
"TreeView",
|
|
@@ -346,14 +346,14 @@ var __webpack_exports__ = {};
|
|
|
346
346
|
"default"
|
|
347
347
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dialog__rspack_import_19[__rspack_import_key];
|
|
348
348
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
349
|
-
var _dropdown_menu__rspack_import_20 = __webpack_require__("
|
|
349
|
+
var _dropdown_menu__rspack_import_20 = __webpack_require__("@/components/ui/dropdown-menu");
|
|
350
350
|
var __rspack_reexport = {};
|
|
351
351
|
for(const __rspack_import_key in _dropdown_menu__rspack_import_20)if ([
|
|
352
352
|
"TreeView",
|
|
353
353
|
"default"
|
|
354
354
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dropdown_menu__rspack_import_20[__rspack_import_key];
|
|
355
355
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
356
|
-
var _editable_cell__rspack_import_21 = __webpack_require__("
|
|
356
|
+
var _editable_cell__rspack_import_21 = __webpack_require__("@/components/ui/editable-cell");
|
|
357
357
|
var __rspack_reexport = {};
|
|
358
358
|
for(const __rspack_import_key in _editable_cell__rspack_import_21)if ([
|
|
359
359
|
"TreeView",
|
|
@@ -381,14 +381,14 @@ var __webpack_exports__ = {};
|
|
|
381
381
|
"default"
|
|
382
382
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_24[__rspack_import_key];
|
|
383
383
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
384
|
-
var _input__rspack_import_25 = __webpack_require__("
|
|
384
|
+
var _input__rspack_import_25 = __webpack_require__("@/components/ui/input");
|
|
385
385
|
var __rspack_reexport = {};
|
|
386
386
|
for(const __rspack_import_key in _input__rspack_import_25)if ([
|
|
387
387
|
"TreeView",
|
|
388
388
|
"default"
|
|
389
389
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input__rspack_import_25[__rspack_import_key];
|
|
390
390
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
391
|
-
var _label__rspack_import_26 = __webpack_require__("
|
|
391
|
+
var _label__rspack_import_26 = __webpack_require__("@/components/ui/label");
|
|
392
392
|
var __rspack_reexport = {};
|
|
393
393
|
for(const __rspack_import_key in _label__rspack_import_26)if ([
|
|
394
394
|
"TreeView",
|
|
@@ -416,7 +416,7 @@ var __webpack_exports__ = {};
|
|
|
416
416
|
"default"
|
|
417
417
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_pagination__rspack_import_29[__rspack_import_key];
|
|
418
418
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
419
|
-
var _popover__rspack_import_30 = __webpack_require__("
|
|
419
|
+
var _popover__rspack_import_30 = __webpack_require__("@/components/ui/popover");
|
|
420
420
|
var __rspack_reexport = {};
|
|
421
421
|
for(const __rspack_import_key in _popover__rspack_import_30)if ([
|
|
422
422
|
"TreeView",
|
|
@@ -528,7 +528,7 @@ var __webpack_exports__ = {};
|
|
|
528
528
|
"default"
|
|
529
529
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_switch__rspack_import_45[__rspack_import_key];
|
|
530
530
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
531
|
-
var _table__rspack_import_46 = __webpack_require__("
|
|
531
|
+
var _table__rspack_import_46 = __webpack_require__("@/components/ui/table");
|
|
532
532
|
var __rspack_reexport = {};
|
|
533
533
|
for(const __rspack_import_key in _table__rspack_import_46)if ([
|
|
534
534
|
"TreeView",
|
|
@@ -549,7 +549,7 @@ var __webpack_exports__ = {};
|
|
|
549
549
|
"default"
|
|
550
550
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_textarea__rspack_import_48[__rspack_import_key];
|
|
551
551
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
552
|
-
var _toggle__rspack_import_49 = __webpack_require__("
|
|
552
|
+
var _toggle__rspack_import_49 = __webpack_require__("@/components/ui/toggle");
|
|
553
553
|
var __rspack_reexport = {};
|
|
554
554
|
for(const __rspack_import_key in _toggle__rspack_import_49)if ([
|
|
555
555
|
"TreeView",
|
|
@@ -31,7 +31,7 @@ const external_react_namespaceObject = require("react");
|
|
|
31
31
|
const utils_cjs_namespaceObject = require("../../lib/utils.cjs");
|
|
32
32
|
const Input = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, type, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("input", {
|
|
33
33
|
type: type,
|
|
34
|
-
className: (0, utils_cjs_namespaceObject.cn)('flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className),
|
|
34
|
+
className: (0, utils_cjs_namespaceObject.cn)('flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', 'future:h-10 future:rounded-xl future:border-0 future:bg-surface-overlay future:py-2 future:text-sm future:shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05)] future:placeholder:text-foreground-muted future:placeholder:font-normal future:focus-visible:ring-offset-2 future:focus-visible:ring-offset-background', className),
|
|
35
35
|
ref: ref,
|
|
36
36
|
...props
|
|
37
37
|
}));
|
|
@@ -3,7 +3,7 @@ import { forwardRef } from "react";
|
|
|
3
3
|
import { cn } from "../../lib/utils.js";
|
|
4
4
|
const Input = /*#__PURE__*/ forwardRef(({ className, type, ...props }, ref)=>/*#__PURE__*/ jsx("input", {
|
|
5
5
|
type: type,
|
|
6
|
-
className: cn('flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className),
|
|
6
|
+
className: cn('flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', 'future:h-10 future:rounded-xl future:border-0 future:bg-surface-overlay future:py-2 future:text-sm future:shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05)] future:placeholder:text-foreground-muted future:placeholder:font-normal future:focus-visible:ring-offset-2 future:focus-visible:ring-offset-background', className),
|
|
7
7
|
ref: ref,
|
|
8
8
|
...props
|
|
9
9
|
}));
|
|
@@ -40,12 +40,12 @@ const RadioGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ cl
|
|
|
40
40
|
RadioGroup.displayName = react_radio_group_namespaceObject.Root.displayName;
|
|
41
41
|
const RadioGroupItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Item, {
|
|
42
42
|
ref: ref,
|
|
43
|
-
className: (0, index_cjs_namespaceObject.cn)('aspect-square h-4 w-4 cursor-pointer rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className),
|
|
43
|
+
className: (0, index_cjs_namespaceObject.cn)('aspect-square h-4 w-4 cursor-pointer rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', 'future:border-border future:text-foreground future:hover:border-border-hover future:data-[state=checked]:border-foreground-muted', className),
|
|
44
44
|
...props,
|
|
45
45
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Indicator, {
|
|
46
46
|
className: "flex items-center justify-center",
|
|
47
47
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Circle, {
|
|
48
|
-
className: "h-2.5 w-2.5 fill-current text-current"
|
|
48
|
+
className: "h-2.5 w-2.5 fill-current text-current future:fill-foreground-accent future:text-foreground-accent"
|
|
49
49
|
})
|
|
50
50
|
})
|
|
51
51
|
}));
|
|
@@ -11,12 +11,12 @@ const RadioGroup = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#_
|
|
|
11
11
|
RadioGroup.displayName = Root.displayName;
|
|
12
12
|
const RadioGroupItem = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Item, {
|
|
13
13
|
ref: ref,
|
|
14
|
-
className: cn('aspect-square h-4 w-4 cursor-pointer rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className),
|
|
14
|
+
className: cn('aspect-square h-4 w-4 cursor-pointer rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', 'future:border-border future:text-foreground future:hover:border-border-hover future:data-[state=checked]:border-foreground-muted', className),
|
|
15
15
|
...props,
|
|
16
16
|
children: /*#__PURE__*/ jsx(Indicator, {
|
|
17
17
|
className: "flex items-center justify-center",
|
|
18
18
|
children: /*#__PURE__*/ jsx(Circle, {
|
|
19
|
-
className: "h-2.5 w-2.5 fill-current text-current"
|
|
19
|
+
className: "h-2.5 w-2.5 fill-current text-current future:fill-foreground-accent future:text-foreground-accent"
|
|
20
20
|
})
|
|
21
21
|
})
|
|
22
22
|
}));
|
package/dist/styles.css
CHANGED
|
@@ -279,6 +279,7 @@
|
|
|
279
279
|
--default-mono-font-family: var(--font-mono);
|
|
280
280
|
--color-brand: var(--brand);
|
|
281
281
|
--color-foreground-inverse: var(--foreground-inverse);
|
|
282
|
+
--color-border-hover: var(--border-hover);
|
|
282
283
|
--color-background: var(--background);
|
|
283
284
|
--color-foreground: var(--foreground);
|
|
284
285
|
--color-card: var(--card);
|
|
@@ -3956,6 +3957,10 @@
|
|
|
3956
3957
|
--tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
|
|
3957
3958
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3958
3959
|
}
|
|
3960
|
+
.shadow-\[0px_1px_2px_0px_rgba\(0\,0\,0\,0\.05\)\] {
|
|
3961
|
+
--tw-shadow: 0px 1px 2px 0px var(--tw-shadow-color, rgba(0,0,0,0.05));
|
|
3962
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3963
|
+
}
|
|
3959
3964
|
.shadow-\[0px_4px_4px_0px_rgba\(0\,0\,0\,0\.05\)\] {
|
|
3960
3965
|
--tw-shadow: 0px 4px 4px 0px var(--tw-shadow-color, rgba(0,0,0,0.05));
|
|
3961
3966
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -4426,6 +4431,28 @@
|
|
|
4426
4431
|
border-color: var(--border-hover);
|
|
4427
4432
|
}
|
|
4428
4433
|
}
|
|
4434
|
+
.focus-within\:ring-2 {
|
|
4435
|
+
&:focus-within {
|
|
4436
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
4437
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
4438
|
+
}
|
|
4439
|
+
}
|
|
4440
|
+
.focus-within\:ring-ring {
|
|
4441
|
+
&:focus-within {
|
|
4442
|
+
--tw-ring-color: var(--ring);
|
|
4443
|
+
}
|
|
4444
|
+
}
|
|
4445
|
+
.focus-within\:ring-offset-2 {
|
|
4446
|
+
&:focus-within {
|
|
4447
|
+
--tw-ring-offset-width: 2px;
|
|
4448
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
4449
|
+
}
|
|
4450
|
+
}
|
|
4451
|
+
.focus-within\:ring-offset-background {
|
|
4452
|
+
&:focus-within {
|
|
4453
|
+
--tw-ring-offset-color: var(--background);
|
|
4454
|
+
}
|
|
4455
|
+
}
|
|
4429
4456
|
.hover\:scale-105 {
|
|
4430
4457
|
&:hover {
|
|
4431
4458
|
@media (hover: hover) {
|
|
@@ -5687,6 +5714,188 @@
|
|
|
5687
5714
|
color: var(--color-red-400);
|
|
5688
5715
|
}
|
|
5689
5716
|
}
|
|
5717
|
+
.future\:h-3\.5 {
|
|
5718
|
+
:is(.future-dark, .future-light) & {
|
|
5719
|
+
height: calc(var(--spacing) * 3.5);
|
|
5720
|
+
}
|
|
5721
|
+
}
|
|
5722
|
+
.future\:h-10 {
|
|
5723
|
+
:is(.future-dark, .future-light) & {
|
|
5724
|
+
height: calc(var(--spacing) * 10);
|
|
5725
|
+
}
|
|
5726
|
+
}
|
|
5727
|
+
.future\:h-full {
|
|
5728
|
+
:is(.future-dark, .future-light) & {
|
|
5729
|
+
height: 100%;
|
|
5730
|
+
}
|
|
5731
|
+
}
|
|
5732
|
+
.future\:w-3\.5 {
|
|
5733
|
+
:is(.future-dark, .future-light) & {
|
|
5734
|
+
width: calc(var(--spacing) * 3.5);
|
|
5735
|
+
}
|
|
5736
|
+
}
|
|
5737
|
+
.future\:rounded-none {
|
|
5738
|
+
:is(.future-dark, .future-light) & {
|
|
5739
|
+
border-radius: 0;
|
|
5740
|
+
}
|
|
5741
|
+
}
|
|
5742
|
+
.future\:rounded-xl {
|
|
5743
|
+
:is(.future-dark, .future-light) & {
|
|
5744
|
+
border-radius: var(--radius-xl);
|
|
5745
|
+
}
|
|
5746
|
+
}
|
|
5747
|
+
.future\:border-0 {
|
|
5748
|
+
:is(.future-dark, .future-light) & {
|
|
5749
|
+
border-style: var(--tw-border-style);
|
|
5750
|
+
border-width: 0px;
|
|
5751
|
+
}
|
|
5752
|
+
}
|
|
5753
|
+
.future\:border-border {
|
|
5754
|
+
:is(.future-dark, .future-light) & {
|
|
5755
|
+
border-color: var(--ap-wind-border);
|
|
5756
|
+
}
|
|
5757
|
+
}
|
|
5758
|
+
.future\:bg-surface-overlay {
|
|
5759
|
+
:is(.future-dark, .future-light) & {
|
|
5760
|
+
background-color: var(--surface-overlay);
|
|
5761
|
+
}
|
|
5762
|
+
}
|
|
5763
|
+
.future\:bg-transparent {
|
|
5764
|
+
:is(.future-dark, .future-light) & {
|
|
5765
|
+
background-color: transparent;
|
|
5766
|
+
}
|
|
5767
|
+
}
|
|
5768
|
+
.future\:fill-foreground-accent {
|
|
5769
|
+
:is(.future-dark, .future-light) & {
|
|
5770
|
+
fill: var(--foreground-accent);
|
|
5771
|
+
}
|
|
5772
|
+
}
|
|
5773
|
+
.future\:py-0 {
|
|
5774
|
+
:is(.future-dark, .future-light) & {
|
|
5775
|
+
padding-block: calc(var(--spacing) * 0);
|
|
5776
|
+
}
|
|
5777
|
+
}
|
|
5778
|
+
.future\:py-2 {
|
|
5779
|
+
:is(.future-dark, .future-light) & {
|
|
5780
|
+
padding-block: calc(var(--spacing) * 2);
|
|
5781
|
+
}
|
|
5782
|
+
}
|
|
5783
|
+
.future\:text-sm {
|
|
5784
|
+
:is(.future-dark, .future-light) & {
|
|
5785
|
+
font-size: var(--text-sm);
|
|
5786
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
5787
|
+
}
|
|
5788
|
+
}
|
|
5789
|
+
.future\:text-foreground {
|
|
5790
|
+
:is(.future-dark, .future-light) & {
|
|
5791
|
+
color: var(--foreground);
|
|
5792
|
+
}
|
|
5793
|
+
}
|
|
5794
|
+
.future\:text-foreground-accent {
|
|
5795
|
+
:is(.future-dark, .future-light) & {
|
|
5796
|
+
color: var(--foreground-accent);
|
|
5797
|
+
}
|
|
5798
|
+
}
|
|
5799
|
+
.future\:text-foreground-inverse {
|
|
5800
|
+
:is(.future-dark, .future-light) & {
|
|
5801
|
+
color: var(--foreground-inverse);
|
|
5802
|
+
}
|
|
5803
|
+
}
|
|
5804
|
+
.future\:shadow-\[0px_1px_2px_0px_rgba\(0\,0\,0\,0\.05\)\] {
|
|
5805
|
+
:is(.future-dark, .future-light) & {
|
|
5806
|
+
--tw-shadow: 0px 1px 2px 0px var(--tw-shadow-color, rgba(0,0,0,0.05));
|
|
5807
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
5808
|
+
}
|
|
5809
|
+
}
|
|
5810
|
+
.future\:shadow-none {
|
|
5811
|
+
:is(.future-dark, .future-light) & {
|
|
5812
|
+
--tw-shadow: 0 0 #0000;
|
|
5813
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
5814
|
+
}
|
|
5815
|
+
}
|
|
5816
|
+
.future\:placeholder\:font-normal {
|
|
5817
|
+
:is(.future-dark, .future-light) & {
|
|
5818
|
+
&::placeholder {
|
|
5819
|
+
--tw-font-weight: var(--font-weight-normal);
|
|
5820
|
+
font-weight: var(--font-weight-normal);
|
|
5821
|
+
}
|
|
5822
|
+
}
|
|
5823
|
+
}
|
|
5824
|
+
.future\:placeholder\:text-foreground-muted {
|
|
5825
|
+
:is(.future-dark, .future-light) & {
|
|
5826
|
+
&::placeholder {
|
|
5827
|
+
color: var(--foreground-muted);
|
|
5828
|
+
}
|
|
5829
|
+
}
|
|
5830
|
+
}
|
|
5831
|
+
.future\:hover\:border-border-hover {
|
|
5832
|
+
:is(.future-dark, .future-light) & {
|
|
5833
|
+
&:hover {
|
|
5834
|
+
@media (hover: hover) {
|
|
5835
|
+
border-color: var(--border-hover);
|
|
5836
|
+
}
|
|
5837
|
+
}
|
|
5838
|
+
}
|
|
5839
|
+
}
|
|
5840
|
+
.future\:focus-visible\:ring-0 {
|
|
5841
|
+
:is(.future-dark, .future-light) & {
|
|
5842
|
+
&:focus-visible {
|
|
5843
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
5844
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
5845
|
+
}
|
|
5846
|
+
}
|
|
5847
|
+
}
|
|
5848
|
+
.future\:focus-visible\:ring-offset-0 {
|
|
5849
|
+
:is(.future-dark, .future-light) & {
|
|
5850
|
+
&:focus-visible {
|
|
5851
|
+
--tw-ring-offset-width: 0px;
|
|
5852
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
5853
|
+
}
|
|
5854
|
+
}
|
|
5855
|
+
}
|
|
5856
|
+
.future\:focus-visible\:ring-offset-2 {
|
|
5857
|
+
:is(.future-dark, .future-light) & {
|
|
5858
|
+
&:focus-visible {
|
|
5859
|
+
--tw-ring-offset-width: 2px;
|
|
5860
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
5861
|
+
}
|
|
5862
|
+
}
|
|
5863
|
+
}
|
|
5864
|
+
.future\:focus-visible\:ring-offset-background {
|
|
5865
|
+
:is(.future-dark, .future-light) & {
|
|
5866
|
+
&:focus-visible {
|
|
5867
|
+
--tw-ring-offset-color: var(--background);
|
|
5868
|
+
}
|
|
5869
|
+
}
|
|
5870
|
+
}
|
|
5871
|
+
.future\:data-\[state\=checked\]\:border-foreground-accent {
|
|
5872
|
+
:is(.future-dark, .future-light) & {
|
|
5873
|
+
&[data-state="checked"] {
|
|
5874
|
+
border-color: var(--foreground-accent);
|
|
5875
|
+
}
|
|
5876
|
+
}
|
|
5877
|
+
}
|
|
5878
|
+
.future\:data-\[state\=checked\]\:border-foreground-muted {
|
|
5879
|
+
:is(.future-dark, .future-light) & {
|
|
5880
|
+
&[data-state="checked"] {
|
|
5881
|
+
border-color: var(--foreground-muted);
|
|
5882
|
+
}
|
|
5883
|
+
}
|
|
5884
|
+
}
|
|
5885
|
+
.future\:data-\[state\=checked\]\:bg-foreground-accent {
|
|
5886
|
+
:is(.future-dark, .future-light) & {
|
|
5887
|
+
&[data-state="checked"] {
|
|
5888
|
+
background-color: var(--foreground-accent);
|
|
5889
|
+
}
|
|
5890
|
+
}
|
|
5891
|
+
}
|
|
5892
|
+
.future\:data-\[state\=checked\]\:text-current {
|
|
5893
|
+
:is(.future-dark, .future-light) & {
|
|
5894
|
+
&[data-state="checked"] {
|
|
5895
|
+
color: currentcolor;
|
|
5896
|
+
}
|
|
5897
|
+
}
|
|
5898
|
+
}
|
|
5690
5899
|
.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground {
|
|
5691
5900
|
& .recharts-cartesian-axis-tick text {
|
|
5692
5901
|
fill: var(--muted-foreground);
|
|
@@ -8234,6 +8443,35 @@ body.canvas, .canvas {
|
|
|
8234
8443
|
opacity: 0;
|
|
8235
8444
|
}
|
|
8236
8445
|
}
|
|
8446
|
+
@keyframes glow {
|
|
8447
|
+
0% {
|
|
8448
|
+
box-shadow: 0 0 0 0 var(--_glow-shadow, currentColor);
|
|
8449
|
+
}
|
|
8450
|
+
70% {
|
|
8451
|
+
box-shadow: 0 0 0 10px transparent;
|
|
8452
|
+
}
|
|
8453
|
+
100% {
|
|
8454
|
+
box-shadow: 0 0 0 0 transparent;
|
|
8455
|
+
}
|
|
8456
|
+
}
|
|
8457
|
+
.future-dark, .dark, .dark-hc {
|
|
8458
|
+
scrollbar-width: thin;
|
|
8459
|
+
scrollbar-color: var(--color-border) transparent;
|
|
8460
|
+
& *::-webkit-scrollbar {
|
|
8461
|
+
width: 6px;
|
|
8462
|
+
height: 6px;
|
|
8463
|
+
}
|
|
8464
|
+
& *::-webkit-scrollbar-track {
|
|
8465
|
+
background: transparent;
|
|
8466
|
+
}
|
|
8467
|
+
& *::-webkit-scrollbar-thumb {
|
|
8468
|
+
background-color: var(--color-border);
|
|
8469
|
+
border-radius: 9999px;
|
|
8470
|
+
}
|
|
8471
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
8472
|
+
background-color: var(--color-border-hover);
|
|
8473
|
+
}
|
|
8474
|
+
}
|
|
8237
8475
|
@property --tw-translate-x {
|
|
8238
8476
|
syntax: "*";
|
|
8239
8477
|
inherits: false;
|
package/dist/tailwind.css
CHANGED
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
/* 12px — base border-radius for buttons and UI elements */
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/* Variant active when the component is inside a Future Dark or Light theme */
|
|
22
|
+
@custom-variant future (:is(.future-dark, .future-light) &);
|
|
23
|
+
|
|
21
24
|
/**
|
|
22
25
|
* Individual theme definitions with fallback HEX values
|
|
23
26
|
* Each theme uses semantic tokens from apollo-core with hardcoded fallbacks
|
|
@@ -1223,4 +1226,77 @@ body.canvas, .canvas {
|
|
|
1223
1226
|
@theme inline {
|
|
1224
1227
|
--animate-collapsible-down: collapsible-down 200ms ease-out;
|
|
1225
1228
|
--animate-collapsible-up: collapsible-up 200ms ease-out;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/* ============================================================================
|
|
1232
|
+
* Glow — attention-drawing ring pulse
|
|
1233
|
+
*
|
|
1234
|
+
* `animate-glow` drives an expanding box-shadow ring around any element.
|
|
1235
|
+
* The color and intensity are driven by CSS variables so the same utility
|
|
1236
|
+
* works for status indicators, brand highlights, ad-hoc attention prompts,
|
|
1237
|
+
* or any custom color.
|
|
1238
|
+
*
|
|
1239
|
+
* Knobs (set via inline style or a Tailwind arbitrary value):
|
|
1240
|
+
* --glow-color source color (default: currentColor)
|
|
1241
|
+
* --glow-strength mix percent (default: 40%)
|
|
1242
|
+
*
|
|
1243
|
+
* Examples:
|
|
1244
|
+
* <div className="animate-glow [--glow-color:var(--error)]" />
|
|
1245
|
+
* <div className="animate-glow [--glow-color:var(--info)] [--glow-strength:60%]" />
|
|
1246
|
+
* <div className="text-info animate-glow" /> // picks up --brand or falls back to currentColor
|
|
1247
|
+
*
|
|
1248
|
+
* Implementation note: the color-mix lives in the utility body (not the
|
|
1249
|
+
* keyframe) to avoid a lightningcss bug that drops keyframe declarations
|
|
1250
|
+
* containing `color-mix(... var(...) ...)`. The internal `--_glow-shadow`
|
|
1251
|
+
* holds the pre-mixed value for the keyframe to consume.
|
|
1252
|
+
* ============================================================================ */
|
|
1253
|
+
|
|
1254
|
+
@keyframes glow {
|
|
1255
|
+
0% { box-shadow: 0 0 0 0 var(--_glow-shadow, currentColor); }
|
|
1256
|
+
70% { box-shadow: 0 0 0 10px transparent; }
|
|
1257
|
+
100% { box-shadow: 0 0 0 0 transparent; }
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
@utility animate-glow {
|
|
1261
|
+
--_glow-shadow: color-mix(
|
|
1262
|
+
in srgb,
|
|
1263
|
+
var(--glow-color, var(--brand, currentColor)) var(--glow-strength, 40%),
|
|
1264
|
+
transparent
|
|
1265
|
+
);
|
|
1266
|
+
animation: glow 2s infinite;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/* ============================================================================
|
|
1270
|
+
* Theme-aware scrollbars
|
|
1271
|
+
*
|
|
1272
|
+
* Dark themes: future-dark + dark-hc are applied to <html>;
|
|
1273
|
+
* dark + dark-hc are applied to <body>. Both cases are covered by the
|
|
1274
|
+
* class selectors below since * matches all descendants.
|
|
1275
|
+
* ============================================================================ */
|
|
1276
|
+
|
|
1277
|
+
.future-dark,
|
|
1278
|
+
.dark,
|
|
1279
|
+
.dark-hc {
|
|
1280
|
+
/* Firefox — inherits down the tree */
|
|
1281
|
+
scrollbar-width: thin;
|
|
1282
|
+
scrollbar-color: var(--color-border) transparent;
|
|
1283
|
+
|
|
1284
|
+
/* WebKit — pseudo-elements don't inherit, must target descendants */
|
|
1285
|
+
& *::-webkit-scrollbar {
|
|
1286
|
+
width: 6px;
|
|
1287
|
+
height: 6px;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
& *::-webkit-scrollbar-track {
|
|
1291
|
+
background: transparent;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
& *::-webkit-scrollbar-thumb {
|
|
1295
|
+
background-color: var(--color-border);
|
|
1296
|
+
border-radius: 9999px;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
1300
|
+
background-color: var(--color-border-hover);
|
|
1301
|
+
}
|
|
1226
1302
|
}
|