@easyvision/easyvision-ui 1.3.6 → 1.3.8

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,27 @@
1
+ .truncate {
2
+ overflow: hidden;
3
+ text-overflow: ellipsis;
4
+ white-space: nowrap;
5
+ }
6
+
7
+ .resize {
8
+ resize: both;
9
+ }
10
+
11
+ .flex {
12
+ display: flex;
13
+ }
14
+
15
+ .inline-flex {
16
+ display: inline-flex;
17
+ }
18
+
19
+ .items-center {
20
+ align-items: center;
21
+ }
22
+
23
+ .justify-between {
24
+ justify-content: space-between;
25
+ }
26
+
27
+ /* Add more only as needed for table/column features */
@@ -1,30 +1 @@
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
- }
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)}
package/dist/index.cjs CHANGED
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  require('./easyvision.css');
4
- require('./EasyVisionTable.css');
5
4
  var React8 = require('react');
6
5
  var lucideReact = require('lucide-react');
7
6
  var clsx = require('clsx');
@@ -18,9 +17,12 @@ var CheckboxPrimitive = require('@radix-ui/react-checkbox');
18
17
  var dateFns = require('date-fns');
19
18
  var locale = require('date-fns/locale');
20
19
  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
+
24
26
  function _interopNamespace(e) {
25
27
  if (e && e.__esModule) return e;
26
28
  var n = Object.create(null);
@@ -43,6 +45,7 @@ var React8__namespace = /*#__PURE__*/_interopNamespace(React8);
43
45
  var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
44
46
  var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
45
47
  var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
48
+ var styles__default = /*#__PURE__*/_interopDefault(styles);
46
49
  var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
47
50
 
48
51
  // index.ts
@@ -2822,7 +2825,7 @@ function EasyVisionTable(props) {
2822
2825
  header.isPlaceholder ? null : sortable ? /* @__PURE__ */ jsxRuntime.jsxs(
2823
2826
  "button",
2824
2827
  {
2825
- className: "flex items-center gap-1 select-none hover:opacity-70",
2828
+ className: `${styles__default.default.flex} ${styles__default.default.itemsCenter} gap-1 select-none hover:opacity-70`,
2826
2829
  onClick: header.column.getToggleSortingHandler(),
2827
2830
  children: [
2828
2831
  reactTable.flexRender(header.column.columnDef.header, header.getContext()),
@@ -2916,7 +2919,7 @@ function EasyVisionTable(props) {
2916
2919
  children: cellMeta.truncate ? /* @__PURE__ */ jsxRuntime.jsx(
2917
2920
  "div",
2918
2921
  {
2919
- className: "truncate",
2922
+ className: styles__default.default.truncate,
2920
2923
  title: titleAttr,
2921
2924
  children: rendered
2922
2925
  }