@itilite/lumina-ui 0.0.5 → 0.0.6

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@itilite/lumina-ui",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Design system",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -32,7 +32,7 @@
32
32
  box-shadow: 0 1px 0 0 rgba(17, 24, 39, 0.1);
33
33
  &:global(.ant-btn-primary):hover,
34
34
  &:global(.ant-btn-primary):active {
35
- @apply tw-bg-color-action-primary;
35
+ @apply tw-bg-color-action-primary-hover;
36
36
  box-shadow: 0px 2px 4px 0px rgba(17, 24, 39, 0.1);
37
37
  }
38
38
  &.variant_subtle {
@@ -54,7 +54,7 @@
54
54
  &.variant_link {
55
55
  @apply tw-text-color-text-primary;
56
56
  &:hover {
57
- @apply tw-text-color-text-primary;
57
+ @apply tw-text-color-text-primary-hover;
58
58
  }
59
59
  }
60
60
  }
@@ -22,7 +22,8 @@ const Button: React.FC<ButtonProps> = (props) => {
22
22
  loading = false,
23
23
  onHoverUnderline = false,
24
24
  id = "",
25
- name = ""
25
+ name = "",
26
+ tabIndex = 0,
26
27
  } = props;
27
28
 
28
29
  const buttonMap: Record<string, "primary" | "default" | "text" | "link"> = {
@@ -70,6 +71,7 @@ const Button: React.FC<ButtonProps> = (props) => {
70
71
  loading={loading}
71
72
  href={href || undefined}
72
73
  data-testid='lumina-button'
74
+ tabIndex={tabIndex}
73
75
  >
74
76
  {children}
75
77
  </AntButton>
@@ -89,6 +91,7 @@ Button.propTypes = {
89
91
  disabled: PropTypes.bool,
90
92
  loading: PropTypes.bool,
91
93
  href: PropTypes.string,
94
+ tabIndex: PropTypes.number,
92
95
  onHoverUnderline: PropTypes.bool,
93
96
  };
94
97
 
@@ -15,4 +15,5 @@ export interface ButtonProps {
15
15
  loading?: boolean;
16
16
  onHoverUnderline?: boolean;
17
17
  analytics?: Record<string, unknown>;
18
+ tabIndex?: number;
18
19
  }