From f1983281db6cda7ce737bade5dd54bae53b0edc0 Mon Sep 17 00:00:00 2001 From: abdel Date: Sun, 19 Oct 2025 22:36:15 +0800 Subject: [PATCH 1/4] refactor: update preset names for input and stack components --- src/lib/components/input/input-root.svelte | 2 +- src/lib/components/stack/stack-root.svelte | 2 +- src/lib/context/preset.svelte.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/components/input/input-root.svelte b/src/lib/components/input/input-root.svelte index 96ea968..7ef4545 100644 --- a/src/lib/components/input/input-root.svelte +++ b/src/lib/components/input/input-root.svelte @@ -12,7 +12,7 @@ type Element = ElementType; - const preset = getPreset('stack'); + const preset = getPreset('input.root'); let { class: klass = '', diff --git a/src/lib/components/stack/stack-root.svelte b/src/lib/components/stack/stack-root.svelte index 882bdc5..71aab08 100644 --- a/src/lib/components/stack/stack-root.svelte +++ b/src/lib/components/stack/stack-root.svelte @@ -12,7 +12,7 @@ type Element = ElementType; - const preset = getPreset('stack'); + const preset = getPreset('stack.root'); let { class: klass = '', diff --git a/src/lib/context/preset.svelte.ts b/src/lib/context/preset.svelte.ts index be78bad..c8b612c 100644 --- a/src/lib/context/preset.svelte.ts +++ b/src/lib/context/preset.svelte.ts @@ -50,9 +50,9 @@ export type ModuleName = | 'field' | 'form' | 'icon' - | 'input.placeholder' - | 'stack' + | 'input.root' | 'input.value' + | 'input.placeholder' | 'label' | 'layer.inner' | 'layer' @@ -82,8 +82,8 @@ export type ModuleName = | 'drawer.footer' | 'drawer.header' | 'drawer' + | 'stack.root' | 'stack.item' - | 'stack' | 'tabs.body' | 'tabs.header' | 'tabs' From 90f95a092756d71f071a6f7f393b8e5bfcb362b8 Mon Sep 17 00:00:00 2001 From: abdel Date: Sun, 19 Oct 2025 22:36:32 +0800 Subject: [PATCH 2/4] refactor: simplify exports in index and enhance type imports in types --- src/lib/components/atom/index.ts | 10 +++------- src/lib/components/atom/types.ts | 4 +++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/lib/components/atom/index.ts b/src/lib/components/atom/index.ts index 2e7e172..a63053b 100644 --- a/src/lib/components/atom/index.ts +++ b/src/lib/components/atom/index.ts @@ -1,7 +1,3 @@ -export { - default as HtmlAtom, - type HtmlAtomProps, - type Base, - type ComponentBase, - type SnippetBase -} from './html-atom.svelte'; +export { default as HtmlAtom } from './html-atom.svelte'; + +export * from './types'; diff --git a/src/lib/components/atom/types.ts b/src/lib/components/atom/types.ts index 87fb26a..6bd9d7e 100644 --- a/src/lib/components/atom/types.ts +++ b/src/lib/components/atom/types.ts @@ -1,6 +1,6 @@ import type { Component, Snippet } from 'svelte'; import { type HtmlElementTagName } from '$svelte-atoms/core/components/element'; -import type { HtmlElementProps } from '../element/types'; +import type { HtmlElementProps, ElementType } from '../element/types'; export type ComponentBase = Component; export type SnippetBase = Snippet; @@ -13,3 +13,5 @@ export type HtmlAtomProps< > = HtmlElementProps & { base?: B; }; + +export type { ElementType }; From 8bf68ddf93e06a275f6847ab42e8876b4462871a Mon Sep 17 00:00:00 2001 From: abdel Date: Sun, 19 Oct 2025 22:37:07 +0800 Subject: [PATCH 3/4] fix: remove redundant --- .github/copilot-instructions.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ba33760..0f7b803 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -12,7 +12,6 @@ - `@svelte-atoms/core`: A collection of core utilities and components for building Svelte applications. - `@svelte-atoms/alchimist`: The core library for building charts and visualizations built on top of `@svelte-atoms/core`. Allow developer to mix `HTML`, `SVG` and `Canvas` elements to create flexible and powerful of all worlds data visualizations. - # Git -- use short & straightforward commit messages \ No newline at end of file +- use short & straightforward commit messages From 4225ee405aa1fa270a2d576814267ffadf260743 Mon Sep 17 00:00:00 2001 From: abdel Date: Sun, 19 Oct 2025 22:39:39 +0800 Subject: [PATCH 4/4] bump version to 1.0.0-alpha.16 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c94707b..140a7ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@svelte-atoms/core", - "version": "1.0.0-alpha.15", + "version": "1.0.0-alpha.16", "description": "A modular, accessible, and extensible Svelte UI component library.", "repository": { "type": "git",