@k3-tech/react-kit 0.0.67 → 0.0.69
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 +824 -1826
- package/dist/kit/themes/base.css +1 -1
- package/dist/kit/themes/clean-slate.css +272 -72
- package/dist/kit/themes/default.css +276 -76
- package/dist/kit/themes/minimal-modern.css +272 -72
- package/dist/kit/themes/spotify.css +272 -72
- package/dist/shadcn/ui/breadcrumb.d.ts.map +1 -1
- package/dist/shadcn/ui/dialog.d.ts.map +1 -1
- package/dist/shadcn/ui/form.d.ts +1 -1
- package/dist/shadcn/ui/form.d.ts.map +1 -1
- package/dist/shadcn/ui/pagination.d.ts.map +1 -1
- package/dist/shadcn/ui/sonner.d.ts +1 -1
- package/dist/shadcn/ui/sonner.d.ts.map +1 -1
- package/dist/shadcn/ui/table.d.ts +6 -2
- package/dist/shadcn/ui/table.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/kit/components/autocomplete/Autocomplete.tsx +1 -1
- package/src/kit/components/datepicker/DatePicker.tsx +1 -1
- package/src/kit/components/datepicker/DateRangePicker.tsx +1 -1
- package/src/kit/components/datetimepicker/DateTimePicker.tsx +1 -1
- package/src/kit/components/datetimepicker/DateTimeRangePicker.tsx +1 -1
- package/src/kit/components/fileuploader/FileUploader.tsx +2 -2
- package/src/kit/components/timepicker/TimePicker.tsx +1 -1
- package/src/kit/components/timepicker/TimeRangePicker.tsx +1 -1
- package/src/kit/layouts/admin/components/AdminLayout.tsx +8 -8
- package/src/kit/themes/default.css +3 -3
- package/src/shadcn/ui/accordion.tsx +3 -3
- package/src/shadcn/ui/alert-dialog.tsx +2 -2
- package/src/shadcn/ui/avatar.tsx +1 -1
- package/src/shadcn/ui/badge.tsx +1 -1
- package/src/shadcn/ui/breadcrumb.tsx +7 -4
- package/src/shadcn/ui/calendar.tsx +3 -3
- package/src/shadcn/ui/card.tsx +1 -1
- package/src/shadcn/ui/dialog.tsx +8 -5
- package/src/shadcn/ui/pagination.tsx +2 -1
- package/src/shadcn/ui/progress.tsx +2 -2
- package/src/shadcn/ui/sheet.tsx +4 -4
- package/src/shadcn/ui/sidebar.tsx +2 -2
- package/src/shadcn/ui/sonner.tsx +13 -1
- package/src/shadcn/ui/switch.tsx +1 -1
- package/src/shadcn/ui/table.tsx +24 -6
- package/src/shadcn/ui/tabs.tsx +2 -2
- package/src/shadcn/ui/tooltip.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import React__default, { createContext, useSyncExternalStore, useEffect, useMemo, useContext, forwardRef, createElement, Fragment as Fragment$1, memo as memo$1, useRef, useCallback, useLayoutEffect, useReducer, cloneElement, Component, useState, useImperativeHandle, use as use$
|
|
6
|
+
import React__default, { createContext, useSyncExternalStore, useEffect, useMemo, useContext, forwardRef, createElement, Fragment as Fragment$1, memo as memo$1, useRef, useCallback, useLayoutEffect, useReducer, cloneElement, Component, useState, useImperativeHandle, use as use$1, isValidElement, PureComponent } from "react";
|
|
7
7
|
import * as ReactDOM from "react-dom";
|
|
8
8
|
import ReactDOM__default from "react-dom";
|
|
9
9
|
import { useRouter, useLocation, Link as Link$1 } from "@tanstack/react-router";
|
|
@@ -4621,28 +4621,7 @@ function clsx() {
|
|
|
4621
4621
|
for (var e2, t2, f = 0, n2 = "", o2 = arguments.length; f < o2; f++) (e2 = arguments[f]) && (t2 = r$2(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
4622
4622
|
return n2;
|
|
4623
4623
|
}
|
|
4624
|
-
const concatArrays = (array1, array2) => {
|
|
4625
|
-
const combinedArray = new Array(array1.length + array2.length);
|
|
4626
|
-
for (let i2 = 0; i2 < array1.length; i2++) {
|
|
4627
|
-
combinedArray[i2] = array1[i2];
|
|
4628
|
-
}
|
|
4629
|
-
for (let i2 = 0; i2 < array2.length; i2++) {
|
|
4630
|
-
combinedArray[array1.length + i2] = array2[i2];
|
|
4631
|
-
}
|
|
4632
|
-
return combinedArray;
|
|
4633
|
-
};
|
|
4634
|
-
const createClassValidatorObject = (classGroupId, validator) => ({
|
|
4635
|
-
classGroupId,
|
|
4636
|
-
validator
|
|
4637
|
-
});
|
|
4638
|
-
const createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators2 = null, classGroupId) => ({
|
|
4639
|
-
nextPart,
|
|
4640
|
-
validators: validators2,
|
|
4641
|
-
classGroupId
|
|
4642
|
-
});
|
|
4643
4624
|
const CLASS_PART_SEPARATOR = "-";
|
|
4644
|
-
const EMPTY_CONFLICTS = [];
|
|
4645
|
-
const ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
|
|
4646
4625
|
const createClassGroupUtils = (config2) => {
|
|
4647
4626
|
const classMap = createClassMap(config2);
|
|
4648
4627
|
const {
|
|
@@ -4650,134 +4629,104 @@ const createClassGroupUtils = (config2) => {
|
|
|
4650
4629
|
conflictingClassGroupModifiers
|
|
4651
4630
|
} = config2;
|
|
4652
4631
|
const getClassGroupId = (className) => {
|
|
4653
|
-
if (className.startsWith("[") && className.endsWith("]")) {
|
|
4654
|
-
return getGroupIdForArbitraryProperty(className);
|
|
4655
|
-
}
|
|
4656
4632
|
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
4657
|
-
|
|
4658
|
-
|
|
4633
|
+
if (classParts[0] === "" && classParts.length !== 1) {
|
|
4634
|
+
classParts.shift();
|
|
4635
|
+
}
|
|
4636
|
+
return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
|
|
4659
4637
|
};
|
|
4660
4638
|
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
if (modifierConflicts) {
|
|
4665
|
-
if (baseConflicts) {
|
|
4666
|
-
return concatArrays(baseConflicts, modifierConflicts);
|
|
4667
|
-
}
|
|
4668
|
-
return modifierConflicts;
|
|
4669
|
-
}
|
|
4670
|
-
return baseConflicts || EMPTY_CONFLICTS;
|
|
4639
|
+
const conflicts = conflictingClassGroups[classGroupId] || [];
|
|
4640
|
+
if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
|
|
4641
|
+
return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
|
|
4671
4642
|
}
|
|
4672
|
-
return
|
|
4643
|
+
return conflicts;
|
|
4673
4644
|
};
|
|
4674
4645
|
return {
|
|
4675
4646
|
getClassGroupId,
|
|
4676
4647
|
getConflictingClassGroupIds
|
|
4677
4648
|
};
|
|
4678
4649
|
};
|
|
4679
|
-
const getGroupRecursive = (classParts,
|
|
4680
|
-
|
|
4681
|
-
if (
|
|
4650
|
+
const getGroupRecursive = (classParts, classPartObject) => {
|
|
4651
|
+
var _a2;
|
|
4652
|
+
if (classParts.length === 0) {
|
|
4682
4653
|
return classPartObject.classGroupId;
|
|
4683
4654
|
}
|
|
4684
|
-
const currentClassPart = classParts[
|
|
4655
|
+
const currentClassPart = classParts[0];
|
|
4685
4656
|
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4657
|
+
const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
|
|
4658
|
+
if (classGroupFromNextClassPart) {
|
|
4659
|
+
return classGroupFromNextClassPart;
|
|
4689
4660
|
}
|
|
4690
|
-
|
|
4691
|
-
if (validators2 === null) {
|
|
4661
|
+
if (classPartObject.validators.length === 0) {
|
|
4692
4662
|
return void 0;
|
|
4693
4663
|
}
|
|
4694
|
-
const classRest =
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4664
|
+
const classRest = classParts.join(CLASS_PART_SEPARATOR);
|
|
4665
|
+
return (_a2 = classPartObject.validators.find(({
|
|
4666
|
+
validator
|
|
4667
|
+
}) => validator(classRest))) == null ? void 0 : _a2.classGroupId;
|
|
4668
|
+
};
|
|
4669
|
+
const arbitraryPropertyRegex = /^\[(.+)\]$/;
|
|
4670
|
+
const getGroupIdForArbitraryProperty = (className) => {
|
|
4671
|
+
if (arbitraryPropertyRegex.test(className)) {
|
|
4672
|
+
const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
|
|
4673
|
+
const property = arbitraryPropertyClassName == null ? void 0 : arbitraryPropertyClassName.substring(0, arbitraryPropertyClassName.indexOf(":"));
|
|
4674
|
+
if (property) {
|
|
4675
|
+
return "arbitrary.." + property;
|
|
4700
4676
|
}
|
|
4701
4677
|
}
|
|
4702
|
-
return void 0;
|
|
4703
4678
|
};
|
|
4704
|
-
const getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
4705
|
-
const content = className.slice(1, -1);
|
|
4706
|
-
const colonIndex = content.indexOf(":");
|
|
4707
|
-
const property = content.slice(0, colonIndex);
|
|
4708
|
-
return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
|
|
4709
|
-
})();
|
|
4710
4679
|
const createClassMap = (config2) => {
|
|
4711
4680
|
const {
|
|
4712
4681
|
theme,
|
|
4713
4682
|
classGroups
|
|
4714
4683
|
} = config2;
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4684
|
+
const classMap = {
|
|
4685
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
4686
|
+
validators: []
|
|
4687
|
+
};
|
|
4719
4688
|
for (const classGroupId in classGroups) {
|
|
4720
|
-
|
|
4721
|
-
processClassesRecursively(group, classMap, classGroupId, theme);
|
|
4689
|
+
processClassesRecursively(classGroups[classGroupId], classMap, classGroupId, theme);
|
|
4722
4690
|
}
|
|
4723
4691
|
return classMap;
|
|
4724
4692
|
};
|
|
4725
4693
|
const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
}
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
}
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
};
|
|
4747
|
-
const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
4748
|
-
if (isThemeGetter(classDefinition)) {
|
|
4749
|
-
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
4750
|
-
return;
|
|
4751
|
-
}
|
|
4752
|
-
if (classPartObject.validators === null) {
|
|
4753
|
-
classPartObject.validators = [];
|
|
4754
|
-
}
|
|
4755
|
-
classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
|
|
4756
|
-
};
|
|
4757
|
-
const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
4758
|
-
const entries = Object.entries(classDefinition);
|
|
4759
|
-
const len = entries.length;
|
|
4760
|
-
for (let i2 = 0; i2 < len; i2++) {
|
|
4761
|
-
const [key, value] = entries[i2];
|
|
4762
|
-
processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
|
|
4763
|
-
}
|
|
4694
|
+
classGroup.forEach((classDefinition) => {
|
|
4695
|
+
if (typeof classDefinition === "string") {
|
|
4696
|
+
const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
|
|
4697
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
4698
|
+
return;
|
|
4699
|
+
}
|
|
4700
|
+
if (typeof classDefinition === "function") {
|
|
4701
|
+
if (isThemeGetter(classDefinition)) {
|
|
4702
|
+
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
4703
|
+
return;
|
|
4704
|
+
}
|
|
4705
|
+
classPartObject.validators.push({
|
|
4706
|
+
validator: classDefinition,
|
|
4707
|
+
classGroupId
|
|
4708
|
+
});
|
|
4709
|
+
return;
|
|
4710
|
+
}
|
|
4711
|
+
Object.entries(classDefinition).forEach(([key, classGroup2]) => {
|
|
4712
|
+
processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
|
|
4713
|
+
});
|
|
4714
|
+
});
|
|
4764
4715
|
};
|
|
4765
4716
|
const getPart = (classPartObject, path) => {
|
|
4766
|
-
let
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
}
|
|
4778
|
-
return current;
|
|
4717
|
+
let currentClassPartObject = classPartObject;
|
|
4718
|
+
path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
|
|
4719
|
+
if (!currentClassPartObject.nextPart.has(pathPart)) {
|
|
4720
|
+
currentClassPartObject.nextPart.set(pathPart, {
|
|
4721
|
+
nextPart: /* @__PURE__ */ new Map(),
|
|
4722
|
+
validators: []
|
|
4723
|
+
});
|
|
4724
|
+
}
|
|
4725
|
+
currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
|
|
4726
|
+
});
|
|
4727
|
+
return currentClassPartObject;
|
|
4779
4728
|
};
|
|
4780
|
-
const isThemeGetter = (func) =>
|
|
4729
|
+
const isThemeGetter = (func) => func.isThemeGetter;
|
|
4781
4730
|
const createLruCache = (maxCacheSize) => {
|
|
4782
4731
|
if (maxCacheSize < 1) {
|
|
4783
4732
|
return {
|
|
@@ -4787,31 +4736,31 @@ const createLruCache = (maxCacheSize) => {
|
|
|
4787
4736
|
};
|
|
4788
4737
|
}
|
|
4789
4738
|
let cacheSize = 0;
|
|
4790
|
-
let cache2 = /* @__PURE__ */
|
|
4791
|
-
let previousCache = /* @__PURE__ */
|
|
4739
|
+
let cache2 = /* @__PURE__ */ new Map();
|
|
4740
|
+
let previousCache = /* @__PURE__ */ new Map();
|
|
4792
4741
|
const update = (key, value) => {
|
|
4793
|
-
cache2
|
|
4742
|
+
cache2.set(key, value);
|
|
4794
4743
|
cacheSize++;
|
|
4795
4744
|
if (cacheSize > maxCacheSize) {
|
|
4796
4745
|
cacheSize = 0;
|
|
4797
4746
|
previousCache = cache2;
|
|
4798
|
-
cache2 = /* @__PURE__ */
|
|
4747
|
+
cache2 = /* @__PURE__ */ new Map();
|
|
4799
4748
|
}
|
|
4800
4749
|
};
|
|
4801
4750
|
return {
|
|
4802
4751
|
get(key) {
|
|
4803
|
-
let value = cache2
|
|
4752
|
+
let value = cache2.get(key);
|
|
4804
4753
|
if (value !== void 0) {
|
|
4805
4754
|
return value;
|
|
4806
4755
|
}
|
|
4807
|
-
if ((value = previousCache
|
|
4756
|
+
if ((value = previousCache.get(key)) !== void 0) {
|
|
4808
4757
|
update(key, value);
|
|
4809
4758
|
return value;
|
|
4810
4759
|
}
|
|
4811
4760
|
},
|
|
4812
4761
|
set(key, value) {
|
|
4813
|
-
if (key
|
|
4814
|
-
cache2
|
|
4762
|
+
if (cache2.has(key)) {
|
|
4763
|
+
cache2.set(key, value);
|
|
4815
4764
|
} else {
|
|
4816
4765
|
update(key, value);
|
|
4817
4766
|
}
|
|
@@ -4820,14 +4769,7 @@ const createLruCache = (maxCacheSize) => {
|
|
|
4820
4769
|
};
|
|
4821
4770
|
const IMPORTANT_MODIFIER = "!";
|
|
4822
4771
|
const MODIFIER_SEPARATOR = ":";
|
|
4823
|
-
const
|
|
4824
|
-
const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
|
|
4825
|
-
modifiers,
|
|
4826
|
-
hasImportantModifier,
|
|
4827
|
-
baseClassName,
|
|
4828
|
-
maybePostfixModifierPosition,
|
|
4829
|
-
isExternal
|
|
4830
|
-
});
|
|
4772
|
+
const MODIFIER_SEPARATOR_LENGTH = MODIFIER_SEPARATOR.length;
|
|
4831
4773
|
const createParseClassName = (config2) => {
|
|
4832
4774
|
const {
|
|
4833
4775
|
prefix,
|
|
@@ -4839,13 +4781,12 @@ const createParseClassName = (config2) => {
|
|
|
4839
4781
|
let parenDepth = 0;
|
|
4840
4782
|
let modifierStart = 0;
|
|
4841
4783
|
let postfixModifierPosition;
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
const currentCharacter = className[index2];
|
|
4784
|
+
for (let index2 = 0; index2 < className.length; index2++) {
|
|
4785
|
+
let currentCharacter = className[index2];
|
|
4845
4786
|
if (bracketDepth === 0 && parenDepth === 0) {
|
|
4846
4787
|
if (currentCharacter === MODIFIER_SEPARATOR) {
|
|
4847
4788
|
modifiers.push(className.slice(modifierStart, index2));
|
|
4848
|
-
modifierStart = index2 +
|
|
4789
|
+
modifierStart = index2 + MODIFIER_SEPARATOR_LENGTH;
|
|
4849
4790
|
continue;
|
|
4850
4791
|
}
|
|
4851
4792
|
if (currentCharacter === "/") {
|
|
@@ -4853,34 +4794,37 @@ const createParseClassName = (config2) => {
|
|
|
4853
4794
|
continue;
|
|
4854
4795
|
}
|
|
4855
4796
|
}
|
|
4856
|
-
if (currentCharacter === "[")
|
|
4857
|
-
|
|
4858
|
-
else if (currentCharacter === "
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
|
|
4866
|
-
hasImportantModifier = true;
|
|
4867
|
-
} else if (
|
|
4868
|
-
/**
|
|
4869
|
-
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
4870
|
-
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
4871
|
-
*/
|
|
4872
|
-
baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)
|
|
4873
|
-
) {
|
|
4874
|
-
baseClassName = baseClassNameWithImportantModifier.slice(1);
|
|
4875
|
-
hasImportantModifier = true;
|
|
4797
|
+
if (currentCharacter === "[") {
|
|
4798
|
+
bracketDepth++;
|
|
4799
|
+
} else if (currentCharacter === "]") {
|
|
4800
|
+
bracketDepth--;
|
|
4801
|
+
} else if (currentCharacter === "(") {
|
|
4802
|
+
parenDepth++;
|
|
4803
|
+
} else if (currentCharacter === ")") {
|
|
4804
|
+
parenDepth--;
|
|
4805
|
+
}
|
|
4876
4806
|
}
|
|
4807
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
|
|
4808
|
+
const baseClassName = stripImportantModifier(baseClassNameWithImportantModifier);
|
|
4809
|
+
const hasImportantModifier = baseClassName !== baseClassNameWithImportantModifier;
|
|
4877
4810
|
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
|
|
4878
|
-
return
|
|
4811
|
+
return {
|
|
4812
|
+
modifiers,
|
|
4813
|
+
hasImportantModifier,
|
|
4814
|
+
baseClassName,
|
|
4815
|
+
maybePostfixModifierPosition
|
|
4816
|
+
};
|
|
4879
4817
|
};
|
|
4880
4818
|
if (prefix) {
|
|
4881
4819
|
const fullPrefix = prefix + MODIFIER_SEPARATOR;
|
|
4882
4820
|
const parseClassNameOriginal = parseClassName;
|
|
4883
|
-
parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.
|
|
4821
|
+
parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.substring(fullPrefix.length)) : {
|
|
4822
|
+
isExternal: true,
|
|
4823
|
+
modifiers: [],
|
|
4824
|
+
hasImportantModifier: false,
|
|
4825
|
+
baseClassName: className,
|
|
4826
|
+
maybePostfixModifierPosition: void 0
|
|
4827
|
+
};
|
|
4884
4828
|
}
|
|
4885
4829
|
if (experimentalParseClassName) {
|
|
4886
4830
|
const parseClassNameOriginal = parseClassName;
|
|
@@ -4891,35 +4835,36 @@ const createParseClassName = (config2) => {
|
|
|
4891
4835
|
}
|
|
4892
4836
|
return parseClassName;
|
|
4893
4837
|
};
|
|
4838
|
+
const stripImportantModifier = (baseClassName) => {
|
|
4839
|
+
if (baseClassName.endsWith(IMPORTANT_MODIFIER)) {
|
|
4840
|
+
return baseClassName.substring(0, baseClassName.length - 1);
|
|
4841
|
+
}
|
|
4842
|
+
if (baseClassName.startsWith(IMPORTANT_MODIFIER)) {
|
|
4843
|
+
return baseClassName.substring(1);
|
|
4844
|
+
}
|
|
4845
|
+
return baseClassName;
|
|
4846
|
+
};
|
|
4894
4847
|
const createSortModifiers = (config2) => {
|
|
4895
|
-
const
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
const
|
|
4901
|
-
let
|
|
4902
|
-
|
|
4903
|
-
const
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
if (currentSegment.length > 0) {
|
|
4908
|
-
currentSegment.sort();
|
|
4909
|
-
result.push(...currentSegment);
|
|
4910
|
-
currentSegment = [];
|
|
4911
|
-
}
|
|
4912
|
-
result.push(modifier);
|
|
4848
|
+
const orderSensitiveModifiers = Object.fromEntries(config2.orderSensitiveModifiers.map((modifier) => [modifier, true]));
|
|
4849
|
+
const sortModifiers = (modifiers) => {
|
|
4850
|
+
if (modifiers.length <= 1) {
|
|
4851
|
+
return modifiers;
|
|
4852
|
+
}
|
|
4853
|
+
const sortedModifiers = [];
|
|
4854
|
+
let unsortedModifiers = [];
|
|
4855
|
+
modifiers.forEach((modifier) => {
|
|
4856
|
+
const isPositionSensitive = modifier[0] === "[" || orderSensitiveModifiers[modifier];
|
|
4857
|
+
if (isPositionSensitive) {
|
|
4858
|
+
sortedModifiers.push(...unsortedModifiers.sort(), modifier);
|
|
4859
|
+
unsortedModifiers = [];
|
|
4913
4860
|
} else {
|
|
4914
|
-
|
|
4861
|
+
unsortedModifiers.push(modifier);
|
|
4915
4862
|
}
|
|
4916
|
-
}
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
result.push(...currentSegment);
|
|
4920
|
-
}
|
|
4921
|
-
return result;
|
|
4863
|
+
});
|
|
4864
|
+
sortedModifiers.push(...unsortedModifiers.sort());
|
|
4865
|
+
return sortedModifiers;
|
|
4922
4866
|
};
|
|
4867
|
+
return sortModifiers;
|
|
4923
4868
|
};
|
|
4924
4869
|
const createConfigUtils = (config2) => ({
|
|
4925
4870
|
cache: createLruCache(config2.cacheSize),
|
|
@@ -4965,10 +4910,10 @@ const mergeClassList = (classList, configUtils) => {
|
|
|
4965
4910
|
}
|
|
4966
4911
|
hasPostfixModifier = false;
|
|
4967
4912
|
}
|
|
4968
|
-
const variantModifier =
|
|
4913
|
+
const variantModifier = sortModifiers(modifiers).join(":");
|
|
4969
4914
|
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
|
4970
4915
|
const classId = modifierId + classGroupId;
|
|
4971
|
-
if (classGroupsInConflict.
|
|
4916
|
+
if (classGroupsInConflict.includes(classId)) {
|
|
4972
4917
|
continue;
|
|
4973
4918
|
}
|
|
4974
4919
|
classGroupsInConflict.push(classId);
|
|
@@ -4981,13 +4926,13 @@ const mergeClassList = (classList, configUtils) => {
|
|
|
4981
4926
|
}
|
|
4982
4927
|
return result;
|
|
4983
4928
|
};
|
|
4984
|
-
|
|
4929
|
+
function twJoin() {
|
|
4985
4930
|
let index2 = 0;
|
|
4986
4931
|
let argument;
|
|
4987
4932
|
let resolvedValue;
|
|
4988
4933
|
let string2 = "";
|
|
4989
|
-
while (index2 <
|
|
4990
|
-
if (argument =
|
|
4934
|
+
while (index2 < arguments.length) {
|
|
4935
|
+
if (argument = arguments[index2++]) {
|
|
4991
4936
|
if (resolvedValue = toValue(argument)) {
|
|
4992
4937
|
string2 && (string2 += " ");
|
|
4993
4938
|
string2 += resolvedValue;
|
|
@@ -4995,7 +4940,7 @@ const twJoin = (...classLists) => {
|
|
|
4995
4940
|
}
|
|
4996
4941
|
}
|
|
4997
4942
|
return string2;
|
|
4998
|
-
}
|
|
4943
|
+
}
|
|
4999
4944
|
const toValue = (mix) => {
|
|
5000
4945
|
if (typeof mix === "string") {
|
|
5001
4946
|
return mix;
|
|
@@ -5012,20 +4957,20 @@ const toValue = (mix) => {
|
|
|
5012
4957
|
}
|
|
5013
4958
|
return string2;
|
|
5014
4959
|
};
|
|
5015
|
-
|
|
4960
|
+
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
5016
4961
|
let configUtils;
|
|
5017
4962
|
let cacheGet;
|
|
5018
4963
|
let cacheSet;
|
|
5019
|
-
let functionToCall;
|
|
5020
|
-
|
|
4964
|
+
let functionToCall = initTailwindMerge;
|
|
4965
|
+
function initTailwindMerge(classList) {
|
|
5021
4966
|
const config2 = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
5022
4967
|
configUtils = createConfigUtils(config2);
|
|
5023
4968
|
cacheGet = configUtils.cache.get;
|
|
5024
4969
|
cacheSet = configUtils.cache.set;
|
|
5025
4970
|
functionToCall = tailwindMerge;
|
|
5026
4971
|
return tailwindMerge(classList);
|
|
5027
|
-
}
|
|
5028
|
-
|
|
4972
|
+
}
|
|
4973
|
+
function tailwindMerge(classList) {
|
|
5029
4974
|
const cachedResult = cacheGet(classList);
|
|
5030
4975
|
if (cachedResult) {
|
|
5031
4976
|
return cachedResult;
|
|
@@ -5033,13 +4978,13 @@ const createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
|
|
|
5033
4978
|
const result = mergeClassList(classList, configUtils);
|
|
5034
4979
|
cacheSet(classList, result);
|
|
5035
4980
|
return result;
|
|
4981
|
+
}
|
|
4982
|
+
return function callTailwindMerge() {
|
|
4983
|
+
return functionToCall(twJoin.apply(null, arguments));
|
|
5036
4984
|
};
|
|
5037
|
-
|
|
5038
|
-
return (...args) => functionToCall(twJoin(...args));
|
|
5039
|
-
};
|
|
5040
|
-
const fallbackThemeArr = [];
|
|
4985
|
+
}
|
|
5041
4986
|
const fromTheme = (key) => {
|
|
5042
|
-
const themeGetter = (theme) => theme[key] ||
|
|
4987
|
+
const themeGetter = (theme) => theme[key] || [];
|
|
5043
4988
|
themeGetter.isThemeGetter = true;
|
|
5044
4989
|
return themeGetter;
|
|
5045
4990
|
};
|
|
@@ -7647,7 +7592,7 @@ function createContext2(rootComponentName, defaultContext) {
|
|
|
7647
7592
|
}
|
|
7648
7593
|
return [Provider2, useContext2];
|
|
7649
7594
|
}
|
|
7650
|
-
function createContextScope
|
|
7595
|
+
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
7651
7596
|
let defaultContexts = [];
|
|
7652
7597
|
function createContext3(rootComponentName, defaultContext) {
|
|
7653
7598
|
const BaseContext = React.createContext(defaultContext);
|
|
@@ -7684,9 +7629,9 @@ function createContextScope$2(scopeName, createContextScopeDeps = []) {
|
|
|
7684
7629
|
};
|
|
7685
7630
|
};
|
|
7686
7631
|
createScope.scopeName = scopeName;
|
|
7687
|
-
return [createContext3, composeContextScopes
|
|
7632
|
+
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
7688
7633
|
}
|
|
7689
|
-
function composeContextScopes
|
|
7634
|
+
function composeContextScopes(...scopes) {
|
|
7690
7635
|
const baseScope = scopes[0];
|
|
7691
7636
|
if (scopes.length === 1) return baseScope;
|
|
7692
7637
|
const createScope = () => {
|
|
@@ -7706,18 +7651,18 @@ function composeContextScopes$2(...scopes) {
|
|
|
7706
7651
|
createScope.scopeName = baseScope.scopeName;
|
|
7707
7652
|
return createScope;
|
|
7708
7653
|
}
|
|
7709
|
-
function setRef$
|
|
7654
|
+
function setRef$2(ref, value) {
|
|
7710
7655
|
if (typeof ref === "function") {
|
|
7711
7656
|
return ref(value);
|
|
7712
7657
|
} else if (ref !== null && ref !== void 0) {
|
|
7713
7658
|
ref.current = value;
|
|
7714
7659
|
}
|
|
7715
7660
|
}
|
|
7716
|
-
function composeRefs$
|
|
7661
|
+
function composeRefs$2(...refs) {
|
|
7717
7662
|
return (node) => {
|
|
7718
7663
|
let hasCleanup = false;
|
|
7719
7664
|
const cleanups = refs.map((ref) => {
|
|
7720
|
-
const cleanup = setRef$
|
|
7665
|
+
const cleanup = setRef$2(ref, node);
|
|
7721
7666
|
if (!hasCleanup && typeof cleanup == "function") {
|
|
7722
7667
|
hasCleanup = true;
|
|
7723
7668
|
}
|
|
@@ -7730,7 +7675,7 @@ function composeRefs$1(...refs) {
|
|
|
7730
7675
|
if (typeof cleanup == "function") {
|
|
7731
7676
|
cleanup();
|
|
7732
7677
|
} else {
|
|
7733
|
-
setRef$
|
|
7678
|
+
setRef$2(refs[i2], null);
|
|
7734
7679
|
}
|
|
7735
7680
|
}
|
|
7736
7681
|
};
|
|
@@ -7738,15 +7683,15 @@ function composeRefs$1(...refs) {
|
|
|
7738
7683
|
};
|
|
7739
7684
|
}
|
|
7740
7685
|
function useComposedRefs$1(...refs) {
|
|
7741
|
-
return React.useCallback(composeRefs$
|
|
7686
|
+
return React.useCallback(composeRefs$2(...refs), refs);
|
|
7742
7687
|
}
|
|
7743
7688
|
// @__NO_SIDE_EFFECTS__
|
|
7744
|
-
function createSlot$
|
|
7745
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$
|
|
7689
|
+
function createSlot$1(ownerName) {
|
|
7690
|
+
const SlotClone = /* @__PURE__ */ createSlotClone$1(ownerName);
|
|
7746
7691
|
const Slot2 = React.forwardRef((props2, forwardedRef) => {
|
|
7747
7692
|
const { children, ...slotProps } = props2;
|
|
7748
7693
|
const childrenArray = React.Children.toArray(children);
|
|
7749
|
-
const slottable = childrenArray.find(isSlottable$
|
|
7694
|
+
const slottable = childrenArray.find(isSlottable$1);
|
|
7750
7695
|
if (slottable) {
|
|
7751
7696
|
const newElement = slottable.props.children;
|
|
7752
7697
|
const newChildren = childrenArray.map((child) => {
|
|
@@ -7765,14 +7710,14 @@ function createSlot$7(ownerName) {
|
|
|
7765
7710
|
return Slot2;
|
|
7766
7711
|
}
|
|
7767
7712
|
// @__NO_SIDE_EFFECTS__
|
|
7768
|
-
function createSlotClone$
|
|
7713
|
+
function createSlotClone$1(ownerName) {
|
|
7769
7714
|
const SlotClone = React.forwardRef((props2, forwardedRef) => {
|
|
7770
7715
|
const { children, ...slotProps } = props2;
|
|
7771
7716
|
if (React.isValidElement(children)) {
|
|
7772
|
-
const childrenRef = getElementRef$
|
|
7773
|
-
const props22 = mergeProps$
|
|
7717
|
+
const childrenRef = getElementRef$2(children);
|
|
7718
|
+
const props22 = mergeProps$1(slotProps, children.props);
|
|
7774
7719
|
if (children.type !== React.Fragment) {
|
|
7775
|
-
props22.ref = forwardedRef ? composeRefs$
|
|
7720
|
+
props22.ref = forwardedRef ? composeRefs$2(forwardedRef, childrenRef) : childrenRef;
|
|
7776
7721
|
}
|
|
7777
7722
|
return React.cloneElement(children, props22);
|
|
7778
7723
|
}
|
|
@@ -7781,20 +7726,20 @@ function createSlotClone$7(ownerName) {
|
|
|
7781
7726
|
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
7782
7727
|
return SlotClone;
|
|
7783
7728
|
}
|
|
7784
|
-
var SLOTTABLE_IDENTIFIER$
|
|
7729
|
+
var SLOTTABLE_IDENTIFIER$1 = Symbol("radix.slottable");
|
|
7785
7730
|
// @__NO_SIDE_EFFECTS__
|
|
7786
7731
|
function createSlottable(ownerName) {
|
|
7787
7732
|
const Slottable2 = ({ children }) => {
|
|
7788
7733
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
7789
7734
|
};
|
|
7790
7735
|
Slottable2.displayName = `${ownerName}.Slottable`;
|
|
7791
|
-
Slottable2.__radixId = SLOTTABLE_IDENTIFIER$
|
|
7736
|
+
Slottable2.__radixId = SLOTTABLE_IDENTIFIER$1;
|
|
7792
7737
|
return Slottable2;
|
|
7793
7738
|
}
|
|
7794
|
-
function isSlottable$
|
|
7795
|
-
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$
|
|
7739
|
+
function isSlottable$1(child) {
|
|
7740
|
+
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$1;
|
|
7796
7741
|
}
|
|
7797
|
-
function mergeProps$
|
|
7742
|
+
function mergeProps$1(slotProps, childProps) {
|
|
7798
7743
|
const overrideProps = { ...childProps };
|
|
7799
7744
|
for (const propName in childProps) {
|
|
7800
7745
|
const slotPropValue = slotProps[propName];
|
|
@@ -7818,7 +7763,7 @@ function mergeProps$7(slotProps, childProps) {
|
|
|
7818
7763
|
}
|
|
7819
7764
|
return { ...slotProps, ...overrideProps };
|
|
7820
7765
|
}
|
|
7821
|
-
function getElementRef$
|
|
7766
|
+
function getElementRef$2(element) {
|
|
7822
7767
|
var _a2, _b;
|
|
7823
7768
|
let getter = (_a2 = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a2.get;
|
|
7824
7769
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
@@ -7834,7 +7779,7 @@ function getElementRef$8(element) {
|
|
|
7834
7779
|
}
|
|
7835
7780
|
function createCollection(name) {
|
|
7836
7781
|
const PROVIDER_NAME2 = name + "CollectionProvider";
|
|
7837
|
-
const [createCollectionContext, createCollectionScope2] = createContextScope
|
|
7782
|
+
const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME2);
|
|
7838
7783
|
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
|
7839
7784
|
PROVIDER_NAME2,
|
|
7840
7785
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -7847,7 +7792,7 @@ function createCollection(name) {
|
|
|
7847
7792
|
};
|
|
7848
7793
|
CollectionProvider.displayName = PROVIDER_NAME2;
|
|
7849
7794
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
7850
|
-
const CollectionSlotImpl = /* @__PURE__ */ createSlot$
|
|
7795
|
+
const CollectionSlotImpl = /* @__PURE__ */ createSlot$1(COLLECTION_SLOT_NAME);
|
|
7851
7796
|
const CollectionSlot = React__default.forwardRef(
|
|
7852
7797
|
(props2, forwardedRef) => {
|
|
7853
7798
|
const { scope, children } = props2;
|
|
@@ -7859,7 +7804,7 @@ function createCollection(name) {
|
|
|
7859
7804
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
7860
7805
|
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
7861
7806
|
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
7862
|
-
const CollectionItemSlotImpl = /* @__PURE__ */ createSlot$
|
|
7807
|
+
const CollectionItemSlotImpl = /* @__PURE__ */ createSlot$1(ITEM_SLOT_NAME);
|
|
7863
7808
|
const CollectionItemSlot = React__default.forwardRef(
|
|
7864
7809
|
(props2, forwardedRef) => {
|
|
7865
7810
|
const { scope, children, ...itemData } = props2;
|
|
@@ -7970,7 +7915,7 @@ function useUncontrolledState$1({
|
|
|
7970
7915
|
function isFunction$3(value) {
|
|
7971
7916
|
return typeof value === "function";
|
|
7972
7917
|
}
|
|
7973
|
-
var NODES
|
|
7918
|
+
var NODES = [
|
|
7974
7919
|
"a",
|
|
7975
7920
|
"button",
|
|
7976
7921
|
"div",
|
|
@@ -7989,8 +7934,8 @@ var NODES$6 = [
|
|
|
7989
7934
|
"svg",
|
|
7990
7935
|
"ul"
|
|
7991
7936
|
];
|
|
7992
|
-
var Primitive
|
|
7993
|
-
const Slot2 = /* @__PURE__ */ createSlot$
|
|
7937
|
+
var Primitive = NODES.reduce((primitive, node) => {
|
|
7938
|
+
const Slot2 = /* @__PURE__ */ createSlot$1(`Primitive.${node}`);
|
|
7994
7939
|
const Node2 = React.forwardRef((props2, forwardedRef) => {
|
|
7995
7940
|
const { asChild, ...primitiveProps } = props2;
|
|
7996
7941
|
const Comp = asChild ? Slot2 : node;
|
|
@@ -8015,7 +7960,7 @@ var Presence = (props2) => {
|
|
|
8015
7960
|
const { present, children } = props2;
|
|
8016
7961
|
const presence = usePresence(present);
|
|
8017
7962
|
const child = typeof children === "function" ? children({ present: presence.isPresent }) : React.Children.only(children);
|
|
8018
|
-
const ref = useComposedRefs$1(presence.ref, getElementRef$
|
|
7963
|
+
const ref = useComposedRefs$1(presence.ref, getElementRef$1(child));
|
|
8019
7964
|
const forceMount = typeof children === "function";
|
|
8020
7965
|
return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;
|
|
8021
7966
|
};
|
|
@@ -8114,7 +8059,7 @@ function usePresence(present) {
|
|
|
8114
8059
|
function getAnimationName(styles) {
|
|
8115
8060
|
return (styles == null ? void 0 : styles.animationName) || "none";
|
|
8116
8061
|
}
|
|
8117
|
-
function getElementRef$
|
|
8062
|
+
function getElementRef$1(element) {
|
|
8118
8063
|
var _a2, _b;
|
|
8119
8064
|
let getter = (_a2 = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a2.get;
|
|
8120
8065
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
@@ -8138,7 +8083,7 @@ function useId$1(deterministicId) {
|
|
|
8138
8083
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
8139
8084
|
}
|
|
8140
8085
|
var COLLAPSIBLE_NAME = "Collapsible";
|
|
8141
|
-
var [createCollapsibleContext, createCollapsibleScope] = createContextScope
|
|
8086
|
+
var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
|
|
8142
8087
|
var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
|
|
8143
8088
|
var Collapsible$1 = React.forwardRef(
|
|
8144
8089
|
(props2, forwardedRef) => {
|
|
@@ -8165,7 +8110,7 @@ var Collapsible$1 = React.forwardRef(
|
|
|
8165
8110
|
open,
|
|
8166
8111
|
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
8167
8112
|
children: /* @__PURE__ */ jsx(
|
|
8168
|
-
Primitive
|
|
8113
|
+
Primitive.div,
|
|
8169
8114
|
{
|
|
8170
8115
|
"data-state": getState$7(open),
|
|
8171
8116
|
"data-disabled": disabled ? "" : void 0,
|
|
@@ -8184,7 +8129,7 @@ var CollapsibleTrigger$1 = React.forwardRef(
|
|
|
8184
8129
|
const { __scopeCollapsible, ...triggerProps } = props2;
|
|
8185
8130
|
const context = useCollapsibleContext(TRIGGER_NAME$d, __scopeCollapsible);
|
|
8186
8131
|
return /* @__PURE__ */ jsx(
|
|
8187
|
-
Primitive
|
|
8132
|
+
Primitive.button,
|
|
8188
8133
|
{
|
|
8189
8134
|
type: "button",
|
|
8190
8135
|
"aria-controls": context.contentId,
|
|
@@ -8246,7 +8191,7 @@ var CollapsibleContentImpl = React.forwardRef((props2, forwardedRef) => {
|
|
|
8246
8191
|
}
|
|
8247
8192
|
}, [context.open, present]);
|
|
8248
8193
|
return /* @__PURE__ */ jsx(
|
|
8249
|
-
Primitive
|
|
8194
|
+
Primitive.div,
|
|
8250
8195
|
{
|
|
8251
8196
|
"data-state": getState$7(context.open),
|
|
8252
8197
|
"data-disabled": context.disabled ? "" : void 0,
|
|
@@ -8277,7 +8222,7 @@ function useDirection(localDir) {
|
|
|
8277
8222
|
var ACCORDION_NAME = "Accordion";
|
|
8278
8223
|
var ACCORDION_KEYS = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"];
|
|
8279
8224
|
var [Collection$6, useCollection$6, createCollectionScope$6] = createCollection(ACCORDION_NAME);
|
|
8280
|
-
var [createAccordionContext] = createContextScope
|
|
8225
|
+
var [createAccordionContext] = createContextScope(ACCORDION_NAME, [
|
|
8281
8226
|
createCollectionScope$6,
|
|
8282
8227
|
createCollapsibleScope
|
|
8283
8228
|
]);
|
|
@@ -8440,7 +8385,7 @@ var AccordionImpl = React__default.forwardRef(
|
|
|
8440
8385
|
direction: dir,
|
|
8441
8386
|
orientation,
|
|
8442
8387
|
children: /* @__PURE__ */ jsx(Collection$6.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(
|
|
8443
|
-
Primitive
|
|
8388
|
+
Primitive.div,
|
|
8444
8389
|
{
|
|
8445
8390
|
...accordionProps,
|
|
8446
8391
|
"data-orientation": orientation,
|
|
@@ -8501,7 +8446,7 @@ var AccordionHeader = React__default.forwardRef(
|
|
|
8501
8446
|
const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
|
|
8502
8447
|
const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);
|
|
8503
8448
|
return /* @__PURE__ */ jsx(
|
|
8504
|
-
Primitive
|
|
8449
|
+
Primitive.h3,
|
|
8505
8450
|
{
|
|
8506
8451
|
"data-orientation": accordionContext.orientation,
|
|
8507
8452
|
"data-state": getState$6(itemContext.open),
|
|
@@ -8597,13 +8542,13 @@ function AccordionTrigger({
|
|
|
8597
8542
|
{
|
|
8598
8543
|
"data-slot": "accordion-trigger",
|
|
8599
8544
|
className: cn$1(
|
|
8600
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md
|
|
8545
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md px-4 py-[14px] text-left text-[13.5px] font-semibold text-[#424242] transition-all outline-none hover:bg-[#FAFAFA] hover:no-underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
8601
8546
|
className
|
|
8602
8547
|
),
|
|
8603
8548
|
...props2,
|
|
8604
8549
|
children: [
|
|
8605
8550
|
children,
|
|
8606
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: "text-muted-foreground pointer-events-none size-
|
|
8551
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "text-muted-foreground pointer-events-none size-3 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
8607
8552
|
]
|
|
8608
8553
|
}
|
|
8609
8554
|
) });
|
|
@@ -8619,28 +8564,59 @@ function AccordionContent({
|
|
|
8619
8564
|
"data-slot": "accordion-content",
|
|
8620
8565
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
8621
8566
|
...props2,
|
|
8622
|
-
children: /* @__PURE__ */ jsx("div", { className: cn$1("pt-0
|
|
8567
|
+
children: /* @__PURE__ */ jsx("div", { className: cn$1("px-4 pb-[14px] pt-0 text-[13px] text-[#2B2F36]", className), children })
|
|
8623
8568
|
}
|
|
8624
8569
|
);
|
|
8625
8570
|
}
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8571
|
+
function setRef$1(ref, value) {
|
|
8572
|
+
if (typeof ref === "function") {
|
|
8573
|
+
return ref(value);
|
|
8574
|
+
} else if (ref !== null && ref !== void 0) {
|
|
8575
|
+
ref.current = value;
|
|
8576
|
+
}
|
|
8577
|
+
}
|
|
8578
|
+
function composeRefs$1(...refs) {
|
|
8579
|
+
return (node) => {
|
|
8580
|
+
let hasCleanup = false;
|
|
8581
|
+
const cleanups = refs.map((ref) => {
|
|
8582
|
+
const cleanup = setRef$1(ref, node);
|
|
8583
|
+
if (!hasCleanup && typeof cleanup == "function") {
|
|
8584
|
+
hasCleanup = true;
|
|
8585
|
+
}
|
|
8586
|
+
return cleanup;
|
|
8587
|
+
});
|
|
8588
|
+
if (hasCleanup) {
|
|
8589
|
+
return () => {
|
|
8590
|
+
for (let i2 = 0; i2 < cleanups.length; i2++) {
|
|
8591
|
+
const cleanup = cleanups[i2];
|
|
8592
|
+
if (typeof cleanup == "function") {
|
|
8593
|
+
cleanup();
|
|
8594
|
+
} else {
|
|
8595
|
+
setRef$1(refs[i2], null);
|
|
8596
|
+
}
|
|
8597
|
+
}
|
|
8598
|
+
};
|
|
8599
|
+
}
|
|
8600
|
+
};
|
|
8601
|
+
}
|
|
8602
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
8603
|
+
var use = React[" use ".trim().toString()];
|
|
8604
|
+
function isPromiseLike(value) {
|
|
8629
8605
|
return typeof value === "object" && value !== null && "then" in value;
|
|
8630
8606
|
}
|
|
8631
|
-
function isLazyComponent
|
|
8632
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE
|
|
8607
|
+
function isLazyComponent(element) {
|
|
8608
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
8633
8609
|
}
|
|
8634
8610
|
// @__NO_SIDE_EFFECTS__
|
|
8635
|
-
function createSlot
|
|
8636
|
-
const SlotClone = /* @__PURE__ */ createSlotClone
|
|
8611
|
+
function createSlot(ownerName) {
|
|
8612
|
+
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
8637
8613
|
const Slot2 = React.forwardRef((props2, forwardedRef) => {
|
|
8638
8614
|
let { children, ...slotProps } = props2;
|
|
8639
|
-
if (isLazyComponent
|
|
8640
|
-
children = use
|
|
8615
|
+
if (isLazyComponent(children) && typeof use === "function") {
|
|
8616
|
+
children = use(children._payload);
|
|
8641
8617
|
}
|
|
8642
8618
|
const childrenArray = React.Children.toArray(children);
|
|
8643
|
-
const slottable = childrenArray.find(isSlottable
|
|
8619
|
+
const slottable = childrenArray.find(isSlottable);
|
|
8644
8620
|
if (slottable) {
|
|
8645
8621
|
const newElement = slottable.props.children;
|
|
8646
8622
|
const newChildren = childrenArray.map((child) => {
|
|
@@ -8658,17 +8634,17 @@ function createSlot$6(ownerName) {
|
|
|
8658
8634
|
Slot2.displayName = `${ownerName}.Slot`;
|
|
8659
8635
|
return Slot2;
|
|
8660
8636
|
}
|
|
8661
|
-
var Slot$4 = /* @__PURE__ */ createSlot
|
|
8637
|
+
var Slot$4 = /* @__PURE__ */ createSlot("Slot");
|
|
8662
8638
|
// @__NO_SIDE_EFFECTS__
|
|
8663
|
-
function createSlotClone
|
|
8639
|
+
function createSlotClone(ownerName) {
|
|
8664
8640
|
const SlotClone = React.forwardRef((props2, forwardedRef) => {
|
|
8665
8641
|
let { children, ...slotProps } = props2;
|
|
8666
|
-
if (isLazyComponent
|
|
8667
|
-
children = use
|
|
8642
|
+
if (isLazyComponent(children) && typeof use === "function") {
|
|
8643
|
+
children = use(children._payload);
|
|
8668
8644
|
}
|
|
8669
8645
|
if (React.isValidElement(children)) {
|
|
8670
|
-
const childrenRef = getElementRef
|
|
8671
|
-
const props22 = mergeProps
|
|
8646
|
+
const childrenRef = getElementRef(children);
|
|
8647
|
+
const props22 = mergeProps(slotProps, children.props);
|
|
8672
8648
|
if (children.type !== React.Fragment) {
|
|
8673
8649
|
props22.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
|
|
8674
8650
|
}
|
|
@@ -8679,11 +8655,11 @@ function createSlotClone$6(ownerName) {
|
|
|
8679
8655
|
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
8680
8656
|
return SlotClone;
|
|
8681
8657
|
}
|
|
8682
|
-
var SLOTTABLE_IDENTIFIER
|
|
8683
|
-
function isSlottable
|
|
8684
|
-
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER
|
|
8658
|
+
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
8659
|
+
function isSlottable(child) {
|
|
8660
|
+
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
8685
8661
|
}
|
|
8686
|
-
function mergeProps
|
|
8662
|
+
function mergeProps(slotProps, childProps) {
|
|
8687
8663
|
const overrideProps = { ...childProps };
|
|
8688
8664
|
for (const propName in childProps) {
|
|
8689
8665
|
const slotPropValue = slotProps[propName];
|
|
@@ -8707,7 +8683,7 @@ function mergeProps$6(slotProps, childProps) {
|
|
|
8707
8683
|
}
|
|
8708
8684
|
return { ...slotProps, ...overrideProps };
|
|
8709
8685
|
}
|
|
8710
|
-
function getElementRef
|
|
8686
|
+
function getElementRef(element) {
|
|
8711
8687
|
var _a2, _b;
|
|
8712
8688
|
let getter = (_a2 = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a2.get;
|
|
8713
8689
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
@@ -8848,7 +8824,7 @@ function useSize(element) {
|
|
|
8848
8824
|
return size2;
|
|
8849
8825
|
}
|
|
8850
8826
|
var CHECKBOX_NAME = "Checkbox";
|
|
8851
|
-
var [createCheckboxContext] = createContextScope
|
|
8827
|
+
var [createCheckboxContext] = createContextScope(CHECKBOX_NAME);
|
|
8852
8828
|
var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
|
|
8853
8829
|
function CheckboxProvider(props2) {
|
|
8854
8830
|
const {
|
|
@@ -8929,7 +8905,7 @@ var CheckboxTrigger = React.forwardRef(
|
|
|
8929
8905
|
}
|
|
8930
8906
|
}, [control, setChecked]);
|
|
8931
8907
|
return /* @__PURE__ */ jsx(
|
|
8932
|
-
Primitive
|
|
8908
|
+
Primitive.button,
|
|
8933
8909
|
{
|
|
8934
8910
|
type: "button",
|
|
8935
8911
|
role: "checkbox",
|
|
@@ -9013,7 +8989,7 @@ var CheckboxIndicator = React.forwardRef(
|
|
|
9013
8989
|
{
|
|
9014
8990
|
present: forceMount || isIndeterminate$1(context.checked) || context.checked === true,
|
|
9015
8991
|
children: /* @__PURE__ */ jsx(
|
|
9016
|
-
Primitive
|
|
8992
|
+
Primitive.span,
|
|
9017
8993
|
{
|
|
9018
8994
|
"data-state": getState$5(context.checked),
|
|
9019
8995
|
"data-disabled": context.disabled ? "" : void 0,
|
|
@@ -9065,7 +9041,7 @@ var CheckboxBubbleInput = React.forwardRef(
|
|
|
9065
9041
|
}, [bubbleInput, prevChecked, checked, hasConsumerStoppedPropagationRef]);
|
|
9066
9042
|
const defaultCheckedRef = React.useRef(isIndeterminate$1(checked) ? false : checked);
|
|
9067
9043
|
return /* @__PURE__ */ jsx(
|
|
9068
|
-
Primitive
|
|
9044
|
+
Primitive.input,
|
|
9069
9045
|
{
|
|
9070
9046
|
type: "checkbox",
|
|
9071
9047
|
"aria-hidden": true,
|
|
@@ -9138,7 +9114,11 @@ function Skeleton({ className, ...props2 }) {
|
|
|
9138
9114
|
}
|
|
9139
9115
|
);
|
|
9140
9116
|
}
|
|
9141
|
-
function Table({
|
|
9117
|
+
function Table({
|
|
9118
|
+
className,
|
|
9119
|
+
zebra,
|
|
9120
|
+
...props2
|
|
9121
|
+
}) {
|
|
9142
9122
|
return /* @__PURE__ */ jsx(
|
|
9143
9123
|
"div",
|
|
9144
9124
|
{
|
|
@@ -9148,7 +9128,11 @@ function Table({ className, ...props2 }) {
|
|
|
9148
9128
|
"table",
|
|
9149
9129
|
{
|
|
9150
9130
|
"data-slot": "table",
|
|
9151
|
-
className: cn$1(
|
|
9131
|
+
className: cn$1(
|
|
9132
|
+
"w-full caption-bottom text-[13px] border-border",
|
|
9133
|
+
zebra && "[&_tbody_tr:nth-child(even)_td]:bg-[#CBF6F4]",
|
|
9134
|
+
className
|
|
9135
|
+
),
|
|
9152
9136
|
...props2
|
|
9153
9137
|
}
|
|
9154
9138
|
)
|
|
@@ -9194,15 +9178,20 @@ function TableRow({ className, ...props2 }) {
|
|
|
9194
9178
|
{
|
|
9195
9179
|
"data-slot": "table-row",
|
|
9196
9180
|
className: cn$1(
|
|
9197
|
-
"hover:bg-
|
|
9181
|
+
"hover:bg-[#F7FAFB] data-[state=selected]:bg-[#CBF6F4] border-b border-border transition-colors",
|
|
9198
9182
|
className
|
|
9199
9183
|
),
|
|
9200
9184
|
...props2
|
|
9201
9185
|
}
|
|
9202
9186
|
);
|
|
9203
9187
|
}
|
|
9204
|
-
function TableHead({
|
|
9205
|
-
|
|
9188
|
+
function TableHead({
|
|
9189
|
+
className,
|
|
9190
|
+
required: required2,
|
|
9191
|
+
children,
|
|
9192
|
+
...props2
|
|
9193
|
+
}) {
|
|
9194
|
+
return /* @__PURE__ */ jsxs(
|
|
9206
9195
|
"th",
|
|
9207
9196
|
{
|
|
9208
9197
|
"data-slot": "table-head",
|
|
@@ -9210,7 +9199,11 @@ function TableHead({ className, ...props2 }) {
|
|
|
9210
9199
|
"bg-[#30A4A1] text-white h-10 px-2 text-left align-middle font-bold whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
9211
9200
|
className
|
|
9212
9201
|
),
|
|
9213
|
-
...props2
|
|
9202
|
+
...props2,
|
|
9203
|
+
children: [
|
|
9204
|
+
children,
|
|
9205
|
+
required2 && /* @__PURE__ */ jsx("span", { className: "ml-[3px] text-[#FCA5A5] font-bold", children: "*" })
|
|
9206
|
+
]
|
|
9214
9207
|
}
|
|
9215
9208
|
);
|
|
9216
9209
|
}
|
|
@@ -9220,7 +9213,7 @@ function TableCell({ className, ...props2 }) {
|
|
|
9220
9213
|
{
|
|
9221
9214
|
"data-slot": "table-cell",
|
|
9222
9215
|
className: cn$1(
|
|
9223
|
-
"
|
|
9216
|
+
"px-3 py-3.5 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
9224
9217
|
className
|
|
9225
9218
|
),
|
|
9226
9219
|
...props2
|
|
@@ -9450,7 +9443,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) =>
|
|
|
9450
9443
|
var isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);
|
|
9451
9444
|
function deepEqual$1(object1, object2, _internal_visited = /* @__PURE__ */ new WeakSet()) {
|
|
9452
9445
|
if (isPrimitive(object1) || isPrimitive(object2)) {
|
|
9453
|
-
return
|
|
9446
|
+
return object1 === object2;
|
|
9454
9447
|
}
|
|
9455
9448
|
if (isDateObject(object1) && isDateObject(object2)) {
|
|
9456
9449
|
return object1.getTime() === object2.getTime();
|
|
@@ -9472,7 +9465,7 @@ function deepEqual$1(object1, object2, _internal_visited = /* @__PURE__ */ new W
|
|
|
9472
9465
|
}
|
|
9473
9466
|
if (key !== "ref") {
|
|
9474
9467
|
const val2 = object2[key];
|
|
9475
|
-
if (isDateObject(val1) && isDateObject(val2) || isObject$5(val1) && isObject$5(val2) || Array.isArray(val1) && Array.isArray(val2) ? !deepEqual$1(val1, val2, _internal_visited) :
|
|
9468
|
+
if (isDateObject(val1) && isDateObject(val2) || isObject$5(val1) && isObject$5(val2) || Array.isArray(val1) && Array.isArray(val2) ? !deepEqual$1(val1, val2, _internal_visited) : val1 !== val2) {
|
|
9476
9469
|
return false;
|
|
9477
9470
|
}
|
|
9478
9471
|
}
|
|
@@ -9485,76 +9478,48 @@ function useWatch(props2) {
|
|
|
9485
9478
|
const _defaultValue = React__default.useRef(defaultValue);
|
|
9486
9479
|
const _compute = React__default.useRef(compute);
|
|
9487
9480
|
const _computeFormValues = React__default.useRef(void 0);
|
|
9488
|
-
const _prevControl = React__default.useRef(control);
|
|
9489
|
-
const _prevName = React__default.useRef(name);
|
|
9490
9481
|
_compute.current = compute;
|
|
9491
|
-
const
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9482
|
+
const defaultValueMemo = React__default.useMemo(() => control._getWatch(name, _defaultValue.current), [control, name]);
|
|
9483
|
+
const [value, updateValue] = React__default.useState(_compute.current ? _compute.current(defaultValueMemo) : defaultValueMemo);
|
|
9484
|
+
useIsomorphicLayoutEffect$4(() => control._subscribe({
|
|
9485
|
+
name,
|
|
9486
|
+
formState: {
|
|
9487
|
+
values: true
|
|
9488
|
+
},
|
|
9489
|
+
exact,
|
|
9490
|
+
callback: (formState) => {
|
|
9491
|
+
if (!disabled) {
|
|
9492
|
+
const formValues = generateWatchOutput(name, control._names, formState.values || control._formValues, false, _defaultValue.current);
|
|
9493
|
+
if (_compute.current) {
|
|
9494
|
+
const computedFormValues = _compute.current(formValues);
|
|
9495
|
+
if (!deepEqual$1(computedFormValues, _computeFormValues.current)) {
|
|
9496
|
+
updateValue(computedFormValues);
|
|
9497
|
+
_computeFormValues.current = computedFormValues;
|
|
9498
|
+
}
|
|
9499
|
+
} else {
|
|
9500
|
+
updateValue(formValues);
|
|
9507
9501
|
}
|
|
9508
|
-
} else {
|
|
9509
|
-
updateValue(formValues);
|
|
9510
9502
|
}
|
|
9511
9503
|
}
|
|
9512
|
-
}, [control
|
|
9513
|
-
useIsomorphicLayoutEffect$4(() => {
|
|
9514
|
-
if (_prevControl.current !== control || !deepEqual$1(_prevName.current, name)) {
|
|
9515
|
-
_prevControl.current = control;
|
|
9516
|
-
_prevName.current = name;
|
|
9517
|
-
refreshValue();
|
|
9518
|
-
}
|
|
9519
|
-
return control._subscribe({
|
|
9520
|
-
name,
|
|
9521
|
-
formState: {
|
|
9522
|
-
values: true
|
|
9523
|
-
},
|
|
9524
|
-
exact,
|
|
9525
|
-
callback: (formState) => {
|
|
9526
|
-
refreshValue(formState.values);
|
|
9527
|
-
}
|
|
9528
|
-
});
|
|
9529
|
-
}, [control, exact, name, refreshValue]);
|
|
9504
|
+
}), [control, disabled, name, exact]);
|
|
9530
9505
|
React__default.useEffect(() => control._removeUnmounted());
|
|
9531
|
-
|
|
9532
|
-
const prevName = _prevName.current;
|
|
9533
|
-
const computedOutput = React__default.useMemo(() => {
|
|
9534
|
-
if (disabled) {
|
|
9535
|
-
return null;
|
|
9536
|
-
}
|
|
9537
|
-
const nameChanged = !controlChanged && !deepEqual$1(prevName, name);
|
|
9538
|
-
const shouldReturnImmediate = controlChanged || nameChanged;
|
|
9539
|
-
return shouldReturnImmediate ? getCurrentOutput() : null;
|
|
9540
|
-
}, [disabled, controlChanged, name, prevName, getCurrentOutput]);
|
|
9541
|
-
return computedOutput !== null ? computedOutput : value;
|
|
9506
|
+
return value;
|
|
9542
9507
|
}
|
|
9543
9508
|
function useController(props2) {
|
|
9544
9509
|
const methods = useFormContext();
|
|
9545
|
-
const { name, disabled, control = methods.control, shouldUnregister, defaultValue
|
|
9510
|
+
const { name, disabled, control = methods.control, shouldUnregister, defaultValue } = props2;
|
|
9546
9511
|
const isArrayField = isNameInFieldArray(control._names.array, name);
|
|
9547
9512
|
const defaultValueMemo = React__default.useMemo(() => get(control._formValues, name, get(control._defaultValues, name, defaultValue)), [control, name, defaultValue]);
|
|
9548
9513
|
const value = useWatch({
|
|
9549
9514
|
control,
|
|
9550
9515
|
name,
|
|
9551
9516
|
defaultValue: defaultValueMemo,
|
|
9552
|
-
exact
|
|
9517
|
+
exact: true
|
|
9553
9518
|
});
|
|
9554
9519
|
const formState = useFormState({
|
|
9555
9520
|
control,
|
|
9556
9521
|
name,
|
|
9557
|
-
exact
|
|
9522
|
+
exact: true
|
|
9558
9523
|
});
|
|
9559
9524
|
const _props = React__default.useRef(props2);
|
|
9560
9525
|
const _previousNameRef = React__default.useRef(void 0);
|
|
@@ -9771,11 +9736,10 @@ function isTraversable(value) {
|
|
|
9771
9736
|
}
|
|
9772
9737
|
function markFieldsDirty(data, fields = {}) {
|
|
9773
9738
|
for (const key in data) {
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
} else if (!isUndefined(value)) {
|
|
9739
|
+
if (isTraversable(data[key])) {
|
|
9740
|
+
fields[key] = Array.isArray(data[key]) ? [] : {};
|
|
9741
|
+
markFieldsDirty(data[key], fields[key]);
|
|
9742
|
+
} else if (!isUndefined(data[key])) {
|
|
9779
9743
|
fields[key] = true;
|
|
9780
9744
|
}
|
|
9781
9745
|
}
|
|
@@ -9786,16 +9750,14 @@ function getDirtyFields(data, formValues, dirtyFieldsFromValues) {
|
|
|
9786
9750
|
dirtyFieldsFromValues = markFieldsDirty(formValues);
|
|
9787
9751
|
}
|
|
9788
9752
|
for (const key in data) {
|
|
9789
|
-
|
|
9790
|
-
if (isTraversable(value)) {
|
|
9753
|
+
if (isTraversable(data[key])) {
|
|
9791
9754
|
if (isUndefined(formValues) || isPrimitive(dirtyFieldsFromValues[key])) {
|
|
9792
|
-
dirtyFieldsFromValues[key] = markFieldsDirty(
|
|
9755
|
+
dirtyFieldsFromValues[key] = markFieldsDirty(data[key], Array.isArray(data[key]) ? [] : {});
|
|
9793
9756
|
} else {
|
|
9794
|
-
getDirtyFields(
|
|
9757
|
+
getDirtyFields(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);
|
|
9795
9758
|
}
|
|
9796
9759
|
} else {
|
|
9797
|
-
|
|
9798
|
-
dirtyFieldsFromValues[key] = !deepEqual$1(value, formValue);
|
|
9760
|
+
dirtyFieldsFromValues[key] = !deepEqual$1(data[key], formValues[key]);
|
|
9799
9761
|
}
|
|
9800
9762
|
}
|
|
9801
9763
|
return dirtyFieldsFromValues;
|
|
@@ -10250,7 +10212,7 @@ function createFormControl(props2 = {}) {
|
|
|
10250
10212
|
if (field) {
|
|
10251
10213
|
const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value);
|
|
10252
10214
|
isUndefined(defaultValue) || ref && ref.defaultChecked || shouldSkipSetValueAs ? set$1(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f)) : setFieldValue(name, defaultValue);
|
|
10253
|
-
_state.mount &&
|
|
10215
|
+
_state.mount && _setValid();
|
|
10254
10216
|
}
|
|
10255
10217
|
};
|
|
10256
10218
|
const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => {
|
|
@@ -10861,12 +10823,8 @@ function createFormControl(props2 = {}) {
|
|
|
10861
10823
|
watchAll: false,
|
|
10862
10824
|
focus: ""
|
|
10863
10825
|
};
|
|
10864
|
-
_state.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid || !!keepStateOptions.keepDirtyValues
|
|
10826
|
+
_state.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid || !!keepStateOptions.keepDirtyValues;
|
|
10865
10827
|
_state.watch = !!_options.shouldUnregister;
|
|
10866
|
-
_state.action = false;
|
|
10867
|
-
if (!keepStateOptions.keepErrors) {
|
|
10868
|
-
_formState.errors = {};
|
|
10869
|
-
}
|
|
10870
10828
|
_subjects.state.next({
|
|
10871
10829
|
submitCount: keepStateOptions.keepSubmitCount ? _formState.submitCount : 0,
|
|
10872
10830
|
isDirty: isEmptyResetValues ? false : keepStateOptions.keepDirty ? _formState.isDirty : !!(keepStateOptions.keepDefaultValues && !deepEqual$1(formValues, _defaultValues)),
|
|
@@ -11292,15 +11250,11 @@ function useForm(props2 = {}) {
|
|
|
11292
11250
|
}
|
|
11293
11251
|
}, [control, formState.isDirty]);
|
|
11294
11252
|
React__default.useEffect(() => {
|
|
11295
|
-
var _a2;
|
|
11296
11253
|
if (props2.values && !deepEqual$1(props2.values, _values.current)) {
|
|
11297
11254
|
control._reset(props2.values, {
|
|
11298
11255
|
keepFieldsRef: true,
|
|
11299
11256
|
...control._options.resetOptions
|
|
11300
11257
|
});
|
|
11301
|
-
if (!((_a2 = control._options.resetOptions) === null || _a2 === void 0 ? void 0 : _a2.keepIsValid)) {
|
|
11302
|
-
control._setValid();
|
|
11303
|
-
}
|
|
11304
11258
|
_values.current = props2.values;
|
|
11305
11259
|
updateFormState((state) => ({ ...state }));
|
|
11306
11260
|
} else {
|
|
@@ -11335,7 +11289,7 @@ var ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
|
|
|
11335
11289
|
var EVENT_OPTIONS$1 = { bubbles: false, cancelable: true };
|
|
11336
11290
|
var GROUP_NAME$5 = "RovingFocusGroup";
|
|
11337
11291
|
var [Collection$5, useCollection$5, createCollectionScope$5] = createCollection(GROUP_NAME$5);
|
|
11338
|
-
var [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope
|
|
11292
|
+
var [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(
|
|
11339
11293
|
GROUP_NAME$5,
|
|
11340
11294
|
[createCollectionScope$5]
|
|
11341
11295
|
);
|
|
@@ -11402,7 +11356,7 @@ var RovingFocusGroupImpl = React.forwardRef((props2, forwardedRef) => {
|
|
|
11402
11356
|
[]
|
|
11403
11357
|
),
|
|
11404
11358
|
children: /* @__PURE__ */ jsx(
|
|
11405
|
-
Primitive
|
|
11359
|
+
Primitive.div,
|
|
11406
11360
|
{
|
|
11407
11361
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
11408
11362
|
"data-orientation": orientation,
|
|
@@ -11467,7 +11421,7 @@ var RovingFocusGroupItem = React.forwardRef(
|
|
|
11467
11421
|
focusable,
|
|
11468
11422
|
active,
|
|
11469
11423
|
children: /* @__PURE__ */ jsx(
|
|
11470
|
-
Primitive
|
|
11424
|
+
Primitive.span,
|
|
11471
11425
|
{
|
|
11472
11426
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
11473
11427
|
"data-orientation": context.orientation,
|
|
@@ -11541,7 +11495,7 @@ function wrapArray$3(array2, startIndex) {
|
|
|
11541
11495
|
var Root$e = RovingFocusGroup;
|
|
11542
11496
|
var Item$2 = RovingFocusGroupItem;
|
|
11543
11497
|
var TABS_NAME = "Tabs";
|
|
11544
|
-
var [createTabsContext] = createContextScope
|
|
11498
|
+
var [createTabsContext] = createContextScope(TABS_NAME, [
|
|
11545
11499
|
createRovingFocusGroupScope
|
|
11546
11500
|
]);
|
|
11547
11501
|
var useRovingFocusGroupScope$4 = createRovingFocusGroupScope();
|
|
@@ -11576,7 +11530,7 @@ var Tabs$1 = React.forwardRef(
|
|
|
11576
11530
|
dir: direction,
|
|
11577
11531
|
activationMode,
|
|
11578
11532
|
children: /* @__PURE__ */ jsx(
|
|
11579
|
-
Primitive
|
|
11533
|
+
Primitive.div,
|
|
11580
11534
|
{
|
|
11581
11535
|
dir: direction,
|
|
11582
11536
|
"data-orientation": orientation,
|
|
@@ -11604,7 +11558,7 @@ var TabsList$1 = React.forwardRef(
|
|
|
11604
11558
|
dir: context.dir,
|
|
11605
11559
|
loop,
|
|
11606
11560
|
children: /* @__PURE__ */ jsx(
|
|
11607
|
-
Primitive
|
|
11561
|
+
Primitive.div,
|
|
11608
11562
|
{
|
|
11609
11563
|
role: "tablist",
|
|
11610
11564
|
"aria-orientation": context.orientation,
|
|
@@ -11634,7 +11588,7 @@ var TabsTrigger$1 = React.forwardRef(
|
|
|
11634
11588
|
focusable: !disabled,
|
|
11635
11589
|
active: isSelected,
|
|
11636
11590
|
children: /* @__PURE__ */ jsx(
|
|
11637
|
-
Primitive
|
|
11591
|
+
Primitive.button,
|
|
11638
11592
|
{
|
|
11639
11593
|
type: "button",
|
|
11640
11594
|
role: "tab",
|
|
@@ -11683,7 +11637,7 @@ var TabsContent$1 = React.forwardRef(
|
|
|
11683
11637
|
return () => cancelAnimationFrame(rAF);
|
|
11684
11638
|
}, []);
|
|
11685
11639
|
return /* @__PURE__ */ jsx(Presence, { present: forceMount || isSelected, children: ({ present }) => /* @__PURE__ */ jsx(
|
|
11686
|
-
Primitive
|
|
11640
|
+
Primitive.div,
|
|
11687
11641
|
{
|
|
11688
11642
|
"data-state": isSelected ? "active" : "inactive",
|
|
11689
11643
|
"data-orientation": context.orientation,
|
|
@@ -11736,7 +11690,7 @@ function TabsList({
|
|
|
11736
11690
|
{
|
|
11737
11691
|
"data-slot": "tabs-list",
|
|
11738
11692
|
className: cn$1(
|
|
11739
|
-
"
|
|
11693
|
+
"inline-flex items-center gap-1 border-b border-[#E5E7EB] bg-transparent p-0 h-auto",
|
|
11740
11694
|
className
|
|
11741
11695
|
),
|
|
11742
11696
|
...props2
|
|
@@ -11752,7 +11706,7 @@ function TabsTrigger({
|
|
|
11752
11706
|
{
|
|
11753
11707
|
"data-slot": "tabs-trigger",
|
|
11754
11708
|
className: cn$1(
|
|
11755
|
-
"
|
|
11709
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex items-center justify-center gap-1.5 rounded-t-md border border-transparent border-b-0 px-3 py-2 text-[13px] font-medium text-[#1976F2] whitespace-nowrap -mb-px transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-[#E5E7EB] data-[state=active]:bg-white data-[state=active]:text-[#424242] data-[state=active]:font-semibold [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
11756
11710
|
className
|
|
11757
11711
|
),
|
|
11758
11712
|
...props2
|
|
@@ -11778,7 +11732,7 @@ function Card({ className, ...props2 }) {
|
|
|
11778
11732
|
{
|
|
11779
11733
|
"data-slot": "card",
|
|
11780
11734
|
className: cn$1(
|
|
11781
|
-
"bg-card text-card-foreground flex flex-col gap-6 rounded-
|
|
11735
|
+
"bg-card text-card-foreground flex flex-col gap-6 rounded-md border border-border py-6 shadow-sm",
|
|
11782
11736
|
className
|
|
11783
11737
|
),
|
|
11784
11738
|
...props2
|
|
@@ -11851,135 +11805,6 @@ function CardFooter({ className, ...props2 }) {
|
|
|
11851
11805
|
}
|
|
11852
11806
|
);
|
|
11853
11807
|
}
|
|
11854
|
-
var REACT_LAZY_TYPE$5 = Symbol.for("react.lazy");
|
|
11855
|
-
var use$5 = React[" use ".trim().toString()];
|
|
11856
|
-
function isPromiseLike$5(value) {
|
|
11857
|
-
return typeof value === "object" && value !== null && "then" in value;
|
|
11858
|
-
}
|
|
11859
|
-
function isLazyComponent$5(element) {
|
|
11860
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE$5 && "_payload" in element && isPromiseLike$5(element._payload);
|
|
11861
|
-
}
|
|
11862
|
-
// @__NO_SIDE_EFFECTS__
|
|
11863
|
-
function createSlot$5(ownerName) {
|
|
11864
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$5(ownerName);
|
|
11865
|
-
const Slot2 = React.forwardRef((props2, forwardedRef) => {
|
|
11866
|
-
let { children, ...slotProps } = props2;
|
|
11867
|
-
if (isLazyComponent$5(children) && typeof use$5 === "function") {
|
|
11868
|
-
children = use$5(children._payload);
|
|
11869
|
-
}
|
|
11870
|
-
const childrenArray = React.Children.toArray(children);
|
|
11871
|
-
const slottable = childrenArray.find(isSlottable$5);
|
|
11872
|
-
if (slottable) {
|
|
11873
|
-
const newElement = slottable.props.children;
|
|
11874
|
-
const newChildren = childrenArray.map((child) => {
|
|
11875
|
-
if (child === slottable) {
|
|
11876
|
-
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
|
11877
|
-
return React.isValidElement(newElement) ? newElement.props.children : null;
|
|
11878
|
-
} else {
|
|
11879
|
-
return child;
|
|
11880
|
-
}
|
|
11881
|
-
});
|
|
11882
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
|
|
11883
|
-
}
|
|
11884
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
11885
|
-
});
|
|
11886
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
11887
|
-
return Slot2;
|
|
11888
|
-
}
|
|
11889
|
-
// @__NO_SIDE_EFFECTS__
|
|
11890
|
-
function createSlotClone$5(ownerName) {
|
|
11891
|
-
const SlotClone = React.forwardRef((props2, forwardedRef) => {
|
|
11892
|
-
let { children, ...slotProps } = props2;
|
|
11893
|
-
if (isLazyComponent$5(children) && typeof use$5 === "function") {
|
|
11894
|
-
children = use$5(children._payload);
|
|
11895
|
-
}
|
|
11896
|
-
if (React.isValidElement(children)) {
|
|
11897
|
-
const childrenRef = getElementRef$5(children);
|
|
11898
|
-
const props22 = mergeProps$5(slotProps, children.props);
|
|
11899
|
-
if (children.type !== React.Fragment) {
|
|
11900
|
-
props22.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
|
|
11901
|
-
}
|
|
11902
|
-
return React.cloneElement(children, props22);
|
|
11903
|
-
}
|
|
11904
|
-
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
11905
|
-
});
|
|
11906
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
11907
|
-
return SlotClone;
|
|
11908
|
-
}
|
|
11909
|
-
var SLOTTABLE_IDENTIFIER$5 = Symbol("radix.slottable");
|
|
11910
|
-
function isSlottable$5(child) {
|
|
11911
|
-
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$5;
|
|
11912
|
-
}
|
|
11913
|
-
function mergeProps$5(slotProps, childProps) {
|
|
11914
|
-
const overrideProps = { ...childProps };
|
|
11915
|
-
for (const propName in childProps) {
|
|
11916
|
-
const slotPropValue = slotProps[propName];
|
|
11917
|
-
const childPropValue = childProps[propName];
|
|
11918
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
11919
|
-
if (isHandler) {
|
|
11920
|
-
if (slotPropValue && childPropValue) {
|
|
11921
|
-
overrideProps[propName] = (...args) => {
|
|
11922
|
-
const result = childPropValue(...args);
|
|
11923
|
-
slotPropValue(...args);
|
|
11924
|
-
return result;
|
|
11925
|
-
};
|
|
11926
|
-
} else if (slotPropValue) {
|
|
11927
|
-
overrideProps[propName] = slotPropValue;
|
|
11928
|
-
}
|
|
11929
|
-
} else if (propName === "style") {
|
|
11930
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
11931
|
-
} else if (propName === "className") {
|
|
11932
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
11933
|
-
}
|
|
11934
|
-
}
|
|
11935
|
-
return { ...slotProps, ...overrideProps };
|
|
11936
|
-
}
|
|
11937
|
-
function getElementRef$5(element) {
|
|
11938
|
-
var _a2, _b;
|
|
11939
|
-
let getter = (_a2 = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a2.get;
|
|
11940
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
11941
|
-
if (mayWarn) {
|
|
11942
|
-
return element.ref;
|
|
11943
|
-
}
|
|
11944
|
-
getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
|
|
11945
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
11946
|
-
if (mayWarn) {
|
|
11947
|
-
return element.props.ref;
|
|
11948
|
-
}
|
|
11949
|
-
return element.props.ref || element.ref;
|
|
11950
|
-
}
|
|
11951
|
-
var NODES$5 = [
|
|
11952
|
-
"a",
|
|
11953
|
-
"button",
|
|
11954
|
-
"div",
|
|
11955
|
-
"form",
|
|
11956
|
-
"h2",
|
|
11957
|
-
"h3",
|
|
11958
|
-
"img",
|
|
11959
|
-
"input",
|
|
11960
|
-
"label",
|
|
11961
|
-
"li",
|
|
11962
|
-
"nav",
|
|
11963
|
-
"ol",
|
|
11964
|
-
"p",
|
|
11965
|
-
"select",
|
|
11966
|
-
"span",
|
|
11967
|
-
"svg",
|
|
11968
|
-
"ul"
|
|
11969
|
-
];
|
|
11970
|
-
var Primitive$5 = NODES$5.reduce((primitive, node) => {
|
|
11971
|
-
const Slot2 = /* @__PURE__ */ createSlot$5(`Primitive.${node}`);
|
|
11972
|
-
const Node2 = React.forwardRef((props2, forwardedRef) => {
|
|
11973
|
-
const { asChild, ...primitiveProps } = props2;
|
|
11974
|
-
const Comp = asChild ? Slot2 : node;
|
|
11975
|
-
if (typeof window !== "undefined") {
|
|
11976
|
-
window[Symbol.for("radix-ui")] = true;
|
|
11977
|
-
}
|
|
11978
|
-
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
11979
|
-
});
|
|
11980
|
-
Node2.displayName = `Primitive.${node}`;
|
|
11981
|
-
return { ...primitive, [node]: Node2 };
|
|
11982
|
-
}, {});
|
|
11983
11808
|
var NAME$5 = "Separator";
|
|
11984
11809
|
var DEFAULT_ORIENTATION = "horizontal";
|
|
11985
11810
|
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
@@ -11989,7 +11814,7 @@ var Separator$3 = React.forwardRef((props2, forwardedRef) => {
|
|
|
11989
11814
|
const ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
11990
11815
|
const semanticProps = decorative ? { role: "none" } : { "aria-orientation": ariaOrientation, role: "separator" };
|
|
11991
11816
|
return /* @__PURE__ */ jsx(
|
|
11992
|
-
Primitive
|
|
11817
|
+
Primitive.div,
|
|
11993
11818
|
{
|
|
11994
11819
|
"data-orientation": orientation,
|
|
11995
11820
|
...semanticProps,
|
|
@@ -12430,6 +12255,212 @@ const r$1 = (t2, r2, o2) => {
|
|
|
12430
12255
|
function n$1(e2) {
|
|
12431
12256
|
return e2.replace(/\]|\[/g, "");
|
|
12432
12257
|
}
|
|
12258
|
+
function $constructor$1(name, initializer2, params) {
|
|
12259
|
+
function init(inst, def) {
|
|
12260
|
+
var _a2;
|
|
12261
|
+
Object.defineProperty(inst, "_zod", {
|
|
12262
|
+
value: inst._zod ?? {},
|
|
12263
|
+
enumerable: false
|
|
12264
|
+
});
|
|
12265
|
+
(_a2 = inst._zod).traits ?? (_a2.traits = /* @__PURE__ */ new Set());
|
|
12266
|
+
inst._zod.traits.add(name);
|
|
12267
|
+
initializer2(inst, def);
|
|
12268
|
+
for (const k2 in _2.prototype) {
|
|
12269
|
+
if (!(k2 in inst))
|
|
12270
|
+
Object.defineProperty(inst, k2, { value: _2.prototype[k2].bind(inst) });
|
|
12271
|
+
}
|
|
12272
|
+
inst._zod.constr = _2;
|
|
12273
|
+
inst._zod.def = def;
|
|
12274
|
+
}
|
|
12275
|
+
const Parent = (params == null ? void 0 : params.Parent) ?? Object;
|
|
12276
|
+
class Definition extends Parent {
|
|
12277
|
+
}
|
|
12278
|
+
Object.defineProperty(Definition, "name", { value: name });
|
|
12279
|
+
function _2(def) {
|
|
12280
|
+
var _a2;
|
|
12281
|
+
const inst = (params == null ? void 0 : params.Parent) ? new Definition() : this;
|
|
12282
|
+
init(inst, def);
|
|
12283
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
12284
|
+
for (const fn of inst._zod.deferred) {
|
|
12285
|
+
fn();
|
|
12286
|
+
}
|
|
12287
|
+
return inst;
|
|
12288
|
+
}
|
|
12289
|
+
Object.defineProperty(_2, "init", { value: init });
|
|
12290
|
+
Object.defineProperty(_2, Symbol.hasInstance, {
|
|
12291
|
+
value: (inst) => {
|
|
12292
|
+
var _a2, _b;
|
|
12293
|
+
if ((params == null ? void 0 : params.Parent) && inst instanceof params.Parent)
|
|
12294
|
+
return true;
|
|
12295
|
+
return (_b = (_a2 = inst == null ? void 0 : inst._zod) == null ? void 0 : _a2.traits) == null ? void 0 : _b.has(name);
|
|
12296
|
+
}
|
|
12297
|
+
});
|
|
12298
|
+
Object.defineProperty(_2, "name", { value: name });
|
|
12299
|
+
return _2;
|
|
12300
|
+
}
|
|
12301
|
+
let $ZodAsyncError$1 = class $ZodAsyncError extends Error {
|
|
12302
|
+
constructor() {
|
|
12303
|
+
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
12304
|
+
}
|
|
12305
|
+
};
|
|
12306
|
+
const globalConfig$1 = {};
|
|
12307
|
+
function config$1(newConfig) {
|
|
12308
|
+
return globalConfig$1;
|
|
12309
|
+
}
|
|
12310
|
+
function jsonStringifyReplacer$1(_2, value) {
|
|
12311
|
+
if (typeof value === "bigint")
|
|
12312
|
+
return value.toString();
|
|
12313
|
+
return value;
|
|
12314
|
+
}
|
|
12315
|
+
const captureStackTrace$1 = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
12316
|
+
};
|
|
12317
|
+
function unwrapMessage$1(message2) {
|
|
12318
|
+
return typeof message2 === "string" ? message2 : message2 == null ? void 0 : message2.message;
|
|
12319
|
+
}
|
|
12320
|
+
function finalizeIssue$1(iss, ctx, config2) {
|
|
12321
|
+
var _a2, _b, _c, _d, _e2, _f;
|
|
12322
|
+
const full = { ...iss, path: iss.path ?? [] };
|
|
12323
|
+
if (!iss.message) {
|
|
12324
|
+
const message2 = unwrapMessage$1((_c = (_b = (_a2 = iss.inst) == null ? void 0 : _a2._zod.def) == null ? void 0 : _b.error) == null ? void 0 : _c.call(_b, iss)) ?? unwrapMessage$1((_d = ctx == null ? void 0 : ctx.error) == null ? void 0 : _d.call(ctx, iss)) ?? unwrapMessage$1((_e2 = config2.customError) == null ? void 0 : _e2.call(config2, iss)) ?? unwrapMessage$1((_f = config2.localeError) == null ? void 0 : _f.call(config2, iss)) ?? "Invalid input";
|
|
12325
|
+
full.message = message2;
|
|
12326
|
+
}
|
|
12327
|
+
delete full.inst;
|
|
12328
|
+
delete full.continue;
|
|
12329
|
+
if (!(ctx == null ? void 0 : ctx.reportInput)) {
|
|
12330
|
+
delete full.input;
|
|
12331
|
+
}
|
|
12332
|
+
return full;
|
|
12333
|
+
}
|
|
12334
|
+
const initializer$2 = (inst, def) => {
|
|
12335
|
+
inst.name = "$ZodError";
|
|
12336
|
+
Object.defineProperty(inst, "_zod", {
|
|
12337
|
+
value: inst._zod,
|
|
12338
|
+
enumerable: false
|
|
12339
|
+
});
|
|
12340
|
+
Object.defineProperty(inst, "issues", {
|
|
12341
|
+
value: def,
|
|
12342
|
+
enumerable: false
|
|
12343
|
+
});
|
|
12344
|
+
inst.message = JSON.stringify(def, jsonStringifyReplacer$1, 2);
|
|
12345
|
+
Object.defineProperty(inst, "toString", {
|
|
12346
|
+
value: () => inst.message,
|
|
12347
|
+
enumerable: false
|
|
12348
|
+
});
|
|
12349
|
+
};
|
|
12350
|
+
const $ZodError$1 = $constructor$1("$ZodError", initializer$2);
|
|
12351
|
+
const $ZodRealError$1 = $constructor$1("$ZodError", initializer$2, { Parent: Error });
|
|
12352
|
+
const _parse$1 = (_Err) => (schema, value, _ctx, _params) => {
|
|
12353
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
12354
|
+
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
12355
|
+
if (result instanceof Promise) {
|
|
12356
|
+
throw new $ZodAsyncError$1();
|
|
12357
|
+
}
|
|
12358
|
+
if (result.issues.length) {
|
|
12359
|
+
const e2 = new ((_params == null ? void 0 : _params.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue$1(iss, ctx, config$1())));
|
|
12360
|
+
captureStackTrace$1(e2, _params == null ? void 0 : _params.callee);
|
|
12361
|
+
throw e2;
|
|
12362
|
+
}
|
|
12363
|
+
return result.value;
|
|
12364
|
+
};
|
|
12365
|
+
const parse$2 = /* @__PURE__ */ _parse$1($ZodRealError$1);
|
|
12366
|
+
const _parseAsync$1 = (_Err) => async (schema, value, _ctx, params) => {
|
|
12367
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
12368
|
+
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
12369
|
+
if (result instanceof Promise)
|
|
12370
|
+
result = await result;
|
|
12371
|
+
if (result.issues.length) {
|
|
12372
|
+
const e2 = new ((params == null ? void 0 : params.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue$1(iss, ctx, config$1())));
|
|
12373
|
+
captureStackTrace$1(e2, params == null ? void 0 : params.callee);
|
|
12374
|
+
throw e2;
|
|
12375
|
+
}
|
|
12376
|
+
return result.value;
|
|
12377
|
+
};
|
|
12378
|
+
const parseAsync$1 = /* @__PURE__ */ _parseAsync$1($ZodRealError$1);
|
|
12379
|
+
function t$1(r2, e2) {
|
|
12380
|
+
try {
|
|
12381
|
+
var o2 = r2();
|
|
12382
|
+
} catch (r3) {
|
|
12383
|
+
return e2(r3);
|
|
12384
|
+
}
|
|
12385
|
+
return o2 && o2.then ? o2.then(void 0, e2) : o2;
|
|
12386
|
+
}
|
|
12387
|
+
function s$1(r2, e2) {
|
|
12388
|
+
for (var n2 = {}; r2.length; ) {
|
|
12389
|
+
var t2 = r2[0], s2 = t2.code, i2 = t2.message, a2 = t2.path.join(".");
|
|
12390
|
+
if (!n2[a2]) if ("unionErrors" in t2) {
|
|
12391
|
+
var u2 = t2.unionErrors[0].errors[0];
|
|
12392
|
+
n2[a2] = { message: u2.message, type: u2.code };
|
|
12393
|
+
} else n2[a2] = { message: i2, type: s2 };
|
|
12394
|
+
if ("unionErrors" in t2 && t2.unionErrors.forEach(function(e3) {
|
|
12395
|
+
return e3.errors.forEach(function(e4) {
|
|
12396
|
+
return r2.push(e4);
|
|
12397
|
+
});
|
|
12398
|
+
}), e2) {
|
|
12399
|
+
var c2 = n2[a2].types, f = c2 && c2[t2.code];
|
|
12400
|
+
n2[a2] = appendErrors(a2, e2, n2, s2, f ? [].concat(f, t2.message) : t2.message);
|
|
12401
|
+
}
|
|
12402
|
+
r2.shift();
|
|
12403
|
+
}
|
|
12404
|
+
return n2;
|
|
12405
|
+
}
|
|
12406
|
+
function i$1(r2, e2) {
|
|
12407
|
+
for (var n2 = {}; r2.length; ) {
|
|
12408
|
+
var t2 = r2[0], s2 = t2.code, i2 = t2.message, a2 = t2.path.join(".");
|
|
12409
|
+
if (!n2[a2]) if ("invalid_union" === t2.code && t2.errors.length > 0) {
|
|
12410
|
+
var u2 = t2.errors[0][0];
|
|
12411
|
+
n2[a2] = { message: u2.message, type: u2.code };
|
|
12412
|
+
} else n2[a2] = { message: i2, type: s2 };
|
|
12413
|
+
if ("invalid_union" === t2.code && t2.errors.forEach(function(e3) {
|
|
12414
|
+
return e3.forEach(function(e4) {
|
|
12415
|
+
return r2.push(e4);
|
|
12416
|
+
});
|
|
12417
|
+
}), e2) {
|
|
12418
|
+
var c2 = n2[a2].types, f = c2 && c2[t2.code];
|
|
12419
|
+
n2[a2] = appendErrors(a2, e2, n2, s2, f ? [].concat(f, t2.message) : t2.message);
|
|
12420
|
+
}
|
|
12421
|
+
r2.shift();
|
|
12422
|
+
}
|
|
12423
|
+
return n2;
|
|
12424
|
+
}
|
|
12425
|
+
function a$2(o2, a2, u2) {
|
|
12426
|
+
if (void 0 === u2 && (u2 = {}), (function(r2) {
|
|
12427
|
+
return "_def" in r2 && "object" == typeof r2._def && "typeName" in r2._def;
|
|
12428
|
+
})(o2)) return function(n2, i2, c2) {
|
|
12429
|
+
try {
|
|
12430
|
+
return Promise.resolve(t$1(function() {
|
|
12431
|
+
return Promise.resolve(o2["sync" === u2.mode ? "parse" : "parseAsync"](n2, a2)).then(function(e2) {
|
|
12432
|
+
return c2.shouldUseNativeValidation && o$1({}, c2), { errors: {}, values: u2.raw ? Object.assign({}, n2) : e2 };
|
|
12433
|
+
});
|
|
12434
|
+
}, function(r2) {
|
|
12435
|
+
if ((function(r3) {
|
|
12436
|
+
return Array.isArray(null == r3 ? void 0 : r3.issues);
|
|
12437
|
+
})(r2)) return { values: {}, errors: s$2(s$1(r2.errors, !c2.shouldUseNativeValidation && "all" === c2.criteriaMode), c2) };
|
|
12438
|
+
throw r2;
|
|
12439
|
+
}));
|
|
12440
|
+
} catch (r2) {
|
|
12441
|
+
return Promise.reject(r2);
|
|
12442
|
+
}
|
|
12443
|
+
};
|
|
12444
|
+
if ((function(r2) {
|
|
12445
|
+
return "_zod" in r2 && "object" == typeof r2._zod;
|
|
12446
|
+
})(o2)) return function(s2, c2, f) {
|
|
12447
|
+
try {
|
|
12448
|
+
return Promise.resolve(t$1(function() {
|
|
12449
|
+
return Promise.resolve(("sync" === u2.mode ? parse$2 : parseAsync$1)(o2, s2, a2)).then(function(e2) {
|
|
12450
|
+
return f.shouldUseNativeValidation && o$1({}, f), { errors: {}, values: u2.raw ? Object.assign({}, s2) : e2 };
|
|
12451
|
+
});
|
|
12452
|
+
}, function(r2) {
|
|
12453
|
+
if ((function(r3) {
|
|
12454
|
+
return r3 instanceof $ZodError$1;
|
|
12455
|
+
})(r2)) return { values: {}, errors: s$2(i$1(r2.issues, !f.shouldUseNativeValidation && "all" === f.criteriaMode), f) };
|
|
12456
|
+
throw r2;
|
|
12457
|
+
}));
|
|
12458
|
+
} catch (r2) {
|
|
12459
|
+
return Promise.reject(r2);
|
|
12460
|
+
}
|
|
12461
|
+
};
|
|
12462
|
+
throw new Error("Invalid input: not a Zod schema");
|
|
12463
|
+
}
|
|
12433
12464
|
function $constructor(name, initializer2, params) {
|
|
12434
12465
|
function init(inst, def) {
|
|
12435
12466
|
if (!inst._zod) {
|
|
@@ -12482,7 +12513,7 @@ function $constructor(name, initializer2, params) {
|
|
|
12482
12513
|
Object.defineProperty(_2, "name", { value: name });
|
|
12483
12514
|
return _2;
|
|
12484
12515
|
}
|
|
12485
|
-
class $
|
|
12516
|
+
class $ZodAsyncError2 extends Error {
|
|
12486
12517
|
constructor() {
|
|
12487
12518
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
12488
12519
|
}
|
|
@@ -12941,7 +12972,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
12941
12972
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
12942
12973
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
12943
12974
|
if (result instanceof Promise) {
|
|
12944
|
-
throw new $
|
|
12975
|
+
throw new $ZodAsyncError2();
|
|
12945
12976
|
}
|
|
12946
12977
|
if (result.issues.length) {
|
|
12947
12978
|
const e2 = new ((_params == null ? void 0 : _params.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
@@ -12950,7 +12981,6 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
12950
12981
|
}
|
|
12951
12982
|
return result.value;
|
|
12952
12983
|
};
|
|
12953
|
-
const parse$2 = /* @__PURE__ */ _parse($ZodRealError);
|
|
12954
12984
|
const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
12955
12985
|
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
12956
12986
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -12963,12 +12993,11 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
12963
12993
|
}
|
|
12964
12994
|
return result.value;
|
|
12965
12995
|
};
|
|
12966
|
-
const parseAsync$1 = /* @__PURE__ */ _parseAsync($ZodRealError);
|
|
12967
12996
|
const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
12968
12997
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
12969
12998
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
12970
12999
|
if (result instanceof Promise) {
|
|
12971
|
-
throw new $
|
|
13000
|
+
throw new $ZodAsyncError2();
|
|
12972
13001
|
}
|
|
12973
13002
|
return result.issues.length ? {
|
|
12974
13003
|
success: false,
|
|
@@ -13530,7 +13559,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
13530
13559
|
const currLen = payload.issues.length;
|
|
13531
13560
|
const _2 = ch._zod.check(payload);
|
|
13532
13561
|
if (_2 instanceof Promise && (ctx == null ? void 0 : ctx.async) === false) {
|
|
13533
|
-
throw new $
|
|
13562
|
+
throw new $ZodAsyncError2();
|
|
13534
13563
|
}
|
|
13535
13564
|
if (asyncResult || _2 instanceof Promise) {
|
|
13536
13565
|
asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
|
|
@@ -13564,7 +13593,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
13564
13593
|
const checkResult = runChecks(payload, checks, ctx);
|
|
13565
13594
|
if (checkResult instanceof Promise) {
|
|
13566
13595
|
if (ctx.async === false)
|
|
13567
|
-
throw new $
|
|
13596
|
+
throw new $ZodAsyncError2();
|
|
13568
13597
|
return checkResult.then((checkResult2) => inst._zod.parse(checkResult2, ctx));
|
|
13569
13598
|
}
|
|
13570
13599
|
return inst._zod.parse(checkResult, ctx);
|
|
@@ -13585,7 +13614,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
13585
13614
|
const result = inst._zod.parse(payload, ctx);
|
|
13586
13615
|
if (result instanceof Promise) {
|
|
13587
13616
|
if (ctx.async === false)
|
|
13588
|
-
throw new $
|
|
13617
|
+
throw new $ZodAsyncError2();
|
|
13589
13618
|
return result.then((result2) => runChecks(result2, checks, ctx));
|
|
13590
13619
|
}
|
|
13591
13620
|
return runChecks(result, checks, ctx);
|
|
@@ -14425,7 +14454,7 @@ const $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def)
|
|
|
14425
14454
|
});
|
|
14426
14455
|
}
|
|
14427
14456
|
if (_out instanceof Promise) {
|
|
14428
|
-
throw new $
|
|
14457
|
+
throw new $ZodAsyncError2();
|
|
14429
14458
|
}
|
|
14430
14459
|
payload.value = _out;
|
|
14431
14460
|
return payload;
|
|
@@ -15187,91 +15216,6 @@ function _check(fn, params) {
|
|
|
15187
15216
|
ch._zod.check = fn;
|
|
15188
15217
|
return ch;
|
|
15189
15218
|
}
|
|
15190
|
-
function t$1(r2, e2) {
|
|
15191
|
-
try {
|
|
15192
|
-
var o2 = r2();
|
|
15193
|
-
} catch (r3) {
|
|
15194
|
-
return e2(r3);
|
|
15195
|
-
}
|
|
15196
|
-
return o2 && o2.then ? o2.then(void 0, e2) : o2;
|
|
15197
|
-
}
|
|
15198
|
-
function s$1(r2, e2) {
|
|
15199
|
-
for (var n2 = {}; r2.length; ) {
|
|
15200
|
-
var t2 = r2[0], s2 = t2.code, i2 = t2.message, a2 = t2.path.join(".");
|
|
15201
|
-
if (!n2[a2]) if ("unionErrors" in t2) {
|
|
15202
|
-
var u2 = t2.unionErrors[0].errors[0];
|
|
15203
|
-
n2[a2] = { message: u2.message, type: u2.code };
|
|
15204
|
-
} else n2[a2] = { message: i2, type: s2 };
|
|
15205
|
-
if ("unionErrors" in t2 && t2.unionErrors.forEach(function(e3) {
|
|
15206
|
-
return e3.errors.forEach(function(e4) {
|
|
15207
|
-
return r2.push(e4);
|
|
15208
|
-
});
|
|
15209
|
-
}), e2) {
|
|
15210
|
-
var c2 = n2[a2].types, f = c2 && c2[t2.code];
|
|
15211
|
-
n2[a2] = appendErrors(a2, e2, n2, s2, f ? [].concat(f, t2.message) : t2.message);
|
|
15212
|
-
}
|
|
15213
|
-
r2.shift();
|
|
15214
|
-
}
|
|
15215
|
-
return n2;
|
|
15216
|
-
}
|
|
15217
|
-
function i$1(r2, e2) {
|
|
15218
|
-
for (var n2 = {}; r2.length; ) {
|
|
15219
|
-
var t2 = r2[0], s2 = t2.code, i2 = t2.message, a2 = t2.path.join(".");
|
|
15220
|
-
if (!n2[a2]) if ("invalid_union" === t2.code && t2.errors.length > 0) {
|
|
15221
|
-
var u2 = t2.errors[0][0];
|
|
15222
|
-
n2[a2] = { message: u2.message, type: u2.code };
|
|
15223
|
-
} else n2[a2] = { message: i2, type: s2 };
|
|
15224
|
-
if ("invalid_union" === t2.code && t2.errors.forEach(function(e3) {
|
|
15225
|
-
return e3.forEach(function(e4) {
|
|
15226
|
-
return r2.push(e4);
|
|
15227
|
-
});
|
|
15228
|
-
}), e2) {
|
|
15229
|
-
var c2 = n2[a2].types, f = c2 && c2[t2.code];
|
|
15230
|
-
n2[a2] = appendErrors(a2, e2, n2, s2, f ? [].concat(f, t2.message) : t2.message);
|
|
15231
|
-
}
|
|
15232
|
-
r2.shift();
|
|
15233
|
-
}
|
|
15234
|
-
return n2;
|
|
15235
|
-
}
|
|
15236
|
-
function a$2(o2, a2, u2) {
|
|
15237
|
-
if (void 0 === u2 && (u2 = {}), (function(r2) {
|
|
15238
|
-
return "_def" in r2 && "object" == typeof r2._def && "typeName" in r2._def;
|
|
15239
|
-
})(o2)) return function(n2, i2, c2) {
|
|
15240
|
-
try {
|
|
15241
|
-
return Promise.resolve(t$1(function() {
|
|
15242
|
-
return Promise.resolve(o2["sync" === u2.mode ? "parse" : "parseAsync"](n2, a2)).then(function(e2) {
|
|
15243
|
-
return c2.shouldUseNativeValidation && o$1({}, c2), { errors: {}, values: u2.raw ? Object.assign({}, n2) : e2 };
|
|
15244
|
-
});
|
|
15245
|
-
}, function(r2) {
|
|
15246
|
-
if ((function(r3) {
|
|
15247
|
-
return Array.isArray(null == r3 ? void 0 : r3.issues);
|
|
15248
|
-
})(r2)) return { values: {}, errors: s$2(s$1(r2.errors, !c2.shouldUseNativeValidation && "all" === c2.criteriaMode), c2) };
|
|
15249
|
-
throw r2;
|
|
15250
|
-
}));
|
|
15251
|
-
} catch (r2) {
|
|
15252
|
-
return Promise.reject(r2);
|
|
15253
|
-
}
|
|
15254
|
-
};
|
|
15255
|
-
if ((function(r2) {
|
|
15256
|
-
return "_zod" in r2 && "object" == typeof r2._zod;
|
|
15257
|
-
})(o2)) return function(s2, c2, f) {
|
|
15258
|
-
try {
|
|
15259
|
-
return Promise.resolve(t$1(function() {
|
|
15260
|
-
return Promise.resolve(("sync" === u2.mode ? parse$2 : parseAsync$1)(o2, s2, a2)).then(function(e2) {
|
|
15261
|
-
return f.shouldUseNativeValidation && o$1({}, f), { errors: {}, values: u2.raw ? Object.assign({}, s2) : e2 };
|
|
15262
|
-
});
|
|
15263
|
-
}, function(r2) {
|
|
15264
|
-
if ((function(r3) {
|
|
15265
|
-
return r3 instanceof $ZodError;
|
|
15266
|
-
})(r2)) return { values: {}, errors: s$2(i$1(r2.issues, !f.shouldUseNativeValidation && "all" === f.criteriaMode), f) };
|
|
15267
|
-
throw r2;
|
|
15268
|
-
}));
|
|
15269
|
-
} catch (r2) {
|
|
15270
|
-
return Promise.reject(r2);
|
|
15271
|
-
}
|
|
15272
|
-
};
|
|
15273
|
-
throw new Error("Invalid input: not a Zod schema");
|
|
15274
|
-
}
|
|
15275
15219
|
const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
15276
15220
|
$ZodISODateTime.init(inst, def);
|
|
15277
15221
|
ZodStringFormat.init(inst, def);
|
|
@@ -16247,139 +16191,10 @@ function useFormBuilder(options) {
|
|
|
16247
16191
|
};
|
|
16248
16192
|
}
|
|
16249
16193
|
const FormBuilderContext = createContext(null);
|
|
16250
|
-
var REACT_LAZY_TYPE$4 = Symbol.for("react.lazy");
|
|
16251
|
-
var use$4 = React[" use ".trim().toString()];
|
|
16252
|
-
function isPromiseLike$4(value) {
|
|
16253
|
-
return typeof value === "object" && value !== null && "then" in value;
|
|
16254
|
-
}
|
|
16255
|
-
function isLazyComponent$4(element) {
|
|
16256
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE$4 && "_payload" in element && isPromiseLike$4(element._payload);
|
|
16257
|
-
}
|
|
16258
|
-
// @__NO_SIDE_EFFECTS__
|
|
16259
|
-
function createSlot$4(ownerName) {
|
|
16260
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$4(ownerName);
|
|
16261
|
-
const Slot2 = React.forwardRef((props2, forwardedRef) => {
|
|
16262
|
-
let { children, ...slotProps } = props2;
|
|
16263
|
-
if (isLazyComponent$4(children) && typeof use$4 === "function") {
|
|
16264
|
-
children = use$4(children._payload);
|
|
16265
|
-
}
|
|
16266
|
-
const childrenArray = React.Children.toArray(children);
|
|
16267
|
-
const slottable = childrenArray.find(isSlottable$4);
|
|
16268
|
-
if (slottable) {
|
|
16269
|
-
const newElement = slottable.props.children;
|
|
16270
|
-
const newChildren = childrenArray.map((child) => {
|
|
16271
|
-
if (child === slottable) {
|
|
16272
|
-
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
|
16273
|
-
return React.isValidElement(newElement) ? newElement.props.children : null;
|
|
16274
|
-
} else {
|
|
16275
|
-
return child;
|
|
16276
|
-
}
|
|
16277
|
-
});
|
|
16278
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
|
|
16279
|
-
}
|
|
16280
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
16281
|
-
});
|
|
16282
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
16283
|
-
return Slot2;
|
|
16284
|
-
}
|
|
16285
|
-
// @__NO_SIDE_EFFECTS__
|
|
16286
|
-
function createSlotClone$4(ownerName) {
|
|
16287
|
-
const SlotClone = React.forwardRef((props2, forwardedRef) => {
|
|
16288
|
-
let { children, ...slotProps } = props2;
|
|
16289
|
-
if (isLazyComponent$4(children) && typeof use$4 === "function") {
|
|
16290
|
-
children = use$4(children._payload);
|
|
16291
|
-
}
|
|
16292
|
-
if (React.isValidElement(children)) {
|
|
16293
|
-
const childrenRef = getElementRef$4(children);
|
|
16294
|
-
const props22 = mergeProps$4(slotProps, children.props);
|
|
16295
|
-
if (children.type !== React.Fragment) {
|
|
16296
|
-
props22.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
|
|
16297
|
-
}
|
|
16298
|
-
return React.cloneElement(children, props22);
|
|
16299
|
-
}
|
|
16300
|
-
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
16301
|
-
});
|
|
16302
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
16303
|
-
return SlotClone;
|
|
16304
|
-
}
|
|
16305
|
-
var SLOTTABLE_IDENTIFIER$4 = Symbol("radix.slottable");
|
|
16306
|
-
function isSlottable$4(child) {
|
|
16307
|
-
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$4;
|
|
16308
|
-
}
|
|
16309
|
-
function mergeProps$4(slotProps, childProps) {
|
|
16310
|
-
const overrideProps = { ...childProps };
|
|
16311
|
-
for (const propName in childProps) {
|
|
16312
|
-
const slotPropValue = slotProps[propName];
|
|
16313
|
-
const childPropValue = childProps[propName];
|
|
16314
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
16315
|
-
if (isHandler) {
|
|
16316
|
-
if (slotPropValue && childPropValue) {
|
|
16317
|
-
overrideProps[propName] = (...args) => {
|
|
16318
|
-
const result = childPropValue(...args);
|
|
16319
|
-
slotPropValue(...args);
|
|
16320
|
-
return result;
|
|
16321
|
-
};
|
|
16322
|
-
} else if (slotPropValue) {
|
|
16323
|
-
overrideProps[propName] = slotPropValue;
|
|
16324
|
-
}
|
|
16325
|
-
} else if (propName === "style") {
|
|
16326
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
16327
|
-
} else if (propName === "className") {
|
|
16328
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
16329
|
-
}
|
|
16330
|
-
}
|
|
16331
|
-
return { ...slotProps, ...overrideProps };
|
|
16332
|
-
}
|
|
16333
|
-
function getElementRef$4(element) {
|
|
16334
|
-
var _a2, _b;
|
|
16335
|
-
let getter = (_a2 = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a2.get;
|
|
16336
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
16337
|
-
if (mayWarn) {
|
|
16338
|
-
return element.ref;
|
|
16339
|
-
}
|
|
16340
|
-
getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
|
|
16341
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
16342
|
-
if (mayWarn) {
|
|
16343
|
-
return element.props.ref;
|
|
16344
|
-
}
|
|
16345
|
-
return element.props.ref || element.ref;
|
|
16346
|
-
}
|
|
16347
|
-
var NODES$4 = [
|
|
16348
|
-
"a",
|
|
16349
|
-
"button",
|
|
16350
|
-
"div",
|
|
16351
|
-
"form",
|
|
16352
|
-
"h2",
|
|
16353
|
-
"h3",
|
|
16354
|
-
"img",
|
|
16355
|
-
"input",
|
|
16356
|
-
"label",
|
|
16357
|
-
"li",
|
|
16358
|
-
"nav",
|
|
16359
|
-
"ol",
|
|
16360
|
-
"p",
|
|
16361
|
-
"select",
|
|
16362
|
-
"span",
|
|
16363
|
-
"svg",
|
|
16364
|
-
"ul"
|
|
16365
|
-
];
|
|
16366
|
-
var Primitive$4 = NODES$4.reduce((primitive, node) => {
|
|
16367
|
-
const Slot2 = /* @__PURE__ */ createSlot$4(`Primitive.${node}`);
|
|
16368
|
-
const Node2 = React.forwardRef((props2, forwardedRef) => {
|
|
16369
|
-
const { asChild, ...primitiveProps } = props2;
|
|
16370
|
-
const Comp = asChild ? Slot2 : node;
|
|
16371
|
-
if (typeof window !== "undefined") {
|
|
16372
|
-
window[Symbol.for("radix-ui")] = true;
|
|
16373
|
-
}
|
|
16374
|
-
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
16375
|
-
});
|
|
16376
|
-
Node2.displayName = `Primitive.${node}`;
|
|
16377
|
-
return { ...primitive, [node]: Node2 };
|
|
16378
|
-
}, {});
|
|
16379
16194
|
var NAME$4 = "Label";
|
|
16380
16195
|
var Label$3 = React.forwardRef((props2, forwardedRef) => {
|
|
16381
16196
|
return /* @__PURE__ */ jsx(
|
|
16382
|
-
Primitive
|
|
16197
|
+
Primitive.label,
|
|
16383
16198
|
{
|
|
16384
16199
|
...props2,
|
|
16385
16200
|
ref: forwardedRef,
|
|
@@ -18962,32 +18777,28 @@ var useElementIds = "useId" in React__default ? function useElementIds2(_ref) {
|
|
|
18962
18777
|
if (!id) {
|
|
18963
18778
|
id = reactId;
|
|
18964
18779
|
}
|
|
18965
|
-
var
|
|
18966
|
-
|
|
18967
|
-
|
|
18968
|
-
|
|
18969
|
-
|
|
18970
|
-
|
|
18971
|
-
|
|
18972
|
-
|
|
18973
|
-
|
|
18974
|
-
|
|
18975
|
-
}, [getItemId, id, inputId, labelId, menuId, toggleButtonId]);
|
|
18976
|
-
return elementIds;
|
|
18780
|
+
var elementIdsRef = useRef({
|
|
18781
|
+
labelId: labelId || id + "-label",
|
|
18782
|
+
menuId: menuId || id + "-menu",
|
|
18783
|
+
getItemId: getItemId || function(index2) {
|
|
18784
|
+
return id + "-item-" + index2;
|
|
18785
|
+
},
|
|
18786
|
+
toggleButtonId: toggleButtonId || id + "-toggle-button",
|
|
18787
|
+
inputId: inputId || id + "-input"
|
|
18788
|
+
});
|
|
18789
|
+
return elementIdsRef.current;
|
|
18977
18790
|
} : function useElementIds3(_ref2) {
|
|
18978
18791
|
var _ref2$id = _ref2.id, id = _ref2$id === void 0 ? "downshift-" + generateId() : _ref2$id, labelId = _ref2.labelId, menuId = _ref2.menuId, getItemId = _ref2.getItemId, toggleButtonId = _ref2.toggleButtonId, inputId = _ref2.inputId;
|
|
18979
|
-
var
|
|
18980
|
-
|
|
18981
|
-
|
|
18982
|
-
|
|
18983
|
-
|
|
18984
|
-
|
|
18985
|
-
|
|
18986
|
-
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
}, [getItemId, id, inputId, labelId, menuId, toggleButtonId]);
|
|
18990
|
-
return elementIds;
|
|
18792
|
+
var elementIdsRef = useRef({
|
|
18793
|
+
labelId: labelId || id + "-label",
|
|
18794
|
+
menuId: menuId || id + "-menu",
|
|
18795
|
+
getItemId: getItemId || function(index2) {
|
|
18796
|
+
return id + "-item-" + index2;
|
|
18797
|
+
},
|
|
18798
|
+
toggleButtonId: toggleButtonId || id + "-toggle-button",
|
|
18799
|
+
inputId: inputId || id + "-input"
|
|
18800
|
+
});
|
|
18801
|
+
return elementIdsRef.current;
|
|
18991
18802
|
};
|
|
18992
18803
|
function getItemAndIndex(itemProp, indexProp, items, errorMessage) {
|
|
18993
18804
|
var item, index2;
|
|
@@ -19124,22 +18935,20 @@ function useMouseAndTouchTracker(environment, handleBlur, downshiftElementsRefs)
|
|
|
19124
18935
|
isTouchMove: false,
|
|
19125
18936
|
isTouchEnd: false
|
|
19126
18937
|
});
|
|
19127
|
-
function getDownshiftElements() {
|
|
19128
|
-
return downshiftElementsRefs.map(function(ref) {
|
|
19129
|
-
return ref.current;
|
|
19130
|
-
});
|
|
19131
|
-
}
|
|
19132
18938
|
useEffect(function() {
|
|
19133
18939
|
if (!environment) {
|
|
19134
18940
|
return noop$3;
|
|
19135
18941
|
}
|
|
18942
|
+
var downshiftElements = downshiftElementsRefs.map(function(ref) {
|
|
18943
|
+
return ref.current;
|
|
18944
|
+
});
|
|
19136
18945
|
function onMouseDown() {
|
|
19137
18946
|
mouseAndTouchTrackersRef.current.isTouchEnd = false;
|
|
19138
18947
|
mouseAndTouchTrackersRef.current.isMouseDown = true;
|
|
19139
18948
|
}
|
|
19140
18949
|
function onMouseUp(event) {
|
|
19141
18950
|
mouseAndTouchTrackersRef.current.isMouseDown = false;
|
|
19142
|
-
if (!targetWithinDownshift(event.target,
|
|
18951
|
+
if (!targetWithinDownshift(event.target, downshiftElements, environment)) {
|
|
19143
18952
|
handleBlur();
|
|
19144
18953
|
}
|
|
19145
18954
|
}
|
|
@@ -19152,7 +18961,7 @@ function useMouseAndTouchTracker(environment, handleBlur, downshiftElementsRefs)
|
|
|
19152
18961
|
}
|
|
19153
18962
|
function onTouchEnd(event) {
|
|
19154
18963
|
mouseAndTouchTrackersRef.current.isTouchEnd = true;
|
|
19155
|
-
if (!mouseAndTouchTrackersRef.current.isTouchMove && !targetWithinDownshift(event.target,
|
|
18964
|
+
if (!mouseAndTouchTrackersRef.current.isTouchMove && !targetWithinDownshift(event.target, downshiftElements, environment, false)) {
|
|
19156
18965
|
handleBlur();
|
|
19157
18966
|
}
|
|
19158
18967
|
}
|
|
@@ -19691,13 +19500,9 @@ function useCombobox(userProps) {
|
|
|
19691
19500
|
selectItem: false
|
|
19692
19501
|
});
|
|
19693
19502
|
}
|
|
19694
|
-
}, [dispatch, latest]), useMemo(
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
},
|
|
19698
|
-
// dependencies can be left empty because refs are getting mutated
|
|
19699
|
-
[]
|
|
19700
|
-
));
|
|
19503
|
+
}, [dispatch, latest]), useMemo(function() {
|
|
19504
|
+
return [menuRef, toggleButtonRef, inputRef];
|
|
19505
|
+
}, [menuRef.current, toggleButtonRef.current, inputRef.current]));
|
|
19701
19506
|
var setGetterPropCallInfo = useGetterPropsCalledChecker("getInputProps", "getMenuProps");
|
|
19702
19507
|
useEffect(function() {
|
|
19703
19508
|
if (!isOpen) {
|
|
@@ -20065,7 +19870,7 @@ function a$1(n2, t2, a2) {
|
|
|
20065
19870
|
return o2(m2.current, n2) || (v(n2), m2.current = n2), [f.current, v];
|
|
20066
19871
|
}
|
|
20067
19872
|
const badgeVariants = cva(
|
|
20068
|
-
"inline-flex items-center justify-center rounded-
|
|
19873
|
+
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
20069
19874
|
{
|
|
20070
19875
|
variants: {
|
|
20071
19876
|
variant: {
|
|
@@ -20196,7 +20001,7 @@ var DismissableLayer = React.forwardRef(
|
|
|
20196
20001
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
20197
20002
|
}, []);
|
|
20198
20003
|
return /* @__PURE__ */ jsx(
|
|
20199
|
-
Primitive
|
|
20004
|
+
Primitive.div,
|
|
20200
20005
|
{
|
|
20201
20006
|
...layerProps,
|
|
20202
20007
|
ref: composedRefs,
|
|
@@ -20229,7 +20034,7 @@ var DismissableLayerBranch = React.forwardRef((props2, forwardedRef) => {
|
|
|
20229
20034
|
};
|
|
20230
20035
|
}
|
|
20231
20036
|
}, [context.branches]);
|
|
20232
|
-
return /* @__PURE__ */ jsx(Primitive
|
|
20037
|
+
return /* @__PURE__ */ jsx(Primitive.div, { ...props2, ref: composedRefs });
|
|
20233
20038
|
});
|
|
20234
20039
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
20235
20040
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -20451,7 +20256,7 @@ var FocusScope = React.forwardRef((props2, forwardedRef) => {
|
|
|
20451
20256
|
},
|
|
20452
20257
|
[loop, trapped, focusScope.paused]
|
|
20453
20258
|
);
|
|
20454
|
-
return /* @__PURE__ */ jsx(Primitive
|
|
20259
|
+
return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
20455
20260
|
});
|
|
20456
20261
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
20457
20262
|
function focusFirst$2(candidates, { select = false } = {}) {
|
|
@@ -22415,7 +22220,7 @@ var NAME$3 = "Arrow";
|
|
|
22415
22220
|
var Arrow$1 = React.forwardRef((props2, forwardedRef) => {
|
|
22416
22221
|
const { children, width = 10, height = 5, ...arrowProps } = props2;
|
|
22417
22222
|
return /* @__PURE__ */ jsx(
|
|
22418
|
-
Primitive
|
|
22223
|
+
Primitive.svg,
|
|
22419
22224
|
{
|
|
22420
22225
|
...arrowProps,
|
|
22421
22226
|
ref: forwardedRef,
|
|
@@ -22430,7 +22235,7 @@ var Arrow$1 = React.forwardRef((props2, forwardedRef) => {
|
|
|
22430
22235
|
Arrow$1.displayName = NAME$3;
|
|
22431
22236
|
var Root$b = Arrow$1;
|
|
22432
22237
|
var POPPER_NAME = "Popper";
|
|
22433
|
-
var [createPopperContext, createPopperScope] = createContextScope
|
|
22238
|
+
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
22434
22239
|
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
22435
22240
|
var Popper = (props2) => {
|
|
22436
22241
|
const { __scopePopper, children } = props2;
|
|
@@ -22453,7 +22258,7 @@ var PopperAnchor = React.forwardRef(
|
|
|
22453
22258
|
context.onAnchorChange(anchorRef.current);
|
|
22454
22259
|
}
|
|
22455
22260
|
});
|
|
22456
|
-
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive
|
|
22261
|
+
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });
|
|
22457
22262
|
}
|
|
22458
22263
|
);
|
|
22459
22264
|
PopperAnchor.displayName = ANCHOR_NAME$2;
|
|
@@ -22581,7 +22386,7 @@ var PopperContent = React.forwardRef(
|
|
|
22581
22386
|
arrowY,
|
|
22582
22387
|
shouldHideArrow: cannotCenterArrow,
|
|
22583
22388
|
children: /* @__PURE__ */ jsx(
|
|
22584
|
-
Primitive
|
|
22389
|
+
Primitive.div,
|
|
22585
22390
|
{
|
|
22586
22391
|
"data-side": placedSide,
|
|
22587
22392
|
"data-align": placedAlign,
|
|
@@ -22707,7 +22512,7 @@ var Portal$7 = React.forwardRef((props2, forwardedRef) => {
|
|
|
22707
22512
|
const [mounted, setMounted] = React.useState(false);
|
|
22708
22513
|
useLayoutEffect2(() => setMounted(true), []);
|
|
22709
22514
|
const container = containerProp || mounted && ((_a2 = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : _a2.body);
|
|
22710
|
-
return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive
|
|
22515
|
+
return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
22711
22516
|
});
|
|
22712
22517
|
Portal$7.displayName = PORTAL_NAME$a;
|
|
22713
22518
|
var getDefaultParent = function(originalTarget) {
|
|
@@ -23338,12 +23143,6 @@ function RemoveScrollSideCar(props2) {
|
|
|
23338
23143
|
if ("touches" in event && moveDirection === "h" && target.type === "range") {
|
|
23339
23144
|
return false;
|
|
23340
23145
|
}
|
|
23341
|
-
var selection = window.getSelection();
|
|
23342
|
-
var anchorNode = selection && selection.anchorNode;
|
|
23343
|
-
var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;
|
|
23344
|
-
if (isTouchingSelection) {
|
|
23345
|
-
return false;
|
|
23346
|
-
}
|
|
23347
23146
|
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
23348
23147
|
if (!canBeScrolledInMainDirection) {
|
|
23349
23148
|
return true;
|
|
@@ -23456,7 +23255,7 @@ var ReactRemoveScroll = React.forwardRef(function(props2, ref) {
|
|
|
23456
23255
|
});
|
|
23457
23256
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
23458
23257
|
var POPOVER_NAME = "Popover";
|
|
23459
|
-
var [createPopoverContext] = createContextScope
|
|
23258
|
+
var [createPopoverContext] = createContextScope(POPOVER_NAME, [
|
|
23460
23259
|
createPopperScope
|
|
23461
23260
|
]);
|
|
23462
23261
|
var usePopperScope$4 = createPopperScope();
|
|
@@ -23520,7 +23319,7 @@ var PopoverTrigger$1 = React.forwardRef(
|
|
|
23520
23319
|
const popperScope = usePopperScope$4(__scopePopover);
|
|
23521
23320
|
const composedTriggerRef = useComposedRefs$1(forwardedRef, context.triggerRef);
|
|
23522
23321
|
const trigger = /* @__PURE__ */ jsx(
|
|
23523
|
-
Primitive
|
|
23322
|
+
Primitive.button,
|
|
23524
23323
|
{
|
|
23525
23324
|
type: "button",
|
|
23526
23325
|
"aria-haspopup": "dialog",
|
|
@@ -23556,7 +23355,7 @@ var PopoverContent$1 = React.forwardRef(
|
|
|
23556
23355
|
}
|
|
23557
23356
|
);
|
|
23558
23357
|
PopoverContent$1.displayName = CONTENT_NAME$a;
|
|
23559
|
-
var Slot$3 = /* @__PURE__ */ createSlot$
|
|
23358
|
+
var Slot$3 = /* @__PURE__ */ createSlot$1("PopoverContent.RemoveScroll");
|
|
23560
23359
|
var PopoverContentModal = React.forwardRef(
|
|
23561
23360
|
(props2, forwardedRef) => {
|
|
23562
23361
|
const context = usePopoverContext(CONTENT_NAME$a, props2.__scopePopover);
|
|
@@ -23709,7 +23508,7 @@ var PopoverClose = React.forwardRef(
|
|
|
23709
23508
|
const { __scopePopover, ...closeProps } = props2;
|
|
23710
23509
|
const context = usePopoverContext(CLOSE_NAME$1, __scopePopover);
|
|
23711
23510
|
return /* @__PURE__ */ jsx(
|
|
23712
|
-
Primitive
|
|
23511
|
+
Primitive.button,
|
|
23713
23512
|
{
|
|
23714
23513
|
type: "button",
|
|
23715
23514
|
...closeProps,
|
|
@@ -24234,7 +24033,7 @@ function Autocomplete({
|
|
|
24234
24033
|
...getItemProps({ item, index: index2 }),
|
|
24235
24034
|
className: cn$1(
|
|
24236
24035
|
"flex cursor-pointer items-center justify-between px-2 py-2 text-sm outline-none transition-colors",
|
|
24237
|
-
isHighlighted && "bg-
|
|
24036
|
+
isHighlighted && "bg-[#FAFAFA] text-foreground",
|
|
24238
24037
|
isSelected && "font-medium"
|
|
24239
24038
|
),
|
|
24240
24039
|
children: [
|
|
@@ -24480,7 +24279,7 @@ var NAME$2 = "VisuallyHidden";
|
|
|
24480
24279
|
var VisuallyHidden = React.forwardRef(
|
|
24481
24280
|
(props2, forwardedRef) => {
|
|
24482
24281
|
return /* @__PURE__ */ jsx(
|
|
24483
|
-
Primitive
|
|
24282
|
+
Primitive.span,
|
|
24484
24283
|
{
|
|
24485
24284
|
...props2,
|
|
24486
24285
|
ref: forwardedRef,
|
|
@@ -24495,7 +24294,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
|
|
|
24495
24294
|
var SELECTION_KEYS$1 = [" ", "Enter"];
|
|
24496
24295
|
var SELECT_NAME = "Select";
|
|
24497
24296
|
var [Collection$4, useCollection$4, createCollectionScope$4] = createCollection(SELECT_NAME);
|
|
24498
|
-
var [createSelectContext] = createContextScope
|
|
24297
|
+
var [createSelectContext] = createContextScope(SELECT_NAME, [
|
|
24499
24298
|
createCollectionScope$4,
|
|
24500
24299
|
createPopperScope
|
|
24501
24300
|
]);
|
|
@@ -24632,7 +24431,7 @@ var SelectTrigger$1 = React.forwardRef(
|
|
|
24632
24431
|
}
|
|
24633
24432
|
};
|
|
24634
24433
|
return /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(
|
|
24635
|
-
Primitive
|
|
24434
|
+
Primitive.button,
|
|
24636
24435
|
{
|
|
24637
24436
|
type: "button",
|
|
24638
24437
|
role: "combobox",
|
|
@@ -24691,7 +24490,7 @@ var SelectValue$1 = React.forwardRef(
|
|
|
24691
24490
|
onValueNodeHasChildrenChange(hasChildren);
|
|
24692
24491
|
}, [onValueNodeHasChildrenChange, hasChildren]);
|
|
24693
24492
|
return /* @__PURE__ */ jsx(
|
|
24694
|
-
Primitive
|
|
24493
|
+
Primitive.span,
|
|
24695
24494
|
{
|
|
24696
24495
|
...valueProps,
|
|
24697
24496
|
ref: composedRefs,
|
|
@@ -24706,7 +24505,7 @@ var ICON_NAME = "SelectIcon";
|
|
|
24706
24505
|
var SelectIcon = React.forwardRef(
|
|
24707
24506
|
(props2, forwardedRef) => {
|
|
24708
24507
|
const { __scopeSelect, children, ...iconProps } = props2;
|
|
24709
|
-
return /* @__PURE__ */ jsx(Primitive
|
|
24508
|
+
return /* @__PURE__ */ jsx(Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "▼" });
|
|
24710
24509
|
}
|
|
24711
24510
|
);
|
|
24712
24511
|
SelectIcon.displayName = ICON_NAME;
|
|
@@ -24737,7 +24536,7 @@ SelectContent$1.displayName = CONTENT_NAME$9;
|
|
|
24737
24536
|
var CONTENT_MARGIN = 10;
|
|
24738
24537
|
var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME$9);
|
|
24739
24538
|
var CONTENT_IMPL_NAME = "SelectContentImpl";
|
|
24740
|
-
var Slot$2 = /* @__PURE__ */ createSlot$
|
|
24539
|
+
var Slot$2 = /* @__PURE__ */ createSlot$1("SelectContent.RemoveScroll");
|
|
24741
24540
|
var SelectContentImpl = React.forwardRef(
|
|
24742
24541
|
(props2, forwardedRef) => {
|
|
24743
24542
|
const {
|
|
@@ -25117,7 +24916,7 @@ var SelectItemAlignedPosition = React.forwardRef((props2, forwardedRef) => {
|
|
|
25117
24916
|
zIndex: contentZIndex
|
|
25118
24917
|
},
|
|
25119
24918
|
children: /* @__PURE__ */ jsx(
|
|
25120
|
-
Primitive
|
|
24919
|
+
Primitive.div,
|
|
25121
24920
|
{
|
|
25122
24921
|
...popperProps,
|
|
25123
24922
|
ref: composedRefs,
|
|
@@ -25191,7 +24990,7 @@ var SelectViewport = React.forwardRef(
|
|
|
25191
24990
|
}
|
|
25192
24991
|
),
|
|
25193
24992
|
/* @__PURE__ */ jsx(Collection$4.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
|
|
25194
|
-
Primitive
|
|
24993
|
+
Primitive.div,
|
|
25195
24994
|
{
|
|
25196
24995
|
"data-radix-select-viewport": "",
|
|
25197
24996
|
role: "presentation",
|
|
@@ -25246,7 +25045,7 @@ var SelectGroup$1 = React.forwardRef(
|
|
|
25246
25045
|
(props2, forwardedRef) => {
|
|
25247
25046
|
const { __scopeSelect, ...groupProps } = props2;
|
|
25248
25047
|
const groupId = useId$1();
|
|
25249
|
-
return /* @__PURE__ */ jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx(Primitive
|
|
25048
|
+
return /* @__PURE__ */ jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx(Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
|
|
25250
25049
|
}
|
|
25251
25050
|
);
|
|
25252
25051
|
SelectGroup$1.displayName = GROUP_NAME$4;
|
|
@@ -25255,7 +25054,7 @@ var SelectLabel$1 = React.forwardRef(
|
|
|
25255
25054
|
(props2, forwardedRef) => {
|
|
25256
25055
|
const { __scopeSelect, ...labelProps } = props2;
|
|
25257
25056
|
const groupContext = useSelectGroupContext(LABEL_NAME$4, __scopeSelect);
|
|
25258
|
-
return /* @__PURE__ */ jsx(Primitive
|
|
25057
|
+
return /* @__PURE__ */ jsx(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
|
|
25259
25058
|
}
|
|
25260
25059
|
);
|
|
25261
25060
|
SelectLabel$1.displayName = LABEL_NAME$4;
|
|
@@ -25314,7 +25113,7 @@ var SelectItem$1 = React.forwardRef(
|
|
|
25314
25113
|
disabled,
|
|
25315
25114
|
textValue,
|
|
25316
25115
|
children: /* @__PURE__ */ jsx(
|
|
25317
|
-
Primitive
|
|
25116
|
+
Primitive.div,
|
|
25318
25117
|
{
|
|
25319
25118
|
role: "option",
|
|
25320
25119
|
"aria-labelledby": textId,
|
|
@@ -25397,7 +25196,7 @@ var SelectItemText = React.forwardRef(
|
|
|
25397
25196
|
return () => onNativeOptionRemove(nativeOption);
|
|
25398
25197
|
}, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
|
|
25399
25198
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
25400
|
-
/* @__PURE__ */ jsx(Primitive
|
|
25199
|
+
/* @__PURE__ */ jsx(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
|
|
25401
25200
|
itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM.createPortal(itemTextProps.children, context.valueNode) : null
|
|
25402
25201
|
] });
|
|
25403
25202
|
}
|
|
@@ -25408,7 +25207,7 @@ var SelectItemIndicator = React.forwardRef(
|
|
|
25408
25207
|
(props2, forwardedRef) => {
|
|
25409
25208
|
const { __scopeSelect, ...itemIndicatorProps } = props2;
|
|
25410
25209
|
const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME$1, __scopeSelect);
|
|
25411
|
-
return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive
|
|
25210
|
+
return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
|
|
25412
25211
|
}
|
|
25413
25212
|
);
|
|
25414
25213
|
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME$1;
|
|
@@ -25499,7 +25298,7 @@ var SelectScrollButtonImpl = React.forwardRef((props2, forwardedRef) => {
|
|
|
25499
25298
|
(_a2 = activeItem == null ? void 0 : activeItem.ref.current) == null ? void 0 : _a2.scrollIntoView({ block: "nearest" });
|
|
25500
25299
|
}, [getItems]);
|
|
25501
25300
|
return /* @__PURE__ */ jsx(
|
|
25502
|
-
Primitive
|
|
25301
|
+
Primitive.div,
|
|
25503
25302
|
{
|
|
25504
25303
|
"aria-hidden": true,
|
|
25505
25304
|
...scrollIndicatorProps,
|
|
@@ -25527,7 +25326,7 @@ var SEPARATOR_NAME$4 = "SelectSeparator";
|
|
|
25527
25326
|
var SelectSeparator$1 = React.forwardRef(
|
|
25528
25327
|
(props2, forwardedRef) => {
|
|
25529
25328
|
const { __scopeSelect, ...separatorProps } = props2;
|
|
25530
|
-
return /* @__PURE__ */ jsx(Primitive
|
|
25329
|
+
return /* @__PURE__ */ jsx(Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
|
|
25531
25330
|
}
|
|
25532
25331
|
);
|
|
25533
25332
|
SelectSeparator$1.displayName = SEPARATOR_NAME$4;
|
|
@@ -25564,7 +25363,7 @@ var SelectBubbleInput = React.forwardRef(
|
|
|
25564
25363
|
}
|
|
25565
25364
|
}, [prevValue, value]);
|
|
25566
25365
|
return /* @__PURE__ */ jsx(
|
|
25567
|
-
Primitive
|
|
25366
|
+
Primitive.select,
|
|
25568
25367
|
{
|
|
25569
25368
|
...props2,
|
|
25570
25369
|
style: { ...VISUALLY_HIDDEN_STYLES, ...props2.style },
|
|
@@ -25821,7 +25620,7 @@ function SelectField({
|
|
|
25821
25620
|
}
|
|
25822
25621
|
);
|
|
25823
25622
|
}
|
|
25824
|
-
var [createTooltipContext] = createContextScope
|
|
25623
|
+
var [createTooltipContext] = createContextScope("Tooltip", [
|
|
25825
25624
|
createPopperScope
|
|
25826
25625
|
]);
|
|
25827
25626
|
var usePopperScope$2 = createPopperScope();
|
|
@@ -25980,7 +25779,7 @@ var TooltipTrigger$1 = React.forwardRef(
|
|
|
25980
25779
|
return () => document.removeEventListener("pointerup", handlePointerUp2);
|
|
25981
25780
|
}, [handlePointerUp2]);
|
|
25982
25781
|
return /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(
|
|
25983
|
-
Primitive
|
|
25782
|
+
Primitive.button,
|
|
25984
25783
|
{
|
|
25985
25784
|
"aria-describedby": context.open ? context.contentId : void 0,
|
|
25986
25785
|
"data-state": context.stateAttribute,
|
|
@@ -26330,13 +26129,13 @@ function TooltipContent({
|
|
|
26330
26129
|
"data-slot": "tooltip-content",
|
|
26331
26130
|
sideOffset,
|
|
26332
26131
|
className: cn$1(
|
|
26333
|
-
"bg-
|
|
26132
|
+
"bg-[#424242] text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-[5px] px-2.5 py-[5px] text-[11.5px] text-balance",
|
|
26334
26133
|
className
|
|
26335
26134
|
),
|
|
26336
26135
|
...props2,
|
|
26337
26136
|
children: [
|
|
26338
26137
|
children,
|
|
26339
|
-
/* @__PURE__ */ jsx(Arrow2$1, { className: "bg-
|
|
26138
|
+
/* @__PURE__ */ jsx(Arrow2$1, { className: "bg-[#424242] fill-[#424242] z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
26340
26139
|
]
|
|
26341
26140
|
}
|
|
26342
26141
|
) });
|
|
@@ -26425,7 +26224,7 @@ function CheckboxField({
|
|
|
26425
26224
|
] });
|
|
26426
26225
|
}
|
|
26427
26226
|
var SWITCH_NAME = "Switch";
|
|
26428
|
-
var [createSwitchContext] = createContextScope
|
|
26227
|
+
var [createSwitchContext] = createContextScope(SWITCH_NAME);
|
|
26429
26228
|
var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
|
|
26430
26229
|
var Switch$1 = React.forwardRef(
|
|
26431
26230
|
(props2, forwardedRef) => {
|
|
@@ -26453,7 +26252,7 @@ var Switch$1 = React.forwardRef(
|
|
|
26453
26252
|
});
|
|
26454
26253
|
return /* @__PURE__ */ jsxs(SwitchProvider, { scope: __scopeSwitch, checked, disabled, children: [
|
|
26455
26254
|
/* @__PURE__ */ jsx(
|
|
26456
|
-
Primitive
|
|
26255
|
+
Primitive.button,
|
|
26457
26256
|
{
|
|
26458
26257
|
type: "button",
|
|
26459
26258
|
role: "switch",
|
|
@@ -26498,7 +26297,7 @@ var SwitchThumb = React.forwardRef(
|
|
|
26498
26297
|
const { __scopeSwitch, ...thumbProps } = props2;
|
|
26499
26298
|
const context = useSwitchContext(THUMB_NAME$2, __scopeSwitch);
|
|
26500
26299
|
return /* @__PURE__ */ jsx(
|
|
26501
|
-
Primitive
|
|
26300
|
+
Primitive.span,
|
|
26502
26301
|
{
|
|
26503
26302
|
"data-state": getState$2(context.checked),
|
|
26504
26303
|
"data-disabled": context.disabled ? "" : void 0,
|
|
@@ -26573,7 +26372,7 @@ function Switch({
|
|
|
26573
26372
|
{
|
|
26574
26373
|
"data-slot": "switch",
|
|
26575
26374
|
className: cn$1(
|
|
26576
|
-
"peer data-[state=checked]:bg-
|
|
26375
|
+
"peer data-[state=checked]:bg-[#30A4A1] data-[state=unchecked]:bg-[#e5e7eb] focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
26577
26376
|
className
|
|
26578
26377
|
),
|
|
26579
26378
|
...props2,
|
|
@@ -26665,7 +26464,7 @@ function SwitchField({
|
|
|
26665
26464
|
] });
|
|
26666
26465
|
}
|
|
26667
26466
|
var RADIO_NAME = "Radio";
|
|
26668
|
-
var [createRadioContext, createRadioScope] = createContextScope
|
|
26467
|
+
var [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME);
|
|
26669
26468
|
var [RadioProvider, useRadioContext] = createRadioContext(RADIO_NAME);
|
|
26670
26469
|
var Radio = React.forwardRef(
|
|
26671
26470
|
(props2, forwardedRef) => {
|
|
@@ -26686,7 +26485,7 @@ var Radio = React.forwardRef(
|
|
|
26686
26485
|
const isFormControl = button ? form || !!button.closest("form") : true;
|
|
26687
26486
|
return /* @__PURE__ */ jsxs(RadioProvider, { scope: __scopeRadio, checked, disabled, children: [
|
|
26688
26487
|
/* @__PURE__ */ jsx(
|
|
26689
|
-
Primitive
|
|
26488
|
+
Primitive.button,
|
|
26690
26489
|
{
|
|
26691
26490
|
type: "button",
|
|
26692
26491
|
role: "radio",
|
|
@@ -26730,7 +26529,7 @@ var RadioIndicator = React.forwardRef(
|
|
|
26730
26529
|
const { __scopeRadio, forceMount, ...indicatorProps } = props2;
|
|
26731
26530
|
const context = useRadioContext(INDICATOR_NAME$5, __scopeRadio);
|
|
26732
26531
|
return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.checked, children: /* @__PURE__ */ jsx(
|
|
26733
|
-
Primitive
|
|
26532
|
+
Primitive.span,
|
|
26734
26533
|
{
|
|
26735
26534
|
"data-state": getState$1(context.checked),
|
|
26736
26535
|
"data-disabled": context.disabled ? "" : void 0,
|
|
@@ -26770,7 +26569,7 @@ var RadioBubbleInput = React.forwardRef(
|
|
|
26770
26569
|
}
|
|
26771
26570
|
}, [prevChecked, checked, bubbles]);
|
|
26772
26571
|
return /* @__PURE__ */ jsx(
|
|
26773
|
-
Primitive
|
|
26572
|
+
Primitive.input,
|
|
26774
26573
|
{
|
|
26775
26574
|
type: "radio",
|
|
26776
26575
|
"aria-hidden": true,
|
|
@@ -26796,7 +26595,7 @@ function getState$1(checked) {
|
|
|
26796
26595
|
}
|
|
26797
26596
|
var ARROW_KEYS$2 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
26798
26597
|
var RADIO_GROUP_NAME$4 = "RadioGroup";
|
|
26799
|
-
var [createRadioGroupContext] = createContextScope
|
|
26598
|
+
var [createRadioGroupContext] = createContextScope(RADIO_GROUP_NAME$4, [
|
|
26800
26599
|
createRovingFocusGroupScope,
|
|
26801
26600
|
createRadioScope
|
|
26802
26601
|
]);
|
|
@@ -26844,7 +26643,7 @@ var RadioGroup$2 = React.forwardRef(
|
|
|
26844
26643
|
dir: direction,
|
|
26845
26644
|
loop,
|
|
26846
26645
|
children: /* @__PURE__ */ jsx(
|
|
26847
|
-
Primitive
|
|
26646
|
+
Primitive.div,
|
|
26848
26647
|
{
|
|
26849
26648
|
role: "radiogroup",
|
|
26850
26649
|
"aria-required": required2,
|
|
@@ -27997,7 +27796,7 @@ const match = {
|
|
|
27997
27796
|
defaultParseWidth: "any"
|
|
27998
27797
|
})
|
|
27999
27798
|
};
|
|
28000
|
-
const enUS
|
|
27799
|
+
const enUS = {
|
|
28001
27800
|
code: "en-US",
|
|
28002
27801
|
formatDistance,
|
|
28003
27802
|
formatLong,
|
|
@@ -28844,7 +28643,7 @@ const unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
28844
28643
|
function format(date2, formatStr, options) {
|
|
28845
28644
|
var _a2, _b, _c, _d, _e2, _f, _g, _h;
|
|
28846
28645
|
const defaultOptions2 = getDefaultOptions();
|
|
28847
|
-
const locale = (options == null ? void 0 : options.locale) ?? defaultOptions2.locale ?? enUS
|
|
28646
|
+
const locale = (options == null ? void 0 : options.locale) ?? defaultOptions2.locale ?? enUS;
|
|
28848
28647
|
const firstWeekContainsDate = (options == null ? void 0 : options.firstWeekContainsDate) ?? ((_b = (_a2 = options == null ? void 0 : options.locale) == null ? void 0 : _a2.options) == null ? void 0 : _b.firstWeekContainsDate) ?? defaultOptions2.firstWeekContainsDate ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) ?? 1;
|
|
28849
28648
|
const weekStartsOn = (options == null ? void 0 : options.weekStartsOn) ?? ((_f = (_e2 = options == null ? void 0 : options.locale) == null ? void 0 : _e2.options) == null ? void 0 : _f.weekStartsOn) ?? defaultOptions2.weekStartsOn ?? ((_h = (_g = defaultOptions2.locale) == null ? void 0 : _g.options) == null ? void 0 : _h.weekStartsOn) ?? 0;
|
|
28850
28649
|
const originalDate = toDate(date2, options == null ? void 0 : options.in);
|
|
@@ -28982,63 +28781,6 @@ function endOfBroadcastWeek(date2, dateLib) {
|
|
|
28982
28781
|
const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);
|
|
28983
28782
|
return endDate;
|
|
28984
28783
|
}
|
|
28985
|
-
const enUS = {
|
|
28986
|
-
...enUS$1,
|
|
28987
|
-
labels: {
|
|
28988
|
-
labelDayButton: (date2, modifiers, options, dateLib) => {
|
|
28989
|
-
let formatDate;
|
|
28990
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
28991
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
28992
|
-
} else {
|
|
28993
|
-
formatDate = (d, pattern) => format(d, pattern, { locale: enUS$1, ...options });
|
|
28994
|
-
}
|
|
28995
|
-
let label = formatDate(date2, "PPPP");
|
|
28996
|
-
if (modifiers.today)
|
|
28997
|
-
label = `Today, ${label}`;
|
|
28998
|
-
if (modifiers.selected)
|
|
28999
|
-
label = `${label}, selected`;
|
|
29000
|
-
return label;
|
|
29001
|
-
},
|
|
29002
|
-
labelMonthDropdown: "Choose the Month",
|
|
29003
|
-
labelNext: "Go to the Next Month",
|
|
29004
|
-
labelPrevious: "Go to the Previous Month",
|
|
29005
|
-
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
|
|
29006
|
-
labelYearDropdown: "Choose the Year",
|
|
29007
|
-
labelGrid: (date2, options, dateLib) => {
|
|
29008
|
-
let formatDate;
|
|
29009
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
29010
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
29011
|
-
} else {
|
|
29012
|
-
formatDate = (d, pattern) => format(d, pattern, { locale: enUS$1, ...options });
|
|
29013
|
-
}
|
|
29014
|
-
return formatDate(date2, "LLLL yyyy");
|
|
29015
|
-
},
|
|
29016
|
-
labelGridcell: (date2, modifiers, options, dateLib) => {
|
|
29017
|
-
let formatDate;
|
|
29018
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
29019
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
29020
|
-
} else {
|
|
29021
|
-
formatDate = (d, pattern) => format(d, pattern, { locale: enUS$1, ...options });
|
|
29022
|
-
}
|
|
29023
|
-
let label = formatDate(date2, "PPPP");
|
|
29024
|
-
if (modifiers == null ? void 0 : modifiers.today) {
|
|
29025
|
-
label = `Today, ${label}`;
|
|
29026
|
-
}
|
|
29027
|
-
return label;
|
|
29028
|
-
},
|
|
29029
|
-
labelNav: "Navigation bar",
|
|
29030
|
-
labelWeekNumberHeader: "Week Number",
|
|
29031
|
-
labelWeekday: (date2, options, dateLib) => {
|
|
29032
|
-
let formatDate;
|
|
29033
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
29034
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
29035
|
-
} else {
|
|
29036
|
-
formatDate = (d, pattern) => format(d, pattern, { locale: enUS$1, ...options });
|
|
29037
|
-
}
|
|
29038
|
-
return formatDate(date2, "cccc");
|
|
29039
|
-
}
|
|
29040
|
-
}
|
|
29041
|
-
};
|
|
29042
28784
|
class DateLib {
|
|
29043
28785
|
/**
|
|
29044
28786
|
* Creates an instance of `DateLib`.
|
|
@@ -29322,9 +29064,6 @@ class CalendarDay {
|
|
|
29322
29064
|
this.displayMonth = displayMonth;
|
|
29323
29065
|
this.outside = Boolean(displayMonth && !dateLib.isSameMonth(date2, displayMonth));
|
|
29324
29066
|
this.dateLib = dateLib;
|
|
29325
|
-
this.isoDate = dateLib.format(date2, "yyyy-MM-dd");
|
|
29326
|
-
this.displayMonthId = dateLib.format(displayMonth, "yyyy-MM");
|
|
29327
|
-
this.dateMonthId = dateLib.format(date2, "yyyy-MM");
|
|
29328
29067
|
}
|
|
29329
29068
|
/**
|
|
29330
29069
|
* Checks if this day is equal to another `CalendarDay`, considering both the
|
|
@@ -29635,7 +29374,7 @@ function dateMatchModifiers(date2, matchers, dateLib = defaultDateLib) {
|
|
|
29635
29374
|
return isSameDay2(date2, matcher);
|
|
29636
29375
|
}
|
|
29637
29376
|
if (isDatesArray(matcher, dateLib)) {
|
|
29638
|
-
return matcher.
|
|
29377
|
+
return matcher.includes(date2);
|
|
29639
29378
|
}
|
|
29640
29379
|
if (isDateRange(matcher)) {
|
|
29641
29380
|
return rangeIncludesDate(matcher, date2, false, dateLib);
|
|
@@ -29671,7 +29410,7 @@ function dateMatchModifiers(date2, matchers, dateLib = defaultDateLib) {
|
|
|
29671
29410
|
});
|
|
29672
29411
|
}
|
|
29673
29412
|
function createGetModifiers(days, props2, navStart, navEnd, dateLib) {
|
|
29674
|
-
const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today
|
|
29413
|
+
const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today } = props2;
|
|
29675
29414
|
const { isSameDay: isSameDay2, isSameMonth: isSameMonth2, startOfMonth: startOfMonth2, isBefore: isBefore2, endOfMonth: endOfMonth2, isAfter: isAfter2 } = dateLib;
|
|
29676
29415
|
const computedNavStart = navStart && startOfMonth2(navStart);
|
|
29677
29416
|
const computedNavEnd = navEnd && endOfMonth2(navEnd);
|
|
@@ -29691,7 +29430,7 @@ function createGetModifiers(days, props2, navStart, navEnd, dateLib) {
|
|
|
29691
29430
|
const isDisabled = Boolean(disabled && dateMatchModifiers(date2, disabled, dateLib));
|
|
29692
29431
|
const isHidden2 = Boolean(hidden && dateMatchModifiers(date2, hidden, dateLib)) || isBeforeNavStart || isAfterNavEnd || // Broadcast calendar will show outside days as default
|
|
29693
29432
|
!broadcastCalendar && !showOutsideDays && isOutside || broadcastCalendar && showOutsideDays === false && isOutside;
|
|
29694
|
-
const isToday = isSameDay2(date2, today);
|
|
29433
|
+
const isToday = isSameDay2(date2, today ?? dateLib.today());
|
|
29695
29434
|
if (isOutside)
|
|
29696
29435
|
internalModifiersMap.outside.push(day);
|
|
29697
29436
|
if (isDisabled)
|
|
@@ -29839,6 +29578,60 @@ function getFormatters(customFormatters) {
|
|
|
29839
29578
|
...customFormatters
|
|
29840
29579
|
};
|
|
29841
29580
|
}
|
|
29581
|
+
function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
|
|
29582
|
+
const { startOfMonth: startOfMonth2, startOfYear: startOfYear2, endOfYear: endOfYear2, eachMonthOfInterval: eachMonthOfInterval2, getMonth: getMonth2 } = dateLib;
|
|
29583
|
+
const months = eachMonthOfInterval2({
|
|
29584
|
+
start: startOfYear2(displayMonth),
|
|
29585
|
+
end: endOfYear2(displayMonth)
|
|
29586
|
+
});
|
|
29587
|
+
const options = months.map((month) => {
|
|
29588
|
+
const label = formatters2.formatMonthDropdown(month, dateLib);
|
|
29589
|
+
const value = getMonth2(month);
|
|
29590
|
+
const disabled = navStart && month < startOfMonth2(navStart) || navEnd && month > startOfMonth2(navEnd) || false;
|
|
29591
|
+
return { value, label, disabled };
|
|
29592
|
+
});
|
|
29593
|
+
return options;
|
|
29594
|
+
}
|
|
29595
|
+
function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
|
|
29596
|
+
let style = { ...styles == null ? void 0 : styles[UI.Day] };
|
|
29597
|
+
Object.entries(dayModifiers).filter(([, active]) => active === true).forEach(([modifier]) => {
|
|
29598
|
+
style = {
|
|
29599
|
+
...style,
|
|
29600
|
+
...modifiersStyles == null ? void 0 : modifiersStyles[modifier]
|
|
29601
|
+
};
|
|
29602
|
+
});
|
|
29603
|
+
return style;
|
|
29604
|
+
}
|
|
29605
|
+
function getWeekdays(dateLib, ISOWeek, broadcastCalendar) {
|
|
29606
|
+
const today = dateLib.today();
|
|
29607
|
+
const start = ISOWeek ? dateLib.startOfISOWeek(today) : dateLib.startOfWeek(today);
|
|
29608
|
+
const days = [];
|
|
29609
|
+
for (let i2 = 0; i2 < 7; i2++) {
|
|
29610
|
+
const day = dateLib.addDays(start, i2);
|
|
29611
|
+
days.push(day);
|
|
29612
|
+
}
|
|
29613
|
+
return days;
|
|
29614
|
+
}
|
|
29615
|
+
function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse = false) {
|
|
29616
|
+
if (!navStart)
|
|
29617
|
+
return void 0;
|
|
29618
|
+
if (!navEnd)
|
|
29619
|
+
return void 0;
|
|
29620
|
+
const { startOfYear: startOfYear2, endOfYear: endOfYear2, eachYearOfInterval: eachYearOfInterval2, getYear: getYear2 } = dateLib;
|
|
29621
|
+
const firstNavYear = startOfYear2(navStart);
|
|
29622
|
+
const lastNavYear = endOfYear2(navEnd);
|
|
29623
|
+
const years = eachYearOfInterval2({ start: firstNavYear, end: lastNavYear });
|
|
29624
|
+
if (reverse)
|
|
29625
|
+
years.reverse();
|
|
29626
|
+
return years.map((year) => {
|
|
29627
|
+
const label = formatters2.formatYearDropdown(year, dateLib);
|
|
29628
|
+
return {
|
|
29629
|
+
value: getYear2(year),
|
|
29630
|
+
label,
|
|
29631
|
+
disabled: false
|
|
29632
|
+
};
|
|
29633
|
+
});
|
|
29634
|
+
}
|
|
29842
29635
|
function labelDayButton(date2, modifiers, options, dateLib) {
|
|
29843
29636
|
let label = (dateLib ?? new DateLib(options)).format(date2, "PPPP");
|
|
29844
29637
|
if (modifiers.today)
|
|
@@ -29866,9 +29659,8 @@ function labelMonthDropdown(_options) {
|
|
|
29866
29659
|
function labelNav() {
|
|
29867
29660
|
return "";
|
|
29868
29661
|
}
|
|
29869
|
-
|
|
29870
|
-
|
|
29871
|
-
return defaultLabel;
|
|
29662
|
+
function labelNext(_month) {
|
|
29663
|
+
return "Go to the Next Month";
|
|
29872
29664
|
}
|
|
29873
29665
|
function labelPrevious(_month) {
|
|
29874
29666
|
return "Go to the Previous Month";
|
|
@@ -29901,87 +29693,6 @@ const defaultLabels = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
|
|
|
29901
29693
|
labelWeekday,
|
|
29902
29694
|
labelYearDropdown
|
|
29903
29695
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
29904
|
-
const resolveLabel = (defaultLabel2, customLabel, localeLabel) => {
|
|
29905
|
-
if (customLabel)
|
|
29906
|
-
return customLabel;
|
|
29907
|
-
if (localeLabel) {
|
|
29908
|
-
return typeof localeLabel === "function" ? localeLabel : (..._args) => localeLabel;
|
|
29909
|
-
}
|
|
29910
|
-
return defaultLabel2;
|
|
29911
|
-
};
|
|
29912
|
-
function getLabels(customLabels, options) {
|
|
29913
|
-
var _a2;
|
|
29914
|
-
const localeLabels = ((_a2 = options.locale) == null ? void 0 : _a2.labels) ?? {};
|
|
29915
|
-
return {
|
|
29916
|
-
...defaultLabels,
|
|
29917
|
-
...customLabels ?? {},
|
|
29918
|
-
labelDayButton: resolveLabel(labelDayButton, customLabels == null ? void 0 : customLabels.labelDayButton, localeLabels.labelDayButton),
|
|
29919
|
-
labelMonthDropdown: resolveLabel(labelMonthDropdown, customLabels == null ? void 0 : customLabels.labelMonthDropdown, localeLabels.labelMonthDropdown),
|
|
29920
|
-
labelNext: resolveLabel(labelNext, customLabels == null ? void 0 : customLabels.labelNext, localeLabels.labelNext),
|
|
29921
|
-
labelPrevious: resolveLabel(labelPrevious, customLabels == null ? void 0 : customLabels.labelPrevious, localeLabels.labelPrevious),
|
|
29922
|
-
labelWeekNumber: resolveLabel(labelWeekNumber, customLabels == null ? void 0 : customLabels.labelWeekNumber, localeLabels.labelWeekNumber),
|
|
29923
|
-
labelYearDropdown: resolveLabel(labelYearDropdown, customLabels == null ? void 0 : customLabels.labelYearDropdown, localeLabels.labelYearDropdown),
|
|
29924
|
-
labelGrid: resolveLabel(labelGrid, customLabels == null ? void 0 : customLabels.labelGrid, localeLabels.labelGrid),
|
|
29925
|
-
labelGridcell: resolveLabel(labelGridcell, customLabels == null ? void 0 : customLabels.labelGridcell, localeLabels.labelGridcell),
|
|
29926
|
-
labelNav: resolveLabel(labelNav, customLabels == null ? void 0 : customLabels.labelNav, localeLabels.labelNav),
|
|
29927
|
-
labelWeekNumberHeader: resolveLabel(labelWeekNumberHeader, customLabels == null ? void 0 : customLabels.labelWeekNumberHeader, localeLabels.labelWeekNumberHeader),
|
|
29928
|
-
labelWeekday: resolveLabel(labelWeekday, customLabels == null ? void 0 : customLabels.labelWeekday, localeLabels.labelWeekday)
|
|
29929
|
-
};
|
|
29930
|
-
}
|
|
29931
|
-
function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
|
|
29932
|
-
const { startOfMonth: startOfMonth2, startOfYear: startOfYear2, endOfYear: endOfYear2, eachMonthOfInterval: eachMonthOfInterval2, getMonth: getMonth2 } = dateLib;
|
|
29933
|
-
const months = eachMonthOfInterval2({
|
|
29934
|
-
start: startOfYear2(displayMonth),
|
|
29935
|
-
end: endOfYear2(displayMonth)
|
|
29936
|
-
});
|
|
29937
|
-
const options = months.map((month) => {
|
|
29938
|
-
const label = formatters2.formatMonthDropdown(month, dateLib);
|
|
29939
|
-
const value = getMonth2(month);
|
|
29940
|
-
const disabled = navStart && month < startOfMonth2(navStart) || navEnd && month > startOfMonth2(navEnd) || false;
|
|
29941
|
-
return { value, label, disabled };
|
|
29942
|
-
});
|
|
29943
|
-
return options;
|
|
29944
|
-
}
|
|
29945
|
-
function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
|
|
29946
|
-
let style = { ...styles == null ? void 0 : styles[UI.Day] };
|
|
29947
|
-
Object.entries(dayModifiers).filter(([, active]) => active === true).forEach(([modifier]) => {
|
|
29948
|
-
style = {
|
|
29949
|
-
...style,
|
|
29950
|
-
...modifiersStyles == null ? void 0 : modifiersStyles[modifier]
|
|
29951
|
-
};
|
|
29952
|
-
});
|
|
29953
|
-
return style;
|
|
29954
|
-
}
|
|
29955
|
-
function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
|
|
29956
|
-
const referenceToday = today ?? dateLib.today();
|
|
29957
|
-
const start = broadcastCalendar ? dateLib.startOfBroadcastWeek(referenceToday, dateLib) : ISOWeek ? dateLib.startOfISOWeek(referenceToday) : dateLib.startOfWeek(referenceToday);
|
|
29958
|
-
const days = [];
|
|
29959
|
-
for (let i2 = 0; i2 < 7; i2++) {
|
|
29960
|
-
const day = dateLib.addDays(start, i2);
|
|
29961
|
-
days.push(day);
|
|
29962
|
-
}
|
|
29963
|
-
return days;
|
|
29964
|
-
}
|
|
29965
|
-
function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse = false) {
|
|
29966
|
-
if (!navStart)
|
|
29967
|
-
return void 0;
|
|
29968
|
-
if (!navEnd)
|
|
29969
|
-
return void 0;
|
|
29970
|
-
const { startOfYear: startOfYear2, endOfYear: endOfYear2, eachYearOfInterval: eachYearOfInterval2, getYear: getYear2 } = dateLib;
|
|
29971
|
-
const firstNavYear = startOfYear2(navStart);
|
|
29972
|
-
const lastNavYear = endOfYear2(navEnd);
|
|
29973
|
-
const years = eachYearOfInterval2({ start: firstNavYear, end: lastNavYear });
|
|
29974
|
-
if (reverse)
|
|
29975
|
-
years.reverse();
|
|
29976
|
-
return years.map((year) => {
|
|
29977
|
-
const label = formatters2.formatYearDropdown(year, dateLib);
|
|
29978
|
-
return {
|
|
29979
|
-
value: getYear2(year),
|
|
29980
|
-
label,
|
|
29981
|
-
disabled: false
|
|
29982
|
-
};
|
|
29983
|
-
});
|
|
29984
|
-
}
|
|
29985
29696
|
const asHtmlElement = (element) => {
|
|
29986
29697
|
if (element instanceof HTMLElement)
|
|
29987
29698
|
return element;
|
|
@@ -30111,14 +29822,15 @@ function getDates(displayMonths, maxDate, props2, dateLib) {
|
|
|
30111
29822
|
const { ISOWeek, fixedWeeks, broadcastCalendar } = props2 ?? {};
|
|
30112
29823
|
const { addDays: addDays2, differenceInCalendarDays: differenceInCalendarDays2, differenceInCalendarMonths: differenceInCalendarMonths2, endOfBroadcastWeek: endOfBroadcastWeek2, endOfISOWeek: endOfISOWeek2, endOfMonth: endOfMonth2, endOfWeek: endOfWeek2, isAfter: isAfter2, startOfBroadcastWeek: startOfBroadcastWeek2, startOfISOWeek: startOfISOWeek2, startOfWeek: startOfWeek2 } = dateLib;
|
|
30113
29824
|
const startWeekFirstDate = broadcastCalendar ? startOfBroadcastWeek2(firstMonth, dateLib) : ISOWeek ? startOfISOWeek2(firstMonth) : startOfWeek2(firstMonth);
|
|
30114
|
-
const
|
|
30115
|
-
const
|
|
30116
|
-
const gridEndDate = constraintWeekEnd && isAfter2(displayMonthsWeekEnd, constraintWeekEnd) ? constraintWeekEnd : displayMonthsWeekEnd;
|
|
30117
|
-
const nOfDays = differenceInCalendarDays2(gridEndDate, startWeekFirstDate);
|
|
29825
|
+
const endWeekLastDate = broadcastCalendar ? endOfBroadcastWeek2(lastMonth) : ISOWeek ? endOfISOWeek2(endOfMonth2(lastMonth)) : endOfWeek2(endOfMonth2(lastMonth));
|
|
29826
|
+
const nOfDays = differenceInCalendarDays2(endWeekLastDate, startWeekFirstDate);
|
|
30118
29827
|
const nOfMonths = differenceInCalendarMonths2(lastMonth, firstMonth) + 1;
|
|
30119
29828
|
const dates = [];
|
|
30120
29829
|
for (let i2 = 0; i2 <= nOfDays; i2++) {
|
|
30121
29830
|
const date2 = addDays2(startWeekFirstDate, i2);
|
|
29831
|
+
if (maxDate && isAfter2(date2, maxDate)) {
|
|
29832
|
+
break;
|
|
29833
|
+
}
|
|
30122
29834
|
dates.push(date2);
|
|
30123
29835
|
}
|
|
30124
29836
|
const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;
|
|
@@ -30285,7 +29997,6 @@ function useControlledValue(defaultValue, controlledValue) {
|
|
|
30285
29997
|
return [value, setValue];
|
|
30286
29998
|
}
|
|
30287
29999
|
function useCalendar(props2, dateLib) {
|
|
30288
|
-
var _a2;
|
|
30289
30000
|
const [navStart, navEnd] = getNavMonths(props2, dateLib);
|
|
30290
30001
|
const { startOfMonth: startOfMonth2, endOfMonth: endOfMonth2 } = dateLib;
|
|
30291
30002
|
const initialMonth = getInitialMonth(props2, navStart, navEnd, dateLib);
|
|
@@ -30298,44 +30009,13 @@ function useCalendar(props2, dateLib) {
|
|
|
30298
30009
|
const newInitialMonth = getInitialMonth(props2, navStart, navEnd, dateLib);
|
|
30299
30010
|
setFirstMonth(newInitialMonth);
|
|
30300
30011
|
}, [props2.timeZone]);
|
|
30301
|
-
const
|
|
30302
|
-
|
|
30303
|
-
|
|
30304
|
-
|
|
30305
|
-
|
|
30306
|
-
|
|
30307
|
-
|
|
30308
|
-
const months2 = getMonths(displayMonths, dates, {
|
|
30309
|
-
broadcastCalendar: props2.broadcastCalendar,
|
|
30310
|
-
fixedWeeks: props2.fixedWeeks,
|
|
30311
|
-
ISOWeek: props2.ISOWeek,
|
|
30312
|
-
reverseMonths: props2.reverseMonths
|
|
30313
|
-
}, dateLib);
|
|
30314
|
-
const weeks2 = getWeeks(months2);
|
|
30315
|
-
const days2 = getDays(months2);
|
|
30316
|
-
const previousMonth2 = getPreviousMonth(firstMonth, navStart, props2, dateLib);
|
|
30317
|
-
const nextMonth2 = getNextMonth(firstMonth, navEnd, props2, dateLib);
|
|
30318
|
-
return {
|
|
30319
|
-
months: months2,
|
|
30320
|
-
weeks: weeks2,
|
|
30321
|
-
days: days2,
|
|
30322
|
-
previousMonth: previousMonth2,
|
|
30323
|
-
nextMonth: nextMonth2
|
|
30324
|
-
};
|
|
30325
|
-
}, [
|
|
30326
|
-
dateLib,
|
|
30327
|
-
firstMonth.getTime(),
|
|
30328
|
-
navEnd == null ? void 0 : navEnd.getTime(),
|
|
30329
|
-
navStart == null ? void 0 : navStart.getTime(),
|
|
30330
|
-
props2.disableNavigation,
|
|
30331
|
-
props2.broadcastCalendar,
|
|
30332
|
-
(_a2 = props2.endMonth) == null ? void 0 : _a2.getTime(),
|
|
30333
|
-
props2.fixedWeeks,
|
|
30334
|
-
props2.ISOWeek,
|
|
30335
|
-
props2.numberOfMonths,
|
|
30336
|
-
props2.pagedNavigation,
|
|
30337
|
-
props2.reverseMonths
|
|
30338
|
-
]);
|
|
30012
|
+
const displayMonths = getDisplayMonths(firstMonth, navEnd, props2, dateLib);
|
|
30013
|
+
const dates = getDates(displayMonths, props2.endMonth ? endOfMonth2(props2.endMonth) : void 0, props2, dateLib);
|
|
30014
|
+
const months = getMonths(displayMonths, dates, props2, dateLib);
|
|
30015
|
+
const weeks = getWeeks(months);
|
|
30016
|
+
const days = getDays(months);
|
|
30017
|
+
const previousMonth = getPreviousMonth(firstMonth, navStart, props2, dateLib);
|
|
30018
|
+
const nextMonth = getNextMonth(firstMonth, navEnd, props2, dateLib);
|
|
30339
30019
|
const { disableNavigation, onMonthChange } = props2;
|
|
30340
30020
|
const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));
|
|
30341
30021
|
const goToMonth = (date2) => {
|
|
@@ -30703,104 +30383,38 @@ function useSelection(props2, dateLib) {
|
|
|
30703
30383
|
return void 0;
|
|
30704
30384
|
}
|
|
30705
30385
|
}
|
|
30706
|
-
function toTimeZone(date2, timeZone) {
|
|
30707
|
-
if (date2 instanceof TZDate && date2.timeZone === timeZone) {
|
|
30708
|
-
return date2;
|
|
30709
|
-
}
|
|
30710
|
-
return new TZDate(date2, timeZone);
|
|
30711
|
-
}
|
|
30712
|
-
function convertMatcher(matcher, timeZone) {
|
|
30713
|
-
if (typeof matcher === "boolean" || typeof matcher === "function") {
|
|
30714
|
-
return matcher;
|
|
30715
|
-
}
|
|
30716
|
-
if (matcher instanceof Date) {
|
|
30717
|
-
return toTimeZone(matcher, timeZone);
|
|
30718
|
-
}
|
|
30719
|
-
if (Array.isArray(matcher)) {
|
|
30720
|
-
return matcher.map((value) => value instanceof Date ? toTimeZone(value, timeZone) : value);
|
|
30721
|
-
}
|
|
30722
|
-
if (isDateRange(matcher)) {
|
|
30723
|
-
return {
|
|
30724
|
-
...matcher,
|
|
30725
|
-
from: matcher.from ? toTimeZone(matcher.from, timeZone) : matcher.from,
|
|
30726
|
-
to: matcher.to ? toTimeZone(matcher.to, timeZone) : matcher.to
|
|
30727
|
-
};
|
|
30728
|
-
}
|
|
30729
|
-
if (isDateInterval(matcher)) {
|
|
30730
|
-
return {
|
|
30731
|
-
before: toTimeZone(matcher.before, timeZone),
|
|
30732
|
-
after: toTimeZone(matcher.after, timeZone)
|
|
30733
|
-
};
|
|
30734
|
-
}
|
|
30735
|
-
if (isDateAfterType(matcher)) {
|
|
30736
|
-
return {
|
|
30737
|
-
after: toTimeZone(matcher.after, timeZone)
|
|
30738
|
-
};
|
|
30739
|
-
}
|
|
30740
|
-
if (isDateBeforeType(matcher)) {
|
|
30741
|
-
return {
|
|
30742
|
-
before: toTimeZone(matcher.before, timeZone)
|
|
30743
|
-
};
|
|
30744
|
-
}
|
|
30745
|
-
return matcher;
|
|
30746
|
-
}
|
|
30747
|
-
function convertMatchersToTimeZone(matchers, timeZone) {
|
|
30748
|
-
if (!matchers) {
|
|
30749
|
-
return matchers;
|
|
30750
|
-
}
|
|
30751
|
-
if (Array.isArray(matchers)) {
|
|
30752
|
-
return matchers.map((matcher) => convertMatcher(matcher, timeZone));
|
|
30753
|
-
}
|
|
30754
|
-
return convertMatcher(matchers, timeZone);
|
|
30755
|
-
}
|
|
30756
30386
|
function DayPicker(initialProps) {
|
|
30757
30387
|
var _a2;
|
|
30758
30388
|
let props2 = initialProps;
|
|
30759
|
-
|
|
30760
|
-
if (timeZone) {
|
|
30389
|
+
if (props2.timeZone) {
|
|
30761
30390
|
props2 = {
|
|
30762
|
-
...initialProps
|
|
30763
|
-
timeZone
|
|
30391
|
+
...initialProps
|
|
30764
30392
|
};
|
|
30765
30393
|
if (props2.today) {
|
|
30766
|
-
props2.today =
|
|
30394
|
+
props2.today = new TZDate(props2.today, props2.timeZone);
|
|
30767
30395
|
}
|
|
30768
30396
|
if (props2.month) {
|
|
30769
|
-
props2.month =
|
|
30397
|
+
props2.month = new TZDate(props2.month, props2.timeZone);
|
|
30770
30398
|
}
|
|
30771
30399
|
if (props2.defaultMonth) {
|
|
30772
|
-
props2.defaultMonth =
|
|
30400
|
+
props2.defaultMonth = new TZDate(props2.defaultMonth, props2.timeZone);
|
|
30773
30401
|
}
|
|
30774
30402
|
if (props2.startMonth) {
|
|
30775
|
-
props2.startMonth =
|
|
30403
|
+
props2.startMonth = new TZDate(props2.startMonth, props2.timeZone);
|
|
30776
30404
|
}
|
|
30777
30405
|
if (props2.endMonth) {
|
|
30778
|
-
props2.endMonth =
|
|
30406
|
+
props2.endMonth = new TZDate(props2.endMonth, props2.timeZone);
|
|
30779
30407
|
}
|
|
30780
30408
|
if (props2.mode === "single" && props2.selected) {
|
|
30781
|
-
props2.selected =
|
|
30409
|
+
props2.selected = new TZDate(props2.selected, props2.timeZone);
|
|
30782
30410
|
} else if (props2.mode === "multiple" && props2.selected) {
|
|
30783
|
-
props2.selected = (_a2 = props2.selected) == null ? void 0 : _a2.map((date2) =>
|
|
30411
|
+
props2.selected = (_a2 = props2.selected) == null ? void 0 : _a2.map((date2) => new TZDate(date2, props2.timeZone));
|
|
30784
30412
|
} else if (props2.mode === "range" && props2.selected) {
|
|
30785
30413
|
props2.selected = {
|
|
30786
|
-
from: props2.selected.from ?
|
|
30787
|
-
to: props2.selected.to ?
|
|
30414
|
+
from: props2.selected.from ? new TZDate(props2.selected.from, props2.timeZone) : void 0,
|
|
30415
|
+
to: props2.selected.to ? new TZDate(props2.selected.to, props2.timeZone) : void 0
|
|
30788
30416
|
};
|
|
30789
30417
|
}
|
|
30790
|
-
if (props2.disabled !== void 0) {
|
|
30791
|
-
props2.disabled = convertMatchersToTimeZone(props2.disabled, timeZone);
|
|
30792
|
-
}
|
|
30793
|
-
if (props2.hidden !== void 0) {
|
|
30794
|
-
props2.hidden = convertMatchersToTimeZone(props2.hidden, timeZone);
|
|
30795
|
-
}
|
|
30796
|
-
if (props2.modifiers) {
|
|
30797
|
-
const nextModifiers = {};
|
|
30798
|
-
Object.keys(props2.modifiers).forEach((key) => {
|
|
30799
|
-
var _a3;
|
|
30800
|
-
nextModifiers[key] = convertMatchersToTimeZone((_a3 = props2.modifiers) == null ? void 0 : _a3[key], timeZone);
|
|
30801
|
-
});
|
|
30802
|
-
props2.modifiers = nextModifiers;
|
|
30803
|
-
}
|
|
30804
30418
|
}
|
|
30805
30419
|
const { components: components2, formatters: formatters2, labels, dateLib, locale, classNames } = useMemo(() => {
|
|
30806
30420
|
const locale2 = { ...enUS, ...props2.locale };
|
|
@@ -30817,7 +30431,7 @@ function DayPicker(initialProps) {
|
|
|
30817
30431
|
dateLib: dateLib2,
|
|
30818
30432
|
components: getComponents(props2.components),
|
|
30819
30433
|
formatters: getFormatters(props2.formatters),
|
|
30820
|
-
labels:
|
|
30434
|
+
labels: { ...defaultLabels, ...props2.labels },
|
|
30821
30435
|
locale: locale2,
|
|
30822
30436
|
classNames: { ...getDefaultClassNames(), ...props2.classNames }
|
|
30823
30437
|
};
|
|
@@ -30836,9 +30450,6 @@ function DayPicker(initialProps) {
|
|
|
30836
30450
|
props2.labels,
|
|
30837
30451
|
props2.classNames
|
|
30838
30452
|
]);
|
|
30839
|
-
if (!props2.today) {
|
|
30840
|
-
props2 = { ...props2, today: dateLib.today() };
|
|
30841
|
-
}
|
|
30842
30453
|
const { captionLayout, mode, navLayout, numberOfMonths = 1, onDayBlur, onDayClick, onDayFocus, onDayKeyDown, onDayMouseEnter, onDayMouseLeave, onNextClick, onPrevClick, showWeekNumber, styles } = props2;
|
|
30843
30454
|
const { formatCaption: formatCaption2, formatDay: formatDay2, formatMonthDropdown: formatMonthDropdown2, formatWeekNumber: formatWeekNumber2, formatWeekNumberHeader: formatWeekNumberHeader2, formatWeekdayName: formatWeekdayName2, formatYearDropdown: formatYearDropdown2 } = formatters2;
|
|
30844
30455
|
const calendar = useCalendar(props2, dateLib);
|
|
@@ -30847,7 +30458,7 @@ function DayPicker(initialProps) {
|
|
|
30847
30458
|
const { isSelected, select, selected: selectedValue } = useSelection(props2, dateLib) ?? {};
|
|
30848
30459
|
const { blur, focused, isFocusTarget, moveFocus, setFocused } = useFocus(props2, calendar, getModifiers, isSelected ?? (() => false), dateLib);
|
|
30849
30460
|
const { labelDayButton: labelDayButton2, labelGridcell: labelGridcell2, labelGrid: labelGrid2, labelMonthDropdown: labelMonthDropdown2, labelNav: labelNav2, labelPrevious: labelPrevious2, labelNext: labelNext2, labelWeekday: labelWeekday2, labelWeekNumber: labelWeekNumber2, labelWeekNumberHeader: labelWeekNumberHeader2, labelYearDropdown: labelYearDropdown2 } = labels;
|
|
30850
|
-
const weekdays = useMemo(() => getWeekdays(dateLib, props2.ISOWeek
|
|
30461
|
+
const weekdays = useMemo(() => getWeekdays(dateLib, props2.ISOWeek), [dateLib, props2.ISOWeek]);
|
|
30851
30462
|
const isInteractive = mode !== void 0 || onDayClick !== void 0;
|
|
30852
30463
|
const handlePreviousClick = useCallback(() => {
|
|
30853
30464
|
if (!previousMonth)
|
|
@@ -30865,9 +30476,6 @@ function DayPicker(initialProps) {
|
|
|
30865
30476
|
e2.preventDefault();
|
|
30866
30477
|
e2.stopPropagation();
|
|
30867
30478
|
setFocused(day);
|
|
30868
|
-
if (m2.disabled) {
|
|
30869
|
-
return;
|
|
30870
|
-
}
|
|
30871
30479
|
select == null ? void 0 : select(day.date, m2, e2);
|
|
30872
30480
|
onDayClick == null ? void 0 : onDayClick(day.date, m2, e2);
|
|
30873
30481
|
}, [select, onDayClick, setFocused]);
|
|
@@ -30996,7 +30604,10 @@ function DayPicker(initialProps) {
|
|
|
30996
30604
|
whiteSpace: "nowrap",
|
|
30997
30605
|
wordWrap: "normal"
|
|
30998
30606
|
} }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))
|
|
30999
|
-
) :
|
|
30607
|
+
) : (
|
|
30608
|
+
// biome-ignore lint/a11y/useSemanticElements: breaking change
|
|
30609
|
+
React__default.createElement(components2.CaptionLabel, { className: classNames[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))
|
|
30610
|
+
)),
|
|
31000
30611
|
navLayout === "around" && !props2.hideNavigation && displayIndex === numberOfMonths - 1 && React__default.createElement(
|
|
31001
30612
|
components2.NextMonthButton,
|
|
31002
30613
|
{ type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick, "data-animated-button": props2.animate ? "true" : void 0 },
|
|
@@ -31016,7 +30627,8 @@ function DayPicker(initialProps) {
|
|
|
31016
30627
|
return React__default.createElement(
|
|
31017
30628
|
components2.Week,
|
|
31018
30629
|
{ className: classNames[UI.Week], key: week.weekNumber, style: styles == null ? void 0 : styles[UI.Week], week },
|
|
31019
|
-
showWeekNumber &&
|
|
30630
|
+
showWeekNumber && // biome-ignore lint/a11y/useSemanticElements: react component
|
|
30631
|
+
React__default.createElement(components2.WeekNumber, { week, style: styles == null ? void 0 : styles[UI.WeekNumber], "aria-label": labelWeekNumber2(week.weekNumber, {
|
|
31020
30632
|
locale
|
|
31021
30633
|
}), className: classNames[UI.WeekNumber], scope: "row", role: "rowheader" }, formatWeekNumber2(week.weekNumber, dateLib)),
|
|
31022
30634
|
week.days.map((day) => {
|
|
@@ -31033,7 +30645,10 @@ function DayPicker(initialProps) {
|
|
|
31033
30645
|
const style2 = getStyleForModifiers(modifiers, styles, props2.modifiersStyles);
|
|
31034
30646
|
const className2 = getClassNamesForModifiers(modifiers, classNames, props2.modifiersClassNames);
|
|
31035
30647
|
const ariaLabel = !isInteractive && !modifiers.hidden ? labelGridcell2(date2, modifiers, dateLib.options, dateLib) : void 0;
|
|
31036
|
-
return
|
|
30648
|
+
return (
|
|
30649
|
+
// biome-ignore lint/a11y/useSemanticElements: react component
|
|
30650
|
+
React__default.createElement(components2.Day, { key: `${dateLib.format(date2, "yyyy-MM-dd")}_${dateLib.format(day.displayMonth, "yyyy-MM")}`, day, modifiers, className: className2.join(" "), style: style2, role: "gridcell", "aria-selected": modifiers.selected || void 0, "aria-label": ariaLabel, "data-day": dateLib.format(date2, "yyyy-MM-dd"), "data-month": day.outside ? dateLib.format(date2, "yyyy-MM") : void 0, "data-selected": modifiers.selected || void 0, "data-disabled": modifiers.disabled || void 0, "data-hidden": modifiers.hidden || void 0, "data-outside": day.outside || void 0, "data-focused": modifiers.focused || void 0, "data-today": modifiers.today || void 0 }, !modifiers.hidden && isInteractive ? React__default.createElement(components2.DayButton, { className: classNames[UI.DayButton], style: styles == null ? void 0 : styles[UI.DayButton], type: "button", day, modifiers, disabled: modifiers.disabled || void 0, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton2(date2, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay2(date2, dateLib.options, dateLib)) : !modifiers.hidden && formatDay2(day.date, dateLib.options, dateLib))
|
|
30651
|
+
);
|
|
31037
30652
|
})
|
|
31038
30653
|
);
|
|
31039
30654
|
}))
|
|
@@ -31041,7 +30656,8 @@ function DayPicker(initialProps) {
|
|
|
31041
30656
|
);
|
|
31042
30657
|
})
|
|
31043
30658
|
),
|
|
31044
|
-
props2.footer &&
|
|
30659
|
+
props2.footer && // biome-ignore lint/a11y/useSemanticElements: react component
|
|
30660
|
+
React__default.createElement(components2.Footer, { className: classNames[UI.Footer], style: styles == null ? void 0 : styles[UI.Footer], role: "status", "aria-live": "polite" }, props2.footer)
|
|
31045
30661
|
)
|
|
31046
30662
|
);
|
|
31047
30663
|
}
|
|
@@ -31072,7 +30688,7 @@ function Calendar({
|
|
|
31072
30688
|
...formatters2
|
|
31073
30689
|
},
|
|
31074
30690
|
classNames: {
|
|
31075
|
-
root: cn$1(
|
|
30691
|
+
root: cn$1(defaultClassNames.root),
|
|
31076
30692
|
months: cn$1(
|
|
31077
30693
|
"flex gap-4 flex-col md:flex-row relative",
|
|
31078
30694
|
defaultClassNames.months
|
|
@@ -31139,7 +30755,7 @@ function Calendar({
|
|
|
31139
30755
|
range_middle: cn$1("rounded-none", defaultClassNames.range_middle),
|
|
31140
30756
|
range_end: cn$1("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
31141
30757
|
today: cn$1(
|
|
31142
|
-
"
|
|
30758
|
+
"text-[#0D9488] font-semibold rounded-md data-[selected=true]:rounded-none",
|
|
31143
30759
|
defaultClassNames.today
|
|
31144
30760
|
),
|
|
31145
30761
|
outside: cn$1(
|
|
@@ -31214,7 +30830,7 @@ function CalendarDayButton({
|
|
|
31214
30830
|
"data-range-end": modifiers.range_end,
|
|
31215
30831
|
"data-range-middle": modifiers.range_middle,
|
|
31216
30832
|
className: cn$1(
|
|
31217
|
-
"data-[selected-single=true]:bg-
|
|
30833
|
+
"data-[selected-single=true]:bg-[#0D9488] data-[selected-single=true]:text-white data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-[#0D9488] data-[range-start=true]:text-white data-[range-end=true]:bg-[#0D9488] data-[range-end=true]:text-white group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
|
|
31218
30834
|
defaultClassNames.day,
|
|
31219
30835
|
className
|
|
31220
30836
|
),
|
|
@@ -31313,7 +30929,7 @@ function DatePicker({
|
|
|
31313
30929
|
showOutsideDays: true
|
|
31314
30930
|
}
|
|
31315
30931
|
),
|
|
31316
|
-
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-2 border-t", children: [
|
|
30932
|
+
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-2 border-t border-border", children: [
|
|
31317
30933
|
/* @__PURE__ */ jsx(
|
|
31318
30934
|
Button$1,
|
|
31319
30935
|
{
|
|
@@ -31746,7 +31362,7 @@ function DateRangePicker({
|
|
|
31746
31362
|
);
|
|
31747
31363
|
}) }) })
|
|
31748
31364
|
] }),
|
|
31749
|
-
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-2 pt-3 mt-3 border-t", children: [
|
|
31365
|
+
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-2 pt-3 mt-3 border-t border-border", children: [
|
|
31750
31366
|
/* @__PURE__ */ jsx(
|
|
31751
31367
|
Button$1,
|
|
31752
31368
|
{
|
|
@@ -32715,7 +32331,7 @@ function TimePicker({
|
|
|
32715
32331
|
)
|
|
32716
32332
|
] })
|
|
32717
32333
|
] }),
|
|
32718
|
-
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t", children: [
|
|
32334
|
+
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t border-border", children: [
|
|
32719
32335
|
/* @__PURE__ */ jsx(
|
|
32720
32336
|
Button$1,
|
|
32721
32337
|
{
|
|
@@ -33006,7 +32622,7 @@ function TimeRangePicker({
|
|
|
33006
32622
|
}
|
|
33007
32623
|
)
|
|
33008
32624
|
] }),
|
|
33009
|
-
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t", children: [
|
|
32625
|
+
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t border-border", children: [
|
|
33010
32626
|
/* @__PURE__ */ jsx(
|
|
33011
32627
|
Button$1,
|
|
33012
32628
|
{
|
|
@@ -33359,7 +32975,7 @@ function DateTimePicker({
|
|
|
33359
32975
|
)
|
|
33360
32976
|
] })
|
|
33361
32977
|
] }),
|
|
33362
|
-
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-2 border-t", children: [
|
|
32978
|
+
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-2 border-t border-border", children: [
|
|
33363
32979
|
/* @__PURE__ */ jsx(
|
|
33364
32980
|
Button$1,
|
|
33365
32981
|
{
|
|
@@ -33929,7 +33545,7 @@ function DateTimeRangePicker({
|
|
|
33929
33545
|
}
|
|
33930
33546
|
)
|
|
33931
33547
|
] }),
|
|
33932
|
-
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t", children: [
|
|
33548
|
+
(props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t border-border", children: [
|
|
33933
33549
|
/* @__PURE__ */ jsx(
|
|
33934
33550
|
Button$1,
|
|
33935
33551
|
{
|
|
@@ -36414,7 +36030,7 @@ function reducer(state, action) {
|
|
|
36414
36030
|
function noop$1() {
|
|
36415
36031
|
}
|
|
36416
36032
|
var DIALOG_NAME = "Dialog";
|
|
36417
|
-
var [createDialogContext, createDialogScope] = createContextScope
|
|
36033
|
+
var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
|
|
36418
36034
|
var [DialogProvider$1, useDialogContext] = createDialogContext(DIALOG_NAME);
|
|
36419
36035
|
var Dialog$1 = (props2) => {
|
|
36420
36036
|
const {
|
|
@@ -36458,7 +36074,7 @@ var DialogTrigger$1 = React.forwardRef(
|
|
|
36458
36074
|
const context = useDialogContext(TRIGGER_NAME$6, __scopeDialog);
|
|
36459
36075
|
const composedTriggerRef = useComposedRefs$1(forwardedRef, context.triggerRef);
|
|
36460
36076
|
return /* @__PURE__ */ jsx(
|
|
36461
|
-
Primitive
|
|
36077
|
+
Primitive.button,
|
|
36462
36078
|
{
|
|
36463
36079
|
type: "button",
|
|
36464
36080
|
"aria-haspopup": "dialog",
|
|
@@ -36493,7 +36109,7 @@ var DialogOverlay$1 = React.forwardRef(
|
|
|
36493
36109
|
}
|
|
36494
36110
|
);
|
|
36495
36111
|
DialogOverlay$1.displayName = OVERLAY_NAME$1;
|
|
36496
|
-
var Slot$1 = /* @__PURE__ */ createSlot$
|
|
36112
|
+
var Slot$1 = /* @__PURE__ */ createSlot$1("DialogOverlay.RemoveScroll");
|
|
36497
36113
|
var DialogOverlayImpl = React.forwardRef(
|
|
36498
36114
|
(props2, forwardedRef) => {
|
|
36499
36115
|
const { __scopeDialog, ...overlayProps } = props2;
|
|
@@ -36502,7 +36118,7 @@ var DialogOverlayImpl = React.forwardRef(
|
|
|
36502
36118
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
36503
36119
|
// ie. when `Overlay` and `Content` are siblings
|
|
36504
36120
|
/* @__PURE__ */ jsx(ReactRemoveScroll, { as: Slot$1, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(
|
|
36505
|
-
Primitive
|
|
36121
|
+
Primitive.div,
|
|
36506
36122
|
{
|
|
36507
36123
|
"data-state": getState(context.open),
|
|
36508
36124
|
...overlayProps,
|
|
@@ -36643,7 +36259,7 @@ var DialogTitle$1 = React.forwardRef(
|
|
|
36643
36259
|
(props2, forwardedRef) => {
|
|
36644
36260
|
const { __scopeDialog, ...titleProps } = props2;
|
|
36645
36261
|
const context = useDialogContext(TITLE_NAME$1, __scopeDialog);
|
|
36646
|
-
return /* @__PURE__ */ jsx(Primitive
|
|
36262
|
+
return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
|
36647
36263
|
}
|
|
36648
36264
|
);
|
|
36649
36265
|
DialogTitle$1.displayName = TITLE_NAME$1;
|
|
@@ -36652,7 +36268,7 @@ var DialogDescription$1 = React.forwardRef(
|
|
|
36652
36268
|
(props2, forwardedRef) => {
|
|
36653
36269
|
const { __scopeDialog, ...descriptionProps } = props2;
|
|
36654
36270
|
const context = useDialogContext(DESCRIPTION_NAME$1, __scopeDialog);
|
|
36655
|
-
return /* @__PURE__ */ jsx(Primitive
|
|
36271
|
+
return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
|
36656
36272
|
}
|
|
36657
36273
|
);
|
|
36658
36274
|
DialogDescription$1.displayName = DESCRIPTION_NAME$1;
|
|
@@ -36662,7 +36278,7 @@ var DialogClose$1 = React.forwardRef(
|
|
|
36662
36278
|
const { __scopeDialog, ...closeProps } = props2;
|
|
36663
36279
|
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
|
36664
36280
|
return /* @__PURE__ */ jsx(
|
|
36665
|
-
Primitive
|
|
36281
|
+
Primitive.button,
|
|
36666
36282
|
{
|
|
36667
36283
|
type: "button",
|
|
36668
36284
|
...closeProps,
|
|
@@ -36768,7 +36384,7 @@ function DialogContent({
|
|
|
36768
36384
|
{
|
|
36769
36385
|
"data-slot": "dialog-content",
|
|
36770
36386
|
className: cn$1(
|
|
36771
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-
|
|
36387
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-md border p-6 shadow-[0_8px_24px_rgba(15,17,21,.12),0_2px_6px_rgba(15,17,21,.06)] duration-200 sm:max-w-[520px]",
|
|
36772
36388
|
className
|
|
36773
36389
|
),
|
|
36774
36390
|
...props2,
|
|
@@ -36778,7 +36394,7 @@ function DialogContent({
|
|
|
36778
36394
|
Close,
|
|
36779
36395
|
{
|
|
36780
36396
|
"data-slot": "dialog-close",
|
|
36781
|
-
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-
|
|
36397
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 flex size-6 items-center justify-center rounded-full border-[1.5px] border-[#2B2F36] opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
36782
36398
|
children: [
|
|
36783
36399
|
/* @__PURE__ */ jsx(X$1, {}),
|
|
36784
36400
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
@@ -36795,7 +36411,10 @@ function DialogHeader({ className, ...props2 }) {
|
|
|
36795
36411
|
"div",
|
|
36796
36412
|
{
|
|
36797
36413
|
"data-slot": "dialog-header",
|
|
36798
|
-
className: cn$1(
|
|
36414
|
+
className: cn$1(
|
|
36415
|
+
"flex flex-col gap-2 border-b border-[#F0F0F0] pb-3 text-center sm:text-left",
|
|
36416
|
+
className
|
|
36417
|
+
),
|
|
36799
36418
|
...props2
|
|
36800
36419
|
}
|
|
36801
36420
|
);
|
|
@@ -36806,7 +36425,7 @@ function DialogFooter({ className, ...props2 }) {
|
|
|
36806
36425
|
{
|
|
36807
36426
|
"data-slot": "dialog-footer",
|
|
36808
36427
|
className: cn$1(
|
|
36809
|
-
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
36428
|
+
"flex flex-col-reverse gap-2 border-t border-[#F0F0F0] pt-3 sm:flex-row sm:justify-end",
|
|
36810
36429
|
className
|
|
36811
36430
|
),
|
|
36812
36431
|
...props2
|
|
@@ -36821,7 +36440,7 @@ function DialogTitle({
|
|
|
36821
36440
|
Title,
|
|
36822
36441
|
{
|
|
36823
36442
|
"data-slot": "dialog-title",
|
|
36824
|
-
className: cn$1("text-
|
|
36443
|
+
className: cn$1("text-[15px] leading-none font-bold", className),
|
|
36825
36444
|
...props2
|
|
36826
36445
|
}
|
|
36827
36446
|
);
|
|
@@ -36839,198 +36458,9 @@ function DialogDescription({
|
|
|
36839
36458
|
}
|
|
36840
36459
|
);
|
|
36841
36460
|
}
|
|
36842
|
-
function createContextScope$1(scopeName, createContextScopeDeps = []) {
|
|
36843
|
-
let defaultContexts = [];
|
|
36844
|
-
function createContext3(rootComponentName, defaultContext) {
|
|
36845
|
-
const BaseContext = React.createContext(defaultContext);
|
|
36846
|
-
BaseContext.displayName = rootComponentName + "Context";
|
|
36847
|
-
const index2 = defaultContexts.length;
|
|
36848
|
-
defaultContexts = [...defaultContexts, defaultContext];
|
|
36849
|
-
const Provider2 = (props2) => {
|
|
36850
|
-
var _a2;
|
|
36851
|
-
const { scope, children, ...context } = props2;
|
|
36852
|
-
const Context = ((_a2 = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a2[index2]) || BaseContext;
|
|
36853
|
-
const value = React.useMemo(() => context, Object.values(context));
|
|
36854
|
-
return /* @__PURE__ */ jsx(Context.Provider, { value, children });
|
|
36855
|
-
};
|
|
36856
|
-
Provider2.displayName = rootComponentName + "Provider";
|
|
36857
|
-
function useContext2(consumerName, scope) {
|
|
36858
|
-
var _a2;
|
|
36859
|
-
const Context = ((_a2 = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a2[index2]) || BaseContext;
|
|
36860
|
-
const context = React.useContext(Context);
|
|
36861
|
-
if (context) return context;
|
|
36862
|
-
if (defaultContext !== void 0) return defaultContext;
|
|
36863
|
-
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
36864
|
-
}
|
|
36865
|
-
return [Provider2, useContext2];
|
|
36866
|
-
}
|
|
36867
|
-
const createScope = () => {
|
|
36868
|
-
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
36869
|
-
return React.createContext(defaultContext);
|
|
36870
|
-
});
|
|
36871
|
-
return function useScope(scope) {
|
|
36872
|
-
const contexts = (scope == null ? void 0 : scope[scopeName]) || scopeContexts;
|
|
36873
|
-
return React.useMemo(
|
|
36874
|
-
() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
|
|
36875
|
-
[scope, contexts]
|
|
36876
|
-
);
|
|
36877
|
-
};
|
|
36878
|
-
};
|
|
36879
|
-
createScope.scopeName = scopeName;
|
|
36880
|
-
return [createContext3, composeContextScopes$1(createScope, ...createContextScopeDeps)];
|
|
36881
|
-
}
|
|
36882
|
-
function composeContextScopes$1(...scopes) {
|
|
36883
|
-
const baseScope = scopes[0];
|
|
36884
|
-
if (scopes.length === 1) return baseScope;
|
|
36885
|
-
const createScope = () => {
|
|
36886
|
-
const scopeHooks = scopes.map((createScope2) => ({
|
|
36887
|
-
useScope: createScope2(),
|
|
36888
|
-
scopeName: createScope2.scopeName
|
|
36889
|
-
}));
|
|
36890
|
-
return function useComposedScopes(overrideScopes) {
|
|
36891
|
-
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
|
|
36892
|
-
const scopeProps = useScope(overrideScopes);
|
|
36893
|
-
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
36894
|
-
return { ...nextScopes2, ...currentScope };
|
|
36895
|
-
}, {});
|
|
36896
|
-
return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
|
|
36897
|
-
};
|
|
36898
|
-
};
|
|
36899
|
-
createScope.scopeName = baseScope.scopeName;
|
|
36900
|
-
return createScope;
|
|
36901
|
-
}
|
|
36902
|
-
var REACT_LAZY_TYPE$3 = Symbol.for("react.lazy");
|
|
36903
|
-
var use$3 = React[" use ".trim().toString()];
|
|
36904
|
-
function isPromiseLike$3(value) {
|
|
36905
|
-
return typeof value === "object" && value !== null && "then" in value;
|
|
36906
|
-
}
|
|
36907
|
-
function isLazyComponent$3(element) {
|
|
36908
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE$3 && "_payload" in element && isPromiseLike$3(element._payload);
|
|
36909
|
-
}
|
|
36910
|
-
// @__NO_SIDE_EFFECTS__
|
|
36911
|
-
function createSlot$3(ownerName) {
|
|
36912
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$3(ownerName);
|
|
36913
|
-
const Slot2 = React.forwardRef((props2, forwardedRef) => {
|
|
36914
|
-
let { children, ...slotProps } = props2;
|
|
36915
|
-
if (isLazyComponent$3(children) && typeof use$3 === "function") {
|
|
36916
|
-
children = use$3(children._payload);
|
|
36917
|
-
}
|
|
36918
|
-
const childrenArray = React.Children.toArray(children);
|
|
36919
|
-
const slottable = childrenArray.find(isSlottable$3);
|
|
36920
|
-
if (slottable) {
|
|
36921
|
-
const newElement = slottable.props.children;
|
|
36922
|
-
const newChildren = childrenArray.map((child) => {
|
|
36923
|
-
if (child === slottable) {
|
|
36924
|
-
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
|
36925
|
-
return React.isValidElement(newElement) ? newElement.props.children : null;
|
|
36926
|
-
} else {
|
|
36927
|
-
return child;
|
|
36928
|
-
}
|
|
36929
|
-
});
|
|
36930
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
|
|
36931
|
-
}
|
|
36932
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
36933
|
-
});
|
|
36934
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
36935
|
-
return Slot2;
|
|
36936
|
-
}
|
|
36937
|
-
// @__NO_SIDE_EFFECTS__
|
|
36938
|
-
function createSlotClone$3(ownerName) {
|
|
36939
|
-
const SlotClone = React.forwardRef((props2, forwardedRef) => {
|
|
36940
|
-
let { children, ...slotProps } = props2;
|
|
36941
|
-
if (isLazyComponent$3(children) && typeof use$3 === "function") {
|
|
36942
|
-
children = use$3(children._payload);
|
|
36943
|
-
}
|
|
36944
|
-
if (React.isValidElement(children)) {
|
|
36945
|
-
const childrenRef = getElementRef$3(children);
|
|
36946
|
-
const props22 = mergeProps$3(slotProps, children.props);
|
|
36947
|
-
if (children.type !== React.Fragment) {
|
|
36948
|
-
props22.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
|
|
36949
|
-
}
|
|
36950
|
-
return React.cloneElement(children, props22);
|
|
36951
|
-
}
|
|
36952
|
-
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
36953
|
-
});
|
|
36954
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
36955
|
-
return SlotClone;
|
|
36956
|
-
}
|
|
36957
|
-
var SLOTTABLE_IDENTIFIER$3 = Symbol("radix.slottable");
|
|
36958
|
-
function isSlottable$3(child) {
|
|
36959
|
-
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$3;
|
|
36960
|
-
}
|
|
36961
|
-
function mergeProps$3(slotProps, childProps) {
|
|
36962
|
-
const overrideProps = { ...childProps };
|
|
36963
|
-
for (const propName in childProps) {
|
|
36964
|
-
const slotPropValue = slotProps[propName];
|
|
36965
|
-
const childPropValue = childProps[propName];
|
|
36966
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
36967
|
-
if (isHandler) {
|
|
36968
|
-
if (slotPropValue && childPropValue) {
|
|
36969
|
-
overrideProps[propName] = (...args) => {
|
|
36970
|
-
const result = childPropValue(...args);
|
|
36971
|
-
slotPropValue(...args);
|
|
36972
|
-
return result;
|
|
36973
|
-
};
|
|
36974
|
-
} else if (slotPropValue) {
|
|
36975
|
-
overrideProps[propName] = slotPropValue;
|
|
36976
|
-
}
|
|
36977
|
-
} else if (propName === "style") {
|
|
36978
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
36979
|
-
} else if (propName === "className") {
|
|
36980
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
36981
|
-
}
|
|
36982
|
-
}
|
|
36983
|
-
return { ...slotProps, ...overrideProps };
|
|
36984
|
-
}
|
|
36985
|
-
function getElementRef$3(element) {
|
|
36986
|
-
var _a2, _b;
|
|
36987
|
-
let getter = (_a2 = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a2.get;
|
|
36988
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
36989
|
-
if (mayWarn) {
|
|
36990
|
-
return element.ref;
|
|
36991
|
-
}
|
|
36992
|
-
getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
|
|
36993
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
36994
|
-
if (mayWarn) {
|
|
36995
|
-
return element.props.ref;
|
|
36996
|
-
}
|
|
36997
|
-
return element.props.ref || element.ref;
|
|
36998
|
-
}
|
|
36999
|
-
var NODES$3 = [
|
|
37000
|
-
"a",
|
|
37001
|
-
"button",
|
|
37002
|
-
"div",
|
|
37003
|
-
"form",
|
|
37004
|
-
"h2",
|
|
37005
|
-
"h3",
|
|
37006
|
-
"img",
|
|
37007
|
-
"input",
|
|
37008
|
-
"label",
|
|
37009
|
-
"li",
|
|
37010
|
-
"nav",
|
|
37011
|
-
"ol",
|
|
37012
|
-
"p",
|
|
37013
|
-
"select",
|
|
37014
|
-
"span",
|
|
37015
|
-
"svg",
|
|
37016
|
-
"ul"
|
|
37017
|
-
];
|
|
37018
|
-
var Primitive$3 = NODES$3.reduce((primitive, node) => {
|
|
37019
|
-
const Slot2 = /* @__PURE__ */ createSlot$3(`Primitive.${node}`);
|
|
37020
|
-
const Node2 = React.forwardRef((props2, forwardedRef) => {
|
|
37021
|
-
const { asChild, ...primitiveProps } = props2;
|
|
37022
|
-
const Comp = asChild ? Slot2 : node;
|
|
37023
|
-
if (typeof window !== "undefined") {
|
|
37024
|
-
window[Symbol.for("radix-ui")] = true;
|
|
37025
|
-
}
|
|
37026
|
-
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
37027
|
-
});
|
|
37028
|
-
Node2.displayName = `Primitive.${node}`;
|
|
37029
|
-
return { ...primitive, [node]: Node2 };
|
|
37030
|
-
}, {});
|
|
37031
36461
|
var PROGRESS_NAME = "Progress";
|
|
37032
36462
|
var DEFAULT_MAX = 100;
|
|
37033
|
-
var [createProgressContext] = createContextScope
|
|
36463
|
+
var [createProgressContext] = createContextScope(PROGRESS_NAME);
|
|
37034
36464
|
var [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
|
|
37035
36465
|
var Progress$1 = React.forwardRef(
|
|
37036
36466
|
(props2, forwardedRef) => {
|
|
@@ -37051,7 +36481,7 @@ var Progress$1 = React.forwardRef(
|
|
|
37051
36481
|
const value = isValidValueNumber(valueProp, max2) ? valueProp : null;
|
|
37052
36482
|
const valueLabel = isNumber$3(value) ? getValueLabel(value, max2) : void 0;
|
|
37053
36483
|
return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max: max2, children: /* @__PURE__ */ jsx(
|
|
37054
|
-
Primitive
|
|
36484
|
+
Primitive.div,
|
|
37055
36485
|
{
|
|
37056
36486
|
"aria-valuemax": max2,
|
|
37057
36487
|
"aria-valuemin": 0,
|
|
@@ -37074,7 +36504,7 @@ var ProgressIndicator = React.forwardRef(
|
|
|
37074
36504
|
const { __scopeProgress, ...indicatorProps } = props2;
|
|
37075
36505
|
const context = useProgressContext(INDICATOR_NAME$4, __scopeProgress);
|
|
37076
36506
|
return /* @__PURE__ */ jsx(
|
|
37077
|
-
Primitive
|
|
36507
|
+
Primitive.div,
|
|
37078
36508
|
{
|
|
37079
36509
|
"data-state": getProgressState(context.value, context.max),
|
|
37080
36510
|
"data-value": context.value ?? void 0,
|
|
@@ -37124,7 +36554,7 @@ function Progress({
|
|
|
37124
36554
|
{
|
|
37125
36555
|
"data-slot": "progress",
|
|
37126
36556
|
className: cn$1(
|
|
37127
|
-
"bg-primary/20 relative h-
|
|
36557
|
+
"bg-primary/20 relative h-[3px] w-full overflow-hidden rounded-full",
|
|
37128
36558
|
className
|
|
37129
36559
|
),
|
|
37130
36560
|
...props2,
|
|
@@ -37132,7 +36562,7 @@ function Progress({
|
|
|
37132
36562
|
Indicator$1,
|
|
37133
36563
|
{
|
|
37134
36564
|
"data-slot": "progress-indicator",
|
|
37135
|
-
className: "bg-
|
|
36565
|
+
className: "bg-[#30A4A1] h-full w-full flex-1 transition-all",
|
|
37136
36566
|
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
37137
36567
|
}
|
|
37138
36568
|
)
|
|
@@ -37725,9 +37155,9 @@ function FileUploader({
|
|
|
37725
37155
|
prevUrlsRef.current = urls;
|
|
37726
37156
|
}, [files]);
|
|
37727
37157
|
const rootClasses = cn$1(
|
|
37728
|
-
"w-full border border-dashed rounded-
|
|
37158
|
+
"w-full border-2 border-dashed rounded-[10px] p-4 text-sm transition-colors bg-background",
|
|
37729
37159
|
"hover:border-foreground/50",
|
|
37730
|
-
isDragActive && "border-
|
|
37160
|
+
isDragActive && "border-[#30A4A1] bg-[#F0FAFA]",
|
|
37731
37161
|
isDragReject && "border-destructive",
|
|
37732
37162
|
(disabled || disabledBecauseFull) && "opacity-50 pointer-events-none"
|
|
37733
37163
|
);
|
|
@@ -39502,7 +38932,7 @@ var SUB_CLOSE_KEYS = {
|
|
|
39502
38932
|
};
|
|
39503
38933
|
var MENU_NAME$1 = "Menu";
|
|
39504
38934
|
var [Collection$3, useCollection$3, createCollectionScope$3] = createCollection(MENU_NAME$1);
|
|
39505
|
-
var [createMenuContext, createMenuScope] = createContextScope
|
|
38935
|
+
var [createMenuContext, createMenuScope] = createContextScope(MENU_NAME$1, [
|
|
39506
38936
|
createCollectionScope$3,
|
|
39507
38937
|
createPopperScope,
|
|
39508
38938
|
createRovingFocusGroupScope
|
|
@@ -39626,7 +39056,7 @@ var MenuRootContentNonModal = React.forwardRef((props2, forwardedRef) => {
|
|
|
39626
39056
|
}
|
|
39627
39057
|
);
|
|
39628
39058
|
});
|
|
39629
|
-
var Slot = /* @__PURE__ */ createSlot$
|
|
39059
|
+
var Slot = /* @__PURE__ */ createSlot$1("MenuContent.ScrollLock");
|
|
39630
39060
|
var MenuContentImpl = React.forwardRef(
|
|
39631
39061
|
(props2, forwardedRef) => {
|
|
39632
39062
|
const {
|
|
@@ -39818,7 +39248,7 @@ var GROUP_NAME$3 = "MenuGroup";
|
|
|
39818
39248
|
var MenuGroup = React.forwardRef(
|
|
39819
39249
|
(props2, forwardedRef) => {
|
|
39820
39250
|
const { __scopeMenu, ...groupProps } = props2;
|
|
39821
|
-
return /* @__PURE__ */ jsx(Primitive
|
|
39251
|
+
return /* @__PURE__ */ jsx(Primitive.div, { role: "group", ...groupProps, ref: forwardedRef });
|
|
39822
39252
|
}
|
|
39823
39253
|
);
|
|
39824
39254
|
MenuGroup.displayName = GROUP_NAME$3;
|
|
@@ -39826,7 +39256,7 @@ var LABEL_NAME$3 = "MenuLabel";
|
|
|
39826
39256
|
var MenuLabel = React.forwardRef(
|
|
39827
39257
|
(props2, forwardedRef) => {
|
|
39828
39258
|
const { __scopeMenu, ...labelProps } = props2;
|
|
39829
|
-
return /* @__PURE__ */ jsx(Primitive
|
|
39259
|
+
return /* @__PURE__ */ jsx(Primitive.div, { ...labelProps, ref: forwardedRef });
|
|
39830
39260
|
}
|
|
39831
39261
|
);
|
|
39832
39262
|
MenuLabel.displayName = LABEL_NAME$3;
|
|
@@ -39904,7 +39334,7 @@ var MenuItemImpl = React.forwardRef(
|
|
|
39904
39334
|
disabled,
|
|
39905
39335
|
textValue: textValue ?? textContent,
|
|
39906
39336
|
children: /* @__PURE__ */ jsx(Item$2, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(
|
|
39907
|
-
Primitive
|
|
39337
|
+
Primitive.div,
|
|
39908
39338
|
{
|
|
39909
39339
|
role: "menuitem",
|
|
39910
39340
|
"data-highlighted": isFocused ? "" : void 0,
|
|
@@ -40015,7 +39445,7 @@ var MenuItemIndicator = React.forwardRef(
|
|
|
40015
39445
|
{
|
|
40016
39446
|
present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,
|
|
40017
39447
|
children: /* @__PURE__ */ jsx(
|
|
40018
|
-
Primitive
|
|
39448
|
+
Primitive.span,
|
|
40019
39449
|
{
|
|
40020
39450
|
...itemIndicatorProps,
|
|
40021
39451
|
ref: forwardedRef,
|
|
@@ -40032,7 +39462,7 @@ var MenuSeparator = React.forwardRef(
|
|
|
40032
39462
|
(props2, forwardedRef) => {
|
|
40033
39463
|
const { __scopeMenu, ...separatorProps } = props2;
|
|
40034
39464
|
return /* @__PURE__ */ jsx(
|
|
40035
|
-
Primitive
|
|
39465
|
+
Primitive.div,
|
|
40036
39466
|
{
|
|
40037
39467
|
role: "separator",
|
|
40038
39468
|
"aria-orientation": "horizontal",
|
|
@@ -40119,7 +39549,7 @@ var MenuSubTrigger = React.forwardRef(
|
|
|
40119
39549
|
"aria-controls": subContext.contentId,
|
|
40120
39550
|
"data-state": getOpenState$1(context.open),
|
|
40121
39551
|
...props2,
|
|
40122
|
-
ref: composeRefs$
|
|
39552
|
+
ref: composeRefs$2(forwardedRef, subContext.onTriggerChange),
|
|
40123
39553
|
onClick: (event) => {
|
|
40124
39554
|
var _a2;
|
|
40125
39555
|
(_a2 = props2.onClick) == null ? void 0 : _a2.call(props2, event);
|
|
@@ -40314,7 +39744,7 @@ var Sub = MenuSub;
|
|
|
40314
39744
|
var SubTrigger = MenuSubTrigger;
|
|
40315
39745
|
var SubContent = MenuSubContent;
|
|
40316
39746
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
40317
|
-
var [createDropdownMenuContext] = createContextScope
|
|
39747
|
+
var [createDropdownMenuContext] = createContextScope(
|
|
40318
39748
|
DROPDOWN_MENU_NAME,
|
|
40319
39749
|
[createMenuScope]
|
|
40320
39750
|
);
|
|
@@ -40361,7 +39791,7 @@ var DropdownMenuTrigger$1 = React.forwardRef(
|
|
|
40361
39791
|
const context = useDropdownMenuContext(TRIGGER_NAME$5, __scopeDropdownMenu);
|
|
40362
39792
|
const menuScope = useMenuScope$2(__scopeDropdownMenu);
|
|
40363
39793
|
return /* @__PURE__ */ jsx(Anchor2, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(
|
|
40364
|
-
Primitive
|
|
39794
|
+
Primitive.button,
|
|
40365
39795
|
{
|
|
40366
39796
|
type: "button",
|
|
40367
39797
|
id: context.triggerId,
|
|
@@ -40372,7 +39802,7 @@ var DropdownMenuTrigger$1 = React.forwardRef(
|
|
|
40372
39802
|
"data-disabled": disabled ? "" : void 0,
|
|
40373
39803
|
disabled,
|
|
40374
39804
|
...triggerProps,
|
|
40375
|
-
ref: composeRefs$
|
|
39805
|
+
ref: composeRefs$2(forwardedRef, context.triggerRef),
|
|
40376
39806
|
onPointerDown: composeEventHandlers$1(props2.onPointerDown, (event) => {
|
|
40377
39807
|
if (!disabled && event.button === 0 && event.ctrlKey === false) {
|
|
40378
39808
|
context.onOpenToggle();
|
|
@@ -46703,7 +46133,7 @@ function dotAccessor(path) {
|
|
|
46703
46133
|
return (row) => lodashExports.get(row, path);
|
|
46704
46134
|
}
|
|
46705
46135
|
var ROOT_NAME = "AlertDialog";
|
|
46706
|
-
var [createAlertDialogContext] = createContextScope
|
|
46136
|
+
var [createAlertDialogContext] = createContextScope(ROOT_NAME, [
|
|
46707
46137
|
createDialogScope
|
|
46708
46138
|
]);
|
|
46709
46139
|
var useDialogScope = createDialogScope();
|
|
@@ -46883,7 +46313,7 @@ function AlertDialogContent({
|
|
|
46883
46313
|
{
|
|
46884
46314
|
"data-slot": "alert-dialog-content",
|
|
46885
46315
|
className: cn$1(
|
|
46886
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-
|
|
46316
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[10px] border p-6 shadow-[0_24px_48px_rgba(15,17,21,.18),0_6px_12px_rgba(15,17,21,.08)] duration-200 sm:max-w-[440px]",
|
|
46887
46317
|
className
|
|
46888
46318
|
),
|
|
46889
46319
|
...props2
|
|
@@ -46928,7 +46358,7 @@ function AlertDialogTitle({
|
|
|
46928
46358
|
Title2,
|
|
46929
46359
|
{
|
|
46930
46360
|
"data-slot": "alert-dialog-title",
|
|
46931
|
-
className: cn$1("text-
|
|
46361
|
+
className: cn$1("text-base font-bold", className),
|
|
46932
46362
|
...props2
|
|
46933
46363
|
}
|
|
46934
46364
|
);
|
|
@@ -46972,7 +46402,7 @@ function AlertDialogCancel({
|
|
|
46972
46402
|
}
|
|
46973
46403
|
const DialogContext = createContext(null);
|
|
46974
46404
|
function useDialogController() {
|
|
46975
|
-
const ctx = use$
|
|
46405
|
+
const ctx = use$1(DialogContext);
|
|
46976
46406
|
if (!ctx)
|
|
46977
46407
|
throw new Error("useDialogController must be used within DialogProvider");
|
|
46978
46408
|
return ctx;
|
|
@@ -48986,7 +48416,7 @@ function SheetContent({
|
|
|
48986
48416
|
"data-slot": "sheet-content",
|
|
48987
48417
|
className: cn$1(
|
|
48988
48418
|
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
48989
|
-
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-
|
|
48419
|
+
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l shadow-[-8px_0_24px_rgba(15,17,21,.08)] sm:max-w-[360px]",
|
|
48990
48420
|
side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
48991
48421
|
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
48992
48422
|
side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
@@ -49009,7 +48439,7 @@ function SheetHeader({ className, ...props2 }) {
|
|
|
49009
48439
|
"div",
|
|
49010
48440
|
{
|
|
49011
48441
|
"data-slot": "sheet-header",
|
|
49012
|
-
className: cn$1("flex flex-col gap-1.5 p-4", className),
|
|
48442
|
+
className: cn$1("flex flex-col gap-1.5 border-b border-[#F5F5F5] p-4", className),
|
|
49013
48443
|
...props2
|
|
49014
48444
|
}
|
|
49015
48445
|
);
|
|
@@ -49019,7 +48449,7 @@ function SheetFooter({ className, ...props2 }) {
|
|
|
49019
48449
|
"div",
|
|
49020
48450
|
{
|
|
49021
48451
|
"data-slot": "sheet-footer",
|
|
49022
|
-
className: cn$1("mt-auto flex flex-col gap-2 p-4", className),
|
|
48452
|
+
className: cn$1("mt-auto flex flex-col gap-2 border-t border-[#F5F5F5] p-4", className),
|
|
49023
48453
|
...props2
|
|
49024
48454
|
}
|
|
49025
48455
|
);
|
|
@@ -49032,7 +48462,7 @@ function SheetTitle({
|
|
|
49032
48462
|
Title,
|
|
49033
48463
|
{
|
|
49034
48464
|
"data-slot": "sheet-title",
|
|
49035
|
-
className: cn$1("text-foreground font-
|
|
48465
|
+
className: cn$1("text-foreground text-sm font-bold", className),
|
|
49036
48466
|
...props2
|
|
49037
48467
|
}
|
|
49038
48468
|
);
|
|
@@ -49052,9 +48482,9 @@ function SheetDescription({
|
|
|
49052
48482
|
}
|
|
49053
48483
|
const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
49054
48484
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
49055
|
-
const SIDEBAR_WIDTH = "
|
|
48485
|
+
const SIDEBAR_WIDTH = "15.5rem";
|
|
49056
48486
|
const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
49057
|
-
const SIDEBAR_WIDTH_ICON = "
|
|
48487
|
+
const SIDEBAR_WIDTH_ICON = "4.125rem";
|
|
49058
48488
|
const SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
49059
48489
|
const SidebarContext = React.createContext(null);
|
|
49060
48490
|
function useSidebar() {
|
|
@@ -49778,7 +49208,7 @@ function ThemeBridge({ children, ...props2 }) {
|
|
|
49778
49208
|
return /* @__PURE__ */ jsx(ThemeProviderContext, { ...props2, value, children });
|
|
49779
49209
|
}
|
|
49780
49210
|
const useTheme = () => {
|
|
49781
|
-
const context = use$
|
|
49211
|
+
const context = use$1(ThemeProviderContext);
|
|
49782
49212
|
if (context === void 0)
|
|
49783
49213
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
49784
49214
|
return context;
|
|
@@ -49947,7 +49377,7 @@ function AdminLayoutContent({
|
|
|
49947
49377
|
if (hasChildren) setOpen(item.id);
|
|
49948
49378
|
},
|
|
49949
49379
|
disabled: item.disabled,
|
|
49950
|
-
className: `group relative overflow-hidden rounded-lg transition-all duration-200 hover:bg-
|
|
49380
|
+
className: `group relative overflow-hidden rounded-lg transition-all duration-200 hover:bg-[#FAFAFA] data-[active=true]:bg-sidebar-primary data-[active=true]:text-sidebar-primary-foreground ${indent}`,
|
|
49951
49381
|
children: item.url && !hasChildren ? /* @__PURE__ */ jsxs(Link$1, { to: item.url, className: "flex items-center gap-3 px-3", children: [
|
|
49952
49382
|
item.icon && /* @__PURE__ */ jsx(
|
|
49953
49383
|
item.icon,
|
|
@@ -50002,7 +49432,7 @@ function AdminLayoutContent({
|
|
|
50002
49432
|
// (rendered as <li>) children don't end up as direct descendants of
|
|
50003
49433
|
// a <div> inside another <li> — that's invalid HTML and triggers a
|
|
50004
49434
|
// React hydration warning.
|
|
50005
|
-
/* @__PURE__ */ jsx("ul", { className: "mt-1 ml-[18px] flex flex-col list-none border-l border-sidebar-border pl-2 py-0.5 m-0", children: (item.children ?? []).map(
|
|
49435
|
+
/* @__PURE__ */ jsx("ul", { className: "mt-1 ml-[18px] flex flex-col list-none border-l border-sidebar-border pl-2 py-0.5 m-0 group-data-[collapsible=icon]:hidden", children: (item.children ?? []).map(
|
|
50006
49436
|
(child) => renderItem(child, Math.min(level + 1, 3))
|
|
50007
49437
|
) })
|
|
50008
49438
|
]
|
|
@@ -50018,9 +49448,9 @@ function AdminLayoutContent({
|
|
|
50018
49448
|
className: "bg-sidebar border-r border-sidebar-border",
|
|
50019
49449
|
collapsible: sidebarCollapsible ? "icon" : "none",
|
|
50020
49450
|
children: [
|
|
50021
|
-
/* @__PURE__ */ jsx(SidebarHeader, { className: "bg-sidebar border-b border-sidebar-border", children: sidebarHeader ? sidebarHeader : /* @__PURE__ */ jsx("div", { className: "sidebar-header-content flex items-center justify-center px-4 py-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
50022
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-
|
|
50023
|
-
/* @__PURE__ */ jsx("span", { className: "font-
|
|
49451
|
+
/* @__PURE__ */ jsx(SidebarHeader, { className: "bg-sidebar border-b border-sidebar-border", children: sidebarHeader ? sidebarHeader : /* @__PURE__ */ jsx("div", { className: "sidebar-header-content flex items-center justify-center px-4 py-3 group-data-[collapsible=icon]:px-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 group-data-[collapsible=icon]:gap-0", children: [
|
|
49452
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-[#1A9E8F] text-sidebar-primary-foreground", children: /* @__PURE__ */ jsx(SidebarHeaderIcon, { className: "h-4 w-4" }) }),
|
|
49453
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold text-[18px] text-[#0d9488] tracking-[-0.01em] group-data-[collapsible=icon]:hidden", children: sidebarTitle })
|
|
50024
49454
|
] }) }) }),
|
|
50025
49455
|
/* @__PURE__ */ jsx(SidebarContent, { className: "bg-sidebar px-2 py-4", children: sidebarGroups.map((group, idx) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
50026
49456
|
/* @__PURE__ */ jsxs(SidebarGroup, { children: [
|
|
@@ -50039,7 +49469,7 @@ function AdminLayoutContent({
|
|
|
50039
49469
|
SidebarMenuButton,
|
|
50040
49470
|
{
|
|
50041
49471
|
tooltip: "Logout",
|
|
50042
|
-
className: "cursor-pointer group relative overflow-hidden rounded-lg mx-1 transition-all duration-200 hover:bg-
|
|
49472
|
+
className: "cursor-pointer group relative overflow-hidden rounded-lg mx-1 transition-all duration-200 hover:bg-[#FAFAFA] hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:!justify-center group-data-[collapsible=icon]:!px-0 group-data-[collapsible=icon]:!gap-0",
|
|
50043
49473
|
onClick: () => {
|
|
50044
49474
|
void onLogout();
|
|
50045
49475
|
},
|
|
@@ -50053,7 +49483,7 @@ function AdminLayoutContent({
|
|
|
50053
49483
|
}
|
|
50054
49484
|
),
|
|
50055
49485
|
/* @__PURE__ */ jsxs(SidebarInset, { children: [
|
|
50056
|
-
/* @__PURE__ */ jsxs("header", { className: "flex h-
|
|
49486
|
+
/* @__PURE__ */ jsxs("header", { className: "flex h-[69px] shrink-0 items-center justify-between gap-4 border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 px-6", children: [
|
|
50057
49487
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
50058
49488
|
sidebarCollapsible && /* @__PURE__ */ jsx(SidebarTrigger, { className: "h-8 w-8 text-foreground hover:bg-accent hover:text-accent-foreground rounded-md" }),
|
|
50059
49489
|
headerAfterTrigger
|
|
@@ -51173,135 +50603,6 @@ const Toaster$1 = /* @__PURE__ */ React__default.forwardRef(function Toaster(pro
|
|
|
51173
50603
|
}))
|
|
51174
50604
|
);
|
|
51175
50605
|
});
|
|
51176
|
-
var REACT_LAZY_TYPE$2 = Symbol.for("react.lazy");
|
|
51177
|
-
var use$2 = React[" use ".trim().toString()];
|
|
51178
|
-
function isPromiseLike$2(value) {
|
|
51179
|
-
return typeof value === "object" && value !== null && "then" in value;
|
|
51180
|
-
}
|
|
51181
|
-
function isLazyComponent$2(element) {
|
|
51182
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE$2 && "_payload" in element && isPromiseLike$2(element._payload);
|
|
51183
|
-
}
|
|
51184
|
-
// @__NO_SIDE_EFFECTS__
|
|
51185
|
-
function createSlot$2(ownerName) {
|
|
51186
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$2(ownerName);
|
|
51187
|
-
const Slot2 = React.forwardRef((props2, forwardedRef) => {
|
|
51188
|
-
let { children, ...slotProps } = props2;
|
|
51189
|
-
if (isLazyComponent$2(children) && typeof use$2 === "function") {
|
|
51190
|
-
children = use$2(children._payload);
|
|
51191
|
-
}
|
|
51192
|
-
const childrenArray = React.Children.toArray(children);
|
|
51193
|
-
const slottable = childrenArray.find(isSlottable$2);
|
|
51194
|
-
if (slottable) {
|
|
51195
|
-
const newElement = slottable.props.children;
|
|
51196
|
-
const newChildren = childrenArray.map((child) => {
|
|
51197
|
-
if (child === slottable) {
|
|
51198
|
-
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
|
51199
|
-
return React.isValidElement(newElement) ? newElement.props.children : null;
|
|
51200
|
-
} else {
|
|
51201
|
-
return child;
|
|
51202
|
-
}
|
|
51203
|
-
});
|
|
51204
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
|
|
51205
|
-
}
|
|
51206
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
51207
|
-
});
|
|
51208
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
51209
|
-
return Slot2;
|
|
51210
|
-
}
|
|
51211
|
-
// @__NO_SIDE_EFFECTS__
|
|
51212
|
-
function createSlotClone$2(ownerName) {
|
|
51213
|
-
const SlotClone = React.forwardRef((props2, forwardedRef) => {
|
|
51214
|
-
let { children, ...slotProps } = props2;
|
|
51215
|
-
if (isLazyComponent$2(children) && typeof use$2 === "function") {
|
|
51216
|
-
children = use$2(children._payload);
|
|
51217
|
-
}
|
|
51218
|
-
if (React.isValidElement(children)) {
|
|
51219
|
-
const childrenRef = getElementRef$2(children);
|
|
51220
|
-
const props22 = mergeProps$2(slotProps, children.props);
|
|
51221
|
-
if (children.type !== React.Fragment) {
|
|
51222
|
-
props22.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
|
|
51223
|
-
}
|
|
51224
|
-
return React.cloneElement(children, props22);
|
|
51225
|
-
}
|
|
51226
|
-
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
51227
|
-
});
|
|
51228
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
51229
|
-
return SlotClone;
|
|
51230
|
-
}
|
|
51231
|
-
var SLOTTABLE_IDENTIFIER$2 = Symbol("radix.slottable");
|
|
51232
|
-
function isSlottable$2(child) {
|
|
51233
|
-
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$2;
|
|
51234
|
-
}
|
|
51235
|
-
function mergeProps$2(slotProps, childProps) {
|
|
51236
|
-
const overrideProps = { ...childProps };
|
|
51237
|
-
for (const propName in childProps) {
|
|
51238
|
-
const slotPropValue = slotProps[propName];
|
|
51239
|
-
const childPropValue = childProps[propName];
|
|
51240
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
51241
|
-
if (isHandler) {
|
|
51242
|
-
if (slotPropValue && childPropValue) {
|
|
51243
|
-
overrideProps[propName] = (...args) => {
|
|
51244
|
-
const result = childPropValue(...args);
|
|
51245
|
-
slotPropValue(...args);
|
|
51246
|
-
return result;
|
|
51247
|
-
};
|
|
51248
|
-
} else if (slotPropValue) {
|
|
51249
|
-
overrideProps[propName] = slotPropValue;
|
|
51250
|
-
}
|
|
51251
|
-
} else if (propName === "style") {
|
|
51252
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
51253
|
-
} else if (propName === "className") {
|
|
51254
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
51255
|
-
}
|
|
51256
|
-
}
|
|
51257
|
-
return { ...slotProps, ...overrideProps };
|
|
51258
|
-
}
|
|
51259
|
-
function getElementRef$2(element) {
|
|
51260
|
-
var _a2, _b;
|
|
51261
|
-
let getter = (_a2 = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a2.get;
|
|
51262
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
51263
|
-
if (mayWarn) {
|
|
51264
|
-
return element.ref;
|
|
51265
|
-
}
|
|
51266
|
-
getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
|
|
51267
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
51268
|
-
if (mayWarn) {
|
|
51269
|
-
return element.props.ref;
|
|
51270
|
-
}
|
|
51271
|
-
return element.props.ref || element.ref;
|
|
51272
|
-
}
|
|
51273
|
-
var NODES$2 = [
|
|
51274
|
-
"a",
|
|
51275
|
-
"button",
|
|
51276
|
-
"div",
|
|
51277
|
-
"form",
|
|
51278
|
-
"h2",
|
|
51279
|
-
"h3",
|
|
51280
|
-
"img",
|
|
51281
|
-
"input",
|
|
51282
|
-
"label",
|
|
51283
|
-
"li",
|
|
51284
|
-
"nav",
|
|
51285
|
-
"ol",
|
|
51286
|
-
"p",
|
|
51287
|
-
"select",
|
|
51288
|
-
"span",
|
|
51289
|
-
"svg",
|
|
51290
|
-
"ul"
|
|
51291
|
-
];
|
|
51292
|
-
var Primitive$2 = NODES$2.reduce((primitive, node) => {
|
|
51293
|
-
const Slot2 = /* @__PURE__ */ createSlot$2(`Primitive.${node}`);
|
|
51294
|
-
const Node2 = React.forwardRef((props2, forwardedRef) => {
|
|
51295
|
-
const { asChild, ...primitiveProps } = props2;
|
|
51296
|
-
const Comp = asChild ? Slot2 : node;
|
|
51297
|
-
if (typeof window !== "undefined") {
|
|
51298
|
-
window[Symbol.for("radix-ui")] = true;
|
|
51299
|
-
}
|
|
51300
|
-
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
51301
|
-
});
|
|
51302
|
-
Node2.displayName = `Primitive.${node}`;
|
|
51303
|
-
return { ...primitive, [node]: Node2 };
|
|
51304
|
-
}, {});
|
|
51305
50606
|
var NAME$1 = "AspectRatio";
|
|
51306
50607
|
var AspectRatio$1 = React.forwardRef(
|
|
51307
50608
|
(props2, forwardedRef) => {
|
|
@@ -51318,7 +50619,7 @@ var AspectRatio$1 = React.forwardRef(
|
|
|
51318
50619
|
},
|
|
51319
50620
|
"data-radix-aspect-ratio-wrapper": "",
|
|
51320
50621
|
children: /* @__PURE__ */ jsx(
|
|
51321
|
-
Primitive
|
|
50622
|
+
Primitive.div,
|
|
51322
50623
|
{
|
|
51323
50624
|
...aspectRatioProps,
|
|
51324
50625
|
ref: forwardedRef,
|
|
@@ -51344,195 +50645,6 @@ function AspectRatio({
|
|
|
51344
50645
|
}) {
|
|
51345
50646
|
return /* @__PURE__ */ jsx(Root$5, { "data-slot": "aspect-ratio", ...props2 });
|
|
51346
50647
|
}
|
|
51347
|
-
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
51348
|
-
let defaultContexts = [];
|
|
51349
|
-
function createContext3(rootComponentName, defaultContext) {
|
|
51350
|
-
const BaseContext = React.createContext(defaultContext);
|
|
51351
|
-
BaseContext.displayName = rootComponentName + "Context";
|
|
51352
|
-
const index2 = defaultContexts.length;
|
|
51353
|
-
defaultContexts = [...defaultContexts, defaultContext];
|
|
51354
|
-
const Provider2 = (props2) => {
|
|
51355
|
-
var _a2;
|
|
51356
|
-
const { scope, children, ...context } = props2;
|
|
51357
|
-
const Context = ((_a2 = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a2[index2]) || BaseContext;
|
|
51358
|
-
const value = React.useMemo(() => context, Object.values(context));
|
|
51359
|
-
return /* @__PURE__ */ jsx(Context.Provider, { value, children });
|
|
51360
|
-
};
|
|
51361
|
-
Provider2.displayName = rootComponentName + "Provider";
|
|
51362
|
-
function useContext2(consumerName, scope) {
|
|
51363
|
-
var _a2;
|
|
51364
|
-
const Context = ((_a2 = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a2[index2]) || BaseContext;
|
|
51365
|
-
const context = React.useContext(Context);
|
|
51366
|
-
if (context) return context;
|
|
51367
|
-
if (defaultContext !== void 0) return defaultContext;
|
|
51368
|
-
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
51369
|
-
}
|
|
51370
|
-
return [Provider2, useContext2];
|
|
51371
|
-
}
|
|
51372
|
-
const createScope = () => {
|
|
51373
|
-
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
51374
|
-
return React.createContext(defaultContext);
|
|
51375
|
-
});
|
|
51376
|
-
return function useScope(scope) {
|
|
51377
|
-
const contexts = (scope == null ? void 0 : scope[scopeName]) || scopeContexts;
|
|
51378
|
-
return React.useMemo(
|
|
51379
|
-
() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
|
|
51380
|
-
[scope, contexts]
|
|
51381
|
-
);
|
|
51382
|
-
};
|
|
51383
|
-
};
|
|
51384
|
-
createScope.scopeName = scopeName;
|
|
51385
|
-
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
51386
|
-
}
|
|
51387
|
-
function composeContextScopes(...scopes) {
|
|
51388
|
-
const baseScope = scopes[0];
|
|
51389
|
-
if (scopes.length === 1) return baseScope;
|
|
51390
|
-
const createScope = () => {
|
|
51391
|
-
const scopeHooks = scopes.map((createScope2) => ({
|
|
51392
|
-
useScope: createScope2(),
|
|
51393
|
-
scopeName: createScope2.scopeName
|
|
51394
|
-
}));
|
|
51395
|
-
return function useComposedScopes(overrideScopes) {
|
|
51396
|
-
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
|
|
51397
|
-
const scopeProps = useScope(overrideScopes);
|
|
51398
|
-
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
51399
|
-
return { ...nextScopes2, ...currentScope };
|
|
51400
|
-
}, {});
|
|
51401
|
-
return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
|
|
51402
|
-
};
|
|
51403
|
-
};
|
|
51404
|
-
createScope.scopeName = baseScope.scopeName;
|
|
51405
|
-
return createScope;
|
|
51406
|
-
}
|
|
51407
|
-
var REACT_LAZY_TYPE$1 = Symbol.for("react.lazy");
|
|
51408
|
-
var use$1 = React[" use ".trim().toString()];
|
|
51409
|
-
function isPromiseLike$1(value) {
|
|
51410
|
-
return typeof value === "object" && value !== null && "then" in value;
|
|
51411
|
-
}
|
|
51412
|
-
function isLazyComponent$1(element) {
|
|
51413
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE$1 && "_payload" in element && isPromiseLike$1(element._payload);
|
|
51414
|
-
}
|
|
51415
|
-
// @__NO_SIDE_EFFECTS__
|
|
51416
|
-
function createSlot$1(ownerName) {
|
|
51417
|
-
const SlotClone = /* @__PURE__ */ createSlotClone$1(ownerName);
|
|
51418
|
-
const Slot2 = React.forwardRef((props2, forwardedRef) => {
|
|
51419
|
-
let { children, ...slotProps } = props2;
|
|
51420
|
-
if (isLazyComponent$1(children) && typeof use$1 === "function") {
|
|
51421
|
-
children = use$1(children._payload);
|
|
51422
|
-
}
|
|
51423
|
-
const childrenArray = React.Children.toArray(children);
|
|
51424
|
-
const slottable = childrenArray.find(isSlottable$1);
|
|
51425
|
-
if (slottable) {
|
|
51426
|
-
const newElement = slottable.props.children;
|
|
51427
|
-
const newChildren = childrenArray.map((child) => {
|
|
51428
|
-
if (child === slottable) {
|
|
51429
|
-
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
|
51430
|
-
return React.isValidElement(newElement) ? newElement.props.children : null;
|
|
51431
|
-
} else {
|
|
51432
|
-
return child;
|
|
51433
|
-
}
|
|
51434
|
-
});
|
|
51435
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
|
|
51436
|
-
}
|
|
51437
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
51438
|
-
});
|
|
51439
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
51440
|
-
return Slot2;
|
|
51441
|
-
}
|
|
51442
|
-
// @__NO_SIDE_EFFECTS__
|
|
51443
|
-
function createSlotClone$1(ownerName) {
|
|
51444
|
-
const SlotClone = React.forwardRef((props2, forwardedRef) => {
|
|
51445
|
-
let { children, ...slotProps } = props2;
|
|
51446
|
-
if (isLazyComponent$1(children) && typeof use$1 === "function") {
|
|
51447
|
-
children = use$1(children._payload);
|
|
51448
|
-
}
|
|
51449
|
-
if (React.isValidElement(children)) {
|
|
51450
|
-
const childrenRef = getElementRef$1(children);
|
|
51451
|
-
const props22 = mergeProps$1(slotProps, children.props);
|
|
51452
|
-
if (children.type !== React.Fragment) {
|
|
51453
|
-
props22.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
|
|
51454
|
-
}
|
|
51455
|
-
return React.cloneElement(children, props22);
|
|
51456
|
-
}
|
|
51457
|
-
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
51458
|
-
});
|
|
51459
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
51460
|
-
return SlotClone;
|
|
51461
|
-
}
|
|
51462
|
-
var SLOTTABLE_IDENTIFIER$1 = Symbol("radix.slottable");
|
|
51463
|
-
function isSlottable$1(child) {
|
|
51464
|
-
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$1;
|
|
51465
|
-
}
|
|
51466
|
-
function mergeProps$1(slotProps, childProps) {
|
|
51467
|
-
const overrideProps = { ...childProps };
|
|
51468
|
-
for (const propName in childProps) {
|
|
51469
|
-
const slotPropValue = slotProps[propName];
|
|
51470
|
-
const childPropValue = childProps[propName];
|
|
51471
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
51472
|
-
if (isHandler) {
|
|
51473
|
-
if (slotPropValue && childPropValue) {
|
|
51474
|
-
overrideProps[propName] = (...args) => {
|
|
51475
|
-
const result = childPropValue(...args);
|
|
51476
|
-
slotPropValue(...args);
|
|
51477
|
-
return result;
|
|
51478
|
-
};
|
|
51479
|
-
} else if (slotPropValue) {
|
|
51480
|
-
overrideProps[propName] = slotPropValue;
|
|
51481
|
-
}
|
|
51482
|
-
} else if (propName === "style") {
|
|
51483
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
51484
|
-
} else if (propName === "className") {
|
|
51485
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
51486
|
-
}
|
|
51487
|
-
}
|
|
51488
|
-
return { ...slotProps, ...overrideProps };
|
|
51489
|
-
}
|
|
51490
|
-
function getElementRef$1(element) {
|
|
51491
|
-
var _a2, _b;
|
|
51492
|
-
let getter = (_a2 = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a2.get;
|
|
51493
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
51494
|
-
if (mayWarn) {
|
|
51495
|
-
return element.ref;
|
|
51496
|
-
}
|
|
51497
|
-
getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
|
|
51498
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
51499
|
-
if (mayWarn) {
|
|
51500
|
-
return element.props.ref;
|
|
51501
|
-
}
|
|
51502
|
-
return element.props.ref || element.ref;
|
|
51503
|
-
}
|
|
51504
|
-
var NODES$1 = [
|
|
51505
|
-
"a",
|
|
51506
|
-
"button",
|
|
51507
|
-
"div",
|
|
51508
|
-
"form",
|
|
51509
|
-
"h2",
|
|
51510
|
-
"h3",
|
|
51511
|
-
"img",
|
|
51512
|
-
"input",
|
|
51513
|
-
"label",
|
|
51514
|
-
"li",
|
|
51515
|
-
"nav",
|
|
51516
|
-
"ol",
|
|
51517
|
-
"p",
|
|
51518
|
-
"select",
|
|
51519
|
-
"span",
|
|
51520
|
-
"svg",
|
|
51521
|
-
"ul"
|
|
51522
|
-
];
|
|
51523
|
-
var Primitive$1 = NODES$1.reduce((primitive, node) => {
|
|
51524
|
-
const Slot2 = /* @__PURE__ */ createSlot$1(`Primitive.${node}`);
|
|
51525
|
-
const Node2 = React.forwardRef((props2, forwardedRef) => {
|
|
51526
|
-
const { asChild, ...primitiveProps } = props2;
|
|
51527
|
-
const Comp = asChild ? Slot2 : node;
|
|
51528
|
-
if (typeof window !== "undefined") {
|
|
51529
|
-
window[Symbol.for("radix-ui")] = true;
|
|
51530
|
-
}
|
|
51531
|
-
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
51532
|
-
});
|
|
51533
|
-
Node2.displayName = `Primitive.${node}`;
|
|
51534
|
-
return { ...primitive, [node]: Node2 };
|
|
51535
|
-
}, {});
|
|
51536
50648
|
var shim = { exports: {} };
|
|
51537
50649
|
var useSyncExternalStoreShim_production = {};
|
|
51538
50650
|
/**
|
|
@@ -51701,7 +50813,7 @@ var Avatar$1 = React.forwardRef(
|
|
|
51701
50813
|
scope: __scopeAvatar,
|
|
51702
50814
|
imageLoadingStatus,
|
|
51703
50815
|
onImageLoadingStatusChange: setImageLoadingStatus,
|
|
51704
|
-
children: /* @__PURE__ */ jsx(Primitive
|
|
50816
|
+
children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })
|
|
51705
50817
|
}
|
|
51706
50818
|
);
|
|
51707
50819
|
}
|
|
@@ -51723,7 +50835,7 @@ var AvatarImage$1 = React.forwardRef(
|
|
|
51723
50835
|
handleLoadingStatusChange(imageLoadingStatus);
|
|
51724
50836
|
}
|
|
51725
50837
|
}, [imageLoadingStatus, handleLoadingStatusChange]);
|
|
51726
|
-
return imageLoadingStatus === "loaded" ? /* @__PURE__ */ jsx(Primitive
|
|
50838
|
+
return imageLoadingStatus === "loaded" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;
|
|
51727
50839
|
}
|
|
51728
50840
|
);
|
|
51729
50841
|
AvatarImage$1.displayName = IMAGE_NAME;
|
|
@@ -51739,7 +50851,7 @@ var AvatarFallback$1 = React.forwardRef(
|
|
|
51739
50851
|
return () => window.clearTimeout(timerId);
|
|
51740
50852
|
}
|
|
51741
50853
|
}, [delayMs]);
|
|
51742
|
-
return canRender && context.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ jsx(Primitive
|
|
50854
|
+
return canRender && context.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;
|
|
51743
50855
|
}
|
|
51744
50856
|
);
|
|
51745
50857
|
AvatarFallback$1.displayName = FALLBACK_NAME;
|
|
@@ -51834,7 +50946,7 @@ function AvatarFallback({
|
|
|
51834
50946
|
{
|
|
51835
50947
|
"data-slot": "avatar-fallback",
|
|
51836
50948
|
className: cn$1(
|
|
51837
|
-
"bg-
|
|
50949
|
+
"bg-[#30A4A1] text-white text-xs font-semibold flex size-full items-center justify-center rounded-full",
|
|
51838
50950
|
className
|
|
51839
50951
|
),
|
|
51840
50952
|
...props2
|
|
@@ -51934,7 +51046,7 @@ function BreadcrumbList({ className, ...props2 }) {
|
|
|
51934
51046
|
{
|
|
51935
51047
|
"data-slot": "breadcrumb-list",
|
|
51936
51048
|
className: cn$1(
|
|
51937
|
-
"text-muted-foreground flex flex-wrap items-center gap-1
|
|
51049
|
+
"text-muted-foreground flex flex-wrap items-center gap-1 text-[12.5px] break-words sm:gap-1.5",
|
|
51938
51050
|
className
|
|
51939
51051
|
),
|
|
51940
51052
|
...props2
|
|
@@ -51961,7 +51073,10 @@ function BreadcrumbLink({
|
|
|
51961
51073
|
Comp,
|
|
51962
51074
|
{
|
|
51963
51075
|
"data-slot": "breadcrumb-link",
|
|
51964
|
-
className: cn$1(
|
|
51076
|
+
className: cn$1(
|
|
51077
|
+
"transition-colors hover:text-[#0d9488] hover:underline",
|
|
51078
|
+
className
|
|
51079
|
+
),
|
|
51965
51080
|
...props2
|
|
51966
51081
|
}
|
|
51967
51082
|
);
|
|
@@ -51974,7 +51089,7 @@ function BreadcrumbPage({ className, ...props2 }) {
|
|
|
51974
51089
|
role: "link",
|
|
51975
51090
|
"aria-disabled": "true",
|
|
51976
51091
|
"aria-current": "page",
|
|
51977
|
-
className: cn$1("
|
|
51092
|
+
className: cn$1("font-semibold text-[#2b2f36]", className),
|
|
51978
51093
|
...props2
|
|
51979
51094
|
}
|
|
51980
51095
|
);
|
|
@@ -51990,7 +51105,7 @@ function BreadcrumbSeparator({
|
|
|
51990
51105
|
"data-slot": "breadcrumb-separator",
|
|
51991
51106
|
role: "presentation",
|
|
51992
51107
|
"aria-hidden": "true",
|
|
51993
|
-
className: cn$1("[&>svg]:size-3
|
|
51108
|
+
className: cn$1("text-[#9ca3af] [&>svg]:size-3", className),
|
|
51994
51109
|
...props2,
|
|
51995
51110
|
children: children ?? /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
51996
51111
|
}
|
|
@@ -59774,135 +58889,6 @@ function D(_2) {
|
|
|
59774
58889
|
function W(_2, C, h) {
|
|
59775
58890
|
return _2 = h && h.length > 0 ? `${_2 + " " + h.join(" ")}` : _2, G(_2, C, D(_2), D(C), 0, 0, {});
|
|
59776
58891
|
}
|
|
59777
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
59778
|
-
var use = React[" use ".trim().toString()];
|
|
59779
|
-
function isPromiseLike(value) {
|
|
59780
|
-
return typeof value === "object" && value !== null && "then" in value;
|
|
59781
|
-
}
|
|
59782
|
-
function isLazyComponent(element) {
|
|
59783
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
59784
|
-
}
|
|
59785
|
-
// @__NO_SIDE_EFFECTS__
|
|
59786
|
-
function createSlot(ownerName) {
|
|
59787
|
-
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
59788
|
-
const Slot2 = React.forwardRef((props2, forwardedRef) => {
|
|
59789
|
-
let { children, ...slotProps } = props2;
|
|
59790
|
-
if (isLazyComponent(children) && typeof use === "function") {
|
|
59791
|
-
children = use(children._payload);
|
|
59792
|
-
}
|
|
59793
|
-
const childrenArray = React.Children.toArray(children);
|
|
59794
|
-
const slottable = childrenArray.find(isSlottable);
|
|
59795
|
-
if (slottable) {
|
|
59796
|
-
const newElement = slottable.props.children;
|
|
59797
|
-
const newChildren = childrenArray.map((child) => {
|
|
59798
|
-
if (child === slottable) {
|
|
59799
|
-
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
|
59800
|
-
return React.isValidElement(newElement) ? newElement.props.children : null;
|
|
59801
|
-
} else {
|
|
59802
|
-
return child;
|
|
59803
|
-
}
|
|
59804
|
-
});
|
|
59805
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
|
|
59806
|
-
}
|
|
59807
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
59808
|
-
});
|
|
59809
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
59810
|
-
return Slot2;
|
|
59811
|
-
}
|
|
59812
|
-
// @__NO_SIDE_EFFECTS__
|
|
59813
|
-
function createSlotClone(ownerName) {
|
|
59814
|
-
const SlotClone = React.forwardRef((props2, forwardedRef) => {
|
|
59815
|
-
let { children, ...slotProps } = props2;
|
|
59816
|
-
if (isLazyComponent(children) && typeof use === "function") {
|
|
59817
|
-
children = use(children._payload);
|
|
59818
|
-
}
|
|
59819
|
-
if (React.isValidElement(children)) {
|
|
59820
|
-
const childrenRef = getElementRef(children);
|
|
59821
|
-
const props22 = mergeProps(slotProps, children.props);
|
|
59822
|
-
if (children.type !== React.Fragment) {
|
|
59823
|
-
props22.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
|
|
59824
|
-
}
|
|
59825
|
-
return React.cloneElement(children, props22);
|
|
59826
|
-
}
|
|
59827
|
-
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
59828
|
-
});
|
|
59829
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
59830
|
-
return SlotClone;
|
|
59831
|
-
}
|
|
59832
|
-
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
59833
|
-
function isSlottable(child) {
|
|
59834
|
-
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
59835
|
-
}
|
|
59836
|
-
function mergeProps(slotProps, childProps) {
|
|
59837
|
-
const overrideProps = { ...childProps };
|
|
59838
|
-
for (const propName in childProps) {
|
|
59839
|
-
const slotPropValue = slotProps[propName];
|
|
59840
|
-
const childPropValue = childProps[propName];
|
|
59841
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
59842
|
-
if (isHandler) {
|
|
59843
|
-
if (slotPropValue && childPropValue) {
|
|
59844
|
-
overrideProps[propName] = (...args) => {
|
|
59845
|
-
const result = childPropValue(...args);
|
|
59846
|
-
slotPropValue(...args);
|
|
59847
|
-
return result;
|
|
59848
|
-
};
|
|
59849
|
-
} else if (slotPropValue) {
|
|
59850
|
-
overrideProps[propName] = slotPropValue;
|
|
59851
|
-
}
|
|
59852
|
-
} else if (propName === "style") {
|
|
59853
|
-
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
59854
|
-
} else if (propName === "className") {
|
|
59855
|
-
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
59856
|
-
}
|
|
59857
|
-
}
|
|
59858
|
-
return { ...slotProps, ...overrideProps };
|
|
59859
|
-
}
|
|
59860
|
-
function getElementRef(element) {
|
|
59861
|
-
var _a2, _b;
|
|
59862
|
-
let getter = (_a2 = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a2.get;
|
|
59863
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
59864
|
-
if (mayWarn) {
|
|
59865
|
-
return element.ref;
|
|
59866
|
-
}
|
|
59867
|
-
getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
|
|
59868
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
59869
|
-
if (mayWarn) {
|
|
59870
|
-
return element.props.ref;
|
|
59871
|
-
}
|
|
59872
|
-
return element.props.ref || element.ref;
|
|
59873
|
-
}
|
|
59874
|
-
var NODES = [
|
|
59875
|
-
"a",
|
|
59876
|
-
"button",
|
|
59877
|
-
"div",
|
|
59878
|
-
"form",
|
|
59879
|
-
"h2",
|
|
59880
|
-
"h3",
|
|
59881
|
-
"img",
|
|
59882
|
-
"input",
|
|
59883
|
-
"label",
|
|
59884
|
-
"li",
|
|
59885
|
-
"nav",
|
|
59886
|
-
"ol",
|
|
59887
|
-
"p",
|
|
59888
|
-
"select",
|
|
59889
|
-
"span",
|
|
59890
|
-
"svg",
|
|
59891
|
-
"ul"
|
|
59892
|
-
];
|
|
59893
|
-
var Primitive = NODES.reduce((primitive, node) => {
|
|
59894
|
-
const Slot2 = /* @__PURE__ */ createSlot(`Primitive.${node}`);
|
|
59895
|
-
const Node2 = React.forwardRef((props2, forwardedRef) => {
|
|
59896
|
-
const { asChild, ...primitiveProps } = props2;
|
|
59897
|
-
const Comp = asChild ? Slot2 : node;
|
|
59898
|
-
if (typeof window !== "undefined") {
|
|
59899
|
-
window[Symbol.for("radix-ui")] = true;
|
|
59900
|
-
}
|
|
59901
|
-
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
59902
|
-
});
|
|
59903
|
-
Node2.displayName = `Primitive.${node}`;
|
|
59904
|
-
return { ...primitive, [node]: Node2 };
|
|
59905
|
-
}, {});
|
|
59906
58892
|
var N = '[cmdk-group=""]', Y$1 = '[cmdk-group-items=""]', be = '[cmdk-group-heading=""]', le = '[cmdk-item=""]', ce = `${le}:not([aria-disabled="true"])`, Z = "cmdk-item-select", T = "data-value", Re = (r2, o2, n2) => W(r2, o2, n2), ue = React.createContext(void 0), K = () => React.useContext(ue), de = React.createContext(void 0), ee = () => React.useContext(de), fe = React.createContext(void 0), me = React.forwardRef((r2, o2) => {
|
|
59907
58893
|
let n2 = L(() => {
|
|
59908
58894
|
var e2, a2;
|
|
@@ -60098,15 +59084,15 @@ var N = '[cmdk-group=""]', Y$1 = '[cmdk-group-items=""]', be = '[cmdk-group-head
|
|
|
60098
59084
|
}
|
|
60099
59085
|
if (!x2) return null;
|
|
60100
59086
|
let { disabled: A, value: ge, onSelect: j, forceMount: O2, keywords: $2, ...q } = r2;
|
|
60101
|
-
return React.createElement(Primitive.div, { ref: composeRefs$
|
|
59087
|
+
return React.createElement(Primitive.div, { ref: composeRefs$2(u2, o2), ...q, id: n2, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!R, "data-disabled": !!A, "data-selected": !!R, onPointerMove: A || d.getDisablePointerSelection() ? void 0 : S, onClick: A ? void 0 : C }, r2.children);
|
|
60102
59088
|
}), Ee = React.forwardRef((r2, o2) => {
|
|
60103
59089
|
let { heading: n2, children: u2, forceMount: c2, ...d } = r2, f = useId$1(), p2 = React.useRef(null), b2 = React.useRef(null), m2 = useId$1(), R = K(), x2 = P((S) => c2 || R.filter() === false ? true : S.search ? S.filtered.groups.has(f) : true);
|
|
60104
59090
|
k(() => R.group(f), []), ve(f, p2, [r2.value, r2.heading, b2]);
|
|
60105
59091
|
let C = React.useMemo(() => ({ id: f, forceMount: c2 }), [c2]);
|
|
60106
|
-
return React.createElement(Primitive.div, { ref: composeRefs$
|
|
59092
|
+
return React.createElement(Primitive.div, { ref: composeRefs$2(p2, o2), ...d, "cmdk-group": "", role: "presentation", hidden: x2 ? void 0 : true }, n2 && React.createElement("div", { ref: b2, "cmdk-group-heading": "", "aria-hidden": true, id: m2 }, n2), B(r2, (S) => React.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n2 ? m2 : void 0 }, React.createElement(fe.Provider, { value: C }, S))));
|
|
60107
59093
|
}), ye = React.forwardRef((r2, o2) => {
|
|
60108
59094
|
let { alwaysRender: n2, ...u2 } = r2, c2 = React.useRef(null), d = P((f) => !f.search);
|
|
60109
|
-
return !n2 && !d ? null : React.createElement(Primitive.div, { ref: composeRefs$
|
|
59095
|
+
return !n2 && !d ? null : React.createElement(Primitive.div, { ref: composeRefs$2(c2, o2), ...u2, "cmdk-separator": "", role: "separator" });
|
|
60110
59096
|
}), Se = React.forwardRef((r2, o2) => {
|
|
60111
59097
|
let { onValueChange: n2, ...u2 } = r2, c2 = r2.value != null, d = ee(), f = P((m2) => m2.search), p2 = P((m2) => m2.selectedItemId), b2 = K();
|
|
60112
59098
|
return React.useEffect(() => {
|
|
@@ -60128,7 +59114,7 @@ var N = '[cmdk-group=""]', Y$1 = '[cmdk-group-items=""]', be = '[cmdk-group-head
|
|
|
60128
59114
|
cancelAnimationFrame(x2), C.unobserve(m2);
|
|
60129
59115
|
};
|
|
60130
59116
|
}
|
|
60131
|
-
}, []), React.createElement(Primitive.div, { ref: composeRefs$
|
|
59117
|
+
}, []), React.createElement(Primitive.div, { ref: composeRefs$2(d, o2), ...c2, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p2, "aria-label": u2, id: b2.listId }, B(r2, (m2) => React.createElement("div", { ref: composeRefs$2(f, b2.listInnerRef), "cmdk-list-sizer": "" }, m2)));
|
|
60132
59118
|
}), xe = React.forwardRef((r2, o2) => {
|
|
60133
59119
|
let { open: n2, onOpenChange: u2, overlayClassName: c2, contentClassName: d, container: f, ...p2 } = r2;
|
|
60134
59120
|
return React.createElement(Root$7, { open: n2, onOpenChange: u2 }, React.createElement(Portal$3, { container: f }, React.createElement(Overlay$1, { "cmdk-overlay": "", className: c2 }), React.createElement(Content$2, { "aria-label": r2.label, "cmdk-dialog": "", className: d }, React.createElement(me, { ref: o2, ...p2 }))));
|
|
@@ -60350,7 +59336,7 @@ function CommandShortcut({
|
|
|
60350
59336
|
);
|
|
60351
59337
|
}
|
|
60352
59338
|
var CONTEXT_MENU_NAME = "ContextMenu";
|
|
60353
|
-
var [createContextMenuContext] = createContextScope
|
|
59339
|
+
var [createContextMenuContext] = createContextScope(CONTEXT_MENU_NAME, [
|
|
60354
59340
|
createMenuScope
|
|
60355
59341
|
]);
|
|
60356
59342
|
var useMenuScope$1 = createMenuScope();
|
|
@@ -60413,7 +59399,7 @@ var ContextMenuTrigger$1 = React.forwardRef(
|
|
|
60413
59399
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60414
59400
|
/* @__PURE__ */ jsx(Anchor2, { ...menuScope, virtualRef }),
|
|
60415
59401
|
/* @__PURE__ */ jsx(
|
|
60416
|
-
Primitive
|
|
59402
|
+
Primitive.span,
|
|
60417
59403
|
{
|
|
60418
59404
|
"data-state": context.open ? "open" : "closed",
|
|
60419
59405
|
"data-disabled": disabled ? "" : void 0,
|
|
@@ -62511,7 +61497,7 @@ function FormMessage({ className, ...props2 }) {
|
|
|
62511
61497
|
}
|
|
62512
61498
|
var originalBodyUserSelect;
|
|
62513
61499
|
var HOVERCARD_NAME = "HoverCard";
|
|
62514
|
-
var [createHoverCardContext] = createContextScope
|
|
61500
|
+
var [createHoverCardContext] = createContextScope(HOVERCARD_NAME, [
|
|
62515
61501
|
createPopperScope
|
|
62516
61502
|
]);
|
|
62517
61503
|
var usePopperScope = createPopperScope();
|
|
@@ -62577,7 +61563,7 @@ var HoverCardTrigger$1 = React.forwardRef(
|
|
|
62577
61563
|
const context = useHoverCardContext(TRIGGER_NAME$2, __scopeHoverCard);
|
|
62578
61564
|
const popperScope = usePopperScope(__scopeHoverCard);
|
|
62579
61565
|
return /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(
|
|
62580
|
-
Primitive
|
|
61566
|
+
Primitive.a,
|
|
62581
61567
|
{
|
|
62582
61568
|
"data-state": context.open ? "open" : "closed",
|
|
62583
61569
|
...triggerProps,
|
|
@@ -63024,7 +62010,7 @@ function InputOTPSeparator({ ...props2 }) {
|
|
|
63024
62010
|
}
|
|
63025
62011
|
var MENUBAR_NAME = "Menubar";
|
|
63026
62012
|
var [Collection$2, useCollection$2, createCollectionScope$2] = createCollection(MENUBAR_NAME);
|
|
63027
|
-
var [createMenubarContext] = createContextScope
|
|
62013
|
+
var [createMenubarContext] = createContextScope(MENUBAR_NAME, [
|
|
63028
62014
|
createCollectionScope$2,
|
|
63029
62015
|
createRovingFocusGroupScope
|
|
63030
62016
|
]);
|
|
@@ -63083,7 +62069,7 @@ var Menubar$1 = React.forwardRef(
|
|
|
63083
62069
|
dir: direction,
|
|
63084
62070
|
currentTabStopId,
|
|
63085
62071
|
onCurrentTabStopIdChange: setCurrentTabStopId,
|
|
63086
|
-
children: /* @__PURE__ */ jsx(Primitive
|
|
62072
|
+
children: /* @__PURE__ */ jsx(Primitive.div, { role: "menubar", ...menubarProps, ref: forwardedRef })
|
|
63087
62073
|
}
|
|
63088
62074
|
) }) })
|
|
63089
62075
|
}
|
|
@@ -63151,7 +62137,7 @@ var MenubarTrigger$1 = React.forwardRef(
|
|
|
63151
62137
|
focusable: !disabled,
|
|
63152
62138
|
tabStopId: menuContext.value,
|
|
63153
62139
|
children: /* @__PURE__ */ jsx(Anchor2, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(
|
|
63154
|
-
Primitive
|
|
62140
|
+
Primitive.button,
|
|
63155
62141
|
{
|
|
63156
62142
|
type: "button",
|
|
63157
62143
|
role: "menuitem",
|
|
@@ -63673,7 +62659,7 @@ function MenubarSubContent({
|
|
|
63673
62659
|
var NAVIGATION_MENU_NAME = "NavigationMenu";
|
|
63674
62660
|
var [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(NAVIGATION_MENU_NAME);
|
|
63675
62661
|
var [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME);
|
|
63676
|
-
var [createNavigationMenuContext] = createContextScope
|
|
62662
|
+
var [createNavigationMenuContext] = createContextScope(
|
|
63677
62663
|
NAVIGATION_MENU_NAME,
|
|
63678
62664
|
[createCollectionScope$1, createFocusGroupCollectionScope]
|
|
63679
62665
|
);
|
|
@@ -63776,7 +62762,7 @@ var NavigationMenu$1 = React.forwardRef(
|
|
|
63776
62762
|
},
|
|
63777
62763
|
onItemDismiss: () => setValue(""),
|
|
63778
62764
|
children: /* @__PURE__ */ jsx(
|
|
63779
|
-
Primitive
|
|
62765
|
+
Primitive.nav,
|
|
63780
62766
|
{
|
|
63781
62767
|
"aria-label": "Main",
|
|
63782
62768
|
"data-orientation": orientation,
|
|
@@ -63820,7 +62806,7 @@ var NavigationMenuSub = React.forwardRef(
|
|
|
63820
62806
|
onTriggerEnter: (itemValue) => setValue(itemValue),
|
|
63821
62807
|
onItemSelect: (itemValue) => setValue(itemValue),
|
|
63822
62808
|
onItemDismiss: () => setValue(""),
|
|
63823
|
-
children: /* @__PURE__ */ jsx(Primitive
|
|
62809
|
+
children: /* @__PURE__ */ jsx(Primitive.div, { "data-orientation": orientation, ...subProps, ref: forwardedRef })
|
|
63824
62810
|
}
|
|
63825
62811
|
);
|
|
63826
62812
|
}
|
|
@@ -63888,8 +62874,8 @@ var NavigationMenuList$1 = React.forwardRef(
|
|
|
63888
62874
|
(props2, forwardedRef) => {
|
|
63889
62875
|
const { __scopeNavigationMenu, ...listProps } = props2;
|
|
63890
62876
|
const context = useNavigationMenuContext(LIST_NAME, __scopeNavigationMenu);
|
|
63891
|
-
const list = /* @__PURE__ */ jsx(Primitive
|
|
63892
|
-
return /* @__PURE__ */ jsx(Primitive
|
|
62877
|
+
const list = /* @__PURE__ */ jsx(Primitive.ul, { "data-orientation": context.orientation, ...listProps, ref: forwardedRef });
|
|
62878
|
+
return /* @__PURE__ */ jsx(Primitive.div, { style: { position: "relative" }, ref: context.onIndicatorTrackChange, children: /* @__PURE__ */ jsx(Collection$1.Slot, { scope: __scopeNavigationMenu, children: context.isRootMenu ? /* @__PURE__ */ jsx(FocusGroup, { asChild: true, children: list }) : list }) });
|
|
63893
62879
|
}
|
|
63894
62880
|
);
|
|
63895
62881
|
NavigationMenuList$1.displayName = LIST_NAME;
|
|
@@ -63932,7 +62918,7 @@ var NavigationMenuItem$1 = React.forwardRef(
|
|
|
63932
62918
|
onFocusProxyEnter: handleContentEntry,
|
|
63933
62919
|
onRootContentClose: handleContentExit,
|
|
63934
62920
|
onContentFocusOutside: handleContentExit,
|
|
63935
|
-
children: /* @__PURE__ */ jsx(Primitive
|
|
62921
|
+
children: /* @__PURE__ */ jsx(Primitive.li, { ...itemProps, ref: forwardedRef })
|
|
63936
62922
|
}
|
|
63937
62923
|
);
|
|
63938
62924
|
}
|
|
@@ -63952,7 +62938,7 @@ var NavigationMenuTrigger$1 = React.forwardRef((props2, forwardedRef) => {
|
|
|
63952
62938
|
const open = itemContext.value === context.value;
|
|
63953
62939
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
63954
62940
|
/* @__PURE__ */ jsx(Collection$1.ItemSlot, { scope: __scopeNavigationMenu, value: itemContext.value, children: /* @__PURE__ */ jsx(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
63955
|
-
Primitive
|
|
62941
|
+
Primitive.button,
|
|
63956
62942
|
{
|
|
63957
62943
|
id: triggerId,
|
|
63958
62944
|
disabled,
|
|
@@ -64026,7 +63012,7 @@ var NavigationMenuLink$1 = React.forwardRef(
|
|
|
64026
63012
|
(props2, forwardedRef) => {
|
|
64027
63013
|
const { __scopeNavigationMenu, active, onSelect, ...linkProps } = props2;
|
|
64028
63014
|
return /* @__PURE__ */ jsx(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
64029
|
-
Primitive
|
|
63015
|
+
Primitive.a,
|
|
64030
63016
|
{
|
|
64031
63017
|
"data-active": active ? "" : void 0,
|
|
64032
63018
|
"aria-current": active ? "page" : void 0,
|
|
@@ -64095,7 +63081,7 @@ var NavigationMenuIndicatorImpl = React.forwardRef((props2, forwardedRef) => {
|
|
|
64095
63081
|
useResizeObserver$1(activeTrigger, handlePositionChange);
|
|
64096
63082
|
useResizeObserver$1(context.indicatorTrack, handlePositionChange);
|
|
64097
63083
|
return position ? /* @__PURE__ */ jsx(
|
|
64098
|
-
Primitive
|
|
63084
|
+
Primitive.div,
|
|
64099
63085
|
{
|
|
64100
63086
|
"aria-hidden": true,
|
|
64101
63087
|
"data-state": isVisible ? "visible" : "hidden",
|
|
@@ -64304,7 +63290,7 @@ var NavigationMenuViewportImpl = React.forwardRef((props2, forwardedRef) => {
|
|
|
64304
63290
|
};
|
|
64305
63291
|
useResizeObserver$1(content, handleSizeChange);
|
|
64306
63292
|
return /* @__PURE__ */ jsx(
|
|
64307
|
-
Primitive
|
|
63293
|
+
Primitive.div,
|
|
64308
63294
|
{
|
|
64309
63295
|
"data-state": getOpenState(open),
|
|
64310
63296
|
"data-orientation": context.orientation,
|
|
@@ -64325,7 +63311,7 @@ var NavigationMenuViewportImpl = React.forwardRef((props2, forwardedRef) => {
|
|
|
64325
63311
|
NavigationMenuContentImpl,
|
|
64326
63312
|
{
|
|
64327
63313
|
...props22,
|
|
64328
|
-
ref: composeRefs$
|
|
63314
|
+
ref: composeRefs$2(ref, (node) => {
|
|
64329
63315
|
if (isActive && node) setContent(node);
|
|
64330
63316
|
})
|
|
64331
63317
|
}
|
|
@@ -64339,7 +63325,7 @@ var FocusGroup = React.forwardRef(
|
|
|
64339
63325
|
(props2, forwardedRef) => {
|
|
64340
63326
|
const { __scopeNavigationMenu, ...groupProps } = props2;
|
|
64341
63327
|
const context = useNavigationMenuContext(FOCUS_GROUP_NAME, __scopeNavigationMenu);
|
|
64342
|
-
return /* @__PURE__ */ jsx(FocusGroupCollection.Provider, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(FocusGroupCollection.Slot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(Primitive
|
|
63328
|
+
return /* @__PURE__ */ jsx(FocusGroupCollection.Provider, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(FocusGroupCollection.Slot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(Primitive.div, { dir: context.dir, ...groupProps, ref: forwardedRef }) }) });
|
|
64343
63329
|
}
|
|
64344
63330
|
);
|
|
64345
63331
|
var ARROW_KEYS$1 = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"];
|
|
@@ -64350,7 +63336,7 @@ var FocusGroupItem = React.forwardRef(
|
|
|
64350
63336
|
const getItems = useFocusGroupCollection(__scopeNavigationMenu);
|
|
64351
63337
|
const context = useNavigationMenuContext(FOCUS_GROUP_ITEM_NAME, __scopeNavigationMenu);
|
|
64352
63338
|
return /* @__PURE__ */ jsx(FocusGroupCollection.ItemSlot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(
|
|
64353
|
-
Primitive
|
|
63339
|
+
Primitive.button,
|
|
64354
63340
|
{
|
|
64355
63341
|
...groupProps,
|
|
64356
63342
|
ref: forwardedRef,
|
|
@@ -64635,12 +63621,13 @@ function PaginationLink({
|
|
|
64635
63621
|
{
|
|
64636
63622
|
"aria-current": isActive ? "page" : void 0,
|
|
64637
63623
|
"data-slot": "pagination-link",
|
|
64638
|
-
"data-active": isActive,
|
|
63624
|
+
"data-active": isActive ? true : void 0,
|
|
64639
63625
|
className: cn$1(
|
|
64640
63626
|
buttonVariants({
|
|
64641
63627
|
variant: isActive ? "outline" : "ghost",
|
|
64642
63628
|
size: size2
|
|
64643
63629
|
}),
|
|
63630
|
+
"data-[active=true]:bg-[#F0FAFA] data-[active=true]:text-[#0D9488] data-[active=true]:font-semibold data-[active=true]:border-[#E0F2F1]",
|
|
64644
63631
|
className
|
|
64645
63632
|
),
|
|
64646
63633
|
...props2
|
|
@@ -66855,7 +65842,7 @@ function useStateMachine(initialState2, machine) {
|
|
|
66855
65842
|
}, initialState2);
|
|
66856
65843
|
}
|
|
66857
65844
|
var SCROLL_AREA_NAME = "ScrollArea";
|
|
66858
|
-
var [createScrollAreaContext] = createContextScope
|
|
65845
|
+
var [createScrollAreaContext] = createContextScope(SCROLL_AREA_NAME);
|
|
66859
65846
|
var [ScrollAreaProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME);
|
|
66860
65847
|
var ScrollArea$1 = React.forwardRef(
|
|
66861
65848
|
(props2, forwardedRef) => {
|
|
@@ -66900,7 +65887,7 @@ var ScrollArea$1 = React.forwardRef(
|
|
|
66900
65887
|
onCornerWidthChange: setCornerWidth,
|
|
66901
65888
|
onCornerHeightChange: setCornerHeight,
|
|
66902
65889
|
children: /* @__PURE__ */ jsx(
|
|
66903
|
-
Primitive
|
|
65890
|
+
Primitive.div,
|
|
66904
65891
|
{
|
|
66905
65892
|
dir: direction,
|
|
66906
65893
|
...scrollAreaProps,
|
|
@@ -66937,7 +65924,7 @@ var ScrollAreaViewport = React.forwardRef(
|
|
|
66937
65924
|
}
|
|
66938
65925
|
),
|
|
66939
65926
|
/* @__PURE__ */ jsx(
|
|
66940
|
-
Primitive
|
|
65927
|
+
Primitive.div,
|
|
66941
65928
|
{
|
|
66942
65929
|
"data-radix-scroll-area-viewport": "",
|
|
66943
65930
|
...viewportProps,
|
|
@@ -67323,7 +66310,7 @@ var ScrollAreaScrollbarImpl = React.forwardRef((props2, forwardedRef) => {
|
|
|
67323
66310
|
onThumbPositionChange: handleThumbPositionChange,
|
|
67324
66311
|
onThumbPointerDown: useCallbackRef$2(onThumbPointerDown),
|
|
67325
66312
|
children: /* @__PURE__ */ jsx(
|
|
67326
|
-
Primitive
|
|
66313
|
+
Primitive.div,
|
|
67327
66314
|
{
|
|
67328
66315
|
...scrollbarProps,
|
|
67329
66316
|
ref: composeRefs2,
|
|
@@ -67397,7 +66384,7 @@ var ScrollAreaThumbImpl = React.forwardRef(
|
|
|
67397
66384
|
}
|
|
67398
66385
|
}, [scrollAreaContext.viewport, debounceScrollEnd, onThumbPositionChange]);
|
|
67399
66386
|
return /* @__PURE__ */ jsx(
|
|
67400
|
-
Primitive
|
|
66387
|
+
Primitive.div,
|
|
67401
66388
|
{
|
|
67402
66389
|
"data-state": scrollbarContext.hasThumb ? "visible" : "hidden",
|
|
67403
66390
|
...thumbProps,
|
|
@@ -67449,7 +66436,7 @@ var ScrollAreaCornerImpl = React.forwardRef((props2, forwardedRef) => {
|
|
|
67449
66436
|
setWidth(width2);
|
|
67450
66437
|
});
|
|
67451
66438
|
return hasSize ? /* @__PURE__ */ jsx(
|
|
67452
|
-
Primitive
|
|
66439
|
+
Primitive.div,
|
|
67453
66440
|
{
|
|
67454
66441
|
...cornerProps,
|
|
67455
66442
|
ref: forwardedRef,
|
|
@@ -67617,7 +66604,7 @@ var BACK_KEYS = {
|
|
|
67617
66604
|
};
|
|
67618
66605
|
var SLIDER_NAME = "Slider";
|
|
67619
66606
|
var [Collection, useCollection, createCollectionScope] = createCollection(SLIDER_NAME);
|
|
67620
|
-
var [createSliderContext] = createContextScope
|
|
66607
|
+
var [createSliderContext] = createContextScope(SLIDER_NAME, [
|
|
67621
66608
|
createCollectionScope
|
|
67622
66609
|
]);
|
|
67623
66610
|
var [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME);
|
|
@@ -67888,7 +66875,7 @@ var SliderImpl = React.forwardRef(
|
|
|
67888
66875
|
} = props2;
|
|
67889
66876
|
const context = useSliderContext(SLIDER_NAME, __scopeSlider);
|
|
67890
66877
|
return /* @__PURE__ */ jsx(
|
|
67891
|
-
Primitive
|
|
66878
|
+
Primitive.span,
|
|
67892
66879
|
{
|
|
67893
66880
|
...sliderProps,
|
|
67894
66881
|
ref: forwardedRef,
|
|
@@ -67935,7 +66922,7 @@ var SliderTrack = React.forwardRef(
|
|
|
67935
66922
|
const { __scopeSlider, ...trackProps } = props2;
|
|
67936
66923
|
const context = useSliderContext(TRACK_NAME, __scopeSlider);
|
|
67937
66924
|
return /* @__PURE__ */ jsx(
|
|
67938
|
-
Primitive
|
|
66925
|
+
Primitive.span,
|
|
67939
66926
|
{
|
|
67940
66927
|
"data-disabled": context.disabled ? "" : void 0,
|
|
67941
66928
|
"data-orientation": context.orientation,
|
|
@@ -67961,7 +66948,7 @@ var SliderRange = React.forwardRef(
|
|
|
67961
66948
|
const offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0;
|
|
67962
66949
|
const offsetEnd = 100 - Math.max(...percentages);
|
|
67963
66950
|
return /* @__PURE__ */ jsx(
|
|
67964
|
-
Primitive
|
|
66951
|
+
Primitive.span,
|
|
67965
66952
|
{
|
|
67966
66953
|
"data-orientation": context.orientation,
|
|
67967
66954
|
"data-disabled": context.disabled ? "" : void 0,
|
|
@@ -68022,7 +67009,7 @@ var SliderThumbImpl = React.forwardRef(
|
|
|
68022
67009
|
},
|
|
68023
67010
|
children: [
|
|
68024
67011
|
/* @__PURE__ */ jsx(Collection.ItemSlot, { scope: props2.__scopeSlider, children: /* @__PURE__ */ jsx(
|
|
68025
|
-
Primitive
|
|
67012
|
+
Primitive.span,
|
|
68026
67013
|
{
|
|
68027
67014
|
role: "slider",
|
|
68028
67015
|
"aria-label": props2["aria-label"] || label,
|
|
@@ -68075,7 +67062,7 @@ var SliderBubbleInput = React.forwardRef(
|
|
|
68075
67062
|
}
|
|
68076
67063
|
}, [prevValue, value]);
|
|
68077
67064
|
return /* @__PURE__ */ jsx(
|
|
68078
|
-
Primitive
|
|
67065
|
+
Primitive.input,
|
|
68079
67066
|
{
|
|
68080
67067
|
style: { display: "none" },
|
|
68081
67068
|
...props2,
|
|
@@ -68203,7 +67190,7 @@ function Slider({
|
|
|
68203
67190
|
}
|
|
68204
67191
|
);
|
|
68205
67192
|
}
|
|
68206
|
-
const Toaster2 = ({ ...props2 }) => {
|
|
67193
|
+
const Toaster2 = ({ toastOptions, ...props2 }) => {
|
|
68207
67194
|
const { theme = "system" } = z();
|
|
68208
67195
|
return /* @__PURE__ */ jsx(
|
|
68209
67196
|
Toaster$1,
|
|
@@ -68215,7 +67202,18 @@ const Toaster2 = ({ ...props2 }) => {
|
|
|
68215
67202
|
"--normal-text": "var(--popover-foreground)",
|
|
68216
67203
|
"--normal-border": "var(--border)"
|
|
68217
67204
|
},
|
|
68218
|
-
...props2
|
|
67205
|
+
...props2,
|
|
67206
|
+
toastOptions: {
|
|
67207
|
+
...toastOptions,
|
|
67208
|
+
classNames: {
|
|
67209
|
+
toast: "rounded-lg border-l-4 border-l-[#1976F2] shadow-[0_8px_24px_rgba(15,17,21,.12),0_2px_6px_rgba(15,17,21,.06)]",
|
|
67210
|
+
success: "border-l-[#2BA84A]",
|
|
67211
|
+
error: "border-l-[#EF4444]",
|
|
67212
|
+
warning: "border-l-[#F59E0B]",
|
|
67213
|
+
info: "border-l-[#1976F2]",
|
|
67214
|
+
...toastOptions == null ? void 0 : toastOptions.classNames
|
|
67215
|
+
}
|
|
67216
|
+
}
|
|
68219
67217
|
}
|
|
68220
67218
|
);
|
|
68221
67219
|
};
|
|
@@ -68229,7 +67227,7 @@ var Toggle$1 = React.forwardRef((props2, forwardedRef) => {
|
|
|
68229
67227
|
caller: NAME
|
|
68230
67228
|
});
|
|
68231
67229
|
return /* @__PURE__ */ jsx(
|
|
68232
|
-
Primitive
|
|
67230
|
+
Primitive.button,
|
|
68233
67231
|
{
|
|
68234
67232
|
type: "button",
|
|
68235
67233
|
"aria-pressed": pressed,
|
|
@@ -68248,7 +67246,7 @@ var Toggle$1 = React.forwardRef((props2, forwardedRef) => {
|
|
|
68248
67246
|
Toggle$1.displayName = NAME;
|
|
68249
67247
|
var Root = Toggle$1;
|
|
68250
67248
|
var TOGGLE_GROUP_NAME = "ToggleGroup";
|
|
68251
|
-
var [createToggleGroupContext] = createContextScope
|
|
67249
|
+
var [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [
|
|
68252
67250
|
createRovingFocusGroupScope
|
|
68253
67251
|
]);
|
|
68254
67252
|
var useRovingFocusGroupScope = createRovingFocusGroupScope();
|
|
@@ -68350,9 +67348,9 @@ var ToggleGroupImpl = React__default.forwardRef(
|
|
|
68350
67348
|
orientation,
|
|
68351
67349
|
dir: direction,
|
|
68352
67350
|
loop,
|
|
68353
|
-
children: /* @__PURE__ */ jsx(Primitive
|
|
67351
|
+
children: /* @__PURE__ */ jsx(Primitive.div, { ...commonProps, ref: forwardedRef })
|
|
68354
67352
|
}
|
|
68355
|
-
) : /* @__PURE__ */ jsx(Primitive
|
|
67353
|
+
) : /* @__PURE__ */ jsx(Primitive.div, { ...commonProps, ref: forwardedRef }) });
|
|
68356
67354
|
}
|
|
68357
67355
|
);
|
|
68358
67356
|
var ITEM_NAME = "ToggleGroupItem";
|