@loja-integrada/admin-components 1.0.9 → 1.0.10
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/chunk-2VOBQTBC.js +12 -0
- package/dist/{chunk-VERZSHK6.js → chunk-4ETDF3ZY.js} +1 -1
- package/dist/{chunk-ZXGG7PWF.js → chunk-6PFQJJHT.js} +1 -1
- package/dist/{chunk-UIHRQE2I.js → chunk-EHRQIKSI.js} +1 -1
- package/dist/chunk-UQTLNERO.js +8 -0
- package/dist/forms/Dropdown/Dropdown.client.d.ts +141 -0
- package/dist/forms/Dropdown/index.d.ts +1 -0
- package/dist/forms/Dropdown/index.js +7 -0
- package/dist/forms/Input/Input.d.ts +5 -0
- package/dist/forms/Input/index.js +1 -1
- package/dist/forms/InputMask/index.js +2 -2
- package/dist/forms/index.d.ts +1 -0
- package/dist/forms/index.js +7 -3
- package/dist/index.js +10 -9
- package/dist/indicators/Toast/index.js +1 -1
- package/dist/indicators/index.js +2 -2
- package/dist/layout/ActionBar/index.js +1 -1
- package/dist/layout/index.js +2 -2
- package/package.json +6 -1
- package/dist/chunk-XMNDXVVV.js +0 -8
- /package/dist/{chunk-66GVVFKI.js → chunk-WV2QQGA4.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-7Z3CCBLX.js';
|
|
2
|
+
import { a as a$3 } from './chunk-HQ53LHR2.js';
|
|
3
|
+
import { a as a$2 } from './chunk-G3GCVCTU.js';
|
|
4
|
+
import { a } from './chunk-REQIQLRI.js';
|
|
5
|
+
import { cva } from 'class-variance-authority';
|
|
6
|
+
import h, { useMemo } from 'react';
|
|
7
|
+
import k, { components } from 'react-select';
|
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
var W=cva("flex w-full cursor-pointer items-center border bg-base-1 transition-colors",{variants:{size:{small:"text-f7 h-10",default:"text-f6 h-12",large:"text-f5 h-14",xlarge:"text-f4 h-24"},variant:{default:"rounded border-card-stroke font-normal text-on-base",secondary:"rounded-md border-inverted-2 font-semibold shadow-inner hover:bg-base-3 focus:bg-base-1 focus:ring-2 focus:ring-focus focus:ring-offset-2"},disabled:{true:"pointer-events-none bg-base-3 text-on-base-2"},readOnly:{true:"pointer-events-none bg-base-2"},hasErrorState:{true:"border-danger focus:border-danger"}},defaultVariants:{variant:"default",size:"default",hasErrorState:!1,disabled:!1,readOnly:!1}}),{Option:q,DropdownIndicator:$}=components,A=o=>{let{selectProps:n}=o,t=`transform transition duration-200 ${n.menuIsOpen?"rotate-180":"rotate-0"} text-inverted-2`;return jsx($,{...o,className:"mr-2",children:jsx(a$3,{icon:"sortDown",size:5,className:t})})},J=o=>{let{isSelected:n,isDisabled:t,isFocused:p,data:s}=o;return jsxs(q,{...o,className:a("text-f6 first:mt-2 last:mb-2 py-2 px-5 font-semibold transition-colors flex items-center",t?"opacity-50 cursor-not-allowed":"hover:text-on-base hover:bg-inverted-2/5 cursor-pointer",n?"text-inverted-1":"text-inverted-2",p&&"bg-inverted-2/5"),children:[s.icon?jsx(a$3,{icon:s.icon,className:"mr-2"}):null,s.label]})},K=({options:o,isSearchable:n=!1,onChange:t,onBlur:p,size:s="default",variant:P="default",placeholder:v="Selecione um item",emptyMessage:w="Nenhuma op\xE7\xE3o dispon\xEDvel",hasError:C=!1,errorMessage:m,helpText:O,label:I,labelComplement:D,id:y,name:N,required:S=!1,disabled:c,readOnly:d,maxMenuHeight:E=300,menuPosition:M="absolute",menuPlacement:V="auto",menuWidth:G="100%",menuHorizontalPlacement:a$3,formGroupClassName:R="",value:z},B)=>{let F=useMemo(()=>Math.random().toString(36).substring(7),[]),f=y||N||F,i=C||!!m;return jsxs("div",{className:a("form-group flex flex-col",R),children:[jsx(a$1,{label:I,labelComplement:D,required:S,hasError:i,htmlFor:f,className:"mb-1"}),jsx(k,{id:f,ref:B,value:z,classNamePrefix:"select",options:o,isSearchable:n,isDisabled:c||d,maxMenuHeight:E,menuPortalTarget:document?.body,menuPosition:M,menuPlacement:V,placeholder:v,noOptionsMessage:({inputValue:e})=>e?`Nenhum resultado para "${e}"`:w,onChange:e=>t&&e&&t(e),onBlur:e=>p?.(e),components:{Option:e=>J(e),DropdownIndicator:e=>A(e)},classNames:{input:()=>"absolute !mx-0",noOptionsMessage:()=>"text-on-base-3 text-f6 font-semibold break-words",valueContainer:()=>"w-full min-h-10",singleValue:()=>"truncate",placeholder:()=>"w-full truncate pr-2 h-full text-on-base-3",control:({isFocused:e})=>a(W({variant:P,size:s,hasErrorState:i,disabled:c,readOnly:d}),e&&!i&&!d&&"border-inverted-1"),groupHeading:()=>"px-5 text-on-base-3 text-f7 font-semibold uppercase"},styles:{option:()=>({}),control:()=>({}),menu:e=>({...e,width:G,backgroundColor:"rgb(var(--color-base-1) / 100)",zIndex:999,...a$3&&a$3==="left"&&{left:0},...a$3&&a$3==="right"&&{right:0}}),menuPortal:e=>({...e,zIndex:9999}),indicatorSeparator:()=>({}),groupHeading:()=>({}),singleValue:()=>({maxWidth:"calc(100% - 6px)"}),valueContainer:e=>({...e,paddingLeft:16,display:"flex",alignItems:"center",flexWrap:"nowrap"}),placeholder:()=>({})}}),jsx(a$2,{helpText:m||O,hasError:i,className:"mt-2"})]})},Q=h.forwardRef(K),U=h.memo(Q);U.displayName="Dropdown";
|
|
11
|
+
|
|
12
|
+
export { U as a };
|
|
@@ -5,6 +5,6 @@ import { cva } from 'class-variance-authority';
|
|
|
5
5
|
import h, { useMemo } from 'react';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
|
-
var V=cva("peer text-f6 flex w-full min-w-0 appearance-none overflow-hidden rounded border border-card-stroke bg-base-1 px-4 text-on-base shadow-none outline-none transition-colors placeholder:text-on-base-3 focus-within:border-inverted-1 focus:border-inverted-1",{variants:{variant:{default:"h-12",small:"h-10",large:"h-14",xlarge:"h-24"},hasErrorState:{true:"border-danger focus:border-danger [&~.adornment]:border-danger [&~.adornment]:focus:border-danger"},disabled:{true:"pointer-events-none bg-base-3 text-on-base-2"},readOnly:{true:"bg-base-2"},prefixBorder:{true:"[&~.adornment.prefix]:border-r"},sufixBorder:{true:"[&~.adornment.sufix]:border-l"},hasPrefix:{true:"pl-[4.5rem]"},hasSufix:{true:"pr-[4.5rem]"}},compoundVariants:[{hasPrefix:!0,prefixBorder:!1,class:"pl-14"},{hasSufix:!0,sufixBorder:!1,class:"pr-14"}],defaultVariants:{variant:"default",hasErrorState:!1,disabled:!1,readOnly:!1}}),b="adornment border-card-stroke flex justify-center items-center absolute bottom-0 w-14 h-full text-f6 text-inverted-2 -mt-px peer-focus:border-inverted-1 transition-colors",k=({className:g="",formGroupClassName:I="",label:v,labelComplement:N,helpText:P,hasError:R=!1,errorMessage:o,required:n=!1,id:w,name:s,variant:
|
|
8
|
+
var V=cva("peer text-f6 flex w-full min-w-0 appearance-none overflow-hidden rounded border border-card-stroke bg-base-1 px-4 text-on-base shadow-none outline-none transition-colors placeholder:text-on-base-3 focus-within:border-inverted-1 focus:border-inverted-1",{variants:{variant:{default:"h-12",small:"h-10",large:"h-14",xlarge:"h-24"},hasErrorState:{true:"border-danger focus:border-danger [&~.adornment]:border-danger [&~.adornment]:focus:border-danger"},disabled:{true:"pointer-events-none bg-base-3 text-on-base-2"},readOnly:{true:"bg-base-2"},prefixBorder:{true:"[&~.adornment.prefix]:border-r"},sufixBorder:{true:"[&~.adornment.sufix]:border-l"},hasPrefix:{true:"pl-[4.5rem]"},hasSufix:{true:"pr-[4.5rem]"}},compoundVariants:[{hasPrefix:!0,prefixBorder:!1,class:"pl-14"},{hasSufix:!0,sufixBorder:!1,class:"pr-14"}],defaultVariants:{variant:"default",hasErrorState:!1,disabled:!1,readOnly:!1}}),b="adornment border-card-stroke flex justify-center items-center absolute bottom-0 w-14 h-full text-f6 text-inverted-2 -mt-px peer-focus:border-inverted-1 transition-colors",k=({className:g="",formGroupClassName:I="",label:v,labelComplement:N,helpText:P,hasError:R=!1,errorMessage:o,required:n=!1,id:w,name:s,variant:E="default",disabled:l,readOnly:d,type:T="text",prefix:i,sufix:p,prefixBorder:H=!0,sufixBorder:L=!0,...S},y)=>{let B=useMemo(()=>Math.random().toString(36).substring(7),[]),t=w||s||B,a$3=R||!!o,u=!!p,f=!!i,C=jsx(a,{label:v,labelComplement:N,required:n,hasError:a$3,htmlFor:t,className:"mb-1"}),F=jsx(a$1,{helpText:o||P,hasError:a$3,className:"mt-2"});return jsxs("div",{className:a$2("form-group flex flex-col",I),children:[C,jsxs("div",{className:"relative",children:[jsx("input",{ref:y,type:T,id:t,name:s,required:n,disabled:l,readOnly:d,className:a$2(V({variant:E,hasErrorState:a$3,disabled:l,readOnly:d,className:g,prefixBorder:H,sufixBorder:L,hasSufix:u,hasPrefix:f})),...S}),f?jsx("label",{htmlFor:t,className:a$2("prefix left-0",b),children:i}):null,u?jsx("label",{htmlFor:t,className:a$2("sufix right-0",b),children:p}):null]}),F]})},q=h.forwardRef(k),A=h.memo(q);A.displayName="Input";
|
|
9
9
|
|
|
10
10
|
export { A as a };
|
|
@@ -4,6 +4,6 @@ import i from 'react';
|
|
|
4
4
|
import { ToastContainer, toast } from 'react-toastify';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
var m={success:"bg-primary-light border-primary-dark",error:"bg-danger-light border-danger-dark",info:"bg-secondary-light border-secondary",warning:"bg-warning-light border-warning-dark",default:"",dark:""},l={success:"!bg-primary-dark",error:"!bg-danger-dark",info:"!bg-secondary-dark",warning:"!bg-warning-dark",default:"",dark:""},p=({...t})=>jsx(ToastContainer,{toastClassName:o=>a("border flex items-top justify-between py-3 px-4 relative rounded shadow-md mb-2",m[o?.type||"info"]),bodyClassName:"max-w-[95%] text-sm text-on-base break-words",progressClassName:o=>a(o?.defaultClassName,"!h-1",l[o?.type||"info"]),closeButton:({closeToast:o})=>jsx("div",{className:"text-on-base hover:text-on-base-2
|
|
7
|
+
var m={success:"bg-primary-light border-primary-dark",error:"bg-danger-light border-danger-dark",info:"bg-secondary-light border-secondary",warning:"bg-warning-light border-warning-dark",default:"",dark:""},l={success:"!bg-primary-dark",error:"!bg-danger-dark",info:"!bg-secondary-dark",warning:"!bg-warning-dark",default:"",dark:""},p=({...t})=>jsx(ToastContainer,{toastClassName:o=>a("border flex items-top justify-between py-3 px-4 relative rounded shadow-md mb-2",m[o?.type||"info"]),bodyClassName:"max-w-[95%] text-sm text-on-base break-words",progressClassName:o=>a(o?.defaultClassName,"!h-1",l[o?.type||"info"]),closeButton:({closeToast:o})=>jsx("div",{className:"flex cursor-pointer items-center text-on-base hover:text-on-base-2",onClick:o,children:jsx(a$1,{icon:"close",size:3})}),position:"top-right",icon:!1,...t}),h=({content:t,...o})=>{let a=o?.type||"success",n=typeof o?.autoClose!="boolean"?o?.autoClose:o?.autoClose&&5e3;toast(t,{...o,type:a,autoClose:n});},f=i.memo(p);f.displayName="Toast";
|
|
8
8
|
|
|
9
9
|
export { h as a, f as b };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a } from './chunk-L6H2NDVS.js';
|
|
2
|
+
import { a as a$1 } from './chunk-T7A7CWOV.js';
|
|
3
|
+
import s, { memo, useState, useEffect } from 'react';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var d=e=>s.isValidElement(e)&&e.type===a$1?s.cloneElement(e,{key:e.key,className:"[&_svg]:ml-0 [&_svg]:size-5 [&_svg]:p-px h-auto text-base-1 active:text-base-4 px-4 py-1 transition-colors flex-col-reverse inline-flex text-center font-normal text-f8 bg-transparent border-none hover:bg-transparent active:bg-transparent disabled:opacity-50"}):e,p=(e,o)=>{if(!Array.isArray(e))return d(e);for(let t=0;t<e.length;t++){let n;if(s.isValidElement(e[t]))if(e[t].type===a$1?n=d(e[t]):e[t].props.children?n=s.cloneElement(e[t],{key:t,children:p(e[t].props.children)}):n=e[t],o)o.push(n);else return n}},b=e=>{let o=[];return p(e,o),o},y=({onlyMobile:e=!1,children:o})=>{let[t,n]=useState(!0);useEffect(()=>{if(typeof window<"u"){let r=window.parent.document.querySelector(".botbar"),a=window.document.querySelector(".page-container");return r&&(r.style.display="none"),a&&(a.classList.remove("lg:mb-10","lg:pb-0"),n(!!a.dataset.expanded)),()=>{r&&(r.style.display=""),a&&a.classList.add("lg:mb-10","lg:pb-0");}}},[]);let f=b(o);return jsx("div",{className:"action-bar fixed inset-x-0 bottom-0 h-12 lg:h-auto pb-0-safe bg-inverted-1 lg:bg-base-1 z-50 shadow"+(e?" lg:hidden":""),children:jsxs("div",{className:`${t?a.expanded:a.default} mx-auto flex size-full items-center justify-center px-8 lg:justify-end lg:px-0`,children:[!e&&jsx("div",{className:"my-2.5 mr-8 hidden grid-flow-col gap-x-4 lg:grid [&_svg:not(.icon-loading)]:hidden",children:o}),jsx("div",{className:"flex h-full items-center justify-center lg:hidden",children:f})]})})},R=memo(y);R.displayName="ActionBar";
|
|
7
|
+
|
|
8
|
+
export { R as a };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { SelectInstance } from 'react-select';
|
|
4
|
+
import { IconProps } from '../../components/Icon';
|
|
5
|
+
import { InputLabelProps } from '../InputLabel';
|
|
6
|
+
declare const dropdownVariants: (props?: ({
|
|
7
|
+
size?: "small" | "default" | "large" | "xlarge" | null | undefined;
|
|
8
|
+
variant?: "secondary" | "default" | null | undefined;
|
|
9
|
+
disabled?: boolean | null | undefined;
|
|
10
|
+
readOnly?: boolean | null | undefined;
|
|
11
|
+
hasErrorState?: boolean | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
interface DropdownProps {
|
|
14
|
+
/**
|
|
15
|
+
* Form group custom class name
|
|
16
|
+
* */
|
|
17
|
+
formGroupClassName?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Options displayed inside dropdown
|
|
20
|
+
* */
|
|
21
|
+
options: CustomOptionProps[] | CustomGroupedOptionsProps[];
|
|
22
|
+
/**
|
|
23
|
+
* Placeholder text
|
|
24
|
+
* @default "Selecione um item"
|
|
25
|
+
* */
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Callback function triggered when an option is selected
|
|
29
|
+
* */
|
|
30
|
+
onChange?: (option: CustomOptionProps) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Callback function triggered when the dropdown loses
|
|
33
|
+
* focus
|
|
34
|
+
* */
|
|
35
|
+
onBlur?: (event: React.FocusEvent<HTMLElement>) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Changes the size of dropdown
|
|
38
|
+
* @default default
|
|
39
|
+
* */
|
|
40
|
+
size?: VariantProps<typeof dropdownVariants>['size'];
|
|
41
|
+
/**
|
|
42
|
+
* Changes the variant of dropdown
|
|
43
|
+
* @default default
|
|
44
|
+
* */
|
|
45
|
+
variant?: VariantProps<typeof dropdownVariants>['variant'];
|
|
46
|
+
/**
|
|
47
|
+
* Keep marked the selected option on clicked
|
|
48
|
+
* @default false
|
|
49
|
+
* */
|
|
50
|
+
markSelectedOption?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Makes the field writeable and return the matched options
|
|
53
|
+
* @default false
|
|
54
|
+
* */
|
|
55
|
+
isSearchable?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Disable entire dropdown
|
|
58
|
+
* @default false
|
|
59
|
+
* */
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* ReadOnly entire dropdown
|
|
63
|
+
* @default false
|
|
64
|
+
* */
|
|
65
|
+
readOnly?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The string showed if the options are empty or search result is empty
|
|
68
|
+
* @default "Nenhuma opção disponível"
|
|
69
|
+
* */
|
|
70
|
+
emptyMessage?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Help text
|
|
73
|
+
* */
|
|
74
|
+
label?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Label complement
|
|
77
|
+
* */
|
|
78
|
+
labelComplement?: InputLabelProps['labelComplement'];
|
|
79
|
+
/** Should display the label above the dropdown
|
|
80
|
+
* @default ''
|
|
81
|
+
* */
|
|
82
|
+
helpText?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Change dropdown style to error state
|
|
85
|
+
* @default false
|
|
86
|
+
* */
|
|
87
|
+
hasError?: boolean;
|
|
88
|
+
/** Should display error state and the message
|
|
89
|
+
* @default ''
|
|
90
|
+
* */
|
|
91
|
+
errorMessage?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Requires at least one option marked on dropdown
|
|
94
|
+
* @default false
|
|
95
|
+
* */
|
|
96
|
+
required?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Current value of dropdown
|
|
99
|
+
* */
|
|
100
|
+
value?: CustomOptionProps;
|
|
101
|
+
/**
|
|
102
|
+
* Max height for the options menu container
|
|
103
|
+
* */
|
|
104
|
+
maxMenuHeight?: number;
|
|
105
|
+
/**
|
|
106
|
+
* The CSS position value of the menu,
|
|
107
|
+
* when "fixed" extra layout management is required
|
|
108
|
+
* @default 'absolute'
|
|
109
|
+
* */
|
|
110
|
+
menuPosition?: 'fixed' | 'absolute';
|
|
111
|
+
/**
|
|
112
|
+
* Default placement of the menu in relation to the control.
|
|
113
|
+
* 'auto' will flip when there isn't enough space below the control.
|
|
114
|
+
* @default 'auto'
|
|
115
|
+
* */
|
|
116
|
+
menuPlacement?: 'top' | 'bottom' | 'auto';
|
|
117
|
+
/**
|
|
118
|
+
* Width of menu containing the options
|
|
119
|
+
* @default '100%'
|
|
120
|
+
* */
|
|
121
|
+
menuWidth?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Can align the menu in different positions if the menuWidth
|
|
124
|
+
* is bigger than the width of select
|
|
125
|
+
* */
|
|
126
|
+
menuHorizontalPlacement?: 'left' | 'right';
|
|
127
|
+
id?: string;
|
|
128
|
+
name?: string;
|
|
129
|
+
}
|
|
130
|
+
interface CustomOptionProps {
|
|
131
|
+
value: string | number;
|
|
132
|
+
label: string;
|
|
133
|
+
icon?: IconProps['icon'];
|
|
134
|
+
isDisabled?: boolean | undefined;
|
|
135
|
+
}
|
|
136
|
+
interface CustomGroupedOptionsProps {
|
|
137
|
+
label: string;
|
|
138
|
+
options: CustomOptionProps[];
|
|
139
|
+
}
|
|
140
|
+
declare const Dropdown: React.MemoExoticComponent<React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<SelectInstance<CustomOptionProps>>>>;
|
|
141
|
+
export { type CustomGroupedOptionsProps, type CustomOptionProps, Dropdown, type DropdownProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dropdown.client';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";export { a as Dropdown } from '../../chunk-2VOBQTBC.js';
|
|
2
|
+
import '../../chunk-7Z3CCBLX.js';
|
|
3
|
+
import '../../chunk-LTWCICTK.js';
|
|
4
|
+
import '../../chunk-HQ53LHR2.js';
|
|
5
|
+
import '../../chunk-EVEOC5I2.js';
|
|
6
|
+
import '../../chunk-G3GCVCTU.js';
|
|
7
|
+
import '../../chunk-REQIQLRI.js';
|
|
@@ -15,6 +15,11 @@ interface InputProps extends InputLabelProps, InputHelpTextProps, Omit<React.Inp
|
|
|
15
15
|
* @default default
|
|
16
16
|
* */
|
|
17
17
|
variant?: 'default' | 'small' | 'large' | 'xlarge';
|
|
18
|
+
/**
|
|
19
|
+
* Change input style to error state
|
|
20
|
+
* @default false
|
|
21
|
+
* */
|
|
22
|
+
hasError?: boolean;
|
|
18
23
|
/**
|
|
19
24
|
* Error message to display
|
|
20
25
|
* */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use client";export { a as InputMask } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
"use client";export { a as InputMask } from '../../chunk-6PFQJJHT.js';
|
|
2
|
+
import '../../chunk-4ETDF3ZY.js';
|
|
3
3
|
import '../../chunk-7Z3CCBLX.js';
|
|
4
4
|
import '../../chunk-G3GCVCTU.js';
|
|
5
5
|
import '../../chunk-REQIQLRI.js';
|
package/dist/forms/index.d.ts
CHANGED
package/dist/forms/index.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import '../chunk-
|
|
1
|
+
import '../chunk-WV2QQGA4.js';
|
|
2
|
+
export { a as Dropdown } from '../chunk-2VOBQTBC.js';
|
|
2
3
|
export { b as Select, a as SelectComponent } from '../chunk-BLEJ5LCZ.js';
|
|
3
|
-
export { a as InputMask } from '../chunk-
|
|
4
|
-
export { a as Input } from '../chunk-
|
|
4
|
+
export { a as InputMask } from '../chunk-6PFQJJHT.js';
|
|
5
|
+
export { a as Input } from '../chunk-4ETDF3ZY.js';
|
|
5
6
|
export { a as InputLabel } from '../chunk-7Z3CCBLX.js';
|
|
7
|
+
import '../chunk-LTWCICTK.js';
|
|
8
|
+
import '../chunk-HQ53LHR2.js';
|
|
9
|
+
import '../chunk-EVEOC5I2.js';
|
|
6
10
|
export { a as Checkbox } from '../chunk-DIENJUYM.js';
|
|
7
11
|
export { a as InputHelpText } from '../chunk-G3GCVCTU.js';
|
|
8
12
|
import '../chunk-REQIQLRI.js';
|
package/dist/index.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import './chunk-7RP4L6ZM.js';
|
|
2
2
|
import './chunk-DBWOW4GL.js';
|
|
3
3
|
import './chunk-4PUGMMDC.js';
|
|
4
|
-
export { a as
|
|
4
|
+
export { a as Tooltip } from './chunk-TZI6YTCW.js';
|
|
5
5
|
export { a as Breadcrumb } from './chunk-FZISHDWC.js';
|
|
6
6
|
export { a as HelpLink } from './chunk-SXBDHD2Z.js';
|
|
7
7
|
export { a as Pagination } from './chunk-ZRJQNS4S.js';
|
|
8
8
|
export { a as Stepper } from './chunk-I7PCF2VW.js';
|
|
9
9
|
import './chunk-DIFKNF3L.js';
|
|
10
10
|
export { a as IconCircular } from './chunk-BV27BOLB.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-WV2QQGA4.js';
|
|
12
|
+
export { a as Dropdown } from './chunk-2VOBQTBC.js';
|
|
12
13
|
export { b as Select, a as SelectComponent } from './chunk-BLEJ5LCZ.js';
|
|
13
|
-
export { a as InputMask } from './chunk-
|
|
14
|
-
export { a as Input } from './chunk-
|
|
14
|
+
export { a as InputMask } from './chunk-6PFQJJHT.js';
|
|
15
|
+
export { a as Input } from './chunk-4ETDF3ZY.js';
|
|
15
16
|
export { a as InputLabel } from './chunk-7Z3CCBLX.js';
|
|
17
|
+
export { a as ActionBar } from './chunk-UQTLNERO.js';
|
|
18
|
+
export { b as Box, d as BoxContent, c as BoxHeader, a as BoxSeparator } from './chunk-IGUCTFH2.js';
|
|
19
|
+
export { a as Container, b as ContainerHeader } from './chunk-3BKW5XAK.js';
|
|
20
|
+
import './chunk-L6H2NDVS.js';
|
|
16
21
|
export { a as Alert } from './chunk-FM3XVRKO.js';
|
|
17
22
|
export { a as Badge } from './chunk-M4V7OPDZ.js';
|
|
18
23
|
export { a as Tag } from './chunk-2B6HWISX.js';
|
|
19
|
-
export { b as ToastContainer, a as notify } from './chunk-UIHRQE2I.js';
|
|
20
|
-
export { a as Tooltip } from './chunk-TZI6YTCW.js';
|
|
21
|
-
export { a as ActionBar } from './chunk-XMNDXVVV.js';
|
|
22
|
-
import './chunk-L6H2NDVS.js';
|
|
23
24
|
export { a as Button } from './chunk-T7A7CWOV.js';
|
|
24
|
-
export { b as
|
|
25
|
+
export { b as ToastContainer, a as notify } from './chunk-EHRQIKSI.js';
|
|
25
26
|
export { a as DataTable } from './chunk-7SZYD2J2.js';
|
|
26
27
|
export { a as LoadingPlaceholder } from './chunk-IPIBO3ES.js';
|
|
27
28
|
export { a as Modal } from './chunk-2J6WGYVP.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";export { b as ToastContainer, a as notify } from '../../chunk-
|
|
1
|
+
"use client";export { b as ToastContainer, a as notify } from '../../chunk-EHRQIKSI.js';
|
|
2
2
|
import '../../chunk-LTWCICTK.js';
|
|
3
3
|
import '../../chunk-HQ53LHR2.js';
|
|
4
4
|
import '../../chunk-EVEOC5I2.js';
|
package/dist/indicators/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../chunk-7RP4L6ZM.js';
|
|
2
|
+
export { a as Tooltip } from '../chunk-TZI6YTCW.js';
|
|
2
3
|
export { a as Alert } from '../chunk-FM3XVRKO.js';
|
|
3
4
|
export { a as Badge } from '../chunk-M4V7OPDZ.js';
|
|
4
5
|
export { a as Tag } from '../chunk-2B6HWISX.js';
|
|
5
|
-
export { b as ToastContainer, a as notify } from '../chunk-UIHRQE2I.js';
|
|
6
|
-
export { a as Tooltip } from '../chunk-TZI6YTCW.js';
|
|
7
6
|
import '../chunk-T7A7CWOV.js';
|
|
7
|
+
export { b as ToastContainer, a as notify } from '../chunk-EHRQIKSI.js';
|
|
8
8
|
import '../chunk-LTWCICTK.js';
|
|
9
9
|
import '../chunk-HQ53LHR2.js';
|
|
10
10
|
import '../chunk-EVEOC5I2.js';
|
package/dist/layout/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../chunk-DBWOW4GL.js';
|
|
2
|
+
export { a as ActionBar } from '../chunk-UQTLNERO.js';
|
|
3
|
+
export { b as Box, d as BoxContent, c as BoxHeader, a as BoxSeparator } from '../chunk-IGUCTFH2.js';
|
|
2
4
|
export { a as Container, b as ContainerHeader } from '../chunk-3BKW5XAK.js';
|
|
3
|
-
export { a as ActionBar } from '../chunk-XMNDXVVV.js';
|
|
4
5
|
import '../chunk-L6H2NDVS.js';
|
|
5
6
|
import '../chunk-T7A7CWOV.js';
|
|
6
|
-
export { b as Box, d as BoxContent, c as BoxHeader, a as BoxSeparator } from '../chunk-IGUCTFH2.js';
|
|
7
7
|
import '../chunk-LTWCICTK.js';
|
|
8
8
|
import '../chunk-HQ53LHR2.js';
|
|
9
9
|
import '../chunk-EVEOC5I2.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loja-integrada/admin-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"author": "Loja Integrada",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"clsx": "^2.1.1",
|
|
44
44
|
"react-imask": "^7.6.1",
|
|
45
45
|
"react-modal": "^3.16.1",
|
|
46
|
+
"react-select": "^5.8.0",
|
|
46
47
|
"react-toastify": "10.0.5",
|
|
47
48
|
"tailwind-merge": "^2.3.0"
|
|
48
49
|
},
|
|
@@ -101,6 +102,10 @@
|
|
|
101
102
|
"types": "./dist/forms/Checkbox/Checkbox.d.ts",
|
|
102
103
|
"import": "./dist/forms/Checkbox/index.js"
|
|
103
104
|
},
|
|
105
|
+
"./Dropdown": {
|
|
106
|
+
"types": "./dist/forms/Dropdown/Dropdown.d.ts",
|
|
107
|
+
"import": "./dist/forms/Dropdown/index.js"
|
|
108
|
+
},
|
|
104
109
|
"./Input": {
|
|
105
110
|
"types": "./dist/forms/Input/Input.d.ts",
|
|
106
111
|
"import": "./dist/forms/Input/index.js"
|
package/dist/chunk-XMNDXVVV.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-L6H2NDVS.js';
|
|
2
|
-
import { a as a$1 } from './chunk-T7A7CWOV.js';
|
|
3
|
-
import s, { memo, useState, useEffect } from 'react';
|
|
4
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var d=e=>s.isValidElement(e)&&e.type===a$1?s.cloneElement(e,{className:"[&_svg]:ml-0 [&_svg]:size-5 [&_svg]:p-px h-auto text-base-1 active:text-base-4 px-4 py-1 transition-colors flex-col-reverse inline-flex text-center font-normal text-f8 bg-transparent border-none hover:bg-transparent active:bg-transparent"}):e,p=(e,o)=>{if(!Array.isArray(e))return d(e);for(let t=0;t<e.length;t++){let n;if(s.isValidElement(e[t]))if(e[t].type===a$1?n=d(e[t]):e[t].props.children?n=s.cloneElement(e[t],{children:p(e[t].props.children)}):n=e[t],o)o.push(n);else return n}},b=e=>{let o=[];return p(e,o),o},R=({onlyMobile:e=!1,children:o})=>{let[t,n]=useState(!0);useEffect(()=>{if(typeof window<"u"){let r=window.parent.document.querySelector(".botbar"),a=window.document.querySelector(".page-container");return r&&(r.style.display="none"),a&&(a.classList.remove("lg:mb-10","lg:pb-0"),n(!!a.dataset.expanded)),()=>{r&&(r.style.display=""),a&&a.classList.add("lg:mb-10","lg:pb-0");}}},[]);let f=b(o);return jsx("div",{className:"action-bar fixed inset-x-0 bottom-0 h-12 lg:h-auto pb-0-safe bg-inverted-1 lg:bg-base-1 z-50 shadow"+(e?" lg:hidden":""),children:jsxs("div",{className:`${t?a.expanded:a.default} mx-auto flex size-full items-center justify-center px-8 lg:justify-end lg:px-0`,children:[!e&&jsx("div",{className:"my-2.5 mr-8 hidden grid-flow-col gap-x-4 lg:grid [&_svg:not(.icon-loading)]:hidden",children:o}),jsx("div",{className:"flex h-full items-center justify-center lg:hidden",children:f})]})})},x=memo(R);x.displayName="ActionBar";
|
|
7
|
-
|
|
8
|
-
export { x as a };
|
|
File without changes
|