@matthiaskrijgsman/mat-ui 0.0.18 → 0.0.19
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 +13 -0
- package/dist/components/inputs/InputTextArea.d.ts +2 -0
- package/dist/components/panel/PanelField.d.ts +8 -0
- package/dist/components/panel/PanelLink.d.ts +17 -0
- package/dist/components/panel/PanelStack.d.ts +7 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +3440 -3266
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +45 -25
- package/dist/index.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +4 -1
- package/package.json +1 -1
- /package/dist/components/{Panel.d.ts → panel/Panel.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -212,6 +212,7 @@ Each button variant (`primary`, `white`, `black`, `transparent`, `secondary`, `t
|
|
|
212
212
|
|-------|-------------|---------------|
|
|
213
213
|
| `--color-panel-bg` | Panel background | `#ffffff` |
|
|
214
214
|
| `--color-panel-border` | Panel border | `#e5e7eb` |
|
|
215
|
+
| `--color-panel-text` | Panel default text color (inherited by `PanelField`) | `#111827` |
|
|
215
216
|
|
|
216
217
|
#### Modal & Sidebar modal
|
|
217
218
|
|
|
@@ -231,6 +232,7 @@ Each button variant (`primary`, `white`, `black`, `transparent`, `secondary`, `t
|
|
|
231
232
|
| `--color-table-border` | Table border color | `#e5e7eb` |
|
|
232
233
|
| `--color-table-row-bg` | Row background | `#ffffff` |
|
|
233
234
|
| `--color-table-row-bg-hover` | Row background on hover | `#f9fafb` |
|
|
235
|
+
| `--color-table-row-text` | Row text color | `#111827` |
|
|
234
236
|
| `--color-table-resize-handle` | Column resize handle | `#e5e7eb` |
|
|
235
237
|
| `--color-table-resize-handle-hover` | Resize handle on hover | `#d1d5db` |
|
|
236
238
|
| `--color-table-resize-handle-active` | Resize handle while dragging | `#2563eb` |
|
|
@@ -253,3 +255,14 @@ Each button variant (`primary`, `white`, `black`, `transparent`, `secondary`, `t
|
|
|
253
255
|
| `--color-badge-black-ring` | Black badge ring | `#d6d3d1` |
|
|
254
256
|
|
|
255
257
|
> Colored badges (red, blue, green, etc.) use Tailwind color utility classes and are not token-based. They adapt to dark mode automatically via Tailwind's `dark:` variants.
|
|
258
|
+
|
|
259
|
+
#### Status
|
|
260
|
+
|
|
261
|
+
Shared color tokens for status/notification indicators. Currently used by `PanelLink`'s `status` prop, but available for any component.
|
|
262
|
+
|
|
263
|
+
| Token | Description | Light default |
|
|
264
|
+
|-------|-------------|---------------|
|
|
265
|
+
| `--color-status-error` | Error / destructive state | `#dc2626` |
|
|
266
|
+
| `--color-status-warning` | Warning state | `#f59e0b` |
|
|
267
|
+
| `--color-status-success` | Success state | `#16a34a` |
|
|
268
|
+
| `--color-status-info` | Informational state | `#2563eb` |
|
|
@@ -5,5 +5,7 @@ export type InputTextAreaProps = React.TextareaHTMLAttributes<HTMLTextAreaElemen
|
|
|
5
5
|
description?: string | React.ReactNode;
|
|
6
6
|
error?: string | React.ReactNode;
|
|
7
7
|
size?: Size;
|
|
8
|
+
autogrow?: boolean;
|
|
9
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
8
10
|
};
|
|
9
11
|
export declare const InputTextArea: (props: InputTextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type PanelFieldOrientation = 'vertical' | 'horizontal';
|
|
3
|
+
export type PanelFieldProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
label?: string | React.ReactNode;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
orientation?: PanelFieldOrientation;
|
|
7
|
+
};
|
|
8
|
+
export declare const PanelField: (props: PanelFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type TablerIcon } from "@tabler/icons-react";
|
|
3
|
+
export type PanelLinkStatus = 'error' | 'warning' | 'success' | 'info';
|
|
4
|
+
type PanelLinkBaseProps = {
|
|
5
|
+
Icon?: TablerIcon;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
status?: PanelLinkStatus;
|
|
8
|
+
};
|
|
9
|
+
type PanelLinkAnchorProps = PanelLinkBaseProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, keyof PanelLinkBaseProps> & {
|
|
10
|
+
href: string;
|
|
11
|
+
};
|
|
12
|
+
type PanelLinkButtonProps = PanelLinkBaseProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof PanelLinkBaseProps> & {
|
|
13
|
+
href?: undefined;
|
|
14
|
+
};
|
|
15
|
+
export type PanelLinkProps = PanelLinkAnchorProps | PanelLinkButtonProps;
|
|
16
|
+
export declare const PanelLink: (props: PanelLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type PanelStackProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export declare const PanelStack: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,10 @@ export { InputSelect } from "./components/inputs/InputSelect.tsx";
|
|
|
19
19
|
export { InputSelectSearchable } from "./components/inputs/InputSelectSearchable.tsx";
|
|
20
20
|
export { InputSelectSearchableAsync } from "./components/inputs/InputSelectSearchableAsync.tsx";
|
|
21
21
|
export { InputSelectOption } from "./components/inputs/InputSelectOption.tsx";
|
|
22
|
-
export { Panel } from "./components/Panel.tsx";
|
|
22
|
+
export { Panel } from "./components/panel/Panel.tsx";
|
|
23
|
+
export { PanelStack } from "./components/panel/PanelStack.tsx";
|
|
24
|
+
export { PanelField } from "./components/panel/PanelField.tsx";
|
|
25
|
+
export { PanelLink } from "./components/panel/PanelLink.tsx";
|
|
23
26
|
export { Divider } from "./components/Divider.tsx";
|
|
24
27
|
export { Tooltip } from "./components/Tooltip.tsx";
|
|
25
28
|
export { Modal } from "./components/Modal.tsx";
|