@oc-digital/react-component-library 7.2.2-beta.0 → 7.2.2-beta.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/build/Alert/Alert.d.ts +4 -4
- package/build/Alert/Alert.types.d.ts +13 -13
- package/build/AlphabeticalList/AlphabeticalList.d.ts +4 -4
- package/build/AlphabeticalList/AlphabeticalList.types.d.ts +22 -22
- package/build/AutoSave/Select/AutoSave.types.d.ts +11 -11
- package/build/AutoSave/Select/index.d.ts +3 -3
- package/build/AutoSave/Text/AutoSave.types.d.ts +16 -16
- package/build/AutoSave/Text/index.d.ts +3 -3
- package/build/Breadcrumbs/Breadcrumbs.d.ts +4 -4
- package/build/Breadcrumbs/Breadcrumbs.types.d.ts +23 -23
- package/build/Button/Button.d.ts +4 -4
- package/build/Button/Button.types.d.ts +10 -10
- package/build/ButtonWithConfirm/ButtonWithConfirm.d.ts +4 -4
- package/build/ButtonWithConfirm/ButtonWithConfirm.types.d.ts +9 -9
- package/build/ContentBox/ContentBox.d.ts +4 -4
- package/build/ContentBox/ContentBox.types.d.ts +7 -7
- package/build/ContentLabel/ContentLabel.d.ts +4 -4
- package/build/ContentLabel/ContentLabel.types.d.ts +5 -5
- package/build/DatePicker/DatePicker.d.ts +4 -4
- package/build/DatePicker/DatePicker.types.d.ts +5 -5
- package/build/EditableTable/EditableTable.d.ts +4 -4
- package/build/EditableTable/EditableTable.types.d.ts +106 -106
- package/build/EditableTable/components/TableCheckbox.d.ts +8 -8
- package/build/EditableTable/components/TableDateInput.d.ts +9 -9
- package/build/EditableTable/components/TableTextInput.d.ts +20 -20
- package/build/EditableTable/components/utils/getTextWidth.d.ts +13 -13
- package/build/EditableTable/defaultCells.d.ts +30 -30
- package/build/EntityList/EntityList.d.ts +4 -4
- package/build/EntityList/EntityList.types.d.ts +14 -14
- package/build/ErrorIndicator/ErrorIndicator.d.ts +4 -4
- package/build/ErrorIndicator/ErrorIndicator.types.d.ts +4 -4
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.d.ts +4 -4
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.types.d.ts +8 -8
- package/build/KeyboardDatePicker/KeyboardDatePicker.d.ts +4 -4
- package/build/KeyboardDatePicker/KeyboardDatePicker.types.d.ts +5 -5
- package/build/LeftNavigation/LeftNavigation.d.ts +4 -4
- package/build/LeftNavigation/LeftNavigation.types.d.ts +96 -96
- package/build/LeftNavigation/NavListItem.d.ts +4 -4
- package/build/LeftNavigation/PrimaryLeftNavigation.d.ts +4 -4
- package/build/LeftNavigation/SecondaryLeftNavigation.d.ts +4 -4
- package/build/LoadingSpinner/LoadingSpinner.d.ts +4 -4
- package/build/LoadingSpinner/LoadingSpinner.types.d.ts +5 -5
- package/build/MainLayout/MainLayout.d.ts +4 -4
- package/build/MainLayout/MainLayout.types.d.ts +10 -10
- package/build/MobileDatePicker/MobileDatePicker.d.ts +4 -4
- package/build/MobileDatePicker/MobileDatePicker.types.d.ts +5 -5
- package/build/NavbarLayout/Navbar.d.ts +12 -12
- package/build/NavbarLayout/NavbarLayout.d.ts +16 -16
- package/build/NavbarLayout/index.d.ts +2 -2
- package/build/SearchBar/SearchBar.d.ts +4 -4
- package/build/SearchBar/SearchBar.types.d.ts +33 -33
- package/build/Select/Select.d.ts +4 -4
- package/build/Select/Select.types.d.ts +16 -16
- package/build/StaticTable/StaticTable.d.ts +4 -4
- package/build/StaticTable/StaticTable.types.d.ts +21 -21
- package/build/SvgComponents/ContainedPartnersLogo.d.ts +4 -4
- package/build/SvgComponents/HomeSvg.d.ts +4 -4
- package/build/SvgComponents/NovelLogoSvg.d.ts +4 -4
- package/build/SvgComponents/OrganisationList.d.ts +4 -4
- package/build/SvgComponents/ProjectsSvg.d.ts +4 -4
- package/build/SvgComponents/index.d.ts +5 -5
- package/build/SvgComponents/types.d.ts +6 -6
- package/build/TextField/TextField.d.ts +15 -15
- package/build/TextField/TextField.types.d.ts +7 -7
- package/build/Tooltip/OptionalTooltip.d.ts +8 -8
- package/build/Tooltip/index.d.ts +1 -1
- package/build/globals/index.d.ts +26 -26
- package/build/hooks/index.d.ts +3 -3
- package/build/hooks/useDebounceEffect.d.ts +2 -2
- package/build/hooks/useInterval.d.ts +2 -2
- package/build/hooks/useWhyDidYouUpdate.d.ts +1 -1
- package/build/index.d.ts +37 -37
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/stories/Button.d.ts +28 -0
- package/build/stories/Button.stories.d.ts +10 -0
- package/build/stories/Header.d.ts +12 -0
- package/build/stories/Header.stories.d.ts +8 -0
- package/build/stories/Page.d.ts +3 -0
- package/build/stories/Page.stories.d.ts +8 -0
- package/build/style.css +1 -0
- package/build/styles/colours.d.ts +3 -3
- package/build/styles/font.d.ts +1 -1
- package/build/styles/index.d.ts +3 -3
- package/build/styles/layout.d.ts +1 -1
- package/build/styles/spacing.d.ts +1 -1
- package/build/styles/themes.d.ts +2 -2
- package/build/utils/index.d.ts +5 -5
- package/package.json +23 -19
- package/build/EditableTable/components/styled/Checkbox.d.ts +0 -5
- package/build/EditableTable/components/styled/CheckboxLabel.d.ts +0 -5
- package/build/EditableTable/components/styled/Input.d.ts +0 -21
- package/build/EditableTable/components/styled/InputAdornmentWrapper.d.ts +0 -5
- package/build/EditableTable/components/styled/InputWrapper.d.ts +0 -5
- package/build/EditableTable/components/styled/SmallError.d.ts +0 -5
- package/build/assets/index-DCUzKTQq.css +0 -78
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
interface ButtonProps {
|
|
3
|
+
/**
|
|
4
|
+
* Is this the principal call to action on the page?
|
|
5
|
+
*/
|
|
6
|
+
primary?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* What background color to use
|
|
9
|
+
*/
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* How large should the button be?
|
|
13
|
+
*/
|
|
14
|
+
size?: 'small' | 'medium' | 'large';
|
|
15
|
+
/**
|
|
16
|
+
* Button contents
|
|
17
|
+
*/
|
|
18
|
+
label: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional click handler
|
|
21
|
+
*/
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Primary UI component for user interaction
|
|
26
|
+
*/
|
|
27
|
+
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Button } from './Button';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Button>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Button>;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Secondary: Story;
|
|
9
|
+
export declare const Large: Story;
|
|
10
|
+
export declare const Small: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
type User = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
interface HeaderProps {
|
|
6
|
+
user?: User;
|
|
7
|
+
onLogin: () => void;
|
|
8
|
+
onLogout: () => void;
|
|
9
|
+
onCreateAccount: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Header } from './Header';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Header>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Header>;
|
|
7
|
+
export declare const LoggedIn: Story;
|
|
8
|
+
export declare const LoggedOut: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Page } from './Page';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Page>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Page>;
|
|
7
|
+
export declare const LoggedOut: Story;
|
|
8
|
+
export declare const LoggedIn: Story;
|
package/build/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._input_1kwvp_1{background:transparent;border:0;font-family:Roboto,Helvetica,Arial,sans-serif;transition:border-bottom .2s cubic-bezier(.4,0,.2,1) 0ms,margin-top .2s cubic-bezier(.4,0,.2,1) 0m;margin-top:0;min-width:100%;box-sizing:content-box;font-size:14px;padding:0}._input_1kwvp_1[data-valid=false]{border-bottom-color:#d32f2f!important}input._input_1kwvp_1:not(:disabled):hover:not(:focus){border-bottom:1px solid rgb(158,158,158);margin-top:1px}input._input_1kwvp_1:not(:disabled):focus{outline:none;border-bottom:2px solid rgb(115,196,202);margin-top:2px}._input_1kwvp_1:disabled{cursor:text}._wrapper_1kwvp_35{display:grid;grid-template-columns:auto 1fr auto;align-items:center;width:fit-content;min-width:100%;gap:.35rem}._wrapper_1kwvp_35[data-full-width=true]{width:100%}._wrapper_1kwvp_35[data-full-width=true] ._input_1kwvp_1{width:100%!important;max-width:100%}td[data-align=center] ._input_1kwvp_1{text-align:center;margin:auto}._error_ra74q_1{color:#d32f2f;display:block}._checkbox_1j8tf_1{accent-color:rgb(115,196,202);margin:0;width:15px;height:15px;cursor:pointer}._label_1j8tf_9{display:flex;justify-content:center;align-items:center;margin:auto;border-radius:5rem;width:38px;height:38px;cursor:pointer;transition:background .2s ease}._label_1j8tf_9:hover{background:#00000008}._label_1j8tf_9:active{background:#0000001a}._disabled_1j8tf_29._label_1j8tf_9{cursor:default!important}._disabled_1j8tf_29._label_1j8tf_9:hover,._disabled_1j8tf_29._label_1j8tf_9:active{background:none!important}._disabled_1j8tf_29._label_1j8tf_9 ._checkbox_1j8tf_1{cursor:default!important}._newRowHighlight_2pv8n_1{background-color:#73c4ca30}._editedCellHighlight_2pv8n_5{background-color:#5840f52e!important;background-clip:padding-box}._editedBorder_2pv8n_10{border:3px solid #5840f52e;border-width:2px 4px}._errorBorder_2pv8n_15{border:3px solid rgb(211,47,47);border-width:2px 4px}._emptyLoadingPadding_2pv8n_20{background:#fff;padding-top:.75rem;padding-bottom:.75rem}._centeredText_2pv8n_26{text-align:center}._disabled_2pv8n_30{background-color:#0000000a}._pagination_2pv8n_34{margin-top:1rem;margin-bottom:1rem;display:flex;align-items:center;justify-content:center}._virtualisationContainer_2pv8n_42{background:#fff;min-width:fit-content}._cellPadding_2pv8n_47{padding:.5rem .75rem}._shadedHeader_2pv8n_51:nth-of-type(2n){background-color:#eee}._shadedBodyCell_2pv8n_55:nth-of-type(2n){background-color:#00000012;background-clip:padding-box}._shadedHeaderGroupParent_2pv8n_60:nth-of-type(2n){background-color:#eee}._shadedHeaderGroup2Children_2pv8n_64:nth-of-type(4n-2),._shadedHeaderGroup2Children_2pv8n_64:nth-of-type(4n-1){background-color:#eee}._shadedBody2CellsInsideGroup_2pv8n_69:nth-of-type(4n-2),._shadedBody2CellsInsideGroup_2pv8n_69:nth-of-type(4n-1){background-color:#00000012;background-clip:padding-box}._offsetStickyPosition_2pv8n_75{top:0;position:sticky}._stickyHeaderZIndex_2pv8n_80{z-index:3}._headerCellColour_2pv8n_84{background-color:#fafafa}._rowCellColour_2pv8n_88{background-color:#fff;background-clip:padding-box}._rowHoverForStickyCell_2pv8n_93:hover ._stickyRowCell_2pv8n_93{background-color:#f5f5f5}._headerBorders_2pv8n_97:not(tr:last-child th){border:none}._tableRow_2pv8n_101{background:#fff}._tableRow_2pv8n_101:hover{background:#0000000a}._tableHeadingCell_2pv8n_109{font-weight:500}._tableCell_2pv8n_113{font-family:Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;line-height:1.5rem;letter-spacing:.01071em;display:table-cell;vertical-align:inherit;border-bottom:1px solid rgb(224,224,224);text-align:left;color:#000000de;padding:8px}._tableCellTotalsLabel_2pv8n_126{text-align:center;font-weight:500}._tableTotalCell_2pv8n_131{border-bottom:0;height:54.5px}._tableTotalWrapper_2pv8n_136{display:grid;grid-template-columns:1fr auto;font-weight:500}thead ._tableCell_2pv8n_113{border:0!important;border-collapse:initial}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const RED = "#d32f2f";
|
|
2
|
-
export declare const GREY = "rgb(158, 158, 158)";
|
|
3
|
-
export declare const PRIMARY = "rgb(115, 196, 202)";
|
|
1
|
+
export declare const RED = "#d32f2f";
|
|
2
|
+
export declare const GREY = "rgb(158, 158, 158)";
|
|
3
|
+
export declare const PRIMARY = "rgb(115, 196, 202)";
|
package/build/styles/font.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useFontStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"boldText" | "bolderText" | "smallText" | "warningColor" | "centerText">;
|
|
1
|
+
export declare const useFontStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"boldText" | "bolderText" | "smallText" | "warningColor" | "centerText">;
|
package/build/styles/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./spacing";
|
|
2
|
-
export * from "./font";
|
|
3
|
-
export * from "./layout";
|
|
1
|
+
export * from "./spacing";
|
|
2
|
+
export * from "./font";
|
|
3
|
+
export * from "./layout";
|
package/build/styles/layout.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useLayoutStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"contentBox" | "limitWidth60rem" | "limitWidth50rem" | "limitWidth45rem" | "limitWidth40rem" | "limitWidth35rem" | "limitWidth30rem" | "limitWidth25rem" | "centeredText" | "startAlignedText" | "width20" | "width49" | "width50" | "width60" | "width100" | "flexCenter" | "centerJustify" | "leftJustify" | "rightJustify" | "adornmentGap">;
|
|
1
|
+
export declare const useLayoutStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"contentBox" | "limitWidth60rem" | "limitWidth50rem" | "limitWidth45rem" | "limitWidth40rem" | "limitWidth35rem" | "limitWidth30rem" | "limitWidth25rem" | "centeredText" | "startAlignedText" | "width20" | "width49" | "width50" | "width60" | "width100" | "flexCenter" | "centerJustify" | "leftJustify" | "rightJustify" | "adornmentGap">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useSpacingStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"labelBreak" | "contentBreak" | "sectionBreak" | "doubleSectionBreak" | "rightSpacer1" | "rightSpacer2" | "leftSpacer1" | "leftSpacer2" | "buttonSpacing" | "leftRightPadding1" | "leftRightPadding2" | "topBottomPadding1" | "topBottomPadding2">;
|
|
1
|
+
export declare const useSpacingStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"labelBreak" | "contentBreak" | "sectionBreak" | "doubleSectionBreak" | "rightSpacer1" | "rightSpacer2" | "leftSpacer1" | "leftSpacer2" | "buttonSpacing" | "leftRightPadding1" | "leftRightPadding2" | "topBottomPadding1" | "topBottomPadding2">;
|
package/build/styles/themes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const novelTheme: import("@mui/material/styles").Theme;
|
|
2
|
-
export declare const partnersTheme: import("@mui/material/styles").Theme;
|
|
1
|
+
export declare const novelTheme: import("@mui/material/styles").Theme;
|
|
2
|
+
export declare const partnersTheme: import("@mui/material/styles").Theme;
|
package/build/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TableCellValues } from "../EditableTable/EditableTable.types";
|
|
2
|
-
export declare function sortDescendingStartDateString<T extends {
|
|
3
|
-
startDate: string;
|
|
4
|
-
}>(array: T[]): T[];
|
|
5
|
-
export declare const didCellValueChange: (oldVal: TableCellValues, newVal: TableCellValues, isDateValue?: boolean) => boolean;
|
|
1
|
+
import { TableCellValues } from "../EditableTable/EditableTable.types";
|
|
2
|
+
export declare function sortDescendingStartDateString<T extends {
|
|
3
|
+
startDate: string;
|
|
4
|
+
}>(array: T[]): T[];
|
|
5
|
+
export declare const didCellValueChange: (oldVal: TableCellValues, newVal: TableCellValues, isDateValue?: boolean) => boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oc-digital/react-component-library",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.2.2-beta.
|
|
4
|
+
"version": "7.2.2-beta.20",
|
|
5
5
|
"description": "React component library for Optimal Compliance",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"types": "build/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"build:watch": "npx rollup -c -w",
|
|
15
15
|
"prepublishOnly": "npm run build",
|
|
16
16
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
17
|
-
"storybook": "storybook dev -p 6006",
|
|
17
|
+
"storybook": "storybook dev -p 6006 --no-open",
|
|
18
18
|
"build-storybook": "storybook build",
|
|
19
19
|
"beta": "npm publish --tag beta",
|
|
20
20
|
"lint": "eslint ./",
|
|
@@ -24,9 +24,12 @@
|
|
|
24
24
|
"license": "ISC",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@babel/core": "^7.15.5",
|
|
27
|
+
"@babel/eslint-parser": "^7.24.5",
|
|
28
|
+
"@babel/plugin-syntax-import-attributes": "^7.24.1",
|
|
27
29
|
"@babel/preset-env": "^7.23.9",
|
|
28
30
|
"@babel/preset-react": "^7.23.3",
|
|
29
31
|
"@babel/preset-typescript": "^7.23.3",
|
|
32
|
+
"@chromatic-com/storybook": "^1.3.4",
|
|
30
33
|
"@date-io/date-fns": "^1.3.13",
|
|
31
34
|
"@emotion/react": "^11.11.1",
|
|
32
35
|
"@emotion/styled": "^11.11.0",
|
|
@@ -38,23 +41,22 @@
|
|
|
38
41
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
39
42
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
40
43
|
"@rollup/plugin-terser": "^0.4.4",
|
|
41
|
-
"@storybook/addon-actions": "^
|
|
42
|
-
"@storybook/addon-essentials": "^
|
|
43
|
-
"@storybook/addon-links": "^
|
|
44
|
-
"@storybook/addon-themes": "^
|
|
45
|
-
"@storybook/react": "^
|
|
46
|
-
"@storybook/react-
|
|
44
|
+
"@storybook/addon-actions": "^8.0.10",
|
|
45
|
+
"@storybook/addon-essentials": "^8.0.10",
|
|
46
|
+
"@storybook/addon-links": "^8.0.10",
|
|
47
|
+
"@storybook/addon-themes": "^8.0.10",
|
|
48
|
+
"@storybook/react": "^8.0.10",
|
|
49
|
+
"@storybook/react-vite": "^8.0.10",
|
|
47
50
|
"@types/react": "^17.0.21",
|
|
48
51
|
"@types/react-table": "^7.7.8",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
50
|
-
"@typescript-eslint/parser": "^
|
|
51
|
-
"babel-eslint": "^10.1.0",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
53
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
52
54
|
"babel-loader": "^8.2.2",
|
|
53
55
|
"date-fns": "^2.25.0",
|
|
54
|
-
"eslint": "^
|
|
56
|
+
"eslint": "^8.57.0",
|
|
55
57
|
"eslint-config-prettier": "^8.3.0",
|
|
56
|
-
"eslint-config-react-app": "^
|
|
57
|
-
"eslint-plugin-flowtype": "^
|
|
58
|
+
"eslint-config-react-app": "^7.0.1",
|
|
59
|
+
"eslint-plugin-flowtype": "^8.0.3",
|
|
58
60
|
"eslint-plugin-import": "^2.24.2",
|
|
59
61
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
60
62
|
"eslint-plugin-prettier": "^4.0.0",
|
|
@@ -70,12 +72,14 @@
|
|
|
70
72
|
"react-router-dom": "^6.21.1",
|
|
71
73
|
"react-table": "^7.7.0",
|
|
72
74
|
"rollup": "^4.12.1",
|
|
73
|
-
"rollup-plugin-import-css-classes": "^1.
|
|
75
|
+
"rollup-plugin-import-css-classes": "^1.5.0",
|
|
76
|
+
"rollup-plugin-import-css-classes-storybook": "npm:rollup-plugin-import-css-classes@^2.0.0-beta.2",
|
|
74
77
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
75
|
-
"rollup-plugin-typescript2": "^0.
|
|
76
|
-
"storybook": "^
|
|
78
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
79
|
+
"storybook": "^8.0.10",
|
|
77
80
|
"tslib": "^2.3.1",
|
|
78
|
-
"typescript": "^
|
|
81
|
+
"typescript": "^5.4.5",
|
|
82
|
+
"vite": "^5.2.11",
|
|
79
83
|
"yup": "^0.32.11"
|
|
80
84
|
},
|
|
81
85
|
"peerDependencies": {
|
|
@@ -96,7 +100,7 @@
|
|
|
96
100
|
"eslintConfig": {
|
|
97
101
|
"parser": "@typescript-eslint/parser",
|
|
98
102
|
"parserOptions": {
|
|
99
|
-
"ecmaVersion":
|
|
103
|
+
"ecmaVersion": 2023,
|
|
100
104
|
"sourceType": "module",
|
|
101
105
|
"ecmaFeatures": {
|
|
102
106
|
"jsx": true
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Checkbox: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const CheckboxLabel: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
6
|
-
export declare const NumericFormatInput: import("@emotion/styled").StyledComponent<import("react-number-format/types/types").InternalNumberFormatBase & {
|
|
7
|
-
thousandSeparator?: string | boolean | undefined;
|
|
8
|
-
decimalSeparator?: string | undefined;
|
|
9
|
-
allowedDecimalSeparators?: string[] | undefined;
|
|
10
|
-
thousandsGroupStyle?: "none" | "thousand" | "lakh" | "wan" | undefined;
|
|
11
|
-
decimalScale?: number | undefined;
|
|
12
|
-
fixedDecimalScale?: boolean | undefined;
|
|
13
|
-
allowNegative?: boolean | undefined;
|
|
14
|
-
allowLeadingZeros?: boolean | undefined;
|
|
15
|
-
suffix?: string | undefined;
|
|
16
|
-
prefix?: string | undefined;
|
|
17
|
-
} & Omit<import("react-number-format").InputAttributes, never> & Omit<unknown, "defaultValue" | "value" | "type" | "onChange" | "prefix" | "inputMode" | "onFocus" | "onBlur" | "onKeyDown" | "onMouseUp" | "ref" | "displayType" | "renderText" | "getInputRef" | "valueIsNumericString" | "onValueChange" | "isAllowed" | "isCharacterSame" | "thousandSeparator" | "decimalSeparator" | "allowedDecimalSeparators" | "thousandsGroupStyle" | "decimalScale" | "fixedDecimalScale" | "allowNegative" | "allowLeadingZeros" | "suffix"> & {
|
|
18
|
-
customInput?: import("react").ComponentType<unknown> | undefined;
|
|
19
|
-
} & {
|
|
20
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
-
}, {}, {}>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const InputAdornmentWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const InputWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const SmallError: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
.input {
|
|
2
|
-
background: transparent;
|
|
3
|
-
border: 0;
|
|
4
|
-
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
|
5
|
-
transition: border-bottom 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
|
|
6
|
-
margin-top 200ms cubic-bezier(0.4, 0, 0.2, 1) 0m;
|
|
7
|
-
margin-top: 0;
|
|
8
|
-
min-width: 3ch;
|
|
9
|
-
max-width: 20ch;
|
|
10
|
-
box-sizing: content-box;
|
|
11
|
-
|
|
12
|
-
&:hover {
|
|
13
|
-
border-bottom: 1px solid rgb(158, 158, 158);
|
|
14
|
-
margin-top: 1px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&:focus {
|
|
18
|
-
outline: none;
|
|
19
|
-
border-bottom: 2px solid rgb(115, 196, 202);
|
|
20
|
-
margin-top: 2px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&[data-valid="false"] {
|
|
24
|
-
border-bottom-color: #d32f2f !important;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.wrapper {
|
|
29
|
-
display: grid;
|
|
30
|
-
grid-template-columns: auto 1fr auto;
|
|
31
|
-
align-items: center;
|
|
32
|
-
width: fit-content;
|
|
33
|
-
margin: auto;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.error {
|
|
37
|
-
color: #d32f2f;
|
|
38
|
-
display: block;
|
|
39
|
-
text-align: center;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.checkbox {
|
|
43
|
-
accent-color: rgb(115, 196, 202);
|
|
44
|
-
margin: 0;
|
|
45
|
-
width: 15px;
|
|
46
|
-
height: 15px;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.label {
|
|
51
|
-
display: flex;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
align-items: center;
|
|
54
|
-
margin: auto;
|
|
55
|
-
border-radius: 5rem;
|
|
56
|
-
width: 38px;
|
|
57
|
-
height: 38px;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
transition: background 0.2s ease;
|
|
60
|
-
|
|
61
|
-
&:hover {
|
|
62
|
-
background: rgba(0, 0, 0, 0.03);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:active {
|
|
66
|
-
background: rgba(0, 0, 0, 0.1);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.disabled.label {
|
|
71
|
-
&:hover {
|
|
72
|
-
background: unset;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&:active {
|
|
76
|
-
background: unset;
|
|
77
|
-
}
|
|
78
|
-
}
|