formica-ui-lib 1.0.246 → 1.0.248

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 (22) hide show
  1. package/dist/componentProps/atoms/buttons/iconbutton/IconButtonProps.d.ts +2 -0
  2. package/dist/componentProps/atoms/input/TextareaProps.d.ts +16 -0
  3. package/dist/componentProps/atoms/input/inputProps.d.ts +1 -1
  4. package/dist/componentProps/molecules/cards/localizationstatuscard/LocalizationStatusCardProps.d.ts +16 -0
  5. package/dist/componentProps/molecules/searchcombobox/SearchComboboxProps.d.ts +36 -0
  6. package/dist/componentProps/organisms/collections/datareportcollection/DataReportCollectionProps.d.ts +30 -0
  7. package/dist/componentProps/organisms/collections/localizationmarketcollection/LocalizationMarketCollectionProps.d.ts +21 -0
  8. package/dist/componentProps/organisms/forms/dynamicform/DynamicFormProps.d.ts +15 -2
  9. package/dist/componentProps/organisms/sections/commercesyncpanel/CommerceSyncPanelProps.d.ts +33 -0
  10. package/dist/index.cjs +8 -8
  11. package/dist/index.d.ts +13 -1
  12. package/dist/index.js +1600 -929
  13. package/dist/stories/atoms/buttons/iconbutton/IconButton.d.ts +4 -0
  14. package/dist/stories/atoms/input/Textarea.d.ts +4 -0
  15. package/dist/stories/molecules/cards/localizationstatuscard/LocalizationStatusCard.d.ts +4 -0
  16. package/dist/stories/molecules/cards/localizationstatuscard/LocalizationStatusCardStatusConfig.d.ts +8 -0
  17. package/dist/stories/molecules/inputs/searchcombobox/SearchCombobox.d.ts +4 -0
  18. package/dist/stories/organisms/collections/datareportcollection/DataReportCollection.d.ts +4 -0
  19. package/dist/stories/organisms/collections/localizationmarketcollection/LocalizationMarketCollection.d.ts +4 -0
  20. package/dist/stories/organisms/sections/commercesyncpanel/CommerceSyncPanel.d.ts +4 -0
  21. package/dist/tailwind.css +1 -1
  22. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import type { ButtonProps } from "../button/ButtonProps";
2
+ export type IconButtonProps = Omit<ButtonProps, "variant" | "label" | "children">;
@@ -0,0 +1,16 @@
1
+ import type React from "react";
2
+ export interface TextareaProps {
3
+ id?: string;
4
+ name?: string;
5
+ value?: string;
6
+ placeholder?: string;
7
+ ariaLabel?: string;
8
+ disabled?: boolean;
9
+ readOnly?: boolean;
10
+ required?: boolean;
11
+ hasError?: boolean;
12
+ rows?: number;
13
+ onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
14
+ onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
15
+ onFocus?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
16
+ }
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export interface InputProps {
3
3
  id?: string;
4
4
  name?: string;
5
- type?: "text" | "email" | "password" | "tel" | "number" | "search";
5
+ type?: "text" | "email" | "password" | "tel" | "number" | "search" | "date";
6
6
  value?: string;
7
7
  placeholder?: string;
8
8
  ariaLabel?: string;
@@ -0,0 +1,16 @@
1
+ export type LocalizationStatus = "complete" | "partial" | "missing" | "notRequired";
2
+ export interface LocalizationStatusCardClickPayload {
3
+ id: string;
4
+ title: string;
5
+ status: LocalizationStatus;
6
+ statusLabel: string;
7
+ }
8
+ export interface LocalizationStatusCardProps {
9
+ id: string;
10
+ title: string;
11
+ description?: string;
12
+ status: LocalizationStatus;
13
+ statusLabel: string;
14
+ selected?: boolean;
15
+ onCardClick?: (payload: LocalizationStatusCardClickPayload) => void;
16
+ }
@@ -0,0 +1,36 @@
1
+ export interface SearchComboboxOption {
2
+ id: string;
3
+ label: string;
4
+ value: string;
5
+ description?: string;
6
+ }
7
+ export interface SearchComboboxQueryChangePayload {
8
+ value: string;
9
+ }
10
+ export interface SearchComboboxSelectPayload {
11
+ option: SearchComboboxOption;
12
+ query: string;
13
+ }
14
+ export interface SearchComboboxSubmitPayload {
15
+ value: string;
16
+ }
17
+ export interface SearchComboboxClearPayload {
18
+ value: string;
19
+ }
20
+ export interface SearchComboboxProps {
21
+ id?: string;
22
+ name?: string;
23
+ ariaLabel?: string;
24
+ placeholder?: string;
25
+ value?: string;
26
+ options: SearchComboboxOption[];
27
+ emptyMessage?: string;
28
+ minQueryLength?: number;
29
+ disabled?: boolean;
30
+ readOnly?: boolean;
31
+ clearLabel?: string;
32
+ onQueryChange?: (payload: SearchComboboxQueryChangePayload) => void;
33
+ onOptionSelect?: (payload: SearchComboboxSelectPayload) => void;
34
+ onSearchSubmit?: (payload: SearchComboboxSubmitPayload) => void;
35
+ onClear?: (payload: SearchComboboxClearPayload) => void;
36
+ }
@@ -0,0 +1,30 @@
1
+ export type DataReportCellValue = string | number | null | undefined;
2
+ export type DataReportColumnAlignment = "left" | "center" | "right";
3
+ export type DataReportColumnWidth = "xs" | "sm" | "md" | "lg" | "xl";
4
+ export interface DataReportColumn {
5
+ id: string;
6
+ label: string;
7
+ alignment?: DataReportColumnAlignment;
8
+ editable?: boolean;
9
+ width?: DataReportColumnWidth;
10
+ maxLength?: number;
11
+ }
12
+ export interface DataReportRow {
13
+ id: string;
14
+ values: Record<string, DataReportCellValue>;
15
+ }
16
+ export interface DataReportRowUpdatePayload {
17
+ row: DataReportRow;
18
+ originalRow: DataReportRow;
19
+ }
20
+ export interface DataReportCollectionProps {
21
+ title: string;
22
+ description?: string;
23
+ columns: DataReportColumn[];
24
+ rows: DataReportRow[];
25
+ rowCountLabel?: string;
26
+ updateLabel?: string;
27
+ emptyMessage?: string;
28
+ ariaLabel?: string;
29
+ onRowUpdate?: (payload: DataReportRowUpdatePayload) => void;
30
+ }
@@ -0,0 +1,21 @@
1
+ import type { LocalizationStatus, LocalizationStatusCardClickPayload } from "../../../molecules/cards/localizationstatuscard/LocalizationStatusCardProps";
2
+ export interface LocalizationLanguageItem {
3
+ id: string;
4
+ label: string;
5
+ description?: string;
6
+ status: LocalizationStatus;
7
+ statusLabel: string;
8
+ }
9
+ export interface LocalizationMarketItem extends LocalizationLanguageItem {
10
+ languages?: LocalizationLanguageItem[];
11
+ }
12
+ export interface LocalizationMarketCollectionProps {
13
+ title?: string;
14
+ markets: LocalizationMarketItem[];
15
+ selectedLocalizationId?: string;
16
+ saveAndNextLabel?: string;
17
+ saveAndNextHelpText?: string;
18
+ saveAndNextDisabled?: boolean;
19
+ onLocalizationSelect?: (payload: LocalizationStatusCardClickPayload) => void;
20
+ onSaveAndNext?: () => void;
21
+ }
@@ -1,13 +1,17 @@
1
- export type DynamicFormFieldType = "text" | "number" | "currency" | "radio" | "select";
1
+ export type DynamicFormFieldType = "text" | "number" | "currency" | "radio" | "select" | "multiSelectTiles" | "textarea" | "date" | "information";
2
2
  export type DynamicFormFieldSeverity = "blocking" | "recommended" | "optional";
3
3
  export type DynamicFormFieldState = "neutral" | "valid" | "warning" | "error";
4
- export type DynamicFormFieldValue = string | number | null;
4
+ export type DynamicFormFieldValue = string | number | string[] | null;
5
5
  export type DynamicFormDensity = "compact" | "comfortable";
6
6
  export type DynamicFormSeverityDisplay = "icon" | "label" | "none";
7
+ export type DynamicFormFieldLayoutWidth = "full" | "half";
8
+ export type DynamicFormInformationLayout = "singleLine" | "multiline";
7
9
  export interface DynamicFormFieldOption {
8
10
  label: string;
9
11
  value: string;
10
12
  disabled?: boolean;
13
+ color?: string;
14
+ checkIconColor?: IconColor;
11
15
  }
12
16
  export interface DynamicFormFieldConfig {
13
17
  id: string;
@@ -23,6 +27,10 @@ export interface DynamicFormFieldConfig {
23
27
  message?: string;
24
28
  helpText?: string;
25
29
  readOnly?: boolean;
30
+ rows?: number;
31
+ layoutWidth?: DynamicFormFieldLayoutWidth;
32
+ informationLayout?: DynamicFormInformationLayout;
33
+ selectionLimit?: number;
26
34
  }
27
35
  export interface DynamicFormFieldGroup {
28
36
  id: string;
@@ -46,7 +54,12 @@ export interface DynamicFormProps {
46
54
  severityDisplay?: DynamicFormSeverityDisplay;
47
55
  submitLabel?: string;
48
56
  cancelLabel?: string;
57
+ submitDisabled?: boolean;
58
+ showActions?: boolean;
59
+ validationSummary?: React.ReactNode;
49
60
  onDynamicFormFieldChange?: (payload: DynamicFormFieldChangePayload) => void;
50
61
  onDynamicFormSubmit?: (payload: DynamicFormSubmitPayload) => void;
51
62
  onDynamicFormCancel?: () => void;
52
63
  }
64
+ import type React from "react";
65
+ import type { IconColor } from "../../../atoms/icon/IconProps";
@@ -0,0 +1,33 @@
1
+ export type CommerceSyncStatus = "synced" | "actionRequired" | "checking" | "error" | "notApplicable";
2
+ export type CommerceSyncFieldStatus = "match" | "mismatch" | "neutral";
3
+ export interface CommerceSyncField {
4
+ id: string;
5
+ label: string;
6
+ value: string;
7
+ detail?: string;
8
+ status?: CommerceSyncFieldStatus;
9
+ }
10
+ export interface CommerceSyncStage {
11
+ title: string;
12
+ description?: string;
13
+ status: CommerceSyncStatus;
14
+ statusLabel: string;
15
+ fields: CommerceSyncField[];
16
+ actionLabel?: string;
17
+ actionDisabled?: boolean;
18
+ actionHelpText?: string;
19
+ }
20
+ export interface CommerceSyncPanelProps {
21
+ title?: string;
22
+ summary: string;
23
+ detail?: string;
24
+ overallStatus: CommerceSyncStatus;
25
+ overallStatusLabel: string;
26
+ lxStage: CommerceSyncStage;
27
+ salsifyStage: CommerceSyncStage;
28
+ bigCommerceStage: CommerceSyncStage;
29
+ refreshLabel?: string;
30
+ onLxSyncClick?: () => void;
31
+ onBigCommerceSyncClick?: () => void;
32
+ onRefreshClick?: () => void;
33
+ }