@box/blueprint-web 17.11.0 → 17.11.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.
@@ -1,2 +1,2 @@
1
1
  export { Button } from './button';
2
- export { type ButtonProps } from './types';
2
+ export { type ButtonAsLinkProps, type ButtonProps } from './types';
@@ -9,3 +9,20 @@ export type ButtonProps = BaseButtonProps & {
9
9
  /** Icon that will be placed before the children text. */
10
10
  startIcon?: SvgIconComponent;
11
11
  };
12
+ /**
13
+ * Consumer contract for composing `Button` with `Link` through `render`.
14
+ *
15
+ * `clickOnSpace` must be `false` so Space scrolls like a native link. Do not pass
16
+ * `disabled`, `loading`, `loadingAriaLabel`, `endIcon`, or `startIcon`. Size is
17
+ * `small` or `large` only. `Button` still accepts full `ButtonProps`. This type
18
+ * does not narrow `render` to `Link`.
19
+ */
20
+ export type ButtonAsLinkProps = Omit<ButtonProps, 'clickOnSpace' | 'disabled' | 'endIcon' | 'loading' | 'loadingAriaLabel' | 'size' | 'startIcon'> & {
21
+ clickOnSpace: false;
22
+ disabled?: never;
23
+ endIcon?: never;
24
+ loading?: never;
25
+ loadingAriaLabel?: never;
26
+ size?: Exclude<NonNullable<ButtonProps['size']>, 'x-small'>;
27
+ startIcon?: never;
28
+ };
@@ -1,4 +1,4 @@
1
1
  import '../index.css';
2
- var styles = {"container":"bp_combobox_module_container--51090","label":"bp_combobox_module_label--51090","textInput":"bp_combobox_module_textInput--51090","popover":"bp_combobox_module_popover--51090","disabled":"bp_combobox_module_disabled--51090","hiddenLabel":"bp_combobox_module_hiddenLabel--51090","comboboxContainer":"bp_combobox_module_comboboxContainer--51090","comboboxContainerInner":"bp_combobox_module_comboboxContainerInner--51090","withChips":"bp_combobox_module_withChips--51090","error":"bp_combobox_module_error--51090","withComboboxButtons":"bp_combobox_module_withComboboxButtons--51090","withInlineErrorAndEndButton":"bp_combobox_module_withInlineErrorAndEndButton--51090","textInputWrapper":"bp_combobox_module_textInputWrapper--51090","comboboxButtons":"bp_combobox_module_comboboxButtons--51090","inlineErrorIcon":"bp_combobox_module_inlineErrorIcon--51090","inlineError":"bp_combobox_module_inlineError--51090","popoverInner":"bp_combobox_module_popoverInner--51090","option":"bp_combobox_module_option--51090","indicator":"bp_combobox_module_indicator--51090","indicatorIcon":"bp_combobox_module_indicatorIcon--51090","optionWithIndicator":"bp_combobox_module_optionWithIndicator--51090","loadingIndicator":"bp_combobox_module_loadingIndicator--51090"};
2
+ var styles = {"container":"bp_combobox_module_container--0d975","label":"bp_combobox_module_label--0d975","textInput":"bp_combobox_module_textInput--0d975","popover":"bp_combobox_module_popover--0d975","disabled":"bp_combobox_module_disabled--0d975","hiddenLabel":"bp_combobox_module_hiddenLabel--0d975","comboboxContainer":"bp_combobox_module_comboboxContainer--0d975","comboboxContainerInner":"bp_combobox_module_comboboxContainerInner--0d975","withChips":"bp_combobox_module_withChips--0d975","error":"bp_combobox_module_error--0d975","withComboboxButtons":"bp_combobox_module_withComboboxButtons--0d975","withInlineErrorAndEndButton":"bp_combobox_module_withInlineErrorAndEndButton--0d975","textInputWrapper":"bp_combobox_module_textInputWrapper--0d975","comboboxButtons":"bp_combobox_module_comboboxButtons--0d975","inlineErrorIcon":"bp_combobox_module_inlineErrorIcon--0d975","inlineError":"bp_combobox_module_inlineError--0d975","popoverInner":"bp_combobox_module_popoverInner--0d975","option":"bp_combobox_module_option--0d975","indicator":"bp_combobox_module_indicator--0d975","indicatorIcon":"bp_combobox_module_indicatorIcon--0d975","optionWithIndicator":"bp_combobox_module_optionWithIndicator--0d975","loadingIndicator":"bp_combobox_module_loadingIndicator--0d975"};
3
3
 
4
4
  export { styles as default };
@@ -1,4 +1,4 @@
1
1
  import '../index.css';
2
- var styles = {"container":"bp_combobox_group_module_container--75866","trailing":"bp_combobox_group_module_trailing--75866","leading":"bp_combobox_group_module_leading--75866","label":"bp_combobox_group_module_label--75866","comboboxContainer":"bp_combobox_group_module_comboboxContainer--75866","comboboxGroupcontainer":"bp_combobox_group_module_comboboxGroupcontainer--75866","disabled":"bp_combobox_group_module_disabled--75866","errorCombobox":"bp_combobox_group_module_errorCombobox--75866","errorSelect":"bp_combobox_group_module_errorSelect--75866","selectHasFocus":"bp_combobox_group_module_selectHasFocus--75866","comboboxHasFocus":"bp_combobox_group_module_comboboxHasFocus--75866"};
2
+ var styles = {"container":"bp_combobox_group_module_container--07d83","trailing":"bp_combobox_group_module_trailing--07d83","leading":"bp_combobox_group_module_leading--07d83","label":"bp_combobox_group_module_label--07d83","comboboxContainer":"bp_combobox_group_module_comboboxContainer--07d83","comboboxGroupcontainer":"bp_combobox_group_module_comboboxGroupcontainer--07d83","disabled":"bp_combobox_group_module_disabled--07d83","errorCombobox":"bp_combobox_group_module_errorCombobox--07d83","errorSelect":"bp_combobox_group_module_errorSelect--07d83","selectHasFocus":"bp_combobox_group_module_selectHasFocus--07d83","comboboxHasFocus":"bp_combobox_group_module_comboboxHasFocus--07d83"};
3
3
 
4
4
  export { styles as default };