lecom-ui 5.3.58 → 5.3.59
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.
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Prism } from 'react-syntax-highlighter';
|
|
3
|
+
import * as themes from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
4
|
+
|
|
5
|
+
const SyntaxHighlighter = ({
|
|
6
|
+
style = "vscDarkPlus",
|
|
7
|
+
language = "javascript",
|
|
8
|
+
showLineNumbers = false,
|
|
9
|
+
wrapLines = false,
|
|
10
|
+
children,
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
const themeStyle = typeof style === "string" ? themes[style] || themes.vscDarkPlus : style;
|
|
14
|
+
return /* @__PURE__ */ React.createElement(
|
|
15
|
+
Prism,
|
|
16
|
+
{
|
|
17
|
+
language,
|
|
18
|
+
style: themeStyle,
|
|
19
|
+
showLineNumbers,
|
|
20
|
+
wrapLines,
|
|
21
|
+
...props
|
|
22
|
+
},
|
|
23
|
+
children
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { SyntaxHighlighter };
|
package/dist/index.d.ts
CHANGED
|
@@ -43,8 +43,6 @@ export { enUS } from 'date-fns/locale/en-US';
|
|
|
43
43
|
export { es } from 'date-fns/locale/es';
|
|
44
44
|
export { z as zod } from 'zod';
|
|
45
45
|
export { zodResolver } from '@hookform/resolvers/zod';
|
|
46
|
-
import * as prism from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
47
|
-
export { prism as themes };
|
|
48
46
|
export { Translation, useTranslation } from 'react-i18next';
|
|
49
47
|
|
|
50
48
|
declare const accordionVariants: (props?: ({
|
|
@@ -758,9 +756,9 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
|
|
|
758
756
|
}
|
|
759
757
|
|
|
760
758
|
declare const inputVariants: (props?: ({
|
|
761
|
-
variant?: "
|
|
762
|
-
size?: "
|
|
763
|
-
radius?: "
|
|
759
|
+
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
760
|
+
size?: "default" | "small" | "large" | null | undefined;
|
|
761
|
+
radius?: "default" | "small" | "large" | "full" | null | undefined;
|
|
764
762
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
765
763
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
766
764
|
sufix?: React$1.ReactNode;
|
|
@@ -961,7 +959,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
961
959
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
962
960
|
|
|
963
961
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
964
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLElement |
|
|
962
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLSpanElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLInputElement | HTMLHeadingElement | HTMLParagraphElement | HTMLLabelElement | HTMLUListElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
|
|
965
963
|
className?: string;
|
|
966
964
|
collapsedSize?: number | undefined;
|
|
967
965
|
collapsible?: boolean | undefined;
|
|
@@ -1056,7 +1054,7 @@ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive
|
|
|
1056
1054
|
declare const TooltipArrow: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
1057
1055
|
declare const TooltipPortal: React$1.FC<TooltipPrimitive.TooltipPortalProps>;
|
|
1058
1056
|
declare const tooltipContentVariants: (props?: ({
|
|
1059
|
-
color?: "
|
|
1057
|
+
color?: "white" | "black" | null | undefined;
|
|
1060
1058
|
arrow?: boolean | null | undefined;
|
|
1061
1059
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1062
1060
|
interface TooltipContentProps extends React$1.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, VariantProps<typeof tooltipContentVariants> {
|
|
@@ -1126,9 +1124,9 @@ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
|
1126
1124
|
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1127
1125
|
|
|
1128
1126
|
declare const textareaVariants: (props?: ({
|
|
1129
|
-
variant?: "
|
|
1130
|
-
size?: "
|
|
1131
|
-
radius?: "
|
|
1127
|
+
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
1128
|
+
size?: "default" | "small" | "large" | null | undefined;
|
|
1129
|
+
radius?: "default" | "small" | "large" | "full" | null | undefined;
|
|
1132
1130
|
resize?: "default" | "both" | "horizontal" | "vertical" | "vertical-limited" | null | undefined;
|
|
1133
1131
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1134
1132
|
interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScro
|
|
|
31
31
|
export { useSidebar } from './components/Sidebar/Sidebar.js';
|
|
32
32
|
export { Skeleton } from './components/Skeleton/Skeleton.js';
|
|
33
33
|
export { Spin } from './components/Spin/Spin.js';
|
|
34
|
-
export { SyntaxHighlighter } from './components/
|
|
34
|
+
export { SyntaxHighlighter } from './components/SyntaxHilighter/SyntaxHighlighter.js';
|
|
35
35
|
export { Switch } from './components/Switch/Switch.js';
|
|
36
36
|
export { Tag, tagVariants } from './components/Tag/Tag.js';
|
|
37
37
|
export { ToggleGroup, ToggleGroupItem } from './components/ToggleGroup/ToggleGroup.js';
|
|
@@ -60,7 +60,5 @@ export { Bar, BarChart, CartesianGrid, Label, LabelList, XAxis, YAxis } from 're
|
|
|
60
60
|
export { z as zod } from 'zod';
|
|
61
61
|
export { zodResolver } from '@hookform/resolvers/zod';
|
|
62
62
|
export { useForm } from 'react-hook-form';
|
|
63
|
-
import * as themes from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
64
|
-
export { themes };
|
|
65
63
|
export { default as i18n } from 'i18next';
|
|
66
64
|
export { Translation, useTranslation } from 'react-i18next';
|