@orangelogic/design-system 2.86.0 → 2.89.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.
@@ -1,4 +1,5 @@
1
1
  import { default as CortexElement } from '../../../../base/src/cortex-element.ts';
2
+ import { MenuMode } from '../../../../types/src/menu';
2
3
  import { CSSResultGroup } from 'lit';
3
4
  import { default as CxMenuItem } from '../menu-item/menu-item';
4
5
 
@@ -23,7 +24,7 @@ export default class CxMenu extends CortexElement {
23
24
  defaultSlot: HTMLSlotElement;
24
25
  horizontal: boolean;
25
26
  /** The menu's variant */
26
- variant: 'default' | 'multiple';
27
+ variant: MenuMode.Default | MenuMode.Multiple;
27
28
  /** Whether the menu is currently active, used for 'multiple' variant */
28
29
  active: boolean;
29
30
  /** The name of the menu, used for 'multiple' variant */
@@ -0,0 +1,4 @@
1
+ export declare enum MenuMode {
2
+ Default = "default",
3
+ Multiple = "multiple"
4
+ }
@@ -1,7 +1,7 @@
1
1
  import { ButtonVariant } from './button';
2
2
  import { FormatNumberCurrencyDisplay, FormatNumberType } from './format-number';
3
3
  import { PaginationCounter } from './pagination';
4
- import { SpacingProp } from './space';
4
+ import { SpaceJustifyContentProp, SpaceWrapProp, SpacingProp } from './space';
5
5
  import { TypographyVariant } from './typography';
6
6
 
7
7
  export type CxTableEventName = `cx-table.${string}`;
@@ -3141,19 +3141,25 @@ export type CompositeElement = {
3141
3141
  /**
3142
3142
  * @typedef {Object} CompositeFormatterParams
3143
3143
  * @property {('center' | 'end' | 'start' | 'stretch')} [align] - Alignment of elements. Can be `'start'`, `'center'` (default), `'end'`, or `'stretch'`.
3144
+ * @property {boolean} [block] - Whether the container should stretch child elements when vertical.
3144
3145
  * @property {Record<string, string>} [containerStyle] - Object with CSS style properties to apply inline to the container.
3145
3146
  * @property {('column' | 'row')} [direction] - Flex direction for the container. Can be `'column'` or `'row'` (default).
3146
3147
  * @property {CompositeElement[]} elements - Array of element configurations to render.
3147
3148
  * @property {string} [gap] - CSS gap property for spacing between elements (e.g., `'8px'`, `'0.5rem'`).
3149
+ * @property {('start' | 'end' | 'flex-start' | 'flex-end' | 'center' | 'left' | 'right' | 'normal' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch')} [justifyContent] - Justify-content behavior for the container.
3150
+ * @property {('nowrap' | 'wrap' | 'wrap-reverse')} [wrap] - Flex wrap behavior for the container.
3148
3151
  */
3149
3152
  export type CompositeFormatterParams = {
3150
3153
  align?: 'normal' | 'center' | 'start' | 'end' | 'baseline' | 'stretch' | 'flex-start' | 'flex-end';
3154
+ block?: boolean;
3151
3155
  containerStyle?: Record<string, string>;
3152
3156
  direction?: 'vertical' | 'horizontal';
3153
3157
  elements: CompositeElement[];
3154
3158
  gap?: SpacingProp;
3159
+ justifyContent?: SpaceJustifyContentProp;
3155
3160
  placeholder?: string;
3156
3161
  placeholderStyle?: Record<string, string>;
3162
+ wrap?: SpaceWrapProp;
3157
3163
  };
3158
3164
  export type TableDropdownFilterDataOption = {
3159
3165
  filter?: Filter;
@@ -5004,7 +5004,7 @@
5004
5004
  /**
5005
5005
  * The selection behavior of the tree. Single selection allows only one node to be selected at a time. Multiple displays checkboxes and allows more than one node to be selected. Leaf allows only leaf nodes to be selected.
5006
5006
  */
5007
- selection?: 'multiple' | 'single' | 'leaf';
5007
+ selection?: 'single' | 'multiple' | 'leaf';
5008
5008
  /**
5009
5009
  * Whether to automatically expand after loading finishes.
5010
5010
  */
@@ -6016,7 +6016,7 @@
6016
6016
  /**
6017
6017
  *
6018
6018
  */
6019
- selection?: 'multiple' | 'single';
6019
+ selection?: 'single' | 'multiple';
6020
6020
  /**
6021
6021
  *
6022
6022
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.86.0",
4
+ "version": "2.89.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {