@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.
Files changed (63) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/definitions/index.d.ts +4 -4
  3. package/dist/definitions/system/{actions → buttons}/Button/Button.d.ts.map +1 -1
  4. package/dist/definitions/system/{actions → buttons}/Button/components/ButtonBadge.d.ts.map +1 -1
  5. package/dist/definitions/system/{actions → buttons}/Button/components/ButtonIcon.d.ts.map +1 -1
  6. package/dist/definitions/system/{actions → buttons}/Button/components/ButtonText.d.ts.map +1 -1
  7. package/dist/definitions/system/{actions → buttons}/Button/context.d.ts.map +1 -1
  8. package/dist/definitions/system/{actions → buttons}/Button/types.d.ts.map +1 -1
  9. package/dist/definitions/system/{actions → buttons}/Button/utils/contentColor.d.ts.map +1 -1
  10. package/dist/definitions/system/{actions/IconButton/IconButton.d.ts → buttons/ButtonIcon/ButtonIcon.d.ts} +8 -8
  11. package/dist/definitions/system/buttons/ButtonIcon/ButtonIcon.d.ts.map +1 -0
  12. package/dist/index-metro.es.android.js +10 -10
  13. package/dist/index-metro.es.android.js.map +1 -1
  14. package/dist/index-metro.es.ios.js +10 -10
  15. package/dist/index-metro.es.ios.js.map +1 -1
  16. package/dist/index-node-22.22.cjs.js +10 -10
  17. package/dist/index-node-22.22.cjs.js.map +1 -1
  18. package/dist/index-node-22.22.cjs.web.js +10 -10
  19. package/dist/index-node-22.22.cjs.web.js.map +1 -1
  20. package/dist/index-node-22.22.es.mjs +10 -10
  21. package/dist/index-node-22.22.es.mjs.map +1 -1
  22. package/dist/index-node-22.22.es.web.mjs +10 -10
  23. package/dist/index-node-22.22.es.web.mjs.map +1 -1
  24. package/dist/index.es.js +10 -10
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.es.web.js +10 -10
  27. package/dist/index.es.web.js.map +1 -1
  28. package/dist/tsbuildinfo +1 -1
  29. package/docs/migration/Button.md +2 -2
  30. package/package.json +1 -1
  31. package/src/Bumper.mdx +3 -3
  32. package/src/index.ts +5 -5
  33. package/src/system/{actions → buttons}/Button/Button.features.stories.tsx +1 -1
  34. package/src/system/{actions → buttons}/Button/Button.mdx +1 -1
  35. package/src/system/{actions → buttons}/Button/Button.stories.tsx +1 -1
  36. package/src/system/{actions → buttons}/Button/__snapshots__/Button.features.stories.tsx.snap +12 -12
  37. package/src/system/{actions → buttons}/Button/__snapshots__/Button.stories.tsx.snap +1 -1
  38. package/src/system/{actions → buttons}/Button/__snapshots_web__/Button.features.stories.tsx.snap +12 -12
  39. package/src/system/{actions → buttons}/Button/__snapshots_web__/Button.stories.tsx.snap +1 -1
  40. package/src/system/buttons/ButtonIcon/ButtonIcon.features.stories.tsx +194 -0
  41. package/src/system/{actions/IconButton/IconButton.mdx → buttons/ButtonIcon/ButtonIcon.mdx} +16 -16
  42. package/src/system/{actions/IconButton/IconButton.stories.tsx → buttons/ButtonIcon/ButtonIcon.stories.tsx} +7 -7
  43. package/src/system/{actions/IconButton/IconButton.tsx → buttons/ButtonIcon/ButtonIcon.tsx} +10 -10
  44. package/src/system/{actions/IconButton/__snapshots__/IconButton.features.stories.tsx.snap → buttons/ButtonIcon/__snapshots__/ButtonIcon.features.stories.tsx.snap} +10 -10
  45. package/src/system/{actions/IconButton/__snapshots__/IconButton.stories.tsx.snap → buttons/ButtonIcon/__snapshots__/ButtonIcon.stories.tsx.snap} +1 -1
  46. package/src/system/{actions/IconButton/__snapshots_web__/IconButton.features.stories.tsx.snap → buttons/ButtonIcon/__snapshots_web__/ButtonIcon.features.stories.tsx.snap} +10 -10
  47. package/src/system/{actions/IconButton/__snapshots_web__/IconButton.stories.tsx.snap → buttons/ButtonIcon/__snapshots_web__/ButtonIcon.stories.tsx.snap} +1 -1
  48. package/dist/definitions/system/actions/IconButton/IconButton.d.ts.map +0 -1
  49. package/src/system/actions/IconButton/IconButton.features.stories.tsx +0 -194
  50. /package/dist/definitions/system/{actions → buttons}/Button/Button.d.ts +0 -0
  51. /package/dist/definitions/system/{actions → buttons}/Button/components/ButtonBadge.d.ts +0 -0
  52. /package/dist/definitions/system/{actions → buttons}/Button/components/ButtonIcon.d.ts +0 -0
  53. /package/dist/definitions/system/{actions → buttons}/Button/components/ButtonText.d.ts +0 -0
  54. /package/dist/definitions/system/{actions → buttons}/Button/context.d.ts +0 -0
  55. /package/dist/definitions/system/{actions → buttons}/Button/types.d.ts +0 -0
  56. /package/dist/definitions/system/{actions → buttons}/Button/utils/contentColor.d.ts +0 -0
  57. /package/src/system/{actions → buttons}/Button/Button.tsx +0 -0
  58. /package/src/system/{actions → buttons}/Button/components/ButtonBadge.tsx +0 -0
  59. /package/src/system/{actions → buttons}/Button/components/ButtonIcon.tsx +0 -0
  60. /package/src/system/{actions → buttons}/Button/components/ButtonText.tsx +0 -0
  61. /package/src/system/{actions → buttons}/Button/context.ts +0 -0
  62. /package/src/system/{actions → buttons}/Button/types.ts +0 -0
  63. /package/src/system/{actions → buttons}/Button/utils/contentColor.ts +0 -0
@@ -876,7 +876,7 @@ function getButtonContentColor(type, disabled, isOnContrasted) {
876
876
  }
877
877
  }
878
878
 
879
- function ButtonIcon({
879
+ function ButtonIcon$1({
880
880
  icon
881
881
  }) {
882
882
  const {
@@ -1124,7 +1124,7 @@ const InternalButton = InternalButtonFrame.styleable((props, ref) => {
1124
1124
  children: flattenProps.children
1125
1125
  }), /*#__PURE__*/jsx(View, {
1126
1126
  position: "absolute",
1127
- children: /*#__PURE__*/jsx(ButtonIcon, {
1127
+ children: /*#__PURE__*/jsx(ButtonIcon$1, {
1128
1128
  icon: /*#__PURE__*/jsx(Loader, {
1129
1129
  size: "icon"
1130
1130
  })
@@ -1134,12 +1134,12 @@ const InternalButton = InternalButtonFrame.styleable((props, ref) => {
1134
1134
  });
1135
1135
  const Button = withStaticProperties(InternalButton, {
1136
1136
  Text: ButtonText,
1137
- Icon: ButtonIcon,
1137
+ Icon: ButtonIcon$1,
1138
1138
  Badge: ButtonBadge
1139
1139
  });
1140
1140
 
1141
- const InternalIconButtonFrame = styled(InternalButton, {
1142
- name: 'IconButton',
1141
+ const InternalButtonIconFrame = styled(InternalButton, {
1142
+ name: 'ButtonIcon',
1143
1143
  context: context$2,
1144
1144
  variants: {
1145
1145
  size: {
@@ -1158,13 +1158,13 @@ const InternalIconButtonFrame = styled(InternalButton, {
1158
1158
  }
1159
1159
  }
1160
1160
  });
1161
- function InternalIconButton(props) {
1162
- return /*#__PURE__*/jsx(InternalIconButtonFrame, {
1161
+ function InternalButtonIcon(props) {
1162
+ return /*#__PURE__*/jsx(InternalButtonIconFrame, {
1163
1163
  ...props
1164
1164
  });
1165
1165
  }
1166
- const IconButton = withStaticProperties(InternalIconButton, {
1167
- Icon: ButtonIcon,
1166
+ const ButtonIcon = withStaticProperties(InternalButtonIcon, {
1167
+ Icon: ButtonIcon$1,
1168
1168
  Badge: ButtonBadge
1169
1169
  });
1170
1170
 
@@ -1535,5 +1535,5 @@ function Divider(props) {
1535
1535
  });
1536
1536
  }
1537
1537
 
1538
- export { Avatar, Badge, BumperProvider, Button, Center, Divider, HStack, IconButton, Loader, Pressable, Sticker, SwitchBreakpoints, Typography, VStack, getValueForBreakpoint, useBreakpointValue, useCurrentBreakpointName };
1538
+ export { Avatar, Badge, BumperProvider, Button, ButtonIcon, Center, Divider, HStack, Loader, Pressable, Sticker, SwitchBreakpoints, Typography, VStack, getValueForBreakpoint, useBreakpointValue, useCurrentBreakpointName };
1539
1539
  //# sourceMappingURL=index-node-22.22.es.web.mjs.map