@uipath/apollo-wind 2.8.0 → 2.10.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/dist/components/ui/code-block.cjs +5 -4
- package/dist/components/ui/code-block.js +5 -4
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/switch.cjs +34 -4
- package/dist/components/ui/switch.d.ts +8 -2
- package/dist/components/ui/switch.js +31 -4
- package/dist/styles.css +17 -0
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@ const THEME_CONFIG = {
|
|
|
52
52
|
},
|
|
53
53
|
'future-dark': {
|
|
54
54
|
prismStyle: index_js_namespaceObject.vscDarkPlus,
|
|
55
|
-
bg: '
|
|
55
|
+
bg: 'var(--surface-raised)',
|
|
56
56
|
headerBg: '#09090b',
|
|
57
57
|
labelColor: '#a1a1aa',
|
|
58
58
|
iconColor: '#71717a',
|
|
@@ -60,7 +60,7 @@ const THEME_CONFIG = {
|
|
|
60
60
|
},
|
|
61
61
|
'future-light': {
|
|
62
62
|
prismStyle: index_js_namespaceObject.vs,
|
|
63
|
-
bg: '
|
|
63
|
+
bg: 'var(--surface-raised)',
|
|
64
64
|
headerBg: '#f4f4f5',
|
|
65
65
|
labelColor: '#52525b',
|
|
66
66
|
iconColor: '#71717a',
|
|
@@ -164,13 +164,13 @@ function CodeBlock({ children, language = 'tsx', showLineNumbers = true, showCop
|
|
|
164
164
|
}, []);
|
|
165
165
|
const showHeader = !!(fileName || language || showCopyButton);
|
|
166
166
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
167
|
-
className: (0, index_cjs_namespaceObject.cn)('overflow-hidden rounded-lg border border-border font-mono text-sm', className),
|
|
167
|
+
className: (0, index_cjs_namespaceObject.cn)('overflow-hidden rounded-lg border border-border future:border-border-subtle font-mono text-sm', className),
|
|
168
168
|
style: {
|
|
169
169
|
background: config.bg
|
|
170
170
|
},
|
|
171
171
|
children: [
|
|
172
172
|
showHeader && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
173
|
-
className: "flex items-center justify-between px-4 py-2 border-b border-border",
|
|
173
|
+
className: "flex items-center justify-between px-4 py-2 border-b border-border future:border-border-subtle",
|
|
174
174
|
style: {
|
|
175
175
|
background: config.headerBg
|
|
176
176
|
},
|
|
@@ -203,6 +203,7 @@ function CodeBlock({ children, language = 'tsx', showLineNumbers = true, showCop
|
|
|
203
203
|
wrapLongLines: wrapLines,
|
|
204
204
|
customStyle: {
|
|
205
205
|
margin: 0,
|
|
206
|
+
border: 'none',
|
|
206
207
|
borderRadius: 0,
|
|
207
208
|
background: 'transparent',
|
|
208
209
|
padding: '1rem',
|
|
@@ -24,7 +24,7 @@ const THEME_CONFIG = {
|
|
|
24
24
|
},
|
|
25
25
|
'future-dark': {
|
|
26
26
|
prismStyle: vscDarkPlus,
|
|
27
|
-
bg: '
|
|
27
|
+
bg: 'var(--surface-raised)',
|
|
28
28
|
headerBg: '#09090b',
|
|
29
29
|
labelColor: '#a1a1aa',
|
|
30
30
|
iconColor: '#71717a',
|
|
@@ -32,7 +32,7 @@ const THEME_CONFIG = {
|
|
|
32
32
|
},
|
|
33
33
|
'future-light': {
|
|
34
34
|
prismStyle: vs,
|
|
35
|
-
bg: '
|
|
35
|
+
bg: 'var(--surface-raised)',
|
|
36
36
|
headerBg: '#f4f4f5',
|
|
37
37
|
labelColor: '#52525b',
|
|
38
38
|
iconColor: '#71717a',
|
|
@@ -136,13 +136,13 @@ function CodeBlock({ children, language = 'tsx', showLineNumbers = true, showCop
|
|
|
136
136
|
}, []);
|
|
137
137
|
const showHeader = !!(fileName || language || showCopyButton);
|
|
138
138
|
return /*#__PURE__*/ jsxs("div", {
|
|
139
|
-
className: cn('overflow-hidden rounded-lg border border-border font-mono text-sm', className),
|
|
139
|
+
className: cn('overflow-hidden rounded-lg border border-border future:border-border-subtle font-mono text-sm', className),
|
|
140
140
|
style: {
|
|
141
141
|
background: config.bg
|
|
142
142
|
},
|
|
143
143
|
children: [
|
|
144
144
|
showHeader && /*#__PURE__*/ jsxs("div", {
|
|
145
|
-
className: "flex items-center justify-between px-4 py-2 border-b border-border",
|
|
145
|
+
className: "flex items-center justify-between px-4 py-2 border-b border-border future:border-border-subtle",
|
|
146
146
|
style: {
|
|
147
147
|
background: config.headerBg
|
|
148
148
|
},
|
|
@@ -175,6 +175,7 @@ function CodeBlock({ children, language = 'tsx', showLineNumbers = true, showCop
|
|
|
175
175
|
wrapLongLines: wrapLines,
|
|
176
176
|
customStyle: {
|
|
177
177
|
margin: 0,
|
|
178
|
+
border: 'none',
|
|
178
179
|
borderRadius: 0,
|
|
179
180
|
background: 'transparent',
|
|
180
181
|
padding: '1rem',
|
|
@@ -42,7 +42,7 @@ var __webpack_modules__ = {
|
|
|
42
42
|
"./combobox" (module) {
|
|
43
43
|
module.exports = require("./combobox.cjs");
|
|
44
44
|
},
|
|
45
|
-
"
|
|
45
|
+
"./command" (module) {
|
|
46
46
|
module.exports = require("./command.cjs");
|
|
47
47
|
},
|
|
48
48
|
"./context-menu" (module) {
|
|
@@ -63,7 +63,7 @@ var __webpack_modules__ = {
|
|
|
63
63
|
"./dropdown-menu" (module) {
|
|
64
64
|
module.exports = require("./dropdown-menu.cjs");
|
|
65
65
|
},
|
|
66
|
-
"
|
|
66
|
+
"./editable-cell" (module) {
|
|
67
67
|
module.exports = require("./editable-cell.cjs");
|
|
68
68
|
},
|
|
69
69
|
"./empty-state" (module) {
|
|
@@ -304,7 +304,7 @@ var __webpack_exports__ = {};
|
|
|
304
304
|
"default"
|
|
305
305
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_combobox__rspack_import_13[__rspack_import_key];
|
|
306
306
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
307
|
-
var _command__rspack_import_14 = __webpack_require__("
|
|
307
|
+
var _command__rspack_import_14 = __webpack_require__("./command");
|
|
308
308
|
var __rspack_reexport = {};
|
|
309
309
|
for(const __rspack_import_key in _command__rspack_import_14)if ([
|
|
310
310
|
"TreeView",
|
|
@@ -353,7 +353,7 @@ var __webpack_exports__ = {};
|
|
|
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__("./editable-cell");
|
|
357
357
|
var __rspack_reexport = {};
|
|
358
358
|
for(const __rspack_import_key in _editable_cell__rspack_import_21)if ([
|
|
359
359
|
"TreeView",
|
|
@@ -24,24 +24,54 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
switchVariants: ()=>switchVariants,
|
|
27
28
|
Switch: ()=>Switch
|
|
28
29
|
});
|
|
29
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
31
|
const react_switch_namespaceObject = require("@radix-ui/react-switch");
|
|
32
|
+
const external_class_variance_authority_namespaceObject = require("class-variance-authority");
|
|
31
33
|
const external_react_namespaceObject = require("react");
|
|
32
34
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
+
const switchVariants = (0, external_class_variance_authority_namespaceObject.cva)('peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-border', {
|
|
36
|
+
variants: {
|
|
37
|
+
size: {
|
|
38
|
+
default: 'h-6 w-11',
|
|
39
|
+
sm: 'h-5 w-9'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
size: 'default'
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const switchThumbVariants = (0, external_class_variance_authority_namespaceObject.cva)('pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0', {
|
|
47
|
+
variants: {
|
|
48
|
+
size: {
|
|
49
|
+
default: 'h-5 w-5 data-[state=checked]:translate-x-5',
|
|
50
|
+
sm: 'h-4 w-4 data-[state=checked]:translate-x-4'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
defaultVariants: {
|
|
54
|
+
size: 'default'
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const Switch = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, size, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Root, {
|
|
58
|
+
className: (0, index_cjs_namespaceObject.cn)(switchVariants({
|
|
59
|
+
size
|
|
60
|
+
}), className),
|
|
35
61
|
...props,
|
|
36
62
|
ref: ref,
|
|
37
63
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Thumb, {
|
|
38
|
-
className: (0, index_cjs_namespaceObject.cn)(
|
|
64
|
+
className: (0, index_cjs_namespaceObject.cn)(switchThumbVariants({
|
|
65
|
+
size
|
|
66
|
+
}))
|
|
39
67
|
})
|
|
40
68
|
}));
|
|
41
69
|
Switch.displayName = react_switch_namespaceObject.Root.displayName;
|
|
42
70
|
exports.Switch = __webpack_exports__.Switch;
|
|
71
|
+
exports.switchVariants = __webpack_exports__.switchVariants;
|
|
43
72
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
44
|
-
"Switch"
|
|
73
|
+
"Switch",
|
|
74
|
+
"switchVariants"
|
|
45
75
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
46
76
|
Object.defineProperty(exports, '__esModule', {
|
|
47
77
|
value: true
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
declare const
|
|
4
|
-
|
|
4
|
+
declare const switchVariants: (props?: ({
|
|
5
|
+
size?: "default" | "sm" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
8
|
+
size?: "default" | "sm" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export { Switch, switchVariants };
|
|
@@ -1,14 +1,41 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Root, Thumb } from "@radix-ui/react-switch";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
3
4
|
import { forwardRef } from "react";
|
|
4
5
|
import { cn } from "../../lib/index.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
6
|
+
const switchVariants = cva('peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-border', {
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
default: 'h-6 w-11',
|
|
10
|
+
sm: 'h-5 w-9'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
size: 'default'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const switchThumbVariants = cva('pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0', {
|
|
18
|
+
variants: {
|
|
19
|
+
size: {
|
|
20
|
+
default: 'h-5 w-5 data-[state=checked]:translate-x-5',
|
|
21
|
+
sm: 'h-4 w-4 data-[state=checked]:translate-x-4'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
size: 'default'
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const Switch = /*#__PURE__*/ forwardRef(({ className, size, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
29
|
+
className: cn(switchVariants({
|
|
30
|
+
size
|
|
31
|
+
}), className),
|
|
7
32
|
...props,
|
|
8
33
|
ref: ref,
|
|
9
34
|
children: /*#__PURE__*/ jsx(Thumb, {
|
|
10
|
-
className: cn(
|
|
35
|
+
className: cn(switchThumbVariants({
|
|
36
|
+
size
|
|
37
|
+
}))
|
|
11
38
|
})
|
|
12
39
|
}));
|
|
13
40
|
Switch.displayName = Root.displayName;
|
|
14
|
-
export { Switch };
|
|
41
|
+
export { Switch, switchVariants };
|
package/dist/styles.css
CHANGED
|
@@ -5425,6 +5425,12 @@
|
|
|
5425
5425
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
5426
5426
|
}
|
|
5427
5427
|
}
|
|
5428
|
+
.data-\[state\=checked\]\:translate-x-4 {
|
|
5429
|
+
&[data-state="checked"] {
|
|
5430
|
+
--tw-translate-x: calc(var(--spacing) * 4);
|
|
5431
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
5432
|
+
}
|
|
5433
|
+
}
|
|
5428
5434
|
.data-\[state\=checked\]\:translate-x-5 {
|
|
5429
5435
|
&[data-state="checked"] {
|
|
5430
5436
|
--tw-translate-x: calc(var(--spacing) * 5);
|
|
@@ -5777,6 +5783,11 @@
|
|
|
5777
5783
|
border-color: var(--ap-wind-border);
|
|
5778
5784
|
}
|
|
5779
5785
|
}
|
|
5786
|
+
.future\:border-border-subtle {
|
|
5787
|
+
:is(.future-dark, .future-light) & {
|
|
5788
|
+
border-color: var(--border-subtle);
|
|
5789
|
+
}
|
|
5790
|
+
}
|
|
5780
5791
|
.future\:bg-surface-overlay {
|
|
5781
5792
|
:is(.future-dark, .future-light) & {
|
|
5782
5793
|
background-color: var(--surface-overlay);
|
|
@@ -5808,6 +5819,12 @@
|
|
|
5808
5819
|
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
5809
5820
|
}
|
|
5810
5821
|
}
|
|
5822
|
+
.future\:font-normal {
|
|
5823
|
+
:is(.future-dark, .future-light) & {
|
|
5824
|
+
--tw-font-weight: var(--font-weight-normal);
|
|
5825
|
+
font-weight: var(--font-weight-normal);
|
|
5826
|
+
}
|
|
5827
|
+
}
|
|
5811
5828
|
.future\:text-foreground {
|
|
5812
5829
|
:is(.future-dark, .future-light) & {
|
|
5813
5830
|
color: var(--foreground);
|