lecom-ui 4.1.9 → 4.2.1
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/_virtual/_commonjsHelpers.js +5 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/components/Accordion/Accordion.js +40 -37
- package/dist/components/Button/Button.js +10 -9
- package/dist/components/Button/CustomButton.js +6 -5
- package/dist/components/Card/Card.js +7 -6
- package/dist/components/Checkbox/Checkbox.js +35 -30
- package/dist/components/CustomIcon/Icons/CadastroFacil.js +15 -5
- package/dist/components/CustomIcon/Icons/LogoLecom.js +15 -12
- package/dist/components/CustomIcon/Icons/LogoLecomBrand.js +8 -5
- package/dist/components/CustomIcon/Icons/ModoTeste.js +13 -5
- package/dist/components/CustomIcon/Icons/Rpa.js +17 -5
- package/dist/components/DataTable/DataTable.js +33 -158
- package/dist/components/Dialog/Dialog.js +40 -31
- package/dist/components/DropdownMenu/DropdownMenu.js +55 -46
- package/dist/components/Header/Header.js +51 -35
- package/dist/components/Header/HelpMenu.js +52 -41
- package/dist/components/Header/ImgBrand.js +5 -8
- package/dist/components/Header/ModulesMenu.js +63 -50
- package/dist/components/Header/SocialMenu.js +5 -6
- package/dist/components/Header/UserMenu.js +81 -51
- package/dist/components/Input/Input.js +11 -2
- package/dist/components/Layout/Layout.js +62 -45
- package/dist/components/Notification/Notification.js +9 -8
- package/dist/components/Notification/NotificationBase.js +5 -5
- package/dist/components/Notification/NotificationCallout.js +33 -27
- package/dist/components/Notification/NotificationCloseButton.js +4 -3
- package/dist/components/Notification/NotificationContent.js +24 -18
- package/dist/components/Notification/NotificationIcon.js +9 -6
- package/dist/components/Notification/NotificationInline.js +23 -20
- package/dist/components/Notification/NotificationToast.js +28 -25
- package/dist/components/Notification/useNotificationToast.js +0 -1
- package/dist/components/Popover/Popover.js +8 -7
- package/dist/components/ScrollArea/ScrollArea.js +18 -15
- package/dist/components/Select/Select.js +63 -54
- package/dist/components/Separator/Separator.js +5 -4
- package/dist/components/Sheet/Sheet.js +35 -26
- package/dist/components/Sidebar/Sidebar.js +112 -95
- package/dist/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/Table/Table.js +15 -26
- package/dist/components/Tag/Tag.js +6 -5
- package/dist/components/Tooltip/Tooltip.js +17 -15
- package/dist/components/Typography/Typography.js +6 -7
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/i18n/index.js +4 -53
- package/dist/i18n/locales/en_us.js +4 -3
- package/dist/i18n/locales/es_es.js +4 -3
- package/dist/i18n/locales/index.js +4 -4
- package/dist/i18n/locales/pt_br.js +4 -3
- package/dist/index.d.ts +108 -304
- package/dist/index.js +1 -12
- package/dist/lib/utils.js +2 -2
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +806 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +726 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +347 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +154 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +136 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +303 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +157 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +144 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +68 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +79 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +319 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +265 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +831 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +296 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +278 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +220 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +718 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +1143 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +30 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +81 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +476 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +35 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +74 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +3023 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +136 -0
- package/dist/node_modules/class-variance-authority/dist/index.js +44 -0
- package/dist/node_modules/clsx/dist/clsx.js +3 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +8 -0
- package/dist/node_modules/hex-color-opacity/lib/index.js +22 -0
- package/dist/node_modules/i18next/dist/esm/i18next.js +2228 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +44 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-help.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/menu.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minus.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +13 -0
- package/dist/node_modules/react-i18next/dist/es/context.js +18 -0
- package/dist/node_modules/react-i18next/dist/es/defaults.js +21 -0
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +7 -0
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +12 -0
- package/dist/node_modules/react-i18next/dist/es/unescape.js +27 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +112 -0
- package/dist/node_modules/react-i18next/dist/es/utils.js +63 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +160 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +38 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +109 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +56 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +19 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2493 -0
- package/dist/node_modules/tslib/tslib.es6.js +56 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/node_modules/use-color-luminance/index.es.js +105 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +77 -0
- package/dist/plugin/typographies.ts +146 -152
- package/dist/style.min.css +1 -1
- package/dist/utils/cookie.js +9 -6
- package/package.json +11 -3
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
|
2
|
+
import defaultAttributes from './defaultAttributes.js';
|
|
3
|
+
import { mergeClasses } from './shared/src/utils.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license lucide-react v0.468.0 - ISC
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the ISC license.
|
|
9
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const Icon = forwardRef(
|
|
14
|
+
({
|
|
15
|
+
color = "currentColor",
|
|
16
|
+
size = 24,
|
|
17
|
+
strokeWidth = 2,
|
|
18
|
+
absoluteStrokeWidth,
|
|
19
|
+
className = "",
|
|
20
|
+
children,
|
|
21
|
+
iconNode,
|
|
22
|
+
...rest
|
|
23
|
+
}, ref) => {
|
|
24
|
+
return createElement(
|
|
25
|
+
"svg",
|
|
26
|
+
{
|
|
27
|
+
ref,
|
|
28
|
+
...defaultAttributes,
|
|
29
|
+
width: size,
|
|
30
|
+
height: size,
|
|
31
|
+
stroke: color,
|
|
32
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
33
|
+
className: mergeClasses("lucide", className),
|
|
34
|
+
...rest
|
|
35
|
+
},
|
|
36
|
+
[
|
|
37
|
+
...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
|
|
38
|
+
...Array.isArray(children) ? children : [children]
|
|
39
|
+
]
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
export { Icon as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
|
2
|
+
import { mergeClasses, toKebabCase } from './shared/src/utils.js';
|
|
3
|
+
import Icon from './Icon.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license lucide-react v0.468.0 - ISC
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the ISC license.
|
|
9
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const createLucideIcon = (iconName, iconNode) => {
|
|
14
|
+
const Component = forwardRef(
|
|
15
|
+
({ className, ...props }, ref) => createElement(Icon, {
|
|
16
|
+
ref,
|
|
17
|
+
iconNode,
|
|
18
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
|
19
|
+
...props
|
|
20
|
+
})
|
|
21
|
+
);
|
|
22
|
+
Component.displayName = `${iconName}`;
|
|
23
|
+
return Component;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { createLucideIcon as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license lucide-react v0.468.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
var defaultAttributes = {
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: 24,
|
|
11
|
+
height: 24,
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: 2,
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { defaultAttributes as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const Check = createLucideIcon("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
12
|
+
|
|
13
|
+
export { Check as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const ChevronDown = createLucideIcon("ChevronDown", [
|
|
12
|
+
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
export { ChevronDown as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const ChevronRight = createLucideIcon("ChevronRight", [
|
|
12
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
export { ChevronRight as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const ChevronUp = createLucideIcon("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
|
|
12
|
+
|
|
13
|
+
export { ChevronUp as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const CircleAlert = createLucideIcon("CircleAlert", [
|
|
12
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
13
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
14
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
export { CircleAlert as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const CircleCheck = createLucideIcon("CircleCheck", [
|
|
12
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
13
|
+
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
export { CircleCheck as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const CircleHelp = createLucideIcon("CircleHelp", [
|
|
12
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
13
|
+
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
14
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
export { CircleHelp as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const Circle = createLucideIcon("Circle", [
|
|
12
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
export { Circle as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const Info = createLucideIcon("Info", [
|
|
12
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
13
|
+
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
14
|
+
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
export { Info as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const Menu = createLucideIcon("Menu", [
|
|
12
|
+
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
13
|
+
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
14
|
+
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
export { Menu as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const MessageSquare = createLucideIcon("MessageSquare", [
|
|
12
|
+
["path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z", key: "1lielz" }]
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
export { MessageSquare as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const Minus = createLucideIcon("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]);
|
|
12
|
+
|
|
13
|
+
export { Minus as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const PanelLeft = createLucideIcon("PanelLeft", [
|
|
12
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
13
|
+
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
export { PanelLeft as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const TriangleAlert = createLucideIcon("TriangleAlert", [
|
|
12
|
+
[
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
16
|
+
key: "wmoenq"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
20
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
21
|
+
]);
|
|
22
|
+
|
|
23
|
+
export { TriangleAlert as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const User = createLucideIcon("User", [
|
|
12
|
+
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
13
|
+
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
export { User as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import createLucideIcon from '../createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.468.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const X = createLucideIcon("X", [
|
|
12
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
13
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
export { X as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license lucide-react v0.468.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
9
|
+
const mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
10
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
11
|
+
}).join(" ").trim();
|
|
12
|
+
|
|
13
|
+
export { mergeClasses, toKebabCase };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
|
|
3
|
+
const I18nContext = createContext();
|
|
4
|
+
class ReportNamespaces {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.usedNamespaces = {};
|
|
7
|
+
}
|
|
8
|
+
addUsedNamespaces(namespaces) {
|
|
9
|
+
namespaces.forEach(ns => {
|
|
10
|
+
if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
getUsedNamespaces() {
|
|
14
|
+
return Object.keys(this.usedNamespaces);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { I18nContext, ReportNamespaces };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { unescape } from './unescape.js';
|
|
2
|
+
|
|
3
|
+
let defaultOptions = {
|
|
4
|
+
bindI18n: 'languageChanged',
|
|
5
|
+
bindI18nStore: '',
|
|
6
|
+
transEmptyNodeValue: '',
|
|
7
|
+
transSupportBasicHtmlNodes: true,
|
|
8
|
+
transWrapTextNodes: '',
|
|
9
|
+
transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],
|
|
10
|
+
useSuspense: true,
|
|
11
|
+
unescape
|
|
12
|
+
};
|
|
13
|
+
const setDefaults = (options = {}) => {
|
|
14
|
+
defaultOptions = {
|
|
15
|
+
...defaultOptions,
|
|
16
|
+
...options
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
const getDefaults = () => defaultOptions;
|
|
20
|
+
|
|
21
|
+
export { getDefaults, setDefaults };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { setDefaults } from './defaults.js';
|
|
2
|
+
import { setI18n } from './i18nInstance.js';
|
|
3
|
+
|
|
4
|
+
const initReactI18next = {
|
|
5
|
+
type: '3rdParty',
|
|
6
|
+
init(instance) {
|
|
7
|
+
setDefaults(instance.options.react);
|
|
8
|
+
setI18n(instance);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { initReactI18next };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
2
|
+
const htmlEntities = {
|
|
3
|
+
'&': '&',
|
|
4
|
+
'&': '&',
|
|
5
|
+
'<': '<',
|
|
6
|
+
'<': '<',
|
|
7
|
+
'>': '>',
|
|
8
|
+
'>': '>',
|
|
9
|
+
''': "'",
|
|
10
|
+
''': "'",
|
|
11
|
+
'"': '"',
|
|
12
|
+
'"': '"',
|
|
13
|
+
' ': ' ',
|
|
14
|
+
' ': ' ',
|
|
15
|
+
'©': '©',
|
|
16
|
+
'©': '©',
|
|
17
|
+
'®': '®',
|
|
18
|
+
'®': '®',
|
|
19
|
+
'…': '…',
|
|
20
|
+
'…': '…',
|
|
21
|
+
'/': '/',
|
|
22
|
+
'/': '/'
|
|
23
|
+
};
|
|
24
|
+
const unescapeHtmlEntity = m => htmlEntities[m];
|
|
25
|
+
const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
26
|
+
|
|
27
|
+
export { unescape };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { useContext, useCallback, useState, useRef, useEffect } from 'react';
|
|
2
|
+
import { I18nContext, ReportNamespaces } from './context.js';
|
|
3
|
+
import { warnOnce, hasLoadedNamespace, loadLanguages, loadNamespaces, isString, isObject } from './utils.js';
|
|
4
|
+
import { getI18n } from './i18nInstance.js';
|
|
5
|
+
import { getDefaults } from './defaults.js';
|
|
6
|
+
|
|
7
|
+
const usePrevious = (value, ignore) => {
|
|
8
|
+
const ref = useRef();
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
ref.current = value;
|
|
11
|
+
}, [value, ignore]);
|
|
12
|
+
return ref.current;
|
|
13
|
+
};
|
|
14
|
+
const alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);
|
|
15
|
+
const useMemoizedT = (i18n, language, namespace, keyPrefix) => useCallback(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
|
|
16
|
+
const useTranslation = (ns, props = {}) => {
|
|
17
|
+
const {
|
|
18
|
+
i18n: i18nFromProps
|
|
19
|
+
} = props;
|
|
20
|
+
const {
|
|
21
|
+
i18n: i18nFromContext,
|
|
22
|
+
defaultNS: defaultNSFromContext
|
|
23
|
+
} = useContext(I18nContext) || {};
|
|
24
|
+
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
|
25
|
+
if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
|
|
26
|
+
if (!i18n) {
|
|
27
|
+
warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useTranslation: You will need to pass in an i18next instance by using initReactI18next');
|
|
28
|
+
const notReadyT = (k, optsOrDefaultValue) => {
|
|
29
|
+
if (isString(optsOrDefaultValue)) return optsOrDefaultValue;
|
|
30
|
+
if (isObject(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;
|
|
31
|
+
return Array.isArray(k) ? k[k.length - 1] : k;
|
|
32
|
+
};
|
|
33
|
+
const retNotReady = [notReadyT, {}, false];
|
|
34
|
+
retNotReady.t = notReadyT;
|
|
35
|
+
retNotReady.i18n = {};
|
|
36
|
+
retNotReady.ready = false;
|
|
37
|
+
return retNotReady;
|
|
38
|
+
}
|
|
39
|
+
if (i18n.options.react?.wait) warnOnce(i18n, 'DEPRECATED_OPTION', 'useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');
|
|
40
|
+
const i18nOptions = {
|
|
41
|
+
...getDefaults(),
|
|
42
|
+
...i18n.options.react,
|
|
43
|
+
...props
|
|
44
|
+
};
|
|
45
|
+
const {
|
|
46
|
+
useSuspense,
|
|
47
|
+
keyPrefix
|
|
48
|
+
} = i18nOptions;
|
|
49
|
+
let namespaces = defaultNSFromContext || i18n.options?.defaultNS;
|
|
50
|
+
namespaces = isString(namespaces) ? [namespaces] : namespaces || ['translation'];
|
|
51
|
+
i18n.reportNamespaces.addUsedNamespaces?.(namespaces);
|
|
52
|
+
const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(n => hasLoadedNamespace(n, i18n, i18nOptions));
|
|
53
|
+
const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
|
|
54
|
+
const getT = () => memoGetT;
|
|
55
|
+
const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
|
|
56
|
+
const [t, setT] = useState(getT);
|
|
57
|
+
let joinedNS = namespaces.join();
|
|
58
|
+
if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
|
|
59
|
+
const previousJoinedNS = usePrevious(joinedNS);
|
|
60
|
+
const isMounted = useRef(true);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
const {
|
|
63
|
+
bindI18n,
|
|
64
|
+
bindI18nStore
|
|
65
|
+
} = i18nOptions;
|
|
66
|
+
isMounted.current = true;
|
|
67
|
+
if (!ready && !useSuspense) {
|
|
68
|
+
if (props.lng) {
|
|
69
|
+
loadLanguages(i18n, props.lng, namespaces, () => {
|
|
70
|
+
if (isMounted.current) setT(getNewT);
|
|
71
|
+
});
|
|
72
|
+
} else {
|
|
73
|
+
loadNamespaces(i18n, namespaces, () => {
|
|
74
|
+
if (isMounted.current) setT(getNewT);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
|
|
79
|
+
setT(getNewT);
|
|
80
|
+
}
|
|
81
|
+
const boundReset = () => {
|
|
82
|
+
if (isMounted.current) setT(getNewT);
|
|
83
|
+
};
|
|
84
|
+
if (bindI18n) i18n?.on(bindI18n, boundReset);
|
|
85
|
+
if (bindI18nStore) i18n?.store.on(bindI18nStore, boundReset);
|
|
86
|
+
return () => {
|
|
87
|
+
isMounted.current = false;
|
|
88
|
+
if (i18n) bindI18n?.split(' ').forEach(e => i18n.off(e, boundReset));
|
|
89
|
+
if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, boundReset));
|
|
90
|
+
};
|
|
91
|
+
}, [i18n, joinedNS]);
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
if (isMounted.current && ready) {
|
|
94
|
+
setT(getT);
|
|
95
|
+
}
|
|
96
|
+
}, [i18n, keyPrefix, ready]);
|
|
97
|
+
const ret = [t, i18n, ready];
|
|
98
|
+
ret.t = t;
|
|
99
|
+
ret.i18n = i18n;
|
|
100
|
+
ret.ready = ready;
|
|
101
|
+
if (ready) return ret;
|
|
102
|
+
if (!ready && !useSuspense) return ret;
|
|
103
|
+
throw new Promise(resolve => {
|
|
104
|
+
if (props.lng) {
|
|
105
|
+
loadLanguages(i18n, props.lng, namespaces, () => resolve());
|
|
106
|
+
} else {
|
|
107
|
+
loadNamespaces(i18n, namespaces, () => resolve());
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export { useTranslation };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const warn = (i18n, code, msg, rest) => {
|
|
2
|
+
const args = [msg, {
|
|
3
|
+
code,
|
|
4
|
+
...(rest || {})
|
|
5
|
+
}];
|
|
6
|
+
if (i18n?.services?.logger?.forward) {
|
|
7
|
+
return i18n.services.logger.forward(args, 'warn', 'react-i18next::', true);
|
|
8
|
+
}
|
|
9
|
+
if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`;
|
|
10
|
+
if (i18n?.services?.logger?.warn) {
|
|
11
|
+
i18n.services.logger.warn(...args);
|
|
12
|
+
} else if (console?.warn) {
|
|
13
|
+
console.warn(...args);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const alreadyWarned = {};
|
|
17
|
+
const warnOnce = (i18n, code, msg, rest) => {
|
|
18
|
+
if (isString(msg) && alreadyWarned[msg]) return;
|
|
19
|
+
if (isString(msg)) alreadyWarned[msg] = new Date();
|
|
20
|
+
warn(i18n, code, msg, rest);
|
|
21
|
+
};
|
|
22
|
+
const loadedClb = (i18n, cb) => () => {
|
|
23
|
+
if (i18n.isInitialized) {
|
|
24
|
+
cb();
|
|
25
|
+
} else {
|
|
26
|
+
const initialized = () => {
|
|
27
|
+
setTimeout(() => {
|
|
28
|
+
i18n.off('initialized', initialized);
|
|
29
|
+
}, 0);
|
|
30
|
+
cb();
|
|
31
|
+
};
|
|
32
|
+
i18n.on('initialized', initialized);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const loadNamespaces = (i18n, ns, cb) => {
|
|
36
|
+
i18n.loadNamespaces(ns, loadedClb(i18n, cb));
|
|
37
|
+
};
|
|
38
|
+
const loadLanguages = (i18n, lng, ns, cb) => {
|
|
39
|
+
if (isString(ns)) ns = [ns];
|
|
40
|
+
if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);
|
|
41
|
+
ns.forEach(n => {
|
|
42
|
+
if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);
|
|
43
|
+
});
|
|
44
|
+
i18n.loadLanguages(lng, loadedClb(i18n, cb));
|
|
45
|
+
};
|
|
46
|
+
const hasLoadedNamespace = (ns, i18n, options = {}) => {
|
|
47
|
+
if (!i18n.languages || !i18n.languages.length) {
|
|
48
|
+
warnOnce(i18n, 'NO_LANGUAGES', 'i18n.languages were undefined or empty', {
|
|
49
|
+
languages: i18n.languages
|
|
50
|
+
});
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
return i18n.hasLoadedNamespace(ns, {
|
|
54
|
+
lng: options.lng,
|
|
55
|
+
precheck: (i18nInstance, loadNotPending) => {
|
|
56
|
+
if (options.bindI18n?.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
const isString = obj => typeof obj === 'string';
|
|
61
|
+
const isObject = obj => typeof obj === 'object' && obj !== null;
|
|
62
|
+
|
|
63
|
+
export { hasLoadedNamespace, isObject, isString, loadLanguages, loadNamespaces, warn, warnOnce };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __assign } from '../../../tslib/tslib.es6.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { RemoveScroll } from './UI.js';
|
|
4
|
+
import SideCar from './sidecar.js';
|
|
5
|
+
|
|
6
|
+
var ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });
|
|
7
|
+
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
8
|
+
|
|
9
|
+
export { ReactRemoveScroll as default };
|