@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
|
@@ -885,7 +885,7 @@ function getButtonContentColor(type, disabled, isOnContrasted) {
|
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
-
function ButtonIcon({
|
|
888
|
+
function ButtonIcon$1({
|
|
889
889
|
icon
|
|
890
890
|
}) {
|
|
891
891
|
const {
|
|
@@ -1133,7 +1133,7 @@ const InternalButton = InternalButtonFrame.styleable((props, ref) => {
|
|
|
1133
1133
|
children: flattenProps.children
|
|
1134
1134
|
}), /*#__PURE__*/jsxRuntime.jsx(core.View, {
|
|
1135
1135
|
position: "absolute",
|
|
1136
|
-
children: /*#__PURE__*/jsxRuntime.jsx(ButtonIcon, {
|
|
1136
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ButtonIcon$1, {
|
|
1137
1137
|
icon: /*#__PURE__*/jsxRuntime.jsx(Loader, {
|
|
1138
1138
|
size: "icon"
|
|
1139
1139
|
})
|
|
@@ -1143,12 +1143,12 @@ const InternalButton = InternalButtonFrame.styleable((props, ref) => {
|
|
|
1143
1143
|
});
|
|
1144
1144
|
const Button = core.withStaticProperties(InternalButton, {
|
|
1145
1145
|
Text: ButtonText,
|
|
1146
|
-
Icon: ButtonIcon,
|
|
1146
|
+
Icon: ButtonIcon$1,
|
|
1147
1147
|
Badge: ButtonBadge
|
|
1148
1148
|
});
|
|
1149
1149
|
|
|
1150
|
-
const
|
|
1151
|
-
name: '
|
|
1150
|
+
const InternalButtonIconFrame = core.styled(InternalButton, {
|
|
1151
|
+
name: 'ButtonIcon',
|
|
1152
1152
|
context: context$2,
|
|
1153
1153
|
variants: {
|
|
1154
1154
|
size: {
|
|
@@ -1167,13 +1167,13 @@ const InternalIconButtonFrame = core.styled(InternalButton, {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
});
|
|
1170
|
-
function
|
|
1171
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1170
|
+
function InternalButtonIcon(props) {
|
|
1171
|
+
return /*#__PURE__*/jsxRuntime.jsx(InternalButtonIconFrame, {
|
|
1172
1172
|
...props
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
|
-
const
|
|
1176
|
-
Icon: ButtonIcon,
|
|
1175
|
+
const ButtonIcon = core.withStaticProperties(InternalButtonIcon, {
|
|
1176
|
+
Icon: ButtonIcon$1,
|
|
1177
1177
|
Badge: ButtonBadge
|
|
1178
1178
|
});
|
|
1179
1179
|
|
|
@@ -1553,10 +1553,10 @@ exports.Avatar = Avatar;
|
|
|
1553
1553
|
exports.Badge = Badge;
|
|
1554
1554
|
exports.BumperProvider = BumperProvider;
|
|
1555
1555
|
exports.Button = Button;
|
|
1556
|
+
exports.ButtonIcon = ButtonIcon;
|
|
1556
1557
|
exports.Center = Center;
|
|
1557
1558
|
exports.Divider = Divider;
|
|
1558
1559
|
exports.HStack = HStack;
|
|
1559
|
-
exports.IconButton = IconButton;
|
|
1560
1560
|
exports.Loader = Loader;
|
|
1561
1561
|
exports.Pressable = Pressable;
|
|
1562
1562
|
exports.Sticker = Sticker;
|