@ornikar/bumper 3.14.1 → 4.0.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 +10 -0
- package/dist/definitions/index.d.ts +4 -4
- package/dist/definitions/system/{actions → buttons}/Button/Button.d.ts.map +1 -1
- package/dist/definitions/system/{actions → buttons}/Button/components/ButtonBadge.d.ts.map +1 -1
- package/dist/definitions/system/{actions → buttons}/Button/components/ButtonIcon.d.ts.map +1 -1
- package/dist/definitions/system/{actions → buttons}/Button/components/ButtonText.d.ts.map +1 -1
- package/dist/definitions/system/{actions → buttons}/Button/context.d.ts.map +1 -1
- package/dist/definitions/system/{actions → buttons}/Button/types.d.ts.map +1 -1
- package/dist/definitions/system/{actions → buttons}/Button/utils/contentColor.d.ts.map +1 -1
- package/dist/definitions/system/{actions/IconButton/IconButton.d.ts → buttons/ButtonIcon/ButtonIcon.d.ts} +8 -8
- package/dist/definitions/system/buttons/ButtonIcon/ButtonIcon.d.ts.map +1 -0
- package/dist/index-metro.es.android.js +10 -10
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +10 -10
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.22.cjs.js +10 -10
- package/dist/index-node-22.22.cjs.js.map +1 -1
- package/dist/index-node-22.22.cjs.web.js +10 -10
- package/dist/index-node-22.22.cjs.web.js.map +1 -1
- package/dist/index-node-22.22.es.mjs +10 -10
- package/dist/index-node-22.22.es.mjs.map +1 -1
- package/dist/index-node-22.22.es.web.mjs +10 -10
- package/dist/index-node-22.22.es.web.mjs.map +1 -1
- package/dist/index.es.js +10 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +10 -10
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/docs/migration/Button.md +2 -2
- package/package.json +1 -1
- package/src/Bumper.mdx +3 -3
- package/src/index.ts +5 -5
- package/src/system/{actions → buttons}/Button/Button.features.stories.tsx +1 -1
- package/src/system/{actions → buttons}/Button/Button.mdx +1 -1
- package/src/system/{actions → buttons}/Button/Button.stories.tsx +1 -1
- package/src/system/{actions → buttons}/Button/__snapshots__/Button.features.stories.tsx.snap +12 -12
- package/src/system/{actions → buttons}/Button/__snapshots__/Button.stories.tsx.snap +1 -1
- package/src/system/{actions → buttons}/Button/__snapshots_web__/Button.features.stories.tsx.snap +12 -12
- package/src/system/{actions → buttons}/Button/__snapshots_web__/Button.stories.tsx.snap +1 -1
- package/src/system/buttons/ButtonIcon/ButtonIcon.features.stories.tsx +194 -0
- package/src/system/{actions/IconButton/IconButton.mdx → buttons/ButtonIcon/ButtonIcon.mdx} +16 -16
- package/src/system/{actions/IconButton/IconButton.stories.tsx → buttons/ButtonIcon/ButtonIcon.stories.tsx} +7 -7
- package/src/system/{actions/IconButton/IconButton.tsx → buttons/ButtonIcon/ButtonIcon.tsx} +10 -10
- package/src/system/{actions/IconButton/__snapshots__/IconButton.features.stories.tsx.snap → buttons/ButtonIcon/__snapshots__/ButtonIcon.features.stories.tsx.snap} +10 -10
- package/src/system/{actions/IconButton/__snapshots__/IconButton.stories.tsx.snap → buttons/ButtonIcon/__snapshots__/ButtonIcon.stories.tsx.snap} +1 -1
- package/src/system/{actions/IconButton/__snapshots_web__/IconButton.features.stories.tsx.snap → buttons/ButtonIcon/__snapshots_web__/ButtonIcon.features.stories.tsx.snap} +10 -10
- package/src/system/{actions/IconButton/__snapshots_web__/IconButton.stories.tsx.snap → buttons/ButtonIcon/__snapshots_web__/ButtonIcon.stories.tsx.snap} +1 -1
- package/dist/definitions/system/actions/IconButton/IconButton.d.ts.map +0 -1
- package/src/system/actions/IconButton/IconButton.features.stories.tsx +0 -194
- /package/dist/definitions/system/{actions → buttons}/Button/Button.d.ts +0 -0
- /package/dist/definitions/system/{actions → buttons}/Button/components/ButtonBadge.d.ts +0 -0
- /package/dist/definitions/system/{actions → buttons}/Button/components/ButtonIcon.d.ts +0 -0
- /package/dist/definitions/system/{actions → buttons}/Button/components/ButtonText.d.ts +0 -0
- /package/dist/definitions/system/{actions → buttons}/Button/context.d.ts +0 -0
- /package/dist/definitions/system/{actions → buttons}/Button/types.d.ts +0 -0
- /package/dist/definitions/system/{actions → buttons}/Button/utils/contentColor.d.ts +0 -0
- /package/src/system/{actions → buttons}/Button/Button.tsx +0 -0
- /package/src/system/{actions → buttons}/Button/components/ButtonBadge.tsx +0 -0
- /package/src/system/{actions → buttons}/Button/components/ButtonIcon.tsx +0 -0
- /package/src/system/{actions → buttons}/Button/components/ButtonText.tsx +0 -0
- /package/src/system/{actions → buttons}/Button/context.ts +0 -0
- /package/src/system/{actions → buttons}/Button/types.ts +0 -0
- /package/src/system/{actions → buttons}/Button/utils/contentColor.ts +0 -0
package/dist/index.es.web.js
CHANGED
|
@@ -853,7 +853,7 @@ function getButtonContentColor(type, disabled, isOnContrasted) {
|
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
|
|
856
|
-
function ButtonIcon(_ref) {
|
|
856
|
+
function ButtonIcon$1(_ref) {
|
|
857
857
|
var icon = _ref.icon;
|
|
858
858
|
var _context$useStyledCon = context$2.useStyledContext(),
|
|
859
859
|
type = _context$useStyledCon.type,
|
|
@@ -1085,7 +1085,7 @@ var InternalButton = InternalButtonFrame.styleable(function (props, ref) {
|
|
|
1085
1085
|
children: flattenProps.children
|
|
1086
1086
|
}), /*#__PURE__*/jsx(View, {
|
|
1087
1087
|
position: "absolute",
|
|
1088
|
-
children: /*#__PURE__*/jsx(ButtonIcon, {
|
|
1088
|
+
children: /*#__PURE__*/jsx(ButtonIcon$1, {
|
|
1089
1089
|
icon: /*#__PURE__*/jsx(Loader, {
|
|
1090
1090
|
size: "icon"
|
|
1091
1091
|
})
|
|
@@ -1095,12 +1095,12 @@ var InternalButton = InternalButtonFrame.styleable(function (props, ref) {
|
|
|
1095
1095
|
});
|
|
1096
1096
|
var Button = withStaticProperties(InternalButton, {
|
|
1097
1097
|
Text: ButtonText,
|
|
1098
|
-
Icon: ButtonIcon,
|
|
1098
|
+
Icon: ButtonIcon$1,
|
|
1099
1099
|
Badge: ButtonBadge
|
|
1100
1100
|
});
|
|
1101
1101
|
|
|
1102
|
-
var
|
|
1103
|
-
name: '
|
|
1102
|
+
var InternalButtonIconFrame = styled(InternalButton, {
|
|
1103
|
+
name: 'ButtonIcon',
|
|
1104
1104
|
context: context$2,
|
|
1105
1105
|
variants: {
|
|
1106
1106
|
size: {
|
|
@@ -1119,11 +1119,11 @@ var InternalIconButtonFrame = styled(InternalButton, {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
});
|
|
1122
|
-
function
|
|
1123
|
-
return /*#__PURE__*/jsx(
|
|
1122
|
+
function InternalButtonIcon(props) {
|
|
1123
|
+
return /*#__PURE__*/jsx(InternalButtonIconFrame, _objectSpread({}, props));
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1126
|
-
Icon: ButtonIcon,
|
|
1125
|
+
var ButtonIcon = withStaticProperties(InternalButtonIcon, {
|
|
1126
|
+
Icon: ButtonIcon$1,
|
|
1127
1127
|
Badge: ButtonBadge
|
|
1128
1128
|
});
|
|
1129
1129
|
|
|
@@ -1489,5 +1489,5 @@ function Divider(props) {
|
|
|
1489
1489
|
return /*#__PURE__*/jsx(InternalDivider, _objectSpread({}, props));
|
|
1490
1490
|
}
|
|
1491
1491
|
|
|
1492
|
-
export { Avatar, Badge, BumperProvider, Button, Center, Divider, HStack,
|
|
1492
|
+
export { Avatar, Badge, BumperProvider, Button, ButtonIcon, Center, Divider, HStack, Loader, Pressable, Sticker, SwitchBreakpoints, Typography, VStack, getValueForBreakpoint, useBreakpointValue, useCurrentBreakpointName };
|
|
1493
1493
|
//# sourceMappingURL=index.es.web.js.map
|