@mc-markets/ui 1.0.37 → 1.0.38

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 (83) hide show
  1. package/dist/index.js +38 -4
  2. package/dist/ui.css +1 -0
  3. package/package.json +17 -48
  4. package/packages/styles/README.md +0 -150
  5. package/packages/styles/element/form.scss +9 -15
  6. package/packages/styles/element/popper.scss +6 -0
  7. package/packages/styles/element/select.scss +35 -0
  8. package/packages/styles/index.scss +2 -1
  9. package/packages/styles/{theme-config.ts → theme-config.js} +35 -55
  10. package/packages/styles/variables.scss +17 -79
  11. package/dist/components/Alert/Alert.vue.d.ts +0 -18
  12. package/dist/components/Alert/index.d.ts +0 -3
  13. package/dist/components/Banner/Banner.vue.d.ts +0 -18
  14. package/dist/components/Banner/index.d.ts +0 -3
  15. package/dist/components/DatePicker/DatePicker.vue.d.ts +0 -17
  16. package/dist/components/DatePicker/index.d.ts +0 -3
  17. package/dist/components/Dialog/index.vue.d.ts +0 -51
  18. package/dist/components/Empty/Empty.vue.d.ts +0 -19
  19. package/dist/components/Empty/index.d.ts +0 -3
  20. package/dist/components/Icon/index.d.ts +0 -3
  21. package/dist/components/Icon/types.d.ts +0 -35
  22. package/dist/components/Notification/Notification.vue.d.ts +0 -18
  23. package/dist/components/Notification/index.d.ts +0 -3
  24. package/dist/components/Pagination/Pagination.vue.d.ts +0 -17
  25. package/dist/components/Pagination/index.d.ts +0 -3
  26. package/dist/components/Tab/Tab.vue.d.ts +0 -17
  27. package/dist/components/Tab/TabPane.vue.d.ts +0 -18
  28. package/dist/components/Tooltips/Tooltips.vue.d.ts +0 -18
  29. package/dist/components/Tooltips/index.d.ts +0 -3
  30. package/dist/index.d.ts +0 -24
  31. package/dist/node_modules/@babel/parser/typings/babel-parser.d.ts +0 -235
  32. package/dist/node_modules/@babel/types/lib/index.d.ts +0 -3308
  33. package/dist/node_modules/@ctrl/tinycolor/dist/conversion.d.ts +0 -61
  34. package/dist/node_modules/@ctrl/tinycolor/dist/css-color-names.d.ts +0 -4
  35. package/dist/node_modules/@ctrl/tinycolor/dist/format-input.d.ts +0 -37
  36. package/dist/node_modules/@ctrl/tinycolor/dist/from-ratio.d.ts +0 -14
  37. package/dist/node_modules/@ctrl/tinycolor/dist/index.d.ts +0 -207
  38. package/dist/node_modules/@ctrl/tinycolor/dist/interfaces.d.ts +0 -46
  39. package/dist/node_modules/@ctrl/tinycolor/dist/public_api.d.ts +0 -11
  40. package/dist/node_modules/@ctrl/tinycolor/dist/random.d.ts +0 -24
  41. package/dist/node_modules/@ctrl/tinycolor/dist/readability.d.ts +0 -46
  42. package/dist/node_modules/@ctrl/tinycolor/dist/to-ms-filter.d.ts +0 -5
  43. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +0 -514
  44. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +0 -327
  45. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +0 -103
  46. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +0 -47
  47. package/dist/node_modules/@types/lodash/common/array.d.ts +0 -2137
  48. package/dist/node_modules/@types/lodash/common/collection.d.ts +0 -1938
  49. package/dist/node_modules/@types/lodash/common/common.d.ts +0 -287
  50. package/dist/node_modules/@types/lodash/common/date.d.ts +0 -23
  51. package/dist/node_modules/@types/lodash/common/function.d.ts +0 -1455
  52. package/dist/node_modules/@types/lodash/common/lang.d.ts +0 -1700
  53. package/dist/node_modules/@types/lodash/common/math.d.ts +0 -405
  54. package/dist/node_modules/@types/lodash/common/number.d.ts +0 -131
  55. package/dist/node_modules/@types/lodash/common/object.d.ts +0 -2643
  56. package/dist/node_modules/@types/lodash/common/seq.d.ts +0 -210
  57. package/dist/node_modules/@types/lodash/common/string.d.ts +0 -788
  58. package/dist/node_modules/@types/lodash/common/util.d.ts +0 -1220
  59. package/dist/node_modules/@types/lodash/index.d.ts +0 -21
  60. package/dist/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +0 -1093
  61. package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +0 -45
  62. package/dist/node_modules/@vue/reactivity/dist/reactivity.d.ts +0 -756
  63. package/dist/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +0 -1839
  64. package/dist/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +0 -1397
  65. package/dist/node_modules/@vue/shared/dist/shared.d.ts +0 -335
  66. package/dist/node_modules/@vueuse/core/index.d.ts +0 -4536
  67. package/dist/node_modules/@vueuse/core/node_modules/vue-demi/lib/index.d.ts +0 -22
  68. package/dist/node_modules/@vueuse/shared/index.d.ts +0 -1072
  69. package/dist/node_modules/@vueuse/shared/node_modules/vue-demi/lib/index.d.ts +0 -22
  70. package/dist/node_modules/async-validator/dist-types/index.d.ts +0 -43
  71. package/dist/node_modules/async-validator/dist-types/interface.d.ts +0 -135
  72. package/dist/node_modules/csstype/index.d.ts +0 -21297
  73. package/dist/node_modules/dayjs/index.d.ts +0 -429
  74. package/dist/node_modules/dayjs/locale/index.d.ts +0 -11
  75. package/dist/node_modules/dayjs/locale/types.d.ts +0 -33
  76. package/dist/node_modules/element-plus/es/index.d.ts +0 -26960
  77. package/dist/node_modules/element-plus/es/utils/vue3.3.polyfill.d.ts +0 -34
  78. package/dist/node_modules/memoize-one/dist/memoize-one.d.ts +0 -7
  79. package/dist/node_modules/vue/dist/vue.d.mts +0 -7
  80. package/dist/style.css +0 -1
  81. package/dist/styles/theme-config.d.ts +0 -83
  82. package/dist/types/auto-imports.d.ts +0 -84
  83. package/dist/types/components.d.ts +0 -55
@@ -1,514 +0,0 @@
1
- import { AlignedPlacement, Alignment, Axis, ClientRectObject, Coords, Dimensions, ElementRects, Length, Padding, Placement, Rect, rectToClientRect, Side, SideObject, Strategy, VirtualElement } from '@floating-ui/utils';
2
-
3
-
4
- export { AlignedPlacement }
5
-
6
- export { Alignment }
7
-
8
- /**
9
- * Provides data to position an inner element of the floating element so that it
10
- * appears centered to the reference element.
11
- * @see https://floating-ui.com/docs/arrow
12
- */
13
- export declare const arrow: (options: ArrowOptions | Derivable<ArrowOptions>) => Middleware;
14
-
15
- export declare interface ArrowOptions {
16
- /**
17
- * The arrow element to be positioned.
18
- * @default undefined
19
- */
20
- element: any;
21
- /**
22
- * The padding between the arrow element and the floating element edges.
23
- * Useful when the floating element has rounded corners.
24
- * @default 0
25
- */
26
- padding?: Padding;
27
- }
28
-
29
- /**
30
- * Optimizes the visibility of the floating element by choosing the placement
31
- * that has the most space available automatically, without needing to specify a
32
- * preferred placement. Alternative to `flip`.
33
- * @see https://floating-ui.com/docs/autoPlacement
34
- */
35
- export declare const autoPlacement: (options?: AutoPlacementOptions | Derivable<AutoPlacementOptions>) => Middleware;
36
-
37
- export declare interface AutoPlacementOptions extends DetectOverflowOptions {
38
- /**
39
- * The axis that runs along the alignment of the floating element. Determines
40
- * whether to check for most space along this axis.
41
- * @default false
42
- */
43
- crossAxis?: boolean;
44
- /**
45
- * Choose placements with a particular alignment.
46
- * @default undefined
47
- */
48
- alignment?: Alignment | null;
49
- /**
50
- * Whether to choose placements with the opposite alignment if the preferred
51
- * alignment does not fit.
52
- * @default true
53
- */
54
- autoAlignment?: boolean;
55
- /**
56
- * Which placements are allowed to be chosen. Placements must be within the
57
- * `alignment` option if explicitly set.
58
- * @default allPlacements (variable)
59
- */
60
- allowedPlacements?: Array<Placement>;
61
- }
62
-
63
- export { Axis }
64
-
65
- export declare type Boundary = any;
66
-
67
- export { ClientRectObject }
68
-
69
- export declare type ComputePosition = (reference: unknown, floating: unknown, config: ComputePositionConfig) => Promise<ComputePositionReturn>;
70
-
71
- /**
72
- * Computes the `x` and `y` coordinates that will place the floating element
73
- * next to a given reference element.
74
- *
75
- * This export does not have any `platform` interface logic. You will need to
76
- * write one for the platform you are using Floating UI with.
77
- */
78
- export declare const computePosition: ComputePosition;
79
-
80
- export declare interface ComputePositionConfig {
81
- /**
82
- * Object to interface with the current platform.
83
- */
84
- platform: Platform;
85
- /**
86
- * Where to place the floating element relative to the reference element.
87
- */
88
- placement?: Placement;
89
- /**
90
- * The strategy to use when positioning the floating element.
91
- */
92
- strategy?: Strategy;
93
- /**
94
- * Array of middleware objects to modify the positioning or provide data for
95
- * rendering.
96
- */
97
- middleware?: Array<Middleware | null | undefined | false>;
98
- }
99
-
100
- export declare interface ComputePositionReturn extends Coords {
101
- /**
102
- * The final chosen placement of the floating element.
103
- */
104
- placement: Placement;
105
- /**
106
- * The strategy used to position the floating element.
107
- */
108
- strategy: Strategy;
109
- /**
110
- * Object containing data returned from all middleware, keyed by their name.
111
- */
112
- middlewareData: MiddlewareData;
113
- }
114
-
115
- export { Coords }
116
-
117
- /**
118
- * Function option to derive middleware options from state.
119
- */
120
- export declare type Derivable<T> = (state: MiddlewareState) => T;
121
-
122
- /**
123
- * Resolves with an object of overflow side offsets that determine how much the
124
- * element is overflowing a given clipping boundary on each side.
125
- * - positive = overflowing the boundary by that number of pixels
126
- * - negative = how many pixels left before it will overflow
127
- * - 0 = lies flush with the boundary
128
- * @see https://floating-ui.com/docs/detectOverflow
129
- */
130
- export declare function detectOverflow(state: MiddlewareState, options?: DetectOverflowOptions | Derivable<DetectOverflowOptions>): Promise<SideObject>;
131
-
132
- export declare interface DetectOverflowOptions {
133
- /**
134
- * The clipping element(s) or area in which overflow will be checked.
135
- * @default 'clippingAncestors'
136
- */
137
- boundary?: Boundary;
138
- /**
139
- * The root clipping area in which overflow will be checked.
140
- * @default 'viewport'
141
- */
142
- rootBoundary?: RootBoundary;
143
- /**
144
- * The element in which overflow is being checked relative to a boundary.
145
- * @default 'floating'
146
- */
147
- elementContext?: ElementContext;
148
- /**
149
- * Whether to check for overflow using the alternate element's boundary
150
- * (`clippingAncestors` boundary only).
151
- * @default false
152
- */
153
- altBoundary?: boolean;
154
- /**
155
- * Virtual padding for the resolved overflow detection offsets.
156
- * @default 0
157
- */
158
- padding?: Padding;
159
- }
160
-
161
- export { Dimensions }
162
-
163
- export declare type ElementContext = 'reference' | 'floating';
164
-
165
- export { ElementRects }
166
-
167
- export declare interface Elements {
168
- reference: ReferenceElement;
169
- floating: FloatingElement;
170
- }
171
-
172
- /**
173
- * Optimizes the visibility of the floating element by flipping the `placement`
174
- * in order to keep it in view when the preferred placement(s) will overflow the
175
- * clipping boundary. Alternative to `autoPlacement`.
176
- * @see https://floating-ui.com/docs/flip
177
- */
178
- export declare const flip: (options?: FlipOptions | Derivable<FlipOptions>) => Middleware;
179
-
180
- export declare interface FlipOptions extends DetectOverflowOptions {
181
- /**
182
- * The axis that runs along the side of the floating element. Determines
183
- * whether overflow along this axis is checked to perform a flip.
184
- * @default true
185
- */
186
- mainAxis?: boolean;
187
- /**
188
- * The axis that runs along the alignment of the floating element. Determines
189
- * whether overflow along this axis is checked to perform a flip.
190
- * - `true`: Whether to check cross axis overflow for both side and alignment flipping.
191
- * - `false`: Whether to disable all cross axis overflow checking.
192
- * - `'alignment'`: Whether to check cross axis overflow for alignment flipping only.
193
- * @default true
194
- */
195
- crossAxis?: boolean | 'alignment';
196
- /**
197
- * Placements to try sequentially if the preferred `placement` does not fit.
198
- * @default [oppositePlacement] (computed)
199
- */
200
- fallbackPlacements?: Array<Placement>;
201
- /**
202
- * What strategy to use when no placements fit.
203
- * @default 'bestFit'
204
- */
205
- fallbackStrategy?: 'bestFit' | 'initialPlacement';
206
- /**
207
- * Whether to allow fallback to the perpendicular axis of the preferred
208
- * placement, and if so, which side direction along the axis to prefer.
209
- * @default 'none' (disallow fallback)
210
- */
211
- fallbackAxisSideDirection?: 'none' | 'start' | 'end';
212
- /**
213
- * Whether to flip to placements with the opposite alignment if they fit
214
- * better.
215
- * @default true
216
- */
217
- flipAlignment?: boolean;
218
- }
219
-
220
- export declare type FloatingElement = any;
221
-
222
- /**
223
- * Provides data to hide the floating element in applicable situations, such as
224
- * when it is not in the same clipping context as the reference element.
225
- * @see https://floating-ui.com/docs/hide
226
- */
227
- export declare const hide: (options?: HideOptions | Derivable<HideOptions>) => Middleware;
228
-
229
- export declare interface HideOptions extends DetectOverflowOptions {
230
- /**
231
- * The strategy used to determine when to hide the floating element.
232
- */
233
- strategy?: 'referenceHidden' | 'escaped';
234
- }
235
-
236
- /**
237
- * Provides improved positioning for inline reference elements that can span
238
- * over multiple lines, such as hyperlinks or range selections.
239
- * @see https://floating-ui.com/docs/inline
240
- */
241
- export declare const inline: (options?: InlineOptions | Derivable<InlineOptions>) => Middleware;
242
-
243
- export declare interface InlineOptions {
244
- /**
245
- * Viewport-relative `x` coordinate to choose a `ClientRect`.
246
- * @default undefined
247
- */
248
- x?: number;
249
- /**
250
- * Viewport-relative `y` coordinate to choose a `ClientRect`.
251
- * @default undefined
252
- */
253
- y?: number;
254
- /**
255
- * Represents the padding around a disjoined rect when choosing it.
256
- * @default 2
257
- */
258
- padding?: Padding;
259
- }
260
-
261
- export { Length }
262
-
263
- /**
264
- * Built-in `limiter` that will stop `shift()` at a certain point.
265
- */
266
- export declare const limitShift: (options?: LimitShiftOptions | Derivable<LimitShiftOptions>) => {
267
- options: any;
268
- fn: (state: MiddlewareState) => Coords;
269
- };
270
-
271
- declare type LimitShiftOffset = number | {
272
- /**
273
- * Offset the limiting of the axis that runs along the alignment of the
274
- * floating element.
275
- */
276
- mainAxis?: number;
277
- /**
278
- * Offset the limiting of the axis that runs along the side of the
279
- * floating element.
280
- */
281
- crossAxis?: number;
282
- };
283
-
284
- export declare interface LimitShiftOptions {
285
- /**
286
- * Offset when limiting starts. `0` will limit when the opposite edges of the
287
- * reference and floating elements are aligned.
288
- * - positive = start limiting earlier
289
- * - negative = start limiting later
290
- */
291
- offset?: LimitShiftOffset | Derivable<LimitShiftOffset>;
292
- /**
293
- * Whether to limit the axis that runs along the alignment of the floating
294
- * element.
295
- */
296
- mainAxis?: boolean;
297
- /**
298
- * Whether to limit the axis that runs along the side of the floating element.
299
- */
300
- crossAxis?: boolean;
301
- }
302
-
303
- export declare type Middleware = {
304
- name: string;
305
- options?: any;
306
- fn: (state: MiddlewareState) => Promisable<MiddlewareReturn>;
307
- };
308
-
309
- /**
310
- * @deprecated use `MiddlewareState` instead.
311
- */
312
- export declare type MiddlewareArguments = MiddlewareState;
313
-
314
- export declare interface MiddlewareData {
315
- [key: string]: any;
316
- arrow?: Partial<Coords> & {
317
- centerOffset: number;
318
- alignmentOffset?: number;
319
- };
320
- autoPlacement?: {
321
- index?: number;
322
- overflows: Array<{
323
- placement: Placement;
324
- overflows: Array<number>;
325
- }>;
326
- };
327
- flip?: {
328
- index?: number;
329
- overflows: Array<{
330
- placement: Placement;
331
- overflows: Array<number>;
332
- }>;
333
- };
334
- hide?: {
335
- referenceHidden?: boolean;
336
- escaped?: boolean;
337
- referenceHiddenOffsets?: SideObject;
338
- escapedOffsets?: SideObject;
339
- };
340
- offset?: Coords & {
341
- placement: Placement;
342
- };
343
- shift?: Coords & {
344
- enabled: {
345
- [key in Axis]: boolean;
346
- };
347
- };
348
- }
349
-
350
- export declare interface MiddlewareReturn extends Partial<Coords> {
351
- data?: {
352
- [key: string]: any;
353
- };
354
- reset?: boolean | {
355
- placement?: Placement;
356
- rects?: boolean | ElementRects;
357
- };
358
- }
359
-
360
- export declare interface MiddlewareState extends Coords {
361
- initialPlacement: Placement;
362
- placement: Placement;
363
- strategy: Strategy;
364
- middlewareData: MiddlewareData;
365
- elements: Elements;
366
- rects: ElementRects;
367
- platform: Platform;
368
- }
369
-
370
- /**
371
- * Modifies the placement by translating the floating element along the
372
- * specified axes.
373
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
374
- * object may be passed.
375
- * @see https://floating-ui.com/docs/offset
376
- */
377
- export declare const offset: (options?: OffsetOptions) => Middleware;
378
-
379
- export declare type OffsetOptions = OffsetValue | Derivable<OffsetValue>;
380
-
381
- declare type OffsetValue = number | {
382
- /**
383
- * The axis that runs along the side of the floating element. Represents
384
- * the distance (gutter or margin) between the reference and floating
385
- * element.
386
- * @default 0
387
- */
388
- mainAxis?: number;
389
- /**
390
- * The axis that runs along the alignment of the floating element.
391
- * Represents the skidding between the reference and floating element.
392
- * @default 0
393
- */
394
- crossAxis?: number;
395
- /**
396
- * The same axis as `crossAxis` but applies only to aligned placements
397
- * and inverts the `end` alignment. When set to a number, it overrides the
398
- * `crossAxis` value.
399
- *
400
- * A positive number will move the floating element in the direction of
401
- * the opposite edge to the one that is aligned, while a negative number
402
- * the reverse.
403
- * @default null
404
- */
405
- alignmentAxis?: number | null;
406
- };
407
-
408
- export { Padding }
409
-
410
- export { Placement }
411
-
412
- /**
413
- * Platform interface methods to work with the current platform.
414
- * @see https://floating-ui.com/docs/platform
415
- */
416
- export declare interface Platform {
417
- getElementRects: (args: {
418
- reference: ReferenceElement;
419
- floating: FloatingElement;
420
- strategy: Strategy;
421
- }) => Promisable<ElementRects>;
422
- getClippingRect: (args: {
423
- element: any;
424
- boundary: Boundary;
425
- rootBoundary: RootBoundary;
426
- strategy: Strategy;
427
- }) => Promisable<Rect>;
428
- getDimensions: (element: any) => Promisable<Dimensions>;
429
- convertOffsetParentRelativeRectToViewportRelativeRect?: (args: {
430
- elements?: Elements;
431
- rect: Rect;
432
- offsetParent: any;
433
- strategy: Strategy;
434
- }) => Promisable<Rect>;
435
- getOffsetParent?: (element: any) => Promisable<any>;
436
- isElement?: (value: any) => Promisable<boolean>;
437
- getDocumentElement?: (element: any) => Promisable<any>;
438
- getClientRects?: (element: any) => Promisable<Array<ClientRectObject>>;
439
- isRTL?: (element: any) => Promisable<boolean>;
440
- getScale?: (element: any) => Promisable<{
441
- x: number;
442
- y: number;
443
- }>;
444
- }
445
-
446
- declare type Promisable<T> = T | Promise<T>;
447
-
448
- export { Rect }
449
-
450
- export { rectToClientRect }
451
-
452
- export declare type ReferenceElement = any;
453
-
454
- export declare type RootBoundary = 'viewport' | 'document' | Rect;
455
-
456
- /**
457
- * Optimizes the visibility of the floating element by shifting it in order to
458
- * keep it in view when it will overflow the clipping boundary.
459
- * @see https://floating-ui.com/docs/shift
460
- */
461
- export declare const shift: (options?: ShiftOptions | Derivable<ShiftOptions>) => Middleware;
462
-
463
- export declare interface ShiftOptions extends DetectOverflowOptions {
464
- /**
465
- * The axis that runs along the alignment of the floating element. Determines
466
- * whether overflow along this axis is checked to perform shifting.
467
- * @default true
468
- */
469
- mainAxis?: boolean;
470
- /**
471
- * The axis that runs along the side of the floating element. Determines
472
- * whether overflow along this axis is checked to perform shifting.
473
- * @default false
474
- */
475
- crossAxis?: boolean;
476
- /**
477
- * Accepts a function that limits the shifting done in order to prevent
478
- * detachment.
479
- */
480
- limiter?: {
481
- fn: (state: MiddlewareState) => Coords;
482
- options?: any;
483
- };
484
- }
485
-
486
- export { Side }
487
-
488
- export { SideObject }
489
-
490
- /**
491
- * Provides data that allows you to change the size of the floating element —
492
- * for instance, prevent it from overflowing the clipping boundary or match the
493
- * width of the reference element.
494
- * @see https://floating-ui.com/docs/size
495
- */
496
- export declare const size: (options?: SizeOptions | Derivable<SizeOptions>) => Middleware;
497
-
498
- export declare interface SizeOptions extends DetectOverflowOptions {
499
- /**
500
- * Function that is called to perform style mutations to the floating element
501
- * to change its size.
502
- * @default undefined
503
- */
504
- apply?(args: MiddlewareState & {
505
- availableWidth: number;
506
- availableHeight: number;
507
- }): void | Promise<void>;
508
- }
509
-
510
- export { Strategy }
511
-
512
- export { VirtualElement }
513
-
514
- export { }