@pairbo/ui-kit 0.2.6 → 0.3.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/defaultTheme.css +1 -1
- package/dist/pboBridge.js +1 -1
- package/dist/src/components/button/button.component.d.ts +1 -0
- package/dist/src/components/card-selection/card-selection.component.d.ts +4 -1
- package/dist/src/components/category/category.component.d.ts +2 -2
- package/dist/src/components/drawer/drawer.component.d.ts +1 -1
- package/dist/src/components/editor/editor.component.d.ts +1 -3
- package/dist/src/components/editor-card-slider/editor-card-slider.component.d.ts +0 -2
- package/dist/src/components/editor-selector/editor-selector.component.d.ts +2 -0
- package/dist/src/components/fake-loading/fake-loading.component.d.ts +51 -0
- package/dist/src/components/fake-loading/fake-loading.d.ts +8 -0
- package/dist/src/components/gift-options/gift-options.component.d.ts +50 -13
- package/dist/src/components/handwritten-form/handwritten-form.component.d.ts +105 -8
- package/dist/src/components/image/image.component.d.ts +1 -0
- package/dist/src/components/main.d.ts +1 -1
- package/dist/src/components/page-manager/page-manager.component.d.ts +17 -6
- package/dist/src/components/selector/selector.component.d.ts +2 -0
- package/dist/src/components/type-canvas/type-canvas.component.d.ts +2 -1
- package/dist/src/components/type-form/type-form.component.d.ts +2 -0
- package/dist/src/core/pbo-bridge/PboBridge.d.ts +53 -15
- package/dist/src/core/pbo-bridge/types.d.ts +0 -15
- package/dist/src/themes/default-rem.css +525 -0
- package/dist/src/themes/default.css +37 -47
- package/dist/src/utilities/index.d.ts +1 -0
- package/dist/ui-kit.js +1395 -852
- package/package.json +3 -2
- package/dist/assets/page-manager.component-Dzd6xKY5.js +0 -307
- package/dist/src/components/fabric-example/fabric-example.component.d.ts +0 -31
- package/dist/src/components/fabric-example/fabric-example.d.ts +0 -8
- package/dist/src/components/fabric-example/fabric-example.test.d.ts +0 -0
- /package/dist/src/components/{fabric-example/fabric-example.styles.d.ts → fake-loading/fake-loading.styles.d.ts} +0 -0
|
@@ -316,10 +316,10 @@
|
|
|
316
316
|
/* Border radii */
|
|
317
317
|
/* -------------------------------------------------------------------------- */
|
|
318
318
|
|
|
319
|
-
--pbo-border-radius-small:
|
|
320
|
-
--pbo-border-radius-medium:
|
|
321
|
-
--pbo-border-radius-large:
|
|
322
|
-
--pbo-border-radius-x-large:
|
|
319
|
+
--pbo-border-radius-small: 2px;
|
|
320
|
+
--pbo-border-radius-medium: 4px;
|
|
321
|
+
--pbo-border-radius-large: 10px;
|
|
322
|
+
--pbo-border-radius-x-large: 16px;
|
|
323
323
|
|
|
324
324
|
/* -------------------------------------------------------------------------- */
|
|
325
325
|
/* Elevations */
|
|
@@ -333,16 +333,16 @@
|
|
|
333
333
|
/* Spacings */
|
|
334
334
|
/* -------------------------------------------------------------------------- */
|
|
335
335
|
|
|
336
|
-
--pbo-spacing-3x-small:
|
|
337
|
-
--pbo-spacing-2x-small:
|
|
338
|
-
--pbo-spacing-x-small:
|
|
339
|
-
--pbo-spacing-small:
|
|
340
|
-
--pbo-spacing-medium:
|
|
341
|
-
--pbo-spacing-large:
|
|
342
|
-
--pbo-spacing-x-large:
|
|
343
|
-
--pbo-spacing-2x-large:
|
|
344
|
-
--pbo-spacing-3x-large:
|
|
345
|
-
--pbo-spacing-4x-large:
|
|
336
|
+
--pbo-spacing-3x-small: 2px; /* 2px */
|
|
337
|
+
--pbo-spacing-2x-small: 4px; /* 4px */
|
|
338
|
+
--pbo-spacing-x-small: 8px; /* 8px */
|
|
339
|
+
--pbo-spacing-small: 12px; /* 12px */
|
|
340
|
+
--pbo-spacing-medium: 16px; /* 16px */
|
|
341
|
+
--pbo-spacing-large: 20px; /* 20px */
|
|
342
|
+
--pbo-spacing-x-large: 28px; /* 28px */
|
|
343
|
+
--pbo-spacing-2x-large: 36px; /* 36px */
|
|
344
|
+
--pbo-spacing-3x-large: 48px; /* 48px */
|
|
345
|
+
--pbo-spacing-4x-large: 72px; /* 72px */
|
|
346
346
|
|
|
347
347
|
/*
|
|
348
348
|
* Transitions
|
|
@@ -359,6 +359,7 @@
|
|
|
359
359
|
*/
|
|
360
360
|
|
|
361
361
|
/* Fonts */
|
|
362
|
+
--pbo-font-family: inherit;
|
|
362
363
|
--pbo-font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
|
|
363
364
|
--pbo-font-sans:
|
|
364
365
|
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
|
|
@@ -366,15 +367,15 @@
|
|
|
366
367
|
--pbo-font-serif: Georgia, "Times New Roman", serif;
|
|
367
368
|
|
|
368
369
|
/* Font sizes */
|
|
369
|
-
--pbo-font-size-2x-small:
|
|
370
|
-
--pbo-font-size-x-small:
|
|
371
|
-
--pbo-font-size-small:
|
|
372
|
-
--pbo-font-size-medium:
|
|
373
|
-
--pbo-font-size-large:
|
|
374
|
-
--pbo-font-size-x-large:
|
|
375
|
-
--pbo-font-size-2x-large:
|
|
376
|
-
--pbo-font-size-3x-large:
|
|
377
|
-
--pbo-font-size-4x-large:
|
|
370
|
+
--pbo-font-size-2x-small: 10px; /* 10px */
|
|
371
|
+
--pbo-font-size-x-small: 12px; /* 12px */
|
|
372
|
+
--pbo-font-size-small: 14px; /* 14px */
|
|
373
|
+
--pbo-font-size-medium: 16px; /* 16px */
|
|
374
|
+
--pbo-font-size-large: 20px; /* 20px */
|
|
375
|
+
--pbo-font-size-x-large: 24px; /* 24px */
|
|
376
|
+
--pbo-font-size-2x-large: 36px; /* 36px */
|
|
377
|
+
--pbo-font-size-3x-large: 48px; /* 48px */
|
|
378
|
+
--pbo-font-size-4x-large: 72px; /* 72px */
|
|
378
379
|
|
|
379
380
|
/* Font weights */
|
|
380
381
|
--pbo-font-weight-light: 300;
|
|
@@ -413,9 +414,9 @@
|
|
|
413
414
|
--pbo-button-font-size-large: var(--pbo-font-size-medium);
|
|
414
415
|
|
|
415
416
|
/* Inputs */
|
|
416
|
-
--pbo-input-height-small:
|
|
417
|
-
--pbo-input-height-medium:
|
|
418
|
-
--pbo-input-height-large:
|
|
417
|
+
--pbo-input-height-small: 30px; /* 30px */
|
|
418
|
+
--pbo-input-height-medium: 40px; /* 40px */
|
|
419
|
+
--pbo-input-height-large: 50px; /* 50px */
|
|
419
420
|
|
|
420
421
|
--pbo-input-background-color: var(--pbo-color-neutral-0);
|
|
421
422
|
--pbo-input-background-color-hover: var(--pbo-input-background-color);
|
|
@@ -430,11 +431,11 @@
|
|
|
430
431
|
--pbo-input-required-content-offset: -2px;
|
|
431
432
|
--pbo-input-required-content-color: var(--pbo-input-label-color);
|
|
432
433
|
|
|
433
|
-
--pbo-input-border-radius-small: var(--pbo-border-radius-
|
|
434
|
-
--pbo-input-border-radius-medium: var(--pbo-border-radius-
|
|
435
|
-
--pbo-input-border-radius-large: var(--pbo-border-radius-
|
|
434
|
+
--pbo-input-border-radius-small: var(--pbo-border-radius-large);
|
|
435
|
+
--pbo-input-border-radius-medium: var(--pbo-border-radius-large);
|
|
436
|
+
--pbo-input-border-radius-large: var(--pbo-border-radius-large);
|
|
436
437
|
|
|
437
|
-
--pbo-input-font-family: var(--pbo-font-
|
|
438
|
+
--pbo-input-font-family: var(--pbo-font-family);
|
|
438
439
|
--pbo-input-font-weight: var(--pbo-font-weight-normal);
|
|
439
440
|
--pbo-input-font-size-small: var(--pbo-font-size-small);
|
|
440
441
|
--pbo-input-font-size-medium: var(--pbo-font-size-medium);
|
|
@@ -479,9 +480,9 @@
|
|
|
479
480
|
--pbo-input-help-text-color: var(--pbo-color-neutral-500);
|
|
480
481
|
|
|
481
482
|
/* Toggles (checkboxes, radios, switches) */
|
|
482
|
-
--pbo-toggle-size-small:
|
|
483
|
-
--pbo-toggle-size-medium:
|
|
484
|
-
--pbo-toggle-size-large:
|
|
483
|
+
--pbo-toggle-size-small: 14px; /* 14px */
|
|
484
|
+
--pbo-toggle-size-medium: 18px; /* 18px */
|
|
485
|
+
--pbo-toggle-size-large: 22px; /* 22px */
|
|
485
486
|
|
|
486
487
|
/*
|
|
487
488
|
* Overlays
|
|
@@ -497,20 +498,6 @@
|
|
|
497
498
|
--pbo-panel-border-color: var(--pbo-color-neutral-200);
|
|
498
499
|
--pbo-panel-border-width: 1px;
|
|
499
500
|
|
|
500
|
-
/*
|
|
501
|
-
* Tooltips
|
|
502
|
-
*/
|
|
503
|
-
|
|
504
|
-
--pbo-tooltip-border-radius: var(--pbo-border-radius-medium);
|
|
505
|
-
--pbo-tooltip-background-color: var(--pbo-color-neutral-800);
|
|
506
|
-
--pbo-tooltip-color: var(--pbo-color-neutral-0);
|
|
507
|
-
--pbo-tooltip-font-family: var(--pbo-font-sans);
|
|
508
|
-
--pbo-tooltip-font-weight: var(--pbo-font-weight-normal);
|
|
509
|
-
--pbo-tooltip-font-size: var(--pbo-font-size-small);
|
|
510
|
-
--pbo-tooltip-line-height: var(--pbo-line-height-dense);
|
|
511
|
-
--pbo-tooltip-padding: var(--pbo-spacing-2x-small) var(--pbo-spacing-x-small);
|
|
512
|
-
--pbo-tooltip-arrow-size: 6px;
|
|
513
|
-
|
|
514
501
|
/*
|
|
515
502
|
* Z-indexes
|
|
516
503
|
*/
|
|
@@ -520,6 +507,9 @@
|
|
|
520
507
|
--pbo-z-index-dropdown: 900;
|
|
521
508
|
--pbo-z-index-toast: 950;
|
|
522
509
|
--pbo-z-index-tooltip: 1000;
|
|
510
|
+
|
|
511
|
+
/* ------------------------------- Pbo drawer ------------------------------- */
|
|
512
|
+
--pbo-drawer-header-height: 40px;
|
|
523
513
|
}
|
|
524
514
|
|
|
525
515
|
/* _utility.css */
|
|
@@ -2,3 +2,4 @@ export declare const isMobileDevice: () => boolean;
|
|
|
2
2
|
export declare const isNullOrUndefined: (...values: any[]) => boolean;
|
|
3
3
|
export declare const isValid: <T>(value: T) => value is NonNullable<T>;
|
|
4
4
|
export declare const removeNullUndefined: <T extends Object>(obj: T) => Partial<T>;
|
|
5
|
+
export declare function debounce<T extends (...args: any[]) => void>(fn: T, wait: number): (this: any, ...args: Parameters<T>) => void;
|