@audira/carbon-react-native 0.0.1-alpha.22 → 0.0.1-alpha.24
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/lib/commonjs/_internal/components/button-group/ButtonGroupContext.js +12 -0
- package/lib/commonjs/_internal/components/button-group/ButtonGroupContext.js.map +1 -0
- package/lib/commonjs/_internal/components/button-group/index.js +17 -0
- package/lib/commonjs/_internal/components/button-group/index.js.map +1 -0
- package/lib/commonjs/_internal/components/index.js +17 -0
- package/lib/commonjs/_internal/components/index.js.map +1 -0
- package/lib/commonjs/_internal/style-sheets/flex-style-sheet.js +6 -0
- package/lib/commonjs/_internal/style-sheets/flex-style-sheet.js.map +1 -1
- package/lib/commonjs/components/button/Size.js +2 -0
- package/lib/commonjs/components/button/Size.js.map +1 -0
- package/lib/commonjs/components/button/base/Base.js +30 -26
- package/lib/commonjs/components/button/base/Base.js.map +1 -1
- package/lib/commonjs/components/button/index.js +11 -11
- package/lib/commonjs/components/button/index.js.map +1 -1
- package/lib/commonjs/components/button-group/ButtonGroup.js +233 -0
- package/lib/commonjs/components/button-group/ButtonGroup.js.map +1 -0
- package/lib/commonjs/components/button-group/ButtonGroupProps.js +6 -0
- package/lib/commonjs/components/button-group/ButtonGroupProps.js.map +1 -0
- package/lib/commonjs/components/button-group/ButtonGroupRef.js +6 -0
- package/lib/commonjs/components/button-group/ButtonGroupRef.js.map +1 -0
- package/lib/commonjs/components/button-group/_context.js +13 -0
- package/lib/commonjs/components/button-group/_context.js.map +1 -0
- package/lib/commonjs/components/button-group/_renderer-2/Renderer2.js +48 -0
- package/lib/commonjs/components/button-group/_renderer-2/Renderer2.js.map +1 -0
- package/lib/commonjs/components/button-group/_renderer-2/Renderer2Props.js +6 -0
- package/lib/commonjs/components/button-group/_renderer-2/Renderer2Props.js.map +1 -0
- package/lib/commonjs/components/button-group/_renderer-2/index.js +17 -0
- package/lib/commonjs/components/button-group/_renderer-2/index.js.map +1 -0
- package/lib/commonjs/components/button-group/_renderer-3/Renderer3.js +90 -0
- package/lib/commonjs/components/button-group/_renderer-3/Renderer3.js.map +1 -0
- package/lib/commonjs/components/button-group/_renderer-3/Renderer3Props.js +6 -0
- package/lib/commonjs/components/button-group/_renderer-3/Renderer3Props.js.map +1 -0
- package/lib/commonjs/components/button-group/_renderer-3/index.js +17 -0
- package/lib/commonjs/components/button-group/_renderer-3/index.js.map +1 -0
- package/lib/commonjs/components/button-group/index.js +17 -0
- package/lib/commonjs/components/button-group/index.js.map +1 -0
- package/lib/commonjs/components/index.js +33 -21
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/providers/toast/_overlay/index.js +19 -3
- package/lib/commonjs/providers/toast/_overlay/index.js.map +1 -1
- package/lib/module/_internal/components/button-group/ButtonGroupContext.js +8 -0
- package/lib/module/_internal/components/button-group/ButtonGroupContext.js.map +1 -0
- package/lib/module/_internal/components/button-group/index.js +4 -0
- package/lib/module/_internal/components/button-group/index.js.map +1 -0
- package/lib/module/_internal/components/index.js +4 -0
- package/lib/module/_internal/components/index.js.map +1 -0
- package/lib/module/_internal/style-sheets/flex-style-sheet.js +6 -0
- package/lib/module/_internal/style-sheets/flex-style-sheet.js.map +1 -1
- package/lib/module/components/button/Size.js +2 -0
- package/lib/module/components/button/Size.js.map +1 -0
- package/lib/module/components/button/base/Base.js +25 -21
- package/lib/module/components/button/base/Base.js.map +1 -1
- package/lib/module/components/button/index.js +1 -1
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/button-group/ButtonGroup.js +229 -0
- package/lib/module/components/button-group/ButtonGroup.js.map +1 -0
- package/lib/module/components/button-group/ButtonGroupProps.js +4 -0
- package/lib/module/components/button-group/ButtonGroupProps.js.map +1 -0
- package/lib/module/components/button-group/ButtonGroupRef.js +4 -0
- package/lib/module/components/button-group/ButtonGroupRef.js.map +1 -0
- package/lib/module/components/button-group/_context.js +9 -0
- package/lib/module/components/button-group/_context.js.map +1 -0
- package/lib/module/components/button-group/_renderer-2/Renderer2.js +44 -0
- package/lib/module/components/button-group/_renderer-2/Renderer2.js.map +1 -0
- package/lib/module/components/button-group/_renderer-2/Renderer2Props.js +4 -0
- package/lib/module/components/button-group/_renderer-2/Renderer2Props.js.map +1 -0
- package/lib/module/components/button-group/_renderer-2/index.js +4 -0
- package/lib/module/components/button-group/_renderer-2/index.js.map +1 -0
- package/lib/module/components/button-group/_renderer-3/Renderer3.js +86 -0
- package/lib/module/components/button-group/_renderer-3/Renderer3.js.map +1 -0
- package/lib/module/components/button-group/_renderer-3/Renderer3Props.js +4 -0
- package/lib/module/components/button-group/_renderer-3/Renderer3Props.js.map +1 -0
- package/lib/module/components/button-group/_renderer-3/index.js +4 -0
- package/lib/module/components/button-group/_renderer-3/index.js.map +1 -0
- package/lib/module/components/button-group/index.js +4 -0
- package/lib/module/components/button-group/index.js.map +1 -0
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/providers/toast/_overlay/index.js +20 -4
- package/lib/module/providers/toast/_overlay/index.js.map +1 -1
- package/lib/typescript/commonjs/_internal/components/button-group/ButtonGroupContext.d.ts +6 -0
- package/lib/typescript/commonjs/_internal/components/button-group/ButtonGroupContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/_internal/components/button-group/index.d.ts +2 -0
- package/lib/typescript/commonjs/_internal/components/button-group/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/_internal/components/index.d.ts +2 -0
- package/lib/typescript/commonjs/_internal/components/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/_internal/style-sheets/flex-style-sheet.d.ts +6 -0
- package/lib/typescript/commonjs/_internal/style-sheets/flex-style-sheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/button/Size.d.ts +2 -0
- package/lib/typescript/commonjs/components/button/Size.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button/base/Base.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/button/base/BaseProps.d.ts +2 -2
- package/lib/typescript/commonjs/components/button/base/BaseProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/button/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/button/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/button-group/ButtonGroup.d.ts +82 -0
- package/lib/typescript/commonjs/components/button-group/ButtonGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button-group/ButtonGroupProps.d.ts +41 -0
- package/lib/typescript/commonjs/components/button-group/ButtonGroupProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button-group/ButtonGroupRef.d.ts +4 -0
- package/lib/typescript/commonjs/components/button-group/ButtonGroupRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button-group/_context.d.ts +6 -0
- package/lib/typescript/commonjs/components/button-group/_context.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-2/Renderer2.d.ts +5 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-2/Renderer2.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-2/Renderer2Props.d.ts +11 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-2/Renderer2Props.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-2/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-2/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-3/Renderer3.d.ts +5 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-3/Renderer3.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-3/Renderer3Props.d.ts +14 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-3/Renderer3Props.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-3/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/button-group/_renderer-3/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/button-group/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/button-group/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/index.d.ts +1 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/providers/toast/_overlay/index.d.ts.map +1 -1
- package/lib/typescript/module/_internal/components/button-group/ButtonGroupContext.d.ts +6 -0
- package/lib/typescript/module/_internal/components/button-group/ButtonGroupContext.d.ts.map +1 -0
- package/lib/typescript/module/_internal/components/button-group/index.d.ts +2 -0
- package/lib/typescript/module/_internal/components/button-group/index.d.ts.map +1 -0
- package/lib/typescript/module/_internal/components/index.d.ts +2 -0
- package/lib/typescript/module/_internal/components/index.d.ts.map +1 -0
- package/lib/typescript/module/_internal/style-sheets/flex-style-sheet.d.ts +6 -0
- package/lib/typescript/module/_internal/style-sheets/flex-style-sheet.d.ts.map +1 -1
- package/lib/typescript/module/components/button/Size.d.ts +2 -0
- package/lib/typescript/module/components/button/Size.d.ts.map +1 -0
- package/lib/typescript/module/components/button/base/Base.d.ts.map +1 -1
- package/lib/typescript/module/components/button/base/BaseProps.d.ts +2 -2
- package/lib/typescript/module/components/button/base/BaseProps.d.ts.map +1 -1
- package/lib/typescript/module/components/button/index.d.ts +1 -1
- package/lib/typescript/module/components/button/index.d.ts.map +1 -1
- package/lib/typescript/module/components/button-group/ButtonGroup.d.ts +82 -0
- package/lib/typescript/module/components/button-group/ButtonGroup.d.ts.map +1 -0
- package/lib/typescript/module/components/button-group/ButtonGroupProps.d.ts +41 -0
- package/lib/typescript/module/components/button-group/ButtonGroupProps.d.ts.map +1 -0
- package/lib/typescript/module/components/button-group/ButtonGroupRef.d.ts +4 -0
- package/lib/typescript/module/components/button-group/ButtonGroupRef.d.ts.map +1 -0
- package/lib/typescript/module/components/button-group/_context.d.ts +6 -0
- package/lib/typescript/module/components/button-group/_context.d.ts.map +1 -0
- package/lib/typescript/module/components/button-group/_renderer-2/Renderer2.d.ts +5 -0
- package/lib/typescript/module/components/button-group/_renderer-2/Renderer2.d.ts.map +1 -0
- package/lib/typescript/module/components/button-group/_renderer-2/Renderer2Props.d.ts +11 -0
- package/lib/typescript/module/components/button-group/_renderer-2/Renderer2Props.d.ts.map +1 -0
- package/lib/typescript/module/components/button-group/_renderer-2/index.d.ts +3 -0
- package/lib/typescript/module/components/button-group/_renderer-2/index.d.ts.map +1 -0
- package/lib/typescript/module/components/button-group/_renderer-3/Renderer3.d.ts +5 -0
- package/lib/typescript/module/components/button-group/_renderer-3/Renderer3.d.ts.map +1 -0
- package/lib/typescript/module/components/button-group/_renderer-3/Renderer3Props.d.ts +14 -0
- package/lib/typescript/module/components/button-group/_renderer-3/Renderer3Props.d.ts.map +1 -0
- package/lib/typescript/module/components/button-group/_renderer-3/index.d.ts +3 -0
- package/lib/typescript/module/components/button-group/_renderer-3/index.d.ts.map +1 -0
- package/lib/typescript/module/components/button-group/index.d.ts +4 -0
- package/lib/typescript/module/components/button-group/index.d.ts.map +1 -0
- package/lib/typescript/module/components/index.d.ts +1 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/lib/typescript/module/providers/toast/_overlay/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/lib/commonjs/_internal/index.js +0 -50
- package/lib/commonjs/_internal/index.js.map +0 -1
- package/lib/commonjs/components/button/ButtonSize.js +0 -2
- package/lib/commonjs/components/button/ButtonSize.js.map +0 -1
- package/lib/module/_internal/index.js +0 -7
- package/lib/module/_internal/index.js.map +0 -1
- package/lib/module/components/button/ButtonSize.js +0 -2
- package/lib/module/components/button/ButtonSize.js.map +0 -1
- package/lib/typescript/commonjs/_internal/index.d.ts +0 -5
- package/lib/typescript/commonjs/_internal/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/components/button/ButtonSize.d.ts +0 -2
- package/lib/typescript/commonjs/components/button/ButtonSize.d.ts.map +0 -1
- package/lib/typescript/module/_internal/index.d.ts +0 -5
- package/lib/typescript/module/_internal/index.d.ts.map +0 -1
- package/lib/typescript/module/components/button/ButtonSize.d.ts +0 -2
- package/lib/typescript/module/components/button/ButtonSize.d.ts.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ButtonGroupContext = void 0;
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
const ButtonGroupContext = exports.ButtonGroupContext = /*#__PURE__*/(0, _react.createContext)({
|
|
10
|
+
size: undefined
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=ButtonGroupContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","ButtonGroupContext","_react","require","createContext","size","undefined"],"sourceRoot":"../../../../../src","sources":["_internal/components/button-group/ButtonGroupContext.ts"],"mappings":";AAAA,YAAY;;AAAAA,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,KAAA;AAAA;AAAAD,OAAA,CAAAE,kBAAA;AAEZ,IAAAC,MAAA,GAAAC,OAAA;AAYO,MAAMF,kBAAkB,GAAAF,OAAA,CAAAE,kBAAA,gBAAG,IAAAG,oBAAa,EAAqB;EACnEC,IAAI,EAAEC;AACP,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _ButtonGroupContext = require("./ButtonGroupContext.js");
|
|
7
|
+
Object.keys(_ButtonGroupContext).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _ButtonGroupContext[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _ButtonGroupContext[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ButtonGroupContext","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["_internal/components/button-group/index.tsx"],"mappings":";;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,mBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,mBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,mBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("./button-group/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../src","sources":["_internal/components/index.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -24,9 +24,15 @@ const FlexStyleSheet = exports.FlexStyleSheet = _reactNative.StyleSheet.create({
|
|
|
24
24
|
flex_col: {
|
|
25
25
|
flexDirection: 'column'
|
|
26
26
|
},
|
|
27
|
+
flex_col_reverse: {
|
|
28
|
+
flexDirection: 'column-reverse'
|
|
29
|
+
},
|
|
27
30
|
flex_row: {
|
|
28
31
|
flexDirection: 'row'
|
|
29
32
|
},
|
|
33
|
+
flex_row_reverse: {
|
|
34
|
+
flexDirection: 'row-reverse'
|
|
35
|
+
},
|
|
30
36
|
flex_wrap: {
|
|
31
37
|
flexWrap: 'wrap'
|
|
32
38
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","FlexStyleSheet","exports","StyleSheet","create","flex_1","flexGrow","flexShrink","flexBasis","flex_auto","flex_initial","flex_col","flexDirection","flex_row","flex_wrap","flexWrap","flex_wrap_reverse","flex_nowrap","items_start","alignItems","items_center","items_end","content_start","alignContent","content_center","content_end","justify_start","justifyContent","justify_center","justify_between","justify_end","self_start","alignSelf","self_center","self_end","self_stretch"],"sourceRoot":"../../../../src","sources":["_internal/style-sheets/flex-style-sheet.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIO,MAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/CC,MAAM,EAAE;IACPC,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,CAAC;IACbC,SAAS,EAAE;EACZ,CAAC;EACDC,SAAS,EAAE;IACVH,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,CAAC;IACbC,SAAS,EAAE;EACZ,CAAC;EACDE,YAAY,EAAE;IACbJ,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,CAAC;IACbC,SAAS,EAAE;EACZ,CAAC;EACDG,QAAQ,EAAE;IACTC,aAAa,EAAE;EAChB,CAAC;EACDC,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","FlexStyleSheet","exports","StyleSheet","create","flex_1","flexGrow","flexShrink","flexBasis","flex_auto","flex_initial","flex_col","flexDirection","flex_col_reverse","flex_row","flex_row_reverse","flex_wrap","flexWrap","flex_wrap_reverse","flex_nowrap","items_start","alignItems","items_center","items_end","content_start","alignContent","content_center","content_end","justify_start","justifyContent","justify_center","justify_between","justify_end","self_start","alignSelf","self_center","self_end","self_stretch"],"sourceRoot":"../../../../src","sources":["_internal/style-sheets/flex-style-sheet.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIO,MAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/CC,MAAM,EAAE;IACPC,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,CAAC;IACbC,SAAS,EAAE;EACZ,CAAC;EACDC,SAAS,EAAE;IACVH,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,CAAC;IACbC,SAAS,EAAE;EACZ,CAAC;EACDE,YAAY,EAAE;IACbJ,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,CAAC;IACbC,SAAS,EAAE;EACZ,CAAC;EACDG,QAAQ,EAAE;IACTC,aAAa,EAAE;EAChB,CAAC;EACDC,gBAAgB,EAAE;IACjBD,aAAa,EAAE;EAChB,CAAC;EACDE,QAAQ,EAAE;IACTF,aAAa,EAAE;EAChB,CAAC;EACDG,gBAAgB,EAAE;IACjBH,aAAa,EAAE;EAChB,CAAC;EACDI,SAAS,EAAE;IACVC,QAAQ,EAAE;EACX,CAAC;EACDC,iBAAiB,EAAE;IAClBD,QAAQ,EAAE;EACX,CAAC;EACDE,WAAW,EAAE;IACZF,QAAQ,EAAE;EACX,CAAC;EACDG,WAAW,EAAE;IACZC,UAAU,EAAE;EACb,CAAC;EACDC,YAAY,EAAE;IACbD,UAAU,EAAE;EACb,CAAC;EACDE,SAAS,EAAE;IACVF,UAAU,EAAE;EACb,CAAC;EACDG,aAAa,EAAE;IACdC,YAAY,EAAE;EACf,CAAC;EACDC,cAAc,EAAE;IACfD,YAAY,EAAE;EACf,CAAC;EACDE,WAAW,EAAE;IACZF,YAAY,EAAE;EACf,CAAC;EACDG,aAAa,EAAE;IACdC,cAAc,EAAE;EACjB,CAAC;EACDC,cAAc,EAAE;IACfD,cAAc,EAAE;EACjB,CAAC;EACDE,eAAe,EAAE;IAChBF,cAAc,EAAE;EACjB,CAAC;EACDG,WAAW,EAAE;IACZH,cAAc,EAAE;EACjB,CAAC;EACDI,UAAU,EAAE;IACXC,SAAS,EAAE;EACZ,CAAC;EACDC,WAAW,EAAE;IACZD,SAAS,EAAE;EACZ,CAAC;EACDE,QAAQ,EAAE;IACTF,SAAS,EAAE;EACZ,CAAC;EACDG,YAAY,EAAE;IACbH,SAAS,EAAE;EACZ;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/button/Size.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -7,12 +7,13 @@ exports.Base = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
10
|
-
var _index = require("../../../_internal/
|
|
11
|
-
var _index2 = require("
|
|
12
|
-
var _index3 = require("../../
|
|
10
|
+
var _index = require("../../../_internal/components/button-group/index.js");
|
|
11
|
+
var _index2 = require("../../../_internal/style-sheets/index.js");
|
|
12
|
+
var _index3 = require("../../icon/index.js");
|
|
13
|
+
var _index4 = require("../../text/index.js");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
const Base = exports.Base = /*#__PURE__*/(0, _react.forwardRef)(function Base({
|
|
15
|
-
size
|
|
16
|
+
size: sizeProp,
|
|
16
17
|
text,
|
|
17
18
|
textProps,
|
|
18
19
|
icon,
|
|
@@ -26,22 +27,24 @@ const Base = exports.Base = /*#__PURE__*/(0, _react.forwardRef)(function Base({
|
|
|
26
27
|
'aria-label': ariaLabel,
|
|
27
28
|
...props
|
|
28
29
|
}, ref) {
|
|
29
|
-
const
|
|
30
|
+
const buttonGroupContext = (0, _react.useContext)(_index.ButtonGroupContext),
|
|
31
|
+
size = sizeProp ?? buttonGroupContext.size ?? 'large_productive',
|
|
32
|
+
iconSize = getIconSize(size);
|
|
30
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
31
34
|
...props,
|
|
32
35
|
role: role,
|
|
33
36
|
"aria-label": ariaLabel ?? text,
|
|
34
|
-
style: [
|
|
37
|
+
style: [_index2.FlexStyleSheet.flex_row, _index2.FlexStyleSheet.justify_between, _index2.FlexStyleSheet.self_start, baseStyle.container, sizeStyle[size], getContainerPaddingRight(!!text, !!icon || !!iconNode), style],
|
|
35
38
|
ref: ref,
|
|
36
39
|
children: [backgroundNode, !InlineLoading || inlineLoadingProps?.state === 'inactive' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
37
40
|
children: [!!text && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
38
41
|
style: baseStyle.textContainer,
|
|
39
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.Text, {
|
|
40
43
|
...textProps,
|
|
41
44
|
type: getTextType(size),
|
|
42
45
|
children: text
|
|
43
46
|
})
|
|
44
|
-
}), !!icon && !iconNode ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
47
|
+
}), !!icon && !iconNode ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Icon, {
|
|
45
48
|
...iconProps,
|
|
46
49
|
src: icon,
|
|
47
50
|
width: iconProps?.width ?? iconSize,
|
|
@@ -57,9 +60,6 @@ const Base = exports.Base = /*#__PURE__*/(0, _react.forwardRef)(function Base({
|
|
|
57
60
|
});
|
|
58
61
|
const baseStyle = _reactNative.StyleSheet.create({
|
|
59
62
|
container: {
|
|
60
|
-
..._index.FlexStyleSheet.self_start,
|
|
61
|
-
..._index.FlexStyleSheet.flex_row,
|
|
62
|
-
..._index.FlexStyleSheet.justify_between,
|
|
63
63
|
overflow: 'hidden',
|
|
64
64
|
paddingLeft: _carbonReactNativeElements.Spacing.spacing_05
|
|
65
65
|
},
|
|
@@ -70,7 +70,7 @@ const baseStyle = _reactNative.StyleSheet.create({
|
|
|
70
70
|
paddingRight: _carbonReactNativeElements.Spacing.spacing_10
|
|
71
71
|
},
|
|
72
72
|
contentContainer: {
|
|
73
|
-
...
|
|
73
|
+
..._index2.FlexStyleSheet.flex_initial,
|
|
74
74
|
maxHeight: _carbonReactNativeElements.Spacing.spacing_09
|
|
75
75
|
},
|
|
76
76
|
textContainer: {
|
|
@@ -107,10 +107,14 @@ const baseStyle = _reactNative.StyleSheet.create({
|
|
|
107
107
|
}
|
|
108
108
|
}),
|
|
109
109
|
mapContainerPR = {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
false: {
|
|
111
|
+
false: baseStyle.containerPR16,
|
|
112
|
+
true: baseStyle.containerPR16
|
|
113
|
+
},
|
|
114
|
+
true: {
|
|
115
|
+
false: baseStyle.containerPR64,
|
|
116
|
+
true: baseStyle.containerPR16
|
|
117
|
+
}
|
|
114
118
|
},
|
|
115
119
|
/**
|
|
116
120
|
* https://carbondesignsystem.com/components/button/style/#typography
|
|
@@ -132,31 +136,31 @@ const baseStyle = _reactNative.StyleSheet.create({
|
|
|
132
136
|
* Expressive only when button size is LARGE_EXPRESSIVE. You can see this link
|
|
133
137
|
* https://carbondesignsystem.com/components/button/style/#sizes
|
|
134
138
|
*/
|
|
135
|
-
function isExpressiveStr(
|
|
136
|
-
return `${
|
|
139
|
+
function isExpressiveStr(Size) {
|
|
140
|
+
return `${Size === 'large_expressive'}`;
|
|
137
141
|
}
|
|
138
142
|
function getContainerPaddingRight(text, icon) {
|
|
139
|
-
return mapContainerPR[
|
|
143
|
+
return mapContainerPR[`${text}`][`${icon}`];
|
|
140
144
|
}
|
|
141
145
|
|
|
142
146
|
/**
|
|
143
147
|
* Expressive only when button size is LARGE_EXPRESSIVE. You can see this link
|
|
144
148
|
* https://carbondesignsystem.com/components/button/style/#sizes
|
|
145
149
|
*/
|
|
146
|
-
function getTextType(
|
|
147
|
-
return mapTextTypeByExpressive[isExpressiveStr(
|
|
150
|
+
function getTextType(size) {
|
|
151
|
+
return mapTextTypeByExpressive[isExpressiveStr(size)];
|
|
148
152
|
}
|
|
149
153
|
|
|
150
154
|
/**
|
|
151
155
|
* Expressive only when button size is LARGE_EXPRESSIVE. You can see this link
|
|
152
156
|
* https://carbondesignsystem.com/components/button/style/#sizes
|
|
153
157
|
*/
|
|
154
|
-
function getIconSize(
|
|
155
|
-
return mapIconSizeByExpressive[isExpressiveStr(
|
|
158
|
+
function getIconSize(size) {
|
|
159
|
+
return mapIconSizeByExpressive[isExpressiveStr(size)];
|
|
156
160
|
}
|
|
157
|
-
function getIconMarginTopStyle(
|
|
158
|
-
const iconSize = mapIconSizeByExpressive[isExpressiveStr(
|
|
159
|
-
height = Math.min(sizeStyle[
|
|
161
|
+
function getIconMarginTopStyle(size) {
|
|
162
|
+
const iconSize = mapIconSizeByExpressive[isExpressiveStr(size)],
|
|
163
|
+
height = Math.min(sizeStyle[size].height, sizeStyle.large_productive.height); // 48 at max
|
|
160
164
|
|
|
161
165
|
return {
|
|
162
166
|
marginTop: height / 2 - iconSize / 2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_jsxRuntime","Base","exports","forwardRef","size","text","textProps","icon","iconProps","iconNode","backgroundNode","InlineLoading","inlineLoadingProps","style","role","ariaLabel","props","ref","iconSize","getIconSize","jsxs","Pressable","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_index4","_jsxRuntime","Base","exports","forwardRef","size","sizeProp","text","textProps","icon","iconProps","iconNode","backgroundNode","InlineLoading","inlineLoadingProps","style","role","ariaLabel","props","ref","buttonGroupContext","useContext","ButtonGroupContext","iconSize","getIconSize","jsxs","Pressable","FlexStyleSheet","flex_row","justify_between","self_start","baseStyle","container","sizeStyle","getContainerPaddingRight","children","state","Fragment","jsx","View","textContainer","Text","type","getTextType","Icon","src","width","height","getIconMarginTopStyle","getIconMarginLeftStyle","inlineLoading","StyleSheet","create","overflow","paddingLeft","Spacing","spacing_05","containerPR16","paddingRight","containerPR64","spacing_10","contentContainer","flex_initial","maxHeight","spacing_09","justifyContent","iconML32","marginLeft","spacing_07","small","medium","large_productive","large_expressive","extra_large","mapContainerPR","false","true","mapTextTypeByExpressive","mapIconSizeByExpressive","mapIconMLByText","isExpressiveStr","Size","Math","min","marginTop","hasText"],"sourceRoot":"../../../../../src","sources":["components/button/base/Base.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AAIA,IAAAK,OAAA,GAAAL,OAAA;AAIA,IAAAM,OAAA,GAAAN,OAAA;AAGmB,IAAAO,WAAA,GAAAP,OAAA;AAcZ,MAAMQ,IAAI,GAAAC,OAAA,CAAAD,IAAA,gBAAG,IAAAE,iBAAU,EAC7B,SAASF,IAAIA,CACZ;EACCG,IAAI,EAAEC,Q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J;EACnB,OAAO,GAAGA,IAAI,KAAK,kBAAkB,EAAE;AACxC;AAEA,SAAS/C,wBAAwBA,CAChC3B,IAAa,EACbE,IAAa,EACZ;EACD,OAAOiE,cAAc,CAAC,GAAGnE,IAAI,EAAE,CAAC,CAAC,GAAGE,IAAI,EAAE,CAAC;AAC5C;;AAEA;AACA;AACA;AACA;AACA,SAASkC,WAAWA,CAACtC,IAAuB,EAAE;EAC7C,OAAOwE,uBAAuB,CAACG,eAAe,CAAC3E,IAAI,CAAC,CAAC;AACtD;;AAEA;AACA;AACA;AACA;AACA,SAASmB,WAAWA,CAACnB,IAAuB,EAAE;EAC7C,OAAOyE,uBAAuB,CAACE,eAAe,CAAC3E,IAAI,CAAC,CAAC;AACtD;AAEA,SAAS2C,qBAAqBA,CAAC3C,IAAoC,EAAE;EACpE,MACCkB,QAAQ,GACPuD,uBAAuB,CAACE,eAAe,CAAC3E,IAAI,CAAC,CAAC;IAE/C0C,MAAM,GACLmC,IAAI,CAACC,GAAG,CAAClD,SAAS,CAAC5B,IAAI,CAAC,CAAC0C,MAAM,EAAEd,SAAS,CAACsC,gBAAgB,CAACxB,MAAM,CAAC,EAAC;;EAEtE,OAAO;IACNqC,SAAS,EAAGrC,MAAM,GAAG,CAAC,GAAKxB,QAAQ,GAAG;EACvC,CAAC;AACF;AAEA,SAAS0B,sBAAsBA,CAACoC,OAAgB,EAAE;EACjD,OAAON,eAAe,CAAC,GAAGM,OAAO,EAAE,CAAC;AACrC","ignoreList":[]}
|
|
@@ -25,17 +25,6 @@ Object.keys(_index2).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
-
var _ButtonSize = require("./ButtonSize.js");
|
|
29
|
-
Object.keys(_ButtonSize).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _ButtonSize[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _ButtonSize[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
28
|
var _index3 = require("./ghost/index.js");
|
|
40
29
|
Object.keys(_index3).forEach(function (key) {
|
|
41
30
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -102,6 +91,17 @@ Object.keys(_index8).forEach(function (key) {
|
|
|
102
91
|
}
|
|
103
92
|
});
|
|
104
93
|
});
|
|
94
|
+
var _Size = require("./Size.js");
|
|
95
|
+
Object.keys(_Size).forEach(function (key) {
|
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (key in exports && exports[key] === _Size[key]) return;
|
|
98
|
+
Object.defineProperty(exports, key, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function () {
|
|
101
|
+
return _Size[key];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
105
|
var _index9 = require("./tertiary/index.js");
|
|
106
106
|
Object.keys(_index9).forEach(function (key) {
|
|
107
107
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_index2","
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_index2","_index3","_index4","_index5","_index6","_index7","_index8","_Size","_index9","_index0"],"sourceRoot":"../../../../src","sources":["components/button/index.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,C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,233 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ButtonGroup = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
10
|
+
var _index = require("../../_internal/components/button-group/index.js");
|
|
11
|
+
var _index2 = require("../../_internal/style-sheets/index.js");
|
|
12
|
+
var _context = require("./_context.js");
|
|
13
|
+
var _index3 = require("./_renderer-2/index.js");
|
|
14
|
+
var _index4 = require("./_renderer-3/index.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
/**
|
|
17
|
+
* @experimental
|
|
18
|
+
* Button groups can consist of different button variants depending on the product use case.
|
|
19
|
+
* The order of this union below (from left to right, e.g 'secondary' > 'primary') will be same as the actual render (if `verticalStack` true, it will be bottom to top)
|
|
20
|
+
*
|
|
21
|
+
* 2 Buttons:
|
|
22
|
+
* - `Secondary` > `Primary`
|
|
23
|
+
* - `Tertiary` > `Primary`
|
|
24
|
+
* - `Ghost` > `Primary`
|
|
25
|
+
* - `TertiaryDanger` > `Primary`
|
|
26
|
+
* - `Secondary` > `PrimaryDanger`
|
|
27
|
+
* - `Ghost` > `PrimaryDanger`
|
|
28
|
+
*
|
|
29
|
+
* 3 Buttons:
|
|
30
|
+
* - `Tertiary` > `Secondary` > `Primary`
|
|
31
|
+
* - `Ghost` > `Secondary` > `Primary`
|
|
32
|
+
* - `Secondary1` > `Secondary2` > `Primary`
|
|
33
|
+
* - `Tertiary1` > `Tertiary2` > `Primary`
|
|
34
|
+
* - `TertiaryDanger` > `Tertiary` > `Primary`
|
|
35
|
+
*
|
|
36
|
+
* 2 Buttons without primary button
|
|
37
|
+
* - `Tertiary1` > `Tertiary2`
|
|
38
|
+
* - `Ghost` > `Tertiary`
|
|
39
|
+
* - `Ghost1` > `Ghost2`
|
|
40
|
+
*
|
|
41
|
+
* 3 Buttons without primary button
|
|
42
|
+
* - `Tertiary1` > `Tertiary2` > `Tertiary3`
|
|
43
|
+
* - `TertiaryDanger` > `Tertiary1` > `Tertiary2`
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* return (
|
|
48
|
+
* <ButtonGroup
|
|
49
|
+
* fluid
|
|
50
|
+
* items={{
|
|
51
|
+
* Secondary: {
|
|
52
|
+
* Component: Button.Secondary,
|
|
53
|
+
* text: 'Secondary',
|
|
54
|
+
* },
|
|
55
|
+
* Primary: {
|
|
56
|
+
* Component: Button.Primary,
|
|
57
|
+
* text: 'Primary',
|
|
58
|
+
* },
|
|
59
|
+
* }}
|
|
60
|
+
* // OR
|
|
61
|
+
* items={{
|
|
62
|
+
* Tertiary: {
|
|
63
|
+
* Component: Button.Tertiary,
|
|
64
|
+
* text: 'Tertiary',
|
|
65
|
+
* },
|
|
66
|
+
* Secondary: {
|
|
67
|
+
* Component: Button.Secondary,
|
|
68
|
+
* text: 'Secondary',
|
|
69
|
+
* },
|
|
70
|
+
* Primary: {
|
|
71
|
+
* Component: Button.Primary,
|
|
72
|
+
* text: 'Primary',
|
|
73
|
+
* },
|
|
74
|
+
* }}
|
|
75
|
+
* // OR
|
|
76
|
+
* items={{
|
|
77
|
+
* Component: Button.Tertiary,
|
|
78
|
+
* Tertiary1: {
|
|
79
|
+
* text: 'Tertiary 1',
|
|
80
|
+
* },
|
|
81
|
+
* Tertiary2: {
|
|
82
|
+
* text: 'Tertiary 2',
|
|
83
|
+
* },
|
|
84
|
+
* Tertiary3: {
|
|
85
|
+
* text: 'Tertiary 3',
|
|
86
|
+
* },
|
|
87
|
+
* }}
|
|
88
|
+
* />
|
|
89
|
+
* )
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @see https://carbondesignsystem.com/components/button/usage/#button-groups
|
|
93
|
+
*/
|
|
94
|
+
const ButtonGroup = exports.ButtonGroup = /*#__PURE__*/(0, _react.forwardRef)(function ButtonGroup({
|
|
95
|
+
size = 'large_productive',
|
|
96
|
+
items,
|
|
97
|
+
fluid = false,
|
|
98
|
+
verticalStack = false,
|
|
99
|
+
style,
|
|
100
|
+
...props
|
|
101
|
+
}, ref) {
|
|
102
|
+
const
|
|
103
|
+
/**
|
|
104
|
+
* not included with `TertiaryDanger` > `Tertiary` > `Primary` combination
|
|
105
|
+
*/
|
|
106
|
+
is3ButtonsWithPrimary = items.Tertiary && items.Secondary && items.Primary || items.Ghost && items.Secondary && items.Primary || items.Secondary1 && items.Secondary2 && items.Primary || items.Tertiary1 && items.Tertiary2 && items.Primary,
|
|
107
|
+
// not included for type check fix
|
|
108
|
+
// (TertiaryDanger && Tertiary && Primary)
|
|
109
|
+
// (TertiaryDanger && Tertiary1 && Tertiary2)
|
|
110
|
+
|
|
111
|
+
is3ButtonsWithoutPrimary = items.Tertiary1 && items.Tertiary2 && items.Tertiary3 || items.TertiaryDanger && items.Tertiary1 && items.Tertiary2 || items.Secondary1 && items.Secondary2 && items.Secondary3;
|
|
112
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ButtonGroupContext.Provider, {
|
|
113
|
+
value: {
|
|
114
|
+
size
|
|
115
|
+
},
|
|
116
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.Context.Provider, {
|
|
117
|
+
value: {
|
|
118
|
+
fluid,
|
|
119
|
+
verticalStack
|
|
120
|
+
},
|
|
121
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
122
|
+
ref: ref,
|
|
123
|
+
...props,
|
|
124
|
+
style: [mapStyleByFluid[`${!!fluid}`], mapStyleByVerticalStack[`${!!verticalStack}`],
|
|
125
|
+
// Place the Ghost button alone at the container's start
|
|
126
|
+
fluid && (is3ButtonsWithPrimary || is3ButtonsWithoutPrimary) && !!items.Ghost ? _index2.FlexStyleSheet.justify_between : undefined, style],
|
|
127
|
+
children:
|
|
128
|
+
// 3 Buttons with Primary
|
|
129
|
+
// - Tertiary | Secondary | Primary
|
|
130
|
+
// - Ghost | Secondary | Primary
|
|
131
|
+
// - Secondary1 | Secondary2 | Primary
|
|
132
|
+
// - Tertiary1 | Tertiary2 | Primary
|
|
133
|
+
is3ButtonsWithPrimary ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.Renderer3, {
|
|
134
|
+
item1: items.Tertiary ?? items.Ghost ?? items.Secondary1 ?? items.Tertiary1,
|
|
135
|
+
item2: items.Secondary ?? items.Secondary2 ?? items.Tertiary2,
|
|
136
|
+
item3: items.Primary
|
|
137
|
+
}) :
|
|
138
|
+
// 3 buttons [fix type check]
|
|
139
|
+
// - TertiaryDanger | Tertiary | Primary
|
|
140
|
+
items.TertiaryDanger && items.Tertiary && items.Primary ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.Renderer3, {
|
|
141
|
+
item1: items.TertiaryDanger,
|
|
142
|
+
item2: items.Tertiary,
|
|
143
|
+
item3: items.Primary
|
|
144
|
+
}) :
|
|
145
|
+
// 3 buttons without primary [fix type check]
|
|
146
|
+
// - Tertiary1 | Tertiary2 | Tertiary3
|
|
147
|
+
items.Tertiary1 && items.Tertiary2 && items.Tertiary3 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.Renderer3, {
|
|
148
|
+
item1: {
|
|
149
|
+
...items.Tertiary1,
|
|
150
|
+
Component: items.TertiaryComponent
|
|
151
|
+
},
|
|
152
|
+
item2: {
|
|
153
|
+
...items.Tertiary2,
|
|
154
|
+
Component: items.TertiaryComponent
|
|
155
|
+
},
|
|
156
|
+
item3: {
|
|
157
|
+
...items.Tertiary3,
|
|
158
|
+
Component: items.TertiaryComponent
|
|
159
|
+
}
|
|
160
|
+
}) :
|
|
161
|
+
// 3 buttons without primary [fix type check]
|
|
162
|
+
// - TertiaryDanger | Tertiary1 | Tertiary2
|
|
163
|
+
items.TertiaryDanger && items.Tertiary1 && items.Tertiary2 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.Renderer3, {
|
|
164
|
+
item1: items.TertiaryDanger,
|
|
165
|
+
item2: items.Tertiary1,
|
|
166
|
+
item3: items.Tertiary2
|
|
167
|
+
}) : items.Secondary1 && items.Secondary2 && items.Secondary3 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.Renderer3, {
|
|
168
|
+
item1: {
|
|
169
|
+
...items.Secondary1,
|
|
170
|
+
Component: items.SecondaryComponent
|
|
171
|
+
},
|
|
172
|
+
item2: {
|
|
173
|
+
...items.Secondary2,
|
|
174
|
+
Component: items.SecondaryComponent
|
|
175
|
+
},
|
|
176
|
+
item3: {
|
|
177
|
+
...items.Secondary3,
|
|
178
|
+
Component: items.SecondaryComponent
|
|
179
|
+
}
|
|
180
|
+
}) :
|
|
181
|
+
// 2 Buttons
|
|
182
|
+
items.Secondary && items.Primary || items.Tertiary && items.Primary || items.Ghost && items.Primary || items.TertiaryDanger && items.Primary || items.Secondary && items.PrimaryDanger || items.Ghost && items.PrimaryDanger ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Renderer2, {
|
|
183
|
+
item1: items.Secondary ?? items.Tertiary ?? items.Ghost ?? items.TertiaryDanger,
|
|
184
|
+
item2: items.Primary ?? items.PrimaryDanger
|
|
185
|
+
}) :
|
|
186
|
+
// 2 Buttons without primary button
|
|
187
|
+
'TertiaryComponent' in items && items.Tertiary1 && items.Tertiary2 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Renderer2, {
|
|
188
|
+
item1: {
|
|
189
|
+
...items.Tertiary1,
|
|
190
|
+
Component: items.TertiaryComponent
|
|
191
|
+
},
|
|
192
|
+
item2: {
|
|
193
|
+
...items.Tertiary2,
|
|
194
|
+
Component: items.TertiaryComponent
|
|
195
|
+
}
|
|
196
|
+
}) :
|
|
197
|
+
// 2 Buttons without primary button
|
|
198
|
+
'GhostComponent' in items && items.Ghost1 && items.Ghost2 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Renderer2, {
|
|
199
|
+
item1: {
|
|
200
|
+
...items.Ghost1,
|
|
201
|
+
Component: items.GhostComponent
|
|
202
|
+
},
|
|
203
|
+
item2: {
|
|
204
|
+
...items.Ghost2,
|
|
205
|
+
Component: items.GhostComponent
|
|
206
|
+
}
|
|
207
|
+
}) :
|
|
208
|
+
// 2 Buttons without primary button
|
|
209
|
+
items.Ghost && items.Tertiary ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Renderer2, {
|
|
210
|
+
item1: items.Ghost,
|
|
211
|
+
item2: items.Tertiary
|
|
212
|
+
}) : null
|
|
213
|
+
})
|
|
214
|
+
})
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
const styleSheet = _reactNative.StyleSheet.create({
|
|
218
|
+
fixedGroup: {
|
|
219
|
+
gap: _carbonReactNativeElements.Spacing.spacing_05
|
|
220
|
+
},
|
|
221
|
+
fluidGroup: {
|
|
222
|
+
gap: 1
|
|
223
|
+
}
|
|
224
|
+
}),
|
|
225
|
+
mapStyleByFluid = {
|
|
226
|
+
false: styleSheet.fixedGroup,
|
|
227
|
+
true: styleSheet.fluidGroup
|
|
228
|
+
},
|
|
229
|
+
mapStyleByVerticalStack = {
|
|
230
|
+
false: _index2.FlexStyleSheet.flex_row,
|
|
231
|
+
true: _index2.FlexStyleSheet.flex_col_reverse
|
|
232
|
+
};
|
|
233
|
+
//# sourceMappingURL=ButtonGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_context","_index3","_index4","_jsxRuntime","ButtonGroup","exports","forwardRef","size","items","fluid","verticalStack","style","props","ref","is3ButtonsWithPrimary","Tertiary","Secondary","Primary","Ghost","Secondary1","Secondary2","Tertiary1","Tertiary2","is3ButtonsWithoutPrimary","Tertiary3","TertiaryDanger","Secondary3","jsx","ButtonGroupContext","Provider","value","children","Context","View","mapStyleByFluid","mapStyleByVerticalStack","FlexStyleSheet","justify_between","undefined","Renderer3","item1","item2","item3","Component","TertiaryComponent","SecondaryComponent","PrimaryDanger","Renderer2","Ghost1","Ghost2","GhostComponent","styleSheet","StyleSheet","create","fixedGroup","gap","Spacing","spacing_05","fluidGroup","false","true","flex_row","flex_col_reverse"],"sourceRoot":"../../../../src","sources":["components/button-group/ButtonGroup.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AAIA,IAAAK,QAAA,GAAAL,OAAA;AAIA,IAAAM,OAAA,GAAAN,OAAA;AAIA,IAAAO,OAAA,GAAAP,OAAA;AAEsB,IAAAQ,WAAA,GAAAR,OAAA;AAUtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMS,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAG,IAAAE,iBAAU,EACpC,SAASF,WAAWA,CACnB;EACCG,IAAI,GAAG,kBAAkB;EACzBC,KAAK;EACLC,KAAK,GAAG,KAAK;EACbC,aAAa,GAAG,KAAK;EACrBC,KAAK;EACL,GAAGC;AACJ,CAAC,EACDC,GAAG,EACF;EAED;IACC;AACH;AACA;IACGC,qBAAqB,GACnBN,KAAK,CAACO,QAAQ,IAAIP,KAAK,CAACQ,SAAS,I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,uBAAiE,GAChE;IACCwB,KAAK,EAAEvB,sBAAc,CAACyB,QAAQ;IAC9BD,IAAI,EAAExB,sBAAc,CAAC0B;EACtB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/button-group/ButtonGroupProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/button-group/ButtonGroupRef.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Context = void 0;
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
const Context = exports.Context = /*#__PURE__*/(0, _react.createContext)({
|
|
10
|
+
fluid: false,
|
|
11
|
+
verticalStack: false
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=_context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","Context","_react","require","createContext","fluid","verticalStack"],"sourceRoot":"../../../../src","sources":["components/button-group/_context.ts"],"mappings":";AAAA,YAAY;;AAAAA,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,KAAA;AAAA;AAAAD,OAAA,CAAAE,OAAA;AAEZ,IAAAC,MAAA,GAAAC,OAAA;AASO,MAAMF,OAAO,GAAAF,OAAA,CAAAE,OAAA,gBAAG,IAAAG,oBAAa,EAAU;EAC7CC,KAAK,EAAE,KAAK;EACZC,aAAa,EAAE;AAChB,CAAC,CAAC","ignoreList":[]}
|