@kroo-web/design-system 1.12.0 → 1.12.2

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 (162) hide show
  1. package/dist/{esm/src/__tests__ → __tests__}/setup.d.ts +1 -0
  2. package/dist/__tests__/setup2.d.ts +1 -0
  3. package/dist/components/Accordion/Accordion.stories.d.ts +22 -0
  4. package/dist/{cjs/src/components → components}/Accordion/config.d.ts +2 -1
  5. package/dist/{cjs/src/components → components}/Accordion/index.d.ts +1 -1
  6. package/dist/components/Button/button.stories.d.ts +18 -0
  7. package/dist/components/Button/button.test.d.ts +1 -0
  8. package/dist/{esm/src/components → components}/Button/index.d.ts +2 -1
  9. package/dist/components/Callout/Callout.stories.d.ts +8 -0
  10. package/dist/components/Callout/Callout.test.d.ts +1 -0
  11. package/dist/{esm/src/components → components}/Callout/index.d.ts +3 -2
  12. package/dist/components/Card/Card.stories.d.ts +24 -0
  13. package/dist/{esm/src/components → components}/Card/index.d.ts +2 -1
  14. package/dist/components/Cards/cards.stories.d.ts +11 -0
  15. package/dist/{cjs/src/components → components}/Cards/index.d.ts +2 -1
  16. package/dist/components/Checkbox/Checkbox.test.d.ts +1 -0
  17. package/dist/components/Checkbox/checkBox.stories.d.ts +11 -0
  18. package/dist/{esm/src/components → components}/Checkbox/index.d.ts +2 -1
  19. package/dist/components/Columns/Columns.stories.d.ts +7 -0
  20. package/dist/components/Columns/columns.test.d.ts +1 -0
  21. package/dist/{esm/src/components → components}/Columns/index.d.ts +2 -1
  22. package/dist/components/ComboBox/ComboBox.stories.d.ts +13 -0
  23. package/dist/{esm/src/components → components}/ComboBox/index.d.ts +2 -1
  24. package/dist/components/DatePicker/DatePicker.stories.d.ts +12 -0
  25. package/dist/components/DatePicker/DatePicker.test.d.ts +1 -0
  26. package/dist/{cjs/src/components → components}/DatePicker/index.d.ts +2 -1
  27. package/dist/components/Disclosure/Disclosure.stories.d.ts +7 -0
  28. package/dist/{cjs/src/components → components}/Disclosure/index.d.ts +2 -1
  29. package/dist/components/Form/Form.stories.d.ts +7 -0
  30. package/dist/{cjs/src/components → components}/Form/index.d.ts +2 -1
  31. package/dist/components/Icon/Icon.stories.d.ts +12 -0
  32. package/dist/components/Icon/Icon.test.d.ts +1 -0
  33. package/dist/{cjs/src/components → components}/Icon/index.d.ts +2 -1
  34. package/dist/{esm/src/components → components}/Icon/types.d.ts +1 -0
  35. package/dist/{esm/src/components → components}/Link/index.d.ts +2 -1
  36. package/dist/components/Link/link.stories.d.ts +9 -0
  37. package/dist/components/Loading/Loading.stories.d.ts +8 -0
  38. package/dist/components/Loading/Loading.test.d.ts +1 -0
  39. package/dist/{esm/src/components → components}/Loading/index.d.ts +2 -1
  40. package/dist/components/Modal/Modal.stories.d.ts +15 -0
  41. package/dist/components/Modal/Modal.test.d.ts +1 -0
  42. package/dist/{esm/src/components → components}/Modal/index.d.ts +3 -2
  43. package/dist/{cjs/src/components → components}/NumberField/index.d.ts +2 -1
  44. package/dist/components/NumberField/numberField.stories.d.ts +15 -0
  45. package/dist/components/NumberField/numberField.test.d.ts +1 -0
  46. package/dist/components/PhoneField/PhoneField.test.d.ts +1 -0
  47. package/dist/{esm/src/components → components}/PhoneField/index.d.ts +2 -1
  48. package/dist/components/PhoneField/phoneField.stories.d.ts +8 -0
  49. package/dist/components/PinInput/PinInput.stories.d.ts +29 -0
  50. package/dist/{esm/src/components → components}/PinInput/index.d.ts +2 -1
  51. package/dist/{cjs/src/components → components}/Popover/index.d.ts +1 -1
  52. package/dist/components/Popover/popover.stories.d.ts +7 -0
  53. package/dist/components/ProgressIndicator/ProgressIndicator.stories.d.ts +8 -0
  54. package/dist/components/ProgressIndicator/ProgressIndicator.test.d.ts +1 -0
  55. package/dist/{cjs/src/components → components}/ProgressIndicator/index.d.ts +2 -1
  56. package/dist/{esm/src/components → components}/RadioGroup/index.d.ts +2 -2
  57. package/dist/components/RadioGroup/radioGroup.stories.d.ts +10 -0
  58. package/dist/components/Range/Range.test.d.ts +1 -0
  59. package/dist/{cjs/src/components → components}/Range/index.d.ts +2 -1
  60. package/dist/components/Range/range.stories.d.ts +9 -0
  61. package/dist/{esm/src/components → components}/Select/index.d.ts +2 -1
  62. package/dist/components/Select/select.stories.d.ts +13 -0
  63. package/dist/components/Select/select.test.d.ts +1 -0
  64. package/dist/components/Skeleton/Skeleton.stories.d.ts +8 -0
  65. package/dist/{cjs/src/components → components}/Skeleton/index.d.ts +2 -1
  66. package/dist/{esm/src/components → components}/Table/index.d.ts +2 -1
  67. package/dist/components/Table/table.stories.d.ts +8 -0
  68. package/dist/components/Tabs/Tabs.stories.d.ts +7 -0
  69. package/dist/{cjs/src/components → components}/Tabs/index.d.ts +1 -1
  70. package/dist/{cjs/src/components → components}/Tag/index.d.ts +3 -2
  71. package/dist/components/Tag/tag.stories.d.ts +9 -0
  72. package/dist/{esm/src/components → components}/TextField/index.d.ts +2 -1
  73. package/dist/components/TextField/textField.stories.d.ts +19 -0
  74. package/dist/components/TextField/textField.test.d.ts +1 -0
  75. package/dist/components/Toast/Toast.stories.d.ts +8 -0
  76. package/dist/{esm/src/components → components}/Toast/index.d.ts +2 -1
  77. package/dist/components/Tooltip/Tooltip.stories.d.ts +8 -0
  78. package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
  79. package/dist/{cjs/src/components → components}/Tooltip/index.d.ts +1 -1
  80. package/dist/{cjs/src/components → components}/Typography/index.d.ts +2 -1
  81. package/dist/components/Typography/typography.stories.d.ts +11 -0
  82. package/dist/components/Typography/typography.test.d.ts +1 -0
  83. package/dist/components/Wrapper/Wrapper.stories.d.ts +9 -0
  84. package/dist/{cjs/src/components → components}/Wrapper/index.d.ts +2 -1
  85. package/dist/{esm/src/components → components}/shared/FieldError/index.d.ts +2 -1
  86. package/dist/{esm/src/components → components}/shared/FieldHelper/index.d.ts +2 -1
  87. package/dist/components/shared/FormField/FormField.stories.d.ts +7 -0
  88. package/dist/{esm/src/components → components}/shared/FormField/index.d.ts +2 -1
  89. package/dist/consts/country-phone-codes.json.d.ts +1205 -0
  90. package/dist/index.js +148 -0
  91. package/dist/modal/focus-trap-example.png +0 -0
  92. package/dist/style.css +1 -0
  93. package/dist/{cjs/src/utils → utils}/decorators/Form/index.d.ts +2 -1
  94. package/dist/{cjs/src/utils → utils}/decorators/Grid/index.d.ts +2 -1
  95. package/package.json +21 -26
  96. package/dist/cjs/examples/form/index.d.ts +0 -45
  97. package/dist/cjs/index.js +0 -46
  98. package/dist/cjs/src/__tests__/setup.d.ts +0 -5
  99. package/dist/cjs/src/__tests__/setup2.d.ts +0 -1
  100. package/dist/cjs/src/components/Button/index.d.ts +0 -24
  101. package/dist/cjs/src/components/Callout/index.d.ts +0 -11
  102. package/dist/cjs/src/components/Card/index.d.ts +0 -21
  103. package/dist/cjs/src/components/Checkbox/index.d.ts +0 -23
  104. package/dist/cjs/src/components/Columns/index.d.ts +0 -6
  105. package/dist/cjs/src/components/ComboBox/index.d.ts +0 -51
  106. package/dist/cjs/src/components/Icon/types.d.ts +0 -26
  107. package/dist/cjs/src/components/Link/index.d.ts +0 -11
  108. package/dist/cjs/src/components/Loading/index.d.ts +0 -12
  109. package/dist/cjs/src/components/Modal/index.d.ts +0 -33
  110. package/dist/cjs/src/components/PhoneField/index.d.ts +0 -34
  111. package/dist/cjs/src/components/PinInput/index.d.ts +0 -13
  112. package/dist/cjs/src/components/RadioGroup/index.d.ts +0 -16
  113. package/dist/cjs/src/components/Select/index.d.ts +0 -42
  114. package/dist/cjs/src/components/Table/index.d.ts +0 -17
  115. package/dist/cjs/src/components/TextField/index.d.ts +0 -35
  116. package/dist/cjs/src/components/Toast/index.d.ts +0 -19
  117. package/dist/cjs/src/components/shared/FieldError/index.d.ts +0 -7
  118. package/dist/cjs/src/components/shared/FieldHelper/index.d.ts +0 -12
  119. package/dist/cjs/src/components/shared/FormField/index.d.ts +0 -10
  120. package/dist/esm/examples/form/index.d.ts +0 -45
  121. package/dist/esm/index.js +0 -46
  122. package/dist/esm/src/__tests__/setup2.d.ts +0 -1
  123. package/dist/esm/src/components/Accordion/config.d.ts +0 -11
  124. package/dist/esm/src/components/Accordion/index.d.ts +0 -21
  125. package/dist/esm/src/components/Cards/index.d.ts +0 -9
  126. package/dist/esm/src/components/DatePicker/index.d.ts +0 -28
  127. package/dist/esm/src/components/Disclosure/index.d.ts +0 -6
  128. package/dist/esm/src/components/Form/index.d.ts +0 -8
  129. package/dist/esm/src/components/Icon/consts.d.ts +0 -2
  130. package/dist/esm/src/components/Icon/index.d.ts +0 -8
  131. package/dist/esm/src/components/NumberField/index.d.ts +0 -30
  132. package/dist/esm/src/components/Popover/index.d.ts +0 -10
  133. package/dist/esm/src/components/ProgressIndicator/index.d.ts +0 -8
  134. package/dist/esm/src/components/Range/index.d.ts +0 -15
  135. package/dist/esm/src/components/Skeleton/index.d.ts +0 -7
  136. package/dist/esm/src/components/Tabs/index.d.ts +0 -12
  137. package/dist/esm/src/components/Tag/index.d.ts +0 -14
  138. package/dist/esm/src/components/Tooltip/index.d.ts +0 -14
  139. package/dist/esm/src/components/Typography/index.d.ts +0 -13
  140. package/dist/esm/src/components/Wrapper/index.d.ts +0 -12
  141. package/dist/esm/src/components/index.d.ts +0 -32
  142. package/dist/esm/src/hooks/useWindowSize.d.ts +0 -4
  143. package/dist/esm/src/index.d.ts +0 -1
  144. package/dist/esm/src/types/PolymorphicWithoutRef.d.ts +0 -6
  145. package/dist/esm/src/utils/decorators/Form/index.d.ts +0 -2
  146. package/dist/esm/src/utils/decorators/Grid/index.d.ts +0 -5
  147. package/dist/esm/src/utils/decorators/toTitleCase.d.ts +0 -1
  148. package/dist/types.d.ts +0 -600
  149. /package/dist/{cjs/src/components → components}/Icon/consts.d.ts +0 -0
  150. /package/dist/{cjs/src/components → components}/index.d.ts +0 -0
  151. /package/dist/{cjs/src/hooks → hooks}/useWindowSize.d.ts +0 -0
  152. /package/dist/{cjs/src/index.d.ts → index.d.ts} +0 -0
  153. /package/dist/styles/{components → styles/components}/toast-base.css +0 -0
  154. /package/dist/styles/{dev.global.css → styles/dev.global.css} +0 -0
  155. /package/dist/styles/{global.css → styles/global.css} +0 -0
  156. /package/dist/styles/{tokens → styles/tokens}/dev.tokens.css +0 -0
  157. /package/dist/styles/{tokens → styles/tokens}/fonts.css +0 -0
  158. /package/dist/styles/{tokens → styles/tokens}/index.css +0 -0
  159. /package/dist/styles/{tokens → styles/tokens}/marketing.css +0 -0
  160. /package/dist/styles/{tokens → styles/tokens}/product.css +0 -0
  161. /package/dist/{cjs/src/types → types}/PolymorphicWithoutRef.d.ts +0 -0
  162. /package/dist/{cjs/src/utils → utils}/decorators/toTitleCase.d.ts +0 -0
@@ -1,5 +1,6 @@
1
1
  import { render, RenderOptions } from '@testing-library/react';
2
2
  import { ReactElement } from 'react';
3
+
3
4
  declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, "wrapper">) => ReturnType<typeof render>;
4
5
  export * from '@testing-library/react';
5
6
  export { customRender as render };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,22 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Accordion } from '.';
3
+
4
+ /** Accordion component based of Radix for some reason the storybook args table does not work for this so follow this link for props for each component
5
+ * https://radix-ui.com/primitives/docs/components/accordion
6
+ */
7
+ declare const _default: Meta<typeof Accordion.Root>;
8
+ export default _default;
9
+ type Story = StoryObj<typeof Accordion.Root>;
10
+ /** General usage of the component copy and paste this one to get up and running quickly */
11
+ export declare const GeneralUsage: Story;
12
+ /** Single vs multiple
13
+ * <br />
14
+ * Single only allows one item to be open at a time
15
+ * <br />
16
+ * Multiple allows multiple items to be open at a time
17
+ */
18
+ export declare const Type: Story;
19
+ export declare const Size: Story;
20
+ export declare const Grouping: Story;
21
+ export declare const WithIcons: Story;
22
+ export declare const LongTitle: Story;
@@ -1,4 +1,5 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
+
2
3
  export declare const AccordionContext: React.Context<{
3
4
  active: string[];
4
5
  setActive?: (value: string[]) => void;
@@ -1,5 +1,5 @@
1
+ import { default as React } from 'react';
1
2
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
2
- import React from 'react';
3
3
  export type TAccordionRootProps = {
4
4
  children: React.ReactNode;
5
5
  grouping?: 'attached' | 'detached';
@@ -0,0 +1,18 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Button } from '.';
3
+
4
+ declare const _default: Meta<typeof Button>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Button>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const PolymorphicButton: Story;
9
+ export declare const OnlyIcon: Story;
10
+ export declare const DefaultVariants: Story;
11
+ export declare const ActionVariants: Story;
12
+ export declare const TextVariants: Story;
13
+ export declare const DefaultOnlyIcons: Story;
14
+ export declare const ActionOnlyIcons: Story;
15
+ export declare const IconsAndText: Story;
16
+ export declare const ActionButtonsIconAndText: Story;
17
+ export declare const NavButtonVariants: Story;
18
+ export declare const NavButtonsIcon: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  import { PolymorphicPropsWithoutRef } from '../../types/PolymorphicWithoutRef';
3
+
3
4
  declare const defaultElement = "button";
4
5
  type TButtonVisualTypes = {
5
6
  variant?: 'danger' | 'ghost' | 'primary' | 'secondary' | 'tertiary';
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Callout } from '.';
3
+
4
+ declare const _default: Meta<typeof Callout.Root>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Callout.Root>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const Types: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,11 +1,12 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  import { TTypographyProps } from '../Typography';
3
+
3
4
  export type TCalloutRootProps = {
4
5
  type?: 'error' | 'positive' | 'primary' | 'secondary' | 'warning';
5
6
  };
6
7
  export type TCalloutTextProps = TTypographyProps<'p'>;
7
8
  export declare const Callout: {
8
- Icon: ({ size, weight, ...rest }: import("../Icon").TIconProps) => React.JSX.Element;
9
+ Icon: ({ size, weight, ...rest }: import('../Icon').TIconProps) => React.JSX.Element;
9
10
  Root: ({ children, type }: PropsWithChildren<TCalloutRootProps>) => React.JSX.Element;
10
11
  Text: ({ children, ...props }: PropsWithChildren<TCalloutTextProps>) => React.JSX.Element;
11
12
  };
@@ -0,0 +1,24 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Card } from '.';
3
+
4
+ declare const _default: Meta<typeof Card>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Card>;
7
+ /** General usage of the component copy and paste this one to get up and running quickly */
8
+ export declare const GeneralUsage: Story;
9
+ /** The visual prop within variants handles what the component looks like and allows you to choose from the
10
+ * below list of options
11
+ */
12
+ export declare const Visual: Story;
13
+ /** Also available in variants is the size prop which allows you to choose a different size for the component
14
+ * whilst decoupling from UI (note: we currently don't have any large buttons it's there in case we do in the future)
15
+ */
16
+ export declare const Size: Story;
17
+ export declare const SizeMixed: Story;
18
+ /** The radius prop within variants handles what the component looks like and allows you to choose from the
19
+ * below list of options.
20
+ */
21
+ export declare const Radius: Story;
22
+ /** The isSquare prop allows you to enforce that the card always had the same width and height using aspect ratio
23
+ */
24
+ export declare const IsSquare: Story;
@@ -1,5 +1,6 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  import { PolymorphicPropsWithoutRef } from '../../types/PolymorphicWithoutRef';
3
+
3
4
  declare const defaultElement = "div";
4
5
  export type TCardVariants = {
5
6
  elementType?: 'div';
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Cards } from '.';
3
+
4
+ declare const _default: Meta<typeof Cards>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Cards>;
7
+ /** General usage of the component copy and paste this one to get up and running quickly */
8
+ export declare const GeneralUsage: Story;
9
+ export declare const BentoThree: Story;
10
+ export declare const BentoFour: Story;
11
+ export declare const BentoFive: Story;
@@ -1,4 +1,5 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
+
2
3
  export type CardsVariants = {
3
4
  layout?: 'bento-five' | 'bento-four' | 'bento-three';
4
5
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Checkbox } from '.';
3
+
4
+ declare const _default: Meta<typeof Checkbox>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Checkbox>;
7
+ /** General usage of the component copy and paste this one to get up and running quickly */
8
+ export declare const GeneralUsage: Story;
9
+ export declare const CustomLabel: Story;
10
+ export declare const CheckboxAsRadio: Story;
11
+ export declare const NativeCheckboxVariants: Story;
@@ -1,5 +1,6 @@
1
- import React, { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
+
3
4
  export type TCheckboxProps<T extends FieldValues> = {
4
5
  className?: string;
5
6
  disabled?: boolean;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Columns } from '.';
3
+
4
+ declare const _default: Meta<typeof Columns>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Columns>;
7
+ export declare const GeneralUsage: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export type TColumnsProps = {
3
4
  children: React.ReactNode;
4
5
  cols: number;
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as React } from 'react';
3
+ import { ComboBox } from '.';
4
+
5
+ declare const _default: Meta<typeof ComboBox>;
6
+ export default _default;
7
+ type Story = StoryObj<typeof ComboBox>;
8
+ export declare const GeneralUsage: Story;
9
+ export declare const AlwaysOpen: Story;
10
+ export declare const Render: Story;
11
+ export declare const Native: {
12
+ render: () => React.JSX.Element;
13
+ };
@@ -1,6 +1,7 @@
1
- import React, { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  import { ComboBoxProps } from 'react-aria-components';
3
3
  import { ControllerRenderProps, FieldValues } from 'react-hook-form';
4
+
4
5
  export type TComboBoxItem = {
5
6
  img?: string;
6
7
  render?: ReactNode;
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { DatePicker } from '.';
3
+
4
+ declare const _default: Meta<typeof DatePicker>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof DatePicker>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const Helper: Story;
9
+ export declare const Error: Story;
10
+ export declare const WithMinAndMax: Story;
11
+ export declare const Disabled: Story;
12
+ export declare const WithNativeDatePicker: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
- import React, { DetailedHTMLProps, InputHTMLAttributes } from 'react';
1
+ import { default as React, DetailedHTMLProps, InputHTMLAttributes } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
+
3
4
  export type TDatePicker<T extends FieldValues> = {
4
5
  disabled?: boolean;
5
6
  helper?: {
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Disclosure } from '.';
3
+
4
+ declare const _default: Meta<typeof Disclosure>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Disclosure>;
7
+ export declare const GeneralUsage: Story;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export type TDisclosureProps = {
3
4
  children: React.ReactNode;
4
5
  condition: boolean;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Form } from '.';
3
+
4
+ declare const _default: Meta<typeof Form>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Form>;
7
+ export declare const GeneralUsage: Story;
@@ -1,5 +1,6 @@
1
- import React, { HTMLProps, PropsWithChildren } from 'react';
1
+ import { default as React, HTMLProps, PropsWithChildren } from 'react';
2
2
  import { FieldValues, UseFormReturn } from 'react-hook-form';
3
+
3
4
  type TFormProps<T extends FieldValues> = {
4
5
  methods: UseFormReturn<T>;
5
6
  onSubmit: (values: T) => void;
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Icon } from '.';
3
+
4
+ declare const _default: Meta<typeof Icon>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Icon>;
7
+ /**
8
+ * Iconography docs can be found [here](https://fonts.google.com/icons)
9
+ */
10
+ export declare const Default: Story;
11
+ export declare const Sizes: Story;
12
+ export declare const Weights: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { MaterialSymbolProps } from './types';
3
+
3
4
  export declare const MaterialSymbol: React.ForwardRefExoticComponent<MaterialSymbolProps & React.RefAttributes<HTMLSpanElement>>;
4
5
  export type TIconProps = {
5
6
  size?: 'large' | 'regular' | 'xlarge';
@@ -1,5 +1,6 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { MaterialSymbolWeightArray, SymbolCodepointsArray } from './consts';
3
+
3
4
  export type SymbolCodepoints = (typeof SymbolCodepointsArray)[number];
4
5
  export type MaterialSymbolWeight = (typeof MaterialSymbolWeightArray)[number];
5
6
  export type MaterialSymbolProps = {
@@ -1,4 +1,5 @@
1
- import React, { ElementType, PropsWithChildren } from 'react';
1
+ import { default as React, ElementType, PropsWithChildren } from 'react';
2
+
2
3
  type PolymorphicLink<T extends ElementType> = {
3
4
  as?: T;
4
5
  className?: string;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Link } from '.';
3
+
4
+ declare const _default: Meta<typeof Link>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Link>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const Polymorphism: Story;
9
+ export declare const WithText: Story;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Loading } from '.';
3
+
4
+ declare const _default: Meta<typeof Loading>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Loading>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const Sizes: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  declare const sizes: {
3
4
  full: string;
4
5
  large: string;
@@ -0,0 +1,15 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Modal } from '.';
3
+
4
+ declare const _default: Meta<typeof Modal.Control>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Modal.Control>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const WithForm: Story;
9
+ export declare const WithFormOverridedButtonProps: Story;
10
+ export declare const WithActions: Story;
11
+ export declare const MultipleModals: Story;
12
+ export declare const LongPage: Story;
13
+ export declare const WithFocusTrap: Story;
14
+ export declare const WithBackdropClose: Story;
15
+ export declare const LongModal: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,12 +1,13 @@
1
- import React, { ButtonHTMLAttributes, PropsWithChildren } from 'react';
1
+ import { default as React, ButtonHTMLAttributes, PropsWithChildren } from 'react';
2
2
  import { TButtonProps } from '../Button';
3
+
3
4
  export type TUseModalProps = {
4
5
  activeModal: string;
5
6
  close: () => void;
6
7
  isOpen: boolean;
7
8
  open: (value: string) => void;
8
9
  };
9
- export declare const useModal: import("zustand").UseBoundStore<import("zustand").StoreApi<TUseModalProps>>;
10
+ export declare const useModal: import('zustand').UseBoundStore<import('zustand').StoreApi<TUseModalProps>>;
10
11
  export type TModalContentProps = {
11
12
  children: React.ReactNode;
12
13
  closeOnBackdropClick?: boolean;
@@ -1,5 +1,6 @@
1
- import React, { DetailedHTMLProps, InputHTMLAttributes } from 'react';
1
+ import { default as React, DetailedHTMLProps, InputHTMLAttributes } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
+
3
4
  export type TNumberFieldProps<T extends FieldValues> = {
4
5
  helper?: {
5
6
  message: string;
@@ -0,0 +1,15 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as React } from 'react';
3
+ import { NumberField } from '.';
4
+
5
+ declare const _default: Meta<typeof NumberField>;
6
+ export default _default;
7
+ type Story = StoryObj<typeof NumberField>;
8
+ export declare const GeneralUsage: Story;
9
+ export declare const Error: {
10
+ render: () => React.JSX.Element;
11
+ };
12
+ export declare const Helper: {
13
+ render: () => React.JSX.Element;
14
+ };
15
+ export declare const Native: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
- import React, { ChangeEventHandler, DetailedHTMLProps, InputHTMLAttributes, ReactNode } from 'react';
1
+ import { default as React, ChangeEventHandler, DetailedHTMLProps, InputHTMLAttributes, ReactNode } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
+
3
4
  export type TPhoneFieldProps<T extends FieldValues> = {
4
5
  className?: string;
5
6
  disabled?: boolean;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { PhoneField } from '.';
3
+
4
+ declare const _default: Meta<typeof PhoneField>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof PhoneField>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const Error: Story;
@@ -0,0 +1,29 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as React } from 'react';
3
+ import { PinInput } from '.';
4
+
5
+ declare const _default: Meta<typeof PinInput>;
6
+ export default _default;
7
+ type Story = StoryObj<typeof PinInput>;
8
+ export declare const GeneralUsage: Story;
9
+ export declare const Password: {
10
+ args: {
11
+ isPassword: boolean;
12
+ name: string;
13
+ };
14
+ };
15
+ export declare const Numeric: {
16
+ args: {
17
+ isNumeric: boolean;
18
+ name: string;
19
+ };
20
+ };
21
+ export declare const OTP: {
22
+ args: {
23
+ isOTP: boolean;
24
+ name: string;
25
+ };
26
+ };
27
+ export declare const NewOTPInput: {
28
+ render: () => React.JSX.Element;
29
+ };
@@ -1,6 +1,7 @@
1
1
  import { OTPInputProps } from 'input-otp';
2
- import React from 'react';
2
+ import { default as React } from 'react';
3
3
  import { FieldValues, Path } from 'react-hook-form';
4
+
4
5
  export interface TPinInputProps<T extends FieldValues> {
5
6
  isNumeric?: boolean;
6
7
  isOTP?: boolean;
@@ -1,5 +1,5 @@
1
+ import { default as React } from 'react';
1
2
  import * as RadixPopover from '@radix-ui/react-popover';
2
- import React from 'react';
3
3
  export type TPopoverRootProps = React.ComponentPropsWithoutRef<typeof RadixPopover.Root>;
4
4
  export type TPopoverTriggerProps = React.ComponentPropsWithoutRef<typeof RadixPopover.Trigger>;
5
5
  export type TPopoverContentProps = React.ComponentPropsWithoutRef<typeof RadixPopover.Content>;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Popover } from '.';
3
+
4
+ declare const _default: Meta<typeof Popover.Root>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Popover>;
7
+ export declare const GeneralUsage: Story;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ProgressIndicator } from '.';
3
+
4
+ declare const _default: Meta<typeof ProgressIndicator>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof ProgressIndicator>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const Size: Story;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export type TProgressIndicatorProps = {
3
4
  current?: number;
4
5
  label?: string;
@@ -1,6 +1,6 @@
1
- import * as RadixRadioGroup from '@radix-ui/react-radio-group';
2
- import React from 'react';
1
+ import { default as React } from 'react';
3
2
  import { FieldError, FieldValues, Path } from 'react-hook-form';
3
+ import * as RadixRadioGroup from '@radix-ui/react-radio-group';
4
4
  export type TRadioGroupProps<T extends FieldValues> = {
5
5
  error?: FieldError;
6
6
  label: string;
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { RadioGroup } from '.';
3
+
4
+ declare const _default: Meta<typeof RadioGroup.Root>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof RadioGroup.Root>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const Variants: Story;
9
+ export declare const Error: Story;
10
+ export declare const ExtraLong: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
+
3
4
  export type TRangeProps<T extends FieldValues> = {
4
5
  helper?: {
5
6
  message: string;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Range } from '.';
3
+
4
+ declare const _default: Meta<typeof Range>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Range>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const Labels: Story;
9
+ export declare const Helper: Story;
@@ -1,5 +1,6 @@
1
- import React, { DetailedHTMLProps, OptionHTMLAttributes, ReactNode, SelectHTMLAttributes } from 'react';
1
+ import { default as React, DetailedHTMLProps, OptionHTMLAttributes, ReactNode, SelectHTMLAttributes } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
+
3
4
  export type TItem = {
4
5
  id: string;
5
6
  title: string;
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Select } from '.';
3
+
4
+ declare const _default: Meta<typeof Select>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Select>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const Labeling: Story;
9
+ export declare const Missing: Story;
10
+ export declare const CustomChildren: Story;
11
+ export declare const WithCustomProps: Story;
12
+ export declare const Disabled: Story;
13
+ export declare const NativeSelectStories: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Skeleton } from '.';
3
+
4
+ declare const _default: Meta<typeof Skeleton>;
5
+ export default _default;
6
+ type Story = StoryObj<typeof Skeleton>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const ExampleCard: Story;