@raketa-builder/ui 1.7.0 → 1.8.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/Button.js +0 -1
- package/dist/CategoriesMenu.js +0 -1
- package/dist/Container.js +0 -1
- package/dist/DataGrid.js +0 -1
- package/dist/DefaultAvatar.js +1 -2
- package/dist/Field.js +0 -1
- package/dist/FieldSet.js +0 -1
- package/dist/FormGroup.js +0 -1
- package/dist/Grid.js +0 -1
- package/dist/H.js +0 -1
- package/dist/Handle.js +0 -1
- package/dist/Hint.js +0 -1
- package/dist/ImageAvatar.js +0 -1
- package/dist/Input.js +0 -1
- package/dist/Label.js +0 -1
- package/dist/LanguageSwitcher.js +1 -2
- package/dist/Navigation.js +0 -1
- package/dist/P.js +0 -1
- package/dist/PageTitle.js +0 -1
- package/dist/Pagination.js +0 -1
- package/dist/Panel.js +0 -1
- package/dist/Select.js +0 -1
- package/dist/Stack.js +0 -1
- package/dist/Tabs.js +13 -10
- package/dist/Textarea.js +0 -1
- package/dist/Toolbar.js +0 -1
- package/package.json +7 -4
package/dist/Button.js
CHANGED
package/dist/CategoriesMenu.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __objRest, __spreadValues, __spreadProps } from './chunk-ORMEWXMH.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import 'react';
|
|
4
3
|
|
|
5
4
|
const IconsWrapper = () => /* @__PURE__ */ jsxs("div", { className: "r-reset r-categories-icons-wrapper", children: [
|
|
6
5
|
/* @__PURE__ */ jsx(
|
package/dist/Container.js
CHANGED
package/dist/DataGrid.js
CHANGED
package/dist/DefaultAvatar.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __objRest, __spreadProps, __spreadValues } from './chunk-ORMEWXMH.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import 'react';
|
|
4
3
|
import cn from './cn';
|
|
5
4
|
|
|
6
5
|
const AVATAR_COLORS = [
|
|
@@ -21,7 +20,7 @@ const AVATAR_COLORS = [
|
|
|
21
20
|
const initialsToColor = (initials, colors) => {
|
|
22
21
|
let asciiVal = initials.charCodeAt(0);
|
|
23
22
|
asciiVal += initials.charCodeAt(1);
|
|
24
|
-
|
|
23
|
+
const colorIndex = asciiVal % colors.length;
|
|
25
24
|
return colors[colorIndex];
|
|
26
25
|
};
|
|
27
26
|
const DefaultAvatarStyles = (_a) => {
|
package/dist/Field.js
CHANGED
package/dist/FieldSet.js
CHANGED
package/dist/FormGroup.js
CHANGED
package/dist/Grid.js
CHANGED
package/dist/H.js
CHANGED
package/dist/Handle.js
CHANGED
package/dist/Hint.js
CHANGED
package/dist/ImageAvatar.js
CHANGED
package/dist/Input.js
CHANGED
package/dist/Label.js
CHANGED
package/dist/LanguageSwitcher.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __objRest, __spreadValues } from './chunk-ORMEWXMH.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import 'react';
|
|
4
3
|
import cn from './cn';
|
|
5
4
|
|
|
6
5
|
const LanguageSwitcherWrapper = (_a) => {
|
|
@@ -44,7 +43,7 @@ const LanguageSwitcher = ({ current, navigation }) => {
|
|
|
44
43
|
path: navItem.path,
|
|
45
44
|
label: navItem.label
|
|
46
45
|
},
|
|
47
|
-
idx
|
|
46
|
+
`${idx}-${navItem.path}`
|
|
48
47
|
);
|
|
49
48
|
}) })
|
|
50
49
|
] });
|
package/dist/Navigation.js
CHANGED
package/dist/P.js
CHANGED
package/dist/PageTitle.js
CHANGED
package/dist/Pagination.js
CHANGED
package/dist/Panel.js
CHANGED
package/dist/Select.js
CHANGED
package/dist/Stack.js
CHANGED
package/dist/Tabs.js
CHANGED
|
@@ -22,16 +22,19 @@ const Tab = (_c) => {
|
|
|
22
22
|
const Tabs = ({ initial = 0, children }) => {
|
|
23
23
|
const [current, setCurrent] = React.useState(initial);
|
|
24
24
|
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
25
|
-
/* @__PURE__ */ jsx(TabsWrapper, { children: children.map((child, idx) =>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
/* @__PURE__ */ jsx(TabsWrapper, { children: children.map((child, idx) => {
|
|
26
|
+
var _a;
|
|
27
|
+
return /* @__PURE__ */ jsx(
|
|
28
|
+
Tab,
|
|
29
|
+
{
|
|
30
|
+
type: "button",
|
|
31
|
+
active: idx === current,
|
|
32
|
+
onClick: () => setCurrent(idx),
|
|
33
|
+
children: child.props.title
|
|
34
|
+
},
|
|
35
|
+
`${idx}-${((_a = child.props) == null ? void 0 : _a.title) || ""}`
|
|
36
|
+
);
|
|
37
|
+
}) }),
|
|
35
38
|
children[current]
|
|
36
39
|
] });
|
|
37
40
|
};
|
package/dist/Textarea.js
CHANGED
package/dist/Toolbar.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raketa-builder/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "./dist/index.js",
|
|
5
6
|
"module": "./dist/index.mjs",
|
|
6
7
|
"types": "./dist/index.d.ts",
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"import": {
|
|
11
|
-
"types": "./dist/index.d.
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
12
13
|
"default": "./dist/index.js"
|
|
13
14
|
}
|
|
14
15
|
},
|
|
@@ -26,8 +27,10 @@
|
|
|
26
27
|
"scripts": {
|
|
27
28
|
"build": "tsup",
|
|
28
29
|
"dev": "tsup --watch",
|
|
29
|
-
"format": "prettier --write .",
|
|
30
|
-
"
|
|
30
|
+
"format": "prettier --ignore-path ../../.prettierignore --write .",
|
|
31
|
+
"format:check": "prettier --ignore-path ../../.prettierignore --check .",
|
|
32
|
+
"lint": "biome lint --write --max-diagnostics=5000 .",
|
|
33
|
+
"lint:check": "biome lint --max-diagnostics=5000 ."
|
|
31
34
|
},
|
|
32
35
|
"peerDependencies": {
|
|
33
36
|
"react": ">=19.1.0 && <=19.3.0",
|