@solostylist/ui-kit 1.0.221 → 1.0.223
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/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +1 -1
- package/dist/{s-accordion-DH_7P3Il.js → s-accordion-CXHBadZ_.js} +1 -1
- package/dist/s-autocomplete/s-autocomplete.d.ts +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/{s-chat-input-B0gdPa1c.js → s-chat-input-DpCaY6gB.js} +3 -3
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-DVfbqSAQ.js → s-chat-message-ox4Sj6xh.js} +2 -2
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/{s-code-block-CHIgPLsL.js → s-code-block-sjt0AQb_.js} +1 -1
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +1 -1
- package/dist/{s-comment-message-DuJPcZFR.js → s-comment-message-DzjXXLZQ.js} +2 -2
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-data-table/index.d.ts +1 -1
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.d.ts +19 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/s-data-table-Cb7CsYQf.js +923 -0
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +1 -1
- package/dist/s-dialog-message/s-dialog-message.js +1 -1
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-image-modal/index.js +1 -1
- package/dist/s-image-modal/s-image-modal.js +1 -1
- package/dist/{s-image-modal-DxwMFMNS.js → s-image-modal-DA3DBNbv.js} +2 -2
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-nav-item/s-nav-items.js +1 -1
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-Ca6JUgGr.js → s-review-D4FBfBPF.js} +1 -1
- package/dist/s-scroll-to-top/s-scroll-to-top.js +1 -1
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/s-stripe/s-stripe.d.ts +1 -1
- package/dist/s-stripe/s-stripe.js +5 -4
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/{s-text-editor-toolbar-BnhPG9xv.js → s-text-editor-toolbar-CCK7yyNS.js} +1 -1
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +1 -1
- package/dist/{s-theme-demo-BHyjzAU0.js → s-theme-demo-THHj5mFp.js} +3 -3
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +1 -1
- package/dist/s-tool-bar/index.js +1 -1
- package/dist/s-tool-bar/s-tool-bar.js +1 -1
- package/dist/{s-tool-bar-Du66wRC2.js → s-tool-bar-B-v1I_Hy.js} +4 -4
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/components.js +2 -2
- package/dist/theme/components/tooltip.d.ts +3 -0
- package/package.json +1 -1
- package/dist/s-data-table-xIW-BAS9.js +0 -880
- /package/dist/{ArrowUpward-BbQSKheQ.js → ArrowUpward-BMKLosZj.js} +0 -0
- /package/dist/{ChevronRight-DHulYS1l.js → ChevronRight-OLNOfW9P.js} +0 -0
- /package/dist/{Close-oXeOGTZb.js → Close-Bj2HYB9Q.js} +0 -0
- /package/dist/{ContentCopy-Bh_TA5Eo.js → ContentCopy-Br2p19dq.js} +0 -0
- /package/dist/{Download-DMm8oiCF.js → Download-BhSXOhCI.js} +0 -0
- /package/dist/{ExpandMore-DsZNN1Eh.js → ExpandMore-Bu7_1g6Q.js} +0 -0
- /package/dist/{Favorite-DIml4fHR.js → Favorite-BJSuHe0H.js} +0 -0
- /package/dist/{InfoOutlined-CqXSSVWh.js → InfoOutlined-C1AW3f5V.js} +0 -0
- /package/dist/{avatar-BQf6phmU.js → avatar-BuMhUthq.js} +0 -0
- /package/dist/{checkbox-DMsuLF8N.js → checkbox-PlpiwQNi.js} +0 -0
- /package/dist/{s-chips-BuAEBW1F.js → s-chips-DelHx6zM.js} +0 -0
- /package/dist/{s-file-dropzone-COPp1HiT.js → s-file-dropzone-oaQoRV92.js} +0 -0
- /package/dist/{s-select-ClL8bygg.js → s-select-b8CHbeCf.js} +0 -0
- /package/dist/{s-text-field-qps0aDNS.js → s-text-field-Ck5QMhYI.js} +0 -0
- /package/dist/{s-theme-switch-D1FpcDj1.js → s-theme-switch-V3Q58mkG.js} +0 -0
- /package/dist/{s-tip-D6M91nev.js → s-tip-Dwu5T2u0.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-accordion-
|
|
1
|
+
import { t as e } from "../s-accordion-CXHBadZ_.js";
|
|
2
2
|
export { e as SAccordion, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-accordion-
|
|
1
|
+
import { t as e } from "../s-accordion-CXHBadZ_.js";
|
|
2
2
|
export { e as SAccordion, e as default };
|
|
@@ -11,7 +11,7 @@ import { h as f, t as p } from "./useSlot-Dkc1Mj31.js";
|
|
|
11
11
|
import { t as m } from "./useControlled-DXKqhylj.js";
|
|
12
12
|
import { t as h } from "./Paper-BY4X6-u_.js";
|
|
13
13
|
import { t as g } from "./Typography-EsraKPZO.js";
|
|
14
|
-
import { t as _ } from "./ExpandMore-
|
|
14
|
+
import { t as _ } from "./ExpandMore-Bu7_1g6Q.js";
|
|
15
15
|
import { t as v } from "./Collapse-CnXmaDqT.js";
|
|
16
16
|
import * as y from "react";
|
|
17
17
|
import "react";
|
|
@@ -29,7 +29,7 @@ export interface SAutocompleteProps<T, Multiple extends boolean | undefined, Dis
|
|
|
29
29
|
*/
|
|
30
30
|
export interface SAutocompleteComponent {
|
|
31
31
|
<T, Multiple extends boolean | undefined = undefined, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined>(props: SAutocompleteProps<T, Multiple, DisableClearable, FreeSolo> & {
|
|
32
|
-
ref?: React.ForwardedRef<
|
|
32
|
+
ref?: React.ForwardedRef<HTMLDivElement>;
|
|
33
33
|
}): React.JSX.Element;
|
|
34
34
|
displayName?: string;
|
|
35
35
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../ChevronRight-
|
|
1
|
+
import { t as e } from "../ChevronRight-OLNOfW9P.js";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import { Breadcrumbs as r, Link as i, Typography as a } from "@mui/material";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-input-
|
|
1
|
+
import { t as e } from "../s-chat-input-DpCaY6gB.js";
|
|
2
2
|
export { e as SChatInput, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-input-
|
|
1
|
+
import { t as e } from "../s-chat-input-DpCaY6gB.js";
|
|
2
2
|
export { e as SChatInput, e as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as e, s as t } from "./theme-primitives-OrQ-xFJR.js";
|
|
2
2
|
import { t as n } from "./createSvgIcon-BdNZIlKS.js";
|
|
3
|
-
import { t as r } from "./ArrowUpward-
|
|
4
|
-
import { t as i } from "./Close-
|
|
5
|
-
import { t as a } from "./s-text-field-
|
|
3
|
+
import { t as r } from "./ArrowUpward-BMKLosZj.js";
|
|
4
|
+
import { t as i } from "./Close-Bj2HYB9Q.js";
|
|
5
|
+
import { t as a } from "./s-text-field-Ck5QMhYI.js";
|
|
6
6
|
import { SIconButton as o } from "./s-icon-button/s-icon-button.js";
|
|
7
7
|
import { SFileIcon as s } from "./s-file-icon/s-file-icon.js";
|
|
8
8
|
import { forwardRef as c, useEffect as l, useId as u, useState as d } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-message-
|
|
1
|
+
import { t as e } from "../s-chat-message-ox4Sj6xh.js";
|
|
2
2
|
export { e as SChatMessage, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-message-
|
|
1
|
+
import { t as e } from "../s-chat-message-ox4Sj6xh.js";
|
|
2
2
|
export { e as SChatMessage, e as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, r as t } from "./utils-B5Rl6Zwv.js";
|
|
2
2
|
import { t as n } from "./createSvgIcon-BdNZIlKS.js";
|
|
3
|
-
import { n as r } from "./s-image-modal-
|
|
4
|
-
import { t as i } from "./Download-
|
|
3
|
+
import { n as r } from "./s-image-modal-DA3DBNbv.js";
|
|
4
|
+
import { t as i } from "./Download-BhSXOhCI.js";
|
|
5
5
|
import a from "./s-lazy-image/s-lazy-image.js";
|
|
6
6
|
import { SSkeleton as o } from "./s-skeleton/s-skeleton.js";
|
|
7
7
|
import { SAvatar as s } from "./s-avatar/s-avatar.js";
|
package/dist/s-chips/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chips-
|
|
1
|
+
import { t as e } from "../s-chips-DelHx6zM.js";
|
|
2
2
|
export { e as SChips, e as default };
|
package/dist/s-chips/s-chips.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chips-
|
|
1
|
+
import { t as e } from "../s-chips-DelHx6zM.js";
|
|
2
2
|
export { e as SChips, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-code-block-
|
|
1
|
+
import { t as e } from "../s-code-block-sjt0AQb_.js";
|
|
2
2
|
export { e as SCodeBlock, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-code-block-
|
|
1
|
+
import { t as e } from "../s-code-block-sjt0AQb_.js";
|
|
2
2
|
export { e as SCodeBlock, e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./ContentCopy-
|
|
1
|
+
import { n as e, t } from "./ContentCopy-Br2p19dq.js";
|
|
2
2
|
import { useMemo as n, useState as r } from "react";
|
|
3
3
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
4
|
import { Box as o, IconButton as s, useColorScheme as c } from "@mui/material";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-comment-message-
|
|
1
|
+
import { t as e } from "../s-comment-message-DzjXXLZQ.js";
|
|
2
2
|
export { e as SCommentMessage, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-comment-message-
|
|
1
|
+
import { t as e } from "../s-comment-message-DzjXXLZQ.js";
|
|
2
2
|
export { e as SCommentMessage, e as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as e } from "./utils-B5Rl6Zwv.js";
|
|
2
2
|
import { t } from "./createSvgIcon-BdNZIlKS.js";
|
|
3
|
-
import { t as n } from "./ExpandMore-
|
|
4
|
-
import { t as r } from "./Favorite-
|
|
3
|
+
import { t as n } from "./ExpandMore-Bu7_1g6Q.js";
|
|
4
|
+
import { t as r } from "./Favorite-BJSuHe0H.js";
|
|
5
5
|
import { SSkeleton as i } from "./s-skeleton/s-skeleton.js";
|
|
6
6
|
import { SAvatar as a } from "./s-avatar/s-avatar.js";
|
|
7
7
|
import { useEffect as o, useId as s, useState as c } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "../ContentCopy-
|
|
1
|
+
import { n as e, t } from "../ContentCopy-Br2p19dq.js";
|
|
2
2
|
import { useState as n } from "react";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { Box as a, IconButton as o, Paper as s, Typography as c } from "@mui/material";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default, default as SDataTable } from './s-data-table';
|
|
2
|
-
export type { ColumnDef, SDataTableProps } from './s-data-table';
|
|
2
|
+
export type { ColumnDef, SDataTableProps, SortDirection } from './s-data-table';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-data-table-
|
|
1
|
+
import { t as e } from "../s-data-table-Cb7CsYQf.js";
|
|
2
2
|
export { e as SDataTable, e as default };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { TableProps } from '@mui/material/Table';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
/** Sort direction for a sortable column */
|
|
4
|
+
export type SortDirection = 'asc' | 'desc';
|
|
5
|
+
/** Identifier used to track which column is currently sorted */
|
|
6
|
+
type SortKey = number | string;
|
|
3
7
|
/**
|
|
4
8
|
* Column definition interface for SDataTable component
|
|
5
9
|
*/
|
|
@@ -14,6 +18,10 @@ export interface ColumnDef<TRowModel> {
|
|
|
14
18
|
hideName?: boolean;
|
|
15
19
|
/** Display name for the column header */
|
|
16
20
|
name: string;
|
|
21
|
+
/** Whether this column can be sorted by clicking its header */
|
|
22
|
+
sortable?: boolean;
|
|
23
|
+
/** Identifier reported to `onSort` when sorted (defaults to `field`, then `name`) */
|
|
24
|
+
sortKey?: SortKey;
|
|
17
25
|
/** Fixed width for the column */
|
|
18
26
|
width?: number | string;
|
|
19
27
|
}
|
|
@@ -39,19 +47,29 @@ export interface SDataTableProps<TRowModel> extends Omit<TableProps, 'onClick'>
|
|
|
39
47
|
onSelectAll?: (event: React.ChangeEvent) => void;
|
|
40
48
|
/** Handler for selecting individual rows */
|
|
41
49
|
onSelectOne?: (event: React.ChangeEvent, row: TRowModel) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Handler invoked when a sortable column header is clicked. Receives the
|
|
52
|
+
* column's sort key and the next direction. Sorting is controlled: the
|
|
53
|
+
* parent is responsible for reordering `rows` in response.
|
|
54
|
+
*/
|
|
55
|
+
onSort?: (sortKey: SortKey, direction: SortDirection) => void;
|
|
42
56
|
/** Array of data objects to display in table rows */
|
|
43
57
|
rows: TRowModel[];
|
|
44
58
|
/** Whether rows can be selected with checkboxes */
|
|
45
59
|
selectable?: boolean;
|
|
46
60
|
/** Set of currently selected row IDs */
|
|
47
61
|
selected?: Set<RowId>;
|
|
62
|
+
/** Sort key of the column currently being sorted (matches `ColumnDef.sortKey`/`field`/`name`) */
|
|
63
|
+
sortBy?: SortKey;
|
|
64
|
+
/** Direction of the active sort */
|
|
65
|
+
sortDirection?: SortDirection;
|
|
48
66
|
/** Function to extract unique ID from row data */
|
|
49
67
|
uniqueRowId?: (row: TRowModel) => RowId;
|
|
50
68
|
}
|
|
51
69
|
export declare const SDataTable: {
|
|
52
70
|
<TRowModel extends object & {
|
|
53
71
|
id?: RowId | null;
|
|
54
|
-
}>({ columns, hideHead, hover, onClick, onDeselectAll, onDeselectOne, onSelectOne, onSelectAll, rows, selectable, selected, uniqueRowId, ...props }: SDataTableProps<TRowModel>): React.JSX.Element;
|
|
72
|
+
}>({ columns, hideHead, hover, onClick, onDeselectAll, onDeselectOne, onSelectOne, onSelectAll, onSort, rows, selectable, selected, sortBy, sortDirection, uniqueRowId, ...props }: SDataTableProps<TRowModel>): React.JSX.Element;
|
|
55
73
|
displayName: string;
|
|
56
74
|
};
|
|
57
75
|
export default SDataTable;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-data-table-
|
|
1
|
+
import { t as e } from "../s-data-table-Cb7CsYQf.js";
|
|
2
2
|
export { e as SDataTable, e as default };
|