@mks2508/mks-ui 0.8.1 → 0.8.2
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/dist/index.css +1594 -0
- package/dist/react-ui/blocks/Sidebar/animations/tooltip.css +330 -0
- package/dist/react-ui/blocks/Terminal/TerminalDisplay.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/TerminalDisplay.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/components/LogLineBadges/LogLineBadges.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge/TerminalLogBadge.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/components/TerminalLogBadge/TerminalLogBadge.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/controls/TerminalActionBar/TerminalActionBar.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/controls/TerminalActionBar/TerminalActionBar.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/controls/TerminalConnectionStatus/TerminalConnectionStatus.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/controls/TerminalConnectionStatus/TerminalConnectionStatus.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/controls/TerminalFontControls/TerminalFontControls.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/controls/TerminalFontControls/TerminalFontControls.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/controls/TerminalSplitButton/TerminalSplitButton.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/controls/TerminalSplitButton/TerminalSplitButton.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/controls/TerminalStatusBar/TerminalStatusBar.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/controls/TerminalStatusBar/TerminalStatusBar.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel/TerminalDebugPanel.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalDebugPanel/TerminalDebugPanel.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/TerminalFilterDropdown.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/TerminalFilterDropdown.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalFilterDropdown/terminal-filter-dropdown.module.css +60 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs/TerminalFilterTabs.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalFilterTabs/TerminalFilterTabs.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalInteractivePanelWterm.d.ts.map +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel/TerminalLogsPanel.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalLogsPanel/TerminalLogsPanel.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelChrome.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter/TerminalPanelFooter.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelFooter/TerminalPanelFooter.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader/TerminalPanelHeader.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelHeader/TerminalPanelHeader.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar/TerminalPanelToolbar.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalPanelToolbar/TerminalPanelToolbar.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl/TerminalSessionControl.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalSessionControl/TerminalSessionControl.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/TerminalSessionTabs.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/TerminalSessionTabs.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalSessionTabs/terminal-session-tabs.module.css +60 -0
- package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover/TerminalSettingsPopover.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalSettingsPopover/TerminalSettingsPopover.types.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector/TerminalThemeSelector.styles.d.ts +1 -1
- package/dist/react-ui/blocks/Terminal/panel/TerminalThemeSelector/TerminalThemeSelector.types.d.ts +1 -1
- package/dist/react-ui/components/MorphingPopover/morphing-popover.module.css +154 -0
- package/dist/react-ui/primitives/AutoHeight/index.d.ts +1 -1
- package/dist/react-ui/primitives/CountingNumber/index.d.ts +1 -1
- package/dist/react-ui/primitives/DotMatrix/DotMatrix.types.d.ts +1 -1
- package/dist/react-ui/primitives/DotMatrix/dot.css +364 -0
- package/dist/react-ui/primitives/GooeyMorphingSurface/gooey-morphing.css +112 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.module.css +20 -0
- package/dist/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.styles.d.ts +1 -1
- package/dist/react-ui/primitives/waapi/SlidingText/SlidingText.styles.d.ts +1 -1
- package/dist/react-ui/ui/Accordion/Accordion.styles.d.ts +1 -1
- package/dist/react-ui/ui/Accordion/Accordion.types.d.ts +1 -1
- package/dist/react-ui/ui/AlertDialog/AlertDialog.styles.d.ts +1 -1
- package/dist/react-ui/ui/AlertDialog/AlertDialog.types.d.ts +1 -1
- package/dist/react-ui/ui/Badge/Badge.styles.d.ts +1 -1
- package/dist/react-ui/ui/Badge/Badge.types.d.ts +1 -1
- package/dist/react-ui/ui/Button/Button.styles.d.ts +1 -1
- package/dist/react-ui/ui/Button/Button.types.d.ts +1 -1
- package/dist/react-ui/ui/Card/Card.styles.d.ts +1 -1
- package/dist/react-ui/ui/Card/Card.types.d.ts +1 -1
- package/dist/react-ui/ui/Checkbox/Checkbox.styles.d.ts +1 -1
- package/dist/react-ui/ui/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/react-ui/ui/Combobox/Combobox.styles.d.ts +1 -1
- package/dist/react-ui/ui/Combobox/Combobox.types.d.ts +1 -1
- package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.d.ts +1 -1
- package/dist/react-ui/ui/CornerBracket/CornerBracket.types.d.ts +1 -1
- package/dist/react-ui/ui/DataCard/DataCard.styles.d.ts +1 -1
- package/dist/react-ui/ui/DataCard/DataCard.types.d.ts +1 -1
- package/dist/react-ui/ui/DataCard/index.d.ts +1 -1
- package/dist/react-ui/ui/Dialog/Dialog.styles.d.ts +1 -1
- package/dist/react-ui/ui/Dialog/Dialog.types.d.ts +1 -1
- package/dist/react-ui/ui/DropdownMenu/DropdownMenu.styles.d.ts +1 -1
- package/dist/react-ui/ui/DropdownMenu/DropdownMenu.types.d.ts +1 -1
- package/dist/react-ui/ui/DynamicToggle/DynamicToggle.css +369 -0
- package/dist/react-ui/ui/DynamicToggle/DynamicToggle.styles.d.ts +1 -1
- package/dist/react-ui/ui/DynamicToggle/DynamicToggle.types.d.ts +1 -1
- package/dist/react-ui/ui/Field/Field.styles.d.ts +1 -1
- package/dist/react-ui/ui/Field/Field.types.d.ts +1 -1
- package/dist/react-ui/ui/FileIcon/FileIcon.styles.d.ts +1 -1
- package/dist/react-ui/ui/FileIcon/FileIcon.types.d.ts +1 -1
- package/dist/react-ui/ui/FileItem/FileItem.styles.d.ts +1 -1
- package/dist/react-ui/ui/FileItem/FileItem.types.d.ts +1 -1
- package/dist/react-ui/ui/FilePanel/FilePanel.styles.d.ts +1 -1
- package/dist/react-ui/ui/FilePanel/FilePanel.types.d.ts +1 -1
- package/dist/react-ui/ui/FileTree/FileTree.styles.d.ts +1 -1
- package/dist/react-ui/ui/FileTree/FileTree.types.d.ts +1 -1
- package/dist/react-ui/ui/GooeyButton/GooeyButton.types.d.ts +1 -1
- package/dist/react-ui/ui/GooeyButton/gooey.css +47 -0
- package/dist/react-ui/ui/Input/Input.styles.d.ts +1 -1
- package/dist/react-ui/ui/Input/Input.types.d.ts +1 -1
- package/dist/react-ui/ui/InputGroup/InputGroup.styles.d.ts +1 -1
- package/dist/react-ui/ui/InputGroup/InputGroup.types.d.ts +1 -1
- package/dist/react-ui/ui/Label/Label.styles.d.ts +1 -1
- package/dist/react-ui/ui/Label/Label.types.d.ts +1 -1
- package/dist/react-ui/ui/Menu/Menu.styles.d.ts +1 -1
- package/dist/react-ui/ui/Menu/Menu.types.d.ts +2 -2
- package/dist/react-ui/ui/MiddleTruncatePath/MiddleTruncatePath.styles.d.ts +1 -1
- package/dist/react-ui/ui/MiddleTruncatePath/MiddleTruncatePath.types.d.ts +1 -1
- package/dist/react-ui/ui/OperationCard/OperationCard.styles.d.ts +1 -1
- package/dist/react-ui/ui/OperationCard/OperationCard.types.d.ts +2 -2
- package/dist/react-ui/ui/Popover/Popover.styles.d.ts +1 -1
- package/dist/react-ui/ui/Popover/Popover.types.d.ts +1 -1
- package/dist/react-ui/ui/Progress/Progress.styles.d.ts +1 -1
- package/dist/react-ui/ui/Progress/Progress.types.d.ts +2 -2
- package/dist/react-ui/ui/Select/Select.styles.d.ts +1 -1
- package/dist/react-ui/ui/Select/Select.types.d.ts +1 -1
- package/dist/react-ui/ui/Separator/Separator.styles.d.ts +1 -1
- package/dist/react-ui/ui/Separator/Separator.types.d.ts +1 -1
- package/dist/react-ui/ui/Switch/Switch.styles.d.ts +1 -1
- package/dist/react-ui/ui/Switch/Switch.types.d.ts +1 -1
- package/dist/react-ui/ui/Tabs/Tabs.css +38 -0
- package/dist/react-ui/ui/Tabs/Tabs.styles.d.ts +1 -1
- package/dist/react-ui/ui/Tabs/Tabs.types.d.ts +3 -3
- package/dist/react-ui/ui/TextFlow/TextFlow.styles.d.ts +1 -1
- package/dist/react-ui/ui/Textarea/Textarea.styles.d.ts +1 -1
- package/dist/react-ui/ui/Textarea/Textarea.types.d.ts +1 -1
- package/dist/react-ui/ui/Tooltip/Tooltip.styles.d.ts +1 -1
- package/dist/react-ui/ui/Tooltip/Tooltip.types.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/{react-ui/blocks/Sidebar/animations/tooltip-keyframes-DRT9W6Xj.css → css/blocks-Sidebar-animations-tooltip.css} +0 -0
- /package/dist/{react-ui/blocks/Terminal/panel/TerminalFilterDropdown/terminal-filter-dropdown.module-G5zpw08N.css → css/blocks-Terminal-panel-TerminalFilterDropdown-terminal-filter-dropdown.module.css} +0 -0
- /package/dist/{react-ui/blocks/Terminal/panel/TerminalSessionTabs/terminal-session-tabs.module-BAOuAeiX.css → css/blocks-Terminal-panel-TerminalSessionTabs-terminal-session-tabs.module.css} +0 -0
- /package/dist/{react-ui/components/MorphingPopover/morphing-popover.module-T3s-wJN-.css → css/components-MorphingPopover-morphing-popover.module.css} +0 -0
- /package/dist/{react-ui/primitives/DotMatrix/dot-matrix-B8DHjPGb.css → css/primitives-DotMatrix-dot.css} +0 -0
- /package/dist/{react-ui/primitives/GooeyMorphingSurface/gooey-morphing-surface-DfdjAg5U.css → css/primitives-GooeyMorphingSurface-gooey.css} +0 -0
- /package/dist/{react-ui/primitives/waapi/Morph/techniques/useViewTransitions.module-DNDWYN8q.css → css/primitives-waapi-Morph-techniques-useViewTransitions.module.css} +0 -0
- /package/dist/{react-ui/ui/DynamicToggle/DynamicToggle-DY2Hle7P.css → css/ui-DynamicToggle-DynamicToggle.css} +0 -0
- /package/dist/{react-ui/ui/GooeyButton/gooey-button-8rHWiw0w.css → css/ui-GooeyButton-gooey.css} +0 -0
- /package/dist/{react-ui/ui/Tabs/Tabs-DqzZRGB3.css → css/ui-Tabs-Tabs.css} +0 -0
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
/* =============================================================================
|
|
2
|
+
* DotMatrix — progressive fill model.
|
|
3
|
+
*
|
|
4
|
+
* Cells light up one at a time in `pattern` order, stay lit until the
|
|
5
|
+
* cycle resets, then repeat. Implementation uses ONE CSS animation per
|
|
6
|
+
* matrix that drives a registered custom property `--dm-phase` from
|
|
7
|
+
* 0 → 1 (fill), holds it at 1 (hold), then snaps back to 0 (reset)
|
|
8
|
+
* for a rest period.
|
|
9
|
+
*
|
|
10
|
+
* Each cell carries a `--dm-threshold` (its position in the fill
|
|
11
|
+
* sequence, 0..1) and computes its own `::before` opacity as a step
|
|
12
|
+
* across `phase - threshold`, multiplied by `--dm-edge-sharpness` so
|
|
13
|
+
* the edge can range from "instant snap" to "warm fade".
|
|
14
|
+
*
|
|
15
|
+
* Perf shape: N matrices = N animations total (not N × cells). Cell
|
|
16
|
+
* opacity is computed at paint time by calc(); the compositor batches
|
|
17
|
+
* updates via the shared phase var. With `contain: layout style paint`
|
|
18
|
+
* each cell is isolated so work doesn't cascade.
|
|
19
|
+
* ============================================================================= */
|
|
20
|
+
|
|
21
|
+
@property --dm-phase {
|
|
22
|
+
syntax: '<number>';
|
|
23
|
+
initial-value: 0;
|
|
24
|
+
inherits: true;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dm-root {
|
|
28
|
+
display: grid;
|
|
29
|
+
width: 100%;
|
|
30
|
+
gap: var(--dm-gap, 5px);
|
|
31
|
+
padding: var(--dm-pad, 0.25rem);
|
|
32
|
+
border-radius: 0.5rem;
|
|
33
|
+
background-color: transparent;
|
|
34
|
+
|
|
35
|
+
/* Skip render work when the matrix is offscreen. */
|
|
36
|
+
content-visibility: auto;
|
|
37
|
+
contain-intrinsic-size: auto 200px;
|
|
38
|
+
transform: translateZ(0);
|
|
39
|
+
|
|
40
|
+
--dm-on: var(--foreground);
|
|
41
|
+
--dm-off: color-mix(in oklch, var(--foreground) 12%, transparent);
|
|
42
|
+
--dm-glow: color-mix(in oklch, var(--foreground) 50%, transparent);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* ─── Cell: base OFF layer — neutral dim ──────────────────────────────── */
|
|
46
|
+
|
|
47
|
+
.dm-cell {
|
|
48
|
+
position: relative;
|
|
49
|
+
aspect-ratio: 1 / 1;
|
|
50
|
+
min-width: 4px;
|
|
51
|
+
min-height: 4px;
|
|
52
|
+
border-radius: var(--dm-radius, 32%);
|
|
53
|
+
background-color: color-mix(in oklch, var(--foreground) 10%, transparent);
|
|
54
|
+
opacity: var(--dm-off-opacity, 0.45);
|
|
55
|
+
transform: scale(var(--dm-off-scale, 0.9));
|
|
56
|
+
contain: layout style paint;
|
|
57
|
+
|
|
58
|
+
--dm-threshold: 0;
|
|
59
|
+
--dm-stagger-delay: 0ms;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* ─── Pseudo: ON layer — LED look, fades in as phase crosses threshold ─ */
|
|
63
|
+
|
|
64
|
+
.dm-cell::before {
|
|
65
|
+
content: '';
|
|
66
|
+
position: absolute;
|
|
67
|
+
inset: 0;
|
|
68
|
+
border-radius: inherit;
|
|
69
|
+
background-color: var(--dm-on);
|
|
70
|
+
background-image:
|
|
71
|
+
radial-gradient(
|
|
72
|
+
circle at 32% 26%,
|
|
73
|
+
rgb(255 255 255 / 0.35) 0%,
|
|
74
|
+
rgb(255 255 255 / 0.12) 18%,
|
|
75
|
+
transparent 48%
|
|
76
|
+
),
|
|
77
|
+
radial-gradient(
|
|
78
|
+
circle at 70% 78%,
|
|
79
|
+
rgb(0 0 0 / 0.22) 0%,
|
|
80
|
+
transparent 60%
|
|
81
|
+
);
|
|
82
|
+
box-shadow:
|
|
83
|
+
inset 0 0 1px rgb(255 255 255 / 0.55),
|
|
84
|
+
inset 0 0 0 1px color-mix(in oklch, var(--dm-on) 65%, transparent),
|
|
85
|
+
inset 0 -1px 2px color-mix(in oklch, var(--dm-on) 40%, black 20%);
|
|
86
|
+
opacity: 0;
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dm-root[data-variant='glow'] .dm-cell::before {
|
|
91
|
+
box-shadow:
|
|
92
|
+
inset 0 0 1px rgb(255 255 255 / 0.55),
|
|
93
|
+
inset 0 0 0 1px color-mix(in oklch, var(--dm-on) 65%, transparent),
|
|
94
|
+
inset 0 -1px 2px color-mix(in oklch, var(--dm-on) 40%, black 20%),
|
|
95
|
+
0 0 2px var(--dm-glow),
|
|
96
|
+
0 0 6px var(--dm-glow),
|
|
97
|
+
0 0 12px color-mix(in oklch, var(--dm-glow) 55%, transparent);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* ─── Running: phase animates on root, cells derive state from it ────── */
|
|
101
|
+
|
|
102
|
+
.dm-root[data-status='running'] {
|
|
103
|
+
animation-name: var(--dm-anim-phase);
|
|
104
|
+
animation-duration: var(--dm-cycle-total, 2600ms);
|
|
105
|
+
animation-iteration-count: infinite;
|
|
106
|
+
animation-timing-function: linear;
|
|
107
|
+
animation-fill-mode: both;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Lit fraction for THIS cell — 0 when off, 1 when fully filled, ramped
|
|
111
|
+
* near the threshold by `--dm-edge-sharpness`. Reused by both the pseudo
|
|
112
|
+
* opacity (the LED glow) and the cell's scale (grows when lit). */
|
|
113
|
+
.dm-root[data-status='running'] .dm-cell {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
transform: scale(
|
|
116
|
+
calc(
|
|
117
|
+
var(--dm-off-scale, 0.88) +
|
|
118
|
+
(var(--dm-on-scale, 1) - var(--dm-off-scale, 0.88)) *
|
|
119
|
+
clamp(
|
|
120
|
+
0,
|
|
121
|
+
(var(--dm-phase) - var(--dm-threshold)) *
|
|
122
|
+
var(--dm-edge-sharpness, 50),
|
|
123
|
+
1
|
|
124
|
+
)
|
|
125
|
+
)
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.dm-root[data-status='running'] .dm-cell::before {
|
|
130
|
+
opacity: clamp(
|
|
131
|
+
0,
|
|
132
|
+
calc(
|
|
133
|
+
(var(--dm-phase) - var(--dm-threshold)) *
|
|
134
|
+
var(--dm-edge-sharpness, 50)
|
|
135
|
+
),
|
|
136
|
+
1
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* ─── Accent cells ────────────────────────────────────────────────────── */
|
|
141
|
+
|
|
142
|
+
.dm-cell[data-accent='true'] {
|
|
143
|
+
opacity: 1;
|
|
144
|
+
transform: scale(1);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.dm-cell[data-accent='true']::before {
|
|
148
|
+
background-color: var(--primary);
|
|
149
|
+
background-image: none;
|
|
150
|
+
box-shadow:
|
|
151
|
+
inset 0 0 1px rgb(255 255 255 / 0.5),
|
|
152
|
+
0 0 3px color-mix(in oklch, var(--primary) 70%, transparent),
|
|
153
|
+
0 0 7px color-mix(in oklch, var(--primary) 50%, transparent);
|
|
154
|
+
opacity: 1 !important;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* ─── Lifecycle FINAL animations ──────────────────────────────────────── */
|
|
158
|
+
|
|
159
|
+
@keyframes dm-success-pop {
|
|
160
|
+
0% {
|
|
161
|
+
transform: scale(0.94);
|
|
162
|
+
filter: brightness(0.7);
|
|
163
|
+
}
|
|
164
|
+
45% {
|
|
165
|
+
transform: scale(1.18);
|
|
166
|
+
filter: brightness(1.4);
|
|
167
|
+
}
|
|
168
|
+
100% {
|
|
169
|
+
transform: scale(1);
|
|
170
|
+
filter: brightness(1);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@keyframes dm-fail-strobe {
|
|
175
|
+
0% {
|
|
176
|
+
transform: scale(1);
|
|
177
|
+
filter: brightness(1);
|
|
178
|
+
}
|
|
179
|
+
22% {
|
|
180
|
+
transform: scale(1.22);
|
|
181
|
+
filter: brightness(1.55) saturate(1.4);
|
|
182
|
+
}
|
|
183
|
+
55% {
|
|
184
|
+
transform: scale(0.92);
|
|
185
|
+
filter: brightness(0.75);
|
|
186
|
+
}
|
|
187
|
+
100% {
|
|
188
|
+
transform: scale(0.97);
|
|
189
|
+
filter: brightness(1);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@keyframes dm-cancelled-dim {
|
|
194
|
+
0% {
|
|
195
|
+
transform: scale(1);
|
|
196
|
+
opacity: 1;
|
|
197
|
+
}
|
|
198
|
+
100% {
|
|
199
|
+
transform: scale(0.9);
|
|
200
|
+
opacity: 0.55;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.dm-root[data-status='success'] {
|
|
205
|
+
animation: none;
|
|
206
|
+
}
|
|
207
|
+
.dm-root[data-status='success'] .dm-cell {
|
|
208
|
+
opacity: 1;
|
|
209
|
+
transform: scale(1);
|
|
210
|
+
animation: dm-success-pop 520ms cubic-bezier(0.2, 0, 0.2, 1) both;
|
|
211
|
+
animation-delay: var(--dm-stagger-delay, 0ms);
|
|
212
|
+
}
|
|
213
|
+
.dm-root[data-status='success'] .dm-cell::before {
|
|
214
|
+
opacity: 1;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.dm-root[data-status='failed'] {
|
|
218
|
+
animation: none;
|
|
219
|
+
}
|
|
220
|
+
.dm-root[data-status='failed'] .dm-cell {
|
|
221
|
+
opacity: 1;
|
|
222
|
+
animation: dm-fail-strobe 560ms cubic-bezier(0.2, 0, 0.2, 1) both;
|
|
223
|
+
animation-delay: var(--dm-stagger-delay, 0ms);
|
|
224
|
+
}
|
|
225
|
+
.dm-root[data-status='failed'] .dm-cell::before {
|
|
226
|
+
background-color: var(--destructive);
|
|
227
|
+
box-shadow:
|
|
228
|
+
inset 0 0 1px rgb(255 255 255 / 0.5),
|
|
229
|
+
inset 0 0 0 1px color-mix(in oklch, var(--destructive) 55%, transparent),
|
|
230
|
+
inset 0 -1px 2px color-mix(in oklch, var(--destructive) 40%, black 20%);
|
|
231
|
+
opacity: 1;
|
|
232
|
+
}
|
|
233
|
+
.dm-root[data-status='failed'][data-variant='glow'] .dm-cell::before {
|
|
234
|
+
box-shadow:
|
|
235
|
+
inset 0 0 1px rgb(255 255 255 / 0.55),
|
|
236
|
+
inset 0 0 0 1px color-mix(in oklch, var(--destructive) 55%, transparent),
|
|
237
|
+
inset 0 -1px 2px color-mix(in oklch, var(--destructive) 40%, black 20%),
|
|
238
|
+
0 0 3px color-mix(in oklch, var(--destructive) 70%, transparent),
|
|
239
|
+
0 0 9px color-mix(in oklch, var(--destructive) 55%, transparent);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.dm-root[data-status='cancelled'] {
|
|
243
|
+
animation: none;
|
|
244
|
+
}
|
|
245
|
+
.dm-root[data-status='cancelled'] .dm-cell {
|
|
246
|
+
background-color: color-mix(in oklch, var(--foreground) 22%, transparent);
|
|
247
|
+
opacity: 0.65;
|
|
248
|
+
animation: dm-cancelled-dim 380ms cubic-bezier(0.4, 0, 0.8, 0.6) both;
|
|
249
|
+
animation-delay: var(--dm-stagger-delay, 0ms);
|
|
250
|
+
}
|
|
251
|
+
.dm-root[data-status='cancelled'] .dm-cell::before {
|
|
252
|
+
opacity: 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.dm-root[data-status='idle'] {
|
|
256
|
+
animation: none;
|
|
257
|
+
}
|
|
258
|
+
.dm-root[data-status='idle'] .dm-cell::before {
|
|
259
|
+
opacity: 0;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* ─── Theme-token palettes ────────────────────────────────────────────── */
|
|
263
|
+
|
|
264
|
+
.dm--foreground {
|
|
265
|
+
--dm-on: var(--foreground);
|
|
266
|
+
--dm-off: color-mix(in oklch, var(--foreground) 12%, transparent);
|
|
267
|
+
--dm-glow: color-mix(in oklch, var(--foreground) 55%, transparent);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.dm--primary {
|
|
271
|
+
--dm-on: var(--primary);
|
|
272
|
+
--dm-off: color-mix(in oklch, var(--primary) 14%, transparent);
|
|
273
|
+
--dm-glow: color-mix(in oklch, var(--primary) 65%, transparent);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.dm--destructive {
|
|
277
|
+
--dm-on: var(--destructive);
|
|
278
|
+
--dm-off: color-mix(in oklch, var(--destructive) 14%, transparent);
|
|
279
|
+
--dm-glow: color-mix(in oklch, var(--destructive) 65%, transparent);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.dm--warning {
|
|
283
|
+
--dm-on: var(--warning);
|
|
284
|
+
--dm-off: color-mix(in oklch, var(--warning) 14%, transparent);
|
|
285
|
+
--dm-glow: color-mix(in oklch, var(--warning) 65%, transparent);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* ─── Named palettes (OKLCH for stability) ────────────────────────────── */
|
|
289
|
+
|
|
290
|
+
.dm--cyan {
|
|
291
|
+
--dm-on: oklch(90% 0.2 195);
|
|
292
|
+
--dm-off: oklch(40% 0.08 195 / 0.4);
|
|
293
|
+
--dm-glow: oklch(80% 0.25 195 / 0.95);
|
|
294
|
+
}
|
|
295
|
+
.dm--magenta {
|
|
296
|
+
--dm-on: oklch(85% 0.25 330);
|
|
297
|
+
--dm-off: oklch(40% 0.08 330 / 0.4);
|
|
298
|
+
--dm-glow: oklch(75% 0.3 330 / 0.95);
|
|
299
|
+
}
|
|
300
|
+
.dm--yellow {
|
|
301
|
+
--dm-on: oklch(95% 0.2 90);
|
|
302
|
+
--dm-off: oklch(50% 0.08 90 / 0.4);
|
|
303
|
+
--dm-glow: oklch(90% 0.25 90 / 0.95);
|
|
304
|
+
}
|
|
305
|
+
.dm--green {
|
|
306
|
+
--dm-on: oklch(90% 0.25 145);
|
|
307
|
+
--dm-off: oklch(40% 0.08 145 / 0.4);
|
|
308
|
+
--dm-glow: oklch(80% 0.3 145 / 0.95);
|
|
309
|
+
}
|
|
310
|
+
.dm--orange {
|
|
311
|
+
--dm-on: oklch(85% 0.22 50);
|
|
312
|
+
--dm-off: oklch(45% 0.08 50 / 0.4);
|
|
313
|
+
--dm-glow: oklch(75% 0.28 50 / 0.95);
|
|
314
|
+
}
|
|
315
|
+
.dm--blue {
|
|
316
|
+
--dm-on: oklch(80% 0.22 260);
|
|
317
|
+
--dm-off: oklch(40% 0.08 260 / 0.4);
|
|
318
|
+
--dm-glow: oklch(70% 0.28 260 / 0.95);
|
|
319
|
+
}
|
|
320
|
+
.dm--red {
|
|
321
|
+
--dm-on: oklch(70% 0.25 25);
|
|
322
|
+
--dm-off: oklch(40% 0.08 25 / 0.4);
|
|
323
|
+
--dm-glow: oklch(60% 0.3 25 / 0.95);
|
|
324
|
+
}
|
|
325
|
+
.dm--purple {
|
|
326
|
+
--dm-on: oklch(75% 0.22 300);
|
|
327
|
+
--dm-off: oklch(40% 0.08 300 / 0.4);
|
|
328
|
+
--dm-glow: oklch(65% 0.28 300 / 0.95);
|
|
329
|
+
}
|
|
330
|
+
.dm--teal {
|
|
331
|
+
--dm-on: oklch(82% 0.18 175);
|
|
332
|
+
--dm-off: oklch(40% 0.08 175 / 0.4);
|
|
333
|
+
--dm-glow: oklch(72% 0.24 175 / 0.95);
|
|
334
|
+
}
|
|
335
|
+
.dm--pink {
|
|
336
|
+
--dm-on: oklch(80% 0.2 350);
|
|
337
|
+
--dm-off: oklch(45% 0.08 350 / 0.4);
|
|
338
|
+
--dm-glow: oklch(70% 0.26 350 / 0.95);
|
|
339
|
+
}
|
|
340
|
+
.dm--lime {
|
|
341
|
+
--dm-on: oklch(88% 0.22 120);
|
|
342
|
+
--dm-off: oklch(45% 0.08 120 / 0.4);
|
|
343
|
+
--dm-glow: oklch(80% 0.28 120 / 0.95);
|
|
344
|
+
}
|
|
345
|
+
.dm--white {
|
|
346
|
+
--dm-on: oklch(98% 0 0);
|
|
347
|
+
--dm-off: oklch(50% 0 0 / 0.3);
|
|
348
|
+
--dm-glow: oklch(95% 0 0 / 0.85);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* ─── Reduced motion — freeze animations ─────────────────────────────── */
|
|
352
|
+
|
|
353
|
+
@media (prefers-reduced-motion: reduce) {
|
|
354
|
+
.dm-root[data-status='running'],
|
|
355
|
+
.dm-root[data-status='success'] .dm-cell,
|
|
356
|
+
.dm-root[data-status='failed'] .dm-cell,
|
|
357
|
+
.dm-root[data-status='cancelled'] .dm-cell {
|
|
358
|
+
animation: none !important;
|
|
359
|
+
}
|
|
360
|
+
.dm-cell {
|
|
361
|
+
transform: none;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* =============================================================================
|
|
2
|
+
* GooeyMorphingSurface — CSS layer for the SVG rect morph + HTML overlays.
|
|
3
|
+
*
|
|
4
|
+
* Classes are prefixed `.gms-*` so they act as a manual scope (mks-ui's
|
|
5
|
+
* rolldown build produces empty default-exports for CSS modules, so we use
|
|
6
|
+
* plain CSS with explicit classnames referenced as string literals from
|
|
7
|
+
* the component).
|
|
8
|
+
*
|
|
9
|
+
* Every tunable value comes from inline CSS custom props set by the React
|
|
10
|
+
* component at the root element. No hard-coded dimensions or timings here.
|
|
11
|
+
*
|
|
12
|
+
* Technique recap: two <rect>s inside a <g filter="url(#gooey)">. Body rect
|
|
13
|
+
* is a geometric CLONE of the pill when closed, and morphs into the card
|
|
14
|
+
* geometry (x, y, width, height, rx, ry all interpolate) when open. The
|
|
15
|
+
* gaussian-blur + alpha-threshold filter bends the overlapping silhouettes
|
|
16
|
+
* into a single shape with a soft metaball throat.
|
|
17
|
+
* ============================================================================= */
|
|
18
|
+
|
|
19
|
+
.gms-root {
|
|
20
|
+
position: relative;
|
|
21
|
+
display: inline-block;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.gms-shell {
|
|
25
|
+
position: relative;
|
|
26
|
+
width: var(--gms-card-w);
|
|
27
|
+
height: var(--gms-pill-h);
|
|
28
|
+
color: var(--gms-fill);
|
|
29
|
+
transition: height var(--gms-duration) var(--gms-ease);
|
|
30
|
+
/* Drop-shadow follows the fused silhouette. Chained filters = additive
|
|
31
|
+
* shadow layers for depth without a hard box-shadow. */
|
|
32
|
+
filter: drop-shadow(0 16px 38px rgb(0 0 0 / 0.35))
|
|
33
|
+
drop-shadow(0 4px 10px rgb(0 0 0 / 0.18));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.gms-shell[data-open='true'] {
|
|
37
|
+
height: calc(var(--gms-pill-h) + var(--gms-card-h));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.gms-svg {
|
|
41
|
+
position: absolute;
|
|
42
|
+
top: 0;
|
|
43
|
+
left: 50%;
|
|
44
|
+
transform: translateX(-50%);
|
|
45
|
+
display: block;
|
|
46
|
+
overflow: visible;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.gms-body-rect {
|
|
51
|
+
will-change: x, y, width, height;
|
|
52
|
+
transition:
|
|
53
|
+
x var(--gms-duration) var(--gms-ease),
|
|
54
|
+
y var(--gms-duration) var(--gms-ease),
|
|
55
|
+
width var(--gms-duration) var(--gms-ease),
|
|
56
|
+
height var(--gms-duration) var(--gms-ease),
|
|
57
|
+
rx var(--gms-duration) var(--gms-ease),
|
|
58
|
+
ry var(--gms-duration) var(--gms-ease);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.gms-pill {
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: 0;
|
|
64
|
+
left: var(--gms-pill-x);
|
|
65
|
+
width: var(--gms-pill-w);
|
|
66
|
+
height: var(--gms-pill-h);
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
gap: 0.5rem;
|
|
71
|
+
color: var(--card-foreground);
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
z-index: 2;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.gms-card {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: calc(var(--gms-pill-h) - var(--gms-overlap));
|
|
79
|
+
left: 0;
|
|
80
|
+
width: var(--gms-card-w);
|
|
81
|
+
height: var(--gms-card-h);
|
|
82
|
+
color: var(--card-foreground);
|
|
83
|
+
opacity: 0;
|
|
84
|
+
transform: translateY(4px);
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
z-index: 2;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
border-radius: var(--gms-card-r);
|
|
89
|
+
transition:
|
|
90
|
+
opacity calc(var(--gms-duration) * 0.35) var(--gms-ease),
|
|
91
|
+
transform calc(var(--gms-duration) * 0.35) var(--gms-ease);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.gms-shell[data-open='true'] .gms-card {
|
|
95
|
+
opacity: 1;
|
|
96
|
+
transform: translateY(0);
|
|
97
|
+
pointer-events: auto;
|
|
98
|
+
transition:
|
|
99
|
+
opacity calc(var(--gms-duration) * 0.55) var(--gms-ease)
|
|
100
|
+
calc(var(--gms-duration) * 0.45),
|
|
101
|
+
transform calc(var(--gms-duration) * 0.55) var(--gms-ease)
|
|
102
|
+
calc(var(--gms-duration) * 0.45);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (prefers-reduced-motion: reduce) {
|
|
106
|
+
.gms-shell,
|
|
107
|
+
.gms-body-rect,
|
|
108
|
+
.gms-card {
|
|
109
|
+
transition-duration: 0.01ms !important;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View Transitions API - Default transition styles.
|
|
3
|
+
*
|
|
4
|
+
* These styles apply to all view-transition pseudo-elements by default,
|
|
5
|
+
* eliminating the need for dynamic style injection based on transition names.
|
|
6
|
+
*
|
|
7
|
+
* Usage: Apply `view-transition-name` via inline style or CSS variable:
|
|
8
|
+
* <div style={{ viewTransitionName: 'hero' }}>...</div>
|
|
9
|
+
*
|
|
10
|
+
* Or via CSS:
|
|
11
|
+
* .my-element { view-transition-name: hero; }
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/* Default animation for all view transitions */
|
|
15
|
+
::view-transition-old(*),
|
|
16
|
+
::view-transition-new(*) {
|
|
17
|
+
animation-duration: 300ms;
|
|
18
|
+
animation-timing-function: ease-out;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module @mks2508/mks-ui/react/ui/Accordion/Accordion.styles
|
|
8
8
|
*/
|
|
9
9
|
import { type VariantProps } from 'class-variance-authority';
|
|
10
|
-
import type { StyleSlots } from '
|
|
10
|
+
import type { StyleSlots } from '../../../core/types';
|
|
11
11
|
import type { AccordionSlot } from './Accordion.types';
|
|
12
12
|
/**
|
|
13
13
|
* Default Tailwind classes for each visual region of the Accordion.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
|
|
10
10
|
import type { HTMLMotionProps } from 'motion/react';
|
|
11
|
-
import type { IBaseConfig, SlotOverrides } from '
|
|
11
|
+
import type { IBaseConfig, SlotOverrides } from '../../../core/types';
|
|
12
12
|
import type { AccordionVariantProps } from './Accordion.styles';
|
|
13
13
|
/**
|
|
14
14
|
* Named visual regions of the Accordion that can be styled via the `slots` prop.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module @mks2508/mks-ui/react/ui/AlertDialog/AlertDialog.styles
|
|
9
9
|
*/
|
|
10
|
-
import type { StyleSlots } from '
|
|
10
|
+
import type { StyleSlots } from '../../../core/types';
|
|
11
11
|
import type { AlertDialogSlot } from './AlertDialog.types';
|
|
12
12
|
/**
|
|
13
13
|
* Default Tailwind classes for each visual region of the AlertDialog.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
10
10
|
import type { HTMLMotionProps } from 'motion/react';
|
|
11
|
-
import type { IBaseConfig, SlotOverrides } from '
|
|
11
|
+
import type { IBaseConfig, SlotOverrides } from '../../../core/types';
|
|
12
12
|
/**
|
|
13
13
|
* Named visual regions of the AlertDialog that can be styled via the `slots` prop.
|
|
14
14
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import type { SlotOverrides } from '
|
|
2
|
+
import type { SlotOverrides } from '../../../core/types';
|
|
3
3
|
import type { badgeVariants, BadgeSlot } from './Badge.styles';
|
|
4
4
|
/**
|
|
5
5
|
* Props for the Badge component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import type { SlotOverrides } from '
|
|
2
|
+
import type { SlotOverrides } from '../../../core/types';
|
|
3
3
|
import type { buttonVariants, ButtonSlot } from './Button.styles';
|
|
4
4
|
/** Button interaction state. */
|
|
5
5
|
interface IButtonState {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StyleSlots } from '
|
|
1
|
+
import type { StyleSlots } from '../../../core/types';
|
|
2
2
|
/** Visual regions for the Card component. */
|
|
3
3
|
type CardSlot = 'root' | 'header' | 'title' | 'description' | 'action' | 'content' | 'footer';
|
|
4
4
|
declare const cardStyles: StyleSlots<CardSlot>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import type { SlotOverrides } from '
|
|
2
|
+
import type { SlotOverrides } from '../../../core/types';
|
|
3
3
|
import type { cardVariants, CardSlot } from './Card.styles';
|
|
4
4
|
/** Props for the Card component. */
|
|
5
5
|
interface ICardProps extends React.ComponentProps<'div'>, VariantProps<typeof cardVariants> {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module @mks2508/mks-ui/react/ui/Checkbox/Checkbox.styles
|
|
5
5
|
*/
|
|
6
|
-
import type { StyleSlots } from '
|
|
6
|
+
import type { StyleSlots } from '../../../core/types';
|
|
7
7
|
import type { CheckboxSlot } from './Checkbox.types';
|
|
8
8
|
/**
|
|
9
9
|
* Default style slots for the Checkbox component.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
|
|
7
7
|
import type { HTMLMotionProps, SVGMotionProps } from 'motion/react';
|
|
8
|
-
import type { IBaseConfig, SlotOverrides } from '
|
|
8
|
+
import type { IBaseConfig, SlotOverrides } from '../../../core/types';
|
|
9
9
|
/**
|
|
10
10
|
* Available style slot names for the Checkbox component.
|
|
11
11
|
* Each slot maps to a visual region that can be customized via the `slots` prop.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StyleSlots } from '
|
|
1
|
+
import type { StyleSlots } from '../../../core/types';
|
|
2
2
|
/** Visual regions for the Combobox component family. */
|
|
3
3
|
type ComboboxSlot = 'root' | 'trigger' | 'content' | 'list' | 'item' | 'label' | 'separator' | 'empty' | 'chips' | 'chip' | 'chipInput';
|
|
4
4
|
declare const comboboxStyles: StyleSlots<ComboboxSlot>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
-
import type { SlotOverrides } from '
|
|
2
|
+
import type { SlotOverrides } from '../../../core/types';
|
|
3
3
|
import type { ComboboxSlot } from './Combobox.styles';
|
|
4
4
|
/** Props for the Combobox root. */
|
|
5
5
|
type IComboboxProps = ComboboxPrimitive.Root.Props<any, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import type { SlotOverrides } from '
|
|
2
|
+
import type { SlotOverrides } from '../../../core/types';
|
|
3
3
|
import type { bracketVariants, CornerBracketSlot } from './CornerBracket.styles';
|
|
4
4
|
/** Props for the CornerBracket component. */
|
|
5
5
|
interface ICornerBracketProps extends Omit<React.SVGProps<SVGSVGElement>, 'variant'>, VariantProps<typeof bracketVariants> {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module @mks2508/mks-ui/react/ui/DataCard
|
|
5
5
|
*/
|
|
6
6
|
import type { VariantProps } from 'class-variance-authority';
|
|
7
|
-
import type { SlotOverrides, IBaseConfig } from '
|
|
7
|
+
import type { SlotOverrides, IBaseConfig } from '../../../core/types';
|
|
8
8
|
import type { dataCardVariants, DataCardSlot } from './DataCard.styles';
|
|
9
9
|
export type { DataCardSlot } from './DataCard.styles';
|
|
10
10
|
/** Visual variant names */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { dataCardVariants } from './DataCard.styles';
|
|
2
|
-
import type { SlotOverrides } from '
|
|
2
|
+
import type { SlotOverrides } from '../../../core/types';
|
|
3
3
|
import type { IDataCardProps, IDataCardValueProps, IDataCardLabelProps, IDataCardToggleProps, IDataCardActionsProps, IDataCardBracketProps, IDataCardConfig, DataCardSlot } from './DataCard.types';
|
|
4
4
|
type DataCardContextType = {
|
|
5
5
|
variant: IDataCardProps['variant'];
|