lawgic-dev-kit 0.19.2 → 0.20.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 (29) hide show
  1. package/dist/_virtual/index2.js +3 -2
  2. package/dist/_virtual/index3.js +3 -3
  3. package/dist/_virtual/index4.js +5 -3
  4. package/dist/_virtual/index5.js +2 -5
  5. package/dist/components/atoms/ClickAwayListener/ClickAwayListener.d.ts +4 -0
  6. package/dist/components/atoms/ClickAwayListener/ClickAwayListener.js +43 -0
  7. package/dist/components/atoms/ClickAwayListener/ClickAwayListener.types.d.ts +7 -0
  8. package/dist/components/atoms/ClickAwayListener/index.d.ts +1 -0
  9. package/dist/components/atoms/FilterPill/FilterPill.js +158 -0
  10. package/dist/components/atoms/index.d.ts +2 -0
  11. package/dist/components/molecules/FiltersMenu/FiltersMenu.js +49 -0
  12. package/dist/components/molecules/FloatingMenu/FloatingMenu.js +42 -34
  13. package/dist/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +1 -0
  14. package/dist/components/molecules/SideModal/SideModal.d.ts +4 -0
  15. package/dist/components/molecules/SideModal/SideModal.js +97 -0
  16. package/dist/components/molecules/SideModal/SideModal.types.d.ts +10 -0
  17. package/dist/components/molecules/SideModal/index.d.ts +1 -0
  18. package/dist/components/molecules/index.d.ts +2 -0
  19. package/dist/index.js +89 -81
  20. package/dist/lawgic-dev-kit.css +1 -1
  21. package/dist/lawgic-dev-kit.umd.js +53 -50
  22. package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +15 -5
  23. package/dist/node_modules/prop-types/index.js +1 -1
  24. package/dist/node_modules/yup/index.esm.js +3 -3
  25. package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.d.ts +4 -0
  26. package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.types.d.ts +7 -0
  27. package/dist/src/components/atoms/ClickAwayListener/index.d.ts +1 -0
  28. package/dist/src/components/atoms/index.d.ts +42 -0
  29. package/package.json +1 -1
@@ -12,6 +12,10 @@ const o = {
12
12
  iconName: "cloud-arrow-up",
13
13
  icon: [640, 512, [62338, "cloud-upload", "cloud-upload-alt"], "f0ee", "M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"]
14
14
  }, l = c, a = {
15
+ prefix: "far",
16
+ iconName: "filter",
17
+ icon: [512, 512, [], "f0b0", "M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]
18
+ }, f = {
15
19
  prefix: "far",
16
20
  iconName: "circle-info",
17
21
  icon: [512, 512, ["info-circle"], "f05a", "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]
@@ -19,21 +23,27 @@ const o = {
19
23
  prefix: "far",
20
24
  iconName: "chevron-down",
21
25
  icon: [512, 512, [], "f078", "M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]
22
- }, f = {
26
+ }, r = {
27
+ prefix: "far",
28
+ iconName: "bars-filter",
29
+ icon: [448, 512, [], "e0ad", "M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM64 248c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 272c-13.3 0-24-10.7-24-24zM288 408c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24z"]
30
+ }, e = {
23
31
  prefix: "far",
24
32
  iconName: "check",
25
33
  icon: [448, 512, [10003, 10004], "f00c", "M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]
26
- }, e = {
34
+ }, i = {
27
35
  prefix: "far",
28
36
  iconName: "x",
29
37
  icon: [384, 512, [120], "58", "M378.4 71.4c8.5-10.1 7.2-25.3-2.9-33.8s-25.3-7.2-33.8 2.9L192 218.7 42.4 40.6C33.9 30.4 18.7 29.1 8.6 37.6S-2.9 61.3 5.6 71.4L160.7 256 5.6 440.6c-8.5 10.2-7.2 25.3 2.9 33.8s25.3 7.2 33.8-2.9L192 293.3 341.6 471.4c8.5 10.2 23.7 11.5 33.8 2.9s11.5-23.7 2.9-33.8L223.3 256l155-184.6z"]
30
38
  };
31
39
  export {
32
- f as faCheck,
40
+ r as faBarsFilter,
41
+ e as faCheck,
33
42
  n as faChevronDown,
34
43
  o as faChevronUp,
35
- a as faCircleInfo,
44
+ f as faCircleInfo,
36
45
  c as faCloudArrowUp,
37
46
  l as faCloudUpload,
38
- e as faX
47
+ a as faFilter,
48
+ i as faX
39
49
  };
@@ -1,4 +1,4 @@
1
- import { __module as r } from "../../_virtual/index2.js";
1
+ import { __module as r } from "../../_virtual/index5.js";
2
2
  import { __require as s } from "./node_modules/react-is/index.js";
3
3
  import { __require as t } from "./factoryWithTypeCheckers.js";
4
4
  import { __require as p } from "./factoryWithThrowingShims.js";
@@ -1,6 +1,6 @@
1
- import { p as v } from "../../_virtual/index3.js";
2
- import { t as U } from "../../_virtual/index4.js";
3
- import oe from "../../_virtual/index5.js";
1
+ import { p as v } from "../../_virtual/index2.js";
2
+ import { t as U } from "../../_virtual/index3.js";
3
+ import oe from "../../_virtual/index4.js";
4
4
  const ce = Object.prototype.toString, he = Error.prototype.toString, fe = RegExp.prototype.toString, de = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", pe = /^Symbol\((.*)\)(.*)$/;
5
5
  function me(n) {
6
6
  return n != +n ? "NaN" : n === 0 && 1 / n < 0 ? "-0" : "" + n;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ClickAwayListenerProps } from './ClickAwayListener.types';
3
+ declare const ClickAwayListener: React.FC<ClickAwayListenerProps>;
4
+ export default ClickAwayListener;
@@ -0,0 +1,7 @@
1
+ export interface ClickAwayListenerProps {
2
+ children: React.ReactNode;
3
+ onClickAway: () => void;
4
+ enabled?: boolean;
5
+ mouseEvent?: 'onClick' | 'onMouseDown' | 'onMouseUp';
6
+ touchEvent?: 'onTouchStart' | 'onTouchEnd';
7
+ }
@@ -0,0 +1 @@
1
+ export { default as ClickAwayListener } from './ClickAwayListener';
@@ -0,0 +1,42 @@
1
+ export * from "./ActionButton/index";
2
+ export * from "./ActionButton/index";
3
+ export * from "./AsyncToast/index";
4
+ export * from "./Avatar/index";
5
+ export * from "./BoxContainer/index";
6
+ export * from "./Button/index";
7
+ export * from "./CenterModal/index";
8
+ export * from "./Checkbox/index";
9
+ export * from "./CountryInput/index";
10
+ export * from "./CountryLabel/index";
11
+ export * from "./CountrySelectInput/index";
12
+ export * from "./Divider/index";
13
+ export * from "./IconButton/index";
14
+ export * from "./ImageProfileInput/index";
15
+ export * from "./IndexedStep/index";
16
+ export * from "./InfoCard/index";
17
+ export * from "./InformationDisclaimer/index";
18
+ export * from "./LoadingSpinner/index";
19
+ export * from "./PasswordInput/index";
20
+ export * from "./PhoneInput/index";
21
+ export * from "./ProgressBar/index";
22
+ export * from "./SearchBar/index";
23
+ export * from "./SectionButton/index";
24
+ export * from "./SelectInput/index";
25
+ export * from "./SidebarButton/index";
26
+ export * from "./Tab/index";
27
+ export * from "./TextButton/index";
28
+ export * from "./TextInput/index";
29
+ export * from "./TextStaticInput/index";
30
+ export * from "./Toast/index";
31
+ export * from "./UncontrolledSelector/index";
32
+ export * from "./UncontrolledTextInput/index";
33
+ export * from "./UploadContainer/index";
34
+ export * from "./Tooltip/index";
35
+ export * from "./LoadingProgress/index";
36
+ export * from "./ThresholdCircleProgress/index";
37
+ export * from "./ThresholdProgressBar/index";
38
+ export * from "./CircleProgress/index";
39
+ export * from "./Switch/index";
40
+ export * from "./Pill/index";
41
+ export * from "./FilterPill/index";
42
+ export * from "./ClickAwayListener/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lawgic-dev-kit",
3
- "version": "0.19.2",
3
+ "version": "0.20.0",
4
4
  "description": "Componentes de UI para Lawgic",
5
5
  "type": "module",
6
6
  "private": false,