react-luminus-components 1.1.6 → 1.1.9
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/.vite/manifest.json +53 -46
- package/dist/DataKey-Bo883ncO.js +1 -0
- package/dist/DataKey-CXMJ5YCH.mjs +51 -0
- package/dist/{InvalidFeedback.module-DJcRbXSF.mjs → SimplePicker.module-BL8k4kWN.mjs} +217 -199
- package/dist/{InvalidFeedback.module-DrVBvau3.js → SimplePicker.module-DnODgYFl.js} +21 -21
- package/dist/SimpleTooltip-BmkUawod.js +1 -0
- package/dist/{SimpleTooltip-CKNsKZll.mjs → SimpleTooltip-DgJ8gBIF.mjs} +2 -2
- package/dist/components/Buttons/FloatingSubmit/FloatingFormSubmit.d.ts +3 -2
- package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +1 -1
- package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +19 -0
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +15 -0
- package/dist/components/HookForm/index.d.ts +1 -1
- package/dist/components/common/InputContainer/InputContainer.d.ts +2 -1
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +15 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +2 -2
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +3 -3
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +648 -74
- package/dist/{hasClass-2sGhxaPc.mjs → hasClass-BHK2NooK.mjs} +1 -1
- package/dist/{hasClass-Ch2izaph.js → hasClass-C-64QyIl.js} +5 -5
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +3 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +35 -33
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +3 -3
- package/dist/main.es.js +1773 -1763
- package/dist/models/index.d.ts +3 -2
- package/dist/models/prop-types/{HookFormEmployeePickerProps.d.ts → HookFormDropdownPickerProps.d.ts} +3 -2
- package/dist/models/texts/DropdownPickerTexts.d.ts +5 -0
- package/dist/models/texts/FormSubmitTexts.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/useClickOutside-BjJyGTec.mjs +14 -0
- package/dist/useClickOutside-DsVG12Cs.js +1 -0
- package/dist/useConfirm-5bscOMVZ.js +1 -0
- package/dist/{useConfirm-Cv_8Pxgx.mjs → useConfirm-Rw0k8LNX.mjs} +1 -1
- package/package.json +2 -3
- package/dist/Modal-Cgt4jEpF.mjs +0 -627
- package/dist/Modal-dXyx77X0.js +0 -1
- package/dist/SimpleTooltip-hw-DnjyJ.js +0 -1
- package/dist/components/EmployeePicker/EmployeeSearch/EmployeeSearch.d.ts +0 -7
- package/dist/components/EmployeePicker/EmployeeSearchModal/EmployeeSearchModal.d.ts +0 -9
- package/dist/components/EmployeePicker/comps/EmployeeSearchItem/EmployeeSearchItem.d.ts +0 -7
- package/dist/components/EmployeePicker/comps/index.d.ts +0 -1
- package/dist/components/EmployeePicker/index.d.ts +0 -2
- package/dist/components/Form/EmployeePicker/EmployeePicker.d.ts +0 -13
- package/dist/components/HookForm/EmployeePicker/HookFormEmployeePicker.d.ts +0 -9
- package/dist/models/texts/EmployeeSearchModalTexts.d.ts +0 -6
- package/dist/useConfirm-BCj1t5rw.js +0 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { default as HookFormCheckInputProps } from './prop-types/HookFormCheckInputProps';
|
|
2
|
-
export type { default as
|
|
2
|
+
export type { default as HookFormDropdownPickerProps } from './prop-types/HookFormDropdownPickerProps';
|
|
3
3
|
export type { default as HookFormRadioInputProps } from './prop-types/HookFormRadioInputProps';
|
|
4
4
|
export type { default as HookFormSelectInputProps } from './prop-types/HookFormSelectInputProps';
|
|
5
5
|
export type { default as HookFormTextAreaInputProps } from './prop-types/HookFormTextAreaInputProps';
|
|
@@ -18,6 +18,7 @@ export type { default as ErrorField } from './types/ErrorField';
|
|
|
18
18
|
export type { default as ApiErrorResult } from './types/ApiErrorResult';
|
|
19
19
|
export type { default as AxiosTexts } from './texts/AxiosTexts';
|
|
20
20
|
export type { default as HomeDashboardTexts } from './texts/HomeDashboardTexts';
|
|
21
|
-
export type { default as
|
|
21
|
+
export type { default as DropdownPickerTexts } from './texts/DropdownPickerTexts';
|
|
22
22
|
export type { default as ConfirmTexts } from './texts/ConfirmTexts';
|
|
23
23
|
export type { default as FormValidationTexts } from './texts/FormValidationTexts';
|
|
24
|
+
export type { default as FormSubmitTexts } from './texts/FormSubmitTexts';
|
package/dist/models/prop-types/{HookFormEmployeePickerProps.d.ts → HookFormDropdownPickerProps.d.ts}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import NameIdIntModel from '../types/NameIdIntModel';
|
|
2
|
-
type
|
|
2
|
+
type HookFormDropdownPickerProps = {
|
|
3
3
|
formField: string;
|
|
4
4
|
label: string;
|
|
5
5
|
defaultSelection: NameIdIntModel | null;
|
|
6
|
+
isNumber?: boolean;
|
|
6
7
|
size?: 'sm' | 'lg';
|
|
7
8
|
resetsFields?: string[];
|
|
8
9
|
hidden?: boolean;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
required?: boolean;
|
|
11
12
|
};
|
|
12
|
-
export default
|
|
13
|
+
export default HookFormDropdownPickerProps;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._loading_14qfh_1{position:fixed;display:flex;align-items:center;justify-content:center;height:100vh;width:100vw;gap:8px}._loading_14qfh_1 ._spinner-grow_14qfh_10{width:40px;height:40px}._loading_14qfh_1 ._spinner-grow_14qfh_10._second_14qfh_14{animation-delay:.1s}._loading_14qfh_1 ._spinner-grow_14qfh_10._third_14qfh_17{animation-delay:.2s}.
|
|
1
|
+
._loading_14qfh_1{position:fixed;display:flex;align-items:center;justify-content:center;height:100vh;width:100vw;gap:8px}._loading_14qfh_1 ._spinner-grow_14qfh_10{width:40px;height:40px}._loading_14qfh_1 ._spinner-grow_14qfh_10._second_14qfh_14{animation-delay:.1s}._loading_14qfh_1 ._spinner-grow_14qfh_10._third_14qfh_17{animation-delay:.2s}._h1_1unxw_1{font-size:22px;font-weight:400;margin:0;padding:0}._h3_1unxw_8{font-size:20px;font-weight:400;margin:0;padding:0}._h6_1unxw_15,._subtitle_1unxw_22{font-size:16px;font-weight:400;margin:0;padding:0}._body_1unxw_29{font-size:14px;font-weight:400;margin:0;padding:0}._body2_1unxw_36{font-size:13px;font-weight:400;margin:0;padding:0}._caption_1unxw_43{font-size:11px;font-weight:400;margin:0;padding:0}._toast_1ypa6_1{color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;border:none!important;font-size:14px!important;padding:4px 24px 4px 8px!important;gap:4px!important}._button_jww69_1{display:flex;align-items:center;justify-content:center;border-width:2px}._button_jww69_1._filled_jww69_7,._button_jww69_1._filled_jww69_7 *{color:#fff}._button_jww69_1._sm_jww69_13{font-size:14px;padding:4px 8px;gap:6px}._button_jww69_1._md_jww69_18{font-size:16px;padding:6px 12px;gap:8px}._button_jww69_1._lg_jww69_23{font-size:18px;padding:10px 16px;gap:12px;min-width:120px}._button_jww69_1:hover,._button_jww69_1:hover *{color:#fff}._submit-container_w6qi9_1{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:12px;padding:24px;background-color:#ffffffe6}._spacer_w6qi9_14{height:75px}._button_6qbjz_1{display:flex;align-items:center;justify-content:center;border:none;font-size:12px;padding:5px 10px;gap:6px}._widget_1sdw8_1{height:320px;display:flex;justify-content:center;align-items:center}._dashboard_1ikl9_1 ._widgets-grid_1ikl9_1{display:grid;grid-template-columns:repeat(2,1fr);column-gap:16px;row-gap:16px}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7{position:relative;height:320px;width:100%}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7._full-width_1ikl9_12{grid-column:span 2}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7._widget-edit_1ikl9_15{border:2px dashed gray}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._remove-icon_1ikl9_18{z-index:2;position:absolute;right:-16px;top:-16px;background-color:#fff}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._full-width-icon_1ikl9_25{z-index:2;position:absolute;right:-16px;top:calc(50% - 15px);background-color:#fff}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._full-width-icon_1ikl9_25 svg{rotate:90deg}._dashboard_1ikl9_1 ._widget-wrapper_1ikl9_7 ._widget-edit-overlay_1ikl9_35{position:absolute;left:0;top:0;height:100%;width:100%;background-color:#80808080;opacity:.6}._badge_nhser_1._sm_nhser_1{padding:4px}._badge_nhser_1._md_nhser_4{padding:8px}._badge_nhser_1._lg_nhser_7{padding:10px}._collapse-icon_1ahhn_1{font-size:22px;rotate:90deg;transition:.2s ease}._collapse-icon_1ahhn_1._collapsed_1ahhn_6{rotate:-90deg}._floating-label_1vydx_1{margin-top:4px}._floating-label_1vydx_1 input{padding:0rem .75rem!important}._floating-label_1vydx_1>.form-control,._floating-label_1vydx_1>.form-control-plaintext,._floating-label_1vydx_1>.form-select{height:calc(3rem + 2px);min-height:calc(3rem + 2px);max-height:calc(3rem + 2px);line-height:1;font-size:14px}._floating-label_1vydx_1>.form-control,._floating-label_1vydx_1>.form-control-plaintext{padding:0rem .75rem}._floating-label_1vydx_1>.form-select{padding:0rem 2rem 0rem .75rem}._floating-label_1vydx_1>label{font-size:14px;padding:0rem .25rem;height:1.5rem;position:absolute;left:.5rem;top:calc(50% - .75rem);transition:all .2s ease}._floating-label_1vydx_1>.form-control:focus~label,._floating-label_1vydx_1>.form-control:not(:placeholder-shown)~label,._floating-label_1vydx_1>.form-select~label{transform:none;height:1.25rem;padding:0rem .25rem;font-size:12px;opacity:1;top:-9px;background-color:#fff}._floating-label_1vydx_1>.form-control:focus~label:after,._floating-label_1vydx_1>.form-control:not(:placeholder-shown)~label:after,._floating-label_1vydx_1>.form-select~label:after{content:none!important}._floating-label_1vydx_1 .form-control:disabled{background-color:#fff;font-style:italic}._feedback_12jrk_1{padding:0 4px;font-size:12px;display:block}._feedback_12jrk_1._for-floating_12jrk_6{position:absolute;background-color:#fff;top:calc(3rem - 8px);right:12px;width:auto;max-width:70%;margin:0}._feedback-spacer_12jrk_16{padding:0 12px;color:transparent;font-size:12px;width:auto;max-width:70%}._dropdown_gxnf9_1{overflow:hidden;position:absolute;display:none;width:100%;background-color:#fff;border-top-left-radius:0!important;border-top-right-radius:0!important}._dropdown_gxnf9_1._open_gxnf9_10{display:block}._dropdown_gxnf9_1 ._selected-button_gxnf9_13{width:100%;background-color:#d3d3d3;border:none;padding:.75rem;text-decoration:none}._dropdown_gxnf9_1 ._clear-button_gxnf9_20{width:100%;padding:.25rem .75rem;background-color:#fff;border:none}._dropdown_gxnf9_1 ._search-input-container_gxnf9_26{padding:.75rem}._dropdown_gxnf9_1 ._search-input-container_gxnf9_26 ._form-control_gxnf9_29{width:100%}._dropdown_gxnf9_1 ._loading-container_gxnf9_32{display:flex;align-items:center;justify-content:center;width:100%;padding:.75rem}._dropdown_gxnf9_1 ._items-container_gxnf9_39{max-height:20vh;overflow-y:auto}._dropdown_gxnf9_1 ._items-container_gxnf9_39 ._item_gxnf9_39{width:100%;padding:.75rem;background-color:#fff;border:none}._side-menu-item_9ejxx_1{width:100%;position:relative}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5{position:relative;width:100%;display:flex;align-items:center;justify-content:center;padding:8px 16px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5._child_9ejxx_13{padding:4px 8px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5._child_9ejxx_13 ._text_9ejxx_16{margin-left:0}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._icon_9ejxx_19{display:flex;justify-content:center;align-items:center;font-size:24px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._collapse-icon_9ejxx_25{width:100%;display:flex;justify-content:end;align-items:center;font-size:20px}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._collapse-icon_9ejxx_25 svg{transition:.2s ease}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._collapse-icon_9ejxx_25._collapsed_9ejxx_35 svg{rotate:180deg}._side-menu-item_9ejxx_1 ._nav-button_9ejxx_5 ._text_9ejxx_16{font-size:16px;margin-left:24px}._side-menu-item_9ejxx_1._expanded_9ejxx_42 ._nav-button_9ejxx_5,._side-menu-item_9ejxx_1._expanded_9ejxx_42 ._nav-button_9ejxx_5 ._icon_9ejxx_19{justify-content:flex-start}._side-menu-item_9ejxx_1 ._children-container_9ejxx_48{position:absolute;display:none;max-height:0px;flex-direction:column;flex-wrap:wrap;gap:4px;padding:16px}._side-menu-item_9ejxx_1 ._children-container_9ejxx_48._visible_9ejxx_57{display:flex;left:100%;top:0;max-height:50vh}._side-menu_1hjei_1{position:fixed;top:0;left:0;height:100%;background-color:#fff;transition:.3s ease;scrollbar-width:none}._side-menu_1hjei_1::state(webkit-scrollbar){display:none}._side-menu_1hjei_1 ._sidebar-header_1hjei_13{display:flex;justify-content:center;align-items:center}._side-menu_1hjei_1 ._side-menu-content_1hjei_18{margin-top:64px;padding:0}._side-menu_1hjei_1._expand_1hjei_22 ._sidebar-header_1hjei_13{padding:0 12px;justify-content:start}._side-menu_1hjei_1 ._divider_1hjei_26{opacity:1}._top-bar_1t8hq_1{padding:0 12px;border-left:16px solid transparent;display:flex;align-items:center;grid-gap:24px;position:fixed;top:0;left:0;width:100%;transition:.3s ease}._top-bar_1t8hq_1 ._top-bar-brand_1t8hq_13{text-decoration:none;font-size:20px;margin-left:12px}._side-content-bar_17kwd_1{position:fixed;top:0;right:0;height:100%;background-color:#fff;overflow-x:hidden;scrollbar-width:none}._side-content-bar_17kwd_1::state(webkit-scrollbar){display:none}._full-screen-container_1c9bu_1{width:100%;display:flex;flex-direction:column}.luminus-input-remove-icon{position:absolute;top:0;right:16px;height:100%;display:flex;align-items:center;justify-content:center}.luminus-input-remove-icon.inset{right:40px}.luminus-input-remove-icon .icon-button{padding:0;margin:0;font-size:16px;height:20px;width:20px;display:flex;align-items:center}.form-control,.form-control-plaintext,.form-select{box-shadow:none!important}._avatar-icon_1axl6_1{height:36px;width:36px;display:flex;align-items:center;justify-content:center;border-radius:100%;color:#fff;font-size:16px}._item_qkqdk_1{display:flex;align-items:center;justify-content:flex-start;border:none;font-size:12px;padding:8px 14px;gap:8px}._item_qkqdk_1:after{content:none!important}._button_s0y6b_1{display:flex;align-items:center;justify-content:center;border:none;font-size:12px;padding:5px 10px;gap:6px}._button_s0y6b_1:after{content:none}._dropdown_1lk66_1{padding:0;border:none;min-width:auto}._tabs_13chm_1{gap:4px;border:none!important}._tabs_13chm_1 .nav-link{font-size:16px;padding:12px}._tabs_13chm_1 .nav-link.active{background-color:#fff!important}._tabs_13chm_1 .nav-link:not(.active){border:none!important}._tabs_13chm_1~.tab-content{background-color:#fff;padding:1rem}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useEffect as s } from "react";
|
|
2
|
+
const r = (e, t) => {
|
|
3
|
+
s(() => {
|
|
4
|
+
const n = (o) => {
|
|
5
|
+
e.current && !e.current.contains(o.target) && t();
|
|
6
|
+
};
|
|
7
|
+
return document.addEventListener("mousedown", n), () => {
|
|
8
|
+
document.removeEventListener("mousedown", n);
|
|
9
|
+
};
|
|
10
|
+
}, [e, t]);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
r as u
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("react"),c=(e,t)=>{u.useEffect(()=>{const n=s=>{e.current&&!e.current.contains(s.target)&&t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e,t])};exports.useClickOutside=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const m=require("./SimplePicker.module-DnODgYFl.js"),C=require("react");let n;const f=()=>{const{show:e,text:r,showConfirm:t,hideConfirm:s}=C.useContext(m.ConfirmContext),o=()=>{s()};return{confirm:async c=>(t(c),new Promise(i=>{n=i})),onConfirm:()=>{o(),n(!0)},onCancel:()=>{o(),n(!1)},show:e,text:r}};exports.useConfirm=f;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-luminus-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,8 +63,7 @@
|
|
|
63
63
|
"react-hot-toast": "^2.4.1",
|
|
64
64
|
"react-icons": "^5.0.1",
|
|
65
65
|
"use-debounce": "^10.0.0",
|
|
66
|
-
"uuid": "^9.0.1"
|
|
67
|
-
"uuidv4": "^6.2.13"
|
|
66
|
+
"uuid": "^9.0.1"
|
|
68
67
|
},
|
|
69
68
|
"devDependencies": {
|
|
70
69
|
"@rollup/plugin-typescript": "^11.1.6",
|