lawgic-dev-kit 0.9.6 → 0.10.2

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 (43) hide show
  1. package/dist/_virtual/index.js +5 -2
  2. package/dist/_virtual/index2.js +3 -5
  3. package/dist/_virtual/index3.js +3 -3
  4. package/dist/_virtual/index4.js +5 -3
  5. package/dist/_virtual/index5.js +2 -5
  6. package/dist/_virtual/index7.js +2 -2
  7. package/dist/_virtual/index8.js +2 -2
  8. package/dist/components/atoms/Avatar/Avatar.js +1 -1
  9. package/dist/components/atoms/CenterModal/CenterModal.js +4 -4
  10. package/dist/components/atoms/Checkbox/Checkbox.js +34 -0
  11. package/dist/components/atoms/CountryInput/CountryInput.js +255 -0
  12. package/dist/components/atoms/IndexedStep/IndexedStep.js +40 -0
  13. package/dist/components/atoms/SidebarButton/SidebarButton.d.ts +10 -0
  14. package/dist/components/atoms/SidebarButton/SidebarButton.js +49 -0
  15. package/dist/components/atoms/SidebarButton/index.d.ts +1 -10
  16. package/dist/components/atoms/TextStaticInput/TextStaticInput.js +12 -0
  17. package/dist/components/atoms/UploadContainer/UploadContainer.js +1 -1
  18. package/dist/components/atoms/index.d.ts +8 -5
  19. package/dist/components/molecules/AlertModal/AlertModal.js +4 -4
  20. package/dist/components/molecules/CalendarSelector/CalendarSelector.js +1 -1
  21. package/dist/components/molecules/DateInput/DateInput.js +1 -1
  22. package/dist/components/molecules/DialogModal/DialogModal.js +46 -45
  23. package/dist/components/molecules/FloatingMenu/FloatingMenu.js +1 -1
  24. package/dist/components/molecules/Tabs/Tabs.js +1 -1
  25. package/dist/index.js +114 -108
  26. package/dist/lawgic-dev-kit.css +1 -1
  27. package/dist/lawgic-dev-kit.umd.js +155 -132
  28. package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +5 -0
  29. package/dist/node_modules/@fortawesome/pro-solid-svg-icons/index.js +7 -2
  30. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +1 -1
  31. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  32. package/dist/node_modules/scheduler/index.js +1 -1
  33. package/dist/node_modules/toposort/index.js +1 -1
  34. package/dist/node_modules/yup/index.esm.js +3 -3
  35. package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +10 -0
  36. package/dist/src/components/atoms/SidebarButton/index.d.ts +1 -0
  37. package/dist/src/components/atoms/index.d.ts +33 -0
  38. package/dist/utils/modal.js +1 -1
  39. package/dist/utils/toast.js +1 -1
  40. package/package.json +1 -1
  41. package/dist/components/atoms/FullLogo/FullLogo.d.ts +0 -3
  42. package/dist/components/atoms/FullLogo/FullLogo.js +0 -21
  43. package/dist/components/atoms/FullLogo/index.d.ts +0 -1
@@ -11,8 +11,13 @@ const c = {
11
11
  prefix: "far",
12
12
  iconName: "chevron-down",
13
13
  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"]
14
+ }, n = {
15
+ prefix: "far",
16
+ iconName: "check",
17
+ 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"]
14
18
  };
15
19
  export {
20
+ n as faCheck,
16
21
  o as faChevronDown,
17
22
  c as faCircleInfo
18
23
  };
@@ -15,14 +15,19 @@ const c = {
15
15
  prefix: "fas",
16
16
  iconName: "plus",
17
17
  icon: [448, 512, [10133, 61543, "add"], "2b", "M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]
18
- }, a = {
18
+ }, f = {
19
19
  prefix: "fas",
20
20
  iconName: "chevron-left",
21
21
  icon: [320, 512, [9001], "f053", "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]
22
+ }, a = {
23
+ prefix: "fas",
24
+ iconName: "check",
25
+ icon: [448, 512, [10003, 10004], "f00c", "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]
22
26
  };
23
27
  export {
28
+ a as faCheck,
24
29
  s as faChevronDown,
25
- a as faChevronLeft,
30
+ f as faChevronLeft,
26
31
  c as faMagnifyingGlass,
27
32
  n as faPlus
28
33
  };
@@ -1,5 +1,5 @@
1
1
  import { parse as j, icon as F } from "../fontawesome-svg-core/index.js";
2
- import n from "../../../_virtual/index2.js";
2
+ import n from "../../../_virtual/index.js";
3
3
  import C from "react";
4
4
  function N(e, t) {
5
5
  var r = Object.keys(e);
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../../_virtual/index8.js";
1
+ import { __module as e } from "../../../../_virtual/index7.js";
2
2
  import { __require as o } from "./cjs/react-is.production.min.js";
3
3
  import { __require as t } from "./cjs/react-is.development.js";
4
4
  var r;
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../_virtual/index.js";
1
+ import { __module as e } from "../../_virtual/index5.js";
2
2
  import { __require as o } from "./cjs/scheduler.production.js";
3
3
  import { __require as u } from "./cjs/scheduler.development.js";
4
4
  var r;
@@ -1,4 +1,4 @@
1
- import { __module as w } from "../../_virtual/index7.js";
1
+ import { __module as w } from "../../_virtual/index8.js";
2
2
  var p;
3
3
  function x() {
4
4
  if (p) return w.exports;
@@ -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,10 @@
1
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
+ declare const SidebarButton: ({ active, icon, label, onClick, expanded, disabled, }: {
3
+ active: boolean;
4
+ icon: IconProp;
5
+ label: string;
6
+ onClick: () => void;
7
+ expanded: boolean;
8
+ disabled?: boolean;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ export default SidebarButton;
@@ -0,0 +1 @@
1
+ export { default as SidebarButton } from './SidebarButton';
@@ -0,0 +1,33 @@
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 './SelectDropdown/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';
@@ -7,8 +7,8 @@ import "react-dom";
7
7
  import "../contexts/themeContext.js";
8
8
  import m from "../components/atoms/CenterModal/CenterModal.js";
9
9
  import "react-hook-form";
10
- import "../components/atoms/ImageProfileInput/ImageProfileInput.validators.js";
11
10
  import "../constants/countries.js";
11
+ import "../components/atoms/ImageProfileInput/ImageProfileInput.validators.js";
12
12
  import w from "../components/molecules/DialogModal/DialogModal.js";
13
13
  const k = () => {
14
14
  const [p, t] = l([]), n = a([]), s = d((e) => {
@@ -6,9 +6,9 @@ import { useState as p, useEffect as j } from "react";
6
6
  import "../_virtual/lodash.js";
7
7
  import "../contexts/themeContext.js";
8
8
  import "react-hook-form";
9
+ import "../constants/countries.js";
9
10
  import "../components/atoms/ImageProfileInput/ImageProfileInput.validators.js";
10
11
  import E from "../components/atoms/Toast/Toast.js";
11
- import "../constants/countries.js";
12
12
  const f = [];
13
13
  function u(t = "bottom-center") {
14
14
  var s;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lawgic-dev-kit",
3
- "version": "0.9.6",
3
+ "version": "0.10.2",
4
4
  "description": "Componentes de UI para Lawgic",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const FullLogo: React.FC<React.SVGProps<SVGSVGElement>>;
3
- export default FullLogo;
@@ -1,21 +0,0 @@
1
- import { j as c } from "../../../_virtual/jsx-runtime.js";
2
- const l = (h) => /* @__PURE__ */ c.jsx(
3
- "svg",
4
- {
5
- xmlns: "http://www.w3.org/2000/svg",
6
- width: 179,
7
- height: 35,
8
- fill: "none",
9
- ...h,
10
- children: /* @__PURE__ */ c.jsx(
11
- "path",
12
- {
13
- fill: "#4570EB",
14
- d: "M86.789 28.867c-1.447 0-2.772-.265-3.975-.795a9.122 9.122 0 0 1-3.057-2.232 8.568 8.568 0 0 1-1.803-3.148l2.598-1.07c.55 1.467 1.366 2.598 2.446 3.393 1.1.774 2.384 1.162 3.852 1.162.896 0 1.681-.143 2.354-.428.672-.286 1.192-.683 1.559-1.193.387-.53.58-1.14.58-1.834 0-.958-.275-1.712-.825-2.262-.53-.57-1.314-.999-2.354-1.284l-4.188-1.284c-1.65-.51-2.914-1.314-3.79-2.415-.877-1.1-1.315-2.364-1.315-3.79 0-1.244.295-2.334.886-3.272.612-.957 1.447-1.701 2.507-2.231 1.08-.55 2.303-.826 3.669-.826 1.365 0 2.598.245 3.699.734 1.12.49 2.068 1.152 2.843 1.987a7.691 7.691 0 0 1 1.712 2.813l-2.568 1.07c-.49-1.284-1.223-2.252-2.201-2.905-.979-.672-2.13-1.008-3.455-1.008-.815 0-1.538.142-2.17.428a3.184 3.184 0 0 0-1.437 1.192c-.326.51-.49 1.12-.49 1.834 0 .836.266 1.58.796 2.232.53.652 1.334 1.151 2.415 1.498l3.82 1.13c1.794.55 3.15 1.335 4.067 2.355.917 1.019 1.375 2.282 1.375 3.79 0 1.243-.326 2.344-.978 3.302-.632.958-1.518 1.712-2.66 2.262-1.12.53-2.425.795-3.912.795Zm11.6-.367V12.023h2.844V28.5h-2.844Zm0-19.106V5.725h2.844v3.669h-2.844Zm7.255 19.106V12.023h2.782v3.362l-.398-.52c.408-1.039 1.06-1.834 1.957-2.384.897-.55 1.905-.825 3.026-.825 1.284 0 2.436.356 3.455 1.07 1.039.713 1.752 1.65 2.14 2.812l-.795.03c.428-1.283 1.151-2.251 2.17-2.903a6.028 6.028 0 0 1 3.394-1.01c1.141 0 2.17.266 3.087.796a5.926 5.926 0 0 1 2.232 2.2c.55.938.825 1.998.825 3.18V28.5h-2.873v-9.752c0-.917-.163-1.691-.49-2.323a3.606 3.606 0 0 0-1.345-1.468c-.55-.366-1.202-.55-1.956-.55a3.69 3.69 0 0 0-1.987.55c-.571.347-1.029.846-1.376 1.498-.326.632-.489 1.396-.489 2.293V28.5h-2.874v-9.752c0-.917-.163-1.691-.489-2.323a3.606 3.606 0 0 0-1.345-1.468c-.55-.366-1.202-.55-1.956-.55a3.69 3.69 0 0 0-1.987.55c-.571.347-1.029.846-1.376 1.498-.326.632-.489 1.396-.489 2.293V28.5h-2.843Zm27.913 6.114V12.023h2.782v3.546l-.367-.703c.612-.979 1.447-1.753 2.507-2.324 1.06-.59 2.272-.886 3.638-.886 1.549 0 2.934.377 4.157 1.13a8.069 8.069 0 0 1 2.935 3.088c.713 1.284 1.07 2.752 1.07 4.403 0 1.61-.357 3.067-1.07 4.371a8.068 8.068 0 0 1-2.935 3.088c-1.223.754-2.619 1.13-4.188 1.13-1.325 0-2.537-.295-3.638-.886a6.185 6.185 0 0 1-2.506-2.506l.458-.49v9.63h-2.843Zm8.315-8.498c1.04 0 1.967-.255 2.782-.765a5.185 5.185 0 0 0 1.895-2.078c.469-.897.704-1.896.704-2.996 0-1.142-.235-2.14-.704-2.996a5.185 5.185 0 0 0-1.895-2.079c-.815-.53-1.742-.795-2.782-.795-1.039 0-1.977.255-2.812.764-.815.51-1.468 1.213-1.957 2.11-.468.876-.703 1.875-.703 2.996 0 1.1.235 2.099.703 2.995a5.65 5.65 0 0 0 1.957 2.08c.835.509 1.773.764 2.812.764Zm12.135 2.384V5.358h2.843V28.5h-2.843Zm14.836.367c-1.59 0-3.006-.377-4.25-1.131a8.065 8.065 0 0 1-2.934-3.088c-.714-1.325-1.07-2.802-1.07-4.433 0-1.65.346-3.118 1.039-4.402.713-1.284 1.671-2.292 2.874-3.026 1.223-.754 2.588-1.131 4.096-1.131 1.223 0 2.303.224 3.241.672a6.84 6.84 0 0 1 2.415 1.774 7.477 7.477 0 0 1 1.528 2.537 7.98 7.98 0 0 1 .55 2.934c0 .225-.02.48-.061.765-.02.265-.051.52-.091.764h-13.512v-2.446h11.861l-1.345 1.1c.183-1.059.081-2.006-.306-2.842a4.643 4.643 0 0 0-1.712-1.987c-.754-.49-1.61-.734-2.568-.734s-1.834.245-2.629.734c-.795.489-1.416 1.192-1.865 2.11-.428.896-.601 1.966-.519 3.21-.082 1.201.102 2.261.55 3.178a5.288 5.288 0 0 0 1.956 2.11c.856.489 1.784.733 2.782.733 1.101 0 2.028-.254 2.782-.764a6.011 6.011 0 0 0 1.834-1.956l2.385 1.222c-.326.755-.836 1.447-1.529 2.08-.672.61-1.477 1.1-2.415 1.467-.917.366-1.946.55-3.087.55ZM24.105 5.715h7.319v16.956h11.69V28.5h-19.01V5.715Zm31.958 0c7.97 0 11.955 3.798 11.955 11.393 0 7.595-3.985 11.392-11.955 11.392h-9.87V5.715h9.87Zm-2.55 17.32h2.417c3.07 0 4.604-1.644 4.604-4.934v-1.987c0-3.29-1.535-4.934-4.604-4.934h-2.417v11.856ZM5.94 23.162v5.36H.062v-4.521c0-.391.455-1.216.71-1.53.961-1.179 2.867-3.007 4.022-4.048.572-.515 1.108-.978 1.92-1.06 1.927-.196 4.165.139 6.127 0 3.93-.268 3.945-5.65-.061-5.928-1.784-.124-3.71.097-5.508 0-.629.061-1.078.396-1.303.993-.138 1.237.092 2.622-.026 3.837-.061.598-.409 1.025-1.022 1.092-.873.098-2.881.083-3.776 0C.56 17.306.12 16.93.063 16.327c-.087-.942-.082-2.858 0-3.806.041-.494.404-.953.905-1.02 1.067-.144 3.346.248 4.195-.138 1.583-.716.633-3.497.93-4.924.112-.536.648-.71 1.124-.798 4.2.082 8.057-.747 11.47 2.266 5.871 5.186 2.432 14.564-5.104 15.244H5.944l-.005.01Z"
15
- }
16
- )
17
- }
18
- );
19
- export {
20
- l as default
21
- };
@@ -1 +0,0 @@
1
- export { default as FullLogo } from './FullLogo';