@raketa-builder/ui 1.8.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 CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Button = (_a) => {
@@ -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
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Container = (_a) => {
package/dist/DataGrid.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __spreadValues } from './chunk-ORMEWXMH.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
- import 'react';
4
3
  import cn from './cn';
5
4
 
6
5
  const Wrapper = (_a) => {
@@ -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
- let colorIndex = asciiVal % colors.length;
23
+ const colorIndex = asciiVal % colors.length;
25
24
  return colors[colorIndex];
26
25
  };
27
26
  const DefaultAvatarStyles = (_a) => {
package/dist/Field.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __spreadProps, __spreadValues } from './chunk-ORMEWXMH.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
- import 'react';
4
3
  import FormGroup from './FormGroup';
5
4
  import Label from './Label';
6
5
  import Input from './Input';
package/dist/FieldSet.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __spreadProps, __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 FieldSet = (_a) => {
package/dist/FormGroup.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 FormGroup = (_a) => {
package/dist/Grid.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 getShift = (s) => {
package/dist/H.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 H = (_a) => {
package/dist/Handle.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Handle = (_a) => {
package/dist/Hint.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Hint = (_a) => {
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 ImageAvatar = (_a) => {
package/dist/Input.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Input = (_a) => {
package/dist/Label.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Label = (_a) => {
@@ -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
  ] });
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Navigation = (_a) => {
package/dist/P.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 P = (_a) => {
package/dist/PageTitle.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __spreadValues } from './chunk-ORMEWXMH.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import 'react';
4
3
  import H from './H';
5
4
  import cn from './cn';
6
5
 
@@ -1,6 +1,5 @@
1
1
  import { __spreadValues, __objRest } 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 Wrapper = (_a) => {
package/dist/Panel.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Panel = (_a) => {
package/dist/Select.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Select = (_a) => {
package/dist/Stack.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Stack = (_a) => {
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) => /* @__PURE__ */ jsx(
26
- Tab,
27
- {
28
- type: "button",
29
- active: idx === current,
30
- onClick: () => setCurrent(idx),
31
- children: child.props.title
32
- },
33
- idx
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
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Textarea = (_a) => {
package/dist/Toolbar.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { __objRest, __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 Toolbar = (_a) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-builder/ui",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -27,8 +27,10 @@
27
27
  "scripts": {
28
28
  "build": "tsup",
29
29
  "dev": "tsup --watch",
30
- "format": "prettier --write .",
31
- "lint": "biome lint --max-diagnostics=5000 ."
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 ."
32
34
  },
33
35
  "peerDependencies": {
34
36
  "react": ">=19.1.0 && <=19.3.0",