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

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.
Files changed (47) hide show
  1. package/dist/cjs/components/Accordion/Trigger.js +6 -6
  2. package/dist/cjs/components/Avatar.js +1 -1
  3. package/dist/cjs/components/Breadcrumbs/BreadcrumbItem.js +1 -1
  4. package/dist/cjs/components/Calendar/CalendarGrid.js +1 -1
  5. package/dist/cjs/components/ColorPicker.js +18 -9
  6. package/dist/cjs/components/Kanban.js +1 -1
  7. package/dist/cjs/components/Popover/Content.js +1 -1
  8. package/dist/cjs/components/Select/Popover.js +1 -1
  9. package/dist/cjs/components/Skeleton.js +1 -1
  10. package/dist/cjs/components/Stepper/Root.js +1 -1
  11. package/dist/cjs/components/TimePicker/TimePickerInput.js +1 -1
  12. package/dist/cjs/components/Uploader/Dropzone.js +3 -3
  13. package/dist/cjs/components/Uploader/Files.js +1 -1
  14. package/dist/cjs/components/Uploader/Manager.js +1 -1
  15. package/dist/cjs/components/Uploader/Modal.js +1 -1
  16. package/dist/cjs/styles/calendar-cell.js +2 -2
  17. package/dist/cjs/styles/date-picker-input-base.js +1 -1
  18. package/dist/cjs/styles/date-segment.js +2 -2
  19. package/dist/cjs/styles/groupButton.js +3 -3
  20. package/dist/cjs/styles/menubar.js +8 -8
  21. package/dist/cjs/styles/progressBar.js +1 -1
  22. package/dist/cjs/styles/stepNodeVariants.js +2 -2
  23. package/dist/cjs/styles/time-field-input.js +1 -1
  24. package/dist/esm/components/Accordion/Trigger.js +6 -6
  25. package/dist/esm/components/Avatar.js +1 -1
  26. package/dist/esm/components/Breadcrumbs/BreadcrumbItem.js +1 -1
  27. package/dist/esm/components/Calendar/CalendarGrid.js +1 -1
  28. package/dist/esm/components/ColorPicker.js +18 -9
  29. package/dist/esm/components/Kanban.js +1 -1
  30. package/dist/esm/components/Popover/Content.js +1 -1
  31. package/dist/esm/components/Select/Popover.js +1 -1
  32. package/dist/esm/components/Skeleton.js +1 -1
  33. package/dist/esm/components/Stepper/Root.js +1 -1
  34. package/dist/esm/components/TimePicker/TimePickerInput.js +1 -1
  35. package/dist/esm/components/Uploader/Dropzone.js +3 -3
  36. package/dist/esm/components/Uploader/Files.js +1 -1
  37. package/dist/esm/components/Uploader/Manager.js +1 -1
  38. package/dist/esm/components/Uploader/Modal.js +1 -1
  39. package/dist/esm/styles/calendar-cell.js +2 -2
  40. package/dist/esm/styles/date-picker-input-base.js +1 -1
  41. package/dist/esm/styles/date-segment.js +2 -2
  42. package/dist/esm/styles/groupButton.js +3 -3
  43. package/dist/esm/styles/menubar.js +8 -8
  44. package/dist/esm/styles/progressBar.js +1 -1
  45. package/dist/esm/styles/stepNodeVariants.js +2 -2
  46. package/dist/esm/styles/time-field-input.js +1 -1
  47. package/package.json +3 -3
@@ -35,7 +35,7 @@ const AccordionTrigger = ({
35
35
  "div",
36
36
  {
37
37
  className: clsx(
38
- "flex justify-between align-center border-secondary-light cursor-pointer",
38
+ "flex justify-between align-center border-content-minimal cursor-pointer",
39
39
  { "mr-deca": floating && direction === "horizontal" },
40
40
  { "mb-deca": floating && direction === "vertical" },
41
41
  { "border-r flex-col px-mili": direction === "horizontal" },
@@ -47,12 +47,12 @@ const AccordionTrigger = ({
47
47
  "div",
48
48
  {
49
49
  className: clsx(
50
- "rounded-mili border border-secondary-light flex align-center justify-center p-micro",
50
+ "rounded-mili border border-content-minimal 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
  ),
@@ -60,7 +60,7 @@ const AccordionTrigger = ({
60
60
  lia.LiaAngleRightSolid,
61
61
  {
62
62
  className: clsx(
63
- "text-secondary-medium transition-transform duration-200",
63
+ "text-content-low transition-transform duration-200",
64
64
  {
65
65
  "rotate-180": invertedArrow ? !open : open
66
66
  }
@@ -70,7 +70,7 @@ const AccordionTrigger = ({
70
70
  lia.LiaAngleDownSolid,
71
71
  {
72
72
  className: clsx(
73
- "text-secondary-medium transition-transform duration-200",
73
+ "text-content-low transition-transform duration-200",
74
74
  {
75
75
  "rotate-180": invertedArrow ? !open : open
76
76
  }
@@ -16,7 +16,7 @@ const Avatar = ({ src, name, className, ...rest }) => {
16
16
  {
17
17
  ...rest,
18
18
  className: clsx(
19
- "rounded-pill bg-secondary-dark h-mega flex items-center justify-center cursor-pointer aspect-square",
19
+ "rounded-pill bg-content-medium h-mega flex items-center justify-center cursor-pointer aspect-square",
20
20
  className
21
21
  ),
22
22
  children: src && !hasError ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -17,7 +17,7 @@ const BreadcrumbItem = ({
17
17
  {
18
18
  className: clsx(
19
19
  "no-underline",
20
- isLast ? "text-secondary-medium cursor-default" : "text-secondary-xdark cursor-pointer"
20
+ isLast ? "text-content-low cursor-default" : "text-content-medium cursor-pointer"
21
21
  ),
22
22
  children: title
23
23
  }
@@ -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-default flex flex-row items-center gap-2", children });
22
31
  };
23
32
  const Label = ({
24
33
  children,
@@ -9,7 +9,7 @@ const Root = ({ children, className, ...rest }) => {
9
9
  {
10
10
  ...rest,
11
11
  className: clsx.clsx(
12
- "border border-dashed border-secondary-medium rounded-mili bg-secondary-xlight overflow-hidden",
12
+ "border border-dashed border-content-low rounded-mili bg-content-inverse overflow-hidden",
13
13
  className
14
14
  ),
15
15
  children
@@ -28,7 +28,7 @@ const PopoverContent = ({
28
28
  ref: refs.setFloating,
29
29
  ...getFloatingProps(),
30
30
  className: clsx(
31
- "border border-gray-200 bg-black p-[0px] rounded-md shadow-default z-popover",
31
+ "border border-gray-200 bg-surface-inverse p-0 rounded-md shadow-default z-popover",
32
32
  className
33
33
  ),
34
34
  style: {
@@ -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
@@ -9,7 +9,7 @@ const Skeleton = ({ className, children, ...rest }) => {
9
9
  {
10
10
  ...rest,
11
11
  "data-testid": "skeleton",
12
- className: clsx("animate-pulse bg-secondary-light", className),
12
+ className: clsx("animate-pulse bg-content-minimal", className),
13
13
  children
14
14
  }
15
15
  );
@@ -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
  }
@@ -27,7 +27,7 @@ const Dropzone = ({
27
27
  children: [
28
28
  /* @__PURE__ */ jsxRuntime.jsx("input", { ...getInputProps() }),
29
29
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col justify-center text-center items-center", children: [
30
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
30
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
31
31
  /* @__PURE__ */ jsxRuntime.jsx(
32
32
  hi2.HiOutlineCloudArrowUp,
33
33
  {
@@ -38,7 +38,7 @@ const Dropzone = ({
38
38
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-semibold", "data-testid": "select-dropzone", children: selectFileText })
39
39
  ] }),
40
40
  hasButton ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-centi", children: [
41
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-secondary-medium", children: dropText }),
41
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-content-low", children: dropText }),
42
42
  isFileLimitReached ? /* @__PURE__ */ jsxRuntime.jsx(Tooltip.Tooltip, { text: "Voc\xEA s\xF3 pode selecionar um \xFAnico arquivo.", children: /* @__PURE__ */ jsxRuntime.jsx(
43
43
  "button",
44
44
  {
@@ -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 })
@@ -47,7 +47,7 @@ const Manager = ({
47
47
  children: min ? /* @__PURE__ */ jsxRuntime.jsx(io5.IoChevronUp, {}) : /* @__PURE__ */ jsxRuntime.jsx(io5.IoChevronDown, {})
48
48
  }
49
49
  ),
50
- /* @__PURE__ */ jsxRuntime.jsx("h3", { "data-testid": "upload-progress", children: isLoading ? uploadProgressText : uploadSuccessText }),
50
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { "data-testid": "upload-progress", className: "font-bold text-h4", children: isLoading ? uploadProgressText : uploadSuccessText }),
51
51
  /* @__PURE__ */ jsxRuntime.jsx(
52
52
  Button.Button,
53
53
  {
@@ -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,7 +4,7 @@ var tailwindVariants = require('tailwind-variants');
4
4
 
5
5
  const calendarCell = tailwindVariants.tv({
6
6
  slots: {
7
- cell: "text-center rounded-mili text-black hover:bg-primary-light",
7
+ cell: "text-center rounded-mili hover:bg-primary-light",
8
8
  button: "flex aspect-square items-center justify-center"
9
9
  },
10
10
  variants: {
@@ -35,7 +35,7 @@ const calendarCell = tailwindVariants.tv({
35
35
  },
36
36
  isDisabled: {
37
37
  true: {
38
- cell: "text-secondary-light cursor-default hover:bg-white-500",
38
+ cell: "text-content-minimal cursor-default hover:bg-surface-overlay",
39
39
  button: "cursor-default"
40
40
  }
41
41
  }
@@ -9,7 +9,7 @@ const datePickerInputBase = tailwindVariants.tv({
9
9
  variants: {
10
10
  disabled: {
11
11
  true: {
12
- icon: "text-secondary-light cursor-default"
12
+ icon: "text-content-minimal cursor-default"
13
13
  }
14
14
  }
15
15
  }
@@ -4,12 +4,12 @@ var tailwindVariants = require('tailwind-variants');
4
4
 
5
5
  const dateSegment = tailwindVariants.tv({
6
6
  slots: {
7
- base: "focus:outline-none focus:bg-secondary-light"
7
+ base: "focus:outline-none focus:bg-content-minimal"
8
8
  },
9
9
  variants: {
10
10
  disabled: {
11
11
  true: {
12
- base: "text-secondary-light"
12
+ base: "text-content-minimal"
13
13
  }
14
14
  }
15
15
  }
@@ -4,12 +4,12 @@ var tailwindVariants = require('tailwind-variants');
4
4
 
5
5
  const groupButton = tailwindVariants.tv({
6
6
  slots: {
7
- button: "border-[1px] border-secondary-medium px-centi py-mili items-center flex text-sub font-bold",
8
- inactive: "bg-white text-secondary-medium disabled:bg-secondary-light",
7
+ button: "border-[1px] border-content-low px-centi py-mili items-center flex text-sub font-bold",
8
+ inactive: "bg-surface-overlay text-content-low disabled:bg-content-minimal",
9
9
  firstButton: "first:rounded-l-mili first:border-r-0",
10
10
  lastButton: "last:rounded-r-mili last:border-l-0",
11
11
  container: "flex flex-row h-[2rem]",
12
- active: "text-white bg-secondary-medium"
12
+ active: "text-white bg-content-low"
13
13
  }
14
14
  });
15
15
 
@@ -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-low 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-medium 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-high",
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-medium hover:text-primary-medium cursor-pointer"
52
52
  }
53
53
  });
54
54
  const animate = tailwindVariants.tv({
@@ -5,7 +5,7 @@ var tailwindVariants = require('tailwind-variants');
5
5
  const ProgressVariants = tailwindVariants.tv({
6
6
  slots: {
7
7
  container: "relative",
8
- bar: "h-1.5 w-full overflow-hidden bg-secondary-xlight",
8
+ bar: "h-1.5 w-full overflow-hidden bg-content-inverse",
9
9
  progress: "w-full h-full rounded-mili"
10
10
  },
11
11
  variants: {
@@ -30,8 +30,8 @@ const StepNodeVariants = tailwindVariants.tv({
30
30
  content: "font-bold"
31
31
  },
32
32
  false: {
33
- content: "text-secondary-medium",
34
- separator: "bg-secondary-light"
33
+ content: "text-content-low",
34
+ separator: "bg-content-minimal"
35
35
  }
36
36
  },
37
37
  selected: {
@@ -9,7 +9,7 @@ const timePickerInputBase = tailwindVariants.tv({
9
9
  variants: {
10
10
  disabled: {
11
11
  true: {
12
- icon: "text-secondary-light cursor-default"
12
+ icon: "text-content-minimal cursor-default"
13
13
  }
14
14
  }
15
15
  }
@@ -33,7 +33,7 @@ const AccordionTrigger = ({
33
33
  "div",
34
34
  {
35
35
  className: clsx(
36
- "flex justify-between align-center border-secondary-light cursor-pointer",
36
+ "flex justify-between align-center border-content-minimal cursor-pointer",
37
37
  { "mr-deca": floating && direction === "horizontal" },
38
38
  { "mb-deca": floating && direction === "vertical" },
39
39
  { "border-r flex-col px-mili": direction === "horizontal" },
@@ -45,12 +45,12 @@ const AccordionTrigger = ({
45
45
  "div",
46
46
  {
47
47
  className: clsx(
48
- "rounded-mili border border-secondary-light flex align-center justify-center p-micro",
48
+ "rounded-mili border border-content-minimal 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
  ),
@@ -58,7 +58,7 @@ const AccordionTrigger = ({
58
58
  LiaAngleRightSolid,
59
59
  {
60
60
  className: clsx(
61
- "text-secondary-medium transition-transform duration-200",
61
+ "text-content-low transition-transform duration-200",
62
62
  {
63
63
  "rotate-180": invertedArrow ? !open : open
64
64
  }
@@ -68,7 +68,7 @@ const AccordionTrigger = ({
68
68
  LiaAngleDownSolid,
69
69
  {
70
70
  className: clsx(
71
- "text-secondary-medium transition-transform duration-200",
71
+ "text-content-low transition-transform duration-200",
72
72
  {
73
73
  "rotate-180": invertedArrow ? !open : open
74
74
  }
@@ -14,7 +14,7 @@ const Avatar = ({ src, name, className, ...rest }) => {
14
14
  {
15
15
  ...rest,
16
16
  className: clsx(
17
- "rounded-pill bg-secondary-dark h-mega flex items-center justify-center cursor-pointer aspect-square",
17
+ "rounded-pill bg-content-medium h-mega flex items-center justify-center cursor-pointer aspect-square",
18
18
  className
19
19
  ),
20
20
  children: src && !hasError ? /* @__PURE__ */ jsx(
@@ -15,7 +15,7 @@ const BreadcrumbItem = ({
15
15
  {
16
16
  className: clsx(
17
17
  "no-underline",
18
- isLast ? "text-secondary-medium cursor-default" : "text-secondary-xdark cursor-pointer"
18
+ isLast ? "text-content-low cursor-default" : "text-content-medium cursor-pointer"
19
19
  ),
20
20
  children: title
21
21
  }
@@ -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-default flex flex-row items-center gap-2", children });
20
29
  };
21
30
  const Label = ({
22
31
  children,
@@ -7,7 +7,7 @@ const Root = ({ children, className, ...rest }) => {
7
7
  {
8
8
  ...rest,
9
9
  className: clsx(
10
- "border border-dashed border-secondary-medium rounded-mili bg-secondary-xlight overflow-hidden",
10
+ "border border-dashed border-content-low rounded-mili bg-content-inverse overflow-hidden",
11
11
  className
12
12
  ),
13
13
  children
@@ -26,7 +26,7 @@ const PopoverContent = ({
26
26
  ref: refs.setFloating,
27
27
  ...getFloatingProps(),
28
28
  className: clsx(
29
- "border border-gray-200 bg-black p-[0px] rounded-md shadow-default z-popover",
29
+ "border border-gray-200 bg-surface-inverse p-0 rounded-md shadow-default z-popover",
30
30
  className
31
31
  ),
32
32
  style: {
@@ -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
@@ -7,7 +7,7 @@ const Skeleton = ({ className, children, ...rest }) => {
7
7
  {
8
8
  ...rest,
9
9
  "data-testid": "skeleton",
10
- className: clsx("animate-pulse bg-secondary-light", className),
10
+ className: clsx("animate-pulse bg-content-minimal", className),
11
11
  children
12
12
  }
13
13
  );
@@ -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
  }
@@ -25,7 +25,7 @@ const Dropzone = ({
25
25
  children: [
26
26
  /* @__PURE__ */ jsx("input", { ...getInputProps() }),
27
27
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-center text-center items-center", children: [
28
- /* @__PURE__ */ jsxs("div", { children: [
28
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
29
29
  /* @__PURE__ */ jsx(
30
30
  HiOutlineCloudArrowUp,
31
31
  {
@@ -36,7 +36,7 @@ const Dropzone = ({
36
36
  /* @__PURE__ */ jsx("p", { className: "text-lg font-semibold", "data-testid": "select-dropzone", children: selectFileText })
37
37
  ] }),
38
38
  hasButton ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-centi", children: [
39
- /* @__PURE__ */ jsx("p", { className: "text-sm text-secondary-medium", children: dropText }),
39
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-content-low", children: dropText }),
40
40
  isFileLimitReached ? /* @__PURE__ */ jsx(Tooltip, { text: "Voc\xEA s\xF3 pode selecionar um \xFAnico arquivo.", children: /* @__PURE__ */ jsx(
41
41
  "button",
42
42
  {
@@ -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 })
@@ -45,7 +45,7 @@ const Manager = ({
45
45
  children: min ? /* @__PURE__ */ jsx(IoChevronUp, {}) : /* @__PURE__ */ jsx(IoChevronDown, {})
46
46
  }
47
47
  ),
48
- /* @__PURE__ */ jsx("h3", { "data-testid": "upload-progress", children: isLoading ? uploadProgressText : uploadSuccessText }),
48
+ /* @__PURE__ */ jsx("h3", { "data-testid": "upload-progress", className: "font-bold text-h4", children: isLoading ? uploadProgressText : uploadSuccessText }),
49
49
  /* @__PURE__ */ jsx(
50
50
  Button,
51
51
  {
@@ -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,7 +2,7 @@ import { tv } from 'tailwind-variants';
2
2
 
3
3
  const calendarCell = tv({
4
4
  slots: {
5
- cell: "text-center rounded-mili text-black hover:bg-primary-light",
5
+ cell: "text-center rounded-mili hover:bg-primary-light",
6
6
  button: "flex aspect-square items-center justify-center"
7
7
  },
8
8
  variants: {
@@ -33,7 +33,7 @@ const calendarCell = tv({
33
33
  },
34
34
  isDisabled: {
35
35
  true: {
36
- cell: "text-secondary-light cursor-default hover:bg-white-500",
36
+ cell: "text-content-minimal cursor-default hover:bg-surface-overlay",
37
37
  button: "cursor-default"
38
38
  }
39
39
  }
@@ -7,7 +7,7 @@ const datePickerInputBase = tv({
7
7
  variants: {
8
8
  disabled: {
9
9
  true: {
10
- icon: "text-secondary-light cursor-default"
10
+ icon: "text-content-minimal cursor-default"
11
11
  }
12
12
  }
13
13
  }
@@ -2,12 +2,12 @@ import { tv } from 'tailwind-variants';
2
2
 
3
3
  const dateSegment = tv({
4
4
  slots: {
5
- base: "focus:outline-none focus:bg-secondary-light"
5
+ base: "focus:outline-none focus:bg-content-minimal"
6
6
  },
7
7
  variants: {
8
8
  disabled: {
9
9
  true: {
10
- base: "text-secondary-light"
10
+ base: "text-content-minimal"
11
11
  }
12
12
  }
13
13
  }
@@ -2,12 +2,12 @@ import { tv } from 'tailwind-variants';
2
2
 
3
3
  const groupButton = tv({
4
4
  slots: {
5
- button: "border-[1px] border-secondary-medium px-centi py-mili items-center flex text-sub font-bold",
6
- inactive: "bg-white text-secondary-medium disabled:bg-secondary-light",
5
+ button: "border-[1px] border-content-low px-centi py-mili items-center flex text-sub font-bold",
6
+ inactive: "bg-surface-overlay text-content-low disabled:bg-content-minimal",
7
7
  firstButton: "first:rounded-l-mili first:border-r-0",
8
8
  lastButton: "last:rounded-r-mili last:border-l-0",
9
9
  container: "flex flex-row h-[2rem]",
10
- active: "text-white bg-secondary-medium"
10
+ active: "text-white bg-content-low"
11
11
  }
12
12
  });
13
13
 
@@ -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-low 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-medium 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-high",
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-medium hover:text-primary-medium cursor-pointer"
50
50
  }
51
51
  });
52
52
  const animate = tv({
@@ -3,7 +3,7 @@ import { tv } from 'tailwind-variants';
3
3
  const ProgressVariants = tv({
4
4
  slots: {
5
5
  container: "relative",
6
- bar: "h-1.5 w-full overflow-hidden bg-secondary-xlight",
6
+ bar: "h-1.5 w-full overflow-hidden bg-content-inverse",
7
7
  progress: "w-full h-full rounded-mili"
8
8
  },
9
9
  variants: {
@@ -28,8 +28,8 @@ const StepNodeVariants = tv({
28
28
  content: "font-bold"
29
29
  },
30
30
  false: {
31
- content: "text-secondary-medium",
32
- separator: "bg-secondary-light"
31
+ content: "text-content-low",
32
+ separator: "bg-content-minimal"
33
33
  }
34
34
  },
35
35
  selected: {
@@ -7,7 +7,7 @@ const timePickerInputBase = tv({
7
7
  variants: {
8
8
  disabled: {
9
9
  true: {
10
- icon: "text-secondary-light cursor-default"
10
+ icon: "text-content-minimal cursor-default"
11
11
  }
12
12
  }
13
13
  }
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.10",
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.10",
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": "67cc6fecd28f1c78c8542c70ffe87982b7b85e6a"
52
52
  }