@loadsmart/loadsmart-ui 6.0.10 → 6.0.12

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 (96) hide show
  1. package/dist/components/Accordion/Accordion.stories.d.ts +1 -2
  2. package/dist/components/Banner/Banner.stories.d.ts +1 -2
  3. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -3
  4. package/dist/components/Button/Button.stories.d.ts +1 -2
  5. package/dist/components/Calendar/Calendar.stories.d.ts +2 -3
  6. package/dist/components/Card/Card.stories.d.ts +2 -2
  7. package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -2
  8. package/dist/components/DatePicker/DatePicker.stories.d.ts +2 -2
  9. package/dist/components/DatePicker/DateRangePicker.stories.d.ts +2 -2
  10. package/dist/components/Dialog/Dialog.stories.d.ts +1 -2
  11. package/dist/components/DragDropFile/DragDropFile.stories.d.ts +1 -2
  12. package/dist/components/Drawer/Drawer.stories.d.ts +2 -2
  13. package/dist/components/Dropdown/Dropdown.stories.d.ts +1 -1
  14. package/dist/components/EmptyState/EmptyState.stories.d.ts +1 -2
  15. package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +1 -2
  16. package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +2 -2
  17. package/dist/components/IconFactory/IconFactory.stories.d.ts +2 -2
  18. package/dist/components/Label/Label.stories.d.ts +1 -2
  19. package/dist/components/Layout/Layout.stories.d.ts +1 -2
  20. package/dist/components/Link/Link.stories.d.ts +1 -2
  21. package/dist/components/Loaders/LoadingBar.stories.d.ts +2 -2
  22. package/dist/components/Loaders/LoadingDots.stories.d.ts +2 -2
  23. package/dist/components/Loaders/Spinner.stories.d.ts +2 -2
  24. package/dist/components/Modal/Modal.stories.d.ts +1 -2
  25. package/dist/components/Pagination/Pagination.stories.d.ts +2 -2
  26. package/dist/components/Popover/Popover.stories.d.ts +2 -2
  27. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +1 -2
  28. package/dist/components/Radio/Radio.stories.d.ts +1 -2
  29. package/dist/components/Section/Sections.stories.d.ts +1 -2
  30. package/dist/components/Select/Select.stories.d.ts +2 -2
  31. package/dist/components/SideNavigation/SideNavigation.stories.d.ts +1 -2
  32. package/dist/components/Steps/Steps.stories.d.ts +2 -2
  33. package/dist/components/Switch/Switch.stories.d.ts +2 -2
  34. package/dist/components/Table/Table.stories.d.ts +1 -2
  35. package/dist/components/TablePagination/TablePagination.stories.d.ts +2 -2
  36. package/dist/components/Tabs/Tabs.stories.d.ts +1 -2
  37. package/dist/components/Tag/Tag.stories.d.ts +1 -2
  38. package/dist/components/Text/Text.stories.d.ts +2 -2
  39. package/dist/components/TextField/TextField.stories.d.ts +1 -2
  40. package/dist/components/Textarea/Textarea.stories.d.ts +1 -2
  41. package/dist/components/Toast/Toast.stories.d.ts +1 -2
  42. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -2
  43. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -2
  44. package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +2 -2
  45. package/dist/index.js +1 -1
  46. package/dist/index.js.map +1 -1
  47. package/package.json +15 -22
  48. package/src/components/Accordion/Accordion.stories.tsx +1 -1
  49. package/src/components/Banner/Banner.stories.tsx +1 -1
  50. package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  51. package/src/components/Button/Button.stories.tsx +1 -1
  52. package/src/components/Calendar/Calendar.stories.tsx +1 -1
  53. package/src/components/Card/Card.stories.tsx +1 -1
  54. package/src/components/Checkbox/Checkbox.stories.tsx +1 -1
  55. package/src/components/DatePicker/DatePicker.stories.tsx +1 -1
  56. package/src/components/DatePicker/DateRangePicker.stories.tsx +1 -1
  57. package/src/components/Dialog/Dialog.stories.tsx +1 -1
  58. package/src/components/DragDropFile/DragDropFile.stories.tsx +1 -1
  59. package/src/components/Drawer/Drawer.stories.tsx +1 -1
  60. package/src/components/Dropdown/Dropdown.stories.tsx +1 -1
  61. package/src/components/EmptyState/EmptyState.stories.tsx +1 -1
  62. package/src/components/ErrorMessage/ErrorMessage.stories.tsx +1 -1
  63. package/src/components/HighlightMatch/HighlightMatch.stories.tsx +1 -1
  64. package/src/components/IconFactory/IconFactory.stories.tsx +1 -1
  65. package/src/components/Label/Label.stories.tsx +1 -1
  66. package/src/components/Layout/Layout.stories.tsx +1 -1
  67. package/src/components/Link/Link.stories.tsx +1 -1
  68. package/src/components/Loaders/LoadingBar.stories.tsx +1 -1
  69. package/src/components/Loaders/LoadingDots.stories.tsx +1 -1
  70. package/src/components/Loaders/Spinner.stories.tsx +1 -1
  71. package/src/components/Modal/Modal.stories.tsx +1 -1
  72. package/src/components/Pagination/Pagination.stories.tsx +1 -1
  73. package/src/components/Popover/Popover.stories.tsx +1 -1
  74. package/src/components/ProgressBar/ProgressBar.stories.tsx +1 -1
  75. package/src/components/Radio/Radio.stories.tsx +1 -1
  76. package/src/components/Section/Sections.stories.tsx +1 -1
  77. package/src/components/Select/Select.stories.tsx +1 -1
  78. package/src/components/SideNavigation/SideNavigation.stories.tsx +1 -1
  79. package/src/components/Steps/Steps.stories.tsx +1 -1
  80. package/src/components/Switch/Switch.stories.tsx +1 -1
  81. package/src/components/Table/Table.stories.tsx +1 -1
  82. package/src/components/TablePagination/TablePagination.stories.tsx +1 -1
  83. package/src/components/Tabs/Tabs.stories.tsx +1 -1
  84. package/src/components/Tag/Tag.stories.tsx +1 -1
  85. package/src/components/Tag/Tag.tsx +6 -1
  86. package/src/components/Text/Text.stories.tsx +1 -1
  87. package/src/components/TextField/TextField.stories.tsx +1 -1
  88. package/src/components/Textarea/Textarea.stories.tsx +1 -1
  89. package/src/components/Toast/Toast.stories.tsx +1 -1
  90. package/src/components/ToggleGroup/ToggleGroup.stories.tsx +1 -1
  91. package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
  92. package/src/docs/tools/DatePickerEvent.stories.mdx +2 -0
  93. package/src/docs/tools/DragDropFileEvent.stories.mdx +2 -0
  94. package/src/docs/tools/conditional.stories.mdx +1 -1
  95. package/src/docs/tools/selectEvent.stories.mdx +2 -0
  96. 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.10",
3
+ "version": "6.0.12",
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": "start-storybook -p 6006 --no-dll",
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-storybook": "rm -rf docs && build-storybook -o ./docs --no-dll",
22
- "deploy-storybook": "yarn build-storybook && storybook-to-ghpages --existing-output-dir=docs",
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": "^6.5.15",
55
- "@storybook/addon-actions": "^6.5.15",
56
- "@storybook/addon-essentials": "^6.5.15",
57
- "@storybook/addon-links": "^6.5.15",
58
- "@storybook/addon-postcss": "^2.0.0",
59
- "@storybook/addons": "^6.5.15",
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": "^1.3.0",
68
- "@storybook/theming": "^6.5.15",
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.10",
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/types-6-0'
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,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import Breadcrumbs, { BreadcrumbsProps } from './Breadcrumbs'
3
- import type { Story, Meta } from '@storybook/react/types-6-0'
3
+ import type { Story, Meta } from '@storybook/react'
4
4
 
5
5
  export default {
6
6
  title: 'Components/Breadcrumbs',
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Meta } from '@storybook/react/types-6-0'
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'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
 
4
4
  import { TODAY } from './Date.helper'
5
5
  import Calendar from './Calendar'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
 
4
4
  import Card from './Card'
5
5
  import generator from '../../tests/generator'
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import Checkbox, { CheckboxProps } from './Checkbox'
3
- import type { Meta } from '@storybook/react/types-6-0'
3
+ import type { Meta } from '@storybook/react'
4
4
 
5
5
  import Status from 'utils/types/Status'
6
6
 
@@ -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/types-6-0'
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/types-6-0'
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, { ReactNode } from 'react'
2
- import type { Meta } from '@storybook/react/types-6-0'
2
+ import type { Meta } from '@storybook/react'
3
3
  import Dialog from './Dialog'
4
4
  import useDialog from './useDialog'
5
5
  import type { DialogProps } from './Dialog'
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useEffect } from 'react'
2
- import type { Meta } from '@storybook/react/types-6-0'
2
+ import type { Meta } from '@storybook/react'
3
3
 
4
4
  import { ErrorMessage } from 'components/ErrorMessage'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Meta, Story } from '@storybook/react/types-6-0'
2
+ import type { Meta, Story } from '@storybook/react'
3
3
 
4
4
  import { Drawer, useDrawer } from '.'
5
5
  import type { DrawerProps } from './Drawer'
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
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'
@@ -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/types-6-0'
3
+ import type { Meta } from '@storybook/react'
4
4
 
5
5
  import { Icon } from 'components/Icon'
6
6
  import { Stack } from 'components/Layout'
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react'
2
- import type { Meta } from '@storybook/react/types-6-0'
2
+ import type { Meta } from '@storybook/react'
3
3
 
4
4
  import ErrorMessage, { ErrorMessageProps } from './ErrorMessage'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
 
4
4
  import HighlightMatch, { HighlightMatchProps } from './HighlightMatch'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
  import {
4
4
  Title,
5
5
  Subtitle,
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import Label, { LabelProps } from './Label'
3
- import type { Meta } from '@storybook/react/types-6-0'
3
+ import type { Meta } from '@storybook/react'
4
4
 
5
5
  export default {
6
6
  title: 'Components/Label',
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Meta } from '@storybook/react/types-6-0'
2
+ import type { Meta } from '@storybook/react'
3
3
 
4
4
  import { Layout } from '.'
5
5
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import Link, { LinkProps } from './Link'
3
- import type { Meta } from '@storybook/react/types-6-0'
3
+ import type { Meta } from '@storybook/react'
4
4
 
5
5
  export default {
6
6
  title: 'Components/Link',
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
  import { Text } from 'components/Text'
4
4
 
5
5
  import type { LoadingBarProps } from './LoadingBar'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
  import { Button } from 'components/Button'
4
4
 
5
5
  import LoadingDots, { LoadingDotsProps } from './LoadingDots'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
 
4
4
  import Spinner, { SpinnerProps } from './Spinner'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Meta } from '@storybook/react/types-6-0'
2
+ import type { Meta } from '@storybook/react'
3
3
  import { useArgs } from '@storybook/client-api'
4
4
  import Modal from './Modal'
5
5
  import type { ModalProps } from './Modal'
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react'
2
2
  import Pagination from './Pagination'
3
- import type { Story, Meta } from '@storybook/react/types-6-0'
3
+ import type { Story, Meta } from '@storybook/react'
4
4
 
5
5
  import type { PaginationProps } from './Pagination.types'
6
6
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
 
4
4
  import Popover from './Popover'
5
5
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import ProgressBar, { ProgressBarProps } from './ProgressBar'
3
- import type { Meta } from '@storybook/react/types-6-0'
3
+ import type { Meta } from '@storybook/react'
4
4
  import Status from 'utils/types/Status'
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import Radio, { RadioProps } from './Radio'
3
- import type { Meta } from '@storybook/react/types-6-0'
3
+ import type { Meta } from '@storybook/react'
4
4
 
5
5
  import Status from 'utils/types/Status'
6
6
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Meta } from '@storybook/react/types-6-0'
2
+ import type { Meta } from '@storybook/react'
3
3
  import Section from './Section'
4
4
  import type { SectionProps } from './Section'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useState } from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
  import omit from 'lodash.omit'
4
4
 
5
5
  import { Label } from 'components/Label'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Meta } from '@storybook/react/types-6-0'
2
+ import type { Meta } from '@storybook/react'
3
3
 
4
4
  import { Tag } from 'components/Tag'
5
5
  import { Icon } from 'components/Icon'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
 
4
4
  import { Button } from '../Button'
5
5
  import { STEPS, CONTENTS } from './Steps.fixtures'
@@ -1,5 +1,5 @@
1
1
  import React, { ChangeEvent, useState } from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
 
4
4
  import Switch, { SwitchProps } from './Switch'
5
5
 
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable */
2
2
  import React from 'react'
3
- import type { Meta } from '@storybook/react/types-6-0'
3
+ import type { Meta } from '@storybook/react'
4
4
 
5
5
  import Table, { useSelection } from './Table'
6
6
  import type { TableColumns, TableProps } from './Table.types'
@@ -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/types-6-0'
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,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Meta } from '@storybook/react/types-6-0'
2
+ import type { Meta } from '@storybook/react'
3
3
 
4
4
  import Tab, { TabsProps } from './Tabs'
5
5
  import { Button } from '../Button'
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import Tag, { TagProps } from './Tag'
3
- import type { Meta } from '@storybook/react/types-6-0'
3
+ import type { Meta } from '@storybook/react'
4
4
 
5
5
  import { Icon as MirandaIcon } from '../Icon'
6
6
  import generator from '../../tests/generator'
@@ -355,7 +355,12 @@ function Tag(props: TagProps): JSX.Element {
355
355
  {removable && !disabled && (
356
356
  <>
357
357
  <StyledSpacer aria-hidden="true" size={size} />
358
- <StyledCloseButton {...getRemoveButtonProps?.()} size={size} onClick={onRemove}>
358
+ <StyledCloseButton
359
+ type="button"
360
+ {...getRemoveButtonProps?.()}
361
+ size={size}
362
+ onClick={onRemove}
363
+ >
359
364
  <CloseIcon name="close" variant={variant} size={size} />
360
365
  </StyledCloseButton>
361
366
  </>
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
 
4
4
  import { Text } from '.'
5
5
  import type { TextProps } from './Text'
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import TextField, { TextFieldProps } from './TextField'
3
- import type { Meta } from '@storybook/react/types-6-0'
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/types-6-0'
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 from 'react'
2
2
  import Toast, { ToastProps } from './Toast'
3
- import type { Meta } from '@storybook/react/types-6-0'
3
+ import type { Meta } from '@storybook/react'
4
4
  import Status from 'utils/types/Status'
5
5
 
6
6
  export default {
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import type { Story, Meta } from '@storybook/react/types-6-0'
2
+ import type { Story, Meta } from '@storybook/react'
3
3
 
4
4
  import { Icon } from '../Icon'
5
5
  import { Label } from '../Label'
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import Tooltip, { TooltipAlign, TooltipPosition, TooltipProps } from './Tooltip'
3
- import type { Meta } from '@storybook/react/types-6-0'
3
+ import type { Meta } from '@storybook/react'
4
4
 
5
5
  export default {
6
6
  title: 'Components/Tooltip',
@@ -1,3 +1,5 @@
1
+ import { Meta } from '@storybook/blocks'
2
+
1
3
  <Meta title="Tools/Tests/Date Picker Event" />
2
4
 
3
5
  # Date Picker Event
@@ -1,3 +1,5 @@
1
+ import { Meta } from '@storybook/blocks'
2
+
1
3
  <Meta title="Tools/Tests/DragDropFile Event" />
2
4
 
3
5
  # DragDropFile Event
@@ -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
- <!-- The usage of this "Component" is intentional to enable react-syntax-highlighter's own highlighter -->
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 />
@@ -1,3 +1,5 @@
1
+ import { Meta } from '@storybook/blocks'
2
+
1
3
  <Meta title="Tools/Tests/Select Event" />
2
4
 
3
5
  # Select Event
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import clsx from 'clsx'
3
- import type { Story, Meta } from '@storybook/react/types-6-0'
3
+ import type { Story, Meta } from '@storybook/react'
4
4
 
5
5
  import range from 'utils/toolset/range'
6
6
  import useFocusTrap from './useFocusTrap'