@bds-web/ui 1.1.0 → 1.3.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.
- package/dist/Button/utils/get-style.js +6 -6
- package/dist/CheckIcon/index.d.ts +2 -0
- package/dist/CheckIcon/index.d.ts.map +1 -0
- package/dist/CheckIcon/index.js +1 -0
- package/dist/CheckIcon/ui/index.d.ts +6 -0
- package/dist/CheckIcon/ui/index.d.ts.map +1 -0
- package/dist/CheckIcon/ui/index.js +5 -0
- package/dist/Checkbox/index.d.ts +3 -0
- package/dist/Checkbox/index.d.ts.map +1 -0
- package/dist/Checkbox/index.js +2 -0
- package/dist/Checkbox/types/props.d.ts +6 -0
- package/dist/Checkbox/types/props.d.ts.map +1 -0
- package/dist/Checkbox/types/props.js +1 -0
- package/dist/Checkbox/ui/index.d.ts +3 -0
- package/dist/Checkbox/ui/index.d.ts.map +1 -0
- package/dist/Checkbox/ui/index.js +7 -0
- package/dist/Checkbox/ui/style.d.ts +8 -0
- package/dist/Checkbox/ui/style.d.ts.map +1 -0
- package/dist/Checkbox/ui/style.js +14 -0
- package/dist/Dropdown/utils/get-style.d.ts.map +1 -1
- package/dist/Dropdown/utils/get-style.js +0 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -16,11 +16,11 @@ const bg = {
|
|
|
16
16
|
danger: colors.red.dark,
|
|
17
17
|
},
|
|
18
18
|
disabled: {
|
|
19
|
-
primary: colors.greyScale[
|
|
20
|
-
secondary: colors.greyScale[
|
|
19
|
+
primary: colors.greyScale[20],
|
|
20
|
+
secondary: colors.greyScale[20],
|
|
21
21
|
ghost: "transparent",
|
|
22
22
|
text: "transparent",
|
|
23
|
-
danger: colors.greyScale[
|
|
23
|
+
danger: colors.greyScale[20],
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
const text = {
|
|
@@ -39,11 +39,11 @@ const text = {
|
|
|
39
39
|
danger: colors.static.white,
|
|
40
40
|
},
|
|
41
41
|
disabled: {
|
|
42
|
-
primary: colors.greyScale[
|
|
43
|
-
secondary: colors.greyScale[
|
|
42
|
+
primary: colors.greyScale[10],
|
|
43
|
+
secondary: colors.greyScale[10],
|
|
44
44
|
ghost: colors.greyScale[20],
|
|
45
45
|
text: colors.greyScale[20],
|
|
46
|
-
danger: colors.greyScale[
|
|
46
|
+
danger: colors.greyScale[10],
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
49
|
const border = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/CheckIcon/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ui";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/CheckIcon/ui/index.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,SAAS,GAAI,UAAU,KAAK,4CAcxC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
export const CheckIcon = ({ size }) => {
|
|
4
|
+
return (_jsx("svg", { width: size * (11 / 20), height: size * (8 / 20), viewBox: "0 0 11 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M3.5625 7.51562L0 3.95313L0.890625 3.0625L3.5625 5.73437L9.29688 0L10.1875 0.890625L3.5625 7.51562Z", fill: "white" }) }));
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Checkbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Checkbox/types/props.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Checkbox/ui/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,eAAO,MAAM,QAAQ,GAAI,6BAAkC,aAAa,4CASvE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { CheckIcon } from "../../CheckIcon";
|
|
4
|
+
import * as S from "./style";
|
|
5
|
+
export const Checkbox = ({ checked, onChange, size = 20 }) => {
|
|
6
|
+
return (_jsx(S.Container, { "$size": size, "$checked": checked, onClick: () => onChange(!checked), children: checked && _jsx(CheckIcon, { size: size }) }));
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
} & {
|
|
5
|
+
$size: number;
|
|
6
|
+
$checked: boolean;
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/Checkbox/ui/style.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;WAAuB,MAAM;cAAY,OAAO;yGAUrE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { colors } from "@bds-web/colors";
|
|
2
|
+
import { shapes } from "@bds-web/shapes";
|
|
3
|
+
import styled from "@emotion/styled";
|
|
4
|
+
export const Container = styled.div `
|
|
5
|
+
width: ${({ $size }) => $size}px;
|
|
6
|
+
height: ${({ $size }) => $size}px;
|
|
7
|
+
border: 1px solid ${colors.blue.light};
|
|
8
|
+
border-radius: ${shapes.small};
|
|
9
|
+
background-color: ${({ $checked }) => $checked ? colors.blue.light : "transparent"};
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-style.d.ts","sourceRoot":"","sources":["../../../src/Dropdown/utils/get-style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-style.d.ts","sourceRoot":"","sources":["../../../src/Dropdown/utils/get-style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AA2B9C,eAAO,MAAM,QAAQ,GAAI,MAAM,YAAY,8CAE1C,CAAA"}
|
|
@@ -3,21 +3,18 @@ import { colors } from "@bds-web/colors";
|
|
|
3
3
|
import { typoCss } from "@bds-web/typography";
|
|
4
4
|
const map = {
|
|
5
5
|
small: css `
|
|
6
|
-
min-width: 98px;
|
|
7
6
|
border: 1px solid ${colors.greyScale[20]};
|
|
8
7
|
background-color: ${colors.static.white};
|
|
9
8
|
height: 28px;
|
|
10
9
|
${typoCss("Body")};
|
|
11
10
|
`,
|
|
12
11
|
medium: css `
|
|
13
|
-
min-width: 152px;
|
|
14
12
|
box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.05);
|
|
15
13
|
background-color: ${colors.static.white};
|
|
16
14
|
height: 36px;
|
|
17
15
|
${typoCss("Body")};
|
|
18
16
|
`,
|
|
19
17
|
large: css `
|
|
20
|
-
min-width: 164px;
|
|
21
18
|
box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.05);
|
|
22
19
|
background-color: ${colors.static.white};
|
|
23
20
|
height: 48px;
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
package/dist/index.js
CHANGED