@vygruppen/spor-react 7.2.1 → 8.0.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 +56 -0
- package/dist/{CountryCodeSelect-GE32ZZIY.mjs → CountryCodeSelect-NCM6JIBM.mjs} +1 -1
- package/dist/{chunk-LD6S2MKC.mjs → chunk-EGC6XZHT.mjs} +760 -504
- package/dist/index.d.mts +299 -188
- package/dist/index.d.ts +299 -188
- package/dist/index.js +714 -475
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/accordion/Accordion.tsx +6 -6
- package/src/accordion/Expandable.tsx +2 -2
- package/src/datepicker/DatePicker.tsx +1 -0
- package/src/index.tsx +2 -1
- package/src/input/ChoiceChip.tsx +23 -12
- package/src/input/FormErrorMessage.tsx +1 -1
- package/src/nudge/Nudge.tsx +146 -0
- package/src/nudge/WizardNudge.tsx +107 -0
- package/src/nudge/index.tsx +2 -0
- package/src/progress-indicator/ProgressIndicator.tsx +5 -1
- package/src/theme/components/accordion.ts +24 -40
- package/src/theme/components/button.ts +1 -1
- package/src/theme/components/choice-chip.ts +125 -27
- package/src/theme/components/datepicker.ts +0 -4
- package/src/theme/components/popover.ts +5 -6
- package/src/theme/utils/background-utils.ts +68 -2
- package/src/theme/utils/border-utils.ts +86 -0
- package/src/theme/utils/text-utils.ts +40 -0
- package/src/{popover/SimplePopover.tsx → tooltip/Tooltip.tsx} +17 -19
- package/src/tooltip/index.tsx +1 -0
- package/src/popover/PopoverWizardBody.tsx +0 -91
- package/src/popover/WizardPopover.tsx +0 -61
- package/src/popover/index.tsx +0 -23
package/dist/index.js
CHANGED
@@ -237,8 +237,8 @@ function useTranslation() {
|
|
237
237
|
};
|
238
238
|
return { t: t2, language };
|
239
239
|
}
|
240
|
-
function createTexts(
|
241
|
-
return
|
240
|
+
function createTexts(texts27) {
|
241
|
+
return texts27;
|
242
242
|
}
|
243
243
|
exports.Language = void 0; var LanguageContext;
|
244
244
|
var init_i18n = __esm({
|
@@ -1777,7 +1777,8 @@ var init_DatePicker = __esm({
|
|
1777
1777
|
...dialogProps,
|
1778
1778
|
isOpen: state2.isOpen,
|
1779
1779
|
onOpen: state2.open,
|
1780
|
-
onClose: state2.close
|
1780
|
+
onClose: state2.close,
|
1781
|
+
flip: false
|
1781
1782
|
},
|
1782
1783
|
/* @__PURE__ */ React69__namespace.default.createElement(react.InputGroup, { ...groupProps, display: "inline-flex" }, /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React69__namespace.default.createElement(
|
1783
1784
|
StyledField,
|
@@ -3098,7 +3099,14 @@ var init_ChoiceChip = __esm({
|
|
3098
3099
|
"src/input/ChoiceChip.tsx"() {
|
3099
3100
|
init_dist();
|
3100
3101
|
exports.ChoiceChip = react.forwardRef((props, ref) => {
|
3101
|
-
const {
|
3102
|
+
const {
|
3103
|
+
children,
|
3104
|
+
icon,
|
3105
|
+
isDisabled,
|
3106
|
+
size: size2 = "md",
|
3107
|
+
chipType = "choice",
|
3108
|
+
variant = "base"
|
3109
|
+
} = props;
|
3102
3110
|
const {
|
3103
3111
|
state: state2,
|
3104
3112
|
getInputProps,
|
@@ -3108,6 +3116,7 @@ var init_ChoiceChip = __esm({
|
|
3108
3116
|
} = react.useCheckbox(props);
|
3109
3117
|
const styles3 = react.useMultiStyleConfig("ChoiceChip", {
|
3110
3118
|
size: size2,
|
3119
|
+
chipType,
|
3111
3120
|
variant,
|
3112
3121
|
icon,
|
3113
3122
|
hasLabel: Boolean(children)
|
@@ -3120,7 +3129,7 @@ var init_ChoiceChip = __esm({
|
|
3120
3129
|
...getRootProps(),
|
3121
3130
|
"aria-label": String(children)
|
3122
3131
|
},
|
3123
|
-
/* @__PURE__ */ React69__namespace.default.createElement(react.chakra.input, { ...getInputProps({}, ref), id }),
|
3132
|
+
/* @__PURE__ */ React69__namespace.default.createElement(react.chakra.input, { ...getInputProps({}, ref), id, disabled: isDisabled }),
|
3124
3133
|
/* @__PURE__ */ React69__namespace.default.createElement(
|
3125
3134
|
react.chakra.div,
|
3126
3135
|
{
|
@@ -3133,8 +3142,8 @@ var init_ChoiceChip = __esm({
|
|
3133
3142
|
"data-disabled": dataAttr(state2.isDisabled)
|
3134
3143
|
},
|
3135
3144
|
icon && /* @__PURE__ */ React69__namespace.default.createElement(react.chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
|
3136
|
-
/* @__PURE__ */ React69__namespace.default.createElement(react.chakra.span, { __css: styles3.label, ...getCheckboxProps() },
|
3137
|
-
|
3145
|
+
/* @__PURE__ */ React69__namespace.default.createElement(react.chakra.span, { __css: styles3.label, ...getCheckboxProps() }, chipType !== "icon" && children),
|
3146
|
+
chipType === "filter" && state2.isChecked && /* @__PURE__ */ React69__namespace.default.createElement(sporIconReact.CloseOutline24Icon, { marginLeft: 1.5 })
|
3138
3147
|
)
|
3139
3148
|
);
|
3140
3149
|
});
|
@@ -3320,7 +3329,7 @@ var init_FormErrorMessage = __esm({
|
|
3320
3329
|
position: "absolute",
|
3321
3330
|
top: -0.5,
|
3322
3331
|
left: 3,
|
3323
|
-
zIndex: "
|
3332
|
+
zIndex: "dropdown",
|
3324
3333
|
maxWidth: "50ch",
|
3325
3334
|
...errorMessageProps,
|
3326
3335
|
...boxProps
|
@@ -4894,62 +4903,107 @@ var init_modal = __esm({
|
|
4894
4903
|
init_SimpleDrawer();
|
4895
4904
|
}
|
4896
4905
|
});
|
4897
|
-
exports.
|
4898
|
-
var
|
4899
|
-
"src/
|
4906
|
+
var EXPIRATION_DELAY; exports.Nudge = void 0; var texts21;
|
4907
|
+
var init_Nudge = __esm({
|
4908
|
+
"src/nudge/Nudge.tsx"() {
|
4900
4909
|
init_src();
|
4901
|
-
|
4902
|
-
|
4903
|
-
|
4904
|
-
|
4905
|
-
|
4906
|
-
|
4907
|
-
|
4908
|
-
|
4909
|
-
|
4910
|
-
}
|
4911
|
-
|
4912
|
-
|
4913
|
-
|
4914
|
-
|
4915
|
-
|
4910
|
+
EXPIRATION_DELAY = 1e3 * 60 * 60 * 24 * 30;
|
4911
|
+
exports.Nudge = ({
|
4912
|
+
introducedDate,
|
4913
|
+
name,
|
4914
|
+
children,
|
4915
|
+
content,
|
4916
|
+
actions,
|
4917
|
+
...props
|
4918
|
+
}) => {
|
4919
|
+
const { t: t2 } = useTranslation();
|
4920
|
+
if (new Date(introducedDate).getTime() + EXPIRATION_DELAY < Date.now()) {
|
4921
|
+
if (process.env.NODE_ENV === "development") {
|
4922
|
+
console.warn(
|
4923
|
+
`The nudge ${name} has been used for longer than 30 days. Please remove it from the codebase.
|
4924
|
+
|
4925
|
+
This is a development only warning, and will not be shown in production.`
|
4926
|
+
);
|
4916
4927
|
}
|
4917
|
-
|
4918
|
-
|
4919
|
-
|
4920
|
-
|
4921
|
-
return /* @__PURE__ */ React69__namespace.createElement(react.Flex, { gap: 1, alignItems: "center" }, steps.map((step) => /* @__PURE__ */ React69__namespace.createElement(
|
4922
|
-
react.Box,
|
4928
|
+
return null;
|
4929
|
+
}
|
4930
|
+
return /* @__PURE__ */ React69__namespace.default.createElement(react.DarkMode, null, /* @__PURE__ */ React69__namespace.default.createElement(
|
4931
|
+
react.Popover,
|
4923
4932
|
{
|
4924
|
-
|
4925
|
-
|
4926
|
-
|
4927
|
-
|
4928
|
-
|
4929
|
-
|
4930
|
-
|
4931
|
-
|
4932
|
-
)));
|
4933
|
+
arrowSize: 12,
|
4934
|
+
arrowShadowColor: "none",
|
4935
|
+
defaultIsOpen: true,
|
4936
|
+
...props
|
4937
|
+
},
|
4938
|
+
/* @__PURE__ */ React69__namespace.default.createElement(react.PopoverAnchor, null, children),
|
4939
|
+
/* @__PURE__ */ React69__namespace.default.createElement(react.PopoverContent, { borderRadius: "sm" }, /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverArrow, null), /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverCloseButton, null), /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverBody, { margin: 1 }, /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { marginRight: 4 }, content), /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { marginTop: 1.5 }, actions ?? /* @__PURE__ */ React69__namespace.default.createElement(exports.ButtonGroup, null, /* @__PURE__ */ React69__namespace.default.createElement(exports.Button, { variant: "tertiary", size: "xs" }, t2(texts21.close)), /* @__PURE__ */ React69__namespace.default.createElement(exports.Button, { variant: "secondary", size: "xs", fontWeight: "bold" }, t2(texts21.showMe))))))
|
4940
|
+
));
|
4933
4941
|
};
|
4934
|
-
|
4935
|
-
|
4942
|
+
texts21 = createTexts({
|
4943
|
+
close: {
|
4944
|
+
nb: "Lukk",
|
4945
|
+
nn: "Lukk",
|
4946
|
+
sv: "St\xE4ng",
|
4947
|
+
en: "Close"
|
4948
|
+
},
|
4949
|
+
showMe: {
|
4950
|
+
nb: "Vis meg",
|
4951
|
+
nn: "Vis meg",
|
4952
|
+
sv: "Visa mig",
|
4953
|
+
en: "Show me"
|
4954
|
+
}
|
4955
|
+
});
|
4956
|
+
}
|
4957
|
+
});
|
4958
|
+
exports.WizardNudge = void 0; var NextOrCloseButton, texts22;
|
4959
|
+
var init_WizardNudge = __esm({
|
4960
|
+
"src/nudge/WizardNudge.tsx"() {
|
4961
|
+
init_src();
|
4962
|
+
exports.WizardNudge = ({
|
4963
|
+
children,
|
4964
|
+
name,
|
4965
|
+
onClose,
|
4966
|
+
content,
|
4967
|
+
...props
|
4968
|
+
}) => {
|
4969
|
+
const [currentStep, setCurrentStep] = React69.useState(1);
|
4970
|
+
const totalSteps = content.length;
|
4971
|
+
const isLastStep = totalSteps === currentStep;
|
4972
|
+
const onNext = () => setCurrentStep((prev) => prev + 1);
|
4973
|
+
return /* @__PURE__ */ React69__namespace.default.createElement(
|
4974
|
+
exports.Nudge,
|
4975
|
+
{
|
4976
|
+
onClose,
|
4977
|
+
name,
|
4978
|
+
content: content[currentStep - 1],
|
4979
|
+
actions: /* @__PURE__ */ React69__namespace.default.createElement(react.Flex, { gap: 3, alignItems: "center" }, /* @__PURE__ */ React69__namespace.default.createElement(
|
4980
|
+
exports.ProgressIndicator,
|
4981
|
+
{
|
4982
|
+
activeStep: currentStep,
|
4983
|
+
numberOfSteps: totalSteps
|
4984
|
+
}
|
4985
|
+
), /* @__PURE__ */ React69__namespace.default.createElement(react.Box, null, /* @__PURE__ */ React69__namespace.default.createElement(NextOrCloseButton, { isLastStep, onNext }))),
|
4986
|
+
...props
|
4987
|
+
},
|
4988
|
+
children
|
4989
|
+
);
|
4936
4990
|
};
|
4937
|
-
|
4991
|
+
NextOrCloseButton = ({ isLastStep, onNext }) => {
|
4938
4992
|
const { onClose } = react.usePopoverContext();
|
4939
4993
|
const { t: t2 } = useTranslation();
|
4940
|
-
return /* @__PURE__ */ React69__namespace.createElement(
|
4994
|
+
return /* @__PURE__ */ React69__namespace.default.createElement(
|
4941
4995
|
exports.Button,
|
4942
4996
|
{
|
4943
4997
|
variant: "tertiary",
|
4944
|
-
size: "
|
4945
|
-
|
4946
|
-
|
4947
|
-
|
4998
|
+
size: "xs",
|
4999
|
+
leftIcon: isLastStep ? void 0 : /* @__PURE__ */ React69__namespace.default.createElement(sporIconReact.ArrowRightFill18Icon, null),
|
5000
|
+
onClick: isLastStep ? onClose : onNext,
|
5001
|
+
width: "fit-content"
|
4948
5002
|
},
|
4949
|
-
t2(isLastStep ?
|
5003
|
+
t2(isLastStep ? texts22.finish : texts22.nextStep)
|
4950
5004
|
);
|
4951
5005
|
};
|
4952
|
-
|
5006
|
+
texts22 = createTexts({
|
4953
5007
|
nextStep: {
|
4954
5008
|
nb: "Neste",
|
4955
5009
|
nn: "Neste",
|
@@ -4965,57 +5019,12 @@ var init_PopoverWizardBody = __esm({
|
|
4965
5019
|
});
|
4966
5020
|
}
|
4967
5021
|
});
|
4968
|
-
|
4969
|
-
|
4970
|
-
|
4971
|
-
|
4972
|
-
|
4973
|
-
|
4974
|
-
onClose,
|
4975
|
-
isOpen,
|
4976
|
-
defaultIsOpen,
|
4977
|
-
placement = "bottom",
|
4978
|
-
size: size2 = "sm",
|
4979
|
-
withCloseButton = false,
|
4980
|
-
borderRadius,
|
4981
|
-
...props
|
4982
|
-
}) => {
|
4983
|
-
return /* @__PURE__ */ React69__namespace.default.createElement(react.DarkMode, null, /* @__PURE__ */ React69__namespace.default.createElement(
|
4984
|
-
react.Popover,
|
4985
|
-
{
|
4986
|
-
onClose,
|
4987
|
-
isOpen,
|
4988
|
-
defaultIsOpen,
|
4989
|
-
placement,
|
4990
|
-
size: size2,
|
4991
|
-
arrowSize: 12,
|
4992
|
-
arrowShadowColor: "none",
|
4993
|
-
...props
|
4994
|
-
},
|
4995
|
-
triggerElement && /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverTrigger, null, triggerElement),
|
4996
|
-
/* @__PURE__ */ React69__namespace.default.createElement(react.PopoverContent, { borderRadius }, /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverArrow, null), withCloseButton && /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverCloseButton, null), /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverBody, null, children))
|
4997
|
-
));
|
4998
|
-
};
|
4999
|
-
}
|
5000
|
-
});
|
5001
|
-
exports.WizardPopover = void 0;
|
5002
|
-
var init_WizardPopover = __esm({
|
5003
|
-
"src/popover/WizardPopover.tsx"() {
|
5004
|
-
init_PopoverWizardBody();
|
5005
|
-
exports.WizardPopover = ({
|
5006
|
-
children,
|
5007
|
-
triggerElement,
|
5008
|
-
withCloseButton = false
|
5009
|
-
}) => {
|
5010
|
-
return /* @__PURE__ */ React69__namespace.createElement(react.DarkMode, null, /* @__PURE__ */ React69__namespace.createElement(react.Popover, { size: "lg" }, /* @__PURE__ */ React69__namespace.createElement(react.PopoverTrigger, null, triggerElement), /* @__PURE__ */ React69__namespace.createElement(react.PopoverContent, null, /* @__PURE__ */ React69__namespace.createElement(react.PopoverArrow, null), withCloseButton && /* @__PURE__ */ React69__namespace.createElement(react.PopoverCloseButton, null), /* @__PURE__ */ React69__namespace.createElement(exports.PopoverWizardBody, null, children))));
|
5011
|
-
};
|
5012
|
-
}
|
5013
|
-
});
|
5014
|
-
var init_popover = __esm({
|
5015
|
-
"src/popover/index.tsx"() {
|
5016
|
-
init_PopoverWizardBody();
|
5017
|
-
init_SimplePopover();
|
5018
|
-
init_WizardPopover();
|
5022
|
+
|
5023
|
+
// src/nudge/index.tsx
|
5024
|
+
var init_nudge = __esm({
|
5025
|
+
"src/nudge/index.tsx"() {
|
5026
|
+
init_Nudge();
|
5027
|
+
init_WizardNudge();
|
5019
5028
|
}
|
5020
5029
|
});
|
5021
5030
|
var ProgressDot;
|
@@ -5039,7 +5048,7 @@ var init_ProgressDot = __esm({
|
|
5039
5048
|
};
|
5040
5049
|
}
|
5041
5050
|
});
|
5042
|
-
exports.ProgressIndicator = void 0; var
|
5051
|
+
exports.ProgressIndicator = void 0; var texts23;
|
5043
5052
|
var init_ProgressIndicator = __esm({
|
5044
5053
|
"src/progress-indicator/ProgressIndicator.tsx"() {
|
5045
5054
|
init_src();
|
@@ -5058,12 +5067,19 @@ var init_ProgressIndicator = __esm({
|
|
5058
5067
|
"aria-valuemin": 1,
|
5059
5068
|
"aria-valuemax": numberOfSteps,
|
5060
5069
|
"aria-valuenow": activeStep,
|
5061
|
-
"aria-valuetext": t2(
|
5070
|
+
"aria-valuetext": t2(texts23.stepsOf(activeStep, numberOfSteps))
|
5062
5071
|
},
|
5063
|
-
/* @__PURE__ */ React69__namespace.default.createElement(react.Box, { __css: style.container }, Array.from({ length: numberOfSteps }, (_, i) => /* @__PURE__ */ React69__namespace.default.createElement(
|
5072
|
+
/* @__PURE__ */ React69__namespace.default.createElement(react.Box, { __css: style.container }, Array.from({ length: numberOfSteps }, (_, i) => /* @__PURE__ */ React69__namespace.default.createElement(
|
5073
|
+
ProgressDot,
|
5074
|
+
{
|
5075
|
+
key: i,
|
5076
|
+
"aria-value": i + 1,
|
5077
|
+
isActive: activeStep === i + 1
|
5078
|
+
}
|
5079
|
+
)))
|
5064
5080
|
);
|
5065
5081
|
};
|
5066
|
-
|
5082
|
+
texts23 = createTexts({
|
5067
5083
|
stepsOf: (activeStep, numberOfSteps) => ({
|
5068
5084
|
nb: `Steg ${activeStep} av ${numberOfSteps}`,
|
5069
5085
|
nn: `Steg ${activeStep} av ${numberOfSteps}`,
|
@@ -5135,7 +5151,7 @@ var init_StepperContext = __esm({
|
|
5135
5151
|
};
|
5136
5152
|
}
|
5137
5153
|
});
|
5138
|
-
exports.Stepper = void 0; var
|
5154
|
+
exports.Stepper = void 0; var texts24;
|
5139
5155
|
var init_Stepper = __esm({
|
5140
5156
|
"src/stepper/Stepper.tsx"() {
|
5141
5157
|
init_stepper();
|
@@ -5178,7 +5194,7 @@ var init_Stepper = __esm({
|
|
5178
5194
|
/* @__PURE__ */ React69__namespace.default.createElement(
|
5179
5195
|
exports.IconButton,
|
5180
5196
|
{
|
5181
|
-
"aria-label": t2(
|
5197
|
+
"aria-label": t2(texts24.back),
|
5182
5198
|
icon: /* @__PURE__ */ React69__namespace.default.createElement(sporIconReact.ArrowLeftFill24Icon, null),
|
5183
5199
|
variant: "ghost",
|
5184
5200
|
size: "sm",
|
@@ -5193,7 +5209,7 @@ var init_Stepper = __esm({
|
|
5193
5209
|
}
|
5194
5210
|
),
|
5195
5211
|
shownHeading && /* @__PURE__ */ React69__namespace.default.createElement(exports.Text, { flex: 1, variant: "sm", as: headingLevel, sx: style.title }, shownHeading),
|
5196
|
-
/* @__PURE__ */ React69__namespace.default.createElement(react.Box, { sx: style.stepCounter }, t2(
|
5212
|
+
/* @__PURE__ */ React69__namespace.default.createElement(react.Box, { sx: style.stepCounter }, t2(texts24.stepsOf(activeStep, numberOfSteps)))
|
5197
5213
|
)), /* @__PURE__ */ React69__namespace.default.createElement(react.Flex, { justifyContent: "center", display: ["none", null, "flex"] }, steps.map((step, index) => /* @__PURE__ */ React69__namespace.default.createElement(
|
5198
5214
|
exports.StepperStep,
|
5199
5215
|
{
|
@@ -5207,7 +5223,7 @@ var init_Stepper = __esm({
|
|
5207
5223
|
))))
|
5208
5224
|
));
|
5209
5225
|
};
|
5210
|
-
|
5226
|
+
texts24 = createTexts({
|
5211
5227
|
stepsOf: (activeStep, numberOfSteps) => ({
|
5212
5228
|
nb: `Steg ${activeStep}/${numberOfSteps}`,
|
5213
5229
|
nn: `Steg ${activeStep}/${numberOfSteps}`,
|
@@ -11166,43 +11182,367 @@ var init_foundations = __esm({
|
|
11166
11182
|
init_styles();
|
11167
11183
|
}
|
11168
11184
|
});
|
11169
|
-
|
11170
|
-
|
11171
|
-
|
11172
|
-
|
11173
|
-
|
11174
|
-
|
11175
|
-
|
11176
|
-
|
11177
|
-
|
11178
|
-
}
|
11179
|
-
|
11185
|
+
function baseBackground(state2, props) {
|
11186
|
+
switch (state2) {
|
11187
|
+
case "active":
|
11188
|
+
return {
|
11189
|
+
backgroundColor: themeTools.mode("mint", "whiteAlpha.100")(props)
|
11190
|
+
};
|
11191
|
+
case "selected":
|
11192
|
+
return {
|
11193
|
+
backgroundColor: themeTools.mode("pine", "coralGreen")(props)
|
11194
|
+
};
|
11195
|
+
case "disabled":
|
11196
|
+
return {
|
11197
|
+
backgroundColor: themeTools.mode("silver", "whiteAlpha.100")(props)
|
11198
|
+
};
|
11199
|
+
case "hover":
|
11200
|
+
return {
|
11201
|
+
backgroundColor: "transparent"
|
11202
|
+
};
|
11203
|
+
default:
|
11204
|
+
return {
|
11205
|
+
backgroundColor: "transparent"
|
11206
|
+
};
|
11180
11207
|
}
|
11181
|
-
}
|
11182
|
-
|
11183
|
-
|
11184
|
-
|
11185
|
-
|
11186
|
-
|
11208
|
+
}
|
11209
|
+
function ghostBackground(state2, props) {
|
11210
|
+
switch (state2) {
|
11211
|
+
case "hover": {
|
11212
|
+
return {
|
11213
|
+
backgroundColor: themeTools.mode("seaMist", "whiteAlpha.100")(props)
|
11214
|
+
};
|
11215
|
+
}
|
11216
|
+
case "active":
|
11217
|
+
return {
|
11218
|
+
backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
|
11219
|
+
};
|
11220
|
+
case "focus":
|
11221
|
+
return {
|
11222
|
+
backgroundColor: "transparent"
|
11223
|
+
};
|
11224
|
+
case "selected": {
|
11225
|
+
return {
|
11226
|
+
backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
|
11227
|
+
};
|
11228
|
+
}
|
11229
|
+
case "default":
|
11230
|
+
default:
|
11231
|
+
return {
|
11232
|
+
backgroundColor: "transparent"
|
11233
|
+
};
|
11234
|
+
}
|
11235
|
+
}
|
11236
|
+
function floatingBackground(state2, props) {
|
11237
|
+
switch (state2) {
|
11238
|
+
case "selected":
|
11239
|
+
return {
|
11240
|
+
backgroundColor: themeTools.mode("mint", "pine")(props)
|
11241
|
+
};
|
11242
|
+
case "active":
|
11243
|
+
return {
|
11244
|
+
backgroundColor: themeTools.mode(
|
11245
|
+
"mint",
|
11246
|
+
`color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 30%)`
|
11247
|
+
)(props)
|
11248
|
+
};
|
11249
|
+
case "hover":
|
11250
|
+
return {
|
11251
|
+
backgroundColor: themeTools.mode(
|
11252
|
+
"white",
|
11253
|
+
`color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 20%)`
|
11254
|
+
)(props)
|
11255
|
+
};
|
11256
|
+
case "focus":
|
11257
|
+
return {
|
11258
|
+
backgroundColor: themeTools.mode(
|
11259
|
+
"white",
|
11260
|
+
`color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 40%)`
|
11261
|
+
)(props)
|
11262
|
+
};
|
11263
|
+
case "default":
|
11264
|
+
default:
|
11265
|
+
return {
|
11266
|
+
backgroundColor: themeTools.mode(
|
11267
|
+
"white",
|
11268
|
+
`color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 10%)`
|
11269
|
+
)(props)
|
11270
|
+
};
|
11271
|
+
}
|
11272
|
+
}
|
11273
|
+
function accentBackground(state2, props) {
|
11274
|
+
switch (state2) {
|
11275
|
+
case "selected":
|
11276
|
+
return {
|
11277
|
+
backgroundColor: themeTools.mode("primaryGreen", "coralGreen")(props)
|
11278
|
+
};
|
11279
|
+
case "active":
|
11280
|
+
return {
|
11281
|
+
backgroundColor: themeTools.mode("mint", "darkTeal")(props)
|
11282
|
+
};
|
11283
|
+
case "hover":
|
11284
|
+
return {
|
11285
|
+
backgroundColor: themeTools.mode("coralGreen", "greenHaze")(props)
|
11286
|
+
};
|
11287
|
+
case "focus":
|
11288
|
+
return {
|
11289
|
+
backgroundColor: themeTools.mode("greenHaze", "azure")(props)
|
11290
|
+
};
|
11291
|
+
case "default":
|
11292
|
+
default:
|
11293
|
+
return {
|
11294
|
+
backgroundColor: themeTools.mode("seaMist", "pine")(props)
|
11295
|
+
};
|
11296
|
+
}
|
11297
|
+
}
|
11298
|
+
function brandBackground(state2, props) {
|
11299
|
+
switch (state2) {
|
11300
|
+
case "selected":
|
11301
|
+
case "active":
|
11302
|
+
return {
|
11303
|
+
backgroundColor: themeTools.mode("greenHaze", "seaMist")(props)
|
11304
|
+
};
|
11305
|
+
case "hover":
|
11306
|
+
return {
|
11307
|
+
backgroundColor: themeTools.mode("darkTeal", "blueGreen")(props)
|
11308
|
+
};
|
11309
|
+
case "focus":
|
11310
|
+
case "default":
|
11311
|
+
default:
|
11312
|
+
return {
|
11313
|
+
backgroundColor: themeTools.mode("pine", "coralGreen")(props)
|
11314
|
+
};
|
11315
|
+
}
|
11316
|
+
}
|
11317
|
+
var init_background_utils = __esm({
|
11318
|
+
"src/theme/utils/background-utils.ts"() {
|
11187
11319
|
init_foundations();
|
11188
|
-
|
11189
|
-
|
11190
|
-
|
11191
|
-
|
11192
|
-
|
11193
|
-
|
11194
|
-
|
11195
|
-
|
11196
|
-
|
11197
|
-
|
11198
|
-
|
11199
|
-
|
11200
|
-
|
11201
|
-
|
11202
|
-
borderColor: "
|
11320
|
+
}
|
11321
|
+
});
|
11322
|
+
function baseBorder(state2, props) {
|
11323
|
+
switch (state2) {
|
11324
|
+
case "hover":
|
11325
|
+
return {
|
11326
|
+
boxShadow: getBoxShadowString({
|
11327
|
+
borderColor: themeTools.mode("darkGrey", "white")(props),
|
11328
|
+
borderWidth: 2
|
11329
|
+
})
|
11330
|
+
};
|
11331
|
+
case "focus": {
|
11332
|
+
return {
|
11333
|
+
boxShadow: getBoxShadowString({
|
11334
|
+
borderColor: themeTools.mode("greenHaze", "azure")(props),
|
11335
|
+
borderWidth: 2
|
11336
|
+
})
|
11337
|
+
};
|
11338
|
+
}
|
11339
|
+
case "disabled": {
|
11340
|
+
return {
|
11341
|
+
boxShadow: getBoxShadowString({
|
11342
|
+
borderColor: themeTools.mode("platinum", "whiteAlpha.400")(props)
|
11343
|
+
})
|
11344
|
+
};
|
11345
|
+
}
|
11346
|
+
case "selected":
|
11347
|
+
return {
|
11348
|
+
boxShadow: getBoxShadowString({
|
11349
|
+
borderColor: themeTools.mode("greenHaze", "azure")(props)
|
11350
|
+
})
|
11351
|
+
};
|
11352
|
+
case "invalid": {
|
11353
|
+
return {
|
11354
|
+
boxShadow: getBoxShadowString({
|
11355
|
+
borderColor: "brightRed",
|
11356
|
+
borderWidth: 2
|
11357
|
+
})
|
11358
|
+
};
|
11359
|
+
}
|
11360
|
+
case "default":
|
11361
|
+
default:
|
11362
|
+
return {
|
11363
|
+
boxShadow: getBoxShadowString({
|
11364
|
+
borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
|
11365
|
+
})
|
11366
|
+
};
|
11367
|
+
}
|
11368
|
+
}
|
11369
|
+
function floatingBorder(state2, props) {
|
11370
|
+
switch (state2) {
|
11371
|
+
case "hover":
|
11372
|
+
return {
|
11373
|
+
boxShadow: getBoxShadowString({
|
11374
|
+
borderColor: themeTools.mode("grey.300", "white")(props)
|
11375
|
+
})
|
11376
|
+
};
|
11377
|
+
case "selected":
|
11378
|
+
case "focus":
|
11379
|
+
return {
|
11380
|
+
boxShadow: getBoxShadowString({
|
11381
|
+
borderColor: themeTools.mode("greenHaze", "azure")(props),
|
11382
|
+
borderWidth: 2
|
11383
|
+
})
|
11384
|
+
};
|
11385
|
+
case "active":
|
11386
|
+
case "default":
|
11387
|
+
default:
|
11388
|
+
return {
|
11389
|
+
boxShadow: getBoxShadowString({
|
11390
|
+
borderColor: themeTools.mode("grey.200", "whiteAlpha.400")(props),
|
11391
|
+
baseShadow: "sm"
|
11392
|
+
})
|
11393
|
+
};
|
11394
|
+
}
|
11395
|
+
}
|
11396
|
+
function accentBorder(state2, props) {
|
11397
|
+
switch (state2) {
|
11398
|
+
case "selected":
|
11399
|
+
return {
|
11400
|
+
boxShadow: getBoxShadowString({
|
11401
|
+
borderColor: themeTools.mode("primaryGreen", "coralGreen")(props),
|
11402
|
+
borderWidth: 2
|
11403
|
+
})
|
11404
|
+
};
|
11405
|
+
case "active":
|
11406
|
+
return {
|
11407
|
+
boxShadow: getBoxShadowString({
|
11408
|
+
borderColor: themeTools.mode("mint", "darkTeal")(props),
|
11409
|
+
borderWidth: 2
|
11410
|
+
})
|
11411
|
+
};
|
11412
|
+
case "hover":
|
11413
|
+
return {
|
11414
|
+
boxShadow: getBoxShadowString({
|
11415
|
+
borderColor: themeTools.mode("coralGreen", "greenHaze")(props),
|
11416
|
+
borderWidth: 2
|
11417
|
+
})
|
11418
|
+
};
|
11419
|
+
case "focus":
|
11420
|
+
return {
|
11421
|
+
boxShadow: getBoxShadowString({
|
11422
|
+
borderColor: themeTools.mode("greenHaze", "azure")(props),
|
11423
|
+
borderWidth: 2
|
11424
|
+
})
|
11425
|
+
};
|
11426
|
+
case "default":
|
11427
|
+
default:
|
11428
|
+
return {
|
11429
|
+
boxShadow: getBoxShadowString({
|
11430
|
+
borderColor: themeTools.mode("seaMist", "pine")(props),
|
11431
|
+
borderWidth: 2
|
11432
|
+
})
|
11433
|
+
};
|
11434
|
+
}
|
11435
|
+
}
|
11436
|
+
function brandBorder(state2, props) {
|
11437
|
+
switch (state2) {
|
11438
|
+
case "selected":
|
11439
|
+
case "active":
|
11440
|
+
return {
|
11441
|
+
boxShadow: getBoxShadowString({
|
11442
|
+
borderColor: themeTools.mode("greenHaze", "seaMist")(props),
|
11443
|
+
borderWidth: 2
|
11444
|
+
})
|
11445
|
+
};
|
11446
|
+
case "hover":
|
11447
|
+
return {
|
11448
|
+
boxShadow: getBoxShadowString({
|
11449
|
+
borderColor: themeTools.mode("darkTeal", "blueGreen")(props),
|
11450
|
+
borderWidth: 2
|
11451
|
+
})
|
11452
|
+
};
|
11453
|
+
case "focus":
|
11454
|
+
case "default":
|
11455
|
+
default:
|
11456
|
+
return {
|
11457
|
+
boxShadow: getBoxShadowString({
|
11458
|
+
borderColor: themeTools.mode("pine", "coralGreen")(props),
|
11459
|
+
borderWidth: 2
|
11460
|
+
})
|
11461
|
+
};
|
11462
|
+
}
|
11463
|
+
}
|
11464
|
+
var init_border_utils = __esm({
|
11465
|
+
"src/theme/utils/border-utils.ts"() {
|
11466
|
+
init_box_shadow_utils();
|
11467
|
+
}
|
11468
|
+
});
|
11469
|
+
var focusVisibleStyles;
|
11470
|
+
var init_focus_util = __esm({
|
11471
|
+
"src/theme/utils/focus-util.ts"() {
|
11472
|
+
focusVisibleStyles = (props) => ({
|
11473
|
+
_focusVisible: {
|
11474
|
+
outlineWidth: "2px",
|
11475
|
+
outlineColor: themeTools.mode("greenHaze", "azure")(props),
|
11476
|
+
outlineStyle: "solid",
|
11477
|
+
outlineOffset: "1px"
|
11478
|
+
}
|
11479
|
+
});
|
11480
|
+
}
|
11481
|
+
});
|
11482
|
+
function baseText(state2, props) {
|
11483
|
+
switch (state2) {
|
11484
|
+
case "selected":
|
11485
|
+
return {
|
11486
|
+
color: themeTools.mode("white", "darkTeal")(props)
|
11487
|
+
};
|
11488
|
+
case "disabled":
|
11489
|
+
return {
|
11490
|
+
color: themeTools.mode(
|
11491
|
+
"white",
|
11492
|
+
`color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 40%)`
|
11493
|
+
)(props)
|
11494
|
+
};
|
11495
|
+
default:
|
11496
|
+
return {
|
11497
|
+
color: themeTools.mode("darkGrey", "white")(props)
|
11498
|
+
};
|
11499
|
+
}
|
11500
|
+
}
|
11501
|
+
function accentText(state2, props) {
|
11502
|
+
switch (state2) {
|
11503
|
+
case "selected":
|
11504
|
+
return {
|
11505
|
+
color: themeTools.mode("white", "darkTeal")(props)
|
11506
|
+
};
|
11507
|
+
case "default":
|
11508
|
+
default:
|
11509
|
+
return {
|
11510
|
+
color: themeTools.mode("darkTeal", "seaMist")(props)
|
11511
|
+
};
|
11512
|
+
}
|
11513
|
+
}
|
11514
|
+
var init_text_utils = __esm({
|
11515
|
+
"src/theme/utils/text-utils.ts"() {
|
11516
|
+
init_foundations();
|
11517
|
+
}
|
11518
|
+
});
|
11519
|
+
|
11520
|
+
// src/theme/components/accordion.ts
|
11521
|
+
var helpers, config3, accordion_default;
|
11522
|
+
var init_accordion2 = __esm({
|
11523
|
+
"src/theme/components/accordion.ts"() {
|
11524
|
+
init_dist4();
|
11525
|
+
init_dist3();
|
11526
|
+
init_background_utils();
|
11527
|
+
init_border_utils();
|
11528
|
+
init_focus_util();
|
11529
|
+
init_text_utils();
|
11530
|
+
helpers = createMultiStyleConfigHelpers(accordionAnatomy.keys);
|
11531
|
+
config3 = helpers.defineMultiStyleConfig({
|
11532
|
+
baseStyle: (props) => ({
|
11533
|
+
container: {
|
11534
|
+
border: "none",
|
11535
|
+
borderRadius: "sm"
|
11536
|
+
},
|
11537
|
+
button: {
|
11538
|
+
transitionProperty: "background-color, color, border-radius, box-shadow, opacity",
|
11539
|
+
transitionDuration: "normal",
|
11540
|
+
border: "none",
|
11541
|
+
borderRadius: "sm",
|
11542
|
+
borderColor: "osloGrey",
|
11203
11543
|
display: "flex",
|
11204
11544
|
justifyContent: "space-between",
|
11205
|
-
|
11545
|
+
...baseText("default", props),
|
11206
11546
|
textAlign: "left",
|
11207
11547
|
fontFamily: "body",
|
11208
11548
|
fontWeight: "bold",
|
@@ -11221,70 +11561,50 @@ var init_accordion2 = __esm({
|
|
11221
11561
|
}
|
11222
11562
|
}),
|
11223
11563
|
variants: {
|
11224
|
-
|
11564
|
+
ghost: (props) => ({
|
11225
11565
|
button: {
|
11226
11566
|
boxShadow: "none",
|
11227
11567
|
_hover: {
|
11228
|
-
|
11568
|
+
...ghostBackground("hover", props)
|
11229
11569
|
},
|
11230
11570
|
_active: {
|
11231
|
-
|
11571
|
+
...ghostBackground("active", props)
|
11232
11572
|
}
|
11233
11573
|
}
|
11234
11574
|
}),
|
11235
|
-
|
11575
|
+
base: (props) => ({
|
11236
11576
|
container: {
|
11237
|
-
|
11238
|
-
borderColor: themeTools.mode(
|
11239
|
-
colors.blackAlpha["400"],
|
11240
|
-
colors.whiteAlpha["400"]
|
11241
|
-
)(props)
|
11242
|
-
})
|
11577
|
+
...baseBorder("default", props)
|
11243
11578
|
},
|
11244
11579
|
button: {
|
11245
11580
|
_expanded: {
|
11246
11581
|
borderBottomRadius: "none"
|
11247
11582
|
},
|
11248
11583
|
_hover: {
|
11249
|
-
|
11250
|
-
borderColor: themeTools.mode("darkGrey", "white")(props),
|
11251
|
-
borderWidth: 2
|
11252
|
-
})
|
11584
|
+
...baseBorder("hover", props)
|
11253
11585
|
},
|
11254
11586
|
_active: {
|
11255
|
-
|
11256
|
-
|
11257
|
-
borderColor: themeTools.mode("darkGrey", colors.whiteAlpha[400])(props)
|
11258
|
-
})
|
11587
|
+
...baseBackground("active", props),
|
11588
|
+
...baseBorder("default", props)
|
11259
11589
|
}
|
11260
11590
|
}
|
11261
11591
|
}),
|
11262
|
-
|
11592
|
+
floating: (props) => ({
|
11263
11593
|
container: {
|
11264
|
-
|
11265
|
-
|
11266
|
-
baseShadow: themeTools.mode("sm", "none")(props),
|
11267
|
-
borderColor: themeTools.mode("silver", "whiteAlpha.400")(props)
|
11268
|
-
})
|
11594
|
+
...floatingBackground("default", props),
|
11595
|
+
...floatingBorder("default", props)
|
11269
11596
|
},
|
11270
11597
|
button: {
|
11271
11598
|
_expanded: {
|
11272
11599
|
borderBottomRadius: "none"
|
11273
11600
|
},
|
11274
11601
|
_hover: {
|
11275
|
-
|
11276
|
-
|
11277
|
-
borderColor: themeTools.mode("darkGrey", "white")(props),
|
11278
|
-
borderWidth: 1
|
11279
|
-
})
|
11602
|
+
...ghostBackground("hover", props),
|
11603
|
+
...floatingBorder("default", props)
|
11280
11604
|
},
|
11281
11605
|
_active: {
|
11282
|
-
|
11283
|
-
|
11284
|
-
baseShadow: "none",
|
11285
|
-
borderWidth: 1,
|
11286
|
-
borderColor: themeTools.mode("darkGrey", "whiteAlpha.400")(props)
|
11287
|
-
})
|
11606
|
+
...ghostBackground("active", props),
|
11607
|
+
...floatingBorder("default", props)
|
11288
11608
|
}
|
11289
11609
|
}
|
11290
11610
|
})
|
@@ -11328,7 +11648,7 @@ var init_accordion2 = __esm({
|
|
11328
11648
|
}
|
11329
11649
|
},
|
11330
11650
|
defaultProps: {
|
11331
|
-
variant: "
|
11651
|
+
variant: "ghost",
|
11332
11652
|
size: "sm"
|
11333
11653
|
}
|
11334
11654
|
});
|
@@ -11679,7 +11999,6 @@ var init_button2 = __esm({
|
|
11679
11999
|
minHeight: 5,
|
11680
12000
|
minWidth: 5,
|
11681
12001
|
fontSize: "16px",
|
11682
|
-
paddingX: 2,
|
11683
12002
|
fontWeight: "normal"
|
11684
12003
|
}
|
11685
12004
|
},
|
@@ -11801,143 +12120,54 @@ var init_card2 = __esm({
|
|
11801
12120
|
borderColor: colors.steel
|
11802
12121
|
})
|
11803
12122
|
};
|
11804
|
-
case "grey":
|
11805
|
-
return {
|
11806
|
-
boxShadow: getBoxShadowString({
|
11807
|
-
baseShadow,
|
11808
|
-
borderColor: colors.osloGrey
|
11809
|
-
})
|
11810
|
-
};
|
11811
|
-
default:
|
11812
|
-
return {
|
11813
|
-
backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[200]) ?? "silver",
|
11814
|
-
boxShadow: getBoxShadowString({
|
11815
|
-
baseShadow,
|
11816
|
-
borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver
|
11817
|
-
})
|
11818
|
-
};
|
11819
|
-
}
|
11820
|
-
};
|
11821
|
-
getColorSchemeActiveProps = (props) => {
|
11822
|
-
var _a6, _b5;
|
11823
|
-
const { colorScheme, size: size2 } = props;
|
11824
|
-
const baseShadow = size2 === "lg" ? "sm" : "none";
|
11825
|
-
switch (colorScheme) {
|
11826
|
-
case "white":
|
11827
|
-
return {
|
11828
|
-
backgroundColor: themeTools.mode("mint", "teal")(props),
|
11829
|
-
boxShadow: getBoxShadowString({
|
11830
|
-
baseShadow,
|
11831
|
-
borderColor: colors.silver
|
11832
|
-
})
|
11833
|
-
};
|
11834
|
-
case "grey":
|
11835
|
-
return {
|
11836
|
-
backgroundColor: "white",
|
11837
|
-
boxShadow: getBoxShadowString({
|
11838
|
-
baseShadow,
|
11839
|
-
borderColor: colors.steel
|
11840
|
-
})
|
11841
|
-
};
|
11842
|
-
default:
|
11843
|
-
return {
|
11844
|
-
backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[50]) ?? "lightGrey",
|
11845
|
-
boxShadow: getBoxShadowString({
|
11846
|
-
baseShadow,
|
11847
|
-
borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver
|
11848
|
-
})
|
11849
|
-
};
|
11850
|
-
}
|
11851
|
-
};
|
11852
|
-
}
|
11853
|
-
});
|
11854
|
-
function baseBackground(state2, props) {
|
11855
|
-
switch (state2) {
|
11856
|
-
case "active":
|
11857
|
-
return {
|
11858
|
-
backgroundColor: themeTools.mode("mint", "whiteAlpha.100")(props)
|
11859
|
-
};
|
11860
|
-
case "selected":
|
11861
|
-
return {
|
11862
|
-
backgroundColor: themeTools.mode("pine", "coralGreen")(props)
|
11863
|
-
};
|
11864
|
-
case "disabled":
|
11865
|
-
return {
|
11866
|
-
backgroundColor: themeTools.mode("silver", "whiteAlpha.100")(props)
|
11867
|
-
};
|
11868
|
-
default:
|
11869
|
-
return {
|
11870
|
-
backgroundColor: "transparent"
|
11871
|
-
};
|
11872
|
-
}
|
11873
|
-
}
|
11874
|
-
function ghostBackground(state2, props) {
|
11875
|
-
switch (state2) {
|
11876
|
-
case "hover": {
|
11877
|
-
return {
|
11878
|
-
backgroundColor: themeTools.mode("seaMist", "whiteAlpha.100")(props)
|
11879
|
-
};
|
11880
|
-
}
|
11881
|
-
case "active":
|
11882
|
-
return {
|
11883
|
-
backgroundColor: themeTools.mode("seaMist", "whiteAlpha.200")(props)
|
11884
|
-
};
|
11885
|
-
case "focus":
|
11886
|
-
return {
|
11887
|
-
backgroundColor: "transparent"
|
11888
|
-
};
|
11889
|
-
case "selected": {
|
11890
|
-
return {
|
11891
|
-
backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
|
11892
|
-
};
|
11893
|
-
}
|
11894
|
-
case "default":
|
11895
|
-
default:
|
11896
|
-
return {
|
11897
|
-
backgroundColor: "transparent"
|
11898
|
-
};
|
11899
|
-
}
|
11900
|
-
}
|
11901
|
-
function floatingBackground(state2, props) {
|
11902
|
-
switch (state2) {
|
11903
|
-
case "selected":
|
11904
|
-
return {
|
11905
|
-
backgroundColor: themeTools.mode("mint", "pine")(props)
|
11906
|
-
};
|
11907
|
-
case "active":
|
11908
|
-
return {
|
11909
|
-
backgroundColor: themeTools.mode(
|
11910
|
-
"mint",
|
11911
|
-
`color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 30%)`
|
11912
|
-
)(props)
|
11913
|
-
};
|
11914
|
-
case "hover":
|
11915
|
-
return {
|
11916
|
-
backgroundColor: themeTools.mode(
|
11917
|
-
"white",
|
11918
|
-
`color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 20%)`
|
11919
|
-
)(props)
|
11920
|
-
};
|
11921
|
-
case "focus":
|
11922
|
-
return {
|
11923
|
-
backgroundColor: themeTools.mode(
|
11924
|
-
"white",
|
11925
|
-
`color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 40%)`
|
11926
|
-
)(props)
|
11927
|
-
};
|
11928
|
-
case "default":
|
11929
|
-
default:
|
11930
|
-
return {
|
11931
|
-
backgroundColor: themeTools.mode(
|
11932
|
-
"white",
|
11933
|
-
`color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 10%)`
|
11934
|
-
)(props)
|
11935
|
-
};
|
11936
|
-
}
|
11937
|
-
}
|
11938
|
-
var init_background_utils = __esm({
|
11939
|
-
"src/theme/utils/background-utils.ts"() {
|
11940
|
-
init_foundations();
|
12123
|
+
case "grey":
|
12124
|
+
return {
|
12125
|
+
boxShadow: getBoxShadowString({
|
12126
|
+
baseShadow,
|
12127
|
+
borderColor: colors.osloGrey
|
12128
|
+
})
|
12129
|
+
};
|
12130
|
+
default:
|
12131
|
+
return {
|
12132
|
+
backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[200]) ?? "silver",
|
12133
|
+
boxShadow: getBoxShadowString({
|
12134
|
+
baseShadow,
|
12135
|
+
borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[400]) ?? colors.silver
|
12136
|
+
})
|
12137
|
+
};
|
12138
|
+
}
|
12139
|
+
};
|
12140
|
+
getColorSchemeActiveProps = (props) => {
|
12141
|
+
var _a6, _b5;
|
12142
|
+
const { colorScheme, size: size2 } = props;
|
12143
|
+
const baseShadow = size2 === "lg" ? "sm" : "none";
|
12144
|
+
switch (colorScheme) {
|
12145
|
+
case "white":
|
12146
|
+
return {
|
12147
|
+
backgroundColor: themeTools.mode("mint", "teal")(props),
|
12148
|
+
boxShadow: getBoxShadowString({
|
12149
|
+
baseShadow,
|
12150
|
+
borderColor: colors.silver
|
12151
|
+
})
|
12152
|
+
};
|
12153
|
+
case "grey":
|
12154
|
+
return {
|
12155
|
+
backgroundColor: "white",
|
12156
|
+
boxShadow: getBoxShadowString({
|
12157
|
+
baseShadow,
|
12158
|
+
borderColor: colors.steel
|
12159
|
+
})
|
12160
|
+
};
|
12161
|
+
default:
|
12162
|
+
return {
|
12163
|
+
backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[50]) ?? "lightGrey",
|
12164
|
+
boxShadow: getBoxShadowString({
|
12165
|
+
baseShadow,
|
12166
|
+
borderColor: ((_b5 = colors[colorScheme]) == null ? void 0 : _b5[100]) ?? colors.silver
|
12167
|
+
})
|
12168
|
+
};
|
12169
|
+
}
|
12170
|
+
};
|
11941
12171
|
}
|
11942
12172
|
});
|
11943
12173
|
var parts2, helpers3, config8, card_select_default;
|
@@ -12169,73 +12399,161 @@ var init_checkbox = __esm({
|
|
12169
12399
|
var parts3, helpers5, config10, choice_chip_default;
|
12170
12400
|
var init_choice_chip = __esm({
|
12171
12401
|
"src/theme/components/choice-chip.ts"() {
|
12172
|
-
init_box_shadow_utils();
|
12173
12402
|
init_focus_util();
|
12403
|
+
init_background_utils();
|
12404
|
+
init_text_utils();
|
12405
|
+
init_border_utils();
|
12174
12406
|
parts3 = themeTools.anatomy("choice-chip").parts("container", "icon", "label");
|
12175
12407
|
helpers5 = react.createMultiStyleConfigHelpers(parts3.keys);
|
12176
12408
|
config10 = helpers5.defineMultiStyleConfig({
|
12177
12409
|
baseStyle: (props) => ({
|
12178
12410
|
container: {
|
12179
|
-
backgroundColor: themeTools.mode("white", "transparent")(props),
|
12180
|
-
boxShadow: getBoxShadowString({ borderColor: "celadon" }),
|
12181
|
-
color: themeTools.mode("darkTeal", "white")(props),
|
12182
12411
|
display: "inline-flex",
|
12183
12412
|
alignItems: "center",
|
12184
12413
|
fontSize: "16px",
|
12185
12414
|
px: 1,
|
12415
|
+
cursor: "pointer",
|
12186
12416
|
_checked: {
|
12187
|
-
|
12188
|
-
|
12189
|
-
|
12417
|
+
...accentText("selected", props),
|
12418
|
+
...accentBackground("selected", props),
|
12419
|
+
...accentBorder("selected", props),
|
12420
|
+
_hover: {
|
12421
|
+
...brandBackground("hover", props),
|
12422
|
+
...baseText("selected", props),
|
12423
|
+
...brandBorder("hover", props)
|
12424
|
+
},
|
12425
|
+
_active: {
|
12426
|
+
...baseText("selected", props),
|
12427
|
+
...brandBackground("active", props),
|
12428
|
+
...brandBorder("active", props)
|
12429
|
+
}
|
12190
12430
|
},
|
12191
|
-
|
12192
|
-
|
12431
|
+
_disabled: {
|
12432
|
+
cursor: "not-allowed",
|
12433
|
+
boxShadow: "none",
|
12434
|
+
...baseText("disabled", props),
|
12435
|
+
...baseBackground("disabled", props),
|
12193
12436
|
_hover: {
|
12194
|
-
|
12195
|
-
boxShadow:
|
12196
|
-
|
12197
|
-
|
12198
|
-
|
12199
|
-
|
12200
|
-
|
12437
|
+
...baseBackground("disabled", props),
|
12438
|
+
boxShadow: "none",
|
12439
|
+
...baseText("disabled", props)
|
12440
|
+
},
|
12441
|
+
_checked: {
|
12442
|
+
cursor: "not-allowed",
|
12443
|
+
boxShadow: "none",
|
12444
|
+
...baseText("disabled", props),
|
12445
|
+
...baseBackground("disabled", props),
|
12446
|
+
_hover: {
|
12447
|
+
...baseBackground("disabled", props),
|
12448
|
+
boxShadow: "none",
|
12449
|
+
...baseText("disabled", props)
|
12450
|
+
}
|
12201
12451
|
}
|
12202
12452
|
},
|
12203
|
-
|
12204
|
-
backgroundColor: themeTools.mode("mint", "whiteAlpha.300")(props),
|
12205
|
-
boxShadow: getBoxShadowString({
|
12206
|
-
borderColor: "pine"
|
12207
|
-
})
|
12208
|
-
}
|
12453
|
+
"input:focus-visible + &": focusVisibleStyles(props)._focusVisible
|
12209
12454
|
},
|
12210
12455
|
icon: {
|
12211
12456
|
mr: props.hasLabel ? 1 : 0
|
12212
12457
|
}
|
12213
12458
|
}),
|
12459
|
+
variants: {
|
12460
|
+
base: (props) => ({
|
12461
|
+
container: {
|
12462
|
+
...baseBackground("default", props),
|
12463
|
+
...baseBorder("default", props),
|
12464
|
+
...baseText("default", props),
|
12465
|
+
"@media (hover:hover)": {
|
12466
|
+
_hover: {
|
12467
|
+
...baseText("default", props),
|
12468
|
+
...baseBorder("hover", props),
|
12469
|
+
...baseBackground("hover", props)
|
12470
|
+
}
|
12471
|
+
},
|
12472
|
+
_active: {
|
12473
|
+
...baseBackground("active", props),
|
12474
|
+
...baseBorder("default", props)
|
12475
|
+
}
|
12476
|
+
}
|
12477
|
+
}),
|
12478
|
+
accent: (props) => ({
|
12479
|
+
container: {
|
12480
|
+
...accentBackground("default", props),
|
12481
|
+
...accentText("default", props),
|
12482
|
+
...accentBorder("default", props),
|
12483
|
+
"@media (hover:hover)": {
|
12484
|
+
_hover: {
|
12485
|
+
...accentBackground("hover", props),
|
12486
|
+
...accentBorder("hover", props),
|
12487
|
+
...accentText("default", props)
|
12488
|
+
}
|
12489
|
+
},
|
12490
|
+
_active: {
|
12491
|
+
...accentText("default", props),
|
12492
|
+
...accentBorder("active", props),
|
12493
|
+
...accentBackground("active", props)
|
12494
|
+
}
|
12495
|
+
},
|
12496
|
+
_active: {
|
12497
|
+
...accentText("default", props),
|
12498
|
+
...accentBorder("active", props),
|
12499
|
+
...accentBackground("active", props)
|
12500
|
+
}
|
12501
|
+
}),
|
12502
|
+
floating: (props) => ({
|
12503
|
+
container: {
|
12504
|
+
...floatingBackground("default", props),
|
12505
|
+
...baseText("default", props),
|
12506
|
+
...floatingBorder("default", props),
|
12507
|
+
_hover: {
|
12508
|
+
...floatingBackground("hover", props),
|
12509
|
+
...floatingBorder("hover", props),
|
12510
|
+
...baseText("default", props)
|
12511
|
+
},
|
12512
|
+
_active: {
|
12513
|
+
...floatingBackground("active", props),
|
12514
|
+
...floatingBorder("active", props),
|
12515
|
+
...baseText("default", props)
|
12516
|
+
}
|
12517
|
+
}
|
12518
|
+
})
|
12519
|
+
},
|
12214
12520
|
sizes: {
|
12215
12521
|
sm: {
|
12216
12522
|
container: {
|
12217
|
-
borderRadius: "
|
12523
|
+
borderRadius: "30px",
|
12524
|
+
_checked: {
|
12525
|
+
borderRadius: "9px"
|
12526
|
+
},
|
12218
12527
|
height: "30px",
|
12219
12528
|
px: 1.5
|
12220
12529
|
}
|
12221
12530
|
},
|
12222
12531
|
md: {
|
12223
12532
|
container: {
|
12224
|
-
borderRadius: "
|
12533
|
+
borderRadius: "30px",
|
12534
|
+
_checked: {
|
12535
|
+
borderRadius: "12px"
|
12536
|
+
},
|
12225
12537
|
height: "36px",
|
12226
12538
|
px: 2
|
12227
12539
|
}
|
12228
12540
|
},
|
12229
12541
|
lg: {
|
12230
12542
|
container: {
|
12231
|
-
borderRadius: "
|
12543
|
+
borderRadius: "30px",
|
12544
|
+
_checked: {
|
12545
|
+
borderRadius: "12px"
|
12546
|
+
},
|
12232
12547
|
height: "42px",
|
12233
12548
|
px: 2
|
12234
12549
|
}
|
12235
12550
|
},
|
12236
12551
|
xl: {
|
12237
12552
|
container: {
|
12238
|
-
borderRadius: "
|
12553
|
+
borderRadius: "30px",
|
12554
|
+
_checked: {
|
12555
|
+
borderRadius: "18px"
|
12556
|
+
},
|
12239
12557
|
height: "54px",
|
12240
12558
|
px: 3
|
12241
12559
|
}
|
@@ -12371,10 +12689,6 @@ var init_datepicker2 = __esm({
|
|
12371
12689
|
},
|
12372
12690
|
calendarTriggerButton: {
|
12373
12691
|
backgroundColor: themeTools.mode("white", "night")(props),
|
12374
|
-
boxShadow: getBoxShadowString({
|
12375
|
-
borderColor: themeTools.mode("darkGrey", "white")(props),
|
12376
|
-
borderWidth: 1
|
12377
|
-
}),
|
12378
12692
|
width: 8,
|
12379
12693
|
display: "flex",
|
12380
12694
|
alignItems: "center",
|
@@ -12932,84 +13246,6 @@ var init_form_label = __esm({
|
|
12932
13246
|
form_label_default = config17;
|
12933
13247
|
}
|
12934
13248
|
});
|
12935
|
-
function baseBorder(state2, props) {
|
12936
|
-
switch (state2) {
|
12937
|
-
case "hover":
|
12938
|
-
return {
|
12939
|
-
boxShadow: getBoxShadowString({
|
12940
|
-
borderColor: themeTools.mode("darkGrey", "white")(props),
|
12941
|
-
borderWidth: 2
|
12942
|
-
})
|
12943
|
-
};
|
12944
|
-
case "focus": {
|
12945
|
-
return {
|
12946
|
-
boxShadow: getBoxShadowString({
|
12947
|
-
borderColor: themeTools.mode("greenHaze", "azure")(props),
|
12948
|
-
borderWidth: 2
|
12949
|
-
})
|
12950
|
-
};
|
12951
|
-
}
|
12952
|
-
case "disabled": {
|
12953
|
-
return {
|
12954
|
-
boxShadow: getBoxShadowString({
|
12955
|
-
borderColor: themeTools.mode("platinum", "whiteAlpha.400")(props)
|
12956
|
-
})
|
12957
|
-
};
|
12958
|
-
}
|
12959
|
-
case "selected":
|
12960
|
-
return {
|
12961
|
-
boxShadow: getBoxShadowString({
|
12962
|
-
borderColor: themeTools.mode("greenHaze", "azure")(props)
|
12963
|
-
})
|
12964
|
-
};
|
12965
|
-
case "invalid": {
|
12966
|
-
return {
|
12967
|
-
boxShadow: getBoxShadowString({
|
12968
|
-
borderColor: "brightRed",
|
12969
|
-
borderWidth: 2
|
12970
|
-
})
|
12971
|
-
};
|
12972
|
-
}
|
12973
|
-
case "default":
|
12974
|
-
default:
|
12975
|
-
return {
|
12976
|
-
boxShadow: getBoxShadowString({
|
12977
|
-
borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
|
12978
|
-
})
|
12979
|
-
};
|
12980
|
-
}
|
12981
|
-
}
|
12982
|
-
function floatingBorder(state2, props) {
|
12983
|
-
switch (state2) {
|
12984
|
-
case "hover":
|
12985
|
-
return {
|
12986
|
-
boxShadow: getBoxShadowString({
|
12987
|
-
borderColor: themeTools.mode("grey.300", "white")(props)
|
12988
|
-
})
|
12989
|
-
};
|
12990
|
-
case "selected":
|
12991
|
-
case "focus":
|
12992
|
-
return {
|
12993
|
-
boxShadow: getBoxShadowString({
|
12994
|
-
borderColor: themeTools.mode("greenHaze", "azure")(props),
|
12995
|
-
borderWidth: 2
|
12996
|
-
})
|
12997
|
-
};
|
12998
|
-
case "active":
|
12999
|
-
case "default":
|
13000
|
-
default:
|
13001
|
-
return {
|
13002
|
-
boxShadow: getBoxShadowString({
|
13003
|
-
borderColor: themeTools.mode("grey.200", "whiteAlpha.400")(props)
|
13004
|
-
})
|
13005
|
-
};
|
13006
|
-
}
|
13007
|
-
}
|
13008
|
-
var init_border_utils = __esm({
|
13009
|
-
"src/theme/utils/border-utils.ts"() {
|
13010
|
-
init_box_shadow_utils();
|
13011
|
-
}
|
13012
|
-
});
|
13013
13249
|
|
13014
13250
|
// src/theme/utils/sr-utils.ts
|
13015
13251
|
var srOnly2;
|
@@ -13976,7 +14212,7 @@ var init_modal2 = __esm({
|
|
13976
14212
|
}
|
13977
14213
|
});
|
13978
14214
|
var $popperBg2, $arrowBg3, $arrowShadowColor2, helpers18, config27, popover_default;
|
13979
|
-
var
|
14215
|
+
var init_popover = __esm({
|
13980
14216
|
"src/theme/components/popover.ts"() {
|
13981
14217
|
init_dist4();
|
13982
14218
|
init_focus_util();
|
@@ -13990,7 +14226,7 @@ var init_popover2 = __esm({
|
|
13990
14226
|
zIndex: "popover"
|
13991
14227
|
},
|
13992
14228
|
content: {
|
13993
|
-
[$popperBg2.variable]:
|
14229
|
+
[$popperBg2.variable]: `colors.darkTeal`,
|
13994
14230
|
backgroundColor: $popperBg2.reference,
|
13995
14231
|
[$arrowBg3.variable]: $popperBg2.reference,
|
13996
14232
|
[$arrowShadowColor2.variable]: `colors.blackAlpha.300`,
|
@@ -14012,14 +14248,13 @@ var init_popover2 = __esm({
|
|
14012
14248
|
closeButton: {
|
14013
14249
|
position: "absolute",
|
14014
14250
|
color: "white",
|
14015
|
-
hover: "whiteAlpha.100",
|
14016
14251
|
...focusVisibleStyles(props),
|
14017
14252
|
_active: {
|
14018
14253
|
backgroundColor: "whiteAlpha.200"
|
14019
14254
|
},
|
14020
|
-
borderRadius: "
|
14021
|
-
top:
|
14022
|
-
|
14255
|
+
borderRadius: "sm",
|
14256
|
+
top: 2,
|
14257
|
+
right: 2,
|
14023
14258
|
width: 2,
|
14024
14259
|
height: 2,
|
14025
14260
|
padding: 1
|
@@ -15111,7 +15346,7 @@ var init_components = __esm({
|
|
15111
15346
|
init_listbox();
|
15112
15347
|
init_media_controller_button();
|
15113
15348
|
init_modal2();
|
15114
|
-
|
15349
|
+
init_popover();
|
15115
15350
|
init_progress_indicator2();
|
15116
15351
|
init_radio();
|
15117
15352
|
init_select();
|
@@ -15229,7 +15464,7 @@ var init_theme = __esm({
|
|
15229
15464
|
};
|
15230
15465
|
}
|
15231
15466
|
});
|
15232
|
-
var BaseToast, ToastIcon, getIcon3,
|
15467
|
+
var BaseToast, ToastIcon, getIcon3, texts25;
|
15233
15468
|
var init_BaseToast = __esm({
|
15234
15469
|
"src/toast/BaseToast.tsx"() {
|
15235
15470
|
init_src();
|
@@ -15244,7 +15479,7 @@ var init_BaseToast = __esm({
|
|
15244
15479
|
Icon,
|
15245
15480
|
{
|
15246
15481
|
flexShrink: 0,
|
15247
|
-
"aria-label": t2(
|
15482
|
+
"aria-label": t2(texts25[variant]),
|
15248
15483
|
marginRight: 1,
|
15249
15484
|
marginY: 1.5,
|
15250
15485
|
color: "darkGrey"
|
@@ -15261,7 +15496,7 @@ var init_BaseToast = __esm({
|
|
15261
15496
|
return sporIconReact.ErrorOutline24Icon;
|
15262
15497
|
}
|
15263
15498
|
};
|
15264
|
-
|
15499
|
+
texts25 = createTexts({
|
15265
15500
|
info: {
|
15266
15501
|
nb: "Informasjon",
|
15267
15502
|
nn: "Informasjon",
|
@@ -15299,7 +15534,7 @@ var init_ActionToast = __esm({
|
|
15299
15534
|
};
|
15300
15535
|
}
|
15301
15536
|
});
|
15302
|
-
var ClosableToast,
|
15537
|
+
var ClosableToast, texts26;
|
15303
15538
|
var init_ClosableToast = __esm({
|
15304
15539
|
"src/toast/ClosableToast.tsx"() {
|
15305
15540
|
init_src();
|
@@ -15317,13 +15552,13 @@ var init_ClosableToast = __esm({
|
|
15317
15552
|
{
|
15318
15553
|
sx: styles3.dismissButton,
|
15319
15554
|
variant: "ghost",
|
15320
|
-
"aria-label": t2(
|
15555
|
+
"aria-label": t2(texts26.dismiss),
|
15321
15556
|
icon: /* @__PURE__ */ React69__namespace.default.createElement(sporIconReact.CloseFill18Icon, null),
|
15322
15557
|
onClick: onClose
|
15323
15558
|
}
|
15324
15559
|
));
|
15325
15560
|
};
|
15326
|
-
|
15561
|
+
texts26 = createTexts({
|
15327
15562
|
dismiss: {
|
15328
15563
|
nb: "Lukk",
|
15329
15564
|
nn: "Lukk",
|
@@ -15390,6 +15625,45 @@ var init_toast2 = __esm({
|
|
15390
15625
|
init_useToast();
|
15391
15626
|
}
|
15392
15627
|
});
|
15628
|
+
exports.Tooltip = void 0;
|
15629
|
+
var init_Tooltip = __esm({
|
15630
|
+
"src/tooltip/Tooltip.tsx"() {
|
15631
|
+
exports.Tooltip = ({
|
15632
|
+
children,
|
15633
|
+
content,
|
15634
|
+
onClose,
|
15635
|
+
isOpen,
|
15636
|
+
defaultIsOpen,
|
15637
|
+
placement = "bottom",
|
15638
|
+
size: size2 = "sm",
|
15639
|
+
withCloseButton = false,
|
15640
|
+
...props
|
15641
|
+
}) => {
|
15642
|
+
return /* @__PURE__ */ React69__namespace.default.createElement(react.DarkMode, null, /* @__PURE__ */ React69__namespace.default.createElement(
|
15643
|
+
react.Popover,
|
15644
|
+
{
|
15645
|
+
onClose,
|
15646
|
+
isOpen,
|
15647
|
+
defaultIsOpen,
|
15648
|
+
placement,
|
15649
|
+
size: size2,
|
15650
|
+
arrowSize: 12,
|
15651
|
+
arrowShadowColor: "none",
|
15652
|
+
...props
|
15653
|
+
},
|
15654
|
+
/* @__PURE__ */ React69__namespace.default.createElement(react.PopoverTrigger, null, children),
|
15655
|
+
/* @__PURE__ */ React69__namespace.default.createElement(react.PopoverContent, null, /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverArrow, null), withCloseButton && /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverCloseButton, null), /* @__PURE__ */ React69__namespace.default.createElement(react.PopoverBody, null, content))
|
15656
|
+
));
|
15657
|
+
};
|
15658
|
+
}
|
15659
|
+
});
|
15660
|
+
|
15661
|
+
// src/tooltip/index.tsx
|
15662
|
+
var init_tooltip = __esm({
|
15663
|
+
"src/tooltip/index.tsx"() {
|
15664
|
+
init_Tooltip();
|
15665
|
+
}
|
15666
|
+
});
|
15393
15667
|
var init_transition = __esm({
|
15394
15668
|
"src/transition/index.ts"() {
|
15395
15669
|
}
|
@@ -15553,7 +15827,7 @@ var init_src = __esm({
|
|
15553
15827
|
init_logo();
|
15554
15828
|
init_media_controller();
|
15555
15829
|
init_modal();
|
15556
|
-
|
15830
|
+
init_nudge();
|
15557
15831
|
init_progress_indicator();
|
15558
15832
|
init_provider();
|
15559
15833
|
init_stepper();
|
@@ -15561,6 +15835,7 @@ var init_src = __esm({
|
|
15561
15835
|
init_table();
|
15562
15836
|
init_theme();
|
15563
15837
|
init_toast2();
|
15838
|
+
init_tooltip();
|
15564
15839
|
init_transition();
|
15565
15840
|
init_typography();
|
15566
15841
|
init_util();
|
@@ -15688,42 +15963,6 @@ Object.defineProperty(exports, 'OrderedList', {
|
|
15688
15963
|
enumerable: true,
|
15689
15964
|
get: function () { return react.OrderedList; }
|
15690
15965
|
});
|
15691
|
-
Object.defineProperty(exports, 'Popover', {
|
15692
|
-
enumerable: true,
|
15693
|
-
get: function () { return react.Popover; }
|
15694
|
-
});
|
15695
|
-
Object.defineProperty(exports, 'PopoverAnchor', {
|
15696
|
-
enumerable: true,
|
15697
|
-
get: function () { return react.PopoverAnchor; }
|
15698
|
-
});
|
15699
|
-
Object.defineProperty(exports, 'PopoverArrow', {
|
15700
|
-
enumerable: true,
|
15701
|
-
get: function () { return react.PopoverArrow; }
|
15702
|
-
});
|
15703
|
-
Object.defineProperty(exports, 'PopoverBody', {
|
15704
|
-
enumerable: true,
|
15705
|
-
get: function () { return react.PopoverBody; }
|
15706
|
-
});
|
15707
|
-
Object.defineProperty(exports, 'PopoverCloseButton', {
|
15708
|
-
enumerable: true,
|
15709
|
-
get: function () { return react.PopoverCloseButton; }
|
15710
|
-
});
|
15711
|
-
Object.defineProperty(exports, 'PopoverContent', {
|
15712
|
-
enumerable: true,
|
15713
|
-
get: function () { return react.PopoverContent; }
|
15714
|
-
});
|
15715
|
-
Object.defineProperty(exports, 'PopoverFooter', {
|
15716
|
-
enumerable: true,
|
15717
|
-
get: function () { return react.PopoverFooter; }
|
15718
|
-
});
|
15719
|
-
Object.defineProperty(exports, 'PopoverHeader', {
|
15720
|
-
enumerable: true,
|
15721
|
-
get: function () { return react.PopoverHeader; }
|
15722
|
-
});
|
15723
|
-
Object.defineProperty(exports, 'PopoverTrigger', {
|
15724
|
-
enumerable: true,
|
15725
|
-
get: function () { return react.PopoverTrigger; }
|
15726
|
-
});
|
15727
15966
|
Object.defineProperty(exports, 'Portal', {
|
15728
15967
|
enumerable: true,
|
15729
15968
|
get: function () { return react.Portal; }
|