@bethinkpl/design-system 38.0.0 → 39.0.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.
Files changed (61) hide show
  1. package/dist/design-system.css +1 -1
  2. package/dist/design-system.js +5331 -5289
  3. package/dist/design-system.js.map +1 -1
  4. package/dist/lib/js/components/BadgeScore/BadgeScore.vue.d.ts +3 -3
  5. package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +8 -6
  6. package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +5 -3
  7. package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +5 -3
  8. package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +5 -3
  9. package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +5 -3
  10. package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +13 -9
  11. package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +5 -3
  12. package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +15 -9
  13. package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +5 -3
  14. package/dist/lib/js/components/Form/SelectionControl/SelectionControl.vue.d.ts +3 -3
  15. package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +10 -6
  16. package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +13 -9
  17. package/dist/lib/js/components/IconText/IconText.vue.d.ts +3 -3
  18. package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +2 -0
  19. package/dist/lib/js/components/Icons/Icon/Icon.vue.d.ts +3 -3
  20. package/dist/lib/js/components/Modal/Modal.vue.d.ts +5 -3
  21. package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +10 -6
  22. package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +10 -6
  23. package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +10 -6
  24. package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +5 -3
  25. package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +5 -3
  26. package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +5 -3
  27. package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +5 -3
  28. package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +5 -3
  29. package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +5 -3
  30. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +15 -9
  31. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +18 -12
  32. package/dist/lib/js/components/SurveyToggle/SurveyToggle.vue.d.ts +3 -3
  33. package/dist/lib/js/components/Switch/Switch.vue.d.ts +5 -3
  34. package/dist/lib/js/components/TabItem/TabItem.vue.d.ts +3 -3
  35. package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +2 -0
  36. package/dist/lib/js/components/Toggles/CounterToggle/CounterToggle.vue.d.ts +3 -3
  37. package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +5 -3
  38. package/dist/lib/js/icons/fontawesome.d.ts +2 -0
  39. package/lib/js/components/Banner/Banner.vue +0 -2
  40. package/lib/js/components/Buttons/HelpButton/HelpButton.stories.ts +1 -2
  41. package/lib/js/components/Buttons/HelpButton/HelpButton.vue +0 -1
  42. package/lib/js/components/Buttons/IconButton/IconButton.stories.ts +3 -3
  43. package/lib/js/components/Buttons/IconButton/IconButton.vue +15 -5
  44. package/lib/js/components/Chip/Chip.vue +5 -1
  45. package/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue +0 -2
  46. package/lib/js/components/Form/PasswordField/PasswordField.vue +0 -1
  47. package/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue +2 -0
  48. package/lib/js/components/Headers/SectionHeader/SectionHeader.vue +0 -1
  49. package/lib/js/components/Icons/Icon/Icon.stories.ts +3 -3
  50. package/lib/js/components/Icons/Icon/Icon.vue +7 -2
  51. package/lib/js/components/Menu/MenuItem/MenuItem.vue +0 -1
  52. package/lib/js/components/Modal/Modal.vue +1 -1
  53. package/lib/js/components/Modals/Modal/Modal.vue +1 -1
  54. package/lib/js/components/Pagination/Pagination.vue +2 -0
  55. package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue +0 -1
  56. package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +0 -1
  57. package/lib/js/icons/fontawesome.ts +4 -0
  58. package/lib/styles/components/_icons.scss +2 -2
  59. package/lib/styles/mixins/_touchable.scss +19 -0
  60. package/lib/styles/settings/_icons.scss +1 -1
  61. package/package.json +1 -1
@@ -244,6 +244,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
244
244
  readonly FA_LOCATION_DOT: import('@fortawesome/fontawesome-common-types').IconDefinition;
245
245
  readonly FA_LOCK_KEYHOLE: import('@fortawesome/fontawesome-common-types').IconDefinition;
246
246
  readonly FA_MAP: import('@fortawesome/fontawesome-common-types').IconDefinition;
247
+ readonly FA_MARKER: import('@fortawesome/fontawesome-common-types').IconDefinition;
247
248
  readonly FA_MAGNIFYING_GLASS: import('@fortawesome/fontawesome-common-types').IconDefinition;
248
249
  readonly FA_MEDAL: import('@fortawesome/fontawesome-common-types').IconDefinition;
249
250
  readonly FA_MEMO_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
@@ -284,6 +285,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
284
285
  readonly FA_SHIELD_HALVED: import('@fortawesome/fontawesome-common-types').IconDefinition;
285
286
  readonly FA_SIDEBAR_FLIP: import('@fortawesome/fontawesome-common-types').IconDefinition;
286
287
  readonly FA_SIGNAL: import('@fortawesome/fontawesome-common-types').IconDefinition;
288
+ readonly FA_SIGN_POST: import('@fortawesome/fontawesome-common-types').IconDefinition;
287
289
  readonly FA_SITEMAP_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
288
290
  readonly FA_SITEMAP: import('@fortawesome/fontawesome-common-types').IconDefinition;
289
291
  readonly FA_SLIDERS: import('@fortawesome/fontawesome-common-types').IconDefinition;
@@ -454,7 +456,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
454
456
  type: BooleanConstructor;
455
457
  default: boolean;
456
458
  };
457
- touchable: {
459
+ touchableDeprecated: {
458
460
  type: BooleanConstructor;
459
461
  default: boolean;
460
462
  };
@@ -488,7 +490,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
488
490
  type: BooleanConstructor;
489
491
  default: boolean;
490
492
  };
491
- touchable: {
493
+ touchableDeprecated: {
492
494
  type: BooleanConstructor;
493
495
  default: boolean;
494
496
  };
@@ -501,7 +503,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
501
503
  size: string;
502
504
  flippedVertical: boolean;
503
505
  flippedHorizontal: boolean;
504
- touchable: boolean;
506
+ touchableDeprecated: boolean;
505
507
  spinning: boolean;
506
508
  }, {}, {
507
509
  FontAwesomeIcon: import('vue').DefineComponent<import('@fortawesome/vue-fontawesome').FontAwesomeIconProps>;
@@ -173,6 +173,7 @@ export declare const FONTAWESOME_ICONS: {
173
173
  readonly FA_LOCATION_DOT: import('@fortawesome/fontawesome-common-types').IconDefinition;
174
174
  readonly FA_LOCK_KEYHOLE: import('@fortawesome/fontawesome-common-types').IconDefinition;
175
175
  readonly FA_MAP: import('@fortawesome/fontawesome-common-types').IconDefinition;
176
+ readonly FA_MARKER: import('@fortawesome/fontawesome-common-types').IconDefinition;
176
177
  readonly FA_MAGNIFYING_GLASS: import('@fortawesome/fontawesome-common-types').IconDefinition;
177
178
  readonly FA_MEDAL: import('@fortawesome/fontawesome-common-types').IconDefinition;
178
179
  readonly FA_MEMO_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
@@ -213,6 +214,7 @@ export declare const FONTAWESOME_ICONS: {
213
214
  readonly FA_SHIELD_HALVED: import('@fortawesome/fontawesome-common-types').IconDefinition;
214
215
  readonly FA_SIDEBAR_FLIP: import('@fortawesome/fontawesome-common-types').IconDefinition;
215
216
  readonly FA_SIGNAL: import('@fortawesome/fontawesome-common-types').IconDefinition;
217
+ readonly FA_SIGN_POST: import('@fortawesome/fontawesome-common-types').IconDefinition;
216
218
  readonly FA_SITEMAP_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
217
219
  readonly FA_SITEMAP: import('@fortawesome/fontawesome-common-types').IconDefinition;
218
220
  readonly FA_SLIDERS: import('@fortawesome/fontawesome-common-types').IconDefinition;
@@ -62,7 +62,6 @@
62
62
  :icon="isExpanded ? ICONS.FA_CHEVRON_UP : ICONS.FA_CHEVRON_DOWN"
63
63
  :color="ICON_BUTTON_COLORS.NEUTRAL"
64
64
  :radius="BUTTON_RADIUSES.CAPSULE"
65
- :touchable="false"
66
65
  @click="isExpanded = !isExpanded"
67
66
  />
68
67
  </div>
@@ -72,7 +71,6 @@
72
71
  :icon="ICONS.FA_XMARK"
73
72
  :color="ICON_BUTTON_COLORS.NEUTRAL"
74
73
  :radius="BUTTON_RADIUSES.CAPSULE"
75
- :touchable="false"
76
74
  @click="$emit('close')"
77
75
  />
78
76
  </div>
@@ -29,8 +29,7 @@ const meta: Meta<ComponentProps<typeof HelpButton> & ComponentSlots<typeof HelpB
29
29
  <template v-else #modal="{onClose}">
30
30
  <modal @close-modal="onClose">test</modal>
31
31
  </template>
32
- </HelpButton>
33
- <ds-banner style="margin-top: 20px;" :color="BANNER_COLORS.WARNING" title="Uwaga, z uwagi na brak lokalizacji w DS, na Modalu (tworzonym za pomocą propsa modalTitle i slota modalContent) nie wyświetla się Button w footerze do zamykania modala. Poprawimy to w ramach LMS-2762. Jako alternatywa można skorzystać ze slota modal i wstawić do modala co się chce ;)" />`,
32
+ </HelpButton>`,
34
33
  }),
35
34
  argTypes: {
36
35
  modalTitle: {
@@ -5,7 +5,6 @@
5
5
  :color="ICON_BUTTON_COLORS.NEUTRAL_WEAK"
6
6
  :size="size"
7
7
  :state="isDisabled ? ICON_BUTTON_STATES.DISABLED : ICON_BUTTON_STATES.DEFAULT"
8
- :touchable="false"
9
8
  v-bind="$attrs"
10
9
  @click="isOpen = true"
11
10
  />
@@ -41,7 +41,7 @@ const StoryTemplate: StoryFn<typeof IconButton> = (args) => ({
41
41
  :type="type"
42
42
  :radius="radius"
43
43
  :color-scheme="colorScheme"
44
- :touchable="touchable"
44
+ :touchable-deprecated="touchableDeprecated"
45
45
  :elevation="elevation"
46
46
  :color="color"
47
47
  :state="state"
@@ -61,7 +61,7 @@ const args = {
61
61
  radius: BUTTON_RADIUSES.CAPSULE,
62
62
  label: 'Zamknij',
63
63
  colorScheme: ICON_BUTTON_COLOR_SCHEMES.ALL_IN_COLOR,
64
- touchable: true,
64
+ touchableDeprecated: false,
65
65
  elevation: BUTTON_ELEVATIONS.NONE,
66
66
  color: 'primary',
67
67
  state: ICON_BUTTON_STATES.DEFAULT,
@@ -141,7 +141,7 @@ const argTypesDisabled = {
141
141
  state: {
142
142
  disable: true,
143
143
  },
144
- touchable: {
144
+ touchableDeprecated: {
145
145
  disable: true,
146
146
  },
147
147
  default: {
@@ -14,7 +14,7 @@
14
14
 
15
15
  [colorClassName]: isButtonColor,
16
16
 
17
- '-ds-touchable': touchable,
17
+ '-ds-touchable': touchableDeprecated,
18
18
  }"
19
19
  :style="{ color: computedColor }"
20
20
  @mouseover="mouseOver"
@@ -63,6 +63,7 @@
63
63
  @import '../../../../styles/settings/media-queries';
64
64
  @import '../../../../styles/settings/spacings';
65
65
  @import '../../../../styles/settings/typography/tokens';
66
+ @import '../../../../styles/mixins/touchable';
66
67
 
67
68
  @mixin setIconButtonAdditions($border: null, $icon: null) {
68
69
  @if $border {
@@ -131,10 +132,13 @@
131
132
  }
132
133
  }
133
134
 
135
+ @include touchableHitArea;
136
+
134
137
  align-items: center;
135
138
  color: $color-primary-text;
136
139
  cursor: pointer;
137
140
  display: inline-flex;
141
+ position: relative;
138
142
  transition: color ease-in-out $default-transition-time;
139
143
 
140
144
  &:disabled,
@@ -282,8 +286,8 @@
282
286
  &.-ds-touchable {
283
287
  align-items: center;
284
288
  justify-content: center;
285
- min-height: $min-touchable-size;
286
- min-width: $min-touchable-size;
289
+ min-height: $DEPRECATED-min-touchable-size;
290
+ min-width: $DEPRECATED-min-touchable-size;
287
291
  }
288
292
  }
289
293
  </style>
@@ -388,9 +392,15 @@ export default defineComponent({
388
392
  return Object.values(BUTTON_ELEVATIONS).includes(value);
389
393
  },
390
394
  },
391
- touchable: {
395
+ /**
396
+ * @deprecated Adds the `-ds-touchable` class, which inflates the layout footprint via
397
+ * the deprecated `$DEPRECATED-min-touchable-size`. The non-inflating touch target is now
398
+ * applied automatically on touch devices via `touchableHitArea` (`@media (pointer: coarse)`),
399
+ * so this prop is redundant — renamed to flag it for removal once call sites migrate.
400
+ */
401
+ touchableDeprecated: {
392
402
  type: Boolean,
393
- default: true,
403
+ default: false,
394
404
  },
395
405
  state: {
396
406
  type: String,
@@ -26,7 +26,6 @@
26
26
  <icon-button
27
27
  v-if="size !== CHIP_SIZES.X_SMALL && isRemovable"
28
28
  class="ds-chip__remove"
29
- :touchable="false"
30
29
  :state="
31
30
  state === CHIP_STATES.DISABLED
32
31
  ? ICON_BUTTON_STATES.DISABLED
@@ -43,8 +42,10 @@
43
42
 
44
43
  <style lang="scss" scoped>
45
44
  @import '../../../styles/settings/animations';
45
+ @import '../../../styles/settings/icons';
46
46
  @import '../../../styles/settings/spacings';
47
47
  @import '../../../styles/settings/radiuses';
48
+ @import '../../../styles/mixins/touchable';
48
49
  @import '../../../styles/settings/colors/tokens';
49
50
  @import '../../../styles/settings/typography/tokens';
50
51
 
@@ -216,7 +217,10 @@ $chip-colors: (
216
217
  padding: $space-2 $space-4;
217
218
 
218
219
  &.-ds-interactive {
220
+ @include touchableHitArea;
221
+
219
222
  cursor: pointer;
223
+ position: relative;
220
224
  transition: background-color ease-in-out $default-transition-time;
221
225
  }
222
226
 
@@ -15,7 +15,6 @@
15
15
  v-if="hasBackButton"
16
16
  :size="ICON_BUTTON_SIZES.MEDIUM"
17
17
  :icon="ICONS.FA_CHEVRON_LEFT"
18
- :touchable="false"
19
18
  @click="$emit('backClicked')"
20
19
  />
21
20
  <div class="ds-drawerHeader__textWrapper">
@@ -59,7 +58,6 @@
59
58
  :color="ICON_COLORS.NEUTRAL"
60
59
  :icon="ICONS.FA_XMARK"
61
60
  :size="ICON_BUTTON_SIZES.MEDIUM"
62
- :touchable="false"
63
61
  @click="$emit('close')"
64
62
  />
65
63
  </div>
@@ -10,7 +10,6 @@
10
10
  :icon="eyeIcon"
11
11
  :color="ICON_BUTTON_COLORS.NEUTRAL_WEAK"
12
12
  :size="ICON_BUTTON_SIZES.X_SMALL"
13
- :touchable="false"
14
13
  data-test-id="password-toggle"
15
14
  @click="isPasswordVisible = !isPasswordVisible"
16
15
  />
@@ -83,6 +83,7 @@
83
83
  >
84
84
  <template #reference>
85
85
  <ds-icon-button
86
+ touchable-deprecated
86
87
  :icon="dropdownIcon"
87
88
  :size="ICON_BUTTON_SIZES.MEDIUM"
88
89
  :color="ICON_BUTTON_COLORS.NEUTRAL"
@@ -107,6 +108,7 @@
107
108
  :text="t('ds.overlayHeader.close')"
108
109
  >
109
110
  <ds-icon-button
111
+ touchable-deprecated
110
112
  data-test-selector="overlay-header-close-button"
111
113
  :icon="ICONS.FA_XMARK"
112
114
  :size="ICON_BUTTON_SIZES.MEDIUM"
@@ -59,7 +59,6 @@
59
59
  :icon="ICONS.FA_CIRCLE_QUESTION"
60
60
  :size="ICON_BUTTON_SIZES.X_SMALL"
61
61
  :color="ICON_BUTTON_COLORS.NEUTRAL_WEAK"
62
- :touchable="false"
63
62
  @click.prevent.stop="onInfoClicked"
64
63
  />
65
64
  </div>
@@ -16,7 +16,7 @@ const StoryTemplate: StoryFn<typeof Icon> = (args) => ({
16
16
  return args;
17
17
  },
18
18
  template:
19
- '<div class="sbIconList__singleIcon"><icon :icon="ICONS[icon]" :size="size" :touchable="touchable" :spinning="spinning" :rotation="rotation" :flipped-vertical="flippedVertical" :flipped-horizontal="flippedHorizontal" /></div>',
19
+ '<div class="sbIconList__singleIcon"><icon :icon="ICONS[icon]" :size="size" :touchable-deprecated="touchableDeprecated" :spinning="spinning" :rotation="rotation" :flipped-vertical="flippedVertical" :flipped-horizontal="flippedHorizontal" /></div>',
20
20
  data() {
21
21
  return {
22
22
  ICONS: Object.freeze(ICONS),
@@ -30,7 +30,7 @@ const args = {
30
30
  size: ICON_SIZES.MEDIUM,
31
31
  icon: 'HEAD_WITH_QUESTION_MARK',
32
32
  spinning: false,
33
- touchable: false,
33
+ touchableDeprecated: false,
34
34
  rotation: null,
35
35
  flippedVertical: false,
36
36
  flippedHorizontal: false,
@@ -68,7 +68,7 @@ const StoryAllIconsTemplate: StoryFn<typeof Icon> = (args) => ({
68
68
  template:
69
69
  '<div class="sbIconList">' +
70
70
  '<div v-for="(icon, iconName) in ICONS" :key="iconName" class="sbIconList__icon">' +
71
- '<icon :icon="icon" :size="size" :touchable="touchable" :spinning="spinning" :rotation="rotation" :flipped-vertical="flippedVertical" :flipped-horizontal="flippedHorizontal" />' +
71
+ '<icon :icon="icon" :size="size" :touchable-deprecated="touchableDeprecated" :spinning="spinning" :rotation="rotation" :flipped-vertical="flippedVertical" :flipped-horizontal="flippedHorizontal" />' +
72
72
  '<div>{{iconName}}</div>' +
73
73
  '</div>' +
74
74
  '</div>',
@@ -2,7 +2,7 @@
2
2
  <div
3
3
  class="ds-icon"
4
4
  :class="{
5
- '-ds-touchable': touchable,
5
+ '-ds-touchable': touchableDeprecated,
6
6
  '-ds-spin': spinning,
7
7
  '-ds-flipped-vertical': flippedVertical,
8
8
  '-ds-flipped-horizontal': flippedHorizontal,
@@ -55,7 +55,12 @@ export default defineComponent({
55
55
  type: Boolean,
56
56
  default: false,
57
57
  },
58
- touchable: {
58
+ /**
59
+ * @deprecated Adds the `-ds-touchable` class, which enlarges the hit area to the
60
+ * deprecated `$DEPRECATED-min-touchable-size`. Still has effect; renamed to flag it
61
+ * for removal so call sites can migrate away from this layout-inflating behavior.
62
+ */
63
+ touchableDeprecated: {
59
64
  type: Boolean,
60
65
  default: false,
61
66
  },
@@ -33,7 +33,6 @@
33
33
  ? ICON_BUTTON_STATES.DISABLED
34
34
  : ICON_BUTTON_STATES.DEFAULT
35
35
  "
36
- :touchable="false"
37
36
  @click.stop="isExpanded = !isExpanded"
38
37
  />
39
38
  <span
@@ -5,7 +5,7 @@
5
5
  <div v-if="showHeader" class="m-modal__header">
6
6
  <slot name="header" />
7
7
  <wnl-icon
8
- touchable
8
+ touchable-deprecated
9
9
  :icon="ICONS.FA_XMARK"
10
10
  class="m-modal__header__close"
11
11
  :size="ICON_SIZES.SMALL"
@@ -11,7 +11,7 @@
11
11
  <div class="ds-modal__rightActions">
12
12
  <slot name="rightActions" />
13
13
  <wnl-icon-button
14
- touchable
14
+ touchable-deprecated
15
15
  :icon="ICONS.FA_XMARK"
16
16
  :size="ICON_SIZES.SMALL"
17
17
  :elevation="BUTTON_ELEVATIONS.X_SMALL"
@@ -69,6 +69,7 @@
69
69
 
70
70
  <div v-if="navigationItems.length > 1" class="ds-pagination__items -ds-compact">
71
71
  <icon-button
72
+ touchable-deprecated
72
73
  :size="ICON_BUTTON_SIZES.MEDIUM"
73
74
  :color="ICON_BUTTON_COLORS.NEUTRAL"
74
75
  :icon="ICONS.FA_ANGLE_LEFT"
@@ -97,6 +98,7 @@
97
98
  </div>
98
99
 
99
100
  <icon-button
101
+ touchable-deprecated
100
102
  :size="ICON_BUTTON_SIZES.MEDIUM"
101
103
  :color="ICON_BUTTON_COLORS.NEUTRAL"
102
104
  :icon="ICONS.FA_ANGLE_RIGHT"
@@ -25,7 +25,6 @@
25
25
  :color="ICON_BUTTON_COLORS.NEUTRAL_WEAK"
26
26
  :icon="ICONS.FA_CIRCLE_QUESTION"
27
27
  :size="ICON_SIZES.MEDIUM"
28
- :touchable="false"
29
28
  @click="showModal = true"
30
29
  />
31
30
  </div>
@@ -20,7 +20,6 @@
20
20
  :color="ICON_BUTTON_COLORS.NEUTRAL_WEAK"
21
21
  :icon="ICONS.FA_CIRCLE_QUESTION"
22
22
  :size="ICON_SIZES.MEDIUM"
23
- :touchable="false"
24
23
  @click="showModal = true"
25
24
  />
26
25
  </div>
@@ -126,6 +126,7 @@ import { faLocationDot } from '@fortawesome/pro-regular-svg-icons/faLocationDot'
126
126
  import { faLockKeyhole } from '@fortawesome/pro-regular-svg-icons/faLockKeyhole';
127
127
  import { faMap } from '@fortawesome/pro-regular-svg-icons/faMap';
128
128
  import { faMagnifyingGlass } from '@fortawesome/pro-regular-svg-icons/faMagnifyingGlass';
129
+ import { faMarker } from '@fortawesome/pro-regular-svg-icons/faMarker';
129
130
  import { faMedal } from '@fortawesome/pro-regular-svg-icons/faMedal';
130
131
  import { faMemo } from '@fortawesome/pro-regular-svg-icons/faMemo';
131
132
  import { faMemoCircleInfo } from '@fortawesome/pro-regular-svg-icons/faMemoCircleInfo';
@@ -158,6 +159,7 @@ import { faShieldHalved } from '@fortawesome/pro-regular-svg-icons/faShieldHalve
158
159
  import { faSidebarFlip } from '@fortawesome/pro-regular-svg-icons/faSidebarFlip';
159
160
  import { faSignal } from '@fortawesome/pro-regular-svg-icons/faSignal';
160
161
  import { faSitemap } from '@fortawesome/pro-regular-svg-icons/faSitemap';
162
+ import { faSignPost } from '@fortawesome/pro-regular-svg-icons/faSignPost';
161
163
  import { faSliders } from '@fortawesome/pro-regular-svg-icons/faSliders';
162
164
  import { faSpellCheck } from '@fortawesome/pro-regular-svg-icons/faSpellCheck';
163
165
  import { faSquare } from '@fortawesome/pro-regular-svg-icons/faSquare';
@@ -441,6 +443,7 @@ export const FONTAWESOME_ICONS = {
441
443
  FA_LOCATION_DOT: faLocationDot,
442
444
  FA_LOCK_KEYHOLE: faLockKeyhole,
443
445
  FA_MAP: faMap,
446
+ FA_MARKER: faMarker,
444
447
  FA_MAGNIFYING_GLASS: faMagnifyingGlass,
445
448
  FA_MEDAL: faMedal,
446
449
  FA_MEMO_SOLID: fasMemo,
@@ -481,6 +484,7 @@ export const FONTAWESOME_ICONS = {
481
484
  FA_SHIELD_HALVED: faShieldHalved,
482
485
  FA_SIDEBAR_FLIP: faSidebarFlip,
483
486
  FA_SIGNAL: faSignal,
487
+ FA_SIGN_POST: faSignPost,
484
488
  FA_SITEMAP_SOLID: fasSitemap,
485
489
  FA_SITEMAP: faSitemap,
486
490
  FA_SLIDERS: faSliders,
@@ -11,8 +11,8 @@
11
11
  cursor: pointer;
12
12
  display: flex;
13
13
  justify-content: center;
14
- min-height: $min-touchable-size;
15
- min-width: $min-touchable-size;
14
+ min-height: $DEPRECATED-min-touchable-size;
15
+ min-width: $DEPRECATED-min-touchable-size;
16
16
  }
17
17
 
18
18
  &.-ds-spin {
@@ -0,0 +1,19 @@
1
+ $touchable-size: 32px;
2
+
3
+ // Enlarge the touch target on touch devices without affecting the layout footprint.
4
+ // The visual element keeps its real size; a transparent ::after extends the hit area.
5
+ // NOTE: the host element must establish a positioning context (e.g. `position: relative`)
6
+ // so the absolutely-positioned ::after anchors to it.
7
+ @mixin touchableHitArea {
8
+ @media (pointer: coarse) {
9
+ &::after {
10
+ content: '';
11
+ height: max(100%, #{$touchable-size});
12
+ left: 50%;
13
+ position: absolute;
14
+ top: 50%;
15
+ transform: translate(-50%, -50%);
16
+ width: max(100%, #{$touchable-size});
17
+ }
18
+ }
19
+ }
@@ -9,7 +9,7 @@ $icon-l: 32px;
9
9
  $icon-xl: 48px;
10
10
  $icon-xxl: 64px;
11
11
 
12
- $min-touchable-size: 40px;
12
+ $DEPRECATED-min-touchable-size: 40px;
13
13
 
14
14
  $animation-fade-in: a-fadeIn 300ms; /* stylelint-disable-line value-keyword-case */
15
15
  $animation-spin: a-spinAround 1s infinite linear; /* stylelint-disable-line value-keyword-case */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bethinkpl/design-system",
3
- "version": "38.0.0",
3
+ "version": "39.0.0",
4
4
  "description": "Bethink universe design-system",
5
5
  "repository": {
6
6
  "type": "git",