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.cjs
CHANGED
|
@@ -9,11 +9,11 @@ var zustand = require('zustand');
|
|
|
9
9
|
var dateFns = require('date-fns');
|
|
10
10
|
var react = require('@headlessui/react');
|
|
11
11
|
var react$1 = require('@headlessui-float/react');
|
|
12
|
+
var reactTooltip = require('react-tooltip');
|
|
12
13
|
var IntlCurrencyInputRaw = require('react-intl-currency-input');
|
|
13
14
|
var lodashNamespace = require('lodash');
|
|
14
15
|
var InputMask = require('react-input-mask');
|
|
15
16
|
var Modal = require('react-modal');
|
|
16
|
-
var reactTooltip = require('react-tooltip');
|
|
17
17
|
var Select = require('react-select');
|
|
18
18
|
var AsyncSelect = require('react-select/async');
|
|
19
19
|
var reactTable = require('@tanstack/react-table');
|
|
@@ -163,8 +163,11 @@ var variants = {
|
|
|
163
163
|
successOutline: {
|
|
164
164
|
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"
|
|
165
165
|
},
|
|
166
|
+
// Node 412:5067 — faltava o véu branco no default (ficava warning-500 chapado, enquanto
|
|
167
|
+
// danger/success já tinham o gradiente). Mesmo padrão dos dois: ::before com
|
|
168
|
+
// mix-blend-plus-lighter, zerado no hover (que troca pro gradiente opaco) e no active.
|
|
166
169
|
warn: {
|
|
167
|
-
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"
|
|
170
|
+
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"
|
|
168
171
|
},
|
|
169
172
|
blue: {
|
|
170
173
|
text: "shadow-button bg-blue-500 text-accent-label hover:bg-blue-600 active:bg-blue-600 text-bold"
|
|
@@ -1304,6 +1307,26 @@ var Checkbox = ({
|
|
|
1304
1307
|
}
|
|
1305
1308
|
) })
|
|
1306
1309
|
] }) });
|
|
1310
|
+
var Popover = ({
|
|
1311
|
+
id,
|
|
1312
|
+
displayArrow = true,
|
|
1313
|
+
openOnClick = false
|
|
1314
|
+
}) => {
|
|
1315
|
+
const style = {
|
|
1316
|
+
noArrow: "hidden"
|
|
1317
|
+
};
|
|
1318
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1319
|
+
reactTooltip.Tooltip,
|
|
1320
|
+
{
|
|
1321
|
+
id,
|
|
1322
|
+
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",
|
|
1323
|
+
classNameArrow: !displayArrow ? style.noArrow : "",
|
|
1324
|
+
openOnClick,
|
|
1325
|
+
delayHide: 0,
|
|
1326
|
+
delayShow: 0
|
|
1327
|
+
}
|
|
1328
|
+
) });
|
|
1329
|
+
};
|
|
1307
1330
|
var FilterCalendar = ({
|
|
1308
1331
|
icon,
|
|
1309
1332
|
label,
|
|
@@ -1598,6 +1621,9 @@ var FilterCalendar = ({
|
|
|
1598
1621
|
{
|
|
1599
1622
|
type: "button",
|
|
1600
1623
|
"aria-label": "Limpar",
|
|
1624
|
+
"data-tooltip-id": `filter-calendar-clear-${name}`,
|
|
1625
|
+
"data-tooltip-content": "Limpar",
|
|
1626
|
+
"data-tooltip-place": "top",
|
|
1601
1627
|
onClick: (e) => {
|
|
1602
1628
|
e.stopPropagation();
|
|
1603
1629
|
e.preventDefault();
|
|
@@ -1610,7 +1636,8 @@ var FilterCalendar = ({
|
|
|
1610
1636
|
),
|
|
1611
1637
|
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-full w-7 items-center justify-center rounded-[6px] text-white", children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "uil uil-times text-[18px]" }) })
|
|
1612
1638
|
}
|
|
1613
|
-
)
|
|
1639
|
+
),
|
|
1640
|
+
hasValue && clearButton && /* @__PURE__ */ jsxRuntime.jsx(Popover, { id: `filter-calendar-clear-${name}` })
|
|
1614
1641
|
] }) }),
|
|
1615
1642
|
open && /* @__PURE__ */ jsxRuntime.jsx(react$1.Float.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(react.PopoverPanel, { className: "p-3 whitespace-nowrap bg-surface rounded-lg shadow-dropdown border-[0.5px] border-neutral-200", children: ({ close }) => {
|
|
1616
1643
|
const onClose = () => {
|
|
@@ -2322,6 +2349,9 @@ var FilterSelect = ({
|
|
|
2322
2349
|
{
|
|
2323
2350
|
type: "button",
|
|
2324
2351
|
"aria-label": clearLabel,
|
|
2352
|
+
"data-tooltip-id": `filter-select-clear-${name}`,
|
|
2353
|
+
"data-tooltip-content": clearLabel,
|
|
2354
|
+
"data-tooltip-place": "top",
|
|
2325
2355
|
onClick: (e) => {
|
|
2326
2356
|
e.stopPropagation();
|
|
2327
2357
|
e.preventDefault();
|
|
@@ -2337,7 +2367,8 @@ var FilterSelect = ({
|
|
|
2337
2367
|
),
|
|
2338
2368
|
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-full w-7 items-center justify-center rounded-[6px] text-white", children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "uil uil-times text-[18px]" }) })
|
|
2339
2369
|
}
|
|
2340
|
-
)
|
|
2370
|
+
),
|
|
2371
|
+
hasValue && clearButton && /* @__PURE__ */ jsxRuntime.jsx(Popover, { id: `filter-select-clear-${name}` })
|
|
2341
2372
|
] }) }),
|
|
2342
2373
|
open && /* @__PURE__ */ jsxRuntime.jsx(react$1.Float.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2343
2374
|
react.PopoverPanel,
|
|
@@ -3197,26 +3228,6 @@ var ModalDialog = ({
|
|
|
3197
3228
|
)
|
|
3198
3229
|
] });
|
|
3199
3230
|
};
|
|
3200
|
-
var Popover4 = ({
|
|
3201
|
-
id,
|
|
3202
|
-
displayArrow = true,
|
|
3203
|
-
openOnClick = false
|
|
3204
|
-
}) => {
|
|
3205
|
-
const style = {
|
|
3206
|
-
noArrow: "hidden"
|
|
3207
|
-
};
|
|
3208
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3209
|
-
reactTooltip.Tooltip,
|
|
3210
|
-
{
|
|
3211
|
-
id,
|
|
3212
|
-
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",
|
|
3213
|
-
classNameArrow: !displayArrow ? style.noArrow : "",
|
|
3214
|
-
openOnClick,
|
|
3215
|
-
delayHide: 0,
|
|
3216
|
-
delayShow: 0
|
|
3217
|
-
}
|
|
3218
|
-
) });
|
|
3219
|
-
};
|
|
3220
3231
|
|
|
3221
3232
|
// src/components/Select/Select.styles.ts
|
|
3222
3233
|
var customStyles = {
|
|
@@ -5112,7 +5123,7 @@ function CopyPopover({ children, valueToCopy }) {
|
|
|
5112
5123
|
"data-tooltip-content": copied ? "Copiado" : "Copiar",
|
|
5113
5124
|
"data-tooltip-place": "top",
|
|
5114
5125
|
children: [
|
|
5115
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5126
|
+
/* @__PURE__ */ jsxRuntime.jsx(Popover, { id: "copy-id" }),
|
|
5116
5127
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-neutral-400 text-xs", children })
|
|
5117
5128
|
]
|
|
5118
5129
|
}
|
|
@@ -5124,7 +5135,7 @@ function CopyPopover({ children, valueToCopy }) {
|
|
|
5124
5135
|
"data-tooltip-content": copied ? "Copiado" : "Copiar",
|
|
5125
5136
|
"data-tooltip-place": "top",
|
|
5126
5137
|
children: [
|
|
5127
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5138
|
+
/* @__PURE__ */ jsxRuntime.jsx(Popover, { id: "icon-id" }),
|
|
5128
5139
|
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "uil uil-copy text-base text-blue-500 cursor-pointer -mt-[1px]" })
|
|
5129
5140
|
]
|
|
5130
5141
|
}
|
|
@@ -6084,7 +6095,7 @@ function InfoIcon({
|
|
|
6084
6095
|
"data-tooltip-html": content,
|
|
6085
6096
|
"data-tooltip-place": "top",
|
|
6086
6097
|
children: [
|
|
6087
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6098
|
+
/* @__PURE__ */ jsxRuntime.jsx(Popover, { id }),
|
|
6088
6099
|
/* @__PURE__ */ jsxRuntime.jsx("i", { className: "uil uil-info-circle text-p-lg text-neutral-400" })
|
|
6089
6100
|
]
|
|
6090
6101
|
}
|
|
@@ -7606,7 +7617,7 @@ exports.MultiSelectBottom = MultiSelectBottom;
|
|
|
7606
7617
|
exports.PageBox = PageBox;
|
|
7607
7618
|
exports.PageHeader = PageHeader;
|
|
7608
7619
|
exports.PaginationSelect = PaginationSelect;
|
|
7609
|
-
exports.Popover =
|
|
7620
|
+
exports.Popover = Popover;
|
|
7610
7621
|
exports.ProgressBar = ProgressBar;
|
|
7611
7622
|
exports.Radio = Radio;
|
|
7612
7623
|
exports.RocketIcon = RocketIcon;
|