@designsystem-se/af 34.2.1-beta.1 → 34.2.1-beta.3
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.
- package/components/digi-bar-chart.js +10 -10
- package/components/digi-form-input-search.js +1 -1
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-bar-chart.cjs.entry.js +10 -10
- package/dist/cjs/digi-button_10.cjs.entry.js +643 -0
- package/dist/cjs/{digi-calendar_16.cjs.entry.js → digi-calendar-datepicker.cjs.entry.js} +48 -1271
- package/dist/cjs/digi-calendar-week-view.cjs.entry.js +51 -50
- package/dist/cjs/digi-calendar_2.cjs.entry.js +478 -0
- package/dist/cjs/digi-code-block_3.cjs.entry.js +5 -4
- package/dist/cjs/digi-dialog.cjs.entry.js +5 -4
- package/dist/cjs/digi-footer.cjs.entry.js +5 -4
- package/dist/cjs/digi-form-error-list.cjs.entry.js +5 -4
- package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -9
- package/dist/cjs/digi-form-receipt.cjs.entry.js +5 -4
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +6 -5
- package/dist/cjs/digi-form-select_2.cjs.entry.js +176 -0
- package/dist/cjs/digi-header-navigation.cjs.entry.js +5 -4
- package/dist/cjs/digi-header.cjs.entry.js +5 -4
- package/dist/cjs/digi-icon-chevron-left.cjs.entry.js +30 -0
- package/dist/cjs/digi-icon-chevron-right.cjs.entry.js +30 -0
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +5 -4
- package/dist/cjs/digi-notification-alert.cjs.entry.js +5 -4
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +5 -4
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +5 -4
- package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +83 -0
- package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +64 -0
- package/dist/cjs/{form-validation-message-variation.enum-c5ec3e2d.js → form-file-upload-variation.enum-634cfae8.js} +0 -7
- package/dist/cjs/form-input-variation.enum-d8228d73.js +67 -0
- package/dist/cjs/form-select-variation.enum-528c1bf0.js +16 -0
- package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +8 -0
- package/dist/cjs/index-81fc5a97.js +28 -12
- package/dist/cjs/{index-acb7b350.js → index-ac8e01b4.js} +19 -189
- package/dist/cjs/index-cad91a90.js +66 -0
- package/dist/cjs/index-e8333bcc.js +174 -0
- package/dist/cjs/index.cjs.js +55 -54
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{typography-variation.enum-2cf77231.js → typography-variation.enum-d6a04b47.js} +0 -43
- package/dist/collection/components/_chart/bar-chart/bar-chart.js +10 -10
- package/dist/collection/components/_form/form-input-search/form-input-search.css +4 -0
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-1aa24ef1.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-1f3345e9.js +1 -0
- package/dist/digi-arbetsformedlingen/p-25854117.js +1 -0
- package/dist/digi-arbetsformedlingen/p-3874db62.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-4ad84e73.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-4e2796b4.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-56ed4535.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-6786da6f.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-6f59033a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-79152be3.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-7933b555.js +1 -0
- package/dist/digi-arbetsformedlingen/p-7aacd45f.js +1 -0
- package/dist/digi-arbetsformedlingen/p-7c138f6f.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-831ee484.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-84aa5804.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-867a8b3e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-881168f2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-905ccb30.js +1 -0
- package/dist/digi-arbetsformedlingen/p-91e65c6d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9f8189c0.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9f86edca.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a1822414.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ae74ccf4.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-bd5122b0.js +1 -0
- package/dist/digi-arbetsformedlingen/p-c7949525.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ce3531cb.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-d41834f2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-d612e424.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e5443d9d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-f447b984.js +1 -0
- package/dist/digi-arbetsformedlingen/p-fee0e9e0.entry.js +1 -0
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-bar-chart.entry.js +10 -10
- package/dist/esm/digi-button_10.entry.js +630 -0
- package/dist/esm/{digi-calendar_16.entry.js → digi-calendar-datepicker.entry.js} +11 -1219
- package/dist/esm/digi-calendar-week-view.entry.js +2 -1
- package/dist/esm/digi-calendar_2.entry.js +473 -0
- package/dist/esm/digi-code-block_3.entry.js +5 -4
- package/dist/esm/digi-dialog.entry.js +5 -4
- package/dist/esm/digi-footer.entry.js +5 -4
- package/dist/esm/digi-form-error-list.entry.js +5 -4
- package/dist/esm/digi-form-file-upload.entry.js +2 -1
- package/dist/esm/digi-form-receipt.entry.js +5 -4
- package/dist/esm/digi-form-select-filter.entry.js +5 -4
- package/dist/esm/digi-form-select_2.entry.js +171 -0
- package/dist/esm/digi-header-navigation.entry.js +5 -4
- package/dist/esm/digi-header.entry.js +5 -4
- package/dist/esm/digi-icon-chevron-left.entry.js +26 -0
- package/dist/esm/digi-icon-chevron-right.entry.js +26 -0
- package/dist/esm/digi-navigation-pagination.entry.js +5 -4
- package/dist/esm/digi-notification-alert.entry.js +5 -4
- package/dist/esm/digi-notification-error-page.entry.js +5 -4
- package/dist/esm/digi-tools-feedback.entry.js +5 -4
- package/dist/esm/digi-util-keydown-handler.entry.js +79 -0
- package/dist/esm/digi-util-mutation-observer.entry.js +60 -0
- package/dist/esm/{form-validation-message-variation.enum-f7835fc5.js → form-file-upload-variation.enum-9c49ec5e.js} +1 -8
- package/dist/esm/form-input-variation.enum-b78808ba.js +67 -0
- package/dist/esm/form-select-variation.enum-f2f6098d.js +16 -0
- package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +8 -0
- package/dist/esm/{index-dc6b83f7.js → index-2fce392f.js} +3 -170
- package/dist/esm/index-5b6c95c6.js +63 -0
- package/dist/esm/index-8685f88d.js +170 -0
- package/dist/esm/index-bfea2cc5.js +28 -12
- package/dist/esm/index.js +5 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{typography-variation.enum-259c1751.js → typography-variation.enum-0f0f74d5.js} +1 -44
- package/hydrate/index.js +11 -11
- package/hydrate/index.mjs +11 -11
- package/package.json +1 -1
- package/dist/cjs/button-type.enum-406723db.js +0 -8
- package/dist/cjs/digi-button.cjs.entry.js +0 -130
- package/dist/cjs/digi-form-input-search.cjs.entry.js +0 -143
- package/dist/cjs/digi-icon-search.cjs.entry.js +0 -30
- package/dist/cjs/form-input-type.enum-daf781ba.js +0 -32
- package/dist/digi-arbetsformedlingen/p-0399153b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-0ae59327.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-1158702e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2496eee3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-3887bb40.js +0 -1
- package/dist/digi-arbetsformedlingen/p-403a97f3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4df790de.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-62534ddc.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6f33ef76.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-8798c901.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9092f712.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9f124b4f.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a105d9fe.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a1bffbc3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bd578fbb.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c15ba44e.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c2d45a0d.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cf75cbcd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d4a341f4.js +0 -1
- package/dist/digi-arbetsformedlingen/p-dc0da84c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-df292ae0.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e292ae3b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e5ca499a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ee9589e6.js +0 -1
- package/dist/esm/button-type.enum-5250ae0b.js +0 -8
- package/dist/esm/digi-button.entry.js +0 -126
- package/dist/esm/digi-form-input-search.entry.js +0 -139
- package/dist/esm/digi-icon-search.entry.js +0 -26
- package/dist/esm/form-input-type.enum-62a97d5d.js +0 -32
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-e8333bcc.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @name isAfter
|
|
7
|
+
* @category Common Helpers
|
|
8
|
+
* @summary Is the first date after the second one?
|
|
9
|
+
*
|
|
10
|
+
* @description
|
|
11
|
+
* Is the first date after the second one?
|
|
12
|
+
*
|
|
13
|
+
* ### v2.0.0 breaking changes:
|
|
14
|
+
*
|
|
15
|
+
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
16
|
+
*
|
|
17
|
+
* @param {Date|Number} date - the date that should be after the other one to return true
|
|
18
|
+
* @param {Date|Number} dateToCompare - the date to compare with
|
|
19
|
+
* @returns {Boolean} the first date is after the second date
|
|
20
|
+
* @throws {TypeError} 2 arguments required
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // Is 10 July 1989 after 11 February 1987?
|
|
24
|
+
* var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
|
|
25
|
+
* //=> true
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
function isAfter(dirtyDate, dirtyDateToCompare) {
|
|
29
|
+
index.requiredArgs(2, arguments);
|
|
30
|
+
var date = index.toDate(dirtyDate);
|
|
31
|
+
var dateToCompare = index.toDate(dirtyDateToCompare);
|
|
32
|
+
return date.getTime() > dateToCompare.getTime();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @name isBefore
|
|
37
|
+
* @category Common Helpers
|
|
38
|
+
* @summary Is the first date before the second one?
|
|
39
|
+
*
|
|
40
|
+
* @description
|
|
41
|
+
* Is the first date before the second one?
|
|
42
|
+
*
|
|
43
|
+
* ### v2.0.0 breaking changes:
|
|
44
|
+
*
|
|
45
|
+
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
46
|
+
*
|
|
47
|
+
* @param {Date|Number} date - the date that should be before the other one to return true
|
|
48
|
+
* @param {Date|Number} dateToCompare - the date to compare with
|
|
49
|
+
* @returns {Boolean} the first date is before the second date
|
|
50
|
+
* @throws {TypeError} 2 arguments required
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* // Is 10 July 1989 before 11 February 1987?
|
|
54
|
+
* var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
|
|
55
|
+
* //=> false
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
function isBefore(dirtyDate, dirtyDateToCompare) {
|
|
59
|
+
index.requiredArgs(2, arguments);
|
|
60
|
+
var date = index.toDate(dirtyDate);
|
|
61
|
+
var dateToCompare = index.toDate(dirtyDateToCompare);
|
|
62
|
+
return date.getTime() < dateToCompare.getTime();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
exports.isAfter = isAfter;
|
|
66
|
+
exports.isBefore = isBefore;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function requiredArgs(required, args) {
|
|
4
|
+
if (args.length < required) {
|
|
5
|
+
throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @name toDate
|
|
11
|
+
* @category Common Helpers
|
|
12
|
+
* @summary Convert the given argument to an instance of Date.
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* Convert the given argument to an instance of Date.
|
|
16
|
+
*
|
|
17
|
+
* If the argument is an instance of Date, the function returns its clone.
|
|
18
|
+
*
|
|
19
|
+
* If the argument is a number, it is treated as a timestamp.
|
|
20
|
+
*
|
|
21
|
+
* If the argument is none of the above, the function returns Invalid Date.
|
|
22
|
+
*
|
|
23
|
+
* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
|
|
24
|
+
*
|
|
25
|
+
* @param {Date|Number} argument - the value to convert
|
|
26
|
+
* @returns {Date} the parsed date in the local time zone
|
|
27
|
+
* @throws {TypeError} 1 argument required
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* // Clone the date:
|
|
31
|
+
* const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
|
|
32
|
+
* //=> Tue Feb 11 2014 11:30:30
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* // Convert the timestamp to date:
|
|
36
|
+
* const result = toDate(1392098430000)
|
|
37
|
+
* //=> Tue Feb 11 2014 11:30:30
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
function toDate(argument) {
|
|
41
|
+
requiredArgs(1, arguments);
|
|
42
|
+
var argStr = Object.prototype.toString.call(argument); // Clone the date
|
|
43
|
+
|
|
44
|
+
if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
|
|
45
|
+
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
46
|
+
return new Date(argument.getTime());
|
|
47
|
+
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
48
|
+
return new Date(argument);
|
|
49
|
+
} else {
|
|
50
|
+
if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
|
|
51
|
+
// eslint-disable-next-line no-console
|
|
52
|
+
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console
|
|
53
|
+
|
|
54
|
+
console.warn(new Error().stack);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return new Date(NaN);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @name isDate
|
|
63
|
+
* @category Common Helpers
|
|
64
|
+
* @summary Is the given value a date?
|
|
65
|
+
*
|
|
66
|
+
* @description
|
|
67
|
+
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
68
|
+
*
|
|
69
|
+
* ### v2.0.0 breaking changes:
|
|
70
|
+
*
|
|
71
|
+
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
72
|
+
*
|
|
73
|
+
* @param {*} value - the value to check
|
|
74
|
+
* @returns {boolean} true if the given value is a date
|
|
75
|
+
* @throws {TypeError} 1 arguments required
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* // For a valid date:
|
|
79
|
+
* const result = isDate(new Date())
|
|
80
|
+
* //=> true
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* // For an invalid date:
|
|
84
|
+
* const result = isDate(new Date(NaN))
|
|
85
|
+
* //=> true
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* // For some value:
|
|
89
|
+
* const result = isDate('2014-02-31')
|
|
90
|
+
* //=> false
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* // For an object:
|
|
94
|
+
* const result = isDate({})
|
|
95
|
+
* //=> false
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
function isDate(value) {
|
|
99
|
+
requiredArgs(1, arguments);
|
|
100
|
+
return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @name isValid
|
|
105
|
+
* @category Common Helpers
|
|
106
|
+
* @summary Is the given date valid?
|
|
107
|
+
*
|
|
108
|
+
* @description
|
|
109
|
+
* Returns false if argument is Invalid Date and true otherwise.
|
|
110
|
+
* Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
|
|
111
|
+
* Invalid Date is a Date, whose time value is NaN.
|
|
112
|
+
*
|
|
113
|
+
* Time value of Date: http://es5.github.io/#x15.9.1.1
|
|
114
|
+
*
|
|
115
|
+
* ### v2.0.0 breaking changes:
|
|
116
|
+
*
|
|
117
|
+
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
118
|
+
*
|
|
119
|
+
* - Now `isValid` doesn't throw an exception
|
|
120
|
+
* if the first argument is not an instance of Date.
|
|
121
|
+
* Instead, argument is converted beforehand using `toDate`.
|
|
122
|
+
*
|
|
123
|
+
* Examples:
|
|
124
|
+
*
|
|
125
|
+
* | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
|
|
126
|
+
* |---------------------------|---------------|---------------|
|
|
127
|
+
* | `new Date()` | `true` | `true` |
|
|
128
|
+
* | `new Date('2016-01-01')` | `true` | `true` |
|
|
129
|
+
* | `new Date('')` | `false` | `false` |
|
|
130
|
+
* | `new Date(1488370835081)` | `true` | `true` |
|
|
131
|
+
* | `new Date(NaN)` | `false` | `false` |
|
|
132
|
+
* | `'2016-01-01'` | `TypeError` | `false` |
|
|
133
|
+
* | `''` | `TypeError` | `false` |
|
|
134
|
+
* | `1488370835081` | `TypeError` | `true` |
|
|
135
|
+
* | `NaN` | `TypeError` | `false` |
|
|
136
|
+
*
|
|
137
|
+
* We introduce this change to make *date-fns* consistent with ECMAScript behavior
|
|
138
|
+
* that try to coerce arguments to the expected type
|
|
139
|
+
* (which is also the case with other *date-fns* functions).
|
|
140
|
+
*
|
|
141
|
+
* @param {*} date - the date to check
|
|
142
|
+
* @returns {Boolean} the date is valid
|
|
143
|
+
* @throws {TypeError} 1 argument required
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* // For the valid date:
|
|
147
|
+
* const result = isValid(new Date(2014, 1, 31))
|
|
148
|
+
* //=> true
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* // For the value, convertable into a date:
|
|
152
|
+
* const result = isValid(1393804800000)
|
|
153
|
+
* //=> true
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* // For the invalid date:
|
|
157
|
+
* const result = isValid(new Date(''))
|
|
158
|
+
* //=> false
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
function isValid(dirtyDate) {
|
|
162
|
+
requiredArgs(1, arguments);
|
|
163
|
+
|
|
164
|
+
if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
var date = toDate(dirtyDate);
|
|
169
|
+
return !isNaN(Number(date));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
exports.isValid = isValid;
|
|
173
|
+
exports.requiredArgs = requiredArgs;
|
|
174
|
+
exports.toDate = toDate;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const badgeNotificationShape_enum = require('./badge-notification-shape.enum-ff802554.js');
|
|
6
|
-
const typographyVariation_enum = require('./typography-variation.enum-
|
|
6
|
+
const typographyVariation_enum = require('./typography-variation.enum-d6a04b47.js');
|
|
7
7
|
const badgeStatusVariation_enum = require('./badge-status-variation.enum-0a5adc21.js');
|
|
8
8
|
const buttonSize_enum = require('./button-size.enum-1fd86b9e.js');
|
|
9
|
-
const
|
|
9
|
+
const formInputVariation_enum = require('./form-input-variation.enum-d8228d73.js');
|
|
10
10
|
const buttonVariation_enum = require('./button-variation.enum-bc521499.js');
|
|
11
11
|
const calendarWeekViewHeadingLevel_enum = require('./calendar-week-view-heading-level.enum-fd0c841b.js');
|
|
12
12
|
const barChartVariation_enum = require('./bar-chart-variation.enum-a4e866b6.js');
|
|
@@ -17,9 +17,10 @@ const expandableFaqItemVariation_enum = require('./expandable-faq-item-variation
|
|
|
17
17
|
const expandableFaqVariation_enum = require('./expandable-faq-variation.enum-af923f49.js');
|
|
18
18
|
const footerCardVariation_enum = require('./footer-card-variation.enum-99555edc.js');
|
|
19
19
|
const formCheckboxVariation_enum = require('./form-checkbox-variation.enum-d2ca879e.js');
|
|
20
|
-
const
|
|
21
|
-
const
|
|
20
|
+
const formFileUploadVariation_enum = require('./form-file-upload-variation.enum-634cfae8.js');
|
|
21
|
+
const formSelectVariation_enum = require('./form-select-variation.enum-528c1bf0.js');
|
|
22
22
|
const formTextareaVariation_enum = require('./form-textarea-variation.enum-9c90d40f.js');
|
|
23
|
+
const formValidationMessageVariation_enum = require('./form-validation-message-variation.enum-855ae0be.js');
|
|
23
24
|
const infoCardMultiType_enum = require('./info-card-multi-type.enum-14746572.js');
|
|
24
25
|
const infoCardVariation_enum = require('./info-card-variation.enum-64cef637.js');
|
|
25
26
|
const layoutContainerMaxWidth_enum = require('./layout-container-max-width.enum-7e637f44.js');
|
|
@@ -127,24 +128,6 @@ Object.defineProperty(exports, 'FormErrorListHeadingLevel', {
|
|
|
127
128
|
return typographyVariation_enum.FormErrorListHeadingLevel;
|
|
128
129
|
}
|
|
129
130
|
});
|
|
130
|
-
Object.defineProperty(exports, 'FormInputMode', {
|
|
131
|
-
enumerable: true,
|
|
132
|
-
get: function () {
|
|
133
|
-
return typographyVariation_enum.FormInputMode;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(exports, 'FormInputValidation', {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function () {
|
|
139
|
-
return typographyVariation_enum.FormInputValidation;
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
Object.defineProperty(exports, 'FormInputVariation', {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
get: function () {
|
|
145
|
-
return typographyVariation_enum.FormInputVariation;
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
131
|
Object.defineProperty(exports, 'FormRadiobuttonLayout', {
|
|
149
132
|
enumerable: true,
|
|
150
133
|
get: function () {
|
|
@@ -187,18 +170,6 @@ Object.defineProperty(exports, 'FormSelectFilterValidation', {
|
|
|
187
170
|
return typographyVariation_enum.FormSelectFilterValidation;
|
|
188
171
|
}
|
|
189
172
|
});
|
|
190
|
-
Object.defineProperty(exports, 'FormSelectValidation', {
|
|
191
|
-
enumerable: true,
|
|
192
|
-
get: function () {
|
|
193
|
-
return typographyVariation_enum.FormSelectValidation;
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
Object.defineProperty(exports, 'FormSelectVariation', {
|
|
197
|
-
enumerable: true,
|
|
198
|
-
get: function () {
|
|
199
|
-
return typographyVariation_enum.FormSelectVariation;
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
173
|
Object.defineProperty(exports, 'HeaderCenterContentWidth', {
|
|
203
174
|
enumerable: true,
|
|
204
175
|
get: function () {
|
|
@@ -292,7 +263,43 @@ Object.defineProperty(exports, 'ButtonSize', {
|
|
|
292
263
|
Object.defineProperty(exports, 'ButtonType', {
|
|
293
264
|
enumerable: true,
|
|
294
265
|
get: function () {
|
|
295
|
-
return
|
|
266
|
+
return formInputVariation_enum.ButtonType;
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
Object.defineProperty(exports, 'FormInputButtonVariation', {
|
|
270
|
+
enumerable: true,
|
|
271
|
+
get: function () {
|
|
272
|
+
return formInputVariation_enum.FormInputButtonVariation;
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
Object.defineProperty(exports, 'FormInputMode', {
|
|
276
|
+
enumerable: true,
|
|
277
|
+
get: function () {
|
|
278
|
+
return formInputVariation_enum.FormInputMode;
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
Object.defineProperty(exports, 'FormInputSearchVariation', {
|
|
282
|
+
enumerable: true,
|
|
283
|
+
get: function () {
|
|
284
|
+
return formInputVariation_enum.FormInputSearchVariation;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
Object.defineProperty(exports, 'FormInputType', {
|
|
288
|
+
enumerable: true,
|
|
289
|
+
get: function () {
|
|
290
|
+
return formInputVariation_enum.FormInputType;
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
Object.defineProperty(exports, 'FormInputValidation', {
|
|
294
|
+
enumerable: true,
|
|
295
|
+
get: function () {
|
|
296
|
+
return formInputVariation_enum.FormInputValidation;
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
Object.defineProperty(exports, 'FormInputVariation', {
|
|
300
|
+
enumerable: true,
|
|
301
|
+
get: function () {
|
|
302
|
+
return formInputVariation_enum.FormInputVariation;
|
|
296
303
|
}
|
|
297
304
|
});
|
|
298
305
|
Object.defineProperty(exports, 'ButtonVariation', {
|
|
@@ -400,43 +407,31 @@ Object.defineProperty(exports, 'FormCheckboxVariation', {
|
|
|
400
407
|
Object.defineProperty(exports, 'FormFileUploadHeadingLevel', {
|
|
401
408
|
enumerable: true,
|
|
402
409
|
get: function () {
|
|
403
|
-
return
|
|
410
|
+
return formFileUploadVariation_enum.FormFileUploadHeadingLevel;
|
|
404
411
|
}
|
|
405
412
|
});
|
|
406
413
|
Object.defineProperty(exports, 'FormFileUploadValidation', {
|
|
407
414
|
enumerable: true,
|
|
408
415
|
get: function () {
|
|
409
|
-
return
|
|
416
|
+
return formFileUploadVariation_enum.FormFileUploadValidation;
|
|
410
417
|
}
|
|
411
418
|
});
|
|
412
419
|
Object.defineProperty(exports, 'FormFileUploadVariation', {
|
|
413
420
|
enumerable: true,
|
|
414
421
|
get: function () {
|
|
415
|
-
return
|
|
416
|
-
}
|
|
417
|
-
});
|
|
418
|
-
Object.defineProperty(exports, 'FormValidationMessageVariation', {
|
|
419
|
-
enumerable: true,
|
|
420
|
-
get: function () {
|
|
421
|
-
return formValidationMessageVariation_enum.FormValidationMessageVariation;
|
|
422
|
-
}
|
|
423
|
-
});
|
|
424
|
-
Object.defineProperty(exports, 'FormInputButtonVariation', {
|
|
425
|
-
enumerable: true,
|
|
426
|
-
get: function () {
|
|
427
|
-
return formInputType_enum.FormInputButtonVariation;
|
|
422
|
+
return formFileUploadVariation_enum.FormFileUploadVariation;
|
|
428
423
|
}
|
|
429
424
|
});
|
|
430
|
-
Object.defineProperty(exports, '
|
|
425
|
+
Object.defineProperty(exports, 'FormSelectValidation', {
|
|
431
426
|
enumerable: true,
|
|
432
427
|
get: function () {
|
|
433
|
-
return
|
|
428
|
+
return formSelectVariation_enum.FormSelectValidation;
|
|
434
429
|
}
|
|
435
430
|
});
|
|
436
|
-
Object.defineProperty(exports, '
|
|
431
|
+
Object.defineProperty(exports, 'FormSelectVariation', {
|
|
437
432
|
enumerable: true,
|
|
438
433
|
get: function () {
|
|
439
|
-
return
|
|
434
|
+
return formSelectVariation_enum.FormSelectVariation;
|
|
440
435
|
}
|
|
441
436
|
});
|
|
442
437
|
Object.defineProperty(exports, 'FormTextareaValidation', {
|
|
@@ -451,6 +446,12 @@ Object.defineProperty(exports, 'FormTextareaVariation', {
|
|
|
451
446
|
return formTextareaVariation_enum.FormTextareaVariation;
|
|
452
447
|
}
|
|
453
448
|
});
|
|
449
|
+
Object.defineProperty(exports, 'FormValidationMessageVariation', {
|
|
450
|
+
enumerable: true,
|
|
451
|
+
get: function () {
|
|
452
|
+
return formValidationMessageVariation_enum.FormValidationMessageVariation;
|
|
453
|
+
}
|
|
454
|
+
});
|
|
454
455
|
Object.defineProperty(exports, 'InfoCardMultiType', {
|
|
455
456
|
enumerable: true,
|
|
456
457
|
get: function () {
|