@superblocksteam/library 2.0.6-next.40 → 2.0.6-next.41
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/dist/{allPaths-DtYnQ-yV.js → allPaths-4y_K62Vs.js} +2 -2
- package/dist/{allPaths-DtYnQ-yV.js.map → allPaths-4y_K62Vs.js.map} +1 -1
- package/dist/{allPaths-DrkZM5UN.js → allPaths-Byemqzqm.js} +2 -2
- package/dist/{allPaths-DrkZM5UN.js.map → allPaths-Byemqzqm.js.map} +1 -1
- package/dist/{allPathsLoader-Bt-mJXJw.js → allPathsLoader-ClBdq20d.js} +3 -3
- package/dist/{allPathsLoader-Bt-mJXJw.js.map → allPathsLoader-ClBdq20d.js.map} +1 -1
- package/dist/{allPathsLoader-rDsLNp7q.js → allPathsLoader-DHEhZoal.js} +3 -3
- package/dist/{allPathsLoader-rDsLNp7q.js.map → allPathsLoader-DHEhZoal.js.map} +1 -1
- package/dist/{devtools-consolidated-DaYe-zkb.js → devtools-consolidated-D3M5wXPE.js} +2 -2
- package/dist/{devtools-consolidated-DaYe-zkb.js.map → devtools-consolidated-D3M5wXPE.js.map} +1 -1
- package/dist/{index-D9O95zsr.js → index-Cie8AtZt.js} +2996 -584
- package/dist/{index-D9O95zsr.js.map → index-Cie8AtZt.js.map} +1 -1
- package/dist/index.js +150 -149
- package/dist/{splitPathsBySizeLoader-DCl0XfAP.js → splitPathsBySizeLoader-B30Uhcpp.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DCl0XfAP.js.map → splitPathsBySizeLoader-B30Uhcpp.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-HDsWhSbE.js → splitPathsBySizeLoader-BPZd-Xd7.js} +2 -2
- package/dist/{splitPathsBySizeLoader-HDsWhSbE.js.map → splitPathsBySizeLoader-BPZd-Xd7.js.map} +1 -1
- package/dist-types/internal-testing/components/slideout.d.ts +3 -0
- package/dist-types/lib/index.d.ts +1 -0
- package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +4 -3
- package/dist-types/lib/triggers/registry.d.ts +2 -2
- package/dist-types/lib/user-facing/components/modal/index.d.ts +0 -4
- package/dist-types/lib/user-facing/components/slideout/constants.d.ts +10 -0
- package/dist-types/lib/user-facing/components/slideout/index.d.ts +41 -1
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +39 -19
- package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +31 -0
- package/dist-types/lib/user-facing/constants.d.ts +1 -1
- package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +14 -0
- package/dist-types/lib/user-facing/layers.d.ts +1 -2
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +2 -2
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -1,165 +1,166 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a0 as clientExports } from "./index-Cie8AtZt.js";
|
|
2
|
+
import { a1, a2, Y, P, Q, a3, O, a4, a5, a6, a7, a8, a9, C, aa, ab, ac, ad, ae, $, af, W, ag, ah, ai, aj, Z, B, S, s, d, e, q, u, n, R, D, w, x, f, i, g, C as C2, c, k, v, l, h, z, y, A, ak, al, am, an, ao, T, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, E, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, N, aZ, a_, a$, b0, b1, b2, H, b3, b4, b5, b6, b7, K, b8, b9, F, ba, bb, bc, r, M, L, bd, be, bf, X, G, J, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, V, U, bN } from "./index-Cie8AtZt.js";
|
|
3
3
|
const createRoot = clientExports.createRoot;
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
5
|
+
a1 as Await,
|
|
6
|
+
a2 as BrowserRouter,
|
|
7
|
+
Y as Dim,
|
|
8
|
+
P as Embed,
|
|
9
|
+
Q as Env,
|
|
10
|
+
a3 as Form,
|
|
11
|
+
O as Global,
|
|
12
|
+
a4 as HashRouter,
|
|
13
|
+
a5 as IDLE_BLOCKER,
|
|
14
|
+
a6 as IDLE_FETCHER,
|
|
15
|
+
a7 as IDLE_NAVIGATION,
|
|
16
|
+
a8 as Link,
|
|
17
|
+
a9 as Links,
|
|
18
|
+
C as MakeEditableWithSuperblocks,
|
|
19
|
+
aa as MemoryRouter,
|
|
20
|
+
ab as Meta,
|
|
21
|
+
ac as NavLink,
|
|
22
|
+
ad as Navigate,
|
|
23
|
+
ae as NavigationType,
|
|
24
|
+
$ as Outlet,
|
|
25
|
+
af as PrefetchPageLinks,
|
|
26
|
+
W as Prop,
|
|
27
|
+
ag as Route,
|
|
28
|
+
ah as Router,
|
|
29
|
+
ai as RouterProvider,
|
|
30
|
+
aj as Routes,
|
|
31
|
+
Z as SB,
|
|
32
|
+
B as SbApi,
|
|
33
33
|
S as SbButton,
|
|
34
|
-
|
|
34
|
+
s as SbCheckbox,
|
|
35
35
|
d as SbColumn,
|
|
36
36
|
e as SbContainer,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
q as SbCustom,
|
|
38
|
+
u as SbDatePicker,
|
|
39
|
+
n as SbDropdown,
|
|
40
|
+
R as SbEvent,
|
|
41
|
+
D as SbEventFlow,
|
|
42
|
+
w as SbIcon,
|
|
43
|
+
x as SbImage,
|
|
44
44
|
f as SbInput,
|
|
45
45
|
i as SbModal,
|
|
46
46
|
g as SbPage,
|
|
47
|
-
|
|
47
|
+
C2 as SbProvider,
|
|
48
48
|
c as SbSection,
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
k as SbSlideout,
|
|
50
|
+
v as SbSwitch,
|
|
51
|
+
l as SbTable,
|
|
51
52
|
h as SbText,
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
z as SbTimer,
|
|
54
|
+
y as SbVariable,
|
|
54
55
|
A as SbVariablePersistence,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
ak as Scripts,
|
|
57
|
+
al as ScrollRestoration,
|
|
58
|
+
am as ServerRouter,
|
|
59
|
+
an as StaticRouter,
|
|
60
|
+
ao as StaticRouterProvider,
|
|
60
61
|
T as Theme,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
62
|
+
ap as UNSAFE_DataRouterContext,
|
|
63
|
+
aq as UNSAFE_DataRouterStateContext,
|
|
64
|
+
ar as UNSAFE_ErrorResponseImpl,
|
|
65
|
+
as as UNSAFE_FetchersContext,
|
|
66
|
+
at as UNSAFE_FrameworkContext,
|
|
67
|
+
au as UNSAFE_LocationContext,
|
|
68
|
+
av as UNSAFE_NavigationContext,
|
|
69
|
+
aw as UNSAFE_RemixErrorBoundary,
|
|
70
|
+
ax as UNSAFE_RouteContext,
|
|
71
|
+
ay as UNSAFE_ServerMode,
|
|
72
|
+
az as UNSAFE_SingleFetchRedirectSymbol,
|
|
73
|
+
aA as UNSAFE_ViewTransitionContext,
|
|
74
|
+
aB as UNSAFE_createBrowserHistory,
|
|
75
|
+
aC as UNSAFE_createClientRoutes,
|
|
76
|
+
aD as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|
|
77
|
+
aE as UNSAFE_createRouter,
|
|
78
|
+
aF as UNSAFE_decodeViaTurboStream,
|
|
79
|
+
aG as UNSAFE_deserializeErrors,
|
|
80
|
+
aH as UNSAFE_getPatchRoutesOnNavigationFunction,
|
|
81
|
+
aI as UNSAFE_getSingleFetchDataStrategy,
|
|
82
|
+
aJ as UNSAFE_invariant,
|
|
83
|
+
aK as UNSAFE_mapRouteProperties,
|
|
84
|
+
aL as UNSAFE_shouldHydrateRouteLoader,
|
|
85
|
+
aM as UNSAFE_useFogOFWarDiscovery,
|
|
86
|
+
aN as UNSAFE_useScrollRestoration,
|
|
87
|
+
E as copyToClipboard,
|
|
88
|
+
aO as createBrowserRouter,
|
|
89
|
+
aP as createCookie,
|
|
90
|
+
aQ as createCookieSessionStorage,
|
|
91
|
+
aR as createHashRouter,
|
|
92
|
+
aS as createMemoryRouter,
|
|
93
|
+
aT as createMemorySessionStorage,
|
|
94
|
+
aU as createPath,
|
|
95
|
+
aV as createRequestHandler,
|
|
95
96
|
createRoot,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
97
|
+
aW as createRoutesFromChildren,
|
|
98
|
+
aX as createRoutesFromElements,
|
|
99
|
+
aY as createRoutesStub,
|
|
100
|
+
N as createSbScope,
|
|
101
|
+
aZ as createSearchParams,
|
|
102
|
+
a_ as createSession,
|
|
103
|
+
a$ as createSessionStorage,
|
|
104
|
+
b0 as createStaticHandler,
|
|
105
|
+
b1 as createStaticRouter,
|
|
106
|
+
b2 as data,
|
|
107
|
+
H as download,
|
|
108
|
+
b3 as generatePath,
|
|
109
|
+
b4 as href,
|
|
110
|
+
b5 as isCookie,
|
|
111
|
+
b6 as isRouteErrorResponse,
|
|
112
|
+
b7 as isSession,
|
|
113
|
+
K as logoutIntegrations,
|
|
114
|
+
b8 as matchPath,
|
|
115
|
+
b9 as matchRoutes,
|
|
116
|
+
F as navigateTo,
|
|
117
|
+
ba as parsePath,
|
|
118
|
+
bb as redirect,
|
|
119
|
+
bc as redirectDocument,
|
|
119
120
|
r as registerComponent,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
121
|
+
M as registerPage,
|
|
122
|
+
L as registerScope,
|
|
123
|
+
bd as renderMatches,
|
|
124
|
+
be as replace,
|
|
125
|
+
bf as resolvePath,
|
|
126
|
+
X as sbComputed,
|
|
127
|
+
G as setQueryParams,
|
|
128
|
+
J as showAlert,
|
|
129
|
+
bg as unstable_HistoryRouter,
|
|
130
|
+
bh as unstable_RouterContextProvider,
|
|
131
|
+
bi as unstable_createContext,
|
|
132
|
+
bj as unstable_setDevServerHooks,
|
|
133
|
+
bk as unstable_usePrompt,
|
|
134
|
+
bl as useActionData,
|
|
135
|
+
bm as useAsyncError,
|
|
136
|
+
bn as useAsyncValue,
|
|
137
|
+
bo as useBeforeUnload,
|
|
138
|
+
bp as useBlocker,
|
|
139
|
+
bq as useFetcher,
|
|
140
|
+
br as useFetchers,
|
|
141
|
+
bs as useFormAction,
|
|
142
|
+
bt as useHref,
|
|
143
|
+
bu as useInRouterContext,
|
|
144
|
+
bv as useLinkClickHandler,
|
|
145
|
+
bw as useLoaderData,
|
|
146
|
+
bx as useLocation,
|
|
147
|
+
by as useMatch,
|
|
148
|
+
bz as useMatches,
|
|
149
|
+
bA as useNavigate,
|
|
150
|
+
bB as useNavigation,
|
|
151
|
+
bC as useNavigationType,
|
|
152
|
+
bD as useOutlet,
|
|
153
|
+
bE as useOutletContext,
|
|
154
|
+
bF as useParams,
|
|
155
|
+
bG as useResolvedPath,
|
|
156
|
+
bH as useRevalidator,
|
|
157
|
+
bI as useRouteError,
|
|
158
|
+
bJ as useRouteLoaderData,
|
|
159
|
+
bK as useRoutes,
|
|
160
|
+
bL as useSearchParams,
|
|
161
|
+
bM as useSubmit,
|
|
162
|
+
V as useTheme,
|
|
163
|
+
U as useUpdateProperties,
|
|
164
|
+
bN as useViewTransitionState
|
|
164
165
|
};
|
|
165
166
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-Cie8AtZt.js";
|
|
2
2
|
var splitPathsBySizeLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var key, pathsRecord;
|
|
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
|
|
|
31
31
|
export {
|
|
32
32
|
splitPathsBySizeLoader
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=splitPathsBySizeLoader-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-B30Uhcpp.js.map
|
package/dist/{splitPathsBySizeLoader-DCl0XfAP.js.map → splitPathsBySizeLoader-B30Uhcpp.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-B30Uhcpp.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-Cie8AtZt.js";
|
|
2
2
|
var splitPathsBySizeLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var key, pathsRecord;
|
|
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
|
|
|
31
31
|
export {
|
|
32
32
|
splitPathsBySizeLoader
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=splitPathsBySizeLoader-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-BPZd-Xd7.js.map
|
package/dist/{splitPathsBySizeLoader-HDsWhSbE.js.map → splitPathsBySizeLoader-BPZd-Xd7.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-BPZd-Xd7.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -8,6 +8,7 @@ export { SbInput } from "./user-facing/components/input/index.jsx";
|
|
|
8
8
|
export { SbPage } from "./user-facing/components/page/index.jsx";
|
|
9
9
|
export { SbText } from "./user-facing/components/text/index.jsx";
|
|
10
10
|
export { SbModal } from "./user-facing/components/modal/index.jsx";
|
|
11
|
+
export { SbSlideout } from "./user-facing/components/slideout/index.jsx";
|
|
11
12
|
export { SbTable } from "./user-facing/components/table/index.jsx";
|
|
12
13
|
export { SbDropdown } from "./user-facing/components/dropdown/index.jsx";
|
|
13
14
|
export type * from "./user-facing/components/dropdown/types.ts";
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
2
|
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
3
|
import type { ExecutionContext } from "../../base.js";
|
|
4
|
+
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
4
5
|
export interface ControlSlideoutStep extends BaseStepDef {
|
|
5
6
|
type: typeof TriggerStepType.CONTROL_SLIDEOUT;
|
|
6
|
-
name
|
|
7
|
+
name?: string;
|
|
7
8
|
direction: "open" | "close";
|
|
8
9
|
}
|
|
9
10
|
export declare const ControlSlideoutTrigger: {
|
|
10
11
|
type: "controlSlideout";
|
|
11
12
|
execute(context: ExecutionContext, step: ControlSlideoutStep): Promise<void>;
|
|
12
|
-
create(
|
|
13
|
+
create(slideout: WithBindingIdentifier, direction: "open" | "close"): {
|
|
13
14
|
type: "controlSlideout";
|
|
14
|
-
name: string;
|
|
15
|
+
name: string | undefined;
|
|
15
16
|
direction: "close" | "open";
|
|
16
17
|
};
|
|
17
18
|
};
|
|
@@ -69,9 +69,9 @@ declare const EventRegistry: {
|
|
|
69
69
|
readonly controlSlideout: {
|
|
70
70
|
type: "controlSlideout";
|
|
71
71
|
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/components/control-slideout.js").ControlSlideoutStep): Promise<void>;
|
|
72
|
-
create(
|
|
72
|
+
create(slideout: import("@superblocksteam/library-shared/types").WithBindingIdentifier, direction: "open" | "close"): {
|
|
73
73
|
type: "controlSlideout";
|
|
74
|
-
name: string;
|
|
74
|
+
name: string | undefined;
|
|
75
75
|
direction: "close" | "open";
|
|
76
76
|
};
|
|
77
77
|
};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
2
|
import type { ContainerLayout } from "../../component-base/constants.js";
|
|
3
|
-
/**
|
|
4
|
-
* TODO:
|
|
5
|
-
* - close all other modal when current modal is opened
|
|
6
|
-
*/
|
|
7
3
|
export declare const SbModal: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
8
4
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ((Omit<{
|
|
9
5
|
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
export declare const SlideoutSize: {
|
|
3
|
+
readonly xsmall: "xsmall";
|
|
4
|
+
readonly small: "small";
|
|
5
|
+
readonly medium: "medium";
|
|
6
|
+
readonly large: "large";
|
|
7
|
+
readonly fullscreen: "fullscreen";
|
|
8
|
+
};
|
|
9
|
+
export type SlideoutSize = (typeof SlideoutSize)[keyof typeof SlideoutSize];
|
|
10
|
+
export declare const SLIDEOUT_WIDTH_PRESETS: Record<SlideoutSize, Dim<"px" | "%">>;
|
|
@@ -1 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import type { ContainerLayout } from "../../component-base/constants.js";
|
|
3
|
+
export declare const SbSlideout: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
4
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ((Omit<{
|
|
5
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
6
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
7
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "top" | "bottom" | "space-around" | "space-between", true, undefined>;
|
|
8
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true, undefined>;
|
|
9
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true, undefined>;
|
|
10
|
+
}) | (Omit<{
|
|
11
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
12
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
13
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "top" | "bottom", true, undefined>;
|
|
14
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
|
|
15
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true, undefined>;
|
|
16
|
+
}) | (Omit<{
|
|
17
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true, undefined>;
|
|
18
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
19
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true, undefined>;
|
|
20
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true, undefined>;
|
|
21
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true, undefined>;
|
|
22
|
+
}))>;
|
|
23
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
24
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
25
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false, undefined>;
|
|
26
|
+
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, false, undefined>;
|
|
27
|
+
hasBackdrop: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
28
|
+
widthPreset: import("../../properties-panel/props-builder.js").Prop<import("./constants.js").SlideoutSize, true, undefined>;
|
|
29
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
30
|
+
}>;
|
|
31
|
+
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
32
|
+
closeOnClickOutside: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
33
|
+
}>;
|
|
34
|
+
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
35
|
+
onOpen: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
36
|
+
onClose: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
37
|
+
}>;
|
|
38
|
+
meta: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
39
|
+
isOpen: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
40
|
+
}>;
|
|
41
|
+
}>>;
|
|
@@ -1,23 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import { Prop, Section } from "../../properties-panel/props-builder.js";
|
|
3
|
+
import { SlideoutSize } from "./constants.js";
|
|
4
|
+
import type { PerCornerBorderRadius } from "@superblocksteam/library-shared/types";
|
|
2
5
|
export declare const propertiesDefinition: {
|
|
3
|
-
layout: Section<Record<string,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} & {
|
|
18
|
-
|
|
6
|
+
layout: Section<Record<string, Prop<any, any, undefined>> & ((Omit<{
|
|
7
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
|
|
8
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
9
|
+
readonly verticalAlign: Prop<"center" | "top" | "bottom" | "space-around" | "space-between", true, undefined>;
|
|
10
|
+
readonly horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
|
|
11
|
+
readonly layout: Prop<"vertical", true, undefined>;
|
|
12
|
+
}) | (Omit<{
|
|
13
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
|
|
14
|
+
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
15
|
+
readonly verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
|
|
16
|
+
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true, undefined>;
|
|
17
|
+
readonly layout: Prop<"horizontal", true, undefined>;
|
|
18
|
+
}) | (Omit<{
|
|
19
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true, undefined>;
|
|
20
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
21
|
+
readonly columns: Prop<number, true, undefined>;
|
|
22
|
+
readonly rowHeight: Prop<Dim<"px">, true, undefined>;
|
|
23
|
+
readonly layout: Prop<"freeform", true, undefined>;
|
|
24
|
+
}))>;
|
|
25
|
+
appearance: Section<Record<string, Prop<any, any, undefined>> & {
|
|
26
|
+
backgroundColor: Prop<string, true, undefined>;
|
|
27
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false, undefined>;
|
|
28
|
+
borderRadius: Prop<PerCornerBorderRadius, false, undefined>;
|
|
29
|
+
hasBackdrop: Prop<boolean, true, undefined>;
|
|
30
|
+
widthPreset: Prop<SlideoutSize, true, undefined>;
|
|
31
|
+
loading: Prop<boolean, true, undefined>;
|
|
19
32
|
}>;
|
|
20
|
-
|
|
21
|
-
|
|
33
|
+
interaction: Section<Record<string, Prop<any, any, undefined>> & {
|
|
34
|
+
closeOnClickOutside: Prop<boolean, true, undefined>;
|
|
35
|
+
}>;
|
|
36
|
+
events: Section<Record<string, Prop<any, any, undefined>> & {
|
|
37
|
+
onOpen: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
38
|
+
onClose: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
39
|
+
}>;
|
|
40
|
+
meta: Section<Record<string, Prop<any, any, undefined>> & {
|
|
41
|
+
isOpen: Prop<boolean, true, undefined>;
|
|
22
42
|
}>;
|
|
23
43
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { SlideoutSize } from "./constants.js";
|
|
4
|
+
import type { ContainerLayout, VerticalAlignment, HorizontalAlignment } from "../../component-base/constants.js";
|
|
5
|
+
import type { ComputeStyleProps } from "../../themes/generatedStyles/generate-component-styles.js";
|
|
6
|
+
import type { SbElement, SbInstance } from "@superblocksteam/library-shared/types";
|
|
7
|
+
import type { ReactNode } from "react";
|
|
8
|
+
type Props = {
|
|
9
|
+
name?: string;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
onClose: (e: any) => void;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
closeOnClickOutside: boolean;
|
|
15
|
+
hasBackdrop: boolean;
|
|
16
|
+
widthPreset?: SlideoutSize;
|
|
17
|
+
styleProps: ComputeStyleProps;
|
|
18
|
+
sourceId: SbElement;
|
|
19
|
+
instanceId: SbInstance;
|
|
20
|
+
isEditing: boolean;
|
|
21
|
+
layout: ContainerLayout;
|
|
22
|
+
horizontalAlign?: HorizontalAlignment;
|
|
23
|
+
verticalAlign?: VerticalAlignment;
|
|
24
|
+
spacing: Dim<"px">;
|
|
25
|
+
columns?: number;
|
|
26
|
+
rows?: number;
|
|
27
|
+
rowHeight?: Dim<"px">;
|
|
28
|
+
dropTargetRef?: React.RefObject<HTMLElement | null>;
|
|
29
|
+
};
|
|
30
|
+
declare const SlideoutComponent: (props: Props) => React.JSX.Element;
|
|
31
|
+
export default SlideoutComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const CANVAS_ROOT_ID = "canvas-root";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const PORTAL_ROOT_ID = "portal-root";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A hook to enable editing dialogs.
|
|
3
|
+
*
|
|
4
|
+
* Dialog: A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
|
|
5
|
+
* E.g: Modal, Slideout, etc
|
|
6
|
+
*
|
|
7
|
+
* The hook expects an `isOpen` property on the component, but can be customized by passing a `isOpenPropertyName`.
|
|
8
|
+
*/
|
|
9
|
+
import type { SbInstance } from "@superblocksteam/library-shared/types";
|
|
10
|
+
export declare function useDialogEditing(props: {
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
instanceId: SbInstance;
|
|
13
|
+
isOpenPropertyName?: string;
|
|
14
|
+
}): void;
|