@okam/stack-ui 1.36.1 → 1.37.1
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/CHANGELOG.md +14 -0
- package/components/Dialog/interface.d.ts +5 -3
- package/components/Lightbox/interface.d.ts +2 -0
- package/components/Modal/interface.d.ts +6 -4
- package/components/SidePanel/interface.d.ts +9 -6
- package/hooks/useLabelledOverlay/index.d.ts +9 -0
- package/hooks/useLabelledOverlay/interface.d.ts +14 -0
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/index.mjs +72 -70
- package/index100.js +5 -1
- package/index100.mjs +88 -6
- package/index101.js +1 -12
- package/index101.mjs +6 -40
- package/index102.js +12 -1
- package/index102.mjs +36 -25
- package/index103.js +1 -1
- package/index103.mjs +24 -8
- package/index104.js +1 -7
- package/index104.mjs +7 -13
- package/index105.js +6 -14
- package/index105.mjs +13 -65
- package/index106.js +15 -1
- package/index106.mjs +71 -7
- package/index107.js +1 -41
- package/index107.mjs +7 -106
- package/index108.js +32 -38
- package/index108.mjs +78 -74
- package/index109.js +46 -15
- package/index109.mjs +96 -19
- package/index110.js +16 -1
- package/index110.mjs +20 -37
- package/index111.js +1 -1
- package/index111.mjs +42 -48
- package/index112.js +1 -1
- package/index112.mjs +47 -22
- package/index113.js +1 -2
- package/index113.mjs +22 -21
- package/index123.js +1 -1
- package/index123.mjs +1 -1
- package/index131.js +1 -1
- package/index131.mjs +23 -8
- package/index132.js +1 -1
- package/index132.mjs +1 -1
- package/index133.js +1 -1
- package/index133.mjs +4 -4
- package/index134.js +1 -1
- package/index134.mjs +2 -2
- package/index135.js +1 -1
- package/index135.mjs +9 -9
- package/index139.js +1 -1
- package/index139.mjs +6 -18
- package/index145.js +1 -1
- package/index145.mjs +1 -1
- package/index150.js +1 -1
- package/index150.mjs +54 -18
- package/index151.js +1 -1
- package/index151.mjs +21 -6
- package/index152.js +1 -1
- package/index152.mjs +5 -11
- package/index153.js +1 -1
- package/index153.mjs +12 -57
- package/index159.js +1 -1
- package/index159.mjs +1 -1
- package/index162.js +1 -1
- package/index162.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +1 -1
- package/index18.js +1 -1
- package/index18.mjs +1 -1
- package/index196.js +1 -1
- package/index196.mjs +122 -138
- package/index197.js +1 -1
- package/index197.mjs +129 -192
- package/index198.js +1 -1
- package/index198.mjs +44 -22
- package/index199.js +1 -1
- package/index199.mjs +14 -49
- package/index2.js +1 -1
- package/index2.mjs +21 -21
- package/index200.js +1 -1
- package/index200.mjs +93 -46
- package/index201.js +1 -1
- package/index201.mjs +98 -89
- package/index202.js +1 -1
- package/index202.mjs +5 -72
- package/index203.js +1 -1
- package/index203.mjs +3 -68
- package/index204.js +1 -1
- package/index204.mjs +125 -7
- package/index205.js +1 -1
- package/index205.mjs +29 -11
- package/index206.js +1 -1
- package/index206.mjs +40 -113
- package/index207.js +1 -1
- package/index207.mjs +41 -131
- package/index208.js +1 -1
- package/index208.mjs +36 -43
- package/index209.js +1 -1
- package/index209.mjs +110 -11
- package/index210.js +1 -1
- package/index210.mjs +59 -77
- package/index211.js +1 -1
- package/index211.mjs +94 -99
- package/index212.js +1 -1
- package/index212.mjs +98 -5
- package/index213.js +1 -1
- package/index213.mjs +140 -3
- package/index214.js +1 -1
- package/index214.mjs +191 -119
- package/index215.js +1 -1
- package/index215.mjs +22 -29
- package/index216.js +1 -1
- package/index216.mjs +49 -51
- package/index217.js +1 -1
- package/index217.mjs +47 -43
- package/index218.js +1 -1
- package/index218.mjs +95 -35
- package/index219.js +1 -1
- package/index219.mjs +72 -114
- package/index220.js +1 -1
- package/index220.mjs +67 -76
- package/index221.js +1 -1
- package/index221.mjs +7 -101
- package/index222.js +1 -1
- package/index222.mjs +12 -98
- package/index250.js +1 -1
- package/index250.mjs +1 -1
- package/index255.js +1 -1
- package/index255.mjs +5 -5
- package/index256.js +1 -1
- package/index256.mjs +1 -1
- package/index257.js +1 -1
- package/index257.mjs +4 -4
- package/index258.js +1 -1
- package/index258.mjs +1 -1
- package/index259.js +1 -1
- package/index259.mjs +1 -1
- package/index260.js +1 -1
- package/index260.mjs +4 -4
- package/index261.js +1 -1
- package/index261.mjs +4 -4
- package/index262.js +1 -1
- package/index262.mjs +1 -1
- package/index263.js +1 -1
- package/index263.mjs +4 -4
- package/index264.js +1 -1
- package/index264.mjs +4 -4
- package/index265.js +1 -1
- package/index265.mjs +1 -1
- package/index266.js +1 -1
- package/index266.mjs +4 -4
- package/index267.js +1 -1
- package/index267.mjs +4 -4
- package/index268.js +1 -1
- package/index268.mjs +1 -1
- package/index269.js +1 -1
- package/index269.mjs +1 -1
- package/index270.js +1 -1
- package/index270.mjs +4 -4
- package/index271.js +1 -1
- package/index271.mjs +4 -4
- package/index272.js +1 -1
- package/index272.mjs +1 -1
- package/index273.js +1 -1
- package/index273.mjs +4 -4
- package/index274.js +1 -1
- package/index274.mjs +4 -4
- package/index275.js +1 -1
- package/index275.mjs +4 -4
- package/index276.js +1 -1
- package/index276.mjs +1 -1
- package/index277.js +1 -1
- package/index277.mjs +4 -4
- package/index278.js +1 -1
- package/index278.mjs +4 -4
- package/index279.js +1 -1
- package/index279.mjs +4 -4
- package/index280.js +1 -1
- package/index280.mjs +4 -4
- package/index281.js +1 -1
- package/index281.mjs +4 -4
- package/index282.js +1 -1
- package/index282.mjs +1 -1
- package/index283.js +1 -1
- package/index283.mjs +1 -1
- package/index284.js +1 -1
- package/index284.mjs +1 -1
- package/index285.js +1 -1
- package/index285.mjs +4 -4
- package/index286.js +1 -1
- package/index286.mjs +4 -4
- package/index287.js +1 -1
- package/index287.mjs +4 -4
- package/index288.js +1 -1
- package/index288.mjs +4 -4
- package/index289.js +1 -1
- package/index289.mjs +5 -5
- package/index30.js +1 -1
- package/index30.mjs +15 -12
- package/index310.js +1 -1
- package/index310.mjs +1 -1
- package/index35.js +1 -1
- package/index35.mjs +20 -20
- package/index38.js +1 -1
- package/index38.mjs +13 -13
- package/index4.js +1 -1
- package/index4.mjs +1 -1
- package/index43.js +1 -1
- package/index43.mjs +1 -1
- package/index45.js +1 -1
- package/index45.mjs +1 -1
- package/index75.js +1 -1
- package/index75.mjs +34 -29
- package/index8.js +1 -1
- package/index8.mjs +45 -34
- package/index81.js +1 -1
- package/index81.mjs +1 -1
- package/index89.js +2 -1
- package/index89.mjs +20 -5
- package/index9.js +1 -1
- package/index9.mjs +32 -30
- package/index90.js +1 -1
- package/index90.mjs +5 -2
- package/index91.js +1 -6
- package/index91.mjs +2 -94
- package/index92.js +6 -1
- package/index92.mjs +79 -54
- package/index93.js +1 -1
- package/index93.mjs +61 -33
- package/index94.js +1 -42
- package/index94.mjs +34 -67
- package/index95.js +38 -60
- package/index95.mjs +65 -219
- package/index96.js +63 -8
- package/index96.mjs +215 -44
- package/index97.js +9 -1
- package/index97.mjs +48 -36
- package/index98.js +1 -1
- package/index98.mjs +40 -8
- package/index99.js +1 -5
- package/index99.mjs +10 -85
- package/package.json +1 -1
- package/providers/SidePanel/interface.d.ts +13 -4
- package/theme/SidePanel/index.d.ts +1 -1
- package/components/Lightbox/hooks/overlay/index.d.ts +0 -79
package/index97.mjs
CHANGED
|
@@ -1,47 +1,59 @@
|
|
|
1
1
|
import { tv as e } from "tailwind-variants";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import o from "./index95.mjs";
|
|
3
|
+
const r = e({
|
|
4
|
+
base: "flex justify-between items-center gap-4 relative"
|
|
5
|
+
}), t = e({
|
|
6
|
+
base: `
|
|
7
|
+
bg-color-1-300
|
|
8
|
+
m-2
|
|
9
|
+
rounded-lg
|
|
10
|
+
order-2
|
|
11
|
+
focus-visible:outline-2
|
|
12
|
+
focus-visible:outline-black
|
|
13
|
+
focus-visible:outline-offset-2
|
|
14
|
+
`
|
|
15
|
+
}), a = e({
|
|
16
|
+
base: "m-4"
|
|
17
|
+
}), s = e({
|
|
18
|
+
extend: o,
|
|
6
19
|
variants: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
isDisabled: {
|
|
12
|
-
true: "text-gray-6"
|
|
20
|
+
order: {
|
|
21
|
+
prev: "order-1",
|
|
22
|
+
next: "order-3"
|
|
13
23
|
}
|
|
14
|
-
},
|
|
15
|
-
defaultVariants: {
|
|
16
|
-
color: "black"
|
|
17
24
|
}
|
|
18
|
-
}),
|
|
19
|
-
base: "
|
|
25
|
+
}), i = e({
|
|
26
|
+
base: "flex gap-4 justify-center absolute z-10 bottom-4 left-0 right-0"
|
|
27
|
+
}), l = e({
|
|
28
|
+
base: "w-4 h-4 rounded-full block bg-color-1-600 focus-ring-black",
|
|
20
29
|
variants: {
|
|
21
|
-
|
|
22
|
-
true: "
|
|
23
|
-
|
|
24
|
-
isFocused: {
|
|
25
|
-
true: "outline-black [outline-offset: 2px]"
|
|
26
|
-
},
|
|
27
|
-
isError: {
|
|
28
|
-
true: "border-red-500"
|
|
30
|
+
active: {
|
|
31
|
+
true: "bg-color-1-100",
|
|
32
|
+
false: ""
|
|
29
33
|
}
|
|
30
34
|
}
|
|
35
|
+
}), n = e({
|
|
36
|
+
base: "bg-color-1-400 "
|
|
31
37
|
}), c = e({
|
|
32
|
-
base: "
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
base: ""
|
|
39
|
+
}), b = {
|
|
40
|
+
carouselWrapper: r,
|
|
41
|
+
swiper: {
|
|
42
|
+
swiper: t,
|
|
43
|
+
wrapper: a
|
|
44
|
+
},
|
|
45
|
+
navigation: {
|
|
46
|
+
button: s
|
|
47
|
+
},
|
|
48
|
+
pagination: {
|
|
49
|
+
wrapper: i,
|
|
50
|
+
bullet: l
|
|
51
|
+
},
|
|
52
|
+
slide: {
|
|
53
|
+
wrapper: n,
|
|
54
|
+
container: c
|
|
37
55
|
}
|
|
38
|
-
}
|
|
39
|
-
base: "text-white w-4 h-4 [&_svg]:w-4 [&_svg]:h-4"
|
|
40
|
-
});
|
|
56
|
+
};
|
|
41
57
|
export {
|
|
42
|
-
|
|
43
|
-
c as checkMark,
|
|
44
|
-
s as checkMarkIcon,
|
|
45
|
-
t as checkboxContainer,
|
|
46
|
-
o as checkboxLabel
|
|
58
|
+
b as default
|
|
47
59
|
};
|
package/index98.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("tailwind-variants"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("tailwind-variants"),r=e.tv({base:"flex focus-ring-black"}),t=e.tv({base:"hover:cursor-pointer",variants:{color:{gray:"text-gray-300",black:"text-black"},isDisabled:{true:"text-gray-6"}},defaultVariants:{color:"black"}}),c=e.tv({base:"w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",variants:{isDisabled:{true:"border-gray-6"},isFocused:{true:"outline-black [outline-offset: 2px]"},isError:{true:"border-red-500"}}}),o=e.tv({base:"hidden w-4 h-4 bg-gray-300 rounded-full",variants:{selected:{true:"block text-white"}}}),a=e.tv({base:"text-white w-4 h-4 [&_svg]:w-4 [&_svg]:h-4"});exports.checkBox=c;exports.checkMark=o;exports.checkMarkIcon=a;exports.checkboxContainer=r;exports.checkboxLabel=t;
|
package/index98.mjs
CHANGED
|
@@ -1,15 +1,47 @@
|
|
|
1
|
-
import { tv as
|
|
2
|
-
const t =
|
|
3
|
-
base: "
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
const t = e({
|
|
3
|
+
base: "flex focus-ring-black"
|
|
4
|
+
}), o = e({
|
|
5
|
+
base: "hover:cursor-pointer",
|
|
4
6
|
variants: {
|
|
7
|
+
color: {
|
|
8
|
+
gray: "text-gray-300",
|
|
9
|
+
black: "text-black"
|
|
10
|
+
},
|
|
5
11
|
isDisabled: {
|
|
6
|
-
true: "
|
|
12
|
+
true: "text-gray-6"
|
|
7
13
|
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
color: "black"
|
|
8
17
|
}
|
|
9
|
-
}),
|
|
10
|
-
base: "
|
|
18
|
+
}), a = e({
|
|
19
|
+
base: "w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",
|
|
20
|
+
variants: {
|
|
21
|
+
isDisabled: {
|
|
22
|
+
true: "border-gray-6"
|
|
23
|
+
},
|
|
24
|
+
isFocused: {
|
|
25
|
+
true: "outline-black [outline-offset: 2px]"
|
|
26
|
+
},
|
|
27
|
+
isError: {
|
|
28
|
+
true: "border-red-500"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}), c = e({
|
|
32
|
+
base: "hidden w-4 h-4 bg-gray-300 rounded-full",
|
|
33
|
+
variants: {
|
|
34
|
+
selected: {
|
|
35
|
+
true: "block text-white"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}), s = e({
|
|
39
|
+
base: "text-white w-4 h-4 [&_svg]:w-4 [&_svg]:h-4"
|
|
11
40
|
});
|
|
12
41
|
export {
|
|
13
|
-
|
|
14
|
-
c as
|
|
42
|
+
a as checkBox,
|
|
43
|
+
c as checkMark,
|
|
44
|
+
s as checkMarkIcon,
|
|
45
|
+
t as checkboxContainer,
|
|
46
|
+
o as checkboxLabel
|
|
15
47
|
};
|
package/index99.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("tailwind-variants"),t=e.tv({base
|
|
2
|
-
focus-ring-black
|
|
3
|
-
transition-all
|
|
4
|
-
duration-200
|
|
5
|
-
`}),a=e.tv({base:"relative inline-flex flex-col text-left"}),r=e.tv({extend:t,base:"flex gap-4 justify-between items-center border-2 border-color-1-500 rounded-md bg-gray-100 p-4",variants:{dateFieldShown:{true:"w-full",false:"w-fit"},isInvalid:{true:"bg-red-100 border-red-500",false:"bg-gray-100 border-color-1-500"}},defaultVariants:{dateFieldShown:!0}}),d=e.tv({base:"text-white bg-color-1-500 rounded-md h-full p-2"}),o=e.tv({base:"text-color-1-500 font-bold pb-2 text-2xl"}),n=e.tv({base:"w-fit flex flex-col gap-4"}),i=e.tv({base:"fixed inset-0"}),l=e.tv({base:"absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"}),c=e.tv({base:"flex flex-col gap-4"}),s=e.tv({base:"flex gap-2 items-center justify-between",defaultVariants:{dateFieldShown:!0},variants:{dateFieldShown:{true:"",false:"hidden"}}}),b=e.tv({base:"flex bg-gray-300 p-2 rounded-md"}),u=e.tv({extend:t,base:"rounded-sm p-1 focus:bg-color-1-400 focus:text-white"}),P=e.tv({base:"rounded-lg p-2 border-2 border-red-500",variants:{position:{inner:"text-red-500 bg-white",outer:"text-black bg-red-100"}}}),f={container:a,wrapper:n,button:r,icon:d,dateField:b,dateSegment:u,label:o,calendarPopover:l,calendarUnderlay:i,dialog:c,dateFieldContainer:s,invalidIndicator:P};exports.datePickerButton=r;exports.datePickerCalendarPopoverContainer=l;exports.datePickerCalendarPopoverUnderlay=i;exports.datePickerContainer=a;exports.datePickerDateField=b;exports.datePickerDateFieldContainer=s;exports.datePickerDateSegment=u;exports.datePickerDialog=c;exports.datePickerIcon=d;exports.datePickerInvalidIndicator=P;exports.datePickerLabel=o;exports.datePickerTheme=f;exports.datePickerWrapper=n;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("tailwind-variants"),o=e.tv({base:"block",variants:{isDisabled:{true:"opacity-60 pointer-events-none"}}}),t=e.tv({base:"flex flex-col gap-4 py-8"});exports.checkboxGroup=o;exports.checkboxGroupItemsGroup=t;
|
package/index99.mjs
CHANGED
|
@@ -1,90 +1,15 @@
|
|
|
1
|
-
import { tv as
|
|
2
|
-
const t =
|
|
3
|
-
base:
|
|
4
|
-
focus-ring-black
|
|
5
|
-
transition-all
|
|
6
|
-
duration-200
|
|
7
|
-
`
|
|
8
|
-
}), a = e({
|
|
9
|
-
base: "relative inline-flex flex-col text-left"
|
|
10
|
-
}), r = e({
|
|
11
|
-
extend: t,
|
|
12
|
-
base: "flex gap-4 justify-between items-center border-2 border-color-1-500 rounded-md bg-gray-100 p-4",
|
|
1
|
+
import { tv as o } from "tailwind-variants";
|
|
2
|
+
const t = o({
|
|
3
|
+
base: "block",
|
|
13
4
|
variants: {
|
|
14
|
-
|
|
15
|
-
true: "
|
|
16
|
-
false: "w-fit"
|
|
17
|
-
},
|
|
18
|
-
isInvalid: {
|
|
19
|
-
true: "bg-red-100 border-red-500",
|
|
20
|
-
false: "bg-gray-100 border-color-1-500"
|
|
5
|
+
isDisabled: {
|
|
6
|
+
true: "opacity-60 pointer-events-none"
|
|
21
7
|
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
dateFieldShown: !0
|
|
25
8
|
}
|
|
26
|
-
}),
|
|
27
|
-
base: "
|
|
28
|
-
})
|
|
29
|
-
base: "text-color-1-500 font-bold pb-2 text-2xl"
|
|
30
|
-
}), n = e({
|
|
31
|
-
base: "w-fit flex flex-col gap-4"
|
|
32
|
-
}), i = e({
|
|
33
|
-
base: "fixed inset-0"
|
|
34
|
-
}), l = e({
|
|
35
|
-
base: "absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"
|
|
36
|
-
}), c = e({
|
|
37
|
-
base: "flex flex-col gap-4"
|
|
38
|
-
}), s = e({
|
|
39
|
-
base: "flex gap-2 items-center justify-between",
|
|
40
|
-
defaultVariants: {
|
|
41
|
-
dateFieldShown: !0
|
|
42
|
-
},
|
|
43
|
-
variants: {
|
|
44
|
-
dateFieldShown: {
|
|
45
|
-
true: "",
|
|
46
|
-
false: "hidden"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}), b = e({
|
|
50
|
-
base: "flex bg-gray-300 p-2 rounded-md"
|
|
51
|
-
}), f = e({
|
|
52
|
-
extend: t,
|
|
53
|
-
base: "rounded-sm p-1 focus:bg-color-1-400 focus:text-white"
|
|
54
|
-
}), u = e({
|
|
55
|
-
base: "rounded-lg p-2 border-2 border-red-500",
|
|
56
|
-
variants: {
|
|
57
|
-
position: {
|
|
58
|
-
inner: "text-red-500 bg-white",
|
|
59
|
-
outer: "text-black bg-red-100"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}), p = {
|
|
63
|
-
container: a,
|
|
64
|
-
wrapper: n,
|
|
65
|
-
button: r,
|
|
66
|
-
icon: o,
|
|
67
|
-
dateField: b,
|
|
68
|
-
dateSegment: f,
|
|
69
|
-
label: d,
|
|
70
|
-
calendarPopover: l,
|
|
71
|
-
calendarUnderlay: i,
|
|
72
|
-
dialog: c,
|
|
73
|
-
dateFieldContainer: s,
|
|
74
|
-
invalidIndicator: u
|
|
75
|
-
};
|
|
9
|
+
}), c = o({
|
|
10
|
+
base: "flex flex-col gap-4 py-8"
|
|
11
|
+
});
|
|
76
12
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
i as datePickerCalendarPopoverUnderlay,
|
|
80
|
-
a as datePickerContainer,
|
|
81
|
-
b as datePickerDateField,
|
|
82
|
-
s as datePickerDateFieldContainer,
|
|
83
|
-
f as datePickerDateSegment,
|
|
84
|
-
c as datePickerDialog,
|
|
85
|
-
o as datePickerIcon,
|
|
86
|
-
u as datePickerInvalidIndicator,
|
|
87
|
-
d as datePickerLabel,
|
|
88
|
-
p as datePickerTheme,
|
|
89
|
-
n as datePickerWrapper
|
|
13
|
+
t as checkboxGroup,
|
|
14
|
+
c as checkboxGroupItemsGroup
|
|
90
15
|
};
|
package/package.json
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import type { OverlayTriggerState } from '@react-stately/overlays';
|
|
1
|
+
import type { OverlayTriggerProps, OverlayTriggerState } from '@react-stately/overlays';
|
|
2
2
|
import type { DOMProps } from '@react-types/shared';
|
|
3
3
|
import type React from 'react';
|
|
4
4
|
import type { ButtonHTMLAttributes } from 'react';
|
|
5
|
-
import type {
|
|
6
|
-
export
|
|
5
|
+
import type { OverlayTriggerProps as OverlayTriggerPropsAria, AriaButtonProps } from 'react-aria';
|
|
6
|
+
export interface TSidePanelProviderProps extends OverlayTriggerProps, Partial<OverlayTriggerPropsAria> {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
defaultSelectedKey: string;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `defaultOpen` instead
|
|
11
|
+
*/
|
|
9
12
|
defaultIsOpen?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `onOpenChange` instead
|
|
15
|
+
*/
|
|
10
16
|
onOpenCallback?: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `onOpenChange` instead
|
|
19
|
+
*/
|
|
11
20
|
onCloseCallback?: () => void;
|
|
12
|
-
}
|
|
21
|
+
}
|
|
13
22
|
export type TSidePanelButtonProps = Omit<AriaButtonProps<'button'>, 'onPress'> & {
|
|
14
23
|
handlePress?: AriaButtonProps<'button'>['onPress'];
|
|
15
24
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const sidePanelWrapper: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "m-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "m-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
2
2
|
export declare const sidePanelContainer: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "h-full w-full flex justify-end", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "h-full w-full flex justify-end", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
3
|
-
export declare const sidePanelInnerContainer: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "bg-
|
|
3
|
+
export declare const sidePanelInnerContainer: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "bg-gray-300 h-full w-full overflow-y-auto", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "bg-gray-300 h-full w-full overflow-y-auto", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { RefObject } from 'react';
|
|
2
|
-
import type { OverlayTriggerProps } from 'react-aria';
|
|
3
|
-
import type { OverlayTriggerState } from 'react-stately';
|
|
4
|
-
declare function useOverlayHook(props: OverlayTriggerProps, state: OverlayTriggerState, ref?: RefObject<Element>): {
|
|
5
|
-
openTriggerProps: {
|
|
6
|
-
isDisabled?: boolean | undefined;
|
|
7
|
-
children?: import("react").ReactNode;
|
|
8
|
-
onPressStart?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
9
|
-
onPressEnd?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
10
|
-
onPressChange?: ((isPressed: boolean) => void) | undefined;
|
|
11
|
-
onPressUp?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
12
|
-
onClick?: ((e: import("react").MouseEvent<import("@react-types/shared").FocusableElement, MouseEvent>) => void) | undefined;
|
|
13
|
-
autoFocus?: boolean | undefined;
|
|
14
|
-
onFocus?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
|
15
|
-
onBlur?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
|
16
|
-
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
17
|
-
onKeyDown?: ((e: import("@react-types/shared").KeyboardEvent) => void) | undefined;
|
|
18
|
-
onKeyUp?: ((e: import("@react-types/shared").KeyboardEvent) => void) | undefined;
|
|
19
|
-
href?: string | undefined;
|
|
20
|
-
target?: string | undefined;
|
|
21
|
-
rel?: string | undefined;
|
|
22
|
-
elementType?: "button" | import("react").JSXElementConstructor<any> | undefined;
|
|
23
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
24
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
25
|
-
'aria-controls'?: string | undefined;
|
|
26
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
27
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
|
|
28
|
-
type?: "button" | "reset" | "submit" | undefined;
|
|
29
|
-
preventFocusOnPress?: boolean | undefined;
|
|
30
|
-
excludeFromTabOrder?: boolean | undefined;
|
|
31
|
-
id?: string | undefined;
|
|
32
|
-
'aria-label'?: string | undefined;
|
|
33
|
-
'aria-labelledby': string;
|
|
34
|
-
'aria-describedby'?: string | undefined;
|
|
35
|
-
'aria-details'?: string | undefined;
|
|
36
|
-
handlePress: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
37
|
-
};
|
|
38
|
-
triggerProps: {
|
|
39
|
-
isDisabled?: boolean | undefined;
|
|
40
|
-
children?: import("react").ReactNode;
|
|
41
|
-
onPressStart?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
42
|
-
onPressEnd?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
43
|
-
onPressChange?: ((isPressed: boolean) => void) | undefined;
|
|
44
|
-
onPressUp?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
45
|
-
onClick?: ((e: import("react").MouseEvent<import("@react-types/shared").FocusableElement, MouseEvent>) => void) | undefined;
|
|
46
|
-
autoFocus?: boolean | undefined;
|
|
47
|
-
onFocus?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
|
48
|
-
onBlur?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
|
49
|
-
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
50
|
-
onKeyDown?: ((e: import("@react-types/shared").KeyboardEvent) => void) | undefined;
|
|
51
|
-
onKeyUp?: ((e: import("@react-types/shared").KeyboardEvent) => void) | undefined;
|
|
52
|
-
href?: string | undefined;
|
|
53
|
-
target?: string | undefined;
|
|
54
|
-
rel?: string | undefined;
|
|
55
|
-
elementType?: "button" | import("react").JSXElementConstructor<any> | undefined;
|
|
56
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
57
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
58
|
-
'aria-controls'?: string | undefined;
|
|
59
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
60
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
|
|
61
|
-
type?: "button" | "reset" | "submit" | undefined;
|
|
62
|
-
preventFocusOnPress?: boolean | undefined;
|
|
63
|
-
excludeFromTabOrder?: boolean | undefined;
|
|
64
|
-
id?: string | undefined;
|
|
65
|
-
'aria-label'?: string | undefined;
|
|
66
|
-
'aria-labelledby'?: string | undefined;
|
|
67
|
-
'aria-describedby'?: string | undefined;
|
|
68
|
-
'aria-details'?: string | undefined;
|
|
69
|
-
handlePress: ((e: import("react-aria").PressEvent) => void) | undefined;
|
|
70
|
-
};
|
|
71
|
-
labelProps: {
|
|
72
|
-
id: string;
|
|
73
|
-
};
|
|
74
|
-
overlayProps: {
|
|
75
|
-
'aria-labelledby': string;
|
|
76
|
-
id?: string | undefined;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
export default useOverlayHook;
|