@registrucentras/rc-ses-react-components 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/createIcon.d.ts +18 -0
- package/dist/assets/icons/phosphorIcons.d.ts +221 -0
- package/dist/components/common/Badge/index.d.ts +1 -0
- package/dist/components/overlays/Drawer/Drawer.types.d.ts +30 -0
- package/dist/components/overlays/Drawer/index.d.ts +9 -0
- package/dist/library/icons.d.ts +2 -48
- package/dist/library/index.d.ts +2 -1
- package/dist/library/types.d.ts +2 -0
- package/dist/registrucentras-rc-ses-react-components.cjs +1 -1
- package/dist/registrucentras-rc-ses-react-components.js +2579 -2762
- package/package.json +5 -5
- package/src/assets/icons/createIcon.test.tsx +49 -0
- package/src/assets/icons/createIcon.tsx +49 -0
- package/src/assets/icons/phosphorIcons.ts +162 -0
- package/src/components/common/Accordion/index.tsx +1 -1
- package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.tsx +1 -3
- package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.tsx +6 -4
- package/src/components/common/AdvancedList/components/AdvancedListItem/index.test.tsx +5 -3
- package/src/components/common/AdvancedList/components/AdvancedListItemShell/index.test.tsx +23 -0
- package/src/components/common/AdvancedList/components/AdvancedListItemShell/index.tsx +6 -0
- package/src/components/common/Alert/index.tsx +1 -1
- package/src/components/common/Badge/index.test.tsx +16 -0
- package/src/components/common/Badge/index.tsx +35 -12
- package/src/components/common/Button/ButtonWithPopover.tsx +1 -2
- package/src/components/common/DataPagination/index.tsx +1 -2
- package/src/components/common/IconWithSquareBackground/index.test.tsx +1 -1
- package/src/components/common/ServiceLinks/ServiceLinkItem/index.tsx +1 -1
- package/src/components/common/Snackbar/index.tsx +1 -1
- package/src/components/common/StepCard/StepCardFooter/index.tsx +5 -3
- package/src/components/common/Tooltip/index.tsx +1 -1
- package/src/components/form/inputs/CheckboxFormControl.tsx +1 -2
- package/src/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.tsx +6 -4
- package/src/components/form/inputs/Datepicker/index.tsx +1 -2
- package/src/components/form/inputs/FileDropzone.tsx +1 -2
- package/src/components/form/inputs/FileUpload.tsx +1 -1
- package/src/components/form/inputs/NumberStepper.tsx +1 -2
- package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +1 -1
- package/src/components/form/inputs/PhoneInputFormControl/index.tsx +1 -1
- package/src/components/form/inputs/SearchInput/index.tsx +1 -2
- package/src/components/form/inputs/SearchableField.tsx +1 -2
- package/src/components/form/inputs/Select/components/OptionCheckbox.tsx +1 -1
- package/src/components/form/inputs/Select/index.tsx +1 -2
- package/src/components/form/inputs/SimpleCheckbox.tsx +1 -2
- package/src/components/layout/ServiceFormActions.tsx +1 -2
- package/src/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.tsx +1 -2
- package/src/components/layout/ServiceWizardStepper/components/CustomStepIcon.tsx +1 -2
- package/src/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.tsx +1 -2
- package/src/components/overlays/BottomSheet/index.tsx +1 -1
- package/src/components/overlays/Drawer/Drawer.types.ts +32 -0
- package/src/components/overlays/Drawer/index.test.tsx +174 -0
- package/src/components/overlays/Drawer/index.tsx +192 -0
- package/src/components/overlays/Modal/index.tsx +6 -4
- package/src/i18n/namespaces/common/en.json +3 -0
- package/src/i18n/namespaces/common/lt.json +3 -0
- package/src/library/icons.ts +3 -100
- package/src/library/index.ts +2 -0
- package/src/library/types.ts +2 -0
- package/src/stories/atoms/Badge.stories.tsx +40 -0
- package/src/stories/atoms/Button.stories.tsx +1 -1
- package/src/stories/atoms/IconWithCircularBackground.stories.tsx +1 -1
- package/src/stories/atoms/IconWithSquareBackground.stories.tsx +1 -1
- package/src/stories/atoms/Icons.stories.tsx +134 -225
- package/src/stories/molecules/Card.stories.tsx +5 -3
- package/src/stories/molecules/CardShell.stories.tsx +1 -1
- package/src/stories/molecules/ImageCard.stories.tsx +1 -1
- package/src/stories/molecules/ListWithIcons.stories.tsx +1 -2
- package/src/stories/molecules/TitleBlock.stories.tsx +6 -3
- package/src/stories/organisms/AdvancedList.stories.tsx +6 -4
- package/src/stories/organisms/AdvancedListItem.stories.tsx +1 -3
- package/src/stories/organisms/AdvancedListItemShell.stories.tsx +93 -4
- package/src/stories/organisms/Drawer.stories.tsx +90 -0
- package/src/stories/organisms/SelectableCardList.stories.tsx +1 -3
- package/src/stories/organisms/ServiceLinks.stories.tsx +1 -1
- package/src/theme/light/MuiAccordionSummary.tsx +1 -1
- package/src/theme/light/MuiAlert.tsx +7 -5
- package/dist/assets/icons/ArrowLeftIcon.d.ts +0 -3
- package/dist/assets/icons/ArrowRightIcon.d.ts +0 -3
- package/dist/assets/icons/ArrowsClockwiseIcon.d.ts +0 -3
- package/dist/assets/icons/BarcodeIcon.d.ts +0 -3
- package/dist/assets/icons/CalendarBlankIcon.d.ts +0 -3
- package/dist/assets/icons/CaretDoubleLeftBoldIcon.d.ts +0 -3
- package/dist/assets/icons/CaretDoubleRightBoldIcon.d.ts +0 -3
- package/dist/assets/icons/CaretDownBoldIcon.d.ts +0 -3
- package/dist/assets/icons/CaretDownFill.d.ts +0 -3
- package/dist/assets/icons/CaretDownIcon.d.ts +0 -3
- package/dist/assets/icons/CaretLeftBoldIcon.d.ts +0 -3
- package/dist/assets/icons/CaretLeftIcon.d.ts +0 -3
- package/dist/assets/icons/CaretRightBoldIcon.d.ts +0 -3
- package/dist/assets/icons/CaretUpBoldIcon.d.ts +0 -3
- package/dist/assets/icons/CaretUpIcon.d.ts +0 -3
- package/dist/assets/icons/CheckBoldIcon.d.ts +0 -3
- package/dist/assets/icons/CheckCircleFillIcon.d.ts +0 -3
- package/dist/assets/icons/CheckIcon.d.ts +0 -3
- package/dist/assets/icons/CheckUncheckedBoldIcon.d.ts +0 -3
- package/dist/assets/icons/CircleFilledIcon.d.ts +0 -3
- package/dist/assets/icons/CloseIcon.d.ts +0 -3
- package/dist/assets/icons/CollapseChevronsIcon.d.ts +0 -3
- package/dist/assets/icons/CopyIcon.d.ts +0 -3
- package/dist/assets/icons/ExpandChevronsIcon.d.ts +0 -3
- package/dist/assets/icons/InfoFillIcon.d.ts +0 -3
- package/dist/assets/icons/ListIcon.d.ts +0 -3
- package/dist/assets/icons/MagnifyingGlassIcon.d.ts +0 -3
- package/dist/assets/icons/MapPinAreaIcon.d.ts +0 -3
- package/dist/assets/icons/MinusBoldIcon.d.ts +0 -3
- package/dist/assets/icons/MinusIcon.d.ts +0 -3
- package/dist/assets/icons/NotePencilIcon.d.ts +0 -3
- package/dist/assets/icons/PencilSimpleLineIcon.d.ts +0 -3
- package/dist/assets/icons/PlusBoldIcon.d.ts +0 -3
- package/dist/assets/icons/PlusIcon.d.ts +0 -3
- package/dist/assets/icons/QuestionFillIcon.d.ts +0 -3
- package/dist/assets/icons/QuestionIcon.d.ts +0 -3
- package/dist/assets/icons/ScalesIcon.d.ts +0 -3
- package/dist/assets/icons/ScrollIcon.d.ts +0 -3
- package/dist/assets/icons/ShoppingCartIcon.d.ts +0 -3
- package/dist/assets/icons/SpinnerGapBoldIcon.d.ts +0 -3
- package/dist/assets/icons/TrashIcon.d.ts +0 -3
- package/dist/assets/icons/UploadSimpleIcon.d.ts +0 -3
- package/dist/assets/icons/UserIcon.d.ts +0 -3
- package/dist/assets/icons/WarningCircleIcon.d.ts +0 -3
- package/dist/assets/icons/WarningDiamondFillIcon.d.ts +0 -3
- package/dist/assets/icons/WarningFillIcon.d.ts +0 -3
- package/dist/assets/icons/XCircleFillIcon.d.ts +0 -3
- package/src/assets/icons/ArrowLeftIcon.tsx +0 -16
- package/src/assets/icons/ArrowRightIcon.tsx +0 -17
- package/src/assets/icons/ArrowsClockwiseIcon.tsx +0 -16
- package/src/assets/icons/BarcodeIcon.tsx +0 -9
- package/src/assets/icons/CalendarBlankIcon.tsx +0 -9
- package/src/assets/icons/CaretDoubleLeftBoldIcon.tsx +0 -22
- package/src/assets/icons/CaretDoubleRightBoldIcon.tsx +0 -22
- package/src/assets/icons/CaretDownBoldIcon.tsx +0 -17
- package/src/assets/icons/CaretDownFill.tsx +0 -17
- package/src/assets/icons/CaretDownIcon.tsx +0 -9
- package/src/assets/icons/CaretLeftBoldIcon.tsx +0 -17
- package/src/assets/icons/CaretLeftIcon.tsx +0 -9
- package/src/assets/icons/CaretRightBoldIcon.tsx +0 -17
- package/src/assets/icons/CaretUpBoldIcon.tsx +0 -17
- package/src/assets/icons/CaretUpIcon.tsx +0 -9
- package/src/assets/icons/CheckBoldIcon.tsx +0 -17
- package/src/assets/icons/CheckCircleFillIcon.tsx +0 -23
- package/src/assets/icons/CheckIcon.tsx +0 -23
- package/src/assets/icons/CheckUncheckedBoldIcon.tsx +0 -9
- package/src/assets/icons/CircleFilledIcon.tsx +0 -11
- package/src/assets/icons/CloseIcon.tsx +0 -9
- package/src/assets/icons/CollapseChevronsIcon.tsx +0 -17
- package/src/assets/icons/CopyIcon.tsx +0 -23
- package/src/assets/icons/ExpandChevronsIcon.tsx +0 -17
- package/src/assets/icons/InfoFillIcon.tsx +0 -17
- package/src/assets/icons/ListIcon.tsx +0 -17
- package/src/assets/icons/MagnifyingGlassIcon.tsx +0 -9
- package/src/assets/icons/MapPinAreaIcon.tsx +0 -9
- package/src/assets/icons/MinusBoldIcon.tsx +0 -11
- package/src/assets/icons/MinusIcon.tsx +0 -9
- package/src/assets/icons/NotePencilIcon.tsx +0 -9
- package/src/assets/icons/PencilSimpleLineIcon.tsx +0 -23
- package/src/assets/icons/PlusBoldIcon.tsx +0 -11
- package/src/assets/icons/PlusIcon.tsx +0 -9
- package/src/assets/icons/QuestionFillIcon.tsx +0 -23
- package/src/assets/icons/QuestionIcon.tsx +0 -9
- package/src/assets/icons/ScalesIcon.tsx +0 -9
- package/src/assets/icons/ScrollIcon.tsx +0 -9
- package/src/assets/icons/ShoppingCartIcon.tsx +0 -16
- package/src/assets/icons/SpinnerGapBoldIcon.tsx +0 -17
- package/src/assets/icons/TrashIcon.tsx +0 -23
- package/src/assets/icons/UploadSimpleIcon.tsx +0 -9
- package/src/assets/icons/UserIcon.tsx +0 -17
- package/src/assets/icons/WarningCircleIcon.tsx +0 -22
- package/src/assets/icons/WarningDiamondFillIcon.tsx +0 -17
- package/src/assets/icons/WarningFillIcon.tsx +0 -22
- package/src/assets/icons/XCircleFillIcon.tsx +0 -17
package/src/library/icons.ts
CHANGED
|
@@ -1,105 +1,8 @@
|
|
|
1
1
|
import RcSesLogo from '@/assets/Logo'
|
|
2
|
-
import ArrowLeftIcon from '@/assets/icons/ArrowLeftIcon'
|
|
3
|
-
import ArrowRightIcon from '@/assets/icons/ArrowRightIcon'
|
|
4
|
-
import ArrowsClockwiseIcon from '@/assets/icons/ArrowsClockwiseIcon'
|
|
5
|
-
import BarcodeIcon from '@/assets/icons/BarcodeIcon'
|
|
6
|
-
import CalendarBlankIcon from '@/assets/icons/CalendarBlankIcon'
|
|
7
|
-
import CaretDoubleLeftBoldIcon from '@/assets/icons/CaretDoubleLeftBoldIcon'
|
|
8
|
-
import CaretDoubleRightBoldIcon from '@/assets/icons/CaretDoubleRightBoldIcon'
|
|
9
|
-
import CaretDownBoldIcon from '@/assets/icons/CaretDownBoldIcon'
|
|
10
|
-
import CaretDownFill from '@/assets/icons/CaretDownFill'
|
|
11
|
-
import CaretDownIcon from '@/assets/icons/CaretDownIcon'
|
|
12
|
-
import CaretLeftBoldIcon from '@/assets/icons/CaretLeftBoldIcon'
|
|
13
|
-
import CaretLeftIcon from '@/assets/icons/CaretLeftIcon'
|
|
14
|
-
import CaretRightBoldIcon from '@/assets/icons/CaretRightBoldIcon'
|
|
15
|
-
import CaretUpBoldIcon from '@/assets/icons/CaretUpBoldIcon'
|
|
16
|
-
import CaretUpIcon from '@/assets/icons/CaretUpIcon'
|
|
17
|
-
import CheckBoldIcon from '@/assets/icons/CheckBoldIcon'
|
|
18
|
-
import CheckCircleFillIcon from '@/assets/icons/CheckCircleFillIcon'
|
|
19
|
-
import CheckIcon from '@/assets/icons/CheckIcon'
|
|
20
|
-
import CheckUncheckedBoldIcon from '@/assets/icons/CheckUncheckedBoldIcon'
|
|
21
|
-
import CircleFilledIcon from '@/assets/icons/CircleFilledIcon'
|
|
22
|
-
import CloseIcon from '@/assets/icons/CloseIcon'
|
|
23
|
-
import CollapseChevronsIcon from '@/assets/icons/CollapseChevronsIcon'
|
|
24
|
-
import CopyIcon from '@/assets/icons/CopyIcon'
|
|
25
2
|
import DotCircleFilledIcon from '@/assets/icons/DotCircleFilledIcon'
|
|
26
|
-
import ExpandChevronsIcon from '@/assets/icons/ExpandChevronsIcon'
|
|
27
|
-
import InfoFillIcon from '@/assets/icons/InfoFillIcon'
|
|
28
|
-
import ListIcon from '@/assets/icons/ListIcon'
|
|
29
|
-
import MagnifyingGlassIcon from '@/assets/icons/MagnifyingGlassIcon'
|
|
30
|
-
import MapPinAreaIcon from '@/assets/icons/MapPinAreaIcon'
|
|
31
|
-
import MinusBoldIcon from '@/assets/icons/MinusBoldIcon'
|
|
32
|
-
import MinusIcon from '@/assets/icons/MinusIcon'
|
|
33
|
-
import NotePencilIcon from '@/assets/icons/NotePencilIcon'
|
|
34
|
-
import PencilSimpleLineIcon from '@/assets/icons/PencilSimpleLineIcon'
|
|
35
|
-
import PlusBoldIcon from '@/assets/icons/PlusBoldIcon'
|
|
36
|
-
import PlusIcon from '@/assets/icons/PlusIcon'
|
|
37
|
-
import QuestionFillIcon from '@/assets/icons/QuestionFillIcon'
|
|
38
|
-
import QuestionIcon from '@/assets/icons/QuestionIcon'
|
|
39
|
-
import ScalesIcon from '@/assets/icons/ScalesIcon'
|
|
40
|
-
import ScrollIcon from '@/assets/icons/ScrollIcon'
|
|
41
3
|
import SearchHelpIcon from '@/assets/icons/SearchHelpIcon'
|
|
42
4
|
import SearchXIcon from '@/assets/icons/SearchXIcon'
|
|
43
|
-
import ShoppingCartIcon from '@/assets/icons/ShoppingCartIcon'
|
|
44
|
-
import SpinnerGapBoldIcon from '@/assets/icons/SpinnerGapBoldIcon'
|
|
45
|
-
import TrashIcon from '@/assets/icons/TrashIcon'
|
|
46
|
-
import UploadSimpleIcon from '@/assets/icons/UploadSimpleIcon'
|
|
47
|
-
import UserIcon from '@/assets/icons/UserIcon'
|
|
48
|
-
import WarningCircleIcon from '@/assets/icons/WarningCircleIcon'
|
|
49
|
-
import WarningDiamondFillIcon from '@/assets/icons/WarningDiamondFillIcon'
|
|
50
|
-
import WarningFillIcon from '@/assets/icons/WarningFillIcon'
|
|
51
|
-
import XCircleFillIcon from '@/assets/icons/XCircleFillIcon'
|
|
52
5
|
|
|
53
|
-
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
ArrowRightIcon,
|
|
57
|
-
ArrowsClockwiseIcon,
|
|
58
|
-
BarcodeIcon,
|
|
59
|
-
CalendarBlankIcon,
|
|
60
|
-
CaretDoubleLeftBoldIcon,
|
|
61
|
-
CaretDoubleRightBoldIcon,
|
|
62
|
-
CaretDownBoldIcon,
|
|
63
|
-
CaretDownFill,
|
|
64
|
-
CaretDownIcon,
|
|
65
|
-
CaretLeftBoldIcon,
|
|
66
|
-
CaretLeftIcon,
|
|
67
|
-
CaretRightBoldIcon,
|
|
68
|
-
CaretUpIcon,
|
|
69
|
-
CaretUpBoldIcon,
|
|
70
|
-
CheckBoldIcon,
|
|
71
|
-
CheckCircleFillIcon,
|
|
72
|
-
CheckIcon,
|
|
73
|
-
CheckUncheckedBoldIcon,
|
|
74
|
-
CircleFilledIcon,
|
|
75
|
-
CloseIcon,
|
|
76
|
-
CollapseChevronsIcon,
|
|
77
|
-
CopyIcon,
|
|
78
|
-
DotCircleFilledIcon,
|
|
79
|
-
ExpandChevronsIcon,
|
|
80
|
-
InfoFillIcon,
|
|
81
|
-
ListIcon,
|
|
82
|
-
MagnifyingGlassIcon,
|
|
83
|
-
MapPinAreaIcon,
|
|
84
|
-
MinusBoldIcon,
|
|
85
|
-
MinusIcon,
|
|
86
|
-
NotePencilIcon,
|
|
87
|
-
PencilSimpleLineIcon,
|
|
88
|
-
PlusBoldIcon,
|
|
89
|
-
PlusIcon,
|
|
90
|
-
QuestionFillIcon,
|
|
91
|
-
QuestionIcon,
|
|
92
|
-
ScalesIcon,
|
|
93
|
-
ScrollIcon,
|
|
94
|
-
SearchHelpIcon,
|
|
95
|
-
SearchXIcon,
|
|
96
|
-
ShoppingCartIcon,
|
|
97
|
-
SpinnerGapBoldIcon,
|
|
98
|
-
TrashIcon,
|
|
99
|
-
UploadSimpleIcon,
|
|
100
|
-
UserIcon,
|
|
101
|
-
WarningDiamondFillIcon,
|
|
102
|
-
WarningFillIcon,
|
|
103
|
-
WarningCircleIcon,
|
|
104
|
-
XCircleFillIcon,
|
|
105
|
-
}
|
|
6
|
+
export { RcSesLogo, DotCircleFilledIcon, SearchHelpIcon, SearchXIcon }
|
|
7
|
+
|
|
8
|
+
export * from '@/assets/icons/phosphorIcons'
|
package/src/library/index.ts
CHANGED
|
@@ -65,6 +65,7 @@ import RcSesLoader from '@/components/loaders/Loader'
|
|
|
65
65
|
import RcSesLoadingSpinner from '@/components/loaders/LoadingSpinner'
|
|
66
66
|
import RcSesBottomSheet from '@/components/overlays/BottomSheet'
|
|
67
67
|
import RcSesDialog from '@/components/overlays/Dialog'
|
|
68
|
+
import RcSesDrawer from '@/components/overlays/Drawer'
|
|
68
69
|
import RcSesModal from '@/components/overlays/Modal'
|
|
69
70
|
import RcSesTheme from '@/theme/light'
|
|
70
71
|
import RcSesPalette from '@/theme/palette'
|
|
@@ -102,6 +103,7 @@ export {
|
|
|
102
103
|
RcSesStepCard,
|
|
103
104
|
RcSesSwitch,
|
|
104
105
|
RcSesBottomSheet,
|
|
106
|
+
RcSesDrawer,
|
|
105
107
|
}
|
|
106
108
|
export { RcSesSegmentedControl }
|
|
107
109
|
export { RcSesSideNavLayout }
|
package/src/library/types.ts
CHANGED
|
@@ -59,6 +59,7 @@ import {
|
|
|
59
59
|
} from '@/components/loaders/LoadingSpinner'
|
|
60
60
|
import { RcSesBottomSheetProps } from '@/components/overlays/BottomSheet'
|
|
61
61
|
import { DialogSize, RcSesDialogProps } from '@/components/overlays/Dialog'
|
|
62
|
+
import { RcSesDrawerProps, RcSesDrawerTestIds } from '@/components/overlays/Drawer'
|
|
62
63
|
import { ModalVariant, RcSesModalProps } from '@/components/overlays/Modal'
|
|
63
64
|
import { ButtonProps } from '@/types/buttons/ButtonProps'
|
|
64
65
|
|
|
@@ -112,3 +113,4 @@ export type {
|
|
|
112
113
|
export type { RcSesDialogProps, DialogSize }
|
|
113
114
|
export type { RcSesModalProps, ModalVariant }
|
|
114
115
|
export type { RcSesBottomSheetProps }
|
|
116
|
+
export type { RcSesDrawerProps, RcSesDrawerTestIds }
|
|
@@ -2,6 +2,7 @@ import { Box, Typography } from '@mui/material'
|
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
import { Fragment } from 'react'
|
|
4
4
|
|
|
5
|
+
import { CheckIcon, ClockIcon } from '@/assets/icons/phosphorIcons'
|
|
5
6
|
import RcSesBadge, { RcSesBadgeProps } from '@/components/common/Badge'
|
|
6
7
|
import FieldPreview from '@/components/storybook/FieldPreview'
|
|
7
8
|
import FieldView from '@/components/storybook/FieldView'
|
|
@@ -139,6 +140,45 @@ export const AllCombinations: Story = {
|
|
|
139
140
|
),
|
|
140
141
|
}
|
|
141
142
|
|
|
143
|
+
// ---------------------------------------------------------------------------
|
|
144
|
+
// Custom Icon
|
|
145
|
+
// ---------------------------------------------------------------------------
|
|
146
|
+
|
|
147
|
+
export const WithCustomIcon: Story = {
|
|
148
|
+
render: () => (
|
|
149
|
+
<Fields>
|
|
150
|
+
<FieldView>
|
|
151
|
+
<PreviewTitle>With custom icon (Clock)</PreviewTitle>
|
|
152
|
+
<Box sx={{ display: 'flex', gap: 2, flexWrap: 'wrap' }}>
|
|
153
|
+
{variants.map((variant) => (
|
|
154
|
+
<RcSesBadge
|
|
155
|
+
key={variant}
|
|
156
|
+
label={variant}
|
|
157
|
+
variant={variant}
|
|
158
|
+
size='regular'
|
|
159
|
+
icon={<ClockIcon />}
|
|
160
|
+
/>
|
|
161
|
+
))}
|
|
162
|
+
</Box>
|
|
163
|
+
</FieldView>
|
|
164
|
+
<FieldPreview>
|
|
165
|
+
<PreviewTitle>With custom icon (Check)</PreviewTitle>
|
|
166
|
+
<Box sx={{ display: 'flex', gap: 2, flexWrap: 'wrap' }}>
|
|
167
|
+
{variants.map((variant) => (
|
|
168
|
+
<RcSesBadge
|
|
169
|
+
key={variant}
|
|
170
|
+
label={variant}
|
|
171
|
+
variant={variant}
|
|
172
|
+
size='regular'
|
|
173
|
+
icon={<CheckIcon />}
|
|
174
|
+
/>
|
|
175
|
+
))}
|
|
176
|
+
</Box>
|
|
177
|
+
</FieldPreview>
|
|
178
|
+
</Fields>
|
|
179
|
+
),
|
|
180
|
+
}
|
|
181
|
+
|
|
142
182
|
// ---------------------------------------------------------------------------
|
|
143
183
|
// Edge cases
|
|
144
184
|
// ---------------------------------------------------------------------------
|
|
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
|
3
3
|
import { Fragment } from 'react'
|
|
4
4
|
import { fn } from 'storybook/test'
|
|
5
5
|
|
|
6
|
-
import PlusBoldIcon from '@/assets/icons/
|
|
6
|
+
import { PlusBoldIcon } from '@/assets/icons/phosphorIcons'
|
|
7
7
|
import Button from '@/components/common/Button'
|
|
8
8
|
import PreviewTitle from '@/components/storybook/PreviewTitle'
|
|
9
9
|
import { grey } from '@/theme/palette'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
2
|
|
|
3
|
-
import CheckBoldIcon from '@/assets/icons/
|
|
3
|
+
import { CheckBoldIcon } from '@/assets/icons/phosphorIcons'
|
|
4
4
|
import RcSesIconWithCircularBackground from '@/components/common/IconWithCircularBackground'
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof RcSesIconWithCircularBackground> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stack, Typography } from '@mui/material'
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
|
|
4
|
-
import InfoFillIcon from '@/assets/icons/
|
|
4
|
+
import { InfoFillIcon } from '@/assets/icons/phosphorIcons'
|
|
5
5
|
import RcSesIconWithSquareBackground from '@/components/common/IconWithSquareBackground'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof RcSesIconWithSquareBackground> = {
|
|
@@ -1,61 +1,27 @@
|
|
|
1
|
-
import { Box, FormControl, MenuItem, Select, Typography } from '@mui/material'
|
|
1
|
+
import { Box, FormControl, MenuItem, Select, Stack, Typography } from '@mui/material'
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
import { useMemo, useState } from 'react'
|
|
4
|
-
import type {
|
|
4
|
+
import type { ComponentType, ReactNode } from 'react'
|
|
5
5
|
|
|
6
6
|
import type IconProps from '@/assets/IconProps'
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import CaretRightBoldIcon from '@/assets/icons/CaretRightBoldIcon'
|
|
20
|
-
import CheckBoldIcon from '@/assets/icons/CheckBoldIcon'
|
|
21
|
-
import CheckCircleFillIcon from '@/assets/icons/CheckCircleFillIcon'
|
|
22
|
-
import CheckIcon from '@/assets/icons/CheckIcon'
|
|
23
|
-
import CheckUncheckedBoldIcon from '@/assets/icons/CheckUncheckedBoldIcon'
|
|
24
|
-
import CircleFilledIcon from '@/assets/icons/CircleFilledIcon'
|
|
25
|
-
import CloseIcon from '@/assets/icons/CloseIcon'
|
|
26
|
-
import CollapseChevronsIcon from '@/assets/icons/CollapseChevronsIcon'
|
|
27
|
-
import CopyIcon from '@/assets/icons/CopyIcon'
|
|
28
|
-
import DotCircleFilledIcon from '@/assets/icons/DotCircleFilledIcon'
|
|
29
|
-
import ExpandChevronsIcon from '@/assets/icons/ExpandChevronsIcon'
|
|
30
|
-
import InfoFillIcon from '@/assets/icons/InfoFillIcon'
|
|
31
|
-
import MagnifyingGlassIcon from '@/assets/icons/MagnifyingGlassIcon'
|
|
32
|
-
import MapPinAreaIcon from '@/assets/icons/MapPinAreaIcon'
|
|
33
|
-
import MinusBoldIcon from '@/assets/icons/MinusBoldIcon'
|
|
34
|
-
import PencilSimpleLineIcon from '@/assets/icons/PencilSimpleLineIcon'
|
|
35
|
-
import PlusBoldIcon from '@/assets/icons/PlusBoldIcon'
|
|
36
|
-
import QuestionFillIcon from '@/assets/icons/QuestionFillIcon'
|
|
37
|
-
import QuestionIcon from '@/assets/icons/QuestionIcon'
|
|
38
|
-
import ScalesIcon from '@/assets/icons/ScalesIcon'
|
|
39
|
-
import ScrollIcon from '@/assets/icons/ScrollIcon'
|
|
40
|
-
import SearchHelpIcon from '@/assets/icons/SearchHelpIcon'
|
|
41
|
-
import SearchXIcon from '@/assets/icons/SearchXIcon'
|
|
42
|
-
import SpinnerGapBoldIcon from '@/assets/icons/SpinnerGapBoldIcon'
|
|
43
|
-
import UploadSimpleIcon from '@/assets/icons/UploadSimpleIcon'
|
|
44
|
-
import WarningCircleIcon from '@/assets/icons/WarningCircleIcon'
|
|
45
|
-
import WarningDiamondFillIcon from '@/assets/icons/WarningDiamondFillIcon'
|
|
46
|
-
import WarningFillIcon from '@/assets/icons/WarningFillIcon'
|
|
47
|
-
import XCircleFillIcon from '@/assets/icons/XCircleFillIcon'
|
|
7
|
+
import RcSesButton from '@/components/common/Button'
|
|
8
|
+
import RcSesIconWithSquareBackground from '@/components/common/IconWithSquareBackground'
|
|
9
|
+
import ListWithIcons from '@/components/common/ListWithIcons'
|
|
10
|
+
import * as libraryIcons from '@/library/icons'
|
|
11
|
+
import {
|
|
12
|
+
EnvelopeSimpleIcon,
|
|
13
|
+
InfoIcon,
|
|
14
|
+
MapPinIcon,
|
|
15
|
+
PhoneIcon,
|
|
16
|
+
TrashIcon,
|
|
17
|
+
UserListIcon,
|
|
18
|
+
} from '@/library/icons'
|
|
48
19
|
import palette from '@/theme/palette'
|
|
49
20
|
|
|
50
21
|
// import resolvePaletteColorPath from '@/assets/resolvePaletteColorPath'
|
|
51
22
|
|
|
52
23
|
type StoryArgs = IconProps
|
|
53
24
|
|
|
54
|
-
interface IconStoryItem {
|
|
55
|
-
name: string
|
|
56
|
-
render: (args: StoryArgs) => ReactElement
|
|
57
|
-
}
|
|
58
|
-
|
|
59
25
|
type PaletteColorOptions = Record<string, string | undefined>
|
|
60
26
|
type PaletteColorLabels = Record<string, string>
|
|
61
27
|
|
|
@@ -95,182 +61,27 @@ const resolveTokenNameByColor = (color: string | undefined): string => {
|
|
|
95
61
|
return resolvedTokenName ?? 'default'
|
|
96
62
|
}
|
|
97
63
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
)
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
render: renderIcon(ArrowLeftIcon),
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'ArrowRightIcon',
|
|
111
|
-
render: renderIcon(ArrowRightIcon),
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: 'ArrowsClockwiseIcon',
|
|
115
|
-
render: renderIcon(ArrowsClockwiseIcon),
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: 'BarcodeIcon',
|
|
119
|
-
render: renderIcon(BarcodeIcon),
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'CalendarBlankIcon',
|
|
123
|
-
render: renderIcon(CalendarBlankIcon),
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: 'CaretDoubleLeftBoldIcon',
|
|
127
|
-
render: renderIcon(CaretDoubleLeftBoldIcon),
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: 'CaretDoubleRightBoldIcon',
|
|
131
|
-
render: renderIcon(CaretDoubleRightBoldIcon),
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: 'CaretDownBoldIcon',
|
|
135
|
-
render: renderIcon(CaretDownBoldIcon),
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: 'CaretDownFill',
|
|
139
|
-
render: renderIcon(CaretDownFill),
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
name: 'CaretDownIcon',
|
|
143
|
-
render: renderIcon(CaretDownIcon),
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: 'CaretLeftBoldIcon',
|
|
147
|
-
render: renderIcon(CaretLeftBoldIcon),
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: 'CaretLeftIcon',
|
|
151
|
-
render: renderIcon(CaretLeftIcon),
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
name: 'CaretRightBoldIcon',
|
|
155
|
-
render: renderIcon(CaretRightBoldIcon),
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
name: 'CheckBoldIcon',
|
|
159
|
-
render: renderIcon(CheckBoldIcon),
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: 'CheckCircleFillIcon',
|
|
163
|
-
render: renderIcon(CheckCircleFillIcon),
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
name: 'CheckIcon',
|
|
167
|
-
render: renderIcon(CheckIcon),
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: 'CheckUncheckedBoldIcon',
|
|
171
|
-
render: renderIcon(CheckUncheckedBoldIcon),
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
name: 'CircleFilledIcon',
|
|
175
|
-
render: renderIcon(CircleFilledIcon),
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: 'CloseIcon',
|
|
179
|
-
render: renderIcon(CloseIcon),
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: 'CollapseChevronsIcon',
|
|
183
|
-
render: renderIcon(CollapseChevronsIcon),
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: 'CopyIcon',
|
|
187
|
-
render: renderIcon(CopyIcon),
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
name: 'DotCircleFilledIcon',
|
|
191
|
-
render: renderIcon(DotCircleFilledIcon),
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
name: 'ExpandChevronsIcon',
|
|
195
|
-
render: renderIcon(ExpandChevronsIcon),
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
name: 'InfoFillIcon',
|
|
199
|
-
render: renderIcon(InfoFillIcon),
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
name: 'MagnifyingGlassIcon',
|
|
203
|
-
render: renderIcon(MagnifyingGlassIcon),
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
name: 'MapPinAreaIcon',
|
|
207
|
-
render: renderIcon(MapPinAreaIcon),
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
name: 'MinusBoldIcon',
|
|
211
|
-
render: renderIcon(MinusBoldIcon),
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
name: 'PencilSimpleLineIcon',
|
|
215
|
-
render: renderIcon(PencilSimpleLineIcon),
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
name: 'PlusBoldIcon',
|
|
219
|
-
render: renderIcon(PlusBoldIcon),
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
name: 'QuestionFillIcon',
|
|
223
|
-
render: renderIcon(QuestionFillIcon),
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: 'QuestionIcon',
|
|
227
|
-
render: renderIcon(QuestionIcon),
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
name: 'ScalesIcon',
|
|
231
|
-
render: renderIcon(ScalesIcon),
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
name: 'ScrollIcon',
|
|
235
|
-
render: renderIcon(ScrollIcon),
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
name: 'SearchHelpIcon',
|
|
239
|
-
render: renderIcon(SearchHelpIcon),
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
name: 'SearchXIcon',
|
|
243
|
-
render: renderIcon(SearchXIcon),
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
name: 'SpinnerGapBoldIcon',
|
|
247
|
-
render: renderIcon(SpinnerGapBoldIcon),
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
name: 'UploadSimpleIcon',
|
|
251
|
-
render: renderIcon(UploadSimpleIcon),
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
name: 'WarningCircleIcon',
|
|
255
|
-
render: renderIcon(WarningCircleIcon),
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
name: 'WarningDiamondFillIcon',
|
|
259
|
-
render: renderIcon(WarningDiamondFillIcon),
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
name: 'WarningFillIcon',
|
|
263
|
-
render: renderIcon(WarningFillIcon),
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
name: 'XCircleFillIcon',
|
|
267
|
-
render: renderIcon(XCircleFillIcon),
|
|
268
|
-
},
|
|
269
|
-
]
|
|
64
|
+
// Every icon the package exports, so a newly added icon shows up here without
|
|
65
|
+
// touching this story
|
|
66
|
+
const iconItems = Object.entries(libraryIcons)
|
|
67
|
+
.filter(([name]) => name !== 'RcSesLogo')
|
|
68
|
+
.map(([name, Component]) => ({
|
|
69
|
+
name,
|
|
70
|
+
Component: Component as ComponentType<IconProps>,
|
|
71
|
+
}))
|
|
72
|
+
.sort((a, b) => a.name.localeCompare(b.name))
|
|
270
73
|
|
|
271
74
|
const meta: Meta<StoryArgs> = {
|
|
272
75
|
title: 'Atoms/Icons',
|
|
273
76
|
tags: ['autodocs'],
|
|
77
|
+
parameters: {
|
|
78
|
+
docs: {
|
|
79
|
+
description: {
|
|
80
|
+
component:
|
|
81
|
+
"Icons are exported from the package root, e.g. `import { TrashIcon } from '@registrucentras/rc-ses-react-components'`. Every icon takes `fillColor` (defaults to the current text color), `size` (px) and `weight` (`thin`, `light`, `regular`, `bold`, `fill`, `duotone`), plus any SVG attribute such as `className` or `aria-hidden`. **Usage** shows the common patterns; **Gallery** lists every icon.",
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
274
85
|
args: {
|
|
275
86
|
className: '',
|
|
276
87
|
fillColor: undefined,
|
|
@@ -325,11 +136,11 @@ const GalleryComponent = ({ className, size, fillColor }: StoryArgs) => {
|
|
|
325
136
|
p: 1.5,
|
|
326
137
|
}}
|
|
327
138
|
>
|
|
328
|
-
|
|
329
|
-
className
|
|
330
|
-
fillColor
|
|
331
|
-
size
|
|
332
|
-
|
|
139
|
+
<icon.Component
|
|
140
|
+
className={className}
|
|
141
|
+
fillColor={selectedFillColor}
|
|
142
|
+
size={size}
|
|
143
|
+
/>
|
|
333
144
|
<Typography
|
|
334
145
|
align='center'
|
|
335
146
|
sx={{
|
|
@@ -388,8 +199,106 @@ const GalleryComponent = ({ className, size, fillColor }: StoryArgs) => {
|
|
|
388
199
|
)
|
|
389
200
|
}
|
|
390
201
|
|
|
202
|
+
const UsageSection = ({ title, children }: { title: string; children: ReactNode }) => (
|
|
203
|
+
<Stack sx={{ gap: 1 }}>
|
|
204
|
+
<Typography sx={{ color: 'text.secondary', fontSize: '0.75rem' }}>{title}</Typography>
|
|
205
|
+
<Stack direction='row' sx={{ alignItems: 'center', flexWrap: 'wrap', gap: 2 }}>
|
|
206
|
+
{children}
|
|
207
|
+
</Stack>
|
|
208
|
+
</Stack>
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
const usageCode = `import {
|
|
212
|
+
EnvelopeSimpleIcon,
|
|
213
|
+
InfoIcon,
|
|
214
|
+
ListWithIcons,
|
|
215
|
+
MapPinIcon,
|
|
216
|
+
PhoneIcon,
|
|
217
|
+
RcSesButton,
|
|
218
|
+
RcSesIconWithSquareBackground,
|
|
219
|
+
RcSesPalette,
|
|
220
|
+
TrashIcon,
|
|
221
|
+
UserListIcon,
|
|
222
|
+
} from '@registrucentras/rc-ses-react-components'
|
|
223
|
+
|
|
224
|
+
// On its own: 24px, regular weight and the current text color unless told otherwise
|
|
225
|
+
<UserListIcon />
|
|
226
|
+
<UserListIcon size={16} fillColor={RcSesPalette.grey[600]} />
|
|
227
|
+
<TrashIcon weight='bold' aria-hidden='true' />
|
|
228
|
+
<InfoIcon weight='fill' fillColor={RcSesPalette.primary[500]} />
|
|
229
|
+
|
|
230
|
+
// Inside a button
|
|
231
|
+
<RcSesButton variant='link' startIcon={<TrashIcon size={20} />}>
|
|
232
|
+
Pašalinti
|
|
233
|
+
</RcSesButton>
|
|
234
|
+
|
|
235
|
+
// ListWithIcons and the icon tiles size and color the icon themselves,
|
|
236
|
+
// so pass the component (PhoneIcon), not an element (<PhoneIcon />)
|
|
237
|
+
<ListWithIcons
|
|
238
|
+
layout='horizontal'
|
|
239
|
+
items={[
|
|
240
|
+
{ icon: UserListIcon, text: '3890615****' },
|
|
241
|
+
{ icon: PhoneIcon, text: '+370 600 00000' },
|
|
242
|
+
{ icon: EnvelopeSimpleIcon, text: 'vardenis.pavardenis@example.lt' },
|
|
243
|
+
{ icon: MapPinIcon, text: 'Vilnius, Gedimino pr. 1' },
|
|
244
|
+
]}
|
|
245
|
+
/>
|
|
246
|
+
<RcSesIconWithSquareBackground Icon={PhoneIcon} variant='soft' />`
|
|
247
|
+
|
|
248
|
+
const UsageComponent = () => (
|
|
249
|
+
<Stack sx={{ gap: 3 }}>
|
|
250
|
+
<UsageSection title='On its own'>
|
|
251
|
+
<UserListIcon />
|
|
252
|
+
<UserListIcon size={16} fillColor={palette.grey[600]} />
|
|
253
|
+
<TrashIcon weight='bold' aria-hidden='true' />
|
|
254
|
+
<InfoIcon weight='fill' fillColor={palette.primary[500]} />
|
|
255
|
+
</UsageSection>
|
|
256
|
+
<UsageSection title='Inside a button'>
|
|
257
|
+
<RcSesButton variant='link' startIcon={<TrashIcon size={20} />}>
|
|
258
|
+
Pašalinti
|
|
259
|
+
</RcSesButton>
|
|
260
|
+
</UsageSection>
|
|
261
|
+
<UsageSection title='In ListWithIcons (pass the component)'>
|
|
262
|
+
<ListWithIcons
|
|
263
|
+
layout='horizontal'
|
|
264
|
+
items={[
|
|
265
|
+
{ icon: UserListIcon, text: '3890615****' },
|
|
266
|
+
{ icon: PhoneIcon, text: '+370 600 00000' },
|
|
267
|
+
{ icon: EnvelopeSimpleIcon, text: 'vardenis.pavardenis@example.lt' },
|
|
268
|
+
{ icon: MapPinIcon, text: 'Vilnius, Gedimino pr. 1' },
|
|
269
|
+
]}
|
|
270
|
+
/>
|
|
271
|
+
</UsageSection>
|
|
272
|
+
<UsageSection title='In an icon tile (pass the component)'>
|
|
273
|
+
<RcSesIconWithSquareBackground Icon={PhoneIcon} variant='soft' />
|
|
274
|
+
</UsageSection>
|
|
275
|
+
</Stack>
|
|
276
|
+
)
|
|
277
|
+
|
|
391
278
|
type Story = StoryObj<StoryArgs>
|
|
392
279
|
|
|
280
|
+
export const Usage: Story = {
|
|
281
|
+
render: () => <UsageComponent />,
|
|
282
|
+
parameters: {
|
|
283
|
+
controls: { disable: true },
|
|
284
|
+
docs: {
|
|
285
|
+
description: {
|
|
286
|
+
story:
|
|
287
|
+
'How a consumer uses the icons: on their own, inside a button, and in components that take an icon component.',
|
|
288
|
+
},
|
|
289
|
+
source: { code: usageCode, language: 'tsx' },
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
}
|
|
293
|
+
|
|
393
294
|
export const Gallery: Story = {
|
|
394
295
|
render: (args) => <GalleryComponent {...args} />,
|
|
296
|
+
parameters: {
|
|
297
|
+
docs: {
|
|
298
|
+
description: {
|
|
299
|
+
story:
|
|
300
|
+
'Every icon the package exports. Use the controls to try `size` and the select below to try `fillColor`.',
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
},
|
|
395
304
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Box, Typography } from '@mui/material'
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import {
|
|
5
|
+
CaretLeftIcon,
|
|
6
|
+
MagnifyingGlassIcon,
|
|
7
|
+
PencilSimpleLineIcon,
|
|
8
|
+
} from '@/assets/icons/phosphorIcons'
|
|
7
9
|
import RcSesButton from '@/components/common/Button'
|
|
8
10
|
import RcSesCard from '@/components/common/Card'
|
|
9
11
|
import palette from '@/theme/palette'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box, Typography } from '@mui/material'
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
|
|
4
|
-
import UserIcon from '@/assets/icons/
|
|
4
|
+
import { UserIcon } from '@/assets/icons/phosphorIcons'
|
|
5
5
|
import RcSesButton from '@/components/common/Button'
|
|
6
6
|
import RcSesCardShell from '@/components/common/CardShell'
|
|
7
7
|
import RcSesCardFooter from '@/components/common/CardShell/CardFooter'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box } from '@mui/material'
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
|
|
4
|
-
import MagnifyingGlassIcon from '@/assets/icons/
|
|
4
|
+
import { MagnifyingGlassIcon } from '@/assets/icons/phosphorIcons'
|
|
5
5
|
import RcSesButton from '@/components/common/Button'
|
|
6
6
|
import RcSesImageCard from '@/components/common/ImageCard'
|
|
7
7
|
import palette from '@/theme/palette'
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
2
|
|
|
3
|
-
import CheckCircleFillIcon from '@/assets/icons/
|
|
4
|
-
import WarningFillIcon from '@/assets/icons/WarningFillIcon'
|
|
3
|
+
import { CheckCircleFillIcon, WarningFillIcon } from '@/assets/icons/phosphorIcons'
|
|
5
4
|
import ListWithIcons from '@/components/common/ListWithIcons'
|
|
6
5
|
import { type ListWithIconsItemData } from '@/components/common/ListWithIcons/ListWithIcons.types'
|
|
7
6
|
import { secondary } from '@/theme/palette'
|