@wellingtonhlc/shared-ui 0.0.4 → 0.0.6
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/README.md +1 -0
- package/dist/components/QueryWorkspace.d.ts +18 -0
- package/dist/components/QueryWorkspace.d.ts.map +1 -0
- package/dist/components/QueryWorkspace.js +15 -0
- package/dist/components/Table.d.ts +4 -0
- package/dist/components/Table.d.ts.map +1 -1
- package/dist/components/Table.js +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/styles.css +26 -0
- package/package.json +3 -4
- package/AGENTS.md +0 -21
package/README.md
CHANGED
|
@@ -117,6 +117,7 @@ Tabela de historico:
|
|
|
117
117
|
|
|
118
118
|
| Versao | Data | Tipo | Resumo | Validacao |
|
|
119
119
|
|--------|------|------|--------|-----------|
|
|
120
|
+
| `0.0.5` | 2026-06-14 | Minor pre-v1 | Adiciona `Table.Root isFramed`, `fill`, `viewportClassName` e `wrapperProps` para controlar frame e ocupacao de espaco sem classes ad-hoc. | `npm run build`. |
|
|
120
121
|
| `0.0.4` | 2026-06-14 | Minor pre-v1 | Adiciona `Table.Row isInteractive` para controlar cursor de linhas interativas, com padrao `true`. | `npm run build`. |
|
|
121
122
|
| `0.0.3` | 2026-06-14 | Breaking pre-v1 | Define API final de `Card` por slots explicitos; remove `<Card>` chamavel, `Card.Content` e `CardContentProps`. | `npm run build`; builds de `EloDesk.CRM` e `EloDesk.CRM.Portal`. |
|
|
122
123
|
| `0.0.2` | 2026-06-14 | Minor pre-v1 | Publica pacote no npm publico com novos slots de `Card` ainda retrocompativeis. | `npm run build`. |
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface QueryWorkspaceProps {
|
|
3
|
+
filters: ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface QueryFiltersPanelProps {
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare function QueryWorkspaceRoot({ filters, children, className }: QueryWorkspaceProps): import("react").JSX.Element;
|
|
13
|
+
declare function QueryFiltersPanel({ title, description, children, }: QueryFiltersPanelProps): import("react").JSX.Element;
|
|
14
|
+
export declare const QueryWorkspace: typeof QueryWorkspaceRoot & {
|
|
15
|
+
FiltersPanel: typeof QueryFiltersPanel;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=QueryWorkspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryWorkspace.d.ts","sourceRoot":"","sources":["../../src/components/QueryWorkspace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,iBAAS,kBAAkB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,+BAuBhF;AAED,iBAAS,iBAAiB,CAAC,EACzB,KAAiB,EACjB,WAAqE,EACrE,QAAQ,GACT,EAAE,sBAAsB,+BAexB;AAED,eAAO,MAAM,cAAc;;CAEzB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FilterIcon } from 'lucide-react';
|
|
3
|
+
import { cn } from '../utils/cn';
|
|
4
|
+
import { Card } from './Card';
|
|
5
|
+
import { EmptyState } from './EmptyState';
|
|
6
|
+
import { RenderCase } from './RenderCase';
|
|
7
|
+
function QueryWorkspaceRoot({ filters, children, className }) {
|
|
8
|
+
return (_jsxs("div", { className: cn('grid min-h-0 flex-1 gap-3 xl:grid-cols-[320px_minmax(0,1fr)]', className), children: [_jsx("aside", { className: "min-h-0 xl:sticky xl:top-0 xl:self-start", children: filters }), _jsx("section", { className: "flex min-h-0 flex-1 flex-col", children: _jsxs(RenderCase.Root, { children: [_jsx(RenderCase.If, { when: Boolean(children && (Array.isArray(children) ? children.length > 0 : true)), children: children }), _jsx(RenderCase.Else, { children: _jsx(Card.Root, { className: "bg-surface/60 flex flex-1 items-center justify-center p-8 shadow-sm", children: _jsx(EmptyState, { title: "Nenhum resultado", description: "Ajuste os filtros e pesquise novamente." }) }) })] }) })] }));
|
|
9
|
+
}
|
|
10
|
+
function QueryFiltersPanel({ title = 'Filtros', description = 'Refine os critérios antes de consultar os resultados.', children, }) {
|
|
11
|
+
return (_jsxs(Card.Root, { className: "w-fit min-w-52", children: [_jsxs(Card.Title, { children: [_jsx(FilterIcon, { className: "text-primary h-4 w-4" }), title] }), _jsx(Card.Body, { children: _jsxs("div", { className: "flex flex-col gap-1", children: [_jsx("p", { className: "text-foreground-muted text-xs leading-5", children: description }), children] }) })] }));
|
|
12
|
+
}
|
|
13
|
+
export const QueryWorkspace = Object.assign(QueryWorkspaceRoot, {
|
|
14
|
+
FiltersPanel: QueryFiltersPanel,
|
|
15
|
+
});
|
|
@@ -3,7 +3,11 @@ import { Pagination } from './Pagination';
|
|
|
3
3
|
interface TableRootProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
4
4
|
chrome?: 'default' | 'flat';
|
|
5
5
|
density?: 'default' | 'compact';
|
|
6
|
+
fill?: boolean;
|
|
7
|
+
isFramed?: boolean;
|
|
8
|
+
viewportClassName?: string;
|
|
6
9
|
wrapperClassName?: string;
|
|
10
|
+
wrapperProps?: HTMLAttributes<HTMLDivElement>;
|
|
7
11
|
}
|
|
8
12
|
interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
9
13
|
isInteractive?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/components/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,UAAU,cAAe,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IACpE,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/components/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,UAAU,cAAe,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IACpE,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;CAC/C;AA2ED,UAAU,aAAc,SAAQ,cAAc,CAAC,mBAAmB,CAAC;IACjE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAmDD,UAAU,gBAAiB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IACxE,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAkBD,eAAO,MAAM,KAAK;;;;;;;;;;;CAWjB,CAAC"}
|
package/dist/components/Table.js
CHANGED
|
@@ -3,11 +3,12 @@ import { Children, forwardRef, isValidElement, } from 'react';
|
|
|
3
3
|
import { cn } from '../utils/cn';
|
|
4
4
|
import { Button } from './Button';
|
|
5
5
|
import { Pagination } from './Pagination';
|
|
6
|
-
const Root = forwardRef(({ children, chrome = 'default', className, density = 'default', wrapperClassName, ...props }, ref) => {
|
|
6
|
+
const Root = forwardRef(({ children, chrome = 'default', className, density = 'default', fill = true, isFramed = true, viewportClassName, wrapperClassName, wrapperProps, ...props }, ref) => {
|
|
7
7
|
const childNodes = Children.toArray(children);
|
|
8
8
|
const tableChildren = childNodes.filter((child) => !isValidElement(child) || child.type !== Pagination);
|
|
9
9
|
const paginationChildren = childNodes.filter((child) => isValidElement(child) && child.type === Pagination);
|
|
10
|
-
|
|
10
|
+
const { className: wrapperPropsClassName, ...resolvedWrapperProps } = wrapperProps ?? {};
|
|
11
|
+
return (_jsxs("div", { ...resolvedWrapperProps, className: cn('bg-surface flex w-full min-w-0 flex-col overflow-hidden', fill && 'h-full min-h-0 grow', isFramed && 'border-app-border rounded-[var(--radius)] border', isFramed && chrome === 'default' && 'shadow-[0_4px_6px_-1px_rgb(0_0_0/0.07),0_2px_4px_-2px_rgb(0_0_0/0.05)]', density === 'compact' && '[&_td]:py-2 [&_th]:py-2', wrapperPropsClassName, wrapperClassName), children: [_jsx("div", { className: cn('min-h-0 flex-1 overflow-auto', viewportClassName), children: _jsx("table", { ref: ref, className: cn('w-full border-separate border-spacing-0 caption-bottom text-sm text-foreground', className), ...props, children: tableChildren }) }), paginationChildren.length > 0 && (_jsx("div", { className: cn('border-app-border bg-surface shrink-0 border-t px-3 py-2', density === 'compact' && 'px-3 py-2'), children: paginationChildren }))] }));
|
|
11
12
|
});
|
|
12
13
|
Root.displayName = 'Table.Root';
|
|
13
14
|
const Header = forwardRef(({ className, ...props }, ref) => _jsx("thead", { ref: ref, className: cn('bg-background-secondary', className), ...props }));
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export { Pagination, type PaginationProps } from './components/Pagination';
|
|
|
27
27
|
export { Page } from './components/Page';
|
|
28
28
|
export { PageMessage, type PageMessageProps, type PageMessageVariant } from './components/PageMessage';
|
|
29
29
|
export { PasswordInput, type PasswordInputProps } from './components/PasswordInput';
|
|
30
|
+
export { QueryWorkspace, type QueryFiltersPanelProps, type QueryWorkspaceProps } from './components/QueryWorkspace';
|
|
30
31
|
export { Sidebar, type SidebarRootProps } from './components/Sidebar';
|
|
31
32
|
export { Table } from './components/Table';
|
|
32
33
|
export { TabsUnderlined, TabsUnderline, UnderlinedTabs, type TabsUnderlinedProps, type UnderlinedTabItem } from './components/TabsUnderlined';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,KAAK,oBAAoB,EAAE,KAAK,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC3J,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,wBAAwB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACz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AuC,CAAC;AAK/C,cAAc,+BAA+B,CAAC;AAI9C,OAAO,EACL,IAAI,EACJ,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,WAAW,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,7 @@ export { Pagination } from './components/Pagination';
|
|
|
27
27
|
export { Page } from './components/Page';
|
|
28
28
|
export { PageMessage } from './components/PageMessage';
|
|
29
29
|
export { PasswordInput } from './components/PasswordInput';
|
|
30
|
+
export { QueryWorkspace } from './components/QueryWorkspace';
|
|
30
31
|
export { Sidebar } from './components/Sidebar';
|
|
31
32
|
export { Table } from './components/Table';
|
|
32
33
|
export { TabsUnderlined, TabsUnderline, UnderlinedTabs } from './components/TabsUnderlined';
|
package/dist/styles.css
CHANGED
|
@@ -1232,6 +1232,9 @@ h2.react-datepicker__current-month {
|
|
|
1232
1232
|
.w-\[min\(10rem\,24vw\)\] {
|
|
1233
1233
|
width: min(10rem, 24vw);
|
|
1234
1234
|
}
|
|
1235
|
+
.w-fit {
|
|
1236
|
+
width: fit-content;
|
|
1237
|
+
}
|
|
1235
1238
|
.w-full {
|
|
1236
1239
|
width: 100%;
|
|
1237
1240
|
}
|
|
@@ -1740,6 +1743,9 @@ h2.react-datepicker__current-month {
|
|
|
1740
1743
|
.p-6 {
|
|
1741
1744
|
padding: calc(var(--spacing) * 6);
|
|
1742
1745
|
}
|
|
1746
|
+
.p-8 {
|
|
1747
|
+
padding: calc(var(--spacing) * 8);
|
|
1748
|
+
}
|
|
1743
1749
|
.px-1\.5 {
|
|
1744
1750
|
padding-inline: calc(var(--spacing) * 1.5);
|
|
1745
1751
|
}
|
|
@@ -2757,6 +2763,26 @@ h2.react-datepicker__current-month {
|
|
|
2757
2763
|
width: calc(var(--spacing) * 72);
|
|
2758
2764
|
}
|
|
2759
2765
|
}
|
|
2766
|
+
.xl\:sticky {
|
|
2767
|
+
@media (width >= 80rem) {
|
|
2768
|
+
position: sticky;
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
.xl\:top-0 {
|
|
2772
|
+
@media (width >= 80rem) {
|
|
2773
|
+
top: calc(var(--spacing) * 0);
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
.xl\:grid-cols-\[320px_minmax\(0\,1fr\)\] {
|
|
2777
|
+
@media (width >= 80rem) {
|
|
2778
|
+
grid-template-columns: 320px minmax(0,1fr);
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
.xl\:self-start {
|
|
2782
|
+
@media (width >= 80rem) {
|
|
2783
|
+
align-self: flex-start;
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2760
2786
|
.dark\:border-amber-500\/30 {
|
|
2761
2787
|
@media (prefers-color-scheme: dark) {
|
|
2762
2788
|
border-color: color-mix(in srgb, oklch(76.9% 0.188 70.08) 30%, transparent);
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wellingtonhlc/shared-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
|
-
"README.md"
|
|
11
|
-
"AGENTS.md"
|
|
10
|
+
"README.md"
|
|
12
11
|
],
|
|
13
12
|
"repository": {
|
|
14
13
|
"type": "git",
|
|
@@ -63,4 +62,4 @@
|
|
|
63
62
|
"react-hook-form": "^7.78.0",
|
|
64
63
|
"sonner": "^2.0.7"
|
|
65
64
|
}
|
|
66
|
-
}
|
|
65
|
+
}
|
package/AGENTS.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# EloDesk Shared UI - Guia para Agentes
|
|
2
|
-
|
|
3
|
-
Leia antes de qualquer mudanca neste pacote.
|
|
4
|
-
|
|
5
|
-
## Projeto
|
|
6
|
-
|
|
7
|
-
Pacote interno de componentes visuais genericos compartilhados por `EloDesk.CRM` e `EloDesk.CRM.Portal`.
|
|
8
|
-
|
|
9
|
-
## Regras
|
|
10
|
-
|
|
11
|
-
- Manter apenas infraestrutura visual generica: componentes base, tokens, helpers de classe e presets.
|
|
12
|
-
- Nao adicionar services HTTP, rotas, permissoes, schemas de dominio ou regras de negocio.
|
|
13
|
-
- Nao mover componentes acoplados a `customer`, `supplier`, `item`, PDV, financeiro, estoque, licencas, suporte ou relatorios.
|
|
14
|
-
- Preservar compatibilidade incremental com os consumidores. Antes de remover props ou variantes, migrar os apps e atualizar a spec.
|
|
15
|
-
- Validar com `npm run build` neste pacote e no consumidor afetado sempre que possivel.
|
|
16
|
-
|
|
17
|
-
## Commits
|
|
18
|
-
|
|
19
|
-
Conventional Commits em portugues, sem tags de IA.
|
|
20
|
-
Ver: `C:\Projetos\EloDesk CRM\EloDesk.CRM.Docs\governance\rule-commits.md`
|
|
21
|
-
|