@activecollab/components 2.0.246 → 2.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 (47) hide show
  1. package/dist/cjs/components/ContentWizard/ContentStep.js +17 -0
  2. package/dist/cjs/components/ContentWizard/ContentStep.js.map +1 -0
  3. package/dist/cjs/components/ContentWizard/ContentWizard.js +121 -0
  4. package/dist/cjs/components/ContentWizard/ContentWizard.js.map +1 -0
  5. package/dist/cjs/components/ContentWizard/Styles.js +20 -0
  6. package/dist/cjs/components/ContentWizard/Styles.js.map +1 -0
  7. package/dist/cjs/components/ContentWizard/context/ContentWizardContext.js +25 -0
  8. package/dist/cjs/components/ContentWizard/context/ContentWizardContext.js.map +1 -0
  9. package/dist/cjs/components/ContentWizard/context/index.js +17 -0
  10. package/dist/cjs/components/ContentWizard/context/index.js.map +1 -0
  11. package/dist/cjs/components/ContentWizard/index.js +40 -0
  12. package/dist/cjs/components/ContentWizard/index.js.map +1 -0
  13. package/dist/cjs/components/index.js +11 -0
  14. package/dist/cjs/components/index.js.map +1 -1
  15. package/dist/esm/components/ContentWizard/ContentStep.d.ts +10 -0
  16. package/dist/esm/components/ContentWizard/ContentStep.d.ts.map +1 -0
  17. package/dist/esm/components/ContentWizard/ContentStep.js +12 -0
  18. package/dist/esm/components/ContentWizard/ContentStep.js.map +1 -0
  19. package/dist/esm/components/ContentWizard/ContentWizard.d.ts +9 -0
  20. package/dist/esm/components/ContentWizard/ContentWizard.d.ts.map +1 -0
  21. package/dist/esm/components/ContentWizard/ContentWizard.js +96 -0
  22. package/dist/esm/components/ContentWizard/ContentWizard.js.map +1 -0
  23. package/dist/esm/components/ContentWizard/Styles.d.ts +5 -0
  24. package/dist/esm/components/ContentWizard/Styles.d.ts.map +1 -0
  25. package/dist/esm/components/ContentWizard/Styles.js +15 -0
  26. package/dist/esm/components/ContentWizard/Styles.js.map +1 -0
  27. package/dist/esm/components/ContentWizard/context/ContentWizardContext.d.ts +16 -0
  28. package/dist/esm/components/ContentWizard/context/ContentWizardContext.d.ts.map +1 -0
  29. package/dist/esm/components/ContentWizard/context/ContentWizardContext.js +19 -0
  30. package/dist/esm/components/ContentWizard/context/ContentWizardContext.js.map +1 -0
  31. package/dist/esm/components/ContentWizard/context/index.d.ts +2 -0
  32. package/dist/esm/components/ContentWizard/context/index.d.ts.map +1 -0
  33. package/dist/esm/components/ContentWizard/context/index.js +2 -0
  34. package/dist/esm/components/ContentWizard/context/index.js.map +1 -0
  35. package/dist/esm/components/ContentWizard/index.d.ts +5 -0
  36. package/dist/esm/components/ContentWizard/index.d.ts.map +1 -0
  37. package/dist/esm/components/ContentWizard/index.js +5 -0
  38. package/dist/esm/components/ContentWizard/index.js.map +1 -0
  39. package/dist/esm/components/index.d.ts +1 -0
  40. package/dist/esm/components/index.d.ts.map +1 -1
  41. package/dist/esm/components/index.js +1 -0
  42. package/dist/esm/components/index.js.map +1 -1
  43. package/dist/index.js +141 -0
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.min.js +1 -1
  46. package/dist/index.min.js.map +1 -1
  47. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentWizard.js","names":["React","forwardRef","useCallback","useMemo","useRef","useState","MoveFocusInside","ContentStep","ContentWizardContextProvider","StyledContentWizardContainer","StyledStepWrapper","SlideLeftRightTransition","ResizeTransition","ContentWizard","_ref","ref","children","className","step","controlledStep","onStepChange","childrenCollection","Children","toArray","internalStep","setInternalStep","enteredStep","setEnteredStep","height","setHeight","previousStepRef","activeStep","undefined","isLeft","prevStep","current","direction","setActiveStep","newStep","goNext","nextIndex","Math","min","length","goPrevious","prevIndex","max","handleHeight","element","offsetHeight","handleEntered","stepIndex","renderSteps","map","child","index","type","stepContent","cloneElement","key","isFirst","isLast","createElement","in","onEnter","onEntered","disabled","value","totalSteps","style","width","$height","displayName"],"sources":["../../../../src/components/ContentWizard/ContentWizard.tsx"],"sourcesContent":["import React, {\n forwardRef,\n ReactElement,\n ReactNode,\n useCallback,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { MoveFocusInside } from \"react-focus-lock\";\n\nimport { ContentStep } from \"./ContentStep\";\nimport { ContentWizardContextProvider } from \"./context/ContentWizardContext\";\nimport { StyledContentWizardContainer, StyledStepWrapper } from \"./Styles\";\nimport { SlideLeftRightTransition, ResizeTransition } from \"../Transitions\";\n\nexport interface IContentWizard {\n children: ReactNode;\n className?: string;\n step?: number;\n onStepChange?: (step: number) => void;\n}\n\nexport const ContentWizard = forwardRef<HTMLDivElement, IContentWizard>(\n ({ children, className, step: controlledStep, onStepChange }, ref) => {\n const childrenCollection = useMemo(\n () => React.Children.toArray(children),\n [children]\n );\n\n const [internalStep, setInternalStep] = useState(0);\n const [enteredStep, setEnteredStep] = useState(0);\n const [height, setHeight] = useState(\"auto\");\n const previousStepRef = useRef(0);\n\n // Use controlled step if provided, otherwise use internal state\n const activeStep =\n controlledStep !== undefined ? controlledStep : internalStep;\n\n // Calculate direction synchronously based on step change\n const isLeft = useMemo(() => {\n const prevStep = previousStepRef.current;\n const direction = activeStep > prevStep;\n previousStepRef.current = activeStep;\n return direction;\n }, [activeStep]);\n\n const setActiveStep = useCallback(\n (newStep: number) => {\n if (newStep === activeStep) return;\n\n if (controlledStep === undefined) {\n setInternalStep(newStep);\n }\n\n onStepChange?.(newStep);\n },\n [activeStep, controlledStep, onStepChange]\n );\n\n const goNext = useCallback(() => {\n const nextIndex = Math.min(activeStep + 1, childrenCollection.length - 1);\n setActiveStep(nextIndex);\n }, [activeStep, childrenCollection.length, setActiveStep]);\n\n const goPrevious = useCallback(() => {\n const prevIndex = Math.max(activeStep - 1, 0);\n setActiveStep(prevIndex);\n }, [activeStep, setActiveStep]);\n\n const handleHeight = useCallback((element: HTMLElement) => {\n setHeight(`${element.offsetHeight}px`);\n }, []);\n\n const handleEntered = useCallback((stepIndex: number) => {\n setEnteredStep(stepIndex);\n }, []);\n\n const renderSteps = useMemo(() => {\n return childrenCollection.map((child, index) => {\n const element = child as ReactElement;\n\n if (element?.type === ContentStep) {\n const stepContent = React.cloneElement(element, {\n key: `step-${index}`,\n index,\n isFirst: index === 0,\n isLast: index === childrenCollection.length - 1,\n });\n\n return (\n <SlideLeftRightTransition\n key={`transition-${index}`}\n in={activeStep === index}\n direction={isLeft ? \"left\" : \"right\"}\n onEnter={handleHeight}\n onEntered={() => handleEntered(index)}\n >\n <MoveFocusInside disabled={enteredStep !== index}>\n <StyledStepWrapper>{stepContent}</StyledStepWrapper>\n </MoveFocusInside>\n </SlideLeftRightTransition>\n );\n }\n\n return null;\n });\n }, [\n activeStep,\n childrenCollection,\n isLeft,\n enteredStep,\n handleHeight,\n handleEntered,\n ]);\n\n return (\n <ContentWizardContextProvider\n value={{\n activeStep,\n setActiveStep,\n goNext,\n goPrevious,\n direction: isLeft ? \"left\" : \"right\",\n totalSteps: childrenCollection.length,\n }}\n >\n <ResizeTransition in style={{ height, width: \"100%\" }}>\n <StyledContentWizardContainer\n ref={ref}\n className={className}\n $height={height}\n >\n {renderSteps}\n </StyledContentWizardContainer>\n </ResizeTransition>\n </ContentWizardContextProvider>\n );\n }\n);\n\nContentWizard.displayName = \"ContentWizard\";\n"],"mappings":"AAAA,OAAOA,KAAK,IACVC,UAAU,EAGVC,WAAW,EACXC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SAASC,eAAe,QAAQ,kBAAkB;AAElD,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,4BAA4B,QAAQ,gCAAgC;AAC7E,SAASC,4BAA4B,EAAEC,iBAAiB,QAAQ,UAAU;AAC1E,SAASC,wBAAwB,EAAEC,gBAAgB,QAAQ,gBAAgB;AAS3E,OAAO,MAAMC,aAAa,gBAAGZ,UAAU,CACrC,CAAAa,IAAA,EAA8DC,GAAG,KAAK;EAAA,IAArE;IAAEC,QAAQ;IAAEC,SAAS;IAAEC,IAAI,EAAEC,cAAc;IAAEC;EAAa,CAAC,GAAAN,IAAA;EAC1D,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AAa;UACtBkB,SAAS,EAAEA,CAAA,KAAMf,aAAa,CAACK,KAAK;QAAE,gBAEtCvD,KAAA,CAAA8D,aAAA,CAACxD,eAAe;UAAC4D,QAAQ,EAAExC,WAAW,KAAK6B;QAAM,gBAC/CvD,KAAA,CAAA8D,aAAA,CAACpD,iBAAiB,QAAE+C,WAA+B,CACpC,CACO,CAAC;MAE/B;MAEA,OAAO,IAAI;IACb,CAAC,CAAC;EACJ,CAAC,EAAE,CACD1B,UAAU,EACVV,kBAAkB,EAClBY,MAAM,EACNP,WAAW,EACXqB,YAAY,EACZG,aAAa,CACd,CAAC;EAEF,oBACElD,KAAA,CAAA8D,aAAA,CAACtD,4BAA4B;IAC3B2D,KAAK,EAAE;MACLpC,UAAU;MACVM,aAAa;MACbE,MAAM;MACNK,UAAU;MACVR,SAAS,EAAEH,MAAM,GAAG,MAAM,GAAG,OAAO;MACpCmC,UAAU,EAAE/C,kBAAkB,CAACsB;IACjC;EAAE,gBAEF3C,KAAA,CAAA8D,aAAA,CAAClD,gBAAgB;IAACmD,EAAE;IAACM,KAAK,EAAE;MAAEzC,MAAM;MAAE0C,KAAK,EAAE;IAAO;EAAE,gBACpDtE,KAAA,CAAA8D,aAAA,CAACrD,4BAA4B;IAC3BM,GAAG,EAAEA,GAAI;IACTE,SAAS,EAAEA,SAAU;IACrBsD,OAAO,EAAE3C;EAAO,GAEfwB,WAC2B,CACd,CACU,CAAC;AAEnC,CACF,CAAC;AAEDvC,aAAa,CAAC2D,WAAW,GAAG,eAAe"}
@@ -0,0 +1,5 @@
1
+ export declare const StyledContentWizardContainer: import("styled-components").StyledComponent<"div", any, {
2
+ $height: string;
3
+ }, never>;
4
+ export declare const StyledStepWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ //# sourceMappingURL=Styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentWizard/Styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;aAAyB,MAAM;SAKvE,CAAC;AAEF,eAAO,MAAM,iBAAiB,oEAE7B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import styled from "styled-components";
2
+ export const StyledContentWizardContainer = styled.div.withConfig({
3
+ displayName: "Styles__StyledContentWizardContainer",
4
+ componentId: "sc-16hr2bg-0"
5
+ })(["height:", ";width:100%;position:relative;overflow:hidden;"], _ref => {
6
+ let {
7
+ $height
8
+ } = _ref;
9
+ return $height;
10
+ });
11
+ export const StyledStepWrapper = styled.div.withConfig({
12
+ displayName: "Styles__StyledStepWrapper",
13
+ componentId: "sc-16hr2bg-1"
14
+ })(["width:100%;"]);
15
+ //# sourceMappingURL=Styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Styles.js","names":["styled","StyledContentWizardContainer","div","withConfig","displayName","componentId","_ref","$height","StyledStepWrapper"],"sources":["../../../../src/components/ContentWizard/Styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const StyledContentWizardContainer = styled.div<{ $height: string }>`\n height: ${({ $height }) => $height};\n width: 100%;\n position: relative;\n overflow: hidden;\n`;\n\nexport const StyledStepWrapper = styled.div`\n width: 100%;\n`;\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AAEtC,OAAO,MAAMC,4BAA4B,GAAGD,MAAM,CAACE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kEAC1CC,IAAA;EAAA,IAAC;IAAEC;EAAQ,CAAC,GAAAD,IAAA;EAAA,OAAKC,OAAO;AAAA,EAInC;AAED,OAAO,MAAMC,iBAAiB,GAAGR,MAAM,CAACE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mBAE1C"}
@@ -0,0 +1,16 @@
1
+ import React, { ReactNode } from "react";
2
+ export interface IContentWizardContext {
3
+ activeStep: number;
4
+ setActiveStep: (step: number) => void;
5
+ goNext: () => void;
6
+ goPrevious: () => void;
7
+ direction: "left" | "right";
8
+ totalSteps: number;
9
+ }
10
+ export interface IContentWizardContextProvider {
11
+ children: ReactNode;
12
+ value: IContentWizardContext;
13
+ }
14
+ export declare const ContentWizardContextProvider: React.FC<IContentWizardContextProvider>;
15
+ export declare const useContentWizardContext: () => IContentWizardContext;
16
+ //# sourceMappingURL=ContentWizardContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentWizardContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContentWizard/context/ContentWizardContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAMD,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,qBAAqB,CAAC;CAC9B;AAED,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CACjD,6BAA6B,CAO9B,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAO,qBAU1C,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React, { createContext, useContext } from "react";
2
+ const ContentWizardContext = /*#__PURE__*/createContext(undefined);
3
+ export const ContentWizardContextProvider = _ref => {
4
+ let {
5
+ children,
6
+ value
7
+ } = _ref;
8
+ return /*#__PURE__*/React.createElement(ContentWizardContext.Provider, {
9
+ value: value
10
+ }, children);
11
+ };
12
+ export const useContentWizardContext = () => {
13
+ const context = useContext(ContentWizardContext);
14
+ if (context === undefined) {
15
+ throw new Error("useContentWizardContext must be used within a ContentWizardContextProvider");
16
+ }
17
+ return context;
18
+ };
19
+ //# sourceMappingURL=ContentWizardContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentWizardContext.js","names":["React","createContext","useContext","ContentWizardContext","undefined","ContentWizardContextProvider","_ref","children","value","createElement","Provider","useContentWizardContext","context","Error"],"sources":["../../../../../src/components/ContentWizard/context/ContentWizardContext.tsx"],"sourcesContent":["import React, { createContext, useContext, ReactNode } from \"react\";\n\nexport interface IContentWizardContext {\n activeStep: number;\n setActiveStep: (step: number) => void;\n goNext: () => void;\n goPrevious: () => void;\n direction: \"left\" | \"right\";\n totalSteps: number;\n}\n\nconst ContentWizardContext = createContext<IContentWizardContext | undefined>(\n undefined\n);\n\nexport interface IContentWizardContextProvider {\n children: ReactNode;\n value: IContentWizardContext;\n}\n\nexport const ContentWizardContextProvider: React.FC<\n IContentWizardContextProvider\n> = ({ children, value }) => {\n return (\n <ContentWizardContext.Provider value={value}>\n {children}\n </ContentWizardContext.Provider>\n );\n};\n\nexport const useContentWizardContext = (): IContentWizardContext => {\n const context = useContext(ContentWizardContext);\n\n if (context === undefined) {\n throw new Error(\n \"useContentWizardContext must be used within a ContentWizardContextProvider\"\n );\n }\n\n return context;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAmB,OAAO;AAWnE,MAAMC,oBAAoB,gBAAGF,aAAa,CACxCG,SACF,CAAC;AAOD,OAAO,MAAMC,4BAEZ,GAAGC,IAAA,IAAyB;EAAA,IAAxB;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAAF,IAAA;EACtB,oBACEN,KAAA,CAAAS,aAAA,CAACN,oBAAoB,CAACO,QAAQ;IAACF,KAAK,EAAEA;EAAM,GACzCD,QAC4B,CAAC;AAEpC,CAAC;AAED,OAAO,MAAMI,uBAAuB,GAAGA,CAAA,KAA6B;EAClE,MAAMC,OAAO,GAAGV,UAAU,CAACC,oBAAoB,CAAC;EAEhD,IAAIS,OAAO,KAAKR,SAAS,EAAE;IACzB,MAAM,IAAIS,KAAK,CACb,4EACF,CAAC;EACH;EAEA,OAAOD,OAAO;AAChB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./ContentWizardContext";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContentWizard/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./ContentWizardContext";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/ContentWizard/context/index.ts"],"sourcesContent":["export * from \"./ContentWizardContext\";\n"],"mappings":"AAAA,cAAc,wBAAwB"}
@@ -0,0 +1,5 @@
1
+ import { useContentWizardContext } from "./context";
2
+ export * from "./ContentWizard";
3
+ export * from "./ContentStep";
4
+ export { useContentWizardContext };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentWizard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEpD,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { useContentWizardContext } from "./context";
2
+ export * from "./ContentWizard";
3
+ export * from "./ContentStep";
4
+ export { useContentWizardContext };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["useContentWizardContext"],"sources":["../../../../src/components/ContentWizard/index.ts"],"sourcesContent":["import { useContentWizardContext } from \"./context\";\n\nexport * from \"./ContentWizard\";\nexport * from \"./ContentStep\";\n\nexport { useContentWizardContext };\n"],"mappings":"AAAA,SAASA,uBAAuB,QAAQ,WAAW;AAEnD,cAAc,iBAAiB;AAC/B,cAAc,eAAe;AAE7B,SAASA,uBAAuB"}
@@ -72,6 +72,7 @@ export * from "./Dot";
72
72
  export * from "./Entity";
73
73
  export * from "./Filter";
74
74
  export * from "./Wizard";
75
+ export * from "./ContentWizard";
75
76
  export * from "./IconButton";
76
77
  export * from "./Typography";
77
78
  export * from "./Badge";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAA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cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
@@ -72,6 +72,7 @@ export * from "./Dot";
72
72
  export * from "./Entity";
73
73
  export * from "./Filter";
74
74
  export * from "./Wizard";
75
+ export * from "./ContentWizard";
75
76
  export * from "./IconButton";
76
77
  export * from "./Typography";
77
78
  export * from "./Badge";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from \"./Button\";\nexport * from \"./ButtonGroup\";\nexport * from \"./Breadcrumbs\";\nexport * from \"./CounterButton\";\nexport * from \"./Steppers\";\nexport * from \"./Tables\";\nexport * from \"./CompleteCheckbox\";\nexport * from \"./Paper\";\nexport * from \"./ScaleBar\";\nexport * from \"./Card\";\nexport * from \"./EntityCard\";\nexport * from \"./EntitiesHeader\";\nexport * from \"./Signifier\";\nexport * from \"./Avatar\";\nexport * from \"./Tag\";\nexport * from \"./Loaders\";\nexport * from \"./Nav\";\nexport * from \"./Bubble\";\nexport * from \"./Input\";\nexport * from \"./Display\";\nexport * from \"./Menu\";\nexport * from \"./Expanders\";\nexport * from \"./DatePicker\";\nexport * from \"./List\";\nexport * from \"./MenuSelector\";\nexport * from \"./MultiAvatar\";\nexport * from \"./RadioButton\";\nexport * from \"./ScrollShadow\";\nexport * from \"./Icons\";\nexport * from \"./Textarea\";\nexport * from \"./Modal\";\nexport * from \"./Sheet\";\nexport * from \"./Header\";\nexport * from \"./AutoResizeTextarea\";\nexport * from \"./Overlay\";\nexport * from \"./Accordion\";\nexport * from \"./Choose\";\nexport * from \"./ChooseV2\";\nexport * from \"./Links\";\nexport * from \"./SelectDate\";\nexport * from \"./Popper\";\nexport * from \"./ToastMessage\";\nexport * from \"./Tooltip\";\nexport * from \"./Transitions\";\nexport * from \"./Window\";\nexport * from \"./ValueButton\";\nexport * from \"./Select\";\nexport * from \"./SelectTrigger\";\nexport * from \"./SelectTime\";\nexport * from \"./Dialog\";\nexport * from \"./ConfirmDialog\";\nexport * from \"./Checkbox\";\nexport * from \"./Toggle\";\nexport * from \"./Typography\";\nexport * from \"./Autocomplete\";\nexport * from \"./ComboBox\";\nexport * from \"./Button/AddToListButton\";\nexport * from \"./ProgressBar\";\nexport * from \"./ProgressPie\";\nexport * from \"./Reactions\";\nexport * from \"./Label\";\nexport * from \"./GlobalStyle\";\nexport * from \"./ProgressRing\";\nexport * from \"./EditableContent\";\nexport * from \"./EditableText\";\nexport * from \"./EditableHours\";\nexport * from \"./EditableCurrency\";\nexport * from \"./Folder\";\nexport * from \"./Chip\";\nexport * from \"./Trigger\";\nexport * from \"./Dot\";\nexport * from \"./Entity\";\nexport * from \"./Filter\";\nexport * from \"./Wizard\";\nexport * from \"./IconButton\";\nexport * from \"./Typography\";\nexport * from \"./Badge\";\nexport * from \"./AvatarGroup\";\nexport * from \"./CommandPalette\";\nexport * from \"./EmptySlate\";\nexport * from \"./Toolbar\";\nexport * from \"./InfoBox\";\nexport * from \"./Sort\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,oBAAoB;AAClC,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,kBAAkB;AAChC,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,OAAO;AACrB,cAAc,WAAW;AACzB,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,gBAAgB;AAC9B,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,UAAU;AACxB,cAAc,sBAAsB;AACpC,cAAc,WAAW;AACzB,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,UAAU;AACxB,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,UAAU;AACxB,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,YAAY;AAC1B,cAAc,0BAA0B;AACxC,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,gBAAgB;AAC9B,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB;AAC/B,cAAc,oBAAoB;AAClC,cAAc,UAAU;AACxB,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,cAAc;AAC5B,cAAc,cAAc;AAC5B,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,kBAAkB;AAChC,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,QAAQ"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from \"./Button\";\nexport * from \"./ButtonGroup\";\nexport * from \"./Breadcrumbs\";\nexport * from \"./CounterButton\";\nexport * from \"./Steppers\";\nexport * from \"./Tables\";\nexport * from \"./CompleteCheckbox\";\nexport * from \"./Paper\";\nexport * from \"./ScaleBar\";\nexport * from \"./Card\";\nexport * from \"./EntityCard\";\nexport * from \"./EntitiesHeader\";\nexport * from \"./Signifier\";\nexport * from \"./Avatar\";\nexport * from \"./Tag\";\nexport * from \"./Loaders\";\nexport * from \"./Nav\";\nexport * from \"./Bubble\";\nexport * from \"./Input\";\nexport * from \"./Display\";\nexport * from \"./Menu\";\nexport * from \"./Expanders\";\nexport * from \"./DatePicker\";\nexport * from \"./List\";\nexport * from \"./MenuSelector\";\nexport * from \"./MultiAvatar\";\nexport * from \"./RadioButton\";\nexport * from \"./ScrollShadow\";\nexport * from \"./Icons\";\nexport * from \"./Textarea\";\nexport * from \"./Modal\";\nexport * from \"./Sheet\";\nexport * from \"./Header\";\nexport * from \"./AutoResizeTextarea\";\nexport * from \"./Overlay\";\nexport * from \"./Accordion\";\nexport * from \"./Choose\";\nexport * from \"./ChooseV2\";\nexport * from \"./Links\";\nexport * from \"./SelectDate\";\nexport * from \"./Popper\";\nexport * from \"./ToastMessage\";\nexport * from \"./Tooltip\";\nexport * from \"./Transitions\";\nexport * from \"./Window\";\nexport * from \"./ValueButton\";\nexport * from \"./Select\";\nexport * from \"./SelectTrigger\";\nexport * from \"./SelectTime\";\nexport * from \"./Dialog\";\nexport * from \"./ConfirmDialog\";\nexport * from \"./Checkbox\";\nexport * from \"./Toggle\";\nexport * from \"./Typography\";\nexport * from \"./Autocomplete\";\nexport * from \"./ComboBox\";\nexport * from \"./Button/AddToListButton\";\nexport * from \"./ProgressBar\";\nexport * from \"./ProgressPie\";\nexport * from \"./Reactions\";\nexport * from \"./Label\";\nexport * from \"./GlobalStyle\";\nexport * from \"./ProgressRing\";\nexport * from \"./EditableContent\";\nexport * from \"./EditableText\";\nexport * from \"./EditableHours\";\nexport * from \"./EditableCurrency\";\nexport * from \"./Folder\";\nexport * from \"./Chip\";\nexport * from \"./Trigger\";\nexport * from \"./Dot\";\nexport * from \"./Entity\";\nexport * from \"./Filter\";\nexport * from \"./Wizard\";\nexport * from \"./ContentWizard\";\nexport * from \"./IconButton\";\nexport * from \"./Typography\";\nexport * from \"./Badge\";\nexport * from \"./AvatarGroup\";\nexport * from \"./CommandPalette\";\nexport * from \"./EmptySlate\";\nexport * from \"./Toolbar\";\nexport * from \"./InfoBox\";\nexport * from \"./Sort\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,oBAAoB;AAClC,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,kBAAkB;AAChC,cAAc,aAAa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C5B,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,kBAAkB;AAChC,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,QAAQ"}
package/dist/index.js CHANGED
@@ -23395,6 +23395,144 @@
23395
23395
  });
23396
23396
  Wizard.displayName = "Wizard";
23397
23397
 
23398
+ var ContentWizardContext = /*#__PURE__*/React.createContext(undefined);
23399
+ var ContentWizardContextProvider = function ContentWizardContextProvider(_ref) {
23400
+ var children = _ref.children,
23401
+ value = _ref.value;
23402
+ return /*#__PURE__*/React__default["default"].createElement(ContentWizardContext.Provider, {
23403
+ value: value
23404
+ }, children);
23405
+ };
23406
+ var useContentWizardContext = function useContentWizardContext() {
23407
+ var context = React.useContext(ContentWizardContext);
23408
+ if (context === undefined) {
23409
+ throw new Error("useContentWizardContext must be used within a ContentWizardContextProvider");
23410
+ }
23411
+ return context;
23412
+ };
23413
+
23414
+ var ContentStep = function ContentStep(_ref) {
23415
+ var children = _ref.children,
23416
+ className = _ref.className;
23417
+ return /*#__PURE__*/React__default["default"].createElement("div", {
23418
+ className: className
23419
+ }, children);
23420
+ };
23421
+ ContentStep.displayName = "ContentStep";
23422
+
23423
+ var StyledContentWizardContainer = styled__default["default"].div.withConfig({
23424
+ displayName: "Styles__StyledContentWizardContainer",
23425
+ componentId: "sc-16hr2bg-0"
23426
+ })(["height:", ";width:100%;position:relative;overflow:hidden;"], function (_ref) {
23427
+ var $height = _ref.$height;
23428
+ return $height;
23429
+ });
23430
+ var StyledStepWrapper = styled__default["default"].div.withConfig({
23431
+ displayName: "Styles__StyledStepWrapper",
23432
+ componentId: "sc-16hr2bg-1"
23433
+ })(["width:100%;"]);
23434
+
23435
+ var ContentWizard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
23436
+ var children = _ref.children,
23437
+ className = _ref.className,
23438
+ controlledStep = _ref.step,
23439
+ onStepChange = _ref.onStepChange;
23440
+ var childrenCollection = React.useMemo(function () {
23441
+ return React__default["default"].Children.toArray(children);
23442
+ }, [children]);
23443
+ var _useState = React.useState(0),
23444
+ _useState2 = _slicedToArray(_useState, 2),
23445
+ internalStep = _useState2[0],
23446
+ setInternalStep = _useState2[1];
23447
+ var _useState3 = React.useState(0),
23448
+ _useState4 = _slicedToArray(_useState3, 2),
23449
+ enteredStep = _useState4[0],
23450
+ setEnteredStep = _useState4[1];
23451
+ var _useState5 = React.useState("auto"),
23452
+ _useState6 = _slicedToArray(_useState5, 2),
23453
+ height = _useState6[0],
23454
+ setHeight = _useState6[1];
23455
+ var previousStepRef = React.useRef(0);
23456
+
23457
+ // Use controlled step if provided, otherwise use internal state
23458
+ var activeStep = controlledStep !== undefined ? controlledStep : internalStep;
23459
+
23460
+ // Calculate direction synchronously based on step change
23461
+ var isLeft = React.useMemo(function () {
23462
+ var prevStep = previousStepRef.current;
23463
+ var direction = activeStep > prevStep;
23464
+ previousStepRef.current = activeStep;
23465
+ return direction;
23466
+ }, [activeStep]);
23467
+ var setActiveStep = React.useCallback(function (newStep) {
23468
+ if (newStep === activeStep) return;
23469
+ if (controlledStep === undefined) {
23470
+ setInternalStep(newStep);
23471
+ }
23472
+ onStepChange === null || onStepChange === void 0 || onStepChange(newStep);
23473
+ }, [activeStep, controlledStep, onStepChange]);
23474
+ var goNext = React.useCallback(function () {
23475
+ var nextIndex = Math.min(activeStep + 1, childrenCollection.length - 1);
23476
+ setActiveStep(nextIndex);
23477
+ }, [activeStep, childrenCollection.length, setActiveStep]);
23478
+ var goPrevious = React.useCallback(function () {
23479
+ var prevIndex = Math.max(activeStep - 1, 0);
23480
+ setActiveStep(prevIndex);
23481
+ }, [activeStep, setActiveStep]);
23482
+ var handleHeight = React.useCallback(function (element) {
23483
+ setHeight("".concat(element.offsetHeight, "px"));
23484
+ }, []);
23485
+ var handleEntered = React.useCallback(function (stepIndex) {
23486
+ setEnteredStep(stepIndex);
23487
+ }, []);
23488
+ var renderSteps = React.useMemo(function () {
23489
+ return childrenCollection.map(function (child, index) {
23490
+ var element = child;
23491
+ if ((element === null || element === void 0 ? void 0 : element.type) === ContentStep) {
23492
+ var stepContent = /*#__PURE__*/React__default["default"].cloneElement(element, {
23493
+ key: "step-".concat(index),
23494
+ index,
23495
+ isFirst: index === 0,
23496
+ isLast: index === childrenCollection.length - 1
23497
+ });
23498
+ return /*#__PURE__*/React__default["default"].createElement(SlideLeftRightTransition, {
23499
+ key: "transition-".concat(index),
23500
+ in: activeStep === index,
23501
+ direction: isLeft ? "left" : "right",
23502
+ onEnter: handleHeight,
23503
+ onEntered: function onEntered() {
23504
+ return handleEntered(index);
23505
+ }
23506
+ }, /*#__PURE__*/React__default["default"].createElement(FocusLock.MoveFocusInside, {
23507
+ disabled: enteredStep !== index
23508
+ }, /*#__PURE__*/React__default["default"].createElement(StyledStepWrapper, null, stepContent)));
23509
+ }
23510
+ return null;
23511
+ });
23512
+ }, [activeStep, childrenCollection, isLeft, enteredStep, handleHeight, handleEntered]);
23513
+ return /*#__PURE__*/React__default["default"].createElement(ContentWizardContextProvider, {
23514
+ value: {
23515
+ activeStep,
23516
+ setActiveStep,
23517
+ goNext,
23518
+ goPrevious,
23519
+ direction: isLeft ? "left" : "right",
23520
+ totalSteps: childrenCollection.length
23521
+ }
23522
+ }, /*#__PURE__*/React__default["default"].createElement(ResizeTransition, {
23523
+ in: true,
23524
+ style: {
23525
+ height,
23526
+ width: "100%"
23527
+ }
23528
+ }, /*#__PURE__*/React__default["default"].createElement(StyledContentWizardContainer, {
23529
+ ref: ref,
23530
+ className: className,
23531
+ $height: height
23532
+ }, renderSteps)));
23533
+ });
23534
+ ContentWizard.displayName = "ContentWizard";
23535
+
23398
23536
  var AvatarGroupsStyles = styled__default["default"].div.withConfig({
23399
23537
  displayName: "Styles__AvatarGroupsStyles",
23400
23538
  componentId: "sc-1padv46-0"
@@ -24430,6 +24568,8 @@
24430
24568
  exports.CompleteCheckbox = CompleteCheckbox;
24431
24569
  exports.ComputerIcon = ComputerIcon$1;
24432
24570
  exports.ConfirmDialog = ConfirmDialog;
24571
+ exports.ContentStep = ContentStep;
24572
+ exports.ContentWizard = ContentWizard;
24433
24573
  exports.CopyIcon = CopyIcon$1;
24434
24574
  exports.CounterButton = CounterButton;
24435
24575
  exports.CrownBlankIcon = CrownBlankIcon$1;
@@ -24707,6 +24847,7 @@
24707
24847
  exports.numberWithSeparator = numberWithSeparator;
24708
24848
  exports.signifierTypes = signifierTypes;
24709
24849
  exports.toMoment = toMoment;
24850
+ exports.useContentWizardContext = useContentWizardContext;
24710
24851
  exports.useEntityGroupContext = useEntityGroupContext;
24711
24852
  exports.useForkRef = useForkRef;
24712
24853
  exports.useHeight = useHeight;