entasis 0.7.0 → 0.8.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/FloatingWindow/FloatingWindow.svelte +26 -2
- package/dist/components/FloatingWindow/floatingWindow.dock.svelte.js +11 -2
- package/dist/components/FloatingWindow/floatingWindow.mcp.d.ts +1 -1
- package/dist/components/FloatingWindow/floatingWindow.mcp.js +7 -4
- package/dist/components/FloatingWindow/floatingWindow.props.d.ts +6 -0
- package/dist/components/FloatingWindow/floatingWindow.state.svelte.d.ts +3 -0
- package/dist/components/FloatingWindow/floatingWindow.state.svelte.js +18 -4
- package/dist/components/FloatingWindow/floatingWindow.theme.d.ts +3 -0
- package/dist/components/FloatingWindow/floatingWindow.theme.js +20 -7
- package/dist/components/Form/File/FileInput.svelte +6 -42
- package/dist/components/Sidebar/Sidebar.svelte +72 -12
- package/dist/components/Sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/components/Sidebar/SidebarActivityBar.svelte +9 -2
- package/dist/components/Sidebar/SidebarActivityBar.svelte.d.ts +5 -1
- package/dist/components/Sidebar/SidebarDesktopShell.svelte +12 -4
- package/dist/components/Sidebar/SidebarMenuItem.svelte +19 -2
- package/dist/components/Sidebar/SidebarMenuItem.svelte.d.ts +4 -0
- package/dist/components/Sidebar/SidebarPanel.svelte +199 -88
- package/dist/components/Sidebar/SidebarPanel.svelte.d.ts +3 -0
- package/dist/components/Sidebar/SidebarViewStage.svelte +103 -0
- package/dist/components/Sidebar/SidebarViewStage.svelte.d.ts +18 -0
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/sidebar-layout.d.ts +7 -2
- package/dist/components/Sidebar/sidebar-layout.js +17 -6
- package/dist/components/Sidebar/sidebar.mcp.d.ts +1 -1
- package/dist/components/Sidebar/sidebar.mcp.js +19 -2
- package/dist/components/Sidebar/sidebar.props.d.ts +56 -1
- package/dist/components/Sidebar/sidebar.state.svelte.d.ts +4 -0
- package/dist/components/Sidebar/sidebar.state.svelte.js +9 -1
- package/dist/components/Sidebar/sidebar.theme.d.ts +149 -5
- package/dist/components/Sidebar/sidebar.theme.js +96 -3
- package/dist/components/Sidebar/sidebar.views.svelte.d.ts +138 -0
- package/dist/components/Sidebar/sidebar.views.svelte.js +303 -0
- package/dist/components/Theme/theme.floatingWindows.d.ts +6 -1
- package/dist/components/Theme/theme.floatingWindows.js +7 -2
- package/dist/components/Theme/theme.mcp.d.ts +1 -1
- package/dist/components/Theme/theme.mcp.js +1 -0
- package/dist/generated/componentContract.d.ts +1 -1
- package/dist/generated/componentContract.js +1 -0
- package/dist/generated/componentMcpRegistry.d.ts +4 -4
- package/dist/tailwind/index.mcp.d.ts +1 -1
- package/dist/tailwind/index.mcp.js +4 -0
- package/dist/tailwind/scales.js +11 -3
- package/dist/tailwind/spacing.js +17 -0
- package/dist/utils/cva/merge.d.ts +7 -0
- package/dist/utils/cva/merge.js +6 -1
- package/dist/utils/pointerDrag.js +7 -1
- package/package.json +1 -1
package/dist/utils/cva/merge.js
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* `reverse` are modifiers; `shimmer-color|duration|spread|angle-*` are scales)
|
|
19
19
|
* - `state-layer` / `state-layer-none` exclude each other
|
|
20
20
|
* - `rounded-<step>-concentric` / `rounded-t|b-<step>-concentric` (join the core corner groups), the container side
|
|
21
|
+
* - `px|py-<step>-concentric` (join the core `px` / `py` groups)
|
|
21
22
|
* needing nothing here — a `rounded-<step>` publishes its radius to its children by itself
|
|
22
23
|
* - `duration-*` / `ease-*` motion tokens
|
|
23
24
|
* - the semantic spacing scale (`p-md`, `gap-layout-lg`, ...) registered on
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
*/
|
|
33
34
|
import { createCn, validators } from 'cn/config';
|
|
34
35
|
const isConcentric = (value) => /^(?:xs|sm|md|lg|xl|2xl|3xl|4xl)-concentric$/.test(value);
|
|
36
|
+
const isSpacingConcentric = (value) => /^(?:micro|xs|sm|md|lg|xl|layout-sm|layout-md|layout-lg|layout-xl)-concentric$/.test(value);
|
|
35
37
|
/** Semantic spacing values usable wherever Tailwind accepts a spacing value. */
|
|
36
38
|
const SEMANTIC_SPACING = [
|
|
37
39
|
'micro',
|
|
@@ -85,7 +87,10 @@ export const mergeConfig = {
|
|
|
85
87
|
// and last-wins against `rounded-lg`.
|
|
86
88
|
rounded: [{ rounded: [isConcentric] }],
|
|
87
89
|
'rounded-t': [{ 'rounded-t': [isConcentric] }],
|
|
88
|
-
'rounded-b': [{ 'rounded-b': [isConcentric] }]
|
|
90
|
+
'rounded-b': [{ 'rounded-b': [isConcentric] }],
|
|
91
|
+
// `px-md-concentric` is a padding like any other, so it joins the core `px` / `py` groups.
|
|
92
|
+
px: [{ px: [isSpacingConcentric] }],
|
|
93
|
+
py: [{ py: [isSpacingConcentric] }]
|
|
89
94
|
},
|
|
90
95
|
conflictingClassGroups: {
|
|
91
96
|
// `raised-*`, `lift-*` and `shadow-*` all own the `--tw-shadow` slot.
|
|
@@ -225,7 +225,13 @@ export const createPointerDrag = (options) => {
|
|
|
225
225
|
const offPointerMove = on(node, 'pointermove', move);
|
|
226
226
|
const offPointerUp = on(node, 'pointerup', end);
|
|
227
227
|
const offPointerCancel = on(node, 'pointercancel', abort);
|
|
228
|
-
|
|
228
|
+
// Only the node's own capture counts. A touch is implicitly captured by the element under
|
|
229
|
+
// it, so when an `on-activate` session takes the capture over, that descendant's
|
|
230
|
+
// `lostpointercapture` bubbles up here and must not abort the drag it just started.
|
|
231
|
+
const offLostPointerCapture = on(node, 'lostpointercapture', (event) => {
|
|
232
|
+
if (event.target === node)
|
|
233
|
+
abort(event);
|
|
234
|
+
});
|
|
229
235
|
const offTouchMove = options.preventTouchMove === false
|
|
230
236
|
? () => { }
|
|
231
237
|
: on(node, 'touchmove', (event) => {
|