nexaas-ui-components 1.0.85 → 1.0.86
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/index.cjs +39 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +43 -32
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -6,13 +6,13 @@ import { DateInput3, DateRangePicker3, DatePicker3 } from '@blueprintjs/datetime
|
|
|
6
6
|
import { Controller } from 'react-hook-form';
|
|
7
7
|
import { create } from 'zustand';
|
|
8
8
|
import { parse, format, set, sub, startOfWeek, endOfWeek, startOfMonth, endOfMonth, subYears } from 'date-fns';
|
|
9
|
-
import { Switch, Popover, PopoverButton, PopoverPanel, Listbox, ListboxOptions, Combobox, Transition, Menu as Menu$1, MenuButton, MenuItems, MenuItem, TabGroup, TabList, Tab, TabPanels, TabPanel, ListboxOption, Dialog } from '@headlessui/react';
|
|
9
|
+
import { Switch, Popover as Popover$1, PopoverButton, PopoverPanel, Listbox, ListboxOptions, Combobox, Transition, Menu as Menu$1, MenuButton, MenuItems, MenuItem, TabGroup, TabList, Tab, TabPanels, TabPanel, ListboxOption, Dialog } from '@headlessui/react';
|
|
10
10
|
import { Float } from '@headlessui-float/react';
|
|
11
|
+
import { Tooltip } from 'react-tooltip';
|
|
11
12
|
import IntlCurrencyInputRaw from 'react-intl-currency-input';
|
|
12
13
|
import * as lodashNamespace from 'lodash';
|
|
13
14
|
import InputMask from 'react-input-mask';
|
|
14
15
|
import Modal from 'react-modal';
|
|
15
|
-
import { Tooltip } from 'react-tooltip';
|
|
16
16
|
import Select, { components } from 'react-select';
|
|
17
17
|
import AsyncSelect from 'react-select/async';
|
|
18
18
|
import { useReactTable, getExpandedRowModel, getFacetedUniqueValues, getFacetedRowModel, getFilteredRowModel, getCoreRowModel, flexRender } from '@tanstack/react-table';
|
|
@@ -131,8 +131,11 @@ var variants = {
|
|
|
131
131
|
successOutline: {
|
|
132
132
|
text: "active:shadow-none text-success-500 font-bold bg-surface border-[0.5px] border-success-500 hover:bg-success-100 active:bg-success-500 active:text-white active:border-transparent disabled:opacity-50 disabled:bg-surface disabled:text-success-500"
|
|
133
133
|
},
|
|
134
|
+
// Node 412:5067 — faltava o véu branco no default (ficava warning-500 chapado, enquanto
|
|
135
|
+
// danger/success já tinham o gradiente). Mesmo padrão dos dois: ::before com
|
|
136
|
+
// mix-blend-plus-lighter, zerado no hover (que troca pro gradiente opaco) e no active.
|
|
134
137
|
warn: {
|
|
135
|
-
text: "shadow-[0_1px_1.5px_0_rgba(242,153,20,0.2)] text-white bg-warning-500 hover:bg-gradient-to-b hover:from-warning-start hover:to-warning-end hover:shadow-[0_2px_3px_0_rgba(56,61,77,0.12)] active:bg-warning-600 active:shadow-none disabled:opacity-50 disabled:shadow-none"
|
|
138
|
+
text: "relative isolate shadow-[0_1px_1.5px_0_rgba(242,153,20,0.2)] text-white bg-warning-500 before:content-[''] before:absolute before:inset-0 before:-z-10 before:rounded-lg before:pointer-events-none before:mix-blend-plus-lighter before:bg-gradient-to-b before:from-[rgba(255,255,255,0.15)] before:to-[rgba(255,255,255,0)] hover:bg-gradient-to-b hover:from-warning-start hover:to-warning-end hover:shadow-[0_2px_3px_0_rgba(56,61,77,0.12)] hover:before:opacity-0 active:bg-warning-600 active:shadow-none active:before:opacity-0 disabled:opacity-50 disabled:shadow-none"
|
|
136
139
|
},
|
|
137
140
|
blue: {
|
|
138
141
|
text: "shadow-button bg-blue-500 text-accent-label hover:bg-blue-600 active:bg-blue-600 text-bold"
|
|
@@ -1272,6 +1275,26 @@ var Checkbox = ({
|
|
|
1272
1275
|
}
|
|
1273
1276
|
) })
|
|
1274
1277
|
] }) });
|
|
1278
|
+
var Popover = ({
|
|
1279
|
+
id,
|
|
1280
|
+
displayArrow = true,
|
|
1281
|
+
openOnClick = false
|
|
1282
|
+
}) => {
|
|
1283
|
+
const style = {
|
|
1284
|
+
noArrow: "hidden"
|
|
1285
|
+
};
|
|
1286
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
1287
|
+
Tooltip,
|
|
1288
|
+
{
|
|
1289
|
+
id,
|
|
1290
|
+
className: "absolute bg-neutral-700 text-p-md text-neutral-0 rounded-lg shadow-dropdown py-[6px] px-3 max-w-[430px] break-words whitespace-normal",
|
|
1291
|
+
classNameArrow: !displayArrow ? style.noArrow : "",
|
|
1292
|
+
openOnClick,
|
|
1293
|
+
delayHide: 0,
|
|
1294
|
+
delayShow: 0
|
|
1295
|
+
}
|
|
1296
|
+
) });
|
|
1297
|
+
};
|
|
1275
1298
|
var FilterCalendar = ({
|
|
1276
1299
|
icon,
|
|
1277
1300
|
label,
|
|
@@ -1528,7 +1551,7 @@ var FilterCalendar = ({
|
|
|
1528
1551
|
};
|
|
1529
1552
|
const chipLabel = calendarLabel ? calendarLabel : ((_b = field == null ? void 0 : field.value) == null ? void 0 : _b.length) > 0 ? (_c = field == null ? void 0 : field.value) == null ? void 0 : _c.map((item) => item !== null ? format(item, "dd/MM/yyyy") : "").join(" - ") : label;
|
|
1530
1553
|
return /* @__PURE__ */ jsx(
|
|
1531
|
-
Popover,
|
|
1554
|
+
Popover$1,
|
|
1532
1555
|
{
|
|
1533
1556
|
className: clsx9(
|
|
1534
1557
|
{ ["w-full"]: isMobileSize },
|
|
@@ -1566,6 +1589,9 @@ var FilterCalendar = ({
|
|
|
1566
1589
|
{
|
|
1567
1590
|
type: "button",
|
|
1568
1591
|
"aria-label": "Limpar",
|
|
1592
|
+
"data-tooltip-id": `filter-calendar-clear-${name}`,
|
|
1593
|
+
"data-tooltip-content": "Limpar",
|
|
1594
|
+
"data-tooltip-place": "top",
|
|
1569
1595
|
onClick: (e) => {
|
|
1570
1596
|
e.stopPropagation();
|
|
1571
1597
|
e.preventDefault();
|
|
@@ -1578,7 +1604,8 @@ var FilterCalendar = ({
|
|
|
1578
1604
|
),
|
|
1579
1605
|
children: /* @__PURE__ */ jsx("span", { className: "flex h-full w-7 items-center justify-center rounded-[6px] text-white", children: /* @__PURE__ */ jsx("i", { className: "uil uil-times text-[18px]" }) })
|
|
1580
1606
|
}
|
|
1581
|
-
)
|
|
1607
|
+
),
|
|
1608
|
+
hasValue && clearButton && /* @__PURE__ */ jsx(Popover, { id: `filter-calendar-clear-${name}` })
|
|
1582
1609
|
] }) }),
|
|
1583
1610
|
open && /* @__PURE__ */ jsx(Float.Content, { children: /* @__PURE__ */ jsx(PopoverPanel, { className: "p-3 whitespace-nowrap bg-surface rounded-lg shadow-dropdown border-[0.5px] border-neutral-200", children: ({ close }) => {
|
|
1584
1611
|
const onClose = () => {
|
|
@@ -1860,7 +1887,7 @@ var FilterOptions = ({
|
|
|
1860
1887
|
var _a, _b;
|
|
1861
1888
|
let hasValue = isMulti ? ((_a = field == null ? void 0 : field.value) == null ? void 0 : _a.length) > 0 : !!((_b = field == null ? void 0 : field.value) == null ? void 0 : _b.id);
|
|
1862
1889
|
return /* @__PURE__ */ jsx(
|
|
1863
|
-
Popover,
|
|
1890
|
+
Popover$1,
|
|
1864
1891
|
{
|
|
1865
1892
|
className: clsx9(
|
|
1866
1893
|
{ ["w-full"]: isMobileSize },
|
|
@@ -2249,7 +2276,7 @@ var FilterSelect = ({
|
|
|
2249
2276
|
var _a, _b;
|
|
2250
2277
|
let hasValue = isMulti ? ((_a = field == null ? void 0 : field.value) == null ? void 0 : _a.length) > 0 : !!((_b = field == null ? void 0 : field.value) == null ? void 0 : _b.id);
|
|
2251
2278
|
return /* @__PURE__ */ jsx(
|
|
2252
|
-
Popover,
|
|
2279
|
+
Popover$1,
|
|
2253
2280
|
{
|
|
2254
2281
|
className: clsx9(
|
|
2255
2282
|
{ ["w-full"]: isMobileSize },
|
|
@@ -2290,6 +2317,9 @@ var FilterSelect = ({
|
|
|
2290
2317
|
{
|
|
2291
2318
|
type: "button",
|
|
2292
2319
|
"aria-label": clearLabel,
|
|
2320
|
+
"data-tooltip-id": `filter-select-clear-${name}`,
|
|
2321
|
+
"data-tooltip-content": clearLabel,
|
|
2322
|
+
"data-tooltip-place": "top",
|
|
2293
2323
|
onClick: (e) => {
|
|
2294
2324
|
e.stopPropagation();
|
|
2295
2325
|
e.preventDefault();
|
|
@@ -2305,7 +2335,8 @@ var FilterSelect = ({
|
|
|
2305
2335
|
),
|
|
2306
2336
|
children: /* @__PURE__ */ jsx("span", { className: "flex h-full w-7 items-center justify-center rounded-[6px] text-white", children: /* @__PURE__ */ jsx("i", { className: "uil uil-times text-[18px]" }) })
|
|
2307
2337
|
}
|
|
2308
|
-
)
|
|
2338
|
+
),
|
|
2339
|
+
hasValue && clearButton && /* @__PURE__ */ jsx(Popover, { id: `filter-select-clear-${name}` })
|
|
2309
2340
|
] }) }),
|
|
2310
2341
|
open && /* @__PURE__ */ jsx(Float.Content, { children: /* @__PURE__ */ jsx(
|
|
2311
2342
|
PopoverPanel,
|
|
@@ -3165,26 +3196,6 @@ var ModalDialog = ({
|
|
|
3165
3196
|
)
|
|
3166
3197
|
] });
|
|
3167
3198
|
};
|
|
3168
|
-
var Popover4 = ({
|
|
3169
|
-
id,
|
|
3170
|
-
displayArrow = true,
|
|
3171
|
-
openOnClick = false
|
|
3172
|
-
}) => {
|
|
3173
|
-
const style = {
|
|
3174
|
-
noArrow: "hidden"
|
|
3175
|
-
};
|
|
3176
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
3177
|
-
Tooltip,
|
|
3178
|
-
{
|
|
3179
|
-
id,
|
|
3180
|
-
className: "absolute bg-neutral-700 text-p-md text-neutral-0 rounded-lg shadow-dropdown py-[6px] px-3 max-w-[430px] break-words whitespace-normal",
|
|
3181
|
-
classNameArrow: !displayArrow ? style.noArrow : "",
|
|
3182
|
-
openOnClick,
|
|
3183
|
-
delayHide: 0,
|
|
3184
|
-
delayShow: 0
|
|
3185
|
-
}
|
|
3186
|
-
) });
|
|
3187
|
-
};
|
|
3188
3199
|
|
|
3189
3200
|
// src/components/Select/Select.styles.ts
|
|
3190
3201
|
var customStyles = {
|
|
@@ -5080,7 +5091,7 @@ function CopyPopover({ children, valueToCopy }) {
|
|
|
5080
5091
|
"data-tooltip-content": copied ? "Copiado" : "Copiar",
|
|
5081
5092
|
"data-tooltip-place": "top",
|
|
5082
5093
|
children: [
|
|
5083
|
-
/* @__PURE__ */ jsx(
|
|
5094
|
+
/* @__PURE__ */ jsx(Popover, { id: "copy-id" }),
|
|
5084
5095
|
/* @__PURE__ */ jsx("div", { className: "text-neutral-400 text-xs", children })
|
|
5085
5096
|
]
|
|
5086
5097
|
}
|
|
@@ -5092,7 +5103,7 @@ function CopyPopover({ children, valueToCopy }) {
|
|
|
5092
5103
|
"data-tooltip-content": copied ? "Copiado" : "Copiar",
|
|
5093
5104
|
"data-tooltip-place": "top",
|
|
5094
5105
|
children: [
|
|
5095
|
-
/* @__PURE__ */ jsx(
|
|
5106
|
+
/* @__PURE__ */ jsx(Popover, { id: "icon-id" }),
|
|
5096
5107
|
/* @__PURE__ */ jsx("i", { className: "uil uil-copy text-base text-blue-500 cursor-pointer -mt-[1px]" })
|
|
5097
5108
|
]
|
|
5098
5109
|
}
|
|
@@ -6052,7 +6063,7 @@ function InfoIcon({
|
|
|
6052
6063
|
"data-tooltip-html": content,
|
|
6053
6064
|
"data-tooltip-place": "top",
|
|
6054
6065
|
children: [
|
|
6055
|
-
/* @__PURE__ */ jsx(
|
|
6066
|
+
/* @__PURE__ */ jsx(Popover, { id }),
|
|
6056
6067
|
/* @__PURE__ */ jsx("i", { className: "uil uil-info-circle text-p-lg text-neutral-400" })
|
|
6057
6068
|
]
|
|
6058
6069
|
}
|
|
@@ -7540,6 +7551,6 @@ function ControlledInput({
|
|
|
7540
7551
|
}
|
|
7541
7552
|
ControlledInput.displayName = "ControlledInput";
|
|
7542
7553
|
|
|
7543
|
-
export { Accordion, Badge, Button, ButtonLink, Calendar, Checkbox, ControlledInput, CopyPopover, DataTable, DataTablePagination, DatePickerInput, EditableButton, EditableText, EditableTextSelect, FileUpload, FilterCalendar, FilterOptions, FilterSelect, InfoIcon, Input, InputMoney, InputNumber, InputPercentage, InputTag, Item, Logo, MaskedInput, Menu, ModalDialog, MultiSelect, MultiSelectBottom, PageBox, PageHeader, PaginationSelect,
|
|
7554
|
+
export { Accordion, Badge, Button, ButtonLink, Calendar, Checkbox, ControlledInput, CopyPopover, DataTable, DataTablePagination, DatePickerInput, EditableButton, EditableText, EditableTextSelect, FileUpload, FilterCalendar, FilterOptions, FilterSelect, InfoIcon, Input, InputMoney, InputNumber, InputPercentage, InputTag, Item, Logo, MaskedInput, Menu, ModalDialog, MultiSelect, MultiSelectBottom, PageBox, PageHeader, PaginationSelect, Popover, ProgressBar, Radio, RocketIcon, SelectField, SelectFieldBip, SimpleTab, SkeletonDetails, SkeletonList, SkeletonRegister, SpinnerIcon, StatusBall, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TextArea, Timeline, Toggle, ValueContainer4 as ValueContainer, sizes2 as sizes, translateVariant };
|
|
7544
7555
|
//# sourceMappingURL=index.js.map
|
|
7545
7556
|
//# sourceMappingURL=index.js.map
|