frst-components 0.25.3 → 0.25.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/index.js CHANGED
@@ -8168,7 +8168,9 @@ const MESSAGES = {
8168
8168
  currentTextResult: jsxRuntime.jsx("div", { children: "RESULTADO" }),
8169
8169
  currentTextInitAndResult: jsxRuntime.jsx("div", { children: "IN\u00CDCIO E RESULTADO" }),
8170
8170
  currentTextInit: jsxRuntime.jsx("div", { children: "IN\u00CDCIO" }),
8171
- currentTextMeta: jsxRuntime.jsx("div", { children: "META" })
8171
+ stabilizeExceedingText: jsxRuntime.jsx("div", { children: "IN\u00CDCIO E META" }),
8172
+ textGoal: jsxRuntime.jsx("div", { children: "META E RESULTADO" }),
8173
+ TextoGoalDefault: jsxRuntime.jsx("div", { children: "META" })
8172
8174
  };
8173
8175
 
8174
8176
  function toRange(start, middle, end) {
@@ -8188,6 +8190,10 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8188
8190
  const noGoal = (start < goal && currentValue < start) || (start > goal && currentValue > start);
8189
8191
  const noResult = (start < goal && currentValue == start) || (start > goal && currentValue == start);
8190
8192
  const resultEvolved = (start < goal && currentValue > start && currentValue);
8193
+ const stabilizeExceeding = (start === goal && currentValue > start && currentValue > goal);
8194
+ const stabilize = (start === goal && currentValue === goal && start === currentValue);
8195
+ const isGoalDecreased = start > goal && currentValue == goal;
8196
+ const isGoalIncrease = start < goal && currentValue > start && currentValue == goal;
8191
8197
  // Cálculo do progresso
8192
8198
  const progressPercentage = React.useMemo(() => {
8193
8199
  let percentage;
@@ -8209,7 +8215,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8209
8215
  barRef: 'goal',
8210
8216
  currentVariant: CurrentVariant?.Normal,
8211
8217
  message: MESSAGES?.reachedGoal,
8212
- currentTextInit: MESSAGES?.currentTextInit
8218
+ currentTextInit: MESSAGES?.currentTextInit,
8219
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8213
8220
  };
8214
8221
  // reachedGoalDecreased
8215
8222
  if (start > goal && currentValue == goal)
@@ -8220,7 +8227,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8220
8227
  barRef: 'goal',
8221
8228
  currentVariant: CurrentVariant?.Normal,
8222
8229
  message: MESSAGES?.reachedGoal,
8223
- currentTextInit: MESSAGES?.currentTextInit
8230
+ currentTextInit: MESSAGES?.currentTextInit,
8231
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8224
8232
  };
8225
8233
  // exceededTargetIncrease
8226
8234
  if (start < goal && currentValue > start && currentValue > goal)
@@ -8232,7 +8240,32 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8232
8240
  currentVariant: CurrentVariant?.Star,
8233
8241
  message: MESSAGES?.progressExceeded,
8234
8242
  currenText: MESSAGES?.currentTextResult,
8235
- currentTextInit: MESSAGES?.currentTextInit
8243
+ currentTextInit: MESSAGES?.currentTextInit,
8244
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8245
+ };
8246
+ //stabilizeExceeding
8247
+ if (start === goal && currentValue > start && currentValue > goal)
8248
+ return {
8249
+ start: 0,
8250
+ current: 100,
8251
+ goal: 14,
8252
+ barRef: 'current',
8253
+ currentVariant: CurrentVariant?.Star,
8254
+ message: MESSAGES?.progressExceeded,
8255
+ currenText: MESSAGES?.currentTextResult,
8256
+ stabilizeExceedingText: MESSAGES?.stabilizeExceedingText
8257
+ };
8258
+ //stabilize
8259
+ if (start === goal && currentValue === goal && start === currentValue)
8260
+ return {
8261
+ start: 0,
8262
+ current: 100,
8263
+ goal: 100,
8264
+ barRef: 'current',
8265
+ currentVariant: CurrentVariant?.Star,
8266
+ message: MESSAGES?.reachedGoal,
8267
+ currentTextInit: MESSAGES?.currentTextInit,
8268
+ textGoal: MESSAGES.textGoal
8236
8269
  };
8237
8270
  // exceededTargetDecreased
8238
8271
  if (start > goal && currentValue < goal)
@@ -8244,7 +8277,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8244
8277
  currentVariant: CurrentVariant?.Star,
8245
8278
  message: MESSAGES?.progressExceeded,
8246
8279
  currenText: MESSAGES?.currentTextResult,
8247
- currentTextInit: MESSAGES?.currentTextInit
8280
+ currentTextInit: MESSAGES?.currentTextInit,
8281
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8248
8282
  };
8249
8283
  // GrowingWithoutReachingGoal
8250
8284
  if (start < goal && currentValue > start && currentValue < goal)
@@ -8256,7 +8290,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8256
8290
  currentVariant: CurrentVariant?.Normal,
8257
8291
  message: MESSAGES?.progressImproved,
8258
8292
  currenText: MESSAGES?.currentTextResult,
8259
- currentTextInit: MESSAGES?.currentTextInit
8293
+ currentTextInit: MESSAGES?.currentTextInit,
8294
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8260
8295
  };
8261
8296
  // DecreasingWithoutGoal
8262
8297
  if (start > goal && currentValue > goal && currentValue < start)
@@ -8268,7 +8303,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8268
8303
  currentVariant: CurrentVariant?.Normal,
8269
8304
  message: MESSAGES?.progressImproved,
8270
8305
  currenText: MESSAGES?.currentTextResult,
8271
- currentTextInit: MESSAGES?.currentTextInit
8306
+ currentTextInit: MESSAGES?.currentTextInit,
8307
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8272
8308
  };
8273
8309
  // noResultsIncrease
8274
8310
  if (start < goal && currentValue == start)
@@ -8279,7 +8315,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8279
8315
  barRef: 'current',
8280
8316
  currentVariant: CurrentVariant?.Warning,
8281
8317
  message: MESSAGES?.progressNoResults,
8282
- currenText: MESSAGES?.currentTextInitAndResult
8318
+ currenText: MESSAGES?.currentTextInitAndResult,
8319
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8283
8320
  };
8284
8321
  // noResultsDecreased
8285
8322
  if (start > goal && currentValue == start)
@@ -8290,7 +8327,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8290
8327
  bar: 'current',
8291
8328
  currentVariant: CurrentVariant?.Warning,
8292
8329
  message: MESSAGES?.progressNoResults,
8293
- currenText: MESSAGES?.currentTextInitAndResult
8330
+ currenText: MESSAGES?.currentTextInitAndResult,
8331
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8294
8332
  };
8295
8333
  // noGoalIncrease
8296
8334
  if (start < goal && currentValue < start)
@@ -8302,7 +8340,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8302
8340
  currentVariant: CurrentVariant?.Warning,
8303
8341
  message: MESSAGES?.progressNoGoal,
8304
8342
  currenText: MESSAGES?.currentTextResult,
8305
- currentTextInit: MESSAGES?.currentTextInit
8343
+ currentTextInit: MESSAGES?.currentTextInit,
8344
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8306
8345
  };
8307
8346
  // noGoalDecreased
8308
8347
  if (start > goal && currentValue > start)
@@ -8314,7 +8353,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8314
8353
  currentVariant: CurrentVariant?.Warning,
8315
8354
  message: MESSAGES?.progressNoGoal,
8316
8355
  currenText: MESSAGES?.currentTextResult,
8317
- currentTextInit: MESSAGES?.currentTextInit
8356
+ currentTextInit: MESSAGES?.currentTextInit,
8357
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8318
8358
  };
8319
8359
  }, []);
8320
8360
  const isGoalExceeded = React.useMemo(() => positions?.currentVariant == CurrentVariant?.Star, [positions]);
@@ -8328,7 +8368,11 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8328
8368
  positions,
8329
8369
  noGoal,
8330
8370
  noResult,
8331
- resultEvolved
8371
+ resultEvolved,
8372
+ stabilizeExceeding,
8373
+ stabilize,
8374
+ isGoalDecreased,
8375
+ isGoalIncrease
8332
8376
  };
8333
8377
  };
8334
8378
 
@@ -8421,12 +8465,15 @@ const ProgressBarColor = styled__default["default"].div `
8421
8465
  left: 0;
8422
8466
  top: 0;
8423
8467
  z-index: 1;
8424
- background: ${({ isGoalExceeded, hasRegressed }) => {
8468
+ background: ${({ isGoalExceeded, hasRegressed, isGoalDecreased, isGoalIncrese, stabileze }) => {
8425
8469
  if (hasRegressed) {
8426
8470
  return '#C90017';
8427
8471
  }
8472
+ else if (isGoalDecreased || isGoalIncrese || stabileze) {
8473
+ return 'linear-gradient(90deg, rgba(161, 162, 171, 1) 0%, rgba(251, 141, 40, 1) 10%)';
8474
+ }
8428
8475
  else if (isGoalExceeded) {
8429
- return 'linear-gradient(90deg, rgba(161, 162, 171, 1) 33%, rgba(251, 141, 40, 1) 78%, rgba(255, 215, 0, 1) 100%)';
8476
+ return 'linear-gradient(90deg, rgba(251, 141, 40, 1) 78%, rgba(255, 215, 0, 1) 100%)';
8430
8477
  }
8431
8478
  else {
8432
8479
  return 'linear-gradient(90deg, rgba(161, 162, 171, 1) 33%, rgba(251, 141, 40, 1) 65%)';
@@ -8447,7 +8494,22 @@ const IndicatorText = styled__default["default"].div `
8447
8494
  flex-direction: column;
8448
8495
  align-items: ${({ noResult, isGoalReached, isGoalExceeded, resultEvolved, start }) => noResult || isGoalReached || isGoalExceeded || resultEvolved || start === 0 ? 'start' : 'center'};
8449
8496
  top: 100%;
8450
- left: calc(${({ position }) => position}% ${({ position }) => position && '- 30px'}); /* Posiciona o texto com base na posição do indicador */
8497
+ /* left: calc(${({ position }) => position}% ${({ position }) => position && '- 59px'}); */
8498
+ left: ${({ position, stabilize }) => stabilize
8499
+ ? `calc(${position}% - 59px)`
8500
+ : `calc(${position}% - 26px)`}; /* Posiciona o texto com base na posição do indicador */
8501
+ margin-top: 8px;
8502
+ font-size: 12px;
8503
+ color: #333;
8504
+ white-space: nowrap;
8505
+ `;
8506
+ const IndicatorTextInit = styled__default["default"].div `
8507
+ position: absolute;
8508
+ display: flex;
8509
+ flex-direction: column;
8510
+ align-items: ${({ noResult, isGoalReached, isGoalExceeded, resultEvolved, start }) => noResult || isGoalReached || isGoalExceeded || resultEvolved || start === 0 ? 'start' : 'center'};
8511
+ top: 100%;
8512
+ left: calc(${({ position }) => position}% ${({ position }) => position && '- 30px'});
8451
8513
  margin-top: 8px;
8452
8514
  font-size: 12px;
8453
8515
  color: #333;
@@ -8459,7 +8521,7 @@ const IndicatorTextCurrent = styled__default["default"].div `
8459
8521
  flex-direction: column;
8460
8522
  align-items: ${({ noGoal, noResult }) => noGoal || noResult ? 'start' : 'center'};
8461
8523
  top: 100%;
8462
- left: calc(${({ position }) => position}% ${({ position }) => position && '- 37px'});
8524
+ left: calc(${({ position }) => position}% ${({ position }) => position && '- 30px'});
8463
8525
  margin-top: 8px;
8464
8526
  font-size: 12px;
8465
8527
  color: #333;
@@ -8494,12 +8556,23 @@ const TypeProgressText = styled__default["default"].p `
8494
8556
  `;
8495
8557
 
8496
8558
  const ProgressGoalBar = ({ start, current, goal, isVisibleMessage = true }) => {
8497
- const { isGoalExceeded, isGoalReached, positions, noGoal, noResult, resultEvolved } = useProgressGoalBar({
8559
+ const { isGoalExceeded, isGoalReached, positions, noGoal, noResult, resultEvolved, stabilizeExceeding, stabilize, isGoalDecreased, isGoalIncrease } = useProgressGoalBar({
8498
8560
  start,
8499
8561
  current,
8500
8562
  goal
8501
8563
  });
8502
- return (jsxRuntime.jsxs(WrapperProgressGoalBar, { children: [isVisibleMessage && jsxRuntime.jsx(TextUP, { children: positions?.message }), jsxRuntime.jsxs(ProgressGoalBarContainer, { children: [jsxRuntime.jsx(StartIndicator, { position: positions?.start, children: jsxRuntime.jsx(LocalizationIcon, {}) }), jsxRuntime.jsx(IndicatorText, { noResult: noResult, position: positions?.start, isGoalReached: isGoalReached, isGoalExceeded: isGoalExceeded, resultEvolved: resultEvolved, start: positions?.start, children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Number$1, { children: start }), jsxRuntime.jsx(TypeProgressText, { children: noResult ? positions?.currenText : positions?.currentTextInit })] }) }), !isGoalReached && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CurrentIndicator, { status: positions?.currentVariant, position: positions?.current, children: isGoalExceeded ? jsxRuntime.jsx(StarIcon$1, { color: 'white', width: 14, height: 13 }) : jsxRuntime.jsx(ExclamationIcon, {}) }), jsxRuntime.jsx(IndicatorTextCurrent, { position: positions?.current, noGoal: noGoal, noResult: noResult, children: !noResult && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Number$1, { children: current }), jsxRuntime.jsx(TypeProgressText, { children: positions?.currenText })] })) })] })), jsxRuntime.jsx(EndIndicator, { position: positions?.goal, isGoalExceeded: isGoalExceeded, isGoalReached: isGoalReached, children: jsxRuntime.jsx(GoalIcon, {}) }), jsxRuntime.jsxs(IndicatorText, { position: positions?.goal, children: [jsxRuntime.jsx(Number$1, { children: goal }), jsxRuntime.jsx(TypeProgressText, { children: "META" })] }), jsxRuntime.jsx(ProgressBarColor, { isGoalExceeded: isGoalExceeded, width: positions[positions?.barRef], hasRegressed: noGoal })] })] }));
8564
+ const getDisplayText = () => {
8565
+ if (noResult) {
8566
+ return positions?.currenText;
8567
+ }
8568
+ else if (stabilizeExceeding) {
8569
+ return positions?.stabilizeExceedingText;
8570
+ }
8571
+ else {
8572
+ return positions?.currentTextInit;
8573
+ }
8574
+ };
8575
+ return (jsxRuntime.jsxs(WrapperProgressGoalBar, { children: [isVisibleMessage && jsxRuntime.jsx(TextUP, { children: positions?.message }), jsxRuntime.jsxs(ProgressGoalBarContainer, { children: [jsxRuntime.jsx(StartIndicator, { position: positions?.start, children: jsxRuntime.jsx(LocalizationIcon, {}) }), jsxRuntime.jsx(IndicatorTextInit, { noResult: noResult, position: positions?.start, isGoalReached: isGoalReached, isGoalExceeded: isGoalExceeded, resultEvolved: resultEvolved, start: positions?.start, stabilize: stabilize, children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Number$1, { children: start }), jsxRuntime.jsx(TypeProgressText, { children: getDisplayText() })] }) }), !isGoalReached && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CurrentIndicator, { status: positions?.currentVariant, position: positions?.current, children: isGoalExceeded ? jsxRuntime.jsx(StarIcon$1, { color: "white", width: 14, height: 13 }) : jsxRuntime.jsx(ExclamationIcon, {}) }), jsxRuntime.jsx(IndicatorTextCurrent, { position: positions?.current, noGoal: noGoal, noResult: noResult, children: !noResult && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Number$1, { children: current }), jsxRuntime.jsx(TypeProgressText, { children: positions?.currenText })] })) })] })), jsxRuntime.jsx(EndIndicator, { position: positions?.goal, isGoalExceeded: isGoalExceeded, isGoalReached: isGoalReached, children: jsxRuntime.jsx(GoalIcon, {}) }), jsxRuntime.jsxs(IndicatorText, { position: positions?.goal, stabilize: stabilize, children: [jsxRuntime.jsx(Number$1, { children: !stabilizeExceeding && goal }), jsxRuntime.jsx(TypeProgressText, { children: stabilizeExceeding || stabilize ? positions?.textGoal : positions?.TextoGoalDefault })] }), jsxRuntime.jsx(ProgressBarColor, { isGoalExceeded: isGoalExceeded, width: positions[positions.barRef], hasRegressed: noGoal, isGoalDecreased: isGoalDecreased, isGoalIncrese: isGoalIncrease, stabileze: stabilize })] })] }));
8503
8576
  };
8504
8577
 
8505
8578
  const ModalContainer = styled__default["default"].div `
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/progressGoalBar/index.tsx"],"names":[],"mappings":"AAIA,UAAU,oBAAoB;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,eAAO,MAAM,eAAe,+CAAuD,oBAAoB,4CAoEtG,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/progressGoalBar/index.tsx"],"names":[],"mappings":"AAIA,UAAU,oBAAoB;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,eAAO,MAAM,eAAe,+CAAuD,oBAAoB,4CAgGtG,CAAA"}
@@ -3,6 +3,9 @@ interface ProgressBarColorProps {
3
3
  width: number;
4
4
  isGoalExceeded: boolean;
5
5
  hasRegressed: boolean;
6
+ isGoalIncrese: boolean;
7
+ isGoalDecreased: boolean;
8
+ stabileze: boolean;
6
9
  }
7
10
  export declare const WrapperProgressGoalBar: import("styled-components").StyledComponent<"div", any, {}, never>;
8
11
  export declare const ProgressGoalBarContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -27,6 +30,16 @@ export declare const IndicatorText: import("styled-components").StyledComponent<
27
30
  isGoalReached?: boolean;
28
31
  resultEvolved?: boolean;
29
32
  start?: number;
33
+ stabilize?: boolean;
34
+ }, never>;
35
+ export declare const IndicatorTextInit: import("styled-components").StyledComponent<"div", any, {
36
+ position: number;
37
+ noResult?: boolean;
38
+ isGoalExceeded?: boolean;
39
+ isGoalReached?: boolean;
40
+ resultEvolved?: boolean;
41
+ start?: number;
42
+ stabilize?: boolean;
30
43
  }, never>;
31
44
  export declare const IndicatorTextCurrent: import("styled-components").StyledComponent<"div", any, {
32
45
  position: number;
@@ -1 +1 @@
1
- {"version":3,"file":"progressGoalBarStyles.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/progressGoalBar/progressGoalBarStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3E,UAAU,qBAAqB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAA;IACvB,YAAY,EAAE,OAAO,CAAA;CACxB;AAGD,eAAO,MAAM,sBAAsB,oEAGlC,CAAA;AAGD,eAAO,MAAM,wBAAwB,oEASpC,CAAA;AAGD,eAAO,MAAM,cAAc;cAA0B,MAAM;SAe1D,CAAC;AAEF,eAAO,MAAM,gBAAgB;cAA0B,MAAM;YAAU,mBAAmB;SAiCzF,CAAC;AAEF,eAAO,MAAM,YAAY;cAA0B,MAAM;mBAAiB,OAAO;oBAAkB,OAAO;SAgBzG,CAAC;AAGF,eAAO,MAAM,gBAAgB,uFAiB5B,CAAC;AAEF,eAAO,MAAM,MAAM,oEAOlB,CAAA;AAED,eAAO,MAAM,aAAa;cAA0B,MAAM;eAAa,OAAO;qBAAmB,OAAO;oBAAkB,OAAO;oBAAkB,OAAO;YAAU,MAAM;SAYzK,CAAC;AAEF,eAAO,MAAM,oBAAoB;cAA0B,MAAM;YAAU,OAAO;cAAY,OAAO;SAYpG,CAAC;AAEF,eAAO,MAAM,cAAc;cAA0B,MAAM;SAY1D,CAAC;AAEF,eAAO,MAAM,MAAM,kEAMlB,CAAA;AAED,eAAO,MAAM,gBAAgB,kEAK5B,CAAA"}
1
+ {"version":3,"file":"progressGoalBarStyles.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/progressGoalBar/progressGoalBarStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3E,UAAU,qBAAqB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAA;IACvB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;CACrB;AAGD,eAAO,MAAM,sBAAsB,oEAGlC,CAAA;AAGD,eAAO,MAAM,wBAAwB,oEASpC,CAAA;AAGD,eAAO,MAAM,cAAc;cAA0B,MAAM;SAe1D,CAAC;AAEF,eAAO,MAAM,gBAAgB;cAA0B,MAAM;YAAU,mBAAmB;SAiCzF,CAAC;AAEF,eAAO,MAAM,YAAY;cAA0B,MAAM;mBAAiB,OAAO;oBAAkB,OAAO;SAgBzG,CAAC;AAGF,eAAO,MAAM,gBAAgB,uFAmB5B,CAAC;AAEF,eAAO,MAAM,MAAM,oEAOlB,CAAA;AAED,eAAO,MAAM,aAAa;cAA0B,MAAM;eAAa,OAAO;qBAAmB,OAAO;oBAAkB,OAAO;oBAAkB,OAAO;YAAU,MAAM;gBAAa,OAAO;SAgB7L,CAAC;AAGF,eAAO,MAAM,iBAAiB;cAAyB,MAAM;eAAa,OAAO;qBAAmB,OAAO;oBAAkB,OAAO;oBAAkB,OAAO;YAAU,MAAM;gBAAa,OAAO;SAYhM,CAAC;AAEF,eAAO,MAAM,oBAAoB;cAA0B,MAAM;YAAU,OAAO;cAAY,OAAO;SAYpG,CAAC;AAEF,eAAO,MAAM,cAAc;cAA0B,MAAM;SAY1D,CAAC;AAEF,eAAO,MAAM,MAAM,kEAMlB,CAAA;AAED,eAAO,MAAM,gBAAgB,kEAK5B,CAAA"}
@@ -7,6 +7,8 @@ export declare const MESSAGES: {
7
7
  currentTextResult: import("react/jsx-runtime").JSX.Element;
8
8
  currentTextInitAndResult: import("react/jsx-runtime").JSX.Element;
9
9
  currentTextInit: import("react/jsx-runtime").JSX.Element;
10
- currentTextMeta: import("react/jsx-runtime").JSX.Element;
10
+ stabilizeExceedingText: import("react/jsx-runtime").JSX.Element;
11
+ textGoal: import("react/jsx-runtime").JSX.Element;
12
+ TextoGoalDefault: import("react/jsx-runtime").JSX.Element;
11
13
  };
12
14
  //# sourceMappingURL=progressTexts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"progressTexts.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/progressGoalBar/progressTexts.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;;;;CA2BpB,CAAA"}
1
+ {"version":3,"file":"progressTexts.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/progressGoalBar/progressTexts.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;;;;;;CA6BpB,CAAA"}
@@ -23,7 +23,10 @@ export declare const useProgressGoalBar: ({ start, current, goal }: {
23
23
  currentVariant: CurrentVariant;
24
24
  message: import("react/jsx-runtime").JSX.Element;
25
25
  currentTextInit: import("react/jsx-runtime").JSX.Element;
26
+ TextoGoalDefault: import("react/jsx-runtime").JSX.Element;
26
27
  currenText?: undefined;
28
+ stabilizeExceedingText?: undefined;
29
+ textGoal?: undefined;
27
30
  bar?: undefined;
28
31
  } | {
29
32
  start: number;
@@ -34,6 +37,9 @@ export declare const useProgressGoalBar: ({ start, current, goal }: {
34
37
  message: import("react/jsx-runtime").JSX.Element;
35
38
  currenText: import("react/jsx-runtime").JSX.Element;
36
39
  currentTextInit: import("react/jsx-runtime").JSX.Element;
40
+ TextoGoalDefault: import("react/jsx-runtime").JSX.Element;
41
+ stabilizeExceedingText?: undefined;
42
+ textGoal?: undefined;
37
43
  bar?: undefined;
38
44
  } | {
39
45
  start: number;
@@ -43,7 +49,36 @@ export declare const useProgressGoalBar: ({ start, current, goal }: {
43
49
  currentVariant: CurrentVariant;
44
50
  message: import("react/jsx-runtime").JSX.Element;
45
51
  currenText: import("react/jsx-runtime").JSX.Element;
52
+ stabilizeExceedingText: import("react/jsx-runtime").JSX.Element;
46
53
  currentTextInit?: undefined;
54
+ TextoGoalDefault?: undefined;
55
+ textGoal?: undefined;
56
+ bar?: undefined;
57
+ } | {
58
+ start: number;
59
+ current: number;
60
+ goal: number;
61
+ barRef: string;
62
+ currentVariant: CurrentVariant;
63
+ message: import("react/jsx-runtime").JSX.Element;
64
+ currentTextInit: import("react/jsx-runtime").JSX.Element;
65
+ textGoal: import("react/jsx-runtime").JSX.Element;
66
+ TextoGoalDefault?: undefined;
67
+ currenText?: undefined;
68
+ stabilizeExceedingText?: undefined;
69
+ bar?: undefined;
70
+ } | {
71
+ start: number;
72
+ current: number;
73
+ goal: number;
74
+ barRef: string;
75
+ currentVariant: CurrentVariant;
76
+ message: import("react/jsx-runtime").JSX.Element;
77
+ currenText: import("react/jsx-runtime").JSX.Element;
78
+ TextoGoalDefault: import("react/jsx-runtime").JSX.Element;
79
+ currentTextInit?: undefined;
80
+ stabilizeExceedingText?: undefined;
81
+ textGoal?: undefined;
47
82
  bar?: undefined;
48
83
  } | {
49
84
  start: number;
@@ -53,11 +88,18 @@ export declare const useProgressGoalBar: ({ start, current, goal }: {
53
88
  currentVariant: CurrentVariant;
54
89
  message: import("react/jsx-runtime").JSX.Element;
55
90
  currenText: import("react/jsx-runtime").JSX.Element;
91
+ TextoGoalDefault: import("react/jsx-runtime").JSX.Element;
56
92
  barRef?: undefined;
57
93
  currentTextInit?: undefined;
94
+ stabilizeExceedingText?: undefined;
95
+ textGoal?: undefined;
58
96
  };
59
97
  noGoal: boolean;
60
98
  noResult: boolean;
61
99
  resultEvolved: any;
100
+ stabilizeExceeding: boolean;
101
+ stabilize: boolean;
102
+ isGoalDecreased: boolean;
103
+ isGoalIncrease: boolean;
62
104
  };
63
105
  //# sourceMappingURL=useProgressGoalBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useProgressGoalBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/progressGoalBar/useProgressGoalBar.tsx"],"names":[],"mappings":"AAQA,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CAChB;AACD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAA;AAEtF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwK9B,CAAA"}
1
+ {"version":3,"file":"useProgressGoalBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/progressGoalBar/useProgressGoalBar.tsx"],"names":[],"mappings":"AAQA,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CAChB;AACD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAA;AAEtF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuN9B,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frst-components",
3
3
  "homepage": "http://FRST-Falconi.github.io/storybook.frstfalconi.com",
4
- "version": "0.25.03",
4
+ "version": "0.25.5",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",