biggerui 1.0.3 → 1.0.5
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/biggerui.cjs.js +31 -38
- package/dist/biggerui.cjs.js.map +1 -1
- package/dist/biggerui.css +66 -0
- package/dist/biggerui.es.js +18 -25
- package/dist/biggerui.es.js.map +1 -1
- package/package.json +1 -1
package/dist/biggerui.css
CHANGED
|
@@ -1,3 +1,69 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Colors */
|
|
3
|
+
--primary-color: #4338ca;
|
|
4
|
+
--primary-color-hover: #3d33b8;
|
|
5
|
+
--primary-color-alpha: rgba(67, 56, 202, 0.4);
|
|
6
|
+
|
|
7
|
+
--destructive-color: #991b1b;
|
|
8
|
+
--destructive-color-hover: #8a1919;
|
|
9
|
+
--destructive-color-alpha: rgba(153, 27, 27, 0.4);
|
|
10
|
+
|
|
11
|
+
--text-color: #fafafa;
|
|
12
|
+
--text-color-secondary: #d4d4d4;
|
|
13
|
+
--text-color-placeholder: #737373;
|
|
14
|
+
--text-color-error: #fecaca;
|
|
15
|
+
|
|
16
|
+
--background-color-white: #fff;
|
|
17
|
+
--background-color-silver: #f5f5f5;
|
|
18
|
+
--background-color: #171717;
|
|
19
|
+
--background-color-light: rgba(250, 250, 250, 0.05);
|
|
20
|
+
--background-color-light-hover: rgba(250, 250, 250, 0.08);
|
|
21
|
+
--background-color-overlay: rgba(0, 0, 0, 0.5);
|
|
22
|
+
|
|
23
|
+
--border-color: rgba(250, 250, 250, 0.15);
|
|
24
|
+
--border-color-silver: #f5f5f5;
|
|
25
|
+
--border-color-white: #fff;
|
|
26
|
+
--border-color-dark: #404040;
|
|
27
|
+
--border-color-black: #171717;;
|
|
28
|
+
|
|
29
|
+
--shadow-color-light: rgba(115, 115, 115, 0.45);
|
|
30
|
+
--shadow-color: rgba(10, 10, 10, 0.05);
|
|
31
|
+
--shadow-color-dark: rgba(10, 10, 10, 0.1);
|
|
32
|
+
|
|
33
|
+
/* Spacing */
|
|
34
|
+
--spacing-xs: 4px;
|
|
35
|
+
--spacing-sm: 8px;
|
|
36
|
+
--spacing-md: 16px;
|
|
37
|
+
--spacing-lg: 24px;
|
|
38
|
+
--spacing-xl: 32px;
|
|
39
|
+
|
|
40
|
+
/* Typography */
|
|
41
|
+
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
42
|
+
--font-size-xs: 12px;
|
|
43
|
+
--font-size-sm: 14px;
|
|
44
|
+
--font-size-md: 16px;
|
|
45
|
+
--font-size-lg: 18px;
|
|
46
|
+
--font-size-xl: 20px;
|
|
47
|
+
--font-weight-regular: 400;
|
|
48
|
+
--font-weight-medium: 500;
|
|
49
|
+
--font-weight-bold: 700;
|
|
50
|
+
|
|
51
|
+
/* Border radius */
|
|
52
|
+
--border-radius-sm: 4px;
|
|
53
|
+
--border-radius-md: 8px;
|
|
54
|
+
--border-radius-lg: 12px;
|
|
55
|
+
--border-radius-full: 9999px;
|
|
56
|
+
|
|
57
|
+
/* Shadows */
|
|
58
|
+
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
59
|
+
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
60
|
+
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
|
|
61
|
+
|
|
62
|
+
/* Transitions */
|
|
63
|
+
--transition-fast: 150ms;
|
|
64
|
+
--transition-normal: 250ms;
|
|
65
|
+
--transition-slow: 350ms;
|
|
66
|
+
}
|
|
1
67
|
._button_1cxsm_1 {
|
|
2
68
|
display: inline-flex;
|
|
3
69
|
align-items: center;
|
package/dist/biggerui.es.js
CHANGED
|
@@ -8710,7 +8710,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8710
8710
|
*/
|
|
8711
8711
|
this.eventHandlers = new Map();
|
|
8712
8712
|
this.hasTreeAnimated = false;
|
|
8713
|
-
this.layoutVersion = 0;
|
|
8714
8713
|
// Note: Currently only running on root node
|
|
8715
8714
|
this.updateScheduled = false;
|
|
8716
8715
|
this.scheduleUpdate = () => this.update();
|
|
@@ -8737,7 +8736,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8737
8736
|
* Frame calculations
|
|
8738
8737
|
*/
|
|
8739
8738
|
this.resolvedRelativeTargetAt = 0.0;
|
|
8740
|
-
this.linkedParentVersion = 0;
|
|
8741
8739
|
this.hasProjected = false;
|
|
8742
8740
|
this.isVisible = true;
|
|
8743
8741
|
this.animationProgress = 0;
|
|
@@ -9091,7 +9089,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
9091
9089
|
}
|
|
9092
9090
|
const prevLayout = this.layout;
|
|
9093
9091
|
this.layout = this.measure(false);
|
|
9094
|
-
this.layoutVersion++;
|
|
9095
9092
|
this.layoutCorrected = createBox();
|
|
9096
9093
|
this.isLayoutDirty = false;
|
|
9097
9094
|
this.projectionDelta = undefined;
|
|
@@ -9311,23 +9308,25 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
9311
9308
|
if (!this.layout || !(layout || layoutId))
|
|
9312
9309
|
return;
|
|
9313
9310
|
this.resolvedRelativeTargetAt = frameData.timestamp;
|
|
9314
|
-
const relativeParent = this.getClosestProjectingParent();
|
|
9315
|
-
if (relativeParent &&
|
|
9316
|
-
this.linkedParentVersion !== relativeParent.layoutVersion &&
|
|
9317
|
-
!relativeParent.options.layoutRoot) {
|
|
9318
|
-
this.removeRelativeTarget();
|
|
9319
|
-
}
|
|
9320
9311
|
/**
|
|
9321
9312
|
* If we don't have a targetDelta but do have a layout, we can attempt to resolve
|
|
9322
9313
|
* a relativeParent. This will allow a component to perform scale correction
|
|
9323
9314
|
* even if no animation has started.
|
|
9324
9315
|
*/
|
|
9325
9316
|
if (!this.targetDelta && !this.relativeTarget) {
|
|
9326
|
-
|
|
9327
|
-
|
|
9317
|
+
const relativeParent = this.getClosestProjectingParent();
|
|
9318
|
+
if (relativeParent &&
|
|
9319
|
+
relativeParent.layout &&
|
|
9320
|
+
this.animationProgress !== 1) {
|
|
9321
|
+
this.relativeParent = relativeParent;
|
|
9322
|
+
this.forceRelativeParentToResolveTarget();
|
|
9323
|
+
this.relativeTarget = createBox();
|
|
9324
|
+
this.relativeTargetOrigin = createBox();
|
|
9325
|
+
calcRelativePosition(this.relativeTargetOrigin, this.layout.layoutBox, relativeParent.layout.layoutBox);
|
|
9326
|
+
copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
|
|
9328
9327
|
}
|
|
9329
9328
|
else {
|
|
9330
|
-
this.
|
|
9329
|
+
this.relativeParent = this.relativeTarget = undefined;
|
|
9331
9330
|
}
|
|
9332
9331
|
}
|
|
9333
9332
|
/**
|
|
@@ -9377,13 +9376,19 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
9377
9376
|
*/
|
|
9378
9377
|
if (this.attemptToResolveRelativeTarget) {
|
|
9379
9378
|
this.attemptToResolveRelativeTarget = false;
|
|
9379
|
+
const relativeParent = this.getClosestProjectingParent();
|
|
9380
9380
|
if (relativeParent &&
|
|
9381
9381
|
Boolean(relativeParent.resumingFrom) ===
|
|
9382
9382
|
Boolean(this.resumingFrom) &&
|
|
9383
9383
|
!relativeParent.options.layoutScroll &&
|
|
9384
9384
|
relativeParent.target &&
|
|
9385
9385
|
this.animationProgress !== 1) {
|
|
9386
|
-
this.
|
|
9386
|
+
this.relativeParent = relativeParent;
|
|
9387
|
+
this.forceRelativeParentToResolveTarget();
|
|
9388
|
+
this.relativeTarget = createBox();
|
|
9389
|
+
this.relativeTargetOrigin = createBox();
|
|
9390
|
+
calcRelativePosition(this.relativeTargetOrigin, this.target, relativeParent.target);
|
|
9391
|
+
copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
|
|
9387
9392
|
}
|
|
9388
9393
|
else {
|
|
9389
9394
|
this.relativeParent = this.relativeTarget = undefined;
|
|
@@ -9409,18 +9414,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
9409
9414
|
this.options.layoutRoot) &&
|
|
9410
9415
|
this.layout);
|
|
9411
9416
|
}
|
|
9412
|
-
createRelativeTarget(relativeParent, layout, parentLayout) {
|
|
9413
|
-
this.relativeParent = relativeParent;
|
|
9414
|
-
this.linkedParentVersion = relativeParent.layoutVersion;
|
|
9415
|
-
this.forceRelativeParentToResolveTarget();
|
|
9416
|
-
this.relativeTarget = createBox();
|
|
9417
|
-
this.relativeTargetOrigin = createBox();
|
|
9418
|
-
calcRelativePosition(this.relativeTargetOrigin, layout, parentLayout);
|
|
9419
|
-
copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
|
|
9420
|
-
}
|
|
9421
|
-
removeRelativeTarget() {
|
|
9422
|
-
this.relativeParent = this.relativeTarget = undefined;
|
|
9423
|
-
}
|
|
9424
9417
|
calcProjection() {
|
|
9425
9418
|
const lead = this.getLead();
|
|
9426
9419
|
const isShared = Boolean(this.resumingFrom) || this !== lead;
|