@omnigrid/style 0.1.3 → 0.1.5

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 (2) hide show
  1. package/dist/index.css +139 -16
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -101,34 +101,89 @@
101
101
 
102
102
  .omnigrid-slot {
103
103
  display: flex;
104
+ box-sizing: border-box;
104
105
  }
105
106
 
106
107
  .omnigrid-slot-top,
107
108
  .omnigrid-slot-bottom {
109
+ flex-direction: row;
110
+ align-items: center;
111
+ justify-content: space-between;
108
112
  width: 100%;
109
113
  padding: 4px 8px;
110
114
  background: var(--omnigrid-slot-background);
111
115
  }
112
116
 
117
+ .omnigrid-slot-top .omnigrid-slot-pos-start,
118
+ .omnigrid-slot-bottom .omnigrid-slot-pos-start {
119
+ flex: 1 1 0;
120
+ display: flex;
121
+ justify-content: flex-start;
122
+ align-items: center;
123
+ }
124
+
125
+ .omnigrid-slot-top .omnigrid-slot-pos-center,
126
+ .omnigrid-slot-bottom .omnigrid-slot-pos-center {
127
+ flex: 1 1 0;
128
+ display: flex;
129
+ justify-content: center;
130
+ align-items: center;
131
+ }
132
+
133
+ .omnigrid-slot-top .omnigrid-slot-pos-end,
134
+ .omnigrid-slot-bottom .omnigrid-slot-pos-end {
135
+ flex: 1 1 0;
136
+ display: flex;
137
+ justify-content: flex-end;
138
+ align-items: center;
139
+ }
140
+
113
141
  .omnigrid-slot-left,
114
142
  .omnigrid-slot-right {
143
+ flex-direction: column;
144
+ align-items: center;
145
+ justify-content: space-between;
115
146
  flex-shrink: 0;
116
- padding: 0 8px;
147
+ padding: 8px 4px;
117
148
  background: var(--omnigrid-slot-background);
118
149
  align-self: stretch;
119
150
  }
120
151
 
121
- .omnigrid-slot-item-group {
152
+ .omnigrid-slot-left .omnigrid-slot-pos-start,
153
+ .omnigrid-slot-right .omnigrid-slot-pos-start {
154
+ flex: 1 1 0;
122
155
  display: flex;
123
- gap: 8px;
156
+ flex-direction: column;
157
+ justify-content: flex-start;
158
+ align-items: center;
124
159
  }
125
160
 
126
- .omnigrid-slot-pos-center {
161
+ .omnigrid-slot-left .omnigrid-slot-pos-center,
162
+ .omnigrid-slot-right .omnigrid-slot-pos-center {
163
+ flex: 1 1 0;
164
+ display: flex;
165
+ flex-direction: column;
127
166
  justify-content: center;
167
+ align-items: center;
128
168
  }
129
169
 
130
- .omnigrid-slot-pos-end {
170
+ .omnigrid-slot-left .omnigrid-slot-pos-end,
171
+ .omnigrid-slot-right .omnigrid-slot-pos-end {
172
+ flex: 1 1 0;
173
+ display: flex;
174
+ flex-direction: column;
131
175
  justify-content: flex-end;
176
+ align-items: center;
177
+ }
178
+
179
+ .omnigrid-slot-item-group {
180
+ display: flex;
181
+ gap: 8px;
182
+ }
183
+
184
+ .omnigrid-slot-left .omnigrid-slot-item-group,
185
+ .omnigrid-slot-right .omnigrid-slot-item-group {
186
+ flex-direction: column;
132
187
  }
133
188
 
134
189
  .omnigrid-slot-item {
@@ -136,25 +191,93 @@
136
191
  align-items: center;
137
192
  }
138
193
 
139
- /* Headless pager (PaginationPlugin). */
140
- .omnigrid-pagination {
194
+ /* Reusable controls for slot-based plugin widgets. */
195
+ .omnigrid-control-bar {
141
196
  align-items: center;
142
197
  display: flex;
143
- gap: 8px;
198
+ gap: 24px;
199
+ }
200
+
201
+ .omnigrid-control-group {
202
+ align-items: center;
203
+ display: inline-flex;
204
+ gap: 4px;
205
+ }
206
+
207
+ .omnigrid-popup-control {
208
+ position: relative;
209
+ }
210
+
211
+ .omnigrid-control-button,
212
+ .omnigrid-popup-option {
213
+ background: transparent;
214
+ border: 0;
215
+ color: inherit;
216
+ font: inherit;
217
+ cursor: pointer;
144
218
  }
145
219
 
146
- .omnigrid-pagination-btn {
147
- background: var(--omnigrid-button-background);
148
- border: 1px solid var(--omnigrid-button-border);
220
+ .omnigrid-control-button {
221
+ white-space: nowrap;
222
+ }
223
+
224
+ .omnigrid-popup-menu {
225
+ background: var(--omnigrid-grid-background, #fff);
226
+ border: 1px solid var(--omnigrid-grid-border, #ccc);
149
227
  border-radius: 4px;
150
- color: var(--omnigrid-button-color);
228
+ bottom: calc(100% + 6px);
229
+ display: flex;
230
+ flex-direction: column;
231
+ left: 0;
232
+ min-width: 100%;
233
+ padding: 4px;
234
+ position: absolute;
235
+ z-index: 10;
236
+ }
237
+
238
+ .omnigrid-popup-option {
239
+ padding: 4px 8px;
240
+ text-align: left;
241
+ }
242
+
243
+ .omnigrid-popup-option:hover,
244
+ .omnigrid-popup-option[aria-selected="true"] {
245
+ background: var(--omnigrid-cell-hover-background, #eee);
246
+ }
247
+
248
+ .omnigrid-number-input {
249
+ background: var(--omnigrid-grid-background, #fff);
250
+ border: 1px solid var(--omnigrid-grid-border, #ccc);
251
+ border-radius: 3px;
252
+ color: var(--omnigrid-cell-color, currentColor);
253
+ font: inherit;
254
+ padding: 2px 4px;
255
+ }
256
+
257
+ .omnigrid-icon {
258
+ display: block;
259
+ flex: 0 0 auto;
260
+ }
261
+
262
+ .omnigrid-icon-button {
263
+ align-items: center;
264
+ background: transparent;
265
+ border: 0;
266
+ border-radius: 3px;
267
+ color: inherit;
151
268
  cursor: pointer;
152
- font-size: 12px;
153
- line-height: 1.4;
154
- padding: 3px 10px;
269
+ display: inline-flex;
270
+ justify-content: center;
271
+ line-height: 1;
272
+ padding: 4px;
273
+ }
274
+
275
+ .omnigrid-icon-button:focus-visible {
276
+ outline: 2px solid currentColor;
277
+ outline-offset: 1px;
155
278
  }
156
279
 
157
- .omnigrid-pagination-btn:disabled {
280
+ .omnigrid-icon-button:disabled {
158
281
  cursor: default;
159
282
  opacity: 0.5;
160
283
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnigrid/style",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Shared styles for OmniGrid",
5
5
  "keywords": [
6
6
  "omnigrid",