lecom-ui 5.3.87 → 5.3.89
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/README.md +1 -1
- package/dist/components/Collapse/Collapse.js +94 -0
- package/dist/components/DatePicker/DatePicker.js +9 -3
- package/dist/index.d.ts +3 -2
- package/dist/plugin/extend.js +79 -79
- package/dist/plugin/fontFaces.js +172 -172
- package/dist/plugin/general.js +12 -12
- package/dist/plugin/pluginDev.cjs +5 -5
- package/dist/plugin/pluginNext.cjs +5 -5
- package/dist/plugin/pluginNextTurbo.cjs +5 -5
- package/dist/plugin/pluginVite.cjs +5 -5
- package/dist/plugin/template.js +31 -31
- package/dist/plugin/typographies.js +152 -152
- package/dist/plugin/varsTheme.js +79 -79
- package/package.json +131 -131
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
lecom-ui
|
|
1
|
+
lecom-ui
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { cn } from '../../lib/utils.js';
|
|
3
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { ChevronRight } from 'lucide-react';
|
|
6
|
+
|
|
7
|
+
const collapseTriggerVariants = cva(
|
|
8
|
+
"flex items-center justify-between w-full transition-all text-left outline-none data-[state=open]:font-semibold",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
small: "text-sm py-1.5 px-4 min-h-8",
|
|
13
|
+
medium: "text-base py-2.5 px-4 min-h-10",
|
|
14
|
+
large: "text-lg py-3 px-4 min-h-12"
|
|
15
|
+
},
|
|
16
|
+
ghost: {
|
|
17
|
+
true: "bg-transparent border-none",
|
|
18
|
+
false: "border-t-none border-grey-400"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
size: "large",
|
|
23
|
+
ghost: false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
const CollapseRoot = AccordionPrimitive.Root;
|
|
28
|
+
const CollapseItem = AccordionPrimitive.Item;
|
|
29
|
+
const CollapsePanel = React.forwardRef(
|
|
30
|
+
({
|
|
31
|
+
header,
|
|
32
|
+
children,
|
|
33
|
+
extra,
|
|
34
|
+
expandIconPosition = "start",
|
|
35
|
+
size = "large",
|
|
36
|
+
ghost = false,
|
|
37
|
+
disabled = false,
|
|
38
|
+
className,
|
|
39
|
+
...props
|
|
40
|
+
}, ref) => /* @__PURE__ */ React.createElement(
|
|
41
|
+
CollapseItem,
|
|
42
|
+
{
|
|
43
|
+
ref,
|
|
44
|
+
...props,
|
|
45
|
+
className: cn(
|
|
46
|
+
"group w-full",
|
|
47
|
+
disabled && "pointer-events-none opacity-50",
|
|
48
|
+
className
|
|
49
|
+
)
|
|
50
|
+
},
|
|
51
|
+
/* @__PURE__ */ React.createElement(AccordionPrimitive.Header, { asChild: true }, /* @__PURE__ */ React.createElement(
|
|
52
|
+
AccordionPrimitive.Trigger,
|
|
53
|
+
{
|
|
54
|
+
disabled,
|
|
55
|
+
className: cn(
|
|
56
|
+
collapseTriggerVariants({ size, ghost }),
|
|
57
|
+
"flex gap-2 items-center text-left font-normal"
|
|
58
|
+
)
|
|
59
|
+
},
|
|
60
|
+
/* @__PURE__ */ React.createElement(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
className: cn(
|
|
64
|
+
"flex flex-1 items-center justify-between gap-4 w-full",
|
|
65
|
+
expandIconPosition === "end" ? "flex-row-reverse" : ""
|
|
66
|
+
)
|
|
67
|
+
},
|
|
68
|
+
/* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2 truncate" }, /* @__PURE__ */ React.createElement(
|
|
69
|
+
"span",
|
|
70
|
+
{
|
|
71
|
+
className: "flex items-center justify-center flex-shrink-0 min-w-4 min-h-4 transition-transform duration-300 group-data-[state=open]:rotate-90 text-grey-700 text-lg select-none font-normal"
|
|
72
|
+
},
|
|
73
|
+
/* @__PURE__ */ React.createElement(ChevronRight, { className: "size-4" })
|
|
74
|
+
), /* @__PURE__ */ React.createElement("span", { className: "font-normal" }, header)),
|
|
75
|
+
extra && /* @__PURE__ */ React.createElement("div", { className: "text-sm text-grey-500" }, extra)
|
|
76
|
+
)
|
|
77
|
+
)),
|
|
78
|
+
/* @__PURE__ */ React.createElement(
|
|
79
|
+
AccordionPrimitive.Content,
|
|
80
|
+
{
|
|
81
|
+
className: cn(
|
|
82
|
+
"overflow-hidden data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up"
|
|
83
|
+
)
|
|
84
|
+
},
|
|
85
|
+
/* @__PURE__ */ React.createElement("div", { className: "text-sm text-grey-800 pt-2 pb-4 px-4" }, children)
|
|
86
|
+
)
|
|
87
|
+
)
|
|
88
|
+
);
|
|
89
|
+
CollapsePanel.displayName = "CollapsePanel";
|
|
90
|
+
const Collapse = Object.assign(CollapseRoot, {
|
|
91
|
+
Panel: CollapsePanel
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
export { Collapse, collapseTriggerVariants };
|
|
@@ -19,9 +19,11 @@ function DatePicker({
|
|
|
19
19
|
calendarVariant,
|
|
20
20
|
calendarColor,
|
|
21
21
|
format: format$1 = "PPP",
|
|
22
|
-
status
|
|
22
|
+
status,
|
|
23
|
+
closeOnSelect = true
|
|
23
24
|
}) {
|
|
24
25
|
const [internalDate, setInternalDate] = React.useState();
|
|
26
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
25
27
|
const isControlled = value !== void 0 && onChange !== void 0;
|
|
26
28
|
const date = isControlled ? value : internalDate;
|
|
27
29
|
const handleSelect = (selected) => {
|
|
@@ -30,8 +32,12 @@ function DatePicker({
|
|
|
30
32
|
} else {
|
|
31
33
|
setInternalDate(selected);
|
|
32
34
|
}
|
|
35
|
+
if (closeOnSelect && selected) {
|
|
36
|
+
setIsOpen(false);
|
|
37
|
+
}
|
|
33
38
|
};
|
|
34
|
-
|
|
39
|
+
const resolvedCalendarVariant = calendarVariant === "datepicker" ? variant : calendarVariant ?? variant;
|
|
40
|
+
return /* @__PURE__ */ React.createElement(Popover, { open: isOpen, onOpenChange: setIsOpen }, /* @__PURE__ */ React.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(
|
|
35
41
|
Button,
|
|
36
42
|
{
|
|
37
43
|
variant: buttonVariant || variant,
|
|
@@ -53,7 +59,7 @@ function DatePicker({
|
|
|
53
59
|
onSelect: handleSelect,
|
|
54
60
|
autoFocus: true,
|
|
55
61
|
locale,
|
|
56
|
-
variant:
|
|
62
|
+
variant: resolvedCalendarVariant,
|
|
57
63
|
color: calendarColor ?? color ?? void 0
|
|
58
64
|
}
|
|
59
65
|
)));
|
package/dist/index.d.ts
CHANGED
|
@@ -962,7 +962,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
962
962
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
963
963
|
|
|
964
964
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
965
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLHeadingElement | HTMLParagraphElement | HTMLLabelElement | HTMLInputElement | 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 |
|
|
965
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLHeadingElement | HTMLParagraphElement | HTMLLabelElement | HTMLInputElement | 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"> & {
|
|
966
966
|
className?: string;
|
|
967
967
|
collapsedSize?: number | undefined;
|
|
968
968
|
collapsible?: boolean | undefined;
|
|
@@ -1256,8 +1256,9 @@ interface DatePickerProps {
|
|
|
1256
1256
|
onChange?: (date: Date | undefined) => void;
|
|
1257
1257
|
format?: string;
|
|
1258
1258
|
status?: string;
|
|
1259
|
+
closeOnSelect?: boolean;
|
|
1259
1260
|
}
|
|
1260
|
-
declare function DatePicker({ className, locale, placeholder, value, onChange, variant, color, buttonVariant, buttonColor, calendarVariant, calendarColor, format, status, }: DatePickerProps): React$1.JSX.Element;
|
|
1261
|
+
declare function DatePicker({ className, locale, placeholder, value, onChange, variant, color, buttonVariant, buttonColor, calendarVariant, calendarColor, format, status, closeOnSelect, }: DatePickerProps): React$1.JSX.Element;
|
|
1261
1262
|
declare namespace DatePicker {
|
|
1262
1263
|
var displayName: string;
|
|
1263
1264
|
}
|
package/dist/plugin/extend.js
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
const extend = {
|
|
2
|
-
colors: {
|
|
3
|
-
background: 'hsl(var(--background))',
|
|
4
|
-
foreground: 'hsl(var(--foreground))',
|
|
5
|
-
card: {
|
|
6
|
-
DEFAULT: 'hsl(var(--card))',
|
|
7
|
-
foreground: 'hsl(var(--card-foreground))',
|
|
8
|
-
},
|
|
9
|
-
popover: {
|
|
10
|
-
DEFAULT: 'hsl(var(--popover))',
|
|
11
|
-
foreground: 'hsl(var(--popover-foreground))',
|
|
12
|
-
},
|
|
13
|
-
primary: {
|
|
14
|
-
DEFAULT: 'hsl(var(--primary))',
|
|
15
|
-
foreground: 'hsl(var(--primary-foreground))',
|
|
16
|
-
},
|
|
17
|
-
secondary: {
|
|
18
|
-
DEFAULT: 'hsl(var(--secondary))',
|
|
19
|
-
foreground: 'hsl(var(--secondary-foreground))',
|
|
20
|
-
},
|
|
21
|
-
muted: {
|
|
22
|
-
DEFAULT: 'hsl(var(--muted))',
|
|
23
|
-
foreground: 'hsl(var(--muted-foreground))',
|
|
24
|
-
},
|
|
25
|
-
accent: {
|
|
26
|
-
DEFAULT: 'hsl(var(--accent))',
|
|
27
|
-
foreground: 'hsl(var(--accent-foreground))',
|
|
28
|
-
},
|
|
29
|
-
destructive: {
|
|
30
|
-
DEFAULT: 'hsl(var(--destructive))',
|
|
31
|
-
foreground: 'hsl(var(--destructive-foreground))',
|
|
32
|
-
},
|
|
33
|
-
border: 'hsl(var(--border))',
|
|
34
|
-
input: 'hsl(var(--input))',
|
|
35
|
-
ring: 'hsl(var(--ring))',
|
|
36
|
-
chart: {
|
|
37
|
-
1: 'hsl(var(--chart-1))',
|
|
38
|
-
2: 'hsl(var(--chart-2))',
|
|
39
|
-
3: 'hsl(var(--chart-3))',
|
|
40
|
-
4: 'hsl(var(--chart-4))',
|
|
41
|
-
5: 'hsl(var(--chart-5))',
|
|
42
|
-
6: 'hsl(var(--chart-6))',
|
|
43
|
-
7: 'hsl(var(--chart-7))',
|
|
44
|
-
8: 'hsl(var(--chart-8))',
|
|
45
|
-
},
|
|
46
|
-
sidebar: {
|
|
47
|
-
DEFAULT: 'hsl(var(--sidebar-background))',
|
|
48
|
-
foreground: 'hsl(var(--sidebar-foreground))',
|
|
49
|
-
primary: 'hsl(var(--sidebar-primary))',
|
|
50
|
-
'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
|
|
51
|
-
accent: 'hsl(var(--sidebar-accent))',
|
|
52
|
-
'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
|
|
53
|
-
border: 'hsl(var(--sidebar-border))',
|
|
54
|
-
ring: 'hsl(var(--sidebar-ring))',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
borderRadius: {
|
|
58
|
-
lg: 'var(--radius)',
|
|
59
|
-
md: 'calc(var(--radius) - 2px)',
|
|
60
|
-
sm: 'calc(var(--radius) - 4px)',
|
|
61
|
-
},
|
|
62
|
-
keyframes: {
|
|
63
|
-
'accordion-down': {
|
|
64
|
-
from: { height: '0' },
|
|
65
|
-
to: { height: 'var(--radix-accordion-content-height)' },
|
|
66
|
-
},
|
|
67
|
-
'accordion-up': {
|
|
68
|
-
from: { height: 'var(--radix-accordion-content-height)' },
|
|
69
|
-
to: { height: '0' },
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
animation: {
|
|
73
|
-
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
74
|
-
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
75
|
-
'spin-slow': 'spin 2s linear infinite',
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export { extend };
|
|
1
|
+
const extend = {
|
|
2
|
+
colors: {
|
|
3
|
+
background: 'hsl(var(--background))',
|
|
4
|
+
foreground: 'hsl(var(--foreground))',
|
|
5
|
+
card: {
|
|
6
|
+
DEFAULT: 'hsl(var(--card))',
|
|
7
|
+
foreground: 'hsl(var(--card-foreground))',
|
|
8
|
+
},
|
|
9
|
+
popover: {
|
|
10
|
+
DEFAULT: 'hsl(var(--popover))',
|
|
11
|
+
foreground: 'hsl(var(--popover-foreground))',
|
|
12
|
+
},
|
|
13
|
+
primary: {
|
|
14
|
+
DEFAULT: 'hsl(var(--primary))',
|
|
15
|
+
foreground: 'hsl(var(--primary-foreground))',
|
|
16
|
+
},
|
|
17
|
+
secondary: {
|
|
18
|
+
DEFAULT: 'hsl(var(--secondary))',
|
|
19
|
+
foreground: 'hsl(var(--secondary-foreground))',
|
|
20
|
+
},
|
|
21
|
+
muted: {
|
|
22
|
+
DEFAULT: 'hsl(var(--muted))',
|
|
23
|
+
foreground: 'hsl(var(--muted-foreground))',
|
|
24
|
+
},
|
|
25
|
+
accent: {
|
|
26
|
+
DEFAULT: 'hsl(var(--accent))',
|
|
27
|
+
foreground: 'hsl(var(--accent-foreground))',
|
|
28
|
+
},
|
|
29
|
+
destructive: {
|
|
30
|
+
DEFAULT: 'hsl(var(--destructive))',
|
|
31
|
+
foreground: 'hsl(var(--destructive-foreground))',
|
|
32
|
+
},
|
|
33
|
+
border: 'hsl(var(--border))',
|
|
34
|
+
input: 'hsl(var(--input))',
|
|
35
|
+
ring: 'hsl(var(--ring))',
|
|
36
|
+
chart: {
|
|
37
|
+
1: 'hsl(var(--chart-1))',
|
|
38
|
+
2: 'hsl(var(--chart-2))',
|
|
39
|
+
3: 'hsl(var(--chart-3))',
|
|
40
|
+
4: 'hsl(var(--chart-4))',
|
|
41
|
+
5: 'hsl(var(--chart-5))',
|
|
42
|
+
6: 'hsl(var(--chart-6))',
|
|
43
|
+
7: 'hsl(var(--chart-7))',
|
|
44
|
+
8: 'hsl(var(--chart-8))',
|
|
45
|
+
},
|
|
46
|
+
sidebar: {
|
|
47
|
+
DEFAULT: 'hsl(var(--sidebar-background))',
|
|
48
|
+
foreground: 'hsl(var(--sidebar-foreground))',
|
|
49
|
+
primary: 'hsl(var(--sidebar-primary))',
|
|
50
|
+
'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
|
|
51
|
+
accent: 'hsl(var(--sidebar-accent))',
|
|
52
|
+
'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
|
|
53
|
+
border: 'hsl(var(--sidebar-border))',
|
|
54
|
+
ring: 'hsl(var(--sidebar-ring))',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
borderRadius: {
|
|
58
|
+
lg: 'var(--radius)',
|
|
59
|
+
md: 'calc(var(--radius) - 2px)',
|
|
60
|
+
sm: 'calc(var(--radius) - 4px)',
|
|
61
|
+
},
|
|
62
|
+
keyframes: {
|
|
63
|
+
'accordion-down': {
|
|
64
|
+
from: { height: '0' },
|
|
65
|
+
to: { height: 'var(--radix-accordion-content-height)' },
|
|
66
|
+
},
|
|
67
|
+
'accordion-up': {
|
|
68
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
|
69
|
+
to: { height: '0' },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
animation: {
|
|
73
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
74
|
+
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
75
|
+
'spin-slow': 'spin 2s linear infinite',
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export { extend };
|
package/dist/plugin/fontFaces.js
CHANGED
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
const fontFaces = (publicPath) => [
|
|
2
|
-
{
|
|
3
|
-
fontFamily: 'Roboto',
|
|
4
|
-
fontStyle: 'italic',
|
|
5
|
-
fontWeight: '100',
|
|
6
|
-
fontDisplay: 'swap',
|
|
7
|
-
src: `url('${publicPath}/fonts/Roboto/thin-100-italic.woff2')`,
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
fontFamily: 'Roboto',
|
|
11
|
-
fontStyle: 'italic',
|
|
12
|
-
fontWeight: '300',
|
|
13
|
-
fontDisplay: 'swap',
|
|
14
|
-
src: `url('${publicPath}/fonts/Roboto/light-300-italic.woff2')`,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
fontFamily: 'Roboto',
|
|
18
|
-
fontStyle: 'italic',
|
|
19
|
-
fontWeight: '400',
|
|
20
|
-
fontDisplay: 'swap',
|
|
21
|
-
src: `url('${publicPath}/fonts/Roboto/regular-400-italic.woff2')`,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
fontFamily: 'Roboto',
|
|
25
|
-
fontStyle: 'italic',
|
|
26
|
-
fontWeight: '500',
|
|
27
|
-
fontDisplay: 'swap',
|
|
28
|
-
src: `url('${publicPath}/fonts/Roboto/medium-500-italic.woff2')`,
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
fontFamily: 'Roboto',
|
|
32
|
-
fontStyle: 'italic',
|
|
33
|
-
fontWeight: '700',
|
|
34
|
-
fontDisplay: 'swap',
|
|
35
|
-
src: `url('${publicPath}/fonts/Roboto/bold-700-italic.woff2')`,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
fontFamily: 'Roboto',
|
|
39
|
-
fontStyle: 'italic',
|
|
40
|
-
fontWeight: '900',
|
|
41
|
-
fontDisplay: 'swap',
|
|
42
|
-
src: `url('${publicPath}/fonts/Roboto/black-900-italic.woff2')`,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
fontFamily: 'Roboto',
|
|
46
|
-
fontStyle: 'normal',
|
|
47
|
-
fontWeight: '100',
|
|
48
|
-
fontDisplay: 'swap',
|
|
49
|
-
src: `url('${publicPath}/fonts/Roboto/thin-100.woff2')`,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
fontFamily: 'Roboto',
|
|
53
|
-
fontStyle: 'normal',
|
|
54
|
-
fontWeight: '300',
|
|
55
|
-
fontDisplay: 'swap',
|
|
56
|
-
src: `url('${publicPath}/fonts/Roboto/light-300.woff2')`,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
fontFamily: 'Roboto',
|
|
60
|
-
fontStyle: 'normal',
|
|
61
|
-
fontWeight: '400',
|
|
62
|
-
fontDisplay: 'swap',
|
|
63
|
-
src: `url('${publicPath}/fonts/Roboto/regular-400.woff2')`,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
fontFamily: 'Roboto',
|
|
67
|
-
fontStyle: 'normal',
|
|
68
|
-
fontWeight: '500',
|
|
69
|
-
fontDisplay: 'swap',
|
|
70
|
-
src: `url('${publicPath}/fonts/Roboto/medium-500.woff2')`,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
fontFamily: 'Roboto',
|
|
74
|
-
fontStyle: 'normal',
|
|
75
|
-
fontWeight: '700',
|
|
76
|
-
fontDisplay: 'swap',
|
|
77
|
-
src: `url('${publicPath}/fonts/Roboto/bold-700.woff2')`,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
fontFamily: 'Roboto',
|
|
81
|
-
fontStyle: 'normal',
|
|
82
|
-
fontWeight: '900',
|
|
83
|
-
fontDisplay: 'swap',
|
|
84
|
-
src: `url('${publicPath}/fonts/Roboto/black-900.woff2')`,
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
fontFamily: 'Montserrat',
|
|
88
|
-
fontStyle: 'italic',
|
|
89
|
-
fontWeight: '100 900',
|
|
90
|
-
fontDisplay: 'swap',
|
|
91
|
-
src: `url('${publicPath}/fonts/Montserrat/italic.woff2')`,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
fontFamily: 'Montserrat',
|
|
95
|
-
fontStyle: 'normal',
|
|
96
|
-
fontWeight: '100 900',
|
|
97
|
-
fontDisplay: 'swap',
|
|
98
|
-
src: `url('${publicPath}/fonts/Montserrat/normal.woff2')`,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
fontFamily: 'IBM Plex Mono',
|
|
102
|
-
fontStyle: 'italic',
|
|
103
|
-
fontWeight: '100',
|
|
104
|
-
fontDisplay: 'swap',
|
|
105
|
-
src: `url('${publicPath}/fonts/Ibm/thin-100-italic.woff2')`,
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
fontFamily: 'IBM Plex Mono',
|
|
109
|
-
fontStyle: 'italic',
|
|
110
|
-
fontWeight: '300',
|
|
111
|
-
fontDisplay: 'swap',
|
|
112
|
-
src: `url('${publicPath}/fonts/Ibm/light-300-italic.woff2')`,
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
fontFamily: 'IBM Plex Mono',
|
|
116
|
-
fontStyle: 'italic',
|
|
117
|
-
fontWeight: '400',
|
|
118
|
-
fontDisplay: 'swap',
|
|
119
|
-
src: `url('${publicPath}/fonts/Ibm/regular-400-italic.woff2')`,
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
fontFamily: 'IBM Plex Mono',
|
|
123
|
-
fontStyle: 'italic',
|
|
124
|
-
fontWeight: '500',
|
|
125
|
-
fontDisplay: 'swap',
|
|
126
|
-
src: `url('${publicPath}/fonts/Ibm/medium-500-italic.woff2')`,
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
fontFamily: 'IBM Plex Mono',
|
|
130
|
-
fontStyle: 'italic',
|
|
131
|
-
fontWeight: '700',
|
|
132
|
-
fontDisplay: 'swap',
|
|
133
|
-
src: `url('${publicPath}/fonts/Ibm/bold-700-italic.woff2')`,
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
fontFamily: 'IBM Plex Mono',
|
|
137
|
-
fontStyle: 'normal',
|
|
138
|
-
fontWeight: '100',
|
|
139
|
-
fontDisplay: 'swap',
|
|
140
|
-
src: `url('${publicPath}/fonts/Ibm/thin-100.woff2')`,
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
fontFamily: 'IBM Plex Mono',
|
|
144
|
-
fontStyle: 'normal',
|
|
145
|
-
fontWeight: '300',
|
|
146
|
-
fontDisplay: 'swap',
|
|
147
|
-
src: `url('${publicPath}/fonts/Ibm/light-300.woff2')`,
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
fontFamily: 'IBM Plex Mono',
|
|
151
|
-
fontStyle: 'normal',
|
|
152
|
-
fontWeight: '400',
|
|
153
|
-
fontDisplay: 'swap',
|
|
154
|
-
src: `url('${publicPath}/fonts/Ibm/regular-400.woff2')`,
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
fontFamily: 'IBM Plex Mono',
|
|
158
|
-
fontStyle: 'normal',
|
|
159
|
-
fontWeight: '500',
|
|
160
|
-
fontDisplay: 'swap',
|
|
161
|
-
src: `url('${publicPath}/fonts/Ibm/medium-500.woff2')`,
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
fontFamily: 'IBM Plex Mono',
|
|
165
|
-
fontStyle: 'normal',
|
|
166
|
-
fontWeight: '700',
|
|
167
|
-
fontDisplay: 'swap',
|
|
168
|
-
src: `url('${publicPath}/fonts/Ibm/bold-700.woff2')`,
|
|
169
|
-
},
|
|
170
|
-
];
|
|
171
|
-
|
|
172
|
-
export { fontFaces };
|
|
1
|
+
const fontFaces = (publicPath) => [
|
|
2
|
+
{
|
|
3
|
+
fontFamily: 'Roboto',
|
|
4
|
+
fontStyle: 'italic',
|
|
5
|
+
fontWeight: '100',
|
|
6
|
+
fontDisplay: 'swap',
|
|
7
|
+
src: `url('${publicPath}/fonts/Roboto/thin-100-italic.woff2')`,
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
fontFamily: 'Roboto',
|
|
11
|
+
fontStyle: 'italic',
|
|
12
|
+
fontWeight: '300',
|
|
13
|
+
fontDisplay: 'swap',
|
|
14
|
+
src: `url('${publicPath}/fonts/Roboto/light-300-italic.woff2')`,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
fontFamily: 'Roboto',
|
|
18
|
+
fontStyle: 'italic',
|
|
19
|
+
fontWeight: '400',
|
|
20
|
+
fontDisplay: 'swap',
|
|
21
|
+
src: `url('${publicPath}/fonts/Roboto/regular-400-italic.woff2')`,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
fontFamily: 'Roboto',
|
|
25
|
+
fontStyle: 'italic',
|
|
26
|
+
fontWeight: '500',
|
|
27
|
+
fontDisplay: 'swap',
|
|
28
|
+
src: `url('${publicPath}/fonts/Roboto/medium-500-italic.woff2')`,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
fontFamily: 'Roboto',
|
|
32
|
+
fontStyle: 'italic',
|
|
33
|
+
fontWeight: '700',
|
|
34
|
+
fontDisplay: 'swap',
|
|
35
|
+
src: `url('${publicPath}/fonts/Roboto/bold-700-italic.woff2')`,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
fontFamily: 'Roboto',
|
|
39
|
+
fontStyle: 'italic',
|
|
40
|
+
fontWeight: '900',
|
|
41
|
+
fontDisplay: 'swap',
|
|
42
|
+
src: `url('${publicPath}/fonts/Roboto/black-900-italic.woff2')`,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
fontFamily: 'Roboto',
|
|
46
|
+
fontStyle: 'normal',
|
|
47
|
+
fontWeight: '100',
|
|
48
|
+
fontDisplay: 'swap',
|
|
49
|
+
src: `url('${publicPath}/fonts/Roboto/thin-100.woff2')`,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
fontFamily: 'Roboto',
|
|
53
|
+
fontStyle: 'normal',
|
|
54
|
+
fontWeight: '300',
|
|
55
|
+
fontDisplay: 'swap',
|
|
56
|
+
src: `url('${publicPath}/fonts/Roboto/light-300.woff2')`,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
fontFamily: 'Roboto',
|
|
60
|
+
fontStyle: 'normal',
|
|
61
|
+
fontWeight: '400',
|
|
62
|
+
fontDisplay: 'swap',
|
|
63
|
+
src: `url('${publicPath}/fonts/Roboto/regular-400.woff2')`,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
fontFamily: 'Roboto',
|
|
67
|
+
fontStyle: 'normal',
|
|
68
|
+
fontWeight: '500',
|
|
69
|
+
fontDisplay: 'swap',
|
|
70
|
+
src: `url('${publicPath}/fonts/Roboto/medium-500.woff2')`,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
fontFamily: 'Roboto',
|
|
74
|
+
fontStyle: 'normal',
|
|
75
|
+
fontWeight: '700',
|
|
76
|
+
fontDisplay: 'swap',
|
|
77
|
+
src: `url('${publicPath}/fonts/Roboto/bold-700.woff2')`,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
fontFamily: 'Roboto',
|
|
81
|
+
fontStyle: 'normal',
|
|
82
|
+
fontWeight: '900',
|
|
83
|
+
fontDisplay: 'swap',
|
|
84
|
+
src: `url('${publicPath}/fonts/Roboto/black-900.woff2')`,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
fontFamily: 'Montserrat',
|
|
88
|
+
fontStyle: 'italic',
|
|
89
|
+
fontWeight: '100 900',
|
|
90
|
+
fontDisplay: 'swap',
|
|
91
|
+
src: `url('${publicPath}/fonts/Montserrat/italic.woff2')`,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
fontFamily: 'Montserrat',
|
|
95
|
+
fontStyle: 'normal',
|
|
96
|
+
fontWeight: '100 900',
|
|
97
|
+
fontDisplay: 'swap',
|
|
98
|
+
src: `url('${publicPath}/fonts/Montserrat/normal.woff2')`,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
fontFamily: 'IBM Plex Mono',
|
|
102
|
+
fontStyle: 'italic',
|
|
103
|
+
fontWeight: '100',
|
|
104
|
+
fontDisplay: 'swap',
|
|
105
|
+
src: `url('${publicPath}/fonts/Ibm/thin-100-italic.woff2')`,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
fontFamily: 'IBM Plex Mono',
|
|
109
|
+
fontStyle: 'italic',
|
|
110
|
+
fontWeight: '300',
|
|
111
|
+
fontDisplay: 'swap',
|
|
112
|
+
src: `url('${publicPath}/fonts/Ibm/light-300-italic.woff2')`,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
fontFamily: 'IBM Plex Mono',
|
|
116
|
+
fontStyle: 'italic',
|
|
117
|
+
fontWeight: '400',
|
|
118
|
+
fontDisplay: 'swap',
|
|
119
|
+
src: `url('${publicPath}/fonts/Ibm/regular-400-italic.woff2')`,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
fontFamily: 'IBM Plex Mono',
|
|
123
|
+
fontStyle: 'italic',
|
|
124
|
+
fontWeight: '500',
|
|
125
|
+
fontDisplay: 'swap',
|
|
126
|
+
src: `url('${publicPath}/fonts/Ibm/medium-500-italic.woff2')`,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
fontFamily: 'IBM Plex Mono',
|
|
130
|
+
fontStyle: 'italic',
|
|
131
|
+
fontWeight: '700',
|
|
132
|
+
fontDisplay: 'swap',
|
|
133
|
+
src: `url('${publicPath}/fonts/Ibm/bold-700-italic.woff2')`,
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
fontFamily: 'IBM Plex Mono',
|
|
137
|
+
fontStyle: 'normal',
|
|
138
|
+
fontWeight: '100',
|
|
139
|
+
fontDisplay: 'swap',
|
|
140
|
+
src: `url('${publicPath}/fonts/Ibm/thin-100.woff2')`,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
fontFamily: 'IBM Plex Mono',
|
|
144
|
+
fontStyle: 'normal',
|
|
145
|
+
fontWeight: '300',
|
|
146
|
+
fontDisplay: 'swap',
|
|
147
|
+
src: `url('${publicPath}/fonts/Ibm/light-300.woff2')`,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
fontFamily: 'IBM Plex Mono',
|
|
151
|
+
fontStyle: 'normal',
|
|
152
|
+
fontWeight: '400',
|
|
153
|
+
fontDisplay: 'swap',
|
|
154
|
+
src: `url('${publicPath}/fonts/Ibm/regular-400.woff2')`,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
fontFamily: 'IBM Plex Mono',
|
|
158
|
+
fontStyle: 'normal',
|
|
159
|
+
fontWeight: '500',
|
|
160
|
+
fontDisplay: 'swap',
|
|
161
|
+
src: `url('${publicPath}/fonts/Ibm/medium-500.woff2')`,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
fontFamily: 'IBM Plex Mono',
|
|
165
|
+
fontStyle: 'normal',
|
|
166
|
+
fontWeight: '700',
|
|
167
|
+
fontDisplay: 'swap',
|
|
168
|
+
src: `url('${publicPath}/fonts/Ibm/bold-700.woff2')`,
|
|
169
|
+
},
|
|
170
|
+
];
|
|
171
|
+
|
|
172
|
+
export { fontFaces };
|