entasis 0.5.0 → 0.7.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/dist/components/AIAskUserQuestion/aiAskUserQuestion.theme.js +1 -1
- package/dist/components/AIChat/aiChat.theme.js +2 -2
- package/dist/components/AIComposer/aiComposer.theme.js +2 -2
- package/dist/components/AIContext/aiContext.theme.js +2 -2
- package/dist/components/AIFilePreview/aiFilePreview.theme.js +1 -1
- package/dist/components/AIMarker/aiMarker.theme.js +2 -2
- package/dist/components/AIMessage/aiMessage.theme.js +2 -2
- package/dist/components/AIMessageActions/aiMessageActions.theme.js +1 -1
- package/dist/components/AIModelSelector/aiModelSelector.theme.js +1 -1
- package/dist/components/AIReasoning/aiReasoning.theme.js +1 -1
- package/dist/components/AISuggestion/aiSuggestion.theme.js +1 -1
- package/dist/components/AIThread/aiThread.theme.js +2 -2
- package/dist/components/AIThreadToc/aiThreadToc.theme.js +1 -1
- package/dist/components/AITool/aiTool.theme.js +2 -2
- package/dist/components/AudioPlayer/audioPlayer.theme.js +2 -2
- package/dist/components/Avatar/avatarGroup.theme.js +1 -1
- package/dist/components/Button/button.mcp.d.ts +1 -1
- package/dist/components/Button/button.mcp.js +2 -2
- package/dist/components/ButtonGroup/buttonGroup.theme.js +1 -1
- package/dist/components/DocumentViewer/documentViewer.theme.js +1 -1
- package/dist/components/EventCalendar/eventCalendar.theme.js +1 -1
- package/dist/components/Form/ColorInput/colorInput.theme.js +2 -2
- package/dist/components/Form/ColorPicker/colorPicker.theme.js +2 -2
- package/dist/components/Form/DateInput/dateInput.theme.js +2 -2
- package/dist/components/Form/DateSelector/dateSelector.theme.js +1 -1
- package/dist/components/Form/File/fileInput.theme.js +2 -2
- package/dist/components/Form/Form/form.state.svelte.d.ts +4 -4
- package/dist/components/Form/Form/visibility.d.ts +54 -54
- package/dist/components/Form/KeyValueInput/keyValueInput.theme.js +2 -2
- package/dist/components/Form/MultiStepForm/multiStepForm.state.svelte.d.ts +4 -4
- package/dist/components/Form/MultiStepForm/multiStepForm.theme.js +1 -1
- package/dist/components/Form/NumberInput/numberInput.theme.js +2 -2
- package/dist/components/Form/PasswordInput/passwordInput.theme.js +2 -2
- package/dist/components/Form/PhoneInput/phoneInput.theme.js +2 -2
- package/dist/components/Form/PinInput/pinInput.theme.js +2 -2
- package/dist/components/Form/TagsInput/tagsInput.theme.js +2 -2
- package/dist/components/Form/TextArea/textArea.theme.js +2 -2
- package/dist/components/Form/TextInput/textInput.theme.js +2 -2
- package/dist/components/Form/TimeInput/timeInput.theme.js +2 -2
- package/dist/components/Form/VoiceInput/voiceInput.theme.js +2 -2
- package/dist/components/GanttChart/ganttChart.theme.js +2 -2
- package/dist/components/Grid/gridSpan.theme.js +2 -2
- package/dist/components/MediaVolume/mediaVolumeControl.theme.js +1 -1
- package/dist/components/MenuBar/menuBar.theme.js +2 -2
- package/dist/components/MenuOption/menuOption.theme.js +2 -2
- package/dist/components/MetadataList/metadataList.theme.js +2 -2
- package/dist/components/MiniCalendar/miniCalendar.theme.js +2 -2
- package/dist/components/NetworkIndicator/networkIndicator.mcp.d.ts +1 -1
- package/dist/components/NetworkIndicator/networkIndicator.mcp.js +1 -1
- package/dist/components/NetworkIndicator/networkIndicator.theme.js +2 -2
- package/dist/components/QRCode/qrCode.theme.js +2 -2
- package/dist/components/RichTextInput/richTextInput.theme.js +2 -2
- package/dist/components/ScrollArea/scrollArea.theme.js +2 -2
- package/dist/components/SegmentedControl/segmentedControl.theme.js +1 -1
- package/dist/components/SelectionMenu/selectionMenu.theme.js +1 -1
- package/dist/components/Sidebar/Sidebar.svelte +8 -2
- package/dist/components/Sidebar/SidebarDesktopShell.svelte +3 -0
- package/dist/components/Sidebar/SidebarDesktopShell.svelte.d.ts +1 -0
- package/dist/components/Sidebar/SidebarMobileDrawer.svelte +3 -1
- package/dist/components/Sidebar/SidebarMobileDrawer.svelte.d.ts +1 -0
- package/dist/components/Sidebar/sidebar.mcp.d.ts +1 -1
- package/dist/components/Sidebar/sidebar.mcp.js +24 -1
- package/dist/components/Sidebar/sidebar.props.d.ts +2 -0
- package/dist/components/Sidebar/sidebar.theme.d.ts +30 -0
- package/dist/components/Sidebar/sidebar.theme.js +46 -43
- package/dist/components/SortableList/sortableList.theme.js +2 -2
- package/dist/components/SpinnerText/spinnerText.mcp.d.ts +1 -1
- package/dist/components/SpinnerText/spinnerText.mcp.js +1 -1
- package/dist/components/SpinnerText/spinnerText.theme.js +2 -2
- package/dist/components/ToggleButton/toggleButton.theme.js +1 -1
- package/dist/components/ToggleButtonGroup/toggleButtonGroup.theme.js +1 -1
- package/dist/components/ToggleMenu/toggleMenu.theme.js +2 -2
- package/dist/components/VideoPlayer/videoPlayer.theme.js +2 -2
- package/dist/generated/componentMcpRegistry.d.ts +5 -5
- package/dist/tailwind/global.js +4 -1
- package/dist/tailwind/theme.mcp.d.ts +1 -1
- package/dist/tailwind/theme.mcp.js +1 -1
- package/dist/utils/cva/merge.d.ts +108 -0
- package/dist/utils/cva/merge.js +6 -2
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* earlier edge forms; edge forms combine; `static` is a modifier)
|
|
17
17
|
* - `shimmer*` (`shimmer` / `shimmer-none` exclude each other; `once` and
|
|
18
18
|
* `reverse` are modifiers; `shimmer-color|duration|spread|angle-*` are scales)
|
|
19
|
+
* - `state-layer` / `state-layer-none` exclude each other
|
|
19
20
|
* - `rounded-<step>-concentric` / `rounded-t|b-<step>-concentric` (join the core corner groups), the container side
|
|
20
21
|
* needing nothing here — a `rounded-<step>` publishes its radius to its children by itself
|
|
21
22
|
* - `duration-*` / `ease-*` motion tokens
|
|
@@ -30,4 +31,111 @@
|
|
|
30
31
|
* falsy values, so no separate clsx pass is needed.
|
|
31
32
|
*/
|
|
32
33
|
import type { ClassValue } from './types.js';
|
|
34
|
+
export declare const mergeConfig: {
|
|
35
|
+
extend: {
|
|
36
|
+
theme: {
|
|
37
|
+
spacing: string[];
|
|
38
|
+
};
|
|
39
|
+
classGroups: {
|
|
40
|
+
raised: (string | {
|
|
41
|
+
raised: string[];
|
|
42
|
+
})[];
|
|
43
|
+
lift: (string | {
|
|
44
|
+
lift: string[];
|
|
45
|
+
})[];
|
|
46
|
+
'h-control': {
|
|
47
|
+
'h-control': string[];
|
|
48
|
+
}[];
|
|
49
|
+
'h-row': {
|
|
50
|
+
'h-row': string[];
|
|
51
|
+
}[];
|
|
52
|
+
'min-h-row': {
|
|
53
|
+
'min-h-row': string[];
|
|
54
|
+
}[];
|
|
55
|
+
'size-icon': {
|
|
56
|
+
'size-icon': string[];
|
|
57
|
+
}[];
|
|
58
|
+
'min-size-hit': {
|
|
59
|
+
'min-size-hit': string[];
|
|
60
|
+
}[];
|
|
61
|
+
'ps-indent': {
|
|
62
|
+
'ps-indent': string[];
|
|
63
|
+
}[];
|
|
64
|
+
duration: {
|
|
65
|
+
duration: string[];
|
|
66
|
+
}[];
|
|
67
|
+
ease: {
|
|
68
|
+
ease: string[];
|
|
69
|
+
}[];
|
|
70
|
+
h: {
|
|
71
|
+
h: string[];
|
|
72
|
+
}[];
|
|
73
|
+
w: {
|
|
74
|
+
w: string[];
|
|
75
|
+
}[];
|
|
76
|
+
'scroll-fade': (string | {
|
|
77
|
+
'scroll-fade': string[];
|
|
78
|
+
})[];
|
|
79
|
+
'scroll-fade-t': string[];
|
|
80
|
+
'scroll-fade-b': string[];
|
|
81
|
+
'scroll-fade-start': {
|
|
82
|
+
'scroll-fade': string[];
|
|
83
|
+
}[];
|
|
84
|
+
'scroll-fade-end': {
|
|
85
|
+
'scroll-fade': string[];
|
|
86
|
+
}[];
|
|
87
|
+
shimmer: string[];
|
|
88
|
+
'state-layer': string[];
|
|
89
|
+
'shimmer-color': {
|
|
90
|
+
'shimmer-color': {
|
|
91
|
+
readonly $v: "isAny";
|
|
92
|
+
}[];
|
|
93
|
+
}[];
|
|
94
|
+
'shimmer-duration': {
|
|
95
|
+
'shimmer-duration': {
|
|
96
|
+
readonly $v: "isAny";
|
|
97
|
+
}[];
|
|
98
|
+
}[];
|
|
99
|
+
'shimmer-spread': {
|
|
100
|
+
'shimmer-spread': {
|
|
101
|
+
readonly $v: "isAny";
|
|
102
|
+
}[];
|
|
103
|
+
}[];
|
|
104
|
+
'shimmer-angle': {
|
|
105
|
+
'shimmer-angle': {
|
|
106
|
+
readonly $v: "isAny";
|
|
107
|
+
}[];
|
|
108
|
+
}[];
|
|
109
|
+
rounded: {
|
|
110
|
+
rounded: ((value: string) => boolean)[];
|
|
111
|
+
}[];
|
|
112
|
+
'rounded-t': {
|
|
113
|
+
'rounded-t': ((value: string) => boolean)[];
|
|
114
|
+
}[];
|
|
115
|
+
'rounded-b': {
|
|
116
|
+
'rounded-b': ((value: string) => boolean)[];
|
|
117
|
+
}[];
|
|
118
|
+
};
|
|
119
|
+
conflictingClassGroups: {
|
|
120
|
+
raised: string[];
|
|
121
|
+
lift: string[];
|
|
122
|
+
shadow: string[];
|
|
123
|
+
'h-control': string[];
|
|
124
|
+
'h-row': string[];
|
|
125
|
+
h: string[];
|
|
126
|
+
'size-icon': string[];
|
|
127
|
+
w: string[];
|
|
128
|
+
size: string[];
|
|
129
|
+
'min-size-hit': string[];
|
|
130
|
+
'min-h-row': string[];
|
|
131
|
+
'min-w': string[];
|
|
132
|
+
'min-h': string[];
|
|
133
|
+
'ps-indent': string[];
|
|
134
|
+
ps: string[];
|
|
135
|
+
px: string[];
|
|
136
|
+
p: string[];
|
|
137
|
+
'scroll-fade': string[];
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
33
141
|
export declare const cn: (...inputs: ClassValue[]) => string;
|
package/dist/utils/cva/merge.js
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* earlier edge forms; edge forms combine; `static` is a modifier)
|
|
17
17
|
* - `shimmer*` (`shimmer` / `shimmer-none` exclude each other; `once` and
|
|
18
18
|
* `reverse` are modifiers; `shimmer-color|duration|spread|angle-*` are scales)
|
|
19
|
+
* - `state-layer` / `state-layer-none` exclude each other
|
|
19
20
|
* - `rounded-<step>-concentric` / `rounded-t|b-<step>-concentric` (join the core corner groups), the container side
|
|
20
21
|
* needing nothing here — a `rounded-<step>` publishes its radius to its children by itself
|
|
21
22
|
* - `duration-*` / `ease-*` motion tokens
|
|
@@ -44,7 +45,7 @@ const SEMANTIC_SPACING = [
|
|
|
44
45
|
'layout-lg',
|
|
45
46
|
'layout-xl'
|
|
46
47
|
];
|
|
47
|
-
const
|
|
48
|
+
export const mergeConfig = {
|
|
48
49
|
extend: {
|
|
49
50
|
theme: {
|
|
50
51
|
spacing: SEMANTIC_SPACING
|
|
@@ -74,6 +75,8 @@ const merge = createCn({
|
|
|
74
75
|
'scroll-fade-start': [{ 'scroll-fade': ['s', 'l'] }],
|
|
75
76
|
'scroll-fade-end': [{ 'scroll-fade': ['e', 'r'] }],
|
|
76
77
|
shimmer: ['shimmer', 'shimmer-none'],
|
|
78
|
+
// The overlay is a ::before, so only its own off switch can remove it.
|
|
79
|
+
'state-layer': ['state-layer', 'state-layer-none'],
|
|
77
80
|
'shimmer-color': [{ 'shimmer-color': [validators.isAny] }],
|
|
78
81
|
'shimmer-duration': [{ 'shimmer-duration': [validators.isAny] }],
|
|
79
82
|
'shimmer-spread': [{ 'shimmer-spread': [validators.isAny] }],
|
|
@@ -110,5 +113,6 @@ const merge = createCn({
|
|
|
110
113
|
'scroll-fade': ['scroll-fade-t', 'scroll-fade-b', 'scroll-fade-start', 'scroll-fade-end']
|
|
111
114
|
}
|
|
112
115
|
}
|
|
113
|
-
}
|
|
116
|
+
};
|
|
117
|
+
const merge = createCn(mergeConfig);
|
|
114
118
|
export const cn = (...inputs) => merge(...inputs);
|