@pega/cosmos-react-work 9.10.1 → 9.12.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.
Files changed (40) hide show
  1. package/lib/components/CaseView/CaseView.styles.d.ts.map +1 -1
  2. package/lib/components/CaseView/CaseView.styles.js +7 -3
  3. package/lib/components/CaseView/CaseView.styles.js.map +1 -1
  4. package/lib/components/Shortcuts/Shortcuts.d.ts.map +1 -1
  5. package/lib/components/Shortcuts/Shortcuts.js +13 -6
  6. package/lib/components/Shortcuts/Shortcuts.js.map +1 -1
  7. package/lib/components/Shortcuts/Shortcuts.styles.d.ts +13 -2
  8. package/lib/components/Shortcuts/Shortcuts.styles.d.ts.map +1 -1
  9. package/lib/components/Shortcuts/Shortcuts.styles.js +71 -29
  10. package/lib/components/Shortcuts/Shortcuts.styles.js.map +1 -1
  11. package/lib/components/Shortcuts/Shortcuts.types.d.ts +4 -0
  12. package/lib/components/Shortcuts/Shortcuts.types.d.ts.map +1 -1
  13. package/lib/components/Shortcuts/Shortcuts.types.js.map +1 -1
  14. package/lib/components/Stages/Stages.d.ts +4 -2
  15. package/lib/components/Stages/Stages.d.ts.map +1 -1
  16. package/lib/components/Stages/Stages.js +100 -88
  17. package/lib/components/Stages/Stages.js.map +1 -1
  18. package/lib/components/Stages/Stages.styles.d.ts +57 -0
  19. package/lib/components/Stages/Stages.styles.d.ts.map +1 -1
  20. package/lib/components/Stages/Stages.styles.js +326 -53
  21. package/lib/components/Stages/Stages.styles.js.map +1 -1
  22. package/lib/components/Stages/Stages.test-ids.d.ts +2 -0
  23. package/lib/components/Stages/Stages.test-ids.d.ts.map +1 -0
  24. package/lib/components/Stages/Stages.test-ids.js +3 -0
  25. package/lib/components/Stages/Stages.test-ids.js.map +1 -0
  26. package/lib/components/Stages/Stages.types.d.ts +3 -3
  27. package/lib/components/Stages/Stages.types.d.ts.map +1 -1
  28. package/lib/components/Stages/Stages.types.js.map +1 -1
  29. package/lib/components/Stages/index.d.ts +1 -0
  30. package/lib/components/Stages/index.d.ts.map +1 -1
  31. package/lib/components/Stages/index.js +1 -0
  32. package/lib/components/Stages/index.js.map +1 -1
  33. package/lib/components/Tasks/TaskList.d.ts.map +1 -1
  34. package/lib/components/Tasks/TaskList.js +24 -16
  35. package/lib/components/Tasks/TaskList.js.map +1 -1
  36. package/lib/components/Tasks/Tasks.d.ts +5 -0
  37. package/lib/components/Tasks/Tasks.d.ts.map +1 -1
  38. package/lib/components/Tasks/Tasks.js +7 -5
  39. package/lib/components/Tasks/Tasks.js.map +1 -1
  40. package/package.json +3 -3
@@ -1,27 +1,84 @@
1
+ /**
2
+ * Outer wrapper `<div>` for the stages bar. Applies layered scroll-fade masks and
3
+ * reserves scrollbar space so the fade gradient does not overlap the scrollbar track.
4
+ */
5
+ export declare const StyledStagesWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ /**
7
+ * Scrollable `<ol>` containing all stage chevron items. Sets the `--chevron-spacing`
8
+ * and `--chevron-border-thickness` custom properties consumed by child elements.
9
+ */
1
10
  export declare const StyledStages: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, never>> & string;
11
+ /**
12
+ * A sentinel is an invisible 1 px <li> placed at each end of the scrollable stage list.
13
+ * It is observed by an IntersectionObserver; when it scrolls out of view, the component sets
14
+ * --stages-fade-start or --stages-fade-end to show a gradient fade indicating more stages
15
+ * are reachable by scrolling. When it comes back into view the property is reset to 0.
16
+ *
17
+ * Sentinel elements carry aria-hidden="true" so they are valid list items semantically.
18
+ * Because styled-components scopes all CSS to a generated class, the chevron and layout rules
19
+ * in StyledStageContainer never apply to these elements — they carry a different class.
20
+ * CSS type-based selectors (:nth-of-type, :nth-last-of-type) in StyledStageContainer are
21
+ * offset by 1 at each end to skip the sentinels and target only real stage items.
22
+ */
23
+ export declare const StyledSentinel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
24
+ /**
25
+ * Inner `<span>` holding stage label content. Optionally applies `text-overflow: ellipsis`
26
+ * for stages with long labels.
27
+ */
2
28
  export declare const StyledInnerStage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
3
29
  ellipsis?: boolean;
4
30
  }>> & string;
31
+ /**
32
+ * Clickable `<button>` for a single stage. Renders the chevron clip-path shape and
33
+ * applies status-based background and foreground colours.
34
+ */
5
35
  export declare const StyledStage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
6
36
  status: "completed" | "current" | "pending";
7
37
  readOnly?: boolean;
8
38
  }>> & string;
39
+ /**
40
+ * Checkmark icon shown inside completed stages, tinted to match the stage foreground colour.
41
+ */
9
42
  export declare const StyledStageCompleteIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("@pega/cosmos-react-core").IconProps & import("styled-components/dist/types").BaseObject, import("styled-components/dist/types").BaseObject>> & string & Omit<import("react").ForwardRefExoticComponent<import("@pega/cosmos-react-core").IconProps>, keyof import("react").Component<any, {}, any>>;
43
+ /**
44
+ * Stage label text. Renders in bold weight when the stage is the current active stage.
45
+ */
10
46
  export declare const StyledStageText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("@pega/cosmos-react-core").TextProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement | HTMLSpanElement> & import("@pega/cosmos-react-core").ForwardProps, "ref"> & {
11
47
  ref?: ((instance: HTMLHeadingElement | HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLHeadingElement | HTMLSpanElement> | null | undefined;
12
48
  }, {
13
49
  isCurrent?: boolean;
14
50
  }>> & string & Omit<import("@pega/cosmos-react-core").ForwardRefForwardPropsComponent<import("@pega/cosmos-react-core").TextProps>, keyof import("react").Component<any, {}, any>>;
51
+ /**
52
+ * `<li>` container for a single stage item. Manages negative-margin chevron overlap,
53
+ * pseudo-element positioning, and z-index stacking for interactive states.
54
+ */
15
55
  export declare const StyledStageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {
16
56
  readOnly?: boolean;
17
57
  }>> & string;
58
+ /**
59
+ * `<ol>` list of sub-step items displayed below the stages bar when a stage is expanded.
60
+ */
18
61
  export declare const StyledStepsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, never>> & string;
62
+ /**
63
+ * Individual step `<li>` within a stage. Dims text and icon at reduced opacity when completed.
64
+ */
19
65
  export declare const StyledStep: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {
20
66
  completed: boolean;
21
67
  }>> & string;
68
+ /**
69
+ * Small datetime label rendered beneath a step. Displayed at the `xs` font size
70
+ * and reduced opacity.
71
+ */
22
72
  export declare const StyledDateTimeDisplay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("@pega/cosmos-react-core").DateTimeDisplayProps, "ref"> & import("react").RefAttributes<HTMLSpanElement> & import("@pega/cosmos-react-core").ForwardProps, "ref"> & {
23
73
  ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
24
74
  }, never>> & string & Omit<import("@pega/cosmos-react-core").ForwardRefForwardPropsComponent<import("@pega/cosmos-react-core").DateTimeDisplayProps>, keyof import("react").Component<any, {}, any>>;
75
+ /**
76
+ * Container `<div>` for the stage glimpse preview panel, constrained to a small max-width.
77
+ */
25
78
  export declare const StyledStageGlimpse: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
79
+ /**
80
+ * Visually hidden `<p>` providing an accessible description for the stages list,
81
+ * announced by screen readers but not displayed on screen.
82
+ */
26
83
  export declare const StyledStagesDescription: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
27
84
  //# sourceMappingURL=Stages.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stages.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Stages/Stages.styles.ts"],"names":[],"mappings":"AAqHA,eAAO,MAAM,YAAY,mOAgBvB,CAAC;AAIH,eAAO,MAAM,gBAAgB;eAA4B,OAAO;YAW9D,CAAC;AAIH,eAAO,MAAM,WAAW;YACd,WAAW,GAAG,SAAS,GAAG,SAAS;eAChC,OAAO;YAwGnB,CAAC;AAIF,eAAO,MAAM,uBAAuB,kaAiBlC,CAAC;AAGH,eAAO,MAAM,eAAe;;;gBAA8B,OAAO;kLAIhE,CAAC;AAIF,eAAO,MAAM,oBAAoB;eACpB,OAA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