@fangxinyan/lumina 0.6.1 → 0.6.3
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 +2 -1
- package/dist/{Alert-JJ7GB3UU.css → Alert-QBKIDY5H.css} +7 -0
- package/dist/Alert.cjs +3 -3
- package/dist/Alert.d.cts +3 -2
- package/dist/Alert.d.ts +3 -2
- package/dist/Alert.js +2 -2
- package/dist/AutoComplete.cjs +5 -4
- package/dist/AutoComplete.d.cts +1 -1
- package/dist/AutoComplete.d.ts +1 -1
- package/dist/AutoComplete.js +4 -3
- package/dist/Badge-DPGLV3D3.css +22 -0
- package/dist/Badge.cjs +10 -0
- package/dist/Badge.d.cts +19 -0
- package/dist/Badge.d.ts +19 -0
- package/dist/Badge.js +1 -0
- package/dist/{Button-SDQD25AG.css → Button-4Z3Q6KII.css} +56 -36
- package/dist/Button.cjs +3 -7
- package/dist/Button.d.cts +11 -15
- package/dist/Button.d.ts +11 -15
- package/dist/Button.js +2 -2
- package/dist/Calendar.cjs +3 -3
- package/dist/Calendar.js +2 -2
- package/dist/{Card-RG7ECXL2.css → Card-6RMVIHWX.css} +7 -13
- package/dist/Card.cjs +2 -6
- package/dist/Card.d.cts +7 -11
- package/dist/Card.d.ts +7 -11
- package/dist/Card.js +1 -1
- package/dist/{Cascader-VSYEKQCG.css → Cascader-3BLLA7EN.css} +77 -0
- package/dist/Cascader.cjs +5 -3
- package/dist/Cascader.d.cts +22 -4
- package/dist/Cascader.d.ts +22 -4
- package/dist/Cascader.js +4 -2
- package/dist/{Checkbox-SKJATVSN.css → Checkbox-U5EUDSYS.css} +5 -35
- package/dist/Checkbox.cjs +3 -7
- package/dist/Checkbox.d.cts +1 -18
- package/dist/Checkbox.d.ts +1 -18
- package/dist/Checkbox.js +2 -2
- package/dist/Collapse-66U5YJFY.css +53 -0
- package/dist/Collapse.cjs +11 -0
- package/dist/Collapse.d.cts +32 -0
- package/dist/Collapse.d.ts +32 -0
- package/dist/Collapse.js +2 -0
- package/dist/CommandPalette.cjs +5 -4
- package/dist/CommandPalette.js +4 -3
- package/dist/Drawer.cjs +3 -3
- package/dist/Drawer.js +2 -2
- package/dist/Empty-DC2LPORC.css +28 -0
- package/dist/Empty.cjs +2 -10
- package/dist/Empty.d.cts +1 -62
- package/dist/Empty.d.ts +1 -62
- package/dist/Empty.js +1 -1
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.ts +1 -1
- package/dist/Icon.cjs +187 -3
- package/dist/Icon.d.cts +104 -3
- package/dist/Icon.d.ts +104 -3
- package/dist/Icon.js +1 -1
- package/dist/{Image-4MN34O6P.css → Image-MRYQCRQ5.css} +78 -0
- package/dist/Image.cjs +12 -4
- package/dist/Image.d.cts +79 -6
- package/dist/Image.d.ts +79 -6
- package/dist/Image.js +2 -2
- package/dist/{Input-33CAH4O6.css → Input-HUBJ55OH.css} +25 -42
- package/dist/Input.cjs +6 -5
- package/dist/Input.d.cts +23 -26
- package/dist/Input.d.ts +23 -26
- package/dist/Input.js +3 -2
- package/dist/InputNumber.cjs +5 -4
- package/dist/InputNumber.d.cts +1 -1
- package/dist/InputNumber.d.ts +1 -1
- package/dist/InputNumber.js +4 -3
- package/dist/Message-2MZ3LFPU.css +45 -0
- package/dist/Message.cjs +23 -0
- package/dist/Message.d.cts +54 -0
- package/dist/Message.d.ts +54 -0
- package/dist/Message.js +2 -0
- package/dist/{Modal-XSDMU4XJ.css → Modal-2QNDW4SO.css} +27 -0
- package/dist/Modal.cjs +4 -4
- package/dist/Modal.d.cts +29 -4
- package/dist/Modal.d.ts +29 -4
- package/dist/Modal.js +3 -3
- package/dist/Pagination.cjs +7 -5
- package/dist/Pagination.js +6 -4
- package/dist/Popover.cjs +2 -2
- package/dist/Popover.d.cts +11 -3
- package/dist/Popover.d.ts +11 -3
- package/dist/Popover.js +1 -1
- package/dist/Radio-GVFDPAZM.css +97 -0
- package/dist/Radio.cjs +14 -0
- package/dist/Radio.d.cts +36 -0
- package/dist/Radio.d.ts +36 -0
- package/dist/Radio.js +1 -0
- package/dist/{Select-J3CCVFJ7.css → Select-Z5VYPEEY.css} +33 -24
- package/dist/Select.cjs +6 -4
- package/dist/Select.d.cts +29 -7
- package/dist/Select.d.ts +29 -7
- package/dist/Select.js +5 -3
- package/dist/Skeleton-CVWH2VWN.css +40 -0
- package/dist/Skeleton.cjs +10 -0
- package/dist/Skeleton.d.cts +30 -0
- package/dist/Skeleton.d.ts +30 -0
- package/dist/Skeleton.js +1 -0
- package/dist/Spin-3GJNMSIH.css +94 -0
- package/dist/Spin.cjs +10 -0
- package/dist/Spin.d.cts +20 -0
- package/dist/Spin.d.ts +20 -0
- package/dist/Spin.js +1 -0
- package/dist/{Table-2LPTOUIR.css → Table-ATJJQLKU.css} +0 -53
- package/dist/Table.cjs +9 -11
- package/dist/Table.d.cts +2 -21
- package/dist/Table.d.ts +2 -21
- package/dist/Table.js +8 -6
- package/dist/TablePro-3XVHYLSL.css +45 -0
- package/dist/TablePro.cjs +19 -0
- package/dist/TablePro.d.cts +21 -0
- package/dist/TablePro.d.ts +21 -0
- package/dist/TablePro.js +10 -0
- package/dist/{Tabs-RHK6XAFF.css → Tabs-BLSNI2T5.css} +0 -34
- package/dist/Tabs.cjs +2 -6
- package/dist/Tabs.d.cts +1 -16
- package/dist/Tabs.d.ts +1 -16
- package/dist/Tabs.js +1 -1
- package/dist/Tag-HDYCDPFS.css +42 -0
- package/dist/Tag.cjs +3 -7
- package/dist/Tag.d.cts +5 -14
- package/dist/Tag.d.ts +5 -14
- package/dist/Tag.js +2 -2
- package/dist/Textarea-YNET7IBH.css +54 -0
- package/dist/Textarea.cjs +15 -0
- package/dist/Textarea.d.cts +25 -0
- package/dist/Textarea.d.ts +25 -0
- package/dist/Textarea.js +2 -0
- package/dist/Theme.cjs +14 -10
- package/dist/Theme.d.cts +29 -6
- package/dist/Theme.d.ts +29 -6
- package/dist/Theme.js +1 -1
- package/dist/{Timeline-RHZAZKZ7.css → Timeline-3ZHOHPXT.css} +2 -2
- package/dist/Timeline.cjs +3 -3
- package/dist/Timeline.d.cts +1 -1
- package/dist/Timeline.d.ts +1 -1
- package/dist/Timeline.js +2 -2
- package/dist/Tooltip.cjs +2 -2
- package/dist/Tooltip.d.cts +17 -4
- package/dist/Tooltip.d.ts +17 -4
- package/dist/Tooltip.js +1 -1
- package/dist/Typography.cjs +7 -7
- package/dist/Typography.d.cts +1 -0
- package/dist/Typography.d.ts +1 -0
- package/dist/Typography.js +2 -2
- package/dist/{chunk-OVZTG5CP.cjs → chunk-2HQCUBA7.cjs} +2 -2
- package/dist/{chunk-X2U7EKCS.cjs → chunk-3YJU3D5S.cjs} +28 -5
- package/dist/chunk-45VJGBGN.js +25 -0
- package/dist/{chunk-3D77MQHO.js → chunk-46VXFTEC.js} +3 -3
- package/dist/chunk-47VG2P34.js +393 -0
- package/dist/{chunk-LZU33BX6.cjs → chunk-5DKRY67M.cjs} +4 -20
- package/dist/{chunk-TWGQZX2R.js → chunk-5H5YP2TB.js} +4 -19
- package/dist/chunk-5MN3PMF4.cjs +240 -0
- package/dist/{chunk-5A3RT4KD.js → chunk-5TKC6IEN.js} +4 -55
- package/dist/{chunk-N57NXCNC.cjs → chunk-6HMTV6P4.cjs} +3 -44
- package/dist/{chunk-RF2EY5JS.cjs → chunk-6ZXQJRAT.cjs} +153 -34
- package/dist/{chunk-OFGDUCT7.cjs → chunk-7AG524YZ.cjs} +3 -3
- package/dist/chunk-7IYKKLV3.js +283 -0
- package/dist/{chunk-73RQBWWW.js → chunk-AAGF7K3L.js} +2 -2
- package/dist/chunk-AXZ7ELMA.js +41 -0
- package/dist/{chunk-R6BIF3FF.js → chunk-BPOOVO5T.js} +5 -23
- package/dist/{chunk-OI3CWXT3.js → chunk-BVQ77VRY.js} +3 -3
- package/dist/{chunk-UXH5PH3S.js → chunk-CETNCRZ4.js} +2 -2
- package/dist/chunk-DG5VQ6BO.cjs +28 -0
- package/dist/chunk-DWAN57G4.js +243 -0
- package/dist/chunk-ELNT3CFO.js +64 -0
- package/dist/{chunk-ULOJ5UEY.js → chunk-ET6DYQVZ.js} +1 -1
- package/dist/chunk-F6RYCBQG.js +25 -0
- package/dist/{chunk-RPFMQZA5.js → chunk-FBYUZOZP.js} +42 -31
- package/dist/chunk-FGW5GJ22.cjs +132 -0
- package/dist/{chunk-6Y5WRCPW.js → chunk-FWPBORRB.js} +1 -1
- package/dist/chunk-GENABQYA.cjs +47 -0
- package/dist/{chunk-TGHBKKSS.js → chunk-GIZU3H6H.js} +3 -43
- package/dist/chunk-GMN74OEY.cjs +63 -0
- package/dist/{chunk-Y47YTYQ3.cjs → chunk-H4LGWZMH.cjs} +159 -8
- package/dist/chunk-HKF2V5MM.cjs +214 -0
- package/dist/chunk-HLFH5HWR.js +81 -0
- package/dist/{chunk-4WRE4HQP.js → chunk-HWFM4MAT.js} +18 -6
- package/dist/{chunk-GY3BSHHS.cjs → chunk-HZSIUOCN.cjs} +2 -55
- package/dist/{chunk-D46EM4EN.js → chunk-I5WTQ5Y3.js} +4 -4
- package/dist/chunk-J2HZTJO6.js +26 -0
- package/dist/{chunk-NN25YMOL.js → chunk-J5ZGYQZK.js} +153 -35
- package/dist/{chunk-WRDKOSSM.js → chunk-JCEHZ336.js} +1 -1
- package/dist/chunk-JVUVOR6S.js +110 -0
- package/dist/chunk-K5IGFBDR.js +113 -0
- package/dist/{chunk-Q2KG6SQK.cjs → chunk-K7FV7W6U.cjs} +5 -5
- package/dist/{chunk-PWW64ZWO.cjs → chunk-KD4YYIIO.cjs} +1 -32
- package/dist/chunk-KGSADAOD.cjs +170 -0
- package/dist/{chunk-54YLXXS2.js → chunk-ME5BZ2WA.js} +2 -2
- package/dist/chunk-MPVCYU2K.cjs +104 -0
- package/dist/{chunk-EEMWQX3C.cjs → chunk-NTS5L4NQ.cjs} +3 -3
- package/dist/{chunk-WBK6XIDJ.js → chunk-OBEKX4VR.js} +2 -32
- package/dist/{chunk-EBNRZRWY.cjs → chunk-P6EZG2R7.cjs} +5 -5
- package/dist/{chunk-KYEY2LIB.cjs → chunk-P6P4DGLF.cjs} +3 -3
- package/dist/{chunk-GOBWKQCX.cjs → chunk-PULGVK2I.cjs} +3 -3
- package/dist/chunk-Q5SZIU7Z.cjs +47 -0
- package/dist/chunk-QKQHZIF3.cjs +86 -0
- package/dist/{chunk-3TWNBJFI.cjs → chunk-QP3VCSRY.cjs} +6 -6
- package/dist/{chunk-6ODY6MGL.cjs → chunk-R2TEDH2F.cjs} +5 -5
- package/dist/{chunk-YRZGXXWA.js → chunk-SQGPSMSK.js} +14 -20
- package/dist/{chunk-IW5LW6XS.js → chunk-TEEFR2FD.js} +28 -5
- package/dist/chunk-TGL5BGMR.js +218 -0
- package/dist/{chunk-62GU4OHH.cjs → chunk-TP567B3L.cjs} +13 -20
- package/dist/chunk-UKS23N3L.js +191 -0
- package/dist/chunk-USQ43DJ5.js +147 -0
- package/dist/{chunk-G2K6ETP4.cjs → chunk-UUHFKIWP.cjs} +18 -6
- package/dist/{chunk-2MNAZRWE.cjs → chunk-V272XR3F.cjs} +271 -2
- package/dist/chunk-VFFIE2VO.cjs +271 -0
- package/dist/{chunk-FIO65XYG.cjs → chunk-X5GCOMC3.cjs} +49 -38
- package/dist/{chunk-Y3ZSG3SJ.cjs → chunk-XSN4TLN5.cjs} +11 -30
- package/dist/chunk-ZKE73UQF.cjs +138 -0
- package/dist/index.cjs +342 -132
- package/dist/index.d.cts +26 -20
- package/dist/index.d.ts +26 -20
- package/dist/index.js +35 -29
- package/dist/styles.css +515 -230
- package/docs/llms/alert.md +4 -3
- package/docs/llms/badge.md +3 -3
- package/docs/llms/button.md +11 -41
- package/docs/llms/card.md +6 -12
- package/docs/llms/cascader.md +22 -0
- package/docs/llms/{accordion.md → collapse.md} +13 -11
- package/docs/llms/drawer.md +1 -1
- package/docs/llms/form.md +1 -1
- package/docs/llms/image.md +72 -1
- package/docs/llms/input.md +28 -18
- package/docs/llms/message.md +63 -0
- package/docs/llms/modal.md +30 -0
- package/docs/llms/popover.md +18 -1
- package/docs/llms/radio.md +37 -1
- package/docs/llms/select.md +22 -2
- package/docs/llms/spin.md +59 -0
- package/docs/llms/table.md +3 -3
- package/docs/llms/tag.md +3 -2
- package/docs/llms/theme.md +41 -4
- package/docs/llms/tooltip.md +16 -3
- package/docs/llms.md +8 -8
- package/package.json +32 -52
- package/dist/Accordion-REMDCQUD.css +0 -44
- package/dist/Accordion.cjs +0 -11
- package/dist/Accordion.d.cts +0 -33
- package/dist/Accordion.d.ts +0 -33
- package/dist/Accordion.js +0 -2
- package/dist/Empty-NQ72W3D7.css +0 -160
- package/dist/Tag-FGDY3W7E.css +0 -51
- package/dist/Toast-YSACW3EM.css +0 -45
- package/dist/Toast.cjs +0 -15
- package/dist/Toast.d.cts +0 -26
- package/dist/Toast.d.ts +0 -26
- package/dist/Toast.js +0 -2
- package/dist/chunk-32HBMXXV.cjs +0 -208
- package/dist/chunk-3XTHKAEY.js +0 -39
- package/dist/chunk-5M26OVVY.js +0 -90
- package/dist/chunk-DOMYUGJY.js +0 -132
- package/dist/chunk-DPNDHNKK.js +0 -185
- package/dist/chunk-G2XK57I7.cjs +0 -116
- package/dist/chunk-HBWO3QKW.js +0 -74
- package/dist/chunk-JVS5ZALZ.js +0 -123
- package/dist/chunk-LIGHV4RC.cjs +0 -121
- package/dist/chunk-MCTIA6RZ.js +0 -99
- package/dist/chunk-NC4YUEXM.cjs +0 -145
- package/dist/chunk-NJ6B22YJ.js +0 -170
- package/dist/chunk-W64ARHLJ.cjs +0 -62
- package/dist/chunk-ZFW6OYAO.cjs +0 -100
- package/docs/llms/spinner.md +0 -58
- package/docs/llms/toast.md +0 -51
package/dist/Table.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
|
|
4
3
|
type RowKey = string | number;
|
|
@@ -98,7 +97,7 @@ interface TableProps<Row = any> extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
98
97
|
sortDir?: "asc" | "desc";
|
|
99
98
|
onSort?: (key: string) => void;
|
|
100
99
|
/**
|
|
101
|
-
* Row selection config — preferred API
|
|
100
|
+
* Row selection config — preferred API.
|
|
102
101
|
* When provided, takes precedence over `selectable` / `selected` / `onSelect`.
|
|
103
102
|
*/
|
|
104
103
|
rowSelection?: RowSelectionConfig<Row>;
|
|
@@ -132,23 +131,5 @@ interface TableProps<Row = any> extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
132
131
|
type TableComponent = <Row extends Record<string, any> = any>(props: TableProps<Row> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
133
132
|
/** `Table` — neumorphic data table with sorting, selection and visual variants. */
|
|
134
133
|
declare const Table: TableComponent;
|
|
135
|
-
interface TableProProps<Row = any> extends Omit<TableProps<Row>, "title"> {
|
|
136
|
-
/** Toolbar slot — search input, filter, etc. */
|
|
137
|
-
toolbar?: React.ReactNode;
|
|
138
|
-
/** Right-aligned actions slot in toolbar. */
|
|
139
|
-
actions?: React.ReactNode;
|
|
140
|
-
/** Footer slot — usually <Pagination />. Optional now that `pagination` is built-in. */
|
|
141
|
-
footer?: React.ReactNode;
|
|
142
|
-
/** Title shown above the toolbar. */
|
|
143
|
-
title?: React.ReactNode;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* `TablePro` — full-featured table card with toolbar, sortable/selectable rows,
|
|
147
|
-
* variants, and a footer slot for pagination.
|
|
148
|
-
*
|
|
149
|
-
* Prefer the built-in `pagination` prop over rendering a `<Pagination />` in the
|
|
150
|
-
* `footer` slot; `footer` still works for custom footers.
|
|
151
|
-
*/
|
|
152
|
-
declare function TablePro<Row extends Record<string, any> = any>({ toolbar, actions, footer, title, className, ...tableProps }: TableProProps<Row>): react_jsx_runtime.JSX.Element;
|
|
153
134
|
|
|
154
|
-
export { type ExpandableConfig, type PaginationConfig, type RowKey, type RowSelectionConfig, Table, type TableColumn, type TableColumnFilterItem,
|
|
135
|
+
export { type ExpandableConfig, type PaginationConfig, type RowKey, type RowSelectionConfig, Table, type TableColumn, type TableColumnFilterItem, type TableProps, type TableScrollConfig, type TableVariant };
|
package/dist/Table.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
|
|
4
3
|
type RowKey = string | number;
|
|
@@ -98,7 +97,7 @@ interface TableProps<Row = any> extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
98
97
|
sortDir?: "asc" | "desc";
|
|
99
98
|
onSort?: (key: string) => void;
|
|
100
99
|
/**
|
|
101
|
-
* Row selection config — preferred API
|
|
100
|
+
* Row selection config — preferred API.
|
|
102
101
|
* When provided, takes precedence over `selectable` / `selected` / `onSelect`.
|
|
103
102
|
*/
|
|
104
103
|
rowSelection?: RowSelectionConfig<Row>;
|
|
@@ -132,23 +131,5 @@ interface TableProps<Row = any> extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
132
131
|
type TableComponent = <Row extends Record<string, any> = any>(props: TableProps<Row> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
133
132
|
/** `Table` — neumorphic data table with sorting, selection and visual variants. */
|
|
134
133
|
declare const Table: TableComponent;
|
|
135
|
-
interface TableProProps<Row = any> extends Omit<TableProps<Row>, "title"> {
|
|
136
|
-
/** Toolbar slot — search input, filter, etc. */
|
|
137
|
-
toolbar?: React.ReactNode;
|
|
138
|
-
/** Right-aligned actions slot in toolbar. */
|
|
139
|
-
actions?: React.ReactNode;
|
|
140
|
-
/** Footer slot — usually <Pagination />. Optional now that `pagination` is built-in. */
|
|
141
|
-
footer?: React.ReactNode;
|
|
142
|
-
/** Title shown above the toolbar. */
|
|
143
|
-
title?: React.ReactNode;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* `TablePro` — full-featured table card with toolbar, sortable/selectable rows,
|
|
147
|
-
* variants, and a footer slot for pagination.
|
|
148
|
-
*
|
|
149
|
-
* Prefer the built-in `pagination` prop over rendering a `<Pagination />` in the
|
|
150
|
-
* `footer` slot; `footer` still works for custom footers.
|
|
151
|
-
*/
|
|
152
|
-
declare function TablePro<Row extends Record<string, any> = any>({ toolbar, actions, footer, title, className, ...tableProps }: TableProProps<Row>): react_jsx_runtime.JSX.Element;
|
|
153
134
|
|
|
154
|
-
export { type ExpandableConfig, type PaginationConfig, type RowKey, type RowSelectionConfig, Table, type TableColumn, type TableColumnFilterItem,
|
|
135
|
+
export { type ExpandableConfig, type PaginationConfig, type RowKey, type RowSelectionConfig, Table, type TableColumn, type TableColumnFilterItem, type TableProps, type TableScrollConfig, type TableVariant };
|
package/dist/Table.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export { Table
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { Table } from './chunk-BPOOVO5T.js';
|
|
2
|
+
import './chunk-CETNCRZ4.js';
|
|
3
|
+
import './chunk-FBYUZOZP.js';
|
|
4
|
+
import './chunk-5H5YP2TB.js';
|
|
5
|
+
import './chunk-GIZU3H6H.js';
|
|
6
6
|
import './chunk-DUFRASGO.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-UKS23N3L.js';
|
|
8
|
+
import './chunk-HLFH5HWR.js';
|
|
9
|
+
import './chunk-47VG2P34.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* ============ TablePro ============ */
|
|
2
|
+
.table-card {
|
|
3
|
+
border-radius: var(--r-lg);
|
|
4
|
+
background: var(--bg);
|
|
5
|
+
box-shadow: var(--neu-out-sm);
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
.table-card .table-wrap { background: transparent; box-shadow: none; border-radius: 0; }
|
|
9
|
+
.table-card .table-wrap.joined { border-radius: 0; }
|
|
10
|
+
.table-card .table-pagination {
|
|
11
|
+
margin-top: 0;
|
|
12
|
+
padding: 6px 16px;
|
|
13
|
+
border-top: 1px solid var(--divider);
|
|
14
|
+
background: color-mix(in oklch, var(--bg-sunken) 30%, transparent);
|
|
15
|
+
}
|
|
16
|
+
.table-toolbar {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: var(--gap-3);
|
|
20
|
+
padding: 14px 16px;
|
|
21
|
+
border-bottom: 1px solid var(--divider);
|
|
22
|
+
}
|
|
23
|
+
.table-toolbar .table-title {
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
font-weight: 600;
|
|
26
|
+
margin-right: 8px;
|
|
27
|
+
}
|
|
28
|
+
.table-toolbar-main {
|
|
29
|
+
flex: 1;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: 10px;
|
|
33
|
+
min-width: 0;
|
|
34
|
+
}
|
|
35
|
+
.table-toolbar-actions {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 8px;
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
}
|
|
41
|
+
.table-footer {
|
|
42
|
+
padding: 10px 16px;
|
|
43
|
+
border-top: 1px solid var(--divider);
|
|
44
|
+
background: color-mix(in oklch, var(--bg-sunken) 30%, transparent);
|
|
45
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkDG5VQ6BO_cjs = require('./chunk-DG5VQ6BO.cjs');
|
|
4
|
+
require('./chunk-XSN4TLN5.cjs');
|
|
5
|
+
require('./chunk-P6EZG2R7.cjs');
|
|
6
|
+
require('./chunk-X5GCOMC3.cjs');
|
|
7
|
+
require('./chunk-5DKRY67M.cjs');
|
|
8
|
+
require('./chunk-6HMTV6P4.cjs');
|
|
9
|
+
require('./chunk-YB3IWIOJ.cjs');
|
|
10
|
+
require('./chunk-HKF2V5MM.cjs');
|
|
11
|
+
require('./chunk-MPVCYU2K.cjs');
|
|
12
|
+
require('./chunk-V272XR3F.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Object.defineProperty(exports, "TablePro", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkDG5VQ6BO_cjs.TablePro; }
|
|
19
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { TableProps } from './Table.cjs';
|
|
4
|
+
|
|
5
|
+
interface TableProProps<Row = any> extends Omit<TableProps<Row>, "title"> {
|
|
6
|
+
/** Toolbar slot — search input, filter, etc. */
|
|
7
|
+
toolbar?: React.ReactNode;
|
|
8
|
+
/** Right-aligned actions slot in toolbar. */
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
|
+
/** Footer slot — usually <Pagination />. Optional now that `pagination` is built-in. */
|
|
11
|
+
footer?: React.ReactNode;
|
|
12
|
+
/** Title shown above the toolbar. */
|
|
13
|
+
title?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* `TablePro` — full-featured table card with toolbar, sortable/selectable rows,
|
|
17
|
+
* variants, and a footer slot for pagination.
|
|
18
|
+
*/
|
|
19
|
+
declare function TablePro<Row extends Record<string, any> = any>({ toolbar, actions, footer, title, className, ...tableProps }: TableProProps<Row>): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
export { TablePro, type TableProProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { TableProps } from './Table.js';
|
|
4
|
+
|
|
5
|
+
interface TableProProps<Row = any> extends Omit<TableProps<Row>, "title"> {
|
|
6
|
+
/** Toolbar slot — search input, filter, etc. */
|
|
7
|
+
toolbar?: React.ReactNode;
|
|
8
|
+
/** Right-aligned actions slot in toolbar. */
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
|
+
/** Footer slot — usually <Pagination />. Optional now that `pagination` is built-in. */
|
|
11
|
+
footer?: React.ReactNode;
|
|
12
|
+
/** Title shown above the toolbar. */
|
|
13
|
+
title?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* `TablePro` — full-featured table card with toolbar, sortable/selectable rows,
|
|
17
|
+
* variants, and a footer slot for pagination.
|
|
18
|
+
*/
|
|
19
|
+
declare function TablePro<Row extends Record<string, any> = any>({ toolbar, actions, footer, title, className, ...tableProps }: TableProProps<Row>): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
export { TablePro, type TableProProps };
|
package/dist/TablePro.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { TablePro } from './chunk-J2HZTJO6.js';
|
|
2
|
+
import './chunk-BPOOVO5T.js';
|
|
3
|
+
import './chunk-CETNCRZ4.js';
|
|
4
|
+
import './chunk-FBYUZOZP.js';
|
|
5
|
+
import './chunk-5H5YP2TB.js';
|
|
6
|
+
import './chunk-GIZU3H6H.js';
|
|
7
|
+
import './chunk-DUFRASGO.js';
|
|
8
|
+
import './chunk-UKS23N3L.js';
|
|
9
|
+
import './chunk-HLFH5HWR.js';
|
|
10
|
+
import './chunk-47VG2P34.js';
|
|
@@ -66,37 +66,3 @@
|
|
|
66
66
|
.tabs.centered.underline .tabs-nav .tab { margin-right: 11px; margin-left: 11px; }
|
|
67
67
|
|
|
68
68
|
.tabs-content { padding: var(--gap-2) 0; }
|
|
69
|
-
|
|
70
|
-
/* Segmented (owned by Tabs.tsx — Segmented is co-exported) */
|
|
71
|
-
.segmented {
|
|
72
|
-
display: inline-flex;
|
|
73
|
-
padding: 4px;
|
|
74
|
-
border-radius: var(--r-md);
|
|
75
|
-
background: var(--bg);
|
|
76
|
-
box-shadow: var(--neu-in-sm);
|
|
77
|
-
gap: 2px;
|
|
78
|
-
}
|
|
79
|
-
.segmented .seg {
|
|
80
|
-
padding: 6px 14px;
|
|
81
|
-
height: 32px;
|
|
82
|
-
display: inline-flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
gap: 6px;
|
|
85
|
-
border: none;
|
|
86
|
-
background: transparent;
|
|
87
|
-
border-radius: calc(var(--r-md) - 4px);
|
|
88
|
-
font-size: 12px;
|
|
89
|
-
font-family: inherit;
|
|
90
|
-
color: var(--fg-muted);
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
transition: all var(--dur-fast) var(--ease);
|
|
93
|
-
}
|
|
94
|
-
.segmented .seg:hover { color: var(--fg); }
|
|
95
|
-
.segmented .seg.active {
|
|
96
|
-
color: var(--accent-ink);
|
|
97
|
-
background: var(--bg);
|
|
98
|
-
box-shadow: var(--neu-out-sm);
|
|
99
|
-
font-weight: 600;
|
|
100
|
-
}
|
|
101
|
-
.segmented.sm .seg { height: 26px; padding: 4px 10px; font-size: 11px; }
|
|
102
|
-
.segmented.lg .seg { height: 38px; padding: 8px 18px; font-size: 13px; }
|
package/dist/Tabs.cjs
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKD4YYIIO_cjs = require('./chunk-KD4YYIIO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
Object.defineProperty(exports, "Segmented", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkPWW64ZWO_cjs.Segmented; }
|
|
10
|
-
});
|
|
11
7
|
Object.defineProperty(exports, "Tabs", {
|
|
12
8
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkKD4YYIIO_cjs.Tabs; }
|
|
14
10
|
});
|
package/dist/Tabs.d.cts
CHANGED
|
@@ -18,20 +18,5 @@ interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange
|
|
|
18
18
|
}
|
|
19
19
|
/** `Tabs` — switchable sections. */
|
|
20
20
|
declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
interface SegmentedProps<T extends string = string> extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
22
|
-
options: {
|
|
23
|
-
value: T;
|
|
24
|
-
label: React.ReactNode;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
}[];
|
|
27
|
-
value?: T;
|
|
28
|
-
defaultValue?: T;
|
|
29
|
-
onChange?: (value: T) => void;
|
|
30
|
-
size?: "sm" | "md";
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
33
|
-
type SegmentedComponent = <T extends string = string>(props: SegmentedProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
34
|
-
/** `Segmented` — exclusive choice chip row. */
|
|
35
|
-
declare const Segmented: SegmentedComponent;
|
|
36
21
|
|
|
37
|
-
export {
|
|
22
|
+
export { type TabItem, Tabs, type TabsProps };
|
package/dist/Tabs.d.ts
CHANGED
|
@@ -18,20 +18,5 @@ interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange
|
|
|
18
18
|
}
|
|
19
19
|
/** `Tabs` — switchable sections. */
|
|
20
20
|
declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
interface SegmentedProps<T extends string = string> extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
22
|
-
options: {
|
|
23
|
-
value: T;
|
|
24
|
-
label: React.ReactNode;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
}[];
|
|
27
|
-
value?: T;
|
|
28
|
-
defaultValue?: T;
|
|
29
|
-
onChange?: (value: T) => void;
|
|
30
|
-
size?: "sm" | "md";
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
33
|
-
type SegmentedComponent = <T extends string = string>(props: SegmentedProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
34
|
-
/** `Segmented` — exclusive choice chip row. */
|
|
35
|
-
declare const Segmented: SegmentedComponent;
|
|
36
21
|
|
|
37
|
-
export {
|
|
22
|
+
export { type TabItem, Tabs, type TabsProps };
|
package/dist/Tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Tabs } from './chunk-OBEKX4VR.js';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* ============ Tag ============ */
|
|
2
|
+
.tag {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 6px;
|
|
6
|
+
height: 24px;
|
|
7
|
+
padding: 0 10px;
|
|
8
|
+
border-radius: var(--r-pill);
|
|
9
|
+
font-size: 11px;
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
background: var(--bg);
|
|
12
|
+
box-shadow: var(--neu-flat);
|
|
13
|
+
color: var(--fg-muted);
|
|
14
|
+
}
|
|
15
|
+
.tag.accent { color: var(--accent-ink); }
|
|
16
|
+
.tag.info { color: var(--info); }
|
|
17
|
+
.tag.success { color: var(--success); }
|
|
18
|
+
.tag.warning { color: var(--warning); }
|
|
19
|
+
.tag.danger { color: var(--danger); }
|
|
20
|
+
.tag.solid { background: var(--accent); color: var(--bg); box-shadow: 0 2px 6px var(--accent-glow); }
|
|
21
|
+
.tag.solid.info { background: var(--info); color: var(--bg); box-shadow: 0 2px 6px color-mix(in oklch, var(--info) 35%, transparent); }
|
|
22
|
+
.tag.solid.success { background: var(--success); color: var(--bg); box-shadow: 0 2px 6px color-mix(in oklch, var(--success) 35%, transparent); }
|
|
23
|
+
.tag.solid.warning { background: var(--warning); color: var(--bg); box-shadow: 0 2px 6px color-mix(in oklch, var(--warning) 35%, transparent); }
|
|
24
|
+
.tag.solid.danger { background: var(--danger); color: var(--bg); box-shadow: 0 2px 6px color-mix(in oklch, var(--danger) 35%, transparent); }
|
|
25
|
+
.tag.borderless { background: transparent; box-shadow: none; }
|
|
26
|
+
.tag .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
|
|
27
|
+
.tag .tag-ico {
|
|
28
|
+
color: currentColor;
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
line-height: 0;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
}
|
|
35
|
+
.tag .tag-ico img {
|
|
36
|
+
display: block;
|
|
37
|
+
width: 1em;
|
|
38
|
+
height: 1em;
|
|
39
|
+
object-fit: contain;
|
|
40
|
+
}
|
|
41
|
+
.tag .x { cursor: pointer; color: var(--fg-subtle); margin-left: 2px; display: inline-flex; }
|
|
42
|
+
.tag .x:hover { color: var(--fg); }
|
package/dist/Tag.cjs
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk5DKRY67M_cjs = require('./chunk-5DKRY67M.cjs');
|
|
4
|
+
require('./chunk-V272XR3F.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
Object.defineProperty(exports, "Badge", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkLZU33BX6_cjs.Badge; }
|
|
11
|
-
});
|
|
12
8
|
Object.defineProperty(exports, "Tag", {
|
|
13
9
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk5DKRY67M_cjs.Tag; }
|
|
15
11
|
});
|
package/dist/Tag.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IconSlot } from './Icon.cjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
3
4
|
|
|
4
5
|
type TagTone = "neutral" | "accent" | "info" | "success" | "warning" | "danger";
|
|
5
6
|
interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
@@ -7,8 +8,8 @@ interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
7
8
|
solid?: boolean;
|
|
8
9
|
/** Render a leading colored dot. */
|
|
9
10
|
dot?: boolean;
|
|
10
|
-
/** Leading icon
|
|
11
|
-
icon?:
|
|
11
|
+
/** Leading icon. Accepts a built-in icon name or custom React node. */
|
|
12
|
+
icon?: IconSlot;
|
|
12
13
|
/** Show a close button. */
|
|
13
14
|
removable?: boolean;
|
|
14
15
|
onRemove?: () => void;
|
|
@@ -18,15 +19,5 @@ interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
18
19
|
}
|
|
19
20
|
/** `Tag` — small label/pill. */
|
|
20
21
|
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
-
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
22
|
-
/** Numeric count — renders as "99+" if > 99. */
|
|
23
|
-
count?: number;
|
|
24
|
-
/** Show a tiny dot instead of a number. */
|
|
25
|
-
dot?: boolean;
|
|
26
|
-
tone?: TagTone;
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
}
|
|
29
|
-
/** `Badge` — notification dot / count. Wrap around another element. */
|
|
30
|
-
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
31
22
|
|
|
32
|
-
export {
|
|
23
|
+
export { Tag, type TagProps, type TagTone };
|
package/dist/Tag.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IconSlot } from './Icon.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
3
4
|
|
|
4
5
|
type TagTone = "neutral" | "accent" | "info" | "success" | "warning" | "danger";
|
|
5
6
|
interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
@@ -7,8 +8,8 @@ interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
7
8
|
solid?: boolean;
|
|
8
9
|
/** Render a leading colored dot. */
|
|
9
10
|
dot?: boolean;
|
|
10
|
-
/** Leading icon
|
|
11
|
-
icon?:
|
|
11
|
+
/** Leading icon. Accepts a built-in icon name or custom React node. */
|
|
12
|
+
icon?: IconSlot;
|
|
12
13
|
/** Show a close button. */
|
|
13
14
|
removable?: boolean;
|
|
14
15
|
onRemove?: () => void;
|
|
@@ -18,15 +19,5 @@ interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
18
19
|
}
|
|
19
20
|
/** `Tag` — small label/pill. */
|
|
20
21
|
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
-
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
22
|
-
/** Numeric count — renders as "99+" if > 99. */
|
|
23
|
-
count?: number;
|
|
24
|
-
/** Show a tiny dot instead of a number. */
|
|
25
|
-
dot?: boolean;
|
|
26
|
-
tone?: TagTone;
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
}
|
|
29
|
-
/** `Badge` — notification dot / count. Wrap around another element. */
|
|
30
|
-
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
31
22
|
|
|
32
|
-
export {
|
|
23
|
+
export { Tag, type TagProps, type TagTone };
|
package/dist/Tag.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { Tag } from './chunk-5H5YP2TB.js';
|
|
2
|
+
import './chunk-47VG2P34.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* ============ Textarea ============ */
|
|
2
|
+
.textarea-shell {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 4px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
.textarea-count {
|
|
9
|
+
font-size: 11px;
|
|
10
|
+
color: var(--fg-subtle);
|
|
11
|
+
font-variant-numeric: tabular-nums;
|
|
12
|
+
text-align: right;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.textarea-wrap { position: relative; width: 100%; }
|
|
16
|
+
.textarea-wrap .textarea-clear {
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 10px;
|
|
19
|
+
right: 10px;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
width: 18px;
|
|
24
|
+
height: 18px;
|
|
25
|
+
border-radius: 999px;
|
|
26
|
+
color: var(--fg-subtle);
|
|
27
|
+
background: transparent;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
|
|
30
|
+
}
|
|
31
|
+
.textarea-wrap .textarea-clear:hover {
|
|
32
|
+
color: var(--fg);
|
|
33
|
+
background: var(--bg-sunken);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.textarea {
|
|
37
|
+
width: 100%;
|
|
38
|
+
min-height: 96px;
|
|
39
|
+
padding: 12px 14px;
|
|
40
|
+
border: none;
|
|
41
|
+
border-radius: var(--r-md);
|
|
42
|
+
background: var(--bg);
|
|
43
|
+
box-shadow: var(--neu-in-sm);
|
|
44
|
+
color: var(--fg);
|
|
45
|
+
font-size: 13px;
|
|
46
|
+
font-family: inherit;
|
|
47
|
+
line-height: 1.55;
|
|
48
|
+
resize: vertical;
|
|
49
|
+
outline: none;
|
|
50
|
+
transition: box-shadow var(--dur) var(--ease);
|
|
51
|
+
}
|
|
52
|
+
.textarea:focus { box-shadow: var(--neu-in-sm), 0 0 0 2px var(--accent-glow); }
|
|
53
|
+
.textarea.invalid { box-shadow: var(--neu-in-sm), 0 0 0 2px color-mix(in oklch, var(--danger) 30%, transparent); }
|
|
54
|
+
.textarea::placeholder { color: var(--fg-subtle); }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkMPVCYU2K_cjs = require('./chunk-MPVCYU2K.cjs');
|
|
4
|
+
require('./chunk-V272XR3F.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "TextArea", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkMPVCYU2K_cjs.TextArea; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "Textarea", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkMPVCYU2K_cjs.Textarea; }
|
|
15
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "value" | "defaultValue"> {
|
|
4
|
+
value?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
/** Native textarea change event. */
|
|
7
|
+
onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
|
|
8
|
+
/** Convenience value callback for Lumina-style code. */
|
|
9
|
+
onValueChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
/** Show a × button in the top-right corner to clear the value. */
|
|
12
|
+
allowClear?: boolean;
|
|
13
|
+
/** Max length — forwarded to the native textarea. */
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
/** Render a "N / max" counter beneath the textarea. */
|
|
16
|
+
showCount?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* `Textarea` — multi-line text input with a neumorphic groove.
|
|
21
|
+
*/
|
|
22
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
23
|
+
declare const TextArea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
24
|
+
|
|
25
|
+
export { TextArea, Textarea, type TextareaProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "value" | "defaultValue"> {
|
|
4
|
+
value?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
/** Native textarea change event. */
|
|
7
|
+
onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
|
|
8
|
+
/** Convenience value callback for Lumina-style code. */
|
|
9
|
+
onValueChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
/** Show a × button in the top-right corner to clear the value. */
|
|
12
|
+
allowClear?: boolean;
|
|
13
|
+
/** Max length — forwarded to the native textarea. */
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
/** Render a "N / max" counter beneath the textarea. */
|
|
16
|
+
showCount?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* `Textarea` — multi-line text input with a neumorphic groove.
|
|
21
|
+
*/
|
|
22
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
23
|
+
declare const TextArea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
24
|
+
|
|
25
|
+
export { TextArea, Textarea, type TextareaProps };
|
package/dist/Textarea.js
ADDED
package/dist/Theme.cjs
CHANGED
|
@@ -1,42 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6ZXQJRAT_cjs = require('./chunk-6ZXQJRAT.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "ACCENT_PRESETS", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk6ZXQJRAT_cjs.ACCENT_PRESETS; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ACCENT_PRESETS_DARK", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6ZXQJRAT_cjs.ACCENT_PRESETS_DARK; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FONT_STACKS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6ZXQJRAT_cjs.FONT_STACKS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ThemeProvider", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk6ZXQJRAT_cjs.ThemeProvider; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "applyTheme", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk6ZXQJRAT_cjs.applyTheme; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "normalizeAccentInput", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk6ZXQJRAT_cjs.normalizeAccentInput; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "resolveThemeColorScheme", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk6ZXQJRAT_cjs.resolveThemeColorScheme; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "resolveThemeMode", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk6ZXQJRAT_cjs.resolveThemeMode; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "useTheme", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk6ZXQJRAT_cjs.useTheme; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "useThemeOptional", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk6ZXQJRAT_cjs.useThemeOptional; }
|
|
42
46
|
});
|