@bethinkpl/design-system 18.6.0 → 18.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/design-system.umd.js +230 -202
  2. package/dist/design-system.umd.js.map +1 -1
  3. package/dist/lib/js/components/Drawer/DrawerContent/DrawerContent.vue.d.ts +4 -3
  4. package/dist/lib/js/components/Drawer/DrawerDivider/DrawerDivider.vue.d.ts +20 -3
  5. package/dist/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.vue.d.ts +4 -3
  6. package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +230 -3
  7. package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +63 -3
  8. package/dist/lib/js/components/Dropdown/Dropdown.vue.d.ts +8 -0
  9. package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +15 -0
  10. package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue.d.ts +62 -3
  11. package/dist/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.vue.d.ts +14 -3
  12. package/dist/lib/js/components/Tile/Tile.consts.d.ts +2 -0
  13. package/docs/iframe.html +1 -1
  14. package/docs/main.ef9c4703.iframe.bundle.js +1 -0
  15. package/docs/project.json +1 -1
  16. package/jest.config.js +1 -0
  17. package/lib/js/components/Dropdown/Dropdown.stories.ts +22 -12
  18. package/lib/js/components/Dropdown/Dropdown.vue +36 -4
  19. package/lib/js/components/Pagination/Pagination.spec.ts +115 -0
  20. package/lib/js/components/Pagination/Pagination.vue +71 -17
  21. package/lib/js/components/SelectList/SelectListItem/SelectListItem.stories.ts +6 -2
  22. package/lib/js/components/SelectList/SelectListItem/SelectListItem.vue +44 -3
  23. package/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue +18 -76
  24. package/lib/js/components/Tile/Tile.consts.ts +2 -0
  25. package/lib/js/components/Tile/Tile.vue +34 -0
  26. package/package.json +2 -2
  27. package/docs/main.9ebcaa8a.iframe.bundle.js +0 -1
@@ -1,8 +1,10 @@
1
1
  export const TILE_COLORS = {
2
2
  NEUTRAL: 'neutral',
3
+ NEUTRAL_WEAK: 'neutralWeak',
3
4
  PRIMARY: 'primary',
4
5
  SUCCESS: 'success',
5
6
  FAIL: 'fail',
7
+ WARNING: 'warning',
6
8
  INFO: 'info',
7
9
  } as const;
8
10
 
@@ -35,6 +35,7 @@
35
35
  </template>
36
36
 
37
37
  <style lang="scss" scoped>
38
+ @import '../../../styles/settings/animations';
38
39
  @import '../../../styles/settings/spacings';
39
40
  @import '../../../styles/settings/radiuses';
40
41
  @import '../../../styles/settings/colors/tokens';
@@ -56,6 +57,21 @@ $tile-colors: (
56
57
  'icon-interactive': $color-primary-icon-disabled,
57
58
  ),
58
59
  ),
60
+ 'neutralWeak': (
61
+ 'default': (
62
+ 'background': $color-neutral-background-weak,
63
+ 'background-hover': $color-neutral-background-weak-hovered,
64
+ 'eyebrow-text': $color-neutral-text-weak,
65
+ 'icon': $color-neutral-icon,
66
+ 'icon-interactive': $color-primary-icon,
67
+ ),
68
+ 'disabled': (
69
+ 'background': $color-neutral-background-weak-disabled,
70
+ 'eyebrow-text': $color-neutral-text-weak-disabled,
71
+ 'icon': $color-neutral-icon-disabled,
72
+ 'icon-interactive': $color-primary-icon-disabled,
73
+ ),
74
+ ),
59
75
  'primary': (
60
76
  'default': (
61
77
  'background': $color-primary-background,
@@ -101,6 +117,21 @@ $tile-colors: (
101
117
  'icon-interactive': $color-fail-icon-disabled,
102
118
  ),
103
119
  ),
120
+ 'warning': (
121
+ 'default': (
122
+ 'background': $color-warning-background,
123
+ 'background-hover': $color-warning-background-hovered,
124
+ 'eyebrow-text': $color-warning-text,
125
+ 'icon': $color-warning-icon,
126
+ 'icon-interactive': $color-warning-icon,
127
+ ),
128
+ 'disabled': (
129
+ 'background': $color-warning-background-disabled,
130
+ 'eyebrow-text': $color-warning-text-disabled,
131
+ 'icon': $color-warning-icon-disabled,
132
+ 'icon-interactive': $color-warning-icon-disabled,
133
+ ),
134
+ ),
104
135
  'info': (
105
136
  'default': (
106
137
  'background': $color-info-background,
@@ -162,6 +193,7 @@ $tile-colors: (
162
193
  flex-direction: row;
163
194
  min-height: 48px;
164
195
  padding: $space-xxs $space-xs;
196
+ transition: background-color ease-in-out $default-transition-time;
165
197
 
166
198
  &.-disabled {
167
199
  @each $color-name, $color-map in $tile-colors {
@@ -258,9 +290,11 @@ export default {
258
290
  tileColor() {
259
291
  return {
260
292
  [TILE_COLORS.NEUTRAL]: '-neutral',
293
+ [TILE_COLORS.NEUTRAL_WEAK]: '-neutralWeak',
261
294
  [TILE_COLORS.PRIMARY]: '-primary',
262
295
  [TILE_COLORS.SUCCESS]: '-success',
263
296
  [TILE_COLORS.FAIL]: '-fail',
297
+ [TILE_COLORS.WARNING]: '-warning',
264
298
  [TILE_COLORS.INFO]: '-info',
265
299
  }[this.color];
266
300
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bethinkpl/design-system",
3
- "version": "18.6.0",
3
+ "version": "18.7.1",
4
4
  "description": "Bethink universe design-system",
5
5
  "repository": "git@github.com:bethinkpl/design-system.git",
6
6
  "author": "nerdy@bethink.pl",
@@ -9,7 +9,7 @@
9
9
  "license": "UNLICENSED",
10
10
  "engines": {
11
11
  "yarn": "^1.22.0",
12
- "node": "^14.15.0 || ^16.13.0"
12
+ "node": "^14.15.0 || ^16.13.0 || ^18.17.0"
13
13
  },
14
14
  "scripts": {
15
15
  "build": "vue-cli-service build --target lib --formats umd --name design-system lib/js/index.ts",