@registrucentras/rc-ses-react-components 1.6.2 → 1.6.4

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 (37) hide show
  1. package/dist/stories/assets/Logo.stories.d.ts +12 -0
  2. package/dist/stories/components/actions/ButtonWithPopover.stories.d.ts +7 -0
  3. package/dist/stories/components/form/FormControlWrapper.stories.d.ts +6 -0
  4. package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +11 -12
  5. package/dist/stories/components/icons/IconWithCircularBackground.stories.d.ts +6 -0
  6. package/dist/stories/components/inputs/Checkbox.stories.d.ts +17 -22
  7. package/dist/stories/components/inputs/DatePicker.stories.d.ts +18 -20
  8. package/dist/stories/components/inputs/FileUpload.stories.d.ts +14 -26
  9. package/dist/stories/components/inputs/PhoneInput.stories.d.ts +6 -20
  10. package/dist/stories/components/inputs/PhoneInputFormControl.stories.d.ts +6 -0
  11. package/dist/stories/components/layout/ServiceHeader.stories.d.ts +6 -0
  12. package/dist/stories/components/layout/ServicePage.stories.d.ts +6 -0
  13. package/dist/stories/components/navigation/Accordion.stories.d.ts +15 -27
  14. package/dist/stories/components/tabs/Tab.stories.d.ts +8 -0
  15. package/dist/stories/components/tabs/TabPanel.stories.d.ts +7 -0
  16. package/dist/stories/components/tabs/Tabs.stories.d.ts +7 -0
  17. package/dist/stories/components/tabs/TabsWrapper.stories.d.ts +6 -0
  18. package/package.json +1 -1
  19. package/src/stories/Welcome.mdx +87 -0
  20. package/src/stories/assets/Logo.stories.tsx +16 -0
  21. package/src/stories/components/actions/ButtonWithPopover.stories.tsx +33 -0
  22. package/src/stories/components/form/FormControlWrapper.stories.tsx +35 -0
  23. package/src/stories/components/form/ServiceFormContainer.stories.tsx +10 -10
  24. package/src/stories/components/icons/IconWithCircularBackground.stories.tsx +39 -0
  25. package/src/stories/components/inputs/Checkbox.stories.tsx +17 -16
  26. package/src/stories/components/inputs/DatePicker.stories.tsx +16 -15
  27. package/src/stories/components/inputs/FileUpload.stories.tsx +14 -29
  28. package/src/stories/components/inputs/PhoneInput.stories.tsx +7 -5
  29. package/src/stories/components/inputs/PhoneInputFormControl.stories.tsx +33 -0
  30. package/src/stories/components/layout/ServiceHeader.stories.tsx +36 -0
  31. package/src/stories/components/layout/ServicePage.stories.tsx +26 -0
  32. package/src/stories/components/navigation/Accordion.stories.tsx +14 -13
  33. package/src/stories/components/navigation/DataPagination.stories.tsx +19 -17
  34. package/src/stories/components/tabs/Tab.stories.tsx +32 -0
  35. package/src/stories/components/tabs/TabPanel.stories.tsx +31 -0
  36. package/src/stories/components/tabs/Tabs.stories.tsx +62 -0
  37. package/src/stories/components/tabs/TabsWrapper.stories.tsx +34 -0
@@ -0,0 +1,12 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { default as Logo } from '../../assets/Logo';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Logo;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Default: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesButtonWithPopover } from '../../../components/common/Button/ButtonWithPopover';
3
+ declare const meta: Meta<typeof RcSesButtonWithPopover>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithCustomContent: Story;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesFormControlWrapper } from '../../../components/form/components/FormControlWrapper';
3
+ declare const meta: Meta<typeof RcSesFormControlWrapper>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -1,16 +1,15 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
2
- import { default as useAccordionController } from '../../../components/common/Accordion/hooks/useAccordionController';
1
+ import { Meta, StoryContext } from '@storybook/react';
3
2
  import { default as RcSesServiceFormContainer } from '../../../components/layout/ServiceFormContainer/AccordionFormContainer';
4
- import { AnnotatedStoryFn } from '@storybook/core/csf';
5
- import { ContainerProps } from '@mui/system';
6
3
  declare const meta: Meta<typeof RcSesServiceFormContainer>;
7
4
  export default meta;
8
- export declare const Main: AnnotatedStoryFn<ReactRenderer, {
9
- accordionController: ReturnType<typeof useAccordionController>;
10
- children: React.ReactNode;
11
- showAccordionCollapseControls?: boolean;
12
- showProgressStepper?: boolean;
13
- slotProps?: {
14
- container: Partial< ContainerProps>;
5
+ export declare const Main: {
6
+ render: () => import("react/jsx-runtime").JSX.Element;
7
+ parameters: {
8
+ docs: {
9
+ source: {
10
+ type: string;
11
+ transform: (code: string, storyContext: StoryContext) => string;
12
+ };
13
+ };
15
14
  };
16
- }>;
15
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesIconWithCircularBackground } from '../../../components/common/IconWithCircularBackground';
3
+ declare const meta: Meta<typeof RcSesIconWithCircularBackground>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -1,26 +1,21 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
1
+ import { Meta, StoryContext } from '@storybook/react';
2
2
  import { default as RcSesCheckbox } from '../../../components/form/inputs/Checkbox';
3
- import { AnnotatedStoryFn } from '@storybook/core/csf';
4
- import { RegisterOptions, Control } from 'react-hook-form';
5
- import { CheckboxProps, FormControlLabelProps } from '@mui/material';
6
- import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
7
3
  declare const meta: Meta<typeof RcSesCheckbox>;
8
4
  export default meta;
9
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
10
- name: any;
11
- rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
12
- shouldUnregister?: boolean;
13
- defaultValue?: any;
14
- control?: Control<any> | undefined;
15
- disabled?: boolean;
16
- }, "rules" | "control"> & Pick< CheckboxProps, "name" | "onBlur" | "onChange" | "disabled"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
17
- id?: string;
18
- children: React.ReactNode;
19
- loading?: boolean;
20
- variant?: "flat" | "outlined";
21
- slotProps?: {
22
- field?: Partial<Omit< CheckboxProps, "name" | "onBlur" | "onChange" | "disabled">>;
23
- label?: Partial< FormControlLabelProps>;
24
- wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
5
+ export declare const Main: {
6
+ render: (args: any) => import("react/jsx-runtime").JSX.Element;
7
+ args: {
8
+ label: string;
9
+ variant: string;
10
+ children: string;
11
+ disabled: boolean;
25
12
  };
26
- }>;
13
+ parameters: {
14
+ docs: {
15
+ source: {
16
+ type: string;
17
+ transform: (code: string, storyContext: StoryContext) => string;
18
+ };
19
+ };
20
+ };
21
+ };
@@ -1,24 +1,22 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
1
+ import { Meta, StoryContext } from '@storybook/react';
2
2
  import { default as RcSesDatepicker } from '../../../components/form/inputs/Datepicker';
3
- import { AnnotatedStoryFn } from '@storybook/core/csf';
4
- import { RegisterOptions, Control } from 'react-hook-form';
5
- import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
6
- import { DatePickerProps } from '@mui/x-date-pickers';
7
- import { RefAttributes } from 'react';
8
3
  declare const meta: Meta<typeof RcSesDatepicker>;
9
4
  export default meta;
10
- export declare const Main: AnnotatedStoryFn<ReactRenderer, {
11
- name: any;
12
- rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
13
- shouldUnregister?: boolean;
14
- defaultValue?: any;
15
- control?: Control<any> | undefined;
16
- disabled?: boolean;
17
- } & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
18
- id?: string;
19
- clearable?: boolean;
20
- slotProps?: {
21
- datepicker?: DatePickerProps<Date, boolean>;
22
- wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
5
+ export declare const Main: {
6
+ render: (args: any) => import("react/jsx-runtime").JSX.Element;
7
+ args: {
8
+ clearable: boolean;
9
+ label: string;
10
+ rules: {
11
+ required: boolean;
12
+ };
23
13
  };
24
- } & RefAttributes<HTMLInputElement>>;
14
+ parameters: {
15
+ docs: {
16
+ source: {
17
+ type: string;
18
+ transform: (code: string, storyContext: StoryContext) => string;
19
+ };
20
+ };
21
+ };
22
+ };
@@ -1,30 +1,18 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
1
+ import { Meta, StoryContext } from '@storybook/react';
2
2
  import { default as RcSesFileUpload } from '../../../components/form/inputs/FileUpload';
3
- import { AnnotatedStoryFn } from '@storybook/core/csf';
4
- import { RegisterOptions, Control } from 'react-hook-form';
5
- import { InputHTMLAttributes } from 'react';
6
- import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
7
3
  declare const meta: Meta<typeof RcSesFileUpload>;
8
4
  export default meta;
9
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
10
- name: any;
11
- rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
12
- shouldUnregister?: boolean;
13
- defaultValue?: any;
14
- control?: Control<any> | undefined;
15
- disabled?: boolean;
16
- }, "rules" | "control"> & Pick< InputHTMLAttributes<HTMLInputElement>, "name" | "onBlur" | "onChange" | "disabled"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
17
- id?: string;
18
- slotProps?: {
19
- controller?: Partial<Omit<{
20
- name: any;
21
- rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
22
- shouldUnregister?: boolean;
23
- defaultValue?: any;
24
- control?: Control<any> | undefined;
25
- disabled?: boolean;
26
- }, "rules" | "control">>;
27
- field?: Partial<Omit< InputHTMLAttributes<HTMLInputElement>, "name" | "onBlur" | "onChange" | "disabled">>;
28
- wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
5
+ export declare const Main: {
6
+ render: (args: any) => import("react/jsx-runtime").JSX.Element;
7
+ args: {
8
+ label: string;
29
9
  };
30
- }>;
10
+ parameters: {
11
+ docs: {
12
+ source: {
13
+ type: string;
14
+ transform: (code: string, storyContext: StoryContext) => string;
15
+ };
16
+ };
17
+ };
18
+ };
@@ -1,24 +1,10 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
1
+ import { Meta } from '@storybook/react';
2
2
  import { default as RcSesPhoneInput } from '../../../components/form/inputs/PhoneInput';
3
- import { AnnotatedStoryFn } from '@storybook/core/csf';
4
- import { RegisterOptions, Control } from 'react-hook-form';
5
- import { AutocompleteProps, FormControlLabelProps } from '@mui/material';
6
- import { default as __DTS_DEFAULT_0__ } from '../../../components/form/inputs/PhoneInputFormControl/types/Country';
7
- import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
8
3
  declare const meta: Meta<typeof RcSesPhoneInput>;
9
4
  export default meta;
10
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
11
- name: any;
12
- rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
13
- shouldUnregister?: boolean;
14
- defaultValue?: any;
15
- control?: Control<any> | undefined;
16
- disabled?: boolean;
17
- }, "name" | "disabled" | "rules" | "control"> & Pick< AutocompleteProps<__DTS_DEFAULT_0__, false, true, false, any>, never> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
18
- id?: string;
19
- slotProps?: {
20
- autocomplete?: Partial<Omit< AutocompleteProps<__DTS_DEFAULT_0__, false, true, false, any>, never>>;
21
- label?: Partial< FormControlLabelProps>;
22
- wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
5
+ export declare const Main: {
6
+ render: (args: any) => import("react/jsx-runtime").JSX.Element;
7
+ args: {
8
+ label: string;
23
9
  };
24
- }>;
10
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesPhoneInputFormControl } from '../../../components/form/inputs/PhoneInputFormControl';
3
+ declare const meta: Meta<typeof RcSesPhoneInputFormControl>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesServiceHeader } from '../../../components/layout/ServiceHeader';
3
+ declare const meta: Meta<typeof RcSesServiceHeader>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesServicePage } from '../../../components/layout/ServicePage';
3
+ declare const meta: Meta<typeof RcSesServicePage>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -1,30 +1,18 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
1
+ import { Meta, StoryContext } from '@storybook/react';
2
2
  import { default as RcSesAccordion } from '../../../components/common/Accordion';
3
- import { default as useAccordionController } from '../../../components/common/Accordion/hooks/useAccordionController';
4
- import { AnnotatedStoryFn } from '@storybook/core/csf';
5
- import { AccordionClasses, Theme, AccordionSlotsAndSlotProps, PaperOwnProps } from '@mui/material';
6
- import { SxProps } from '@mui/system';
7
- import { TransitionProps } from '@mui/material/transitions';
8
- import { CommonProps } from '@mui/material/OverridableComponent';
9
- import { DetailedHTMLProps, HTMLAttributes, DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject } from 'react';
10
3
  declare const meta: Meta<typeof RcSesAccordion>;
11
4
  export default meta;
12
- export declare const Main: AnnotatedStoryFn<ReactRenderer, {
13
- children: NonNullable<React.ReactNode>;
14
- classes?: Partial< AccordionClasses>;
15
- defaultExpanded?: boolean;
16
- disabled?: boolean;
17
- disableGutters?: boolean;
18
- expanded?: boolean;
19
- onChange?: (event: React.SyntheticEvent, expanded: boolean) => void;
20
- sx?: SxProps<Theme>;
21
- TransitionComponent?: React.JSXElementConstructor< TransitionProps & {
22
- children?: React.ReactElement<any, any>;
23
- }>;
24
- TransitionProps?: TransitionProps;
25
- } & AccordionSlotsAndSlotProps & Omit< PaperOwnProps, "onChange" | "classes"> & CommonProps & Omit<Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
26
- ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
27
- }, "elevation" | "children" | "onChange" | "square" | keyof CommonProps | "sx" | "variant" | "defaultExpanded" | "disabled" | "disableGutters" | "expanded" | "TransitionComponent" | "TransitionProps" | keyof AccordionSlotsAndSlotProps> & {
28
- id: string;
29
- controller: ReturnType<typeof useAccordionController>;
30
- }>;
5
+ export declare const Main: {
6
+ render: (args: any) => import("react/jsx-runtime").JSX.Element;
7
+ args: {
8
+ disabled: boolean;
9
+ };
10
+ parameters: {
11
+ docs: {
12
+ source: {
13
+ type: string;
14
+ transform: (code: string, storyContext: StoryContext) => string;
15
+ };
16
+ };
17
+ };
18
+ };
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesTab } from '../../../components/common/Tabs/Tab';
3
+ declare const meta: Meta<typeof RcSesTab>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithIcon: Story;
8
+ export declare const Disabled: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesTabPanel } from '../../../components/common/Tabs/TabPanel';
3
+ declare const meta: Meta<typeof RcSesTabPanel>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Visible: Story;
7
+ export declare const WithContent: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesTabs } from '../../../components/common/Tabs/Tabs';
3
+ declare const meta: Meta<typeof RcSesTabs>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithIcons: Story;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesTabsWrapper } from '../../../components/common/Tabs/TabsWrapper';
3
+ declare const meta: Meta<typeof RcSesTabsWrapper>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@registrucentras/rc-ses-react-components",
3
3
  "author": "VĮ REGISTRŲ CENTRAS",
4
- "version": "1.6.2",
4
+ "version": "1.6.4",
5
5
  "description": "RC SES React komponentų biblioteka",
6
6
  "type": "module",
7
7
  "private": false,
@@ -0,0 +1,87 @@
1
+ import { Meta } from '@storybook/blocks'
2
+ import { grey, primary } from '../theme/palette'
3
+
4
+ import Logo from '@/assets/Logo'
5
+
6
+ <Meta title='Welcome' />
7
+
8
+ <div style={{ padding: '32px', fontFamily: 'Public sans, sans-serif, Arial' }}>
9
+ <div style={{ maxWidth: '1000px', margin: '0 auto', backgroundColor: 'white', borderRadius: '16px', padding: '48px', boxShadow: `0 10px 40px rgba(0, 0, 0, 0.1)` }}>
10
+ {/* Header */}
11
+ <div style={{ textAlign: 'center', marginBottom: '40px', paddingBottom: '0' }}>
12
+ <div style={{ paddingBottom: '24px' }}>
13
+ <Logo />
14
+ </div>
15
+ <h1 style={{
16
+ margin: '0',
17
+ fontSize: '35px',
18
+ color: grey['900'],
19
+ fontWeight: '600'
20
+ }}>
21
+ ### 👋 Welcome to RC SES React Components
22
+ </h1>
23
+ <p style={{ margin: '12px 0 0 0', fontSize: '15px', color: grey['600'], fontWeight: '500' }}>
24
+ A React 18 and Material-UI component library for RC SES applications
25
+ </p>
26
+ </div>
27
+ {/* Overview */}
28
+ <div style={{ marginBottom: '24px', padding: '24px', backgroundColor: grey['100'], borderRadius: '12px' }}>
29
+ <p style={{ color: primary['600'], lineHeight: '1.7', margin: '0 0 16px 0', fontSize: '15px', fontWeight: '500' }}>
30
+ This is a comprehensive component library for RC SES React applications. All components are built with React 18, TypeScript, and styled with Material-UI (MUI) v5.
31
+ </p>
32
+ </div>
33
+
34
+ {/* Features */}
35
+ <div>
36
+
37
+ <h2 style={{ marginTop: '0', color: grey['900'], marginBottom: '20px', fontSize: '18px', fontWeight: '600' }}>Library Features:</h2>
38
+
39
+ <div>
40
+ <div style={{
41
+ display: 'grid',
42
+ gridTemplateColumns: '1fr 1fr 1fr 1fr',
43
+ gap: '20px'
44
+ }}>
45
+ {[
46
+ { icon: '📖', title: 'Documentation', desc: 'Props, usage, and best practices', color: '#e3f2fd' },
47
+ { icon: '🎮', title: 'Interactive Testing', desc: 'Play with props and see changes live', color: '#f3e5f5' },
48
+ { icon: '💻', title: 'Code Samples', desc: 'Copy working code examples', color: '#e8f5e9' },
49
+ { icon: '✨', title: 'Use Cases', desc: 'Real-world component examples', color: '#fff3e0' }
50
+ ].map((feature, idx) => (
51
+ <div key={idx} style={{
52
+ padding: '1.25rem',
53
+ backgroundColor: feature.color,
54
+ borderRadius: '10px',
55
+ border: '1px solid #e0e0e0',
56
+ transition: 'all 0.3s ease',
57
+ cursor: 'pointer',
58
+ textAlign: 'center'
59
+ }}
60
+ onMouseEnter={(e) => {
61
+ e.currentTarget.style.transform = 'translateY(-4px)';
62
+ e.currentTarget.style.boxShadow = '0 8px 16px rgba(0, 0, 0, 0.12)';
63
+ }}
64
+ onMouseLeave={(e) => {
65
+ e.currentTarget.style.transform = 'translateY(0)';
66
+ e.currentTarget.style.boxShadow = 'none';
67
+ }}
68
+ >
69
+ <div style={{ fontSize: '2rem', marginBottom: '0.75rem' }}>{feature.icon}</div>
70
+ <h4 style={{ margin: '0 0 0.5rem 0', color: '#333', fontSize: '0.95rem', fontWeight: '600' }}>{feature.title}</h4>
71
+ <p style={{ margin: '0', fontSize: '0.8rem', color: '#666', lineHeight: '1.4' }}>{feature.desc}</p>
72
+ </div>
73
+ ))}
74
+ </div>
75
+ </div>
76
+ </div>
77
+
78
+ {/* Getting Started */}
79
+ <div style={{ marginTop: '2rem', padding: '1.5rem', backgroundColor: '#f0f8ff', borderRadius: '12px', borderLeft: '4px solid #0969da' }}>
80
+ <h3 style={{ marginTop: '0', color: '#0969da', marginBottom: '0.75rem', fontSize: '1rem', fontWeight: '600' }}>🚀 Getting Started:</h3>
81
+ <p style={{ color: '#555', lineHeight: '1.6', margin: '0', fontSize: '0.95rem' }}>
82
+ Use the sidebar navigation to explore components by category. Each component includes documentation, interactive examples, and code samples you can copy directly into your projects.
83
+ </p>
84
+ </div>
85
+
86
+ </div>
87
+ </div>
@@ -0,0 +1,16 @@
1
+ import type { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import Logo from '@/assets/Logo'
4
+
5
+ const meta = {
6
+ title: 'assets/Logo',
7
+ component: Logo,
8
+ parameters: {
9
+ layout: 'centered',
10
+ },
11
+ } satisfies Meta<typeof Logo>
12
+
13
+ export default meta
14
+ type Story = StoryObj<typeof meta>
15
+
16
+ export const Default: Story = {}
@@ -0,0 +1,33 @@
1
+ import { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import RcSesButtonWithPopover from '@/components/common/Button/ButtonWithPopover'
4
+
5
+ const meta: Meta<typeof RcSesButtonWithPopover> = {
6
+ title: 'components/actions/ButtonWithPopover',
7
+ component: RcSesButtonWithPopover,
8
+ tags: ['autodocs'],
9
+ argTypes: {
10
+ popoverHeader: { control: 'text' },
11
+ popoverContent: { control: 'text' },
12
+ },
13
+ }
14
+
15
+ export default meta
16
+ type Story = StoryObj<typeof meta>
17
+
18
+ export const Default: Story = {
19
+ args: {
20
+ popoverHeader: 'Information',
21
+ popoverContent: 'Hover or click the question icon to see this popover content',
22
+ },
23
+ }
24
+
25
+ export const WithCustomContent: Story = {
26
+ args: {
27
+ popoverHeader: 'Help',
28
+ popoverContent: 'This is custom content inside the popover',
29
+ },
30
+ render: (args) => (
31
+ <RcSesButtonWithPopover {...args}>Custom Button</RcSesButtonWithPopover>
32
+ ),
33
+ }
@@ -0,0 +1,35 @@
1
+ import TextField from '@mui/material/TextField'
2
+ import { Meta, StoryObj } from '@storybook/react'
3
+
4
+ import RcSesFormControlWrapper from '@/components/form/components/FormControlWrapper'
5
+
6
+ const meta: Meta<typeof RcSesFormControlWrapper> = {
7
+ title: 'components/form/FormControlWrapper',
8
+ component: RcSesFormControlWrapper,
9
+ tags: ['autodocs'],
10
+ argTypes: {
11
+ label: { control: 'text' },
12
+ description: { control: 'text' },
13
+ hideLabel: { control: 'boolean' },
14
+ labelOnTop: { control: 'boolean' },
15
+ required: { control: 'boolean' },
16
+ },
17
+ }
18
+
19
+ export default meta
20
+ type Story = StoryObj<typeof meta>
21
+
22
+ export const Default: Story = {
23
+ args: {
24
+ label: 'Label',
25
+ description: 'This is a helpful description',
26
+ hideLabel: false,
27
+ labelOnTop: false,
28
+ required: false,
29
+ },
30
+ render: (args) => (
31
+ <RcSesFormControlWrapper {...args}>
32
+ <TextField id='input' placeholder='Type text here' size='small' fullWidth />
33
+ </RcSesFormControlWrapper>
34
+ ),
35
+ }
@@ -40,7 +40,7 @@ const meta: Meta<typeof RcSesServiceFormContainer> = {
40
40
 
41
41
  export default meta
42
42
 
43
- const Template: StoryFn<typeof RcSesServiceFormContainer> = (args) => {
43
+ function ServiceFormContainerDemo() {
44
44
  const accordionController = useAccordionController({
45
45
  initialState: {
46
46
  basicInformation: {
@@ -164,15 +164,15 @@ const codeBlock = (args: any) => `
164
164
  </RcSesServiceFormContainer>
165
165
  );`
166
166
 
167
- export const Main = Template.bind({})
168
- Main.args = {}
169
-
170
- Main.parameters = {
171
- docs: {
172
- source: {
173
- type: 'dynamic',
174
- transform: (code: string, storyContext: StoryContext) =>
175
- codeBlock(storyContext.args),
167
+ export const Main = {
168
+ render: () => <ServiceFormContainerDemo />,
169
+ parameters: {
170
+ docs: {
171
+ source: {
172
+ type: 'dynamic',
173
+ transform: (code: string, storyContext: StoryContext) =>
174
+ codeBlock(storyContext.args),
175
+ },
176
176
  },
177
177
  },
178
178
  }
@@ -0,0 +1,39 @@
1
+ import { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import CheckBoldIcon from '@/assets/icons/CheckBoldIcon'
4
+ import RcSesIconWithCircularBackground from '@/components/common/IconWithCircularBackground'
5
+
6
+ const meta: Meta<typeof RcSesIconWithCircularBackground> = {
7
+ title: 'components/icons/IconWithCircularBackground',
8
+ component: RcSesIconWithCircularBackground,
9
+ tags: ['autodocs'],
10
+ argTypes: {
11
+ size: {
12
+ control: {
13
+ type: 'select',
14
+ options: ['tiny', 'small', 'medium', 'mediumLarge', 'large'],
15
+ },
16
+ },
17
+ color: {
18
+ control: {
19
+ type: 'select',
20
+ options: ['primary', 'secondary', 'success', 'error', 'warning', 'info'],
21
+ },
22
+ },
23
+ bgShade: { control: 'text' },
24
+ iconShade: { control: 'text' },
25
+ },
26
+ }
27
+
28
+ export default meta
29
+ type Story = StoryObj<typeof meta>
30
+
31
+ export const Default: Story = {
32
+ args: {
33
+ Icon: CheckBoldIcon,
34
+ size: 'medium',
35
+ color: 'primary',
36
+ bgShade: '50',
37
+ iconShade: '600',
38
+ },
39
+ }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react/function-component-definition */
2
- import { Meta, StoryContext, StoryFn } from '@storybook/react'
2
+ import { Meta, StoryContext } from '@storybook/react'
3
3
  import { useForm } from 'react-hook-form'
4
4
 
5
5
  import RcSesCheckbox from '@/components/form/inputs/Checkbox'
@@ -73,7 +73,7 @@ const meta: Meta<typeof RcSesCheckbox> = {
73
73
 
74
74
  export default meta
75
75
 
76
- const Template: StoryFn<typeof RcSesCheckbox> = (args) => {
76
+ function CheckboxDemo(args: any) {
77
77
  const {
78
78
  control,
79
79
  formState: { errors },
@@ -195,20 +195,21 @@ const codeBlock = (args: any) => {
195
195
  );`
196
196
  }
197
197
 
198
- export const Main = Template.bind({})
199
- Main.args = {
200
- label: 'Click Me',
201
- variant: 'outlined',
202
- children: 'This is content',
203
- disabled: false,
204
- }
205
-
206
- Main.parameters = {
207
- docs: {
208
- source: {
209
- type: 'dynamic',
210
- transform: (code: string, storyContext: StoryContext) =>
211
- codeBlock(storyContext.args),
198
+ export const Main = {
199
+ render: (args: any) => <CheckboxDemo {...args} />,
200
+ args: {
201
+ label: 'Click Me',
202
+ variant: 'outlined',
203
+ children: 'This is content',
204
+ disabled: false,
205
+ },
206
+ parameters: {
207
+ docs: {
208
+ source: {
209
+ type: 'dynamic',
210
+ transform: (code: string, storyContext: StoryContext) =>
211
+ codeBlock(storyContext.args),
212
+ },
212
213
  },
213
214
  },
214
215
  }
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable react/function-component-definition */
2
2
  import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3'
3
3
  import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'
4
- import { Meta, StoryContext, StoryFn } from '@storybook/react'
4
+ import { Meta, StoryContext } from '@storybook/react'
5
5
  import { lt } from 'date-fns/locale/lt'
6
6
  import { useForm } from 'react-hook-form'
7
7
 
@@ -28,7 +28,7 @@ const meta: Meta<typeof RcSesDatepicker> = {
28
28
 
29
29
  export default meta
30
30
 
31
- const Template: StoryFn<typeof RcSesDatepicker> = (args) => {
31
+ function DatePickerDemo(args: any) {
32
32
  const { clearable, label, rules } = args
33
33
 
34
34
  const {
@@ -81,19 +81,20 @@ const codeBlock = (args: any) => {
81
81
  );`
82
82
  }
83
83
 
84
- export const Main = Template.bind({})
85
- Main.args = {
86
- clearable: true,
87
- label: 'Terminas',
88
- rules: { required: true },
89
- }
90
-
91
- Main.parameters = {
92
- docs: {
93
- source: {
94
- type: 'dynamic',
95
- transform: (code: string, storyContext: StoryContext) =>
96
- codeBlock(storyContext.args),
84
+ export const Main = {
85
+ render: (args: any) => <DatePickerDemo {...args} />,
86
+ args: {
87
+ clearable: true,
88
+ label: 'Terminas',
89
+ rules: { required: true },
90
+ },
91
+ parameters: {
92
+ docs: {
93
+ source: {
94
+ type: 'dynamic',
95
+ transform: (code: string, storyContext: StoryContext) =>
96
+ codeBlock(storyContext.args),
97
+ },
97
98
  },
98
99
  },
99
100
  }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react/function-component-definition */
2
- import { Meta, StoryContext, StoryFn } from '@storybook/react'
2
+ import { Meta, StoryContext } from '@storybook/react'
3
3
  import { useForm } from 'react-hook-form'
4
4
 
5
5
  import RcSesFileUpload from '@/components/form/inputs/FileUpload'
@@ -49,7 +49,7 @@ const meta: Meta<typeof RcSesFileUpload> = {
49
49
 
50
50
  export default meta
51
51
 
52
- const Template: StoryFn<typeof RcSesFileUpload> = (args) => {
52
+ function FileUploadDemo(args: any) {
53
53
  const {
54
54
  control,
55
55
  formState: { errors },
@@ -97,22 +97,6 @@ const Template: StoryFn<typeof RcSesFileUpload> = (args) => {
97
97
  label='Error'
98
98
  errors={{ message: 'Error Message', type: 'required' }}
99
99
  />
100
-
101
- {/* <RcSesFileUpload
102
- id='fileUpload2'
103
- name='fileUpload'
104
- control={control}
105
- rules={{ required: true }}
106
- label='Failo įkėlimas'
107
- errors={errors?.fileUpload}
108
- slotProps={{
109
- wrapper: {
110
- fieldSuffix: (
111
- <RcSesButtonWithPopover popoverContent='Tinkami formatai: .doc, .xdoc, .pdf, .pages' />
112
- ),
113
- },
114
- }}
115
- /> */}
116
100
  </FieldPreviewRow>
117
101
  </Fields>
118
102
  )
@@ -143,17 +127,18 @@ const codeBlock = (args: any) => {
143
127
  );`
144
128
  }
145
129
 
146
- export const Main = Template.bind({})
147
- Main.args = {
148
- label: 'Upload file',
149
- }
150
-
151
- Main.parameters = {
152
- docs: {
153
- source: {
154
- type: 'dynamic',
155
- transform: (code: string, storyContext: StoryContext) =>
156
- codeBlock(storyContext.args),
130
+ export const Main = {
131
+ render: (args: any) => <FileUploadDemo {...args} />,
132
+ args: {
133
+ label: 'Upload file',
134
+ },
135
+ parameters: {
136
+ docs: {
137
+ source: {
138
+ type: 'dynamic',
139
+ transform: (code: string, storyContext: StoryContext) =>
140
+ codeBlock(storyContext.args),
141
+ },
157
142
  },
158
143
  },
159
144
  }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react/function-component-definition */
2
- import { Meta, StoryFn } from '@storybook/react'
2
+ import { Meta } from '@storybook/react'
3
3
  import { useForm } from 'react-hook-form'
4
4
 
5
5
  import RcSesPhoneInput from '@/components/form/inputs/PhoneInput'
@@ -49,7 +49,7 @@ const meta: Meta<typeof RcSesPhoneInput> = {
49
49
 
50
50
  export default meta
51
51
 
52
- const Template: StoryFn<typeof RcSesPhoneInput> = (args) => {
52
+ function PhoneInputDemo(args: any) {
53
53
  const {
54
54
  control,
55
55
  formState: { errors },
@@ -104,7 +104,9 @@ const Template: StoryFn<typeof RcSesPhoneInput> = (args) => {
104
104
  )
105
105
  }
106
106
 
107
- export const Main = Template.bind({})
108
- Main.args = {
109
- label: 'Phone number',
107
+ export const Main = {
108
+ render: (args: any) => <PhoneInputDemo {...args} />,
109
+ args: {
110
+ label: 'Phone number',
111
+ },
110
112
  }
@@ -0,0 +1,33 @@
1
+ import { Meta, StoryObj } from '@storybook/react'
2
+ import { useForm } from 'react-hook-form'
3
+
4
+ import RcSesPhoneInputFormControl from '@/components/form/inputs/PhoneInputFormControl'
5
+
6
+ const meta: Meta<typeof RcSesPhoneInputFormControl> = {
7
+ title: 'components/inputs/PhoneInputFormControl',
8
+ component: RcSesPhoneInputFormControl,
9
+ tags: ['autodocs'],
10
+ argTypes: {
11
+ label: { control: 'text' },
12
+ },
13
+ }
14
+
15
+ export default meta
16
+ type Story = StoryObj<typeof meta>
17
+
18
+ function PhoneInputFormControlDemo({ label = 'Phone Number' }: { label?: string }) {
19
+ const { control } = useForm({
20
+ defaultValues: {
21
+ phone: '',
22
+ },
23
+ })
24
+
25
+ return <RcSesPhoneInputFormControl control={control} label={label} name='phone' />
26
+ }
27
+
28
+ export const Default: Story = {
29
+ args: {
30
+ label: 'Phone Number',
31
+ },
32
+ render: ({ label }) => <PhoneInputFormControlDemo label={label} />,
33
+ }
@@ -0,0 +1,36 @@
1
+ import Typography from '@mui/material/Typography'
2
+ import { Meta, StoryObj } from '@storybook/react'
3
+
4
+ import RcSesServiceHeader from '@/components/layout/ServiceHeader'
5
+
6
+ const meta: Meta<typeof RcSesServiceHeader> = {
7
+ title: 'components/layout/ServiceHeader',
8
+ component: RcSesServiceHeader,
9
+ tags: ['autodocs'],
10
+ argTypes: {
11
+ title: { control: 'text' },
12
+ children: { control: 'text' },
13
+ },
14
+ }
15
+
16
+ export default meta
17
+ type Story = StoryObj<typeof meta>
18
+
19
+ export const Default: Story = {
20
+ args: {
21
+ title: 'Service Title',
22
+ children: 'This is a description of the service.',
23
+ breadcrumbsProps: {
24
+ path: [
25
+ { label: 'Home', path: '/' },
26
+ { label: 'Services', path: '/services' },
27
+ { label: 'Service Title', path: '/services/service' },
28
+ ],
29
+ },
30
+ },
31
+ render: (args) => (
32
+ <RcSesServiceHeader title={args.title} breadcrumbsProps={args.breadcrumbsProps}>
33
+ {args.children && <Typography variant='body1'>{args.children}</Typography>}
34
+ </RcSesServiceHeader>
35
+ ),
36
+ }
@@ -0,0 +1,26 @@
1
+ import Typography from '@mui/material/Typography'
2
+ import { Meta, StoryObj } from '@storybook/react'
3
+
4
+ import RcSesServicePage from '@/components/layout/ServicePage'
5
+
6
+ const meta: Meta<typeof RcSesServicePage> = {
7
+ title: 'components/layout/ServicePage',
8
+ component: RcSesServicePage,
9
+ tags: ['autodocs'],
10
+ }
11
+
12
+ export default meta
13
+ type Story = StoryObj<typeof meta>
14
+
15
+ export const Default: Story = {
16
+ render: () => (
17
+ <RcSesServicePage>
18
+ <Typography variant='h2' sx={{ mb: 2 }}>
19
+ Page Content
20
+ </Typography>
21
+ <Typography variant='body1'>
22
+ This is the main content area of the service page.
23
+ </Typography>
24
+ </RcSesServicePage>
25
+ ),
26
+ }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react/function-component-definition */
2
- import { Meta, StoryContext, StoryFn } from '@storybook/react'
2
+ import { Meta, StoryContext } from '@storybook/react'
3
3
 
4
4
  import RcSesAccordion from '@/components/common/Accordion'
5
5
  import useAccordionController from '@/components/common/Accordion/hooks/useAccordionController'
@@ -24,7 +24,7 @@ const meta: Meta<typeof RcSesAccordion> = {
24
24
 
25
25
  export default meta
26
26
 
27
- const Template: StoryFn<typeof RcSesAccordion> = (args) => {
27
+ function AccordionDemo(args: any) {
28
28
  const { disabled } = args
29
29
 
30
30
  const accordionController = useAccordionController({
@@ -77,17 +77,18 @@ const codeBlock = (args: any) => {
77
77
  );`
78
78
  }
79
79
 
80
- export const Main = Template.bind({})
81
- Main.args = {
82
- disabled: false,
83
- }
84
-
85
- Main.parameters = {
86
- docs: {
87
- source: {
88
- type: 'dynamic',
89
- transform: (code: string, storyContext: StoryContext) =>
90
- codeBlock(storyContext.args),
80
+ export const Main = {
81
+ render: (args: any) => <AccordionDemo {...args} />,
82
+ args: {
83
+ disabled: false,
84
+ },
85
+ parameters: {
86
+ docs: {
87
+ source: {
88
+ type: 'dynamic',
89
+ transform: (code: string, storyContext: StoryContext) =>
90
+ codeBlock(storyContext.args),
91
+ },
91
92
  },
92
93
  },
93
94
  }
@@ -49,26 +49,28 @@ const meta = {
49
49
  export default meta
50
50
  type Story = StoryObj<typeof meta>
51
51
 
52
+ function ControlledDataPaginationDemo({ page: initialPage, onChange, ...args }: any) {
53
+ const [page, setPage] = useState(initialPage ?? 1)
54
+
55
+ return (
56
+ <Box display='flex' flexDirection='column' gap={2}>
57
+ <Typography variant='body2'>Current page: {page}</Typography>
58
+ <DataPagination
59
+ {...args}
60
+ page={page}
61
+ onChange={(nextPage) => {
62
+ setPage(nextPage)
63
+ onChange?.(nextPage)
64
+ }}
65
+ />
66
+ </Box>
67
+ )
68
+ }
69
+
52
70
  export const Uncontrolled: Story = {}
53
71
 
54
72
  export const Controlled: Story = {
55
- render: (args) => {
56
- const [page, setPage] = useState(args.page ?? 1)
57
-
58
- return (
59
- <Box display='flex' flexDirection='column' gap={2}>
60
- <Typography variant='body2'>Current page: {page}</Typography>
61
- <DataPagination
62
- {...args}
63
- page={page}
64
- onChange={(nextPage) => {
65
- setPage(nextPage)
66
- args.onChange?.(nextPage)
67
- }}
68
- />
69
- </Box>
70
- )
71
- },
73
+ render: (args) => <ControlledDataPaginationDemo {...args} />,
72
74
  args: {
73
75
  page: 1,
74
76
  },
@@ -0,0 +1,32 @@
1
+ import { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import RcSesTab from '@/components/common/Tabs/Tab'
4
+
5
+ const meta: Meta<typeof RcSesTab> = {
6
+ title: 'components/tabs/Tab',
7
+ component: RcSesTab,
8
+ tags: ['autodocs'],
9
+ argTypes: {
10
+ disabled: { control: 'boolean' },
11
+ label: { control: 'text' },
12
+ icon: { control: 'text' },
13
+ iconPosition: {
14
+ control: { type: 'select', options: ['top', 'bottom', 'start', 'end'] },
15
+ },
16
+ },
17
+ }
18
+
19
+ export default meta
20
+ type Story = StoryObj<typeof meta>
21
+
22
+ export const Default: Story = {
23
+ args: { label: 'Tab Label' },
24
+ }
25
+
26
+ export const WithIcon: Story = {
27
+ args: { label: 'Home', icon: '⭐', iconPosition: 'start' },
28
+ }
29
+
30
+ export const Disabled: Story = {
31
+ args: { label: 'Disabled Tab', disabled: true },
32
+ }
@@ -0,0 +1,31 @@
1
+ import { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import RcSesTabPanel from '@/components/common/Tabs/TabPanel'
4
+
5
+ const meta: Meta<typeof RcSesTabPanel> = {
6
+ title: 'components/tabs/TabPanel',
7
+ component: RcSesTabPanel,
8
+ tags: ['autodocs'],
9
+ }
10
+
11
+ export default meta
12
+ type Story = StoryObj<typeof meta>
13
+
14
+ export const Visible: Story = {
15
+ render: () => (
16
+ <RcSesTabPanel activeTab={0} index={0}>
17
+ Panel is visible (activeTab matches index)
18
+ </RcSesTabPanel>
19
+ ),
20
+ }
21
+
22
+ export const WithContent: Story = {
23
+ render: () => (
24
+ <RcSesTabPanel activeTab={0} index={0}>
25
+ <div>
26
+ <h3>Panel Title</h3>
27
+ <p>Panel with structured content</p>
28
+ </div>
29
+ </RcSesTabPanel>
30
+ ),
31
+ }
@@ -0,0 +1,62 @@
1
+ import { Box } from '@mui/material'
2
+ import { Meta, StoryObj } from '@storybook/react'
3
+ import { useState } from 'react'
4
+
5
+ import RcSesTab from '@/components/common/Tabs/Tab'
6
+ import RcSesTabs from '@/components/common/Tabs/Tabs'
7
+
8
+ const meta: Meta<typeof RcSesTabs> = {
9
+ title: 'components/tabs/Tabs',
10
+ component: RcSesTabs,
11
+ tags: ['autodocs'],
12
+ argTypes: {
13
+ value: { control: 'number' },
14
+ },
15
+ }
16
+
17
+ export default meta
18
+ type Story = StoryObj<typeof meta>
19
+
20
+ function DefaultTabsWrapper() {
21
+ const [value, setValue] = useState(0)
22
+ return (
23
+ <Box>
24
+ <RcSesTabs value={value} onChange={(_, newValue) => setValue(newValue)}>
25
+ <RcSesTab label='Tab 1' />
26
+ <RcSesTab label='Tab 2' />
27
+ <RcSesTab label='Tab 3' />
28
+ </RcSesTabs>
29
+ <Box sx={{ p: 2 }}>
30
+ {value === 0 && <p>Content for Tab 1 goes here</p>}
31
+ {value === 1 && <p>Content for Tab 2 goes here</p>}
32
+ {value === 2 && <p>Content for Tab 3 goes here</p>}
33
+ </Box>
34
+ </Box>
35
+ )
36
+ }
37
+
38
+ function WithIconsTabsWrapper() {
39
+ const [value, setValue] = useState(0)
40
+ return (
41
+ <Box>
42
+ <RcSesTabs value={value} onChange={(_, newValue) => setValue(newValue)}>
43
+ <RcSesTab label='Home' icon='🏠' iconPosition='start' />
44
+ <RcSesTab label='Settings' icon='⚙️' iconPosition='start' />
45
+ <RcSesTab label='Profile' icon='👤' iconPosition='start' />
46
+ </RcSesTabs>
47
+ <Box sx={{ p: 2 }}>
48
+ {value === 0 && <p>Welcome to the Home tab</p>}
49
+ {value === 1 && <p>Adjust your Settings here</p>}
50
+ {value === 2 && <p>View your Profile information</p>}
51
+ </Box>
52
+ </Box>
53
+ )
54
+ }
55
+
56
+ export const Default: Story = {
57
+ render: () => <DefaultTabsWrapper />,
58
+ }
59
+
60
+ export const WithIcons: Story = {
61
+ render: () => <WithIconsTabsWrapper />,
62
+ }
@@ -0,0 +1,34 @@
1
+ import { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import RcSesTab from '@/components/common/Tabs/Tab'
4
+ import RcSesTabPanel from '@/components/common/Tabs/TabPanel'
5
+ import RcSesTabs from '@/components/common/Tabs/Tabs'
6
+ import RcSesTabsWrapper from '@/components/common/Tabs/TabsWrapper'
7
+
8
+ const meta: Meta<typeof RcSesTabsWrapper> = {
9
+ title: 'components/tabs/TabsWrapper',
10
+ component: RcSesTabsWrapper,
11
+ tags: ['autodocs'],
12
+ argTypes: {
13
+ heading: { control: 'text' },
14
+ },
15
+ }
16
+
17
+ export default meta
18
+ type Story = StoryObj<typeof meta>
19
+
20
+ export const Default: Story = {
21
+ args: {
22
+ heading: 'Section Title',
23
+ },
24
+ render: (args) => (
25
+ <RcSesTabsWrapper heading={args.heading}>
26
+ <RcSesTabs value={0}>
27
+ <RcSesTab label='Tab' />
28
+ </RcSesTabs>
29
+ <RcSesTabPanel activeTab={0} index={0}>
30
+ Tab content
31
+ </RcSesTabPanel>
32
+ </RcSesTabsWrapper>
33
+ ),
34
+ }