@uniformdev/design-system 19.55.1-alpha.8 → 19.56.1-alpha.10

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.d.mts CHANGED
@@ -1,10 +1,10 @@
1
+ import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
1
2
  import * as React$1 from 'react';
2
3
  import React__default, { RefObject, HTMLAttributes, ReactNode, ImgHTMLAttributes, SVGProps, CSSProperties, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
3
4
  import { GroupBase } from 'react-select';
4
5
  export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionLabel, GetOptionValue, GroupBase, GroupHeadingProps, GroupProps, MenuListProps, MenuPlacement, MultiValue, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionContext, OptionProps, Options, OptionsOrGroups } from 'react-select';
5
6
  import * as _emotion_react from '@emotion/react';
6
7
  import { SerializedStyles } from '@emotion/react';
7
- import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
8
8
  import { LottieComponentProps } from 'lottie-react';
9
9
  import { ButtonProps as ButtonProps$1 } from 'reakit/Button';
10
10
  import { MenuProps as MenuProps$1, MenuItemHTMLProps } from 'reakit';
@@ -27,15 +27,20 @@ export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/ric
27
27
 
28
28
  /** @todo: line 144 onwards will be brought into a title, paragraph, list and link components */
29
29
  type ThemeProps = {
30
- /** sets whether to disable a provided reset stylesheet or not
30
+ /**
31
+ * Sets whether to disable a provided "modern-normalizer" reset stylesheet
31
32
  * @default false
32
33
  */
33
34
  disableReset?: boolean;
35
+ /**
36
+ * Sets whether to disable global Uniform reset styles
37
+ */
38
+ disableGlobalReset?: boolean;
34
39
  };
35
40
  /**
36
41
  * Uniform CSS Variables, font provider and optional reset stylesheet
37
42
  * @example <Theme disableReset={true} /> */
38
- declare const Theme: React__default.ElementType;
43
+ declare const Theme: ({ disableReset, disableGlobalReset }: ThemeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
39
44
 
40
45
  /** Breakpoint label values */
41
46
  type BreakpointSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
@@ -22247,6 +22252,8 @@ type CommonParameterInputProps = CommonParameterProps & {
22247
22252
  caption?: string;
22248
22253
  /** sets menu items within the design system component Menu */
22249
22254
  menuItems?: ReactNode;
22255
+ /** sets action items */
22256
+ actionItems?: React.ReactNode;
22250
22257
  /** (option) sets validation message test id for test automation */
22251
22258
  errorTestId?: string;
22252
22259
  /** (option) sets caption message test id for test automation */
@@ -22359,6 +22366,7 @@ type ParameterInputProps = CommonParameterInputProps & React.InputHTMLAttributes
22359
22366
  declare const ParameterInput: React$1.ForwardRefExoticComponent<CommonParameterProps & {
22360
22367
  caption?: string | undefined;
22361
22368
  menuItems?: React$1.ReactNode;
22369
+ actionItems?: React$1.ReactNode;
22362
22370
  errorTestId?: string | undefined;
22363
22371
  captionTestId?: string | undefined;
22364
22372
  title?: string | undefined;
@@ -22390,6 +22398,7 @@ type ParameterLinkProps = CommonParameterInputProps & React.InputHTMLAttributes<
22390
22398
  declare const ParameterLink: React$1.ForwardRefExoticComponent<CommonParameterProps & {
22391
22399
  caption?: string | undefined;
22392
22400
  menuItems?: React$1.ReactNode;
22401
+ actionItems?: React$1.ReactNode;
22393
22402
  errorTestId?: string | undefined;
22394
22403
  captionTestId?: string | undefined;
22395
22404
  title?: string | undefined;
@@ -22542,6 +22551,7 @@ type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectPro
22542
22551
  declare const ParameterSelect: React$1.ForwardRefExoticComponent<CommonParameterProps & {
22543
22552
  caption?: string | undefined;
22544
22553
  menuItems?: React$1.ReactNode;
22554
+ actionItems?: React$1.ReactNode;
22545
22555
  errorTestId?: string | undefined;
22546
22556
  captionTestId?: string | undefined;
22547
22557
  title?: string | undefined;
@@ -22554,6 +22564,7 @@ declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<Param
22554
22564
  declare const extractParameterProps: <T>(props: T & CommonParameterProps & {
22555
22565
  caption?: string | undefined;
22556
22566
  menuItems?: ReactNode;
22567
+ actionItems?: ReactNode;
22557
22568
  errorTestId?: string | undefined;
22558
22569
  captionTestId?: string | undefined;
22559
22570
  title?: string | undefined;
@@ -22577,6 +22588,7 @@ declare const extractParameterProps: <T>(props: T & CommonParameterProps & {
22577
22588
  innerProps: Omit<T & CommonParameterProps & {
22578
22589
  caption?: string | undefined;
22579
22590
  menuItems?: ReactNode;
22591
+ actionItems?: ReactNode;
22580
22592
  errorTestId?: string | undefined;
22581
22593
  captionTestId?: string | undefined;
22582
22594
  title?: string | undefined;
@@ -22597,7 +22609,7 @@ type ParameterShellProps = React.InputHTMLAttributes<HTMLDivElement> & CommonPar
22597
22609
  * Uniform Parameter shell component
22598
22610
  * @example <ParameterShell label="my label" id="my-id"><ParameterInput onChange={() => {}} /></ParameterShell>
22599
22611
  */
22600
- declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, hasOverriddenValue, onResetOverriddenValue, title, children, ...props }: ParameterShellProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
22612
+ declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, actionItems, hasOverriddenValue, onResetOverriddenValue, title, children, ...props }: ParameterShellProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
22601
22613
  declare const ParameterShellPlaceholder: ({ children }: {
22602
22614
  children?: ReactNode;
22603
22615
  }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
@@ -22609,6 +22621,7 @@ type ParameterTextareaProps = CommonParameterInputProps & React.TextareaHTMLAttr
22609
22621
  declare const ParameterTextarea: React$1.ForwardRefExoticComponent<CommonParameterProps & {
22610
22622
  caption?: string | undefined;
22611
22623
  menuItems?: React$1.ReactNode;
22624
+ actionItems?: React$1.ReactNode;
22612
22625
  errorTestId?: string | undefined;
22613
22626
  captionTestId?: string | undefined;
22614
22627
  title?: string | undefined;
@@ -22623,6 +22636,7 @@ type ParameterToggleProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 't
22623
22636
  declare const ParameterToggle: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & CommonParameterProps & {
22624
22637
  caption?: string | undefined;
22625
22638
  menuItems?: React$1.ReactNode;
22639
+ actionItems?: React$1.ReactNode;
22626
22640
  errorTestId?: string | undefined;
22627
22641
  captionTestId?: string | undefined;
22628
22642
  title?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
+ import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
1
2
  import * as React$1 from 'react';
2
3
  import React__default, { RefObject, HTMLAttributes, ReactNode, ImgHTMLAttributes, SVGProps, CSSProperties, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
3
4
  import { GroupBase } from 'react-select';
4
5
  export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionLabel, GetOptionValue, GroupBase, GroupHeadingProps, GroupProps, MenuListProps, MenuPlacement, MultiValue, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionContext, OptionProps, Options, OptionsOrGroups } from 'react-select';
5
6
  import * as _emotion_react from '@emotion/react';
6
7
  import { SerializedStyles } from '@emotion/react';
7
- import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
8
8
  import { LottieComponentProps } from 'lottie-react';
9
9
  import { ButtonProps as ButtonProps$1 } from 'reakit/Button';
10
10
  import { MenuProps as MenuProps$1, MenuItemHTMLProps } from 'reakit';
@@ -27,15 +27,20 @@ export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/ric
27
27
 
28
28
  /** @todo: line 144 onwards will be brought into a title, paragraph, list and link components */
29
29
  type ThemeProps = {
30
- /** sets whether to disable a provided reset stylesheet or not
30
+ /**
31
+ * Sets whether to disable a provided "modern-normalizer" reset stylesheet
31
32
  * @default false
32
33
  */
33
34
  disableReset?: boolean;
35
+ /**
36
+ * Sets whether to disable global Uniform reset styles
37
+ */
38
+ disableGlobalReset?: boolean;
34
39
  };
35
40
  /**
36
41
  * Uniform CSS Variables, font provider and optional reset stylesheet
37
42
  * @example <Theme disableReset={true} /> */
38
- declare const Theme: React__default.ElementType;
43
+ declare const Theme: ({ disableReset, disableGlobalReset }: ThemeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
39
44
 
40
45
  /** Breakpoint label values */
41
46
  type BreakpointSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
@@ -22247,6 +22252,8 @@ type CommonParameterInputProps = CommonParameterProps & {
22247
22252
  caption?: string;
22248
22253
  /** sets menu items within the design system component Menu */
22249
22254
  menuItems?: ReactNode;
22255
+ /** sets action items */
22256
+ actionItems?: React.ReactNode;
22250
22257
  /** (option) sets validation message test id for test automation */
22251
22258
  errorTestId?: string;
22252
22259
  /** (option) sets caption message test id for test automation */
@@ -22359,6 +22366,7 @@ type ParameterInputProps = CommonParameterInputProps & React.InputHTMLAttributes
22359
22366
  declare const ParameterInput: React$1.ForwardRefExoticComponent<CommonParameterProps & {
22360
22367
  caption?: string | undefined;
22361
22368
  menuItems?: React$1.ReactNode;
22369
+ actionItems?: React$1.ReactNode;
22362
22370
  errorTestId?: string | undefined;
22363
22371
  captionTestId?: string | undefined;
22364
22372
  title?: string | undefined;
@@ -22390,6 +22398,7 @@ type ParameterLinkProps = CommonParameterInputProps & React.InputHTMLAttributes<
22390
22398
  declare const ParameterLink: React$1.ForwardRefExoticComponent<CommonParameterProps & {
22391
22399
  caption?: string | undefined;
22392
22400
  menuItems?: React$1.ReactNode;
22401
+ actionItems?: React$1.ReactNode;
22393
22402
  errorTestId?: string | undefined;
22394
22403
  captionTestId?: string | undefined;
22395
22404
  title?: string | undefined;
@@ -22542,6 +22551,7 @@ type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectPro
22542
22551
  declare const ParameterSelect: React$1.ForwardRefExoticComponent<CommonParameterProps & {
22543
22552
  caption?: string | undefined;
22544
22553
  menuItems?: React$1.ReactNode;
22554
+ actionItems?: React$1.ReactNode;
22545
22555
  errorTestId?: string | undefined;
22546
22556
  captionTestId?: string | undefined;
22547
22557
  title?: string | undefined;
@@ -22554,6 +22564,7 @@ declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<Param
22554
22564
  declare const extractParameterProps: <T>(props: T & CommonParameterProps & {
22555
22565
  caption?: string | undefined;
22556
22566
  menuItems?: ReactNode;
22567
+ actionItems?: ReactNode;
22557
22568
  errorTestId?: string | undefined;
22558
22569
  captionTestId?: string | undefined;
22559
22570
  title?: string | undefined;
@@ -22577,6 +22588,7 @@ declare const extractParameterProps: <T>(props: T & CommonParameterProps & {
22577
22588
  innerProps: Omit<T & CommonParameterProps & {
22578
22589
  caption?: string | undefined;
22579
22590
  menuItems?: ReactNode;
22591
+ actionItems?: ReactNode;
22580
22592
  errorTestId?: string | undefined;
22581
22593
  captionTestId?: string | undefined;
22582
22594
  title?: string | undefined;
@@ -22597,7 +22609,7 @@ type ParameterShellProps = React.InputHTMLAttributes<HTMLDivElement> & CommonPar
22597
22609
  * Uniform Parameter shell component
22598
22610
  * @example <ParameterShell label="my label" id="my-id"><ParameterInput onChange={() => {}} /></ParameterShell>
22599
22611
  */
22600
- declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, hasOverriddenValue, onResetOverriddenValue, title, children, ...props }: ParameterShellProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
22612
+ declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, actionItems, hasOverriddenValue, onResetOverriddenValue, title, children, ...props }: ParameterShellProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
22601
22613
  declare const ParameterShellPlaceholder: ({ children }: {
22602
22614
  children?: ReactNode;
22603
22615
  }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
@@ -22609,6 +22621,7 @@ type ParameterTextareaProps = CommonParameterInputProps & React.TextareaHTMLAttr
22609
22621
  declare const ParameterTextarea: React$1.ForwardRefExoticComponent<CommonParameterProps & {
22610
22622
  caption?: string | undefined;
22611
22623
  menuItems?: React$1.ReactNode;
22624
+ actionItems?: React$1.ReactNode;
22612
22625
  errorTestId?: string | undefined;
22613
22626
  captionTestId?: string | undefined;
22614
22627
  title?: string | undefined;
@@ -22623,6 +22636,7 @@ type ParameterToggleProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 't
22623
22636
  declare const ParameterToggle: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & CommonParameterProps & {
22624
22637
  caption?: string | undefined;
22625
22638
  menuItems?: React$1.ReactNode;
22639
+ actionItems?: React$1.ReactNode;
22626
22640
  errorTestId?: string | undefined;
22627
22641
  captionTestId?: string | undefined;
22628
22642
  title?: string | undefined;