microboard-ui-temp 0.0.9 → 0.0.10
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/index.js
CHANGED
|
@@ -302044,9 +302044,11 @@ var UiButton = import_react115.forwardRef(({
|
|
|
302044
302044
|
tooltipVariant = "primary",
|
|
302045
302045
|
hideTooltip,
|
|
302046
302046
|
loading,
|
|
302047
|
+
id: id3,
|
|
302047
302048
|
...props
|
|
302048
302049
|
}, ref4) => {
|
|
302049
302050
|
return /* @__PURE__ */ import_react115.default.createElement("button", {
|
|
302051
|
+
id: id3,
|
|
302050
302052
|
className: clsx_default(UiButton_module_default.button, active2 && UiButton_module_default.active, UiButton_module_default[variant], UiButton_module_default[size9], {
|
|
302051
302053
|
[UiButton_module_default.topRounded]: rounded === "top",
|
|
302052
302054
|
[UiButton_module_default.bottomRounded]: rounded === "bottom",
|
|
@@ -307885,12 +307887,6 @@ function getConfiguredI18n() {
|
|
|
307885
307887
|
// src/App/BoardsList.ts
|
|
307886
307888
|
function getI18n2() {
|
|
307887
307889
|
const i18nInstance2 = getConfiguredI18n();
|
|
307888
|
-
console.log("getI18n called, instance:", i18nInstance2);
|
|
307889
|
-
if (i18nInstance2) {
|
|
307890
|
-
console.log("i18n instance isInitialized:", i18nInstance2.isInitialized);
|
|
307891
|
-
console.log("i18n instance language:", i18nInstance2.language);
|
|
307892
|
-
console.log("i18n instance resources:", i18nInstance2.store?.data);
|
|
307893
|
-
}
|
|
307894
307890
|
return i18nInstance2 || {
|
|
307895
307891
|
t: (key) => {
|
|
307896
307892
|
console.log("Using fallback i18n for key:", key);
|
package/package.json
CHANGED
package/src/App/BoardsList.ts
CHANGED
|
@@ -6,12 +6,6 @@ import { Storage } from "./Storage";
|
|
|
6
6
|
|
|
7
7
|
function getI18n() {
|
|
8
8
|
const i18nInstance = getConfiguredI18n();
|
|
9
|
-
console.log("getI18n called, instance:", i18nInstance);
|
|
10
|
-
if (i18nInstance) {
|
|
11
|
-
console.log("i18n instance isInitialized:", i18nInstance.isInitialized);
|
|
12
|
-
console.log("i18n instance language:", i18nInstance.language);
|
|
13
|
-
console.log("i18n instance resources:", i18nInstance.store?.data);
|
|
14
|
-
}
|
|
15
9
|
return (
|
|
16
10
|
i18nInstance || {
|
|
17
11
|
t: (key: string) => {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
|
-
import React, { CSSProperties, forwardRef, ReactNode } from "react";
|
|
2
|
+
import React, { ButtonHTMLAttributes, CSSProperties, forwardRef, ReactNode } from "react";
|
|
3
3
|
import style from "./UiButton.module.css";
|
|
4
4
|
import { Tooltip } from "shared/ui-lib/Tooltip/Tooltip";
|
|
5
5
|
import { Loader } from "./Loader";
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type CommonUiButtonProps = Omit<
|
|
7
|
+
ButtonHTMLAttributes<HTMLButtonElement>,
|
|
8
|
+
"size"
|
|
9
|
+
> & {
|
|
10
|
+
id?: string,
|
|
8
11
|
active?: boolean;
|
|
9
12
|
disabled?: boolean;
|
|
10
13
|
tooltip?: string;
|
|
@@ -42,9 +45,9 @@ type CommonUiButtonProps = {
|
|
|
42
45
|
radius?: "xl" | "md" | "sm";
|
|
43
46
|
className?: string;
|
|
44
47
|
toolTipStyle?: CSSProperties;
|
|
48
|
+
hideTooltip?: boolean;
|
|
45
49
|
children: ReactNode;
|
|
46
50
|
loading?: boolean;
|
|
47
|
-
[key: string]: unknown;
|
|
48
51
|
};
|
|
49
52
|
|
|
50
53
|
export const UiButton = forwardRef<HTMLButtonElement, CommonUiButtonProps>(
|
|
@@ -65,12 +68,14 @@ export const UiButton = forwardRef<HTMLButtonElement, CommonUiButtonProps>(
|
|
|
65
68
|
tooltipVariant = "primary",
|
|
66
69
|
hideTooltip,
|
|
67
70
|
loading,
|
|
71
|
+
id,
|
|
68
72
|
...props
|
|
69
73
|
},
|
|
70
74
|
ref,
|
|
71
75
|
) => {
|
|
72
76
|
return (
|
|
73
77
|
<button
|
|
78
|
+
id={id}
|
|
74
79
|
className={clsx(
|
|
75
80
|
style.button,
|
|
76
81
|
active && style.active,
|