@addsign/moje-agenda-shared-lib 2.0.72 → 2.0.74

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.
Files changed (47) hide show
  1. package/dist/Dialog-BmQoVu5C.js.map +1 -1
  2. package/dist/assets/style.css +1771 -1760
  3. package/dist/components/Attachments.js +2 -2
  4. package/dist/components/datatable/DataTable.js +3 -3
  5. package/dist/components/datatable/DataTableServer.js +3 -3
  6. package/dist/components/form/AutocompleteSearchBar.js +2 -2
  7. package/dist/components/form/AutocompleteSearchBarServer.js +2 -2
  8. package/dist/components/form/FileInput.js +3 -3
  9. package/dist/components/form/FileInputForm.d.ts +1 -0
  10. package/dist/components/form/FileInputForm.js +201 -93
  11. package/dist/components/form/FileInputForm.js.map +1 -1
  12. package/dist/components/form/FileInputFormMultiple.d.ts +1 -0
  13. package/dist/components/form/FileInputFormMultiple.js +203 -82
  14. package/dist/components/form/FileInputFormMultiple.js.map +1 -1
  15. package/dist/components/form/FileInputMultiple.js +3 -3
  16. package/dist/components/form/FormField.js +2 -2
  17. package/dist/components/form/PositionsSelectorSingle.js +3 -3
  18. package/dist/components/form/SelectField.js +2 -2
  19. package/dist/components/layout/Neoptimizovano.js +2 -2
  20. package/dist/components/profiles/ProfileOverview.js +2 -2
  21. package/dist/components/ui/Combobox.js +4 -4
  22. package/dist/components/ui/Combobox.js.map +1 -1
  23. package/dist/components/ui/DatePicker.js +2 -2
  24. package/dist/components/ui/DateTimePicker.js +2 -2
  25. package/dist/components/ui/Dialog.js +1 -1
  26. package/dist/components/ui/ScrollArea.js +2 -2
  27. package/dist/components/ui/checkbox.js +4 -4
  28. package/dist/components/ui/command.d.ts +6 -6
  29. package/dist/components/ui/command.js +2 -2
  30. package/dist/components/ui/input.js +8 -107
  31. package/dist/components/ui/input.js.map +1 -1
  32. package/dist/components/ui/multi-select.js +1 -1
  33. package/dist/components/ui/popover.js +1 -1
  34. package/dist/components/ui/radioGroup.js +5 -5
  35. package/dist/components/ui/select.js +7 -7
  36. package/dist/components/ui/toast.js +5 -5
  37. package/dist/components/ui/tooltip.js +6 -6
  38. package/dist/input-Cm_FjJOF.js +111 -0
  39. package/dist/input-Cm_FjJOF.js.map +1 -0
  40. package/dist/main.js +3 -3
  41. package/dist/popover-DpJhfyvx.js.map +1 -1
  42. package/lib/components/form/FileInputForm.tsx +245 -99
  43. package/lib/components/form/FileInputFormMultiple.tsx +233 -65
  44. package/lib/components/ui/Combobox.tsx +3 -3
  45. package/lib/css/tailwind.css +9 -9
  46. package/package.json +1 -1
  47. package/tailwind.config.js +97 -97
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.js","sources":["../../../node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js","../../../node_modules/lucide-react/dist/esm/icons/plus.js","../../../lib/components/ui/Combobox.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.456.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ChevronsUpDown = createLucideIcon(\"ChevronsUpDown\", [\n [\"path\", { d: \"m7 15 5 5 5-5\", key: \"1hf1tw\" }],\n [\"path\", { d: \"m7 9 5-5 5 5\", key: \"sgt6xg\" }]\n]);\n\nexport { ChevronsUpDown as default };\n//# sourceMappingURL=chevrons-up-down.js.map\n","/**\n * @license lucide-react v0.456.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Plus = createLucideIcon(\"Plus\", [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"M12 5v14\", key: \"s699le\" }]\n]);\n\nexport { Plus as default };\n//# sourceMappingURL=plus.js.map\n","import * as React from \"react\";\r\nimport { Check, ChevronsUpDown, Plus, X } from \"lucide-react\";\r\n\r\nimport { cn } from \"../../utils/utils\";\r\nimport { Button } from \"./button\";\r\nimport {\r\n Command,\r\n CommandEmpty,\r\n CommandGroup,\r\n CommandInput,\r\n CommandItem,\r\n CommandList,\r\n} from \"./command\";\r\nimport { Popover, PopoverContent, PopoverTrigger } from \"./popover\";\r\nimport { IOptionItem } from \"../../types\";\r\n\r\ninterface ComboboxProps {\r\n value?: string;\r\n onChange?: (value: string | undefined) => void;\r\n className?: string;\r\n placeholder?: string;\r\n placeholderSearch?: string;\r\n clearable?: boolean;\r\n options?: IOptionItem[];\r\n allowAddNew?: boolean;\r\n disabled?: boolean;\r\n}\r\n\r\nconst Combobox = React.forwardRef<HTMLButtonElement, ComboboxProps>(\r\n (\r\n {\r\n value: propValue,\r\n onChange: propOnChange,\r\n className,\r\n placeholder,\r\n placeholderSearch = \"Vyhledejte položku\",\r\n clearable = false,\r\n options: propOptions = [],\r\n allowAddNew = false,\r\n disabled = false,\r\n },\r\n ref\r\n ) => {\r\n const [open, setOpen] = React.useState(false);\r\n const [value, setValue] = React.useState(propValue || \"\");\r\n const [inputValue, setInputValue] = React.useState(\"\");\r\n const [frameworks, setFrameworks] =\r\n React.useState<IOptionItem[]>(propOptions);\r\n\r\n React.useEffect(() => {\r\n if (propValue !== undefined) {\r\n setValue(propValue);\r\n }\r\n }, [propValue]);\r\n\r\n React.useEffect(() => {\r\n setFrameworks(propOptions);\r\n }, [propOptions]);\r\n\r\n const handleSelect = (currentValue: string) => {\r\n if (currentValue === \"add-custom\") {\r\n if (inputValue && !frameworks.some((f) => f.value === inputValue)) {\r\n const newFramework = {\r\n value: inputValue,\r\n label: inputValue,\r\n };\r\n\r\n setFrameworks([...frameworks, newFramework]);\r\n updateValue(newFramework.value);\r\n }\r\n } else {\r\n updateValue(currentValue === value ? \"\" : currentValue);\r\n }\r\n setOpen(false);\r\n };\r\n\r\n const updateValue = (newValue: string) => {\r\n setValue(newValue);\r\n propOnChange?.(newValue || undefined);\r\n };\r\n\r\n const handleClear = (e: React.MouseEvent) => {\r\n e.stopPropagation();\r\n updateValue(\"\");\r\n setInputValue(\"\");\r\n setOpen(false);\r\n };\r\n\r\n value;\r\n return (\r\n <Popover open={open} onOpenChange={setOpen}>\r\n <div className=\"relative w-full\">\r\n <PopoverTrigger asChild>\r\n <Button\r\n ref={ref}\r\n type=\"button\"\r\n variant=\"outline\"\r\n role=\"combobox\"\r\n aria-expanded={open}\r\n disabled={disabled}\r\n className={cn(\"w-full justify-between\", className)}\r\n title={\r\n value\r\n ? frameworks.find((framework) => framework.value === value)\r\n ?.label\r\n : placeholder\r\n }\r\n >\r\n <span className=\"flex-1 text-left truncate mr-2 font-normal\">\r\n {value ? (\r\n frameworks.find((framework) => framework.value === value)\r\n ?.label\r\n ) : (\r\n <span className=\"text-muted-foreground font-normal\">\r\n {placeholder}\r\n </span>\r\n )}\r\n </span>\r\n\r\n <ChevronsUpDown className=\"h-4 w-4 shrink-0 opacity-50 ml-6\" />\r\n </Button>\r\n </PopoverTrigger>\r\n {clearable && !disabled && value && (\r\n <Button\r\n type=\"button\"\r\n variant=\"ghost\"\r\n size=\"sm\"\r\n className=\"absolute right-6 top-0 h-full px-1 py-2 hover:bg-transparent\"\r\n onClick={handleClear}\r\n >\r\n <X className=\"h-4 w-4 shrink-0 opacity-50 hover:opacity-100\" />\r\n </Button>\r\n )}\r\n </div>\r\n <PopoverContent className=\"min-w-[200px] w-[var(--radix-popover-trigger-width)] p-0\">\r\n <Command>\r\n <CommandInput\r\n placeholder={placeholderSearch}\r\n className=\"h-9\"\r\n value={inputValue}\r\n onValueChange={setInputValue}\r\n />\r\n <CommandList>\r\n <CommandEmpty>\r\n {allowAddNew && (\r\n <Button\r\n type=\"button\"\r\n variant=\"ghost\"\r\n className=\"w-full justify-start\"\r\n onClick={() => handleSelect(\"add-custom\")}\r\n >\r\n <Plus className=\"mr-2 h-4 w-4\" />\r\n Přidat \"{inputValue}\"\r\n </Button>\r\n )}\r\n </CommandEmpty>\r\n\r\n <CommandGroup>\r\n {frameworks.map((framework) => (\r\n <CommandItem\r\n key={framework.value}\r\n value={framework.label as string}\r\n onSelect={() => handleSelect(framework.value as string)}\r\n >\r\n {framework.label}\r\n <Check\r\n className={cn(\r\n \"ml-auto h-4 w-4\",\r\n value === framework.value ? \"opacity-100\" : \"opacity-0\"\r\n )}\r\n />\r\n </CommandItem>\r\n ))}\r\n </CommandGroup>\r\n </CommandList>\r\n </Command>\r\n </PopoverContent>\r\n </Popover>\r\n );\r\n }\r\n);\r\n\r\nCombobox.displayName = \"Combobox\";\r\n\r\nexport default Combobox;\r\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAM,iBAAiB,iBAAiB,kBAAkB;AAAA,EACxD,CAAC,QAAQ,EAAE,GAAG,iBAAiB,KAAK,SAAQ,CAAE;AAAA,EAC9C,CAAC,QAAQ,EAAE,GAAG,gBAAgB,KAAK,SAAQ,CAAE;AAC/C,CAAC;ACZD;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAM,OAAO,iBAAiB,QAAQ;AAAA,EACpC,CAAC,QAAQ,EAAE,GAAG,YAAY,KAAK,SAAQ,CAAE;AAAA,EACzC,CAAC,QAAQ,EAAE,GAAG,YAAY,KAAK,SAAQ,CAAE;AAC3C,CAAC;ACgBD,MAAM,WAAW,MAAM;AAAA,EACrB,CACE;AAAA,IACE,OAAO;AAAA,IACP,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA,oBAAoB;AAAA,IACpB,YAAY;AAAA,IACZ,SAAS,cAAc,CAAC;AAAA,IACxB,cAAc;AAAA,IACd,WAAW;AAAA,KAEb,QACG;;AACH,UAAM,CAAC,MAAM,OAAO,IAAI,MAAM,SAAS,KAAK;AAC5C,UAAM,CAAC,OAAO,QAAQ,IAAI,MAAM,SAAS,aAAa,EAAE;AACxD,UAAM,CAAC,YAAY,aAAa,IAAI,MAAM,SAAS,EAAE;AACrD,UAAM,CAAC,YAAY,aAAa,IAC9B,MAAM,SAAwB,WAAW;AAE3C,UAAM,UAAU,MAAM;AACpB,UAAI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B;AAAA,oBAC9C;AAAA,kBAAA;AAAA,gBACF;AAAA,cAAA;AAAA,YAAA;AAAA,YAVK,UAAU;AAAA,UAYlB,CAAA,GACH;AAAA,QAAA,GACF;AAAA,MAAA,EAAA,CACF,EACF,CAAA;AAAA,IACF,EAAA,CAAA;AAAA,EAEJ;AACF;AAEA,SAAS,cAAc;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"Combobox.js","sources":["../../../node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js","../../../node_modules/lucide-react/dist/esm/icons/plus.js","../../../lib/components/ui/Combobox.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.456.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst ChevronsUpDown = createLucideIcon(\"ChevronsUpDown\", [\n [\"path\", { d: \"m7 15 5 5 5-5\", key: \"1hf1tw\" }],\n [\"path\", { d: \"m7 9 5-5 5 5\", key: \"sgt6xg\" }]\n]);\n\nexport { ChevronsUpDown as default };\n//# sourceMappingURL=chevrons-up-down.js.map\n","/**\n * @license lucide-react v0.456.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Plus = createLucideIcon(\"Plus\", [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"M12 5v14\", key: \"s699le\" }]\n]);\n\nexport { Plus as default };\n//# sourceMappingURL=plus.js.map\n","import * as React from \"react\";\r\nimport { Check, ChevronsUpDown, Plus, X } from \"lucide-react\";\r\n\r\nimport { cn } from \"../../utils/utils\";\r\nimport { Button } from \"./button\";\r\nimport {\r\n Command,\r\n CommandEmpty,\r\n CommandGroup,\r\n CommandInput,\r\n CommandItem,\r\n CommandList,\r\n} from \"./command\";\r\nimport { Popover, PopoverContent, PopoverTrigger } from \"./popover\";\r\nimport { IOptionItem } from \"../../types\";\r\n\r\ninterface ComboboxProps {\r\n value?: string;\r\n onChange?: (value: string | undefined) => void;\r\n className?: string;\r\n placeholder?: string;\r\n placeholderSearch?: string;\r\n clearable?: boolean;\r\n options?: IOptionItem[];\r\n allowAddNew?: boolean;\r\n disabled?: boolean;\r\n}\r\n\r\nconst Combobox = React.forwardRef<HTMLButtonElement, ComboboxProps>(\r\n (\r\n {\r\n value: propValue,\r\n onChange: propOnChange,\r\n className,\r\n placeholder,\r\n placeholderSearch = \"Vyhledejte položku\",\r\n clearable = false,\r\n options: propOptions = [],\r\n allowAddNew = false,\r\n disabled = false,\r\n },\r\n ref\r\n ) => {\r\n const [open, setOpen] = React.useState(false);\r\n const [value, setValue] = React.useState(propValue || \"\");\r\n const [inputValue, setInputValue] = React.useState(\"\");\r\n const [frameworks, setFrameworks] =\r\n React.useState<IOptionItem[]>(propOptions);\r\n\r\n React.useEffect(() => {\r\n if (propValue !== undefined) {\r\n setValue(propValue);\r\n }\r\n }, [propValue]);\r\n\r\n React.useEffect(() => {\r\n setFrameworks(propOptions);\r\n }, [propOptions]);\r\n\r\n const handleSelect = (currentValue: string) => {\r\n if (currentValue === \"add-custom\") {\r\n if (inputValue && !frameworks.some((f) => f.value === inputValue)) {\r\n const newFramework = {\r\n value: inputValue,\r\n label: inputValue,\r\n };\r\n\r\n setFrameworks([...frameworks, newFramework]);\r\n updateValue(newFramework.value);\r\n }\r\n } else {\r\n updateValue(currentValue === value ? \"\" : currentValue);\r\n }\r\n setOpen(false);\r\n };\r\n\r\n const updateValue = (newValue: string) => {\r\n setValue(newValue);\r\n propOnChange?.(newValue || undefined);\r\n };\r\n\r\n const handleClear = (e: React.MouseEvent) => {\r\n e.stopPropagation();\r\n updateValue(\"\");\r\n setInputValue(\"\");\r\n setOpen(false);\r\n };\r\n\r\n value;\r\n return (\r\n <Popover open={open} onOpenChange={setOpen}>\r\n <div className=\"relative w-full\">\r\n <PopoverTrigger asChild>\r\n <Button\r\n ref={ref}\r\n type=\"button\"\r\n variant=\"outline\"\r\n role=\"combobox\"\r\n aria-expanded={open}\r\n disabled={disabled}\r\n className={cn(\"w-full justify-between gap-2\", className)}\r\n title={\r\n value\r\n ? frameworks.find((framework) => framework.value === value)\r\n ?.label\r\n : placeholder\r\n }\r\n >\r\n <span className=\"flex-1 text-left truncate font-normal\">\r\n {value ? (\r\n frameworks.find((framework) => framework.value === value)\r\n ?.label\r\n ) : (\r\n <span className=\"text-muted-foreground font-normal\">\r\n {placeholder}\r\n </span>\r\n )}\r\n </span>\r\n\r\n <ChevronsUpDown className=\"h-4 w-4 shrink-0 opacity-50\" />\r\n </Button>\r\n </PopoverTrigger>\r\n {clearable && !disabled && value && (\r\n <Button\r\n type=\"button\"\r\n variant=\"ghost\"\r\n size=\"sm\"\r\n className=\"absolute right-6 top-0 h-full px-1 py-2 hover:bg-transparent\"\r\n onClick={handleClear}\r\n >\r\n <X className=\"h-4 w-4 shrink-0 opacity-50 hover:opacity-100\" />\r\n </Button>\r\n )}\r\n </div>\r\n <PopoverContent className=\"min-w-[200px] w-[var(--radix-popover-trigger-width)] p-0\">\r\n <Command>\r\n <CommandInput\r\n placeholder={placeholderSearch}\r\n className=\"h-9\"\r\n value={inputValue}\r\n onValueChange={setInputValue}\r\n />\r\n <CommandList>\r\n <CommandEmpty>\r\n {allowAddNew && (\r\n <Button\r\n type=\"button\"\r\n variant=\"ghost\"\r\n className=\"w-full justify-start\"\r\n onClick={() => handleSelect(\"add-custom\")}\r\n >\r\n <Plus className=\"mr-2 h-4 w-4\" />\r\n Přidat \"{inputValue}\"\r\n </Button>\r\n )}\r\n </CommandEmpty>\r\n\r\n <CommandGroup>\r\n {frameworks.map((framework) => (\r\n <CommandItem\r\n key={framework.value}\r\n value={framework.label as string}\r\n onSelect={() => handleSelect(framework.value as string)}\r\n >\r\n {framework.label}\r\n <Check\r\n className={cn(\r\n \"ml-auto h-4 w-4\",\r\n value === framework.value ? \"opacity-100\" : \"opacity-0\"\r\n )}\r\n />\r\n </CommandItem>\r\n ))}\r\n </CommandGroup>\r\n </CommandList>\r\n </Command>\r\n </PopoverContent>\r\n </Popover>\r\n );\r\n }\r\n);\r\n\r\nCombobox.displayName = \"Combobox\";\r\n\r\nexport default Combobox;\r\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAM,iBAAiB,iBAAiB,kBAAkB;AAAA,EACxD,CAAC,QAAQ,EAAE,GAAG,iBAAiB,KAAK,SAAQ,CAAE;AAAA,EAC9C,CAAC,QAAQ,EAAE,GAAG,gBAAgB,KAAK,SAAQ,CAAE;AAC/C,CAAC;ACZD;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAM,OAAO,iBAAiB,QAAQ;AAAA,EACpC,CAAC,QAAQ,EAAE,GAAG,YAAY,KAAK,SAAQ,CAAE;AAAA,EACzC,CAAC,QAAQ,EAAE,GAAG,YAAY,KAAK,SAAQ,CAAE;AAC3C,CAAC;ACgBD,MAAM,WAAW,MAAM;AAAA,EACrB,CACE;AAAA,IACE,OAAO;AAAA,IACP,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA,oBAAoB;AAAA,IACpB,YAAY;AAAA,IACZ,SAAS,cAAc,CAAC;AAAA,IACxB,cAAc;AAAA,IACd,WAAW;AAAA,KAEb,QACG;;AACH,UAAM,CAAC,MAAM,OAAO,IAAI,MAAM,SAAS,KAAK;AAC5C,UAAM,CAAC,OAAO,QAAQ,IAAI,MAAM,SAAS,aAAa,EAAE;AACxD,UAAM,CAAC,YAAY,aAAa,IAAI,MAAM,SAAS,EAAE;AACrD,UAAM,CAAC,YAAY,aAAa,IAC9B,MAAM,SAAwB,WAAW;AAE3C,UAAM,UAAU,MAAM;AACpB,UAAI,cAAc,QAAW;AAC3B,iBAAS,SAAS;AAAA,MACpB;AAAA,IAAA,GACC,CAAC,SAAS,CAAC;AAEd,UAAM,UAAU,MAAM;AACpB,oBAAc,WAAW;AAAA,IAAA,GACxB,CAAC,WAAW,C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AA;AAAA,IACF,EAAA,CAAA;AAAA,EAEJ;AACF;AAEA,SAAS,cAAc;","x_google_ignoreList":[0,1]}
@@ -1,10 +1,10 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Button } from "./button.js";
3
3
  import { f as format, C as Calendar$1, i as isValid } from "../../Calendar-DWT4e7Th.js";
4
- import { P as Popover, a as PopoverTrigger, b as PopoverContent } from "../../popover-CcrzvSk7.js";
4
+ import { P as Popover, a as PopoverTrigger, b as PopoverContent } from "../../popover-DpJhfyvx.js";
5
5
  import { cn } from "../../utils/utils.js";
6
6
  import { forwardRef, useState, useEffect } from "react";
7
- import { Input } from "./input.js";
7
+ import { I as Input } from "../../input-Cm_FjJOF.js";
8
8
  import { c as createLucideIcon } from "../../createLucideIcon-KSoQd4Wi.js";
9
9
  import { X } from "../../x-DciOkaU0.js";
10
10
  import { p as parse } from "../../parse-D2yb8751.js";
@@ -1,10 +1,10 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Button } from "./button.js";
3
3
  import { t as toDate, c as constructFrom, s as setMonth, f as format, C as Calendar, i as isValid } from "../../Calendar-DWT4e7Th.js";
4
- import { P as Popover, a as PopoverTrigger, b as PopoverContent, c as PopoverClose } from "../../popover-CcrzvSk7.js";
4
+ import { P as Popover, a as PopoverTrigger, b as PopoverContent, c as PopoverClose } from "../../popover-DpJhfyvx.js";
5
5
  import { cn } from "../../utils/utils.js";
6
6
  import React__default, { forwardRef, useEffect } from "react";
7
- import { Input } from "./input.js";
7
+ import { I as Input } from "../../input-Cm_FjJOF.js";
8
8
  import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "./select.js";
9
9
  import { c as createLucideIcon } from "../../createLucideIcon-KSoQd4Wi.js";
10
10
  import { X } from "../../x-DciOkaU0.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { D, c, e, i, g, f, b, a, h, d } from "../../Dialog-CCrUyF91.js";
3
+ import { D, c, e, i, g, f, b, a, h, d } from "../../Dialog-BmQoVu5C.js";
4
4
  import "../../utils/utils.js";
5
5
  import "../../x-DciOkaU0.js";
6
6
  export {
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { P as Primitive } from "../../index-B761_inZ.js";
4
- import { P as Presence } from "../../index-wO-IHm1z.js";
5
- import { c as createContextScope, b as composeEventHandlers, a as useCallbackRef, u as useLayoutEffect2 } from "../../index-NZPkObcw.js";
4
+ import { P as Presence } from "../../index-CA2QNu6z.js";
5
+ import { c as createContextScope, b as composeEventHandlers, a as useCallbackRef, u as useLayoutEffect2 } from "../../index-CDCkSjVs.js";
6
6
  import { u as useComposedRefs } from "../../index-D9mvqz1C.js";
7
7
  import { u as useDirection } from "../../index-Bk8dRTPE.js";
8
8
  import { c as clamp } from "../../index-IXOTxK3N.js";
@@ -1,11 +1,11 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { u as useComposedRefs } from "../../index-D9mvqz1C.js";
4
- import { c as createContextScope, b as composeEventHandlers } from "../../index-NZPkObcw.js";
5
- import { u as useControllableState } from "../../index-B0wyIFEr.js";
4
+ import { c as createContextScope, b as composeEventHandlers } from "../../index-CDCkSjVs.js";
5
+ import { u as useControllableState } from "../../index-DFSwSCB0.js";
6
6
  import { u as usePrevious } from "../../index-CshadhlS.js";
7
- import { u as useSize } from "../../index-CK9QfV6i.js";
8
- import { P as Presence } from "../../index-wO-IHm1z.js";
7
+ import { u as useSize } from "../../index-pLFWXSOv.js";
8
+ import { P as Presence } from "../../index-CA2QNu6z.js";
9
9
  import { P as Primitive } from "../../index-B761_inZ.js";
10
10
  import { cn } from "../../utils/utils.js";
11
11
  import { C as Check } from "../../check-B7dJm08z.js";
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
6
6
  ref?: React.Ref<HTMLDivElement> | undefined;
7
7
  } & {
8
8
  asChild?: boolean | undefined;
9
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
9
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
10
10
  label?: string | undefined;
11
11
  shouldFilter?: boolean | undefined;
12
12
  filter?: ((value: string, search: string, keywords?: string[] | undefined) => number) | undefined;
@@ -32,7 +32,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
32
32
  ref?: React.Ref<HTMLDivElement> | undefined;
33
33
  } & {
34
34
  asChild?: boolean | undefined;
35
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
35
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
36
36
  label?: string | undefined;
37
37
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
38
  declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
@@ -41,14 +41,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
41
41
  ref?: React.Ref<HTMLDivElement> | undefined;
42
42
  } & {
43
43
  asChild?: boolean | undefined;
44
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
44
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
45
  declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
46
46
  children?: React.ReactNode;
47
47
  } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
48
48
  ref?: React.Ref<HTMLDivElement> | undefined;
49
49
  } & {
50
50
  asChild?: boolean | undefined;
51
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
51
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
52
52
  heading?: React.ReactNode;
53
53
  value?: string | undefined;
54
54
  forceMount?: boolean | undefined;
@@ -57,7 +57,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
57
57
  ref?: React.Ref<HTMLDivElement> | undefined;
58
58
  } & {
59
59
  asChild?: boolean | undefined;
60
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
60
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
61
61
  alwaysRender?: boolean | undefined;
62
62
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
63
63
  declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
@@ -66,7 +66,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
66
66
  ref?: React.Ref<HTMLDivElement> | undefined;
67
67
  } & {
68
68
  asChild?: boolean | undefined;
69
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
69
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
70
70
  disabled?: boolean | undefined;
71
71
  onSelect?: ((value: string) => void) | undefined;
72
72
  value?: string | undefined;
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import React__default from "react";
4
- import { R as Root, P as Portal, O as Overlay, C as Content, D as Dialog, e as DialogContent } from "../../Dialog-CCrUyF91.js";
4
+ import { R as Root, P as Portal, O as Overlay, C as Content, D as Dialog, e as DialogContent } from "../../Dialog-BmQoVu5C.js";
5
5
  import { P as Primitive } from "../../index-B761_inZ.js";
6
- import { u as useId } from "../../index-DzfDO78K.js";
6
+ import { u as useId } from "../../index-Deoi9R3y.js";
7
7
  import { cn } from "../../utils/utils.js";
8
8
  import { c as createLucideIcon } from "../../createLucideIcon-KSoQd4Wi.js";
9
9
  /**
@@ -1,110 +1,11 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { cn } from "../../utils/utils.js";
4
- import { Button } from "./button.js";
5
- import SpinnerIcon from "../SpinnerIcon.js";
6
- import { c as createLucideIcon } from "../../createLucideIcon-KSoQd4Wi.js";
7
- import { X } from "../../x-DciOkaU0.js";
8
- /**
9
- * @license lucide-react v0.456.0 - ISC
10
- *
11
- * This source code is licensed under the ISC license.
12
- * See the LICENSE file in the root directory of this source tree.
13
- */
14
- const LoaderCircle = createLucideIcon("LoaderCircle", [
15
- ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
16
- ]);
17
- const Input = React.forwardRef(
18
- ({
19
- className,
20
- type,
21
- value: propValue,
22
- onChange,
23
- clearable = false,
24
- debounceTimeout,
25
- disabled,
26
- ...props
27
- }, ref) => {
28
- const [internalValue, setInternalValue] = React.useState(propValue || "");
29
- const debounceTimeoutRef = React.useRef(null);
30
- const [inputIsChanging, setInputIsChanging] = React.useState(false);
31
- React.useEffect(() => {
32
- setInternalValue(propValue ?? "");
33
- }, [propValue]);
34
- const handleDebouncedChange = React.useCallback(
35
- (e) => {
36
- const { value } = e.target;
37
- setInternalValue(value);
38
- setInputIsChanging(true);
39
- if (debounceTimeout) {
40
- if (debounceTimeoutRef.current)
41
- clearTimeout(debounceTimeoutRef.current);
42
- debounceTimeoutRef.current = setTimeout(() => {
43
- const newValue = type === "number" && value === "" ? null : value;
44
- setInternalValue(newValue || "");
45
- onChange == null ? void 0 : onChange({
46
- target: { value: newValue }
47
- });
48
- setInputIsChanging(false);
49
- }, debounceTimeout);
50
- } else {
51
- const newValue = type === "number" && value === "" ? null : value;
52
- setInternalValue(newValue || "");
53
- onChange == null ? void 0 : onChange({
54
- target: { value: newValue }
55
- });
56
- setInputIsChanging(false);
57
- }
58
- },
59
- [debounceTimeout, type, onChange]
60
- );
61
- const handleClear = () => {
62
- setInternalValue("");
63
- onChange == null ? void 0 : onChange({
64
- target: { value: type === "number" ? null : "" }
65
- });
66
- };
67
- return /* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
68
- /* @__PURE__ */ jsx(
69
- "input",
70
- {
71
- type,
72
- value: internalValue,
73
- onChange: handleDebouncedChange,
74
- className: cn(
75
- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 " + (clearable && !disabled && !!internalValue ? " pr-10 " : " pr-3 ") + " text-base ring-offset-ring file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-80 disabled:border-opacity-100 md:text-sm",
76
- className
77
- ),
78
- ref,
79
- disabled,
80
- ...props
81
- }
82
- ),
83
- inputIsChanging === true && /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-0 h-full px-2 py-2 hover:bg-transparent text-muted-foreground", children: /* @__PURE__ */ jsx(
84
- SpinnerIcon,
85
- {
86
- icon: /* @__PURE__ */ jsx(LoaderCircle, { size: 25, className: "text-muted-foreground" })
87
- }
88
- ) }),
89
- !!internalValue && clearable && !disabled && /* @__PURE__ */ jsxs(
90
- Button,
91
- {
92
- type: "button",
93
- variant: "ghost",
94
- size: "icon",
95
- className: "absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",
96
- onClick: handleClear,
97
- children: [
98
- /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-muted-foreground" }),
99
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Clear input" })
100
- ]
101
- }
102
- )
103
- ] });
104
- }
105
- );
106
- Input.displayName = "Input";
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../utils/utils.js";
4
+ import "./button.js";
5
+ import "../SpinnerIcon.js";
6
+ import { I } from "../../input-Cm_FjJOF.js";
7
+ import "../../x-DciOkaU0.js";
107
8
  export {
108
- Input
9
+ I as Input
109
10
  };
110
11
  //# sourceMappingURL=input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sources":["../../../node_modules/lucide-react/dist/esm/icons/loader-circle.js","../../../lib/components/ui/input.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.456.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst LoaderCircle = createLucideIcon(\"LoaderCircle\", [\n [\"path\", { d: \"M21 12a9 9 0 1 1-6.219-8.56\", key: \"13zald\" }]\n]);\n\nexport { LoaderCircle as default };\n//# sourceMappingURL=loader-circle.js.map\n","import * as React from \"react\";\r\nimport { cn } from \"../..//utils/utils\";\r\nimport { Button } from \"./button\";\r\nimport { LoaderCircleIcon, X } from \"lucide-react\";\r\nimport SpinnerIcon from \"../SpinnerIcon\";\r\n\r\ninterface IInputProps extends React.InputHTMLAttributes<HTMLInputElement> {\r\n debounceTimeout?: number;\r\n clearable?: boolean;\r\n}\r\nconst Input = React.forwardRef<HTMLInputElement, IInputProps>(\r\n (\r\n {\r\n className,\r\n type,\r\n value: propValue,\r\n onChange,\r\n clearable = false,\r\n debounceTimeout,\r\n disabled,\r\n ...props\r\n },\r\n ref\r\n ) => {\r\n const [internalValue, setInternalValue] = React.useState(propValue || \"\");\r\n const debounceTimeoutRef = React.useRef<NodeJS.Timeout | null>(null); // Ref to hold the debounce timeout\r\n const [inputIsChanging, setInputIsChanging] = React.useState(false);\r\n\r\n React.useEffect(() => {\r\n setInternalValue(propValue ?? \"\");\r\n }, [propValue]);\r\n\r\n const handleDebouncedChange = React.useCallback(\r\n (e: React.ChangeEvent<HTMLInputElement>) => {\r\n const { value } = e.target;\r\n setInternalValue(value); // Update local state\r\n setInputIsChanging(true);\r\n\r\n if (debounceTimeout) {\r\n // Clear any previous debounce timeout\r\n if (debounceTimeoutRef.current)\r\n clearTimeout(debounceTimeoutRef.current);\r\n\r\n // Set a new debounce timeout\r\n debounceTimeoutRef.current = setTimeout(() => {\r\n const newValue: string | null =\r\n type === \"number\" && value === \"\" ? null : value;\r\n setInternalValue(newValue || \"\");\r\n onChange?.({\r\n target: { value: newValue },\r\n } as React.ChangeEvent<HTMLInputElement>);\r\n setInputIsChanging(false);\r\n }, debounceTimeout);\r\n } else {\r\n const newValue = type === \"number\" && value === \"\" ? null : value;\r\n setInternalValue(newValue || \"\");\r\n onChange?.({\r\n target: { value: newValue },\r\n } as React.ChangeEvent<HTMLInputElement>);\r\n setInputIsChanging(false);\r\n }\r\n },\r\n [debounceTimeout, type, onChange]\r\n );\r\n\r\n const handleClear = () => {\r\n setInternalValue(\"\");\r\n onChange?.({\r\n target: { value: type === \"number\" ? null : \"\" },\r\n } as React.ChangeEvent<HTMLInputElement>);\r\n };\r\n\r\n return (\r\n <div className=\"relative w-full\">\r\n <input\r\n type={type}\r\n value={internalValue}\r\n onChange={handleDebouncedChange}\r\n className={cn(\r\n \"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 \" +\r\n (clearable && !disabled && !!internalValue\r\n ? \" pr-10 \"\r\n : \" pr-3 \") +\r\n \" text-base ring-offset-ring file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-80 disabled:border-opacity-100 md:text-sm\",\r\n className\r\n )}\r\n ref={ref}\r\n disabled={disabled}\r\n {...props}\r\n />\r\n\r\n {inputIsChanging === true && (\r\n <div className=\"absolute right-0 top-0 h-full px-2 py-2 hover:bg-transparent text-muted-foreground\">\r\n <SpinnerIcon\r\n icon={\r\n <LoaderCircleIcon size={25} className=\"text-muted-foreground\" />\r\n }\r\n />\r\n </div>\r\n )}\r\n {!!internalValue && clearable && !disabled && (\r\n <Button\r\n type=\"button\"\r\n variant=\"ghost\"\r\n size=\"icon\"\r\n className=\"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent\"\r\n onClick={handleClear}\r\n >\r\n <X className=\"h-4 w-4 text-muted-foreground\" />\r\n <span className=\"sr-only\">Clear input</span>\r\n </Button>\r\n )}\r\n </div>\r\n );\r\n }\r\n);\r\nInput.displayName = \"Input\";\r\n\r\nexport { Input };\r\n"],"names":["LoaderCircleIcon"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAM,eAAe,iBAAiB,gBAAgB;AAAA,EACpD,CAAC,QAAQ,EAAE,GAAG,+BAA+B,KAAK,SAAQ,CAAE;AAC9D,CAAC;ACDD,MAAM,QAAQ,MAAM;AAAA,EAClB,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,GAAG;AAAA,KAEL,QACG;AACH,UAAM,CAAC,eAAe,gBAAgB,IAAI,MAAM,SAAS,aAAa,EAAE;AAClE,UAAA,qBAAqB,MAAM,OAA8B,IAAI;AACnE,UAAM,CAAC,iBAAiB,kBAAkB,IAAI,MAAM,SAAS,KAAK;AAElE,UAAM,UAAU,MAAM;AACpB,uBAAiB,aAAa,EAAE;AAAA,IAAA,GAC/B,CAAC,SAAS,CAAC;AAEd,UAAM,wBAAwB,MAAM;AAAA,MAClC,CAAC,MAA2C;AACpC,cAAA,EAAE,MAAM,IAAI,EAAE;AACpB,yBAAiB,KAAK;AACtB,2BAAmB,IAAI;AAEvB,YAAI,iBAAiB;AAEnB,cAAI,mBAAmB;AACrB,yBAAa,mBAAmB,OAAO;AAGtB,6BAAA,UAAU,WAAW,MAAM;AAC5C,kBAAM,WACJ,SAAS,YAAY,UAAU,KAAK,OAAO;AAC7C,6BAAiB,YAAY,EAAE;AACpB,iDAAA;AAAA,cACT,QAAQ,EAAE,OAAO,SAAS;AAAA,YAAA;AAE5B,+BAAmB,KAAK;AAAA,aACvB,eAAe;AAAA,QAAA,OACb;AACL,gBAAM,WAAW,SAAS,YAAY,UAAU,KAAK,OAAO;AAC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[],"names":[],"mappings":";;;;;;;"}
@@ -5,7 +5,7 @@ import { cn } from "../../utils/utils.js";
5
5
  import { Separator } from "./separator.js";
6
6
  import { Button } from "./button.js";
7
7
  import { Badge } from "./badge.js";
8
- import { P as Popover, a as PopoverTrigger, b as PopoverContent } from "../../popover-CcrzvSk7.js";
8
+ import { P as Popover, a as PopoverTrigger, b as PopoverContent } from "../../popover-DpJhfyvx.js";
9
9
  import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator } from "./command.js";
10
10
  import { c as createLucideIcon } from "../../createLucideIcon-KSoQd4Wi.js";
11
11
  import { X } from "../../x-DciOkaU0.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { P, b, a } from "../../popover-CcrzvSk7.js";
3
+ import { P, b, a } from "../../popover-DpJhfyvx.js";
4
4
  import "../../utils/utils.js";
5
5
  export {
6
6
  P as Popover,
@@ -1,15 +1,15 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { a as useCallbackRef, b as composeEventHandlers, c as createContextScope$1 } from "../../index-NZPkObcw.js";
3
+ import { a as useCallbackRef, b as composeEventHandlers, c as createContextScope$1 } from "../../index-CDCkSjVs.js";
4
4
  import { u as useComposedRefs } from "../../index-D9mvqz1C.js";
5
5
  import { P as Primitive } from "../../index-B761_inZ.js";
6
6
  import { c as createCollection } from "../../index-E5yk6fTE.js";
7
- import { u as useId } from "../../index-DzfDO78K.js";
8
- import { u as useControllableState } from "../../index-B0wyIFEr.js";
7
+ import { u as useId } from "../../index-Deoi9R3y.js";
8
+ import { u as useControllableState } from "../../index-DFSwSCB0.js";
9
9
  import { u as useDirection } from "../../index-Bk8dRTPE.js";
10
- import { u as useSize } from "../../index-CK9QfV6i.js";
10
+ import { u as useSize } from "../../index-pLFWXSOv.js";
11
11
  import { u as usePrevious } from "../../index-CshadhlS.js";
12
- import { P as Presence } from "../../index-wO-IHm1z.js";
12
+ import { P as Presence } from "../../index-CA2QNu6z.js";
13
13
  import { cn } from "../../utils/utils.js";
14
14
  import { c as createLucideIcon } from "../../createLucideIcon-KSoQd4Wi.js";
15
15
  /**
@@ -2,16 +2,16 @@ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { P as Primitive, r as reactDomExports } from "../../index-B761_inZ.js";
4
4
  import { c as clamp } from "../../index-IXOTxK3N.js";
5
- import { c as createContextScope, b as composeEventHandlers, u as useLayoutEffect2, a as useCallbackRef } from "../../index-NZPkObcw.js";
5
+ import { c as createContextScope, b as composeEventHandlers, u as useLayoutEffect2, a as useCallbackRef } from "../../index-CDCkSjVs.js";
6
6
  import { c as createCollection } from "../../index-E5yk6fTE.js";
7
7
  import { u as useComposedRefs, S as Slot } from "../../index-D9mvqz1C.js";
8
8
  import { u as useDirection } from "../../index-Bk8dRTPE.js";
9
- import { D as DismissableLayer } from "../../index-BcR8DnnV.js";
10
- import { h as hideOthers, u as useFocusGuards, R as ReactRemoveScroll, F as FocusScope } from "../../Combination-D2GKeTwa.js";
11
- import { u as useId } from "../../index-DzfDO78K.js";
12
- import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from "../../index-CcNKXchf.js";
13
- import { P as Portal$1 } from "../../index-D75exu1X.js";
14
- import { u as useControllableState } from "../../index-B0wyIFEr.js";
9
+ import { D as DismissableLayer } from "../../index-Dz0Z0Mhp.js";
10
+ import { h as hideOthers, u as useFocusGuards, R as ReactRemoveScroll, F as FocusScope } from "../../index-DoIb06Ge.js";
11
+ import { u as useId } from "../../index-Deoi9R3y.js";
12
+ import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from "../../index-DjvLSytK.js";
13
+ import { P as Portal$1 } from "../../index-DDUC0qyC.js";
14
+ import { u as useControllableState } from "../../index-DFSwSCB0.js";
15
15
  import { u as usePrevious } from "../../index-CshadhlS.js";
16
16
  import { V as VisuallyHidden } from "../../index-cCT-Qkr7.js";
17
17
  import { cn } from "../../utils/utils.js";
@@ -1,13 +1,13 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { P as Primitive, r as reactDomExports, d as dispatchDiscreteCustomEvent } from "../../index-B761_inZ.js";
4
- import { c as createContextScope, a as useCallbackRef, b as composeEventHandlers, u as useLayoutEffect2 } from "../../index-NZPkObcw.js";
4
+ import { c as createContextScope, a as useCallbackRef, b as composeEventHandlers, u as useLayoutEffect2 } from "../../index-CDCkSjVs.js";
5
5
  import { u as useComposedRefs } from "../../index-D9mvqz1C.js";
6
6
  import { c as createCollection } from "../../index-E5yk6fTE.js";
7
- import { B as Branch, R as Root } from "../../index-BcR8DnnV.js";
8
- import { P as Portal } from "../../index-D75exu1X.js";
9
- import { P as Presence } from "../../index-wO-IHm1z.js";
10
- import { u as useControllableState } from "../../index-B0wyIFEr.js";
7
+ import { B as Branch, R as Root } from "../../index-Dz0Z0Mhp.js";
8
+ import { P as Portal } from "../../index-DDUC0qyC.js";
9
+ import { P as Presence } from "../../index-CA2QNu6z.js";
10
+ import { u as useControllableState } from "../../index-DFSwSCB0.js";
11
11
  import { V as VisuallyHidden } from "../../index-cCT-Qkr7.js";
12
12
  import { c as cva } from "../../index-udNDzvjB.js";
13
13
  import { cn } from "../../utils/utils.js";
@@ -1,13 +1,13 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { c as createContextScope, b as composeEventHandlers } from "../../index-NZPkObcw.js";
3
+ import { c as createContextScope, b as composeEventHandlers } from "../../index-CDCkSjVs.js";
4
4
  import { u as useComposedRefs, a as Slottable } from "../../index-D9mvqz1C.js";
5
- import { D as DismissableLayer } from "../../index-BcR8DnnV.js";
6
- import { u as useId } from "../../index-DzfDO78K.js";
7
- import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2 } from "../../index-CcNKXchf.js";
8
- import { P as Presence } from "../../index-wO-IHm1z.js";
5
+ import { D as DismissableLayer } from "../../index-Dz0Z0Mhp.js";
6
+ import { u as useId } from "../../index-Deoi9R3y.js";
7
+ import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2 } from "../../index-DjvLSytK.js";
8
+ import { P as Presence } from "../../index-CA2QNu6z.js";
9
9
  import { P as Primitive } from "../../index-B761_inZ.js";
10
- import { u as useControllableState } from "../../index-B0wyIFEr.js";
10
+ import { u as useControllableState } from "../../index-DFSwSCB0.js";
11
11
  import { R as Root } from "../../index-cCT-Qkr7.js";
12
12
  import { cn } from "../../utils/utils.js";
13
13
  var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
@@ -0,0 +1,111 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "./utils/utils.js";
4
+ import { Button } from "./components/ui/button.js";
5
+ import SpinnerIcon from "./components/SpinnerIcon.js";
6
+ import { c as createLucideIcon } from "./createLucideIcon-KSoQd4Wi.js";
7
+ import { X } from "./x-DciOkaU0.js";
8
+ /**
9
+ * @license lucide-react v0.456.0 - ISC
10
+ *
11
+ * This source code is licensed under the ISC license.
12
+ * See the LICENSE file in the root directory of this source tree.
13
+ */
14
+ const LoaderCircle = createLucideIcon("LoaderCircle", [
15
+ ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
16
+ ]);
17
+ const Input = React.forwardRef(
18
+ ({
19
+ className,
20
+ type,
21
+ value: propValue,
22
+ onChange,
23
+ clearable = false,
24
+ debounceTimeout,
25
+ disabled,
26
+ ...props
27
+ }, ref) => {
28
+ const [internalValue, setInternalValue] = React.useState(propValue || "");
29
+ const debounceTimeoutRef = React.useRef(null);
30
+ const [inputIsChanging, setInputIsChanging] = React.useState(false);
31
+ React.useEffect(() => {
32
+ setInternalValue(propValue ?? "");
33
+ }, [propValue]);
34
+ const handleDebouncedChange = React.useCallback(
35
+ (e) => {
36
+ const { value } = e.target;
37
+ setInternalValue(value);
38
+ setInputIsChanging(true);
39
+ if (debounceTimeout) {
40
+ if (debounceTimeoutRef.current)
41
+ clearTimeout(debounceTimeoutRef.current);
42
+ debounceTimeoutRef.current = setTimeout(() => {
43
+ const newValue = type === "number" && value === "" ? null : value;
44
+ setInternalValue(newValue || "");
45
+ onChange == null ? void 0 : onChange({
46
+ target: { value: newValue }
47
+ });
48
+ setInputIsChanging(false);
49
+ }, debounceTimeout);
50
+ } else {
51
+ const newValue = type === "number" && value === "" ? null : value;
52
+ setInternalValue(newValue || "");
53
+ onChange == null ? void 0 : onChange({
54
+ target: { value: newValue }
55
+ });
56
+ setInputIsChanging(false);
57
+ }
58
+ },
59
+ [debounceTimeout, type, onChange]
60
+ );
61
+ const handleClear = () => {
62
+ setInternalValue("");
63
+ onChange == null ? void 0 : onChange({
64
+ target: { value: type === "number" ? null : "" }
65
+ });
66
+ };
67
+ return /* @__PURE__ */ jsxs("div", { className: "relative w-full", children: [
68
+ /* @__PURE__ */ jsx(
69
+ "input",
70
+ {
71
+ type,
72
+ value: internalValue,
73
+ onChange: handleDebouncedChange,
74
+ className: cn(
75
+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 " + (clearable && !disabled && !!internalValue ? " pr-10 " : " pr-3 ") + " text-base ring-offset-ring file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-80 disabled:border-opacity-100 md:text-sm",
76
+ className
77
+ ),
78
+ ref,
79
+ disabled,
80
+ ...props
81
+ }
82
+ ),
83
+ inputIsChanging === true && /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-0 h-full px-2 py-2 hover:bg-transparent text-muted-foreground", children: /* @__PURE__ */ jsx(
84
+ SpinnerIcon,
85
+ {
86
+ icon: /* @__PURE__ */ jsx(LoaderCircle, { size: 25, className: "text-muted-foreground" })
87
+ }
88
+ ) }),
89
+ !!internalValue && clearable && !disabled && /* @__PURE__ */ jsxs(
90
+ Button,
91
+ {
92
+ type: "button",
93
+ variant: "ghost",
94
+ size: "icon",
95
+ className: "absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",
96
+ onClick: handleClear,
97
+ children: [
98
+ /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-muted-foreground" }),
99
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Clear input" })
100
+ ]
101
+ }
102
+ )
103
+ ] });
104
+ }
105
+ );
106
+ Input.displayName = "Input";
107
+ export {
108
+ Input as I,
109
+ LoaderCircle as L
110
+ };
111
+ //# sourceMappingURL=input-Cm_FjJOF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-Cm_FjJOF.js","sources":["../node_modules/lucide-react/dist/esm/icons/loader-circle.js","../lib/components/ui/input.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.456.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst LoaderCircle = createLucideIcon(\"LoaderCircle\", [\n [\"path\", { d: \"M21 12a9 9 0 1 1-6.219-8.56\", key: \"13zald\" }]\n]);\n\nexport { LoaderCircle as default };\n//# sourceMappingURL=loader-circle.js.map\n","import * as React from \"react\";\r\nimport { cn } from \"../..//utils/utils\";\r\nimport { Button } from \"./button\";\r\nimport { LoaderCircleIcon, X } from \"lucide-react\";\r\nimport SpinnerIcon from \"../SpinnerIcon\";\r\n\r\ninterface IInputProps extends React.InputHTMLAttributes<HTMLInputElement> {\r\n debounceTimeout?: number;\r\n clearable?: boolean;\r\n}\r\nconst Input = React.forwardRef<HTMLInputElement, IInputProps>(\r\n (\r\n {\r\n className,\r\n type,\r\n value: propValue,\r\n onChange,\r\n clearable = false,\r\n debounceTimeout,\r\n disabled,\r\n ...props\r\n },\r\n ref\r\n ) => {\r\n const [internalValue, setInternalValue] = React.useState(propValue || \"\");\r\n const debounceTimeoutRef = React.useRef<NodeJS.Timeout | null>(null); // Ref to hold the debounce timeout\r\n const [inputIsChanging, setInputIsChanging] = React.useState(false);\r\n\r\n React.useEffect(() => {\r\n setInternalValue(propValue ?? \"\");\r\n }, [propValue]);\r\n\r\n const handleDebouncedChange = React.useCallback(\r\n (e: React.ChangeEvent<HTMLInputElement>) => {\r\n const { value } = e.target;\r\n setInternalValue(value); // Update local state\r\n setInputIsChanging(true);\r\n\r\n if (debounceTimeout) {\r\n // Clear any previous debounce timeout\r\n if (debounceTimeoutRef.current)\r\n clearTimeout(debounceTimeoutRef.current);\r\n\r\n // Set a new debounce timeout\r\n debounceTimeoutRef.current = setTimeout(() => {\r\n const newValue: string | null =\r\n type === \"number\" && value === \"\" ? null : value;\r\n setInternalValue(newValue || \"\");\r\n onChange?.({\r\n target: { value: newValue },\r\n } as React.ChangeEvent<HTMLInputElement>);\r\n setInputIsChanging(false);\r\n }, debounceTimeout);\r\n } else {\r\n const newValue = type === \"number\" && value === \"\" ? null : value;\r\n setInternalValue(newValue || \"\");\r\n onChange?.({\r\n target: { value: newValue },\r\n } as React.ChangeEvent<HTMLInputElement>);\r\n setInputIsChanging(false);\r\n }\r\n },\r\n [debounceTimeout, type, onChange]\r\n );\r\n\r\n const handleClear = () => {\r\n setInternalValue(\"\");\r\n onChange?.({\r\n target: { value: type === \"number\" ? null : \"\" },\r\n } as React.ChangeEvent<HTMLInputElement>);\r\n };\r\n\r\n return (\r\n <div className=\"relative w-full\">\r\n <input\r\n type={type}\r\n value={internalValue}\r\n onChange={handleDebouncedChange}\r\n className={cn(\r\n \"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 \" +\r\n (clearable && !disabled && !!internalValue\r\n ? \" pr-10 \"\r\n : \" pr-3 \") +\r\n \" text-base ring-offset-ring file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-80 disabled:border-opacity-100 md:text-sm\",\r\n className\r\n )}\r\n ref={ref}\r\n disabled={disabled}\r\n {...props}\r\n />\r\n\r\n {inputIsChanging === true && (\r\n <div className=\"absolute right-0 top-0 h-full px-2 py-2 hover:bg-transparent text-muted-foreground\">\r\n <SpinnerIcon\r\n icon={\r\n <LoaderCircleIcon size={25} className=\"text-muted-foreground\" />\r\n }\r\n />\r\n </div>\r\n )}\r\n {!!internalValue && clearable && !disabled && (\r\n <Button\r\n type=\"button\"\r\n variant=\"ghost\"\r\n size=\"icon\"\r\n className=\"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent\"\r\n onClick={handleClear}\r\n >\r\n <X className=\"h-4 w-4 text-muted-foreground\" />\r\n <span className=\"sr-only\">Clear input</span>\r\n </Button>\r\n )}\r\n </div>\r\n );\r\n }\r\n);\r\nInput.displayName = \"Input\";\r\n\r\nexport { Input };\r\n"],"names":["LoaderCircleIcon"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,eAAe,iBAAiB,gBAAgB;AAAA,EACpD,CAAC,QAAQ,EAAE,GAAG,+BAA+B,KAAK,SAAQ,CAAE;AAC9D,CAAC;ACDD,MAAM,QAAQ,MAAM;AAAA,EAClB,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,GAAG;AAAA,KAEL,QACG;AACH,UAAM,CAAC,eAAe,gBAAgB,IAAI,MAAM,SAAS,aAAa,EAAE;AAClE,UAAA,qBAAqB,MAAM,OAA8B,IAAI;AACnE,UAAM,CAAC,iBAAiB,kBAAkB,IAAI,MAAM,SAAS,KAAK;AAElE,UAAM,UAAU,MAAM;AACpB,uBAAiB,aAAa,EAAE;AAAA,IAAA,GAC/B,CAAC,SAAS,CAAC;AAEd,UAAM,wBAAwB,MAAM;AAAA,MAClC,CAAC,MAA2C;AACpC,cAAA,EAAE,MAAM,IAAI,EAAE;AACp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;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,WAAU;AAAA,UACV,SAAS;AAAA,UAET,UAAA;AAAA,YAAC,oBAAA,GAAA,EAAE,WAAU,gCAAgC,CAAA;AAAA,YAC5C,oBAAA,QAAA,EAAK,WAAU,WAAU,UAAW,eAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACvC;AAAA,IAEJ,EAAA,CAAA;AAAA,EAEJ;AACF;AACA,MAAM,cAAc;","x_google_ignoreList":[0]}
package/dist/main.js CHANGED
@@ -35,9 +35,9 @@ import { hasRightInModule } from "./utils/hasRightInModule.js";
35
35
  import { hasRole } from "./utils/hasRole.js";
36
36
  import { EApproverRoles, EApproverTypes, EDecisionsTranslations, EEntity, Eagendy, Eassignments, Estavy } from "./types.js";
37
37
  import { useScreenSize } from "./hooks/useScreenSize.js";
38
- import { D, c, e, i, g, f, b, a, h, d } from "./Dialog-CCrUyF91.js";
38
+ import { D, c, e, i, g, f, b, a, h, d } from "./Dialog-BmQoVu5C.js";
39
39
  import { ScrollArea, ScrollBar } from "./components/ui/ScrollArea.js";
40
- import { Input } from "./components/ui/input.js";
40
+ import { I } from "./input-Cm_FjJOF.js";
41
41
  import { Form, FormControl, FormDescription, FormFieldCN, FormItem, FormLabel, FormMessage, useFormField } from "./components/ui/form.js";
42
42
  import { RadioGroupCN, RadioGroupItem } from "./components/ui/radioGroup.js";
43
43
  import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "./components/ui/command.js";
@@ -108,7 +108,7 @@ export {
108
108
  FormItem,
109
109
  FormLabel,
110
110
  FormMessage,
111
- Input,
111
+ I as Input,
112
112
  default6 as InputField,
113
113
  Modal,
114
114
  ModalDialog,