@vygruppen/spor-react 5.2.0 → 5.3.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 +11 -11
- package/CHANGELOG.md +14 -0
- package/dist/{CountryCodeSelect-IUVBFVKP.mjs → CountryCodeSelect-BITN7VNA.mjs} +1 -1
- package/dist/{chunk-HOS74XL2.mjs → chunk-55HLEY3T.mjs} +286 -61
- package/dist/index.d.mts +103 -34
- package/dist/index.d.ts +103 -34
- package/dist/index.js +327 -73
- package/dist/index.mjs +1 -1
- package/package.json +2 -1
- package/src/datepicker/DateRangePicker.tsx +6 -4
- package/src/index.tsx +1 -0
- package/src/input/InfoSelect.tsx +6 -0
- package/src/progress-indicator/ProgressDot.tsx +23 -0
- package/src/progress-indicator/ProgressIndicator.tsx +56 -0
- package/src/progress-indicator/index.tsx +1 -0
- package/src/provider/SporProvider.tsx +9 -2
- package/src/theme/components/index.ts +1 -0
- package/src/theme/components/info-select.ts +32 -3
- package/src/theme/components/listbox.ts +10 -12
- package/src/theme/components/progress-indicator.ts +45 -0
- package/src/theme/index.ts +18 -0
- package/src/theme/utils/background-utils.ts +103 -10
- package/src/theme/utils/border-utils.ts +40 -9
- package/src/theme/utils/types.ts +11 -0
package/dist/index.d.mts
CHANGED
@@ -474,7 +474,7 @@ type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue>, "onChange"
|
|
474
474
|
onChange?: (dates: {
|
475
475
|
start: DateValue | null;
|
476
476
|
end: DateValue | null;
|
477
|
-
}) => void;
|
477
|
+
} | null) => void;
|
478
478
|
};
|
479
479
|
/**
|
480
480
|
* A date range picker component.
|
@@ -944,6 +944,7 @@ type InfoSelectProps<T extends object> = {
|
|
944
944
|
disabledKeys?: string[];
|
945
945
|
/** Whether or not the input is invalid */
|
946
946
|
"aria-invalid"?: boolean;
|
947
|
+
variant?: "base" | "floating";
|
947
948
|
};
|
948
949
|
/**
|
949
950
|
* A styled select component.
|
@@ -980,7 +981,7 @@ type InfoSelectProps<T extends object> = {
|
|
980
981
|
*
|
981
982
|
* @see https://spor.vy.no/components/info-select
|
982
983
|
*/
|
983
|
-
declare function InfoSelect<T extends object>({ placeholder, width, height, onChange, value, isLabelSrOnly, defaultValue, ...props }: InfoSelectProps<T>): React__default.JSX.Element;
|
984
|
+
declare function InfoSelect<T extends object>({ placeholder, width, height, onChange, value, isLabelSrOnly, defaultValue, variant, ...props }: InfoSelectProps<T>): React__default.JSX.Element;
|
984
985
|
|
985
986
|
type InputProps = Omit<InputProps$1, "variant" | "size"> & {
|
986
987
|
/** The input's label */
|
@@ -1823,8 +1824,28 @@ type WizardPopoverProps = PopoverProps & {
|
|
1823
1824
|
*/
|
1824
1825
|
declare const WizardPopover: ({ children, triggerElement, withCloseButton, }: WizardPopoverProps) => React.JSX.Element;
|
1825
1826
|
|
1827
|
+
type ProgressIndicatorProps = {
|
1828
|
+
numberOfSteps: number;
|
1829
|
+
activeStep: number;
|
1830
|
+
};
|
1831
|
+
/**
|
1832
|
+
* A progress indicator is used to show which step of a process a user is currently in
|
1833
|
+
* to give them a sense of progress.
|
1834
|
+
*
|
1835
|
+
* You specify the active step, which starts at 1 (not 0)
|
1836
|
+
*
|
1837
|
+
* ```tsx
|
1838
|
+
* <ProgressIndicator
|
1839
|
+
* numberOfSteps={3}
|
1840
|
+
* activeStep={2}
|
1841
|
+
* />
|
1842
|
+
* ```
|
1843
|
+
*/
|
1844
|
+
declare const ProgressIndicator: ({ numberOfSteps, activeStep, }: ProgressIndicatorProps) => React__default.JSX.Element;
|
1845
|
+
|
1826
1846
|
type SporProviderProps = ChakraProviderProps & {
|
1827
1847
|
language?: Language;
|
1848
|
+
brand?: Brand;
|
1828
1849
|
};
|
1829
1850
|
/**
|
1830
1851
|
* This component is used to provide the specified theme of colors and other
|
@@ -1862,7 +1883,7 @@ type SporProviderProps = ChakraProviderProps & {
|
|
1862
1883
|
* );
|
1863
1884
|
* ```
|
1864
1885
|
*/
|
1865
|
-
declare const SporProvider: ({ theme, language, children, ...props }: SporProviderProps) => React__default.JSX.Element;
|
1886
|
+
declare const SporProvider: ({ theme, language, brand, children, ...props }: SporProviderProps) => React__default.JSX.Element;
|
1866
1887
|
|
1867
1888
|
type StepperProps = {
|
1868
1889
|
onClick: (clickedStep: number) => void;
|
@@ -1972,6 +1993,10 @@ declare const textStyles: {
|
|
1972
1993
|
/** A string of CSS that should be injected in the global CSS space */
|
1973
1994
|
declare const fontFaces: string;
|
1974
1995
|
|
1996
|
+
declare enum Brand {
|
1997
|
+
VyDigital = "VyDigital",
|
1998
|
+
VyUtvikling = "VyUtvikling"
|
1999
|
+
}
|
1975
2000
|
declare const theme: {
|
1976
2001
|
components: {
|
1977
2002
|
Accordion: {
|
@@ -3534,29 +3559,13 @@ declare const theme: {
|
|
3534
3559
|
};
|
3535
3560
|
backgroundColor: string;
|
3536
3561
|
color: string;
|
3537
|
-
} | {
|
3538
|
-
_hover: {
|
3539
|
-
boxShadow: string;
|
3540
|
-
};
|
3541
|
-
_focus: {
|
3542
|
-
boxShadow: string;
|
3543
|
-
};
|
3544
|
-
backgroundColor?: undefined;
|
3545
|
-
color: string;
|
3546
3562
|
};
|
3547
3563
|
_active: {
|
3548
3564
|
boxShadow: string;
|
3549
3565
|
backgroundColor: string;
|
3550
|
-
} | {
|
3551
|
-
boxShadow: string;
|
3552
|
-
backgroundColor?: undefined;
|
3553
3566
|
};
|
3554
3567
|
_expanded: {
|
3555
3568
|
boxShadow: string;
|
3556
|
-
backgroundColor: string;
|
3557
|
-
} | {
|
3558
|
-
boxShadow: string;
|
3559
|
-
backgroundColor?: undefined;
|
3560
3569
|
};
|
3561
3570
|
_invalid: {
|
3562
3571
|
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
@@ -3592,13 +3601,28 @@ declare const theme: {
|
|
3592
3601
|
}>;
|
3593
3602
|
} | undefined;
|
3594
3603
|
variants?: {
|
3595
|
-
|
3596
|
-
|
3597
|
-
|
3604
|
+
base: (props: _chakra_ui_styled_system.StyleFunctionProps) => {};
|
3605
|
+
floating: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
3606
|
+
button: {
|
3607
|
+
_active: {
|
3608
|
+
backgroundColor: string;
|
3609
|
+
boxShadow: string;
|
3610
|
+
};
|
3611
|
+
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
3612
|
+
_focusVisible: _chakra_ui_styled_system.SystemStyleObject;
|
3613
|
+
"&[data-focus]:not([data-focus-visible])": _chakra_ui_styled_system.SystemStyleObject;
|
3614
|
+
_hover: {
|
3615
|
+
backgroundColor: string;
|
3616
|
+
boxShadow: string;
|
3617
|
+
};
|
3618
|
+
boxShadow: string;
|
3619
|
+
backgroundColor: string;
|
3620
|
+
};
|
3621
|
+
};
|
3598
3622
|
} | undefined;
|
3599
3623
|
defaultProps?: {
|
3600
3624
|
size?: string | number | undefined;
|
3601
|
-
variant?:
|
3625
|
+
variant?: "base" | "floating" | undefined;
|
3602
3626
|
colorScheme?: string | undefined;
|
3603
3627
|
} | undefined;
|
3604
3628
|
parts: ("button" | "label" | "container" | "arrowIcon")[];
|
@@ -4053,24 +4077,18 @@ declare const theme: {
|
|
4053
4077
|
borderRadius: string;
|
4054
4078
|
color: string;
|
4055
4079
|
cursor: string;
|
4056
|
-
|
4057
|
-
backgroundColor: string;
|
4058
|
-
outline: string;
|
4059
|
-
};
|
4080
|
+
outline: string;
|
4060
4081
|
_active: {
|
4061
4082
|
backgroundColor: string;
|
4062
|
-
outline: string;
|
4063
4083
|
};
|
4064
4084
|
_focus: {
|
4065
|
-
|
4085
|
+
backgroundColor: string;
|
4086
|
+
};
|
4087
|
+
_hover: {
|
4066
4088
|
backgroundColor: string;
|
4067
4089
|
};
|
4068
4090
|
_selected: {
|
4069
|
-
color: string;
|
4070
4091
|
backgroundColor: string;
|
4071
|
-
} | {
|
4072
|
-
color: string;
|
4073
|
-
backgroundColor?: undefined;
|
4074
4092
|
};
|
4075
4093
|
};
|
4076
4094
|
label: {};
|
@@ -4334,6 +4352,45 @@ declare const theme: {
|
|
4334
4352
|
} | undefined;
|
4335
4353
|
parts: ("body" | "footer" | "header" | "content" | "closeButton" | "arrow" | "popper")[];
|
4336
4354
|
};
|
4355
|
+
ProgressIndicator: {
|
4356
|
+
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4357
|
+
root: {
|
4358
|
+
width: string;
|
4359
|
+
};
|
4360
|
+
container: {
|
4361
|
+
display: string;
|
4362
|
+
alignItems: string;
|
4363
|
+
gap: number;
|
4364
|
+
justifyContent: ("center" | "space-between")[];
|
4365
|
+
};
|
4366
|
+
progressDot: {
|
4367
|
+
height: number;
|
4368
|
+
width: number;
|
4369
|
+
"&[aria-current='step']": {
|
4370
|
+
circle: {
|
4371
|
+
fill: string;
|
4372
|
+
};
|
4373
|
+
};
|
4374
|
+
circle: {
|
4375
|
+
fill: string;
|
4376
|
+
};
|
4377
|
+
};
|
4378
|
+
}) | undefined;
|
4379
|
+
sizes?: {
|
4380
|
+
[key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
|
4381
|
+
keys: ("container" | "root" | "progressDot")[];
|
4382
|
+
}>;
|
4383
|
+
} | undefined;
|
4384
|
+
variants?: {
|
4385
|
+
base: (props: _chakra_ui_styled_system.StyleFunctionProps) => {};
|
4386
|
+
} | undefined;
|
4387
|
+
defaultProps?: {
|
4388
|
+
size?: string | number | undefined;
|
4389
|
+
variant?: "base" | undefined;
|
4390
|
+
colorScheme?: string | undefined;
|
4391
|
+
} | undefined;
|
4392
|
+
parts: ("container" | "root" | "progressDot")[];
|
4393
|
+
};
|
4337
4394
|
Radio: {
|
4338
4395
|
baseStyle?: {
|
4339
4396
|
container: {
|
@@ -7165,6 +7222,18 @@ declare const theme: {
|
|
7165
7222
|
};
|
7166
7223
|
direction: "ltr";
|
7167
7224
|
};
|
7225
|
+
declare const brandTheme: {
|
7226
|
+
VyDigital: {
|
7227
|
+
colors: {
|
7228
|
+
accent: string;
|
7229
|
+
};
|
7230
|
+
};
|
7231
|
+
VyUtvikling: {
|
7232
|
+
colors: {
|
7233
|
+
accent: string;
|
7234
|
+
};
|
7235
|
+
};
|
7236
|
+
};
|
7168
7237
|
|
7169
7238
|
type BaseToastProps = {
|
7170
7239
|
children: React__default.ReactNode;
|
@@ -7302,4 +7371,4 @@ type TextProps = Omit<TextProps$1, "textStyle"> & {
|
|
7302
7371
|
*/
|
7303
7372
|
declare const Text: _chakra_ui_system_dist_system_types.ComponentWithAs<"p", TextProps>;
|
7304
7373
|
|
7305
|
-
export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, Combobox, ComboboxProps, ContentLoader, ContentLoaderProps, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, NumericStepper, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, PopoverWizardProps, ProgressBar, ProgressLoader, Radio, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SimpleDrawer, SimpleDrawerProps, SimplePopover, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoProps, WizardPopover, WizardPopoverProps, createTexts, fontFaces, theme, useToast, useTranslation };
|
7374
|
+
export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, Combobox, ComboboxProps, ContentLoader, ContentLoaderProps, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, NumericStepper, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, PopoverWizardProps, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SimpleDrawer, SimpleDrawerProps, SimplePopover, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoProps, WizardPopover, WizardPopoverProps, brandTheme, createTexts, fontFaces, theme, useToast, useTranslation };
|
package/dist/index.d.ts
CHANGED
@@ -474,7 +474,7 @@ type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue>, "onChange"
|
|
474
474
|
onChange?: (dates: {
|
475
475
|
start: DateValue | null;
|
476
476
|
end: DateValue | null;
|
477
|
-
}) => void;
|
477
|
+
} | null) => void;
|
478
478
|
};
|
479
479
|
/**
|
480
480
|
* A date range picker component.
|
@@ -944,6 +944,7 @@ type InfoSelectProps<T extends object> = {
|
|
944
944
|
disabledKeys?: string[];
|
945
945
|
/** Whether or not the input is invalid */
|
946
946
|
"aria-invalid"?: boolean;
|
947
|
+
variant?: "base" | "floating";
|
947
948
|
};
|
948
949
|
/**
|
949
950
|
* A styled select component.
|
@@ -980,7 +981,7 @@ type InfoSelectProps<T extends object> = {
|
|
980
981
|
*
|
981
982
|
* @see https://spor.vy.no/components/info-select
|
982
983
|
*/
|
983
|
-
declare function InfoSelect<T extends object>({ placeholder, width, height, onChange, value, isLabelSrOnly, defaultValue, ...props }: InfoSelectProps<T>): React__default.JSX.Element;
|
984
|
+
declare function InfoSelect<T extends object>({ placeholder, width, height, onChange, value, isLabelSrOnly, defaultValue, variant, ...props }: InfoSelectProps<T>): React__default.JSX.Element;
|
984
985
|
|
985
986
|
type InputProps = Omit<InputProps$1, "variant" | "size"> & {
|
986
987
|
/** The input's label */
|
@@ -1823,8 +1824,28 @@ type WizardPopoverProps = PopoverProps & {
|
|
1823
1824
|
*/
|
1824
1825
|
declare const WizardPopover: ({ children, triggerElement, withCloseButton, }: WizardPopoverProps) => React.JSX.Element;
|
1825
1826
|
|
1827
|
+
type ProgressIndicatorProps = {
|
1828
|
+
numberOfSteps: number;
|
1829
|
+
activeStep: number;
|
1830
|
+
};
|
1831
|
+
/**
|
1832
|
+
* A progress indicator is used to show which step of a process a user is currently in
|
1833
|
+
* to give them a sense of progress.
|
1834
|
+
*
|
1835
|
+
* You specify the active step, which starts at 1 (not 0)
|
1836
|
+
*
|
1837
|
+
* ```tsx
|
1838
|
+
* <ProgressIndicator
|
1839
|
+
* numberOfSteps={3}
|
1840
|
+
* activeStep={2}
|
1841
|
+
* />
|
1842
|
+
* ```
|
1843
|
+
*/
|
1844
|
+
declare const ProgressIndicator: ({ numberOfSteps, activeStep, }: ProgressIndicatorProps) => React__default.JSX.Element;
|
1845
|
+
|
1826
1846
|
type SporProviderProps = ChakraProviderProps & {
|
1827
1847
|
language?: Language;
|
1848
|
+
brand?: Brand;
|
1828
1849
|
};
|
1829
1850
|
/**
|
1830
1851
|
* This component is used to provide the specified theme of colors and other
|
@@ -1862,7 +1883,7 @@ type SporProviderProps = ChakraProviderProps & {
|
|
1862
1883
|
* );
|
1863
1884
|
* ```
|
1864
1885
|
*/
|
1865
|
-
declare const SporProvider: ({ theme, language, children, ...props }: SporProviderProps) => React__default.JSX.Element;
|
1886
|
+
declare const SporProvider: ({ theme, language, brand, children, ...props }: SporProviderProps) => React__default.JSX.Element;
|
1866
1887
|
|
1867
1888
|
type StepperProps = {
|
1868
1889
|
onClick: (clickedStep: number) => void;
|
@@ -1972,6 +1993,10 @@ declare const textStyles: {
|
|
1972
1993
|
/** A string of CSS that should be injected in the global CSS space */
|
1973
1994
|
declare const fontFaces: string;
|
1974
1995
|
|
1996
|
+
declare enum Brand {
|
1997
|
+
VyDigital = "VyDigital",
|
1998
|
+
VyUtvikling = "VyUtvikling"
|
1999
|
+
}
|
1975
2000
|
declare const theme: {
|
1976
2001
|
components: {
|
1977
2002
|
Accordion: {
|
@@ -3534,29 +3559,13 @@ declare const theme: {
|
|
3534
3559
|
};
|
3535
3560
|
backgroundColor: string;
|
3536
3561
|
color: string;
|
3537
|
-
} | {
|
3538
|
-
_hover: {
|
3539
|
-
boxShadow: string;
|
3540
|
-
};
|
3541
|
-
_focus: {
|
3542
|
-
boxShadow: string;
|
3543
|
-
};
|
3544
|
-
backgroundColor?: undefined;
|
3545
|
-
color: string;
|
3546
3562
|
};
|
3547
3563
|
_active: {
|
3548
3564
|
boxShadow: string;
|
3549
3565
|
backgroundColor: string;
|
3550
|
-
} | {
|
3551
|
-
boxShadow: string;
|
3552
|
-
backgroundColor?: undefined;
|
3553
3566
|
};
|
3554
3567
|
_expanded: {
|
3555
3568
|
boxShadow: string;
|
3556
|
-
backgroundColor: string;
|
3557
|
-
} | {
|
3558
|
-
boxShadow: string;
|
3559
|
-
backgroundColor?: undefined;
|
3560
3569
|
};
|
3561
3570
|
_invalid: {
|
3562
3571
|
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
@@ -3592,13 +3601,28 @@ declare const theme: {
|
|
3592
3601
|
}>;
|
3593
3602
|
} | undefined;
|
3594
3603
|
variants?: {
|
3595
|
-
|
3596
|
-
|
3597
|
-
|
3604
|
+
base: (props: _chakra_ui_styled_system.StyleFunctionProps) => {};
|
3605
|
+
floating: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
3606
|
+
button: {
|
3607
|
+
_active: {
|
3608
|
+
backgroundColor: string;
|
3609
|
+
boxShadow: string;
|
3610
|
+
};
|
3611
|
+
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
3612
|
+
_focusVisible: _chakra_ui_styled_system.SystemStyleObject;
|
3613
|
+
"&[data-focus]:not([data-focus-visible])": _chakra_ui_styled_system.SystemStyleObject;
|
3614
|
+
_hover: {
|
3615
|
+
backgroundColor: string;
|
3616
|
+
boxShadow: string;
|
3617
|
+
};
|
3618
|
+
boxShadow: string;
|
3619
|
+
backgroundColor: string;
|
3620
|
+
};
|
3621
|
+
};
|
3598
3622
|
} | undefined;
|
3599
3623
|
defaultProps?: {
|
3600
3624
|
size?: string | number | undefined;
|
3601
|
-
variant?:
|
3625
|
+
variant?: "base" | "floating" | undefined;
|
3602
3626
|
colorScheme?: string | undefined;
|
3603
3627
|
} | undefined;
|
3604
3628
|
parts: ("button" | "label" | "container" | "arrowIcon")[];
|
@@ -4053,24 +4077,18 @@ declare const theme: {
|
|
4053
4077
|
borderRadius: string;
|
4054
4078
|
color: string;
|
4055
4079
|
cursor: string;
|
4056
|
-
|
4057
|
-
backgroundColor: string;
|
4058
|
-
outline: string;
|
4059
|
-
};
|
4080
|
+
outline: string;
|
4060
4081
|
_active: {
|
4061
4082
|
backgroundColor: string;
|
4062
|
-
outline: string;
|
4063
4083
|
};
|
4064
4084
|
_focus: {
|
4065
|
-
|
4085
|
+
backgroundColor: string;
|
4086
|
+
};
|
4087
|
+
_hover: {
|
4066
4088
|
backgroundColor: string;
|
4067
4089
|
};
|
4068
4090
|
_selected: {
|
4069
|
-
color: string;
|
4070
4091
|
backgroundColor: string;
|
4071
|
-
} | {
|
4072
|
-
color: string;
|
4073
|
-
backgroundColor?: undefined;
|
4074
4092
|
};
|
4075
4093
|
};
|
4076
4094
|
label: {};
|
@@ -4334,6 +4352,45 @@ declare const theme: {
|
|
4334
4352
|
} | undefined;
|
4335
4353
|
parts: ("body" | "footer" | "header" | "content" | "closeButton" | "arrow" | "popper")[];
|
4336
4354
|
};
|
4355
|
+
ProgressIndicator: {
|
4356
|
+
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
4357
|
+
root: {
|
4358
|
+
width: string;
|
4359
|
+
};
|
4360
|
+
container: {
|
4361
|
+
display: string;
|
4362
|
+
alignItems: string;
|
4363
|
+
gap: number;
|
4364
|
+
justifyContent: ("center" | "space-between")[];
|
4365
|
+
};
|
4366
|
+
progressDot: {
|
4367
|
+
height: number;
|
4368
|
+
width: number;
|
4369
|
+
"&[aria-current='step']": {
|
4370
|
+
circle: {
|
4371
|
+
fill: string;
|
4372
|
+
};
|
4373
|
+
};
|
4374
|
+
circle: {
|
4375
|
+
fill: string;
|
4376
|
+
};
|
4377
|
+
};
|
4378
|
+
}) | undefined;
|
4379
|
+
sizes?: {
|
4380
|
+
[key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
|
4381
|
+
keys: ("container" | "root" | "progressDot")[];
|
4382
|
+
}>;
|
4383
|
+
} | undefined;
|
4384
|
+
variants?: {
|
4385
|
+
base: (props: _chakra_ui_styled_system.StyleFunctionProps) => {};
|
4386
|
+
} | undefined;
|
4387
|
+
defaultProps?: {
|
4388
|
+
size?: string | number | undefined;
|
4389
|
+
variant?: "base" | undefined;
|
4390
|
+
colorScheme?: string | undefined;
|
4391
|
+
} | undefined;
|
4392
|
+
parts: ("container" | "root" | "progressDot")[];
|
4393
|
+
};
|
4337
4394
|
Radio: {
|
4338
4395
|
baseStyle?: {
|
4339
4396
|
container: {
|
@@ -7165,6 +7222,18 @@ declare const theme: {
|
|
7165
7222
|
};
|
7166
7223
|
direction: "ltr";
|
7167
7224
|
};
|
7225
|
+
declare const brandTheme: {
|
7226
|
+
VyDigital: {
|
7227
|
+
colors: {
|
7228
|
+
accent: string;
|
7229
|
+
};
|
7230
|
+
};
|
7231
|
+
VyUtvikling: {
|
7232
|
+
colors: {
|
7233
|
+
accent: string;
|
7234
|
+
};
|
7235
|
+
};
|
7236
|
+
};
|
7168
7237
|
|
7169
7238
|
type BaseToastProps = {
|
7170
7239
|
children: React__default.ReactNode;
|
@@ -7302,4 +7371,4 @@ type TextProps = Omit<TextProps$1, "textStyle"> & {
|
|
7302
7371
|
*/
|
7303
7372
|
declare const Text: _chakra_ui_system_dist_system_types.ComponentWithAs<"p", TextProps>;
|
7304
7373
|
|
7305
|
-
export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, Combobox, ComboboxProps, ContentLoader, ContentLoaderProps, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, NumericStepper, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, PopoverWizardProps, ProgressBar, ProgressLoader, Radio, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SimpleDrawer, SimpleDrawerProps, SimplePopover, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoProps, WizardPopover, WizardPopoverProps, createTexts, fontFaces, theme, useToast, useTranslation };
|
7374
|
+
export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, Combobox, ComboboxProps, ContentLoader, ContentLoaderProps, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, NumericStepper, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, PopoverWizardProps, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SimpleDrawer, SimpleDrawerProps, SimplePopover, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoProps, WizardPopover, WizardPopoverProps, brandTheme, createTexts, fontFaces, theme, useToast, useTranslation };
|