frst-components 0.25.4 → 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
- stabilizeExceedingText: jsxRuntime.jsx("div", { children: "IN\u00CDCIO E 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) {
@@ -8189,6 +8191,9 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8189
8191
  const noResult = (start < goal && currentValue == start) || (start > goal && currentValue == start);
8190
8192
  const resultEvolved = (start < goal && currentValue > start && currentValue);
8191
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;
8192
8197
  // Cálculo do progresso
8193
8198
  const progressPercentage = React.useMemo(() => {
8194
8199
  let percentage;
@@ -8210,7 +8215,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8210
8215
  barRef: 'goal',
8211
8216
  currentVariant: CurrentVariant?.Normal,
8212
8217
  message: MESSAGES?.reachedGoal,
8213
- currentTextInit: MESSAGES?.currentTextInit
8218
+ currentTextInit: MESSAGES?.currentTextInit,
8219
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8214
8220
  };
8215
8221
  // reachedGoalDecreased
8216
8222
  if (start > goal && currentValue == goal)
@@ -8221,7 +8227,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8221
8227
  barRef: 'goal',
8222
8228
  currentVariant: CurrentVariant?.Normal,
8223
8229
  message: MESSAGES?.reachedGoal,
8224
- currentTextInit: MESSAGES?.currentTextInit
8230
+ currentTextInit: MESSAGES?.currentTextInit,
8231
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8225
8232
  };
8226
8233
  // exceededTargetIncrease
8227
8234
  if (start < goal && currentValue > start && currentValue > goal)
@@ -8233,20 +8240,33 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8233
8240
  currentVariant: CurrentVariant?.Star,
8234
8241
  message: MESSAGES?.progressExceeded,
8235
8242
  currenText: MESSAGES?.currentTextResult,
8236
- currentTextInit: MESSAGES?.currentTextInit
8243
+ currentTextInit: MESSAGES?.currentTextInit,
8244
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8237
8245
  };
8238
8246
  //stabilizeExceeding
8239
8247
  if (start === goal && currentValue > start && currentValue > goal)
8240
8248
  return {
8241
8249
  start: 0,
8242
8250
  current: 100,
8243
- goal: 0,
8251
+ goal: 14,
8244
8252
  barRef: 'current',
8245
8253
  currentVariant: CurrentVariant?.Star,
8246
8254
  message: MESSAGES?.progressExceeded,
8247
8255
  currenText: MESSAGES?.currentTextResult,
8248
8256
  stabilizeExceedingText: MESSAGES?.stabilizeExceedingText
8249
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
8269
+ };
8250
8270
  // exceededTargetDecreased
8251
8271
  if (start > goal && currentValue < goal)
8252
8272
  return {
@@ -8257,7 +8277,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8257
8277
  currentVariant: CurrentVariant?.Star,
8258
8278
  message: MESSAGES?.progressExceeded,
8259
8279
  currenText: MESSAGES?.currentTextResult,
8260
- currentTextInit: MESSAGES?.currentTextInit
8280
+ currentTextInit: MESSAGES?.currentTextInit,
8281
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8261
8282
  };
8262
8283
  // GrowingWithoutReachingGoal
8263
8284
  if (start < goal && currentValue > start && currentValue < goal)
@@ -8269,7 +8290,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8269
8290
  currentVariant: CurrentVariant?.Normal,
8270
8291
  message: MESSAGES?.progressImproved,
8271
8292
  currenText: MESSAGES?.currentTextResult,
8272
- currentTextInit: MESSAGES?.currentTextInit
8293
+ currentTextInit: MESSAGES?.currentTextInit,
8294
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8273
8295
  };
8274
8296
  // DecreasingWithoutGoal
8275
8297
  if (start > goal && currentValue > goal && currentValue < start)
@@ -8281,7 +8303,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8281
8303
  currentVariant: CurrentVariant?.Normal,
8282
8304
  message: MESSAGES?.progressImproved,
8283
8305
  currenText: MESSAGES?.currentTextResult,
8284
- currentTextInit: MESSAGES?.currentTextInit
8306
+ currentTextInit: MESSAGES?.currentTextInit,
8307
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8285
8308
  };
8286
8309
  // noResultsIncrease
8287
8310
  if (start < goal && currentValue == start)
@@ -8292,7 +8315,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8292
8315
  barRef: 'current',
8293
8316
  currentVariant: CurrentVariant?.Warning,
8294
8317
  message: MESSAGES?.progressNoResults,
8295
- currenText: MESSAGES?.currentTextInitAndResult
8318
+ currenText: MESSAGES?.currentTextInitAndResult,
8319
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8296
8320
  };
8297
8321
  // noResultsDecreased
8298
8322
  if (start > goal && currentValue == start)
@@ -8303,7 +8327,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8303
8327
  bar: 'current',
8304
8328
  currentVariant: CurrentVariant?.Warning,
8305
8329
  message: MESSAGES?.progressNoResults,
8306
- currenText: MESSAGES?.currentTextInitAndResult
8330
+ currenText: MESSAGES?.currentTextInitAndResult,
8331
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8307
8332
  };
8308
8333
  // noGoalIncrease
8309
8334
  if (start < goal && currentValue < start)
@@ -8315,7 +8340,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8315
8340
  currentVariant: CurrentVariant?.Warning,
8316
8341
  message: MESSAGES?.progressNoGoal,
8317
8342
  currenText: MESSAGES?.currentTextResult,
8318
- currentTextInit: MESSAGES?.currentTextInit
8343
+ currentTextInit: MESSAGES?.currentTextInit,
8344
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8319
8345
  };
8320
8346
  // noGoalDecreased
8321
8347
  if (start > goal && currentValue > start)
@@ -8327,7 +8353,8 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8327
8353
  currentVariant: CurrentVariant?.Warning,
8328
8354
  message: MESSAGES?.progressNoGoal,
8329
8355
  currenText: MESSAGES?.currentTextResult,
8330
- currentTextInit: MESSAGES?.currentTextInit
8356
+ currentTextInit: MESSAGES?.currentTextInit,
8357
+ TextoGoalDefault: MESSAGES?.TextoGoalDefault
8331
8358
  };
8332
8359
  }, []);
8333
8360
  const isGoalExceeded = React.useMemo(() => positions?.currentVariant == CurrentVariant?.Star, [positions]);
@@ -8342,7 +8369,10 @@ const useProgressGoalBar = ({ start, current, goal }) => {
8342
8369
  noGoal,
8343
8370
  noResult,
8344
8371
  resultEvolved,
8345
- stabilizeExceeding
8372
+ stabilizeExceeding,
8373
+ stabilize,
8374
+ isGoalDecreased,
8375
+ isGoalIncrease
8346
8376
  };
8347
8377
  };
8348
8378
 
@@ -8435,12 +8465,15 @@ const ProgressBarColor = styled__default["default"].div `
8435
8465
  left: 0;
8436
8466
  top: 0;
8437
8467
  z-index: 1;
8438
- background: ${({ isGoalExceeded, hasRegressed }) => {
8468
+ background: ${({ isGoalExceeded, hasRegressed, isGoalDecreased, isGoalIncrese, stabileze }) => {
8439
8469
  if (hasRegressed) {
8440
8470
  return '#C90017';
8441
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
+ }
8442
8475
  else if (isGoalExceeded) {
8443
- 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%)';
8444
8477
  }
8445
8478
  else {
8446
8479
  return 'linear-gradient(90deg, rgba(161, 162, 171, 1) 33%, rgba(251, 141, 40, 1) 65%)';
@@ -8461,7 +8494,22 @@ const IndicatorText = styled__default["default"].div `
8461
8494
  flex-direction: column;
8462
8495
  align-items: ${({ noResult, isGoalReached, isGoalExceeded, resultEvolved, start }) => noResult || isGoalReached || isGoalExceeded || resultEvolved || start === 0 ? 'start' : 'center'};
8463
8496
  top: 100%;
8464
- 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'});
8465
8513
  margin-top: 8px;
8466
8514
  font-size: 12px;
8467
8515
  color: #333;
@@ -8473,7 +8521,7 @@ const IndicatorTextCurrent = styled__default["default"].div `
8473
8521
  flex-direction: column;
8474
8522
  align-items: ${({ noGoal, noResult }) => noGoal || noResult ? 'start' : 'center'};
8475
8523
  top: 100%;
8476
- left: calc(${({ position }) => position}% ${({ position }) => position && '- 37px'});
8524
+ left: calc(${({ position }) => position}% ${({ position }) => position && '- 30px'});
8477
8525
  margin-top: 8px;
8478
8526
  font-size: 12px;
8479
8527
  color: #333;
@@ -8508,7 +8556,7 @@ const TypeProgressText = styled__default["default"].p `
8508
8556
  `;
8509
8557
 
8510
8558
  const ProgressGoalBar = ({ start, current, goal, isVisibleMessage = true }) => {
8511
- const { isGoalExceeded, isGoalReached, positions, noGoal, noResult, resultEvolved, stabilizeExceeding } = useProgressGoalBar({
8559
+ const { isGoalExceeded, isGoalReached, positions, noGoal, noResult, resultEvolved, stabilizeExceeding, stabilize, isGoalDecreased, isGoalIncrease } = useProgressGoalBar({
8512
8560
  start,
8513
8561
  current,
8514
8562
  goal
@@ -8524,8 +8572,7 @@ const ProgressGoalBar = ({ start, current, goal, isVisibleMessage = true }) => {
8524
8572
  return positions?.currentTextInit;
8525
8573
  }
8526
8574
  };
8527
- 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: 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 })] })) })] })), stabilizeExceeding ? '' :
8528
- 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: !stabilizeExceeding && goal }), jsxRuntime.jsx(TypeProgressText, { children: !stabilizeExceeding && 'META' })] }), jsxRuntime.jsx(ProgressBarColor, { isGoalExceeded: isGoalExceeded, width: positions[positions.barRef], hasRegressed: noGoal })] })] }));
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 })] })] }));
8529
8576
  };
8530
8577
 
8531
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,4CAmFtG,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"}
@@ -8,5 +8,7 @@ export declare const MESSAGES: {
8
8
  currentTextInitAndResult: import("react/jsx-runtime").JSX.Element;
9
9
  currentTextInit: import("react/jsx-runtime").JSX.Element;
10
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,8 +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;
27
28
  stabilizeExceedingText?: undefined;
29
+ textGoal?: undefined;
28
30
  bar?: undefined;
29
31
  } | {
30
32
  start: number;
@@ -35,7 +37,9 @@ export declare const useProgressGoalBar: ({ start, current, goal }: {
35
37
  message: import("react/jsx-runtime").JSX.Element;
36
38
  currenText: import("react/jsx-runtime").JSX.Element;
37
39
  currentTextInit: import("react/jsx-runtime").JSX.Element;
40
+ TextoGoalDefault: import("react/jsx-runtime").JSX.Element;
38
41
  stabilizeExceedingText?: undefined;
42
+ textGoal?: undefined;
39
43
  bar?: undefined;
40
44
  } | {
41
45
  start: number;
@@ -47,6 +51,21 @@ export declare const useProgressGoalBar: ({ start, current, goal }: {
47
51
  currenText: import("react/jsx-runtime").JSX.Element;
48
52
  stabilizeExceedingText: import("react/jsx-runtime").JSX.Element;
49
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;
50
69
  bar?: undefined;
51
70
  } | {
52
71
  start: number;
@@ -56,8 +75,10 @@ export declare const useProgressGoalBar: ({ start, current, goal }: {
56
75
  currentVariant: CurrentVariant;
57
76
  message: import("react/jsx-runtime").JSX.Element;
58
77
  currenText: import("react/jsx-runtime").JSX.Element;
78
+ TextoGoalDefault: import("react/jsx-runtime").JSX.Element;
59
79
  currentTextInit?: undefined;
60
80
  stabilizeExceedingText?: undefined;
81
+ textGoal?: undefined;
61
82
  bar?: undefined;
62
83
  } | {
63
84
  start: number;
@@ -67,13 +88,18 @@ export declare const useProgressGoalBar: ({ start, current, goal }: {
67
88
  currentVariant: CurrentVariant;
68
89
  message: import("react/jsx-runtime").JSX.Element;
69
90
  currenText: import("react/jsx-runtime").JSX.Element;
91
+ TextoGoalDefault: import("react/jsx-runtime").JSX.Element;
70
92
  barRef?: undefined;
71
93
  currentTextInit?: undefined;
72
94
  stabilizeExceedingText?: undefined;
95
+ textGoal?: undefined;
73
96
  };
74
97
  noGoal: boolean;
75
98
  noResult: boolean;
76
99
  resultEvolved: any;
77
100
  stabilizeExceeding: boolean;
101
+ stabilize: boolean;
102
+ isGoalDecreased: boolean;
103
+ isGoalIncrease: boolean;
78
104
  };
79
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwL9B,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.4",
4
+ "version": "0.25.5",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",