@bitrise/bitkit 8.5.1 → 8.6.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [8.6.0](https://github.com/bitrise-io/bitkit/compare/v8.5.1...v8.6.0) (2022-02-03)
2
+
3
+
4
+ ### Features
5
+
6
+ * **Dropdown:** add type attribute on dropdown button ([95f564f](https://github.com/bitrise-io/bitkit/commit/95f564f))
7
+
1
8
  ## [8.5.1](https://github.com/bitrise-io/bitkit/compare/v8.5.0...v8.5.1) (2022-02-02)
2
9
 
3
10
 
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownButton.d.ts","sourceRoot":"","sources":["../../../src/Dropdown/DropdownButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAe,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIhE,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;CAAG;AAE5D;;;GAGG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAuBlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"DropdownButton.d.ts","sourceRoot":"","sources":["../../../src/Dropdown/DropdownButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAe,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIhE,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;CAAG;AAE5D;;;GAGG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAyBlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -31,7 +31,7 @@ var Icon_1 = __importDefault(require("../Icon/Icon"));
31
31
  */
32
32
  var DropdownButton = function (props) {
33
33
  var children = props.children;
34
- return (React.createElement(Button_1.default, __assign({}, props, { alignChildrenHorizontal: "start", fullWidth: true, gap: "x4", level: "secondary" }),
34
+ return (React.createElement(Button_1.default, __assign({ type: "button" }, props, { alignChildrenHorizontal: "start", fullWidth: true, gap: "x4", level: "secondary" }),
35
35
  React.createElement(Flex_1.default, { alignChildrenVertical: "middle", direction: "horizontal", gap: "x2", grow: true, shrink: true }, children),
36
36
  React.createElement(Flex_1.default, null,
37
37
  React.createElement(Icon_1.default, { name: "ChevronDown" }))));
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownButton.js","sourceRoot":"","sources":["../../../src/Dropdown/DropdownButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,4DAAgE;AAChE,sDAAgC;AAChC,sDAAgC;AAIhC;;;GAGG;AACH,IAAM,cAAc,GAAmC,UAAC,KAAY;IAC1D,IAAA,yBAAQ,CAAW;IAE3B,OAAO,CACL,oBAAC,gBAAM,eAAM,KAAK,IACd,uBAAuB,EAAC,OAAO,EAC/B,SAAS,QACT,GAAG,EAAC,IAAI,EACR,KAAK,EAAC,WAAW;QACnB,oBAAC,cAAI,IACD,qBAAqB,EAAC,QAAQ,EAC9B,SAAS,EAAC,YAAY,EACtB,GAAG,EAAC,IAAI,EACR,IAAI,QACJ,MAAM,UACN,QAAQ,CACL;QAEP,oBAAC,cAAI;YACH,oBAAC,cAAI,IAAC,IAAI,EAAC,aAAa,GAAG,CACtB,CACA,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"DropdownButton.js","sourceRoot":"","sources":["../../../src/Dropdown/DropdownButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,4DAAgE;AAChE,sDAAgC;AAChC,sDAAgC;AAIhC;;;GAGG;AACH,IAAM,cAAc,GAAmC,UAAC,KAAY;IAC1D,IAAA,yBAAQ,CAAW;IAE3B,OAAO,CACL,oBAAC,gBAAM,aACH,IAAI,EAAC,QAAQ,IACR,KAAK,IACV,uBAAuB,EAAC,OAAO,EAC/B,SAAS,QACT,GAAG,EAAC,IAAI,EACR,KAAK,EAAC,WAAW;QACnB,oBAAC,cAAI,IACD,qBAAqB,EAAC,QAAQ,EAC9B,SAAS,EAAC,YAAY,EACtB,GAAG,EAAC,IAAI,EACR,IAAI,QACJ,MAAM,UACN,QAAQ,CACL;QAEP,oBAAC,cAAI;YACH,oBAAC,cAAI,IAAC,IAAI,EAAC,aAAa,GAAG,CACtB,CACA,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC"}
@@ -1077,8 +1077,8 @@
1077
1077
  "signature": "a8a9df9359e0b2e7f99cdaccec90bc4c54193d3f068026410554c60659c83331"
1078
1078
  },
1079
1079
  "/bitrise/src/src/Dropdown/DropdownButton.tsx": {
1080
- "version": "e512b596847ec378037409bbd40b4cc3ff5761fb179ab989bd6a78328b86e141",
1081
- "signature": "d2243280894ea448edfa5dbd28faed2c88206f38e27cd807d690ff0168782684"
1080
+ "version": "84d54b0a362a900b1d02bbfc3975c18f076fc4d05f14c324841a857115e49fa8",
1081
+ "signature": "6210a9c09e6f5423acede504ba66d843a87db112ec7ef4c68de25535dc74bece"
1082
1082
  },
1083
1083
  "/bitrise/src/src/Dropdown/DropdownMenu.tsx": {
1084
1084
  "version": "d2308758d08dc08b369f41707ea1f217440df36f5bb7a425de7dee784fffc3da",
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownButton.d.ts","sourceRoot":"","sources":["../../../src/Dropdown/DropdownButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAe,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIhE,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;CAAG;AAE5D;;;GAGG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAuBlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"DropdownButton.d.ts","sourceRoot":"","sources":["../../../src/Dropdown/DropdownButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAe,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIhE,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;CAAG;AAE5D;;;GAGG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAyBlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -8,7 +8,7 @@ import Icon from '../Icon/Icon';
8
8
  */
9
9
  const DropdownButton = (props) => {
10
10
  const { children } = props;
11
- return (React.createElement(Button, Object.assign({}, props, { alignChildrenHorizontal: "start", fullWidth: true, gap: "x4", level: "secondary" }),
11
+ return (React.createElement(Button, Object.assign({ type: "button" }, props, { alignChildrenHorizontal: "start", fullWidth: true, gap: "x4", level: "secondary" }),
12
12
  React.createElement(Flex, { alignChildrenVertical: "middle", direction: "horizontal", gap: "x2", grow: true, shrink: true }, children),
13
13
  React.createElement(Flex, null,
14
14
  React.createElement(Icon, { name: "ChevronDown" }))));
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownButton.js","sourceRoot":"","sources":["../../../src/Dropdown/DropdownButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAgC,MAAM,kBAAkB,CAAC;AAChE,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,IAAI,MAAM,cAAc,CAAC;AAIhC;;;GAGG;AACH,MAAM,cAAc,GAAmC,CAAC,KAAY,EAAE,EAAE;IACtE,MA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1105
1105
  "signature": "a8a9df9359e0b2e7f99cdaccec90bc4c54193d3f068026410554c60659c83331"
1106
1106
  },
1107
1107
  "/bitrise/src/src/Dropdown/DropdownButton.tsx": {
1108
- "version": "e512b596847ec378037409bbd40b4cc3ff5761fb179ab989bd6a78328b86e141",
1109
- "signature": "d2243280894ea448edfa5dbd28faed2c88206f38e27cd807d690ff0168782684"
1108
+ "version": "84d54b0a362a900b1d02bbfc3975c18f076fc4d05f14c324841a857115e49fa8",
1109
+ "signature": "6210a9c09e6f5423acede504ba66d843a87db112ec7ef4c68de25535dc74bece"
1110
1110
  },
1111
1111
  "/bitrise/src/src/Dropdown/DropdownMenu.tsx": {
1112
1112
  "version": "d2308758d08dc08b369f41707ea1f217440df36f5bb7a425de7dee784fffc3da",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "8.5.1",
4
+ "version": "8.6.0",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "lib/cjs/index.js",
7
7
  "esnext": "lib/esn/index.js",
@@ -13,7 +13,9 @@ const DropdownButton: React.FunctionComponent<Props> = (props: Props) => {
13
13
  const { children } = props;
14
14
 
15
15
  return (
16
- <Button { ...props }
16
+ <Button
17
+ type="button"
18
+ { ...props }
17
19
  alignChildrenHorizontal="start"
18
20
  fullWidth
19
21
  gap="x4"