@dishopsaas/design-system 0.0.48 → 0.0.51

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 (171) hide show
  1. package/dist/Interface/Interfaces.d.ts +190 -0
  2. package/dist/Interface/Interfaces.d.ts.map +1 -0
  3. package/dist/components/DataDisplay/AlertBanner/AlertBanner.d.ts +34 -0
  4. package/dist/components/DataDisplay/AlertBanner/AlertBanner.d.ts.map +1 -0
  5. package/dist/components/DataDisplay/AlertBanner/AlertBanner.stories.d.ts +94 -0
  6. package/dist/components/DataDisplay/AlertBanner/AlertBanner.stories.d.ts.map +1 -0
  7. package/dist/components/DataDisplay/Avatar/Avatar.d.ts +17 -0
  8. package/dist/components/DataDisplay/Avatar/Avatar.d.ts.map +1 -0
  9. package/dist/components/DataDisplay/Avatar/Avatar.stories.d.ts +8 -0
  10. package/dist/components/DataDisplay/Avatar/Avatar.stories.d.ts.map +1 -0
  11. package/dist/components/DataDisplay/Counter/Counter.d.ts +5 -0
  12. package/dist/components/DataDisplay/Counter/Counter.d.ts.map +1 -0
  13. package/dist/components/DataDisplay/Counter/Counter.stories.d.ts +8 -0
  14. package/dist/components/DataDisplay/Counter/Counter.stories.d.ts.map +1 -0
  15. package/dist/components/DataDisplay/Divider/Divider.d.ts +14 -0
  16. package/dist/components/DataDisplay/Divider/Divider.d.ts.map +1 -0
  17. package/dist/components/DataDisplay/Divider/Divider.stories.d.ts +8 -0
  18. package/dist/components/DataDisplay/Divider/Divider.stories.d.ts.map +1 -0
  19. package/dist/components/DataDisplay/EmptyState/EmptyState.d.ts +35 -0
  20. package/dist/components/DataDisplay/EmptyState/EmptyState.d.ts.map +1 -0
  21. package/dist/components/DataDisplay/EmptyState/EmptyState.stories.d.ts +7 -0
  22. package/dist/components/DataDisplay/EmptyState/EmptyState.stories.d.ts.map +1 -0
  23. package/dist/components/DataDisplay/Grid/ResponsiveGrid.d.ts +5 -0
  24. package/dist/components/DataDisplay/Grid/ResponsiveGrid.d.ts.map +1 -0
  25. package/dist/components/DataDisplay/Grid/ResponsiveGrid.stories.d.ts +8 -0
  26. package/dist/components/DataDisplay/Grid/ResponsiveGrid.stories.d.ts.map +1 -0
  27. package/dist/components/DataDisplay/Header/Header.d.ts +23 -0
  28. package/dist/components/DataDisplay/Header/Header.d.ts.map +1 -0
  29. package/dist/components/DataDisplay/Header/Header.stories.d.ts +7 -0
  30. package/dist/components/DataDisplay/Header/Header.stories.d.ts.map +1 -0
  31. package/dist/components/DataDisplay/Header/ScrollView/ScrollView.d.ts +28 -0
  32. package/dist/components/DataDisplay/Header/ScrollView/ScrollView.d.ts.map +1 -0
  33. package/dist/components/DataDisplay/Header/ScrollView/ScrollView.stories.d.ts +7 -0
  34. package/dist/components/DataDisplay/Header/ScrollView/ScrollView.stories.d.ts.map +1 -0
  35. package/dist/components/DataDisplay/ListItem/ListItem.d.ts +5 -0
  36. package/dist/components/DataDisplay/ListItem/ListItem.d.ts.map +1 -0
  37. package/dist/components/DataDisplay/ListItem/ListItem.stories.d.ts +9 -0
  38. package/dist/components/DataDisplay/ListItem/ListItem.stories.d.ts.map +1 -0
  39. package/dist/components/DataDisplay/Table/Table.d.ts +68 -0
  40. package/dist/components/DataDisplay/Table/Table.d.ts.map +1 -0
  41. package/dist/components/DataDisplay/Table/Table.stories.d.ts +18 -0
  42. package/dist/components/DataDisplay/Table/Table.stories.d.ts.map +1 -0
  43. package/dist/components/DataDisplay/Tags/Tags.d.ts +25 -0
  44. package/dist/components/DataDisplay/Tags/Tags.d.ts.map +1 -0
  45. package/dist/components/DataDisplay/Tags/Tags.stories.d.ts +8 -0
  46. package/dist/components/DataDisplay/Tags/Tags.stories.d.ts.map +1 -0
  47. package/dist/components/DataDisplay/badge/badge.d.ts +32 -0
  48. package/dist/components/DataDisplay/badge/badge.d.ts.map +1 -0
  49. package/dist/components/DataDisplay/badge/badge.stories.d.ts +9 -0
  50. package/dist/components/DataDisplay/badge/badge.stories.d.ts.map +1 -0
  51. package/dist/components/Feedback/Modal/Modal.d.ts +28 -0
  52. package/dist/components/Feedback/Modal/Modal.d.ts.map +1 -0
  53. package/dist/components/Feedback/Modal/Modal.stories.d.ts +9 -0
  54. package/dist/components/Feedback/Modal/Modal.stories.d.ts.map +1 -0
  55. package/dist/components/Feedback/Modal/ProductDetailModal/OptionGroup.d.ts +6 -0
  56. package/dist/components/Feedback/Modal/ProductDetailModal/OptionGroup.d.ts.map +1 -0
  57. package/dist/components/Feedback/Modal/ProductDetailModal/ProductDetailModal.d.ts +4 -0
  58. package/dist/components/Feedback/Modal/ProductDetailModal/ProductDetailModal.d.ts.map +1 -0
  59. package/dist/components/Feedback/Modal/ProductDetailModal/ProductDetailModal.stories.d.ts +7 -0
  60. package/dist/components/Feedback/Modal/ProductDetailModal/ProductDetailModal.stories.d.ts.map +1 -0
  61. package/dist/components/Feedback/Progress/CircularProgress.stories.d.ts +8 -0
  62. package/dist/components/Feedback/Progress/CircularProgress.stories.d.ts.map +1 -0
  63. package/dist/components/Feedback/Progress/LinearProgress.stories.d.ts +8 -0
  64. package/dist/components/Feedback/Progress/LinearProgress.stories.d.ts.map +1 -0
  65. package/dist/components/Feedback/Progress/Progress.d.ts +32 -0
  66. package/dist/components/Feedback/Progress/Progress.d.ts.map +1 -0
  67. package/dist/components/Feedback/Progress/Stepper.d.ts +13 -0
  68. package/dist/components/Feedback/Progress/Stepper.d.ts.map +1 -0
  69. package/dist/components/Feedback/Progress/Stepper.stories.d.ts +33 -0
  70. package/dist/components/Feedback/Progress/Stepper.stories.d.ts.map +1 -0
  71. package/dist/components/Footer/Footer.d.ts +18 -0
  72. package/dist/components/Footer/Footer.d.ts.map +1 -0
  73. package/dist/components/Footer/Footer.stories.d.ts +6 -0
  74. package/dist/components/Footer/Footer.stories.d.ts.map +1 -0
  75. package/dist/components/Footer/OrderCard.d.ts +17 -0
  76. package/dist/components/Footer/OrderCard.d.ts.map +1 -0
  77. package/dist/components/Input/Button/Button.d.ts +5 -0
  78. package/dist/components/Input/Button/Button.d.ts.map +1 -0
  79. package/dist/components/Input/Button/Button.stories.d.ts +8 -0
  80. package/dist/components/Input/Button/Button.stories.d.ts.map +1 -0
  81. package/dist/components/Input/Button/ButtonLink.d.ts +18 -0
  82. package/dist/components/Input/Button/ButtonLink.d.ts.map +1 -0
  83. package/dist/components/Input/Button/ButtonLink.stories.d.ts +8 -0
  84. package/dist/components/Input/Button/ButtonLink.stories.d.ts.map +1 -0
  85. package/dist/components/Input/Button/ButtonQuantityControl.d.ts +10 -0
  86. package/dist/components/Input/Button/ButtonQuantityControl.d.ts.map +1 -0
  87. package/dist/components/Input/CustomInput/Checkbox.stories.d.ts +9 -0
  88. package/dist/components/Input/CustomInput/Checkbox.stories.d.ts.map +1 -0
  89. package/dist/components/Input/CustomInput/CustomInput.d.ts +19 -0
  90. package/dist/components/Input/CustomInput/CustomInput.d.ts.map +1 -0
  91. package/dist/components/Input/CustomInput/RadioButton.stories.d.ts +9 -0
  92. package/dist/components/Input/CustomInput/RadioButton.stories.d.ts.map +1 -0
  93. package/dist/components/Input/InputField/CardField/StripeCardField.d.ts +15 -0
  94. package/dist/components/Input/InputField/CardField/StripeCardField.d.ts.map +1 -0
  95. package/dist/components/Input/InputField/CardField/StripeCardField.stories.d.ts +8 -0
  96. package/dist/components/Input/InputField/CardField/StripeCardField.stories.d.ts.map +1 -0
  97. package/dist/components/Input/InputField/PhoneField/PhoneField.d.ts +5 -0
  98. package/dist/components/Input/InputField/PhoneField/PhoneField.d.ts.map +1 -0
  99. package/dist/components/Input/InputField/PhoneField/PhoneField.stories.d.ts +8 -0
  100. package/dist/components/Input/InputField/PhoneField/PhoneField.stories.d.ts.map +1 -0
  101. package/dist/components/Input/InputField/PhoneField/PhoneFieldStoryComponents.d.ts +3 -0
  102. package/dist/components/Input/InputField/PhoneField/PhoneFieldStoryComponents.d.ts.map +1 -0
  103. package/dist/components/Input/InputField/SearchField/SearchField.d.ts +23 -0
  104. package/dist/components/Input/InputField/SearchField/SearchField.d.ts.map +1 -0
  105. package/dist/components/Input/InputField/SearchField/SearchField.stories.d.ts +104 -0
  106. package/dist/components/Input/InputField/SearchField/SearchField.stories.d.ts.map +1 -0
  107. package/dist/components/Input/InputField/TextField.d.ts +21 -0
  108. package/dist/components/Input/InputField/TextField.d.ts.map +1 -0
  109. package/dist/components/Input/InputField/TextField.stories.d.ts +12 -0
  110. package/dist/components/Input/InputField/TextField.stories.d.ts.map +1 -0
  111. package/dist/components/Input/InputField/TextFieldStoryComponents.d.ts +37 -0
  112. package/dist/components/Input/InputField/TextFieldStoryComponents.d.ts.map +1 -0
  113. package/dist/components/Input/InputField/styles.d.ts +30 -0
  114. package/dist/components/Input/InputField/styles.d.ts.map +1 -0
  115. package/dist/components/Input/Toggle/Toggle.d.ts +29 -0
  116. package/dist/components/Input/Toggle/Toggle.d.ts.map +1 -0
  117. package/dist/components/Input/Toggle/Toggle.stories.d.ts +8 -0
  118. package/dist/components/Input/Toggle/Toggle.stories.d.ts.map +1 -0
  119. package/dist/components/Input/utils.d.ts +38 -0
  120. package/dist/components/Input/utils.d.ts.map +1 -0
  121. package/dist/components/Navigation/Choice/ChoiceBox.stories.d.ts +11 -0
  122. package/dist/components/Navigation/Choice/ChoiceBox.stories.d.ts.map +1 -0
  123. package/dist/components/Navigation/Choice/ChoiceBoxOption.d.ts +25 -0
  124. package/dist/components/Navigation/Choice/ChoiceBoxOption.d.ts.map +1 -0
  125. package/dist/components/Navigation/Choice/ChoiceRail.d.ts +12 -0
  126. package/dist/components/Navigation/Choice/ChoiceRail.d.ts.map +1 -0
  127. package/dist/components/Navigation/Dropdown/Dropdown.d.ts +5 -0
  128. package/dist/components/Navigation/Dropdown/Dropdown.d.ts.map +1 -0
  129. package/dist/components/Navigation/Dropdown/Dropdown.stories.d.ts +8 -0
  130. package/dist/components/Navigation/Dropdown/Dropdown.stories.d.ts.map +1 -0
  131. package/dist/components/Navigation/Tabs/Tabs.d.ts +10 -0
  132. package/dist/components/Navigation/Tabs/Tabs.d.ts.map +1 -0
  133. package/dist/components/Navigation/Tabs/Tabs.stories.d.ts +15 -0
  134. package/dist/components/Navigation/Tabs/Tabs.stories.d.ts.map +1 -0
  135. package/dist/components/Providers/AppThemeProvider.d.ts +9 -0
  136. package/dist/components/Providers/AppThemeProvider.d.ts.map +1 -0
  137. package/dist/components/Surfaces/Accordion/Accordion.d.ts +78 -0
  138. package/dist/components/Surfaces/Accordion/Accordion.d.ts.map +1 -0
  139. package/dist/components/Surfaces/Accordion/Accordion.stories.d.ts +9 -0
  140. package/dist/components/Surfaces/Accordion/Accordion.stories.d.ts.map +1 -0
  141. package/dist/components/Surfaces/Accordion/PromoCodeWrapper.d.ts +7 -0
  142. package/dist/components/Surfaces/Accordion/PromoCodeWrapper.d.ts.map +1 -0
  143. package/dist/components/Surfaces/ProductCard/ProductCard.d.ts +4 -0
  144. package/dist/components/Surfaces/ProductCard/ProductCard.d.ts.map +1 -0
  145. package/dist/components/Surfaces/ProductCard/ProductCard.stories.d.ts +8 -0
  146. package/dist/components/Surfaces/ProductCard/ProductCard.stories.d.ts.map +1 -0
  147. package/dist/index.d.ts +38 -0
  148. package/dist/index.d.ts.map +1 -0
  149. package/dist/utils/constants.d.ts +158 -0
  150. package/dist/utils/constants.d.ts.map +1 -0
  151. package/dist/utils/dataConfig.d.ts +196 -0
  152. package/dist/utils/dataConfig.d.ts.map +1 -0
  153. package/dist/utils/icons.d.ts +53 -0
  154. package/dist/utils/icons.d.ts.map +1 -0
  155. package/dist/utils/images.d.ts +38 -0
  156. package/dist/utils/images.d.ts.map +1 -0
  157. package/dist/utils/theme.d.ts +216 -0
  158. package/dist/utils/theme.d.ts.map +1 -0
  159. package/dist/utils/types.d.ts +116 -0
  160. package/dist/utils/types.d.ts.map +1 -0
  161. package/dist/utils/utils.d.ts +45 -0
  162. package/dist/utils/utils.d.ts.map +1 -0
  163. package/dist/utils/validators.d.ts +48 -0
  164. package/dist/utils/validators.d.ts.map +1 -0
  165. package/package.json +22 -30
  166. package/dist/design-system.css +0 -1
  167. package/dist/index.cjs +0 -172
  168. package/dist/index.cjs.map +0 -1
  169. package/dist/index.mjs +0 -26081
  170. package/dist/index.mjs.map +0 -1
  171. package/dist/vite.svg +0 -1
@@ -0,0 +1,216 @@
1
+ import { PaletteMode, Theme } from '@mui/material/styles';
2
+ export declare const spacing: {
3
+ readonly xs: 4;
4
+ readonly sm: 8;
5
+ readonly md: 16;
6
+ readonly lg: 24;
7
+ readonly xl: 32;
8
+ };
9
+ export declare const borderRadius: {
10
+ readonly sm: 4;
11
+ readonly md: 8;
12
+ readonly lg: 12;
13
+ readonly xl: 16;
14
+ readonly xxl: 18;
15
+ readonly xxxl: 20;
16
+ };
17
+ export declare const fontSizes: {
18
+ readonly h1: 24;
19
+ readonly h2: 20;
20
+ readonly h3: 18;
21
+ readonly h4: 16;
22
+ readonly h5: 14;
23
+ readonly h6: 12;
24
+ };
25
+ export declare const fontFamily: {
26
+ mainFont: string;
27
+ rightGrotesk: string;
28
+ };
29
+ export declare const typography: {
30
+ fontFamily: string;
31
+ h1: {
32
+ fontFamily: string;
33
+ letterSpacing: string;
34
+ fontWeight: number;
35
+ fontSize: string;
36
+ lineHeight: number;
37
+ };
38
+ h2: {
39
+ fontFamily: string;
40
+ letterSpacing: string;
41
+ fontWeight: number;
42
+ fontSize: string;
43
+ lineHeight: number;
44
+ };
45
+ h3: {
46
+ fontFamily: string;
47
+ letterSpacing: string;
48
+ fontWeight: number;
49
+ fontSize: string;
50
+ lineHeight: number;
51
+ };
52
+ h4: {
53
+ fontFamily: string;
54
+ letterSpacing: string;
55
+ fontWeight: number;
56
+ fontSize: string;
57
+ lineHeight: number;
58
+ };
59
+ h5: {
60
+ fontFamily: string;
61
+ letterSpacing: string;
62
+ fontWeight: number;
63
+ fontSize: string;
64
+ lineHeight: number;
65
+ };
66
+ h6: {
67
+ fontFamily: string;
68
+ letterSpacing: string;
69
+ fontWeight: number;
70
+ fontSize: string;
71
+ lineHeight: number;
72
+ };
73
+ subtitle2: {
74
+ fontFamily: string;
75
+ letterSpacing: string;
76
+ fontWeight: number;
77
+ fontSize: string;
78
+ lineHeight: number;
79
+ };
80
+ body1: {
81
+ fontFamily: string;
82
+ letterSpacing: string;
83
+ fontWeight: number;
84
+ fontSize: string;
85
+ lineHeight: number;
86
+ };
87
+ body2: {
88
+ fontFamily: string;
89
+ letterSpacing: string;
90
+ fontWeight: number;
91
+ fontSize: string;
92
+ lineHeight: number;
93
+ };
94
+ caption: {
95
+ fontFamily: string;
96
+ letterSpacing: string;
97
+ fontWeight: number;
98
+ fontSize: string;
99
+ lineHeight: number;
100
+ };
101
+ button: {
102
+ textTransform: "none";
103
+ fontWeight: number;
104
+ fontSize: string;
105
+ lineHeight: number;
106
+ fontFamily: string;
107
+ letterSpacing: string;
108
+ };
109
+ };
110
+ export declare const baseShadows: [string, ...string[]];
111
+ declare module '@mui/material/styles' {
112
+ interface Theme {
113
+ borderRadius: typeof borderRadius;
114
+ }
115
+ interface ThemeOptions {
116
+ borderRadius?: typeof borderRadius;
117
+ }
118
+ interface Palette {
119
+ counter: {
120
+ default: string;
121
+ defaultGradient: string;
122
+ selected: string;
123
+ selectedGradient: string;
124
+ error: string;
125
+ errorGradient: string;
126
+ };
127
+ mediumGray: string;
128
+ tagColors?: {
129
+ error: {
130
+ bg: string;
131
+ border: string;
132
+ text: string;
133
+ };
134
+ successLight: {
135
+ bg: string;
136
+ border: string;
137
+ text: string;
138
+ };
139
+ successSecondary: {
140
+ bg: string;
141
+ border: string;
142
+ text: string;
143
+ };
144
+ lightGray: {
145
+ bg: string;
146
+ border: string;
147
+ text: string;
148
+ };
149
+ white: {
150
+ bg: string;
151
+ border: string;
152
+ text: string;
153
+ };
154
+ yellow: {
155
+ bg: string;
156
+ border: string;
157
+ text: string;
158
+ };
159
+ warning: {
160
+ bg: string;
161
+ border: string;
162
+ text: string;
163
+ };
164
+ };
165
+ black: string;
166
+ banner: {
167
+ success: {
168
+ color: string;
169
+ contrast: string;
170
+ };
171
+ warning: {
172
+ color: string;
173
+ contrast: string;
174
+ };
175
+ error: {
176
+ color: string;
177
+ contrast: string;
178
+ };
179
+ info: {
180
+ color: string;
181
+ contrast: string;
182
+ };
183
+ };
184
+ primary: {
185
+ main: string;
186
+ light: string;
187
+ dark: string;
188
+ contrastText: string;
189
+ };
190
+ custom?: {
191
+ customColor: string;
192
+ };
193
+ }
194
+ interface PaletteOptions {
195
+ counter?: Partial<Palette['counter']>;
196
+ mediumGray?: string;
197
+ tagColors?: Palette['tagColors'];
198
+ custom?: {
199
+ customColor: string;
200
+ };
201
+ }
202
+ }
203
+ export declare const createAppTheme: (mode: PaletteMode, secondaryColor?: string) => Theme;
204
+ export declare const useAppTheme: (mode?: PaletteMode, secondaryColor?: string) => Theme;
205
+ export type Spacing = keyof typeof spacing;
206
+ export type BorderRadius = keyof typeof borderRadius;
207
+ export type FontSizes = keyof typeof fontSizes;
208
+ export declare const lucideIconProps: {
209
+ display: string;
210
+ alignItems: string;
211
+ justifyContent: string;
212
+ marginRight: string;
213
+ width: string;
214
+ height: string;
215
+ };
216
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,KAAK,EAEX,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,OAAO;;;;;;CAAoD,CAAC;AACzE,eAAO,MAAM,YAAY;;;;;;;CAA+D,CAAC;AAKzF,eAAO,MAAM,SAAS;;;;;;;CAA8D,CAAC;AAmBrF,eAAO,MAAM,UAAU;;;CAA6B,CAAC;AAErD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBtB,CAAC;AAKF,eAAO,MAAM,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAA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,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,YAAY,CAAC;AACrD,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,SAAS,CAAC;AAE/C,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAC"}
@@ -0,0 +1,116 @@
1
+ export type Size = 'sm' | 'md' | 'lg';
2
+ export declare const Sizes: Size[];
3
+ export type SmallMediumSize = 'sm' | 'md';
4
+ export declare const SmallMediumSizes: SmallMediumSize[];
5
+ export type Color = 'inherit' | 'primary' | 'secondary' | 'default' | 'error' | 'info' | 'success' | 'warning';
6
+ export declare const Colors: Color[];
7
+ export type Variant = 'text' | 'outlined' | 'contained';
8
+ export declare const Variants: Variant[];
9
+ export type ButtonVariant = Variant;
10
+ export type ButtonColor = Color;
11
+ export declare const ButtonColors: Color[];
12
+ export type ButtonSize = Size;
13
+ export declare const ButtonSizes: Size[];
14
+ export type IconButtonSize = Size;
15
+ export declare const IconButtonSizes: Size[];
16
+ export type IconButtonColor = Color;
17
+ export declare const IconButtonColors: Color[];
18
+ export type TextFieldVariant = 'standard' | 'outlined' | 'filled';
19
+ export declare const TextFieldVariants: TextFieldVariant[];
20
+ export type TextFieldSize = SmallMediumSize;
21
+ export declare const TextFieldSizes: SmallMediumSize[];
22
+ export type AvatarSize = Size;
23
+ export declare const AvatarSizes: Size[];
24
+ export type AlertColor = 'error' | 'info' | 'success' | 'warning' | 'primary' | 'secondary';
25
+ export declare const AlertColors: AlertColor[];
26
+ export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'button' | 'overline' | 'srOnly' | 'inherit';
27
+ export declare const TypographyVariants: TypographyVariant[];
28
+ export type HorizontalPosition = 'left' | 'center' | 'right';
29
+ export type VerticalPosition = 'top' | 'bottom';
30
+ export interface SnackbarPosition {
31
+ vertical: VerticalPosition;
32
+ horizontal: HorizontalPosition;
33
+ }
34
+ export type Alignment = 'inherit' | 'left' | 'center' | 'right' | 'justify';
35
+ export declare const Alignments: Alignment[];
36
+ export interface PaymentMethod {
37
+ id: string;
38
+ brand: string;
39
+ last4: string;
40
+ expiresText?: string;
41
+ creditText?: string;
42
+ isDefault?: boolean;
43
+ logoSrc?: string;
44
+ disabled?: boolean;
45
+ }
46
+ export type PhoneFieldProps = {
47
+ label?: string;
48
+ value?: string;
49
+ onChange?: (value: string) => void;
50
+ onBlur?: () => void;
51
+ isPhoneIncorrect?: (isIncorrect: boolean) => void;
52
+ getPhoneObj?: (phoneObj: {
53
+ number: string;
54
+ countryCode: string;
55
+ prefix: string;
56
+ }) => void;
57
+ countryCode?: string;
58
+ disabled?: boolean;
59
+ helperText?: string;
60
+ error?: boolean;
61
+ };
62
+ export type OptionType = "radio" | "checkbox" | "multiple";
63
+ export type ProductOptionItem = {
64
+ id: string;
65
+ label: string;
66
+ price?: number;
67
+ popular?: boolean;
68
+ disabled?: boolean;
69
+ helperText?: string;
70
+ image?: string;
71
+ description?: string;
72
+ };
73
+ export type ProductOptionGroup = {
74
+ id: string;
75
+ title: string;
76
+ subtitle?: string;
77
+ type: OptionType;
78
+ min?: number;
79
+ max?: number;
80
+ items: ProductOptionItem[];
81
+ selectedCountLabel?: (count: number) => string;
82
+ };
83
+ export type ProductDetail = {
84
+ id: string;
85
+ name: string;
86
+ description?: string;
87
+ image?: string;
88
+ alertTitle?: string;
89
+ alertMessage?: string;
90
+ allergens?: string;
91
+ priceCents?: number;
92
+ currency?: string;
93
+ };
94
+ export type SelectedOptions = Record<string, string[]>;
95
+ export type ProductDetailModalProps = {
96
+ open: boolean;
97
+ product: ProductDetail;
98
+ groups?: ProductOptionGroup[];
99
+ value?: SelectedOptions;
100
+ onChange?: (next: SelectedOptions) => void;
101
+ quantity: number;
102
+ onQuantityChange: (nextQty: number) => void;
103
+ onClose: () => void;
104
+ onAddToCart: () => void;
105
+ ctaLabel?: string;
106
+ maxWidth?: number;
107
+ alertTitle?: string;
108
+ alertMessage?: string;
109
+ };
110
+ export type OptionGroupProps = {
111
+ group: ProductOptionGroup;
112
+ value: SelectedOptions;
113
+ highlightError?: boolean;
114
+ onChange: (next: SelectedOptions) => void;
115
+ };
116
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.tsx"],"names":[],"mappings":"AACA,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtC,eAAO,MAAM,KAAK,EAAE,IAAI,EAAuB,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1C,eAAO,MAAM,gBAAgB,EAAE,eAAe,EAAiB,CAAC;AAEhE,MAAM,MAAM,KAAK,GACb,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,OAAO,GACP,MAAM,GACN,SAAS,GACT,SAAS,CAAC;AACd,eAAO,MAAM,MAAM,EAAE,KAAK,EASzB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,CAAC;AACxD,eAAO,MAAM,QAAQ,EAAE,OAAO,EAAsC,CAAC;AAGrE,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC;AAChC,eAAO,MAAM,YAAY,SAAS,CAAC;AAEnC,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC;AAC9B,eAAO,MAAM,WAAW,QAAQ,CAAC;AAGjC,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC;AAClC,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC;AACpC,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAGvC,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAClE,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,EAAuC,CAAC;AAEx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CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;CAC3C,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { ColorType, VariantType } from './constants.tsx';
2
+ import { ButtonProps as MuiButtonProps } from '@mui/material/Button';
3
+ import { IconName } from './icons.tsx';
4
+ import { ImageName } from './images.tsx';
5
+ import { ReactNode } from 'react';
6
+ export declare const mapVariant: (variantType: VariantType | undefined) => MuiButtonProps["variant"];
7
+ export declare const mapColor: (colorType: ColorType | undefined) => MuiButtonProps["color"];
8
+ interface IconOptions {
9
+ size?: number;
10
+ color?: string;
11
+ sx?: object;
12
+ }
13
+ interface ImageOptions {
14
+ size?: number;
15
+ sx?: object;
16
+ }
17
+ export declare const getIcon: (name: IconName, options?: IconOptions) => ReactNode;
18
+ export declare const getImageSrc: (name: ImageName) => string;
19
+ export declare const getImage: (name: string | ImageName, options?: ImageOptions, color?: string) => ReactNode;
20
+ export declare const clampLines: (lines?: number) => {
21
+ readonly display: "-webkit-box";
22
+ readonly WebkitLineClamp: number;
23
+ readonly WebkitBoxOrient: "vertical";
24
+ readonly overflow: "hidden";
25
+ readonly textOverflow: "ellipsis";
26
+ };
27
+ export declare const getColorDerivatives: (baseColor: string) => {
28
+ default: string;
29
+ hover: string;
30
+ disabledBg: string;
31
+ disabledText: string;
32
+ };
33
+ export declare const isLink: (str: string) => boolean;
34
+ export declare const isValidPrice: (value: string | number | undefined | null) => boolean;
35
+ export declare const TextStyled: React.FC<{
36
+ children: React.ReactNode;
37
+ variant?: "title" | "message";
38
+ color?: string;
39
+ bold?: boolean;
40
+ }>;
41
+ export declare const makeTitle: (text: string, imageName?: ImageName) => import("react/jsx-runtime").JSX.Element;
42
+ export declare const makeMessage: (text: string) => import("react/jsx-runtime").JSX.Element;
43
+ export declare const formatEuro: (amount: number) => string;
44
+ export {};
45
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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AM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,KAAG,OAMxE,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAaA,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,YAAY,SAAS,4CAK5D,CAAC;AAGF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,4CAIvC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,KAAG,MAE3C,CAAC"}
@@ -0,0 +1,48 @@
1
+ export type ValidationType = 'email' | 'password' | 'custom';
2
+ export interface ValidationConfig {
3
+ type: ValidationType;
4
+ customValidation?: (value: string) => boolean;
5
+ errorMessage?: string;
6
+ minLength?: number;
7
+ maxLength?: number;
8
+ pattern?: RegExp;
9
+ }
10
+ export interface ValidationOptions {
11
+ type?: ValidationType;
12
+ customValidation?: (value: string) => boolean;
13
+ errorMessage?: string;
14
+ minLength?: number;
15
+ maxLength?: number;
16
+ pattern?: RegExp;
17
+ }
18
+ export declare const validations: Record<string, (value: string, config?: ValidationOptions) => boolean>;
19
+ export declare const defaultErrorMessages: Record<string, string>;
20
+ export declare const detectValidationType: (inputType?: string, validationOptions?: ValidationOptions) => ValidationType | undefined;
21
+ export declare const validateField: (value: string, validationOptions?: ValidationOptions) => {
22
+ isValid: boolean;
23
+ errorMessage: string | null;
24
+ };
25
+ export declare const commonValidations: {
26
+ email: (value: string) => boolean;
27
+ strongPassword: (value: string) => boolean;
28
+ basicPassword: (value: string) => boolean;
29
+ username: (value: string) => boolean;
30
+ phone: (value: string) => boolean;
31
+ postalCode: (value: string) => boolean;
32
+ required: (value: string) => boolean;
33
+ minLength: (min: number) => (value: string) => boolean;
34
+ maxLength: (max: number) => (value: string) => boolean;
35
+ pattern: (regex: RegExp) => (value: string) => boolean;
36
+ };
37
+ export declare const commonErrorMessages: {
38
+ email: string;
39
+ strongPassword: string;
40
+ basicPassword: string;
41
+ username: string;
42
+ phone: string;
43
+ postalCode: string;
44
+ required: string;
45
+ minLength: (min: number) => string;
46
+ maxLength: (max: number) => string;
47
+ };
48
+ //# sourceMappingURL=validators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/utils/validators.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,cAAc,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,iBAAiB,KAAK,OAAO,CAe9F,CAAC;AAGF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIvD,CAAC;AAGF,eAAO,MAAM,oBAAoB,GAC/B,YAAY,MAAM,EAClB,oBAAoB,iBAAiB,KACpC,cAAc,GAAG,SAKnB,CAAC;AAGF,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,EACb,oBAAoB,iBAAiB,KACpC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CA0BjD,CAAC;AAGF,eAAO,MAAM,iBAAiB;mBAEb,MAAM;4BAMG,MAAM;2BASP,MAAM;sBAIX,MAAM;mBAKT,MAAM;wBAMD,MAAM;sBAKR,MAAM;qBAKP,MAAM,MAAM,OAAO,MAAM;qBAKzB,MAAM,MAAM,OAAO,MAAM;qBAKzB,MAAM,MAAM,OAAO,MAAM;CAG3C,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;qBAQb,MAAM;qBACN,MAAM;CACxB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dishopsaas/design-system",
3
3
  "private": false,
4
- "version": "0.0.48",
4
+ "version": "0.0.51",
5
5
  "description": "Design System Dishop (React + TS + MUI) minimal with Storybook",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -34,45 +34,37 @@
34
34
  "check:format": "prettier --check .",
35
35
  "lint": "eslint ."
36
36
  },
37
- "peerDependencies": {
38
- "@emotion/react": "^11",
39
- "@emotion/styled": "^11",
40
- "@mui/icons-material": "^7",
41
- "@mui/material": "^7",
42
- "react": "^18 || ^19",
43
- "react-dom": "^18 || ^19"
44
- },
45
37
  "devDependencies": {
46
38
  "@emotion/react": "^11.14.0",
47
39
  "@emotion/styled": "^11.14.1",
48
- "@eslint/js": "^9.33.0",
49
- "@mui/icons-material": "^7.3.1",
50
- "@mui/material": "^7.3.5",
51
- "@types/react": "^19.1.11",
52
- "@types/react-dom": "^19.1.8",
53
- "@vitejs/plugin-react": "^5.0.0",
54
- "eslint": "^9.33.0",
40
+ "@eslint/js": "^9.39.1",
41
+ "@mui/material": "^7.3.6",
42
+ "@storybook/react": "^10.1.11",
43
+ "@types/react": "^19.2.7",
44
+ "@types/react-dom": "^19.2.3",
45
+ "@vitejs/plugin-react": "^5.1.2",
46
+ "eslint": "^9.39.1",
55
47
  "eslint-config-prettier": "^10.1.8",
56
- "eslint-plugin-react-hooks": "^5.2.0",
57
- "eslint-plugin-react-refresh": "^0.4.20",
58
- "eslint-plugin-storybook": "10.0.8",
59
- "globals": "^16.3.0",
60
- "prettier": "^3.6.2",
61
- "react": "^19.1.1",
62
- "react-dom": "^19.1.1",
63
- "storybook": "^10.0.8",
64
- "typescript": "~5.8.3",
65
- "vite": "^7.1.2",
48
+ "eslint-plugin-react-hooks": "^7.0.1",
49
+ "eslint-plugin-react-refresh": "^0.4.24",
50
+ "eslint-plugin-storybook": "10.1.7",
51
+ "globals": "^16.5.0",
52
+ "prettier": "^3.7.4",
53
+ "react": "^19.2.3",
54
+ "react-dom": "^19.2.3",
55
+ "storybook": "^10.1.7",
56
+ "typescript": "~5.9.3",
57
+ "vite": "^7.2.7",
66
58
  "vite-plugin-static-copy": "^3.1.4"
67
59
  },
68
60
  "engines": {
69
61
  "node": ">=22.0.0"
70
62
  },
71
63
  "dependencies": {
72
- "@storybook/react-vite": "^10.0.8",
73
- "@stripe/react-stripe-js": "^3.9.2",
74
- "@stripe/stripe-js": "^7.9.0",
75
- "lucide-react": "^0.542.0",
64
+ "@storybook/react-vite": "^10.1.7",
65
+ "@stripe/react-stripe-js": "^5.4.1",
66
+ "@stripe/stripe-js": "^8.5.3",
67
+ "lucide-react": "^0.561.0",
76
68
  "mui-tel-input": "^9.0.1",
77
69
  "react-perfect-scrollbar": "^1.5.8",
78
70
  "vite-plugin-dts": "^4.5.4"
@@ -1 +0,0 @@
1
- .design-system-wrapper{font-family:GT America LCGV VF,sans-serif;color:#333;background-color:#fff}.design-system-wrapper h1{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:24px;line-height:1.2;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper h2{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:20px;line-height:1.25;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper h3{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:18px;line-height:1.25;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper h4{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:16px;line-height:1.2;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper h5{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:14px;line-height:1.25;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper h6{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:600;font-size:12px;line-height:1.25;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper .subtitle2{font-family:GT America LCGV VF,sans-serif;font-weight:500;font-size:14px;line-height:1.125}.design-system-wrapper .body1{font-family:GT America LCGV VF,sans-serif;font-weight:400;font-size:18px;line-height:1.25}.design-system-wrapper .body2{font-family:GT America LCGV VF,sans-serif;font-weight:400;font-size:14px;line-height:1.125}.design-system-wrapper .caption{font-family:GT America LCGV VF,sans-serif;font-weight:400;font-size:12px;line-height:1.2}.design-system-wrapper button{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:14px;line-height:1.25}.design-system-wrapper .accordion{box-shadow:none;border-bottom:1px solid #E1E1E1}.design-system-wrapper .accordion-header{min-height:32px;padding:8px}.design-system-wrapper .accordion-header.expanded{border:1px solid #E1E1E1}.design-system-wrapper .accordion-header svg{width:24px;height:24px}.design-system-wrapper .list-item-icon{min-width:0!important;margin-right:15px;display:flex;align-items:center;justify-content:center;width:20px;height:20px}:root{--ds-primary-color: #1E90FF;--ds-secondary-color: #9013FE;--ds-error-color: #D6392C;--ds-success-color: #039F43;--ds-warning-color: #FFC107;--ds-info-color: #17A2B8;--ds-gray-50: #F9F9F9;--ds-gray-100: #F0F0F0;--ds-gray-200: #E0E0E0;--ds-gray-300: #CFCFCF;--ds-gray-400: #B0B0B0;--ds-gray-500: #999999;--ds-gray-600: #707070;--ds-gray-700: #2D2E2C;--ds-gray-800: #3D3D3D;--ds-gray-900: #1A1A1A}