@giddaa-housing/ui 0.1.0 → 1.1.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 +18 -6
- package/css/base.css +37 -0
- package/css/components.css +135 -0
- package/css/generated/shared.css +1 -0
- package/css/giddaa.css +402 -0
- package/css/preset.css +77 -0
- package/css/styles.css +2 -0
- package/css/theme.css +255 -0
- package/dist/accordion.d.ts +9 -10
- package/dist/accordion.js +41 -117
- package/dist/activity-timeline.d.ts +29 -0
- package/dist/activity-timeline.js +97 -0
- package/dist/alert.d.ts +8 -9
- package/dist/alert.js +53 -141
- package/dist/auth-layout.d.ts +23 -0
- package/dist/auth-layout.js +153 -0
- package/dist/avatar.d.ts +6 -6
- package/dist/avatar.js +40 -142
- package/dist/badge.d.ts +12 -13
- package/dist/badge.js +66 -114
- package/dist/bar-chart.d.ts +136 -114
- package/dist/bar-chart.js +244 -297
- package/dist/breadcrumb.d.ts +5 -5
- package/dist/breadcrumb.js +56 -148
- package/dist/bullet-chart.d.ts +33 -33
- package/dist/bullet-chart.js +123 -183
- package/dist/button-BZIeyUw6.d.ts +17 -0
- package/dist/button-group.d.ts +13 -16
- package/dist/button-group.js +38 -163
- package/dist/button.d.ts +2 -19
- package/dist/button.js +90 -142
- package/dist/calendar.d.ts +6 -6
- package/dist/calendar.js +134 -288
- package/dist/card.d.ts +14 -16
- package/dist/card.js +58 -174
- package/dist/carousel.d.ts +34 -35
- package/dist/carousel.js +319 -378
- package/dist/chart.d.ts +58 -59
- package/dist/chart.js +350 -466
- package/dist/checkbox.d.ts +10 -12
- package/dist/checkbox.js +84 -84
- package/dist/cn-BI_4DMBf.js +23 -0
- package/dist/collapsible.d.ts +7 -8
- package/dist/collapsible.js +23 -77
- package/dist/combobox.d.ts +10 -10
- package/dist/combobox.js +220 -696
- package/dist/cta.d.ts +64 -0
- package/dist/cta.js +192 -0
- package/dist/currency-selector.d.ts +41 -0
- package/dist/currency-selector.js +114 -0
- package/dist/data-table.d.ts +164 -0
- package/dist/data-table.js +673 -0
- package/dist/date-picker.d.ts +27 -20
- package/dist/date-picker.js +122 -520
- package/dist/details-card.d.ts +19 -0
- package/dist/details-card.js +118 -0
- package/dist/dialog.d.ts +13 -14
- package/dist/dialog.js +117 -320
- package/dist/dropdown-menu.d.ts +14 -14
- package/dist/dropdown-menu.js +170 -365
- package/dist/dropzone.d.ts +55 -55
- package/dist/dropzone.js +328 -467
- package/dist/editorial-card.d.ts +27 -0
- package/dist/editorial-card.js +144 -0
- package/dist/empty-state.d.ts +8 -9
- package/dist/empty-state.js +48 -135
- package/dist/field.d.ts +23 -25
- package/dist/field.js +111 -327
- package/dist/filter.d.ts +118 -0
- package/dist/filter.js +775 -0
- package/dist/footer.d.ts +40 -0
- package/dist/footer.js +227 -0
- package/dist/funnel-chart.d.ts +38 -41
- package/dist/funnel-chart.js +168 -563
- package/dist/gallery-indicator.d.ts +17 -0
- package/dist/gallery-indicator.js +75 -0
- package/dist/heatmap-chart.d.ts +95 -0
- package/dist/heatmap-chart.js +197 -0
- package/dist/infotip.d.ts +10 -0
- package/dist/infotip.js +40 -0
- package/dist/input-CfoEJ8A6.d.ts +12 -0
- package/dist/input-group.d.ts +16 -19
- package/dist/input-group.js +92 -372
- package/dist/input-size-context-C-SFx9sx.d.ts +10 -0
- package/dist/input-size-context.d.ts +2 -11
- package/dist/input-size-context.js +14 -20
- package/dist/input.d.ts +2 -13
- package/dist/input.js +23 -79
- package/dist/item.d.ts +7 -8
- package/dist/item.js +22 -89
- package/dist/kpi-card.d.ts +18 -20
- package/dist/kpi-card.js +84 -232
- package/dist/label.d.ts +6 -6
- package/dist/label.js +39 -66
- package/dist/line-chart.d.ts +88 -89
- package/dist/line-chart.js +143 -262
- package/dist/logo.d.ts +4 -4
- package/dist/logo.js +87 -141
- package/dist/map-indicator.d.ts +13 -0
- package/dist/map-indicator.js +83 -0
- package/dist/match.d.ts +15 -0
- package/dist/match.js +68 -0
- package/dist/media-gallery-hero.d.ts +58 -0
- package/dist/media-gallery-hero.js +201 -0
- package/dist/media-player.d.ts +60 -0
- package/dist/media-player.js +919 -0
- package/dist/multi-step-form.d.ts +56 -0
- package/dist/multi-step-form.js +342 -0
- package/dist/number-input.d.ts +34 -34
- package/dist/number-input.js +62 -413
- package/dist/page-header.d.ts +10 -11
- package/dist/page-header.js +34 -107
- package/dist/pagination.d.ts +17 -20
- package/dist/pagination.js +132 -341
- package/dist/password-input.d.ts +5 -12
- package/dist/password-input.js +32 -354
- package/dist/phone-input.d.ts +19 -19
- package/dist/phone-input.js +232 -561
- package/dist/photo-gallery.d.ts +20 -20
- package/dist/photo-gallery.js +314 -746
- package/dist/picker-lzgmsNfG.js +32 -0
- package/dist/pie-chart.d.ts +60 -60
- package/dist/pie-chart.js +141 -184
- package/dist/popover.d.ts +9 -9
- package/dist/popover.js +60 -156
- package/dist/price-tag.d.ts +34 -0
- package/dist/price-tag.js +118 -0
- package/dist/progress.d.ts +18 -16
- package/dist/progress.js +156 -300
- package/dist/property-listing-card.d.ts +29 -0
- package/dist/property-listing-card.js +117 -0
- package/dist/radar-chart.d.ts +108 -0
- package/dist/radar-chart.js +172 -0
- package/dist/radio-group.d.ts +11 -13
- package/dist/radio-group.js +47 -96
- package/dist/review-block.d.ts +18 -0
- package/dist/review-block.js +154 -0
- package/dist/rich-text-editor.d.ts +30 -14
- package/dist/rich-text-editor.js +594 -979
- package/dist/scatter-chart.d.ts +140 -0
- package/dist/scatter-chart.js +248 -0
- package/dist/search-input.d.ts +8 -15
- package/dist/search-input.js +58 -408
- package/dist/select.d.ts +8 -8
- package/dist/select.js +131 -291
- package/dist/separator.d.ts +8 -9
- package/dist/separator.js +31 -70
- package/dist/sheet.d.ts +11 -11
- package/dist/sheet.js +84 -262
- package/dist/sidebar.d.ts +32 -37
- package/dist/sidebar.js +380 -1055
- package/dist/size-context-D4mYvcg8.d.ts +10 -0
- package/dist/size-context.d.ts +2 -11
- package/dist/size-context.js +14 -18
- package/dist/skeleton.d.ts +4 -5
- package/dist/skeleton.js +9 -45
- package/dist/slider.d.ts +27 -0
- package/dist/slider.js +81 -0
- package/dist/sparkline.d.ts +43 -46
- package/dist/sparkline.js +223 -561
- package/dist/stepper.d.ts +23 -24
- package/dist/stepper.js +149 -276
- package/dist/styles.css +9995 -2
- package/dist/switch.d.ts +10 -12
- package/dist/switch.js +49 -106
- package/dist/table-card.d.ts +35 -0
- package/dist/table-card.js +125 -0
- package/dist/table.d.ts +18 -14
- package/dist/table.js +114 -182
- package/dist/tabs.d.ts +23 -15
- package/dist/tabs.js +62 -149
- package/dist/tag.d.ts +22 -23
- package/dist/tag.js +104 -156
- package/dist/testimonial-block.d.ts +33 -0
- package/dist/testimonial-block.js +208 -0
- package/dist/textarea-IS_D8pXf.d.ts +11 -0
- package/dist/textarea.d.ts +2 -12
- package/dist/textarea.js +20 -74
- package/dist/time-picker.d.ts +11 -11
- package/dist/time-picker.js +247 -464
- package/dist/toast.d.ts +16 -18
- package/dist/toast.js +154 -310
- package/dist/tooltip.d.ts +9 -10
- package/dist/tooltip.js +33 -91
- package/dist/tree-map.d.ts +54 -57
- package/dist/tree-map.js +231 -646
- package/dist/use-uncontrolled-CLfM1XbB.js +21 -0
- package/dist/waterfall-chart.d.ts +126 -0
- package/dist/waterfall-chart.js +480 -0
- package/package.json +123 -34
- package/dist/accordion.js.map +0 -1
- package/dist/alert.js.map +0 -1
- package/dist/avatar.js.map +0 -1
- package/dist/badge.js.map +0 -1
- package/dist/bar-chart.js.map +0 -1
- package/dist/base.css +0 -32
- package/dist/breadcrumb.js.map +0 -1
- package/dist/bullet-chart.js.map +0 -1
- package/dist/button-group.js.map +0 -1
- package/dist/button.js.map +0 -1
- package/dist/calendar.js.map +0 -1
- package/dist/card.js.map +0 -1
- package/dist/carousel.js.map +0 -1
- package/dist/chart.js.map +0 -1
- package/dist/checkbox.js.map +0 -1
- package/dist/collapsible.js.map +0 -1
- package/dist/combobox.js.map +0 -1
- package/dist/date-picker.js.map +0 -1
- package/dist/dialog.js.map +0 -1
- package/dist/dropdown-menu.js.map +0 -1
- package/dist/dropzone.js.map +0 -1
- package/dist/empty-state.js.map +0 -1
- package/dist/field.js.map +0 -1
- package/dist/files/red-hat-display-latin-300-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-300-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-300-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-300-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-400-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-400-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-400-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-400-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-500-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-500-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-500-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-500-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-600-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-600-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-600-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-600-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-700-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-700-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-700-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-700-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-800-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-800-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-800-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-800-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-900-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-900-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-900-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-900-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-300-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-300-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-300-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-400-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-400-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-400-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-500-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-500-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-500-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-600-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-600-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-600-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-700-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-700-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-700-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-800-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-800-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-800-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-800-normal.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-900-italic.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-900-italic.woff2 +0 -0
- package/dist/files/red-hat-display-latin-ext-900-normal.woff +0 -0
- package/dist/files/red-hat-display-latin-ext-900-normal.woff2 +0 -0
- package/dist/funnel-chart.js.map +0 -1
- package/dist/index.d.ts +0 -87
- package/dist/index.js +0 -10448
- package/dist/index.js.map +0 -1
- package/dist/input-group.js.map +0 -1
- package/dist/input-size-context.js.map +0 -1
- package/dist/input.js.map +0 -1
- package/dist/item.js.map +0 -1
- package/dist/kpi-card.js.map +0 -1
- package/dist/label.js.map +0 -1
- package/dist/line-chart.js.map +0 -1
- package/dist/logo.js.map +0 -1
- package/dist/number-input.js.map +0 -1
- package/dist/page-header.js.map +0 -1
- package/dist/pagination.js.map +0 -1
- package/dist/password-input.js.map +0 -1
- package/dist/phone-input.js.map +0 -1
- package/dist/photo-gallery.js.map +0 -1
- package/dist/pie-chart.js.map +0 -1
- package/dist/popover.js.map +0 -1
- package/dist/progress.js.map +0 -1
- package/dist/radio-group.js.map +0 -1
- package/dist/red-hat-display.css +0 -2
- package/dist/rich-text-editor.js.map +0 -1
- package/dist/search-input.js.map +0 -1
- package/dist/select.js.map +0 -1
- package/dist/separator.js.map +0 -1
- package/dist/sheet.js.map +0 -1
- package/dist/sidebar.js.map +0 -1
- package/dist/size-context.js.map +0 -1
- package/dist/skeleton.js.map +0 -1
- package/dist/sparkline.js.map +0 -1
- package/dist/stepper.js.map +0 -1
- package/dist/switch.js.map +0 -1
- package/dist/tab-list.d.ts +0 -38
- package/dist/tab-list.js +0 -394
- package/dist/tab-list.js.map +0 -1
- package/dist/table.js.map +0 -1
- package/dist/tabs.js.map +0 -1
- package/dist/tag.js.map +0 -1
- package/dist/textarea.js.map +0 -1
- package/dist/theme/giddaa.css +0 -2
- package/dist/time-picker.js.map +0 -1
- package/dist/toast.js.map +0 -1
- package/dist/tooltip.js.map +0 -1
- package/dist/tree-map.js.map +0 -1
package/css/theme.css
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
@theme static {
|
|
2
|
+
--font-sans:
|
|
3
|
+
ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
4
|
+
sans-serif;
|
|
5
|
+
|
|
6
|
+
--radius-sm: 0.25rem; /* 4px */
|
|
7
|
+
--radius-md: 0.5rem; /* 8px */
|
|
8
|
+
--radius-lg: 0.75rem; /* 12px */
|
|
9
|
+
--radius-xl: 1rem; /* 16px */
|
|
10
|
+
--radius-2xl: 1.5rem; /* 24px */
|
|
11
|
+
--radius-3xl: 2.5rem; /* 40px */
|
|
12
|
+
--radius-4xl: 5rem; /* 80px */
|
|
13
|
+
|
|
14
|
+
--spacing-gdt-xs: 0.25rem; /* 4px */
|
|
15
|
+
--spacing-gdt-sm: 0.5rem; /* 8px */
|
|
16
|
+
--spacing-gdt-md: 0.75rem; /* 12px */
|
|
17
|
+
--spacing-gdt-lg: 1rem; /* 16px */
|
|
18
|
+
--spacing-gdt-xl: 1.5rem; /* 24px */
|
|
19
|
+
--spacing-gdt-2xl: 2rem; /* 32px */
|
|
20
|
+
--spacing-gdt-3xl: 2.5rem; /* 40px */
|
|
21
|
+
--spacing-gdt-4xl: 3rem; /* 48px */
|
|
22
|
+
--spacing-gdt-5xl: 4rem; /* 64px */
|
|
23
|
+
--spacing-gdt-6xl: 5rem; /* 80px */
|
|
24
|
+
--spacing-gdt-7xl: 7.5rem; /* 120px */
|
|
25
|
+
|
|
26
|
+
--text-gdt-display: 3.75rem; /* 60px */
|
|
27
|
+
--text-gdt-display--line-height: 4.5rem; /* 72px */
|
|
28
|
+
--text-gdt-display--letter-spacing: -0.02em;
|
|
29
|
+
--text-gdt-display--font-weight: 800;
|
|
30
|
+
|
|
31
|
+
--text-gdt-h1: 2.5rem; /* 40px */
|
|
32
|
+
--text-gdt-h1--line-height: 3.75rem; /* 60px */
|
|
33
|
+
--text-gdt-h1--letter-spacing: -0.02em;
|
|
34
|
+
--text-gdt-h1--font-weight: 800;
|
|
35
|
+
|
|
36
|
+
--text-gdt-h2: 2rem; /* 32px */
|
|
37
|
+
--text-gdt-h2--line-height: 2.625rem; /* 42px */
|
|
38
|
+
--text-gdt-h2--letter-spacing: -0.02em;
|
|
39
|
+
--text-gdt-h2--font-weight: 800;
|
|
40
|
+
|
|
41
|
+
--text-gdt-h3: 1.5rem; /* 24px */
|
|
42
|
+
--text-gdt-h3--line-height: 2.125rem; /* 34px */
|
|
43
|
+
--text-gdt-h3--font-weight: 800;
|
|
44
|
+
|
|
45
|
+
--text-gdt-h4: 1.25rem; /* 20px */
|
|
46
|
+
--text-gdt-h4--line-height: 1.875rem; /* 30px */
|
|
47
|
+
--text-gdt-h4--font-weight: 800;
|
|
48
|
+
|
|
49
|
+
--text-gdt-h5: 1rem; /* 16px */
|
|
50
|
+
--text-gdt-h5--line-height: 1.625rem; /* 26px */
|
|
51
|
+
--text-gdt-h5--font-weight: 800;
|
|
52
|
+
|
|
53
|
+
--text-gdt-xl: 1.25rem; /* 20px */
|
|
54
|
+
--text-gdt-xl--line-height: 1.875rem; /* 30px */
|
|
55
|
+
|
|
56
|
+
--text-gdt-lg: 1.125rem; /* 18px */
|
|
57
|
+
--text-gdt-lg--line-height: 1.75rem; /* 28px */
|
|
58
|
+
|
|
59
|
+
--text-gdt-md: 1rem; /* 16px */
|
|
60
|
+
--text-gdt-md--line-height: 1.625rem; /* 26px */
|
|
61
|
+
|
|
62
|
+
--text-gdt-sm: 0.875rem; /* 14px */
|
|
63
|
+
--text-gdt-sm--line-height: 1.5rem; /* 24px */
|
|
64
|
+
|
|
65
|
+
--text-gdt-xs: 0.75rem; /* 12px */
|
|
66
|
+
--text-gdt-xs--line-height: 1.375rem; /* 22px */
|
|
67
|
+
|
|
68
|
+
--text-gdt-subtext: 0.6875rem; /* 11px */
|
|
69
|
+
--text-gdt-subtext--line-height: 1.3125rem; /* 21px */
|
|
70
|
+
|
|
71
|
+
--text-gdt-capitalized: 0.625rem; /* 10px */
|
|
72
|
+
--text-gdt-capitalized--line-height: 1.25rem; /* 20px */
|
|
73
|
+
--text-gdt-capitalized--font-weight: 700;
|
|
74
|
+
|
|
75
|
+
--color-canvas: #ffffff;
|
|
76
|
+
--color-surface: #f8fafc;
|
|
77
|
+
--color-surface-raised: #f1f5f9;
|
|
78
|
+
--color-surface-overlay: #ffffff;
|
|
79
|
+
--color-surface-brand: #2563eb;
|
|
80
|
+
--color-surface-brand-subtle: #eff6ff;
|
|
81
|
+
--color-surface-accent: #d97706;
|
|
82
|
+
--color-surface-accent-subtle: #fffbeb;
|
|
83
|
+
--color-surface-danger-subtle: #fef2f2;
|
|
84
|
+
--color-surface-info-subtle: #eff6ff;
|
|
85
|
+
--color-surface-glass-button: rgb(15 23 42);
|
|
86
|
+
--color-surface-glass-overlay-button: rgb(15 23 42 / 0.5);
|
|
87
|
+
--color-surface-glass-overlay-container-1: rgb(255 255 255 / 0.85);
|
|
88
|
+
--color-surface-glass-overlay-container-2: rgb(255 255 255 / 0.95);
|
|
89
|
+
|
|
90
|
+
--color-fg-primary: #0f172a;
|
|
91
|
+
--color-fg-secondary: #475569;
|
|
92
|
+
--color-fg-caption-placeholder: #64748b;
|
|
93
|
+
--color-fg-brand: #1d4ed8;
|
|
94
|
+
--color-fg-danger: #dc2626;
|
|
95
|
+
--color-fg-accent: #b45309;
|
|
96
|
+
--color-fg-on-brand: #ffffff;
|
|
97
|
+
--color-fg-on-accent: #1f2937;
|
|
98
|
+
|
|
99
|
+
--color-line-subtle: #e2e8f0;
|
|
100
|
+
--color-line: #cbd5e1;
|
|
101
|
+
--color-line-strong: #94a3b8;
|
|
102
|
+
--color-line-focus: #2563eb;
|
|
103
|
+
--color-line-danger: #ef4444;
|
|
104
|
+
|
|
105
|
+
--color-action-primary: #2563eb;
|
|
106
|
+
--color-action-primary-hover: #1d4ed8;
|
|
107
|
+
--color-action-primary-pressed: #1e40af;
|
|
108
|
+
--color-action-secondary: #2563eb;
|
|
109
|
+
--color-action-secondary-hover: #1d4ed8;
|
|
110
|
+
--color-action-secondary-pressed: #1e40af;
|
|
111
|
+
--color-action-tertiary: #f1f5f9;
|
|
112
|
+
--color-action-tertiary-hover: #e2e8f0;
|
|
113
|
+
--color-action-tertiary-pressed: #cbd5e1;
|
|
114
|
+
--color-action-accent: #d97706;
|
|
115
|
+
--color-action-danger: #ef4444;
|
|
116
|
+
--color-action-danger-hover: #dc2626;
|
|
117
|
+
--color-action-danger-pressed: #b91c1c;
|
|
118
|
+
--color-whatsapp-button: #00d158;
|
|
119
|
+
|
|
120
|
+
--color-status-success: #16a34a;
|
|
121
|
+
--color-status-warning: #d97706;
|
|
122
|
+
--color-status-danger: #ef4444;
|
|
123
|
+
--color-status-info: #2563eb;
|
|
124
|
+
|
|
125
|
+
--animate-slideUp: slideUp 1.5s cubic-bezier(1, -0.16, 0, 0.94) forwards;
|
|
126
|
+
--animate-slideDown: slideDown 1.5s cubic-bezier(1, -0.16, 0, 0.94) forwards;
|
|
127
|
+
--animate-scroll: scroll 15s linear infinite;
|
|
128
|
+
--animate-bouncing-loader: bouncing-loader 0.3s infinite alternate;
|
|
129
|
+
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
130
|
+
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
131
|
+
--animate-sonar-glow: sonar-glow 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
132
|
+
--animate-round-sonar-glow: round-sonar-glow 1.5s ease-out infinite;
|
|
133
|
+
--animate-spin-slow: spin 3s linear infinite;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
:root {
|
|
137
|
+
--border: var(--color-line);
|
|
138
|
+
--elevation-e0-bg: var(--color-surface);
|
|
139
|
+
--elevation-e0-border: var(--color-line-subtle);
|
|
140
|
+
--elevation-e0-shadow: none;
|
|
141
|
+
--elevation-e1-bg: var(--color-surface-overlay);
|
|
142
|
+
--elevation-e1-border: var(--color-line-subtle);
|
|
143
|
+
--elevation-e1-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
|
|
144
|
+
--elevation-e2-bg: var(--color-surface-overlay);
|
|
145
|
+
--elevation-e2-border: var(--color-line-subtle);
|
|
146
|
+
--elevation-e2-shadow: 0 4px 12px rgb(15 23 42 / 0.08);
|
|
147
|
+
--elevation-e3-bg: var(--color-surface-overlay);
|
|
148
|
+
--elevation-e3-border: var(--color-line);
|
|
149
|
+
--elevation-e3-shadow: 0 8px 24px rgb(15 23 42 / 0.1);
|
|
150
|
+
--elevation-e4-bg: var(--color-surface-overlay);
|
|
151
|
+
--elevation-e4-border: var(--color-line);
|
|
152
|
+
--elevation-e4-shadow: 0 16px 40px rgb(15 23 42 / 0.14);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@media (width >= 48rem) {
|
|
156
|
+
:root {
|
|
157
|
+
--text-gdt-h1: 3rem; /* 48px */
|
|
158
|
+
--text-gdt-h1--line-height: 4.25rem; /* 68px */
|
|
159
|
+
|
|
160
|
+
--text-gdt-h2: 2.5rem; /* 40px */
|
|
161
|
+
--text-gdt-h2--line-height: 3.75rem; /* 60px */
|
|
162
|
+
|
|
163
|
+
--text-gdt-h3: 2rem; /* 32px */
|
|
164
|
+
--text-gdt-h3--line-height: 3.25rem; /* 52px */
|
|
165
|
+
|
|
166
|
+
--text-gdt-h4: 1.5rem; /* 24px */
|
|
167
|
+
--text-gdt-h4--line-height: 2.5rem; /* 40px */
|
|
168
|
+
|
|
169
|
+
--text-gdt-h5: 1.5rem; /* 24px */
|
|
170
|
+
--text-gdt-h5--line-height: 2rem; /* 32px */
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@keyframes slideUp {
|
|
175
|
+
0% {
|
|
176
|
+
transform: translateY(100%);
|
|
177
|
+
opacity: 0%;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
100% {
|
|
181
|
+
transform: translateY(0%);
|
|
182
|
+
opacity: 100%;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@keyframes slideDown {
|
|
187
|
+
0% {
|
|
188
|
+
transform: translateY(0%);
|
|
189
|
+
opacity: 0%;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
100% {
|
|
193
|
+
transform: translateY(100%);
|
|
194
|
+
opacity: 100%;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@keyframes scroll {
|
|
199
|
+
0% {
|
|
200
|
+
transform: translateX(0);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
100% {
|
|
204
|
+
transform: translateX(-50%);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@keyframes bouncing-loader {
|
|
209
|
+
to {
|
|
210
|
+
transform: translate3d(0, -8px, 0);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@keyframes accordion-down {
|
|
215
|
+
from {
|
|
216
|
+
height: 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
to {
|
|
220
|
+
height: var(--radix-accordion-content-height);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@keyframes accordion-up {
|
|
225
|
+
from {
|
|
226
|
+
height: var(--radix-accordion-content-height);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
to {
|
|
230
|
+
height: 0;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@keyframes sonar-glow {
|
|
235
|
+
75%,
|
|
236
|
+
100% {
|
|
237
|
+
transform: scale(
|
|
238
|
+
var(--sonar-glow-scale-x, 1.125),
|
|
239
|
+
var(--sonar-glow-scale-y, 1.5)
|
|
240
|
+
);
|
|
241
|
+
opacity: 0;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@keyframes round-sonar-glow {
|
|
246
|
+
0% {
|
|
247
|
+
transform: scale(1);
|
|
248
|
+
opacity: 0.2;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
100% {
|
|
252
|
+
transform: scale(1.2);
|
|
253
|
+
opacity: 0;
|
|
254
|
+
}
|
|
255
|
+
}
|
package/dist/accordion.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
2
|
+
//#region src/accordion.d.ts
|
|
4
3
|
declare function Accordion({ className, variant, ...props }: Accordion$1.Root.Props & {
|
|
5
|
-
|
|
6
|
-
}):
|
|
7
|
-
declare function AccordionItem({ className, ...props }: Accordion$1.Item.Props):
|
|
8
|
-
declare function AccordionTrigger({ className, children, ...props }: Accordion$1.Trigger.Props):
|
|
9
|
-
declare function AccordionContent({ className, children, ...props }: Accordion$1.Panel.Props):
|
|
10
|
-
|
|
11
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
4
|
+
variant?: "surface" | "ghost";
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
declare function AccordionItem({ className, ...props }: Accordion$1.Item.Props): import("react").JSX.Element;
|
|
7
|
+
declare function AccordionTrigger({ className, children, ...props }: Accordion$1.Trigger.Props): import("react").JSX.Element;
|
|
8
|
+
declare function AccordionContent({ className, children, ...props }: Accordion$1.Panel.Props): import("react").JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
package/dist/accordion.js
CHANGED
|
@@ -1,124 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
import { Accordion as
|
|
1
|
+
import { t as cn } from "./cn-BI_4DMBf.js";
|
|
2
|
+
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
3
3
|
import { ChevronRightIcon } from "lucide-react";
|
|
4
|
-
|
|
5
|
-
// src/lib/cn.ts
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
8
|
-
var twMerge = extendTailwindMerge({
|
|
9
|
-
extend: {
|
|
10
|
-
classGroups: {
|
|
11
|
-
"font-size": [
|
|
12
|
-
{
|
|
13
|
-
text: [
|
|
14
|
-
"gdt-display",
|
|
15
|
-
"gdt-h1",
|
|
16
|
-
"gdt-h2",
|
|
17
|
-
"gdt-h3",
|
|
18
|
-
"gdt-h4",
|
|
19
|
-
"gdt-h5",
|
|
20
|
-
"gdt-xl",
|
|
21
|
-
"gdt-lg",
|
|
22
|
-
"gdt-md",
|
|
23
|
-
"gdt-sm",
|
|
24
|
-
"gdt-xs",
|
|
25
|
-
"gdt-subtext",
|
|
26
|
-
"gdt-capitalized"
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
function cn(...inputs) {
|
|
34
|
-
return twMerge(clsx(inputs));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// src/components/ui/accordion.tsx
|
|
38
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"data-slot": "accordion",
|
|
48
|
-
"data-variant": variant,
|
|
49
|
-
className: cn("group/accordion flex w-full flex-col gap-3", className),
|
|
50
|
-
...props
|
|
51
|
-
}
|
|
52
|
-
);
|
|
5
|
+
//#region src/accordion.tsx
|
|
6
|
+
function Accordion({ className, variant = "surface", ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(Accordion$1.Root, {
|
|
8
|
+
"data-slot": "accordion",
|
|
9
|
+
"data-variant": variant,
|
|
10
|
+
className: cn("group/accordion flex w-full flex-col gap-3", className),
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
53
13
|
}
|
|
54
14
|
function AccordionItem({ className, ...props }) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"rounded-xl border border-line-subtle text-fg-primary transition-[background-color,border-color,box-shadow] group-data-[variant=surface]/accordion:bg-surface",
|
|
61
|
-
className
|
|
62
|
-
),
|
|
63
|
-
...props
|
|
64
|
-
}
|
|
65
|
-
);
|
|
15
|
+
return /* @__PURE__ */ jsx(Accordion$1.Item, {
|
|
16
|
+
"data-slot": "accordion-item",
|
|
17
|
+
className: cn("rounded-xl border border-line-subtle text-fg-primary transition-[background-color,border-color,box-shadow] group-data-[variant=surface]/accordion:bg-surface", className),
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
66
20
|
}
|
|
67
|
-
function AccordionTrigger({
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
children: [
|
|
82
|
-
/* @__PURE__ */ jsx(
|
|
83
|
-
ChevronRightIcon,
|
|
84
|
-
{
|
|
85
|
-
"data-slot": "accordion-trigger-icon",
|
|
86
|
-
className: "pointer-events-none size-5 shrink-0 text-fg-primary transition-transform duration-200 ease-out group-aria-expanded/accordion-trigger:rotate-90"
|
|
87
|
-
}
|
|
88
|
-
),
|
|
89
|
-
children
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
) });
|
|
21
|
+
function AccordionTrigger({ className, children, ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx(Accordion$1.Header, {
|
|
23
|
+
"data-slot": "accordion-header",
|
|
24
|
+
className: "flex",
|
|
25
|
+
children: /* @__PURE__ */ jsxs(Accordion$1.Trigger, {
|
|
26
|
+
"data-slot": "accordion-trigger",
|
|
27
|
+
className: cn("group/accordion-trigger flex w-full items-center gap-3 px-4 sm:px-5 py-5.5 aria-expanded:pb-2 text-left text-gdt-md font-semibold text-fg-primary outline-none transition-[padding] aria-disabled:pointer-events-none aria-disabled:opacity-50", className),
|
|
28
|
+
...props,
|
|
29
|
+
children: [/* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
30
|
+
"data-slot": "accordion-trigger-icon",
|
|
31
|
+
className: "pointer-events-none size-5 shrink-0 text-fg-primary transition-transform duration-200 ease-out group-aria-expanded/accordion-trigger:rotate-90"
|
|
32
|
+
}), children]
|
|
33
|
+
})
|
|
34
|
+
});
|
|
93
35
|
}
|
|
94
|
-
function AccordionContent({
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
...props,
|
|
105
|
-
children: /* @__PURE__ */ jsx(
|
|
106
|
-
"div",
|
|
107
|
-
{
|
|
108
|
-
className: cn(
|
|
109
|
-
" pl-12 sm:pl-13 pr-4 sm:pr-5 pt-0 pb-4 sm:pb-5.5 text-fg-secondary text-gdt-md [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",
|
|
110
|
-
className
|
|
111
|
-
),
|
|
112
|
-
children
|
|
113
|
-
}
|
|
114
|
-
)
|
|
115
|
-
}
|
|
116
|
-
);
|
|
36
|
+
function AccordionContent({ className, children, ...props }) {
|
|
37
|
+
return /* @__PURE__ */ jsx(Accordion$1.Panel, {
|
|
38
|
+
"data-slot": "accordion-content",
|
|
39
|
+
className: "overflow-hidden h-(--accordion-panel-height) transition-[height] ease-out data-ending-style:h-0 data-starting-style:h-0",
|
|
40
|
+
...props,
|
|
41
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
42
|
+
className: cn(" pl-12 sm:pl-13 pr-4 sm:pr-5 pt-0 pb-4 sm:pb-5.5 text-fg-secondary text-gdt-md [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", className),
|
|
43
|
+
children
|
|
44
|
+
})
|
|
45
|
+
});
|
|
117
46
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
AccordionContent,
|
|
121
|
-
AccordionItem,
|
|
122
|
-
AccordionTrigger
|
|
123
|
-
};
|
|
124
|
-
//# sourceMappingURL=accordion.js.map
|
|
47
|
+
//#endregion
|
|
48
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Avatar } from "./avatar.js";
|
|
2
|
+
import { Badge } from "./badge.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
//#region src/activity-timeline.d.ts
|
|
5
|
+
type ActivityTimelineProps = React.ComponentProps<"section">;
|
|
6
|
+
declare function ActivityTimeline({ className, ...props }: ActivityTimelineProps): React.JSX.Element;
|
|
7
|
+
declare function ActivityTimelineTitle({ className, ...props }: React.ComponentProps<"h3">): React.JSX.Element;
|
|
8
|
+
declare function ActivityTimelineList({ className, ...props }: React.ComponentProps<"ol">): React.JSX.Element;
|
|
9
|
+
type ActivityTimelineItemProps = React.ComponentProps<"li"> & {
|
|
10
|
+
highlighted?: boolean;
|
|
11
|
+
highlightOnHover?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function ActivityTimelineItem({ className, highlighted, highlightOnHover, ...props }: ActivityTimelineItemProps): React.JSX.Element;
|
|
14
|
+
declare function ActivityTimelineRail({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
15
|
+
type ActivityTimelineAvatarProps = React.ComponentProps<typeof Avatar> & {
|
|
16
|
+
src?: string;
|
|
17
|
+
alt?: string;
|
|
18
|
+
initials?: React.ReactNode;
|
|
19
|
+
};
|
|
20
|
+
declare function ActivityTimelineAvatar({ className, src, alt, initials, children, ...props }: ActivityTimelineAvatarProps): React.JSX.Element;
|
|
21
|
+
declare function ActivityTimelineConnector({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
22
|
+
declare function ActivityTimelineContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
23
|
+
type ActivityTimelineBadgeProps = React.ComponentProps<typeof Badge> & {
|
|
24
|
+
icon?: React.ReactNode;
|
|
25
|
+
};
|
|
26
|
+
declare function ActivityTimelineBadge({ className, icon, children, variant, size, border, ...props }: ActivityTimelineBadgeProps): React.JSX.Element;
|
|
27
|
+
declare function ActivityTimelineDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ActivityTimeline, ActivityTimelineAvatar, ActivityTimelineBadge, ActivityTimelineConnector, ActivityTimelineContent, ActivityTimelineDescription, ActivityTimelineItem, ActivityTimelineList, ActivityTimelineRail, ActivityTimelineTitle };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as cn } from "./cn-BI_4DMBf.js";
|
|
3
|
+
import { Avatar, AvatarFallback, AvatarImage } from "./avatar.js";
|
|
4
|
+
import { Badge } from "./badge.js";
|
|
5
|
+
import { ChevronRightIcon } from "lucide-react";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/activity-timeline.tsx
|
|
8
|
+
function ActivityTimeline({ className, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsx("section", {
|
|
10
|
+
"data-slot": "activity-timeline",
|
|
11
|
+
className: cn("flex w-full max-w-[520px] flex-col items-start gap-4 rounded-2xl border border-line bg-canvas px-4 py-5 text-fg-primary sm:p-6 dark:bg-surface", className),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function ActivityTimelineTitle({ className, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsx("h3", {
|
|
17
|
+
"data-slot": "activity-timeline-title",
|
|
18
|
+
className: cn("w-full text-gdt-md leading-[26px] font-bold sm:text-gdt-lg sm:leading-[28px]", className),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function ActivityTimelineList({ className, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
24
|
+
"data-slot": "activity-timeline-list",
|
|
25
|
+
className: cn("flex w-full flex-col items-start", className),
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function ActivityTimelineItem({ className, highlighted = false, highlightOnHover = true, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsx("li", {
|
|
31
|
+
"data-slot": "activity-timeline-item",
|
|
32
|
+
"data-highlighted": highlighted || void 0,
|
|
33
|
+
className: cn("flex min-h-20 w-full min-w-0 gap-3 rounded-lg p-3 transition-[background-color,border-radius]", highlighted && "rounded-2xl bg-surface-raised", highlightOnHover && "hover:rounded-2xl hover:bg-surface-raised", className),
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function ActivityTimelineRail({ className, ...props }) {
|
|
38
|
+
return /* @__PURE__ */ jsx("div", {
|
|
39
|
+
"data-slot": "activity-timeline-rail",
|
|
40
|
+
className: cn("flex w-10 shrink-0 flex-col items-center gap-1.5", className),
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function ActivityTimelineAvatar({ className, src, alt = "", initials, children, ...props }) {
|
|
45
|
+
return /* @__PURE__ */ jsx(Avatar, {
|
|
46
|
+
"data-slot": "activity-timeline-avatar",
|
|
47
|
+
size: "md",
|
|
48
|
+
className: cn("bg-surface-brand", className),
|
|
49
|
+
...props,
|
|
50
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [src ? /* @__PURE__ */ jsx(AvatarImage, {
|
|
51
|
+
src,
|
|
52
|
+
alt
|
|
53
|
+
}) : null, /* @__PURE__ */ jsx(AvatarFallback, {
|
|
54
|
+
className: "bg-surface-brand text-fg-on-brand",
|
|
55
|
+
children: initials ?? "?"
|
|
56
|
+
})] })
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function ActivityTimelineConnector({ className, ...props }) {
|
|
60
|
+
return /* @__PURE__ */ jsx("span", {
|
|
61
|
+
"aria-hidden": "true",
|
|
62
|
+
"data-slot": "activity-timeline-connector",
|
|
63
|
+
className: cn("h-6 w-0.5 shrink-0 rounded-full bg-line-subtle", className),
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function ActivityTimelineContent({ className, ...props }) {
|
|
68
|
+
return /* @__PURE__ */ jsx("div", {
|
|
69
|
+
"data-slot": "activity-timeline-content",
|
|
70
|
+
className: cn("flex min-w-0 flex-1 flex-col items-start gap-1", className),
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function ActivityTimelineBadge({ className, icon, children, variant = "default", size = "sm", border = false, ...props }) {
|
|
75
|
+
return /* @__PURE__ */ jsxs(Badge, {
|
|
76
|
+
"data-slot": "activity-timeline-badge",
|
|
77
|
+
size,
|
|
78
|
+
variant,
|
|
79
|
+
border,
|
|
80
|
+
className: cn("min-h-0 py-1 text-gdt-xs font-semibold", className),
|
|
81
|
+
...props,
|
|
82
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
83
|
+
"aria-hidden": "true",
|
|
84
|
+
className: "inline-flex shrink-0 items-center [&>svg]:size-3.5",
|
|
85
|
+
children: icon ?? /* @__PURE__ */ jsx(ChevronRightIcon, { className: "cn-rtl-flip" })
|
|
86
|
+
}), children]
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function ActivityTimelineDescription({ className, ...props }) {
|
|
90
|
+
return /* @__PURE__ */ jsx("div", {
|
|
91
|
+
"data-slot": "activity-timeline-description",
|
|
92
|
+
className: cn("min-w-0 text-gdt-xs text-fg-secondary sm:text-[13px] sm:leading-[22px]", className),
|
|
93
|
+
...props
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
export { ActivityTimeline, ActivityTimelineAvatar, ActivityTimelineBadge, ActivityTimelineConnector, ActivityTimelineContent, ActivityTimelineDescription, ActivityTimelineItem, ActivityTimelineList, ActivityTimelineRail, ActivityTimelineTitle };
|
package/dist/alert.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
//#region src/alert.d.ts
|
|
5
4
|
declare const alertVariants: (props?: ({
|
|
6
|
-
|
|
7
|
-
} &
|
|
5
|
+
variant?: "error" | "info" | "success" | "warning" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
7
|
type AlertVariant = NonNullable<VariantProps<typeof alertVariants>["variant"]>;
|
|
9
8
|
type AlertProps = React.ComponentProps<"div"> & VariantProps<typeof alertVariants> & {
|
|
10
|
-
|
|
9
|
+
liveRegion?: "polite" | "assertive" | "off";
|
|
11
10
|
};
|
|
12
11
|
declare function Alert({ className, variant, liveRegion, role, ...props }: AlertProps): React.JSX.Element;
|
|
13
12
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
14
13
|
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
15
14
|
declare function AlertActions({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
16
15
|
declare function AlertClose({ className, type, children, "aria-label": ariaLabel, ...props }: React.ComponentProps<"button">): React.JSX.Element;
|
|
17
|
-
|
|
18
|
-
export { Alert, AlertActions, AlertClose, AlertDescription, type AlertProps, AlertTitle, type AlertVariant, alertVariants };
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Alert, AlertActions, AlertClose, AlertDescription, type AlertProps, AlertTitle, type AlertVariant, alertVariants };
|