@vygruppen/spor-react 4.0.2 → 4.1.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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +27 -0
- package/dist/{CountryCodeSelect-WSPQNU6B.mjs → CountryCodeSelect-FBKDO5JS.mjs} +1 -1
- package/dist/{chunk-MGJQOEU2.mjs → chunk-FPWAXD72.mjs} +149 -220
- package/dist/index.d.mts +22 -96
- package/dist/index.d.ts +22 -96
- package/dist/index.js +148 -219
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/accordion/Accordion.test.tsx +1 -1
- package/src/accordion/Accordion.tsx +1 -1
- package/src/accordion/AccordionContext.tsx +1 -1
- package/src/accordion/Expandable.tsx +6 -6
- package/src/alert/BaseAlert.test.tsx +5 -5
- package/src/alert/BaseAlert.tsx +5 -1
- package/src/alert/ClosableAlert.test.tsx +3 -3
- package/src/alert/ExpandableAlert.test.tsx +5 -5
- package/src/button/Button.test.tsx +1 -1
- package/src/button/Button.tsx +1 -1
- package/src/button/CloseButton.tsx +1 -1
- package/src/button/FloatingActionButton.tsx +5 -5
- package/src/button/IconButton.tsx +1 -1
- package/src/card/Card.tsx +3 -2
- package/src/card/index.tsx +1 -1
- package/src/datepicker/Calendar.tsx +6 -6
- package/src/datepicker/CalendarCell.tsx +9 -8
- package/src/datepicker/CalendarGrid.tsx +9 -9
- package/src/datepicker/CalendarHeader.tsx +2 -2
- package/src/datepicker/CalendarTriggerButton.tsx +5 -10
- package/src/datepicker/DateField.tsx +2 -2
- package/src/datepicker/DatePicker.tsx +3 -3
- package/src/datepicker/DateTimeSegment.tsx +2 -2
- package/src/datepicker/RangeCalendar.tsx +5 -2
- package/src/datepicker/StyledField.tsx +2 -6
- package/src/datepicker/TimePicker.test.tsx +4 -4
- package/src/datepicker/TimePicker.tsx +9 -7
- package/src/index.tsx +0 -1
- package/src/input/CardSelect.tsx +3 -3
- package/src/input/Combobox.tsx +1 -1
- package/src/input/CountryCodeSelect.tsx +1 -1
- package/src/input/FormErrorMessage.tsx +1 -1
- package/src/input/InfoSelect.tsx +1 -1
- package/src/input/Input.tsx +1 -1
- package/src/input/InputElement.tsx +2 -2
- package/src/input/ListBox.tsx +3 -3
- package/src/input/NativeSelect.tsx +1 -1
- package/src/input/PasswordInput.tsx +1 -1
- package/src/input/PhoneNumberInput.tsx +13 -4
- package/src/input/Popover.tsx +4 -4
- package/src/input/RadioGroup.tsx +1 -1
- package/src/input/SearchInput.tsx +1 -1
- package/src/input/Switch.tsx +1 -1
- package/src/layout/Stack.tsx +1 -1
- package/src/linjetag/TravelTag.tsx +2 -2
- package/src/link/TextLink.tsx +1 -1
- package/src/list/index.tsx +0 -1
- package/src/loader/DarkSpinner.tsx +5 -5
- package/src/loader/SkeletonText.tsx +6 -3
- package/src/loader/useRotatingLabel.tsx +2 -2
- package/src/media-controller/index.test.tsx +6 -6
- package/src/modal/Drawer.tsx +2 -4
- package/src/modal/ModalHeader.tsx +1 -1
- package/src/provider/index.tsx +1 -1
- package/src/stepper/Stepper.tsx +10 -6
- package/src/stepper/StepperContext.tsx +7 -7
- package/src/stepper/StepperStep.tsx +56 -16
- package/src/theme/components/button.ts +25 -44
- package/src/theme/components/card.ts +7 -1
- package/src/theme/components/close-button.ts +3 -1
- package/src/theme/components/datepicker.ts +2 -2
- package/src/theme/components/divider.ts +17 -17
- package/src/theme/components/fab.ts +16 -13
- package/src/theme/components/info-tag.ts +7 -8
- package/src/theme/components/input.ts +4 -2
- package/src/theme/components/line-icon.ts +1 -2
- package/src/theme/components/media-controller-button.ts +1 -1
- package/src/theme/components/popover.ts +1 -2
- package/src/theme/components/select.ts +4 -4
- package/src/theme/components/stepper.ts +8 -155
- package/src/theme/components/switch.ts +9 -9
- package/src/theme/components/table.ts +3 -3
- package/src/theme/components/tabs.ts +24 -18
- package/src/theme/components/textarea.ts +1 -1
- package/src/theme/components/travel-tag.ts +2 -2
- package/src/theme/foundations/spacing.ts +1 -1
- package/src/theme/foundations/styles.ts +10 -10
- package/src/theme/utils/box-shadow-utils.ts +2 -2
- package/src/toast/ActionToast.test.tsx +1 -1
- package/src/toast/BaseToast.test.tsx +3 -3
- package/src/toast/ClosableToast.test.tsx +1 -1
- package/src/toast/index.tsx +1 -1
- package/src/toast/useToast.tsx +3 -3
- package/src/typography/Badge.tsx +1 -1
- package/src/typography/Text.tsx +1 -1
- package/tsconfig.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -282,7 +282,7 @@ type ButtonProps = Exclude<ButtonProps$1, "colorScheme" | "loadingText" | "size"
|
|
282
282
|
*
|
283
283
|
* ```tsx
|
284
284
|
* <Button variant="primary" onClick={confirmOrder}>
|
285
|
-
*
|
285
|
+
* Buy trip
|
286
286
|
* </Button>
|
287
287
|
* ```
|
288
288
|
*
|
@@ -412,7 +412,7 @@ declare const FloatingActionButton: ComponentWithAs<ComponentWithAs<"a" | "butto
|
|
412
412
|
type CardProps = Exclude<BoxProps, "size"> & {
|
413
413
|
size?: "sm" | "lg";
|
414
414
|
children: React__default.ReactNode;
|
415
|
-
colorScheme: "white" | "grey" | "blue" | "green" | "teal" | "yellow" | "orange";
|
415
|
+
colorScheme: "white" | "grey" | "blue" | "green" | "teal" | "yellow" | "orange" | "red";
|
416
416
|
};
|
417
417
|
/**
|
418
418
|
* Renders a card.
|
@@ -493,9 +493,11 @@ type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & {
|
|
493
493
|
value?: TimeValue;
|
494
494
|
/** A default value, if any.
|
495
495
|
*
|
496
|
-
* A `new Time(hours, minutes)` should be passed.
|
496
|
+
* A `new Time(hours, minutes)` should be passed.
|
497
|
+
* Defaults to the current time if not provided.
|
498
|
+
* Can be set to null if you don't want a time to be selected by default.
|
497
499
|
**/
|
498
|
-
defaultValue?: TimeValue;
|
500
|
+
defaultValue?: TimeValue | null;
|
499
501
|
/** Callback for when the time changes */
|
500
502
|
onChange?: (value: TimeValue) => void;
|
501
503
|
/** The maxiumum number of minutes to move when the step buttons are used.
|
@@ -1168,6 +1170,8 @@ type CountryCodeAndPhoneNumber = {
|
|
1168
1170
|
nationalNumber: string;
|
1169
1171
|
};
|
1170
1172
|
type PhoneNumberInputProps = Omit<BoxProps, "onChange"> & {
|
1173
|
+
/** The label. Defaults to a localized version of "Phone number" */
|
1174
|
+
label?: string;
|
1171
1175
|
/** The root name.
|
1172
1176
|
*
|
1173
1177
|
* Please note that when specifying the name, the rendered names will be `${name}-country-code` and `${name}-phone-number`, respectively
|
@@ -1855,10 +1859,10 @@ declare const SporProvider: ({ theme, language, children, ...props }: SporProvid
|
|
1855
1859
|
|
1856
1860
|
type StepperProps = {
|
1857
1861
|
onClick: (clickedStep: number) => void;
|
1858
|
-
colorScheme: "light" | "dark" | "green";
|
1859
1862
|
title?: string;
|
1860
1863
|
activeStep: number;
|
1861
1864
|
steps: string[];
|
1865
|
+
variant: "base" | "accent";
|
1862
1866
|
};
|
1863
1867
|
/**
|
1864
1868
|
* A stepper is used to show which step of a process a user is currently in.
|
@@ -1874,13 +1878,14 @@ type StepperProps = {
|
|
1874
1878
|
* />
|
1875
1879
|
* ```
|
1876
1880
|
**/
|
1877
|
-
declare const Stepper: ({ onClick, steps, activeStep: activeStepAsStringOrNumber, title,
|
1881
|
+
declare const Stepper: ({ onClick, steps, activeStep: activeStepAsStringOrNumber, title, variant, }: StepperProps) => React__default.JSX.Element;
|
1878
1882
|
|
1879
1883
|
type StepperStepProps = {
|
1880
1884
|
children: React__default.ReactNode;
|
1881
1885
|
stepNumber: number;
|
1886
|
+
variant: "base" | "accent";
|
1882
1887
|
};
|
1883
|
-
declare const StepperStep: ({ children, stepNumber }: StepperStepProps) => React__default.JSX.Element;
|
1888
|
+
declare const StepperStep: ({ children, stepNumber, variant, }: StepperStepProps) => React__default.JSX.Element;
|
1884
1889
|
|
1885
1890
|
type TabsProps = Exclude<TabsProps$1, "colorScheme" | "variant" | "orientation" | "size"> & {
|
1886
1891
|
colorScheme: "base" | "accent";
|
@@ -2278,19 +2283,6 @@ declare const theme: {
|
|
2278
2283
|
};
|
2279
2284
|
} | undefined;
|
2280
2285
|
variants?: {
|
2281
|
-
control: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2282
|
-
_hover: {
|
2283
|
-
backgroundColor: string;
|
2284
|
-
};
|
2285
|
-
_active: {
|
2286
|
-
backgroundColor: string;
|
2287
|
-
};
|
2288
|
-
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
2289
|
-
_focusVisible: _chakra_ui_styled_system.SystemStyleObject;
|
2290
|
-
"&[data-focus]:not([data-focus-visible])": _chakra_ui_styled_system.SystemStyleObject;
|
2291
|
-
backgroundColor: string;
|
2292
|
-
color: string;
|
2293
|
-
};
|
2294
2286
|
primary: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2295
2287
|
_hover: {
|
2296
2288
|
backgroundColor: string;
|
@@ -2321,7 +2313,7 @@ declare const theme: {
|
|
2321
2313
|
backgroundColor: string;
|
2322
2314
|
};
|
2323
2315
|
};
|
2324
|
-
|
2316
|
+
tertiary: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2325
2317
|
_hover: {
|
2326
2318
|
boxShadow: string;
|
2327
2319
|
};
|
@@ -2371,7 +2363,7 @@ declare const theme: {
|
|
2371
2363
|
} | undefined;
|
2372
2364
|
defaultProps?: {
|
2373
2365
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
2374
|
-
variant?: "
|
2366
|
+
variant?: "primary" | "secondary" | "ghost" | "floating" | "tertiary" | undefined;
|
2375
2367
|
colorScheme?: string | undefined;
|
2376
2368
|
} | undefined;
|
2377
2369
|
};
|
@@ -3445,7 +3437,7 @@ declare const theme: {
|
|
3445
3437
|
} | undefined;
|
3446
3438
|
defaultProps?: {
|
3447
3439
|
size?: string | number | undefined;
|
3448
|
-
variant?: "base" | "green" | "light" | "
|
3440
|
+
variant?: "base" | "green" | "light" | "dark" | "accent" | "brand" | undefined;
|
3449
3441
|
colorScheme?: string | undefined;
|
3450
3442
|
} | undefined;
|
3451
3443
|
parts: ("text" | "container" | "icon")[];
|
@@ -4540,7 +4532,6 @@ declare const theme: {
|
|
4540
4532
|
Stepper: {
|
4541
4533
|
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4542
4534
|
root: {
|
4543
|
-
backgroundColor: string;
|
4544
4535
|
display: string;
|
4545
4536
|
alignItems: string;
|
4546
4537
|
justifyContent: ("center" | "space-between")[];
|
@@ -4559,7 +4550,6 @@ declare const theme: {
|
|
4559
4550
|
display: ("flex" | "none")[];
|
4560
4551
|
alignItems: string;
|
4561
4552
|
justifyContent: string;
|
4562
|
-
color: string;
|
4563
4553
|
};
|
4564
4554
|
backButton: {
|
4565
4555
|
borderRadius: string;
|
@@ -4576,33 +4566,10 @@ declare const theme: {
|
|
4576
4566
|
ml: number;
|
4577
4567
|
textAlign: string;
|
4578
4568
|
};
|
4579
|
-
stepCounter: {
|
4580
|
-
whiteSpace: string;
|
4581
|
-
textDecoration: string;
|
4582
|
-
};
|
4583
4569
|
stepContainer: {
|
4584
4570
|
display: string;
|
4585
4571
|
alignItems: string;
|
4586
4572
|
};
|
4587
|
-
stepButton: {
|
4588
|
-
color: string;
|
4589
|
-
display: string;
|
4590
|
-
alignItems: string;
|
4591
|
-
padding: number;
|
4592
|
-
borderRadius: string;
|
4593
|
-
};
|
4594
|
-
stepNumber: {
|
4595
|
-
borderRadius: string;
|
4596
|
-
border: string;
|
4597
|
-
borderColor: string;
|
4598
|
-
width: number;
|
4599
|
-
height: number;
|
4600
|
-
mr: number;
|
4601
|
-
display: string;
|
4602
|
-
alignItems: string;
|
4603
|
-
justifyContent: string;
|
4604
|
-
fontSize: ("mobile.xs" | "desktop.xs")[];
|
4605
|
-
};
|
4606
4573
|
stepTitle: {
|
4607
4574
|
textStyle: string;
|
4608
4575
|
whiteSpace: string;
|
@@ -4614,61 +4581,20 @@ declare const theme: {
|
|
4614
4581
|
}>;
|
4615
4582
|
} | undefined;
|
4616
4583
|
variants?: {
|
4617
|
-
|
4618
|
-
|
4619
|
-
color: string;
|
4620
|
-
};
|
4621
|
-
stepButton: {
|
4622
|
-
_hover: {
|
4623
|
-
backgroundColor: string;
|
4624
|
-
};
|
4625
|
-
_focus: {
|
4626
|
-
outline: string;
|
4627
|
-
boxShadow: string;
|
4628
|
-
};
|
4629
|
-
"&:focus:not(:focus-visible)": {
|
4630
|
-
boxShadow: string;
|
4631
|
-
};
|
4632
|
-
_focusVisible: {
|
4633
|
-
outline: string;
|
4634
|
-
boxShadow: string;
|
4635
|
-
};
|
4636
|
-
_active: {
|
4637
|
-
backgroundColor: string;
|
4638
|
-
color?: undefined;
|
4639
|
-
} | {
|
4640
|
-
color: string;
|
4641
|
-
backgroundColor: string;
|
4642
|
-
};
|
4643
|
-
};
|
4644
|
-
};
|
4645
|
-
active: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4646
|
-
stepContainer: {
|
4647
|
-
color: string;
|
4648
|
-
};
|
4649
|
-
stepButton: {
|
4650
|
-
pointerEvents: string;
|
4651
|
-
};
|
4652
|
-
stepNumber: {
|
4584
|
+
base: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4585
|
+
root: {
|
4653
4586
|
backgroundColor: string;
|
4654
|
-
color: string;
|
4655
|
-
};
|
4656
|
-
stepTitle: {
|
4657
|
-
fontWeight: string;
|
4658
4587
|
};
|
4659
4588
|
};
|
4660
|
-
|
4661
|
-
|
4662
|
-
|
4663
|
-
};
|
4664
|
-
stepButton: {
|
4665
|
-
pointerEvents: string;
|
4589
|
+
accent: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4590
|
+
root: {
|
4591
|
+
backgroundColor: string;
|
4666
4592
|
};
|
4667
4593
|
};
|
4668
4594
|
} | undefined;
|
4669
4595
|
defaultProps?: {
|
4670
4596
|
size?: string | number | undefined;
|
4671
|
-
variant?: "
|
4597
|
+
variant?: "base" | "accent" | undefined;
|
4672
4598
|
colorScheme?: string | undefined;
|
4673
4599
|
} | undefined;
|
4674
4600
|
parts: ("title" | "container" | "closeButton" | "root" | "innerContainer" | "backButton" | "stepCounter" | "stepContainer" | "stepButton" | "stepNumber" | "stepTitle")[];
|
@@ -7149,7 +7075,7 @@ declare const theme: {
|
|
7149
7075
|
};
|
7150
7076
|
styles: {
|
7151
7077
|
global: (props: Record<string, any> | _chakra_ui_styled_system.StyleFunctionProps) => {
|
7152
|
-
|
7078
|
+
"html, body": {
|
7153
7079
|
color: string;
|
7154
7080
|
};
|
7155
7081
|
svg: {
|
package/dist/index.d.ts
CHANGED
@@ -282,7 +282,7 @@ type ButtonProps = Exclude<ButtonProps$1, "colorScheme" | "loadingText" | "size"
|
|
282
282
|
*
|
283
283
|
* ```tsx
|
284
284
|
* <Button variant="primary" onClick={confirmOrder}>
|
285
|
-
*
|
285
|
+
* Buy trip
|
286
286
|
* </Button>
|
287
287
|
* ```
|
288
288
|
*
|
@@ -412,7 +412,7 @@ declare const FloatingActionButton: ComponentWithAs<ComponentWithAs<"a" | "butto
|
|
412
412
|
type CardProps = Exclude<BoxProps, "size"> & {
|
413
413
|
size?: "sm" | "lg";
|
414
414
|
children: React__default.ReactNode;
|
415
|
-
colorScheme: "white" | "grey" | "blue" | "green" | "teal" | "yellow" | "orange";
|
415
|
+
colorScheme: "white" | "grey" | "blue" | "green" | "teal" | "yellow" | "orange" | "red";
|
416
416
|
};
|
417
417
|
/**
|
418
418
|
* Renders a card.
|
@@ -493,9 +493,11 @@ type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & {
|
|
493
493
|
value?: TimeValue;
|
494
494
|
/** A default value, if any.
|
495
495
|
*
|
496
|
-
* A `new Time(hours, minutes)` should be passed.
|
496
|
+
* A `new Time(hours, minutes)` should be passed.
|
497
|
+
* Defaults to the current time if not provided.
|
498
|
+
* Can be set to null if you don't want a time to be selected by default.
|
497
499
|
**/
|
498
|
-
defaultValue?: TimeValue;
|
500
|
+
defaultValue?: TimeValue | null;
|
499
501
|
/** Callback for when the time changes */
|
500
502
|
onChange?: (value: TimeValue) => void;
|
501
503
|
/** The maxiumum number of minutes to move when the step buttons are used.
|
@@ -1168,6 +1170,8 @@ type CountryCodeAndPhoneNumber = {
|
|
1168
1170
|
nationalNumber: string;
|
1169
1171
|
};
|
1170
1172
|
type PhoneNumberInputProps = Omit<BoxProps, "onChange"> & {
|
1173
|
+
/** The label. Defaults to a localized version of "Phone number" */
|
1174
|
+
label?: string;
|
1171
1175
|
/** The root name.
|
1172
1176
|
*
|
1173
1177
|
* Please note that when specifying the name, the rendered names will be `${name}-country-code` and `${name}-phone-number`, respectively
|
@@ -1855,10 +1859,10 @@ declare const SporProvider: ({ theme, language, children, ...props }: SporProvid
|
|
1855
1859
|
|
1856
1860
|
type StepperProps = {
|
1857
1861
|
onClick: (clickedStep: number) => void;
|
1858
|
-
colorScheme: "light" | "dark" | "green";
|
1859
1862
|
title?: string;
|
1860
1863
|
activeStep: number;
|
1861
1864
|
steps: string[];
|
1865
|
+
variant: "base" | "accent";
|
1862
1866
|
};
|
1863
1867
|
/**
|
1864
1868
|
* A stepper is used to show which step of a process a user is currently in.
|
@@ -1874,13 +1878,14 @@ type StepperProps = {
|
|
1874
1878
|
* />
|
1875
1879
|
* ```
|
1876
1880
|
**/
|
1877
|
-
declare const Stepper: ({ onClick, steps, activeStep: activeStepAsStringOrNumber, title,
|
1881
|
+
declare const Stepper: ({ onClick, steps, activeStep: activeStepAsStringOrNumber, title, variant, }: StepperProps) => React__default.JSX.Element;
|
1878
1882
|
|
1879
1883
|
type StepperStepProps = {
|
1880
1884
|
children: React__default.ReactNode;
|
1881
1885
|
stepNumber: number;
|
1886
|
+
variant: "base" | "accent";
|
1882
1887
|
};
|
1883
|
-
declare const StepperStep: ({ children, stepNumber }: StepperStepProps) => React__default.JSX.Element;
|
1888
|
+
declare const StepperStep: ({ children, stepNumber, variant, }: StepperStepProps) => React__default.JSX.Element;
|
1884
1889
|
|
1885
1890
|
type TabsProps = Exclude<TabsProps$1, "colorScheme" | "variant" | "orientation" | "size"> & {
|
1886
1891
|
colorScheme: "base" | "accent";
|
@@ -2278,19 +2283,6 @@ declare const theme: {
|
|
2278
2283
|
};
|
2279
2284
|
} | undefined;
|
2280
2285
|
variants?: {
|
2281
|
-
control: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2282
|
-
_hover: {
|
2283
|
-
backgroundColor: string;
|
2284
|
-
};
|
2285
|
-
_active: {
|
2286
|
-
backgroundColor: string;
|
2287
|
-
};
|
2288
|
-
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
2289
|
-
_focusVisible: _chakra_ui_styled_system.SystemStyleObject;
|
2290
|
-
"&[data-focus]:not([data-focus-visible])": _chakra_ui_styled_system.SystemStyleObject;
|
2291
|
-
backgroundColor: string;
|
2292
|
-
color: string;
|
2293
|
-
};
|
2294
2286
|
primary: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2295
2287
|
_hover: {
|
2296
2288
|
backgroundColor: string;
|
@@ -2321,7 +2313,7 @@ declare const theme: {
|
|
2321
2313
|
backgroundColor: string;
|
2322
2314
|
};
|
2323
2315
|
};
|
2324
|
-
|
2316
|
+
tertiary: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2325
2317
|
_hover: {
|
2326
2318
|
boxShadow: string;
|
2327
2319
|
};
|
@@ -2371,7 +2363,7 @@ declare const theme: {
|
|
2371
2363
|
} | undefined;
|
2372
2364
|
defaultProps?: {
|
2373
2365
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
2374
|
-
variant?: "
|
2366
|
+
variant?: "primary" | "secondary" | "ghost" | "floating" | "tertiary" | undefined;
|
2375
2367
|
colorScheme?: string | undefined;
|
2376
2368
|
} | undefined;
|
2377
2369
|
};
|
@@ -3445,7 +3437,7 @@ declare const theme: {
|
|
3445
3437
|
} | undefined;
|
3446
3438
|
defaultProps?: {
|
3447
3439
|
size?: string | number | undefined;
|
3448
|
-
variant?: "base" | "green" | "light" | "
|
3440
|
+
variant?: "base" | "green" | "light" | "dark" | "accent" | "brand" | undefined;
|
3449
3441
|
colorScheme?: string | undefined;
|
3450
3442
|
} | undefined;
|
3451
3443
|
parts: ("text" | "container" | "icon")[];
|
@@ -4540,7 +4532,6 @@ declare const theme: {
|
|
4540
4532
|
Stepper: {
|
4541
4533
|
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4542
4534
|
root: {
|
4543
|
-
backgroundColor: string;
|
4544
4535
|
display: string;
|
4545
4536
|
alignItems: string;
|
4546
4537
|
justifyContent: ("center" | "space-between")[];
|
@@ -4559,7 +4550,6 @@ declare const theme: {
|
|
4559
4550
|
display: ("flex" | "none")[];
|
4560
4551
|
alignItems: string;
|
4561
4552
|
justifyContent: string;
|
4562
|
-
color: string;
|
4563
4553
|
};
|
4564
4554
|
backButton: {
|
4565
4555
|
borderRadius: string;
|
@@ -4576,33 +4566,10 @@ declare const theme: {
|
|
4576
4566
|
ml: number;
|
4577
4567
|
textAlign: string;
|
4578
4568
|
};
|
4579
|
-
stepCounter: {
|
4580
|
-
whiteSpace: string;
|
4581
|
-
textDecoration: string;
|
4582
|
-
};
|
4583
4569
|
stepContainer: {
|
4584
4570
|
display: string;
|
4585
4571
|
alignItems: string;
|
4586
4572
|
};
|
4587
|
-
stepButton: {
|
4588
|
-
color: string;
|
4589
|
-
display: string;
|
4590
|
-
alignItems: string;
|
4591
|
-
padding: number;
|
4592
|
-
borderRadius: string;
|
4593
|
-
};
|
4594
|
-
stepNumber: {
|
4595
|
-
borderRadius: string;
|
4596
|
-
border: string;
|
4597
|
-
borderColor: string;
|
4598
|
-
width: number;
|
4599
|
-
height: number;
|
4600
|
-
mr: number;
|
4601
|
-
display: string;
|
4602
|
-
alignItems: string;
|
4603
|
-
justifyContent: string;
|
4604
|
-
fontSize: ("mobile.xs" | "desktop.xs")[];
|
4605
|
-
};
|
4606
4573
|
stepTitle: {
|
4607
4574
|
textStyle: string;
|
4608
4575
|
whiteSpace: string;
|
@@ -4614,61 +4581,20 @@ declare const theme: {
|
|
4614
4581
|
}>;
|
4615
4582
|
} | undefined;
|
4616
4583
|
variants?: {
|
4617
|
-
|
4618
|
-
|
4619
|
-
color: string;
|
4620
|
-
};
|
4621
|
-
stepButton: {
|
4622
|
-
_hover: {
|
4623
|
-
backgroundColor: string;
|
4624
|
-
};
|
4625
|
-
_focus: {
|
4626
|
-
outline: string;
|
4627
|
-
boxShadow: string;
|
4628
|
-
};
|
4629
|
-
"&:focus:not(:focus-visible)": {
|
4630
|
-
boxShadow: string;
|
4631
|
-
};
|
4632
|
-
_focusVisible: {
|
4633
|
-
outline: string;
|
4634
|
-
boxShadow: string;
|
4635
|
-
};
|
4636
|
-
_active: {
|
4637
|
-
backgroundColor: string;
|
4638
|
-
color?: undefined;
|
4639
|
-
} | {
|
4640
|
-
color: string;
|
4641
|
-
backgroundColor: string;
|
4642
|
-
};
|
4643
|
-
};
|
4644
|
-
};
|
4645
|
-
active: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4646
|
-
stepContainer: {
|
4647
|
-
color: string;
|
4648
|
-
};
|
4649
|
-
stepButton: {
|
4650
|
-
pointerEvents: string;
|
4651
|
-
};
|
4652
|
-
stepNumber: {
|
4584
|
+
base: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4585
|
+
root: {
|
4653
4586
|
backgroundColor: string;
|
4654
|
-
color: string;
|
4655
|
-
};
|
4656
|
-
stepTitle: {
|
4657
|
-
fontWeight: string;
|
4658
4587
|
};
|
4659
4588
|
};
|
4660
|
-
|
4661
|
-
|
4662
|
-
|
4663
|
-
};
|
4664
|
-
stepButton: {
|
4665
|
-
pointerEvents: string;
|
4589
|
+
accent: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4590
|
+
root: {
|
4591
|
+
backgroundColor: string;
|
4666
4592
|
};
|
4667
4593
|
};
|
4668
4594
|
} | undefined;
|
4669
4595
|
defaultProps?: {
|
4670
4596
|
size?: string | number | undefined;
|
4671
|
-
variant?: "
|
4597
|
+
variant?: "base" | "accent" | undefined;
|
4672
4598
|
colorScheme?: string | undefined;
|
4673
4599
|
} | undefined;
|
4674
4600
|
parts: ("title" | "container" | "closeButton" | "root" | "innerContainer" | "backButton" | "stepCounter" | "stepContainer" | "stepButton" | "stepNumber" | "stepTitle")[];
|
@@ -7149,7 +7075,7 @@ declare const theme: {
|
|
7149
7075
|
};
|
7150
7076
|
styles: {
|
7151
7077
|
global: (props: Record<string, any> | _chakra_ui_styled_system.StyleFunctionProps) => {
|
7152
|
-
|
7078
|
+
"html, body": {
|
7153
7079
|
color: string;
|
7154
7080
|
};
|
7155
7081
|
svg: {
|