@ornikar/bumper 3.12.0 → 3.13.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.
@@ -1360,6 +1360,58 @@ function SwitchBreakpoints(values) {
1360
1360
  return getValueForBreakpoint(breakpoint, values);
1361
1361
  }
1362
1362
 
1363
+ const InternalDividerFrame = core.styled(core.View, {
1364
+ name: 'Divider',
1365
+ alignSelf: 'stretch',
1366
+ variants: {
1367
+ type: {
1368
+ subtle: {},
1369
+ strong: {}
1370
+ },
1371
+ isVertical: {
1372
+ true: (_, {
1373
+ props
1374
+ }) => ({
1375
+ width: props.type === 'strong' ? 8 : 1
1376
+ }),
1377
+ false: (_, {
1378
+ props
1379
+ }) => ({
1380
+ height: props.type === 'strong' ? 8 : 1
1381
+ })
1382
+ },
1383
+ isOnContrasted: {
1384
+ true: (_, {
1385
+ props
1386
+ }) => ({
1387
+ backgroundColor: props.type === 'strong' ? '$divider.border.strong.onContrasted' : '$divider.border.subtle.onContrasted'
1388
+ }),
1389
+ false: (_, {
1390
+ props
1391
+ }) => ({
1392
+ backgroundColor: props.type === 'strong' ? '$divider.border.strong' : '$divider.border.subtle'
1393
+ })
1394
+ }
1395
+ },
1396
+ defaultVariants: {
1397
+ type: 'subtle',
1398
+ isVertical: false,
1399
+ isOnContrasted: false
1400
+ }
1401
+ });
1402
+ const InternalDivider = InternalDividerFrame.styleable((props, ref) => {
1403
+ const flattenProps = useProps(props);
1404
+ return /*#__PURE__*/jsxRuntime.jsx(InternalDividerFrame, {
1405
+ ref: ref,
1406
+ ...flattenProps
1407
+ });
1408
+ });
1409
+ function Divider(props) {
1410
+ return /*#__PURE__*/jsxRuntime.jsx(InternalDivider, {
1411
+ ...props
1412
+ });
1413
+ }
1414
+
1363
1415
  exports.Stack = core.Stack;
1364
1416
  exports.View = core.View;
1365
1417
  exports.Image = image.Image;
@@ -1369,6 +1421,7 @@ exports.Badge = Badge;
1369
1421
  exports.BumperProvider = BumperProvider;
1370
1422
  exports.Button = Button;
1371
1423
  exports.Center = Center;
1424
+ exports.Divider = Divider;
1372
1425
  exports.HStack = HStack;
1373
1426
  exports.IconButton = IconButton;
1374
1427
  exports.Loader = Loader;