@loadsmart/loadsmart-ui 8.0.0-beta.1 → 8.0.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/Banner/Banner.d.ts +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +1 -1
- package/dist/components/Calendar/Pickers/DayPicker.d.ts +1 -1
- package/dist/components/Calendar/Pickers/PickerButton.d.ts +2 -4
- package/dist/components/Card/Card.d.ts +4 -4
- package/dist/components/Card/Card.stories.d.ts +5 -5
- package/dist/components/Card/CardTitle.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +3 -3
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +3 -3
- package/dist/components/Dialog/Dialog.d.ts +5 -3
- package/dist/components/DragDropFile/styles.d.ts +7 -7
- package/dist/components/Drawer/Drawer.stories.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.stories.d.ts +5 -5
- package/dist/components/Dropdown/DropdownMenu.d.ts +3 -3
- package/dist/components/Dropdown/DropdownTrigger.d.ts +1 -1
- package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +2 -2
- package/dist/components/IconFactory/IconFactory.d.ts +1 -1
- package/dist/components/IconFactory/IconFactory.stories.d.ts +2 -2
- package/dist/components/Layout/Stack.d.ts +2 -2
- package/dist/components/Loaders/LoadingBar.d.ts +2 -2
- package/dist/components/Loaders/LoadingBar.stories.d.ts +2 -2
- package/dist/components/Loaders/LoadingDots.stories.d.ts +3 -3
- package/dist/components/Loaders/Spinner.stories.d.ts +2 -2
- package/dist/components/Modal/Modal.d.ts +3 -1
- package/dist/components/Pagination/Pagination.stories.d.ts +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +2 -2
- package/dist/components/Select/Select.stories.d.ts +16 -16
- package/dist/components/SideNavigation/Logo/Logo.d.ts +2 -7
- package/dist/components/SideNavigation/Menu/Menu.d.ts +2 -7
- package/dist/components/SideNavigation/Menu/MenuLink.d.ts +1 -6
- package/dist/components/SideNavigation/SideNavigation.d.ts +4 -14
- package/dist/components/Steps/Steps.stories.d.ts +2 -2
- package/dist/components/Steps/StepsStep.d.ts +2 -2
- package/dist/components/Switch/Switch.stories.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +5 -6
- package/dist/components/Table/Table.types.d.ts +1 -1
- package/dist/components/TablePagination/TablePagination.stories.d.ts +2 -2
- package/dist/components/TablePagination/TablePagination.styles.d.ts +4 -5
- package/dist/components/TablePagination/TablePaginationActions.d.ts +5 -2
- package/dist/components/Tag/Tag.stories.d.ts +24 -3
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Text/Text.stories.d.ts +2 -2
- package/dist/components/TextField/TextField.d.ts +2 -6
- package/dist/components/ToggleGroup/Toggle.d.ts +1 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +3 -3
- package/dist/components/TopNavigation/Logo/Logo.d.ts +2 -7
- package/dist/components/TopNavigation/Menu/Menu.d.ts +2 -2
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +4 -4
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +1 -2
- package/dist/components/TopNavigation/TopNavigation.d.ts +3 -8
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +2 -4
- package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles/typography.d.ts +2 -4
- package/package.json +16 -15
- package/dist/addons/Theme/register.d.ts +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CustomTheme, ThemeToken } from '../theming';
|
|
1
|
+
import { ThemeToken } from '../theming';
|
|
3
2
|
export type TypographyOptions = {
|
|
4
3
|
italic?: boolean;
|
|
5
4
|
color?: ThemeToken;
|
|
@@ -15,12 +14,11 @@ type PropertiesToken = {
|
|
|
15
14
|
export type TypographyVariants = 'heading-lg' | 'heading-md' | 'heading-md-bold' | 'heading-sm' | 'heading-sm-bold' | 'body' | 'body-bold' | 'caption' | 'caption-bold' | 'number-sm' | 'number-md' | 'button-sm' | 'button-md' | 'button-lg' | 'table-header-sm' | 'table-header-md' | 'chips-sm' | 'link';
|
|
16
15
|
type TypographyProperties = Record<TypographyVariants, PropertiesToken>;
|
|
17
16
|
export declare const typographyProperties: TypographyProperties;
|
|
18
|
-
type StyledTemplate<P> = FlattenInterpolation<ThemedStyledProps<P, CustomTheme>>;
|
|
19
17
|
/**
|
|
20
18
|
* Standard styles for screen-rendered text
|
|
21
19
|
* @param {TypographyVariants} variant Name of the variant
|
|
22
20
|
* @param {TypographyOptions} options Add boldness, italics and color
|
|
23
21
|
* @returns {FlattenInterpolation}
|
|
24
22
|
*/
|
|
25
|
-
declare function typography<P>(variant?: TypographyVariants | ((props: P) => string), options?: TypographyOptions):
|
|
23
|
+
declare function typography<P>(variant?: TypographyVariants | ((props: P) => string), options?: TypographyOptions): import('styled-components').FlattenInterpolation<import('styled-components').ThemedStyledProps<import('../theming').ThemedProps, any>> | ((props: P) => import('styled-components').FlattenInterpolation<import('styled-components').ThemedStyledProps<import('../theming').ThemedProps, any>> | ((props: unknown) => import('styled-components').FlattenInterpolation<import('styled-components').ThemedStyledProps<import('../theming').ThemedProps, any>> | /*elided*/ any));
|
|
26
24
|
export default typography;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/loadsmart-ui",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Miranda UI, a React UI library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"release:ci": "semantic-release",
|
|
20
20
|
"build:ci": "yarn build",
|
|
21
21
|
"test:ci": "yarn test --ci --coverage --reporters=default --reporters=jest-junit -w 4",
|
|
22
|
+
"check:lint:ci": "yarn lint",
|
|
22
23
|
"docs:build:ci": "yarn docs:build --disable-telemetry",
|
|
23
24
|
"docs:deploy:ci": "gh-pages -d docs -m \"chore(docs): update gh-pages [skip ci]\"",
|
|
24
25
|
"prepare": "husky"
|
|
@@ -43,17 +44,16 @@
|
|
|
43
44
|
"@commitlint/cli": "^19.8.0",
|
|
44
45
|
"@commitlint/config-conventional": "^19.8.0",
|
|
45
46
|
"@loadsmart/miranda-tokens": "^4.0.0-beta.60",
|
|
46
|
-
"@
|
|
47
|
-
"@storybook/addon-
|
|
48
|
-
"@storybook/addon-
|
|
49
|
-
"@storybook/addon-
|
|
50
|
-
"@storybook/
|
|
51
|
-
"@storybook/react": "^
|
|
52
|
-
"@storybook/
|
|
53
|
-
"@storybook/theming": "^7.6.20",
|
|
47
|
+
"@storybook/addon-a11y": "^8.6.12",
|
|
48
|
+
"@storybook/addon-docs": "^8.6.12",
|
|
49
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
50
|
+
"@storybook/addon-links": "^8.6.12",
|
|
51
|
+
"@storybook/react": "^8.6.12",
|
|
52
|
+
"@storybook/react-vite": "^8.6.12",
|
|
53
|
+
"@storybook/theming": "^8.6.12",
|
|
54
54
|
"@swc/core": "^1.11.18",
|
|
55
55
|
"@swc/jest": "^0.2.37",
|
|
56
|
-
"@tailwindcss/
|
|
56
|
+
"@tailwindcss/vite": "^4.1.3",
|
|
57
57
|
"@testing-library/dom": "^10.4.0",
|
|
58
58
|
"@testing-library/jest-dom": "^6.6.3",
|
|
59
59
|
"@testing-library/react": "^16.3.0",
|
|
@@ -61,17 +61,16 @@
|
|
|
61
61
|
"@testing-library/user-event": "^13.5.0",
|
|
62
62
|
"@types/chance": "^1.1.1",
|
|
63
63
|
"@types/jest": "^29.5.14",
|
|
64
|
-
"@types/mdx": "^2.0.2",
|
|
65
64
|
"@types/node": "^22.13.16",
|
|
66
65
|
"@types/react": "^18.3.20",
|
|
67
66
|
"@types/react-dom": "^18.3.6",
|
|
67
|
+
"@types/styled-components": "^5.1.34",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "^4.22.1",
|
|
69
69
|
"@typescript-eslint/parser": "^4.22.1",
|
|
70
70
|
"@vitejs/plugin-react": "^4.3.4",
|
|
71
71
|
"babel-plugin-styled-components": "^2.1.4",
|
|
72
72
|
"chance": "^1.1.8",
|
|
73
73
|
"commitizen": "^4.2.4",
|
|
74
|
-
"cross-env": "^7.0.3",
|
|
75
74
|
"cz-conventional-changelog": "^3.3.0",
|
|
76
75
|
"eslint": "^7.26.0",
|
|
77
76
|
"eslint-config-prettier": "^10.1.1",
|
|
@@ -89,14 +88,16 @@
|
|
|
89
88
|
"jest-junit": "^16.0.0",
|
|
90
89
|
"jest-transformer-svg": "^2.1.0",
|
|
91
90
|
"lint-staged": "^15.5.0",
|
|
91
|
+
"nanoid": "^5.1.5",
|
|
92
92
|
"prettier": "^3.5.3",
|
|
93
93
|
"react": "^18.3.1",
|
|
94
|
+
"react-docgen-typescript": "^2.2.2",
|
|
94
95
|
"react-dom": "^18.3.1",
|
|
95
96
|
"react-is": "^18.0.2",
|
|
96
|
-
"react-syntax-highlighter": "^15.6.1",
|
|
97
97
|
"semantic-release": "^24.2.3",
|
|
98
|
-
"storybook": "^
|
|
99
|
-
"styled-components": "^
|
|
98
|
+
"storybook": "^8.6.12",
|
|
99
|
+
"styled-components": "^5.3.11",
|
|
100
|
+
"tailwindcss": "^4.1.3",
|
|
100
101
|
"ts-toolbelt": "^9.6.0",
|
|
101
102
|
"typescript": "^5.8.3",
|
|
102
103
|
"vite": "^6.2.5",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|