@fayz-ai/ui 0.31.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-UDY4KJRX.js → chunk-3XKDGBP4.js} +7 -5
- package/dist/chunk-3XKDGBP4.js.map +1 -0
- package/dist/{chunk-VDAYIQX4.js → chunk-C6PW5C5Q.js} +3 -3
- package/dist/chunk-C6PW5C5Q.js.map +1 -0
- package/dist/{chunk-NTPQRDJF.js → chunk-NXSDQ7HO.js} +4 -4
- package/dist/{chunk-NTPQRDJF.js.map → chunk-NXSDQ7HO.js.map} +1 -1
- package/dist/{chunk-VBYFN5ZL.js → chunk-PL5CUWNE.js} +138 -82
- package/dist/chunk-PL5CUWNE.js.map +1 -0
- package/dist/{chunk-ABY2HXG4.js → chunk-UFT3MA5H.js} +24 -16
- package/dist/chunk-UFT3MA5H.js.map +1 -0
- package/dist/dashboard/index.js +3 -3
- package/dist/index.js +9 -9
- package/dist/layout/AppShell.d.ts.map +1 -1
- package/dist/layout/ModulePage.d.ts +8 -1
- package/dist/layout/ModulePage.d.ts.map +1 -1
- package/dist/layout/Sidebar.d.ts +6 -1
- package/dist/layout/Sidebar.d.ts.map +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/primitives/data-table.d.ts +10 -1
- package/dist/primitives/data-table.d.ts.map +1 -1
- package/dist/primitives/date-picker.d.ts +6 -1
- package/dist/primitives/date-picker.d.ts.map +1 -1
- package/dist/primitives/header-tabs.d.ts.map +1 -1
- package/dist/primitives/index.js +3 -3
- package/dist/primitives/input.d.ts.map +1 -1
- package/dist/primitives/list-view.d.ts +3 -1
- package/dist/primitives/list-view.d.ts.map +1 -1
- package/dist/primitives/phone-field.d.ts.map +1 -1
- package/dist/stores/page-header.store.d.ts +18 -1
- package/dist/stores/page-header.store.d.ts.map +1 -1
- package/dist/styles.css +8 -1
- package/dist/theme/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-ABY2HXG4.js.map +0 -1
- package/dist/chunk-UDY4KJRX.js.map +0 -1
- package/dist/chunk-VBYFN5ZL.js.map +0 -1
- package/dist/chunk-VDAYIQX4.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useIsWide, Dropdown, DropdownTrigger, DropdownContent, DropdownSeparator, DropdownItem, Card, FilterMenuRow, FilterMenu, DataTable, Popover, PopoverTrigger, PopoverContent, Checkbox } from './chunk-
|
|
2
|
-
import { useSaveBarVisible, useCrossModuleBack, useBackHandler, Hint, PageHeaderActions } from './chunk-
|
|
1
|
+
import { useIsWide, Dropdown, DropdownTrigger, DropdownContent, DropdownSeparator, DropdownItem, Card, FilterMenuRow, FilterMenu, DataTable, Popover, PopoverTrigger, PopoverContent, Checkbox } from './chunk-3XKDGBP4.js';
|
|
2
|
+
import { useSaveBarVisible, useCrossModuleBack, useBackHandler, Hint, PageHeaderActions } from './chunk-PL5CUWNE.js';
|
|
3
3
|
import { cn, Button } from './chunk-OKZ6WQB3.js';
|
|
4
4
|
import * as React18 from 'react';
|
|
5
5
|
import React18__default, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
|
|
@@ -27,7 +27,7 @@ var Input = React18.forwardRef(
|
|
|
27
27
|
type,
|
|
28
28
|
id: inputId,
|
|
29
29
|
className: cn(
|
|
30
|
-
"flex h-
|
|
30
|
+
"flex h-9 w-full rounded-input border border-input bg-card px-3 py-1.5 text-sm text-foreground shadow-[inset_0_1px_0_rgb(0_0_0_/0.06)] ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
31
31
|
error && "border-destructive focus-visible:ring-destructive",
|
|
32
32
|
className
|
|
33
33
|
),
|
|
@@ -190,7 +190,7 @@ var SelectTrigger = React18.forwardRef(({ className, children, ...props }, ref)
|
|
|
190
190
|
{
|
|
191
191
|
ref,
|
|
192
192
|
className: cn(
|
|
193
|
-
"flex h-
|
|
193
|
+
"flex h-9 w-full items-center justify-between rounded-input border border-input bg-background px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
194
194
|
className
|
|
195
195
|
),
|
|
196
196
|
...props,
|
|
@@ -1075,7 +1075,11 @@ function PhoneField({
|
|
|
1075
1075
|
"aria-label": rest["aria-label"],
|
|
1076
1076
|
"data-testid": rest["data-testid"],
|
|
1077
1077
|
className: cn(
|
|
1078
|
-
|
|
1078
|
+
// `rounded-input`/`border-input` e não `rounded-md`/`border`: este campo
|
|
1079
|
+
// senta ao lado de um texto e de um seletor do DS, e era o único com
|
|
1080
|
+
// raio próprio — 6px contra os 12px do resto, na mesma linha da ficha.
|
|
1081
|
+
// O raio é do TEMA (`--input-radius`), que é quem sabe o desenho da casa.
|
|
1082
|
+
"flex h-9 w-full rounded-input border border-input bg-background px-3 py-1.5 text-sm outline-none focus:border-primary",
|
|
1079
1083
|
className
|
|
1080
1084
|
)
|
|
1081
1085
|
}
|
|
@@ -1448,6 +1452,7 @@ function ListView({
|
|
|
1448
1452
|
onRefresh,
|
|
1449
1453
|
refreshLabel = "Refresh",
|
|
1450
1454
|
className,
|
|
1455
|
+
rowClassName,
|
|
1451
1456
|
actions
|
|
1452
1457
|
}) {
|
|
1453
1458
|
const [internalSearch, setInternalSearch] = useState(controlledSearch ?? "");
|
|
@@ -1573,7 +1578,8 @@ function ListView({
|
|
|
1573
1578
|
selectable: selection.selectable,
|
|
1574
1579
|
selectedIds: selection.selectedIds,
|
|
1575
1580
|
onSelectedIdsChange: selection.setSelectedIds,
|
|
1576
|
-
getRowId
|
|
1581
|
+
getRowId,
|
|
1582
|
+
rowClassName
|
|
1577
1583
|
}
|
|
1578
1584
|
),
|
|
1579
1585
|
showPagination && /* @__PURE__ */ jsxs("div", { className: "-mt-px flex min-h-9 flex-col items-center gap-2 rounded-b-card border-t border-border px-3 py-2 sm:grid sm:grid-cols-[1fr_auto_1fr] sm:gap-3", children: [
|
|
@@ -1689,10 +1695,12 @@ function parseDate(s) {
|
|
|
1689
1695
|
return new Date(y, m - 1, d);
|
|
1690
1696
|
}
|
|
1691
1697
|
var TRIGGER_VARIANT = {
|
|
1692
|
-
input: "rounded-input border border-input bg-card shadow-[inset_0_1px_0_rgb(0_0_0_/0.06)] px-3
|
|
1698
|
+
input: "flex h-9 items-center rounded-input border border-input bg-card shadow-[inset_0_1px_0_rgb(0_0_0_/0.06)] px-3 text-sm w-full",
|
|
1693
1699
|
toolbar: "h-[26px] rounded-button border border-border bg-card shadow-button px-2.5 text-xs font-medium",
|
|
1694
1700
|
// Mesmas medidas e cores de FilterChip.
|
|
1695
|
-
chip: "rounded-full border border-transparent bg-muted/70 px-2.5 py-1 text-xs font-medium text-muted-foreground hover:bg-muted hover:text-foreground"
|
|
1701
|
+
chip: "rounded-full border border-transparent bg-muted/70 px-2.5 py-1 text-xs font-medium text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
1702
|
+
// O tracejado é o que diz que o texto se edita. Sem ele a data lê como rótulo.
|
|
1703
|
+
inline: "text-xs font-medium text-primary underline decoration-dashed decoration-from-font underline-offset-4 hover:opacity-80"
|
|
1696
1704
|
};
|
|
1697
1705
|
function DatePicker({ value, onChange, className, variant = "input", format = "long", defaultOpen, onOpenChange }) {
|
|
1698
1706
|
const t = useTranslation();
|
|
@@ -1766,9 +1774,9 @@ function DatePicker({ value, onChange, className, variant = "input", format = "l
|
|
|
1766
1774
|
ref: triggerRef,
|
|
1767
1775
|
type: "button",
|
|
1768
1776
|
onClick: () => setOpen((p) => !p),
|
|
1769
|
-
className: `flex items-center text-left transition-colors ${variant === "chip" ? "gap-1" : "gap-2 hover:bg-muted/30"} ${TRIGGER_VARIANT[variant]}`,
|
|
1777
|
+
className: `flex items-center text-left transition-colors ${variant === "chip" ? "gap-1" : variant === "inline" ? "" : "gap-2 hover:bg-muted/30"} ${TRIGGER_VARIANT[variant]}`,
|
|
1770
1778
|
children: [
|
|
1771
|
-
/* @__PURE__ */ jsx(Calendar, { className: `shrink-0 ${variant === "input" ? "h-3.5 w-3.5 text-muted-foreground" : "h-3 w-3 opacity-70"}` }),
|
|
1779
|
+
variant !== "inline" && /* @__PURE__ */ jsx(Calendar, { className: `shrink-0 ${variant === "input" ? "h-3.5 w-3.5 text-muted-foreground" : "h-3 w-3 opacity-70"}` }),
|
|
1772
1780
|
/* @__PURE__ */ jsx("span", { className: "whitespace-nowrap", children: value ? (format === "numeric" ? formatDateNumeric : variant === "input" ? formatDate : formatDateCompact)(selectedDate, locale) : t("common.selectDate") })
|
|
1773
1781
|
]
|
|
1774
1782
|
}
|
|
@@ -2226,7 +2234,7 @@ function SearchSelect({
|
|
|
2226
2234
|
"div",
|
|
2227
2235
|
{
|
|
2228
2236
|
className: cn(
|
|
2229
|
-
"mt-1 flex items-center gap-2 rounded-
|
|
2237
|
+
"mt-1 flex h-9 items-center gap-2 rounded-input border border-input bg-background transition-colors",
|
|
2230
2238
|
open ? "ring-2 ring-primary/20" : "hover:bg-muted/30",
|
|
2231
2239
|
disabled && "opacity-50 cursor-not-allowed"
|
|
2232
2240
|
),
|
|
@@ -2409,7 +2417,7 @@ function CurrencyInput({
|
|
|
2409
2417
|
"div",
|
|
2410
2418
|
{
|
|
2411
2419
|
className: cn(
|
|
2412
|
-
"flex items-center rounded-
|
|
2420
|
+
"flex h-9 items-center rounded-input border border-input bg-background ring-offset-background transition-colors cursor-text",
|
|
2413
2421
|
label && "mt-1",
|
|
2414
2422
|
focused && "border-ring ring-2 ring-ring ring-offset-2",
|
|
2415
2423
|
disabled && "opacity-50 cursor-not-allowed"
|
|
@@ -2431,7 +2439,7 @@ function CurrencyInput({
|
|
|
2431
2439
|
placeholder: placeholder ?? format(0),
|
|
2432
2440
|
disabled,
|
|
2433
2441
|
readOnly: false,
|
|
2434
|
-
className: "flex-1 bg-transparent px-2
|
|
2442
|
+
className: "h-full flex-1 bg-transparent px-2 text-sm outline-none text-right tabular-nums caret-primary selection:bg-primary/20",
|
|
2435
2443
|
onChange: () => {
|
|
2436
2444
|
}
|
|
2437
2445
|
}
|
|
@@ -3422,7 +3430,7 @@ function SearchCombobox({
|
|
|
3422
3430
|
onKeyDown: handleKeyDown,
|
|
3423
3431
|
placeholder,
|
|
3424
3432
|
autoFocus,
|
|
3425
|
-
className: minimal ? `w-full bg-transparent pl-2 ${chevron ? "pr-7" : "pr-3"} py-1.5 text-sm placeholder:text-muted-foreground focus:outline-none border-b border-transparent hover:border-border focus:border-foreground transition-colors` : `w-full rounded-
|
|
3433
|
+
className: minimal ? `w-full bg-transparent pl-2 ${chevron ? "pr-7" : "pr-3"} py-1.5 text-sm placeholder:text-muted-foreground focus:outline-none border-b border-transparent hover:border-border focus:border-foreground transition-colors` : `h-9 w-full rounded-input border border-input bg-background pl-8 ${chevron ? "pr-8" : "pr-3"} text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring`,
|
|
3426
3434
|
role: "combobox",
|
|
3427
3435
|
"aria-expanded": hasDropdown,
|
|
3428
3436
|
"aria-autocomplete": "list",
|
|
@@ -4272,5 +4280,5 @@ function AdaptiveFilter({
|
|
|
4272
4280
|
}
|
|
4273
4281
|
|
|
4274
4282
|
export { AdaptiveFilter, Badge, Breadcrumb, BulkActionBar, ChevronPager, CurrencyInput, DatePicker, DateRangeChip, DictateButton, DotBadge, DraftCommitBar, FILTER_RAIL_WIDTH, FilterCheckBox, FilterCheckList, FilterCheckRow, FilterChip, FilterRail, FilterRailColumn, FilterSection, INLINE_FILTER_MAX, Input, ListFilterBar, ListView, Markdown, MarkdownEditor, MiniCalendar, Modal, ModalBody, ModalClose, ModalContent, ModalDescription, ModalFlow, ModalFlowEntry, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTask, ModalTaskHeader, ModalTaskHost, ModalTitle, ModalTrigger, MultiSelect, NestedPane, PageActionBar, PersonAvatar, PersonMultiPicker, PersonPicker, PhoneField, PhoneLink, PickerDialog, PickerList, RailWorkspace, RefreshButton, RequiredFilter, RowActions, SearchCombobox, SearchField, SearchSelect, SegmentedControl, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, StatTiles, StockEntryForm, Tabs, TabsContent, TabsList, TabsTrigger, Thumbnail, TimePicker, ToastProvider, WHATSAPP_BRAND_COLOR, WhatsAppIcon, WizardSteps, abbreviatePersonName, badgeVariants, comparePersonNames, formatPhone2 as formatPhone, normalizePhone, personInitials, renderMarkdown, setActionsMenuLabel, setRowActionsLabel, toLocalISODate, useInModalTaskHost, useRowSelection };
|
|
4275
|
-
//# sourceMappingURL=chunk-
|
|
4276
|
-
//# sourceMappingURL=chunk-
|
|
4283
|
+
//# sourceMappingURL=chunk-UFT3MA5H.js.map
|
|
4284
|
+
//# sourceMappingURL=chunk-UFT3MA5H.js.map
|