@vygruppen/spor-react 9.4.0 → 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +21 -0
- package/dist/{CountryCodeSelect-5QKP6VFT.mjs → CountryCodeSelect-2KOFVXIQ.mjs} +1 -1
- package/dist/{chunk-JRXSGTL2.mjs → chunk-XXA3IGVH.mjs} +232 -64
- package/dist/index.d.mts +107 -9
- package/dist/index.d.ts +107 -9
- package/dist/index.js +268 -78
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/index.tsx +1 -0
- package/src/pagination/Pagination.tsx +156 -0
- package/src/pagination/index.tsx +1 -0
- package/src/theme/components/datepicker.ts +2 -2
- package/src/theme/components/index.ts +1 -0
- package/src/theme/components/pagination.ts +74 -0
package/dist/index.js
CHANGED
@@ -252,8 +252,8 @@ function useTranslation() {
|
|
252
252
|
};
|
253
253
|
return { t: t2, language };
|
254
254
|
}
|
255
|
-
function createTexts(
|
256
|
-
return
|
255
|
+
function createTexts(texts29) {
|
256
|
+
return texts29;
|
257
257
|
}
|
258
258
|
exports.Language = void 0; var LanguageContext;
|
259
259
|
var init_i18n = __esm({
|
@@ -5070,6 +5070,121 @@ var init_nudge = __esm({
|
|
5070
5070
|
init_WizardNudge();
|
5071
5071
|
}
|
5072
5072
|
});
|
5073
|
+
exports.Pagination = void 0; var texts24;
|
5074
|
+
var init_Pagination = __esm({
|
5075
|
+
"src/pagination/Pagination.tsx"() {
|
5076
|
+
init_src();
|
5077
|
+
exports.Pagination = ({
|
5078
|
+
totalPages,
|
5079
|
+
selectedPage,
|
5080
|
+
onPageChange
|
5081
|
+
}) => {
|
5082
|
+
const { t: t2 } = useTranslation();
|
5083
|
+
const style = react.useMultiStyleConfig("Pagination", { selectedPage });
|
5084
|
+
const hasPreviousPage = selectedPage > 1;
|
5085
|
+
const hasNextPage = selectedPage < totalPages;
|
5086
|
+
const renderPaginationButtons = () => {
|
5087
|
+
const displayPageNumbers = [];
|
5088
|
+
const maxVisiblePages = 8;
|
5089
|
+
if (totalPages <= maxVisiblePages) {
|
5090
|
+
displayPageNumbers.push(
|
5091
|
+
...Array.from({ length: totalPages }, (_, i) => i + 1)
|
5092
|
+
);
|
5093
|
+
} else {
|
5094
|
+
if (selectedPage <= Math.floor(maxVisiblePages / 2) + 1) {
|
5095
|
+
displayPageNumbers.push(
|
5096
|
+
...Array.from({ length: maxVisiblePages - 1 }, (_, i) => i + 1)
|
5097
|
+
);
|
5098
|
+
displayPageNumbers.push("...");
|
5099
|
+
displayPageNumbers.push(totalPages);
|
5100
|
+
} else if (selectedPage >= totalPages - Math.floor(maxVisiblePages / 2)) {
|
5101
|
+
displayPageNumbers.push(1);
|
5102
|
+
displayPageNumbers.push("...");
|
5103
|
+
displayPageNumbers.push(
|
5104
|
+
...Array.from(
|
5105
|
+
{ length: maxVisiblePages - 1 },
|
5106
|
+
(_, i) => totalPages - maxVisiblePages + 2 + i
|
5107
|
+
)
|
5108
|
+
);
|
5109
|
+
} else {
|
5110
|
+
displayPageNumbers.push(1);
|
5111
|
+
displayPageNumbers.push("...");
|
5112
|
+
for (let i = selectedPage - Math.floor((maxVisiblePages - 3) / 2); i <= selectedPage + Math.floor((maxVisiblePages - 3) / 2); i++) {
|
5113
|
+
displayPageNumbers.push(i);
|
5114
|
+
}
|
5115
|
+
displayPageNumbers.push("...");
|
5116
|
+
displayPageNumbers.push(totalPages);
|
5117
|
+
}
|
5118
|
+
}
|
5119
|
+
return displayPageNumbers.map(
|
5120
|
+
(pageNumber, index) => pageNumber === "..." ? /* @__PURE__ */ React70__namespace.default.createElement(react.ListItem, { key: index, sx: style.listItem }, /* @__PURE__ */ React70__namespace.default.createElement(react.Center, null, "...")) : /* @__PURE__ */ React70__namespace.default.createElement(
|
5121
|
+
react.Link,
|
5122
|
+
{
|
5123
|
+
key: index,
|
5124
|
+
as: react.ListItem,
|
5125
|
+
onClick: () => {
|
5126
|
+
if (pageNumber !== "...") {
|
5127
|
+
onPageChange(+pageNumber);
|
5128
|
+
}
|
5129
|
+
},
|
5130
|
+
padding: pageNumber === "..." ? 0 : void 0,
|
5131
|
+
sx: pageNumber === selectedPage ? style.activeButton : style.link
|
5132
|
+
},
|
5133
|
+
pageNumber
|
5134
|
+
)
|
5135
|
+
);
|
5136
|
+
};
|
5137
|
+
return /* @__PURE__ */ React70__namespace.default.createElement(react.Flex, { as: "nav", "aria-label": "pagination" }, /* @__PURE__ */ React70__namespace.default.createElement(
|
5138
|
+
react.UnorderedList,
|
5139
|
+
{
|
5140
|
+
display: "flex",
|
5141
|
+
listStyleType: "none",
|
5142
|
+
gap: [0, 1],
|
5143
|
+
padding: 0,
|
5144
|
+
margin: 0
|
5145
|
+
},
|
5146
|
+
/* @__PURE__ */ React70__namespace.default.createElement(react.ListItem, { "aria-label": t2(texts24.previousPage) }, /* @__PURE__ */ React70__namespace.default.createElement(
|
5147
|
+
exports.TextLink,
|
5148
|
+
{
|
5149
|
+
onClick: () => onPageChange(selectedPage - 1),
|
5150
|
+
sx: hasPreviousPage ? style.link : style.disabled
|
5151
|
+
},
|
5152
|
+
/* @__PURE__ */ React70__namespace.default.createElement(sporIconReact.DropdownLeftFill18Icon, { sx: style.icon })
|
5153
|
+
)),
|
5154
|
+
renderPaginationButtons(),
|
5155
|
+
/* @__PURE__ */ React70__namespace.default.createElement(react.ListItem, { "aria-label": t2(texts24.nextPage) }, /* @__PURE__ */ React70__namespace.default.createElement(
|
5156
|
+
exports.TextLink,
|
5157
|
+
{
|
5158
|
+
onClick: () => onPageChange(selectedPage + 1),
|
5159
|
+
sx: hasNextPage ? style.link : style.disabled
|
5160
|
+
},
|
5161
|
+
/* @__PURE__ */ React70__namespace.default.createElement(sporIconReact.DropdownRightFill18Icon, { sx: style.icon })
|
5162
|
+
))
|
5163
|
+
));
|
5164
|
+
};
|
5165
|
+
texts24 = createTexts({
|
5166
|
+
previousPage: {
|
5167
|
+
nb: "Forrige side",
|
5168
|
+
nn: "F\xF8rre side",
|
5169
|
+
en: "Previous page",
|
5170
|
+
sv: "F\xF6reg\xE5ende sida"
|
5171
|
+
},
|
5172
|
+
nextPage: {
|
5173
|
+
nb: "Neste side",
|
5174
|
+
nn: "Neste side",
|
5175
|
+
en: "Next page",
|
5176
|
+
sv: "N\xE4sta sida"
|
5177
|
+
}
|
5178
|
+
});
|
5179
|
+
}
|
5180
|
+
});
|
5181
|
+
|
5182
|
+
// src/pagination/index.tsx
|
5183
|
+
var init_pagination = __esm({
|
5184
|
+
"src/pagination/index.tsx"() {
|
5185
|
+
init_Pagination();
|
5186
|
+
}
|
5187
|
+
});
|
5073
5188
|
var ProgressDot;
|
5074
5189
|
var init_ProgressDot = __esm({
|
5075
5190
|
"src/progress-indicator/ProgressDot.tsx"() {
|
@@ -5091,7 +5206,7 @@ var init_ProgressDot = __esm({
|
|
5091
5206
|
};
|
5092
5207
|
}
|
5093
5208
|
});
|
5094
|
-
exports.ProgressIndicator = void 0; var
|
5209
|
+
exports.ProgressIndicator = void 0; var texts25;
|
5095
5210
|
var init_ProgressIndicator = __esm({
|
5096
5211
|
"src/progress-indicator/ProgressIndicator.tsx"() {
|
5097
5212
|
init_src();
|
@@ -5110,7 +5225,7 @@ var init_ProgressIndicator = __esm({
|
|
5110
5225
|
"aria-valuemin": 1,
|
5111
5226
|
"aria-valuemax": numberOfSteps,
|
5112
5227
|
"aria-valuenow": activeStep,
|
5113
|
-
"aria-valuetext": t2(
|
5228
|
+
"aria-valuetext": t2(texts25.stepsOf(activeStep, numberOfSteps))
|
5114
5229
|
},
|
5115
5230
|
/* @__PURE__ */ React70__namespace.default.createElement(react.Box, { __css: style.container }, Array.from({ length: numberOfSteps }, (_, i) => /* @__PURE__ */ React70__namespace.default.createElement(
|
5116
5231
|
ProgressDot,
|
@@ -5122,7 +5237,7 @@ var init_ProgressIndicator = __esm({
|
|
5122
5237
|
)))
|
5123
5238
|
);
|
5124
5239
|
};
|
5125
|
-
|
5240
|
+
texts25 = createTexts({
|
5126
5241
|
stepsOf: (activeStep, numberOfSteps) => ({
|
5127
5242
|
nb: `Steg ${activeStep} av ${numberOfSteps}`,
|
5128
5243
|
nn: `Steg ${activeStep} av ${numberOfSteps}`,
|
@@ -5194,7 +5309,7 @@ var init_StepperContext = __esm({
|
|
5194
5309
|
};
|
5195
5310
|
}
|
5196
5311
|
});
|
5197
|
-
exports.Stepper = void 0; var
|
5312
|
+
exports.Stepper = void 0; var texts26;
|
5198
5313
|
var init_Stepper = __esm({
|
5199
5314
|
"src/stepper/Stepper.tsx"() {
|
5200
5315
|
init_stepper();
|
@@ -5237,7 +5352,7 @@ var init_Stepper = __esm({
|
|
5237
5352
|
/* @__PURE__ */ React70__namespace.default.createElement(
|
5238
5353
|
exports.IconButton,
|
5239
5354
|
{
|
5240
|
-
"aria-label": t2(
|
5355
|
+
"aria-label": t2(texts26.back),
|
5241
5356
|
icon: /* @__PURE__ */ React70__namespace.default.createElement(sporIconReact.ArrowLeftFill24Icon, null),
|
5242
5357
|
variant: "ghost",
|
5243
5358
|
size: "sm",
|
@@ -5252,7 +5367,7 @@ var init_Stepper = __esm({
|
|
5252
5367
|
}
|
5253
5368
|
),
|
5254
5369
|
shownHeading && /* @__PURE__ */ React70__namespace.default.createElement(exports.Text, { flex: 1, variant: "sm", as: headingLevel, sx: style.title }, shownHeading),
|
5255
|
-
/* @__PURE__ */ React70__namespace.default.createElement(react.Box, { sx: style.stepCounter }, t2(
|
5370
|
+
/* @__PURE__ */ React70__namespace.default.createElement(react.Box, { sx: style.stepCounter }, t2(texts26.stepsOf(activeStep, numberOfSteps)))
|
5256
5371
|
)), /* @__PURE__ */ React70__namespace.default.createElement(react.Flex, { justifyContent: "center", display: ["none", null, "flex"] }, steps.map((step, index) => /* @__PURE__ */ React70__namespace.default.createElement(
|
5257
5372
|
exports.StepperStep,
|
5258
5373
|
{
|
@@ -5266,7 +5381,7 @@ var init_Stepper = __esm({
|
|
5266
5381
|
))))
|
5267
5382
|
));
|
5268
5383
|
};
|
5269
|
-
|
5384
|
+
texts26 = createTexts({
|
5270
5385
|
stepsOf: (activeStep, numberOfSteps) => ({
|
5271
5386
|
nb: `Steg ${activeStep}/${numberOfSteps}`,
|
5272
5387
|
nn: `Steg ${activeStep}/${numberOfSteps}`,
|
@@ -6124,16 +6239,16 @@ function defineCssVars(scope, keys2) {
|
|
6124
6239
|
function defineStyle(styles3) {
|
6125
6240
|
return styles3;
|
6126
6241
|
}
|
6127
|
-
function defineStyleConfig(
|
6128
|
-
return
|
6242
|
+
function defineStyleConfig(config43) {
|
6243
|
+
return config43;
|
6129
6244
|
}
|
6130
|
-
function createMultiStyleConfigHelpers(
|
6245
|
+
function createMultiStyleConfigHelpers(parts19) {
|
6131
6246
|
return {
|
6132
|
-
definePartsStyle(
|
6133
|
-
return
|
6247
|
+
definePartsStyle(config43) {
|
6248
|
+
return config43;
|
6134
6249
|
},
|
6135
|
-
defineMultiStyleConfig(
|
6136
|
-
return { parts:
|
6250
|
+
defineMultiStyleConfig(config43) {
|
6251
|
+
return { parts: parts19, ...config43 };
|
6137
6252
|
}
|
6138
6253
|
};
|
6139
6254
|
}
|
@@ -7456,7 +7571,7 @@ function anatomy(name, map = {}) {
|
|
7456
7571
|
"[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?"
|
7457
7572
|
);
|
7458
7573
|
}
|
7459
|
-
function
|
7574
|
+
function parts19(...values) {
|
7460
7575
|
assert();
|
7461
7576
|
for (const part of values) {
|
7462
7577
|
map[part] = toPart(part);
|
@@ -7496,7 +7611,7 @@ function anatomy(name, map = {}) {
|
|
7496
7611
|
}
|
7497
7612
|
const __type = {};
|
7498
7613
|
return {
|
7499
|
-
parts:
|
7614
|
+
parts: parts19,
|
7500
7615
|
toPart,
|
7501
7616
|
extend,
|
7502
7617
|
selectors,
|
@@ -12807,9 +12922,9 @@ var init_datepicker2 = __esm({
|
|
12807
12922
|
[$arrowBackground.variable]: surface("default", props).backgroundColor
|
12808
12923
|
},
|
12809
12924
|
calendarPopover: {
|
12810
|
-
...
|
12925
|
+
...floatingBackground("default", props),
|
12811
12926
|
...baseText("default", props),
|
12812
|
-
...
|
12927
|
+
...floatingBorder("default", props),
|
12813
12928
|
boxShadow: "md"
|
12814
12929
|
},
|
12815
12930
|
weekdays: {
|
@@ -14224,7 +14339,79 @@ var init_numeric_stepper = __esm({
|
|
14224
14339
|
numeric_stepper_default = config28;
|
14225
14340
|
}
|
14226
14341
|
});
|
14227
|
-
var
|
14342
|
+
var parts14, helpers20, config29, commonStyles, pagination_default;
|
14343
|
+
var init_pagination2 = __esm({
|
14344
|
+
"src/theme/components/pagination.ts"() {
|
14345
|
+
init_ghost_utils();
|
14346
|
+
init_base_utils();
|
14347
|
+
parts14 = themeTools.anatomy("Pagination").parts(
|
14348
|
+
"listItem",
|
14349
|
+
"link",
|
14350
|
+
"activeButton",
|
14351
|
+
"disabled",
|
14352
|
+
"icon"
|
14353
|
+
);
|
14354
|
+
helpers20 = react.createMultiStyleConfigHelpers(parts14.keys);
|
14355
|
+
config29 = helpers20.defineMultiStyleConfig({
|
14356
|
+
baseStyle: (props) => ({
|
14357
|
+
activeButton: {
|
14358
|
+
fontWeight: "bold",
|
14359
|
+
...commonStyles,
|
14360
|
+
...ghostBackground("active", props),
|
14361
|
+
_hover: {
|
14362
|
+
...ghostBackground("hover", props),
|
14363
|
+
borderRadius: 50
|
14364
|
+
},
|
14365
|
+
_active: {
|
14366
|
+
borderRadius: 50,
|
14367
|
+
...ghostBackground("active", props)
|
14368
|
+
}
|
14369
|
+
},
|
14370
|
+
disabled: {
|
14371
|
+
...commonStyles,
|
14372
|
+
cursor: "not-allowed",
|
14373
|
+
pointerEvents: "none",
|
14374
|
+
boxShadow: "none",
|
14375
|
+
...baseText("disabled", props)
|
14376
|
+
},
|
14377
|
+
listItem: {
|
14378
|
+
display: "flex"
|
14379
|
+
},
|
14380
|
+
link: {
|
14381
|
+
...commonStyles,
|
14382
|
+
...ghostBackground("default", props),
|
14383
|
+
...baseText("default", props),
|
14384
|
+
_hover: {
|
14385
|
+
...ghostBackground("hover", props),
|
14386
|
+
borderRadius: 50,
|
14387
|
+
_disabled: {
|
14388
|
+
...baseText("disabled", props)
|
14389
|
+
}
|
14390
|
+
},
|
14391
|
+
_active: {
|
14392
|
+
borderRadius: 50,
|
14393
|
+
...ghostBackground("active", props)
|
14394
|
+
}
|
14395
|
+
},
|
14396
|
+
icon: {
|
14397
|
+
bottom: "-0.03em !important"
|
14398
|
+
}
|
14399
|
+
})
|
14400
|
+
});
|
14401
|
+
commonStyles = {
|
14402
|
+
display: "flex",
|
14403
|
+
alignItems: "center",
|
14404
|
+
justifyContent: "center",
|
14405
|
+
width: 5,
|
14406
|
+
height: 5,
|
14407
|
+
backgroundImage: "none",
|
14408
|
+
borderRadius: 50,
|
14409
|
+
fontSize: "xs"
|
14410
|
+
};
|
14411
|
+
pagination_default = config29;
|
14412
|
+
}
|
14413
|
+
});
|
14414
|
+
var $popperBg2, $arrowBg3, $arrowShadowColor2, helpers21, config30, popover_default;
|
14228
14415
|
var init_popover = __esm({
|
14229
14416
|
"src/theme/components/popover.ts"() {
|
14230
14417
|
init_dist4();
|
@@ -14232,8 +14419,8 @@ var init_popover = __esm({
|
|
14232
14419
|
$popperBg2 = themeTools.cssVar("popper-bg");
|
14233
14420
|
$arrowBg3 = themeTools.cssVar("popper-arrow-bg");
|
14234
14421
|
$arrowShadowColor2 = themeTools.cssVar("popper-arrow-shadow-color");
|
14235
|
-
|
14236
|
-
|
14422
|
+
helpers21 = react.createMultiStyleConfigHelpers(popoverAnatomy.keys);
|
14423
|
+
config30 = helpers21.defineMultiStyleConfig({
|
14237
14424
|
baseStyle: (props) => ({
|
14238
14425
|
popper: {
|
14239
14426
|
zIndex: "popover"
|
@@ -14288,22 +14475,22 @@ var init_popover = __esm({
|
|
14288
14475
|
}
|
14289
14476
|
}
|
14290
14477
|
});
|
14291
|
-
popover_default =
|
14478
|
+
popover_default = config30;
|
14292
14479
|
}
|
14293
14480
|
});
|
14294
|
-
var
|
14481
|
+
var parts15, helpers22, config31, progress_bar_default;
|
14295
14482
|
var init_progress_bar = __esm({
|
14296
14483
|
"src/theme/components/progress-bar.ts"() {
|
14297
14484
|
init_dist4();
|
14298
14485
|
init_dist3();
|
14299
|
-
|
14486
|
+
parts15 = anatomy("progressBar").parts(
|
14300
14487
|
"container",
|
14301
14488
|
"background",
|
14302
14489
|
"progress",
|
14303
14490
|
"description"
|
14304
14491
|
);
|
14305
|
-
|
14306
|
-
|
14492
|
+
helpers22 = createMultiStyleConfigHelpers(parts15.keys);
|
14493
|
+
config31 = helpers22.defineMultiStyleConfig({
|
14307
14494
|
baseStyle: (props) => ({
|
14308
14495
|
container: {
|
14309
14496
|
minWidth: "100px"
|
@@ -14333,19 +14520,19 @@ var init_progress_bar = __esm({
|
|
14333
14520
|
}
|
14334
14521
|
})
|
14335
14522
|
});
|
14336
|
-
progress_bar_default =
|
14523
|
+
progress_bar_default = config31;
|
14337
14524
|
}
|
14338
14525
|
});
|
14339
|
-
var
|
14526
|
+
var parts16, helpers23, config32, progress_indicator_default;
|
14340
14527
|
var init_progress_indicator2 = __esm({
|
14341
14528
|
"src/theme/components/progress-indicator.ts"() {
|
14342
|
-
|
14529
|
+
parts16 = themeTools.anatomy("progress-indicator").parts(
|
14343
14530
|
"root",
|
14344
14531
|
"container",
|
14345
14532
|
"progressDot"
|
14346
14533
|
);
|
14347
|
-
|
14348
|
-
|
14534
|
+
helpers23 = react.createMultiStyleConfigHelpers(parts16.keys);
|
14535
|
+
config32 = helpers23.defineMultiStyleConfig({
|
14349
14536
|
baseStyle: (props) => ({
|
14350
14537
|
root: {
|
14351
14538
|
width: "100%"
|
@@ -14376,18 +14563,18 @@ var init_progress_indicator2 = __esm({
|
|
14376
14563
|
variant: "base"
|
14377
14564
|
}
|
14378
14565
|
});
|
14379
|
-
progress_indicator_default =
|
14566
|
+
progress_indicator_default = config32;
|
14380
14567
|
}
|
14381
14568
|
});
|
14382
|
-
var
|
14569
|
+
var helpers24, config33, radio_default;
|
14383
14570
|
var init_radio = __esm({
|
14384
14571
|
"src/theme/components/radio.ts"() {
|
14385
14572
|
init_dist4();
|
14386
14573
|
init_base_utils();
|
14387
14574
|
init_brand_utils();
|
14388
14575
|
init_focus_utils();
|
14389
|
-
|
14390
|
-
|
14576
|
+
helpers24 = react.createMultiStyleConfigHelpers(radioAnatomy.keys);
|
14577
|
+
config33 = helpers24.defineMultiStyleConfig({
|
14391
14578
|
baseStyle: (props) => ({
|
14392
14579
|
container: {
|
14393
14580
|
_hover: {
|
@@ -14440,18 +14627,18 @@ var init_radio = __esm({
|
|
14440
14627
|
}
|
14441
14628
|
})
|
14442
14629
|
});
|
14443
|
-
radio_default =
|
14630
|
+
radio_default = config33;
|
14444
14631
|
}
|
14445
14632
|
});
|
14446
|
-
var
|
14633
|
+
var parts17, helpers25, config34, select_default;
|
14447
14634
|
var init_select = __esm({
|
14448
14635
|
"src/theme/components/select.ts"() {
|
14449
14636
|
init_dist4();
|
14450
14637
|
init_base_utils();
|
14451
14638
|
init_input2();
|
14452
|
-
|
14453
|
-
|
14454
|
-
|
14639
|
+
parts17 = selectAnatomy.extend("root");
|
14640
|
+
helpers25 = react.createMultiStyleConfigHelpers(parts17.keys);
|
14641
|
+
config34 = helpers25.defineMultiStyleConfig({
|
14455
14642
|
baseStyle: (props) => ({
|
14456
14643
|
root: {
|
14457
14644
|
width: "100%",
|
@@ -14491,7 +14678,7 @@ var init_select = __esm({
|
|
14491
14678
|
}
|
14492
14679
|
})
|
14493
14680
|
});
|
14494
|
-
select_default =
|
14681
|
+
select_default = config34;
|
14495
14682
|
}
|
14496
14683
|
});
|
14497
14684
|
|
@@ -14507,7 +14694,7 @@ var init_dist7 = __esm({
|
|
14507
14694
|
init_dist3();
|
14508
14695
|
}
|
14509
14696
|
});
|
14510
|
-
var fade, $startColor2, $endColor2,
|
14697
|
+
var fade, $startColor2, $endColor2, config35, skeleton_default;
|
14511
14698
|
var init_skeleton = __esm({
|
14512
14699
|
"src/theme/components/skeleton.ts"() {
|
14513
14700
|
init_dist7();
|
@@ -14517,7 +14704,7 @@ var init_skeleton = __esm({
|
|
14517
14704
|
});
|
14518
14705
|
$startColor2 = themeTools.cssVar("skeleton-start-color");
|
14519
14706
|
$endColor2 = themeTools.cssVar("skeleton-end-color");
|
14520
|
-
|
14707
|
+
config35 = react.defineStyleConfig({
|
14521
14708
|
baseStyle: (props) => {
|
14522
14709
|
const defaultStartColor = themeTools.mode("blackAlpha.300", "whiteAlpha.300")(props);
|
14523
14710
|
const defaultEndColor = themeTools.mode("blackAlpha.100", "whiteAlpha.100")(props);
|
@@ -14540,16 +14727,16 @@ var init_skeleton = __esm({
|
|
14540
14727
|
};
|
14541
14728
|
}
|
14542
14729
|
});
|
14543
|
-
skeleton_default =
|
14730
|
+
skeleton_default = config35;
|
14544
14731
|
}
|
14545
14732
|
});
|
14546
|
-
var
|
14733
|
+
var parts18, helpers26, config36, stepper_default;
|
14547
14734
|
var init_stepper2 = __esm({
|
14548
14735
|
"src/theme/components/stepper.ts"() {
|
14549
14736
|
init_base_utils();
|
14550
14737
|
init_brand_utils();
|
14551
14738
|
init_accent_utils();
|
14552
|
-
|
14739
|
+
parts18 = themeTools.anatomy("stepper").parts(
|
14553
14740
|
"root",
|
14554
14741
|
"container",
|
14555
14742
|
"innerContainer",
|
@@ -14561,8 +14748,8 @@ var init_stepper2 = __esm({
|
|
14561
14748
|
"stepTitle",
|
14562
14749
|
"closeButton"
|
14563
14750
|
);
|
14564
|
-
|
14565
|
-
|
14751
|
+
helpers26 = react.createMultiStyleConfigHelpers(parts18.keys);
|
14752
|
+
config36 = helpers26.defineMultiStyleConfig({
|
14566
14753
|
baseStyle: {
|
14567
14754
|
root: {
|
14568
14755
|
display: "flex",
|
@@ -14631,10 +14818,10 @@ var init_stepper2 = __esm({
|
|
14631
14818
|
variant: "base"
|
14632
14819
|
}
|
14633
14820
|
});
|
14634
|
-
stepper_default =
|
14821
|
+
stepper_default = config36;
|
14635
14822
|
}
|
14636
14823
|
});
|
14637
|
-
var $width2, $height3, $diff2, diffValue2, $translateX2,
|
14824
|
+
var $width2, $height3, $diff2, diffValue2, $translateX2, helpers27, config37, switch_default;
|
14638
14825
|
var init_switch = __esm({
|
14639
14826
|
"src/theme/components/switch.ts"() {
|
14640
14827
|
init_dist4();
|
@@ -14646,8 +14833,8 @@ var init_switch = __esm({
|
|
14646
14833
|
$diff2 = themeTools.cssVar("switch-track-diff");
|
14647
14834
|
diffValue2 = themeTools.calc.subtract($width2, $height3);
|
14648
14835
|
$translateX2 = themeTools.cssVar("switch-thumb-x");
|
14649
|
-
|
14650
|
-
|
14836
|
+
helpers27 = react.createMultiStyleConfigHelpers(switchAnatomy.keys);
|
14837
|
+
config37 = helpers27.defineMultiStyleConfig({
|
14651
14838
|
baseStyle: (props) => ({
|
14652
14839
|
container: {
|
14653
14840
|
[$diff2.variable]: diffValue2,
|
@@ -14740,21 +14927,21 @@ var init_switch = __esm({
|
|
14740
14927
|
size: "md"
|
14741
14928
|
}
|
14742
14929
|
});
|
14743
|
-
switch_default =
|
14930
|
+
switch_default = config37;
|
14744
14931
|
}
|
14745
14932
|
});
|
14746
|
-
var
|
14933
|
+
var helpers28, numericStyles2, config38, table_default;
|
14747
14934
|
var init_table2 = __esm({
|
14748
14935
|
"src/theme/components/table.ts"() {
|
14749
14936
|
init_dist4();
|
14750
14937
|
init_base_utils();
|
14751
|
-
|
14938
|
+
helpers28 = react.createMultiStyleConfigHelpers(tableAnatomy.keys);
|
14752
14939
|
numericStyles2 = {
|
14753
14940
|
"&[data-is-numeric=true]": {
|
14754
14941
|
textAlign: "end"
|
14755
14942
|
}
|
14756
14943
|
};
|
14757
|
-
|
14944
|
+
config38 = helpers28.defineMultiStyleConfig({
|
14758
14945
|
baseStyle: (props) => ({
|
14759
14946
|
table: {
|
14760
14947
|
borderCollapse: "collapse",
|
@@ -14900,10 +15087,10 @@ var init_table2 = __esm({
|
|
14900
15087
|
colorScheme: "grey"
|
14901
15088
|
}
|
14902
15089
|
});
|
14903
|
-
table_default =
|
15090
|
+
table_default = config38;
|
14904
15091
|
}
|
14905
15092
|
});
|
14906
|
-
var
|
15093
|
+
var helpers29, config39, tabs_default;
|
14907
15094
|
var init_tabs = __esm({
|
14908
15095
|
"src/theme/components/tabs.ts"() {
|
14909
15096
|
init_dist4();
|
@@ -14911,8 +15098,8 @@ var init_tabs = __esm({
|
|
14911
15098
|
init_base_utils();
|
14912
15099
|
init_brand_utils();
|
14913
15100
|
init_focus_utils();
|
14914
|
-
|
14915
|
-
|
15101
|
+
helpers29 = react.createMultiStyleConfigHelpers(tabsAnatomy.keys);
|
15102
|
+
config39 = helpers29.defineMultiStyleConfig({
|
14916
15103
|
baseStyle: (props) => ({
|
14917
15104
|
root: {
|
14918
15105
|
display: "flex",
|
@@ -15035,14 +15222,14 @@ var init_tabs = __esm({
|
|
15035
15222
|
variant: "base"
|
15036
15223
|
}
|
15037
15224
|
});
|
15038
|
-
tabs_default =
|
15225
|
+
tabs_default = config39;
|
15039
15226
|
}
|
15040
15227
|
});
|
15041
|
-
var
|
15228
|
+
var config40, textarea_default;
|
15042
15229
|
var init_textarea = __esm({
|
15043
15230
|
"src/theme/components/textarea.ts"() {
|
15044
15231
|
init_input2();
|
15045
|
-
|
15232
|
+
config40 = react.defineStyleConfig({
|
15046
15233
|
baseStyle: (props) => ({
|
15047
15234
|
...input_default.baseStyle(props).field,
|
15048
15235
|
minHeight: "5rem",
|
@@ -15059,13 +15246,13 @@ var init_textarea = __esm({
|
|
15059
15246
|
}
|
15060
15247
|
})
|
15061
15248
|
});
|
15062
|
-
textarea_default =
|
15249
|
+
textarea_default = config40;
|
15063
15250
|
}
|
15064
15251
|
});
|
15065
|
-
var
|
15252
|
+
var config41, toast_default;
|
15066
15253
|
var init_toast = __esm({
|
15067
15254
|
"src/theme/components/toast.ts"() {
|
15068
|
-
|
15255
|
+
config41 = react.defineStyleConfig({
|
15069
15256
|
baseStyle: {
|
15070
15257
|
display: "flex",
|
15071
15258
|
alignItems: "center",
|
@@ -15089,15 +15276,15 @@ var init_toast = __esm({
|
|
15089
15276
|
}
|
15090
15277
|
}
|
15091
15278
|
});
|
15092
|
-
toast_default =
|
15279
|
+
toast_default = config41;
|
15093
15280
|
}
|
15094
15281
|
});
|
15095
|
-
var
|
15282
|
+
var config42, static_card_default, getColorSchemeBaseProps2;
|
15096
15283
|
var init_static_card = __esm({
|
15097
15284
|
"src/theme/components/static-card.ts"() {
|
15098
15285
|
init_foundations();
|
15099
15286
|
init_base_utils();
|
15100
|
-
|
15287
|
+
config42 = react.defineStyleConfig({
|
15101
15288
|
baseStyle: (props) => ({
|
15102
15289
|
appearance: "none",
|
15103
15290
|
border: "none",
|
@@ -15110,7 +15297,7 @@ var init_static_card = __esm({
|
|
15110
15297
|
...getColorSchemeBaseProps2(props)
|
15111
15298
|
})
|
15112
15299
|
});
|
15113
|
-
static_card_default =
|
15300
|
+
static_card_default = config42;
|
15114
15301
|
getColorSchemeBaseProps2 = (props) => {
|
15115
15302
|
var _a6;
|
15116
15303
|
switch (props.colorScheme) {
|
@@ -15177,6 +15364,7 @@ __export(components_exports, {
|
|
15177
15364
|
MediaControllerButton: () => media_controller_button_default,
|
15178
15365
|
Modal: () => modal_default,
|
15179
15366
|
NumericStepper: () => numeric_stepper_default,
|
15367
|
+
Pagination: () => pagination_default,
|
15180
15368
|
Popover: () => popover_default,
|
15181
15369
|
ProgressBar: () => progress_bar_default,
|
15182
15370
|
ProgressIndicator: () => progress_indicator_default,
|
@@ -15222,6 +15410,7 @@ var init_components = __esm({
|
|
15222
15410
|
init_media_controller_button();
|
15223
15411
|
init_modal2();
|
15224
15412
|
init_numeric_stepper();
|
15413
|
+
init_pagination2();
|
15225
15414
|
init_popover();
|
15226
15415
|
init_progress_bar();
|
15227
15416
|
init_progress_indicator2();
|
@@ -15349,7 +15538,7 @@ var init_theme = __esm({
|
|
15349
15538
|
};
|
15350
15539
|
}
|
15351
15540
|
});
|
15352
|
-
var BaseToast, ToastIcon, getIcon3,
|
15541
|
+
var BaseToast, ToastIcon, getIcon3, texts27;
|
15353
15542
|
var init_BaseToast = __esm({
|
15354
15543
|
"src/toast/BaseToast.tsx"() {
|
15355
15544
|
init_src();
|
@@ -15364,7 +15553,7 @@ var init_BaseToast = __esm({
|
|
15364
15553
|
Icon,
|
15365
15554
|
{
|
15366
15555
|
flexShrink: 0,
|
15367
|
-
"aria-label": t2(
|
15556
|
+
"aria-label": t2(texts27[variant]),
|
15368
15557
|
marginRight: 1,
|
15369
15558
|
marginY: 1.5,
|
15370
15559
|
color: "darkGrey"
|
@@ -15381,7 +15570,7 @@ var init_BaseToast = __esm({
|
|
15381
15570
|
return sporIconReact.ErrorOutline24Icon;
|
15382
15571
|
}
|
15383
15572
|
};
|
15384
|
-
|
15573
|
+
texts27 = createTexts({
|
15385
15574
|
info: {
|
15386
15575
|
nb: "Informasjon",
|
15387
15576
|
nn: "Informasjon",
|
@@ -15419,7 +15608,7 @@ var init_ActionToast = __esm({
|
|
15419
15608
|
};
|
15420
15609
|
}
|
15421
15610
|
});
|
15422
|
-
var ClosableToast,
|
15611
|
+
var ClosableToast, texts28;
|
15423
15612
|
var init_ClosableToast = __esm({
|
15424
15613
|
"src/toast/ClosableToast.tsx"() {
|
15425
15614
|
init_src();
|
@@ -15437,13 +15626,13 @@ var init_ClosableToast = __esm({
|
|
15437
15626
|
{
|
15438
15627
|
sx: styles3.dismissButton,
|
15439
15628
|
variant: "ghost",
|
15440
|
-
"aria-label": t2(
|
15629
|
+
"aria-label": t2(texts28.dismiss),
|
15441
15630
|
icon: /* @__PURE__ */ React70__namespace.default.createElement(sporIconReact.CloseFill18Icon, null),
|
15442
15631
|
onClick: onClose
|
15443
15632
|
}
|
15444
15633
|
));
|
15445
15634
|
};
|
15446
|
-
|
15635
|
+
texts28 = createTexts({
|
15447
15636
|
dismiss: {
|
15448
15637
|
nb: "Lukk",
|
15449
15638
|
nn: "Lukk",
|
@@ -15713,6 +15902,7 @@ var init_src = __esm({
|
|
15713
15902
|
init_media_controller();
|
15714
15903
|
init_modal();
|
15715
15904
|
init_nudge();
|
15905
|
+
init_pagination();
|
15716
15906
|
init_progress_indicator();
|
15717
15907
|
init_provider();
|
15718
15908
|
init_stepper();
|