@preply/ds-core 0.63.0 → 0.64.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,5 +1,5 @@
1
1
  /**
2
- * AUTO GENERATED @Fri Aug 18 2023 09:02:21 GMT+0000 (Coordinated Universal Time)
2
+ * AUTO GENERATED @Tue Aug 29 2023 09:22:19 GMT+0000 (Coordinated Universal Time)
3
3
  */
4
4
  /**
5
5
  * action.variant.*.active.borderColor
@@ -28,7 +28,11 @@ export declare type ActionVariantTextDecoration = 'primary' | 'secondary' | 'ter
28
28
  /**
29
29
  * avatar.size.*
30
30
  */
31
- export declare type AvatarSize = '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl';
31
+ export declare type AvatarSize = '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '24' | '32' | '48' | '64' | '96' | '160';
32
+ /**
33
+ * badge.accent.*
34
+ */
35
+ export declare type BadgeAccent = 'accent' | 'positive' | 'critical' | 'warning' | 'info' | 'tertiary';
32
36
  /**
33
37
  * badge.color.*
34
38
  */
@@ -36,7 +40,7 @@ export declare type BadgeColor = 'gray' | 'teal' | 'green' | 'blue' | 'yellow' |
36
40
  /**
37
41
  * badge.size.*
38
42
  */
39
- export declare type BadgeSize = 'xs' | 's' | 'm';
43
+ export declare type BadgeSize = 'xs' | 's' | 'm' | 'default';
40
44
  /**
41
45
  * root.space.*
42
46
  */
@@ -44,7 +48,7 @@ export declare type BoxPadding = 'none' | '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l'
44
48
  /**
45
49
  * box.radius.*
46
50
  */
47
- export declare type BoxRadius = 'none' | 'm' | 'l';
51
+ export declare type BoxRadius = 'none' | 'm' | 'l' | '2' | '4' | '8' | '0' | '2' | '4' | '8' | '12' | '16' | '24' | '32' | '48' | '64' | '96' | '160';
48
52
  /**
49
53
  * responsive.breakpoints.*
50
54
  */
@@ -88,75 +92,75 @@ export declare type ButtonVerticalPadding = 'large' | 'medium' | 'small';
88
92
  /**
89
93
  * color.background.*
90
94
  */
91
- export declare type ColorBackground = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'overlay' | 'disabled' | 'accentLight' | 'positiveLight' | 'infoLight' | 'warningLight' | 'criticalLight' | 'accentDark' | 'positiveDark' | 'infoDark' | 'warningDark' | 'criticalDark';
95
+ export declare type ColorBackground = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'overlay' | 'disabled' | 'brand' | 'accent' | 'positive' | 'info' | 'warning' | 'critical';
92
96
  /**
93
- * color.background.*.action.active
97
+ * dsInternalPrimitive.color.background.*.action.active
94
98
  */
95
- export declare type ColorBackgroundActionActive = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical';
99
+ export declare type ColorBackgroundActionActiveDsInternalPrimitive = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical';
96
100
  /**
97
- * color.background.*.action.hover
101
+ * dsInternalPrimitive.color.background.*.action.hover
98
102
  */
99
- export declare type ColorBackgroundActionHover = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical';
103
+ export declare type ColorBackgroundActionHoverDsInternalPrimitive = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical';
100
104
  /**
101
- * color.background.*.action.rest
105
+ * dsInternalPrimitive.color.background.*.action.rest
102
106
  */
103
- export declare type ColorBackgroundActionRest = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical';
107
+ export declare type ColorBackgroundActionRestDsInternalPrimitive = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical';
104
108
  /**
105
- * color.blue.*
109
+ * dsInternalPrimitive.color.blue.*
106
110
  */
107
- export declare type ColorBlue = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
111
+ export declare type ColorBlueDsInternalPrimitive = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
108
112
  /**
109
113
  * color.border.*
110
114
  */
111
- export declare type ColorBorder = 'primary' | 'secondary' | 'focus' | 'critical' | 'tertiary';
115
+ export declare type ColorBorder = 'primary' | 'secondary' | 'focus' | 'critical' | 'tertiary' | 'brand';
112
116
  /**
113
- * color.border.*.action
117
+ * dsInternalPrimitive.color.border.*.action
114
118
  */
115
- export declare type ColorBorderAction = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical' | 'disabled';
119
+ export declare type ColorBorderActionDsInternalPrimitive = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical' | 'disabled';
116
120
  /**
117
- * color.grey.*
121
+ * dsInternalPrimitive.color.grey.*
118
122
  */
119
- export declare type ColorGrey = '0' | '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '900-56';
123
+ export declare type ColorGreyDsInternalPrimitive = '0' | '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '900-56' | '900-6';
120
124
  /**
121
- * color.grey.*.*
125
+ * dsInternalPrimitive.color.grey.*.*
122
126
  */
123
- export declare type ColorGreyOpacity = '900-56';
127
+ export declare type ColorGreyOpacityDsInternalPrimitive = '900-56';
124
128
  /**
125
129
  * color.icon.*
126
130
  */
127
- export declare type ColorIcon = 'primary' | 'secondary' | 'tertiary' | 'positive' | 'info' | 'warning' | 'critical' | 'accent';
131
+ export declare type ColorIcon = 'primary' | 'secondary' | 'tertiary' | 'positive' | 'info' | 'warning' | 'critical' | 'brand';
128
132
  /**
129
133
  * color.*
130
134
  */
131
135
  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
136
  /**
133
- * color.pink.*
137
+ * dsInternalPrimitive.color.pink.*
134
138
  */
135
- export declare type ColorPink = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
139
+ export declare type ColorPinkDsInternalPrimitive = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
136
140
  /**
137
- * color.red.*
141
+ * dsInternalPrimitive.color.red.*
138
142
  */
139
- export declare type ColorRed = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
143
+ export declare type ColorRedDsInternalPrimitive = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
140
144
  /**
141
145
  * core.colorScheme.*
142
146
  */
143
147
  export declare type ColorSchemeName = 'base' | 'banner' | 'invert';
144
148
  /**
145
- * color.teal.*
149
+ * dsInternalPrimitive.color.teal.*
146
150
  */
147
- export declare type ColorTeal = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
151
+ export declare type ColorTealDsInternalPrimitive = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
148
152
  /**
149
153
  * color.text.*
150
154
  */
151
- export declare type ColorText = 'primary' | 'secondary' | 'tertiary' | 'positive' | 'info' | 'warning' | 'critical' | 'accent';
155
+ export declare type ColorText = 'primary' | 'secondary' | 'tertiary' | 'brand' | 'accent' | 'positive' | 'info' | 'warning' | 'critical';
152
156
  /**
153
- * color.text.*.action
157
+ * dsInternalPrimitive.color.text.*.action
154
158
  */
155
- export declare type ColorTextAction = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical' | 'disabled';
159
+ export declare type ColorTextActionDsInternalPrimitive = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'critical' | 'disabled';
156
160
  /**
157
- * color.yellow.*
161
+ * dsInternalPrimitive.color.yellow.*
158
162
  */
159
- export declare type ColorYellow = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
163
+ export declare type ColorYellowDsInternalPrimitive = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800';
160
164
  /**
161
165
  * heading.level.*
162
166
  */
@@ -232,7 +236,11 @@ export declare type Radius = '2' | '4' | '8' | '300';
232
236
  /**
233
237
  * spacing.*
234
238
  */
235
- export declare type Spacing = '0' | '2' | '4' | '8' | '12' | '16' | '24' | '32' | '48' | '64' | '88' | '120';
239
+ export declare type Spacing = '0' | '2' | '4' | '8' | '12' | '16' | '24' | '32' | '48' | '64' | '96' | '160';
240
+ /**
241
+ * spinner.size.*
242
+ */
243
+ export declare type SpinnerSize = 'default' | 'large';
236
244
  /**
237
245
  * text.accent.*
238
246
  */
@@ -256,7 +264,7 @@ export declare type TextHeadingLingHeight = 'huge' | 'extraLarge' | 'large' | 'm
256
264
  /**
257
265
  * text.highlight.*
258
266
  */
259
- export declare type TextHighlight = 'blue' | 'green';
267
+ export declare type TextHighlight = 'blue' | 'green' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'positive' | 'info' | 'warning' | 'critical';
260
268
  /**
261
269
  * text.inline.tag.*
262
270
  */
@@ -304,7 +312,7 @@ export declare type TextTag = 'p' | 'div' | 'span';
304
312
  /**
305
313
  * text.variant.*
306
314
  */
307
- export declare type TextVariant = 'xs' | 'xs-medium' | 's' | 's-italic' | 's-medium' | 's-medium-italic' | 's-bold' | 's-bold-italic' | 'm' | 'm-italic' | 'm-medium' | 'm-medium-italic' | 'm-bold' | 'm-bold-italic' | 'l' | 'l-italic' | 'l-medium' | 'l-medium-italic' | 'xl' | 'xl-italic' | 'xl-medium' | 'xl-medium-italic';
315
+ export declare type TextVariant = 'xs' | 'xs-medium' | 's' | 's-italic' | 's-medium' | 's-medium-italic' | 's-bold' | 's-bold-italic' | 'm' | 'm-italic' | 'm-medium' | 'm-medium-italic' | 'm-bold' | 'm-bold-italic' | 'default' | 'default-italic' | 'default-medium' | 'default-medium-italic' | 'default-bold' | 'default-bold-italic' | 'l' | 'l-italic' | 'l-medium' | 'l-medium-italic' | 'xl' | 'xl-italic' | 'xl-medium' | 'xl-medium-italic';
308
316
  /**
309
317
  * text.weight.*
310
318
  */
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export { BREAKPOINT } from './generated/breakpoints.js';
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, 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
- export { AVATAR_SRC_DEFAULT } from './avatar/constants.js';
2
+ export { AVATAR_SIZE_DEFAULT, BADGE_COLOR_DEFAULT, BADGE_SIZE_DEFAULT, BOX_PADDING_DEFAULT, BOX_RADIUS_DEFAULT, BUTTON_SIZE_DEFAULT, BUTTON_VARIANT_DEFAULT, COLOR_ICON_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, SPACING_DEFAULT, SPINNER_SIZE_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, badge, border, box, button, color, content, dsInternalPrimitive, heading, icon, input, link, panel, radius, root, scheme, spacing, spinner, 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_ACCENT_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_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_BACKGROUND_ACTION_HOVER_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_BACKGROUND_ACTION_REST_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_BACKGROUND_OPTIONS, COLOR_BLUE_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_BORDER_ACTION_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_BORDER_OPTIONS, COLOR_GREY_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_GREY_OPACITY_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_ICON_OPTIONS, COLOR_NAME_OPTIONS, COLOR_PINK_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_RED_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_SCHEME_OPTIONS, COLOR_TEAL_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_TEXT_ACTION_DS_INTERNAL_PRIMITIVE_OPTIONS, COLOR_TEXT_OPTIONS, COLOR_YELLOW_DS_INTERNAL_PRIMITIVE_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, SPINNER_SIZE_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
+ export { AVATAR_SRC_DEFAULT, AVATAR_SRC_DEFAULT_TOKYO_UI } from './avatar/constants.js';
6
6
  export { colorSchemeConfig } from './color-scheme/config.js';
7
7
  export { makeTinyId } from './id/utils/generators.js';
8
8
  export { LAYOUT_DISPLAY_DEFAULT } from './layout/constants.js';
@@ -1,11 +1,11 @@
1
1
  import { Dataset } from '../dataset';
2
- import type { LayoutAlignItems, LayoutFlexDirection, LayoutGap, LayoutJustifyContent, LayoutJustifyItems, LayoutPadding, LayoutTag } from '../generated/types';
2
+ import type { LayoutAlignItems, LayoutFlexDirection, LayoutGap, LayoutJustifyContent, LayoutJustifyItems, LayoutPadding, LayoutTag, Spacing } from '../generated/types';
3
3
  import { ShortHand } from '../props';
4
4
  import { Responsive } from '../responsive';
5
5
  export declare type LayoutType = 'flex' | 'grid';
6
6
  export declare type LayoutFlexProps = {
7
- gap?: Responsive<LayoutGap>;
8
- padding?: Responsive<ShortHand<LayoutPadding>>;
7
+ gap?: Responsive<LayoutGap> | Responsive<Spacing>;
8
+ padding?: Responsive<ShortHand<LayoutPadding> | ShortHand<Spacing>>;
9
9
  nowrap?: boolean;
10
10
  column?: boolean;
11
11
  reverse?: boolean;
@@ -19,8 +19,8 @@ export declare type LayoutFlexProps = {
19
19
  dataset?: Dataset;
20
20
  };
21
21
  export declare type LayoutGridProps = {
22
- gap?: Responsive<LayoutGap>;
23
- padding?: Responsive<ShortHand<LayoutPadding>>;
22
+ gap?: Responsive<LayoutGap> | Responsive<Spacing>;
23
+ padding?: Responsive<ShortHand<LayoutPadding> | ShortHand<Spacing>>;
24
24
  columns?: Responsive<number | string[]>;
25
25
  justifyContent?: Responsive<LayoutJustifyContent>;
26
26
  alignItems?: Responsive<LayoutAlignItems>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@preply/ds-core",
3
- "version": "0.63.0",
3
+ "version": "0.64.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.63.0"
22
+ "@preply/ds-core-types": "0.64.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "@preply/ds-core-types": "0.63.0"
25
+ "@preply/ds-core-types": "0.64.0"
26
26
  },
27
- "gitHead": "3b0d134c2e84b6828798d26fdba14945ca3f6556"
27
+ "gitHead": "a50ce845596e49d1b8034554709dde5121960e9f"
28
28
  }