@uipath/apollo-react 6.35.0 → 6.36.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.
@@ -40,8 +40,8 @@ const CheckboxField_CheckboxField = /*#__PURE__*/ (0, external_react_namespaceOb
40
40
  children: [
41
41
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
42
42
  className: (0, apollo_wind_namespaceObject.cn)('py-2 rounded transition', field.disabled ? 'opacity-50 cursor-not-allowed' : 'hover:bg-(--canvas-background-hover)'),
43
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("label", {
44
- className: (0, apollo_wind_namespaceObject.cn)('flex items-center text-[13px] text-(--canvas-foreground) select-none', field.disabled ? 'cursor-not-allowed' : 'cursor-pointer'),
43
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Label, {
44
+ className: (0, apollo_wind_namespaceObject.cn)('flex items-center select-none', field.disabled ? 'cursor-not-allowed' : 'cursor-pointer'),
45
45
  children: [
46
46
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("input", {
47
47
  className: "nodrag size-[18px] mr-2 cursor-pointer disabled:cursor-not-allowed accent-(--canvas-primary)",
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@uipath/apollo-wind";
2
+ import { Label, cn } from "@uipath/apollo-wind";
3
3
  import { memo, useCallback } from "react";
4
4
  const CheckboxField_CheckboxField = /*#__PURE__*/ memo(function({ field, value, onChange, error }) {
5
5
  const handleChange = useCallback((e)=>{
@@ -12,8 +12,8 @@ const CheckboxField_CheckboxField = /*#__PURE__*/ memo(function({ field, value,
12
12
  children: [
13
13
  /*#__PURE__*/ jsx("div", {
14
14
  className: cn('py-2 rounded transition', field.disabled ? 'opacity-50 cursor-not-allowed' : 'hover:bg-(--canvas-background-hover)'),
15
- children: /*#__PURE__*/ jsxs("label", {
16
- className: cn('flex items-center text-[13px] text-(--canvas-foreground) select-none', field.disabled ? 'cursor-not-allowed' : 'cursor-pointer'),
15
+ children: /*#__PURE__*/ jsxs(Label, {
16
+ className: cn('flex items-center select-none', field.disabled ? 'cursor-not-allowed' : 'cursor-pointer'),
17
17
  children: [
18
18
  /*#__PURE__*/ jsx("input", {
19
19
  className: "nodrag size-[18px] mr-2 cursor-pointer disabled:cursor-not-allowed accent-(--canvas-primary)",
@@ -68,9 +68,8 @@ const NumberField_NumberField = /*#__PURE__*/ (0, external_react_namespaceObject
68
68
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
69
69
  className: "flex flex-col gap-1",
70
70
  children: [
71
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("label", {
71
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Label, {
72
72
  htmlFor: `field-${field.key}`,
73
- className: "text-[13px] text-(--canvas-foreground-de-emp)",
74
73
  children: field.label
75
74
  }),
76
75
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/NodePropertiesPanel/fields/NumberField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,UAAU,gBAAgB;IACxB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,WAAW,wDA0FtB,CAAC"}
1
+ {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/NodePropertiesPanel/fields/NumberField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,UAAU,gBAAgB;IACxB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,WAAW,wDAqFtB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@uipath/apollo-wind";
2
+ import { Label, cn } from "@uipath/apollo-wind";
3
3
  import { memo, useCallback, useEffect, useRef, useState } from "react";
4
4
  const NumberField_NumberField = /*#__PURE__*/ memo(function({ field, value, onChange, error }) {
5
5
  const [localValue, setLocalValue] = useState(value ?? field.defaultValue ?? '');
@@ -40,9 +40,8 @@ const NumberField_NumberField = /*#__PURE__*/ memo(function({ field, value, onCh
40
40
  return /*#__PURE__*/ jsxs("div", {
41
41
  className: "flex flex-col gap-1",
42
42
  children: [
43
- /*#__PURE__*/ jsx("label", {
43
+ /*#__PURE__*/ jsx(Label, {
44
44
  htmlFor: `field-${field.key}`,
45
- className: "text-[13px] text-(--canvas-foreground-de-emp)",
46
45
  children: field.label
47
46
  }),
48
47
  /*#__PURE__*/ jsxs("div", {
@@ -43,9 +43,8 @@ const SelectField_SelectField = /*#__PURE__*/ (0, external_react_namespaceObject
43
43
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
44
44
  className: "flex flex-col gap-1",
45
45
  children: [
46
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("label", {
46
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Label, {
47
47
  htmlFor: selectId,
48
- className: "text-[13px] text-(--canvas-foreground-de-emp)",
49
48
  children: field.label
50
49
  }),
51
50
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectField.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/NodePropertiesPanel/fields/SelectField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,UAAU,gBAAgB;IACxB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,WAAW,wDA8DtB,CAAC"}
1
+ {"version":3,"file":"SelectField.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/NodePropertiesPanel/fields/SelectField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,UAAU,gBAAgB;IACxB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,WAAW,wDA4DtB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@uipath/apollo-wind";
2
+ import { Label, cn } from "@uipath/apollo-wind";
3
3
  import { ChevronDown } from "lucide-react";
4
4
  import { memo, useCallback } from "react";
5
5
  const SelectField_SelectField = /*#__PURE__*/ memo(function({ field, value, onChange, error }) {
@@ -15,9 +15,8 @@ const SelectField_SelectField = /*#__PURE__*/ memo(function({ field, value, onCh
15
15
  return /*#__PURE__*/ jsxs("div", {
16
16
  className: "flex flex-col gap-1",
17
17
  children: [
18
- /*#__PURE__*/ jsx("label", {
18
+ /*#__PURE__*/ jsx(Label, {
19
19
  htmlFor: selectId,
20
- className: "text-[13px] text-(--canvas-foreground-de-emp)",
21
20
  children: field.label
22
21
  }),
23
22
  /*#__PURE__*/ jsxs("div", {
@@ -65,9 +65,8 @@ const TextField_TextField = /*#__PURE__*/ (0, external_react_namespaceObject.mem
65
65
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
66
66
  className: "flex flex-col gap-1",
67
67
  children: [
68
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("label", {
68
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Label, {
69
69
  htmlFor: inputId,
70
- className: "text-[13px] text-(--canvas-foreground-de-emp)",
71
70
  children: field.label
72
71
  }),
73
72
  'textarea' === field.type ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("textarea", {
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/NodePropertiesPanel/fields/TextField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,UAAU,cAAc;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD,eAAO,MAAM,SAAS,sDAwFpB,CAAC"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/NodePropertiesPanel/fields/TextField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,UAAU,cAAc;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD,eAAO,MAAM,SAAS,sDAsFpB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@uipath/apollo-wind";
2
+ import { Label, cn } from "@uipath/apollo-wind";
3
3
  import { memo, useCallback, useEffect, useRef, useState } from "react";
4
4
  const inputBase = 'w-full px-3 py-2 text-[13px] font-mono border border-(--canvas-border) rounded bg-(--canvas-background) text-(--canvas-foreground) outline-none transition-colors placeholder:text-(--canvas-foreground-de-emp) focus:border-(--canvas-primary) disabled:opacity-50 disabled:cursor-not-allowed';
5
5
  const TextField_TextField = /*#__PURE__*/ memo(function({ field, value, onChange, error }) {
@@ -37,9 +37,8 @@ const TextField_TextField = /*#__PURE__*/ memo(function({ field, value, onChange
37
37
  return /*#__PURE__*/ jsxs("div", {
38
38
  className: "flex flex-col gap-1",
39
39
  children: [
40
- /*#__PURE__*/ jsx("label", {
40
+ /*#__PURE__*/ jsx(Label, {
41
41
  htmlFor: inputId,
42
- className: "text-[13px] text-(--canvas-foreground-de-emp)",
43
42
  children: field.label
44
43
  }),
45
44
  'textarea' === field.type ? /*#__PURE__*/ jsx("textarea", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "6.35.0",
3
+ "version": "6.36.0",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",
@@ -220,9 +220,9 @@
220
220
  "use-sync-external-store": "^1.2.0",
221
221
  "zod": "^4.3.5",
222
222
  "zustand": "^5.0.9",
223
- "@uipath/apollo-core": "5.13.1",
224
223
  "@uipath/apollo-ui-icons": "1.0.0",
225
- "@uipath/apollo-wind": "2.39.0"
224
+ "@uipath/apollo-wind": "2.40.0",
225
+ "@uipath/apollo-core": "5.13.1"
226
226
  },
227
227
  "devDependencies": {
228
228
  "@lingui/cli": "^5.6.1",