@okam/stack-ui 1.29.1 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Accordion/components/AccordionItem.d.ts +1 -0
- package/components/Accordion/index.d.ts +2 -1
- package/components/Accordion/interface.d.ts +3 -2
- package/components/Alerts/components/AlertsCloseButton.d.ts +1 -1
- package/components/Alerts/index.d.ts +2 -1
- package/components/Alerts/interface.d.ts +4 -3
- package/components/Box/index.d.ts +3 -2
- package/components/Button/index.d.ts +8 -4
- package/components/Button/interface.d.ts +3 -2
- package/components/Calendar/index.d.ts +5 -1
- package/components/Calendar/interface.d.ts +2 -1
- package/components/Carousel/components/CarouselNavigationButton.d.ts +3 -3
- package/components/Date/index.d.ts +2 -1
- package/components/Date/interface.d.ts +2 -1
- package/components/Icon/index.d.ts +2 -1
- package/components/Icon/interface.d.ts +2 -1
- package/components/Lightbox/hooks/overlay/index.d.ts +75 -0
- package/components/Lightbox/index.d.ts +2 -1
- package/components/Lightbox/interface.d.ts +3 -2
- package/components/Menu/Menu.d.ts +2 -1
- package/components/Menu/interface.d.ts +5 -4
- package/components/Modal/index.d.ts +2 -1
- package/components/Modal/interface.d.ts +2 -1
- package/components/Popover/index.d.ts +2 -1
- package/components/Popover/interface.d.ts +3 -2
- package/components/ShareButton/index.d.ts +2 -1
- package/components/ShareButton/interface.d.ts +2 -2
- package/components/SidePanel/index.d.ts +3 -3
- package/components/SidePanel/interface.d.ts +5 -4
- package/components/Typography/index.d.ts +3 -2
- package/components/Video/index.d.ts +2 -1
- package/components/Video/interface.d.ts +2 -1
- package/components/WysiwygBlock/index.d.ts +2 -1
- package/components/WysiwygBlock/interface.d.ts +2 -1
- package/components/fields/Checkbox/Checkbox.interface.d.ts +2 -1
- package/components/fields/Checkbox/index.d.ts +2 -1
- package/components/fields/CheckboxGroup/index.d.ts +2 -1
- package/components/fields/CheckboxGroup/interface.d.ts +2 -1
- package/components/fields/DatePicker/index.d.ts +2 -1
- package/components/fields/DatePicker/interface.d.ts +2 -1
- package/components/fields/Radio/Radio.interface.d.ts +3 -2
- package/components/fields/Radio/index.d.ts +3 -2
- package/components/fields/RadioGroup/index.d.ts +2 -1
- package/components/fields/RadioGroup/interface.d.ts +2 -1
- package/components/fields/SearchField/index.d.ts +2 -1
- package/components/fields/SearchField/interface.d.ts +2 -1
- package/components/fields/Select/Select.d.ts +2 -1
- package/components/fields/Select/Select.interface.d.ts +3 -2
- package/components/fields/TextArea/index.d.ts +2 -1
- package/components/fields/TextInputField/interface.d.ts +3 -2
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.mjs +41 -38
- package/index100.js +1 -2
- package/index100.mjs +22 -21
- package/index101.js +2 -1
- package/index101.mjs +22 -63
- package/index102.js +1 -1
- package/index102.mjs +58 -24
- package/index103.js +1 -1
- package/index103.mjs +29 -52
- package/index104.js +1 -1
- package/index104.mjs +52 -4
- package/index105.js +1 -1
- package/index105.mjs +4 -11
- package/index106.js +1 -1
- package/index106.mjs +11 -14
- package/index107.js +1 -1
- package/index107.mjs +13 -22
- package/index108.js +1 -1
- package/index108.mjs +19 -19
- package/index109.js +1 -1
- package/index109.mjs +22 -38
- package/index11.js +1 -1
- package/index11.mjs +2 -2
- package/index110.js +1 -2
- package/index110.mjs +38 -12
- package/index111.js +2 -1
- package/index111.mjs +12 -7
- package/index112.js +1 -1
- package/index112.mjs +7 -21
- package/index113.js +1 -1
- package/index113.mjs +21 -38
- package/index114.js +1 -1
- package/index114.mjs +38 -49
- package/index115.js +1 -1
- package/index115.mjs +49 -40
- package/index116.js +1 -1
- package/index116.mjs +40 -13
- package/index117.js +1 -1
- package/index117.mjs +14 -26
- package/index118.js +1 -1
- package/index118.mjs +29 -18
- package/index119.js +1 -1
- package/index119.mjs +19 -8
- package/index120.js +1 -1
- package/index120.mjs +9 -30
- package/index121.js +1 -1
- package/index121.mjs +30 -15
- package/index122.js +1 -1
- package/index122.mjs +13 -15
- package/index123.js +1 -1
- package/index123.mjs +17 -21
- package/index124.js +1 -1
- package/index124.mjs +21 -11
- package/index125.js +1 -2
- package/index125.mjs +11 -22
- package/index126.js +2 -1
- package/index126.mjs +22 -12
- package/index127.js +1 -1
- package/index127.mjs +12 -46
- package/index128.js +1 -1
- package/index128.mjs +46 -241
- package/index129.js +1 -2
- package/index129.mjs +241 -13
- package/index13.js +1 -1
- package/index13.mjs +1 -1
- package/index130.js +2 -1
- package/index130.mjs +12 -29
- package/index131.js +1 -1
- package/index131.mjs +30 -51
- package/index132.js +1 -1
- package/index132.mjs +49 -25
- package/index133.js +1 -1
- package/index133.mjs +25 -19
- package/index134.js +1 -1
- package/index134.mjs +17 -58
- package/index135.js +1 -1
- package/index135.mjs +57 -90
- package/index136.js +1 -1
- package/index136.mjs +91 -28
- package/index137.js +1 -1
- package/index137.mjs +31 -119
- package/index138.js +1 -1
- package/index138.mjs +119 -25
- package/index139.js +1 -1
- package/index139.mjs +25 -122
- package/index14.js +1 -1
- package/index14.mjs +3 -3
- package/index140.js +1 -1
- package/index140.mjs +122 -132
- package/index141.js +1 -1
- package/index141.mjs +132 -12
- package/index142.js +1 -1
- package/index142.mjs +12 -93
- package/index143.js +1 -1
- package/index143.mjs +87 -98
- package/index144.js +1 -1
- package/index144.mjs +106 -5
- package/index145.js +1 -1
- package/index145.mjs +5 -3
- package/index146.js +1 -1
- package/index146.mjs +3 -125
- package/index147.js +1 -1
- package/index147.mjs +117 -21
- package/index148.js +1 -1
- package/index148.mjs +15 -37
- package/index149.js +1 -1
- package/index149.mjs +41 -34
- package/index150.js +1 -1
- package/index150.mjs +32 -25
- package/index151.js +1 -1
- package/index151.mjs +22 -98
- package/index152.js +1 -1
- package/index152.mjs +99 -63
- package/index153.js +1 -1
- package/index153.mjs +55 -79
- package/index154.js +1 -1
- package/index154.mjs +102 -98
- package/index155.js +1 -1
- package/index155.mjs +98 -200
- package/index156.js +1 -1
- package/index156.mjs +186 -51
- package/index157.js +1 -1
- package/index157.mjs +51 -128
- package/index158.js +1 -1
- package/index158.mjs +129 -107
- package/index159.js +1 -1
- package/index159.mjs +101 -199
- package/index16.js +1 -1
- package/index16.mjs +2 -2
- package/index160.js +1 -1
- package/index160.mjs +198 -171
- package/index161.js +1 -1
- package/index161.mjs +182 -61
- package/index162.js +1 -1
- package/index162.mjs +60 -249
- package/index163.js +1 -1
- package/index163.mjs +249 -88
- package/index164.js +1 -1
- package/index164.mjs +93 -170
- package/index165.js +1 -1
- package/index165.mjs +170 -80
- package/index166.js +1 -1
- package/index166.mjs +75 -49
- package/index167.js +1 -1
- package/index167.mjs +49 -117
- package/index168.js +1 -1
- package/index168.mjs +118 -108
- package/index169.js +1 -1
- package/index169.mjs +106 -112
- package/index170.js +1 -1
- package/index170.mjs +113 -63
- package/index171.js +1 -1
- package/index171.mjs +70 -108
- package/index172.js +1 -1
- package/index172.mjs +108 -50
- package/index173.js +1 -1
- package/index173.mjs +34 -75
- package/index174.js +1 -1
- package/index174.mjs +71 -48
- package/index175.js +1 -1
- package/index175.mjs +57 -43
- package/index176.js +1 -1
- package/index176.mjs +43 -86
- package/index177.js +1 -5
- package/index177.mjs +81 -62
- package/index178.js +5 -1
- package/index178.mjs +72 -2003
- package/index179.js +1 -1
- package/index179.mjs +2006 -54
- package/index18.js +1 -1
- package/index18.mjs +7 -7
- package/index180.js +1 -1
- package/index180.mjs +56 -185
- package/index181.js +1 -1
- package/index181.mjs +188 -5
- package/index182.js +1 -1
- package/index182.mjs +5 -130
- package/index183.js +1 -1
- package/index183.mjs +123 -172
- package/index184.js +1 -1
- package/index184.mjs +178 -8
- package/index185.js +1 -1
- package/index185.mjs +9 -3
- package/index186.js +1 -1
- package/index186.mjs +3 -36
- package/index187.js +1 -1
- package/index187.mjs +36 -5
- package/index188.js +1 -1
- package/index188.mjs +5 -29
- package/index189.js +1 -1
- package/index189.mjs +29 -6
- package/index19.js +1 -1
- package/index19.mjs +2 -2
- package/index190.js +1 -1
- package/index190.mjs +6 -313
- package/index191.js +1 -1
- package/index191.mjs +327 -179
- package/index192.js +1 -1
- package/index192.mjs +183 -8
- package/index193.js +1 -1
- package/index193.mjs +7 -25
- package/index194.js +1 -1
- package/index194.mjs +26 -55
- package/index195.js +1 -1
- package/index195.mjs +55 -46
- package/index196.js +1 -1
- package/index196.mjs +45 -123
- package/index197.js +1 -1
- package/index197.mjs +110 -5
- package/index198.js +1 -1
- package/index198.mjs +31 -27
- package/index199.js +1 -1
- package/index199.mjs +6 -7
- package/index2.js +1 -1
- package/index2.mjs +19 -19
- package/index20.js +1 -1
- package/index20.mjs +1 -1
- package/index200.js +1 -1
- package/index200.mjs +28 -7
- package/index201.js +1 -1
- package/index201.mjs +7 -8
- package/index202.js +1 -1
- package/index202.mjs +6 -3
- package/index203.js +1 -1
- package/index203.mjs +7 -5
- package/index204.js +1 -1
- package/index204.mjs +4 -9
- package/index205.js +1 -0
- package/index205.mjs +8 -0
- package/index206.js +1 -0
- package/index206.mjs +12 -0
- package/index21.js +1 -1
- package/index21.mjs +8 -8
- package/index22.js +1 -1
- package/index22.mjs +2 -2
- package/index23.js +1 -1
- package/index23.mjs +3 -3
- package/index24.js +1 -1
- package/index24.mjs +14 -14
- package/index26.js +1 -1
- package/index26.mjs +28 -21
- package/index27.js +1 -1
- package/index27.mjs +12 -12
- package/index28.js +1 -1
- package/index28.mjs +6 -6
- package/index29.js +1 -1
- package/index29.mjs +1 -1
- package/index30.js +1 -1
- package/index30.mjs +14 -8
- package/index31.js +1 -1
- package/index31.mjs +18 -18
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index33.mjs +43 -43
- package/index34.js +1 -1
- package/index34.mjs +1 -1
- package/index35.js +1 -1
- package/index35.mjs +3 -3
- package/index36.mjs +10 -10
- package/index4.js +1 -1
- package/index4.mjs +3 -3
- package/index6.js +1 -1
- package/index6.mjs +34 -33
- package/index65.js +1 -1
- package/index65.mjs +1 -1
- package/index66.js +1 -1
- package/index66.mjs +2 -2
- package/index67.js +1 -1
- package/index67.mjs +1 -1
- package/index69.js +1 -1
- package/index69.mjs +1 -1
- package/index7.mjs +4 -4
- package/index70.js +1 -1
- package/index70.mjs +1 -1
- package/index71.js +1 -1
- package/index71.mjs +1 -1
- package/index72.js +2 -1
- package/index72.mjs +27 -2
- package/index73.js +1 -2
- package/index73.mjs +2 -9
- package/index74.js +1 -1
- package/index74.mjs +7 -6
- package/index75.js +1 -1
- package/index75.mjs +6 -6
- package/index76.js +1 -1
- package/index76.mjs +6 -6
- package/index77.js +2 -1
- package/index77.mjs +8 -25
- package/index78.js +1 -1
- package/index78.mjs +25 -2
- package/index79.js +1 -6
- package/index79.mjs +2 -94
- package/index8.js +1 -1
- package/index8.mjs +42 -23
- package/index80.js +6 -1
- package/index80.mjs +79 -54
- package/index81.js +1 -1
- package/index81.mjs +61 -33
- package/index82.js +1 -42
- package/index82.mjs +34 -67
- package/index83.js +42 -1
- package/index83.mjs +69 -154
- package/index84.js +1 -9
- package/index84.mjs +149 -47
- package/index85.js +9 -1
- package/index85.mjs +48 -36
- package/index86.js +1 -1
- package/index86.mjs +40 -8
- package/index87.js +1 -1
- package/index87.mjs +9 -31
- package/index88.js +1 -1
- package/index88.mjs +35 -6
- package/index89.js +1 -12
- package/index89.mjs +6 -40
- package/index9.js +1 -1
- package/index9.mjs +7 -7
- package/index90.js +12 -1
- package/index90.mjs +36 -25
- package/index91.js +1 -1
- package/index91.mjs +24 -8
- package/index92.js +1 -7
- package/index92.mjs +7 -13
- package/index93.js +6 -14
- package/index93.mjs +13 -65
- package/index94.js +15 -1
- package/index94.mjs +71 -7
- package/index95.js +1 -16
- package/index95.mjs +7 -25
- package/index96.js +16 -1
- package/index96.mjs +20 -37
- package/index97.js +1 -1
- package/index97.mjs +40 -43
- package/index98.js +1 -1
- package/index98.mjs +44 -47
- package/index99.js +1 -1
- package/index99.mjs +48 -17
- package/package.json +1 -1
- package/providers/Translation/index.d.ts +4 -0
- package/providers/Translation/interface.d.ts +16 -0
- package/theme/Accordion/index.d.ts +12 -12
- package/theme/Alerts/index.d.ts +22 -22
- package/theme/Box/index.d.ts +8 -8
- package/theme/Button/index.d.ts +2 -2
- package/theme/Calendar/index.d.ts +12 -12
- package/theme/Carousel/index.d.ts +11 -11
- package/theme/Checkbox/index.d.ts +8 -8
- package/theme/CheckboxGroup/index.d.ts +3 -3
- package/theme/DatePicker/index.d.ts +9 -9
- package/theme/Image/index.d.ts +1 -1
- package/theme/LightBox/index.d.ts +9 -9
- package/theme/Radio/index.d.ts +6 -6
- package/theme/RadioGroup/index.d.ts +3 -3
- package/theme/Search/index.d.ts +3 -3
- package/theme/ShareButton/index.d.ts +10 -10
- package/theme/SidePanel/index.d.ts +3 -3
- package/theme/TextArea/index.d.ts +2 -2
- package/theme/Typography/index.d.ts +2 -2
- package/transitions/ModalTransition.d.ts +3 -6
- package/transitions/RenderWithSlide.d.ts +3 -6
- package/transitions/SidePanelTransition.d.ts +3 -6
package/index94.js
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("tailwind-variants"),e=t.tv({base:"flex print:hidden relative",defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"flex-row",column:"flex-col"}}}),o=t.tv({base:"relative z-20 !bg-color-1-500 hover:!bg-color-1-400 w-16 h-16 flex justify-center items-center active:!bg-color-1-400 rounded-full text-white focus-ring-black",variants:{isOpen:{true:"",false:""}}}),r=t.tv({base:"!bg-color-1-200 absolute opacity-0 invisible flex transition duration-300 items-center p-0 bg-primary-1 z-0 rounded-b-full rounded-t-full",defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"flex-row pl-14 h-16 left-0",column:"flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0"},isOpen:{true:"opacity-100 visible",false:""}}}),n=t.tv({base:`
|
|
2
|
+
flex
|
|
3
|
+
items-center
|
|
4
|
+
justify-center
|
|
5
|
+
cursor-pointer
|
|
6
|
+
bg-color-1-200
|
|
7
|
+
hover:bg-color-1-300
|
|
8
|
+
w-full
|
|
9
|
+
text-color-1-500
|
|
10
|
+
rounded-none
|
|
11
|
+
p-2
|
|
12
|
+
focus-ring-black
|
|
13
|
+
z-10
|
|
14
|
+
has-focus-ring:z-20
|
|
15
|
+
`,defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"last:rounded-r-full h-full",column:"last:rounded-b-full"}}}),i=t.tv({base:"text-white"}),s=t.tv({base:""});exports.shareButton=o;exports.shareButtonContainer=e;exports.shareButtonIcon=i;exports.shareButtonLink=n;exports.shareButtonLinkIcons=s;exports.shareButtonLinksList=r;
|
package/index94.mjs
CHANGED
|
@@ -1,9 +1,73 @@
|
|
|
1
|
-
import { tv as
|
|
2
|
-
const o =
|
|
3
|
-
base: "
|
|
4
|
-
|
|
1
|
+
import { tv as t } from "tailwind-variants";
|
|
2
|
+
const o = t({
|
|
3
|
+
base: "flex print:hidden relative",
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
listDirection: "row"
|
|
6
|
+
},
|
|
7
|
+
variants: {
|
|
8
|
+
listDirection: {
|
|
9
|
+
row: "flex-row",
|
|
10
|
+
column: "flex-col"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}), r = t({
|
|
14
|
+
base: "relative z-20 !bg-color-1-500 hover:!bg-color-1-400 w-16 h-16 flex justify-center items-center active:!bg-color-1-400 rounded-full text-white focus-ring-black",
|
|
15
|
+
variants: {
|
|
16
|
+
isOpen: {
|
|
17
|
+
true: "",
|
|
18
|
+
false: ""
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}), i = t({
|
|
22
|
+
base: "!bg-color-1-200 absolute opacity-0 invisible flex transition duration-300 items-center p-0 bg-primary-1 z-0 rounded-b-full rounded-t-full",
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
listDirection: "row"
|
|
25
|
+
},
|
|
26
|
+
variants: {
|
|
27
|
+
listDirection: {
|
|
28
|
+
row: "flex-row pl-14 h-16 left-0",
|
|
29
|
+
column: "flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0"
|
|
30
|
+
},
|
|
31
|
+
isOpen: {
|
|
32
|
+
true: "opacity-100 visible",
|
|
33
|
+
false: ""
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}), n = t({
|
|
37
|
+
base: `
|
|
38
|
+
flex
|
|
39
|
+
items-center
|
|
40
|
+
justify-center
|
|
41
|
+
cursor-pointer
|
|
42
|
+
bg-color-1-200
|
|
43
|
+
hover:bg-color-1-300
|
|
44
|
+
w-full
|
|
45
|
+
text-color-1-500
|
|
46
|
+
rounded-none
|
|
47
|
+
p-2
|
|
48
|
+
focus-ring-black
|
|
49
|
+
z-10
|
|
50
|
+
has-focus-ring:z-20
|
|
51
|
+
`,
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
listDirection: "row"
|
|
54
|
+
},
|
|
55
|
+
variants: {
|
|
56
|
+
listDirection: {
|
|
57
|
+
row: "last:rounded-r-full h-full",
|
|
58
|
+
column: "last:rounded-b-full"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}), l = t({
|
|
62
|
+
base: "text-white"
|
|
63
|
+
}), s = t({
|
|
64
|
+
base: ""
|
|
65
|
+
});
|
|
5
66
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
67
|
+
r as shareButton,
|
|
68
|
+
o as shareButtonContainer,
|
|
69
|
+
l as shareButtonIcon,
|
|
70
|
+
n as shareButtonLink,
|
|
71
|
+
s as shareButtonLinkIcons,
|
|
72
|
+
i as shareButtonLinksList
|
|
9
73
|
};
|
package/index95.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
w-full
|
|
3
|
-
min-h-32
|
|
4
|
-
rounded-2xl
|
|
5
|
-
px-6
|
|
6
|
-
h-12
|
|
7
|
-
border-2
|
|
8
|
-
border-solid
|
|
9
|
-
transition
|
|
10
|
-
duration-300
|
|
11
|
-
ease-in-out
|
|
12
|
-
text-gray-2
|
|
13
|
-
placeholder:text-gray-2
|
|
14
|
-
focus-ring-black
|
|
15
|
-
|
|
16
|
-
`,variants:{isError:{true:"border-red-500"}}});exports.textArea=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("tailwind-variants"),n=e.tv({base:"m-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full"}),t=e.tv({base:"h-full w-full flex justify-end"}),l=e.tv({base:"bg-black h-full w-full overflow-y-auto"});exports.sidePanelContainer=t;exports.sidePanelInnerContainer=l;exports.sidePanelWrapper=n;
|
package/index95.mjs
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
import { tv as
|
|
2
|
-
const
|
|
3
|
-
base:
|
|
4
|
-
|
|
5
|
-
min-h-32
|
|
6
|
-
rounded-2xl
|
|
7
|
-
px-6
|
|
8
|
-
h-12
|
|
9
|
-
border-2
|
|
10
|
-
border-solid
|
|
11
|
-
transition
|
|
12
|
-
duration-300
|
|
13
|
-
ease-in-out
|
|
14
|
-
text-gray-2
|
|
15
|
-
placeholder:text-gray-2
|
|
16
|
-
focus-ring-black
|
|
17
|
-
|
|
18
|
-
`,
|
|
19
|
-
variants: {
|
|
20
|
-
isError: {
|
|
21
|
-
true: "border-red-500"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
});
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
const o = e({
|
|
3
|
+
base: "m-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full"
|
|
4
|
+
}), t = e({ base: "h-full w-full flex justify-end" }), a = e({ base: "bg-black h-full w-full overflow-y-auto" });
|
|
25
5
|
export {
|
|
26
|
-
t as
|
|
6
|
+
t as sidePanelContainer,
|
|
7
|
+
a as sidePanelInnerContainer,
|
|
8
|
+
o as sidePanelWrapper
|
|
27
9
|
};
|
package/index96.js
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("tailwind-variants"),e=r.tv({base:`
|
|
2
|
+
w-full
|
|
3
|
+
min-h-32
|
|
4
|
+
rounded-2xl
|
|
5
|
+
px-6
|
|
6
|
+
h-12
|
|
7
|
+
border-2
|
|
8
|
+
border-solid
|
|
9
|
+
transition
|
|
10
|
+
duration-300
|
|
11
|
+
ease-in-out
|
|
12
|
+
text-gray-2
|
|
13
|
+
placeholder:text-gray-2
|
|
14
|
+
focus-ring-black
|
|
15
|
+
|
|
16
|
+
`,variants:{isError:{true:"border-red-500"}}});exports.textArea=e;
|
package/index96.mjs
CHANGED
|
@@ -1,44 +1,27 @@
|
|
|
1
|
-
import { tv as
|
|
2
|
-
const
|
|
1
|
+
import { tv as r } from "tailwind-variants";
|
|
2
|
+
const t = r({
|
|
3
|
+
base: `
|
|
4
|
+
w-full
|
|
5
|
+
min-h-32
|
|
6
|
+
rounded-2xl
|
|
7
|
+
px-6
|
|
8
|
+
h-12
|
|
9
|
+
border-2
|
|
10
|
+
border-solid
|
|
11
|
+
transition
|
|
12
|
+
duration-300
|
|
13
|
+
ease-in-out
|
|
14
|
+
text-gray-2
|
|
15
|
+
placeholder:text-gray-2
|
|
16
|
+
focus-ring-black
|
|
17
|
+
|
|
18
|
+
`,
|
|
3
19
|
variants: {
|
|
4
|
-
size: {
|
|
5
|
-
h1: "text-5xl",
|
|
6
|
-
h2: "text-4xl",
|
|
7
|
-
h3: "text-3xl",
|
|
8
|
-
h4: "text-2xl",
|
|
9
|
-
h5: "text-xl",
|
|
10
|
-
h6: "text-lg",
|
|
11
|
-
leading: "text-md font-bold leading-normal",
|
|
12
|
-
paragraph: "text-md inline",
|
|
13
|
-
footnotes: "text-sm",
|
|
14
|
-
xs: "text-xs"
|
|
15
|
-
},
|
|
16
|
-
font: {
|
|
17
|
-
body: "font-body"
|
|
18
|
-
},
|
|
19
|
-
weight: {
|
|
20
|
-
normal: "font-normal",
|
|
21
|
-
light: "font-light",
|
|
22
|
-
bold: "font-bold"
|
|
23
|
-
},
|
|
24
|
-
color: {
|
|
25
|
-
gray: "text-gray-500",
|
|
26
|
-
white: "text-white"
|
|
27
|
-
},
|
|
28
20
|
isError: {
|
|
29
|
-
true: "
|
|
30
|
-
},
|
|
31
|
-
align: {
|
|
32
|
-
center: "text-center",
|
|
33
|
-
left: "text-left",
|
|
34
|
-
right: "text-right"
|
|
21
|
+
true: "border-red-500"
|
|
35
22
|
}
|
|
36
|
-
},
|
|
37
|
-
defaultVariants: {
|
|
38
|
-
size: "paragraph",
|
|
39
|
-
font: "body"
|
|
40
23
|
}
|
|
41
24
|
});
|
|
42
25
|
export {
|
|
43
|
-
|
|
26
|
+
t as textArea
|
|
44
27
|
};
|
package/index97.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const t=require("tailwind-variants"),e=t.tv({variants:{size:{h1:"text-5xl",h2:"text-4xl",h3:"text-3xl",h4:"text-2xl",h5:"text-xl",h6:"text-lg",leading:"text-md font-bold leading-normal",paragraph:"text-md inline",footnotes:"text-sm",xs:"text-xs"},font:{body:"font-body"},weight:{normal:"font-normal",light:"font-light",bold:"font-bold"},color:{gray:"text-gray-500",white:"text-white"},isError:{true:"text-sm text-error py-3"},align:{center:"text-center",left:"text-left",right:"text-right"}},defaultVariants:{size:"paragraph",font:"body"}});module.exports=e;
|
package/index97.mjs
CHANGED
|
@@ -1,47 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}), t), s = e.expandedKeys.has(o.key);
|
|
16
|
-
return {
|
|
17
|
-
buttonProps: {
|
|
18
|
-
...p,
|
|
19
|
-
"aria-expanded": s,
|
|
20
|
-
"aria-controls": s ? d : void 0
|
|
1
|
+
import { tv as t } from "tailwind-variants";
|
|
2
|
+
const o = t({
|
|
3
|
+
variants: {
|
|
4
|
+
size: {
|
|
5
|
+
h1: "text-5xl",
|
|
6
|
+
h2: "text-4xl",
|
|
7
|
+
h3: "text-3xl",
|
|
8
|
+
h4: "text-2xl",
|
|
9
|
+
h5: "text-xl",
|
|
10
|
+
h6: "text-lg",
|
|
11
|
+
leading: "text-md font-bold leading-normal",
|
|
12
|
+
paragraph: "text-md inline",
|
|
13
|
+
footnotes: "text-sm",
|
|
14
|
+
xs: "text-xs"
|
|
21
15
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
16
|
+
font: {
|
|
17
|
+
body: "font-body"
|
|
18
|
+
},
|
|
19
|
+
weight: {
|
|
20
|
+
normal: "font-normal",
|
|
21
|
+
light: "font-light",
|
|
22
|
+
bold: "font-bold"
|
|
23
|
+
},
|
|
24
|
+
color: {
|
|
25
|
+
gray: "text-gray-500",
|
|
26
|
+
white: "text-white"
|
|
27
|
+
},
|
|
28
|
+
isError: {
|
|
29
|
+
true: "text-sm text-error py-3"
|
|
30
|
+
},
|
|
31
|
+
align: {
|
|
32
|
+
center: "text-center",
|
|
33
|
+
left: "text-left",
|
|
34
|
+
right: "text-right"
|
|
41
35
|
}
|
|
42
|
-
}
|
|
43
|
-
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
size: "paragraph",
|
|
39
|
+
font: "body"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
44
42
|
export {
|
|
45
|
-
|
|
46
|
-
x as useAccordionItem
|
|
43
|
+
o as default
|
|
47
44
|
};
|
package/index98.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@react-aria/utils"),b=require("./index135.js"),c=require("./index136.js"),p=require("./index137.js");function y(r,e,o){let{item:t}=r,i=s.useId(),n=s.useId(),d=e.disabledKeys.has(t.key),{itemProps:a}=c.useSelectableItem({selectionManager:e.selectionManager,key:t.key,ref:o}),{buttonProps:u}=b.useButton(s.mergeProps(a,{id:i,elementType:"button",isDisabled:d,onPress:()=>e.toggleKey(t.key)}),o),l=e.expandedKeys.has(t.key);return{buttonProps:{...u,"aria-expanded":l,"aria-controls":l?n:void 0},regionProps:{id:n,role:"region","aria-labelledby":i}}}function f(r,e,o){let{listProps:t}=p.useSelectableList({...r,...e,allowsTabNavigation:!0,disallowTypeAhead:!0,ref:o});return{accordionProps:{...t,tabIndex:void 0}}}exports.useAccordion=f;exports.useAccordionItem=y;
|
package/index98.mjs
CHANGED
|
@@ -1,50 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
1
|
+
import { useId as i, mergeProps as b } from "@react-aria/utils";
|
|
2
|
+
import { useButton as u } from "./index135.mjs";
|
|
3
|
+
import { useSelectableItem as c } from "./index136.mjs";
|
|
4
|
+
import { useSelectableList as f } from "./index137.mjs";
|
|
5
|
+
function x(r, e, t) {
|
|
6
|
+
let { item: o } = r, a = i(), d = i(), n = e.disabledKeys.has(o.key), { itemProps: l } = c({
|
|
7
|
+
selectionManager: e.selectionManager,
|
|
8
|
+
key: o.key,
|
|
9
|
+
ref: t
|
|
10
|
+
}), { buttonProps: p } = u(b(l, {
|
|
11
|
+
id: a,
|
|
12
|
+
elementType: "button",
|
|
13
|
+
isDisabled: n,
|
|
14
|
+
onPress: () => e.toggleKey(o.key)
|
|
15
|
+
}), t), s = e.expandedKeys.has(o.key);
|
|
16
|
+
return {
|
|
17
|
+
buttonProps: {
|
|
18
|
+
...p,
|
|
19
|
+
"aria-expanded": s,
|
|
20
|
+
"aria-controls": s ? d : void 0
|
|
21
|
+
},
|
|
22
|
+
regionProps: {
|
|
23
|
+
id: d,
|
|
24
|
+
role: "region",
|
|
25
|
+
"aria-labelledby": a
|
|
26
|
+
}
|
|
17
27
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
) }),
|
|
36
|
-
/* @__PURE__ */ e(
|
|
37
|
-
x,
|
|
38
|
-
{
|
|
39
|
-
isVisible: n,
|
|
40
|
-
themeName: `${o}.region`,
|
|
41
|
-
...b,
|
|
42
|
-
tokens: t,
|
|
43
|
-
children: /* @__PURE__ */ e(i, { themeName: `${o}.content`, tokens: t, children: /* @__PURE__ */ e(R, { autoFocus: !0, children: p }) })
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
] });
|
|
47
|
-
};
|
|
28
|
+
}
|
|
29
|
+
function g(r, e, t) {
|
|
30
|
+
let { listProps: o } = f({
|
|
31
|
+
...r,
|
|
32
|
+
...e,
|
|
33
|
+
allowsTabNavigation: !0,
|
|
34
|
+
disallowTypeAhead: !0,
|
|
35
|
+
ref: t
|
|
36
|
+
});
|
|
37
|
+
return {
|
|
38
|
+
accordionProps: {
|
|
39
|
+
...o,
|
|
40
|
+
tabIndex: void 0
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
48
44
|
export {
|
|
49
|
-
|
|
45
|
+
g as useAccordion,
|
|
46
|
+
x as useAccordionItem
|
|
50
47
|
};
|
package/index99.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),y=require("./index98.js"),R=require("react"),m=require("react-aria"),T=require("react-use"),b=require("./index69.js"),F=require("./index127.js"),i=require("./index25.js"),w=require("./index6.js"),C=require("./index14.js"),I=c=>{const{item:r,tokens:l,customTheme:h}=c,{props:x,rendered:k,key:f}=r,{icon:u,title:j,onOpenChange:a,tokens:q,themeName:g}=x??{},{themeName:t=g}=c,d=R.useRef(null),{state:s,TransitionAnimation:N=F}=b.useAccordionCtx(),{buttonProps:{onClick:K,onKeyDown:B,onPointerDown:D,...$},regionProps:A}=y.useAccordionItem(c,s,d),o=s.selectionManager.selectedKeys.has(f),n={...l,isOpen:o,...q},p=P=>{P.continuePropagation(),s.selectionManager.select(r.key),s.toggleKey(r.key)};return T.useUpdateEffect(()=>{a==null||a(o)},[o]),e.jsxs(i.default,{themeName:`${t}.container`,tokens:n,customTheme:h,children:[e.jsx(m.FocusRing,{focusRingClass:"has-focus-ring",children:e.jsxs(w.ButtonWithForwardRef,{...$,"aria-expanded":o,handlePress:p,ref:d,themeName:`${t}.button`,tokens:n,children:[e.jsx(i.default,{themeName:`${t}.title`,tokens:n,children:j}),u&&e.jsx(i.default,{themeName:`${t}.icon`,tokens:n,children:e.jsx(C,{icon:u})})]})}),e.jsx(N,{isVisible:o,themeName:`${t}.region`,...A,tokens:n,children:e.jsx(i.default,{themeName:`${t}.content`,tokens:n,children:e.jsx(m.FocusScope,{autoFocus:!0,children:k})})})]})};module.exports=I;
|
package/index99.mjs
CHANGED
|
@@ -1,19 +1,50 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useAccordionItem as T } from "./index98.mjs";
|
|
3
|
+
import { useRef as F } from "react";
|
|
4
|
+
import { FocusRing as I, FocusScope as R } from "react-aria";
|
|
5
|
+
import { useUpdateEffect as w } from "react-use";
|
|
6
|
+
import { useAccordionCtx as B } from "./index69.mjs";
|
|
7
|
+
import C from "./index127.mjs";
|
|
8
|
+
import i from "./index25.mjs";
|
|
9
|
+
import { ButtonWithForwardRef as D } from "./index6.mjs";
|
|
10
|
+
import K from "./index14.mjs";
|
|
11
|
+
const L = (s) => {
|
|
12
|
+
const { item: c, tokens: h, customTheme: f } = s, { props: u, rendered: p, key: k } = c, { icon: a, title: g, onOpenChange: m, tokens: N, themeName: $ } = u ?? {}, { themeName: o = $ } = s, d = F(null), { state: r, TransitionAnimation: x = C } = B(), {
|
|
13
|
+
buttonProps: { onClick: j, onKeyDown: M, onPointerDown: E, ...P },
|
|
14
|
+
regionProps: b
|
|
15
|
+
} = T(s, r, d), n = r.selectionManager.selectedKeys.has(k), t = { ...h, isOpen: n, ...N }, y = (A) => {
|
|
16
|
+
A.continuePropagation(), r.selectionManager.select(c.key), r.toggleKey(c.key);
|
|
17
|
+
};
|
|
18
|
+
return w(() => {
|
|
19
|
+
m == null || m(n);
|
|
20
|
+
}, [n]), /* @__PURE__ */ l(i, { themeName: `${o}.container`, tokens: t, customTheme: f, children: [
|
|
21
|
+
/* @__PURE__ */ e(I, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ l(
|
|
22
|
+
D,
|
|
23
|
+
{
|
|
24
|
+
...P,
|
|
25
|
+
"aria-expanded": n,
|
|
26
|
+
handlePress: y,
|
|
27
|
+
ref: d,
|
|
28
|
+
themeName: `${o}.button`,
|
|
29
|
+
tokens: t,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ e(i, { themeName: `${o}.title`, tokens: t, children: g }),
|
|
32
|
+
a && /* @__PURE__ */ e(i, { themeName: `${o}.icon`, tokens: t, children: /* @__PURE__ */ e(K, { icon: a }) })
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
) }),
|
|
36
|
+
/* @__PURE__ */ e(
|
|
37
|
+
x,
|
|
38
|
+
{
|
|
39
|
+
isVisible: n,
|
|
40
|
+
themeName: `${o}.region`,
|
|
41
|
+
...b,
|
|
42
|
+
tokens: t,
|
|
43
|
+
children: /* @__PURE__ */ e(i, { themeName: `${o}.content`, tokens: t, children: /* @__PURE__ */ e(R, { autoFocus: !0, children: p }) })
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
] });
|
|
47
|
+
};
|
|
17
48
|
export {
|
|
18
|
-
|
|
49
|
+
L as default
|
|
19
50
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TTranslationContext, TTranslationProps } from './interface';
|
|
2
|
+
declare const useTranslation: () => TTranslationContext;
|
|
3
|
+
export { useTranslation };
|
|
4
|
+
export declare function TranslationContextProvider({ useTranslationFunc, children, namespace, translateFunctionName, }: TTranslationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type TTranslateFunc = (key: string, obj?: Record<string, unknown>) => string;
|
|
3
|
+
export type TTranslationProps = {
|
|
4
|
+
useTranslationFunc: (ns: string) => {
|
|
5
|
+
t: TTranslateFunc;
|
|
6
|
+
i18n: {
|
|
7
|
+
language: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
namespace?: string;
|
|
12
|
+
translateFunctionName?: string;
|
|
13
|
+
};
|
|
14
|
+
export type TTranslationContext = {
|
|
15
|
+
t: TTranslateFunc;
|
|
16
|
+
};
|