lecom-ui 5.4.43 → 5.4.44

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 CHANGED
@@ -1 +1 @@
1
- lecom-ui
1
+ lecom-ui
@@ -93,13 +93,14 @@ const MultiSelect = React.forwardRef(
93
93
  setTimeout(() => calculateMaxCount(), 10);
94
94
  return;
95
95
  }
96
- const CONTROLS_WIDTH = 60;
97
- const COUNTER_TAG_WIDTH = 50;
98
- const TAG_GAP = 4;
99
- const CONTAINER_PADDING = 8;
100
- const AVG_CHAR_WIDTH = 10;
101
- const TAG_PADDING = 16;
102
- const availableWidth = buttonWidth - CONTAINER_PADDING * 2 - CONTROLS_WIDTH;
96
+ const CONTAINER_PADDING = 16;
97
+ const TAG_GAP = 2;
98
+ const COUNTER_TAG_WIDTH = 60;
99
+ const ICONS_WIDTH = 50;
100
+ const AVG_CHAR_WIDTH = 7;
101
+ const MAX_TAG_WIDTH = 250;
102
+ const TAG_BASE_WIDTH = 24;
103
+ const availableWidth = buttonWidth - CONTAINER_PADDING - ICONS_WIDTH;
103
104
  if (availableWidth <= 0) {
104
105
  setDynamicMaxCount(1);
105
106
  return;
@@ -116,28 +117,33 @@ const MultiSelect = React.forwardRef(
116
117
  };
117
118
  const estimatedWidths = [];
118
119
  for (let i = 0; i < selectedValues.length; i++) {
119
- const label = getTreeLabel(selectedValues[i]) || options.find((o) => o.value === selectedValues[i])?.label || selectedValues[i];
120
+ const option = options.find((option2) => option2.value === selectedValues[i]);
121
+ const label = getTreeLabel(selectedValues[i]) || option?.label || selectedValues[i];
122
+ const prefixWidth = option?.prefix ? 24 : 0;
123
+ const textWidth = label.length * AVG_CHAR_WIDTH;
124
+ const closeButtonWidth = 16;
120
125
  const estimatedWidth = Math.min(
121
- label.length * AVG_CHAR_WIDTH + TAG_PADDING,
122
- 250
126
+ TAG_BASE_WIDTH + textWidth + prefixWidth + closeButtonWidth,
127
+ MAX_TAG_WIDTH
123
128
  );
124
129
  estimatedWidths.push(estimatedWidth);
125
130
  }
126
- let totalWidth = 0;
131
+ let totalWidthWithoutCounter = 0;
127
132
  for (let i = 0; i < estimatedWidths.length; i++) {
128
- totalWidth += estimatedWidths[i] + (i > 0 ? TAG_GAP : 0);
133
+ totalWidthWithoutCounter += estimatedWidths[i];
134
+ if (i > 0) totalWidthWithoutCounter += TAG_GAP;
129
135
  }
130
- if (totalWidth <= availableWidth) {
136
+ if (totalWidthWithoutCounter <= availableWidth) {
131
137
  setDynamicMaxCount(selectedValues.length);
132
138
  return;
133
139
  }
134
- const availableWithCounter = availableWidth - COUNTER_TAG_WIDTH - TAG_GAP;
140
+ const availableForTagsWithCounter = availableWidth - COUNTER_TAG_WIDTH - TAG_GAP;
135
141
  let count = 0;
136
- totalWidth = 0;
142
+ let accumulatedWidth = 0;
137
143
  for (let i = 0; i < estimatedWidths.length; i++) {
138
- const tagWidth = estimatedWidths[i] + (i > 0 ? TAG_GAP : 0);
139
- if (totalWidth + tagWidth <= availableWithCounter) {
140
- totalWidth += tagWidth;
144
+ const nextTagWidth = estimatedWidths[i] + (i > 0 ? TAG_GAP : 0);
145
+ if (accumulatedWidth + nextTagWidth <= availableForTagsWithCounter) {
146
+ accumulatedWidth += nextTagWidth;
141
147
  count++;
142
148
  } else {
143
149
  break;
package/dist/index.d.ts CHANGED
@@ -999,7 +999,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
999
999
  declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1000
1000
 
1001
1001
  declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
1002
- declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLDivElement | 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"> & {
1002
+ declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLButtonElement | HTMLDivElement | HTMLHeadingElement | HTMLParagraphElement | HTMLInputElement | HTMLUListElement | HTMLLabelElement | 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"> & {
1003
1003
  className?: string;
1004
1004
  collapsedSize?: number | undefined;
1005
1005
  collapsible?: boolean | undefined;
@@ -1168,7 +1168,7 @@ declare const textareaVariants: (props?: ({
1168
1168
  variant?: "filled" | "default" | "borderless" | null | undefined;
1169
1169
  size?: "small" | "large" | "default" | null | undefined;
1170
1170
  radius?: "small" | "large" | "default" | "full" | null | undefined;
1171
- resize?: "default" | "both" | "horizontal" | "vertical" | "vertical-limited" | null | undefined;
1171
+ resize?: "both" | "horizontal" | "vertical" | "default" | "vertical-limited" | null | undefined;
1172
1172
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1173
1173
  interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
1174
1174
  }
@@ -1311,7 +1311,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
1311
1311
  declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
1312
1312
  declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1313
1313
  declare const sheetVariants: (props?: ({
1314
- side?: "left" | "right" | "top" | "bottom" | null | undefined;
1314
+ side?: "top" | "bottom" | "left" | "right" | null | undefined;
1315
1315
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1316
1316
  interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
1317
1317
  }
@@ -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 };
@@ -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 };
@@ -1,12 +1,12 @@
1
- const general = {
2
- '*': {
3
- borderColor: 'hsl(var(--border))',
4
- },
5
- body: {
6
- backgroundColor: 'hsl(var(--background))',
7
- fontFamily: 'Roboto, sans-serif',
8
- color: 'hsl(var(--foreground))',
9
- },
10
- };
11
-
12
- export { general };
1
+ const general = {
2
+ '*': {
3
+ borderColor: 'hsl(var(--border))',
4
+ },
5
+ body: {
6
+ backgroundColor: 'hsl(var(--background))',
7
+ fontFamily: 'Roboto, sans-serif',
8
+ color: 'hsl(var(--foreground))',
9
+ },
10
+ };
11
+
12
+ export { general };
@@ -1,5 +1,5 @@
1
- /* eslint-disable @typescript-eslint/no-require-imports */
2
-
3
- const buildPlugin = require('./template').buildPlugin;
4
-
5
- module.exports = buildPlugin('../public');
1
+ /* eslint-disable @typescript-eslint/no-require-imports */
2
+
3
+ const buildPlugin = require('./template').buildPlugin;
4
+
5
+ module.exports = buildPlugin('../public');
@@ -1,5 +1,5 @@
1
- /* eslint-disable @typescript-eslint/no-require-imports */
2
-
3
- const buildPlugin = require('./template').buildPlugin;
4
-
5
- module.exports = buildPlugin('~/node_modules/lecom-ui/dist/public');
1
+ /* eslint-disable @typescript-eslint/no-require-imports */
2
+
3
+ const buildPlugin = require('./template').buildPlugin;
4
+
5
+ module.exports = buildPlugin('~/node_modules/lecom-ui/dist/public');