@uipath/apollo-wind 2.1.0 → 2.2.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/README.md CHANGED
@@ -142,7 +142,7 @@ This package is part of a pnpm workspace. All commands should be run using `pnpm
142
142
  ```bash
143
143
  pnpm install # Install all dependencies
144
144
  pnpm build # Build apollo packages
145
- pnpm storybook:wind # Run Storybook on http://localhost:6006
145
+ pnpm storybook:design # Run Storybook on http://localhost:6006
146
146
  pnpm test --filter=@uipath/apollo-wind # Run tests
147
147
  pnpm lint --filter=@uipath/apollo-wind # Run lint
148
148
  pnpm format --filter=@uipath/apollo-wind # Run biome format
@@ -0,0 +1,5 @@
1
+ var __webpack_exports__ = {};
2
+ for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ });
@@ -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: (0, index_cjs_namespaceObject.cn)('h-10 rounded-xl border-0 shadow-sm', value ? 'bg-surface-hover text-foreground' : 'bg-surface-overlay text-foreground-muted'),
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-sm",
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 text-sm font-medium text-foreground-muted shadow-none placeholder:text-foreground-subtle focus-visible:ring-0"
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: cn('h-10 rounded-xl border-0 shadow-sm', value ? 'bg-surface-hover text-foreground' : 'bg-surface-overlay text-foreground-muted'),
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-sm",
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 text-sm font-medium text-foreground-muted shadow-none placeholder:text-foreground-subtle focus-visible:ring-0"
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
  }));
@@ -15,7 +15,7 @@ var __webpack_modules__ = {
15
15
  "./avatar" (module) {
16
16
  module.exports = require("./avatar.cjs");
17
17
  },
18
- "./badge" (module) {
18
+ "@/components/ui/badge" (module) {
19
19
  module.exports = require("./badge.cjs");
20
20
  },
21
21
  "./breadcrumb" (module) {
@@ -27,16 +27,16 @@ var __webpack_modules__ = {
27
27
  "@/components/ui/button" (module) {
28
28
  module.exports = require("./button.cjs");
29
29
  },
30
- "./calendar" (module) {
30
+ "@/components/ui/calendar" (module) {
31
31
  module.exports = require("./calendar.cjs");
32
32
  },
33
- "./card" (module) {
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
- "./collapsible" (module) {
39
+ "@/components/ui/collapsible" (module) {
40
40
  module.exports = require("./collapsible.cjs");
41
41
  },
42
42
  "./combobox" (module) {
@@ -57,13 +57,13 @@ var __webpack_modules__ = {
57
57
  "./datetime-picker" (module) {
58
58
  module.exports = require("./datetime-picker.cjs");
59
59
  },
60
- "./dialog" (module) {
60
+ "@/components/ui/dialog" (module) {
61
61
  module.exports = require("./dialog.cjs");
62
62
  },
63
- "./dropdown-menu" (module) {
63
+ "@/components/ui/dropdown-menu" (module) {
64
64
  module.exports = require("./dropdown-menu.cjs");
65
65
  },
66
- "./editable-cell" (module) {
66
+ "@/components/ui/editable-cell" (module) {
67
67
  module.exports = require("./editable-cell.cjs");
68
68
  },
69
69
  "./empty-state" (module) {
@@ -75,7 +75,7 @@ var __webpack_modules__ = {
75
75
  "@/components/ui/hover-card" (module) {
76
76
  module.exports = require("./hover-card.cjs");
77
77
  },
78
- "./input" (module) {
78
+ "@/components/ui/input" (module) {
79
79
  module.exports = require("./input.cjs");
80
80
  },
81
81
  "@/components/ui/label" (module) {
@@ -138,7 +138,7 @@ var __webpack_modules__ = {
138
138
  "./switch" (module) {
139
139
  module.exports = require("./switch.cjs");
140
140
  },
141
- "./table" (module) {
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
- "./toggle" (module) {
153
+ "@/components/ui/toggle" (module) {
154
154
  module.exports = require("./toggle.cjs");
155
155
  },
156
156
  "./tooltip" (module) {
@@ -241,7 +241,7 @@ var __webpack_exports__ = {};
241
241
  "default"
242
242
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_avatar__rspack_import_4[__rspack_import_key];
243
243
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
244
- var _badge__rspack_import_5 = __webpack_require__("./badge");
244
+ var _badge__rspack_import_5 = __webpack_require__("@/components/ui/badge");
245
245
  var __rspack_reexport = {};
246
246
  for(const __rspack_import_key in _badge__rspack_import_5)if ([
247
247
  "TreeView",
@@ -269,14 +269,14 @@ var __webpack_exports__ = {};
269
269
  "default"
270
270
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_button_group__rspack_import_8[__rspack_import_key];
271
271
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
272
- var _calendar__rspack_import_9 = __webpack_require__("./calendar");
272
+ var _calendar__rspack_import_9 = __webpack_require__("@/components/ui/calendar");
273
273
  var __rspack_reexport = {};
274
274
  for(const __rspack_import_key in _calendar__rspack_import_9)if ([
275
275
  "TreeView",
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__("./card");
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",
@@ -290,7 +290,7 @@ var __webpack_exports__ = {};
290
290
  "default"
291
291
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_checkbox__rspack_import_11[__rspack_import_key];
292
292
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
293
- var _collapsible__rspack_import_12 = __webpack_require__("./collapsible");
293
+ var _collapsible__rspack_import_12 = __webpack_require__("@/components/ui/collapsible");
294
294
  var __rspack_reexport = {};
295
295
  for(const __rspack_import_key in _collapsible__rspack_import_12)if ([
296
296
  "TreeView",
@@ -339,21 +339,21 @@ var __webpack_exports__ = {};
339
339
  "default"
340
340
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_datetime_picker__rspack_import_18[__rspack_import_key];
341
341
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
342
- var _dialog__rspack_import_19 = __webpack_require__("./dialog");
342
+ var _dialog__rspack_import_19 = __webpack_require__("@/components/ui/dialog");
343
343
  var __rspack_reexport = {};
344
344
  for(const __rspack_import_key in _dialog__rspack_import_19)if ([
345
345
  "TreeView",
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__("./dropdown-menu");
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__("./editable-cell");
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,7 +381,7 @@ 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__("./input");
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",
@@ -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__("./table");
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__("./toggle");
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
  }));
@@ -41,7 +41,7 @@ const TooltipPortal = react_tooltip_namespaceObject.Portal;
41
41
  const TooltipContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Content, {
42
42
  ref: ref,
43
43
  sideOffset: sideOffset,
44
- className: (0, index_cjs_namespaceObject.cn)('z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]', className),
44
+ className: (0, index_cjs_namespaceObject.cn)('z-50 overflow-hidden rounded-md border border-border-subtle bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]', className),
45
45
  ...props
46
46
  }));
47
47
  TooltipContent.displayName = react_tooltip_namespaceObject.Content.displayName;
@@ -9,7 +9,7 @@ const TooltipPortal = Portal;
9
9
  const TooltipContent = /*#__PURE__*/ forwardRef(({ className, sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ jsx(Content, {
10
10
  ref: ref,
11
11
  sideOffset: sideOffset,
12
- className: cn('z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]', className),
12
+ className: cn('z-50 overflow-hidden rounded-md border border-border-subtle bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]', className),
13
13
  ...props
14
14
  }));
15
15
  TooltipContent.displayName = Content.displayName;
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,24 @@ body.canvas, .canvas {
8234
8443
  opacity: 0;
8235
8444
  }
8236
8445
  }
8446
+ .future-dark, .dark, .dark-hc {
8447
+ scrollbar-width: thin;
8448
+ scrollbar-color: var(--color-border) transparent;
8449
+ & *::-webkit-scrollbar {
8450
+ width: 6px;
8451
+ height: 6px;
8452
+ }
8453
+ & *::-webkit-scrollbar-track {
8454
+ background: transparent;
8455
+ }
8456
+ & *::-webkit-scrollbar-thumb {
8457
+ background-color: var(--color-border);
8458
+ border-radius: 9999px;
8459
+ }
8460
+ & *::-webkit-scrollbar-thumb:hover {
8461
+ background-color: var(--color-border-hover);
8462
+ }
8463
+ }
8237
8464
  @property --tw-translate-x {
8238
8465
  syntax: "*";
8239
8466
  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,39 @@ 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
+ * Theme-aware scrollbars
1233
+ *
1234
+ * Dark themes: future-dark + dark-hc are applied to <html>;
1235
+ * dark + dark-hc are applied to <body>. Both cases are covered by the
1236
+ * class selectors below since * matches all descendants.
1237
+ * ============================================================================ */
1238
+
1239
+ .future-dark,
1240
+ .dark,
1241
+ .dark-hc {
1242
+ /* Firefox — inherits down the tree */
1243
+ scrollbar-width: thin;
1244
+ scrollbar-color: var(--color-border) transparent;
1245
+
1246
+ /* WebKit — pseudo-elements don't inherit, must target descendants */
1247
+ & *::-webkit-scrollbar {
1248
+ width: 6px;
1249
+ height: 6px;
1250
+ }
1251
+
1252
+ & *::-webkit-scrollbar-track {
1253
+ background: transparent;
1254
+ }
1255
+
1256
+ & *::-webkit-scrollbar-thumb {
1257
+ background-color: var(--color-border);
1258
+ border-radius: 9999px;
1259
+ }
1260
+
1261
+ & *::-webkit-scrollbar-thumb:hover {
1262
+ background-color: var(--color-border-hover);
1263
+ }
1226
1264
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-wind",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "UiPath wind design system - A Tailwind CSS based React component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",