@stackone/malachite 2.84.0 → 2.85.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.
Files changed (45) hide show
  1. package/COMPONENTS.md +2 -2
  2. package/dist/assets/icons/forbidden.svg.js +173 -3
  3. package/dist/assets/icons/forbidden.svg.js.map +1 -1
  4. package/dist/assets/icons/navbar_collapse.svg.js +3 -1
  5. package/dist/assets/icons/navbar_collapse.svg.js.map +1 -1
  6. package/dist/assets/icons/navbar_expand.svg.js +3 -1
  7. package/dist/assets/icons/navbar_expand.svg.js.map +1 -1
  8. package/dist/assets/icons/not_found.svg.js +143 -3
  9. package/dist/assets/icons/not_found.svg.js.map +1 -1
  10. package/dist/assets/icons/required_field_indicator.svg.js +7 -1
  11. package/dist/assets/icons/required_field_indicator.svg.js.map +1 -1
  12. package/dist/assets/icons/source.svg.js +4 -2
  13. package/dist/assets/icons/source.svg.js.map +1 -1
  14. package/dist/assets/icons/webhook_signing_secret.svg.js +3 -1
  15. package/dist/assets/icons/webhook_signing_secret.svg.js.map +1 -1
  16. package/dist/components/Alert.js +31 -31
  17. package/dist/components/Alert.js.map +1 -1
  18. package/dist/components/BaseFormComponent.js +63 -59
  19. package/dist/components/BaseFormComponent.js.map +1 -1
  20. package/dist/components/DatePickerField.js +131 -129
  21. package/dist/components/DatePickerField.js.map +1 -1
  22. package/dist/components/Dropdown.js +444 -434
  23. package/dist/components/Dropdown.js.map +1 -1
  24. package/dist/components/Input/Input.js +126 -124
  25. package/dist/components/Input/Input.js.map +1 -1
  26. package/dist/components/MultiSelect.js +85 -83
  27. package/dist/components/MultiSelect.js.map +1 -1
  28. package/dist/components/ShadowEscape.js +49 -78
  29. package/dist/components/ShadowEscape.js.map +1 -1
  30. package/dist/components/Sidebar.js +152 -122
  31. package/dist/components/Sidebar.js.map +1 -1
  32. package/dist/components/Table/Table.js +345 -345
  33. package/dist/components/Table/Table.js.map +1 -1
  34. package/dist/components/TextArea/TextArea.js +73 -71
  35. package/dist/components/TextArea/TextArea.js.map +1 -1
  36. package/dist/components/overlayBehaviour.js +159 -143
  37. package/dist/components/overlayBehaviour.js.map +1 -1
  38. package/dist/components/sidebarContext.js +7 -6
  39. package/dist/components/sidebarContext.js.map +1 -1
  40. package/dist/index.d.ts +28 -1
  41. package/dist/index.js +320 -319
  42. package/dist/tailwind.css.js +1 -1
  43. package/dist/theme.js +21 -16
  44. package/dist/theme.js.map +1 -1
  45. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -376,6 +376,8 @@ declare interface BaseFormComponentProps {
376
376
  label?: string;
377
377
  description?: string;
378
378
  hint?: string;
379
+ /** Decorative, so it stays out of the accessible name; shown only with a `hint`. */
380
+ hintIcon?: default_2.ReactNode;
379
381
  rightSideContent?: RightSideContent;
380
382
  tooltip?: string;
381
383
  required?: boolean;
@@ -1475,6 +1477,8 @@ declare interface DatePickerBaseProps {
1475
1477
  formControl?: Control<FieldValues, unknown>;
1476
1478
  label?: string;
1477
1479
  hint?: string;
1480
+ /** Decorative icon drawn before `hint`, such as a glyph for the value's type. Shown only with a `hint`. */
1481
+ hintIcon?: default_2.ReactNode;
1478
1482
  description?: string;
1479
1483
  tooltip?: string;
1480
1484
  helperText?: default_2.ReactNode;
@@ -1633,11 +1637,13 @@ export declare const DoubleCheckIcon: React.FC<IconProps_42>;
1633
1637
 
1634
1638
  export declare const DownloadIcon: React.FC<IconProps_43>;
1635
1639
 
1636
- export declare const Dropdown: ({ items, onItemSelected, defaultValue, value, disabled, error, tone, label, hint, rightSideContent, tooltip, name, required, requiredIndicator, loading, menuLoading, formControl, description, helperText, placeholder, search, showSubtitleInTrigger, subtitleLayout, clearable, size, fullWidth, width, minWidth, menuAlign, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: DropdownProps) => JSX_2.Element;
1640
+ export declare const Dropdown: ({ items, onItemSelected, defaultValue, value, disabled, error, tone, label, hint, hintIcon, rightSideContent, tooltip, name, required, requiredIndicator, loading, menuLoading, formControl, description, helperText, placeholder, search, onSearchChange, showSubtitleInTrigger, subtitleLayout, clearable, size, fullWidth, width, minWidth, menuAlign, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: DropdownProps) => JSX_2.Element;
1637
1641
 
1638
1642
  declare interface DropdownBaseProps {
1639
1643
  label?: string;
1640
1644
  hint?: string;
1645
+ /** Decorative icon drawn before `hint`, such as a glyph for the value's type. Shown only with a `hint`. */
1646
+ hintIcon?: default_2.ReactNode;
1641
1647
  rightSideContent?: RightSideContent;
1642
1648
  tooltip?: string;
1643
1649
  name: FieldPath<FieldValues> | string;
@@ -1722,9 +1728,17 @@ declare type DropdownTriggerModeProps = {
1722
1728
  search?: false;
1723
1729
  /** Promotes the selected item's `subtitle` into the closed trigger, beneath the value. */
1724
1730
  showSubtitleInTrigger?: boolean;
1731
+ onSearchChange?: never;
1725
1732
  } | {
1726
1733
  search: true;
1727
1734
  showSubtitleInTrigger?: never;
1735
+ /**
1736
+ * Called with the query as typed, and with `''` when a pick, a clear, Escape or a click
1737
+ * outside empties it. For offering the typed text as an item of its own: items are still
1738
+ * filtered by the query, so that item's label must contain it, and it must stay in `items`
1739
+ * once picked, or the trigger falls back to the placeholder.
1740
+ */
1741
+ onSearchChange?: (query: string) => void;
1728
1742
  };
1729
1743
 
1730
1744
  export declare const EditIcon: React.FC<IconProps_44>;
@@ -2981,6 +2995,8 @@ export declare const Input: default_2.FC<InputProps>;
2981
2995
  declare interface InputProps {
2982
2996
  label?: string;
2983
2997
  hint?: string;
2998
+ /** Decorative icon drawn before `hint`, such as a glyph for the value's type. Shown only with a `hint`. */
2999
+ hintIcon?: default_2.ReactNode;
2984
3000
  tooltip?: string;
2985
3001
  placeholder?: string;
2986
3002
  icon?: default_2.ReactNode;
@@ -3767,6 +3783,8 @@ declare interface MultiSelectBaseProps {
3767
3783
  description?: string;
3768
3784
  tooltip?: string;
3769
3785
  hint?: string;
3786
+ /** Decorative icon drawn before `hint`, such as a glyph for the value's type. Shown only with a `hint`. */
3787
+ hintIcon?: default_2.ReactNode;
3770
3788
  rightSideContent?: RightSideContent;
3771
3789
  required?: boolean;
3772
3790
  requiredIndicator?: RequiredIndicator;
@@ -4754,6 +4772,9 @@ export declare const Sidebar: default_2.FC<SidebarProps> & {
4754
4772
  }>;
4755
4773
  };
4756
4774
 
4775
+ /** Below this viewport width the sidebar leaves no room for the page beside it: pass `overlay`. */
4776
+ export declare const SIDEBAR_OVERLAY_BREAKPOINT_PX = 768;
4777
+
4757
4778
  export declare const SIDEBAR_POPOVER_WIDTH_PX = 244;
4758
4779
 
4759
4780
  export declare const SIDEBAR_TOOLTIP_DELAY_S = 0.2;
@@ -4776,6 +4797,10 @@ declare type SidebarButtonAttributes = Omit<default_2.ButtonHTMLAttributes<HTMLB
4776
4797
 
4777
4798
  export declare interface SidebarProps {
4778
4799
  collapsed?: boolean;
4800
+ /** Expanded from its rail, the sidebar floats over the page as a modal drawer: a scrim, Escape
4801
+ * and a focus trap, each of which collapses it through `onToggleCollapse`. For viewports
4802
+ * under `SIDEBAR_OVERLAY_BREAKPOINT_PX`; collapse it on entering, as a drawer starts shut. */
4803
+ overlay?: boolean;
4779
4804
  onToggleCollapse?: () => void;
4780
4805
  expandLabel?: string;
4781
4806
  collapseLabel?: string;
@@ -5497,6 +5522,8 @@ export declare const TextArea: default_2.FC<TextAreaProps>;
5497
5522
  declare interface TextAreaProps {
5498
5523
  label?: string;
5499
5524
  hint?: string;
5525
+ /** Decorative icon drawn before `hint`, such as a glyph for the value's type. Shown only with a `hint`. */
5526
+ hintIcon?: default_2.ReactNode;
5500
5527
  tooltip?: string;
5501
5528
  placeholder?: string;
5502
5529
  icon?: default_2.ReactNode;