@chekinapp/ui 0.0.144 → 0.1.0

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
@@ -11855,12 +11855,12 @@ function ResponsiveDropdown({
11855
11855
  ] });
11856
11856
  }
11857
11857
 
11858
- // src/dashboard/input/Input.tsx
11858
+ // src/fields/input/Input.tsx
11859
11859
  import * as React44 from "react";
11860
11860
  import { Eye, Minus as Minus4, Plus as Plus3, X as X9 } from "lucide-react";
11861
11861
  import { useTranslation as useTranslation25 } from "react-i18next";
11862
11862
 
11863
- // src/dashboard/input/useInputValueState.ts
11863
+ // src/fields/input/useInputValueState.ts
11864
11864
  import * as React43 from "react";
11865
11865
  var isEmptyValue = (value) => {
11866
11866
  if (value === void 0 || value === null) return true;
@@ -11925,7 +11925,7 @@ function useInputValueState({
11925
11925
  };
11926
11926
  }
11927
11927
 
11928
- // src/dashboard/_fieldset/Fieldset.tsx
11928
+ // src/fields/_fieldset/Fieldset.tsx
11929
11929
  import { Fragment as Fragment15, jsx as jsx141, jsxs as jsxs88 } from "react/jsx-runtime";
11930
11930
  function Fieldset({
11931
11931
  isActivated,
@@ -11954,7 +11954,7 @@ function Fieldset({
11954
11954
  className: cn(
11955
11955
  "absolute box-border inline-flex max-w-full cursor-text items-center pl-[3px] pr-5 transition-all duration-100 ease-in",
11956
11956
  "left-[13px] text-[var(--chekin-color-gray-1)]",
11957
- isEmpty && !isFocused ? "top-[12px]" : "top-[-10px] !px-1",
11957
+ isEmpty && !isFocused ? "top-[var(--field-label-top)]" : "top-[var(--field-label-raised-top)] !px-1",
11958
11958
  isFocused && "text-[var(--chekin-color-brand-blue)]",
11959
11959
  raised && invalid && "text-[var(--error-message-color)]",
11960
11960
  readOnly && "cursor-default",
@@ -12027,7 +12027,7 @@ function Fieldset({
12027
12027
  ] });
12028
12028
  }
12029
12029
 
12030
- // src/dashboard/input/Input.tsx
12030
+ // src/fields/input/Input.tsx
12031
12031
  import { jsx as jsx142, jsxs as jsxs89 } from "react/jsx-runtime";
12032
12032
  var Input = React44.forwardRef(
12033
12033
  ({
@@ -12303,7 +12303,7 @@ var Input = React44.forwardRef(
12303
12303
  );
12304
12304
  Input.displayName = "Input";
12305
12305
 
12306
- // src/dashboard/copy-input/CopyInput.tsx
12306
+ // src/fields/copy-input/CopyInput.tsx
12307
12307
  import * as React45 from "react";
12308
12308
  import { jsx as jsx143 } from "react/jsx-runtime";
12309
12309
  var CopyInput = React45.forwardRef(
@@ -12332,11 +12332,11 @@ var CopyInput = React45.forwardRef(
12332
12332
  );
12333
12333
  CopyInput.displayName = "CopyInput";
12334
12334
 
12335
- // src/dashboard/phone-input/PhoneInput.tsx
12335
+ // src/fields/phone-input/PhoneInput.tsx
12336
12336
  import * as React51 from "react";
12337
12337
  import { useTranslation as useTranslation33 } from "react-i18next";
12338
12338
 
12339
- // src/dashboard/_select-internals/SelectFieldShell.tsx
12339
+ // src/fields/_select-internals/SelectFieldShell.tsx
12340
12340
  import { useTranslation as useTranslation26 } from "react-i18next";
12341
12341
  import { jsx as jsx144, jsxs as jsxs90 } from "react/jsx-runtime";
12342
12342
  var FOCUSABLE_TRIGGER_SELECTOR = 'input:not([type="hidden"]):not([disabled]):not([readonly]), button:not([disabled])';
@@ -12410,11 +12410,11 @@ function SelectFieldShell({
12410
12410
  );
12411
12411
  }
12412
12412
 
12413
- // src/dashboard/_select-internals/SelectMenu.tsx
12413
+ // src/fields/_select-internals/SelectMenu.tsx
12414
12414
  import * as React46 from "react";
12415
12415
  import { useTranslation as useTranslation27 } from "react-i18next";
12416
12416
 
12417
- // src/dashboard/_select-internals/utils.ts
12417
+ // src/fields/_select-internals/utils.ts
12418
12418
  function isOptionGroup(item) {
12419
12419
  if (!item || typeof item !== "object") return false;
12420
12420
  if ("value" in item) return false;
@@ -12504,7 +12504,7 @@ function countriesFilter(option, inputValue) {
12504
12504
  return false;
12505
12505
  }
12506
12506
 
12507
- // src/dashboard/_select-internals/slots/DefaultOption.tsx
12507
+ // src/fields/_select-internals/slots/DefaultOption.tsx
12508
12508
  import { Check as Check6 } from "lucide-react";
12509
12509
  import { jsx as jsx145, jsxs as jsxs91 } from "react/jsx-runtime";
12510
12510
  function DefaultOption(props) {
@@ -12567,7 +12567,7 @@ function DefaultOption(props) {
12567
12567
  );
12568
12568
  }
12569
12569
 
12570
- // src/dashboard/_select-internals/SelectMenu.tsx
12570
+ // src/fields/_select-internals/SelectMenu.tsx
12571
12571
  import { jsx as jsx146, jsxs as jsxs92 } from "react/jsx-runtime";
12572
12572
  function buildMenuEntries(groupedOptions, options, formatGroupLabel, listboxId) {
12573
12573
  if (!groupedOptions || !groupedOptions.some((item) => isOptionGroup(item))) {
@@ -12740,7 +12740,7 @@ function SelectMenu({
12740
12740
  );
12741
12741
  }
12742
12742
 
12743
- // src/dashboard/_select-internals/SelectMenuPanel.tsx
12743
+ // src/fields/_select-internals/SelectMenuPanel.tsx
12744
12744
  import { useTranslation as useTranslation28 } from "react-i18next";
12745
12745
  import { jsx as jsx147, jsxs as jsxs93 } from "react/jsx-runtime";
12746
12746
  function SelectMenuPanel({
@@ -12804,7 +12804,7 @@ function SelectMenuPanel({
12804
12804
  );
12805
12805
  }
12806
12806
 
12807
- // src/dashboard/_select-internals/SelectSearchInput.tsx
12807
+ // src/fields/_select-internals/SelectSearchInput.tsx
12808
12808
  import { Search as Search3 } from "lucide-react";
12809
12809
  import { jsx as jsx148, jsxs as jsxs94 } from "react/jsx-runtime";
12810
12810
  function SelectSearchInput({
@@ -12842,7 +12842,7 @@ function SelectSearchInput({
12842
12842
  ] }) });
12843
12843
  }
12844
12844
 
12845
- // src/dashboard/_select-internals/SelectTrigger.tsx
12845
+ // src/fields/_select-internals/SelectTrigger.tsx
12846
12846
  import { ChevronDown as ChevronDown2 } from "lucide-react";
12847
12847
  import { jsx as jsx149, jsxs as jsxs95 } from "react/jsx-runtime";
12848
12848
  function SelectTrigger({
@@ -12916,7 +12916,7 @@ function SelectTrigger({
12916
12916
  );
12917
12917
  }
12918
12918
 
12919
- // src/dashboard/_select-internals/ComboboxTrigger.tsx
12919
+ // src/fields/_select-internals/ComboboxTrigger.tsx
12920
12920
  import { Search as Search4, SquareX as SquareX2 } from "lucide-react";
12921
12921
  import { useTranslation as useTranslation29 } from "react-i18next";
12922
12922
  import { jsx as jsx150, jsxs as jsxs96 } from "react/jsx-runtime";
@@ -13076,7 +13076,7 @@ function ComboboxTrigger({
13076
13076
  );
13077
13077
  }
13078
13078
 
13079
- // src/dashboard/_select-internals/useSelectIds.ts
13079
+ // src/fields/_select-internals/useSelectIds.ts
13080
13080
  import * as React47 from "react";
13081
13081
  function useSelectIds({
13082
13082
  name,
@@ -13111,7 +13111,7 @@ function useSelectIds({
13111
13111
  };
13112
13112
  }
13113
13113
 
13114
- // src/dashboard/_select-internals/useSelectMenuState.ts
13114
+ // src/fields/_select-internals/useSelectMenuState.ts
13115
13115
  import * as React48 from "react";
13116
13116
  function useSelectMenuState({
13117
13117
  isBlocked,
@@ -13160,7 +13160,7 @@ function useSelectMenuState({
13160
13160
  return { containerRef, isOpen, openMenu, closeMenu, toggleMenu, setIsOpen };
13161
13161
  }
13162
13162
 
13163
- // src/dashboard/_select-internals/useSelectState.ts
13163
+ // src/fields/_select-internals/useSelectState.ts
13164
13164
  import * as React49 from "react";
13165
13165
  function resolveValueLabel(option, getValueLabel) {
13166
13166
  if (!option) return "";
@@ -13556,7 +13556,7 @@ function useSelectState(params) {
13556
13556
  };
13557
13557
  }
13558
13558
 
13559
- // src/dashboard/_select-internals/slots/DefaultMultiValueChip.tsx
13559
+ // src/fields/_select-internals/slots/DefaultMultiValueChip.tsx
13560
13560
  import { X as X10 } from "lucide-react";
13561
13561
  import { useTranslation as useTranslation30 } from "react-i18next";
13562
13562
  import { jsx as jsx151, jsxs as jsxs97 } from "react/jsx-runtime";
@@ -13585,7 +13585,7 @@ function DefaultMultiValueChip({
13585
13585
  ] });
13586
13586
  }
13587
13587
 
13588
- // src/dashboard/_select-internals/slots/DefaultControl.tsx
13588
+ // src/fields/_select-internals/slots/DefaultControl.tsx
13589
13589
  import { jsx as jsx152 } from "react/jsx-runtime";
13590
13590
  function DefaultControl(props) {
13591
13591
  const {
@@ -13678,7 +13678,7 @@ function DefaultControl(props) {
13678
13678
  );
13679
13679
  }
13680
13680
 
13681
- // src/dashboard/_select-internals/slots/StaticControl.tsx
13681
+ // src/fields/_select-internals/slots/StaticControl.tsx
13682
13682
  import { SquareX as SquareX3 } from "lucide-react";
13683
13683
  import { jsx as jsx153, jsxs as jsxs98 } from "react/jsx-runtime";
13684
13684
  function StaticControl(props) {
@@ -13748,7 +13748,7 @@ function StaticControl(props) {
13748
13748
  ] });
13749
13749
  }
13750
13750
 
13751
- // src/dashboard/_select-internals/slots/DefaultMenuList.tsx
13751
+ // src/fields/_select-internals/slots/DefaultMenuList.tsx
13752
13752
  import { jsx as jsx154 } from "react/jsx-runtime";
13753
13753
  function DefaultMenuList(props) {
13754
13754
  const {
@@ -13811,7 +13811,7 @@ function DefaultMenuList(props) {
13811
13811
  );
13812
13812
  }
13813
13813
 
13814
- // src/dashboard/_select-internals/slots/DefaultCreateOption.tsx
13814
+ // src/fields/_select-internals/slots/DefaultCreateOption.tsx
13815
13815
  import { useTranslation as useTranslation31 } from "react-i18next";
13816
13816
  import { jsx as jsx155 } from "react/jsx-runtime";
13817
13817
  function DefaultCreateOption({
@@ -13831,7 +13831,7 @@ function DefaultCreateOption({
13831
13831
  );
13832
13832
  }
13833
13833
 
13834
- // src/dashboard/_select-internals/slots/mergeComponents.ts
13834
+ // src/fields/_select-internals/slots/mergeComponents.ts
13835
13835
  function defaultComponents() {
13836
13836
  return {
13837
13837
  Control: DefaultControl,
@@ -13853,11 +13853,11 @@ function mergeComponents(overrides) {
13853
13853
  };
13854
13854
  }
13855
13855
 
13856
- // src/dashboard/select/Select.tsx
13856
+ // src/fields/select/Select.tsx
13857
13857
  import * as React50 from "react";
13858
13858
  import { useTranslation as useTranslation32 } from "react-i18next";
13859
13859
 
13860
- // src/dashboard/select/useSetCorrectOptionIfThereIsOnlyValue.ts
13860
+ // src/fields/select/useSetCorrectOptionIfThereIsOnlyValue.ts
13861
13861
  import { useEffect as useEffect39 } from "react";
13862
13862
  function useSetCorrectOptionIfThereIsOnlyValue({ value, options, onChange, enabled = true }) {
13863
13863
  useEffect39(() => {
@@ -13872,7 +13872,7 @@ function useSetCorrectOptionIfThereIsOnlyValue({ value, options, onChange, enabl
13872
13872
  }, [enabled, onChange, options, value]);
13873
13873
  }
13874
13874
 
13875
- // src/dashboard/select/Select.tsx
13875
+ // src/fields/select/Select.tsx
13876
13876
  import { jsx as jsx156, jsxs as jsxs99 } from "react/jsx-runtime";
13877
13877
  function SelectInternal(props, ref) {
13878
13878
  const {
@@ -14165,7 +14165,7 @@ function SelectInternal(props, ref) {
14165
14165
  }
14166
14166
  var Select = React50.forwardRef(SelectInternal);
14167
14167
 
14168
- // src/dashboard/phone-input/utils.ts
14168
+ // src/fields/phone-input/utils.ts
14169
14169
  var PREFIX_REGEX = /^\+/;
14170
14170
  function isPhoneInputValue(value) {
14171
14171
  if (typeof value === "string" || typeof value === "number") {
@@ -14232,7 +14232,7 @@ function formatPhoneCodeOptionLabel(option) {
14232
14232
  return label.includes(value) ? label : `${label} ${value}`;
14233
14233
  }
14234
14234
 
14235
- // src/dashboard/phone-input/PhoneInput.tsx
14235
+ // src/fields/phone-input/PhoneInput.tsx
14236
14236
  import { jsx as jsx157, jsxs as jsxs100 } from "react/jsx-runtime";
14237
14237
  var PhoneInput = React51.forwardRef(
14238
14238
  function PhoneInput2({
@@ -14471,36 +14471,36 @@ var PhoneInput = React51.forwardRef(
14471
14471
  );
14472
14472
  PhoneInput.displayName = "PhoneInput";
14473
14473
 
14474
- // src/dashboard/creatable-select/CreatableSelect.tsx
14474
+ // src/fields/creatable-select/CreatableSelect.tsx
14475
14475
  import * as React52 from "react";
14476
14476
  import { jsx as jsx158 } from "react/jsx-runtime";
14477
14477
  var CreatableSelect = React52.forwardRef(function CreatableSelect2(props, ref) {
14478
14478
  return /* @__PURE__ */ jsx158(Select, { ref, ...props, isCreatable: true });
14479
14479
  });
14480
14480
 
14481
- // src/dashboard/multi-select/MultiSelect.tsx
14481
+ // src/fields/multi-select/MultiSelect.tsx
14482
14482
  import * as React53 from "react";
14483
14483
  import { jsx as jsx159 } from "react/jsx-runtime";
14484
14484
  var MultiSelect = React53.forwardRef(function MultiSelect2(props, ref) {
14485
14485
  return /* @__PURE__ */ jsx159(Select, { ref, ...props, isMulti: true });
14486
14486
  });
14487
14487
 
14488
- // src/dashboard/creatable-multi-select/CreatableMultiSelect.tsx
14488
+ // src/fields/creatable-multi-select/CreatableMultiSelect.tsx
14489
14489
  import * as React54 from "react";
14490
14490
  import { jsx as jsx160 } from "react/jsx-runtime";
14491
14491
  var CreatableMultiSelect = React54.forwardRef(function CreatableMultiSelect2(props, ref) {
14492
14492
  return /* @__PURE__ */ jsx160(Select, { ref, ...props, isMulti: true, isCreatable: true });
14493
14493
  });
14494
14494
 
14495
- // src/dashboard/infinite-scroll-select/InfiniteScrollSelect.tsx
14495
+ // src/fields/infinite-scroll-select/InfiniteScrollSelect.tsx
14496
14496
  import * as React57 from "react";
14497
14497
 
14498
- // src/dashboard/infinite-scroll-select/VirtualMenuList.tsx
14498
+ // src/fields/infinite-scroll-select/VirtualMenuList.tsx
14499
14499
  import * as React56 from "react";
14500
14500
  import { useTranslation as useTranslation34 } from "react-i18next";
14501
14501
  import { useVirtualizer as useVirtualizer2 } from "@tanstack/react-virtual";
14502
14502
 
14503
- // src/dashboard/infinite-scroll-select/InfiniteScrollContext.tsx
14503
+ // src/fields/infinite-scroll-select/InfiniteScrollContext.tsx
14504
14504
  import * as React55 from "react";
14505
14505
  var InfiniteScrollContext = React55.createContext(
14506
14506
  null
@@ -14515,7 +14515,7 @@ function useInfiniteScrollContext() {
14515
14515
  return ctx;
14516
14516
  }
14517
14517
 
14518
- // src/dashboard/infinite-scroll-select/VirtualMenuList.tsx
14518
+ // src/fields/infinite-scroll-select/VirtualMenuList.tsx
14519
14519
  import { jsx as jsx161, jsxs as jsxs101 } from "react/jsx-runtime";
14520
14520
  function VirtualMenuList(props) {
14521
14521
  const {
@@ -14711,7 +14711,7 @@ function VirtualMenuList(props) {
14711
14711
  ) });
14712
14712
  }
14713
14713
 
14714
- // src/dashboard/infinite-scroll-select/InfiniteScrollSelect.tsx
14714
+ // src/fields/infinite-scroll-select/InfiniteScrollSelect.tsx
14715
14715
  import { jsx as jsx162 } from "react/jsx-runtime";
14716
14716
  var DEFAULT_ITEM_HEIGHT = 60;
14717
14717
  var DEFAULT_LIST_HEIGHT = 322;
@@ -14822,7 +14822,7 @@ var InfiniteScrollSelect = React57.forwardRef(
14822
14822
  InfiniteScrollSelectInternal
14823
14823
  );
14824
14824
 
14825
- // src/dashboard/infinite-scroll-multi-select/InfiniteScrollMultiSelect.tsx
14825
+ // src/fields/infinite-scroll-multi-select/InfiniteScrollMultiSelect.tsx
14826
14826
  import * as React58 from "react";
14827
14827
  import { jsx as jsx163 } from "react/jsx-runtime";
14828
14828
  var InfiniteScrollMultiSelect = React58.forwardRef(function InfiniteScrollMultiSelect2(props, ref) {
@@ -14830,11 +14830,11 @@ var InfiniteScrollMultiSelect = React58.forwardRef(function InfiniteScrollMultiS
14830
14830
  return /* @__PURE__ */ jsx163(Forwarded, { ...props, ref, isMulti: true });
14831
14831
  });
14832
14832
 
14833
- // src/dashboard/select-checkboxes/SelectCheckboxes.tsx
14833
+ // src/fields/select-checkboxes/SelectCheckboxes.tsx
14834
14834
  import * as React59 from "react";
14835
14835
  import { useTranslation as useTranslation36 } from "react-i18next";
14836
14836
 
14837
- // src/dashboard/select-checkboxes/VisualCheckbox.tsx
14837
+ // src/fields/select-checkboxes/VisualCheckbox.tsx
14838
14838
  import { Check as Check7 } from "lucide-react";
14839
14839
  import { jsx as jsx164 } from "react/jsx-runtime";
14840
14840
  function VisualCheckbox({ checked, disabled, className }) {
@@ -14854,7 +14854,7 @@ function VisualCheckbox({ checked, disabled, className }) {
14854
14854
  );
14855
14855
  }
14856
14856
 
14857
- // src/dashboard/select-checkboxes/SelectCheckboxOption.tsx
14857
+ // src/fields/select-checkboxes/SelectCheckboxOption.tsx
14858
14858
  import { jsx as jsx165, jsxs as jsxs102 } from "react/jsx-runtime";
14859
14859
  function SelectCheckboxOption(props) {
14860
14860
  const {
@@ -14899,7 +14899,7 @@ function SelectCheckboxOption(props) {
14899
14899
  );
14900
14900
  }
14901
14901
 
14902
- // src/dashboard/select-checkboxes/CountTrigger.tsx
14902
+ // src/fields/select-checkboxes/CountTrigger.tsx
14903
14903
  import { ChevronDown as ChevronDown3 } from "lucide-react";
14904
14904
  import { useTranslation as useTranslation35 } from "react-i18next";
14905
14905
  import { jsx as jsx166, jsxs as jsxs103 } from "react/jsx-runtime";
@@ -14974,7 +14974,7 @@ function createCountTrigger(opts) {
14974
14974
  return CountTrigger;
14975
14975
  }
14976
14976
 
14977
- // src/dashboard/select-checkboxes/SelectAllRow.tsx
14977
+ // src/fields/select-checkboxes/SelectAllRow.tsx
14978
14978
  import { jsx as jsx167, jsxs as jsxs104 } from "react/jsx-runtime";
14979
14979
  function SelectAllRow({ label, checked, disabled, onToggle }) {
14980
14980
  return /* @__PURE__ */ jsxs104(
@@ -14995,7 +14995,7 @@ function SelectAllRow({ label, checked, disabled, onToggle }) {
14995
14995
  );
14996
14996
  }
14997
14997
 
14998
- // src/dashboard/select-checkboxes/SelectCheckboxes.tsx
14998
+ // src/fields/select-checkboxes/SelectCheckboxes.tsx
14999
14999
  import { Fragment as Fragment16, jsx as jsx168 } from "react/jsx-runtime";
15000
15000
  function hasPaginationProps(props) {
15001
15001
  return props.canLoadMore !== void 0 || props.isLoadingMore !== void 0 || props.loadMoreItems !== void 0 || props.onSearchChange !== void 0;
@@ -15154,11 +15154,11 @@ var SelectCheckboxes = React59.forwardRef(
15154
15154
  SelectCheckboxesInternal
15155
15155
  );
15156
15156
 
15157
- // src/dashboard/textarea/Textarea.tsx
15157
+ // src/fields/textarea/Textarea.tsx
15158
15158
  import * as React61 from "react";
15159
15159
  import { useTranslation as useTranslation37 } from "react-i18next";
15160
15160
 
15161
- // src/dashboard/textarea/useTextareaValueState.ts
15161
+ // src/fields/textarea/useTextareaValueState.ts
15162
15162
  import * as React60 from "react";
15163
15163
  var isEmptyValue2 = (value) => {
15164
15164
  if (value === void 0 || value === null) return true;
@@ -15223,7 +15223,7 @@ function useTextareaValueState({
15223
15223
  };
15224
15224
  }
15225
15225
 
15226
- // src/dashboard/textarea/Textarea.tsx
15226
+ // src/fields/textarea/Textarea.tsx
15227
15227
  import { jsx as jsx169, jsxs as jsxs105 } from "react/jsx-runtime";
15228
15228
  var LINE_HEIGHT = 20;
15229
15229
  var VERTICAL_PADDING = 32;
@@ -15361,7 +15361,7 @@ var Textarea = React61.forwardRef(function Textarea2({
15361
15361
  );
15362
15362
  });
15363
15363
 
15364
- // src/dashboard/datepicker/Datepicker.tsx
15364
+ // src/fields/datepicker/Datepicker.tsx
15365
15365
  import * as React63 from "react";
15366
15366
  import { ChevronDown as ChevronDown4 } from "lucide-react";
15367
15367
  import { useTranslation as useTranslation38 } from "react-i18next";
@@ -16010,7 +16010,7 @@ function AirbnbDatePickerContent({
16010
16010
  ) });
16011
16011
  }
16012
16012
 
16013
- // src/dashboard/datepicker/Datepicker.tsx
16013
+ // src/fields/datepicker/Datepicker.tsx
16014
16014
  import { jsx as jsx172, jsxs as jsxs108 } from "react/jsx-runtime";
16015
16015
  var MONTHS_IN_YEAR2 = 12;
16016
16016
  function getMonthLabels2(locale) {
@@ -16612,14 +16612,14 @@ var Datepicker = React63.forwardRef(
16612
16612
  }
16613
16613
  );
16614
16614
 
16615
- // src/dashboard/date-range-picker/DateRangePicker.tsx
16615
+ // src/fields/date-range-picker/DateRangePicker.tsx
16616
16616
  import * as React67 from "react";
16617
16617
  import { useTranslation as useTranslation39 } from "react-i18next";
16618
16618
 
16619
- // src/dashboard/date-range-picker/isDayBlocked.ts
16619
+ // src/fields/date-range-picker/isDayBlocked.ts
16620
16620
  import { differenceInDays, isAfter, isBefore, isSameDay } from "date-fns";
16621
16621
 
16622
- // src/dashboard/date-range-picker/dateUtils.ts
16622
+ // src/fields/date-range-picker/dateUtils.ts
16623
16623
  import { format as formatDateFns, isValid, parse } from "date-fns";
16624
16624
  var DEFAULT_DISPLAY_FORMAT = "dd-MM-yyyy";
16625
16625
  var SUPPORTED_FORMATS = ["dd-MM-yyyy", "dd.MM.yyyy", "dd/MM/yyyy"];
@@ -16647,7 +16647,7 @@ function resetTime(date) {
16647
16647
  return next;
16648
16648
  }
16649
16649
 
16650
- // src/dashboard/date-range-picker/isDayBlocked.ts
16650
+ // src/fields/date-range-picker/isDayBlocked.ts
16651
16651
  var isDayBlocked = ({ minDate, maxDate, maxDays, minDays, datesRange }) => (date) => {
16652
16652
  const startDate = datesRange?.from ? resetTime(datesRange.from) : null;
16653
16653
  const endDate = datesRange?.to ? resetTime(datesRange.to) : null;
@@ -16674,7 +16674,7 @@ var isDayBlocked = ({ minDate, maxDate, maxDays, minDays, datesRange }) => (date
16674
16674
  return false;
16675
16675
  };
16676
16676
 
16677
- // src/dashboard/date-range-picker/createDisabledMatchers.ts
16677
+ // src/fields/date-range-picker/createDisabledMatchers.ts
16678
16678
  var createDisabledMatchers = ({
16679
16679
  disabledDays,
16680
16680
  minDate,
@@ -16691,7 +16691,7 @@ var createDisabledMatchers = ({
16691
16691
  return result;
16692
16692
  };
16693
16693
 
16694
- // src/dashboard/date-range-picker/hooks/useRangeValue.ts
16694
+ // src/fields/date-range-picker/hooks/useRangeValue.ts
16695
16695
  import * as React64 from "react";
16696
16696
  var getRangeKey = (range) => `${range?.from?.getTime() ?? ""}-${range?.to?.getTime() ?? ""}`;
16697
16697
  function useRangeValue({
@@ -16726,10 +16726,10 @@ function useRangeValue({
16726
16726
  return { value: draft, commit };
16727
16727
  }
16728
16728
 
16729
- // src/dashboard/date-range-picker/hooks/useRangeTextInputs.ts
16729
+ // src/fields/date-range-picker/hooks/useRangeTextInputs.ts
16730
16730
  import * as React65 from "react";
16731
16731
 
16732
- // src/dashboard/date-range-picker/utils/inputFormat.ts
16732
+ // src/fields/date-range-picker/utils/inputFormat.ts
16733
16733
  function parseDateInputFormat(format2) {
16734
16734
  const tokens = [];
16735
16735
  let i = 0;
@@ -16805,7 +16805,7 @@ function autoFormatDateInput(raw, tokens) {
16805
16805
  return result;
16806
16806
  }
16807
16807
 
16808
- // src/dashboard/date-range-picker/hooks/useRangeTextInputs.ts
16808
+ // src/fields/date-range-picker/hooks/useRangeTextInputs.ts
16809
16809
  var countDigits = (text) => text.replace(/\D/g, "").length;
16810
16810
  function useRangeTextInputs({
16811
16811
  value,
@@ -16897,7 +16897,7 @@ function useRangeTextInputs({
16897
16897
  };
16898
16898
  }
16899
16899
 
16900
- // src/dashboard/date-range-picker/hooks/useRangeMonthSync.ts
16900
+ // src/fields/date-range-picker/hooks/useRangeMonthSync.ts
16901
16901
  import * as React66 from "react";
16902
16902
  function useRangeMonthSync(value) {
16903
16903
  const isPreloadedRef = React66.useRef(false);
@@ -16918,7 +16918,7 @@ function useRangeMonthSync(value) {
16918
16918
  return { month, setMonth, syncMonthToValue, resetPreload };
16919
16919
  }
16920
16920
 
16921
- // src/dashboard/date-range-picker/utils/rangeSelection.ts
16921
+ // src/fields/date-range-picker/utils/rangeSelection.ts
16922
16922
  import { isBefore as isBefore2 } from "date-fns";
16923
16923
  function resolveRangeSelection({
16924
16924
  previous,
@@ -16936,7 +16936,7 @@ function resolveRangeSelection({
16936
16936
  return { next, shouldClose };
16937
16937
  }
16938
16938
 
16939
- // src/dashboard/date-range-picker/components/DateRangeInputs.tsx
16939
+ // src/fields/date-range-picker/components/DateRangeInputs.tsx
16940
16940
  import { CalendarDays, SquareX as SquareX4 } from "lucide-react";
16941
16941
  import { jsx as jsx173, jsxs as jsxs109 } from "react/jsx-runtime";
16942
16942
  var DEFAULT_PLACEHOLDER = "00-00-0000";
@@ -17083,7 +17083,7 @@ function DateRangeInputs({
17083
17083
  );
17084
17084
  }
17085
17085
 
17086
- // src/dashboard/date-range-picker/components/DateRangeCalendar.tsx
17086
+ // src/fields/date-range-picker/components/DateRangeCalendar.tsx
17087
17087
  import { jsx as jsx174 } from "react/jsx-runtime";
17088
17088
  function DateRangeCalendar({
17089
17089
  value,
@@ -17122,7 +17122,7 @@ function DateRangeCalendar({
17122
17122
  );
17123
17123
  }
17124
17124
 
17125
- // src/dashboard/date-range-picker/components/DateRangePopover.tsx
17125
+ // src/fields/date-range-picker/components/DateRangePopover.tsx
17126
17126
  import { jsx as jsx175, jsxs as jsxs110 } from "react/jsx-runtime";
17127
17127
  function DateRangePopover({
17128
17128
  isOpen,
@@ -17170,7 +17170,7 @@ function DateRangePopover({
17170
17170
  );
17171
17171
  }
17172
17172
 
17173
- // src/dashboard/date-range-picker/DateRangePicker.tsx
17173
+ // src/fields/date-range-picker/DateRangePicker.tsx
17174
17174
  import { jsx as jsx176, jsxs as jsxs111 } from "react/jsx-runtime";
17175
17175
  var DateRangePicker = React67.forwardRef(function DateRangePicker2({
17176
17176
  label,
@@ -17512,7 +17512,7 @@ var DateRangePicker = React67.forwardRef(function DateRangePicker2({
17512
17512
  );
17513
17513
  });
17514
17514
 
17515
- // src/dashboard/date-range-picker/useValidateDates.ts
17515
+ // src/fields/date-range-picker/useValidateDates.ts
17516
17516
  import * as React68 from "react";
17517
17517
  import { useTranslation as useTranslation40 } from "react-i18next";
17518
17518
  import { differenceInDays as differenceInDays2, isAfter as isAfter2, isBefore as isBefore3 } from "date-fns";
@@ -17592,7 +17592,7 @@ function useValidateDates({
17592
17592
  return { validateDates };
17593
17593
  }
17594
17594
 
17595
- // src/dashboard/time-picker/TimePicker.tsx
17595
+ // src/fields/time-picker/TimePicker.tsx
17596
17596
  import * as React69 from "react";
17597
17597
  import { addDays, addHours, addMinutes, format, parse as parse2 } from "date-fns";
17598
17598
  import { jsx as jsx177 } from "react/jsx-runtime";
@@ -17646,7 +17646,7 @@ var TimePicker = React69.forwardRef(function TimePicker2({ format: formatName =
17646
17646
  return /* @__PURE__ */ jsx177(Select, { ref, ...selectProps, options: resolvedOptions });
17647
17647
  });
17648
17648
 
17649
- // src/dashboard/file-input/FileInput.tsx
17649
+ // src/fields/file-input/FileInput.tsx
17650
17650
  import * as React70 from "react";
17651
17651
  import { Download, Paperclip, SquareX as SquareX5 } from "lucide-react";
17652
17652
  import { useTranslation as useTranslation41 } from "react-i18next";
@@ -17818,7 +17818,7 @@ var FileInput = React70.forwardRef(function FileInput2({
17818
17818
  );
17819
17819
  });
17820
17820
 
17821
- // src/dashboard/select-icons-box/SelectIconsBox.tsx
17821
+ // src/fields/select-icons-box/SelectIconsBox.tsx
17822
17822
  import * as React71 from "react";
17823
17823
  import { jsx as jsx179, jsxs as jsxs113 } from "react/jsx-runtime";
17824
17824
  var FOCUSABLE_TRIGGER_SELECTOR2 = 'input:not([type="hidden"]):not([disabled]):not([readonly]), button:not([disabled])';