@yewdiel21/motion-kit 0.15.0 → 0.16.0
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/README.md +4 -0
- package/dist/auto/index.d.ts +3 -3
- package/dist/auto/index.js +2 -2
- package/dist/{chunk-6IRJYXJU.js → chunk-NFZIX3IA.js} +2 -2
- package/dist/{chunk-JXRS3OEA.js → chunk-RBEKR5UZ.js} +29 -7
- package/dist/chunk-RBEKR5UZ.js.map +1 -0
- package/dist/{chunk-A6QQCF6V.js → chunk-SDQ776LG.js} +129 -17
- package/dist/chunk-SDQ776LG.js.map +1 -0
- package/dist/css/components/chart.css +7 -0
- package/dist/css/components/heatmap-chart.css +7 -0
- package/dist/css/components/pie-chart.css +7 -0
- package/dist/css/components/radar-chart.css +7 -0
- package/dist/css/components/radial-chart.css +16 -2
- package/dist/css/components/sankey-chart.css +7 -0
- package/dist/css/components/scroll-island.css +3 -0
- package/dist/elements/index.d.ts +3 -3
- package/dist/elements/index.js +11 -6
- package/dist/elements/index.js.map +1 -1
- package/dist/index.css +19 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/react/index.d.ts +9 -9
- package/dist/react/index.js +16 -10
- package/dist/react/index.js.map +1 -1
- package/dist/{reduced-6X_bns60.d.ts → reduced-DQwVXQYb.d.ts} +1 -1
- package/dist/{reveal-BfyKKsw4.d.ts → reveal-DRpNO4KP.d.ts} +12 -0
- package/dist/{store-CA2Qcun_.d.ts → store-Da3zSh8Z.d.ts} +5 -1
- package/package.json +1 -1
- package/src/components/add-to-cart/README.md +49 -34
- package/src/components/add-to-cart/react.tsx +4 -0
- package/src/components/chart/README.md +49 -34
- package/src/components/chart/chart.css +7 -0
- package/src/components/chart/element.ts +2 -1
- package/src/components/chart/engine.ts +105 -13
- package/src/components/chart/react.tsx +2 -2
- package/src/components/radial-chart/README.md +10 -0
- package/src/components/radial-chart/element.ts +2 -2
- package/src/components/radial-chart/engine.ts +33 -6
- package/src/components/radial-chart/radial-chart.css +9 -2
- package/src/components/radial-chart/react.tsx +2 -2
- package/src/components/scroll-island/README.md +44 -34
- package/src/components/scroll-island/element.ts +1 -1
- package/src/components/scroll-island/engine.ts +25 -3
- package/src/components/scroll-island/react.tsx +3 -3
- package/src/components/scroll-island/scroll-island.css +3 -0
- package/dist/chunk-A6QQCF6V.js.map +0 -1
- package/dist/chunk-JXRS3OEA.js.map +0 -1
- /package/dist/{chunk-6IRJYXJU.js.map → chunk-NFZIX3IA.js.map} +0 -0
|
@@ -16,6 +16,7 @@ mk-chart {
|
|
|
16
16
|
--mk-chart-other: var(--mk-muted);
|
|
17
17
|
--mk-chart-surface: var(--mk-surface-1);
|
|
18
18
|
--mk-chart-grid: color-mix(in srgb, var(--mk-text) 14%, transparent);
|
|
19
|
+
--mk-chart-track: color-mix(in srgb, var(--mk-text) 5%, transparent);
|
|
19
20
|
position: relative;
|
|
20
21
|
display: grid;
|
|
21
22
|
gap: 0.75rem;
|
|
@@ -121,6 +122,12 @@ mk-chart {
|
|
|
121
122
|
fill: color-mix(in srgb, var(--mk-text) 6%, transparent);
|
|
122
123
|
}
|
|
123
124
|
|
|
125
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-track'] { fill: var(--mk-chart-track); }
|
|
126
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'] { transition: opacity .22s ease, filter .22s ease; }
|
|
127
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'][data-mk-active] { filter: brightness(1.12); }
|
|
128
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] rect { fill: var(--mk-text); }
|
|
129
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] text { fill: var(--mk-bg); font-size: 11px; font-weight: 600; }
|
|
130
|
+
|
|
124
131
|
:is(.mk-chart, mk-chart) [data-mk-part='series'] path[data-mk-index] {
|
|
125
132
|
transition: opacity 0.2s ease;
|
|
126
133
|
}
|
|
@@ -16,6 +16,7 @@ mk-chart {
|
|
|
16
16
|
--mk-chart-other: var(--mk-muted);
|
|
17
17
|
--mk-chart-surface: var(--mk-surface-1);
|
|
18
18
|
--mk-chart-grid: color-mix(in srgb, var(--mk-text) 14%, transparent);
|
|
19
|
+
--mk-chart-track: color-mix(in srgb, var(--mk-text) 5%, transparent);
|
|
19
20
|
position: relative;
|
|
20
21
|
display: grid;
|
|
21
22
|
gap: 0.75rem;
|
|
@@ -121,6 +122,12 @@ mk-chart {
|
|
|
121
122
|
fill: color-mix(in srgb, var(--mk-text) 6%, transparent);
|
|
122
123
|
}
|
|
123
124
|
|
|
125
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-track'] { fill: var(--mk-chart-track); }
|
|
126
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'] { transition: opacity .22s ease, filter .22s ease; }
|
|
127
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'][data-mk-active] { filter: brightness(1.12); }
|
|
128
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] rect { fill: var(--mk-text); }
|
|
129
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] text { fill: var(--mk-bg); font-size: 11px; font-weight: 600; }
|
|
130
|
+
|
|
124
131
|
:is(.mk-chart, mk-chart) [data-mk-part='series'] path[data-mk-index] {
|
|
125
132
|
transition: opacity 0.2s ease;
|
|
126
133
|
}
|
|
@@ -16,6 +16,7 @@ mk-chart {
|
|
|
16
16
|
--mk-chart-other: var(--mk-muted);
|
|
17
17
|
--mk-chart-surface: var(--mk-surface-1);
|
|
18
18
|
--mk-chart-grid: color-mix(in srgb, var(--mk-text) 14%, transparent);
|
|
19
|
+
--mk-chart-track: color-mix(in srgb, var(--mk-text) 5%, transparent);
|
|
19
20
|
position: relative;
|
|
20
21
|
display: grid;
|
|
21
22
|
gap: 0.75rem;
|
|
@@ -121,6 +122,12 @@ mk-chart {
|
|
|
121
122
|
fill: color-mix(in srgb, var(--mk-text) 6%, transparent);
|
|
122
123
|
}
|
|
123
124
|
|
|
125
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-track'] { fill: var(--mk-chart-track); }
|
|
126
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'] { transition: opacity .22s ease, filter .22s ease; }
|
|
127
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'][data-mk-active] { filter: brightness(1.12); }
|
|
128
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] rect { fill: var(--mk-text); }
|
|
129
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] text { fill: var(--mk-bg); font-size: 11px; font-weight: 600; }
|
|
130
|
+
|
|
124
131
|
:is(.mk-chart, mk-chart) [data-mk-part='series'] path[data-mk-index] {
|
|
125
132
|
transition: opacity 0.2s ease;
|
|
126
133
|
}
|
|
@@ -16,6 +16,7 @@ mk-chart {
|
|
|
16
16
|
--mk-chart-other: var(--mk-muted);
|
|
17
17
|
--mk-chart-surface: var(--mk-surface-1);
|
|
18
18
|
--mk-chart-grid: color-mix(in srgb, var(--mk-text) 14%, transparent);
|
|
19
|
+
--mk-chart-track: color-mix(in srgb, var(--mk-text) 5%, transparent);
|
|
19
20
|
position: relative;
|
|
20
21
|
display: grid;
|
|
21
22
|
gap: 0.75rem;
|
|
@@ -121,6 +122,12 @@ mk-chart {
|
|
|
121
122
|
fill: color-mix(in srgb, var(--mk-text) 6%, transparent);
|
|
122
123
|
}
|
|
123
124
|
|
|
125
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-track'] { fill: var(--mk-chart-track); }
|
|
126
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'] { transition: opacity .22s ease, filter .22s ease; }
|
|
127
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'][data-mk-active] { filter: brightness(1.12); }
|
|
128
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] rect { fill: var(--mk-text); }
|
|
129
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] text { fill: var(--mk-bg); font-size: 11px; font-weight: 600; }
|
|
130
|
+
|
|
124
131
|
:is(.mk-chart, mk-chart) [data-mk-part='series'] path[data-mk-index] {
|
|
125
132
|
transition: opacity 0.2s ease;
|
|
126
133
|
}
|
|
@@ -16,6 +16,7 @@ mk-chart {
|
|
|
16
16
|
--mk-chart-other: var(--mk-muted);
|
|
17
17
|
--mk-chart-surface: var(--mk-surface-1);
|
|
18
18
|
--mk-chart-grid: color-mix(in srgb, var(--mk-text) 14%, transparent);
|
|
19
|
+
--mk-chart-track: color-mix(in srgb, var(--mk-text) 5%, transparent);
|
|
19
20
|
position: relative;
|
|
20
21
|
display: grid;
|
|
21
22
|
gap: 0.75rem;
|
|
@@ -121,6 +122,12 @@ mk-chart {
|
|
|
121
122
|
fill: color-mix(in srgb, var(--mk-text) 6%, transparent);
|
|
122
123
|
}
|
|
123
124
|
|
|
125
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-track'] { fill: var(--mk-chart-track); }
|
|
126
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'] { transition: opacity .22s ease, filter .22s ease; }
|
|
127
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'][data-mk-active] { filter: brightness(1.12); }
|
|
128
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] rect { fill: var(--mk-text); }
|
|
129
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] text { fill: var(--mk-bg); font-size: 11px; font-weight: 600; }
|
|
130
|
+
|
|
124
131
|
:is(.mk-chart, mk-chart) [data-mk-part='series'] path[data-mk-index] {
|
|
125
132
|
transition: opacity 0.2s ease;
|
|
126
133
|
}
|
|
@@ -330,6 +337,13 @@ mk-radial-chart {
|
|
|
330
337
|
stroke: var(--mk-chart-grid);
|
|
331
338
|
}
|
|
332
339
|
|
|
340
|
+
[data-mk-chart-type='radial'][data-mk-segmented] :is([data-mk-part='tracks'], [data-mk-part='series']) path {
|
|
341
|
+
stroke-width: 1px;
|
|
342
|
+
stroke-linejoin: round;
|
|
343
|
+
}
|
|
344
|
+
[data-mk-chart-type='radial'][data-mk-segmented] [data-mk-part='tracks'] path { fill: var(--mk-chart-track); stroke: var(--mk-chart-track); }
|
|
345
|
+
[data-mk-chart-type='radial'][data-mk-segmented] [data-mk-part='series'] path[data-mk-on] { filter: brightness(1.12); stroke-width: 2px; }
|
|
346
|
+
|
|
333
347
|
[data-mk-chart-type='radial'] :is([data-mk-part='tracks'], [data-mk-part='series']) path[data-mk-on] {
|
|
334
348
|
stroke-width: calc(var(--mk-radial-thickness, 12px) + 4px);
|
|
335
349
|
}
|
|
@@ -340,12 +354,12 @@ mk-radial-chart {
|
|
|
340
354
|
|
|
341
355
|
[data-mk-radial-center] {
|
|
342
356
|
position: absolute;
|
|
343
|
-
top: 50
|
|
357
|
+
top: var(--mk-radial-center-y, 50%);
|
|
344
358
|
left: 50%;
|
|
345
359
|
display: grid;
|
|
346
360
|
justify-items: center;
|
|
347
361
|
gap: 0.15rem;
|
|
348
|
-
max-width: calc(var(--mk-radial-size, 240px) * 0.36);
|
|
362
|
+
max-width: calc(var(--mk-radial-size, 240px) * var(--mk-radial-center-width, 0.36));
|
|
349
363
|
transform: translate(-50%, -50%);
|
|
350
364
|
text-align: center;
|
|
351
365
|
pointer-events: none;
|
|
@@ -16,6 +16,7 @@ mk-chart {
|
|
|
16
16
|
--mk-chart-other: var(--mk-muted);
|
|
17
17
|
--mk-chart-surface: var(--mk-surface-1);
|
|
18
18
|
--mk-chart-grid: color-mix(in srgb, var(--mk-text) 14%, transparent);
|
|
19
|
+
--mk-chart-track: color-mix(in srgb, var(--mk-text) 5%, transparent);
|
|
19
20
|
position: relative;
|
|
20
21
|
display: grid;
|
|
21
22
|
gap: 0.75rem;
|
|
@@ -121,6 +122,12 @@ mk-chart {
|
|
|
121
122
|
fill: color-mix(in srgb, var(--mk-text) 6%, transparent);
|
|
122
123
|
}
|
|
123
124
|
|
|
125
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-track'] { fill: var(--mk-chart-track); }
|
|
126
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'] { transition: opacity .22s ease, filter .22s ease; }
|
|
127
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar'][data-mk-active] { filter: brightness(1.12); }
|
|
128
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] rect { fill: var(--mk-text); }
|
|
129
|
+
:is(.mk-chart, mk-chart) [data-mk-part='bar-value'] text { fill: var(--mk-bg); font-size: 11px; font-weight: 600; }
|
|
130
|
+
|
|
124
131
|
:is(.mk-chart, mk-chart) [data-mk-part='series'] path[data-mk-index] {
|
|
125
132
|
transition: opacity 0.2s ease;
|
|
126
133
|
}
|
|
@@ -74,6 +74,8 @@ mk-scroll-island {
|
|
|
74
74
|
[data-mk-island-content] {
|
|
75
75
|
display: inline-flex;
|
|
76
76
|
flex: none;
|
|
77
|
+
max-width: 100%;
|
|
78
|
+
min-width: 0;
|
|
77
79
|
align-items: center;
|
|
78
80
|
gap: 0.5rem;
|
|
79
81
|
padding: 0 14px;
|
|
@@ -92,6 +94,7 @@ mk-scroll-island {
|
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
[data-mk-island-section] {
|
|
97
|
+
min-width: 0;
|
|
95
98
|
max-width: 12rem;
|
|
96
99
|
overflow: hidden;
|
|
97
100
|
color: rgb(255 255 255 / 0.68);
|
package/dist/elements/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { I as Instance } from '../types-BkS_raL8.js';
|
|
2
|
-
import { d0 as StudioDockInstance, d3 as StudioDockView, dg as TrailerInstance, bb as DialogInstance, bd as DialogOptions, bX as MenuInstance, ch as QuantityInstance, c3 as PaginationInstance, bG as HoverCardInstance, bM as InputOtpInstance, aq as CalendarInstance, cP as SlotPickerInstance, ad as AttachmentInstance, ac as AttachmentFile, ai as AttachmentStatus, cM as SkeletonInstance, ck as QuestionnaireInstance, cj as QuestionnaireAnswers, aF as CodeBlockInstance, aU as ContextMenuInstance, bR as LinkPreviewInstance, ce as ProgressInstance, cp as RangeSliderInstance, cr as RangeValue, aw as ChartInstance, ax as ChartOptions, aX as CreditCardInstance, aW as CreditCardField, a_ as CreditCardValues, av as CardBrand, aS as CommandSearchInstance, aR as CommandItem, bE as HoldConfirmInstance, bK as ImagePreviewInstance, c0 as NotificationBellInstance, c8 as PasswordStrengthInstance, cD as ScratchCardInstance, cY as StarRatingInstance, aP as ColorSliderInstance, aH as ColorAreaInstance, aK as ColorFieldInstance, aN as ColorPickerInstance, d7 as TimeFieldInstance, cn as RangeCalendarInstance, b6 as DateRange, b7 as DateRangePickerInstance, de as TooltipInstance, cc as PopoverInstance, bU as LoadingButtonInstance, bW as LoadingState, ak as BreadcrumbInstance, bm as EmptyStateInstance, c_ as StatCardInstance, aA as ChartTooltipInstance, bZ as MultiSelectInstance, d5 as TagInputInstance, b9 as DateTimePickerInstance, bw as FilterBuilderInstance, bA as FilterGroup, db as TimelineInstance, da as TimelineEvent, a6 as ActivityFeedInstance, a8 as ActivityItem, dj as TreeViewInstance, br as FileExplorerInstance, bP as JsonViewerInstance, dm as VirtualListInstance, cs as ResizablePanelInstance, cW as SplitViewInstance, b4 as DataTableInstance, b2 as DataRow, bh as EditableTableInstance, cy as RichTextEditorInstance, cH as SelectInstance, aa as AddToCartInstance, cF as ScrollIslandInstance } from '../reveal-
|
|
3
|
-
import { E as ThemePickerInstance, M as ToasterInstance, C as ChatInstance, d as ChatRole, l as NavInstance, n as NavStyle, o as NavStyleAlias, e as CursorInstance, I as IslandInstance, V as ToolbarInstance, B as BidirectionalSliderInstance, X as VoiceDotsInstance, Z as VoiceState, r as PieChartInstance, s as PieChartOptions, R as RadarChartInstance, u as RadarChartOptions, w as RadialChartInstance, x as RadialChartOptions, S as SankeyChartInstance, z as SankeyChartOptions, H as HeatmapChartInstance, h as HeatmapChartOptions, O as OrbitMenuInstance } from '../store-
|
|
4
|
-
export { an as toast } from '../store-
|
|
2
|
+
import { d0 as StudioDockInstance, d3 as StudioDockView, dg as TrailerInstance, bb as DialogInstance, bd as DialogOptions, bX as MenuInstance, ch as QuantityInstance, c3 as PaginationInstance, bG as HoverCardInstance, bM as InputOtpInstance, aq as CalendarInstance, cP as SlotPickerInstance, ad as AttachmentInstance, ac as AttachmentFile, ai as AttachmentStatus, cM as SkeletonInstance, ck as QuestionnaireInstance, cj as QuestionnaireAnswers, aF as CodeBlockInstance, aU as ContextMenuInstance, bR as LinkPreviewInstance, ce as ProgressInstance, cp as RangeSliderInstance, cr as RangeValue, aw as ChartInstance, ax as ChartOptions, aX as CreditCardInstance, aW as CreditCardField, a_ as CreditCardValues, av as CardBrand, aS as CommandSearchInstance, aR as CommandItem, bE as HoldConfirmInstance, bK as ImagePreviewInstance, c0 as NotificationBellInstance, c8 as PasswordStrengthInstance, cD as ScratchCardInstance, cY as StarRatingInstance, aP as ColorSliderInstance, aH as ColorAreaInstance, aK as ColorFieldInstance, aN as ColorPickerInstance, d7 as TimeFieldInstance, cn as RangeCalendarInstance, b6 as DateRange, b7 as DateRangePickerInstance, de as TooltipInstance, cc as PopoverInstance, bU as LoadingButtonInstance, bW as LoadingState, ak as BreadcrumbInstance, bm as EmptyStateInstance, c_ as StatCardInstance, aA as ChartTooltipInstance, bZ as MultiSelectInstance, d5 as TagInputInstance, b9 as DateTimePickerInstance, bw as FilterBuilderInstance, bA as FilterGroup, db as TimelineInstance, da as TimelineEvent, a6 as ActivityFeedInstance, a8 as ActivityItem, dj as TreeViewInstance, br as FileExplorerInstance, bP as JsonViewerInstance, dm as VirtualListInstance, cs as ResizablePanelInstance, cW as SplitViewInstance, b4 as DataTableInstance, b2 as DataRow, bh as EditableTableInstance, cy as RichTextEditorInstance, cH as SelectInstance, aa as AddToCartInstance, cF as ScrollIslandInstance } from '../reveal-DRpNO4KP.js';
|
|
3
|
+
import { E as ThemePickerInstance, M as ToasterInstance, C as ChatInstance, d as ChatRole, l as NavInstance, n as NavStyle, o as NavStyleAlias, e as CursorInstance, I as IslandInstance, V as ToolbarInstance, B as BidirectionalSliderInstance, X as VoiceDotsInstance, Z as VoiceState, r as PieChartInstance, s as PieChartOptions, R as RadarChartInstance, u as RadarChartOptions, w as RadialChartInstance, x as RadialChartOptions, S as SankeyChartInstance, z as SankeyChartOptions, H as HeatmapChartInstance, h as HeatmapChartOptions, O as OrbitMenuInstance } from '../store-Da3zSh8Z.js';
|
|
4
|
+
export { an as toast } from '../store-Da3zSh8Z.js';
|
|
5
5
|
import { C as ChatBackgroundInstance, c as StepsInstance, P as PillButtonInstance } from '../engine-5zRIssTO.js';
|
|
6
6
|
import { L as LikeButtonInstance, S as SwipeActionsInstance } from '../engine-QECQnGz1.js';
|
|
7
7
|
import 'gsap/Flip';
|
package/dist/elements/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
createVoiceDots,
|
|
18
18
|
iconSvg,
|
|
19
19
|
toast
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-RBEKR5UZ.js";
|
|
21
21
|
import {
|
|
22
22
|
createActivityFeed,
|
|
23
23
|
createAddToCart,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
createTrailer,
|
|
84
84
|
createTreeView,
|
|
85
85
|
createVirtualList
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-SDQ776LG.js";
|
|
87
87
|
import "../chunk-RVSKEBIC.js";
|
|
88
88
|
import "../chunk-DOOMULVV.js";
|
|
89
89
|
import "../chunk-TGV27ZWM.js";
|
|
@@ -927,6 +927,11 @@ var MkChartElement = class extends MkElement {
|
|
|
927
927
|
series: "json",
|
|
928
928
|
points: "json",
|
|
929
929
|
stacked: "boolean",
|
|
930
|
+
barStyle: "string",
|
|
931
|
+
barTrack: "boolean",
|
|
932
|
+
barFill: "string",
|
|
933
|
+
barWidth: "number",
|
|
934
|
+
curve: "string",
|
|
930
935
|
label: "string",
|
|
931
936
|
height: "number",
|
|
932
937
|
emptyLabel: "string",
|
|
@@ -940,7 +945,7 @@ var MkChartElement = class extends MkElement {
|
|
|
940
945
|
}
|
|
941
946
|
attributeChangedCallback(_name, previous, next) {
|
|
942
947
|
if (previous === next || !this.instance) return;
|
|
943
|
-
this.instance.update({ stacked: false, legend: void 0, ...this.options });
|
|
948
|
+
this.instance.update({ stacked: false, barTrack: false, barStyle: void 0, barFill: void 0, barWidth: void 0, curve: void 0, legend: void 0, ...this.options });
|
|
944
949
|
}
|
|
945
950
|
update(options) {
|
|
946
951
|
this.instance?.update(options);
|
|
@@ -1881,7 +1886,7 @@ var MkAddToCartElement = class extends MkElement {
|
|
|
1881
1886
|
|
|
1882
1887
|
// src/components/scroll-island/element.ts
|
|
1883
1888
|
var MkScrollIslandElement = class extends MkElement {
|
|
1884
|
-
static options = { sections: "string", reach: "number", idle: "number", page: "boolean" };
|
|
1889
|
+
static options = { sections: "string", reach: "number", idle: "number", persistent: "boolean", page: "boolean" };
|
|
1885
1890
|
create(options) {
|
|
1886
1891
|
return createScrollIsland(options.page ? document.documentElement : this, options);
|
|
1887
1892
|
}
|
|
@@ -2026,13 +2031,13 @@ var MkRadarChartElement = class extends MkElement {
|
|
|
2026
2031
|
|
|
2027
2032
|
// src/components/radial-chart/element.ts
|
|
2028
2033
|
var MkRadialChartElement = class extends MkElement {
|
|
2029
|
-
static options = { data: "json", max: "number", sweep: "number", size: "number", thickness: "number", label: "string", totalLabel: "string", legend: "boolean", emptyLabel: "string" };
|
|
2034
|
+
static options = { data: "json", max: "number", sweep: "number", size: "number", thickness: "number", segments: "number", center: "string", label: "string", totalLabel: "string", legend: "boolean", emptyLabel: "string" };
|
|
2030
2035
|
create(options) {
|
|
2031
2036
|
return createRadialChart(this, options);
|
|
2032
2037
|
}
|
|
2033
2038
|
attributeChangedCallback(_name, previous, next) {
|
|
2034
2039
|
if (previous === next || !this.instance) return;
|
|
2035
|
-
this.instance.update({ legend: void 0, max: void 0, ...this.options });
|
|
2040
|
+
this.instance.update({ legend: void 0, max: void 0, segments: 0, center: void 0, ...this.options });
|
|
2036
2041
|
}
|
|
2037
2042
|
update(options) {
|
|
2038
2043
|
this.instance?.update(options);
|