@clickpalm/react 1.3.1 → 1.3.3

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.d.ts CHANGED
@@ -2313,6 +2313,7 @@ interface DatePickerInputProps {
2313
2313
  value?: string;
2314
2314
  onChange: (date: string) => void;
2315
2315
  errorMessage?: string;
2316
+ endDate?: Date;
2316
2317
  }
2317
2318
  declare const Datepicker: react.ForwardRefExoticComponent<DatePickerInputProps & react.RefAttributes<HTMLInputElement>>;
2318
2319
 
@@ -3072,7 +3073,7 @@ interface TooltipProps {
3072
3073
  delayDuration?: number;
3073
3074
  }
3074
3075
  declare const Tooltip: {
3075
- ({ content, children, side, sideOffset, open, onOpenChange, delayDuration }: TooltipProps): react_jsx_runtime.JSX.Element;
3076
+ ({ content, children, side, sideOffset, open: controlledOpen, onOpenChange, delayDuration }: TooltipProps): react_jsx_runtime.JSX.Element;
3076
3077
  displayName: string;
3077
3078
  };
3078
3079
 
package/dist/index.js CHANGED
@@ -1218,8 +1218,7 @@ var TextInputContainer = styled("div", {
1218
1218
  marginBottom: "$6",
1219
1219
  FontSize: "$md",
1220
1220
  "&:has(input:focus), &:hover": {
1221
- border: "2px solid $clickpalm_light",
1222
- padding: "calc($4 - 0.9px) calc($4 - 0.9px)"
1221
+ border: "1px solid $clickpalm_light"
1223
1222
  },
1224
1223
  "&:has(input:disabled)": {
1225
1224
  opacity: 0.5,
@@ -1240,8 +1239,7 @@ var TextInputContainer = styled("div", {
1240
1239
  border: "1px solid $danger_dark",
1241
1240
  marginBottom: "0px",
1242
1241
  "&:has(input:focus), &:hover": {
1243
- border: "2px solid $danger_dark",
1244
- padding: "calc($4 - 0.9px) calc($4 - 0.9px)"
1242
+ border: "1px solid $danger_dark"
1245
1243
  }
1246
1244
  }
1247
1245
  },
@@ -1326,9 +1324,22 @@ var CharCounter = styled(Span2, {
1326
1324
  var import_jsx_runtime19 = require("react/jsx-runtime");
1327
1325
  var Input2 = (0, import_react5.forwardRef)(
1328
1326
  ({ prefix, suffix, label, maxLength, showCounter = false, errorMessage, noMargin = false, ...props }, forwardedRef) => {
1329
- const [charCount, setCharCount] = (0, import_react5.useState)(0);
1327
+ const getDisplayValue = (value) => {
1328
+ const stringValue = String(value || "");
1329
+ if (prefix && stringValue.startsWith(prefix)) {
1330
+ return stringValue.substring(prefix.length);
1331
+ }
1332
+ return stringValue;
1333
+ };
1334
+ const [displayValue, setDisplayValue] = (0, import_react5.useState)(getDisplayValue(props.value));
1335
+ const [charCount, setCharCount] = (0, import_react5.useState)((prefix?.length || 0) + getDisplayValue(props.value).length);
1330
1336
  const localInputRef = (0, import_react5.useRef)(null);
1331
1337
  const inputRef = forwardedRef || localInputRef;
1338
+ (0, import_react5.useEffect)(() => {
1339
+ const newDisplayValue = getDisplayValue(props.value);
1340
+ setDisplayValue(newDisplayValue);
1341
+ setCharCount((prefix?.length || 0) + newDisplayValue.length);
1342
+ }, [props.value, prefix]);
1332
1343
  const handleContainerClick = () => {
1333
1344
  inputRef?.current?.focus();
1334
1345
  };
@@ -1355,12 +1366,23 @@ var Input2 = (0, import_react5.forwardRef)(
1355
1366
  {
1356
1367
  ref: inputRef,
1357
1368
  ...props,
1358
- maxLength,
1369
+ value: displayValue,
1370
+ maxLength: maxLength ? maxLength - (prefix?.length || 0) : void 0,
1359
1371
  onChange: (e) => {
1372
+ const currentDisplayValue = e.target.value;
1373
+ setDisplayValue(currentDisplayValue);
1374
+ setCharCount((prefix?.length || 0) + currentDisplayValue.length);
1360
1375
  if (props.onChange) {
1361
- props.onChange(e);
1376
+ const valueWithPrefix = prefix ? prefix + currentDisplayValue : currentDisplayValue;
1377
+ const newEvent = {
1378
+ ...e,
1379
+ target: {
1380
+ ...e.target,
1381
+ value: valueWithPrefix
1382
+ }
1383
+ };
1384
+ props.onChange(newEvent);
1362
1385
  }
1363
- setCharCount(e.target.value.length);
1364
1386
  }
1365
1387
  }
1366
1388
  ),
@@ -1430,7 +1452,8 @@ var SelectOptionsList = styled("ul", {
1430
1452
  fontFamily: theme.fonts.default,
1431
1453
  fontWeight: theme.fontWeights.regular,
1432
1454
  textAlign: "left",
1433
- width: "100%",
1455
+ width: "120px",
1456
+ overflowX: "hidden",
1434
1457
  "&::-webkit-scrollbar": {
1435
1458
  width: "8px"
1436
1459
  },
@@ -1455,6 +1478,14 @@ var SelectOptionItem = styled("li", {
1455
1478
  backgroundColor: theme.colors.gray_background,
1456
1479
  color: theme.colors.clickpalm_mid
1457
1480
  },
1481
+ '&[aria-disabled="true"]': {
1482
+ color: theme.colors.gray_mid,
1483
+ cursor: "not-allowed",
1484
+ "&:hover": {
1485
+ backgroundColor: "transparent",
1486
+ color: theme.colors.gray_mid
1487
+ }
1488
+ },
1458
1489
  variants: {
1459
1490
  selected: {
1460
1491
  true: {
@@ -1539,7 +1570,8 @@ var CustomSelect = ({
1539
1570
  SelectOptionItem,
1540
1571
  {
1541
1572
  selected: option.value === value,
1542
- onClick: () => handleOptionClick(option.value),
1573
+ onClick: () => !option.disabled && handleOptionClick(option.value),
1574
+ "aria-disabled": option.disabled,
1543
1575
  children: option.label
1544
1576
  },
1545
1577
  option.value
@@ -1563,9 +1595,14 @@ function DatePickerSelectAdapter(props) {
1563
1595
  const label = typeof option.label === "string" ? option.label.charAt(0).toUpperCase() + option.label.slice(1) : option.label;
1564
1596
  return {
1565
1597
  label,
1566
- value: option.value?.toString() ?? ""
1598
+ value: option.value?.toString() ?? "",
1599
+ disabled: option.disabled
1567
1600
  };
1568
1601
  }) || [];
1602
+ const isYearDropdown = options && options.length > 0 && typeof options[0].value === "number" && options[0].value > 31;
1603
+ if (isYearDropdown) {
1604
+ selectOptions.reverse();
1605
+ }
1569
1606
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1570
1607
  CustomSelect,
1571
1608
  {
@@ -1671,7 +1708,8 @@ var datePickerStyles = globalCss({
1671
1708
  // src/components/Datepicker/index.tsx
1672
1709
  var import_jsx_runtime22 = require("react/jsx-runtime");
1673
1710
  datePickerStyles();
1674
- var Datepicker = (0, import_react7.forwardRef)(({ label, placeholder, value, onChange, errorMessage }, ref) => {
1711
+ var oneYearMore = new Date((/* @__PURE__ */ new Date()).getFullYear() + 1, 11);
1712
+ var Datepicker = (0, import_react7.forwardRef)(({ label, placeholder, value, onChange, errorMessage, endDate = oneYearMore }, ref) => {
1675
1713
  const [selected, setSelected] = (0, import_react7.useState)(void 0);
1676
1714
  const [month, setMonth] = (0, import_react7.useState)(/* @__PURE__ */ new Date());
1677
1715
  const [open, setOpen] = (0, import_react7.useState)(false);
@@ -1739,7 +1777,7 @@ var Datepicker = (0, import_react7.forwardRef)(({ label, placeholder, value, onC
1739
1777
  showOutsideDays: true,
1740
1778
  captionLayout: "dropdown",
1741
1779
  startMonth: new Date(1915, 0),
1742
- endMonth: /* @__PURE__ */ new Date(),
1780
+ endMonth: endDate,
1743
1781
  components: {
1744
1782
  PreviousMonthButton: (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon, { name: "TriangleLeft", size: 16 }) }),
1745
1783
  NextMonthButton: (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon, { name: "TriangleRight", size: 16 }) }),
@@ -2119,7 +2157,7 @@ var StyledRoot3 = styled(Switch.Root, {
2119
2157
  },
2120
2158
  '&[data-state="unchecked"]': {
2121
2159
  backgroundColor: "$white",
2122
- border: "2px solid $gray_dark"
2160
+ border: "1px solid $gray_dark"
2123
2161
  },
2124
2162
  "&:disabled": {
2125
2163
  opacity: 0.5,
@@ -2131,13 +2169,13 @@ var StyledRoot3 = styled(Switch.Root, {
2131
2169
  variants: {
2132
2170
  hasError: {
2133
2171
  true: {
2134
- border: "2px solid $danger_dark",
2172
+ border: "1px solid $danger_dark",
2135
2173
  marginBottom: "0px",
2136
2174
  "&:focus": {
2137
2175
  outline: "1px solid $danger_dark"
2138
2176
  },
2139
2177
  '&[data-state="unchecked"]': {
2140
- border: "2px solid $danger_dark"
2178
+ border: "1px solid $danger_dark"
2141
2179
  }
2142
2180
  }
2143
2181
  }
@@ -2435,7 +2473,7 @@ var TextAreaElement = styled("textarea", {
2435
2473
  width: "100%",
2436
2474
  "&:focus": {
2437
2475
  outline: 0,
2438
- border: "2px solid $clickpalm_light"
2476
+ border: "1px solid $clickpalm_light"
2439
2477
  },
2440
2478
  "&:disabled": {
2441
2479
  opacity: 0.5,
@@ -2460,10 +2498,10 @@ var TextAreaElement = styled("textarea", {
2460
2498
  variants: {
2461
2499
  hasError: {
2462
2500
  true: {
2463
- border: "1px solid $danger_dark",
2501
+ border: "1px solid $danger",
2464
2502
  marginBottom: "0px",
2465
2503
  "&:focus": {
2466
- border: "2px solid $danger_dark"
2504
+ border: "1px solid $danger_dark"
2467
2505
  }
2468
2506
  }
2469
2507
  },
@@ -2598,18 +2636,32 @@ var TooltipArrow = styled(RadixTooltip.Arrow, {
2598
2636
  });
2599
2637
 
2600
2638
  // src/components/Tooltip/index.tsx
2639
+ var import_react14 = require("react");
2601
2640
  var import_jsx_runtime31 = require("react/jsx-runtime");
2602
2641
  var Tooltip = ({
2603
2642
  content,
2604
2643
  children,
2605
2644
  side = "top",
2606
2645
  sideOffset = 5,
2607
- open,
2646
+ open: controlledOpen,
2608
2647
  onOpenChange,
2609
2648
  delayDuration = 100
2610
2649
  }) => {
2611
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RadixTooltip2.Provider, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(RadixTooltip2.Root, { open, onOpenChange, delayDuration, children: [
2612
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TooltipTrigger, { asChild: true, children }),
2650
+ const [uncontrolledOpen, setUncontrolledOpen] = (0, import_react14.useState)(false);
2651
+ const [isTouchDevice, setIsTouchDevice] = (0, import_react14.useState)(false);
2652
+ (0, import_react14.useEffect)(() => {
2653
+ setIsTouchDevice("ontouchstart" in window || navigator.maxTouchPoints > 0);
2654
+ }, []);
2655
+ const open = controlledOpen ?? uncontrolledOpen;
2656
+ const setOpen = onOpenChange ?? setUncontrolledOpen;
2657
+ const handleClick = (event) => {
2658
+ if (isTouchDevice) {
2659
+ event.preventDefault();
2660
+ setOpen(!open);
2661
+ }
2662
+ };
2663
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RadixTooltip2.Provider, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(RadixTooltip2.Root, { open, onOpenChange: setOpen, delayDuration, children: [
2664
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TooltipTrigger, { asChild: true, onClick: handleClick, children }),
2613
2665
  /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(TooltipContent, { side, sideOffset, children: [
2614
2666
  content,
2615
2667
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TooltipArrow, {})
@@ -2703,7 +2755,7 @@ var Loader = ({ show, fullscreen = false }) => {
2703
2755
  Loader.displayName = "Loader";
2704
2756
 
2705
2757
  // src/components/MaskedInput/index.tsx
2706
- var import_react14 = require("react");
2758
+ var import_react15 = require("react");
2707
2759
 
2708
2760
  // src/components/MaskedInput/utils.ts
2709
2761
  var MAX_LENGTHS = {
@@ -2768,10 +2820,10 @@ var applyMask = (value, maskType) => {
2768
2820
 
2769
2821
  // src/components/MaskedInput/index.tsx
2770
2822
  var import_jsx_runtime33 = require("react/jsx-runtime");
2771
- var MaskedInput = (0, import_react14.forwardRef)(
2823
+ var MaskedInput = (0, import_react15.forwardRef)(
2772
2824
  ({ maskType, onChange, ...props }, ref) => {
2773
- const [value, setValue] = (0, import_react14.useState)("");
2774
- const inputRef = (0, import_react14.useRef)(null);
2825
+ const [value, setValue] = (0, import_react15.useState)("");
2826
+ const inputRef = (0, import_react15.useRef)(null);
2775
2827
  const handleChange = (e) => {
2776
2828
  const { value: inputValue, selectionStart } = e.target;
2777
2829
  const isBackspace = value.length > inputValue.length;
@@ -2819,7 +2871,7 @@ var MaskedInput = (0, import_react14.forwardRef)(
2819
2871
  MaskedInput.displayName = "MaskedInput";
2820
2872
 
2821
2873
  // src/components/Dropdown/index.tsx
2822
- var import_react15 = __toESM(require("react"));
2874
+ var import_react16 = __toESM(require("react"));
2823
2875
  var DropdownMenu2 = __toESM(require("@radix-ui/react-dropdown-menu"));
2824
2876
 
2825
2877
  // src/components/Dropdown/styles.ts
@@ -2907,17 +2959,17 @@ var IconButton = styled("button", {
2907
2959
  // src/components/Dropdown/index.tsx
2908
2960
  var import_jsx_runtime34 = require("react/jsx-runtime");
2909
2961
  var Dropdown = ({ children }) => {
2910
- const childrenArray = import_react15.Children.toArray(children);
2962
+ const childrenArray = import_react16.Children.toArray(children);
2911
2963
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(DropdownMenu2.Root, { children: [
2912
2964
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { name: "Dots", size: 16 }) }) }),
2913
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DropdownMenu2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StyledContent2, { sideOffset: 5, align: "end", children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react15.Fragment, { children: [
2965
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DropdownMenu2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StyledContent2, { sideOffset: 5, align: "end", children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react16.Fragment, { children: [
2914
2966
  child,
2915
2967
  index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DropdownSeparator, {})
2916
2968
  ] }, index)) }) })
2917
2969
  ] });
2918
2970
  };
2919
2971
  var DropdownSeparator = StyledSeparator;
2920
- var DropdownItem = import_react15.default.forwardRef(({ children, ...props }, forwardedRef) => {
2972
+ var DropdownItem = import_react16.default.forwardRef(({ children, ...props }, forwardedRef) => {
2921
2973
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StyledItem2, { ...props, ref: forwardedRef, children });
2922
2974
  });
2923
2975
  Dropdown.displayName = "Dropdown";
@@ -2999,7 +3051,7 @@ var Paragraph = (props) => {
2999
3051
  Paragraph.displayName = "Paragraph";
3000
3052
 
3001
3053
  // src/components/Heading.tsx
3002
- var import_react16 = require("react");
3054
+ var import_react17 = require("react");
3003
3055
  var import_jsx_runtime37 = require("react/jsx-runtime");
3004
3056
  var StyledHeading = styled("h2", {
3005
3057
  fontFamily: "$default",
@@ -3022,7 +3074,7 @@ var StyledHeading = styled("h2", {
3022
3074
  size: "md"
3023
3075
  }
3024
3076
  });
3025
- var Heading = (0, import_react16.forwardRef)(function Heading2({ children, ...props }, ref) {
3077
+ var Heading = (0, import_react17.forwardRef)(function Heading2({ children, ...props }, ref) {
3026
3078
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(StyledHeading, { ref, ...props, children });
3027
3079
  });
3028
3080
  Heading.displayName = "Heading";
@@ -3030,7 +3082,7 @@ Heading.displayName = "Heading";
3030
3082
  // src/components/Select/index.tsx
3031
3083
  var import_react_icons2 = require("@radix-ui/react-icons");
3032
3084
  var CustomSelect2 = __toESM(require("@radix-ui/react-select"));
3033
- var import_react17 = require("react");
3085
+ var import_react18 = require("react");
3034
3086
 
3035
3087
  // src/components/Select/styles.ts
3036
3088
  var Select = __toESM(require("@radix-ui/react-select"));
@@ -3066,8 +3118,7 @@ var StyledTrigger = styled(Select.Trigger, {
3066
3118
  },
3067
3119
  "&[data-highlighted], &:focus, &:hover": {
3068
3120
  outline: "none",
3069
- border: "2px solid $clickpalm_light",
3070
- padding: "calc(0.92rem - 0.9px) calc($4 - 0.9px)"
3121
+ border: "1px solid $clickpalm_light"
3071
3122
  },
3072
3123
  "&:disabled": {
3073
3124
  opacity: 0.5,
@@ -3080,8 +3131,7 @@ var StyledTrigger = styled(Select.Trigger, {
3080
3131
  marginBottom: "0px",
3081
3132
  "&[data-highlighted], &:focus, &:hover": {
3082
3133
  outline: "none",
3083
- border: "2px solid $danger_dark",
3084
- padding: "calc(0.92rem - 0.9px) calc($4 - 0.9px)"
3134
+ border: "1px solid $danger_dark"
3085
3135
  }
3086
3136
  }
3087
3137
  }
@@ -3165,7 +3215,7 @@ var Span6 = styled("span", {
3165
3215
 
3166
3216
  // src/components/Select/index.tsx
3167
3217
  var import_jsx_runtime38 = require("react/jsx-runtime");
3168
- var Select2 = (0, import_react17.forwardRef)(
3218
+ var Select2 = (0, import_react18.forwardRef)(
3169
3219
  ({
3170
3220
  value,
3171
3221
  onValueChange,
@@ -3178,7 +3228,7 @@ var Select2 = (0, import_react17.forwardRef)(
3178
3228
  style,
3179
3229
  ...rest
3180
3230
  }, ref) => {
3181
- const [open, setOpen] = (0, import_react17.useState)(false);
3231
+ const [open, setOpen] = (0, import_react18.useState)(false);
3182
3232
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(StyledWrapper4, { css: css2, className, style, children: [
3183
3233
  label && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Label3, { children: label }),
3184
3234
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
@@ -3208,7 +3258,7 @@ var Select2 = (0, import_react17.forwardRef)(
3208
3258
  Select2.displayName = "Select";
3209
3259
 
3210
3260
  // src/components/LabelledValue/index.tsx
3211
- var import_react18 = require("react");
3261
+ var import_react19 = require("react");
3212
3262
 
3213
3263
  // src/components/LabelledValue/styles.ts
3214
3264
  var Container = styled("div", {
@@ -3271,9 +3321,9 @@ var Value2 = styled("div", {
3271
3321
  // src/components/LabelledValue/index.tsx
3272
3322
  var import_jsx_runtime39 = require("react/jsx-runtime");
3273
3323
  function LabelledValue({ position = "vertical", withRow = false, children }) {
3274
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Container, { position, children: import_react18.Children.map(children, (child) => {
3275
- if ((0, import_react18.isValidElement)(child)) {
3276
- return (0, import_react18.cloneElement)(child, { position, withRow });
3324
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Container, { position, children: import_react19.Children.map(children, (child) => {
3325
+ if ((0, import_react19.isValidElement)(child)) {
3326
+ return (0, import_react19.cloneElement)(child, { position, withRow });
3277
3327
  }
3278
3328
  return child;
3279
3329
  }) });
@@ -3869,7 +3919,7 @@ var MultiStep = ({
3869
3919
  MultiStep.displayName = "MultiStep";
3870
3920
 
3871
3921
  // src/components/Carousel/index.tsx
3872
- var import_react19 = require("react");
3922
+ var import_react20 = require("react");
3873
3923
 
3874
3924
  // src/components/Carousel/styles.ts
3875
3925
  var CarouselContainer = styled("div", {
@@ -3980,10 +4030,10 @@ var CarouselItemContainer = styled("div", {
3980
4030
  var import_jsx_runtime43 = require("react/jsx-runtime");
3981
4031
  var SWIPE_THRESHOLD = 50;
3982
4032
  var Carousel = ({ title, variant, children }) => {
3983
- const items = import_react19.Children.toArray(children);
3984
- const [activeIndex, setActiveIndex] = (0, import_react19.useState)(0);
3985
- const [touchStartX, setTouchStartX] = (0, import_react19.useState)(null);
3986
- const [touchEndX, setTouchEndX] = (0, import_react19.useState)(null);
4033
+ const items = import_react20.Children.toArray(children);
4034
+ const [activeIndex, setActiveIndex] = (0, import_react20.useState)(0);
4035
+ const [touchStartX, setTouchStartX] = (0, import_react20.useState)(null);
4036
+ const [touchEndX, setTouchEndX] = (0, import_react20.useState)(null);
3987
4037
  const prev = () => {
3988
4038
  setActiveIndex((prevIndex) => prevIndex === 0 ? items.length - 1 : prevIndex - 1);
3989
4039
  };
@@ -4056,7 +4106,7 @@ var Carousel = ({ title, variant, children }) => {
4056
4106
  onTouchMove,
4057
4107
  onTouchEnd,
4058
4108
  children: items.map(
4059
- (child, index) => (0, import_react19.cloneElement)(child, {
4109
+ (child, index) => (0, import_react20.cloneElement)(child, {
4060
4110
  "aria-hidden": index !== activeIndex,
4061
4111
  style: {
4062
4112
  display: index === activeIndex ? "block" : "none"
@@ -4087,7 +4137,7 @@ var CarouselItem = ({ children, style, ...props }) => /* @__PURE__ */ (0, import
4087
4137
  Carousel.Item = CarouselItem;
4088
4138
 
4089
4139
  // src/components/PasswordInput.tsx
4090
- var import_react20 = require("react");
4140
+ var import_react21 = require("react");
4091
4141
  var import_jsx_runtime44 = require("react/jsx-runtime");
4092
4142
  var ToggleButton = styled("button", {
4093
4143
  all: "unset",
@@ -4103,11 +4153,11 @@ var ToggleButton = styled("button", {
4103
4153
  borderRadius: "$sm"
4104
4154
  }
4105
4155
  });
4106
- var PasswordInput = (0, import_react20.forwardRef)(
4156
+ var PasswordInput = (0, import_react21.forwardRef)(
4107
4157
  ({ value, onChange, ...props }, ref) => {
4108
- const [visible, setVisible] = (0, import_react20.useState)(false);
4109
- const innerRef = (0, import_react20.useRef)(null);
4110
- (0, import_react20.useImperativeHandle)(ref, () => innerRef.current);
4158
+ const [visible, setVisible] = (0, import_react21.useState)(false);
4159
+ const innerRef = (0, import_react21.useRef)(null);
4160
+ (0, import_react21.useImperativeHandle)(ref, () => innerRef.current);
4111
4161
  const handleToggleVisibility = () => {
4112
4162
  setVisible((v) => !v);
4113
4163
  setTimeout(() => {
@@ -4143,7 +4193,7 @@ PasswordInput.displayName = "PasswordInput";
4143
4193
 
4144
4194
  // src/components/Accordion/index.tsx
4145
4195
  var RadixAccordion = __toESM(require("@radix-ui/react-accordion"));
4146
- var import_react21 = __toESM(require("react"));
4196
+ var import_react22 = __toESM(require("react"));
4147
4197
 
4148
4198
  // src/components/Accordion/styles.ts
4149
4199
  var Accordion = __toESM(require("@radix-ui/react-accordion"));
@@ -4171,19 +4221,24 @@ var AccordionHeader = styled(Accordion.Header, {
4171
4221
  display: "flex",
4172
4222
  alignItems: "center",
4173
4223
  justifyContent: "space-between",
4174
- padding: "0 $5"
4224
+ padding: "0 $5",
4225
+ gap: "$2"
4175
4226
  });
4176
4227
  var AccordionTrigger = styled(Accordion.Trigger, {
4177
4228
  all: "unset",
4178
- fontFamily: "$default",
4179
4229
  backgroundColor: "transparent",
4180
4230
  display: "flex",
4181
4231
  alignItems: "center",
4232
+ fontFamily: "$default",
4233
+ fontWeight: "$bold",
4182
4234
  fontSize: "$md",
4183
4235
  lineHeight: "$regular",
4236
+ textAlign: "left",
4184
4237
  color: "$black",
4185
- fontWeight: "$bold",
4186
4238
  width: "100%",
4239
+ flexWrap: "wrap",
4240
+ wordBreak: "break-word",
4241
+ whiteSpace: "normal",
4187
4242
  "&:hover": {
4188
4243
  cursor: "pointer"
4189
4244
  },
@@ -4225,7 +4280,7 @@ var OptionsButton = styled(Button, {
4225
4280
 
4226
4281
  // src/components/Accordion/index.tsx
4227
4282
  var import_jsx_runtime45 = require("react/jsx-runtime");
4228
- var Accordion2 = import_react21.default.forwardRef(
4283
+ var Accordion2 = import_react22.default.forwardRef(
4229
4284
  ({ title, children, dropdownItems }, ref) => {
4230
4285
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(AccordionContainer, { type: "single", collapsible: true, ref, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AccordionItem, { value: "item-1", children: [
4231
4286
  /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(AccordionHeader, { children: [
package/dist/index.mjs CHANGED
@@ -1117,12 +1117,12 @@ Checkbox2.displayName = "Checkbox";
1117
1117
  // src/components/Datepicker/index.tsx
1118
1118
  import { format as format2 } from "date-fns";
1119
1119
  import { ptBR as ptBR2 } from "date-fns/locale";
1120
- import { forwardRef as forwardRef4, useEffect as useEffect3, useImperativeHandle, useRef as useRef4, useState as useState4 } from "react";
1120
+ import { forwardRef as forwardRef4, useEffect as useEffect4, useImperativeHandle, useRef as useRef4, useState as useState4 } from "react";
1121
1121
  import { DayPicker as DayPicker2 } from "react-day-picker";
1122
1122
  import "react-day-picker/dist/style.css";
1123
1123
 
1124
1124
  // src/components/Input/index.tsx
1125
- import React, { forwardRef as forwardRef3, useRef as useRef2, useState as useState2 } from "react";
1125
+ import React, { forwardRef as forwardRef3, useEffect as useEffect2, useRef as useRef2, useState as useState2 } from "react";
1126
1126
 
1127
1127
  // src/components/Input/styles.ts
1128
1128
  var StyledWrapper2 = styled("div", {
@@ -1148,8 +1148,7 @@ var TextInputContainer = styled("div", {
1148
1148
  marginBottom: "$6",
1149
1149
  FontSize: "$md",
1150
1150
  "&:has(input:focus), &:hover": {
1151
- border: "2px solid $clickpalm_light",
1152
- padding: "calc($4 - 0.9px) calc($4 - 0.9px)"
1151
+ border: "1px solid $clickpalm_light"
1153
1152
  },
1154
1153
  "&:has(input:disabled)": {
1155
1154
  opacity: 0.5,
@@ -1170,8 +1169,7 @@ var TextInputContainer = styled("div", {
1170
1169
  border: "1px solid $danger_dark",
1171
1170
  marginBottom: "0px",
1172
1171
  "&:has(input:focus), &:hover": {
1173
- border: "2px solid $danger_dark",
1174
- padding: "calc($4 - 0.9px) calc($4 - 0.9px)"
1172
+ border: "1px solid $danger_dark"
1175
1173
  }
1176
1174
  }
1177
1175
  },
@@ -1256,9 +1254,22 @@ var CharCounter = styled(Span2, {
1256
1254
  import { jsx as jsx19, jsxs as jsxs4 } from "react/jsx-runtime";
1257
1255
  var Input2 = forwardRef3(
1258
1256
  ({ prefix, suffix, label, maxLength, showCounter = false, errorMessage, noMargin = false, ...props }, forwardedRef) => {
1259
- const [charCount, setCharCount] = useState2(0);
1257
+ const getDisplayValue = (value) => {
1258
+ const stringValue = String(value || "");
1259
+ if (prefix && stringValue.startsWith(prefix)) {
1260
+ return stringValue.substring(prefix.length);
1261
+ }
1262
+ return stringValue;
1263
+ };
1264
+ const [displayValue, setDisplayValue] = useState2(getDisplayValue(props.value));
1265
+ const [charCount, setCharCount] = useState2((prefix?.length || 0) + getDisplayValue(props.value).length);
1260
1266
  const localInputRef = useRef2(null);
1261
1267
  const inputRef = forwardedRef || localInputRef;
1268
+ useEffect2(() => {
1269
+ const newDisplayValue = getDisplayValue(props.value);
1270
+ setDisplayValue(newDisplayValue);
1271
+ setCharCount((prefix?.length || 0) + newDisplayValue.length);
1272
+ }, [props.value, prefix]);
1262
1273
  const handleContainerClick = () => {
1263
1274
  inputRef?.current?.focus();
1264
1275
  };
@@ -1285,12 +1296,23 @@ var Input2 = forwardRef3(
1285
1296
  {
1286
1297
  ref: inputRef,
1287
1298
  ...props,
1288
- maxLength,
1299
+ value: displayValue,
1300
+ maxLength: maxLength ? maxLength - (prefix?.length || 0) : void 0,
1289
1301
  onChange: (e) => {
1302
+ const currentDisplayValue = e.target.value;
1303
+ setDisplayValue(currentDisplayValue);
1304
+ setCharCount((prefix?.length || 0) + currentDisplayValue.length);
1290
1305
  if (props.onChange) {
1291
- props.onChange(e);
1306
+ const valueWithPrefix = prefix ? prefix + currentDisplayValue : currentDisplayValue;
1307
+ const newEvent = {
1308
+ ...e,
1309
+ target: {
1310
+ ...e.target,
1311
+ value: valueWithPrefix
1312
+ }
1313
+ };
1314
+ props.onChange(newEvent);
1292
1315
  }
1293
- setCharCount(e.target.value.length);
1294
1316
  }
1295
1317
  }
1296
1318
  ),
@@ -1312,7 +1334,7 @@ var Input2 = forwardRef3(
1312
1334
  Input2.displayName = "Input";
1313
1335
 
1314
1336
  // src/components/Datepicker/CustomSelect/index.tsx
1315
- import { useEffect as useEffect2, useRef as useRef3, useState as useState3 } from "react";
1337
+ import { useEffect as useEffect3, useRef as useRef3, useState as useState3 } from "react";
1316
1338
 
1317
1339
  // src/components/Datepicker/CustomSelect/styles.ts
1318
1340
  var IconWrapper = styled("span", {
@@ -1360,7 +1382,8 @@ var SelectOptionsList = styled("ul", {
1360
1382
  fontFamily: theme.fonts.default,
1361
1383
  fontWeight: theme.fontWeights.regular,
1362
1384
  textAlign: "left",
1363
- width: "100%",
1385
+ width: "120px",
1386
+ overflowX: "hidden",
1364
1387
  "&::-webkit-scrollbar": {
1365
1388
  width: "8px"
1366
1389
  },
@@ -1385,6 +1408,14 @@ var SelectOptionItem = styled("li", {
1385
1408
  backgroundColor: theme.colors.gray_background,
1386
1409
  color: theme.colors.clickpalm_mid
1387
1410
  },
1411
+ '&[aria-disabled="true"]': {
1412
+ color: theme.colors.gray_mid,
1413
+ cursor: "not-allowed",
1414
+ "&:hover": {
1415
+ backgroundColor: "transparent",
1416
+ color: theme.colors.gray_mid
1417
+ }
1418
+ },
1388
1419
  variants: {
1389
1420
  selected: {
1390
1421
  true: {
@@ -1447,7 +1478,7 @@ var CustomSelect = ({
1447
1478
  }
1448
1479
  setIsOpen(false);
1449
1480
  };
1450
- useEffect2(() => {
1481
+ useEffect3(() => {
1451
1482
  const handleClickOutside = (event) => {
1452
1483
  if (selectRef.current && !selectRef.current.contains(event.target)) {
1453
1484
  setIsOpen(false);
@@ -1469,7 +1500,8 @@ var CustomSelect = ({
1469
1500
  SelectOptionItem,
1470
1501
  {
1471
1502
  selected: option.value === value,
1472
- onClick: () => handleOptionClick(option.value),
1503
+ onClick: () => !option.disabled && handleOptionClick(option.value),
1504
+ "aria-disabled": option.disabled,
1473
1505
  children: option.label
1474
1506
  },
1475
1507
  option.value
@@ -1493,9 +1525,14 @@ function DatePickerSelectAdapter(props) {
1493
1525
  const label = typeof option.label === "string" ? option.label.charAt(0).toUpperCase() + option.label.slice(1) : option.label;
1494
1526
  return {
1495
1527
  label,
1496
- value: option.value?.toString() ?? ""
1528
+ value: option.value?.toString() ?? "",
1529
+ disabled: option.disabled
1497
1530
  };
1498
1531
  }) || [];
1532
+ const isYearDropdown = options && options.length > 0 && typeof options[0].value === "number" && options[0].value > 31;
1533
+ if (isYearDropdown) {
1534
+ selectOptions.reverse();
1535
+ }
1499
1536
  return /* @__PURE__ */ jsx21(
1500
1537
  CustomSelect,
1501
1538
  {
@@ -1601,7 +1638,8 @@ var datePickerStyles = globalCss({
1601
1638
  // src/components/Datepicker/index.tsx
1602
1639
  import { jsx as jsx22, jsxs as jsxs6 } from "react/jsx-runtime";
1603
1640
  datePickerStyles();
1604
- var Datepicker = forwardRef4(({ label, placeholder, value, onChange, errorMessage }, ref) => {
1641
+ var oneYearMore = new Date((/* @__PURE__ */ new Date()).getFullYear() + 1, 11);
1642
+ var Datepicker = forwardRef4(({ label, placeholder, value, onChange, errorMessage, endDate = oneYearMore }, ref) => {
1605
1643
  const [selected, setSelected] = useState4(void 0);
1606
1644
  const [month, setMonth] = useState4(/* @__PURE__ */ new Date());
1607
1645
  const [open, setOpen] = useState4(false);
@@ -1616,7 +1654,7 @@ var Datepicker = forwardRef4(({ label, placeholder, value, onChange, errorMessag
1616
1654
  }
1617
1655
  setOpen(false);
1618
1656
  };
1619
- useEffect3(() => {
1657
+ useEffect4(() => {
1620
1658
  const handleClickOutside = (event) => {
1621
1659
  if (calendarRef.current && !calendarRef.current.contains(event.target) && inputRef.current && !inputRef.current.contains(event.target)) {
1622
1660
  setOpen(false);
@@ -1625,7 +1663,7 @@ var Datepicker = forwardRef4(({ label, placeholder, value, onChange, errorMessag
1625
1663
  document.addEventListener("mousedown", handleClickOutside);
1626
1664
  return () => document.removeEventListener("mousedown", handleClickOutside);
1627
1665
  }, []);
1628
- useEffect3(() => {
1666
+ useEffect4(() => {
1629
1667
  if (!open && selected) {
1630
1668
  setMonth(selected);
1631
1669
  }
@@ -1669,7 +1707,7 @@ var Datepicker = forwardRef4(({ label, placeholder, value, onChange, errorMessag
1669
1707
  showOutsideDays: true,
1670
1708
  captionLayout: "dropdown",
1671
1709
  startMonth: new Date(1915, 0),
1672
- endMonth: /* @__PURE__ */ new Date(),
1710
+ endMonth: endDate,
1673
1711
  components: {
1674
1712
  PreviousMonthButton: (props) => /* @__PURE__ */ jsx22(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ jsx22(Icon, { name: "TriangleLeft", size: 16 }) }),
1675
1713
  NextMonthButton: (props) => /* @__PURE__ */ jsx22(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ jsx22(Icon, { name: "TriangleRight", size: 16 }) }),
@@ -1798,7 +1836,7 @@ var Modal = ({ open, onOpenChange, title, description, children }) => {
1798
1836
  };
1799
1837
 
1800
1838
  // src/components/ProgressBar/index.tsx
1801
- import { useEffect as useEffect4, useState as useState5 } from "react";
1839
+ import { useEffect as useEffect5, useState as useState5 } from "react";
1802
1840
 
1803
1841
  // src/components/ProgressBar/styles.ts
1804
1842
  import * as Progress from "@radix-ui/react-progress";
@@ -1831,7 +1869,7 @@ var StyledIndicator = styled(Progress.Indicator, {
1831
1869
  import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
1832
1870
  var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
1833
1871
  const [progress2, setProgress] = useState5(0);
1834
- useEffect4(() => {
1872
+ useEffect5(() => {
1835
1873
  const timer = setTimeout(() => setProgress(value), 500);
1836
1874
  return () => clearTimeout(timer);
1837
1875
  }, [value]);
@@ -2049,7 +2087,7 @@ var StyledRoot3 = styled(Switch.Root, {
2049
2087
  },
2050
2088
  '&[data-state="unchecked"]': {
2051
2089
  backgroundColor: "$white",
2052
- border: "2px solid $gray_dark"
2090
+ border: "1px solid $gray_dark"
2053
2091
  },
2054
2092
  "&:disabled": {
2055
2093
  opacity: 0.5,
@@ -2061,13 +2099,13 @@ var StyledRoot3 = styled(Switch.Root, {
2061
2099
  variants: {
2062
2100
  hasError: {
2063
2101
  true: {
2064
- border: "2px solid $danger_dark",
2102
+ border: "1px solid $danger_dark",
2065
2103
  marginBottom: "0px",
2066
2104
  "&:focus": {
2067
2105
  outline: "1px solid $danger_dark"
2068
2106
  },
2069
2107
  '&[data-state="unchecked"]': {
2070
- border: "2px solid $danger_dark"
2108
+ border: "1px solid $danger_dark"
2071
2109
  }
2072
2110
  }
2073
2111
  }
@@ -2365,7 +2403,7 @@ var TextAreaElement = styled("textarea", {
2365
2403
  width: "100%",
2366
2404
  "&:focus": {
2367
2405
  outline: 0,
2368
- border: "2px solid $clickpalm_light"
2406
+ border: "1px solid $clickpalm_light"
2369
2407
  },
2370
2408
  "&:disabled": {
2371
2409
  opacity: 0.5,
@@ -2390,10 +2428,10 @@ var TextAreaElement = styled("textarea", {
2390
2428
  variants: {
2391
2429
  hasError: {
2392
2430
  true: {
2393
- border: "1px solid $danger_dark",
2431
+ border: "1px solid $danger",
2394
2432
  marginBottom: "0px",
2395
2433
  "&:focus": {
2396
- border: "2px solid $danger_dark"
2434
+ border: "1px solid $danger_dark"
2397
2435
  }
2398
2436
  }
2399
2437
  },
@@ -2528,18 +2566,32 @@ var TooltipArrow = styled(RadixTooltip.Arrow, {
2528
2566
  });
2529
2567
 
2530
2568
  // src/components/Tooltip/index.tsx
2569
+ import { useState as useState8, useEffect as useEffect6 } from "react";
2531
2570
  import { jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
2532
2571
  var Tooltip = ({
2533
2572
  content,
2534
2573
  children,
2535
2574
  side = "top",
2536
2575
  sideOffset = 5,
2537
- open,
2576
+ open: controlledOpen,
2538
2577
  onOpenChange,
2539
2578
  delayDuration = 100
2540
2579
  }) => {
2541
- return /* @__PURE__ */ jsx31(RadixTooltip2.Provider, { children: /* @__PURE__ */ jsxs13(RadixTooltip2.Root, { open, onOpenChange, delayDuration, children: [
2542
- /* @__PURE__ */ jsx31(TooltipTrigger, { asChild: true, children }),
2580
+ const [uncontrolledOpen, setUncontrolledOpen] = useState8(false);
2581
+ const [isTouchDevice, setIsTouchDevice] = useState8(false);
2582
+ useEffect6(() => {
2583
+ setIsTouchDevice("ontouchstart" in window || navigator.maxTouchPoints > 0);
2584
+ }, []);
2585
+ const open = controlledOpen ?? uncontrolledOpen;
2586
+ const setOpen = onOpenChange ?? setUncontrolledOpen;
2587
+ const handleClick = (event) => {
2588
+ if (isTouchDevice) {
2589
+ event.preventDefault();
2590
+ setOpen(!open);
2591
+ }
2592
+ };
2593
+ return /* @__PURE__ */ jsx31(RadixTooltip2.Provider, { children: /* @__PURE__ */ jsxs13(RadixTooltip2.Root, { open, onOpenChange: setOpen, delayDuration, children: [
2594
+ /* @__PURE__ */ jsx31(TooltipTrigger, { asChild: true, onClick: handleClick, children }),
2543
2595
  /* @__PURE__ */ jsxs13(TooltipContent, { side, sideOffset, children: [
2544
2596
  content,
2545
2597
  /* @__PURE__ */ jsx31(TooltipArrow, {})
@@ -2633,7 +2685,7 @@ var Loader = ({ show, fullscreen = false }) => {
2633
2685
  Loader.displayName = "Loader";
2634
2686
 
2635
2687
  // src/components/MaskedInput/index.tsx
2636
- import { forwardRef as forwardRef9, useState as useState8, useRef as useRef6 } from "react";
2688
+ import { forwardRef as forwardRef9, useState as useState9, useRef as useRef6 } from "react";
2637
2689
 
2638
2690
  // src/components/MaskedInput/utils.ts
2639
2691
  var MAX_LENGTHS = {
@@ -2700,7 +2752,7 @@ var applyMask = (value, maskType) => {
2700
2752
  import { jsx as jsx33 } from "react/jsx-runtime";
2701
2753
  var MaskedInput = forwardRef9(
2702
2754
  ({ maskType, onChange, ...props }, ref) => {
2703
- const [value, setValue] = useState8("");
2755
+ const [value, setValue] = useState9("");
2704
2756
  const inputRef = useRef6(null);
2705
2757
  const handleChange = (e) => {
2706
2758
  const { value: inputValue, selectionStart } = e.target;
@@ -2960,7 +3012,7 @@ Heading.displayName = "Heading";
2960
3012
  // src/components/Select/index.tsx
2961
3013
  import { TriangleDownIcon, TriangleUpIcon } from "@radix-ui/react-icons";
2962
3014
  import * as CustomSelect2 from "@radix-ui/react-select";
2963
- import { forwardRef as forwardRef11, useState as useState9 } from "react";
3015
+ import { forwardRef as forwardRef11, useState as useState10 } from "react";
2964
3016
 
2965
3017
  // src/components/Select/styles.ts
2966
3018
  import * as Select from "@radix-ui/react-select";
@@ -2996,8 +3048,7 @@ var StyledTrigger = styled(Select.Trigger, {
2996
3048
  },
2997
3049
  "&[data-highlighted], &:focus, &:hover": {
2998
3050
  outline: "none",
2999
- border: "2px solid $clickpalm_light",
3000
- padding: "calc(0.92rem - 0.9px) calc($4 - 0.9px)"
3051
+ border: "1px solid $clickpalm_light"
3001
3052
  },
3002
3053
  "&:disabled": {
3003
3054
  opacity: 0.5,
@@ -3010,8 +3061,7 @@ var StyledTrigger = styled(Select.Trigger, {
3010
3061
  marginBottom: "0px",
3011
3062
  "&[data-highlighted], &:focus, &:hover": {
3012
3063
  outline: "none",
3013
- border: "2px solid $danger_dark",
3014
- padding: "calc(0.92rem - 0.9px) calc($4 - 0.9px)"
3064
+ border: "1px solid $danger_dark"
3015
3065
  }
3016
3066
  }
3017
3067
  }
@@ -3108,7 +3158,7 @@ var Select2 = forwardRef11(
3108
3158
  style,
3109
3159
  ...rest
3110
3160
  }, ref) => {
3111
- const [open, setOpen] = useState9(false);
3161
+ const [open, setOpen] = useState10(false);
3112
3162
  return /* @__PURE__ */ jsxs15(StyledWrapper4, { css: css2, className, style, children: [
3113
3163
  label && /* @__PURE__ */ jsx38(Label3, { children: label }),
3114
3164
  /* @__PURE__ */ jsxs15(
@@ -3803,7 +3853,7 @@ var MultiStep = ({
3803
3853
  MultiStep.displayName = "MultiStep";
3804
3854
 
3805
3855
  // src/components/Carousel/index.tsx
3806
- import { useState as useState11, Children as Children4, cloneElement as cloneElement2 } from "react";
3856
+ import { useState as useState12, Children as Children4, cloneElement as cloneElement2 } from "react";
3807
3857
 
3808
3858
  // src/components/Carousel/styles.ts
3809
3859
  var CarouselContainer = styled("div", {
@@ -3915,9 +3965,9 @@ import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
3915
3965
  var SWIPE_THRESHOLD = 50;
3916
3966
  var Carousel = ({ title, variant, children }) => {
3917
3967
  const items = Children4.toArray(children);
3918
- const [activeIndex, setActiveIndex] = useState11(0);
3919
- const [touchStartX, setTouchStartX] = useState11(null);
3920
- const [touchEndX, setTouchEndX] = useState11(null);
3968
+ const [activeIndex, setActiveIndex] = useState12(0);
3969
+ const [touchStartX, setTouchStartX] = useState12(null);
3970
+ const [touchEndX, setTouchEndX] = useState12(null);
3921
3971
  const prev = () => {
3922
3972
  setActiveIndex((prevIndex) => prevIndex === 0 ? items.length - 1 : prevIndex - 1);
3923
3973
  };
@@ -4021,7 +4071,7 @@ var CarouselItem = ({ children, style, ...props }) => /* @__PURE__ */ jsx43(Caro
4021
4071
  Carousel.Item = CarouselItem;
4022
4072
 
4023
4073
  // src/components/PasswordInput.tsx
4024
- import { forwardRef as forwardRef12, useImperativeHandle as useImperativeHandle2, useRef as useRef7, useState as useState12 } from "react";
4074
+ import { forwardRef as forwardRef12, useImperativeHandle as useImperativeHandle2, useRef as useRef7, useState as useState13 } from "react";
4025
4075
  import { jsx as jsx44 } from "react/jsx-runtime";
4026
4076
  var ToggleButton = styled("button", {
4027
4077
  all: "unset",
@@ -4039,7 +4089,7 @@ var ToggleButton = styled("button", {
4039
4089
  });
4040
4090
  var PasswordInput = forwardRef12(
4041
4091
  ({ value, onChange, ...props }, ref) => {
4042
- const [visible, setVisible] = useState12(false);
4092
+ const [visible, setVisible] = useState13(false);
4043
4093
  const innerRef = useRef7(null);
4044
4094
  useImperativeHandle2(ref, () => innerRef.current);
4045
4095
  const handleToggleVisibility = () => {
@@ -4105,19 +4155,24 @@ var AccordionHeader = styled(Accordion.Header, {
4105
4155
  display: "flex",
4106
4156
  alignItems: "center",
4107
4157
  justifyContent: "space-between",
4108
- padding: "0 $5"
4158
+ padding: "0 $5",
4159
+ gap: "$2"
4109
4160
  });
4110
4161
  var AccordionTrigger = styled(Accordion.Trigger, {
4111
4162
  all: "unset",
4112
- fontFamily: "$default",
4113
4163
  backgroundColor: "transparent",
4114
4164
  display: "flex",
4115
4165
  alignItems: "center",
4166
+ fontFamily: "$default",
4167
+ fontWeight: "$bold",
4116
4168
  fontSize: "$md",
4117
4169
  lineHeight: "$regular",
4170
+ textAlign: "left",
4118
4171
  color: "$black",
4119
- fontWeight: "$bold",
4120
4172
  width: "100%",
4173
+ flexWrap: "wrap",
4174
+ wordBreak: "break-word",
4175
+ whiteSpace: "normal",
4121
4176
  "&:hover": {
4122
4177
  cursor: "pointer"
4123
4178
  },
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Design System da Clikpalm",
4
4
  "author": "Enisson Shilo",
5
5
  "license": "MIT",
6
- "version": "1.3.1",
6
+ "version": "1.3.3",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/clickpalm/clickpalm-designsystem-lib.git"