@sheetxl/utils-react 0.8.0-beta.12 → 0.8.0-beta.13
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.
- package/browser/esm/{BRSmfawI3Q6E-zEp.mjs → C9cj9Q5Dz4HCqZD5.mjs} +2 -2
- package/browser/esm/{CgZsWqv--yJ6E3Od.mjs → CBSoiJLg4s9wQNWS.mjs} +1 -1
- package/browser/esm/index.mjs +808 -787
- package/browser/esm/qXzD8cuG5Vm6-bvO.mjs +100 -0
- package/node/esm/{DFsKZrWF_hSPLITK.mjs → BMnj0YLpW6Ayd6Yv.mjs} +1 -1
- package/node/esm/CV1IAozST8HB0Ur0.mjs +100 -0
- package/node/esm/index.mjs +594 -573
- package/package.json +2 -2
- package/types/src/float/FloatStackContext.d.ts +8 -0
- package/types/src/float/_FloatUtils.d.ts +6 -0
- package/types/src/icons/packs/Base.json.d.ts +35 -0
- package/types/src/theme/zIndex.d.ts +2 -2
- package/browser/esm/Cxre-SkPvvodNriU.mjs +0 -100
- package/node/esm/DFqqRMnmEo_UAEFa.mjs +0 -100
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/utils-react",
|
|
3
3
|
"description": "Utils React - Utilities for React capabilities needed for all SheetXL components.",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.13",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@floating-ui/react-dom": "^2.1.9",
|
|
43
|
-
"@sheetxl/utils": "^0.8.0-beta.
|
|
43
|
+
"@sheetxl/utils": "^0.8.0-beta.13",
|
|
44
44
|
"clsx": "^2.1.1",
|
|
45
45
|
"detect-it": "^4.0.1",
|
|
46
46
|
"prop-types": "^15.8.1",
|
|
@@ -22,4 +22,12 @@ export declare const FloatStackProvider: import('react').Provider<FloatReference
|
|
|
22
22
|
* submenu. Such components are not reached by props, only by context.
|
|
23
23
|
*/
|
|
24
24
|
export declare const useFloat: () => FloatReference | null;
|
|
25
|
+
/**
|
|
26
|
+
* Whether a popup (a menu, a picker, a panel) is showing that this component is not inside (reactive).
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* For transient UI that stands aside while the user is in a popup. Content of the popup itself reads
|
|
30
|
+
* `false`, so a tooltip belonging to the menu still shows. A float with no popup (a toolbar) does not count.
|
|
31
|
+
*/
|
|
32
|
+
export declare const useFloatPopupOpen: () => boolean;
|
|
25
33
|
//# sourceMappingURL=FloatStackContext.d.ts.map
|
|
@@ -41,6 +41,12 @@ export interface FloatRoot extends FloatReference {
|
|
|
41
41
|
getChildRef(reference: FloatReference): FloatReference | null;
|
|
42
42
|
/** `reference` plus its full open-child chain. */
|
|
43
43
|
descendants(reference: FloatReference | null): Set<FloatReference>;
|
|
44
|
+
/** Record `reference` as showing a popup; the result records that it stopped. */
|
|
45
|
+
addOpenPopup(reference: FloatReference): () => void;
|
|
46
|
+
/** Whether a popup is showing that `enclosing` is not inside (`null` is inside none). */
|
|
47
|
+
isPopupOpenOutside(enclosing: FloatReference | null): boolean;
|
|
48
|
+
/** Called as popups show and stop showing. */
|
|
49
|
+
subscribeOpenPopups(listener: () => void): () => void;
|
|
44
50
|
}
|
|
45
51
|
/**
|
|
46
52
|
* Creates an isolated root float (a {@link FloatReference} that also holds the
|
|
@@ -1039,6 +1039,14 @@ declare const _default: {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
]
|
|
1041
1041
|
},
|
|
1042
|
+
"Crop": {
|
|
1043
|
+
"svg": [
|
|
1044
|
+
{
|
|
1045
|
+
"d": "M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z",
|
|
1046
|
+
"className": "fill"
|
|
1047
|
+
}
|
|
1048
|
+
]
|
|
1049
|
+
},
|
|
1042
1050
|
"DrawAspect": {
|
|
1043
1051
|
"svg": [
|
|
1044
1052
|
{
|
|
@@ -2193,6 +2201,33 @@ declare const _default: {
|
|
|
2193
2201
|
}
|
|
2194
2202
|
]
|
|
2195
2203
|
},
|
|
2204
|
+
"InsertImageInCell": {
|
|
2205
|
+
"svg": [
|
|
2206
|
+
{
|
|
2207
|
+
"d": "M2 3h20v18H2zm1.5 1.5v3h3v-3zm4.5 0v3h8v-3zm9.5 0v3h3v-3zM3.5 9v3.25h3V9zm0 4.75v5.75h3v-5.75zM8 9v10.5h12.5V9zm1.5 1.5h9.5v7.5H9.5z",
|
|
2208
|
+
"fillRule": "evenodd",
|
|
2209
|
+
"className": "fill"
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
"d": "M10.5 17l2.75-3.5 1.75 2.1 1.25-1.35L18 17zM15.75 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2z",
|
|
2213
|
+
"className": "fill primary"
|
|
2214
|
+
}
|
|
2215
|
+
]
|
|
2216
|
+
},
|
|
2217
|
+
"InsertImageOverCells": {
|
|
2218
|
+
"svg": [
|
|
2219
|
+
{
|
|
2220
|
+
"d": "M2 3h20v18H2zm1.5 1.5v3h3v-3zm4.5 0v3h4v-3zm5.5 0v3h3v-3zm4.5 0v3h2.5v-3zM3.5 9v3.25h3V9zm0 4.75v5.75h3v-5.75zM8 19.5h4v-1.5H8zm5.5 0h3V18h-3zm4.5 0h2.5V18H18zm2.5-7.25V9H20v3.25z",
|
|
2221
|
+
"fillRule": "evenodd",
|
|
2222
|
+
"className": "fill"
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
"d": "M8 8h11v9H8zm1.25 7.75h8.5L15 12l-2 2.5-1.25-1.5zM16 9.25a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",
|
|
2226
|
+
"fillRule": "evenodd",
|
|
2227
|
+
"className": "fill primary"
|
|
2228
|
+
}
|
|
2229
|
+
]
|
|
2230
|
+
},
|
|
2196
2231
|
"InsertImage": {
|
|
2197
2232
|
"svg": [
|
|
2198
2233
|
{
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* | token | default | what sits there |
|
|
5
5
|
* | --- | --- | --- |
|
|
6
|
-
* | `grid` | 1250 | floats anchored to the grid — labels, chips,
|
|
6
|
+
* | `grid` | 1250 | floats anchored to the grid — labels, chips, hover tips, touch grips. Above app chrome (an app drawer is 1200), below the popup band so a menu covers them. |
|
|
7
7
|
* | `popup` | 1300 | popups, menus and panels (the float stack), modal windows. MUI's modal band. |
|
|
8
|
-
* | `tooltip` | 1500 | tooltips — out-stack menus, as MUI's do. |
|
|
8
|
+
* | `tooltip` | 1500 | tooltips of the chrome and menus, and gesture readouts — out-stack menus, as MUI's do. |
|
|
9
9
|
*
|
|
10
10
|
* The values are tokens so a host can move a band (`'z-popup'` in its {@link TokenTheme}) without every
|
|
11
11
|
* consumer knowing; a consumer reads the band through {@link zIndexVar} and never writes a number.
|