@sigx/zero-daisyui 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.
Files changed (47) hide show
  1. package/dist/audit.json +3813 -2
  2. package/dist/components.d.ts +28 -1
  3. package/dist/components.js +3 -0
  4. package/dist/css/components/breadcrumbs.css +30 -0
  5. package/dist/css/components/card.css +26 -0
  6. package/dist/css/components/chat-log.css +172 -0
  7. package/dist/css/components/divider.css +68 -3
  8. package/dist/css/components/hover-card.css +174 -0
  9. package/dist/css/components/menu.css +7 -0
  10. package/dist/css/components/menubar.css +75 -0
  11. package/dist/css/components/pagination.css +83 -0
  12. package/dist/css/components/steps.css +103 -0
  13. package/dist/css/components/timeline.css +14 -0
  14. package/dist/css/components/toast.css +65 -0
  15. package/dist/css/components/tree-view.css +118 -0
  16. package/dist/css/index.css +951 -22
  17. package/dist/lynx/components/accordion.css +3 -1
  18. package/dist/lynx/components/breadcrumbs.css +44 -0
  19. package/dist/lynx/components/button.css +71 -12
  20. package/dist/lynx/components/card.css +9 -0
  21. package/dist/lynx/components/chat-log.css +147 -0
  22. package/dist/lynx/components/dialog.css +9 -3
  23. package/dist/lynx/components/divider.css +8 -17
  24. package/dist/lynx/components/hover-card.css +211 -0
  25. package/dist/lynx/components/menu.css +7 -0
  26. package/dist/lynx/components/menubar.css +199 -0
  27. package/dist/lynx/components/pagination.css +107 -0
  28. package/dist/lynx/components/popover.css +7 -2
  29. package/dist/lynx/components/select.css +40 -3
  30. package/dist/lynx/components/slider.css +3 -2
  31. package/dist/lynx/components/steps.css +103 -0
  32. package/dist/lynx/components/switch.css +2 -1
  33. package/dist/lynx/components/tabs.css +7 -1
  34. package/dist/lynx/components/timeline.css +32 -0
  35. package/dist/lynx/components/toast.css +70 -2
  36. package/dist/lynx/components/tree-view.css +28 -0
  37. package/dist/lynx/index.css +1194 -128
  38. package/dist/lynx/manifest.json +85 -4
  39. package/dist/manifest.json +83 -2
  40. package/dist/recipes.d.ts +19 -1
  41. package/dist/recipes.d.ts.map +1 -1
  42. package/dist/recipes.js +741 -98
  43. package/dist/recipes.js.map +1 -1
  44. package/dist/register.d.ts +27 -0
  45. package/dist/report.json +1078 -159
  46. package/package.json +4 -4
  47. package/src/recipes.ts +763 -98
@@ -183,6 +183,38 @@
183
183
  flex-basis: 100%;
184
184
  }
185
185
 
186
+ .zx-timeline__title {
187
+ display: block;
188
+ margin: 0;
189
+ font-weight: var(--weight-semibold);
190
+ line-height: var(--leading-tight);
191
+ }
192
+
193
+ .zx-timeline__description {
194
+ display: block;
195
+ margin: 0;
196
+ }
197
+
198
+ .zx-root .zx-timeline__description {
199
+ color: #18181bb3;
200
+ }
201
+
202
+ .zx-root.zx-theme-dark .zx-timeline__description {
203
+ color: #ecf9ffb3;
204
+ }
205
+
206
+ .zx-root.zx-theme-dim .zx-timeline__description {
207
+ color: #b2ccd6b3;
208
+ }
209
+
210
+ .zx-root.zx-theme-nord .zx-timeline__description {
211
+ color: #2e3440b3;
212
+ }
213
+
214
+ .zx-root.zx-theme-sunset .zx-timeline__description {
215
+ color: #9fb9d0b3;
216
+ }
217
+
186
218
  .zx-timeline__marker.zx-a-color-primary {
187
219
  --timeline-accent: var(--color-primary);
188
220
  --timeline-ring: var(--color-primary-content);
@@ -2,6 +2,7 @@
2
2
  --toast-bg: var(--color-base-200);
3
3
  --toast-ink: var(--color-base-content);
4
4
  --toast-from: 8px;
5
+ --toast-mark: 1rem;
5
6
  }
6
7
 
7
8
  .zx-toast__viewport {
@@ -102,6 +103,68 @@
102
103
  --toast-from: -8px;
103
104
  }
104
105
 
106
+ .zx-toast__indicator {
107
+ grid-column: 1;
108
+ grid-row: 1 / span 2;
109
+ inline-size: var(--toast-mark);
110
+ block-size: var(--toast-mark);
111
+ box-sizing: border-box;
112
+ }
113
+
114
+ .zx-toast__indicator.zx-s-loading {
115
+ border-radius: 50%;
116
+ border-block-start-color: var(--toast-ink);
117
+ animation: zero-daisyui-toast-spin 0.75s linear infinite;
118
+ }
119
+
120
+ .zx-toast__indicator.zx-s-complete {
121
+ clip-path: polygon(15.1% 41.3%, 1% 55%, 37.6% 92.8%, 99% 19.8%, 83.9% 7.2%, 36.6% 63.5%);
122
+ }
123
+
124
+ .zx-root .zx-toast__indicator.zx-s-complete {
125
+ background: #2a7858;
126
+ }
127
+
128
+ .zx-root.zx-theme-dark .zx-toast__indicator.zx-s-complete {
129
+ background: #92e5c2;
130
+ }
131
+
132
+ .zx-root.zx-theme-dim .zx-toast__indicator.zx-s-complete {
133
+ background: #8ee0c9;
134
+ }
135
+
136
+ .zx-root.zx-theme-nord .zx-toast__indicator.zx-s-complete {
137
+ background: #6b7d6a;
138
+ }
139
+
140
+ .zx-root.zx-theme-sunset .zx-toast__indicator.zx-s-complete {
141
+ background: #a6cebe;
142
+ }
143
+
144
+ .zx-toast__indicator.zx-s-error {
145
+ clip-path: polygon(20% 8%, 50% 38%, 80% 8%, 92% 20%, 62% 50%, 92% 80%, 80% 92%, 50% 62%, 20% 92%, 8% 80%, 38% 50%, 8% 20%);
146
+ }
147
+
148
+ .zx-root .zx-toast__indicator.zx-s-error {
149
+ background: #8f424e;
150
+ }
151
+
152
+ .zx-root.zx-theme-dark .zx-toast__indicator.zx-s-error {
153
+ background: #ffabb6;
154
+ }
155
+
156
+ .zx-root.zx-theme-dim .zx-toast__indicator.zx-s-error {
157
+ background: #e0bdb6;
158
+ }
159
+
160
+ .zx-root.zx-theme-nord .zx-toast__indicator.zx-s-error {
161
+ background: #7c4e57;
162
+ }
163
+
164
+ .zx-root.zx-theme-sunset .zx-toast__indicator.zx-s-error {
165
+ background: #d6bbc6;
166
+ }
167
+
105
168
  .zx-toast__title {
106
169
  grid-column: 1;
107
170
  font-weight: var(--weight-semibold);
@@ -136,8 +199,9 @@
136
199
  }
137
200
 
138
201
  .zx-toast__action.zx-f-focus-visible {
139
- outline: 2px solid var(--color-base-content);
202
+ outline: none;
140
203
  outline-offset: 2px;
204
+ box-shadow: 0 0 0 2px var(--toast-bg), 0 0 0 4px var(--color-base-content);
141
205
  }
142
206
 
143
207
  .zx-toast__close {
@@ -161,8 +225,9 @@
161
225
  }
162
226
 
163
227
  .zx-toast__close.zx-f-focus-visible {
164
- outline: 2px solid var(--color-base-content);
228
+ outline: none;
165
229
  outline-offset: 2px;
230
+ box-shadow: 0 0 0 2px var(--toast-bg), 0 0 0 4px var(--color-base-content);
166
231
  }
167
232
 
168
233
  .zx-toast__root.zx-a-color-primary {
@@ -232,3 +297,6 @@
232
297
  .zx-toast__description.zx-a-size-xl {
233
298
  font-size: var(--text-md);
234
299
  }
300
+ @keyframes zero-daisyui-toast-spin {
301
+ to { transform: rotate(360deg); }
302
+ }
@@ -2,6 +2,8 @@
2
2
  --tree-accent: var(--color-primary);
3
3
  --tree-text: var(--text-sm);
4
4
  --tree-on-accent: var(--color-primary-content);
5
+ --tree-check: var(--tree-accent);
6
+ --tree-on-check: var(--tree-on-accent);
5
7
  }
6
8
 
7
9
  .zx-tree-view__root {
@@ -102,6 +104,32 @@
102
104
  transform: rotate(45deg);
103
105
  }
104
106
 
107
+ .zx-tree-view__node-checkbox {
108
+ display: inline-block;
109
+ position: relative;
110
+ flex-shrink: 0;
111
+ box-sizing: border-box;
112
+ width: 1.25em;
113
+ height: 1.25em;
114
+ border: var(--border) solid var(--tree-check);
115
+ border-radius: var(--radius-selector);
116
+ box-shadow: 0 1px var(--depth-shade) inset;
117
+ cursor: pointer;
118
+ transition: background-color var(--duration-normal) var(--ease-standard);
119
+ }
120
+
121
+ .zx-tree-view__node-checkbox.zx-s-checked {
122
+ background-color: var(--tree-check);
123
+ }
124
+
125
+ .zx-tree-view__node-checkbox.zx-s-indeterminate {
126
+ background-color: var(--tree-check);
127
+ }
128
+
129
+ .zx-tree-view__node-checkbox.zx-f-disabled {
130
+ cursor: not-allowed;
131
+ }
132
+
105
133
  .zx-tree-view__branch-content {
106
134
  display: flex;
107
135
  flex-direction: column;