@kwiz/fluentui 1.0.78 → 1.0.79
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/LICENSE +21 -21
- package/README.md +53 -53
- package/dist/controls/svg.js +21 -21
- package/dist/controls/svg.js.map +1 -1
- package/package.json +85 -85
- package/.dependency-cruiser.js +0 -399
- package/.github/workflows/npm-publish.yml +0 -24
- package/dist/@types/forwardRef.d.ts +0 -0
- package/dist/@types/forwardRef.js +0 -1
- package/dist/@types/forwardRef.js.map +0 -1
- package/dist/controls/error-boundary copy.d.ts +0 -23
- package/dist/controls/error-boundary copy.js +0 -33
- package/dist/controls/error-boundary copy.js.map +0 -1
- package/dist/helpers/common.d.ts +0 -4
- package/dist/helpers/common.js +0 -2
- package/dist/helpers/common.js.map +0 -1
- package/dist/helpers/context.d.ts +0 -26
- package/dist/helpers/context.js +0 -15
- package/dist/helpers/context.js.map +0 -1
- package/dist/helpers/drag-drop/exports.d.ts +0 -12
- package/dist/helpers/drag-drop/exports.js +0 -3
- package/dist/helpers/drag-drop/exports.js.map +0 -1
- package/dist/helpers/exports.d.ts +0 -7
- package/dist/helpers/exports.js +0 -8
- package/dist/helpers/exports.js.map +0 -1
- package/src/_modules/config.ts +0 -9
- package/src/_modules/constants.ts +0 -3
- package/src/controls/ColorPickerDialog.tsx +0 -84
- package/src/controls/accordion.tsx +0 -62
- package/src/controls/button.tsx +0 -181
- package/src/controls/canvas/CustomEventTargetBase.ts +0 -33
- package/src/controls/canvas/DrawPad.tsx +0 -297
- package/src/controls/canvas/DrawPadManager.ts +0 -695
- package/src/controls/canvas/bezier.ts +0 -110
- package/src/controls/canvas/point.ts +0 -45
- package/src/controls/card-list.tsx +0 -32
- package/src/controls/card.tsx +0 -78
- package/src/controls/centered.tsx +0 -15
- package/src/controls/date.tsx +0 -88
- package/src/controls/diagram-picker.tsx +0 -97
- package/src/controls/divider.tsx +0 -16
- package/src/controls/dropdown.tsx +0 -67
- package/src/controls/error-boundary.tsx +0 -42
- package/src/controls/field-editor.tsx +0 -43
- package/src/controls/file-upload.tsx +0 -156
- package/src/controls/horizontal.tsx +0 -49
- package/src/controls/html-editor/editor.tsx +0 -182
- package/src/controls/index.ts +0 -33
- package/src/controls/input.tsx +0 -161
- package/src/controls/kwizoverflow.tsx +0 -107
- package/src/controls/list.tsx +0 -120
- package/src/controls/loading.tsx +0 -11
- package/src/controls/menu.tsx +0 -196
- package/src/controls/merge-text.tsx +0 -126
- package/src/controls/please-wait.tsx +0 -33
- package/src/controls/progress-bar.tsx +0 -110
- package/src/controls/prompt.tsx +0 -122
- package/src/controls/qrcode.tsx +0 -37
- package/src/controls/search.tsx +0 -72
- package/src/controls/section.tsx +0 -134
- package/src/controls/svg.tsx +0 -139
- package/src/controls/toolbar.tsx +0 -47
- package/src/controls/vertical-content.tsx +0 -50
- package/src/controls/vertical.tsx +0 -43
- package/src/helpers/block-nav.tsx +0 -89
- package/src/helpers/context-const.ts +0 -30
- package/src/helpers/context-export.tsx +0 -78
- package/src/helpers/context-internal.ts +0 -14
- package/src/helpers/drag-drop/drag-drop-container.tsx +0 -54
- package/src/helpers/drag-drop/drag-drop-context-internal.tsx +0 -10
- package/src/helpers/drag-drop/drag-drop-context.tsx +0 -62
- package/src/helpers/drag-drop/drag-drop.types.ts +0 -21
- package/src/helpers/drag-drop/index.ts +0 -12
- package/src/helpers/drag-drop/readme.md +0 -76
- package/src/helpers/drag-drop/use-draggable.ts +0 -48
- package/src/helpers/drag-drop/use-droppable.ts +0 -39
- package/src/helpers/forwardRef.ts +0 -7
- package/src/helpers/hooks-events.ts +0 -150
- package/src/helpers/hooks.tsx +0 -175
- package/src/helpers/index.ts +0 -8
- package/src/helpers/use-alerts.tsx +0 -75
- package/src/helpers/use-editable-control.tsx +0 -38
- package/src/helpers/use-toast.tsx +0 -30
- package/src/index.ts +0 -3
- package/src/styles/index.ts +0 -1
- package/src/styles/styles.ts +0 -105
- package/src/styles/theme.ts +0 -91
package/.dependency-cruiser.js
DELETED
@@ -1,399 +0,0 @@
|
|
1
|
-
/** @type {import('dependency-cruiser').IConfiguration} */
|
2
|
-
module.exports = {
|
3
|
-
forbidden: [
|
4
|
-
{
|
5
|
-
name: 'no-circular',
|
6
|
-
severity: 'warn',
|
7
|
-
comment:
|
8
|
-
'This dependency is part of a circular relationship. You might want to revise ' +
|
9
|
-
'your solution (i.e. use dependency inversion, make sure the modules have a single responsibility) ',
|
10
|
-
from: {},
|
11
|
-
to: {
|
12
|
-
circular: true
|
13
|
-
}
|
14
|
-
},
|
15
|
-
{
|
16
|
-
name: 'no-orphans',
|
17
|
-
comment:
|
18
|
-
"This is an orphan module - it's likely not used (anymore?). Either use it or " +
|
19
|
-
"remove it. If it's logical this module is an orphan (i.e. it's a config file), " +
|
20
|
-
"add an exception for it in your dependency-cruiser configuration. By default " +
|
21
|
-
"this rule does not scrutinize dot-files (e.g. .eslintrc.js), TypeScript declaration " +
|
22
|
-
"files (.d.ts), tsconfig.json and some of the babel and webpack configs.",
|
23
|
-
severity: 'warn',
|
24
|
-
from: {
|
25
|
-
orphan: true,
|
26
|
-
pathNot: [
|
27
|
-
'(^|/)[.][^/]+[.](?:js|cjs|mjs|ts|cts|mts|json)$', // dot files
|
28
|
-
'[.]d[.]ts$', // TypeScript declaration files
|
29
|
-
'(^|/)tsconfig[.]json$', // TypeScript config
|
30
|
-
'(^|/)(?:babel|webpack)[.]config[.](?:js|cjs|mjs|ts|cts|mts|json)$' // other configs
|
31
|
-
]
|
32
|
-
},
|
33
|
-
to: {},
|
34
|
-
},
|
35
|
-
{
|
36
|
-
name: 'no-deprecated-core',
|
37
|
-
comment:
|
38
|
-
'A module depends on a node core module that has been deprecated. Find an alternative - these are ' +
|
39
|
-
"bound to exist - node doesn't deprecate lightly.",
|
40
|
-
severity: 'warn',
|
41
|
-
from: {},
|
42
|
-
to: {
|
43
|
-
dependencyTypes: [
|
44
|
-
'core'
|
45
|
-
],
|
46
|
-
path: [
|
47
|
-
'^v8/tools/codemap$',
|
48
|
-
'^v8/tools/consarray$',
|
49
|
-
'^v8/tools/csvparser$',
|
50
|
-
'^v8/tools/logreader$',
|
51
|
-
'^v8/tools/profile_view$',
|
52
|
-
'^v8/tools/profile$',
|
53
|
-
'^v8/tools/SourceMap$',
|
54
|
-
'^v8/tools/splaytree$',
|
55
|
-
'^v8/tools/tickprocessor-driver$',
|
56
|
-
'^v8/tools/tickprocessor$',
|
57
|
-
'^node-inspect/lib/_inspect$',
|
58
|
-
'^node-inspect/lib/internal/inspect_client$',
|
59
|
-
'^node-inspect/lib/internal/inspect_repl$',
|
60
|
-
'^async_hooks$',
|
61
|
-
'^punycode$',
|
62
|
-
'^domain$',
|
63
|
-
'^constants$',
|
64
|
-
'^sys$',
|
65
|
-
'^_linklist$',
|
66
|
-
'^_stream_wrap$'
|
67
|
-
],
|
68
|
-
}
|
69
|
-
},
|
70
|
-
{
|
71
|
-
name: 'not-to-deprecated',
|
72
|
-
comment:
|
73
|
-
'This module uses a (version of an) npm module that has been deprecated. Either upgrade to a later ' +
|
74
|
-
'version of that module, or find an alternative. Deprecated modules are a security risk.',
|
75
|
-
severity: 'warn',
|
76
|
-
from: {},
|
77
|
-
to: {
|
78
|
-
dependencyTypes: [
|
79
|
-
'deprecated'
|
80
|
-
]
|
81
|
-
}
|
82
|
-
},
|
83
|
-
{
|
84
|
-
name: 'no-non-package-json',
|
85
|
-
severity: 'error',
|
86
|
-
comment:
|
87
|
-
"This module depends on an npm package that isn't in the 'dependencies' section of your package.json. " +
|
88
|
-
"That's problematic as the package either (1) won't be available on live (2 - worse) will be " +
|
89
|
-
"available on live with an non-guaranteed version. Fix it by adding the package to the dependencies " +
|
90
|
-
"in your package.json.",
|
91
|
-
from: {},
|
92
|
-
to: {
|
93
|
-
dependencyTypes: [
|
94
|
-
'npm-no-pkg',
|
95
|
-
'npm-unknown'
|
96
|
-
]
|
97
|
-
}
|
98
|
-
},
|
99
|
-
{
|
100
|
-
name: 'not-to-unresolvable',
|
101
|
-
comment:
|
102
|
-
"This module depends on a module that cannot be found ('resolved to disk'). If it's an npm " +
|
103
|
-
'module: add it to your package.json. In all other cases you likely already know what to do.',
|
104
|
-
severity: 'error',
|
105
|
-
from: {},
|
106
|
-
to: {
|
107
|
-
couldNotResolve: true
|
108
|
-
}
|
109
|
-
},
|
110
|
-
{
|
111
|
-
name: 'no-duplicate-dep-types',
|
112
|
-
comment:
|
113
|
-
"Likely this module depends on an external ('npm') package that occurs more than once " +
|
114
|
-
"in your package.json i.e. bot as a devDependencies and in dependencies. This will cause " +
|
115
|
-
"maintenance problems later on.",
|
116
|
-
severity: 'warn',
|
117
|
-
from: {},
|
118
|
-
to: {
|
119
|
-
moreThanOneDependencyType: true,
|
120
|
-
// as it's pretty common to have a type import be a type only import
|
121
|
-
// _and_ (e.g.) a devDependency - don't consider type-only dependency
|
122
|
-
// types for this rule
|
123
|
-
dependencyTypesNot: ["type-only"]
|
124
|
-
}
|
125
|
-
},
|
126
|
-
|
127
|
-
/* rules you might want to tweak for your specific situation: */
|
128
|
-
|
129
|
-
{
|
130
|
-
name: 'not-to-spec',
|
131
|
-
comment:
|
132
|
-
'This module depends on a spec (test) file. The sole responsibility of a spec file is to test code. ' +
|
133
|
-
"If there's something in a spec that's of use to other modules, it doesn't have that single " +
|
134
|
-
'responsibility anymore. Factor it out into (e.g.) a separate utility/ helper or a mock.',
|
135
|
-
severity: 'error',
|
136
|
-
from: {},
|
137
|
-
to: {
|
138
|
-
path: '[.](?:spec|test)[.](?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$'
|
139
|
-
}
|
140
|
-
},
|
141
|
-
{
|
142
|
-
name: 'not-to-dev-dep',
|
143
|
-
severity: 'error',
|
144
|
-
comment:
|
145
|
-
"This module depends on an npm package from the 'devDependencies' section of your " +
|
146
|
-
'package.json. It looks like something that ships to production, though. To prevent problems ' +
|
147
|
-
"with npm packages that aren't there on production declare it (only!) in the 'dependencies'" +
|
148
|
-
'section of your package.json. If this module is development only - add it to the ' +
|
149
|
-
'from.pathNot re of the not-to-dev-dep rule in the dependency-cruiser configuration',
|
150
|
-
from: {
|
151
|
-
path: '^(src)',
|
152
|
-
pathNot: '[.](?:spec|test)[.](?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$'
|
153
|
-
},
|
154
|
-
to: {
|
155
|
-
dependencyTypes: [
|
156
|
-
'npm-dev',
|
157
|
-
],
|
158
|
-
// type only dependencies are not a problem as they don't end up in the
|
159
|
-
// production code or are ignored by the runtime.
|
160
|
-
dependencyTypesNot: [
|
161
|
-
'type-only'
|
162
|
-
],
|
163
|
-
pathNot: [
|
164
|
-
'node_modules/@types/'
|
165
|
-
]
|
166
|
-
}
|
167
|
-
},
|
168
|
-
{
|
169
|
-
name: 'optional-deps-used',
|
170
|
-
severity: 'info',
|
171
|
-
comment:
|
172
|
-
"This module depends on an npm package that is declared as an optional dependency " +
|
173
|
-
"in your package.json. As this makes sense in limited situations only, it's flagged here. " +
|
174
|
-
"If you're using an optional dependency here by design - add an exception to your" +
|
175
|
-
"dependency-cruiser configuration.",
|
176
|
-
from: {},
|
177
|
-
to: {
|
178
|
-
dependencyTypes: [
|
179
|
-
'npm-optional'
|
180
|
-
]
|
181
|
-
}
|
182
|
-
},
|
183
|
-
{
|
184
|
-
name: "no-import-from-local-index",
|
185
|
-
severity: "error",
|
186
|
-
comment: "do not import from index file of the same level. this will also come up as circular",
|
187
|
-
from: {
|
188
|
-
path: "src/helpers/"
|
189
|
-
},
|
190
|
-
to: {
|
191
|
-
path: "src/helpers/index"
|
192
|
-
}
|
193
|
-
},
|
194
|
-
{
|
195
|
-
name: "no-import-from-controls",
|
196
|
-
severity: "error",
|
197
|
-
comment: "do not import controls into helpers, except for prompt/please-wait control - by full path not from index",
|
198
|
-
from: {
|
199
|
-
path: "src/helpers/"
|
200
|
-
},
|
201
|
-
to: {
|
202
|
-
path: "src/controls",
|
203
|
-
pathNot: ["src/controls/prompt", "src/controls/please-wait"]
|
204
|
-
}
|
205
|
-
}
|
206
|
-
],
|
207
|
-
options: {
|
208
|
-
|
209
|
-
/* Which modules not to follow further when encountered */
|
210
|
-
doNotFollow: {
|
211
|
-
/* path: an array of regular expressions in strings to match against */
|
212
|
-
path: ['node_modules']
|
213
|
-
},
|
214
|
-
|
215
|
-
/* Which modules to exclude */
|
216
|
-
// exclude : {
|
217
|
-
// /* path: an array of regular expressions in strings to match against */
|
218
|
-
// path: '',
|
219
|
-
// },
|
220
|
-
|
221
|
-
/* Which modules to exclusively include (array of regular expressions in strings)
|
222
|
-
dependency-cruiser will skip everything not matching this pattern
|
223
|
-
*/
|
224
|
-
// includeOnly : [''],
|
225
|
-
|
226
|
-
/* List of module systems to cruise.
|
227
|
-
When left out dependency-cruiser will fall back to the list of _all_
|
228
|
-
module systems it knows of. It's the default because it's the safe option
|
229
|
-
It might come at a performance penalty, though.
|
230
|
-
moduleSystems: ['amd', 'cjs', 'es6', 'tsd']
|
231
|
-
|
232
|
-
As in practice only commonjs ('cjs') and ecmascript modules ('es6')
|
233
|
-
are widely used, you can limit the moduleSystems to those.
|
234
|
-
*/
|
235
|
-
|
236
|
-
// moduleSystems: ['cjs', 'es6'],
|
237
|
-
|
238
|
-
/*
|
239
|
-
false: don't look at JSDoc imports (the default)
|
240
|
-
true: dependency-cruiser will detect dependencies in JSDoc-style
|
241
|
-
import statements. Implies "parser": "tsc", so the dependency-cruiser
|
242
|
-
will use the typescript parser for JavaScript files.
|
243
|
-
|
244
|
-
For this to work the typescript compiler will need to be installed in the
|
245
|
-
same spot as you're running dependency-cruiser from.
|
246
|
-
*/
|
247
|
-
// detectJSDocImports: true,
|
248
|
-
|
249
|
-
/* prefix for links in html and svg output (e.g. 'https://github.com/you/yourrepo/blob/main/'
|
250
|
-
to open it on your online repo or `vscode://file/${process.cwd()}/` to
|
251
|
-
open it in visual studio code),
|
252
|
-
*/
|
253
|
-
// prefix: `vscode://file/${process.cwd()}/`,
|
254
|
-
|
255
|
-
/* false (the default): ignore dependencies that only exist before typescript-to-javascript compilation
|
256
|
-
true: also detect dependencies that only exist before typescript-to-javascript compilation
|
257
|
-
"specify": for each dependency identify whether it only exists before compilation or also after
|
258
|
-
*/
|
259
|
-
tsPreCompilationDeps: true,
|
260
|
-
|
261
|
-
/* list of extensions to scan that aren't javascript or compile-to-javascript.
|
262
|
-
Empty by default. Only put extensions in here that you want to take into
|
263
|
-
account that are _not_ parsable.
|
264
|
-
*/
|
265
|
-
// extraExtensionsToScan: [".json", ".jpg", ".png", ".svg", ".webp"],
|
266
|
-
|
267
|
-
/* if true combines the package.jsons found from the module up to the base
|
268
|
-
folder the cruise is initiated from. Useful for how (some) mono-repos
|
269
|
-
manage dependencies & dependency definitions.
|
270
|
-
*/
|
271
|
-
// combinedDependencies: false,
|
272
|
-
|
273
|
-
/* if true leave symlinks untouched, otherwise use the realpath */
|
274
|
-
// preserveSymlinks: false,
|
275
|
-
|
276
|
-
/* TypeScript project file ('tsconfig.json') to use for
|
277
|
-
(1) compilation and
|
278
|
-
(2) resolution (e.g. with the paths property)
|
279
|
-
|
280
|
-
The (optional) fileName attribute specifies which file to take (relative to
|
281
|
-
dependency-cruiser's current working directory). When not provided
|
282
|
-
defaults to './tsconfig.json'.
|
283
|
-
*/
|
284
|
-
tsConfig: {
|
285
|
-
fileName: 'tsconfig.json'
|
286
|
-
},
|
287
|
-
|
288
|
-
/* Webpack configuration to use to get resolve options from.
|
289
|
-
|
290
|
-
The (optional) fileName attribute specifies which file to take (relative
|
291
|
-
to dependency-cruiser's current working directory. When not provided defaults
|
292
|
-
to './webpack.conf.js'.
|
293
|
-
|
294
|
-
The (optional) `env` and `arguments` attributes contain the parameters
|
295
|
-
to be passed if your webpack config is a function and takes them (see
|
296
|
-
webpack documentation for details)
|
297
|
-
*/
|
298
|
-
// webpackConfig: {
|
299
|
-
// fileName: 'webpack.config.js',
|
300
|
-
// env: {},
|
301
|
-
// arguments: {}
|
302
|
-
// },
|
303
|
-
|
304
|
-
/* Babel config ('.babelrc', '.babelrc.json', '.babelrc.json5', ...) to use
|
305
|
-
for compilation
|
306
|
-
*/
|
307
|
-
// babelConfig: {
|
308
|
-
// fileName: '.babelrc',
|
309
|
-
// },
|
310
|
-
|
311
|
-
/* List of strings you have in use in addition to cjs/ es6 requires
|
312
|
-
& imports to declare module dependencies. Use this e.g. if you've
|
313
|
-
re-declared require, use a require-wrapper or use window.require as
|
314
|
-
a hack.
|
315
|
-
*/
|
316
|
-
// exoticRequireStrings: [],
|
317
|
-
|
318
|
-
/* options to pass on to enhanced-resolve, the package dependency-cruiser
|
319
|
-
uses to resolve module references to disk. The values below should be
|
320
|
-
suitable for most situations
|
321
|
-
|
322
|
-
If you use webpack: you can also set these in webpack.conf.js. The set
|
323
|
-
there will override the ones specified here.
|
324
|
-
*/
|
325
|
-
enhancedResolveOptions: {
|
326
|
-
/* What to consider as an 'exports' field in package.jsons */
|
327
|
-
exportsFields: ["exports"],
|
328
|
-
/* List of conditions to check for in the exports field.
|
329
|
-
Only works when the 'exportsFields' array is non-empty.
|
330
|
-
*/
|
331
|
-
conditionNames: ["import", "require", "node", "default", "types"],
|
332
|
-
/*
|
333
|
-
The extensions, by default are the same as the ones dependency-cruiser
|
334
|
-
can access (run `npx depcruise --info` to see which ones that are in
|
335
|
-
_your_ environment). If that list is larger than you need you can pass
|
336
|
-
the extensions you actually use (e.g. [".js", ".jsx"]). This can speed
|
337
|
-
up module resolution, which is the most expensive step.
|
338
|
-
*/
|
339
|
-
// extensions: [".js", ".jsx", ".ts", ".tsx", ".d.ts"],
|
340
|
-
/* What to consider a 'main' field in package.json */
|
341
|
-
|
342
|
-
// if you migrate to ESM (or are in an ESM environment already) you will want to
|
343
|
-
// have "module" in the list of mainFields, like so:
|
344
|
-
// mainFields: ["module", "main", "types", "typings"],
|
345
|
-
mainFields: ["main", "types", "typings"],
|
346
|
-
/*
|
347
|
-
A list of alias fields in package.jsons
|
348
|
-
See [this specification](https://github.com/defunctzombie/package-browser-field-spec) and
|
349
|
-
the webpack [resolve.alias](https://webpack.js.org/configuration/resolve/#resolvealiasfields)
|
350
|
-
documentation
|
351
|
-
|
352
|
-
Defaults to an empty array (= don't use alias fields).
|
353
|
-
*/
|
354
|
-
// aliasFields: ["browser"],
|
355
|
-
},
|
356
|
-
reporterOptions: {
|
357
|
-
dot: {
|
358
|
-
/* pattern of modules that can be consolidated in the detailed
|
359
|
-
graphical dependency graph. The default pattern in this configuration
|
360
|
-
collapses everything in node_modules to one folder deep so you see
|
361
|
-
the external modules, but their innards.
|
362
|
-
*/
|
363
|
-
collapsePattern: 'node_modules/(?:@[^/]+/[^/]+|[^/]+)',
|
364
|
-
|
365
|
-
/* Options to tweak the appearance of your graph.See
|
366
|
-
https://github.com/sverweij/dependency-cruiser/blob/main/doc/options-reference.md#reporteroptions
|
367
|
-
for details and some examples. If you don't specify a theme
|
368
|
-
dependency-cruiser falls back to a built-in one.
|
369
|
-
*/
|
370
|
-
// theme: {
|
371
|
-
// graph: {
|
372
|
-
// /* splines: "ortho" gives straight lines, but is slow on big graphs
|
373
|
-
// splines: "true" gives bezier curves (fast, not as nice as ortho)
|
374
|
-
// */
|
375
|
-
// splines: "true"
|
376
|
-
// },
|
377
|
-
// }
|
378
|
-
},
|
379
|
-
archi: {
|
380
|
-
/* pattern of modules that can be consolidated in the high level
|
381
|
-
graphical dependency graph. If you use the high level graphical
|
382
|
-
dependency graph reporter (`archi`) you probably want to tweak
|
383
|
-
this collapsePattern to your situation.
|
384
|
-
*/
|
385
|
-
collapsePattern: '^(?:packages|src|lib(s?)|app(s?)|bin|test(s?)|spec(s?))/[^/]+|node_modules/(?:@[^/]+/[^/]+|[^/]+)',
|
386
|
-
|
387
|
-
/* Options to tweak the appearance of your graph. If you don't specify a
|
388
|
-
theme for 'archi' dependency-cruiser will use the one specified in the
|
389
|
-
dot section above and otherwise use the default one.
|
390
|
-
*/
|
391
|
-
// theme: { },
|
392
|
-
},
|
393
|
-
"text": {
|
394
|
-
"highlightFocused": true
|
395
|
-
},
|
396
|
-
}
|
397
|
-
}
|
398
|
-
};
|
399
|
-
// generated: dependency-cruiser@16.8.0 on 2024-12-16T15:33:04.578Z
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
2
|
-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
3
|
-
|
4
|
-
name: Node.js Package
|
5
|
-
|
6
|
-
on:
|
7
|
-
push:
|
8
|
-
tags:
|
9
|
-
- 'v*.*.*' # run every time we commit with a new version number
|
10
|
-
|
11
|
-
jobs:
|
12
|
-
build-publish-npm:
|
13
|
-
runs-on: ubuntu-latest
|
14
|
-
steps:
|
15
|
-
- uses: actions/checkout@v4
|
16
|
-
- uses: actions/setup-node@v4
|
17
|
-
with:
|
18
|
-
node-version: 18
|
19
|
-
registry-url: https://registry.npmjs.org/
|
20
|
-
- run: npm ci
|
21
|
-
- run: npm run build
|
22
|
-
- run: npm run npm-publish
|
23
|
-
env:
|
24
|
-
NODE_AUTH_TOKEN: ${{secrets.KWIZ_NPM_TOKEN}}
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=forwardRef.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"forwardRef.js","sourceRoot":"","sources":["../../src/@types/forwardRef.ts"],"names":[],"mappings":""}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import React, { PropsWithChildren } from "react";
|
2
|
-
interface iProps {
|
3
|
-
errorComponent?: JSX.Element;
|
4
|
-
/** If changeMarker changes, it will check the error again */
|
5
|
-
changeMarker: string | number;
|
6
|
-
}
|
7
|
-
interface iState {
|
8
|
-
hasError: boolean;
|
9
|
-
marker: string | number;
|
10
|
-
}
|
11
|
-
export declare class ErrorBoundary extends React.Component<PropsWithChildren<iProps>, iState> {
|
12
|
-
constructor(props: iProps);
|
13
|
-
static getDerivedStateFromError(error: any): {
|
14
|
-
hasError: boolean;
|
15
|
-
};
|
16
|
-
static getDerivedStateFromProps(props: iProps, state: iState): {
|
17
|
-
hasError: boolean;
|
18
|
-
marker: string | number;
|
19
|
-
};
|
20
|
-
componentDidCatch(error: any, errorInfo: any): void;
|
21
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | JSX.Element;
|
22
|
-
}
|
23
|
-
export {};
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { GetLogger } from "_modules";
|
3
|
-
import React from "react";
|
4
|
-
const logger = GetLogger("ErrorBoundary");
|
5
|
-
export class ErrorBoundary extends React.Component {
|
6
|
-
constructor(props) {
|
7
|
-
super(props);
|
8
|
-
this.state = { hasError: false, marker: props.changeMarker };
|
9
|
-
}
|
10
|
-
static getDerivedStateFromError(error) {
|
11
|
-
// Update state so the next render will show the fallback UI.
|
12
|
-
return { hasError: true };
|
13
|
-
}
|
14
|
-
static getDerivedStateFromProps(props, state) {
|
15
|
-
if (props.changeMarker !== state.marker)
|
16
|
-
return { hasError: false, marker: props.changeMarker };
|
17
|
-
else
|
18
|
-
return null;
|
19
|
-
}
|
20
|
-
componentDidCatch(error, errorInfo) {
|
21
|
-
// You can also log the error to an error reporting service
|
22
|
-
logger.error(error);
|
23
|
-
logger.error(errorInfo);
|
24
|
-
}
|
25
|
-
render() {
|
26
|
-
if (this.state.hasError) {
|
27
|
-
// You can render any custom fallback UI
|
28
|
-
return this.props.errorComponent || _jsx("h1", { children: "Something went wrong." });
|
29
|
-
}
|
30
|
-
return this.props.children;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
//# sourceMappingURL=error-boundary%20copy.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"error-boundary copy.js","sourceRoot":"","sources":["../../src/controls/error-boundary copy.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;AAQ1C,MAAM,OAAO,aAAc,SAAQ,KAAK,CAAC,SAA4C;IACjF,YAAY,KAAa;QACrB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IACjE,CAAC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAK;QACjC,6DAA6D;QAC7D,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9B,CAAC;IACD,MAAM,CAAC,wBAAwB,CAAC,KAAa,EAAE,KAAa;QACxD,IAAI,KAAK,CAAC,YAAY,KAAK,KAAK,CAAC,MAAM;YACnC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;;YACtD,OAAO,IAAI,CAAC;IACrB,CAAC;IAED,iBAAiB,CAAC,KAAK,EAAE,SAAS;QAC9B,2DAA2D;QAC3D,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACpB,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM;QACF,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YACtB,wCAAwC;YACxC,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,IAAI,iDAA8B,CAAC;QACvE,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC/B,CAAC;CACJ"}
|
package/dist/helpers/common.d.ts
DELETED
package/dist/helpers/common.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/helpers/common.ts"],"names":[],"mappings":""}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
export interface iKWIZFluentContext {
|
3
|
-
/**
|
4
|
-
* Where the portal children are mounted on DOM
|
5
|
-
*
|
6
|
-
* @default a new element on document.body without any styling
|
7
|
-
*/
|
8
|
-
mountNode?: HTMLElement | null | {
|
9
|
-
element?: HTMLElement | null;
|
10
|
-
className?: string;
|
11
|
-
};
|
12
|
-
/**
|
13
|
-
* Controls the colors and borders of the input.
|
14
|
-
*
|
15
|
-
* @default 'underline'
|
16
|
-
*/
|
17
|
-
inputAppearance?: 'outline' | 'underline' | 'filled-darker' | 'filled-lighter';
|
18
|
-
/**
|
19
|
-
* A button can be rounded, circular, or square.
|
20
|
-
*
|
21
|
-
* @default 'rounded'
|
22
|
-
*/
|
23
|
-
buttonShape?: 'rounded' | 'circular' | 'square';
|
24
|
-
}
|
25
|
-
export declare const KWIZFluentContext: React.Context<iKWIZFluentContext>;
|
26
|
-
export declare function useKWIZFluentContext(): iKWIZFluentContext;
|
package/dist/helpers/context.js
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import { isNullOrUndefined } from "@kwiz/common";
|
2
|
-
import React from "react";
|
3
|
-
//create context
|
4
|
-
export const KWIZFluentContext = React.createContext(null);
|
5
|
-
//use context from within controls
|
6
|
-
export function useKWIZFluentContext() {
|
7
|
-
let ctx = React.useContext(KWIZFluentContext) || {};
|
8
|
-
//set defaults
|
9
|
-
if (isNullOrUndefined(ctx.inputAppearance))
|
10
|
-
ctx.inputAppearance = "underline";
|
11
|
-
if (isNullOrUndefined(ctx.buttonShape))
|
12
|
-
ctx.buttonShape = "circular";
|
13
|
-
return ctx;
|
14
|
-
}
|
15
|
-
//# sourceMappingURL=context.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/helpers/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,MAAM,OAAO,CAAC;AA2B1B,gBAAgB;AAChB,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAqB,IAAI,CAAC,CAAC;AAC/E,kCAAkC;AAClC,MAAM,UAAU,oBAAoB;IAChC,IAAI,GAAG,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;IACpD,cAAc;IACd,IAAI,iBAAiB,CAAC,GAAG,CAAC,eAAe,CAAC;QACtC,GAAG,CAAC,eAAe,GAAG,WAAW,CAAC;IACtC,IAAI,iBAAiB,CAAC,GAAG,CAAC,WAAW,CAAC;QAClC,GAAG,CAAC,WAAW,GAAG,UAAU,CAAC;IACjC,OAAO,GAAG,CAAC;AACf,CAAC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { NativeTypes } from 'react-dnd-html5-backend';
|
2
|
-
import { iDraggedItemType } from './use-draggable';
|
3
|
-
import { iDroppableProps } from './use-droppable';
|
4
|
-
export { DragDropContainer } from './drag-drop-container';
|
5
|
-
export { DragDropContextProvider, useDragDropContext } from "./drag-drop-context";
|
6
|
-
export type { iDraggedItemType } from "./use-draggable";
|
7
|
-
export type { iDroppableProps } from "./use-droppable";
|
8
|
-
type fileNativeType = typeof NativeTypes.FILE;
|
9
|
-
interface dragFiles extends iDraggedItemType<fileNativeType> {
|
10
|
-
files: FileList;
|
11
|
-
}
|
12
|
-
export type dropFiles = iDroppableProps<fileNativeType, dragFiles>;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../src/helpers/drag-drop/exports.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/helpers/exports.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/helpers/exports.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
package/src/_modules/config.ts
DELETED