@central-design-system/components 3.0.0-alpha.0 → 3.0.0-alpha.2

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 (112) hide show
  1. package/dist/cds.css +1 -1
  2. package/dist/cds.d.ts +26 -3
  3. package/dist/cds.es.js +7821 -1449
  4. package/dist/cds.umd.js +1 -1
  5. package/dist/components/CdsBreadcrumbs/CdsBreadcrumbs.vue.d.ts +64 -0
  6. package/dist/components/CdsBreadcrumbs/CdsBreadcrumbsItem.vue.d.ts +54 -0
  7. package/dist/components/CdsBreadcrumbs/index.d.ts +2 -0
  8. package/dist/components/CdsButton/CdsButton.vue.d.ts +13 -13
  9. package/dist/components/CdsButton/index.d.ts +1 -0
  10. package/dist/components/CdsCheckbox/CdsCheckbox.vue.d.ts +238 -0
  11. package/dist/components/CdsCheckbox/CdsCheckboxGroup.vue.d.ts +227 -0
  12. package/dist/components/CdsCheckbox/index.d.ts +2 -0
  13. package/dist/components/CdsCombobox/CdsCombobox.vue.d.ts +2454 -0
  14. package/dist/components/CdsCombobox/composable/highlight.d.ts +12 -0
  15. package/dist/components/CdsDatePicker/CdsDatePicker.vue.d.ts +246 -0
  16. package/dist/components/CdsDatePicker/composable/calendar.d.ts +315 -0
  17. package/dist/components/CdsDatePicker/composable/index.d.ts +1 -0
  18. package/dist/components/CdsDrawer/CdsDrawer.vue.d.ts +4 -4
  19. package/dist/components/CdsDropdown/CdsDropdown.vue.d.ts +2317 -0
  20. package/dist/components/CdsEmptyState/CdsEmptyState.vue.d.ts +54 -0
  21. package/dist/components/CdsForm/CdsForm.vue.d.ts +99 -0
  22. package/dist/components/CdsGrid/CdsCol.vue.d.ts +1 -1
  23. package/dist/components/CdsIcon/CdsIcon.vue.d.ts +4 -4
  24. package/dist/components/CdsInput/CdsInput.vue.d.ts +219 -0
  25. package/dist/components/CdsInput/CdsInputCounter.vue.d.ts +39 -0
  26. package/dist/components/CdsInput/CdsInputDescription.vue.d.ts +26 -0
  27. package/dist/components/CdsInput/CdsInputLabel.vue.d.ts +32 -0
  28. package/dist/components/CdsInput/CdsInputMessages.vue.d.ts +221 -0
  29. package/dist/components/CdsInput/index.d.ts +5 -0
  30. package/dist/components/CdsLink/CdsLink.vue.d.ts +1 -1
  31. package/dist/components/CdsLink/index.d.ts +1 -0
  32. package/dist/components/CdsList/CdsList.vue.d.ts +20 -24
  33. package/dist/components/CdsList/CdsListGroup.vue.d.ts +7 -7
  34. package/dist/components/CdsList/CdsListItem.vue.d.ts +27 -24
  35. package/dist/components/CdsList/composable/focus.d.ts +12 -0
  36. package/dist/components/CdsList/composable/index.d.ts +1 -0
  37. package/dist/components/CdsList/composable/list.d.ts +1 -1
  38. package/dist/components/CdsLoader/CdsLoader.vue.d.ts +1 -1
  39. package/dist/components/CdsMenu/CdsMenu.vue.d.ts +681 -0
  40. package/dist/components/CdsMenu/index.d.ts +1 -0
  41. package/dist/components/CdsMenu/shared.d.ts +10 -0
  42. package/dist/components/CdsOverlay/CdsOverlay.vue.d.ts +337 -0
  43. package/dist/components/CdsOverlay/composable/activator.d.ts +81 -0
  44. package/dist/components/CdsOverlay/composable/index.d.ts +6 -0
  45. package/dist/components/CdsOverlay/composable/locationStrategies.d.ts +75 -0
  46. package/dist/components/CdsOverlay/composable/scrim.d.ts +8 -0
  47. package/dist/components/CdsOverlay/composable/scrollStrategies.d.ts +33 -0
  48. package/dist/components/CdsOverlay/composable/stack.d.ts +9 -0
  49. package/dist/components/CdsOverlay/composable/teleport.d.ts +6 -0
  50. package/dist/components/CdsOverlay/index.d.ts +1 -0
  51. package/dist/components/CdsOverlay/utils/index.d.ts +2 -0
  52. package/dist/components/CdsOverlay/utils/point.d.ts +20 -0
  53. package/dist/components/CdsOverlay/utils/requestNewFrame.d.ts +5 -0
  54. package/dist/components/CdsRadioButton/CdsRadio.vue.d.ts +223 -0
  55. package/dist/components/CdsRadioButton/CdsRadioButton.vue.d.ts +222 -0
  56. package/dist/components/CdsSelect/CdsSelect.vue.d.ts +722 -0
  57. package/dist/components/CdsSidebar/CdsSidebar.vue.d.ts +56 -0
  58. package/dist/components/CdsStages/CdsStages.vue.d.ts +102 -0
  59. package/dist/components/CdsTag/CdsTag.vue.d.ts +2 -4
  60. package/dist/components/CdsTag/index.d.ts +1 -0
  61. package/dist/components/CdsTextArea/CdsTextArea.vue.d.ts +723 -0
  62. package/dist/components/CdsTextInput/CdsTextInput.vue.d.ts +660 -0
  63. package/dist/components/CdsTextInput/index.d.ts +1 -0
  64. package/dist/components/index.d.ts +24 -1
  65. package/dist/composable/color.d.ts +4 -2
  66. package/dist/composable/datetime.d.ts +76 -0
  67. package/dist/composable/delay.d.ts +29 -0
  68. package/dist/composable/dimensions.d.ts +47 -0
  69. package/dist/composable/direction.d.ts +24 -0
  70. package/dist/composable/field.d.ts +139 -0
  71. package/dist/composable/filter.d.ts +52 -0
  72. package/dist/composable/focus.d.ts +19 -9
  73. package/dist/composable/form.d.ts +128 -0
  74. package/dist/composable/hidration.d.ts +2 -0
  75. package/dist/composable/icon.d.ts +29 -4
  76. package/dist/composable/index.d.ts +18 -0
  77. package/dist/composable/input.d.ts +99 -0
  78. package/dist/composable/items.d.ts +12 -9
  79. package/dist/composable/lazy.d.ts +21 -0
  80. package/dist/composable/link.d.ts +1 -2
  81. package/dist/composable/loading.d.ts +1 -0
  82. package/dist/composable/menu.d.ts +37 -0
  83. package/dist/composable/nested/nested.d.ts +2 -2
  84. package/dist/composable/overlay.d.ts +98 -0
  85. package/dist/composable/router.d.ts +3 -0
  86. package/dist/composable/scopeId.d.ts +5 -0
  87. package/dist/composable/select.d.ts +86 -0
  88. package/dist/composable/title.d.ts +21 -0
  89. package/dist/composable/transition.d.ts +22 -0
  90. package/dist/composable/validation.d.ts +128 -0
  91. package/dist/directives/click-outside/index.d.ts +14 -0
  92. package/dist/directives/index.d.ts +1 -2
  93. package/dist/globals.d.ts +16 -0
  94. package/dist/locale/index.d.ts +12 -0
  95. package/dist/locale/ru.d.ts +3 -0
  96. package/dist/transitions/createTransition.d.ts +31 -2
  97. package/dist/transitions/index.d.ts +240 -0
  98. package/dist/utils/anchor.d.ts +23 -0
  99. package/dist/utils/animation.d.ts +6 -0
  100. package/dist/utils/box.d.ts +26 -0
  101. package/dist/utils/cache.d.ts +4 -0
  102. package/dist/utils/date.d.ts +181 -0
  103. package/dist/utils/dom.d.ts +6 -0
  104. package/dist/utils/getScrollParent.d.ts +3 -0
  105. package/dist/utils/globals.d.ts +4 -0
  106. package/dist/utils/helpers.d.ts +93 -20
  107. package/dist/utils/index.d.ts +8 -0
  108. package/package.json +5 -4
  109. package/src/scss/mixins/layout/_shadow.scss +4 -0
  110. package/src/scss/mixins/layout/index.scss +1 -0
  111. package/src/scss/modules/_transition.scss +133 -3
  112. package/src/scss/themes/index.ts +1 -1
@@ -0,0 +1,181 @@
1
+ import type { ILocale } from '../locale';
2
+ export interface IRawDate {
3
+ year?: number;
4
+ month?: number;
5
+ day?: number;
6
+ hour?: number;
7
+ minute?: number;
8
+ second?: number;
9
+ millisecond?: number;
10
+ timezoneOffset?: number;
11
+ dateHash?: string;
12
+ timeHash?: string;
13
+ date?: number;
14
+ }
15
+ export declare type TDateLocale = ILocale['date'];
16
+ /**
17
+ * Format date by mask
18
+ * @param value
19
+ * @param mask
20
+ * @param dateLocale
21
+ * @param __forcedYear
22
+ * @param __forcedTimezoneOffset
23
+ */
24
+ export declare function formatDate(value: any, mask: string, dateLocale: TDateLocale, __forcedYear: number, __forcedTimezoneOffset: number): string | undefined;
25
+ /**
26
+ * Set a specific year, month and day to a date.
27
+ * @param date
28
+ * @param rawModified
29
+ * @param utc
30
+ */
31
+ export declare function adjustDate(date: Date, rawModified: IRawDate, utc: boolean): Date;
32
+ /**
33
+ * Parse any string into a date object based on the format passed.
34
+ * @param str
35
+ * @param mask
36
+ * @param dateLocale
37
+ */
38
+ export declare function extractDate(str: string, mask: string, dateLocale: TDateLocale): Date;
39
+ /**
40
+ * Split date by mask.
41
+ * @param str
42
+ * @param mask
43
+ * @param dateLocale
44
+ * @param defaultModel
45
+ */
46
+ export declare function splitDate(str: string, mask: string, dateLocale: TDateLocale, defaultModel?: IRawDate): IRawDate;
47
+ /**
48
+ * Check a date string for validity.
49
+ * @param date
50
+ */
51
+ export declare function isValid(date: any): boolean;
52
+ /**
53
+ * The following method is just a wrapper to help you in cases where you just need current time but with a different year, or month, or second etc.
54
+ * @param modified
55
+ * @param utc
56
+ */
57
+ export declare function buildDate(modified: IRawDate, utc: boolean): Date;
58
+ /**
59
+ * Get the day number in week for a given date.
60
+ * @param date
61
+ */
62
+ export declare function getDayOfWeek(date: Date): number;
63
+ /**
64
+ * Get the week number in year for a given date.
65
+ * @param date
66
+ */
67
+ export declare function getWeekOfYear(date: Date): number;
68
+ /**
69
+ * Get the day of the year from a given date.
70
+ * @param date
71
+ */
72
+ export declare function getDayOfYear(date: Date): number | undefined;
73
+ /**
74
+ * Check a date is in a given date/time range.
75
+ * @param date
76
+ * @param from
77
+ * @param to
78
+ * @param opts
79
+ */
80
+ export declare function isBetweenDates(date: Date, from: Date, to: Date, opts: {
81
+ onlyDate: boolean;
82
+ inclusiveFrom: boolean;
83
+ inclusiveTo: boolean;
84
+ }): boolean;
85
+ /**
86
+ * Add a given date/time unit from a given date.
87
+ * @param date
88
+ * @param modified
89
+ */
90
+ export declare function addToDate(date: Date, modified: IRawDate): Date;
91
+ /**
92
+ * Subtract a given date/time unit from a given date.
93
+ * @param date
94
+ * @param modified
95
+ */
96
+ export declare function subtractFromDate(date: Date, modified: IRawDate): Date;
97
+ /**
98
+ * Beginning of a given date/time unit for a given date.
99
+ * @param date
100
+ * @param unit
101
+ * @param utc
102
+ */
103
+ export declare function startOfDate(date: Date, unit: string, utc?: boolean): Date;
104
+ /**
105
+ * End of a given date/time unit for a given date.
106
+ * @param date
107
+ * @param unit
108
+ * @param utc
109
+ */
110
+ export declare function endOfDate(date: Date, unit: string, utc: boolean): Date;
111
+ /**
112
+ * Get the maximum date from a given date and other dates.
113
+ * @param date
114
+ * @param args
115
+ */
116
+ export declare function getMaxDate(date: Date, ...args: Date[]): Date;
117
+ /**
118
+ * Get the minimum date from a given date and other dates.
119
+ * @param date
120
+ * @param args
121
+ */
122
+ export declare function getMinDate(date: Date, ...args: Date[]): Date;
123
+ /**
124
+ * Get the difference between two dates.
125
+ * @param date
126
+ * @param subtract
127
+ * @param unit
128
+ */
129
+ export declare function getDateDiff(date: Date, subtract: Date, unit?: string): number;
130
+ /**
131
+ * Get date format
132
+ * @param date
133
+ */
134
+ export declare function inferDateFormat(date: Date | any): 'date' | 'number' | 'string';
135
+ /**
136
+ * Normalize a date in a given date/time range.
137
+ * @param date
138
+ * @param min
139
+ * @param max
140
+ */
141
+ export declare function getDateBetween(date: Date, min: Date, max: Date): Date;
142
+ /**
143
+ * Check of two dates unit are equal.
144
+ * @param date1
145
+ * @param date2
146
+ * @param unit
147
+ */
148
+ export declare function isSameDate(date1: Date, date2: Date, unit: string): boolean;
149
+ /**
150
+ * Get the number of days in a month.
151
+ * @param date
152
+ */
153
+ export declare function daysInMonth(date: Date): number;
154
+ /**
155
+ * Cloning date object.
156
+ * @param date
157
+ */
158
+ export declare function clone(date: Date): Date;
159
+ declare const _default: {
160
+ formatDate: typeof formatDate;
161
+ clone: typeof clone;
162
+ isValid: typeof isValid;
163
+ buildDate: typeof buildDate;
164
+ getDayOfWeek: typeof getDayOfWeek;
165
+ getWeekOfYear: typeof getWeekOfYear;
166
+ isBetweenDates: typeof isBetweenDates;
167
+ addToDate: typeof addToDate;
168
+ subtractFromDate: typeof subtractFromDate;
169
+ adjustDate: typeof adjustDate;
170
+ startOfDate: typeof startOfDate;
171
+ endOfDate: typeof endOfDate;
172
+ getMaxDate: typeof getMaxDate;
173
+ getMinDate: typeof getMinDate;
174
+ getDateDiff: typeof getDateDiff;
175
+ getDayOfYear: typeof getDayOfYear;
176
+ inferDateFormat: typeof inferDateFormat;
177
+ getDateBetween: typeof getDateBetween;
178
+ isSameDate: typeof isSameDate;
179
+ daysInMonth: typeof daysInMonth;
180
+ };
181
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns:
3
+ * - 'null' if the node is not attached to the DOM
4
+ * - the root node (HTMLDocument | ShadowRoot) otherwise
5
+ */
6
+ export declare function attachedRoot(node: Node): null | HTMLDocument | ShadowRoot;
@@ -0,0 +1,3 @@
1
+ export declare function getScrollParent(el?: HTMLElement): HTMLElement;
2
+ export declare function getScrollParents(el?: Element | null, stopAt?: Element | null): HTMLElement[];
3
+ export declare function hasScrollbar(el?: Element | null): boolean;
@@ -0,0 +1,4 @@
1
+ export declare const IN_BROWSER: boolean;
2
+ export declare const SUPPORTS_INTERSECTION: boolean;
3
+ export declare const SUPPORTS_TOUCH: boolean;
4
+ export declare const SUPPORTS_FOCUS_VISIBLE: boolean;
@@ -1,22 +1,23 @@
1
- import type { Ref } from 'vue';
2
- export declare const keyCodes: Readonly<{
3
- enter: 13;
4
- tab: 9;
5
- delete: 46;
6
- esc: 27;
7
- space: 32;
8
- up: 38;
9
- down: 40;
10
- left: 37;
11
- right: 39;
12
- end: 35;
13
- home: 36;
14
- del: 46;
15
- backspace: 8;
16
- insert: 45;
17
- pageup: 33;
18
- pagedown: 34;
19
- shift: 16;
1
+ import type { ComponentPublicInstance, ComputedGetter, PropType, Ref, ToRefs } from 'vue';
2
+ import type { TItemKey } from '../composable';
3
+ export declare const keyNames: Readonly<{
4
+ enter: "Enter";
5
+ tab: "Tab";
6
+ delete: "Delete";
7
+ esc: "Escape";
8
+ space: " ";
9
+ up: "ArrowUp";
10
+ down: "ArrowDown";
11
+ left: "ArrowLeft";
12
+ right: "ArrowRight";
13
+ end: "End";
14
+ home: "Home";
15
+ del: "Del";
16
+ backspace: "Backspace";
17
+ insert: "Insert";
18
+ pageup: "PageUp";
19
+ pagedown: "PageDown";
20
+ shift: "Shift";
20
21
  }>;
21
22
  export declare const classesStates: Readonly<{
22
23
  hover: "cds-state-hover";
@@ -30,9 +31,47 @@ export declare const classesStates: Readonly<{
30
31
  empty: "cds-state-empty";
31
32
  loading: "cds-state-loading";
32
33
  }>;
34
+ /**
35
+ * Check if value is a object.
36
+ * @param obj
37
+ */
33
38
  export declare function isObject(obj: any): obj is object;
39
+ /**
40
+ * Check if value is a Date.
41
+ * @param value
42
+ */
43
+ export declare function isDate(value: any): boolean;
44
+ /**
45
+ * Deep merge two objects.
46
+ * @param source
47
+ * @param target
48
+ * @param arrayFn
49
+ */
34
50
  export declare function mergeDeep(source?: Record<string, any>, target?: Record<string, any>, arrayFn?: (a: unknown[], b: unknown[]) => unknown[]): Record<string, any>;
51
+ /**
52
+ * Deep compare two values to determine if they are equivalent.
53
+ * @param a
54
+ * @param b
55
+ */
56
+ export declare function deepEqual(a: any, b: any): boolean;
57
+ /**
58
+ * Wrap value in array if it's not already an array
59
+ * @param value
60
+ */
61
+ export declare function wrapInArray<T>(value: T | T[] | null | undefined): T[];
62
+ /**
63
+ * Get the nested value of an object at a given path.
64
+ * @param obj
65
+ * @param path
66
+ * @param fallback
67
+ */
35
68
  export declare function getNestedValue(obj: any, path: (string | number)[], fallback?: any): any;
69
+ /**
70
+ * Get the value of an object at a given path.
71
+ * @param obj
72
+ * @param path
73
+ * @param fallback
74
+ */
36
75
  export declare function getObjectValueByPath(obj: any, path: string, fallback?: any): any;
37
76
  export declare function getPropertyFromItem(item: any, property: SelectItemKey, fallback?: any): any;
38
77
  /**
@@ -41,9 +80,43 @@ export declare function getPropertyFromItem(item: any, property: SelectItemKey,
41
80
  * @param paths
42
81
  */
43
82
  export declare function pick<T extends object, U extends Extract<keyof T, string>>(obj: T, paths: U[]): [yes: MaybePick<T, U>, no: Omit<T, U>];
83
+ /**
84
+ * Convert a computed ref to a record of refs.
85
+ * The getter function must always return an object with the same keys.
86
+ */
87
+ export declare function destructComputed<T extends object>(getter: ComputedGetter<T & NotAUnion<T>>): ToRefs<T>;
88
+ /**
89
+ * Array.includes but value can be any type
90
+ * @param arr
91
+ * @param val
92
+ */
93
+ export declare function includes(arr: readonly any[], val: any): boolean;
94
+ export declare function convertToUnit(str: number, unit?: string): string;
95
+ export declare function convertToUnit(str: string | number | null | undefined, unit?: string): string | undefined;
96
+ /**
97
+ * Clamp a value between a min and max
98
+ * @param value
99
+ * @param min
100
+ * @param max
101
+ */
102
+ export declare function clamp(value: number, min?: number, max?: number): number;
103
+ /**
104
+ * Is value an like event
105
+ * @param key
106
+ */
107
+ export declare const isOn: (key: string) => boolean;
108
+ export declare const EventProp: PropType<(...args: any[]) => any>;
109
+ export declare function isComponentInstance(obj: any): obj is ComponentPublicInstance;
110
+ export declare function isFixedPosition(el?: HTMLElement): boolean;
111
+ export declare function padStart(string: number | string, targetLength: number, padString: string): string;
112
+ export declare function pad(n: string | number, length?: number): string;
44
113
  /**
45
114
  * Types
46
115
  */
47
116
  export declare type MaybeRef<T> = T | Ref<T>;
48
- export declare type SelectItemKey = boolean | string | (string | number)[] | ((item: Record<string, any>, fallback?: any) => any);
117
+ export declare type SelectItemKey = TItemKey;
49
118
  export declare type MaybePick<T extends object, U extends Extract<keyof T, string>> = Record<string, unknown> extends T ? Partial<Pick<T, U>> : Pick<T, U>;
119
+ export declare type EventProp<T = (...args: any[]) => any> = T;
120
+ declare type NotAUnion<T> = [T] extends [infer U] ? _NotAUnion<U, U> : never;
121
+ declare type _NotAUnion<T, U> = U extends any ? ([T] extends [U] ? unknown : never) : never;
122
+ export {};
@@ -1,7 +1,15 @@
1
1
  export * from './propsFactory';
2
2
  export * from './helpers';
3
3
  export * from './getCurrentInstance';
4
+ export * from './getScrollParent';
5
+ export * from './globals';
6
+ export * from './dom';
7
+ export * from './anchor';
8
+ export * from './box';
9
+ export * from './animation';
10
+ export * from './cache';
4
11
  export * from './changeCase/noCase';
5
12
  export * from './changeCase/lowerCase';
6
13
  export * from './changeCase/pascalCase';
7
14
  export * from './changeCase/paramCase';
15
+ export * from './date';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@central-design-system/components",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.2",
4
4
  "description": "Central Design System on the Vue 3.0 and TypeScript",
5
5
  "author": "magersoft",
6
6
  "license": "ISC",
@@ -26,10 +26,11 @@
26
26
  "scripts": {
27
27
  "build": "rimraf dist && vue-tsc --noEmit && vite build",
28
28
  "type-check": "npx vue-tsc --noEmit -p tsconfig.json --composite false",
29
- "bump": "npx bumpp"
29
+ "bump": "npx bumpp",
30
+ "publish:alpha": "npm publish --tag next"
30
31
  },
31
32
  "peerDependencies": {
32
- "vue": "3.2.45"
33
+ "vue": "3.2.47"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@types/node": "16.18.3",
@@ -42,7 +43,7 @@
42
43
  "vite": "3.1.7",
43
44
  "vite-plugin-dts": "1.6.5",
44
45
  "vite-tsconfig-paths": "3.5.1",
45
- "vue": "3.2.45",
46
+ "vue": "3.2.47",
46
47
  "vue-router": "4.1.6",
47
48
  "vue-tsc": "1.0.9"
48
49
  }
@@ -0,0 +1,4 @@
1
+ @mixin cds-border-shadow($color) {
2
+ box-shadow: inset 0 0 0 1px $color;
3
+ border-color: $color;
4
+ }
@@ -1,3 +1,4 @@
1
1
  @import 'convert';
2
2
  @import 'mini-unit';
3
3
  @import 'spacing';
4
+ @import 'shadow';
@@ -1,14 +1,17 @@
1
1
  @import '../mixins/motion';
2
2
 
3
3
  $standard-easing: map-get(map-get($easing, 'ease-in-out'), 'basic');
4
+ $standard-duration: $cds-duration-fast + ms;
5
+ $accent-easting: map-get(map-get($easing, 'ease-in-out'), 'accent');
6
+ $accent-duration: $cds-duration-normal + ms;
4
7
 
5
8
  @mixin transition-default() {
6
9
  &-enter-active {
7
- transition: 0.3s $standard-easing;
10
+ transition: $standard-duration $standard-easing;
8
11
  }
9
12
 
10
13
  &-leave-active {
11
- transition: 0.3s $standard-easing;
14
+ transition: $standard-duration $standard-easing;
12
15
  }
13
16
 
14
17
  &-move {
@@ -16,11 +19,138 @@ $standard-easing: map-get(map-get($easing, 'ease-in-out'), 'basic');
16
19
  }
17
20
  }
18
21
 
22
+ @mixin fade-out() {
23
+ &-leave-to {
24
+ opacity: 0;
25
+ }
26
+ &-leave-active {
27
+ transition-duration: 100ms !important;
28
+ }
29
+ }
30
+
19
31
  // Generic transitions
32
+ .fade-transition {
33
+ @include transition-default();
34
+
35
+ &-leave-active {
36
+ position: absolute;
37
+ }
38
+
39
+ &-enter-from, &-leave-to {
40
+ opacity: 0 !important;
41
+ }
42
+ }
43
+
20
44
  .expand-transition {
21
45
  @include transition-default();
22
46
  }
23
47
 
24
- .expand-x-transition {
48
+ .expand-transition-x {
25
49
  @include transition-default();
26
50
  }
51
+
52
+ .slide-transition-y {
53
+ @include transition-default();
54
+
55
+ &-enter-from, &-leave-to {
56
+ opacity: 0;
57
+ transform: translateY(-15px);
58
+ }
59
+ }
60
+
61
+ .slide-transition-x {
62
+ @include transition-default();
63
+
64
+ &-enter-from, &-leave-to {
65
+ opacity: 0;
66
+ transform: translateX(-15px);
67
+ }
68
+ }
69
+
70
+ .slide-transition-right {
71
+ &-enter-active,
72
+ &-leave-active {
73
+ transition: transform $accent-duration $accent-easting;
74
+ }
75
+
76
+ &-leave-active {
77
+ position: absolute;
78
+ }
79
+
80
+ &-enter-from {
81
+ transform: translate3d(-100%, 0, 0);
82
+ }
83
+ &-leave-to {
84
+ transform: translate3d(100%, 0, 0);
85
+ }
86
+ }
87
+
88
+ .slide-transition-left {
89
+ &-enter-active,
90
+ &-leave-active {
91
+ transition: transform $accent-duration $accent-easting;
92
+ }
93
+
94
+ &-leave-active {
95
+ position: absolute;
96
+ }
97
+
98
+ &-enter-from {
99
+ transform: translate3d(100%, 0, 0);
100
+ }
101
+ &-leave-to {
102
+ transform: translate3d(-100%, 0, 0);
103
+ }
104
+ }
105
+
106
+ .jump-transition {
107
+ &-left, &-right {
108
+ &-enter-active,
109
+ &-leave-active {
110
+ transition: opacity $accent-duration, transform $accent-duration;
111
+ }
112
+
113
+ &-enter-from,
114
+ &-leave-to {
115
+ opacity: 0
116
+ }
117
+
118
+ &-leave-active {
119
+ position: absolute;
120
+ }
121
+ }
122
+
123
+ &-right {
124
+ &-enter-from {
125
+ transform: translate3d(-15px, 0, 0);
126
+ }
127
+ &-leave-to {
128
+ transform: translate3d(15px, 0, 0);
129
+ }
130
+ }
131
+
132
+ &-left {
133
+ &-enter-from {
134
+ transform: translate3d(15px, 0, 0);
135
+ }
136
+ &-leave-to {
137
+ transform: translate3d(-15px, 0, 0);
138
+ }
139
+ }
140
+ }
141
+
142
+ .scale-transition {
143
+ @include transition-default();
144
+ @include fade-out();
145
+
146
+ &-enter-from {
147
+ opacity: 0;
148
+ transform: scale(0);
149
+ }
150
+
151
+ &-enter-active,
152
+ &-leave-active {
153
+ transition-property: transform, opacity !important;
154
+ }
155
+ }
156
+
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Automatically generated by CDS CLI
3
- * Generated on 2/18/2023, 7:04:48 PM
3
+ * Generated on 5/18/2023, 9:57:05 PM
4
4
  **/
5
5
 
6
6
  /**