@overmap-ai/blocks 1.0.23 → 1.0.24
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/Layout/Container.d.ts +5 -0
- package/dist/Layout/Root.d.ts +23 -0
- package/dist/Layout/SlideOut.d.ts +26 -0
- package/dist/Layout/SlideOutOverlay.d.ts +9 -0
- package/dist/Layout/SlideOutTrigger.d.ts +6 -0
- package/dist/Layout/index.d.ts +15 -0
- package/dist/SlideOut/SlideOutV2.d.ts +41 -0
- package/dist/SlideOut/index.d.ts +1 -1
- package/dist/SlideOutV3/SlideOutV3.d.ts +45 -0
- package/dist/SlideOutV3/index.d.ts +1 -0
- package/dist/SlideOutV3/utils.d.ts +14 -0
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/blocks.js +611 -222
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +606 -218
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/style.css +93 -39
- package/dist/typings.d.ts +5 -0
- package/package.json +2 -1
- package/dist/SlideOut/SlideOut.d.ts +0 -40
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,9 @@ export * from "./Select";
|
|
|
13
13
|
export * from "./MultiSelect";
|
|
14
14
|
export * from "./Switch";
|
|
15
15
|
export * from "./Sidebar";
|
|
16
|
+
export * from "./Layout";
|
|
16
17
|
export * from "./SlideOut";
|
|
18
|
+
export * from "./SlideOutV3";
|
|
17
19
|
export * from "./Input";
|
|
18
20
|
export * from "./IconColorUtility";
|
|
19
21
|
export * from "./Popover";
|
package/dist/style.css
CHANGED
|
@@ -166,66 +166,120 @@
|
|
|
166
166
|
position: absolute;
|
|
167
167
|
inset: 0;
|
|
168
168
|
background-color: var(--color-overlay);
|
|
169
|
-
}
|
|
170
|
-
|
|
169
|
+
}/** CSSTransition Classes for Right SlideOut */
|
|
170
|
+
._EnterRight_1jwyv_2 {
|
|
171
|
+
margin-right: calc(-1 * var(--slide-out-width));
|
|
171
172
|
}
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
|
|
174
|
+
._EnterActiveRight_1jwyv_6 {
|
|
175
|
+
transition: margin-right 200ms linear;
|
|
176
|
+
margin-right: 0;
|
|
174
177
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
margin-
|
|
178
|
+
|
|
179
|
+
._EnterDoneRight_1jwyv_11 {
|
|
180
|
+
margin-right: 0;
|
|
178
181
|
}
|
|
179
|
-
|
|
180
|
-
|
|
182
|
+
|
|
183
|
+
._ExitRight_1jwyv_15 {
|
|
184
|
+
margin-right: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
._ExitActiveRight_1jwyv_19 {
|
|
188
|
+
transition: margin-right 200ms linear;
|
|
181
189
|
margin-right: calc(-1 * var(--slide-out-width));
|
|
182
190
|
}
|
|
183
|
-
|
|
184
|
-
|
|
191
|
+
|
|
192
|
+
._ExitDoneRight_1jwyv_24 {
|
|
193
|
+
margin-right: calc(-1 * var(--slide-out-width));
|
|
185
194
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
195
|
+
|
|
196
|
+
/** CSSTransition Classes for Left SlideOut */
|
|
197
|
+
._EnterLeft_1jwyv_29 {
|
|
198
|
+
margin-left: calc(-1 * var(--slide-out-width));
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
._EnterActiveLeft_1jwyv_33 {
|
|
202
|
+
transition: margin-left 200ms linear;
|
|
189
203
|
margin-left: 0;
|
|
190
204
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
margin-right: 0;
|
|
205
|
+
|
|
206
|
+
._EnterDoneLeft_1jwyv_38 {
|
|
207
|
+
margin-left: 0;
|
|
195
208
|
}
|
|
196
|
-
|
|
197
|
-
|
|
209
|
+
|
|
210
|
+
._ExitLeft_1jwyv_42 {
|
|
211
|
+
margin-left: 0;
|
|
198
212
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
213
|
+
|
|
214
|
+
._ExitActiveLeft_1jwyv_46 {
|
|
215
|
+
transition: margin-left 200ms linear;
|
|
202
216
|
margin-left: calc(-1 * var(--slide-out-width));
|
|
203
217
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
218
|
+
|
|
219
|
+
._ExitDoneLeft_1jwyv_51 {
|
|
220
|
+
margin-left: calc(-1 * var(--slide-out-width));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/** Other Classes */
|
|
224
|
+
._Overlay_1jwyv_56 {
|
|
225
|
+
position: absolute;
|
|
226
|
+
inset: 0;
|
|
227
|
+
}/** CSSTransition Classes for Right SlideOut */
|
|
228
|
+
._EnterRight_1jwyv_2 {
|
|
229
|
+
margin-right: calc(-1 * var(--slide-out-width));
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
._EnterActiveRight_1jwyv_6 {
|
|
233
|
+
transition: margin-right 200ms linear;
|
|
234
|
+
margin-right: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
._EnterDoneRight_1jwyv_11 {
|
|
238
|
+
margin-right: 0;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
._ExitRight_1jwyv_15 {
|
|
242
|
+
margin-right: 0;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
._ExitActiveRight_1jwyv_19 {
|
|
246
|
+
transition: margin-right 200ms linear;
|
|
207
247
|
margin-right: calc(-1 * var(--slide-out-width));
|
|
208
248
|
}
|
|
209
|
-
|
|
210
|
-
|
|
249
|
+
|
|
250
|
+
._ExitDoneRight_1jwyv_24 {
|
|
251
|
+
margin-right: calc(-1 * var(--slide-out-width));
|
|
211
252
|
}
|
|
212
|
-
|
|
213
|
-
|
|
253
|
+
|
|
254
|
+
/** CSSTransition Classes for Left SlideOut */
|
|
255
|
+
._EnterLeft_1jwyv_29 {
|
|
214
256
|
margin-left: calc(-1 * var(--slide-out-width));
|
|
215
257
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
258
|
+
|
|
259
|
+
._EnterActiveLeft_1jwyv_33 {
|
|
260
|
+
transition: margin-left 200ms linear;
|
|
261
|
+
margin-left: 0;
|
|
219
262
|
}
|
|
220
263
|
|
|
221
|
-
.
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
264
|
+
._EnterDoneLeft_1jwyv_38 {
|
|
265
|
+
margin-left: 0;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
._ExitLeft_1jwyv_42 {
|
|
269
|
+
margin-left: 0;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
._ExitActiveLeft_1jwyv_46 {
|
|
273
|
+
transition: margin-left 200ms linear;
|
|
274
|
+
margin-left: calc(-1 * var(--slide-out-width));
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
._ExitDoneLeft_1jwyv_51 {
|
|
278
|
+
margin-left: calc(-1 * var(--slide-out-width));
|
|
225
279
|
}
|
|
226
280
|
|
|
227
|
-
|
|
228
|
-
|
|
281
|
+
/** Other Classes */
|
|
282
|
+
._Overlay_1jwyv_56 {
|
|
229
283
|
position: absolute;
|
|
230
284
|
inset: 0;
|
|
231
285
|
}._accommodateCharCount_1octa_1 {
|
package/dist/typings.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
1
2
|
export type Size = "small" | "medium" | "large";
|
|
2
3
|
export type Severity = "primary" | "success" | "danger" | "warning" | "info";
|
|
3
4
|
export type Variant = "solid" | "soft" | "outline" | "ghost" | "surface";
|
|
5
|
+
export interface PropsWithClassNameAndStyle {
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overmap-ai/blocks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "A collection of React components for building Overmap's UI.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Wôrdn Inc.",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
30
30
|
"@radix-ui/react-icons": "^1.3.0",
|
|
31
31
|
"@radix-ui/react-menu": "^2.0.6",
|
|
32
|
+
"@radix-ui/react-slot": "^1.0.2",
|
|
32
33
|
"@radix-ui/react-toast": "^1.1.5",
|
|
33
34
|
"@radix-ui/react-toggle-group": "^1.0.4",
|
|
34
35
|
"@radix-ui/react-toolbar": "^1.0.4",
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { FC, ReactElement } from "react";
|
|
2
|
-
import { DismissableLayerProps } from "@radix-ui/react-dismissable-layer";
|
|
3
|
-
interface SlideOutProps extends Omit<DismissableLayerProps, "disableOutsidePointerEvents"> {
|
|
4
|
-
/** The controlled state of whether the SlideOut is open or not */
|
|
5
|
-
open?: boolean;
|
|
6
|
-
/** Used to specify what side of the container the SlideOut appears on
|
|
7
|
-
* @default "left"
|
|
8
|
-
* */
|
|
9
|
-
side?: "left" | "right";
|
|
10
|
-
/** The minimum width of the SlideOut, this must be specified and will be the default width the SlideOut
|
|
11
|
-
* first opens with. Note the developer is responsible for adapting this as the screen size or size of the container
|
|
12
|
-
* the SlideOut appears in changes in width */
|
|
13
|
-
minWidth: number;
|
|
14
|
-
/** An optional max width of the SlideOut when resizing, like minWidth, the Developer is responsible for adapting
|
|
15
|
-
* this value as the screen size or size of the container of the SlideOut changes width*/
|
|
16
|
-
maxWidth?: number;
|
|
17
|
-
/** Renders an overlay with the SlideOut, should be used when the SlideOut should have modality
|
|
18
|
-
* @default false
|
|
19
|
-
* */
|
|
20
|
-
overlay?: boolean;
|
|
21
|
-
/** Determines if the SlideOut has modality, should be used in combination with overlay
|
|
22
|
-
* @default false
|
|
23
|
-
* */
|
|
24
|
-
modal?: boolean;
|
|
25
|
-
/** Controls whether the SlideOut can be resized
|
|
26
|
-
* @default true
|
|
27
|
-
* */
|
|
28
|
-
resizable?: boolean;
|
|
29
|
-
/** Component to be used as the resize handle for the SlideOut */
|
|
30
|
-
resizeHandle?: ReactElement;
|
|
31
|
-
/** if set to relative, the SlideOut will push any content contained within its container when open/closed
|
|
32
|
-
* @default "absolute"
|
|
33
|
-
* */
|
|
34
|
-
position?: "absolute" | "relative";
|
|
35
|
-
overlayClassName?: string;
|
|
36
|
-
}
|
|
37
|
-
/** The SlideOut component is a UI element that allows you to create a slide-in/slide-out effect for content within
|
|
38
|
-
* your application. It provides a smooth transition animation for revealing and hiding content. */
|
|
39
|
-
export declare const SlideOut: FC<SlideOutProps>;
|
|
40
|
-
export {};
|