boflow-components 1.0.0 → 1.0.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.
@@ -1,5 +1,6 @@
1
1
  .bo-checkbox {
2
2
  appearance: none;
3
+ box-sizing: border-box;
3
4
  background-color: var(--neutral-1, #fff);
4
5
  border: 1px solid var(--neutral-5, #dfe1e7);
5
6
  cursor: pointer;
@@ -10,6 +11,19 @@
10
11
  align-items: center;
11
12
  transition: all .2s ease-in-out;
12
13
  display: inline-flex;
14
+ position: relative;
15
+ }
16
+
17
+ .bo-checkbox:after {
18
+ content: "";
19
+ background-color: #0000;
20
+ width: 100%;
21
+ height: 100%;
22
+ transition: background-color .2s ease-in-out;
23
+ display: block;
24
+ mask-position: center;
25
+ mask-size: contain;
26
+ mask-repeat: no-repeat;
13
27
  }
14
28
 
15
29
  .bo-checkbox--small {
@@ -21,6 +35,7 @@
21
35
  .bo-checkbox--medium {
22
36
  width: 20px;
23
37
  height: 20px;
38
+ padding: 3.5px;
24
39
  }
25
40
 
26
41
  .bo-checkbox:hover:not(:disabled):not(:checked):not(.bo-checkbox--indeterminate) {
@@ -34,18 +49,10 @@
34
49
  .bo-checkbox:checked, .bo-checkbox--indeterminate {
35
50
  background-color: var(--primary-500, #131313);
36
51
  border-color: var(--primary-500, #131313);
37
- position: relative;
38
52
  }
39
53
 
40
54
  .bo-checkbox:checked:after, .bo-checkbox--indeterminate:after {
41
- content: "";
42
55
  background-color: #fff;
43
- width: 100%;
44
- height: 100%;
45
- display: block;
46
- mask-position: center;
47
- mask-size: contain;
48
- mask-repeat: no-repeat;
49
56
  }
50
57
 
51
58
  .bo-checkbox:checked:hover:not(:disabled), .bo-checkbox--indeterminate:hover:not(:disabled) {
@@ -1,3 +1,3 @@
1
1
  export { Button } from './Button/Button';
2
- export { Input } from './Input/Input';
3
2
  export { Checkbox } from './Checkbox/Checkbox';
3
+ export { Input } from './Input/Input';
@@ -1,4 +1,4 @@
1
1
  import { Button } from "./Button/Button.js";
2
- import { Input } from "./Input/Input.js";
3
2
  import { Checkbox } from "./Checkbox/Checkbox.js";
3
+ import { Input } from "./Input/Input.js";
4
4
  export { Button, Checkbox, Input };
@@ -1,13 +1,6 @@
1
1
  import type { InputHTMLAttributes } from 'react';
2
2
  export type CheckboxSize = 'small' | 'medium';
3
3
  export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
4
- /**
5
- * The size of the checkbox
6
- * @default 'medium'
7
- */
8
4
  size?: CheckboxSize;
9
- /**
10
- * Whether the checkbox is in an indeterminate state
11
- */
12
5
  indeterminate?: boolean;
13
6
  }
@@ -1,4 +1,5 @@
1
1
  export type { ButtonProps } from './Button';
2
2
  export { ButtonSize } from './Button';
3
+ export type { CheckboxProps } from './Checkbox';
4
+ export type { CheckboxSize } from './Checkbox';
3
5
  export type { InputProps } from './Input';
4
- export type { CheckboxProps, CheckboxSize } from './Checkbox';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boflow-components",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -19,7 +19,8 @@
19
19
  "dev": "rsbuild dev --open",
20
20
  "dev:build": "rslib build --watch",
21
21
  "format": "biome format --write",
22
- "storybook": "storybook dev"
22
+ "storybook": "storybook dev",
23
+ "publish": "rm -rf dist && rslib build && bun publish"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@biomejs/biome": "2.3.14",