@tecsinapse/cortex-react 1.16.0-beta.1 → 1.16.0-beta.3

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.
@@ -49,10 +49,10 @@ const AccordionTrigger = ({
49
49
  className: clsx(
50
50
  "rounded-mili border border-secondary-light flex align-center justify-center p-micro",
51
51
  {
52
- "absolute -translate-x-micro translate-y-deca bg-white": floating && direction === "horizontal"
52
+ "absolute -translate-x-micro translate-y-deca bg-surface-overlay": floating && direction === "horizontal"
53
53
  },
54
54
  {
55
- "absolute -translate-y-micro translate-x-deca bg-white": floating && direction === "vertical"
55
+ "absolute -translate-y-micro translate-x-deca bg-surface-overlay": floating && direction === "vertical"
56
56
  },
57
57
  className
58
58
  ),
@@ -23,7 +23,7 @@ const CalendarGrid = ({ state }) => {
23
23
  return /* @__PURE__ */ jsxRuntime.jsx(
24
24
  "div",
25
25
  {
26
- className: "bg-white rounded-micro px-deca py-mili",
26
+ className: "bg-surface-overlay rounded-micro px-deca py-mili",
27
27
  "data-testid": "calendar-grid",
28
28
  children: /* @__PURE__ */ jsxRuntime.jsxs("table", { ...gridProps, className: "border-separate border-spacing-y-nano", children: [
29
29
  /* @__PURE__ */ jsxRuntime.jsx("thead", { ...headerProps, children: /* @__PURE__ */ jsxRuntime.jsx(CalendarGridHeaderRow.CalendarGridHeaderRow, { weekDays }) }),
@@ -6,19 +6,28 @@ var React = require('react');
6
6
 
7
7
  const Box = React.forwardRef((props, ref) => {
8
8
  const { id, className, ...rest } = props;
9
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx("w-tera h-kilo border overflow-hidden relative", className), children: /* @__PURE__ */ jsxRuntime.jsx(
10
- "input",
9
+ return /* @__PURE__ */ jsxRuntime.jsx(
10
+ "div",
11
11
  {
12
- ...rest,
13
- id,
14
- type: "color",
15
- className: "bg-transparent cursor-pointer disabled:opacity-50 disabled:cursor-default absolute -top-1.5 -right-1 w-peta h-giga",
16
- ref
12
+ className: clsx(
13
+ "w-tera h-kilo border overflow-hidden relative",
14
+ className
15
+ ),
16
+ children: /* @__PURE__ */ jsxRuntime.jsx(
17
+ "input",
18
+ {
19
+ ...rest,
20
+ id,
21
+ type: "color",
22
+ className: "bg-transparent cursor-pointer disabled:opacity-50 disabled:cursor-default absolute -top-1.5 -right-1 w-peta h-giga",
23
+ ref
24
+ }
25
+ )
17
26
  }
18
- ) });
27
+ );
19
28
  });
20
29
  const Face = ({ children }) => {
21
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-mili p-mili shadow-default bg-white flex flex-row items-center gap-2", children });
30
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-mili p-mili shadow-default bg-[#222222] flex flex-row items-center gap-2", children });
22
31
  };
23
32
  const Label = ({
24
33
  children,
@@ -11,7 +11,7 @@ const SelectPopover = ({ children }) => {
11
11
  return /* @__PURE__ */ jsxRuntime.jsx(react.FloatingPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
12
12
  index.Popover.Content,
13
13
  {
14
- className: "bg-white max-h-[30vh] overflow-y-auto gap-y-mili flex flex-col p-0",
14
+ className: "bg-surface-overlay max-h-[30vh] overflow-y-auto gap-y-mili flex flex-col p-0",
15
15
  style: {
16
16
  width: triggerWidth ? `${triggerWidth}px` : "auto",
17
17
  zIndex: 9999
@@ -58,7 +58,7 @@ const Root = ({
58
58
  "div",
59
59
  {
60
60
  className: clsx(
61
- "flex w-full space-x-2 bg-white p-4 pb-2 rounded-mili",
61
+ "flex w-full space-x-2 bg-surface-overlay p-4 pb-2 rounded-mili",
62
62
  className
63
63
  ),
64
64
  children: React.Children.map(children, renderNode)
@@ -62,7 +62,7 @@ const TimePickerInputWithPopover = (props) => {
62
62
  /* @__PURE__ */ jsxRuntime.jsx(
63
63
  index.Popover.Content,
64
64
  {
65
- className: "bg-white shadow-default border-none p-deca flex flex-col",
65
+ className: "bg-surface-overlay shadow-default border-none p-deca flex flex-col",
66
66
  initialFocus: -1,
67
67
  children: /* @__PURE__ */ jsxRuntime.jsx(
68
68
  TimePickerSelector.TimePickerSelector,
@@ -19,7 +19,7 @@ const Dropzone = ({
19
19
  {
20
20
  ...getRootProps(),
21
21
  className: clsx(
22
- "bg-white w-full border-dashed border-2 p-deca flex flex-col justify-center rounded-mili overflow-auto h-[18rem]",
22
+ "bg-surface-overlay w-full border-dashed border-2 p-deca flex flex-col justify-center rounded-mili overflow-auto h-[18rem]",
23
23
  {
24
24
  "border-success-medium bg-gray-100": isDragActive
25
25
  }
@@ -8,7 +8,7 @@ const Files = ({
8
8
  onDelete,
9
9
  uploadProgressText = "Upload(s) in progress"
10
10
  }) => {
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: [
11
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-surface-overlay 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
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}` }),
14
14
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-md font-semibold", "data-testid": "upload-progress", children: uploadProgressText })
@@ -18,7 +18,7 @@ const Modal = ({
18
18
  {
19
19
  open,
20
20
  onClose,
21
- className: "flex flex-col bg-secondary-xlight rounded-mili min-w-[70vw] max-w-[95vh] max-h-[95vh] overflow-auto",
21
+ className: "flex flex-col bg-surface-base rounded-mili min-w-[70vw] max-w-[95vh] max-h-[95vh] overflow-auto text-default",
22
22
  children: [
23
23
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-center justify-between mb-deca", children: [
24
24
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-deca font-semibold ml-tera flex-1 text-center", children: title }),
@@ -4,10 +4,10 @@ var tailwindVariants = require('tailwind-variants');
4
4
 
5
5
  const menubar = tailwindVariants.tv({
6
6
  slots: {
7
- header: "relative w-screen px-kilo py-deca flex flex-row md:justify-between bg-white z-header sm:justify-start",
7
+ header: "relative w-screen px-kilo py-deca flex flex-row md:justify-between bg-surface-overlay z-header sm:justify-start",
8
8
  left: "flex items-center w-fit",
9
9
  right: "flex items-center gap-x-deca hidden sm:flex",
10
- dropdown: "w-full bg-white flex-1 shadow-default z-popover px-[8vw] absolute"
10
+ dropdown: "w-full bg-surface-overlay flex-1 shadow-default z-popover px-[8vw] absolute"
11
11
  },
12
12
  variants: {
13
13
  show: {
@@ -21,7 +21,7 @@ const menubar = tailwindVariants.tv({
21
21
  const mostUsed = tailwindVariants.tv({
22
22
  slots: {
23
23
  container: "mb-kilo",
24
- label: "font-bold mb-centi",
24
+ label: "font-bold mb-centi text-default",
25
25
  containerList: "gap-x-kilo flex flex-row"
26
26
  }
27
27
  });
@@ -29,26 +29,26 @@ const mostUsedItem = tailwindVariants.tv({
29
29
  slots: {
30
30
  container: "flex-1 py-mili",
31
31
  title: "text-primary-medium font-bold text-base",
32
- category: "text-secondary-medium text-label"
32
+ category: "text-content-tertiary text-label"
33
33
  }
34
34
  });
35
35
  const item = tailwindVariants.tv({
36
36
  slots: {
37
- container: "flex flex-row gap-x-deca items-center text-secondary-dark hover:cursor-pointer text-base",
37
+ container: "flex flex-row gap-x-deca items-center text-content-secondary hover:cursor-pointer text-base",
38
38
  textBehavior: "hover:text-primary-medium",
39
39
  icon: "text-primary-medium hover:cursor-pointer"
40
40
  }
41
41
  });
42
42
  const category = tailwindVariants.tv({
43
43
  slots: {
44
- text: "mb-mili font-bold",
45
- hr: "mb-mili border-0 h-px bg-secondary-light",
44
+ text: "mb-mili font-bold text-default",
45
+ hr: "mb-mili border-0 h-px bg-content-primary",
46
46
  container: "flex flex-col gap-y-mili"
47
47
  }
48
48
  });
49
49
  const subItem = tailwindVariants.tv({
50
50
  slots: {
51
- container: "pl-deca text-sub border-l-[1px] border-primary-medium text-secondary-dark hover:text-primary-medium cursor-pointer"
51
+ container: "pl-deca text-sub border-l-[1px] border-primary-medium text-content-secondary hover:text-primary-medium cursor-pointer"
52
52
  }
53
53
  });
54
54
  const animate = tailwindVariants.tv({
@@ -47,10 +47,10 @@ const AccordionTrigger = ({
47
47
  className: clsx(
48
48
  "rounded-mili border border-secondary-light flex align-center justify-center p-micro",
49
49
  {
50
- "absolute -translate-x-micro translate-y-deca bg-white": floating && direction === "horizontal"
50
+ "absolute -translate-x-micro translate-y-deca bg-surface-overlay": floating && direction === "horizontal"
51
51
  },
52
52
  {
53
- "absolute -translate-y-micro translate-x-deca bg-white": floating && direction === "vertical"
53
+ "absolute -translate-y-micro translate-x-deca bg-surface-overlay": floating && direction === "vertical"
54
54
  },
55
55
  className
56
56
  ),
@@ -21,7 +21,7 @@ const CalendarGrid = ({ state }) => {
21
21
  return /* @__PURE__ */ jsx(
22
22
  "div",
23
23
  {
24
- className: "bg-white rounded-micro px-deca py-mili",
24
+ className: "bg-surface-overlay rounded-micro px-deca py-mili",
25
25
  "data-testid": "calendar-grid",
26
26
  children: /* @__PURE__ */ jsxs("table", { ...gridProps, className: "border-separate border-spacing-y-nano", children: [
27
27
  /* @__PURE__ */ jsx("thead", { ...headerProps, children: /* @__PURE__ */ jsx(CalendarGridHeaderRow, { weekDays }) }),
@@ -4,19 +4,28 @@ import { forwardRef } from 'react';
4
4
 
5
5
  const Box = forwardRef((props, ref) => {
6
6
  const { id, className, ...rest } = props;
7
- return /* @__PURE__ */ jsx("div", { className: clsx("w-tera h-kilo border overflow-hidden relative", className), children: /* @__PURE__ */ jsx(
8
- "input",
7
+ return /* @__PURE__ */ jsx(
8
+ "div",
9
9
  {
10
- ...rest,
11
- id,
12
- type: "color",
13
- className: "bg-transparent cursor-pointer disabled:opacity-50 disabled:cursor-default absolute -top-1.5 -right-1 w-peta h-giga",
14
- ref
10
+ className: clsx(
11
+ "w-tera h-kilo border overflow-hidden relative",
12
+ className
13
+ ),
14
+ children: /* @__PURE__ */ jsx(
15
+ "input",
16
+ {
17
+ ...rest,
18
+ id,
19
+ type: "color",
20
+ className: "bg-transparent cursor-pointer disabled:opacity-50 disabled:cursor-default absolute -top-1.5 -right-1 w-peta h-giga",
21
+ ref
22
+ }
23
+ )
15
24
  }
16
- ) });
25
+ );
17
26
  });
18
27
  const Face = ({ children }) => {
19
- return /* @__PURE__ */ jsx("div", { className: "rounded-mili p-mili shadow-default bg-white flex flex-row items-center gap-2", children });
28
+ return /* @__PURE__ */ jsx("div", { className: "rounded-mili p-mili shadow-default bg-[#222222] flex flex-row items-center gap-2", children });
20
29
  };
21
30
  const Label = ({
22
31
  children,
@@ -9,7 +9,7 @@ const SelectPopover = ({ children }) => {
9
9
  return /* @__PURE__ */ jsx(FloatingPortal, { children: /* @__PURE__ */ jsx(
10
10
  Popover.Content,
11
11
  {
12
- className: "bg-white max-h-[30vh] overflow-y-auto gap-y-mili flex flex-col p-0",
12
+ className: "bg-surface-overlay max-h-[30vh] overflow-y-auto gap-y-mili flex flex-col p-0",
13
13
  style: {
14
14
  width: triggerWidth ? `${triggerWidth}px` : "auto",
15
15
  zIndex: 9999
@@ -56,7 +56,7 @@ const Root = ({
56
56
  "div",
57
57
  {
58
58
  className: clsx(
59
- "flex w-full space-x-2 bg-white p-4 pb-2 rounded-mili",
59
+ "flex w-full space-x-2 bg-surface-overlay p-4 pb-2 rounded-mili",
60
60
  className
61
61
  ),
62
62
  children: React.Children.map(children, renderNode)
@@ -60,7 +60,7 @@ const TimePickerInputWithPopover = (props) => {
60
60
  /* @__PURE__ */ jsx(
61
61
  Popover.Content,
62
62
  {
63
- className: "bg-white shadow-default border-none p-deca flex flex-col",
63
+ className: "bg-surface-overlay shadow-default border-none p-deca flex flex-col",
64
64
  initialFocus: -1,
65
65
  children: /* @__PURE__ */ jsx(
66
66
  TimePickerSelector,
@@ -17,7 +17,7 @@ const Dropzone = ({
17
17
  {
18
18
  ...getRootProps(),
19
19
  className: clsx(
20
- "bg-white w-full border-dashed border-2 p-deca flex flex-col justify-center rounded-mili overflow-auto h-[18rem]",
20
+ "bg-surface-overlay w-full border-dashed border-2 p-deca flex flex-col justify-center rounded-mili overflow-auto h-[18rem]",
21
21
  {
22
22
  "border-success-medium bg-gray-100": isDragActive
23
23
  }
@@ -6,7 +6,7 @@ const Files = ({
6
6
  onDelete,
7
7
  uploadProgressText = "Upload(s) in progress"
8
8
  }) => {
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: [
9
+ return /* @__PURE__ */ jsxs("div", { className: "bg-surface-overlay 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
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}` }),
12
12
  /* @__PURE__ */ jsx("h2", { className: "text-md font-semibold", "data-testid": "upload-progress", children: uploadProgressText })
@@ -16,7 +16,7 @@ const Modal = ({
16
16
  {
17
17
  open,
18
18
  onClose,
19
- className: "flex flex-col bg-secondary-xlight rounded-mili min-w-[70vw] max-w-[95vh] max-h-[95vh] overflow-auto",
19
+ className: "flex flex-col bg-surface-base rounded-mili min-w-[70vw] max-w-[95vh] max-h-[95vh] overflow-auto text-default",
20
20
  children: [
21
21
  /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between mb-deca", children: [
22
22
  /* @__PURE__ */ jsx("h2", { className: "text-deca font-semibold ml-tera flex-1 text-center", children: title }),
@@ -2,10 +2,10 @@ import { tv } from 'tailwind-variants';
2
2
 
3
3
  const menubar = tv({
4
4
  slots: {
5
- header: "relative w-screen px-kilo py-deca flex flex-row md:justify-between bg-white z-header sm:justify-start",
5
+ header: "relative w-screen px-kilo py-deca flex flex-row md:justify-between bg-surface-overlay z-header sm:justify-start",
6
6
  left: "flex items-center w-fit",
7
7
  right: "flex items-center gap-x-deca hidden sm:flex",
8
- dropdown: "w-full bg-white flex-1 shadow-default z-popover px-[8vw] absolute"
8
+ dropdown: "w-full bg-surface-overlay flex-1 shadow-default z-popover px-[8vw] absolute"
9
9
  },
10
10
  variants: {
11
11
  show: {
@@ -19,7 +19,7 @@ const menubar = tv({
19
19
  const mostUsed = tv({
20
20
  slots: {
21
21
  container: "mb-kilo",
22
- label: "font-bold mb-centi",
22
+ label: "font-bold mb-centi text-default",
23
23
  containerList: "gap-x-kilo flex flex-row"
24
24
  }
25
25
  });
@@ -27,26 +27,26 @@ const mostUsedItem = tv({
27
27
  slots: {
28
28
  container: "flex-1 py-mili",
29
29
  title: "text-primary-medium font-bold text-base",
30
- category: "text-secondary-medium text-label"
30
+ category: "text-content-tertiary text-label"
31
31
  }
32
32
  });
33
33
  const item = tv({
34
34
  slots: {
35
- container: "flex flex-row gap-x-deca items-center text-secondary-dark hover:cursor-pointer text-base",
35
+ container: "flex flex-row gap-x-deca items-center text-content-secondary hover:cursor-pointer text-base",
36
36
  textBehavior: "hover:text-primary-medium",
37
37
  icon: "text-primary-medium hover:cursor-pointer"
38
38
  }
39
39
  });
40
40
  const category = tv({
41
41
  slots: {
42
- text: "mb-mili font-bold",
43
- hr: "mb-mili border-0 h-px bg-secondary-light",
42
+ text: "mb-mili font-bold text-default",
43
+ hr: "mb-mili border-0 h-px bg-content-primary",
44
44
  container: "flex flex-col gap-y-mili"
45
45
  }
46
46
  });
47
47
  const subItem = tv({
48
48
  slots: {
49
- container: "pl-deca text-sub border-l-[1px] border-primary-medium text-secondary-dark hover:text-primary-medium cursor-pointer"
49
+ container: "pl-deca text-sub border-l-[1px] border-primary-medium text-content-secondary hover:text-primary-medium cursor-pointer"
50
50
  }
51
51
  });
52
52
  const animate = tv({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "1.16.0-beta.1",
3
+ "version": "1.16.0-beta.3",
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": "1.3.0-beta.1",
23
+ "@tecsinapse/cortex-core": "1.3.0-beta.3",
24
24
  "clsx": "2.1.1",
25
25
  "currency.js": "2.0.4",
26
26
  "embla-carousel-autoplay": "^8.0.0",
@@ -48,5 +48,5 @@
48
48
  "react-icons": ">=5.2.0",
49
49
  "tailwind": ">=3.3.0"
50
50
  },
51
- "gitHead": "c976f6fea2c049735ce9fcacfc61583a552c10e1"
51
+ "gitHead": "f13be73645bde5042aeb082331dc6c6d80fb506e"
52
52
  }