@seanyeh77/ui 0.6.0 → 0.6.1
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/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/styles.css +3 -21
- package/docs/MobileTabBar.md +2 -2
- package/docs/guidelines.md +1 -1
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -811,16 +811,15 @@ body {
|
|
|
811
811
|
.ui-tabbar {
|
|
812
812
|
position: relative;
|
|
813
813
|
box-sizing: border-box;
|
|
814
|
-
height:
|
|
814
|
+
height: 60px;
|
|
815
815
|
display: flex;
|
|
816
816
|
background: var(--surface-chrome);
|
|
817
817
|
border-top: 1px solid var(--line);
|
|
818
818
|
}
|
|
819
819
|
.ui-tabbar-pill {
|
|
820
820
|
position: absolute;
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
height: 28px;
|
|
821
|
+
top: 15px;
|
|
822
|
+
height: 30px;
|
|
824
823
|
border-radius: var(--radius-md);
|
|
825
824
|
background: var(--accent-soft);
|
|
826
825
|
pointer-events: none;
|
|
@@ -828,35 +827,18 @@ body {
|
|
|
828
827
|
.ui-tabbar-item {
|
|
829
828
|
position: relative;
|
|
830
829
|
flex: 1 1 0;
|
|
831
|
-
min-width: 0;
|
|
832
830
|
min-height: var(--touch-target);
|
|
833
|
-
padding: 0 2px;
|
|
834
831
|
border: 0;
|
|
835
832
|
background: transparent;
|
|
836
833
|
color: var(--ink-muted);
|
|
837
834
|
display: flex;
|
|
838
|
-
flex-direction: column;
|
|
839
835
|
align-items: center;
|
|
840
836
|
justify-content: center;
|
|
841
|
-
gap: 2px;
|
|
842
|
-
font: inherit;
|
|
843
837
|
cursor: pointer;
|
|
844
838
|
}
|
|
845
839
|
.ui-tabbar-item.is-selected {
|
|
846
840
|
color: var(--accent-text);
|
|
847
841
|
}
|
|
848
|
-
.ui-tabbar-label {
|
|
849
|
-
max-width: 100%;
|
|
850
|
-
overflow: hidden;
|
|
851
|
-
text-overflow: ellipsis;
|
|
852
|
-
white-space: nowrap;
|
|
853
|
-
font-size: 12px;
|
|
854
|
-
line-height: 16px;
|
|
855
|
-
font-weight: 500;
|
|
856
|
-
}
|
|
857
|
-
.ui-tabbar-item.is-selected .ui-tabbar-label {
|
|
858
|
-
font-weight: 700;
|
|
859
|
-
}
|
|
860
842
|
|
|
861
843
|
@keyframes ui-rise {
|
|
862
844
|
from {
|
package/docs/MobileTabBar.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
手機寬度(小於 600 px)時的底部分頁列。
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- 只有圖示,不顯示文字;每個按鈕都有 `aria-label`。
|
|
6
6
|
- 按下已選中的分頁也會呼叫 `onChange`(例如「更多」每次都要打開);只在頁面真的改變時才做事的話,先比對目前的值。
|
|
7
|
-
- 選中:圖示後方一塊 `accent-soft` 圓角矩形(`radius-md
|
|
7
|
+
- 選中:圖示後方一塊 `accent-soft` 圓角矩形(`radius-md`),圖示變 `accent-text`。
|
|
8
8
|
- 切換動畫:水滴膠囊,和 Tabs 相同的拉伸方式(前端 120 ms、後端 440 ms)。
|
package/docs/guidelines.md
CHANGED
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
- 頂部列:左邊頁面標題,右邊填色搜尋框(附 Ctrl K 提示,Mac 上寫 ⌘K);麵包屑放在內容區最上方。
|
|
233
233
|
- 麵包屑:箭頭「›」分隔,一般字。
|
|
234
234
|
- 分頁切換:分段控制,水滴動畫,內容依序浮起。分段上的數字帶單位(`unit`)。
|
|
235
|
-
-
|
|
235
|
+
- 手機底部分頁列:只有圖示,選中時圖示後方出現膠囊,水滴動畫。放不下的頁面(沒有圖示、第 5 個以後、第二個以後的子頁面)放在最後一格「更多」,打開完整導覽;有子頁面的分頁打開第一個子頁面。
|
|
236
236
|
- 專案狀態:頂部列右邊放 `ProjectSwitcher`,外框 Chip 寫「ibtrace · 即時」,前面的圓點表示資料狀態(即時綠、已過期橘、離線灰);點了打開清單切換專案或環境,清單最下方可以放設定連結。
|
|
237
237
|
|
|
238
238
|
- 頂部列在手機上(寬度小於 600 px):搜尋框換成搜尋圖示,點了打開搜尋面板。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanyeh77/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "SeanYeh's design system: typed React components on Base UI, styled with design tokens.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hsiu-An Yeh",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-dom": "^19.3.1",
|
|
50
50
|
"tsdown": "^0.23.7",
|
|
51
51
|
"vitest": "^5.1.0",
|
|
52
|
-
"@seanyeh77/tokens": "^0.6.
|
|
52
|
+
"@seanyeh77/tokens": "^0.6.1"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@base-ui/react": "^1.9.0"
|