baldur 0.1.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.
- checksums.yaml +7 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/README.md +318 -0
- data/TODO.md +6 -0
- data/app/assets/javascripts/baldur/controllers/accordion_controller.js +148 -0
- data/app/assets/javascripts/baldur/controllers/alert_controller.js +209 -0
- data/app/assets/javascripts/baldur/controllers/date_field_controller.js +558 -0
- data/app/assets/javascripts/baldur/controllers/details_menu_controller.js +30 -0
- data/app/assets/javascripts/baldur/controllers/form_submit_controller.js +7 -0
- data/app/assets/javascripts/baldur/controllers/marketing_pricing_controller.js +47 -0
- data/app/assets/javascripts/baldur/controllers/marketing_tabs_controller.js +118 -0
- data/app/assets/javascripts/baldur/controllers/menu_select_controller.js +401 -0
- data/app/assets/javascripts/baldur/controllers/mobile_sidebar_controller.js +13 -0
- data/app/assets/javascripts/baldur/controllers/modal_controller.js +149 -0
- data/app/assets/javascripts/baldur/controllers/panel_right_controller.js +1 -0
- data/app/assets/javascripts/baldur/controllers/panel_secondary_controller.js +129 -0
- data/app/assets/javascripts/baldur/controllers/segmented_tabs_controller.js +38 -0
- data/app/assets/javascripts/baldur/controllers/sidebar_controller.js +77 -0
- data/app/assets/javascripts/baldur/controllers/smooth_scroll_controller.js +29 -0
- data/app/assets/javascripts/baldur/controllers/snackbar_controller.js +158 -0
- data/app/assets/javascripts/baldur/controllers/table_disclosure_controller.js +46 -0
- data/app/assets/javascripts/baldur/controllers/theme_controller.js +90 -0
- data/app/assets/javascripts/baldur/controllers/tooltip_controller.js +136 -0
- data/app/assets/javascripts/baldur/lib/animation-helpers.js +56 -0
- data/app/assets/javascripts/baldur/lib/dom-helpers.js +80 -0
- data/app/assets/javascripts/baldur/lib/field-validation-helpers.js +36 -0
- data/app/assets/javascripts/baldur/lib/focus-management.js +89 -0
- data/app/assets/javascripts/baldur/lib/formatting-helpers.js +100 -0
- data/app/assets/javascripts/baldur/lib/lucide.js +20 -0
- data/app/assets/javascripts/baldur/lib/snackbar.js +50 -0
- data/app/assets/javascripts/baldur/lib/storage-helpers.js +50 -0
- data/app/assets/stylesheets/baldur/application/components/alert.css +226 -0
- data/app/assets/stylesheets/baldur/application/components/app_bar.css +41 -0
- data/app/assets/stylesheets/baldur/application/components/button.css +173 -0
- data/app/assets/stylesheets/baldur/application/components/card.css +63 -0
- data/app/assets/stylesheets/baldur/application/components/chart.css +40 -0
- data/app/assets/stylesheets/baldur/application/components/chip.css +51 -0
- data/app/assets/stylesheets/baldur/application/components/dialog.css +81 -0
- data/app/assets/stylesheets/baldur/application/components/forms.css +624 -0
- data/app/assets/stylesheets/baldur/application/components/layout.css +2 -0
- data/app/assets/stylesheets/baldur/application/components/list.css +15 -0
- data/app/assets/stylesheets/baldur/application/components/menu.css +300 -0
- data/app/assets/stylesheets/baldur/application/components/panel-right.css +1 -0
- data/app/assets/stylesheets/baldur/application/components/panel-secondary.css +71 -0
- data/app/assets/stylesheets/baldur/application/components/progress.css +84 -0
- data/app/assets/stylesheets/baldur/application/components/segmented-buttons.css +117 -0
- data/app/assets/stylesheets/baldur/application/components/settings-nav.css +84 -0
- data/app/assets/stylesheets/baldur/application/components/sidebar.css +123 -0
- data/app/assets/stylesheets/baldur/application/components/snackbar.css +179 -0
- data/app/assets/stylesheets/baldur/application/components/stepper.css +124 -0
- data/app/assets/stylesheets/baldur/application/components/switch.css +105 -0
- data/app/assets/stylesheets/baldur/application/components/table.css +331 -0
- data/app/assets/stylesheets/baldur/application/components/timeline.css +184 -0
- data/app/assets/stylesheets/baldur/application/components/utilities.css +180 -0
- data/app/assets/stylesheets/baldur/application/global.css +125 -0
- data/app/assets/stylesheets/baldur/application/marketing/layout.css +36 -0
- data/app/assets/stylesheets/baldur/application/motion.css +125 -0
- data/app/assets/stylesheets/baldur/application/theme.css +329 -0
- data/app/assets/stylesheets/baldur/theme/dark.css +90 -0
- data/app/assets/stylesheets/baldur/theme/light.css +82 -0
- data/app/assets/stylesheets/baldur.css +27 -0
- data/app/assets/stylesheets/baldur_panel_right.css +1 -0
- data/app/assets/stylesheets/baldur_panel_secondary.css +1 -0
- data/app/assets/tailwind/baldur/engine.css +5 -0
- data/app/helpers/baldur/compatibility/ui_aliases.rb +7 -0
- data/app/helpers/baldur/marketing_helper.rb +121 -0
- data/app/helpers/baldur/optional/auth_page_helper.rb +17 -0
- data/app/helpers/baldur/optional/google_auth_helper.rb +16 -0
- data/app/helpers/baldur/optional/panel_right_helper.rb +7 -0
- data/app/helpers/baldur/optional/panel_secondary_helper.rb +26 -0
- data/app/helpers/baldur/render_helper.rb +13 -0
- data/app/helpers/baldur/ui_helper.rb +217 -0
- data/app/helpers/baldur/ui_helper_feedback.rb +93 -0
- data/app/helpers/baldur/ui_helper_forms.rb +230 -0
- data/app/helpers/baldur/ui_helper_unavailable.rb +98 -0
- data/app/views/baldur/components/_accordion.html.erb +30 -0
- data/app/views/baldur/components/_action_row.html.erb +6 -0
- data/app/views/baldur/components/_alert.html.erb +61 -0
- data/app/views/baldur/components/_badge.html.erb +25 -0
- data/app/views/baldur/components/_button.html.erb +81 -0
- data/app/views/baldur/components/_card.html.erb +40 -0
- data/app/views/baldur/components/_chart_card.html.erb +42 -0
- data/app/views/baldur/components/_checkbox.html.erb +27 -0
- data/app/views/baldur/components/_date_field.html.erb +43 -0
- data/app/views/baldur/components/_google_sign_in_button.html.erb +1 -0
- data/app/views/baldur/components/_kebab_menu.html.erb +36 -0
- data/app/views/baldur/components/_kpi.html.erb +45 -0
- data/app/views/baldur/components/_menu_select.html.erb +78 -0
- data/app/views/baldur/components/_modal.html.erb +54 -0
- data/app/views/baldur/components/_pagination.html.erb +61 -0
- data/app/views/baldur/components/_segmented_buttons.html.erb +51 -0
- data/app/views/baldur/components/_settings_nav.html.erb +41 -0
- data/app/views/baldur/components/_snackbar.html.erb +42 -0
- data/app/views/baldur/components/_snackbar_stack.html.erb +13 -0
- data/app/views/baldur/components/_stepper.html.erb +39 -0
- data/app/views/baldur/components/_table.html.erb +117 -0
- data/app/views/baldur/components/_table_card.html.erb +86 -0
- data/app/views/baldur/components/_table_footer.html.erb +68 -0
- data/app/views/baldur/components/_text_field.html.erb +33 -0
- data/app/views/baldur/components/_tooltip.html.erb +73 -0
- data/app/views/baldur/marketing/_cta_banner.html.erb +20 -0
- data/app/views/baldur/marketing/_faq_section.html.erb +37 -0
- data/app/views/baldur/marketing/_features_section.html.erb +67 -0
- data/app/views/baldur/marketing/_footer.html.erb +38 -0
- data/app/views/baldur/marketing/_hero_section.html.erb +259 -0
- data/app/views/baldur/marketing/_pricing_tables.html.erb +99 -0
- data/app/views/baldur/marketing/_testimonials_section.html.erb +80 -0
- data/app/views/baldur/marketing/_top_nav.html.erb +28 -0
- data/app/views/baldur/optional/_auth_page.html.erb +21 -0
- data/app/views/baldur/optional/_google_sign_in_button.html.erb +19 -0
- data/app/views/baldur/optional/_panel_right.html.erb +1 -0
- data/app/views/baldur/optional/_panel_secondary.html.erb +34 -0
- data/baldur.gemspec +30 -0
- data/config/importmap.rb +2 -0
- data/lib/baldur/configuration.rb +24 -0
- data/lib/baldur/engine.rb +10 -0
- data/lib/baldur/version.rb +3 -0
- data/lib/baldur.rb +17 -0
- data/lib/generators/baldur/install/install_generator.rb +113 -0
- data/lib/generators/baldur/install/templates/baldur_initializer.rb +19 -0
- data/lib/generators/baldur/install/templates/fonts.css +14 -0
- data/lib/generators/baldur/install/templates/theme.css +27 -0
- data/lib/generators/baldur/install/templates/ui_helper.rb +4 -0
- data/lib/generators/baldur/install_google_auth/install_google_auth_generator.rb +15 -0
- data/lib/generators/baldur/install_panel_right/install_panel_right_generator.rb +9 -0
- data/lib/generators/baldur/install_panel_secondary/install_panel_secondary_generator.rb +21 -0
- data/script/verify_host_install +111 -0
- data/test/gemspec_test.rb +11 -0
- data/test/install_generator_test.rb +35 -0
- data/test/install_panel_secondary_generator_test.rb +21 -0
- data/test/marketing_helper_test.rb +38 -0
- data/test/run_all.rb +3 -0
- data/test/test_helper.rb +9 -0
- data/test/tmp/install_generator/app/assets/stylesheets/fonts.css +14 -0
- data/test/tmp/install_generator/app/assets/stylesheets/theme.css +27 -0
- data/test/tmp/install_generator/app/assets/tailwind/application.css +4 -0
- data/test/tmp/install_generator/app/helpers/ui_helper.rb +4 -0
- data/test/tmp/install_generator/app/javascript/controllers/accordion_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/date_field_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/details_menu_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/form_submit_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/marketing_pricing_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/marketing_tabs_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/menu_select_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/modal_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/segmented_tabs_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/sidebar_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/smooth_scroll_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/snackbar_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/theme_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/controllers/tooltip_controller.js +1 -0
- data/test/tmp/install_generator/app/javascript/lib/animation-helpers.js +1 -0
- data/test/tmp/install_generator/app/javascript/lib/dom-helpers.js +1 -0
- data/test/tmp/install_generator/app/javascript/lib/field-validation-helpers.js +1 -0
- data/test/tmp/install_generator/app/javascript/lib/focus-management.js +1 -0
- data/test/tmp/install_generator/app/javascript/lib/formatting-helpers.js +1 -0
- data/test/tmp/install_generator/app/javascript/lib/snackbar.js +1 -0
- data/test/tmp/install_generator/app/javascript/lib/storage-helpers.js +1 -0
- data/test/tmp/install_generator/config/initializers/baldur.rb +19 -0
- data/test/tmp/install_panel_secondary_generator/app/assets/tailwind/application.css +2 -0
- data/test/tmp/install_panel_secondary_generator/app/helpers/panel_secondary_helper.rb +3 -0
- data/test/tmp/install_panel_secondary_generator/app/javascript/controllers/panel_secondary_controller.js +1 -0
- metadata +259 -0
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.table-card {
|
|
3
|
+
background-color: var(--color-surface-highest);
|
|
4
|
+
border: 1px solid var(--color-outline-variant);
|
|
5
|
+
border-radius: var(--radius-xl);
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.table-card.has-open-menu {
|
|
10
|
+
overflow: visible;
|
|
11
|
+
position: relative;
|
|
12
|
+
z-index: 1001;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.table-card__section--top {
|
|
16
|
+
border-top-left-radius: inherit;
|
|
17
|
+
border-top-right-radius: inherit;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.table-card__section--bottom {
|
|
21
|
+
border-bottom-left-radius: inherit;
|
|
22
|
+
border-bottom-right-radius: inherit;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.table-card__header {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
gap: var(--space-3);
|
|
31
|
+
padding: var(--space-5) var(--space-6);
|
|
32
|
+
border-bottom: 1px solid var(--color-outline-variant);
|
|
33
|
+
background-color: var(--color-surface-highest);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.table-card__header-main {
|
|
37
|
+
min-width: 0;
|
|
38
|
+
flex: 1 1 20rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.table-card__header-title-row {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-wrap: wrap;
|
|
44
|
+
align-items: baseline;
|
|
45
|
+
gap: var(--space-2);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.table-card__title-meta {
|
|
49
|
+
font-size: 0.75rem;
|
|
50
|
+
color: color-mix(in srgb, var(--color-on-surface) 62%, transparent);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.table-card__header-side {
|
|
54
|
+
min-width: 0;
|
|
55
|
+
flex: 1 1 20rem;
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
justify-content: flex-end;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: var(--space-2);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.table-card__header-actions,
|
|
64
|
+
.table-card__header-controls {
|
|
65
|
+
min-width: 0;
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-wrap: wrap;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: flex-end;
|
|
70
|
+
gap: var(--space-2);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.table-card__header-actions > *,
|
|
74
|
+
.table-card__header-controls > * {
|
|
75
|
+
max-width: 100%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.table-card__body {
|
|
79
|
+
background-color: var(--color-surface-highest);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.table-card__controls,
|
|
83
|
+
.table-card__footer {
|
|
84
|
+
padding: var(--space-5) var(--space-6);
|
|
85
|
+
background-color: var(--color-surface-highest);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.table-card__controls {
|
|
89
|
+
border-top: 1px solid var(--color-outline-variant);
|
|
90
|
+
border-bottom: 1px solid var(--color-outline-variant);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.table-card__footer {
|
|
94
|
+
border-top: 1px solid var(--color-outline-variant);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.pagination {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-wrap: wrap;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: flex-end;
|
|
102
|
+
gap: var(--space-1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.pagination__list {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
flex-wrap: wrap;
|
|
108
|
+
align-items: center;
|
|
109
|
+
gap: 0.375rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.pagination__item {
|
|
113
|
+
min-width: 2.25rem;
|
|
114
|
+
height: 2.25rem;
|
|
115
|
+
padding: 0 0.625rem;
|
|
116
|
+
border-radius: var(--radius-md);
|
|
117
|
+
display: inline-flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
background-color: var(--color-surface-high);
|
|
121
|
+
color: var(--color-on-surface);
|
|
122
|
+
font-size: 0.9rem;
|
|
123
|
+
font-weight: 400;
|
|
124
|
+
text-decoration: none;
|
|
125
|
+
transition:
|
|
126
|
+
background-color var(--motion-duration-short4) var(--motion-easing-standard),
|
|
127
|
+
color var(--motion-duration-short4) var(--motion-easing-standard),
|
|
128
|
+
transform var(--motion-duration-short4) var(--motion-easing-standard);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.pagination__item:hover {
|
|
132
|
+
background-color: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface-high));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.pagination__item:focus-visible {
|
|
136
|
+
outline: 2px solid var(--color-primary);
|
|
137
|
+
outline-offset: 2px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.pagination__item.is-current {
|
|
141
|
+
background-color: var(--color-primary-container);
|
|
142
|
+
color: var(--color-on-primary-container);
|
|
143
|
+
font-weight: 500;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.pagination__item.is-disabled {
|
|
147
|
+
background-color: color-mix(in srgb, var(--color-surface-low) 88%, transparent);
|
|
148
|
+
color: color-mix(in srgb, var(--color-text-muted) 88%, var(--color-surface-high));
|
|
149
|
+
cursor: not-allowed;
|
|
150
|
+
pointer-events: none;
|
|
151
|
+
opacity: 0.72;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.pagination__icon {
|
|
155
|
+
width: 1.1rem;
|
|
156
|
+
height: 1.1rem;
|
|
157
|
+
flex-shrink: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.pagination__gap {
|
|
161
|
+
min-width: 1.5rem;
|
|
162
|
+
display: inline-flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
color: var(--color-text-muted);
|
|
166
|
+
font-size: 0.95rem;
|
|
167
|
+
font-weight: 600;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.table-card__scroll {
|
|
171
|
+
overflow-x: auto;
|
|
172
|
+
scrollbar-width: thin;
|
|
173
|
+
scrollbar-color: color-mix(in srgb, var(--color-on-surface) 40%, transparent) transparent;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.table-card__scroll::-webkit-scrollbar {
|
|
177
|
+
height: 8px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.table-card__scroll::-webkit-scrollbar-track {
|
|
181
|
+
background: transparent;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.table-card__scroll::-webkit-scrollbar-thumb {
|
|
185
|
+
background-color: color-mix(in srgb, var(--color-on-surface) 35%, transparent);
|
|
186
|
+
border-radius: 999px;
|
|
187
|
+
border: 2px solid transparent;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.table {
|
|
191
|
+
width: 100%;
|
|
192
|
+
border-collapse: collapse;
|
|
193
|
+
color: var(--color-on-surface);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.table thead {
|
|
197
|
+
background-color: var(--color-surface-high);
|
|
198
|
+
color: var(--color-on-surface-variant);
|
|
199
|
+
text-transform: uppercase;
|
|
200
|
+
letter-spacing: 0.06em;
|
|
201
|
+
font-weight: 700;
|
|
202
|
+
font-size: 0.75rem;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.table th,
|
|
206
|
+
.table td {
|
|
207
|
+
border-bottom: 1px solid var(--color-outline-variant);
|
|
208
|
+
text-align: left;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.table tbody tr {
|
|
212
|
+
background-color: var(--color-surface-highest);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.table tbody tr:hover {
|
|
216
|
+
background-color: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface-highest));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.table tbody td:first-child,
|
|
220
|
+
.table tbody td:last-child {
|
|
221
|
+
font-weight: 600;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.table thead th:last-child,
|
|
225
|
+
.table tbody td:last-child {
|
|
226
|
+
text-align: right;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.table-disclosure {
|
|
230
|
+
min-width: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.table-disclosure__trigger {
|
|
234
|
+
color: inherit;
|
|
235
|
+
background: transparent;
|
|
236
|
+
border: 0;
|
|
237
|
+
padding: 0;
|
|
238
|
+
width: 100%;
|
|
239
|
+
align-items: center;
|
|
240
|
+
gap: var(--space-2);
|
|
241
|
+
min-width: 0;
|
|
242
|
+
display: flex;
|
|
243
|
+
cursor: pointer;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.table-disclosure__summary {
|
|
247
|
+
min-width: 0;
|
|
248
|
+
flex: 1 1 auto;
|
|
249
|
+
text-align: left;
|
|
250
|
+
overflow: hidden;
|
|
251
|
+
text-overflow: ellipsis;
|
|
252
|
+
white-space: nowrap;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.table-disclosure__toggle {
|
|
256
|
+
color: var(--color-primary);
|
|
257
|
+
white-space: nowrap;
|
|
258
|
+
flex: none;
|
|
259
|
+
margin-left: auto;
|
|
260
|
+
min-width: 8ch;
|
|
261
|
+
text-align: right;
|
|
262
|
+
display: inline-block;
|
|
263
|
+
font-size: 0.75rem;
|
|
264
|
+
font-weight: 600;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.table-disclosure__toggle--expanded {
|
|
268
|
+
display: none;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.table-disclosure.is-open .table-disclosure__toggle--collapsed {
|
|
272
|
+
display: none;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.table-disclosure.is-open .table-disclosure__toggle--expanded {
|
|
276
|
+
display: inline;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.table-disclosure__content {
|
|
280
|
+
color: var(--color-on-surface);
|
|
281
|
+
margin-top: 0;
|
|
282
|
+
max-height: 0;
|
|
283
|
+
opacity: 0;
|
|
284
|
+
overflow: hidden;
|
|
285
|
+
transition: max-height 180ms ease, opacity 120ms ease, margin-top 180ms ease;
|
|
286
|
+
white-space: normal;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.table-disclosure.is-open .table-disclosure__content {
|
|
290
|
+
margin-top: var(--space-2);
|
|
291
|
+
opacity: 1;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.table-disclosure__content-item + .table-disclosure__content-item {
|
|
295
|
+
margin-top: var(--space-1);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@media (max-width: 640px) {
|
|
299
|
+
.table-card__header,
|
|
300
|
+
.table-card__controls,
|
|
301
|
+
.table-card__footer {
|
|
302
|
+
padding-inline: var(--space-4);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.table-card__header-side {
|
|
306
|
+
flex-basis: 100%;
|
|
307
|
+
justify-content: flex-start;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.table-card__header-actions,
|
|
311
|
+
.table-card__header-controls {
|
|
312
|
+
width: 100%;
|
|
313
|
+
justify-content: flex-start;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.pagination {
|
|
317
|
+
justify-content: flex-start;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.pagination__list {
|
|
321
|
+
gap: 0.25rem;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.pagination__item {
|
|
325
|
+
min-width: 2rem;
|
|
326
|
+
height: 2rem;
|
|
327
|
+
padding: 0 0.5rem;
|
|
328
|
+
border-radius: var(--radius-md);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/* Timeline Component Styles - Reference Design */
|
|
2
|
+
|
|
3
|
+
.timeline {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Month/Year Header */
|
|
10
|
+
.timeline-month-header {
|
|
11
|
+
font-size: 0.875rem;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
color: var(--color-text-muted);
|
|
14
|
+
margin-bottom: 1rem;
|
|
15
|
+
margin-top: 2rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.timeline-month-header:first-child {
|
|
19
|
+
margin-top: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Timeline Item Layout */
|
|
23
|
+
.timeline-item {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: 60px auto 1fr;
|
|
26
|
+
gap: 1rem;
|
|
27
|
+
position: relative;
|
|
28
|
+
padding-bottom: 1.5rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Date Label (left column) */
|
|
32
|
+
.timeline-date-label {
|
|
33
|
+
font-size: 0.875rem;
|
|
34
|
+
color: var(--color-on-surface);
|
|
35
|
+
text-align: right;
|
|
36
|
+
padding-top: 2px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Timeline Indicator (middle column - dot + line) */
|
|
40
|
+
.timeline-indicator {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
align-items: center;
|
|
44
|
+
width: 24px;
|
|
45
|
+
position: relative;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.timeline-dot {
|
|
49
|
+
width: 10px;
|
|
50
|
+
height: 10px;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
border: 2px solid var(--color-outline);
|
|
53
|
+
background-color: var(--color-surface);
|
|
54
|
+
position: relative;
|
|
55
|
+
z-index: 1;
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
margin-top: 4px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.timeline-dot.completed {
|
|
61
|
+
background-color: var(--color-primary);
|
|
62
|
+
border-color: var(--color-primary);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.timeline-dot.scheduled,
|
|
66
|
+
.timeline-dot.confirmed {
|
|
67
|
+
background-color: var(--color-tertiary);
|
|
68
|
+
border-color: var(--color-tertiary);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.timeline-dot.cancelled,
|
|
72
|
+
.timeline-dot.no_show {
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
border-color: var(--color-outline);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.timeline-line {
|
|
78
|
+
width: 2px;
|
|
79
|
+
flex: 1;
|
|
80
|
+
background-color: var(--color-outline-variant);
|
|
81
|
+
margin-top: 4px;
|
|
82
|
+
min-height: 20px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Timeline Content (right column) */
|
|
86
|
+
.timeline-content {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
gap: 0.5rem;
|
|
90
|
+
padding: 0.75rem 1rem;
|
|
91
|
+
background-color: color-mix(in srgb, var(--color-surface-variant) 20%, transparent);
|
|
92
|
+
border-radius: 8px;
|
|
93
|
+
border: 1px solid var(--color-outline-variant);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.timeline-header {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
gap: 1rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.timeline-title {
|
|
104
|
+
font-size: 1rem;
|
|
105
|
+
font-weight: 600;
|
|
106
|
+
color: var(--color-on-surface);
|
|
107
|
+
margin: 0;
|
|
108
|
+
flex: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Timeline Metadata */
|
|
112
|
+
.timeline-metadata {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-wrap: wrap;
|
|
115
|
+
gap: 1rem;
|
|
116
|
+
font-size: 0.75rem;
|
|
117
|
+
color: var(--color-text-muted);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.timeline-meta-item {
|
|
121
|
+
display: inline-flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
gap: 0.25rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.timeline-meta-item svg {
|
|
127
|
+
width: 0.875rem;
|
|
128
|
+
height: 0.875rem;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Timeline Notes (SOAP) */
|
|
132
|
+
.timeline-notes {
|
|
133
|
+
margin-top: 0.5rem;
|
|
134
|
+
padding-top: 0.75rem;
|
|
135
|
+
border-top: 1px solid var(--color-outline-variant);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.soap-section {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
gap: 0.25rem;
|
|
142
|
+
margin-bottom: 0.75rem;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.soap-section:last-child {
|
|
146
|
+
margin-bottom: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.soap-label {
|
|
150
|
+
font-size: 0.75rem;
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
text-transform: uppercase;
|
|
153
|
+
letter-spacing: 0.05em;
|
|
154
|
+
color: var(--color-primary);
|
|
155
|
+
margin: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.soap-content {
|
|
159
|
+
font-size: 0.875rem;
|
|
160
|
+
line-height: 1.5;
|
|
161
|
+
color: var(--color-on-surface);
|
|
162
|
+
margin: 0;
|
|
163
|
+
white-space: pre-wrap;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* Responsive adjustments */
|
|
167
|
+
@media (max-width: 768px) {
|
|
168
|
+
.timeline-item {
|
|
169
|
+
grid-template-columns: 50px auto 1fr;
|
|
170
|
+
gap: 0.75rem;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.timeline-date-label {
|
|
174
|
+
font-size: 0.75rem;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.timeline-content {
|
|
178
|
+
padding: 0.5rem 0.75rem;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.timeline-title {
|
|
182
|
+
font-size: 0.875rem;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bg-surface {
|
|
3
|
+
background-color: var(--color-surface);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.bg-surface-low {
|
|
7
|
+
background-color: var(--color-surface-low);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.bg-surface-medium {
|
|
11
|
+
background-color: var(--color-surface-medium);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.bg-surface-high {
|
|
15
|
+
background-color: var(--color-surface-high);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.bg-surface-highest {
|
|
19
|
+
background-color: var(--color-surface-highest);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.border-outline {
|
|
23
|
+
border-color: var(--color-outline);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.border-outline-variant {
|
|
27
|
+
border-color: var(--color-outline-variant);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.text-on-surface {
|
|
31
|
+
color: var(--color-on-surface);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.text-on-inverse {
|
|
35
|
+
color: var(--color-inverse-on-surface);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.bg-surface-lowest {
|
|
39
|
+
background-color: var(--color-surface-lowest);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.bg-primary {
|
|
43
|
+
background-color: var(--color-primary);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.bg-secondary {
|
|
47
|
+
background-color: var(--color-secondary);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.bg-success {
|
|
51
|
+
background-color: var(--color-success);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.bg-warning {
|
|
55
|
+
background-color: var(--color-warning);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.bg-error {
|
|
59
|
+
background-color: var(--color-error);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.bg-info {
|
|
63
|
+
background-color: var(--color-info);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.bg-warning-container {
|
|
67
|
+
background-color: var(--color-warning-container);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.bg-success-container {
|
|
71
|
+
background-color: var(--color-success-container);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.bg-error-container {
|
|
75
|
+
background-color: var(--color-error-container);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.bg-info-container {
|
|
79
|
+
background-color: var(--color-info-container);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.bg-scrim {
|
|
83
|
+
background-color: color-mix(in srgb, var(--color-scrim) 75%, transparent);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.text-soft {
|
|
87
|
+
color: var(--color-text-soft);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.text-muted {
|
|
91
|
+
color: var(--color-text-muted);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.text-success {
|
|
95
|
+
color: var(--color-success);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.text-warning {
|
|
99
|
+
color: var(--color-warning);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.text-info {
|
|
103
|
+
color: var(--color-info);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.text-error {
|
|
107
|
+
color: var(--color-error);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.bg-success-container .text-success {
|
|
111
|
+
color: var(--color-on-success-container);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.bg-warning-container .text-warning {
|
|
115
|
+
color: var(--color-on-warning-container);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.bg-error-container .text-error {
|
|
119
|
+
color: var(--color-on-error-container);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.bg-info-container .text-info {
|
|
123
|
+
color: var(--color-on-info-container);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.text-on-warning-container {
|
|
127
|
+
color: var(--color-on-warning-container);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.text-on-success-container {
|
|
131
|
+
color: var(--color-on-success-container);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.text-on-error-container {
|
|
135
|
+
color: var(--color-on-error-container);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.divide-outline-variant > :not([hidden]) ~ :not([hidden]) {
|
|
139
|
+
border-color: var(--color-outline-variant);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.border-warning {
|
|
143
|
+
border-color: var(--color-warning);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.border-success {
|
|
147
|
+
border-color: var(--color-success);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.border-error {
|
|
151
|
+
border-color: var(--color-error);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.border-info {
|
|
155
|
+
border-color: var(--color-info);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.border-primary {
|
|
159
|
+
border-color: var(--color-primary);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.text-on-info-container {
|
|
163
|
+
color: var(--color-on-info-container);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.brand-lockup {
|
|
167
|
+
display: inline-flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
gap: var(--space-2);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.brand-lockup__logo {
|
|
173
|
+
object-fit: contain;
|
|
174
|
+
background-color: transparent;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.brand-lockup__wordmark {
|
|
178
|
+
line-height: 1;
|
|
179
|
+
}
|
|
180
|
+
}
|