gasp-components 1.0.17 → 1.0.18

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.
@@ -2,6 +2,7 @@
2
2
  export interface CheckListItemProps {
3
3
  children: React.ReactNode | string;
4
4
  checked?: boolean;
5
+ rejected?: boolean;
5
6
  onClick?: () => void;
6
7
  }
7
8
  export declare const CheckListItem: React.FC<CheckListItemProps>;
@@ -1,24 +1,36 @@
1
- import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import { Space as c } from "antd";
3
- import i from "../../icons/check-icon/index.js";
4
- const n = ({
5
- children: r,
6
- checked: o = !1,
7
- onClick: e
8
- }) => /* @__PURE__ */ s(
9
- c,
1
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
+ import { Space as l } from "antd";
3
+ import c from "../../icons/check-icon/index.js";
4
+ import m from "classnames";
5
+ import a from "../../icons/close-outlined-icon/index.js";
6
+ const u = ({
7
+ children: e,
8
+ checked: s = !1,
9
+ rejected: r = !1,
10
+ onClick: t
11
+ }) => /* @__PURE__ */ i(
12
+ l,
10
13
  {
11
14
  className: "hover:cursor-pointer",
12
15
  size: 18,
13
16
  align: "start",
14
- onClick: e,
17
+ onClick: t,
15
18
  children: [
16
- /* @__PURE__ */ t(i, { color: o ? "#42C75E" : void 0 }),
17
- r
19
+ r && /* @__PURE__ */ o(
20
+ "div",
21
+ {
22
+ className: m(
23
+ "bg-coral h-6 w-6 rounded-full flex items-center justify-center"
24
+ ),
25
+ children: /* @__PURE__ */ o(a, { color: "white" })
26
+ }
27
+ ),
28
+ !r && /* @__PURE__ */ o(c, { color: s ? "#42C75E" : void 0 }),
29
+ e
18
30
  ]
19
31
  }
20
32
  );
21
33
  export {
22
- n as CheckListItem,
23
- n as default
34
+ u as CheckListItem,
35
+ u as default
24
36
  };
@@ -1,6 +1,7 @@
1
1
  import { CheckListItemProps } from "./checklist-item";
2
2
  interface CheckListProps {
3
3
  checked?: CheckListItemProps["checked"];
4
+ rejected?: CheckListItemProps['rejected'];
4
5
  onClick?: CheckListItemProps["onClick"];
5
6
  content: CheckListItemProps["children"];
6
7
  }
@@ -1,2 +1,5 @@
1
- declare const CloseOutlinedIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import React from "react";
2
+ declare const CloseOutlinedIcon: React.FC<{
3
+ color?: string;
4
+ }>;
2
5
  export default CloseOutlinedIcon;
@@ -1,5 +1,7 @@
1
- import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- const r = () => /* @__PURE__ */ t(
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ const r = ({
3
+ color: t = "#64748B"
4
+ }) => /* @__PURE__ */ o(
3
5
  "svg",
4
6
  {
5
7
  width: "12",
@@ -8,21 +10,21 @@ const r = () => /* @__PURE__ */ t(
8
10
  fill: "none",
9
11
  xmlns: "http://www.w3.org/2000/svg",
10
12
  children: [
11
- /* @__PURE__ */ o(
13
+ /* @__PURE__ */ e(
12
14
  "path",
13
15
  {
14
16
  d: "M1.05035 1.0498L10.9498 10.9493",
15
- stroke: "#64748B",
17
+ stroke: t,
16
18
  strokeWidth: "1.5",
17
19
  strokeLinecap: "round",
18
20
  strokeLinejoin: "round"
19
21
  }
20
22
  ),
21
- /* @__PURE__ */ o(
23
+ /* @__PURE__ */ e(
22
24
  "path",
23
25
  {
24
26
  d: "M10.9498 1.0498L1.05033 10.9493",
25
- stroke: "#64748B",
27
+ stroke: t,
26
28
  strokeWidth: "1.5",
27
29
  strokeLinecap: "round",
28
30
  strokeLinejoin: "round"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gasp-components",
3
3
  "private": false,
4
- "version": "1.0.17",
4
+ "version": "1.0.18",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm run storybook",