@preply/ds-core 0.60.0 → 0.61.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.
@@ -1,6 +1,30 @@
1
1
  /**
2
- * AUTO GENERATED @Mon Jul 24 2023 12:25:14 GMT+0000 (Coordinated Universal Time)
2
+ * AUTO GENERATED @Thu Aug 10 2023 15:10:52 GMT+0000 (Coordinated Universal Time)
3
3
  */
4
+ /**
5
+ * action.variant.*.active.borderColor
6
+ */
7
+ export declare type ActionVariantActiveBorderColor = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'plain' | 'dangerous' | 'critical';
8
+ /**
9
+ * action.variant.*.disabled.bgColor
10
+ */
11
+ export declare type ActionVariantDisabledBgColor = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'plain' | 'dangerous' | 'critical';
12
+ /**
13
+ * action.variant.*.disabled.borderColor
14
+ */
15
+ export declare type ActionVariantDisabledBorderColor = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'plain' | 'dangerous' | 'critical';
16
+ /**
17
+ * action.variant.*.disabled.color
18
+ */
19
+ export declare type ActionVariantDisabledColor = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'plain' | 'dangerous' | 'critical';
20
+ /**
21
+ * action.variant.*.hover.borderColor
22
+ */
23
+ export declare type ActionVariantHoverBorderColor = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'plain' | 'dangerous' | 'critical';
24
+ /**
25
+ * action.variant.*.textDecoration
26
+ */
27
+ export declare type ActionVariantTextDecoration = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'plain' | 'dangerous' | 'critical';
4
28
  /**
5
29
  * avatar.size.*
6
30
  */
@@ -25,6 +49,30 @@ export declare type BoxRadius = 'none' | 'm' | 'l';
25
49
  * responsive.breakpoints.*
26
50
  */
27
51
  export declare type Breakpoint = 'narrow-l' | 'medium-s' | 'medium-l' | 'wide-s' | 'wide-l';
52
+ /**
53
+ * button.*.fontFamily
54
+ */
55
+ export declare type ButtonFontFamily = 'large' | 'default' | 'medium' | 'small';
56
+ /**
57
+ * button.*.fontSize
58
+ */
59
+ export declare type ButtonFontSize = 'large' | 'medium' | 'default' | 'small';
60
+ /**
61
+ * button.*.fontWeight
62
+ */
63
+ export declare type ButtonFontWeight = 'large' | 'medium' | 'default' | 'small';
64
+ /**
65
+ * button.*.height
66
+ */
67
+ export declare type ButtonHeight = 'large' | 'medium' | 'small';
68
+ /**
69
+ * button.*.horizontalPadding
70
+ */
71
+ export declare type ButtonHorizontalPadding = 'large' | 'medium' | 'small';
72
+ /**
73
+ * button.*.lineHeight
74
+ */
75
+ export declare type ButtonLineHeight = 'large' | 'medium' | 'default' | 'small';
28
76
  /**
29
77
  * action.size.*
30
78
  */
@@ -32,15 +80,83 @@ export declare type ButtonSize = 'xs' | 's' | 'm' | 'l' | 'xl';
32
80
  /**
33
81
  * action.variant.*
34
82
  */
35
- export declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'plain' | 'dangerous';
83
+ export declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'plain' | 'dangerous' | 'critical';
84
+ /**
85
+ * button.*.verticalPadding
86
+ */
87
+ export declare type ButtonVerticalPadding = 'large' | 'medium' | 'small';
88
+ /**
89
+ * color.background.*
90
+ */
91
+ export declare type ColorBackground = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'overlay' | 'disabled' | 'accentLight' | 'positiveLight' | 'infoLight' | 'warningLight' | 'criticalLight' | 'accentDark' | 'positiveDark' | 'infoDark' | 'warningDark' | 'criticalDark';
92
+ /**
93
+ * color.background.*.action.active
94
+ */
95
+ export declare type ColorBackgroundActionActive = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical';
96
+ /**
97
+ * color.background.*.action.hover
98
+ */
99
+ export declare type ColorBackgroundActionHover = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical';
100
+ /**
101
+ * color.background.*.action.rest
102
+ */
103
+ export declare type ColorBackgroundActionRest = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical';
104
+ /**
105
+ * color.blue.*
106
+ */
107
+ export declare type ColorBlue = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
108
+ /**
109
+ * color.border.*
110
+ */
111
+ export declare type ColorBorder = 'primary' | 'secondary' | 'focus' | 'critical' | 'tertiary';
112
+ /**
113
+ * color.border.*.action
114
+ */
115
+ export declare type ColorBorderAction = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical' | 'disabled';
116
+ /**
117
+ * color.grey.*
118
+ */
119
+ export declare type ColorGrey = '0' | '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '900-56';
120
+ /**
121
+ * color.grey.*.*
122
+ */
123
+ export declare type ColorGreyOpacity = '900-56';
124
+ /**
125
+ * color.icon.*
126
+ */
127
+ export declare type ColorIcon = 'primary' | 'secondary' | 'tertiary' | 'positive' | 'info' | 'warning' | 'critical' | 'accent';
36
128
  /**
37
129
  * color.*
38
130
  */
39
131
  export declare type ColorName = 'white' | 'gray-100' | 'gray-200' | 'gray-300' | 'gray-400' | 'gray-500' | 'gray-600' | 'teal-100' | 'teal-200' | 'teal-300' | 'teal-400' | 'teal-500' | 'green-100' | 'green-200' | 'green-300' | 'green-400' | 'green-500' | 'yellow-100' | 'yellow-200' | 'yellow-300' | 'yellow-400' | 'yellow-500' | 'red-100' | 'red-200' | 'red-300' | 'red-400' | 'red-500' | 'blue-100' | 'blue-200' | 'blue-300' | 'blue-400' | 'blue-500' | 'magenta-100' | 'magenta-200' | 'magenta-300' | 'magenta-400' | 'magenta-500';
132
+ /**
133
+ * color.pink.*
134
+ */
135
+ export declare type ColorPink = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
136
+ /**
137
+ * color.red.*
138
+ */
139
+ export declare type ColorRed = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
40
140
  /**
41
141
  * core.colorScheme.*
42
142
  */
43
143
  export declare type ColorSchemeName = 'base' | 'banner' | 'invert';
144
+ /**
145
+ * color.teal.*
146
+ */
147
+ export declare type ColorTeal = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
148
+ /**
149
+ * color.text.*
150
+ */
151
+ export declare type ColorText = 'primary' | 'secondary' | 'tertiary' | 'positive' | 'info' | 'warning' | 'critical' | 'accent';
152
+ /**
153
+ * color.text.*.action
154
+ */
155
+ export declare type ColorTextAction = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical' | 'disabled';
156
+ /**
157
+ * color.yellow.*
158
+ */
159
+ export declare type ColorYellow = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
44
160
  /**
45
161
  * heading.level.*
46
162
  */
@@ -85,6 +201,22 @@ export declare type LayoutPadding = 'none' | '3xs' | '2xs' | 'xs' | 's' | 'm' |
85
201
  * layout.tag.*
86
202
  */
87
203
  export declare type LayoutTag = 'div' | 'main' | 'header' | 'footer' | 'article' | 'section' | 'ul' | 'ol' | 'li' | 'p' | 'span' | 'fieldset' | 'table' | 'th' | 'tr' | 'td' | 'thead' | 'tfoot' | 'tbody' | 'caption' | 'figure' | 'figcaption';
204
+ /**
205
+ * link.*.fontFamily
206
+ */
207
+ export declare type LinkFontFamily = 'large' | 'default' | 'small';
208
+ /**
209
+ * link.*.fontSize
210
+ */
211
+ export declare type LinkFontSize = 'large' | 'default' | 'small';
212
+ /**
213
+ * link.*.fontWeight
214
+ */
215
+ export declare type LinkFontWeight = 'large' | 'default' | 'small';
216
+ /**
217
+ * link.*.lineHeight
218
+ */
219
+ export declare type LinkLineHeight = 'large' | 'default' | 'small';
88
220
  /**
89
221
  * panel.padding.*.padding
90
222
  */
@@ -93,10 +225,34 @@ export declare type PanelPadding = 'small' | 'base' | 'medium' | 'large';
93
225
  * preplyLogo.variant.*
94
226
  */
95
227
  export declare type PreplyLogoVariant = 'default' | 'monochrome' | 'ua';
228
+ /**
229
+ * radius.*
230
+ */
231
+ export declare type Radius = '2' | '4' | '8' | '300';
232
+ /**
233
+ * spacing.*
234
+ */
235
+ export declare type Spacing = '0' | '2' | '4' | '8' | '12' | '16' | '24' | '32' | '48' | '64' | '88' | '120';
96
236
  /**
97
237
  * text.accent.*
98
238
  */
99
239
  export declare type TextAccent = 'primary' | 'secondary' | 'branded' | 'positive' | 'error' | 'tertiary' | 'selected' | 'warning' | 'info' | 'accent' | 'disabled';
240
+ /**
241
+ * text.heading.*.fontFamily
242
+ */
243
+ export declare type TextHeadingFontFamily = 'huge' | 'extraLarge' | 'large' | 'medium' | 'small';
244
+ /**
245
+ * text.heading.*.fontSize
246
+ */
247
+ export declare type TextHeadingFontSize = 'huge' | 'extraLarge' | 'large' | 'medium' | 'small';
248
+ /**
249
+ * text.heading.*.fontWeight
250
+ */
251
+ export declare type TextHeadingFontWeight = 'huge' | 'extraLarge' | 'large' | 'medium' | 'small';
252
+ /**
253
+ * text.heading.*.lineHeight
254
+ */
255
+ export declare type TextHeadingLingHeight = 'huge' | 'extraLarge' | 'large' | 'medium' | 'small';
100
256
  /**
101
257
  * text.highlight.*
102
258
  */
@@ -105,6 +261,38 @@ export declare type TextHighlight = 'blue' | 'green';
105
261
  * text.inline.tag.*
106
262
  */
107
263
  export declare type TextInlineTag = 'span' | 'strong' | 'em';
264
+ /**
265
+ * text.*.regular.body.fontFamily
266
+ */
267
+ export declare type TextRegularBodyFontFamily = 'large' | 'default' | 'small' | 'caption';
268
+ /**
269
+ * text.*.regular.body.fontSize
270
+ */
271
+ export declare type TextRegularBodyFontSize = 'large' | 'default' | 'small' | 'caption';
272
+ /**
273
+ * text.*.regular.body.fontWeight
274
+ */
275
+ export declare type TextRegularBodyFontWeight = 'large' | 'default' | 'small' | 'caption';
276
+ /**
277
+ * text.*.regular.body.lineHeight
278
+ */
279
+ export declare type TextRegularBodyLineHeight = 'large' | 'default' | 'small' | 'caption';
280
+ /**
281
+ * text.*.semiBold.body.fontFamily
282
+ */
283
+ export declare type TextSemiBoldBodyFontFamily = 'large' | 'default' | 'small' | 'caption';
284
+ /**
285
+ * text.*.semiBold.body.fontSize
286
+ */
287
+ export declare type TextSemiBoldBodyFontSize = 'large' | 'default' | 'small' | 'caption';
288
+ /**
289
+ * text.*.semiBold.body.fontWeight
290
+ */
291
+ export declare type TextSemiBoldBodyFontWeight = 'large' | 'default' | 'small' | 'caption';
292
+ /**
293
+ * text.*.semiBold.body.lineHeight
294
+ */
295
+ export declare type TextSemiBoldBodyLineHeight = 'large' | 'default' | 'small' | 'caption';
108
296
  /**
109
297
  * text.size.*
110
298
  */
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { BREAKPOINT } from './generated/breakpoints.js';
2
2
  export { AVATAR_SIZE_DEFAULT, BADGE_COLOR_DEFAULT, BADGE_SIZE_DEFAULT, BOX_PADDING_DEFAULT, BOX_RADIUS_DEFAULT, BUTTON_SIZE_DEFAULT, BUTTON_VARIANT_DEFAULT, COLOR_SCHEME_DEFAULT, ICON_SIZE_DEFAULT, LAYOUT_FLEX_DIRECTION_DEFAULT, LAYOUT_GAP_DEFAULT, LAYOUT_PADDING_DEFAULT, LAYOUT_TAG_DEFAULT, PANEL_PADDING_DEFAULT, PREPLY_LOGO_VARIANT_DEFAULT, TEXT_ACCENT_DEFAULT, TEXT_HIGHLIGHT_DEFAULT, TEXT_INLINE_TAG_DEFAULT, TEXT_SIZE_DEFAULT, TEXT_TAG_DEFAULT, TEXT_VARIANT_DEFAULT, TEXT_WEIGHT_DEFAULT, THEME_DEFAULT } from './generated/defaults.js';
3
- export { action, avatar, background, badge, border, box, content, heading, icon, input, panel, root, scheme, text, tokens } from './generated/tokens.js';
4
- export { AVATAR_SIZE_OPTIONS, BADGE_COLOR_OPTIONS, BADGE_SIZE_OPTIONS, BOX_PADDING_OPTIONS, BOX_RADIUS_OPTIONS, BUTTON_SIZE_OPTIONS, BUTTON_VARIANT_OPTIONS, COLOR_NAME_OPTIONS, COLOR_SCHEME_OPTIONS, HEADING_LEVEL_OPTIONS, HEADING_TAG_OPTIONS, ICON_SIZE_OPTIONS, LAYOUT_ALIGN_ITEMS_OPTIONS, LAYOUT_ALIGN_SELF_OPTIONS, LAYOUT_FLEX_DIRECTION_OPTIONS, LAYOUT_GAP_OPTIONS, LAYOUT_JUSTIFY_CONTENT_OPTIONS, LAYOUT_JUSTIFY_ITEMS_OPTIONS, LAYOUT_PADDING_OPTIONS, LAYOUT_TAG_OPTIONS, PANEL_PADDING_OPTIONS, PREPLY_LOGO_VARIANT_OPTIONS, TEXT_ACCENT_OPTIONS, TEXT_HIGHLIGHT_OPTIONS, TEXT_INLINE_TAG_OPTIONS, TEXT_SIZE_OPTIONS, TEXT_TAG_OPTIONS, TEXT_VARIANT_OPTIONS, TEXT_WEIGHT_OPTIONS, THEME_OPTIONS } from './generated/options.js';
3
+ export { action, avatar, background, badge, border, box, button, color, content, heading, icon, input, link, panel, radius, root, scheme, spacing, text, tokens } from './generated/tokens.js';
4
+ export { ACTION_VARIANT_ACTIVE_BORDER_COLOR_OPTIONS, ACTION_VARIANT_DISABLED_BG_COLOR_OPTIONS, ACTION_VARIANT_DISABLED_BORDER_COLOR_OPTIONS, ACTION_VARIANT_DISABLED_COLOR_OPTIONS, ACTION_VARIANT_HOVER_BORDER_COLOR_OPTIONS, ACTION_VARIANT_TEXT_DECORATION_OPTIONS, AVATAR_SIZE_OPTIONS, BADGE_COLOR_OPTIONS, BADGE_SIZE_OPTIONS, BOX_PADDING_OPTIONS, BOX_RADIUS_OPTIONS, BUTTON_FONT_FAMILY_OPTIONS, BUTTON_FONT_SIZE_OPTIONS, BUTTON_FONT_WEIGHT_OPTIONS, BUTTON_HEIGHT_OPTIONS, BUTTON_HORIZONTAL_PADDING_OPTIONS, BUTTON_LINE_HEIGHT_OPTIONS, BUTTON_SIZE_OPTIONS, BUTTON_VARIANT_OPTIONS, BUTTON_VERTICAL_PADDING_OPTIONS, COLOR_BACKGROUND_ACTION_ACTIVE_OPTIONS, COLOR_BACKGROUND_ACTION_HOVER_OPTIONS, COLOR_BACKGROUND_ACTION_REST_OPTIONS, COLOR_BACKGROUND_OPTIONS, COLOR_BLUE_OPTIONS, COLOR_BORDER_ACTION_OPTIONS, COLOR_BORDER_OPTIONS, COLOR_GREY_OPACITY_OPTIONS, COLOR_GREY_OPTIONS, COLOR_ICON_OPTIONS, COLOR_NAME_OPTIONS, COLOR_PINK_OPTIONS, COLOR_RED_OPTIONS, COLOR_SCHEME_OPTIONS, COLOR_TEAL_OPTIONS, COLOR_TEXT_ACTION_OPTIONS, COLOR_TEXT_OPTIONS, COLOR_YELLOW_OPTIONS, HEADING_LEVEL_OPTIONS, HEADING_TAG_OPTIONS, ICON_SIZE_OPTIONS, LAYOUT_ALIGN_ITEMS_OPTIONS, LAYOUT_ALIGN_SELF_OPTIONS, LAYOUT_FLEX_DIRECTION_OPTIONS, LAYOUT_GAP_OPTIONS, LAYOUT_JUSTIFY_CONTENT_OPTIONS, LAYOUT_JUSTIFY_ITEMS_OPTIONS, LAYOUT_PADDING_OPTIONS, LAYOUT_TAG_OPTIONS, LINK_FONT_FAMILY_OPTIONS, LINK_FONT_SIZE_OPTIONS, LINK_FONT_WEIGHT_OPTIONS, LINK_LINE_HEIGHT_OPTIONS, PANEL_PADDING_OPTIONS, PREPLY_LOGO_VARIANT_OPTIONS, RADIUS_OPTIONS, SPACING_OPTIONS, TEXT_ACCENT_OPTIONS, TEXT_HEADING_FONT_FAMILY_OPTIONS, TEXT_HEADING_FONT_SIZE_OPTIONS, TEXT_HEADING_FONT_WEIGHT_OPTIONS, TEXT_HEADING_LING_HEIGHT_OPTIONS, TEXT_HIGHLIGHT_OPTIONS, TEXT_INLINE_TAG_OPTIONS, TEXT_REGULAR_BODY_FONT_FAMILY_OPTIONS, TEXT_REGULAR_BODY_FONT_SIZE_OPTIONS, TEXT_REGULAR_BODY_FONT_WEIGHT_OPTIONS, TEXT_REGULAR_BODY_LINE_HEIGHT_OPTIONS, TEXT_SEMI_BOLD_BODY_FONT_FAMILY_OPTIONS, TEXT_SEMI_BOLD_BODY_FONT_SIZE_OPTIONS, TEXT_SEMI_BOLD_BODY_FONT_WEIGHT_OPTIONS, TEXT_SEMI_BOLD_BODY_LINE_HEIGHT_OPTIONS, TEXT_SIZE_OPTIONS, TEXT_TAG_OPTIONS, TEXT_VARIANT_OPTIONS, TEXT_WEIGHT_OPTIONS, THEME_OPTIONS } from './generated/options.js';
5
5
  export { AVATAR_SRC_DEFAULT } from './avatar/constants.js';
6
6
  export { colorSchemeConfig } from './color-scheme/config.js';
7
7
  export { makeTinyId } from './id/utils/generators.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@preply/ds-core",
3
- "version": "0.60.0",
3
+ "version": "0.61.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -19,10 +19,10 @@
19
19
  "dev": "run build:rollup -w"
20
20
  },
21
21
  "dependencies": {
22
- "@preply/ds-core-types": "0.60.0"
22
+ "@preply/ds-core-types": "0.61.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "@preply/ds-core-types": "0.60.0"
25
+ "@preply/ds-core-types": "0.61.0"
26
26
  },
27
- "gitHead": "944b9eb386d5b0e2f1d5b8c7e370f2dc16c1b9b1"
27
+ "gitHead": "f5170617651877026c957063f7b2a17e8531d11c"
28
28
  }