@loadsmart/loadsmart-ui 8.0.7 → 8.1.0-beta.1
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/Banner/Banner.d.ts +2 -3
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Calendar/Pickers/PickerButton.d.ts +1 -2
- package/dist/components/Card/Card.d.ts +3 -3
- package/dist/components/Card/CardTitle.d.ts +3 -2
- package/dist/components/DatePicker/DatePicker.d.ts +1 -2
- package/dist/components/Dialog/Dialog.d.ts +3 -3
- package/dist/components/DragDropFile/styles.d.ts +8 -10
- package/dist/components/Dropdown/Dropdown.d.ts +3 -3
- package/dist/components/Dropdown/DropdownMenu.d.ts +5 -4
- package/dist/components/Layout/Layout.utils.d.ts +2 -3
- package/dist/components/Layout/Stack.d.ts +3 -3
- package/dist/components/Loaders/LoadingBar.d.ts +3 -3
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/SideNavigation/Logo/Logo.d.ts +2 -2
- package/dist/components/SideNavigation/Menu/Menu.d.ts +4 -4
- package/dist/components/SideNavigation/Menu/MenuLink.d.ts +3 -2
- package/dist/components/SideNavigation/SideNavigation.d.ts +4 -4
- package/dist/components/Steps/StepsStep.d.ts +3 -2
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/TablePagination/TablePagination.styles.d.ts +1 -2
- package/dist/components/TablePagination/TablePaginationActions.d.ts +1 -2
- package/dist/components/Text/Text.d.ts +3 -3
- package/dist/components/TextField/TextField.d.ts +8 -3
- package/dist/components/ToggleGroup/Toggle.d.ts +3 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/components/TopNavigation/Logo/Logo.d.ts +2 -2
- package/dist/components/TopNavigation/Menu/Menu.d.ts +1 -1
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +5 -4
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +2 -2
- package/dist/components/TopNavigation/TopNavigation.d.ts +2 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/font.d.ts +3 -3
- package/dist/styles/typography.d.ts +2 -2
- package/package.json +17 -4
package/dist/styles/font.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RuleSet } from 'styled-components';
|
|
2
|
+
import { ThemeToken } from '../theming';
|
|
3
3
|
interface FontStyleOptions {
|
|
4
4
|
size?: ThemeToken;
|
|
5
5
|
family?: ThemeToken;
|
|
@@ -11,5 +11,5 @@ interface FontStyleOptions {
|
|
|
11
11
|
/**
|
|
12
12
|
* Add basic CSS style for default font
|
|
13
13
|
*/
|
|
14
|
-
declare function fontStyle({ color, weight, size, family, height, transform, }: FontStyleOptions):
|
|
14
|
+
declare function fontStyle({ color, weight, size, family, height, transform, }: FontStyleOptions): RuleSet;
|
|
15
15
|
export default fontStyle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThemeToken } from '../theming';
|
|
2
|
-
import {
|
|
2
|
+
import { RuleSet } from 'styled-components';
|
|
3
3
|
export interface TypographyOptions {
|
|
4
4
|
italic?: boolean;
|
|
5
5
|
color?: ThemeToken;
|
|
@@ -20,5 +20,5 @@ export declare const typographyProperties: TypographyProperties;
|
|
|
20
20
|
* @param variant Name of the variant
|
|
21
21
|
* @param options Add boldness, italics and color
|
|
22
22
|
*/
|
|
23
|
-
declare function typography<P>(variant?: TypographyVariants | ((props: P) => string), options?: TypographyOptions): ((props: P) =>
|
|
23
|
+
declare function typography<P>(variant?: TypographyVariants | ((props: P) => string), options?: TypographyOptions): ((props: P) => RuleSet<object> | ((props: unknown) => RuleSet<object> | /*elided*/ any)) | RuleSet<object>;
|
|
24
24
|
export default typography;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/loadsmart-ui",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.1.0-beta.1",
|
|
4
4
|
"description": "Miranda UI, a React UI library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,6 +8,20 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./theming": {
|
|
17
|
+
"import": "./dist/theming/index.js",
|
|
18
|
+
"types": "./dist/theming/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./testing": {
|
|
21
|
+
"import": "./dist/testing/index.js",
|
|
22
|
+
"types": "./dist/testing/index.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
11
25
|
"scripts": {
|
|
12
26
|
"start": "yarn dev",
|
|
13
27
|
"dev": "storybook dev -p 6006",
|
|
@@ -58,7 +72,6 @@
|
|
|
58
72
|
"@types/node": "^24.12.0",
|
|
59
73
|
"@types/react": "^18.3.28",
|
|
60
74
|
"@types/react-dom": "^18.3.7",
|
|
61
|
-
"@types/styled-components": "^5.1.36",
|
|
62
75
|
"@vitejs/plugin-react": "^6.0.1",
|
|
63
76
|
"babel-plugin-styled-components": "^2.1.4",
|
|
64
77
|
"chance": "^1.1.13",
|
|
@@ -92,7 +105,7 @@
|
|
|
92
105
|
"react-is": "^18.3.1",
|
|
93
106
|
"semantic-release": "^25.0.3",
|
|
94
107
|
"storybook": "^10.3.3",
|
|
95
|
-
"styled-components": "^
|
|
108
|
+
"styled-components": "^6.3.11",
|
|
96
109
|
"tailwindcss": "^4.2.2",
|
|
97
110
|
"ts-toolbelt": "^9.6.0",
|
|
98
111
|
"typescript": "^6.0.2",
|
|
@@ -106,7 +119,7 @@
|
|
|
106
119
|
"@testing-library/react": ">=11.2.6",
|
|
107
120
|
"react": ">=16.8.0",
|
|
108
121
|
"react-dom": ">=16.8.0",
|
|
109
|
-
"styled-components": ">=
|
|
122
|
+
"styled-components": ">=6.0.0"
|
|
110
123
|
},
|
|
111
124
|
"dependencies": {
|
|
112
125
|
"@floating-ui/react-dom": "^2.1.8",
|