@cryptlex/web-components 6.6.6-alpha82 → 6.6.6-alpha84
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/dist/shiki-theme.d.ts +2 -0
- package/dist/shiki-theme.js +2 -0
- package/dist/shiki-theme.js.map +1 -0
- package/lib/index.css +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e={bg:"var(--color-elevation-2)",bgSubtle:"var(--color-elevation-1)",fg:"var(--color-foreground)",comment:"var(--color-muted-foreground)",keyword:"var(--color-primary-9)",importExport:"var(--color-primary-7)",operator:"var(--color-primary-6)",thisSuper:"var(--color-primary-8)",string:"var(--color-success-8)",stringTemplate:"var(--color-success-7)",regex:"var(--color-destructive-7)",constant:"var(--color-secondary-9)",function:"var(--color-primary-8)",typeClass:"var(--color-secondary-9)",typeAnnotation:"var(--color-secondary-7)",typeParam:"var(--color-secondary-6)",enumMember:"var(--color-secondary-8)",namespace:"var(--color-secondary-7)",decorator:"var(--color-secondary-9)",variable:"var(--color-foreground)",property:"var(--color-secondary-6)",punctuation:"var(--color-muted)",punctuationLight:"var(--color-muted-foreground)",tag:"var(--color-primary-8)",attribute:"var(--color-secondary-5)",cssProperty:"var(--color-primary-7)",cssValue:"var(--color-success-7)",cssVariable:"var(--color-secondary-6)",invalid:"var(--color-destructive-7)"},o={name:"shiki-theme",settings:[{settings:{background:e.bg,foreground:e.fg}},{scope:["comment","punctuation.definition.comment","string.comment"],settings:{foreground:e.comment,fontStyle:"italic"}},{scope:["keyword","keyword.control","keyword.control.flow","keyword.control.conditional","keyword.control.loop","keyword.operator.new","keyword.other","storage.type","storage.modifier"],settings:{foreground:e.keyword}},{scope:["keyword.control.import","keyword.control.export","keyword.control.from","keyword.control.as"],settings:{foreground:e.importExport}},{scope:["keyword.operator","keyword.operator.assignment","keyword.operator.comparison","keyword.operator.logical","keyword.operator.arrow","keyword.operator.ternary","keyword.operator.optional","keyword.operator.nullcoalescing","keyword.operator.spread"],settings:{foreground:e.operator}},{scope:["variable.language.this","variable.language.super","variable.language.self"],settings:{foreground:e.thisSuper,fontStyle:"italic"}},{scope:["string","string.quoted.single","string.quoted.double"],settings:{foreground:e.string}},{scope:["string.quoted.backtick","string.template"],settings:{foreground:e.stringTemplate}},{scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","meta.template.expression"],settings:{foreground:e.importExport,background:e.bgSubtle}},{scope:["string.regexp","constant.regexp"],settings:{foreground:e.regex}},{scope:["constant.numeric","constant.language","constant.language.boolean","constant.character","constant.other"],settings:{foreground:e.constant}},{scope:["entity.name.function","support.function","meta.function-call entity.name.function"],settings:{foreground:e.function}},{scope:["entity.name.type","entity.name.type.interface","entity.name.type.alias","entity.name.class","support.type","support.class","entity.other.inherited-class"],settings:{foreground:e.typeClass}},{scope:["meta.type.annotation","meta.return.type","support.type.primitive","support.type.builtin"],settings:{foreground:e.typeAnnotation}},{scope:["entity.name.type.type-parameter","variable.type.type-parameter"],settings:{foreground:e.typeParam,fontStyle:"italic"}},{scope:["variable.other.enummember"],settings:{foreground:e.enumMember}},{scope:["entity.name.namespace","entity.name.module"],settings:{foreground:e.namespace}},{scope:["meta.decorator","meta.decorator punctuation.decorator","entity.name.function.decorator","punctuation.decorator"],settings:{foreground:e.decorator,background:e.bgSubtle,fontStyle:"italic"}},{scope:["variable","variable.other","variable.other.readwrite","variable.parameter"],settings:{foreground:e.variable}},{scope:["variable.other.property","variable.other.object.property","support.type.property-name","meta.object-literal.key"],settings:{foreground:e.property}},{scope:["punctuation.definition.block","punctuation.definition.parameters","meta.brace.round","meta.brace.curly","meta.brace.square","punctuation.section"],settings:{foreground:e.punctuation}},{scope:["punctuation.terminator","punctuation.separator","punctuation.separator.comma","punctuation.separator.period","punctuation.accessor"],settings:{foreground:e.punctuationLight}},{scope:["entity.name.tag","entity.name.tag.html","entity.name.tag.js.jsx","meta.tag","support.class.component"],settings:{foreground:e.tag}},{scope:["entity.other.attribute-name","entity.other.attribute-name.html"],settings:{foreground:e.attribute}},{scope:["support.type.property-name.css","entity.name.tag.css","support.type.property-name.scss"],settings:{foreground:e.cssProperty}},{scope:["support.constant.property-value.css","constant.other.color.rgb-value.css","constant.other.color","support.constant.color"],settings:{foreground:e.cssValue}},{scope:["variable.css","variable.scss","variable.other.less","support.type.custom-property"],settings:{foreground:e.cssVariable}},{scope:["invalid","invalid.illegal"],settings:{foreground:e.invalid}}]};export{o as shikiTheme};
|
|
2
|
+
//# sourceMappingURL=shiki-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shiki-theme.js","sources":["../lib/shiki-theme.ts"],"sourcesContent":["import type { ThemeRegistration } from 'shiki';\n\nconst palette = {\n bg: 'var(--color-elevation-2)',\n bgSubtle: 'var(--color-elevation-1)',\n fg: 'var(--color-foreground)',\n comment: 'var(--color-muted-foreground)',\n keyword: 'var(--color-primary-9)',\n importExport: 'var(--color-primary-7)',\n operator: 'var(--color-primary-6)',\n thisSuper: 'var(--color-primary-8)',\n string: 'var(--color-success-8)',\n stringTemplate: 'var(--color-success-7)',\n regex: 'var(--color-destructive-7)',\n number: 'var(--color-secondary-8)',\n constant: 'var(--color-secondary-9)',\n function: 'var(--color-primary-8)',\n typeClass: 'var(--color-secondary-9)',\n typeAnnotation: 'var(--color-secondary-7)',\n typeParam: 'var(--color-secondary-6)',\n enumMember: 'var(--color-secondary-8)',\n namespace: 'var(--color-secondary-7)',\n decorator: 'var(--color-secondary-9)',\n variable: 'var(--color-foreground)',\n property: 'var(--color-secondary-6)',\n punctuation: 'var(--color-muted)',\n punctuationLight: 'var(--color-muted-foreground)',\n tag: 'var(--color-primary-8)',\n attribute: 'var(--color-secondary-5)',\n cssProperty: 'var(--color-primary-7)',\n cssValue: 'var(--color-success-7)',\n cssVariable: 'var(--color-secondary-6)',\n invalid: 'var(--color-destructive-7)',\n} as const;\n\nexport const shikiTheme: ThemeRegistration = {\n name: 'shiki-theme',\n\n settings: [\n {\n settings: {\n background: palette.bg,\n foreground: palette.fg,\n },\n },\n\n // ── Comments\n {\n scope: ['comment', 'punctuation.definition.comment', 'string.comment'],\n settings: {\n foreground: palette.comment,\n fontStyle: 'italic',\n },\n },\n\n // ── Keywords (control flow, storage)\n {\n scope: [\n 'keyword',\n 'keyword.control',\n 'keyword.control.flow',\n 'keyword.control.conditional',\n 'keyword.control.loop',\n 'keyword.operator.new',\n 'keyword.other',\n 'storage.type',\n 'storage.modifier',\n ],\n settings: { foreground: palette.keyword },\n },\n\n // ── Import / export / from / as\n {\n scope: ['keyword.control.import', 'keyword.control.export', 'keyword.control.from', 'keyword.control.as'],\n settings: { foreground: palette.importExport },\n },\n\n // ── Operators\n {\n scope: [\n 'keyword.operator',\n 'keyword.operator.assignment',\n 'keyword.operator.comparison',\n 'keyword.operator.logical',\n 'keyword.operator.arrow',\n 'keyword.operator.ternary',\n 'keyword.operator.optional',\n 'keyword.operator.nullcoalescing',\n 'keyword.operator.spread',\n ],\n settings: { foreground: palette.operator },\n },\n\n // ── this / super / self\n {\n scope: ['variable.language.this', 'variable.language.super', 'variable.language.self'],\n settings: { foreground: palette.thisSuper, fontStyle: 'italic' },\n },\n\n // ── Strings\n {\n scope: ['string', 'string.quoted.single', 'string.quoted.double'],\n settings: { foreground: palette.string },\n },\n\n // ── Template literals\n {\n scope: ['string.quoted.backtick', 'string.template'],\n settings: { foreground: palette.stringTemplate },\n },\n\n // ── Template expressions\n {\n scope: [\n 'punctuation.definition.template-expression.begin',\n 'punctuation.definition.template-expression.end',\n 'meta.template.expression',\n ],\n settings: {\n foreground: palette.importExport,\n background: palette.bgSubtle,\n },\n },\n\n // ── Regex\n {\n scope: ['string.regexp', 'constant.regexp'],\n settings: { foreground: palette.regex },\n },\n\n // ── Numbers, booleans, null, constants\n {\n scope: [\n 'constant.numeric',\n 'constant.language',\n 'constant.language.boolean',\n 'constant.character',\n 'constant.other',\n ],\n settings: { foreground: palette.constant },\n },\n\n // ── Function names\n {\n scope: ['entity.name.function', 'support.function', 'meta.function-call entity.name.function'],\n settings: { foreground: palette.function },\n },\n\n // ── Types, classes, interfaces\n {\n scope: [\n 'entity.name.type',\n 'entity.name.type.interface',\n 'entity.name.type.alias',\n 'entity.name.class',\n 'support.type',\n 'support.class',\n 'entity.other.inherited-class',\n ],\n settings: { foreground: palette.typeClass },\n },\n\n // ── Type annotations & builtins\n {\n scope: ['meta.type.annotation', 'meta.return.type', 'support.type.primitive', 'support.type.builtin'],\n settings: { foreground: palette.typeAnnotation },\n },\n\n // ── Generic type parameters\n {\n scope: ['entity.name.type.type-parameter', 'variable.type.type-parameter'],\n settings: { foreground: palette.typeParam, fontStyle: 'italic' },\n },\n\n // ── Enum members\n {\n scope: ['variable.other.enummember'],\n settings: { foreground: palette.enumMember },\n },\n\n // ── Namespaces / modules\n {\n scope: ['entity.name.namespace', 'entity.name.module'],\n settings: { foreground: palette.namespace },\n },\n\n // ── Decorators\n {\n scope: [\n 'meta.decorator',\n 'meta.decorator punctuation.decorator',\n 'entity.name.function.decorator',\n 'punctuation.decorator',\n ],\n settings: {\n foreground: palette.decorator,\n background: palette.bgSubtle,\n fontStyle: 'italic',\n },\n },\n\n // ── Variables & parameters\n {\n scope: ['variable', 'variable.other', 'variable.other.readwrite', 'variable.parameter'],\n settings: { foreground: palette.variable },\n },\n\n // ── Object properties / keys\n {\n scope: [\n 'variable.other.property',\n 'variable.other.object.property',\n 'support.type.property-name',\n 'meta.object-literal.key',\n ],\n settings: { foreground: palette.property },\n },\n\n // ── Punctuation: brackets & braces\n {\n scope: [\n 'punctuation.definition.block',\n 'punctuation.definition.parameters',\n 'meta.brace.round',\n 'meta.brace.curly',\n 'meta.brace.square',\n 'punctuation.section',\n ],\n settings: { foreground: palette.punctuation },\n },\n\n // ── Punctuation: terminators & separators\n {\n scope: [\n 'punctuation.terminator',\n 'punctuation.separator',\n 'punctuation.separator.comma',\n 'punctuation.separator.period',\n 'punctuation.accessor',\n ],\n settings: { foreground: palette.punctuationLight },\n },\n\n // ── JSX / HTML tags\n {\n scope: [\n 'entity.name.tag',\n 'entity.name.tag.html',\n 'entity.name.tag.js.jsx',\n 'meta.tag',\n 'support.class.component',\n ],\n settings: { foreground: palette.tag },\n },\n\n // ── JSX / HTML attributes\n {\n scope: ['entity.other.attribute-name', 'entity.other.attribute-name.html'],\n settings: { foreground: palette.attribute },\n },\n\n // ── CSS property names\n {\n scope: ['support.type.property-name.css', 'entity.name.tag.css', 'support.type.property-name.scss'],\n settings: { foreground: palette.cssProperty },\n },\n\n // ── CSS values & colors\n {\n scope: [\n 'support.constant.property-value.css',\n 'constant.other.color.rgb-value.css',\n 'constant.other.color',\n 'support.constant.color',\n ],\n settings: { foreground: palette.cssValue },\n },\n\n // ── CSS / SCSS variables\n {\n scope: ['variable.css', 'variable.scss', 'variable.other.less', 'support.type.custom-property'],\n settings: { foreground: palette.cssVariable },\n },\n\n // ── Invalid / errors\n {\n scope: ['invalid', 'invalid.illegal'],\n settings: { foreground: palette.invalid },\n },\n ],\n};\n"],"names":["palette","shikiTheme"],"mappings":"AAEA,MAAMA,EAAU,CACZ,GAAI,2BACJ,SAAU,2BACV,GAAI,0BACJ,QAAS,gCACT,QAAS,yBACT,aAAc,yBACd,SAAU,yBACV,UAAW,yBACX,OAAQ,yBACR,eAAgB,yBAChB,MAAO,6BAEP,SAAU,2BACV,SAAU,yBACV,UAAW,2BACX,eAAgB,2BAChB,UAAW,2BACX,WAAY,2BACZ,UAAW,2BACX,UAAW,2BACX,SAAU,0BACV,SAAU,2BACV,YAAa,qBACb,iBAAkB,gCAClB,IAAK,yBACL,UAAW,2BACX,YAAa,yBACb,SAAU,yBACV,YAAa,2BACb,QAAS,4BACb,EAEaC,EAAgC,CACzC,KAAM,cAEN,SAAU,CACN,CACI,SAAU,CACN,WAAYD,EAAQ,GACpB,WAAYA,EAAQ,EAAA,CACxB,EAIJ,CACI,MAAO,CAAC,UAAW,iCAAkC,gBAAgB,EACrE,SAAU,CACN,WAAYA,EAAQ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B,EAC9F,SAAU,CAAE,WAAYA,EAAQ,WAAA,CAAY,EAIhD,CACI,MAAO,CAAC,UAAW,iBAAiB,EACpC,SAAU,CAAE,WAAYA,EAAQ,OAAA,CAAQ,CAC5C,CAER"}
|
package/lib/index.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptlex/web-components",
|
|
3
|
-
"version": "6.6.6-
|
|
3
|
+
"version": "6.6.6-alpha84",
|
|
4
4
|
"description": "React component library for Cryptlex web applications",
|
|
5
5
|
"author": "Cryptlex",
|
|
6
6
|
"type": "module",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"*.{ts,tsx,css,scss,json}": "prettier --write"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@cryptlex/web-api-types": "2.
|
|
51
|
+
"@cryptlex/web-api-types": "2.127.0",
|
|
52
52
|
"@dnd-kit/core": "6.3.1",
|
|
53
53
|
"@dnd-kit/sortable": "10.0.0",
|
|
54
54
|
"@dnd-kit/utilities": "3.2.2",
|
|
@@ -69,7 +69,8 @@
|
|
|
69
69
|
"recharts": "3.2.1",
|
|
70
70
|
"tailwindcss": "4.1.12",
|
|
71
71
|
"tw-animate-css": "1.3.0",
|
|
72
|
-
"zod": "4.1.1"
|
|
72
|
+
"zod": "4.1.1",
|
|
73
|
+
"shiki": "^3.22.0"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@rollup/plugin-node-resolve": "16.0.1",
|