@allxsmith/bestax-bulma 5.67.8 → 5.67.9
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/dist/bestax.css +1 -1
- package/dist/bestax.css.map +1 -1
- package/dist/esm/components/DataTable.js +2 -1
- package/dist/esm/components/DataTable.js.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/types/components/DataTable.d.ts +2 -1
- package/dist/types-cjs/components/DataTable.d.ts +2 -1
- package/dist/versions/bestax-no-dark-mode.css +1 -1
- package/dist/versions/bestax-no-dark-mode.css.map +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
- package/dist/versions/bestax-no-helpers.css +1 -1
- package/dist/versions/bestax-no-helpers.css.map +1 -1
- package/dist/versions/bestax-prefixed.css +1 -1
- package/dist/versions/bestax-prefixed.css.map +1 -1
- package/package.json +1 -1
- package/src/scss/components/_datatable.scss +14 -2
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// Bestax Extras - DataTable Styles
|
|
2
2
|
// DataTable renders Bulma's own table, checkboxes and pager, which Bulma and
|
|
3
3
|
// the Checkbox partial style. This adds what Bulma has no class for: the
|
|
4
|
-
// toolbar above the table, the button a sortable header holds,
|
|
5
|
-
// indicator that shows which way it sorts
|
|
4
|
+
// toolbar above the table, the button a sortable header holds, the
|
|
5
|
+
// indicator that shows which way it sorts, and the height of a loading
|
|
6
|
+
// row's skeleton lines.
|
|
6
7
|
//
|
|
7
8
|
// The sort button is styled on its own class rather than inside
|
|
8
9
|
// `.data-table`, so a table built from `useDataTable`'s props, with no
|
|
@@ -119,6 +120,17 @@ $-descending: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'
|
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
|
|
123
|
+
// While `loading`, each cell holds one skeleton line. Bulma draws a skeleton
|
|
124
|
+
// line half a line of text tall, which left a loading row shorter than the
|
|
125
|
+
// row that replaces it, so the table jumped when the data came. This one is
|
|
126
|
+
// a line of the cell's text tall, as Stat's loading Skeleton is a line of its
|
|
127
|
+
// figure. The extra class outranks Bulma's rule whichever sheet loads first,
|
|
128
|
+
// and a browser without `lh` keeps Bulma's height.
|
|
129
|
+
.#{iv.$class-prefix}data-table-skeleton.#{iv.$class-prefix}skeleton-lines
|
|
130
|
+
> div {
|
|
131
|
+
height: 1lh;
|
|
132
|
+
}
|
|
133
|
+
|
|
122
134
|
// The sorted header says which way in `aria-sort`, so the indicator reads it
|
|
123
135
|
// from there, and markup built from `useDataTable`'s props shows it too.
|
|
124
136
|
th[aria-sort='ascending'] > .#{iv.$class-prefix}data-table-sort::after {
|