@overmap-ai/blocks 1.0.23 → 1.0.25-component-forms.0

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/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
- }._outerContent_n84eo_1:focus-visible {
170
- outline: none;
169
+ }/** CSSTransition Classes for Right SlideOut */
170
+ ._EnterRight_1jwyv_2 {
171
+ margin-right: calc(-1 * var(--slide-out-width));
171
172
  }
172
- ._outerContent_n84eo_1._enter_n84eo_4 {
173
- pointer-events: none;
173
+
174
+ ._EnterActiveRight_1jwyv_6 {
175
+ transition: margin-right 200ms linear;
176
+ margin-right: 0;
174
177
  }
175
- ._outerContent_n84eo_1._enter_n84eo_4._right_n84eo_7 {
176
- transform: translateX(100%);
177
- margin-left: calc(-1 * var(--slide-out-width));
178
+
179
+ ._EnterDoneRight_1jwyv_11 {
180
+ margin-right: 0;
178
181
  }
179
- ._outerContent_n84eo_1._enter_n84eo_4._left_n84eo_11 {
180
- transform: translateX(-100%);
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
- ._outerContent_n84eo_1._enterActive_n84eo_15 {
184
- pointer-events: none;
191
+
192
+ ._ExitDoneRight_1jwyv_24 {
193
+ margin-right: calc(-1 * var(--slide-out-width));
185
194
  }
186
- ._outerContent_n84eo_1._enterActive_n84eo_15._right_n84eo_7 {
187
- transition: transform 200ms linear, margin-left 200ms linear;
188
- transform: translateX(0);
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
- ._outerContent_n84eo_1._enterActive_n84eo_15._left_n84eo_11 {
192
- transition: transform 200ms linear, margin-right 200ms linear;
193
- transform: translateX(0);
194
- margin-right: 0;
205
+
206
+ ._EnterDoneLeft_1jwyv_38 {
207
+ margin-left: 0;
195
208
  }
196
- ._outerContent_n84eo_1._exitActive_n84eo_28 {
197
- pointer-events: none;
209
+
210
+ ._ExitLeft_1jwyv_42 {
211
+ margin-left: 0;
198
212
  }
199
- ._outerContent_n84eo_1._exitActive_n84eo_28._right_n84eo_7 {
200
- transition: transform 200ms linear, margin-left 200ms linear;
201
- transform: translateX(100%);
213
+
214
+ ._ExitActiveLeft_1jwyv_46 {
215
+ transition: margin-left 200ms linear;
202
216
  margin-left: calc(-1 * var(--slide-out-width));
203
217
  }
204
- ._outerContent_n84eo_1._exitActive_n84eo_28._left_n84eo_11 {
205
- transition: transform 200ms linear, margin-right 200ms linear;
206
- transform: translateX(calc(-1 * var(--slide-out-width)));
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
- ._outerContent_n84eo_1._exitDone_n84eo_41 {
210
- pointer-events: none;
249
+
250
+ ._ExitDoneRight_1jwyv_24 {
251
+ margin-right: calc(-1 * var(--slide-out-width));
211
252
  }
212
- ._outerContent_n84eo_1._exitDone_n84eo_41._right_n84eo_7 {
213
- transform: translateX(100%);
253
+
254
+ /** CSSTransition Classes for Left SlideOut */
255
+ ._EnterLeft_1jwyv_29 {
214
256
  margin-left: calc(-1 * var(--slide-out-width));
215
257
  }
216
- ._outerContent_n84eo_1._exitDone_n84eo_41._left_n84eo_11 {
217
- transform: translateX(-100%);
218
- margin-right: calc(-1 * var(--slide-out-width));
258
+
259
+ ._EnterActiveLeft_1jwyv_33 {
260
+ transition: margin-left 200ms linear;
261
+ margin-left: 0;
219
262
  }
220
263
 
221
- ._resizable_n84eo_53 {
222
- background-color: var(--color-panel-solid);
223
- height: 100% !important;
224
- max-height: 100% !important;
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
- ._slideOutOverlay_n84eo_59 {
228
- background: var(--color-overlay);
281
+ /** Other Classes */
282
+ ._Overlay_1jwyv_56 {
229
283
  position: absolute;
230
284
  inset: 0;
231
285
  }._accommodateCharCount_1octa_1 {
@@ -491,12 +545,7 @@
491
545
  all: unset;
492
546
  }
493
547
 
494
- ._checkboxContainer_pb9za_5 {
495
- display: flex;
496
- align-items: center;
497
- }
498
-
499
- ._checkbox_pb9za_5 {
548
+ ._checkbox_yl8iy_5 {
500
549
  background-color: var(--color-panel-solid);
501
550
  width: 15px;
502
551
  height: 15px;
@@ -508,12 +557,12 @@
508
557
  box-shadow: inset 0 0 0 1px var(--gray-a7);
509
558
  cursor: var(--cursor-checkbox);
510
559
  }
511
- ._checkbox_pb9za_5 [data-state=checked], ._checkbox_pb9za_5 [data-state=indeterminate] {
560
+ ._checkbox_yl8iy_5 [data-state=checked], ._checkbox_yl8iy_5 [data-state=indeterminate] {
512
561
  background-color: var(--accent-9);
513
562
  color: var(--accent-9-contrast);
514
563
  }
515
564
 
516
- ._checkboxIndicator_pb9za_27 {
565
+ ._checkboxIndicator_yl8iy_22 {
517
566
  display: flex;
518
567
  align-items: center;
519
568
  justify-content: center;
@@ -524,11 +573,11 @@
524
573
  padding-right: 0.5px;
525
574
  }
526
575
 
527
- ._checkboxLabel_pb9za_38 {
576
+ ._checkboxLabel_yl8iy_33 {
528
577
  padding-left: 0.5rem;
529
578
  }
530
579
 
531
- ._noTextHighlight_pb9za_42 {
580
+ ._noTextHighlight_yl8iy_37 {
532
581
  -webkit-touch-callout: none;
533
582
  -webkit-user-select: none;
534
583
  -khtml-user-select: none;
@@ -537,7 +586,7 @@
537
586
  user-select: none;
538
587
  }
539
588
 
540
- ._checkboxHidden_pb9za_51 {
589
+ ._checkboxHidden_yl8iy_46 {
541
590
  visibility: hidden;
542
591
  }._disabled_5i91d_1 {
543
592
  color: var(--gray-a10);
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.23",
3
+ "version": "1.0.25-component-forms.0",
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 {};