@bitrise/bitkit-v2 0.3.164 → 0.3.166
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/components/BitkitIconButton/BitkitIconButton.js +5 -5
- package/dist/components/BitkitSearchInput/BitkitSearchInput.d.ts +15 -0
- package/dist/components/BitkitSearchInput/BitkitSearchInput.js +45 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/main.js +22 -20
- package/dist/theme/tokens/index.d.ts +6 -0
- package/dist/theme/tokens/sizes.d.ts +3 -0
- package/dist/theme/tokens/sizesAndSpacing.js +4 -3
- package/dist/theme/tokens/sizesAndSpacing.json.d.ts +4 -1
- package/dist/theme/tokens/spacing.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import s from "../BitkitTooltip/BitkitTooltip.js";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
3
|
import { jsx as o } from "react/jsx-runtime";
|
|
4
4
|
import { IconButton as m } from "@chakra-ui/react/button";
|
|
5
5
|
import { Skeleton as p } from "@chakra-ui/react/skeleton";
|
|
6
6
|
var f = c((r, n) => {
|
|
7
|
-
const { icon: l, label: i, size: e, state: t, tooltipProps: a, ...
|
|
8
|
-
return /* @__PURE__ */ o(
|
|
7
|
+
const { icon: l, label: i, size: e, state: t, tooltipProps: a, ...d } = r;
|
|
8
|
+
return /* @__PURE__ */ o(s, {
|
|
9
9
|
text: i,
|
|
10
10
|
...a,
|
|
11
11
|
children: /* @__PURE__ */ o(p, {
|
|
@@ -17,8 +17,8 @@ var f = c((r, n) => {
|
|
|
17
17
|
loading: t === "loading",
|
|
18
18
|
ref: n,
|
|
19
19
|
size: e,
|
|
20
|
-
...
|
|
21
|
-
children: /* @__PURE__ */ o(l, { size: e === "
|
|
20
|
+
...d,
|
|
21
|
+
children: /* @__PURE__ */ o(l, { size: e === "lg" ? "24" : "16" })
|
|
22
22
|
})
|
|
23
23
|
})
|
|
24
24
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InputProps } from '@chakra-ui/react/input';
|
|
2
|
+
import { InputGroupProps } from '@chakra-ui/react/input-group';
|
|
3
|
+
export type BitkitSearchInputProps = Pick<InputProps, 'value' | 'placeholder'> & Omit<InputGroupProps, 'size' | 'variant' | 'children' | 'onChange'> & {
|
|
4
|
+
size?: 'md' | 'lg';
|
|
5
|
+
variant?: 'button';
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
onButtonClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const BitkitSearchInput: import('react').ForwardRefExoticComponent<Pick<InputProps, "value" | "placeholder"> & Omit<InputGroupProps, "size" | "children" | "onChange" | "variant"> & {
|
|
10
|
+
size?: "md" | "lg";
|
|
11
|
+
variant?: "button";
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
onButtonClick?: () => void;
|
|
14
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export default BitkitSearchInput;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import r from "../../icons/IconMagnifier.js";
|
|
2
|
+
import p from "../BitkitCloseButton/BitkitCloseButton.js";
|
|
3
|
+
import u from "../BitkitIconButton/BitkitIconButton.js";
|
|
4
|
+
import { forwardRef as I } from "react";
|
|
5
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
6
|
+
import { Input as f } from "@chakra-ui/react/input";
|
|
7
|
+
import { InputGroup as g } from "@chakra-ui/react/input-group";
|
|
8
|
+
var h = I((l, c) => {
|
|
9
|
+
const { size: o = "lg", variant: n, onChange: e, onButtonClick: a, value: i, placeholder: s, ...d } = l;
|
|
10
|
+
return /* @__PURE__ */ t(g, {
|
|
11
|
+
...d,
|
|
12
|
+
endElement: /* @__PURE__ */ t(p, {
|
|
13
|
+
size: o === "lg" ? "md" : "sm",
|
|
14
|
+
colorPalette: "neutral",
|
|
15
|
+
marginInlineEnd: n === "button" ? o === "lg" ? "52px" : "44px" : "4",
|
|
16
|
+
visibility: !!i ? "visible" : "hidden",
|
|
17
|
+
onClick: () => e?.("")
|
|
18
|
+
}),
|
|
19
|
+
startElement: /* @__PURE__ */ t(r, {
|
|
20
|
+
marginInline: "12",
|
|
21
|
+
color: "icon/tertiary",
|
|
22
|
+
size: o === "lg" ? "24" : "16"
|
|
23
|
+
}),
|
|
24
|
+
endAddon: n === "button" ? /* @__PURE__ */ t(u, {
|
|
25
|
+
zIndex: 2,
|
|
26
|
+
size: o,
|
|
27
|
+
label: "Search",
|
|
28
|
+
icon: r,
|
|
29
|
+
borderLeftRadius: 0,
|
|
30
|
+
tooltipProps: { disabled: !0 },
|
|
31
|
+
onClick: a
|
|
32
|
+
}) : void 0,
|
|
33
|
+
children: /* @__PURE__ */ t(f, {
|
|
34
|
+
ref: c,
|
|
35
|
+
size: o,
|
|
36
|
+
value: i,
|
|
37
|
+
placeholder: s,
|
|
38
|
+
onChange: (m) => e?.(m.target.value)
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
h.displayName = "BitkitSearchInput";
|
|
43
|
+
export {
|
|
44
|
+
h as default
|
|
45
|
+
};
|
|
@@ -29,6 +29,7 @@ export { default as BitkitNativeSelect, type BitkitNativeSelectProps } from './B
|
|
|
29
29
|
export { default as BitkitNumberInput, type BitkitNumberInputProps } from './BitkitNumberInput/BitkitNumberInput';
|
|
30
30
|
export { default as BitkitRadio, type BitkitRadioProps } from './BitkitRadio/BitkitRadio';
|
|
31
31
|
export { default as BitkitRadioGroup, type BitkitRadioGroupProps } from './BitkitRadioGroup/BitkitRadioGroup';
|
|
32
|
+
export { default as BitkitSearchInput, type BitkitSearchInputProps } from './BitkitSearchInput/BitkitSearchInput';
|
|
32
33
|
export { default as BitkitSegmentedControl, type BitkitSegmentedControlItemProps, type BitkitSegmentedControlProps, } from './BitkitSegmentedControl/BitkitSegmentedControl';
|
|
33
34
|
export { default as BitkitSelect, type BitkitSelectProps } from './BitkitSelect/BitkitSelect';
|
|
34
35
|
export { default as BitkitSelectMenu, type BitkitSelectMenuProps } from './BitkitSelectMenu/BitkitSelectMenu';
|
package/dist/main.js
CHANGED
|
@@ -310,16 +310,17 @@ import FI from "./components/BitkitNativeSelect/BitkitNativeSelect.js";
|
|
|
310
310
|
import vI from "./components/BitkitNumberInput/BitkitNumberInput.js";
|
|
311
311
|
import yI from "./components/BitkitRadio/BitkitRadio.js";
|
|
312
312
|
import RI from "./components/BitkitRadioGroup/BitkitRadioGroup.js";
|
|
313
|
-
import LI from "./components/
|
|
314
|
-
import EI from "./components/
|
|
315
|
-
import UI from "./components/
|
|
316
|
-
import NI from "./components/
|
|
317
|
-
import jI from "./components/
|
|
318
|
-
import JI from "./components/
|
|
319
|
-
import KI from "./components/
|
|
320
|
-
import XI from "./components/
|
|
321
|
-
import YI from "./
|
|
322
|
-
import qI from "./
|
|
313
|
+
import LI from "./components/BitkitSearchInput/BitkitSearchInput.js";
|
|
314
|
+
import EI from "./components/BitkitSegmentedControl/BitkitSegmentedControl.js";
|
|
315
|
+
import UI from "./components/BitkitSelect/BitkitSelect.js";
|
|
316
|
+
import NI from "./components/BitkitSplitButton/BitkitSplitButton.js";
|
|
317
|
+
import jI from "./components/BitkitTabs/BitkitTabs.js";
|
|
318
|
+
import JI from "./components/BitkitTag/BitkitTag.js";
|
|
319
|
+
import KI from "./components/BitkitTextInput/BitkitTextInput.js";
|
|
320
|
+
import XI from "./components/BitkitToggle/BitkitToggle.js";
|
|
321
|
+
import YI from "./components/BitkitToggleButton/BitkitToggleButton.js";
|
|
322
|
+
import qI from "./theme/index.js";
|
|
323
|
+
import ol from "./providers/BitkitProvider.js";
|
|
323
324
|
export {
|
|
324
325
|
r as BitkitAccordion,
|
|
325
326
|
ve as BitkitActionBar,
|
|
@@ -350,18 +351,19 @@ export {
|
|
|
350
351
|
SI as BitkitLinkButton,
|
|
351
352
|
FI as BitkitNativeSelect,
|
|
352
353
|
vI as BitkitNumberInput,
|
|
353
|
-
|
|
354
|
+
ol as BitkitProvider,
|
|
354
355
|
yI as BitkitRadio,
|
|
355
356
|
RI as BitkitRadioGroup,
|
|
356
|
-
LI as
|
|
357
|
-
EI as
|
|
357
|
+
LI as BitkitSearchInput,
|
|
358
|
+
EI as BitkitSegmentedControl,
|
|
359
|
+
UI as BitkitSelect,
|
|
358
360
|
Ne as BitkitSelectMenu,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
361
|
+
NI as BitkitSplitButton,
|
|
362
|
+
jI as BitkitTabs,
|
|
363
|
+
JI as BitkitTag,
|
|
364
|
+
KI as BitkitTextInput,
|
|
365
|
+
XI as BitkitToggle,
|
|
366
|
+
YI as BitkitToggleButton,
|
|
365
367
|
Se as BitkitTooltip,
|
|
366
368
|
n as IconAbortCircle,
|
|
367
369
|
c as IconAbortCircleFilled,
|
|
@@ -642,5 +644,5 @@ export {
|
|
|
642
644
|
ue as IconXamarin,
|
|
643
645
|
he as IconXcode,
|
|
644
646
|
t as bitkitIcon,
|
|
645
|
-
|
|
647
|
+
qI as bitriseTheme
|
|
646
648
|
};
|
|
@@ -825,6 +825,9 @@ declare const tokens: {
|
|
|
825
825
|
"128": {
|
|
826
826
|
value: string;
|
|
827
827
|
};
|
|
828
|
+
full: {
|
|
829
|
+
value: string;
|
|
830
|
+
};
|
|
828
831
|
};
|
|
829
832
|
spacing: {
|
|
830
833
|
"1": {
|
|
@@ -872,6 +875,9 @@ declare const tokens: {
|
|
|
872
875
|
"128": {
|
|
873
876
|
value: string;
|
|
874
877
|
};
|
|
878
|
+
full: {
|
|
879
|
+
value: string;
|
|
880
|
+
};
|
|
875
881
|
};
|
|
876
882
|
zIndex: {
|
|
877
883
|
base: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e = {
|
|
1
|
+
var e = { value: "100%" }, a = {
|
|
2
2
|
1: { value: "0.0625rem" },
|
|
3
3
|
2: { value: "0.125rem" },
|
|
4
4
|
4: { value: "0.25rem" },
|
|
@@ -13,8 +13,9 @@ var e = {
|
|
|
13
13
|
48: { value: "3rem" },
|
|
14
14
|
64: { value: "4rem" },
|
|
15
15
|
96: { value: "6rem" },
|
|
16
|
-
128: { value: "8rem" }
|
|
16
|
+
128: { value: "8rem" },
|
|
17
|
+
full: e
|
|
17
18
|
};
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
a as default
|
|
20
21
|
};
|