sakana-element 2.2.0 → 2.4.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 +98 -25
- package/dist/es/{Alert-C76ZWSVk.js → Alert-DfLsJvQD.js} +2 -2
- package/dist/es/Avatar-Ci4OKsv7.js +9 -0
- package/dist/es/{Badge-CoFWwBwv.js → Badge-B4wEToK6.js} +2 -2
- package/dist/es/{Breadcrumb-BtrwTVKW.js → Breadcrumb-BFzww8jd.js} +2 -2
- package/dist/es/{Button-S_31-UWJ.js → Button-DbFviVWb.js} +3 -3
- package/dist/es/{Card-DcW6nHYD.js → Card-ClRqKkc_.js} +2 -2
- package/dist/es/ChatBubble-DFEV_lVI.js +9 -0
- package/dist/es/Checkbox-l86YI3Fr.js +51 -0
- package/dist/es/{Collapse-DsS7M-m3.js → Collapse-B67v6RSE.js} +4 -4
- package/dist/es/{ConfigProvider-BgIewHXP.js → ConfigProvider-BCoGbcS5.js} +2 -2
- package/dist/es/Diff-BLiniLom.js +64 -0
- package/dist/es/Divider-DDSOHv8G.js +9 -0
- package/dist/es/Drawer-apeXw6EO.js +40 -0
- package/dist/es/Dropdown-By9qIErf.js +104 -0
- package/dist/es/{FileInput-BQ59woas.js → FileInput-CZ5jTfB_.js} +3 -3
- package/dist/es/Filter-B_1zU4Dq.js +40 -0
- package/dist/es/Form-B_XDnSjK.js +123 -0
- package/dist/es/{Icon-DpJyuj7c.js → Icon-D6qRB3pq.js} +1 -1
- package/dist/es/Indicator-C6Ip4dpP.js +9 -0
- package/dist/es/{Input-CiE4bPJN.js → Input-bThwBbNZ.js} +7 -7
- package/dist/es/Kbd-DXNjs7at.js +13 -0
- package/dist/es/{Link-B9B2APZq.js → Link-08Ee61Fv.js} +1 -1
- package/dist/es/{Loading-BW99pE5N.js → Loading-ByI9mjss.js} +13 -13
- package/dist/es/Message-CGG-lV5I.js +152 -0
- package/dist/es/Notification-B4clKY5h.js +69 -0
- package/dist/es/{Overlay-BRDSWspM.js → Overlay-6iPenJB1.js} +1 -1
- package/dist/es/Pixelate-A8J7jxDW.js +39 -0
- package/dist/es/Popconfirm-gcHGcOTz.js +23 -0
- package/dist/es/Progress-DFUBJQ4X.js +12 -0
- package/dist/es/Radio-CLBa1XIM.js +33 -0
- package/dist/es/Resizable-BWrFr2oj.js +151 -0
- package/dist/es/{Select-Dwqv8isB.js → Select-BtLqds1d.js} +20 -20
- package/dist/es/Skeleton-CGUQv3nQ.js +15 -0
- package/dist/es/{Switch-B1Gnv1tB.js → Switch-CZJ-S77_.js} +3 -3
- package/dist/es/Table-lHbxiyGq.js +10 -0
- package/dist/es/Tooltip-CdPqNYdn.js +74 -0
- package/dist/es/Validator-7ZT_nXDZ.js +40 -0
- package/dist/es/hooks-pU4JmsO3.js +171 -0
- package/dist/es/index.js +107 -70
- package/dist/es/utils-BXICIEsD.js +139 -0
- package/dist/es/{vendor-DXmGx29U.js → vendor-DrBJKLFW.js} +254 -210
- package/dist/index.css +1 -1
- package/dist/theme/Avatar.css +13 -43
- package/dist/theme/Badge.css +151 -151
- package/dist/theme/Breadcrumb.css +46 -4
- package/dist/theme/Button.css +72 -8
- package/dist/theme/Card.css +177 -93
- package/dist/theme/ChatBubble.css +218 -0
- package/dist/theme/Checkbox.css +604 -0
- package/dist/theme/Collapse.css +96 -96
- package/dist/theme/Diff.css +110 -0
- package/dist/theme/Divider.css +150 -0
- package/dist/theme/Drawer.css +206 -0
- package/dist/theme/Dropdown.css +359 -75
- package/dist/theme/FileInput.css +32 -0
- package/dist/theme/Filter.css +598 -0
- package/dist/theme/Indicator.css +159 -0
- package/dist/theme/Input.css +414 -406
- package/dist/theme/Kbd.css +104 -0
- package/dist/theme/Link.css +22 -3
- package/dist/theme/Loading.css +50 -12
- package/dist/theme/Message.css +250 -41
- package/dist/theme/Notification.css +232 -42
- package/dist/theme/Popconfirm.css +23 -7
- package/dist/theme/Progress.css +278 -0
- package/dist/theme/Radio.css +492 -0
- package/dist/theme/Resizable.css +95 -0
- package/dist/theme/Select.css +198 -88
- package/dist/theme/Skeleton.css +192 -0
- package/dist/theme/Switch.css +22 -3
- package/dist/theme/Table.css +680 -0
- package/dist/theme/Tooltip.css +150 -26
- package/dist/theme/Validator.css +25 -0
- package/dist/types/components/Avatar/types.d.ts +0 -2
- package/dist/types/components/ChatBubble/constants.d.ts +2 -0
- package/dist/types/components/ChatBubble/index.d.ts +27 -0
- package/dist/types/components/ChatBubble/types.d.ts +10 -0
- package/dist/types/components/Checkbox/constants.d.ts +5 -0
- package/dist/types/components/Checkbox/index.d.ts +94 -0
- package/dist/types/components/Checkbox/types.d.ts +46 -0
- package/dist/types/components/Collapse/index.d.ts +5 -5
- package/dist/types/components/Diff/constants.d.ts +4 -0
- package/dist/types/components/Diff/index.d.ts +67 -0
- package/dist/types/components/Diff/types.d.ts +29 -0
- package/dist/types/components/Divider/index.d.ts +30 -0
- package/dist/types/components/Divider/types.d.ts +10 -0
- package/dist/types/components/Drawer/constants.d.ts +1 -0
- package/dist/types/components/Drawer/index.d.ts +72 -0
- package/dist/types/components/Drawer/types.d.ts +20 -0
- package/dist/types/components/Dropdown/index.d.ts +13 -3
- package/dist/types/components/Dropdown/types.d.ts +3 -0
- package/dist/types/components/Dropdown/useDropdownKeyboard.d.ts +8 -0
- package/dist/types/components/FileInput/index.d.ts +5 -5
- package/dist/types/components/Filter/constants.d.ts +5 -0
- package/dist/types/components/Filter/index.d.ts +59 -0
- package/dist/types/components/Filter/types.d.ts +38 -0
- package/dist/types/components/Indicator/constants.d.ts +2 -0
- package/dist/types/components/Indicator/index.d.ts +28 -0
- package/dist/types/components/Indicator/types.d.ts +10 -0
- package/dist/types/components/Input/index.d.ts +10 -10
- package/dist/types/components/Kbd/constants.d.ts +3 -0
- package/dist/types/components/Kbd/index.d.ts +24 -0
- package/dist/types/components/Kbd/types.d.ts +10 -0
- package/dist/types/components/Message/methods.d.ts +2 -0
- package/dist/types/components/Message/types.d.ts +7 -1
- package/dist/types/components/MessageBox/types.d.ts +14 -2
- package/dist/types/components/Notification/methods.d.ts +3 -0
- package/dist/types/components/Notification/types.d.ts +8 -2
- package/dist/types/components/Pixelate/constants.d.ts +2 -0
- package/dist/types/components/Pixelate/index.d.ts +71 -0
- package/dist/types/components/Pixelate/types.d.ts +23 -0
- package/dist/types/components/Popconfirm/index.d.ts +18 -9
- package/dist/types/components/Popconfirm/types.d.ts +2 -1
- package/dist/types/components/Progress/constants.d.ts +2 -0
- package/dist/types/components/Progress/index.d.ts +50 -0
- package/dist/types/components/Progress/types.d.ts +22 -0
- package/dist/types/components/Radio/constants.d.ts +5 -0
- package/dist/types/components/Radio/index.d.ts +88 -0
- package/dist/types/components/Radio/types.d.ts +43 -0
- package/dist/types/components/Resizable/constants.d.ts +3 -0
- package/dist/types/components/Resizable/index.d.ts +135 -0
- package/dist/types/components/Resizable/types.d.ts +52 -0
- package/dist/types/components/Select/index.d.ts +32 -23
- package/dist/types/components/Skeleton/index.d.ts +36 -0
- package/dist/types/components/Skeleton/types.d.ts +12 -0
- package/dist/types/components/Switch/index.d.ts +5 -5
- package/dist/types/components/Table/index.d.ts +27 -0
- package/dist/types/components/Table/types.d.ts +20 -0
- package/dist/types/components/Tooltip/index.d.ts +9 -3
- package/dist/types/components/Tooltip/types.d.ts +7 -0
- package/dist/types/components/Validator/index.d.ts +52 -0
- package/dist/types/components/Validator/types.d.ts +13 -0
- package/dist/types/components/index.d.ts +15 -0
- package/dist/types/hooks/index.d.ts +3 -1
- package/dist/types/hooks/useDraggable.d.ts +7 -0
- package/dist/types/hooks/useFocusTrap.d.ts +5 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/instance-management.d.ts +40 -0
- package/dist/types/utils/pixelate.d.ts +10 -0
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.css.gz +0 -0
- package/dist/umd/index.umd.cjs +4 -4
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +59 -59
- package/dist/es/Avatar-CxsRW-wl.js +0 -9
- package/dist/es/Dropdown-GcomGMAI.js +0 -40
- package/dist/es/Form-j90EzLXU.js +0 -122
- package/dist/es/Message-DCNnTUje.js +0 -123
- package/dist/es/Notification-CBzY5904.js +0 -58
- package/dist/es/Popconfirm-DF6d2ORS.js +0 -23
- package/dist/es/Tooltip-k6gKnMyt.js +0 -74
- package/dist/es/hooks-BaG7l8K5.js +0 -116
- package/dist/es/utils-bsCscZfS.js +0 -84
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/* Indicator Variables */
|
|
2
|
+
.px-indicator[data-v-84fa8f8b] {
|
|
3
|
+
--px-indicator-bg-color: var(--px-color-primary);
|
|
4
|
+
--px-indicator-border-color: var(--px-color-primary-dark);
|
|
5
|
+
--px-indicator-shadow-color: var(--px-color-primary-dark);
|
|
6
|
+
--px-indicator-dot-size: 10px;
|
|
7
|
+
--px-indicator-offset-x: 0px;
|
|
8
|
+
--px-indicator-offset-y: 0px;
|
|
9
|
+
}
|
|
10
|
+
/* Base Container */
|
|
11
|
+
.px-indicator[data-v-84fa8f8b] {
|
|
12
|
+
position: relative;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
width: fit-content;
|
|
15
|
+
}
|
|
16
|
+
.px-indicator.is-inline[data-v-84fa8f8b] {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
}
|
|
19
|
+
/* Indicator Item — absolutely positioned overlay */
|
|
20
|
+
.px-indicator__item[data-v-84fa8f8b] {
|
|
21
|
+
position: absolute;
|
|
22
|
+
z-index: 1;
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
pointer-events: auto;
|
|
28
|
+
transition: none;
|
|
29
|
+
}
|
|
30
|
+
/* ─── Shared 9-position grid for item & ping ─── */
|
|
31
|
+
.px-indicator__item--top-start[data-v-84fa8f8b],
|
|
32
|
+
.px-indicator__item--top-center[data-v-84fa8f8b],
|
|
33
|
+
.px-indicator__item--top-end[data-v-84fa8f8b],
|
|
34
|
+
.px-indicator__ping--top-start[data-v-84fa8f8b],
|
|
35
|
+
.px-indicator__ping--top-center[data-v-84fa8f8b],
|
|
36
|
+
.px-indicator__ping--top-end[data-v-84fa8f8b] {
|
|
37
|
+
top: 0;
|
|
38
|
+
--px-indicator-ty: -50%;
|
|
39
|
+
}
|
|
40
|
+
.px-indicator__item--middle-start[data-v-84fa8f8b],
|
|
41
|
+
.px-indicator__item--middle-center[data-v-84fa8f8b],
|
|
42
|
+
.px-indicator__item--middle-end[data-v-84fa8f8b],
|
|
43
|
+
.px-indicator__ping--middle-start[data-v-84fa8f8b],
|
|
44
|
+
.px-indicator__ping--middle-center[data-v-84fa8f8b],
|
|
45
|
+
.px-indicator__ping--middle-end[data-v-84fa8f8b] {
|
|
46
|
+
top: 50%;
|
|
47
|
+
--px-indicator-ty: -50%;
|
|
48
|
+
}
|
|
49
|
+
.px-indicator__item--bottom-start[data-v-84fa8f8b],
|
|
50
|
+
.px-indicator__item--bottom-center[data-v-84fa8f8b],
|
|
51
|
+
.px-indicator__item--bottom-end[data-v-84fa8f8b],
|
|
52
|
+
.px-indicator__ping--bottom-start[data-v-84fa8f8b],
|
|
53
|
+
.px-indicator__ping--bottom-center[data-v-84fa8f8b],
|
|
54
|
+
.px-indicator__ping--bottom-end[data-v-84fa8f8b] {
|
|
55
|
+
bottom: 0;
|
|
56
|
+
--px-indicator-ty: 50%;
|
|
57
|
+
}
|
|
58
|
+
.px-indicator__item--top-start[data-v-84fa8f8b],
|
|
59
|
+
.px-indicator__item--middle-start[data-v-84fa8f8b],
|
|
60
|
+
.px-indicator__item--bottom-start[data-v-84fa8f8b],
|
|
61
|
+
.px-indicator__ping--top-start[data-v-84fa8f8b],
|
|
62
|
+
.px-indicator__ping--middle-start[data-v-84fa8f8b],
|
|
63
|
+
.px-indicator__ping--bottom-start[data-v-84fa8f8b] {
|
|
64
|
+
left: 0;
|
|
65
|
+
--px-indicator-tx: -50%;
|
|
66
|
+
}
|
|
67
|
+
.px-indicator__item--top-center[data-v-84fa8f8b],
|
|
68
|
+
.px-indicator__item--middle-center[data-v-84fa8f8b],
|
|
69
|
+
.px-indicator__item--bottom-center[data-v-84fa8f8b],
|
|
70
|
+
.px-indicator__ping--top-center[data-v-84fa8f8b],
|
|
71
|
+
.px-indicator__ping--middle-center[data-v-84fa8f8b],
|
|
72
|
+
.px-indicator__ping--bottom-center[data-v-84fa8f8b] {
|
|
73
|
+
left: 50%;
|
|
74
|
+
--px-indicator-tx: -50%;
|
|
75
|
+
}
|
|
76
|
+
.px-indicator__item--top-end[data-v-84fa8f8b],
|
|
77
|
+
.px-indicator__item--middle-end[data-v-84fa8f8b],
|
|
78
|
+
.px-indicator__item--bottom-end[data-v-84fa8f8b],
|
|
79
|
+
.px-indicator__ping--top-end[data-v-84fa8f8b],
|
|
80
|
+
.px-indicator__ping--middle-end[data-v-84fa8f8b],
|
|
81
|
+
.px-indicator__ping--bottom-end[data-v-84fa8f8b] {
|
|
82
|
+
right: 0;
|
|
83
|
+
--px-indicator-tx: 50%;
|
|
84
|
+
}
|
|
85
|
+
/* Apply transform with offset */
|
|
86
|
+
.px-indicator__item[data-v-84fa8f8b],
|
|
87
|
+
.px-indicator__ping[data-v-84fa8f8b] {
|
|
88
|
+
transform: translate(
|
|
89
|
+
calc(var(--px-indicator-tx, 0%) + var(--px-indicator-offset-x)),
|
|
90
|
+
calc(var(--px-indicator-ty, 0%) + var(--px-indicator-offset-y))
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
/* ─── Shared pixel staircase clip-path ─── */
|
|
94
|
+
.px-indicator__item.is-dot[data-v-84fa8f8b],
|
|
95
|
+
.px-indicator__ping[data-v-84fa8f8b] {
|
|
96
|
+
width: var(--px-indicator-dot-size);
|
|
97
|
+
height: var(--px-indicator-dot-size);
|
|
98
|
+
background: var(--px-indicator-bg-color);
|
|
99
|
+
clip-path: polygon(
|
|
100
|
+
0 2px, 2px 2px, 2px 0,
|
|
101
|
+
calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px,
|
|
102
|
+
100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%,
|
|
103
|
+
2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px)
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
/* ─── Dot mode ─── */
|
|
107
|
+
.px-indicator__item.is-dot[data-v-84fa8f8b] {
|
|
108
|
+
border: none;
|
|
109
|
+
filter: drop-shadow(1px 1px 0px var(--px-indicator-shadow-color));
|
|
110
|
+
}
|
|
111
|
+
/* ─── Processing ping animation ─── */
|
|
112
|
+
.px-indicator__ping[data-v-84fa8f8b] {
|
|
113
|
+
position: absolute;
|
|
114
|
+
z-index: 0;
|
|
115
|
+
opacity: 0.75;
|
|
116
|
+
pointer-events: none;
|
|
117
|
+
animation: px-indicator-ping-84fa8f8b 1.5s steps(4, end) infinite;
|
|
118
|
+
}
|
|
119
|
+
@keyframes px-indicator-ping-84fa8f8b {
|
|
120
|
+
0% {
|
|
121
|
+
scale: 1;
|
|
122
|
+
opacity: 0.75;
|
|
123
|
+
}
|
|
124
|
+
75%, 100% {
|
|
125
|
+
scale: 2;
|
|
126
|
+
opacity: 0;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
/* ─── Type color variants ─── */
|
|
130
|
+
.px-indicator__item--primary[data-v-84fa8f8b],
|
|
131
|
+
.px-indicator__ping--primary[data-v-84fa8f8b] {
|
|
132
|
+
--px-indicator-bg-color: var(--px-color-primary);
|
|
133
|
+
--px-indicator-border-color: var(--px-color-primary-dark);
|
|
134
|
+
--px-indicator-shadow-color: var(--px-color-primary-dark);
|
|
135
|
+
}
|
|
136
|
+
.px-indicator__item--success[data-v-84fa8f8b],
|
|
137
|
+
.px-indicator__ping--success[data-v-84fa8f8b] {
|
|
138
|
+
--px-indicator-bg-color: var(--px-color-success);
|
|
139
|
+
--px-indicator-border-color: var(--px-color-success-dark);
|
|
140
|
+
--px-indicator-shadow-color: var(--px-color-success-dark);
|
|
141
|
+
}
|
|
142
|
+
.px-indicator__item--info[data-v-84fa8f8b],
|
|
143
|
+
.px-indicator__ping--info[data-v-84fa8f8b] {
|
|
144
|
+
--px-indicator-bg-color: var(--px-color-info);
|
|
145
|
+
--px-indicator-border-color: var(--px-color-info-dark);
|
|
146
|
+
--px-indicator-shadow-color: var(--px-color-info-dark);
|
|
147
|
+
}
|
|
148
|
+
.px-indicator__item--warning[data-v-84fa8f8b],
|
|
149
|
+
.px-indicator__ping--warning[data-v-84fa8f8b] {
|
|
150
|
+
--px-indicator-bg-color: var(--px-color-warning);
|
|
151
|
+
--px-indicator-border-color: var(--px-color-warning-dark);
|
|
152
|
+
--px-indicator-shadow-color: var(--px-color-warning-dark);
|
|
153
|
+
}
|
|
154
|
+
.px-indicator__item--danger[data-v-84fa8f8b],
|
|
155
|
+
.px-indicator__ping--danger[data-v-84fa8f8b] {
|
|
156
|
+
--px-indicator-bg-color: var(--px-color-danger);
|
|
157
|
+
--px-indicator-border-color: var(--px-color-danger-dark);
|
|
158
|
+
--px-indicator-shadow-color: var(--px-color-danger-dark);
|
|
159
|
+
}
|