@sikka/hawa 0.24.4-next → 0.24.5-next
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/accordion/index.d.mts +1 -2
- package/dist/accordion/index.d.ts +1 -2
- package/dist/accordion/index.mjs +219 -7
- package/dist/alert/index.d.mts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/appLayout/index.d.mts +126 -0
- package/dist/appLayout/index.d.ts +126 -0
- package/dist/appLayout/index.js +1325 -0
- package/dist/appLayout/index.mjs +1285 -0
- package/dist/appMenubar/index.d.mts +33 -0
- package/dist/appMenubar/index.d.ts +33 -0
- package/dist/appMenubar/index.js +281 -0
- package/dist/appMenubar/index.mjs +224 -0
- package/dist/appTabs/index.d.mts +18 -0
- package/dist/appTabs/index.d.ts +18 -0
- package/dist/appTabs/index.js +92 -0
- package/dist/appTabs/index.mjs +50 -0
- package/dist/appTopbar/index.d.mts +44 -0
- package/dist/appTopbar/index.d.ts +44 -0
- package/dist/appTopbar/index.js +483 -0
- package/dist/appTopbar/index.mjs +441 -0
- package/dist/avatar/index.d.mts +5 -4
- package/dist/avatar/index.d.ts +5 -4
- package/dist/backToTop/index.mjs +353 -3
- package/dist/badge/index.d.mts +2 -2
- package/dist/badge/index.d.ts +2 -2
- package/dist/checkbox/index.d.mts +1 -2
- package/dist/checkbox/index.d.ts +1 -2
- package/dist/chip/index.d.mts +36 -2
- package/dist/chip/index.d.ts +36 -2
- package/dist/chip/index.mjs +83 -3
- package/dist/chunk-62GI5F2P.mjs +442 -0
- package/dist/chunk-7NCNPRCL.mjs +120 -0
- package/dist/{chunk-TNAHW35O.mjs → chunk-C2UYTGUD.mjs} +8 -4
- package/dist/{chunk-26FHSPJI.mjs → chunk-DGWAHQRX.mjs} +1 -101
- package/dist/chunk-LRLLDOQZ.mjs +178 -0
- package/dist/chunk-ND4BWUKH.mjs +34 -0
- package/dist/codeBlock/index.mjs +684 -310
- package/dist/colorPicker/index.d.mts +2 -1
- package/dist/colorPicker/index.d.ts +2 -1
- package/dist/colorPicker/index.mjs +2 -167
- package/dist/combobox/index.d.mts +9 -1
- package/dist/combobox/index.d.ts +9 -1
- package/dist/combobox/index.mjs +61 -393
- package/dist/command/index.mjs +10 -425
- package/dist/commonTypes-3J1E3b61.d.mts +6 -0
- package/dist/commonTypes-3J1E3b61.d.ts +6 -0
- package/dist/commonTypes-GhKAraJw.d.mts +4 -0
- package/dist/commonTypes-GhKAraJw.d.ts +4 -0
- package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
- package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.mts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.ts +5 -0
- package/dist/commonTypes-ko_NGEoT.d.mts +3 -0
- package/dist/commonTypes-ko_NGEoT.d.ts +3 -0
- package/dist/copyrights/index.d.mts +17 -0
- package/dist/copyrights/index.d.ts +17 -0
- package/dist/copyrights/index.js +45 -0
- package/dist/copyrights/index.mjs +8 -0
- package/dist/count/index.d.mts +11 -0
- package/dist/count/index.d.ts +11 -0
- package/dist/count/index.js +45 -0
- package/dist/count/index.mjs +8 -0
- package/dist/dataTable/index.d.mts +1 -1
- package/dist/dataTable/index.d.ts +1 -1
- package/dist/destroyableCard/index.d.mts +1 -1
- package/dist/destroyableCard/index.d.ts +1 -1
- package/dist/dialog/index.d.mts +1 -1
- package/dist/dialog/index.d.ts +1 -1
- package/dist/docsLayout/index.d.mts +37 -0
- package/dist/docsLayout/index.d.ts +37 -0
- package/dist/docsLayout/index.js +926 -0
- package/dist/docsLayout/index.mjs +886 -0
- package/dist/docsSidebar/index.d.mts +11 -0
- package/dist/docsSidebar/index.d.ts +11 -0
- package/dist/docsSidebar/index.js +111 -0
- package/dist/docsSidebar/index.mjs +69 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +50 -41
- package/dist/index.mjs +50 -41
- package/dist/input/index.d.mts +2 -9
- package/dist/input/index.d.ts +2 -9
- package/dist/input/index.mjs +14 -98
- package/dist/interfaceSettings/index.d.mts +1 -1
- package/dist/interfaceSettings/index.d.ts +1 -1
- package/dist/interfaceSettings/index.mjs +24 -110
- package/dist/label/index.d.mts +1 -1
- package/dist/label/index.d.ts +1 -1
- package/dist/label/index.mjs +2 -87
- package/dist/layout/index.d.mts +1 -0
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.js +53 -44
- package/dist/layout/index.mjs +50 -41
- package/dist/navbar/index.d.mts +17 -0
- package/dist/navbar/index.d.ts +17 -0
- package/dist/navbar/index.js +166 -0
- package/dist/navbar/index.mjs +126 -0
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/passwordInput/index.mjs +27 -137
- package/dist/phoneInput/index.mjs +19 -129
- package/dist/radio/index.d.mts +1 -4
- package/dist/radio/index.d.ts +1 -4
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/select/index.d.mts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/sidebar/index.d.mts +48 -0
- package/dist/sidebar/index.d.ts +48 -0
- package/dist/sidebar/index.js +341 -0
- package/dist/sidebar/index.mjs +298 -0
- package/dist/simpleTable/index.d.mts +4 -3
- package/dist/simpleTable/index.d.ts +4 -3
- package/dist/simpleTable/index.mjs +21 -45
- package/dist/skeleton/index.d.mts +3 -3
- package/dist/skeleton/index.d.ts +3 -3
- package/dist/skeleton/index.mjs +3 -29
- package/dist/sortButton/index.mjs +9 -260
- package/dist/splitButton/index.d.mts +4 -3
- package/dist/splitButton/index.d.ts +4 -3
- package/dist/splitButton/index.mjs +10 -259
- package/dist/stats/index.d.mts +19 -0
- package/dist/stats/index.d.ts +19 -0
- package/dist/stats/index.js +191 -0
- package/dist/stats/index.mjs +154 -0
- package/dist/stopPropagationWrapper/index.d.mts +2 -2
- package/dist/stopPropagationWrapper/index.d.ts +2 -2
- package/dist/switch/index.d.mts +2 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.mts +19 -1
- package/dist/tabs/index.d.ts +19 -1
- package/dist/tabs/index.mjs +94 -14
- package/dist/textarea/index.d.mts +8 -1
- package/dist/textarea/index.d.ts +8 -1
- package/dist/textarea/index.mjs +92 -8
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Label-fkQ4ebuH.d.mts +0 -12
- package/dist/Label-fkQ4ebuH.d.ts +0 -12
- package/dist/chunk-72HYR6WB.mjs +0 -88
- package/dist/chunk-JYSC6GKM.mjs +0 -229
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-N7XOVCit.d.mts +0 -5
- package/dist/commonTypes-N7XOVCit.d.ts +0 -5
- package/dist/index-DUZFcPRO.d.mts +0 -38
- package/dist/index-DUZFcPRO.d.ts +0 -38
@@ -1,9 +1,13 @@
|
|
1
|
+
import {
|
2
|
+
Label,
|
3
|
+
Skeleton
|
4
|
+
} from "../chunk-7NCNPRCL.mjs";
|
1
5
|
import {
|
2
6
|
cn
|
3
7
|
} from "../chunk-TE3BKEXL.mjs";
|
4
8
|
|
5
9
|
// components/elements/phoneInput/PhoneInput.tsx
|
6
|
-
import
|
10
|
+
import React2, { useState, useRef, useEffect } from "react";
|
7
11
|
|
8
12
|
// components/countries.ts
|
9
13
|
var countries = [
|
@@ -1698,125 +1702,11 @@ var countries = [
|
|
1698
1702
|
];
|
1699
1703
|
var countries_default = countries;
|
1700
1704
|
|
1701
|
-
// components/elements/label/Label.tsx
|
1702
|
-
import * as React2 from "react";
|
1703
|
-
|
1704
|
-
// components/elements/tooltip/Tooltip.tsx
|
1705
|
-
import React from "react";
|
1706
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
1707
|
-
var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
1708
|
-
TooltipPrimitive.Content,
|
1709
|
-
{
|
1710
|
-
ref,
|
1711
|
-
sideOffset,
|
1712
|
-
className: cn(
|
1713
|
-
"hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
1714
|
-
className
|
1715
|
-
),
|
1716
|
-
...props
|
1717
|
-
}
|
1718
|
-
));
|
1719
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
1720
|
-
var TooltipArrow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
1721
|
-
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
1722
|
-
var Tooltip = ({
|
1723
|
-
side,
|
1724
|
-
open,
|
1725
|
-
content,
|
1726
|
-
children,
|
1727
|
-
defaultOpen,
|
1728
|
-
onOpenChange,
|
1729
|
-
triggerProps,
|
1730
|
-
contentProps,
|
1731
|
-
providerProps,
|
1732
|
-
delayDuration = 300,
|
1733
|
-
...props
|
1734
|
-
}) => {
|
1735
|
-
return /* @__PURE__ */ React.createElement(
|
1736
|
-
TooltipPrimitive.TooltipProvider,
|
1737
|
-
{
|
1738
|
-
delayDuration,
|
1739
|
-
...providerProps
|
1740
|
-
},
|
1741
|
-
/* @__PURE__ */ React.createElement(
|
1742
|
-
TooltipPrimitive.Root,
|
1743
|
-
{
|
1744
|
-
open,
|
1745
|
-
defaultOpen,
|
1746
|
-
onOpenChange,
|
1747
|
-
...props
|
1748
|
-
},
|
1749
|
-
/* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
1750
|
-
/* @__PURE__ */ React.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
|
1751
|
-
)
|
1752
|
-
);
|
1753
|
-
};
|
1754
|
-
|
1755
|
-
// components/elements/label/Label.tsx
|
1756
|
-
var Label = React2.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React2.createElement(
|
1757
|
-
"label",
|
1758
|
-
{
|
1759
|
-
ref,
|
1760
|
-
className: cn(
|
1761
|
-
"hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
|
1762
|
-
className
|
1763
|
-
),
|
1764
|
-
...props
|
1765
|
-
},
|
1766
|
-
children,
|
1767
|
-
required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
1768
|
-
), hint && /* @__PURE__ */ React2.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React2.createElement(
|
1769
|
-
"svg",
|
1770
|
-
{
|
1771
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1772
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
1773
|
-
viewBox: "0 0 24 24",
|
1774
|
-
fill: "none",
|
1775
|
-
stroke: "currentColor",
|
1776
|
-
strokeWidth: "2",
|
1777
|
-
strokeLinecap: "round",
|
1778
|
-
strokeLinejoin: "round"
|
1779
|
-
},
|
1780
|
-
/* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
1781
|
-
/* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
1782
|
-
/* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
|
1783
|
-
))));
|
1784
|
-
Label.displayName = "Label";
|
1785
|
-
|
1786
1705
|
// components/elements/select/Select.tsx
|
1787
|
-
import
|
1706
|
+
import React from "react";
|
1788
1707
|
import ReactSelect from "react-select";
|
1789
1708
|
import CreatableSelect from "react-select/creatable";
|
1790
1709
|
import clsx from "clsx";
|
1791
|
-
|
1792
|
-
// components/elements/skeleton/Skeleton.tsx
|
1793
|
-
import React3 from "react";
|
1794
|
-
function Skeleton({
|
1795
|
-
className,
|
1796
|
-
content,
|
1797
|
-
animation = "pulse",
|
1798
|
-
...props
|
1799
|
-
}) {
|
1800
|
-
const animationStyles = {
|
1801
|
-
none: "hawa-rounded hawa-bg-muted",
|
1802
|
-
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
1803
|
-
shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
|
1804
|
-
};
|
1805
|
-
return /* @__PURE__ */ React3.createElement(
|
1806
|
-
"div",
|
1807
|
-
{
|
1808
|
-
className: cn(
|
1809
|
-
animationStyles[animation],
|
1810
|
-
content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
1811
|
-
className
|
1812
|
-
),
|
1813
|
-
...props
|
1814
|
-
},
|
1815
|
-
content && content
|
1816
|
-
);
|
1817
|
-
}
|
1818
|
-
|
1819
|
-
// components/elements/select/Select.tsx
|
1820
1710
|
var Select = ({
|
1821
1711
|
labelProps,
|
1822
1712
|
labelKey = "label",
|
@@ -1824,10 +1714,10 @@ var Select = ({
|
|
1824
1714
|
}) => {
|
1825
1715
|
const NoOption = () => {
|
1826
1716
|
var _a, _b;
|
1827
|
-
return /* @__PURE__ */
|
1717
|
+
return /* @__PURE__ */ React.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
1828
1718
|
};
|
1829
1719
|
const Control = ({ children, innerProps, innerRef }) => {
|
1830
|
-
return /* @__PURE__ */
|
1720
|
+
return /* @__PURE__ */ React.createElement(
|
1831
1721
|
"div",
|
1832
1722
|
{
|
1833
1723
|
ref: innerRef,
|
@@ -1840,7 +1730,7 @@ var Select = ({
|
|
1840
1730
|
);
|
1841
1731
|
};
|
1842
1732
|
const Option = ({ children, innerProps, innerRef }) => {
|
1843
|
-
return /* @__PURE__ */
|
1733
|
+
return /* @__PURE__ */ React.createElement(
|
1844
1734
|
"div",
|
1845
1735
|
{
|
1846
1736
|
ref: innerRef,
|
@@ -1861,7 +1751,7 @@ var Select = ({
|
|
1861
1751
|
...menuProps
|
1862
1752
|
}) => {
|
1863
1753
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
1864
|
-
return /* @__PURE__ */
|
1754
|
+
return /* @__PURE__ */ React.createElement(
|
1865
1755
|
"div",
|
1866
1756
|
{
|
1867
1757
|
className: cn(
|
@@ -1875,7 +1765,7 @@ var Select = ({
|
|
1875
1765
|
children
|
1876
1766
|
);
|
1877
1767
|
};
|
1878
|
-
return /* @__PURE__ */
|
1768
|
+
return /* @__PURE__ */ React.createElement(
|
1879
1769
|
"div",
|
1880
1770
|
{
|
1881
1771
|
className: cn(
|
@@ -1883,10 +1773,10 @@ var Select = ({
|
|
1883
1773
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
1884
1774
|
)
|
1885
1775
|
},
|
1886
|
-
props.label && /* @__PURE__ */
|
1887
|
-
props.isLoading ? /* @__PURE__ */
|
1776
|
+
props.label && /* @__PURE__ */ React.createElement(Label, { ...labelProps }, props.label),
|
1777
|
+
props.isLoading ? /* @__PURE__ */ React.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
1888
1778
|
// TODO: enable keyboard to go to the next item in the list
|
1889
|
-
/* @__PURE__ */
|
1779
|
+
/* @__PURE__ */ React.createElement(
|
1890
1780
|
ReactSelect,
|
1891
1781
|
{
|
1892
1782
|
noOptionsMessage: NoOption,
|
@@ -1923,7 +1813,7 @@ var Select = ({
|
|
1923
1813
|
isSearchable: props.isSearchable
|
1924
1814
|
}
|
1925
1815
|
)
|
1926
|
-
) : /* @__PURE__ */
|
1816
|
+
) : /* @__PURE__ */ React.createElement(
|
1927
1817
|
CreatableSelect,
|
1928
1818
|
{
|
1929
1819
|
formatCreateLabel: (inputValue) => {
|
@@ -1953,7 +1843,7 @@ var Select = ({
|
|
1953
1843
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
1954
1844
|
}
|
1955
1845
|
),
|
1956
|
-
!props.hideHelperText && /* @__PURE__ */
|
1846
|
+
!props.hideHelperText && /* @__PURE__ */ React.createElement(
|
1957
1847
|
"p",
|
1958
1848
|
{
|
1959
1849
|
className: cn(
|
@@ -1989,7 +1879,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
1989
1879
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
1990
1880
|
}
|
1991
1881
|
};
|
1992
|
-
return /* @__PURE__ */
|
1882
|
+
return /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React2.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React2.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React2.createElement(
|
1993
1883
|
Select,
|
1994
1884
|
{
|
1995
1885
|
width: "fit",
|
@@ -2005,7 +1895,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
2005
1895
|
value: countryCode == null ? void 0 : countryCode.label,
|
2006
1896
|
onChange: setCountryCode
|
2007
1897
|
}
|
2008
|
-
), /* @__PURE__ */
|
1898
|
+
), /* @__PURE__ */ React2.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React2.createElement(
|
2009
1899
|
"input",
|
2010
1900
|
{
|
2011
1901
|
ref: inputRef,
|
@@ -2018,7 +1908,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
2018
1908
|
type: "tel",
|
2019
1909
|
placeholder: "531045453"
|
2020
1910
|
}
|
2021
|
-
))), /* @__PURE__ */
|
1911
|
+
))), /* @__PURE__ */ React2.createElement(
|
2022
1912
|
"p",
|
2023
1913
|
{
|
2024
1914
|
className: cn(
|
package/dist/radio/index.d.mts
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { FC } from 'react';
|
3
|
-
|
4
|
-
type DirectionType = "rtl" | "ltr";
|
5
|
-
type PositionType = "top" | "bottom" | "right" | "left";
|
6
|
-
type OrientationType = "vertical" | "horizontal";
|
3
|
+
import { P as PositionType, O as OrientationType, D as DirectionType } from '../commonTypes-LrR8QrYP.mjs';
|
7
4
|
|
8
5
|
type LabelProps = {
|
9
6
|
hint?: React.ReactNode;
|
package/dist/radio/index.d.ts
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { FC } from 'react';
|
3
|
-
|
4
|
-
type DirectionType = "rtl" | "ltr";
|
5
|
-
type PositionType = "top" | "bottom" | "right" | "left";
|
6
|
-
type OrientationType = "vertical" | "horizontal";
|
3
|
+
import { P as PositionType, O as OrientationType, D as DirectionType } from '../commonTypes-LrR8QrYP.js';
|
7
4
|
|
8
5
|
type LabelProps = {
|
9
6
|
hint?: React.ReactNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
3
|
-
import { O as OrientationType } from '../commonTypes-
|
3
|
+
import { O as OrientationType } from '../commonTypes-LrR8QrYP.mjs';
|
4
4
|
|
5
5
|
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
6
6
|
orientation?: OrientationType | undefined;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
3
|
-
import { O as OrientationType } from '../commonTypes-
|
3
|
+
import { O as OrientationType } from '../commonTypes-LrR8QrYP.js';
|
4
4
|
|
5
5
|
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
6
6
|
orientation?: OrientationType | undefined;
|
package/dist/select/index.d.mts
CHANGED
package/dist/select/index.d.ts
CHANGED
@@ -0,0 +1,48 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { D as DirectionType } from '../commonTypes-ko_NGEoT.mjs';
|
3
|
+
|
4
|
+
type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
|
5
|
+
|
6
|
+
type AppSidebarItemProps = {
|
7
|
+
value: string;
|
8
|
+
slug?: string;
|
9
|
+
label: string;
|
10
|
+
badge?: {
|
11
|
+
label: string;
|
12
|
+
color: ChipColors;
|
13
|
+
};
|
14
|
+
icon?: any;
|
15
|
+
subitems?: SubItem[];
|
16
|
+
onClick?: (e: React.MouseEvent) => void;
|
17
|
+
onMouseDown?: (e: React.MouseEvent) => void;
|
18
|
+
};
|
19
|
+
type SubItem = {
|
20
|
+
value: string;
|
21
|
+
label: string;
|
22
|
+
slug?: string;
|
23
|
+
icon?: any;
|
24
|
+
onMouseDown?: (e: React.MouseEvent) => void;
|
25
|
+
onClick?: (e: React.MouseEvent) => void;
|
26
|
+
};
|
27
|
+
interface SidebarGroupProps {
|
28
|
+
title?: string;
|
29
|
+
items: AppSidebarItemProps[];
|
30
|
+
openedItem?: any;
|
31
|
+
setOpenedItem?: any;
|
32
|
+
selectedItem?: any;
|
33
|
+
isOpen?: boolean;
|
34
|
+
onItemClick?: (value: string[]) => void;
|
35
|
+
onSubItemClick?: (values: string[]) => void;
|
36
|
+
direction?: DirectionType;
|
37
|
+
}
|
38
|
+
declare const SidebarGroup: React.FC<SidebarGroupProps>;
|
39
|
+
declare const SidebarItem: React.FC<{
|
40
|
+
item: AppSidebarItemProps;
|
41
|
+
selectedItem?: any;
|
42
|
+
direction?: DirectionType;
|
43
|
+
onItemClick?: (value: string[]) => void;
|
44
|
+
onSubItemClick?: (values: string[]) => void;
|
45
|
+
isOpen?: boolean;
|
46
|
+
}>;
|
47
|
+
|
48
|
+
export { type AppSidebarItemProps, SidebarGroup, SidebarItem };
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { D as DirectionType } from '../commonTypes-ko_NGEoT.js';
|
3
|
+
|
4
|
+
type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
|
5
|
+
|
6
|
+
type AppSidebarItemProps = {
|
7
|
+
value: string;
|
8
|
+
slug?: string;
|
9
|
+
label: string;
|
10
|
+
badge?: {
|
11
|
+
label: string;
|
12
|
+
color: ChipColors;
|
13
|
+
};
|
14
|
+
icon?: any;
|
15
|
+
subitems?: SubItem[];
|
16
|
+
onClick?: (e: React.MouseEvent) => void;
|
17
|
+
onMouseDown?: (e: React.MouseEvent) => void;
|
18
|
+
};
|
19
|
+
type SubItem = {
|
20
|
+
value: string;
|
21
|
+
label: string;
|
22
|
+
slug?: string;
|
23
|
+
icon?: any;
|
24
|
+
onMouseDown?: (e: React.MouseEvent) => void;
|
25
|
+
onClick?: (e: React.MouseEvent) => void;
|
26
|
+
};
|
27
|
+
interface SidebarGroupProps {
|
28
|
+
title?: string;
|
29
|
+
items: AppSidebarItemProps[];
|
30
|
+
openedItem?: any;
|
31
|
+
setOpenedItem?: any;
|
32
|
+
selectedItem?: any;
|
33
|
+
isOpen?: boolean;
|
34
|
+
onItemClick?: (value: string[]) => void;
|
35
|
+
onSubItemClick?: (values: string[]) => void;
|
36
|
+
direction?: DirectionType;
|
37
|
+
}
|
38
|
+
declare const SidebarGroup: React.FC<SidebarGroupProps>;
|
39
|
+
declare const SidebarItem: React.FC<{
|
40
|
+
item: AppSidebarItemProps;
|
41
|
+
selectedItem?: any;
|
42
|
+
direction?: DirectionType;
|
43
|
+
onItemClick?: (value: string[]) => void;
|
44
|
+
onSubItemClick?: (values: string[]) => void;
|
45
|
+
isOpen?: boolean;
|
46
|
+
}>;
|
47
|
+
|
48
|
+
export { type AppSidebarItemProps, SidebarGroup, SidebarItem };
|