goobs-frontend 0.9.30 → 0.9.31
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/package.json +1 -1
- package/src/components/Accordion/index.tsx +17 -17
- package/src/components/Button/index.tsx +14 -14
- package/src/components/Card/index.tsx +7 -7
- package/src/components/Card/variants/detailedpricingsummary/index.tsx +25 -25
- package/src/components/Card/variants/inventory/index.tsx +18 -18
- package/src/components/Card/variants/product/index.tsx +29 -29
- package/src/components/Card/variants/productsummary/index.tsx +20 -20
- package/src/components/Card/variants/simplepricingsummary/index.tsx +20 -20
- package/src/components/Card/variants/task/index.tsx +11 -11
- package/src/components/Checkbox/index.tsx +4 -4
- package/src/components/CodeCopy/index.tsx +25 -25
- package/src/components/ComplexTextEditor/MarkdownEditor/index.tsx +13 -13
- package/src/components/ComplexTextEditor/RichEditor/index.tsx +28 -28
- package/src/components/ComplexTextEditor/SimpleEditor/index.tsx +18 -18
- package/src/components/ComplexTextEditor/Toolbars/Complex/index.tsx +7 -7
- package/src/components/ComplexTextEditor/Toolbars/Editor/index.tsx +68 -68
- package/src/components/ComplexTextEditor/index.tsx +7 -7
- package/src/components/ConfirmationCodeInput/index.tsx +22 -22
- package/src/components/Content/Structure/CVV/useCVV.tsx +2 -2
- package/src/components/Content/Structure/CreditCardExpiration/useCreditCardExpiration.tsx +2 -2
- package/src/components/Content/Structure/CreditCardNumber/useCreditCardNumber.tsx +2 -2
- package/src/components/Content/Structure/DateRange/useDateRange.tsx +2 -2
- package/src/components/Content/Structure/USD/useUSD.tsx +2 -2
- package/src/components/Content/Structure/datefield/useDateField.tsx +2 -2
- package/src/components/Content/index.tsx +53 -53
- package/src/components/DataGrid/Footer/index.tsx +14 -14
- package/src/components/DataGrid/ManageColumn/index.tsx +28 -28
- package/src/components/DataGrid/ManageRow/index.tsx +27 -27
- package/src/components/DataGrid/Table/ColumnHeaderRow/index.tsx +14 -14
- package/src/components/DataGrid/Table/Rows/index.tsx +71 -71
- package/src/components/DataGrid/Table/index.tsx +6 -6
- package/src/components/DataGrid/VerticalDivider/index.tsx +5 -5
- package/src/components/DataGrid/index.tsx +11 -11
- package/src/components/DataGrid/types/index.ts +2 -2
- package/src/components/Field/Date/CreditCardExpiration/index.tsx +58 -58
- package/src/components/Field/Date/DateField/index.tsx +63 -63
- package/src/components/Field/Date/DateRange/index.tsx +68 -68
- package/src/components/Field/Dropdown/MultiSelect/index.tsx +13 -13
- package/src/components/Field/Dropdown/Regular/index.tsx +15 -15
- package/src/components/Field/Dropdown/Searchable/index.tsx +84 -84
- package/src/components/Field/Number/AccountNumber/index.tsx +11 -11
- package/src/components/Field/Number/CVV/index.tsx +10 -10
- package/src/components/Field/Number/CreditCardNumber/index.tsx +12 -12
- package/src/components/Field/Number/InternalIncrement/index.tsx +8 -8
- package/src/components/Field/Number/RoutingNumber/index.tsx +11 -11
- package/src/components/Field/Password/index.tsx +10 -10
- package/src/components/Field/Percentage/index.tsx +8 -8
- package/src/components/Field/PhoneNumber/index.tsx +6 -6
- package/src/components/Field/Search/index.tsx +9 -9
- package/src/components/Field/Text/index.tsx +11 -11
- package/src/components/Field/USD/index.tsx +17 -17
- package/src/components/Form/DataGrid/index.tsx +17 -17
- package/src/components/Form/Dialog/index.tsx +23 -23
- package/src/components/Form/Popup/index.tsx +34 -34
- package/src/components/Form/ProjectBoard/index.tsx +17 -17
- package/src/components/Icons/Calendar.tsx +3 -3
- package/src/components/Icons/Drag.tsx +4 -4
- package/src/components/Icons/FavoriteIcon.tsx +7 -7
- package/src/components/Icons/Info.tsx +3 -3
- package/src/components/Icons/Search.tsx +4 -4
- package/src/components/Icons/ShowHideEye.tsx +4 -4
- package/src/components/Nav/VerticalVariant/mainNav/list.tsx +37 -25
- package/src/components/Nav/VerticalVariant/subNav/expanding.tsx +6 -0
- package/src/components/Nav/VerticalVariant/subNav/list.tsx +6 -0
- package/src/components/Nav/VerticalVariant/subSubViewNav/list.tsx +12 -6
- package/src/components/Nav/VerticalVariant/subViewNav/list.tsx +12 -6
- package/src/components/Nav/VerticalVariant/viewNav/index.tsx +12 -6
- package/src/components/Nav/index.tsx +131 -27
- package/src/components/PricingTable/index.tsx +29 -29
- package/src/components/ProjectBoard/board/desktop/index.tsx +30 -30
- package/src/components/ProjectBoard/board/index.tsx +1 -1
- package/src/components/ProjectBoard/board/mobile/index.tsx +36 -36
- package/src/components/ProjectBoard/board/tablet/index.tsx +30 -30
- package/src/components/ProjectBoard/forms/AddTask/administrator/companyDropdown/index.tsx +24 -24
- package/src/components/ProjectBoard/forms/AddTask/administrator/companyProvided/index.tsx +23 -23
- package/src/components/ProjectBoard/forms/AddTask/company/customerDropdown/index.tsx +24 -24
- package/src/components/ProjectBoard/forms/AddTask/company/customerProvided/index.tsx +23 -23
- package/src/components/ProjectBoard/forms/AddTask/customer/index.tsx +19 -19
- package/src/components/ProjectBoard/forms/AddTask/noUser/index.tsx +12 -12
- package/src/components/ProjectBoard/forms/ShowTask/client.tsx +118 -118
- package/src/components/ProjectBoard/index.tsx +15 -15
- package/src/components/ProjectBoard/types/index.tsx +1 -1
- package/src/components/QRCode/index.tsx +24 -24
- package/src/components/RadioGroup/index.tsx +9 -9
- package/src/components/Stepper/index.tsx +16 -16
- package/src/components/Tabs/index.tsx +22 -22
- package/src/components/Toolbar/index.tsx +13 -13
- package/src/components/Toolbar/left/index.tsx +11 -11
- package/src/components/Toolbar/leftCenter/index.tsx +13 -13
- package/src/components/Toolbar/right/index.tsx +6 -6
- package/src/components/Toolbar/rightCenter/index.tsx +3 -3
- package/src/components/Tooltip/index.tsx +8 -8
- package/src/components/TransferList/index.tsx +16 -16
- package/src/components/Typography/index.tsx +5 -5
- package/src/components/Widget/index.tsx +12 -12
package/package.json
CHANGED
|
@@ -97,7 +97,7 @@ const expandGlyphGlow = keyframes`
|
|
|
97
97
|
* <Accordion
|
|
98
98
|
* summary="Ancient Knowledge"
|
|
99
99
|
* details="Sacred wisdom revealed..."
|
|
100
|
-
*
|
|
100
|
+
* sacredtheme
|
|
101
101
|
* />
|
|
102
102
|
* ```
|
|
103
103
|
*
|
|
@@ -182,7 +182,7 @@ export interface AccordionProps {
|
|
|
182
182
|
/** Custom styles applied to the accordion */
|
|
183
183
|
style?: React.CSSProperties
|
|
184
184
|
/** Enable Egyptian/Sacred theming */
|
|
185
|
-
|
|
185
|
+
sacredtheme?: boolean
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
// Enhanced version of MuiAccordion with stricter content unmounting
|
|
@@ -472,12 +472,12 @@ const SacredGlyphDecoration = styled('div')({
|
|
|
472
472
|
})
|
|
473
473
|
|
|
474
474
|
// Sacred expand icon component
|
|
475
|
-
const SacredExpandIcon = ({
|
|
475
|
+
const SacredExpandIcon = ({ sacredtheme }: { sacredtheme?: boolean }) => (
|
|
476
476
|
<ExpandMore
|
|
477
477
|
sx={{
|
|
478
|
-
color:
|
|
478
|
+
color: sacredtheme ? '#FFD700' : black.main,
|
|
479
479
|
transition: 'all 0.3s ease',
|
|
480
|
-
...(
|
|
480
|
+
...(sacredtheme && {
|
|
481
481
|
filter: 'drop-shadow(0 0 4px rgba(255, 215, 0, 0.5))',
|
|
482
482
|
'&:hover': {
|
|
483
483
|
filter: 'drop-shadow(0 0 8px rgba(255, 215, 0, 0.8))',
|
|
@@ -506,7 +506,7 @@ function Accordion({
|
|
|
506
506
|
defaultExpanded = false,
|
|
507
507
|
onChange,
|
|
508
508
|
disabled = false,
|
|
509
|
-
|
|
509
|
+
sacredtheme = false,
|
|
510
510
|
}: AccordionProps) {
|
|
511
511
|
// Check if component is in controlled mode (expanded prop is provided)
|
|
512
512
|
const isControlled = controlledExpanded !== undefined
|
|
@@ -563,14 +563,14 @@ function Accordion({
|
|
|
563
563
|
expanded={false}
|
|
564
564
|
onChange={handleToggle}
|
|
565
565
|
className="controlled-accordion-collapsed"
|
|
566
|
-
sacredtheme={
|
|
566
|
+
sacredtheme={sacredtheme}
|
|
567
567
|
>
|
|
568
568
|
<StyledAccordionSummary
|
|
569
|
-
expandIcon={<SacredExpandIcon
|
|
569
|
+
expandIcon={<SacredExpandIcon sacredtheme={sacredtheme} />}
|
|
570
570
|
aria-controls="accordion-content"
|
|
571
571
|
id="accordion-header"
|
|
572
572
|
data-testid="accordion-summary-controlled"
|
|
573
|
-
sacredtheme={
|
|
573
|
+
sacredtheme={sacredtheme}
|
|
574
574
|
>
|
|
575
575
|
{summary}
|
|
576
576
|
</StyledAccordionSummary>
|
|
@@ -587,7 +587,7 @@ function Accordion({
|
|
|
587
587
|
style={style}
|
|
588
588
|
expanded={false} // Always collapsed when disabled
|
|
589
589
|
className="disabled-accordion"
|
|
590
|
-
sacredtheme={
|
|
590
|
+
sacredtheme={sacredtheme}
|
|
591
591
|
>
|
|
592
592
|
<DisabledSummaryWrapper
|
|
593
593
|
onClick={handleDisabledClick}
|
|
@@ -597,12 +597,12 @@ function Accordion({
|
|
|
597
597
|
expandIcon={
|
|
598
598
|
<ExpandMore
|
|
599
599
|
sx={{
|
|
600
|
-
color:
|
|
600
|
+
color: sacredtheme ? alpha('#FFD700', 0.3) : '#999',
|
|
601
601
|
}}
|
|
602
602
|
/>
|
|
603
603
|
}
|
|
604
604
|
aria-disabled="true"
|
|
605
|
-
sacredtheme={
|
|
605
|
+
sacredtheme={sacredtheme}
|
|
606
606
|
>
|
|
607
607
|
{summary}
|
|
608
608
|
</StyledAccordionSummary>
|
|
@@ -620,20 +620,20 @@ function Accordion({
|
|
|
620
620
|
expanded={expanded}
|
|
621
621
|
onChange={handleToggle}
|
|
622
622
|
className={`accordion-${expanded ? 'expanded' : 'collapsed'}`}
|
|
623
|
-
sacredtheme={
|
|
623
|
+
sacredtheme={sacredtheme}
|
|
624
624
|
>
|
|
625
625
|
<StyledAccordionSummary
|
|
626
|
-
expandIcon={<SacredExpandIcon
|
|
626
|
+
expandIcon={<SacredExpandIcon sacredtheme={sacredtheme} />}
|
|
627
627
|
aria-controls="accordion-content"
|
|
628
628
|
id="accordion-header"
|
|
629
629
|
data-testid="accordion-summary"
|
|
630
|
-
sacredtheme={
|
|
630
|
+
sacredtheme={sacredtheme}
|
|
631
631
|
>
|
|
632
632
|
{summary}
|
|
633
633
|
</StyledAccordionSummary>
|
|
634
634
|
{expanded && (
|
|
635
|
-
<StyledAccordionDetails sacredtheme={
|
|
636
|
-
{
|
|
635
|
+
<StyledAccordionDetails sacredtheme={sacredtheme}>
|
|
636
|
+
{sacredtheme ? (
|
|
637
637
|
<SacredContentWrapper>
|
|
638
638
|
{details}
|
|
639
639
|
<SacredGlyphDecoration>
|
|
@@ -100,7 +100,7 @@ export interface CustomButtonProps extends ButtonProps {
|
|
|
100
100
|
fontlocation?: 'left' | 'center' | 'right'
|
|
101
101
|
|
|
102
102
|
/** Enable Egyptian/Sacred theming */
|
|
103
|
-
|
|
103
|
+
sacredtheme?: boolean
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
function CustomButton({
|
|
@@ -120,7 +120,7 @@ function CustomButton({
|
|
|
120
120
|
fontlocation = 'center',
|
|
121
121
|
disabled,
|
|
122
122
|
style = {},
|
|
123
|
-
|
|
123
|
+
sacredtheme = false,
|
|
124
124
|
...restProps
|
|
125
125
|
}: CustomButtonProps) {
|
|
126
126
|
// Merge MUI's "disabled" with our "disableButton"
|
|
@@ -135,7 +135,7 @@ function CustomButton({
|
|
|
135
135
|
const IconComponent = icon
|
|
136
136
|
? React.cloneElement(icon, {
|
|
137
137
|
sx: {
|
|
138
|
-
color:
|
|
138
|
+
color: sacredtheme
|
|
139
139
|
? isReallyDisabled
|
|
140
140
|
? alpha('#FFD700', 0.3)
|
|
141
141
|
: iconcolor || '#FFD700'
|
|
@@ -144,7 +144,7 @@ function CustomButton({
|
|
|
144
144
|
minWidth: iconsize || '20px',
|
|
145
145
|
minHeight: iconsize || '20px',
|
|
146
146
|
margin: 0,
|
|
147
|
-
...(
|
|
147
|
+
...(sacredtheme &&
|
|
148
148
|
!isReallyDisabled && {
|
|
149
149
|
animation: `${sacredIconGlow} 2s ease-in-out infinite`,
|
|
150
150
|
}),
|
|
@@ -193,7 +193,7 @@ function CustomButton({
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
// Sacred theme styles
|
|
196
|
-
if (
|
|
196
|
+
if (sacredtheme && !isReallyDisabled) {
|
|
197
197
|
buttonStyle.backgroundColor =
|
|
198
198
|
backgroundcolor === 'none'
|
|
199
199
|
? 'transparent'
|
|
@@ -219,7 +219,7 @@ function CustomButton({
|
|
|
219
219
|
|
|
220
220
|
// If disabled, force styling
|
|
221
221
|
if (isReallyDisabled) {
|
|
222
|
-
if (
|
|
222
|
+
if (sacredtheme) {
|
|
223
223
|
buttonStyle.backgroundColor = alpha('#000000', 0.6)
|
|
224
224
|
buttonStyle.border = `2px solid ${alpha('#FFD700', 0.2)}`
|
|
225
225
|
buttonStyle.color = alpha('#FFD700', 0.3)
|
|
@@ -231,9 +231,9 @@ function CustomButton({
|
|
|
231
231
|
buttonStyle.opacity = 1
|
|
232
232
|
buttonStyle.cursor = 'not-allowed'
|
|
233
233
|
buttonStyle.pointerEvents = 'auto'
|
|
234
|
-
} else if (!
|
|
234
|
+
} else if (!sacredtheme && backgroundcolor && backgroundcolor !== 'none') {
|
|
235
235
|
buttonStyle.backgroundColor = backgroundcolor
|
|
236
|
-
} else if (!
|
|
236
|
+
} else if (!sacredtheme && backgroundcolor === 'none') {
|
|
237
237
|
buttonStyle.backgroundColor = 'transparent'
|
|
238
238
|
}
|
|
239
239
|
|
|
@@ -280,7 +280,7 @@ function CustomButton({
|
|
|
280
280
|
style={buttonStyle}
|
|
281
281
|
data-testid={isReallyDisabled ? 'disabled-button' : 'button'}
|
|
282
282
|
sx={{
|
|
283
|
-
...(
|
|
283
|
+
...(sacredtheme &&
|
|
284
284
|
!isReallyDisabled && {
|
|
285
285
|
'&::before': {
|
|
286
286
|
content: '""',
|
|
@@ -326,7 +326,7 @@ function CustomButton({
|
|
|
326
326
|
}}
|
|
327
327
|
>
|
|
328
328
|
{/* Sacred floating glyph on the right */}
|
|
329
|
-
{
|
|
329
|
+
{sacredtheme && !isReallyDisabled && (
|
|
330
330
|
<Box
|
|
331
331
|
className="sacred-glyph-right"
|
|
332
332
|
sx={{
|
|
@@ -354,19 +354,19 @@ function CustomButton({
|
|
|
354
354
|
|
|
355
355
|
{text && (
|
|
356
356
|
<Typography
|
|
357
|
-
fontvariant={
|
|
357
|
+
fontvariant={sacredtheme ? undefined : fontvariant}
|
|
358
358
|
fontcolor={
|
|
359
359
|
isReallyDisabled
|
|
360
|
-
?
|
|
360
|
+
? sacredtheme
|
|
361
361
|
? alpha('#FFD700', 0.3)
|
|
362
362
|
: 'grey'
|
|
363
|
-
:
|
|
363
|
+
: sacredtheme
|
|
364
364
|
? '#FFD700'
|
|
365
365
|
: fontcolor || 'white'
|
|
366
366
|
}
|
|
367
367
|
text={text}
|
|
368
368
|
sx={
|
|
369
|
-
|
|
369
|
+
sacredtheme
|
|
370
370
|
? {
|
|
371
371
|
fontFamily: '"Cinzel", serif',
|
|
372
372
|
fontWeight: 600,
|
|
@@ -40,7 +40,7 @@ export interface CardProps {
|
|
|
40
40
|
/** Width of the card */
|
|
41
41
|
width?: string | number
|
|
42
42
|
/** Enable Egyptian/Sacred theming */
|
|
43
|
-
|
|
43
|
+
sacredtheme?: boolean
|
|
44
44
|
|
|
45
45
|
// Default card specific props
|
|
46
46
|
/** Whether to show an underline for the title */
|
|
@@ -188,7 +188,7 @@ const Card: React.FC<CardProps> = ({ variant = 'default', ...props }) => {
|
|
|
188
188
|
? `${props.height}px`
|
|
189
189
|
: props.height
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
sacredtheme={props.sacredtheme}
|
|
192
192
|
draggable={props.draggable}
|
|
193
193
|
onDragStart={props.onDragStart}
|
|
194
194
|
onDragOver={props.onDragOver}
|
|
@@ -212,7 +212,7 @@ const Card: React.FC<CardProps> = ({ variant = 'default', ...props }) => {
|
|
|
212
212
|
releaseDate={props.releaseDate}
|
|
213
213
|
onContact={props.onContact}
|
|
214
214
|
createdBy={props.createdBy}
|
|
215
|
-
|
|
215
|
+
sacredtheme={props.sacredtheme}
|
|
216
216
|
height={
|
|
217
217
|
typeof props.height === 'number'
|
|
218
218
|
? `${props.height}px`
|
|
@@ -238,7 +238,7 @@ const Card: React.FC<CardProps> = ({ variant = 'default', ...props }) => {
|
|
|
238
238
|
support={props.support}
|
|
239
239
|
price={props.price}
|
|
240
240
|
quantity={props.quantity}
|
|
241
|
-
|
|
241
|
+
sacredtheme={props.sacredtheme}
|
|
242
242
|
onRemove={props.onRemove}
|
|
243
243
|
/>
|
|
244
244
|
)
|
|
@@ -257,7 +257,7 @@ const Card: React.FC<CardProps> = ({ variant = 'default', ...props }) => {
|
|
|
257
257
|
? `${props.height}px`
|
|
258
258
|
: props.height
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
sacredtheme={props.sacredtheme}
|
|
261
261
|
/>
|
|
262
262
|
)
|
|
263
263
|
|
|
@@ -275,7 +275,7 @@ const Card: React.FC<CardProps> = ({ variant = 'default', ...props }) => {
|
|
|
275
275
|
taxText={props.taxText}
|
|
276
276
|
discountText={props.discountText}
|
|
277
277
|
onProceed={props.onProceed}
|
|
278
|
-
|
|
278
|
+
sacredtheme={props.sacredtheme}
|
|
279
279
|
/>
|
|
280
280
|
)
|
|
281
281
|
|
|
@@ -298,7 +298,7 @@ const Card: React.FC<CardProps> = ({ variant = 'default', ...props }) => {
|
|
|
298
298
|
total={props.totalPrice}
|
|
299
299
|
proceedText={props.proceedText}
|
|
300
300
|
onProceed={props.onProceed}
|
|
301
|
-
|
|
301
|
+
sacredtheme={props.sacredtheme}
|
|
302
302
|
/>
|
|
303
303
|
)
|
|
304
304
|
|
|
@@ -48,7 +48,7 @@ interface DetailedPricingSummaryProps {
|
|
|
48
48
|
/** Function to call when the proceed button is clicked */
|
|
49
49
|
onProceed?: () => void
|
|
50
50
|
/** Enable Egyptian/Sacred theming */
|
|
51
|
-
|
|
51
|
+
sacredtheme?: boolean
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -65,7 +65,7 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
65
65
|
total = '$180.00',
|
|
66
66
|
proceedText = 'Proceed to checkout',
|
|
67
67
|
onProceed,
|
|
68
|
-
|
|
68
|
+
sacredtheme = false,
|
|
69
69
|
}) => {
|
|
70
70
|
return (
|
|
71
71
|
<Paper
|
|
@@ -76,14 +76,14 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
76
76
|
flexDirection: 'column',
|
|
77
77
|
justifyContent: 'flex-start',
|
|
78
78
|
alignItems: 'stretch',
|
|
79
|
-
border:
|
|
79
|
+
border: sacredtheme
|
|
80
80
|
? `1px solid ${alpha('#FFD700', 0.3)}`
|
|
81
81
|
: '1px solid #e8e8e8',
|
|
82
82
|
minHeight: height,
|
|
83
83
|
padding: '16px',
|
|
84
|
-
backgroundColor:
|
|
84
|
+
backgroundColor: sacredtheme ? '#0a0a0a' : 'white',
|
|
85
85
|
overflow: 'hidden',
|
|
86
|
-
...(
|
|
86
|
+
...(sacredtheme && {
|
|
87
87
|
backgroundImage: `
|
|
88
88
|
linear-gradient(rgba(255, 215, 0, 0.02), rgba(255, 215, 0, 0.02)),
|
|
89
89
|
radial-gradient(circle at bottom left, rgba(255, 215, 0, 0.05) 0%, transparent 50%)
|
|
@@ -105,10 +105,10 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
105
105
|
{/* Product section */}
|
|
106
106
|
<Typography
|
|
107
107
|
text="Product"
|
|
108
|
-
fontcolor={
|
|
108
|
+
fontcolor={sacredtheme ? '#FFD700' : 'black'}
|
|
109
109
|
fontvariant="merriparagraph"
|
|
110
110
|
sx={
|
|
111
|
-
|
|
111
|
+
sacredtheme
|
|
112
112
|
? {
|
|
113
113
|
fontFamily: '"Cinzel", serif',
|
|
114
114
|
fontWeight: 600,
|
|
@@ -120,7 +120,7 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
120
120
|
/>
|
|
121
121
|
<Typography
|
|
122
122
|
text={product}
|
|
123
|
-
fontcolor={
|
|
123
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.8) : 'black'}
|
|
124
124
|
fontvariant="merriparagraph"
|
|
125
125
|
sx={{ marginTop: '8px' }}
|
|
126
126
|
/>
|
|
@@ -136,12 +136,12 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
136
136
|
>
|
|
137
137
|
<Typography
|
|
138
138
|
text="Vendor:"
|
|
139
|
-
fontcolor={
|
|
139
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.9) : 'black'}
|
|
140
140
|
fontvariant="merriparagraph"
|
|
141
141
|
/>
|
|
142
142
|
<Typography
|
|
143
143
|
text={vendor}
|
|
144
|
-
fontcolor={
|
|
144
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.8) : 'black'}
|
|
145
145
|
fontvariant="merriparagraph"
|
|
146
146
|
/>
|
|
147
147
|
</Box>
|
|
@@ -154,10 +154,10 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
154
154
|
>
|
|
155
155
|
<Typography
|
|
156
156
|
text={vendorPrice}
|
|
157
|
-
fontcolor={
|
|
157
|
+
fontcolor={sacredtheme ? '#FFD700' : 'black'}
|
|
158
158
|
fontvariant="merriparagraph"
|
|
159
159
|
sx={
|
|
160
|
-
|
|
160
|
+
sacredtheme
|
|
161
161
|
? {
|
|
162
162
|
fontWeight: 600,
|
|
163
163
|
textShadow: '0 0 6px rgba(255, 215, 0, 0.4)',
|
|
@@ -172,12 +172,12 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
172
172
|
<Box sx={{ marginTop: '16px' }}>
|
|
173
173
|
<Typography
|
|
174
174
|
text="Subtotal"
|
|
175
|
-
fontcolor={
|
|
175
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.9) : 'black'}
|
|
176
176
|
fontvariant="merriparagraph"
|
|
177
177
|
/>
|
|
178
178
|
<Typography
|
|
179
179
|
text={subtotal}
|
|
180
|
-
fontcolor={
|
|
180
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.8) : 'black'}
|
|
181
181
|
fontvariant="merriparagraph"
|
|
182
182
|
align="right"
|
|
183
183
|
/>
|
|
@@ -187,12 +187,12 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
187
187
|
<Box sx={{ marginTop: '8px' }}>
|
|
188
188
|
<Typography
|
|
189
189
|
text="VAT"
|
|
190
|
-
fontcolor={
|
|
190
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.9) : 'black'}
|
|
191
191
|
fontvariant="merriparagraph"
|
|
192
192
|
/>
|
|
193
193
|
<Typography
|
|
194
194
|
text={vat}
|
|
195
|
-
fontcolor={
|
|
195
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.8) : 'black'}
|
|
196
196
|
fontvariant="merriparagraph"
|
|
197
197
|
align="right"
|
|
198
198
|
/>
|
|
@@ -201,12 +201,12 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
201
201
|
{/* Total section */}
|
|
202
202
|
<Box
|
|
203
203
|
sx={{
|
|
204
|
-
borderTop:
|
|
204
|
+
borderTop: sacredtheme
|
|
205
205
|
? `1px solid ${alpha('#FFD700', 0.3)}`
|
|
206
206
|
: '1px solid #e8e8e8',
|
|
207
207
|
marginTop: '8px',
|
|
208
208
|
paddingTop: '8px',
|
|
209
|
-
...(
|
|
209
|
+
...(sacredtheme && {
|
|
210
210
|
background: `linear-gradient(to right, ${alpha('#FFD700', 0.05)}, transparent)`,
|
|
211
211
|
}),
|
|
212
212
|
}}
|
|
@@ -220,10 +220,10 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
220
220
|
>
|
|
221
221
|
<Typography
|
|
222
222
|
text="Total"
|
|
223
|
-
fontcolor={
|
|
223
|
+
fontcolor={sacredtheme ? '#FFD700' : 'black'}
|
|
224
224
|
fontvariant="merrih5"
|
|
225
225
|
sx={
|
|
226
|
-
|
|
226
|
+
sacredtheme
|
|
227
227
|
? {
|
|
228
228
|
fontFamily: '"Cinzel", serif',
|
|
229
229
|
fontWeight: 700,
|
|
@@ -234,10 +234,10 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
234
234
|
/>
|
|
235
235
|
<Typography
|
|
236
236
|
text={total}
|
|
237
|
-
fontcolor={
|
|
237
|
+
fontcolor={sacredtheme ? '#FFD700' : 'black'}
|
|
238
238
|
fontvariant="merrih5"
|
|
239
239
|
sx={
|
|
240
|
-
|
|
240
|
+
sacredtheme
|
|
241
241
|
? {
|
|
242
242
|
fontFamily: '"Cinzel", serif',
|
|
243
243
|
fontWeight: 700,
|
|
@@ -255,12 +255,12 @@ const DetailedPricingSummary: React.FC<DetailedPricingSummaryProps> = ({
|
|
|
255
255
|
<CustomButton
|
|
256
256
|
text={proceedText}
|
|
257
257
|
variant="contained"
|
|
258
|
-
backgroundcolor={
|
|
259
|
-
fontcolor={
|
|
258
|
+
backgroundcolor={sacredtheme ? alpha('#000000', 0.9) : 'black'}
|
|
259
|
+
fontcolor={sacredtheme ? '#FFD700' : 'white'}
|
|
260
260
|
fontvariant="merriparagraph"
|
|
261
261
|
onClick={onProceed}
|
|
262
262
|
width="100%"
|
|
263
|
-
|
|
263
|
+
sacredtheme={sacredtheme}
|
|
264
264
|
/>
|
|
265
265
|
</Box>
|
|
266
266
|
</Paper>
|
|
@@ -52,7 +52,7 @@ interface InventoryCardProps {
|
|
|
52
52
|
/** Quantity of the item */
|
|
53
53
|
quantity?: number
|
|
54
54
|
/** Enable Egyptian/Sacred theming */
|
|
55
|
-
|
|
55
|
+
sacredtheme?: boolean
|
|
56
56
|
/** Callback for remove action */
|
|
57
57
|
onRemove?: () => void
|
|
58
58
|
}
|
|
@@ -72,7 +72,7 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
72
72
|
support,
|
|
73
73
|
price,
|
|
74
74
|
quantity,
|
|
75
|
-
|
|
75
|
+
sacredtheme = false,
|
|
76
76
|
onRemove,
|
|
77
77
|
}) => {
|
|
78
78
|
return (
|
|
@@ -84,13 +84,13 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
84
84
|
flexDirection: 'row',
|
|
85
85
|
justifyContent: 'flex-start',
|
|
86
86
|
alignItems: 'stretch',
|
|
87
|
-
border:
|
|
87
|
+
border: sacredtheme
|
|
88
88
|
? `1px solid ${alpha('#FFD700', 0.3)}`
|
|
89
89
|
: '1px solid #e8e8e8',
|
|
90
90
|
minHeight: height,
|
|
91
|
-
backgroundColor:
|
|
91
|
+
backgroundColor: sacredtheme ? '#0a0a0a' : 'white',
|
|
92
92
|
overflow: 'hidden',
|
|
93
|
-
...(
|
|
93
|
+
...(sacredtheme && {
|
|
94
94
|
animation: `${sacredBorderGlow} 4s ease-in-out infinite`,
|
|
95
95
|
'&::before': {
|
|
96
96
|
content: '""',
|
|
@@ -120,7 +120,7 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
120
120
|
flexShrink: 0,
|
|
121
121
|
position: 'relative',
|
|
122
122
|
zIndex: 2,
|
|
123
|
-
...(
|
|
123
|
+
...(sacredtheme && {
|
|
124
124
|
'&::after': {
|
|
125
125
|
content: '""',
|
|
126
126
|
position: 'absolute',
|
|
@@ -146,7 +146,7 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
146
146
|
}}
|
|
147
147
|
>
|
|
148
148
|
{/* Sacred decorative glyph */}
|
|
149
|
-
{
|
|
149
|
+
{sacredtheme && (
|
|
150
150
|
<Box
|
|
151
151
|
sx={{
|
|
152
152
|
position: 'absolute',
|
|
@@ -172,10 +172,10 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
172
172
|
{title && (
|
|
173
173
|
<Typography
|
|
174
174
|
text={title}
|
|
175
|
-
fontcolor={
|
|
175
|
+
fontcolor={sacredtheme ? '#FFD700' : 'black'}
|
|
176
176
|
fontvariant="merrih5"
|
|
177
177
|
sx={
|
|
178
|
-
|
|
178
|
+
sacredtheme
|
|
179
179
|
? {
|
|
180
180
|
fontFamily: '"Cinzel", serif',
|
|
181
181
|
fontWeight: 600,
|
|
@@ -195,10 +195,10 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
195
195
|
>
|
|
196
196
|
<Typography
|
|
197
197
|
text={`${quantity} x ${price}`}
|
|
198
|
-
fontcolor={
|
|
198
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.9) : 'black'}
|
|
199
199
|
fontvariant="merriparagraph"
|
|
200
200
|
sx={
|
|
201
|
-
|
|
201
|
+
sacredtheme
|
|
202
202
|
? {
|
|
203
203
|
fontWeight: 600,
|
|
204
204
|
textShadow: '0 0 6px rgba(255, 215, 0, 0.4)',
|
|
@@ -215,7 +215,7 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
215
215
|
<Box sx={{ marginTop: '8px' }}>
|
|
216
216
|
<Typography
|
|
217
217
|
text={`License: ${license || ''}`}
|
|
218
|
-
fontcolor={
|
|
218
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.8) : 'black'}
|
|
219
219
|
fontvariant="merriparagraph"
|
|
220
220
|
/>
|
|
221
221
|
</Box>
|
|
@@ -223,7 +223,7 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
223
223
|
<Box sx={{ marginTop: '4px' }}>
|
|
224
224
|
<Typography
|
|
225
225
|
text={`Development use: ${developmentUse || ''}`}
|
|
226
|
-
fontcolor={
|
|
226
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.8) : 'black'}
|
|
227
227
|
fontvariant="merriparagraph"
|
|
228
228
|
/>
|
|
229
229
|
</Box>
|
|
@@ -231,7 +231,7 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
231
231
|
<Box sx={{ marginTop: '4px' }}>
|
|
232
232
|
<Typography
|
|
233
233
|
text={`Production use: ${productionUse || ''}`}
|
|
234
|
-
fontcolor={
|
|
234
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.8) : 'black'}
|
|
235
235
|
fontvariant="merriparagraph"
|
|
236
236
|
/>
|
|
237
237
|
</Box>
|
|
@@ -239,7 +239,7 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
239
239
|
<Box sx={{ marginTop: '4px' }}>
|
|
240
240
|
<Typography
|
|
241
241
|
text={`Updates: ${updates || ''}`}
|
|
242
|
-
fontcolor={
|
|
242
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.8) : 'black'}
|
|
243
243
|
fontvariant="merriparagraph"
|
|
244
244
|
/>
|
|
245
245
|
</Box>
|
|
@@ -247,7 +247,7 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
247
247
|
<Box sx={{ marginTop: '4px' }}>
|
|
248
248
|
<Typography
|
|
249
249
|
text={`Support: ${support || ''}`}
|
|
250
|
-
fontcolor={
|
|
250
|
+
fontcolor={sacredtheme ? alpha('#FFD700', 0.8) : 'black'}
|
|
251
251
|
fontvariant="merriparagraph"
|
|
252
252
|
/>
|
|
253
253
|
</Box>
|
|
@@ -265,10 +265,10 @@ const InventoryCard: React.FC<InventoryCardProps> = ({
|
|
|
265
265
|
>
|
|
266
266
|
<Typography
|
|
267
267
|
text="Remove"
|
|
268
|
-
fontcolor={
|
|
268
|
+
fontcolor={sacredtheme ? '#FFD700' : 'black'}
|
|
269
269
|
fontvariant="merriparagraph"
|
|
270
270
|
sx={
|
|
271
|
-
|
|
271
|
+
sacredtheme
|
|
272
272
|
? {
|
|
273
273
|
textDecoration: 'underline',
|
|
274
274
|
'&:hover': {
|