@easyvision/easyvision-ui 1.3.8 → 1.3.9

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.
@@ -0,0 +1,68 @@
1
+ /* EasyVision table scroll wrapper — show both axes' scrollbars.
2
+ * Co-located with the component so it ships wherever EasyVision is used,
3
+ * even when the host project hides scrollbars globally.
4
+ * Uses theme-agnostic rgba so it works without any CSS variable setup. */
5
+
6
+ .easyvision-table-scroll {
7
+ scrollbar-width: thin; /* Firefox */
8
+ scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
9
+ -ms-overflow-style: auto; /* IE/Edge */
10
+ }
11
+
12
+ .easyvision-table-scroll::-webkit-scrollbar {
13
+ display: block;
14
+ width: 10px;
15
+ height: 10px;
16
+ }
17
+
18
+ .easyvision-table-scroll::-webkit-scrollbar-track {
19
+ background: transparent;
20
+ }
21
+
22
+ .easyvision-table-scroll::-webkit-scrollbar-thumb {
23
+ background: rgba(0, 0, 0, 0.35);
24
+ border-radius: 10px;
25
+ border: 2px solid transparent;
26
+ background-clip: padding-box;
27
+ }
28
+
29
+ .easyvision-table-scroll::-webkit-scrollbar-thumb:hover {
30
+ background: rgba(0, 0, 0, 0.55);
31
+ background-clip: padding-box;
32
+ border: 2px solid transparent;
33
+ }
34
+
35
+ .easyvision-table-scroll::-webkit-scrollbar-corner {
36
+ background: transparent;
37
+ }
38
+
39
+ /* Dark mode — works with either `prefers-color-scheme` or a `.dark` class
40
+ * on a parent element (the convention used by Shadcn/UI). */
41
+ @media (prefers-color-scheme: dark) {
42
+ .easyvision-table-scroll {
43
+ scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
44
+ }
45
+ .easyvision-table-scroll::-webkit-scrollbar-thumb {
46
+ background: rgba(255, 255, 255, 0.3);
47
+ background-clip: padding-box;
48
+ }
49
+ .easyvision-table-scroll::-webkit-scrollbar-thumb:hover {
50
+ background: rgba(255, 255, 255, 0.5);
51
+ background-clip: padding-box;
52
+ }
53
+ }
54
+
55
+ .dark .easyvision-table-scroll,
56
+ [data-theme='dark'] .easyvision-table-scroll {
57
+ scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
58
+ }
59
+ .dark .easyvision-table-scroll::-webkit-scrollbar-thumb,
60
+ [data-theme='dark'] .easyvision-table-scroll::-webkit-scrollbar-thumb {
61
+ background: rgba(255, 255, 255, 0.3);
62
+ background-clip: padding-box;
63
+ }
64
+ .dark .easyvision-table-scroll::-webkit-scrollbar-thumb:hover,
65
+ [data-theme='dark'] .easyvision-table-scroll::-webkit-scrollbar-thumb:hover {
66
+ background: rgba(255, 255, 255, 0.5);
67
+ background-clip: padding-box;
68
+ }
@@ -1 +1,30 @@
1
- .easyvision-table-scroll{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.4) transparent;-ms-overflow-style:auto}.easyvision-table-scroll::-webkit-scrollbar{display:block;width:10px;height:10px}.easyvision-table-scroll::-webkit-scrollbar-track{background:transparent}.easyvision-table-scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,.35);border-radius:10px;border:2px solid transparent;background-clip:padding-box}.easyvision-table-scroll::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.55);background-clip:padding-box;border:2px solid transparent}.easyvision-table-scroll::-webkit-scrollbar-corner{background:transparent}@media (prefers-color-scheme:dark){.easyvision-table-scroll{scrollbar-color:hsla(0,0%,100%,.4) transparent}.easyvision-table-scroll::-webkit-scrollbar-thumb{background:hsla(0,0%,100%,.3);background-clip:padding-box}.easyvision-table-scroll::-webkit-scrollbar-thumb:hover{background:hsla(0,0%,100%,.5);background-clip:padding-box}}.dark .easyvision-table-scroll,[data-theme=dark] .easyvision-table-scroll{scrollbar-color:hsla(0,0%,100%,.4) transparent}.dark .easyvision-table-scroll::-webkit-scrollbar-thumb,[data-theme=dark] .easyvision-table-scroll::-webkit-scrollbar-thumb{background:hsla(0,0%,100%,.3);background-clip:padding-box}.dark .easyvision-table-scroll::-webkit-scrollbar-thumb:hover,[data-theme=dark] .easyvision-table-scroll::-webkit-scrollbar-thumb:hover{background:hsla(0,0%,100%,.5);background-clip:padding-box}.easyvision-table-scroll>div{scrollbar-width:thin;scrollbar-color:hsl(var(--muted-foreground)/.4) transparent}.easyvision-table-scroll>div::-webkit-scrollbar{display:block;height:8px;width:8px}.easyvision-table-scroll>div::-webkit-scrollbar-track{background:transparent}.easyvision-table-scroll>div::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.35);border-radius:4px}.easyvision-table-scroll>div::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.55)}
1
+ /* Re-enable scrollbars on table scroll containers. Some host projects
2
+ * globally hide scrollbars via `* { scrollbar-width: none }` and
3
+ * `*::-webkit-scrollbar { display: none }`; this rule overrides that
4
+ * for any element marked with `.easyvision-table-scroll` so the table
5
+ * gets a visible horizontal scrollbar when its content overflows.
6
+ * The shadcn <Table> primitive wraps itself in a div with overflow-auto;
7
+ * we target that wrapper through our own marker class. */
8
+ .easyvision-table-scroll > div {
9
+ scrollbar-width: thin;
10
+ scrollbar-color: hsl(var(--muted-foreground) / 0.4) transparent;
11
+ }
12
+
13
+ .easyvision-table-scroll > div::-webkit-scrollbar {
14
+ display: block;
15
+ height: 8px;
16
+ width: 8px;
17
+ }
18
+
19
+ .easyvision-table-scroll > div::-webkit-scrollbar-track {
20
+ background: transparent;
21
+ }
22
+
23
+ .easyvision-table-scroll > div::-webkit-scrollbar-thumb {
24
+ background: hsl(var(--muted-foreground) / 0.35);
25
+ border-radius: 4px;
26
+ }
27
+
28
+ .easyvision-table-scroll > div::-webkit-scrollbar-thumb:hover {
29
+ background: hsl(var(--muted-foreground) / 0.55);
30
+ }
package/dist/index.cjs CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('./easyvision.css');
4
+ require('./EasyVisionTable.css');
4
5
  var React8 = require('react');
5
6
  var lucideReact = require('lucide-react');
6
7
  var clsx = require('clsx');
@@ -17,12 +18,9 @@ var CheckboxPrimitive = require('@radix-ui/react-checkbox');
17
18
  var dateFns = require('date-fns');
18
19
  var locale = require('date-fns/locale');
19
20
  var reactDayPicker = require('react-day-picker');
20
- var styles = require('./EasyVisionTable.module-OTJHTKCW.module.css');
21
21
  var reactTable = require('@tanstack/react-table');
22
22
  var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
23
23
 
24
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
25
-
26
24
  function _interopNamespace(e) {
27
25
  if (e && e.__esModule) return e;
28
26
  var n = Object.create(null);
@@ -45,7 +43,6 @@ var React8__namespace = /*#__PURE__*/_interopNamespace(React8);
45
43
  var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
46
44
  var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
47
45
  var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
48
- var styles__default = /*#__PURE__*/_interopDefault(styles);
49
46
  var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
50
47
 
51
48
  // index.ts
@@ -2825,7 +2822,7 @@ function EasyVisionTable(props) {
2825
2822
  header.isPlaceholder ? null : sortable ? /* @__PURE__ */ jsxRuntime.jsxs(
2826
2823
  "button",
2827
2824
  {
2828
- className: `${styles__default.default.flex} ${styles__default.default.itemsCenter} gap-1 select-none hover:opacity-70`,
2825
+ className: "flex items-center gap-1 select-none hover:opacity-70",
2829
2826
  onClick: header.column.getToggleSortingHandler(),
2830
2827
  children: [
2831
2828
  reactTable.flexRender(header.column.columnDef.header, header.getContext()),
@@ -2919,7 +2916,7 @@ function EasyVisionTable(props) {
2919
2916
  children: cellMeta.truncate ? /* @__PURE__ */ jsxRuntime.jsx(
2920
2917
  "div",
2921
2918
  {
2922
- className: styles__default.default.truncate,
2919
+ className: "truncate",
2923
2920
  title: titleAttr,
2924
2921
  children: rendered
2925
2922
  }