@emeraldemperaur/vector-sigma 1.4.22 → 1.4.23

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/README.md CHANGED
@@ -96,7 +96,7 @@ const App = () => {
96
96
 
97
97
  <li><strong>🧩Exported UI Components</strong></br>
98
98
  <p align="justify">Explicitly exported reusable form UI components with material, outline and neumorphic design variants from package entry point <code>src/index.ts</code> to enable developer-friendly use as lightweight component library.</p>
99
- <p><em>Container, Row, Column, Theme, Accordion, Codex, AvatarInput, ButtonInput, CheckboxGroupInput, ConditionalTrigger, DatePicker, DateRangePicker, DateTimePicker, Dropdown, File, FileMultiple, FlagIcon, Icon, Image, Input, PasswordInput, PhoneInput, CreditCardInput, CurrencyInput, StockInput, RadioGroupInput, OptionSelect, MultipleSelect, RangeSlider, SliderInput, Toggle, SectionTitle</em></p>
99
+ <p><em>Container, Row, Column, Theme, Accordion, AccordionItem, Codex, CodexItem, CodexControls, AvatarInput, ButtonInput, CheckboxGroupInput, ConditionalTrigger, DatePicker, DateRangePicker, DateTimePicker, Dropdown, File, FileMultiple, FlagIcon, Icon, Image, Input, PasswordInput, PhoneInput, CreditCardInput, CurrencyInput, StockInput, RadioGroupInput, OptionSelect, MultipleSelect, RangeSlider, SliderInput, Toggle, SectionTitle</em></p>
100
100
 
101
101
  ```javascript
102
102
  import { Container, Column, Row, CheckboxGroup, Dropdown, File, RangeSlider }
package/lib/index.cjs CHANGED
@@ -48649,7 +48649,7 @@ const CodexContext = React.createContext({
48649
48649
  design: 'outline'
48650
48650
  });
48651
48651
  const useStepper = () => React.useContext(CodexContext);
48652
- const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, className, style, children }) => {
48652
+ const Codex = ({ design = 'outline', defaultStepId, brandColor, width = 12, newRow, className, style, children }) => {
48653
48653
  const containerRef = React.useRef(null);
48654
48654
  const [neuVars, setNeuVars] = React.useState({});
48655
48655
  const steps = React.Children.toArray(children)
@@ -48680,9 +48680,9 @@ const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, classNam
48680
48680
  }
48681
48681
  }, [design]);
48682
48682
  const activeIndex = steps.findIndex(s => s.id === activeStepId);
48683
- return (React.createElement(CodexContext.Provider, { value: { activeStepId, setActiveStepId, design } },
48683
+ return (React.createElement(CodexContext.Provider, { value: { activeStepId, setActiveStepId, design, brandColor } },
48684
48684
  React.createElement(Column, { span: width, newLine: newRow },
48685
- React.createElement("div", { ref: containerRef, className: className, style: Object.assign(Object.assign({ width: '100%' }, style), neuVars) },
48685
+ React.createElement("div", { ref: containerRef, className: className, style: Object.assign(Object.assign(Object.assign({ width: '100%' }, style), neuVars), { '--codex-brand': brandColor || 'var(--accent-9)' }) },
48686
48686
  React.createElement("style", { dangerouslySetInnerHTML: { __html: `
48687
48687
  .v-step-circle {
48688
48688
  width: 40px;
@@ -48710,42 +48710,45 @@ const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, classNam
48710
48710
  to { opacity: 1; transform: translateY(0); }
48711
48711
  }
48712
48712
 
48713
+ /* --- OUTLINE --- */
48713
48714
  .v-stepper-outline .v-step-circle.pending {
48714
48715
  border: 2px solid var(--gray-6);
48715
48716
  background: transparent;
48716
48717
  color: var(--gray-10);
48717
48718
  }
48718
48719
  .v-stepper-outline .v-step-circle.active {
48719
- border: 2px solid var(--accent-9);
48720
+ border: 2px solid var(--codex-brand);
48720
48721
  background: var(--accent-2);
48721
- color: var(--accent-9);
48722
+ color: var(--codex-brand);
48722
48723
  }
48723
48724
  .v-stepper-outline .v-step-circle.completed {
48724
- border: 2px solid var(--accent-9);
48725
- background: var(--accent-9);
48725
+ border: 2px solid var(--codex-brand);
48726
+ background: var(--codex-brand);
48726
48727
  color: white;
48727
48728
  }
48728
48729
  .v-stepper-outline .v-step-line.pending { background-color: var(--gray-5); }
48729
- .v-stepper-outline .v-step-line.completed { background-color: var(--accent-9); }
48730
+ .v-stepper-outline .v-step-line.completed { background-color: var(--codex-brand); }
48730
48731
 
48732
+ /* --- MATERIAL --- */
48731
48733
  .v-stepper-material .v-step-circle.pending {
48732
48734
  background: var(--color-surface);
48733
48735
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
48734
48736
  color: var(--gray-10);
48735
48737
  }
48736
48738
  .v-stepper-material .v-step-circle.active {
48737
- background: var(--accent-9);
48739
+ background: var(--codex-brand);
48738
48740
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
48739
48741
  color: white;
48740
48742
  transform: scale(1.1);
48741
48743
  }
48742
48744
  .v-stepper-material .v-step-circle.completed {
48743
- background: var(--accent-9);
48745
+ background: var(--codex-brand);
48744
48746
  color: white;
48745
48747
  }
48746
48748
  .v-stepper-material .v-step-line.pending { background-color: var(--gray-5); }
48747
- .v-stepper-material .v-step-line.completed { background-color: var(--accent-9); }
48749
+ .v-stepper-material .v-step-line.completed { background-color: var(--codex-brand); }
48748
48750
 
48751
+ /* --- NEUMORPHIC --- */
48749
48752
  .v-stepper-neumorphic .v-step-circle {
48750
48753
  background: var(--neu-bg);
48751
48754
  border: none;
@@ -48756,19 +48759,19 @@ const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, classNam
48756
48759
  }
48757
48760
  .v-stepper-neumorphic .v-step-circle.active {
48758
48761
  box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light);
48759
- color: var(--accent-9);
48762
+ color: var(--codex-brand);
48760
48763
  }
48761
48764
  .v-stepper-neumorphic .v-step-circle.completed {
48762
48765
  box-shadow: inset 2px 2px 4px var(--neu-shadow-dark), inset -2px -2px 4px var(--neu-shadow-light);
48763
- color: var(--accent-9);
48766
+ color: var(--codex-brand);
48764
48767
  }
48765
48768
  .v-stepper-neumorphic .v-step-line.pending {
48766
48769
  background-color: transparent;
48767
48770
  box-shadow: inset 1px 1px 2px var(--neu-shadow-dark), inset -1px -1px 2px var(--neu-shadow-light);
48768
48771
  }
48769
48772
  .v-stepper-neumorphic .v-step-line.completed {
48770
- background-color: var(--accent-9);
48771
- box-shadow: 0 0 4px var(--accent-9);
48773
+ background-color: var(--codex-brand);
48774
+ box-shadow: 0 0 4px var(--codex-brand);
48772
48775
  }
48773
48776
  ` } }),
48774
48777
  React.createElement(p$8, { className: `v-stepper-${design}`, style: { paddingBottom: '60px', paddingTop: '10px' } },
@@ -48776,6 +48779,8 @@ const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, classNam
48776
48779
  const isCompleted = index < activeIndex;
48777
48780
  const isActive = index === activeIndex;
48778
48781
  const statusClass = isActive ? 'active' : isCompleted ? 'completed' : 'pending';
48782
+ const isFirst = index === 0;
48783
+ const isLast = index === steps.length - 1;
48779
48784
  return (React.createElement(React.Fragment, { key: step.id },
48780
48785
  React.createElement(p$8, { style: { position: 'relative', display: 'flex', flexDirection: 'column', alignItems: 'center' } },
48781
48786
  React.createElement("div", { className: `v-step-circle ${statusClass}`, onClick: () => setActiveStepId(step.id) }, isCompleted ? (React.createElement(Icon, { name: "check", width: "20", height: "20" })) : (step.icon ? step.icon : React.createElement("span", null, index + 1))),
@@ -48784,8 +48789,11 @@ const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, classNam
48784
48789
  top: '100%',
48785
48790
  marginTop: '12px',
48786
48791
  width: '120px',
48787
- textAlign: 'center',
48788
- cursor: 'pointer'
48792
+ cursor: 'pointer',
48793
+ left: isFirst ? '0' : isLast ? 'auto' : '50%',
48794
+ right: isLast ? '0' : 'auto',
48795
+ transform: (!isFirst && !isLast) ? 'translateX(-50%)' : 'none',
48796
+ textAlign: isFirst ? 'left' : isLast ? 'right' : 'center',
48789
48797
  }, onClick: () => setActiveStepId(step.id) },
48790
48798
  React.createElement(p$d, { size: "2", weight: isActive ? "bold" : "regular", style: { color: isActive ? 'var(--gray-12)' : 'var(--gray-10)', display: 'block', lineHeight: 1.2 } }, step.title),
48791
48799
  step.description && (React.createElement(p$d, { size: "1", color: "gray", style: { display: 'block', marginTop: '4px' } }, step.description)))),
@@ -48801,7 +48809,7 @@ const CodexItem = ({ stepId, children, }) => {
48801
48809
  };
48802
48810
 
48803
48811
  const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLabel = "Back", finishLabel = "Submit", prevIcon = "doublearrowleft", nextIcon = "doublearrowright", finishIcon = "paperplane", onNext, onPrev, onFinish }) => {
48804
- const { setActiveStepId } = useStepper();
48812
+ const { setActiveStepId, brandColor } = useStepper();
48805
48813
  const handlePrev = () => {
48806
48814
  if (onPrev)
48807
48815
  onPrev();
@@ -48821,17 +48829,19 @@ const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLab
48821
48829
  };
48822
48830
  return (React.createElement(p$5, { gap: "3", mt: "6", justify: "between", align: "center", style: { borderTop: '1px solid var(--gray-5)', paddingTop: '20px', width: '100%' } },
48823
48831
  prevStepId ? (React.createElement(o$a, { variant: "soft", color: "gray", onClick: handlePrev, style: { cursor: 'pointer' } },
48824
- prevIcon ? React.createElement(React.Fragment, null,
48832
+ prevIcon && (React.createElement(React.Fragment, null,
48825
48833
  React.createElement(Icon, { name: prevIcon }),
48826
- "\u00A0") : null,
48834
+ "\u00A0")),
48827
48835
  prevLabel)) : (React.createElement("div", null)),
48828
- React.createElement(o$a, { variant: "solid", color: nextStepId ? "blue" : "green", onClick: handleNext, style: { cursor: 'pointer' } },
48829
- nextStepId && nextIcon ? React.createElement(React.Fragment, null,
48836
+ React.createElement(o$a, { variant: "solid", color: brandColor ? undefined : (nextStepId ? "blue" : "green"), onClick: handleNext, style: Object.assign({ cursor: 'pointer' }, (brandColor ? { backgroundColor: 'var(--codex-brand)', color: '#fff' } : {})) }, nextStepId ? (React.createElement(React.Fragment, null,
48837
+ nextIcon && React.createElement(React.Fragment, null,
48830
48838
  React.createElement(Icon, { name: nextIcon }),
48831
- "\u00A0") : React.createElement(React.Fragment, null,
48839
+ "\u00A0"),
48840
+ nextLabel)) : (React.createElement(React.Fragment, null,
48841
+ finishIcon && React.createElement(React.Fragment, null,
48832
48842
  React.createElement(Icon, { name: finishIcon }),
48833
48843
  "\u00A0"),
48834
- nextStepId ? nextLabel : finishLabel)));
48844
+ finishLabel)))));
48835
48845
  };
48836
48846
 
48837
48847
  /** A special constant with type `never` */
package/lib/index.esm.js CHANGED
@@ -48629,7 +48629,7 @@ const CodexContext = createContext({
48629
48629
  design: 'outline'
48630
48630
  });
48631
48631
  const useStepper = () => useContext(CodexContext);
48632
- const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, className, style, children }) => {
48632
+ const Codex = ({ design = 'outline', defaultStepId, brandColor, width = 12, newRow, className, style, children }) => {
48633
48633
  const containerRef = useRef(null);
48634
48634
  const [neuVars, setNeuVars] = useState({});
48635
48635
  const steps = React__default.Children.toArray(children)
@@ -48660,9 +48660,9 @@ const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, classNam
48660
48660
  }
48661
48661
  }, [design]);
48662
48662
  const activeIndex = steps.findIndex(s => s.id === activeStepId);
48663
- return (React__default.createElement(CodexContext.Provider, { value: { activeStepId, setActiveStepId, design } },
48663
+ return (React__default.createElement(CodexContext.Provider, { value: { activeStepId, setActiveStepId, design, brandColor } },
48664
48664
  React__default.createElement(Column, { span: width, newLine: newRow },
48665
- React__default.createElement("div", { ref: containerRef, className: className, style: Object.assign(Object.assign({ width: '100%' }, style), neuVars) },
48665
+ React__default.createElement("div", { ref: containerRef, className: className, style: Object.assign(Object.assign(Object.assign({ width: '100%' }, style), neuVars), { '--codex-brand': brandColor || 'var(--accent-9)' }) },
48666
48666
  React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
48667
48667
  .v-step-circle {
48668
48668
  width: 40px;
@@ -48690,42 +48690,45 @@ const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, classNam
48690
48690
  to { opacity: 1; transform: translateY(0); }
48691
48691
  }
48692
48692
 
48693
+ /* --- OUTLINE --- */
48693
48694
  .v-stepper-outline .v-step-circle.pending {
48694
48695
  border: 2px solid var(--gray-6);
48695
48696
  background: transparent;
48696
48697
  color: var(--gray-10);
48697
48698
  }
48698
48699
  .v-stepper-outline .v-step-circle.active {
48699
- border: 2px solid var(--accent-9);
48700
+ border: 2px solid var(--codex-brand);
48700
48701
  background: var(--accent-2);
48701
- color: var(--accent-9);
48702
+ color: var(--codex-brand);
48702
48703
  }
48703
48704
  .v-stepper-outline .v-step-circle.completed {
48704
- border: 2px solid var(--accent-9);
48705
- background: var(--accent-9);
48705
+ border: 2px solid var(--codex-brand);
48706
+ background: var(--codex-brand);
48706
48707
  color: white;
48707
48708
  }
48708
48709
  .v-stepper-outline .v-step-line.pending { background-color: var(--gray-5); }
48709
- .v-stepper-outline .v-step-line.completed { background-color: var(--accent-9); }
48710
+ .v-stepper-outline .v-step-line.completed { background-color: var(--codex-brand); }
48710
48711
 
48712
+ /* --- MATERIAL --- */
48711
48713
  .v-stepper-material .v-step-circle.pending {
48712
48714
  background: var(--color-surface);
48713
48715
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
48714
48716
  color: var(--gray-10);
48715
48717
  }
48716
48718
  .v-stepper-material .v-step-circle.active {
48717
- background: var(--accent-9);
48719
+ background: var(--codex-brand);
48718
48720
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
48719
48721
  color: white;
48720
48722
  transform: scale(1.1);
48721
48723
  }
48722
48724
  .v-stepper-material .v-step-circle.completed {
48723
- background: var(--accent-9);
48725
+ background: var(--codex-brand);
48724
48726
  color: white;
48725
48727
  }
48726
48728
  .v-stepper-material .v-step-line.pending { background-color: var(--gray-5); }
48727
- .v-stepper-material .v-step-line.completed { background-color: var(--accent-9); }
48729
+ .v-stepper-material .v-step-line.completed { background-color: var(--codex-brand); }
48728
48730
 
48731
+ /* --- NEUMORPHIC --- */
48729
48732
  .v-stepper-neumorphic .v-step-circle {
48730
48733
  background: var(--neu-bg);
48731
48734
  border: none;
@@ -48736,19 +48739,19 @@ const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, classNam
48736
48739
  }
48737
48740
  .v-stepper-neumorphic .v-step-circle.active {
48738
48741
  box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light);
48739
- color: var(--accent-9);
48742
+ color: var(--codex-brand);
48740
48743
  }
48741
48744
  .v-stepper-neumorphic .v-step-circle.completed {
48742
48745
  box-shadow: inset 2px 2px 4px var(--neu-shadow-dark), inset -2px -2px 4px var(--neu-shadow-light);
48743
- color: var(--accent-9);
48746
+ color: var(--codex-brand);
48744
48747
  }
48745
48748
  .v-stepper-neumorphic .v-step-line.pending {
48746
48749
  background-color: transparent;
48747
48750
  box-shadow: inset 1px 1px 2px var(--neu-shadow-dark), inset -1px -1px 2px var(--neu-shadow-light);
48748
48751
  }
48749
48752
  .v-stepper-neumorphic .v-step-line.completed {
48750
- background-color: var(--accent-9);
48751
- box-shadow: 0 0 4px var(--accent-9);
48753
+ background-color: var(--codex-brand);
48754
+ box-shadow: 0 0 4px var(--codex-brand);
48752
48755
  }
48753
48756
  ` } }),
48754
48757
  React__default.createElement(p$8, { className: `v-stepper-${design}`, style: { paddingBottom: '60px', paddingTop: '10px' } },
@@ -48756,6 +48759,8 @@ const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, classNam
48756
48759
  const isCompleted = index < activeIndex;
48757
48760
  const isActive = index === activeIndex;
48758
48761
  const statusClass = isActive ? 'active' : isCompleted ? 'completed' : 'pending';
48762
+ const isFirst = index === 0;
48763
+ const isLast = index === steps.length - 1;
48759
48764
  return (React__default.createElement(React__default.Fragment, { key: step.id },
48760
48765
  React__default.createElement(p$8, { style: { position: 'relative', display: 'flex', flexDirection: 'column', alignItems: 'center' } },
48761
48766
  React__default.createElement("div", { className: `v-step-circle ${statusClass}`, onClick: () => setActiveStepId(step.id) }, isCompleted ? (React__default.createElement(Icon, { name: "check", width: "20", height: "20" })) : (step.icon ? step.icon : React__default.createElement("span", null, index + 1))),
@@ -48764,8 +48769,11 @@ const Codex = ({ design = 'outline', defaultStepId, width = 12, newRow, classNam
48764
48769
  top: '100%',
48765
48770
  marginTop: '12px',
48766
48771
  width: '120px',
48767
- textAlign: 'center',
48768
- cursor: 'pointer'
48772
+ cursor: 'pointer',
48773
+ left: isFirst ? '0' : isLast ? 'auto' : '50%',
48774
+ right: isLast ? '0' : 'auto',
48775
+ transform: (!isFirst && !isLast) ? 'translateX(-50%)' : 'none',
48776
+ textAlign: isFirst ? 'left' : isLast ? 'right' : 'center',
48769
48777
  }, onClick: () => setActiveStepId(step.id) },
48770
48778
  React__default.createElement(p$d, { size: "2", weight: isActive ? "bold" : "regular", style: { color: isActive ? 'var(--gray-12)' : 'var(--gray-10)', display: 'block', lineHeight: 1.2 } }, step.title),
48771
48779
  step.description && (React__default.createElement(p$d, { size: "1", color: "gray", style: { display: 'block', marginTop: '4px' } }, step.description)))),
@@ -48781,7 +48789,7 @@ const CodexItem = ({ stepId, children, }) => {
48781
48789
  };
48782
48790
 
48783
48791
  const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLabel = "Back", finishLabel = "Submit", prevIcon = "doublearrowleft", nextIcon = "doublearrowright", finishIcon = "paperplane", onNext, onPrev, onFinish }) => {
48784
- const { setActiveStepId } = useStepper();
48792
+ const { setActiveStepId, brandColor } = useStepper();
48785
48793
  const handlePrev = () => {
48786
48794
  if (onPrev)
48787
48795
  onPrev();
@@ -48801,17 +48809,19 @@ const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLab
48801
48809
  };
48802
48810
  return (React__default.createElement(p$5, { gap: "3", mt: "6", justify: "between", align: "center", style: { borderTop: '1px solid var(--gray-5)', paddingTop: '20px', width: '100%' } },
48803
48811
  prevStepId ? (React__default.createElement(o$a, { variant: "soft", color: "gray", onClick: handlePrev, style: { cursor: 'pointer' } },
48804
- prevIcon ? React__default.createElement(React__default.Fragment, null,
48812
+ prevIcon && (React__default.createElement(React__default.Fragment, null,
48805
48813
  React__default.createElement(Icon, { name: prevIcon }),
48806
- "\u00A0") : null,
48814
+ "\u00A0")),
48807
48815
  prevLabel)) : (React__default.createElement("div", null)),
48808
- React__default.createElement(o$a, { variant: "solid", color: nextStepId ? "blue" : "green", onClick: handleNext, style: { cursor: 'pointer' } },
48809
- nextStepId && nextIcon ? React__default.createElement(React__default.Fragment, null,
48816
+ React__default.createElement(o$a, { variant: "solid", color: brandColor ? undefined : (nextStepId ? "blue" : "green"), onClick: handleNext, style: Object.assign({ cursor: 'pointer' }, (brandColor ? { backgroundColor: 'var(--codex-brand)', color: '#fff' } : {})) }, nextStepId ? (React__default.createElement(React__default.Fragment, null,
48817
+ nextIcon && React__default.createElement(React__default.Fragment, null,
48810
48818
  React__default.createElement(Icon, { name: nextIcon }),
48811
- "\u00A0") : React__default.createElement(React__default.Fragment, null,
48819
+ "\u00A0"),
48820
+ nextLabel)) : (React__default.createElement(React__default.Fragment, null,
48821
+ finishIcon && React__default.createElement(React__default.Fragment, null,
48812
48822
  React__default.createElement(Icon, { name: finishIcon }),
48813
48823
  "\u00A0"),
48814
- nextStepId ? nextLabel : finishLabel)));
48824
+ finishLabel)))));
48815
48825
  };
48816
48826
 
48817
48827
  /** A special constant with type `never` */
@@ -5,6 +5,7 @@ interface CodexContextProps {
5
5
  activeStepId: string;
6
6
  setActiveStepId: (id: string) => void;
7
7
  design: CodexDesign;
8
+ brandColor?: string;
8
9
  }
9
10
  export declare const useStepper: () => CodexContextProps;
10
11
  export interface CodexProps {
@@ -12,40 +13,34 @@ export interface CodexProps {
12
13
  * * The design variation of the Codex component.
13
14
  * Default: 'outline'
14
15
  * Variants: 'outline', 'material', 'neumorphic'.
15
- * * @example
16
- * design="neumorphic"
17
16
  */
18
17
  design?: CodexDesign;
19
18
  /**
20
19
  * * The sectionId of the step that should be active on render.
21
20
  * Defaults to the first child step when undefined.
22
- * * @example
23
- * defaultStepId="billing-info"
24
21
  */
25
22
  defaultStepId?: string;
26
23
  /**
27
- * * The required viewport column width for the Codex component.
28
- * i.e. 1 - 12
24
+ * * Option to pass a custom hex, rgb, or css variable to color the active
25
+ * step lines, icons, circles, and navigation buttons.
29
26
  * * @example
30
- * width={12}
27
+ * brandColor="#800020"
28
+ */
29
+ brandColor?: string;
30
+ /**
31
+ * * The required viewport column width for the Codex component.
31
32
  */
32
33
  width?: number;
33
34
  /**
34
35
  * * Option to render Codex component on a new row.
35
- * * @example
36
- * newRow
37
36
  */
38
37
  newRow?: boolean;
39
38
  /**
40
39
  * * Option to specify the .scss class selector for the Codex component.
41
- * * @example
42
- * className="teletraan-1-codex"
43
40
  */
44
41
  className?: string;
45
42
  /**
46
- * * Option to inject custom CSS to the Stepper wrapper.
47
- * * @example
48
- * style={{ margin: "20px 0" }}
43
+ * * Option to inject custom CSS to the Codex wrapper.
49
44
  */
50
45
  style?: React.CSSProperties;
51
46
  /**
@@ -54,35 +49,12 @@ export interface CodexProps {
54
49
  children: ReactNode;
55
50
  }
56
51
  export interface CodexItemProps {
57
- /**
58
- * * The unique identifier for the step item.
59
- * * @example
60
- * stepId="step-1"
61
- */
62
52
  stepId: string;
63
- /**
64
- * * The display title for the step header.
65
- * * @example
66
- * title="Account Setup"
67
- */
68
53
  title: string;
69
- /**
70
- * * An optional subtitle description displayed below the title.
71
- * * @example
72
- * description="Enter your details"
73
- */
74
54
  subtitleDescription?: string;
75
- /**
76
- * * The content revealed when this step is active.
77
- */
78
55
  children: ReactNode;
79
- /**
80
- * * Option to provide a custom icon for the step circle.
81
- * * @example
82
- * icon={<Icon name="user" />}
83
- */
84
56
  icon?: ReactNode;
85
57
  }
86
- export declare const Codex: ({ design, defaultStepId, width, newRow, className, style, children }: CodexProps) => React.JSX.Element;
58
+ export declare const Codex: ({ design, defaultStepId, brandColor, width, newRow, className, style, children }: CodexProps) => React.JSX.Element;
87
59
  export declare const CodexItem: ({ stepId, children, }: CodexItemProps) => React.JSX.Element | null;
88
60
  export {};
@@ -22,7 +22,7 @@ export interface CodexControlsProps {
22
22
  nextLabel?: string;
23
23
  /**
24
24
  * * Custom icon for the Next button.
25
- * Default: "Continue"
25
+ * Default: "doublearrowright"
26
26
  */
27
27
  nextIcon?: string;
28
28
  /**
@@ -32,17 +32,17 @@ export interface CodexControlsProps {
32
32
  prevLabel?: string;
33
33
  /**
34
34
  * * Custom icon name for the Previous button.
35
- * Default: "Back"
35
+ * Default: "doublearrowleft"
36
36
  */
37
37
  prevIcon?: string;
38
38
  /**
39
39
  * * Custom text for the Finish button (rendered when nextStepId undefined).
40
- * Default: "Complete Setup"
40
+ * Default: "Submit"
41
41
  */
42
42
  finishLabel?: string;
43
43
  /**
44
44
  * * Custom icon name for the Finish button (rendered when no nextStepId undefined).
45
- * Default: "flag"
45
+ * Default: "paperplane"
46
46
  */
47
47
  finishIcon?: string;
48
48
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeraldemperaur/vector-sigma",
3
- "version": "1.4.22",
3
+ "version": "1.4.23",
4
4
  "description": "Dynamic Form Orchestrator: NPM Package",
5
5
  "repository": {
6
6
  "type": "git",