@ssplib/react-components 0.0.308 → 0.0.309
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/package.json +18 -22
- package/Map-31d95a26.js +0 -2
- package/Map-31d95a26.js.map +0 -1
- package/Map-644d2f90.js +0 -2
- package/Map-644d2f90.js.map +0 -1
- package/components/detalhes/Category.d.ts +0 -3
- package/components/detalhes/Field.d.ts +0 -8
- package/components/detalhes/FieldLabel.d.ts +0 -8
- package/components/detalhes/File.d.ts +0 -7
- package/components/form/checkbox/CheckBox.d.ts +0 -10
- package/components/form/checkbox/CheckBoxAdditional.d.ts +0 -7
- package/components/form/checkbox/CheckBoxWarning.d.ts +0 -10
- package/components/form/checkbox/RequiredCheckBoxValidator.d.ts +0 -5
- package/components/form/date/DatePicker.d.ts +0 -13
- package/components/form/date/GenericDatePicker.d.ts +0 -13
- package/components/form/date/TimePicker.d.ts +0 -10
- package/components/form/file/DropFileUpload.d.ts +0 -16
- package/components/form/file/FileUpload.d.ts +0 -13
- package/components/form/input/ActiveInput.d.ts +0 -12
- package/components/form/input/AutoComplete.d.ts +0 -11
- package/components/form/input/FetchAutoComplete.d.ts +0 -19
- package/components/form/input/FixedAutoComplete.d.ts +0 -18
- package/components/form/input/GenericFetchAutoComplete.d.ts +0 -19
- package/components/form/input/GenericInput.d.ts +0 -19
- package/components/form/input/GenericMaskInput.d.ts +0 -14
- package/components/form/input/GenericMultInput.d.ts +0 -13
- package/components/form/input/Input.d.ts +0 -19
- package/components/form/input/MaskInput.d.ts +0 -14
- package/components/form/input/MultInput.d.ts +0 -13
- package/components/form/input/OptionalInput.d.ts +0 -10
- package/components/form/input/OtherCheckBox.d.ts +0 -7
- package/components/form/stepper/Stepper.d.ts +0 -16
- package/components/form/stepper/StepperBlock.d.ts +0 -14
- package/components/form/switch/Switch.d.ts +0 -11
- package/components/form/switch/ToggleVisibility.d.ts +0 -13
- package/components/form/table/FilterSection.d.ts +0 -7
- package/components/form/table/GenericTable.d.ts +0 -8
- package/components/form/table/Table.d.ts +0 -5
- package/components/form/table/TableErrorState.d.ts +0 -9
- package/components/form/table/TableLoadingState.d.ts +0 -5
- package/components/form/table/types.d.ts +0 -212
- package/components/form/table/utils.d.ts +0 -29
- package/components/icons/icons.d.ts +0 -3
- package/components/loading/LinearProgress.d.ts +0 -2
- package/components/loading/LoadingScreen.d.ts +0 -7
- package/components/map/AnimatedMarker.d.ts +0 -5
- package/components/map/DraggableMarker.d.ts +0 -12
- package/components/map/Map.d.ts +0 -17
- package/components/map/index.d.ts +0 -1
- package/components/modal/Modal.d.ts +0 -7
- package/components/navbar/NavBar.d.ts +0 -15
- package/components/navbar/TabNavBar.d.ts +0 -17
- package/components/providers/FormProvider.d.ts +0 -11
- package/components/providers/GenericFormProvider.d.ts +0 -10
- package/components/providers/KeycloakAuthProvider.d.ts +0 -10
- package/components/providers/OAuthProvider.d.ts +0 -18
- package/components/providers/SspComponentsProvider.d.ts +0 -3
- package/components/teste/Teste.d.ts +0 -3
- package/components/utils/Bt.d.ts +0 -8
- package/components/utils/CustomMenu.d.ts +0 -12
- package/context/auth.d.ts +0 -2
- package/context/form.d.ts +0 -20
- package/decorators/FormBaseDecorator.d.ts +0 -2
- package/decorators/GenericFormBaseDecorator.d.ts +0 -2
- package/decorators/StepperDecorator.d.ts +0 -2
- package/index.cjs +0 -3
- package/index.cjs.map +0 -1
- package/index.d.ts +0 -44
- package/index.esm.js +0 -3
- package/index.esm.js.map +0 -1
- package/stories/Autocomplete.stories.d.ts +0 -6
- package/stories/CheckBox.stories.d.ts +0 -6
- package/stories/CheckBoxWarning.stories.d.ts +0 -6
- package/stories/DatePicker.stories.d.ts +0 -6
- package/stories/DetalhesCategory.stories.d.ts +0 -6
- package/stories/DetalhesField.stories.d.ts +0 -6
- package/stories/DetalhesFieldLabel.stories.d.ts +0 -6
- package/stories/DetalhesFile.stories.d.ts +0 -6
- package/stories/DropFileUpload.stories.d.ts +0 -6
- package/stories/ExemploAssitirValorInput.stories.d.ts +0 -7
- package/stories/ExemploInputs.stories.d.ts +0 -7
- package/stories/ExemploValoresCompartilhados.stories.d.ts +0 -7
- package/stories/FetchAutocomplete.stories.d.ts +0 -6
- package/stories/FileUpload.stories.d.ts +0 -6
- package/stories/FixedAutocomplete.stories.d.ts +0 -6
- package/stories/GenericFetchAutocomplete.stories.d.ts +0 -6
- package/stories/GenericInput.stories.d.ts +0 -6
- package/stories/GenericTable.stories.d.ts +0 -6
- package/stories/Input.stories.d.ts +0 -6
- package/stories/LinearProgress.stories.d.ts +0 -6
- package/stories/LoadingScreen.stories.d.ts +0 -6
- package/stories/Map.stories.d.ts +0 -6
- package/stories/MultInput.stories.d.ts +0 -6
- package/stories/NavBar.stories.d.ts +0 -6
- package/stories/OptionalInput.stories.d.ts +0 -6
- package/stories/OtherCheckBox.stories.d.ts +0 -6
- package/stories/Stepper.stories.d.ts +0 -6
- package/stories/StepperBlock.stories.d.ts +0 -6
- package/stories/Switch.stories.d.ts +0 -6
- package/stories/Table.stories.d.ts +0 -4
- package/stories/TableWithStaticData.stories.d.ts +0 -6
- package/stories/Teste.stories.d.ts +0 -6
- package/stories/TimePicker.stories.d.ts +0 -6
- package/types/auth.d.ts +0 -72
- package/types/form.d.ts +0 -64
package/package.json
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssplib/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.309",
|
|
4
4
|
"description": "SSP React Components",
|
|
5
5
|
"author": "Pedro Henrique <sr.hudrick@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"private": false,
|
|
8
|
+
"type": "module",
|
|
9
|
+
"source": "src/index.ts",
|
|
10
|
+
"main": "./dist/index.cjs.js",
|
|
11
|
+
"module": "./dist/index.esm.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"files": ["dist/**/*"],
|
|
10
14
|
"exports": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"types": "./index.d.ts"
|
|
15
|
-
},
|
|
16
|
-
"./types/auth": {
|
|
17
|
-
"types": "./types/auth.d.ts"
|
|
18
|
-
},
|
|
19
|
-
"./types/form": {
|
|
20
|
-
"types": "./types/form.d.ts"
|
|
21
|
-
}
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"require": "./dist/index.cjs.js",
|
|
17
|
+
"default": "./dist/index.mjs"
|
|
22
18
|
},
|
|
23
19
|
"peerDependencies": {
|
|
24
|
-
"next": "^14.
|
|
25
|
-
"react": "^18.
|
|
26
|
-
"react-dom": "^18.
|
|
27
|
-
"@mui/icons-material": "^7.
|
|
28
|
-
"@mui/lab": "^7.0.0",
|
|
29
|
-
"@mui/material": "^7.
|
|
30
|
-
"@mui/x-date-pickers": "^8.
|
|
20
|
+
"next": "^14.2.29",
|
|
21
|
+
"react": "^18.2.0",
|
|
22
|
+
"react-dom": "^18.2.0",
|
|
23
|
+
"@mui/icons-material": "^7.2.0",
|
|
24
|
+
"@mui/lab": "^7.0.0-beta.14",
|
|
25
|
+
"@mui/material": "^7.2.0",
|
|
26
|
+
"@mui/x-date-pickers": "^8.8.0"
|
|
31
27
|
},
|
|
32
28
|
"dependencies": {
|
|
33
29
|
"axios": "^1.6.7",
|
package/Map-31d95a26.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Box as o}from"@mui/material";import{useMapEvents as n,Marker as r,Popup as l,useMap as a,MapContainer as i,TileLayer as s}from"react-leaflet";import c,{icon as d}from"leaflet";import{useState as p,useRef as m,useMemo as u,useEffect as h}from"react";import"leaflet-defaulticon-compatibility";import"leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css";import"leaflet/dist/leaflet.css";function f({...t}){const[o,a]=p(t.startCoord),i=m(null),s=u(()=>({dragend(){const e=i.current;null!=e&&a(e.getLatLng())}}),[]);return n({click(e){t.fixedPosition||a({lat:e.latlng.lat,lng:e.latlng.lng})}}),h(()=>{o&&(i.current&&(i.current.closePopup(),t.showPopup&&i.current.openPopup()),t.onChange&&t.onChange(o))},[o,t.onChange]),e(r,{icon:g,draggable:t.draggable,eventHandlers:s,position:o,ref:i,children:e(l,{className:"custom-popup",children:t.children})})}const g=d({iconUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41],className:"leaflet-red-marker"}),y=({coords:e})=>{const t=a();return h(()=>{const o=document.createElement("div");o.style.position="relative",o.style.width="20px",o.style.height="20px",o.style.backgroundColor="rgba(0, 100, 255, 0.6)",o.style.borderRadius="50%",o.style.animation="sonarPulse 2s infinite";const n=document.createElement("div");n.style.position="absolute",n.style.top="50%",n.style.left="50%",n.style.width="100%",n.style.height="100%",n.style.backgroundColor="rgba(0, 100, 255, 0.4)",n.style.borderRadius="50%",n.style.transform="translate(-50%, -50%) scale(1)",n.style.animation="sonarPulse 2s infinite",o.appendChild(n);const r=document.createElement("style");r.innerHTML="\n @keyframes sonarPulse {\n 0% {\n transform: translate(-50%, -50%) scale(1);\n opacity: 0.8;\n }\n 100% {\n transform: translate(-50%, -50%) scale(2);\n opacity: 0;\n }\n }",document.head.appendChild(r);const l=c.marker(e,{icon:c.divIcon({className:"",html:o.outerHTML,iconSize:[40,40],iconAnchor:[0,5]})});return l.addTo(t),()=>{t.removeLayer(l),document.head.removeChild(r)}},[t,e]),null};function b(n){return e(o,{borderRadius:2,border:"2px solid #c7c7c7",overflow:"hidden",...n.style,children:t(i,{center:n.firstCoords,zoom:19,scrollWheelZoom:!0,style:n.mapStyle,children:[e(s,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),n.pulseMarkerList&&n.pulseMarkerList.map((t,o)=>e(y,{coords:t},JSON.stringify(t)+o)),e(f,{startCoord:n.firstCoords,onChange:n.onCoordsChange,showPopup:void 0!==n.popupContent,fixedPosition:n.fixedPosition,children:n.popupContent})]})})}export{b as Map};
|
|
2
|
-
//# sourceMappingURL=Map-31d95a26.js.map
|
package/Map-31d95a26.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Map-31d95a26.js","sources":["../src/components/map/DraggableMarker.tsx","../src/components/map/AnimatedMarker.tsx","../src/components/map/Map.tsx"],"sourcesContent":["'use client'\nimport { icon, LatLngExpression, Marker as MarketType } from 'leaflet'\nimport { ReactElement, useEffect, useMemo, useRef, useState } from 'react'\nimport { Marker, Popup, useMapEvents } from 'react-leaflet'\n\nimport React from 'react'\n\ninterface DraggableMarkerProps {\n startCoord: LatLngExpression\n draggable?: boolean\n // eslint-disable-next-line no-unused-vars\n onChange?: (coord: LatLngExpression) => void\n children?: ReactElement\n showPopup?: boolean\n fixedPosition?: boolean\n}\n\nexport default function DraggableMarker({ ...props }: DraggableMarkerProps) {\n const [position, setPosition] = useState<LatLngExpression>(props.startCoord)\n const markerRef = useRef<MarketType>(null)\n\n const eventHandlers = useMemo(\n () => ({\n dragend() {\n const marker = markerRef.current\n if (marker != null) {\n setPosition(marker.getLatLng())\n }\n },\n }),\n []\n )\n\n useMapEvents({\n click(e) {\n if (props.fixedPosition) return\n\n setPosition({ lat: e.latlng.lat, lng: e.latlng.lng })\n },\n })\n\n useEffect(() => {\n if (!position) return\n\n if (markerRef.current) {\n markerRef.current.closePopup()\n\n if (props.showPopup) markerRef.current.openPopup()\n }\n\n if (props.onChange) props.onChange(position)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [position, props.onChange])\n\n return (\n <Marker icon={redIcon} draggable={props.draggable} eventHandlers={eventHandlers} position={position} ref={markerRef}>\n <Popup className='custom-popup'>{props.children}</Popup>\n </Marker>\n )\n}\n\n//#region Marker Icon\nconst redIcon = icon({\n iconUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png',\n shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png',\n iconSize: [25, 41],\n iconAnchor: [12, 41],\n popupAnchor: [1, -34],\n shadowSize: [41, 41],\n className: 'leaflet-red-marker',\n})\n//#endregion\n","import L, { LatLngExpression } from 'leaflet'\nimport { useEffect } from 'react'\nimport { useMap } from 'react-leaflet'\n\nconst AnimatedMarker = ({ coords }: { coords: LatLngExpression }) => {\n const map = useMap()\n\n useEffect(() => {\n // Criar o ícone do marcador com HTML\n const markerElement = document.createElement('div')\n markerElement.style.position = 'relative'\n markerElement.style.width = '20px'\n markerElement.style.height = '20px'\n markerElement.style.backgroundColor = 'rgba(0, 100, 255, 0.6)'\n markerElement.style.borderRadius = '50%'\n markerElement.style.animation = 'sonarPulse 2s infinite'\n\n // Criar o efeito de pulso (onda ao redor)\n const pulseElement = document.createElement('div')\n pulseElement.style.position = 'absolute'\n pulseElement.style.top = '50%'\n pulseElement.style.left = '50%'\n pulseElement.style.width = '100%'\n pulseElement.style.height = '100%'\n pulseElement.style.backgroundColor = 'rgba(0, 100, 255, 0.4)'\n pulseElement.style.borderRadius = '50%'\n pulseElement.style.transform = 'translate(-50%, -50%) scale(1)'\n pulseElement.style.animation = 'sonarPulse 2s infinite'\n\n markerElement.appendChild(pulseElement)\n\n // Adicionar a animação no CSS global\n const keyframes = `\n @keyframes sonarPulse {\n 0% {\n transform: translate(-50%, -50%) scale(1);\n opacity: 0.8;\n }\n 100% {\n transform: translate(-50%, -50%) scale(2);\n opacity: 0;\n }\n }`\n const styleElement = document.createElement('style')\n styleElement.innerHTML = keyframes\n document.head.appendChild(styleElement)\n\n // Criar o marcador no mapa\n const marker = L.marker(coords, {\n icon: L.divIcon({\n className: '',\n html: markerElement.outerHTML,\n iconSize: [40, 40], // Define o tamanho do ícone\n iconAnchor: [0, 5], // Centraliza o ícone (metade do width e height)\n }),\n })\n\n marker.addTo(map)\n\n // Limpar marcador e estilos ao desmontar\n return () => {\n map.removeLayer(marker)\n document.head.removeChild(styleElement)\n }\n }, [map, coords])\n\n return null // Nenhum componente visível, já que o marcador é diretamente manipulado pelo Leaflet\n}\n\nexport default AnimatedMarker\n","'use client'\nimport { Box, BoxProps } from '@mui/material'\nimport { MapContainer, TileLayer } from 'react-leaflet'\nimport DraggableMarker from './DraggableMarker'\n\nimport React from 'react'\n\nimport 'leaflet-defaulticon-compatibility'\nimport 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css'\nimport 'leaflet/dist/leaflet.css'\nimport { LatLngExpression } from 'leaflet'\nimport AnimatedMarker from './AnimatedMarker'\nimport { ReactElement } from 'react'\n\nexport interface MapProps {\n firstCoords: any\n // eslint-disable-next-line no-unused-vars\n onCoordsChange?: (coords: any) => void\n pulseMarkerList?: LatLngExpression[]\n popupContent?: ReactElement\n style?: BoxProps\n mapStyle?: React.CSSProperties\n fixedPosition?: boolean\n}\n\nexport function Map(props: MapProps) {\n return (\n <Box borderRadius={2} border='2px solid #c7c7c7' overflow='hidden' {...props.style}>\n <MapContainer center={props.firstCoords} zoom={19} scrollWheelZoom style={props.mapStyle}>\n <TileLayer attribution='© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors' url='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' />\n {props.pulseMarkerList && props.pulseMarkerList.map((coord, idx) => <AnimatedMarker key={JSON.stringify(coord) + idx} coords={coord} />)}\n <DraggableMarker startCoord={props.firstCoords} onChange={props.onCoordsChange} showPopup={typeof props.popupContent !== 'undefined'} fixedPosition={props.fixedPosition}>\n {props.popupContent}\n </DraggableMarker>\n </MapContainer>\n </Box>\n )\n}\n"],"names":["DraggableMarker","props","position","setPosition","useState","startCoord","markerRef","useRef","eventHandlers","useMemo","dragend","marker","current","getLatLng","useMapEvents","click","e","fixedPosition","lat","latlng","lng","useEffect","closePopup","showPopup","openPopup","onChange","_jsx","Marker","icon","redIcon","draggable","ref","children","Popup","className","iconUrl","shadowUrl","iconSize","iconAnchor","popupAnchor","shadowSize","AnimatedMarker","coords","map","useMap","markerElement","document","createElement","style","width","height","backgroundColor","borderRadius","animation","pulseElement","top","left","transform","appendChild","styleElement","innerHTML","head","L","divIcon","html","outerHTML","addTo","removeLayer","removeChild","Map","Box","border","overflow","_jsxs","MapContainer","center","firstCoords","zoom","scrollWheelZoom","mapStyle","TileLayer","attribution","url","pulseMarkerList","coord","idx","JSON","stringify","onCoordsChange","popupContent"],"mappings":"kdAiBwB,SAAAA,MAAqBC,IACzC,MAAOC,EAAUC,GAAeC,EAA2BH,EAAMI,YAC3DC,EAAYC,EAAmB,MAE/BC,EAAgBC,EAClB,KAAO,CACHC,OAAAA,GACI,MAAMC,EAASL,EAAUM,QACX,MAAVD,GACAR,EAAYQ,EAAOE,YAE3B,IAEJ,IAwBJ,OArBAC,EAAa,CACTC,KAAAA,CAAMC,GACEf,EAAMgB,eAEVd,EAAY,CAAEe,IAAKF,EAAEG,OAAOD,IAAKE,IAAKJ,EAAEG,OAAOC,KACnD,IAGJC,EAAU,KACDnB,IAEDI,EAAUM,UACVN,EAAUM,QAAQU,aAEdrB,EAAMsB,WAAWjB,EAAUM,QAAQY,aAGvCvB,EAAMwB,UAAUxB,EAAMwB,SAASvB,KAEpC,CAACA,EAAUD,EAAMwB,WAGhBC,EAACC,EAAO,CAAAC,KAAMC,EAASC,UAAW7B,EAAM6B,UAAWtB,cAAeA,EAAeN,SAAUA,EAAU6B,IAAKzB,EACtG0B,SAAAN,EAACO,EAAM,CAAAC,UAAU,wBAAgBjC,EAAM+B,YAGnD,CAGA,MAAMH,EAAUD,EAAK,CACjBO,QAAS,8EACTC,UAAW,gFACXC,SAAU,CAAC,GAAI,IACfC,WAAY,CAAC,GAAI,IACjBC,YAAa,CAAC,GAAI,IA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SAC5E/C,SAAA,CAAAN,EAACsD,EAAS,CAACC,YAAY,qFAA0FC,IAAI,uDACpHjF,EAAMkF,iBAAmBlF,EAAMkF,gBAAgBxC,IAAI,CAACyC,EAAOC,IAAQ3D,EAACe,EAAiD,CAAAC,OAAQ0C,GAArCE,KAAKC,UAAUH,GAASC,IACjH3D,EAAC1B,EAAgB,CAAAK,WAAYJ,EAAM2E,YAAanD,SAAUxB,EAAMuF,eAAgBjE,eAAyC,IAAvBtB,EAAMwF,aAA8BxE,cAAehB,EAAMgB,cAAae,SACnK/B,EAAMwF,mBAK3B"}
|
package/Map-644d2f90.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=require("react/jsx-runtime"),t=require("@mui/material"),r=require("react-leaflet"),o=require("leaflet"),n=require("react");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("leaflet-defaulticon-compatibility"),require("leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css"),require("leaflet/dist/leaflet.css");var s=/*#__PURE__*/a(o);function l({...t}){const[o,a]=n.useState(t.startCoord),s=n.useRef(null),l=n.useMemo(()=>({dragend(){const e=s.current;null!=e&&a(e.getLatLng())}}),[]);return r.useMapEvents({click(e){t.fixedPosition||a({lat:e.latlng.lat,lng:e.latlng.lng})}}),n.useEffect(()=>{o&&(s.current&&(s.current.closePopup(),t.showPopup&&s.current.openPopup()),t.onChange&&t.onChange(o))},[o,t.onChange]),e.jsx(r.Marker,{icon:i,draggable:t.draggable,eventHandlers:l,position:o,ref:s,children:e.jsx(r.Popup,{className:"custom-popup",children:t.children})})}const i=o.icon({iconUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41],className:"leaflet-red-marker"}),c=({coords:e})=>{const t=r.useMap();return n.useEffect(()=>{const r=document.createElement("div");r.style.position="relative",r.style.width="20px",r.style.height="20px",r.style.backgroundColor="rgba(0, 100, 255, 0.6)",r.style.borderRadius="50%",r.style.animation="sonarPulse 2s infinite";const o=document.createElement("div");o.style.position="absolute",o.style.top="50%",o.style.left="50%",o.style.width="100%",o.style.height="100%",o.style.backgroundColor="rgba(0, 100, 255, 0.4)",o.style.borderRadius="50%",o.style.transform="translate(-50%, -50%) scale(1)",o.style.animation="sonarPulse 2s infinite",r.appendChild(o);const n=document.createElement("style");n.innerHTML="\n @keyframes sonarPulse {\n 0% {\n transform: translate(-50%, -50%) scale(1);\n opacity: 0.8;\n }\n 100% {\n transform: translate(-50%, -50%) scale(2);\n opacity: 0;\n }\n }",document.head.appendChild(n);const a=s.default.marker(e,{icon:s.default.divIcon({className:"",html:r.outerHTML,iconSize:[40,40],iconAnchor:[0,5]})});return a.addTo(t),()=>{t.removeLayer(a),document.head.removeChild(n)}},[t,e]),null};exports.Map=function(o){return e.jsx(t.Box,{borderRadius:2,border:"2px solid #c7c7c7",overflow:"hidden",...o.style,children:e.jsxs(r.MapContainer,{center:o.firstCoords,zoom:19,scrollWheelZoom:!0,style:o.mapStyle,children:[e.jsx(r.TileLayer,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),o.pulseMarkerList&&o.pulseMarkerList.map((t,r)=>e.jsx(c,{coords:t},JSON.stringify(t)+r)),e.jsx(l,{startCoord:o.firstCoords,onChange:o.onCoordsChange,showPopup:void 0!==o.popupContent,fixedPosition:o.fixedPosition,children:o.popupContent})]})})};
|
|
2
|
-
//# sourceMappingURL=Map-644d2f90.js.map
|
package/Map-644d2f90.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Map-644d2f90.js","sources":["../src/components/map/DraggableMarker.tsx","../src/components/map/AnimatedMarker.tsx","../src/components/map/Map.tsx"],"sourcesContent":["'use client'\nimport { icon, LatLngExpression, Marker as MarketType } from 'leaflet'\nimport { ReactElement, useEffect, useMemo, useRef, useState } from 'react'\nimport { Marker, Popup, useMapEvents } from 'react-leaflet'\n\nimport React from 'react'\n\ninterface DraggableMarkerProps {\n startCoord: LatLngExpression\n draggable?: boolean\n // eslint-disable-next-line no-unused-vars\n onChange?: (coord: LatLngExpression) => void\n children?: ReactElement\n showPopup?: boolean\n fixedPosition?: boolean\n}\n\nexport default function DraggableMarker({ ...props }: DraggableMarkerProps) {\n const [position, setPosition] = useState<LatLngExpression>(props.startCoord)\n const markerRef = useRef<MarketType>(null)\n\n const eventHandlers = useMemo(\n () => ({\n dragend() {\n const marker = markerRef.current\n if (marker != null) {\n setPosition(marker.getLatLng())\n }\n },\n }),\n []\n )\n\n useMapEvents({\n click(e) {\n if (props.fixedPosition) return\n\n setPosition({ lat: e.latlng.lat, lng: e.latlng.lng })\n },\n })\n\n useEffect(() => {\n if (!position) return\n\n if (markerRef.current) {\n markerRef.current.closePopup()\n\n if (props.showPopup) markerRef.current.openPopup()\n }\n\n if (props.onChange) props.onChange(position)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [position, props.onChange])\n\n return (\n <Marker icon={redIcon} draggable={props.draggable} eventHandlers={eventHandlers} position={position} ref={markerRef}>\n <Popup className='custom-popup'>{props.children}</Popup>\n </Marker>\n )\n}\n\n//#region Marker Icon\nconst redIcon = icon({\n iconUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png',\n shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png',\n iconSize: [25, 41],\n iconAnchor: [12, 41],\n popupAnchor: [1, -34],\n shadowSize: [41, 41],\n className: 'leaflet-red-marker',\n})\n//#endregion\n","import L, { LatLngExpression } from 'leaflet'\nimport { useEffect } from 'react'\nimport { useMap } from 'react-leaflet'\n\nconst AnimatedMarker = ({ coords }: { coords: LatLngExpression }) => {\n const map = useMap()\n\n useEffect(() => {\n // Criar o ícone do marcador com HTML\n const markerElement = document.createElement('div')\n markerElement.style.position = 'relative'\n markerElement.style.width = '20px'\n markerElement.style.height = '20px'\n markerElement.style.backgroundColor = 'rgba(0, 100, 255, 0.6)'\n markerElement.style.borderRadius = '50%'\n markerElement.style.animation = 'sonarPulse 2s infinite'\n\n // Criar o efeito de pulso (onda ao redor)\n const pulseElement = document.createElement('div')\n pulseElement.style.position = 'absolute'\n pulseElement.style.top = '50%'\n pulseElement.style.left = '50%'\n pulseElement.style.width = '100%'\n pulseElement.style.height = '100%'\n pulseElement.style.backgroundColor = 'rgba(0, 100, 255, 0.4)'\n pulseElement.style.borderRadius = '50%'\n pulseElement.style.transform = 'translate(-50%, -50%) scale(1)'\n pulseElement.style.animation = 'sonarPulse 2s infinite'\n\n markerElement.appendChild(pulseElement)\n\n // Adicionar a animação no CSS global\n const keyframes = `\n @keyframes sonarPulse {\n 0% {\n transform: translate(-50%, -50%) scale(1);\n opacity: 0.8;\n }\n 100% {\n transform: translate(-50%, -50%) scale(2);\n opacity: 0;\n }\n }`\n const styleElement = document.createElement('style')\n styleElement.innerHTML = keyframes\n document.head.appendChild(styleElement)\n\n // Criar o marcador no mapa\n const marker = L.marker(coords, {\n icon: L.divIcon({\n className: '',\n html: markerElement.outerHTML,\n iconSize: [40, 40], // Define o tamanho do ícone\n iconAnchor: [0, 5], // Centraliza o ícone (metade do width e height)\n }),\n })\n\n marker.addTo(map)\n\n // Limpar marcador e estilos ao desmontar\n return () => {\n map.removeLayer(marker)\n document.head.removeChild(styleElement)\n }\n }, [map, coords])\n\n return null // Nenhum componente visível, já que o marcador é diretamente manipulado pelo Leaflet\n}\n\nexport default AnimatedMarker\n","'use client'\nimport { Box, BoxProps } from '@mui/material'\nimport { MapContainer, TileLayer } from 'react-leaflet'\nimport DraggableMarker from './DraggableMarker'\n\nimport React from 'react'\n\nimport 'leaflet-defaulticon-compatibility'\nimport 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css'\nimport 'leaflet/dist/leaflet.css'\nimport { LatLngExpression } from 'leaflet'\nimport AnimatedMarker from './AnimatedMarker'\nimport { ReactElement } from 'react'\n\nexport interface MapProps {\n firstCoords: any\n // eslint-disable-next-line no-unused-vars\n onCoordsChange?: (coords: any) => void\n pulseMarkerList?: LatLngExpression[]\n popupContent?: ReactElement\n style?: BoxProps\n mapStyle?: React.CSSProperties\n fixedPosition?: boolean\n}\n\nexport function Map(props: MapProps) {\n return (\n <Box borderRadius={2} border='2px solid #c7c7c7' overflow='hidden' {...props.style}>\n <MapContainer center={props.firstCoords} zoom={19} scrollWheelZoom style={props.mapStyle}>\n <TileLayer attribution='© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors' url='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' />\n {props.pulseMarkerList && props.pulseMarkerList.map((coord, idx) => <AnimatedMarker key={JSON.stringify(coord) + idx} coords={coord} />)}\n <DraggableMarker startCoord={props.firstCoords} onChange={props.onCoordsChange} showPopup={typeof props.popupContent !== 'undefined'} fixedPosition={props.fixedPosition}>\n {props.popupContent}\n </DraggableMarker>\n </MapContainer>\n </Box>\n )\n}\n"],"names":["DraggableMarker","props","position","setPosition","useState","startCoord","markerRef","useRef","eventHandlers","useMemo","dragend","marker","current","getLatLng","useMapEvents","click","e","fixedPosition","lat","latlng","lng","useEffect","closePopup","showPopup","openPopup","onChange","_jsx","Marker","icon","redIcon","draggable","ref","children","jsx","Popup","className","iconUrl","shadowUrl","iconSize","iconAnchor","popupAnchor","shadowSize","AnimatedMarker","coords","map","useMap","markerElement","document","createElement","style","width","height","backgroundColor","borderRadius","animation","pulseElement","top","left","transform","appendChild","styleElement","innerHTML","head","L","divIcon","html","outerHTML","addTo","removeLayer","removeChild","Box","border","overflow","_jsxs","jsxs","MapContainer","center","firstCoords","zoom","scrollWheelZoom","mapStyle","TileLayer","attribution","url","pulseMarkerList","coord","idx","JSON","stringify","onCoordsChange","popupContent"],"mappings":"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yC,IAAvBtB,EAAMyF,aAA8BzE,cAAehB,EAAMgB,cAAae,SACnK/B,EAAMyF,mBAK3B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export default function CheckBox({ name, title, defaultValue, xs, sm, md, onChange, }: {
|
|
3
|
-
name: string;
|
|
4
|
-
title: string | JSX.Element;
|
|
5
|
-
defaultValue?: boolean;
|
|
6
|
-
onChange?: (e: React.SyntheticEvent<Element, Event>) => void;
|
|
7
|
-
xs?: number;
|
|
8
|
-
sm?: number;
|
|
9
|
-
md?: number;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
export default function CheckBoxWarning({ name, title, customWarning, defaultValue, xs, sm, md, }: {
|
|
3
|
-
name: string;
|
|
4
|
-
title: string;
|
|
5
|
-
customWarning?: ReactElement;
|
|
6
|
-
defaultValue?: boolean;
|
|
7
|
-
xs?: number;
|
|
8
|
-
sm?: number;
|
|
9
|
-
md?: number;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import 'dayjs/locale/pt-br';
|
|
2
|
-
export default function DatePicker({ name, required, title, xs, sm, md, minDt, defaultValue, persistValue, maxDt, ...props }: {
|
|
3
|
-
minDt?: string;
|
|
4
|
-
maxDt?: string;
|
|
5
|
-
name: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
defaultValue?: string;
|
|
9
|
-
persistValue?: boolean;
|
|
10
|
-
xs?: number;
|
|
11
|
-
sm?: number;
|
|
12
|
-
md?: number;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import 'dayjs/locale/pt-br';
|
|
2
|
-
export default function GenericDatePicker({ name, required, title, xs, sm, md, minDt, defaultValue, persistValue, maxDt, ...props }: {
|
|
3
|
-
minDt?: string;
|
|
4
|
-
maxDt?: string;
|
|
5
|
-
name: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
defaultValue?: string;
|
|
9
|
-
persistValue?: boolean;
|
|
10
|
-
xs?: number;
|
|
11
|
-
sm?: number;
|
|
12
|
-
md?: number;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import 'dayjs/locale/pt-br';
|
|
2
|
-
export default function TimePicker({ name, required, title, defaultValue, xs, sm, md, }: {
|
|
3
|
-
name: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
defaultValue?: string;
|
|
7
|
-
xs?: number;
|
|
8
|
-
sm?: number;
|
|
9
|
-
md?: number;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DropzoneOptions } from 'react-dropzone';
|
|
2
|
-
export default function DropFileUpload({ name, tipoArquivo, title, required, multiple, apiURL, sizeLimit, xs, sm, md, route, tstToken, dropZoneOptions, }: {
|
|
3
|
-
name: string;
|
|
4
|
-
tipoArquivo: string;
|
|
5
|
-
title: string;
|
|
6
|
-
apiURL: string;
|
|
7
|
-
route?: string;
|
|
8
|
-
tstToken?: string;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
multiple?: boolean;
|
|
11
|
-
sizeLimit?: number;
|
|
12
|
-
dropZoneOptions?: DropzoneOptions;
|
|
13
|
-
xs?: number;
|
|
14
|
-
sm?: number;
|
|
15
|
-
md?: number;
|
|
16
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default function FileUpload({ name, tipoArquivo, title, required, multiple, apiURL, route, sizeLimit, xs, sm, md, }: {
|
|
2
|
-
name: string;
|
|
3
|
-
tipoArquivo: string;
|
|
4
|
-
title: string;
|
|
5
|
-
apiURL: string;
|
|
6
|
-
route?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
multiple?: boolean;
|
|
9
|
-
sizeLimit?: number;
|
|
10
|
-
xs?: number;
|
|
11
|
-
sm?: number;
|
|
12
|
-
md?: number;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
export default function FileUpload({ name, required, title, defaultChecked, xs, unregisterNameList, sm, md, ...props }: {
|
|
3
|
-
name: string;
|
|
4
|
-
children?: [ReactElement, ReactElement];
|
|
5
|
-
title?: string;
|
|
6
|
-
unregisterNameList: string[];
|
|
7
|
-
defaultChecked?: boolean;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
xs?: number;
|
|
10
|
-
sm?: number;
|
|
11
|
-
md?: number;
|
|
12
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export default function AutoComplete({ name, required, title, customPlaceholder, url, xs, sm, md, dataPath, }: {
|
|
2
|
-
url: string;
|
|
3
|
-
name: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
dataPath?: string;
|
|
6
|
-
customPlaceholder?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
xs?: number;
|
|
9
|
-
sm?: number;
|
|
10
|
-
md?: number;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export default function FetchAutoComplete({ name, url, title, customLoadingText, shouldRefetch, required, defaultValue, route, onChange, xs, sm, watchValue, md, disabled, }: {
|
|
2
|
-
name: string;
|
|
3
|
-
url: string;
|
|
4
|
-
title: string;
|
|
5
|
-
watchValue?: {
|
|
6
|
-
id: number | string;
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
|
-
customLoadingText?: string;
|
|
10
|
-
defaultValue?: number;
|
|
11
|
-
required?: boolean;
|
|
12
|
-
route?: string;
|
|
13
|
-
onChange?: (id: number | undefined) => void;
|
|
14
|
-
shouldRefetch?: boolean;
|
|
15
|
-
xs?: number;
|
|
16
|
-
sm?: number;
|
|
17
|
-
md?: number;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare function FixedAutoComplete({ name, title, required, list, defaultValue, onChange, xs, sm, watchValue, forceUpdate, md, }: {
|
|
2
|
-
name: string;
|
|
3
|
-
title: string;
|
|
4
|
-
watchValue?: {
|
|
5
|
-
id: number | string;
|
|
6
|
-
label: string;
|
|
7
|
-
};
|
|
8
|
-
list: Object[];
|
|
9
|
-
customLoadingText?: string;
|
|
10
|
-
defaultValue?: Object;
|
|
11
|
-
required?: boolean;
|
|
12
|
-
onChange?: (id: number | undefined) => void;
|
|
13
|
-
shouldRefetch?: boolean;
|
|
14
|
-
forceUpdate?: boolean;
|
|
15
|
-
xs?: number;
|
|
16
|
-
sm?: number;
|
|
17
|
-
md?: number;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export default function GenericFetchAutoComplete({ name, url, title, customLoadingText, shouldRefetch, required, defaultValue, route, onChange, xs, sm, watchValue, md, disabled, }: {
|
|
2
|
-
name: string;
|
|
3
|
-
url: string;
|
|
4
|
-
title: string;
|
|
5
|
-
watchValue?: {
|
|
6
|
-
id: number | string;
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
|
-
customLoadingText?: string;
|
|
10
|
-
defaultValue?: number;
|
|
11
|
-
required?: boolean;
|
|
12
|
-
route?: string;
|
|
13
|
-
onChange?: (id: number | undefined) => void;
|
|
14
|
-
shouldRefetch?: boolean;
|
|
15
|
-
xs?: number;
|
|
16
|
-
sm?: number;
|
|
17
|
-
md?: number;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare function Input({ type, numberMask, xs, sm, inputMinLength, inputMaxLength, defaultValue, md, disabled, watchValue, ...props }: {
|
|
3
|
-
type: 'cnpj' | 'cpf' | 'input' | 'email' | 'cpf_cnpj' | 'phone' | 'input' | 'number' | 'rg' | 'password' | 'cep' | 'sei';
|
|
4
|
-
name: string;
|
|
5
|
-
watchValue?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
numberMask?: string;
|
|
9
|
-
customPlaceholder?: string;
|
|
10
|
-
defaultValue?: string;
|
|
11
|
-
inputMinLength?: number;
|
|
12
|
-
inputMaxLength?: number;
|
|
13
|
-
xs?: number;
|
|
14
|
-
sm?: number;
|
|
15
|
-
md?: number;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
declare const _default: React.MemoExoticComponent<typeof Input>;
|
|
19
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export default function GenericMaskInput(props: {
|
|
3
|
-
formConfig: object;
|
|
4
|
-
defaultValue?: string;
|
|
5
|
-
maskProps: {
|
|
6
|
-
mask: string | RegExp;
|
|
7
|
-
definitions?: {
|
|
8
|
-
[key: string]: string | RegExp;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
watchValue?: string;
|
|
13
|
-
onMask?: (value: string, setMask: React.Dispatch<React.SetStateAction<string>>) => void;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default function MultInput({ name, required, title, customPlaceholder, defaultValue, xs, sm, watchValue, inputMinLength, inputMaxLength, md, ...props }: {
|
|
2
|
-
name: string;
|
|
3
|
-
title?: string;
|
|
4
|
-
watchValue?: string;
|
|
5
|
-
customPlaceholder?: string;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
defaultValue?: string;
|
|
8
|
-
inputMinLength?: number;
|
|
9
|
-
inputMaxLength?: number;
|
|
10
|
-
xs?: number;
|
|
11
|
-
sm?: number;
|
|
12
|
-
md?: number;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare function Input({ type, numberMask, xs, sm, inputMinLength, inputMaxLength, defaultValue, md, disabled, watchValue, ...props }: {
|
|
3
|
-
type: 'cnpj' | 'cpf' | 'input' | 'email' | 'cpf_cnpj' | 'phone' | 'input' | 'number' | 'rg' | 'password' | 'cep' | 'sei';
|
|
4
|
-
name: string;
|
|
5
|
-
watchValue?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
numberMask?: string;
|
|
9
|
-
customPlaceholder?: string;
|
|
10
|
-
defaultValue?: string;
|
|
11
|
-
inputMinLength?: number;
|
|
12
|
-
inputMaxLength?: number;
|
|
13
|
-
xs?: number;
|
|
14
|
-
sm?: number;
|
|
15
|
-
md?: number;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
declare const _default: React.MemoExoticComponent<typeof Input>;
|
|
19
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export default function MaskInput(props: {
|
|
3
|
-
formConfig: object;
|
|
4
|
-
defaultValue?: string;
|
|
5
|
-
maskProps: {
|
|
6
|
-
mask: string | RegExp;
|
|
7
|
-
definitions?: {
|
|
8
|
-
[key: string]: string | RegExp;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
watchValue?: string;
|
|
13
|
-
onMask?: (value: string, setMask: React.Dispatch<React.SetStateAction<string>>) => void;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default function MultInput({ name, required, title, customPlaceholder, defaultValue, xs, sm, watchValue, inputMinLength, inputMaxLength, md, ...props }: {
|
|
2
|
-
name: string;
|
|
3
|
-
title?: string;
|
|
4
|
-
watchValue?: string;
|
|
5
|
-
customPlaceholder?: string;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
defaultValue?: string;
|
|
8
|
-
inputMinLength?: number;
|
|
9
|
-
inputMaxLength?: number;
|
|
10
|
-
xs?: number;
|
|
11
|
-
sm?: number;
|
|
12
|
-
md?: number;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface OptionalInputProps {
|
|
2
|
-
title: string;
|
|
3
|
-
name: string;
|
|
4
|
-
required?: boolean;
|
|
5
|
-
xs?: number;
|
|
6
|
-
sm?: number;
|
|
7
|
-
md?: number;
|
|
8
|
-
}
|
|
9
|
-
export default function OptionalInput({ title, name, required, xs, sm, md }: OptionalInputProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
export declare function Stepper({ debugLog, test, testConfig, customMarginBottom, ...props }: {
|
|
4
|
-
customMarginBottom?: number;
|
|
5
|
-
children: ReactElement | (ReactElement | null | undefined | false)[];
|
|
6
|
-
debugData?: (data: FieldValues) => void;
|
|
7
|
-
debugLog?: boolean;
|
|
8
|
-
test?: boolean;
|
|
9
|
-
testConfig?: {
|
|
10
|
-
[key: number]: {
|
|
11
|
-
[key: string]: string | number | boolean;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare const _default: React.MemoExoticComponent<typeof Stepper>;
|
|
16
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface StepperBlockProps {
|
|
3
|
-
title: string;
|
|
4
|
-
prefix?: number;
|
|
5
|
-
children: JSX.Element | JSX.Element[];
|
|
6
|
-
optional?: boolean;
|
|
7
|
-
optionalMessage?: string | JSX.Element;
|
|
8
|
-
overrideSwitchNo?: string;
|
|
9
|
-
overrideSwitchYes?: string;
|
|
10
|
-
defaultChecked?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function StepperBlock({ optional, title, prefix, optionalMessage, defaultChecked, ...props }: StepperBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare const _default: React.MemoExoticComponent<typeof StepperBlock>;
|
|
14
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface SwitchProps {
|
|
3
|
-
name: string;
|
|
4
|
-
defaultChecked?: boolean;
|
|
5
|
-
title?: string;
|
|
6
|
-
overrideYes?: string;
|
|
7
|
-
overrideNo?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function Switch({ defaultChecked, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare const _default: React.MemoExoticComponent<typeof Switch>;
|
|
11
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare function ToggleVisibility({ invert, hasCheckValue, ...props }: {
|
|
2
|
-
switchId: string;
|
|
3
|
-
unregisterNameList: string[];
|
|
4
|
-
invert?: boolean;
|
|
5
|
-
hasCheckValue: boolean;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function SwitchWatch({ invert, checkValue, ...props }: {
|
|
8
|
-
children: JSX.Element | JSX.Element[];
|
|
9
|
-
switchId: string;
|
|
10
|
-
unregisterNameList: string[];
|
|
11
|
-
invert?: boolean;
|
|
12
|
-
checkValue?: string | number;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FilterValue } from './types';
|
|
2
|
-
export declare function FilterMenu({ filters, baseFilters, filtrar, reset }: {
|
|
3
|
-
reset: () => void;
|
|
4
|
-
filtrar: (dt: FilterValue[]) => void;
|
|
5
|
-
filters: FilterValue[];
|
|
6
|
-
baseFilters: FilterValue[];
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TableProps2 } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Tabela cujo dados devem ser passados via props
|
|
5
|
-
*/
|
|
6
|
-
export declare function GenericTable<T>({ mediaQueryLG, columns, emptyMsg, dataPath, tableName, csv, columnSize, action, useKC, statusKeyName, csvExcludeKeys, csvExcludeKeysCSV, csvExcludeKeysAll, csvCustomKeyNames, csvExcludeValidate, csvButtonTitle, csvNoZipText, csvAllButtonTitle, removeQuotes, normalize, csvShowAllButton, csvWithoutZip, itemCount, csvUpper, csvZipFileNamesKey, generateCsvZip, hideTitleCSV, csvExcludeUpper, multipleDataPath, expandTextMaxLength, collapsedSize, customMargin, customMarginMobile, filtersFunc, filters, orderBy, customErrorMsg, customTableStyle, id, initialData, isLoading, }: TableProps2): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare const _default: React.MemoExoticComponent<typeof GenericTable>;
|
|
8
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TableProps } from './types';
|
|
3
|
-
export declare function Table({ mediaQueryLG, columns, csvConfig, fetchFunc, emptyMsg, dataPath, tableName, columnSize, action, useKC, itemCount, expandTextMaxLength, collapsedSize, customMargin, customMarginMobile, filtersFunc, filters, orderBy, customErrorMsg, customTableStyle, id, initialData, isExpandable, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const _default: React.MemoExoticComponent<typeof Table>;
|
|
5
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface TableErrorStateProps {
|
|
3
|
-
error: null | {
|
|
4
|
-
status: number;
|
|
5
|
-
};
|
|
6
|
-
customErrorMsg?: string | ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare function TableErrorState({ customErrorMsg, error }: TableErrorStateProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|