@agility/plenum-ui 2.0.0-rc11 → 2.0.0-rc13

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
@@ -5141,8 +5141,8 @@ var InputField = (_a) => {
5141
5141
  handleChange,
5142
5142
  required,
5143
5143
  clientSideCheck = true,
5144
- placeholder,
5145
5144
  className,
5145
+ placeholder,
5146
5146
  ref
5147
5147
  } = _b, rest = __objRest(_b, [
5148
5148
  "type",
@@ -5156,26 +5156,26 @@ var InputField = (_a) => {
5156
5156
  "handleChange",
5157
5157
  "required",
5158
5158
  "clientSideCheck",
5159
- "placeholder",
5160
5159
  "className",
5160
+ "placeholder",
5161
5161
  "ref"
5162
5162
  ]);
5163
5163
  return /* @__PURE__ */ React11.createElement(
5164
5164
  "input",
5165
5165
  __spreadValues({}, __spreadValues({
5166
+ ref,
5166
5167
  type,
5167
5168
  id: id2,
5168
- ref,
5169
5169
  name,
5170
5170
  value,
5171
5171
  onChange: (e) => {
5172
- console.log(e);
5173
- handleChange(e.target.value);
5172
+ if (handleChange)
5173
+ handleChange(e.target.value);
5174
5174
  },
5175
5175
  autoFocus: isFocused,
5176
5176
  readOnly: isReadonly,
5177
5177
  disabled: isDisabled,
5178
- placeholder: placeholder || " ",
5178
+ placeholder: placeholder || void 0,
5179
5179
  required,
5180
5180
  "aria-invalid": isError,
5181
5181
  "aria-disabled": isDisabled,
@@ -5435,7 +5435,33 @@ var Textarea = (_a) => {
5435
5435
  }, [externalValue]);
5436
5436
  if (!id2)
5437
5437
  id2 = `ta-${uniqueID}`;
5438
- return /* @__PURE__ */ React16.createElement("div", null, label && /* @__PURE__ */ React16.createElement(
5438
+ if (!label) {
5439
+ return /* @__PURE__ */ React16.createElement(
5440
+ "textarea",
5441
+ __spreadValues({
5442
+ ref,
5443
+ maxLength,
5444
+ onChange: handleOnchange,
5445
+ rows,
5446
+ name,
5447
+ id: id2,
5448
+ cols,
5449
+ className: cn16(
5450
+ "peer block w-full rounded focus:border-purple-500 focus:ring-purple-500 sm:text-sm",
5451
+ { "border-gray-300 ": !isError },
5452
+ {
5453
+ "border-red-500 outline-red-500 focus:ring-red-500": isError
5454
+ },
5455
+ className
5456
+ ),
5457
+ disabled: isDisabled,
5458
+ defaultValue,
5459
+ value,
5460
+ placeholder
5461
+ }, rest)
5462
+ );
5463
+ }
5464
+ return /* @__PURE__ */ React16.createElement("div", null, /* @__PURE__ */ React16.createElement(
5439
5465
  InputLabel_default2,
5440
5466
  {
5441
5467
  isPlaceholder: true,
@@ -5606,7 +5632,8 @@ var ToggleSwitch = ({
5606
5632
  name,
5607
5633
  id: id2,
5608
5634
  variant = "base",
5609
- withIcon
5635
+ withIcon,
5636
+ disabled
5610
5637
  }) => {
5611
5638
  const [checked, setChecked] = useState6(isChecked);
5612
5639
  useEffect5(() => setChecked(isChecked), [isChecked]);
@@ -5621,12 +5648,13 @@ var ToggleSwitch = ({
5621
5648
  setChecked(v);
5622
5649
  },
5623
5650
  className: cn18(
5624
- { "w-9 h-4": variant === "short", " h-6 w-11": variant === "base" },
5625
- checked ? "bg-purple-600" : "bg-gray-200",
5651
+ { "w-9 h-4 transition-all": variant === "short", " h-6 w-11": variant === "base" },
5652
+ checked && disabled ? "bg-purple-200" : checked ? "bg-purple-600" : "bg-gray-200",
5626
5653
  "relative inline-flex items-center rounded-full focus-visible:ring-2 focus-visible:ring-purple-600 focus-visible:ring-offset-2 focus-within:ring-2 focus-within:ring-purple-600 focus-within:ring-offset-2 focus:ring-2 focus:ring-purple-600 focus:ring-offset-2 active:ring-2 active:ring-purple-600 active:ring-offset-2"
5627
- )
5654
+ ),
5655
+ disabled
5628
5656
  },
5629
- /* @__PURE__ */ React18.createElement("span", { className: "sr-only" }, screenReaderLabel),
5657
+ screenReaderLabel && /* @__PURE__ */ React18.createElement("span", { className: "sr-only" }, screenReaderLabel),
5630
5658
  /* @__PURE__ */ React18.createElement(
5631
5659
  "span",
5632
5660
  {
@@ -5651,28 +5679,35 @@ var toggleSwitch_default = ToggleSwitch_default;
5651
5679
  // stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx
5652
5680
  import React19 from "react";
5653
5681
  import { default as cn19 } from "classnames";
5654
- var AnimatedLabelInput = ({
5655
- id: id2,
5656
- label,
5657
- input,
5658
- message,
5659
- textarea,
5660
- required,
5661
- isError,
5662
- containerStyles
5663
- }) => {
5664
- return /* @__PURE__ */ React19.createElement("div", { className: cn19("group relative", containerStyles ? containerStyles : "") }, input && /* @__PURE__ */ React19.createElement(InputField_default2, __spreadValues({ isError }, input)), textarea && /* @__PURE__ */ React19.createElement(TextArea_default, __spreadValues({ isError }, textarea)), /* @__PURE__ */ React19.createElement(
5682
+ var AnimatedLabelInput = (props) => {
5683
+ const _a = props, { id: id2, containerStyles, message, required, isError, label, value, handleChange } = _a, input = __objRest(_a, ["id", "containerStyles", "message", "required", "isError", "label", "value", "handleChange"]);
5684
+ const [hasValue, setHasValue] = React19.useState(!!value);
5685
+ return /* @__PURE__ */ React19.createElement("div", { className: cn19("group relative", containerStyles ? containerStyles : "") }, /* @__PURE__ */ React19.createElement(
5686
+ InputField_default2,
5687
+ __spreadValues({
5688
+ id: id2,
5689
+ isError,
5690
+ value,
5691
+ handleChange: (v) => {
5692
+ setHasValue(!!v);
5693
+ if (handleChange)
5694
+ handleChange(v);
5695
+ }
5696
+ }, input)
5697
+ ), /* @__PURE__ */ React19.createElement(
5665
5698
  "label",
5666
5699
  {
5667
5700
  className: cn19(
5668
- "absolute left-1 z-10 ml-[.172rem] inline-block bg-white px-1 text-xs transition-all peer-placeholder-shown:top-2 peer-placeholder-shown:text-sm peer-placeholder-shown:text-gray-600",
5669
- "-top-[9px] group-focus-within:!-top-[12px] group-focus-within:!left-1 group-focus-within:!ml-[.172rem] group-focus-within:!text-xs",
5701
+ "absolute z-10 ml-[3px] inline-block bg-white text-sm transition-all text-gray-500 left-1 px-1",
5702
+ hasValue ? "!-top-[8px] !ml-[.172rem] !text-xs text-gray-600" : "top-[9px]",
5703
+ "peer-placeholder-shown:!-top-[8px] peer-placeholder-shown:!ml-[.172rem] peer-placeholder-shown:!text-xs peer-placeholder-shown:text-gray-600",
5704
+ "group-focus-within:!-top-[8px] group-focus-within:!ml-[.172rem] group-focus-within:!text-xs group-focus-within:text-gray-600",
5670
5705
  isError && "!text-red-600"
5671
5706
  ),
5672
5707
  htmlFor: id2
5673
5708
  },
5674
5709
  label.display,
5675
- required && /* @__PURE__ */ React19.createElement("span", { className: "text-red-600" }, "*")
5710
+ required && /* @__PURE__ */ React19.createElement("span", { className: "text-red-600 ml-1" }, "*")
5676
5711
  ), /* @__PURE__ */ React19.createElement("div", { className: "flex flex-row space-x-3" }, /* @__PURE__ */ React19.createElement("div", { className: "grow transition-all" }, message && /* @__PURE__ */ React19.createElement("span", { className: cn19("mt-1 block text-sm", isError ? "text-red-500" : "text-gray-500") }, message))));
5677
5712
  };
5678
5713
  var AnimatedLabelInput_default = AnimatedLabelInput;
@@ -5680,14 +5715,55 @@ var AnimatedLabelInput_default = AnimatedLabelInput;
5680
5715
  // stories/organisms/AnimatedLabelInput/index.tsx
5681
5716
  var AnimatedLabelInput_default2 = AnimatedLabelInput_default;
5682
5717
 
5718
+ // stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.tsx
5719
+ import React20 from "react";
5720
+ import { default as cn20 } from "classnames";
5721
+ var AnimatedLabelTextArea = (props) => {
5722
+ const _a = props, { id: id2, containerStyles, message, required, isError, label, value, handleChange } = _a, input = __objRest(_a, ["id", "containerStyles", "message", "required", "isError", "label", "value", "handleChange"]);
5723
+ const [hasValue, setHasValue] = React20.useState(!!value);
5724
+ return /* @__PURE__ */ React20.createElement("div", { className: cn20("group relative", containerStyles ? containerStyles : "") }, /* @__PURE__ */ React20.createElement(
5725
+ textArea_default,
5726
+ __spreadProps(__spreadValues({
5727
+ id: id2,
5728
+ isError,
5729
+ value,
5730
+ onChange: (v) => {
5731
+ setHasValue(!!v);
5732
+ if (handleChange)
5733
+ handleChange(v);
5734
+ }
5735
+ }, input), {
5736
+ label: void 0
5737
+ })
5738
+ ), /* @__PURE__ */ React20.createElement(
5739
+ "label",
5740
+ {
5741
+ className: cn20(
5742
+ "absolute z-10 ml-[3px] inline-block bg-white text-sm transition-all text-gray-500 left-1 px-1",
5743
+ hasValue ? "!-top-[8px] !ml-[.172rem] !text-xs text-gray-600" : "top-[9px]",
5744
+ "peer-placeholder-shown:!-top-[8px] peer-placeholder-shown:!ml-[.172rem] peer-placeholder-shown:!text-xs peer-placeholder-shown:text-gray-600",
5745
+ "group-focus-within:!-top-[8px] group-focus-within:!ml-[.172rem] group-focus-within:!text-xs group-focus-within:text-gray-600",
5746
+ isError && "!text-red-600"
5747
+ ),
5748
+ htmlFor: id2
5749
+ },
5750
+ label,
5751
+ required && /* @__PURE__ */ React20.createElement("span", { className: "text-red-600 ml-1" }, "*")
5752
+ ), /* @__PURE__ */ React20.createElement("div", { className: "flex flex-row space-x-3" }, /* @__PURE__ */ React20.createElement("div", { className: "grow transition-all" }, message && /* @__PURE__ */ React20.createElement("span", { className: cn20("mt-1 block text-sm", isError ? "text-red-500" : "text-gray-500") }, message))));
5753
+ };
5754
+ var AnimatedLabelTextArea_default = AnimatedLabelTextArea;
5755
+
5756
+ // stories/organisms/AnimatedLabelTextArea/index.tsx
5757
+ var AnimatedLabelTextArea_default2 = AnimatedLabelTextArea_default;
5758
+
5683
5759
  // stories/organisms/ButtonDropdown/ButtonDropdown.tsx
5684
- import React21 from "react";
5685
- import { default as cn21 } from "classnames";
5760
+ import React22 from "react";
5761
+ import { default as cn22 } from "classnames";
5686
5762
 
5687
5763
  // stories/organisms/DropdownComponent/DropdownComponent.tsx
5688
- import React20, { Fragment, useState as useState7 } from "react";
5764
+ import React21, { Fragment, useState as useState7 } from "react";
5689
5765
  import { Transition } from "@headlessui/react";
5690
- import { default as cn20 } from "classnames";
5766
+ import { default as cn21 } from "classnames";
5691
5767
  import {
5692
5768
  useFloating,
5693
5769
  autoUpdate,
@@ -5760,7 +5836,7 @@ var Dropdown = (_a) => {
5760
5836
  }
5761
5837
  });
5762
5838
  const { groupClassname, buttonClassname, itemsClassname, itemClassname, activeItemClassname } = classNames3;
5763
- return /* @__PURE__ */ React20.createElement(
5839
+ return /* @__PURE__ */ React21.createElement(
5764
5840
  "div",
5765
5841
  __spreadValues({}, __spreadValues({
5766
5842
  className: groupClassname,
@@ -5769,7 +5845,7 @@ var Dropdown = (_a) => {
5769
5845
  "aria-expanded": isOpen,
5770
5846
  "aria-haspopup": "listbox"
5771
5847
  }, props)),
5772
- /* @__PURE__ */ React20.createElement(
5848
+ /* @__PURE__ */ React21.createElement(
5773
5849
  "button",
5774
5850
  __spreadValues({}, __spreadValues({
5775
5851
  ref: refs.setReference,
@@ -5778,9 +5854,9 @@ var Dropdown = (_a) => {
5778
5854
  setIsOpen(!isOpen);
5779
5855
  }
5780
5856
  }, getReferenceProps())),
5781
- CustomDropdownTrigger ? /* @__PURE__ */ React20.createElement("span", { className: "" }, CustomDropdownTrigger) : /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement("span", { className: "pl-1" }, label), /* @__PURE__ */ React20.createElement(DynamicIcon, { icon: "ChevronDownIcon", className: "ml-1 h-5 w-6 " }))
5857
+ CustomDropdownTrigger ? /* @__PURE__ */ React21.createElement("span", { className: "" }, CustomDropdownTrigger) : /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement("span", { className: "pl-1" }, label), /* @__PURE__ */ React21.createElement(DynamicIcon, { icon: "ChevronDownIcon", className: "ml-1 h-5 w-6 " }))
5782
5858
  ),
5783
- isMounted && items.length > 0 && isOpen && /* @__PURE__ */ React20.createElement(FloatingPortal, null, /* @__PURE__ */ React20.createElement(FloatingFocusManager, { context, modal: true }, /* @__PURE__ */ React20.createElement(
5859
+ isMounted && items.length > 0 && isOpen && /* @__PURE__ */ React21.createElement(FloatingPortal, null, /* @__PURE__ */ React21.createElement(FloatingFocusManager, { context, modal: true }, /* @__PURE__ */ React21.createElement(
5784
5860
  Transition,
5785
5861
  {
5786
5862
  as: Fragment,
@@ -5792,7 +5868,7 @@ var Dropdown = (_a) => {
5792
5868
  leaveFrom: "transform opacity-100 scale-100",
5793
5869
  leaveTo: "transform opacity-0 scale-95"
5794
5870
  },
5795
- /* @__PURE__ */ React20.createElement(
5871
+ /* @__PURE__ */ React21.createElement(
5796
5872
  "ul",
5797
5873
  __spreadValues(__spreadProps(__spreadValues({}, __spreadProps(__spreadValues({}, getFloatingProps()), {
5798
5874
  className: itemsClassname,
@@ -5814,7 +5890,7 @@ var Dropdown = (_a) => {
5814
5890
  "aria-labelledby": label
5815
5891
  }), getFloatingProps()),
5816
5892
  items.map((itemStack, idx) => {
5817
- return /* @__PURE__ */ React20.createElement(React20.Fragment, { key: `${idx}-list-${id2}` }, itemStack.map(
5893
+ return /* @__PURE__ */ React21.createElement(React21.Fragment, { key: `${idx}-list-${id2}` }, itemStack.map(
5818
5894
  (_a3) => {
5819
5895
  var _b3 = _a3, {
5820
5896
  onClick,
@@ -5832,7 +5908,7 @@ var Dropdown = (_a) => {
5832
5908
  "iconPosition"
5833
5909
  ]);
5834
5910
  const active = activeItem && activeItem === key;
5835
- const itemClass = cn20(
5911
+ const itemClass = cn21(
5836
5912
  itemClassname,
5837
5913
  "group flex cursor-pointer items-center px-4 py-2 text-sm transition-all",
5838
5914
  {
@@ -5850,7 +5926,7 @@ var Dropdown = (_a) => {
5850
5926
  },
5851
5927
  itemClassname
5852
5928
  );
5853
- return /* @__PURE__ */ React20.createElement("li", { key }, /* @__PURE__ */ React20.createElement(
5929
+ return /* @__PURE__ */ React21.createElement("li", { key }, /* @__PURE__ */ React21.createElement(
5854
5930
  "button",
5855
5931
  __spreadValues({}, __spreadValues({
5856
5932
  onClick: () => {
@@ -5858,23 +5934,23 @@ var Dropdown = (_a) => {
5858
5934
  onClick && onClick();
5859
5935
  },
5860
5936
  key,
5861
- className: cn20(itemClass, "w-full")
5937
+ className: cn21(itemClass, "w-full")
5862
5938
  }, rest)),
5863
- /* @__PURE__ */ React20.createElement("div", { className: "flex items-center gap-x-4" }, icon && (iconPosition === "leading" || iconPosition === void 0) && (typeof icon === "string" ? /* @__PURE__ */ React20.createElement(
5939
+ /* @__PURE__ */ React21.createElement("div", { className: "flex items-center gap-x-4" }, icon && (iconPosition === "leading" || iconPosition === void 0) && (typeof icon === "string" ? /* @__PURE__ */ React21.createElement(
5864
5940
  DynamicIcon,
5865
5941
  __spreadValues({}, {
5866
5942
  icon,
5867
- className: cn20(
5943
+ className: cn21(
5868
5944
  {
5869
5945
  "text-red-500": isEmphasized
5870
5946
  },
5871
5947
  "opacity-60 group"
5872
5948
  )
5873
5949
  })
5874
- ) : /* @__PURE__ */ React20.createElement(
5950
+ ) : /* @__PURE__ */ React21.createElement(
5875
5951
  DynamicIcon,
5876
5952
  __spreadValues({}, __spreadProps(__spreadValues({}, icon), {
5877
- className: cn20(
5953
+ className: cn21(
5878
5954
  icon.className,
5879
5955
  {
5880
5956
  "text-red-500": isEmphasized
@@ -5882,21 +5958,21 @@ var Dropdown = (_a) => {
5882
5958
  "opacity-60 group"
5883
5959
  )
5884
5960
  }))
5885
- )), /* @__PURE__ */ React20.createElement("div", { className: "whitespace-nowrap" }, label2), icon && iconPosition === "trailing" && (typeof icon === "string" ? /* @__PURE__ */ React20.createElement(
5961
+ )), /* @__PURE__ */ React21.createElement("div", { className: "whitespace-nowrap" }, label2), icon && iconPosition === "trailing" && (typeof icon === "string" ? /* @__PURE__ */ React21.createElement(
5886
5962
  DynamicIcon,
5887
5963
  __spreadValues({}, {
5888
5964
  icon,
5889
- className: cn20(
5965
+ className: cn21(
5890
5966
  {
5891
5967
  "text-red-500": isEmphasized
5892
5968
  },
5893
5969
  "opacity-60 group"
5894
5970
  )
5895
5971
  })
5896
- ) : /* @__PURE__ */ React20.createElement(
5972
+ ) : /* @__PURE__ */ React21.createElement(
5897
5973
  DynamicIcon,
5898
5974
  __spreadValues({}, __spreadProps(__spreadValues({}, icon), {
5899
- className: cn20(
5975
+ className: cn21(
5900
5976
  icon.className,
5901
5977
  {
5902
5978
  "text-red-500": isEmphasized
@@ -5921,39 +5997,39 @@ var DropdownComponent_default2 = DropdownComponent_default;
5921
5997
  // stories/organisms/ButtonDropdown/ButtonDropdown.tsx
5922
5998
  var ButtonDropdown = ({ button, dropDown, placement, offsetOptions }) => {
5923
5999
  const dropDownClasses = __spreadProps(__spreadValues({}, defaultClassNames), {
5924
- groupClassname: cn21(
6000
+ groupClassname: cn22(
5925
6001
  "flex items-center justify-center rounded-l-none border !border-l-0 rounded-r px-2 transition-all hover:!border-l-0",
5926
6002
  button.actionType === "primary" ? "border-purple-600 bg-purple-600 !text-white hover:border-purple-700 hover:bg-purple-700 active:!border-purple-800 active:!bg-purple-800 fill-white" : "",
5927
6003
  button.actionType === "secondary" ? "border-purple-50 bg-purple-50 !text-purple-700 hover:border-purple-100 hover:bg-purple-100 active:!border-purple-300 active:!bg-purple-300 fill-purple-700" : "",
5928
6004
  button.actionType === "alternative" ? "border-gray-300 bg-white !text-gray-700 fill-gray-700 hover:border-gray-300 hover:bg-gray-50 active:bg-gray-100" : ""
5929
6005
  )
5930
6006
  });
5931
- return /* @__PURE__ */ React21.createElement("div", { className: "flex items-stretch focus-within:ring-purple-600 focus-within:ring-2 focus-within:ring-offset-white focus-within:ring-offset-2 rounded-[3px]" }, /* @__PURE__ */ React21.createElement(
6007
+ return /* @__PURE__ */ React22.createElement("div", { className: "flex items-stretch focus-within:ring-purple-600 focus-within:ring-2 focus-within:ring-offset-white focus-within:ring-offset-2 rounded-[3px]" }, /* @__PURE__ */ React22.createElement(
5932
6008
  Button_default2,
5933
6009
  __spreadValues({}, __spreadProps(__spreadValues({}, button), {
5934
- className: cn21(
6010
+ className: cn22(
5935
6011
  button.className,
5936
6012
  "!rounded-r-none !border-r-0 hover:!border-r-0 !focus:ring-transparent !focus-visible:ring-transparent !focus-within:ring-transparent !focus:ring-0 !focus-within:ring-0 !focus-visible:ring-0 !focus:ring-offset-0 !focus-visible:ring-offset-0 !focus-within:ring-offset-0 !ring-0 outline-none focus:outline-none focus-visible:outline-none focus-within:outline-none !ring-offset-0"
5937
6013
  )
5938
6014
  }))
5939
- ), /* @__PURE__ */ React21.createElement(
6015
+ ), /* @__PURE__ */ React22.createElement(
5940
6016
  "div",
5941
6017
  {
5942
- className: cn21(
6018
+ className: cn22(
5943
6019
  "w-[1px] rt",
5944
6020
  button.actionType === "primary" ? "bg-purple-700" : "",
5945
6021
  button.actionType === "secondary" ? "bg-purple-200" : "",
5946
6022
  button.actionType === "alternative" ? "bg-gray-300" : ""
5947
6023
  )
5948
6024
  }
5949
- ), /* @__PURE__ */ React21.createElement(
6025
+ ), /* @__PURE__ */ React22.createElement(
5950
6026
  DropdownComponent_default2,
5951
6027
  __spreadValues({}, __spreadProps(__spreadValues({}, dropDown), {
5952
- CustomDropdownTrigger: /* @__PURE__ */ React21.createElement(
6028
+ CustomDropdownTrigger: /* @__PURE__ */ React22.createElement(
5953
6029
  DynamicIcon,
5954
6030
  __spreadValues({}, {
5955
6031
  icon: "ChevronDownIcon",
5956
- className: cn21("h-5 w-5", {
6032
+ className: cn22("h-5 w-5", {
5957
6033
  "text-white": button.actionType === "primary",
5958
6034
  "text-purple-700": button.actionType === "secondary",
5959
6035
  "text-gray-700": button.actionType === "alternative"
@@ -5970,7 +6046,7 @@ var ButtonDropdown = ({ button, dropDown, placement, offsetOptions }) => {
5970
6046
  },
5971
6047
  placement
5972
6048
  }))
5973
- ), /* @__PURE__ */ React21.createElement("div", { className: "hidden !bg-purple-100 !text-purple-600 transition-all hover:bg-purple-200 focus:bg-purple-300" }));
6049
+ ), /* @__PURE__ */ React22.createElement("div", { className: "hidden !bg-purple-100 !text-purple-600 transition-all hover:bg-purple-200 focus:bg-purple-300" }));
5974
6050
  };
5975
6051
  var ButtonDropdown_default = ButtonDropdown;
5976
6052
 
@@ -5978,8 +6054,8 @@ var ButtonDropdown_default = ButtonDropdown;
5978
6054
  var ButtonDropdown_default2 = ButtonDropdown_default;
5979
6055
 
5980
6056
  // stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.tsx
5981
- import React22 from "react";
5982
- import { default as cn22 } from "classnames";
6057
+ import React23 from "react";
6058
+ import { default as cn23 } from "classnames";
5983
6059
  var EmptySectionPlaceholder = ({
5984
6060
  icon,
5985
6061
  mutedText,
@@ -5988,7 +6064,7 @@ var EmptySectionPlaceholder = ({
5988
6064
  actions,
5989
6065
  isWide
5990
6066
  }) => {
5991
- return /* @__PURE__ */ React22.createElement("div", { className: "flex h-full w-full flex-col items-center justify-center border-2 border-dashed border-gray-300 p-5" }, /* @__PURE__ */ React22.createElement(IconWithShadow_default, __spreadValues({}, icon)), mutedText && /* @__PURE__ */ React22.createElement("p", { className: "my-2 block text-xs text-gray-500" }, mutedText), CallToActionComponent ? CallToActionComponent : /* @__PURE__ */ React22.createElement("p", { className: "mb-2 block text-sm font-medium text-gray-600" }, primaryMessage), actions.length > 0 ? /* @__PURE__ */ React22.createElement("div", { className: cn22("mt-2 flex gap-2", isWide ? "" : "flex-col items-center") }, actions.map((action, index) => /* @__PURE__ */ React22.createElement(Button_default2, __spreadProps(__spreadValues({}, __spreadValues({}, action)), { key: action.label.replaceAll(" ", "-") })))) : /* @__PURE__ */ React22.createElement(React22.Fragment, null));
6067
+ return /* @__PURE__ */ React23.createElement("div", { className: "flex h-full w-full flex-col items-center justify-center border-2 border-dashed border-gray-300 p-5" }, /* @__PURE__ */ React23.createElement(IconWithShadow_default, __spreadValues({}, icon)), mutedText && /* @__PURE__ */ React23.createElement("p", { className: "my-2 block text-xs text-gray-500" }, mutedText), CallToActionComponent ? CallToActionComponent : /* @__PURE__ */ React23.createElement("p", { className: "mb-2 block text-sm font-medium text-gray-600" }, primaryMessage), actions.length > 0 ? /* @__PURE__ */ React23.createElement("div", { className: cn23("mt-2 flex gap-2", isWide ? "" : "flex-col items-center") }, actions.map((action, index) => /* @__PURE__ */ React23.createElement(Button_default2, __spreadProps(__spreadValues({}, __spreadValues({}, action)), { key: action.label.replaceAll(" ", "-") })))) : /* @__PURE__ */ React23.createElement(React23.Fragment, null));
5992
6068
  };
5993
6069
  var EmptySectionPlaceholder_default = EmptySectionPlaceholder;
5994
6070
 
@@ -5996,8 +6072,8 @@ var EmptySectionPlaceholder_default = EmptySectionPlaceholder;
5996
6072
  var EmptySectionPlaceholder_default2 = EmptySectionPlaceholder_default;
5997
6073
 
5998
6074
  // stories/organisms/FormInputWithAddons/FormInputWithAddons.tsx
5999
- import React23, { useLayoutEffect as useLayoutEffect2, useRef as useRef2, useState as useState8 } from "react";
6000
- import { default as cn23 } from "classnames";
6075
+ import React24, { useLayoutEffect as useLayoutEffect2, useRef as useRef2, useState as useState8 } from "react";
6076
+ import { default as cn24 } from "classnames";
6001
6077
  var FormInputWithAddons = (_a) => {
6002
6078
  var _b = _a, {
6003
6079
  handleChange,
@@ -6055,25 +6131,25 @@ var FormInputWithAddons = (_a) => {
6055
6131
  setLeadLabelWidth(((_a2 = leadLabelRef.current) == null ? void 0 : _a2.clientWidth) || 0);
6056
6132
  setTrailLabelWidth(((_b2 = trailLabelRef.current) == null ? void 0 : _b2.clientWidth) || 0);
6057
6133
  }, []);
6058
- return /* @__PURE__ */ React23.createElement("div", { className: cn23("group flex flex-col", containerClassName) }, !leadLabel && !trailLabel && topLabel && /* @__PURE__ */ React23.createElement("label", { htmlFor: id2, className: cn23("flex items-center text-sm font-medium text-gray-600", labelClass) }, topLabel), description && /* @__PURE__ */ React23.createElement("div", { className: "mb-2 text-sm text-gray-500" }, description), /* @__PURE__ */ React23.createElement("div", { className: "relative flex-grow" }, (leadLabel || leadIcon) && /* @__PURE__ */ React23.createElement(
6134
+ return /* @__PURE__ */ React24.createElement("div", { className: cn24("group flex flex-col", containerClassName) }, !leadLabel && !trailLabel && topLabel && /* @__PURE__ */ React24.createElement("label", { htmlFor: id2, className: cn24("flex items-center text-sm font-medium text-gray-600", labelClass) }, topLabel), description && /* @__PURE__ */ React24.createElement("div", { className: "mb-2 text-sm text-gray-500" }, description), /* @__PURE__ */ React24.createElement("div", { className: "relative flex-grow" }, (leadLabel || leadIcon) && /* @__PURE__ */ React24.createElement(
6059
6135
  "label",
6060
6136
  {
6061
6137
  ref: leadLabelRef,
6062
6138
  htmlFor: id2,
6063
- className: cn23(
6139
+ className: cn24(
6064
6140
  "absolute top-0 bottom-0 left-3 flex items-center justify-center text-sm text-gray-500",
6065
6141
  labelClass
6066
6142
  )
6067
6143
  },
6068
- leadIcon && /* @__PURE__ */ React23.createElement("span", null, /* @__PURE__ */ React23.createElement(
6144
+ leadIcon && /* @__PURE__ */ React24.createElement("span", null, /* @__PURE__ */ React24.createElement(
6069
6145
  DynamicIcon,
6070
6146
  __spreadValues({}, __spreadProps(__spreadValues({}, leadIcon), {
6071
- className: cn23("h-5 w-5 text-gray-400", leadIconClassNames, customIconClass),
6147
+ className: cn24("h-5 w-5 text-gray-400", leadIconClassNames, customIconClass),
6072
6148
  outline: iconOutlined
6073
6149
  }))
6074
6150
  )),
6075
6151
  leadLabel && leadLabel
6076
- ), /* @__PURE__ */ React23.createElement(
6152
+ ), /* @__PURE__ */ React24.createElement(
6077
6153
  InputField_default2,
6078
6154
  __spreadValues({}, __spreadProps(__spreadValues({}, rest), {
6079
6155
  handleChange,
@@ -6093,20 +6169,20 @@ var FormInputWithAddons = (_a) => {
6093
6169
  paddingLeft: `${leadLabelWidth + addonOffset}px`
6094
6170
  }
6095
6171
  }))
6096
- ), (trailLabel || trailIcon) && /* @__PURE__ */ React23.createElement(
6172
+ ), (trailLabel || trailIcon) && /* @__PURE__ */ React24.createElement(
6097
6173
  "label",
6098
6174
  {
6099
6175
  ref: trailLabelRef,
6100
6176
  htmlFor: id2,
6101
- className: cn23(
6177
+ className: cn24(
6102
6178
  "right absolute top-0 bottom-0 right-3 flex items-center justify-center text-sm !text-gray-500 ",
6103
6179
  labelClass
6104
6180
  )
6105
6181
  },
6106
- trailIcon && /* @__PURE__ */ React23.createElement("span", null, /* @__PURE__ */ React23.createElement(
6182
+ trailIcon && /* @__PURE__ */ React24.createElement("span", null, /* @__PURE__ */ React24.createElement(
6107
6183
  DynamicIcon,
6108
6184
  __spreadValues({}, __spreadProps(__spreadValues({}, trailIcon), {
6109
- className: cn23("h-5 w-5 text-gray-400", customIconClass),
6185
+ className: cn24("h-5 w-5 text-gray-400", customIconClass),
6110
6186
  outline: iconOutlined
6111
6187
  }))
6112
6188
  )),
@@ -6119,12 +6195,12 @@ var FormInputWithAddons_default = FormInputWithAddons;
6119
6195
  var FormInputWithAddons_default2 = FormInputWithAddons_default;
6120
6196
 
6121
6197
  // stories/organisms/TextInputSelect/TextInputSelect.tsx
6122
- import React25, { useEffect as useEffect6, useId as useId4, useRef as useRef3, useState as useState10 } from "react";
6123
- import { default as cn25 } from "classnames";
6198
+ import React26, { useEffect as useEffect6, useId as useId4, useRef as useRef3, useState as useState10 } from "react";
6199
+ import { default as cn26 } from "classnames";
6124
6200
 
6125
6201
  // stories/organisms/TextInputSelect/InputSelect.tsx
6126
- import React24, { useState as useState9 } from "react";
6127
- import { default as cn24 } from "classnames";
6202
+ import React25, { useState as useState9 } from "react";
6203
+ import { default as cn25 } from "classnames";
6128
6204
  var InputSelect = ({
6129
6205
  inputOptions,
6130
6206
  onSelectOption,
@@ -6140,10 +6216,10 @@ var InputSelect = ({
6140
6216
  };
6141
6217
  if (!(inputOptions == null ? void 0 : inputOptions.length))
6142
6218
  return null;
6143
- return /* @__PURE__ */ React24.createElement(
6219
+ return /* @__PURE__ */ React25.createElement(
6144
6220
  "select",
6145
6221
  {
6146
- className: cn24(
6222
+ className: cn25(
6147
6223
  "relative z-10 inline-flex items-center space-x-2 border border-gray-300 bg-white px-4 py-2 pr-7 text-sm font-medium",
6148
6224
  "focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500",
6149
6225
  align === "right" ? "-ml-px rounded-r border-l-white text-gray-700" : align === "left" ? "-mr-px rounded-l border-r-white text-gray-500 focus-within:z-10" : "",
@@ -6154,7 +6230,7 @@ var InputSelect = ({
6154
6230
  value: selectedOption,
6155
6231
  disabled: isDisabled
6156
6232
  },
6157
- inputOptions.map((option) => /* @__PURE__ */ React24.createElement("option", { key: option.value, value: option.value }, option.label))
6233
+ inputOptions.map((option) => /* @__PURE__ */ React25.createElement("option", { key: option.value, value: option.value }, option.label))
6158
6234
  );
6159
6235
  };
6160
6236
 
@@ -6212,20 +6288,20 @@ var TextInputSelect = ({
6212
6288
  const handleInputBlur = () => {
6213
6289
  setIsFocus(false);
6214
6290
  };
6215
- const labelStyles = cn25("block inline-block font-medium transition-all text-sm text-gray-700 mb-1", {
6291
+ const labelStyles = cn26("block inline-block font-medium transition-all text-sm text-gray-700 mb-1", {
6216
6292
  "text-red-500 bg-white": isError
6217
6293
  });
6218
- const discriptionStyles = cn25("text-sm mt-1 block", { "text-gray-500": !isError }, { "text-red-500": isError });
6219
- return /* @__PURE__ */ React25.createElement("div", null, label && /* @__PURE__ */ React25.createElement("label", { htmlFor: id2, className: labelStyles }, label, isRequired && /* @__PURE__ */ React25.createElement("span", { className: "text-red-500" }, " *")), /* @__PURE__ */ React25.createElement("div", { className: "flex" }, (inputOptions == null ? void 0 : inputOptions.length) && selectLocation === "left" && /* @__PURE__ */ React25.createElement(
6294
+ const discriptionStyles = cn26("text-sm mt-1 block", { "text-gray-500": !isError }, { "text-red-500": isError });
6295
+ return /* @__PURE__ */ React26.createElement("div", null, label && /* @__PURE__ */ React26.createElement("label", { htmlFor: id2, className: labelStyles }, label, isRequired && /* @__PURE__ */ React26.createElement("span", { className: "text-red-500" }, " *")), /* @__PURE__ */ React26.createElement("div", { className: "flex" }, (inputOptions == null ? void 0 : inputOptions.length) && selectLocation === "left" && /* @__PURE__ */ React26.createElement(
6220
6296
  InputSelect,
6221
6297
  {
6222
6298
  inputOptions,
6223
6299
  align: "left",
6224
6300
  onSelectOption,
6225
- className: cn25(isError ? "border-red-500" : ""),
6301
+ className: cn26(isError ? "border-red-500" : ""),
6226
6302
  isDisabled
6227
6303
  }
6228
- ), /* @__PURE__ */ React25.createElement("div", { className: "relative flex-grow focus-within:z-20" }, prefix && /* @__PURE__ */ React25.createElement("div", { className: "pointer-events-none pr-10 absolute inset-y-0 left-0 flex items-center pl-3" }, /* @__PURE__ */ React25.createElement("span", { className: "text-gray-500 sm:text-sm" }, prefix)), /* @__PURE__ */ React25.createElement(
6304
+ ), /* @__PURE__ */ React26.createElement("div", { className: "relative flex-grow focus-within:z-20" }, prefix && /* @__PURE__ */ React26.createElement("div", { className: "pointer-events-none pr-10 absolute inset-y-0 left-0 flex items-center pl-3" }, /* @__PURE__ */ React26.createElement("span", { className: "text-gray-500 sm:text-sm" }, prefix)), /* @__PURE__ */ React26.createElement(
6229
6305
  InputField_default2,
6230
6306
  {
6231
6307
  onFocus: handleInputFocus,
@@ -6235,7 +6311,7 @@ var TextInputSelect = ({
6235
6311
  type,
6236
6312
  name,
6237
6313
  id: id2,
6238
- className: cn25(
6314
+ className: cn26(
6239
6315
  "w-full border border-gray-300 py-2 px-3 text-sm font-normal leading-5",
6240
6316
  "focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500 sm:text-sm",
6241
6317
  selectLocation === "right" ? `rounded-l` : `rounded-r`,
@@ -6248,16 +6324,16 @@ var TextInputSelect = ({
6248
6324
  maxLength,
6249
6325
  placeholder
6250
6326
  }
6251
- )), (inputOptions == null ? void 0 : inputOptions.length) && selectLocation === "right" && /* @__PURE__ */ React25.createElement(
6327
+ )), (inputOptions == null ? void 0 : inputOptions.length) && selectLocation === "right" && /* @__PURE__ */ React26.createElement(
6252
6328
  InputSelect,
6253
6329
  {
6254
6330
  inputOptions,
6255
6331
  align: "right",
6256
6332
  onSelectOption,
6257
6333
  isDisabled,
6258
- className: cn25(isError ? "border-red-500" : "")
6334
+ className: cn26(isError ? "border-red-500" : "")
6259
6335
  }
6260
- )), /* @__PURE__ */ React25.createElement("div", { className: "flex flex-row space-x-3" }, /* @__PURE__ */ React25.createElement("div", { className: "grow" }, message && /* @__PURE__ */ React25.createElement("span", { className: discriptionStyles }, message)), isShowCounter && /* @__PURE__ */ React25.createElement("div", { className: "shrink-0" }, /* @__PURE__ */ React25.createElement(InputCounter_default, { current: Number(value == null ? void 0 : value.length), limit: maxLength }))));
6336
+ )), /* @__PURE__ */ React26.createElement("div", { className: "flex flex-row space-x-3" }, /* @__PURE__ */ React26.createElement("div", { className: "grow" }, message && /* @__PURE__ */ React26.createElement("span", { className: discriptionStyles }, message)), isShowCounter && /* @__PURE__ */ React26.createElement("div", { className: "shrink-0" }, /* @__PURE__ */ React26.createElement(InputCounter_default, { current: Number(value == null ? void 0 : value.length), limit: maxLength }))));
6261
6337
  };
6262
6338
  var TextInputSelect_default = TextInputSelect;
6263
6339
 
@@ -6265,6 +6341,7 @@ var TextInputSelect_default = TextInputSelect;
6265
6341
  var TextInputSelect_default2 = TextInputSelect_default;
6266
6342
  export {
6267
6343
  AnimatedLabelInput_default2 as AnimatedLabelInput,
6344
+ AnimatedLabelTextArea_default2 as AnimatedLabelTextArea,
6268
6345
  Avatar_default2 as Avatar,
6269
6346
  badges_default as Badge,
6270
6347
  Button_default2 as Button,