@fibrae/semi-ui-svelte 0.9.0 → 0.10.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 +8 -4
- package/README.zh-CN.md +8 -4
- package/dist/components/anchor/interface.d.ts +14 -0
- package/dist/components/audio-player/interface.d.ts +5 -0
- package/dist/components/auto-complete/interface.d.ts +29 -0
- package/dist/components/avatar/interface.d.ts +24 -0
- package/dist/components/backtop/interface.d.ts +2 -0
- package/dist/components/badge/interface.d.ts +7 -0
- package/dist/components/banner/interface.d.ts +7 -0
- package/dist/components/breadcrumb/interface.d.ts +10 -0
- package/dist/components/button/interface.d.ts +18 -0
- package/dist/components/calendar/interface.d.ts +16 -0
- package/dist/components/card/interface.d.ts +18 -0
- package/dist/components/carousel/interface.d.ts +16 -0
- package/dist/components/cascader/cascader.svelte +1 -0
- package/dist/components/cascader/interface.d.ts +57 -0
- package/dist/components/checkbox/interface.d.ts +19 -0
- package/dist/components/code-highlight/interface.d.ts +3 -0
- package/dist/components/collapse/interface.d.ts +16 -0
- package/dist/components/collapsible/interface.d.ts +10 -0
- package/dist/components/color-picker/interface.d.ts +10 -0
- package/dist/components/config-provider/interface.d.ts +7 -0
- package/dist/components/cropper/interface.d.ts +11 -0
- package/dist/components/date-picker/interface.d.ts +47 -0
- package/dist/components/descriptions/interface.d.ts +6 -0
- package/dist/components/divider/interface.d.ts +4 -0
- package/dist/components/dropdown/interface.d.ts +8 -0
- package/dist/components/empty/interface.d.ts +7 -0
- package/dist/components/feedback/interface.d.ts +16 -0
- package/dist/components/float-button/interface.d.ts +14 -0
- package/dist/components/form/interface.d.ts +47 -0
- package/dist/components/form/label.svelte +2 -2
- package/dist/components/grid/interface.d.ts +13 -0
- package/dist/components/highlight/interface.d.ts +7 -0
- package/dist/components/hot-keys/interface.d.ts +3 -0
- package/dist/components/image/interface.d.ts +59 -0
- package/dist/components/input/interface.d.ts +67 -0
- package/dist/components/input-number/interface.d.ts +24 -0
- package/dist/components/json-viewer/interface.d.ts +7 -0
- package/dist/components/layout/interface.d.ts +3 -0
- package/dist/components/list/interface.d.ts +18 -0
- package/dist/components/locale/interface.d.ts +4 -0
- package/dist/components/lottie/interface.d.ts +2 -0
- package/dist/components/markdown-render/interface.d.ts +5 -0
- package/dist/components/modal/interface.d.ts +29 -0
- package/dist/components/navigation/interface.d.ts +47 -0
- package/dist/components/overflow-list/interface.d.ts +11 -0
- package/dist/components/pagination/interface.d.ts +12 -0
- package/dist/components/pincode/interface.d.ts +8 -0
- package/dist/components/popconfirm/interface.d.ts +12 -0
- package/dist/components/popover/interface.d.ts +30 -0
- package/dist/components/progress/interface.d.ts +13 -0
- package/dist/components/radio/interface.d.ts +22 -0
- package/dist/components/rating/interface.d.ts +12 -0
- package/dist/components/resizable/interface.d.ts +30 -0
- package/dist/components/scroll-list/interface.d.ts +6 -0
- package/dist/components/select/interface.d.ts +63 -0
- package/dist/components/side-sheet/interface.d.ts +19 -0
- package/dist/components/skeleton/interface.d.ts +7 -0
- package/dist/components/slider/interface.d.ts +23 -0
- package/dist/components/space/interface.d.ts +4 -0
- package/dist/components/spin/interface.d.ts +7 -0
- package/dist/components/steps/interface.d.ts +9 -0
- package/dist/components/switch/interface.d.ts +7 -0
- package/dist/components/table/interface.d.ts +48 -0
- package/dist/components/tabs/interface.d.ts +29 -0
- package/dist/components/tag/interface.d.ts +22 -0
- package/dist/components/tag-input/interface.d.ts +29 -0
- package/dist/components/time-picker/interface.d.ts +31 -0
- package/dist/components/timeline/interface.d.ts +5 -0
- package/dist/components/tooltip/interface.d.ts +20 -0
- package/dist/components/tooltip/tooltip.svelte +3 -0
- package/dist/components/transfer/interface.d.ts +18 -0
- package/dist/components/tree/interface.d.ts +45 -0
- package/dist/components/tree-select/interface.d.ts +55 -0
- package/dist/components/typography/interface.d.ts +33 -0
- package/dist/components/upload/interface.d.ts +64 -0
- package/dist/components/user-guide/interface.d.ts +15 -0
- package/dist/components/video-player/interface.d.ts +22 -0
- package/dist/styles.css +1 -1
- package/docs/advanced/dark-mode.md +288 -0
- package/docs/basic/button.md +605 -0
- package/docs/basic/divider.md +103 -0
- package/docs/basic/float-button.md +246 -0
- package/docs/basic/grid.md +427 -0
- package/docs/basic/layout.md +459 -0
- package/docs/basic/resizable.md +584 -0
- package/docs/basic/space.md +163 -0
- package/docs/basic/tokens.md +425 -0
- package/docs/basic/typography.md +615 -0
- package/docs/changes-from-semi.md +105 -0
- package/docs/ecosystem/tailwind.md +210 -0
- package/docs/experience/accessibility.md +82 -0
- package/docs/experience/content-guidelines.md +819 -0
- package/docs/experience/internationalization.md +7 -0
- package/docs/feedback/banner.md +198 -0
- package/docs/feedback/feedback.md +294 -0
- package/docs/feedback/notification.md +401 -0
- package/docs/feedback/popconfirm.md +243 -0
- package/docs/feedback/progress.md +389 -0
- package/docs/feedback/skeleton.md +388 -0
- package/docs/feedback/spin.md +172 -0
- package/docs/feedback/toast.md +393 -0
- package/docs/input/auto-complete.md +399 -0
- package/docs/input/cascader.md +1558 -0
- package/docs/input/checkbox.md +408 -0
- package/docs/input/color-picker.md +175 -0
- package/docs/input/date-picker.md +942 -0
- package/docs/input/form.md +2550 -0
- package/docs/input/input-number.md +451 -0
- package/docs/input/input.md +640 -0
- package/docs/input/pincode.md +191 -0
- package/docs/input/radio.md +337 -0
- package/docs/input/rating.md +214 -0
- package/docs/input/select.md +1230 -0
- package/docs/input/slider.md +347 -0
- package/docs/input/switch.md +206 -0
- package/docs/input/tag-input.md +465 -0
- package/docs/input/time-picker.md +358 -0
- package/docs/input/transfer.md +1061 -0
- package/docs/input/tree-select.md +1300 -0
- package/docs/input/upload.md +1811 -0
- package/docs/llms.txt +147 -0
- package/docs/navigation/anchor.md +377 -0
- package/docs/navigation/backtop.md +100 -0
- package/docs/navigation/breadcrumb.md +284 -0
- package/docs/navigation/navigation.md +851 -0
- package/docs/navigation/pagination.md +217 -0
- package/docs/navigation/steps.md +315 -0
- package/docs/navigation/tabs.md +754 -0
- package/docs/navigation/tree.md +1956 -0
- package/docs/other/config-provider.md +599 -0
- package/docs/other/locale.md +353 -0
- package/docs/plus/audio-player.md +155 -0
- package/docs/plus/code-highlight.md +150 -0
- package/docs/plus/drag-move.md +214 -0
- package/docs/plus/hot-keys.md +174 -0
- package/docs/plus/json-viewer.md +392 -0
- package/docs/plus/lottie.md +176 -0
- package/docs/plus/markdown-render.md +240 -0
- package/docs/plus/video-player.md +325 -0
- package/docs/show/avatar.md +475 -0
- package/docs/show/badge.md +276 -0
- package/docs/show/calendar.md +352 -0
- package/docs/show/card.md +485 -0
- package/docs/show/carousel.md +592 -0
- package/docs/show/collapse.md +289 -0
- package/docs/show/collapsible.md +216 -0
- package/docs/show/cropper.md +285 -0
- package/docs/show/descriptions.md +325 -0
- package/docs/show/dropdown.md +466 -0
- package/docs/show/empty.md +225 -0
- package/docs/show/highlight.md +144 -0
- package/docs/show/image.md +433 -0
- package/docs/show/list.md +927 -0
- package/docs/show/modal.md +517 -0
- package/docs/show/overflow-list.md +272 -0
- package/docs/show/popover.md +534 -0
- package/docs/show/scroll-list.md +156 -0
- package/docs/show/side-sheet.md +274 -0
- package/docs/show/table.md +5437 -0
- package/docs/show/tag.md +428 -0
- package/docs/show/timeline.md +277 -0
- package/docs/show/tooltip.md +442 -0
- package/docs/show/user-guide.md +419 -0
- package/docs/start/getting-started.md +234 -0
- package/docs/start/introduction.md +57 -0
- package/docs/start/overview.md +21 -0
- package/package.json +5 -4
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Introduction
|
|
2
|
+
|
|
3
|
+
> Semi Design Next is a community fork of Semi Design that ships React 19, Vue 3.5+, Solid and Svelte 5 component libraries on top of a shared, framework-free Foundation.
|
|
4
|
+
|
|
5
|
+
Package: `@fibrae/semi-ui-svelte`. Web page: https://semi-design-next.pages.dev/en-US/svelte/start/introduction/
|
|
6
|
+
|
|
7
|
+
## What is Semi Design Next
|
|
8
|
+
|
|
9
|
+
Semi Design Next is a community fork of the upstream [Semi Design](https://github.com/DouyinFE/semi-design). It keeps the design language and component system of Semi and provides a design system and basic components for enterprise applications. Upstream was designed, developed and maintained by the Douyin front-end team and the MED product design team and is released under the MIT license. The design and most of the component logic of Semi Design Next come from upstream, and the copyright belongs to the original authors.
|
|
10
|
+
|
|
11
|
+
Semi Design Next is an unofficial community project. It is not affiliated with or endorsed by ByteDance, DouyinFE or the official Semi Design team, and the name "Semi Design" belongs to its owners.
|
|
12
|
+
|
|
13
|
+
This project does not sync with upstream and does not keep backward compatibility. Components, styles and docs evolve according to the decisions of this repository. Breaking and behavior changes relative to upstream are recorded in `docs/release-notes.md` in the repository.
|
|
14
|
+
|
|
15
|
+
## Differences from upstream
|
|
16
|
+
|
|
17
|
+
- Four component libraries, React 19, Vue 3.5+, Solid and Svelte 5, published as `@fibrae/semi-ui-react`, `@fibrae/semi-ui-vue`, `@fibrae/semi-ui-solid` and `@fibrae/semi-ui-svelte`, sharing `@fibrae/semi-foundation`.
|
|
18
|
+
- Chrome 120, Firefox 125, Safari 17.2 and later are supported. Newer browsers use native features; older versions are covered by fallbacks inside the components and the optional `@fibrae/semi-polyfill`.
|
|
19
|
+
- The published output is ESM only. There are no UMD or CDN builds.
|
|
20
|
+
- Accessibility follows the recommendations of WAI-ARIA and APG, and accessible names and built-in texts are read from the locale packs.
|
|
21
|
+
- Animation is delegated to Motion. `@fibrae/semi-animation` only provides the easings, springs and View Transition presets for it.
|
|
22
|
+
|
|
23
|
+
## Design principles
|
|
24
|
+
|
|
25
|
+
### Constant and variable
|
|
26
|
+
|
|
27
|
+
Semi decouples modules on top of its defaults and opens up customization: keep a high-quality and stable default (constant), and open up flexibility when needed (variable). Users can trim and customize on top of the defaults to build front-end assets for products of different shapes.
|
|
28
|
+
|
|
29
|
+
### Style customization: CSS variables and CSS overrides
|
|
30
|
+
|
|
31
|
+
Global design tokens such as colors, radii, shadows, font sizes, spacing and z-index are provided as `--semi-*` CSS variables. Overriding them in your application styles changes the global look, with no compile plugin required, and they can be switched at runtime. Semi styles live in `@layer semi`, so unlayered CSS rules in your application always win and can override the styles of a specific component directly. See [Design tokens](../basic/tokens.md) for the list of variables.
|
|
32
|
+
|
|
33
|
+
### Dark mode
|
|
34
|
+
|
|
35
|
+
All color variables of Semi come with dark values and can be switched dynamically at runtime. Dark mode can also be enabled for a local area inside the application.
|
|
36
|
+
|
|
37
|
+
### Internationalization
|
|
38
|
+
|
|
39
|
+
Components ship with multiple locale packs, date and time components support time zones around the world, and components adapt to RTL layouts.
|
|
40
|
+
|
|
41
|
+
## Architecture
|
|
42
|
+
|
|
43
|
+
The JavaScript of every component is split into two parts, Foundation and Adapter. This lets the Foundation be reused across frameworks, and each framework only needs its own integration layer.
|
|
44
|
+
|
|
45
|
+
### Foundation
|
|
46
|
+
|
|
47
|
+
The Foundation contains the business logic of component interaction, including the calculations and branching after a UI behavior is triggered. It neither manipulates nor references the DOM. Anything that needs DOM operations or drives rendering updates is delegated to the Adapter. The Foundation is framework-free and does not depend on React, Vue, Solid, Svelte or the UI packages.
|
|
48
|
+
|
|
49
|
+
### Adapter
|
|
50
|
+
|
|
51
|
+
The Adapter is an interface with all the methods the Foundation needs to implement its logic. It declares the DOM structure of the component and handles everything related to DOM operations and updates, usually through framework APIs that hand over DOM elements, measure, move focus and pass events to the component's callbacks; the Foundation holds the state. React integrates through adapters and hooks, Vue through composables, Svelte through runes.
|
|
52
|
+
|
|
53
|
+
There are currently four implementations, React, Vue, Solid and Svelte, corresponding to `@fibrae/semi-ui-react`, `@fibrae/semi-ui-vue`, `@fibrae/semi-ui-solid` and `@fibrae/semi-ui-svelte`. The AI components are in `@fibrae/semi-ai-react`, `@fibrae/semi-ai-vue`, `@fibrae/semi-ai-solid` and `@fibrae/semi-ai-svelte`.
|
|
54
|
+
|
|
55
|
+
## Compatibility
|
|
56
|
+
|
|
57
|
+
Chrome 120, Firefox 125, Safari 17.2 and later are supported; supporting Safari below 17.4 needs `@fibrae/semi-polyfill`. The styles rely on modern CSS features such as CSS variables, `@layer` and `@container`. For the framework, module format, Node.js and build plugin requirements, see [Requirements in Quick Start](../start/getting-started.md#requirements).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
|
|
3
|
+
> Based on Semi design language, React, Vue, Solid and Svelte UI desktop component library that can be debugged online, helps developers build applications efficiently.
|
|
4
|
+
|
|
5
|
+
Package: `@fibrae/semi-ui-svelte`. Web page: https://semi-design-next.pages.dev/en-US/svelte/start/overview/
|
|
6
|
+
|
|
7
|
+
## Basic
|
|
8
|
+
|
|
9
|
+
## AI Components
|
|
10
|
+
|
|
11
|
+
## Plus Component
|
|
12
|
+
|
|
13
|
+
## Input
|
|
14
|
+
|
|
15
|
+
## Navigation
|
|
16
|
+
|
|
17
|
+
### Show
|
|
18
|
+
|
|
19
|
+
## Feedback
|
|
20
|
+
|
|
21
|
+
## Others
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibrae/semi-ui-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Semi Design Next Svelte components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://semi-design-next.pages.dev",
|
|
@@ -110,7 +110,8 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"files": [
|
|
113
|
-
"dist"
|
|
113
|
+
"dist",
|
|
114
|
+
"docs"
|
|
114
115
|
],
|
|
115
116
|
"sideEffects": [
|
|
116
117
|
"*.scss",
|
|
@@ -122,8 +123,8 @@
|
|
|
122
123
|
"dependencies": {
|
|
123
124
|
"@dnd-kit/dom": "~0.5.3",
|
|
124
125
|
"@dnd-kit/svelte": "~0.5.3",
|
|
125
|
-
"@fibrae/semi-foundation": "0.
|
|
126
|
-
"@fibrae/semi-icons-svelte": "0.
|
|
126
|
+
"@fibrae/semi-foundation": "0.10.0",
|
|
127
|
+
"@fibrae/semi-icons-svelte": "0.10.0",
|
|
127
128
|
"@tanstack/svelte-virtual": "^3.13.52",
|
|
128
129
|
"date-fns": "^4.4.0",
|
|
129
130
|
"es-toolkit": "^1.53.2",
|