@hyphen/hyphen-components 5.6.0 → 5.7.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/Alert/Alert.stories.d.ts +1 -1
- package/dist/components/Badge/Badge.stories.d.ts +1 -1
- package/dist/components/Box/Box.stories.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -1
- package/dist/components/Card/Card.stories.d.ts +1 -1
- package/dist/components/CheckboxInput/CheckboxInput.stories.d.ts +1 -1
- package/dist/components/Collapsible/Collapsible.stories.d.ts +1 -1
- package/dist/components/DateInput/DateInput.stories.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -1
- package/dist/components/Details/Details.stories.d.ts +1 -1
- package/dist/components/Drawer/Drawer.stories.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +1 -1
- package/dist/components/FormLabel/FormLabel.stories.d.ts +1 -1
- package/dist/components/Heading/Heading.stories.d.ts +1 -1
- package/dist/components/Icon/Icon.stories.d.ts +1 -1
- package/dist/components/Modal/Modal.stories.d.ts +1 -1
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.d.ts +1 -1
- package/dist/components/RangeInput/RangeInput.stories.d.ts +1 -1
- package/dist/components/ResponsiveProvider/ResponsiveProvider.stories.d.ts +1 -1
- package/dist/components/SelectInput/SelectInput.stories.d.ts +1 -1
- package/dist/components/SelectInputInset/SelectInputInset.stories.d.ts +1 -1
- package/dist/components/SelectInputNative/SelectInputNative.stories.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.stories.d.ts +1 -1
- package/dist/components/Spinner/Spinner.stories.d.ts +1 -1
- package/dist/components/Switch/Switch.stories.d.ts +1 -1
- package/dist/components/Table/Table.stories.d.ts +1 -1
- package/dist/components/TextInput/TextInput.stories.d.ts +1 -1
- package/dist/components/TextInputInset/TextInputInset.stories.d.ts +1 -1
- package/dist/components/TextareaInput/TextareaInput.stories.d.ts +1 -1
- package/dist/components/TextareaInputInset/TextareaInputInset.stories.d.ts +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts +1 -1
- package/dist/components/TimePicker/TimePicker.stories.d.ts +1 -1
- package/dist/components/TimePickerNative/TimePickerNative.stories.d.ts +1 -1
- package/dist/components/Toast/Toast.stories.d.ts +1 -1
- package/dist/components/Toggle/Toggle.stories.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/hooks/useBreakpoint/useBreakpoint.stories.d.ts +1 -1
- package/dist/hooks/useIsMobile/useIsMobile.stories.d.ts +1 -1
- package/dist/hooks/useOpenClose/useOpenClose.stories.d.ts +1 -1
- package/dist/hooks/useTheme/useTheme.stories.d.ts +1 -1
- package/dist/hooks/useWindowSize/useWindowSize.stories.d.ts +1 -1
- package/package.json +10 -14
- package/src/components/Alert/Alert.mdx +1 -1
- package/src/components/Alert/Alert.stories.tsx +1 -1
- package/src/components/Badge/Badge.mdx +1 -1
- package/src/components/Badge/Badge.stories.tsx +1 -1
- package/src/components/Box/Box.mdx +1 -1
- package/src/components/Box/Box.stories.tsx +1 -1
- package/src/components/Button/Button.mdx +1 -1
- package/src/components/Button/Button.stories.tsx +1 -1
- package/src/components/Card/Card.mdx +1 -1
- package/src/components/Card/Card.stories.tsx +1 -1
- package/src/components/CheckboxInput/CheckboxInput.mdx +1 -1
- package/src/components/CheckboxInput/CheckboxInput.stories.tsx +1 -1
- package/src/components/Collapsible/Collapsible.mdx +1 -1
- package/src/components/Collapsible/Collapsible.stories.tsx +2 -2
- package/src/components/DateInput/DateInput.mdx +1 -1
- package/src/components/DateInput/DateInput.stories.tsx +1 -1
- package/src/components/DatePicker/DatePicker.mdx +1 -1
- package/src/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/src/components/Details/Details.mdx +1 -1
- package/src/components/Details/Details.stories.tsx +1 -1
- package/src/components/Drawer/Drawer.mdx +1 -1
- package/src/components/Drawer/Drawer.stories.tsx +2 -2
- package/src/components/DropdownMenu/DropdownMenu.mdx +1 -1
- package/src/components/DropdownMenu/DropdownMenu.stories.tsx +2 -2
- package/src/components/FormLabel/FormLabel.mdx +1 -1
- package/src/components/FormLabel/FormLabel.stories.tsx +1 -1
- package/src/components/Formik/Formik.mdx +1 -1
- package/src/components/Heading/Heading.mdx +1 -1
- package/src/components/Heading/Heading.stories.tsx +1 -1
- package/src/components/Icon/Icon.mdx +1 -1
- package/src/components/Icon/Icon.stories.tsx +1 -1
- package/src/components/Modal/Modal.mdx +1 -1
- package/src/components/Modal/Modal.stories.tsx +2 -2
- package/src/components/Pagination/Pagination.mdx +1 -1
- package/src/components/Pagination/Pagination.stories.tsx +1 -1
- package/src/components/Popover/Popover.mdx +1 -1
- package/src/components/Popover/Popover.stories.tsx +1 -1
- package/src/components/RadioGroup/RadioGroup.mdx +1 -1
- package/src/components/RadioGroup/RadioGroup.stories.tsx +1 -1
- package/src/components/RangeInput/RangeInput.mdx +1 -1
- package/src/components/RangeInput/RangeInput.stories.tsx +1 -1
- package/src/components/ResponsiveProvider/ResponsiveProvider.mdx +1 -1
- package/src/components/ResponsiveProvider/ResponsiveProvider.stories.tsx +1 -1
- package/src/components/SelectInput/SelectInput.mdx +1 -1
- package/src/components/SelectInput/SelectInput.stories.tsx +1 -1
- package/src/components/SelectInputInset/SelectInputInset.mdx +1 -1
- package/src/components/SelectInputInset/SelectInputInset.stories.tsx +1 -1
- package/src/components/SelectInputNative/SelectInputNative.mdx +1 -1
- package/src/components/SelectInputNative/SelectInputNative.stories.tsx +1 -1
- package/src/components/Sidebar/Sidebar.stories.tsx +1 -1
- package/src/components/Spinner/Spinner.mdx +1 -1
- package/src/components/Spinner/Spinner.stories.tsx +1 -1
- package/src/components/Switch/Switch.mdx +1 -1
- package/src/components/Switch/Switch.stories.tsx +1 -1
- package/src/components/Table/Table.mdx +1 -1
- package/src/components/Table/Table.stories.tsx +1 -1
- package/src/components/TextInput/TextInput.mdx +1 -1
- package/src/components/TextInput/TextInput.stories.tsx +1 -1
- package/src/components/TextInputInset/TextInputInset.mdx +1 -1
- package/src/components/TextInputInset/TextInputInset.stories.tsx +1 -1
- package/src/components/TextareaInput/TextareaInput.mdx +1 -1
- package/src/components/TextareaInput/TextareaInput.stories.tsx +1 -1
- package/src/components/TextareaInputInset/TextareaInputInset.mdx +1 -1
- package/src/components/TextareaInputInset/TextareaInputInset.stories.tsx +1 -1
- package/src/components/ThemeProvider/ThemeProvider.mdx +1 -1
- package/src/components/ThemeProvider/ThemeProvider.stories.tsx +1 -1
- package/src/components/TimePicker/TimePicker.mdx +1 -1
- package/src/components/TimePicker/TimePicker.stories.tsx +1 -1
- package/src/components/TimePickerNative/TimePickerNative.mdx +1 -1
- package/src/components/TimePickerNative/TimePickerNative.stories.tsx +1 -1
- package/src/components/Toast/Toast.mdx +1 -1
- package/src/components/Toast/Toast.stories.tsx +1 -1
- package/src/components/Toggle/Toggle.mdx +1 -1
- package/src/components/Toggle/Toggle.stories.tsx +1 -1
- package/src/components/ToggleGroup/ToggleGroup.mdx +1 -1
- package/src/components/ToggleGroup/ToggleGroup.stories.tsx +1 -1
- package/src/components/Tooltip/Tooltip.mdx +1 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/docs/Brands.mdx +1 -1
- package/src/docs/Colors.mdx +1 -1
- package/src/docs/DesignTokens.mdx +1 -1
- package/src/docs/GetStarted.mdx +1 -1
- package/src/docs/intro.mdx +1 -1
- package/src/hooks/useBreakpoint/useBreakpoint.mdx +1 -1
- package/src/hooks/useBreakpoint/useBreakpoint.stories.tsx +1 -1
- package/src/hooks/useIsMobile/useIsMobile.mdx +1 -1
- package/src/hooks/useIsMobile/useIsMobile.stories.tsx +1 -1
- package/src/hooks/useOpenClose/useOpenClose.mdx +1 -1
- package/src/hooks/useOpenClose/useOpenClose.stories.tsx +1 -1
- package/src/hooks/useTheme/useTheme.stories.tsx +1 -1
- package/src/hooks/useWindowSize/useWindowSize.mdx +1 -1
- package/src/hooks/useWindowSize/useWindowSize.stories.tsx +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
3
|
import { Button } from '../Button/Button';
|
|
4
|
-
import { userEvent, within, expect } from '
|
|
4
|
+
import { userEvent, within, expect } from 'storybook/test';
|
|
5
5
|
import {
|
|
6
6
|
DropdownMenu,
|
|
7
7
|
DropdownMenuTrigger,
|
|
@@ -2,7 +2,7 @@ import { Box } from '../Box/Box';
|
|
|
2
2
|
import { ICON_NAMES } from '@hyphen/hyphen-design-tokens/build/assets/icons';
|
|
3
3
|
import { IconName } from 'src/types';
|
|
4
4
|
import { Icon } from './Icon';
|
|
5
|
-
import type { Meta } from '@storybook/react';
|
|
5
|
+
import type { Meta } from '@storybook/react-vite';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof Icon> = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { Modal } from './Modal';
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
import { Button } from '../Button/Button';
|
|
5
5
|
import { useOpenClose } from '../../hooks/useOpenClose/useOpenClose';
|
|
6
|
-
import { userEvent, within, expect } from '
|
|
6
|
+
import { userEvent, within, expect } from 'storybook/test';
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof Modal> = {
|
|
9
9
|
title: 'Components/Modal',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { Meta, Story, Canvas, ArgTypes } from '@storybook/addon-docs';
|
|
2
|
+
import { Meta, Story, Canvas, ArgTypes } from '@storybook/addon-docs/blocks';
|
|
3
3
|
import { Pagination } from './Pagination';
|
|
4
4
|
import * as Stories from './Pagination.stories';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ChangeEvent, useState } from 'react';
|
|
2
2
|
import { RadioGroup } from './RadioGroup';
|
|
3
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
+
import type { Meta } from '@storybook/react-vite';
|
|
4
4
|
import { Box } from '../Box/Box';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof RadioGroup> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ResponsiveProvider } from './ResponsiveProvider';
|
|
3
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
+
import type { Meta } from '@storybook/react-vite';
|
|
4
4
|
import { useWindowSize } from '../../hooks/useWindowSize/useWindowSize';
|
|
5
5
|
import { useBreakpoint } from '../../hooks/useBreakpoint/useBreakpoint';
|
|
6
6
|
import { Box } from '../Box/Box';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { SelectInput } from './SelectInput';
|
|
3
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
+
import type { Meta } from '@storybook/react-vite';
|
|
4
4
|
import { Box } from '../Box/Box';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof SelectInput> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { SelectInputInset } from './SelectInputInset';
|
|
3
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
+
import type { Meta } from '@storybook/react-vite';
|
|
4
4
|
import { Box } from '../Box/Box';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof SelectInputInset> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { SelectInputNative } from './SelectInputNative';
|
|
3
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
+
import type { Meta } from '@storybook/react-vite';
|
|
4
4
|
import { Box } from '../Box/Box';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof SelectInputNative> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { TextInputInset } from './TextInputInset';
|
|
3
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
+
import type { Meta } from '@storybook/react-vite';
|
|
4
4
|
import { Box } from '../Box/Box';
|
|
5
5
|
import { Icon } from '../Icon/Icon';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ThemeProvider } from './ThemeProvider';
|
|
3
|
-
import type { Meta } from '@storybook/react';
|
|
3
|
+
import type { Meta } from '@storybook/react-vite';
|
|
4
4
|
import { Box } from '../Box/Box';
|
|
5
5
|
import { RadioGroup } from '../RadioGroup/RadioGroup';
|
|
6
6
|
import { Theme } from './ThemeProvider';
|
package/src/docs/Brands.mdx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta } from '@storybook/blocks';
|
|
1
|
+
import { Meta } from '@storybook/addon-docs/blocks';
|
|
2
2
|
|
|
3
3
|
import HyphenLogoHorizontalRgbPositive from '@hyphen/hyphen-design-tokens/build/assets/images/react/HyphenLogoHorizontalRgbPositive';
|
|
4
4
|
import HyphenLogoHorizontalRgbNegative from '@hyphen/hyphen-design-tokens/build/assets/images/react/HyphenLogoHorizontalRgbNegative';
|
package/src/docs/Colors.mdx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorPalette, ColorItem, Meta } from '@storybook/addon-docs';
|
|
1
|
+
import { ColorPalette, ColorItem, Meta } from '@storybook/addon-docs/blocks';
|
|
2
2
|
import designTokens from '@hyphen/hyphen-design-tokens/build/json/variables.json';
|
|
3
3
|
|
|
4
4
|
<Meta title="Foundation/Colors" />
|
package/src/docs/GetStarted.mdx
CHANGED
package/src/docs/intro.mdx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
+
import type { Meta } from '@storybook/react-vite';
|
|
3
3
|
import { ResponsiveProvider } from '../../components/ResponsiveProvider/ResponsiveProvider';
|
|
4
4
|
import { useBreakpoint } from './useBreakpoint';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
+
import type { Meta } from '@storybook/react-vite';
|
|
3
3
|
import { ResponsiveProvider } from '../../components/ResponsiveProvider/ResponsiveProvider';
|
|
4
4
|
import { useIsMobile } from '../useIsMobile/useIsMobile';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
+
import type { Meta } from '@storybook/react-vite';
|
|
3
3
|
import { UseOpenCloseProps, useOpenClose } from './useOpenClose';
|
|
4
4
|
import { Button } from '../../components/Button/Button';
|
|
5
5
|
import { Box } from '../../components/Box/Box';
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Theme,
|
|
4
4
|
ThemeProvider,
|
|
5
5
|
} from '../../components/ThemeProvider/ThemeProvider';
|
|
6
|
-
import type { Meta } from '@storybook/react';
|
|
6
|
+
import type { Meta } from '@storybook/react-vite';
|
|
7
7
|
import { Box } from '../../components/Box/Box';
|
|
8
8
|
import { RadioGroup } from '../../components/RadioGroup/RadioGroup';
|
|
9
9
|
import { useTheme } from '../../hooks/useTheme/useTheme';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
+
import type { Meta } from '@storybook/react-vite';
|
|
3
3
|
import { useWindowSize } from './useWindowSize';
|
|
4
4
|
import { Box } from '../../components/Box/Box';
|
|
5
5
|
import { ResponsiveProvider } from '../../components/ResponsiveProvider/ResponsiveProvider';
|