biggerui 1.0.4 → 1.0.6

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.
@@ -25,20 +25,22 @@ function _interopNamespaceDefault(e) {
25
25
 
26
26
  const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
27
27
 
28
- const button = "_button_1cxsm_1";
29
- const fullWidth = "_fullWidth_1cxsm_21";
30
- const destructive = "_destructive_1cxsm_34";
31
- const secondary = "_secondary_1cxsm_43";
32
- const sm = "_sm_1cxsm_58";
33
- const lg = "_lg_1cxsm_63";
34
- const iconLeft = "_iconLeft_1cxsm_68";
35
- const iconRight = "_iconRight_1cxsm_69";
36
- const disabled = "_disabled_1cxsm_76";
37
- const label$3 = "_label_1cxsm_81";
28
+ const button = "_button_12key_1";
29
+ const loader = "_loader_12key_26";
30
+ const fullWidth = "_fullWidth_12key_85";
31
+ const destructive = "_destructive_12key_98";
32
+ const secondary = "_secondary_12key_107";
33
+ const sm = "_sm_12key_122";
34
+ const lg = "_lg_12key_127";
35
+ const iconLeft = "_iconLeft_12key_132";
36
+ const iconRight = "_iconRight_12key_133";
37
+ const disabled = "_disabled_12key_140";
38
+ const label$3 = "_label_12key_145";
38
39
  const styles$5 = {
39
40
  button: button,
41
+ loader: loader,
40
42
  fullWidth: fullWidth,
41
- "default": "_default_1cxsm_25",
43
+ "default": "_default_12key_89",
42
44
  destructive: destructive,
43
45
  secondary: secondary,
44
46
  sm: sm,
@@ -57,19 +59,23 @@ function Button({
57
59
  className = "",
58
60
  disabled = false,
59
61
  children,
62
+ loading = false,
63
+ progress = 0,
60
64
  ...props
61
65
  }) {
62
66
  const classes = [
63
67
  styles$5.button,
64
68
  styles$5[color],
65
69
  styles$5[size],
70
+ loading ? styles$5.loading : "",
66
71
  disabled ? styles$5.disabled : "",
67
72
  className
68
73
  ].filter(Boolean).join(" ");
69
74
  return /* @__PURE__ */ jsxRuntime.jsxs("button", { className: classes, disabled, ...props, children: [
70
75
  leftIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$5.iconLeft, children: leftIcon }),
71
76
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$5.label, children }),
72
- rightIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$5.iconRight, children: rightIcon })
77
+ rightIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$5.iconRight, children: rightIcon }),
78
+ loading && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { "--progress": progress }, className: styles$5.loader })
73
79
  ] });
74
80
  }
75
81
 
@@ -8732,7 +8738,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
8732
8738
  */
8733
8739
  this.eventHandlers = new Map();
8734
8740
  this.hasTreeAnimated = false;
8735
- this.layoutVersion = 0;
8736
8741
  // Note: Currently only running on root node
8737
8742
  this.updateScheduled = false;
8738
8743
  this.scheduleUpdate = () => this.update();
@@ -8759,7 +8764,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
8759
8764
  * Frame calculations
8760
8765
  */
8761
8766
  this.resolvedRelativeTargetAt = 0.0;
8762
- this.linkedParentVersion = 0;
8763
8767
  this.hasProjected = false;
8764
8768
  this.isVisible = true;
8765
8769
  this.animationProgress = 0;
@@ -9113,7 +9117,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
9113
9117
  }
9114
9118
  const prevLayout = this.layout;
9115
9119
  this.layout = this.measure(false);
9116
- this.layoutVersion++;
9117
9120
  this.layoutCorrected = createBox();
9118
9121
  this.isLayoutDirty = false;
9119
9122
  this.projectionDelta = undefined;
@@ -9333,23 +9336,25 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
9333
9336
  if (!this.layout || !(layout || layoutId))
9334
9337
  return;
9335
9338
  this.resolvedRelativeTargetAt = frameData.timestamp;
9336
- const relativeParent = this.getClosestProjectingParent();
9337
- if (relativeParent &&
9338
- this.linkedParentVersion !== relativeParent.layoutVersion &&
9339
- !relativeParent.options.layoutRoot) {
9340
- this.removeRelativeTarget();
9341
- }
9342
9339
  /**
9343
9340
  * If we don't have a targetDelta but do have a layout, we can attempt to resolve
9344
9341
  * a relativeParent. This will allow a component to perform scale correction
9345
9342
  * even if no animation has started.
9346
9343
  */
9347
9344
  if (!this.targetDelta && !this.relativeTarget) {
9348
- if (relativeParent && relativeParent.layout) {
9349
- this.createRelativeTarget(relativeParent, this.layout.layoutBox, relativeParent.layout.layoutBox);
9345
+ const relativeParent = this.getClosestProjectingParent();
9346
+ if (relativeParent &&
9347
+ relativeParent.layout &&
9348
+ this.animationProgress !== 1) {
9349
+ this.relativeParent = relativeParent;
9350
+ this.forceRelativeParentToResolveTarget();
9351
+ this.relativeTarget = createBox();
9352
+ this.relativeTargetOrigin = createBox();
9353
+ calcRelativePosition(this.relativeTargetOrigin, this.layout.layoutBox, relativeParent.layout.layoutBox);
9354
+ copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
9350
9355
  }
9351
9356
  else {
9352
- this.removeRelativeTarget();
9357
+ this.relativeParent = this.relativeTarget = undefined;
9353
9358
  }
9354
9359
  }
9355
9360
  /**
@@ -9399,13 +9404,19 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
9399
9404
  */
9400
9405
  if (this.attemptToResolveRelativeTarget) {
9401
9406
  this.attemptToResolveRelativeTarget = false;
9407
+ const relativeParent = this.getClosestProjectingParent();
9402
9408
  if (relativeParent &&
9403
9409
  Boolean(relativeParent.resumingFrom) ===
9404
9410
  Boolean(this.resumingFrom) &&
9405
9411
  !relativeParent.options.layoutScroll &&
9406
9412
  relativeParent.target &&
9407
9413
  this.animationProgress !== 1) {
9408
- this.createRelativeTarget(relativeParent, this.target, relativeParent.target);
9414
+ this.relativeParent = relativeParent;
9415
+ this.forceRelativeParentToResolveTarget();
9416
+ this.relativeTarget = createBox();
9417
+ this.relativeTargetOrigin = createBox();
9418
+ calcRelativePosition(this.relativeTargetOrigin, this.target, relativeParent.target);
9419
+ copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
9409
9420
  }
9410
9421
  else {
9411
9422
  this.relativeParent = this.relativeTarget = undefined;
@@ -9431,18 +9442,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
9431
9442
  this.options.layoutRoot) &&
9432
9443
  this.layout);
9433
9444
  }
9434
- createRelativeTarget(relativeParent, layout, parentLayout) {
9435
- this.relativeParent = relativeParent;
9436
- this.linkedParentVersion = relativeParent.layoutVersion;
9437
- this.forceRelativeParentToResolveTarget();
9438
- this.relativeTarget = createBox();
9439
- this.relativeTargetOrigin = createBox();
9440
- calcRelativePosition(this.relativeTargetOrigin, layout, parentLayout);
9441
- copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
9442
- }
9443
- removeRelativeTarget() {
9444
- this.relativeParent = this.relativeTarget = undefined;
9445
- }
9446
9445
  calcProjection() {
9447
9446
  const lead = this.getLead();
9448
9447
  const isShared = Boolean(this.resumingFrom) || this !== lead;
@@ -10435,13 +10434,13 @@ const featureBundle = {
10435
10434
 
10436
10435
  const motion = /*@__PURE__*/ createMotionProxy(featureBundle, createDomVisualElement);
10437
10436
 
10438
- const overlay = "_overlay_oc9ef_1";
10439
- const content = "_content_oc9ef_11";
10440
- const header = "_header_oc9ef_29";
10441
- const title = "_title_oc9ef_38";
10442
- const body = "_body_oc9ef_48";
10443
- const footer = "_footer_oc9ef_58";
10444
- const closeButton = "_closeButton_oc9ef_66";
10437
+ const overlay = "_overlay_1narp_1";
10438
+ const content = "_content_1narp_11";
10439
+ const header = "_header_1narp_29";
10440
+ const title = "_title_1narp_38";
10441
+ const body = "_body_1narp_48";
10442
+ const footer = "_footer_1narp_58";
10443
+ const closeButton = "_closeButton_1narp_66";
10445
10444
  const styles$3 = {
10446
10445
  overlay: overlay,
10447
10446
  content: content,
@@ -10591,20 +10590,20 @@ const Input = ({
10591
10590
  ] });
10592
10591
  };
10593
10592
 
10594
- const wrapper$1 = "_wrapper_f03cq_1";
10595
- const label$1 = "_label_f03cq_9";
10596
- const trigger = "_trigger_f03cq_19";
10597
- const triggerOpen = "_triggerOpen_f03cq_36";
10598
- const value = "_value_f03cq_40";
10599
- const placeholder = "_placeholder_f03cq_52";
10600
- const hint = "_hint_f03cq_61";
10601
- const icon = "_icon_f03cq_67";
10602
- const dropdown = "_dropdown_f03cq_73";
10603
- const dropdownInner = "_dropdownInner_f03cq_81";
10604
- const option = "_option_f03cq_91";
10605
- const optionActive = "_optionActive_f03cq_109";
10606
- const optionLabel = "_optionLabel_f03cq_113";
10607
- const optionHint = "_optionHint_f03cq_120";
10593
+ const wrapper$1 = "_wrapper_12upp_1";
10594
+ const label$1 = "_label_12upp_9";
10595
+ const trigger = "_trigger_12upp_19";
10596
+ const triggerOpen = "_triggerOpen_12upp_36";
10597
+ const value = "_value_12upp_40";
10598
+ const placeholder = "_placeholder_12upp_52";
10599
+ const hint = "_hint_12upp_61";
10600
+ const icon = "_icon_12upp_67";
10601
+ const dropdown = "_dropdown_12upp_73";
10602
+ const dropdownInner = "_dropdownInner_12upp_81";
10603
+ const option = "_option_12upp_91";
10604
+ const optionActive = "_optionActive_12upp_109";
10605
+ const optionLabel = "_optionLabel_12upp_113";
10606
+ const optionHint = "_optionHint_12upp_120";
10608
10607
  const styles$1 = {
10609
10608
  wrapper: wrapper$1,
10610
10609
  label: label$1,