@fiduswriter/frontend 0.1.68 → 0.1.70

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 (73) hide show
  1. package/css/two_factor.css +0 -52
  2. package/css/user_template_manager.css +6 -0
  3. package/dist/css/bibliography/colors.css +0 -4
  4. package/dist/css/bibliography/forms.css +3 -61
  5. package/dist/css/document-template-editor/document_template_designer.css +68 -68
  6. package/dist/css/fwtoolkit/action_chooser_dialog.css +66 -0
  7. package/dist/css/fwtoolkit/action_toolbar.css +132 -0
  8. package/dist/css/fwtoolkit/alerts.css +53 -19
  9. package/dist/css/fwtoolkit/application_menu_controller.css +28 -0
  10. package/dist/css/fwtoolkit/attachment_field.css +19 -0
  11. package/dist/css/fwtoolkit/attachment_list.css +118 -0
  12. package/dist/css/fwtoolkit/avatar_label.css +80 -0
  13. package/dist/css/fwtoolkit/boolean_switch.css +128 -0
  14. package/dist/css/fwtoolkit/buttons.css +181 -85
  15. package/dist/css/fwtoolkit/category_filter_controller.css +11 -0
  16. package/dist/css/fwtoolkit/checkable_list.css +39 -6
  17. package/dist/css/fwtoolkit/colors.css +71 -69
  18. package/dist/css/fwtoolkit/common.css +49 -17
  19. package/dist/css/fwtoolkit/content_menu.css +49 -27
  20. package/dist/css/fwtoolkit/data_table.css +278 -41
  21. package/dist/css/fwtoolkit/datatable_bulk.css +106 -0
  22. package/dist/css/fwtoolkit/destination_settings_form.css +67 -0
  23. package/dist/css/fwtoolkit/dialog.css +100 -25
  24. package/dist/css/fwtoolkit/dialog_presets.css +157 -0
  25. package/dist/css/fwtoolkit/dialog_table.css +63 -26
  26. package/dist/css/fwtoolkit/directory_navigator.css +244 -0
  27. package/dist/css/fwtoolkit/drop_up.css +36 -24
  28. package/dist/css/fwtoolkit/faq_dialog.css +28 -4
  29. package/dist/css/fwtoolkit/file_input_field.css +150 -0
  30. package/dist/css/fwtoolkit/file_selector.css +265 -12
  31. package/dist/css/fwtoolkit/form_error_summary.css +53 -0
  32. package/dist/css/fwtoolkit/forms.css +261 -54
  33. package/dist/css/fwtoolkit/fwtoolkit.css +6618 -1522
  34. package/dist/css/fwtoolkit/grid_size_picker.css +119 -0
  35. package/dist/css/fwtoolkit/icon_button_group.css +110 -0
  36. package/dist/css/fwtoolkit/image_preview_field.css +156 -0
  37. package/dist/css/fwtoolkit/inline_status.css +69 -0
  38. package/dist/css/fwtoolkit/inline_tools.css +47 -16
  39. package/dist/css/fwtoolkit/input_list.css +33 -2
  40. package/dist/css/fwtoolkit/loader.css +12 -2
  41. package/dist/css/fwtoolkit/media_card_grid.css +251 -0
  42. package/dist/css/fwtoolkit/navigation_drawer.css +172 -0
  43. package/dist/css/fwtoolkit/one_time_code_field.css +135 -0
  44. package/dist/css/fwtoolkit/overflow_action_bar.css +28 -0
  45. package/dist/css/fwtoolkit/overview_menu.css +35 -27
  46. package/dist/css/fwtoolkit/permission_badge.css +121 -0
  47. package/dist/css/fwtoolkit/progress_task.css +51 -27
  48. package/dist/css/fwtoolkit/pulldown.css +50 -22
  49. package/dist/css/fwtoolkit/pulldown_menu.css +22 -11
  50. package/dist/css/fwtoolkit/remote_options_field.css +297 -0
  51. package/dist/css/fwtoolkit/reset.css +4 -3
  52. package/dist/css/fwtoolkit/resource_field.css +134 -0
  53. package/dist/css/fwtoolkit/sortable_list.css +160 -0
  54. package/dist/css/fwtoolkit/text.css +54 -15
  55. package/dist/css/fwtoolkit/token_input.css +189 -0
  56. package/dist/css/fwtoolkit/tokens.css +158 -0
  57. package/dist/css/fwtoolkit/tree_view.css +165 -0
  58. package/dist/css/fwtoolkit/two_pane_selector.css +150 -9
  59. package/dist/css/fwtoolkit/ui_tabs.css +41 -13
  60. package/dist/css/image-manager/dialog_usermedia.css +41 -41
  61. package/dist/css/manifest.json +29 -0
  62. package/dist/css/two_factor.css +0 -52
  63. package/dist/css/user_template_manager.css +6 -0
  64. package/dist/document_templates/editor.d.ts +3 -0
  65. package/dist/document_templates/editor.d.ts.map +1 -1
  66. package/dist/document_templates/editor.js +35 -18
  67. package/dist/document_templates/editor.js.map +1 -1
  68. package/dist/user/auth/two_factor.d.ts.map +1 -1
  69. package/dist/user/auth/two_factor.js +133 -157
  70. package/dist/user/auth/two_factor.js.map +1 -1
  71. package/package.json +9 -9
  72. package/src/document_templates/editor.ts +41 -21
  73. package/src/user/auth/two_factor.ts +203 -228
@@ -0,0 +1,189 @@
1
+ .fw-token-input {
2
+ display: grid;
3
+ gap: var(--fw-space-2);
4
+ min-width: 0;
5
+ color: var(--fw-text-primary);
6
+ }
7
+
8
+ .fw-token-input-label {
9
+ font-size: 0.875rem;
10
+ font-weight: 600;
11
+ line-height: 1.4;
12
+ }
13
+
14
+ .fw-token-input-control {
15
+ display: flex;
16
+ flex-wrap: wrap;
17
+ align-items: center;
18
+ gap: var(--fw-space-1);
19
+ min-width: 0;
20
+ min-height: var(--fw-control-height-sm);
21
+ padding: var(--fw-space-1);
22
+ border: 1px solid var(--fw-border-control);
23
+ border-radius: var(--fw-radius-control);
24
+ background: var(--fw-surface);
25
+ box-shadow: var(--fw-focus-ring-inset);
26
+ transition:
27
+ border-color var(--fw-motion-fast) var(--fw-motion-ease),
28
+ box-shadow var(--fw-motion-fast) var(--fw-motion-ease),
29
+ background-color var(--fw-motion-fast) var(--fw-motion-ease);
30
+ }
31
+
32
+ .fw-token-input-control:focus-within {
33
+ border-color: var(--fw-brand);
34
+ background: var(--fw-surface-1);
35
+ box-shadow: var(--fw-focus-ring);
36
+ }
37
+
38
+ .fw-token-input-list {
39
+ display: flex;
40
+ flex: 1 1 10rem;
41
+ flex-wrap: wrap;
42
+ gap: var(--fw-space-1);
43
+ min-width: 0;
44
+ }
45
+
46
+ .fw-token-input-list:empty {
47
+ display: none;
48
+ }
49
+
50
+ .fw-token-input-token {
51
+ display: inline-flex;
52
+ align-items: center;
53
+ max-width: 100%;
54
+ min-height: 2rem;
55
+ padding-left: var(--fw-space-3);
56
+ border: 1px solid var(--fw-border-subtle);
57
+ border-radius: var(--fw-radius-pill);
58
+ background: var(--fw-brand-tint);
59
+ color: var(--fw-text-primary);
60
+ }
61
+
62
+ .fw-token-input-token-label {
63
+ min-width: 0;
64
+ overflow-wrap: anywhere;
65
+ }
66
+
67
+ .fw-token-input-remove {
68
+ display: inline-grid;
69
+ flex: 0 0 2rem;
70
+ place-items: center;
71
+ width: 2rem;
72
+ height: 2rem;
73
+ margin-left: var(--fw-space-1);
74
+ padding: 0;
75
+ border: 0;
76
+ border-radius: var(--fw-radius-circle);
77
+ background: transparent;
78
+ color: var(--fw-text-secondary);
79
+ font-size: 1.25rem;
80
+ line-height: 1;
81
+ cursor: pointer;
82
+ }
83
+
84
+ .fw-token-input-remove:hover:not(:disabled) {
85
+ background: var(--fw-surface-3);
86
+ color: var(--fw-text-primary);
87
+ }
88
+
89
+ .fw-token-input-remove:focus-visible {
90
+ outline: none;
91
+ box-shadow: var(--fw-focus-ring);
92
+ }
93
+
94
+ .fw-token-input-remove:disabled {
95
+ cursor: not-allowed;
96
+ opacity: 0.55;
97
+ }
98
+
99
+ .fw-token-input-input {
100
+ flex: 1 1 8rem;
101
+ width: 8rem;
102
+ min-width: 0;
103
+ height: 2rem;
104
+ min-height: 2rem;
105
+ margin: 0;
106
+ padding: 0 var(--fw-space-1);
107
+ border: 0;
108
+ border-radius: var(--fw-radius-sm);
109
+ outline: none;
110
+ background: transparent;
111
+ box-shadow: none;
112
+ color: var(--fw-text-primary);
113
+ font: inherit;
114
+ font-size: 0.9375rem;
115
+ }
116
+
117
+ .fw-token-input-input::placeholder {
118
+ color: var(--fw-text-muted);
119
+ }
120
+
121
+ .fw-token-input-hint,
122
+ .fw-token-input-error {
123
+ margin: 0;
124
+ font-size: 0.8125rem;
125
+ line-height: 1.4;
126
+ }
127
+
128
+ .fw-token-input-hint {
129
+ color: var(--fw-text-secondary);
130
+ }
131
+
132
+ .fw-token-input-error {
133
+ color: var(--fw-danger-text);
134
+ }
135
+
136
+ .fw-token-input-error[hidden],
137
+ .fw-token-input-visually-hidden[hidden] {
138
+ display: none;
139
+ }
140
+
141
+ .fw-token-input-disabled .fw-token-input-control {
142
+ border-color: var(--fw-border-subtle);
143
+ background: var(--fw-surface-2);
144
+ cursor: not-allowed;
145
+ }
146
+
147
+ .fw-token-input-disabled .fw-token-input-input {
148
+ color: var(--fw-text-muted);
149
+ cursor: not-allowed;
150
+ }
151
+
152
+ .fw-token-input-busy .fw-token-input-control {
153
+ background: var(--fw-surface-2);
154
+ }
155
+
156
+ .fw-token-input-visually-hidden {
157
+ position: absolute;
158
+ width: 1px;
159
+ height: 1px;
160
+ margin: -1px;
161
+ padding: 0;
162
+ overflow: hidden;
163
+ clip: rect(0 0 0 0);
164
+ clip-path: inset(50%);
165
+ white-space: nowrap;
166
+ border: 0;
167
+ }
168
+
169
+ @media (max-width: 480px), (pointer: coarse) {
170
+ .fw-token-input-control {
171
+ padding: var(--fw-space-2);
172
+ }
173
+
174
+ .fw-token-input-input {
175
+ flex-basis: 100%;
176
+ }
177
+
178
+ .fw-token-input-remove {
179
+ flex-basis: var(--fw-hit-area);
180
+ width: var(--fw-hit-area);
181
+ height: var(--fw-hit-area);
182
+ }
183
+ }
184
+
185
+ @media (prefers-reduced-motion: reduce) {
186
+ .fw-token-input-control {
187
+ transition: none;
188
+ }
189
+ }
@@ -0,0 +1,158 @@
1
+ /*
2
+ * Design 5 semantic token layer.
3
+ *
4
+ * Load order: this file must come first (right after colors.css), because
5
+ * every other stylesheet consumes these tokens. The legacy tokens in
6
+ * colors.css (--main-*, --cs-*, --overview-*) are kept as aliases of the
7
+ * semantic layer below so that downstream repositories continue to work
8
+ * unchanged.
9
+ *
10
+ * Contrast rules (WCAG 2.2 AA) enforced by the palette:
11
+ * - --fw-brand (#50c95f) is a FILL only, never text on white (2.1:1).
12
+ * Text on brand fills must use --fw-text-on-brand (#292929, ~6.8:1).
13
+ * - --fw-accent (#1b57ff) may be used for text/links on white (5.4:1) and
14
+ * with white text on top (5.4:1).
15
+ * - Non-text UI (icons, control borders) must reach 3:1 on white, hence
16
+ * --fw-border-strong (#8c8c8c); --fw-border is decorative only.
17
+ */
18
+
19
+ :root {
20
+ /* Typography */
21
+ --fw-font-sans:
22
+ "Poppins", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto,
23
+ "Helvetica Neue", Arial, sans-serif;
24
+ --fw-font-serif:
25
+ "EB Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
26
+ --fw-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
27
+
28
+ --fw-font-size-xs: 11px;
29
+ --fw-font-size-sm: 12px;
30
+ --fw-font-size-md: 13px;
31
+ --fw-font-size-base: 14px;
32
+ --fw-font-size-lg: 15px;
33
+ --fw-font-size-xl: 16px;
34
+ --fw-font-size-2xl: 19px;
35
+ --fw-font-size-3xl: 22px;
36
+ --fw-font-size-title: 26px;
37
+ --fw-font-size-display: 33px;
38
+
39
+ --fw-font-weight-light: 300;
40
+ --fw-font-weight-normal: 400;
41
+ --fw-font-weight-medium: 500;
42
+ --fw-font-weight-semibold: 600;
43
+
44
+ --fw-line-height-tight: 1.2;
45
+ --fw-line-height-base: 1.4;
46
+ --fw-line-height-relaxed: 1.6;
47
+
48
+ /* Text */
49
+ --fw-text-primary: #3a3a3a;
50
+ /* Secondary text must pass AA at body sizes: #848383 only reaches
51
+ 3.8:1, so the design's "muted" grey is used here instead. */
52
+ --fw-text-secondary: #656565;
53
+ --fw-text-muted: #515151;
54
+ /* Decorative / large-only hint colour from the design (#848383). */
55
+ --fw-text-tertiary: #848383;
56
+ --fw-text-inverse: #ffffff;
57
+ --fw-text-on-brand: #292929;
58
+ --fw-text-on-accent: #ffffff;
59
+
60
+ /* Surfaces */
61
+ --fw-surface: #ffffff;
62
+ --fw-surface-1: #fcfcfc;
63
+ --fw-surface-2: #f0f0f0;
64
+ --fw-surface-3: #eeeeee;
65
+ --fw-surface-inverse: #3a3a3a;
66
+
67
+ /* Borders */
68
+ --fw-border: #c4c4c4;
69
+ --fw-border-strong: #8c8c8c;
70
+ --fw-border-subtle: #e5e5e5;
71
+ --fw-border-control: #8c8c8c;
72
+
73
+ /* Brand (green) — fills only */
74
+ --fw-brand: #50c95f;
75
+ --fw-brand-hover: #46ad53;
76
+ --fw-brand-active: #35883f;
77
+ --fw-brand-tint: #edfaef;
78
+ --fw-brand-tint-2: #ceead2;
79
+ --fw-brand-tint-3: rgb(80 201 95 / 10%);
80
+
81
+ /* Accent (blue) — text and fills */
82
+ --fw-accent: #1b57ff;
83
+ --fw-accent-hover: #3269fd;
84
+ --fw-accent-active: #1d4bcd;
85
+ --fw-accent-tint: #e8eefe;
86
+
87
+ /* Neutral control (gray pill buttons) */
88
+ --fw-neutral: #f0f0f0;
89
+ --fw-neutral-hover: #e2e2e2;
90
+ --fw-neutral-active: #d2d2d2;
91
+ --fw-neutral-text: #3a3a3a;
92
+
93
+ /* Status */
94
+ --fw-danger: #fc6310;
95
+ --fw-danger-text: #c22c00;
96
+ --fw-warning: #f5c518;
97
+ /* Success fill takes white text at 4.5:1+ (the mock's lighter green
98
+ only reached ~4.4:1). */
99
+ --fw-success: #2f7d38;
100
+ --fw-info: #1b57ff;
101
+ --fw-highlight: #fffad0;
102
+
103
+ /* Overlays & elevation */
104
+ --fw-overlay: rgb(0 0 0 / 70%);
105
+ --fw-shadow-1: 0 1px 2px rgb(0 0 0 / 8%);
106
+ --fw-shadow-2: 0 4px 16px rgb(0 0 0 / 12%);
107
+ --fw-shadow-3: 0 12px 40px rgb(0 0 0 / 18%);
108
+
109
+ /* Focus — single consistent ring, ≥3:1 against both white and brand */
110
+ --fw-focus: #1b57ff;
111
+ --fw-focus-ring: 0 0 0 2px var(--fw-surface), 0 0 0 4px var(--fw-focus);
112
+ --fw-focus-ring-inset: inset 0 0 0 2px var(--fw-focus);
113
+
114
+ /* Radii */
115
+ --fw-radius-pill: 30px;
116
+ --fw-radius-card: 30px;
117
+ --fw-radius-lg: 16px;
118
+ --fw-radius-md: 8px;
119
+ --fw-radius-sm: 4px;
120
+ --fw-radius-control: 3px;
121
+ --fw-radius-circle: 50%;
122
+
123
+ /* Sizing */
124
+ --fw-control-height: 60px;
125
+ --fw-control-height-sm: 44px;
126
+ --fw-icon-button: 60px;
127
+ --fw-icon-button-sm: 44px;
128
+ --fw-topbar-height: 100px;
129
+ --fw-hit-area: 44px;
130
+
131
+ /* Spacing */
132
+ --fw-space-1: 4px;
133
+ --fw-space-2: 8px;
134
+ --fw-space-3: 12px;
135
+ --fw-space-4: 16px;
136
+ --fw-space-5: 24px;
137
+ --fw-space-6: 32px;
138
+ --fw-space-7: 48px;
139
+
140
+ /* Motion */
141
+ --fw-motion-fast: 120ms;
142
+ --fw-motion-base: 200ms;
143
+ --fw-motion-ease: cubic-bezier(0.2, 0, 0, 1);
144
+
145
+ /* Layering (kept in sync with dialog.ts / overview menus) */
146
+ --fw-z-overlay: 100;
147
+ --fw-z-dialog: 1000;
148
+ --fw-z-menu: 1100;
149
+ --fw-z-tooltip: 1200;
150
+ --fw-z-alert: 1300;
151
+ }
152
+
153
+ @media (prefers-reduced-motion: reduce) {
154
+ :root {
155
+ --fw-motion-fast: 0ms;
156
+ --fw-motion-base: 0ms;
157
+ }
158
+ }
@@ -0,0 +1,165 @@
1
+ .fw-tree-view {
2
+ box-sizing: border-box;
3
+ width: 100%;
4
+ max-height: 28rem;
5
+ overflow: auto;
6
+ color: var(--fw-text-primary);
7
+ background-color: var(--fw-surface);
8
+ border: 1px solid var(--fw-border-subtle);
9
+ border-radius: var(--fw-radius-md);
10
+ font-family: var(--fw-font-sans);
11
+ font-size: var(--fw-font-size-base);
12
+ }
13
+
14
+ .fw-tree-view [hidden] {
15
+ display: none;
16
+ }
17
+
18
+ .fw-tree-view .fw-tree-view-list,
19
+ .fw-tree-view .fw-tree-view-group {
20
+ box-sizing: border-box;
21
+ margin: 0;
22
+ padding: 0;
23
+ list-style: none;
24
+ }
25
+
26
+ .fw-tree-view .fw-tree-view-list {
27
+ padding: var(--fw-space-2);
28
+ }
29
+
30
+ .fw-tree-view .fw-tree-view-group {
31
+ padding-inline-start: var(--fw-space-5);
32
+ }
33
+
34
+ .fw-tree-view .fw-tree-view-item {
35
+ margin: 0;
36
+ padding: 0;
37
+ list-style: none;
38
+ border-radius: var(--fw-radius-sm);
39
+ color: inherit;
40
+ }
41
+
42
+ .fw-tree-view .fw-tree-view-item-content {
43
+ box-sizing: border-box;
44
+ display: flex;
45
+ align-items: center;
46
+ gap: var(--fw-space-1);
47
+ min-height: var(--fw-hit-area);
48
+ padding-inline-end: var(--fw-space-2);
49
+ border-radius: var(--fw-radius-sm);
50
+ }
51
+
52
+ .fw-tree-view
53
+ .fw-tree-view-item:hover:not(.fw-disabled)
54
+ > .fw-tree-view-item-content {
55
+ background-color: var(--fw-surface-2);
56
+ }
57
+
58
+ .fw-tree-view .fw-tree-view-item.fw-selected > .fw-tree-view-item-content {
59
+ background-color: var(--fw-brand-tint-3);
60
+ box-shadow: inset 3px 0 0 var(--fw-brand-active);
61
+ }
62
+
63
+ .fw-tree-view .fw-tree-view-item:focus-visible {
64
+ outline: 2px solid var(--fw-focus);
65
+ outline-offset: -2px;
66
+ }
67
+
68
+ .fw-tree-view .fw-tree-view-toggle,
69
+ .fw-tree-view .fw-tree-view-toggle-spacer {
70
+ flex: 0 0 auto;
71
+ width: var(--fw-hit-area);
72
+ height: var(--fw-hit-area);
73
+ }
74
+
75
+ .fw-tree-view .fw-tree-view-toggle {
76
+ appearance: none;
77
+ display: inline-grid;
78
+ place-items: center;
79
+ margin: 0;
80
+ padding: 0;
81
+ border: 0;
82
+ border-radius: var(--fw-radius-sm);
83
+ background: transparent;
84
+ color: var(--fw-text-secondary);
85
+ cursor: pointer;
86
+ }
87
+
88
+ .fw-tree-view .fw-tree-view-toggle:hover:not(:disabled) {
89
+ background-color: var(--fw-surface-3);
90
+ color: var(--fw-text-primary);
91
+ }
92
+
93
+ .fw-tree-view .fw-tree-view-toggle:focus-visible {
94
+ outline: 2px solid var(--fw-focus);
95
+ outline-offset: -2px;
96
+ }
97
+
98
+ .fw-tree-view .fw-tree-view-toggle span {
99
+ width: 0;
100
+ height: 0;
101
+ border-block-start: 5px solid transparent;
102
+ border-block-end: 5px solid transparent;
103
+ border-inline-start: 7px solid currentColor;
104
+ transform: rotate(0deg);
105
+ transform-origin: 35% 50%;
106
+ }
107
+
108
+ .fw-tree-view
109
+ .fw-tree-view-item[aria-expanded="true"]
110
+ .fw-tree-view-toggle
111
+ span {
112
+ transform: rotate(90deg);
113
+ }
114
+
115
+ .fw-tree-view .fw-tree-view-label {
116
+ min-width: 0;
117
+ overflow-wrap: anywhere;
118
+ }
119
+
120
+ .fw-tree-view .fw-tree-view-state {
121
+ margin-inline-start: auto;
122
+ color: var(--fw-text-secondary);
123
+ font-size: var(--fw-font-size-sm);
124
+ white-space: nowrap;
125
+ }
126
+
127
+ .fw-tree-view .fw-tree-view-error {
128
+ color: var(--fw-danger-text);
129
+ }
130
+
131
+ .fw-tree-view .fw-disabled > .fw-tree-view-item-content {
132
+ color: var(--fw-text-secondary);
133
+ cursor: default;
134
+ }
135
+
136
+ .fw-tree-view .fw-disabled .fw-tree-view-toggle:disabled {
137
+ opacity: 0.4;
138
+ cursor: default;
139
+ }
140
+
141
+ .fw-tree-view .fw-loading > .fw-tree-view-item-content {
142
+ box-shadow: inset 3px 0 0 var(--fw-accent);
143
+ }
144
+
145
+ .fw-tree-view .fw-load-error > .fw-tree-view-item-content {
146
+ box-shadow: inset 3px 0 0 var(--fw-danger-text);
147
+ }
148
+
149
+ .fw-tree-view .fw-tree-view-status {
150
+ position: absolute;
151
+ width: 1px;
152
+ height: 1px;
153
+ margin: -1px;
154
+ padding: 0;
155
+ overflow: hidden;
156
+ clip: rect(0, 0, 0, 0);
157
+ white-space: nowrap;
158
+ border: 0;
159
+ }
160
+
161
+ @media (prefers-reduced-motion: reduce) {
162
+ .fw-tree-view .fw-tree-view-toggle span {
163
+ transition: none;
164
+ }
165
+ }
@@ -1,13 +1,29 @@
1
1
  .fw-ar-container {
2
- display: inline-block;
3
- width: 338px;
2
+ display: flex;
3
+ flex-direction: column;
4
+ box-sizing: border-box;
5
+ width: min(338px, 100%);
6
+ min-width: 0;
4
7
  height: 360px;
5
- background-color: var(--cs-white-background);
6
- border: solid 1px var(--cs-white-border);
8
+ background-color: var(--fw-surface);
9
+ border: solid 1px var(--fw-border-subtle);
10
+ border-radius: var(--fw-radius-md);
7
11
  vertical-align: middle;
8
- padding: 20px 14px 0;
12
+ padding: 12px;
9
13
  overflow-y: auto;
14
+ overflow-x: hidden;
10
15
  margin-bottom: 16px;
16
+ font-family: var(--fw-font-sans);
17
+ }
18
+
19
+ .fw-ar-container > .fw-green-title {
20
+ flex: 0 0 auto;
21
+ margin: 0 0 var(--fw-space-1);
22
+ }
23
+
24
+ .fw-ar-container:focus-visible {
25
+ outline: 2px solid var(--fw-focus);
26
+ outline-offset: 2px;
11
27
  }
12
28
 
13
29
  .fw-ar-button {
@@ -17,22 +33,107 @@
17
33
  cursor: pointer;
18
34
  }
19
35
 
36
+ .fw-ar-button:disabled {
37
+ cursor: default;
38
+ opacity: 0.5;
39
+ }
40
+
20
41
  .fw-two-pane-selector {
21
- display: flex;
42
+ display: grid;
43
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
22
44
  align-items: center;
45
+ gap: var(--fw-space-2);
23
46
  }
24
47
 
25
48
  .fw-two-pane-list {
26
- height: calc(100% - 40px);
27
- overflow-y: auto;
49
+ flex: 1 1 auto;
50
+ min-height: 0;
51
+ overflow: visible;
52
+ }
53
+
54
+ .fw-two-pane-row {
55
+ display: flex;
56
+ align-items: center;
57
+ gap: var(--fw-space-1);
58
+ border-radius: var(--fw-radius-md);
28
59
  }
29
60
 
30
61
  .fw-two-pane-item {
62
+ appearance: none;
63
+ display: flex;
64
+ flex: 1 1 auto;
65
+ align-items: center;
66
+ min-width: 0;
67
+ min-height: var(--fw-hit-area);
68
+ padding: 0 var(--fw-space-3);
69
+ border: 0;
70
+ border-radius: var(--fw-radius-md);
71
+ background: transparent;
72
+ color: inherit;
73
+ font: inherit;
74
+ text-align: left;
31
75
  cursor: pointer;
76
+ transition: background-color var(--fw-motion-fast) var(--fw-motion-ease);
77
+ }
78
+
79
+ .fw-two-pane-item:hover:not(:disabled) {
80
+ background-color: var(--fw-surface-2);
32
81
  }
33
82
 
34
83
  .fw-two-pane-item.fw-selected {
35
- background-color: var(--cs-light-background-hover);
84
+ background-color: var(--fw-brand-tint-3);
85
+ color: var(--fw-text-primary);
86
+ font-weight: var(--fw-font-weight-medium);
87
+ }
88
+
89
+ .fw-two-pane-item:focus-visible,
90
+ .fw-two-pane-order:focus-visible {
91
+ outline: 2px solid var(--fw-focus);
92
+ outline-offset: -2px;
93
+ }
94
+
95
+ .fw-two-pane-item:disabled {
96
+ cursor: default;
97
+ }
98
+
99
+ .fw-two-pane-order-actions {
100
+ display: inline-flex;
101
+ flex: 0 0 auto;
102
+ gap: 2px;
103
+ }
104
+
105
+ .fw-two-pane-order {
106
+ appearance: none;
107
+ display: inline-flex;
108
+ align-items: center;
109
+ justify-content: center;
110
+ width: var(--fw-hit-area);
111
+ height: var(--fw-hit-area);
112
+ padding: 0;
113
+ border: 0;
114
+ border-radius: var(--fw-radius-sm);
115
+ background: transparent;
116
+ color: var(--fw-text-secondary);
117
+ cursor: pointer;
118
+ }
119
+
120
+ .fw-two-pane-order:hover:not(:disabled) {
121
+ background-color: var(--fw-surface-2);
122
+ color: var(--fw-text-primary);
123
+ }
124
+
125
+ .fw-two-pane-order:disabled {
126
+ opacity: 0.35;
127
+ cursor: default;
128
+ }
129
+
130
+ .fw-two-pane-row.fw-dragging {
131
+ opacity: 0.5;
132
+ }
133
+
134
+ .fw-two-pane-row.fw-drop-target {
135
+ outline: 2px dashed var(--fw-focus);
136
+ outline-offset: -2px;
36
137
  }
37
138
 
38
139
  .fw-two-pane-controls {
@@ -43,3 +144,43 @@
43
144
  display: block;
44
145
  margin: 8px auto;
45
146
  }
147
+
148
+ .fw-two-pane-status {
149
+ position: absolute;
150
+ width: 1px;
151
+ height: 1px;
152
+ padding: 0;
153
+ margin: -1px;
154
+ overflow: hidden;
155
+ clip: rect(0, 0, 0, 0);
156
+ white-space: nowrap;
157
+ border: 0;
158
+ }
159
+
160
+ @media (max-width: 720px) {
161
+ .fw-two-pane-selector {
162
+ grid-template-columns: minmax(0, 1fr);
163
+ }
164
+
165
+ .fw-two-pane-controls {
166
+ display: flex;
167
+ justify-content: center;
168
+ }
169
+
170
+ .fw-two-pane-controls .fw-ar-button {
171
+ display: inline-block;
172
+ margin: 0 var(--fw-space-2);
173
+ }
174
+
175
+ .fw-ar-container {
176
+ width: 100%;
177
+ height: auto;
178
+ max-height: 320px;
179
+ }
180
+ }
181
+
182
+ @media (prefers-reduced-motion: reduce) {
183
+ .fw-two-pane-item {
184
+ transition: none;
185
+ }
186
+ }