@bitrise/bitkit-v2 0.3.167 → 0.3.168

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.
@@ -1,4 +1,5 @@
1
- export interface BitkitInlineLoadingProps {
1
+ import { BoxProps } from '@chakra-ui/react/box';
2
+ export interface BitkitInlineLoadingProps extends Omit<BoxProps, 'size'> {
2
3
  label?: string;
3
4
  size?: 'lg' | 'md' | 'sm';
4
5
  status?: 'error' | 'loading' | 'success';
@@ -1,39 +1,41 @@
1
1
  import p from "../../icons/IconCheckCircleFilled.js";
2
2
  import d from "../../icons/IconCrossCircleFilled.js";
3
- import { chakra as t, useSlotRecipe as g } from "@chakra-ui/react/styled-system";
4
- import { forwardRef as f } from "react";
5
- import { jsx as r, jsxs as z } from "react/jsx-runtime";
6
- import { Spinner as I } from "@chakra-ui/react/spinner";
7
- var h = {
3
+ import { Box as g } from "@chakra-ui/react/box";
4
+ import { chakra as f, useSlotRecipe as z } from "@chakra-ui/react/styled-system";
5
+ import { forwardRef as I } from "react";
6
+ import { jsx as r, jsxs as h } from "react/jsx-runtime";
7
+ import { Spinner as S } from "@chakra-ui/react/spinner";
8
+ var u = {
8
9
  lg: "24",
9
10
  md: "16",
10
11
  sm: "16"
11
12
  }, v = {
12
13
  lg: {
13
- size: "20",
14
- margin: "2"
14
+ margin: "2",
15
+ size: "20"
15
16
  },
16
17
  md: {
17
- size: "14px",
18
- margin: "1"
18
+ margin: "1",
19
+ size: "14px"
19
20
  },
20
21
  sm: {
21
- size: "14px",
22
- margin: "1"
22
+ margin: "1",
23
+ size: "14px"
23
24
  }
24
- }, S = f((l, m) => {
25
- const { label: n, size: e = "md", status: i = "loading" } = l, o = g({ key: "inlineLoading" })({
25
+ }, x = I((a, l) => {
26
+ const { label: o, size: e = "md", status: i = "loading", ...m } = a, n = z({ key: "inlineLoading" })({
26
27
  size: e,
27
28
  status: i
28
- }), s = h[e], { margin: c, size: a } = v[e];
29
- return /* @__PURE__ */ z(t.div, {
30
- css: o.root,
31
- ref: m,
29
+ }), s = u[e], { margin: c, size: t } = v[e];
30
+ return /* @__PURE__ */ h(g, {
31
+ css: n.root,
32
+ ref: l,
33
+ ...m,
32
34
  children: [
33
- i === "loading" && /* @__PURE__ */ r(I, {
35
+ i === "loading" && /* @__PURE__ */ r(S, {
34
36
  variant: "purple",
35
- width: a,
36
- height: a,
37
+ width: t,
38
+ height: t,
37
39
  margin: c
38
40
  }),
39
41
  i === "success" && /* @__PURE__ */ r(p, {
@@ -44,14 +46,14 @@ var h = {
44
46
  color: "icon/negative",
45
47
  size: s
46
48
  }),
47
- n && /* @__PURE__ */ r(t.span, {
48
- css: o.label,
49
- children: n
49
+ o && /* @__PURE__ */ r(f.span, {
50
+ css: n.label,
51
+ children: o
50
52
  })
51
53
  ]
52
54
  });
53
55
  });
54
- S.displayName = "BitkitInlineLoading";
56
+ x.displayName = "BitkitInlineLoading";
55
57
  export {
56
- S as default
58
+ x as default
57
59
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.167",
4
+ "version": "0.3.168",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",