@registrucentras/rc-ses-react-components 1.3.1 → 1.4.1
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/README.md +3 -1
- package/dist/assets/IconProps.d.ts +4 -2
- package/dist/assets/icons/ArrowLeftIcon.d.ts +3 -0
- package/dist/assets/icons/ArrowRightIcon.d.ts +1 -1
- package/dist/assets/icons/BarcodeIcon.d.ts +3 -0
- package/dist/assets/icons/CalendarBlankIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDoubleLeftBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDoubleRightBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDownBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDownFill.d.ts +2 -2
- package/dist/assets/icons/CaretDownIcon.d.ts +1 -1
- package/dist/assets/icons/CaretLeftBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretLeftIcon.d.ts +1 -1
- package/dist/assets/icons/CaretRightBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CheckBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CheckCircleFillIcon.d.ts +2 -2
- package/dist/assets/icons/CheckUncheckedBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CircleFilledIcon.d.ts +3 -0
- package/dist/assets/icons/CloseIcon.d.ts +1 -1
- package/dist/assets/icons/CollapseChevronsIcon.d.ts +1 -1
- package/dist/assets/icons/DotCircleFilledIcon.d.ts +3 -0
- package/dist/assets/icons/ExpandChevronsIcon.d.ts +1 -1
- package/dist/assets/icons/InfoFillIcon.d.ts +1 -1
- package/dist/assets/icons/MagnifyingGlassIcon.d.ts +2 -2
- package/dist/assets/icons/MapPinAreaIcon.d.ts +3 -0
- package/dist/assets/icons/MinusBoldIcon.d.ts +1 -1
- package/dist/assets/icons/PlusBoldIcon.d.ts +1 -1
- package/dist/assets/icons/QuestionFillIcon.d.ts +1 -1
- package/dist/assets/icons/QuestionIcon.d.ts +1 -1
- package/dist/assets/icons/ScalesIcon.d.ts +3 -0
- package/dist/assets/icons/ScrollIcon.d.ts +1 -1
- package/dist/assets/icons/SpinnerGapBoldIcon.d.ts +1 -1
- package/dist/assets/icons/UploadSimpleIcon.d.ts +1 -1
- package/dist/assets/icons/WarningDiamondFillIcon.d.ts +1 -1
- package/dist/assets/icons/WarningFillIcon.d.ts +1 -1
- package/dist/assets/icons/XCircleFillIcon.d.ts +2 -2
- package/dist/components/common/Button/index.d.ts +2 -2
- package/dist/components/common/Card/index.d.ts +31 -0
- package/dist/components/common/DataPagination/components/PaginationButton.d.ts +8 -0
- package/dist/components/common/DataPagination/index.d.ts +10 -0
- package/dist/components/layout/ServiceFormContainer/{components → AccordionFormContainer/components}/AccordionCollapseControls.d.ts +1 -1
- package/dist/components/layout/ServiceFormContainer/{index.d.ts → AccordionFormContainer/index.d.ts} +1 -1
- package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/utils.d.ts +4 -0
- package/dist/components/layout/ServiceFormContainer/CardFormContainer/index.d.ts +11 -0
- package/dist/components/layout/ServiceWizardStepper/StepConnector.d.ts +7 -0
- package/dist/components/layout/ServiceWizardStepper/StepperTypes.d.ts +7 -0
- package/dist/components/layout/ServiceWizardStepper/components/CustomStepIcon.d.ts +3 -0
- package/dist/components/layout/ServiceWizardStepper/components/DesktopStepper.d.ts +10 -0
- package/dist/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.d.ts +6 -0
- package/dist/components/layout/ServiceWizardStepper/components/MobileStepper.d.ts +8 -0
- package/dist/components/layout/ServiceWizardStepper/components/StyledStepLabel.d.ts +11 -0
- package/dist/components/layout/ServiceWizardStepper/index.d.ts +8 -5
- package/dist/library/icons.d.ts +27 -3
- package/dist/library/index.d.ts +12 -4
- package/dist/library/types.d.ts +4 -0
- package/dist/registrucentras-rc-ses-react-components.cjs +12 -12
- package/dist/registrucentras-rc-ses-react-components.js +3945 -2672
- package/dist/stories/ServiceWizardStepper.stories.d.ts +7 -0
- package/dist/stories/components/Accordion.stories.d.ts +2 -2
- package/dist/stories/components/Card.stories.d.ts +24 -0
- package/dist/stories/components/DataPagination.stories.d.ts +47 -0
- package/dist/stories/components/Icons.stories.d.ts +6 -0
- package/dist/stories/components/buttons/Button.stories.d.ts +10 -0
- package/dist/stories/components/form/CardFormContainer.stories.d.ts +7 -0
- package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +2 -2
- package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +1 -1
- package/dist/stories/components/inputs/Checkbox.stories.d.ts +2 -2
- package/dist/stories/components/inputs/FileUpload.stories.d.ts +2 -2
- package/dist/stories/components/inputs/NumberStepper.stories.d.ts +2 -2
- package/dist/stories/components/inputs/SearchableField.stories.d.ts +60 -60
- package/dist/stories/components/inputs/Select.stories.d.ts +126 -126
- package/dist/stories/components/inputs/TextField.stories.d.ts +113 -113
- package/dist/theme/light/MuiPagination.d.ts +2 -1
- package/package.json +2 -1
- package/src/App.tsx +12 -0
- package/src/assets/IconProps.ts +5 -2
- package/src/assets/icons/ArrowLeftIcon.tsx +16 -0
- package/src/assets/icons/ArrowRightIcon.tsx +8 -13
- package/src/assets/icons/BarcodeIcon.tsx +9 -0
- package/src/assets/icons/CalendarBlankIcon.tsx +4 -16
- package/src/assets/icons/CaretDoubleLeftBoldIcon.tsx +14 -12
- package/src/assets/icons/CaretDoubleRightBoldIcon.tsx +14 -12
- package/src/assets/icons/CaretDownBoldIcon.tsx +9 -12
- package/src/assets/icons/CaretDownFill.tsx +11 -10
- package/src/assets/icons/CaretDownIcon.tsx +4 -16
- package/src/assets/icons/CaretLeftBoldIcon.tsx +9 -12
- package/src/assets/icons/CaretLeftIcon.tsx +4 -16
- package/src/assets/icons/CaretRightBoldIcon.tsx +9 -12
- package/src/assets/icons/CheckBoldIcon.tsx +9 -24
- package/src/assets/icons/CheckCircleFillIcon.tsx +10 -14
- package/src/assets/icons/CheckUncheckedBoldIcon.tsx +4 -23
- package/src/assets/icons/CircleFilledIcon.tsx +11 -0
- package/src/assets/icons/CloseIcon.tsx +4 -16
- package/src/assets/icons/CollapseChevronsIcon.tsx +9 -13
- package/src/assets/icons/DotCircleFilledIcon.tsx +23 -0
- package/src/assets/icons/ExpandChevronsIcon.tsx +9 -13
- package/src/assets/icons/InfoFillIcon.tsx +4 -14
- package/src/assets/icons/MagnifyingGlassIcon.tsx +5 -12
- package/src/assets/icons/MapPinAreaIcon.tsx +9 -0
- package/src/assets/icons/MinusBoldIcon.tsx +4 -14
- package/src/assets/icons/PlusBoldIcon.tsx +4 -14
- package/src/assets/icons/QuestionFillIcon.tsx +9 -13
- package/src/assets/icons/QuestionIcon.tsx +4 -16
- package/src/assets/icons/ScalesIcon.tsx +9 -0
- package/src/assets/icons/ScrollIcon.tsx +4 -16
- package/src/assets/icons/SpinnerGapBoldIcon.tsx +9 -12
- package/src/assets/icons/UploadSimpleIcon.tsx +4 -16
- package/src/assets/icons/WarningDiamondFillIcon.tsx +9 -13
- package/src/assets/icons/WarningFillIcon.tsx +9 -13
- package/src/assets/icons/XCircleFillIcon.tsx +11 -10
- package/src/components/common/Button/index.tsx +34 -3
- package/src/components/common/Card/index.test.tsx +136 -0
- package/src/components/common/Card/index.tsx +231 -0
- package/src/components/common/DataPagination/components/PaginationButton.tsx +63 -0
- package/src/components/common/DataPagination/index.test.tsx +122 -0
- package/src/components/common/DataPagination/index.tsx +70 -0
- package/src/components/form/inputs/CheckboxFormControl.tsx +1 -11
- package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +1 -1
- package/src/components/form/inputs/PhoneInputFormControl/index.tsx +3 -4
- package/src/components/layout/ServiceFormContainer/{index.tsx → AccordionFormContainer/index.tsx} +6 -2
- package/src/components/layout/ServiceFormContainer/AccordionFormContainer/utils.ts +12 -0
- package/src/components/layout/ServiceFormContainer/CardFormContainer/index.test.tsx +78 -0
- package/src/components/layout/ServiceFormContainer/CardFormContainer/index.tsx +68 -0
- package/src/components/layout/ServiceWizardStepper/ServiceWizardStepper.css +85 -0
- package/src/components/layout/ServiceWizardStepper/StepConnector.tsx +29 -0
- package/src/components/layout/ServiceWizardStepper/StepperTypes.ts +7 -0
- package/src/components/layout/ServiceWizardStepper/components/CustomStepIcon.test.tsx +22 -0
- package/src/components/layout/ServiceWizardStepper/components/CustomStepIcon.tsx +41 -0
- package/src/components/layout/ServiceWizardStepper/components/DesktopStepper.test.tsx +40 -0
- package/src/components/layout/ServiceWizardStepper/components/DesktopStepper.tsx +63 -0
- package/src/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.test.tsx +24 -0
- package/src/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.tsx +46 -0
- package/src/components/layout/ServiceWizardStepper/components/MobileStepper.test.tsx +21 -0
- package/src/components/layout/ServiceWizardStepper/components/MobileStepper.tsx +54 -0
- package/src/components/layout/ServiceWizardStepper/components/StyledStepLabel.tsx +57 -0
- package/src/components/layout/ServiceWizardStepper/index.tsx +63 -37
- package/src/examples/CardMultipleStepForm/index.tsx +93 -0
- package/src/examples/HorizontalMultiStepForm/index.tsx +64 -0
- package/src/examples/ListWithPagination/index.tsx +44 -0
- package/src/examples/MultipleStepForm/index.tsx +1 -1
- package/src/examples/SingleStepForm/index.tsx +1 -1
- package/src/library/icons.ts +51 -4
- package/src/library/index.ts +12 -3
- package/src/library/types.ts +5 -0
- package/src/main.tsx +15 -0
- package/src/stories/ServiceWizardStepper.stories.tsx +39 -0
- package/src/stories/components/Accordion.stories.tsx +1 -1
- package/src/stories/components/Card.stories.tsx +51 -0
- package/src/stories/components/Card.test.tsx +18 -0
- package/src/stories/components/DataPagination.stories.tsx +75 -0
- package/src/stories/components/Icons.stories.tsx +352 -0
- package/src/stories/components/buttons/Button.stories.tsx +30 -0
- package/src/stories/components/form/CardFormContainer.stories.tsx +135 -0
- package/src/stories/components/form/ServiceFormContainer.stories.tsx +1 -1
- package/src/theme/light/MuiAlert.tsx +10 -10
- package/src/theme/light/MuiButton.tsx +42 -15
- package/src/theme/light/MuiCard.tsx +2 -2
- package/src/theme/light/MuiPagination.ts +40 -12
- package/src/theme/light/index.tsx +2 -1
- package/src/types/buttons/ButtonProps.tsx +3 -1
- package/dist/assets/icons/CheckBoldDisabledIcon.d.ts +0 -3
- package/dist/components/layout/ServiceWizardStepper/components/ActiveStepIcon.d.ts +0 -2
- package/dist/components/layout/ServiceWizardStepper/components/CompletedStepIcon.d.ts +0 -2
- package/dist/components/layout/ServiceWizardStepper/components/PendingStepIcon.d.ts +0 -2
- package/src/assets/icons/CheckBoldDisabledIcon.tsx +0 -32
- package/src/components/layout/ServiceWizardStepper/components/ActiveStepIcon.tsx +0 -15
- package/src/components/layout/ServiceWizardStepper/components/CompletedStepIcon.tsx +0 -19
- package/src/components/layout/ServiceWizardStepper/components/PendingStepIcon.tsx +0 -15
- /package/src/components/layout/ServiceFormContainer/{components → AccordionFormContainer/components}/AccordionCollapseControls.tsx +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ThemeProvider } from '@mui/material/styles'
|
|
2
|
+
import { composeStories } from '@storybook/react'
|
|
3
|
+
import '@testing-library/jest-dom'
|
|
4
|
+
import { render, screen } from '@testing-library/react'
|
|
5
|
+
|
|
6
|
+
import theme from '../../theme/light'
|
|
7
|
+
import * as stories from './Card.stories'
|
|
8
|
+
|
|
9
|
+
const { Main } = composeStories(stories)
|
|
10
|
+
|
|
11
|
+
test('reuses args from composed card story', () => {
|
|
12
|
+
render(<ThemeProvider theme={theme}>{Main()}</ThemeProvider>)
|
|
13
|
+
|
|
14
|
+
expect(screen.getByText(Main.args.title as string)).toBeInTheDocument()
|
|
15
|
+
expect(screen.getByText(Main.args.description as string)).toBeInTheDocument()
|
|
16
|
+
expect(screen.getByText('Vidinis paslaugu front-end sprendimas')).toBeInTheDocument()
|
|
17
|
+
expect(screen.getAllByRole('button', { name: 'Button' })).toHaveLength(3)
|
|
18
|
+
})
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Box, Typography } from '@mui/material'
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
3
|
+
import { useState } from 'react'
|
|
4
|
+
|
|
5
|
+
import DataPagination from '@/components/common/DataPagination'
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'components/common/DataPagination',
|
|
9
|
+
component: DataPagination,
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
args: {
|
|
12
|
+
count: 12,
|
|
13
|
+
defaultPage: 1,
|
|
14
|
+
prevLabel: 'Atgal',
|
|
15
|
+
nextLabel: 'Kitas',
|
|
16
|
+
},
|
|
17
|
+
argTypes: {
|
|
18
|
+
count: {
|
|
19
|
+
control: {
|
|
20
|
+
type: 'number',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
defaultPage: {
|
|
24
|
+
control: {
|
|
25
|
+
type: 'number',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
page: {
|
|
29
|
+
control: {
|
|
30
|
+
type: 'number',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
onChange: {
|
|
34
|
+
action: 'pageChanged',
|
|
35
|
+
},
|
|
36
|
+
prevLabel: {
|
|
37
|
+
control: {
|
|
38
|
+
type: 'text',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
nextLabel: {
|
|
42
|
+
control: {
|
|
43
|
+
type: 'text',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
} satisfies Meta<typeof DataPagination>
|
|
48
|
+
|
|
49
|
+
export default meta
|
|
50
|
+
type Story = StoryObj<typeof meta>
|
|
51
|
+
|
|
52
|
+
export const Uncontrolled: Story = {}
|
|
53
|
+
|
|
54
|
+
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
|
+
},
|
|
72
|
+
args: {
|
|
73
|
+
page: 1,
|
|
74
|
+
},
|
|
75
|
+
}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
/* eslint-disable react/function-component-definition, react/prop-types */
|
|
2
|
+
import { Box, FormControl, MenuItem, Select, Typography } from '@mui/material'
|
|
3
|
+
import type { Meta, StoryFn } from '@storybook/react'
|
|
4
|
+
import { useMemo, useState } from 'react'
|
|
5
|
+
import type { ReactElement } from 'react'
|
|
6
|
+
|
|
7
|
+
import type IconProps from '@/assets/IconProps'
|
|
8
|
+
import ArrowRightIcon from '@/assets/icons/ArrowRightIcon'
|
|
9
|
+
import BarcodeIcon from '@/assets/icons/BarcodeIcon'
|
|
10
|
+
import CalendarBlankIcon from '@/assets/icons/CalendarBlankIcon'
|
|
11
|
+
import CaretDoubleLeftBoldIcon from '@/assets/icons/CaretDoubleLeftBoldIcon'
|
|
12
|
+
import CaretDoubleRightBoldIcon from '@/assets/icons/CaretDoubleRightBoldIcon'
|
|
13
|
+
import CaretDownBoldIcon from '@/assets/icons/CaretDownBoldIcon'
|
|
14
|
+
import CaretDownFill from '@/assets/icons/CaretDownFill'
|
|
15
|
+
import CaretDownIcon from '@/assets/icons/CaretDownIcon'
|
|
16
|
+
import CaretLeftBoldIcon from '@/assets/icons/CaretLeftBoldIcon'
|
|
17
|
+
import CaretLeftIcon from '@/assets/icons/CaretLeftIcon'
|
|
18
|
+
import CaretRightBoldIcon from '@/assets/icons/CaretRightBoldIcon'
|
|
19
|
+
import CheckBoldIcon from '@/assets/icons/CheckBoldIcon'
|
|
20
|
+
import CheckCircleFillIcon from '@/assets/icons/CheckCircleFillIcon'
|
|
21
|
+
import CheckUncheckedBoldIcon from '@/assets/icons/CheckUncheckedBoldIcon'
|
|
22
|
+
import CircleFilledIcon from '@/assets/icons/CircleFilledIcon'
|
|
23
|
+
import CloseIcon from '@/assets/icons/CloseIcon'
|
|
24
|
+
import CollapseChevronsIcon from '@/assets/icons/CollapseChevronsIcon'
|
|
25
|
+
import DotCircleFilledIcon from '@/assets/icons/DotCircleFilledIcon'
|
|
26
|
+
import ExpandChevronsIcon from '@/assets/icons/ExpandChevronsIcon'
|
|
27
|
+
import InfoFillIcon from '@/assets/icons/InfoFillIcon'
|
|
28
|
+
import MagnifyingGlassIcon from '@/assets/icons/MagnifyingGlassIcon'
|
|
29
|
+
import MapPinAreaIcon from '@/assets/icons/MapPinAreaIcon'
|
|
30
|
+
import MinusBoldIcon from '@/assets/icons/MinusBoldIcon'
|
|
31
|
+
import PlusBoldIcon from '@/assets/icons/PlusBoldIcon'
|
|
32
|
+
import QuestionFillIcon from '@/assets/icons/QuestionFillIcon'
|
|
33
|
+
import QuestionIcon from '@/assets/icons/QuestionIcon'
|
|
34
|
+
import ScalesIcon from '@/assets/icons/ScalesIcon'
|
|
35
|
+
import ScrollIcon from '@/assets/icons/ScrollIcon'
|
|
36
|
+
import SpinnerGapBoldIcon from '@/assets/icons/SpinnerGapBoldIcon'
|
|
37
|
+
import UploadSimpleIcon from '@/assets/icons/UploadSimpleIcon'
|
|
38
|
+
import WarningDiamondFillIcon from '@/assets/icons/WarningDiamondFillIcon'
|
|
39
|
+
import WarningFillIcon from '@/assets/icons/WarningFillIcon'
|
|
40
|
+
import XCircleFillIcon from '@/assets/icons/XCircleFillIcon'
|
|
41
|
+
import palette from '@/theme/palette'
|
|
42
|
+
|
|
43
|
+
// import resolvePaletteColorPath from '@/assets/resolvePaletteColorPath'
|
|
44
|
+
|
|
45
|
+
type StoryArgs = IconProps
|
|
46
|
+
|
|
47
|
+
type IconStoryItem = {
|
|
48
|
+
name: string
|
|
49
|
+
render: (args: StoryArgs) => ReactElement
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type PaletteColorOptions = Record<string, string | undefined>
|
|
53
|
+
type PaletteColorLabels = Record<string, string>
|
|
54
|
+
|
|
55
|
+
// const defaultStoryFillColor = resolvePaletteColorPath('primary.400')
|
|
56
|
+
// const defaultStoryStrokeColor = resolvePaletteColorPath('white')
|
|
57
|
+
|
|
58
|
+
const paletteColorOptions: PaletteColorOptions = {
|
|
59
|
+
default: undefined,
|
|
60
|
+
white: '#ffffff',
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const paletteColorLabels: PaletteColorLabels = {
|
|
64
|
+
default: 'default',
|
|
65
|
+
white: 'white (#ffffff)',
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
Object.entries(palette).forEach(([colorGroupName, colorGroup]) => {
|
|
69
|
+
Object.entries(colorGroup).forEach(([colorName, colorValue]) => {
|
|
70
|
+
const tokenName = `${colorGroupName}.${colorName}`
|
|
71
|
+
paletteColorOptions[tokenName] = colorValue
|
|
72
|
+
paletteColorLabels[tokenName] = `${tokenName} (${colorValue})`
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
const paletteTokenItems = Object.entries(paletteColorOptions).map(
|
|
77
|
+
([tokenName, colorValue]) => ({
|
|
78
|
+
colorValue,
|
|
79
|
+
tokenName,
|
|
80
|
+
}),
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
const resolveTokenNameByColor = (color: string | undefined): string => {
|
|
84
|
+
const resolvedTokenName = Object.entries(paletteColorOptions).find(
|
|
85
|
+
([, colorValue]) => colorValue === color,
|
|
86
|
+
)?.[0]
|
|
87
|
+
|
|
88
|
+
return resolvedTokenName ?? 'default'
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const renderIcon =
|
|
92
|
+
(IconComponent: (props: IconProps) => ReactElement) =>
|
|
93
|
+
({ className, fillColor, size }: StoryArgs): ReactElement => (
|
|
94
|
+
<IconComponent className={className} fillColor={fillColor} size={size} />
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
const iconItems: IconStoryItem[] = [
|
|
98
|
+
{
|
|
99
|
+
name: 'ArrowRightIcon',
|
|
100
|
+
render: renderIcon(ArrowRightIcon),
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'BarcodeIcon',
|
|
104
|
+
render: renderIcon(BarcodeIcon),
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'CalendarBlankIcon',
|
|
108
|
+
render: renderIcon(CalendarBlankIcon),
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'CaretDoubleLeftBoldIcon',
|
|
112
|
+
render: renderIcon(CaretDoubleLeftBoldIcon),
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'CaretDoubleRightBoldIcon',
|
|
116
|
+
render: renderIcon(CaretDoubleRightBoldIcon),
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'CaretDownBoldIcon',
|
|
120
|
+
render: renderIcon(CaretDownBoldIcon),
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'CaretDownFill',
|
|
124
|
+
render: renderIcon(CaretDownFill),
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'CaretDownIcon',
|
|
128
|
+
render: renderIcon(CaretDownIcon),
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'CaretLeftBoldIcon',
|
|
132
|
+
render: renderIcon(CaretLeftBoldIcon),
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'CaretLeftIcon',
|
|
136
|
+
render: renderIcon(CaretLeftIcon),
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'CaretRightBoldIcon',
|
|
140
|
+
render: renderIcon(CaretRightBoldIcon),
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'CheckBoldIcon',
|
|
144
|
+
render: renderIcon(CheckBoldIcon),
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'CheckCircleFillIcon',
|
|
148
|
+
render: renderIcon(CheckCircleFillIcon),
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: 'CheckUncheckedBoldIcon',
|
|
152
|
+
render: renderIcon(CheckUncheckedBoldIcon),
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'CircleFilledIcon',
|
|
156
|
+
render: renderIcon(CircleFilledIcon),
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'CloseIcon',
|
|
160
|
+
render: renderIcon(CloseIcon),
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'CollapseChevronsIcon',
|
|
164
|
+
render: renderIcon(CollapseChevronsIcon),
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: 'DotCircleFilledIcon',
|
|
168
|
+
render: renderIcon(DotCircleFilledIcon),
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'ExpandChevronsIcon',
|
|
172
|
+
render: renderIcon(ExpandChevronsIcon),
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'InfoFillIcon',
|
|
176
|
+
render: renderIcon(InfoFillIcon),
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: 'MagnifyingGlassIcon',
|
|
180
|
+
render: renderIcon(MagnifyingGlassIcon),
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: 'MapPinAreaIcon',
|
|
184
|
+
render: renderIcon(MapPinAreaIcon),
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'MinusBoldIcon',
|
|
188
|
+
render: renderIcon(MinusBoldIcon),
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'PlusBoldIcon',
|
|
192
|
+
render: renderIcon(PlusBoldIcon),
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: 'QuestionFillIcon',
|
|
196
|
+
render: renderIcon(QuestionFillIcon),
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: 'QuestionIcon',
|
|
200
|
+
render: renderIcon(QuestionIcon),
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'ScalesIcon',
|
|
204
|
+
render: renderIcon(ScalesIcon),
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'ScrollIcon',
|
|
208
|
+
render: renderIcon(ScrollIcon),
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: 'SpinnerGapBoldIcon',
|
|
212
|
+
render: renderIcon(SpinnerGapBoldIcon),
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'UploadSimpleIcon',
|
|
216
|
+
render: renderIcon(UploadSimpleIcon),
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: 'WarningDiamondFillIcon',
|
|
220
|
+
render: renderIcon(WarningDiamondFillIcon),
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'WarningFillIcon',
|
|
224
|
+
render: renderIcon(WarningFillIcon),
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: 'XCircleFillIcon',
|
|
228
|
+
render: renderIcon(XCircleFillIcon),
|
|
229
|
+
},
|
|
230
|
+
]
|
|
231
|
+
|
|
232
|
+
const meta: Meta<StoryArgs> = {
|
|
233
|
+
title: 'components/common/Icons',
|
|
234
|
+
tags: ['autodocs'],
|
|
235
|
+
args: {
|
|
236
|
+
className: '',
|
|
237
|
+
fillColor: undefined,
|
|
238
|
+
size: 24,
|
|
239
|
+
},
|
|
240
|
+
argTypes: {
|
|
241
|
+
className: { control: 'text' },
|
|
242
|
+
size: {
|
|
243
|
+
control: { min: 8, max: 128, step: 1, type: 'number' },
|
|
244
|
+
table: {
|
|
245
|
+
defaultValue: { summary: '24' },
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export default meta
|
|
252
|
+
|
|
253
|
+
const GalleryComponent = ({ className, size, fillColor }: StoryArgs) => {
|
|
254
|
+
const [selectedFillToken, setSelectedFillToken] = useState(
|
|
255
|
+
resolveTokenNameByColor(fillColor),
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
const selectedFillColor = useMemo(
|
|
259
|
+
() => paletteColorOptions[selectedFillToken],
|
|
260
|
+
[selectedFillToken],
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
return (
|
|
264
|
+
<Box>
|
|
265
|
+
<Box
|
|
266
|
+
sx={{
|
|
267
|
+
display: 'grid',
|
|
268
|
+
gap: 2,
|
|
269
|
+
gridTemplateColumns: 'repeat(auto-fill, minmax(180px, 1fr))',
|
|
270
|
+
mb: 2,
|
|
271
|
+
}}
|
|
272
|
+
>
|
|
273
|
+
{iconItems.map((icon) => (
|
|
274
|
+
<Box
|
|
275
|
+
key={icon.name}
|
|
276
|
+
sx={{
|
|
277
|
+
alignItems: 'center',
|
|
278
|
+
border: '1px solid',
|
|
279
|
+
borderColor: 'divider',
|
|
280
|
+
borderRadius: 1,
|
|
281
|
+
color: selectedFillColor,
|
|
282
|
+
display: 'flex',
|
|
283
|
+
flexDirection: 'column',
|
|
284
|
+
gap: 1,
|
|
285
|
+
minHeight: 96,
|
|
286
|
+
p: 1.5,
|
|
287
|
+
}}
|
|
288
|
+
>
|
|
289
|
+
{icon.render({
|
|
290
|
+
className,
|
|
291
|
+
fillColor: selectedFillColor,
|
|
292
|
+
size,
|
|
293
|
+
})}
|
|
294
|
+
<Typography
|
|
295
|
+
align='center'
|
|
296
|
+
sx={{
|
|
297
|
+
color: 'text.secondary',
|
|
298
|
+
fontFamily: 'monospace',
|
|
299
|
+
fontSize: '0.75rem',
|
|
300
|
+
}}
|
|
301
|
+
>
|
|
302
|
+
{icon.name}
|
|
303
|
+
</Typography>
|
|
304
|
+
</Box>
|
|
305
|
+
))}
|
|
306
|
+
</Box>
|
|
307
|
+
|
|
308
|
+
<Box
|
|
309
|
+
sx={{
|
|
310
|
+
display: 'grid',
|
|
311
|
+
gap: 2,
|
|
312
|
+
gridTemplateColumns: 'repeat(auto-fill, minmax(260px, 1fr))',
|
|
313
|
+
mt: 3,
|
|
314
|
+
}}
|
|
315
|
+
>
|
|
316
|
+
<FormControl size='small'>
|
|
317
|
+
<Typography sx={{ color: 'text.secondary', fontSize: '0.75rem', mb: 0.5 }}>
|
|
318
|
+
fillColor
|
|
319
|
+
</Typography>
|
|
320
|
+
<Select
|
|
321
|
+
onChange={(event) => {
|
|
322
|
+
setSelectedFillToken(event.target.value)
|
|
323
|
+
}}
|
|
324
|
+
value={selectedFillToken}
|
|
325
|
+
>
|
|
326
|
+
{paletteTokenItems.map(({ colorValue, tokenName }) => (
|
|
327
|
+
<MenuItem key={tokenName} value={tokenName}>
|
|
328
|
+
<Box sx={{ alignItems: 'center', display: 'flex', gap: 1 }}>
|
|
329
|
+
<Box
|
|
330
|
+
sx={{
|
|
331
|
+
backgroundColor: colorValue ?? 'transparent',
|
|
332
|
+
border: '1px solid',
|
|
333
|
+
borderColor: 'divider',
|
|
334
|
+
borderRadius: '4px',
|
|
335
|
+
height: 12,
|
|
336
|
+
width: 12,
|
|
337
|
+
}}
|
|
338
|
+
/>
|
|
339
|
+
<Typography sx={{ fontFamily: 'monospace', fontSize: '0.75rem' }}>
|
|
340
|
+
{paletteColorLabels[tokenName]}
|
|
341
|
+
</Typography>
|
|
342
|
+
</Box>
|
|
343
|
+
</MenuItem>
|
|
344
|
+
))}
|
|
345
|
+
</Select>
|
|
346
|
+
</FormControl>
|
|
347
|
+
</Box>
|
|
348
|
+
</Box>
|
|
349
|
+
)
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export const Gallery: StoryFn<StoryArgs> = (args) => <GalleryComponent {...args} />
|
|
@@ -15,6 +15,7 @@ const colorOptions = [
|
|
|
15
15
|
'primary',
|
|
16
16
|
'secondary',
|
|
17
17
|
'grey',
|
|
18
|
+
'dark',
|
|
18
19
|
'error',
|
|
19
20
|
'inherit',
|
|
20
21
|
'success',
|
|
@@ -59,6 +60,14 @@ const meta = {
|
|
|
59
60
|
defaultValue: {},
|
|
60
61
|
},
|
|
61
62
|
},
|
|
63
|
+
iconOnly: {
|
|
64
|
+
control: {
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
},
|
|
67
|
+
table: {
|
|
68
|
+
defaultValue: {},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
62
71
|
},
|
|
63
72
|
tags: ['autodocs'],
|
|
64
73
|
args: {
|
|
@@ -117,6 +126,16 @@ export const PrimaryContainedWithSuffixIcon: Story = {
|
|
|
117
126
|
},
|
|
118
127
|
}
|
|
119
128
|
|
|
129
|
+
export const PrimaryContainedIconOnly: Story = {
|
|
130
|
+
args: {
|
|
131
|
+
'aria-label': 'Add',
|
|
132
|
+
children: <PlusBoldIcon />,
|
|
133
|
+
color: 'primary',
|
|
134
|
+
iconOnly: true,
|
|
135
|
+
variant: 'contained',
|
|
136
|
+
},
|
|
137
|
+
}
|
|
138
|
+
|
|
120
139
|
export const PrimaryOutlined: Story = {
|
|
121
140
|
parameters: disableColorContrast,
|
|
122
141
|
args: {
|
|
@@ -143,6 +162,17 @@ export const PrimaryOutlinedWithSuffixIcon: Story = {
|
|
|
143
162
|
},
|
|
144
163
|
}
|
|
145
164
|
|
|
165
|
+
export const PrimaryOutlinedIconOnly: Story = {
|
|
166
|
+
parameters: disableColorContrast,
|
|
167
|
+
args: {
|
|
168
|
+
'aria-label': 'Add',
|
|
169
|
+
children: <PlusBoldIcon />,
|
|
170
|
+
color: 'primary',
|
|
171
|
+
iconOnly: true,
|
|
172
|
+
variant: 'outlined',
|
|
173
|
+
},
|
|
174
|
+
}
|
|
175
|
+
|
|
146
176
|
export const SecondaryContained: Story = {
|
|
147
177
|
args: {
|
|
148
178
|
color: 'secondary',
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { Button, Container, Typography } from '@mui/material'
|
|
2
|
+
import type { Meta, StoryFn } from '@storybook/react'
|
|
3
|
+
import { useState } from 'react'
|
|
4
|
+
|
|
5
|
+
import RcSesCardFormContainer from '@/components/layout/ServiceFormContainer/CardFormContainer'
|
|
6
|
+
import { StepItem } from '@/components/layout/ServiceWizardStepper/StepperTypes'
|
|
7
|
+
import FieldView from '@/components/storybook/FieldView'
|
|
8
|
+
import Fields from '@/components/storybook/Fields'
|
|
9
|
+
|
|
10
|
+
const shortSteps: StepItem[] = [
|
|
11
|
+
{ id: '1', state: 'completed', title: 'Paslauga' },
|
|
12
|
+
{ id: '2', state: 'active', title: 'Duomenys' },
|
|
13
|
+
{ id: '3', state: 'pending', title: 'Patvirtinimas' },
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
const longSteps: StepItem[] = [
|
|
17
|
+
{ id: '1', state: 'completed', title: 'Paslauga' },
|
|
18
|
+
{ id: '2', state: 'completed', title: 'Duomenys' },
|
|
19
|
+
{ id: '3', state: 'active', title: 'Dokumentai' },
|
|
20
|
+
{ id: '4', state: 'pending', title: 'Mokėjimas' },
|
|
21
|
+
{ id: '5', state: 'pending', title: 'Patvirtinimas' },
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
const meta: Meta<typeof RcSesCardFormContainer> = {
|
|
25
|
+
title: 'components/common/form/CardFormContainer',
|
|
26
|
+
component: RcSesCardFormContainer,
|
|
27
|
+
tags: ['autodocs'],
|
|
28
|
+
argTypes: {
|
|
29
|
+
steps: { table: { disable: true } },
|
|
30
|
+
onStepClick: { table: { disable: true } },
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default meta
|
|
35
|
+
|
|
36
|
+
const DemoContent = () => (
|
|
37
|
+
<>
|
|
38
|
+
<Typography variant='h6'>Pavadinimas</Typography>
|
|
39
|
+
<Typography variant='body2' sx={{ mb: 2 }}>
|
|
40
|
+
Papildomas aprašymo tekstas
|
|
41
|
+
</Typography>
|
|
42
|
+
|
|
43
|
+
<Container
|
|
44
|
+
sx={{
|
|
45
|
+
height: 140,
|
|
46
|
+
background: '#EDEDED',
|
|
47
|
+
borderRadius: '8px',
|
|
48
|
+
display: 'flex',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
justifyContent: 'center',
|
|
51
|
+
mb: 2,
|
|
52
|
+
}}
|
|
53
|
+
>
|
|
54
|
+
<Typography variant='body2'>Vidinis paslaugų front-end sprendimas</Typography>
|
|
55
|
+
</Container>
|
|
56
|
+
</>
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
const createTemplate =
|
|
60
|
+
(
|
|
61
|
+
initialSteps: StepItem[],
|
|
62
|
+
forcedLayout?: 'row' | 'column',
|
|
63
|
+
): StoryFn<typeof RcSesCardFormContainer> =>
|
|
64
|
+
(args) => {
|
|
65
|
+
const [currentSteps, setCurrentSteps] = useState(initialSteps)
|
|
66
|
+
const activeStep = currentSteps.findIndex((s) => s.state === 'active')
|
|
67
|
+
|
|
68
|
+
const handleBack = () => {
|
|
69
|
+
if (activeStep <= 0) return
|
|
70
|
+
|
|
71
|
+
const updated = currentSteps.map((step, index) => {
|
|
72
|
+
if (index < activeStep - 1) return { ...step, state: 'completed' as const }
|
|
73
|
+
if (index === activeStep - 1) return { ...step, state: 'active' as const }
|
|
74
|
+
return { ...step, state: 'pending' as const }
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
setCurrentSteps(updated)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const handleNext = () => {
|
|
81
|
+
if (activeStep === -1 || activeStep === currentSteps.length - 1) return
|
|
82
|
+
|
|
83
|
+
const updated = currentSteps.map((step, index) => {
|
|
84
|
+
if (index < activeStep + 1) return { ...step, state: 'completed' as const }
|
|
85
|
+
if (index === activeStep + 1) return { ...step, state: 'active' as const }
|
|
86
|
+
return { ...step, state: 'pending' as const }
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
setCurrentSteps(updated)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return (
|
|
93
|
+
<Fields>
|
|
94
|
+
<FieldView>
|
|
95
|
+
<RcSesCardFormContainer
|
|
96
|
+
{...args}
|
|
97
|
+
layout={forcedLayout}
|
|
98
|
+
steps={currentSteps}
|
|
99
|
+
onStepClick={setCurrentSteps}
|
|
100
|
+
leadingActions={
|
|
101
|
+
<Button onClick={handleBack} disabled={activeStep <= 0}>
|
|
102
|
+
Back
|
|
103
|
+
</Button>
|
|
104
|
+
}
|
|
105
|
+
trailingActions={
|
|
106
|
+
<>
|
|
107
|
+
<Button variant='outlined'>Button</Button>
|
|
108
|
+
<Button
|
|
109
|
+
variant='contained'
|
|
110
|
+
onClick={handleNext}
|
|
111
|
+
disabled={activeStep === currentSteps.length - 1}
|
|
112
|
+
>
|
|
113
|
+
Next
|
|
114
|
+
</Button>
|
|
115
|
+
</>
|
|
116
|
+
}
|
|
117
|
+
>
|
|
118
|
+
<DemoContent />
|
|
119
|
+
</RcSesCardFormContainer>
|
|
120
|
+
</FieldView>
|
|
121
|
+
</Fields>
|
|
122
|
+
)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export const HorizontalDemo = createTemplate(shortSteps, 'column')
|
|
126
|
+
HorizontalDemo.args = {
|
|
127
|
+
title: 'Antraštės tekstas',
|
|
128
|
+
description: 'Papildomas aprašymo tekstas',
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export const VerticalDemo = createTemplate(longSteps, 'row')
|
|
132
|
+
VerticalDemo.args = {
|
|
133
|
+
title: 'Antraštės tekstas',
|
|
134
|
+
description: 'Papildomas aprašymo tekstas',
|
|
135
|
+
}
|
|
@@ -5,7 +5,7 @@ import { Meta, StoryContext, StoryFn } from '@storybook/react'
|
|
|
5
5
|
|
|
6
6
|
import RcSesAccordion from '@/components/common/Accordion'
|
|
7
7
|
import useAccordionController from '@/components/common/Accordion/hooks/useAccordionController'
|
|
8
|
-
import RcSesServiceFormContainer from '@/components/layout/ServiceFormContainer'
|
|
8
|
+
import RcSesServiceFormContainer from '@/components/layout/ServiceFormContainer/AccordionFormContainer'
|
|
9
9
|
import FieldView from '@/components/storybook/FieldView'
|
|
10
10
|
import Fields from '@/components/storybook/Fields'
|
|
11
11
|
import BasicInformationForm from '@/examples/MultipleStepForm/components/BasicInformationForm'
|
|
@@ -212,40 +212,40 @@ const MuiAlert: Components['MuiAlert'] = {
|
|
|
212
212
|
backgroundColor: palette.grey['50'],
|
|
213
213
|
borderColor: palette.grey['200'],
|
|
214
214
|
|
|
215
|
-
'.MuiAlert-icon
|
|
216
|
-
|
|
215
|
+
'.MuiAlert-icon': {
|
|
216
|
+
color: palette.grey['600'],
|
|
217
217
|
},
|
|
218
218
|
},
|
|
219
219
|
outlinedError: {
|
|
220
220
|
backgroundColor: palette.error['50'],
|
|
221
221
|
borderColor: palette.error['200'],
|
|
222
222
|
|
|
223
|
-
'.MuiAlert-icon
|
|
224
|
-
|
|
223
|
+
'.MuiAlert-icon': {
|
|
224
|
+
color: palette.error['600'],
|
|
225
225
|
},
|
|
226
226
|
},
|
|
227
227
|
outlinedInfo: {
|
|
228
228
|
backgroundColor: palette.primary['50'],
|
|
229
229
|
borderColor: palette.primary['300'],
|
|
230
230
|
|
|
231
|
-
'.MuiAlert-icon
|
|
232
|
-
|
|
231
|
+
'.MuiAlert-icon': {
|
|
232
|
+
color: palette.primary['500'],
|
|
233
233
|
},
|
|
234
234
|
},
|
|
235
235
|
outlinedSuccess: {
|
|
236
236
|
backgroundColor: palette.secondary['100'],
|
|
237
237
|
borderColor: palette.secondary['300'],
|
|
238
238
|
|
|
239
|
-
'.MuiAlert-icon
|
|
240
|
-
|
|
239
|
+
'.MuiAlert-icon': {
|
|
240
|
+
color: palette.secondary['600'],
|
|
241
241
|
},
|
|
242
242
|
},
|
|
243
243
|
outlinedWarning: {
|
|
244
244
|
backgroundColor: palette.warning['100'],
|
|
245
245
|
borderColor: palette.warning['300'],
|
|
246
246
|
|
|
247
|
-
'.MuiAlert-icon
|
|
248
|
-
|
|
247
|
+
'.MuiAlert-icon': {
|
|
248
|
+
color: palette.warning['600'],
|
|
249
249
|
},
|
|
250
250
|
},
|
|
251
251
|
},
|