@allxsmith/bestax-bulma 5.15.4 → 5.16.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/index.esm.js CHANGED
@@ -209,6 +209,8 @@ const validColors = [
209
209
  'grey-light',
210
210
  'grey-lighter',
211
211
  'white',
212
+ 'white-bis',
213
+ 'white-ter',
212
214
  'light',
213
215
  'dark',
214
216
  ];
@@ -419,6 +421,57 @@ const validViewports = [
419
421
  'widescreen-only',
420
422
  'fullhd',
421
423
  ];
424
+ /**
425
+ * Valid Bulma float classes.
426
+ * @example 'left', 'right'
427
+ */
428
+ const validFloats = ['left', 'right'];
429
+ /**
430
+ * Valid Bulma overflow classes.
431
+ * @example 'clipped'
432
+ */
433
+ const validOverflows = ['clipped'];
434
+ /**
435
+ * Valid Bulma interaction classes.
436
+ * @example 'unselectable', 'clickable'
437
+ */
438
+ const validInteractions = ['unselectable', 'clickable'];
439
+ /**
440
+ * Valid Bulma cursor helper values.
441
+ *
442
+ * These share no class stem: `pointer` renders `is-clickable` and `help`
443
+ * renders `is-cursor-help`, so the class each one emits lives in
444
+ * `cursorClasses` rather than being built from the value.
445
+ * @example 'pointer', 'help'
446
+ */
447
+ const validCursors = ['pointer', 'help'];
448
+ /**
449
+ * Cursor helper value to the class it renders.
450
+ *
451
+ * A `Record` over `validCursors` on purpose: TypeScript then rejects a value
452
+ * added to the tuple with no class for it, and a class for a value the tuple
453
+ * does not carry, so the accepted set and the rendered classes cannot drift
454
+ * apart.
455
+ */
456
+ const cursorClasses = {
457
+ pointer: 'is-clickable',
458
+ help: 'is-cursor-help',
459
+ };
460
+ /**
461
+ * Valid Bulma border-radius helper classes.
462
+ * @example 'radiusless'
463
+ */
464
+ const validRadii = ['radiusless'];
465
+ /**
466
+ * Valid Bulma shadow helper classes.
467
+ * @example 'shadowless'
468
+ */
469
+ const validShadows = ['shadowless'];
470
+ /**
471
+ * Valid Bulma responsive helper classes.
472
+ * @example 'mobile', 'narrow'
473
+ */
474
+ const validResponsives = ['mobile', 'narrow'];
422
475
  /**
423
476
  * Creates the shared class-building helpers used by the Bulma helper hooks.
424
477
  *
@@ -885,33 +938,28 @@ const useOtherClasses = (props) => {
885
938
  const { classes, addPrefixedClass, addClassNoViewport } = createBulmaClassHelpers(classPrefix);
886
939
  // Other Helpers (no viewport support)
887
940
  if (float) {
888
- addClassNoViewport('is-pulled', float, ['left', 'right']);
941
+ addClassNoViewport('is-pulled', float, validFloats);
889
942
  }
890
943
  if (overflow) {
891
- addClassNoViewport('is', overflow, ['clipped']);
944
+ addClassNoViewport('is', overflow, validOverflows);
892
945
  }
893
946
  if (overlay) {
894
947
  addPrefixedClass('is-overlay');
895
948
  }
896
949
  if (interaction) {
897
- addClassNoViewport('is', interaction, ['unselectable', 'clickable']);
950
+ addClassNoViewport('is', interaction, validInteractions);
898
951
  }
899
- if (cursor) {
900
- if (cursor === 'pointer') {
901
- addPrefixedClass('is-clickable');
902
- }
903
- else if (cursor === 'help') {
904
- addPrefixedClass('is-cursor-help');
905
- }
952
+ if (cursor && validCursors.includes(cursor)) {
953
+ addPrefixedClass(cursorClasses[cursor]);
906
954
  }
907
955
  if (radius) {
908
- addClassNoViewport('is', radius, ['radiusless']);
956
+ addClassNoViewport('is', radius, validRadii);
909
957
  }
910
958
  if (shadow) {
911
- addClassNoViewport('is', shadow, ['shadowless']);
959
+ addClassNoViewport('is', shadow, validShadows);
912
960
  }
913
961
  if (responsive) {
914
- addClassNoViewport('is', responsive, ['mobile', 'narrow']);
962
+ addClassNoViewport('is', responsive, validResponsives);
915
963
  }
916
964
  // Bulma Skeleton Helper
917
965
  if (skeleton) {
@@ -2965,6 +3013,8 @@ const Navbar = withSubComponents(NavbarComponent, {
2965
3013
  const UNSTYLED_MODIFIER_COLORS = [
2966
3014
  'black-bis',
2967
3015
  'black-ter',
3016
+ 'white-bis',
3017
+ 'white-ter',
2968
3018
  'grey-darker',
2969
3019
  'grey-dark',
2970
3020
  'grey',
@@ -12741,8 +12791,8 @@ function cssVarToProp(varName) {
12741
12791
  * Mapping of camelCase prop names to their Bulma CSS variable counterparts.
12742
12792
  *
12743
12793
  * `--bulma-shadow` is excluded: `cssVarToProp` would mint it as `shadow`,
12744
- * which already exists as a `BulmaOtherProps` prop (`shadow?: 'shadowless'`,
12745
- * applied via `useBulmaClasses`) — keeping it out of this map means that
12794
+ * which already exists as a `BulmaOtherProps` prop applied via
12795
+ * `useBulmaClasses` — keeping it out of this map means that
12746
12796
  * prop keeps its existing class-based meaning, while `--bulma-shadow` is
12747
12797
  * still reachable through the `bulmaVars` object.
12748
12798
  */
@@ -13215,5 +13265,5 @@ const Section = ({ size, className, children, color, bgColor, textColor, style,
13215
13265
  return (jsx("section", { className: sectionClasses, style: mergeBulmaStyles(bulmaHelperStyles, style), ...rest, children: children }));
13216
13266
  };
13217
13267
 
13218
- export { Autocomplete, Avatar, Avatars, Badge, Block, Box, Breadcrumb, Button, Buttons, Card, Carousel, CarouselItem, Cell, Checkbox, Checkboxes, Code, Collapse, Column, Columns, ConfigProvider, Container, Content, Control, DateInput, DateInputBase, DateTimeInput, DateTimeInputBase, Delete, Dialog, DialogContainer, Divider, Dropdown, DropdownDivider, DropdownItem, Emphasis, Field, FieldBody, FieldLabel, Figure, File, Footer, Grid, Hero, HeroBody, HeroFoot, HeroHead, Icon, IconText, Image, Input, InputBase, Level, LevelItem, LevelLeft, LevelRight, Link, LinkButton, ListItem, Loading, Media, MediaContent, MediaLeft, MediaRight, Menu, MenuItem, MenuLabel, MenuList, Message, Modal, Navbar, NavbarBrand, NavbarBurger, NavbarDivider, NavbarDropdown, NavbarDropdownMenu, NavbarEnd, NavbarItem, NavbarLink, NavbarMenu, NavbarStart, Notification, NotificationContainer, NumberInput, Numberinput, OrderedList, Pagination, PaginationEllipsis, PaginationLink, PaginationList, PaginationNext, PaginationPrevious, Panel, PanelBlock, PanelButtonBlock, PanelCheckboxBlock, PanelHeading, PanelIcon, PanelInputBlock, PanelTabs, Paragraph, Pre, Progress, Radio, Radios, Rate, Reveal, Section, Select, SelectBase, Sidebar, Skeleton, Slider, Span, Step, Steps, Strong, SubTitle, Switch, Tab, TabContentItem, TabItem, TabList, Table, Tabs, TabsContent, Tag, TagInput, Taginput, Tags, Tbody, Td, TextArea, TextAreaBase, Tfoot, Th, Thead, Theme, TimeInput, TimeInputBase, Title, Toast, ToastContainer, Tooltip, Tr, UnorderedList, __test_exports__, checkboxColors, checkboxSizes, classNames, createPrefixedClassNames, dialog, isBrowser$1 as isBrowser, mergeBulmaStyles, notification, prefixedClassNames, radioColors, radioSizes, switchColors, switchSizes, toast, useBulmaClasses, useClassPrefix, useColorClasses, useColorStyles, useConfig, useFlexboxClasses, useIconLibrary, useInsideControl, useInsideField, useOtherClasses, usePrefixedClass, usePrefixedClassNames, useSpacingClasses, useTypographyClasses, useVisibilityClasses, validAlignContents, validAlignItems, validAlignSelfs, validAlignments$1 as validAlignments, validColorShades, validColors, validDisplays, validFlexDirections, validFlexGrowShrink, validFlexWraps, validFontFamilies, validJustifyContents, validSchemeColors, validSizes$1 as validSizes, validTableColors, validTextSizes, validTextTransforms, validTextWeights, validViewports, validVisibilities };
13268
+ export { Autocomplete, Avatar, Avatars, Badge, Block, Box, Breadcrumb, Button, Buttons, Card, Carousel, CarouselItem, Cell, Checkbox, Checkboxes, Code, Collapse, Column, Columns, ConfigProvider, Container, Content, Control, DateInput, DateInputBase, DateTimeInput, DateTimeInputBase, Delete, Dialog, DialogContainer, Divider, Dropdown, DropdownDivider, DropdownItem, Emphasis, Field, FieldBody, FieldLabel, Figure, File, Footer, Grid, Hero, HeroBody, HeroFoot, HeroHead, Icon, IconText, Image, Input, InputBase, Level, LevelItem, LevelLeft, LevelRight, Link, LinkButton, ListItem, Loading, Media, MediaContent, MediaLeft, MediaRight, Menu, MenuItem, MenuLabel, MenuList, Message, Modal, Navbar, NavbarBrand, NavbarBurger, NavbarDivider, NavbarDropdown, NavbarDropdownMenu, NavbarEnd, NavbarItem, NavbarLink, NavbarMenu, NavbarStart, Notification, NotificationContainer, NumberInput, Numberinput, OrderedList, Pagination, PaginationEllipsis, PaginationLink, PaginationList, PaginationNext, PaginationPrevious, Panel, PanelBlock, PanelButtonBlock, PanelCheckboxBlock, PanelHeading, PanelIcon, PanelInputBlock, PanelTabs, Paragraph, Pre, Progress, Radio, Radios, Rate, Reveal, Section, Select, SelectBase, Sidebar, Skeleton, Slider, Span, Step, Steps, Strong, SubTitle, Switch, Tab, TabContentItem, TabItem, TabList, Table, Tabs, TabsContent, Tag, TagInput, Taginput, Tags, Tbody, Td, TextArea, TextAreaBase, Tfoot, Th, Thead, Theme, TimeInput, TimeInputBase, Title, Toast, ToastContainer, Tooltip, Tr, UnorderedList, __test_exports__, checkboxColors, checkboxSizes, classNames, createPrefixedClassNames, dialog, isBrowser$1 as isBrowser, mergeBulmaStyles, notification, prefixedClassNames, radioColors, radioSizes, switchColors, switchSizes, toast, useBulmaClasses, useClassPrefix, useColorClasses, useColorStyles, useConfig, useFlexboxClasses, useIconLibrary, useInsideControl, useInsideField, useOtherClasses, usePrefixedClass, usePrefixedClassNames, useSpacingClasses, useTypographyClasses, useVisibilityClasses, validAlignContents, validAlignItems, validAlignSelfs, validAlignments$1 as validAlignments, validColorShades, validColors, validCursors, validDisplays, validFlexDirections, validFlexGrowShrink, validFlexWraps, validFloats, validFontFamilies, validInteractions, validJustifyContents, validOverflows, validRadii, validResponsives, validSchemeColors, validShadows, validSizes$1 as validSizes, validTableColors, validTextSizes, validTextTransforms, validTextWeights, validViewports, validVisibilities };
13219
13269
  //# sourceMappingURL=index.esm.js.map