@aleph-alpha/ui-library 2.5.1 → 2.5.2
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/config.d.ts +33 -2
- package/config.js +99 -70
- package/dist/system/components/core/calendar/Calendar.vue.d.ts +247 -3
- package/dist/system/components/core/popover/PopoverContent.vue.d.ts +1 -1
- package/dist/system/components/core/range-calendar/RangeCalendar.vue.d.ts +139 -2
- package/dist/system/lib.js +3160 -3125
- package/package.json +1 -1
- package/src/components/UiCodeBlock/UiCodeBlock.vue +6 -1
- package/src/components/UiField/UiField.stories.ts +15 -9
- package/src/components/UiFileType/UiFileType.stories.ts +59 -0
- package/src/components/UiFileType/UiFileType.vue +1 -3
- package/src/components/UiFileUploadBox/UiFileUploadBox.vue +58 -56
- package/src/components/UiListbox/UiListbox.stories.ts +1 -1
- package/src/components/UiSelect/UiSelectTrigger.vue +8 -2
- package/src/components/UiSnackbar/UiSnackbar.stories.ts +1 -0
- package/src/components/UiTable/UiTable.stories.ts +6 -2
- package/src/components/UiTabs/UiTabs.stories.ts +2 -2
- package/src/components/UiTagsInput/UiTagsInput.stories.ts +12 -2
- package/src/components/core/calendar/Calendar.vue +17 -1
- package/src/components/core/checkbox/Checkbox.vue +1 -0
- package/src/components/core/listbox/ListboxContent.vue +1 -0
- package/src/components/core/native-select/NativeSelect.vue +6 -0
- package/src/components/core/range-calendar/RangeCalendar.vue +19 -0
- package/src/components/core/slider/Slider.vue +1 -0
- package/src/directives/vHover.stories.ts +16 -12
- package/src/patterns/UiDataTable/UiDataTable.stories.ts +2 -2
- package/src/theme/Background.stories.ts +16 -0
- package/src/theme/Flex.stories.ts +1 -1
- package/src/theme/Theme.stories.ts +3 -3
- package/tokens.json +4273 -1152
|
@@ -1861,7 +1861,7 @@ const cellFormattingColumns: ColumnDef<Payment>[] = [
|
|
|
1861
1861
|
return h(
|
|
1862
1862
|
'div',
|
|
1863
1863
|
{
|
|
1864
|
-
class: `text-right font-medium ${amount > 500 ? 'text-green-
|
|
1864
|
+
class: `text-right font-medium ${amount > 500 ? 'text-green-800' : 'text-muted-foreground'}`,
|
|
1865
1865
|
},
|
|
1866
1866
|
formatted,
|
|
1867
1867
|
);
|
|
@@ -1927,7 +1927,7 @@ const columns: ColumnDef<Payment>[] = [
|
|
|
1927
1927
|
currency: 'EUR',
|
|
1928
1928
|
}).format(amount);
|
|
1929
1929
|
return h('div', {
|
|
1930
|
-
class: \`text-right font-medium \${amount > 500 ? 'text-green-
|
|
1930
|
+
class: \`text-right font-medium \${amount > 500 ? 'text-green-800' : 'text-muted-foreground'}\`,
|
|
1931
1931
|
}, formatted);
|
|
1932
1932
|
},
|
|
1933
1933
|
},
|
|
@@ -267,6 +267,22 @@ export const Accent: Story = {
|
|
|
267
267
|
<code class="copy-btn label-12-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('bg-background-accent-soft', this)">bg-background-accent-soft</code>
|
|
268
268
|
</div>
|
|
269
269
|
</div>
|
|
270
|
+
|
|
271
|
+
<div class="flex flex-col items-center gap-1.5">
|
|
272
|
+
<div class="w-16 h-16 rounded-md bg-background-accent-pink border border-border-surface-default"></div>
|
|
273
|
+
<div class="text-center">
|
|
274
|
+
<span class="label-12-medium text-content-on-surface-primary block">pink</span>
|
|
275
|
+
<code class="copy-btn label-12-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('bg-background-accent-pink', this)">bg-background-accent-pink</code>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
|
|
279
|
+
<div class="flex flex-col items-center gap-1.5">
|
|
280
|
+
<div class="w-16 h-16 rounded-md bg-background-accent-yellow border border-border-surface-default"></div>
|
|
281
|
+
<div class="text-center">
|
|
282
|
+
<span class="label-12-medium text-content-on-surface-primary block">yellow</span>
|
|
283
|
+
<code class="copy-btn label-12-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('bg-background-accent-yellow', this)">bg-background-accent-yellow</code>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
270
286
|
</div>
|
|
271
287
|
</div>
|
|
272
288
|
`,
|
|
@@ -287,7 +287,7 @@ export const Wrap: Story = {
|
|
|
287
287
|
<div class="gap-y-8">
|
|
288
288
|
<div>
|
|
289
289
|
<code class="copy-btn label-12-regular text-content-on-surface-muted block mb-2 px-1 py-0.5 rounded w-fit" onclick="copyToClipboard('flex flex-nowrap', this)">flex flex-nowrap</code>
|
|
290
|
-
<div class="flex flex-nowrap gap-2 p-4 bg-background-surface-muted rounded-md overflow-x-auto max-w-md">
|
|
290
|
+
<div class="flex flex-nowrap gap-2 p-4 bg-background-surface-muted rounded-md overflow-x-auto max-w-md" tabindex="0" aria-label="No-wrap flex example">
|
|
291
291
|
<div class="w-24 h-16 flex-shrink-0 bg-background-accent-default rounded flex items-center justify-center text-content-on-accent-default">1</div>
|
|
292
292
|
<div class="w-24 h-16 flex-shrink-0 bg-background-accent-default rounded flex items-center justify-center text-content-on-accent-default">2</div>
|
|
293
293
|
<div class="w-24 h-16 flex-shrink-0 bg-background-accent-default rounded flex items-center justify-center text-content-on-accent-default">3</div>
|
|
@@ -254,7 +254,7 @@ export const OnStatus: Story = {
|
|
|
254
254
|
|
|
255
255
|
<div class="flex flex-wrap gap-6">
|
|
256
256
|
<div class="flex flex-col items-center gap-1.5">
|
|
257
|
-
<div class="w-16 h-16 rounded-md bg-background-
|
|
257
|
+
<div class="w-16 h-16 rounded-md bg-background-status-success border border-border-surface-default flex items-center justify-center">
|
|
258
258
|
<span class="text-content-on-status-success heading-m">Aa</span>
|
|
259
259
|
</div>
|
|
260
260
|
<div class="text-center">
|
|
@@ -264,7 +264,7 @@ export const OnStatus: Story = {
|
|
|
264
264
|
</div>
|
|
265
265
|
|
|
266
266
|
<div class="flex flex-col items-center gap-1.5">
|
|
267
|
-
<div class="w-16 h-16 rounded-md bg-background-
|
|
267
|
+
<div class="w-16 h-16 rounded-md bg-background-status-warning border border-border-surface-default flex items-center justify-center">
|
|
268
268
|
<span class="text-content-on-status-warning heading-m">Aa</span>
|
|
269
269
|
</div>
|
|
270
270
|
<div class="text-center">
|
|
@@ -274,7 +274,7 @@ export const OnStatus: Story = {
|
|
|
274
274
|
</div>
|
|
275
275
|
|
|
276
276
|
<div class="flex flex-col items-center gap-1.5">
|
|
277
|
-
<div class="w-16 h-16 rounded-md bg-background-
|
|
277
|
+
<div class="w-16 h-16 rounded-md bg-background-status-error border border-border-surface-default flex items-center justify-center">
|
|
278
278
|
<span class="text-content-on-status-error heading-m">Aa</span>
|
|
279
279
|
</div>
|
|
280
280
|
<div class="text-center">
|