lawgic-dev-kit 0.8.6 → 0.9.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/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/components/atoms/Avatar/Avatar.js +1 -1
- package/dist/components/atoms/Button/Button.js +1 -1
- package/dist/components/atoms/CountrySelectInput/CountryDropdown.js +1 -1
- package/dist/components/atoms/IconButton/IconButton.js +1 -1
- package/dist/components/atoms/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/atoms/PhoneInput/PhoneInput.js +1 -1
- package/dist/components/atoms/SelectDropdown/SelectDropdown.js +1 -1
- package/dist/components/atoms/TextButton/TextButton.js +1 -1
- package/dist/components/atoms/TextInput/TextInput.d.ts +1 -1
- package/dist/components/atoms/TextInput/TextInput.js +26 -25
- package/dist/components/atoms/TextInput/TextInput.types.d.ts +1 -0
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +1 -1
- package/dist/components/atoms/UploadContainer/UploadContainer.js +1 -1
- package/dist/components/molecules/AlertModal/AlertModal.js +1 -1
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +1 -1
- package/dist/components/molecules/DateInput/DateInput.js +1 -1
- package/dist/components/molecules/DialogModal/DialogModal.js +1 -1
- package/dist/components/molecules/Dropdown/Dropdown.js +1 -1
- package/dist/components/molecules/FileUpload/FileUpload.js +1 -1
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +1 -1
- package/dist/components/molecules/Stepper/Stepper.js +1 -1
- package/dist/components/molecules/Tabs/Tabs.js +1 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/themeContext.d.ts +3 -0
- package/dist/contexts/themeContext.js +6 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useTheme.d.ts +1 -0
- package/dist/hooks/useTheme.js +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +107 -105
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +14 -14
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/scheduler/index.js +1 -1
- package/dist/providers/ThemeProvider.d.ts +0 -3
- package/dist/providers/ThemeProvider.js +12 -15
- package/dist/src/components/atoms/TextInput/TextInput.d.ts +1 -1
- package/dist/src/contexts/index.d.ts +1 -0
- package/dist/src/contexts/themeContext.d.ts +3 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/useTheme.d.ts +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/providers/ThemeProvider.d.ts +0 -3
- package/dist/utils/modal.js +1 -1
- package/dist/utils/toast.js +1 -1
- package/package.json +9 -1
- package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +0 -11
- package/dist/src/components/atoms/ActionButton/index.d.ts +0 -1
- package/dist/src/components/atoms/AsyncToast/index.d.ts +0 -11
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +0 -11
- package/dist/src/components/atoms/Avatar/index.d.ts +0 -1
- package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +0 -4
- package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +0 -6
- package/dist/src/components/atoms/BoxContainer/index.d.ts +0 -1
- package/dist/src/components/atoms/Button/Button.d.ts +0 -4
- package/dist/src/components/atoms/Button/Button.styles.d.ts +0 -26
- package/dist/src/components/atoms/Button/Button.types.d.ts +0 -12
- package/dist/src/components/atoms/Button/index.d.ts +0 -1
- package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +0 -4
- package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +0 -5
- package/dist/src/components/atoms/CenterModal/index.d.ts +0 -1
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +0 -10
- package/dist/src/components/atoms/Checkbox/index.d.ts +0 -1
- package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +0 -4
- package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +0 -37
- package/dist/src/components/atoms/CountryInput/index.d.ts +0 -1
- package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +0 -6
- package/dist/src/components/atoms/CountryLabel/index.d.ts +0 -1
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +0 -4
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +0 -36
- package/dist/src/components/atoms/CountrySelectInput/index.d.ts +0 -1
- package/dist/src/components/atoms/Divider/Divider.d.ts +0 -7
- package/dist/src/components/atoms/Divider/index.d.ts +0 -1
- package/dist/src/components/atoms/FullLogo/FullLogo.d.ts +0 -3
- package/dist/src/components/atoms/FullLogo/index.d.ts +0 -1
- package/dist/src/components/atoms/IconButton/IconButton.d.ts +0 -4
- package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +0 -10
- package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +0 -11
- package/dist/src/components/atoms/IconButton/index.d.ts +0 -1
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +0 -4
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +0 -12
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +0 -9
- package/dist/src/components/atoms/ImageProfileInput/index.d.ts +0 -2
- package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +0 -9
- package/dist/src/components/atoms/IndexedStep/index.d.ts +0 -1
- package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +0 -3
- package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +0 -6
- package/dist/src/components/atoms/InfoCard/index.d.ts +0 -1
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.d.ts +0 -4
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +0 -2
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +0 -9
- package/dist/src/components/atoms/InformationDisclaimer/index.d.ts +0 -1
- package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -8
- package/dist/src/components/atoms/LoadingSpinner/index.d.ts +0 -1
- package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +0 -5
- package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +0 -11
- package/dist/src/components/atoms/PasswordInput/index.d.ts +0 -1
- package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +0 -4
- package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +0 -12
- package/dist/src/components/atoms/PhoneInput/index.d.ts +0 -1
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +0 -3
- package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +0 -4
- package/dist/src/components/atoms/ProgressBar/index.d.ts +0 -1
- package/dist/src/components/atoms/SearchBar/index.d.ts +0 -2
- package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +0 -12
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +0 -3
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +0 -1
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +0 -10
- package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +0 -2
- package/dist/src/components/atoms/SectionButton/index.d.ts +0 -1
- package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +0 -2
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +0 -3
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +0 -10
- package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +0 -2
- package/dist/src/components/atoms/SelectDropdown/SelectDropdown.d.ts +0 -4
- package/dist/src/components/atoms/SelectDropdown/SelectDropdown.types.d.ts +0 -24
- package/dist/src/components/atoms/SelectDropdown/index.d.ts +0 -1
- package/dist/src/components/atoms/SidebarButton/index.d.ts +0 -10
- package/dist/src/components/atoms/Tab/Tab.d.ts +0 -3
- package/dist/src/components/atoms/Tab/Tab.styles.d.ts +0 -6
- package/dist/src/components/atoms/Tab/Tab.types.d.ts +0 -10
- package/dist/src/components/atoms/Tab/index.d.ts +0 -1
- package/dist/src/components/atoms/TextButton/TextButton.d.ts +0 -4
- package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +0 -2
- package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +0 -6
- package/dist/src/components/atoms/TextButton/index.d.ts +0 -1
- package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +0 -11
- package/dist/src/components/atoms/TextInput/index.d.ts +0 -1
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +0 -3
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +0 -5
- package/dist/src/components/atoms/TextStaticInput/index.d.ts +0 -1
- package/dist/src/components/atoms/Toast/Toast.d.ts +0 -21
- package/dist/src/components/atoms/Toast/index.d.ts +0 -1
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +0 -16
- package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +0 -1
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +0 -4
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +0 -13
- package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +0 -1
- package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +0 -4
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +0 -32
- package/dist/src/components/atoms/UploadContainer/index.d.ts +0 -1
- package/dist/src/components/atoms/index.d.ts +0 -30
- package/dist/src/components/index.d.ts +0 -3
- package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +0 -3
- package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +0 -8
- package/dist/src/components/molecules/AlertModal/index.d.ts +0 -2
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +0 -9
- package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +0 -6
- package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +0 -7
- package/dist/src/components/molecules/CalendarSelector/index.d.ts +0 -1
- package/dist/src/components/molecules/DateInput/DateInput.d.ts +0 -11
- package/dist/src/components/molecules/DateInput/index.d.ts +0 -1
- package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +0 -3
- package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +0 -10
- package/dist/src/components/molecules/DialogModal/index.d.ts +0 -1
- package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +0 -3
- package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +0 -9
- package/dist/src/components/molecules/Dropdown/index.d.ts +0 -1
- package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +0 -4
- package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +0 -17
- package/dist/src/components/molecules/FileUpload/index.d.ts +0 -1
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +0 -4
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +0 -11
- package/dist/src/components/molecules/FloatingMenu/index.d.ts +0 -1
- package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +0 -7
- package/dist/src/components/molecules/IndexedStepper/index.d.ts +0 -1
- package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +0 -14
- package/dist/src/components/molecules/InformationContainer/index.d.ts +0 -1
- package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +0 -4
- package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +0 -5
- package/dist/src/components/molecules/SearchModal/index.d.ts +0 -1
- package/dist/src/components/molecules/Stepper/Stepper.d.ts +0 -3
- package/dist/src/components/molecules/Stepper/Stepper.types.d.ts +0 -7
- package/dist/src/components/molecules/Stepper/index.d.ts +0 -1
- package/dist/src/components/molecules/Tabs/Tabs.d.ts +0 -20
- package/dist/src/components/molecules/Tabs/index.d.ts +0 -1
- package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +0 -10
- package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +0 -1
- package/dist/src/components/molecules/index.d.ts +0 -10
- package/dist/src/components/organisms/index.d.ts +0 -1
- package/dist/src/constants/countries.d.ts +0 -30
- package/dist/src/providers/index.d.ts +0 -1
- package/dist/src/themes/default.d.ts +0 -2
- package/dist/src/themes/index.d.ts +0 -2
- package/dist/src/themes/types.d.ts +0 -6
- package/dist/src/types/baseModalProps.d.ts +0 -4
- package/dist/src/types/display.d.ts +0 -2
- package/dist/src/types/fileInfo.d.ts +0 -2
- package/dist/src/types/i18n.d.ts +0 -1
- package/dist/src/types/index.d.ts +0 -9
- package/dist/src/types/modal.d.ts +0 -31
- package/dist/src/types/modalType.d.ts +0 -1
- package/dist/src/types/navbarOption.d.ts +0 -7
- package/dist/src/types/sidebarOption.d.ts +0 -7
- package/dist/src/types/styleValues.d.ts +0 -4
- package/dist/src/types/toast.d.ts +0 -26
- package/dist/src/utils/dates.d.ts +0 -1
- package/dist/src/utils/files.d.ts +0 -8
- package/dist/src/utils/images.d.ts +0 -1
- package/dist/src/utils/index.d.ts +0 -7
- package/dist/src/utils/modal.d.ts +0 -10
- package/dist/src/utils/renderContentOptions.d.ts +0 -3
- package/dist/src/utils/strings.d.ts +0 -2
- package/dist/src/utils/toast.d.ts +0 -15
- package/dist/vite.config.d.ts +0 -2
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useState as W } from "react";
|
|
|
5
5
|
import { stringToColor as h } from "../../../utils/strings.js";
|
|
6
6
|
import { getImageUrl as E } from "../../../utils/images.js";
|
|
7
7
|
import "../../../_virtual/lodash.js";
|
|
8
|
-
import "../../../
|
|
8
|
+
import "../../../contexts/themeContext.js";
|
|
9
9
|
import "../ImageProfileInput/ImageProfileInput.validators.js";
|
|
10
10
|
import "../../../constants/countries.js";
|
|
11
11
|
import "react-dom";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as s } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { resolveButtonClasses as d } from "./Button.styles.js";
|
|
3
|
-
import { useTheme as i } from "../../../
|
|
3
|
+
import { useTheme as i } from "../../../hooks/useTheme.js";
|
|
4
4
|
import { FontAwesomeIcon as r } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
5
5
|
import { resolveIconClasses as m } from "../IconButton/IconButton.styles.js";
|
|
6
6
|
const h = ({
|
|
@@ -2,7 +2,7 @@ import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { useState as S, useRef as z, useEffect as J } from "react";
|
|
3
3
|
import { Controller as K } from "../../../node_modules/react-hook-form/dist/index.esm.js";
|
|
4
4
|
import { useFloating as Q, useClick as V, useDismiss as Z, useInteractions as ee, useTransitionStyles as te } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
5
|
-
import { useTheme as D } from "../../../
|
|
5
|
+
import { useTheme as D } from "../../../hooks/useTheme.js";
|
|
6
6
|
import { autoUpdate as oe } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
7
7
|
import { offset as se, flip as re, shift as le, size as ne, arrow as ae } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
8
8
|
const ge = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as s } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { FontAwesomeIcon as d } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
3
3
|
import { resolveIconButtonClasses as i, resolveIconClasses as p } from "./IconButton.styles.js";
|
|
4
|
-
import { useTheme as x } from "../../../
|
|
4
|
+
import { useTheme as x } from "../../../hooks/useTheme.js";
|
|
5
5
|
const b = ({
|
|
6
6
|
variant: t = "filled",
|
|
7
7
|
color: r,
|
|
@@ -3,7 +3,7 @@ import { useState as m } from "react";
|
|
|
3
3
|
import { useController as b } from "../../../node_modules/react-hook-form/dist/index.esm.js";
|
|
4
4
|
import { FontAwesomeIcon as w } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
5
5
|
import { faEye as y, faEyeSlash as j } from "../../../node_modules/@fortawesome/pro-light-svg-icons/index.js";
|
|
6
|
-
import { useTheme as $ } from "../../../
|
|
6
|
+
import { useTheme as $ } from "../../../hooks/useTheme.js";
|
|
7
7
|
const P = ({
|
|
8
8
|
label: u,
|
|
9
9
|
control: i,
|
|
@@ -4,7 +4,7 @@ import { useController as xe } from "../../../node_modules/react-hook-form/dist/
|
|
|
4
4
|
import { useFloating as be, useClick as we, useDismiss as Ce, useInteractions as ve, useTransitionStyles as je } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
5
5
|
import { FontAwesomeIcon as Ne } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
6
6
|
import { faChevronDown as ye } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
|
|
7
|
-
import { useTheme as Se } from "../../../
|
|
7
|
+
import { useTheme as Se } from "../../../hooks/useTheme.js";
|
|
8
8
|
import Le from "../../../constants/countries.js";
|
|
9
9
|
import { autoUpdate as Te } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
10
10
|
import { offset as Ie, flip as $e, shift as Ee, size as Oe, arrow as Pe } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
@@ -2,7 +2,7 @@ import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { useFloating as B, useClick as H, useDismiss as U, useInteractions as W, useTransitionStyles as Y } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
3
3
|
import { useState as b, useRef as k, useEffect as q } from "react";
|
|
4
4
|
import { Controller as G } from "../../../node_modules/react-hook-form/dist/index.esm.js";
|
|
5
|
-
import { useTheme as J } from "../../../
|
|
5
|
+
import { useTheme as J } from "../../../hooks/useTheme.js";
|
|
6
6
|
import { autoUpdate as K } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
7
7
|
import { offset as Q, flip as V, shift as X, size as Z, arrow as _ } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
8
8
|
const ie = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as n } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { resolveTextButtonClasses as u } from "./TextButton.styles.js";
|
|
3
|
-
import { useTheme as a } from "../../../
|
|
3
|
+
import { useTheme as a } from "../../../hooks/useTheme.js";
|
|
4
4
|
const c = ({
|
|
5
5
|
color: t,
|
|
6
6
|
children: o,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TextInputProps } from './TextInput.types';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
|
-
declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, ...props }: TextInputProps<T>) => React.ReactElement;
|
|
4
|
+
declare const TextInput: <T extends FieldValues = FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, rightSide, translateKey, ...props }: TextInputProps<T>) => React.ReactElement;
|
|
5
5
|
export default TextInput;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { j as r } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useController as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
const
|
|
2
|
+
import { useController as j } from "../../../node_modules/react-hook-form/dist/index.esm.js";
|
|
3
|
+
import { useTheme as w } from "../../../hooks/useTheme.js";
|
|
4
|
+
const C = ({
|
|
5
5
|
label: u,
|
|
6
6
|
control: d,
|
|
7
7
|
name: e,
|
|
8
8
|
placeholder: c,
|
|
9
9
|
className: g = "",
|
|
10
|
-
disabled:
|
|
11
|
-
leftSide:
|
|
12
|
-
rightSide:
|
|
10
|
+
disabled: t = !1,
|
|
11
|
+
leftSide: a,
|
|
12
|
+
rightSide: s,
|
|
13
|
+
translateKey: i = "",
|
|
13
14
|
...x
|
|
14
15
|
}) => {
|
|
15
16
|
const {
|
|
16
|
-
field: { value:
|
|
17
|
-
fieldState: { error:
|
|
18
|
-
} =
|
|
17
|
+
field: { value: n = "", onChange: f, ref: p, onBlur: b },
|
|
18
|
+
fieldState: { error: l }
|
|
19
|
+
} = j({ name: e, control: d }), { t: o } = w(), h = o(e), m = o(i);
|
|
19
20
|
return /* @__PURE__ */ r.jsxs(
|
|
20
21
|
"label",
|
|
21
22
|
{
|
|
22
|
-
className: `flex flex-col group gap-8 select-none ${
|
|
23
|
+
className: `flex flex-col group gap-8 select-none ${t && "cursor-not-allowed"} ${g}`,
|
|
23
24
|
htmlFor: e,
|
|
24
25
|
children: [
|
|
25
26
|
/* @__PURE__ */ r.jsx(
|
|
26
27
|
"h6",
|
|
27
28
|
{
|
|
28
|
-
className: `text-gray-600 font-600 group ${
|
|
29
|
+
className: `text-gray-600 font-600 group ${l && "text-red-500!"} text-label ${t && "text-gray-300"}`,
|
|
29
30
|
children: u
|
|
30
31
|
}
|
|
31
32
|
),
|
|
@@ -36,46 +37,46 @@ const v = ({
|
|
|
36
37
|
className: `
|
|
37
38
|
flex items-center justify-between gap-8 p-16
|
|
38
39
|
|
|
39
|
-
${
|
|
40
|
+
${l && "border-red-500!"}
|
|
40
41
|
|
|
41
42
|
bg-light
|
|
42
43
|
|
|
43
44
|
w-full h-full rounded-full border
|
|
44
45
|
|
|
45
|
-
${
|
|
46
|
-
${!
|
|
47
|
-
${
|
|
46
|
+
${n && !t ? "border-blue-200" : "border-blue-100"}
|
|
47
|
+
${!t && "group-hover:border-blue-300"}
|
|
48
|
+
${t && "cursor-not-allowed"}
|
|
48
49
|
|
|
49
50
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
50
51
|
|
|
51
52
|
group-disabled:bg-gray-500
|
|
52
53
|
`,
|
|
53
54
|
children: [
|
|
54
|
-
|
|
55
|
+
a && a,
|
|
55
56
|
/* @__PURE__ */ r.jsx(
|
|
56
57
|
"input",
|
|
57
58
|
{
|
|
58
59
|
id: e,
|
|
59
60
|
name: e,
|
|
60
|
-
disabled:
|
|
61
|
+
disabled: t,
|
|
61
62
|
placeholder: c,
|
|
62
|
-
value:
|
|
63
|
-
onChange: (
|
|
64
|
-
onBlur:
|
|
65
|
-
ref:
|
|
66
|
-
className: "group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-
|
|
63
|
+
value: n,
|
|
64
|
+
onChange: (y) => f(y.target.value),
|
|
65
|
+
onBlur: b,
|
|
66
|
+
ref: p,
|
|
67
|
+
className: "group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden",
|
|
67
68
|
...x
|
|
68
69
|
}
|
|
69
70
|
),
|
|
70
|
-
|
|
71
|
+
s && s
|
|
71
72
|
]
|
|
72
73
|
}
|
|
73
74
|
),
|
|
74
|
-
/* @__PURE__ */ r.jsx("h4", { className: "font-500 text-label text-red-500 leading-none", children: (
|
|
75
|
+
/* @__PURE__ */ r.jsx("h4", { className: "font-500 text-label text-red-500 leading-none", children: (l == null ? void 0 : l.message) && o(l.message, { x: m || h }) })
|
|
75
76
|
]
|
|
76
77
|
}
|
|
77
78
|
);
|
|
78
79
|
};
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
+
C as default
|
|
81
82
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { useState as g, useRef as $ } from "react";
|
|
3
3
|
import k from "../TextButton/TextButton.js";
|
|
4
|
-
import { useTheme as B } from "../../../
|
|
4
|
+
import { useTheme as B } from "../../../hooks/useTheme.js";
|
|
5
5
|
import { translateBytes as F } from "../../../utils/files.js";
|
|
6
6
|
import "../../../_virtual/lodash.js";
|
|
7
7
|
import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
@@ -3,7 +3,7 @@ import { faX as h } from "../../../node_modules/@fortawesome/pro-light-svg-icons
|
|
|
3
3
|
import { FontAwesomeIcon as y } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../../_virtual/lodash.js";
|
|
6
|
-
import { useTheme as j } from "../../../
|
|
6
|
+
import { useTheme as j } from "../../../hooks/useTheme.js";
|
|
7
7
|
import g from "../../atoms/BoxContainer/BoxContainer.js";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import a from "../../atoms/Button/Button.js";
|
|
@@ -4,7 +4,7 @@ import { faChevronLeft as K } from "../../../node_modules/@fortawesome/pro-solid
|
|
|
4
4
|
import { useState as c, useEffect as Q } from "react";
|
|
5
5
|
import { FontAwesomeIcon as V } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
6
6
|
import "../../../_virtual/lodash.js";
|
|
7
|
-
import { useTheme as X } from "../../../
|
|
7
|
+
import { useTheme as X } from "../../../hooks/useTheme.js";
|
|
8
8
|
import k from "../FloatingMenu/FloatingMenu.js";
|
|
9
9
|
import Z from "./PeriodToggle.js";
|
|
10
10
|
import ee from "./TimeDisplay.js";
|
|
@@ -6,7 +6,7 @@ import h from "../../atoms/UncontrolledTextInput/UncontrolledTextInput.js";
|
|
|
6
6
|
import j from "../FloatingMenu/FloatingMenu.js";
|
|
7
7
|
import { FontAwesomeIcon as D } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
8
8
|
import { faX as S } from "../../../node_modules/@fortawesome/free-solid-svg-icons/index.js";
|
|
9
|
-
import { useTheme as I } from "../../../
|
|
9
|
+
import { useTheme as I } from "../../../hooks/useTheme.js";
|
|
10
10
|
import { formatLocalizedDate as v } from "../../../utils/dates.js";
|
|
11
11
|
import "../../../_virtual/lodash.js";
|
|
12
12
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
@@ -3,7 +3,7 @@ import { faX as j } from "../../../node_modules/@fortawesome/pro-light-svg-icons
|
|
|
3
3
|
import { FontAwesomeIcon as t } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../../_virtual/lodash.js";
|
|
6
|
-
import "../../../
|
|
6
|
+
import "../../../contexts/themeContext.js";
|
|
7
7
|
import y from "../../atoms/BoxContainer/BoxContainer.js";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import a from "../../atoms/Button/Button.js";
|
|
@@ -2,7 +2,7 @@ import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { faChevronDown as p } from "../../../node_modules/@fortawesome/pro-solid-svg-icons/index.js";
|
|
3
3
|
import { FontAwesomeIcon as f } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
4
4
|
import { useState as b } from "react";
|
|
5
|
-
import { useTheme as g } from "../../../
|
|
5
|
+
import { useTheme as g } from "../../../hooks/useTheme.js";
|
|
6
6
|
import { motion as n } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
7
7
|
import { AnimatePresence as w } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
8
8
|
const i = {
|
|
@@ -3,7 +3,7 @@ import { faFile as R, faTrash as I, faArrowsRotate as O } from "../../../node_mo
|
|
|
3
3
|
import { FontAwesomeIcon as c } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
4
4
|
import { useState as d, useEffect as S } from "react";
|
|
5
5
|
import { FileStatus as t } from "./FileUpload.types.js";
|
|
6
|
-
import { useTheme as L } from "../../../
|
|
6
|
+
import { useTheme as L } from "../../../hooks/useTheme.js";
|
|
7
7
|
import { motion as M } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
8
8
|
const G = ({
|
|
9
9
|
file: s,
|
|
@@ -3,7 +3,7 @@ import { useFloating as N, useClick as O, useDismiss as R, useInteractions as S,
|
|
|
3
3
|
import { useState as k, useEffect as w } from "react";
|
|
4
4
|
import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
5
5
|
import "../../../_virtual/lodash.js";
|
|
6
|
-
import "../../../
|
|
6
|
+
import "../../../contexts/themeContext.js";
|
|
7
7
|
import P from "../../atoms/BoxContainer/BoxContainer.js";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
@@ -2,7 +2,7 @@ import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { faCheck as h, faClockSix as g } from "../../../node_modules/@fortawesome/pro-light-svg-icons/index.js";
|
|
3
3
|
import { FontAwesomeIcon as p } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
4
4
|
import { useState as u, useEffect as F } from "react";
|
|
5
|
-
import { useTheme as y } from "../../../
|
|
5
|
+
import { useTheme as y } from "../../../hooks/useTheme.js";
|
|
6
6
|
import { motion as c } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
7
7
|
import { AnimatePresence as v } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
8
8
|
const k = ({
|
|
@@ -2,7 +2,7 @@ import { j as r } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { useRef as m, useState as E, useEffect as u } from "react";
|
|
3
3
|
import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
4
4
|
import "../../../_virtual/lodash.js";
|
|
5
|
-
import { useTheme as S } from "../../../
|
|
5
|
+
import { useTheme as S } from "../../../hooks/useTheme.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
8
8
|
import L from "../../atoms/Tab/Tab.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './themeContext';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTheme: () => import('..').LawgicTheme;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,110 +1,112 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { default as
|
|
3
|
-
import { AsyncToast as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { SearchBar as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
2
|
+
import { default as l } from "./components/atoms/ActionButton/ActionButton.js";
|
|
3
|
+
import { AsyncToast as m } from "./components/atoms/AsyncToast/index.js";
|
|
4
|
+
import { default as s } from "./components/atoms/Avatar/Avatar.js";
|
|
5
|
+
import { default as x } from "./components/atoms/BoxContainer/BoxContainer.js";
|
|
6
|
+
import { default as i } from "./components/atoms/Button/Button.js";
|
|
7
|
+
import { default as T } from "./components/atoms/CenterModal/CenterModal.js";
|
|
8
|
+
import { default as I } from "./components/atoms/CountrySelectInput/CountryDropdown.js";
|
|
9
|
+
import { default as C } from "./components/atoms/Divider/Divider.js";
|
|
10
|
+
import { default as D } from "./components/atoms/FullLogo/FullLogo.js";
|
|
11
|
+
import { default as S } from "./components/atoms/IconButton/IconButton.js";
|
|
12
|
+
import { default as y } from "./components/atoms/ImageProfileInput/ImageProfileInput.js";
|
|
13
|
+
import { default as P } from "./components/atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
14
|
+
import { default as U } from "./components/atoms/InfoCard/InfoCard.js";
|
|
15
|
+
import { default as F } from "./components/atoms/LoadingSpinner/LoadingSpinner.js";
|
|
16
|
+
import { default as z } from "./components/atoms/PasswordInput/PasswordInput.js";
|
|
17
|
+
import { default as V } from "./components/atoms/ProgressBar/ProgressBar.js";
|
|
18
|
+
import { SearchBar as k } from "./components/atoms/SearchBar/index.js";
|
|
19
|
+
import { default as E } from "./components/atoms/SectionButton/SectionButton.js";
|
|
20
|
+
import { default as H } from "./components/atoms/SelectDropdown/SelectDropdown.js";
|
|
21
21
|
import "./_virtual/jsx-runtime.js";
|
|
22
22
|
import "./node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { Organism as
|
|
44
|
-
import { formatLocalizedDate as
|
|
45
|
-
import { toBase64 as
|
|
46
|
-
import { getImageUrl as
|
|
47
|
-
import { ModalContainer as
|
|
48
|
-
import { renderTabContent as
|
|
49
|
-
import { capitalizeFirstLetter as
|
|
50
|
-
import { showToastAsync as
|
|
51
|
-
import { ThemeProvider as
|
|
52
|
-
import {
|
|
23
|
+
import { default as K } from "./components/atoms/Tab/Tab.js";
|
|
24
|
+
import { default as Q } from "./components/atoms/TextButton/TextButton.js";
|
|
25
|
+
import { default as W } from "./components/atoms/TextInput/TextInput.js";
|
|
26
|
+
import { default as Y } from "./components/atoms/Toast/Toast.js";
|
|
27
|
+
import { default as _ } from "./components/atoms/UncontrolledSelector/UncontrolledSelector.js";
|
|
28
|
+
import { default as oo } from "./components/atoms/UncontrolledTextInput/UncontrolledTextInput.js";
|
|
29
|
+
import { default as ro } from "./components/atoms/UploadContainer/UploadContainer.js";
|
|
30
|
+
import { default as ao } from "./components/atoms/InformationDisclaimer/InformationDisclaimer.js";
|
|
31
|
+
import { default as lo } from "./components/atoms/CountryLabel/CountryLabel.js";
|
|
32
|
+
import { default as mo } from "./components/atoms/PhoneInput/PhoneInput.js";
|
|
33
|
+
import { default as uo } from "./components/molecules/AlertModal/AlertModal.js";
|
|
34
|
+
import { default as no } from "./components/molecules/CalendarSelector/CalendarSelector.js";
|
|
35
|
+
import { default as co } from "./components/molecules/DateInput/DateInput.js";
|
|
36
|
+
import { default as go } from "./components/molecules/DialogModal/DialogModal.js";
|
|
37
|
+
import { default as Bo } from "./components/molecules/Dropdown/Dropdown.js";
|
|
38
|
+
import { default as ho } from "./components/molecules/FileUpload/FileUpload.js";
|
|
39
|
+
import { default as Mo } from "./components/molecules/FloatingMenu/FloatingMenu.js";
|
|
40
|
+
import { default as wo } from "./components/molecules/SearchModal/SearchModal.js";
|
|
41
|
+
import { default as Lo } from "./components/molecules/Stepper/Stepper.js";
|
|
42
|
+
import { default as Ao } from "./components/molecules/Tabs/Tabs.js";
|
|
43
|
+
import { Organism as bo } from "./components/organisms/index.js";
|
|
44
|
+
import { formatLocalizedDate as vo } from "./utils/dates.js";
|
|
45
|
+
import { toBase64 as Oo, translateBytes as Vo } from "./utils/files.js";
|
|
46
|
+
import { getImageUrl as ko } from "./utils/images.js";
|
|
47
|
+
import { ModalContainer as Eo, closeModal as Go, openModal as Ho } from "./utils/modal.js";
|
|
48
|
+
import { renderTabContent as Ko } from "./utils/renderContentOptions.js";
|
|
49
|
+
import { capitalizeFirstLetter as Qo, stringToColor as Ro } from "./utils/strings.js";
|
|
50
|
+
import { showToastAsync as Xo, showToastLoading as Yo, toast as Zo } from "./utils/toast.js";
|
|
51
|
+
import { ThemeProvider as $o } from "./providers/ThemeProvider.js";
|
|
52
|
+
import { useTheme as tt } from "./hooks/useTheme.js";
|
|
53
|
+
import "./contexts/themeContext.js";
|
|
54
|
+
import { defaultTheme as et } from "./themes/default.js";
|
|
53
55
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
56
|
+
l as ActionButton,
|
|
57
|
+
uo as AlertModal,
|
|
58
|
+
m as AsyncToast,
|
|
59
|
+
s as Avatar,
|
|
60
|
+
x as BoxContainer,
|
|
61
|
+
i as Button,
|
|
62
|
+
no as CalendarSelector,
|
|
63
|
+
T as CenterModal,
|
|
64
|
+
I as CountryDropdown,
|
|
65
|
+
lo as CountryLabel,
|
|
66
|
+
co as DateInput,
|
|
67
|
+
go as DialogModal,
|
|
68
|
+
C as Divider,
|
|
69
|
+
Bo as Dropdown,
|
|
70
|
+
ho as FileUpload,
|
|
71
|
+
Mo as FloatingMenu,
|
|
72
|
+
D as FullLogo,
|
|
73
|
+
S as IconButton,
|
|
74
|
+
y as ImageProfileInput,
|
|
75
|
+
U as InfoCard,
|
|
76
|
+
ao as InformationDisclaimer,
|
|
77
|
+
F as LoadingSpinner,
|
|
78
|
+
Eo as ModalContainer,
|
|
79
|
+
bo as Organism,
|
|
80
|
+
z as PasswordInput,
|
|
81
|
+
mo as PhoneInput,
|
|
82
|
+
V as ProgressBar,
|
|
83
|
+
k as SearchBar,
|
|
84
|
+
wo as SearchModal,
|
|
85
|
+
E as SectionButton,
|
|
86
|
+
H as SelectDropdown,
|
|
87
|
+
Lo as Stepper,
|
|
88
|
+
K as Tab,
|
|
89
|
+
Ao as Tabs,
|
|
90
|
+
Q as TextButton,
|
|
91
|
+
W as TextInput,
|
|
92
|
+
$o as ThemeProvider,
|
|
93
|
+
Y as Toast,
|
|
94
|
+
_ as UncontrolledSelector,
|
|
95
|
+
oo as UncontrolledTextInput,
|
|
96
|
+
ro as UploadContainer,
|
|
97
|
+
Qo as capitalizeFirstLetter,
|
|
98
|
+
Go as closeModal,
|
|
99
|
+
et as defaultTheme,
|
|
100
|
+
vo as formatLocalizedDate,
|
|
101
|
+
ko as getImageUrl,
|
|
102
|
+
Ho as openModal,
|
|
103
|
+
Ko as renderTabContent,
|
|
104
|
+
Xo as showToastAsync,
|
|
105
|
+
Yo as showToastLoading,
|
|
106
|
+
Ro as stringToColor,
|
|
107
|
+
Oo as toBase64,
|
|
108
|
+
Zo as toast,
|
|
109
|
+
Vo as translateBytes,
|
|
110
|
+
tt as useTheme,
|
|
111
|
+
P as yupImageProfileValidator
|
|
110
112
|
};
|