@allxsmith/bestax-bulma 5.57.4 → 5.58.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/dist/bestax.css +1 -1
- package/dist/bestax.css.map +1 -1
- package/dist/esm/components/Avatars.js +2 -2
- package/dist/esm/components/Avatars.js.map +1 -1
- package/dist/esm/components/Badge.js +2 -2
- package/dist/esm/components/Badge.js.map +1 -1
- package/dist/esm/components/Pagination.js +2 -2
- package/dist/esm/components/Pagination.js.map +1 -1
- package/dist/esm/components/Steps.js +2 -2
- package/dist/esm/components/Steps.js.map +1 -1
- package/dist/esm/components/TreeView.js +7 -5
- package/dist/esm/components/TreeView.js.map +1 -1
- package/dist/esm/components/useDataTable.js +2 -2
- package/dist/esm/components/useDataTable.js.map +1 -1
- package/dist/esm/elements/NumberFormatter.js +42 -0
- package/dist/esm/elements/NumberFormatter.js.map +1 -0
- package/dist/esm/elements/RingProgress.js +2 -2
- package/dist/esm/elements/RingProgress.js.map +1 -1
- package/dist/esm/form/Dropzone.js +2 -2
- package/dist/esm/form/Dropzone.js.map +1 -1
- package/dist/esm/form/File.js +2 -2
- package/dist/esm/form/File.js.map +1 -1
- package/dist/esm/form/Rate.js +2 -2
- package/dist/esm/form/Rate.js.map +1 -1
- package/dist/esm/form/Slider.js +2 -2
- package/dist/esm/form/Slider.js.map +1 -1
- package/dist/esm/form/Taginput.js +2 -2
- package/dist/esm/form/Taginput.js.map +1 -1
- package/dist/esm/form/_colorInternals/pickerState.js +2 -2
- package/dist/esm/form/_colorInternals/pickerState.js.map +1 -1
- package/dist/esm/helpers/LocaleProvider.js +13 -6
- package/dist/esm/helpers/LocaleProvider.js.map +1 -1
- package/dist/esm/helpers/localeFormat.js +196 -36
- package/dist/esm/helpers/localeFormat.js.map +1 -1
- package/dist/esm/helpers/useTreeView.js +54 -20
- package/dist/esm/helpers/useTreeView.js.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs +312 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/TreeView.d.ts +20 -11
- package/dist/types/elements/NumberFormatter.d.ts +62 -0
- package/dist/types/helpers/LocaleProvider.d.ts +7 -0
- package/dist/types/helpers/localeFormat.d.ts +30 -8
- package/dist/types/helpers/useTreeView.d.ts +12 -6
- package/dist/types/index.d.ts +3 -0
- package/dist/types-cjs/components/TreeView.d.ts +20 -11
- package/dist/types-cjs/elements/NumberFormatter.d.ts +62 -0
- package/dist/types-cjs/helpers/LocaleProvider.d.ts +7 -0
- package/dist/types-cjs/helpers/localeFormat.d.ts +30 -8
- package/dist/types-cjs/helpers/useTreeView.d.ts +12 -6
- package/dist/types-cjs/index.d.ts +3 -0
- 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/form/_field.scss +40 -0
- package/src/scss/form/_index.scss +1 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Field styles
|
|
2
|
+
// Extends Bulma's own field (`bulma/sass/form/tools`): a horizontal field's
|
|
3
|
+
// message goes under its control.
|
|
4
|
+
|
|
5
|
+
@use "bulma/sass/utilities/initial-variables" as iv;
|
|
6
|
+
|
|
7
|
+
// A horizontal `Field` wraps its children in `.field-body`, which Bulma makes
|
|
8
|
+
// a flex row from tablet up. A form component that renders a Field of its own
|
|
9
|
+
// (`Input`, `Checkboxes`, `Rate` and the rest, with `horizontal` and
|
|
10
|
+
// `message`) hands that body its control and its message, a `.help`, side by
|
|
11
|
+
// side, so the message sat beside the control. Bulma's own markup nests the
|
|
12
|
+
// two in an inner `.field`, where the message is under the control already.
|
|
13
|
+
//
|
|
14
|
+
// Here the body wraps when it holds a message of its own, and the message
|
|
15
|
+
// takes a whole line, so it sits under the control and the control keeps the
|
|
16
|
+
// width it has without one. A body with no message straight in it is left
|
|
17
|
+
// as Bulma lays it out. Below tablet the body is a block, the message is
|
|
18
|
+
// under the control there anyway, and neither rule changes anything. Both
|
|
19
|
+
// rules hang on the same `:has()`, so a browser without it leaves the body as
|
|
20
|
+
// Bulma lays it out; a full-width message in a row that doesn't wrap would
|
|
21
|
+
// squeeze the control instead.
|
|
22
|
+
.#{iv.$class-prefix}field-body:has(> .#{iv.$class-prefix}help) {
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.#{iv.$class-prefix}field-body:has(> .#{iv.$class-prefix}help)
|
|
27
|
+
> .#{iv.$class-prefix}help {
|
|
28
|
+
flex-basis: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Bulma spaces a field in the body from the one beside it with an end
|
|
32
|
+
// margin on every field but the last, and a message after it made the field
|
|
33
|
+
// not the last. With the message on a line of its own there is nothing
|
|
34
|
+
// beside it to keep apart, so the field (`Numberinput`'s, for one) keeps the
|
|
35
|
+
// width it has without a message. It outranks Bulma's rule rather than
|
|
36
|
+
// following it, so the order of the two stylesheets doesn't matter.
|
|
37
|
+
.#{iv.$class-prefix}field-body:has(> .#{iv.$class-prefix}help)
|
|
38
|
+
> .#{iv.$class-prefix}field:has(+ .#{iv.$class-prefix}help) {
|
|
39
|
+
margin-inline-end: 0;
|
|
40
|
+
}
|