nectiasw 0.0.67 → 0.0.69

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.
@@ -11,6 +11,7 @@ export type CheckboxProps = {
11
11
  name?: string;
12
12
  label?: string;
13
13
  value?: string;
14
+ filter?: boolean;
14
15
  checked?: boolean;
15
16
  disabled?: boolean;
16
17
  className?: string;
@@ -4,3 +4,12 @@ export declare const StyledCheckbox: import('styled-components/dist/types').ISty
4
4
  ref?: ((instance: HTMLInputElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLInputElement> | null | undefined;
5
5
  }>, never>, never>> & string;
6
6
  export declare const CheckboxIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react-icons/lib').IconBaseProps, CheckboxIconProps>> & string & Omit<import('react-icons/lib').IconType, keyof import('react').Component<any, {}, any>>;
7
+ export declare const CheckboxIconFilter: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
8
+ title?: string;
9
+ titleId?: string;
10
+ } & import('react').RefAttributes<SVGSVGElement>, "ref"> & {
11
+ ref?: ((instance: SVGSVGElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<SVGSVGElement> | null | undefined;
12
+ }, CheckboxIconProps>> & string & Omit<import('react').ForwardRefExoticComponent<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
13
+ title?: string;
14
+ titleId?: string;
15
+ } & import('react').RefAttributes<SVGSVGElement>>, keyof import('react').Component<any, {}, any>>;
@@ -13,6 +13,7 @@ export type Option = {
13
13
  history?: string;
14
14
  };
15
15
  export type SelectProps = {
16
+ icon?: React.JSX.Element;
16
17
  disabled?: boolean;
17
18
  options?: Option[];
18
19
  devtools?: boolean;
package/dist/index.es.js CHANGED
@@ -18980,70 +18980,6 @@ function IconBase(props) {
18980
18980
  function HiOutlineCheck(props) {
18981
18981
  return GenIcon({ "tag": "svg", "attr": { "fill": "none", "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "strokeLinecap": "round", "strokeLinejoin": "round", "d": "M5 13l4 4L19 7" }, "child": [] }] })(props);
18982
18982
  }
18983
- const StyledCheckbox = styled.input.attrs({ type: "checkbox" })`
18984
- appearance: none;
18985
- border: 2px solid #939799;
18986
- background-color: #f3f3f3;
18987
- /* add styles for checked state */
18988
- &:checked {
18989
- background-color: #316772;
18990
- border-color: #316772;
18991
- }
18992
-
18993
- /* add styles for disabled state */
18994
- &:disabled {
18995
- opacity: 0.7;
18996
- cursor: not-allowed;
18997
- }
18998
- transition: background-color 0.2s linear, border-color 0.2s linear;
18999
- `;
19000
- const CheckboxIcon = styled(HiOutlineCheck)`
19001
- position: absolute;
19002
- left: ${(props) => props.left};
19003
- top: ${(props) => props.top ?? "50%"};
19004
- right: ${(props) => props.right ?? "0.125rem"};
19005
- transform: translateY(-50%);
19006
- color: ${(props) => props.status ? "#FFFFFF" : "transparent"};
19007
- margin: 0;
19008
- padding: 0;
19009
- z-index: 1;
19010
- font-size: 20px;
19011
- transition: color 0.2s linear;
19012
- `;
19013
- StyledCheckbox.defaultProps = {
19014
- type: "checkbox"
19015
- };
19016
- const Checkbox = ({
19017
- id,
19018
- top,
19019
- left,
19020
- right,
19021
- name,
19022
- label,
19023
- checked,
19024
- disabled,
19025
- onChange: onChange2,
19026
- className
19027
- }) => {
19028
- const handleClick = () => {
19029
- onChange2 == null ? void 0 : onChange2(!checked);
19030
- };
19031
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx$1(classes$l.container.root, className && className), children: [
19032
- /* @__PURE__ */ jsxRuntimeExports.jsx(
19033
- StyledCheckbox,
19034
- {
19035
- id,
19036
- name,
19037
- checked,
19038
- disabled,
19039
- onClick: handleClick,
19040
- className: classes$l.container.input
19041
- }
19042
- ),
19043
- /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIcon, { top, right, left, status: checked, onClick: handleClick }),
19044
- label && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: id, className: classes$l.container.label, children: label })
19045
- ] });
19046
- };
19047
18983
  function ChevronDownIcon({
19048
18984
  title,
19049
18985
  titleId,
@@ -19065,7 +19001,7 @@ function ChevronDownIcon({
19065
19001
  clipRule: "evenodd"
19066
19002
  }));
19067
19003
  }
19068
- const ForwardRef$n = /* @__PURE__ */ React.forwardRef(ChevronDownIcon);
19004
+ const ForwardRef$o = /* @__PURE__ */ React.forwardRef(ChevronDownIcon);
19069
19005
  function ChevronLeftIcon({
19070
19006
  title,
19071
19007
  titleId,
@@ -19087,7 +19023,7 @@ function ChevronLeftIcon({
19087
19023
  clipRule: "evenodd"
19088
19024
  }));
19089
19025
  }
19090
- const ForwardRef$m = /* @__PURE__ */ React.forwardRef(ChevronLeftIcon);
19026
+ const ForwardRef$n = /* @__PURE__ */ React.forwardRef(ChevronLeftIcon);
19091
19027
  function ChevronRightIcon({
19092
19028
  title,
19093
19029
  titleId,
@@ -19109,7 +19045,7 @@ function ChevronRightIcon({
19109
19045
  clipRule: "evenodd"
19110
19046
  }));
19111
19047
  }
19112
- const ForwardRef$l = /* @__PURE__ */ React.forwardRef(ChevronRightIcon);
19048
+ const ForwardRef$m = /* @__PURE__ */ React.forwardRef(ChevronRightIcon);
19113
19049
  function ChevronUpIcon({
19114
19050
  title,
19115
19051
  titleId,
@@ -19131,7 +19067,127 @@ function ChevronUpIcon({
19131
19067
  clipRule: "evenodd"
19132
19068
  }));
19133
19069
  }
19134
- const ForwardRef$k = /* @__PURE__ */ React.forwardRef(ChevronUpIcon);
19070
+ const ForwardRef$l = /* @__PURE__ */ React.forwardRef(ChevronUpIcon);
19071
+ function MinusIcon({
19072
+ title,
19073
+ titleId,
19074
+ ...props
19075
+ }, svgRef) {
19076
+ return /* @__PURE__ */ React.createElement("svg", Object.assign({
19077
+ xmlns: "http://www.w3.org/2000/svg",
19078
+ viewBox: "0 0 20 20",
19079
+ fill: "currentColor",
19080
+ "aria-hidden": "true",
19081
+ "data-slot": "icon",
19082
+ ref: svgRef,
19083
+ "aria-labelledby": titleId
19084
+ }, props), title ? /* @__PURE__ */ React.createElement("title", {
19085
+ id: titleId
19086
+ }, title) : null, /* @__PURE__ */ React.createElement("path", {
19087
+ fillRule: "evenodd",
19088
+ d: "M4 10a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 10Z",
19089
+ clipRule: "evenodd"
19090
+ }));
19091
+ }
19092
+ const ForwardRef$k = /* @__PURE__ */ React.forwardRef(MinusIcon);
19093
+ const StyledCheckbox = styled.input.attrs({ type: "checkbox" })`
19094
+ appearance: none;
19095
+ border: 2px solid #939799;
19096
+ background-color: #f3f3f3;
19097
+ /* add styles for checked state */
19098
+ &:checked {
19099
+ background-color: #316772;
19100
+ border-color: #316772;
19101
+ }
19102
+
19103
+ /* add styles for disabled state */
19104
+ &:disabled {
19105
+ opacity: 0.7;
19106
+ cursor: not-allowed;
19107
+ }
19108
+ transition: background-color 0.2s linear, border-color 0.2s linear;
19109
+ `;
19110
+ const CheckboxIcon = styled(HiOutlineCheck)`
19111
+ position: absolute;
19112
+ left: ${(props) => props.left};
19113
+ top: ${(props) => props.top ?? "50%"};
19114
+ right: ${(props) => props.right ?? "0.125rem"};
19115
+ transform: translateY(-50%);
19116
+ color: ${(props) => props.status ? "#FFFFFF" : "transparent"};
19117
+ margin: 0;
19118
+ padding: 0;
19119
+ z-index: 1;
19120
+ font-size: 20px;
19121
+ transition: color 0.2s linear;
19122
+ `;
19123
+ const CheckboxIconFilter = styled(ForwardRef$k)`
19124
+ position: absolute;
19125
+ left: ${(props) => props.left};
19126
+ top: ${(props) => props.top ?? "50%"};
19127
+ right: ${(props) => props.right ?? "0.125rem"};
19128
+ transform: translateY(-50%);
19129
+ color: ${(props) => props.status ? "#FFFFFF" : "transparent"};
19130
+ margin: 0;
19131
+ padding: 0;
19132
+ z-index: 1;
19133
+ font-size: 20px;
19134
+ transition: color 0.2s linear;
19135
+ `;
19136
+ StyledCheckbox.defaultProps = {
19137
+ type: "checkbox"
19138
+ };
19139
+ const Checkbox = ({
19140
+ id,
19141
+ top,
19142
+ left,
19143
+ right,
19144
+ name,
19145
+ label,
19146
+ filter: filter2,
19147
+ checked,
19148
+ disabled,
19149
+ onChange: onChange2,
19150
+ className
19151
+ }) => {
19152
+ const handleClick = () => {
19153
+ if (disabled) {
19154
+ return;
19155
+ }
19156
+ onChange2 == null ? void 0 : onChange2(!checked);
19157
+ };
19158
+ if (filter2) {
19159
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx$1(classes$l.container.root, className && className), children: [
19160
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19161
+ StyledCheckbox,
19162
+ {
19163
+ id,
19164
+ name,
19165
+ checked,
19166
+ disabled,
19167
+ onClick: handleClick,
19168
+ className: classes$l.container.input
19169
+ }
19170
+ ),
19171
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIconFilter, { top, right, left, status: checked, onClick: handleClick }),
19172
+ label && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: id, className: classes$l.container.label, children: label })
19173
+ ] });
19174
+ }
19175
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx$1(classes$l.container.root, className && className), children: [
19176
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19177
+ StyledCheckbox,
19178
+ {
19179
+ id,
19180
+ name,
19181
+ checked,
19182
+ disabled,
19183
+ onClick: handleClick,
19184
+ className: classes$l.container.input
19185
+ }
19186
+ ),
19187
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIcon, { top, right, left, status: checked, onClick: handleClick }),
19188
+ label && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: id, className: classes$l.container.label, children: label })
19189
+ ] });
19190
+ };
19135
19191
  const classes$k = {
19136
19192
  container: {
19137
19193
  root: "relative inline-block text-left",
@@ -19199,7 +19255,7 @@ const Dropdown$1 = React__default.memo(
19199
19255
  switch (orientation2) {
19200
19256
  case "top":
19201
19257
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
19202
- ForwardRef$k,
19258
+ ForwardRef$l,
19203
19259
  {
19204
19260
  className: classes$k.container.chevron,
19205
19261
  "aria-hidden": "true"
@@ -19207,7 +19263,7 @@ const Dropdown$1 = React__default.memo(
19207
19263
  );
19208
19264
  case "left":
19209
19265
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
19210
- ForwardRef$m,
19266
+ ForwardRef$n,
19211
19267
  {
19212
19268
  className: classes$k.container.chevron,
19213
19269
  "aria-hidden": "true"
@@ -19215,7 +19271,7 @@ const Dropdown$1 = React__default.memo(
19215
19271
  );
19216
19272
  case "right":
19217
19273
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
19218
- ForwardRef$l,
19274
+ ForwardRef$m,
19219
19275
  {
19220
19276
  className: classes$k.container.chevron,
19221
19277
  "aria-hidden": "true"
@@ -19223,7 +19279,7 @@ const Dropdown$1 = React__default.memo(
19223
19279
  );
19224
19280
  case "bottom":
19225
19281
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
19226
- ForwardRef$n,
19282
+ ForwardRef$o,
19227
19283
  {
19228
19284
  className: classes$k.container.chevron,
19229
19285
  "aria-hidden": "true"
@@ -26184,6 +26240,7 @@ const ForwardRef = /* @__PURE__ */ React.forwardRef(XMarkIcon);
26184
26240
  const Select = React__default.memo(
26185
26241
  (props) => {
26186
26242
  const {
26243
+ icon,
26187
26244
  time,
26188
26245
  value,
26189
26246
  size,
@@ -40847,7 +40904,7 @@ const Collapse = React__default.memo(
40847
40904
  open ? classes$b.icon.root : classes$b.icon.container
40848
40905
  ),
40849
40906
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
40850
- ForwardRef$n,
40907
+ ForwardRef$o,
40851
40908
  {
40852
40909
  className: clsx$1(
40853
40910
  classes$b.icon.size,
@@ -40886,7 +40943,7 @@ const Collapse = React__default.memo(
40886
40943
  open ? classes$b.icon.root : classes$b.icon.container
40887
40944
  ),
40888
40945
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
40889
- ForwardRef$n,
40946
+ ForwardRef$o,
40890
40947
  {
40891
40948
  className: clsx$1(
40892
40949
  classes$b.icon.size,
@@ -40918,7 +40975,7 @@ const Collapse = React__default.memo(
40918
40975
  open ? classes$b.icon.root : classes$b.icon.container
40919
40976
  ),
40920
40977
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
40921
- ForwardRef$n,
40978
+ ForwardRef$o,
40922
40979
  {
40923
40980
  className: clsx$1(
40924
40981
  classes$b.icon.size,
@@ -59327,7 +59384,7 @@ const Menu2 = (props) => {
59327
59384
  }
59328
59385
  ),
59329
59386
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick: handleSeeDetails, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
59330
- ForwardRef$n,
59387
+ ForwardRef$o,
59331
59388
  {
59332
59389
  className: clsx$1(
59333
59390
  show ? classes$1.open : classes$1.close,
@@ -59518,7 +59575,7 @@ const Timeline = ({ events }) => {
59518
59575
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes.timeline.button.category, children: event.category })
59519
59576
  ] }),
59520
59577
  /* @__PURE__ */ jsxRuntimeExports.jsx(
59521
- ForwardRef$n,
59578
+ ForwardRef$o,
59522
59579
  {
59523
59580
  className: classes.chevronIcon(isCurrentCategoryOpen)
59524
59581
  }
@@ -61180,7 +61237,7 @@ const Dragarea = React__default.memo(
61180
61237
  " "
61181
61238
  ] })
61182
61239
  ] }),
61183
- renderBelowFilename && /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { paddingY: 2, children: renderBelowFilename }),
61240
+ renderBelowFilename && renderBelowFilename,
61184
61241
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Message, { children: [
61185
61242
  text.filter(Boolean).map((msg) => /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: msg }, msg)),
61186
61243
  renderContent && renderContent