@tecsinapse/cortex-react 2.2.0 → 2.2.1-beta.1

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.
@@ -46,7 +46,7 @@ const ScrollableDigitSelector = ({
46
46
  {
47
47
  className: clsx(
48
48
  "p-micro rounded-micro border-1 border-transparent hover:bg-primary-light hover:border-primary cursor-pointer",
49
- value === val && "bg-primary-medium text-white"
49
+ value === val && "bg-primary-medium text-on-primary"
50
50
  ),
51
51
  children: formatValue(val)
52
52
  }
@@ -105,7 +105,7 @@ const TimePickerSelector = ({
105
105
  {
106
106
  className: clsx(
107
107
  dayPeriodStyle,
108
- !isPM && "bg-primary-medium text-white"
108
+ !isPM && "bg-primary-medium text-on-primary"
109
109
  ),
110
110
  children: "AM"
111
111
  }
@@ -122,7 +122,7 @@ const TimePickerSelector = ({
122
122
  {
123
123
  className: clsx(
124
124
  dayPeriodStyle,
125
- isPM && "bg-primary-medium text-white"
125
+ isPM && "bg-primary-medium text-on-primary"
126
126
  ),
127
127
  children: "PM"
128
128
  }
@@ -10,7 +10,7 @@ const Files = ({
10
10
  }) => {
11
11
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white w-full border-2 p-deca flex flex-col overflow-y-auto rounded-mili h-[18rem]", children: [
12
12
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-mili items-center mb-deca", children: [
13
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center w-deca h-deca bg-primary-medium rounded-full text-micro text-white", children: `${files.length}` }),
13
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center w-deca h-deca bg-primary-medium rounded-full text-micro text-on-primary", children: `${files.length}` }),
14
14
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-md font-semibold", "data-testid": "upload-progress", children: uploadProgressText })
15
15
  ] }),
16
16
  files.map((file, index) => /* @__PURE__ */ jsxRuntime.jsx(Upload.File, { file, index, onDelete }, file.uid))
@@ -15,17 +15,17 @@ const calendarCell = tailwindVariants.tv({
15
15
  },
16
16
  isSelected: {
17
17
  true: {
18
- cell: "bg-primary-medium border-2 border-primary-medium text-white hover:bg-primary-medium"
18
+ cell: "bg-primary-medium border-2 border-primary-medium text-on-primary hover:bg-primary-medium"
19
19
  }
20
20
  },
21
21
  isSelectionStart: {
22
22
  true: {
23
- cell: "bg-primary-medium border-2 border-primary-medium rounded-r-none text-white"
23
+ cell: "bg-primary-medium border-2 border-primary-medium rounded-r-none text-on-primary"
24
24
  }
25
25
  },
26
26
  isSelectionEnd: {
27
27
  true: {
28
- cell: "bg-primary-medium border-2 border-primary-medium rounded-l-none text-white"
28
+ cell: "bg-primary-medium border-2 border-primary-medium rounded-l-none text-on-primary"
29
29
  }
30
30
  },
31
31
  inRange: {
@@ -44,7 +44,7 @@ const ScrollableDigitSelector = ({
44
44
  {
45
45
  className: clsx(
46
46
  "p-micro rounded-micro border-1 border-transparent hover:bg-primary-light hover:border-primary cursor-pointer",
47
- value === val && "bg-primary-medium text-white"
47
+ value === val && "bg-primary-medium text-on-primary"
48
48
  ),
49
49
  children: formatValue(val)
50
50
  }
@@ -103,7 +103,7 @@ const TimePickerSelector = ({
103
103
  {
104
104
  className: clsx(
105
105
  dayPeriodStyle,
106
- !isPM && "bg-primary-medium text-white"
106
+ !isPM && "bg-primary-medium text-on-primary"
107
107
  ),
108
108
  children: "AM"
109
109
  }
@@ -120,7 +120,7 @@ const TimePickerSelector = ({
120
120
  {
121
121
  className: clsx(
122
122
  dayPeriodStyle,
123
- isPM && "bg-primary-medium text-white"
123
+ isPM && "bg-primary-medium text-on-primary"
124
124
  ),
125
125
  children: "PM"
126
126
  }
@@ -8,7 +8,7 @@ const Files = ({
8
8
  }) => {
9
9
  return /* @__PURE__ */ jsxs("div", { className: "bg-white w-full border-2 p-deca flex flex-col overflow-y-auto rounded-mili h-[18rem]", children: [
10
10
  /* @__PURE__ */ jsxs("div", { className: "flex gap-mili items-center mb-deca", children: [
11
- /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center w-deca h-deca bg-primary-medium rounded-full text-micro text-white", children: `${files.length}` }),
11
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center w-deca h-deca bg-primary-medium rounded-full text-micro text-on-primary", children: `${files.length}` }),
12
12
  /* @__PURE__ */ jsx("h2", { className: "text-md font-semibold", "data-testid": "upload-progress", children: uploadProgressText })
13
13
  ] }),
14
14
  files.map((file, index) => /* @__PURE__ */ jsx(File, { file, index, onDelete }, file.uid))
@@ -13,17 +13,17 @@ const calendarCell = tv({
13
13
  },
14
14
  isSelected: {
15
15
  true: {
16
- cell: "bg-primary-medium border-2 border-primary-medium text-white hover:bg-primary-medium"
16
+ cell: "bg-primary-medium border-2 border-primary-medium text-on-primary hover:bg-primary-medium"
17
17
  }
18
18
  },
19
19
  isSelectionStart: {
20
20
  true: {
21
- cell: "bg-primary-medium border-2 border-primary-medium rounded-r-none text-white"
21
+ cell: "bg-primary-medium border-2 border-primary-medium rounded-r-none text-on-primary"
22
22
  }
23
23
  },
24
24
  isSelectionEnd: {
25
25
  true: {
26
- cell: "bg-primary-medium border-2 border-primary-medium rounded-l-none text-white"
26
+ cell: "bg-primary-medium border-2 border-primary-medium rounded-l-none text-on-primary"
27
27
  }
28
28
  },
29
29
  inRange: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "2.2.0",
3
+ "version": "2.2.1-beta.1",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@floating-ui/react": "^0.26.18",
22
22
  "@internationalized/date": "3.7.0",
23
- "@tecsinapse/cortex-core": "2.0.1",
23
+ "@tecsinapse/cortex-core": "2.0.2-beta.3",
24
24
  "clsx": "2.1.1",
25
25
  "country-flag-icons": "^1.6.4",
26
26
  "currency.js": "2.0.4",
@@ -50,5 +50,5 @@
50
50
  "react-icons": ">=5.2.0",
51
51
  "tailwindcss": "^4.1.16"
52
52
  },
53
- "gitHead": "7d2063d30f0d6c363a734a4f15cc66810dd2b546"
53
+ "gitHead": "5de99380c3dbe5a345730503a21bf91fc17eba3d"
54
54
  }