@unifiedsoftware/react-components 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +11 -29
- package/dist/index.d.ts +11 -29
- package/dist/index.js +1 -23
- package/dist/index.mjs +2 -24
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactNode, FC } from 'react';
|
|
4
|
-
import * as styled_components from 'styled-components';
|
|
5
|
-
import * as _unifiedsoftware_react_router from '@unifiedsoftware/react-router';
|
|
6
4
|
|
|
7
5
|
interface IDropEnumList {
|
|
8
6
|
dataEnum: object;
|
|
@@ -148,37 +146,21 @@ interface Props {
|
|
|
148
146
|
}
|
|
149
147
|
declare const Title: ({ title }: Props) => react_jsx_runtime.JSX.Element;
|
|
150
148
|
|
|
151
|
-
declare const Breadcrumb:
|
|
152
|
-
declare const BreadCrumbTitle:
|
|
149
|
+
declare const Breadcrumb: any;
|
|
150
|
+
declare const BreadCrumbTitle: any;
|
|
153
151
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
width?: string;
|
|
157
|
-
}
|
|
158
|
-
declare const MenuItem: styled_components.StyledComponent<react.ForwardRefExoticComponent<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>>, any, MenuItemProps, never>;
|
|
159
|
-
declare const MenuTitle: styled_components.StyledComponent<"p", any, {}, never>;
|
|
152
|
+
declare const MenuItem: any;
|
|
153
|
+
declare const MenuTitle: any;
|
|
160
154
|
|
|
161
|
-
|
|
162
|
-
gradient?: boolean;
|
|
163
|
-
}
|
|
164
|
-
declare const Navbar: styled_components.StyledComponent<"nav", any, NavbarProps, never>;
|
|
155
|
+
declare const Navbar: any;
|
|
165
156
|
|
|
166
|
-
declare const MenuOptions:
|
|
157
|
+
declare const MenuOptions: any;
|
|
167
158
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
fixed?: boolean;
|
|
172
|
-
shadow?: boolean;
|
|
173
|
-
}
|
|
174
|
-
declare const ItemSidebar: styled_components.StyledComponent<"div", any, {}, never>;
|
|
175
|
-
declare const SidebarNavigation: styled_components.StyledComponent<"nav", any, SidebarProps, never>;
|
|
176
|
-
declare const ItemLinkSidebar: styled_components.StyledComponent<react.ForwardRefExoticComponent<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>>, any, {}, never>;
|
|
159
|
+
declare const ItemSidebar: any;
|
|
160
|
+
declare const SidebarNavigation: any;
|
|
161
|
+
declare const ItemLinkSidebar: any;
|
|
177
162
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
declare const Main: styled_components.StyledComponent<"main", any, MainProps, never>;
|
|
182
|
-
declare const CloseIcon: styled_components.StyledComponent<"button", any, {}, never>;
|
|
163
|
+
declare const Main: any;
|
|
164
|
+
declare const CloseIcon: any;
|
|
183
165
|
|
|
184
166
|
export { AppBreadCrumb, AppBreadCrumbNav, AppLoader, BreadCrumbContext, BreadCrumbContextProvider, BreadCrumbTitle, Breadcrumb, CloseIcon, CustomBtns, CustomExcel, DrawerContext, DrawerContextProvider, DropEnumList, GlobalProps, GlobalProvider, HistoryContext, HistoryContextProvider, IBreadCrumbContext, ICustomizeColumns, ILoaderProps, ItemLinkSidebar, ItemSidebar, LoaderGrid, LoadingType, Main, MenuItem as MenuItems, MenuOptions, MenuTitle, NavOptions, NavOptionsProps, Navbar, SidebarMainContext, SidebarMainContextProvider, SidebarNavigation, Title };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactNode, FC } from 'react';
|
|
4
|
-
import * as styled_components from 'styled-components';
|
|
5
|
-
import * as _unifiedsoftware_react_router from '@unifiedsoftware/react-router';
|
|
6
4
|
|
|
7
5
|
interface IDropEnumList {
|
|
8
6
|
dataEnum: object;
|
|
@@ -148,37 +146,21 @@ interface Props {
|
|
|
148
146
|
}
|
|
149
147
|
declare const Title: ({ title }: Props) => react_jsx_runtime.JSX.Element;
|
|
150
148
|
|
|
151
|
-
declare const Breadcrumb:
|
|
152
|
-
declare const BreadCrumbTitle:
|
|
149
|
+
declare const Breadcrumb: any;
|
|
150
|
+
declare const BreadCrumbTitle: any;
|
|
153
151
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
width?: string;
|
|
157
|
-
}
|
|
158
|
-
declare const MenuItem: styled_components.StyledComponent<react.ForwardRefExoticComponent<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>>, any, MenuItemProps, never>;
|
|
159
|
-
declare const MenuTitle: styled_components.StyledComponent<"p", any, {}, never>;
|
|
152
|
+
declare const MenuItem: any;
|
|
153
|
+
declare const MenuTitle: any;
|
|
160
154
|
|
|
161
|
-
|
|
162
|
-
gradient?: boolean;
|
|
163
|
-
}
|
|
164
|
-
declare const Navbar: styled_components.StyledComponent<"nav", any, NavbarProps, never>;
|
|
155
|
+
declare const Navbar: any;
|
|
165
156
|
|
|
166
|
-
declare const MenuOptions:
|
|
157
|
+
declare const MenuOptions: any;
|
|
167
158
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
fixed?: boolean;
|
|
172
|
-
shadow?: boolean;
|
|
173
|
-
}
|
|
174
|
-
declare const ItemSidebar: styled_components.StyledComponent<"div", any, {}, never>;
|
|
175
|
-
declare const SidebarNavigation: styled_components.StyledComponent<"nav", any, SidebarProps, never>;
|
|
176
|
-
declare const ItemLinkSidebar: styled_components.StyledComponent<react.ForwardRefExoticComponent<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>>, any, {}, never>;
|
|
159
|
+
declare const ItemSidebar: any;
|
|
160
|
+
declare const SidebarNavigation: any;
|
|
161
|
+
declare const ItemLinkSidebar: any;
|
|
177
162
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
declare const Main: styled_components.StyledComponent<"main", any, MainProps, never>;
|
|
182
|
-
declare const CloseIcon: styled_components.StyledComponent<"button", any, {}, never>;
|
|
163
|
+
declare const Main: any;
|
|
164
|
+
declare const CloseIcon: any;
|
|
183
165
|
|
|
184
166
|
export { AppBreadCrumb, AppBreadCrumbNav, AppLoader, BreadCrumbContext, BreadCrumbContextProvider, BreadCrumbTitle, Breadcrumb, CloseIcon, CustomBtns, CustomExcel, DrawerContext, DrawerContextProvider, DropEnumList, GlobalProps, GlobalProvider, HistoryContext, HistoryContextProvider, IBreadCrumbContext, ICustomizeColumns, ILoaderProps, ItemLinkSidebar, ItemSidebar, LoaderGrid, LoadingType, Main, MenuItem as MenuItems, MenuOptions, MenuTitle, NavOptions, NavOptionsProps, Navbar, SidebarMainContext, SidebarMainContextProvider, SidebarNavigation, Title };
|
package/dist/index.js
CHANGED
|
@@ -15077,11 +15077,6 @@ function MdClose(props) {
|
|
|
15077
15077
|
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" } }, { "tag": "path", "attr": { "d": "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" } }] })(props);
|
|
15078
15078
|
}
|
|
15079
15079
|
|
|
15080
|
-
// ../../../node_modules/react-icons/vsc/index.esm.js
|
|
15081
|
-
function VscChevronRight(props) {
|
|
15082
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 16 16", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "clipRule": "evenodd", "d": "M10.072 8.024L5.715 3.667l.618-.62L11 7.716v.618L6.333 13l-.618-.619 4.357-4.357z" } }] })(props);
|
|
15083
|
-
}
|
|
15084
|
-
|
|
15085
15080
|
// ../../../node_modules/styled-components/dist/styled-components.esm.js
|
|
15086
15081
|
var import_react_is = __toESM(require_react_is2());
|
|
15087
15082
|
var import_react13 = __toESM(require("react"));
|
|
@@ -16728,24 +16723,7 @@ var AppBreadCrumbNav = ({ paths }) => {
|
|
|
16728
16723
|
setRoutes(paths != null ? paths : []);
|
|
16729
16724
|
}, [paths]);
|
|
16730
16725
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Breadcrumb, { children: [
|
|
16731
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.
|
|
16732
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_router3.Link, { href: "/", className: "link", children: "HOME" }),
|
|
16733
|
-
routes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(VscChevronRight, { color: "black" }),
|
|
16734
|
-
routes.length > 0 ? routes.map((i2, idx, arr) => {
|
|
16735
|
-
if (i2.route === -1) {
|
|
16736
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "link", onClick: () => router.back(), children: [
|
|
16737
|
-
i2.title,
|
|
16738
|
-
" ",
|
|
16739
|
-
idx + 1 === arr.length ? "" : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(VscChevronRight, { color: "black" })
|
|
16740
|
-
] }, idx);
|
|
16741
|
-
}
|
|
16742
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_router3.Link, { href: i2.route, className: "link", children: [
|
|
16743
|
-
i2.title,
|
|
16744
|
-
" ",
|
|
16745
|
-
idx + 1 === arr.length ? "" : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(VscChevronRight, { color: "black" })
|
|
16746
|
-
] }, idx);
|
|
16747
|
-
}) : ""
|
|
16748
|
-
] }),
|
|
16726
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "d-flex align-items-center" }),
|
|
16749
16727
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
16750
16728
|
CloseIcon,
|
|
16751
16729
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -14960,7 +14960,7 @@ function GlobalProvider({ children }) {
|
|
|
14960
14960
|
}
|
|
14961
14961
|
|
|
14962
14962
|
// src/layout/AppBreadcrumb.tsx
|
|
14963
|
-
import {
|
|
14963
|
+
import { useRouter } from "@unifiedsoftware/react-router";
|
|
14964
14964
|
import { useContext as useContext5, useEffect as useEffect4 } from "react";
|
|
14965
14965
|
|
|
14966
14966
|
// ../../../node_modules/react-icons/lib/esm/iconBase.js
|
|
@@ -15049,11 +15049,6 @@ function MdClose(props) {
|
|
|
15049
15049
|
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" } }, { "tag": "path", "attr": { "d": "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" } }] })(props);
|
|
15050
15050
|
}
|
|
15051
15051
|
|
|
15052
|
-
// ../../../node_modules/react-icons/vsc/index.esm.js
|
|
15053
|
-
function VscChevronRight(props) {
|
|
15054
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 16 16", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "clipRule": "evenodd", "d": "M10.072 8.024L5.715 3.667l.618-.62L11 7.716v.618L6.333 13l-.618-.619 4.357-4.357z" } }] })(props);
|
|
15055
|
-
}
|
|
15056
|
-
|
|
15057
15052
|
// ../../../node_modules/styled-components/dist/styled-components.esm.js
|
|
15058
15053
|
var import_react_is = __toESM(require_react_is2());
|
|
15059
15054
|
var import_shallowequal = __toESM(require_shallowequal());
|
|
@@ -16700,24 +16695,7 @@ var AppBreadCrumbNav = ({ paths }) => {
|
|
|
16700
16695
|
setRoutes(paths != null ? paths : []);
|
|
16701
16696
|
}, [paths]);
|
|
16702
16697
|
return /* @__PURE__ */ jsxs(Breadcrumb, { children: [
|
|
16703
|
-
/* @__PURE__ */
|
|
16704
|
-
/* @__PURE__ */ jsx7(Link3, { href: "/", className: "link", children: "HOME" }),
|
|
16705
|
-
routes.length > 0 && /* @__PURE__ */ jsx7(VscChevronRight, { color: "black" }),
|
|
16706
|
-
routes.length > 0 ? routes.map((i2, idx, arr) => {
|
|
16707
|
-
if (i2.route === -1) {
|
|
16708
|
-
return /* @__PURE__ */ jsxs("span", { className: "link", onClick: () => router.back(), children: [
|
|
16709
|
-
i2.title,
|
|
16710
|
-
" ",
|
|
16711
|
-
idx + 1 === arr.length ? "" : /* @__PURE__ */ jsx7(VscChevronRight, { color: "black" })
|
|
16712
|
-
] }, idx);
|
|
16713
|
-
}
|
|
16714
|
-
return /* @__PURE__ */ jsxs(Link3, { href: i2.route, className: "link", children: [
|
|
16715
|
-
i2.title,
|
|
16716
|
-
" ",
|
|
16717
|
-
idx + 1 === arr.length ? "" : /* @__PURE__ */ jsx7(VscChevronRight, { color: "black" })
|
|
16718
|
-
] }, idx);
|
|
16719
|
-
}) : ""
|
|
16720
|
-
] }),
|
|
16698
|
+
/* @__PURE__ */ jsx7("div", { className: "d-flex align-items-center" }),
|
|
16721
16699
|
/* @__PURE__ */ jsx7(
|
|
16722
16700
|
CloseIcon,
|
|
16723
16701
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifiedsoftware/react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"react-dom": "^16.0.0 || ^17.0.2 || ^18.2.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@unifiedsoftware/react-router": "1.0.
|
|
25
|
-
"@unifiedsoftware/react-ui": "1.0.
|
|
24
|
+
"@unifiedsoftware/react-router": "1.0.1",
|
|
25
|
+
"@unifiedsoftware/react-ui": "1.0.9"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^18.14.6",
|