@gobolt/genesis 0.3.17 → 0.3.20
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/Button/__stories__/UtilityButton.stories.d.ts +1 -1
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Row/RowActions/RowActions.cjs +1 -1
- package/dist/components/Row/RowActions/RowActions.js +1 -1
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +1 -1
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +1 -1
- package/dist/components/Table/index.d.ts +0 -3
- package/dist/components/{Table/TableWithControls → TableWithControls}/TableWithControls.cjs +3 -3
- package/dist/components/{Table/TableWithControls → TableWithControls}/TableWithControls.d.ts +1 -1
- package/dist/components/{Table/TableWithControls → TableWithControls}/TableWithControls.js +3 -3
- package/dist/components/{Table/TableWithControls → TableWithControls}/useTableWithControls.cjs +2 -2
- package/dist/components/{Table/TableWithControls → TableWithControls}/useTableWithControls.d.ts +3 -3
- package/dist/components/{Table/TableWithControls → TableWithControls}/useTableWithControls.js +2 -2
- package/dist/components/{Button → UtilityButton}/UtilityButton.cjs +1 -1
- package/dist/components/{Button → UtilityButton}/UtilityButton.d.ts +1 -1
- package/dist/components/{Button → UtilityButton}/UtilityButton.js +1 -1
- package/dist/components/UtilityButton/index.d.ts +2 -0
- package/dist/components/index.d.ts +5 -5
- package/dist/index.cjs +4 -3
- package/dist/index.js +4 -3
- package/package.json +1 -7
- /package/dist/components/{Table/TableWithControls → TableWithControls}/__stories__/TableWithControls.stories.d.ts +0 -0
- /package/dist/components/{Table/TableWithControls → TableWithControls}/__stories__/TableWithControlsStory.d.ts +0 -0
- /package/dist/components/{Table/TableWithControls → TableWithControls}/__tests__/TableWithControls.test.d.ts +0 -0
- /package/dist/components/{Table/TableWithControls → TableWithControls}/index.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as UtilityButton } from '
|
|
2
|
+
import { default as UtilityButton } from '../../UtilityButton';
|
|
3
3
|
declare const meta: Meta<typeof UtilityButton>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof UtilityButton>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { default } from './Button';
|
|
2
2
|
export type { ButtonProps } from './Button';
|
|
3
|
-
export { default as UtilityButton } from './UtilityButton';
|
|
4
|
-
export type { UtilityButtonProps } from './UtilityButton';
|
|
5
3
|
export { default as IconButton } from './IconButton';
|
|
6
4
|
export type { IconButtonProps } from './IconButton';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
var styles = require("./styles.cjs");
|
|
4
|
-
var UtilityButton = require("../../
|
|
4
|
+
var UtilityButton = require("../../UtilityButton/UtilityButton.cjs");
|
|
5
5
|
const Action = ({ action: { onClick, label } }) => {
|
|
6
6
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7
7
|
UtilityButton,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ActionsContainer } from "./styles.js";
|
|
3
|
-
import UtilityButton from "../../
|
|
3
|
+
import UtilityButton from "../../UtilityButton/UtilityButton.js";
|
|
4
4
|
const Action = ({ action: { onClick, label } }) => {
|
|
5
5
|
return /* @__PURE__ */ jsx(
|
|
6
6
|
UtilityButton,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var jsxRuntime = require("react/jsx-runtime");
|
|
3
|
-
var UtilityButton = require("../../Button/UtilityButton.cjs");
|
|
4
3
|
var IconButton = require("../../Button/IconButton.cjs");
|
|
5
4
|
var index$1 = require("../../../node_modules/react-icons/hi2/index.cjs");
|
|
6
5
|
var index = require("../../../node_modules/react-icons/hi/index.cjs");
|
|
7
6
|
var index$2 = require("../../../node_modules/react-icons/fi/index.cjs");
|
|
8
7
|
var Input = require("../../Input/Input.cjs");
|
|
8
|
+
var UtilityButton = require("../../UtilityButton/UtilityButton.cjs");
|
|
9
9
|
var Typography = require("../../Typography/Typography.cjs");
|
|
10
10
|
var Select = require("../../Select/Select.cjs");
|
|
11
11
|
const PrimaryTableControlsRow = ({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import UtilityButton from "../../Button/UtilityButton.js";
|
|
3
2
|
import IconButton from "../../Button/IconButton.js";
|
|
4
3
|
import { HiMiniAdjustmentsVertical } from "../../../node_modules/react-icons/hi2/index.js";
|
|
5
4
|
import { HiSearch, HiOutlineSortDescending, HiOutlineSortAscending } from "../../../node_modules/react-icons/hi/index.js";
|
|
6
5
|
import { FiSettings } from "../../../node_modules/react-icons/fi/index.js";
|
|
7
6
|
import Input from "../../Input/Input.js";
|
|
7
|
+
import UtilityButton from "../../UtilityButton/UtilityButton.js";
|
|
8
8
|
import Typography from "../../Typography/Typography.js";
|
|
9
9
|
import Select from "../../Select/Select.js";
|
|
10
10
|
const PrimaryTableControlsRow = ({
|
|
@@ -2,8 +2,5 @@ export { default } from './TablePagination';
|
|
|
2
2
|
export { default as Table } from './Table';
|
|
3
3
|
export type { TableProps } from './Table';
|
|
4
4
|
export type { TablePaginationProps } from './TablePagination';
|
|
5
|
-
export { default as TableWithControls } from './TableWithControls';
|
|
6
|
-
export type { TableWithControlsProps } from './TableWithControls';
|
|
7
5
|
export { useTable } from './useTable';
|
|
8
6
|
export type { UseTableConfig } from './useTable';
|
|
9
|
-
export { useTableWithControls } from './TableWithControls';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var jsxRuntime = require("react/jsx-runtime");
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var TableControls = require("../Table/TableControls/TableControls.cjs");
|
|
4
|
+
var TablePagination = require("../Table/TablePagination.cjs");
|
|
5
5
|
const TableWithControls = ({
|
|
6
6
|
tableData,
|
|
7
7
|
tableControlsData,
|
|
@@ -28,7 +28,7 @@ const TableWithControls = ({
|
|
|
28
28
|
}
|
|
29
29
|
),
|
|
30
30
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31
|
-
|
|
31
|
+
TablePagination,
|
|
32
32
|
{
|
|
33
33
|
dataSource,
|
|
34
34
|
columns,
|
package/dist/components/{Table/TableWithControls → TableWithControls}/TableWithControls.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableProps } from '../Table';
|
|
2
|
-
import { TableControlsData } from '../TableControls/TableControls';
|
|
2
|
+
import { TableControlsData } from '../Table/TableControls/TableControls';
|
|
3
3
|
export interface TableWithControlsProps {
|
|
4
4
|
tableControlsData: TableControlsData;
|
|
5
5
|
tableData: TableProps<Record<string, any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import TableControls from "../Table/TableControls/TableControls.js";
|
|
3
|
+
import TablePagination from "../Table/TablePagination.js";
|
|
4
4
|
const TableWithControls = ({
|
|
5
5
|
tableData,
|
|
6
6
|
tableControlsData,
|
|
@@ -27,7 +27,7 @@ const TableWithControls = ({
|
|
|
27
27
|
}
|
|
28
28
|
),
|
|
29
29
|
/* @__PURE__ */ jsx(
|
|
30
|
-
|
|
30
|
+
TablePagination,
|
|
31
31
|
{
|
|
32
32
|
dataSource,
|
|
33
33
|
columns,
|
package/dist/components/{Table/TableWithControls → TableWithControls}/useTableWithControls.cjs
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
var React = require("react");
|
|
4
|
-
var useTable = require("../useTable.cjs");
|
|
5
|
-
var tableMocks = require("../__mocks__/table-mocks.cjs");
|
|
4
|
+
var useTable = require("../Table/useTable.cjs");
|
|
5
|
+
var tableMocks = require("../Table/__mocks__/table-mocks.cjs");
|
|
6
6
|
const tableControlsData = {
|
|
7
7
|
primaryTableRowData: {
|
|
8
8
|
sortOptions: [
|
package/dist/components/{Table/TableWithControls → TableWithControls}/useTableWithControls.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UseTableConfig } from '../useTable';
|
|
2
|
-
import { ActionEvent, TableEventPayload } from '
|
|
1
|
+
import { UseTableConfig } from '../Table/useTable';
|
|
2
|
+
import { ActionEvent, TableEventPayload } from '../../types/events';
|
|
3
3
|
export declare const useTableWithControls: (tableConfig: UseTableConfig) => {
|
|
4
4
|
onChange: (actionEvent: ActionEvent<TableEventPayload>) => void;
|
|
5
5
|
primaryTableRowData: {
|
|
@@ -21,7 +21,7 @@ export declare const useTableWithControls: (tableConfig: UseTableConfig) => {
|
|
|
21
21
|
dataSource: Record<string, any>[];
|
|
22
22
|
columns: import('antd').TableColumnsType<Record<string, any>>;
|
|
23
23
|
rowSelection: {
|
|
24
|
-
type: import('../Table').SelectionType;
|
|
24
|
+
type: import('../Table/Table').SelectionType;
|
|
25
25
|
onChange: (selectedRowKeys: React.Key[], selectedRows: Record<string, any>[]) => void;
|
|
26
26
|
getCheckboxProps: (record: any) => unknown;
|
|
27
27
|
};
|
package/dist/components/{Table/TableWithControls → TableWithControls}/useTableWithControls.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { useTable } from "../useTable.js";
|
|
4
|
-
import { mockColumns, mockDataSource } from "../__mocks__/table-mocks.js";
|
|
3
|
+
import { useTable } from "../Table/useTable.js";
|
|
4
|
+
import { mockColumns, mockDataSource } from "../Table/__mocks__/table-mocks.js";
|
|
5
5
|
const tableControlsData = {
|
|
6
6
|
primaryTableRowData: {
|
|
7
7
|
sortOptions: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonProps } from '
|
|
1
|
+
import { ButtonProps } from '../Button';
|
|
2
2
|
export interface UtilityButtonProps extends Omit<ButtonProps, "themeType"> {
|
|
3
3
|
}
|
|
4
4
|
declare const UtilityButton: ({ children, onClick, state, isIconButton, size, ...rest }: UtilityButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,8 +7,8 @@ export type { BreadcrumbProps } from './Breadcrumb';
|
|
|
7
7
|
export type { BreadcrumbItem } from './Breadcrumb/Breadcrumb.types';
|
|
8
8
|
export { default as Button } from './Button';
|
|
9
9
|
export type { ButtonProps } from './Button';
|
|
10
|
-
export { default as UtilityButton } from './
|
|
11
|
-
export type { UtilityButtonProps } from './
|
|
10
|
+
export { default as UtilityButton } from './UtilityButton';
|
|
11
|
+
export type { UtilityButtonProps } from './UtilityButton';
|
|
12
12
|
export { default as IconButton } from './Button';
|
|
13
13
|
export type { IconButtonProps } from './Button';
|
|
14
14
|
export { default as Card } from './Card';
|
|
@@ -57,10 +57,10 @@ export { default as Switch } from './Switch';
|
|
|
57
57
|
export type { SwitchProps } from './Switch';
|
|
58
58
|
export { default as Table } from './Table';
|
|
59
59
|
export type { TableProps } from './Table';
|
|
60
|
-
export { default as TableWithControls } from './
|
|
61
|
-
export type { TableWithControlsProps } from './
|
|
60
|
+
export { default as TableWithControls } from './TableWithControls';
|
|
61
|
+
export type { TableWithControlsProps } from './TableWithControls';
|
|
62
62
|
export { useTable } from './Table';
|
|
63
|
-
export { useTableWithControls } from './
|
|
63
|
+
export { useTableWithControls } from './TableWithControls';
|
|
64
64
|
export type { UseTableConfig } from './Table';
|
|
65
65
|
export { default as Tabs } from './Tabs';
|
|
66
66
|
export type { TabsProps } from './Tabs';
|
package/dist/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ var Avatar = require("./components/Avatar/Avatar.cjs");
|
|
|
5
5
|
var Badge = require("./components/Badge/Badge.cjs");
|
|
6
6
|
var Breadcrumb = require("./components/Breadcrumb/Breadcrumb.cjs");
|
|
7
7
|
var Button = require("./components/Button/Button.cjs");
|
|
8
|
+
var UtilityButton = require("./components/UtilityButton/UtilityButton.cjs");
|
|
8
9
|
var Card = require("./components/Card/Card.cjs");
|
|
9
10
|
var Checkbox = require("./components/Checkbox/Checkbox.cjs");
|
|
10
11
|
var Chat = require("./components/Chat/Chat.cjs");
|
|
@@ -30,7 +31,7 @@ var Select = require("./components/Select/Select.cjs");
|
|
|
30
31
|
var Shapes = require("./components/Shapes/Shapes.cjs");
|
|
31
32
|
var Switch = require("./components/Switch/Switch.cjs");
|
|
32
33
|
var TablePagination = require("./components/Table/TablePagination.cjs");
|
|
33
|
-
var TableWithControls = require("./components/
|
|
34
|
+
var TableWithControls = require("./components/TableWithControls/TableWithControls.cjs");
|
|
34
35
|
var Tabs = require("./components/Tabs/Tabs.cjs");
|
|
35
36
|
var Tile = require("./components/Tile/Tile.cjs");
|
|
36
37
|
var Toast = require("./components/Toast/Toast.cjs");
|
|
@@ -38,7 +39,7 @@ var Tooltip = require("./components/Tooltip/Tooltip.cjs");
|
|
|
38
39
|
var Typography = require("./components/Typography/Typography.cjs");
|
|
39
40
|
var GenesisProvider = require("./providers/GenesisProvider.cjs");
|
|
40
41
|
var useTable = require("./components/Table/useTable.cjs");
|
|
41
|
-
var useTableWithControls = require("./components/
|
|
42
|
+
var useTableWithControls = require("./components/TableWithControls/useTableWithControls.cjs");
|
|
42
43
|
var useGenesis = require("./providers/useGenesis.cjs");
|
|
43
44
|
var genesisTheme = require("./styles/theme/genesis-theme.cjs");
|
|
44
45
|
exports.GENESIS = index.default;
|
|
@@ -48,7 +49,7 @@ exports.Badge = Badge;
|
|
|
48
49
|
exports.Breadcrumb = Breadcrumb;
|
|
49
50
|
exports.Button = Button;
|
|
50
51
|
exports.IconButton = Button;
|
|
51
|
-
exports.UtilityButton =
|
|
52
|
+
exports.UtilityButton = UtilityButton;
|
|
52
53
|
exports.Card = Card;
|
|
53
54
|
exports.Checkbox = Checkbox;
|
|
54
55
|
exports.Chat = Chat;
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,8 @@ import { GlobalStyles } from "./styles/global-styles.js";
|
|
|
3
3
|
import { default as default3 } from "./components/Avatar/Avatar.js";
|
|
4
4
|
import { default as default4 } from "./components/Badge/Badge.js";
|
|
5
5
|
import { default as default5 } from "./components/Breadcrumb/Breadcrumb.js";
|
|
6
|
-
import { default as default6, default as default7
|
|
6
|
+
import { default as default6, default as default7 } from "./components/Button/Button.js";
|
|
7
|
+
import { default as default8 } from "./components/UtilityButton/UtilityButton.js";
|
|
7
8
|
import { default as default9 } from "./components/Card/Card.js";
|
|
8
9
|
import { default as default10 } from "./components/Checkbox/Checkbox.js";
|
|
9
10
|
import { default as default11 } from "./components/Chat/Chat.js";
|
|
@@ -29,7 +30,7 @@ import { default as default30 } from "./components/Select/Select.js";
|
|
|
29
30
|
import { default as default31 } from "./components/Shapes/Shapes.js";
|
|
30
31
|
import { default as default32 } from "./components/Switch/Switch.js";
|
|
31
32
|
import { default as default33 } from "./components/Table/TablePagination.js";
|
|
32
|
-
import { default as default34 } from "./components/
|
|
33
|
+
import { default as default34 } from "./components/TableWithControls/TableWithControls.js";
|
|
33
34
|
import { default as default35 } from "./components/Tabs/Tabs.js";
|
|
34
35
|
import { default as default36 } from "./components/Tile/Tile.js";
|
|
35
36
|
import { default as default37 } from "./components/Toast/Toast.js";
|
|
@@ -37,7 +38,7 @@ import { default as default38 } from "./components/Tooltip/Tooltip.js";
|
|
|
37
38
|
import { default as default39 } from "./components/Typography/Typography.js";
|
|
38
39
|
import { GenesisProvider } from "./providers/GenesisProvider.js";
|
|
39
40
|
import { useTable } from "./components/Table/useTable.js";
|
|
40
|
-
import { useTableWithControls } from "./components/
|
|
41
|
+
import { useTableWithControls } from "./components/TableWithControls/useTableWithControls.js";
|
|
41
42
|
import { useGenesis } from "./providers/useGenesis.js";
|
|
42
43
|
import { TypographySizeKey, baseTokens, breakpoints, darkTheme, lightTheme, sizing } from "./styles/theme/genesis-theme.js";
|
|
43
44
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobolt/genesis",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"description": "genesis design system",
|
|
5
5
|
"author": "gobolt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,12 +50,6 @@
|
|
|
50
50
|
"import": "./dist/interface/*.js",
|
|
51
51
|
"require": "./dist/interface/*.cjs",
|
|
52
52
|
"default": "./dist/interface/*.js"
|
|
53
|
-
},
|
|
54
|
-
"./dist/*": {
|
|
55
|
-
"types": "./dist/*.d.ts",
|
|
56
|
-
"import": "./dist/*.js",
|
|
57
|
-
"require": "./dist/*.cjs",
|
|
58
|
-
"default": "./dist/*.js"
|
|
59
53
|
}
|
|
60
54
|
},
|
|
61
55
|
"files": [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|