@instincthub/react-ui 0.5.0 → 0.6.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/dist/src/assets/css/main.css +24 -0
- package/dist/src/assets/css/navbar/sidenav.css +35 -14
- package/dist/src/components/theme/LoadingAnimate.cjs +1 -1
- package/dist/src/components/theme/LoadingAnimate.cjs.map +1 -1
- package/dist/src/components/theme/LoadingAnimate.js +1 -1
- package/dist/src/components/theme/LoadingAnimate.js.map +1 -1
- package/dist/src/types/components/theme/LoadingAnimate.d.ts +19 -1
- package/dist/src/types/components/theme/index.d.ts +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -814,6 +814,30 @@ small {
|
|
|
814
814
|
border-radius: 50%;
|
|
815
815
|
}
|
|
816
816
|
/* -----LOADER */
|
|
817
|
+
/* LoadingAnimate variant="inline": inside its container, never the
|
|
818
|
+
fixed full-viewport overlay (.react_loading). */
|
|
819
|
+
.ihub-loading-inline {
|
|
820
|
+
display: flex;
|
|
821
|
+
align-items: center;
|
|
822
|
+
justify-content: center;
|
|
823
|
+
width: 100%;
|
|
824
|
+
min-height: 48px;
|
|
825
|
+
padding: 4px 0;
|
|
826
|
+
}
|
|
827
|
+
.ihub-loading-inline .lds-ellipsis {
|
|
828
|
+
height: 40px;
|
|
829
|
+
}
|
|
830
|
+
.ihub-loading-inline .lds-ellipsis div {
|
|
831
|
+
top: 13px;
|
|
832
|
+
}
|
|
833
|
+
.ihub-loading-inline__label {
|
|
834
|
+
position: absolute;
|
|
835
|
+
width: 1px;
|
|
836
|
+
height: 1px;
|
|
837
|
+
overflow: hidden;
|
|
838
|
+
clip: rect(0 0 0 0);
|
|
839
|
+
white-space: nowrap;
|
|
840
|
+
}
|
|
817
841
|
.lds-ellipsis {
|
|
818
842
|
display: inline-block;
|
|
819
843
|
position: relative;
|
|
@@ -188,34 +188,55 @@
|
|
|
188
188
|
object-fit: contain;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
/* Toggle button
|
|
191
|
+
/* Toggle button.
|
|
192
|
+
The sidebar clips overflow, so the toggle must live inside it. A 44px
|
|
193
|
+
header strip (padding-top on .ihub-sidenav) keeps it off the search box
|
|
194
|
+
and off the first menu item; it is edge-aligned when expanded and centred
|
|
195
|
+
in the 64px column when collapsed. */
|
|
196
|
+
.ihub-sidenav {
|
|
197
|
+
padding-top: 44px;
|
|
198
|
+
}
|
|
199
|
+
|
|
192
200
|
.ihub-sidenav-toggle {
|
|
193
201
|
position: absolute;
|
|
194
|
-
top:
|
|
195
|
-
width:
|
|
196
|
-
height:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
202
|
+
top: 6px;
|
|
203
|
+
width: 32px;
|
|
204
|
+
height: 32px;
|
|
205
|
+
padding: 0;
|
|
206
|
+
margin: 0;
|
|
207
|
+
background-color: transparent;
|
|
208
|
+
border: 1px solid transparent;
|
|
209
|
+
border-radius: 8px;
|
|
200
210
|
display: flex;
|
|
201
211
|
align-items: center;
|
|
202
212
|
justify-content: center;
|
|
203
213
|
cursor: pointer;
|
|
204
214
|
z-index: 10;
|
|
205
|
-
transition:
|
|
215
|
+
transition: background-color 0.16s ease, border-color 0.16s ease;
|
|
206
216
|
color: var(--Gunmetal, #2c333a);
|
|
207
217
|
}
|
|
208
218
|
|
|
219
|
+
.ihub-sidenav-toggle svg {
|
|
220
|
+
margin: 0;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.ihub-sidenav-toggle:hover {
|
|
224
|
+
background-color: rgba(0, 131, 143, 0.08);
|
|
225
|
+
border-color: rgba(0, 131, 143, 0.2);
|
|
226
|
+
}
|
|
227
|
+
|
|
209
228
|
.ihub-sidenav-left .ihub-sidenav-toggle {
|
|
210
|
-
right:
|
|
211
|
-
transform: translateX(0);
|
|
212
|
-
background: transparent;
|
|
213
|
-
border: transparent;
|
|
229
|
+
right: 12px;
|
|
214
230
|
}
|
|
215
231
|
|
|
216
232
|
.ihub-sidenav-right .ihub-sidenav-toggle {
|
|
217
|
-
left:
|
|
218
|
-
|
|
233
|
+
left: 12px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.ihub-sidenav-collapsed.ihub-sidenav-left .ihub-sidenav-toggle,
|
|
237
|
+
.ihub-sidenav-collapsed.ihub-sidenav-right .ihub-sidenav-toggle {
|
|
238
|
+
left: 16px;
|
|
239
|
+
right: auto;
|
|
219
240
|
}
|
|
220
241
|
|
|
221
242
|
/* Remove the old toggle icon styles since we're using MUI icons now */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react/jsx-runtime");function e(){return i.jsxs("div",{className:"lds-ellipsis","aria-hidden":"true",children:[i.jsx("div",{}),i.jsx("div",{}),i.jsx("div",{}),i.jsx("div",{})]})}exports.default=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.variant,l=void 0===a?"page":a,n=s.label,r=void 0===n?"Loading":n;return"inline"===l?i.jsxs("div",{className:"ihub-loading-inline",role:"status","aria-live":"polite",children:[i.jsx(e,{}),i.jsx("span",{className:"ihub-loading-inline__label",children:r})]}):i.jsx("div",{className:"react_loading container",children:i.jsx("div",{children:i.jsx(e,{})})})};
|
|
2
2
|
//# sourceMappingURL=LoadingAnimate.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingAnimate.cjs","sources":["../../../../src/components/theme/LoadingAnimate.tsx"],"sourcesContent":["import React from \"react\";\n\nexport default
|
|
1
|
+
{"version":3,"file":"LoadingAnimate.cjs","sources":["../../../../src/components/theme/LoadingAnimate.tsx"],"sourcesContent":["import React from \"react\";\n\nexport interface LoadingAnimateProps {\n /**\n * \"page\" (default): the full-viewport overlay, for a whole page loading.\n * \"inline\": stays inside its container, for a panel, card, modal section or\n * expanded table row. Never use \"page\" for part of a screen: it is\n * `position: fixed` and blanks everything while that one part loads.\n */\n variant?: \"page\" | \"inline\";\n /** Screen-reader text for the inline variant. Defaults to \"Loading\". */\n label?: string;\n}\n\nfunction Ellipsis() {\n return (\n <div className=\"lds-ellipsis\" aria-hidden=\"true\">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n );\n}\n\n/**\n * Animated three-dot loader.\n * @param props - {@link LoadingAnimateProps}\n * @example\n * <LoadingAnimate /> // whole page\n * <LoadingAnimate variant=\"inline\" label=\"Loading people\" /> // one section\n */\nexport default function LoadingAnimate({ variant = \"page\", label = \"Loading\" }: LoadingAnimateProps = {}) {\n if (variant === \"inline\") {\n return (\n <div className=\"ihub-loading-inline\" role=\"status\" aria-live=\"polite\">\n <Ellipsis />\n <span className=\"ihub-loading-inline__label\">{label}</span>\n </div>\n );\n }\n return (\n <div className=\"react_loading container\">\n <div>\n <Ellipsis />\n </div>\n </div>\n );\n}\n"],"names":["Ellipsis","_jsxs","className","children","_jsx","jsx","_ref","arguments","length","undefined","_ref$variant","variant","_ref$label","label","role"],"mappings":"uGAcA,SAASA,IACP,OACEC,EAAAA,KAAK,MAAA,CAAAC,UAAU,6BAA2B,OAAMC,SAAA,CAC9CC,EAAAA,IAAW,MAAA,CAAA,GACXA,gBACAA,EAAAC,IAAA,MAAA,CAAA,GACAD,EAAAA,IAAW,MAAA,CAAA,KAGjB,iBASwB,WAAgF,IAAAE,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAF,CAAE,EAAAG,EAAAJ,EAA/DK,QAAAA,OAAU,IAAHD,EAAG,OAAMA,EAAAE,EAAAN,EAAEO,MAAAA,OAAQ,IAAHD,EAAG,UAASA,EAC1E,MAAgB,WAAZD,EAEAV,EAAAA,KAAK,MAAA,CAAAC,UAAU,sBAAsBY,KAAK,SAAQ,YAAW,SAAQX,SAAA,CACnEC,EAAAA,IAACJ,EAAQ,CAAA,GACTI,EAAAC,IAAA,OAAA,CAAMH,UAAU,6BAA4BC,SAAEU,OAKlDT,EAAAA,IAAA,MAAA,CAAKF,UAAU,0BAAyBC,SACtCC,EACEC,IAAA,MAAA,CAAAF,SAAAC,EAAAA,IAACJ,EAAQ,OAIjB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as i,jsx as e}from"react/jsx-runtime";function a(){return i("div",{className:"lds-ellipsis","aria-hidden":"true",children:[e("div",{}),e("div",{}),e("div",{}),e("div",{})]})}function n(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=n.variant,d=void 0===l?"page":l,r=n.label,t=void 0===r?"Loading":r;return"inline"===d?i("div",{className:"ihub-loading-inline",role:"status","aria-live":"polite",children:[e(a,{}),e("span",{className:"ihub-loading-inline__label",children:t})]}):e("div",{className:"react_loading container",children:e("div",{children:e(a,{})})})}export{n as default};
|
|
2
2
|
//# sourceMappingURL=LoadingAnimate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingAnimate.js","sources":["../../../../src/components/theme/LoadingAnimate.tsx"],"sourcesContent":["import React from \"react\";\n\nexport default
|
|
1
|
+
{"version":3,"file":"LoadingAnimate.js","sources":["../../../../src/components/theme/LoadingAnimate.tsx"],"sourcesContent":["import React from \"react\";\n\nexport interface LoadingAnimateProps {\n /**\n * \"page\" (default): the full-viewport overlay, for a whole page loading.\n * \"inline\": stays inside its container, for a panel, card, modal section or\n * expanded table row. Never use \"page\" for part of a screen: it is\n * `position: fixed` and blanks everything while that one part loads.\n */\n variant?: \"page\" | \"inline\";\n /** Screen-reader text for the inline variant. Defaults to \"Loading\". */\n label?: string;\n}\n\nfunction Ellipsis() {\n return (\n <div className=\"lds-ellipsis\" aria-hidden=\"true\">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n );\n}\n\n/**\n * Animated three-dot loader.\n * @param props - {@link LoadingAnimateProps}\n * @example\n * <LoadingAnimate /> // whole page\n * <LoadingAnimate variant=\"inline\" label=\"Loading people\" /> // one section\n */\nexport default function LoadingAnimate({ variant = \"page\", label = \"Loading\" }: LoadingAnimateProps = {}) {\n if (variant === \"inline\") {\n return (\n <div className=\"ihub-loading-inline\" role=\"status\" aria-live=\"polite\">\n <Ellipsis />\n <span className=\"ihub-loading-inline__label\">{label}</span>\n </div>\n );\n }\n return (\n <div className=\"react_loading container\">\n <div>\n <Ellipsis />\n </div>\n </div>\n );\n}\n"],"names":["Ellipsis","_jsxs","className","children","_jsx","LoadingAnimate","_ref","arguments","length","undefined","_ref$variant","variant","_ref$label","label","role"],"mappings":"kDAcA,SAASA,IACP,OACEC,EAAK,MAAA,CAAAC,UAAU,6BAA2B,OAAMC,SAAA,CAC9CC,EAAW,MAAA,CAAA,GACXA,YACAA,EAAA,MAAA,CAAA,GACAA,EAAW,MAAA,CAAA,KAGjB,CASwB,SAAAC,IAAgF,IAAAC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAF,CAAE,EAAAG,EAAAJ,EAA/DK,QAAAA,OAAU,IAAHD,EAAG,OAAMA,EAAAE,EAAAN,EAAEO,MAAAA,OAAQ,IAAHD,EAAG,UAASA,EAC1E,MAAgB,WAAZD,EAEAV,EAAK,MAAA,CAAAC,UAAU,sBAAsBY,KAAK,SAAQ,YAAW,SAAQX,SAAA,CACnEC,EAACJ,EAAQ,CAAA,GACTI,EAAA,OAAA,CAAMF,UAAU,6BAA4BC,SAAEU,OAKlDT,EAAA,MAAA,CAAKF,UAAU,0BAAyBC,SACtCC,EACE,MAAA,CAAAD,SAAAC,EAACJ,EAAQ,OAIjB"}
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface LoadingAnimateProps {
|
|
2
|
+
/**
|
|
3
|
+
* "page" (default): the full-viewport overlay, for a whole page loading.
|
|
4
|
+
* "inline": stays inside its container, for a panel, card, modal section or
|
|
5
|
+
* expanded table row. Never use "page" for part of a screen: it is
|
|
6
|
+
* `position: fixed` and blanks everything while that one part loads.
|
|
7
|
+
*/
|
|
8
|
+
variant?: "page" | "inline";
|
|
9
|
+
/** Screen-reader text for the inline variant. Defaults to "Loading". */
|
|
10
|
+
label?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Animated three-dot loader.
|
|
14
|
+
* @param props - {@link LoadingAnimateProps}
|
|
15
|
+
* @example
|
|
16
|
+
* <LoadingAnimate /> // whole page
|
|
17
|
+
* <LoadingAnimate variant="inline" label="Loading people" /> // one section
|
|
18
|
+
*/
|
|
19
|
+
export default function LoadingAnimate({ variant, label }?: LoadingAnimateProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as ChangeStyleVariable } from "./ChangeStyleVariable";
|
|
2
2
|
export { default as DarkModeProvider, useTheme } from "./DarkModeProvider";
|
|
3
3
|
export { default as LoadingAnimate } from "./LoadingAnimate";
|
|
4
|
+
export type { LoadingAnimateProps } from "./LoadingAnimate";
|
|
4
5
|
export { default as SessionProviders } from "./SessionProviders";
|
|
5
6
|
export { default as SessionExpiresLogout } from "./signout/SessionExpiresLogout";
|
|
6
7
|
export { default as SignOutSession } from "./signout/SignOutSession";
|