@vygruppen/spor-react 12.4.2 → 12.4.4
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 +17 -11
- package/.turbo/turbo-postinstall.log +1 -19
- package/CHANGELOG.md +20 -0
- package/dist/icons/index.d.mts +1 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +14 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/icons/index.mjs +3 -0
- package/dist/icons/index.mjs.map +1 -0
- package/dist/index.js +155 -166
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +152 -158
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -5
- package/src/icons/index.tsx +1 -0
- package/src/nudge/Nudge.tsx +2 -1
- package/src/theme/semantic-tokens/colors.ts +4 -6
- package/src/theme/tokens/colors.ts +4 -6
- package/src/toast/toast.tsx +1 -1
- package/tsup.config.ts +1 -1
package/dist/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { useSlotRecipe, Accordion as Accordion$1, Stack, Box, HStack, Progress, defineRecipe, chakra, Text, useRecipe, Circle, Skeleton as Skeleton$1, Button as Button$1, Group as Group$1, Badge as Badge$1, Code as Code$1, Clipboard as Clipboard$1, IconButton as IconButton$1, useDisclosure, Alert as Alert$1, Span, Flex, Breadcrumb as Breadcrumb$1, ClientOnly as ClientOnly$1, Field, defineStyle, defineSlotRecipe, PopoverAnchor, useFieldContext, Popover as Popover$1, Portal, Dialog, createContext as createContext$1, Drawer as Drawer$1, Grid, GridItem, usePopoverContext, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, Fieldset as Fieldset$1, Input as Input$1, InputElement, NativeSelect as NativeSelect$1, useControllableState, createListCollection, RadioGroup as RadioGroup$1, Select as Select$1, useSelectContext, Switch as Switch$1, Textarea as Textarea$1, RadioCard as RadioCard$1, Separator as Separator$1, Link, List as List$1, Center, Pagination as Pagination$1, usePaginationContext, createToaster, Tabs as Tabs$1, Table as Table$1, defineSemanticTokens, defineTokens, defineAnimationStyles, defineGlobalStyles, defineTextStyles, createSystem, defaultBaseConfig, VisuallyHidden, defineConfig, ListItem, ChakraProvider, Toaster as Toaster$1, Toast, Icon } from '@chakra-ui/react';
|
1
|
+
import { useSlotRecipe, Accordion as Accordion$1, Stack, Box, HStack, Progress, defineRecipe, chakra, Text, useRecipe, Circle, Skeleton as Skeleton$1, Button as Button$1, Group as Group$1, Badge as Badge$1, Code as Code$1, Clipboard as Clipboard$1, IconButton as IconButton$1, useDisclosure, Alert as Alert$1, Span, Flex, Breadcrumb as Breadcrumb$1, ClientOnly as ClientOnly$1, Field, defineStyle, defineSlotRecipe, PopoverAnchor, useFieldContext, Popover as Popover$1, Portal, Dialog, createContext as createContext$1, Drawer as Drawer$1, Grid, GridItem, usePopoverContext, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, Fieldset as Fieldset$1, Input as Input$1, InputElement, NativeSelect as NativeSelect$1, useControllableState, createListCollection, RadioGroup as RadioGroup$1, Select as Select$1, useSelectContext, Switch as Switch$1, Textarea as Textarea$1, RadioCard as RadioCard$1, Separator as Separator$1, Link, List as List$1, Center, PopoverCloseTrigger, Pagination as Pagination$1, usePaginationContext, createToaster, Tabs as Tabs$1, Table as Table$1, defineSemanticTokens, defineTokens, defineAnimationStyles, defineGlobalStyles, defineTextStyles, createSystem, defaultBaseConfig, VisuallyHidden, defineConfig, ListItem, ChakraProvider, Toaster as Toaster$1, Toast, Icon } from '@chakra-ui/react';
|
2
2
|
export { Box, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, Collapsible, Container, Em, Flex, For, FormatByte, FormatNumber, Grid, GridItem, HStack, Image, Kbd, LocaleProvider, Portal, Show, SimpleGrid, Spacer, Span, Stack, TableBody, TableCaption, TableCell, TableColumn, TableColumnHeader, TableFooter, TableHeader, TableRoot, TableRow, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
|
3
3
|
import { DropdownDownFill24Icon, CopyOutline18Icon, CheckmarkFill18Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, ServiceFill24Icon, QuestionFill24Icon, ErrorOutline24Icon, ErrorFill24Icon, AltTransportFill24Icon, WarningFill24Icon, SuccessFill24Icon, InformationFill24Icon, DropdownDownFill18Icon, DropdownRightFill18Icon, CalendarOutline24Icon, ArrowLeftFill24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill18Icon, WarningFill18Icon, ErrorFill18Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, WalkFill30Icon, WalkFill24Icon, WalkFill18Icon, AltTransportFill30Icon, AltTransportFill18Icon, TramFill30Icon, TramFill24Icon, TramFill18Icon, SubwayFill30Icon, SubwayFill24Icon, SubwayFill18Icon, FerryFill30Icon, FerryFill24Icon, FerryFill18Icon, BusFill30Icon, BusFill24Icon, BusFill18Icon, ExpressBusFill30Icon, ExpressBusFill24Icon, ExpressBusFill18Icon, TrainFill30Icon, TrainFill24Icon, TrainFill18Icon, LinkOutOutline24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon, DropdownLeftFill18Icon, SuccessFill18Icon } from '@vygruppen/spor-icon-react';
|
4
4
|
import * as React28 from 'react';
|
@@ -18,17 +18,11 @@ import { popoverAnatomy as popoverAnatomy$1 } from '@ark-ui/react/popover';
|
|
18
18
|
import { GregorianCalendar, createCalendar, getLocalTimeZone, endOfMonth, getWeeksInMonth, isSameMonth, isToday, parseTime } from '@internationalized/date';
|
19
19
|
export { Time } from '@internationalized/date';
|
20
20
|
import { getSupportedCallingCodes } from 'awesome-phonenumber';
|
21
|
-
import
|
22
|
-
import * as
|
23
|
-
export {
|
24
|
-
import { usePopoverContext as usePopoverContext$1, PopoverCloseTrigger } from '@ark-ui/react';
|
21
|
+
import tokens22__default from '@vygruppen/spor-design-tokens';
|
22
|
+
import * as tokens22 from '@vygruppen/spor-design-tokens';
|
23
|
+
export { tokens22 as tokens };
|
25
24
|
import { Global } from '@emotion/react';
|
26
|
-
import
|
27
|
-
import vyDigitalJson from '@vygruppen/spor-design-tokens/tokens/color/vy-digital.json';
|
28
|
-
import VyUtviklingJson from '@vygruppen/spor-design-tokens/tokens/color/vy-utvikling.json';
|
29
|
-
import aliasJson from '@vygruppen/spor-design-tokens/tokens/color/alias.json';
|
30
|
-
import linjetagJson from '@vygruppen/spor-design-tokens/tokens/color/linjetag.json';
|
31
|
-
import paletteJson from '@vygruppen/spor-design-tokens/tokens/color/palette.json';
|
25
|
+
import tokens4 from '@vygruppen/spor-design-tokens/raw-tokens';
|
32
26
|
|
33
27
|
// src/accordion/Accordion.tsx
|
34
28
|
|
@@ -4582,16 +4576,16 @@ var pressableCardRecipe = defineRecipe({
|
|
4582
4576
|
},
|
4583
4577
|
core: {
|
4584
4578
|
outlineColor: "core.outline",
|
4585
|
-
outlineWidth:
|
4579
|
+
outlineWidth: tokens22__default.size.stroke.sm,
|
4586
4580
|
outlineStyle: "solid",
|
4587
4581
|
backgroundColor: "core.surface",
|
4588
4582
|
_hover: {
|
4589
4583
|
outlineColor: "core.outline.hover",
|
4590
|
-
outlineWidth:
|
4584
|
+
outlineWidth: tokens22__default.size.stroke.md,
|
4591
4585
|
outlineStyle: "solid",
|
4592
4586
|
_active: {
|
4593
4587
|
backgroundColor: "core.surface.active",
|
4594
|
-
outlineWidth:
|
4588
|
+
outlineWidth: tokens22__default.size.stroke.sm
|
4595
4589
|
}
|
4596
4590
|
}
|
4597
4591
|
},
|
@@ -5661,7 +5655,7 @@ var NudgeContent = forwardRef(
|
|
5661
5655
|
({ showCloseButton = true, children, ...props }, ref) => {
|
5662
5656
|
const [currentStep, setCurrentStep] = useState(1);
|
5663
5657
|
const childrenArray = React28__default.Children.toArray(children);
|
5664
|
-
const { open } = usePopoverContext
|
5658
|
+
const { open } = usePopoverContext();
|
5665
5659
|
useEffect(() => {
|
5666
5660
|
setCurrentStep(1);
|
5667
5661
|
}, [children, open]);
|
@@ -6022,7 +6016,7 @@ var texts24 = createTexts({
|
|
6022
6016
|
});
|
6023
6017
|
var fontFaces = `
|
6024
6018
|
@font-face {
|
6025
|
-
font-family: ${
|
6019
|
+
font-family: ${tokens22__default.asset.font["vy-sans"]["light"].name};
|
6026
6020
|
src: url("https://www.vy.no/styles/font/VySans-Light.woff2") format("woff2"),
|
6027
6021
|
url("https://www.vy.no/styles/font/VySans-Light.woff") format("woff");
|
6028
6022
|
font-style: normal;
|
@@ -6030,7 +6024,7 @@ var fontFaces = `
|
|
6030
6024
|
font-display: swap
|
6031
6025
|
}
|
6032
6026
|
@font-face {
|
6033
|
-
font-family: ${
|
6027
|
+
font-family: ${tokens22__default.asset.font["vy-sans"]["light-italic"].name};
|
6034
6028
|
src: url("https://www.vy.no/styles/font/VySans-LightItalic.woff2")
|
6035
6029
|
format("woff2"),
|
6036
6030
|
url("https://www.vy.no/styles/font/VySans-LightItalic.woff") format("woff");
|
@@ -6039,7 +6033,7 @@ var fontFaces = `
|
|
6039
6033
|
font-display: swap
|
6040
6034
|
}
|
6041
6035
|
@font-face {
|
6042
|
-
font-family: ${
|
6036
|
+
font-family: ${tokens22__default.asset.font["vy-sans"]["medium"].name};
|
6043
6037
|
src: url("https://www.vy.no/styles/font/VySans-Regular.woff2") format("woff2"),
|
6044
6038
|
url("https://www.vy.no/styles/font/VySans-Regular.woff") format("woff");
|
6045
6039
|
font-style: normal;
|
@@ -6047,7 +6041,7 @@ var fontFaces = `
|
|
6047
6041
|
font-display: swap
|
6048
6042
|
}
|
6049
6043
|
@font-face {
|
6050
|
-
font-family: ${
|
6044
|
+
font-family: ${tokens22__default.asset.font["vy-sans"]["medium-italic"].name};
|
6051
6045
|
src: url("https://www.vy.no/styles/font/VySans-RegularItalic.woff2")
|
6052
6046
|
format("woff2"),
|
6053
6047
|
url("https://www.vy.no/styles/font/VySans-RegularItalic.woff")
|
@@ -6057,7 +6051,7 @@ var fontFaces = `
|
|
6057
6051
|
font-display: swap
|
6058
6052
|
}
|
6059
6053
|
@font-face {
|
6060
|
-
font-family: ${
|
6054
|
+
font-family: ${tokens22__default.asset.font["vy-sans"]["bold"].name};
|
6061
6055
|
src: url("https://www.vy.no/styles/font/VySans-Bold.woff2") format("woff2"),
|
6062
6056
|
url("https://www.vy.no/styles/font/VySans-Bold.woff") format("woff");
|
6063
6057
|
font-style: normal;
|
@@ -6065,7 +6059,7 @@ var fontFaces = `
|
|
6065
6059
|
font-display: swap
|
6066
6060
|
}
|
6067
6061
|
@font-face {
|
6068
|
-
font-family: ${
|
6062
|
+
font-family: ${tokens22__default.asset.font["vy-sans"]["bold-italic"].name};
|
6069
6063
|
src: url("https://www.vy.no/styles/font/VySans-BoldItalic.woff2")
|
6070
6064
|
format("woff2"),
|
6071
6065
|
url("https://www.vy.no/styles/font/VySans-BoldItalic.woff") format("woff");
|
@@ -6074,7 +6068,7 @@ var fontFaces = `
|
|
6074
6068
|
font-display: swap
|
6075
6069
|
}
|
6076
6070
|
@font-face {
|
6077
|
-
font-family: ${
|
6071
|
+
font-family: ${tokens22__default.asset.font["vy-display"].name};
|
6078
6072
|
src: url("https://www.vy.no/styles/font/VyDisplay-Medium.woff2")
|
6079
6073
|
format("woff2"),
|
6080
6074
|
url("https://www.vy.no/styles/font/VyDisplay-Medium.woff") format("woff");
|
@@ -6106,7 +6100,7 @@ var createToast = ({
|
|
6106
6100
|
}) => toaster.create({
|
6107
6101
|
description: text,
|
6108
6102
|
type: variant,
|
6109
|
-
id,
|
6103
|
+
id: id ?? crypto.randomUUID(),
|
6110
6104
|
duration
|
6111
6105
|
});
|
6112
6106
|
var Toaster = () => {
|
@@ -6583,7 +6577,7 @@ var buttonRecipe = defineRecipe({
|
|
6583
6577
|
background: "surface.disabled"
|
6584
6578
|
},
|
6585
6579
|
_focus: {
|
6586
|
-
outlineOffset:
|
6580
|
+
outlineOffset: tokens22__default.size.stroke.md
|
6587
6581
|
}
|
6588
6582
|
},
|
6589
6583
|
variants: {
|
@@ -6611,19 +6605,19 @@ var buttonRecipe = defineRecipe({
|
|
6611
6605
|
tertiary: {
|
6612
6606
|
color: "core.text",
|
6613
6607
|
outline: "solid",
|
6614
|
-
outlineWidth:
|
6608
|
+
outlineWidth: tokens22__default.size.stroke.sm,
|
6615
6609
|
outlineColor: "core.outline",
|
6616
6610
|
_hover: {
|
6617
|
-
outlineWidth:
|
6611
|
+
outlineWidth: tokens22__default.size.stroke.md,
|
6618
6612
|
outlineColor: "core.outline.hover",
|
6619
6613
|
_active: {
|
6620
6614
|
background: "core.surface.active",
|
6621
|
-
outlineWidth:
|
6615
|
+
outlineWidth: tokens22__default.size.stroke.sm,
|
6622
6616
|
outlineColor: "core.outline"
|
6623
6617
|
}
|
6624
6618
|
},
|
6625
6619
|
_focus: {
|
6626
|
-
outlineWidth:
|
6620
|
+
outlineWidth: tokens22__default.size.stroke.sm
|
6627
6621
|
}
|
6628
6622
|
},
|
6629
6623
|
ghost: {
|
@@ -6851,23 +6845,23 @@ var recipes = {
|
|
6851
6845
|
textarea: textareaRecipe
|
6852
6846
|
};
|
6853
6847
|
var vyDigitalColors = defineSemanticTokens.colors({
|
6854
|
-
...
|
6848
|
+
...tokens4.color["vy-digital"].color.vyDigital
|
6855
6849
|
});
|
6856
6850
|
var vyUtviklingColors = defineSemanticTokens.colors({
|
6857
|
-
...
|
6851
|
+
...tokens4.color["vy-utvikling"].color.vyUtvikling
|
6858
6852
|
});
|
6859
6853
|
var cargonetColors = defineSemanticTokens.colors({
|
6860
|
-
...
|
6854
|
+
...tokens4.color.cargonet.color.cargonet
|
6861
6855
|
});
|
6862
6856
|
var radii = defineSemanticTokens.radii({
|
6863
|
-
none: { value:
|
6864
|
-
xxs: { value:
|
6865
|
-
xs: { value:
|
6866
|
-
sm: { value:
|
6867
|
-
md: { value:
|
6868
|
-
lg: { value:
|
6869
|
-
xl: { value:
|
6870
|
-
"2xl": { value:
|
6857
|
+
none: { value: tokens22__default.size["border-radius"].none },
|
6858
|
+
xxs: { value: tokens22__default.size["border-radius"].xxs },
|
6859
|
+
xs: { value: tokens22__default.size["border-radius"].xs },
|
6860
|
+
sm: { value: tokens22__default.size["border-radius"].sm },
|
6861
|
+
md: { value: tokens22__default.size["border-radius"].md },
|
6862
|
+
lg: { value: tokens22__default.size["border-radius"].lg },
|
6863
|
+
xl: { value: tokens22__default.size["border-radius"].xl },
|
6864
|
+
"2xl": { value: tokens22__default.size["border-radius"]["2xl"] },
|
6871
6865
|
round: { value: "50%" }
|
6872
6866
|
});
|
6873
6867
|
var shadows = defineSemanticTokens.shadows({
|
@@ -6875,13 +6869,13 @@ var shadows = defineSemanticTokens.shadows({
|
|
6875
6869
|
value: "none"
|
6876
6870
|
},
|
6877
6871
|
sm: {
|
6878
|
-
value:
|
6872
|
+
value: tokens22__default.depth.shadow.sm.value
|
6879
6873
|
},
|
6880
6874
|
md: {
|
6881
|
-
value:
|
6875
|
+
value: tokens22__default.depth.shadow.md.value
|
6882
6876
|
},
|
6883
6877
|
lg: {
|
6884
|
-
value:
|
6878
|
+
value: tokens22__default.depth.shadow.lg.value
|
6885
6879
|
}
|
6886
6880
|
});
|
6887
6881
|
|
@@ -7384,7 +7378,7 @@ var breadcrumbSlotRecipe = defineSlotRecipe({
|
|
7384
7378
|
link: {
|
7385
7379
|
_hover: {
|
7386
7380
|
outlineColor: "core.outline.hover",
|
7387
|
-
outlineWidth:
|
7381
|
+
outlineWidth: tokens22__default.size.stroke.md,
|
7388
7382
|
outlineStyle: "solid",
|
7389
7383
|
_active: {
|
7390
7384
|
backgroundColor: "core.surface.active",
|
@@ -7476,10 +7470,10 @@ var checkboxSlotRecipe = defineSlotRecipe({
|
|
7476
7470
|
_focus: {
|
7477
7471
|
outlineStyle: "solid",
|
7478
7472
|
outlineColor: "outline.focus",
|
7479
|
-
outlineOffset:
|
7480
|
-
outlineWidth:
|
7473
|
+
outlineOffset: tokens22__default.size.stroke.md,
|
7474
|
+
outlineWidth: tokens22__default.size.stroke.md,
|
7481
7475
|
borderColor: "core.outline",
|
7482
|
-
borderWidth:
|
7476
|
+
borderWidth: tokens22__default.size.stroke.md
|
7483
7477
|
}
|
7484
7478
|
},
|
7485
7479
|
label: {
|
@@ -8133,7 +8127,7 @@ var floatingActionButtonSlotRecipe = defineSlotRecipe({
|
|
8133
8127
|
position: "fixed",
|
8134
8128
|
zIndex: "dropdown",
|
8135
8129
|
_focus: {
|
8136
|
-
outlineOffset:
|
8130
|
+
outlineOffset: tokens22__default.size.stroke.lg,
|
8137
8131
|
outlineColor: "outline.focus"
|
8138
8132
|
},
|
8139
8133
|
_disabled: {
|
@@ -9138,26 +9132,26 @@ var radioCardSlotRecipe = defineSlotRecipe({
|
|
9138
9132
|
core: {
|
9139
9133
|
item: {
|
9140
9134
|
outlineColor: "core.outline",
|
9141
|
-
outlineWidth:
|
9135
|
+
outlineWidth: tokens22__default.size.stroke.sm,
|
9142
9136
|
outlineStyle: "solid",
|
9143
9137
|
backgroundColor: "core.surface",
|
9144
9138
|
_hover: {
|
9145
9139
|
outlineColor: "core.outline.hover",
|
9146
|
-
outlineWidth:
|
9140
|
+
outlineWidth: tokens22__default.size.stroke.md,
|
9147
9141
|
outlineStyle: "solid",
|
9148
9142
|
_active: {
|
9149
9143
|
backgroundColor: "core.surface.active",
|
9150
|
-
outlineWidth:
|
9144
|
+
outlineWidth: tokens22__default.size.stroke.sm
|
9151
9145
|
}
|
9152
9146
|
},
|
9153
9147
|
_checked: {
|
9154
9148
|
outlineColor: "outline.focus",
|
9155
|
-
outlineWidth:
|
9149
|
+
outlineWidth: tokens22__default.size.stroke.md,
|
9156
9150
|
outlineStyle: "solid",
|
9157
9151
|
backgroundColor: "core.surface.active",
|
9158
9152
|
_focusVisible: {
|
9159
9153
|
outlineStyle: "double",
|
9160
|
-
outlineWidth: `calc(3 * ${
|
9154
|
+
outlineWidth: `calc(3 * ${tokens22__default.size.stroke.md})`
|
9161
9155
|
// space for double outline
|
9162
9156
|
}
|
9163
9157
|
}
|
@@ -9182,12 +9176,12 @@ var radioCardSlotRecipe = defineSlotRecipe({
|
|
9182
9176
|
},
|
9183
9177
|
_checked: {
|
9184
9178
|
outlineColor: "outline.focus",
|
9185
|
-
outlineWidth:
|
9179
|
+
outlineWidth: tokens22__default.size.stroke.md,
|
9186
9180
|
outlineStyle: "solid",
|
9187
9181
|
backgroundColor: "core.surface.active",
|
9188
9182
|
_focusVisible: {
|
9189
9183
|
outlineStyle: "double",
|
9190
|
-
outlineWidth: `calc(3 * ${
|
9184
|
+
outlineWidth: `calc(3 * ${tokens22__default.size.stroke.md})`
|
9191
9185
|
// space for double outline
|
9192
9186
|
}
|
9193
9187
|
}
|
@@ -9652,7 +9646,7 @@ var switchSlotRecipe = defineSlotRecipe({
|
|
9652
9646
|
backgroundColor: "brand.surface",
|
9653
9647
|
_focusVisible: {
|
9654
9648
|
outlineStyle: "double",
|
9655
|
-
outlineWidth: `calc(3 * ${
|
9649
|
+
outlineWidth: `calc(3 * ${tokens22__default.size.stroke.md})`
|
9656
9650
|
// space for double outline
|
9657
9651
|
}
|
9658
9652
|
},
|
@@ -10028,28 +10022,28 @@ var borders = defineTokens.borders({
|
|
10028
10022
|
value: "0"
|
10029
10023
|
},
|
10030
10024
|
sm: {
|
10031
|
-
value: `${
|
10025
|
+
value: `${tokens22__default.size.stroke.sm} solid`
|
10032
10026
|
},
|
10033
10027
|
"sm-dashed": {
|
10034
|
-
value: `${
|
10028
|
+
value: `${tokens22__default.size.stroke.sm} dashed`
|
10035
10029
|
},
|
10036
10030
|
md: {
|
10037
|
-
value: `${
|
10031
|
+
value: `${tokens22__default.size.stroke.md} solid`
|
10038
10032
|
},
|
10039
10033
|
"md-dashed": {
|
10040
|
-
value: `${
|
10034
|
+
value: `${tokens22__default.size.stroke.md} dashed`
|
10041
10035
|
},
|
10042
10036
|
lg: {
|
10043
|
-
value: `${
|
10037
|
+
value: `${tokens22__default.size.stroke.lg} solid`
|
10044
10038
|
},
|
10045
10039
|
"lg-dashed": {
|
10046
|
-
value: `${
|
10040
|
+
value: `${tokens22__default.size.stroke.lg} dashed`
|
10047
10041
|
}
|
10048
10042
|
});
|
10049
10043
|
var colors = defineTokens.colors({
|
10050
|
-
...
|
10051
|
-
...
|
10052
|
-
linjetag:
|
10044
|
+
...tokens4.color.alias.color.alias,
|
10045
|
+
...tokens4.color.palette.color.palette,
|
10046
|
+
linjetag: tokens4.color.linjetag.color.linjetag
|
10053
10047
|
});
|
10054
10048
|
var cursor = defineTokens.cursor({
|
10055
10049
|
button: {
|
@@ -10115,29 +10109,29 @@ var easings = defineTokens.easings({
|
|
10115
10109
|
}
|
10116
10110
|
});
|
10117
10111
|
var fontSizes = defineTokens.fontSizes({
|
10118
|
-
"2xs": { value:
|
10119
|
-
xs: { value:
|
10120
|
-
sm: { value:
|
10121
|
-
md: { value:
|
10122
|
-
lg: { value:
|
10123
|
-
xl: { value:
|
10124
|
-
"2xl": { value:
|
10125
|
-
"3xl": { value:
|
10112
|
+
"2xs": { value: tokens22__default.size.font.xs.mobile },
|
10113
|
+
xs: { value: tokens22__default.size.font.sm.mobile },
|
10114
|
+
sm: { value: tokens22__default.size.font.md.mobile },
|
10115
|
+
md: { value: tokens22__default.size.font.lg.mobile },
|
10116
|
+
lg: { value: tokens22__default.size.font.xl.mobile },
|
10117
|
+
xl: { value: tokens22__default.size.font.xxl.mobile },
|
10118
|
+
"2xl": { value: tokens22__default.size.font.xl.desktop },
|
10119
|
+
"3xl": { value: tokens22__default.size.font.xxl.desktop },
|
10126
10120
|
mobile: {
|
10127
|
-
xs: { value:
|
10128
|
-
sm: { value:
|
10129
|
-
md: { value:
|
10130
|
-
lg: { value:
|
10131
|
-
xl: { value:
|
10132
|
-
xxl: { value:
|
10121
|
+
xs: { value: tokens22__default.size.font.xs.mobile },
|
10122
|
+
sm: { value: tokens22__default.size.font.sm.mobile },
|
10123
|
+
md: { value: tokens22__default.size.font.md.mobile },
|
10124
|
+
lg: { value: tokens22__default.size.font.lg.mobile },
|
10125
|
+
xl: { value: tokens22__default.size.font.xl.mobile },
|
10126
|
+
xxl: { value: tokens22__default.size.font.xxl.mobile }
|
10133
10127
|
},
|
10134
10128
|
desktop: {
|
10135
|
-
xs: { value:
|
10136
|
-
sm: { value:
|
10137
|
-
md: { value:
|
10138
|
-
lg: { value:
|
10139
|
-
xl: { value:
|
10140
|
-
xxl: { value:
|
10129
|
+
xs: { value: tokens22__default.size.font.xs.desktop },
|
10130
|
+
sm: { value: tokens22__default.size.font.sm.desktop },
|
10131
|
+
md: { value: tokens22__default.size.font.md.desktop },
|
10132
|
+
lg: { value: tokens22__default.size.font.lg.desktop },
|
10133
|
+
xl: { value: tokens22__default.size.font.xl.desktop },
|
10134
|
+
xxl: { value: tokens22__default.size.font.xxl.desktop }
|
10141
10135
|
}
|
10142
10136
|
});
|
10143
10137
|
var fontWeights = defineTokens.fontWeights({
|
@@ -10170,9 +10164,9 @@ var fontWeights = defineTokens.fontWeights({
|
|
10170
10164
|
}
|
10171
10165
|
});
|
10172
10166
|
var fonts = defineTokens.fonts({
|
10173
|
-
body: { value: `${
|
10174
|
-
heading: { value: `${
|
10175
|
-
mono: { value: `${
|
10167
|
+
body: { value: `${tokens22__default.font.family.body}, arial, sans-serif` },
|
10168
|
+
heading: { value: `${tokens22__default.font.family.heading}, arial, sans-serif` },
|
10169
|
+
mono: { value: `${tokens22__default.font.family.monospace}, monospace` }
|
10176
10170
|
});
|
10177
10171
|
var letterSpacings = defineTokens.letterSpacings({
|
10178
10172
|
tighter: {
|
@@ -10209,31 +10203,31 @@ var lineHeights = defineTokens.lineHeights({
|
|
10209
10203
|
}
|
10210
10204
|
});
|
10211
10205
|
var radii2 = defineTokens.radii({
|
10212
|
-
none: { value:
|
10213
|
-
xs: { value:
|
10214
|
-
sm: { value:
|
10215
|
-
md: { value:
|
10216
|
-
lg: { value:
|
10217
|
-
xl: { value:
|
10218
|
-
"2xl": { value:
|
10206
|
+
none: { value: tokens22__default.size["border-radius"].none },
|
10207
|
+
xs: { value: tokens22__default.size["border-radius"].xs },
|
10208
|
+
sm: { value: tokens22__default.size["border-radius"].sm },
|
10209
|
+
md: { value: tokens22__default.size["border-radius"].md },
|
10210
|
+
lg: { value: tokens22__default.size["border-radius"].lg },
|
10211
|
+
xl: { value: tokens22__default.size["border-radius"].xl },
|
10212
|
+
"2xl": { value: tokens22__default.size["border-radius"]["2xl"] },
|
10219
10213
|
round: { value: "50%" }
|
10220
10214
|
});
|
10221
10215
|
var spacing = defineTokens.spacing({
|
10222
|
-
0: { value:
|
10223
|
-
0.5: { value:
|
10224
|
-
1: { value:
|
10225
|
-
1.5: { value:
|
10226
|
-
2: { value:
|
10227
|
-
3: { value:
|
10228
|
-
4: { value:
|
10229
|
-
5: { value:
|
10230
|
-
6: { value:
|
10231
|
-
7: { value:
|
10232
|
-
8: { value:
|
10233
|
-
9: { value:
|
10234
|
-
10: { value:
|
10235
|
-
11: { value:
|
10236
|
-
12: { value:
|
10216
|
+
0: { value: tokens22__default.size.spacing["0"] },
|
10217
|
+
0.5: { value: tokens22__default.size.spacing["0.5"] },
|
10218
|
+
1: { value: tokens22__default.size.spacing["1"] },
|
10219
|
+
1.5: { value: tokens22__default.size.spacing["1.5"] },
|
10220
|
+
2: { value: tokens22__default.size.spacing["2"] },
|
10221
|
+
3: { value: tokens22__default.size.spacing["3"] },
|
10222
|
+
4: { value: tokens22__default.size.spacing["4"] },
|
10223
|
+
5: { value: tokens22__default.size.spacing["5"] },
|
10224
|
+
6: { value: tokens22__default.size.spacing["6"] },
|
10225
|
+
7: { value: tokens22__default.size.spacing["7"] },
|
10226
|
+
8: { value: tokens22__default.size.spacing["8"] },
|
10227
|
+
9: { value: tokens22__default.size.spacing["9"] },
|
10228
|
+
10: { value: tokens22__default.size.spacing["10"] },
|
10229
|
+
11: { value: tokens22__default.size.spacing["11"] },
|
10230
|
+
12: { value: tokens22__default.size.spacing["12"] }
|
10237
10231
|
});
|
10238
10232
|
|
10239
10233
|
// src/theme/tokens/sizes.ts
|
@@ -10270,10 +10264,10 @@ var namedSizes = defineTokens.sizes({
|
|
10270
10264
|
});
|
10271
10265
|
var container = defineTokens.sizes({
|
10272
10266
|
base: { value: 0 },
|
10273
|
-
sm: { value:
|
10274
|
-
md: { value:
|
10275
|
-
lg: { value:
|
10276
|
-
xl: { value:
|
10267
|
+
sm: { value: tokens22__default.size.breakpoint.sm },
|
10268
|
+
md: { value: tokens22__default.size.breakpoint.md },
|
10269
|
+
lg: { value: tokens22__default.size.breakpoint.lg },
|
10270
|
+
xl: { value: tokens22__default.size.breakpoint.xl }
|
10277
10271
|
});
|
10278
10272
|
var sizes = {
|
10279
10273
|
...largeSizes,
|
@@ -10282,22 +10276,22 @@ var sizes = {
|
|
10282
10276
|
container
|
10283
10277
|
};
|
10284
10278
|
var zIndex = defineTokens.zIndex({
|
10285
|
-
hide: { value:
|
10279
|
+
hide: { value: tokens22__default.depth["z-index"].hide },
|
10286
10280
|
auto: { value: "auto" },
|
10287
|
-
base: { value:
|
10288
|
-
docked: { value:
|
10289
|
-
dropdown: { value:
|
10290
|
-
sticky: { value:
|
10291
|
-
banner: { value:
|
10292
|
-
overlay: { value:
|
10293
|
-
modal: { value:
|
10294
|
-
popover: { value:
|
10295
|
-
skipLink: { value:
|
10296
|
-
toast: { value:
|
10281
|
+
base: { value: tokens22__default.depth["z-index"].base },
|
10282
|
+
docked: { value: tokens22__default.depth["z-index"].docked },
|
10283
|
+
dropdown: { value: tokens22__default.depth["z-index"].dropdown },
|
10284
|
+
sticky: { value: tokens22__default.depth["z-index"].sticky },
|
10285
|
+
banner: { value: tokens22__default.depth["z-index"].banner },
|
10286
|
+
overlay: { value: tokens22__default.depth["z-index"].overlay },
|
10287
|
+
modal: { value: tokens22__default.depth["z-index"].modal },
|
10288
|
+
popover: { value: tokens22__default.depth["z-index"].popover },
|
10289
|
+
skipLink: { value: tokens22__default.depth["z-index"].skipLink },
|
10290
|
+
toast: { value: tokens22__default.depth["z-index"].toast }
|
10297
10291
|
});
|
10298
10292
|
|
10299
10293
|
// src/theme/tokens/index.ts
|
10300
|
-
var
|
10294
|
+
var tokens20 = {
|
10301
10295
|
aspectRatios,
|
10302
10296
|
animations,
|
10303
10297
|
blurs,
|
@@ -10366,10 +10360,10 @@ var animationStyles = defineAnimationStyles({
|
|
10366
10360
|
});
|
10367
10361
|
var breakpoints = {
|
10368
10362
|
base: "0px",
|
10369
|
-
sm:
|
10370
|
-
md:
|
10371
|
-
lg:
|
10372
|
-
xl:
|
10363
|
+
sm: tokens22__default.size.breakpoint.sm,
|
10364
|
+
md: tokens22__default.size.breakpoint.md,
|
10365
|
+
lg: tokens22__default.size.breakpoint.lg,
|
10366
|
+
xl: tokens22__default.size.breakpoint.xl
|
10373
10367
|
};
|
10374
10368
|
|
10375
10369
|
// src/theme/tokens/config.ts
|
@@ -10659,85 +10653,85 @@ var textStyles = defineTextStyles({
|
|
10659
10653
|
xxl: {
|
10660
10654
|
value: {
|
10661
10655
|
fontSize: [
|
10662
|
-
|
10656
|
+
tokens22__default.font.style.xxl["font-size"].mobile,
|
10663
10657
|
null,
|
10664
10658
|
null,
|
10665
|
-
|
10659
|
+
tokens22__default.font.style.xxl["font-size"].desktop
|
10666
10660
|
],
|
10667
|
-
fontFamily:
|
10668
|
-
lineHeight:
|
10661
|
+
fontFamily: tokens22__default.font.style.xxl["font-family"],
|
10662
|
+
lineHeight: tokens22__default.font.style.xxl["line-height"]
|
10669
10663
|
}
|
10670
10664
|
},
|
10671
10665
|
"xl-display": {
|
10672
10666
|
value: {
|
10673
10667
|
fontSize: [
|
10674
|
-
|
10668
|
+
tokens22__default.font.style["xl-display"]["font-size"].mobile,
|
10675
10669
|
null,
|
10676
10670
|
null,
|
10677
|
-
|
10671
|
+
tokens22__default.font.style["xl-display"]["font-size"].desktop
|
10678
10672
|
],
|
10679
|
-
fontFamily:
|
10680
|
-
lineHeight:
|
10673
|
+
fontFamily: tokens22__default.font.style["xl-display"]["font-family"],
|
10674
|
+
lineHeight: tokens22__default.font.style["xl-display"]["line-height"]
|
10681
10675
|
}
|
10682
10676
|
},
|
10683
10677
|
"xl-sans": {
|
10684
10678
|
value: {
|
10685
10679
|
fontSize: [
|
10686
|
-
|
10680
|
+
tokens22__default.font.style["xl-sans"]["font-size"].mobile,
|
10687
10681
|
null,
|
10688
10682
|
null,
|
10689
|
-
|
10683
|
+
tokens22__default.font.style["xl-sans"]["font-size"].desktop
|
10690
10684
|
],
|
10691
|
-
fontFamily:
|
10692
|
-
lineHeight:
|
10685
|
+
fontFamily: tokens22__default.font.style["xl-sans"]["font-family"],
|
10686
|
+
lineHeight: tokens22__default.font.style["xl-sans"]["line-height"]
|
10693
10687
|
}
|
10694
10688
|
},
|
10695
10689
|
lg: {
|
10696
10690
|
value: {
|
10697
10691
|
fontSize: [
|
10698
|
-
|
10692
|
+
tokens22__default.font.style.lg["font-size"].mobile,
|
10699
10693
|
null,
|
10700
10694
|
null,
|
10701
|
-
|
10695
|
+
tokens22__default.font.style.lg["font-size"].desktop
|
10702
10696
|
],
|
10703
|
-
fontFamily:
|
10704
|
-
lineHeight:
|
10697
|
+
fontFamily: tokens22__default.font.style.lg["font-family"],
|
10698
|
+
lineHeight: tokens22__default.font.style.lg["line-height"]
|
10705
10699
|
}
|
10706
10700
|
},
|
10707
10701
|
md: {
|
10708
10702
|
value: {
|
10709
10703
|
fontSize: [
|
10710
|
-
|
10704
|
+
tokens22__default.font.style.md["font-size"].mobile,
|
10711
10705
|
null,
|
10712
10706
|
null,
|
10713
|
-
|
10707
|
+
tokens22__default.font.style.md["font-size"].desktop
|
10714
10708
|
],
|
10715
|
-
fontFamily:
|
10716
|
-
lineHeight:
|
10709
|
+
fontFamily: tokens22__default.font.style.md["font-family"],
|
10710
|
+
lineHeight: tokens22__default.font.style.md["line-height"]
|
10717
10711
|
}
|
10718
10712
|
},
|
10719
10713
|
sm: {
|
10720
10714
|
value: {
|
10721
10715
|
fontSize: [
|
10722
|
-
|
10716
|
+
tokens22__default.font.style.sm["font-size"].mobile,
|
10723
10717
|
null,
|
10724
10718
|
null,
|
10725
|
-
|
10719
|
+
tokens22__default.font.style.sm["font-size"].desktop
|
10726
10720
|
],
|
10727
|
-
fontFamily:
|
10728
|
-
lineHeight:
|
10721
|
+
fontFamily: tokens22__default.font.style.sm["font-family"],
|
10722
|
+
lineHeight: tokens22__default.font.style.sm["line-height"]
|
10729
10723
|
}
|
10730
10724
|
},
|
10731
10725
|
xs: {
|
10732
10726
|
value: {
|
10733
10727
|
fontSize: [
|
10734
|
-
|
10728
|
+
tokens22__default.font.style.xs["font-size"].mobile,
|
10735
10729
|
null,
|
10736
10730
|
null,
|
10737
|
-
|
10731
|
+
tokens22__default.font.style.xs["font-size"].desktop
|
10738
10732
|
],
|
10739
|
-
fontFamily:
|
10740
|
-
lineHeight:
|
10733
|
+
fontFamily: tokens22__default.font.style.xs["font-family"],
|
10734
|
+
lineHeight: tokens22__default.font.style.xs["line-height"]
|
10741
10735
|
}
|
10742
10736
|
}
|
10743
10737
|
});
|
@@ -10748,7 +10742,7 @@ var generateTheme = (brand) => {
|
|
10748
10742
|
theme: {
|
10749
10743
|
breakpoints,
|
10750
10744
|
keyframes,
|
10751
|
-
tokens:
|
10745
|
+
tokens: tokens20,
|
10752
10746
|
semanticTokens: semanticTokens[brand],
|
10753
10747
|
recipes,
|
10754
10748
|
slotRecipes,
|