@orient-ai/aurora-ui 1.0.0-alpha.5 → 1.0.0-alpha.6

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.
@@ -2,5 +2,5 @@ import { ComboboxProps } from '../../../Combobox';
2
2
  import { TextFieldProps } from '../../../TextField';
3
3
  export interface ComboboxCellProps extends Omit<ComboboxProps, 'trigger'>, Omit<TextFieldProps, keyof ComboboxProps> {
4
4
  }
5
- export declare function ComboboxCell({ id, options, value, onChange, inputValue, onInputChange, empty, loading, disabled, readOnly, busy, ...inputProps }: ComboboxCellProps): import('react').JSX.Element;
5
+ export declare function ComboboxCell({ id, options, value, onChange, inputValue, onInputChange, empty, footer, loading, hasMore, loadMore, isLoadingMore, disabled, readOnly, busy, ...inputProps }: ComboboxCellProps): import('react').JSX.Element;
6
6
  //# sourceMappingURL=Combobox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Combobox/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,MAAM,WAAW,iBACf,SACE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,EAC9B,IAAI,CAAC,cAAc,EAAE,MAAM,aAAa,CAAC;CAAG;AAEhD,wBAAgB,YAAY,CAAC,EAC3B,EAAE,EACF,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAAK,EACL,OAAO,EACP,QAAgB,EAChB,QAAgB,EAChB,IAAY,EACZ,GAAG,UAAU,EACd,EAAE,iBAAiB,+BAkBnB"}
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/BulkEdit/componnets/Combobox/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,MAAM,WAAW,iBACf,SACE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,EAC9B,IAAI,CAAC,cAAc,EAAE,MAAM,aAAa,CAAC;CAAG;AAEhD,wBAAgB,YAAY,CAAC,EAC3B,EAAE,EACF,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAAK,EACL,MAAM,EACN,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,QAAgB,EAChB,QAAgB,EAChB,IAAY,EACZ,GAAG,UAAU,EACd,EAAE,iBAAiB,+BAsBnB"}
@@ -2,17 +2,33 @@ import { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';
2
2
  import { OptionDescriptor } from '../../types';
3
3
  export interface ComboboxProps {
4
4
  id?: string;
5
- /** Custom input trigger renderer. Forward its props and ref to the native input. */
5
+ /**
6
+ * Custom input trigger renderer. Receives disabled and readOnly automatically.
7
+ * Forward its props and ref to the native input.
8
+ */
6
9
  trigger: NonNullable<ComboboxPrimitive.Input.Props['render']>;
10
+ /** Options to display, without additional internal filtering. */
7
11
  options: readonly OptionDescriptor[];
8
12
  value: string;
9
13
  onChange?: (value: string) => boolean | void;
14
+ /** Text displayed in the input, independent of the selected value. */
10
15
  inputValue: string;
16
+ /** Called when the user edits the input. Selection and closing do not change it. */
11
17
  onInputChange?: (value: string) => void;
12
18
  empty?: React.ReactNode;
19
+ /** Content fixed below the list. A render function can close the popup. */
20
+ footer?: React.ReactNode | ((props: {
21
+ close: () => void;
22
+ }) => React.ReactNode);
13
23
  loading?: boolean;
24
+ /** Whether more options are available to load. */
25
+ hasMore?: boolean;
26
+ /** Called when the end of the list comes into view. */
27
+ loadMore?: () => void;
28
+ /** Shows a bottom spinner while keeping existing options selectable. */
29
+ isLoadingMore?: boolean;
14
30
  disabled?: boolean;
15
31
  readOnly?: boolean;
16
32
  }
17
- export declare function Combobox({ id, trigger, options, value, onChange, inputValue, onInputChange, empty, loading, disabled, readOnly, }: ComboboxProps): import('react').JSX.Element;
33
+ export declare function Combobox({ id, trigger, options, value, onChange, inputValue, onInputChange, empty, footer, loading, hasMore, loadMore, isLoadingMore, disabled, readOnly, }: ComboboxProps): import('react').JSX.Element;
18
34
  //# sourceMappingURL=Combobox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AASxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oFAAoF;IACpF,OAAO,EAAE,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9D,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,QAAQ,CAAC,EACvB,EAAE,EACF,OAAO,EACP,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAA0B,EAC1B,OAAe,EACf,QAAgB,EAChB,QAAgB,GACjB,EAAE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,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAA0B,EAC1B,MAAM,EACN,OAAe,EACf,OAAe,EACf,QAAQ,EACR,aAAqB,EACrB,QAAgB,EAChB,QAAgB,GACjB,EAAE,aAAa,+BA0Lf"}
@@ -1,7 +1,19 @@
1
- import { elements } from '@shopify/polaris-types';
2
- import { ComponentPropsWithRef, Ref } from 'react';
3
- export interface SectionProps extends ComponentPropsWithRef<'s-section'> {
4
- ref?: Ref<InstanceType<typeof elements.Section>>;
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ import { ComplexAction } from '../../types';
3
+ export interface SectionProps extends ComponentPropsWithRef<'section'> {
4
+ accessibilityLabel?: string;
5
+ heading?: string;
6
+ subheading?: string;
7
+ padding?: 'base' | 'none';
8
+ primaryAction?: ReactNode;
9
+ /** Shows one inline action with a primary action, or two without; the rest stay in the menu. */
10
+ secondaryActions?: readonly ComplexAction[];
11
+ graphic?: ReactNode;
12
+ accessory?: ReactNode;
13
+ /** Status or metadata for the whole section, displayed before the header actions. */
14
+ supplemental?: ReactNode;
15
+ /** Content displayed below the body, inside the section card. */
16
+ footer?: ReactNode;
5
17
  }
6
- export declare function Section(props: SectionProps): import('react').JSX.Element;
18
+ export declare function Section({ accessibilityLabel, heading, subheading, padding, primaryAction, secondaryActions, graphic, accessory, supplemental, footer, children, className, ...restProps }: SectionProps): import('react').JSX.Element;
7
19
  //# sourceMappingURL=Section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,WAAW,YAAa,SAAQ,qBAAqB,CAAC,WAAW,CAAC;IACtE,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,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