@ndla/preset-panda 0.0.74 → 0.0.76

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.
Files changed (53) hide show
  1. package/dist/styles.css +69 -10
  2. package/es/animations.mjs +1 -2
  3. package/es/animations.mjs.map +1 -1
  4. package/es/boxShadows.mjs +1 -2
  5. package/es/boxShadows.mjs.map +1 -1
  6. package/es/colors.mjs +1 -2
  7. package/es/colors.mjs.map +1 -1
  8. package/es/conditions.mjs +1 -1
  9. package/es/globalCss.mjs +5 -3
  10. package/es/globalCss.mjs.map +1 -1
  11. package/es/index.mjs +3 -2
  12. package/es/index.mjs.map +1 -1
  13. package/es/plugins/forwardCssPropPlugin.mjs +1 -1
  14. package/es/radii.mjs +1 -2
  15. package/es/radii.mjs.map +1 -1
  16. package/es/semanticTokens.mjs +1 -2
  17. package/es/semanticTokens.mjs.map +1 -1
  18. package/es/spacing.mjs +1 -2
  19. package/es/spacing.mjs.map +1 -1
  20. package/es/typography.mjs +35 -19
  21. package/es/typography.mjs.map +1 -1
  22. package/es/utilities.mjs +12 -0
  23. package/es/utilities.mjs.map +1 -0
  24. package/es/zIndex.mjs +1 -2
  25. package/es/zIndex.mjs.map +1 -1
  26. package/lib/animations.js +1 -2
  27. package/lib/animations.js.map +1 -1
  28. package/lib/boxShadows.js +2 -4
  29. package/lib/boxShadows.js.map +1 -1
  30. package/lib/colors.js +2 -4
  31. package/lib/colors.js.map +1 -1
  32. package/lib/conditions.js +1 -2
  33. package/lib/conditions.js.map +1 -1
  34. package/lib/globalCss.js +6 -5
  35. package/lib/globalCss.js.map +1 -1
  36. package/lib/index.js +19 -16
  37. package/lib/index.js.map +1 -1
  38. package/lib/plugins/forwardCssPropPlugin.js +1 -2
  39. package/lib/plugins/forwardCssPropPlugin.js.map +1 -1
  40. package/lib/radii.js +2 -4
  41. package/lib/radii.js.map +1 -1
  42. package/lib/semanticTokens.js +2 -4
  43. package/lib/semanticTokens.js.map +1 -1
  44. package/lib/spacing.js +2 -4
  45. package/lib/spacing.js.map +1 -1
  46. package/lib/typography.js +35 -19
  47. package/lib/typography.js.map +1 -1
  48. package/lib/utilities.d.ts +9 -0
  49. package/lib/utilities.js +12 -0
  50. package/lib/utilities.js.map +1 -0
  51. package/lib/zIndex.js +2 -4
  52. package/lib/zIndex.js.map +1 -1
  53. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
-
2
1
  //#region src/plugins/forwardCssPropPlugin.ts
3
2
  const supportedJsxFrameworks = ["react"];
4
3
  const forwardCssPropPlugin = () => {
@@ -71,7 +70,7 @@ export interface StyledProps extends UnstyledProps, AsProps, JsxStyleProps {}`);
71
70
  } & `);
72
71
  return args.artifacts;
73
72
  };
74
-
75
73
  //#endregion
76
74
  exports.forwardCssPropPlugin = forwardCssPropPlugin;
75
+
77
76
  //# sourceMappingURL=forwardCssPropPlugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"forwardCssPropPlugin.js","names":[],"sources":["../../src/plugins/forwardCssPropPlugin.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { CodegenPrepareHookArgs, PandaPlugin } from \"@pandacss/types\";\n\nconst supportedJsxFrameworks = [\"react\"];\n\nexport const forwardCssPropPlugin = (): PandaPlugin => {\n return {\n name: \"forward-css-prop\",\n hooks: {\n \"config:resolved\": (args) => {\n const jsxFramework = args.config.jsxFramework;\n if (!supportedJsxFrameworks.includes(jsxFramework as string)) {\n throw new Error(\n `[plugin:restrict-styled-props]: Unsupported jsxFramework: ${jsxFramework}. This Panda plugin only supports: ${supportedJsxFrameworks.join(\", \")}`,\n );\n }\n },\n \"codegen:prepare\": (args) => {\n return transformStyledFn(args);\n },\n },\n };\n};\n\nexport const transformStyledFn = (args: CodegenPrepareHookArgs) => {\n const factoryArtifact = args.artifacts.find((art) => art.id === \"jsx-factory\");\n const factoryJs = factoryArtifact?.files.find((f) => f.file.includes(\".mjs\") || f.file.includes(\".js\"));\n const jsxTypes = args.artifacts.find((art) => art.id === \"types-jsx\")?.files.find((f) => f.file.includes(\"jsx\"));\n const systemTypes = args.artifacts\n .find((art) => art.id === \"types-gen-system\")\n ?.files.find((f) => f.file.includes(\"system-types\"));\n\n const jsxIndex = args.artifacts\n .find((art) => art.id === \"jsx-patterns-index\")\n ?.files.find((file) => file.file === \"index.d.ts\");\n\n if (!factoryJs?.code || !jsxTypes?.code || !systemTypes?.code || !jsxIndex?.code) {\n return args.artifacts;\n }\n\n const baseCode = \"const __base__ = Dynamic.__base__ || Dynamic\";\n\n factoryJs.code = factoryJs.code.replace(\n baseCode,\n `${baseCode}\n const contextConsume = options.baseComponent || Dynamic.__base__ || typeof Dynamic === \"string\"`,\n );\n\n const propsCode = \"const { as: Element = __base__, unstyled, children, ...restProps } = props\";\n\n factoryJs.code = factoryJs.code.replace(\n propsCode,\n `const { as: Element = __base__, unstyled, consumeCss, children, ...restProps } = props\n\n const consume = props.asChild\n ? consumeCss && (options.baseComponent || Dynamic.__baseComponent__)\n : consumeCss || contextConsume`,\n );\n\n const cvaCode = \"const cvaStyles = __cvaFn__.raw(variantProps)\";\n\n factoryJs.code = factoryJs.code.replace(\n cvaCode,\n `${cvaCode}\n if(!consume) {\n return css.raw(cvaStyles, propStyles, cssStyles)\n }`,\n );\n\n factoryJs.code = factoryJs.code.replace(\n \"className: classes()\",\n `...(consume ? { className: classes() } : { css: classes(), consumeCss } )`,\n );\n\n const styledComponentForwardPropDeclaration = `StyledComponent.__shouldForwardProps__ = shouldForwardProp`;\n\n factoryJs.code = factoryJs.code.replace(\n styledComponentForwardPropDeclaration,\n `${styledComponentForwardPropDeclaration}\n StyledComponent.__baseComponent__ = options.baseComponent || Dynamic.__baseComponent__`,\n );\n\n const shouldForwardPropCode = \"shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean\";\n\n jsxTypes.code = jsxTypes.code.replace(\n shouldForwardPropCode,\n `${shouldForwardPropCode}\n /**\n * Used when creating styled components from React components that do not support the css prop. If true, the css prop will be consumed and converted to \\`className\\` \n * @example\n * import { ark } from \"@ark-ui/react\"\n * import { styled } from \"@ndla/styled-system/jsx\"\n * const Button = styled(ark.button, { baseComponent: true })\n */\n baseComponent?: boolean`,\n );\n\n const htmlStyledPropsCode =\n \"export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>\";\n\n jsxTypes.code = jsxTypes.code.replace(\n htmlStyledPropsCode,\n `${htmlStyledPropsCode}\nexport interface StyledProps extends UnstyledProps, AsProps, JsxStyleProps {}`,\n );\n\n const jsxExportCode = \"export type { HTMLStyledProps, StyledComponent } from '../types/jsx';\";\n\n jsxIndex.code = jsxIndex.code.replace(\n jsxExportCode,\n `export type { HTMLStyledProps, StyledComponent, StyledProps } from '../types/jsx';`,\n );\n\n const jsxStylePropsCode = \"export type JsxStyleProps =\";\n\n systemTypes.code = systemTypes.code.replace(\n jsxStylePropsCode,\n `${jsxStylePropsCode} { \n /**\n * Tells a component to consume the \\`css\\` prop and turn it into a \\`className\\` prop. This is only used in conjunction with the \\`baseComponent\\` prop in the \\`styled\\` function to ensure that components that are \\`asChild\\`-ed onto non-panda components can consume their css before being merged with their child.\n * @example\n * import { ark } from \"@ark-ui/react\"\n * import { styled } from \"@ndla/styled-system/jsx\"\n * const Button = styled('button', { baseComponent: true })\n *\n * return (\n * <Button asChild consumeCss>\n * <div>Click me</div>\n * </Button>\n * )\n */\n consumeCss?: boolean \n } & `,\n );\n\n return args.artifacts;\n};\n"],"mappings":";;AAUA,MAAM,yBAAyB,CAAC,QAAQ;AAExC,MAAa,6BAA0C;AACrD,QAAO;EACL,MAAM;EACN,OAAO;GACL,oBAAoB,SAAS;IAC3B,MAAM,eAAe,KAAK,OAAO;AACjC,QAAI,CAAC,uBAAuB,SAAS,aAAuB,CAC1D,OAAM,IAAI,MACR,6DAA6D,aAAa,qCAAqC,uBAA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EAExB;AAID,UAAS,OAAO,SAAS,KAAK,QAFR,yEAIpB,qFACD;CAED,MAAM,oBAAoB;AAE1B,aAAY,OAAO,YAAY,KAAK,QAClC,mBACA,GAAG,kBAAkB;;;;;;;;;;;;;;;QAgBtB;AAED,QAAO,KAAK"}
1
+ {"version":3,"file":"forwardCssPropPlugin.js","names":[],"sources":["../../src/plugins/forwardCssPropPlugin.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { CodegenPrepareHookArgs, PandaPlugin } from \"@pandacss/types\";\n\nconst supportedJsxFrameworks = [\"react\"];\n\nexport const forwardCssPropPlugin = (): PandaPlugin => {\n return {\n name: \"forward-css-prop\",\n hooks: {\n \"config:resolved\": (args) => {\n const jsxFramework = args.config.jsxFramework;\n if (!supportedJsxFrameworks.includes(jsxFramework as string)) {\n throw new Error(\n `[plugin:restrict-styled-props]: Unsupported jsxFramework: ${jsxFramework}. This Panda plugin only supports: ${supportedJsxFrameworks.join(\", \")}`,\n );\n }\n },\n \"codegen:prepare\": (args) => {\n return transformStyledFn(args);\n },\n },\n };\n};\n\nexport const transformStyledFn = (args: CodegenPrepareHookArgs) => {\n const factoryArtifact = args.artifacts.find((art) => art.id === \"jsx-factory\");\n const factoryJs = factoryArtifact?.files.find((f) => f.file.includes(\".mjs\") || f.file.includes(\".js\"));\n const jsxTypes = args.artifacts.find((art) => art.id === \"types-jsx\")?.files.find((f) => f.file.includes(\"jsx\"));\n const systemTypes = args.artifacts\n .find((art) => art.id === \"types-gen-system\")\n ?.files.find((f) => f.file.includes(\"system-types\"));\n\n const jsxIndex = args.artifacts\n .find((art) => art.id === \"jsx-patterns-index\")\n ?.files.find((file) => file.file === \"index.d.ts\");\n\n if (!factoryJs?.code || !jsxTypes?.code || !systemTypes?.code || !jsxIndex?.code) {\n return args.artifacts;\n }\n\n const baseCode = \"const __base__ = Dynamic.__base__ || Dynamic\";\n\n factoryJs.code = factoryJs.code.replace(\n baseCode,\n `${baseCode}\n const contextConsume = options.baseComponent || Dynamic.__base__ || typeof Dynamic === \"string\"`,\n );\n\n const propsCode = \"const { as: Element = __base__, unstyled, children, ...restProps } = props\";\n\n factoryJs.code = factoryJs.code.replace(\n propsCode,\n `const { as: Element = __base__, unstyled, consumeCss, children, ...restProps } = props\n\n const consume = props.asChild\n ? consumeCss && (options.baseComponent || Dynamic.__baseComponent__)\n : consumeCss || contextConsume`,\n );\n\n const cvaCode = \"const cvaStyles = __cvaFn__.raw(variantProps)\";\n\n factoryJs.code = factoryJs.code.replace(\n cvaCode,\n `${cvaCode}\n if(!consume) {\n return css.raw(cvaStyles, propStyles, cssStyles)\n }`,\n );\n\n factoryJs.code = factoryJs.code.replace(\n \"className: classes()\",\n `...(consume ? { className: classes() } : { css: classes(), consumeCss } )`,\n );\n\n const styledComponentForwardPropDeclaration = `StyledComponent.__shouldForwardProps__ = shouldForwardProp`;\n\n factoryJs.code = factoryJs.code.replace(\n styledComponentForwardPropDeclaration,\n `${styledComponentForwardPropDeclaration}\n StyledComponent.__baseComponent__ = options.baseComponent || Dynamic.__baseComponent__`,\n );\n\n const shouldForwardPropCode = \"shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean\";\n\n jsxTypes.code = jsxTypes.code.replace(\n shouldForwardPropCode,\n `${shouldForwardPropCode}\n /**\n * Used when creating styled components from React components that do not support the css prop. If true, the css prop will be consumed and converted to \\`className\\` \n * @example\n * import { ark } from \"@ark-ui/react\"\n * import { styled } from \"@ndla/styled-system/jsx\"\n * const Button = styled(ark.button, { baseComponent: true })\n */\n baseComponent?: boolean`,\n );\n\n const htmlStyledPropsCode =\n \"export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>\";\n\n jsxTypes.code = jsxTypes.code.replace(\n htmlStyledPropsCode,\n `${htmlStyledPropsCode}\nexport interface StyledProps extends UnstyledProps, AsProps, JsxStyleProps {}`,\n );\n\n const jsxExportCode = \"export type { HTMLStyledProps, StyledComponent } from '../types/jsx';\";\n\n jsxIndex.code = jsxIndex.code.replace(\n jsxExportCode,\n `export type { HTMLStyledProps, StyledComponent, StyledProps } from '../types/jsx';`,\n );\n\n const jsxStylePropsCode = \"export type JsxStyleProps =\";\n\n systemTypes.code = systemTypes.code.replace(\n jsxStylePropsCode,\n `${jsxStylePropsCode} { \n /**\n * Tells a component to consume the \\`css\\` prop and turn it into a \\`className\\` prop. This is only used in conjunction with the \\`baseComponent\\` prop in the \\`styled\\` function to ensure that components that are \\`asChild\\`-ed onto non-panda components can consume their css before being merged with their child.\n * @example\n * import { ark } from \"@ark-ui/react\"\n * import { styled } from \"@ndla/styled-system/jsx\"\n * const Button = styled('button', { baseComponent: true })\n *\n * return (\n * <Button asChild consumeCss>\n * <div>Click me</div>\n * </Button>\n * )\n */\n consumeCss?: boolean \n } & `,\n );\n\n return args.artifacts;\n};\n"],"mappings":";AAUA,MAAM,yBAAyB,CAAC,QAAQ;AAExC,MAAa,6BAA0C;AACrD,QAAO;EACL,MAAM;EACN,OAAO;GACL,oBAAoB,SAAS;IAC3B,MAAM,eAAe,KAAK,OAAO;AACjC,QAAI,CAAC,uBAAuB,SAAS,aAAuB,CAC1D,OAAM,IAAI,MACR,6DAA6D,aAAa,qCAAqC,uBAAuB,KAAK,KAAK,GACjJ;;GAGL,oBAAoB,SAAS;AAC3B,WAAO,kBAAkB,KAAK;;GAEjC;EACF;;AAGH,MAAa,qBAAqB,SAAiC;CAEjE,MAAM,YADkB,KAAK,UAAU,MAAM,QAAQ,IAAI,OAAO,cAAc,EAC3C,MAAM,MAAM,MAAM,EAAE,KAAK,SAAS,OAAO,IAAI,EAAE,KAAK,SAAS,MAAM,CAAC;CACvG,MAAM,WAAW,KAAK,UAAU,MAAM,QAAQ,IAAI,OAAO,YAAY,EAAE,MAAM,MAAM,MAAM,EAAE,KAAK,SAAS,MAAM,CAAC;CAChH,MAAM,cAAc,KAAK,UACtB,MAAM,QAAQ,IAAI,OAAO,mBAAmB,EAC3C,MAAM,MAAM,MAAM,EAAE,KAAK,SAAS,eAAe,CAAC;CAEtD,MAAM,WAAW,KAAK,UACnB,MAAM,QAAQ,IAAI,OAAO,qBAAqB,EAC7C,MAAM,MAAM,SAAS,KAAK,SAAS,aAAa;AAEpD,KAAI,CAAC,WAAW,QAAQ,CAAC,UAAU,QAAQ,CAAC,aAAa,QAAQ,CAAC,UAAU,KAC1E,QAAO,KAAK;CAGd,MAAM,WAAW;AAEjB,WAAU,OAAO,UAAU,KAAK,QAC9B,UACA,GAAG,SAAS;mGAEb;AAID,WAAU,OAAO,UAAU,KAAK,QAFd,8EAIhB;;;;sCAKD;CAED,MAAM,UAAU;AAEhB,WAAU,OAAO,UAAU,KAAK,QAC9B,SACA,GAAG,QAAQ;;;SAIZ;AAED,WAAU,OAAO,UAAU,KAAK,QAC9B,wBACA,4EACD;CAED,MAAM,wCAAwC;AAE9C,WAAU,OAAO,UAAU,KAAK,QAC9B,uCACA,GAAG,sCAAsC;0FAE1C;CAED,MAAM,wBAAwB;AAE9B,UAAS,OAAO,SAAS,KAAK,QAC5B,uBACA,GAAG,sBAAsB;;;;;;;;2BAS1B;CAED,MAAM,sBACJ;AAEF,UAAS,OAAO,SAAS,KAAK,QAC5B,qBACA,GAAG,oBAAoB;+EAExB;AAID,UAAS,OAAO,SAAS,KAAK,QAFR,yEAIpB,qFACD;CAED,MAAM,oBAAoB;AAE1B,aAAY,OAAO,YAAY,KAAK,QAClC,mBACA,GAAG,kBAAkB;;;;;;;;;;;;;;;QAgBtB;AAED,QAAO,KAAK"}
package/lib/radii.js CHANGED
@@ -1,5 +1,3 @@
1
- let _pandacss_dev = require("@pandacss/dev");
2
-
3
1
  //#region src/radii.ts
4
2
  /**
5
3
  * Copyright (c) 2024-present, NDLA.
@@ -8,7 +6,7 @@ let _pandacss_dev = require("@pandacss/dev");
8
6
  * LICENSE file in the root directory of this source tree.
9
7
  *
10
8
  */
11
- const radii = _pandacss_dev.defineTokens.radii({
9
+ const radii = require("@pandacss/dev").defineTokens.radii({
12
10
  sharp: { value: "0px" },
13
11
  xsmall: { value: "{spacing.4xsmall}" },
14
12
  small: { value: "{spacing.xxsmall}" },
@@ -16,7 +14,7 @@ const radii = _pandacss_dev.defineTokens.radii({
16
14
  large: { value: "{spacing.medium}" },
17
15
  full: { value: "100%" }
18
16
  });
19
-
20
17
  //#endregion
21
18
  exports.radii = radii;
19
+
22
20
  //# sourceMappingURL=radii.js.map
package/lib/radii.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"radii.js","names":["defineTokens"],"sources":["../src/radii.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { defineTokens } from \"@pandacss/dev\";\n\nexport const radii = defineTokens.radii({\n sharp: { value: \"0px\" },\n xsmall: { value: \"{spacing.4xsmall}\" },\n small: { value: \"{spacing.xxsmall}\" },\n medium: { value: \"{spacing.xsmall}\" },\n large: { value: \"{spacing.medium}\" },\n full: { value: \"100%\" },\n});\n"],"mappings":";;;;;;;;;;AAUA,MAAa,QAAQA,2BAAa,MAAM;CACtC,OAAO,EAAE,OAAO,OAAO;CACvB,QAAQ,EAAE,OAAO,qBAAqB;CACtC,OAAO,EAAE,OAAO,qBAAqB;CACrC,QAAQ,EAAE,OAAO,oBAAoB;CACrC,OAAO,EAAE,OAAO,oBAAoB;CACpC,MAAM,EAAE,OAAO,QAAQ;CACxB,CAAC"}
1
+ {"version":3,"file":"radii.js","names":["defineTokens"],"sources":["../src/radii.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { defineTokens } from \"@pandacss/dev\";\n\nexport const radii = defineTokens.radii({\n sharp: { value: \"0px\" },\n xsmall: { value: \"{spacing.4xsmall}\" },\n small: { value: \"{spacing.xxsmall}\" },\n medium: { value: \"{spacing.xsmall}\" },\n large: { value: \"{spacing.medium}\" },\n full: { value: \"100%\" },\n});\n"],"mappings":";;;;;;;;AAUA,MAAa,iCAAQA,aAAa,MAAM;CACtC,OAAO,EAAE,OAAO,OAAO;CACvB,QAAQ,EAAE,OAAO,qBAAqB;CACtC,OAAO,EAAE,OAAO,qBAAqB;CACrC,QAAQ,EAAE,OAAO,oBAAoB;CACrC,OAAO,EAAE,OAAO,oBAAoB;CACpC,MAAM,EAAE,OAAO,QAAQ;CACxB,CAAC"}
@@ -1,5 +1,3 @@
1
- let _pandacss_dev = require("@pandacss/dev");
2
-
3
1
  //#region src/semanticTokens.ts
4
2
  /**
5
3
  * Copyright (c) 2024-present, NDLA.
@@ -8,7 +6,7 @@ let _pandacss_dev = require("@pandacss/dev");
8
6
  * LICENSE file in the root directory of this source tree.
9
7
  *
10
8
  */
11
- const semanticTokens = (0, _pandacss_dev.defineSemanticTokens)({
9
+ const semanticTokens = (0, require("@pandacss/dev").defineSemanticTokens)({
12
10
  spacing: {
13
11
  "5xsmall": { value: "{spacing.1}" },
14
12
  "4xsmall": { value: "{spacing.2}" },
@@ -238,7 +236,7 @@ const semanticTokens = (0, _pandacss_dev.defineSemanticTokens)({
238
236
  }
239
237
  }
240
238
  });
241
-
242
239
  //#endregion
243
240
  exports.semanticTokens = semanticTokens;
241
+
244
242
  //# sourceMappingURL=semanticTokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"semanticTokens.js","names":[],"sources":["../src/semanticTokens.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { defineSemanticTokens } from \"@pandacss/dev\";\n\nexport const semanticTokens = defineSemanticTokens({\n spacing: {\n \"5xsmall\": { value: \"{spacing.1}\" },\n \"4xsmall\": { value: \"{spacing.2}\" },\n \"3xsmall\": { value: \"{spacing.3}\" },\n xxsmall: { value: \"{spacing.4}\" },\n xsmall: { value: \"{spacing.6}\" },\n small: { value: \"{spacing.8}\" },\n medium: { value: \"{spacing.12}\" },\n large: { value: \"{spacing.16}\" },\n xlarge: { value: \"{spacing.18}\" },\n xxlarge: { value: \"{spacing.24}\" },\n \"3xlarge\": { value: \"{spacing.36}\" },\n \"4xlarge\": { value: \"{spacing.48}\" },\n \"5xlarge\": { value: \"{spacing.60}\" },\n surface: {\n \"4xsmall\": { value: \"{spacing.50}\" },\n \"3xsmall\": { value: \"{spacing.75}\" },\n xxsmall: { value: \"{spacing.100}\" },\n xsmall: { value: \"{spacing.150}\" },\n small: { value: \"{spacing.200}\" },\n medium: { value: \"{spacing.250}\" },\n large: { value: \"{spacing.300}\" },\n xlarge: { value: \"{spacing.350}\" },\n xxlarge: { value: \"{spacing.400}\" },\n \"3xlarge\": { value: \"{spacing.500}\" },\n \"4xlarge\": { value: \"{spacing.550}\" },\n },\n },\n sizes: {\n \"5xsmall\": { value: \"{spacing.1}\" },\n \"4xsmall\": { value: \"{spacing.2}\" },\n \"3xsmall\": { value: \"{spacing.3}\" },\n xxsmall: { value: \"{spacing.4}\" },\n xsmall: { value: \"{spacing.6}\" },\n small: { value: \"{spacing.8}\" },\n medium: { value: \"{spacing.12}\" },\n large: { value: \"{spacing.16}\" },\n xlarge: { value: \"{spacing.18}\" },\n xxlarge: { value: \"{spacing.24}\" },\n \"3xlarge\": { value: \"{spacing.36}\" },\n \"4xlarge\": { value: \"{spacing.48}\" },\n \"5xlarge\": { value: \"{spacing.60}\" },\n surface: {\n \"4xsmall\": { value: \"{spacing.50}\" },\n \"3xsmall\": { value: \"{spacing.75}\" },\n xxsmall: { value: \"{spacing.100}\" },\n xsmall: { value: \"{spacing.150}\" },\n small: { value: \"{spacing.200}\" },\n medium: { value: \"{spacing.250}\" },\n large: { value: \"{spacing.300}\" },\n xlarge: { value: \"{spacing.350}\" },\n xxlarge: { value: \"{spacing.400}\" },\n \"3xlarge\": { value: \"{spacing.500}\" },\n \"4xlarge\": { value: \"{spacing.550}\" },\n pageMax: { value: \"1128px\" },\n contentMax: { value: \"744px\" },\n articleMax: { value: \"928px\" },\n wideMax: { value: \"1440px\" },\n },\n },\n colors: {\n background: {\n default: { value: \"{colors.white}\" },\n subtle: { value: \"{colors.grey.100}\" },\n strong: { value: \"{colors.purple.50}\" },\n },\n text: {\n default: { value: \"{colors.grey.950}\" },\n subtle: { value: \"{colors.grey.700}\" },\n strong: { value: \"{colors.primary}\" },\n action: { value: \"{colors.purple.800}\" },\n onAction: { value: \"{colors.white}\" },\n link: { value: \"{colors.blue.800}\" },\n linkVisited: { value: \"{colors.purple.900}\" },\n error: { value: \"{colors.red.600}\" },\n disabled: { value: \"{colors.grey.400}\" },\n },\n icon: {\n default: { value: \"{colors.grey.950}\" },\n strong: { value: \"{colors.primary}\" },\n onAction: { value: \"{colors.white}\" },\n subtle: { value: \"{colors.grey.700}\" },\n warning: { value: \"{colors.yellow.600}\" },\n danger: { value: \"{colors.red.500}\" },\n },\n surface: {\n brand: {\n 1: {\n DEFAULT: { value: \"{colors.purple.500}\" },\n subtle: { value: \"{colors.purple.100}\" },\n moderate: { value: \"{colors.purple.300}\" },\n strong: { value: \"{colors.purple.950}\" },\n },\n 2: {\n DEFAULT: { value: \"{colors.blue.500}\" },\n subtle: { value: \"{colors.blue.50}\" },\n moderate: { value: \"{colors.blue.100}\" },\n bold: { value: \"{colors.blue.800}\" },\n strong: { value: \"{colors.blue.900}\" },\n },\n 3: {\n DEFAULT: { value: \"{colors.lightGreen.500}\" },\n subtle: { value: \"{colors.lightGreen.100}\" },\n moderate: { value: \"{colors.lightGreen.300}\" },\n strong: { value: \"{colors.lightGreen.900}\" },\n },\n 4: {\n DEFAULT: { value: \"{colors.lightYellow.500}\" },\n subtle: { value: \"{colors.lightYellow.100}\" },\n moderate: { value: \"{colors.lightYellow.300}\" },\n strong: { value: \"{colors.lightYellow.1100}\" },\n },\n 5: {\n DEFAULT: { value: \"{colors.pink.500}\" },\n subtle: { value: \"{colors.pink.100}\" },\n moderate: { value: \"{colors.pink.300}\" },\n strong: { value: \"{colors.pink.900}\" },\n },\n },\n default: { value: \"{colors.white}\" },\n hover: { value: \"{colors.purple.alpha.5}\" },\n active: { value: \"{colors.purple.alpha.10}\" },\n selected: { value: \"{colors.purple.200}\" },\n disabled: {\n DEFAULT: { value: \"{colors.grey.200}\" },\n subtle: { value: \"{colors.grey.50}\" },\n strong: { value: \"{colors.grey.700}\" },\n },\n infoSubtle: {\n DEFAULT: { value: \"{colors.grey.100}\" },\n hover: { value: \"{colors.grey.200}\" },\n active: { value: \"{colors.grey.300}\" },\n },\n action: {\n DEFAULT: { value: \"{colors.primary}\" },\n hover: { value: \"{colors.purple.900}\" },\n active: { value: \"{colors.purple.950}\" },\n selected: { value: \"{colors.purple.800}\" },\n myNdla: {\n DEFAULT: { value: \"{colors.lightYellow.300}\" },\n hover: { value: \"{colors.lightYellow.500}\" },\n current: { value: \"{colors.lightYellow.700}\" },\n },\n brand: {\n 1: {\n DEFAULT: { value: \"{colors.purple.50}\" },\n hover: {\n DEFAULT: { value: \"{colors.purple.100}\" },\n strong: { value: \"{colors.purple.400}\" },\n },\n active: { value: \"{colors.purple.300}\" },\n selected: { value: \"{colors.purple.400}\" },\n },\n 2: {\n DEFAULT: { value: \"{colors.blue.50}\" },\n hover: { value: \"{colors.blue.100}\" },\n selected: { value: \"{colors.blue.200}\" },\n },\n },\n },\n actionSubtle: {\n DEFAULT: { value: \"{colors.purple.50}\" },\n hover: {\n DEFAULT: { value: \"{colors.purple.100}\" },\n strong: { value: \"{colors.purple.400}\" },\n },\n active: { value: \"{colors.purple.300}\" },\n selected: { value: \"{colors.purple.900}\" },\n },\n success: {\n DEFAULT: { value: \"{colors.green.500}\" },\n hover: { value: \"{colors.green.700}\" },\n selected: { value: \"{colors.green.900}\" },\n active: { value: \"{colors.green.700}\" },\n },\n successSubtle: {\n DEFAULT: { value: \"{colors.green.50}\" },\n hover: { value: \"{colors.green.100}\" },\n active: { value: \"{colors.green.300}\" },\n },\n warning: {\n DEFAULT: { value: \"{colors.yellow.400}\" },\n hover: { value: \"{colors.yellow.500}\" },\n active: { value: \"{colors.yellow.700}\" },\n },\n warningSubtle: {\n DEFAULT: { value: \"{colors.yellow.50}\" },\n hover: { value: \"{colors.yellow.100}\" },\n active: { value: \"{colors.yellow.200}\" },\n },\n danger: {\n DEFAULT: { value: \"{colors.red.500}\" },\n hover: { value: \"{colors.red.700}\" },\n selected: { value: \"{colors.red.800}\" },\n active: { value: \"{colors.red.900}\" },\n },\n dangerSubtle: {\n DEFAULT: { value: \"{colors.red.50}\" },\n hover: { value: \"{colors.red.100}\" },\n active: { value: \"{colors.red.200}\" },\n },\n error: {\n DEFAULT: { value: \"{colors.pink.500}\" },\n hover: { value: \"{colors.pink.700}\" },\n active: { value: \"{colors.pink.900}\" },\n },\n errorSubtle: {\n DEFAULT: { value: \"{colors.red.50}\" },\n hover: { value: \"{colors.pink.100}\" },\n active: { value: \"{colors.pink.200}\" },\n },\n subtle: {\n DEFAULT: { value: \"{colors.grey.50}\" },\n selected: { value: \"{colors.grey.100}\" },\n },\n },\n stroke: {\n default: { value: \"{colors.primary}\" },\n hover: { value: \"{colors.purple.800}\" },\n subtle: { value: \"{colors.grey.500}\" },\n success: { value: \"{colors.lightGreen.900}\" },\n info: { value: \"{colors.grey.500}\" },\n warning: { value: \"{colors.yellow.600}\" },\n error: { value: \"{colors.red.600}\" },\n disabled: { value: \"{colors.grey.300}\" },\n discrete: { value: \"{colors.grey.300}\" },\n },\n },\n});\n"],"mappings":";;;;;;;;;;AAUA,MAAa,yDAAsC;CACjD,SAAS;EACP,WAAW,EAAE,OAAO,eAAe;EACnC,WAAW,EAAE,OAAO,eAAe;EACnC,WAAW,EAAE,OAAO,eAAe;EACnC,SAAS,EAAE,OAAO,eAAe;EACjC,QAAQ,EAAE,OAAO,eAAe;EAChC,OAAO,EAAE,OAAO,eAAe;EAC/B,QAAQ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,EAAE,OAAO,qBAAqB;IACvC,OAAO,EAAE,OAAO,qBAAqB;IACrC,QAAQ,EAAE,OAAO,qBAAqB;IACvC;GACD,aAAa;IACX,SAAS,EAAE,OAAO,mBAAmB;IACrC,OAAO,EAAE,OAAO,qBAAqB;IACrC,QAAQ,EAAE,OAAO,qBAAqB;IACvC;GACD,QAAQ;IACN,SAAS,EAAE,OAAO,oBAAoB;IACtC,UAAU,EAAE,OAAO,qBAAqB;IACzC;GACF;EACD,QAAQ;GACN,SAAS,EAAE,OAAO,oBAAoB;GACtC,OAAO,EAAE,OAAO,uBAAuB;GACvC,QAAQ,EAAE,OAAO,qBAAqB;GACtC,SAAS,EAAE,OAAO,2BAA2B;GAC7C,MAAM,EAAE,OAAO,qBAAqB;GACpC,SAAS,EAAE,OAAO,uBAAuB;GACzC,OAAO,EAAE,OAAO,oBAAoB;GACpC,UAAU,EAAE,OAAO,qBAAqB;GACxC,UAAU,EAAE,OAAO,qBAAqB;GACzC;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"semanticTokens.js","names":[],"sources":["../src/semanticTokens.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { defineSemanticTokens } from \"@pandacss/dev\";\n\nexport const semanticTokens = defineSemanticTokens({\n spacing: {\n \"5xsmall\": { value: \"{spacing.1}\" },\n \"4xsmall\": { value: \"{spacing.2}\" },\n \"3xsmall\": { value: \"{spacing.3}\" },\n xxsmall: { value: \"{spacing.4}\" },\n xsmall: { value: \"{spacing.6}\" },\n small: { value: \"{spacing.8}\" },\n medium: { value: \"{spacing.12}\" },\n large: { value: \"{spacing.16}\" },\n xlarge: { value: \"{spacing.18}\" },\n xxlarge: { value: \"{spacing.24}\" },\n \"3xlarge\": { value: \"{spacing.36}\" },\n \"4xlarge\": { value: \"{spacing.48}\" },\n \"5xlarge\": { value: \"{spacing.60}\" },\n surface: {\n \"4xsmall\": { value: \"{spacing.50}\" },\n \"3xsmall\": { value: \"{spacing.75}\" },\n xxsmall: { value: \"{spacing.100}\" },\n xsmall: { value: \"{spacing.150}\" },\n small: { value: \"{spacing.200}\" },\n medium: { value: \"{spacing.250}\" },\n large: { value: \"{spacing.300}\" },\n xlarge: { value: \"{spacing.350}\" },\n xxlarge: { value: \"{spacing.400}\" },\n \"3xlarge\": { value: \"{spacing.500}\" },\n \"4xlarge\": { value: \"{spacing.550}\" },\n },\n },\n sizes: {\n \"5xsmall\": { value: \"{spacing.1}\" },\n \"4xsmall\": { value: \"{spacing.2}\" },\n \"3xsmall\": { value: \"{spacing.3}\" },\n xxsmall: { value: \"{spacing.4}\" },\n xsmall: { value: \"{spacing.6}\" },\n small: { value: \"{spacing.8}\" },\n medium: { value: \"{spacing.12}\" },\n large: { value: \"{spacing.16}\" },\n xlarge: { value: \"{spacing.18}\" },\n xxlarge: { value: \"{spacing.24}\" },\n \"3xlarge\": { value: \"{spacing.36}\" },\n \"4xlarge\": { value: \"{spacing.48}\" },\n \"5xlarge\": { value: \"{spacing.60}\" },\n surface: {\n \"4xsmall\": { value: \"{spacing.50}\" },\n \"3xsmall\": { value: \"{spacing.75}\" },\n xxsmall: { value: \"{spacing.100}\" },\n xsmall: { value: \"{spacing.150}\" },\n small: { value: \"{spacing.200}\" },\n medium: { value: \"{spacing.250}\" },\n large: { value: \"{spacing.300}\" },\n xlarge: { value: \"{spacing.350}\" },\n xxlarge: { value: \"{spacing.400}\" },\n \"3xlarge\": { value: \"{spacing.500}\" },\n \"4xlarge\": { value: \"{spacing.550}\" },\n pageMax: { value: \"1128px\" },\n contentMax: { value: \"744px\" },\n articleMax: { value: \"928px\" },\n wideMax: { value: \"1440px\" },\n },\n },\n colors: {\n background: {\n default: { value: \"{colors.white}\" },\n subtle: { value: \"{colors.grey.100}\" },\n strong: { value: \"{colors.purple.50}\" },\n },\n text: {\n default: { value: \"{colors.grey.950}\" },\n subtle: { value: \"{colors.grey.700}\" },\n strong: { value: \"{colors.primary}\" },\n action: { value: \"{colors.purple.800}\" },\n onAction: { value: \"{colors.white}\" },\n link: { value: \"{colors.blue.800}\" },\n linkVisited: { value: \"{colors.purple.900}\" },\n error: { value: \"{colors.red.600}\" },\n disabled: { value: \"{colors.grey.400}\" },\n },\n icon: {\n default: { value: \"{colors.grey.950}\" },\n strong: { value: \"{colors.primary}\" },\n onAction: { value: \"{colors.white}\" },\n subtle: { value: \"{colors.grey.700}\" },\n warning: { value: \"{colors.yellow.600}\" },\n danger: { value: \"{colors.red.500}\" },\n },\n surface: {\n brand: {\n 1: {\n DEFAULT: { value: \"{colors.purple.500}\" },\n subtle: { value: \"{colors.purple.100}\" },\n moderate: { value: \"{colors.purple.300}\" },\n strong: { value: \"{colors.purple.950}\" },\n },\n 2: {\n DEFAULT: { value: \"{colors.blue.500}\" },\n subtle: { value: \"{colors.blue.50}\" },\n moderate: { value: \"{colors.blue.100}\" },\n bold: { value: \"{colors.blue.800}\" },\n strong: { value: \"{colors.blue.900}\" },\n },\n 3: {\n DEFAULT: { value: \"{colors.lightGreen.500}\" },\n subtle: { value: \"{colors.lightGreen.100}\" },\n moderate: { value: \"{colors.lightGreen.300}\" },\n strong: { value: \"{colors.lightGreen.900}\" },\n },\n 4: {\n DEFAULT: { value: \"{colors.lightYellow.500}\" },\n subtle: { value: \"{colors.lightYellow.100}\" },\n moderate: { value: \"{colors.lightYellow.300}\" },\n strong: { value: \"{colors.lightYellow.1100}\" },\n },\n 5: {\n DEFAULT: { value: \"{colors.pink.500}\" },\n subtle: { value: \"{colors.pink.100}\" },\n moderate: { value: \"{colors.pink.300}\" },\n strong: { value: \"{colors.pink.900}\" },\n },\n },\n default: { value: \"{colors.white}\" },\n hover: { value: \"{colors.purple.alpha.5}\" },\n active: { value: \"{colors.purple.alpha.10}\" },\n selected: { value: \"{colors.purple.200}\" },\n disabled: {\n DEFAULT: { value: \"{colors.grey.200}\" },\n subtle: { value: \"{colors.grey.50}\" },\n strong: { value: \"{colors.grey.700}\" },\n },\n infoSubtle: {\n DEFAULT: { value: \"{colors.grey.100}\" },\n hover: { value: \"{colors.grey.200}\" },\n active: { value: \"{colors.grey.300}\" },\n },\n action: {\n DEFAULT: { value: \"{colors.primary}\" },\n hover: { value: \"{colors.purple.900}\" },\n active: { value: \"{colors.purple.950}\" },\n selected: { value: \"{colors.purple.800}\" },\n myNdla: {\n DEFAULT: { value: \"{colors.lightYellow.300}\" },\n hover: { value: \"{colors.lightYellow.500}\" },\n current: { value: \"{colors.lightYellow.700}\" },\n },\n brand: {\n 1: {\n DEFAULT: { value: \"{colors.purple.50}\" },\n hover: {\n DEFAULT: { value: \"{colors.purple.100}\" },\n strong: { value: \"{colors.purple.400}\" },\n },\n active: { value: \"{colors.purple.300}\" },\n selected: { value: \"{colors.purple.400}\" },\n },\n 2: {\n DEFAULT: { value: \"{colors.blue.50}\" },\n hover: { value: \"{colors.blue.100}\" },\n selected: { value: \"{colors.blue.200}\" },\n },\n },\n },\n actionSubtle: {\n DEFAULT: { value: \"{colors.purple.50}\" },\n hover: {\n DEFAULT: { value: \"{colors.purple.100}\" },\n strong: { value: \"{colors.purple.400}\" },\n },\n active: { value: \"{colors.purple.300}\" },\n selected: { value: \"{colors.purple.900}\" },\n },\n success: {\n DEFAULT: { value: \"{colors.green.500}\" },\n hover: { value: \"{colors.green.700}\" },\n selected: { value: \"{colors.green.900}\" },\n active: { value: \"{colors.green.700}\" },\n },\n successSubtle: {\n DEFAULT: { value: \"{colors.green.50}\" },\n hover: { value: \"{colors.green.100}\" },\n active: { value: \"{colors.green.300}\" },\n },\n warning: {\n DEFAULT: { value: \"{colors.yellow.400}\" },\n hover: { value: \"{colors.yellow.500}\" },\n active: { value: \"{colors.yellow.700}\" },\n },\n warningSubtle: {\n DEFAULT: { value: \"{colors.yellow.50}\" },\n hover: { value: \"{colors.yellow.100}\" },\n active: { value: \"{colors.yellow.200}\" },\n },\n danger: {\n DEFAULT: { value: \"{colors.red.500}\" },\n hover: { value: \"{colors.red.700}\" },\n selected: { value: \"{colors.red.800}\" },\n active: { value: \"{colors.red.900}\" },\n },\n dangerSubtle: {\n DEFAULT: { value: \"{colors.red.50}\" },\n hover: { value: \"{colors.red.100}\" },\n active: { value: \"{colors.red.200}\" },\n },\n error: {\n DEFAULT: { value: \"{colors.pink.500}\" },\n hover: { value: \"{colors.pink.700}\" },\n active: { value: \"{colors.pink.900}\" },\n },\n errorSubtle: {\n DEFAULT: { value: \"{colors.red.50}\" },\n hover: { value: \"{colors.pink.100}\" },\n active: { value: \"{colors.pink.200}\" },\n },\n subtle: {\n DEFAULT: { value: \"{colors.grey.50}\" },\n selected: { value: \"{colors.grey.100}\" },\n },\n },\n stroke: {\n default: { value: \"{colors.primary}\" },\n hover: { value: \"{colors.purple.800}\" },\n subtle: { value: \"{colors.grey.500}\" },\n success: { value: \"{colors.lightGreen.900}\" },\n info: { value: \"{colors.grey.500}\" },\n warning: { value: \"{colors.yellow.600}\" },\n error: { value: \"{colors.red.600}\" },\n disabled: { value: \"{colors.grey.300}\" },\n discrete: { value: \"{colors.grey.300}\" },\n },\n },\n});\n"],"mappings":";;;;;;;;AAUA,MAAa,kBAAA,4BAAA,sBAAsC;CACjD,SAAS;EACP,WAAW,EAAE,OAAO,eAAe;EACnC,WAAW,EAAE,OAAO,eAAe;EACnC,WAAW,EAAE,OAAO,eAAe;EACnC,SAAS,EAAE,OAAO,eAAe;EACjC,QAAQ,EAAE,OAAO,eAAe;EAChC,OAAO,EAAE,OAAO,eAAe;EAC/B,QAAQ,EAAE,OAAO,gBAAgB;EACjC,OAAO,EAAE,OAAO,gBAAgB;EAChC,QAAQ,EAAE,OAAO,gBAAgB;EACjC,SAAS,EAAE,OAAO,gBAAgB;EAClC,WAAW,EAAE,OAAO,gBAAgB;EACpC,WAAW,EAAE,OAAO,gBAAgB;EACpC,WAAW,EAAE,OAAO,gBAAgB;EACpC,SAAS;GACP,WAAW,EAAE,OAAO,gBAAgB;GACpC,WAAW,EAAE,OAAO,g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C;GACF;EACD,QAAQ;GACN,SAAS,EAAE,OAAO,oBAAoB;GACtC,OAAO,EAAE,OAAO,uBAAuB;GACvC,QAAQ,EAAE,OAAO,qBAAqB;GACtC,SAAS,EAAE,OAAO,2BAA2B;GAC7C,MAAM,EAAE,OAAO,qBAAqB;GACpC,SAAS,EAAE,OAAO,uBAAuB;GACzC,OAAO,EAAE,OAAO,oBAAoB;GACpC,UAAU,EAAE,OAAO,qBAAqB;GACxC,UAAU,EAAE,OAAO,qBAAqB;GACzC;EACF;CACF,CAAC"}
package/lib/spacing.js CHANGED
@@ -1,5 +1,3 @@
1
- let _pandacss_dev = require("@pandacss/dev");
2
-
3
1
  //#region src/spacing.ts
4
2
  /**
5
3
  * Copyright (c) 2024-present, NDLA.
@@ -8,7 +6,7 @@ let _pandacss_dev = require("@pandacss/dev");
8
6
  * LICENSE file in the root directory of this source tree.
9
7
  *
10
8
  */
11
- const spacing = _pandacss_dev.defineTokens.spacing({
9
+ const spacing = require("@pandacss/dev").defineTokens.spacing({
12
10
  1: { value: "2px" },
13
11
  2: { value: "4px" },
14
12
  3: { value: "6px" },
@@ -52,7 +50,7 @@ const spacing = _pandacss_dev.defineTokens.spacing({
52
50
  500: { value: "1000px" },
53
51
  550: { value: "1100px" }
54
52
  });
55
-
56
53
  //#endregion
57
54
  exports.spacing = spacing;
55
+
58
56
  //# sourceMappingURL=spacing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spacing.js","names":["defineTokens"],"sources":["../src/spacing.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { defineTokens } from \"@pandacss/dev\";\n\nexport const spacing = defineTokens.spacing({\n 1: { value: \"2px\" },\n 2: { value: \"4px\" },\n 3: { value: \"6px\" },\n 4: { value: \"8px\" },\n 5: { value: \"10px\" },\n 6: { value: \"12px\" },\n 7: { value: \"14px\" },\n 8: { value: \"16px\" },\n 9: { value: \"18px\" },\n 10: { value: \"20px\" },\n 11: { value: \"22px\" },\n 12: { value: \"24px\" },\n 13: { value: \"26px\" },\n 14: { value: \"28px\" },\n 15: { value: \"30px\" },\n 16: { value: \"32px\" },\n 17: { value: \"34px\" },\n 18: { value: \"36px\" },\n 19: { value: \"38px\" },\n 20: { value: \"40px\" },\n 22: { value: \"44px\" },\n 24: { value: \"48px\" },\n 26: { value: \"52px\" },\n 28: { value: \"56px\" },\n 32: { value: \"64px\" },\n 36: { value: \"72px\" },\n 40: { value: \"80px\" },\n 44: { value: \"88px\" },\n 48: { value: \"96px\" },\n 50: { value: \"100px\" },\n 60: { value: \"120px\" },\n 72: { value: \"144px\" },\n 75: { value: \"150px\" },\n 100: { value: \"200px\" },\n 150: { value: \"300px\" },\n 200: { value: \"400px\" },\n 250: { value: \"500px\" },\n 300: { value: \"600px\" },\n 350: { value: \"700px\" },\n 400: { value: \"800px\" },\n 500: { value: \"1000px\" },\n 550: { value: \"1100px\" },\n});\n"],"mappings":";;;;;;;;;;AAUA,MAAa,UAAUA,2BAAa,QAAQ;CAC1C,GAAG,EAAE,OAAO,OAAO;CACnB,GAAG,EAAE,OAAO,OAAO;CACnB,GAAG,EAAE,OAAO,OAAO;CACnB,GAAG,EAAE,OAAO,OAAO;CACnB,GAAG,EAAE,OAAO,QAAQ;CACpB,GAAG,EAAE,OAAO,QAAQ;CACpB,GAAG,EAAE,OAAO,QAAQ;CACpB,GAAG,EAAE,OAAO,QAAQ;CACpB,GAAG,EAAE,OAAO,QAAQ;CACpB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,SAAS;CACtB,IAAI,EAAE,OAAO,SAAS;CACtB,IAAI,EAAE,OAAO,SAAS;CACtB,IAAI,EAAE,OAAO,SAAS;CACtB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,UAAU;CACxB,KAAK,EAAE,OAAO,UAAU;CACzB,CAAC"}
1
+ {"version":3,"file":"spacing.js","names":["defineTokens"],"sources":["../src/spacing.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { defineTokens } from \"@pandacss/dev\";\n\nexport const spacing = defineTokens.spacing({\n 1: { value: \"2px\" },\n 2: { value: \"4px\" },\n 3: { value: \"6px\" },\n 4: { value: \"8px\" },\n 5: { value: \"10px\" },\n 6: { value: \"12px\" },\n 7: { value: \"14px\" },\n 8: { value: \"16px\" },\n 9: { value: \"18px\" },\n 10: { value: \"20px\" },\n 11: { value: \"22px\" },\n 12: { value: \"24px\" },\n 13: { value: \"26px\" },\n 14: { value: \"28px\" },\n 15: { value: \"30px\" },\n 16: { value: \"32px\" },\n 17: { value: \"34px\" },\n 18: { value: \"36px\" },\n 19: { value: \"38px\" },\n 20: { value: \"40px\" },\n 22: { value: \"44px\" },\n 24: { value: \"48px\" },\n 26: { value: \"52px\" },\n 28: { value: \"56px\" },\n 32: { value: \"64px\" },\n 36: { value: \"72px\" },\n 40: { value: \"80px\" },\n 44: { value: \"88px\" },\n 48: { value: \"96px\" },\n 50: { value: \"100px\" },\n 60: { value: \"120px\" },\n 72: { value: \"144px\" },\n 75: { value: \"150px\" },\n 100: { value: \"200px\" },\n 150: { value: \"300px\" },\n 200: { value: \"400px\" },\n 250: { value: \"500px\" },\n 300: { value: \"600px\" },\n 350: { value: \"700px\" },\n 400: { value: \"800px\" },\n 500: { value: \"1000px\" },\n 550: { value: \"1100px\" },\n});\n"],"mappings":";;;;;;;;AAUA,MAAa,mCAAUA,aAAa,QAAQ;CAC1C,GAAG,EAAE,OAAO,OAAO;CACnB,GAAG,EAAE,OAAO,OAAO;CACnB,GAAG,EAAE,OAAO,OAAO;CACnB,GAAG,EAAE,OAAO,OAAO;CACnB,GAAG,EAAE,OAAO,QAAQ;CACpB,GAAG,EAAE,OAAO,QAAQ;CACpB,GAAG,EAAE,OAAO,QAAQ;CACpB,GAAG,EAAE,OAAO,QAAQ;CACpB,GAAG,EAAE,OAAO,QAAQ;CACpB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,QAAQ;CACrB,IAAI,EAAE,OAAO,SAAS;CACtB,IAAI,EAAE,OAAO,SAAS;CACtB,IAAI,EAAE,OAAO,SAAS;CACtB,IAAI,EAAE,OAAO,SAAS;CACtB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,SAAS;CACvB,KAAK,EAAE,OAAO,UAAU;CACxB,KAAK,EAAE,OAAO,UAAU;CACzB,CAAC"}
package/lib/typography.js CHANGED
@@ -1,5 +1,4 @@
1
1
  let _pandacss_dev = require("@pandacss/dev");
2
-
3
2
  //#region src/typography.ts
4
3
  const fontWeights = _pandacss_dev.defineTokens.fontWeights({
5
4
  light: { value: 300 },
@@ -80,7 +79,8 @@ const textStyles = (0, _pandacss_dev.defineTextStyles)({
80
79
  fontWeight: "bold",
81
80
  letterSpacing: "-0.01em",
82
81
  ...sizes("4xlarge", "4xlarge"),
83
- mobileWideDown: { ...sizes("3xlarge", "3xlarge") }
82
+ mobileWideDown: { ...sizes("3xlarge", "3xlarge") },
83
+ _print: { ...sizes("3xlarge", "3xlarge") }
84
84
  } },
85
85
  medium: { value: {
86
86
  fontFamily: "sans",
@@ -90,14 +90,16 @@ const textStyles = (0, _pandacss_dev.defineTextStyles)({
90
90
  mobileWideDown: {
91
91
  letterSpacing: "-0.01em",
92
92
  ...sizes("xxlarge", "xxlarge")
93
- }
93
+ },
94
+ _print: { ...sizes("xxlarge", "xxlarge") }
94
95
  } },
95
96
  small: { value: {
96
97
  fontFamily: "sans",
97
98
  fontWeight: "bold",
98
99
  letterSpacing: "-0.01em",
99
100
  ...sizes("xxlarge", "xxlarge"),
100
- mobileWideDown: { ...sizes("xlarge", "xlarge") }
101
+ mobileWideDown: { ...sizes("xlarge", "xlarge") },
102
+ _print: { ...sizes("xlarge", "xlarge") }
101
103
  } }
102
104
  },
103
105
  title: {
@@ -106,20 +108,23 @@ const textStyles = (0, _pandacss_dev.defineTextStyles)({
106
108
  fontWeight: "bold",
107
109
  letterSpacing: "-0.01em",
108
110
  ...sizes("xlarge", "xlarge"),
109
- mobileWideDown: { ...sizes("large", "large") }
111
+ mobileWideDown: { ...sizes("large", "large") },
112
+ _print: { ...sizes("large", "large") }
110
113
  } },
111
114
  medium: { value: {
112
115
  fontFamily: "sans",
113
116
  fontWeight: "bold",
114
117
  letterSpacing: "-0.01em",
115
118
  ...sizes("large", "large"),
116
- mobileWideDown: { ...sizes("medium", "small") }
119
+ mobileWideDown: { ...sizes("medium", "small") },
120
+ _print: { ...sizes("medium", "medium") }
117
121
  } },
118
122
  small: { value: {
119
123
  fontFamily: "sans",
120
124
  fontWeight: "bold",
121
125
  letterSpacing: "-0.01em",
122
- ...sizes("medium", "small")
126
+ ...sizes("medium", "small"),
127
+ _print: { ...sizes("small", "small") }
123
128
  } }
124
129
  },
125
130
  body: {
@@ -127,25 +132,29 @@ const textStyles = (0, _pandacss_dev.defineTextStyles)({
127
132
  fontFamily: "serif",
128
133
  fontWeight: "normal",
129
134
  letterSpacing: "normal",
130
- ...sizes("medium", "medium")
135
+ ...sizes("medium", "medium"),
136
+ _print: { ...sizes("small", "small") }
131
137
  } },
132
138
  articleLink: { value: {
133
139
  fontFamily: "serif",
134
140
  fontWeight: "normal",
135
141
  letterSpacing: "normal",
136
- ...sizes("medium", "medium")
142
+ ...sizes("medium", "medium"),
143
+ _print: { ...sizes("small", "small") }
137
144
  } },
138
145
  link: { value: {
139
146
  fontFamily: "sans",
140
147
  fontWeight: "normal",
141
148
  letterSpacing: "normal",
142
- ...sizes("medium", "medium")
149
+ ...sizes("medium", "medium"),
150
+ _print: { ...sizes("small", "small") }
143
151
  } },
144
152
  xlarge: { value: {
145
153
  fontFamily: "sans",
146
154
  fontWeight: "normal",
147
155
  letterSpacing: "normal",
148
- ...sizes("large", "large")
156
+ ...sizes("large", "large"),
157
+ _print: { ...sizes("medium", "xsmall") }
149
158
  } },
150
159
  large: { value: {
151
160
  fontFamily: "sans",
@@ -157,13 +166,15 @@ const textStyles = (0, _pandacss_dev.defineTextStyles)({
157
166
  fontFamily: "sans",
158
167
  fontWeight: "normal",
159
168
  letterSpacing: "normal",
160
- ...sizes("small", "small")
169
+ ...sizes("small", "small"),
170
+ _print: { ...sizes("xsmall", "xsmall") }
161
171
  } },
162
172
  small: { value: {
163
173
  fontFamily: "sans",
164
174
  fontWeight: "normal",
165
175
  letterSpacing: "normal",
166
- ...sizes("xsmall", "xsmall")
176
+ ...sizes("xsmall", "xsmall"),
177
+ _print: { ...sizes("xxsmall", "xsmall") }
167
178
  } }
168
179
  },
169
180
  label: {
@@ -172,40 +183,45 @@ const textStyles = (0, _pandacss_dev.defineTextStyles)({
172
183
  fontFamily: "sans",
173
184
  fontWeight: "normal",
174
185
  letterSpacing: "normal",
175
- ...sizes("medium", "medium")
186
+ ...sizes("medium", "medium"),
187
+ _print: { ...sizes("small", "small") }
176
188
  },
177
189
  strong: { value: {
178
190
  fontFamily: "sans",
179
191
  fontWeight: "bold",
180
192
  letterSpacing: "normal",
181
- ...sizes("medium", "medium")
193
+ ...sizes("medium", "medium"),
194
+ _print: { ...sizes("small", "small") }
182
195
  } }
183
196
  },
184
197
  medium: { value: {
185
198
  fontFamily: "sans",
186
199
  fontWeight: "normal",
187
200
  letterSpacing: "normal",
188
- ...sizes("small", "small")
201
+ ...sizes("small", "small"),
202
+ _print: { ...sizes("xsmall", "xsmall") }
189
203
  } },
190
204
  small: { value: {
191
205
  fontFamily: "sans",
192
206
  fontWeight: "normal",
193
207
  letterSpacing: "normal",
194
- ...sizes("xsmall", "xsmall")
208
+ ...sizes("xsmall", "xsmall"),
209
+ _print: { ...sizes("xxsmall", "xsmall") }
195
210
  } },
196
211
  xsmall: { value: {
197
212
  fontFamily: "sans",
198
213
  fontWeight: "normal",
199
214
  letterSpacing: "normal",
200
- ...sizes("xxsmall", "xxsmall")
215
+ ...sizes("xxsmall", "xxsmall"),
216
+ _print: { ...sizes("xxsmall", "xxsmall") }
201
217
  } }
202
218
  }
203
219
  });
204
-
205
220
  //#endregion
206
221
  exports.fontSizes = fontSizes;
207
222
  exports.fontWeights = fontWeights;
208
223
  exports.fonts = fonts;
209
224
  exports.lineHeights = lineHeights;
210
225
  exports.textStyles = textStyles;
226
+
211
227
  //# sourceMappingURL=typography.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.js","names":["defineTokens"],"sources":["../src/typography.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { FontSizeToken, LineHeightToken } from \"@ndla/styled-system/tokens\";\nimport { defineTextStyles, defineTokens } from \"@pandacss/dev\";\n\nexport const fontWeights = defineTokens.fontWeights({\n light: { value: 300 },\n normal: { value: 400 },\n semibold: { value: 600 },\n bold: { value: 670 },\n});\n\nexport const fonts = defineTokens.fonts({\n sans: {\n value: [\n \"Satoshi\",\n \"Helvetica\",\n \"Arial\",\n \"STKaiti\",\n \"'华文楷体'\",\n \"KaiTi\",\n \"SimKai\",\n \"'楷体'\",\n \"KaiU\",\n \"DFKai-SB\",\n \"'標楷體'\",\n \"SongTi\",\n \"'宋体'\",\n \"sans-serif\",\n ],\n },\n serif: {\n value: [\n \"'Source Serif 4 Variable'\",\n \"Times\",\n \"STKaiti\",\n \"'华文楷体'\",\n \"KaiTi\",\n \"SimKai\",\n \"'楷体'\",\n \"KaiU\",\n \"DFKai-SB\",\n \"'標楷體'\",\n \"SongTi\",\n \"'宋体'\",\n \"serif\",\n ],\n },\n code: {\n value: [\"'Source Code Pro Variable'\", \"Monaco\"],\n },\n});\n\nexport const fontSizes = defineTokens.fontSizes({\n // 12px\n xxsmall: { value: \"0.75rem\" },\n // 14px\n xsmall: { value: \"0.875rem\" },\n // 16px\n small: { value: \"1rem\" },\n // 18px\n medium: { value: \"1.125rem\" },\n // 22px\n large: { value: \"1.375rem\" },\n // 26px\n xlarge: { value: \"1.625rem\" },\n // 30px\n xxlarge: { value: \"1.875rem\" },\n // 38px\n \"3xlarge\": { value: \"2.375rem\" },\n // 48px\n \"4xlarge\": { value: \"3rem\" },\n});\n\nexport const lineHeights = defineTokens.lineHeights({\n xxsmall: { value: \"0.75rem\" },\n xsmall: { value: \"1.375rem\" },\n small: { value: \"1.5rem\" },\n medium: { value: \"1.75rem\" },\n large: { value: \"1.875rem\" },\n xlarge: { value: \"2.25rem\" },\n xxlarge: { value: \"2.375rem\" },\n \"3xlarge\": { value: \"3rem\" },\n \"4xlarge\": { value: \"3.75rem\" },\n});\n\nconst sizes = (size: FontSizeToken, lineHeight: LineHeightToken) => {\n return {\n fontSize: size,\n lineHeight,\n _chinese: {\n fontSize: `calc(token(fontSizes.${size}) * 1.11)`,\n lineHeight: `calc(token(lineHeights.${lineHeight}) * 1.11)`,\n },\n };\n};\n\nexport const textStyles = defineTextStyles({\n heading: {\n large: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"4xlarge\", \"4xlarge\"),\n mobileWideDown: {\n ...sizes(\"3xlarge\", \"3xlarge\"),\n },\n },\n },\n medium: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"3xlarge\", \"3xlarge\"),\n mobileWideDown: {\n letterSpacing: \"-0.01em\",\n ...sizes(\"xxlarge\", \"xxlarge\"),\n },\n },\n },\n small: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"xxlarge\", \"xxlarge\"),\n mobileWideDown: {\n ...sizes(\"xlarge\", \"xlarge\"),\n },\n },\n },\n },\n title: {\n large: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"xlarge\", \"xlarge\"),\n mobileWideDown: {\n ...sizes(\"large\", \"large\"),\n },\n },\n },\n medium: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"large\", \"large\"),\n mobileWideDown: {\n ...sizes(\"medium\", \"small\"),\n },\n },\n },\n small: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"medium\", \"small\"),\n },\n },\n },\n body: {\n article: {\n value: {\n fontFamily: \"serif\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n },\n },\n articleLink: {\n value: {\n fontFamily: \"serif\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n },\n },\n link: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n },\n },\n xlarge: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"large\", \"large\"),\n },\n },\n large: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n },\n },\n medium: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"small\", \"small\"),\n },\n },\n small: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"xsmall\", \"xsmall\"),\n },\n },\n },\n label: {\n large: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n },\n strong: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n },\n },\n },\n medium: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"small\", \"small\"),\n },\n },\n small: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"xsmall\", \"xsmall\"),\n },\n },\n xsmall: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"xxsmall\", \"xxsmall\"),\n },\n },\n },\n});\n"],"mappings":";;;AAWA,MAAa,cAAcA,2BAAa,YAAY;CAClD,OAAO,EAAE,OAAO,KAAK;CACrB,QAAQ,EAAE,OAAO,KAAK;CACtB,UAAU,EAAE,OAAO,KAAK;CACxB,MAAM,EAAE,OAAO,KAAK;CACrB,CAAC;AAEF,MAAa,QAAQA,2BAAa,MAAM;CACtC,MAAM,EACJ,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,EACF;CACD,OAAO,EACL,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,EACF;CACD,MAAM,EACJ,OAAO,CAAC,8BAA8B,SAAS,EAChD;CACF,CAAC;AAEF,MAAa,YAAYA,2BAAa,UAAU;CAE9C,SAAS,EAAE,OAAO,WAAW;CAE7B,QAAQ,EAAE,OAAO,YAAY;CAE7B,OAAO,EAAE,OAAO,QAAQ;CAExB,QAAQ,EAAE,OAAO,YAAY;CAE7B,OAAO,EAAE,OAAO,YAAY;CAE5B,QAAQ,EAAE,OAAO,YAAY;CAE7B,SAAS,EAAE,OAAO,YAAY;CAE9B,WAAW,EAAE,OAAO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GACZ,YAAY;GACZ,eAAe;GACf,GAAG,MAAM,UAAU,SAAS;GAC7B,EACF;EACD,QAAQ,EACN,OAAO;GACL,YAAY;GACZ,YAAY;GACZ,eAAe;GACf,GAAG,MAAM,WAAW,UAAU;GAC/B,EACF;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"typography.js","names":["defineTokens"],"sources":["../src/typography.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { FontSizeToken, LineHeightToken } from \"@ndla/styled-system/tokens\";\nimport { defineTextStyles, defineTokens } from \"@pandacss/dev\";\n\nexport const fontWeights = defineTokens.fontWeights({\n light: { value: 300 },\n normal: { value: 400 },\n semibold: { value: 600 },\n bold: { value: 670 },\n});\n\nexport const fonts = defineTokens.fonts({\n sans: {\n value: [\n \"Satoshi\",\n \"Helvetica\",\n \"Arial\",\n \"STKaiti\",\n \"'华文楷体'\",\n \"KaiTi\",\n \"SimKai\",\n \"'楷体'\",\n \"KaiU\",\n \"DFKai-SB\",\n \"'標楷體'\",\n \"SongTi\",\n \"'宋体'\",\n \"sans-serif\",\n ],\n },\n serif: {\n value: [\n \"'Source Serif 4 Variable'\",\n \"Times\",\n \"STKaiti\",\n \"'华文楷体'\",\n \"KaiTi\",\n \"SimKai\",\n \"'楷体'\",\n \"KaiU\",\n \"DFKai-SB\",\n \"'標楷體'\",\n \"SongTi\",\n \"'宋体'\",\n \"serif\",\n ],\n },\n code: {\n value: [\"'Source Code Pro Variable'\", \"Monaco\"],\n },\n});\n\nexport const fontSizes = defineTokens.fontSizes({\n // 12px\n xxsmall: { value: \"0.75rem\" },\n // 14px\n xsmall: { value: \"0.875rem\" },\n // 16px\n small: { value: \"1rem\" },\n // 18px\n medium: { value: \"1.125rem\" },\n // 22px\n large: { value: \"1.375rem\" },\n // 26px\n xlarge: { value: \"1.625rem\" },\n // 30px\n xxlarge: { value: \"1.875rem\" },\n // 38px\n \"3xlarge\": { value: \"2.375rem\" },\n // 48px\n \"4xlarge\": { value: \"3rem\" },\n});\n\nexport const lineHeights = defineTokens.lineHeights({\n xxsmall: { value: \"0.75rem\" },\n xsmall: { value: \"1.375rem\" },\n small: { value: \"1.5rem\" },\n medium: { value: \"1.75rem\" },\n large: { value: \"1.875rem\" },\n xlarge: { value: \"2.25rem\" },\n xxlarge: { value: \"2.375rem\" },\n \"3xlarge\": { value: \"3rem\" },\n \"4xlarge\": { value: \"3.75rem\" },\n});\n\nconst sizes = (size: FontSizeToken, lineHeight: LineHeightToken) => {\n return {\n fontSize: size,\n lineHeight,\n _chinese: {\n fontSize: `calc(token(fontSizes.${size}) * 1.11)`,\n lineHeight: `calc(token(lineHeights.${lineHeight}) * 1.11)`,\n },\n };\n};\n\nexport const textStyles = defineTextStyles({\n heading: {\n large: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"4xlarge\", \"4xlarge\"),\n mobileWideDown: {\n ...sizes(\"3xlarge\", \"3xlarge\"),\n },\n _print: {\n ...sizes(\"3xlarge\", \"3xlarge\"),\n },\n },\n },\n medium: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"3xlarge\", \"3xlarge\"),\n mobileWideDown: {\n letterSpacing: \"-0.01em\",\n ...sizes(\"xxlarge\", \"xxlarge\"),\n },\n _print: {\n ...sizes(\"xxlarge\", \"xxlarge\"),\n },\n },\n },\n small: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"xxlarge\", \"xxlarge\"),\n mobileWideDown: {\n ...sizes(\"xlarge\", \"xlarge\"),\n },\n _print: {\n ...sizes(\"xlarge\", \"xlarge\"),\n },\n },\n },\n },\n title: {\n large: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"xlarge\", \"xlarge\"),\n mobileWideDown: {\n ...sizes(\"large\", \"large\"),\n },\n _print: {\n ...sizes(\"large\", \"large\"),\n },\n },\n },\n medium: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"large\", \"large\"),\n mobileWideDown: {\n ...sizes(\"medium\", \"small\"),\n },\n _print: {\n ...sizes(\"medium\", \"medium\"),\n },\n },\n },\n small: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"-0.01em\",\n ...sizes(\"medium\", \"small\"),\n _print: {\n ...sizes(\"small\", \"small\"),\n },\n },\n },\n },\n body: {\n article: {\n value: {\n fontFamily: \"serif\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n _print: {\n ...sizes(\"small\", \"small\"),\n },\n },\n },\n articleLink: {\n value: {\n fontFamily: \"serif\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n _print: {\n ...sizes(\"small\", \"small\"),\n },\n },\n },\n link: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n _print: {\n ...sizes(\"small\", \"small\"),\n },\n },\n },\n xlarge: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"large\", \"large\"),\n _print: {\n ...sizes(\"medium\", \"xsmall\"),\n },\n },\n },\n large: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n // print size is same as regular size\n },\n },\n medium: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"small\", \"small\"),\n _print: {\n ...sizes(\"xsmall\", \"xsmall\"),\n },\n },\n },\n small: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"xsmall\", \"xsmall\"),\n _print: {\n ...sizes(\"xxsmall\", \"xsmall\"),\n },\n },\n },\n },\n label: {\n large: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n _print: {\n ...sizes(\"small\", \"small\"),\n },\n },\n strong: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"bold\",\n letterSpacing: \"normal\",\n ...sizes(\"medium\", \"medium\"),\n _print: {\n ...sizes(\"small\", \"small\"),\n },\n },\n },\n },\n medium: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"small\", \"small\"),\n _print: {\n ...sizes(\"xsmall\", \"xsmall\"),\n },\n },\n },\n small: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"xsmall\", \"xsmall\"),\n _print: {\n ...sizes(\"xxsmall\", \"xsmall\"),\n },\n },\n },\n xsmall: {\n value: {\n fontFamily: \"sans\",\n fontWeight: \"normal\",\n letterSpacing: \"normal\",\n ...sizes(\"xxsmall\", \"xxsmall\"),\n _print: {\n ...sizes(\"xxsmall\", \"xxsmall\"),\n },\n },\n },\n },\n});\n"],"mappings":";;AAWA,MAAa,cAAcA,cAAAA,aAAa,YAAY;CAClD,OAAO,EAAE,OAAO,KAAK;CACrB,QAAQ,EAAE,OAAO,KAAK;CACtB,UAAU,EAAE,OAAO,KAAK;CACxB,MAAM,EAAE,OAAO,KAAK;CACrB,CAAC;AAEF,MAAa,QAAQA,cAAAA,aAAa,MAAM;CACtC,MAAM,EACJ,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,EACF;CACD,OAAO,EACL,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,EACF;C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O;GACL,YAAY;GACZ,YAAY;GACZ,eAAe;GACf,GAAG,MAAM,WAAW,UAAU;GAC9B,QAAQ,EACN,GAAG,MAAM,WAAW,UAAU,EAC/B;GACF,EACF;EACF;CACF,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2024-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import type { UtilityConfig } from "@pandacss/types";
9
+ export declare const utilities: UtilityConfig;
@@ -0,0 +1,12 @@
1
+ //#region src/utilities.ts
2
+ const utilities = { textDecoration: { transform(value) {
3
+ if (value === "underline") return {
4
+ textDecoration: value,
5
+ textDecorationThickness: "max(0.0625em, 1px)"
6
+ };
7
+ return { textDecoration: value };
8
+ } } };
9
+ //#endregion
10
+ exports.utilities = utilities;
11
+
12
+ //# sourceMappingURL=utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.js","names":[],"sources":["../src/utilities.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { UtilityConfig } from \"@pandacss/types\";\n\nexport const utilities: UtilityConfig = {\n textDecoration: {\n transform(value: string) {\n if (value === \"underline\") {\n return {\n textDecoration: value,\n // thickness is overridden if you only specify `textDecoration: \"underline\"`.\n textDecorationThickness: \"max(0.0625em, 1px)\",\n };\n }\n return { textDecoration: value };\n },\n },\n};\n"],"mappings":";AAUA,MAAa,YAA2B,EACtC,gBAAgB,EACd,UAAU,OAAe;AACvB,KAAI,UAAU,YACZ,QAAO;EACL,gBAAgB;EAEhB,yBAAyB;EAC1B;AAEH,QAAO,EAAE,gBAAgB,OAAO;GAEnC,EACF"}
package/lib/zIndex.js CHANGED
@@ -1,5 +1,3 @@
1
- let _pandacss_dev = require("@pandacss/dev");
2
-
3
1
  //#region src/zIndex.ts
4
2
  /**
5
3
  * Copyright (c) 2024-present, NDLA.
@@ -8,7 +6,7 @@ let _pandacss_dev = require("@pandacss/dev");
8
6
  * LICENSE file in the root directory of this source tree.
9
7
  *
10
8
  */
11
- const zIndex = _pandacss_dev.defineTokens.zIndex({
9
+ const zIndex = require("@pandacss/dev").defineTokens.zIndex({
12
10
  hide: { value: -1 },
13
11
  base: { value: 0 },
14
12
  docked: { value: 10 },
@@ -24,7 +22,7 @@ const zIndex = _pandacss_dev.defineTokens.zIndex({
24
22
  toast: { value: 1900 },
25
23
  tooltip: { value: 2e3 }
26
24
  });
27
-
28
25
  //#endregion
29
26
  exports.zIndex = zIndex;
27
+
30
28
  //# sourceMappingURL=zIndex.js.map
package/lib/zIndex.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"zIndex.js","names":["defineTokens"],"sources":["../src/zIndex.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { defineTokens } from \"@pandacss/dev\";\n\nexport const zIndex = defineTokens.zIndex({\n hide: {\n value: -1,\n },\n base: {\n value: 0,\n },\n docked: {\n value: 10,\n },\n dropdown: {\n value: 1000,\n },\n sticky: {\n value: 1100,\n },\n banner: {\n value: 1200,\n },\n overlay: {\n value: 1300,\n },\n modal: {\n value: 1400,\n },\n alertModalOverlay: {\n value: 1500,\n },\n alertModal: {\n value: 1600,\n },\n popover: {\n value: 1700,\n },\n skipLink: {\n value: 1800,\n },\n toast: {\n value: 1900,\n },\n tooltip: {\n value: 2000,\n },\n});\n"],"mappings":";;;;;;;;;;AAUA,MAAa,SAASA,2BAAa,OAAO;CACxC,MAAM,EACJ,OAAO,IACR;CACD,MAAM,EACJ,OAAO,GACR;CACD,QAAQ,EACN,OAAO,IACR;CACD,UAAU,EACR,OAAO,KACR;CACD,QAAQ,EACN,OAAO,MACR;CACD,QAAQ,EACN,OAAO,MACR;CACD,SAAS,EACP,OAAO,MACR;CACD,OAAO,EACL,OAAO,MACR;CACD,mBAAmB,EACjB,OAAO,MACR;CACD,YAAY,EACV,OAAO,MACR;CACD,SAAS,EACP,OAAO,MACR;CACD,UAAU,EACR,OAAO,MACR;CACD,OAAO,EACL,OAAO,MACR;CACD,SAAS,EACP,OAAO,KACR;CACF,CAAC"}
1
+ {"version":3,"file":"zIndex.js","names":["defineTokens"],"sources":["../src/zIndex.ts"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { defineTokens } from \"@pandacss/dev\";\n\nexport const zIndex = defineTokens.zIndex({\n hide: {\n value: -1,\n },\n base: {\n value: 0,\n },\n docked: {\n value: 10,\n },\n dropdown: {\n value: 1000,\n },\n sticky: {\n value: 1100,\n },\n banner: {\n value: 1200,\n },\n overlay: {\n value: 1300,\n },\n modal: {\n value: 1400,\n },\n alertModalOverlay: {\n value: 1500,\n },\n alertModal: {\n value: 1600,\n },\n popover: {\n value: 1700,\n },\n skipLink: {\n value: 1800,\n },\n toast: {\n value: 1900,\n },\n tooltip: {\n value: 2000,\n },\n});\n"],"mappings":";;;;;;;;AAUA,MAAa,kCAASA,aAAa,OAAO;CACxC,MAAM,EACJ,OAAO,IACR;CACD,MAAM,EACJ,OAAO,GACR;CACD,QAAQ,EACN,OAAO,IACR;CACD,UAAU,EACR,OAAO,KACR;CACD,QAAQ,EACN,OAAO,MACR;CACD,QAAQ,EACN,OAAO,MACR;CACD,SAAS,EACP,OAAO,MACR;CACD,OAAO,EACL,OAAO,MACR;CACD,mBAAmB,EACjB,OAAO,MACR;CACD,YAAY,EACV,OAAO,MACR;CACD,SAAS,EACP,OAAO,MACR;CACD,UAAU,EACR,OAAO,MACR;CACD,OAAO,EACL,OAAO,MACR;CACD,SAAS,EACP,OAAO,KACR;CACF,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ndla/preset-panda",
3
3
  "type": "module",
4
- "version": "0.0.74",
4
+ "version": "0.0.76",
5
5
  "description": "Panda preset for NDLA.",
6
6
  "license": "GPL-3.0",
7
7
  "exports": {
@@ -36,10 +36,10 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@ndla/core": "^6.0.7-alpha.0",
39
- "@pandacss/dev": "^1.7.0"
39
+ "@pandacss/dev": "^1.10.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "5a5db230dd4f95c573df293e0701a4962495c4d5"
44
+ "gitHead": "f8a73392a71c05f052f6cc69d55ca57c38e0db5b"
45
45
  }