@1771technologies/lytenyte-pro 0.0.47 → 0.0.49

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect, useCallback, createContext, useContext, useMemo, forwardRef } from "react";
3
3
  import { c as useGrid, G as GridProvider } from "./useScrollLock-D4UY33Sb.js";
4
- import { S as Select } from "./select-CN-kFW8a.js";
4
+ import { S as Select } from "./select-DsanEUFk.js";
5
5
  import { I as Input, C as Checkbox } from "./drag-store-CO3z13Ju.js";
6
6
  import "@1771technologies/react-sizer";
7
7
  import "@1771technologies/react-utils";
package/dist/index.js CHANGED
@@ -2743,7 +2743,25 @@ function GridFrame({
2743
2743
  const frames = state.panelFrames.use();
2744
2744
  const openId = state.internal.panelFrameOpen.use();
2745
2745
  const frame = openId ? frames[openId] : null;
2746
+ const [width, setWidth] = useState(500);
2746
2747
  const [frameSplit, setFrameSplit] = useState(70);
2748
+ useEffect(() => {
2749
+ if (width < 500) {
2750
+ setFrameSplit(1);
2751
+ return;
2752
+ }
2753
+ setFrameSplit(70);
2754
+ }, [width]);
2755
+ const [el, setEl] = useState(null);
2756
+ useEffect(() => {
2757
+ if (!el) return;
2758
+ const re = new ResizeObserver(() => {
2759
+ setWidth(el.clientWidth);
2760
+ api.panelFrameClose();
2761
+ });
2762
+ re.observe(el);
2763
+ return () => re.disconnect();
2764
+ }, [api, el]);
2747
2765
  const template = useMemo(() => {
2748
2766
  const f = ["1fr"];
2749
2767
  if (buttons.length) f.push("32px");
@@ -2756,6 +2774,7 @@ function GridFrame({
2756
2774
  "data-cell-selection-enabled": cellSelectionEnabled ? true : void 0,
2757
2775
  className: "lng1771-grid-frame",
2758
2776
  style: { gridTemplateColumns: template },
2777
+ ref: setEl,
2759
2778
  children: [
2760
2779
  frame ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
2761
2780
  SplitPane,
@@ -2772,9 +2791,13 @@ function GridFrame({
2772
2791
  }
2773
2792
  ) }),
2774
2793
  split: frame ? frameSplit : 100,
2775
- onSplitChange: (n2) => setFrameSplit(n2),
2776
- min: 20,
2777
- max: 80,
2794
+ onSplitChange: (n2) => {
2795
+ console.log("n");
2796
+ setFrameSplit(n2);
2797
+ },
2798
+ min: width < 500 ? 0 : 20,
2799
+ max: width < 500 ? 100 : 80,
2800
+ disabled: width < 500,
2778
2801
  splitterClassName: "lng1771-grid-frame__open-panel--splitter"
2779
2802
  }
2780
2803
  ) }) : /* @__PURE__ */ jsx("div", { children }),
@@ -643,6 +643,11 @@ INPUT
643
643
  justify-content: center;
644
644
  box-sizing: border-box;
645
645
  }
646
+
647
+ .lng1771-menu__submenu-positioner,
648
+ .lng1771-menu__positioner {
649
+ z-index: 100;
650
+ }
646
651
  .lng1771-pill {
647
652
  white-space: nowrap;
648
653
  display: flex;
@@ -1019,6 +1024,10 @@ body.lng1771-drag-on .lng1771-pill-manager__pill-outer[data-pill-active="false"]
1019
1024
  color: var(--lng1771-gray-70);
1020
1025
  }
1021
1026
 
1027
+ .lng1771-select__positioner {
1028
+ z-index: 100;
1029
+ }
1030
+
1022
1031
  .lng1771-select__popup {
1023
1032
  background-color: var(--lng1771-gray-10);
1024
1033
  border: 1px solid var(--lng1771-gray-30);
@@ -1030,8 +1039,6 @@ body.lng1771-drag-on .lng1771-pill-manager__pill-outer[data-pill-active="false"]
1030
1039
  0px 3px 13px 0px rgba(30, 30, 41, 0.1);
1031
1040
  width: var(--anchor-width);
1032
1041
 
1033
- z-index: 100;
1034
-
1035
1042
  &:focus {
1036
1043
  outline: none;
1037
1044
  }
@@ -1142,22 +1149,8 @@ body.lng1771-drag-on .lng1771-pill-manager__pill-outer[data-pill-active="false"]
1142
1149
  }
1143
1150
  }
1144
1151
 
1145
- .lng1771-popover__arrow {
1146
- &[data-side="bottom"] {
1147
- top: -14px;
1148
- }
1149
- &[data-side="left"] {
1150
- right: -14px;
1151
- transform: rotate(90deg);
1152
- }
1153
- &[data-side="right"] {
1154
- left: -14px;
1155
- transform: rotate(-90deg);
1156
- }
1157
- &[data-side="top"] {
1158
- bottom: -14px;
1159
- transform: rotate(180deg);
1160
- }
1152
+ .lng1771-popover__positioner {
1153
+ z-index: 100;
1161
1154
  }
1162
1155
  .lng1771-column-manager__tree {
1163
1156
  padding-block-start: 8px;
@@ -1327,7 +1320,7 @@ body.lng1771-drag-on .lng1771-pill-manager__pill-outer[data-pill-active="false"]
1327
1320
  display: flex;
1328
1321
  flex-direction: column;
1329
1322
  min-height: 120px;
1330
- min-width: 260px;
1323
+ min-width: 120px;
1331
1324
  border-radius: 6px;
1332
1325
  border: 1px solid var(--lng1771-gray-30);
1333
1326
  background-color: var(--lng1771-gray-02);
@@ -1918,6 +1911,10 @@ body.lng1771-drag-on .lng1771-pill-manager__pill-outer[data-pill-active="false"]
1918
1911
  position: relative;
1919
1912
  cursor: col-resize;
1920
1913
 
1914
+ &[data-disabled="true"] {
1915
+ cursor: initial;
1916
+ }
1917
+
1921
1918
  &::after {
1922
1919
  position: absolute;
1923
1920
  inset-inline-start: -4px;
@@ -2227,7 +2227,7 @@ function Select({
2227
2227
  ),
2228
2228
  /* @__PURE__ */ jsx(SelectIcon, { className: clsx("lng1771-select__trigger", triggerIconClassName), children: /* @__PURE__ */ jsx(ArrowDownIcon, {}) })
2229
2229
  ] }),
2230
- /* @__PURE__ */ jsx(SelectPortal, { children: /* @__PURE__ */ jsx(SelectPositioner, { sideOffset: 8, children: /* @__PURE__ */ jsx(SelectPopup, { className: clsx("lng1771-select__popup", popupClassName), children: options.map((c) => {
2230
+ /* @__PURE__ */ jsx(SelectPortal, { children: /* @__PURE__ */ jsx(SelectPositioner, { sideOffset: 8, className: "lng1771-select__positioner", children: /* @__PURE__ */ jsx(SelectPopup, { className: clsx("lng1771-select__popup", popupClassName), children: options.map((c) => {
2231
2231
  return /* @__PURE__ */ jsxs(
2232
2232
  SelectItem,
2233
2233
  {
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { useMemo, useState, useEffect, createContext, useContext, forwardRef } from "react";
3
3
  import { c as useGrid, G as GridProvider } from "./useScrollLock-D4UY33Sb.js";
4
4
  import { clsx } from "@1771technologies/js-utils";
5
- import { S as Select } from "./select-CN-kFW8a.js";
5
+ import { S as Select } from "./select-DsanEUFk.js";
6
6
  import { P as PlusIcon } from "./plus-icon-ToqW5CC-.js";
7
7
  import { C as CrossIcon } from "./cross-icon-CEMLAlFX.js";
8
8
  import { S as Separator } from "./separator-BnPPeAk8.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1771technologies/lytenyte-pro",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "license": "COMMERCIAL",
5
5
  "type": "module",
6
6
  "files": [
@@ -70,20 +70,20 @@
70
70
  "react-dom": "^18.0.0 || ^19.0.0"
71
71
  },
72
72
  "dependencies": {
73
- "@1771technologies/grid-client-data-source-pro": "0.0.47",
74
- "@1771technologies/grid-core": "0.0.47",
75
- "@1771technologies/grid-design": "0.0.47",
76
- "@1771technologies/grid-provider": "0.0.47",
77
- "@1771technologies/grid-store-pro": "0.0.47",
78
- "@1771technologies/grid-tree-data-source": "0.0.47",
79
- "@1771technologies/grid-types": "0.0.47",
80
- "@1771technologies/js-utils": "0.0.47",
81
- "@1771technologies/lytenyte-core": "0.0.47",
82
- "@1771technologies/react-cascada": "0.0.47",
83
- "@1771technologies/react-dragon": "0.0.47",
84
- "@1771technologies/react-sizer": "0.0.47",
85
- "@1771technologies/react-split-pane": "0.0.47",
86
- "@1771technologies/react-utils": "0.0.47",
73
+ "@1771technologies/grid-client-data-source-pro": "0.0.49",
74
+ "@1771technologies/grid-core": "0.0.49",
75
+ "@1771technologies/grid-design": "0.0.49",
76
+ "@1771technologies/grid-provider": "0.0.49",
77
+ "@1771technologies/grid-store-pro": "0.0.49",
78
+ "@1771technologies/grid-tree-data-source": "0.0.49",
79
+ "@1771technologies/grid-types": "0.0.49",
80
+ "@1771technologies/js-utils": "0.0.49",
81
+ "@1771technologies/lytenyte-core": "0.0.49",
82
+ "@1771technologies/react-cascada": "0.0.49",
83
+ "@1771technologies/react-dragon": "0.0.49",
84
+ "@1771technologies/react-sizer": "0.0.49",
85
+ "@1771technologies/react-split-pane": "0.0.49",
86
+ "@1771technologies/react-utils": "0.0.49",
87
87
  "@base-ui-components/react": "1.0.0-alpha.7"
88
88
  },
89
89
  "devDependencies": {