fomantic-ui 2.9.1-beta.21 → 2.9.1-beta.22
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/.eslintrc.js +142 -70
- package/.github/workflows/ci.yml +2 -2
- package/.github/workflows/nightly.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.stylelintrc.js +1 -0
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1 -1
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +2 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +1 -1
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +50 -50
- package/dist/semantic.js +27 -26
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +1 -1
- package/examples/.eslintrc.js +6 -0
- package/package.json +5 -4
- package/src/definitions/modules/calendar.js +1 -0
- package/tasks/.eslintrc.js +9 -0
- package/test/.eslintrc.js +27 -0
package/.eslintrc.js
CHANGED
@@ -4,6 +4,8 @@ module.exports = {
|
|
4
4
|
es6: true,
|
5
5
|
},
|
6
6
|
extends: [
|
7
|
+
'airbnb-base',
|
8
|
+
'plugin:unicorn/recommended',
|
7
9
|
],
|
8
10
|
parserOptions: {
|
9
11
|
ecmaVersion: '2020',
|
@@ -17,43 +19,48 @@ module.exports = {
|
|
17
19
|
'/test/helpers',
|
18
20
|
],
|
19
21
|
rules: {
|
20
|
-
|
21
|
-
'
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
'class-methods-use-this': 'off',
|
23
|
+
'comma-dangle': ['error', {
|
24
|
+
arrays: 'always-multiline',
|
25
|
+
objects: 'always-multiline',
|
26
|
+
functions: 'never',
|
27
|
+
imports: 'always-multiline',
|
28
|
+
exports: 'always-multiline',
|
29
|
+
}],
|
30
|
+
'consistent-return': 'off',
|
31
|
+
curly: ['error', 'all'],
|
32
|
+
'default-case': 'off',
|
33
|
+
'func-names': 'off',
|
34
|
+
'import/no-unresolved': 'off',
|
35
|
+
'import/prefer-default-export': 'off',
|
36
|
+
indent: ['error', 4, {
|
37
|
+
SwitchCase: 1,
|
38
|
+
}],
|
39
|
+
'linebreak-style': ['error', 'unix'],
|
40
|
+
'max-len': 'off',
|
41
|
+
'no-console': 'off',
|
42
|
+
'no-continue': 'off',
|
43
|
+
'no-lonely-if': 'off',
|
44
|
+
'no-multi-spaces': ['error', {
|
26
45
|
exceptions: {
|
27
|
-
|
28
|
-
|
29
|
-
ArrowFunctionExpression: false,
|
30
|
-
CallExpression: false,
|
31
|
-
FunctionDeclaration: false,
|
32
|
-
FunctionExpression: false,
|
33
|
-
ImportDeclaration: false,
|
34
|
-
ObjectExpression: false,
|
35
|
-
ObjectPattern: false,
|
36
|
-
VariableDeclaration: false,
|
37
|
-
NewExpression: false,
|
46
|
+
Property: true,
|
47
|
+
VariableDeclarator: true,
|
38
48
|
},
|
39
49
|
}],
|
40
|
-
'
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
'
|
46
|
-
'
|
47
|
-
'object-curly-spacing': ['error', 'always'],
|
48
|
-
'computed-property-spacing': ['error', 'never'],
|
49
|
-
'space-before-blocks': ['error'],
|
50
|
-
'one-var-declaration-per-line': ['error', 'always'],
|
51
|
-
'function-paren-newline': ['error', 'multiline-arguments'],
|
50
|
+
'no-nested-ternary': 'off',
|
51
|
+
'no-param-reassign': 'off',
|
52
|
+
'no-plusplus': 'off',
|
53
|
+
'no-restricted-syntax': 'off',
|
54
|
+
'no-underscore-dangle': 'off',
|
55
|
+
'no-unused-vars': 'off',
|
56
|
+
'object-shorthand': ['error', 'never'],
|
52
57
|
'padding-line-between-statements': ['error', {
|
53
58
|
blankLine: 'always',
|
54
59
|
prev: '*',
|
55
60
|
next: ['continue', 'break', 'export', 'return', 'throw'],
|
56
61
|
}],
|
62
|
+
'prefer-destructuring': 'off',
|
63
|
+
'prefer-template': 'off',
|
57
64
|
'spaced-comment': ['error', 'always', {
|
58
65
|
line: {
|
59
66
|
markers: ['/'],
|
@@ -65,47 +72,112 @@ module.exports = {
|
|
65
72
|
balanced: true,
|
66
73
|
},
|
67
74
|
}],
|
68
|
-
|
69
|
-
'
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
'no-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
'
|
81
|
-
|
82
|
-
|
83
|
-
'
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
'
|
91
|
-
'
|
92
|
-
'
|
93
|
-
|
94
|
-
'
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
'
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
'
|
108
|
-
'
|
75
|
+
strict: 'off',
|
76
|
+
'unicorn/catch-error-name': 'off',
|
77
|
+
'unicorn/no-array-callback-reference': 'off',
|
78
|
+
'unicorn/no-lonely-if': 'off',
|
79
|
+
'unicorn/no-negated-condition': 'off',
|
80
|
+
'unicorn/no-null': 'off',
|
81
|
+
'unicorn/no-this-assignment': 'off',
|
82
|
+
'unicorn/numeric-separators-style': 'off',
|
83
|
+
'unicorn/prefer-array-some': 'off', // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2007
|
84
|
+
'unicorn/prefer-module': 'off',
|
85
|
+
'unicorn/prevent-abbreviations': 'off',
|
86
|
+
'unicorn/switch-case-braces': ['error', 'avoid'],
|
87
|
+
'wrap-iife': ['error', 'inside'],
|
88
|
+
|
89
|
+
// TODO rules to be removed/fixed in v2.10.0 as fixes are not compatible with IE11
|
90
|
+
'guard-for-in': 'off', // refactor to "for of"
|
91
|
+
'no-restricted-globals': 'off',
|
92
|
+
'no-restricted-properties': 'off',
|
93
|
+
'no-var': 'off', // https://github.com/fomantic/Fomantic-UI/pull/2584
|
94
|
+
'one-var': 'off',
|
95
|
+
'prefer-const': 'off',
|
96
|
+
'prefer-exponentiation-operator': 'off',
|
97
|
+
'prefer-spread': 'off',
|
98
|
+
'semi-style': 'off',
|
99
|
+
'unicorn/no-array-for-each': 'off',
|
100
|
+
'unicorn/no-for-loop': 'off', // autofixes to "for of"
|
101
|
+
'unicorn/prefer-code-point': 'off',
|
102
|
+
'unicorn/prefer-includes': 'off',
|
103
|
+
'unicorn/prefer-node-protocol': 'off', // needs Node 14+
|
104
|
+
'unicorn/prefer-number-properties': 'off',
|
105
|
+
'unicorn/prefer-optional-catch-binding': 'off',
|
106
|
+
'unicorn/prefer-prototype-methods': 'off',
|
107
|
+
'unicorn/prefer-reflect-apply': 'off',
|
108
|
+
'unicorn/prefer-spread': 'off',
|
109
|
+
'unicorn/prefer-top-level-await': 'off', // needs Node 14+
|
110
|
+
'vars-on-top': 'off',
|
111
|
+
|
112
|
+
// TODO rules with a lot of errors to be fixed manually, fix in a separate PR
|
113
|
+
eqeqeq: 'off', // about 300 errors to be fixed manually
|
114
|
+
'global-require': 'off', // about 30 errors to be fixed manually
|
115
|
+
'no-shadow': 'off', // about 220 errors to be fixed manually
|
116
|
+
'prefer-arrow-callback': 'off', // about 350 errors (all autofixable)
|
117
|
+
'prefer-rest-params': 'off', // about 180 errors to be fixed manually
|
118
|
+
'unicorn/no-nested-ternary': 'off', // about 80 errors (except 14 nested ternary operators autofixable)
|
119
|
+
|
120
|
+
// TODO
|
121
|
+
'import/extensions': 'off',
|
122
|
+
'import/no-dynamic-require': 'off',
|
123
|
+
'no-bitwise': 'off',
|
124
|
+
'no-cond-assign': 'off',
|
125
|
+
'no-else-return': 'off',
|
126
|
+
'no-empty': 'off',
|
127
|
+
'no-labels': 'off',
|
128
|
+
'no-loop-func': 'off',
|
129
|
+
'no-mixed-operators': 'off',
|
130
|
+
'no-multi-assign': 'off',
|
131
|
+
'no-new-func': 'off',
|
132
|
+
'no-path-concat': 'off',
|
133
|
+
'no-prototype-builtins': 'off',
|
134
|
+
'no-return-assign': 'off',
|
135
|
+
'no-self-assign': 'off',
|
136
|
+
'no-shadow-restricted-names': 'off',
|
137
|
+
'no-unused-expressions': 'off',
|
138
|
+
'no-use-before-define': 'off',
|
139
|
+
'no-useless-concat': 'off',
|
140
|
+
'no-useless-escape': 'off',
|
141
|
+
radix: 'off',
|
142
|
+
'unicorn/better-regex': 'off',
|
143
|
+
'unicorn/consistent-function-scoping': 'off',
|
144
|
+
'unicorn/empty-brace-spaces': 'off',
|
145
|
+
'unicorn/escape-case': 'off',
|
146
|
+
'unicorn/explicit-length-check': 'off',
|
147
|
+
'unicorn/new-for-builtins': 'off',
|
148
|
+
'unicorn/no-hex-escape': 'off',
|
149
|
+
'unicorn/no-instanceof-array': 'off',
|
150
|
+
'unicorn/no-process-exit': 'off',
|
151
|
+
'unicorn/no-typeof-undefined': 'off',
|
152
|
+
'unicorn/no-useless-switch-case': 'off',
|
153
|
+
'unicorn/no-useless-undefined': 'off',
|
154
|
+
'unicorn/prefer-array-find': 'off',
|
155
|
+
'unicorn/prefer-date-now': 'off',
|
156
|
+
'unicorn/prefer-default-parameters': 'off',
|
157
|
+
'unicorn/prefer-logical-operator-over-ternary': 'off',
|
158
|
+
'unicorn/prefer-native-coercion-functions': 'off',
|
159
|
+
'unicorn/prefer-negative-index': 'off',
|
160
|
+
'unicorn/prefer-regexp-test': 'off',
|
161
|
+
'unicorn/prefer-switch': 'off',
|
162
|
+
'unicorn/prefer-ternary': 'off',
|
163
|
+
|
164
|
+
// TODO rare errors
|
165
|
+
'arrow-body-style': 'off',
|
166
|
+
'block-scoped-var': 'off',
|
167
|
+
'import/no-extraneous-dependencies': 'off',
|
168
|
+
'import/order': 'off',
|
169
|
+
'new-cap': 'off',
|
170
|
+
'newline-per-chained-call': 'off',
|
171
|
+
'no-extra-boolean-cast': 'off',
|
172
|
+
'no-redeclare': 'off',
|
173
|
+
'no-unneeded-ternary': 'off',
|
174
|
+
'no-useless-return': 'off',
|
175
|
+
'operator-assignment': 'off',
|
176
|
+
'unicorn/no-console-spaces': 'off',
|
177
|
+
yoda: 'off',
|
109
178
|
},
|
110
179
|
reportUnusedDisableDirectives: true,
|
180
|
+
globals: {
|
181
|
+
jQuery: true,
|
182
|
+
},
|
111
183
|
};
|
package/.github/workflows/ci.yml
CHANGED
@@ -11,7 +11,7 @@ jobs:
|
|
11
11
|
- uses: actions/checkout@v3
|
12
12
|
- uses: actions/setup-node@v3
|
13
13
|
- name: Install dependencies
|
14
|
-
run: yarn
|
14
|
+
run: yarn && yarn add -D eslint-config-airbnb-base eslint-plugin-unicorn eslint-plugin-jest@^26.9.0 @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript
|
15
15
|
- name: Lint JS and CSS/LESS files
|
16
16
|
run: npm run lint
|
17
17
|
test:
|
@@ -20,7 +20,7 @@ jobs:
|
|
20
20
|
strategy:
|
21
21
|
fail-fast: false
|
22
22
|
matrix:
|
23
|
-
node-version: [12, 14, 16, 18]
|
23
|
+
node-version: [12, 14, 16, 18, latest]
|
24
24
|
steps:
|
25
25
|
- uses: actions/checkout@v3
|
26
26
|
- name: Setup Node.js ${{ matrix.node-version }}
|
package/.stylelintrc.js
CHANGED
@@ -12,6 +12,7 @@ module.exports = {
|
|
12
12
|
'block-closing-brace-newline-before': null, // fix bad formatting with "each()"
|
13
13
|
'declaration-block-trailing-semicolon': null, // fix bad formatting with "each()"
|
14
14
|
indentation: null, // TODO change to "4" once https://github.com/fomantic/Fomantic-UI/pull/2593#discussion_r1045131096 is fixed
|
15
|
+
linebreaks: 'unix',
|
15
16
|
'max-line-length': null,
|
16
17
|
'no-descending-specificity': null,
|
17
18
|
'no-extra-semicolons': null, // fix GH-1832 - workaround for wikimedia/less.php parser
|
package/dist/components/ad.css
CHANGED
package/dist/components/api.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.1-beta.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.22+6a42d01 - Calendar
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -758,6 +758,7 @@
|
|
758
758
|
var ms1d = 864e5, // milliseconds in a day
|
759
759
|
ms7d = 7 * ms1d; // milliseconds in a week
|
760
760
|
|
761
|
+
// eslint-disable-next-line wrap-iife
|
761
762
|
return function () { // return a closure so constants get calculated only once
|
762
763
|
var DC3 = Date.UTC(weekYear, weekMonth, weekDay + 3) / ms1d, // an Absolute Day Number
|
763
764
|
AWN = Math.floor(DC3 / 7), // an Absolute Week Number
|
package/dist/components/card.css
CHANGED
package/dist/components/embed.js
CHANGED
package/dist/components/feed.css
CHANGED