@ark-ui/react 0.0.0-rc-20221107201444 → 0.0.0-rc-20221108033919
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.cjs.js +522 -401
- package/dist/index.d.ts +25 -1
- package/dist/index.esm.js +510 -396
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -52,6 +52,13 @@ __export(src_exports, {
|
|
|
52
52
|
EditableInput: () => EditableInput,
|
|
53
53
|
EditablePreview: () => EditablePreview,
|
|
54
54
|
EditableSubmitButton: () => EditableSubmitButton,
|
|
55
|
+
HoverCard: () => HoverCard,
|
|
56
|
+
HoverCardArrow: () => HoverCardArrow,
|
|
57
|
+
HoverCardContent: () => HoverCardContent,
|
|
58
|
+
HoverCardInnerArrow: () => HoverCardInnerArrow,
|
|
59
|
+
HoverCardPortal: () => HoverCardPortal,
|
|
60
|
+
HoverCardPositioner: () => HoverCardPositioner,
|
|
61
|
+
HoverCardTrigger: () => HoverCardTrigger,
|
|
55
62
|
NumberInput: () => NumberInput,
|
|
56
63
|
NumberInputDecrementButton: () => NumberInputDecrementButton,
|
|
57
64
|
NumberInputField: () => NumberInputField,
|
|
@@ -706,9 +713,116 @@ var EditableSubmitButton = (0, import_react54.forwardRef)(
|
|
|
706
713
|
}
|
|
707
714
|
);
|
|
708
715
|
|
|
709
|
-
// src/
|
|
716
|
+
// src/hover-card/hover-card-context.ts
|
|
717
|
+
var [HoverCardProvider, useHoverCardContext] = createContext({
|
|
718
|
+
name: "HoverCardContext",
|
|
719
|
+
hookName: "useHoverCardContext",
|
|
720
|
+
providerName: "<HoverCardProvider />"
|
|
721
|
+
});
|
|
722
|
+
|
|
723
|
+
// src/hover-card/use-hover-card.ts
|
|
724
|
+
var hoverCard = __toESM(require("@zag-js/hover-card"));
|
|
725
|
+
var import_react56 = require("@zag-js/react");
|
|
726
|
+
var import_react57 = require("react");
|
|
727
|
+
var useHoverCard = (props) => {
|
|
728
|
+
const initialContext = filterUndefinedEntries({
|
|
729
|
+
id: (0, import_react57.useId)(),
|
|
730
|
+
...props
|
|
731
|
+
});
|
|
732
|
+
const [state, send] = (0, import_react56.useMachine)(hoverCard.machine(initialContext), { context: initialContext });
|
|
733
|
+
return hoverCard.connect(state, send, import_react56.normalizeProps);
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
// src/hover-card/hover-card.tsx
|
|
737
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
738
|
+
var HoverCard = (props) => {
|
|
739
|
+
const { children, ...useHoverCardProps } = props;
|
|
740
|
+
const hoverCard2 = useHoverCard(useHoverCardProps);
|
|
741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(HoverCardProvider, {
|
|
742
|
+
value: hoverCard2,
|
|
743
|
+
children
|
|
744
|
+
});
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
// src/hover-card/hover-card-arrow.tsx
|
|
710
748
|
var import_react58 = require("@polymorphic-factory/react");
|
|
711
749
|
var import_react59 = require("@zag-js/react");
|
|
750
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
751
|
+
var HoverCardArrow = (0, import_react58.forwardRef)((props, ref) => {
|
|
752
|
+
const { arrowProps } = useHoverCardContext();
|
|
753
|
+
const mergedProps = (0, import_react59.mergeProps)(arrowProps, props);
|
|
754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ark.div, {
|
|
755
|
+
...mergedProps,
|
|
756
|
+
ref
|
|
757
|
+
});
|
|
758
|
+
});
|
|
759
|
+
|
|
760
|
+
// src/hover-card/hover-card-content.tsx
|
|
761
|
+
var import_react60 = require("@polymorphic-factory/react");
|
|
762
|
+
var import_react61 = require("@zag-js/react");
|
|
763
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
764
|
+
var HoverCardContent = (0, import_react60.forwardRef)((props, ref) => {
|
|
765
|
+
const { contentProps } = useHoverCardContext();
|
|
766
|
+
const mergedProps = (0, import_react61.mergeProps)(contentProps, props);
|
|
767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ark.div, {
|
|
768
|
+
...mergedProps,
|
|
769
|
+
ref
|
|
770
|
+
});
|
|
771
|
+
});
|
|
772
|
+
|
|
773
|
+
// src/hover-card/hover-card-inner-arrow.tsx
|
|
774
|
+
var import_react62 = require("@polymorphic-factory/react");
|
|
775
|
+
var import_react63 = require("@zag-js/react");
|
|
776
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
777
|
+
var HoverCardInnerArrow = (0, import_react62.forwardRef)((props, ref) => {
|
|
778
|
+
const { innerArrowProps } = useHoverCardContext();
|
|
779
|
+
const mergedProps = (0, import_react63.mergeProps)(innerArrowProps, props);
|
|
780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ark.div, {
|
|
781
|
+
...mergedProps,
|
|
782
|
+
ref
|
|
783
|
+
});
|
|
784
|
+
});
|
|
785
|
+
|
|
786
|
+
// src/hover-card/hover-card-portal.tsx
|
|
787
|
+
var import_portal2 = require("@reach/portal");
|
|
788
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
789
|
+
var HoverCardPortal = (props) => {
|
|
790
|
+
const { isOpen } = useHoverCardContext();
|
|
791
|
+
return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_portal2.Portal, {
|
|
792
|
+
type: "ark-portal",
|
|
793
|
+
...props
|
|
794
|
+
}) : null;
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
// src/hover-card/hover-card-positioner.tsx
|
|
798
|
+
var import_react64 = require("@polymorphic-factory/react");
|
|
799
|
+
var import_react65 = require("@zag-js/react");
|
|
800
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
801
|
+
var HoverCardPositioner = (0, import_react64.forwardRef)((props, ref) => {
|
|
802
|
+
const { positionerProps } = useHoverCardContext();
|
|
803
|
+
const mergedProps = (0, import_react65.mergeProps)(positionerProps, props);
|
|
804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ark.div, {
|
|
805
|
+
...mergedProps,
|
|
806
|
+
ref
|
|
807
|
+
});
|
|
808
|
+
});
|
|
809
|
+
|
|
810
|
+
// src/hover-card/hover-card-trigger.tsx
|
|
811
|
+
var import_react66 = require("@polymorphic-factory/react");
|
|
812
|
+
var import_react67 = require("@zag-js/react");
|
|
813
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
814
|
+
var HoverCardTrigger = (0, import_react66.forwardRef)((props, ref) => {
|
|
815
|
+
const { triggerProps } = useHoverCardContext();
|
|
816
|
+
const mergedProps = (0, import_react67.mergeProps)(triggerProps, props);
|
|
817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ark.a, {
|
|
818
|
+
...mergedProps,
|
|
819
|
+
ref
|
|
820
|
+
});
|
|
821
|
+
});
|
|
822
|
+
|
|
823
|
+
// src/number-input/number-input.tsx
|
|
824
|
+
var import_react70 = require("@polymorphic-factory/react");
|
|
825
|
+
var import_react71 = require("@zag-js/react");
|
|
712
826
|
|
|
713
827
|
// src/number-input/number-input-context.ts
|
|
714
828
|
var [NumberInputProvider, useNumberInputContext] = createContext({
|
|
@@ -719,11 +833,11 @@ var [NumberInputProvider, useNumberInputContext] = createContext({
|
|
|
719
833
|
|
|
720
834
|
// src/number-input/use-number-input.ts
|
|
721
835
|
var numberInput = __toESM(require("@zag-js/number-input"));
|
|
722
|
-
var
|
|
723
|
-
var
|
|
836
|
+
var import_react68 = require("@zag-js/react");
|
|
837
|
+
var import_react69 = require("react");
|
|
724
838
|
var useNumberInput = (props) => {
|
|
725
839
|
const initialContext = filterUndefinedEntries({
|
|
726
|
-
id: (0,
|
|
840
|
+
id: (0, import_react69.useId)(),
|
|
727
841
|
...props,
|
|
728
842
|
value: props.value ?? props.defaultValue
|
|
729
843
|
});
|
|
@@ -731,13 +845,13 @@ var useNumberInput = (props) => {
|
|
|
731
845
|
...initialContext,
|
|
732
846
|
value: props.value
|
|
733
847
|
});
|
|
734
|
-
const [state, send] = (0,
|
|
735
|
-
return numberInput.connect(state, send,
|
|
848
|
+
const [state, send] = (0, import_react68.useMachine)(numberInput.machine(initialContext), { context });
|
|
849
|
+
return numberInput.connect(state, send, import_react68.normalizeProps);
|
|
736
850
|
};
|
|
737
851
|
|
|
738
852
|
// src/number-input/number-input.tsx
|
|
739
|
-
var
|
|
740
|
-
var NumberInput = (0,
|
|
853
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
854
|
+
var NumberInput = (0, import_react70.forwardRef)((props, ref) => {
|
|
741
855
|
const [useNumberInputProps, divProps] = splitProps(props, [
|
|
742
856
|
"allowMouseWheel",
|
|
743
857
|
"allowOverflow",
|
|
@@ -770,10 +884,10 @@ var NumberInput = (0, import_react58.forwardRef)((props, ref) => {
|
|
|
770
884
|
"value"
|
|
771
885
|
]);
|
|
772
886
|
const pinInput2 = useNumberInput(useNumberInputProps);
|
|
773
|
-
const mergedProps = (0,
|
|
774
|
-
return /* @__PURE__ */ (0,
|
|
887
|
+
const mergedProps = (0, import_react71.mergeProps)(pinInput2.rootProps, divProps);
|
|
888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(NumberInputProvider, {
|
|
775
889
|
value: pinInput2,
|
|
776
|
-
children: /* @__PURE__ */ (0,
|
|
890
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ark.div, {
|
|
777
891
|
...mergedProps,
|
|
778
892
|
ref
|
|
779
893
|
})
|
|
@@ -781,14 +895,14 @@ var NumberInput = (0, import_react58.forwardRef)((props, ref) => {
|
|
|
781
895
|
});
|
|
782
896
|
|
|
783
897
|
// src/number-input/number-input-decrement-button.tsx
|
|
784
|
-
var
|
|
785
|
-
var
|
|
786
|
-
var
|
|
787
|
-
var NumberInputDecrementButton = (0,
|
|
898
|
+
var import_react72 = require("@polymorphic-factory/react");
|
|
899
|
+
var import_react73 = require("@zag-js/react");
|
|
900
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
901
|
+
var NumberInputDecrementButton = (0, import_react72.forwardRef)(
|
|
788
902
|
(props, ref) => {
|
|
789
903
|
const { decrementButtonProps } = useNumberInputContext();
|
|
790
|
-
const mergedProps = (0,
|
|
791
|
-
return /* @__PURE__ */ (0,
|
|
904
|
+
const mergedProps = (0, import_react73.mergeProps)(decrementButtonProps, props);
|
|
905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ark.button, {
|
|
792
906
|
...mergedProps,
|
|
793
907
|
ref
|
|
794
908
|
});
|
|
@@ -796,27 +910,27 @@ var NumberInputDecrementButton = (0, import_react60.forwardRef)(
|
|
|
796
910
|
);
|
|
797
911
|
|
|
798
912
|
// src/number-input/number-input-field.tsx
|
|
799
|
-
var
|
|
800
|
-
var
|
|
801
|
-
var
|
|
802
|
-
var NumberInputField = (0,
|
|
913
|
+
var import_react74 = require("@polymorphic-factory/react");
|
|
914
|
+
var import_react75 = require("@zag-js/react");
|
|
915
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
916
|
+
var NumberInputField = (0, import_react74.forwardRef)((props, ref) => {
|
|
803
917
|
const { inputProps } = useNumberInputContext();
|
|
804
|
-
const mergedProps = (0,
|
|
805
|
-
return /* @__PURE__ */ (0,
|
|
918
|
+
const mergedProps = (0, import_react75.mergeProps)(inputProps, props);
|
|
919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ark.input, {
|
|
806
920
|
...mergedProps,
|
|
807
921
|
ref
|
|
808
922
|
});
|
|
809
923
|
});
|
|
810
924
|
|
|
811
925
|
// src/number-input/number-input-increment-button.tsx
|
|
812
|
-
var
|
|
813
|
-
var
|
|
814
|
-
var
|
|
815
|
-
var NumberInputIncrementButton = (0,
|
|
926
|
+
var import_react76 = require("@polymorphic-factory/react");
|
|
927
|
+
var import_react77 = require("@zag-js/react");
|
|
928
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
929
|
+
var NumberInputIncrementButton = (0, import_react76.forwardRef)(
|
|
816
930
|
(props, ref) => {
|
|
817
931
|
const { incrementButtonProps } = useNumberInputContext();
|
|
818
|
-
const mergedProps = (0,
|
|
819
|
-
return /* @__PURE__ */ (0,
|
|
932
|
+
const mergedProps = (0, import_react77.mergeProps)(incrementButtonProps, props);
|
|
933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ark.button, {
|
|
820
934
|
...mergedProps,
|
|
821
935
|
ref
|
|
822
936
|
});
|
|
@@ -824,8 +938,8 @@ var NumberInputIncrementButton = (0, import_react64.forwardRef)(
|
|
|
824
938
|
);
|
|
825
939
|
|
|
826
940
|
// src/pagination/pagination.tsx
|
|
827
|
-
var
|
|
828
|
-
var
|
|
941
|
+
var import_react80 = require("@polymorphic-factory/react");
|
|
942
|
+
var import_react81 = require("@zag-js/react");
|
|
829
943
|
|
|
830
944
|
// src/run-if-fn.ts
|
|
831
945
|
function runIfFn(valueOrFn, ...args) {
|
|
@@ -841,20 +955,20 @@ var [PaginationProvider, usePaginationContext] = createContext({
|
|
|
841
955
|
|
|
842
956
|
// src/pagination/use-pagination.ts
|
|
843
957
|
var pagination = __toESM(require("@zag-js/pagination"));
|
|
844
|
-
var
|
|
845
|
-
var
|
|
958
|
+
var import_react78 = require("@zag-js/react");
|
|
959
|
+
var import_react79 = require("react");
|
|
846
960
|
var usePagination = (props) => {
|
|
847
961
|
const initialContext = filterUndefinedEntries({
|
|
848
|
-
id: (0,
|
|
962
|
+
id: (0, import_react79.useId)(),
|
|
849
963
|
...props
|
|
850
964
|
});
|
|
851
|
-
const [state, send] = (0,
|
|
852
|
-
return pagination.connect(state, send,
|
|
965
|
+
const [state, send] = (0, import_react78.useMachine)(pagination.machine(initialContext), { context: initialContext });
|
|
966
|
+
return pagination.connect(state, send, import_react78.normalizeProps);
|
|
853
967
|
};
|
|
854
968
|
|
|
855
969
|
// src/pagination/pagination.tsx
|
|
856
|
-
var
|
|
857
|
-
var Pagination = (0,
|
|
970
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
971
|
+
var Pagination = (0, import_react80.forwardRef)((props, ref) => {
|
|
858
972
|
const [paginationProps, { children, ...navProps }] = splitProps(props, [
|
|
859
973
|
"count",
|
|
860
974
|
"dir",
|
|
@@ -868,10 +982,10 @@ var Pagination = (0, import_react68.forwardRef)((props, ref) => {
|
|
|
868
982
|
]);
|
|
869
983
|
const pagination2 = usePagination(paginationProps);
|
|
870
984
|
const view = runIfFn(children, pagination2);
|
|
871
|
-
const mergedProps = (0,
|
|
872
|
-
return /* @__PURE__ */ (0,
|
|
985
|
+
const mergedProps = (0, import_react81.mergeProps)(pagination2.rootProps, navProps);
|
|
986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PaginationProvider, {
|
|
873
987
|
value: pagination2,
|
|
874
|
-
children: /* @__PURE__ */ (0,
|
|
988
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ark.nav, {
|
|
875
989
|
...mergedProps,
|
|
876
990
|
ref,
|
|
877
991
|
children: view
|
|
@@ -880,28 +994,28 @@ var Pagination = (0, import_react68.forwardRef)((props, ref) => {
|
|
|
880
994
|
});
|
|
881
995
|
|
|
882
996
|
// src/pagination/pagination-ellipsis.tsx
|
|
883
|
-
var
|
|
884
|
-
var
|
|
885
|
-
var
|
|
886
|
-
var PaginationEllipsis = (0,
|
|
997
|
+
var import_react82 = require("@polymorphic-factory/react");
|
|
998
|
+
var import_react83 = require("@zag-js/react");
|
|
999
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1000
|
+
var PaginationEllipsis = (0, import_react82.forwardRef)((props, ref) => {
|
|
887
1001
|
const { getEllipsisProps } = usePaginationContext();
|
|
888
1002
|
const [{ index }, spanProps] = splitProps(props, ["index"]);
|
|
889
|
-
const mergedProps = (0,
|
|
890
|
-
return /* @__PURE__ */ (0,
|
|
1003
|
+
const mergedProps = (0, import_react83.mergeProps)(getEllipsisProps({ index }), spanProps);
|
|
1004
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ark.span, {
|
|
891
1005
|
...mergedProps,
|
|
892
1006
|
ref
|
|
893
1007
|
});
|
|
894
1008
|
});
|
|
895
1009
|
|
|
896
1010
|
// src/pagination/pagination-item.tsx
|
|
897
|
-
var
|
|
898
|
-
var
|
|
899
|
-
var
|
|
900
|
-
var PaginationItem = (0,
|
|
1011
|
+
var import_react84 = require("@polymorphic-factory/react");
|
|
1012
|
+
var import_react85 = require("@zag-js/react");
|
|
1013
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1014
|
+
var PaginationItem = (0, import_react84.forwardRef)((props, ref) => {
|
|
901
1015
|
const { getItemProps } = usePaginationContext();
|
|
902
1016
|
const [{ value }, anchorProps] = splitProps(props, ["value"]);
|
|
903
|
-
const mergedProps = (0,
|
|
904
|
-
return /* @__PURE__ */ (0,
|
|
1017
|
+
const mergedProps = (0, import_react85.mergeProps)(getItemProps({ type: "page", value }), anchorProps);
|
|
1018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ark.a, {
|
|
905
1019
|
href: `#${value}`,
|
|
906
1020
|
...mergedProps,
|
|
907
1021
|
ref
|
|
@@ -909,13 +1023,13 @@ var PaginationItem = (0, import_react72.forwardRef)((props, ref) => {
|
|
|
909
1023
|
});
|
|
910
1024
|
|
|
911
1025
|
// src/pagination/pagination-next-item.tsx
|
|
912
|
-
var
|
|
913
|
-
var
|
|
914
|
-
var
|
|
915
|
-
var PaginationNextItem = (0,
|
|
1026
|
+
var import_react86 = require("@polymorphic-factory/react");
|
|
1027
|
+
var import_react87 = require("@zag-js/react");
|
|
1028
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1029
|
+
var PaginationNextItem = (0, import_react86.forwardRef)((props, ref) => {
|
|
916
1030
|
const { nextItemProps } = usePaginationContext();
|
|
917
|
-
const mergedProps = (0,
|
|
918
|
-
return /* @__PURE__ */ (0,
|
|
1031
|
+
const mergedProps = (0, import_react87.mergeProps)(nextItemProps, props);
|
|
1032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ark.a, {
|
|
919
1033
|
href: "#next",
|
|
920
1034
|
...mergedProps,
|
|
921
1035
|
ref
|
|
@@ -923,13 +1037,13 @@ var PaginationNextItem = (0, import_react74.forwardRef)((props, ref) => {
|
|
|
923
1037
|
});
|
|
924
1038
|
|
|
925
1039
|
// src/pagination/pagination-prev-item.tsx
|
|
926
|
-
var
|
|
927
|
-
var
|
|
928
|
-
var
|
|
929
|
-
var PaginationPrevItem = (0,
|
|
1040
|
+
var import_react88 = require("@polymorphic-factory/react");
|
|
1041
|
+
var import_react89 = require("@zag-js/react");
|
|
1042
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1043
|
+
var PaginationPrevItem = (0, import_react88.forwardRef)((props, ref) => {
|
|
930
1044
|
const { prevItemProps } = usePaginationContext();
|
|
931
|
-
const mergedProps = (0,
|
|
932
|
-
return /* @__PURE__ */ (0,
|
|
1045
|
+
const mergedProps = (0, import_react89.mergeProps)(prevItemProps, props);
|
|
1046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ark.a, {
|
|
933
1047
|
href: "#previous",
|
|
934
1048
|
...mergedProps,
|
|
935
1049
|
ref
|
|
@@ -937,8 +1051,8 @@ var PaginationPrevItem = (0, import_react76.forwardRef)((props, ref) => {
|
|
|
937
1051
|
});
|
|
938
1052
|
|
|
939
1053
|
// src/pin-input/pin-input.tsx
|
|
940
|
-
var
|
|
941
|
-
var
|
|
1054
|
+
var import_react92 = require("@polymorphic-factory/react");
|
|
1055
|
+
var import_react93 = require("@zag-js/react");
|
|
942
1056
|
|
|
943
1057
|
// src/pin-input/pin-input-context.ts
|
|
944
1058
|
var [PinInputProvider, usePinInputContext] = createContext({
|
|
@@ -949,11 +1063,11 @@ var [PinInputProvider, usePinInputContext] = createContext({
|
|
|
949
1063
|
|
|
950
1064
|
// src/pin-input/use-pin-input.ts
|
|
951
1065
|
var pinInput = __toESM(require("@zag-js/pin-input"));
|
|
952
|
-
var
|
|
953
|
-
var
|
|
1066
|
+
var import_react90 = require("@zag-js/react");
|
|
1067
|
+
var import_react91 = require("react");
|
|
954
1068
|
var usePinInput = (props) => {
|
|
955
1069
|
const initialContext = filterUndefinedEntries({
|
|
956
|
-
id: (0,
|
|
1070
|
+
id: (0, import_react91.useId)(),
|
|
957
1071
|
...props,
|
|
958
1072
|
value: props.value ?? props.defaultValue ?? []
|
|
959
1073
|
});
|
|
@@ -961,13 +1075,13 @@ var usePinInput = (props) => {
|
|
|
961
1075
|
...initialContext,
|
|
962
1076
|
value: props.value
|
|
963
1077
|
});
|
|
964
|
-
const [state, send] = (0,
|
|
965
|
-
return pinInput.connect(state, send,
|
|
1078
|
+
const [state, send] = (0, import_react90.useMachine)(pinInput.machine(initialContext), { context });
|
|
1079
|
+
return pinInput.connect(state, send, import_react90.normalizeProps);
|
|
966
1080
|
};
|
|
967
1081
|
|
|
968
1082
|
// src/pin-input/pin-input.tsx
|
|
969
|
-
var
|
|
970
|
-
var PinInput = (0,
|
|
1083
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
1084
|
+
var PinInput = (0, import_react92.forwardRef)((props, ref) => {
|
|
971
1085
|
const [usePinInputProps, divProps] = splitProps(props, [
|
|
972
1086
|
"autoFocus",
|
|
973
1087
|
"blurOnComplete",
|
|
@@ -990,10 +1104,10 @@ var PinInput = (0, import_react80.forwardRef)((props, ref) => {
|
|
|
990
1104
|
"value"
|
|
991
1105
|
]);
|
|
992
1106
|
const pinInput2 = usePinInput(usePinInputProps);
|
|
993
|
-
const mergedProps = (0,
|
|
994
|
-
return /* @__PURE__ */ (0,
|
|
1107
|
+
const mergedProps = (0, import_react93.mergeProps)(pinInput2.rootProps, divProps);
|
|
1108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PinInputProvider, {
|
|
995
1109
|
value: pinInput2,
|
|
996
|
-
children: /* @__PURE__ */ (0,
|
|
1110
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ark.div, {
|
|
997
1111
|
...mergedProps,
|
|
998
1112
|
ref
|
|
999
1113
|
})
|
|
@@ -1001,14 +1115,14 @@ var PinInput = (0, import_react80.forwardRef)((props, ref) => {
|
|
|
1001
1115
|
});
|
|
1002
1116
|
|
|
1003
1117
|
// src/pin-input/pin-input-field.tsx
|
|
1004
|
-
var
|
|
1005
|
-
var
|
|
1006
|
-
var
|
|
1007
|
-
var PinInputField = (0,
|
|
1118
|
+
var import_react94 = require("@polymorphic-factory/react");
|
|
1119
|
+
var import_react95 = require("@zag-js/react");
|
|
1120
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1121
|
+
var PinInputField = (0, import_react94.forwardRef)((props, ref) => {
|
|
1008
1122
|
const { index, ...inputProps } = props;
|
|
1009
1123
|
const { getInputProps } = usePinInputContext();
|
|
1010
|
-
const mergedProps = (0,
|
|
1011
|
-
return /* @__PURE__ */ (0,
|
|
1124
|
+
const mergedProps = (0, import_react95.mergeProps)(getInputProps({ index }), inputProps);
|
|
1125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ark.input, {
|
|
1012
1126
|
...mergedProps,
|
|
1013
1127
|
ref
|
|
1014
1128
|
});
|
|
@@ -1023,151 +1137,151 @@ var [PopoverProvider, usePopoverContext] = createContext({
|
|
|
1023
1137
|
|
|
1024
1138
|
// src/popover/use-popover.ts
|
|
1025
1139
|
var popover = __toESM(require("@zag-js/popover"));
|
|
1026
|
-
var
|
|
1027
|
-
var
|
|
1140
|
+
var import_react96 = require("@zag-js/react");
|
|
1141
|
+
var import_react97 = require("react");
|
|
1028
1142
|
var usePopover = (props) => {
|
|
1029
1143
|
const initialContext = filterUndefinedEntries({
|
|
1030
|
-
id: (0,
|
|
1144
|
+
id: (0, import_react97.useId)(),
|
|
1031
1145
|
...props
|
|
1032
1146
|
});
|
|
1033
|
-
const [state, send] = (0,
|
|
1034
|
-
return popover.connect(state, send,
|
|
1147
|
+
const [state, send] = (0, import_react96.useMachine)(popover.machine(initialContext), { context: initialContext });
|
|
1148
|
+
return popover.connect(state, send, import_react96.normalizeProps);
|
|
1035
1149
|
};
|
|
1036
1150
|
|
|
1037
1151
|
// src/popover/popover.tsx
|
|
1038
|
-
var
|
|
1152
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1039
1153
|
var Popover = (props) => {
|
|
1040
1154
|
const { children, ...usePopoverProps } = props;
|
|
1041
1155
|
const popover2 = usePopover(usePopoverProps);
|
|
1042
|
-
return /* @__PURE__ */ (0,
|
|
1156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopoverProvider, {
|
|
1043
1157
|
value: popover2,
|
|
1044
1158
|
children
|
|
1045
1159
|
});
|
|
1046
1160
|
};
|
|
1047
1161
|
|
|
1048
1162
|
// src/popover/popover-arrow.tsx
|
|
1049
|
-
var
|
|
1050
|
-
var
|
|
1051
|
-
var
|
|
1052
|
-
var PopoverArrow = (0,
|
|
1163
|
+
var import_react98 = require("@polymorphic-factory/react");
|
|
1164
|
+
var import_react99 = require("@zag-js/react");
|
|
1165
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1166
|
+
var PopoverArrow = (0, import_react98.forwardRef)((props, ref) => {
|
|
1053
1167
|
const { arrowProps } = usePopoverContext();
|
|
1054
|
-
const mergedProps = (0,
|
|
1055
|
-
return /* @__PURE__ */ (0,
|
|
1168
|
+
const mergedProps = (0, import_react99.mergeProps)(arrowProps, props);
|
|
1169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ark.div, {
|
|
1056
1170
|
...mergedProps,
|
|
1057
1171
|
ref
|
|
1058
1172
|
});
|
|
1059
1173
|
});
|
|
1060
1174
|
|
|
1061
1175
|
// src/popover/popover-close-button.tsx
|
|
1062
|
-
var
|
|
1063
|
-
var
|
|
1064
|
-
var
|
|
1065
|
-
var PopoverCloseButton = (0,
|
|
1176
|
+
var import_react100 = require("@polymorphic-factory/react");
|
|
1177
|
+
var import_react101 = require("@zag-js/react");
|
|
1178
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1179
|
+
var PopoverCloseButton = (0, import_react100.forwardRef)((props, ref) => {
|
|
1066
1180
|
const { closeButtonProps } = usePopoverContext();
|
|
1067
|
-
const mergedProps = (0,
|
|
1068
|
-
return /* @__PURE__ */ (0,
|
|
1181
|
+
const mergedProps = (0, import_react101.mergeProps)(closeButtonProps, props);
|
|
1182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ark.button, {
|
|
1069
1183
|
...mergedProps,
|
|
1070
1184
|
ref
|
|
1071
1185
|
});
|
|
1072
1186
|
});
|
|
1073
1187
|
|
|
1074
1188
|
// src/popover/popover-content.tsx
|
|
1075
|
-
var
|
|
1076
|
-
var
|
|
1077
|
-
var
|
|
1078
|
-
var PopoverContent = (0,
|
|
1189
|
+
var import_react102 = require("@polymorphic-factory/react");
|
|
1190
|
+
var import_react103 = require("@zag-js/react");
|
|
1191
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1192
|
+
var PopoverContent = (0, import_react102.forwardRef)((props, ref) => {
|
|
1079
1193
|
const { contentProps } = usePopoverContext();
|
|
1080
|
-
const mergedProps = (0,
|
|
1081
|
-
return /* @__PURE__ */ (0,
|
|
1194
|
+
const mergedProps = (0, import_react103.mergeProps)(contentProps, props);
|
|
1195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ark.div, {
|
|
1082
1196
|
...mergedProps,
|
|
1083
1197
|
ref
|
|
1084
1198
|
});
|
|
1085
1199
|
});
|
|
1086
1200
|
|
|
1087
1201
|
// src/popover/popover-description.tsx
|
|
1088
|
-
var
|
|
1089
|
-
var
|
|
1090
|
-
var
|
|
1091
|
-
var PopoverDescription = (0,
|
|
1202
|
+
var import_react104 = require("@polymorphic-factory/react");
|
|
1203
|
+
var import_react105 = require("@zag-js/react");
|
|
1204
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1205
|
+
var PopoverDescription = (0, import_react104.forwardRef)((props, ref) => {
|
|
1092
1206
|
const { descriptionProps } = usePopoverContext();
|
|
1093
|
-
const mergedProps = (0,
|
|
1094
|
-
return /* @__PURE__ */ (0,
|
|
1207
|
+
const mergedProps = (0, import_react105.mergeProps)(descriptionProps, props);
|
|
1208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ark.div, {
|
|
1095
1209
|
...mergedProps,
|
|
1096
1210
|
ref
|
|
1097
1211
|
});
|
|
1098
1212
|
});
|
|
1099
1213
|
|
|
1100
1214
|
// src/popover/popover-inner-arrow.tsx
|
|
1101
|
-
var
|
|
1102
|
-
var
|
|
1103
|
-
var
|
|
1104
|
-
var PopoverInnerArrow = (0,
|
|
1215
|
+
var import_react106 = require("@polymorphic-factory/react");
|
|
1216
|
+
var import_react107 = require("@zag-js/react");
|
|
1217
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1218
|
+
var PopoverInnerArrow = (0, import_react106.forwardRef)((props, ref) => {
|
|
1105
1219
|
const { innerArrowProps } = usePopoverContext();
|
|
1106
|
-
const mergedProps = (0,
|
|
1107
|
-
return /* @__PURE__ */ (0,
|
|
1220
|
+
const mergedProps = (0, import_react107.mergeProps)(innerArrowProps, props);
|
|
1221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ark.div, {
|
|
1108
1222
|
...mergedProps,
|
|
1109
1223
|
ref
|
|
1110
1224
|
});
|
|
1111
1225
|
});
|
|
1112
1226
|
|
|
1113
1227
|
// src/popover/popover-positioner.tsx
|
|
1114
|
-
var
|
|
1115
|
-
var
|
|
1116
|
-
var
|
|
1117
|
-
var PopoverPositioner = (0,
|
|
1228
|
+
var import_react108 = require("@polymorphic-factory/react");
|
|
1229
|
+
var import_react109 = require("@zag-js/react");
|
|
1230
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1231
|
+
var PopoverPositioner = (0, import_react108.forwardRef)((props, ref) => {
|
|
1118
1232
|
const { positionerProps } = usePopoverContext();
|
|
1119
|
-
const mergedProps = (0,
|
|
1120
|
-
return /* @__PURE__ */ (0,
|
|
1233
|
+
const mergedProps = (0, import_react109.mergeProps)(positionerProps, props);
|
|
1234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ark.div, {
|
|
1121
1235
|
...mergedProps,
|
|
1122
1236
|
ref
|
|
1123
1237
|
});
|
|
1124
1238
|
});
|
|
1125
1239
|
|
|
1126
1240
|
// src/popover/popover-title.tsx
|
|
1127
|
-
var
|
|
1128
|
-
var
|
|
1129
|
-
var
|
|
1130
|
-
var PopoverTitle = (0,
|
|
1241
|
+
var import_react110 = require("@polymorphic-factory/react");
|
|
1242
|
+
var import_react111 = require("@zag-js/react");
|
|
1243
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
1244
|
+
var PopoverTitle = (0, import_react110.forwardRef)((props, ref) => {
|
|
1131
1245
|
const { titleProps } = usePopoverContext();
|
|
1132
|
-
const mergedProps = (0,
|
|
1133
|
-
return /* @__PURE__ */ (0,
|
|
1246
|
+
const mergedProps = (0, import_react111.mergeProps)(titleProps, props);
|
|
1247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ark.div, {
|
|
1134
1248
|
...mergedProps,
|
|
1135
1249
|
ref
|
|
1136
1250
|
});
|
|
1137
1251
|
});
|
|
1138
1252
|
|
|
1139
1253
|
// src/popover/popover-trigger.tsx
|
|
1140
|
-
var
|
|
1141
|
-
var
|
|
1254
|
+
var import_react112 = require("react");
|
|
1255
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
1142
1256
|
var PopoverTrigger = (props) => {
|
|
1143
1257
|
const { children } = props;
|
|
1144
1258
|
const { triggerProps } = usePopoverContext();
|
|
1145
|
-
return typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ (0,
|
|
1259
|
+
return typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ark.span, {
|
|
1146
1260
|
...triggerProps,
|
|
1147
1261
|
children
|
|
1148
|
-
}) : (0,
|
|
1262
|
+
}) : (0, import_react112.cloneElement)(children, triggerProps);
|
|
1149
1263
|
};
|
|
1150
1264
|
|
|
1151
1265
|
// src/pressable/pressable.tsx
|
|
1152
|
-
var
|
|
1153
|
-
var
|
|
1266
|
+
var import_react115 = require("@polymorphic-factory/react");
|
|
1267
|
+
var import_react116 = require("@zag-js/react");
|
|
1154
1268
|
|
|
1155
1269
|
// src/pressable/use-pressable.tsx
|
|
1156
1270
|
var pressable = __toESM(require("@zag-js/pressable"));
|
|
1157
|
-
var
|
|
1158
|
-
var
|
|
1271
|
+
var import_react113 = require("@zag-js/react");
|
|
1272
|
+
var import_react114 = require("react");
|
|
1159
1273
|
var usePressable = (props) => {
|
|
1160
1274
|
const initialContext = filterUndefinedEntries({
|
|
1161
|
-
id: (0,
|
|
1275
|
+
id: (0, import_react114.useId)(),
|
|
1162
1276
|
...props
|
|
1163
1277
|
});
|
|
1164
|
-
const [state, send] = (0,
|
|
1165
|
-
return pressable.connect(state, send,
|
|
1278
|
+
const [state, send] = (0, import_react113.useMachine)(pressable.machine(initialContext), { context: initialContext });
|
|
1279
|
+
return pressable.connect(state, send, import_react113.normalizeProps);
|
|
1166
1280
|
};
|
|
1167
1281
|
|
|
1168
1282
|
// src/pressable/pressable.tsx
|
|
1169
|
-
var
|
|
1170
|
-
var Pressable = (0,
|
|
1283
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
1284
|
+
var Pressable = (0, import_react115.forwardRef)((props, ref) => {
|
|
1171
1285
|
const [usePressableProps, divProps] = splitProps(props, [
|
|
1172
1286
|
"allowTextSelectionOnPress",
|
|
1173
1287
|
"cancelOnPointerExit",
|
|
@@ -1182,16 +1296,16 @@ var Pressable = (0, import_react103.forwardRef)((props, ref) => {
|
|
|
1182
1296
|
"preventFocusOnPress"
|
|
1183
1297
|
]);
|
|
1184
1298
|
const { pressableProps } = usePressable(usePressableProps);
|
|
1185
|
-
const mergedProps = (0,
|
|
1186
|
-
return /* @__PURE__ */ (0,
|
|
1299
|
+
const mergedProps = (0, import_react116.mergeProps)(pressableProps, divProps);
|
|
1300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ark.button, {
|
|
1187
1301
|
...mergedProps,
|
|
1188
1302
|
ref
|
|
1189
1303
|
});
|
|
1190
1304
|
});
|
|
1191
1305
|
|
|
1192
1306
|
// src/radio-group/radio.tsx
|
|
1193
|
-
var
|
|
1194
|
-
var
|
|
1307
|
+
var import_react117 = require("@polymorphic-factory/react");
|
|
1308
|
+
var import_react118 = require("@zag-js/react");
|
|
1195
1309
|
|
|
1196
1310
|
// src/radio-group/radio-context.ts
|
|
1197
1311
|
var [RadioProvider, useRadioContext] = createContext({
|
|
@@ -1208,14 +1322,14 @@ var [RadioGroupProvider, useRadioGroupContext] = createContext({
|
|
|
1208
1322
|
});
|
|
1209
1323
|
|
|
1210
1324
|
// src/radio-group/radio.tsx
|
|
1211
|
-
var
|
|
1212
|
-
var Radio = (0,
|
|
1325
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
1326
|
+
var Radio = (0, import_react117.forwardRef)((props, ref) => {
|
|
1213
1327
|
const { value, disabled, invalid, readonly, ...divProps } = props;
|
|
1214
1328
|
const { getItemProps } = useRadioGroupContext();
|
|
1215
|
-
const mergedProps = (0,
|
|
1216
|
-
return /* @__PURE__ */ (0,
|
|
1329
|
+
const mergedProps = (0, import_react118.mergeProps)(getItemProps({ value, disabled }), divProps);
|
|
1330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(RadioProvider, {
|
|
1217
1331
|
value: { value, disabled, invalid, readonly },
|
|
1218
|
-
children: /* @__PURE__ */ (0,
|
|
1332
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ark.label, {
|
|
1219
1333
|
...mergedProps,
|
|
1220
1334
|
ref
|
|
1221
1335
|
})
|
|
@@ -1223,30 +1337,30 @@ var Radio = (0, import_react105.forwardRef)((props, ref) => {
|
|
|
1223
1337
|
});
|
|
1224
1338
|
|
|
1225
1339
|
// src/radio-group/radio-control.tsx
|
|
1226
|
-
var
|
|
1227
|
-
var
|
|
1228
|
-
var
|
|
1229
|
-
var RadioControl = (0,
|
|
1340
|
+
var import_react119 = require("@polymorphic-factory/react");
|
|
1341
|
+
var import_react120 = require("@zag-js/react");
|
|
1342
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
1343
|
+
var RadioControl = (0, import_react119.forwardRef)((props, ref) => {
|
|
1230
1344
|
const { getItemControlProps } = useRadioGroupContext();
|
|
1231
1345
|
const context = useRadioContext();
|
|
1232
|
-
const mergedProps = (0,
|
|
1233
|
-
return /* @__PURE__ */ (0,
|
|
1346
|
+
const mergedProps = (0, import_react120.mergeProps)(getItemControlProps(context), props);
|
|
1347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ark.div, {
|
|
1234
1348
|
...mergedProps,
|
|
1235
1349
|
ref
|
|
1236
1350
|
});
|
|
1237
1351
|
});
|
|
1238
1352
|
|
|
1239
1353
|
// src/radio-group/radio-group.tsx
|
|
1240
|
-
var
|
|
1241
|
-
var
|
|
1354
|
+
var import_react123 = require("@polymorphic-factory/react");
|
|
1355
|
+
var import_react124 = require("@zag-js/react");
|
|
1242
1356
|
|
|
1243
1357
|
// src/radio-group/use-radio-group.tsx
|
|
1244
1358
|
var radio = __toESM(require("@zag-js/radio"));
|
|
1245
|
-
var
|
|
1246
|
-
var
|
|
1359
|
+
var import_react121 = require("@zag-js/react");
|
|
1360
|
+
var import_react122 = require("react");
|
|
1247
1361
|
var useRadioGroup = (props) => {
|
|
1248
1362
|
const initialContext = filterUndefinedEntries({
|
|
1249
|
-
id: (0,
|
|
1363
|
+
id: (0, import_react122.useId)(),
|
|
1250
1364
|
...props,
|
|
1251
1365
|
value: props.value ?? props.defaultValue
|
|
1252
1366
|
});
|
|
@@ -1254,15 +1368,15 @@ var useRadioGroup = (props) => {
|
|
|
1254
1368
|
...initialContext,
|
|
1255
1369
|
value: props.value
|
|
1256
1370
|
});
|
|
1257
|
-
const [state, send] = (0,
|
|
1371
|
+
const [state, send] = (0, import_react121.useMachine)(radio.machine(initialContext), {
|
|
1258
1372
|
context
|
|
1259
1373
|
});
|
|
1260
|
-
return radio.connect(state, send,
|
|
1374
|
+
return radio.connect(state, send, import_react121.normalizeProps);
|
|
1261
1375
|
};
|
|
1262
1376
|
|
|
1263
1377
|
// src/radio-group/radio-group.tsx
|
|
1264
|
-
var
|
|
1265
|
-
var RadioGroup = (0,
|
|
1378
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
1379
|
+
var RadioGroup = (0, import_react123.forwardRef)((props, ref) => {
|
|
1266
1380
|
const [useRadioGroupProps, divProps] = splitProps(props, [
|
|
1267
1381
|
"defaultValue",
|
|
1268
1382
|
"dir",
|
|
@@ -1276,10 +1390,10 @@ var RadioGroup = (0, import_react111.forwardRef)((props, ref) => {
|
|
|
1276
1390
|
"value"
|
|
1277
1391
|
]);
|
|
1278
1392
|
const radioGroup = useRadioGroup(useRadioGroupProps);
|
|
1279
|
-
const mergedProps = (0,
|
|
1280
|
-
return /* @__PURE__ */ (0,
|
|
1393
|
+
const mergedProps = (0, import_react124.mergeProps)(radioGroup.rootProps, divProps);
|
|
1394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(RadioGroupProvider, {
|
|
1281
1395
|
value: radioGroup,
|
|
1282
|
-
children: /* @__PURE__ */ (0,
|
|
1396
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ark.div, {
|
|
1283
1397
|
...mergedProps,
|
|
1284
1398
|
ref
|
|
1285
1399
|
})
|
|
@@ -1287,49 +1401,49 @@ var RadioGroup = (0, import_react111.forwardRef)((props, ref) => {
|
|
|
1287
1401
|
});
|
|
1288
1402
|
|
|
1289
1403
|
// src/radio-group/radio-group-label.tsx
|
|
1290
|
-
var
|
|
1291
|
-
var
|
|
1292
|
-
var
|
|
1293
|
-
var RadioGroupLabel = (0,
|
|
1404
|
+
var import_react125 = require("@polymorphic-factory/react");
|
|
1405
|
+
var import_react126 = require("@zag-js/react");
|
|
1406
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
1407
|
+
var RadioGroupLabel = (0, import_react125.forwardRef)((props, ref) => {
|
|
1294
1408
|
const { labelProps } = useRadioGroupContext();
|
|
1295
|
-
const mergedProps = (0,
|
|
1296
|
-
return /* @__PURE__ */ (0,
|
|
1409
|
+
const mergedProps = (0, import_react126.mergeProps)(labelProps, props);
|
|
1410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ark.label, {
|
|
1297
1411
|
...mergedProps,
|
|
1298
1412
|
ref
|
|
1299
1413
|
});
|
|
1300
1414
|
});
|
|
1301
1415
|
|
|
1302
1416
|
// src/radio-group/radio-input.tsx
|
|
1303
|
-
var
|
|
1304
|
-
var
|
|
1305
|
-
var
|
|
1306
|
-
var RadioInput = (0,
|
|
1417
|
+
var import_react127 = require("@polymorphic-factory/react");
|
|
1418
|
+
var import_react128 = require("@zag-js/react");
|
|
1419
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
1420
|
+
var RadioInput = (0, import_react127.forwardRef)((props, ref) => {
|
|
1307
1421
|
const { getItemInputProps } = useRadioGroupContext();
|
|
1308
1422
|
const context = useRadioContext();
|
|
1309
|
-
const mergedProps = (0,
|
|
1310
|
-
return /* @__PURE__ */ (0,
|
|
1423
|
+
const mergedProps = (0, import_react128.mergeProps)(getItemInputProps(context), props);
|
|
1424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ark.input, {
|
|
1311
1425
|
...mergedProps,
|
|
1312
1426
|
ref
|
|
1313
1427
|
});
|
|
1314
1428
|
});
|
|
1315
1429
|
|
|
1316
1430
|
// src/radio-group/radio-label.tsx
|
|
1317
|
-
var
|
|
1318
|
-
var
|
|
1319
|
-
var
|
|
1320
|
-
var RadioLabel = (0,
|
|
1431
|
+
var import_react129 = require("@polymorphic-factory/react");
|
|
1432
|
+
var import_react130 = require("@zag-js/react");
|
|
1433
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
1434
|
+
var RadioLabel = (0, import_react129.forwardRef)((props, ref) => {
|
|
1321
1435
|
const { getItemLabelProps } = useRadioGroupContext();
|
|
1322
1436
|
const context = useRadioContext();
|
|
1323
|
-
const mergedProps = (0,
|
|
1324
|
-
return /* @__PURE__ */ (0,
|
|
1437
|
+
const mergedProps = (0, import_react130.mergeProps)(getItemLabelProps(context), props);
|
|
1438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ark.span, {
|
|
1325
1439
|
...mergedProps,
|
|
1326
1440
|
ref
|
|
1327
1441
|
});
|
|
1328
1442
|
});
|
|
1329
1443
|
|
|
1330
1444
|
// src/rating/rating.tsx
|
|
1331
|
-
var
|
|
1332
|
-
var
|
|
1445
|
+
var import_react133 = require("@polymorphic-factory/react");
|
|
1446
|
+
var import_react134 = require("@zag-js/react");
|
|
1333
1447
|
|
|
1334
1448
|
// src/rating/rating-context.ts
|
|
1335
1449
|
var [RatingProvider, useRatingContext] = createContext({
|
|
@@ -1340,11 +1454,11 @@ var [RatingProvider, useRatingContext] = createContext({
|
|
|
1340
1454
|
|
|
1341
1455
|
// src/rating/use-rating.tsx
|
|
1342
1456
|
var rating = __toESM(require("@zag-js/rating"));
|
|
1343
|
-
var
|
|
1344
|
-
var
|
|
1457
|
+
var import_react131 = require("@zag-js/react");
|
|
1458
|
+
var import_react132 = require("react");
|
|
1345
1459
|
var useRating = (props) => {
|
|
1346
1460
|
const initialContext = filterUndefinedEntries({
|
|
1347
|
-
id: (0,
|
|
1461
|
+
id: (0, import_react132.useId)(),
|
|
1348
1462
|
...props,
|
|
1349
1463
|
value: props.value ?? props.defaultValue
|
|
1350
1464
|
});
|
|
@@ -1352,15 +1466,15 @@ var useRating = (props) => {
|
|
|
1352
1466
|
...initialContext,
|
|
1353
1467
|
value: props.value
|
|
1354
1468
|
});
|
|
1355
|
-
const [state, send] = (0,
|
|
1469
|
+
const [state, send] = (0, import_react131.useMachine)(rating.machine(initialContext), {
|
|
1356
1470
|
context
|
|
1357
1471
|
});
|
|
1358
|
-
return rating.connect(state, send,
|
|
1472
|
+
return rating.connect(state, send, import_react131.normalizeProps);
|
|
1359
1473
|
};
|
|
1360
1474
|
|
|
1361
1475
|
// src/rating/rating.tsx
|
|
1362
|
-
var
|
|
1363
|
-
var Rating = (0,
|
|
1476
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
1477
|
+
var Rating = (0, import_react133.forwardRef)((props, ref) => {
|
|
1364
1478
|
const [useRatingProps, divProps] = splitProps(props, [
|
|
1365
1479
|
"allowHalf",
|
|
1366
1480
|
"autoFocus",
|
|
@@ -1378,14 +1492,14 @@ var Rating = (0, import_react121.forwardRef)((props, ref) => {
|
|
|
1378
1492
|
"value"
|
|
1379
1493
|
]);
|
|
1380
1494
|
const rating2 = useRating(useRatingProps);
|
|
1381
|
-
const mergedProps = (0,
|
|
1382
|
-
return /* @__PURE__ */ (0,
|
|
1495
|
+
const mergedProps = (0, import_react134.mergeProps)(rating2.rootProps, divProps);
|
|
1496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(RatingProvider, {
|
|
1383
1497
|
value: rating2,
|
|
1384
|
-
children: /* @__PURE__ */ (0,
|
|
1498
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(ark.div, {
|
|
1385
1499
|
...mergedProps,
|
|
1386
1500
|
children: [
|
|
1387
1501
|
props.children,
|
|
1388
|
-
/* @__PURE__ */ (0,
|
|
1502
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ark.input, {
|
|
1389
1503
|
...rating2.inputProps,
|
|
1390
1504
|
ref
|
|
1391
1505
|
})
|
|
@@ -1395,15 +1509,15 @@ var Rating = (0, import_react121.forwardRef)((props, ref) => {
|
|
|
1395
1509
|
});
|
|
1396
1510
|
|
|
1397
1511
|
// src/rating/rating-group.tsx
|
|
1398
|
-
var
|
|
1399
|
-
var
|
|
1400
|
-
var
|
|
1401
|
-
var RatingGroup = (0,
|
|
1512
|
+
var import_react135 = require("@polymorphic-factory/react");
|
|
1513
|
+
var import_react136 = require("@zag-js/react");
|
|
1514
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
1515
|
+
var RatingGroup = (0, import_react135.forwardRef)((props, ref) => {
|
|
1402
1516
|
const { children, ...divProps } = props;
|
|
1403
1517
|
const api = useRatingContext();
|
|
1404
1518
|
const renderPropResult = typeof children === "function" ? children(api) : children;
|
|
1405
|
-
const mergedProps = (0,
|
|
1406
|
-
return /* @__PURE__ */ (0,
|
|
1519
|
+
const mergedProps = (0, import_react136.mergeProps)(api.itemGroupProps, divProps);
|
|
1520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ark.div, {
|
|
1407
1521
|
...mergedProps,
|
|
1408
1522
|
ref,
|
|
1409
1523
|
children: renderPropResult
|
|
@@ -1411,8 +1525,8 @@ var RatingGroup = (0, import_react123.forwardRef)((props, ref) => {
|
|
|
1411
1525
|
});
|
|
1412
1526
|
|
|
1413
1527
|
// src/rating/rating-item.tsx
|
|
1414
|
-
var
|
|
1415
|
-
var
|
|
1528
|
+
var import_react137 = require("@polymorphic-factory/react");
|
|
1529
|
+
var import_react138 = require("@zag-js/react");
|
|
1416
1530
|
|
|
1417
1531
|
// src/rating/rating-item-context.ts
|
|
1418
1532
|
var [RatingItemProvider, useRatingItemContext] = createContext({
|
|
@@ -1422,17 +1536,17 @@ var [RatingItemProvider, useRatingItemContext] = createContext({
|
|
|
1422
1536
|
});
|
|
1423
1537
|
|
|
1424
1538
|
// src/rating/rating-item.tsx
|
|
1425
|
-
var
|
|
1426
|
-
var RatingItem = (0,
|
|
1539
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
1540
|
+
var RatingItem = (0, import_react137.forwardRef)((props, ref) => {
|
|
1427
1541
|
const { children, index, ...divProps } = props;
|
|
1428
1542
|
const { getRatingState, getItemProps } = useRatingContext();
|
|
1429
1543
|
const state = getRatingState(index);
|
|
1430
1544
|
const icon = typeof children === "function" ? children(state) : children;
|
|
1431
|
-
const mergedProps = (0,
|
|
1432
|
-
return /* @__PURE__ */ (0,
|
|
1545
|
+
const mergedProps = (0, import_react138.mergeProps)(getItemProps({ index }), divProps);
|
|
1546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ark.span, {
|
|
1433
1547
|
...mergedProps,
|
|
1434
1548
|
ref,
|
|
1435
|
-
children: /* @__PURE__ */ (0,
|
|
1549
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(RatingItemProvider, {
|
|
1436
1550
|
value: state,
|
|
1437
1551
|
children: icon
|
|
1438
1552
|
})
|
|
@@ -1440,21 +1554,21 @@ var RatingItem = (0, import_react125.forwardRef)((props, ref) => {
|
|
|
1440
1554
|
});
|
|
1441
1555
|
|
|
1442
1556
|
// src/rating/rating-label.tsx
|
|
1443
|
-
var
|
|
1444
|
-
var
|
|
1445
|
-
var
|
|
1446
|
-
var RatingLabel = (0,
|
|
1557
|
+
var import_react139 = require("@polymorphic-factory/react");
|
|
1558
|
+
var import_react140 = require("@zag-js/react");
|
|
1559
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
1560
|
+
var RatingLabel = (0, import_react139.forwardRef)((props, ref) => {
|
|
1447
1561
|
const { labelProps } = useRatingContext();
|
|
1448
|
-
const mergedProps = (0,
|
|
1449
|
-
return /* @__PURE__ */ (0,
|
|
1562
|
+
const mergedProps = (0, import_react140.mergeProps)(labelProps, props);
|
|
1563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ark.label, {
|
|
1450
1564
|
...mergedProps,
|
|
1451
1565
|
ref
|
|
1452
1566
|
});
|
|
1453
1567
|
});
|
|
1454
1568
|
|
|
1455
1569
|
// src/slider/slider.tsx
|
|
1456
|
-
var
|
|
1457
|
-
var
|
|
1570
|
+
var import_react143 = require("@polymorphic-factory/react");
|
|
1571
|
+
var import_react144 = require("@zag-js/react");
|
|
1458
1572
|
|
|
1459
1573
|
// src/slider/slider-context.ts
|
|
1460
1574
|
var [SliderProvider, useSliderContext] = createContext({
|
|
@@ -1464,21 +1578,21 @@ var [SliderProvider, useSliderContext] = createContext({
|
|
|
1464
1578
|
});
|
|
1465
1579
|
|
|
1466
1580
|
// src/slider/use-slider.ts
|
|
1467
|
-
var
|
|
1581
|
+
var import_react141 = require("@zag-js/react");
|
|
1468
1582
|
var slider = __toESM(require("@zag-js/slider"));
|
|
1469
|
-
var
|
|
1583
|
+
var import_react142 = require("react");
|
|
1470
1584
|
var useSlider = (props) => {
|
|
1471
1585
|
const initialContext = filterUndefinedEntries({
|
|
1472
|
-
id: (0,
|
|
1586
|
+
id: (0, import_react142.useId)(),
|
|
1473
1587
|
...props
|
|
1474
1588
|
});
|
|
1475
|
-
const [state, send] = (0,
|
|
1476
|
-
return slider.connect(state, send,
|
|
1589
|
+
const [state, send] = (0, import_react141.useMachine)(slider.machine(initialContext), { context: initialContext });
|
|
1590
|
+
return slider.connect(state, send, import_react141.normalizeProps);
|
|
1477
1591
|
};
|
|
1478
1592
|
|
|
1479
1593
|
// src/slider/slider.tsx
|
|
1480
|
-
var
|
|
1481
|
-
var Slider = (0,
|
|
1594
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
1595
|
+
var Slider = (0, import_react143.forwardRef)((props, ref) => {
|
|
1482
1596
|
const [useSliderProps, divProps] = splitProps(props, [
|
|
1483
1597
|
"aria-label",
|
|
1484
1598
|
"aria-labelledby",
|
|
@@ -1503,10 +1617,10 @@ var Slider = (0, import_react131.forwardRef)((props, ref) => {
|
|
|
1503
1617
|
"value"
|
|
1504
1618
|
]);
|
|
1505
1619
|
const slider2 = useSlider(useSliderProps);
|
|
1506
|
-
const mergedProps = (0,
|
|
1507
|
-
return /* @__PURE__ */ (0,
|
|
1620
|
+
const mergedProps = (0, import_react144.mergeProps)(slider2.rootProps, divProps);
|
|
1621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(SliderProvider, {
|
|
1508
1622
|
value: slider2,
|
|
1509
|
-
children: /* @__PURE__ */ (0,
|
|
1623
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ark.div, {
|
|
1510
1624
|
...mergedProps,
|
|
1511
1625
|
ref
|
|
1512
1626
|
})
|
|
@@ -1514,99 +1628,99 @@ var Slider = (0, import_react131.forwardRef)((props, ref) => {
|
|
|
1514
1628
|
});
|
|
1515
1629
|
|
|
1516
1630
|
// src/slider/slider-control.tsx
|
|
1517
|
-
var
|
|
1518
|
-
var
|
|
1519
|
-
var
|
|
1520
|
-
var SliderControl = (0,
|
|
1631
|
+
var import_react145 = require("@polymorphic-factory/react");
|
|
1632
|
+
var import_react146 = require("@zag-js/react");
|
|
1633
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
1634
|
+
var SliderControl = (0, import_react145.forwardRef)((props, ref) => {
|
|
1521
1635
|
const { controlProps } = useSliderContext();
|
|
1522
|
-
const mergedProps = (0,
|
|
1523
|
-
return /* @__PURE__ */ (0,
|
|
1636
|
+
const mergedProps = (0, import_react146.mergeProps)(controlProps, props);
|
|
1637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ark.div, {
|
|
1524
1638
|
...mergedProps,
|
|
1525
1639
|
ref
|
|
1526
1640
|
});
|
|
1527
1641
|
});
|
|
1528
1642
|
|
|
1529
1643
|
// src/slider/slider-input.tsx
|
|
1530
|
-
var
|
|
1531
|
-
var
|
|
1532
|
-
var
|
|
1533
|
-
var SliderInput = (0,
|
|
1644
|
+
var import_react147 = require("@polymorphic-factory/react");
|
|
1645
|
+
var import_react148 = require("@zag-js/react");
|
|
1646
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
1647
|
+
var SliderInput = (0, import_react147.forwardRef)((props, ref) => {
|
|
1534
1648
|
const { inputProps } = useSliderContext();
|
|
1535
|
-
const mergedProps = (0,
|
|
1536
|
-
return /* @__PURE__ */ (0,
|
|
1649
|
+
const mergedProps = (0, import_react148.mergeProps)(inputProps, props);
|
|
1650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ark.input, {
|
|
1537
1651
|
...mergedProps,
|
|
1538
1652
|
ref
|
|
1539
1653
|
});
|
|
1540
1654
|
});
|
|
1541
1655
|
|
|
1542
1656
|
// src/slider/slider-label.tsx
|
|
1543
|
-
var
|
|
1544
|
-
var
|
|
1545
|
-
var
|
|
1546
|
-
var SliderLabel = (0,
|
|
1657
|
+
var import_react149 = require("@polymorphic-factory/react");
|
|
1658
|
+
var import_react150 = require("@zag-js/react");
|
|
1659
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
1660
|
+
var SliderLabel = (0, import_react149.forwardRef)((props, ref) => {
|
|
1547
1661
|
const { labelProps } = useSliderContext();
|
|
1548
|
-
const mergedProps = (0,
|
|
1549
|
-
return /* @__PURE__ */ (0,
|
|
1662
|
+
const mergedProps = (0, import_react150.mergeProps)(labelProps, props);
|
|
1663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ark.label, {
|
|
1550
1664
|
...mergedProps,
|
|
1551
1665
|
ref
|
|
1552
1666
|
});
|
|
1553
1667
|
});
|
|
1554
1668
|
|
|
1555
1669
|
// src/slider/slider-output.tsx
|
|
1556
|
-
var
|
|
1557
|
-
var
|
|
1558
|
-
var
|
|
1559
|
-
var SliderOutput = (0,
|
|
1670
|
+
var import_react151 = require("@polymorphic-factory/react");
|
|
1671
|
+
var import_react152 = require("@zag-js/react");
|
|
1672
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
1673
|
+
var SliderOutput = (0, import_react151.forwardRef)((props, ref) => {
|
|
1560
1674
|
const { outputProps } = useSliderContext();
|
|
1561
|
-
const mergedProps = (0,
|
|
1562
|
-
return /* @__PURE__ */ (0,
|
|
1675
|
+
const mergedProps = (0, import_react152.mergeProps)(outputProps, props);
|
|
1676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ark.output, {
|
|
1563
1677
|
...mergedProps,
|
|
1564
1678
|
ref
|
|
1565
1679
|
});
|
|
1566
1680
|
});
|
|
1567
1681
|
|
|
1568
1682
|
// src/slider/slider-range.tsx
|
|
1569
|
-
var
|
|
1570
|
-
var
|
|
1571
|
-
var
|
|
1572
|
-
var SliderRange = (0,
|
|
1683
|
+
var import_react153 = require("@polymorphic-factory/react");
|
|
1684
|
+
var import_react154 = require("@zag-js/react");
|
|
1685
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
1686
|
+
var SliderRange = (0, import_react153.forwardRef)((props, ref) => {
|
|
1573
1687
|
const { rangeProps } = useSliderContext();
|
|
1574
|
-
const mergedProps = (0,
|
|
1575
|
-
return /* @__PURE__ */ (0,
|
|
1688
|
+
const mergedProps = (0, import_react154.mergeProps)(rangeProps, props);
|
|
1689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ark.div, {
|
|
1576
1690
|
...mergedProps,
|
|
1577
1691
|
ref
|
|
1578
1692
|
});
|
|
1579
1693
|
});
|
|
1580
1694
|
|
|
1581
1695
|
// src/slider/slider-thumb.tsx
|
|
1582
|
-
var
|
|
1583
|
-
var
|
|
1584
|
-
var
|
|
1585
|
-
var SliderThumb = (0,
|
|
1696
|
+
var import_react155 = require("@polymorphic-factory/react");
|
|
1697
|
+
var import_react156 = require("@zag-js/react");
|
|
1698
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
1699
|
+
var SliderThumb = (0, import_react155.forwardRef)((props, ref) => {
|
|
1586
1700
|
const { thumbProps } = useSliderContext();
|
|
1587
|
-
const mergedProps = (0,
|
|
1588
|
-
return /* @__PURE__ */ (0,
|
|
1701
|
+
const mergedProps = (0, import_react156.mergeProps)(thumbProps, props);
|
|
1702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ark.div, {
|
|
1589
1703
|
...mergedProps,
|
|
1590
1704
|
ref
|
|
1591
1705
|
});
|
|
1592
1706
|
});
|
|
1593
1707
|
|
|
1594
1708
|
// src/slider/slider-track.tsx
|
|
1595
|
-
var
|
|
1596
|
-
var
|
|
1597
|
-
var
|
|
1598
|
-
var SliderTrack = (0,
|
|
1709
|
+
var import_react157 = require("@polymorphic-factory/react");
|
|
1710
|
+
var import_react158 = require("@zag-js/react");
|
|
1711
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
1712
|
+
var SliderTrack = (0, import_react157.forwardRef)((props, ref) => {
|
|
1599
1713
|
const { trackProps } = useSliderContext();
|
|
1600
|
-
const mergedProps = (0,
|
|
1601
|
-
return /* @__PURE__ */ (0,
|
|
1714
|
+
const mergedProps = (0, import_react158.mergeProps)(trackProps, props);
|
|
1715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ark.div, {
|
|
1602
1716
|
...mergedProps,
|
|
1603
1717
|
ref
|
|
1604
1718
|
});
|
|
1605
1719
|
});
|
|
1606
1720
|
|
|
1607
1721
|
// src/tabs/tab.tsx
|
|
1608
|
-
var
|
|
1609
|
-
var
|
|
1722
|
+
var import_react159 = require("@polymorphic-factory/react");
|
|
1723
|
+
var import_react160 = require("@zag-js/react");
|
|
1610
1724
|
|
|
1611
1725
|
// src/tabs/tabs-context.ts
|
|
1612
1726
|
var [TabsProvider, useTabsContext] = createContext({
|
|
@@ -1616,87 +1730,87 @@ var [TabsProvider, useTabsContext] = createContext({
|
|
|
1616
1730
|
});
|
|
1617
1731
|
|
|
1618
1732
|
// src/tabs/tab.tsx
|
|
1619
|
-
var
|
|
1620
|
-
var Tab = (0,
|
|
1733
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
1734
|
+
var Tab = (0, import_react159.forwardRef)((props, ref) => {
|
|
1621
1735
|
const [tabProps, buttonProps] = splitProps(props, ["disabled", "value"]);
|
|
1622
1736
|
const { getTriggerProps } = useTabsContext();
|
|
1623
|
-
const mergedProps = (0,
|
|
1624
|
-
return /* @__PURE__ */ (0,
|
|
1737
|
+
const mergedProps = (0, import_react160.mergeProps)(getTriggerProps(tabProps), buttonProps);
|
|
1738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ark.button, {
|
|
1625
1739
|
...mergedProps,
|
|
1626
1740
|
ref
|
|
1627
1741
|
});
|
|
1628
1742
|
});
|
|
1629
1743
|
|
|
1630
1744
|
// src/tabs/tab-indicator.tsx
|
|
1631
|
-
var
|
|
1632
|
-
var
|
|
1633
|
-
var
|
|
1634
|
-
var TabIndicator = (0,
|
|
1745
|
+
var import_react161 = require("@polymorphic-factory/react");
|
|
1746
|
+
var import_react162 = require("@zag-js/react");
|
|
1747
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
1748
|
+
var TabIndicator = (0, import_react161.forwardRef)((props, ref) => {
|
|
1635
1749
|
const { indicatorProps } = useTabsContext();
|
|
1636
|
-
const mergedProps = (0,
|
|
1637
|
-
return /* @__PURE__ */ (0,
|
|
1750
|
+
const mergedProps = (0, import_react162.mergeProps)(indicatorProps, props);
|
|
1751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ark.div, {
|
|
1638
1752
|
...mergedProps,
|
|
1639
1753
|
ref
|
|
1640
1754
|
});
|
|
1641
1755
|
});
|
|
1642
1756
|
|
|
1643
1757
|
// src/tabs/tab-list.tsx
|
|
1644
|
-
var
|
|
1645
|
-
var
|
|
1646
|
-
var
|
|
1647
|
-
var TabList = (0,
|
|
1758
|
+
var import_react163 = require("@polymorphic-factory/react");
|
|
1759
|
+
var import_react164 = require("@zag-js/react");
|
|
1760
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
1761
|
+
var TabList = (0, import_react163.forwardRef)((props, ref) => {
|
|
1648
1762
|
const { triggerGroupProps } = useTabsContext();
|
|
1649
|
-
const mergedProps = (0,
|
|
1650
|
-
return /* @__PURE__ */ (0,
|
|
1763
|
+
const mergedProps = (0, import_react164.mergeProps)(triggerGroupProps, props);
|
|
1764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ark.div, {
|
|
1651
1765
|
...mergedProps,
|
|
1652
1766
|
ref
|
|
1653
1767
|
});
|
|
1654
1768
|
});
|
|
1655
1769
|
|
|
1656
1770
|
// src/tabs/tab-panel.tsx
|
|
1657
|
-
var
|
|
1658
|
-
var
|
|
1659
|
-
var
|
|
1660
|
-
var TabPanel = (0,
|
|
1771
|
+
var import_react165 = require("@polymorphic-factory/react");
|
|
1772
|
+
var import_react166 = require("@zag-js/react");
|
|
1773
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
1774
|
+
var TabPanel = (0, import_react165.forwardRef)((props, ref) => {
|
|
1661
1775
|
const [tabContentProps, divProps] = splitProps(props, ["value"]);
|
|
1662
1776
|
const { getContentProps } = useTabsContext();
|
|
1663
|
-
const mergedProps = (0,
|
|
1664
|
-
return /* @__PURE__ */ (0,
|
|
1777
|
+
const mergedProps = (0, import_react166.mergeProps)(getContentProps(tabContentProps), divProps);
|
|
1778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ark.div, {
|
|
1665
1779
|
...mergedProps,
|
|
1666
1780
|
ref
|
|
1667
1781
|
});
|
|
1668
1782
|
});
|
|
1669
1783
|
|
|
1670
1784
|
// src/tabs/tab-panels.tsx
|
|
1671
|
-
var
|
|
1672
|
-
var
|
|
1673
|
-
var
|
|
1674
|
-
var TabPanels = (0,
|
|
1785
|
+
var import_react167 = require("@polymorphic-factory/react");
|
|
1786
|
+
var import_react168 = require("@zag-js/react");
|
|
1787
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
1788
|
+
var TabPanels = (0, import_react167.forwardRef)((props, ref) => {
|
|
1675
1789
|
const { contentGroupProps } = useTabsContext();
|
|
1676
|
-
const mergedProps = (0,
|
|
1677
|
-
return /* @__PURE__ */ (0,
|
|
1790
|
+
const mergedProps = (0, import_react168.mergeProps)(contentGroupProps, props);
|
|
1791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ark.div, {
|
|
1678
1792
|
...mergedProps,
|
|
1679
1793
|
ref
|
|
1680
1794
|
});
|
|
1681
1795
|
});
|
|
1682
1796
|
|
|
1683
1797
|
// src/tabs/tabs.tsx
|
|
1684
|
-
var
|
|
1685
|
-
var
|
|
1798
|
+
var import_react171 = require("@polymorphic-factory/react");
|
|
1799
|
+
var import_react172 = require("@zag-js/react");
|
|
1686
1800
|
|
|
1687
1801
|
// src/tabs/use-tabs.ts
|
|
1688
|
-
var
|
|
1802
|
+
var import_react169 = require("@zag-js/react");
|
|
1689
1803
|
var tabs = __toESM(require("@zag-js/tabs"));
|
|
1690
|
-
var
|
|
1804
|
+
var import_react170 = require("react");
|
|
1691
1805
|
var useTabs = (props) => {
|
|
1692
|
-
const context = { id: (0,
|
|
1693
|
-
const [state, send] = (0,
|
|
1694
|
-
return tabs.connect(state, send,
|
|
1806
|
+
const context = { id: (0, import_react170.useId)(), ...filterUndefinedEntries(props) };
|
|
1807
|
+
const [state, send] = (0, import_react169.useMachine)(tabs.machine(context), { context });
|
|
1808
|
+
return tabs.connect(state, send, import_react169.normalizeProps);
|
|
1695
1809
|
};
|
|
1696
1810
|
|
|
1697
1811
|
// src/tabs/tabs.tsx
|
|
1698
|
-
var
|
|
1699
|
-
var Tabs = (0,
|
|
1812
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
1813
|
+
var Tabs = (0, import_react171.forwardRef)((props, ref) => {
|
|
1700
1814
|
const [useTabsProps, divProps] = splitProps(props, [
|
|
1701
1815
|
"activationMode",
|
|
1702
1816
|
"dir",
|
|
@@ -1712,10 +1826,10 @@ var Tabs = (0, import_react159.forwardRef)((props, ref) => {
|
|
|
1712
1826
|
"value"
|
|
1713
1827
|
]);
|
|
1714
1828
|
const tabs2 = useTabs(useTabsProps);
|
|
1715
|
-
const mergedProps = (0,
|
|
1716
|
-
return /* @__PURE__ */ (0,
|
|
1829
|
+
const mergedProps = (0, import_react172.mergeProps)(tabs2.rootProps, divProps);
|
|
1830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TabsProvider, {
|
|
1717
1831
|
value: tabs2,
|
|
1718
|
-
children: /* @__PURE__ */ (0,
|
|
1832
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ark.div, {
|
|
1719
1833
|
...mergedProps,
|
|
1720
1834
|
ref
|
|
1721
1835
|
})
|
|
@@ -1723,8 +1837,8 @@ var Tabs = (0, import_react159.forwardRef)((props, ref) => {
|
|
|
1723
1837
|
});
|
|
1724
1838
|
|
|
1725
1839
|
// src/tags-input/tag.tsx
|
|
1726
|
-
var
|
|
1727
|
-
var
|
|
1840
|
+
var import_react173 = require("@polymorphic-factory/react");
|
|
1841
|
+
var import_react174 = require("@zag-js/react");
|
|
1728
1842
|
|
|
1729
1843
|
// src/tags-input/tags-input-context.ts
|
|
1730
1844
|
var [TagsInputProvider, useTagsInputContext] = createContext({
|
|
@@ -1734,66 +1848,66 @@ var [TagsInputProvider, useTagsInputContext] = createContext({
|
|
|
1734
1848
|
});
|
|
1735
1849
|
|
|
1736
1850
|
// src/tags-input/tag.tsx
|
|
1737
|
-
var
|
|
1738
|
-
var Tag = (0,
|
|
1851
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
1852
|
+
var Tag = (0, import_react173.forwardRef)((props, ref) => {
|
|
1739
1853
|
const [tagProps, divProps] = splitProps(props, ["index", "disabled", "value"]);
|
|
1740
1854
|
const { getTagProps } = useTagsInputContext();
|
|
1741
|
-
const mergedProps = (0,
|
|
1742
|
-
return /* @__PURE__ */ (0,
|
|
1855
|
+
const mergedProps = (0, import_react174.mergeProps)(getTagProps(tagProps), divProps);
|
|
1856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ark.div, {
|
|
1743
1857
|
...mergedProps,
|
|
1744
1858
|
ref
|
|
1745
1859
|
});
|
|
1746
1860
|
});
|
|
1747
1861
|
|
|
1748
1862
|
// src/tags-input/tag-delete-button.tsx
|
|
1749
|
-
var
|
|
1750
|
-
var
|
|
1751
|
-
var
|
|
1752
|
-
var TagDeleteButton = (0,
|
|
1863
|
+
var import_react175 = require("@polymorphic-factory/react");
|
|
1864
|
+
var import_react176 = require("@zag-js/react");
|
|
1865
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
1866
|
+
var TagDeleteButton = (0, import_react175.forwardRef)((props, ref) => {
|
|
1753
1867
|
const { getTagDeleteButtonProps } = useTagsInputContext();
|
|
1754
1868
|
const [tagProps, buttonProps] = splitProps(props, ["index", "disabled", "value"]);
|
|
1755
|
-
const mergedProps = (0,
|
|
1756
|
-
return /* @__PURE__ */ (0,
|
|
1869
|
+
const mergedProps = (0, import_react176.mergeProps)(getTagDeleteButtonProps(tagProps), buttonProps);
|
|
1870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ark.button, {
|
|
1757
1871
|
...mergedProps,
|
|
1758
1872
|
ref
|
|
1759
1873
|
});
|
|
1760
1874
|
});
|
|
1761
1875
|
|
|
1762
1876
|
// src/tags-input/tag-input.tsx
|
|
1763
|
-
var
|
|
1764
|
-
var
|
|
1765
|
-
var
|
|
1766
|
-
var TagInput = (0,
|
|
1877
|
+
var import_react177 = require("@polymorphic-factory/react");
|
|
1878
|
+
var import_react178 = require("@zag-js/react");
|
|
1879
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
1880
|
+
var TagInput = (0, import_react177.forwardRef)((props, ref) => {
|
|
1767
1881
|
const [tagProps, inputProps] = splitProps(props, ["index", "disabled", "value"]);
|
|
1768
1882
|
const { getTagInputProps } = useTagsInputContext();
|
|
1769
|
-
const mergedProps = (0,
|
|
1770
|
-
return /* @__PURE__ */ (0,
|
|
1883
|
+
const mergedProps = (0, import_react178.mergeProps)(getTagInputProps(tagProps), inputProps);
|
|
1884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ark.input, {
|
|
1771
1885
|
...mergedProps,
|
|
1772
1886
|
ref
|
|
1773
1887
|
});
|
|
1774
1888
|
});
|
|
1775
1889
|
|
|
1776
1890
|
// src/tags-input/tags-input.tsx
|
|
1777
|
-
var
|
|
1778
|
-
var
|
|
1891
|
+
var import_react181 = require("@polymorphic-factory/react");
|
|
1892
|
+
var import_react182 = require("@zag-js/react");
|
|
1779
1893
|
|
|
1780
1894
|
// src/tags-input/use-tags-input.ts
|
|
1781
|
-
var
|
|
1895
|
+
var import_react179 = require("@zag-js/react");
|
|
1782
1896
|
var tagsInput = __toESM(require("@zag-js/tags-input"));
|
|
1783
|
-
var
|
|
1897
|
+
var import_react180 = require("react");
|
|
1784
1898
|
var useTagsInput = (props) => {
|
|
1785
1899
|
const initialContext = filterUndefinedEntries({
|
|
1786
|
-
id: (0,
|
|
1900
|
+
id: (0, import_react180.useId)(),
|
|
1787
1901
|
...props,
|
|
1788
1902
|
value: props.value ?? props.defaultValue
|
|
1789
1903
|
});
|
|
1790
|
-
const [state, send] = (0,
|
|
1791
|
-
return tagsInput.connect(state, send,
|
|
1904
|
+
const [state, send] = (0, import_react179.useMachine)(tagsInput.machine(initialContext));
|
|
1905
|
+
return tagsInput.connect(state, send, import_react179.normalizeProps);
|
|
1792
1906
|
};
|
|
1793
1907
|
|
|
1794
1908
|
// src/tags-input/tags-input.tsx
|
|
1795
|
-
var
|
|
1796
|
-
var TagsInput = (0,
|
|
1909
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
1910
|
+
var TagsInput = (0, import_react181.forwardRef)((props, ref) => {
|
|
1797
1911
|
const [useTagsInputProps, { children, ...inputProps }] = splitProps(props, [
|
|
1798
1912
|
"addOnPaste",
|
|
1799
1913
|
"allowEditTag",
|
|
@@ -1821,11 +1935,11 @@ var TagsInput = (0, import_react169.forwardRef)((props, ref) => {
|
|
|
1821
1935
|
"value"
|
|
1822
1936
|
]);
|
|
1823
1937
|
const tagsInput2 = useTagsInput(useTagsInputProps);
|
|
1824
|
-
const mergedProps = (0,
|
|
1938
|
+
const mergedProps = (0, import_react182.mergeProps)(tagsInput2.rootProps, inputProps);
|
|
1825
1939
|
const view = runIfFn(children, tagsInput2);
|
|
1826
|
-
return /* @__PURE__ */ (0,
|
|
1940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TagsInputProvider, {
|
|
1827
1941
|
value: tagsInput2,
|
|
1828
|
-
children: /* @__PURE__ */ (0,
|
|
1942
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ark.div, {
|
|
1829
1943
|
...mergedProps,
|
|
1830
1944
|
ref,
|
|
1831
1945
|
children: view
|
|
@@ -1834,14 +1948,14 @@ var TagsInput = (0, import_react169.forwardRef)((props, ref) => {
|
|
|
1834
1948
|
});
|
|
1835
1949
|
|
|
1836
1950
|
// src/tags-input/tags-input-clear-button.tsx
|
|
1837
|
-
var
|
|
1838
|
-
var
|
|
1839
|
-
var
|
|
1840
|
-
var TagsInputClearButton = (0,
|
|
1951
|
+
var import_react183 = require("@polymorphic-factory/react");
|
|
1952
|
+
var import_react184 = require("@zag-js/react");
|
|
1953
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
1954
|
+
var TagsInputClearButton = (0, import_react183.forwardRef)(
|
|
1841
1955
|
(props, ref) => {
|
|
1842
1956
|
const { clearButtonProps } = useTagsInputContext();
|
|
1843
|
-
const mergedProps = (0,
|
|
1844
|
-
return /* @__PURE__ */ (0,
|
|
1957
|
+
const mergedProps = (0, import_react184.mergeProps)(clearButtonProps, props);
|
|
1958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ark.button, {
|
|
1845
1959
|
...mergedProps,
|
|
1846
1960
|
ref
|
|
1847
1961
|
});
|
|
@@ -1849,26 +1963,26 @@ var TagsInputClearButton = (0, import_react171.forwardRef)(
|
|
|
1849
1963
|
);
|
|
1850
1964
|
|
|
1851
1965
|
// src/tags-input/tags-input-control.tsx
|
|
1852
|
-
var
|
|
1853
|
-
var
|
|
1854
|
-
var
|
|
1855
|
-
var TagsInputControl = (0,
|
|
1966
|
+
var import_react185 = require("@polymorphic-factory/react");
|
|
1967
|
+
var import_react186 = require("@zag-js/react");
|
|
1968
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
1969
|
+
var TagsInputControl = (0, import_react185.forwardRef)((props, ref) => {
|
|
1856
1970
|
const { controlProps } = useTagsInputContext();
|
|
1857
|
-
const mergedProps = (0,
|
|
1858
|
-
return /* @__PURE__ */ (0,
|
|
1971
|
+
const mergedProps = (0, import_react186.mergeProps)(controlProps, props);
|
|
1972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ark.div, {
|
|
1859
1973
|
...mergedProps,
|
|
1860
1974
|
ref
|
|
1861
1975
|
});
|
|
1862
1976
|
});
|
|
1863
1977
|
|
|
1864
1978
|
// src/tags-input/tags-input-field.tsx
|
|
1865
|
-
var
|
|
1866
|
-
var
|
|
1867
|
-
var
|
|
1868
|
-
var TagsInputField = (0,
|
|
1979
|
+
var import_react187 = require("@polymorphic-factory/react");
|
|
1980
|
+
var import_react188 = require("@zag-js/react");
|
|
1981
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
1982
|
+
var TagsInputField = (0, import_react187.forwardRef)((props, ref) => {
|
|
1869
1983
|
const { inputProps } = useTagsInputContext();
|
|
1870
|
-
const mergedProps = (0,
|
|
1871
|
-
return /* @__PURE__ */ (0,
|
|
1984
|
+
const mergedProps = (0, import_react188.mergeProps)(inputProps, props);
|
|
1985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ark.input, {
|
|
1872
1986
|
...mergedProps,
|
|
1873
1987
|
ref
|
|
1874
1988
|
});
|
|
@@ -1882,91 +1996,91 @@ var [TooltipProvider, useTooltipContext] = createContext({
|
|
|
1882
1996
|
});
|
|
1883
1997
|
|
|
1884
1998
|
// src/tooltip/use-tooltip.ts
|
|
1885
|
-
var
|
|
1999
|
+
var import_react189 = require("@zag-js/react");
|
|
1886
2000
|
var tooltip = __toESM(require("@zag-js/tooltip"));
|
|
1887
|
-
var
|
|
2001
|
+
var import_react190 = require("react");
|
|
1888
2002
|
var useTooltip = (props) => {
|
|
1889
2003
|
const initialContext = filterUndefinedEntries({
|
|
1890
|
-
id: (0,
|
|
2004
|
+
id: (0, import_react190.useId)(),
|
|
1891
2005
|
...props
|
|
1892
2006
|
});
|
|
1893
|
-
const [state, send] = (0,
|
|
1894
|
-
return tooltip.connect(state, send,
|
|
2007
|
+
const [state, send] = (0, import_react189.useMachine)(tooltip.machine(initialContext), { context: initialContext });
|
|
2008
|
+
return tooltip.connect(state, send, import_react189.normalizeProps);
|
|
1895
2009
|
};
|
|
1896
2010
|
|
|
1897
2011
|
// src/tooltip/tooltip.tsx
|
|
1898
|
-
var
|
|
2012
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
1899
2013
|
var Tooltip = (props) => {
|
|
1900
2014
|
const { children, ...useTooltipProps } = props;
|
|
1901
2015
|
const tooltip2 = useTooltip(useTooltipProps);
|
|
1902
|
-
return /* @__PURE__ */ (0,
|
|
2016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TooltipProvider, {
|
|
1903
2017
|
value: tooltip2,
|
|
1904
2018
|
children
|
|
1905
2019
|
});
|
|
1906
2020
|
};
|
|
1907
2021
|
|
|
1908
2022
|
// src/tooltip/tooltip-arrow.tsx
|
|
1909
|
-
var
|
|
1910
|
-
var
|
|
1911
|
-
var
|
|
1912
|
-
var TooltipArrow = (0,
|
|
2023
|
+
var import_react191 = require("@polymorphic-factory/react");
|
|
2024
|
+
var import_react192 = require("@zag-js/react");
|
|
2025
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
2026
|
+
var TooltipArrow = (0, import_react191.forwardRef)((props, ref) => {
|
|
1913
2027
|
const { arrowProps } = useTooltipContext();
|
|
1914
|
-
const mergedProps = (0,
|
|
1915
|
-
return /* @__PURE__ */ (0,
|
|
2028
|
+
const mergedProps = (0, import_react192.mergeProps)(arrowProps, props);
|
|
2029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ark.div, {
|
|
1916
2030
|
...mergedProps,
|
|
1917
2031
|
ref
|
|
1918
2032
|
});
|
|
1919
2033
|
});
|
|
1920
2034
|
|
|
1921
2035
|
// src/tooltip/tooltip-content.tsx
|
|
1922
|
-
var
|
|
1923
|
-
var
|
|
1924
|
-
var
|
|
1925
|
-
var TooltipContent = (0,
|
|
2036
|
+
var import_react193 = require("@polymorphic-factory/react");
|
|
2037
|
+
var import_react194 = require("@zag-js/react");
|
|
2038
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
2039
|
+
var TooltipContent = (0, import_react193.forwardRef)((props, ref) => {
|
|
1926
2040
|
const { contentProps } = useTooltipContext();
|
|
1927
|
-
const mergedProps = (0,
|
|
1928
|
-
return /* @__PURE__ */ (0,
|
|
2041
|
+
const mergedProps = (0, import_react194.mergeProps)(contentProps, props);
|
|
2042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ark.div, {
|
|
1929
2043
|
...mergedProps,
|
|
1930
2044
|
ref
|
|
1931
2045
|
});
|
|
1932
2046
|
});
|
|
1933
2047
|
|
|
1934
2048
|
// src/tooltip/tooltip-inner-arrow.tsx
|
|
1935
|
-
var
|
|
1936
|
-
var
|
|
1937
|
-
var
|
|
1938
|
-
var TooltipInnerArrow = (0,
|
|
2049
|
+
var import_react195 = require("@polymorphic-factory/react");
|
|
2050
|
+
var import_react196 = require("@zag-js/react");
|
|
2051
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
2052
|
+
var TooltipInnerArrow = (0, import_react195.forwardRef)((props, ref) => {
|
|
1939
2053
|
const { innerArrowProps } = useTooltipContext();
|
|
1940
|
-
const mergedProps = (0,
|
|
1941
|
-
return /* @__PURE__ */ (0,
|
|
2054
|
+
const mergedProps = (0, import_react196.mergeProps)(innerArrowProps, props);
|
|
2055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ark.div, {
|
|
1942
2056
|
...mergedProps,
|
|
1943
2057
|
ref
|
|
1944
2058
|
});
|
|
1945
2059
|
});
|
|
1946
2060
|
|
|
1947
2061
|
// src/tooltip/tooltip-positioner.tsx
|
|
1948
|
-
var
|
|
1949
|
-
var
|
|
1950
|
-
var
|
|
1951
|
-
var TooltipPositioner = (0,
|
|
2062
|
+
var import_react197 = require("@polymorphic-factory/react");
|
|
2063
|
+
var import_react198 = require("@zag-js/react");
|
|
2064
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
2065
|
+
var TooltipPositioner = (0, import_react197.forwardRef)((props, ref) => {
|
|
1952
2066
|
const { positionerProps, isOpen } = useTooltipContext();
|
|
1953
|
-
const mergedProps = (0,
|
|
1954
|
-
return isOpen ? /* @__PURE__ */ (0,
|
|
2067
|
+
const mergedProps = (0, import_react198.mergeProps)(positionerProps, props);
|
|
2068
|
+
return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ark.div, {
|
|
1955
2069
|
...mergedProps,
|
|
1956
2070
|
ref
|
|
1957
2071
|
}) : null;
|
|
1958
2072
|
});
|
|
1959
2073
|
|
|
1960
2074
|
// src/tooltip/tooltip-trigger.tsx
|
|
1961
|
-
var
|
|
1962
|
-
var
|
|
2075
|
+
var import_react199 = require("react");
|
|
2076
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
1963
2077
|
var TooltipTrigger = (props) => {
|
|
1964
2078
|
const { children } = props;
|
|
1965
2079
|
const { triggerProps } = useTooltipContext();
|
|
1966
|
-
return typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ (0,
|
|
2080
|
+
return typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ark.span, {
|
|
1967
2081
|
...triggerProps,
|
|
1968
2082
|
children
|
|
1969
|
-
}) : (0,
|
|
2083
|
+
}) : (0, import_react199.cloneElement)(children, triggerProps);
|
|
1970
2084
|
};
|
|
1971
2085
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1972
2086
|
0 && (module.exports = {
|
|
@@ -1996,6 +2110,13 @@ var TooltipTrigger = (props) => {
|
|
|
1996
2110
|
EditableInput,
|
|
1997
2111
|
EditablePreview,
|
|
1998
2112
|
EditableSubmitButton,
|
|
2113
|
+
HoverCard,
|
|
2114
|
+
HoverCardArrow,
|
|
2115
|
+
HoverCardContent,
|
|
2116
|
+
HoverCardInnerArrow,
|
|
2117
|
+
HoverCardPortal,
|
|
2118
|
+
HoverCardPositioner,
|
|
2119
|
+
HoverCardTrigger,
|
|
1999
2120
|
NumberInput,
|
|
2000
2121
|
NumberInputDecrementButton,
|
|
2001
2122
|
NumberInputField,
|