@bitrise/bitkit 13.104.1-alpha.0 → 13.104.1-alpha.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "13.104.1-alpha.0",
4
+ "version": "13.104.1-alpha.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -1,4 +1,5 @@
1
1
  import { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/styled-system';
2
+ import { rem } from '../../utils/utils';
2
3
 
3
4
  const { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers(['container', 'icon', 'item']);
4
5
 
@@ -9,7 +10,7 @@ const baseStyleContainer = defineStyle({
9
10
  const baseStyleIcon = defineStyle({
10
11
  marginEnd: '6',
11
12
  display: 'inline',
12
- verticalAlign: '-2px',
13
+ verticalAlign: `-${rem(2)}`,
13
14
  });
14
15
 
15
16
  const baseStyle = definePartsStyle({
@@ -23,7 +24,7 @@ const ListTheme = defineMultiStyleConfig({
23
24
  ordered: {
24
25
  container: {
25
26
  counterReset: 'count',
26
- marginInlineStart: '32',
27
+ marginInlineStart: rem(28),
27
28
  },
28
29
  item: {
29
30
  position: 'relative',
@@ -31,7 +32,7 @@ const ListTheme = defineMultiStyleConfig({
31
32
  _before: {
32
33
  content: 'counter(count)',
33
34
  position: 'absolute',
34
- left: '-32px',
35
+ left: `-${rem(28)}`,
35
36
  top: '2',
36
37
  paddingY: '2',
37
38
  color: 'sys/neutral/strong',
@@ -8,19 +8,18 @@ export interface ListProps extends ChakraListProps {
8
8
  * List is used to display list items. It renders a <ul> or <ol> element by default.
9
9
  */
10
10
  const List = forwardRef<ListProps, 'ul'>((props, ref) => {
11
- const { spacing = '8', variant = 'unstyled', ...rest } = props;
11
+ const { spacing = '8', variant = 'unordered', ...rest } = props;
12
12
 
13
- const isOrdered = variant === 'simple-ordered';
14
13
  let styleType: ListProps['styleType'] = 'none';
15
14
  if (variant === 'unordered') {
16
15
  styleType = 'initial';
17
16
  }
18
- if (isOrdered) {
17
+ if (variant === 'simple-ordered') {
19
18
  styleType = 'decimal';
20
19
  }
21
20
  return (
22
21
  <ChakraList
23
- as={isOrdered ? 'ol' : 'ul'}
22
+ as={variant === 'ordered' || variant === 'simple-ordered' ? 'ol' : 'ul'}
24
23
  spacing={spacing}
25
24
  styleType={styleType}
26
25
  variant={variant}