@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.
Files changed (37) hide show
  1. package/dist/components/Banner/Banner.d.ts +2 -3
  2. package/dist/components/Button/Button.d.ts +2 -2
  3. package/dist/components/Calendar/Pickers/PickerButton.d.ts +1 -2
  4. package/dist/components/Card/Card.d.ts +3 -3
  5. package/dist/components/Card/CardTitle.d.ts +3 -2
  6. package/dist/components/DatePicker/DatePicker.d.ts +1 -2
  7. package/dist/components/Dialog/Dialog.d.ts +3 -3
  8. package/dist/components/DragDropFile/styles.d.ts +8 -10
  9. package/dist/components/Dropdown/Dropdown.d.ts +3 -3
  10. package/dist/components/Dropdown/DropdownMenu.d.ts +5 -4
  11. package/dist/components/Layout/Layout.utils.d.ts +2 -3
  12. package/dist/components/Layout/Stack.d.ts +3 -3
  13. package/dist/components/Loaders/LoadingBar.d.ts +3 -3
  14. package/dist/components/Modal/Modal.d.ts +1 -1
  15. package/dist/components/SideNavigation/Logo/Logo.d.ts +2 -2
  16. package/dist/components/SideNavigation/Menu/Menu.d.ts +4 -4
  17. package/dist/components/SideNavigation/Menu/MenuLink.d.ts +3 -2
  18. package/dist/components/SideNavigation/SideNavigation.d.ts +4 -4
  19. package/dist/components/Steps/StepsStep.d.ts +3 -2
  20. package/dist/components/Table/Table.d.ts +1 -1
  21. package/dist/components/TablePagination/TablePagination.styles.d.ts +1 -2
  22. package/dist/components/TablePagination/TablePaginationActions.d.ts +1 -2
  23. package/dist/components/Text/Text.d.ts +3 -3
  24. package/dist/components/TextField/TextField.d.ts +8 -3
  25. package/dist/components/ToggleGroup/Toggle.d.ts +3 -2
  26. package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
  27. package/dist/components/TopNavigation/Logo/Logo.d.ts +2 -2
  28. package/dist/components/TopNavigation/Menu/Menu.d.ts +1 -1
  29. package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +5 -4
  30. package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +2 -2
  31. package/dist/components/TopNavigation/TopNavigation.d.ts +2 -2
  32. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +4 -2
  33. package/dist/index.js +1 -1
  34. package/dist/index.js.map +1 -1
  35. package/dist/styles/font.d.ts +3 -3
  36. package/dist/styles/typography.d.ts +2 -2
  37. package/package.json +17 -4
@@ -1,5 +1,5 @@
1
- import { FlattenInterpolation } from 'styled-components';
2
- import { ThemedProps, ThemeToken } from '../theming';
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): FlattenInterpolation<ThemedProps>;
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 { FlattenInterpolation, ThemeProps } from 'styled-components';
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) => FlattenInterpolation<ThemeProps<any>> | ((props: unknown) => FlattenInterpolation<ThemeProps<any>> | /*elided*/ any)) | FlattenInterpolation<ThemeProps<any>>;
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.7",
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": "^5.3.11",
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": ">=5.3.0"
122
+ "styled-components": ">=6.0.0"
110
123
  },
111
124
  "dependencies": {
112
125
  "@floating-ui/react-dom": "^2.1.8",