@bolttech/atoms-checkbox 0.7.0 → 0.9.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 +3 -2
  2. package/package.json +2 -2
package/index.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -12,7 +13,7 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
13
  const CheckboxContainer = /*#__PURE__*/styled__default["default"].section.withConfig({
13
14
  displayName: "atoms-checkboxstyles__CheckboxContainer",
14
15
  componentId: "sc-1gq944z-0"
15
- })(["display:flex;flex-direction:row;gap:", ";"], ({
16
+ })(["display:flex;flex-direction:row;gap:", ";align-items:center;"], ({
16
17
  theme
17
18
  }) => theme.components.checkbox.gap);
18
19
  const Input = /*#__PURE__*/styled__default["default"].input.attrs({
@@ -20,7 +21,7 @@ const Input = /*#__PURE__*/styled__default["default"].input.attrs({
20
21
  }).withConfig({
21
22
  displayName: "atoms-checkboxstyles__Input",
22
23
  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 ", ";}}}"], ({
24
+ })(["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
25
  theme,
25
26
  error
26
27
  }) => error ? theme.components.checkbox.square.color.error : theme.components.checkbox.square.color.default, ({
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@bolttech/atoms-checkbox",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "main": "./index.cjs",
5
5
  "type": "commonjs",
6
6
  "types": "./src/index.d.ts",
7
7
  "dependencies": {
8
- "@edirect/frontend-foundations": "0.0.56",
8
+ "@edirect/frontend-foundations": "0.0.58",
9
9
  "react": "18.2.0",
10
10
  "styled-components": "5.3.6"
11
11
  },