@bolttech/atoms-checkbox 0.7.0 → 0.8.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 (2) hide show
  1. package/index.cjs +2 -2
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -12,7 +12,7 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
12
  const CheckboxContainer = /*#__PURE__*/styled__default["default"].section.withConfig({
13
13
  displayName: "atoms-checkboxstyles__CheckboxContainer",
14
14
  componentId: "sc-1gq944z-0"
15
- })(["display:flex;flex-direction:row;gap:", ";"], ({
15
+ })(["display:flex;flex-direction:row;gap:", ";align-items:center;"], ({
16
16
  theme
17
17
  }) => theme.components.checkbox.gap);
18
18
  const Input = /*#__PURE__*/styled__default["default"].input.attrs({
@@ -20,7 +20,7 @@ const Input = /*#__PURE__*/styled__default["default"].input.attrs({
20
20
  }).withConfig({
21
21
  displayName: "atoms-checkboxstyles__Input",
22
22
  componentId: "sc-1gq944z-1"
23
- })(["appearance:none;margin:0;flex-shrink:0;cursor:pointer;width:14px;height:14px;outline:1px solid ", ";outline-offset:-1px;transform:translateY(0.15em);display:grid;place-content:center;&:checked{background-color:", ";&::before{content:'';width:8px;height:8px;transform:scale(0);clip-path:polygon(11% 38%,0 53%,49% 90%,100% 24%,87% 11%,47% 65%);box-shadow:inset 12px 12px ", ";}&:not(:disabled){&:hover{background-color:", ";}}}&:focus{box-shadow:0 0 0 1px ", ",0 0 0 2px ", ";outline:none;}&:not(:disabled){&:focus{box-shadow:0 0 0 1px ", ",0 0 0 2px ", ";outline:none;}&:not(:checked){&:hover::before{content:'';width:8px;height:8px;transform:scale(1);box-shadow:inset 8px 8px ", ";}}}&:checked::before{transform:scale(1);}:disabled{outline:1px solid ", ";cursor:not-allowed;&:checked{background-color:", ";&::before{box-shadow:inset 12px 12px ", ";}}}"], ({
23
+ })(["appearance:none;margin:0;flex-shrink:0;cursor:pointer;width:14px;height:14px;outline:1px solid ", ";outline-offset:-1px;display:grid;place-content:center;&:checked{background-color:", ";&::before{content:'';width:8px;height:8px;transform:scale(0);clip-path:polygon(11% 38%,0 53%,49% 90%,100% 24%,87% 11%,47% 65%);box-shadow:inset 12px 12px ", ";}&:not(:disabled){&:hover{background-color:", ";}}}&:focus{box-shadow:0 0 0 1px ", ",0 0 0 2px ", ";outline:none;}&:not(:disabled){&:focus{box-shadow:0 0 0 1px ", ",0 0 0 2px ", ";outline:none;}&:not(:checked){&:hover::before{content:'';width:8px;height:8px;transform:scale(1);box-shadow:inset 8px 8px ", ";}}}&:checked::before{transform:scale(1);}:disabled{outline:1px solid ", ";cursor:not-allowed;&:checked{background-color:", ";&::before{box-shadow:inset 12px 12px ", ";}}}"], ({
24
24
  theme,
25
25
  error
26
26
  }) => error ? theme.components.checkbox.square.color.error : theme.components.checkbox.square.color.default, ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolttech/atoms-checkbox",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "main": "./index.cjs",
5
5
  "type": "commonjs",
6
6
  "types": "./src/index.d.ts",