@loadsmart/loadsmart-ui 6.0.11 → 6.0.13
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/Accordion/Accordion.stories.d.ts +1 -2
- package/dist/components/Banner/Banner.stories.d.ts +1 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -3
- package/dist/components/Button/Button.stories.d.ts +1 -2
- package/dist/components/Calendar/Calendar.stories.d.ts +2 -3
- package/dist/components/Card/Card.stories.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -2
- package/dist/components/DatePicker/DatePicker.stories.d.ts +2 -2
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +2 -2
- package/dist/components/Dialog/Dialog.stories.d.ts +1 -2
- package/dist/components/DragDropFile/DragDropFile.stories.d.ts +1 -2
- package/dist/components/Drawer/Drawer.stories.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.stories.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.stories.d.ts +1 -2
- package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +1 -2
- package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +2 -2
- package/dist/components/IconFactory/IconFactory.stories.d.ts +2 -2
- package/dist/components/Label/Label.stories.d.ts +1 -2
- package/dist/components/Layout/Layout.stories.d.ts +1 -2
- package/dist/components/Link/Link.stories.d.ts +1 -2
- package/dist/components/Loaders/LoadingBar.stories.d.ts +2 -2
- package/dist/components/Loaders/LoadingDots.stories.d.ts +2 -2
- package/dist/components/Loaders/Spinner.stories.d.ts +2 -2
- package/dist/components/Modal/Modal.stories.d.ts +1 -2
- package/dist/components/Pagination/Pagination.stories.d.ts +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +1 -2
- package/dist/components/Radio/Radio.stories.d.ts +1 -2
- package/dist/components/Section/Sections.stories.d.ts +1 -2
- package/dist/components/Select/Select.stories.d.ts +2 -2
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +1 -2
- package/dist/components/Steps/Steps.stories.d.ts +2 -2
- package/dist/components/Switch/Switch.stories.d.ts +2 -2
- package/dist/components/Table/Table.stories.d.ts +1 -2
- package/dist/components/TablePagination/TablePagination.stories.d.ts +2 -2
- package/dist/components/Tabs/Tabs.stories.d.ts +1 -2
- package/dist/components/Tag/Tag.stories.d.ts +1 -2
- package/dist/components/Text/Text.stories.d.ts +2 -2
- package/dist/components/TextField/TextField.stories.d.ts +1 -2
- package/dist/components/Textarea/Textarea.stories.d.ts +1 -2
- package/dist/components/Toast/Toast.stories.d.ts +1 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -2
- package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +2 -2
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +15 -22
- package/src/components/Accordion/Accordion.stories.tsx +1 -1
- package/src/components/Banner/Banner.stories.tsx +1 -1
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/src/components/Button/Button.stories.tsx +1 -1
- package/src/components/Calendar/Calendar.stories.tsx +1 -1
- package/src/components/Card/Card.stories.tsx +1 -1
- package/src/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/src/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/src/components/DatePicker/DateRangePicker.stories.tsx +1 -1
- package/src/components/Dialog/Dialog.stories.tsx +1 -1
- package/src/components/DragDropFile/DragDropFile.stories.tsx +1 -1
- package/src/components/Drawer/Drawer.stories.tsx +1 -1
- package/src/components/Dropdown/Dropdown.stories.tsx +1 -1
- package/src/components/Dropdown/DropdownMenu.tsx +1 -0
- package/src/components/EmptyState/EmptyState.stories.tsx +1 -1
- package/src/components/ErrorMessage/ErrorMessage.stories.tsx +1 -1
- package/src/components/HighlightMatch/HighlightMatch.stories.tsx +1 -1
- package/src/components/IconFactory/IconFactory.stories.tsx +1 -1
- package/src/components/Label/Label.stories.tsx +1 -1
- package/src/components/Layout/Layout.stories.tsx +1 -1
- package/src/components/Link/Link.stories.tsx +1 -1
- package/src/components/Loaders/LoadingBar.stories.tsx +1 -1
- package/src/components/Loaders/LoadingDots.stories.tsx +1 -1
- package/src/components/Loaders/Spinner.stories.tsx +1 -1
- package/src/components/Modal/Modal.stories.tsx +1 -1
- package/src/components/Pagination/Pagination.stories.tsx +1 -1
- package/src/components/Popover/Popover.stories.tsx +1 -1
- package/src/components/ProgressBar/ProgressBar.stories.tsx +1 -1
- package/src/components/Radio/Radio.stories.tsx +1 -1
- package/src/components/Section/Sections.stories.tsx +1 -1
- package/src/components/Select/Select.stories.tsx +1 -1
- package/src/components/SideNavigation/SideNavigation.stories.tsx +1 -1
- package/src/components/Steps/Steps.stories.tsx +1 -1
- package/src/components/Switch/Switch.stories.tsx +1 -1
- package/src/components/Table/Table.stories.tsx +1 -1
- package/src/components/TablePagination/TablePagination.stories.tsx +1 -1
- package/src/components/Tabs/Tabs.stories.tsx +1 -1
- package/src/components/Tag/Tag.stories.tsx +1 -1
- package/src/components/Text/Text.stories.tsx +1 -1
- package/src/components/TextField/TextField.stories.tsx +1 -1
- package/src/components/Textarea/Textarea.stories.tsx +1 -1
- package/src/components/Toast/Toast.stories.tsx +1 -1
- package/src/components/ToggleGroup/ToggleGroup.stories.tsx +1 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/docs/tools/DatePickerEvent.stories.mdx +2 -0
- package/src/docs/tools/DragDropFileEvent.stories.mdx +2 -0
- package/src/docs/tools/conditional.stories.mdx +1 -1
- package/src/docs/tools/selectEvent.stories.mdx +2 -0
- package/src/hooks/useFocusTrap/useFocusTrap.stories.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/loadsmart-ui",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.13",
|
|
4
4
|
"description": "Miranda UI, a React UI library",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"files": [
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"lint": "eslint --ext .js,.ts,.tsx src/",
|
|
16
16
|
"test": "TZ=UTC jest --clearMocks",
|
|
17
17
|
"test-watch": "yarn test --watch",
|
|
18
|
-
"storybook": "
|
|
18
|
+
"storybook": "storybook dev -p 6006",
|
|
19
19
|
"build": "rollup -c --environment BUILD:prod",
|
|
20
20
|
"watch-tailwind": "postcss ./tailwind.css -o ./.storybook/globals.css --watch",
|
|
21
|
-
"build
|
|
22
|
-
"deploy
|
|
21
|
+
"storybook:build": "rm -rf docs && storybook build -o ./docs",
|
|
22
|
+
"storybook:deploy": "yarn storybook:build && storybook-to-ghpages --existing-output-dir=docs",
|
|
23
23
|
"release": "semantic-release",
|
|
24
24
|
"prepare": "husky install"
|
|
25
25
|
},
|
|
@@ -51,21 +51,15 @@
|
|
|
51
51
|
"@rollup/plugin-json": "^4.1.0",
|
|
52
52
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
53
53
|
"@semantic-release/git": "^9.0.0",
|
|
54
|
-
"@storybook/addon-a11y": "^
|
|
55
|
-
"@storybook/addon-
|
|
56
|
-
"@storybook/addon-
|
|
57
|
-
"@storybook/
|
|
58
|
-
"@storybook/
|
|
59
|
-
"@storybook/
|
|
60
|
-
"@storybook/builder-webpack5": "^6.5.15",
|
|
61
|
-
"@storybook/cli": "^6.5.15",
|
|
62
|
-
"@storybook/client-api": "^6.5.15",
|
|
63
|
-
"@storybook/manager-webpack5": "^6.5.15",
|
|
64
|
-
"@storybook/preview-web": "^6.5.15",
|
|
65
|
-
"@storybook/react": "^6.5.15",
|
|
54
|
+
"@storybook/addon-a11y": "^7.0.4",
|
|
55
|
+
"@storybook/addon-essentials": "^7.0.4",
|
|
56
|
+
"@storybook/addon-links": "^7.0.4",
|
|
57
|
+
"@storybook/addons": "^7.0.4",
|
|
58
|
+
"@storybook/react": "^7.0.4",
|
|
59
|
+
"@storybook/react-webpack5": "^7.0.4",
|
|
66
60
|
"@storybook/storybook-deployer": "^2.8.16",
|
|
67
|
-
"@storybook/testing-react": "^
|
|
68
|
-
"@storybook/theming": "^
|
|
61
|
+
"@storybook/testing-react": "^2.0.0",
|
|
62
|
+
"@storybook/theming": "^7.0.4",
|
|
69
63
|
"@svgr/rollup": "^6.5.1",
|
|
70
64
|
"@svgr/webpack": "^6.5.1",
|
|
71
65
|
"@tailwindcss/postcss7-compat": "^2.1.2",
|
|
@@ -109,7 +103,7 @@
|
|
|
109
103
|
"eslint-plugin-prettier": "^3.4.0",
|
|
110
104
|
"eslint-plugin-react": "^7.23.2",
|
|
111
105
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
112
|
-
"eslint-plugin-storybook": "^0.6.
|
|
106
|
+
"eslint-plugin-storybook": "^0.6.11",
|
|
113
107
|
"eslint-plugin-testing-library": "^5.9.1",
|
|
114
108
|
"husky": "7.0.4",
|
|
115
109
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -124,7 +118,6 @@
|
|
|
124
118
|
"react-dom": "^17.0.2",
|
|
125
119
|
"react-is": "^17.0.2",
|
|
126
120
|
"react-syntax-highlighter": "^15.5.0",
|
|
127
|
-
"require-from-string": "^2.0.2",
|
|
128
121
|
"rollup": "^2.79.1",
|
|
129
122
|
"rollup-plugin-delete": "^2.0.0",
|
|
130
123
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
@@ -132,6 +125,7 @@
|
|
|
132
125
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
133
126
|
"rollup-plugin-visualizer": "^5.5.2",
|
|
134
127
|
"semantic-release": "^17.4.2",
|
|
128
|
+
"storybook": "^7.0.4",
|
|
135
129
|
"styled-components": "^5.3.0",
|
|
136
130
|
"stylelint": "^13.13.1",
|
|
137
131
|
"stylelint-config-prettier": "^8.0.2",
|
|
@@ -145,8 +139,7 @@
|
|
|
145
139
|
"ts-toolbelt": "^9.6.0",
|
|
146
140
|
"ttypescript": "^1.5.13",
|
|
147
141
|
"typescript": "4.4.4",
|
|
148
|
-
"typescript-plugin-styled-components": "^1.5.0"
|
|
149
|
-
"webpack": "^5.75.0"
|
|
142
|
+
"typescript-plugin-styled-components": "^1.5.0"
|
|
150
143
|
},
|
|
151
144
|
"peerDependencies": {
|
|
152
145
|
"@loadsmart/miranda-tokens": ">=1.3.0",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import type { Meta } from '@storybook/react/types-6-0'
|
|
3
2
|
import Accordion from './Accordion'
|
|
4
3
|
import type { AccordionProps } from './Accordion'
|
|
5
4
|
|
|
6
5
|
import { Icon } from 'components/Icon'
|
|
7
6
|
|
|
8
7
|
import generator from '../../tests/generator'
|
|
8
|
+
import type { Meta } from '@storybook/react'
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
title: 'Components/Accordion',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import type { Meta } from '@storybook/react
|
|
2
|
+
import type { Meta } from '@storybook/react'
|
|
3
3
|
import Banner, { BannerLarge, BannerAction, BannerActionLarge } from './Banner'
|
|
4
4
|
import type { BannerProps, BannerActionProps } from './Banner'
|
|
5
5
|
import { Icon } from 'components/Icon'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import type { Meta } from '@storybook/react
|
|
2
|
+
import type { Meta } from '@storybook/react'
|
|
3
3
|
import BackButton from '../../common/BackButton'
|
|
4
4
|
import Button, { SelectorButton, IconButton, Caret, BaseButton } from './Button'
|
|
5
5
|
import CloseButton from '../../common/CloseButton'
|
|
@@ -4,7 +4,7 @@ import { Label } from 'components/Label'
|
|
|
4
4
|
import DateHelper, { TODAY } from '../Calendar/Date.helper'
|
|
5
5
|
import DatePicker from './DatePicker'
|
|
6
6
|
|
|
7
|
-
import type { Story, Meta } from '@storybook/react
|
|
7
|
+
import type { Story, Meta } from '@storybook/react'
|
|
8
8
|
import type { DatePickerProps } from './DatePicker.types'
|
|
9
9
|
|
|
10
10
|
export default {
|
|
@@ -4,7 +4,7 @@ import { Label } from 'components/Label'
|
|
|
4
4
|
import DateHelper, { TODAY } from '../Calendar/Date.helper'
|
|
5
5
|
import DateRangePicker from './DateRangePicker'
|
|
6
6
|
|
|
7
|
-
import type { Story, Meta } from '@storybook/react
|
|
7
|
+
import type { Story, Meta } from '@storybook/react'
|
|
8
8
|
import type { DateRangePickerProps } from './DatePicker.types'
|
|
9
9
|
import type { useCalendarProps } from 'components/Calendar'
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import type { Story, Meta } from '@storybook/react
|
|
2
|
+
import type { Story, Meta } from '@storybook/react'
|
|
3
3
|
|
|
4
4
|
import { ACTIONS, PROFILE_ACTIONS, SUBSCRIPTION_ACTIONS } from './Dropdown.fixtures'
|
|
5
5
|
import { Icon } from 'components/Icon'
|
|
@@ -154,6 +154,7 @@ const GenericDropdownMenuWrapper = styled.div`
|
|
|
154
154
|
const DropdownMenuWrapper = styled(GenericDropdownMenuWrapper)`
|
|
155
155
|
max-height: 240px;
|
|
156
156
|
overflow-y: auto;
|
|
157
|
+
width: max-content;
|
|
157
158
|
|
|
158
159
|
${DropdownItemWrapper} + ${DropdownItemWrapper},
|
|
159
160
|
${DropdownSectionHeader} + ${DropdownItemWrapper} {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
2
|
import React from 'react'
|
|
3
|
-
import type { Meta } from '@storybook/react
|
|
3
|
+
import type { Meta } from '@storybook/react'
|
|
4
4
|
|
|
5
5
|
import { Icon } from 'components/Icon'
|
|
6
6
|
import { Stack } from 'components/Layout'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
2
|
import TablePagination from './TablePagination'
|
|
3
|
-
import type { Meta, Story } from '@storybook/react
|
|
3
|
+
import type { Meta, Story } from '@storybook/react'
|
|
4
4
|
|
|
5
5
|
import type { TablePaginationProps } from './TablePagination.types'
|
|
6
6
|
import { Layout } from 'components/Layout'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import TextField, { TextFieldProps } from './TextField'
|
|
3
|
-
import type { Meta } from '@storybook/react
|
|
3
|
+
import type { Meta } from '@storybook/react'
|
|
4
4
|
|
|
5
5
|
import { Icon } from 'components/Icon'
|
|
6
6
|
import Status from 'utils/types/Status'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, ChangeEvent } from 'react'
|
|
2
2
|
import Textarea, { TextareaProps } from './Textarea'
|
|
3
|
-
import type { Meta } from '@storybook/react
|
|
3
|
+
import type { Meta } from '@storybook/react'
|
|
4
4
|
|
|
5
5
|
import { Icon } from 'components/Icon'
|
|
6
6
|
import Status from 'utils/types/Status'
|
|
@@ -244,7 +244,7 @@ const Button = styled.button<ButtonProps>`
|
|
|
244
244
|
|
|
245
245
|
In the example above, we'll have `width: 36px;` as a result only if the button's `variant` prop is `'primary'`.
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
{/* The usage of this "Component" is intentional to enable react-syntax-highlighter's own highlighter */}
|
|
248
248
|
|
|
249
249
|
export const Component = () => {
|
|
250
250
|
return <SyntaxHighlighter />
|