@fremtind/jokul 3.6.0 → 3.7.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/README.md +15 -2
- package/build/build-stats.html +1 -1
- package/build/cjs/components/menu/Menu.cjs +1 -1
- package/build/cjs/components/menu/Menu.cjs.map +1 -1
- package/build/cjs/components/text-input/BaseTextInput.cjs +1 -1
- package/build/cjs/components/text-input/BaseTextInput.cjs.map +1 -1
- package/build/cjs/core/tokens/style-dictionary/build.cjs +1 -1
- package/build/cjs/core/tokens/style-dictionary/build.cjs.map +1 -1
- package/build/cjs/core/tokens.cjs +1 -1
- package/build/cjs/core/tokens.cjs.map +1 -1
- package/build/cjs/core/tokens.d.cts +114 -0
- package/build/cjs/tailwind/plugins/jokulTypographyPlugin.cjs +1 -1
- package/build/cjs/tailwind/plugins/jokulTypographyPlugin.cjs.map +1 -1
- package/build/es/components/menu/Menu.js +1 -1
- package/build/es/components/menu/Menu.js.map +1 -1
- package/build/es/components/text-input/BaseTextInput.js +1 -1
- package/build/es/components/text-input/BaseTextInput.js.map +1 -1
- package/build/es/core/tokens/style-dictionary/build.js +1 -1
- package/build/es/core/tokens/style-dictionary/build.js.map +1 -1
- package/build/es/core/tokens.d.ts +114 -0
- package/build/es/core/tokens.js +1 -1
- package/build/es/core/tokens.js.map +1 -1
- package/build/es/tailwind/plugins/jokulTypographyPlugin.js +1 -1
- package/build/es/tailwind/plugins/jokulTypographyPlugin.js.map +1 -1
- package/package.json +4 -2
- package/styles/components/autosuggest/_index.scss +2 -0
- package/styles/components/autosuggest/autosuggest.scss +87 -0
- package/styles/components/breadcrumb/_index.scss +2 -0
- package/styles/components/breadcrumb/breadcrumb.scss +38 -0
- package/styles/components/button/_index.scss +2 -0
- package/styles/components/button/button.scss +169 -0
- package/styles/components/card/_index.scss +3 -0
- package/styles/components/card/card.scss +105 -0
- package/styles/components/checkbox/_index.scss +1 -0
- package/styles/components/checkbox/checkbox.css +4 -4
- package/styles/components/checkbox/checkbox.min.css +1 -1
- package/styles/components/checkbox/checkbox.scss +248 -0
- package/styles/components/checkbox-panel/_index.scss +1 -0
- package/styles/components/checkbox-panel/checkbox-panel.css +6 -6
- package/styles/components/checkbox-panel/checkbox-panel.min.css +1 -1
- package/styles/components/checkbox-panel/checkbox-panel.scss +95 -0
- package/styles/components/checkbox-panel/development/styles.scss +27 -0
- package/styles/components/chip/_index.scss +2 -0
- package/styles/components/chip/chip.scss +104 -0
- package/styles/components/combobox/_index.scss +6 -0
- package/styles/components/combobox/combobox.scss +238 -0
- package/styles/components/cookie-consent/_index.scss +5 -0
- package/styles/components/cookie-consent/cookie-consent.scss +31 -0
- package/styles/components/countdown/_index.scss +1 -0
- package/styles/components/countdown/countdown.css +2 -2
- package/styles/components/countdown/countdown.min.css +1 -1
- package/styles/components/countdown/countdown.scss +25 -0
- package/styles/components/datepicker/_calendar-date-button.scss +85 -0
- package/styles/components/datepicker/_calendar-navigation-dropdown.scss +52 -0
- package/styles/components/datepicker/_calendar-navigation.scss +12 -0
- package/styles/components/datepicker/_calendar-table.scss +27 -0
- package/styles/components/datepicker/_calendar.scss +36 -0
- package/styles/components/datepicker/_index.scss +6 -0
- package/styles/components/datepicker/datepicker.scss +47 -0
- package/styles/components/description-list/_index.scss +1 -0
- package/styles/components/description-list/description-list.scss +58 -0
- package/styles/components/expander/_index.scss +4 -0
- package/styles/components/expander/expandable.scss +141 -0
- package/styles/components/feedback/_index.scss +10 -0
- package/styles/components/feedback/feedback.css +2 -2
- package/styles/components/feedback/feedback.min.css +1 -1
- package/styles/components/feedback/feedback.scss +113 -0
- package/styles/components/file/_index.scss +3 -0
- package/styles/components/file/file.scss +164 -0
- package/styles/components/file-input/_index.scss +5 -0
- package/styles/components/file-input/file-input.css +9 -9
- package/styles/components/file-input/file-input.min.css +1 -1
- package/styles/components/file-input/file-input.scss +130 -0
- package/styles/components/flex/_index.scss +1 -0
- package/styles/components/flex/flex.scss +252 -0
- package/styles/components/help/_index.scss +2 -0
- package/styles/components/help/help.scss +47 -0
- package/styles/components/icon/_base-styles.scss +21 -0
- package/styles/components/icon/_index.scss +1 -0
- package/styles/components/icon/development/internal/icons-example-grid.scss +13 -0
- package/styles/components/icon/icon.scss +139 -0
- package/styles/components/icon-button/_index.scss +1 -0
- package/styles/components/icon-button/icon-button.scss +38 -0
- package/styles/components/image/_index.scss +1 -0
- package/styles/components/image/development/style.scss +9 -0
- package/styles/components/image/image.scss +37 -0
- package/styles/components/image/stories/styles.scss +9 -0
- package/styles/components/input-group/_field-group.scss +5 -0
- package/styles/components/input-group/_index.scss +3 -0
- package/styles/components/input-group/_labels.scss +159 -0
- package/styles/components/input-group/input-group.css +2 -2
- package/styles/components/input-group/input-group.min.css +1 -1
- package/styles/components/input-group/input-group.scss +11 -0
- package/styles/components/input-panel/input-panel.scss +84 -0
- package/styles/components/link/_index.scss +1 -0
- package/styles/components/link/link.scss +62 -0
- package/styles/components/link-list/_index.scss +2 -0
- package/styles/components/link-list/link-list.scss +94 -0
- package/styles/components/list/_index.scss +1 -0
- package/styles/components/list/list.scss +98 -0
- package/styles/components/loader/_index.scss +2 -0
- package/styles/components/loader/development/styles.scss +11 -0
- package/styles/components/loader/loader.css +6 -6
- package/styles/components/loader/loader.min.css +1 -1
- package/styles/components/loader/loader.scss +139 -0
- package/styles/components/loader/skeleton-loader.css +3 -3
- package/styles/components/loader/skeleton-loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.scss +137 -0
- package/styles/components/logo/_index.scss +1 -0
- package/styles/components/logo/development/styles.scss +9 -0
- package/styles/components/logo/logo.scss +90 -0
- package/styles/components/menu/_index.scss +1 -0
- package/styles/components/menu/_menu-divider.scss +10 -0
- package/styles/components/menu/_menu-item.scss +71 -0
- package/styles/components/menu/menu.scss +40 -0
- package/styles/components/message/_index.scss +2 -0
- package/styles/components/message/message.css +2 -2
- package/styles/components/message/message.min.css +1 -1
- package/styles/components/message/message.scss +187 -0
- package/styles/components/modal/_index.scss +3 -0
- package/styles/components/modal/modal.scss +107 -0
- package/styles/components/nav-link/_index.scss +1 -0
- package/styles/components/nav-link/nav-link.scss +66 -0
- package/styles/components/pagination/_index.scss +5 -0
- package/styles/components/pagination/development/styles.scss +35 -0
- package/styles/components/pagination/pagination.scss +49 -0
- package/styles/components/popover/_index.scss +1 -0
- package/styles/components/popover/popover.scss +19 -0
- package/styles/components/progress-bar/_index.scss +1 -0
- package/styles/components/progress-bar/progress-bar.css +1 -1
- package/styles/components/progress-bar/progress-bar.min.css +1 -1
- package/styles/components/progress-bar/progress-bar.scss +27 -0
- package/styles/components/radio-button/_index.scss +2 -0
- package/styles/components/radio-button/radio-button.css +2 -2
- package/styles/components/radio-button/radio-button.min.css +1 -1
- package/styles/components/radio-button/radio-button.scss +219 -0
- package/styles/components/radio-panel/_index.scss +1 -0
- package/styles/components/radio-panel/development/styles.scss +27 -0
- package/styles/components/radio-panel/radio-panel.css +2 -2
- package/styles/components/radio-panel/radio-panel.min.css +1 -1
- package/styles/components/radio-panel/radio-panel.scss +82 -0
- package/styles/components/segmented-control/_index.scss +3 -0
- package/styles/components/segmented-control/segmented-control.css +4 -4
- package/styles/components/segmented-control/segmented-control.min.css +1 -1
- package/styles/components/segmented-control/segmented-control.scss +99 -0
- package/styles/components/select/_index.scss +3 -0
- package/styles/components/select/select.scss +299 -0
- package/styles/components/summary-table/_index.scss +1 -0
- package/styles/components/summary-table/development/summary-table-example.scss +10 -0
- package/styles/components/summary-table/summary-table.scss +49 -0
- package/styles/components/system-message/_index.scss +2 -0
- package/styles/components/system-message/system-message.css +2 -2
- package/styles/components/system-message/system-message.min.css +1 -1
- package/styles/components/system-message/system-message.scss +177 -0
- package/styles/components/table/_index.scss +6 -0
- package/styles/components/table/_table-caption.scss +7 -0
- package/styles/components/table/_table-cell.scss +90 -0
- package/styles/components/table/_table-head.scss +36 -0
- package/styles/components/table/_table-header.scss +65 -0
- package/styles/components/table/_table-pagination.scss +126 -0
- package/styles/components/table/_table-row.scss +177 -0
- package/styles/components/table/table.css +4 -0
- package/styles/components/table/table.min.css +1 -1
- package/styles/components/table/table.scss +53 -0
- package/styles/components/table-of-contents/_index.scss +1 -0
- package/styles/components/tabs/_index.scss +1 -0
- package/styles/components/tabs/tabs.scss +114 -0
- package/styles/components/tag/_index.scss +3 -0
- package/styles/components/tag/tag.scss +65 -0
- package/styles/components/text-area/_index.scss +4 -0
- package/styles/components/text-area/text-area.scss +111 -0
- package/styles/components/text-input/_index.scss +4 -0
- package/styles/components/text-input/text-input.scss +43 -0
- package/styles/components/toast/_index.scss +4 -0
- package/styles/components/toast/toast.css +4 -4
- package/styles/components/toast/toast.min.css +1 -1
- package/styles/components/toast/toast.scss +219 -0
- package/styles/components/toggle-switch/_index.scss +2 -0
- package/styles/components/toggle-switch/_toggle-slider.scss +123 -0
- package/styles/components/toggle-switch/toggle-switch.scss +137 -0
- package/styles/components/tooltip/_index.scss +3 -0
- package/styles/components/tooltip/popuptip.scss +5 -0
- package/styles/components/tooltip/tooltip.scss +87 -0
- package/styles/components-beta/description-list/_index.scss +1 -0
- package/styles/components-beta/description-list/description-list.scss +80 -0
- package/styles/components-beta/link-list/_index.scss +2 -0
- package/styles/components-beta/link-list/link-list.scss +81 -0
- package/styles/components-beta/nav-link/_index.scss +1 -0
- package/styles/components-beta/nav-link/navlink.scss +66 -0
- package/styles/components-beta/search/_index.scss +4 -0
- package/styles/components-beta/search/search-with-submit-button.scss +37 -0
- package/styles/components-beta/search/search.scss +106 -0
- package/styles/components-beta/select/_index.scss +3 -0
- package/styles/components-beta/select/select.scss +128 -0
- package/styles/components-beta/table-of-contents/_index.scss +2 -0
- package/styles/components-beta/table-of-contents/table-of-contents.scss +88 -0
- package/styles/core/_layers.scss +3 -0
- package/styles/core/core.css +61 -3
- package/styles/core/core.min.css +1 -1
- package/styles/core/core.scss +6 -0
- package/styles/core/global/_base-class.scss +38 -0
- package/styles/core/global/_index.scss +2 -0
- package/styles/core/global/_top-layer.scss +20 -0
- package/styles/core/jkl/_colors.scss +26 -0
- package/styles/core/jkl/_convert.scss +102 -0
- package/styles/core/jkl/_helpers.scss +26 -0
- package/styles/core/jkl/_index.scss +18 -0
- package/styles/core/jkl/_motion.scss +63 -0
- package/styles/core/jkl/_navigation.scss +9 -0
- package/styles/core/jkl/_ornaments.scss +28 -0
- package/styles/core/jkl/_reset.scss +45 -0
- package/styles/core/jkl/_responsive-units.scss +30 -0
- package/styles/core/jkl/_screenreader.scss +59 -0
- package/styles/core/jkl/_screens.scss +135 -0
- package/styles/core/jkl/_shadows.scss +25 -0
- package/styles/core/jkl/_spacing.scss +149 -0
- package/styles/core/jkl/_theme.scss +119 -0
- package/styles/core/jkl/_tokens.scss +58 -0
- package/styles/core/jkl/_typography.scss +269 -0
- package/styles/core/jkl/_underline.scss +16 -0
- package/styles/core/jkl/_z-index.scss +23 -0
- package/styles/core/jkl/legacy/_dynamic-colors.scss +40 -0
- package/styles/core/jkl/legacy/_index.scss +2 -0
- package/styles/core/jkl/legacy/_tokens.scss +566 -0
- package/styles/core/resets/_index.scss +2 -0
- package/styles/core/resets/_normalize.scss +251 -0
- package/styles/core/resets/_reset.scss +68 -0
- package/styles/core/theme/_color-tokens.scss +73 -0
- package/styles/core/theme/_dynamic-spacing.scss +55 -0
- package/styles/core/theme/_index.scss +8 -0
- package/styles/core/theme/_legacy-color-tokens.scss +81 -0
- package/styles/core/theme/_legacy-tokens.scss +215 -0
- package/styles/core/theme/_old-vars.scss +30 -0
- package/styles/core/theme/_spacing-tokens.scss +32 -0
- package/styles/core/theme/_tokens.scss +32 -0
- package/styles/core/theme/_typography.scss +27 -0
- package/styles/core/utility/_headings.scss +31 -0
- package/styles/core/utility/_index.scss +4 -0
- package/styles/core/utility/_paragraphs.scss +18 -0
- package/styles/core/utility/_screen-reader.scss +11 -0
- package/styles/core/utility/_spacing.scss +49 -0
- package/styles/hooks/stories/styles.scss +78 -0
- package/styles/shared/input/shared-input-styles.scss +181 -0
- package/styles/shared/track/track.scss +27 -0
- package/styles/styles.css +38 -34
- package/styles/styles.min.css +2 -2
- package/styles/styles.scss +52 -0
- package/styles/components/checkbox/development/public/fonts/webfonts.css +0 -115
- package/styles/components/checkbox/development/public/fonts/webfonts.min.css +0 -1
- package/styles/components/file-input/development/public/fonts/_index.scss +0 -1
- package/styles/components/file-input/development/public/fonts/webfonts.css +0 -108
- package/styles/components/file-input/development/public/fonts/webfonts.min.css +0 -1
- package/styles/components/file-input/development/public/fonts/webfonts.scss +0 -137
- package/styles/components/menu/development/public/fonts/_index.scss +0 -1
- package/styles/components/menu/development/public/fonts/webfonts.css +0 -108
- package/styles/components/menu/development/public/fonts/webfonts.min.css +0 -1
- package/styles/components/menu/development/public/fonts/webfonts.scss +0 -137
- package/styles/components/radio-button/development/public/fonts/_index.scss +0 -1
- package/styles/components/radio-button/development/public/fonts/webfonts.css +0 -115
- package/styles/components/radio-button/development/public/fonts/webfonts.min.css +0 -1
- package/styles/components/radio-button/development/public/fonts/webfonts.scss +0 -145
- package/styles/components/text-input/development/public/fonts/_index.scss +0 -1
- package/styles/components/text-input/development/public/fonts/webfonts.css +0 -115
- package/styles/components/text-input/development/public/fonts/webfonts.min.css +0 -1
- package/styles/components/text-input/development/public/fonts/webfonts.scss +0 -145
- package/styles/components/toggle-switch/development/public/fonts/_index.scss +0 -1
- package/styles/components/toggle-switch/development/public/fonts/webfonts.css +0 -115
- package/styles/components/toggle-switch/development/public/fonts/webfonts.min.css +0 -1
- package/styles/components/toggle-switch/development/public/fonts/webfonts.scss +0 -145
- /package/styles/{components/checkbox/development/public/fonts → fonts}/_index.scss +0 -0
- /package/styles/{components/checkbox/development/public/fonts → fonts}/webfonts.scss +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTextInput.js","sources":["../../../../src/components/text-input/BaseTextInput.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React, { type CSSProperties, forwardRef } from \"react\";\nimport { IconButton } from \"../icon-button/IconButton.js\";\nimport type { BaseTextInputProps } from \"./types.js\";\n\nfunction getWidthAsStyle(\n width?: string,\n maxLength?: number,\n): CSSProperties | undefined {\n if (width) {\n return { width }; // prioritize width prop\n }\n\n if (maxLength) {\n // adapt to maxLength, but capped at
|
|
1
|
+
{"version":3,"file":"BaseTextInput.js","sources":["../../../../src/components/text-input/BaseTextInput.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React, { type CSSProperties, forwardRef } from \"react\";\nimport { IconButton } from \"../icon-button/IconButton.js\";\nimport type { BaseTextInputProps } from \"./types.js\";\n\nfunction getWidthAsStyle(\n width?: string,\n maxLength?: number,\n): CSSProperties | undefined {\n if (width) {\n return { width }; // prioritize width prop\n }\n\n if (maxLength) {\n // adapt to maxLength, but capped at 15em\n const length = `${Math.min(maxLength, 15)}em`;\n const padding = \"24px\"; // left + right padding\n return { width: `calc(${length} + ${padding})` };\n }\n\n return undefined;\n}\n\nexport const BaseTextInput = forwardRef<HTMLInputElement, BaseTextInputProps>(\n (props, ref) => {\n const {\n action,\n align = \"left\",\n \"aria-invalid\": ariaInvalid,\n className = \"\",\n density,\n maxLength,\n style,\n type = \"text\",\n unit,\n width,\n actionButton,\n ...rest\n } = props;\n\n return (\n <div\n className=\"jkl-text-input-wrapper\"\n data-invalid={ariaInvalid}\n style={{ ...style, ...getWidthAsStyle(width, maxLength) }}\n >\n <input\n aria-invalid={ariaInvalid}\n ref={ref}\n className={clsx(\"jkl-text-input__input\", className, {\n \"jkl-text-input__input--align-right\": align === \"right\",\n })}\n maxLength={maxLength}\n type={type}\n {...rest}\n />\n {unit && <span className=\"jkl-text-input__unit\">{unit}</span>}\n {!action &&\n actionButton &&\n React.cloneElement(actionButton, {\n className: clsx(\n \"jkl-text-input-action-button\",\n actionButton.props.className,\n ),\n })}\n {action && !actionButton && (\n <IconButton\n density={density}\n className={clsx(\n \"jkl-text-input-action-button\",\n action.className,\n )}\n title={action.label}\n onClick={action.onClick}\n onFocus={action.onFocus}\n onBlur={action.onBlur}\n ref={action.buttonRef}\n type={action.type || \"button\"}\n >\n {action.icon}\n </IconButton>\n )}\n </div>\n );\n },\n);\n\nBaseTextInput.displayName = \"BaseInputField\";\n"],"names":["getWidthAsStyle","width","maxLength","Math","min","BaseTextInput","forwardRef","props","ref","action","align","ariaInvalid","className","density","style","type","unit","actionButton","rest","jsxs","children","jsx","clsx","React","cloneElement","IconButton","title","label","onClick","onFocus","onBlur","buttonRef","icon","displayName"],"mappings":"gMAKA,SAASA,EACLC,EACAC,GAEA,OAAID,EACO,CAAEA,MAAAA,GAGTC,EAIO,CAAED,MAAO,QAFEE,KAAKC,IAAIF,EAAW,sBAF1C,CAQJ,CAEO,MAAMG,EAAgBC,EACzB,CAACC,EAAOC,KACJ,MACIC,OAAAA,EACAC,MAAAA,EAAQ,OACR,eAAgBC,EAChBC,UAAAA,EAAY,GACZC,QAAAA,EACAX,UAAAA,EACAY,MAAAA,EACAC,KAAAA,EAAO,OACPC,KAAAA,EACAf,MAAAA,EACAgB,aAAAA,KACGC,GACHX,EAEJ,OACIY,EAAC,MAAA,CACGP,UAAU,yBACV,eAAcD,EACdG,MAAO,IAAKA,KAAUd,EAAgBC,EAAOC,IAE7CkB,SAAA,CAAAC,EAAC,QAAA,CACG,eAAcV,EACdH,IAAAA,EACAI,UAAWU,EAAK,wBAAyBV,EAAW,CAChD,qCAAgD,UAAVF,IAE1CR,UAAAA,EACAa,KAAAA,KACIG,IAEPF,GAAQK,EAAC,OAAA,CAAKT,UAAU,uBAAwBQ,SAAAJ,KAC/CP,GACEQ,GACAM,EAAMC,aAAaP,EAAc,CAC7BL,UAAWU,EACP,+BACAL,EAAaV,MAAMK,aAG9BH,IAAWQ,GACRI,EAACI,EAAA,CACGZ,QAAAA,EACAD,UAAWU,EACP,+BACAb,EAAOG,WAEXc,MAAOjB,EAAOkB,MACdC,QAASnB,EAAOmB,QAChBC,QAASpB,EAAOoB,QAChBC,OAAQrB,EAAOqB,OACftB,IAAKC,EAAOsB,UACZhB,KAAMN,EAAOM,MAAQ,SAEpBK,SAAAX,EAAOuB,YAQhC3B,EAAc4B,YAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from"style-dictionary";import{legacyDesignTokensConfig as o,designTokensConfig as n}from"./config.js";import"./register.js";import{buildTailwind4Theme as l}from"../build-tailwind-4.js";!async function(){console.log("Starting design token build...\n"),console.log("⚙️ Building legacy tokens"),await(await new i(o)).buildAllPlatforms(),console.log("⚙️ Building modern tokens"),await(await new i(n)).buildAllPlatforms(),console.log("⚙️ Generating Tailwind v4 theme"),await l(),console.log("\nBuild complete.")}();
|
|
2
2
|
//# sourceMappingURL=build.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sources":["../../../../../src/core/tokens/style-dictionary/build.ts"],"sourcesContent":["import StyleDictionary from \"style-dictionary\";\nimport {
|
|
1
|
+
{"version":3,"file":"build.js","sources":["../../../../../src/core/tokens/style-dictionary/build.ts"],"sourcesContent":["import StyleDictionary from \"style-dictionary\";\nimport { designTokensConfig, legacyDesignTokensConfig } from \"./config.js\";\nimport \"./register.js\";\nimport { buildTailwind4Theme } from \"../build-tailwind-4.js\";\n\nasync function build() {\n console.log(\"Starting design token build...\\n\");\n\n console.log(\"⚙️ Building legacy tokens\");\n const legacySd = await new StyleDictionary(legacyDesignTokensConfig);\n await legacySd.buildAllPlatforms();\n\n console.log(\"⚙️ Building modern tokens\");\n const modernSd = await new StyleDictionary(designTokensConfig);\n await modernSd.buildAllPlatforms();\n\n console.log(\"⚙️ Generating Tailwind v4 theme\");\n await buildTailwind4Theme();\n\n console.log(\"\\nBuild complete.\");\n}\n\nbuild();\n"],"names":["async","console","log","StyleDictionary","legacyDesignTokensConfig","buildAllPlatforms","designTokensConfig","buildTailwind4Theme","build"],"mappings":"mMAKAA,iBACIC,QAAQC,IAAI,oCAEZD,QAAQC,IAAI,yCACW,IAAIC,EAAgBC,IAC5BC,oBAEfJ,QAAQC,IAAI,yCACW,IAAIC,EAAgBG,IAC5BD,oBAEfJ,QAAQC,IAAI,yCACNK,IAENN,QAAQC,IAAI,oBAChB,CAEAM"}
|
|
@@ -227,6 +227,10 @@ declare const _default: {
|
|
|
227
227
|
bold: string;
|
|
228
228
|
};
|
|
229
229
|
font: {
|
|
230
|
+
weight: {
|
|
231
|
+
normal: string;
|
|
232
|
+
bold: string;
|
|
233
|
+
};
|
|
230
234
|
size: {
|
|
231
235
|
16: string;
|
|
232
236
|
18: string;
|
|
@@ -254,6 +258,116 @@ declare const _default: {
|
|
|
254
258
|
64: string;
|
|
255
259
|
};
|
|
256
260
|
};
|
|
261
|
+
style: {
|
|
262
|
+
title: {
|
|
263
|
+
small: {
|
|
264
|
+
fontSize: string;
|
|
265
|
+
lineHeight: string;
|
|
266
|
+
fontWeight: string;
|
|
267
|
+
};
|
|
268
|
+
base: {
|
|
269
|
+
fontSize: string;
|
|
270
|
+
lineHeight: string;
|
|
271
|
+
fontWeight: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
titleSmall: {
|
|
275
|
+
small: {
|
|
276
|
+
fontSize: string;
|
|
277
|
+
lineHeight: string;
|
|
278
|
+
fontWeight: string;
|
|
279
|
+
};
|
|
280
|
+
base: {
|
|
281
|
+
fontSize: string;
|
|
282
|
+
lineHeight: string;
|
|
283
|
+
fontWeight: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
heading_1: {
|
|
287
|
+
small: {
|
|
288
|
+
fontSize: string;
|
|
289
|
+
lineHeight: string;
|
|
290
|
+
fontWeight: string;
|
|
291
|
+
};
|
|
292
|
+
base: {
|
|
293
|
+
fontSize: string;
|
|
294
|
+
lineHeight: string;
|
|
295
|
+
fontWeight: string;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
heading_2: {
|
|
299
|
+
small: {
|
|
300
|
+
fontSize: string;
|
|
301
|
+
lineHeight: string;
|
|
302
|
+
fontWeight: string;
|
|
303
|
+
};
|
|
304
|
+
base: {
|
|
305
|
+
fontSize: string;
|
|
306
|
+
lineHeight: string;
|
|
307
|
+
fontWeight: string;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
heading_3: {
|
|
311
|
+
small: {
|
|
312
|
+
fontSize: string;
|
|
313
|
+
lineHeight: string;
|
|
314
|
+
fontWeight: string;
|
|
315
|
+
};
|
|
316
|
+
base: {
|
|
317
|
+
fontSize: string;
|
|
318
|
+
lineHeight: string;
|
|
319
|
+
fontWeight: string;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
heading_4: {
|
|
323
|
+
small: {
|
|
324
|
+
fontSize: string;
|
|
325
|
+
lineHeight: string;
|
|
326
|
+
fontWeight: string;
|
|
327
|
+
};
|
|
328
|
+
base: {
|
|
329
|
+
fontSize: string;
|
|
330
|
+
lineHeight: string;
|
|
331
|
+
fontWeight: string;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
heading_5: {
|
|
335
|
+
small: {
|
|
336
|
+
fontSize: string;
|
|
337
|
+
lineHeight: string;
|
|
338
|
+
fontWeight: string;
|
|
339
|
+
};
|
|
340
|
+
base: {
|
|
341
|
+
fontSize: string;
|
|
342
|
+
lineHeight: string;
|
|
343
|
+
fontWeight: string;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
body: {
|
|
347
|
+
small: {
|
|
348
|
+
fontSize: string;
|
|
349
|
+
lineHeight: string;
|
|
350
|
+
fontWeight: string;
|
|
351
|
+
};
|
|
352
|
+
base: {
|
|
353
|
+
fontSize: string;
|
|
354
|
+
lineHeight: string;
|
|
355
|
+
fontWeight: string;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
small: {
|
|
359
|
+
small: {
|
|
360
|
+
fontSize: string;
|
|
361
|
+
lineHeight: string;
|
|
362
|
+
fontWeight: string;
|
|
363
|
+
};
|
|
364
|
+
base: {
|
|
365
|
+
fontSize: string;
|
|
366
|
+
lineHeight: string;
|
|
367
|
+
fontWeight: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
};
|
|
257
371
|
title: {
|
|
258
372
|
small: {
|
|
259
373
|
fontSize: string;
|
package/build/es/core/tokens.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e={breakpoint:{small:"0",medium:"680px",large:"1200px",xl:"1600px"},color:{brand:{snohvit:"#F9F9F9",varde:"#E0DBD4",granitt:"#1B1917",hvit:"#FFFFFF",svart:"#000000",skifer:"#313030",fjellgra:"#444141",stein:"#636060",svaberg:"#C8C5C3",dis:"#ECE9E5",sand:"#F4F2EF"},functional:{info:"#D3D3F6",infoDark:"#A9A9CA",success:"#ACD3B5",successDark:"#94B79B",warning:"#EFDD9E",warningDark:"#DECC8D",error:"#F6B3B3",errorDark:"#DE9E9E"},background:{page:{light:"#F4F2EF",dark:"#1B1917"},pageVariant:{light:"#F9F9F9",dark:"#1B1917"},container:{light:"#F9F9F9",dark:"#313030"},containerLow:{light:"#ECE9E5",dark:"#000000"},containerHigh:{light:"#FFFFFF",dark:"#313030"},containerInverted:{light:"#1B1917",dark:"#F9F9F9"},containerSubdued:{light:"#C8C5C3",dark:"#636060"},input:{base:{light:"transparent",dark:"transparent"},focus:{light:"#FFFFFF",dark:"#313030"}},action:{light:"#1B1917",dark:"#F9F9F9"},interactive:{light:"transparent",dark:"transparent"},interactiveHover:{light:"#ECE9E5",dark:"#444141"},interactiveSelected:{light:"#E0DBD4",dark:"#636060"},alert:{neutral:{light:"#E0DBD4",dark:"#E0DBD4"},info:{light:"#D3D3F6",dark:"#A9A9CA"},success:{light:"#ACD3B5",dark:"#94B79B"},warning:{light:"#EFDD9E",dark:"#DECC8D"},error:{light:"#F6B3B3",dark:"#DE9E9E"}}},text:{default:{light:"#1B1917",dark:"#F9F9F9"},subdued:{light:"#636060",dark:"#C8C5C3"},inverted:{light:"#F9F9F9",dark:"#1B1917"},onAction:{light:"#F9F9F9",dark:"#1B1917"},interactive:{light:"#1B1917",dark:"#F9F9F9"},interactiveHover:{light:"#636060",dark:"#C8C5C3"},onAlert:{light:"#1B1917",dark:"#1B1917"},onAlertSubdued:{light:"#444141",dark:"#444141"}},border:{action:{light:"#1B1917",dark:"#F9F9F9"},input:{light:"#636060",dark:"#C8C5C3"},inputFocus:{light:"#1B1917",dark:"#F9F9F9"},separator:{light:"#C8C5C3",dark:"#636060"},separatorStrong:{light:"#636060",dark:"#C8C5C3"},separatorHover:{light:"#1B1917",dark:"#F9F9F9"},subdued:{light:"#C8C5C3",dark:"#636060"}}},motion:{timing:{energetic:"75ms",snappy:"100ms",productive:"150ms",expressive:"250ms",lazy:"400ms"},easing:{standard:"ease",entrance:"ease-out",exit:"ease-in",easeInBounceOut:"cubic-bezier(0, 0, 0.375, 1.17)",focus:"cubic-bezier(0.6, 0.2, 0.35, 1)"}},spacing:{0:"0rem",2:"0.125rem",4:"0.25rem",8:"0.5rem",12:"0.75rem",16:"1rem",24:"1.5rem",32:"2rem",40:"2.5rem",64:"4rem",104:"6.5rem",168:"10.5rem"},semanticSpacing:{none:"0","2xs":"0.25rem",xs:"0.5rem",s:"1rem",m:"1.5rem",l:"2.5rem",xl:"4rem","2xl":"6.5rem"},icon:{weight:{normal:"300",bold:"400"}},typography:{weight:{normal:"400",bold:"700"},font:{size:{16:"1rem",18:"1.125rem",20:"1.25rem",21:"1.3125rem",23:"1.4375rem",25:"1.5625rem",26:"1.625rem",28:"1.75rem",30:"1.875rem",36:"2.25rem",44:"2.75rem",56:"3.5rem"}},line:{height:{24:"1.5rem",28:"1.75rem",32:"2rem",36:"2.25rem",40:"2.5rem",44:"2.75rem",52:"3.25rem",64:"4rem"}},title:{small:{fontSize:"2.25rem",lineHeight:"2.75rem",fontWeight:"400"},base:{fontSize:"3.5rem",lineHeight:"4rem",fontWeight:"400"}},titleSmall:{small:{fontSize:"1.875rem",lineHeight:"2.25rem",fontWeight:"400"},base:{fontSize:"2.75rem",lineHeight:"3.25rem",fontWeight:"400"}},heading_1:{small:{fontSize:"1.625rem",lineHeight:"2rem",fontWeight:"400"},base:{fontSize:"2.25rem",lineHeight:"2.75rem",fontWeight:"400"}},heading_2:{small:{fontSize:"1.4375rem",lineHeight:"2rem",fontWeight:"400"},base:{fontSize:"1.75rem",lineHeight:"2.5rem",fontWeight:"400"}},heading_3:{small:{fontSize:"1.3125rem",lineHeight:"1.75rem",fontWeight:"700"},base:{fontSize:"1.5625rem",lineHeight:"2rem",fontWeight:"700"}},heading_4:{small:{fontSize:"1.125rem",lineHeight:"1.5rem",fontWeight:"700"},base:{fontSize:"1.3125rem",lineHeight:"1.75rem",fontWeight:"700"}},heading_5:{small:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"},base:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"}},body:{small:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"400"},base:{fontSize:"1.25rem",lineHeight:"2rem",fontWeight:"400"}},small:{small:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"},base:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"}}}};export{e as default};
|
|
1
|
+
const e={breakpoint:{small:"0",medium:"680px",large:"1200px",xl:"1600px"},color:{brand:{snohvit:"#F9F9F9",varde:"#E0DBD4",granitt:"#1B1917",hvit:"#FFFFFF",svart:"#000000",skifer:"#313030",fjellgra:"#444141",stein:"#636060",svaberg:"#C8C5C3",dis:"#ECE9E5",sand:"#F4F2EF"},functional:{info:"#D3D3F6",infoDark:"#A9A9CA",success:"#ACD3B5",successDark:"#94B79B",warning:"#EFDD9E",warningDark:"#DECC8D",error:"#F6B3B3",errorDark:"#DE9E9E"},background:{page:{light:"#F4F2EF",dark:"#1B1917"},pageVariant:{light:"#F9F9F9",dark:"#1B1917"},container:{light:"#F9F9F9",dark:"#313030"},containerLow:{light:"#ECE9E5",dark:"#000000"},containerHigh:{light:"#FFFFFF",dark:"#313030"},containerInverted:{light:"#1B1917",dark:"#F9F9F9"},containerSubdued:{light:"#C8C5C3",dark:"#636060"},input:{base:{light:"transparent",dark:"transparent"},focus:{light:"#FFFFFF",dark:"#313030"}},action:{light:"#1B1917",dark:"#F9F9F9"},interactive:{light:"transparent",dark:"transparent"},interactiveHover:{light:"#ECE9E5",dark:"#444141"},interactiveSelected:{light:"#E0DBD4",dark:"#636060"},alert:{neutral:{light:"#E0DBD4",dark:"#E0DBD4"},info:{light:"#D3D3F6",dark:"#A9A9CA"},success:{light:"#ACD3B5",dark:"#94B79B"},warning:{light:"#EFDD9E",dark:"#DECC8D"},error:{light:"#F6B3B3",dark:"#DE9E9E"}}},text:{default:{light:"#1B1917",dark:"#F9F9F9"},subdued:{light:"#636060",dark:"#C8C5C3"},inverted:{light:"#F9F9F9",dark:"#1B1917"},onAction:{light:"#F9F9F9",dark:"#1B1917"},interactive:{light:"#1B1917",dark:"#F9F9F9"},interactiveHover:{light:"#636060",dark:"#C8C5C3"},onAlert:{light:"#1B1917",dark:"#1B1917"},onAlertSubdued:{light:"#444141",dark:"#444141"}},border:{action:{light:"#1B1917",dark:"#F9F9F9"},input:{light:"#636060",dark:"#C8C5C3"},inputFocus:{light:"#1B1917",dark:"#F9F9F9"},separator:{light:"#C8C5C3",dark:"#636060"},separatorStrong:{light:"#636060",dark:"#C8C5C3"},separatorHover:{light:"#1B1917",dark:"#F9F9F9"},subdued:{light:"#C8C5C3",dark:"#636060"}}},motion:{timing:{energetic:"75ms",snappy:"100ms",productive:"150ms",expressive:"250ms",lazy:"400ms"},easing:{standard:"ease",entrance:"ease-out",exit:"ease-in",easeInBounceOut:"cubic-bezier(0, 0, 0.375, 1.17)",focus:"cubic-bezier(0.6, 0.2, 0.35, 1)"}},spacing:{0:"0rem",2:"0.125rem",4:"0.25rem",8:"0.5rem",12:"0.75rem",16:"1rem",24:"1.5rem",32:"2rem",40:"2.5rem",64:"4rem",104:"6.5rem",168:"10.5rem"},semanticSpacing:{none:"0","2xs":"0.25rem",xs:"0.5rem",s:"1rem",m:"1.5rem",l:"2.5rem",xl:"4rem","2xl":"6.5rem"},icon:{weight:{normal:"300",bold:"400"}},typography:{weight:{normal:"400",bold:"700"},font:{weight:{normal:"400",bold:"700"},size:{16:"1rem",18:"1.125rem",20:"1.25rem",21:"1.3125rem",23:"1.4375rem",25:"1.5625rem",26:"1.625rem",28:"1.75rem",30:"1.875rem",36:"2.25rem",44:"2.75rem",56:"3.5rem"}},line:{height:{24:"1.5rem",28:"1.75rem",32:"2rem",36:"2.25rem",40:"2.5rem",44:"2.75rem",52:"3.25rem",64:"4rem"}},style:{title:{small:{fontSize:"2.25rem",lineHeight:"2.75rem",fontWeight:"400"},base:{fontSize:"3.5rem",lineHeight:"4rem",fontWeight:"400"}},titleSmall:{small:{fontSize:"1.875rem",lineHeight:"2.25rem",fontWeight:"400"},base:{fontSize:"2.75rem",lineHeight:"3.25rem",fontWeight:"400"}},heading_1:{small:{fontSize:"1.625rem",lineHeight:"2rem",fontWeight:"400"},base:{fontSize:"2.25rem",lineHeight:"2.75rem",fontWeight:"400"}},heading_2:{small:{fontSize:"1.4375rem",lineHeight:"2rem",fontWeight:"400"},base:{fontSize:"1.75rem",lineHeight:"2.5rem",fontWeight:"400"}},heading_3:{small:{fontSize:"1.3125rem",lineHeight:"1.75rem",fontWeight:"700"},base:{fontSize:"1.5625rem",lineHeight:"2rem",fontWeight:"700"}},heading_4:{small:{fontSize:"1.125rem",lineHeight:"1.5rem",fontWeight:"700"},base:{fontSize:"1.3125rem",lineHeight:"1.75rem",fontWeight:"700"}},heading_5:{small:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"},base:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"}},body:{small:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"400"},base:{fontSize:"1.25rem",lineHeight:"2rem",fontWeight:"400"}},small:{small:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"},base:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"}}},title:{small:{fontSize:"2.25rem",lineHeight:"2.75rem",fontWeight:"400"},base:{fontSize:"3.5rem",lineHeight:"4rem",fontWeight:"400"}},titleSmall:{small:{fontSize:"1.875rem",lineHeight:"2.25rem",fontWeight:"400"},base:{fontSize:"2.75rem",lineHeight:"3.25rem",fontWeight:"400"}},heading_1:{small:{fontSize:"1.625rem",lineHeight:"2rem",fontWeight:"400"},base:{fontSize:"2.25rem",lineHeight:"2.75rem",fontWeight:"400"}},heading_2:{small:{fontSize:"1.4375rem",lineHeight:"2rem",fontWeight:"400"},base:{fontSize:"1.75rem",lineHeight:"2.5rem",fontWeight:"400"}},heading_3:{small:{fontSize:"1.3125rem",lineHeight:"1.75rem",fontWeight:"700"},base:{fontSize:"1.5625rem",lineHeight:"2rem",fontWeight:"700"}},heading_4:{small:{fontSize:"1.125rem",lineHeight:"1.5rem",fontWeight:"700"},base:{fontSize:"1.3125rem",lineHeight:"1.75rem",fontWeight:"700"}},heading_5:{small:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"},base:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"}},body:{small:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"400"},base:{fontSize:"1.25rem",lineHeight:"2rem",fontWeight:"400"}},small:{small:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"},base:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"}}}};export{e as default};
|
|
2
2
|
//# sourceMappingURL=tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sources":["../../../src/core/tokens.ts"],"sourcesContent":["/**\n * Do not edit directly, this file was auto-generated.\n */\n\nexport default {\n breakpoint: { small: \"0\", medium: \"680px\", large: \"1200px\", xl: \"1600px\" },\n color: {\n brand: {\n snohvit: \"#F9F9F9\",\n varde: \"#E0DBD4\",\n granitt: \"#1B1917\",\n hvit: \"#FFFFFF\",\n svart: \"#000000\",\n skifer: \"#313030\",\n fjellgra: \"#444141\",\n stein: \"#636060\",\n svaberg: \"#C8C5C3\",\n dis: \"#ECE9E5\",\n sand: \"#F4F2EF\",\n },\n functional: {\n info: \"#D3D3F6\",\n infoDark: \"#A9A9CA\",\n success: \"#ACD3B5\",\n successDark: \"#94B79B\",\n warning: \"#EFDD9E\",\n warningDark: \"#DECC8D\",\n error: \"#F6B3B3\",\n errorDark: \"#DE9E9E\",\n },\n background: {\n page: { light: \"#F4F2EF\", dark: \"#1B1917\" },\n pageVariant: { light: \"#F9F9F9\", dark: \"#1B1917\" },\n container: { light: \"#F9F9F9\", dark: \"#313030\" },\n containerLow: { light: \"#ECE9E5\", dark: \"#000000\" },\n containerHigh: { light: \"#FFFFFF\", dark: \"#313030\" },\n containerInverted: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n containerSubdued: { light: \"#C8C5C3\", dark: \"#636060\" },\n input: {\n base: { light: \"transparent\", dark: \"transparent\" },\n focus: { light: \"#FFFFFF\", dark: \"#313030\" },\n },\n action: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n interactive: { light: \"transparent\", dark: \"transparent\" },\n interactiveHover: { light: \"#ECE9E5\", dark: \"#444141\" },\n interactiveSelected: { light: \"#E0DBD4\", dark: \"#636060\" },\n alert: {\n neutral: { light: \"#E0DBD4\", dark: \"#E0DBD4\" },\n info: { light: \"#D3D3F6\", dark: \"#A9A9CA\" },\n success: { light: \"#ACD3B5\", dark: \"#94B79B\" },\n warning: { light: \"#EFDD9E\", dark: \"#DECC8D\" },\n error: { light: \"#F6B3B3\", dark: \"#DE9E9E\" },\n },\n },\n text: {\n default: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n subdued: { light: \"#636060\", dark: \"#C8C5C3\" },\n inverted: { light: \"#F9F9F9\", dark: \"#1B1917\" },\n onAction: { light: \"#F9F9F9\", dark: \"#1B1917\" },\n interactive: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n interactiveHover: { light: \"#636060\", dark: \"#C8C5C3\" },\n onAlert: { light: \"#1B1917\", dark: \"#1B1917\" },\n onAlertSubdued: { light: \"#444141\", dark: \"#444141\" },\n },\n border: {\n action: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n input: { light: \"#636060\", dark: \"#C8C5C3\" },\n inputFocus: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n separator: { light: \"#C8C5C3\", dark: \"#636060\" },\n separatorStrong: { light: \"#636060\", dark: \"#C8C5C3\" },\n separatorHover: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n subdued: { light: \"#C8C5C3\", dark: \"#636060\" },\n },\n },\n motion: {\n timing: {\n energetic: \"75ms\",\n snappy: \"100ms\",\n productive: \"150ms\",\n expressive: \"250ms\",\n lazy: \"400ms\",\n },\n easing: {\n standard: \"ease\",\n entrance: \"ease-out\",\n exit: \"ease-in\",\n easeInBounceOut: \"cubic-bezier(0, 0, 0.375, 1.17)\",\n focus: \"cubic-bezier(0.6, 0.2, 0.35, 1)\",\n },\n },\n spacing: {\n 0: \"0rem\",\n 2: \"0.125rem\",\n 4: \"0.25rem\",\n 8: \"0.5rem\",\n 12: \"0.75rem\",\n 16: \"1rem\",\n 24: \"1.5rem\",\n 32: \"2rem\",\n 40: \"2.5rem\",\n 64: \"4rem\",\n 104: \"6.5rem\",\n 168: \"10.5rem\",\n },\n semanticSpacing: {\n none: \"0\",\n \"2xs\": \"0.25rem\",\n xs: \"0.5rem\",\n s: \"1rem\",\n m: \"1.5rem\",\n l: \"2.5rem\",\n xl: \"4rem\",\n \"2xl\": \"6.5rem\",\n },\n icon: { weight: { normal: \"300\", bold: \"400\" } },\n typography: {\n weight: { normal: \"400\", bold: \"700\" },\n font: {\n size: {\n 16: \"1rem\",\n 18: \"1.125rem\",\n 20: \"1.25rem\",\n 21: \"1.3125rem\",\n 23: \"1.4375rem\",\n 25: \"1.5625rem\",\n 26: \"1.625rem\",\n 28: \"1.75rem\",\n 30: \"1.875rem\",\n 36: \"2.25rem\",\n 44: \"2.75rem\",\n 56: \"3.5rem\",\n },\n },\n line: {\n height: {\n 24: \"1.5rem\",\n 28: \"1.75rem\",\n 32: \"2rem\",\n 36: \"2.25rem\",\n 40: \"2.5rem\",\n 44: \"2.75rem\",\n 52: \"3.25rem\",\n 64: \"4rem\",\n },\n },\n title: {\n small: {\n fontSize: \"2.25rem\",\n lineHeight: \"2.75rem\",\n fontWeight: \"400\",\n },\n base: { fontSize: \"3.5rem\", lineHeight: \"4rem\", fontWeight: \"400\" },\n },\n titleSmall: {\n small: {\n fontSize: \"1.875rem\",\n lineHeight: \"2.25rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"2.75rem\",\n lineHeight: \"3.25rem\",\n fontWeight: \"400\",\n },\n },\n heading_1: {\n small: {\n fontSize: \"1.625rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"2.25rem\",\n lineHeight: \"2.75rem\",\n fontWeight: \"400\",\n },\n },\n heading_2: {\n small: {\n fontSize: \"1.4375rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"1.75rem\",\n lineHeight: \"2.5rem\",\n fontWeight: \"400\",\n },\n },\n heading_3: {\n small: {\n fontSize: \"1.3125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"700\",\n },\n base: {\n fontSize: \"1.5625rem\",\n lineHeight: \"2rem\",\n fontWeight: \"700\",\n },\n },\n heading_4: {\n small: {\n fontSize: \"1.125rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"700\",\n },\n base: {\n fontSize: \"1.3125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"700\",\n },\n },\n heading_5: {\n small: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"700\",\n },\n base: { fontSize: \"1rem\", lineHeight: \"1.5rem\", fontWeight: \"700\" },\n },\n body: {\n small: {\n fontSize: \"1.125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"1.25rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n },\n small: {\n small: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"400\",\n },\n base: { fontSize: \"1rem\", lineHeight: \"1.5rem\", fontWeight: \"400\" },\n },\n },\n};\n"],"names":["tokens","breakpoint","small","medium","large","xl","color","brand","snohvit","varde","granitt","hvit","svart","skifer","fjellgra","stein","svaberg","dis","sand","functional","info","infoDark","success","successDark","warning","warningDark","error","errorDark","background","page","light","dark","pageVariant","container","containerLow","containerHigh","containerInverted","containerSubdued","input","base","focus","action","interactive","interactiveHover","interactiveSelected","alert","neutral","text","default","subdued","inverted","onAction","onAlert","onAlertSubdued","border","inputFocus","separator","separatorStrong","separatorHover","motion","timing","energetic","snappy","productive","expressive","lazy","easing","standard","entrance","exit","easeInBounceOut","spacing","semanticSpacing","none","xs","s","m","l","icon","weight","normal","bold","typography","font","size","line","height","title","fontSize","lineHeight","fontWeight","titleSmall","heading_1","heading_2","heading_3","heading_4","heading_5","body"],"mappings":"AAIA,MAAAA,EAAe,CACXC,WAAY,CAAEC,MAAO,IAAKC,OAAQ,QAASC,MAAO,SAAUC,GAAI,UAChEC,MAAO,CACHC,MAAO,CACHC,QAAS,UACTC,MAAO,UACPC,QAAS,UACTC,KAAM,UACNC,MAAO,UACPC,OAAQ,UACRC,SAAU,UACVC,MAAO,UACPC,QAAS,UACTC,IAAK,UACLC,KAAM,WAEVC,WAAY,CACRC,KAAM,UACNC,SAAU,UACVC,QAAS,UACTC,YAAa,UACbC,QAAS,UACTC,YAAa,UACbC,MAAO,UACPC,UAAW,WAEfC,WAAY,CACRC,KAAM,CAAEC,MAAO,UAAWC,KAAM,WAChCC,YAAa,CAAEF,MAAO,UAAWC,KAAM,WACvCE,UAAW,CAAEH,MAAO,UAAWC,KAAM,WACrCG,aAAc,CAAEJ,MAAO,UAAWC,KAAM,WACxCI,cAAe,CAAEL,MAAO,UAAWC,KAAM,WACzCK,kBAAmB,CAAEN,MAAO,UAAWC,KAAM,WAC7CM,iBAAkB,CAAEP,MAAO,UAAWC,KAAM,WAC5CO,MAAO,CACHC,KAAM,CAAET,MAAO,cAA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C,WAAY,OAEhBnD,KAAM,CACFiD,SAAU,YACVC,WAAY,OACZC,WAAY,QAGpBK,UAAW,CACP7F,MAAO,CACHsF,SAAU,WACVC,WAAY,SACZC,WAAY,OAEhBnD,KAAM,CACFiD,SAAU,YACVC,WAAY,UACZC,WAAY,QAGpBM,UAAW,CACP9F,MAAO,CACHsF,SAAU,OACVC,WAAY,SACZC,WAAY,OAEhBnD,KAAM,CAAEiD,SAAU,OAAQC,WAAY,SAAUC,WAAY,QAEhEO,KAAM,CACF/F,MAAO,CACHsF,SAAU,WACVC,WAAY,UACZC,WAAY,OAEhBnD,KAAM,CACFiD,SAAU,UACVC,WAAY,OACZC,WAAY,QAGpBxF,MAAO,CACHA,MAAO,CACHsF,SAAU,OACVC,WAAY,SACZC,WAAY,OAEhBnD,KAAM,CAAEiD,SAAU,OAAQC,WAAY,SAAUC,WAAY"}
|
|
1
|
+
{"version":3,"file":"tokens.js","sources":["../../../src/core/tokens.ts"],"sourcesContent":["/**\n * Do not edit directly, this file was auto-generated.\n */\n\nexport default {\n breakpoint: { small: \"0\", medium: \"680px\", large: \"1200px\", xl: \"1600px\" },\n color: {\n brand: {\n snohvit: \"#F9F9F9\",\n varde: \"#E0DBD4\",\n granitt: \"#1B1917\",\n hvit: \"#FFFFFF\",\n svart: \"#000000\",\n skifer: \"#313030\",\n fjellgra: \"#444141\",\n stein: \"#636060\",\n svaberg: \"#C8C5C3\",\n dis: \"#ECE9E5\",\n sand: \"#F4F2EF\",\n },\n functional: {\n info: \"#D3D3F6\",\n infoDark: \"#A9A9CA\",\n success: \"#ACD3B5\",\n successDark: \"#94B79B\",\n warning: \"#EFDD9E\",\n warningDark: \"#DECC8D\",\n error: \"#F6B3B3\",\n errorDark: \"#DE9E9E\",\n },\n background: {\n page: { light: \"#F4F2EF\", dark: \"#1B1917\" },\n pageVariant: { light: \"#F9F9F9\", dark: \"#1B1917\" },\n container: { light: \"#F9F9F9\", dark: \"#313030\" },\n containerLow: { light: \"#ECE9E5\", dark: \"#000000\" },\n containerHigh: { light: \"#FFFFFF\", dark: \"#313030\" },\n containerInverted: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n containerSubdued: { light: \"#C8C5C3\", dark: \"#636060\" },\n input: {\n base: { light: \"transparent\", dark: \"transparent\" },\n focus: { light: \"#FFFFFF\", dark: \"#313030\" },\n },\n action: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n interactive: { light: \"transparent\", dark: \"transparent\" },\n interactiveHover: { light: \"#ECE9E5\", dark: \"#444141\" },\n interactiveSelected: { light: \"#E0DBD4\", dark: \"#636060\" },\n alert: {\n neutral: { light: \"#E0DBD4\", dark: \"#E0DBD4\" },\n info: { light: \"#D3D3F6\", dark: \"#A9A9CA\" },\n success: { light: \"#ACD3B5\", dark: \"#94B79B\" },\n warning: { light: \"#EFDD9E\", dark: \"#DECC8D\" },\n error: { light: \"#F6B3B3\", dark: \"#DE9E9E\" },\n },\n },\n text: {\n default: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n subdued: { light: \"#636060\", dark: \"#C8C5C3\" },\n inverted: { light: \"#F9F9F9\", dark: \"#1B1917\" },\n onAction: { light: \"#F9F9F9\", dark: \"#1B1917\" },\n interactive: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n interactiveHover: { light: \"#636060\", dark: \"#C8C5C3\" },\n onAlert: { light: \"#1B1917\", dark: \"#1B1917\" },\n onAlertSubdued: { light: \"#444141\", dark: \"#444141\" },\n },\n border: {\n action: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n input: { light: \"#636060\", dark: \"#C8C5C3\" },\n inputFocus: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n separator: { light: \"#C8C5C3\", dark: \"#636060\" },\n separatorStrong: { light: \"#636060\", dark: \"#C8C5C3\" },\n separatorHover: { light: \"#1B1917\", dark: \"#F9F9F9\" },\n subdued: { light: \"#C8C5C3\", dark: \"#636060\" },\n },\n },\n motion: {\n timing: {\n energetic: \"75ms\",\n snappy: \"100ms\",\n productive: \"150ms\",\n expressive: \"250ms\",\n lazy: \"400ms\",\n },\n easing: {\n standard: \"ease\",\n entrance: \"ease-out\",\n exit: \"ease-in\",\n easeInBounceOut: \"cubic-bezier(0, 0, 0.375, 1.17)\",\n focus: \"cubic-bezier(0.6, 0.2, 0.35, 1)\",\n },\n },\n spacing: {\n 0: \"0rem\",\n 2: \"0.125rem\",\n 4: \"0.25rem\",\n 8: \"0.5rem\",\n 12: \"0.75rem\",\n 16: \"1rem\",\n 24: \"1.5rem\",\n 32: \"2rem\",\n 40: \"2.5rem\",\n 64: \"4rem\",\n 104: \"6.5rem\",\n 168: \"10.5rem\",\n },\n semanticSpacing: {\n none: \"0\",\n \"2xs\": \"0.25rem\",\n xs: \"0.5rem\",\n s: \"1rem\",\n m: \"1.5rem\",\n l: \"2.5rem\",\n xl: \"4rem\",\n \"2xl\": \"6.5rem\",\n },\n icon: { weight: { normal: \"300\", bold: \"400\" } },\n typography: {\n weight: { normal: \"400\", bold: \"700\" },\n font: {\n weight: { normal: \"400\", bold: \"700\" },\n size: {\n 16: \"1rem\",\n 18: \"1.125rem\",\n 20: \"1.25rem\",\n 21: \"1.3125rem\",\n 23: \"1.4375rem\",\n 25: \"1.5625rem\",\n 26: \"1.625rem\",\n 28: \"1.75rem\",\n 30: \"1.875rem\",\n 36: \"2.25rem\",\n 44: \"2.75rem\",\n 56: \"3.5rem\",\n },\n },\n line: {\n height: {\n 24: \"1.5rem\",\n 28: \"1.75rem\",\n 32: \"2rem\",\n 36: \"2.25rem\",\n 40: \"2.5rem\",\n 44: \"2.75rem\",\n 52: \"3.25rem\",\n 64: \"4rem\",\n },\n },\n style: {\n title: {\n small: {\n fontSize: \"2.25rem\",\n lineHeight: \"2.75rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"3.5rem\",\n lineHeight: \"4rem\",\n fontWeight: \"400\",\n },\n },\n titleSmall: {\n small: {\n fontSize: \"1.875rem\",\n lineHeight: \"2.25rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"2.75rem\",\n lineHeight: \"3.25rem\",\n fontWeight: \"400\",\n },\n },\n heading_1: {\n small: {\n fontSize: \"1.625rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"2.25rem\",\n lineHeight: \"2.75rem\",\n fontWeight: \"400\",\n },\n },\n heading_2: {\n small: {\n fontSize: \"1.4375rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"1.75rem\",\n lineHeight: \"2.5rem\",\n fontWeight: \"400\",\n },\n },\n heading_3: {\n small: {\n fontSize: \"1.3125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"700\",\n },\n base: {\n fontSize: \"1.5625rem\",\n lineHeight: \"2rem\",\n fontWeight: \"700\",\n },\n },\n heading_4: {\n small: {\n fontSize: \"1.125rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"700\",\n },\n base: {\n fontSize: \"1.3125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"700\",\n },\n },\n heading_5: {\n small: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"700\",\n },\n base: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"700\",\n },\n },\n body: {\n small: {\n fontSize: \"1.125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"1.25rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n },\n small: {\n small: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"400\",\n },\n },\n },\n title: {\n small: {\n fontSize: \"2.25rem\",\n lineHeight: \"2.75rem\",\n fontWeight: \"400\",\n },\n base: { fontSize: \"3.5rem\", lineHeight: \"4rem\", fontWeight: \"400\" },\n },\n titleSmall: {\n small: {\n fontSize: \"1.875rem\",\n lineHeight: \"2.25rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"2.75rem\",\n lineHeight: \"3.25rem\",\n fontWeight: \"400\",\n },\n },\n heading_1: {\n small: {\n fontSize: \"1.625rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"2.25rem\",\n lineHeight: \"2.75rem\",\n fontWeight: \"400\",\n },\n },\n heading_2: {\n small: {\n fontSize: \"1.4375rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"1.75rem\",\n lineHeight: \"2.5rem\",\n fontWeight: \"400\",\n },\n },\n heading_3: {\n small: {\n fontSize: \"1.3125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"700\",\n },\n base: {\n fontSize: \"1.5625rem\",\n lineHeight: \"2rem\",\n fontWeight: \"700\",\n },\n },\n heading_4: {\n small: {\n fontSize: \"1.125rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"700\",\n },\n base: {\n fontSize: \"1.3125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"700\",\n },\n },\n heading_5: {\n small: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"700\",\n },\n base: { fontSize: \"1rem\", lineHeight: \"1.5rem\", fontWeight: \"700\" },\n },\n body: {\n small: {\n fontSize: \"1.125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"1.25rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n },\n small: {\n small: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"400\",\n },\n base: { fontSize: \"1rem\", lineHeight: \"1.5rem\", fontWeight: \"400\" },\n },\n },\n};\n"],"names":["tokens","breakpoint","small","medium","large","xl","color","brand","snohvit","varde","granitt","hvit","svart","skifer","fjellgra","stein","svaberg","dis","sand","functional","info","infoDark","success","successDark","warning","warningDark","error","errorDark","background","page","light","dark","pageVariant","container","containerLow","containerHigh","containerInverted","containerSubdued","input","base","focus","action","interactive","interactiveHover","interactiveSelected","alert","neutral","text","default","subdued","inverted","onAction","onAlert","onAlertSubdued","border","inputFocus","separator","separatorStrong","separatorHover","motion","timing","energetic","snappy","productive","expressive","lazy","easing","standard","entrance","exit","easeInBounceOut","spacing","semanticSpacing","none","xs","s","m","l","icon","weight","normal","bold","typography","font","size","line","height","style","title","fontSize","lineHeight","fontWeight","titleSmall","heading_1","heading_2","heading_3","heading_4","heading_5","body"],"mappings":"AAIA,MAAAA,EAAe,CACXC,WAAY,CAAEC,MAAO,IAAKC,OAAQ,QAASC,MAAO,SAAUC,GAAI,UAChEC,MAAO,CACHC,MAAO,CACHC,QAAS,UACTC,MAAO,UACPC,QAAS,UACTC,KAAM,UACNC,MAAO,UACPC,OAAQ,UACRC,SAAU,UACVC,MAAO,UACPC,QAAS,UACTC,IAAK,UACLC,KAAM,WAEVC,WAAY,CACRC,KAAM,UACNC,SAAU,UACVC,QAAS,UACTC,YAAa,UACbC,QAAS,UACTC,YAAa,UACbC,MAAO,UACPC,UAAW,WAEfC,WAAY,CACRC,KAAM,CAAEC,MAAO,UAAWC,KAAM,WAChCC,YAAa,CAAEF,MAAO,UAAWC,KAAM,WACvCE,UAAW,CAAEH,MAAO,UAAWC,KAAM,WACrCG,aAAc,CAAEJ,MAAO,UAAWC,KAAM,WACxCI,cAAe,CAAEL,MAAO,UAAWC,KAAM,WACzCK,kBAAmB,CAAEN,MAAO,UAAWC,KAAM,WAC7CM,iBAAkB,CAAEP,MAAO,UAAWC,KAAM,WAC5CO,MAAO,CACHC,KAAM,CAAET,MAAO,cAAeC,KAAM,eACpCS,MAAO,CAAEV,MAAO,UAAWC,KAAM,YAErCU,OAAQ,CAAEX,MAAO,UAAWC,KAAM,WAClCW,YAAa,CAAEZ,MAAO,cAAeC,KAAM,eAC3CY,iBAAkB,CAAEb,MAAO,UAAWC,KAAM,WAC5Ca,oBAAqB,CAAEd,MAAO,UAAWC,KAAM,WAC/Cc,MAAO,CACHC,Q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ZC,WAAY,OAEhBpD,KAAM,CACFkD,SAAU,UACVC,WAAY,OACZC,WAAY,QAGpBzF,MAAO,CACHA,MAAO,CACHuF,SAAU,OACVC,WAAY,SACZC,WAAY,OAEhBpD,KAAM,CAAEkD,SAAU,OAAQC,WAAY,SAAUC,WAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{kebabCase as e}from"change-case";import o from"tailwindcss/plugin.js";import s from"../../core/tokens.js";const{breakpoint:t,typography:a}=s,i=o(({addComponents:o})=>{const s=Object.entries(a.style).map(([o,s])=>[`.${e(o)}`,{...s.small,[`@media (min-width: ${t.medium})`]:{...s.base}}]);o(Object.fromEntries(s))});export{i as jokulTypographyPlugin};
|
|
2
2
|
//# sourceMappingURL=jokulTypographyPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jokulTypographyPlugin.js","sources":["../../../../src/tailwind/plugins/jokulTypographyPlugin.ts"],"sourcesContent":["import plugin from \"tailwindcss/plugin.js\";\nimport tokens from \"../../core/tokens.js\";\n\nconst { breakpoint, typography } = tokens;\n\nexport const jokulTypographyPlugin = plugin(({ addComponents }) => {\n
|
|
1
|
+
{"version":3,"file":"jokulTypographyPlugin.js","sources":["../../../../src/tailwind/plugins/jokulTypographyPlugin.ts"],"sourcesContent":["import { kebabCase } from \"change-case\";\nimport plugin from \"tailwindcss/plugin.js\";\nimport tokens from \"../../core/tokens.js\";\n\nconst { breakpoint, typography } = tokens;\n\nexport const jokulTypographyPlugin = plugin(({ addComponents }) => {\n const mappedTextStyles = Object.entries(typography.style).map(\n ([name, style]) => [\n `.${kebabCase(name)}`,\n {\n ...style.small,\n [`@media (min-width: ${breakpoint.medium})`]: {\n ...style.base,\n },\n },\n ],\n );\n\n addComponents(Object.fromEntries(mappedTextStyles));\n});\n"],"names":["breakpoint","typography","tokens","jokulTypographyPlugin","plugin","addComponents","mappedTextStyles","Object","entries","style","map","name","kebabCase","small","medium","base","fromEntries"],"mappings":"iHAIA,MAAQA,WAAAA,EAAYC,WAAAA,GAAeC,EAEtBC,EAAwBC,EAAO,EAAGC,cAAAA,MAC3C,MAAMC,EAAmBC,OAAOC,QAAQP,EAAWQ,OAAOC,IACtD,EAAEC,EAAMF,KAAW,CACf,IAAIG,EAAUD,KACd,IACOF,EAAMI,MACT,CAAC,sBAAsBb,EAAWc,WAAY,IACvCL,EAAMM,SAMzBV,EAAcE,OAAOS,YAAYV"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fremtind/jokul",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"./build",
|
|
18
18
|
"./styles",
|
|
19
|
-
"./src/fonts"
|
|
19
|
+
"./src/fonts",
|
|
20
|
+
"./src/tailwind/v4"
|
|
20
21
|
],
|
|
21
22
|
"main": "./build/cjs/index.cjs",
|
|
22
23
|
"exports": {
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
"./styles/fonts": "./styles/fonts/_index.scss",
|
|
37
38
|
"./styles": "./styles/styles.scss",
|
|
38
39
|
"./styles/*": "./styles/*",
|
|
40
|
+
"./tailwind/v4": "./src/tailwind/v4/jokul-tailwind.css",
|
|
39
41
|
"./tailwind": {
|
|
40
42
|
"import": {
|
|
41
43
|
"types": "./build/es/tailwind/index.d.ts",
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
@use "../../core/jkl";
|
|
2
|
+
|
|
3
|
+
@include jkl.comfortable-density-variables {
|
|
4
|
+
@include jkl.declare-font-variables("jkl-autosuggest-item", "body");
|
|
5
|
+
|
|
6
|
+
--jkl-autosuggest-menu-padding: 1rem 0.5rem 0;
|
|
7
|
+
--jkl-autosuggest-controller-button-width: auto;
|
|
8
|
+
--jkl-autosuggest-controller-button-padding: 0 #{jkl.$spacing-12};
|
|
9
|
+
--jkl-autosuggest-controller-button-icon-size: #{jkl.rem(20px)};
|
|
10
|
+
--jkl-autosuggest-option-padding: 0 #{jkl.$spacing-12};
|
|
11
|
+
--jkl-autosuggest-option-height: #{jkl.rem(48px)};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include jkl.compact-density-variables {
|
|
15
|
+
@include jkl.declare-font-variables("jkl-autosuggest-item", "small");
|
|
16
|
+
|
|
17
|
+
--jkl-autosuggest-menu-padding: #{jkl.$spacing-4};
|
|
18
|
+
--jkl-autosuggest-controller-button-width: #{jkl.rem(24px)};
|
|
19
|
+
--jkl-autosuggest-controller-button-padding: 0;
|
|
20
|
+
--jkl-autosuggest-controller-button-icon-size: #{jkl.rem(18px)};
|
|
21
|
+
--jkl-autosuggest-no-hits-message-font-size: var(--jkl-small-font-size);
|
|
22
|
+
--jkl-autosuggest-option-padding: 0 #{jkl.$spacing-8};
|
|
23
|
+
--jkl-autosuggest-option-height: #{jkl.rem(32px)};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.jkl-autosuggest {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: flex-start;
|
|
30
|
+
position: relative;
|
|
31
|
+
|
|
32
|
+
&[aria-expanded="true"] .jkl-text-input-wrapper {
|
|
33
|
+
border-radius: jkl.rem(3px) jkl.rem(3px) 0 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__no-hits-message {
|
|
37
|
+
font-size: var(--jkl-autosuggest-no-hits-message-font-size);
|
|
38
|
+
padding: var(--jkl-autosuggest-option-padding);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__menu {
|
|
42
|
+
background-color: var(--jkl-color-background-container-high);
|
|
43
|
+
border: jkl.rem(2px) solid var(--jkl-color-border-input-focus);
|
|
44
|
+
border-top: none;
|
|
45
|
+
border-radius: 0 0 jkl.rem(3px) jkl.rem(3px);
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
position: absolute;
|
|
48
|
+
inset: 100% jkl.rem(-1px) auto;
|
|
49
|
+
margin: 0;
|
|
50
|
+
padding: 0;
|
|
51
|
+
max-height: 60vh;
|
|
52
|
+
overflow-y: auto;
|
|
53
|
+
width: calc(100% + jkl.rem(2px));
|
|
54
|
+
z-index: jkl.$z-index--dropdown;
|
|
55
|
+
-webkit-overflow-scrolling: touch;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__item-list {
|
|
59
|
+
list-style-type: none;
|
|
60
|
+
margin: 0;
|
|
61
|
+
padding: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__item {
|
|
65
|
+
@include jkl.use-font-variables("jkl-autosuggest-item");
|
|
66
|
+
color: unset;
|
|
67
|
+
display: flex; // avoids wrapping long names "under" the focus arrow
|
|
68
|
+
align-items: center;
|
|
69
|
+
border: 0; // removes native styling
|
|
70
|
+
background-color: var(--jkl-color-background-interactive);
|
|
71
|
+
min-height: var(--jkl-autosuggest-option-height);
|
|
72
|
+
text-align: left;
|
|
73
|
+
|
|
74
|
+
@include jkl.motion;
|
|
75
|
+
transition-property: color, background-color;
|
|
76
|
+
position: relative;
|
|
77
|
+
padding: var(--jkl-autosuggest-option-padding);
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
|
|
80
|
+
&:focus,
|
|
81
|
+
&--active,
|
|
82
|
+
&:hover {
|
|
83
|
+
color: var(--jkl-color-text-default);
|
|
84
|
+
background-color: var(--jkl-color-background-interactive-hover);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use "../../core/jkl";
|
|
3
|
+
|
|
4
|
+
.jkl-breadcrumb {
|
|
5
|
+
a[aria-current] {
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
background-image: none;
|
|
8
|
+
color: var(--jkl-color-text-interactive);
|
|
9
|
+
|
|
10
|
+
&:hover {
|
|
11
|
+
cursor: default;
|
|
12
|
+
color: var(--jkl-color-text-interactive-hover);
|
|
13
|
+
background-image: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
a:focus-visible {
|
|
18
|
+
@include jkl.focus-outline;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__list {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
list-style: none;
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding-inline-start: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__item {
|
|
30
|
+
margin-bottom: jkl.$unit-10;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__item-separator {
|
|
35
|
+
padding-left: jkl.$unit-10;
|
|
36
|
+
padding-right: jkl.$unit-10;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use "sass:string";
|
|
3
|
+
@use "../../core/jkl";
|
|
4
|
+
|
|
5
|
+
@include jkl.comfortable-density-variables {
|
|
6
|
+
--jkl-button-padding-block: #{jkl.$unit-10};
|
|
7
|
+
--jkl-button-padding-text: #{jkl.$unit-30};
|
|
8
|
+
--jkl-button-padding-icon: #{jkl.$unit-20};
|
|
9
|
+
--jkl-button-padding-icon-button: #{jkl.$unit-10};
|
|
10
|
+
--jkl-button-teritary-padding-icon: #{jkl.$unit-05};
|
|
11
|
+
--jkl-button-font-size: #{jkl.$typography-body-small-font-size};
|
|
12
|
+
--jkl-button-line-height: #{jkl.$typography-body-small-line-height};
|
|
13
|
+
|
|
14
|
+
@include jkl.from-medium-device {
|
|
15
|
+
--jkl-button-font-size: #{jkl.$typography-body-base-font-size};
|
|
16
|
+
--jkl-button-line-height: #{jkl.$typography-body-base-line-height};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include jkl.compact-density-variables {
|
|
21
|
+
--jkl-button-padding-block: #{jkl.$unit-05};
|
|
22
|
+
--jkl-button-padding-text: #{jkl.$unit-15};
|
|
23
|
+
--jkl-button-padding-icon: #{jkl.$unit-10};
|
|
24
|
+
--jkl-button-padding-icon-button: #{jkl.$unit-05};
|
|
25
|
+
--jkl-button-teritary-padding-icon: #{jkl.$unit-02};
|
|
26
|
+
--jkl-button-padding-ghost-inline: #{jkl.$unit-05};
|
|
27
|
+
--jkl-button-font-size: #{jkl.$typography-small-small-font-size};
|
|
28
|
+
--jkl-button-line-height: #{jkl.$typography-small-small-line-height};
|
|
29
|
+
|
|
30
|
+
@include jkl.from-medium-device {
|
|
31
|
+
--jkl-button-font-size: #{jkl.$typography-small-base-font-size};
|
|
32
|
+
--jkl-button-line-height: #{jkl.$typography-small-base-line-height};
|
|
33
|
+
--jkl-button-icon-weight: #{jkl.$icon-weight-bold};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.jkl-button {
|
|
38
|
+
--jkl-icon-weight: var(--jkl-button-icon-weight, initial);
|
|
39
|
+
--text-color: var(--jkl-color-text-default);
|
|
40
|
+
--background-color: transparent;
|
|
41
|
+
--border-radius: 0;
|
|
42
|
+
--border-width: #{jkl.rem(1px)}; // For secondary og tertiary button
|
|
43
|
+
|
|
44
|
+
display: inline-block;
|
|
45
|
+
|
|
46
|
+
font-weight: #{jkl.$typography-weight-bold};
|
|
47
|
+
font-size: var(--jkl-button-font-size);
|
|
48
|
+
line-height: var(--jkl-button-line-height);
|
|
49
|
+
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
user-select: none;
|
|
52
|
+
background: var(--background-color);
|
|
53
|
+
color: var(--text-color);
|
|
54
|
+
border: unset;
|
|
55
|
+
text-decoration: none;
|
|
56
|
+
-webkit-tap-highlight-color: transparent;
|
|
57
|
+
|
|
58
|
+
border-radius: var(--border-radius);
|
|
59
|
+
padding-inline: var(--jkl-button-padding-text);
|
|
60
|
+
padding-block: var(--jkl-button-padding-block);
|
|
61
|
+
position: relative;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
max-width: 100%;
|
|
64
|
+
animation: a 0.3s linear;
|
|
65
|
+
|
|
66
|
+
@include jkl.motion("standard", "productive", background-color);
|
|
67
|
+
|
|
68
|
+
&:has(.jkl-button__text) {
|
|
69
|
+
min-width: 9.5ch;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:has(.jkl-icon:first-child) {
|
|
73
|
+
padding-inline-start: var(--jkl-button-padding-icon);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:has(.jkl-icon:last-child) {
|
|
77
|
+
padding-inline-end: var(--jkl-button-padding-icon);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:has(.jkl-icon:first-child):has(.jkl-icon:last-child) {
|
|
81
|
+
padding-inline: var(--jkl-button-padding-icon-button);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__label {
|
|
85
|
+
@include jkl.motion("standard", "expressive", translate);
|
|
86
|
+
|
|
87
|
+
width: 100%;
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: row;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: jkl.$unit-02;
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__loader {
|
|
96
|
+
@include jkl.motion("standard", "expressive", opacity, translate);
|
|
97
|
+
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 50%;
|
|
100
|
+
left: 50%;
|
|
101
|
+
translate: -50% 350%;
|
|
102
|
+
opacity: 0;
|
|
103
|
+
pointer-events: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&__text {
|
|
107
|
+
// Håndter tekster som er lenger enn knappen
|
|
108
|
+
// Knappen vokser til teksten, men kan f.eks. begrenses
|
|
109
|
+
// av sidebredde på mobil
|
|
110
|
+
width: 100%;
|
|
111
|
+
max-width: 100%;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
text-overflow: ellipsis;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&[data-loading="true"] &__label {
|
|
118
|
+
translate: 0 -120%;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&[data-loading="true"] &__loader {
|
|
122
|
+
translate: -50% -50%;
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:focus-visible {
|
|
127
|
+
@include jkl.focus-outline;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&:hover {
|
|
131
|
+
background-color: color-mix(in srgb, var(--background-color), var(--text-color) 15%);
|
|
132
|
+
|
|
133
|
+
@media (forced-colors: active) {
|
|
134
|
+
@include jkl.focus-outline;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&--primary,
|
|
139
|
+
&--secondary,
|
|
140
|
+
&--ghost {
|
|
141
|
+
--border-radius: 999px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&--primary {
|
|
145
|
+
--background-color: var(--jkl-color-background-action);
|
|
146
|
+
--text-color: var(--jkl-color-text-on-action);
|
|
147
|
+
|
|
148
|
+
@media (forced-colors: active) {
|
|
149
|
+
border: calc(var(--border-width) * 2) solid Highlight;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&--secondary {
|
|
154
|
+
border: var(--border-width) solid var(--text-color);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&--tertiary {
|
|
158
|
+
border-bottom: var(--border-width) solid var(--text-color);
|
|
159
|
+
padding-inline: var(--jkl-button-teritary-padding-icon);
|
|
160
|
+
|
|
161
|
+
&:has(.jkl-icon:first-child) {
|
|
162
|
+
padding-inline: var(--jkl-button-teritary-padding-icon) calc(var(--jkl-button-teritary-padding-icon) * 2);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:has(.jkl-icon:last-child) {
|
|
166
|
+
padding-inline: calc(var(--jkl-button-teritary-padding-icon) * 2) var(--jkl-button-teritary-padding-icon);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|