@x-plat/design-system 0.6.1 → 0.7.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/components/Accordion/index.css +10 -3
- package/dist/components/Alert/index.css +7 -0
- package/dist/components/AutoResizeTextArea/index.css +3 -0
- package/dist/components/Avatar/index.css +13 -1
- package/dist/components/Badge/index.css +13 -2
- package/dist/components/Box/index.css +8 -5
- package/dist/components/Breadcrumb/index.css +5 -1
- package/dist/components/Button/index.css +10 -1
- package/dist/components/Calendar/index.css +10 -6
- package/dist/components/CardTab/index.css +14 -2
- package/dist/components/Chart/index.css +32 -11
- package/dist/components/ChatInput/index.css +6 -0
- package/dist/components/CheckBox/index.css +10 -1
- package/dist/components/Chip/index.css +12 -0
- package/dist/components/DatePicker/index.css +51 -12
- package/dist/components/Drawer/index.css +14 -7
- package/dist/components/Dropdown/index.css +5 -1
- package/dist/components/Editor/index.css +49 -10
- package/dist/components/EmptyState/index.css +9 -2
- package/dist/components/FileUpload/index.css +9 -2
- package/dist/components/HtmlTypeWriter/index.cjs +2 -0
- package/dist/components/HtmlTypeWriter/index.css +13 -1
- package/dist/components/HtmlTypeWriter/index.d.cts +3 -3
- package/dist/components/HtmlTypeWriter/index.d.ts +3 -3
- package/dist/components/HtmlTypeWriter/index.js +1 -0
- package/dist/components/ImageSelector/index.css +8 -0
- package/dist/components/Input/index.css +12 -0
- package/dist/components/Modal/index.css +1 -1
- package/dist/components/Pagination/index.css +25 -1
- package/dist/components/PopOver/index.css +1 -1
- package/dist/components/Progress/index.css +5 -2
- package/dist/components/Radio/index.css +9 -0
- package/dist/components/Select/index.css +20 -3
- package/dist/components/Steps/index.css +14 -4
- package/dist/components/Switch/index.css +1 -1
- package/dist/components/Tab/index.css +16 -1
- package/dist/components/Table/index.cjs +4 -1
- package/dist/components/Table/index.css +12 -0
- package/dist/components/Table/index.d.cts +2 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +4 -1
- package/dist/components/Tag/index.css +12 -0
- package/dist/components/TextArea/index.css +9 -0
- package/dist/components/Toast/index.css +8 -1
- package/dist/components/Tooltip/index.css +8 -4
- package/dist/components/Video/index.css +30 -19
- package/dist/components/index.cjs +6 -1
- package/dist/components/index.css +484 -99
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +5 -1
- package/dist/index.cjs +6 -1
- package/dist/index.css +484 -99
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/layout/index.css +40 -0
- package/guidelines/components/accordion.md +1 -1
- package/guidelines/components/avatar.md +1 -1
- package/guidelines/components/card.md +1 -1
- package/guidelines/components/chart.md +1 -1
- package/guidelines/components/data-display.md +4 -4
- package/guidelines/components/dropdown.md +1 -1
- package/guidelines/components/file-media.md +3 -3
- package/guidelines/components/html-typewriter.md +1 -1
- package/guidelines/components/navigation.md +144 -20
- package/guidelines/components/swiper.md +2 -2
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ export { Dropdown } from './Dropdown/index.cjs';
|
|
|
19
19
|
export { default as Editor, EditorProps, EditorToolbarItem } from './Editor/index.cjs';
|
|
20
20
|
export { EmptyState } from './EmptyState/index.cjs';
|
|
21
21
|
export { FileUpload } from './FileUpload/index.cjs';
|
|
22
|
-
export { HtmlTypewriter } from './HtmlTypeWriter/index.cjs';
|
|
22
|
+
export { HtmlTypeWriter, HtmlTypeWriter as HtmlTypewriter } from './HtmlTypeWriter/index.cjs';
|
|
23
23
|
export { IconButton } from './IconButton/index.cjs';
|
|
24
24
|
export { ImageSelector } from './ImageSelector/index.cjs';
|
|
25
25
|
export { Input, PasswordInput } from './Input/index.cjs';
|
|
@@ -19,7 +19,7 @@ export { Dropdown } from './Dropdown/index.js';
|
|
|
19
19
|
export { default as Editor, EditorProps, EditorToolbarItem } from './Editor/index.js';
|
|
20
20
|
export { EmptyState } from './EmptyState/index.js';
|
|
21
21
|
export { FileUpload } from './FileUpload/index.js';
|
|
22
|
-
export { HtmlTypewriter } from './HtmlTypeWriter/index.js';
|
|
22
|
+
export { HtmlTypeWriter, HtmlTypeWriter as HtmlTypewriter } from './HtmlTypeWriter/index.js';
|
|
23
23
|
export { IconButton } from './IconButton/index.js';
|
|
24
24
|
export { ImageSelector } from './ImageSelector/index.js';
|
|
25
25
|
export { Input, PasswordInput } from './Input/index.js';
|
package/dist/components/index.js
CHANGED
|
@@ -5797,6 +5797,7 @@ var TableCell = React37.memo((props) => {
|
|
|
5797
5797
|
isSticky = false,
|
|
5798
5798
|
width,
|
|
5799
5799
|
nowrap = false,
|
|
5800
|
+
scope = "col",
|
|
5800
5801
|
onClick
|
|
5801
5802
|
} = props;
|
|
5802
5803
|
const { registerStickyCell, stickyCells } = useTableRowContext();
|
|
@@ -5828,7 +5829,8 @@ var TableCell = React37.memo((props) => {
|
|
|
5828
5829
|
}
|
|
5829
5830
|
return () => observer.disconnect();
|
|
5830
5831
|
}, [isSticky, registerStickyCell, calculateLeft]);
|
|
5831
|
-
const
|
|
5832
|
+
const isHeaderCell = headContext !== null;
|
|
5833
|
+
const CellTag = isHeaderCell ? "th" : "td";
|
|
5832
5834
|
const isLastSticky = isSticky && stickyCells[stickyCells.length - 1] === cellRef;
|
|
5833
5835
|
const enableHover = headContext && headContext.cellHover;
|
|
5834
5836
|
return /* @__PURE__ */ jsx344(
|
|
@@ -5843,6 +5845,7 @@ var TableCell = React37.memo((props) => {
|
|
|
5843
5845
|
enableHover && "cell-hover",
|
|
5844
5846
|
nowrap && "nowrap"
|
|
5845
5847
|
),
|
|
5848
|
+
scope: isHeaderCell ? scope : void 0,
|
|
5846
5849
|
style: {
|
|
5847
5850
|
...isSticky ? { left } : null,
|
|
5848
5851
|
...width != null ? { width: typeof width === "number" ? `${width}px` : width } : null
|
|
@@ -6536,6 +6539,7 @@ export {
|
|
|
6536
6539
|
Editor_default as Editor,
|
|
6537
6540
|
EmptyState_default as EmptyState,
|
|
6538
6541
|
FileUpload_default as FileUpload,
|
|
6542
|
+
HtmlTypeWriter_default as HtmlTypeWriter,
|
|
6539
6543
|
HtmlTypeWriter_default as HtmlTypewriter,
|
|
6540
6544
|
IconButton_default as IconButton,
|
|
6541
6545
|
ImageSelector_default as ImageSelector,
|
package/dist/index.cjs
CHANGED
|
@@ -200,6 +200,7 @@ __export(index_exports, {
|
|
|
200
200
|
HelpCircleIcon: () => HelpCircleIcon_default,
|
|
201
201
|
HexagonIcon: () => HexagonIcon_default,
|
|
202
202
|
HomeIcon: () => HomeIcon_default,
|
|
203
|
+
HtmlTypeWriter: () => HtmlTypeWriter_default,
|
|
203
204
|
HtmlTypewriter: () => HtmlTypeWriter_default,
|
|
204
205
|
IconButton: () => IconButton_default,
|
|
205
206
|
ImageIcon: () => ImageIcon_default,
|
|
@@ -10300,6 +10301,7 @@ var TableCell = import_react38.default.memo((props) => {
|
|
|
10300
10301
|
isSticky = false,
|
|
10301
10302
|
width,
|
|
10302
10303
|
nowrap = false,
|
|
10304
|
+
scope = "col",
|
|
10303
10305
|
onClick
|
|
10304
10306
|
} = props;
|
|
10305
10307
|
const { registerStickyCell, stickyCells } = useTableRowContext();
|
|
@@ -10331,7 +10333,8 @@ var TableCell = import_react38.default.memo((props) => {
|
|
|
10331
10333
|
}
|
|
10332
10334
|
return () => observer.disconnect();
|
|
10333
10335
|
}, [isSticky, registerStickyCell, calculateLeft]);
|
|
10334
|
-
const
|
|
10336
|
+
const isHeaderCell = headContext !== null;
|
|
10337
|
+
const CellTag = isHeaderCell ? "th" : "td";
|
|
10335
10338
|
const isLastSticky = isSticky && stickyCells[stickyCells.length - 1] === cellRef;
|
|
10336
10339
|
const enableHover = headContext && headContext.cellHover;
|
|
10337
10340
|
return /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(
|
|
@@ -10346,6 +10349,7 @@ var TableCell = import_react38.default.memo((props) => {
|
|
|
10346
10349
|
enableHover && "cell-hover",
|
|
10347
10350
|
nowrap && "nowrap"
|
|
10348
10351
|
),
|
|
10352
|
+
scope: isHeaderCell ? scope : void 0,
|
|
10349
10353
|
style: {
|
|
10350
10354
|
...isSticky ? { left } : null,
|
|
10351
10355
|
...width != null ? { width: typeof width === "number" ? `${width}px` : width } : null
|
|
@@ -11324,6 +11328,7 @@ var SideBar_default = SideBar;
|
|
|
11324
11328
|
HelpCircleIcon,
|
|
11325
11329
|
HexagonIcon,
|
|
11326
11330
|
HomeIcon,
|
|
11331
|
+
HtmlTypeWriter,
|
|
11327
11332
|
HtmlTypewriter,
|
|
11328
11333
|
IconButton,
|
|
11329
11334
|
ImageIcon,
|