@uipath/apollo-wind 2.90.0 → 2.91.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.
@@ -36,10 +36,10 @@ var __webpack_modules__ = {
36
36
  "@/components/ui/button" (module) {
37
37
  module.exports = require("./button.cjs");
38
38
  },
39
- "@/components/ui/calendar" (module) {
39
+ "./calendar" (module) {
40
40
  module.exports = require("./calendar.cjs");
41
41
  },
42
- "@/components/ui/card" (module) {
42
+ "./card" (module) {
43
43
  module.exports = require("./card.cjs");
44
44
  },
45
45
  "./chart" (module) {
@@ -57,16 +57,16 @@ var __webpack_modules__ = {
57
57
  "./citation" (module) {
58
58
  module.exports = require("./citation.cjs");
59
59
  },
60
- "@/components/ui/code-block" (module) {
60
+ "./code-block" (module) {
61
61
  module.exports = require("./code-block.cjs");
62
62
  },
63
- "./collapsible" (module) {
63
+ "@/components/ui/collapsible" (module) {
64
64
  module.exports = require("./collapsible.cjs");
65
65
  },
66
66
  "./combobox" (module) {
67
67
  module.exports = require("./combobox.cjs");
68
68
  },
69
- "@/components/ui/command" (module) {
69
+ "./command" (module) {
70
70
  module.exports = require("./command.cjs");
71
71
  },
72
72
  "./connection-picker" (module) {
@@ -84,7 +84,7 @@ var __webpack_modules__ = {
84
84
  "./datetime-picker" (module) {
85
85
  module.exports = require("./datetime-picker.cjs");
86
86
  },
87
- "@/components/ui/dialog" (module) {
87
+ "./dialog" (module) {
88
88
  module.exports = require("./dialog.cjs");
89
89
  },
90
90
  "./disclosure-tree" (module) {
@@ -126,7 +126,7 @@ var __webpack_modules__ = {
126
126
  "@/components/ui/hover-card" (module) {
127
127
  module.exports = require("./hover-card.cjs");
128
128
  },
129
- "@/components/ui/info-tooltip" (module) {
129
+ "./info-tooltip" (module) {
130
130
  module.exports = require("./info-tooltip.cjs");
131
131
  },
132
132
  "@/components/ui/input-group" (module) {
@@ -186,7 +186,7 @@ var __webpack_modules__ = {
186
186
  "./password-input" (module) {
187
187
  module.exports = require("./password-input.cjs");
188
188
  },
189
- "./popover" (module) {
189
+ "@/components/ui/popover" (module) {
190
190
  module.exports = require("./popover.cjs");
191
191
  },
192
192
  "@/components/ui/portal-container" (module) {
@@ -252,7 +252,7 @@ var __webpack_modules__ = {
252
252
  "./sources" (module) {
253
253
  module.exports = require("./sources.cjs");
254
254
  },
255
- "@/components/ui/spinner" (module) {
255
+ "./spinner" (module) {
256
256
  module.exports = require("./spinner.cjs");
257
257
  },
258
258
  "./stats-card" (module) {
@@ -270,7 +270,7 @@ var __webpack_modules__ = {
270
270
  "./tabs" (module) {
271
271
  module.exports = require("./tabs.cjs");
272
272
  },
273
- "@/components/ui/textarea" (module) {
273
+ "./textarea" (module) {
274
274
  module.exports = require("./textarea.cjs");
275
275
  },
276
276
  "./thinking-indicator" (module) {
@@ -467,7 +467,7 @@ var __webpack_exports__ = {};
467
467
  "ReferenceChip"
468
468
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_button_group__rspack_import_11[__rspack_import_key];
469
469
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
470
- var _calendar__rspack_import_12 = __webpack_require__("@/components/ui/calendar");
470
+ var _calendar__rspack_import_12 = __webpack_require__("./calendar");
471
471
  var __rspack_reexport = {};
472
472
  for(const __rspack_import_key in _calendar__rspack_import_12)if ([
473
473
  "getReferenceChipColors",
@@ -477,7 +477,7 @@ var __webpack_exports__ = {};
477
477
  "ReferenceChip"
478
478
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_calendar__rspack_import_12[__rspack_import_key];
479
479
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
480
- var _card__rspack_import_13 = __webpack_require__("@/components/ui/card");
480
+ var _card__rspack_import_13 = __webpack_require__("./card");
481
481
  var __rspack_reexport = {};
482
482
  for(const __rspack_import_key in _card__rspack_import_13)if ([
483
483
  "getReferenceChipColors",
@@ -537,7 +537,7 @@ var __webpack_exports__ = {};
537
537
  "ReferenceChip"
538
538
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_citation__rspack_import_18[__rspack_import_key];
539
539
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
540
- var _code_block__rspack_import_19 = __webpack_require__("@/components/ui/code-block");
540
+ var _code_block__rspack_import_19 = __webpack_require__("./code-block");
541
541
  var __rspack_reexport = {};
542
542
  for(const __rspack_import_key in _code_block__rspack_import_19)if ([
543
543
  "getReferenceChipColors",
@@ -547,7 +547,7 @@ var __webpack_exports__ = {};
547
547
  "ReferenceChip"
548
548
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_code_block__rspack_import_19[__rspack_import_key];
549
549
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
550
- var _collapsible__rspack_import_20 = __webpack_require__("./collapsible");
550
+ var _collapsible__rspack_import_20 = __webpack_require__("@/components/ui/collapsible");
551
551
  var __rspack_reexport = {};
552
552
  for(const __rspack_import_key in _collapsible__rspack_import_20)if ([
553
553
  "getReferenceChipColors",
@@ -567,7 +567,7 @@ var __webpack_exports__ = {};
567
567
  "ReferenceChip"
568
568
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_combobox__rspack_import_21[__rspack_import_key];
569
569
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
570
- var _command__rspack_import_22 = __webpack_require__("@/components/ui/command");
570
+ var _command__rspack_import_22 = __webpack_require__("./command");
571
571
  var __rspack_reexport = {};
572
572
  for(const __rspack_import_key in _command__rspack_import_22)if ([
573
573
  "getReferenceChipColors",
@@ -627,7 +627,7 @@ var __webpack_exports__ = {};
627
627
  "ReferenceChip"
628
628
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_datetime_picker__rspack_import_27[__rspack_import_key];
629
629
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
630
- var _dialog__rspack_import_28 = __webpack_require__("@/components/ui/dialog");
630
+ var _dialog__rspack_import_28 = __webpack_require__("./dialog");
631
631
  var __rspack_reexport = {};
632
632
  for(const __rspack_import_key in _dialog__rspack_import_28)if ([
633
633
  "getReferenceChipColors",
@@ -767,7 +767,7 @@ var __webpack_exports__ = {};
767
767
  "ReferenceChip"
768
768
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_41[__rspack_import_key];
769
769
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
770
- var _info_tooltip__rspack_import_42 = __webpack_require__("@/components/ui/info-tooltip");
770
+ var _info_tooltip__rspack_import_42 = __webpack_require__("./info-tooltip");
771
771
  var __rspack_reexport = {};
772
772
  for(const __rspack_import_key in _info_tooltip__rspack_import_42)if ([
773
773
  "getReferenceChipColors",
@@ -967,7 +967,7 @@ var __webpack_exports__ = {};
967
967
  "ReferenceChip"
968
968
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_password_input__rspack_import_61[__rspack_import_key];
969
969
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
970
- var _popover__rspack_import_62 = __webpack_require__("./popover");
970
+ var _popover__rspack_import_62 = __webpack_require__("@/components/ui/popover");
971
971
  var __rspack_reexport = {};
972
972
  for(const __rspack_import_key in _popover__rspack_import_62)if ([
973
973
  "getReferenceChipColors",
@@ -1169,7 +1169,7 @@ var __webpack_exports__ = {};
1169
1169
  "ReferenceChip"
1170
1170
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_sources__rspack_import_83[__rspack_import_key];
1171
1171
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
1172
- var _spinner__rspack_import_84 = __webpack_require__("@/components/ui/spinner");
1172
+ var _spinner__rspack_import_84 = __webpack_require__("./spinner");
1173
1173
  var __rspack_reexport = {};
1174
1174
  for(const __rspack_import_key in _spinner__rspack_import_84)if ([
1175
1175
  "getReferenceChipColors",
@@ -1229,7 +1229,7 @@ var __webpack_exports__ = {};
1229
1229
  "ReferenceChip"
1230
1230
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tabs__rspack_import_89[__rspack_import_key];
1231
1231
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
1232
- var _textarea__rspack_import_90 = __webpack_require__("@/components/ui/textarea");
1232
+ var _textarea__rspack_import_90 = __webpack_require__("./textarea");
1233
1233
  var __rspack_reexport = {};
1234
1234
  for(const __rspack_import_key in _textarea__rspack_import_90)if ([
1235
1235
  "getReferenceChipColors",
@@ -171,16 +171,17 @@ const DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS = {
171
171
  helpful: 'Helpful',
172
172
  notHelpful: 'Not helpful'
173
173
  };
174
- const feedbackToggleClass = 'size-6 min-w-6 px-0 aria-pressed:bg-accent aria-pressed:text-accent-foreground future:aria-pressed:text-foreground';
175
- const MessageActionFeedback = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ value: valueProp, defaultValue = null, onChange, disabled, strings, className, 'aria-label': ariaLabel, ...props }, ref)=>{
174
+ const feedbackToggleClass = 'size-6 min-w-6 px-0 aria-pressed:bg-accent aria-pressed:text-accent-foreground aria-pressed:hover:bg-accent aria-pressed:hover:text-accent-foreground aria-pressed:[&_svg]:stroke-primary future:aria-pressed:text-foreground future:aria-pressed:hover:text-foreground aria-disabled:cursor-default';
175
+ const MessageActionFeedback = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ value: valueProp, defaultValue = null, onChange, disabled, locked = false, strings, className, 'aria-label': ariaLabel, ...props }, ref)=>{
176
176
  const text = {
177
177
  ...DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS,
178
178
  ...strings
179
179
  };
180
180
  const [uncontrolled, setUncontrolled] = external_react_namespaceObject.useState(defaultValue);
181
181
  const value = void 0 === valueProp ? uncontrolled : valueProp;
182
+ const final = locked && null !== value;
182
183
  const set = (next)=>{
183
- if (next === value) return;
184
+ if (final || next === value) return;
184
185
  if (void 0 === valueProp) setUncontrolled(next);
185
186
  onChange?.(next);
186
187
  };
@@ -195,13 +196,14 @@ const MessageActionFeedback = /*#__PURE__*/ external_react_namespaceObject.forwa
195
196
  label: text.notHelpful,
196
197
  icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ThumbsDown, {})
197
198
  }
198
- ];
199
+ ].filter(({ rating })=>!final || rating === value);
199
200
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
200
201
  ref: ref,
201
202
  role: "group",
202
203
  "aria-label": ariaLabel ?? text.label,
203
204
  "data-slot": "message-action-feedback",
204
205
  "data-value": value ?? void 0,
206
+ "data-locked": final || void 0,
205
207
  className: (0, index_cjs_namespaceObject.cn)('flex items-center gap-0.5', className),
206
208
  ...props,
207
209
  children: thumbs.map(({ rating, label, icon })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_tooltip_cjs_namespaceObject.Tooltip, {
@@ -216,6 +218,7 @@ const MessageActionFeedback = /*#__PURE__*/ external_react_namespaceObject.forwa
216
218
  pressed: value === rating,
217
219
  onPressedChange: ()=>set(rating),
218
220
  disabled: disabled,
221
+ "aria-disabled": final || void 0,
219
222
  children: icon
220
223
  })
221
224
  }),
@@ -88,6 +88,11 @@ export interface MessageActionFeedbackProps extends Omit<React.HTMLAttributes<HT
88
88
  /** Called with the new rating. Never `null`, since a rating cannot be cleared. */
89
89
  onChange?: (value: Exclude<MessageFeedbackValue, null>) => void;
90
90
  disabled?: boolean;
91
+ /**
92
+ * Once rated, the rating is final: only the chosen thumb remains, pressed and inert. For services
93
+ * that record every rating, where a change would add a second one rather than replace the first.
94
+ */
95
+ locked?: boolean;
91
96
  strings?: Partial<MessageActionFeedbackStrings>;
92
97
  }
93
98
  /**
@@ -134,16 +134,17 @@ const DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS = {
134
134
  helpful: 'Helpful',
135
135
  notHelpful: 'Not helpful'
136
136
  };
137
- const feedbackToggleClass = 'size-6 min-w-6 px-0 aria-pressed:bg-accent aria-pressed:text-accent-foreground future:aria-pressed:text-foreground';
138
- const MessageActionFeedback = /*#__PURE__*/ forwardRef(({ value: valueProp, defaultValue = null, onChange, disabled, strings, className, 'aria-label': ariaLabel, ...props }, ref)=>{
137
+ const feedbackToggleClass = 'size-6 min-w-6 px-0 aria-pressed:bg-accent aria-pressed:text-accent-foreground aria-pressed:hover:bg-accent aria-pressed:hover:text-accent-foreground aria-pressed:[&_svg]:stroke-primary future:aria-pressed:text-foreground future:aria-pressed:hover:text-foreground aria-disabled:cursor-default';
138
+ const MessageActionFeedback = /*#__PURE__*/ forwardRef(({ value: valueProp, defaultValue = null, onChange, disabled, locked = false, strings, className, 'aria-label': ariaLabel, ...props }, ref)=>{
139
139
  const text = {
140
140
  ...DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS,
141
141
  ...strings
142
142
  };
143
143
  const [uncontrolled, setUncontrolled] = useState(defaultValue);
144
144
  const value = void 0 === valueProp ? uncontrolled : valueProp;
145
+ const final = locked && null !== value;
145
146
  const set = (next)=>{
146
- if (next === value) return;
147
+ if (final || next === value) return;
147
148
  if (void 0 === valueProp) setUncontrolled(next);
148
149
  onChange?.(next);
149
150
  };
@@ -158,13 +159,14 @@ const MessageActionFeedback = /*#__PURE__*/ forwardRef(({ value: valueProp, defa
158
159
  label: text.notHelpful,
159
160
  icon: /*#__PURE__*/ jsx(ThumbsDown, {})
160
161
  }
161
- ];
162
+ ].filter(({ rating })=>!final || rating === value);
162
163
  return /*#__PURE__*/ jsx("div", {
163
164
  ref: ref,
164
165
  role: "group",
165
166
  "aria-label": ariaLabel ?? text.label,
166
167
  "data-slot": "message-action-feedback",
167
168
  "data-value": value ?? void 0,
169
+ "data-locked": final || void 0,
168
170
  className: cn('flex items-center gap-0.5', className),
169
171
  ...props,
170
172
  children: thumbs.map(({ rating, label, icon })=>/*#__PURE__*/ jsxs(Tooltip, {
@@ -179,6 +181,7 @@ const MessageActionFeedback = /*#__PURE__*/ forwardRef(({ value: valueProp, defa
179
181
  pressed: value === rating,
180
182
  onPressedChange: ()=>set(rating),
181
183
  disabled: disabled,
184
+ "aria-disabled": final || void 0,
182
185
  children: icon
183
186
  })
184
187
  }),
package/dist/styles.css CHANGED
@@ -7902,6 +7902,11 @@
7902
7902
  pointer-events: none;
7903
7903
  }
7904
7904
  }
7905
+ .aria-disabled\:cursor-default {
7906
+ &[aria-disabled="true"] {
7907
+ cursor: default;
7908
+ }
7909
+ }
7905
7910
  .aria-disabled\:cursor-not-allowed {
7906
7911
  &[aria-disabled="true"] {
7907
7912
  cursor: not-allowed;
@@ -7943,6 +7948,24 @@
7943
7948
  color: var(--accent-foreground);
7944
7949
  }
7945
7950
  }
7951
+ .aria-pressed\:hover\:bg-accent {
7952
+ &[aria-pressed="true"] {
7953
+ &:hover {
7954
+ @media (hover: hover) {
7955
+ background-color: var(--accent);
7956
+ }
7957
+ }
7958
+ }
7959
+ }
7960
+ .aria-pressed\:hover\:text-accent-foreground {
7961
+ &[aria-pressed="true"] {
7962
+ &:hover {
7963
+ @media (hover: hover) {
7964
+ color: var(--accent-foreground);
7965
+ }
7966
+ }
7967
+ }
7968
+ }
7946
7969
  .aria-selected\:border-b-2 {
7947
7970
  &[aria-selected="true"] {
7948
7971
  border-bottom-style: var(--tw-border-style);
@@ -9655,6 +9678,17 @@
9655
9678
  }
9656
9679
  }
9657
9680
  }
9681
+ .future\:aria-pressed\:hover\:text-foreground {
9682
+ :is(.future-dark, .future-light) & {
9683
+ &[aria-pressed="true"] {
9684
+ &:hover {
9685
+ @media (hover: hover) {
9686
+ color: var(--foreground);
9687
+ }
9688
+ }
9689
+ }
9690
+ }
9691
+ }
9658
9692
  .future\:data-\[state\=checked\]\:border-foreground-accent {
9659
9693
  :is(.future-dark, .future-light) & {
9660
9694
  &[data-state="checked"] {
@@ -10056,6 +10090,13 @@
10056
10090
  flex-shrink: 0;
10057
10091
  }
10058
10092
  }
10093
+ .aria-pressed\:\[\&_svg\]\:stroke-primary {
10094
+ &[aria-pressed="true"] {
10095
+ & svg {
10096
+ stroke: var(--primary);
10097
+ }
10098
+ }
10099
+ }
10059
10100
  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 {
10060
10101
  & svg:not([class*='size-']) {
10061
10102
  width: calc(var(--spacing) * 4);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-wind",
3
- "version": "2.90.0",
3
+ "version": "2.91.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",