@okam/stack-ui 1.44.4 → 1.44.6
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 +15 -0
- package/components/Accordion/components/AccordionItem.d.ts +2 -2
- package/components/Alerts/components/AlertsCloseButton.d.ts +2 -2
- package/components/Alerts/interface.d.ts +3 -3
- package/components/Box/index.d.ts +2 -2
- package/components/Box/interface.d.ts +2 -2
- package/components/Button/index.d.ts +3 -3
- package/components/Button/interface.d.ts +2 -3
- package/components/Carousel/index.d.ts +2 -2
- package/components/Carousel/navigation/LegacyCarouselNavigationButton.d.ts +2 -2
- package/components/Icon/interface.d.ts +3 -4
- package/components/Lightbox/interface.d.ts +3 -4
- package/components/Menu/interface.d.ts +10 -10
- package/components/Modal/interface.d.ts +3 -4
- package/components/Node/index.d.ts +2 -2
- package/components/PrintButton/interface.d.ts +2 -2
- package/components/ShareButton/interface.d.ts +3 -3
- package/components/SidePanel/interface.d.ts +3 -4
- package/components/TabList/components/TabItem.d.ts +2 -2
- package/components/TabList/interface.d.ts +2 -3
- package/components/TagGroup/components/TagItem.d.ts +2 -2
- package/components/Typography/index.d.ts +2 -2
- package/components/Typography/interface.d.ts +2 -2
- package/components/fields/Checkbox/Checkbox.interface.d.ts +2 -2
- package/components/fields/CheckboxGroup/interface.d.ts +2 -2
- package/components/fields/ComboBox/hooks/useComboBoxFiltering.d.ts +4 -4
- package/components/fields/DatePicker/interface.d.ts +1 -2
- package/components/fields/Radio/Radio.interface.d.ts +2 -2
- package/components/fields/RadioGroup/interface.d.ts +2 -2
- package/components/fields/SearchField/interface.d.ts +3 -3
- package/components/fields/Select/Select.interface.d.ts +2 -3
- package/components/fields/Select/components/Listbox.interface.d.ts +2 -2
- package/components/fields/Select/components/Popover.interface.d.ts +4 -4
- package/components/icons/ArrowDown.d.ts +3 -3
- package/components/icons/ArrowLeft.d.ts +3 -3
- package/components/icons/ArrowRight.d.ts +3 -3
- package/components/icons/Check.d.ts +3 -3
- package/components/icons/ChevronLeft.d.ts +3 -3
- package/components/icons/ChevronRight.d.ts +3 -3
- package/components/icons/CloseBtn.d.ts +3 -3
- package/components/icons/ErrorIcon.d.ts +3 -3
- package/components/icons/Facebook.d.ts +3 -3
- package/components/icons/FacebookColored.d.ts +3 -3
- package/components/icons/FacebookRounded.d.ts +3 -3
- package/components/icons/Globe.d.ts +3 -3
- package/components/icons/IconFallback.d.ts +3 -3
- package/components/icons/Instagram.d.ts +3 -3
- package/components/icons/InstagramColored.d.ts +3 -3
- package/components/icons/Link.d.ts +3 -3
- package/components/icons/LinkedIn.d.ts +3 -3
- package/components/icons/Mail.d.ts +3 -3
- package/components/icons/Plus.d.ts +3 -3
- package/components/icons/Print.d.ts +3 -3
- package/components/icons/Search.d.ts +3 -3
- package/components/icons/Share.d.ts +3 -3
- package/components/icons/Twitter.d.ts +3 -3
- package/components/icons/TwitterColored.d.ts +3 -3
- package/components/icons/Upload.d.ts +3 -3
- package/components/icons/X.d.ts +3 -3
- package/components/icons/YouTube.d.ts +3 -3
- package/components/icons/YouTubeColored.d.ts +3 -3
- package/index.js +1 -1
- package/index.mjs +12 -12
- package/index10.js +1 -1
- package/index100.js +1 -1
- package/index102.js +1 -1
- package/index103.js +1 -1
- package/index104.js +1 -1
- package/index107.js +1 -1
- package/index108.js +1 -1
- package/index109.js +1 -1
- package/index111.js +1 -1
- package/index116.js +1 -1
- package/index117.js +1 -1
- package/index119.js +1 -1
- package/index123.js +1 -1
- package/index123.mjs +11 -11
- package/index126.mjs +3 -3
- package/index129.js +1 -1
- package/index129.mjs +1 -1
- package/index13.js +1 -1
- package/index131.js +1 -1
- package/index131.mjs +10 -10
- package/index132.js +1 -1
- package/index132.mjs +8 -8
- package/index141.js +1 -1
- package/index141.mjs +6 -6
- package/index171.js +1 -1
- package/index20.js +1 -1
- package/index20.mjs +6 -6
- package/index29.js +1 -1
- package/index3.js +1 -1
- package/index3.mjs +8 -8
- package/index33.js +1 -1
- package/index33.mjs +6 -7
- package/index34.js +1 -1
- package/index35.js +1 -1
- package/index35.mjs +10 -10
- package/index36.js +1 -1
- package/index37.js +1 -1
- package/index38.js +1 -1
- package/index40.js +1 -1
- package/index43.js +1 -1
- package/index43.mjs +25 -26
- package/index44.js +1 -1
- package/index48.js +1 -1
- package/index48.mjs +4 -5
- package/index49.js +1 -1
- package/index49.mjs +8 -8
- package/index5.js +1 -1
- package/index50.js +1 -1
- package/index50.mjs +9 -10
- package/index53.js +1 -1
- package/index53.mjs +24 -21
- package/index56.js +1 -1
- package/index58.js +1 -1
- package/index58.mjs +6 -6
- package/index59.js +1 -1
- package/index59.mjs +6 -6
- package/index6.js +1 -1
- package/index6.mjs +15 -15
- package/index67.js +1 -1
- package/index67.mjs +14 -14
- package/index68.js +1 -1
- package/index69.js +1 -1
- package/index70.js +1 -1
- package/index70.mjs +11 -11
- package/index73.js +1 -1
- package/index73.mjs +11 -11
- package/index82.js +1 -1
- package/index83.js +1 -1
- package/index85.mjs +3 -3
- package/index86.js +1 -1
- package/index87.js +1 -1
- package/index87.mjs +16 -17
- package/index9.js +1 -1
- package/index91.js +1 -1
- package/index91.mjs +18 -18
- package/index98.js +1 -1
- package/index99.js +1 -1
- package/package.json +2 -2
- package/providers/CheckboxGroup/interface.d.ts +2 -2
- package/providers/Client/interface.d.ts +2 -2
- package/providers/Menu/interface.d.ts +11 -11
- package/providers/SidePanel/interface.d.ts +5 -6
- package/providers/Theme/index.d.ts +3 -3
- package/providers/Theme/interface.d.ts +2 -2
- package/providers/UserSearchQuery/interface.d.ts +2 -3
- package/storybook/Menu/Menu.d.ts +6 -7
- package/theme/index.d.ts +2 -3
- package/types/components.d.ts +4 -5
package/index85.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
const o =
|
|
3
|
+
import { use as u, createContext as i } from "react";
|
|
4
|
+
const o = i(null);
|
|
5
5
|
function s(t) {
|
|
6
6
|
const { children: r, state: n } = t;
|
|
7
7
|
return /* @__PURE__ */ e(o, { value: n, children: r });
|
|
8
8
|
}
|
|
9
9
|
function a() {
|
|
10
|
-
const t =
|
|
10
|
+
const t = u(o);
|
|
11
11
|
return t !== null ? t : null;
|
|
12
12
|
}
|
|
13
13
|
export {
|
package/index86.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),b=require("@okam/core-lib"),n=require("react"),x=require("react-stately"),
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),b=require("@okam/core-lib"),n=require("react"),x=require("react-stately"),q=require("./index79.js"),[R,B]=b.createCtx();function h(a){const{children:u,defaultSelectedKey:o,onOpenCallback:c,onCloseCallback:i,defaultIsOpen:p=!1,onOpenChange:d,isOpen:P,defaultOpen:f,type:O="dialog"}=a,S=f??p,g=n.useRef(null),y=n.useRef(null),e=x.useOverlayTriggerState({isOpen:P,defaultOpen:S,onOpenChange(s){if(d?.(s),!s){i?.();return}c?.()}}),{triggerProps:t,overlayProps:r,labelProps:l}=q({type:O},e),v=n.useMemo(()=>({labelProps:l,overlayProps:r,defaultSelectedKey:o,overlayState:e,buttonProps:{closeButtonProps:t,closeButtonRef:y,openButtonProps:t,openButtonRef:g}}),[l,r,o,e,t]);return C.jsx(B,{value:v,children:u})}exports.SidePanelContextProvider=h;exports.useSidePanel=R;
|
package/index87.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o=require("react");function u(){const e=o.createContext(void 0);function r(){const t=o.use(e);return t===void 0?null:t}return[r,e.Provider]}const i={typography:()=>""},[s,l]=u();function c({children:e,brandTheme:r=i}){const t=o.useMemo(()=>({brandTheme:r}),[r]);return n.jsx(l,{value:t,children:e})}function a(e){return({children:t})=>n.jsx(c,{brandTheme:e,children:t})}exports.ThemeContextProvider=c;exports.createCtxNullable=u;exports.createThemeProvider=a;exports.useTheme=s;
|
package/index87.mjs
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const e = o.createContext(void 0);
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as n, createContext as u, use as c } from "react";
|
|
4
|
+
function i() {
|
|
5
|
+
const e = u(void 0);
|
|
7
6
|
function r() {
|
|
8
|
-
const t =
|
|
7
|
+
const t = c(e);
|
|
9
8
|
return t === void 0 ? null : t;
|
|
10
9
|
}
|
|
11
10
|
return [r, e.Provider];
|
|
12
11
|
}
|
|
13
|
-
const
|
|
12
|
+
const m = {
|
|
14
13
|
typography: () => ""
|
|
15
|
-
}, [
|
|
16
|
-
function
|
|
17
|
-
const t =
|
|
18
|
-
return /* @__PURE__ */
|
|
14
|
+
}, [f, s] = i();
|
|
15
|
+
function v({ children: e, brandTheme: r = m }) {
|
|
16
|
+
const t = n(() => ({ brandTheme: r }), [r]);
|
|
17
|
+
return /* @__PURE__ */ o(s, { value: t, children: e });
|
|
19
18
|
}
|
|
20
|
-
function
|
|
21
|
-
return ({ children: t }) => /* @__PURE__ */
|
|
19
|
+
function h(e) {
|
|
20
|
+
return ({ children: t }) => /* @__PURE__ */ o(v, { brandTheme: e, children: t });
|
|
22
21
|
}
|
|
23
22
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
v as ThemeContextProvider,
|
|
24
|
+
i as createCtxNullable,
|
|
25
|
+
h as createThemeProvider,
|
|
26
|
+
f as useTheme
|
|
28
27
|
};
|
package/index9.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),R=require("@internationalized/date"),$=require("react"),o=require("react-aria"),P=require("react-stately"),c=require("./index7.js"),g=require("./index74.js"),v=require("./index122.js"),F=require("./index123.js");function S({buttons:i,tokens:l,customTheme:d,themeName:e="calendar",gridProps:u,value:s,...a}){const{locale:x}=o.useLocale(),n=P.useCalendarState({...a,locale:x,value:s,createCalendar:R.createCalendar}),{isDisabled:q,isReadOnly:p,isValueInvalid:j,isFocused:k}=n,C=$.useRef(null),{calendarProps:h,prevButtonProps:B,nextButtonProps:f,title:y}=o.useCalendar({...a,value:s},n),r={isDisabled:q,isReadOnly:p,isValueInvalid:j,isFocused:k,...l};return t.jsxs(c.BoxWithForwardRef,{...h,ref:C,themeName:`${e}.container`,tokens:r,customTheme:d,children:[t.jsxs(c.Box,{themeName:`${e}.header`,tokens:r,children:[t.jsx(g.Typography,{as:"p",themeName:`${e}.title`,tokens:r,children:y}),t.jsx(F,{themeName:e,tokens:r,buttons:i,prevButtonProps:B,nextButtonProps:f})]}),t.jsx(v,{...u,themeName:e,state:n,tokens:r})]})}module.exports=S;
|
package/index91.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const d=require("react"),p=require("./index87.js"),h=require("./index143.js"),k=require("./index144.js"),i=require("./index145.js"),t=require("./index146.js"),m=require("./index147.js"),g=require("./index148.js"),o=require("./index149.js"),s=require("./index150.js"),q=require("./index151.js"),f=require("./index152.js"),$=require("./index153.js"),b=require("./index154.js"),w=require("./index155.js"),I=require("./index156.js"),u=require("./index157.js"),c=require("./index158.js"),l=require("./index159.js"),x=require("./index160.js"),n=require("./index161.js"),a=require("./index162.js"),B=require("./index163.js"),G=require("./index164.js"),M=require("./index165.js"),T=require("./index166.js"),y=require("./index167.js"),r=require("./index168.js"),L=require("./index118.js"),P=L.makeTheme({main:e=>i.main(e),gridItem:e=>i.gridItem(e),grid:e=>i.grid(e),container:e=>i.container(e),accordion:h.accordionTheme,carousel:g,calendar:m.calendarTheme,datePicker:f.datePickerTheme,popover:I,typography:e=>r(e),button:e=>t(e),link:t,sidePanel:{wrapper:e=>a.sidePanelWrapper(e),container:e=>a.sidePanelContainer(e),innerContainer:e=>a.sidePanelInnerContainer(e)},comboBox:q,lightBox:b,printButton:{icon:e=>u.printButtonIcon(e),button:e=>u.printButton(e)},shareButton:{icon:e=>n.shareButtonIcon(e),button:e=>n.shareButton(e),container:e=>n.shareButtonContainer(e),linksList:e=>n.shareButtonLinksList(e),link:e=>n.shareButtonLink(e),linkIcons:e=>n.shareButtonLinkIcons(e)},skipToMain:e=>B.skipToMain(e),checkbox:{container:e=>o.checkboxContainer(e),label:e=>o.checkboxLabel(e),checkBox:e=>o.checkBox(e),checkMark:e=>o.checkMark(e),checkMarkIcon:e=>o.checkMarkIcon(e),errorMessage:e=>r(e)},radio:{label:e=>c.radioLabel(e),radio:e=>c.radio(e),selectedMark:e=>c.selectedMark(e),errorMessage:e=>r(e)},radioGroup:{radioGroup:e=>l.radioGroup(e),radioGroupItemsGroup:e=>l.radioGroupItemsGroup(e),errorMessage:e=>r(e)},checkboxGroup:{checkboxGroup:e=>s.checkboxGroup(e),checkboxGroupItemsGroup:e=>s.checkboxGroupItemsGroup(e),errormessage:e=>r(e)},select:{button:e=>t(e),ul:e=>r({...e,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:e=>t({...e,className:"w-[var(--select-container-width)]"}),errorMessage:e=>r({...e,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",list:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white",headerText:()=>"text-gray-300",section:()=>"flex flex-col gap-4"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:e=>T.textArea(e),errorMessage:e=>r({...e,size:"footnotes",isError:!0})},textInput:y,search:{wrapper:()=>"min-w-fit sm:w-80 flex flex-col gap-2",container:()=>"relative flex items-center outline outline-2 outline-gray-300 focus-within:outline focus-within:outline-black focus-within:outline-2",label:()=>"text-gray-3",input:e=>x.searchInput(e),icon:e=>x.searchIcon(e),errorMessage:e=>r({...e,size:"footnotes",isError:!0})},menu:{sidePanel:{wrapper:()=>"",container:()=>"",innerContainer:()=>""},wrapper:()=>""},menuItem:{wrapper:()=>"",container:()=>"",innerContent:()=>"",button:()=>"",anchor:()=>""},img:$.imgTheme,alerts:k,tagGroup:M,tabList:G,listBox:w}),v=d.memo(p.createThemeProvider(P));module.exports=v;
|
package/index91.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import { memo as t } from "react";
|
|
3
3
|
import { createThemeProvider as i } from "./index87.mjs";
|
|
4
4
|
import { accordionTheme as n } from "./index143.mjs";
|
|
5
5
|
import a from "./index144.mjs";
|
|
@@ -19,10 +19,10 @@ import { printButton as y, printButtonIcon as L } from "./index157.mjs";
|
|
|
19
19
|
import { selectedMark as v, radio as P, radioLabel as C } from "./index158.mjs";
|
|
20
20
|
import { radioGroupItemsGroup as z, radioGroup as E } from "./index159.mjs";
|
|
21
21
|
import { searchIcon as N, searchInput as A } from "./index160.mjs";
|
|
22
|
-
import { shareButtonLinkIcons as
|
|
23
|
-
import { sidePanelInnerContainer as
|
|
24
|
-
import { skipToMain as
|
|
25
|
-
import
|
|
22
|
+
import { shareButtonLinkIcons as W, shareButtonLink as j, shareButtonLinksList as q, shareButtonContainer as D, shareButton as F, shareButtonIcon as H } from "./index161.mjs";
|
|
23
|
+
import { sidePanelInnerContainer as J, sidePanelContainer as K, sidePanelWrapper as O } from "./index162.mjs";
|
|
24
|
+
import { skipToMain as Q } from "./index163.mjs";
|
|
25
|
+
import R from "./index164.mjs";
|
|
26
26
|
import S from "./index165.mjs";
|
|
27
27
|
import { textArea as U } from "./index166.mjs";
|
|
28
28
|
import V from "./index167.mjs";
|
|
@@ -42,9 +42,9 @@ const Y = X({
|
|
|
42
42
|
button: (e) => r(e),
|
|
43
43
|
link: r,
|
|
44
44
|
sidePanel: {
|
|
45
|
-
wrapper: (e) =>
|
|
46
|
-
container: (e) =>
|
|
47
|
-
innerContainer: (e) =>
|
|
45
|
+
wrapper: (e) => O(e),
|
|
46
|
+
container: (e) => K(e),
|
|
47
|
+
innerContainer: (e) => J(e)
|
|
48
48
|
},
|
|
49
49
|
comboBox: T,
|
|
50
50
|
lightBox: I,
|
|
@@ -53,14 +53,14 @@ const Y = X({
|
|
|
53
53
|
button: (e) => y(e)
|
|
54
54
|
},
|
|
55
55
|
shareButton: {
|
|
56
|
-
icon: (e) =>
|
|
57
|
-
button: (e) =>
|
|
58
|
-
container: (e) =>
|
|
59
|
-
linksList: (e) =>
|
|
60
|
-
link: (e) =>
|
|
61
|
-
linkIcons: (e) =>
|
|
56
|
+
icon: (e) => H(e),
|
|
57
|
+
button: (e) => F(e),
|
|
58
|
+
container: (e) => D(e),
|
|
59
|
+
linksList: (e) => q(e),
|
|
60
|
+
link: (e) => j(e),
|
|
61
|
+
linkIcons: (e) => W(e)
|
|
62
62
|
},
|
|
63
|
-
skipToMain: (e) =>
|
|
63
|
+
skipToMain: (e) => Q(e),
|
|
64
64
|
checkbox: {
|
|
65
65
|
container: (e) => k(e),
|
|
66
66
|
label: (e) => d(e),
|
|
@@ -134,9 +134,9 @@ const Y = X({
|
|
|
134
134
|
img: B,
|
|
135
135
|
alerts: a,
|
|
136
136
|
tagGroup: S,
|
|
137
|
-
tabList:
|
|
137
|
+
tabList: R,
|
|
138
138
|
listBox: G
|
|
139
|
-
}),
|
|
139
|
+
}), ye = t(i(Y));
|
|
140
140
|
export {
|
|
141
|
-
|
|
141
|
+
ye as default
|
|
142
142
|
};
|
package/index98.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),e=require("radashi"),s=require("react");function n(r){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",fill:"currentColor",...r,children:t.jsx("path",{d:"m18.75 36-2.15-2.15 9.9-9.9-9.9-9.9 2.15-2.15L30.8 23.95Z"})})}const i=s.memo(n,e.isEqual);module.exports=i;
|
package/index99.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),t=require("radashi"),o=require("react");function n(e){return r.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M18 6 6 18M6 6l12 12"})})}const s=o.memo(n,t.isEqual);module.exports=s;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okam/stack-ui",
|
|
3
|
-
"version": "1.44.
|
|
3
|
+
"version": "1.44.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/OKAMca/stack.git"
|
|
6
6
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@internationalized/date": "^3.10.1",
|
|
33
|
-
"@okam/core-lib": "1.17.
|
|
33
|
+
"@okam/core-lib": "1.17.4",
|
|
34
34
|
"@okam/logger": "1.1.0",
|
|
35
35
|
"@react-aria/selection": "^3.27.0",
|
|
36
36
|
"@react-aria/utils": "^3.32.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { CheckboxGroupProps, CheckboxGroupState } from 'react-stately';
|
|
2
|
-
import type * as React from 'react';
|
|
3
3
|
export interface TCheckboxGroupContext extends CheckboxGroupProps {
|
|
4
|
-
children:
|
|
4
|
+
children: ReactNode;
|
|
5
5
|
state: CheckboxGroupState;
|
|
6
6
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { CollectionChildren } from '@react-types/shared';
|
|
2
|
+
import { JSX, ReactNode } from 'react';
|
|
2
3
|
import { AriaTabListProps } from 'react-aria';
|
|
3
4
|
import { TabListState } from 'react-stately';
|
|
4
|
-
import type * as React from 'react';
|
|
5
5
|
export interface TMenuProviderProps {
|
|
6
|
-
children:
|
|
6
|
+
children: ReactNode;
|
|
7
7
|
tabs?: CollectionChildren<object>;
|
|
8
8
|
defaultSelectedKey: string;
|
|
9
9
|
defaultIsOpen?: boolean;
|
|
10
10
|
onCloseCallback?: () => void;
|
|
11
11
|
onOpenCallback?: () => void;
|
|
12
|
-
openBtn?: () =>
|
|
13
|
-
closeBtn?: () =>
|
|
14
|
-
secondaryOpenBtn?: () =>
|
|
12
|
+
openBtn?: () => JSX.Element;
|
|
13
|
+
closeBtn?: () => JSX.Element;
|
|
14
|
+
secondaryOpenBtn?: () => JSX.Element;
|
|
15
15
|
}
|
|
16
16
|
export type IMenuProviderProps = AriaTabListProps<TMenuProviderProps> & TMenuProviderProps;
|
|
17
17
|
export interface TMenuContext {
|
|
18
|
-
openBtn?: () =>
|
|
19
|
-
closeBtn?: () =>
|
|
20
|
-
secondaryOpenBtn?: () =>
|
|
18
|
+
openBtn?: () => JSX.Element;
|
|
19
|
+
closeBtn?: () => JSX.Element;
|
|
20
|
+
secondaryOpenBtn?: () => JSX.Element;
|
|
21
21
|
tabState: TabListState<object>;
|
|
22
22
|
defaultSelectedKey: string;
|
|
23
23
|
}
|
|
24
24
|
export interface TMenuProps {
|
|
25
|
-
openBtn?: () =>
|
|
26
|
-
closeBtn?: () =>
|
|
27
|
-
secondaryOpenBtn?: () =>
|
|
25
|
+
openBtn?: () => JSX.Element;
|
|
26
|
+
closeBtn?: () => JSX.Element;
|
|
27
|
+
secondaryOpenBtn?: () => JSX.Element;
|
|
28
28
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { DOMProps } from '@react-types/shared';
|
|
2
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonHTMLAttributes, HTMLAttributes, MutableRefObject, ReactNode } from 'react';
|
|
3
3
|
import { AriaButtonProps, OverlayTriggerProps as OverlayTriggerPropsAria } from 'react-aria';
|
|
4
4
|
import { OverlayTriggerProps, OverlayTriggerState } from 'react-stately';
|
|
5
|
-
import type * as React from 'react';
|
|
6
5
|
export interface TSidePanelProviderProps extends OverlayTriggerProps, Partial<OverlayTriggerPropsAria> {
|
|
7
|
-
children:
|
|
6
|
+
children: ReactNode;
|
|
8
7
|
defaultSelectedKey: string;
|
|
9
8
|
/**
|
|
10
9
|
* @deprecated Use `defaultOpen` instead
|
|
@@ -24,9 +23,9 @@ export type TSidePanelButtonProps = Omit<AriaButtonProps<'button'>, 'onPress'> &
|
|
|
24
23
|
};
|
|
25
24
|
export interface TSidePanelButtons {
|
|
26
25
|
closeButtonProps: TSidePanelButtonProps & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
27
|
-
closeButtonRef:
|
|
28
|
-
openButtonProps: TSidePanelButtonProps &
|
|
29
|
-
openButtonRef:
|
|
26
|
+
closeButtonRef: MutableRefObject<null>;
|
|
27
|
+
openButtonProps: TSidePanelButtonProps & HTMLAttributes<HTMLDivElement>;
|
|
28
|
+
openButtonRef: MutableRefObject<null>;
|
|
30
29
|
}
|
|
31
30
|
/**
|
|
32
31
|
* @deprecated Use `TSidePanelButtons` instead
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { TTheme, TThemePanelContext, TThemeProviderProps } from './interface';
|
|
2
|
-
|
|
3
|
-
export declare function createCtxNullable<A extends object | null>(): readonly [() => A | null, React.Provider<A | undefined>];
|
|
3
|
+
export declare function createCtxNullable<A extends object | null>(): readonly [() => A | null, import('react').Provider<A | undefined>];
|
|
4
4
|
declare const useTheme: () => TThemePanelContext<TTheme> | null;
|
|
5
5
|
export declare function ThemeContextProvider({ children, brandTheme }: TThemeProviderProps<TTheme>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare function createThemeProvider(brandTheme: TTheme): ({ children }: {
|
|
7
|
-
children:
|
|
7
|
+
children: ReactNode;
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export { useTheme };
|
|
10
10
|
export { makeTheme } from './utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
export type TStyleValue = false | string;
|
|
3
3
|
export type TToken = Record<string, string | boolean>;
|
|
4
4
|
export type TFunc = (_props: TToken) => TStyleValue[] | string;
|
|
@@ -12,7 +12,7 @@ export interface TDefaultTheme {
|
|
|
12
12
|
typography: (_props: TToken) => TStyleValue[] | string;
|
|
13
13
|
}
|
|
14
14
|
export interface TThemeProviderProps<T = TTheme> {
|
|
15
|
-
children:
|
|
15
|
+
children: ReactNode;
|
|
16
16
|
brandTheme?: T;
|
|
17
17
|
}
|
|
18
18
|
export interface TThemePanelContext<T = TTheme> {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import type * as React from 'react';
|
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
3
2
|
export interface TSearchListingContext {
|
|
4
3
|
userSearchQuery: string;
|
|
5
4
|
setUserSearchQuery: Dispatch<SetStateAction<string>>;
|
|
6
5
|
}
|
|
7
6
|
export interface TSearchProviderProps {
|
|
8
|
-
children:
|
|
7
|
+
children: ReactNode;
|
|
9
8
|
userQuery: string;
|
|
10
9
|
}
|
package/storybook/Menu/Menu.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import { ComponentType, JSX, ReactNode } from 'react';
|
|
2
2
|
import { TButtonProps } from '../../components/Button/interface';
|
|
3
3
|
import { TMenuItemProps, TMenuProps, TMenuSidePanelProps } from '../../components/Menu/interface';
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
export interface TSubMenuTab {
|
|
6
5
|
key: string;
|
|
7
6
|
title: string;
|
|
8
7
|
childItems?: TMenuItemProps[] | null;
|
|
9
|
-
extra:
|
|
8
|
+
extra: ReactNode | undefined;
|
|
10
9
|
}
|
|
11
10
|
export interface TSubMenuExtraData {
|
|
12
11
|
path: string;
|
|
13
|
-
data:
|
|
12
|
+
data: ReactNode;
|
|
14
13
|
}
|
|
15
14
|
export declare function SidePanelControl(): import("react/jsx-runtime").JSX.Element;
|
|
16
15
|
export declare function BackBtn({ label }: TButtonProps & {
|
|
@@ -18,15 +17,15 @@ export declare function BackBtn({ label }: TButtonProps & {
|
|
|
18
17
|
}): import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
export declare function CloseBtn(): false | import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
export declare function ShowTab({ children }: {
|
|
21
|
-
children:
|
|
20
|
+
children: ReactNode;
|
|
22
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
22
|
export declare const CloseBtnRender: () => import("react/jsx-runtime").JSX.Element;
|
|
24
23
|
export declare function MenuFactory({ menuItems, tabs, id, defaultIsOpen, openBtn, MenuComponent, }: {
|
|
25
|
-
tabs:
|
|
24
|
+
tabs: JSX.Element[];
|
|
26
25
|
id: string;
|
|
27
26
|
menuItems?: TMenuItemProps[] | null;
|
|
28
27
|
defaultIsOpen?: boolean;
|
|
29
|
-
openBtn?:
|
|
28
|
+
openBtn?: ReactNode | null;
|
|
30
29
|
MenuComponent: ComponentType<TMenuProps | TMenuSidePanelProps>;
|
|
31
30
|
}): import("react/jsx-runtime").JSX.Element;
|
|
32
31
|
export declare function menuTabs(menu: TMenuItemProps[], extras?: TSubMenuExtraData[], MenuComponent?: ComponentType<TMenuProps>): import("react/jsx-runtime").JSX.Element[];
|
package/theme/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
children: React.ReactNode;
|
|
1
|
+
declare const _default: import('react').MemoExoticComponent<({ children }: {
|
|
2
|
+
children: import('react').ReactNode;
|
|
4
3
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
5
4
|
export default _default;
|
package/types/components.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { RefCallBack } from 'react-hook-form';
|
|
3
3
|
import { TCustomTheme, TToken } from '../providers/Theme/interface';
|
|
4
|
-
import type * as React from 'react';
|
|
5
4
|
export interface TDefaultComponent<T = TToken> {
|
|
6
|
-
as?:
|
|
5
|
+
as?: ElementType;
|
|
7
6
|
customTheme?: TCustomTheme;
|
|
8
7
|
tokens?: T;
|
|
9
8
|
themeName?: string | null;
|
|
10
|
-
children?:
|
|
9
|
+
children?: ReactNode;
|
|
11
10
|
}
|
|
12
11
|
export interface TReactHookFormValidity {
|
|
13
12
|
isRequired?: boolean;
|
|
@@ -49,7 +48,7 @@ export type TReactHookForm = TReactHookFormValidity & {
|
|
|
49
48
|
};
|
|
50
49
|
export interface TTransition extends TDefaultComponent, HTMLAttributes<HTMLElement> {
|
|
51
50
|
isVisible: boolean;
|
|
52
|
-
children:
|
|
51
|
+
children: ReactNode;
|
|
53
52
|
}
|
|
54
53
|
export type Nullable<T> = T | undefined | null;
|
|
55
54
|
export type Maybe<T> = T | null;
|