@allxsmith/bestax-bulma 5.27.0 → 5.27.2
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/columns/Column.js +48 -0
- package/dist/esm/columns/Column.js.map +1 -0
- package/dist/esm/columns/Columns.js +53 -0
- package/dist/esm/columns/Columns.js.map +1 -0
- package/dist/esm/components/Avatar.js +299 -0
- package/dist/esm/components/Avatar.js.map +1 -0
- package/dist/esm/components/Avatars.js +81 -0
- package/dist/esm/components/Avatars.js.map +1 -0
- package/dist/esm/components/Badge.js +105 -0
- package/dist/esm/components/Badge.js.map +1 -0
- package/dist/esm/components/Breadcrumb.js +36 -0
- package/dist/esm/components/Breadcrumb.js.map +1 -0
- package/dist/esm/components/Card.js +252 -0
- package/dist/esm/components/Card.js.map +1 -0
- package/dist/esm/components/Carousel.js +351 -0
- package/dist/esm/components/Carousel.js.map +1 -0
- package/dist/esm/components/Collapse.js +193 -0
- package/dist/esm/components/Collapse.js.map +1 -0
- package/dist/esm/components/Collapses.js +99 -0
- package/dist/esm/components/Collapses.js.map +1 -0
- package/dist/esm/components/Dialog.js +230 -0
- package/dist/esm/components/Dialog.js.map +1 -0
- package/dist/esm/components/Dropdown.js +362 -0
- package/dist/esm/components/Dropdown.js.map +1 -0
- package/dist/esm/components/Loading.js +87 -0
- package/dist/esm/components/Loading.js.map +1 -0
- package/dist/esm/components/Menu.js +117 -0
- package/dist/esm/components/Menu.js.map +1 -0
- package/dist/esm/components/Message.js +56 -0
- package/dist/esm/components/Message.js.map +1 -0
- package/dist/esm/components/Modal.js +354 -0
- package/dist/esm/components/Modal.js.map +1 -0
- package/dist/esm/components/Navbar.js +287 -0
- package/dist/esm/components/Navbar.js.map +1 -0
- package/dist/esm/components/Pagination.js +191 -0
- package/dist/esm/components/Pagination.js.map +1 -0
- package/dist/esm/components/Panel.js +100 -0
- package/dist/esm/components/Panel.js.map +1 -0
- package/dist/esm/components/Popover.js +298 -0
- package/dist/esm/components/Popover.js.map +1 -0
- package/dist/esm/components/Reveal.js +157 -0
- package/dist/esm/components/Reveal.js.map +1 -0
- package/dist/esm/components/Sidebar.js +209 -0
- package/dist/esm/components/Sidebar.js.map +1 -0
- package/dist/esm/components/Steps.js +128 -0
- package/dist/esm/components/Steps.js.map +1 -0
- package/dist/esm/components/Tabs.js +335 -0
- package/dist/esm/components/Tabs.js.map +1 -0
- package/dist/esm/components/Toast.js +322 -0
- package/dist/esm/components/Toast.js.map +1 -0
- package/dist/esm/components/Tooltip.js +202 -0
- package/dist/esm/components/Tooltip.js.map +1 -0
- package/dist/esm/components/collapsesContext.js +12 -0
- package/dist/esm/components/collapsesContext.js.map +1 -0
- package/dist/esm/elements/Block.js +29 -0
- package/dist/esm/elements/Block.js.map +1 -0
- package/dist/esm/elements/Box.js +32 -0
- package/dist/esm/elements/Box.js.map +1 -0
- package/dist/esm/elements/Button.js +139 -0
- package/dist/esm/elements/Button.js.map +1 -0
- package/dist/esm/elements/Buttons.js +42 -0
- package/dist/esm/elements/Buttons.js.map +1 -0
- package/dist/esm/elements/Code.js +25 -0
- package/dist/esm/elements/Code.js.map +1 -0
- package/dist/esm/elements/Content.js +33 -0
- package/dist/esm/elements/Content.js.map +1 -0
- package/dist/esm/elements/Delete.js +35 -0
- package/dist/esm/elements/Delete.js.map +1 -0
- package/dist/esm/elements/Divider.js +27 -0
- package/dist/esm/elements/Divider.js.map +1 -0
- package/dist/esm/elements/Emphasis.js +25 -0
- package/dist/esm/elements/Emphasis.js.map +1 -0
- package/dist/esm/elements/Figure.js +58 -0
- package/dist/esm/elements/Figure.js.map +1 -0
- package/dist/esm/elements/Icon.js +256 -0
- package/dist/esm/elements/Icon.js.map +1 -0
- package/dist/esm/elements/IconText.js +36 -0
- package/dist/esm/elements/IconText.js.map +1 -0
- package/dist/esm/elements/Image.js +46 -0
- package/dist/esm/elements/Image.js.map +1 -0
- package/dist/esm/elements/Link.js +36 -0
- package/dist/esm/elements/Link.js.map +1 -0
- package/dist/esm/elements/LinkButton.js +37 -0
- package/dist/esm/elements/LinkButton.js.map +1 -0
- package/dist/esm/elements/ListItem.js +28 -0
- package/dist/esm/elements/ListItem.js.map +1 -0
- package/dist/esm/elements/Loader.js +37 -0
- package/dist/esm/elements/Loader.js.map +1 -0
- package/dist/esm/elements/Notification.js +316 -0
- package/dist/esm/elements/Notification.js.map +1 -0
- package/dist/esm/elements/OrderedList.js +31 -0
- package/dist/esm/elements/OrderedList.js.map +1 -0
- package/dist/esm/elements/Paragraph.js +28 -0
- package/dist/esm/elements/Paragraph.js.map +1 -0
- package/dist/esm/elements/Pre.js +25 -0
- package/dist/esm/elements/Pre.js.map +1 -0
- package/dist/esm/elements/Progress.js +33 -0
- package/dist/esm/elements/Progress.js.map +1 -0
- package/dist/esm/elements/Skeleton.js +30 -0
- package/dist/esm/elements/Skeleton.js.map +1 -0
- package/dist/esm/elements/Span.js +28 -0
- package/dist/esm/elements/Span.js.map +1 -0
- package/dist/esm/elements/Strong.js +25 -0
- package/dist/esm/elements/Strong.js.map +1 -0
- package/dist/esm/elements/SubTitle.js +51 -0
- package/dist/esm/elements/SubTitle.js.map +1 -0
- package/dist/esm/elements/Table.js +51 -0
- package/dist/esm/elements/Table.js.map +1 -0
- package/dist/esm/elements/Tag.js +49 -0
- package/dist/esm/elements/Tag.js.map +1 -0
- package/dist/esm/elements/Tags.js +34 -0
- package/dist/esm/elements/Tags.js.map +1 -0
- package/dist/esm/elements/Tbody.js +26 -0
- package/dist/esm/elements/Tbody.js.map +1 -0
- package/dist/esm/elements/Td.js +61 -0
- package/dist/esm/elements/Td.js.map +1 -0
- package/dist/esm/elements/Tfoot.js +26 -0
- package/dist/esm/elements/Tfoot.js.map +1 -0
- package/dist/esm/elements/Th.js +34 -0
- package/dist/esm/elements/Th.js.map +1 -0
- package/dist/esm/elements/Thead.js +26 -0
- package/dist/esm/elements/Thead.js.map +1 -0
- package/dist/esm/elements/Title.js +44 -0
- package/dist/esm/elements/Title.js.map +1 -0
- package/dist/esm/elements/Tr.js +31 -0
- package/dist/esm/elements/Tr.js.map +1 -0
- package/dist/esm/elements/UnorderedList.js +31 -0
- package/dist/esm/elements/UnorderedList.js.map +1 -0
- package/dist/esm/elements/iconProps.js +49 -0
- package/dist/esm/elements/iconProps.js.map +1 -0
- package/dist/esm/form/Autocomplete.js +279 -0
- package/dist/esm/form/Autocomplete.js.map +1 -0
- package/dist/esm/form/Checkbox.js +111 -0
- package/dist/esm/form/Checkbox.js.map +1 -0
- package/dist/esm/form/Checkboxes.js +90 -0
- package/dist/esm/form/Checkboxes.js.map +1 -0
- package/dist/esm/form/Control.js +79 -0
- package/dist/esm/form/Control.js.map +1 -0
- package/dist/esm/form/DateInput.js +88 -0
- package/dist/esm/form/DateInput.js.map +1 -0
- package/dist/esm/form/DateInputBase.js +263 -0
- package/dist/esm/form/DateInputBase.js.map +1 -0
- package/dist/esm/form/DateRangeInput.js +77 -0
- package/dist/esm/form/DateRangeInput.js.map +1 -0
- package/dist/esm/form/DateRangeInputBase.js +301 -0
- package/dist/esm/form/DateRangeInputBase.js.map +1 -0
- package/dist/esm/form/DateTimeInput.js +88 -0
- package/dist/esm/form/DateTimeInput.js.map +1 -0
- package/dist/esm/form/DateTimeInputBase.js +333 -0
- package/dist/esm/form/DateTimeInputBase.js.map +1 -0
- package/dist/esm/form/Field.js +167 -0
- package/dist/esm/form/Field.js.map +1 -0
- package/dist/esm/form/File.js +112 -0
- package/dist/esm/form/File.js.map +1 -0
- package/dist/esm/form/FormContext.js +194 -0
- package/dist/esm/form/FormContext.js.map +1 -0
- package/dist/esm/form/Input.js +88 -0
- package/dist/esm/form/Input.js.map +1 -0
- package/dist/esm/form/InputBase.js +40 -0
- package/dist/esm/form/InputBase.js.map +1 -0
- package/dist/esm/form/Numberinput.js +201 -0
- package/dist/esm/form/Numberinput.js.map +1 -0
- package/dist/esm/form/Radio.js +108 -0
- package/dist/esm/form/Radio.js.map +1 -0
- package/dist/esm/form/Radios.js +92 -0
- package/dist/esm/form/Radios.js.map +1 -0
- package/dist/esm/form/Rate.js +280 -0
- package/dist/esm/form/Rate.js.map +1 -0
- package/dist/esm/form/Select.js +81 -0
- package/dist/esm/form/Select.js.map +1 -0
- package/dist/esm/form/SelectBase.js +54 -0
- package/dist/esm/form/SelectBase.js.map +1 -0
- package/dist/esm/form/Slider.js +461 -0
- package/dist/esm/form/Slider.js.map +1 -0
- package/dist/esm/form/Switch.js +96 -0
- package/dist/esm/form/Switch.js.map +1 -0
- package/dist/esm/form/Taginput.js +351 -0
- package/dist/esm/form/Taginput.js.map +1 -0
- package/dist/esm/form/TextArea.js +77 -0
- package/dist/esm/form/TextArea.js.map +1 -0
- package/dist/esm/form/TextAreaBase.js +45 -0
- package/dist/esm/form/TextAreaBase.js.map +1 -0
- package/dist/esm/form/TimeInput.js +84 -0
- package/dist/esm/form/TimeInput.js.map +1 -0
- package/dist/esm/form/TimeInputBase.js +246 -0
- package/dist/esm/form/TimeInputBase.js.map +1 -0
- package/dist/esm/form/_pickerInternals/Calendar.js +760 -0
- package/dist/esm/form/_pickerInternals/Calendar.js.map +1 -0
- package/dist/esm/form/_pickerInternals/PickerPopover.js +95 -0
- package/dist/esm/form/_pickerInternals/PickerPopover.js.map +1 -0
- package/dist/esm/form/_pickerInternals/TimeWheels.js +721 -0
- package/dist/esm/form/_pickerInternals/TimeWheels.js.map +1 -0
- package/dist/esm/form/_pickerInternals/audioTick.js +109 -0
- package/dist/esm/form/_pickerInternals/audioTick.js.map +1 -0
- package/dist/esm/form/_pickerInternals/dateUtils.js +267 -0
- package/dist/esm/form/_pickerInternals/dateUtils.js.map +1 -0
- package/dist/esm/form/_pickerInternals/formatters.js +322 -0
- package/dist/esm/form/_pickerInternals/formatters.js.map +1 -0
- package/dist/esm/form/_pickerInternals/haptics.js +38 -0
- package/dist/esm/form/_pickerInternals/haptics.js.map +1 -0
- package/dist/esm/form/_pickerInternals/nativeInputSupport.js +25 -0
- package/dist/esm/form/_pickerInternals/nativeInputSupport.js.map +1 -0
- package/dist/esm/form/_pickerInternals/pickerTypes.js +50 -0
- package/dist/esm/form/_pickerInternals/pickerTypes.js.map +1 -0
- package/dist/esm/form/_pickerInternals/segmentMap.js +315 -0
- package/dist/esm/form/_pickerInternals/segmentMap.js.map +1 -0
- package/dist/esm/form/_pickerInternals/useNativeMobilePicker.js +49 -0
- package/dist/esm/form/_pickerInternals/useNativeMobilePicker.js.map +1 -0
- package/dist/esm/form/_pickerInternals/useSegmentedEntry.js +427 -0
- package/dist/esm/form/_pickerInternals/useSegmentedEntry.js.map +1 -0
- package/dist/esm/form/controlLoading.js +18 -0
- package/dist/esm/form/controlLoading.js.map +1 -0
- package/dist/esm/form/useAutoLabelId.js +88 -0
- package/dist/esm/form/useAutoLabelId.js.map +1 -0
- package/dist/esm/grid/Cell.js +35 -0
- package/dist/esm/grid/Cell.js.map +1 -0
- package/dist/esm/grid/Grid.js +51 -0
- package/dist/esm/grid/Grid.js.map +1 -0
- package/dist/esm/helpers/ClientOnly.js +33 -0
- package/dist/esm/helpers/ClientOnly.js.map +1 -0
- package/dist/esm/helpers/Config.js +60 -0
- package/dist/esm/helpers/Config.js.map +1 -0
- package/dist/esm/helpers/Theme.js +947 -0
- package/dist/esm/helpers/Theme.js.map +1 -0
- package/dist/esm/helpers/anchorAttrs.js +72 -0
- package/dist/esm/helpers/anchorAttrs.js.map +1 -0
- package/dist/esm/helpers/bulmaClassHelpers.js +415 -0
- package/dist/esm/helpers/bulmaClassHelpers.js.map +1 -0
- package/dist/esm/helpers/buttonType.js +24 -0
- package/dist/esm/helpers/buttonType.js.map +1 -0
- package/dist/esm/helpers/classNames.js +137 -0
- package/dist/esm/helpers/classNames.js.map +1 -0
- package/dist/esm/helpers/colorDeprecations.js +50 -0
- package/dist/esm/helpers/colorDeprecations.js.map +1 -0
- package/dist/esm/helpers/devWarnings.js +27 -0
- package/dist/esm/helpers/devWarnings.js.map +1 -0
- package/dist/esm/helpers/inertProps.js +27 -0
- package/dist/esm/helpers/inertProps.js.map +1 -0
- package/dist/esm/helpers/mergeBulmaStyles.js +20 -0
- package/dist/esm/helpers/mergeBulmaStyles.js.map +1 -0
- package/dist/esm/helpers/polymorphic.js +18 -0
- package/dist/esm/helpers/polymorphic.js.map +1 -0
- package/dist/esm/helpers/portal.js +76 -0
- package/dist/esm/helpers/portal.js.map +1 -0
- package/dist/esm/helpers/positionStacks.js +45 -0
- package/dist/esm/helpers/positionStacks.js.map +1 -0
- package/dist/esm/helpers/scrollLock.js +38 -0
- package/dist/esm/helpers/scrollLock.js.map +1 -0
- package/dist/esm/helpers/shadowDom.js +71 -0
- package/dist/esm/helpers/shadowDom.js.map +1 -0
- package/dist/esm/helpers/statusRegion.js +282 -0
- package/dist/esm/helpers/statusRegion.js.map +1 -0
- package/dist/esm/helpers/useAnchoredPosition.js +86 -0
- package/dist/esm/helpers/useAnchoredPosition.js.map +1 -0
- package/dist/esm/helpers/useBulmaClasses.js +158 -0
- package/dist/esm/helpers/useBulmaClasses.js.map +1 -0
- package/dist/esm/helpers/useClientLayoutEffect.js +13 -0
- package/dist/esm/helpers/useClientLayoutEffect.js.map +1 -0
- package/dist/esm/helpers/useColorClasses.js +84 -0
- package/dist/esm/helpers/useColorClasses.js.map +1 -0
- package/dist/esm/helpers/useFlexboxClasses.js +92 -0
- package/dist/esm/helpers/useFlexboxClasses.js.map +1 -0
- package/dist/esm/helpers/useFocusTrap.js +470 -0
- package/dist/esm/helpers/useFocusTrap.js.map +1 -0
- package/dist/esm/helpers/useIsHydrated.js +31 -0
- package/dist/esm/helpers/useIsHydrated.js.map +1 -0
- package/dist/esm/helpers/useOtherClasses.js +115 -0
- package/dist/esm/helpers/useOtherClasses.js.map +1 -0
- package/dist/esm/helpers/useSpacingClasses.js +82 -0
- package/dist/esm/helpers/useSpacingClasses.js.map +1 -0
- package/dist/esm/helpers/useTypographyClasses.js +93 -0
- package/dist/esm/helpers/useTypographyClasses.js.map +1 -0
- package/dist/esm/helpers/useVisibilityClasses.js +134 -0
- package/dist/esm/helpers/useVisibilityClasses.js.map +1 -0
- package/dist/esm/helpers/withSubComponents.js +24 -0
- package/dist/esm/helpers/withSubComponents.js.map +1 -0
- package/dist/esm/layout/Container.js +48 -0
- package/dist/esm/layout/Container.js.map +1 -0
- package/dist/esm/layout/Footer.js +33 -0
- package/dist/esm/layout/Footer.js.map +1 -0
- package/dist/esm/layout/Hero.js +90 -0
- package/dist/esm/layout/Hero.js.map +1 -0
- package/dist/esm/layout/Level.js +110 -0
- package/dist/esm/layout/Level.js.map +1 -0
- package/dist/esm/layout/Media.js +86 -0
- package/dist/esm/layout/Media.js.map +1 -0
- package/dist/esm/layout/Section.js +30 -0
- package/dist/esm/layout/Section.js.map +1 -0
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs +187 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +115 -17516
- package/dist/index.esm.js.map +1 -1
- package/dist/types/elements/Icon.d.ts +10 -7
- package/dist/types/form/Autocomplete.d.ts +1 -1
- package/dist/types/form/Checkboxes.d.ts +1 -1
- package/dist/types/form/DateInput.d.ts +1 -1
- package/dist/types/form/DateInputBase.d.ts +3 -4
- package/dist/types/form/DateRangeInput.d.ts +1 -1
- package/dist/types/form/DateTimeInput.d.ts +1 -1
- package/dist/types/form/DateTimeInputBase.d.ts +3 -4
- package/dist/types/form/Field.d.ts +2 -2
- package/dist/types/form/File.d.ts +4 -4
- package/dist/types/form/FormContext.d.ts +24 -2
- package/dist/types/form/Numberinput.d.ts +1 -1
- package/dist/types/form/Radios.d.ts +1 -1
- package/dist/types/form/Rate.d.ts +1 -1
- package/dist/types/form/Slider.d.ts +1 -1
- package/dist/types/form/Taginput.d.ts +1 -1
- package/dist/types/form/TimeInput.d.ts +1 -1
- package/dist/types/form/useAutoLabelId.d.ts +25 -4
- package/dist/types/helpers/Config.d.ts +3 -4
- package/dist/types/helpers/Theme.d.ts +44 -40
- package/dist/types-cjs/elements/Icon.d.ts +10 -7
- package/dist/types-cjs/form/Autocomplete.d.ts +1 -1
- package/dist/types-cjs/form/Checkboxes.d.ts +1 -1
- package/dist/types-cjs/form/DateInput.d.ts +1 -1
- package/dist/types-cjs/form/DateInputBase.d.ts +3 -4
- package/dist/types-cjs/form/DateRangeInput.d.ts +1 -1
- package/dist/types-cjs/form/DateTimeInput.d.ts +1 -1
- package/dist/types-cjs/form/DateTimeInputBase.d.ts +3 -4
- package/dist/types-cjs/form/Field.d.ts +2 -2
- package/dist/types-cjs/form/File.d.ts +4 -4
- package/dist/types-cjs/form/FormContext.d.ts +24 -2
- package/dist/types-cjs/form/Numberinput.d.ts +1 -1
- package/dist/types-cjs/form/Radios.d.ts +1 -1
- package/dist/types-cjs/form/Rate.d.ts +1 -1
- package/dist/types-cjs/form/Slider.d.ts +1 -1
- package/dist/types-cjs/form/Taginput.d.ts +1 -1
- package/dist/types-cjs/form/TimeInput.d.ts +1 -1
- package/dist/types-cjs/form/useAutoLabelId.d.ts +25 -4
- package/dist/types-cjs/helpers/Config.d.ts +3 -4
- package/dist/types-cjs/helpers/Theme.d.ts +44 -40
- 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/_dateinput.scss +37 -6
- package/src/scss/form/_datetimeinput.scss +7 -2
- package/src/scss/form/_picker-popover.scss +1 -4
|
@@ -77,13 +77,12 @@ export interface DateTimeInputBaseProps extends Omit<React.InputHTMLAttributes<H
|
|
|
77
77
|
* time wheels, where it colors the selected date and the selection band.
|
|
78
78
|
* Today's date and the calendar's keyboard focus ring take the color's
|
|
79
79
|
* `-on-scheme` variant, which Bulma adjusts to contrast with the background,
|
|
80
|
-
* so pale colors stay readable
|
|
81
|
-
* calendar, which uses plain `primary` for them. A focused wheel's ring is
|
|
80
|
+
* so pale colors stay readable. A focused wheel's ring is
|
|
82
81
|
* drawn inside the band in the color's `-invert`, like the selected value,
|
|
83
82
|
* so it shows on the fill. Unset, they use their
|
|
84
83
|
* `--bulma-dateinput-*` and `--bulma-timeinput-wheel-*` variables, which
|
|
85
|
-
* follow `primary` by default. The footer's time pill and Done button
|
|
86
|
-
* `
|
|
84
|
+
* follow `primary` by default. The footer's time pill and Done button do not
|
|
85
|
+
* follow `color`.
|
|
87
86
|
*/
|
|
88
87
|
color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
|
|
89
88
|
/** Size variant. */
|
|
@@ -12,11 +12,11 @@ export interface FieldProps extends React.HTMLAttributes<HTMLDivElement>, Omit<B
|
|
|
12
12
|
hasAddons?: boolean | 'centered' | 'right';
|
|
13
13
|
/** Constrains the field to its content's width (used inside horizontal field bodies). */
|
|
14
14
|
narrow?: boolean;
|
|
15
|
-
/** Field label, rendered above the widget. Automatically
|
|
15
|
+
/** Field label, rendered above the widget. Automatically names the one control the Field holds: a composed `InputBase`, `SelectBase` or `TextAreaBase`, or a bestax input that renders a single input of its own (`Input`, `Select`, `TextArea`, `Numberinput`, `Slider`, `DateInput`, `TimeInput`, `DateTimeInput`, `Autocomplete`, `Taginput`, `File`), adopts a generated id that the label's `htmlFor` points at, and a group (`Radios`, `Checkboxes`, `Rate`, `DateRangeInput`) points `aria-labelledby` at the label's own id unless you gave the group an `aria-label` or `aria-labelledby`. Nothing else takes the label: `Checkbox`, `Radio` and `Switch` are named by their own children. Only the single inputs take the `htmlFor`, so with a group or any other content it matches nothing. Pass `labelProps={{ htmlFor }}` to wire your own `id`, or `labelProps={{ htmlFor: undefined }}` to opt out. Skipped for `grouped`/`hasAddons` fields (multiple controls), and a nested `Field` starts its own scope, so a horizontal Field whose body holds an inner `Field` names the control there only when you wire it. Two controls in one plain labeled Field would both adopt the id, so give each an `id` of its own. */
|
|
16
16
|
label?: React.ReactNode;
|
|
17
17
|
/** Size for the label. */
|
|
18
18
|
labelSize?: 'small' | 'normal' | 'medium' | 'large';
|
|
19
|
-
/** Props for the label element. An explicit `htmlFor` key — even set to `undefined` — takes over the association. */
|
|
19
|
+
/** Props for the label element. An explicit `htmlFor` key — even set to `undefined` — takes over the association. An `id` here is the one a group control's `aria-labelledby` points at; otherwise the label gets a generated one while the association is on. To point a group in an inner `Field` at this label by hand, pass that `id` with `htmlFor: undefined`, or the label keeps a generated `htmlFor` that nothing takes. */
|
|
20
20
|
labelProps?: React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
21
21
|
[key: string]: unknown;
|
|
22
22
|
};
|
|
@@ -11,7 +11,7 @@ import { FormFieldProps } from './fieldProps.js';
|
|
|
11
11
|
* name on that `Field`.
|
|
12
12
|
*/
|
|
13
13
|
export interface FileProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'color' | 'type'>, Omit<BulmaClassesProps, 'color'>, FormFieldProps {
|
|
14
|
-
/** Field label. Automatically associated with the file input via `htmlFor` — uses your `id` when provided, otherwise a generated one. The input then has two labels (this one plus the wrapping `file-label`); assistive tech reads both. Dropped inside an outer `Field
|
|
14
|
+
/** Field label. Automatically associated with the file input via `htmlFor` — uses your `id` when provided, otherwise a generated one. The input then has two labels (this one plus the wrapping `file-label`); assistive tech reads both. Dropped inside an outer `Field`, whose own label associates instead when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`). */
|
|
15
15
|
label?: React.ReactNode;
|
|
16
16
|
/** Props for the label element. An explicit `htmlFor` here overrides the automatic association (no id is generated then). */
|
|
17
17
|
labelProps?: React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
@@ -42,13 +42,13 @@ export interface FileProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
|
|
|
42
42
|
buttonLabel?: React.ReactNode;
|
|
43
43
|
/**
|
|
44
44
|
* Left icon element. It renders inside the `<label>` that names the file input, beside
|
|
45
|
-
* `buttonLabel`, so
|
|
46
|
-
*
|
|
45
|
+
* `buttonLabel`, so leave an `Icon` here unnamed (`<Icon name="upload" />`): it is then
|
|
46
|
+
* `aria-hidden`, while an `ariaLabel` would join the input's accessible name.
|
|
47
47
|
*/
|
|
48
48
|
iconLeft?: React.ReactNode;
|
|
49
49
|
/**
|
|
50
50
|
* Right icon element. Sits inside the same `<label>` as `iconLeft`, so the same applies:
|
|
51
|
-
*
|
|
51
|
+
* an `Icon` here with an `ariaLabel` joins the input's accessible name.
|
|
52
52
|
*/
|
|
53
53
|
iconRight?: React.ReactNode;
|
|
54
54
|
/** Additional CSS classes to apply. */
|
|
@@ -105,12 +105,34 @@ export declare const rendersOwnControl: (component: string, options: OwnControlO
|
|
|
105
105
|
* The id a labeled Field wants its single composed control to adopt (#495).
|
|
106
106
|
* `undefined` outside a Field, in unlabeled/grouped/addons Fields, or when the
|
|
107
107
|
* user took over the association with an explicit `labelProps.htmlFor`.
|
|
108
|
-
* Consumed
|
|
109
|
-
*
|
|
108
|
+
* Consumed by the single-control bases (InputBase, SelectBase, TextAreaBase)
|
|
109
|
+
* and, through `useAutoLabelId`, by the convenience inputs that render an
|
|
110
|
+
* input of their own (#939). Internal; not part of the public API.
|
|
110
111
|
*/
|
|
111
112
|
export declare const useFieldLabelId: () => string | undefined;
|
|
112
113
|
/** Provider for the Field label-target id — used internally by Field. */
|
|
113
114
|
export declare const FieldLabelIdProvider: React.Provider<string | undefined>;
|
|
115
|
+
/**
|
|
116
|
+
* The id of a labeled Field's own `<label>`, for a group control (Radios,
|
|
117
|
+
* Checkboxes, Rate, DateRangeInput) to point `aria-labelledby` at, since a group cannot take
|
|
118
|
+
* the label's `htmlFor` (#939). Set under the same conditions as
|
|
119
|
+
* {@link useFieldLabelId}. Consumed through `useAutoLabelledBy`.
|
|
120
|
+
* Internal; not part of the public API.
|
|
121
|
+
*/
|
|
122
|
+
export declare const useFieldLabelElementId: () => string | undefined;
|
|
123
|
+
/** Provider for the Field label's own id, used internally by Field. */
|
|
124
|
+
export declare const FieldLabelElementIdProvider: React.Provider<string | undefined>;
|
|
125
|
+
/**
|
|
126
|
+
* What the nearest labeled Field's `<label>` points `htmlFor` at: the id it
|
|
127
|
+
* generated, or the caller's own `labelProps.htmlFor`. An unlabeled Field
|
|
128
|
+
* passes it through, so a control in the inner Field of a horizontal layout
|
|
129
|
+
* can tell the outer label names it. Only ever compared with a control's own
|
|
130
|
+
* id, never adopted, so it hands out no id. Internal; not part of the public
|
|
131
|
+
* API.
|
|
132
|
+
*/
|
|
133
|
+
export declare const useFieldLabelFor: () => string | undefined;
|
|
134
|
+
/** Provider for the Field label's `htmlFor` target, used internally by Field. */
|
|
135
|
+
export declare const FieldLabelForProvider: React.Provider<string | undefined>;
|
|
114
136
|
/**
|
|
115
137
|
* Shape of the Radios group context. The group provides:
|
|
116
138
|
* - `name`: shared form field name (Stage 1)
|
|
@@ -17,7 +17,7 @@ export type NumberinputVariant = 'plusminus' | 'stepper';
|
|
|
17
17
|
* @extraProp {React.Ref<HTMLElement>} [ref] - Ref forwarded to the input element.
|
|
18
18
|
*/
|
|
19
19
|
export interface NumberinputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'value' | 'defaultValue' | 'type'>, Omit<BulmaClassesProps, 'color' | 'backgroundColor' | 'size'>, FormFieldProps {
|
|
20
|
-
/** Field label. Automatically associated with the number input via `htmlFor` — uses your `id` when provided, otherwise a generated one.
|
|
20
|
+
/** Field label. Automatically associated with the number input via `htmlFor` — uses your `id` when provided, otherwise a generated one. Dropped inside an outer `Field`, whose own label associates instead when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`). Not rendered either by a plusminus `bare` Numberinput outside a `Field`. */
|
|
21
21
|
label?: React.ReactNode;
|
|
22
22
|
/** Props for the label element. An explicit `htmlFor` here overrides the automatic association (no id is generated then). */
|
|
23
23
|
labelProps?: React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
@@ -12,7 +12,7 @@ import { FormFieldProps } from './fieldProps.js';
|
|
|
12
12
|
* `Field`.
|
|
13
13
|
*/
|
|
14
14
|
export interface RadiosProps extends Omit<BulmaClassesProps, 'color'>, FormFieldProps {
|
|
15
|
-
/** Field label naming the whole group. Automatically associated via `aria-labelledby` on the `role="radiogroup"` wrapper — uses your `labelProps.id` when provided, otherwise a generated one. Dropped inside an outer `Field
|
|
15
|
+
/** Field label naming the whole group. Automatically associated via `aria-labelledby` on the `role="radiogroup"` wrapper — uses your `labelProps.id` when provided, otherwise a generated one. Dropped inside an outer `Field`, whose own label names the group instead through `aria-labelledby` when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`). An `aria-label` or `aria-labelledby` you set on the group wins over either label, which still renders but no longer names it. An `aria-labelledby` key counts even when undefined, since it is spread over the group's own. */
|
|
16
16
|
label?: React.ReactNode;
|
|
17
17
|
/** Props for the label element. An explicit `id` here is used as the `aria-labelledby` target instead of a generated one; any `htmlFor` is ignored (a group label names the group, never a single control). */
|
|
18
18
|
labelProps?: React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
@@ -33,7 +33,7 @@ export interface RateIconProps {
|
|
|
33
33
|
* @extraProp {React.Ref<HTMLElement>} [ref] - Ref forwarded to the container element.
|
|
34
34
|
*/
|
|
35
35
|
export interface RateProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'>, Omit<BulmaClassesProps, 'size'>, FormFieldProps {
|
|
36
|
-
/** Field label naming the rating group. Automatically associated via `aria-labelledby` on the `role="radiogroup"` container — uses your `labelProps.id` when provided, otherwise a generated one; it also replaces the default `aria-label="Rating"`. Dropped inside an outer `Field
|
|
36
|
+
/** Field label naming the rating group. Automatically associated via `aria-labelledby` on the `role="radiogroup"` container — uses your `labelProps.id` when provided, otherwise a generated one; it also replaces the default `aria-label="Rating"`. Dropped inside an outer `Field`, whose own label names the group instead through `aria-labelledby` when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`), and replaces the `aria-label="Rating"` fallback too. An `aria-label` or `aria-labelledby` you set on the group wins over either label, which still renders but no longer names it. An `aria-labelledby` key counts even when undefined, since it is spread over the group's own, and leaves the `"Rating"` fallback. */
|
|
37
37
|
label?: React.ReactNode;
|
|
38
38
|
/** Props for the label element. An explicit `id` here is used as the `aria-labelledby` target instead of a generated one; any `htmlFor` is ignored (a group label names the group, never a single control). */
|
|
39
39
|
labelProps?: React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
@@ -22,7 +22,7 @@ export interface SliderMark {
|
|
|
22
22
|
* Shared base props for single and range Slider modes.
|
|
23
23
|
*/
|
|
24
24
|
interface SliderBaseProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'value' | 'defaultValue'>, Omit<BulmaClassesProps, 'color' | 'backgroundColor' | 'size'>, FormFieldProps {
|
|
25
|
-
/** Field label. Automatically associated with the slider input via `htmlFor` — uses your `id` when provided, otherwise a generated one. In range mode the label targets the low (minimum) thumb. Dropped inside an outer `Field
|
|
25
|
+
/** Field label. Automatically associated with the slider input via `htmlFor` — uses your `id` when provided, otherwise a generated one. In range mode the label targets the low (minimum) thumb. Dropped inside an outer `Field`, whose own label associates instead when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`). */
|
|
26
26
|
label?: React.ReactNode;
|
|
27
27
|
/** Props for the label element. An explicit `htmlFor` here overrides the automatic association (no id is generated then). */
|
|
28
28
|
labelProps?: React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
@@ -26,7 +26,7 @@ type IconLibrary = 'fa' | 'mdi' | 'ion' | 'material-icons' | 'material-symbols';
|
|
|
26
26
|
* @extraProp {React.Ref<HTMLInputElement>} [ref] - Ref forwarded to the input element.
|
|
27
27
|
*/
|
|
28
28
|
export interface TaginputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>, Omit<BulmaClassesProps, 'color'>, FormFieldProps {
|
|
29
|
-
/** Field label. Automatically associated with the text input via `htmlFor` — uses your `id` when provided, otherwise a generated one. Not wired when the tag limit is reached (the input is not rendered)
|
|
29
|
+
/** Field label. Automatically associated with the text input via `htmlFor` — uses your `id` when provided, otherwise a generated one. Not wired when the tag limit is reached (the input is not rendered). Dropped inside an outer `Field`, whose own label associates instead when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`); it then replaces the `aria-label="Add tag"` fallback too. */
|
|
30
30
|
label?: React.ReactNode;
|
|
31
31
|
/** Props for the label element. An explicit `htmlFor` here overrides the automatic association (no id is generated then). */
|
|
32
32
|
labelProps?: React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
@@ -22,7 +22,7 @@ import { TimeInputBaseProps } from './TimeInputBase.js';
|
|
|
22
22
|
* @extraProp {React.Ref<HTMLInputElement>} [ref] - Forwarded to the underlying `<input>`.
|
|
23
23
|
*/
|
|
24
24
|
export interface TimeInputProps extends TimeInputBaseProps {
|
|
25
|
-
/** Field label. Automatically associated with the input via `htmlFor` — uses your `id` when provided, otherwise a generated one. Not wired in `inline` mode (no visible input to label)
|
|
25
|
+
/** Field label. Automatically associated with the input via `htmlFor` — uses your `id` when provided, otherwise a generated one. Not wired in `inline` mode (no visible input to label). Dropped inside an outer `Field`, whose own label associates instead when that `Field` generates a target id (not `grouped`/`hasAddons`, no explicit `labelProps.htmlFor`). */
|
|
26
26
|
label?: React.ReactNode;
|
|
27
27
|
/** Size for the label. */
|
|
28
28
|
labelSize?: FieldProps['labelSize'];
|
|
@@ -13,6 +13,11 @@ interface UseAutoLabelIdOptions {
|
|
|
13
13
|
* no Field, and in modes with no labellable control (e.g. inline pickers).
|
|
14
14
|
*/
|
|
15
15
|
rendersLabel: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* False when this render has no input to label at all (an inline picker),
|
|
18
|
+
* so it takes no id from a surrounding Field either. Defaults to true.
|
|
19
|
+
*/
|
|
20
|
+
hasInput?: boolean;
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
18
23
|
* Associates the convenience `label` prop with its control (#368): generates
|
|
@@ -20,11 +25,16 @@ interface UseAutoLabelIdOptions {
|
|
|
20
25
|
* A user-supplied `id` is used as the target instead of the generated one, and
|
|
21
26
|
* an explicit `htmlFor` key in labelProps — even set to `undefined` — disables
|
|
22
27
|
* generation entirely: the user has taken over the association (#495 presence
|
|
23
|
-
* semantics).
|
|
28
|
+
* semantics). When the control renders no label of its own, it adopts the id
|
|
29
|
+
* a labeled Field around it offers, the way the bases do, so that Field's
|
|
30
|
+
* label names it (#939); a user `id` still wins there.
|
|
31
|
+
* Internal; not part of the public API.
|
|
24
32
|
*/
|
|
25
|
-
export declare function useAutoLabelId({ label, id, labelProps, rendersLabel, }: UseAutoLabelIdOptions): {
|
|
33
|
+
export declare function useAutoLabelId({ label, id, labelProps, rendersLabel, hasInput, }: UseAutoLabelIdOptions): {
|
|
26
34
|
controlId: string | undefined;
|
|
27
35
|
fieldLabelProps: FieldProps['labelProps'] | undefined;
|
|
36
|
+
/** Whether a rendered label, its own or a surrounding Field's, points at `controlId`. */
|
|
37
|
+
labelled: boolean;
|
|
28
38
|
};
|
|
29
39
|
interface UseAutoLabelledByOptions {
|
|
30
40
|
/** The convenience `label` prop as passed by the caller. */
|
|
@@ -33,6 +43,13 @@ interface UseAutoLabelledByOptions {
|
|
|
33
43
|
labelProps?: FieldProps['labelProps'];
|
|
34
44
|
/** True when this render actually outputs the label naming the group. */
|
|
35
45
|
rendersLabel: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The caller's remaining props. A non-empty `aria-label` among them names
|
|
48
|
+
* the group, and so does any `aria-labelledby` key, even an undefined one,
|
|
49
|
+
* since the group spreads them after its own attribute. Either keeps every
|
|
50
|
+
* label off the group, its own and a surrounding Field's alike.
|
|
51
|
+
*/
|
|
52
|
+
callerProps: object;
|
|
36
53
|
}
|
|
37
54
|
/**
|
|
38
55
|
* Group-input counterpart of {@link useAutoLabelId} (#494): a group of
|
|
@@ -41,10 +58,14 @@ interface UseAutoLabelledByOptions {
|
|
|
41
58
|
* `aria-labelledby`. A user-supplied `labelProps.id` is used as the target
|
|
42
59
|
* instead of generating one. Any caller `htmlFor` is stripped — a group label
|
|
43
60
|
* names the group, never a single control — so the merged labelProps always
|
|
44
|
-
* carry an explicit `htmlFor: undefined`.
|
|
61
|
+
* carry an explicit `htmlFor: undefined`. When the group renders no label of
|
|
62
|
+
* its own, it points at the label of a labeled Field around it instead
|
|
63
|
+
* (#939). A caller who named the group with `aria-label` or
|
|
64
|
+
* `aria-labelledby` gets no `aria-labelledby` from either label, so their
|
|
65
|
+
* name wins wherever the label sits.
|
|
45
66
|
* Internal; not part of the public API.
|
|
46
67
|
*/
|
|
47
|
-
export declare function useAutoLabelledBy({ label, labelProps, rendersLabel, }: UseAutoLabelledByOptions): {
|
|
68
|
+
export declare function useAutoLabelledBy({ label, labelProps, rendersLabel, callerProps, }: UseAutoLabelledByOptions): {
|
|
48
69
|
ariaLabelledBy: string | undefined;
|
|
49
70
|
fieldLabelProps: FieldProps['labelProps'] | undefined;
|
|
50
71
|
};
|
|
@@ -20,14 +20,13 @@ export interface ConfigContextProps {
|
|
|
20
20
|
export declare const useConfig: () => ConfigContextProps;
|
|
21
21
|
/**
|
|
22
22
|
* Props for the ConfigProvider component.
|
|
23
|
-
*
|
|
24
|
-
* @property {React.ReactNode} children - Child components to receive configuration.
|
|
25
|
-
* @property {string} [classPrefix] - Prefix applied to all Bulma class names.
|
|
26
|
-
* @property {IconLibrary} [iconLibrary] - Default icon library for Icon components.
|
|
27
23
|
*/
|
|
28
24
|
export interface ConfigProviderProps {
|
|
25
|
+
/** Child components to receive configuration. */
|
|
29
26
|
children: ReactNode;
|
|
27
|
+
/** Prefix applied to all Bulma class names. */
|
|
30
28
|
classPrefix?: string;
|
|
29
|
+
/** Default icon library for Icon components. */
|
|
31
30
|
iconLibrary?: IconLibrary;
|
|
32
31
|
}
|
|
33
32
|
/**
|
|
@@ -8,48 +8,9 @@ type BulmaVarKey = (typeof bulmaCssVars)[number];
|
|
|
8
8
|
type BulmaVars = Partial<Record<BulmaVarKey, string>>;
|
|
9
9
|
/**
|
|
10
10
|
* Props for the Theme component.
|
|
11
|
-
*
|
|
12
|
-
* @property {React.ReactNode} children - Content to render inside the theme scope.
|
|
13
|
-
* @property {string} [className] - Additional CSS classes (only when isRoot is false).
|
|
14
|
-
* @property {BulmaVars} [bulmaVars] - Object mapping Bulma CSS variable names to values.
|
|
15
|
-
* @property {string} [schemeH] - Scheme hue value.
|
|
16
|
-
* @property {string} [schemeS] - Scheme saturation value.
|
|
17
|
-
* @property {string} [lightL] - Light theme lightness value.
|
|
18
|
-
* @property {string} [lightInvertL] - Light theme inverted lightness value.
|
|
19
|
-
* @property {string} [darkL] - Dark theme lightness value.
|
|
20
|
-
* @property {string} [darkInvertL] - Dark theme inverted lightness value.
|
|
21
|
-
* @property {string} [softL] - Soft lightness value.
|
|
22
|
-
* @property {string} [boldL] - Bold lightness value.
|
|
23
|
-
* @property {string} [softInvertL] - Soft inverted lightness value.
|
|
24
|
-
* @property {string} [boldInvertL] - Bold inverted lightness value.
|
|
25
|
-
* @property {string} [hoverBackgroundLDelta] - Background lightness delta on hover.
|
|
26
|
-
* @property {string} [activeBackgroundLDelta] - Background lightness delta on active.
|
|
27
|
-
* @property {string} [hoverBorderLDelta] - Border lightness delta on hover.
|
|
28
|
-
* @property {string} [activeBorderLDelta] - Border lightness delta on active.
|
|
29
|
-
* @property {string} [hoverColorLDelta] - Text color lightness delta on hover.
|
|
30
|
-
* @property {string} [activeColorLDelta] - Text color lightness delta on active.
|
|
31
|
-
* @property {string} [hoverShadowADelta] - Shadow alpha delta on hover.
|
|
32
|
-
* @property {string} [activeShadowADelta] - Shadow alpha delta on active.
|
|
33
|
-
* @property {string} [primaryH] - Primary color hue.
|
|
34
|
-
* @property {string} [primaryS] - Primary color saturation.
|
|
35
|
-
* @property {string} [primaryL] - Primary color lightness.
|
|
36
|
-
* @property {string} [linkH] - Link color hue.
|
|
37
|
-
* @property {string} [linkS] - Link color saturation.
|
|
38
|
-
* @property {string} [linkL] - Link color lightness.
|
|
39
|
-
* @property {string} [infoH] - Info color hue.
|
|
40
|
-
* @property {string} [infoS] - Info color saturation.
|
|
41
|
-
* @property {string} [infoL] - Info color lightness.
|
|
42
|
-
* @property {string} [successH] - Success color hue.
|
|
43
|
-
* @property {string} [successS] - Success color saturation.
|
|
44
|
-
* @property {string} [successL] - Success color lightness.
|
|
45
|
-
* @property {string} [warningH] - Warning color hue.
|
|
46
|
-
* @property {string} [warningS] - Warning color saturation.
|
|
47
|
-
* @property {string} [warningL] - Warning color lightness.
|
|
48
|
-
* @property {string} [dangerH] - Danger color hue.
|
|
49
|
-
* @property {string} [dangerS] - Danger color saturation.
|
|
50
|
-
* @property {string} [dangerL] - Danger color lightness.
|
|
51
11
|
*/
|
|
52
12
|
export interface ThemeProps extends Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
13
|
+
/** The content the theme applies to. */
|
|
53
14
|
children: ReactNode;
|
|
54
15
|
/**
|
|
55
16
|
* Additional CSS classes for the wrapper div. A root Theme (`isRoot`) has no
|
|
@@ -86,6 +47,13 @@ export interface ThemeProps extends Omit<BulmaClassesProps, 'color' | 'backgroun
|
|
|
86
47
|
* write only `data-theme` and warn in development.
|
|
87
48
|
*/
|
|
88
49
|
colorMode?: 'light' | 'dark' | 'system';
|
|
50
|
+
/**
|
|
51
|
+
* Bulma CSS variables to set, by name, such as
|
|
52
|
+
* `{ '--bulma-primary-h': '210' }`. Only Bulma's own variables, the keys
|
|
53
|
+
* the `BulmaVars` type allows, are applied, and an empty value is skipped.
|
|
54
|
+
* Where a variable prop, such as `primaryH`, sets the same variable, the
|
|
55
|
+
* prop wins.
|
|
56
|
+
*/
|
|
89
57
|
bulmaVars?: BulmaVars;
|
|
90
58
|
/**
|
|
91
59
|
* Border radius helper, as on every other component: `radiusless` adds
|
|
@@ -124,41 +92,77 @@ export interface ThemeProps extends Omit<BulmaClassesProps, 'color' | 'backgroun
|
|
|
124
92
|
* now adds `is-column-gap-0` to the wrapper instead.
|
|
125
93
|
*/
|
|
126
94
|
columnGap?: BulmaGapStep;
|
|
95
|
+
/** Base hue for the color scheme, 0 to 360. Sets `--bulma-scheme-h`. */
|
|
127
96
|
schemeH?: string;
|
|
97
|
+
/** Base saturation for the color scheme, as a percentage. Sets `--bulma-scheme-s`. */
|
|
128
98
|
schemeS?: string;
|
|
99
|
+
/** Lightness for light backgrounds. Sets `--bulma-light-l`. */
|
|
129
100
|
lightL?: string;
|
|
101
|
+
/** Inverted lightness for light backgrounds. Sets `--bulma-light-invert-l`. */
|
|
130
102
|
lightInvertL?: string;
|
|
103
|
+
/** Lightness for dark backgrounds. Sets `--bulma-dark-l`. */
|
|
131
104
|
darkL?: string;
|
|
105
|
+
/** Inverted lightness for dark backgrounds. Sets `--bulma-dark-invert-l`. */
|
|
132
106
|
darkInvertL?: string;
|
|
107
|
+
/** Lightness for soft colors. Sets `--bulma-soft-l`. */
|
|
133
108
|
softL?: string;
|
|
109
|
+
/** Lightness for bold colors. Sets `--bulma-bold-l`. */
|
|
134
110
|
boldL?: string;
|
|
111
|
+
/** Inverted lightness for soft colors. Sets `--bulma-soft-invert-l`. */
|
|
135
112
|
softInvertL?: string;
|
|
113
|
+
/** Inverted lightness for bold colors. Sets `--bulma-bold-invert-l`. */
|
|
136
114
|
boldInvertL?: string;
|
|
115
|
+
/** Lightness change of a background on hover. Sets `--bulma-hover-background-l-delta`. */
|
|
137
116
|
hoverBackgroundLDelta?: string;
|
|
117
|
+
/** Lightness change of a background when active. Sets `--bulma-active-background-l-delta`. */
|
|
138
118
|
activeBackgroundLDelta?: string;
|
|
119
|
+
/** Lightness change of a border on hover. Sets `--bulma-hover-border-l-delta`. */
|
|
139
120
|
hoverBorderLDelta?: string;
|
|
121
|
+
/** Lightness change of a border when active. Sets `--bulma-active-border-l-delta`. */
|
|
140
122
|
activeBorderLDelta?: string;
|
|
123
|
+
/** Lightness change of text color on hover. Sets `--bulma-hover-color-l-delta`. */
|
|
141
124
|
hoverColorLDelta?: string;
|
|
125
|
+
/** Lightness change of text color when active. Sets `--bulma-active-color-l-delta`. */
|
|
142
126
|
activeColorLDelta?: string;
|
|
127
|
+
/** Alpha change of a shadow on hover. Sets `--bulma-hover-shadow-a-delta`. */
|
|
143
128
|
hoverShadowADelta?: string;
|
|
129
|
+
/** Alpha change of a shadow when active. Sets `--bulma-active-shadow-a-delta`. */
|
|
144
130
|
activeShadowADelta?: string;
|
|
131
|
+
/** Primary color hue, 0 to 360. Sets `--bulma-primary-h`. */
|
|
145
132
|
primaryH?: string;
|
|
133
|
+
/** Primary color saturation, as a percentage. Sets `--bulma-primary-s`. */
|
|
146
134
|
primaryS?: string;
|
|
135
|
+
/** Primary color lightness, as a percentage. Sets `--bulma-primary-l`. */
|
|
147
136
|
primaryL?: string;
|
|
137
|
+
/** Link color hue, 0 to 360. Sets `--bulma-link-h`. */
|
|
148
138
|
linkH?: string;
|
|
139
|
+
/** Link color saturation, as a percentage. Sets `--bulma-link-s`. */
|
|
149
140
|
linkS?: string;
|
|
141
|
+
/** Link color lightness, as a percentage. Sets `--bulma-link-l`. */
|
|
150
142
|
linkL?: string;
|
|
143
|
+
/** Info color hue, 0 to 360. Sets `--bulma-info-h`. */
|
|
151
144
|
infoH?: string;
|
|
145
|
+
/** Info color saturation, as a percentage. Sets `--bulma-info-s`. */
|
|
152
146
|
infoS?: string;
|
|
147
|
+
/** Info color lightness, as a percentage. Sets `--bulma-info-l`. */
|
|
153
148
|
infoL?: string;
|
|
149
|
+
/** Success color hue, 0 to 360. Sets `--bulma-success-h`. */
|
|
154
150
|
successH?: string;
|
|
151
|
+
/** Success color saturation, as a percentage. Sets `--bulma-success-s`. */
|
|
155
152
|
successS?: string;
|
|
153
|
+
/** Success color lightness, as a percentage. Sets `--bulma-success-l`. */
|
|
156
154
|
successL?: string;
|
|
155
|
+
/** Warning color hue, 0 to 360. Sets `--bulma-warning-h`. */
|
|
157
156
|
warningH?: string;
|
|
157
|
+
/** Warning color saturation, as a percentage. Sets `--bulma-warning-s`. */
|
|
158
158
|
warningS?: string;
|
|
159
|
+
/** Warning color lightness, as a percentage. Sets `--bulma-warning-l`. */
|
|
159
160
|
warningL?: string;
|
|
161
|
+
/** Danger color hue, 0 to 360. Sets `--bulma-danger-h`. */
|
|
160
162
|
dangerH?: string;
|
|
163
|
+
/** Danger color saturation, as a percentage. Sets `--bulma-danger-s`. */
|
|
161
164
|
dangerS?: string;
|
|
165
|
+
/** Danger color lightness, as a percentage. Sets `--bulma-danger-l`. */
|
|
162
166
|
dangerL?: string;
|
|
163
167
|
}
|
|
164
168
|
/**
|