@vygruppen/spor-react 5.1.1 → 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 +24 -0
- package/dist/{CountryCodeSelect-ZM527OHZ.mjs → CountryCodeSelect-BITN7VNA.mjs} +1 -1
- package/dist/{chunk-J6I7IHRU.mjs → chunk-55HLEY3T.mjs} +584 -116
- package/dist/index.d.mts +120 -46
- package/dist/index.d.ts +120 -46
- package/dist/index.js +823 -389
- package/dist/index.mjs +1 -1
- package/package.json +2 -1
- package/src/datepicker/DatePicker.tsx +2 -1
- package/src/datepicker/DateRangePicker.tsx +10 -1
- package/src/datepicker/TimePicker.tsx +1 -1
- package/src/index.tsx +1 -0
- package/src/input/InfoSelect.tsx +6 -0
- package/src/input/NumericStepper.tsx +2 -2
- 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/stepper/StepperStep.tsx +2 -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
@@ -16,6 +16,7 @@ import { useDateFieldState, useDatePickerState, useOverlayTriggerState, Item, us
|
|
16
16
|
export { Item, Section } from 'react-stately';
|
17
17
|
import { useSwipeable } from 'react-swipeable';
|
18
18
|
import { Global, keyframes } from '@emotion/react';
|
19
|
+
import deepmerge from 'deepmerge';
|
19
20
|
import { cssVar as cssVar$1, calc as calc$1, mode, getColor, anatomy as anatomy$1, orient, transparentize, generateStripe, randomColor, isDark } from '@chakra-ui/theme-tools';
|
20
21
|
|
21
22
|
var __create = Object.create;
|
@@ -899,8 +900,8 @@ function useTranslation() {
|
|
899
900
|
};
|
900
901
|
return { t: t2, language };
|
901
902
|
}
|
902
|
-
function createTexts(
|
903
|
-
return
|
903
|
+
function createTexts(texts25) {
|
904
|
+
return texts25;
|
904
905
|
}
|
905
906
|
var hydrating = true;
|
906
907
|
function useHydrated() {
|
@@ -2932,6 +2933,7 @@ function InfoSelect({
|
|
2932
2933
|
value,
|
2933
2934
|
isLabelSrOnly,
|
2934
2935
|
defaultValue,
|
2936
|
+
variant = "base",
|
2935
2937
|
...props
|
2936
2938
|
}) {
|
2937
2939
|
const renamedProps = {
|
@@ -2948,9 +2950,12 @@ function InfoSelect({
|
|
2948
2950
|
state2,
|
2949
2951
|
triggerRef
|
2950
2952
|
);
|
2953
|
+
const stateStyle = "completed";
|
2951
2954
|
const styles3 = useMultiStyleConfig("InfoSelect", {
|
2952
2955
|
isOpen: state2.isOpen,
|
2953
|
-
isLabelSrOnly
|
2956
|
+
isLabelSrOnly,
|
2957
|
+
variant,
|
2958
|
+
stateStyle
|
2954
2959
|
});
|
2955
2960
|
const { buttonProps } = useButton(triggerProps, triggerRef);
|
2956
2961
|
const { t: t2 } = useTranslation();
|
@@ -3121,7 +3126,7 @@ function NumericStepper({
|
|
3121
3126
|
return /* @__PURE__ */ React69__default.createElement(Flex, { alignItems: "center", ...boxProps }, /* @__PURE__ */ React69__default.createElement(
|
3122
3127
|
VerySmallButton,
|
3123
3128
|
{
|
3124
|
-
icon: /* @__PURE__ */ React69__default.createElement(SubtractIcon, {
|
3129
|
+
icon: /* @__PURE__ */ React69__default.createElement(SubtractIcon, { stepLabel: clampedStepSize }),
|
3125
3130
|
"aria-label": t2(texts12.decrementButtonAriaLabel(clampedStepSize)),
|
3126
3131
|
onClick: () => onChange(Math.max(value - clampedStepSize, minValue)),
|
3127
3132
|
visibility: value <= minValue ? "hidden" : "visible",
|
@@ -3196,7 +3201,7 @@ function NumericStepper({
|
|
3196
3201
|
), /* @__PURE__ */ React69__default.createElement(
|
3197
3202
|
VerySmallButton,
|
3198
3203
|
{
|
3199
|
-
icon: /* @__PURE__ */ React69__default.createElement(AddIcon, {
|
3204
|
+
icon: /* @__PURE__ */ React69__default.createElement(AddIcon, { stepLabel: clampedStepSize }),
|
3200
3205
|
"aria-label": t2(texts12.incrementButtonAriaLabel(clampedStepSize)),
|
3201
3206
|
onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
|
3202
3207
|
visibility: value >= maxValue ? "hidden" : "visible",
|
@@ -3418,7 +3423,7 @@ var texts14 = createTexts({
|
|
3418
3423
|
sv: "Telefonnummer"
|
3419
3424
|
}
|
3420
3425
|
});
|
3421
|
-
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-
|
3426
|
+
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-BITN7VNA.mjs'));
|
3422
3427
|
var Radio = forwardRef((props, ref) => {
|
3423
3428
|
return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
|
3424
3429
|
});
|
@@ -4158,13 +4163,60 @@ var WizardPopover = ({
|
|
4158
4163
|
}) => {
|
4159
4164
|
return /* @__PURE__ */ React69.createElement(DarkMode, null, /* @__PURE__ */ React69.createElement(Popover, { size: "lg" }, /* @__PURE__ */ React69.createElement(PopoverTrigger, null, triggerElement), /* @__PURE__ */ React69.createElement(PopoverContent, null, /* @__PURE__ */ React69.createElement(PopoverArrow, null), withCloseButton && /* @__PURE__ */ React69.createElement(PopoverCloseButton, null), /* @__PURE__ */ React69.createElement(PopoverWizardBody, null, children))));
|
4160
4165
|
};
|
4166
|
+
var ProgressDot = ({ isActive }) => {
|
4167
|
+
const style = useMultiStyleConfig("ProgressIndicator");
|
4168
|
+
return /* @__PURE__ */ React69__default.createElement(
|
4169
|
+
Box,
|
4170
|
+
{
|
4171
|
+
as: "svg",
|
4172
|
+
display: "block",
|
4173
|
+
__css: style.progressDot,
|
4174
|
+
xmlns: "http://www.w3.org/2000/svg",
|
4175
|
+
viewBox: "0 0 100 100",
|
4176
|
+
"aria-current": isActive ? "step" : void 0
|
4177
|
+
},
|
4178
|
+
/* @__PURE__ */ React69__default.createElement(Box, { as: "circle", cx: "50", cy: "50", r: "50" })
|
4179
|
+
);
|
4180
|
+
};
|
4181
|
+
|
4182
|
+
// src/progress-indicator/ProgressIndicator.tsx
|
4183
|
+
var ProgressIndicator = ({
|
4184
|
+
numberOfSteps,
|
4185
|
+
activeStep
|
4186
|
+
}) => {
|
4187
|
+
const { t: t2 } = useTranslation();
|
4188
|
+
const style = useMultiStyleConfig("ProgressIndicator");
|
4189
|
+
return /* @__PURE__ */ React69__default.createElement(
|
4190
|
+
Box,
|
4191
|
+
{
|
4192
|
+
__css: style.root,
|
4193
|
+
role: "progressbar",
|
4194
|
+
"aria-valuemin": 1,
|
4195
|
+
"aria-valuemax": numberOfSteps,
|
4196
|
+
"aria-valuenow": activeStep,
|
4197
|
+
"aria-valuetext": t2(texts21.stepsOf(activeStep, numberOfSteps))
|
4198
|
+
},
|
4199
|
+
/* @__PURE__ */ React69__default.createElement(Box, { __css: style.container }, Array.from({ length: numberOfSteps }, (_, i) => /* @__PURE__ */ React69__default.createElement(ProgressDot, { "aria-value": i + 1, isActive: activeStep === i + 1 })))
|
4200
|
+
);
|
4201
|
+
};
|
4202
|
+
var texts21 = createTexts({
|
4203
|
+
stepsOf: (activeStep, numberOfSteps) => ({
|
4204
|
+
nb: `Steg ${activeStep} av ${numberOfSteps}`,
|
4205
|
+
nn: `Steg ${activeStep} av ${numberOfSteps}`,
|
4206
|
+
sv: `Steg ${activeStep} av ${numberOfSteps}`,
|
4207
|
+
en: `Step ${activeStep} of ${numberOfSteps}`
|
4208
|
+
})
|
4209
|
+
});
|
4161
4210
|
var SporProvider = ({
|
4162
4211
|
theme: theme3 = theme,
|
4163
4212
|
language = "nb" /* NorwegianBokmal */,
|
4213
|
+
brand = "VyDigital" /* VyDigital */,
|
4164
4214
|
children,
|
4165
4215
|
...props
|
4166
4216
|
}) => {
|
4167
|
-
|
4217
|
+
const brandCustomizations = brandTheme[brand] ?? {};
|
4218
|
+
const extendedTheme = deepmerge(theme3, brandCustomizations);
|
4219
|
+
return /* @__PURE__ */ React69__default.createElement(LanguageProvider, { language }, /* @__PURE__ */ React69__default.createElement(ChakraProvider, { theme: extendedTheme, ...props }, /* @__PURE__ */ React69__default.createElement(Global, { styles: fontFaces }), children));
|
4168
4220
|
};
|
4169
4221
|
var StepperContext = React69__default.createContext(null);
|
4170
4222
|
var StepperProvider = ({
|
@@ -4216,7 +4268,7 @@ var Stepper = ({
|
|
4216
4268
|
/* @__PURE__ */ React69__default.createElement(Box, { __css: style.container }, /* @__PURE__ */ React69__default.createElement(Box, { __css: style.innerContainer }, /* @__PURE__ */ React69__default.createElement(HStack, null, activeStep > 1 && /* @__PURE__ */ React69__default.createElement(
|
4217
4269
|
IconButton,
|
4218
4270
|
{
|
4219
|
-
"aria-label": t2(
|
4271
|
+
"aria-label": t2(texts22.back),
|
4220
4272
|
icon: /* @__PURE__ */ React69__default.createElement(DropdownLeftFill24Icon, null),
|
4221
4273
|
variant: "ghost",
|
4222
4274
|
size: "sm",
|
@@ -4226,7 +4278,7 @@ var Stepper = ({
|
|
4226
4278
|
), /* @__PURE__ */ React69__default.createElement(
|
4227
4279
|
SimplePopover,
|
4228
4280
|
{
|
4229
|
-
triggerElement: /* @__PURE__ */ React69__default.createElement(Box, { as: "button", __css: style.stepCounter }, t2(
|
4281
|
+
triggerElement: /* @__PURE__ */ React69__default.createElement(Box, { as: "button", __css: style.stepCounter }, t2(texts22.stepsOf(activeStep, numberOfSteps))),
|
4230
4282
|
borderRadius: "xs"
|
4231
4283
|
},
|
4232
4284
|
steps.map((step, index) => /* @__PURE__ */ React69__default.createElement(
|
@@ -4241,7 +4293,7 @@ var Stepper = ({
|
|
4241
4293
|
)), title && /* @__PURE__ */ React69__default.createElement(Box, { as: "h3", __css: style.title }, title)), /* @__PURE__ */ React69__default.createElement(Flex, { justifyContent: "center", display: ["none", "flex"] }, steps.map((step, index) => /* @__PURE__ */ React69__default.createElement(StepperStep, { key: index, stepNumber: index + 1, variant }, step))))
|
4242
4294
|
));
|
4243
4295
|
};
|
4244
|
-
var
|
4296
|
+
var texts22 = createTexts({
|
4245
4297
|
stepsOf: (activeStep, numberOfSteps) => ({
|
4246
4298
|
nb: `Steg ${activeStep} av ${numberOfSteps}`,
|
4247
4299
|
nn: `Steg ${activeStep} av ${numberOfSteps}`,
|
@@ -4345,7 +4397,7 @@ function isObject(value) {
|
|
4345
4397
|
return value != null && (type === "object" || type === "function") && !Array.isArray(value);
|
4346
4398
|
}
|
4347
4399
|
|
4348
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4400
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-SIH73G3H.mjs
|
4349
4401
|
var transitionProperty = {
|
4350
4402
|
common: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",
|
4351
4403
|
colors: "background-color, border-color, color, fill, stroke",
|
@@ -4374,7 +4426,7 @@ var transition = {
|
|
4374
4426
|
};
|
4375
4427
|
var transition_default = transition;
|
4376
4428
|
|
4377
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4429
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-45VJLTIL.mjs
|
4378
4430
|
var zIndices = {
|
4379
4431
|
hide: -1,
|
4380
4432
|
auto: "auto",
|
@@ -4392,7 +4444,7 @@ var zIndices = {
|
|
4392
4444
|
};
|
4393
4445
|
var z_index_default = zIndices;
|
4394
4446
|
|
4395
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4447
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-B75T2J64.mjs
|
4396
4448
|
var borders = {
|
4397
4449
|
none: 0,
|
4398
4450
|
"1px": "1px solid",
|
@@ -4402,7 +4454,7 @@ var borders = {
|
|
4402
4454
|
};
|
4403
4455
|
var borders_default = borders;
|
4404
4456
|
|
4405
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4457
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-TXLFBUTF.mjs
|
4406
4458
|
var breakpoints = {
|
4407
4459
|
base: "0em",
|
4408
4460
|
sm: "30em",
|
@@ -4413,7 +4465,7 @@ var breakpoints = {
|
|
4413
4465
|
};
|
4414
4466
|
var breakpoints_default = breakpoints;
|
4415
4467
|
|
4416
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4468
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-E47HH2QS.mjs
|
4417
4469
|
var colors2 = {
|
4418
4470
|
transparent: "transparent",
|
4419
4471
|
current: "currentColor",
|
@@ -4638,7 +4690,7 @@ var colors2 = {
|
|
4638
4690
|
};
|
4639
4691
|
var colors_default = colors2;
|
4640
4692
|
|
4641
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4693
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-VIVTPWHP.mjs
|
4642
4694
|
var radii = {
|
4643
4695
|
none: "0",
|
4644
4696
|
sm: "0.125rem",
|
@@ -4652,7 +4704,7 @@ var radii = {
|
|
4652
4704
|
};
|
4653
4705
|
var radius_default = radii;
|
4654
4706
|
|
4655
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4707
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-IZUFFCXS.mjs
|
4656
4708
|
var shadows2 = {
|
4657
4709
|
xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
|
4658
4710
|
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
@@ -4668,7 +4720,7 @@ var shadows2 = {
|
|
4668
4720
|
};
|
4669
4721
|
var shadows_default = shadows2;
|
4670
4722
|
|
4671
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4723
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-HQ6WXDYV.mjs
|
4672
4724
|
var blur = {
|
4673
4725
|
none: 0,
|
4674
4726
|
sm: "4px",
|
@@ -4681,7 +4733,7 @@ var blur = {
|
|
4681
4733
|
};
|
4682
4734
|
var blur_default = blur;
|
4683
4735
|
|
4684
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4736
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-6XA2KDUD.mjs
|
4685
4737
|
var typography = {
|
4686
4738
|
letterSpacings: {
|
4687
4739
|
tighter: "-0.05em",
|
@@ -4744,7 +4796,7 @@ var typography = {
|
|
4744
4796
|
};
|
4745
4797
|
var typography_default = typography;
|
4746
4798
|
|
4747
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4799
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-V7WMN6TQ.mjs
|
4748
4800
|
var spacing = {
|
4749
4801
|
px: "1px",
|
4750
4802
|
0.5: "0.125rem",
|
@@ -4781,7 +4833,7 @@ var spacing = {
|
|
4781
4833
|
96: "24rem"
|
4782
4834
|
};
|
4783
4835
|
|
4784
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4836
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-NJCYBKFH.mjs
|
4785
4837
|
var largeSizes = {
|
4786
4838
|
max: "max-content",
|
4787
4839
|
min: "min-content",
|
@@ -4815,7 +4867,7 @@ var sizes = {
|
|
4815
4867
|
};
|
4816
4868
|
var sizes_default = sizes;
|
4817
4869
|
|
4818
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
4870
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-3WO5B3NB.mjs
|
4819
4871
|
var foundations = {
|
4820
4872
|
breakpoints: breakpoints_default,
|
4821
4873
|
zIndices: z_index_default,
|
@@ -5083,7 +5135,7 @@ var transformFunctions = {
|
|
5083
5135
|
contrast: wrap("contrast"),
|
5084
5136
|
dropShadow: wrap("drop-shadow"),
|
5085
5137
|
grayscale: wrap("grayscale"),
|
5086
|
-
hueRotate: wrap("hue-rotate"),
|
5138
|
+
hueRotate: (value) => wrap("hue-rotate")(transformFunctions.degree(value)),
|
5087
5139
|
invert: wrap("invert"),
|
5088
5140
|
saturate: wrap("saturate"),
|
5089
5141
|
sepia: wrap("sepia"),
|
@@ -5316,7 +5368,7 @@ var filter = {
|
|
5316
5368
|
blur: t.blur("--chakra-blur"),
|
5317
5369
|
brightness: t.propT("--chakra-brightness", transformFunctions.brightness),
|
5318
5370
|
contrast: t.propT("--chakra-contrast", transformFunctions.contrast),
|
5319
|
-
hueRotate: t.
|
5371
|
+
hueRotate: t.propT("--chakra-hue-rotate", transformFunctions.hueRotate),
|
5320
5372
|
invert: t.propT("--chakra-invert", transformFunctions.invert),
|
5321
5373
|
saturate: t.propT("--chakra-saturate", transformFunctions.saturate),
|
5322
5374
|
dropShadow: t.propT("--chakra-drop-shadow", transformFunctions.dropShadow),
|
@@ -5327,7 +5379,10 @@ var filter = {
|
|
5327
5379
|
transformFunctions.brightness
|
5328
5380
|
),
|
5329
5381
|
backdropContrast: t.propT("--chakra-backdrop-contrast", transformFunctions.contrast),
|
5330
|
-
backdropHueRotate: t.
|
5382
|
+
backdropHueRotate: t.propT(
|
5383
|
+
"--chakra-backdrop-hue-rotate",
|
5384
|
+
transformFunctions.hueRotate
|
5385
|
+
),
|
5331
5386
|
backdropInvert: t.propT("--chakra-backdrop-invert", transformFunctions.invert),
|
5332
5387
|
backdropSaturate: t.propT("--chakra-backdrop-saturate", transformFunctions.saturate)
|
5333
5388
|
};
|
@@ -5688,6 +5743,7 @@ var typography2 = {
|
|
5688
5743
|
textOverflow: "ellipsis",
|
5689
5744
|
display: "-webkit-box",
|
5690
5745
|
WebkitBoxOrient: "vertical",
|
5746
|
+
//@ts-ignore
|
5691
5747
|
WebkitLineClamp: "var(--chakra-line-clamp)"
|
5692
5748
|
},
|
5693
5749
|
property: "--chakra-line-clamp"
|
@@ -5698,6 +5754,7 @@ var scroll = {
|
|
5698
5754
|
scrollSnapAlign: true,
|
5699
5755
|
scrollSnapStop: true,
|
5700
5756
|
scrollSnapType: true,
|
5757
|
+
// scroll margin
|
5701
5758
|
scrollMargin: t.spaceT("scrollMargin"),
|
5702
5759
|
scrollMarginTop: t.spaceT("scrollMarginTop"),
|
5703
5760
|
scrollMarginBottom: t.spaceT("scrollMarginBottom"),
|
@@ -5705,6 +5762,7 @@ var scroll = {
|
|
5705
5762
|
scrollMarginRight: t.spaceT("scrollMarginRight"),
|
5706
5763
|
scrollMarginX: t.spaceT(["scrollMarginLeft", "scrollMarginRight"]),
|
5707
5764
|
scrollMarginY: t.spaceT(["scrollMarginTop", "scrollMarginBottom"]),
|
5765
|
+
// scroll padding
|
5708
5766
|
scrollPadding: t.spaceT("scrollPadding"),
|
5709
5767
|
scrollPaddingTop: t.spaceT("scrollPaddingTop"),
|
5710
5768
|
scrollPaddingBottom: t.spaceT("scrollPaddingBottom"),
|
@@ -5810,66 +5868,292 @@ var toGroup = (fn) => merge((v) => fn(v, "&"), "[role=group]", "[data-group]", "
|
|
5810
5868
|
var toPeer = (fn) => merge((v) => fn(v, "~ &"), "[data-peer]", ".peer");
|
5811
5869
|
var merge = (fn, ...selectors) => selectors.map(fn).join(", ");
|
5812
5870
|
var pseudoSelectors = {
|
5871
|
+
/**
|
5872
|
+
* Styles for CSS selector `&:hover`
|
5873
|
+
*/
|
5813
5874
|
_hover: "&:hover, &[data-hover]",
|
5875
|
+
/**
|
5876
|
+
* Styles for CSS Selector `&:active`
|
5877
|
+
*/
|
5814
5878
|
_active: "&:active, &[data-active]",
|
5879
|
+
/**
|
5880
|
+
* Styles for CSS selector `&:focus`
|
5881
|
+
*
|
5882
|
+
*/
|
5815
5883
|
_focus: "&:focus, &[data-focus]",
|
5884
|
+
/**
|
5885
|
+
* Styles for the highlighted state.
|
5886
|
+
*/
|
5816
5887
|
_highlighted: "&[data-highlighted]",
|
5888
|
+
/**
|
5889
|
+
* Styles to apply when a child of this element has received focus
|
5890
|
+
* - CSS Selector `&:focus-within`
|
5891
|
+
*/
|
5817
5892
|
_focusWithin: "&:focus-within",
|
5893
|
+
/**
|
5894
|
+
* Styles to apply when this element has received focus via tabbing
|
5895
|
+
* - CSS Selector `&:focus-visible`
|
5896
|
+
*/
|
5818
5897
|
_focusVisible: "&:focus-visible, &[data-focus-visible]",
|
5898
|
+
/**
|
5899
|
+
* Styles to apply when this element is disabled. The passed styles are applied to these CSS selectors:
|
5900
|
+
* - `&[aria-disabled=true]`
|
5901
|
+
* - `&:disabled`
|
5902
|
+
* - `&[data-disabled]`
|
5903
|
+
* - `&[disabled]`
|
5904
|
+
*/
|
5819
5905
|
_disabled: "&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",
|
5906
|
+
/**
|
5907
|
+
* Styles for CSS Selector `&:readonly`
|
5908
|
+
*/
|
5820
5909
|
_readOnly: "&[aria-readonly=true], &[readonly], &[data-readonly]",
|
5910
|
+
/**
|
5911
|
+
* Styles for CSS selector `&::before`
|
5912
|
+
*
|
5913
|
+
* NOTE:When using this, ensure the `content` is wrapped in a backtick.
|
5914
|
+
* @example
|
5915
|
+
* ```jsx
|
5916
|
+
* <Box _before={{content:`""` }}/>
|
5917
|
+
* ```
|
5918
|
+
*/
|
5821
5919
|
_before: "&::before",
|
5920
|
+
/**
|
5921
|
+
* Styles for CSS selector `&::after`
|
5922
|
+
*
|
5923
|
+
* NOTE:When using this, ensure the `content` is wrapped in a backtick.
|
5924
|
+
* @example
|
5925
|
+
* ```jsx
|
5926
|
+
* <Box _after={{content:`""` }}/>
|
5927
|
+
* ```
|
5928
|
+
*/
|
5822
5929
|
_after: "&::after",
|
5930
|
+
/**
|
5931
|
+
* Styles for CSS selector `&:empty`
|
5932
|
+
*/
|
5823
5933
|
_empty: "&:empty",
|
5934
|
+
/**
|
5935
|
+
* Styles to apply when the ARIA attribute `aria-expanded` is `true`
|
5936
|
+
* - CSS selector `&[aria-expanded=true]`
|
5937
|
+
*/
|
5824
5938
|
_expanded: "&[aria-expanded=true], &[data-expanded]",
|
5939
|
+
/**
|
5940
|
+
* Styles to apply when the ARIA attribute `aria-checked` is `true`
|
5941
|
+
* - CSS selector `&[aria-checked=true]`
|
5942
|
+
*/
|
5825
5943
|
_checked: "&[aria-checked=true], &[data-checked]",
|
5944
|
+
/**
|
5945
|
+
* Styles to apply when the ARIA attribute `aria-grabbed` is `true`
|
5946
|
+
* - CSS selector `&[aria-grabbed=true]`
|
5947
|
+
*/
|
5826
5948
|
_grabbed: "&[aria-grabbed=true], &[data-grabbed]",
|
5949
|
+
/**
|
5950
|
+
* Styles for CSS Selector `&[aria-pressed=true]`
|
5951
|
+
* Typically used to style the current "pressed" state of toggle buttons
|
5952
|
+
*/
|
5827
5953
|
_pressed: "&[aria-pressed=true], &[data-pressed]",
|
5954
|
+
/**
|
5955
|
+
* Styles to apply when the ARIA attribute `aria-invalid` is `true`
|
5956
|
+
* - CSS selector `&[aria-invalid=true]`
|
5957
|
+
*/
|
5828
5958
|
_invalid: "&[aria-invalid=true], &[data-invalid]",
|
5959
|
+
/**
|
5960
|
+
* Styles for the valid state
|
5961
|
+
* - CSS selector `&[data-valid], &[data-state=valid]`
|
5962
|
+
*/
|
5829
5963
|
_valid: "&[data-valid], &[data-state=valid]",
|
5964
|
+
/**
|
5965
|
+
* Styles for CSS Selector `&[aria-busy=true]` or `&[data-loading=true]`.
|
5966
|
+
* Useful for styling loading states
|
5967
|
+
*/
|
5830
5968
|
_loading: "&[data-loading], &[aria-busy=true]",
|
5969
|
+
/**
|
5970
|
+
* Styles to apply when the ARIA attribute `aria-selected` is `true`
|
5971
|
+
*
|
5972
|
+
* - CSS selector `&[aria-selected=true]`
|
5973
|
+
*/
|
5831
5974
|
_selected: "&[aria-selected=true], &[data-selected]",
|
5975
|
+
/**
|
5976
|
+
* Styles for CSS Selector `[hidden=true]`
|
5977
|
+
*/
|
5832
5978
|
_hidden: "&[hidden], &[data-hidden]",
|
5979
|
+
/**
|
5980
|
+
* Styles for CSS Selector `&:-webkit-autofill`
|
5981
|
+
*/
|
5833
5982
|
_autofill: "&:-webkit-autofill",
|
5983
|
+
/**
|
5984
|
+
* Styles for CSS Selector `&:nth-child(even)`
|
5985
|
+
*/
|
5834
5986
|
_even: "&:nth-of-type(even)",
|
5987
|
+
/**
|
5988
|
+
* Styles for CSS Selector `&:nth-child(odd)`
|
5989
|
+
*/
|
5835
5990
|
_odd: "&:nth-of-type(odd)",
|
5991
|
+
/**
|
5992
|
+
* Styles for CSS Selector `&:first-of-type`
|
5993
|
+
*/
|
5836
5994
|
_first: "&:first-of-type",
|
5995
|
+
/**
|
5996
|
+
* Styles for CSS selector `&::first-letter`
|
5997
|
+
*
|
5998
|
+
* NOTE: This selector is only applied for block-level elements and not preceded by an image or table.
|
5999
|
+
* @example
|
6000
|
+
* ```jsx
|
6001
|
+
* <Text _firstLetter={{ textDecoration: 'underline' }}>Once upon a time</Text>
|
6002
|
+
* ```
|
6003
|
+
*/
|
5837
6004
|
_firstLetter: "&::first-letter",
|
6005
|
+
/**
|
6006
|
+
* Styles for CSS Selector `&:last-of-type`
|
6007
|
+
*/
|
5838
6008
|
_last: "&:last-of-type",
|
6009
|
+
/**
|
6010
|
+
* Styles for CSS Selector `&:not(:first-of-type)`
|
6011
|
+
*/
|
5839
6012
|
_notFirst: "&:not(:first-of-type)",
|
6013
|
+
/**
|
6014
|
+
* Styles for CSS Selector `&:not(:last-of-type)`
|
6015
|
+
*/
|
5840
6016
|
_notLast: "&:not(:last-of-type)",
|
6017
|
+
/**
|
6018
|
+
* Styles for CSS Selector `&:visited`
|
6019
|
+
*/
|
5841
6020
|
_visited: "&:visited",
|
6021
|
+
/**
|
6022
|
+
* Used to style the active link in a navigation
|
6023
|
+
* Styles for CSS Selector `&[aria-current=page]`
|
6024
|
+
*/
|
5842
6025
|
_activeLink: "&[aria-current=page]",
|
6026
|
+
/**
|
6027
|
+
* Used to style the current step within a process
|
6028
|
+
* Styles for CSS Selector `&[aria-current=step]`
|
6029
|
+
*/
|
5843
6030
|
_activeStep: "&[aria-current=step]",
|
6031
|
+
/**
|
6032
|
+
* Styles to apply when the ARIA attribute `aria-checked` is `mixed`
|
6033
|
+
* - CSS selector `&[aria-checked=mixed]`
|
6034
|
+
*/
|
5844
6035
|
_indeterminate: "&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",
|
6036
|
+
/**
|
6037
|
+
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is hovered
|
6038
|
+
*/
|
5845
6039
|
_groupHover: toGroup(state.hover),
|
6040
|
+
/**
|
6041
|
+
* Styles to apply when a sibling element with `.peer` or `data-peer` is hovered
|
6042
|
+
*/
|
5846
6043
|
_peerHover: toPeer(state.hover),
|
6044
|
+
/**
|
6045
|
+
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is focused
|
6046
|
+
*/
|
5847
6047
|
_groupFocus: toGroup(state.focus),
|
6048
|
+
/**
|
6049
|
+
* Styles to apply when a sibling element with `.peer` or `data-peer` is focused
|
6050
|
+
*/
|
5848
6051
|
_peerFocus: toPeer(state.focus),
|
6052
|
+
/**
|
6053
|
+
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` has visible focus
|
6054
|
+
*/
|
5849
6055
|
_groupFocusVisible: toGroup(state.focusVisible),
|
6056
|
+
/**
|
6057
|
+
* Styles to apply when a sibling element with `.peer`or `data-peer` has visible focus
|
6058
|
+
*/
|
5850
6059
|
_peerFocusVisible: toPeer(state.focusVisible),
|
6060
|
+
/**
|
6061
|
+
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is active
|
6062
|
+
*/
|
5851
6063
|
_groupActive: toGroup(state.active),
|
6064
|
+
/**
|
6065
|
+
* Styles to apply when a sibling element with `.peer` or `data-peer` is active
|
6066
|
+
*/
|
5852
6067
|
_peerActive: toPeer(state.active),
|
6068
|
+
/**
|
6069
|
+
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is disabled
|
6070
|
+
*/
|
5853
6071
|
_groupDisabled: toGroup(state.disabled),
|
6072
|
+
/**
|
6073
|
+
* Styles to apply when a sibling element with `.peer` or `data-peer` is disabled
|
6074
|
+
*/
|
5854
6075
|
_peerDisabled: toPeer(state.disabled),
|
6076
|
+
/**
|
6077
|
+
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is invalid
|
6078
|
+
*/
|
5855
6079
|
_groupInvalid: toGroup(state.invalid),
|
6080
|
+
/**
|
6081
|
+
* Styles to apply when a sibling element with `.peer` or `data-peer` is invalid
|
6082
|
+
*/
|
5856
6083
|
_peerInvalid: toPeer(state.invalid),
|
6084
|
+
/**
|
6085
|
+
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is checked
|
6086
|
+
*/
|
5857
6087
|
_groupChecked: toGroup(state.checked),
|
6088
|
+
/**
|
6089
|
+
* Styles to apply when a sibling element with `.peer` or `data-peer` is checked
|
6090
|
+
*/
|
5858
6091
|
_peerChecked: toPeer(state.checked),
|
6092
|
+
/**
|
6093
|
+
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` has focus within
|
6094
|
+
*/
|
5859
6095
|
_groupFocusWithin: toGroup(state.focusWithin),
|
6096
|
+
/**
|
6097
|
+
* Styles to apply when a sibling element with `.peer` or `data-peer` has focus within
|
6098
|
+
*/
|
5860
6099
|
_peerFocusWithin: toPeer(state.focusWithin),
|
6100
|
+
/**
|
6101
|
+
* Styles to apply when a sibling element with `.peer` or `data-peer` has placeholder shown
|
6102
|
+
*/
|
5861
6103
|
_peerPlaceholderShown: toPeer(state.placeholderShown),
|
6104
|
+
/**
|
6105
|
+
* Styles for CSS Selector `&::placeholder`.
|
6106
|
+
*/
|
5862
6107
|
_placeholder: "&::placeholder",
|
6108
|
+
/**
|
6109
|
+
* Styles for CSS Selector `&:placeholder-shown`.
|
6110
|
+
*/
|
5863
6111
|
_placeholderShown: "&:placeholder-shown",
|
6112
|
+
/**
|
6113
|
+
* Styles for CSS Selector `&:fullscreen`.
|
6114
|
+
*/
|
5864
6115
|
_fullScreen: "&:fullscreen",
|
6116
|
+
/**
|
6117
|
+
* Styles for CSS Selector `&::selection`
|
6118
|
+
*/
|
5865
6119
|
_selection: "&::selection",
|
6120
|
+
/**
|
6121
|
+
* Styles for CSS Selector `[dir=rtl] &`
|
6122
|
+
* It is applied when a parent element or this element has `dir="rtl"`
|
6123
|
+
*/
|
5866
6124
|
_rtl: "[dir=rtl] &, &[dir=rtl]",
|
6125
|
+
/**
|
6126
|
+
* Styles for CSS Selector `[dir=ltr] &`
|
6127
|
+
* It is applied when a parent element or this element has `dir="ltr"`
|
6128
|
+
*/
|
5867
6129
|
_ltr: "[dir=ltr] &, &[dir=ltr]",
|
6130
|
+
/**
|
6131
|
+
* Styles for CSS Selector `@media (prefers-color-scheme: dark)`
|
6132
|
+
* It is used when the user has requested the system use a light or dark color theme.
|
6133
|
+
*/
|
5868
6134
|
_mediaDark: "@media (prefers-color-scheme: dark)",
|
6135
|
+
/**
|
6136
|
+
* Styles for CSS Selector `@media (prefers-reduced-motion: reduce)`
|
6137
|
+
* It is used when the user has requested the system to reduce the amount of animations.
|
6138
|
+
*/
|
5869
6139
|
_mediaReduceMotion: "@media (prefers-reduced-motion: reduce)",
|
6140
|
+
/**
|
6141
|
+
* Styles for when `data-theme` is applied to any parent of
|
6142
|
+
* this component or element.
|
6143
|
+
*/
|
5870
6144
|
_dark: ".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",
|
6145
|
+
/**
|
6146
|
+
* Styles for when `data-theme` is applied to any parent of
|
6147
|
+
* this component or element.
|
6148
|
+
*/
|
5871
6149
|
_light: ".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",
|
6150
|
+
/**
|
6151
|
+
* Styles for the CSS Selector `&[data-orientation=horizontal]`
|
6152
|
+
*/
|
5872
6153
|
_horizontal: "&[data-orientation=horizontal]",
|
6154
|
+
/**
|
6155
|
+
* Styles for the CSS Selector `&[data-orientation=vertical]`
|
6156
|
+
*/
|
5873
6157
|
_vertical: "&[data-orientation=vertical]"
|
5874
6158
|
};
|
5875
6159
|
var pseudoPropNames = Object.keys(
|
@@ -5903,21 +6187,21 @@ Object.assign({}, space, layout, flexbox, grid, position);
|
|
5903
6187
|
function defineStyle(styles3) {
|
5904
6188
|
return styles3;
|
5905
6189
|
}
|
5906
|
-
function defineStyleConfig(
|
5907
|
-
return
|
6190
|
+
function defineStyleConfig(config38) {
|
6191
|
+
return config38;
|
5908
6192
|
}
|
5909
|
-
function createMultiStyleConfigHelpers(
|
6193
|
+
function createMultiStyleConfigHelpers(parts15) {
|
5910
6194
|
return {
|
5911
|
-
definePartsStyle(
|
5912
|
-
return
|
6195
|
+
definePartsStyle(config38) {
|
6196
|
+
return config38;
|
5913
6197
|
},
|
5914
|
-
defineMultiStyleConfig(
|
5915
|
-
return { parts:
|
6198
|
+
defineMultiStyleConfig(config38) {
|
6199
|
+
return { parts: parts15, ...config38 };
|
5916
6200
|
}
|
5917
6201
|
};
|
5918
6202
|
}
|
5919
6203
|
|
5920
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
6204
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-Q5NOVGYN.mjs
|
5921
6205
|
var { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers([
|
5922
6206
|
"stepper",
|
5923
6207
|
"step",
|
@@ -6063,7 +6347,7 @@ var stepperTheme = defineMultiStyleConfig({
|
|
6063
6347
|
}
|
6064
6348
|
});
|
6065
6349
|
|
6066
|
-
// ../../node_modules/@chakra-ui/anatomy/dist/chunk-
|
6350
|
+
// ../../node_modules/@chakra-ui/anatomy/dist/chunk-OA3DH5LS.mjs
|
6067
6351
|
function anatomy(name, map = {}) {
|
6068
6352
|
let called = false;
|
6069
6353
|
function assert() {
|
@@ -6075,7 +6359,7 @@ function anatomy(name, map = {}) {
|
|
6075
6359
|
"[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?"
|
6076
6360
|
);
|
6077
6361
|
}
|
6078
|
-
function
|
6362
|
+
function parts15(...values) {
|
6079
6363
|
assert();
|
6080
6364
|
for (const part of values) {
|
6081
6365
|
map[part] = toPart(part);
|
@@ -6115,7 +6399,7 @@ function anatomy(name, map = {}) {
|
|
6115
6399
|
}
|
6116
6400
|
const __type = {};
|
6117
6401
|
return {
|
6118
|
-
parts:
|
6402
|
+
parts: parts15,
|
6119
6403
|
toPart,
|
6120
6404
|
extend,
|
6121
6405
|
selectors,
|
@@ -6127,7 +6411,7 @@ function anatomy(name, map = {}) {
|
|
6127
6411
|
};
|
6128
6412
|
}
|
6129
6413
|
|
6130
|
-
// ../../node_modules/@chakra-ui/anatomy/dist/chunk-
|
6414
|
+
// ../../node_modules/@chakra-ui/anatomy/dist/chunk-7OOI6RFH.mjs
|
6131
6415
|
var accordionAnatomy = anatomy("accordion").parts("root", "container", "button", "panel").extend("icon");
|
6132
6416
|
var alertAnatomy = anatomy("alert").parts("title", "description", "container").extend("icon", "spinner");
|
6133
6417
|
var avatarAnatomy = anatomy("avatar").parts("label", "badge", "container").extend("excessLabel", "group");
|
@@ -6192,7 +6476,8 @@ var statAnatomy = anatomy("stat").parts(
|
|
6192
6476
|
var switchAnatomy = anatomy("switch").parts(
|
6193
6477
|
"container",
|
6194
6478
|
"track",
|
6195
|
-
"thumb"
|
6479
|
+
"thumb",
|
6480
|
+
"label"
|
6196
6481
|
);
|
6197
6482
|
var tableAnatomy = anatomy("table").parts(
|
6198
6483
|
"table",
|
@@ -6223,6 +6508,16 @@ var cardAnatomy = anatomy("card").parts(
|
|
6223
6508
|
"body",
|
6224
6509
|
"footer"
|
6225
6510
|
);
|
6511
|
+
anatomy("stepper").parts(
|
6512
|
+
"stepper",
|
6513
|
+
"step",
|
6514
|
+
"title",
|
6515
|
+
"description",
|
6516
|
+
"indicator",
|
6517
|
+
"separator",
|
6518
|
+
"icon",
|
6519
|
+
"number"
|
6520
|
+
);
|
6226
6521
|
var { defineMultiStyleConfig: defineMultiStyleConfig2, definePartsStyle: definePartsStyle2 } = createMultiStyleConfigHelpers(switchAnatomy.keys);
|
6227
6522
|
var $width = cssVar$1("switch-track-width");
|
6228
6523
|
var $height = cssVar$1("switch-track-height");
|
@@ -6759,7 +7054,7 @@ var badgeTheme = defineStyleConfig({
|
|
6759
7054
|
}
|
6760
7055
|
});
|
6761
7056
|
|
6762
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
7057
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-7RVLYCMR.mjs
|
6763
7058
|
var { defineMultiStyleConfig: defineMultiStyleConfig5, definePartsStyle: definePartsStyle5 } = createMultiStyleConfigHelpers(tagAnatomy.keys);
|
6764
7059
|
var $bg3 = cssVar("tag-bg");
|
6765
7060
|
var $color = cssVar("tag-color");
|
@@ -7083,7 +7378,7 @@ var inputTheme = defineMultiStyleConfig6({
|
|
7083
7378
|
}
|
7084
7379
|
});
|
7085
7380
|
|
7086
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
7381
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-KJ26FGJD.mjs
|
7087
7382
|
var _a;
|
7088
7383
|
var baseStyle8 = defineStyle({
|
7089
7384
|
...(_a = inputTheme.baseStyle) == null ? void 0 : _a.field,
|
@@ -7229,7 +7524,7 @@ var progressTheme = defineMultiStyleConfig7({
|
|
7229
7524
|
}
|
7230
7525
|
});
|
7231
7526
|
|
7232
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
7527
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-UV3F75RF.mjs
|
7233
7528
|
var isFunction = (value) => typeof value === "function";
|
7234
7529
|
function runIfFn(valueOrFn, ...args) {
|
7235
7530
|
return isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
|
@@ -7321,7 +7616,7 @@ var checkboxTheme = defineMultiStyleConfig8({
|
|
7321
7616
|
}
|
7322
7617
|
});
|
7323
7618
|
|
7324
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
7619
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-VZUATZ4E.mjs
|
7325
7620
|
var { defineMultiStyleConfig: defineMultiStyleConfig9, definePartsStyle: definePartsStyle9 } = createMultiStyleConfigHelpers(radioAnatomy.keys);
|
7326
7621
|
var baseStyleControl2 = defineStyle((props) => {
|
7327
7622
|
var _a6;
|
@@ -7374,7 +7669,7 @@ var radioTheme = defineMultiStyleConfig9({
|
|
7374
7669
|
}
|
7375
7670
|
});
|
7376
7671
|
|
7377
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
7672
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-NNA4E64A.mjs
|
7378
7673
|
var { defineMultiStyleConfig: defineMultiStyleConfig10, definePartsStyle: definePartsStyle10 } = createMultiStyleConfigHelpers(selectAnatomy.keys);
|
7379
7674
|
var $bg5 = cssVar("select-bg");
|
7380
7675
|
var _a4;
|
@@ -7458,7 +7753,7 @@ var selectTheme = defineMultiStyleConfig10({
|
|
7458
7753
|
defaultProps: inputTheme.defaultProps
|
7459
7754
|
});
|
7460
7755
|
|
7461
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
7756
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-X6XFE4TF.mjs
|
7462
7757
|
var $startColor = cssVar("skeleton-start-color");
|
7463
7758
|
var $endColor = cssVar("skeleton-end-color");
|
7464
7759
|
var baseStyle14 = defineStyle({
|
@@ -7477,7 +7772,7 @@ var skeletonTheme = defineStyleConfig({
|
|
7477
7772
|
baseStyle: baseStyle14
|
7478
7773
|
});
|
7479
7774
|
|
7480
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
7775
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-ZREGO6US.mjs
|
7481
7776
|
var $bg6 = cssVar("skip-link-bg");
|
7482
7777
|
var baseStyle15 = defineStyle({
|
7483
7778
|
borderRadius: "md",
|
@@ -7666,7 +7961,7 @@ var spinnerTheme = defineStyleConfig({
|
|
7666
7961
|
}
|
7667
7962
|
});
|
7668
7963
|
|
7669
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
7964
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-2KWJXISX.mjs
|
7670
7965
|
var { defineMultiStyleConfig: defineMultiStyleConfig12, definePartsStyle: definePartsStyle12 } = createMultiStyleConfigHelpers(statAnatomy.keys);
|
7671
7966
|
var baseStyleLabel4 = defineStyle({
|
7672
7967
|
fontWeight: "medium"
|
@@ -7707,7 +8002,7 @@ var statTheme = defineMultiStyleConfig12({
|
|
7707
8002
|
}
|
7708
8003
|
});
|
7709
8004
|
|
7710
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8005
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-AFCBUAM5.mjs
|
7711
8006
|
var $bg8 = cssVar("kbd-bg");
|
7712
8007
|
var baseStyle19 = defineStyle({
|
7713
8008
|
[$bg8.variable]: "colors.gray.100",
|
@@ -7728,7 +8023,7 @@ var kbdTheme = defineStyleConfig({
|
|
7728
8023
|
baseStyle: baseStyle19
|
7729
8024
|
});
|
7730
8025
|
|
7731
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8026
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-V5KSHSOQ.mjs
|
7732
8027
|
var baseStyle20 = defineStyle({
|
7733
8028
|
transitionProperty: "common",
|
7734
8029
|
transitionDuration: "fast",
|
@@ -7748,7 +8043,7 @@ var linkTheme = defineStyleConfig({
|
|
7748
8043
|
baseStyle: baseStyle20
|
7749
8044
|
});
|
7750
8045
|
|
7751
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8046
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-MGNM2WZQ.mjs
|
7752
8047
|
var { defineMultiStyleConfig: defineMultiStyleConfig13, definePartsStyle: definePartsStyle13 } = createMultiStyleConfigHelpers(listAnatomy.keys);
|
7753
8048
|
var baseStyleIcon4 = defineStyle({
|
7754
8049
|
marginEnd: "2",
|
@@ -7762,7 +8057,7 @@ var listTheme = defineMultiStyleConfig13({
|
|
7762
8057
|
baseStyle: baseStyle21
|
7763
8058
|
});
|
7764
8059
|
|
7765
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8060
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-N2GP2AF7.mjs
|
7766
8061
|
var { defineMultiStyleConfig: defineMultiStyleConfig14, definePartsStyle: definePartsStyle14 } = createMultiStyleConfigHelpers(menuAnatomy.keys);
|
7767
8062
|
var $bg9 = cssVar("menu-bg");
|
7768
8063
|
var $shadow2 = cssVar("menu-shadow");
|
@@ -7851,7 +8146,7 @@ var menuTheme = defineMultiStyleConfig14({
|
|
7851
8146
|
baseStyle: baseStyle22
|
7852
8147
|
});
|
7853
8148
|
|
7854
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8149
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-JN6QBAR6.mjs
|
7855
8150
|
var { defineMultiStyleConfig: defineMultiStyleConfig15, definePartsStyle: definePartsStyle15 } = createMultiStyleConfigHelpers(modalAnatomy.keys);
|
7856
8151
|
var $bg10 = cssVar("modal-bg");
|
7857
8152
|
var $shadow3 = cssVar("modal-shadow");
|
@@ -8049,7 +8344,7 @@ var numberInputTheme = defineMultiStyleConfig16({
|
|
8049
8344
|
defaultProps: inputTheme.defaultProps
|
8050
8345
|
});
|
8051
8346
|
|
8052
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8347
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-OEFJDLVS.mjs
|
8053
8348
|
var _a5;
|
8054
8349
|
var baseStyle25 = defineStyle({
|
8055
8350
|
...(_a5 = inputTheme.baseStyle) == null ? void 0 : _a5.field,
|
@@ -8168,7 +8463,7 @@ var popoverTheme = defineMultiStyleConfig17({
|
|
8168
8463
|
baseStyle: baseStyle26
|
8169
8464
|
});
|
8170
8465
|
|
8171
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8466
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-VWP3ZVQT.mjs
|
8172
8467
|
var { definePartsStyle: definePartsStyle18, defineMultiStyleConfig: defineMultiStyleConfig18 } = createMultiStyleConfigHelpers(drawerAnatomy.keys);
|
8173
8468
|
var $bg12 = cssVar("drawer-bg");
|
8174
8469
|
var $bs = cssVar("drawer-box-shadow");
|
@@ -8184,7 +8479,7 @@ function getSize3(value) {
|
|
8184
8479
|
}
|
8185
8480
|
var baseStyleOverlay2 = defineStyle({
|
8186
8481
|
bg: "blackAlpha.600",
|
8187
|
-
zIndex: "
|
8482
|
+
zIndex: "modal"
|
8188
8483
|
});
|
8189
8484
|
var baseStyleDialogContainer2 = defineStyle({
|
8190
8485
|
display: "flex",
|
@@ -8254,7 +8549,7 @@ var drawerTheme = defineMultiStyleConfig18({
|
|
8254
8549
|
}
|
8255
8550
|
});
|
8256
8551
|
|
8257
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8552
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-D6DZ26HA.mjs
|
8258
8553
|
var { definePartsStyle: definePartsStyle19, defineMultiStyleConfig: defineMultiStyleConfig19 } = createMultiStyleConfigHelpers(editableAnatomy.keys);
|
8259
8554
|
var baseStylePreview = defineStyle({
|
8260
8555
|
borderRadius: "md",
|
@@ -8289,7 +8584,7 @@ var editableTheme = defineMultiStyleConfig19({
|
|
8289
8584
|
baseStyle: baseStyle28
|
8290
8585
|
});
|
8291
8586
|
|
8292
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8587
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-O6GGGS4Y.mjs
|
8293
8588
|
var { definePartsStyle: definePartsStyle20, defineMultiStyleConfig: defineMultiStyleConfig20 } = createMultiStyleConfigHelpers(formAnatomy.keys);
|
8294
8589
|
var $fg4 = cssVar("form-control-color");
|
8295
8590
|
var baseStyleRequiredIndicator = defineStyle({
|
@@ -8322,7 +8617,7 @@ var formTheme = defineMultiStyleConfig20({
|
|
8322
8617
|
baseStyle: baseStyle29
|
8323
8618
|
});
|
8324
8619
|
|
8325
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8620
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-SRBDDT7F.mjs
|
8326
8621
|
var { definePartsStyle: definePartsStyle21, defineMultiStyleConfig: defineMultiStyleConfig21 } = createMultiStyleConfigHelpers(formErrorAnatomy.keys);
|
8327
8622
|
var $fg5 = cssVar("form-error-color");
|
8328
8623
|
var baseStyleText = defineStyle({
|
@@ -8351,7 +8646,7 @@ var formErrorTheme = defineMultiStyleConfig21({
|
|
8351
8646
|
baseStyle: baseStyle30
|
8352
8647
|
});
|
8353
8648
|
|
8354
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8649
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-VHM7WLW6.mjs
|
8355
8650
|
var baseStyle31 = defineStyle({
|
8356
8651
|
fontSize: "md",
|
8357
8652
|
marginEnd: "3",
|
@@ -8368,7 +8663,7 @@ var formLabelTheme = defineStyleConfig({
|
|
8368
8663
|
baseStyle: baseStyle31
|
8369
8664
|
});
|
8370
8665
|
|
8371
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8666
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-WXARPSDQ.mjs
|
8372
8667
|
var baseStyle32 = defineStyle({
|
8373
8668
|
fontFamily: "heading",
|
8374
8669
|
fontWeight: "bold"
|
@@ -8415,7 +8710,7 @@ var headingTheme = defineStyleConfig({
|
|
8415
8710
|
}
|
8416
8711
|
});
|
8417
8712
|
|
8418
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8713
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-FU5DDBRC.mjs
|
8419
8714
|
var { defineMultiStyleConfig: defineMultiStyleConfig22, definePartsStyle: definePartsStyle22 } = createMultiStyleConfigHelpers(breadcrumbAnatomy.keys);
|
8420
8715
|
var $decor = cssVar("breadcrumb-link-decor");
|
8421
8716
|
var baseStyleLink = defineStyle({
|
@@ -8618,7 +8913,7 @@ var buttonTheme = defineStyleConfig({
|
|
8618
8913
|
}
|
8619
8914
|
});
|
8620
8915
|
|
8621
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
8916
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-F7CKIHPM.mjs
|
8622
8917
|
var { definePartsStyle: definePartsStyle23, defineMultiStyleConfig: defineMultiStyleConfig23 } = createMultiStyleConfigHelpers(cardAnatomy.keys);
|
8623
8918
|
var $bg13 = cssVar("card-bg");
|
8624
8919
|
var $padding2 = cssVar("card-padding");
|
@@ -8760,7 +9055,7 @@ var closeButtonTheme = defineStyleConfig({
|
|
8760
9055
|
}
|
8761
9056
|
});
|
8762
9057
|
|
8763
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
9058
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-K3RH7Y2L.mjs
|
8764
9059
|
var { variants: variants10, defaultProps } = badgeTheme;
|
8765
9060
|
var baseStyle37 = defineStyle({
|
8766
9061
|
fontFamily: "mono",
|
@@ -8777,7 +9072,7 @@ var codeTheme = defineStyleConfig({
|
|
8777
9072
|
defaultProps
|
8778
9073
|
});
|
8779
9074
|
|
8780
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
9075
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-TECE6HDR.mjs
|
8781
9076
|
var baseStyle38 = defineStyle({
|
8782
9077
|
w: "100%",
|
8783
9078
|
mx: "auto",
|
@@ -8788,7 +9083,7 @@ var containerTheme = defineStyleConfig({
|
|
8788
9083
|
baseStyle: baseStyle38
|
8789
9084
|
});
|
8790
9085
|
|
8791
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
9086
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-5S44M2O4.mjs
|
8792
9087
|
var baseStyle39 = defineStyle({
|
8793
9088
|
opacity: 0.6,
|
8794
9089
|
borderColor: "inherit"
|
@@ -8811,7 +9106,7 @@ var dividerTheme = defineStyleConfig({
|
|
8811
9106
|
}
|
8812
9107
|
});
|
8813
9108
|
|
8814
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
9109
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-J7AGDWFO.mjs
|
8815
9110
|
var { definePartsStyle: definePartsStyle24, defineMultiStyleConfig: defineMultiStyleConfig24 } = createMultiStyleConfigHelpers(accordionAnatomy.keys);
|
8816
9111
|
var baseStyleContainer4 = defineStyle({
|
8817
9112
|
borderTopWidth: "1px",
|
@@ -8897,7 +9192,7 @@ var variantSubtle2 = definePartsStyle25((props) => {
|
|
8897
9192
|
const bg = getBg(props);
|
8898
9193
|
return {
|
8899
9194
|
container: {
|
8900
|
-
[$fg6.variable]: `colors.${c}.
|
9195
|
+
[$fg6.variable]: `colors.${c}.600`,
|
8901
9196
|
[$bg15.variable]: bg.light,
|
8902
9197
|
_dark: {
|
8903
9198
|
[$fg6.variable]: `colors.${c}.200`,
|
@@ -8911,7 +9206,7 @@ var variantLeftAccent = definePartsStyle25((props) => {
|
|
8911
9206
|
const bg = getBg(props);
|
8912
9207
|
return {
|
8913
9208
|
container: {
|
8914
|
-
[$fg6.variable]: `colors.${c}.
|
9209
|
+
[$fg6.variable]: `colors.${c}.600`,
|
8915
9210
|
[$bg15.variable]: bg.light,
|
8916
9211
|
_dark: {
|
8917
9212
|
[$fg6.variable]: `colors.${c}.200`,
|
@@ -8928,7 +9223,7 @@ var variantTopAccent = definePartsStyle25((props) => {
|
|
8928
9223
|
const bg = getBg(props);
|
8929
9224
|
return {
|
8930
9225
|
container: {
|
8931
|
-
[$fg6.variable]: `colors.${c}.
|
9226
|
+
[$fg6.variable]: `colors.${c}.600`,
|
8932
9227
|
[$bg15.variable]: bg.light,
|
8933
9228
|
_dark: {
|
8934
9229
|
[$fg6.variable]: `colors.${c}.200`,
|
@@ -8945,7 +9240,7 @@ var variantSolid4 = definePartsStyle25((props) => {
|
|
8945
9240
|
return {
|
8946
9241
|
container: {
|
8947
9242
|
[$fg6.variable]: `colors.white`,
|
8948
|
-
[$bg15.variable]: `colors.${c}.
|
9243
|
+
[$bg15.variable]: `colors.${c}.600`,
|
8949
9244
|
_dark: {
|
8950
9245
|
[$fg6.variable]: `colors.gray.900`,
|
8951
9246
|
[$bg15.variable]: `colors.${c}.200`
|
@@ -9058,7 +9353,7 @@ var avatarTheme = defineMultiStyleConfig26({
|
|
9058
9353
|
}
|
9059
9354
|
});
|
9060
9355
|
|
9061
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
9356
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-P7SDT22G.mjs
|
9062
9357
|
var components = {
|
9063
9358
|
Accordion: accordionTheme,
|
9064
9359
|
Alert: alertTheme,
|
@@ -9104,7 +9399,7 @@ var components = {
|
|
9104
9399
|
Stepper: stepperTheme
|
9105
9400
|
};
|
9106
9401
|
|
9107
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
9402
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-5GOSZLB7.mjs
|
9108
9403
|
var semanticTokens = {
|
9109
9404
|
colors: {
|
9110
9405
|
"chakra-body-text": { _light: "gray.800", _dark: "whiteAlpha.900" },
|
@@ -9117,7 +9412,7 @@ var semanticTokens = {
|
|
9117
9412
|
}
|
9118
9413
|
};
|
9119
9414
|
|
9120
|
-
// ../../node_modules/@chakra-ui/theme/dist/chunk-
|
9415
|
+
// ../../node_modules/@chakra-ui/theme/dist/chunk-3F7U33P5.mjs
|
9121
9416
|
var styles = {
|
9122
9417
|
global: {
|
9123
9418
|
body: {
|
@@ -9183,6 +9478,7 @@ __export(components_exports, {
|
|
9183
9478
|
MediaControllerButton: () => media_controller_button_default,
|
9184
9479
|
Modal: () => modal_default,
|
9185
9480
|
Popover: () => popover_default,
|
9481
|
+
ProgressIndicator: () => progress_indicator_default,
|
9186
9482
|
Radio: () => radio_default,
|
9187
9483
|
Select: () => select_default,
|
9188
9484
|
Skeleton: () => skeleton_default,
|
@@ -11293,6 +11589,32 @@ function baseBorder(state2, props) {
|
|
11293
11589
|
};
|
11294
11590
|
}
|
11295
11591
|
}
|
11592
|
+
function floatingBorder(state2, props) {
|
11593
|
+
switch (state2) {
|
11594
|
+
case "hover":
|
11595
|
+
return {
|
11596
|
+
boxShadow: getBoxShadowString({
|
11597
|
+
borderColor: mode("grey.300", "white")(props)
|
11598
|
+
})
|
11599
|
+
};
|
11600
|
+
case "selected":
|
11601
|
+
case "focus":
|
11602
|
+
return {
|
11603
|
+
boxShadow: getBoxShadowString({
|
11604
|
+
borderColor: mode("greenHaze", "azure")(props),
|
11605
|
+
borderWidth: 2
|
11606
|
+
})
|
11607
|
+
};
|
11608
|
+
case "active":
|
11609
|
+
case "default":
|
11610
|
+
default:
|
11611
|
+
return {
|
11612
|
+
boxShadow: getBoxShadowString({
|
11613
|
+
borderColor: mode("grey.200", "whiteAlpha.400")(props)
|
11614
|
+
})
|
11615
|
+
};
|
11616
|
+
}
|
11617
|
+
}
|
11296
11618
|
function baseBackground(state2, props) {
|
11297
11619
|
switch (state2) {
|
11298
11620
|
case "active":
|
@@ -11308,7 +11630,73 @@ function baseBackground(state2, props) {
|
|
11308
11630
|
backgroundColor: mode("silver", "whiteAlpha.100")(props)
|
11309
11631
|
};
|
11310
11632
|
default:
|
11311
|
-
return {
|
11633
|
+
return {
|
11634
|
+
backgroundColor: "transparent"
|
11635
|
+
};
|
11636
|
+
}
|
11637
|
+
}
|
11638
|
+
function ghostBackground(state2, props) {
|
11639
|
+
switch (state2) {
|
11640
|
+
case "hover": {
|
11641
|
+
return {
|
11642
|
+
backgroundColor: mode("seaMist", "whiteAlpha.100")(props)
|
11643
|
+
};
|
11644
|
+
}
|
11645
|
+
case "active":
|
11646
|
+
return {
|
11647
|
+
backgroundColor: mode("seaMist", "whiteAlpha.200")(props)
|
11648
|
+
};
|
11649
|
+
case "focus":
|
11650
|
+
return {
|
11651
|
+
backgroundColor: "transparent"
|
11652
|
+
};
|
11653
|
+
case "selected": {
|
11654
|
+
return {
|
11655
|
+
backgroundColor: mode("mint", "whiteAlpha.200")(props)
|
11656
|
+
};
|
11657
|
+
}
|
11658
|
+
case "default":
|
11659
|
+
default:
|
11660
|
+
return {
|
11661
|
+
backgroundColor: "transparent"
|
11662
|
+
};
|
11663
|
+
}
|
11664
|
+
}
|
11665
|
+
function floatingBackground(state2, props) {
|
11666
|
+
switch (state2) {
|
11667
|
+
case "selected":
|
11668
|
+
return {
|
11669
|
+
backgroundColor: mode("mint", "pine")(props)
|
11670
|
+
};
|
11671
|
+
case "active":
|
11672
|
+
return {
|
11673
|
+
backgroundColor: mode(
|
11674
|
+
"mint",
|
11675
|
+
`color-mix(in srgb, ${props.theme.darkBackgroundColor ?? colors.darkGrey}, ${colors.white} 30%)`
|
11676
|
+
)(props)
|
11677
|
+
};
|
11678
|
+
case "hover":
|
11679
|
+
return {
|
11680
|
+
backgroundColor: mode(
|
11681
|
+
"white",
|
11682
|
+
`color-mix(in srgb, ${props.theme.darkBackgroundColor ?? colors.darkGrey}, ${colors.white} 20%)`
|
11683
|
+
)(props)
|
11684
|
+
};
|
11685
|
+
case "focus":
|
11686
|
+
return {
|
11687
|
+
backgroundColor: mode(
|
11688
|
+
"white",
|
11689
|
+
`color-mix(in srgb, ${props.theme.darkBackgroundColor ?? colors.darkGrey}, ${colors.white} 40%)`
|
11690
|
+
)(props)
|
11691
|
+
};
|
11692
|
+
case "default":
|
11693
|
+
default:
|
11694
|
+
return {
|
11695
|
+
backgroundColor: mode(
|
11696
|
+
"white",
|
11697
|
+
`color-mix(in srgb, ${props.theme.darkBackgroundColor ?? colors.darkGrey}, ${colors.white} 10%)`
|
11698
|
+
)(props)
|
11699
|
+
};
|
11312
11700
|
}
|
11313
11701
|
}
|
11314
11702
|
|
@@ -11361,7 +11749,6 @@ var config18 = helpers10.defineMultiStyleConfig({
|
|
11361
11749
|
...baseBorder("focus", props)
|
11362
11750
|
},
|
11363
11751
|
_expanded: {
|
11364
|
-
...baseBackground("active", props),
|
11365
11752
|
...baseBorder("focus", props)
|
11366
11753
|
},
|
11367
11754
|
_invalid: {
|
@@ -11380,7 +11767,36 @@ var config18 = helpers10.defineMultiStyleConfig({
|
|
11380
11767
|
}
|
11381
11768
|
},
|
11382
11769
|
arrowIcon: {}
|
11383
|
-
})
|
11770
|
+
}),
|
11771
|
+
variants: {
|
11772
|
+
base: (props) => ({}),
|
11773
|
+
floating: (props) => ({
|
11774
|
+
button: {
|
11775
|
+
...floatingBackground("default", props),
|
11776
|
+
...floatingBorder("default", props),
|
11777
|
+
_hover: {
|
11778
|
+
...floatingBorder("hover", props),
|
11779
|
+
...floatingBackground("hover", props)
|
11780
|
+
},
|
11781
|
+
...focusVisible({
|
11782
|
+
focus: {
|
11783
|
+
...floatingBorder("focus", props),
|
11784
|
+
outline: "none"
|
11785
|
+
},
|
11786
|
+
notFocus: {
|
11787
|
+
...floatingBorder("default", props)
|
11788
|
+
}
|
11789
|
+
}),
|
11790
|
+
_active: {
|
11791
|
+
...floatingBorder("active", props),
|
11792
|
+
...floatingBackground("active", props)
|
11793
|
+
}
|
11794
|
+
}
|
11795
|
+
})
|
11796
|
+
},
|
11797
|
+
defaultProps: {
|
11798
|
+
variant: "base"
|
11799
|
+
}
|
11384
11800
|
});
|
11385
11801
|
var info_select_default = config18;
|
11386
11802
|
var parts7 = anatomy$1("travel-tag").parts(
|
@@ -12034,7 +12450,7 @@ var config24 = helpers15.defineMultiStyleConfig({
|
|
12034
12450
|
// avoiding extra div by blending a transparent color into darkGrey for dark mode
|
12035
12451
|
backgroundColor: mode(
|
12036
12452
|
"white",
|
12037
|
-
`color-mix(in srgb, ${colors.
|
12453
|
+
`color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 10%)`
|
12038
12454
|
)(props),
|
12039
12455
|
boxShadow: "sm",
|
12040
12456
|
overflowY: "auto",
|
@@ -12051,21 +12467,18 @@ var config24 = helpers15.defineMultiStyleConfig({
|
|
12051
12467
|
borderRadius: "sm",
|
12052
12468
|
color: mode("darkGrey", "white")(props),
|
12053
12469
|
cursor: "pointer",
|
12054
|
-
|
12055
|
-
backgroundColor: mode("seaMist", "pine")(props),
|
12056
|
-
outline: "none"
|
12057
|
-
},
|
12470
|
+
outline: "none",
|
12058
12471
|
_active: {
|
12059
|
-
|
12060
|
-
outline: "none"
|
12472
|
+
...ghostBackground("active", props)
|
12061
12473
|
},
|
12062
12474
|
_focus: {
|
12063
|
-
|
12064
|
-
|
12475
|
+
...ghostBackground("focus", props)
|
12476
|
+
},
|
12477
|
+
_hover: {
|
12478
|
+
...ghostBackground("hover", props)
|
12065
12479
|
},
|
12066
12480
|
_selected: {
|
12067
|
-
...
|
12068
|
-
color: "white"
|
12481
|
+
...ghostBackground("selected", props)
|
12069
12482
|
}
|
12070
12483
|
},
|
12071
12484
|
label: {},
|
@@ -12354,8 +12767,46 @@ var config27 = helpers18.defineMultiStyleConfig({
|
|
12354
12767
|
}
|
12355
12768
|
});
|
12356
12769
|
var popover_default = config27;
|
12357
|
-
var
|
12770
|
+
var parts12 = anatomy$1("progress-indicator").parts(
|
12771
|
+
"root",
|
12772
|
+
"container",
|
12773
|
+
"progressDot"
|
12774
|
+
);
|
12775
|
+
var helpers19 = createMultiStyleConfigHelpers$1(parts12.keys);
|
12358
12776
|
var config28 = helpers19.defineMultiStyleConfig({
|
12777
|
+
baseStyle: (props) => ({
|
12778
|
+
root: {
|
12779
|
+
width: "100%"
|
12780
|
+
},
|
12781
|
+
container: {
|
12782
|
+
display: "flex",
|
12783
|
+
alignItems: "center",
|
12784
|
+
gap: 1,
|
12785
|
+
justifyContent: ["space-between", "center"]
|
12786
|
+
},
|
12787
|
+
progressDot: {
|
12788
|
+
height: 1,
|
12789
|
+
width: 1,
|
12790
|
+
"&[aria-current='step']": {
|
12791
|
+
circle: {
|
12792
|
+
fill: mode("pine", "coralGreen")(props)
|
12793
|
+
}
|
12794
|
+
},
|
12795
|
+
circle: {
|
12796
|
+
fill: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
12797
|
+
}
|
12798
|
+
}
|
12799
|
+
}),
|
12800
|
+
variants: {
|
12801
|
+
base: (props) => ({})
|
12802
|
+
},
|
12803
|
+
defaultProps: {
|
12804
|
+
variant: "base"
|
12805
|
+
}
|
12806
|
+
});
|
12807
|
+
var progress_indicator_default = config28;
|
12808
|
+
var helpers20 = createMultiStyleConfigHelpers$1(radioAnatomy.keys);
|
12809
|
+
var config29 = helpers20.defineMultiStyleConfig({
|
12359
12810
|
baseStyle: {
|
12360
12811
|
container: {
|
12361
12812
|
_hover: {
|
@@ -12411,10 +12862,10 @@ var config28 = helpers19.defineMultiStyleConfig({
|
|
12411
12862
|
}
|
12412
12863
|
}
|
12413
12864
|
});
|
12414
|
-
var radio_default =
|
12415
|
-
var
|
12416
|
-
var
|
12417
|
-
var
|
12865
|
+
var radio_default = config29;
|
12866
|
+
var parts13 = selectAnatomy.extend("root");
|
12867
|
+
var helpers21 = createMultiStyleConfigHelpers$1(parts13.keys);
|
12868
|
+
var config30 = helpers21.defineMultiStyleConfig({
|
12418
12869
|
baseStyle: (props) => ({
|
12419
12870
|
root: {
|
12420
12871
|
width: "100%",
|
@@ -12456,14 +12907,14 @@ var config29 = helpers20.defineMultiStyleConfig({
|
|
12456
12907
|
}
|
12457
12908
|
})
|
12458
12909
|
});
|
12459
|
-
var select_default =
|
12910
|
+
var select_default = config30;
|
12460
12911
|
var fade = (startColor, endColor) => keyframes({
|
12461
12912
|
from: { borderColor: startColor, background: startColor },
|
12462
12913
|
to: { borderColor: endColor, background: endColor }
|
12463
12914
|
});
|
12464
12915
|
var $startColor2 = cssVar$1("skeleton-start-color");
|
12465
12916
|
var $endColor2 = cssVar$1("skeleton-end-color");
|
12466
|
-
var
|
12917
|
+
var config31 = defineStyleConfig$1({
|
12467
12918
|
baseStyle: (props) => {
|
12468
12919
|
const defaultStartColor = mode("blackAlpha.300", "whiteAlpha.300")(props);
|
12469
12920
|
const defaultEndColor = mode("blackAlpha.100", "whiteAlpha.100")(props);
|
@@ -12486,8 +12937,8 @@ var config30 = defineStyleConfig$1({
|
|
12486
12937
|
};
|
12487
12938
|
}
|
12488
12939
|
});
|
12489
|
-
var skeleton_default =
|
12490
|
-
var
|
12940
|
+
var skeleton_default = config31;
|
12941
|
+
var parts14 = anatomy$1("stepper").parts(
|
12491
12942
|
"root",
|
12492
12943
|
"container",
|
12493
12944
|
"innerContainer",
|
@@ -12500,8 +12951,8 @@ var parts13 = anatomy$1("stepper").parts(
|
|
12500
12951
|
"stepTitle",
|
12501
12952
|
"closeButton"
|
12502
12953
|
);
|
12503
|
-
var
|
12504
|
-
var
|
12954
|
+
var helpers22 = createMultiStyleConfigHelpers$1(parts14.keys);
|
12955
|
+
var config32 = helpers22.defineMultiStyleConfig({
|
12505
12956
|
baseStyle: (props) => ({
|
12506
12957
|
root: {
|
12507
12958
|
display: "flex",
|
@@ -12563,14 +13014,14 @@ var config31 = helpers21.defineMultiStyleConfig({
|
|
12563
13014
|
variant: "base"
|
12564
13015
|
}
|
12565
13016
|
});
|
12566
|
-
var stepper_default =
|
13017
|
+
var stepper_default = config32;
|
12567
13018
|
var $width2 = cssVar$1("switch-track-width");
|
12568
13019
|
var $height3 = cssVar$1("switch-track-height");
|
12569
13020
|
var $diff2 = cssVar$1("switch-track-diff");
|
12570
13021
|
var diffValue2 = calc$1.subtract($width2, $height3);
|
12571
13022
|
var $translateX2 = cssVar$1("switch-thumb-x");
|
12572
|
-
var
|
12573
|
-
var
|
13023
|
+
var helpers23 = createMultiStyleConfigHelpers$1(switchAnatomy.keys);
|
13024
|
+
var config33 = helpers23.defineMultiStyleConfig({
|
12574
13025
|
baseStyle: {
|
12575
13026
|
container: {
|
12576
13027
|
[$diff2.variable]: diffValue2,
|
@@ -12776,14 +13227,14 @@ var config32 = helpers22.defineMultiStyleConfig({
|
|
12776
13227
|
size: "md"
|
12777
13228
|
}
|
12778
13229
|
});
|
12779
|
-
var switch_default =
|
12780
|
-
var
|
13230
|
+
var switch_default = config33;
|
13231
|
+
var helpers24 = createMultiStyleConfigHelpers$1(tableAnatomy.keys);
|
12781
13232
|
var numericStyles2 = {
|
12782
13233
|
"&[data-is-numeric=true]": {
|
12783
13234
|
textAlign: "end"
|
12784
13235
|
}
|
12785
13236
|
};
|
12786
|
-
var
|
13237
|
+
var config34 = helpers24.defineMultiStyleConfig({
|
12787
13238
|
baseStyle: {
|
12788
13239
|
table: {
|
12789
13240
|
borderCollapse: "collapse",
|
@@ -12931,9 +13382,9 @@ var config33 = helpers23.defineMultiStyleConfig({
|
|
12931
13382
|
colorScheme: "grey"
|
12932
13383
|
}
|
12933
13384
|
});
|
12934
|
-
var table_default =
|
12935
|
-
var
|
12936
|
-
var
|
13385
|
+
var table_default = config34;
|
13386
|
+
var helpers25 = createMultiStyleConfigHelpers$1(tabsAnatomy.keys);
|
13387
|
+
var config35 = helpers25.defineMultiStyleConfig({
|
12937
13388
|
baseStyle: (props) => ({
|
12938
13389
|
root: {
|
12939
13390
|
display: "flex",
|
@@ -13036,7 +13487,7 @@ var config34 = helpers24.defineMultiStyleConfig({
|
|
13036
13487
|
variant: "round"
|
13037
13488
|
}
|
13038
13489
|
});
|
13039
|
-
var tabs_default =
|
13490
|
+
var tabs_default = config35;
|
13040
13491
|
var getTabColorSchemeProps = (props) => {
|
13041
13492
|
switch (props.colorScheme) {
|
13042
13493
|
case "dark":
|
@@ -13288,7 +13739,7 @@ var getTablistColorSchemeProps = (props) => {
|
|
13288
13739
|
return {};
|
13289
13740
|
}
|
13290
13741
|
};
|
13291
|
-
var
|
13742
|
+
var config36 = defineStyleConfig$1({
|
13292
13743
|
baseStyle: (props) => ({
|
13293
13744
|
...input_default.baseStyle(props).field,
|
13294
13745
|
minHeight: "5rem",
|
@@ -13305,8 +13756,8 @@ var config35 = defineStyleConfig$1({
|
|
13305
13756
|
}
|
13306
13757
|
})
|
13307
13758
|
});
|
13308
|
-
var textarea_default =
|
13309
|
-
var
|
13759
|
+
var textarea_default = config36;
|
13760
|
+
var config37 = defineStyleConfig$1({
|
13310
13761
|
baseStyle: {
|
13311
13762
|
display: "flex",
|
13312
13763
|
alignItems: "center",
|
@@ -13330,7 +13781,7 @@ var config36 = defineStyleConfig$1({
|
|
13330
13781
|
}
|
13331
13782
|
}
|
13332
13783
|
});
|
13333
|
-
var toast_default =
|
13784
|
+
var toast_default = config37;
|
13334
13785
|
var fontFaces = `
|
13335
13786
|
@font-face {
|
13336
13787
|
font-family: ${tokens10__default.asset.font["vy-sans"]["light"].name};
|
@@ -13396,6 +13847,11 @@ var fontFaces = `
|
|
13396
13847
|
`;
|
13397
13848
|
|
13398
13849
|
// src/theme/index.ts
|
13850
|
+
var Brand = /* @__PURE__ */ ((Brand2) => {
|
13851
|
+
Brand2["VyDigital"] = "VyDigital";
|
13852
|
+
Brand2["VyUtvikling"] = "VyUtvikling";
|
13853
|
+
return Brand2;
|
13854
|
+
})(Brand || {});
|
13399
13855
|
var theme = {
|
13400
13856
|
...theme2,
|
13401
13857
|
...foundations_exports,
|
@@ -13404,6 +13860,18 @@ var theme = {
|
|
13404
13860
|
...components_exports
|
13405
13861
|
}
|
13406
13862
|
};
|
13863
|
+
var brandTheme = {
|
13864
|
+
["VyDigital" /* VyDigital */]: {
|
13865
|
+
colors: {
|
13866
|
+
accent: colors.night
|
13867
|
+
}
|
13868
|
+
},
|
13869
|
+
["VyUtvikling" /* VyUtvikling */]: {
|
13870
|
+
colors: {
|
13871
|
+
accent: colors.darkGrey
|
13872
|
+
}
|
13873
|
+
}
|
13874
|
+
};
|
13407
13875
|
var BaseToast = ({ children, variant, id }) => {
|
13408
13876
|
const styles3 = useStyleConfig("Toast", { variant });
|
13409
13877
|
return /* @__PURE__ */ React69__default.createElement(Flex, { sx: styles3, id }, /* @__PURE__ */ React69__default.createElement(ToastIcon, { variant }), children);
|
@@ -13415,7 +13883,7 @@ var ToastIcon = ({ variant }) => {
|
|
13415
13883
|
Icon,
|
13416
13884
|
{
|
13417
13885
|
flexShrink: 0,
|
13418
|
-
"aria-label": t2(
|
13886
|
+
"aria-label": t2(texts23[variant]),
|
13419
13887
|
marginRight: 1,
|
13420
13888
|
marginY: 1.5,
|
13421
13889
|
color: "darkGrey"
|
@@ -13432,7 +13900,7 @@ var getIcon3 = (variant) => {
|
|
13432
13900
|
return ErrorOutline24Icon;
|
13433
13901
|
}
|
13434
13902
|
};
|
13435
|
-
var
|
13903
|
+
var texts23 = createTexts({
|
13436
13904
|
info: {
|
13437
13905
|
nb: "Informasjon",
|
13438
13906
|
nn: "Informasjon",
|
@@ -13476,13 +13944,13 @@ var ClosableToast = ({
|
|
13476
13944
|
{
|
13477
13945
|
sx: styles3.dismissButton,
|
13478
13946
|
variant: "ghost",
|
13479
|
-
"aria-label": t2(
|
13947
|
+
"aria-label": t2(texts24.dismiss),
|
13480
13948
|
icon: /* @__PURE__ */ React69__default.createElement(CloseFill18Icon, null),
|
13481
13949
|
onClick: onClose
|
13482
13950
|
}
|
13483
13951
|
));
|
13484
13952
|
};
|
13485
|
-
var
|
13953
|
+
var texts24 = createTexts({
|
13486
13954
|
dismiss: {
|
13487
13955
|
nb: "Lukk",
|
13488
13956
|
nn: "Lukk",
|
@@ -13626,4 +14094,4 @@ function useSize(subject) {
|
|
13626
14094
|
return size2;
|
13627
14095
|
}
|
13628
14096
|
|
13629
|
-
export { Accordion, AttachedInputs, Badge, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, ColorInlineLoader, ColorSpinner, Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerContent, Expandable, ExpandableAlert, ExpandableItem, FloatingActionButton, FormControl, FormErrorMessage, FormLabel3 as FormLabel, Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, SearchInput, SimpleDrawer, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Table, Tabs, Text4 as Text, TextLink, Textarea, TimePicker, TravelTag, VyLogo, WizardPopover, createTexts, fontFaces, theme, useSize, useToast, useTranslation };
|
14097
|
+
export { Accordion, AttachedInputs, Badge, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, ColorInlineLoader, ColorSpinner, Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerContent, Expandable, ExpandableAlert, ExpandableItem, FloatingActionButton, FormControl, FormErrorMessage, FormLabel3 as FormLabel, Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, SearchInput, SimpleDrawer, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Table, Tabs, Text4 as Text, TextLink, Textarea, TimePicker, TravelTag, VyLogo, WizardPopover, brandTheme, createTexts, fontFaces, theme, useSize, useToast, useTranslation };
|